Skip to content

Releases: theisel/astro-portabletext

astro-portabletext@0.9.0-next.1

13 May 00:17
cff0b78
Compare
Choose a tag to compare
Pre-release

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

09 May 06:36
8d61106
Compare
Choose a tag to compare
Pre-release

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
      • Removed: deprecated onMissingComponent function

astro-portabletext@0.8.1

07 May 20:11
16a74bc
Compare
Choose a tag to compare

Patch Changes

  • e49f2ab: Added PortableTextBlock type to PortableTextProps<Value> parameter

astro-portabletext@0.8.0

02 Feb 18:48
0c2ab5b
Compare
Choose a tag to compare

Minor Changes

  • dab66b0: #22 / missing export LIST_NEST_MODE_HTML

    Updated dependencies to fix the issue. Thanks @TaraBryn.

    Package From To
    @portabletext/toolkit 1.0.6 2.0.1
    @portabletext/types 2.0.0 2.0.2

astro-portabletext@0.8.0-next.0

02 Feb 17:52
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • dab66b0: #22 / missing export LIST_NEST_MODE_HTML

    Updated dependencies to fix the issue. Thanks @TaraBryn.

    Package From To
    @portabletext/toolkit 1.0.6 2.0.1
    @portabletext/types 2.0.0 2.0.2

astro-portabletext@0.7.0

31 Oct 07:44
Compare
Choose a tag to compare

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 in node. Use this when you need to fall back to the default component.
    getUnknownComponent function Returns the counterpart unknown(Block|List|ListItem|Mark|Type) component related to the passed in node.
    notifyMissingComponentHandler function Calls onMissingComponent handler. Pass in a string to override default message.

    Deprecated

    Property Type Description
    next function Use getDefaultComponent
    onMissingComponent function Use notifyMissingComponentHandler
  • aa3201a: Updated dependency @portabletext/types from v1 to v2

Patch Changes

  • c9547e1: Feat: Added <menu> to components props list type

  • 67cdf4c: Fixes "Cannot redefine property: Symbol(astro-portabletext)" error

    Astro in dev mode caused an issue on refresh

  • 4f194e6: Fixes missing components.listItem.menu default component

astro-portabletext@0.7.0-next.4

31 Oct 07:37
bb0a0eb
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • 4f194e6: Fixes missing components.listItem.menu default component

astro-portabletext@0.7.0-next.3

30 Oct 13:52
7391ef3
Compare
Choose a tag to compare
Pre-release

Patch Changes

astro-portabletext@0.7.0-next.2

30 Oct 05:50
c9edc93
Compare
Choose a tag to compare
Pre-release

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

29 Oct 04:46
94e0f6d
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • aa3201a: Updated dependency @portabletext/types from v1 to v2