Repository navigation
v3.2.0
Version 3.2.0 – Stability and consistency improvements across the editor UI, TypeScript support, and preview rendering.
-
Minor Changes
- Preserve item identity across moves, deletes, and duplicates in the Items panel, ensuring stable React keys and consistent UI behavior.
-
Patch Changes
- Keep Babel traverse implementation details out of generated declarations so strict TypeScript consumers can import the AST utilities without invalid Babel type references.
- Make the empty‑array state in the Items panel explain itself instead of showing a permanently disabled Add button. An array binding is editable only while it holds at least one item — the panel copies an existing item and never guesses the shape of a new one — so an array authored as
[]now renders that contract as a notice pointing at the code editor. This is the same invariantremoveArrayItemsalready maintained by refusing any edit that would empty an array, now stated in one place and applied consistently to both the object and primitive branches. A parse failure is reported separately from an empty list rather than both collapsing toItems (0). - Key panel field lists by property and label together instead of by label alone. A label is free text from the authored
data-bindingand carries no uniqueness guarantee, so two bindings sharing one (for exampleColoron bothcolorandbackgroundColor) collided as React keys, producing a duplicate‑key warning and letting a field's local control state carry across to the wrong binding. The commit path has addressed bindings by property since 58e2171; the keys inFieldGroup,Nodeand the nested item groups now agree with it. - Preserve explicitly empty code across Editor, Dnd, and Preview instead of replacing it with a default template or shared context value.
- Preserve untouched array item subtrees during panel edits so nested controls retain focus and interaction state.
- Reconcile host stylesheets and style tags in iframe and Shadow DOM previews so additions, updates, removals, and duplicate styles stay synchronized.
What's Changed
- fix(dnd): state the array minimum-item rule and key fields by property by @pjb0811 in #355
- fix(panel): preserve array item identity across edits by @pjb0811 in #356
- fix(editor): preserve explicit empty code by @pjb0811 in #358
- fix(panel): preserve item identity across structural edits by @pjb0811 in #360
- fix(panel): skip no-op field commits by @pjb0811 in #361
- fix(frame): reconcile copied styles with host changes by @pjb0811 in #362
- fix(build): keep Babel internals out of declarations by @pjb0811 in #363
- chore: align build toolchain across CI, bundler, and docs by @pjb0811 in #364
- 🔖 chore: version packages by @github-actions[bot] in #357
Full Changelog: v3.1.0...v3.2.0