Skip to content

Commit 10cee9f

Browse files
committed
feat: update playground, add form builder
1 parent 06ab209 commit 10cee9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+5697
-3554
lines changed

package-lock.json

Lines changed: 3130 additions & 2455 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@
6666
"*.scss"
6767
],
6868
"scripts": {
69-
"deps:install:playground": "cd playground && npm ci",
70-
"deps:install:package": "npm ci",
71-
"deps:install": "run-p deps:install:playground deps:install:package",
69+
"deps:install": "npm ci",
7270
"deps:truncate": "npm prune --production",
7371
"lint:fix": "run-s lint:js:fix lint:styles:fix lint:prettier:fix typecheck",
7472
"lint:js": "eslint '**/*.{js,jsx,ts,tsx}' --max-warnings=0",
@@ -80,6 +78,7 @@
8078
"lint": "run-p lint:js lint:styles lint:prettier typecheck",
8179
"typecheck": "tsc --noEmit",
8280
"dev": "npm run storybook:start",
81+
"dev:playground": "cd playground && vite -c vite.config.mts",
8382
"storybook:start": "storybook dev -p 7009",
8483
"storybook:build": "storybook build -c .storybook -o storybook-static",
8584
"start": "node dist",
@@ -89,6 +88,7 @@
8988
"build:widget": "webpack --config widget.webpack.js",
9089
"build:schema": "webpack --config schema.webpack.js",
9190
"build": "run-p build:client build:server build:widget build:schema",
91+
"build:playground": "cd playground && tsc && vite build -c vite.config.mts",
9292
"prepublishOnly": "npm run lint && npm run build",
9393
"prepare": "husky install",
9494
"test": "jest",
@@ -180,10 +180,13 @@
180180
"@types/uuid": "^9.0.0",
181181
"@types/webpack-env": "^1.18.1",
182182
"@types/youtube-player": "^5.5.11",
183+
"@vitejs/plugin-react": "^4.5.0",
183184
"autoprefixer": "^10.4.14",
184185
"babel-loader": "^8.3.0",
186+
"bem-cn-lite": "^4.1.0",
185187
"css-loader": "^5.2.7",
186188
"es5-ext": "0.10.53",
189+
"esbuild-sass-plugin": "^3.3.1",
187190
"eslint": "^8.57.1",
188191
"eslint-plugin-no-not-accumulator-reassign": "^0.1.0",
189192
"eslint-plugin-react": "^7.37.4",
@@ -214,6 +217,7 @@
214217
"react": "^18.3.1",
215218
"react-docgen-typescript": "^2.2.2",
216219
"react-dom": "^18.3.1",
220+
"react-router": "^7.6.1",
217221
"resolve-url-loader": "^3.1.5",
218222
"rimraf": "^6.0.1",
219223
"sass": "^1.63.6",
@@ -226,8 +230,9 @@
226230
"ts-jest": "^29.2.5",
227231
"tslib": "^2.4.0",
228232
"typescript": "^5.7.3",
233+
"vite": "^6.3.5",
229234
"vite-plugin-commonjs": "^0.10.1",
230-
"vite-plugin-svgr": "^4.2.0",
235+
"vite-plugin-svgr": "^4.3.0",
231236
"webpack": "^5.98.0",
232237
"webpack-cli": "^6.0.1",
233238
"webpack-shell-plugin-next": "^2.3.1"

playground/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
dist
3+
public

playground/.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
13
# dependencies
24
/node_modules
5+
/.pnp
6+
.pnp.js
37

4-
# next.js
5-
/.next/
6-
/out/
8+
# testing
9+
/coverage
710

811
# production
912
/build
13+
/dist
1014

1115
# misc
1216
.DS_Store
@@ -20,9 +24,5 @@ yarn-error.log*
2024
# local env files
2125
.env*.local
2226

23-
# vercel
24-
.vercel
25-
2627
# typescript
2728
*.tsbuildinfo
28-
next-env.d.ts

playground/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
dist
3+
public

playground/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" type="image/png" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="description" content="Web site created using vite" />
8+
<!--
9+
manifest.json provides metadata used when your web app is installed on a
10+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
11+
-->
12+
<link rel="manifest" href="/manifest.json" />
13+
<title>Page Constructor Playground</title>
14+
</head>
15+
<body>
16+
<noscript>You need to enable JavaScript to run this app.</noscript>
17+
<div id="root"></div>
18+
<script type="module" src="/src/main.tsx"></script>
19+
</body>
20+
</html>

playground/next.config.mjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)