@chaibuilder/sdk 1.2.25 → 1.2.26
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/dist/AddBlocks-l1JENNvq.js +206 -0
- package/dist/AddBlocks-zPPKkeKs.cjs +1 -0
- package/dist/BrandingOptions-DkpqGARR.cjs +1 -0
- package/dist/{BrandingOptions-iTyWpwTs.js → BrandingOptions-udtH5yJs.js} +54 -40
- package/dist/{CanvasArea-dZjng782.js → CanvasArea-h0W-Tyha.js} +324 -340
- package/dist/CanvasArea-zme1r3Zi.cjs +55 -0
- package/dist/Class-PoYusiA5.cjs +1 -0
- package/dist/{Class-ahc3NIbq.js → Class-lGzsNBOK.js} +29 -26
- package/dist/CurrentPage-Hl52iub_.cjs +1 -0
- package/dist/{CurrentPage-Kmfp-kFk.js → CurrentPage-tJUjXWdb.js} +54 -40
- package/dist/Functions-7jnEwJyw.js +15 -0
- package/dist/Functions-N3yhPYKY.cjs +1 -0
- package/dist/ListTree-WvTjY5rr.cjs +1 -0
- package/dist/{ListTree-N3jeD790.js → ListTree-cZ-Ihlt3.js} +96 -86
- package/dist/MODIFIERS-0g14w5RS.cjs +1 -0
- package/dist/{MODIFIERS-CNqNUapY.js → MODIFIERS-dytZ-osO.js} +4 -10
- package/dist/PagesPanel-6rrLXEO-.js +64 -0
- package/dist/PagesPanel-WzCocl6u.cjs +1 -0
- package/dist/ProjectPanel-o7gdcwPn.cjs +1 -0
- package/dist/ProjectPanel-tz3bjdXy.js +85 -0
- package/dist/{STRINGS-b432aBJJ.js → STRINGS--j49GZJP.js} +2 -2
- package/dist/{Settings-jCcd-VE6.js → Settings-4s2LUVmC.js} +401 -407
- package/dist/Settings-AqoKwR92.cjs +1 -0
- package/dist/SidePanels-3o6Okmvu.cjs +1 -0
- package/dist/{SidePanels-pHMYprpW.js → SidePanels-bugFfInz.js} +118 -108
- package/dist/Topbar-CqW7G360.cjs +1 -0
- package/dist/Topbar-pWzBEOed.js +132 -0
- package/dist/UnsplashImages-NGskB93R.cjs +1 -0
- package/dist/{UnsplashImages-L7x_3RQf.js → UnsplashImages-qvwFbV-E.js} +63 -50
- package/dist/{UploadImages-zdEJRLD8.js → UploadImages-9NapgXBq.js} +60 -37
- package/dist/UploadImages-Oh7Glr9A.cjs +1 -0
- package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
- package/dist/add-page-modal--6TTBRYa.cjs +1 -0
- package/dist/add-page-modal-k2Kb92HS.js +104 -0
- package/dist/confirm-alert-C4M9eF-o.cjs +1 -0
- package/dist/confirm-alert-GUhZ_G8w.js +60 -0
- package/dist/controls-KK2oLIa8.cjs +1 -0
- package/dist/{controls-IS5qnRce.js → controls-OfJWSEqC.js} +85 -20
- package/dist/core.cjs +1 -1
- package/dist/core.js +75 -150
- package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
- package/dist/{defaultTheme-4kA60XdB.js → defaultTheme-D8B4-wHO.js} +8 -6
- package/dist/delete-page-modal-cFoL-wdo.cjs +1 -0
- package/dist/delete-page-modal-zONvdebd.js +83 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +292 -3
- package/dist/email.cjs +1 -1
- package/dist/email.js +37 -18
- package/dist/empty-slot-ZBlsQi6m.js +15 -0
- package/dist/empty-slot-nzYOgZuS.cjs +1 -0
- package/dist/{form-0_RLz2TB.js → form-STUz-6nE.js} +12 -12
- package/dist/form-lBQ_76Uw.cjs +1 -0
- package/dist/{html-to-json-uSnxl72F.cjs → html-to-json-efmv1pCj.cjs} +1 -1
- package/dist/{html-to-json-2xtb7520.js → html-to-json-ngX9ef2u.js} +41 -41
- package/dist/index-Gk6sASBd.js +3080 -0
- package/dist/index-OB199Izc.cjs +206 -0
- package/dist/index-SkyM3d6Q.js +39503 -0
- package/dist/index-YpnaudSM.js +63 -0
- package/dist/index-e0c8PmRQ.js +205 -0
- package/dist/index-ecnGWzh9.cjs +1 -0
- package/dist/index-gi1LIOCw.cjs +1 -0
- package/dist/index-h-hd6EvN.cjs +1 -0
- package/dist/index-llTXLDGE.js +2201 -0
- package/dist/index-mbyqq81O.cjs +1 -0
- package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-WbnYoNE9.js} +109 -106
- package/dist/jsx-runtime-Z_BpKhVy.cjs +27 -0
- package/dist/lib.cjs +2 -2
- package/dist/lib.js +66 -62
- package/dist/page-viewer-2kwnKM6v.cjs +1 -0
- package/dist/{page-viewer-NnOwmAmu.js → page-viewer-Pdg9F5Hv.js} +57 -43
- package/dist/project-general-setting-CnNL98NM.cjs +1 -0
- package/dist/{project-general-setting-9ju3TDju.js → project-general-setting-f8Ebsn6K.js} +43 -35
- package/dist/project-seo-setting-mlxL_e2_.cjs +1 -0
- package/dist/{project-seo-setting-36CdUszM.js → project-seo-setting-pX34Qsym.js} +40 -23
- package/dist/render.cjs +1 -1
- package/dist/render.js +14 -13
- package/dist/single-page-detail-XfzrGlzA.cjs +1 -0
- package/dist/{single-page-detail-hD1jKZ8k.js → single-page-detail-dpe5LT0M.js} +74 -66
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +40 -24
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +160 -365
- package/dist/web-blocks.cjs +6 -1
- package/dist/web-blocks.js +1153 -3
- package/package.json +1 -1
- package/dist/AddBlocks-Ol3iIVKa.js +0 -207
- package/dist/AddBlocks-a1c-7Ewz.cjs +0 -1
- package/dist/BrandingOptions-6rnt0UaA.cjs +0 -1
- package/dist/CanvasArea-R4ogF9AT.cjs +0 -55
- package/dist/ChaiBuilderEditor-m30yoOgJ.cjs +0 -163
- package/dist/ChaiBuilderEditor-vP4at00I.js +0 -27974
- package/dist/Class-eieto7e-.cjs +0 -1
- package/dist/Controls-3Cc1XYXg.js +0 -105
- package/dist/Controls-ky25Ebo3.cjs +0 -1
- package/dist/CurrentPage-3gQTH0Zt.cjs +0 -1
- package/dist/Functions-Hvon6AMZ.cjs +0 -1
- package/dist/Functions-NzT2Six_.js +0 -15
- package/dist/ImagesPanel-J1RlG7xG.cjs +0 -1
- package/dist/ImagesPanel-Wb0GF_NA.js +0 -29
- package/dist/ListTree-CZ-mtjZ9.cjs +0 -1
- package/dist/MODIFIERS-o1p3VnpS.cjs +0 -1
- package/dist/PagesPanel-Gi0z6gaf.cjs +0 -1
- package/dist/PagesPanel-u1IB-nRr.js +0 -48
- package/dist/ProjectPanel-EydGZmMW.js +0 -71
- package/dist/ProjectPanel-kiiljG4H.cjs +0 -1
- package/dist/Settings-8ilCSH8b.cjs +0 -1
- package/dist/SidePanels-T36C6Lhc.cjs +0 -1
- package/dist/Topbar-CvWQuspR.cjs +0 -1
- package/dist/Topbar-pbIDUE_B.js +0 -122
- package/dist/UnsplashImages-KBZPd9dv.cjs +0 -1
- package/dist/UploadImages-GkkJVAgG.cjs +0 -1
- package/dist/accordion-oPUeqPCZ.js +0 -42
- package/dist/accordion-ynvFtV_p.cjs +0 -1
- package/dist/add-page-modal-9SGv2hgc.cjs +0 -1
- package/dist/add-page-modal-JCDXZIPW.js +0 -95
- package/dist/alert-dialog-P9xMMB6C.cjs +0 -1
- package/dist/alert-dialog-rypfO5ly.js +0 -64
- package/dist/badge-E-S7CqUt.cjs +0 -1
- package/dist/badge-tEwO7C51.js +0 -23
- package/dist/block-helpers-OKHmRRol.cjs +0 -1
- package/dist/block-helpers-oSFpSsGz.js +0 -23
- package/dist/command-BxR6jaCI.cjs +0 -1
- package/dist/command-Pn3HKDuV.js +0 -97
- package/dist/confirm-alert-uNm0lZ0y.cjs +0 -1
- package/dist/confirm-alert-wR5_VJ1l.js +0 -36
- package/dist/context-menu-8dC9uGXj.js +0 -122
- package/dist/context-menu-IgLbIuth.cjs +0 -1
- package/dist/controls-L7DPvB0m.cjs +0 -1
- package/dist/defaultTheme-mrkeGFGI.cjs +0 -1
- package/dist/delete-page-modal-7KmP1elv.js +0 -67
- package/dist/delete-page-modal-SgfwvfNu.cjs +0 -1
- package/dist/dropdown-menu-El86_9Uo.js +0 -124
- package/dist/dropdown-menu-SiHzqWwZ.cjs +0 -1
- package/dist/form-W58AVUdf.cjs +0 -1
- package/dist/hover-card-KUwpDkW8.cjs +0 -1
- package/dist/hover-card-q138xxXR.js +0 -45
- package/dist/iconBase-gbUAAO2L.cjs +0 -1
- package/dist/iconBase-h4DuR_XT.js +0 -63
- package/dist/index-9MmykVSc.cjs +0 -1
- package/dist/index-hElOGcFr.js +0 -2200
- package/dist/index-lDTsQp7h.js +0 -188
- package/dist/index-rq5Y9ZDy.cjs +0 -1
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/label-KaP7MRrs.js +0 -10
- package/dist/label-tFm8HZdb.cjs +0 -1
- package/dist/link-WbcKdQ9k.cjs +0 -1
- package/dist/link-xuhP-4dN.js +0 -196
- package/dist/page-viewer-Hx5hxHKm.cjs +0 -1
- package/dist/popover-a84pbVhQ.js +0 -23
- package/dist/popover-fKjgcRUx.cjs +0 -1
- package/dist/project-general-setting-FxkwjvJz.cjs +0 -1
- package/dist/project-seo-setting-RU7qiXxb.cjs +0 -1
- package/dist/scroll-area-FiHvy-TZ.cjs +0 -1
- package/dist/scroll-area-ewXbxc3n.js +0 -30
- package/dist/select-7bjg-rr9.cjs +0 -1
- package/dist/select-POGdEDHT.js +0 -75
- package/dist/separator-3Civ-6hb.cjs +0 -1
- package/dist/separator-SctTn0Qi.js +0 -18
- package/dist/single-page-detail-beY0MT1b.cjs +0 -1
- package/dist/skeleton-STeL9VrJ.cjs +0 -1
- package/dist/skeleton-lu8e7q2y.js +0 -239
- package/dist/tabs-_4WbA1cc.cjs +0 -1
- package/dist/tabs-yQ3oGziM.js +0 -106
- package/dist/textarea-1kZEh7ki.cjs +0 -1
- package/dist/textarea-b2QvVhrK.js +0 -73
- package/dist/useAddBlock-8pxOEYIl.cjs +0 -1
- package/dist/useAddBlock-FEKFJNwQ.js +0 -69
- package/dist/useChaiExternalData-fkFgoS80.js +0 -6
- package/dist/useChaiExternalData-rwoAZ6uU.cjs +0 -1
- package/dist/useDarkMode-7i57segK.cjs +0 -1
- package/dist/useDarkMode-8VHJlYyE.js +0 -23
- package/dist/useSelectedBreakpoints-6NK5qd7T.js +0 -10
- package/dist/useSelectedBreakpoints-7ONXb-vN.cjs +0 -1
- package/dist/useStylingState-Iuj84yvc.js +0 -186
- package/dist/useStylingState-OIvJMV6p.cjs +0 -1
- package/dist/useUiLibraries-nCdauJ4N.cjs +0 -1
- package/dist/useUiLibraries-psyWFbNc.js +0 -12
- package/dist/useUpdateBlocksProps-Unn8lUyj.cjs +0 -1
- package/dist/useUpdateBlocksProps-vWcDp-P9.js +0 -23
- package/dist/utils-dze1SGvB.js +0 -6
- package/dist/utils-qK_SjzzV.cjs +0 -1
package/dist/lib.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { d as h,
|
|
7
|
-
import { tailwindcssPaletteGenerator as
|
|
8
|
-
import { createTailwindcss as
|
|
9
|
-
import
|
|
1
|
+
import { c as _ } from "./Class-lGzsNBOK.js";
|
|
2
|
+
import { a as ie } from "./Class-lGzsNBOK.js";
|
|
3
|
+
import { g as le, a as pe } from "./Functions-7jnEwJyw.js";
|
|
4
|
+
import { g as me } from "./html-to-json-ngX9ef2u.js";
|
|
5
|
+
import { first as F, includes as l, keys as d, map as T, parseInt as $, get as p, set as b, startsWith as k, replace as O } from "lodash-es";
|
|
6
|
+
import { d as h, a as C, g as I } from "./defaultTheme-D8B4-wHO.js";
|
|
7
|
+
import { tailwindcssPaletteGenerator as E } from "@bobthered/tailwindcss-palette-generator";
|
|
8
|
+
import { createTailwindcss as V } from "@mhsdesign/jit-browser-tailwindcss";
|
|
9
|
+
import A from "@tailwindcss/forms";
|
|
10
10
|
import L from "@tailwindcss/typography";
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
11
|
+
import P from "@tailwindcss/aspect-ratio";
|
|
12
|
+
import { a as R } from "./STRINGS--j49GZJP.js";
|
|
13
13
|
import "clsx";
|
|
14
14
|
import "tailwind-merge";
|
|
15
|
+
import "./MODIFIERS-dytZ-osO.js";
|
|
15
16
|
import "himalaya";
|
|
16
|
-
import "./
|
|
17
|
-
const
|
|
17
|
+
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
18
|
+
const w = {
|
|
18
19
|
25: "1/4",
|
|
19
20
|
"33.33": "1/3",
|
|
20
21
|
50: "1/2",
|
|
@@ -31,7 +32,7 @@ const T = {
|
|
|
31
32
|
"58.33": "7/12",
|
|
32
33
|
"91.67": "11/12",
|
|
33
34
|
100: "full"
|
|
34
|
-
},
|
|
35
|
+
}, W = {
|
|
35
36
|
0: "0",
|
|
36
37
|
1: "px",
|
|
37
38
|
2: "0.5",
|
|
@@ -67,21 +68,22 @@ const T = {
|
|
|
67
68
|
288: "72",
|
|
68
69
|
320: "80",
|
|
69
70
|
384: "96"
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
};
|
|
72
|
+
const B = 16, X = 4;
|
|
73
|
+
function v(a) {
|
|
74
|
+
return a.indexOf("rem") !== -1 && (a = `${parseFloat(a.replace("rem", "")) * B}px`), a;
|
|
73
75
|
}
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
76
|
+
const te = (a) => {
|
|
77
|
+
const r = a.match(/\[.*\]/);
|
|
78
|
+
if (r === null)
|
|
77
79
|
return a;
|
|
78
|
-
const s =
|
|
80
|
+
const s = _(a);
|
|
79
81
|
if (s === null)
|
|
80
82
|
return a;
|
|
81
83
|
const { property: n } = s;
|
|
82
|
-
let e =
|
|
83
|
-
const
|
|
84
|
-
e =
|
|
84
|
+
let e = F(r).replace(/\]/i, "").replace(/\[/i, "");
|
|
85
|
+
const c = a.replace(/\[.*\]/i, "");
|
|
86
|
+
e = v(e);
|
|
85
87
|
let t = a;
|
|
86
88
|
switch (n) {
|
|
87
89
|
case "top":
|
|
@@ -116,23 +118,23 @@ const ae = (a) => {
|
|
|
116
118
|
case "spaceX":
|
|
117
119
|
case "spaceY":
|
|
118
120
|
if (e.indexOf("px") !== -1) {
|
|
119
|
-
const o =
|
|
121
|
+
const o = T(d(W), (i) => `${i}px`);
|
|
120
122
|
if (l(o, e)) {
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
+
const i = $(e.replace("px", ""), 10);
|
|
124
|
+
i === 1 ? t = `${c}px` : t = c + i / X;
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
if (e.indexOf("%") !== -1) {
|
|
126
|
-
const o =
|
|
128
|
+
const o = T(d(w), (i) => `${i}%`);
|
|
127
129
|
if (l(o, e)) {
|
|
128
|
-
const
|
|
129
|
-
t =
|
|
130
|
+
const i = parseFloat(e.replace("%", ""));
|
|
131
|
+
t = c + p(w, i);
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
|
-
e.indexOf("vw") !== -1 && parseFloat(e.replace("vw", "")) === 100 && (t = `${
|
|
134
|
+
e.indexOf("vw") !== -1 && parseFloat(e.replace("vw", "")) === 100 && (t = `${c}screen`), e.indexOf("vh") !== -1 && parseFloat(e.replace("vh", "")) === 100 && (t = `${c}screen`);
|
|
133
135
|
break;
|
|
134
136
|
case "minWidth":
|
|
135
|
-
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (t = `${
|
|
137
|
+
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (t = `${c}full`), e === "0px" && (t = "min-w-0");
|
|
136
138
|
break;
|
|
137
139
|
case "maxWidth":
|
|
138
140
|
e === "0px" && (t = "max-w-0");
|
|
@@ -156,7 +158,7 @@ const ae = (a) => {
|
|
|
156
158
|
l(d(x), e) && (t = `max-w-${x[e]}`);
|
|
157
159
|
break;
|
|
158
160
|
case "minHeight":
|
|
159
|
-
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (t = `${
|
|
161
|
+
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (t = `${c}full`), e === "0px" && (t = "min-h-0"), e === "100vh" && (t = "min-h-screen");
|
|
160
162
|
break;
|
|
161
163
|
case "fontSize":
|
|
162
164
|
const f = {
|
|
@@ -174,7 +176,7 @@ const ae = (a) => {
|
|
|
174
176
|
"96px": "8xl",
|
|
175
177
|
"128px": "9xl"
|
|
176
178
|
};
|
|
177
|
-
l(d(f), e) && (t =
|
|
179
|
+
l(d(f), e) && (t = c + f[e]);
|
|
178
180
|
break;
|
|
179
181
|
case "lineHeight":
|
|
180
182
|
const m = {
|
|
@@ -193,10 +195,10 @@ const ae = (a) => {
|
|
|
193
195
|
"1.625": "relaxed",
|
|
194
196
|
2: "loose"
|
|
195
197
|
};
|
|
196
|
-
l(d(m), e) && (t =
|
|
198
|
+
l(d(m), e) && (t = c + m[e]);
|
|
197
199
|
break;
|
|
198
200
|
case "zIndex":
|
|
199
|
-
t = ["0", "10", "20", "30", "40", "50"].indexOf(e) !== -1 ? `${
|
|
201
|
+
t = ["0", "10", "20", "30", "40", "50"].indexOf(e) !== -1 ? `${c}${e}` : a;
|
|
200
202
|
break;
|
|
201
203
|
case "opacity":
|
|
202
204
|
const y = [
|
|
@@ -218,15 +220,17 @@ const ae = (a) => {
|
|
|
218
220
|
], u = parseFloat(e) * 100;
|
|
219
221
|
l(y, u.toString()) && (t = `opacity-${u}`);
|
|
220
222
|
break;
|
|
223
|
+
default:
|
|
224
|
+
break;
|
|
221
225
|
}
|
|
222
226
|
return t;
|
|
223
227
|
};
|
|
224
|
-
async function
|
|
225
|
-
const
|
|
226
|
-
colors: [
|
|
228
|
+
async function D(a, r, s = [], n = "c-", e = !1) {
|
|
229
|
+
const c = p(a, "primaryColor", "#000"), t = p(a, "secondaryColor", "#ccc"), x = p(a, "headingFont", "Inter"), f = p(a, "bodyFont", "Inter"), m = p(a, "roundedCorners", "0"), g = E({
|
|
230
|
+
colors: [c, t],
|
|
227
231
|
names: ["primary", "secondary"]
|
|
228
232
|
});
|
|
229
|
-
return b(g, "primary.DEFAULT",
|
|
233
|
+
return b(g, "primary.DEFAULT", c), b(g, "secondary.DEFAULT", t), `${await V({
|
|
230
234
|
tailwindConfig: {
|
|
231
235
|
darkMode: "class",
|
|
232
236
|
safelist: s,
|
|
@@ -242,7 +246,7 @@ async function M(a, c, s = [], n = "c-", e = !1) {
|
|
|
242
246
|
colors: g
|
|
243
247
|
}
|
|
244
248
|
},
|
|
245
|
-
plugins: [
|
|
249
|
+
plugins: [A, L, P],
|
|
246
250
|
corePlugins: { preflight: e },
|
|
247
251
|
...n ? { prefix: `${n}` } : {}
|
|
248
252
|
}
|
|
@@ -250,40 +254,40 @@ async function M(a, c, s = [], n = "c-", e = !1) {
|
|
|
250
254
|
` ${e ? "@tailwind base;" : ""}
|
|
251
255
|
@tailwind components;
|
|
252
256
|
@tailwind utilities;`,
|
|
253
|
-
|
|
257
|
+
r
|
|
254
258
|
)}
|
|
255
259
|
.${n}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${x}",${h.fontFamily.sans.join(
|
|
256
260
|
", "
|
|
257
261
|
)};}`;
|
|
258
262
|
}
|
|
259
|
-
const U = (a,
|
|
263
|
+
const U = (a, r) => a.map((s) => {
|
|
260
264
|
const n = {};
|
|
261
265
|
return Object.keys(s).forEach((e) => {
|
|
262
|
-
|
|
266
|
+
k(s[e], R) && (n[e] = C(s[e], r));
|
|
263
267
|
}), n;
|
|
264
|
-
}),
|
|
265
|
-
const e =
|
|
266
|
-
return
|
|
267
|
-
|
|
268
|
-
[
|
|
268
|
+
}), S = (a, r, s = "c-", n = !1) => {
|
|
269
|
+
const e = I(r, s);
|
|
270
|
+
return D(
|
|
271
|
+
r,
|
|
272
|
+
[O(JSON.stringify(U(a, s)), /#styles:/g, "")],
|
|
269
273
|
e.split(" ").concat(`${s}inline-block`, `${s}w-full`, `${s}h-full`),
|
|
270
274
|
s,
|
|
271
275
|
n
|
|
272
276
|
);
|
|
273
|
-
},
|
|
277
|
+
}, se = async (a, r = "c-", s = !1) => {
|
|
274
278
|
const n = a.page.blocks;
|
|
275
|
-
return await
|
|
276
|
-
},
|
|
279
|
+
return await S(n, a.project.brandingOptions, r, s);
|
|
280
|
+
}, ne = async (a, r, s = "c-", n = !1) => await S(a, r, s, n);
|
|
277
281
|
export {
|
|
278
|
-
|
|
282
|
+
C as addPrefixToClasses,
|
|
279
283
|
ie as cn,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
284
|
+
te as convertArbitraryToTailwindClass,
|
|
285
|
+
le as generateUUID,
|
|
286
|
+
me as getBlocksFromHTML,
|
|
287
|
+
S as getBlocksTailwindCSS,
|
|
288
|
+
I as getBrandingClasses,
|
|
289
|
+
pe as getBreakpointValue,
|
|
290
|
+
ne as getStylesForBlocks,
|
|
291
|
+
se as getStylesForPageData,
|
|
292
|
+
D as getTailwindCSS
|
|
289
293
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),u=require("react"),n=require("@radix-ui/react-icons"),o=require("./index-h-hd6EvN.cjs"),x=require("./index-mbyqq81O.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-0g14w5RS.cjs");require("./Class-PoYusiA5.cjs");require("react-i18next");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");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-menubar");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("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("./index-OB199Izc.cjs");require("i18next");require("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("sonner");require("./html-to-json-efmv1pCj.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");const m=u.lazy(()=>Promise.resolve().then(()=>require("./single-page-detail-XfzrGlzA.cjs"))),j=({pageData:s})=>{const[r,i]=u.useState("CLOSE");return e.jsxRuntimeExports.jsxs(o.Popover,{open:r==="OPEN"||r==="ALERT"||r==="PENDING",onOpenChange:t=>{i(r==="PENDING"?"ALERT":t?"OPEN":"CLOSE")},children:[e.jsxRuntimeExports.jsx(o.PopoverTrigger,{asChild:!0,onClick:t=>{t.stopPropagation(),i("OPEN")},children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between",children:r==="OPEN"||r==="ALERT"||r==="PENDING"?e.jsxRuntimeExports.jsx(n.ChevronRightIcon,{}):e.jsxRuntimeExports.jsx("div",{className:"hidden hover:text-blue-600 group-hover:flex",children:e.jsxRuntimeExports.jsx(n.GearIcon,{})})})}),e.jsxRuntimeExports.jsx(o.PopoverContent,{side:"right",align:"start",alignOffset:-35,className:"h-screen w-96",children:e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsxs("div",{className:"flex w-full animate-pulse flex-col gap-y-3",children:[e.jsxRuntimeExports.jsx("div",{className:"bg-background-300 h-6 w-1/2"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-300 h-20 w-full"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-300 h-20 w-full"})]}),children:e.jsxRuntimeExports.jsx(m,{pageData:s,open:r,setOpen:i})})})]})},p=s=>{const[r]=x.useCurrentPage(),{data:i}=x.useProject(),t=x.useChangePage(),l=(i==null?void 0:i.homepage)===s.uuid,a=r===s.uuid,c=()=>t(s);return i?e.jsxRuntimeExports.jsxs("button",{className:`group relative flex w-full cursor-pointer items-center justify-between px-2.5 py-2 ${a?"bg-blue-200 ":""}`,onClick:c,type:"button",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex text-sm items-center gap-x-1.5",children:[l?e.jsxRuntimeExports.jsx(n.HomeIcon,{}):e.jsxRuntimeExports.jsx(n.FileTextIcon,{})," ",s.name]}),e.jsxRuntimeExports.jsx(j,{pageData:s})]}):null},q=({pages:s,isLoading:r})=>r?e.jsxRuntimeExports.jsxs("div",{className:"flex animate-pulse flex-col gap-y-1 px-2.5 pt-2",children:[e.jsxRuntimeExports.jsx("div",{className:"bg-background-200 h-7 w-full"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-200 h-7 w-full"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-200 h-7 w-full"})]}):s.length===0?e.jsxRuntimeExports.jsx("div",{className:"px-2.5 pb-2 pt-4",children:"No pages"}):e.jsxRuntimeExports.jsx("div",{className:"-mb-2",children:u.Children.toArray(s.map(i=>e.jsxRuntimeExports.jsx(p,{...i})))});exports.default=q;
|
|
@@ -1,96 +1,110 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { d as j, a as N, c as b } from "./index-
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
1
|
+
import { j as e } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
+
import s, { useState as p, Suspense as l } from "react";
|
|
3
|
+
import { ChevronRightIcon as c, GearIcon as u, HomeIcon as d, FileTextIcon as x } from "@radix-ui/react-icons";
|
|
4
|
+
import { aV as g, aW as h, aX as f } from "./index-Gk6sASBd.js";
|
|
5
|
+
import { d as j, a as N, c as b } from "./index-llTXLDGE.js";
|
|
6
|
+
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
7
|
+
import "lodash-es";
|
|
8
|
+
import "./Functions-7jnEwJyw.js";
|
|
8
9
|
import "clsx";
|
|
9
10
|
import "tailwind-merge";
|
|
10
|
-
import "
|
|
11
|
-
import "./MODIFIERS-CNqNUapY.js";
|
|
12
|
-
import "@radix-ui/react-scroll-area";
|
|
13
|
-
import "react-dom";
|
|
14
|
-
import "@floating-ui/react-dom";
|
|
11
|
+
import "@chaibuilder/runtime";
|
|
15
12
|
import "jotai";
|
|
16
|
-
import "
|
|
13
|
+
import "./STRINGS--j49GZJP.js";
|
|
14
|
+
import "@react-hookz/web";
|
|
15
|
+
import "./MODIFIERS-dytZ-osO.js";
|
|
16
|
+
import "./Class-lGzsNBOK.js";
|
|
17
17
|
import "react-i18next";
|
|
18
|
-
import "
|
|
19
|
-
import "lodash-es";
|
|
20
|
-
import "./skeleton-lu8e7q2y.js";
|
|
21
|
-
import "@radix-ui/react-slot";
|
|
18
|
+
import "@radix-ui/react-toggle";
|
|
22
19
|
import "class-variance-authority";
|
|
20
|
+
import "@radix-ui/react-switch";
|
|
21
|
+
import "@radix-ui/react-slot";
|
|
22
|
+
import "@radix-ui/react-accordion";
|
|
23
|
+
import "@radix-ui/react-alert-dialog";
|
|
24
|
+
import "@radix-ui/react-dialog";
|
|
25
|
+
import "@radix-ui/react-label";
|
|
26
|
+
import "@radix-ui/react-scroll-area";
|
|
27
|
+
import "@radix-ui/react-tabs";
|
|
23
28
|
import "@radix-ui/react-tooltip";
|
|
29
|
+
import "@radix-ui/react-popover";
|
|
30
|
+
import "@radix-ui/react-menubar";
|
|
31
|
+
import "@radix-ui/react-hover-card";
|
|
32
|
+
import "@radix-ui/react-select";
|
|
33
|
+
import "@radix-ui/react-dropdown-menu";
|
|
34
|
+
import "@radix-ui/react-separator";
|
|
24
35
|
import "@radix-ui/react-toast";
|
|
25
|
-
import "
|
|
36
|
+
import "cmdk";
|
|
37
|
+
import "@radix-ui/react-context-menu";
|
|
38
|
+
import "react-icons-picker";
|
|
39
|
+
import "react-dom";
|
|
40
|
+
import "react-quill";
|
|
41
|
+
import "./index-SkyM3d6Q.js";
|
|
42
|
+
import "i18next";
|
|
43
|
+
import "@floating-ui/react-dom";
|
|
44
|
+
import "flagged";
|
|
26
45
|
import "react-hotkeys-hook";
|
|
27
|
-
import "@react-hookz/web";
|
|
28
|
-
import "@chaibuilder/runtime";
|
|
29
46
|
import "sonner";
|
|
30
|
-
import "./html-to-json-
|
|
47
|
+
import "./html-to-json-ngX9ef2u.js";
|
|
31
48
|
import "himalaya";
|
|
32
|
-
import "./STRINGS-b432aBJJ.js";
|
|
33
49
|
import "lucide-react";
|
|
34
|
-
import "./
|
|
35
|
-
import
|
|
36
|
-
|
|
37
|
-
const P = o.lazy(() => import("./single-page-detail-hD1jKZ8k.js")), v = ({ pageData: r }) => {
|
|
38
|
-
const [t, s] = m("CLOSE");
|
|
50
|
+
import "./index-YpnaudSM.js";
|
|
51
|
+
const v = s.lazy(() => import("./single-page-detail-dpe5LT0M.js")), P = ({ pageData: r }) => {
|
|
52
|
+
const [t, i] = p("CLOSE");
|
|
39
53
|
return /* @__PURE__ */ e.jsxs(
|
|
40
54
|
g,
|
|
41
55
|
{
|
|
42
56
|
open: t === "OPEN" || t === "ALERT" || t === "PENDING",
|
|
43
|
-
onOpenChange: (
|
|
44
|
-
|
|
57
|
+
onOpenChange: (o) => {
|
|
58
|
+
i(t === "PENDING" ? "ALERT" : o ? "OPEN" : "CLOSE");
|
|
45
59
|
},
|
|
46
60
|
children: [
|
|
47
61
|
/* @__PURE__ */ e.jsx(
|
|
48
62
|
h,
|
|
49
63
|
{
|
|
50
64
|
asChild: !0,
|
|
51
|
-
onClick: (
|
|
52
|
-
|
|
65
|
+
onClick: (o) => {
|
|
66
|
+
o.stopPropagation(), i("OPEN");
|
|
53
67
|
},
|
|
54
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-between", children: t === "OPEN" || t === "ALERT" || t === "PENDING" ? /* @__PURE__ */ e.jsx(
|
|
68
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-between", children: t === "OPEN" || t === "ALERT" || t === "PENDING" ? /* @__PURE__ */ e.jsx(c, {}) : /* @__PURE__ */ e.jsx("div", { className: "hidden hover:text-blue-600 group-hover:flex", children: /* @__PURE__ */ e.jsx(u, {}) }) })
|
|
55
69
|
}
|
|
56
70
|
),
|
|
57
71
|
/* @__PURE__ */ e.jsx(f, { side: "right", align: "start", alignOffset: -35, className: "h-screen w-96", children: /* @__PURE__ */ e.jsx(
|
|
58
|
-
|
|
72
|
+
l,
|
|
59
73
|
{
|
|
60
74
|
fallback: /* @__PURE__ */ e.jsxs("div", { className: "flex w-full animate-pulse flex-col gap-y-3", children: [
|
|
61
75
|
/* @__PURE__ */ e.jsx("div", { className: "bg-background-300 h-6 w-1/2" }),
|
|
62
76
|
/* @__PURE__ */ e.jsx("div", { className: "bg-background-300 h-20 w-full" }),
|
|
63
77
|
/* @__PURE__ */ e.jsx("div", { className: "bg-background-300 h-20 w-full" })
|
|
64
78
|
] }),
|
|
65
|
-
children: /* @__PURE__ */ e.jsx(
|
|
79
|
+
children: /* @__PURE__ */ e.jsx(v, { pageData: r, open: t, setOpen: i })
|
|
66
80
|
}
|
|
67
81
|
) })
|
|
68
82
|
]
|
|
69
83
|
}
|
|
70
84
|
);
|
|
71
85
|
}, E = (r) => {
|
|
72
|
-
const [t] = j(), { data:
|
|
73
|
-
return
|
|
86
|
+
const [t] = j(), { data: i } = N(), o = b(), a = (i == null ? void 0 : i.homepage) === r.uuid, m = t === r.uuid, n = () => o(r);
|
|
87
|
+
return i ? /* @__PURE__ */ e.jsxs(
|
|
74
88
|
"button",
|
|
75
89
|
{
|
|
76
|
-
className: `group relative flex w-full cursor-pointer items-center justify-between px-2.5 py-2 ${
|
|
77
|
-
onClick:
|
|
90
|
+
className: `group relative flex w-full cursor-pointer items-center justify-between px-2.5 py-2 ${m ? "bg-blue-200 " : ""}`,
|
|
91
|
+
onClick: n,
|
|
78
92
|
type: "button",
|
|
79
93
|
children: [
|
|
80
94
|
/* @__PURE__ */ e.jsxs("div", { className: "flex text-sm items-center gap-x-1.5", children: [
|
|
81
|
-
a ? /* @__PURE__ */ e.jsx(
|
|
95
|
+
a ? /* @__PURE__ */ e.jsx(d, {}) : /* @__PURE__ */ e.jsx(x, {}),
|
|
82
96
|
" ",
|
|
83
97
|
r.name
|
|
84
98
|
] }),
|
|
85
|
-
/* @__PURE__ */ e.jsx(
|
|
99
|
+
/* @__PURE__ */ e.jsx(P, { pageData: r })
|
|
86
100
|
]
|
|
87
101
|
}
|
|
88
102
|
) : null;
|
|
89
|
-
},
|
|
103
|
+
}, be = ({ pages: r, isLoading: t }) => t ? /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-1 px-2.5 pt-2", children: [
|
|
90
104
|
/* @__PURE__ */ e.jsx("div", { className: "bg-background-200 h-7 w-full" }),
|
|
91
105
|
/* @__PURE__ */ e.jsx("div", { className: "bg-background-200 h-7 w-full" }),
|
|
92
106
|
/* @__PURE__ */ e.jsx("div", { className: "bg-background-200 h-7 w-full" })
|
|
93
|
-
] }) : r.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "px-2.5 pb-2 pt-4", children: "No pages" }) : /* @__PURE__ */ e.jsx("div", { className: "-mb-2", children:
|
|
107
|
+
] }) : r.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "px-2.5 pb-2 pt-4", children: "No pages" }) : /* @__PURE__ */ e.jsx("div", { className: "-mb-2", children: s.Children.toArray(r.map((i) => /* @__PURE__ */ e.jsx(E, { ...i }))) });
|
|
94
108
|
export {
|
|
95
|
-
|
|
109
|
+
be as default
|
|
96
110
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./jsx-runtime-Z_BpKhVy.cjs"),a=require("react"),f=require("./index-h-hd6EvN.cjs"),o=require("./controls-KK2oLIa8.cjs"),d=require("./form-lBQ_76Uw.cjs"),m=require("./index-mbyqq81O.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-0g14w5RS.cjs");require("./Class-PoYusiA5.cjs");require("react-i18next");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");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-menubar");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("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("@rjsf/core");require("@rjsf/validator-ajv8");require("./index-OB199Izc.cjs");require("i18next");require("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("sonner");require("./html-to-json-efmv1pCj.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");function j(r){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const u=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(i,e,u.get?u:{enumerable:!0,get:()=>r[e]})}}return i.default=r,Object.freeze(i)}const g=j(a),b=({_projectData:r,seany:i})=>{const{data:e,isLoading:u}=m.useProject();g.useEffect(()=>{e&&i(e)},[e,i]);const n=({formData:s},t)=>{i(l=>({...l,[t]:s[t]}))},c={name:o.u({title:"Project Name",default:e==null?void 0:e.name}),favicon:o.o({title:"Favicon",default:e==null?void 0:e.favicon})};return q.jsxRuntimeExports.jsx(f.ScrollArea,{className:"flex h-full select-none flex-col",children:q.jsxRuntimeExports.jsx(d.Form,{properties:c,disabled:u,formData:r,onChange:n})})};exports.default=b;
|
|
@@ -1,50 +1,58 @@
|
|
|
1
|
-
import { j as i } from "./jsx-runtime-
|
|
1
|
+
import { j as i } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as c, o as u } from "./controls-
|
|
5
|
-
import { F as d } from "./form-
|
|
6
|
-
import { a as x } from "./index-
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
3
|
+
import { bf as n } from "./index-Gk6sASBd.js";
|
|
4
|
+
import { u as c, o as u } from "./controls-OfJWSEqC.js";
|
|
5
|
+
import { F as d } from "./form-STUz-6nE.js";
|
|
6
|
+
import { a as x } from "./index-llTXLDGE.js";
|
|
7
|
+
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
8
|
+
import "lodash-es";
|
|
9
|
+
import "./Functions-7jnEwJyw.js";
|
|
9
10
|
import "clsx";
|
|
10
11
|
import "tailwind-merge";
|
|
11
|
-
import "
|
|
12
|
-
import "@rjsf/core";
|
|
13
|
-
import "@rjsf/validator-ajv8";
|
|
14
|
-
import "./link-xuhP-4dN.js";
|
|
15
|
-
import "react-icons-picker";
|
|
16
|
-
import "react-dom";
|
|
17
|
-
import "./tabs-yQ3oGziM.js";
|
|
18
|
-
import "@radix-ui/react-dialog";
|
|
19
|
-
import "@radix-ui/react-icons";
|
|
20
|
-
import "@radix-ui/react-tabs";
|
|
21
|
-
import "./ImagesPanel-Wb0GF_NA.js";
|
|
22
|
-
import "react-quill";
|
|
23
|
-
import "react-i18next";
|
|
24
|
-
import "./skeleton-lu8e7q2y.js";
|
|
12
|
+
import "@chaibuilder/runtime";
|
|
25
13
|
import "jotai";
|
|
26
|
-
import "
|
|
14
|
+
import "./STRINGS--j49GZJP.js";
|
|
15
|
+
import "@react-hookz/web";
|
|
16
|
+
import "./MODIFIERS-dytZ-osO.js";
|
|
17
|
+
import "./Class-lGzsNBOK.js";
|
|
18
|
+
import "react-i18next";
|
|
19
|
+
import "@radix-ui/react-toggle";
|
|
27
20
|
import "class-variance-authority";
|
|
21
|
+
import "@radix-ui/react-switch";
|
|
22
|
+
import "@radix-ui/react-slot";
|
|
23
|
+
import "@radix-ui/react-accordion";
|
|
24
|
+
import "@radix-ui/react-icons";
|
|
25
|
+
import "@radix-ui/react-alert-dialog";
|
|
26
|
+
import "@radix-ui/react-dialog";
|
|
27
|
+
import "@radix-ui/react-label";
|
|
28
|
+
import "@radix-ui/react-scroll-area";
|
|
29
|
+
import "@radix-ui/react-tabs";
|
|
28
30
|
import "@radix-ui/react-tooltip";
|
|
31
|
+
import "@radix-ui/react-popover";
|
|
32
|
+
import "@radix-ui/react-menubar";
|
|
33
|
+
import "@radix-ui/react-hover-card";
|
|
34
|
+
import "@radix-ui/react-select";
|
|
35
|
+
import "@radix-ui/react-dropdown-menu";
|
|
36
|
+
import "@radix-ui/react-separator";
|
|
29
37
|
import "@radix-ui/react-toast";
|
|
30
|
-
import "
|
|
31
|
-
import "
|
|
32
|
-
import "
|
|
38
|
+
import "cmdk";
|
|
39
|
+
import "@radix-ui/react-context-menu";
|
|
40
|
+
import "react-icons-picker";
|
|
41
|
+
import "react-dom";
|
|
42
|
+
import "react-quill";
|
|
43
|
+
import "@rjsf/core";
|
|
44
|
+
import "@rjsf/validator-ajv8";
|
|
45
|
+
import "./index-SkyM3d6Q.js";
|
|
33
46
|
import "i18next";
|
|
47
|
+
import "@floating-ui/react-dom";
|
|
34
48
|
import "flagged";
|
|
35
|
-
import "./Functions-NzT2Six_.js";
|
|
36
49
|
import "react-hotkeys-hook";
|
|
37
|
-
import "@react-hookz/web";
|
|
38
|
-
import "@chaibuilder/runtime";
|
|
39
50
|
import "sonner";
|
|
40
|
-
import "./html-to-json-
|
|
51
|
+
import "./html-to-json-ngX9ef2u.js";
|
|
41
52
|
import "himalaya";
|
|
42
|
-
import "./STRINGS-b432aBJJ.js";
|
|
43
53
|
import "lucide-react";
|
|
44
|
-
import "./
|
|
45
|
-
|
|
46
|
-
import "@radix-ui/react-alert-dialog";
|
|
47
|
-
const ao = ({
|
|
54
|
+
import "./index-YpnaudSM.js";
|
|
55
|
+
const jo = ({
|
|
48
56
|
_projectData: m,
|
|
49
57
|
seany: t
|
|
50
58
|
}) => {
|
|
@@ -67,5 +75,5 @@ const ao = ({
|
|
|
67
75
|
return /* @__PURE__ */ i.jsx(n, { className: "flex h-full select-none flex-col", children: /* @__PURE__ */ i.jsx(d, { properties: a, disabled: p, formData: m, onChange: e }) });
|
|
68
76
|
};
|
|
69
77
|
export {
|
|
70
|
-
|
|
78
|
+
jo as default
|
|
71
79
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./jsx-runtime-Z_BpKhVy.cjs"),i=require("./controls-KK2oLIa8.cjs"),g=require("./form-lBQ_76Uw.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("react");require("lodash-es");require("@rjsf/core");require("@rjsf/validator-ajv8");require("./index-h-hd6EvN.cjs");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-0g14w5RS.cjs");require("./Class-PoYusiA5.cjs");require("react-i18next");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");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-menubar");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("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");const D=({_projectData:e,seany:n})=>{var t,u,o,q,s,a;const d=({formData:f})=>{const r={...f};r.seoData.title===void 0&&(r.seoData.title=""),r.seoData.description===void 0&&(r.seoData.description=""),r.seoData.image===void 0&&(r.seoData.image=""),n(m=>({...m,...r}))},c={seoData:i.b({title:"",default:{title:((t=e.seoData)==null?void 0:t.title)||"",description:((u=e.seoData)==null?void 0:u.description)||"",image:((o=e.seoData)==null?void 0:o.image)||""},properties:{title:i.u({title:"Default Title",default:((q=e.seoData)==null?void 0:q.title)||""}),description:i.g({title:"Default Description",default:((s=e.seoData)==null?void 0:s.description)||""}),image:i.o({title:"Social Media Image",default:((a=e.seoData)==null?void 0:a.image)||""})}})};return l.jsxRuntimeExports.jsx("div",{className:"flex h-full select-none flex-col",children:l.jsxRuntimeExports.jsx(g.Form,{properties:c,formData:e,onChange:d})})};exports.default=D;
|
|
@@ -1,34 +1,51 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { b as D, u as c, g, o as x } from "./controls-
|
|
3
|
-
import { F as v } from "./form-
|
|
1
|
+
import { j as s } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
+
import { b as D, u as c, g, o as x } from "./controls-OfJWSEqC.js";
|
|
3
|
+
import { F as v } from "./form-STUz-6nE.js";
|
|
4
|
+
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
4
5
|
import "react";
|
|
5
6
|
import "lodash-es";
|
|
6
7
|
import "@rjsf/core";
|
|
7
8
|
import "@rjsf/validator-ajv8";
|
|
8
|
-
import "./
|
|
9
|
-
import "
|
|
10
|
-
import "react-dom";
|
|
11
|
-
import "./tabs-yQ3oGziM.js";
|
|
12
|
-
import "@radix-ui/react-dialog";
|
|
13
|
-
import "@radix-ui/react-icons";
|
|
14
|
-
import "./utils-dze1SGvB.js";
|
|
9
|
+
import "./index-Gk6sASBd.js";
|
|
10
|
+
import "./Functions-7jnEwJyw.js";
|
|
15
11
|
import "clsx";
|
|
16
12
|
import "tailwind-merge";
|
|
17
|
-
import "@
|
|
18
|
-
import "./ImagesPanel-Wb0GF_NA.js";
|
|
19
|
-
import "react-quill";
|
|
20
|
-
import "react-i18next";
|
|
21
|
-
import "./skeleton-lu8e7q2y.js";
|
|
13
|
+
import "@chaibuilder/runtime";
|
|
22
14
|
import "jotai";
|
|
23
|
-
import "
|
|
15
|
+
import "./STRINGS--j49GZJP.js";
|
|
16
|
+
import "@react-hookz/web";
|
|
17
|
+
import "./MODIFIERS-dytZ-osO.js";
|
|
18
|
+
import "./Class-lGzsNBOK.js";
|
|
19
|
+
import "react-i18next";
|
|
20
|
+
import "@radix-ui/react-toggle";
|
|
24
21
|
import "class-variance-authority";
|
|
22
|
+
import "@radix-ui/react-switch";
|
|
23
|
+
import "@radix-ui/react-slot";
|
|
24
|
+
import "@radix-ui/react-accordion";
|
|
25
|
+
import "@radix-ui/react-icons";
|
|
26
|
+
import "@radix-ui/react-alert-dialog";
|
|
27
|
+
import "@radix-ui/react-dialog";
|
|
28
|
+
import "@radix-ui/react-label";
|
|
29
|
+
import "@radix-ui/react-scroll-area";
|
|
30
|
+
import "@radix-ui/react-tabs";
|
|
25
31
|
import "@radix-ui/react-tooltip";
|
|
32
|
+
import "@radix-ui/react-popover";
|
|
33
|
+
import "@radix-ui/react-menubar";
|
|
34
|
+
import "@radix-ui/react-hover-card";
|
|
35
|
+
import "@radix-ui/react-select";
|
|
36
|
+
import "@radix-ui/react-dropdown-menu";
|
|
37
|
+
import "@radix-ui/react-separator";
|
|
26
38
|
import "@radix-ui/react-toast";
|
|
27
|
-
|
|
39
|
+
import "cmdk";
|
|
40
|
+
import "@radix-ui/react-context-menu";
|
|
41
|
+
import "react-icons-picker";
|
|
42
|
+
import "react-dom";
|
|
43
|
+
import "react-quill";
|
|
44
|
+
const st = ({
|
|
28
45
|
_projectData: t,
|
|
29
46
|
seany: l
|
|
30
47
|
}) => {
|
|
31
|
-
var o, e, r,
|
|
48
|
+
var o, e, r, m, p, a;
|
|
32
49
|
const n = ({ formData: f }) => {
|
|
33
50
|
const i = { ...f };
|
|
34
51
|
i.seoData.title === void 0 && (i.seoData.title = ""), i.seoData.description === void 0 && (i.seoData.description = ""), i.seoData.image === void 0 && (i.seoData.image = ""), l((u) => ({
|
|
@@ -46,21 +63,21 @@ const U = ({
|
|
|
46
63
|
properties: {
|
|
47
64
|
title: c({
|
|
48
65
|
title: "Default Title",
|
|
49
|
-
default: ((
|
|
66
|
+
default: ((m = t.seoData) == null ? void 0 : m.title) || ""
|
|
50
67
|
}),
|
|
51
68
|
description: g({
|
|
52
69
|
title: "Default Description",
|
|
53
|
-
default: ((
|
|
70
|
+
default: ((p = t.seoData) == null ? void 0 : p.description) || ""
|
|
54
71
|
}),
|
|
55
72
|
image: x({
|
|
56
73
|
title: "Social Media Image",
|
|
57
|
-
default: ((
|
|
74
|
+
default: ((a = t.seoData) == null ? void 0 : a.image) || ""
|
|
58
75
|
})
|
|
59
76
|
}
|
|
60
77
|
})
|
|
61
78
|
};
|
|
62
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ s.jsx("div", { className: "flex h-full select-none flex-col", children: /* @__PURE__ */ s.jsx(v, { properties: d, formData: t, onChange: n }) });
|
|
63
80
|
};
|
|
64
81
|
export {
|
|
65
|
-
|
|
82
|
+
st as default
|
|
66
83
|
};
|