@chaibuilder/sdk 0.1.7 → 0.1.9
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-8bcba532.cjs +3 -0
- package/dist/{AddBlocks-0d80d14e.js → AddBlocks-a9d3b6c0.js} +26 -27
- package/dist/BrandingOptions-c4c8676e.cjs +1 -0
- package/dist/{BrandingOptions-2eb3a20f.js → BrandingOptions-c8dba155.js} +19 -16
- package/dist/{CanvasArea-366fc7f5.js → CanvasArea-77c280f6.js} +92 -91
- package/dist/{CanvasArea-35fe4de9.cjs → CanvasArea-c8892280.cjs} +7 -7
- package/dist/CurrentPage-6ca95592.js +85 -0
- package/dist/CurrentPage-ebe20c9e.cjs +1 -0
- package/dist/Layers-c1be574f.cjs +1 -0
- package/dist/{Layers-c375ab6b.js → Layers-d3c8eea6.js} +14 -13
- package/dist/{MarkAsGlobalBlock-3ecff4e8.js → MarkAsGlobalBlock-04b2d169.js} +8 -7
- package/dist/MarkAsGlobalBlock-d40a9947.cjs +1 -0
- package/dist/PagesPanel-27f7a791.cjs +1 -0
- package/dist/{PagesPanel-28b02d06.js → PagesPanel-78e3bbb9.js} +6 -5
- package/dist/{ProjectPanel-e6e95d71.js → ProjectPanel-22ec7598.js} +7 -6
- package/dist/ProjectPanel-8cec3a82.cjs +1 -0
- package/dist/Settings-675c7a84.cjs +1 -0
- package/dist/{Settings-4c13f136.js → Settings-e49b1212.js} +7 -6
- package/dist/SidePanels-35ad2f5f.cjs +1 -0
- package/dist/{SidePanels-0f011b5d.js → SidePanels-7371a5c6.js} +7 -6
- package/dist/Topbar-3bda931b.cjs +1 -0
- package/dist/{Topbar-d609b15e.js → Topbar-da90da83.js} +6 -5
- package/dist/add-page-modal-15f377cc.cjs +1 -0
- package/dist/{add-page-modal-fb1e7f3d.js → add-page-modal-6b37b90c.js} +21 -20
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +0 -8
- package/dist/core.js +52 -53
- package/dist/{delete-page-modal-1e7c44c4.js → delete-page-modal-3b1edeb1.js} +6 -5
- package/dist/delete-page-modal-92a70848.cjs +1 -0
- package/dist/{form-6eac0287.cjs → form-431f0141.cjs} +1 -1
- package/dist/{form-5d5c5c9e.js → form-526188f9.js} +1 -1
- package/dist/html-to-json-78bfa1f3.cjs +1 -0
- package/dist/{Class-1fb4c0c4.js → html-to-json-8397fab5.js} +363 -190
- package/dist/{index-0f2acc34.js → index-67c3fc28.js} +1906 -1859
- package/dist/index-d214d8c8.cjs +2 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +8 -0
- package/dist/lib.js +34 -33
- package/dist/link-8b201d2c.cjs +1 -0
- package/dist/{link-f80a947d.js → link-ebe8a751.js} +60 -51
- package/dist/page-viewer-584e4c45.cjs +1 -0
- package/dist/{page-viewer-791fb7c7.js → page-viewer-dcd98e40.js} +10 -9
- package/dist/project-general-setting-09427e43.cjs +1 -0
- package/dist/{project-general-setting-ba6333d9.js → project-general-setting-f4614eb4.js} +8 -7
- package/dist/{project-seo-setting-e3924578.cjs → project-seo-setting-157acce4.cjs} +1 -1
- package/dist/{project-seo-setting-01536592.js → project-seo-setting-f31a84f5.js} +2 -2
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +12 -14
- package/dist/render.js +74 -71
- package/dist/server.cjs +1 -1
- package/dist/server.d.ts +38 -24
- package/dist/server.js +23 -16
- package/dist/{single-page-detail-69dd268b.js → single-page-detail-20bf1b52.js} +8 -7
- package/dist/single-page-detail-e9713757.cjs +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -1
- package/dist/AddBlocks-263e048b.cjs +0 -3
- package/dist/BrandingOptions-fe2c729f.cjs +0 -1
- package/dist/Class-6c695ccb.cjs +0 -1
- package/dist/Layers-ec26b885.cjs +0 -1
- package/dist/MarkAsGlobalBlock-b60aa4a5.cjs +0 -1
- package/dist/PagesPanel-27e831e4.cjs +0 -1
- package/dist/ProjectPanel-d77ca4b1.cjs +0 -1
- package/dist/Settings-f533682d.cjs +0 -1
- package/dist/SidePanels-8a461fbd.cjs +0 -1
- package/dist/Topbar-e3b28705.cjs +0 -1
- package/dist/add-page-modal-345f02a4.cjs +0 -1
- package/dist/delete-page-modal-83b69ad2.cjs +0 -1
- package/dist/html-to-json-01cc5fe0.cjs +0 -1
- package/dist/html-to-json-d20aafdd.js +0 -178
- package/dist/index-334beafe.cjs +0 -2
- package/dist/link-86c532b5.cjs +0 -1
- package/dist/page-viewer-83157368.cjs +0 -1
- package/dist/project-general-setting-b8508aa1.cjs +0 -1
- package/dist/single-page-detail-a186cd56.cjs +0 -1
|
@@ -4,9 +4,9 @@ var V = (e, r, n) => (vt(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
|
4
4
|
import { j as t } from "./jsx-runtime-944c88e2.js";
|
|
5
5
|
import G, { createElement as gt, useCallback as Q, useState as H, useEffect as F, Component as Xe, Children as xt, useRef as Oe, useMemo as bt, lazy as wt, Suspense as Et } from "react";
|
|
6
6
|
import { map as ie, includes as Me, toUpper as ye, round as St, isEmpty as ee, first as ce, get as $, memoize as Tt, find as jt, filter as Ze, isString as Je } from "lodash";
|
|
7
|
-
import { ResetIcon as De, DotsVerticalIcon as Ct, MobileIcon as Be, LaptopIcon as kt, DesktopIcon as
|
|
7
|
+
import { ResetIcon as De, DotsVerticalIcon as Ct, MobileIcon as Be, LaptopIcon as kt, DesktopIcon as Rt, EraserIcon as At, ZoomInIcon as _t, ArrowUpIcon as Pt, CopyIcon as It, TrashIcon as Ot, DragHandleDots2Icon as Mt } from "@radix-ui/react-icons";
|
|
8
8
|
import { B as le, u as Qe, S as et } from "./useBuilderProp-81a14920.js";
|
|
9
|
-
import { c as ke, d as tt, e as
|
|
9
|
+
import { c as ke, d as tt, e as Re, f as Dt, g as Bt, h as X, i as Z, j as $t, k as rt, l as nt, m as Nt, n as Lt, o as Ft, p as ot, q as st, u as Wt, r as qt, s as Ut, t as Yt, v as zt, w as Ht, x as Ae, y as at, z as Kt, A as Vt, B as Gt, b as Xt, E as Zt } from "./index-67c3fc28.js";
|
|
10
10
|
import { useTranslation as it } from "react-i18next";
|
|
11
11
|
import { S as se } from "./separator-a80d065b.js";
|
|
12
12
|
import { S as Jt, D as Qt, c as er, d as tr, h as rr, i as nr, f as or, H as sr, a as ar, b as ir } from "./dropdown-menu-ae3ed09b.js";
|
|
@@ -35,24 +35,25 @@ import "flagged";
|
|
|
35
35
|
import "@minoru/react-dnd-treeview";
|
|
36
36
|
import "react-hotkeys-hook";
|
|
37
37
|
import "flat-to-nested";
|
|
38
|
-
import "./
|
|
38
|
+
import "./html-to-json-8397fab5.js";
|
|
39
|
+
import "himalaya";
|
|
39
40
|
import "redux-undo";
|
|
40
|
-
import "sonner";
|
|
41
41
|
import "lucide-react";
|
|
42
|
+
import "sonner";
|
|
42
43
|
import "@radix-ui/react-separator";
|
|
43
44
|
import "@radix-ui/react-switch";
|
|
44
45
|
import "@radix-ui/react-hover-card";
|
|
45
46
|
import "@radix-ui/react-dropdown-menu";
|
|
46
47
|
import "@radix-ui/react-label";
|
|
47
48
|
import "@radix-ui/react-alert-dialog";
|
|
48
|
-
const
|
|
49
|
+
const Rr = () => {
|
|
49
50
|
const { undoCount: e, redoCount: r, undo: n, redo: i } = ke();
|
|
50
51
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
51
52
|
/* @__PURE__ */ t.jsx(le, { disabled: !e, size: "sm", onClick: n, className: "rounded-full", variant: "ghost", children: /* @__PURE__ */ t.jsx(De, {}) }),
|
|
52
53
|
/* @__PURE__ */ t.jsx(le, { disabled: !r, onClick: i, size: "sm", className: "rounded-full", variant: "ghost", children: /* @__PURE__ */ t.jsx(De, { className: "rotate-180 scale-y-[-1] transform" }) })
|
|
53
54
|
] });
|
|
54
55
|
};
|
|
55
|
-
function
|
|
56
|
+
function Ar() {
|
|
56
57
|
const [e, r] = tt(), { t: n } = it();
|
|
57
58
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
58
59
|
/* @__PURE__ */ t.jsx(cr, { htmlFor: "dark-mode-switch", children: n("dark_mode") }),
|
|
@@ -144,10 +145,10 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
144
145
|
title: "Large Desktop (2XL)",
|
|
145
146
|
content: "Styles set here are applied at 1536px and up",
|
|
146
147
|
breakpoint: "2xl",
|
|
147
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
148
|
+
icon: /* @__PURE__ */ t.jsx(Rt, {}),
|
|
148
149
|
width: 1920
|
|
149
150
|
}
|
|
150
|
-
],
|
|
151
|
+
], _r = ({
|
|
151
152
|
title: e,
|
|
152
153
|
content: r,
|
|
153
154
|
currentBreakpoint: n,
|
|
@@ -170,13 +171,13 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
170
171
|
/* @__PURE__ */ t.jsx("p", { className: "text-xs", children: r })
|
|
171
172
|
] }) }) })
|
|
172
173
|
] }), Pr = () => {
|
|
173
|
-
const [, e, r] =
|
|
174
|
+
const [, e, r] = Re(), [n, i] = Dt(), d = (s) => {
|
|
174
175
|
n.includes(s) ? n.length > 2 && i(n.filter((a) => a !== s)) : i((a) => [...a, s]);
|
|
175
176
|
};
|
|
176
177
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center rounded-md", children: [
|
|
177
178
|
ie(
|
|
178
179
|
Fe.filter((s) => Me(n, ye(s.breakpoint))),
|
|
179
|
-
(s) => /* @__PURE__ */ gt(
|
|
180
|
+
(s) => /* @__PURE__ */ gt(_r, { ...s, onClick: r, key: s.breakpoint, currentBreakpoint: e })
|
|
180
181
|
),
|
|
181
182
|
/* @__PURE__ */ t.jsxs(Qt, { children: [
|
|
182
183
|
/* @__PURE__ */ t.jsx(er, { asChild: !0, children: /* @__PURE__ */ t.jsx("span", { className: "cursor-pointer px-2.5 hover:opacity-80", children: /* @__PURE__ */ t.jsx(Ct, { className: "scale-90 transform" }) }) }),
|
|
@@ -202,7 +203,7 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
202
203
|
}, [e, r]);
|
|
203
204
|
return /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsxs(lr, { children: [
|
|
204
205
|
/* @__PURE__ */ t.jsx(dr, { asChild: !0, children: /* @__PURE__ */ t.jsxs(le, { size: "sm", variant: "ghost", className: "flex items-center gap-x-1", children: [
|
|
205
|
-
/* @__PURE__ */ t.jsx(
|
|
206
|
+
/* @__PURE__ */ t.jsx(At, {}),
|
|
206
207
|
" Clear"
|
|
207
208
|
] }) }),
|
|
208
209
|
/* @__PURE__ */ t.jsxs(ur, { className: "border-border", children: [
|
|
@@ -221,13 +222,13 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
221
222
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex h-10 items-center justify-between border-b bg-background/70 px-2", children: [
|
|
222
223
|
/* @__PURE__ */ t.jsxs("div", { className: "flex h-full space-x-2", children: [
|
|
223
224
|
e ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
224
|
-
/* @__PURE__ */ t.jsx(
|
|
225
|
+
/* @__PURE__ */ t.jsx(Ar, {}),
|
|
225
226
|
/* @__PURE__ */ t.jsx(se, { orientation: "vertical" })
|
|
226
227
|
] }) : null,
|
|
227
228
|
/* @__PURE__ */ t.jsx(Pr, {}),
|
|
228
229
|
/* @__PURE__ */ t.jsx(se, { orientation: "vertical" }),
|
|
229
230
|
/* @__PURE__ */ t.jsxs("div", { className: "flex w-12 items-center justify-center gap-x-1 space-x-0 font-medium", children: [
|
|
230
|
-
/* @__PURE__ */ t.jsx(
|
|
231
|
+
/* @__PURE__ */ t.jsx(_t, { className: "h-3.5 w-3.5 flex-shrink-0" }),
|
|
231
232
|
" ",
|
|
232
233
|
/* @__PURE__ */ t.jsxs("div", { className: "text-xs leading-3", children: [
|
|
233
234
|
St(r, 0),
|
|
@@ -235,7 +236,7 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
235
236
|
] })
|
|
236
237
|
] }),
|
|
237
238
|
/* @__PURE__ */ t.jsx(se, { orientation: "vertical" }),
|
|
238
|
-
/* @__PURE__ */ t.jsx(
|
|
239
|
+
/* @__PURE__ */ t.jsx(Rr, {})
|
|
239
240
|
] }),
|
|
240
241
|
/* @__PURE__ */ t.jsxs("div", { className: "flex h-full items-center space-x-2", children: [
|
|
241
242
|
/* @__PURE__ */ t.jsx(se, { orientation: "vertical" }),
|
|
@@ -283,7 +284,7 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
283
284
|
<div class="frame-root"></div>
|
|
284
285
|
</body>
|
|
285
286
|
</html>`, Dr = (e) => {
|
|
286
|
-
const [r] =
|
|
287
|
+
const [r] = Re(), [, n] = rt(), [i, d] = H({}), s = Q(() => {
|
|
287
288
|
const { width: a, height: f } = e;
|
|
288
289
|
if (a < r) {
|
|
289
290
|
const y = parseFloat((a / r).toString());
|
|
@@ -301,7 +302,7 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
|
|
|
301
302
|
s();
|
|
302
303
|
}, [r, e, n, s]), i;
|
|
303
304
|
};
|
|
304
|
-
var Te = { exports: {} }, ae = { exports: {} },
|
|
305
|
+
var Te = { exports: {} }, ae = { exports: {} }, _ = {};
|
|
305
306
|
/** @license React v16.13.1
|
|
306
307
|
* react-is.production.min.js
|
|
307
308
|
*
|
|
@@ -313,7 +314,7 @@ var Te = { exports: {} }, ae = { exports: {} }, A = {};
|
|
|
313
314
|
var We;
|
|
314
315
|
function Br() {
|
|
315
316
|
if (We)
|
|
316
|
-
return
|
|
317
|
+
return _;
|
|
317
318
|
We = 1;
|
|
318
319
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
319
320
|
function M(l) {
|
|
@@ -349,33 +350,33 @@ function Br() {
|
|
|
349
350
|
function B(l) {
|
|
350
351
|
return M(l) === p;
|
|
351
352
|
}
|
|
352
|
-
return
|
|
353
|
+
return _.AsyncMode = y, _.ConcurrentMode = p, _.ContextConsumer = f, _.ContextProvider = a, _.Element = r, _.ForwardRef = m, _.Fragment = i, _.Lazy = O, _.Memo = v, _.Portal = n, _.Profiler = s, _.StrictMode = d, _.Suspense = h, _.isAsyncMode = function(l) {
|
|
353
354
|
return B(l) || M(l) === y;
|
|
354
|
-
},
|
|
355
|
+
}, _.isConcurrentMode = B, _.isContextConsumer = function(l) {
|
|
355
356
|
return M(l) === f;
|
|
356
|
-
},
|
|
357
|
+
}, _.isContextProvider = function(l) {
|
|
357
358
|
return M(l) === a;
|
|
358
|
-
},
|
|
359
|
+
}, _.isElement = function(l) {
|
|
359
360
|
return typeof l == "object" && l !== null && l.$$typeof === r;
|
|
360
|
-
},
|
|
361
|
+
}, _.isForwardRef = function(l) {
|
|
361
362
|
return M(l) === m;
|
|
362
|
-
},
|
|
363
|
+
}, _.isFragment = function(l) {
|
|
363
364
|
return M(l) === i;
|
|
364
|
-
},
|
|
365
|
+
}, _.isLazy = function(l) {
|
|
365
366
|
return M(l) === O;
|
|
366
|
-
},
|
|
367
|
+
}, _.isMemo = function(l) {
|
|
367
368
|
return M(l) === v;
|
|
368
|
-
},
|
|
369
|
+
}, _.isPortal = function(l) {
|
|
369
370
|
return M(l) === n;
|
|
370
|
-
},
|
|
371
|
+
}, _.isProfiler = function(l) {
|
|
371
372
|
return M(l) === s;
|
|
372
|
-
},
|
|
373
|
+
}, _.isStrictMode = function(l) {
|
|
373
374
|
return M(l) === d;
|
|
374
|
-
},
|
|
375
|
+
}, _.isSuspense = function(l) {
|
|
375
376
|
return M(l) === h;
|
|
376
|
-
},
|
|
377
|
+
}, _.isValidElementType = function(l) {
|
|
377
378
|
return typeof l == "string" || typeof l == "function" || l === i || l === p || l === s || l === d || l === h || l === b || typeof l == "object" && l !== null && (l.$$typeof === O || l.$$typeof === v || l.$$typeof === a || l.$$typeof === f || l.$$typeof === m || l.$$typeof === C || l.$$typeof === g || l.$$typeof === U || l.$$typeof === E);
|
|
378
|
-
},
|
|
379
|
+
}, _.typeOf = M, _;
|
|
379
380
|
}
|
|
380
381
|
var P = {};
|
|
381
382
|
/** @license React v16.13.1
|
|
@@ -454,19 +455,19 @@ function $r() {
|
|
|
454
455
|
function T(c) {
|
|
455
456
|
return B(c) === v;
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
+
function R(c) {
|
|
458
459
|
return B(c) === n;
|
|
459
460
|
}
|
|
460
461
|
function I(c) {
|
|
461
462
|
return B(c) === s;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function A(c) {
|
|
464
465
|
return B(c) === d;
|
|
465
466
|
}
|
|
466
467
|
function N(c) {
|
|
467
468
|
return B(c) === h;
|
|
468
469
|
}
|
|
469
|
-
P.AsyncMode = l, P.ConcurrentMode = D, P.ContextConsumer = W, P.ContextProvider = q, P.Element = de, P.ForwardRef = ue, P.Fragment = re, P.Lazy = fe, P.Memo = pe, P.Portal = J, P.Profiler = he, P.StrictMode = Y, P.Suspense = K, P.isAsyncMode = me, P.isConcurrentMode = o, P.isContextConsumer = u, P.isContextProvider = j, P.isElement = S, P.isForwardRef = x, P.isFragment = k, P.isLazy = w, P.isMemo = T, P.isPortal =
|
|
470
|
+
P.AsyncMode = l, P.ConcurrentMode = D, P.ContextConsumer = W, P.ContextProvider = q, P.Element = de, P.ForwardRef = ue, P.Fragment = re, P.Lazy = fe, P.Memo = pe, P.Portal = J, P.Profiler = he, P.StrictMode = Y, P.Suspense = K, P.isAsyncMode = me, P.isConcurrentMode = o, P.isContextConsumer = u, P.isContextProvider = j, P.isElement = S, P.isForwardRef = x, P.isFragment = k, P.isLazy = w, P.isMemo = T, P.isPortal = R, P.isProfiler = I, P.isStrictMode = A, P.isSuspense = N, P.isValidElementType = M, P.typeOf = B;
|
|
470
471
|
}()), P;
|
|
471
472
|
}
|
|
472
473
|
var Ue;
|
|
@@ -526,7 +527,7 @@ function Nr() {
|
|
|
526
527
|
}, ge;
|
|
527
528
|
}
|
|
528
529
|
var xe, ze;
|
|
529
|
-
function
|
|
530
|
+
function _e() {
|
|
530
531
|
if (ze)
|
|
531
532
|
return xe;
|
|
532
533
|
ze = 1;
|
|
@@ -545,7 +546,7 @@ function Lr() {
|
|
|
545
546
|
var e = function() {
|
|
546
547
|
};
|
|
547
548
|
if (process.env.NODE_ENV !== "production") {
|
|
548
|
-
var r =
|
|
549
|
+
var r = _e(), n = {}, i = dt();
|
|
549
550
|
e = function(s) {
|
|
550
551
|
var a = "Warning: " + s;
|
|
551
552
|
typeof console < "u" && console.error(a);
|
|
@@ -592,7 +593,7 @@ function Fr() {
|
|
|
592
593
|
if (Ve)
|
|
593
594
|
return Ee;
|
|
594
595
|
Ve = 1;
|
|
595
|
-
var e = lt(), r = Nr(), n =
|
|
596
|
+
var e = lt(), r = Nr(), n = _e(), i = dt(), d = Lr(), s = function() {
|
|
596
597
|
};
|
|
597
598
|
process.env.NODE_ENV !== "production" && (s = function(f) {
|
|
598
599
|
var y = "Warning: " + f;
|
|
@@ -643,33 +644,33 @@ function Fr() {
|
|
|
643
644
|
function C(o) {
|
|
644
645
|
if (process.env.NODE_ENV !== "production")
|
|
645
646
|
var u = {}, j = 0;
|
|
646
|
-
function S(k, w, T,
|
|
647
|
-
if (
|
|
647
|
+
function S(k, w, T, R, I, A, N) {
|
|
648
|
+
if (R = R || b, A = A || T, N !== n) {
|
|
648
649
|
if (y) {
|
|
649
650
|
var c = new Error(
|
|
650
651
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
651
652
|
);
|
|
652
653
|
throw c.name = "Invariant Violation", c;
|
|
653
654
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
654
|
-
var z =
|
|
655
|
+
var z = R + ":" + T;
|
|
655
656
|
!u[z] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
656
657
|
j < 3 && (s(
|
|
657
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
658
|
+
"You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
658
659
|
), u[z] = !0, j++);
|
|
659
660
|
}
|
|
660
661
|
}
|
|
661
|
-
return w[T] == null ? k ? w[T] === null ? new E("The " + I + " `" +
|
|
662
|
+
return w[T] == null ? k ? w[T] === null ? new E("The " + I + " `" + A + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new E("The " + I + " `" + A + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : o(w, T, R, I, A);
|
|
662
663
|
}
|
|
663
664
|
var x = S.bind(null, !1);
|
|
664
665
|
return x.isRequired = S.bind(null, !0), x;
|
|
665
666
|
}
|
|
666
667
|
function g(o) {
|
|
667
668
|
function u(j, S, x, k, w, T) {
|
|
668
|
-
var
|
|
669
|
+
var R = j[S], I = Y(R);
|
|
669
670
|
if (I !== o) {
|
|
670
|
-
var
|
|
671
|
+
var A = K(R);
|
|
671
672
|
return new E(
|
|
672
|
-
"Invalid " + k + " `" + w + "` of type " + ("`" +
|
|
673
|
+
"Invalid " + k + " `" + w + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected ") + ("`" + o + "`."),
|
|
673
674
|
{ expectedType: o }
|
|
674
675
|
);
|
|
675
676
|
}
|
|
@@ -686,13 +687,13 @@ function Fr() {
|
|
|
686
687
|
return new E("Property `" + w + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
|
|
687
688
|
var T = j[S];
|
|
688
689
|
if (!Array.isArray(T)) {
|
|
689
|
-
var
|
|
690
|
-
return new E("Invalid " + k + " `" + w + "` of type " + ("`" +
|
|
690
|
+
var R = Y(T);
|
|
691
|
+
return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected an array."));
|
|
691
692
|
}
|
|
692
693
|
for (var I = 0; I < T.length; I++) {
|
|
693
|
-
var
|
|
694
|
-
if (
|
|
695
|
-
return
|
|
694
|
+
var A = o(T, I, x, k, w + "[" + I + "]", n);
|
|
695
|
+
if (A instanceof Error)
|
|
696
|
+
return A;
|
|
696
697
|
}
|
|
697
698
|
return null;
|
|
698
699
|
}
|
|
@@ -723,8 +724,8 @@ function Fr() {
|
|
|
723
724
|
function D(o) {
|
|
724
725
|
function u(j, S, x, k, w) {
|
|
725
726
|
if (!(j[S] instanceof o)) {
|
|
726
|
-
var T = o.name || b,
|
|
727
|
-
return new E("Invalid " + k + " `" + w + "` of type " + ("`" +
|
|
727
|
+
var T = o.name || b, R = me(j[S]);
|
|
728
|
+
return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("instance of `" + T + "`."));
|
|
728
729
|
}
|
|
729
730
|
return null;
|
|
730
731
|
}
|
|
@@ -736,8 +737,8 @@ function Fr() {
|
|
|
736
737
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
737
738
|
) : s("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
738
739
|
function u(j, S, x, k, w) {
|
|
739
|
-
for (var T = j[S],
|
|
740
|
-
if (O(T, o[
|
|
740
|
+
for (var T = j[S], R = 0; R < o.length; R++)
|
|
741
|
+
if (O(T, o[R]))
|
|
741
742
|
return null;
|
|
742
743
|
var I = JSON.stringify(o, function(N, c) {
|
|
743
744
|
var z = K(c);
|
|
@@ -751,14 +752,14 @@ function Fr() {
|
|
|
751
752
|
function u(j, S, x, k, w) {
|
|
752
753
|
if (typeof o != "function")
|
|
753
754
|
return new E("Property `" + w + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
|
|
754
|
-
var T = j[S],
|
|
755
|
-
if (
|
|
756
|
-
return new E("Invalid " + k + " `" + w + "` of type " + ("`" +
|
|
755
|
+
var T = j[S], R = Y(T);
|
|
756
|
+
if (R !== "object")
|
|
757
|
+
return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected an object."));
|
|
757
758
|
for (var I in T)
|
|
758
759
|
if (i(T, I)) {
|
|
759
|
-
var
|
|
760
|
-
if (
|
|
761
|
-
return
|
|
760
|
+
var A = o(T, I, x, k, w + "." + I, n);
|
|
761
|
+
if (A instanceof Error)
|
|
762
|
+
return A;
|
|
762
763
|
}
|
|
763
764
|
return null;
|
|
764
765
|
}
|
|
@@ -774,15 +775,15 @@ function Fr() {
|
|
|
774
775
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(j) + " at index " + u + "."
|
|
775
776
|
), a;
|
|
776
777
|
}
|
|
777
|
-
function S(x, k, w, T,
|
|
778
|
-
for (var I = [],
|
|
779
|
-
var N = o[
|
|
778
|
+
function S(x, k, w, T, R) {
|
|
779
|
+
for (var I = [], A = 0; A < o.length; A++) {
|
|
780
|
+
var N = o[A], c = N(x, k, w, T, R, n);
|
|
780
781
|
if (c == null)
|
|
781
782
|
return null;
|
|
782
783
|
c.data && i(c.data, "expectedType") && I.push(c.data.expectedType);
|
|
783
784
|
}
|
|
784
785
|
var z = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
|
|
785
|
-
return new E("Invalid " + T + " `" +
|
|
786
|
+
return new E("Invalid " + T + " `" + R + "` supplied to " + ("`" + w + "`" + z + "."));
|
|
786
787
|
}
|
|
787
788
|
return C(S);
|
|
788
789
|
}
|
|
@@ -799,14 +800,14 @@ function Fr() {
|
|
|
799
800
|
}
|
|
800
801
|
function fe(o) {
|
|
801
802
|
function u(j, S, x, k, w) {
|
|
802
|
-
var T = j[S],
|
|
803
|
-
if (
|
|
804
|
-
return new E("Invalid " + k + " `" + w + "` of type `" +
|
|
803
|
+
var T = j[S], R = Y(T);
|
|
804
|
+
if (R !== "object")
|
|
805
|
+
return new E("Invalid " + k + " `" + w + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
805
806
|
for (var I in o) {
|
|
806
|
-
var
|
|
807
|
-
if (typeof
|
|
808
|
-
return re(x, k, w, I, K(
|
|
809
|
-
var N =
|
|
807
|
+
var A = o[I];
|
|
808
|
+
if (typeof A != "function")
|
|
809
|
+
return re(x, k, w, I, K(A));
|
|
810
|
+
var N = A(T, I, x, k, w + "." + I, n);
|
|
810
811
|
if (N)
|
|
811
812
|
return N;
|
|
812
813
|
}
|
|
@@ -816,20 +817,20 @@ function Fr() {
|
|
|
816
817
|
}
|
|
817
818
|
function pe(o) {
|
|
818
819
|
function u(j, S, x, k, w) {
|
|
819
|
-
var T = j[S],
|
|
820
|
-
if (
|
|
821
|
-
return new E("Invalid " + k + " `" + w + "` of type `" +
|
|
820
|
+
var T = j[S], R = Y(T);
|
|
821
|
+
if (R !== "object")
|
|
822
|
+
return new E("Invalid " + k + " `" + w + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
822
823
|
var I = r({}, j[S], o);
|
|
823
|
-
for (var
|
|
824
|
-
var N = o[
|
|
825
|
-
if (i(o,
|
|
826
|
-
return re(x, k, w,
|
|
824
|
+
for (var A in I) {
|
|
825
|
+
var N = o[A];
|
|
826
|
+
if (i(o, A) && typeof N != "function")
|
|
827
|
+
return re(x, k, w, A, K(N));
|
|
827
828
|
if (!N)
|
|
828
829
|
return new E(
|
|
829
|
-
"Invalid " + k + " `" + w + "` key `" +
|
|
830
|
+
"Invalid " + k + " `" + w + "` key `" + A + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(j[S], null, " ") + `
|
|
830
831
|
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
831
832
|
);
|
|
832
|
-
var c = N(T,
|
|
833
|
+
var c = N(T, A, x, k, w + "." + A, n);
|
|
833
834
|
if (c)
|
|
834
835
|
return c;
|
|
835
836
|
}
|
|
@@ -914,7 +915,7 @@ function Wr() {
|
|
|
914
915
|
if (Ge)
|
|
915
916
|
return Se;
|
|
916
917
|
Ge = 1;
|
|
917
|
-
var e =
|
|
918
|
+
var e = _e();
|
|
918
919
|
function r() {
|
|
919
920
|
}
|
|
920
921
|
function n() {
|
|
@@ -968,7 +969,7 @@ const L = /* @__PURE__ */ kr(Yr);
|
|
|
968
969
|
let ut, ft;
|
|
969
970
|
typeof document < "u" && (ut = document);
|
|
970
971
|
typeof window < "u" && (ft = window);
|
|
971
|
-
const pt = G.createContext({ document: ut, window: ft }), Pe = () => G.useContext(pt), { Provider: zr, Consumer:
|
|
972
|
+
const pt = G.createContext({ document: ut, window: ft }), Pe = () => G.useContext(pt), { Provider: zr, Consumer: eo } = pt;
|
|
972
973
|
class ht extends Xe {
|
|
973
974
|
componentDidMount() {
|
|
974
975
|
this.props.contentDidMount();
|
|
@@ -1175,7 +1176,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
|
|
|
1175
1176
|
}
|
|
1176
1177
|
);
|
|
1177
1178
|
}, Zr = ({ model: e }) => {
|
|
1178
|
-
const [r] = Ht(), [n] = X(), [i] = tt(), [d] =
|
|
1179
|
+
const [r] = Ht(), [n] = X(), [i] = tt(), [d] = Ae(), [s] = Z(), { document: a, window: f } = Pe(), [y] = H(a == null ? void 0 : a.getElementById("highlighted-block")), [p] = H(
|
|
1179
1180
|
a == null ? void 0 : a.getElementById("selected-block")
|
|
1180
1181
|
), [m] = H(
|
|
1181
1182
|
a == null ? void 0 : a.getElementById("selected-styling-block")
|
|
@@ -1183,14 +1184,14 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
|
|
|
1183
1184
|
F(() => {
|
|
1184
1185
|
i ? a == null || a.documentElement.classList.add("dark") : a == null || a.documentElement.classList.remove("dark");
|
|
1185
1186
|
}, [i, a]);
|
|
1186
|
-
const h = $(r, "
|
|
1187
|
+
const h = $(r, "headingFont", "DM Sans"), b = $(r, "bodyFont", "DM Sans");
|
|
1187
1188
|
return F(() => {
|
|
1188
|
-
const v = $(r, "
|
|
1189
|
+
const v = $(r, "primaryColor", "#000"), O = $(r, "secondaryColor", "#FFF"), E = Sr({
|
|
1189
1190
|
colors: [v, O],
|
|
1190
1191
|
names: ["primary", "secondary"]
|
|
1191
1192
|
});
|
|
1192
1193
|
E.primary.DEFAULT = v, E.secondary.DEFAULT = O;
|
|
1193
|
-
const C = $(r, "
|
|
1194
|
+
const C = $(r, "roundedCorners", "0");
|
|
1194
1195
|
!f || !f.tailwind || (f.tailwind.config = {
|
|
1195
1196
|
darkMode: "class",
|
|
1196
1197
|
theme: {
|
|
@@ -1232,7 +1233,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
|
|
|
1232
1233
|
}, [s, m]), F(() => {
|
|
1233
1234
|
if (e === "section")
|
|
1234
1235
|
return;
|
|
1235
|
-
const v = $(r, "
|
|
1236
|
+
const v = $(r, "bodyTextLightColor", "#64748b"), O = $(r, "bodyTextDarkColor", "#94a3b8"), E = $(r, "bodyBgLightColor", "#FFFFFF"), C = $(r, "bodyBgDarkColor", "#0f172a");
|
|
1236
1237
|
a.body.className = `font-body antialiased text-[${v}] bg-[${E}] dark:text-[${O}] dark:bg-[${C}]`;
|
|
1237
1238
|
}, [r, a, e]), e === "page" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1238
1239
|
h && /* @__PURE__ */ t.jsx(
|
|
@@ -1297,7 +1298,7 @@ function rn(e, r, n, i) {
|
|
|
1297
1298
|
}), d;
|
|
1298
1299
|
}
|
|
1299
1300
|
function Ce({ blocks: e }) {
|
|
1300
|
-
const r = at(), [, n] =
|
|
1301
|
+
const r = at(), [, n] = Ae(), [, i] = Z(), [, d] = X(), s = Q(
|
|
1301
1302
|
(p) => {
|
|
1302
1303
|
var h;
|
|
1303
1304
|
const m = (h = p.currentTarget) == null ? void 0 : h.getAttribute("data-style-id");
|
|
@@ -1356,7 +1357,7 @@ const nn = () => {
|
|
|
1356
1357
|
const e = at();
|
|
1357
1358
|
return /* @__PURE__ */ t.jsx(Tr, { children: e.length ? /* @__PURE__ */ t.jsx(Ce, { blocks: Ze(e, (r) => ee(r._parent)) }) : /* @__PURE__ */ t.jsx(Jr, {}) });
|
|
1358
1359
|
}, on = (e, r) => e.querySelector(`[data-style-id="${r}"]`), sn = () => {
|
|
1359
|
-
const [e] = te(Kt), [r] = ot(), [n] =
|
|
1360
|
+
const [e] = te(Kt), [r] = ot(), [n] = Re(), [, i] = X(), d = Vt(), [, s] = Ae(), a = Oe(null), f = Oe(null), [y, p] = H({ width: 0, height: 0 }), m = Dr(y), [h, b] = H(0), [v, O] = H([]), [, E] = H([]), [, C] = te(Gt), [g, U] = Z(), M = Qe("loadingCanvas", !1);
|
|
1360
1361
|
F(() => {
|
|
1361
1362
|
const { clientWidth: D, clientHeight: W } = f.current;
|
|
1362
1363
|
p({ width: D, height: W }), h === 0 && b(D);
|
|
@@ -1426,7 +1427,7 @@ const nn = () => {
|
|
|
1426
1427
|
)
|
|
1427
1428
|
}
|
|
1428
1429
|
);
|
|
1429
|
-
}, an = wt(() => import("./AddBlocks-
|
|
1430
|
+
}, an = wt(() => import("./AddBlocks-a9d3b6c0.js")), to = () => {
|
|
1430
1431
|
const e = Qe("mode", ve.STATIC), [r, n] = te(Xt), i = {
|
|
1431
1432
|
[ve.STATIC]: /* @__PURE__ */ t.jsx(sn, {}),
|
|
1432
1433
|
[ve.FRAMEWORK]: null
|
|
@@ -1454,5 +1455,5 @@ const nn = () => {
|
|
|
1454
1455
|
] });
|
|
1455
1456
|
};
|
|
1456
1457
|
export {
|
|
1457
|
-
|
|
1458
|
+
to as default
|
|
1458
1459
|
};
|