astro-portabletext@0.7.0-next.0
Pre-release
Pre-release
github-actions
released this
29 Oct 03:43
·
211 commits
to main
since this release
Minor Changes
-
Feat:
usePortableText(node)
utility function returns new properties and some have been deprecated.Refer to the
utils docs
for usage.Added
Property Type Description getDefaultComponent function
Returns the default
component related to the passed innode
. Use this when you need to fall back to thedefault
component.getUnknownComponent function
Returns the counterpart unknown(Block|List|ListItem|Mark|Type)
component related to the passed innode
.notifyMissingComponentHandler function
Calls onMissingComponent
handler. Pass in astring
to overridedefault
message.Deprecated
Property Type Description next function
Use getDefaultComponent
onMissingComponent function
Use notifyMissingComponentHandler