Releases: theisel/astro-portabletext
Releases · theisel/astro-portabletext
[email protected]
Minor Changes
-
d1b38ea: BREAKING
Props<N>
typeN
parameter should extendTypedObject
.- 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]
Patch Changes
-
130921c: Changed property
astroClass
onProps
type tooptional
.Related to #ddc12ce and #a6bfa8e.
[email protected]
Minor Changes
- 1c102cf: Feat: Made
mergeComponents
andtoPlainText
functions available to be used. - f8b9a06: Removed deprecated types
- ddc12ce: Feat: Added
class
property toProps
type and deprecatedastroClass
- a6bfa8e: Feat: Made
Block
,List
,ListItem
andMark
components available to be used to help extend custom components.
[email protected]
0.3.0
Minor Changes
- 900d39a: Feat: New types added and deprecated some types
- 900d39a: PortableText
components.list
andcomponents.listItem
are now an object for easy merge/override - 900d39a: Feat: Unhandled
style
inBlock
component and unhandledmarkType
inMark
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 toPortableText
[email protected]
0.3.0-next.0
Minor Changes
- 7b83ffe: Feat: New types added and deprecated some types
- a353768: PortableText
components.list
andcomponents.listItem
are now an object for easy merge/override - 7c52ca2: Feat: Unhandled
style
inBlock
component and unhandledmarkType
inMark
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 toPortableText
[email protected]
What's Changed
- Fix: css imports no longer causes dev server to crash by @AndreBClark in #2
New Contributors
- @AndreBClark made their first contribution in #2
Full Changelog: https://github.com/theisel/astro-portabletext/compare/[email protected]@0.2.4
[email protected]
Patch Changes
- Sets
normal
as default block style - Fixes mark type
link
- Fixes unescaped strings
- Removes whitespace around strings
[email protected]
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]
Patch Changes
- Fixed an issue where Typescript couldn't find
astro-portabletext/types