@chaibuilder/sdk 2.0.0-beta.9 → 2.0.0-beta.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/ChaiThemeFn-DcE5RdLQ.cjs +236 -0
- package/dist/ChaiThemeFn-DzirXKjI.js +237 -0
- package/dist/CodeEditor-C8_JzwHn.cjs +81 -0
- package/dist/CodeEditor-DdIk_PEV.js +81 -0
- package/dist/Topbar-62QmCKWL.cjs +18 -0
- package/dist/Topbar-Cqt0j3Yt.js +18 -0
- package/dist/chaibuilder-logo.png +0 -0
- package/dist/context-menu-DHla8ofZ.js +893 -0
- package/dist/context-menu-DawHUIXd.cjs +923 -0
- package/dist/core.cjs +11592 -18
- package/dist/core.d.ts +108 -47
- package/dist/core.js +9554 -6675
- package/dist/getSplitClasses-BuALfSLX.js +54 -0
- package/dist/getSplitClasses-mbQmvwI3.cjs +53 -0
- package/dist/iconBase-BSrIcOaG.cjs +146 -0
- package/dist/iconBase-CWgVxu0A.js +147 -0
- package/dist/mockServiceWorker.js +39 -24
- package/dist/plugin-BcTnEZwx.cjs +26 -0
- package/dist/plugin-DGEKY3uC.js +27 -0
- package/dist/render.cjs +247 -2
- package/dist/render.d.ts +41 -16
- package/dist/render.js +224 -142
- package/dist/runtime.cjs +9 -1
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.js +0 -20
- package/dist/sdk.css +1341 -0
- package/dist/tailwind.cjs +78 -1
- package/dist/tailwind.d.ts +37 -26
- package/dist/tailwind.js +21 -21
- package/dist/ui.cjs +378 -1
- package/dist/ui.d.ts +12 -51
- package/dist/ui.js +262 -349
- package/dist/web-blocks.cjs +1679 -2
- package/dist/web-blocks.d.ts +6 -0
- package/dist/web-blocks.js +1502 -856
- package/package.json +135 -132
- package/dist/CodeEditor-19TqmVgI.cjs +0 -1
- package/dist/CodeEditor-b5DU6y6j.js +0 -126
- package/dist/STRINGS-Xxstm-7I.js +0 -7
- package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
- package/dist/Topbar-lGFRGO4j.js +0 -73
- package/dist/Topbar-ql6BS8c6.cjs +0 -1
- package/dist/context-menu-MPtzs1fu.cjs +0 -1
- package/dist/context-menu-XEyVy2qm.js +0 -903
- package/dist/controls-lEwMTdPQ.js +0 -234
- package/dist/controls-p9IwFnPx.cjs +0 -1
- package/dist/iconBase-Ief2hJUZ.js +0 -130
- package/dist/iconBase-aZzpqff_.cjs +0 -1
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/jsx-runtime-Sp0orL4X.js +0 -631
- package/dist/plugin-Dm5EFGnP.cjs +0 -1
- package/dist/plugin-KIpT3NWi.cjs +0 -1
- package/dist/plugin-PFjzFeON.js +0 -97
- package/dist/plugin-ooqqxWRQ.js +0 -55
- package/dist/style.css +0 -6
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"author": "Suraj Air",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"homepage": "https://chaibuilder.com",
|
|
8
|
-
"version": "2.0.0-beta.
|
|
8
|
+
"version": "2.0.0-beta.90",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,178 +16,181 @@
|
|
|
16
16
|
],
|
|
17
17
|
"main": "dist/core.js",
|
|
18
18
|
"sideEffects": false,
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "vite",
|
|
21
|
-
"build": "tsc && vite build",
|
|
22
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
23
|
-
"preview": "vite preview",
|
|
24
|
-
"test": "jest --colors --verbose",
|
|
25
|
-
"test:watch": "jest --watch --colors",
|
|
26
|
-
"test:coverage": "jest --coverage --colors",
|
|
27
|
-
"e2e": "playwright test",
|
|
28
|
-
"e2e:report": "playwright show-report",
|
|
29
|
-
"e2e:ui": "playwright test --ui",
|
|
30
|
-
"docs": "typedoc --plugin typedoc-plugin-clarity",
|
|
31
|
-
"prepare": "husky"
|
|
32
|
-
},
|
|
33
19
|
"exports": {
|
|
34
20
|
".": {
|
|
21
|
+
"types": "./dist/core.d.ts",
|
|
35
22
|
"import": "./dist/core.js",
|
|
36
|
-
"require": "./dist/core.cjs"
|
|
37
|
-
"types": "./dist/core.d.ts"
|
|
23
|
+
"require": "./dist/core.cjs"
|
|
38
24
|
},
|
|
39
25
|
"./render": {
|
|
26
|
+
"types": "./dist/render.d.ts",
|
|
40
27
|
"import": "./dist/render.js",
|
|
41
|
-
"require": "./dist/render.cjs"
|
|
42
|
-
"types": "./dist/render.d.ts"
|
|
28
|
+
"require": "./dist/render.cjs"
|
|
43
29
|
},
|
|
44
30
|
"./ui": {
|
|
31
|
+
"types": "./dist/ui.d.ts",
|
|
45
32
|
"import": "./dist/ui.js",
|
|
46
|
-
"require": "./dist/ui.cjs"
|
|
47
|
-
"types": "./dist/ui.d.ts"
|
|
33
|
+
"require": "./dist/ui.cjs"
|
|
48
34
|
},
|
|
49
35
|
"./tailwind": {
|
|
36
|
+
"types": "./dist/tailwind.d.ts",
|
|
50
37
|
"import": "./dist/tailwind.js",
|
|
51
|
-
"require": "./dist/tailwind.cjs"
|
|
52
|
-
"types": "./dist/tailwind.d.ts"
|
|
53
|
-
},
|
|
54
|
-
"./styles": {
|
|
55
|
-
"import": "./dist/style.css",
|
|
56
|
-
"require": "./dist/style.css"
|
|
38
|
+
"require": "./dist/tailwind.cjs"
|
|
57
39
|
},
|
|
58
40
|
"./web-blocks": {
|
|
41
|
+
"types": "./dist/web-blocks.d.ts",
|
|
59
42
|
"import": "./dist/web-blocks.js",
|
|
60
|
-
"require": "./dist/web-blocks.cjs"
|
|
61
|
-
"types": "./dist/web-blocks.d.ts"
|
|
43
|
+
"require": "./dist/web-blocks.cjs"
|
|
62
44
|
},
|
|
63
45
|
"./runtime": {
|
|
46
|
+
"types": "./dist/runtime.d.ts",
|
|
64
47
|
"import": "./dist/runtime.js",
|
|
65
|
-
"require": "./dist/runtime.cjs"
|
|
66
|
-
|
|
48
|
+
"require": "./dist/runtime.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./styles": {
|
|
51
|
+
"import": "./dist/sdk.css",
|
|
52
|
+
"require": "./dist/sdk.css"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@chaibuilder/runtime": "2.0.0-beta.24",
|
|
57
|
+
"@types/react": "*",
|
|
58
|
+
"@types/react-dom": "*",
|
|
59
|
+
"react": "^18.0 || ^19.0",
|
|
60
|
+
"react-dom": "^18.0 || ^19.0",
|
|
61
|
+
"jotai": "2.12.1"
|
|
62
|
+
},
|
|
63
|
+
"peerDependenciesMeta": {
|
|
64
|
+
"@types/react": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"@types/react-dom": {
|
|
68
|
+
"optional": true
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
71
|
"dependencies": {
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@floating-ui/dom": "1.
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@radix-ui/react-
|
|
77
|
-
"@radix-ui/react-
|
|
78
|
-
"@radix-ui/react-
|
|
79
|
-
"@radix-ui/react-
|
|
80
|
-
"@radix-ui/react-
|
|
81
|
-
"@radix-ui/react-
|
|
82
|
-
"@radix-ui/react-
|
|
83
|
-
"@radix-ui/react-
|
|
84
|
-
"@radix-ui/react-
|
|
85
|
-
"@radix-ui/react-
|
|
86
|
-
"@radix-ui/react-
|
|
87
|
-
"@radix-ui/react-
|
|
88
|
-
"@radix-ui/react-
|
|
89
|
-
"@radix-ui/react-
|
|
90
|
-
"@radix-ui/react-
|
|
91
|
-
"@radix-ui/react-
|
|
92
|
-
"@radix-ui/react-
|
|
93
|
-
"@radix-ui/react-
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
99
|
-
"@
|
|
100
|
-
"@
|
|
101
|
-
"@rjsf/validator-ajv8": "5.11.2",
|
|
102
|
-
"@tailwindcss/aspect-ratio": "0.4.2",
|
|
103
|
-
"@tailwindcss/forms": "^0.5.6",
|
|
72
|
+
"@chaibuilder/runtime": "2.0.0-beta.24",
|
|
73
|
+
"@floating-ui/dom": "1.6.13",
|
|
74
|
+
"@floating-ui/react-dom": "2.1.2",
|
|
75
|
+
"@mhsdesign/jit-browser-tailwindcss": "0.4.2",
|
|
76
|
+
"@radix-ui/react-accordion": "^1.2.2",
|
|
77
|
+
"@radix-ui/react-alert-dialog": "^1.1.5",
|
|
78
|
+
"@radix-ui/react-context-menu": "^2.2.5",
|
|
79
|
+
"@radix-ui/react-dialog": "^1.1.5",
|
|
80
|
+
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
81
|
+
"@radix-ui/react-hover-card": "^1.1.5",
|
|
82
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
83
|
+
"@radix-ui/react-label": "^2.1.1",
|
|
84
|
+
"@radix-ui/react-menubar": "^1.1.5",
|
|
85
|
+
"@radix-ui/react-navigation-menu": "^1.2.4",
|
|
86
|
+
"@radix-ui/react-popover": "^1.1.5",
|
|
87
|
+
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
88
|
+
"@radix-ui/react-select": "^2.1.5",
|
|
89
|
+
"@radix-ui/react-separator": "^1.1.1",
|
|
90
|
+
"@radix-ui/react-slot": "^1.1.1",
|
|
91
|
+
"@radix-ui/react-switch": "^1.1.2",
|
|
92
|
+
"@radix-ui/react-tabs": "^1.1.2",
|
|
93
|
+
"@radix-ui/react-toast": "^1.2.5",
|
|
94
|
+
"@radix-ui/react-toggle": "^1.1.1",
|
|
95
|
+
"@radix-ui/react-tooltip": "^1.1.7",
|
|
96
|
+
"@react-hookz/web": "25.0.1",
|
|
97
|
+
"@rjsf/core": "5.24.2",
|
|
98
|
+
"@rjsf/utils": "5.24.2",
|
|
99
|
+
"@rjsf/validator-ajv8": "5.24.2",
|
|
100
|
+
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
101
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
102
|
+
"@tailwindcss/forms": "^0.5.10",
|
|
104
103
|
"@tailwindcss/line-clamp": "^0.4.4",
|
|
105
|
-
"@tailwindcss/typography": "^0.5.
|
|
104
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
106
105
|
"class-variance-authority": "0.6.1",
|
|
107
|
-
"clsx": "
|
|
106
|
+
"clsx": "2.1.1",
|
|
108
107
|
"cmdk": "0.2.0",
|
|
109
|
-
"flagged": "
|
|
110
|
-
"framer-motion": "^
|
|
111
|
-
"fuse.js": "
|
|
108
|
+
"flagged": "3.0.0",
|
|
109
|
+
"framer-motion": "^12.0.3",
|
|
110
|
+
"fuse.js": "7.0.0",
|
|
112
111
|
"himalaya": "^1.1.0",
|
|
113
|
-
"i18next": "^
|
|
114
|
-
"jotai": "2.
|
|
112
|
+
"i18next": "^24.2.1",
|
|
113
|
+
"jotai": "2.12.1",
|
|
115
114
|
"lodash": "^4.17.21",
|
|
116
115
|
"lodash-es": "4.17.21",
|
|
117
|
-
"lucide-react": "^0.
|
|
118
|
-
"re-resizable": "^6.
|
|
119
|
-
"react": "^18.2.0",
|
|
116
|
+
"lucide-react": "^0.474.0",
|
|
117
|
+
"re-resizable": "^6.10.3",
|
|
120
118
|
"react-arborist": "^3.4.0",
|
|
121
|
-
"react-autosuggest": "10.1.0",
|
|
119
|
+
"react-autosuggest": "^10.1.0",
|
|
122
120
|
"react-colorful": "5.6.1",
|
|
123
|
-
"react-
|
|
124
|
-
"react-
|
|
125
|
-
"react-
|
|
126
|
-
"react-
|
|
127
|
-
"react-i18next": "13.0.1",
|
|
128
|
-
"react-icons": "5.3.0",
|
|
121
|
+
"react-error-boundary": "^5.0.0",
|
|
122
|
+
"react-hotkeys-hook": "4.6.1",
|
|
123
|
+
"react-i18next": "15.4.0",
|
|
124
|
+
"react-icons": "5.4.0",
|
|
129
125
|
"react-icons-picker": "^1.0.9",
|
|
130
|
-
"react-json-view-lite": "^
|
|
126
|
+
"react-json-view-lite": "^2.3.0",
|
|
131
127
|
"react-quill": "^2.0.0",
|
|
132
|
-
"react-wrap-balancer": "^1.1.
|
|
133
|
-
"tailwind-merge": "2.
|
|
128
|
+
"react-wrap-balancer": "^1.1.1",
|
|
129
|
+
"tailwind-merge": "^2.6.0",
|
|
134
130
|
"tree-model": "^1.0.7",
|
|
135
131
|
"undo-manager": "^1.1.1"
|
|
136
132
|
},
|
|
137
133
|
"devDependencies": {
|
|
138
|
-
"@
|
|
139
|
-
"@commitlint/
|
|
140
|
-
"@
|
|
141
|
-
"@
|
|
142
|
-
"@
|
|
143
|
-
"@
|
|
144
|
-
"@
|
|
145
|
-
"@
|
|
146
|
-
"@
|
|
147
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
148
|
-
"@types/jest": "^29.5.7",
|
|
149
|
-
"@types/lodash": "^4.14.200",
|
|
134
|
+
"@commitlint/cli": "19.6.1",
|
|
135
|
+
"@commitlint/config-conventional": "19.6.0",
|
|
136
|
+
"@emotion/react": "^11.14.0",
|
|
137
|
+
"@faker-js/faker": "^9.4.0",
|
|
138
|
+
"@microsoft/clarity": "^1.0.0",
|
|
139
|
+
"@playwright/test": "^1.50.0",
|
|
140
|
+
"@tanstack/eslint-plugin-query": "^5.64.2",
|
|
141
|
+
"@testing-library/react": "^16.2.0",
|
|
142
|
+
"@types/lodash": "^4.17.14",
|
|
150
143
|
"@types/node": "^20.8.10",
|
|
151
|
-
"@types/react": "^18.
|
|
152
|
-
"@types/react-dom": "^18.
|
|
153
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
154
|
-
"@typescript-eslint/parser": "^
|
|
155
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"axios": "^1.7.7",
|
|
159
|
-
"better-docs": "^2.7.2",
|
|
144
|
+
"@types/react": "^18.3.1",
|
|
145
|
+
"@types/react-dom": "^18.3.1",
|
|
146
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
147
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
148
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
149
|
+
"autoprefixer": "^10.4.20",
|
|
150
|
+
"axios": "^1.7.9",
|
|
160
151
|
"cheerio": "1.0.0-rc.12",
|
|
161
|
-
"dotenv": "^16.4.
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"eslint": "^
|
|
165
|
-
"
|
|
166
|
-
"eslint-plugin-react-refresh": "^0.4.4",
|
|
167
|
-
"husky": "^9.0.10",
|
|
168
|
-
"jest": "^29.7.0",
|
|
152
|
+
"dotenv": "^16.4.7",
|
|
153
|
+
"eslint": "^9.18.0",
|
|
154
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
155
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
156
|
+
"husky": "^9.1.7",
|
|
169
157
|
"jest-environment-jsdom": "^29.7.0",
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"prettier": "^
|
|
175
|
-
"prettier-plugin-tailwindcss": "^0.6.1",
|
|
158
|
+
"jsdoc": "^4.0.4",
|
|
159
|
+
"msw": "^2.7.0",
|
|
160
|
+
"postcss": "^8.5.1",
|
|
161
|
+
"prettier": "^3.4.2",
|
|
162
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
176
163
|
"prop-types": "^15.8.1",
|
|
177
|
-
"react
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
164
|
+
"react": "^18.3.1",
|
|
165
|
+
"react-dom": "^18.3.1",
|
|
166
|
+
"react-router-dom": "^7.1.3",
|
|
167
|
+
"tailwindcss": "^3.4.11",
|
|
168
|
+
"tailwindcss-animate": "^1.0.7",
|
|
169
|
+
"ts-jest": "^29.2.5",
|
|
181
170
|
"ts-node": "^10.9.2",
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"vite-plugin-dts": "^3.6.3",
|
|
188
|
-
"zod": "^3.23.8"
|
|
171
|
+
"typescript": "^5.7.3",
|
|
172
|
+
"vite": "^6.0.11",
|
|
173
|
+
"vite-plugin-dts": "^4.5.0",
|
|
174
|
+
"vitest": "^3.0.4",
|
|
175
|
+
"zod": "^3.24.1"
|
|
189
176
|
},
|
|
190
177
|
"msw": {
|
|
191
178
|
"workerDirectory": "public"
|
|
179
|
+
},
|
|
180
|
+
"engines": {
|
|
181
|
+
"node": "^20.18.0"
|
|
182
|
+
},
|
|
183
|
+
"scripts": {
|
|
184
|
+
"dev": "vite",
|
|
185
|
+
"build": "tsc && vite build",
|
|
186
|
+
"live": "tsc && vite build --config vite.config.live.ts",
|
|
187
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
188
|
+
"preview": "vite preview",
|
|
189
|
+
"test": "vitest --run",
|
|
190
|
+
"test:watch": "vitest --watch",
|
|
191
|
+
"test:coverage": "vitest --coverage",
|
|
192
|
+
"e2e": "playwright test",
|
|
193
|
+
"e2e:report": "playwright show-report",
|
|
194
|
+
"e2e:ui": "playwright test --ui"
|
|
192
195
|
}
|
|
193
|
-
}
|
|
196
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-JYMCiFoE.cjs"),b=require("@monaco-editor/react"),k=require("./context-menu-MPtzs1fu.cjs"),C=require("react-i18next"),u=require("react"),n=require("./core.cjs"),E=require("@radix-ui/react-icons"),R=require("@react-hookz/web");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("class-variance-authority");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");require("lodash-es");require("jotai");require("./iconBase-aZzpqff_.cjs");require("@chaibuilder/runtime");require("./plugin-KIpT3NWi.cjs");require("tree-model");require("react-quill");require("./STRINGS-Yl7cSWDc.cjs");require("flagged");require("react-hotkeys-hook");require("@floating-ui/dom");require("@floating-ui/react-dom");require("@tailwindcss/typography");require("@tailwindcss/forms");require("@tailwindcss/aspect-ratio");require("react-wrap-balancer");require("react-dom");require("prop-types");require("react-error-boundary");require("re-resizable");require("lucide-react");require("react-arborist");require("himalaya");require("@rjsf/core");require("@rjsf/validator-ajv8");require("react-icons-picker");require("react-autosuggest");require("fuse.js");require("i18next");require("framer-motion");const a=s=>{const i=document.createElement("div");return i.innerHTML=s,i.innerHTML};function g(){const{t:s}=C.useTranslation(),[i,d]=u.useState(!1),[l,q]=u.useState(""),[r,o]=n.useCodeEditor(),[c]=n.useSelectedBlockIds(),x=n.useUpdateBlocksProps(),m=n.useUpdateBlocksPropsRealtime(),p=R.useThrottledCallback(t=>{const h=a(t);m([r.blockId],{[r.blockProp]:h})},[],300),j=u.useCallback(()=>{if(i){const t=a(l);x([r.blockId],{[r.blockProp]:t})}},[i,l]);u.useEffect(()=>{c.includes(r==null?void 0:r.blockId)||(j(),o(null))},[c]);const f=()=>{o(null)};return e.jsxRuntimeExports.jsxs("div",{className:"h-full rounded-t-lg border-t-4 border-black bg-black text-white",children:[e.jsxRuntimeExports.jsx("button",{onClick:f,className:"fixed inset-0 z-[100000] cursor-default bg-gray-400/20"}),e.jsxRuntimeExports.jsxs("div",{className:"relative z-[100001] h-full w-full flex-col gap-y-1",children:[e.jsxRuntimeExports.jsxs("div",{className:"-mt-1 flex items-center justify-between px-2 py-2",children:[e.jsxRuntimeExports.jsxs("h3",{className:"space-x-3 text-sm font-semibold",children:[e.jsxRuntimeExports.jsx("span",{children:s("HTML Code Editor |")}),e.jsxRuntimeExports.jsx("span",{className:"text-xs text-gray-400",children:s("Scripts will be only executed in preview and live mode.")})]}),e.jsxRuntimeExports.jsx("div",{className:"flex gap-x-2",children:e.jsxRuntimeExports.jsx(k.Button,{onClick:()=>o(null),size:"sm",variant:"destructive",className:"h-6 w-fit",children:e.jsxRuntimeExports.jsx(E.Cross2Icon,{})})})]}),e.jsxRuntimeExports.jsx(b,{onMount:t=>{t.setValue(r.initialCode)},onChange:t=>{d(!0),q(t),p(t)},height:"100%",defaultLanguage:"html",theme:"vs-dark",defaultValue:"",options:{minimap:{enabled:!1}}})]})]})}exports.default=g;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-Sp0orL4X.js";
|
|
2
|
-
import k from "@monaco-editor/react";
|
|
3
|
-
import { B as C } from "./context-menu-XEyVy2qm.js";
|
|
4
|
-
import { useTranslation as j } from "react-i18next";
|
|
5
|
-
import { useState as l, useCallback as v, useEffect as g } from "react";
|
|
6
|
-
import { useCodeEditor as y, useSelectedBlockIds as N, useUpdateBlocksProps as T, useUpdateBlocksPropsRealtime as E } from "./core.js";
|
|
7
|
-
import { Cross2Icon as w } from "@radix-ui/react-icons";
|
|
8
|
-
import { useThrottledCallback as B } from "@react-hookz/web";
|
|
9
|
-
import "@radix-ui/react-switch";
|
|
10
|
-
import "@radix-ui/react-accordion";
|
|
11
|
-
import "class-variance-authority";
|
|
12
|
-
import "@radix-ui/react-alert-dialog";
|
|
13
|
-
import "@radix-ui/react-slot";
|
|
14
|
-
import "@radix-ui/react-dialog";
|
|
15
|
-
import "@radix-ui/react-label";
|
|
16
|
-
import "@radix-ui/react-scroll-area";
|
|
17
|
-
import "@radix-ui/react-tabs";
|
|
18
|
-
import "@radix-ui/react-tooltip";
|
|
19
|
-
import "@radix-ui/react-popover";
|
|
20
|
-
import "@radix-ui/react-hover-card";
|
|
21
|
-
import "@radix-ui/react-select";
|
|
22
|
-
import "@radix-ui/react-dropdown-menu";
|
|
23
|
-
import "@radix-ui/react-separator";
|
|
24
|
-
import "@radix-ui/react-toast";
|
|
25
|
-
import "@radix-ui/react-context-menu";
|
|
26
|
-
import "clsx";
|
|
27
|
-
import "tailwind-merge";
|
|
28
|
-
import "lodash-es";
|
|
29
|
-
import "jotai";
|
|
30
|
-
import "./iconBase-Ief2hJUZ.js";
|
|
31
|
-
import "@chaibuilder/runtime";
|
|
32
|
-
import "./plugin-ooqqxWRQ.js";
|
|
33
|
-
import "tree-model";
|
|
34
|
-
import "react-quill";
|
|
35
|
-
import "./STRINGS-Xxstm-7I.js";
|
|
36
|
-
import "flagged";
|
|
37
|
-
import "react-hotkeys-hook";
|
|
38
|
-
import "@floating-ui/dom";
|
|
39
|
-
import "@floating-ui/react-dom";
|
|
40
|
-
import "@tailwindcss/typography";
|
|
41
|
-
import "@tailwindcss/forms";
|
|
42
|
-
import "@tailwindcss/aspect-ratio";
|
|
43
|
-
import "react-wrap-balancer";
|
|
44
|
-
import "react-dom";
|
|
45
|
-
import "prop-types";
|
|
46
|
-
import "react-error-boundary";
|
|
47
|
-
import "re-resizable";
|
|
48
|
-
import "lucide-react";
|
|
49
|
-
import "react-arborist";
|
|
50
|
-
import "himalaya";
|
|
51
|
-
import "@rjsf/core";
|
|
52
|
-
import "@rjsf/validator-ajv8";
|
|
53
|
-
import "react-icons-picker";
|
|
54
|
-
import "react-autosuggest";
|
|
55
|
-
import "fuse.js";
|
|
56
|
-
import "i18next";
|
|
57
|
-
import "framer-motion";
|
|
58
|
-
const n = (r) => {
|
|
59
|
-
const i = document.createElement("div");
|
|
60
|
-
return i.innerHTML = r, i.innerHTML;
|
|
61
|
-
};
|
|
62
|
-
function Pt() {
|
|
63
|
-
const { t: r } = j(), [i, a] = l(!1), [m, c] = l(""), [o, s] = y(), [p] = N(), d = T(), u = E(), f = B(
|
|
64
|
-
(e) => {
|
|
65
|
-
const b = n(e);
|
|
66
|
-
u([o.blockId], { [o.blockProp]: b });
|
|
67
|
-
},
|
|
68
|
-
[],
|
|
69
|
-
300
|
|
70
|
-
), x = v(() => {
|
|
71
|
-
if (i) {
|
|
72
|
-
const e = n(m);
|
|
73
|
-
d([o.blockId], { [o.blockProp]: e });
|
|
74
|
-
}
|
|
75
|
-
}, [i, m]);
|
|
76
|
-
g(() => {
|
|
77
|
-
p.includes(o == null ? void 0 : o.blockId) || (x(), s(null));
|
|
78
|
-
}, [p]);
|
|
79
|
-
const h = () => {
|
|
80
|
-
s(null);
|
|
81
|
-
};
|
|
82
|
-
return /* @__PURE__ */ t.jsxs("div", { className: "h-full rounded-t-lg border-t-4 border-black bg-black text-white", children: [
|
|
83
|
-
/* @__PURE__ */ t.jsx("button", { onClick: h, className: "fixed inset-0 z-[100000] cursor-default bg-gray-400/20" }),
|
|
84
|
-
/* @__PURE__ */ t.jsxs("div", { className: "relative z-[100001] h-full w-full flex-col gap-y-1", children: [
|
|
85
|
-
/* @__PURE__ */ t.jsxs("div", { className: "-mt-1 flex items-center justify-between px-2 py-2", children: [
|
|
86
|
-
/* @__PURE__ */ t.jsxs("h3", { className: "space-x-3 text-sm font-semibold", children: [
|
|
87
|
-
/* @__PURE__ */ t.jsx("span", { children: r("HTML Code Editor |") }),
|
|
88
|
-
/* @__PURE__ */ t.jsx("span", { className: "text-xs text-gray-400", children: r("Scripts will be only executed in preview and live mode.") })
|
|
89
|
-
] }),
|
|
90
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex gap-x-2", children: /* @__PURE__ */ t.jsx(
|
|
91
|
-
C,
|
|
92
|
-
{
|
|
93
|
-
onClick: () => s(null),
|
|
94
|
-
size: "sm",
|
|
95
|
-
variant: "destructive",
|
|
96
|
-
className: "h-6 w-fit",
|
|
97
|
-
children: /* @__PURE__ */ t.jsx(w, {})
|
|
98
|
-
}
|
|
99
|
-
) })
|
|
100
|
-
] }),
|
|
101
|
-
/* @__PURE__ */ t.jsx(
|
|
102
|
-
k,
|
|
103
|
-
{
|
|
104
|
-
onMount: (e) => {
|
|
105
|
-
e.setValue(o.initialCode);
|
|
106
|
-
},
|
|
107
|
-
onChange: (e) => {
|
|
108
|
-
a(!0), c(e), f(e);
|
|
109
|
-
},
|
|
110
|
-
height: "100%",
|
|
111
|
-
defaultLanguage: "html",
|
|
112
|
-
theme: "vs-dark",
|
|
113
|
-
defaultValue: "",
|
|
114
|
-
options: {
|
|
115
|
-
minimap: {
|
|
116
|
-
enabled: !1
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
] })
|
|
122
|
-
] });
|
|
123
|
-
}
|
|
124
|
-
export {
|
|
125
|
-
Pt as default
|
|
126
|
-
};
|
package/dist/STRINGS-Xxstm-7I.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const _="#styles:",E="#slots:",s="#i18n",T="__ADD_BLOCK_INTERNAL_ROOT";exports.I18N_KEY=s;exports.ROOT_TEMP_KEY=T;exports.SLOT_KEY=E;exports.STYLES_KEY=_;
|
package/dist/Topbar-lGFRGO4j.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-Sp0orL4X.js";
|
|
2
|
-
import o, { Suspense as m } from "react";
|
|
3
|
-
import { S as i } from "./context-menu-XEyVy2qm.js";
|
|
4
|
-
import "react-i18next";
|
|
5
|
-
import { useBuilderProp as p } from "./core.js";
|
|
6
|
-
import "@radix-ui/react-switch";
|
|
7
|
-
import "@radix-ui/react-accordion";
|
|
8
|
-
import "@radix-ui/react-icons";
|
|
9
|
-
import "class-variance-authority";
|
|
10
|
-
import "@radix-ui/react-alert-dialog";
|
|
11
|
-
import "@radix-ui/react-slot";
|
|
12
|
-
import "@radix-ui/react-dialog";
|
|
13
|
-
import "@radix-ui/react-label";
|
|
14
|
-
import "@radix-ui/react-scroll-area";
|
|
15
|
-
import "@radix-ui/react-tabs";
|
|
16
|
-
import "@radix-ui/react-tooltip";
|
|
17
|
-
import "@radix-ui/react-popover";
|
|
18
|
-
import "@radix-ui/react-hover-card";
|
|
19
|
-
import "@radix-ui/react-select";
|
|
20
|
-
import "@radix-ui/react-dropdown-menu";
|
|
21
|
-
import "@radix-ui/react-separator";
|
|
22
|
-
import "@radix-ui/react-toast";
|
|
23
|
-
import "@radix-ui/react-context-menu";
|
|
24
|
-
import "clsx";
|
|
25
|
-
import "tailwind-merge";
|
|
26
|
-
import "lodash-es";
|
|
27
|
-
import "jotai";
|
|
28
|
-
import "./iconBase-Ief2hJUZ.js";
|
|
29
|
-
import "@chaibuilder/runtime";
|
|
30
|
-
import "./plugin-ooqqxWRQ.js";
|
|
31
|
-
import "@react-hookz/web";
|
|
32
|
-
import "tree-model";
|
|
33
|
-
import "react-quill";
|
|
34
|
-
import "./STRINGS-Xxstm-7I.js";
|
|
35
|
-
import "flagged";
|
|
36
|
-
import "react-hotkeys-hook";
|
|
37
|
-
import "@floating-ui/dom";
|
|
38
|
-
import "@floating-ui/react-dom";
|
|
39
|
-
import "@tailwindcss/typography";
|
|
40
|
-
import "@tailwindcss/forms";
|
|
41
|
-
import "@tailwindcss/aspect-ratio";
|
|
42
|
-
import "react-wrap-balancer";
|
|
43
|
-
import "react-dom";
|
|
44
|
-
import "prop-types";
|
|
45
|
-
import "react-error-boundary";
|
|
46
|
-
import "re-resizable";
|
|
47
|
-
import "lucide-react";
|
|
48
|
-
import "react-arborist";
|
|
49
|
-
import "himalaya";
|
|
50
|
-
import "@rjsf/core";
|
|
51
|
-
import "@rjsf/validator-ajv8";
|
|
52
|
-
import "react-icons-picker";
|
|
53
|
-
import "react-autosuggest";
|
|
54
|
-
import "fuse.js";
|
|
55
|
-
import "i18next";
|
|
56
|
-
import "framer-motion";
|
|
57
|
-
const ct = () => {
|
|
58
|
-
const e = p("topBarComponents.left", []), s = p("topBarComponents.center", []), a = p("topBarComponents.right", []);
|
|
59
|
-
return /* @__PURE__ */ t.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
|
|
60
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ t.jsx("div", { className: "flex items-center space-x-2 font-bold", children: o.Children.toArray(
|
|
61
|
-
e.map((r) => /* @__PURE__ */ t.jsx(m, { fallback: /* @__PURE__ */ t.jsx(i, { className: "h-10" }), children: /* @__PURE__ */ t.jsx(r, {}) }))
|
|
62
|
-
) }) }),
|
|
63
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex items-center space-x-2", children: o.Children.toArray(
|
|
64
|
-
s.map((r) => /* @__PURE__ */ t.jsx(m, { fallback: /* @__PURE__ */ t.jsx(i, { className: "h-10" }), children: /* @__PURE__ */ t.jsx(r, {}) }))
|
|
65
|
-
) }),
|
|
66
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex items-center space-x-1", children: o.Children.toArray(
|
|
67
|
-
a.map((r) => /* @__PURE__ */ t.jsx(m, { fallback: /* @__PURE__ */ t.jsx(i, { className: "h-10" }), children: /* @__PURE__ */ t.jsx(r, {}) }))
|
|
68
|
-
) })
|
|
69
|
-
] });
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
ct as default
|
|
73
|
-
};
|
package/dist/Topbar-ql6BS8c6.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-JYMCiFoE.cjs"),r=require("react"),s=require("./context-menu-MPtzs1fu.cjs");require("react-i18next");const u=require("./core.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("class-variance-authority");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");require("lodash-es");require("jotai");require("./iconBase-aZzpqff_.cjs");require("@chaibuilder/runtime");require("./plugin-KIpT3NWi.cjs");require("@react-hookz/web");require("tree-model");require("react-quill");require("./STRINGS-Yl7cSWDc.cjs");require("flagged");require("react-hotkeys-hook");require("@floating-ui/dom");require("@floating-ui/react-dom");require("@tailwindcss/typography");require("@tailwindcss/forms");require("@tailwindcss/aspect-ratio");require("react-wrap-balancer");require("react-dom");require("prop-types");require("react-error-boundary");require("re-resizable");require("lucide-react");require("react-arborist");require("himalaya");require("@rjsf/core");require("@rjsf/validator-ajv8");require("react-icons-picker");require("react-autosuggest");require("fuse.js");require("i18next");require("framer-motion");const o=()=>{const t=u.useBuilderProp("topBarComponents.left",[]),n=u.useBuilderProp("topBarComponents.center",[]),q=u.useBuilderProp("topBarComponents.right",[]);return e.jsxRuntimeExports.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2 font-bold",children:r.Children.toArray(t.map(i=>e.jsxRuntimeExports.jsx(r.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(i,{})})))})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:r.Children.toArray(n.map(i=>e.jsxRuntimeExports.jsx(r.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(i,{})})))}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-1",children:r.Children.toArray(q.map(i=>e.jsxRuntimeExports.jsx(r.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(i,{})})))})]})};exports.default=o;
|