mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Ref https://github.com/webstudio-is/webstudio/issues/2532 Objects are essential for cms. Here expression can specify objects and access their properties. All expressions are transpiled into optional chains before execution. This will prevent user from seeing errors like "cannot access "something" of undefined". Added "json" type to variable values for objects and arrays. <img width="283" alt="Screenshot 2023-11-06 at 19 59 42" src="https://github.com/webstudio-is/webstudio/assets/5635476/0e0234b1-d194-4038-bcee-6b93a3e6e63b">
71 lines
2.1 KiB
JSON
71 lines
2.1 KiB
JSON
{
|
|
"name": "@webstudio-is/react-sdk",
|
|
"version": "0.114.0",
|
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
|
|
"build": "rm -rf lib && esbuild src/index.ts ./src/css/normalize.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
"dts": "tsc --project tsconfig.dts.json",
|
|
"typecheck": "tsc",
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
|
|
"checks": "pnpm typecheck && pnpm test"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/globals": "^29.7.0",
|
|
"@remix-run/react": "^1.19.2",
|
|
"@types/react": "^18.2.21",
|
|
"@types/react-dom": "^18.2.7",
|
|
"@webstudio-is/jest-config": "workspace:*",
|
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"strip-indent": "^4.0.0",
|
|
"type-fest": "^4.3.1",
|
|
"typescript": "5.2.2",
|
|
"zod": "^3.21.4"
|
|
},
|
|
"peerDependencies": {
|
|
"@remix-run/react": "^1.19.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"zod": "^3.19.1"
|
|
},
|
|
"dependencies": {
|
|
"@jsep-plugin/assignment": "^1.2.1",
|
|
"@jsep-plugin/object": "^1.2.1",
|
|
"@webstudio-is/css-engine": "workspace:*",
|
|
"@webstudio-is/fonts": "workspace:*",
|
|
"@webstudio-is/image": "workspace:*",
|
|
"@webstudio-is/sdk": "workspace:*",
|
|
"change-case": "^5.0.2",
|
|
"html-tags": "^3.3.1",
|
|
"jsep": "^1.3.8",
|
|
"nanoid": "^5.0.1",
|
|
"title-case": "^4.1.0"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"webstudio": "./src/index.ts",
|
|
"types": "./lib/types/index.d.ts",
|
|
"import": "./lib/index.js",
|
|
"require": "./lib/index.js"
|
|
},
|
|
"./css-normalize": {
|
|
"webstudio": "./src/css/normalize.ts",
|
|
"types": "./lib/types/css/normalize.d.ts",
|
|
"import": "./lib/css/normalize.js",
|
|
"require": "./lib/css/normalize.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"lib/*",
|
|
"!*.{test,stories}.*"
|
|
],
|
|
"license": "AGPL-3.0-or-later",
|
|
"private": false,
|
|
"sideEffects": false
|
|
}
|