@portabletext/react
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,3 @@ | ||
/// <reference types="react" /> | ||
import type {ArbitraryTypedObject} from '@portabletext/types' | ||
@@ -2,0 +4,0 @@ import type {ComponentType} from 'react' |
189
package.json
{ | ||
"name": "@portabletext/react", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Render Portable Text with React", | ||
"types": "./dist/react-portable-text.d.ts", | ||
"source": "./src/index.ts", | ||
"module": "./dist/react-portable-text.esm.js", | ||
"main": "./dist/react-portable-text.js", | ||
"keywords": [ | ||
"portable-text" | ||
], | ||
"homepage": "https://github.com/portabletext/react-portabletext#readme", | ||
"bugs": { | ||
"url": "https://github.com/portabletext/react-portabletext/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/portabletext/react-portabletext.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"sideEffects": false, | ||
"exports": { | ||
@@ -23,6 +33,6 @@ ".": { | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
"node": "^14.13.1 || >=16.0.0" | ||
}, | ||
"main": "./dist/react-portable-text.js", | ||
"module": "./dist/react-portable-text.esm.js", | ||
"source": "./src/index.ts", | ||
"types": "./dist/react-portable-text.d.ts", | ||
"files": [ | ||
@@ -34,67 +44,33 @@ "dist", | ||
"scripts": { | ||
"lint": "eslint . && tsc --noEmit", | ||
"prepublishOnly": "npm run build && npm run lint", | ||
"build": "run-s clean pkg:build pkg:check", | ||
"build:demo": "vite build demo --config=./vite.config.demo.ts --base=/react-portabletext/", | ||
"build": "rimraf dist && pkg-utils build && pkg-utils --strict", | ||
"clean": "rimraf dist", | ||
"dev": "vite demo", | ||
"format": "prettier --write --cache --ignore-unknown .", | ||
"lint": "eslint .", | ||
"pkg:build": "pkg-utils build --strict", | ||
"pkg:check": "pkg-utils --strict", | ||
"prepare": "husky install", | ||
"prepublishOnly": "run-s build lint type-check", | ||
"start": "vite demo", | ||
"test": "tap test/*.test.*", | ||
"prettify": "prettier --write src/**/*.ts src/**/*.tsx test/**/*.ts test/**/*.tsx", | ||
"prettify-check": "prettier --check src/**/*.ts src/**/*.tsx test/**/*.ts test/**/*.tsx" | ||
"type-check": "tsc --noEmit" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/portabletext/react-portabletext.git" | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"keywords": [ | ||
"portable-text" | ||
], | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@portabletext/toolkit": "^2.0.0", | ||
"@portabletext/types": "^2.0.0" | ||
"lint-staged": { | ||
"*": [ | ||
"prettier --write --cache --ignore-unknown" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@sanity/pkg-utils": "^2.2.3", | ||
"@sanity/ui": "1.0.0-beta.32", | ||
"@types/leaflet": "^1.9.0", | ||
"@types/react": "^18.0.24", | ||
"@types/react-dom": "^18.0.8", | ||
"@types/refractor": "^3.0.2", | ||
"@types/styled-components": "^5.1.26", | ||
"@types/tap": "^15.0.7", | ||
"@types/ws": "^8.5.3", | ||
"@typescript-eslint/eslint-plugin": "^5.42.0", | ||
"@typescript-eslint/parser": "^5.42.0", | ||
"esbuild-register": "^3.3.2", | ||
"eslint": "^8.26.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-sanity": "^6.0.0", | ||
"eslint-plugin-react": "^7.31.10", | ||
"leaflet": "^1.9.2", | ||
"prettier": "^2.6.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-leaflet": "^4.1.0", | ||
"react-refractor": "^2.1.7", | ||
"refractor": "^4.8.0", | ||
"rimraf": "^3.0.2", | ||
"rollup-plugin-visualizer": "^5.8.3", | ||
"styled-components": "^5.3.6", | ||
"tap": "^16.3.0", | ||
"typescript": "^4.6.3", | ||
"vite": "^3.2.2" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17 || ^18" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/portabletext/react-portabletext/issues" | ||
}, | ||
"homepage": "https://github.com/portabletext/react-portabletext#readme", | ||
"prettier": { | ||
"bracketSpacing": false, | ||
"plugins": [ | ||
"prettier-plugin-packagejson" | ||
], | ||
"printWidth": 100, | ||
"semi": false, | ||
"printWidth": 100, | ||
"bracketSpacing": false, | ||
"singleQuote": true | ||
@@ -104,7 +80,7 @@ }, | ||
"parserOptions": { | ||
"ecmaVersion": 9, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"modules": true | ||
} | ||
}, | ||
"ecmaVersion": 9, | ||
"sourceType": "module" | ||
}, | ||
@@ -118,12 +94,83 @@ "extends": [ | ||
"ignorePatterns": [ | ||
"lib/**/" | ||
"dist/**/" | ||
] | ||
}, | ||
"release": { | ||
"branches": [ | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
"main", | ||
{ | ||
"name": "beta", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "alpha", | ||
"prerelease": true | ||
} | ||
], | ||
"extends": "@sanity/semantic-release-preset" | ||
}, | ||
"tap": { | ||
"check-coverage": false, | ||
"node-arg": [ | ||
"-r", | ||
"esbuild-register" | ||
], | ||
"check-coverage": false | ||
] | ||
}, | ||
"dependencies": { | ||
"@portabletext/toolkit": "^2.0.1", | ||
"@portabletext/types": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.4.4", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@sanity/pkg-utils": "^2.2.6", | ||
"@sanity/semantic-release-preset": "^4.0.0", | ||
"@sanity/ui": "1.2.5", | ||
"@types/leaflet": "^1.9.1", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"@types/refractor": "^3.0.2", | ||
"@types/styled-components": "^5.1.26", | ||
"@types/tap": "^15.0.8", | ||
"@types/ws": "^8.5.4", | ||
"@typescript-eslint/eslint-plugin": "^5.53.0", | ||
"@typescript-eslint/parser": "^5.53.0", | ||
"commitizen": "^4.3.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"esbuild": "^0.17.10", | ||
"esbuild-register": "^3.4.2", | ||
"eslint": "^8.35.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-config-sanity": "^6.0.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"husky": "^8.0.3", | ||
"leaflet": "^1.9.3", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.8.4", | ||
"prettier-plugin-packagejson": "^2.4.3", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-is": "^18.2.0", | ||
"react-leaflet": "^4.2.0", | ||
"react-refractor": "^2.1.7", | ||
"refractor": "^4.8.0", | ||
"rimraf": "^4.1.2", | ||
"rollup-plugin-visualizer": "^5.9.0", | ||
"semantic-release": "^20.1.0", | ||
"styled-components": "^5.3.6", | ||
"tap": "^16.3.4", | ||
"typescript": "^4.9.5", | ||
"vite": "^4.1.4" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17 || ^18" | ||
}, | ||
"packageManager": "pnpm@7.28.0", | ||
"engines": { | ||
"node": "^14.13.1 || >=16.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
# @portabletext/react | ||
[![npm version](https://img.shields.io/npm/v/@portabletext/react.svg?style=flat-square)](https://www.npmjs.com/package/@portabletext/react)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@portabletext/react?style=flat-square)](https://bundlephobia.com/result?p=@portabletext/react)[![Build Status](https://img.shields.io/github/workflow/status/portabletext/react-portabletext/test/main.svg?style=flat-square)](https://github.com/portabletext/react-portabletext/actions?query=workflow%3Atest) | ||
[![npm version](https://img.shields.io/npm/v/@portabletext/react.svg?style=flat-square)](https://www.npmjs.com/package/@portabletext/react)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@portabletext/react?style=flat-square)](https://bundlephobia.com/result?p=@portabletext/react)[![Build Status](https://img.shields.io/github/actions/workflow/status/portabletext/react-portabletext/main.yml?branch=main&style=flat-square)](https://github.com/portabletext/react-portabletext/actions?query=workflow%3Atest) | ||
@@ -5,0 +5,0 @@ Render [Portable Text](https://portabletext.org/) with React. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
130579
1939
40
Updated@portabletext/toolkit@^2.0.1
Updated@portabletext/types@^2.0.2