🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@portabletext/react

Package Overview
Dependencies
Maintainers
9
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portabletext/react - npm Package Compare versions

Comparing version
4.0.1
to
4.0.2
+7
-7
package.json
{
"name": "@portabletext/react",
"version": "4.0.1",
"version": "4.0.2",
"description": "Render Portable Text with React",

@@ -80,12 +80,12 @@ "keywords": [

"@sanity/browserslist-config": "^1.0.5",
"@sanity/pkg-utils": "^8.0.3",
"@sanity/pkg-utils": "^8.1.1",
"@sanity/prettier-config": "^2.0.1",
"@sanity/ui": "^3.0.7",
"@sanity/ui": "^3.0.8",
"@types/leaflet": "^1.9.20",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.8",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-react": "^5.0.1",
"@vitejs/plugin-react": "^5.0.2",
"babel-plugin-react-compiler": "19.1.0-rc.2",

@@ -111,3 +111,3 @@ "esbuild": "^0.25.9",

"rollup-plugin-visualizer": "^6.0.3",
"styled-components": "npm:@sanity/css-in-js@6.1.18-33",
"styled-components": "npm:@sanity/css-in-js@6.1.19",
"typescript": "5.9.2",

@@ -114,0 +114,0 @@ "vite": "^7.1.3",

@@ -175,5 +175,7 @@ # @portabletext/react

```jsx
```tsx
import {PortableText, PortableTextReactComponents} from '@portabletext/react'
// `components` object you'll pass to PortableText
const components = {
const components: Partial<PortableTextReactComponents> = {
block: {

@@ -180,0 +182,0 @@ // Ex. 1: customizing common block types