@grapesjs/studio-sdk-plugins 1.0.28 → 1.0.29

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 (50) hide show
  1. package/dist/canvasAbsoluteMode/index.cjs.js +1 -1
  2. package/dist/canvasAbsoluteMode/index.es.js +98 -97
  3. package/dist/canvasAbsoluteMode/index.umd.js +1 -1
  4. package/dist/canvasFullSize/index.cjs.js +8 -7
  5. package/dist/canvasFullSize/index.es.js +145 -138
  6. package/dist/canvasFullSize/index.umd.js +9 -8
  7. package/dist/canvasFullSize/typesSchema.d.ts +5 -0
  8. package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
  9. package/dist/googleFontsAssetProvider/index.es.js +11 -11
  10. package/dist/googleFontsAssetProvider/index.umd.js +1 -1
  11. package/dist/iconifyComponent/index.cjs.js +2 -2
  12. package/dist/iconifyComponent/index.es.js +13 -13
  13. package/dist/iconifyComponent/index.umd.js +2 -2
  14. package/dist/index.cjs.d.ts +1 -0
  15. package/dist/index.cjs.js +192 -95
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.es.d.ts +1 -0
  18. package/dist/index.es.js +7577 -7242
  19. package/dist/index.umd.js +192 -95
  20. package/dist/layoutSidebarButtons/index.cjs.js +1 -1
  21. package/dist/layoutSidebarButtons/index.es.js +156 -154
  22. package/dist/layoutSidebarButtons/index.umd.js +1 -1
  23. package/dist/presetPrintable/index.cjs.js +4 -4
  24. package/dist/presetPrintable/index.es.js +59 -59
  25. package/dist/presetPrintable/index.umd.js +1 -1
  26. package/dist/prosemirror/index.cjs.js +5 -5
  27. package/dist/prosemirror/index.es.js +100 -100
  28. package/dist/prosemirror/index.umd.js +1 -1
  29. package/dist/rteTinyMce/index.cjs.js +2 -2
  30. package/dist/rteTinyMce/index.es.js +10 -10
  31. package/dist/rteTinyMce/index.umd.js +1 -1
  32. package/dist/shapeDividerComponent/index.cjs.d.ts +3 -0
  33. package/dist/shapeDividerComponent/index.cjs.js +97 -0
  34. package/dist/shapeDividerComponent/index.d.ts +3 -0
  35. package/dist/shapeDividerComponent/index.es.d.ts +3 -0
  36. package/dist/shapeDividerComponent/index.es.js +427 -0
  37. package/dist/shapeDividerComponent/index.umd.js +97 -0
  38. package/dist/shapeDividerComponent/shared.d.ts +3 -0
  39. package/dist/shapeDividerComponent/types.d.ts +10 -0
  40. package/dist/shapeDividerComponent/typesSchema.d.ts +9 -0
  41. package/dist/swiperComponent/index.cjs.js +9 -9
  42. package/dist/swiperComponent/index.es.js +130 -122
  43. package/dist/swiperComponent/index.umd.js +5 -5
  44. package/dist/tableComponent/index.cjs.js +1 -1
  45. package/dist/tableComponent/index.es.js +9 -9
  46. package/dist/tableComponent/index.umd.js +1 -1
  47. package/dist/youtubeAssetProvider/index.cjs.js +1 -1
  48. package/dist/youtubeAssetProvider/index.es.js +34 -34
  49. package/dist/youtubeAssetProvider/index.umd.js +1 -1
  50. package/package.json +2 -2
@@ -1791,7 +1791,7 @@ function us(n, e) {
1791
1791
  t[r] = new ol(n, r, e[r]);
1792
1792
  return t;
1793
1793
  }
1794
- let Vr = class ps {
1794
+ let Pr = class ps {
1795
1795
  /**
1796
1796
  @internal
1797
1797
  */
@@ -2050,7 +2050,7 @@ class ll {
2050
2050
  let t = this.spec = {};
2051
2051
  for (let i in e)
2052
2052
  t[i] = e[i];
2053
- t.nodes = B.from(e.nodes), t.marks = B.from(e.marks || {}), this.nodes = Vr.compile(this.spec.nodes, this), this.marks = pn.compile(this.spec.marks, this);
2053
+ t.nodes = B.from(e.nodes), t.marks = B.from(e.marks || {}), this.nodes = Pr.compile(this.spec.nodes, this), this.marks = pn.compile(this.spec.marks, this);
2054
2054
  let r = /* @__PURE__ */ Object.create(null);
2055
2055
  for (let i in this.nodes) {
2056
2056
  if (i in this.marks)
@@ -2063,11 +2063,11 @@ class ll {
2063
2063
  throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
2064
2064
  this.linebreakReplacement = s;
2065
2065
  }
2066
- s.markSet = l == "_" ? null : l ? Pr(this, l.split(" ")) : l == "" || !s.inlineContent ? [] : null;
2066
+ s.markSet = l == "_" ? null : l ? Vr(this, l.split(" ")) : l == "" || !s.inlineContent ? [] : null;
2067
2067
  }
2068
2068
  for (let i in this.marks) {
2069
2069
  let s = this.marks[i], o = s.spec.excludes;
2070
- s.excluded = o == null ? [s] : o == "" ? [] : Pr(this, o.split(" "));
2070
+ s.excluded = o == null ? [s] : o == "" ? [] : Vr(this, o.split(" "));
2071
2071
  }
2072
2072
  this.nodeFromJSON = this.nodeFromJSON.bind(this), this.markFromJSON = this.markFromJSON.bind(this), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
2073
2073
  }
@@ -2080,7 +2080,7 @@ class ll {
2080
2080
  node(e, t = null, r, i) {
2081
2081
  if (typeof e == "string")
2082
2082
  e = this.nodeType(e);
2083
- else if (e instanceof Vr) {
2083
+ else if (e instanceof Pr) {
2084
2084
  if (e.schema != this)
2085
2085
  throw new RangeError("Node type from different schema used (" + e.name + ")");
2086
2086
  } else throw new RangeError("Invalid node type: " + e);
@@ -2124,7 +2124,7 @@ class ll {
2124
2124
  return t;
2125
2125
  }
2126
2126
  }
2127
- function Pr(n, e) {
2127
+ function Vr(n, e) {
2128
2128
  let t = [];
2129
2129
  for (let r = 0; r < e.length; r++) {
2130
2130
  let i = e[r], s = n.marks[i], o = s;
@@ -3898,7 +3898,7 @@ function zl(n, e, t) {
3898
3898
  function Bl(n) {
3899
3899
  return n.spec.defining || n.spec.definingForContent;
3900
3900
  }
3901
- function Vl(n, e, t, r) {
3901
+ function Pl(n, e, t, r) {
3902
3902
  if (!r.size)
3903
3903
  return n.deleteRange(e, t);
3904
3904
  let i = n.doc.resolve(e), s = n.doc.resolve(t);
@@ -3956,7 +3956,7 @@ function Ts(n, e, t, r, i) {
3956
3956
  }
3957
3957
  return n;
3958
3958
  }
3959
- function Pl(n, e, t, r) {
3959
+ function Vl(n, e, t, r) {
3960
3960
  if (!r.isInline && e == t && n.doc.resolve(e).parent.content.size) {
3961
3961
  let i = Rl(n.doc, e, r.type);
3962
3962
  i != null && (e = t = i);
@@ -4159,7 +4159,7 @@ class Ds {
4159
4159
  control over what happens.
4160
4160
  */
4161
4161
  replaceRange(e, t, r) {
4162
- return Vl(this, e, t, r), this;
4162
+ return Pl(this, e, t, r), this;
4163
4163
  }
4164
4164
  /**
4165
4165
  Replace the given range with a node, but use `from` and `to` as
@@ -4171,7 +4171,7 @@ class Ds {
4171
4171
  that parent node.
4172
4172
  */
4173
4173
  replaceRangeWith(e, t, r) {
4174
- return Pl(this, e, t, r), this;
4174
+ return Vl(this, e, t, r), this;
4175
4175
  }
4176
4176
  /**
4177
4177
  Delete the given range, expanding it to cover fully covered
@@ -5221,7 +5221,7 @@ function gr(n) {
5221
5221
  }
5222
5222
  return null;
5223
5223
  }
5224
- const Vs = (n, e) => {
5224
+ const Ps = (n, e) => {
5225
5225
  let { $head: t, $anchor: r } = n.selection;
5226
5226
  if (!t.parent.type.spec.code || !t.sameParent(r))
5227
5227
  return !1;
@@ -5245,7 +5245,7 @@ const Vs = (n, e) => {
5245
5245
  l.setSelection(C.create(l.doc, o + 1)), e(l.scrollIntoView());
5246
5246
  }
5247
5247
  return !0;
5248
- }, Ps = (n, e) => {
5248
+ }, Vs = (n, e) => {
5249
5249
  let { $cursor: t } = n.selection;
5250
5250
  if (!t || t.parent.content.size)
5251
5251
  return !1;
@@ -5384,7 +5384,7 @@ function ta(n, e, t, r) {
5384
5384
  }
5385
5385
  return !1;
5386
5386
  }
5387
- function Ve(n, e = null, t) {
5387
+ function Pe(n, e = null, t) {
5388
5388
  let r = t !== !1;
5389
5389
  return function(i, s) {
5390
5390
  let { empty: o, $cursor: l, ranges: a } = i.selection;
@@ -5420,8 +5420,8 @@ function At(...n) {
5420
5420
  }
5421
5421
  let En = At(vs, Jl, ql), Zr = At(vs, jl, Ul);
5422
5422
  const ge = {
5423
- Enter: At(Gl, _l, Ps, Xl),
5424
- "Mod-Enter": Vs,
5423
+ Enter: At(Gl, _l, Vs, Xl),
5424
+ "Mod-Enter": Ps,
5425
5425
  Backspace: En,
5426
5426
  "Mod-Backspace": En,
5427
5427
  "Shift-Backspace": En,
@@ -5857,10 +5857,10 @@ var ve = {
5857
5857
  221: "}",
5858
5858
  222: '"'
5859
5859
  }, ua = typeof navigator < "u" && /Mac/.test(navigator.platform), pa = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
5860
- for (var V = 0; V < 10; V++) ve[48 + V] = ve[96 + V] = String(V);
5861
- for (var V = 1; V <= 24; V++) ve[V + 111] = "F" + V;
5862
- for (var V = 65; V <= 90; V++)
5863
- ve[V] = String.fromCharCode(V + 32), on[V] = String.fromCharCode(V);
5860
+ for (var P = 0; P < 10; P++) ve[48 + P] = ve[96 + P] = String(P);
5861
+ for (var P = 1; P <= 24; P++) ve[P + 111] = "F" + P;
5862
+ for (var P = 65; P <= 90; P++)
5863
+ ve[P] = String.fromCharCode(P + 32), on[P] = String.fromCharCode(P);
5864
5864
  for (var vn in ve) on.hasOwnProperty(vn) || (on[vn] = ve[vn]);
5865
5865
  function ma(n) {
5866
5866
  var e = ua && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || pa && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? on : ve)[n.keyCode] || n.key || "Unidentified";
@@ -6026,7 +6026,7 @@ function wa(n) {
6026
6026
  return !0;
6027
6027
  };
6028
6028
  }
6029
- const P = function(n) {
6029
+ const V = function(n) {
6030
6030
  for (var e = 0; ; e++)
6031
6031
  if (n = n.previousSibling, !n)
6032
6032
  return e;
@@ -6051,7 +6051,7 @@ function ni(n, e, t, r, i) {
6051
6051
  let s = n.parentNode;
6052
6052
  if (!s || s.nodeType != 1 || zt(n) || Oa.test(n.nodeName) || n.contentEditable == "false")
6053
6053
  return !1;
6054
- e = P(n) + (i < 0 ? 0 : 1), n = s;
6054
+ e = V(n) + (i < 0 ? 0 : 1), n = s;
6055
6055
  } else if (n.nodeType == 1) {
6056
6056
  if (n = n.childNodes[e + (i < 0 ? -1 : 0)], n.contentEditable == "false")
6057
6057
  return !1;
@@ -6072,7 +6072,7 @@ function Na(n, e) {
6072
6072
  return null;
6073
6073
  n = n.childNodes[e - 1], e = te(n);
6074
6074
  } else if (n.parentNode && !zt(n))
6075
- e = P(n), n = n.parentNode;
6075
+ e = V(n), n = n.parentNode;
6076
6076
  else
6077
6077
  return null;
6078
6078
  }
@@ -6086,7 +6086,7 @@ function Ta(n, e) {
6086
6086
  return null;
6087
6087
  n = n.childNodes[e], e = 0;
6088
6088
  } else if (n.parentNode && !zt(n))
6089
- e = P(n) + 1, n = n.parentNode;
6089
+ e = V(n) + 1, n = n.parentNode;
6090
6090
  else
6091
6091
  return null;
6092
6092
  }
@@ -6095,7 +6095,7 @@ function Aa(n, e, t) {
6095
6095
  for (let r = e == 0, i = e == te(n); r || i; ) {
6096
6096
  if (n == t)
6097
6097
  return !0;
6098
- let s = P(n);
6098
+ let s = V(n);
6099
6099
  if (n = n.parentNode, !n)
6100
6100
  return !1;
6101
6101
  r = r && s == 0, i = i && s == te(n);
@@ -6110,7 +6110,7 @@ function zt(n) {
6110
6110
  const bn = function(n) {
6111
6111
  return n.focusNode && _e(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
6112
6112
  };
6113
- function Pe(n, e) {
6113
+ function Ve(n, e) {
6114
6114
  let t = document.createEvent("Event");
6115
6115
  return t.initEvent("keydown", !0, !0), t.keyCode = n, t.key = t.code = e, t;
6116
6116
  }
@@ -6202,7 +6202,7 @@ function _s(n) {
6202
6202
  ;
6203
6203
  return e;
6204
6204
  }
6205
- function Va({ refDOM: n, refTop: e, stack: t }) {
6205
+ function Pa({ refDOM: n, refTop: e, stack: t }) {
6206
6206
  let r = n ? n.getBoundingClientRect().top : 0;
6207
6207
  Xs(t, r == 0 ? 0 : r - e);
6208
6208
  }
@@ -6213,7 +6213,7 @@ function Xs(n, e) {
6213
6213
  }
6214
6214
  }
6215
6215
  let Ze = null;
6216
- function Pa(n) {
6216
+ function Va(n) {
6217
6217
  if (n.setActive)
6218
6218
  return n.setActive();
6219
6219
  if (Ze)
@@ -6370,14 +6370,14 @@ function Qs(n, e, t) {
6370
6370
  if (s == null && i && (t < 0 || i == te(r))) {
6371
6371
  let a = r.childNodes[i - 1];
6372
6372
  if (a.nodeType == 1)
6373
- return Vn(a.getBoundingClientRect(), !1);
6373
+ return Pn(a.getBoundingClientRect(), !1);
6374
6374
  }
6375
6375
  if (s == null && i < te(r)) {
6376
6376
  let a = r.childNodes[i];
6377
6377
  if (a.nodeType == 1)
6378
- return Vn(a.getBoundingClientRect(), !0);
6378
+ return Pn(a.getBoundingClientRect(), !0);
6379
6379
  }
6380
- return Vn(r.getBoundingClientRect(), t >= 0);
6380
+ return Pn(r.getBoundingClientRect(), t >= 0);
6381
6381
  }
6382
6382
  if (s == null && i && (t < 0 || i == te(r))) {
6383
6383
  let a = r.childNodes[i - 1], c = a.nodeType == 3 ? me(a, te(a) - (o ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
@@ -6400,7 +6400,7 @@ function pt(n, e) {
6400
6400
  let t = e ? n.left : n.right;
6401
6401
  return { top: n.top, bottom: n.bottom, left: t, right: t };
6402
6402
  }
6403
- function Vn(n, e) {
6403
+ function Pn(n, e) {
6404
6404
  if (n.height == 0)
6405
6405
  return n;
6406
6406
  let t = e ? n.top : n.bottom;
@@ -6469,7 +6469,7 @@ function Ua(n, e, t) {
6469
6469
  return oi == e && li == t ? ai : (oi = e, li = t, ai = t == "up" || t == "down" ? qa(n, e, t) : ja(n, e, t));
6470
6470
  }
6471
6471
  const ne = 0, ci = 1, Fe = 2, ce = 3;
6472
- class Vt {
6472
+ class Pt {
6473
6473
  constructor(e, t, r, i) {
6474
6474
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = ne, r.pmViewDesc = this;
6475
6475
  }
@@ -6564,7 +6564,7 @@ class Vt {
6564
6564
  }
6565
6565
  let i;
6566
6566
  if (e == this.dom && this.contentDOM)
6567
- i = t > P(this.contentDOM);
6567
+ i = t > V(this.contentDOM);
6568
6568
  else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
6569
6569
  i = e.compareDocumentPosition(this.contentDOM) & 2;
6570
6570
  else if (this.dom.firstChild) {
@@ -6648,12 +6648,12 @@ class Vt {
6648
6648
  let s, o = !0;
6649
6649
  for (; s = r ? this.children[r - 1] : null, !(!s || s.dom.parentNode == this.contentDOM); r--, o = !1)
6650
6650
  ;
6651
- return s && t && o && !s.border && !s.domAtom ? s.domFromPos(s.size, t) : { node: this.contentDOM, offset: s ? P(s.dom) + 1 : 0 };
6651
+ return s && t && o && !s.border && !s.domAtom ? s.domFromPos(s.size, t) : { node: this.contentDOM, offset: s ? V(s.dom) + 1 : 0 };
6652
6652
  } else {
6653
6653
  let s, o = !0;
6654
6654
  for (; s = r < this.children.length ? this.children[r] : null, !(!s || s.dom.parentNode == this.contentDOM); r++, o = !1)
6655
6655
  ;
6656
- return s && o && !s.border && !s.domAtom ? s.domFromPos(0, t) : { node: this.contentDOM, offset: s ? P(s.dom) : this.contentDOM.childNodes.length };
6656
+ return s && o && !s.border && !s.domAtom ? s.domFromPos(0, t) : { node: this.contentDOM, offset: s ? V(s.dom) : this.contentDOM.childNodes.length };
6657
6657
  }
6658
6658
  }
6659
6659
  // Used to find a DOM range in a single parent for a given changed
@@ -6672,7 +6672,7 @@ class Vt {
6672
6672
  for (let h = l; h > 0; h--) {
6673
6673
  let d = this.children[h - 1];
6674
6674
  if (d.size && d.dom.parentNode == this.contentDOM && !d.emptyChildAt(1)) {
6675
- i = P(d.dom) + 1;
6675
+ i = V(d.dom) + 1;
6676
6676
  break;
6677
6677
  }
6678
6678
  e -= d.size;
@@ -6684,7 +6684,7 @@ class Vt {
6684
6684
  for (let f = l + 1; f < this.children.length; f++) {
6685
6685
  let h = this.children[f];
6686
6686
  if (h.size && h.dom.parentNode == this.contentDOM && !h.emptyChildAt(-1)) {
6687
- s = P(h.dom);
6687
+ s = V(h.dom);
6688
6688
  break;
6689
6689
  }
6690
6690
  t += h.size;
@@ -6729,7 +6729,7 @@ class Vt {
6729
6729
  `), h && p == u.nodeValue.length)
6730
6730
  for (let m = u, g; m; m = m.parentNode) {
6731
6731
  if (g = m.nextSibling) {
6732
- g.nodeName == "BR" && (l = a = { node: g.parentNode, offset: P(g) + 1 });
6732
+ g.nodeName == "BR" && (l = a = { node: g.parentNode, offset: V(g) + 1 });
6733
6733
  break;
6734
6734
  }
6735
6735
  let b = m.pmViewDesc;
@@ -6804,7 +6804,7 @@ class Vt {
6804
6804
  return !1;
6805
6805
  }
6806
6806
  }
6807
- class to extends Vt {
6807
+ class to extends Pt {
6808
6808
  constructor(e, t, r, i) {
6809
6809
  let s, o = t.type.toDOM;
6810
6810
  if (typeof o == "function" && (o = o(r, () => {
@@ -6844,7 +6844,7 @@ class to extends Vt {
6844
6844
  return this.widget.type.side;
6845
6845
  }
6846
6846
  }
6847
- class Ga extends Vt {
6847
+ class Ga extends Pt {
6848
6848
  constructor(e, t, r, i) {
6849
6849
  super(e, [], t, null), this.textDOM = r, this.text = i;
6850
6850
  }
@@ -6861,7 +6861,7 @@ class Ga extends Vt {
6861
6861
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
6862
6862
  }
6863
6863
  }
6864
- class Xe extends Vt {
6864
+ class Xe extends Pt {
6865
6865
  constructor(e, t, r, i, s) {
6866
6866
  super(e, [], r, i), this.mark = t, this.spec = s;
6867
6867
  }
@@ -6897,7 +6897,7 @@ class Xe extends Vt {
6897
6897
  this.spec.destroy && this.spec.destroy(), super.destroy();
6898
6898
  }
6899
6899
  }
6900
- class Re extends Vt {
6900
+ class Re extends Pt {
6901
6901
  constructor(e, t, r, i, s, o, l, a, c) {
6902
6902
  super(e, [], s, o), this.node = t, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = l;
6903
6903
  }
@@ -7071,7 +7071,7 @@ class xn extends Re {
7071
7071
  return this.node.text == e;
7072
7072
  }
7073
7073
  }
7074
- class no extends Vt {
7074
+ class no extends Pt {
7075
7075
  parseRule() {
7076
7076
  return { ignore: !0 };
7077
7077
  }
@@ -7540,15 +7540,15 @@ const di = J || $ && Gs < 63;
7540
7540
  function ui(n, e) {
7541
7541
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
7542
7542
  if (J && i && i.contentEditable == "false")
7543
- return Pn(i);
7543
+ return Vn(i);
7544
7544
  if ((!i || i.contentEditable == "false") && (!s || s.contentEditable == "false")) {
7545
7545
  if (i)
7546
- return Pn(i);
7546
+ return Vn(i);
7547
7547
  if (s)
7548
- return Pn(s);
7548
+ return Vn(s);
7549
7549
  }
7550
7550
  }
7551
- function Pn(n) {
7551
+ function Vn(n) {
7552
7552
  return n.contentEditable = "true", J && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
7553
7553
  }
7554
7554
  function pi(n) {
@@ -7569,7 +7569,7 @@ function ic(n) {
7569
7569
  if (!e)
7570
7570
  return;
7571
7571
  let r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
7572
- i ? t.setStart(r.parentNode, P(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && U && Ee <= 11 && (r.disabled = !0, r.disabled = !1);
7572
+ i ? t.setStart(r.parentNode, V(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && U && Ee <= 11 && (r.disabled = !0, r.disabled = !1);
7573
7573
  }
7574
7574
  function lo(n, e) {
7575
7575
  if (e instanceof k) {
@@ -7672,7 +7672,7 @@ function oc(n) {
7672
7672
  {
7673
7673
  let l = t.previousSibling;
7674
7674
  for (; l && Mt(l, -1); )
7675
- i = t.parentNode, s = P(l), l = l.previousSibling;
7675
+ i = t.parentNode, s = V(l), l = l.previousSibling;
7676
7676
  if (l)
7677
7677
  t = l, r = an(t);
7678
7678
  else {
@@ -7704,7 +7704,7 @@ function lc(n) {
7704
7704
  {
7705
7705
  let l = t.nextSibling;
7706
7706
  for (; l && Mt(l, 1); )
7707
- s = l.parentNode, o = P(l) + 1, l = l.nextSibling;
7707
+ s = l.parentNode, o = V(l) + 1, l = l.nextSibling;
7708
7708
  if (l)
7709
7709
  t = l, r = 0, i = an(t);
7710
7710
  else {
@@ -7722,7 +7722,7 @@ function co(n) {
7722
7722
  }
7723
7723
  function ac(n, e) {
7724
7724
  for (; n && e == n.childNodes.length && !zt(n); )
7725
- e = P(n) + 1, n = n.parentNode;
7725
+ e = V(n) + 1, n = n.parentNode;
7726
7726
  for (; n && e < n.childNodes.length; ) {
7727
7727
  let t = n.childNodes[e];
7728
7728
  if (t.nodeType == 3)
@@ -7734,7 +7734,7 @@ function ac(n, e) {
7734
7734
  }
7735
7735
  function cc(n, e) {
7736
7736
  for (; n && !e && !zt(n); )
7737
- e = P(n), n = n.parentNode;
7737
+ e = V(n), n = n.parentNode;
7738
7738
  for (; n && e; ) {
7739
7739
  let t = n.childNodes[e - 1];
7740
7740
  if (t.nodeType == 3)
@@ -8096,7 +8096,7 @@ K.keydown = (n, e) => {
8096
8096
  if (t.keyCode != 229 && n.domObserver.forceFlush(), ht && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
8097
8097
  let r = Date.now();
8098
8098
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
8099
- n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, Pe(13, "Enter"))), n.input.lastIOSEnter = 0);
8099
+ n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, Ve(13, "Enter"))), n.input.lastIOSEnter = 0);
8100
8100
  }, 200);
8101
8101
  } else n.someProp("handleKeyDown", (r) => r(n, t)) || dc(n, t) ? t.preventDefault() : De(n, "key");
8102
8102
  };
@@ -8322,7 +8322,7 @@ function cn(n, e = !1) {
8322
8322
  return !1;
8323
8323
  }
8324
8324
  }
8325
- function Vc(n, e) {
8325
+ function Pc(n, e) {
8326
8326
  if (!n.dom.parentNode)
8327
8327
  return;
8328
8328
  let t = n.dom.parentNode.appendChild(document.createElement("div"));
@@ -8338,9 +8338,9 @@ q.copy = K.cut = (n, e) => {
8338
8338
  if (r.empty)
8339
8339
  return;
8340
8340
  let s = Et ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = fo(n, o);
8341
- s ? (t.preventDefault(), s.clearData(), s.setData("text/html", l.innerHTML), s.setData("text/plain", a)) : Vc(n, l), i && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
8341
+ s ? (t.preventDefault(), s.clearData(), s.setData("text/html", l.innerHTML), s.setData("text/plain", a)) : Pc(n, l), i && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
8342
8342
  };
8343
- function Pc(n) {
8343
+ function Vc(n) {
8344
8344
  return n.openStart == 0 && n.openEnd == 0 && n.content.childCount == 1 ? n.content.firstChild : null;
8345
8345
  }
8346
8346
  function Fc(n, e) {
@@ -8359,7 +8359,7 @@ function Rt(n, e, t, r, i) {
8359
8359
  return !0;
8360
8360
  if (!s)
8361
8361
  return !1;
8362
- let o = Pc(s), l = o ? n.state.tr.replaceSelectionWith(o, r) : n.state.tr.replaceSelection(s);
8362
+ let o = Vc(s), l = o ? n.state.tr.replaceSelectionWith(o, r) : n.state.tr.replaceSelection(s);
8363
8363
  return n.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
8364
8364
  }
8365
8365
  function Co(n) {
@@ -8457,7 +8457,7 @@ q.beforeinput = (n, e) => {
8457
8457
  n.domObserver.flushSoon();
8458
8458
  let { domChangeCount: r } = n.input;
8459
8459
  setTimeout(() => {
8460
- if (n.input.domChangeCount != r || (n.dom.blur(), n.focus(), n.someProp("handleKeyDown", (s) => s(n, Pe(8, "Backspace")))))
8460
+ if (n.input.domChangeCount != r || (n.dom.blur(), n.focus(), n.someProp("handleKeyDown", (s) => s(n, Ve(8, "Backspace")))))
8461
8461
  return;
8462
8462
  let { $cursor: i } = n.state.selection;
8463
8463
  i && i.pos > 0 && n.dispatch(n.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
@@ -9125,7 +9125,7 @@ class qc {
9125
9125
  let { previousSibling: h, nextSibling: d } = e.addedNodes[f];
9126
9126
  (!h || Array.prototype.indexOf.call(e.addedNodes, h) < 0) && (i = h), (!d || Array.prototype.indexOf.call(e.addedNodes, d) < 0) && (s = d);
9127
9127
  }
9128
- let o = i && i.parentNode == e.target ? P(i) + 1 : 0, l = r.localPosFromDOM(e.target, o, -1), a = s && s.parentNode == e.target ? P(s) : e.target.childNodes.length, c = r.localPosFromDOM(e.target, a, 1);
9128
+ let o = i && i.parentNode == e.target ? V(i) + 1 : 0, l = r.localPosFromDOM(e.target, o, -1), a = s && s.parentNode == e.target ? V(s) : e.target.childNodes.length, c = r.localPosFromDOM(e.target, a, 1);
9129
9129
  return { from: l, to: c };
9130
9130
  } else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
9131
9131
  from: r.posAtStart,
@@ -9219,7 +9219,7 @@ function Yc(n, e, t, r, i) {
9219
9219
  if (n.input.compositionPendingChanges = 0, e < 0) {
9220
9220
  let O = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, Se = br(n, O);
9221
9221
  if (Se && !n.state.selection.eq(Se)) {
9222
- if ($ && re && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (qo) => qo(n, Pe(13, "Enter"))))
9222
+ if ($ && re && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (qo) => qo(n, Ve(13, "Enter"))))
9223
9223
  return;
9224
9224
  let Lt = n.state.tr.setSelection(Se);
9225
9225
  O == "pointer" ? Lt.setMeta("pointer", !0) : O == "key" && Lt.scrollIntoView(), s && Lt.setMeta("composition", s), n.dispatch(Lt);
@@ -9231,7 +9231,7 @@ function Yc(n, e, t, r, i) {
9231
9231
  let a = n.state.selection, c = Gc(n, e, t), f = n.state.doc, h = f.slice(c.from, c.to), d, u;
9232
9232
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (d = n.state.selection.to, u = "end") : (d = n.state.selection.from, u = "start"), n.input.lastKeyCode = null;
9233
9233
  let p = ef(h.content, c.doc.content, c.from, d, u);
9234
- if (p && n.input.domChangeCount++, (ht && n.input.lastIOSEnter > Date.now() - 225 || re) && i.some((O) => O.nodeType == 1 && !Xc.test(O.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (O) => O(n, Pe(13, "Enter")))) {
9234
+ if (p && n.input.domChangeCount++, (ht && n.input.lastIOSEnter > Date.now() - 225 || re) && i.some((O) => O.nodeType == 1 && !Xc.test(O.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (O) => O(n, Ve(13, "Enter")))) {
9235
9235
  n.input.lastIOSEnter = 0;
9236
9236
  return;
9237
9237
  }
@@ -9250,17 +9250,17 @@ function Yc(n, e, t, r, i) {
9250
9250
  }
9251
9251
  n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof C && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), U && Ee <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
9252
9252
  let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = f.resolve(p.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA, M;
9253
- if ((ht && n.input.lastIOSEnter > Date.now() - 225 && (!w || i.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !w && m.pos < c.doc.content.size && !m.sameParent(g) && (M = S.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && M.head == g.pos) && n.someProp("handleKeyDown", (O) => O(n, Pe(13, "Enter")))) {
9253
+ if ((ht && n.input.lastIOSEnter > Date.now() - 225 && (!w || i.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !w && m.pos < c.doc.content.size && !m.sameParent(g) && (M = S.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && M.head == g.pos) && n.someProp("handleKeyDown", (O) => O(n, Ve(13, "Enter")))) {
9254
9254
  n.input.lastIOSEnter = 0;
9255
9255
  return;
9256
9256
  }
9257
- if (n.state.selection.anchor > p.start && Qc(f, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (O) => O(n, Pe(8, "Backspace")))) {
9257
+ if (n.state.selection.anchor > p.start && Qc(f, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (O) => O(n, Ve(8, "Backspace")))) {
9258
9258
  re && $ && n.domObserver.suppressSelectionUpdates();
9259
9259
  return;
9260
9260
  }
9261
9261
  $ && re && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), re && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
9262
9262
  n.someProp("handleKeyDown", function(O) {
9263
- return O(n, Pe(13, "Enter"));
9263
+ return O(n, Ve(13, "Enter"));
9264
9264
  });
9265
9265
  }, 20));
9266
9266
  let T = p.start, I = p.endA, D, Y, ke;
@@ -9442,7 +9442,7 @@ class tf {
9442
9442
  }
9443
9443
  u || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && sc(this)) ? be(this, u) : (lo(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9444
9444
  }
9445
- this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), f == "reset" ? this.dom.scrollTop = 0 : f == "to selection" ? this.scrollToSelection() : d && Va(d);
9445
+ this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), f == "reset" ? this.dom.scrollTop = 0 : f == "to selection" ? this.scrollToSelection() : d && Pa(d);
9446
9446
  }
9447
9447
  /**
9448
9448
  @internal
@@ -9527,7 +9527,7 @@ class tf {
9527
9527
  Focus the editor.
9528
9528
  */
9529
9529
  focus() {
9530
- this.domObserver.stop(), this.editable && Pa(this.dom), be(this), this.domObserver.start();
9530
+ this.domObserver.stop(), this.editable && Va(this.dom), be(this), this.domObserver.start();
9531
9531
  }
9532
9532
  /**
9533
9533
  Get the document root in which the editor exists. This will
@@ -9954,7 +9954,7 @@ function Bi(n, e) {
9954
9954
  }
9955
9955
  return s;
9956
9956
  }
9957
- function Vi(n, e) {
9957
+ function Pi(n, e) {
9958
9958
  const t = {};
9959
9959
  n.attrs.colspan != 1 && (t.colspan = n.attrs.colspan), n.attrs.rowspan != 1 && (t.rowspan = n.attrs.rowspan), n.attrs.colwidth && (t["data-colwidth"] = n.attrs.colwidth.join(","));
9960
9960
  for (const r in e) {
@@ -9999,7 +9999,7 @@ function cf(n) {
9999
9999
  { tag: "td", getAttrs: (r) => Bi(r, e) }
10000
10000
  ],
10001
10001
  toDOM(r) {
10002
- return ["td", Vi(r, e), 0];
10002
+ return ["td", Pi(r, e), 0];
10003
10003
  }
10004
10004
  },
10005
10005
  table_header: {
@@ -10011,7 +10011,7 @@ function cf(n) {
10011
10011
  { tag: "th", getAttrs: (r) => Bi(r, e) }
10012
10012
  ],
10013
10013
  toDOM(r) {
10014
- return ["th", Vi(r, e), 0];
10014
+ return ["th", Pi(r, e), 0];
10015
10015
  }
10016
10016
  }
10017
10017
  };
@@ -10028,7 +10028,7 @@ function fe(n) {
10028
10028
  return e;
10029
10029
  }
10030
10030
  var Ne = new vt("selectingCells");
10031
- function Pt(n) {
10031
+ function Vt(n) {
10032
10032
  for (let e = n.depth - 1; e > 0; e--)
10033
10033
  if (n.node(e).type.spec.tableRole == "row")
10034
10034
  return n.node(0).resolve(n.before(e + 1));
@@ -10047,7 +10047,7 @@ function Or(n) {
10047
10047
  return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
10048
10048
  if ("node" in e && e.node && e.node.type.spec.tableRole == "cell")
10049
10049
  return e.$anchor;
10050
- const t = Pt(e.$head) || ff(e.$head);
10050
+ const t = Vt(e.$head) || ff(e.$head);
10051
10051
  if (t)
10052
10052
  return t;
10053
10053
  throw new RangeError(`No cell found around position ${e.head}`);
@@ -10442,7 +10442,7 @@ function kf(n) {
10442
10442
  return !0;
10443
10443
  };
10444
10444
  }
10445
- function Pi(n, e, t) {
10445
+ function Vi(n, e, t) {
10446
10446
  const r = e.map.cellsInRect({
10447
10447
  left: 0,
10448
10448
  top: 0,
@@ -10461,7 +10461,7 @@ function Tr(n, e) {
10461
10461
  if (!Sn(t))
10462
10462
  return !1;
10463
10463
  if (r) {
10464
- const i = fe(t.schema), s = Ro(t), o = t.tr, l = Pi("row", s, i), a = Pi(
10464
+ const i = fe(t.schema), s = Ro(t), o = t.tr, l = Vi("row", s, i), a = Vi(
10465
10465
  "column",
10466
10466
  s,
10467
10467
  i
@@ -10820,7 +10820,7 @@ function Kt(n, e) {
10820
10820
  };
10821
10821
  }
10822
10822
  function Tf(n, e) {
10823
- const t = n.state.doc, r = Pt(t.resolve(e));
10823
+ const t = n.state.doc, r = Vt(t.resolve(e));
10824
10824
  return r ? (n.dispatch(n.state.tr.setSelection(new z(r))), !0) : !1;
10825
10825
  }
10826
10826
  function Af(n, e, t) {
@@ -10863,7 +10863,7 @@ function Df(n, e) {
10863
10863
  let i;
10864
10864
  if (e.shiftKey && n.state.selection instanceof z)
10865
10865
  s(n.state.selection.$anchorCell, e), e.preventDefault();
10866
- else if (e.shiftKey && r && (i = Pt(n.state.selection.$anchor)) != null && ((t = $n(n, e)) == null ? void 0 : t.pos) != i.pos)
10866
+ else if (e.shiftKey && r && (i = Vt(n.state.selection.$anchor)) != null && ((t = $n(n, e)) == null ? void 0 : t.pos) != i.pos)
10867
10867
  s(i, e), e.preventDefault();
10868
10868
  else if (!r)
10869
10869
  return;
@@ -10921,7 +10921,7 @@ function $n(n, e) {
10921
10921
  left: e.clientX,
10922
10922
  top: e.clientY
10923
10923
  });
10924
- return t && t ? Pt(n.state.doc.resolve(t.pos)) : null;
10924
+ return t && t ? Vt(n.state.doc.resolve(t.pos)) : null;
10925
10925
  }
10926
10926
  var Ef = class {
10927
10927
  constructor(n, e) {
@@ -11034,7 +11034,7 @@ var If = class Xt {
11034
11034
  function vf(n, e, t, r) {
11035
11035
  const i = _.getState(n.state);
11036
11036
  if (i && !i.dragging) {
11037
- const s = Pf(e.target);
11037
+ const s = Vf(e.target);
11038
11038
  let o = -1;
11039
11039
  if (s) {
11040
11040
  const { left: l, right: a } = s.getBoundingClientRect();
@@ -11059,7 +11059,7 @@ function Bf(n, e, t, r) {
11059
11059
  const s = (i = n.dom.ownerDocument.defaultView) != null ? i : window, o = _.getState(n.state);
11060
11060
  if (!o || o.activeHandle == -1 || o.dragging)
11061
11061
  return !1;
11062
- const l = n.state.doc.nodeAt(o.activeHandle), a = Vf(n, o.activeHandle, l.attrs);
11062
+ const l = n.state.doc.nodeAt(o.activeHandle), a = Pf(n, o.activeHandle, l.attrs);
11063
11063
  n.dispatch(
11064
11064
  n.state.tr.setMeta(_, {
11065
11065
  setDragging: { startX: e.clientX, startWidth: a }
@@ -11097,7 +11097,7 @@ function Bf(n, e, t, r) {
11097
11097
  r
11098
11098
  ), s.addEventListener("mouseup", c), s.addEventListener("mousemove", f), e.preventDefault(), !0;
11099
11099
  }
11100
- function Vf(n, e, { colspan: t, colwidth: r }) {
11100
+ function Pf(n, e, { colspan: t, colwidth: r }) {
11101
11101
  const i = r && r[r.length - 1];
11102
11102
  if (i)
11103
11103
  return i;
@@ -11108,7 +11108,7 @@ function Vf(n, e, { colspan: t, colwidth: r }) {
11108
11108
  r[c] && (l -= r[c], a--);
11109
11109
  return l / a;
11110
11110
  }
11111
- function Pf(n) {
11111
+ function Vf(n) {
11112
11112
  for (; n && n.nodeName != "TD" && n.nodeName != "TH"; )
11113
11113
  n = n.classList && n.classList.contains("ProseMirror") ? null : n.parentNode;
11114
11114
  return n;
@@ -11120,7 +11120,7 @@ function Ji(n, e, t, r) {
11120
11120
  });
11121
11121
  if (!s)
11122
11122
  return -1;
11123
- const { pos: o } = s, l = Pt(n.state.doc.resolve(o));
11123
+ const { pos: o } = s, l = Vt(n.state.doc.resolve(o));
11124
11124
  if (!l)
11125
11125
  return -1;
11126
11126
  if (t == "right")
@@ -11272,7 +11272,7 @@ async function _f({
11272
11272
  throw new Error(`HTTP error! status: ${h.status}`);
11273
11273
  return h.json();
11274
11274
  }
11275
- var rt = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(rt || {}), dn = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.sidebarLeftSet = "studio:sidebarLeft:set", n.sidebarLeftGet = "studio:sidebarLeft:get", n.sidebarLeftToggle = "studio:sidebarLeft:toggle", n.sidebarRightSet = "studio:sidebarRight:set", n.sidebarRightGet = "studio:sidebarRight:get", n.sidebarRightToggle = "studio:sidebarRight:toggle", n.sidebarTopSet = "studio:sidebarTop:set", n.sidebarTopGet = "studio:sidebarTop:get", n.sidebarTopToggle = "studio:sidebarTop:toggle", n.sidebarBottomSet = "studio:sidebarBottom:set", n.sidebarBottomGet = "studio:sidebarBottom:get", n.sidebarBottomToggle = "studio:sidebarBottom:toggle", n.symbolAdd = "studio:symbolAdd", n.symbolDetach = "studio:symbolDetach", n.symbolOverride = "studio:symbolOverride", n.symbolPropagateStyles = "studio:propagateStyles", n.getPagesConfig = "studio:getPagesConfig", n.setPagesConfig = "studio:setPagesConfig", n.getPageSettings = "studio:getPageSettings", n.setPageSettings = "studio:setPageSettings", n.projectFiles = "studio:projectFiles", n.canvasReload = "studio:canvasReload", n.getBlocksPanel = "studio:getBlocksPanel", n.setBlocksPanel = "studio:setBlocksPanel", n.getStateContextMenu = "studio:getStateContextMenu", n.setStateContextMenu = "studio:setStateContextMenu", n.contextMenuComponent = "studio:contextMenuComponent", n.layoutAdd = "studio:layoutAdd", n.layoutRemove = "studio:layoutRemove", n.layoutToggle = "studio:layoutToggle", n.layoutUpdate = "studio:layoutUpdate", n.layoutGet = "studio:layoutGet", n.layoutConfigGet = "studio:layoutConfigGet", n.layoutConfigSet = "studio:layoutConfigSet", n.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", n.assetProviderGet = "studio:assetProviderGet", n.assetProviderAdd = "studio:assetProviderAdd", n.assetProviderRemove = "studio:assetProviderRemove", n.fontGet = "studio:fontGet", n.fontAdd = "studio:fontAdd", n.fontRemove = "studio:fontRemove", n.fontManagerOpen = "studio:fontManagerOpen", n.menuFontLoad = "studio:menuFontLoad", n.toggleStateDataSource = "studio:toggleStateDataSource", n.getStateDataSource = "studio:getStateDataSource", n.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", n.dataSourceSetImporter = "studio:dataSourceSetImporter", n.dataSourceSetExporter = "studio:dataSourceSetExporter", n.setDragAbsolute = "studio:setDragAbsolute", n))(dn || {});
11275
+ var rt = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(rt || {}), dn = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.sidebarLeftSet = "studio:sidebarLeft:set", n.sidebarLeftGet = "studio:sidebarLeft:get", n.sidebarLeftToggle = "studio:sidebarLeft:toggle", n.sidebarRightSet = "studio:sidebarRight:set", n.sidebarRightGet = "studio:sidebarRight:get", n.sidebarRightToggle = "studio:sidebarRight:toggle", n.sidebarTopSet = "studio:sidebarTop:set", n.sidebarTopGet = "studio:sidebarTop:get", n.sidebarTopToggle = "studio:sidebarTop:toggle", n.sidebarBottomSet = "studio:sidebarBottom:set", n.sidebarBottomGet = "studio:sidebarBottom:get", n.sidebarBottomToggle = "studio:sidebarBottom:toggle", n.symbolAdd = "studio:symbolAdd", n.symbolDetach = "studio:symbolDetach", n.symbolOverride = "studio:symbolOverride", n.symbolPropagateStyles = "studio:propagateStyles", n.getPagesConfig = "studio:getPagesConfig", n.setPagesConfig = "studio:setPagesConfig", n.getPageSettings = "studio:getPageSettings", n.setPageSettings = "studio:setPageSettings", n.clearPage = "studio:clearPage", n.projectFiles = "studio:projectFiles", n.validateCode = "studio:validateCode", n.canvasReload = "studio:canvasReload", n.getBlocksPanel = "studio:getBlocksPanel", n.setBlocksPanel = "studio:setBlocksPanel", n.getStateContextMenu = "studio:getStateContextMenu", n.setStateContextMenu = "studio:setStateContextMenu", n.contextMenuComponent = "studio:contextMenuComponent", n.layoutAdd = "studio:layoutAdd", n.layoutRemove = "studio:layoutRemove", n.layoutToggle = "studio:layoutToggle", n.layoutUpdate = "studio:layoutUpdate", n.layoutGet = "studio:layoutGet", n.layoutConfigGet = "studio:layoutConfigGet", n.layoutConfigSet = "studio:layoutConfigSet", n.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", n.assetProviderGet = "studio:assetProviderGet", n.assetProviderAdd = "studio:assetProviderAdd", n.assetProviderRemove = "studio:assetProviderRemove", n.fontGet = "studio:fontGet", n.fontAdd = "studio:fontAdd", n.fontRemove = "studio:fontRemove", n.fontManagerOpen = "studio:fontManagerOpen", n.menuFontLoad = "studio:menuFontLoad", n.toggleStateDataSource = "studio:toggleStateDataSource", n.getStateDataSource = "studio:getStateDataSource", n.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", n.dataSourceSetImporter = "studio:dataSourceSetImporter", n.dataSourceSetExporter = "studio:dataSourceSetExporter", n.setDragAbsolute = "studio:setDragAbsolute", n))(dn || {});
11276
11276
  const Ui = {
11277
11277
  [rt.free]: 0,
11278
11278
  [rt.startup]: 10,
@@ -11366,7 +11366,7 @@ function th(n, e) {
11366
11366
  const Ot = (n) => {
11367
11367
  const e = Object.fromEntries(Array.from(n.attributes).map((t) => [t.name, t.value]));
11368
11368
  return delete e.draggable, e;
11369
- }, Gi = "data-gs-mrk-fs", _i = "data-gs-ib", Vo = "data-gs-mrk-wrap", un = "data-gs-ifrg", xe = "attrs", Ar = {
11369
+ }, Gi = "data-gs-mrk-fs", _i = "data-gs-ib", Po = "data-gs-mrk-wrap", un = "data-gs-ifrg", xe = "attrs", Ar = {
11370
11370
  [xe]: { default: "{}" }
11371
11371
  }, de = {
11372
11372
  [xe]: { default: {} }
@@ -11548,7 +11548,7 @@ const Ot = (n) => {
11548
11548
  em: gt(["em", "i"], (n) => ["em", ye(n)]),
11549
11549
  underline: gt(["u"], (n) => ["u", ye(n), 0]),
11550
11550
  strikethrough: gt(["s"], (n) => ["s", ye(n), 0]),
11551
- wrapStyle: rh(Vo),
11551
+ wrapStyle: rh(Po),
11552
11552
  font_size: {
11553
11553
  attrs: {
11554
11554
  ...Ar,
@@ -11578,9 +11578,9 @@ const Ot = (n) => {
11578
11578
  Ft.set(n, { view: e, gjsView: t }), Er.set(e, { el: n, gjsView: t });
11579
11579
  }, oh = (n, e) => {
11580
11580
  Ft.delete(n), Er.delete(e);
11581
- }, Wn = (n) => Ft.get(n), Po = (n) => Er.get(n), Jn = (n) => {
11581
+ }, Wn = (n) => Ft.get(n), Vo = (n) => Er.get(n), Jn = (n) => {
11582
11582
  var e, t;
11583
- return (t = (e = Po(n)) == null ? void 0 : e.gjsView) == null ? void 0 : t.model;
11583
+ return (t = (e = Vo(n)) == null ? void 0 : e.gjsView) == null ? void 0 : t.model;
11584
11584
  }, lh = (n) => n.dispatchEvent(new CustomEvent("input"));
11585
11585
  function ah(n) {
11586
11586
  const e = (t) => {
@@ -11788,7 +11788,7 @@ const yh = (n, e) => {
11788
11788
  },
11789
11789
  wrapStyle: () => {
11790
11790
  const l = Jn(n), a = o.text.selected(), c = `i${e.Components._createId().slice(0, 4)}`;
11791
- o.text.replaceHtml(`<span id="${c}" ${Vo}>${a}</span>`), l == null || l.trigger("disable"), setTimeout(() => {
11791
+ o.text.replaceHtml(`<span id="${c}" ${Po}>${a}</span>`), l == null || l.trigger("disable"), setTimeout(() => {
11792
11792
  const f = l == null ? void 0 : l.find(`#${c}`)[0];
11793
11793
  f && e.select(f);
11794
11794
  });
@@ -11799,19 +11799,19 @@ const yh = (n, e) => {
11799
11799
  }
11800
11800
  },
11801
11801
  bold: {
11802
- toggle: () => Ve(s.strong)(n.state, r),
11802
+ toggle: () => Pe(s.strong)(n.state, r),
11803
11803
  isActive: () => yt(n.state, s.strong)
11804
11804
  },
11805
11805
  italic: {
11806
- toggle: () => Ve(s.em)(n.state, r),
11806
+ toggle: () => Pe(s.em)(n.state, r),
11807
11807
  isActive: () => yt(n.state, s.em)
11808
11808
  },
11809
11809
  underline: {
11810
- toggle: () => Ve(s.underline)(n.state, r),
11810
+ toggle: () => Pe(s.underline)(n.state, r),
11811
11811
  isActive: () => yt(n.state, s.underline)
11812
11812
  },
11813
11813
  strikethrough: {
11814
- toggle: () => Ve(s.strikethrough)(n.state, r),
11814
+ toggle: () => Pe(s.strikethrough)(n.state, r),
11815
11815
  isActive: () => yt(n.state, s.strikethrough)
11816
11816
  },
11817
11817
  link: {
@@ -11826,12 +11826,12 @@ const yh = (n, e) => {
11826
11826
  return c ? ye(c) : {};
11827
11827
  }
11828
11828
  },
11829
- toggle: () => Ve(s.link)(n.state, r),
11829
+ toggle: () => Pe(s.link)(n.state, r),
11830
11830
  isActive: () => yt(n.state, s.link),
11831
11831
  create: (l) => {
11832
11832
  const a = Jn(n), c = a == null ? void 0 : a.getTrait("href"), { url: f, target: h } = l, d = () => {
11833
11833
  var p, m;
11834
- const u = (m = (p = Po(n)) == null ? void 0 : p.gjsView) == null ? void 0 : m.el;
11834
+ const u = (m = (p = Vo(n)) == null ? void 0 : p.gjsView) == null ? void 0 : m.el;
11835
11835
  u && u.contentEditable !== "true" && (u.contentEditable = "true"), n.focus();
11836
11836
  };
11837
11837
  a != null && a.is("link") ? (a.addAttributes({ href: f, target: h }), d()) : c ? (a == null || a.addAttributes({ [c.getName()]: f }), d()) : uh({ view: n, href: f, target: h, options: t });
@@ -12006,10 +12006,10 @@ function zh(n) {
12006
12006
  function Bh(n) {
12007
12007
  return Ir(/^\s*([-+*])\s$/, n);
12008
12008
  }
12009
- function Vh(n) {
12009
+ function Ph(n) {
12010
12010
  return Jo(/^```$/, n);
12011
12011
  }
12012
- function Ph(n, e) {
12012
+ function Vh(n, e) {
12013
12013
  return Jo(new RegExp("^(#{1," + e + "})\\s$"), n, (t) => ({
12014
12014
  level: t[1].length
12015
12015
  }));
@@ -12017,7 +12017,7 @@ function Ph(n, e) {
12017
12017
  function Fh(n) {
12018
12018
  const e = Ih.concat(Th, Nh);
12019
12019
  let t;
12020
- return (t = n.nodes.blockquote) && e.push(vh(t)), (t = n.nodes.orderedList) && e.push(zh(t)), (t = n.nodes.bulletList) && e.push(Bh(t)), (t = n.nodes.codeBlock) && e.push(Vh(t)), (t = n.nodes.heading) && e.push(Ph(t, 6)), Oh({ rules: e });
12020
+ return (t = n.nodes.blockquote) && e.push(vh(t)), (t = n.nodes.orderedList) && e.push(zh(t)), (t = n.nodes.bulletList) && e.push(Bh(t)), (t = n.nodes.codeBlock) && e.push(Ph(t)), (t = n.nodes.heading) && e.push(Vh(t, 6)), Oh({ rules: e });
12021
12021
  }
12022
12022
  const Lh = "rteProseMirror", Hh = rt.free, Q = "rte:selectionchange", Z = {
12023
12023
  bold: '<svg viewBox="0 0 24 24"><path d="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z" /></svg>',
@@ -12358,15 +12358,15 @@ const Jh = function(n, e = {}) {
12358
12358
  "Shift-Tab": Fi(-1)
12359
12359
  }),
12360
12360
  Bn({
12361
- Enter: At(Ps, ka(f.listItem), fh(d, t)),
12362
- "Shift-Enter": At(Vs, (w, M) => (M && M(w.tr.replaceSelectionWith(f.inlineBreak.create()).scrollIntoView()), !0)),
12361
+ Enter: At(Vs, ka(f.listItem), fh(d, t)),
12362
+ "Shift-Enter": At(Ps, (w, M) => (M && M(w.tr.replaceSelectionWith(f.inlineBreak.create()).scrollIntoView()), !0)),
12363
12363
  "Mod-z": Ks,
12364
12364
  "Mod-y": Gn,
12365
12365
  // On Windows
12366
12366
  "Mod-Shift-z": Gn,
12367
12367
  // On Mac
12368
- "Mod-b": Ve(h.strong),
12369
- "Mod-i": Ve(h.em),
12368
+ "Mod-b": Pe(h.strong),
12369
+ "Mod-i": Pe(h.em),
12370
12370
  "Shift-Tab": _n(f.listItem),
12371
12371
  Tab: wa(f.listItem)
12372
12372
  }),