Releases: optimajet/formengine
Releases · optimajet/formengine
Form Engine 7.5.0
Changed
- After upgrading to Zod v4, some default validation error messages have changed.
- The method name
initFormFieldshas been renamed togetEditableFormData. - Deprecated methods:
Definer.preview,Meta.customPreview, andDefinerData.customPreview.
Fixed bugs
- Fixed a bug that caused the following error to appear:
[MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed.
Updated internal dependencies
- Bumped
zodfrom 3.22.4 to 4.0.0. - Bumped
validatorfrom 13.11.0 to 2.1.4.
Form Engine 7.4.0
Changed
- When adding CSS properties
marginLeftandmarginRightin the Styles tab, the component now appliesmarginInlineStartandmarginInlineEndinstead, for better RTL support. - Removed
stylis-plugin-rtldependency from thecorepackage. - Removed
lodash-esdependency from thecore,designer,components-rich-text, andcomponents-signaturepackages. - The DeviceStyle.object type has been changed to
any.
Fixed bugs
- Fixed a bug that caused custom components with kind: 'container' to render incorrectly in designer mode.
- Fixed a bug where the
internalvalidation rule type was not recognized in JSON.
Form Engine 7.3.0
New
- Added Table component.
- Added the feature to override or disable the
onChangeandonBlurcomponent handlers. - Added the feature to disable styling for certain components.
- Added an interactive, editable, live-coding form example to documentation.
- Added CellInfoContextProvider for implementing table components.
- Added a standard color for svg icons in the component palette.
- Added the feature to hide property editors on the Actions tab.
- The sideEffects property has been added to packages (to better support tree-shaking).
- Added feature to disable component removal.
- Added export of individual components for the RSuite Components library.
Changed
- Replaced
windowwithglobalThisin project code.
Fixed bugs
- Fixed a bug that caused the Rich Text Editor component not being cleared.
- Fixed an issue that allowed adding items to the color pickers with a predefined list of colors.
- Fixed partially displayed error messages.
- Fixed a bug that caused duplicates in the Picker component when adding new values.
Updated internal dependencies
- Bumped
tar-fsfrom 2.1.3 to 2.1.4.
Form Engine 7.2.0
New
- Added Add a new form action to the Designer main menu.
- Added the following keyboard shortcuts:
- Delete delete the selected component;
- Ctrl D / Cmd D clone the selected component;
- Ctrl S / Cmd S save the form;
- Ctrl Z / Cmd Z undo action;
- Ctrl Y / Ctrl Shift Z / Cmd Shift Z redo action;
- Added the useBuilderValue hook, which allows displaying a default value in custom components if the value is undefined in form design mode.
- Added the following fields and methods:
Changed
- Removed the
readOnlyproperty from theButtoncomponent.
Fixed bugs
- Fixed the 'Invalid prop className supplied to React.Fragment' error that occurred when using the
Cardcomponent. - Fixed the 'Check the render method of RawActionList' error that occurred when cloning a component with actions.
- Fixed an issue where the
Signaturecomponent was not cleared when callingClearon a form.
Form Engine 7.1.0
New
- Added article on how to work with form data.
Changed
- RsDatePicker prop
showMeridianrenamed toshowMeridiemdue to deprecation in RSuite.
Fixed bugs
- Fixed broken validation for dates passed as strings in
initialData. - Crash in RsNumberFormat in edge cases.
Updated internal dependencies
- rsuite from 5.83.1 to 5.83.3.
Form Engine 7.0.0
Breaking changes
- Multiple fields with the same
dataKeyare now updated in sync when form data changes. - Fields from the initial data are always preserved in form data, even if not bound to form fields.
- Changed two-way data binding to one-way in the
Progresscomponent. - Changed the return type of DataValidator.getValidationResult, IStore.localizeErrorMessages, and ErrorMessageLocalizer from
stringtostring[]. - Changed the style editor language from SCSS to CSS.
- Removed deprecated fields and methods:
Store.getFormComponentKind.slotComponentKind.presetFormViewerProps.erroneousMeta.kindBuilderView.withErrorMetaBuilderView.withTooltipMeta
New
- Added a
dataKeyeditor for fields with two-way data binding (valued). - Added new methods for working with
initialData: - Added
clearInitialDataparameter to the following methods:
Changed
- The calculated value button is no longer displayed for properties that are not
calculableorlocalizable. - Removed the incorrect hint suggesting camelCase usage in the HTML Attributes editor.
Fixed bugs
- Fixed a bug where deleting a validation rule did not remove its localized messages from the form JSON.
- Fixed an issue where IFormData.getValidationResult returned unlocalized error messages.
Form Engine 6.2.1
Fixed
- Fixed a bug where a message was displayed that the license allows "-1" languages or an empty list of domains.
Form Engine 6.2.0
New
- Added support for creating modal windows on the form.
- Added Validate, Reset to default, and Clear buttons to the left panel in Preview mode for form data management.
- Added a Reset to default button to the object array editor to reset values.
- Code editor title for functional arguments now display the related event information.
- Added the View.filterModels and BuilderView.filterModels methods that returns an array of component metadata filtered by a predicate function.
- Added a
formComponentproperty editor to select the key of a component on the form, with an optional filter for the list. - Added the ability to hide components from the palette and filter components by their properties.
- When creating a new form, the tooltip type and modal type are now set automatically.
- In the designer localization languages list, labels have been added to indicate which translations were generated using AI.
Changed
- Deprecated the
erroneousproperty in FormViewerProps and FormBuilderProps types. - Deprecated the following methods in the BuilderView class:
getTooltipAnnotationsgetErrorAnnotationstooltipserrorswithErrorMetawithTooltipMeta
Fixed
- Fixed an issue where the object array editor wrapped items in an extra
itemfield. - Fixed dependency issues in components-fast-qr, components-rich-text, and components-signature packages that caused problems when using the
yarnpackage manager.
Form Engine 6.1.0
New
- Added support for using a functional argument type in custom actions.
- Added support for passing CSS styles via the style property instead of className.
- Added support for specifying a component role (e.g., label, tooltip, etc.).
- Added the ability to manage component features, including:
Changed
- Deprecated the
slotandpresetoptions in the ComponentKind type.
Fixed bugs
- Fixed an issue where saving or creating a new form could break the behavior of the custom form list.
- Fixed an issue where deleting a form that was not currently open caused a "formName is undefined" error.
Form Engine 6.0.0
Breaking changes
- When using formStorage in Designer, forms are now loaded through IFormStorage.getForm instead of FormViewerProps.getForm.
- The
formNameparameter is now optional in the IFormStorage.getForm function.
New
- Added Placeholder components: Paragraph, Graph, Grid.
- Added Divider component.
- Premium components are now included in the Designer CDN bundle.
- Released new viewer-bundle-premium CDN package containing all free and premium components.
- Added examples for selective component inclusion with CDN bundles.
- Added the reloadFormList method to useFormBuilder and builderRef.
Changed
- Deprecated the Meta.kind field.
- Enhanced CSS Editor with new "Styles for className" header in Styles tab.
Fixed bugs
- Fixed accessibility issue in RSuite Input component.