Puck v0.14.0 introduces the long awaited viewport switching feature, with drag-and-drop-friendly iframe rendering for full CSS media query support. Pu

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-04-18 10:00:03

Puck v0.14.0 introduces the long awaited viewport switching feature, with drag-and-drop-friendly iframe rendering for full CSS media query support.

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.

Both number and array fields now accept min and max parameters, allowing you to control the minimum and maximum values (or number of values) for user input. Thanks to @jabba-the-bug and @jperasmus for their contributions.

The new filterFields API on external fields allows you to render filters that are provided to your fetchList method using the familiar fields API.

NB An issue occurred publishing @measured/puck-field-contentful@v0.14.0. We will be introducing @measured/puck-field-contentful@v0.14.1 soon to address this.

Leave a Comment