Releases: theisel/astro-portabletext
Releases · theisel/astro-portabletext
astro-portabletext@0.9.0-next.1
Patch Changes
-
343552e: Removed compiling step for package release:
- Pre-compiling isn't necessary as Astro handles Typescript for us
astro-portabletext@0.9.0-next.0
Minor Changes
-
1eb192e: BREAKING
astro-portabletext/utils
usePortableText(node)
- Removed:
getWarningMessage
function- Meant for internal use
- Removed:
notifyMissingComponentHandler
function- This is handled for you and has no purpose
- Removed: deprecated
next
function- Use
getDefaultComponent
- Use
- Removed: deprecated
onMissingComponent
function
- Removed:
astro-portabletext@0.8.1
Patch Changes
- e49f2ab: Added
PortableTextBlock
type toPortableTextProps<Value>
parameter
astro-portabletext@0.8.0
astro-portabletext@0.8.0-next.0
astro-portabletext@0.7.0
Minor Changes
-
9ba2709: 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
-
aa3201a: Updated dependency
@portabletext/types
from v1 to v2
Patch Changes
astro-portabletext@0.7.0-next.4
Patch Changes
- 4f194e6: Fixes missing
components.listItem.menu
default component
astro-portabletext@0.7.0-next.3
astro-portabletext@0.7.0-next.2
Patch Changes
-
67cdf4c: Fixes "Cannot redefine property: Symbol(astro-portabletext)" error
Astro in
dev
mode caused an issue on refresh
astro-portabletext@0.7.0-next.1
Minor Changes
- aa3201a: Updated dependency
@portabletext/types
from v1 to v2