Files
webstudio/packages/react-sdk/package.json
T
Bogdan Chadkin 496c9197ad Upgrade to react 18 (#1452)
Ref https://react.dev/blog/2022/03/29/react-v18
https://react.dev/blog/2022/03/08/react-18-upgrade-guide

- bumped all deps to use react 18
- storybook still somehow enforces react 17 (but not react-dom) so
forces with overrides until bump of storybook
- both storybook and remix still use legacy api so concurrent features
are not yet enabled. Will do in separate PRs
- fixed weird react-hot-toast error which expose function as renderable
type
- fixed a few untyped useCallback which failed with new react types
- sdk size became a little bigger
2023-04-16 15:33:03 +07:00

81 lines
2.6 KiB
JSON

{
"name": "@webstudio-is/react-sdk",
"version": "0.56.0",
"description": "Webstudio JavaScript / TypeScript API",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
"dev": "build-package --watch",
"build": "build-package",
"build:args": "generate-arg-types './src/components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
"dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",
"typecheck": "tsc --noEmit",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
"checks": "pnpm typecheck && pnpm lint && pnpm test",
"storybook:run": "start-storybook -p 6006",
"storybook:build": "build-storybook"
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@jest/globals": "^29.3.1",
"@remix-run/node": "1.15.0",
"@remix-run/react": "1.15.0",
"@remix-run/server-runtime": "1.15.0",
"@storybook/react": "^6.5.16",
"@types/node": "^18.11.18",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@webstudio-is/jest-config": "workspace:^",
"@webstudio-is/scripts": "workspace:^",
"@webstudio-is/storybook-config": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
"jest": "^29.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "5.0.3",
"zod": "^3.19.1"
},
"peerDependencies": {
"@remix-run/react": "1.9.0",
"@remix-run/server-runtime": "1.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zod": "^3.19.1"
},
"dependencies": {
"@nanostores/react": "^0.4.1",
"@webstudio-is/asset-uploader": "workspace:^",
"@webstudio-is/css-data": "workspace:^",
"@webstudio-is/css-engine": "workspace:^",
"@webstudio-is/css-vars": "workspace:^",
"@webstudio-is/fonts": "workspace:^",
"@webstudio-is/generate-arg-types": "workspace:^",
"@webstudio-is/icons": "workspace:^",
"@webstudio-is/image": "workspace:^",
"@webstudio-is/prisma-client": "workspace:^",
"@webstudio-is/project-build": "workspace:^",
"detect-font": "^0.1.5",
"html-tags": "^3.2.0",
"nanoevents": "^7.0.1",
"nanostores": "^0.7.1"
},
"exports": {
".": {
"source": "./src/index.ts",
"import": "./lib/index.js",
"require": "./lib/cjs/index.js"
}
},
"types": "lib/types/index.d.ts",
"files": [
"lib/*",
"src/*",
"!*.test.*"
],
"license": "MIT",
"private": false,
"sideEffects": false
}