astro-portabletext
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -0,1 +1,2 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import type { | ||
@@ -27,3 +28,3 @@ ToolkitListNestMode, | ||
export interface PortableTextProps< | ||
Value extends TypedObject = PortableTextBlock | ArbitraryTypedObject | ||
Value extends TypedObject = PortableTextBlock | ArbitraryTypedObject, | ||
> { | ||
@@ -93,7 +94,7 @@ /** | ||
*/ | ||
mark: ComponentOrRecord<Mark<Record<string, unknown>>>; | ||
mark: ComponentOrRecord<Mark<Record<string, any>>> | ComponentOrRecord<Mark>; | ||
/** | ||
* Used when a `mark` handler isn't found | ||
*/ | ||
unknownMark: Component<Mark<Record<string, unknown>>>; | ||
unknownMark: Component<Mark<Record<string, any>>> | Component<Mark>; | ||
/** | ||
@@ -181,3 +182,3 @@ * How line breaks should be rendered | ||
export interface Mark< | ||
MarkDef extends Record<string, unknown> | undefined = undefined | ||
MarkDef extends Record<string, unknown> | undefined = undefined, | ||
> extends ToolkitNestedPortableTextSpan { | ||
@@ -184,0 +185,0 @@ markDef: MarkDef & PortableTextMarkDefinition; |
{ | ||
"name": "astro-portabletext", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"type": "module", | ||
@@ -43,4 +43,4 @@ "description": "Render Portable Text with Astro", | ||
"dependencies": { | ||
"@portabletext/toolkit": "^2.0.8", | ||
"@portabletext/types": "^2.0.6" | ||
"@portabletext/toolkit": "^2.0.10", | ||
"@portabletext/types": "^2.0.8" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25011
304
Updated@portabletext/types@^2.0.8