Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

astro-portabletext

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-portabletext - npm Package Compare versions

Comparing version 0.9.4 to 0.9.5

9

lib/types.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc