@portabletext/react
Advanced tools
+7
-7
| { | ||
| "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", |
+4
-2
@@ -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 |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
128909
0.09%415
0.48%