@chaibuilder/sdk 2.0.0-beta.5 → 2.0.0-beta.50
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 +0 -4
- package/dist/ChaiThemeFn-Cort9tch.js +201 -0
- package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
- package/dist/CodeEditor-CARM2Bvq.js +77 -0
- package/dist/CodeEditor-DFSAQLjb.cjs +1 -0
- package/dist/STRINGS-DtEft2kY.js +5 -0
- package/dist/STRINGS-n7COZtKr.cjs +1 -0
- package/dist/Topbar-CEyGOl06.js +16 -0
- package/dist/Topbar-pFV2NO8v.cjs +1 -0
- package/dist/{context-menu-0lRey9QY.cjs → context-menu-C_ITMOD1.cjs} +1 -1
- package/dist/{context-menu-I8woggB3.js → context-menu-FCyNTUkl.js} +66 -66
- package/dist/core.cjs +61 -1
- package/dist/core.d.ts +108 -54
- package/dist/core.js +8687 -122
- package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
- package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-Drh4NO5G.js} +234 -232
- package/dist/jsx-runtime-qcKc-DpB.cjs +30 -0
- package/dist/mockServiceWorker.js +39 -24
- package/dist/plugin-2xcljWGM.cjs +1 -0
- package/dist/plugin-kUMxtQR5.js +24 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +34 -16
- package/dist/render.js +136 -136
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.js +0 -20
- package/dist/{style.css → sdk.css} +1 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +31 -26
- package/dist/tailwind.js +8 -10
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +6 -51
- package/dist/ui.js +199 -356
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +1327 -703
- package/package.json +121 -120
- package/dist/CodeEditor-fHc8uUZi.js +0 -126
- package/dist/CodeEditor-jEPBwyMf.cjs +0 -1
- package/dist/STRINGS-Xxstm-7I.js +0 -7
- package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
- package/dist/Topbar-9ltyM5Cl.js +0 -160
- package/dist/Topbar-CbNTH5d8.cjs +0 -1
- package/dist/controls-lEwMTdPQ.js +0 -234
- package/dist/controls-p9IwFnPx.cjs +0 -1
- package/dist/index-UvIwJj5Y.js +0 -8540
- package/dist/index-gHOGFo7e.cjs +0 -63
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/plugin-UiUFs2fK.js +0 -44
- package/dist/plugin-f6SDZ_Or.js +0 -108
- package/dist/plugin-jum1MjXp.cjs +0 -1
- package/dist/plugin-xOpS-UNV.cjs +0 -1
- /package/dist/{iconBase-aZzpqff_.cjs → iconBase-Cn2BsTrq.cjs} +0 -0
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.50",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -21,173 +21,174 @@
|
|
|
21
21
|
"build": "tsc && vite build",
|
|
22
22
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
23
23
|
"preview": "vite preview",
|
|
24
|
-
"test": "
|
|
25
|
-
"test:watch": "
|
|
26
|
-
"test:coverage": "
|
|
24
|
+
"test": "vitest --run",
|
|
25
|
+
"test:watch": "vitest --watch",
|
|
26
|
+
"test:coverage": "vitest --coverage",
|
|
27
27
|
"e2e": "playwright test",
|
|
28
28
|
"e2e:report": "playwright show-report",
|
|
29
29
|
"e2e:ui": "playwright test --ui",
|
|
30
|
-
"docs": "typedoc --plugin typedoc-plugin-clarity",
|
|
31
30
|
"prepare": "husky"
|
|
32
31
|
},
|
|
33
32
|
"exports": {
|
|
34
33
|
".": {
|
|
34
|
+
"types": "./dist/core.d.ts",
|
|
35
35
|
"import": "./dist/core.js",
|
|
36
|
-
"require": "./dist/core.cjs"
|
|
37
|
-
"types": "./dist/core.d.ts"
|
|
36
|
+
"require": "./dist/core.cjs"
|
|
38
37
|
},
|
|
39
38
|
"./render": {
|
|
39
|
+
"types": "./dist/render.d.ts",
|
|
40
40
|
"import": "./dist/render.js",
|
|
41
|
-
"require": "./dist/render.cjs"
|
|
42
|
-
"types": "./dist/render.d.ts"
|
|
41
|
+
"require": "./dist/render.cjs"
|
|
43
42
|
},
|
|
44
43
|
"./ui": {
|
|
44
|
+
"types": "./dist/ui.d.ts",
|
|
45
45
|
"import": "./dist/ui.js",
|
|
46
|
-
"require": "./dist/ui.cjs"
|
|
47
|
-
"types": "./dist/ui.d.ts"
|
|
46
|
+
"require": "./dist/ui.cjs"
|
|
48
47
|
},
|
|
49
48
|
"./tailwind": {
|
|
49
|
+
"types": "./dist/tailwind.d.ts",
|
|
50
50
|
"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"
|
|
51
|
+
"require": "./dist/tailwind.cjs"
|
|
57
52
|
},
|
|
58
53
|
"./web-blocks": {
|
|
54
|
+
"types": "./dist/web-blocks.d.ts",
|
|
59
55
|
"import": "./dist/web-blocks.js",
|
|
60
|
-
"require": "./dist/web-blocks.cjs"
|
|
61
|
-
"types": "./dist/web-blocks.d.ts"
|
|
56
|
+
"require": "./dist/web-blocks.cjs"
|
|
62
57
|
},
|
|
63
58
|
"./runtime": {
|
|
59
|
+
"types": "./dist/runtime.d.ts",
|
|
64
60
|
"import": "./dist/runtime.js",
|
|
65
|
-
"require": "./dist/runtime.cjs"
|
|
66
|
-
|
|
61
|
+
"require": "./dist/runtime.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./styles": {
|
|
64
|
+
"import": "./dist/sdk.css",
|
|
65
|
+
"require": "./dist/sdk.css"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@types/react": "*",
|
|
70
|
+
"@types/react-dom": "*",
|
|
71
|
+
"react": "^18.0 || ^19.0 || ^19.0.0-rc",
|
|
72
|
+
"react-dom": "^18.0 || ^19.0 || ^19.0.0-rc"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"@types/react": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"@types/react-dom": {
|
|
79
|
+
"optional": true
|
|
67
80
|
}
|
|
68
81
|
},
|
|
69
82
|
"dependencies": {
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@floating-ui/dom": "1.
|
|
73
|
-
"@
|
|
74
|
-
"@mhsdesign/jit-browser-tailwindcss": "0.4.1",
|
|
83
|
+
"@chaibuilder/runtime": "2.0.0-beta.13",
|
|
84
|
+
"@floating-ui/dom": "1.6.13",
|
|
85
|
+
"@floating-ui/react-dom": "2.1.2",
|
|
86
|
+
"@mhsdesign/jit-browser-tailwindcss": "0.4.2",
|
|
75
87
|
"@monaco-editor/react": "^4.6.0",
|
|
76
|
-
"@radix-ui/react-accordion": "^1.
|
|
77
|
-
"@radix-ui/react-alert-dialog": "^1.
|
|
78
|
-
"@radix-ui/react-context-menu": "^2.
|
|
79
|
-
"@radix-ui/react-dialog": "^1.
|
|
80
|
-
"@radix-ui/react-dropdown-menu": "^2.
|
|
81
|
-
"@radix-ui/react-hover-card": "^1.
|
|
82
|
-
"@radix-ui/react-icons": "^1.3.
|
|
83
|
-
"@radix-ui/react-label": "^2.
|
|
84
|
-
"@radix-ui/react-menubar": "^1.
|
|
85
|
-
"@radix-ui/react-navigation-menu": "^1.
|
|
86
|
-
"@radix-ui/react-popover": "^1.
|
|
87
|
-
"@radix-ui/react-scroll-area": "^1.
|
|
88
|
-
"@radix-ui/react-select": "^1.
|
|
89
|
-
"@radix-ui/react-separator": "^1.
|
|
90
|
-
"@radix-ui/react-slot": "^1.
|
|
91
|
-
"@radix-ui/react-switch": "^1.
|
|
92
|
-
"@radix-ui/react-tabs": "^1.
|
|
93
|
-
"@radix-ui/react-toast": "^1.
|
|
94
|
-
"@radix-ui/react-toggle": "^1.
|
|
95
|
-
"@radix-ui/react-tooltip": "^1.
|
|
96
|
-
"@react-
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
99
|
-
"@rjsf/
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
102
|
-
"@tailwindcss/
|
|
103
|
-
"@tailwindcss/forms": "^0.5.6",
|
|
88
|
+
"@radix-ui/react-accordion": "^1.2.2",
|
|
89
|
+
"@radix-ui/react-alert-dialog": "^1.1.5",
|
|
90
|
+
"@radix-ui/react-context-menu": "^2.2.5",
|
|
91
|
+
"@radix-ui/react-dialog": "^1.1.5",
|
|
92
|
+
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
93
|
+
"@radix-ui/react-hover-card": "^1.1.5",
|
|
94
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
95
|
+
"@radix-ui/react-label": "^2.1.1",
|
|
96
|
+
"@radix-ui/react-menubar": "^1.1.5",
|
|
97
|
+
"@radix-ui/react-navigation-menu": "^1.2.4",
|
|
98
|
+
"@radix-ui/react-popover": "^1.1.5",
|
|
99
|
+
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
100
|
+
"@radix-ui/react-select": "^2.1.5",
|
|
101
|
+
"@radix-ui/react-separator": "^1.1.1",
|
|
102
|
+
"@radix-ui/react-slot": "^1.1.1",
|
|
103
|
+
"@radix-ui/react-switch": "^1.1.2",
|
|
104
|
+
"@radix-ui/react-tabs": "^1.1.2",
|
|
105
|
+
"@radix-ui/react-toast": "^1.2.5",
|
|
106
|
+
"@radix-ui/react-toggle": "^1.1.1",
|
|
107
|
+
"@radix-ui/react-tooltip": "^1.1.7",
|
|
108
|
+
"@react-hookz/web": "25.0.1",
|
|
109
|
+
"@rjsf/core": "5.24.1",
|
|
110
|
+
"@rjsf/utils": "5.24.1",
|
|
111
|
+
"@rjsf/validator-ajv8": "5.24.1",
|
|
112
|
+
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
113
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
114
|
+
"@tailwindcss/forms": "^0.5.10",
|
|
104
115
|
"@tailwindcss/line-clamp": "^0.4.4",
|
|
105
|
-
"@tailwindcss/typography": "^0.5.
|
|
116
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
106
117
|
"class-variance-authority": "0.6.1",
|
|
107
|
-
"clsx": "
|
|
118
|
+
"clsx": "2.1.1",
|
|
108
119
|
"cmdk": "0.2.0",
|
|
109
|
-
"flagged": "
|
|
110
|
-
"framer-motion": "^
|
|
111
|
-
"fuse.js": "
|
|
120
|
+
"flagged": "3.0.0",
|
|
121
|
+
"framer-motion": "^12.0.3",
|
|
122
|
+
"fuse.js": "7.0.0",
|
|
112
123
|
"himalaya": "^1.1.0",
|
|
113
|
-
"i18next": "^
|
|
114
|
-
"jotai": "2.
|
|
124
|
+
"i18next": "^24.2.1",
|
|
125
|
+
"jotai": "2.11.1",
|
|
115
126
|
"lodash": "^4.17.21",
|
|
116
127
|
"lodash-es": "4.17.21",
|
|
117
|
-
"lucide-react": "^0.
|
|
118
|
-
"re-resizable": "^6.
|
|
119
|
-
"react": "^18.2.0",
|
|
128
|
+
"lucide-react": "^0.474.0",
|
|
129
|
+
"re-resizable": "^6.10.3",
|
|
120
130
|
"react-arborist": "^3.4.0",
|
|
121
|
-
"react-autosuggest": "10.1.0",
|
|
131
|
+
"react-autosuggest": "^10.1.0",
|
|
122
132
|
"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",
|
|
133
|
+
"react-error-boundary": "^5.0.0",
|
|
134
|
+
"react-hotkeys-hook": "4.6.1",
|
|
135
|
+
"react-i18next": "15.4.0",
|
|
136
|
+
"react-icons": "5.4.0",
|
|
129
137
|
"react-icons-picker": "^1.0.9",
|
|
130
|
-
"react-json-view-lite": "^
|
|
138
|
+
"react-json-view-lite": "^2.3.0",
|
|
131
139
|
"react-quill": "^2.0.0",
|
|
132
|
-
"react-wrap-balancer": "^1.1.
|
|
133
|
-
"tailwind-merge": "2.
|
|
140
|
+
"react-wrap-balancer": "^1.1.1",
|
|
141
|
+
"tailwind-merge": "^2.6.0",
|
|
134
142
|
"tree-model": "^1.0.7",
|
|
135
143
|
"undo-manager": "^1.1.1"
|
|
136
144
|
},
|
|
137
145
|
"devDependencies": {
|
|
138
|
-
"@
|
|
139
|
-
"@commitlint/
|
|
140
|
-
"@
|
|
141
|
-
"@
|
|
142
|
-
"@
|
|
143
|
-
"@
|
|
144
|
-
"@
|
|
145
|
-
"@
|
|
146
|
-
"@testing-library/react": "^16.0.0",
|
|
147
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
148
|
-
"@types/jest": "^29.5.7",
|
|
149
|
-
"@types/lodash": "^4.14.200",
|
|
146
|
+
"@commitlint/cli": "19.6.1",
|
|
147
|
+
"@commitlint/config-conventional": "19.6.0",
|
|
148
|
+
"@emotion/react": "^11.14.0",
|
|
149
|
+
"@faker-js/faker": "^9.4.0",
|
|
150
|
+
"@playwright/test": "^1.50.0",
|
|
151
|
+
"@tanstack/eslint-plugin-query": "^5.64.2",
|
|
152
|
+
"@testing-library/react": "^16.2.0",
|
|
153
|
+
"@types/lodash": "^4.17.14",
|
|
150
154
|
"@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
|
-
"
|
|
159
|
-
"
|
|
155
|
+
"@types/react": "^18.3.1",
|
|
156
|
+
"@types/react-dom": "^18.3.1",
|
|
157
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
158
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
159
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
160
|
+
"autoprefixer": "^10.4.20",
|
|
161
|
+
"axios": "^1.7.9",
|
|
162
|
+
"react": "^18.3.1",
|
|
163
|
+
"react-dom": "^18.3.1",
|
|
160
164
|
"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",
|
|
165
|
+
"dotenv": "^16.4.7",
|
|
166
|
+
"eslint": "^9.18.0",
|
|
167
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
168
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
169
|
+
"husky": "^9.1.7",
|
|
169
170
|
"jest-environment-jsdom": "^29.7.0",
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"prettier": "^
|
|
175
|
-
"prettier-plugin-tailwindcss": "^0.6.1",
|
|
171
|
+
"jsdoc": "^4.0.4",
|
|
172
|
+
"msw": "^2.7.0",
|
|
173
|
+
"postcss": "^8.5.1",
|
|
174
|
+
"prettier": "^3.4.2",
|
|
175
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
176
176
|
"prop-types": "^15.8.1",
|
|
177
|
-
"react-router-dom": "^
|
|
178
|
-
"tailwindcss": "^3.
|
|
179
|
-
"tailwindcss-animate": "1.0.
|
|
180
|
-
"ts-jest": "^29.
|
|
177
|
+
"react-router-dom": "^7.1.3",
|
|
178
|
+
"tailwindcss": "^3.4.11",
|
|
179
|
+
"tailwindcss-animate": "^1.0.7",
|
|
180
|
+
"ts-jest": "^29.2.5",
|
|
181
181
|
"ts-node": "^10.9.2",
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"vite-plugin-dts": "^3.6.3",
|
|
188
|
-
"zod": "^3.23.8"
|
|
182
|
+
"typescript": "^5.7.3",
|
|
183
|
+
"vite": "^6.0.11",
|
|
184
|
+
"vite-plugin-dts": "^4.5.0",
|
|
185
|
+
"vitest": "^3.0.4",
|
|
186
|
+
"zod": "^3.24.1"
|
|
189
187
|
},
|
|
190
188
|
"msw": {
|
|
191
189
|
"workerDirectory": "public"
|
|
190
|
+
},
|
|
191
|
+
"engines": {
|
|
192
|
+
"node": "^20.18.0"
|
|
192
193
|
}
|
|
193
194
|
}
|
|
@@ -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-I8woggB3.js";
|
|
4
|
-
import { useTranslation as j } from "react-i18next";
|
|
5
|
-
import { useState as l, useCallback as v, useEffect as g } from "react";
|
|
6
|
-
import { u as y, a as N, b as T, c as E } from "./index-UvIwJj5Y.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-dropdown-menu";
|
|
22
|
-
import "@radix-ui/react-separator";
|
|
23
|
-
import "@radix-ui/react-toast";
|
|
24
|
-
import "@radix-ui/react-context-menu";
|
|
25
|
-
import "clsx";
|
|
26
|
-
import "tailwind-merge";
|
|
27
|
-
import "lodash-es";
|
|
28
|
-
import "jotai";
|
|
29
|
-
import "./iconBase-Ief2hJUZ.js";
|
|
30
|
-
import "@chaibuilder/runtime";
|
|
31
|
-
import "./plugin-f6SDZ_Or.js";
|
|
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 "@rjsf/validator-ajv8";
|
|
49
|
-
import "@rjsf/core";
|
|
50
|
-
import "./controls-lEwMTdPQ.js";
|
|
51
|
-
import "react-arborist";
|
|
52
|
-
import "himalaya";
|
|
53
|
-
import "react-icons-picker";
|
|
54
|
-
import "react-autosuggest";
|
|
55
|
-
import "fuse.js";
|
|
56
|
-
import "i18next";
|
|
57
|
-
import "framer-motion";
|
|
58
|
-
const a = (r) => {
|
|
59
|
-
const i = document.createElement("div");
|
|
60
|
-
return i.innerHTML = r, i.innerHTML;
|
|
61
|
-
};
|
|
62
|
-
function Pt() {
|
|
63
|
-
const { t: r } = j(), [i, n] = l(!1), [m, c] = l(""), [o, s] = y(), [p] = N(), d = T(), u = E(), f = B(
|
|
64
|
-
(e) => {
|
|
65
|
-
const b = a(e);
|
|
66
|
-
u([o.blockId], { [o.blockProp]: b });
|
|
67
|
-
},
|
|
68
|
-
[],
|
|
69
|
-
300
|
|
70
|
-
), x = v(() => {
|
|
71
|
-
if (i) {
|
|
72
|
-
const e = a(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
|
-
n(!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
|
-
};
|
|
@@ -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-0lRey9QY.cjs"),C=require("react-i18next"),u=require("react"),n=require("./index-gHOGFo7e.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-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-xOpS-UNV.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("@rjsf/validator-ajv8");require("@rjsf/core");require("./controls-p9IwFnPx.cjs");require("react-arborist");require("himalaya");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;
|
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-9ltyM5Cl.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-Sp0orL4X.js";
|
|
2
|
-
import l, { useMemo as w, Suspense as c } from "react";
|
|
3
|
-
import { B as u, D as S, a as C, b as y, c as k, S as p, d as g } from "./context-menu-I8woggB3.js";
|
|
4
|
-
import { d as A, F as D, e as n, f as P, g as B, L as x, h as f, i as E } from "./index-UvIwJj5Y.js";
|
|
5
|
-
import { useTranslation as v } from "react-i18next";
|
|
6
|
-
import { c as N } from "./iconBase-Ief2hJUZ.js";
|
|
7
|
-
import { EyeOpenIcon as L, ChevronDownIcon as M } from "@radix-ui/react-icons";
|
|
8
|
-
import { forEach as I, uniq as G, get as d, isEmpty as j, map as V } from "lodash-es";
|
|
9
|
-
import "@chaibuilder/runtime";
|
|
10
|
-
import "@radix-ui/react-switch";
|
|
11
|
-
import "@radix-ui/react-accordion";
|
|
12
|
-
import "class-variance-authority";
|
|
13
|
-
import "@radix-ui/react-alert-dialog";
|
|
14
|
-
import "@radix-ui/react-slot";
|
|
15
|
-
import "@radix-ui/react-dialog";
|
|
16
|
-
import "@radix-ui/react-label";
|
|
17
|
-
import "@radix-ui/react-scroll-area";
|
|
18
|
-
import "@radix-ui/react-tabs";
|
|
19
|
-
import "@radix-ui/react-tooltip";
|
|
20
|
-
import "@radix-ui/react-popover";
|
|
21
|
-
import "@radix-ui/react-hover-card";
|
|
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 "jotai";
|
|
29
|
-
import "./plugin-f6SDZ_Or.js";
|
|
30
|
-
import "@react-hookz/web";
|
|
31
|
-
import "tree-model";
|
|
32
|
-
import "react-quill";
|
|
33
|
-
import "./STRINGS-Xxstm-7I.js";
|
|
34
|
-
import "flagged";
|
|
35
|
-
import "react-hotkeys-hook";
|
|
36
|
-
import "@floating-ui/dom";
|
|
37
|
-
import "@floating-ui/react-dom";
|
|
38
|
-
import "@tailwindcss/typography";
|
|
39
|
-
import "@tailwindcss/forms";
|
|
40
|
-
import "@tailwindcss/aspect-ratio";
|
|
41
|
-
import "react-wrap-balancer";
|
|
42
|
-
import "react-dom";
|
|
43
|
-
import "prop-types";
|
|
44
|
-
import "react-error-boundary";
|
|
45
|
-
import "re-resizable";
|
|
46
|
-
import "lucide-react";
|
|
47
|
-
import "@rjsf/validator-ajv8";
|
|
48
|
-
import "@rjsf/core";
|
|
49
|
-
import "./controls-lEwMTdPQ.js";
|
|
50
|
-
import "react-arborist";
|
|
51
|
-
import "himalaya";
|
|
52
|
-
import "react-icons-picker";
|
|
53
|
-
import "react-autosuggest";
|
|
54
|
-
import "fuse.js";
|
|
55
|
-
import "i18next";
|
|
56
|
-
import "framer-motion";
|
|
57
|
-
const F = () => {
|
|
58
|
-
const { savePage: a, saveState: s } = A(), { t: r } = v(), i = /* @__PURE__ */ e.jsxs(
|
|
59
|
-
u,
|
|
60
|
-
{
|
|
61
|
-
disabled: s === "SAVING",
|
|
62
|
-
onClick: (t) => {
|
|
63
|
-
t.preventDefault(), a();
|
|
64
|
-
},
|
|
65
|
-
className: N(
|
|
66
|
-
"flex h-auto w-fit items-center gap-x-2 p-1 px-2",
|
|
67
|
-
// UNSAVED sate
|
|
68
|
-
"bg-gray-200 text-gray-500 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-400",
|
|
69
|
-
{
|
|
70
|
-
"animate-pulse bg-gray-300 text-gray-900": s === "SAVING",
|
|
71
|
-
"bg-green-500 text-white hover:bg-green-600 hover:text-white dark:bg-green-600 dark:text-white": s === "SAVED"
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
size: "sm",
|
|
75
|
-
variant: "outline",
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ e.jsx(D, { className: "text-sm text-white" }),
|
|
78
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: r(s === "SAVING" ? "Saving" : s === "SAVED" ? "Saved" : "Unsaved") })
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: i });
|
|
83
|
-
}, z = function() {
|
|
84
|
-
const s = n("previewComponent"), [, r] = P(), { t: i } = v();
|
|
85
|
-
return s ? /* @__PURE__ */ e.jsxs(
|
|
86
|
-
u,
|
|
87
|
-
{
|
|
88
|
-
onClick: (t) => {
|
|
89
|
-
t.preventDefault(), r(!0);
|
|
90
|
-
},
|
|
91
|
-
className: "flex h-auto w-fit items-center gap-x-2 p-1 px-2",
|
|
92
|
-
size: "sm",
|
|
93
|
-
variant: "outline",
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ e.jsx(L, { className: "text-xs" }),
|
|
96
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: i("Preview") })
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
) : null;
|
|
100
|
-
}, T = () => {
|
|
101
|
-
const { fallbackLang: a, languages: s, selectedLang: r, setSelectedLang: i } = B(), t = (r == null ? void 0 : r.length) > 0 ? r : a, b = w(() => {
|
|
102
|
-
const o = [];
|
|
103
|
-
return I(G([a, ...s]), (m) => {
|
|
104
|
-
const h = d(x, m);
|
|
105
|
-
h && o.push({ key: m, value: h, default: m === a });
|
|
106
|
-
}), o;
|
|
107
|
-
}, [a, s]);
|
|
108
|
-
return j(s) && t === "en" ? null : j(s) && t !== "en" ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-1 text-sm text-blue-500 hover:text-blue-600", children: [
|
|
109
|
-
/* @__PURE__ */ e.jsx(f, { className: "h-4 w-4" }),
|
|
110
|
-
d(x, t)
|
|
111
|
-
] }) : /* @__PURE__ */ e.jsxs(S, { children: [
|
|
112
|
-
/* @__PURE__ */ e.jsx(C, { asChild: !0, children: /* @__PURE__ */ e.jsxs(u, { size: "sm", variant: "outline", className: "flex items-center gap-x-1 text-blue-500 hover:text-blue-600", children: [
|
|
113
|
-
/* @__PURE__ */ e.jsx(f, { className: "h-4 w-4" }),
|
|
114
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
115
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
116
|
-
" ",
|
|
117
|
-
d(x, t)
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ e.jsx(M, { className: "h-4 w-4" })
|
|
120
|
-
] })
|
|
121
|
-
] }) }),
|
|
122
|
-
/* @__PURE__ */ e.jsx(y, { className: "border-border", children: V(b, (o) => /* @__PURE__ */ e.jsxs(
|
|
123
|
-
k,
|
|
124
|
-
{
|
|
125
|
-
className: N(
|
|
126
|
-
"flex cursor-pointer items-center text-sm",
|
|
127
|
-
o.key === t && "!bg-blue-500 text-white hover:!text-white"
|
|
128
|
-
),
|
|
129
|
-
onClick: () => i(o.key),
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ e.jsx("div", { children: o.value }),
|
|
132
|
-
o.key === a ? /* @__PURE__ */ e.jsx(E, { className: "ml-2 h-4 w-4 text-yellow-400" }) : null
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
)) })
|
|
136
|
-
] });
|
|
137
|
-
}, Ue = () => {
|
|
138
|
-
const a = n("topBarComponents.left", []), s = n("topBarComponents.center", []), r = n("topBarComponents.right", []), i = n("editable", !0);
|
|
139
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
|
|
140
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2 font-bold", children: l.Children.toArray(
|
|
141
|
-
a.map((t) => /* @__PURE__ */ e.jsx(c, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(t, {}) }))
|
|
142
|
-
) }) }),
|
|
143
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: l.Children.toArray(
|
|
144
|
-
s.map((t) => /* @__PURE__ */ e.jsx(c, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(t, {}) }))
|
|
145
|
-
) }),
|
|
146
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
147
|
-
/* @__PURE__ */ e.jsx(T, {}),
|
|
148
|
-
/* @__PURE__ */ e.jsx(g, { orientation: "vertical" }),
|
|
149
|
-
/* @__PURE__ */ e.jsx(z, {}),
|
|
150
|
-
/* @__PURE__ */ e.jsx(g, { orientation: "vertical" }),
|
|
151
|
-
i ? /* @__PURE__ */ e.jsx(F, {}) : null,
|
|
152
|
-
l.Children.toArray(
|
|
153
|
-
r.map((t) => /* @__PURE__ */ e.jsx(c, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(t, {}) }))
|
|
154
|
-
)
|
|
155
|
-
] })
|
|
156
|
-
] });
|
|
157
|
-
};
|
|
158
|
-
export {
|
|
159
|
-
Ue as default
|
|
160
|
-
};
|
package/dist/Topbar-CbNTH5d8.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-JYMCiFoE.cjs"),l=require("react"),i=require("./context-menu-0lRey9QY.cjs"),t=require("./index-gHOGFo7e.cjs"),p=require("react-i18next"),j=require("./iconBase-aZzpqff_.cjs"),d=require("@radix-ui/react-icons"),x=require("lodash-es");require("@chaibuilder/runtime");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-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");require("jotai");require("./plugin-xOpS-UNV.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("@rjsf/validator-ajv8");require("@rjsf/core");require("./controls-p9IwFnPx.cjs");require("react-arborist");require("himalaya");require("react-icons-picker");require("react-autosuggest");require("fuse.js");require("i18next");require("framer-motion");const h=()=>{const{savePage:u,saveState:s}=t.useSavePage(),{t:n}=p.useTranslation(),a=e.jsxRuntimeExports.jsxs(i.Button,{disabled:s==="SAVING",onClick:r=>{r.preventDefault(),u()},className:j.cn("flex h-auto w-fit items-center gap-x-2 p-1 px-2","bg-gray-200 text-gray-500 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-400",{"animate-pulse bg-gray-300 text-gray-900":s==="SAVING","bg-green-500 text-white hover:bg-green-600 hover:text-white dark:bg-green-600 dark:text-white":s==="SAVED"}),size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(t.FaCheck,{className:"text-sm text-white"}),e.jsxRuntimeExports.jsx("span",{className:"text-sm",children:n(s==="SAVING"?"Saving":s==="SAVED"?"Saved":"Unsaved")})]});return e.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:a})},E=function(){const s=t.useBuilderProp("previewComponent"),[,n]=t.usePreviewMode(),{t:a}=p.useTranslation();return s?e.jsxRuntimeExports.jsxs(i.Button,{onClick:r=>{r.preventDefault(),n(!0)},className:"flex h-auto w-fit items-center gap-x-2 p-1 px-2",size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(d.EyeOpenIcon,{className:"text-xs"}),e.jsxRuntimeExports.jsx("span",{className:"text-sm",children:a("Preview")})]}):null},g=()=>{const{fallbackLang:u,languages:s,selectedLang:n,setSelectedLang:a}=t.useLanguages(),r=(n==null?void 0:n.length)>0?n:u,q=l.useMemo(()=>{const o=[];return x.forEach(x.uniq([u,...s]),c=>{const m=x.get(t.LANGUAGES,c);m&&o.push({key:c,value:m,default:c===u})}),o},[u,s]);return x.isEmpty(s)&&r==="en"?null:x.isEmpty(s)&&r!=="en"?e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-x-1 text-sm text-blue-500 hover:text-blue-600",children:[e.jsxRuntimeExports.jsx(t.FaLanguage,{className:"h-4 w-4"}),x.get(t.LANGUAGES,r)]}):e.jsxRuntimeExports.jsxs(i.DropdownMenu,{children:[e.jsxRuntimeExports.jsx(i.DropdownMenuTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs(i.Button,{size:"sm",variant:"outline",className:"flex items-center gap-x-1 text-blue-500 hover:text-blue-600",children:[e.jsxRuntimeExports.jsx(t.FaLanguage,{className:"h-4 w-4"}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxRuntimeExports.jsxs("div",{children:[" ",x.get(t.LANGUAGES,r)]}),e.jsxRuntimeExports.jsx(d.ChevronDownIcon,{className:"h-4 w-4"})]})]})}),e.jsxRuntimeExports.jsx(i.DropdownMenuContent,{className:"border-border",children:x.map(q,o=>e.jsxRuntimeExports.jsxs(i.DropdownMenuItem,{className:j.cn("flex cursor-pointer items-center text-sm",o.key===r&&"!bg-blue-500 text-white hover:!text-white"),onClick:()=>a(o.key),children:[e.jsxRuntimeExports.jsx("div",{children:o.value}),o.key===u?e.jsxRuntimeExports.jsx(t.FaStar,{className:"ml-2 h-4 w-4 text-yellow-400"}):null]}))})]})},v=()=>{const u=t.useBuilderProp("topBarComponents.left",[]),s=t.useBuilderProp("topBarComponents.center",[]),n=t.useBuilderProp("topBarComponents.right",[]),a=t.useBuilderProp("editable",!0);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:l.Children.toArray(u.map(r=>e.jsxRuntimeExports.jsx(l.Suspense,{fallback:e.jsxRuntimeExports.jsx(i.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(r,{})})))})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:l.Children.toArray(s.map(r=>e.jsxRuntimeExports.jsx(l.Suspense,{fallback:e.jsxRuntimeExports.jsx(i.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(r,{})})))}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsxRuntimeExports.jsx(g,{}),e.jsxRuntimeExports.jsx(i.Separator,{orientation:"vertical"}),e.jsxRuntimeExports.jsx(E,{}),e.jsxRuntimeExports.jsx(i.Separator,{orientation:"vertical"}),a?e.jsxRuntimeExports.jsx(h,{}):null,l.Children.toArray(n.map(r=>e.jsxRuntimeExports.jsx(l.Suspense,{fallback:e.jsxRuntimeExports.jsx(i.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(r,{})})))]})]})};exports.default=v;
|