Repository navigation
v4.3.0
Version 4.3.0 – Adds an element picker to the canvas preview, collapsible and draggable items editor, and several bug fixes that improve error handling, iframe sizing, value editing, and data‑id consistency.
Minor Changes
- Enable an element picker in the canvas preview: a crosshair button activates a picker that outlines the element under the pointer, allows selection of its section and nested fields, and reports picks via
onNodePickonLive.Dnd. The picker works in all frame modes and can be controlled withuseDndInspector()(2e60038) - Collapse items and reorder them by dragging in the Items editor: each item can collapse to its header, with “Collapse all” / “Expand all” controls; items can be reordered via mouse, touch, or keyboard, committing moves through
actions.move.useDndItems()exposes expansion state for custom panels (60532b8)
Patch Changes
Live.Error.Boundaryno longer renders its fallback twice whenresetKeyschange after an error, preventing unnecessary effect re‑runs (8be933b)- Fix iframe preview collapsing to 1 px when
syncStyleis switched on after mounting and the host page setshtml { height: 100% !important }; synced styles now always precede the frame’s own style (e1bc134) setEditableValuenow updates only the targeted leaf atpath, preserving the rest of the value, JSX formatting, and comments (596735a)- Fill a section’s empty
data-ids consistently in both the panel and canvas preview, deriving them from the section’s document‑order id (<section id>-1,-2, …) (d3c06ea)
What's Changed
- docs(panel): show one element's fields at a time by grouping bindings by id by @pjb0811 in #469
- fix(frame): keep synced host styles in front of the iframe's container style by @pjb0811 in #470
- fix(ast): edit only the leaf in setEditableValue and keep the rest as written by @pjb0811 in #473
- fix(error): clear a caught error in the render that sees new resetKeys by @pjb0811 in #472
- docs(binding): suggest common meta keys for help text, grouping and visibility by @pjb0811 in #474
- feat(dnd): collapse items and reorder them by dragging in the Items editor by @pjb0811 in #475
- chore: run lint-staged through pnpm in the pre-commit hook by @pjb0811 in #477
- docs: align the PR template with the shared Summary / Changes / How to test structure by @pjb0811 in #479
- fix(dnd): fill empty element ids the same way in the panel and the preview by @pjb0811 in #478
- feat(dnd): pick an element in the canvas preview to edit its fields by @pjb0811 in #480
- chore: version packages by @github-actions[bot] in #471
Full Changelog: v4.2.0...v4.3.0