@chaibuilder/sdk 0.1.15 → 0.1.16

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 (39) hide show
  1. package/dist/{AddBlocks-e65160bb.cjs → AddBlocks-59a68fc9.cjs} +1 -1
  2. package/dist/{AddBlocks-12b4bcb1.js → AddBlocks-6f4db22d.js} +1 -1
  3. package/dist/{BrandingOptions-2075324b.cjs → BrandingOptions-8e7a159f.cjs} +1 -1
  4. package/dist/{BrandingOptions-d2e86bba.js → BrandingOptions-d6351932.js} +1 -1
  5. package/dist/{CanvasArea-480c053b.cjs → CanvasArea-08537c6e.cjs} +7 -7
  6. package/dist/{CanvasArea-4a600b0b.js → CanvasArea-a585620d.js} +108 -114
  7. package/dist/{CurrentPage-1f8e7c5f.cjs → CurrentPage-cbbfdbf4.cjs} +1 -1
  8. package/dist/{CurrentPage-9de40984.js → CurrentPage-e8f8ff05.js} +1 -1
  9. package/dist/{Layers-ab013224.cjs → Layers-636e0bc6.cjs} +1 -1
  10. package/dist/{Layers-048bdcbc.js → Layers-6fc21e86.js} +2 -2
  11. package/dist/{MarkAsGlobalBlock-1b607a7a.cjs → MarkAsGlobalBlock-23dd24b9.cjs} +1 -1
  12. package/dist/{MarkAsGlobalBlock-0f52dce4.js → MarkAsGlobalBlock-cf7e8b31.js} +1 -1
  13. package/dist/{PagesPanel-caeb74c0.js → PagesPanel-7db807df.js} +2 -2
  14. package/dist/{PagesPanel-f15d3d6d.cjs → PagesPanel-bf13d0a5.cjs} +1 -1
  15. package/dist/{ProjectPanel-774b3de7.js → ProjectPanel-a7c78e1f.js} +2 -2
  16. package/dist/{ProjectPanel-8b70ff96.cjs → ProjectPanel-d98d3585.cjs} +1 -1
  17. package/dist/{Settings-a3eec331.cjs → Settings-1b76c006.cjs} +1 -1
  18. package/dist/{Settings-a12cec46.js → Settings-1e6e0534.js} +1 -1
  19. package/dist/{SidePanels-c5482f7f.cjs → SidePanels-55124e18.cjs} +1 -1
  20. package/dist/{SidePanels-c4420954.js → SidePanels-af4f2c45.js} +2 -2
  21. package/dist/{Topbar-d4b46465.js → Topbar-4f1aca98.js} +1 -1
  22. package/dist/{Topbar-13c64cdf.cjs → Topbar-5df341d7.cjs} +1 -1
  23. package/dist/{add-page-modal-c169dc4b.cjs → add-page-modal-b685709e.cjs} +1 -1
  24. package/dist/{add-page-modal-f8e5b874.js → add-page-modal-d4f5ba20.js} +1 -1
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.js +1 -1
  27. package/dist/{delete-page-modal-52feec39.js → delete-page-modal-00d5fbab.js} +1 -1
  28. package/dist/{delete-page-modal-cce082dc.cjs → delete-page-modal-bbd3ffa2.cjs} +1 -1
  29. package/dist/{index-14e86fe3.js → index-8a7a37ce.js} +3 -3
  30. package/dist/{index-659e552b.cjs → index-bf44bc93.cjs} +2 -2
  31. package/dist/{page-viewer-3b6eb2d0.js → page-viewer-c494031b.js} +2 -2
  32. package/dist/{page-viewer-7042768e.cjs → page-viewer-f0a54a92.cjs} +1 -1
  33. package/dist/{project-general-setting-4e840310.cjs → project-general-setting-a3e99d1e.cjs} +1 -1
  34. package/dist/{project-general-setting-d72ae135.js → project-general-setting-fca12629.js} +1 -1
  35. package/dist/render.cjs +2 -2
  36. package/dist/render.js +1 -3
  37. package/dist/{single-page-detail-6632db9b.cjs → single-page-detail-84c67e67.cjs} +1 -1
  38. package/dist/{single-page-detail-a151a222.js → single-page-detail-ff7fceb1.js} +2 -2
  39. package/package.json +1 -1
@@ -6,7 +6,7 @@ import G, { createElement as xt, useCallback as Q, useState as H, useEffect as F
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 Je, isString as Qe } from "lodash";
7
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 et, S as tt } from "./useBuilderProp-81a14920.js";
9
- import { c as ke, d as rt, e as Re, f as Dt, g as Bt, h as X, i as Z, j as $t, k as nt, l as ot, m as Nt, n as Lt, o as Ft, p as st, q as at, u as Wt, r as qt, s as Ut, t as Yt, v as zt, w as Ht, x as Ae, y as it, z as Kt, A as Vt, B as Gt, b as Xt, E as Zt } from "./index-14e86fe3.js";
9
+ import { c as ke, d as rt, e as Re, f as Dt, g as Bt, h as X, i as Z, j as $t, k as nt, l as ot, m as Nt, n as Lt, o as Ft, p as st, q as at, u as Wt, r as qt, s as Ut, t as Yt, v as zt, w as Ht, x as Ae, y as it, z as Kt, A as Vt, B as Gt, b as Xt, E as Zt } from "./index-8a7a37ce.js";
10
10
  import { useTranslation as ct } 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";
@@ -285,11 +285,11 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
285
285
  </body>
286
286
  </html>`, Dr = (e) => {
287
287
  const [r] = Re(), [, n] = nt(), [i, d] = H({}), s = Q(() => {
288
- const { width: a, height: u } = e;
288
+ const { width: a, height: f } = e;
289
289
  if (a < r) {
290
290
  const y = parseFloat((a / r).toString());
291
291
  let p = {};
292
- u && (p = { height: u + 2 * u * (1 - y) }), d({
292
+ f && (p = { height: f + 2 * f * (1 - y) }), d({
293
293
  transform: `scale(${y})`,
294
294
  transformOrigin: "top left",
295
295
  ...p,
@@ -316,7 +316,7 @@ function Br() {
316
316
  if (We)
317
317
  return _;
318
318
  We = 1;
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, u = 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
+ 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;
320
320
  function M(l) {
321
321
  if (typeof l == "object" && l !== null) {
322
322
  var D = l.$$typeof;
@@ -332,7 +332,7 @@ function Br() {
332
332
  return l;
333
333
  default:
334
334
  switch (l = l && l.$$typeof, l) {
335
- case u:
335
+ case f:
336
336
  case m:
337
337
  case O:
338
338
  case v:
@@ -350,10 +350,10 @@ function Br() {
350
350
  function B(l) {
351
351
  return M(l) === p;
352
352
  }
353
- return _.AsyncMode = y, _.ConcurrentMode = p, _.ContextConsumer = u, _.ContextProvider = a, _.Element = r, _.ForwardRef = m, _.Fragment = i, _.Lazy = O, _.Memo = v, _.Portal = n, _.Profiler = s, _.StrictMode = d, _.Suspense = h, _.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) {
354
354
  return B(l) || M(l) === y;
355
355
  }, _.isConcurrentMode = B, _.isContextConsumer = function(l) {
356
- return M(l) === u;
356
+ return M(l) === f;
357
357
  }, _.isContextProvider = function(l) {
358
358
  return M(l) === a;
359
359
  }, _.isElement = function(l) {
@@ -375,7 +375,7 @@ function Br() {
375
375
  }, _.isSuspense = function(l) {
376
376
  return M(l) === h;
377
377
  }, _.isValidElementType = function(l) {
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 === u || l.$$typeof === m || l.$$typeof === C || l.$$typeof === g || l.$$typeof === U || l.$$typeof === E);
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);
379
379
  }, _.typeOf = M, _;
380
380
  }
381
381
  var P = {};
@@ -390,10 +390,10 @@ var P = {};
390
390
  var qe;
391
391
  function $r() {
392
392
  return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
393
- 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, u = 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;
393
+ 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;
394
394
  function M(c) {
395
395
  return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
396
- c === i || c === p || c === s || c === d || c === h || c === b || typeof c == "object" && c !== null && (c.$$typeof === O || c.$$typeof === v || c.$$typeof === a || c.$$typeof === u || c.$$typeof === m || c.$$typeof === C || c.$$typeof === g || c.$$typeof === U || c.$$typeof === E);
396
+ c === i || c === p || c === s || c === d || c === h || c === b || typeof c == "object" && c !== null && (c.$$typeof === O || c.$$typeof === v || c.$$typeof === a || c.$$typeof === f || c.$$typeof === m || c.$$typeof === C || c.$$typeof === g || c.$$typeof === U || c.$$typeof === E);
397
397
  }
398
398
  function B(c) {
399
399
  if (typeof c == "object" && c !== null) {
@@ -412,7 +412,7 @@ function $r() {
412
412
  default:
413
413
  var Ie = oe && oe.$$typeof;
414
414
  switch (Ie) {
415
- case u:
415
+ case f:
416
416
  case m:
417
417
  case O:
418
418
  case v:
@@ -427,15 +427,15 @@ function $r() {
427
427
  }
428
428
  }
429
429
  }
430
- var l = y, D = p, W = u, q = a, de = r, ue = m, re = i, fe = O, pe = v, J = n, he = s, Y = d, K = h, ne = !1;
430
+ var l = y, D = p, W = f, q = a, de = r, ue = m, re = i, fe = O, pe = v, J = n, he = s, Y = d, K = h, ne = !1;
431
431
  function me(c) {
432
432
  return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(c) || B(c) === y;
433
433
  }
434
434
  function o(c) {
435
435
  return B(c) === p;
436
436
  }
437
- function f(c) {
438
- return B(c) === u;
437
+ function u(c) {
438
+ return B(c) === f;
439
439
  }
440
440
  function j(c) {
441
441
  return B(c) === a;
@@ -467,7 +467,7 @@ function $r() {
467
467
  function N(c) {
468
468
  return B(c) === h;
469
469
  }
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 = f, 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
+ 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;
471
471
  }()), P;
472
472
  }
473
473
  var Ue;
@@ -497,8 +497,8 @@ function Nr() {
497
497
  var s = new String("abc");
498
498
  if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
499
499
  return !1;
500
- for (var a = {}, u = 0; u < 10; u++)
501
- a["_" + String.fromCharCode(u)] = u;
500
+ for (var a = {}, f = 0; f < 10; f++)
501
+ a["_" + String.fromCharCode(f)] = f;
502
502
  var y = Object.getOwnPropertyNames(a).map(function(m) {
503
503
  return a[m];
504
504
  });
@@ -513,14 +513,14 @@ function Nr() {
513
513
  }
514
514
  }
515
515
  return ge = d() ? Object.assign : function(s, a) {
516
- for (var u, y = i(s), p, m = 1; m < arguments.length; m++) {
517
- u = Object(arguments[m]);
518
- for (var h in u)
519
- r.call(u, h) && (y[h] = u[h]);
516
+ for (var f, y = i(s), p, m = 1; m < arguments.length; m++) {
517
+ f = Object(arguments[m]);
518
+ for (var h in f)
519
+ r.call(f, h) && (y[h] = f[h]);
520
520
  if (e) {
521
- p = e(u);
521
+ p = e(f);
522
522
  for (var b = 0; b < p.length; b++)
523
- n.call(u, p[b]) && (y[p[b]] = u[p[b]]);
523
+ n.call(f, p[b]) && (y[p[b]] = f[p[b]]);
524
524
  }
525
525
  }
526
526
  return y;
@@ -556,7 +556,7 @@ function Lr() {
556
556
  }
557
557
  };
558
558
  }
559
- function d(s, a, u, y, p) {
559
+ function d(s, a, f, y, p) {
560
560
  if (process.env.NODE_ENV !== "production") {
561
561
  for (var m in s)
562
562
  if (i(s, m)) {
@@ -564,21 +564,21 @@ function Lr() {
564
564
  try {
565
565
  if (typeof s[m] != "function") {
566
566
  var b = Error(
567
- (y || "React class") + ": " + u + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
567
+ (y || "React class") + ": " + f + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
568
568
  );
569
569
  throw b.name = "Invariant Violation", b;
570
570
  }
571
- h = s[m](a, m, y, u, null, r);
571
+ h = s[m](a, m, y, f, null, r);
572
572
  } catch (O) {
573
573
  h = O;
574
574
  }
575
575
  if (h && !(h instanceof Error) && e(
576
- (y || "React class") + ": type specification of " + u + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
576
+ (y || "React class") + ": type specification of " + f + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
577
577
  ), h instanceof Error && !(h.message in n)) {
578
578
  n[h.message] = !0;
579
579
  var v = p ? p() : "";
580
580
  e(
581
- "Failed " + u + " type: " + h.message + (v ?? "")
581
+ "Failed " + f + " type: " + h.message + (v ?? "")
582
582
  );
583
583
  }
584
584
  }
@@ -595,8 +595,8 @@ function Fr() {
595
595
  Ve = 1;
596
596
  var e = dt(), r = Nr(), n = _e(), i = ut(), d = Lr(), s = function() {
597
597
  };
598
- process.env.NODE_ENV !== "production" && (s = function(u) {
599
- var y = "Warning: " + u;
598
+ process.env.NODE_ENV !== "production" && (s = function(f) {
599
+ var y = "Warning: " + f;
600
600
  typeof console < "u" && console.error(y);
601
601
  try {
602
602
  throw new Error(y);
@@ -606,12 +606,12 @@ function Fr() {
606
606
  function a() {
607
607
  return null;
608
608
  }
609
- return Ee = function(u, y) {
609
+ return Ee = function(f, y) {
610
610
  var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
611
611
  function h(o) {
612
- var f = o && (p && o[p] || o[m]);
613
- if (typeof f == "function")
614
- return f;
612
+ var u = o && (p && o[p] || o[m]);
613
+ if (typeof u == "function")
614
+ return u;
615
615
  }
616
616
  var b = "<<anonymous>>", v = {
617
617
  array: g("array"),
@@ -634,16 +634,16 @@ function Fr() {
634
634
  shape: fe,
635
635
  exact: pe
636
636
  };
637
- function O(o, f) {
638
- return o === f ? o !== 0 || 1 / o === 1 / f : o !== o && f !== f;
637
+ function O(o, u) {
638
+ return o === u ? o !== 0 || 1 / o === 1 / u : o !== o && u !== u;
639
639
  }
640
- function E(o, f) {
641
- this.message = o, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
640
+ function E(o, u) {
641
+ this.message = o, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
642
642
  }
643
643
  E.prototype = Error.prototype;
644
644
  function C(o) {
645
645
  if (process.env.NODE_ENV !== "production")
646
- var f = {}, j = 0;
646
+ var u = {}, j = 0;
647
647
  function S(k, w, T, R, I, A, N) {
648
648
  if (R = R || b, A = A || T, N !== n) {
649
649
  if (y) {
@@ -653,10 +653,10 @@ function Fr() {
653
653
  throw c.name = "Invariant Violation", c;
654
654
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
655
655
  var z = R + ":" + T;
656
- !f[z] && // Avoid spamming the console because they are often not actionable except for lib authors
656
+ !u[z] && // Avoid spamming the console because they are often not actionable except for lib authors
657
657
  j < 3 && (s(
658
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."
659
- ), f[z] = !0, j++);
659
+ ), u[z] = !0, j++);
660
660
  }
661
661
  }
662
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);
@@ -665,7 +665,7 @@ function Fr() {
665
665
  return x.isRequired = S.bind(null, !0), x;
666
666
  }
667
667
  function g(o) {
668
- function f(j, S, x, k, w, T) {
668
+ function u(j, S, x, k, w, T) {
669
669
  var R = j[S], I = Y(R);
670
670
  if (I !== o) {
671
671
  var A = K(R);
@@ -676,13 +676,13 @@ function Fr() {
676
676
  }
677
677
  return null;
678
678
  }
679
- return C(f);
679
+ return C(u);
680
680
  }
681
681
  function U() {
682
682
  return C(a);
683
683
  }
684
684
  function M(o) {
685
- function f(j, S, x, k, w) {
685
+ function u(j, S, x, k, w) {
686
686
  if (typeof o != "function")
687
687
  return new E("Property `" + w + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
688
688
  var T = j[S];
@@ -697,12 +697,12 @@ function Fr() {
697
697
  }
698
698
  return null;
699
699
  }
700
- return C(f);
700
+ return C(u);
701
701
  }
702
702
  function B() {
703
- function o(f, j, S, x, k) {
704
- var w = f[j];
705
- if (!u(w)) {
703
+ function o(u, j, S, x, k) {
704
+ var w = u[j];
705
+ if (!f(w)) {
706
706
  var T = Y(w);
707
707
  return new E("Invalid " + x + " `" + k + "` of type " + ("`" + T + "` supplied to `" + S + "`, expected a single ReactElement."));
708
708
  }
@@ -711,8 +711,8 @@ function Fr() {
711
711
  return C(o);
712
712
  }
713
713
  function l() {
714
- function o(f, j, S, x, k) {
715
- var w = f[j];
714
+ function o(u, j, S, x, k) {
715
+ var w = u[j];
716
716
  if (!e.isValidElementType(w)) {
717
717
  var T = Y(w);
718
718
  return new E("Invalid " + x + " `" + k + "` of type " + ("`" + T + "` supplied to `" + S + "`, expected a single ReactElement type."));
@@ -722,21 +722,21 @@ function Fr() {
722
722
  return C(o);
723
723
  }
724
724
  function D(o) {
725
- function f(j, S, x, k, w) {
725
+ function u(j, S, x, k, w) {
726
726
  if (!(j[S] instanceof o)) {
727
727
  var T = o.name || b, R = me(j[S]);
728
728
  return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("instance of `" + T + "`."));
729
729
  }
730
730
  return null;
731
731
  }
732
- return C(f);
732
+ return C(u);
733
733
  }
734
734
  function W(o) {
735
735
  if (!Array.isArray(o))
736
736
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
737
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])."
738
738
  ) : s("Invalid argument supplied to oneOf, expected an array.")), a;
739
- function f(j, S, x, k, w) {
739
+ function u(j, S, x, k, w) {
740
740
  for (var T = j[S], R = 0; R < o.length; R++)
741
741
  if (O(T, o[R]))
742
742
  return null;
@@ -746,10 +746,10 @@ function Fr() {
746
746
  });
747
747
  return new E("Invalid " + k + " `" + w + "` of value `" + String(T) + "` " + ("supplied to `" + x + "`, expected one of " + I + "."));
748
748
  }
749
- return C(f);
749
+ return C(u);
750
750
  }
751
751
  function q(o) {
752
- function f(j, S, x, k, w) {
752
+ function u(j, S, x, k, w) {
753
753
  if (typeof o != "function")
754
754
  return new E("Property `" + w + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
755
755
  var T = j[S], R = Y(T);
@@ -763,16 +763,16 @@ function Fr() {
763
763
  }
764
764
  return null;
765
765
  }
766
- return C(f);
766
+ return C(u);
767
767
  }
768
768
  function de(o) {
769
769
  if (!Array.isArray(o))
770
770
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), a;
771
- for (var f = 0; f < o.length; f++) {
772
- var j = o[f];
771
+ for (var u = 0; u < o.length; u++) {
772
+ var j = o[u];
773
773
  if (typeof j != "function")
774
774
  return s(
775
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(j) + " at index " + f + "."
775
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(j) + " at index " + u + "."
776
776
  ), a;
777
777
  }
778
778
  function S(x, k, w, T, R) {
@@ -788,18 +788,18 @@ function Fr() {
788
788
  return C(S);
789
789
  }
790
790
  function ue() {
791
- function o(f, j, S, x, k) {
792
- return J(f[j]) ? null : new E("Invalid " + x + " `" + k + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
791
+ function o(u, j, S, x, k) {
792
+ return J(u[j]) ? null : new E("Invalid " + x + " `" + k + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
793
793
  }
794
794
  return C(o);
795
795
  }
796
- function re(o, f, j, S, x) {
796
+ function re(o, u, j, S, x) {
797
797
  return new E(
798
- (o || "React class") + ": " + f + " type `" + j + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
798
+ (o || "React class") + ": " + u + " type `" + j + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
799
799
  );
800
800
  }
801
801
  function fe(o) {
802
- function f(j, S, x, k, w) {
802
+ function u(j, S, x, k, w) {
803
803
  var T = j[S], R = Y(T);
804
804
  if (R !== "object")
805
805
  return new E("Invalid " + k + " `" + w + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
@@ -813,10 +813,10 @@ function Fr() {
813
813
  }
814
814
  return null;
815
815
  }
816
- return C(f);
816
+ return C(u);
817
817
  }
818
818
  function pe(o) {
819
- function f(j, S, x, k, w) {
819
+ function u(j, S, x, k, w) {
820
820
  var T = j[S], R = Y(T);
821
821
  if (R !== "object")
822
822
  return new E("Invalid " + k + " `" + w + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
@@ -836,7 +836,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
836
836
  }
837
837
  return null;
838
838
  }
839
- return C(f);
839
+ return C(u);
840
840
  }
841
841
  function J(o) {
842
842
  switch (typeof o) {
@@ -849,12 +849,12 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
849
849
  case "object":
850
850
  if (Array.isArray(o))
851
851
  return o.every(J);
852
- if (o === null || u(o))
852
+ if (o === null || f(o))
853
853
  return !0;
854
- var f = h(o);
855
- if (f) {
856
- var j = f.call(o), S;
857
- if (f !== o.entries) {
854
+ var u = h(o);
855
+ if (u) {
856
+ var j = u.call(o), S;
857
+ if (u !== o.entries) {
858
858
  for (; !(S = j.next()).done; )
859
859
  if (!J(S.value))
860
860
  return !1;
@@ -871,37 +871,37 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
871
871
  return !1;
872
872
  }
873
873
  }
874
- function he(o, f) {
875
- return o === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
874
+ function he(o, u) {
875
+ return o === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
876
876
  }
877
877
  function Y(o) {
878
- var f = typeof o;
879
- return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : he(f, o) ? "symbol" : f;
878
+ var u = typeof o;
879
+ return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : he(u, o) ? "symbol" : u;
880
880
  }
881
881
  function K(o) {
882
882
  if (typeof o > "u" || o === null)
883
883
  return "" + o;
884
- var f = Y(o);
885
- if (f === "object") {
884
+ var u = Y(o);
885
+ if (u === "object") {
886
886
  if (o instanceof Date)
887
887
  return "date";
888
888
  if (o instanceof RegExp)
889
889
  return "regexp";
890
890
  }
891
- return f;
891
+ return u;
892
892
  }
893
893
  function ne(o) {
894
- var f = K(o);
895
- switch (f) {
894
+ var u = K(o);
895
+ switch (u) {
896
896
  case "array":
897
897
  case "object":
898
- return "an " + f;
898
+ return "an " + u;
899
899
  case "boolean":
900
900
  case "date":
901
901
  case "regexp":
902
- return "a " + f;
902
+ return "a " + u;
903
903
  default:
904
- return f;
904
+ return u;
905
905
  }
906
906
  }
907
907
  function me(o) {
@@ -921,7 +921,7 @@ function Wr() {
921
921
  function n() {
922
922
  }
923
923
  return n.resetWarningCache = r, Se = function() {
924
- function i(a, u, y, p, m, h) {
924
+ function i(a, f, y, p, m, h) {
925
925
  if (h !== e) {
926
926
  var b = new Error(
927
927
  "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"
@@ -1023,8 +1023,8 @@ class je extends Xe {
1023
1023
  const n = this.getDoc();
1024
1024
  if (!n)
1025
1025
  return null;
1026
- const i = this.props.contentDidMount, d = this.props.contentDidUpdate, s = n.defaultView || n.parentView, a = /* @__PURE__ */ t.jsx(mt, { contentDidMount: i, contentDidUpdate: d, children: /* @__PURE__ */ t.jsx(zr, { value: { document: n, window: s }, children: /* @__PURE__ */ t.jsx("div", { className: "frame-content", children: this.props.children }) }) }), u = this.getMountTarget();
1027
- return [Ne.createPortal(this.props.head, this.getDoc().head), Ne.createPortal(a, u)];
1026
+ const i = this.props.contentDidMount, d = this.props.contentDidUpdate, s = n.defaultView || n.parentView, a = /* @__PURE__ */ t.jsx(mt, { contentDidMount: i, contentDidUpdate: d, children: /* @__PURE__ */ t.jsx(zr, { value: { document: n, window: s }, children: /* @__PURE__ */ t.jsx("div", { className: "frame-content", children: this.props.children }) }) }), f = this.getMountTarget();
1027
+ return [Ne.createPortal(this.props.head, this.getDoc().head), Ne.createPortal(a, f)];
1028
1028
  }
1029
1029
  render() {
1030
1030
  const n = {
@@ -1070,14 +1070,14 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1070
1070
  if (s) {
1071
1071
  const a = s.getAttribute("data-style-prop");
1072
1072
  if (a) {
1073
- const u = s.getAttribute("data-style-id"), y = s.getAttribute("data-block-parent");
1074
- d([{ id: u, prop: a, blockId: y }]);
1073
+ const f = s.getAttribute("data-style-id"), y = s.getAttribute("data-block-parent");
1074
+ d([{ id: f, prop: a, blockId: y }]);
1075
1075
  }
1076
1076
  }
1077
1077
  }, 100);
1078
1078
  }, [r, n, d, i]), /* @__PURE__ */ t.jsx("div", { id: "canvas", className: "relative h-screen max-w-full outline-2", children: e });
1079
1079
  }, yt = (e, r) => e.querySelector(`[data-block-id="${r}"]`), Vr = () => {
1080
- const { window: e } = Pe(), [r, n] = X(), [, i] = Z(), { undo: d, redo: s } = ke(), a = ot(), [, u] = Nt(), [, y] = Lt(), { pasteBlocks: p } = Ft(), [, m] = st(), h = at(), { savePage: b } = Wt(), [v] = te(qt), [, O] = te(Ut), E = (C) => {
1080
+ const { window: e } = Pe(), [r, n] = X(), [, i] = Z(), { undo: d, redo: s } = ke(), a = ot(), [, f] = Nt(), [, y] = Lt(), { pasteBlocks: p } = Ft(), [, m] = st(), h = at(), { savePage: b } = Wt(), [v] = te(qt), [, O] = te(Ut), E = (C) => {
1081
1081
  C.key === "Enter" && (C.preventDefault(), r.length === 1 && O(ce(r)));
1082
1082
  };
1083
1083
  return F(() => {
@@ -1092,7 +1092,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1092
1092
  return !0;
1093
1093
  g.preventDefault();
1094
1094
  }
1095
- g.key === "s" && (g.stopPropagation(), g.preventDefault(), b()), g.key === "z" && d(), g.key === "y" && s(), g.key === "d" && a(r), g.key === "x" && u(r), g.key === "c" && y(r), g.key === "v" && r.length > 0 && p(r[0]);
1095
+ g.key === "s" && (g.stopPropagation(), g.preventDefault(), b()), g.key === "z" && d(), g.key === "y" && s(), g.key === "d" && a(r), g.key === "x" && f(r), g.key === "c" && y(r), g.key === "v" && r.length > 0 && p(r[0]);
1096
1096
  }
1097
1097
  };
1098
1098
  return e.removeEventListener("keydown", C), e.addEventListener("keydown", C), () => {
@@ -1106,7 +1106,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1106
1106
  m,
1107
1107
  s,
1108
1108
  a,
1109
- u,
1109
+ f,
1110
1110
  y,
1111
1111
  p,
1112
1112
  v,
@@ -1136,7 +1136,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1136
1136
  selectedBlockElement: e,
1137
1137
  block: r
1138
1138
  }) => {
1139
- const n = at(), i = ot(), [, d] = X(), [, s] = Z(), { floatingStyles: a, refs: u, update: y } = xr({
1139
+ const n = at(), i = ot(), [, d] = X(), [, s] = Z(), { floatingStyles: a, refs: f, update: y } = xr({
1140
1140
  placement: "top-start",
1141
1141
  middleware: [br(), gr()],
1142
1142
  elements: {
@@ -1150,7 +1150,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1150
1150
  {
1151
1151
  role: "button",
1152
1152
  tabIndex: 0,
1153
- ref: u.setFloating,
1153
+ ref: f.setFloating,
1154
1154
  style: a,
1155
1155
  onClick: (h) => {
1156
1156
  h.stopPropagation(), h.preventDefault();
@@ -1176,7 +1176,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1176
1176
  }
1177
1177
  );
1178
1178
  }, Zr = ({ model: e }) => {
1179
- const [r] = Ht(), [n] = X(), [i] = rt(), [d] = Ae(), [s] = Z(), { document: a, window: u } = Pe(), [y] = H(a == null ? void 0 : a.getElementById("highlighted-block")), [p] = H(
1179
+ const [r] = Ht(), [n] = X(), [i] = rt(), [d] = Ae(), [s] = Z(), { document: a, window: f } = Pe(), [y] = H(a == null ? void 0 : a.getElementById("highlighted-block")), [p] = H(
1180
1180
  a == null ? void 0 : a.getElementById("selected-block")
1181
1181
  ), [m] = H(
1182
1182
  a == null ? void 0 : a.getElementById("selected-styling-block")
@@ -1192,7 +1192,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1192
1192
  });
1193
1193
  E.primary.DEFAULT = v, E.secondary.DEFAULT = O;
1194
1194
  const C = $(r, "roundedCorners", "0");
1195
- !u || !u.tailwind || (u.tailwind.config = {
1195
+ !f || !f.tailwind || (f.tailwind.config = {
1196
1196
  darkMode: "class",
1197
1197
  theme: {
1198
1198
  fontFamily: {
@@ -1208,7 +1208,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1208
1208
  },
1209
1209
  plugins: [
1210
1210
  // @ts-ignore
1211
- u.tailwind.plugin.withOptions(({ prefix: g = "ui" } = {}) => ({ addVariant: U }) => {
1211
+ f.tailwind.plugin.withOptions(({ prefix: g = "ui" } = {}) => ({ addVariant: U }) => {
1212
1212
  for (const M of ["open", "checked", "selected", "active", "disabled"])
1213
1213
  U(`${g}-${M}`, [
1214
1214
  `&[data-headlessui-state~="${M}"]`,
@@ -1220,7 +1220,7 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1220
1220
  })
1221
1221
  ]
1222
1222
  });
1223
- }, [r, u, h, b]), F(() => {
1223
+ }, [r, f, h, b]), F(() => {
1224
1224
  p && (p.textContent = `${ie(n, (v) => `[data-block-id="${v}"]`).join(",")}{
1225
1225
  outline: 1px solid ${n.length === 1 ? "#42a1fc" : "orange"} !important; outline-offset: -1px;
1226
1226
  }`);
@@ -1310,7 +1310,7 @@ function Ce({ blocks: e }) {
1310
1310
  n(""), p.stopPropagation();
1311
1311
  },
1312
1312
  [n]
1313
- ), u = Q(
1313
+ ), f = Q(
1314
1314
  (p) => {
1315
1315
  p.stopPropagation();
1316
1316
  const m = p.currentTarget;
@@ -1324,8 +1324,8 @@ function Ce({ blocks: e }) {
1324
1324
  },
1325
1325
  [i, d]
1326
1326
  ), y = Q(
1327
- (p) => rn(p, s, a, u),
1328
- [u, s, a]
1327
+ (p) => rn(p, s, a, f),
1328
+ [f, s, a]
1329
1329
  );
1330
1330
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: G.Children.toArray(
1331
1331
  e.map((p, m) => {
@@ -1340,7 +1340,7 @@ function Ce({ blocks: e }) {
1340
1340
  const O = Cr(p._type), E = $(O, "builderComponent", O == null ? void 0 : O.component) || null;
1341
1341
  return /* @__PURE__ */ t.jsx(Ze, { children: G.createElement(E, {
1342
1342
  blockProps: {
1343
- onClick: u,
1343
+ onClick: f,
1344
1344
  "data-block-id": p._id,
1345
1345
  "data-block-type": p._type
1346
1346
  },
@@ -1348,13 +1348,7 @@ function Ce({ blocks: e }) {
1348
1348
  ...p,
1349
1349
  index: m,
1350
1350
  ...y(p),
1351
- ...b,
1352
- isBuilderMode: () => !0,
1353
- setBlockRoot: () => ({
1354
- onClick: u,
1355
- "data-block-id": p._id,
1356
- "data-block-type": p._type
1357
- })
1351
+ ...b
1358
1352
  }) });
1359
1353
  })
1360
1354
  ) });
@@ -1363,11 +1357,11 @@ const nn = () => {
1363
1357
  const e = it();
1364
1358
  return /* @__PURE__ */ t.jsx(Tr, { children: e.length ? /* @__PURE__ */ t.jsx(Ce, { blocks: Je(e, (r) => ee(r._parent)) }) : /* @__PURE__ */ t.jsx(Jr, {}) });
1365
1359
  }, on = (e, r) => e.querySelector(`[data-style-id="${r}"]`), sn = () => {
1366
- const [e] = te(Kt), [r] = st(), [n] = Re(), [, i] = X(), d = Vt(), [, s] = Ae(), a = Oe(null), u = 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 = et("loadingCanvas", !1);
1360
+ const [e] = te(Kt), [r] = st(), [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 = et("loadingCanvas", !1);
1367
1361
  F(() => {
1368
- const { clientWidth: D, clientHeight: W } = u.current;
1362
+ const { clientWidth: D, clientHeight: W } = f.current;
1369
1363
  p({ width: D, height: W }), h === 0 && b(D);
1370
- }, [u, n, h]);
1364
+ }, [f, n, h]);
1371
1365
  const B = (D, W = 0) => {
1372
1366
  const { top: q } = D.getBoundingClientRect();
1373
1367
  return q + W >= 0 && q - W <= window.innerHeight;
@@ -1404,7 +1398,7 @@ const nn = () => {
1404
1398
  onMouseLeave: () => setTimeout(() => s(""), 300),
1405
1399
  className: "relative mx-auto h-full w-full bg-black/80",
1406
1400
  style: h > 0 && !ee(m) ? { width: r ? "100%" : h } : {},
1407
- ref: u,
1401
+ ref: f,
1408
1402
  children: /* @__PURE__ */ t.jsxs(
1409
1403
  Hr,
1410
1404
  {
@@ -1433,7 +1427,7 @@ const nn = () => {
1433
1427
  )
1434
1428
  }
1435
1429
  );
1436
- }, an = Et(() => import("./AddBlocks-12b4bcb1.js")), to = () => {
1430
+ }, an = Et(() => import("./AddBlocks-6f4db22d.js")), to = () => {
1437
1431
  const e = et("mode", ve.STATIC), [r, n] = te(Xt), i = {
1438
1432
  [ve.STATIC]: /* @__PURE__ */ t.jsx(sn, {}),
1439
1433
  [ve.FRAMEWORK]: null