Puck 0.24 lets you organize fields into groups and tabs, adds checkbox fields, improves drag-and-drop with drag handles, and includes several other API improvements.
Puck_v024.mp4
This is a summary of the main new features and full changelog.
Read the full release post on our blog.
Summary
- Custom field layouts: Control how fields are arranged per component using
renderFields. - Field groups and tabs: Organize related fields into collapsible groups or tabs.
- Checkbox fields: Let users select multiple values from a set of options.
- Drag handles: Make components easier to move in deeply nested layouts.
Full changelog
Features
- add opt-in drag handle to action bar (be1d341)
- add option to hide fields through fieldTypes overrides (9e95619)
- add support for checkbox fields (03d5085)
- add variant to object fields to change appearance (50ca904)
- expose the InlineTextField component for creating custom inline fields (fcfd4b9)
- forward additional props to slot
ascomponent (84e1764) - provide rendered
fieldsto fields override (8c13910) - show placeholders in inline fields (e0b31ba)
- support expandable object fields (6a867c0)
- support field grouping via renderFields and FieldGroup (62d23bd)
- support field tabs via FieldTab (6a823ce)
- support field transforms in
<Render />(948ee04)
Bug Fixes
- accept custom fields in fieldTypes override type (169405a)
- apply field transforms to root fields (7eb6597)
- don't capture backspace from inputs used in interactive mode (1839d14)
- don't crash when using Chrome translate (90665df)
- don't override transformed fields with rich text (cc9313c)
- don't trigger hotkeys from stuck modifier keys after switching windows (6a396a5)
- preserve aspect ratio for explicit viewport heights (a949a02)
- prevent inline text fields from shifting layout on hover (9e917a3)
- resolve each node once in resolveAllData (c1e183e)
- respect disabled richtext textAlign options in pasted content (dc29b7d)
- stop field title from moving when no breadcrumbs exist (03e660b)