@chaibuilder/sdk 1.2.16 → 1.2.17

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 (108) hide show
  1. package/README.md +6 -4
  2. package/dist/{AddBlocks-TBFBvBvo.js → AddBlocks--SllKzEG.js} +81 -81
  3. package/dist/AddBlocks-7TF41ISQ.cjs +1 -0
  4. package/dist/{BrandingOptions-t_MjeHSM.js → BrandingOptions-IqtZrxqX.js} +14 -15
  5. package/dist/BrandingOptions-uKE1vuWd.cjs +1 -0
  6. package/dist/{CanvasArea-ZYC8QbQB.js → CanvasArea-T1XNnB7d.js} +89 -95
  7. package/dist/{CanvasArea-oTylYgH9.cjs → CanvasArea-iLUw-tom.cjs} +3 -3
  8. package/dist/{Class-17XFhL48.js → Class-3k8xjeiM.js} +1 -1
  9. package/dist/{Class-5ARpH_Tu.cjs → Class-MmCxz2Ay.cjs} +1 -1
  10. package/dist/CurrentPage-N5hSL1xB.cjs +1 -0
  11. package/dist/{CurrentPage-4vC6olJo.js → CurrentPage-TCduhO-X.js} +16 -16
  12. package/dist/MODIFIERS-9EwxLM8V.cjs +1 -0
  13. package/dist/{MODIFIERS-RiXS5Mn1.js → MODIFIERS-WQdaNvb8.js} +5 -4
  14. package/dist/{Layers-m61dThGR.js → Outline-3IPrK7F-.js} +153 -145
  15. package/dist/Outline-g4TXJ-hK.cjs +1 -0
  16. package/dist/{PagesPanel-v3KV_vfG.js → PagesPanel-7goyNL8t.js} +10 -10
  17. package/dist/PagesPanel-qI3sijis.cjs +1 -0
  18. package/dist/{ProjectPanel-xsUuVX64.js → ProjectPanel-CdPFwsXg.js} +8 -8
  19. package/dist/ProjectPanel-bMllQ4_a.cjs +1 -0
  20. package/dist/Settings-8f4ivm4-.cjs +1 -0
  21. package/dist/{Settings-ZNxfF14G.js → Settings-pva9XRUC.js} +293 -293
  22. package/dist/SidePanels-7HqZM4-j.cjs +1 -0
  23. package/dist/SidePanels-u5QXQrWL.js +389 -0
  24. package/dist/Topbar-S3zgo3N8.js +129 -0
  25. package/dist/Topbar-poeqjjZb.cjs +1 -0
  26. package/dist/{UnsplashImages-ppQXZ28F.js → UnsplashImages-132gZ842.js} +13 -13
  27. package/dist/{UnsplashImages-SrxA-yNu.cjs → UnsplashImages-BOypn-e5.cjs} +1 -1
  28. package/dist/UploadImages-giiNNHKq.cjs +1 -0
  29. package/dist/{UploadImages-IKR4oX2k.js → UploadImages-tr54Ik1I.js} +35 -31
  30. package/dist/{add-page-modal-pc5-Yw4C.js → add-page-modal-AsP5g0Fp.js} +13 -12
  31. package/dist/add-page-modal-ajpd-Gmw.cjs +1 -0
  32. package/dist/{confirm-alert-uV_PtYc3.cjs → confirm-alert-bw0VBgoG.cjs} +1 -1
  33. package/dist/{confirm-alert-QKtbNbWz.js → confirm-alert-dYoU1ln_.js} +5 -5
  34. package/dist/controls-Dy1qa8Dc.cjs +1 -0
  35. package/dist/{empty-slot-5FRrRq1E.js → controls-XPXGHKht.js} +50 -61
  36. package/dist/core.cjs +1 -1
  37. package/dist/core.d.ts +16 -1
  38. package/dist/core.js +47 -53
  39. package/dist/{defaultTheme-IH19g4fv.cjs → defaultTheme-1XwPZT2b.cjs} +1 -1
  40. package/dist/{defaultTheme-YY8mlQS3.js → defaultTheme-s0cpA5Oy.js} +1 -1
  41. package/dist/delete-page-modal-H4JOWYZe.cjs +1 -0
  42. package/dist/{delete-page-modal-Zf3-4wLg.js → delete-page-modal-_Hy6ls6b.js} +12 -12
  43. package/dist/email-blocks.cjs +1 -1
  44. package/dist/email-blocks.js +11 -10
  45. package/dist/email.cjs +1 -1
  46. package/dist/email.d.ts +13 -0
  47. package/dist/email.js +7 -12
  48. package/dist/empty-slot-ZBlsQi6m.js +15 -0
  49. package/dist/empty-slot-nzYOgZuS.cjs +1 -0
  50. package/dist/{form-faX0Yn4Q.js → form-f13cs-An.js} +1 -1
  51. package/dist/{form-KkP1F7h1.cjs → form-jzX2YXUO.cjs} +1 -1
  52. package/dist/{html-to-json-57841sEK.js → html-to-json-C5sExaSD.js} +1 -1
  53. package/dist/{html-to-json-2PeOCVey.cjs → html-to-json-FGufPv9R.cjs} +1 -1
  54. package/dist/index-0JU8vPT_.cjs +206 -0
  55. package/dist/index-4xyhDki2.cjs +1 -0
  56. package/dist/index-MQH3blB-.cjs +1 -0
  57. package/dist/{index-QGA4ayU7.js → index-MaXiXghQ.js} +246 -246
  58. package/dist/index-YpnaudSM.js +63 -0
  59. package/dist/index-ecnGWzh9.cjs +1 -0
  60. package/dist/{index-rktN6W1Y.js → index-eyVVbA05.js} +22845 -25123
  61. package/dist/index-ugsWasKp.js +2202 -0
  62. package/dist/lib.cjs +1 -1
  63. package/dist/lib.js +5 -5
  64. package/dist/{page-viewer-Cv_WZY-t.js → page-viewer-P5Im9RfR.js} +11 -11
  65. package/dist/page-viewer-Xj9v8mji.cjs +1 -0
  66. package/dist/project-general-setting--5DT1RoW.cjs +1 -0
  67. package/dist/{project-general-setting-x6qqF0T8.js → project-general-setting-R3pVVXmY.js} +11 -10
  68. package/dist/project-seo-setting-3DzzF83_.cjs +1 -0
  69. package/dist/{project-seo-setting-Sl6AE-Q7.js → project-seo-setting-pGpm3-6U.js} +7 -7
  70. package/dist/render.cjs +1 -1
  71. package/dist/render.js +2 -2
  72. package/dist/{single-page-detail-sGbwXXs1.js → single-page-detail-m-THVQnz.js} +43 -42
  73. package/dist/single-page-detail-nJzGUDym.cjs +1 -0
  74. package/dist/studio.cjs +1 -1
  75. package/dist/studio.d.ts +13 -0
  76. package/dist/studio.js +7 -7
  77. package/dist/ui.cjs +1 -1
  78. package/dist/ui.d.ts +4 -4
  79. package/dist/ui.js +50 -50
  80. package/dist/useAddBlockByDrop-6qaL4Ufz.cjs +1 -0
  81. package/dist/useAddBlockByDrop-vGme3brY.js +20 -0
  82. package/dist/web-blocks.cjs +1 -1
  83. package/dist/web-blocks.js +4 -3
  84. package/package.json +1 -1
  85. package/dist/AddBlocks-FUKuRbn6.cjs +0 -1
  86. package/dist/BrandingOptions-tBWzqas5.cjs +0 -1
  87. package/dist/CurrentPage-g8aT56B2.cjs +0 -1
  88. package/dist/Layers-fEb6biiU.cjs +0 -1
  89. package/dist/MODIFIERS-2FeVfZQ9.cjs +0 -1
  90. package/dist/PagesPanel-ewHplHej.cjs +0 -1
  91. package/dist/ProjectPanel-pgpe3fyR.cjs +0 -1
  92. package/dist/Settings-zk2jUrHc.cjs +0 -1
  93. package/dist/SidePanels-MbJufIbe.js +0 -352
  94. package/dist/SidePanels-zXHw8T3P.cjs +0 -1
  95. package/dist/Topbar-iH2L4pe0.cjs +0 -1
  96. package/dist/Topbar-ryFhl-PC.js +0 -114
  97. package/dist/UploadImages-VBiO6lqp.cjs +0 -1
  98. package/dist/add-page-modal-myA0a2nW.cjs +0 -1
  99. package/dist/delete-page-modal-q4G_-zBl.cjs +0 -1
  100. package/dist/empty-slot-2LSrWJaY.cjs +0 -1
  101. package/dist/index-DT71IahS.cjs +0 -206
  102. package/dist/index-ERorPL9q.cjs +0 -1
  103. package/dist/page-viewer-z9Kn4i1K.cjs +0 -1
  104. package/dist/project-general-setting-ZiLidijs.cjs +0 -1
  105. package/dist/project-seo-setting-8oJUrOqk.cjs +0 -1
  106. package/dist/single-page-detail-cnwttu4D.cjs +0 -1
  107. package/dist/useAddBlockByDrop-LBgi6GL7.cjs +0 -1
  108. package/dist/useAddBlockByDrop-Y-g4O8UC.js +0 -20
@@ -5,13 +5,13 @@ import { g as ce, a as $s } from "./Functions-7jnEwJyw.js";
5
5
  import { getBlockComponent as Le } from "@chaibuilder/runtime";
6
6
  import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as _e } from "jotai";
7
7
  import Vt from "flat-to-nested";
8
- import { a as me, I as $t, S as Ke, B as Je } from "./MODIFIERS-RiXS5Mn1.js";
8
+ import { a as me, I as $t, S as Ke, B as Je } from "./MODIFIERS-WQdaNvb8.js";
9
9
  import { g as Fs } from "./_commonjsHelpers-UyOWmZb0.js";
10
10
  import { useThrottledCallback as Us } from "@react-hookz/web";
11
11
  import { j as a } from "./jsx-runtime-WbnYoNE9.js";
12
12
  import * as Ft from "@radix-ui/react-toggle";
13
13
  import { cva as ge } from "class-variance-authority";
14
- import { a as d, c as Ie } from "./Class-17XFhL48.js";
14
+ import { a as d, c as Ie } from "./Class-3k8xjeiM.js";
15
15
  import * as Ye from "@radix-ui/react-switch";
16
16
  import { Slot as Ws } from "@radix-ui/react-slot";
17
17
  import * as fe from "@radix-ui/react-accordion";
@@ -71,7 +71,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
71
71
  const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
72
72
  Nt(v.v, b);
73
73
  }
74
- }, p = (u, g, v) => {
74
+ }, f = (u, g, v) => {
75
75
  const b = /* @__PURE__ */ new Map();
76
76
  let y = !1;
77
77
  v.forEach((h, j) => {
@@ -82,7 +82,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
82
82
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
83
83
  v: g
84
84
  };
85
- if (v && p(u, y, v), b && Ne(b, y) && b.d === y.d)
85
+ if (v && f(u, y, v), b && Ne(b, y) && b.d === y.d)
86
86
  return b;
87
87
  if (b && he(b) && he(y) && to(b, y)) {
88
88
  if (b.d === y.d)
@@ -90,7 +90,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
90
90
  y.v = b.v;
91
91
  }
92
92
  return c(u, y), y;
93
- }, f = (u, g, v, b) => {
93
+ }, p = (u, g, v, b) => {
94
94
  if (eo(g)) {
95
95
  let y;
96
96
  const h = new Promise((j, E) => {
@@ -135,7 +135,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
135
135
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
136
136
  e: g
137
137
  };
138
- return v && p(u, y, v), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
138
+ return v && f(u, y, v), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
139
139
  }, N = (u) => {
140
140
  const g = r(u);
141
141
  if (g && (g.d.forEach((S, B) => {
@@ -174,7 +174,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
174
174
  };
175
175
  try {
176
176
  const S = u.read(y, E);
177
- return f(
177
+ return p(
178
178
  u,
179
179
  S,
180
180
  v,
@@ -228,7 +228,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
228
228
  if (j === u) {
229
229
  if (!Fe(j))
230
230
  throw new Error("atom not writable");
231
- const B = r(j), A = f(j, E[0]);
231
+ const B = r(j), A = p(j, E[0]);
232
232
  (!B || !Ne(B, A)) && G(j);
233
233
  } else
234
234
  S = H(j, ...E);
@@ -326,7 +326,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
326
326
  dev_get_mounted: (u) => t.get(u),
327
327
  dev_restore_atoms: (u) => {
328
328
  for (const [v, b] of u)
329
- Fe(v) && (f(v, b), G(v));
329
+ Fe(v) && (p(v, b), G(v));
330
330
  const g = ae();
331
331
  n.forEach(
332
332
  (v) => v({ type: "restore", flushed: g })
@@ -362,25 +362,25 @@ const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = tt.us
362
362
  function lo(e, t) {
363
363
  const s = Gt(t), [[o, n, i], r] = Ds(
364
364
  (l) => {
365
- const f = s.get(e);
366
- return Object.is(l[0], f) && l[1] === s && l[2] === e ? l : [f, s, e];
365
+ const p = s.get(e);
366
+ return Object.is(l[0], p) && l[1] === s && l[2] === e ? l : [p, s, e];
367
367
  },
368
368
  void 0,
369
369
  () => [s.get(e), s, e]
370
370
  );
371
371
  let c = o;
372
372
  (n !== s || i !== e) && (r(), c = s.get(e));
373
- const p = t == null ? void 0 : t.delay;
373
+ const f = t == null ? void 0 : t.delay;
374
374
  return Ce(() => {
375
375
  const l = s.sub(e, () => {
376
- if (typeof p == "number") {
377
- setTimeout(r, p);
376
+ if (typeof f == "number") {
377
+ setTimeout(r, f);
378
378
  return;
379
379
  }
380
380
  r();
381
381
  });
382
382
  return r(), l;
383
- }, [s, e, p]), Es(c), ro(c) ? io(c) : c;
383
+ }, [s, e, f]), Es(c), ro(c) ? io(c) : c;
384
384
  }
385
385
  function co(e, t) {
386
386
  const s = Gt(t);
@@ -410,16 +410,16 @@ function go(e, t) {
410
410
  return mo(
411
411
  () => {
412
412
  const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
413
- let p = s.get(r);
414
- if (p)
415
- return p;
416
- const l = c && s.get(c), f = [], x = [];
413
+ let f = s.get(r);
414
+ if (f)
415
+ return f;
416
+ const l = c && s.get(c), p = [], x = [];
417
417
  return r.forEach((N, k) => {
418
418
  const I = t ? t(N) : k;
419
419
  x[k] = I;
420
420
  const O = l && l.atomList[l.keyList.indexOf(I)];
421
421
  if (O) {
422
- f[k] = O;
422
+ p[k] = O;
423
423
  return;
424
424
  }
425
425
  const W = (H) => {
@@ -442,53 +442,53 @@ function go(e, t) {
442
442
  ...J.slice(re + 1)
443
443
  ]);
444
444
  };
445
- f[k] = Ct(e) ? oe(W, G) : oe(W);
446
- }), l && l.keyList.length === x.length && l.keyList.every((N, k) => N === x[k]) ? p = l : p = { arr: r, atomList: f, keyList: x }, s.set(r, p), p;
445
+ p[k] = Ct(e) ? oe(W, G) : oe(W);
446
+ }), l && l.keyList.length === x.length && l.keyList.every((N, k) => N === x[k]) ? f = l : f = { arr: r, atomList: p, keyList: x }, s.set(r, f), f;
447
447
  }, n = oe((r) => {
448
- const c = r(n), p = r(e);
449
- return o(p, c == null ? void 0 : c.arr);
448
+ const c = r(n), f = r(e);
449
+ return o(f, c == null ? void 0 : c.arr);
450
450
  });
451
451
  (at ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
452
452
  const i = Ct(e) ? oe(
453
453
  (r) => r(n).atomList,
454
- (r, c, p) => {
455
- switch (p.type) {
454
+ (r, c, f) => {
455
+ switch (f.type) {
456
456
  case "remove": {
457
- const l = r(i).indexOf(p.atom);
457
+ const l = r(i).indexOf(f.atom);
458
458
  if (l >= 0) {
459
- const f = r(e);
459
+ const p = r(e);
460
460
  c(e, [
461
- ...f.slice(0, l),
462
- ...f.slice(l + 1)
461
+ ...p.slice(0, l),
462
+ ...p.slice(l + 1)
463
463
  ]);
464
464
  }
465
465
  break;
466
466
  }
467
467
  case "insert": {
468
- const l = p.before ? r(i).indexOf(p.before) : r(i).length;
468
+ const l = f.before ? r(i).indexOf(f.before) : r(i).length;
469
469
  if (l >= 0) {
470
- const f = r(e);
470
+ const p = r(e);
471
471
  c(e, [
472
- ...f.slice(0, l),
473
- p.value,
474
- ...f.slice(l)
472
+ ...p.slice(0, l),
473
+ f.value,
474
+ ...p.slice(l)
475
475
  ]);
476
476
  }
477
477
  break;
478
478
  }
479
479
  case "move": {
480
- const l = r(i).indexOf(p.atom), f = p.before ? r(i).indexOf(p.before) : r(i).length;
481
- if (l >= 0 && f >= 0) {
480
+ const l = r(i).indexOf(f.atom), p = f.before ? r(i).indexOf(f.before) : r(i).length;
481
+ if (l >= 0 && p >= 0) {
482
482
  const x = r(e);
483
- l < f ? c(e, [
483
+ l < p ? c(e, [
484
484
  ...x.slice(0, l),
485
- ...x.slice(l + 1, f),
485
+ ...x.slice(l + 1, p),
486
486
  x[l],
487
- ...x.slice(f)
487
+ ...x.slice(p)
488
488
  ]) : c(e, [
489
- ...x.slice(0, f),
489
+ ...x.slice(0, p),
490
490
  x[l],
491
- ...x.slice(f, l),
491
+ ...x.slice(p, l),
492
492
  ...x.slice(l + 1)
493
493
  ]);
494
494
  }
@@ -529,18 +529,18 @@ function xo(e) {
529
529
  const o = {
530
530
  getItem: (n, i) => {
531
531
  var r, c;
532
- const p = (f) => {
533
- if (f = f || "", t !== f) {
532
+ const f = (p) => {
533
+ if (p = p || "", t !== p) {
534
534
  try {
535
- s = JSON.parse(f);
535
+ s = JSON.parse(p);
536
536
  } catch {
537
537
  return i;
538
538
  }
539
- t = f;
539
+ t = p;
540
540
  }
541
541
  return s;
542
542
  }, l = (c = (r = e()) == null ? void 0 : r.getItem(n)) != null ? c : null;
543
- return bo(l) ? l.then(p) : p(l);
543
+ return bo(l) ? l.then(f) : f(l);
544
544
  },
545
545
  setItem: (n, i) => {
546
546
  var r;
@@ -555,11 +555,11 @@ function xo(e) {
555
555
  if (!(e() instanceof window.Storage))
556
556
  return () => {
557
557
  };
558
- const c = (p) => {
559
- if (p.storageArea === e() && p.key === n) {
558
+ const c = (f) => {
559
+ if (f.storageArea === e() && f.key === n) {
560
560
  let l;
561
561
  try {
562
- l = JSON.parse(p.newValue || "");
562
+ l = JSON.parse(f.newValue || "");
563
563
  } catch {
564
564
  l = r;
565
565
  }
@@ -580,13 +580,13 @@ function Re(e, t, s = ho, o) {
580
580
  );
581
581
  return (at ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
582
582
  n || c(s.getItem(e, t));
583
- let p;
584
- return s.subscribe && (p = s.subscribe(e, c, t)), p;
583
+ let f;
584
+ return s.subscribe && (f = s.subscribe(e, c, t)), f;
585
585
  }, oe(
586
586
  (c) => c(i),
587
- (c, p, l) => {
588
- const f = typeof l == "function" ? l(c(i)) : l;
589
- return f === Ht ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((x) => (p(i, x), s.setItem(e, x))) : (p(i, f), s.setItem(e, f));
587
+ (c, f, l) => {
588
+ const p = typeof l == "function" ? l(c(i)) : l;
589
+ return p === Ht ? (f(i, t), s.removeItem(e)) : p instanceof Promise ? p.then((x) => (f(i, x), s.setItem(e, x))) : (f(i, p), s.setItem(e, p));
590
590
  }
591
591
  );
592
592
  }
@@ -651,10 +651,10 @@ const Jt = (e) => {
651
651
  M(e, { _parent: t }).length > 0 && n.push(ne(Kt(e, t, o._id)));
652
652
  const i = ne(n);
653
653
  return R(i, (r) => {
654
- const c = r, p = Jt(c);
655
- return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
656
- const f = te(i, { oldId: p[l].replace("slot:", "") });
657
- c[l] = `slot:${f._id}`;
654
+ const c = r, f = Jt(c);
655
+ return Object.keys(f).length > 0 && Object.keys(f).forEach((l) => {
656
+ const p = te(i, { oldId: f[l].replace("slot:", "") });
657
+ c[l] = `slot:${p._id}`;
658
658
  }), Oe(c, ["global", "oldId"]);
659
659
  });
660
660
  };
@@ -756,11 +756,11 @@ const $e = () => {
756
756
  properties: {}
757
757
  };
758
758
  return Object.keys(t).forEach((c) => {
759
- const p = t[c];
760
- if (q(["slot", "styles"], p.type))
759
+ const f = t[c];
760
+ if (q(["slot", "styles"], f.type))
761
761
  return;
762
762
  const l = c;
763
- o.properties[l] = _t(p);
763
+ o.properties[l] = _t(f);
764
764
  }), o;
765
765
  case "list":
766
766
  const { itemProperties: n, title: i } = e, r = {
@@ -772,11 +772,11 @@ const $e = () => {
772
772
  }
773
773
  };
774
774
  return Object.keys(n).forEach((c) => {
775
- const p = n[c];
776
- if (q(["slot", "styles"], p.type))
775
+ const f = n[c];
776
+ if (q(["slot", "styles"], f.type))
777
777
  return;
778
778
  const l = c;
779
- r.items.properties[l] = _t(p), Se(r.items, "title", F(p, "itemTitle", `${i} item`));
779
+ r.items.properties[l] = _t(f), Se(r.items, "title", F(f, "itemTitle", `${i} item`));
780
780
  }), r;
781
781
  default:
782
782
  return {};
@@ -827,8 +827,8 @@ var ut = { exports: {} }, Kr = ut.exports;
827
827
  }
828
828
  let s = function() {
829
829
  let o = [], n = -1, i = 0, r = !1, c;
830
- function p(l, f) {
831
- return !l || typeof l[f] != "function" ? this : (r = !0, l[f](), r = !1, this);
830
+ function f(l, p) {
831
+ return !l || typeof l[p] != "function" ? this : (r = !0, l[p](), r = !1, this);
832
832
  }
833
833
  return {
834
834
  /**
@@ -855,8 +855,8 @@ var ut = { exports: {} }, Kr = ut.exports;
855
855
  let l = o[n];
856
856
  if (!l)
857
857
  return this;
858
- const f = l.groupId;
859
- for (; l.groupId === f && (p(l, "undo"), n -= 1, l = o[n], !(!l || !l.groupId)); )
858
+ const p = l.groupId;
859
+ for (; l.groupId === p && (f(l, "undo"), n -= 1, l = o[n], !(!l || !l.groupId)); )
860
860
  ;
861
861
  return c && c(), this;
862
862
  },
@@ -867,8 +867,8 @@ var ut = { exports: {} }, Kr = ut.exports;
867
867
  let l = o[n + 1];
868
868
  if (!l)
869
869
  return this;
870
- const f = l.groupId;
871
- for (; l.groupId === f && (p(l, "redo"), n += 1, l = o[n + 1], !(!l || !l.groupId)); )
870
+ const p = l.groupId;
871
+ for (; l.groupId === p && (f(l, "redo"), n += 1, l = o[n + 1], !(!l || !l.groupId)); )
872
872
  ;
873
873
  return c && c(), this;
874
874
  },
@@ -899,7 +899,7 @@ var ut = { exports: {} }, Kr = ut.exports;
899
899
  * @returns {array}
900
900
  */
901
901
  getCommands: function(l) {
902
- return l ? o.filter((f) => f.groupId === l) : o;
902
+ return l ? o.filter((p) => p.groupId === l) : o;
903
903
  },
904
904
  /**
905
905
  * Returns the index of the actions list.
@@ -1004,15 +1004,15 @@ as.debugLabel = "dataProvidersAtom";
1004
1004
  const Wo = () => D(as), pt = w("SAVED");
1005
1005
  pt.debugLabel = "pageSyncStateAtom";
1006
1006
  const Yr = () => {
1007
- const [e, t] = D(pt), s = ke("onSaveBlocks", async () => {
1008
- }), o = ke("onSavePage", async () => {
1009
- }), n = ke("onSyncStatusChange", () => {
1007
+ const [e, t] = D(pt), s = ke("onSaveBlocks", async (f) => {
1008
+ }), o = ke("onSavePage", async (f) => {
1009
+ }), n = ke("onSyncStatusChange", (f) => {
1010
1010
  }), i = Uo(), [r] = Wo();
1011
1011
  return { savePage: Us(
1012
1012
  async () => {
1013
1013
  t("SAVING"), n("SAVING");
1014
- const p = i();
1015
- return await o({ blocks: p.blocks, providers: r }), setTimeout(() => {
1014
+ const f = i();
1015
+ return await o({ blocks: f.blocks, providers: r }), setTimeout(() => {
1016
1016
  t("SAVED"), n("SAVED");
1017
1017
  }, 100), !0;
1018
1018
  },
@@ -1053,13 +1053,13 @@ function Go(e, t, s, o) {
1053
1053
  s && (n = e.filter((c) => c._parent === s));
1054
1054
  const i = o !== void 0 ? o : n.length;
1055
1055
  let r = e.length;
1056
- for (let c = 0, p = 0; c < e.length; c++)
1056
+ for (let c = 0, f = 0; c < e.length; c++)
1057
1057
  if (e[c]._parent === s) {
1058
- if (p === i) {
1058
+ if (f === i) {
1059
1059
  r = c;
1060
1060
  break;
1061
1061
  }
1062
- p++;
1062
+ f++;
1063
1063
  }
1064
1064
  return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
1065
1065
  }
@@ -2262,7 +2262,7 @@ const Da = (e) => {
2262
2262
  }
2263
2263
  )
2264
2264
  ] });
2265
- }, Ea = tt.lazy(() => import("./UnsplashImages-ppQXZ28F.js")), Oa = tt.lazy(() => import("./UploadImages-IKR4oX2k.js")), ks = ({
2265
+ }, Ea = tt.lazy(() => import("./UnsplashImages-132gZ842.js")), Oa = tt.lazy(() => import("./UploadImages-tr54Ik1I.js")), ks = ({
2266
2266
  isModalView: e = !1,
2267
2267
  onSelect: t = () => {
2268
2268
  }
@@ -2343,7 +2343,7 @@ const Da = (e) => {
2343
2343
  }
2344
2344
  );
2345
2345
  }, Vi = ({ schema: e, formData: t, onChange: s }) => {
2346
- const [o, n] = Be([]), i = ke("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
2346
+ const [o, n] = Be([]), i = ke("getPages", () => []), { type: r = "page", href: c = "", target: f = "self" } = t;
2347
2347
  return Ce(() => {
2348
2348
  (async () => {
2349
2349
  const l = await i();
@@ -2386,9 +2386,9 @@ const Da = (e) => {
2386
2386
  "input",
2387
2387
  {
2388
2388
  type: "checkbox",
2389
- defaultChecked: p === "_blank",
2389
+ defaultChecked: f === "_blank",
2390
2390
  className: "cursor-pointer rounded-md border border-border",
2391
- onChange: () => s({ ...t, target: p === "_blank" ? "_self" : "_blank" })
2391
+ onChange: () => s({ ...t, target: f === "_blank" ? "_self" : "_blank" })
2392
2392
  }
2393
2393
  ),
2394
2394
  /* @__PURE__ */ a.jsx("span", { className: "pt-1 text-xs", children: "Open in new tab" })
@@ -2397,7 +2397,7 @@ const Da = (e) => {
2397
2397
  ] });
2398
2398
  }, $i = () => {
2399
2399
  const [e] = we(), [, t] = $e(), { addBlocks: s } = xe(), { toast: o } = bs(), n = L(
2400
- (r, c, p) => {
2400
+ (r, c, f) => {
2401
2401
  var k;
2402
2402
  for (let I = 0; I < r.length; I++) {
2403
2403
  const { _id: O } = r[I];
@@ -2407,19 +2407,19 @@ const Da = (e) => {
2407
2407
  W[G]._parent = r[I]._id;
2408
2408
  }
2409
2409
  const l = Q(r);
2410
- let f, x;
2411
- return c && (f = te(e, { _id: c }), r[0]._parent = c, x = c), !(f ? Qe(f._type, l._type) : !0) && f && (r[0]._parent = f._parent, x = f._parent), s(r, x, p), t([(k = Q(r)) == null ? void 0 : k._id]), Q(r);
2410
+ let p, x;
2411
+ return c && (p = te(e, { _id: c }), r[0]._parent = c, x = c), !(p ? Qe(p._type, l._type) : !0) && p && (r[0]._parent = p._parent, x = p._parent), s(r, x, f), t([(k = Q(r)) == null ? void 0 : k._id]), Q(r);
2412
2412
  },
2413
2413
  [e, t]
2414
2414
  );
2415
2415
  return { addCoreBlock: L(
2416
- (r, c, p) => {
2416
+ (r, c, f) => {
2417
2417
  if (pe(r, "blocks")) {
2418
2418
  const G = r.blocks;
2419
- return n(G, c, p);
2419
+ return n(G, c, f);
2420
2420
  }
2421
- const l = ce(), f = es(r.props), x = [];
2422
- Lt(f, (G, H) => {
2421
+ const l = ce(), p = es(r.props), x = [];
2422
+ Lt(p, (G, H) => {
2423
2423
  if (zt(G, Ke)) {
2424
2424
  const $ = G.replace(Ke, "");
2425
2425
  x.push({
@@ -2435,7 +2435,7 @@ const Da = (e) => {
2435
2435
  const N = {
2436
2436
  _type: r.type,
2437
2437
  _id: l,
2438
- ...f
2438
+ ...p
2439
2439
  };
2440
2440
  let k, I;
2441
2441
  if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !wo(k == null ? void 0 : k._type, r.type)) {
@@ -2448,7 +2448,7 @@ const Da = (e) => {
2448
2448
  }
2449
2449
  !(k ? Qe(k._type, r.type) : !0) && k && (N._parent = k._parent, I = k._parent);
2450
2450
  const W = [N, ...x];
2451
- return s(W, I, p), t([N._id]), N;
2451
+ return s(W, I, f), t([N._id]), N;
2452
2452
  },
2453
2453
  [n, e, t]
2454
2454
  ), addPredefinedBlock: n };
@@ -2493,18 +2493,18 @@ function za(e = "", t = "", s = []) {
2493
2493
  );
2494
2494
  const i = [], r = [];
2495
2495
  ue(s, (l) => {
2496
- const f = Ie(l), x = te(o, yt(f, ["dark", "mq", "mod", "property"]));
2496
+ const p = Ie(l), x = te(o, yt(p, ["dark", "mq", "mod", "property"]));
2497
2497
  if (x && (o = M(
2498
2498
  o,
2499
2499
  (N) => N.fullCls !== (x == null ? void 0 : x.fullCls)
2500
- )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.property)), La(o, f) === "baseClasses" && !q(Mt, f.property)) {
2501
- const N = te(n, yt(f, ["property"]));
2500
+ )), i.push(p), p.mq === "xs" && !p.dark && p.mod === "" && (n = M(n, (N) => N.property !== p.property)), La(o, p) === "baseClasses" && !q(Mt, p.property)) {
2501
+ const N = te(n, yt(p, ["property"]));
2502
2502
  x && (n = M(
2503
2503
  n,
2504
2504
  (k) => k.fullCls !== (N == null ? void 0 : N.fullCls)
2505
2505
  )), r.push({
2506
- ...f,
2507
- fullCls: f.cls,
2506
+ ...p,
2507
+ fullCls: p.cls,
2508
2508
  mq: "xs"
2509
2509
  });
2510
2510
  }
@@ -2532,10 +2532,10 @@ const Va = () => D(Te), $a = (e) => {
2532
2532
  )
2533
2533
  ), i = Q(e(Te));
2534
2534
  return R(n, (r) => {
2535
- const c = e(r), p = F(c, i.prop, `${me},`), { baseClasses: l, classes: f } = $a(p);
2535
+ const c = e(r), f = F(c, i.prop, `${me},`), { baseClasses: l, classes: p } = $a(f);
2536
2536
  return {
2537
2537
  ids: [c._id],
2538
- props: { [i.prop]: `${me}${za(f, l, o)}` }
2538
+ props: { [i.prop]: `${me}${za(p, l, o)}` }
2539
2539
  };
2540
2540
  });
2541
2541
  }), Fi = () => {
@@ -2586,11 +2586,11 @@ const Va = () => D(Te), $a = (e) => {
2586
2586
  ue(o, (r) => {
2587
2587
  const c = e.find((N) => N._id === r);
2588
2588
  n || (n = c._parent);
2589
- const f = M(
2589
+ const p = M(
2590
2590
  e,
2591
2591
  (N) => Et(n) ? N._parent === n : !c._parent
2592
2592
  ).indexOf(c) + 1, x = jo(e, r, n);
2593
- s(x, n, f), i.push(F(x, "0._id", ""));
2593
+ s(x, n, p), i.push(F(x, "0._id", ""));
2594
2594
  }), t(i);
2595
2595
  },
2596
2596
  [e, t]
@@ -2639,20 +2639,20 @@ const Va = () => D(Te), $a = (e) => {
2639
2639
  )
2640
2640
  );
2641
2641
  return R(i, (r) => {
2642
- const c = e(r), p = o;
2643
- let { classes: l, baseClasses: f } = yo(F(c, n.prop, "styles:,"));
2644
- return ue(p, (x) => {
2642
+ const c = e(r), f = o;
2643
+ let { classes: l, baseClasses: p } = yo(F(c, n.prop, "styles:,"));
2644
+ return ue(f, (x) => {
2645
2645
  const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2646
2646
  l = l.replace(N, " ").replace(/ +/g, " ").trim();
2647
2647
  const k = Q(x.split(":"));
2648
- q(["2xl", "xl", "lg", "md", "sm"], k) && p.push(x.split(":").pop().trim());
2649
- }), ue(p, (x) => {
2648
+ q(["2xl", "xl", "lg", "md", "sm"], k) && f.push(x.split(":").pop().trim());
2649
+ }), ue(f, (x) => {
2650
2650
  const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2651
- f = f.replace(N, " ").replace(/ +/g, " ").trim();
2651
+ p = p.replace(N, " ").replace(/ +/g, " ").trim();
2652
2652
  }), {
2653
2653
  ids: [c._id],
2654
2654
  props: {
2655
- [n.prop]: `${me}${f},${l}`
2655
+ [n.prop]: `${me}${p},${l}`
2656
2656
  }
2657
2657
  };
2658
2658
  });
@@ -2756,7 +2756,7 @@ const ir = w("");
2756
2756
  ir.debugLabel = "primaryLanguageAtom";
2757
2757
  const lr = w(null);
2758
2758
  lr.debugLabel = "canvasIframeAtom";
2759
- const cr = w("layers");
2759
+ const cr = w("outline");
2760
2760
  cr.debugLabel = "activePanelAtom";
2761
2761
  const dr = w("");
2762
2762
  dr.debugLabel = "showPredefinedBlockCategoryAtom";
@@ -2794,73 +2794,73 @@ const nl = () => X(Rs), pr = w(""), gr = w(null), al = () => D(pr), rl = () => D
2794
2794
  return [e, s];
2795
2795
  };
2796
2796
  export {
2797
- Qi as $,
2797
+ Xi as $,
2798
2798
  ei as A,
2799
2799
  Yo as B,
2800
- an as C,
2801
- rn as D,
2802
- cn as E,
2803
- dn as F,
2804
- ln as G,
2805
- mn as H,
2806
- nl as I,
2807
- sl as J,
2808
- $i as K,
2809
- Fi as L,
2810
- Ui as M,
2811
- Wi as N,
2812
- Gi as O,
2813
- dl as P,
2814
- zo as Q,
2815
- Ga as R,
2800
+ pt as C,
2801
+ Fr as D,
2802
+ we as E,
2803
+ Oo as F,
2804
+ qt as G,
2805
+ as as H,
2806
+ Ci as I,
2807
+ nl as J,
2808
+ sl as K,
2809
+ $i as L,
2810
+ Fi as M,
2811
+ Ui as N,
2812
+ Wi as O,
2813
+ Gi as P,
2814
+ dl as Q,
2815
+ zo as R,
2816
2816
  Bi as S,
2817
2817
  oi as T,
2818
- Hi as U,
2819
- Uo as V,
2820
- qi as W,
2821
- Ja as X,
2822
- Ki as Y,
2823
- Yi as Z,
2824
- Xi as _,
2825
- Vr as a,
2826
- ja as a$,
2827
- qr as a0,
2828
- Ua as a1,
2829
- cl as a2,
2830
- Zi as a3,
2831
- el as a4,
2832
- tl as a5,
2833
- Hr as a6,
2834
- ol as a7,
2835
- al as a8,
2836
- Yr as a9,
2837
- Jo as aA,
2838
- fi as aB,
2839
- pi as aC,
2840
- Un as aD,
2841
- wi as aE,
2842
- Ni as aF,
2843
- oa as aG,
2844
- ia as aH,
2845
- la as aI,
2846
- aa as aJ,
2847
- xe as aK,
2848
- mr as aL,
2849
- ur as aM,
2850
- ar as aN,
2851
- fr as aO,
2852
- Ur as aP,
2853
- Wr as aQ,
2854
- or as aR,
2855
- lr as aS,
2856
- ri as aT,
2857
- ii as aU,
2858
- Tn as aV,
2859
- Ns as aW,
2860
- va as aX,
2861
- ya as aY,
2862
- wa as aZ,
2863
- Na as a_,
2818
+ Ga as U,
2819
+ Hi as V,
2820
+ Uo as W,
2821
+ qi as X,
2822
+ Ja as Y,
2823
+ Ki as Z,
2824
+ Yi as _,
2825
+ ti as a,
2826
+ wa as a$,
2827
+ Qi as a0,
2828
+ qr as a1,
2829
+ Ua as a2,
2830
+ cl as a3,
2831
+ Zi as a4,
2832
+ el as a5,
2833
+ tl as a6,
2834
+ Hr as a7,
2835
+ ol as a8,
2836
+ al as a9,
2837
+ da as aA,
2838
+ An as aB,
2839
+ Jo as aC,
2840
+ fi as aD,
2841
+ pi as aE,
2842
+ Un as aF,
2843
+ wi as aG,
2844
+ Ni as aH,
2845
+ oa as aI,
2846
+ ia as aJ,
2847
+ la as aK,
2848
+ aa as aL,
2849
+ xe as aM,
2850
+ mr as aN,
2851
+ ur as aO,
2852
+ ar as aP,
2853
+ fr as aQ,
2854
+ Ur as aR,
2855
+ Wr as aS,
2856
+ or as aT,
2857
+ lr as aU,
2858
+ ri as aV,
2859
+ ii as aW,
2860
+ Tn as aX,
2861
+ Ns as aY,
2862
+ va as aZ,
2863
+ ya as a_,
2864
2864
  rl as aa,
2865
2865
  il as ab,
2866
2866
  Va as ac,
@@ -2875,30 +2875,30 @@ export {
2875
2875
  xi as al,
2876
2876
  Gn as am,
2877
2877
  qn as an,
2878
- cr as ao,
2879
- _n as ap,
2880
- fs as aq,
2881
- Ze as ar,
2882
- et as as,
2883
- bi as at,
2884
- Hn as au,
2885
- ni as av,
2886
- ai as aw,
2887
- Rn as ax,
2888
- da as ay,
2889
- An as az,
2890
- oe as b,
2878
+ fn as ao,
2879
+ ni as ap,
2880
+ ai as aq,
2881
+ Rn as ar,
2882
+ Zr as as,
2883
+ cr as at,
2884
+ _n as au,
2885
+ fs as av,
2886
+ Ze as aw,
2887
+ et as ax,
2888
+ bi as ay,
2889
+ Hn as az,
2890
+ an as b,
2891
2891
  ea as b$,
2892
- gn as b0,
2893
- fn as b1,
2894
- _t as b2,
2895
- Bt as b3,
2896
- zi as b4,
2897
- Ei as b5,
2898
- Li as b6,
2899
- Vi as b7,
2900
- Xr as b8,
2901
- Qo as b9,
2892
+ Na as b0,
2893
+ ja as b1,
2894
+ gn as b2,
2895
+ _t as b3,
2896
+ Bt as b4,
2897
+ zi as b5,
2898
+ Ei as b6,
2899
+ Li as b7,
2900
+ Vi as b8,
2901
+ Xr as b9,
2902
2902
  nn as bA,
2903
2903
  yn as bB,
2904
2904
  ms as bC,
@@ -2926,33 +2926,33 @@ export {
2926
2926
  Qn as bY,
2927
2927
  Xn as bZ,
2928
2928
  Zn as b_,
2929
- Xo as ba,
2930
- Zo as bb,
2931
- jn as bc,
2932
- si as bd,
2933
- sr as be,
2934
- Bn as bf,
2935
- hn as bg,
2936
- vn as bh,
2937
- wn as bi,
2938
- Nn as bj,
2939
- Cn as bk,
2940
- kn as bl,
2941
- tn as bm,
2942
- sn as bn,
2943
- dr as bo,
2944
- _a as bp,
2945
- Ba as bq,
2946
- Ri as br,
2947
- Ti as bs,
2948
- Jr as bt,
2949
- Gr as bu,
2950
- Ko as bv,
2951
- qo as bw,
2952
- bt as bx,
2953
- on as by,
2954
- Zr as bz,
2955
- so as c,
2929
+ Qo as ba,
2930
+ Xo as bb,
2931
+ Zo as bc,
2932
+ jn as bd,
2933
+ si as be,
2934
+ sr as bf,
2935
+ Bn as bg,
2936
+ hn as bh,
2937
+ vn as bi,
2938
+ wn as bj,
2939
+ Nn as bk,
2940
+ Cn as bl,
2941
+ kn as bm,
2942
+ tn as bn,
2943
+ sn as bo,
2944
+ dr as bp,
2945
+ _a as bq,
2946
+ Ba as br,
2947
+ Ri as bs,
2948
+ Ti as bt,
2949
+ Jr as bu,
2950
+ Gr as bv,
2951
+ Ko as bw,
2952
+ qo as bx,
2953
+ bt as by,
2954
+ on as bz,
2955
+ rn as c,
2956
2956
  na as c0,
2957
2957
  ra as c1,
2958
2958
  ca as c2,
@@ -2980,27 +2980,27 @@ export {
2980
2980
  Aa as co,
2981
2981
  Di as cp,
2982
2982
  Oi as cq,
2983
- co as d,
2984
- lo as e,
2985
- Re as f,
2986
- $r as g,
2987
- Ji as h,
2988
- ke as i,
2989
- $e as j,
2990
- Qr as k,
2991
- Ha as l,
2992
- rs as m,
2993
- vo as n,
2994
- Wo as o,
2995
- ie as p,
2996
- pt as q,
2997
- Fr as r,
2998
- we as s,
2999
- Oo as t,
3000
- Gt as u,
3001
- ll as v,
3002
- qt as w,
3003
- as as x,
3004
- Ci as y,
3005
- ti as z
2983
+ cn as d,
2984
+ dn as e,
2985
+ ln as f,
2986
+ mn as g,
2987
+ ke as h,
2988
+ Gt as i,
2989
+ Vr as j,
2990
+ so as k,
2991
+ oe as l,
2992
+ co as m,
2993
+ lo as n,
2994
+ Re as o,
2995
+ $r as p,
2996
+ Ji as q,
2997
+ $e as r,
2998
+ Qr as s,
2999
+ Ha as t,
3000
+ ll as u,
3001
+ rs as v,
3002
+ ie as w,
3003
+ vo as x,
3004
+ Wo as y,
3005
+ Yr as z
3006
3006
  };