Skip to content

Releases: theisel/astro-portabletext

[email protected]

22 Sep 17:03
352c5bf
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • d1b38ea: BREAKING Props<N> type N parameter should extend TypedObject.

    - import type { Props as $ } from "astro-portabletext/types";
    + import type { Props as $, TypedObject } from "astro-portabletext/types";
    
    - interface Greet {
    + interface Greet extends TypedObject {
      greeting: string;
    };
    
    export type Props = $<Greet>;

[email protected]

08 Sep 07:18
84596c3
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 130921c: Changed property astroClass on Props type to optional.

    Related to #ddc12ce and #a6bfa8e.

[email protected]

05 Sep 08:23
1e2005a
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • 1c102cf: Feat: Made mergeComponents and toPlainText functions available to be used.
  • f8b9a06: Removed deprecated types
  • ddc12ce: Feat: Added class property to Props type and deprecated astroClass
  • a6bfa8e: Feat: Made Block, List, ListItem and Mark components available to be used to help extend custom components.

[email protected]

31 Jul 03:34
Compare
Choose a tag to compare

0.3.0

Minor Changes

  • 900d39a: Feat: New types added and deprecated some types
  • 900d39a: PortableText components.list and components.listItem are now an object for easy merge/override
  • 900d39a: Feat: Unhandled style in Block component and unhandled markType in Mark component now throws an error
  • 900d39a: Replaces warning message with <slot />
  • 900d39a: Unknown components.type is hidden by default

Patch Changes

  • 900d39a: Adds onMissingComponent prop to PortableText

[email protected]

26 Jul 04:09
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

0.3.0-next.0

Minor Changes

  • 7b83ffe: Feat: New types added and deprecated some types
  • a353768: PortableText components.list and components.listItem are now an object for easy merge/override
  • 7c52ca2: Feat: Unhandled style in Block component and unhandled markType in Mark component now throws an error
  • ab19744: Replaces warning message with <slot />
  • 4f362ed: Unknown components.type is hidden by default

Patch Changes

  • 9b72bbc: Adds onMissingComponent prop to PortableText

[email protected]

22 Jul 04:40
Compare
Choose a tag to compare

What's Changed

  • Fix: css imports no longer causes dev server to crash by @AndreBClark in #2

New Contributors

Full Changelog: https://github.com/theisel/astro-portabletext/compare/[email protected]@0.2.4

[email protected]

05 Jul 03:52
Compare
Choose a tag to compare

Patch Changes

  • Sets normal as default block style
  • Fixes mark type link
  • Fixes unescaped strings
  • Removes whitespace around strings

[email protected]

26 May 04:44
Compare
Choose a tag to compare

Patch Changes

Add missing repository, bugs and homepage fields to package.json. This patch is for npm registery to display the relevant links.

[email protected]

23 May 05:10
Compare
Choose a tag to compare

Patch Changes

  • Fixed an issue where Typescript couldn't find astro-portabletext/types

v0.2.0

07 May 05:55
Compare
Choose a tag to compare

Breaking Change

564d953 Typescript types are now accessed through "astro-portabletext/types"