Skip to content

Latest commit

 

History

History
1051 lines (679 loc) · 51 KB

CHANGELOG.md

File metadata and controls

1051 lines (679 loc) · 51 KB

Changelog

All notable changes to form-js are documented here. We use semantic versioning for releases.

Unreleased

Note: Yet to be released changes appear here.

1.12.0

  • DEPS: Add implicit keyboard binding / migrate to diagram-js@15 (#1269)
  • DEPS: bump bpmn.io deps (605a8fb)
  • DEPS: bump carbon deps (dff24f8)
  • DEPS: bump build deps (920e4a0)
  • DEPS: bump codemirror deps (27e0f40)
  • DEPS: bump dompurify (fd117ae)
  • DEPS: bump marked (8ef9453)

1.11.3

  • FIX: prevent form editor from breaking on invalid expression on filepicker prop (#1311)

1.11.2

  • FIX: make getSchemaVariables include filepicker property variables (739343c)

1.11.1

  • FIX: fix filepicker component merge error (#1309)

1.11.0

  • FEAT: implement filepicker component (#1264)
  • FIX: align drag preview/sticker properly (#1267)
  • DEPS: update preact to 10.15.1 in lockfile (#1283)
  • FIX: set radio name to properly imply tabindexes in firefox (#1288)
  • FIX: adjust the am/pm time placeholder to hh:mm -- (#1289)
  • FIX: do not create a simple label in datetime components (#1292)
  • FEAT: parameterized the properties panel subheading getter logic (#1303)

1.10.1

  • FIX: serialize object table cells using the JSON serializer (#1139)
  • CHORE: dep updates (#1258)
  • FIX: fix carbonization (#1253)
  • FIX: don't clip radio buttons (#1261)

1.10.0

  • FEAT: support form level version tag (#4463)

1.9.2

  • FIX: disallow drop when no formfield is found (#1219)
  • FIX: ensure dynamic lists submit collapsed values (#1230)
  • FIX: cleaned up sass violations (93eabd82)
  • DEPS: bump feelin@3.1.2, resolving a some feel evaluation problems (e0aaef9a)

1.9.1

  • FIX: ensure dates are parsed timezone agnostically (#1234)

1.9.0

  • FEAT: enable passing of documentation link to form properties panel (#1201)

1.8.8

  • FIX: expressions are properly included in getSchemaVariables (#1186)
  • FIX: button labels properly evaluate expressions (#1181)
  • FIX: ensure group paths are properly registered on add (#1173)
  • FIX: properly build out FEEL parent context chain (#1191)
  • FIX: removed deprecated useSort properties panel attributes (#1200)
  • CHORE: bump @bpmn-io/properties-panel@3.20.1, adding visual improvements to the feel (and feelers) popout editor (43c5615e)

1.8.7

  • FIX: revert to min-dom@4.1.0 (#1178)

1.8.6

  • FIX: ignore instance validation when field definition isnt registered (9e189cf0)
  • FIX: ensure output data is in sync with instance registration (5b006200)

1.8.5

  • FIX: validation feel expressions now use the proper local feel context (#1147)
  • FIX: do not return field instance if field definition isn't available (5bef6df4)

1.8.4

  • FEAT: implement formFieldInstanceRegistry (#1142)
  • FIX: prevent expression loops by only allowing them to recompute once (#1151)
  • FIX: use lodash equality when calculating whether to recompute expression fields (#1150)
  • FIX: made properties panel feel expressions A11y friendly (348afb85)
  • CHORE: added prettier (9c3af55b)
  • CHORE: updated group and iframe icons (622d80b6)
  • CHORE: moved options source group higher up (e7970972)
  • CHORE: re-ordered formfields by importance (1aa84550)
  • CHORE: update html documentation link (#1040)

1.8.3

  • FIX: prevent checklist and taglist from triggering field validation early (#1123)
  • FIX: prevent datetime from triggering field validation early (#1099)
  • FIX: improved expression field result consistency in the editor (#1114)
  • FIX: properly export type definitions (#1105)
  • CHORE: renamed HTML component to HTML View for clarity (4d0a6f52)
  • CHORE: change the editor expression description to include the key for identification (#1116)

1.8.2

  • FIX: prevent prototype polution through keys and paths (#1111)
  • FIX: make the JSON editor readonly truly readonly (#1107)

1.8.1

  • CHORE: monkey patch formPlayground.init event back into the release for compatibility reasons (#1076)

1.8.0

  • FEAT: implemented new expression field, allowing precomputation of data at runtime using FEEL (#1073)
  • FEAT: overhaul the json editor components (#1101)
  • FIX: improved the editor selection autoscroll (#1106)
  • FIX: form playground no longer loads forms twice under some circumstances (8aad0b6f)
  • FIX: ensure palette renderer is immediately initialised (988fbc7b)
  • FIX: display groups with no outline with a dashed outline in the editor (#1084)
  • FIX: variables with keyword names like duration can now be used in feel expression (#975)
  • FIX: ensure dynamic list and tables interact safely (#1064)
  • CHORE: replaced our markdown renderer from showdown to marked (#1091)
  • CHORE: reduced text sizing in json editor components (#1078)

1.7.3

  • FIX: properly pass this variable context to dynamic list elems (#1086)

1.7.2

  • FIX: non-submit buttons in the library now have type="button" (#1077)
  • FIX: field readonly property now hidden when disabled property is set (#1063)
  • FIX: expression-driven options fields now properly initialize with input values (#1067)
  • CHORE: temporarily restrict preact dependency version to <= 10.15.1 due to conflict with dragula (#1057)

1.7.1

  • FEAT: fields announce their descriptions and labels properly (#1043)
  • FIX: ensure searchable select filter is cleared with options (#1056)
  • FIX: ensure repeatRenderManager passes down props correctly (#1033)
  • FIX: prevent blur event from having value of out sync (#1052)
  • FIX: ensure simpleSelect mouseDown event deactivates normally (#1046)
  • FIX: ensure html content variables are included in getSchemaVariables (#1048)
  • FIX: validate instead of automatically resetting height entries (#1034)
  • FIX: fix HTML component link (#1039)

1.7.0

  • FIX: resize textarea on input changes (#1011)
  • FIX: synchronize field validation properly (#1009)
  • DEPS: @bpmn-io/properties-panel@3.18.1 (a4e9b6d)

1.7.0-alpha.0

  • FEAT: implement HTML component and cleanup Text component (#999)
  • FIX: repeatable entry parameters now validate with errors (#1000)
  • FIX: show iframe title in editor (#991)
  • FIX: prevent demo data from being created on edited tables (#1005)
  • DEPS: update to diagram-js@13.4.0, min-dash@4.2.1, min-dom@4.1.0, @bpmn-io/properties-panel@3.18.0 (#1008) (#1016)

1.6.4

  • FIX: explicitly depend on lodash (#971)

1.6.3

  • FIX: revert broken debouncing on number field (#958)

1.6.2

  • FIX: improved performance through viewer debounce (#958)
  • FIX: properly handle all formats of options sources (#960)

1.6.1

  • FIX: allow scripts in iframes by default (#954)

1.6.0

General

  • FEAT: add dynamic list component (#796)
  • FEAT: add table component (#888)
  • DEPS: update to feelin@3 (0fdf5e19)

1.5.0

General

  • FEAT: added a new form-json-schema package (6690d2e2)
  • FEAT: introduced new SASS stylesheets to move away from styled-components (633)
  • FEAT: support iFrame component (#887)
  • DEPS: update to feelin@2.3 & feelers@1.2, bringing in new FEEL functionality (4765bb24)

Viewer

  • FIX: properly close dropdowns when opening other dropdowns (#878)
  • FIX: improved input data sanitation (#894)
  • FIX: ensure values not in options clear (#817)

Editor

  • FIX: fixed an issue dragging rows into groups (#861)
  • FIX: adjusted palette size (#846)
  • FIX: renamed checklist and radio (#846)

Playground

  • FIX: add tabIndex to json editors (ad6c00fb)

Breaking Changes

The @bpmn-io/form-js-carbon-styles deprecates the carbon-styles.js styled component export. The type definitions got removed from the package. Please use the src/carbon-styles.scss stylesheet instead.

1.4.1

Editor

  • FIX: clean up default value on options source change (#859)
  • FIX: improve color contrast in input data placeholder (#876)
  • FIX: add title to remove action (#877)
  • DEPS: update to @bpmn-io/properties-panel@3.13.0

1.4.0

General

  • FEAT: support custom form fields (#123)
  • FEAT: implement separator form field (#480)
  • FEAT: implement <formField.search> events (#785)
  • CHORE: update schemaVersion to 12

Viewer

  • FEAT: provide more customization options, as of (#776)
    • extending form field config via icon, iconUrl, propertiesPanelEntries
    • re-export core components as Label, Description, Errors
  • FEAT: make it easier to navigate over tags in taglist component(#435)
  • FEAT: add focus and blur events (#841)

Editor

  • FEAT: add properties panel providers mechanism (#776)
  • FEAT: collect palette entries and properties panel header information via form field configs (#776)
  • FEAT: add isDefaultVisible control to all properties panel entries (#776)
  • FEAT: re-export hooks
  • FEAT: better keyboard support for pallette entries (#536)
  • DEPS: update to @bpmn-io/properties-panel@3.11.0
  • FIX: improve pallette visuals (#539) (#848)

Playground

  • FEAT: provide additionalModules to both viewer and editor (#776)

1.3.3

General

  • FIX: getSchemaVariables filters all non-string variables (#860)
  • FIX: properly handle getSchemaVariables when combining contexts with paths (#860)

1.3.2

Viewer

  • FIX: cleanup errors for hidden fields (#825)
  • FIX: hide controls from readonly number fields (#810)

General

  • FIX: resize datetime properly (#781)
  • FIX: remove dateime unnecessary event context (cc598798)
  • DEPS: bumped feelin@1.2.0 && feelers@1.0.0

1.3.1

Editor

  • FIX: cleanup FEEL popup editor lifecycle events
  • DEPS: updated properties-panel to v3.8.0

1.3.0

General

  • FEAT: localized date picker based on browser language (#733)
  • FEAT: implemented Group component with multiple updates (#768)
    • dynamic input/output data access
    • proper group component implementation
    • new pathRegistry module for conflict-free path and key management
    • added validation for drag-and-drop and properties panel in nested scenarios
    • introduced EmptyRoot render context for root of empty forms
    • enhanced getSchemaVariables for nested components
    • additional changes detailed in epic and pr
  • FEAT: Added support for nested component keys (#464)
  • FIX: Dropdown options no longer reset when form reopens (#764)
  • FIX: Removed keying from buttons (#778)
  • FIX: Update options when expression evaluation changed (#809)
  • CHORE: Update schemaVersion to 11
  • DEPS: Updated properties-panel to v3.7.0

Viewer

  • CHORE: export FormField component (#797)

Editor

  • FEAT: allow defining propertiesPanel.feelPopupContainer (#795)
  • FEAT: incorporate FeelPopup module to interact via API (#814)
  • FEAT: add phone validation tooltip (#815)

Playground

  • FEAT: added placeholder to playground input panel (0f696119)

1.2.0

  • FEAT: implement first set of tooltips (e36de9a78)
  • FIX: dynamically set drag and drop axis (34767366)
  • FIX: serialize empty labels as empty string (3a700de5)
  • DEPS: replaced dragula with our own @bpmn-io/draggle@4.0.0 fork (34767366)

1.1.0

General

  • FEAT: add spacer component (#731)
  • FIX: properly parse variables in FEEL filter expressions (#711)
  • FIX: break overflowing words in text views (#651)
  • CHORE: update schemaVersion to 10
  • DEPS: update to @bpmn-io/properties-panel@3
  • DEPS: update to feelin@1
  • DEPS: update to feelers@0.1

Viewer

  • FEAT: eagerly validate on blur and input (#610)
  • FEAT: support defining input/output in getSchemaVariables (#555)
  • FIX: hide empty rows in DOM tree (#684)
  • FIX: improve auto resize behavior in text views (#546)

Editor

  • FEAT: update empty state for form editor (#336)
  • FIX: serialize empty text as empty string (cbcfdb5e)
  • FIX: render placeholder for whitespace empty text views (#721)

Carbon styles

  • FIX: properly display links in text views (d3d8a0fa)
  • FIX: click through select arrow (29f606e3)

Breaking Changes

The call signature of getSchemaVariables changed, favouring an options object over multiple params. This is very unlikely to have caused any issues as the old parameters were there only for very exceptional language override cases.

1.0.0

General

  • FEAT: re-export external library styles separately (#677)
  • FEAT: support FEEL and templates for prefixAdorner and suffixAdorner (#663)
  • FEAT: support templates for alt and source properties (#663)
  • FEAT: support FEEL to populate multiselect values via valuesExpression (#673)
  • FEAT: support FEEL for min, max, minLength and maxLength (#668)
  • FEAT: support FEEL for label and description (#658)
  • FEAT: support readonly property (#636)
  • FEAT: support global properties.disabled (#636)
  • FEAT: allow uneven columns (#605)
  • FEAT: make styles themable (#557)
  • FEAT: add fjs-no-theme selector to disable themable styles (#680)
  • FIX: don't render empty strings as adorners (d7e55851)
  • FIX: safely consume time interval (4ccc3d85)
  • FIX: support markdown tables in text (#205)
  • CHORE: introduce visual regression tests (#632)
  • DEPS: update to diagram-js@12 (798ac2a2)
  • DEPS: update to @bpmn-io/properties-panel@2
  • CHORE: update schemaVersion to 9

Viewer

  • FEAT: provide textLinkTarget property (#613)
  • FEAT: correlate error messages to form fields (#626)
  • FIX: make select component accessible (#617)
  • FIX: sanitize textfield new lines (#380)
  • CHORE: rework component definitions (#612)

Editor

  • FEAT: support UI modules (#649)
  • FEAT: make elements keyboard accessible (#173)
  • FEAT: use toggle switch for disabled property (#639)
  • FEAT: update delete icon (#572)
  • FEAT: resize form fields (#566)
  • FIX: set proper width to drop containers (#623)
  • FIX: improve search in palette (#532)

Playground

  • FEAT: set aria label to each component (#619)

Carbon styles

  • FEAT: introduce @bpmn-io/form-js-carbon-styles package (#557)
  • FIX: correct margins for lower screens (#640)

Breaking changes

We changed the behavior when providing the readOnly property to a Form. From this version, the form fields will be rendered as readOnly if the property is set. Previously, the form fields were rendered as disabled. To restore the same behavior, please use the disabled property instead.

const form = new Form({
  container: document.querySelector('#form'),
  properties: {
    disabled: true,
  },
});

We changed the structure of the static component configuration properties. These are now located on a static config object, and may now be accessed as follows:

import { Button } from '@bpmn-io/form-js-viewer';
console.log('Button default label is ' + Button.config.label);

We changed the internal behavior of rendering palette in the editor. Following that, the .fjs-editor-palette-container selector was removed as it was optional. Please use the more generic .fjs-palette-container selector instead.

0.14.1

Viewer

  • FIX: properly align rows (7fb5c1de)
  • FIX: prevent submit on enter in taglist and select options (#608)
  • FIX: getSchemaVariables accounts for text templates (#603)
  • FIX: give adorners enough space (#598)

Editor

  • FIX: validate unique labels in values (#552)
  • FIX: avoid redundant properties and values (#614)

0.14.0

  • FEAT: feat: implemented required parameter for checkboxes, checklists and taglists (#594)
  • FIX: prevented buttons from intercepting drag&drop action in editor (#585)
  • FIX: recentered form view (#582)

0.13.1

Viewer

  • FIX: add missing feelers dependency (#581)
  • FIX: correct adorner alignments (#584)

0.13.0

General

  • FEAT: allow primitives for multi select values (#542)
  • FEAT: bundle style exports (#561)
  • FEAT: support more flexible rows layout with columns (#560)
  • FEAT: support FEEL templating in text components (#567)
  • CHORE: update to schemaVersion@8 (0779d6)

Viewer

  • FIX: correct background for disabled select and taglist inputs (#568)
  • CHORE: replace snarkdown markdown parser with showdown (#567)

Editor

  • FEAT: improve input values key description (#303)
  • FEAT: allow editing columns (#560)
  • FEAT: toggle between FEEL template and expression in text component (#567)
  • CHORE: rework dragging and selection visuals (#560)

Breaking Changes

  • @bpmn-io/form-js/dist/assets/dragula.css got removed
  • @bpmn-io/form-js/dist/assets/flatpickr/light.css got removed
  • @bpmn-io/form-js/dist/assets/properties-panel.css got removed

The missing styles are included in the general style exports (form-js.css, form-js-editor.css, form-js-playground.css). If you need the base styles on their own, please find them in the additional *-base.css exports in the dist/assets directory.

0.12.2

General

  • FIX: use correct height for datetime inputs (#548)

Editor

  • FIX: use correct articles in palette titles (#545)
  • FIX: use correct empty default value for select (#562)

0.12.1

General

  • FIX: correct type generation (#529)

Viewer

  • FIX: use ellipsis for text adorners (#538)

Editor

  • FIX: use defined validationType for custom validate (#537)

0.12.0

General

  • FEAT: normalized font and form field styling (#506)
  • FEAT: support searchable selects (#381)
  • FIX: only export schemaVersion once (a93b664d)
  • FIX: prevent date values prior to 1900 (#534)
  • CHORE: change labels of serializeToString, pattern and validationType properties (#454)
  • CHORE: update to schemaVersion@7 (293f918d)

Editor

  • FEAT: emit drag.* events (#462)
  • FEAT: disable text links (#439)
  • FEAT: provide editor specific text component (#521)
  • FEAT: implement scalable palette component (#503)
  • FEAT: validate decimal properties (#531)

0.11.1

Editor

  • FIX: properly clean up custom validate (#485)

0.11.0

General

  • FEAT: simplify checklist icon (45c9b9ee)
  • FEAT: make datetime icon color customizable (1aa334bb)
  • FIX: truncate adorner texts (136a3234)
  • FIX allow min and max validation for all numbers (#486)

Viewer

  • FIX: do not serialize standalone minus (#492)
  • FIX: properly use increment in validation (9b339dc2)
  • FIX: display datetime value when disabled (d775dc26)
  • FIX: trim increment number value (b78667e2)
  • FIX: do not collapse dropdown list on click scroll (#367)

Editor

  • FIX: clear custom validation when using presets (13712915)
  • FIX: properly handle decimal values in min and max validation (#497)

Playground

  • FEAT: add auto complete for variable names (#295)
  • FIX: do not force palette scrolling (1c81d837)
  • FIX: render properties panel to the right (8289216f)
  • FIX: handle tabbing in JSON editor (7bb44611)
  • FIX: properly layout properties panel (#487)
  • FIX: restrict editor width to viewport (f345d111)

0.10.1

General

  • FIX: aligned viewer, editor and control margins (#424)
  • FIX: set number field increment buttons to type 'button' (#467)

0.10.0

General

  • FEAT: support prefix and suffix for textfield and number (#420)
  • FEAT: support datetime component, include /dist/assets/flatpickr/light.css to display it (#340)
  • FEAT: support expressions for text content (#436)

Viewer

  • FEAT: allow h6 elements in text view (#412)
  • FIX: hidden fields do not affect other fields (#431)

0.10.0-alpha.3

General

  • FIX: remove ES2020 syntax (#448)

0.10.0-alpha.2

General

  • FEAT: support decimal numbers (#285)
  • FEAT: add conditional rendering (#374)
  • FEAT: support image fields (#383)
  • FEAT: retrieve variables mentioned in conditions (#401)
  • FEAT: retrieve variables mentioned in expressions (32532aa7)
  • DEPS: update to diagram-js@11 (6e2d5a1d)
  • DEPS: update to @bpmn-io/properties-panel@1 (fdda226f)

Editor

  • FEAT: validate valuesKey in properties panel (#428)

0.10.0-alpha.1

Editor

  • DEPS: add @bpmn-io/properties-panel dependency (#429)

Viewer

  • FIX: make taglist component accessible (#413)

0.10.0-alpha.0

General

  • FEAT: add textarea component (#283)
  • CHORE: update to schemaVersion@6 (5dd3f16c)

Viewer

  • CHORE: add additional .fjs-disabled and .fjs-checked selectors (#419)

Editor

  • FEAT: improve properties panel header for text fields (#388)
  • FEAT: add email validation type for textfield (#414)
  • FEAT: add phone validation type for textfield (#414)

Playground

  • FEAT: enable JSON validation (#386)
  • FEAT: emit formPlayground.inputDataError (7341834b)

0.9.9

Playground

  • FIX: make JSON editors scrollable (2c155c1d)
  • FIX: show submit data in output panel (#273)

0.9.8

  • DEPS: update to diagram-js@9.0.0
  • DEPS: update to eslint-plugin-bpmn-io@0.16.0
  • DEPS: update to min-dom@4.0.0

Editor

  • FIX: align default static values (#355)

0.9.7

Editor

  • FIX: do not order values alphanumerical (#350)

Viewer

  • FIX: inherit font family for inputs (#330)

0.9.6

Editor

  • FIX: ensure valueSource is undoable (#349)
  • FIX: scroll only palette fields (#347)

Playground

  • FIX: fix overflowing palette container (#348)

0.9.5

  • DEPS: update to didi@9

0.9.4

  • CHORE: update package-lock.json to v2

0.9.3

Re-release of 0.9.2.

0.9.2

General

  • CHORE: upgrade to properties-panel@0.21.0 (b914b2f3)

0.9.1

Viewer

  • FIX: increase description color contrast (#334)

0.9.0

Editor

  • CHORE: show palette action names in compact mode (fc41baf9)

Playground

  • FEAT: mirror editor API (30d4363b)
  • FEAT: emit formPlayground.init after full initialization (dbb174c6)
  • FEAT: allow to configure exporter (#331)
  • FEAT: make initial schema optional (e041c24a)

0.8.0

General

  • FEAT: add playground distro (#318)
  • FIX: stop taglist duplicate entries during slowdowns (#268)

Editor

  • FEAT: provide properties panel module (#286)
  • FEAT: render properties panel per default (#286)

Playground

  • FEAT: support components to be rendered flexible (#292)
  • FEAT: emit formPlayground.rendered event (#292)
  • FEAT: make it possible to render own properties panel (#286)
  • CHORE: clean up package definition (#318)
  • CHORE: use editor and viewer packages directly (#318)

0.8.0-alpha.1

General

  • FEAT: provide getSchemaVariables utility (#103)

Editor

  • FEAT: provide palette as feature module (#280)
  • FIX: remove term "process variable" from key property (#241)
  • CHORE: change labels Values to Options (#304)

Viewer

  • FEAT: sanitize form field values on import (#266)
  • FIX: use outline for field focus state (#267)
  • FIX: filter invalid taglist options (#303)

0.8.0-alpha.0

General

  • FEAT: add checklist component (#196)
  • FEAT: add taglist component (#198)

Editor

  • FEAT: migrate properties panel to new framework (#249)
  • FEAT: allow to configure valuesKey (#256)

Viewer

  • FEAT: load dynamic input data (#197)

0.7.2

  • FIX: serialize regex pattern as 'pattern' (#245)
  • CHORE: added build:watch script (#248)
  • CHORE: general local HTML coverage report (#250)
  • CHORE: format files to end with LF instead of CRLF (#259)
  • DEPS: cleaned up some audit errors (#261)

0.7.1

  • FIX: explicitly declare Validator dependencies (#240)
  • FIX: improve types (#159)

0.7.0

Editor

  • FEAT: allow to set custom properties for form fields (#226)
  • FIX: validate TextInput when validate function changes (#225)
  • FIX: don't allow duplicate values for select and radio fields (#229)

0.6.1

Editor

  • FIX: override exporter property on save (#221)

0.6.0

General

  • CHORE: update color scheme (#193)

Viewer

  • FEAT: be able to set default value of a field (#213)
  • FIX: submit data for every field that is not disabled (#210)
  • FIX: do not submit data without corresponding field (#210)

Editor

  • FIX: prevent properties panel from losing focus (#211)
  • CHORE: properties panel inputs inherit font family (#189)

Breaking Changes

  • Data will now be submitted for every form field that is not disabled.
  • Imported data without form field will not be submitted anymore.

0.5.1

Editor

  • FIX: assign unique DOM IDs
  • FIX: correctly handling of undo/redo shortcuts in form

Viewer

  • FIX: assign unique DOM IDs

0.5.0

Editor

  • FEAT: allow disabling of form fields (#182, #181)
  • FIX: correct border radius on context pad (#185)
  • FIX: ensure form fields react to click events (#186)

Playground

Initial public release of the @bpmn-io/form-js-playground 🎉.

0.4.4

Viewer

  • FIX: properly reset UI state of select and number fields (#155)
  • FIX: prevent un-checking of radio fields (#176)
  • FIX: correct display of checkbox fields without label (#168)

0.4.3

Editor

  • FIX: correct form icon (#170)

0.4.2

Editor

  • FIX: prevent generation of duplicate keys when creating form fields (#161)
  • FIX: make field hover and select state better distinguishable (#163)

0.4.1

  • FIX: update fields in registry on ID change (#152)

0.4.0

  • FEAT: refactor selection (#140)
  • FEAT: add selection behavior (#140)
  • FEAT add editor action to select form field (#149)
  • FIX: add missing select label to properties panel (#148)
  • FIX: fix palette overflow (#147)
  • FIX: fix type definitions for container option when creating form or form editor (#145)

Breaking Changes

  • Modeling#addFormField, Modeling#moveFormField and Modeling#remove parameters have changed
  • selection in Selection is now form field, not its ID

0.3.1

  • FIX: use external type declarations (#143)

0.3.0

General

  • FEAT: add id to form fields (#80, #137)
  • DOCS: publish typings with documentation tags (#138)
  • DOCS: mark private and internal APIs
  • CHORE: bump to schemaVersion=2

Viewer

  • FEAT: allow fields to be disabled via schema (bf185225)
  • FIX: assign unique keys for child components (cb86f75e, fd036484)
  • FIX: santitize external links (9c53aa05)
  • FIX: turn number field into a controlled component (874545e3)
  • FIX: correctly label selects (8eade6ca)

Editor

  • FEAT: add compact mode (#130)
  • FEAT: validate key property (#58)
  • FEAT: debounce input per default (#132)
  • FEAT: allow editing multiple properties at once (e68526c1)
  • FEAT: allow editing of form root (9193bb22)
  • FEAT: improve form field selection and hover styles (71061807)
  • FIX: make form element drag sticky (e2c2bdd0)
  • FIX: clear before re-import (#135)
  • FIX: event listeners not de-registered (#133)
  • FIX: assign unique keys to rendered components (#139)
  • CHORE: rework import and field creation

0.2.4

  • FIX: make options optional when creating Form and FormEditor instances (8d9e09ae)
  • FIX: import schemaVersion (05622a95)
  • FIX: ensure required works with empty string (0279c4c4)
  • DOCS: document new usage patterns (#106)
  • DOCS: document editor API (#24)

0.2.3

  • FIX: do not paragraph wrap blockquote and ol elements when rendering Markdown to HTML (a33d34ad)
  • FIX: make HTML sanitizer more strict (122467df)
  • FIX: gracefully handle unparseable Text input (a1121c0e)

0.2.2

  • FIX: add missing min-dom dependency (#100)
  • FIX: improve sanitizing of text links (#102)

0.2.1

  • FIX: remove async from public API (polyfilling Promise is all that is needed)
  • CHORE: expose FormEditor and Form in public API

0.2.0

General

  • FIX: prevent embedded images from breaking the form layout (#92)
  • FIX: generate proper paragraphs from markdown text (#93)
  • CHORE: refactor for extensibility and testability
  • CHORE: separate component instantation and import

Viewer

  • FEAT: improve robustness of form import (#79)
  • FEAT: allow programmatic form validation (#30)
  • FEAT: prevent submission of readonly form
  • FIX: correct submission of empty fields (#54)
  • FIX: correct submission of disabled fields (#6)

Editor

  • FEAT: improve robustness of form editor import (#91)
  • FEAT: add undo and redo (#45)

Breaking Changes

  • Form viewer and editor import are now asynchronous. Creating either via #createForm and #createFormEditor must be awaited.

0.1.0

This release adds new form fields that are not supported by older versions of form-js.

General

  • FEAT: add checkbox field
  • FEAT: add radio field
  • FEAT: add select field
  • FEAT: add read-only text field
  • FEAT: add number field
  • CHORE: add UMD distributions for editor and viewer

Editor

  • FEAT: make editor field preview match renderered form
  • FEAT: add schemaVersion to exported form files
  • FEAT: add ability to specify exporter

Viewer

  • FEAT: decrease visual presence of descriptions

0.0.12

  • fix required checkbox in properties panel by passing correct props (#53)

0.0.11

  • fix drag and drop by adding/removing event listeners on mount/unmount and attach/detach (#51)

0.0.10

  • FIX: fix empty textfield and number input behavior in properties panel (#42)

0.0.9

Viewer

  • FEAT: improve positioning of powered by logo
  • FEAT: simplify initial form element labels
  • FIX: restore for and name properties on inputs and labels (#32)
  • FIX: correct commonjs bundle issue (#29)

Editor

  • FEAT: improve property labels
  • FEAT: emit blur and focus events

0.0.8

Re-publish of v0.0.7.

0.0.7

Viewer

  • FEAT: fail on unknown form schema elements (#27)
  • FEAT: add maxLength validation

Editor

Initial editor release.

Breaking Changes

  • Form viewer instantiation now fails hard when supplied with an unsupported form schema.

0.0.6

Viewer

  • FEAT: emit changed event
  • CHORE: remove debug logging

0.0.5

Initial release.