Files
webstudio/packages/react-sdk/package.json
T
Bogdan Chadkin 08ae630e41 Optimize transactions (#1816)
Ref
https://github.com/webstudio-is/webstudio-builder/pull/1812#issuecomment-1595795895

1. prevent sending requests with empty transactions or empty changes
2. optimize style updates to not replace style source selections if
instance and style source is already added to selection
2023-06-18 18:46:32 +03:00

76 lines
2.3 KiB
JSON

{
"name": "@webstudio-is/react-sdk",
"version": "0.75.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 --project tsconfig.dts.json",
"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"
},
"devDependencies": {
"@jest/globals": "^29.3.1",
"@remix-run/react": "^1.15.0",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@webstudio-is/jest-config": "workspace:^",
"@webstudio-is/scripts": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
"jest": "^29.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"type-fest": "^3.7.1",
"typescript": "5.1.3",
"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",
"@webstudio-is/asset-uploader": "workspace:^",
"@webstudio-is/css-data": "workspace:^",
"@webstudio-is/css-engine": "workspace:^",
"@webstudio-is/fonts": "workspace:^",
"@webstudio-is/generate-arg-types": "workspace:^",
"@webstudio-is/project-build": "workspace:^",
"detect-font": "^0.1.5",
"html-tags": "^3.2.0",
"nanoevents": "^7.0.1",
"nanoid": "^3.3.6",
"nanostores": "^0.7.1"
},
"exports": {
".": {
"source": "./src/index.ts",
"types": "./lib/types/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/cjs/index.js"
},
"./css-normalize": {
"source": "./src/css/normalize.ts",
"types": "./lib/types/css/normalize.d.ts",
"import": "./lib/css/normalize.js",
"require": "./lib/cjs/css/normalize.js"
}
},
"files": [
"lib/*",
"src/*",
"!*.test.*"
],
"license": "MIT",
"private": false,
"sideEffects": false
}