Files
webstudio/packages/react-sdk/package.json
T
Bogdan Chadkin 60f2b1e442 Accept components map in renderers (#1679)
Ref https://github.com/webstudio-is/webstudio-builder/issues/1129

Here refactored registered components away from global state in
react-sdk package in favour of components map.

The map can be easily computed in runtime or generated for worker.
Default and custom (remix) components registering is unified now and
both libraries can be split into separate packages.

Temporary added "@webstudio/react-sdk/components" entry point to get a
record of components.
2023-05-29 14:21:13 +07:00

86 lines
2.8 KiB
JSON

{
"name": "@webstudio-is/react-sdk",
"version": "0.68.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/app/custom-components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
"dts": "tsc --declarationDir lib/types",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"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/react": "^1.15.0",
"@storybook/react": "^6.5.16",
"@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",
"type-fest": "^3.7.1",
"zod": "^3.21.4"
},
"peerDependencies": {
"@remix-run/react": "^1.15.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zod": "^3.19.1"
},
"dependencies": {
"@nanostores/react": "^0.4.1",
"@react-aria/utils": "^3.13.3",
"@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/form-handlers": "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",
"nanoid": "^3.2.0",
"nanostores": "^0.7.1"
},
"exports": {
".": {
"source": "./src/index.ts",
"import": "./lib/index.js",
"require": "./lib/cjs/index.js"
},
"./components": {
"source": "./src/components/components.ts",
"import": "./lib/components/components.js",
"require": "./lib/cjs/components/components.js"
}
},
"types": "lib/types/index.d.ts",
"files": [
"lib/*",
"src/*",
"!*.test.*"
],
"license": "MIT",
"private": false,
"sideEffects": false
}