@chaibuilder/sdk 0.1.7 → 0.1.8

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.
Files changed (64) hide show
  1. package/dist/AddBlocks-4e50ad65.cjs +3 -0
  2. package/dist/{AddBlocks-0d80d14e.js → AddBlocks-619d3dde.js} +26 -27
  3. package/dist/{BrandingOptions-2eb3a20f.js → BrandingOptions-05634eee.js} +5 -4
  4. package/dist/BrandingOptions-d2a7778f.cjs +1 -0
  5. package/dist/{CanvasArea-366fc7f5.js → CanvasArea-8f96a9f5.js} +91 -90
  6. package/dist/{CanvasArea-35fe4de9.cjs → CanvasArea-f26157c0.cjs} +7 -7
  7. package/dist/CurrentPage-0663041c.cjs +1 -0
  8. package/dist/CurrentPage-d372a5a9.js +85 -0
  9. package/dist/Layers-57457feb.cjs +1 -0
  10. package/dist/{Layers-c375ab6b.js → Layers-5da1d796.js} +13 -12
  11. package/dist/{MarkAsGlobalBlock-3ecff4e8.js → MarkAsGlobalBlock-1a0d0725.js} +7 -6
  12. package/dist/MarkAsGlobalBlock-dd53daec.cjs +1 -0
  13. package/dist/PagesPanel-113739d6.cjs +1 -0
  14. package/dist/{PagesPanel-28b02d06.js → PagesPanel-42dba988.js} +5 -4
  15. package/dist/{ProjectPanel-e6e95d71.js → ProjectPanel-7e26e6a3.js} +6 -5
  16. package/dist/ProjectPanel-ee6b71ab.cjs +1 -0
  17. package/dist/Settings-9f28c157.cjs +1 -0
  18. package/dist/{Settings-4c13f136.js → Settings-cdaf197a.js} +5 -4
  19. package/dist/{SidePanels-0f011b5d.js → SidePanels-7757f767.js} +6 -5
  20. package/dist/SidePanels-ce2deb33.cjs +1 -0
  21. package/dist/{Topbar-d609b15e.js → Topbar-73c9aa97.js} +5 -4
  22. package/dist/Topbar-7600678e.cjs +1 -0
  23. package/dist/{add-page-modal-fb1e7f3d.js → add-page-modal-96a1f8dc.js} +18 -17
  24. package/dist/add-page-modal-eb896eef.cjs +1 -0
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.js +48 -47
  27. package/dist/delete-page-modal-306dab3c.cjs +1 -0
  28. package/dist/{delete-page-modal-1e7c44c4.js → delete-page-modal-aabd460d.js} +5 -4
  29. package/dist/{Class-1fb4c0c4.js → html-to-json-eb4de645.js} +363 -190
  30. package/dist/html-to-json-feece010.cjs +1 -0
  31. package/dist/{index-0f2acc34.js → index-38bc7894.js} +1874 -1809
  32. package/dist/index-94612af5.cjs +2 -0
  33. package/dist/lib.cjs +1 -1
  34. package/dist/lib.js +20 -21
  35. package/dist/{page-viewer-791fb7c7.js → page-viewer-be5d5315.js} +9 -8
  36. package/dist/page-viewer-f60c4980.cjs +1 -0
  37. package/dist/{project-general-setting-b8508aa1.cjs → project-general-setting-bebd5cb1.cjs} +1 -1
  38. package/dist/{project-general-setting-ba6333d9.js → project-general-setting-cc9b43cd.js} +5 -4
  39. package/dist/render.cjs +2 -2
  40. package/dist/render.d.ts +12 -14
  41. package/dist/render.js +74 -71
  42. package/dist/server.cjs +1 -1
  43. package/dist/server.d.ts +38 -24
  44. package/dist/server.js +23 -16
  45. package/dist/{single-page-detail-69dd268b.js → single-page-detail-33436195.js} +6 -5
  46. package/dist/single-page-detail-584589e0.cjs +1 -0
  47. package/package.json +2 -1
  48. package/dist/AddBlocks-263e048b.cjs +0 -3
  49. package/dist/BrandingOptions-fe2c729f.cjs +0 -1
  50. package/dist/Class-6c695ccb.cjs +0 -1
  51. package/dist/Layers-ec26b885.cjs +0 -1
  52. package/dist/MarkAsGlobalBlock-b60aa4a5.cjs +0 -1
  53. package/dist/PagesPanel-27e831e4.cjs +0 -1
  54. package/dist/ProjectPanel-d77ca4b1.cjs +0 -1
  55. package/dist/Settings-f533682d.cjs +0 -1
  56. package/dist/SidePanels-8a461fbd.cjs +0 -1
  57. package/dist/Topbar-e3b28705.cjs +0 -1
  58. package/dist/add-page-modal-345f02a4.cjs +0 -1
  59. package/dist/delete-page-modal-83b69ad2.cjs +0 -1
  60. package/dist/html-to-json-01cc5fe0.cjs +0 -1
  61. package/dist/html-to-json-d20aafdd.js +0 -178
  62. package/dist/index-334beafe.cjs +0 -2
  63. package/dist/page-viewer-83157368.cjs +0 -1
  64. 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 _t, EraserIcon as Rt, ZoomInIcon as At, ArrowUpIcon as Pt, CopyIcon as It, TrashIcon as Ot, DragHandleDots2Icon as Mt } from "@radix-ui/react-icons";
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 _e, 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 Re, y as at, z as Kt, A as Vt, B as Gt, b as Xt, E as Zt } from "./index-0f2acc34.js";
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-38bc7894.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,7 +35,8 @@ import "flagged";
35
35
  import "@minoru/react-dnd-treeview";
36
36
  import "react-hotkeys-hook";
37
37
  import "flat-to-nested";
38
- import "./Class-1fb4c0c4.js";
38
+ import "./html-to-json-eb4de645.js";
39
+ import "himalaya";
39
40
  import "redux-undo";
40
41
  import "sonner";
41
42
  import "lucide-react";
@@ -45,14 +46,14 @@ 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 _r = () => {
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 Rr() {
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(_t, {}),
148
+ icon: /* @__PURE__ */ t.jsx(Rt, {}),
148
149
  width: 1920
149
150
  }
150
- ], Ar = ({
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] = _e(), [n, i] = Dt(), d = (s) => {
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(Ar, { ...s, onClick: r, key: s.breakpoint, currentBreakpoint: e })
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(Rt, {}),
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(Rr, {}),
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(At, { className: "h-3.5 w-3.5 flex-shrink-0" }),
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(_r, {})
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] = _e(), [, n] = rt(), [i, d] = H({}), s = Q(() => {
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: {} }, A = {};
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 A;
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 A.AsyncMode = y, A.ConcurrentMode = p, A.ContextConsumer = f, A.ContextProvider = a, A.Element = r, A.ForwardRef = m, A.Fragment = i, A.Lazy = O, A.Memo = v, A.Portal = n, A.Profiler = s, A.StrictMode = d, A.Suspense = h, A.isAsyncMode = function(l) {
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
- }, A.isConcurrentMode = B, A.isContextConsumer = function(l) {
355
+ }, _.isConcurrentMode = B, _.isContextConsumer = function(l) {
355
356
  return M(l) === f;
356
- }, A.isContextProvider = function(l) {
357
+ }, _.isContextProvider = function(l) {
357
358
  return M(l) === a;
358
- }, A.isElement = function(l) {
359
+ }, _.isElement = function(l) {
359
360
  return typeof l == "object" && l !== null && l.$$typeof === r;
360
- }, A.isForwardRef = function(l) {
361
+ }, _.isForwardRef = function(l) {
361
362
  return M(l) === m;
362
- }, A.isFragment = function(l) {
363
+ }, _.isFragment = function(l) {
363
364
  return M(l) === i;
364
- }, A.isLazy = function(l) {
365
+ }, _.isLazy = function(l) {
365
366
  return M(l) === O;
366
- }, A.isMemo = function(l) {
367
+ }, _.isMemo = function(l) {
367
368
  return M(l) === v;
368
- }, A.isPortal = function(l) {
369
+ }, _.isPortal = function(l) {
369
370
  return M(l) === n;
370
- }, A.isProfiler = function(l) {
371
+ }, _.isProfiler = function(l) {
371
372
  return M(l) === s;
372
- }, A.isStrictMode = function(l) {
373
+ }, _.isStrictMode = function(l) {
373
374
  return M(l) === d;
374
- }, A.isSuspense = function(l) {
375
+ }, _.isSuspense = function(l) {
375
376
  return M(l) === h;
376
- }, A.isValidElementType = function(l) {
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
- }, A.typeOf = M, A;
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 _(c) {
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 R(c) {
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 = _, P.isProfiler = I, P.isStrictMode = R, P.isSuspense = N, P.isValidElementType = M, P.typeOf = B;
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 Ae() {
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 = Ae(), n = {}, i = dt();
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 = Ae(), i = dt(), d = Lr(), s = function() {
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, _, I, R, N) {
647
- if (_ = _ || b, R = R || T, N !== n) {
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 = _ + ":" + T;
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 `" + R + "` prop on `" + _ + "`. 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
+ "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 + " `" + R + "` is marked as required " + ("in `" + _ + "`, but its value is `null`.")) : new E("The " + I + " `" + R + "` is marked as required in " + ("`" + _ + "`, but its value is `undefined`.")) : null : o(w, T, _, I, R);
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 _ = j[S], I = Y(_);
669
+ var R = j[S], I = Y(R);
669
670
  if (I !== o) {
670
- var R = K(_);
671
+ var A = K(R);
671
672
  return new E(
672
- "Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("`" + o + "`."),
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 _ = Y(T);
690
- return new E("Invalid " + k + " `" + w + "` of type " + ("`" + _ + "` supplied to `" + x + "`, expected an array."));
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 R = o(T, I, x, k, w + "[" + I + "]", n);
694
- if (R instanceof Error)
695
- return R;
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, _ = me(j[S]);
727
- return new E("Invalid " + k + " `" + w + "` of type " + ("`" + _ + "` supplied to `" + x + "`, expected ") + ("instance of `" + T + "`."));
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], _ = 0; _ < o.length; _++)
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], _ = Y(T);
755
- if (_ !== "object")
756
- return new E("Invalid " + k + " `" + w + "` of type " + ("`" + _ + "` supplied to `" + x + "`, expected an object."));
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 R = o(T, I, x, k, w + "." + I, n);
760
- if (R instanceof Error)
761
- return R;
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 = [], R = 0; R < o.length; R++) {
779
- var N = o[R], c = N(x, k, w, T, _, n);
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 + " `" + _ + "` supplied to " + ("`" + w + "`" + z + "."));
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], _ = Y(T);
803
- if (_ !== "object")
804
- return new E("Invalid " + k + " `" + w + "` of type `" + _ + "` " + ("supplied to `" + x + "`, expected `object`."));
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 R = o[I];
807
- if (typeof R != "function")
808
- return re(x, k, w, I, K(R));
809
- var N = R(T, I, x, k, w + "." + I, 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], _ = Y(T);
820
- if (_ !== "object")
821
- return new E("Invalid " + k + " `" + w + "` of type `" + _ + "` " + ("supplied to `" + x + "`, expected `object`."));
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 R in I) {
824
- var N = o[R];
825
- if (i(o, R) && typeof N != "function")
826
- return re(x, k, w, R, K(N));
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 `" + R + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(j[S], null, " ") + `
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, R, x, k, w + "." + R, n);
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 = Ae();
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: Qn } = pt;
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] = Re(), [s] = Z(), { document: a, window: f } = Pe(), [y] = H(a == null ? void 0 : a.getElementById("highlighted-block")), [p] = H(
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, "_headingFont", "DM Sans"), b = $(r, "_bodyFont", "DM Sans");
1187
+ const h = $(r, "headingFont", "DM Sans"), b = $(r, "bodyFont", "DM Sans");
1187
1188
  return F(() => {
1188
- const v = $(r, "_primaryColor", "#000"), O = $(r, "_secondaryColor", "#FFF"), E = Sr({
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, "_roundedCorners", "0");
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, "_bodyTextLightColor", "#64748b"), O = $(r, "_bodyTextDarkColor", "#94a3b8"), E = $(r, "_bodyBgLightColor", "#FFFFFF"), C = $(r, "_bodyBgDarkColor", "#0f172a");
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] = Re(), [, i] = Z(), [, d] = X(), s = Q(
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] = _e(), [, i] = X(), d = Vt(), [, s] = Re(), 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
+ 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-0d80d14e.js")), eo = () => {
1430
+ }, an = wt(() => import("./AddBlocks-619d3dde.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
- eo as default
1458
+ to as default
1458
1459
  };