I'm needing https://github.com/facebook/lexical/pull/6693 I'm going to keep the dependency bump and feature updates in separate PRs unless they're breaking changes.* **BREAKING:** This upgrades our lexical dependencies from 0.18.0 to 0.20.0. If you have lexical dependencies installed in your project, you will have to upgrade those. Additionally, the lexical team may introduce breaking changes in this upgrade. If you use lexical APIs directly, please consult their changelog for more information: https://github.com/facebook/lexical/releases
154 lines
5.7 KiB
JSON
154 lines
5.7 KiB
JSON
{
|
|
"name": "@payloadcms/richtext-lexical",
|
|
"version": "3.0.0-beta.127",
|
|
"description": "The officially supported Lexical richtext adapter for Payload",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/richtext-lexical"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./client": {
|
|
"import": "./src/exports/client/index.ts",
|
|
"types": "./src/exports/client/index.ts",
|
|
"default": "./src/exports/client/index.ts"
|
|
},
|
|
"./rsc": {
|
|
"import": "./src/exports/server/rsc.ts",
|
|
"types": "./src/exports/server/rsc.ts",
|
|
"default": "./src/exports/server/rsc.ts"
|
|
},
|
|
"./migrate": {
|
|
"import": "./src/exports/server/migrate.ts",
|
|
"types": "./src/exports/server/migrate.ts",
|
|
"default": "./src/exports/server/migrate.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm build:reactcompiler",
|
|
"build:babel": "rm -rf dist_optimized && babel dist --out-dir dist_optimized --source-maps --extensions .ts,.js,.tsx,.jsx,.cjs,.mjs && rm -rf dist && mv dist_optimized dist",
|
|
"build:clean": "find . \\( -type d \\( -name build -o -name dist -o -name .cache \\) -o -type f -name tsconfig.tsbuildinfo \\) -exec rm -rf {} + && pnpm build",
|
|
"build:esbuild": "node bundle.js && rm -rf dist/exports/client && mv dist/exports/client_optimized dist/exports/client",
|
|
"build:reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm build:swc && pnpm build:babel && pnpm copyfiles && pnpm build:esbuild && pnpm build:types",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"build:without_reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc && pnpm build:esbuild && rm -rf dist/exports/client && mv dist/exports/client_unoptimized dist/exports/client",
|
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
|
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"prepublishOnly": "pnpm clean && pnpm turbo build",
|
|
"translateNewKeys": "node --no-deprecation --import @swc-node/register/esm-register scripts/translateNewKeys.ts"
|
|
},
|
|
"dependencies": {
|
|
"@lexical/headless": "0.20.0",
|
|
"@lexical/link": "0.20.0",
|
|
"@lexical/list": "0.20.0",
|
|
"@lexical/mark": "0.20.0",
|
|
"@lexical/markdown": "0.20.0",
|
|
"@lexical/react": "0.20.0",
|
|
"@lexical/rich-text": "0.20.0",
|
|
"@lexical/selection": "0.20.0",
|
|
"@lexical/utils": "0.20.0",
|
|
"@payloadcms/translations": "workspace:*",
|
|
"@payloadcms/ui": "workspace:*",
|
|
"@types/uuid": "10.0.0",
|
|
"bson-objectid": "2.0.4",
|
|
"dequal": "2.0.3",
|
|
"escape-html": "1.0.3",
|
|
"lexical": "0.20.0",
|
|
"react-error-boundary": "4.0.13",
|
|
"ts-essentials": "10.0.3",
|
|
"uuid": "10.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.24.5",
|
|
"@babel/core": "^7.24.5",
|
|
"@babel/preset-env": "^7.24.5",
|
|
"@babel/preset-react": "^7.24.1",
|
|
"@babel/preset-typescript": "^7.24.1",
|
|
"@lexical/eslint-plugin": "0.20.0",
|
|
"@payloadcms/eslint-config": "workspace:*",
|
|
"@types/escape-html": "1.0.4",
|
|
"@types/json-schema": "7.0.15",
|
|
"@types/node": "22.5.4",
|
|
"@types/react": "npm:types-react@19.0.0-rc.1",
|
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
|
|
"babel-plugin-react-compiler": "0.0.0-experimental-24ec0eb-20240918",
|
|
"babel-plugin-transform-remove-imports": "^1.8.0",
|
|
"esbuild": "0.23.1",
|
|
"esbuild-sass-plugin": "3.3.1",
|
|
"eslint-plugin-react-compiler": "0.0.0-experimental-7670337-20240918",
|
|
"payload": "workspace:*",
|
|
"swc-plugin-transform-remove-imports": "1.15.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@faceless-ui/modal": "3.0.0-beta.2",
|
|
"@faceless-ui/scroll-info": "2.0.0-beta.0",
|
|
"@lexical/headless": "0.20.0",
|
|
"@lexical/link": "0.20.0",
|
|
"@lexical/list": "0.20.0",
|
|
"@lexical/mark": "0.20.0",
|
|
"@lexical/markdown": "0.20.0",
|
|
"@lexical/react": "0.20.0",
|
|
"@lexical/rich-text": "0.20.0",
|
|
"@lexical/selection": "0.20.0",
|
|
"@lexical/table": "0.20.0",
|
|
"@lexical/utils": "0.20.0",
|
|
"@payloadcms/next": "workspace:*",
|
|
"lexical": "0.20.0",
|
|
"payload": "workspace:*",
|
|
"react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
|
|
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020"
|
|
},
|
|
"engines": {
|
|
"node": "^18.20.2 || >=20.9.0"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./client": {
|
|
"import": "./dist/exports/client/index.js",
|
|
"types": "./dist/exports/client/index.d.ts",
|
|
"default": "./dist/exports/client/index.js"
|
|
},
|
|
"./rsc": {
|
|
"import": "./dist/exports/server/rsc.js",
|
|
"types": "./dist/exports/server/rsc.d.ts",
|
|
"default": "./dist/exports/server/rsc.js"
|
|
},
|
|
"./migrate": {
|
|
"import": "./dist/exports/server/migrate.js",
|
|
"types": "./dist/exports/server/migrate.d.ts",
|
|
"default": "./dist/exports/server/migrate.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"registry": "https://registry.npmjs.org/",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"overrides": {
|
|
"@types/react": "npm:types-react@19.0.0-rc.1",
|
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
|
|
}
|
|
}
|