mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
Here added jsx component generator. It allows us to have less tree traversing and more clear output for debugging. For now data sources are managed the old way with stores. In the future we can switch to react `useState`. In the future will be integrated into stories generator and cli
73 lines
2.1 KiB
JSON
73 lines
2.1 KiB
JSON
{
|
|
"name": "@webstudio-is/react-sdk",
|
|
"version": "0.99.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.6.4",
|
|
"@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:^",
|
|
"jest": "^29.6.4",
|
|
"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",
|
|
"@nanostores/react": "^0.7.1",
|
|
"@webstudio-is/css-engine": "workspace:^",
|
|
"@webstudio-is/fonts": "workspace:^",
|
|
"@webstudio-is/image": "workspace:^",
|
|
"@webstudio-is/sdk": "workspace:^",
|
|
"html-tags": "^3.3.1",
|
|
"jsep": "^1.3.8",
|
|
"nanoid": "^4.0.2",
|
|
"nanostores": "^0.9.3",
|
|
"no-case": "^3.0.4",
|
|
"title-case": "^3.0.3"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"source": "./src/index.ts",
|
|
"types": "./lib/types/index.d.ts",
|
|
"import": "./lib/index.js",
|
|
"require": "./lib/index.js"
|
|
},
|
|
"./css-normalize": {
|
|
"source": "./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
|
|
}
|