v0.16.0 #616
chrisvxd
announced in
Announcements
v0.16.0
#616
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Puck v0.16.0
We're celebrating 5,000 stars on GitHub! Thank you to our wonderful community! 🤩
Puck v0.16 is a big release, introducing the headline permissions API and — you guessed it — quality of life improvements. This one took a while to put together, and we appreciate your patience and support 🙏
TLDR
actionBar
override, or extend the default one using the new<ActionBar>
component.iframe
override. We also introduced theemotion-cache
plugin for the common Emotion use-case.onAction
callback.Highlights
🔐 Permissions
Permissions enable you to toggle core Puck functionality globally, on a per-component basis or dynamically. Huge thanks to @xaviemirmon for his efforts on this.
🪛 Action bar override
The new
actionBar
override enables you to create a custom action bar overlay, or extend the default one using the<ActionBar>
component:💅 iframe style injection
The
iframe
override enables you to access the iframedocument
, making it possible to inject styles into the head:The new
emotion-cache
plugin uses this API to create an emotion cache inside the iframe, making Puck easy to use with any Emotion-based component library.📜 History injection
Use the new history injection APIs to provide your own undo/redo history via the
initialHistory
prop, or dynamically via thesetHistories
andsetHistoryIndex
functions fromusePuck().history
.React to actions
The
onAction
API enables you to react to Puck’s internal actions as they’re dispatched:Breaking changes
history.data
is nowhistory.state
When using the usePuck
history
API,data
is now renamedstate
.history.id
is now optional (TypeScript)When using the usePuck
history
APIid
is now optional. Puck will always generate anid
, but TypeScript may complain.lastData
is now returned asnull
instead of{}
when empty in resolversWhen using the
lastData
option provided toresolveData
orresolveFields
functions, and there is no previous data,lastData
will now benull
instead of{}
.Full changelog
Features
Bug Fixes
New Contributors
Full Changelog: v0.15.0...v0.16.0
This discussion was created from the release v0.16.0.
Beta Was this translation helpful? Give feedback.
All reactions