v0.14.0 #397
chrisvxd
announced in
Announcements
v0.14.0
#397
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Puck v0.14.0 introduces the long awaited viewport switching feature, with drag-and-drop-friendly iframe rendering for full CSS media query support.
TLDR
viewports
API.min
/max
params, and external fields can now render search filters using the familiarfields
API.Highlights
📱 Viewport switching
Puck now supports viewport switching with full iframe rendering, without compromising the drag-and-drop experience. This was a significant effort that required patching the underlying drag-and-drop library to support iframes and CSS transforms, and introducing a new library for syncing styles between host and iframe.
Puck.Viewport.Switching.mp4
Viewports are enabled by default, and can be customized by passing an array to the
viewports
API.🔢 New field APIs
Both
number
andarray
fields now acceptmin
andmax
parameters, allowing you to control the minimum and maximum values (or number of values) for user input. Thanks to TBD and TBD for their contributions.The new
filterFields
API onexternal
fields allows you to render filters that are provided to yourfetchList
method using the familiarfields
API.🔡 New component label API
Customize the name of your component with the new
label
API. Thanks to TBD for contributing this feature.Contentful field package
Use the new
field-contentful
package to load content out of your Contentful space.NB An issue occurred publishing
@measured/[email protected]
. Please use@measured/[email protected]
.Breaking changes
iframes are enabled by default
Viewport rendering with iframes is enabled by default. If you need to disable this, you can pass
iframes={{ enabled: false }}
to the Puck component.Changelog
Features
min
andmax
APIs to array fields (53b7937)min
andmax
APIs to number fields (4932a6e)selectedItem
convenience param to usePuck (c1224d0)Bug Fixes
New Contributors
Full Changelog: v0.13.1...v0.14.0
This discussion was created from the release v0.14.0.
Beta Was this translation helpful? Give feedback.
All reactions