@harbour-enterprises/superdoc 0.10.15 → 0.10.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.
@@ -15454,7 +15454,7 @@ Actual: ` + p3.attribValue
15454
15454
  style: true,
15455
15455
  title: true
15456
15456
  }, La$2 = { ol: true, ul: true }, Gt$3 = 1, ci$2 = 2, or$2 = 4;
15457
- function uo$2(r22, e, t) {
15457
+ function uo$3(r22, e, t) {
15458
15458
  return e != null ? (e ? Gt$3 : 0) | (e === "full" ? ci$2 : 0) : r22 && r22.whitespace == "pre" ? Gt$3 | ci$2 : t & -5;
15459
15459
  }
15460
15460
  let rr$2 = class rr {
@@ -15493,7 +15493,7 @@ Actual: ` + p3.attribValue
15493
15493
  let lo$3 = class lo {
15494
15494
  constructor(e, t, n) {
15495
15495
  this.parser = e, this.options = t, this.isOpen = n, this.open = 0, this.localPreserveWS = false;
15496
- let i3 = t.topNode, s, o = uo$2(null, t.preserveWhitespace, 0) | (n ? or$2 : 0);
15496
+ let i3 = t.topNode, s, o = uo$3(null, t.preserveWhitespace, 0) | (n ? or$2 : 0);
15497
15497
  i3 ? s = new rr$2(i3.type, i3.attrs, ge$2.none, true, t.topMatch || i3.type.contentMatch, o) : n ? s = new rr$2(null, null, ge$2.none, true, null, o) : s = new rr$2(e.schema.topNodeType, null, ge$2.none, true, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = false;
15498
15498
  }
15499
15499
  get top() {
@@ -15662,7 +15662,7 @@ Actual: ` + p3.attribValue
15662
15662
  this.closeExtra();
15663
15663
  let o = this.top;
15664
15664
  o.match = o.match && o.match.matchType(e);
15665
- let a = uo$2(e, s, o.options);
15665
+ let a = uo$3(e, s, o.options);
15666
15666
  o.options & or$2 && o.content.length == 0 && (a |= or$2);
15667
15667
  let u = ge$2.none;
15668
15668
  return n = n.filter((f3) => (o.type ? o.type.allowsMarkType(f3.type) : fo$1(f3.type, e)) ? (u = f3.addToSet(u), false) : true), this.nodes.push(new rr$2(e, t, u, i3, null, a)), this.open++, n;
@@ -16673,9 +16673,9 @@ Actual: ` + p3.attribValue
16673
16673
  }
16674
16674
  function bp$2(r22, e, t = null, n = r22) {
16675
16675
  let i3 = lf$1(r22, e), s = i3 && cf$1(n, e);
16676
- return s ? i3.map(go$3).concat({ type: e, attrs: t }).concat(s.map(go$3)) : null;
16676
+ return s ? i3.map(go$2).concat({ type: e, attrs: t }).concat(s.map(go$2)) : null;
16677
16677
  }
16678
- function go$3(r22) {
16678
+ function go$2(r22) {
16679
16679
  return { type: r22, attrs: null };
16680
16680
  }
16681
16681
  function lf$1(r22, e) {
@@ -17529,7 +17529,7 @@ Actual: ` + p3.attribValue
17529
17529
  let s = e.steps.length, o = this.ranges;
17530
17530
  for (let a = 0; a < o.length; a++) {
17531
17531
  let { $from: u, $to: f3 } = o[a], c3 = e.mapping.slice(s);
17532
- e.replaceRange(c3.map(u.pos), c3.map(f3.pos), a ? ue.empty : t), a == 0 && bo$3(e, s, (n ? n.isInline : i3 && i3.isTextblock) ? -1 : 1);
17532
+ e.replaceRange(c3.map(u.pos), c3.map(f3.pos), a ? ue.empty : t), a == 0 && bo$2(e, s, (n ? n.isInline : i3 && i3.isTextblock) ? -1 : 1);
17533
17533
  }
17534
17534
  }
17535
17535
  /**
@@ -17540,7 +17540,7 @@ Actual: ` + p3.attribValue
17540
17540
  let n = e.steps.length, i3 = this.ranges;
17541
17541
  for (let s = 0; s < i3.length; s++) {
17542
17542
  let { $from: o, $to: a } = i3[s], u = e.mapping.slice(n), f3 = u.map(o.pos), c3 = u.map(a.pos);
17543
- s ? e.deleteRange(f3, c3) : (e.replaceRangeWith(f3, c3, t), bo$3(e, n, t.isInline ? -1 : 1));
17543
+ s ? e.deleteRange(f3, c3) : (e.replaceRangeWith(f3, c3, t), bo$2(e, n, t.isInline ? -1 : 1));
17544
17544
  }
17545
17545
  }
17546
17546
  /**
@@ -17631,7 +17631,7 @@ Actual: ` + p3.attribValue
17631
17631
  }
17632
17632
  };
17633
17633
  let wo$2 = false;
17634
- function yo$2(r22) {
17634
+ function yo$3(r22) {
17635
17635
  !wo$2 && !r22.parent.inlineContent && (wo$2 = true, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r22.parent.type.name + ")"));
17636
17636
  }
17637
17637
  let tt$3 = class tt2 extends ve$1 {
@@ -17639,7 +17639,7 @@ Actual: ` + p3.attribValue
17639
17639
  Construct a text selection between the given points.
17640
17640
  */
17641
17641
  constructor(e, t = e) {
17642
- yo$2(e), yo$2(t), super(e, t);
17642
+ yo$3(e), yo$3(t), super(e, t);
17643
17643
  }
17644
17644
  /**
17645
17645
  Returns a resolved position if this is a cursor selection (an
@@ -17839,7 +17839,7 @@ Actual: ` + p3.attribValue
17839
17839
  }
17840
17840
  return null;
17841
17841
  }
17842
- function bo$3(r22, e, t) {
17842
+ function bo$2(r22, e, t) {
17843
17843
  let n = r22.steps.length - 1;
17844
17844
  if (n < e)
17845
17845
  return;
@@ -21080,11 +21080,11 @@ Actual: ` + p3.attribValue
21080
21080
  }
21081
21081
  return {
21082
21082
  name: "w:body",
21083
- elements: [...Ot$2(r22), e]
21083
+ elements: [...Ot$1(r22), e]
21084
21084
  };
21085
21085
  }
21086
21086
  function su$2(r22) {
21087
- const e = Ot$2(r22), t = e.find((s) => s.name === "htmlAnnotation");
21087
+ const e = Ot$1(r22), t = e.find((s) => s.name === "htmlAnnotation");
21088
21088
  if (e.length === 1 && t)
21089
21089
  return t.elements;
21090
21090
  const n = pd$2(r22.node);
@@ -21168,7 +21168,7 @@ Actual: ` + p3.attribValue
21168
21168
  attributes: Vf$2
21169
21169
  }, r22];
21170
21170
  }
21171
- function Ot$2(r22) {
21171
+ function Ot$1(r22) {
21172
21172
  const { content: e } = r22.node;
21173
21173
  if (!e) return [];
21174
21174
  const t = [];
@@ -21394,7 +21394,7 @@ Actual: ` + p3.attribValue
21394
21394
  }
21395
21395
  function Cd$2(r22) {
21396
21396
  r22.node = Sd$2(r22.node, r22);
21397
- const e = Ot$2(r22), t = Fd$2(r22.node), n = kd$2(r22.node, r22);
21397
+ const e = Ot$1(r22), t = Fd$2(r22.node), n = kd$2(r22.node, r22);
21398
21398
  return e.unshift(t), e.unshift(n), {
21399
21399
  name: "w:tbl",
21400
21400
  elements: e
@@ -21535,7 +21535,7 @@ Actual: ` + p3.attribValue
21535
21535
  };
21536
21536
  }
21537
21537
  function Nd$2(r22) {
21538
- const e = Ot$2(r22), t = Id$2(r22.node);
21538
+ const e = Ot$1(r22), t = Id$2(r22.node);
21539
21539
  return t.elements.length && e.unshift(t), {
21540
21540
  name: "w:tr",
21541
21541
  elements: e
@@ -21558,7 +21558,7 @@ Actual: ` + p3.attribValue
21558
21558
  };
21559
21559
  }
21560
21560
  function Rd$2(r22) {
21561
- const e = Ot$2({
21561
+ const e = Ot$1({
21562
21562
  ...r22,
21563
21563
  tableCell: r22.node
21564
21564
  }), t = Pd$2(r22.node);
@@ -21924,7 +21924,7 @@ Actual: ` + p3.attribValue
21924
21924
  }).doc.toJSON();
21925
21925
  return {
21926
21926
  name: "htmlAnnotation",
21927
- elements: Ot$2({
21927
+ elements: Ot$1({
21928
21928
  ...r22,
21929
21929
  node: s
21930
21930
  })
@@ -22038,7 +22038,7 @@ Actual: ` + p3.attribValue
22038
22038
  };
22039
22039
  }
22040
22040
  var nt$3, cu$2, pi$2, hi$2;
22041
- let ko$2 = class ko {
22041
+ let ko$3 = class ko {
22042
22042
  constructor(e) {
22043
22043
  Nr$1(this, nt$3);
22044
22044
  this.converter = e;
@@ -23614,7 +23614,7 @@ Actual: ` + p3.attribValue
23614
23614
  return;
23615
23615
  }
23616
23616
  }
23617
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.15") {
23617
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.17") {
23618
23618
  const n = "docProps/custom.xml";
23619
23619
  e[n] || (e[n] = Fu$2());
23620
23620
  const i3 = e["docProps/custom.xml"];
@@ -23685,7 +23685,7 @@ Actual: ` + p3.attribValue
23685
23685
  return t ? (this.savedTagsToRestore.push({ ...t.savedTagsToRestore }), this.pageStyles = t.pageStyles, this.numbering = t.numbering, this.comments = t.comments, this.linkedStyles = t.linkedStyles, t.pmDoc) : null;
23686
23686
  }
23687
23687
  schemaToXml(e, t = false) {
23688
- return new ko$2(this).schemaToXml(e, t);
23688
+ return new ko$3(this).schemaToXml(e, t);
23689
23689
  }
23690
23690
  async exportToDocx(e, t, n, i3 = false, s, o = []) {
23691
23691
  const a = o.map((A) => rd$2(A)), u = a.map((A, F3) => nd$2(A, F3, a)), { result: f3, params: c3 } = this.exportToXmlJson({
@@ -23695,7 +23695,7 @@ Actual: ` + p3.attribValue
23695
23695
  commentDefinitions: u,
23696
23696
  commentsExportType: s,
23697
23697
  isFinalDoc: i3
23698
- }), h3 = new ko$2(this).schemaToXml(f3);
23698
+ }), h3 = new ko$3(this).schemaToXml(f3);
23699
23699
  await Ke(this, it$1, Tu$2).call(this, {
23700
23700
  ...n,
23701
23701
  ...c3.media,
@@ -23839,7 +23839,7 @@ Actual: ` + p3.attribValue
23839
23839
  function Fu$2() {
23840
23840
  return zf$2;
23841
23841
  }
23842
- function Bu$2(r22 = 2, e = "0.10.15") {
23842
+ function Bu$2(r22 = 2, e = "0.10.17") {
23843
23843
  return {
23844
23844
  type: "element",
23845
23845
  name: "property",
@@ -27010,7 +27010,7 @@ Actual: ` + p3.attribValue
27010
27010
  let n = t.nodeValue.length, r = document.createRange();
27011
27011
  for (let o = 0; o < n; o++) {
27012
27012
  r.setEnd(t, o + 1), r.setStart(t, o);
27013
- let i3 = Ot$1(r, 1);
27013
+ let i3 = Ot(r, 1);
27014
27014
  if (i3.top != i3.bottom && bs(e, i3))
27015
27015
  return { node: t, offset: o + (e.left >= (i3.left + i3.right) / 2 ? 1 : 0) };
27016
27016
  }
@@ -27089,7 +27089,7 @@ Actual: ` + p3.attribValue
27089
27089
  function fa$1(t) {
27090
27090
  return t.top < t.bottom || t.left < t.right;
27091
27091
  }
27092
- function Ot$1(t, e) {
27092
+ function Ot(t, e) {
27093
27093
  let n = t.getClientRects();
27094
27094
  if (n.length) {
27095
27095
  let r = n[e < 0 ? 0 : n.length - 1];
@@ -27103,11 +27103,11 @@ Actual: ` + p3.attribValue
27103
27103
  let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Dr || Je$2;
27104
27104
  if (r.nodeType == 3)
27105
27105
  if (s && (hp$1.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
27106
- let l = Ot$1(mt$1(r, o, o), n);
27106
+ let l = Ot(mt$1(r, o, o), n);
27107
27107
  if (Je$2 && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
27108
- let c3 = Ot$1(mt$1(r, o - 1, o - 1), -1);
27108
+ let c3 = Ot(mt$1(r, o - 1, o - 1), -1);
27109
27109
  if (c3.top == l.top) {
27110
- let d = Ot$1(mt$1(r, o, o + 1), -1);
27110
+ let d = Ot(mt$1(r, o, o + 1), -1);
27111
27111
  if (d.top != l.top)
27112
27112
  return Kn$2(d, d.left < c3.left);
27113
27113
  }
@@ -27115,7 +27115,7 @@ Actual: ` + p3.attribValue
27115
27115
  return l;
27116
27116
  } else {
27117
27117
  let l = o, c3 = o, d = n < 0 ? 1 : -1;
27118
- return n < 0 && !o ? (c3++, d = -1) : n >= 0 && o == r.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c3++, Kn$2(Ot$1(mt$1(r, l, c3), d), d < 0);
27118
+ return n < 0 && !o ? (c3++, d = -1) : n >= 0 && o == r.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c3++, Kn$2(Ot(mt$1(r, l, c3), d), d < 0);
27119
27119
  }
27120
27120
  if (!t.state.doc.resolve(e - (i3 || 0)).parent.inlineContent) {
27121
27121
  if (i3 == null && o && (n < 0 || o == _e(r))) {
@@ -27133,7 +27133,7 @@ Actual: ` + p3.attribValue
27133
27133
  if (i3 == null && o && (n < 0 || o == _e(r))) {
27134
27134
  let l = r.childNodes[o - 1], c3 = l.nodeType == 3 ? mt$1(l, _e(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
27135
27135
  if (c3)
27136
- return Kn$2(Ot$1(c3, 1), false);
27136
+ return Kn$2(Ot(c3, 1), false);
27137
27137
  }
27138
27138
  if (i3 == null && o < _e(r)) {
27139
27139
  let l = r.childNodes[o];
@@ -27141,9 +27141,9 @@ Actual: ` + p3.attribValue
27141
27141
  l = l.nextSibling;
27142
27142
  let c3 = l ? l.nodeType == 3 ? mt$1(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
27143
27143
  if (c3)
27144
- return Kn$2(Ot$1(c3, -1), true);
27144
+ return Kn$2(Ot(c3, -1), true);
27145
27145
  }
27146
- return Kn$2(Ot$1(r.nodeType == 3 ? mt$1(r) : r, -n), n >= 0);
27146
+ return Kn$2(Ot(r.nodeType == 3 ? mt$1(r) : r, -n), n >= 0);
27147
27147
  }
27148
27148
  function Kn$2(t, e) {
27149
27149
  if (t.width == 0)
@@ -28945,7 +28945,7 @@ Actual: ` + p3.attribValue
28945
28945
  }
28946
28946
  }
28947
28947
  function xs(t) {
28948
- return go$2(t);
28948
+ return go$1(t);
28949
28949
  }
28950
28950
  const Ec$1 = ze$2 ? "metaKey" : "ctrlKey";
28951
28951
  Me$1.mousedown = (t, e) => {
@@ -29018,8 +29018,8 @@ Actual: ` + p3.attribValue
29018
29018
  t.domObserver.flush();
29019
29019
  let { state: e } = t, n = e.selection.$to;
29020
29020
  if (e.selection instanceof tt$3 && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === false)))
29021
- t.markCursor = t.state.storedMarks || n.marks(), go$2(t, true), t.markCursor = null;
29022
- else if (go$2(t, !e.selection.empty), Je$2 && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
29021
+ t.markCursor = t.state.storedMarks || n.marks(), go$1(t, true), t.markCursor = null;
29022
+ else if (go$1(t, !e.selection.empty), Je$2 && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
29023
29023
  let r = t.domSelectionRange();
29024
29024
  for (let o = r.focusNode, i3 = r.focusOffset; o && o.nodeType == 1 && i3 != 0; ) {
29025
29025
  let s = i3 < 0 ? o.lastChild : o.childNodes[i3 - 1];
@@ -29041,7 +29041,7 @@ Actual: ` + p3.attribValue
29041
29041
  t.composing && (t.input.composing = false, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Pc$1(t, 20));
29042
29042
  };
29043
29043
  function Pc$1(t, e) {
29044
- clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => go$2(t), e));
29044
+ clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => go$1(t), e));
29045
29045
  }
29046
29046
  function Rc$1(t) {
29047
29047
  for (t.composing && (t.input.composing = false, t.input.compositionEndedAt = sh$1()); t.input.compositionNodes.length > 0; )
@@ -29070,7 +29070,7 @@ Actual: ` + p3.attribValue
29070
29070
  let t = document.createEvent("Event");
29071
29071
  return t.initEvent("event", true, true), t.timeStamp;
29072
29072
  }
29073
- function go$2(t, e = false) {
29073
+ function go$1(t, e = false) {
29074
29074
  if (!(bt$1 && t.domObserver.flushingSoon >= 0)) {
29075
29075
  if (t.domObserver.forceFlush(), Rc$1(t), e || t.docView && t.docView.dirty) {
29076
29076
  let n = ws(t);
@@ -29238,7 +29238,7 @@ Actual: ` + p3.attribValue
29238
29238
  return false;
29239
29239
  return true;
29240
29240
  }
29241
- let yo$1 = class yo2 {
29241
+ let yo$2 = class yo2 {
29242
29242
  constructor(e, n) {
29243
29243
  this.toDOM = e, this.spec = n || nn$2, this.side = this.spec.side || 0;
29244
29244
  }
@@ -29331,7 +29331,7 @@ Actual: ` + p3.attribValue
29331
29331
  widget's current document position.
29332
29332
  */
29333
29333
  static widget(e, n, r) {
29334
- return new V(e, e, new yo$1(n, r));
29334
+ return new V(e, e, new yo$2(n, r));
29335
29335
  }
29336
29336
  /**
29337
29337
  Creates an inline decoration, which adds the given attributes to
@@ -29365,7 +29365,7 @@ Actual: ` + p3.attribValue
29365
29365
  @internal
29366
29366
  */
29367
29367
  get widget() {
29368
- return this.type instanceof yo$1;
29368
+ return this.type instanceof yo$2;
29369
29369
  }
29370
29370
  }
29371
29371
  const xn$2 = [], nn$2 = {};
@@ -29382,7 +29382,7 @@ Actual: ` + p3.attribValue
29382
29382
  you must make a copy if you want need to preserve that.
29383
29383
  */
29384
29384
  static create(e, n) {
29385
- return n.length ? bo$2(n, e, 0, nn$2) : ye$1;
29385
+ return n.length ? bo$1(n, e, 0, nn$2) : ye$1;
29386
29386
  }
29387
29387
  /**
29388
29388
  Find all decorations in this set which touch the given range
@@ -29441,7 +29441,7 @@ Actual: ` + p3.attribValue
29441
29441
  if (d = _c$1(n, a, c3)) {
29442
29442
  for (o || (o = this.children.slice()); i3 < o.length && o[i3] < l; )
29443
29443
  i3 += 3;
29444
- o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, bo$2(d, a, c3 + 1, nn$2)), i3 += 3;
29444
+ o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, bo$1(d, a, c3 + 1, nn$2)), i3 += 3;
29445
29445
  }
29446
29446
  });
29447
29447
  let s = zc$1(i3 ? Vc$1(n) : n, -r);
@@ -29637,7 +29637,7 @@ Actual: ` + p3.attribValue
29637
29637
  l = true;
29638
29638
  }
29639
29639
  if (l) {
29640
- let c3 = fh$1(a, t, e, n, o, i3, s), d = bo$2(c3, r, 0, s);
29640
+ let c3 = fh$1(a, t, e, n, o, i3, s), d = bo$1(c3, r, 0, s);
29641
29641
  e = d.local;
29642
29642
  for (let u = 0; u < a.length; u += 3)
29643
29643
  a[u + 1] < 0 && (a.splice(u, 3), u -= 3);
@@ -29687,13 +29687,13 @@ Actual: ` + p3.attribValue
29687
29687
  t[n] != null && e.push(t[n]);
29688
29688
  return e;
29689
29689
  }
29690
- function bo$2(t, e, n, r) {
29690
+ function bo$1(t, e, n, r) {
29691
29691
  let o = [], i3 = false;
29692
29692
  e.forEach((a, l) => {
29693
29693
  let c3 = _c$1(t, a, l + n);
29694
29694
  if (c3) {
29695
29695
  i3 = true;
29696
- let d = bo$2(c3, a, n + l + 1, r);
29696
+ let d = bo$1(c3, a, n + l + 1, r);
29697
29697
  d != ye$1 && o.push(l, l + a.nodeSize, d);
29698
29698
  }
29699
29699
  });
@@ -30974,12 +30974,12 @@ Actual: ` + p3.attribValue
30974
30974
  /** @type {any} */
30975
30975
  e.selection.jsonID
30976
30976
  ),
30977
- anchor: ko$1(
30977
+ anchor: ko$2(
30978
30978
  e.selection.anchor,
30979
30979
  t.type,
30980
30980
  t.mapping
30981
30981
  ),
30982
- head: ko$1(
30982
+ head: ko$2(
30983
30983
  e.selection.head,
30984
30984
  t.type,
30985
30985
  t.mapping
@@ -31505,7 +31505,7 @@ Actual: ` + p3.attribValue
31505
31505
  });
31506
31506
  }, Qm = (t, e, n) => {
31507
31507
  or$1 || (or$1 = /* @__PURE__ */ new Map(), Ts(0, Zm)), Uc$1(or$1, t, oo$2).set(e, n);
31508
- }, ko$1 = (t, e, n) => {
31508
+ }, ko$2 = (t, e, n) => {
31509
31509
  if (t === 0)
31510
31510
  return T__namespace.createRelativePositionFromTypeIndex(e, 0, -1);
31511
31511
  let r = e._first === null ? null : (
@@ -31705,11 +31705,11 @@ Actual: ` + p3.attribValue
31705
31705
  }, l = () => {
31706
31706
  const c3 = te.getState(s.state), d = t.getLocalState() || {};
31707
31707
  if (s.hasFocus()) {
31708
- const u = o(s.state), f3 = ko$1(
31708
+ const u = o(s.state), f3 = ko$2(
31709
31709
  u.anchor,
31710
31710
  c3.type,
31711
31711
  c3.binding.mapping
31712
- ), p3 = ko$1(
31712
+ ), p3 = ko$2(
31713
31713
  u.head,
31714
31714
  c3.type,
31715
31715
  c3.binding.mapping
@@ -36335,7 +36335,7 @@ Actual: ` + p3.attribValue
36335
36335
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36336
36336
  */
36337
36337
  processCollaborationMigrations() {
36338
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.15"), !this.options.ydoc) return;
36338
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.17"), !this.options.ydoc) return;
36339
36339
  let r = this.options.ydoc.getMap("meta").get("version");
36340
36340
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36341
36341
  const o = nl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -42683,7 +42683,7 @@ Actual: ` + p3.attribValue
42683
42683
  bottom: "top",
42684
42684
  top: "bottom"
42685
42685
  };
42686
- function uo$1(t) {
42686
+ function uo$2(t) {
42687
42687
  return t.replace(/left|right|bottom|top/g, function(e) {
42688
42688
  return hv[e];
42689
42689
  });
@@ -42865,13 +42865,13 @@ Actual: ` + p3.attribValue
42865
42865
  function Cv(t) {
42866
42866
  if (rt$1(t) === js)
42867
42867
  return [];
42868
- var e = uo$1(t);
42868
+ var e = uo$2(t);
42869
42869
  return [Pl$1(t), e, Pl$1(e)];
42870
42870
  }
42871
42871
  function Sv(t) {
42872
42872
  var e = t.state, n = t.options, r = t.name;
42873
42873
  if (!e.modifiersData[r]._skip) {
42874
- for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = rt$1(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] : Cv(g)), y = [g].concat(C).reduce(function(qe2, Ne2) {
42874
+ for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = rt$1(g), w = b === g, C = l || (w || !h3 ? [uo$2(g)] : Cv(g)), y = [g].concat(C).reduce(function(qe2, Ne2) {
42875
42875
  return qe2.concat(rt$1(Ne2) === js ? kv(e, {
42876
42876
  placement: Ne2,
42877
42877
  boundary: d,
@@ -42888,8 +42888,8 @@ Actual: ` + p3.attribValue
42888
42888
  altBoundary: f3,
42889
42889
  padding: c3
42890
42890
  }), ee = se ? j ? Ue : De$1 : j ? We$2 : Te$1;
42891
- S[ce2] > k[ce2] && (ee = uo$1(ee));
42892
- var ne = uo$1(ee), ve2 = [];
42891
+ S[ce2] > k[ce2] && (ee = uo$2(ee));
42892
+ var ne = uo$2(ee), ve2 = [];
42893
42893
  if (i3 && ve2.push(ae2[$] <= 0), a && ve2.push(ae2[ee] <= 0, ae2[ne] <= 0), ve2.every(function(qe2) {
42894
42894
  return qe2;
42895
42895
  })) {
@@ -46724,7 +46724,7 @@ ${t}
46724
46724
  return true;
46725
46725
  }
46726
46726
  return false;
46727
- }, zt$1 = typeof window < "u" ? window : {}, jt$1 = /* @__PURE__ */ new WeakMap(), uo = /auto|scroll/, Oc = /^tb|vertical/, Pc = /msie|trident/i.test(zt$1.navigator && zt$1.navigator.userAgent), Ce = function(e) {
46727
+ }, zt$1 = typeof window < "u" ? window : {}, jt$1 = /* @__PURE__ */ new WeakMap(), uo$1 = /auto|scroll/, Oc = /^tb|vertical/, Pc = /msie|trident/i.test(zt$1.navigator && zt$1.navigator.userAgent), Ce = function(e) {
46728
46728
  return parseFloat(e || "0");
46729
46729
  }, ut = function(e, t, n) {
46730
46730
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = false), new _c((n ? t : e) || 0, (n ? e : t) || 0);
@@ -46738,7 +46738,7 @@ ${t}
46738
46738
  return jt$1.get(e);
46739
46739
  if (Ei(e))
46740
46740
  return jt$1.set(e, fo), fo;
46741
- var n = getComputedStyle(e), r = vr(e) && e.ownerSVGElement && e.getBBox(), o = !Pc && n.boxSizing === "border-box", i3 = Oc.test(n.writingMode || ""), s = !r && uo.test(n.overflowY || ""), l = !r && uo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c3 = r ? 0 : Ce(n.paddingRight), d = r ? 0 : Ce(n.paddingBottom), h3 = r ? 0 : Ce(n.paddingLeft), p3 = r ? 0 : Ce(n.borderTopWidth), b = r ? 0 : Ce(n.borderRightWidth), f3 = r ? 0 : Ce(n.borderBottomWidth), m = r ? 0 : Ce(n.borderLeftWidth), v = h3 + c3, u = a + d, $ = m + b, A = p3 + f3, y = l ? e.offsetHeight - A - e.clientHeight : 0, F3 = s ? e.offsetWidth - $ - e.clientWidth : 0, P3 = o ? v + $ : 0, g = o ? u + A : 0, w = r ? r.width : Ce(n.width) - P3 - F3, z = r ? r.height : Ce(n.height) - g - y, S = w + v + F3 + $, N3 = z + u + y + A, M3 = Je$1({
46741
+ var n = getComputedStyle(e), r = vr(e) && e.ownerSVGElement && e.getBBox(), o = !Pc && n.boxSizing === "border-box", i3 = Oc.test(n.writingMode || ""), s = !r && uo$1.test(n.overflowY || ""), l = !r && uo$1.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c3 = r ? 0 : Ce(n.paddingRight), d = r ? 0 : Ce(n.paddingBottom), h3 = r ? 0 : Ce(n.paddingLeft), p3 = r ? 0 : Ce(n.borderTopWidth), b = r ? 0 : Ce(n.borderRightWidth), f3 = r ? 0 : Ce(n.borderBottomWidth), m = r ? 0 : Ce(n.borderLeftWidth), v = h3 + c3, u = a + d, $ = m + b, A = p3 + f3, y = l ? e.offsetHeight - A - e.clientHeight : 0, F3 = s ? e.offsetWidth - $ - e.clientWidth : 0, P3 = o ? v + $ : 0, g = o ? u + A : 0, w = r ? r.width : Ce(n.width) - P3 - F3, z = r ? r.height : Ce(n.height) - g - y, S = w + v + F3 + $, N3 = z + u + y + A, M3 = Je$1({
46742
46742
  devicePixelContentBoxSize: ut(Math.round(w * devicePixelRatio), Math.round(z * devicePixelRatio), i3),
46743
46743
  borderBoxSize: ut(S, N3, i3),
46744
46744
  contentBoxSize: ut(w, z, i3),
@@ -46874,7 +46874,7 @@ ${t}
46874
46874
  return zt$1.removeEventListener(n, t.listener, true);
46875
46875
  }), this.stopped = true);
46876
46876
  }, e;
46877
- }(), er = new Vc(), go$1 = function(e) {
46877
+ }(), er = new Vc(), go = function(e) {
46878
46878
  !Xt$1 && e > 0 && er.start(), Xt$1 += e, !Xt$1 && er.stop();
46879
46879
  }, Uc = function(e) {
46880
46880
  return !vr(e) && !Ic(e) && getComputedStyle(e).display === "inline";
@@ -46907,10 +46907,10 @@ ${t}
46907
46907
  Wt$1.set(t, r);
46908
46908
  }, e.observe = function(t, n, r) {
46909
46909
  var o = Wt$1.get(t), i3 = o.observationTargets.length === 0;
46910
- mo(o.observationTargets, n) < 0 && (i3 && Ze.push(o), o.observationTargets.push(new Gc(n, r && r.box)), go$1(1), er.schedule());
46910
+ mo(o.observationTargets, n) < 0 && (i3 && Ze.push(o), o.observationTargets.push(new Gc(n, r && r.box)), go(1), er.schedule());
46911
46911
  }, e.unobserve = function(t, n) {
46912
46912
  var r = Wt$1.get(t), o = mo(r.observationTargets, n), i3 = r.observationTargets.length === 1;
46913
- o >= 0 && (i3 && Ze.splice(Ze.indexOf(r), 1), r.observationTargets.splice(o, 1), go$1(-1));
46913
+ o >= 0 && (i3 && Ze.splice(Ze.indexOf(r), 1), r.observationTargets.splice(o, 1), go(-1));
46914
46914
  }, e.disconnect = function(t) {
46915
46915
  var n = this, r = Wt$1.get(t);
46916
46916
  r.observationTargets.slice().forEach(function(o) {
@@ -46960,7 +46960,7 @@ ${t}
46960
46960
  this.elHandlersMap.has(t) && (this.elHandlersMap.delete(t), this.observer.unobserve(t));
46961
46961
  }
46962
46962
  }
46963
- const bo$1 = new Yc(), wo = /* @__PURE__ */ defineComponent({
46963
+ const bo = new Yc(), wo = /* @__PURE__ */ defineComponent({
46964
46964
  name: "ResizeObserver",
46965
46965
  props: {
46966
46966
  onResize: Function
@@ -46982,9 +46982,9 @@ ${t}
46982
46982
  ro$1("resize-observer", "$el can not be observed (it may be a text node).");
46983
46983
  return;
46984
46984
  }
46985
- o.nextElementSibling !== null && (bo$1.registerHandler(o.nextElementSibling, r), t = true);
46985
+ o.nextElementSibling !== null && (bo.registerHandler(o.nextElementSibling, r), t = true);
46986
46986
  }), onBeforeUnmount(() => {
46987
- t && bo$1.unregisterHandler(n.$el.nextElementSibling);
46987
+ t && bo.unregisterHandler(n.$el.nextElementSibling);
46988
46988
  });
46989
46989
  },
46990
46990
  render() {
@@ -47166,7 +47166,7 @@ ${t}
47166
47166
  })
47167
47167
  ]);
47168
47168
  }
47169
- }), Qc = /^(\d|\.)+$/, yo = /(\d|\.)+/;
47169
+ }), Qc = /^(\d|\.)+$/, yo$1 = /(\d|\.)+/;
47170
47170
  function qt$1(e, {
47171
47171
  c: t = 1,
47172
47172
  offset: n = 0,
@@ -47180,8 +47180,8 @@ ${t}
47180
47180
  const o = (Number(e) + n) * t;
47181
47181
  return r ? o === 0 ? "0" : `${o}px` : `${o}`;
47182
47182
  } else {
47183
- const o = yo.exec(e);
47184
- return o ? e.replace(yo, String((Number(o[0]) + n) * t)) : e;
47183
+ const o = yo$1.exec(e);
47184
+ return o ? e.replace(yo$1, String((Number(o[0]) + n) * t)) : e;
47185
47185
  }
47186
47186
  return e;
47187
47187
  }
@@ -47876,8 +47876,8 @@ ${t}
47876
47876
  function Nf() {
47877
47877
  return [];
47878
47878
  }
47879
- var Hf = Object.prototype, jf = Hf.propertyIsEnumerable, ko = Object.getOwnPropertySymbols, Wf = ko ? function(e) {
47880
- return e == null ? [] : (e = Object(e), Df(ko(e), function(t) {
47879
+ var Hf = Object.prototype, jf = Hf.propertyIsEnumerable, ko$1 = Object.getOwnPropertySymbols, Wf = ko$1 ? function(e) {
47880
+ return e == null ? [] : (e = Object(e), Df(ko$1(e), function(t) {
47881
47881
  return jf.call(e, t);
47882
47882
  }));
47883
47883
  } : Nf;
@@ -51980,9 +51980,9 @@ ${t}
51980
51980
  return d ? (u = o ? o + d : d, this._events[u] && c3(this, u)) : (this._events = new n(), this._eventsCount = 0), this;
51981
51981
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = o, s.EventEmitter = s, t.exports = s;
51982
51982
  })(Ye);
51983
- var Ot = Ye.exports;
51984
- const Nt = /* @__PURE__ */ qo$1(Ot);
51985
- function zt(t) {
51983
+ var Nt = Ye.exports;
51984
+ const zt = /* @__PURE__ */ qo$1(Nt);
51985
+ function Pt(t) {
51986
51986
  let l = t;
51987
51987
  for (; l; ) {
51988
51988
  const o = window.getComputedStyle(l).overflowY;
@@ -51992,9 +51992,9 @@ ${t}
51992
51992
  }
51993
51993
  return document.scrollingElement || document.documentElement;
51994
51994
  }
51995
- function Pt(t, l = { behavior: "smooth", block: "start" }) {
51995
+ function Vt(t, l = { behavior: "smooth", block: "start" }) {
51996
51996
  if (!t) return;
51997
- const o = zt(t), n = o.getBoundingClientRect(), i3 = t.getBoundingClientRect().top - n.top + o.scrollTop;
51997
+ const o = Pt(t), n = o.getBoundingClientRect(), i3 = t.getBoundingClientRect().top - n.top + o.scrollTop;
51998
51998
  o.scrollTo({
51999
51999
  top: l.block === "start" ? i3 : i3 - o.clientHeight + t.offsetHeight,
52000
52000
  behavior: l.behavior
@@ -52070,49 +52070,49 @@ ${t}
52070
52070
  onActivate: ee,
52071
52071
  onDeactivate: _e2
52072
52072
  };
52073
- }, Vt = { class: "alignment-buttons" }, Wt = ["innerHTML"], jt = ["innerHTML"], Ut = ["innerHTML"], qt = ["innerHTML"], Gt = {
52073
+ }, Wt = { class: "alignment-buttons" }, jt = ["innerHTML"], Ut = ["innerHTML"], qt = ["innerHTML"], Gt = ["innerHTML"], Kt = {
52074
52074
  __name: "AlignmentButtons",
52075
52075
  emits: ["select"],
52076
52076
  setup(t, { emit: l }) {
52077
52077
  const o = l, n = (e) => {
52078
52078
  o("select", e);
52079
52079
  };
52080
- return (e, i3) => (openBlock(), createElementBlock("div", Vt, [
52080
+ return (e, i3) => (openBlock(), createElementBlock("div", Wt, [
52081
52081
  createBaseVNode("div", {
52082
52082
  class: "button-icon",
52083
52083
  onClick: i3[0] || (i3[0] = (c3) => n("left")),
52084
52084
  innerHTML: unref(Ur).alignLeft
52085
- }, null, 8, Wt),
52085
+ }, null, 8, jt),
52086
52086
  createBaseVNode("div", {
52087
52087
  class: "button-icon",
52088
52088
  onClick: i3[1] || (i3[1] = (c3) => n("center")),
52089
52089
  innerHTML: unref(Ur).alignCenter
52090
- }, null, 8, jt),
52090
+ }, null, 8, Ut),
52091
52091
  createBaseVNode("div", {
52092
52092
  class: "button-icon",
52093
52093
  onClick: i3[2] || (i3[2] = (c3) => n("right")),
52094
52094
  innerHTML: unref(Ur).alignRight
52095
- }, null, 8, Ut),
52095
+ }, null, 8, qt),
52096
52096
  createBaseVNode("div", {
52097
52097
  class: "button-icon",
52098
52098
  onClick: i3[3] || (i3[3] = (c3) => n("justify")),
52099
52099
  innerHTML: unref(Ur).alignJustify
52100
- }, null, 8, qt)
52100
+ }, null, 8, Gt)
52101
52101
  ]));
52102
52102
  }
52103
- }, Kt = /* @__PURE__ */ vk(Gt, [["__scopeId", "data-v-d6fae878"]]), Xt = { class: "link-input-ctn" }, Zt = {
52103
+ }, Xt = /* @__PURE__ */ vk(Kt, [["__scopeId", "data-v-d6fae878"]]), Zt = { class: "link-input-ctn" }, Yt = {
52104
52104
  key: 0,
52105
52105
  class: "link-title"
52106
- }, Yt = {
52106
+ }, Jt = {
52107
52107
  key: 1,
52108
52108
  class: "link-title"
52109
- }, Jt = {
52109
+ }, Qt = {
52110
52110
  key: 2,
52111
52111
  class: "link-title"
52112
- }, Qt = { key: 3 }, en = { class: "input-row" }, tn = ["innerHTML"], nn = ["onKeydown"], on$1 = ["innerHTML"], sn = { class: "input-row link-buttons" }, ln = ["innerHTML"], an = {
52112
+ }, en = { key: 3 }, tn = { class: "input-row" }, nn = ["innerHTML"], on$1 = ["onKeydown"], sn = ["innerHTML"], ln = { class: "input-row link-buttons" }, an = ["innerHTML"], rn = {
52113
52113
  key: 4,
52114
52114
  class: "input-row go-to-anchor clickable"
52115
- }, rn = {
52115
+ }, cn = {
52116
52116
  __name: "LinkInput",
52117
52117
  props: {
52118
52118
  initialText: {
@@ -52168,14 +52168,14 @@ ${t}
52168
52168
  };
52169
52169
  return onMounted(() => {
52170
52170
  n.showInput && D3();
52171
- }), (p3, C) => (openBlock(), createElementBlock("div", Xt, [
52172
- t.href ? g.value ? (openBlock(), createElementBlock("div", Yt, "Page anchor")) : (openBlock(), createElementBlock("div", Jt, "Edit link")) : (openBlock(), createElementBlock("div", Zt, "Add link")),
52173
- t.showInput && !g.value ? (openBlock(), createElementBlock("div", Qt, [
52174
- createBaseVNode("div", en, [
52171
+ }), (p3, C) => (openBlock(), createElementBlock("div", Zt, [
52172
+ t.href ? g.value ? (openBlock(), createElementBlock("div", Jt, "Page anchor")) : (openBlock(), createElementBlock("div", Qt, "Edit link")) : (openBlock(), createElementBlock("div", Yt, "Add link")),
52173
+ t.showInput && !g.value ? (openBlock(), createElementBlock("div", en, [
52174
+ createBaseVNode("div", tn, [
52175
52175
  createBaseVNode("div", {
52176
52176
  class: "input-icon",
52177
52177
  innerHTML: unref(Ur).linkInput
52178
- }, null, 8, tn),
52178
+ }, null, 8, nn),
52179
52179
  withDirectives(createBaseVNode("input", {
52180
52180
  type: "text",
52181
52181
  placeholder: "Type or paste a link",
@@ -52185,16 +52185,16 @@ ${t}
52185
52185
  withKeys(withModifiers(i3, ["stop", "prevent"]), ["enter"]),
52186
52186
  C[1] || (C[1] = (A) => s.value = false)
52187
52187
  ]
52188
- }, null, 42, nn), [
52188
+ }, null, 42, on$1), [
52189
52189
  [vModelText, d.value]
52190
52190
  ]),
52191
52191
  createBaseVNode("div", {
52192
52192
  class: normalizeClass(["open-link-icon", { disabled: !r.value }]),
52193
52193
  innerHTML: unref(Ur).openLink,
52194
52194
  onClick: M3
52195
- }, null, 10, on$1)
52195
+ }, null, 10, sn)
52196
52196
  ]),
52197
- createBaseVNode("div", sn, [
52197
+ createBaseVNode("div", ln, [
52198
52198
  t.href ? (openBlock(), createElementBlock("button", {
52199
52199
  key: 0,
52200
52200
  class: "remove-btn",
@@ -52203,7 +52203,7 @@ ${t}
52203
52203
  createBaseVNode("div", {
52204
52204
  class: "remove-btn__icon",
52205
52205
  innerHTML: unref(Ur).removeLink
52206
- }, null, 8, ln),
52206
+ }, null, 8, an),
52207
52207
  C[3] || (C[3] = createTextVNode(" Remove "))
52208
52208
  ])) : createCommentVNode("", true),
52209
52209
  y.value ? (openBlock(), createElementBlock("button", {
@@ -52212,14 +52212,14 @@ ${t}
52212
52212
  onClick: i3
52213
52213
  }, toDisplayString(b.value), 3)) : createCommentVNode("", true)
52214
52214
  ])
52215
- ])) : g.value ? (openBlock(), createElementBlock("div", an, [
52215
+ ])) : g.value ? (openBlock(), createElementBlock("div", rn, [
52216
52216
  createBaseVNode("a", {
52217
52217
  onClick: C[2] || (C[2] = withModifiers((...A) => t.goToAnchor && t.goToAnchor(...A), ["stop", "prevent"]))
52218
52218
  }, "Go to " + toDisplayString(t.href.startsWith("#_") ? t.href.substring(2) : t.href), 1)
52219
52219
  ])) : createCommentVNode("", true)
52220
52220
  ]));
52221
52221
  }
52222
- }, cn = /* @__PURE__ */ vk(rn, [["__scopeId", "data-v-6990d5b2"]]), dn = { class: "document-mode" }, un = ["onClick"], mn = { class: "document-mode-column icon-column" }, pn = ["innerHTML"], fn = { class: "document-mode-column text-column" }, hn = { class: "document-mode-type" }, gn = { class: "document-mode-description" }, vn = {
52222
+ }, dn = /* @__PURE__ */ vk(cn, [["__scopeId", "data-v-6990d5b2"]]), un = { class: "document-mode" }, mn = ["onClick"], pn = { class: "document-mode-column icon-column" }, fn = ["innerHTML"], hn = { class: "document-mode-column text-column" }, gn = { class: "document-mode-type" }, vn = { class: "document-mode-description" }, yn = {
52223
52223
  __name: "DocumentMode",
52224
52224
  props: {
52225
52225
  options: {
@@ -52231,28 +52231,28 @@ ${t}
52231
52231
  const o = l, n = (e) => {
52232
52232
  o("select", e);
52233
52233
  };
52234
- return (e, i3) => (openBlock(), createElementBlock("div", dn, [
52234
+ return (e, i3) => (openBlock(), createElementBlock("div", un, [
52235
52235
  (openBlock(true), createElementBlock(Fragment, null, renderList(t.options, (c3) => (openBlock(), createElementBlock("div", {
52236
52236
  class: normalizeClass(["option-item", { disabled: c3.disabled }]),
52237
52237
  onClick: (s) => n(c3)
52238
52238
  }, [
52239
- createBaseVNode("div", mn, [
52239
+ createBaseVNode("div", pn, [
52240
52240
  createBaseVNode("div", {
52241
52241
  class: "icon-column__icon",
52242
52242
  innerHTML: c3.icon
52243
- }, null, 8, pn)
52243
+ }, null, 8, fn)
52244
52244
  ]),
52245
- createBaseVNode("div", fn, [
52246
- createBaseVNode("div", hn, toDisplayString(c3.label), 1),
52247
- createBaseVNode("div", gn, toDisplayString(c3.description), 1)
52245
+ createBaseVNode("div", hn, [
52246
+ createBaseVNode("div", gn, toDisplayString(c3.label), 1),
52247
+ createBaseVNode("div", vn, toDisplayString(c3.description), 1)
52248
52248
  ])
52249
- ], 10, un))), 256))
52249
+ ], 10, mn))), 256))
52250
52250
  ]));
52251
52251
  }
52252
- }, yn = /* @__PURE__ */ vk(vn, [["__scopeId", "data-v-f86e1477"]]), bn = {
52252
+ }, bn = /* @__PURE__ */ vk(yn, [["__scopeId", "data-v-f86e1477"]]), kn = {
52253
52253
  key: 0,
52254
52254
  class: "linked-style-buttons"
52255
- }, kn = ["onClick"], wn = {
52255
+ }, wn = ["onClick"], Cn = {
52256
52256
  __name: "LinkedStyle",
52257
52257
  props: {
52258
52258
  editor: {
@@ -52265,7 +52265,7 @@ ${t}
52265
52265
  const o = l, n = t, e = (i3) => {
52266
52266
  o("select", i3);
52267
52267
  };
52268
- return (i3, c3) => n.editor ? (openBlock(), createElementBlock("div", bn, [
52268
+ return (i3, c3) => n.editor ? (openBlock(), createElementBlock("div", kn, [
52269
52269
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(qk)(t.editor), (s) => (openBlock(), createElementBlock("div", {
52270
52270
  class: "style-item",
52271
52271
  onClick: (a) => e(s)
@@ -52274,10 +52274,10 @@ ${t}
52274
52274
  class: "style-name",
52275
52275
  style: normalizeStyle(unref(Yb)(s, null, false))
52276
52276
  }, toDisplayString(s.definition.attrs.name), 5)
52277
- ], 8, kn))), 256))
52277
+ ], 8, wn))), 256))
52278
52278
  ])) : createCommentVNode("", true);
52279
52279
  }
52280
- }, Cn = /* @__PURE__ */ vk(wn, [["__scopeId", "data-v-97e3296a"]]), _n = ["onClick"], xn = ["innerHTML"], En = ["innerHTML"], Sn = {
52280
+ }, _n = /* @__PURE__ */ vk(Cn, [["__scopeId", "data-v-97e3296a"]]), xn = ["onClick"], En = ["innerHTML"], Sn = ["innerHTML"], Tn = {
52281
52281
  __name: "IconGridRow",
52282
52282
  props: {
52283
52283
  icons: {
@@ -52309,17 +52309,17 @@ ${t}
52309
52309
  class: "option__icon",
52310
52310
  innerHTML: r.icon,
52311
52311
  style: normalizeStyle(r.style)
52312
- }, null, 12, xn),
52312
+ }, null, 12, En),
52313
52313
  e.value(r) ? (openBlock(), createElementBlock("div", {
52314
52314
  key: 0,
52315
52315
  class: "option__check",
52316
52316
  innerHTML: unref(Ur).colorOptionCheck,
52317
52317
  style: normalizeStyle(i3(r.value, b))
52318
- }, null, 12, En)) : createCommentVNode("", true)
52319
- ], 8, _n))), 128))
52318
+ }, null, 12, Sn)) : createCommentVNode("", true)
52319
+ ], 8, xn))), 128))
52320
52320
  ]))), 128));
52321
52321
  }
52322
- }, qe = /* @__PURE__ */ vk(Sn, [["__scopeId", "data-v-6a2a9a40"]]), Tn = { class: "option-grid-ctn" }, An = {
52322
+ }, qe = /* @__PURE__ */ vk(Tn, [["__scopeId", "data-v-6a2a9a40"]]), An = { class: "option-grid-ctn" }, Fn = {
52323
52323
  __name: "IconGrid",
52324
52324
  props: {
52325
52325
  icons: {
@@ -52340,7 +52340,7 @@ ${t}
52340
52340
  const o = l, n = (e) => {
52341
52341
  o("select", e);
52342
52342
  };
52343
- return (e, i3) => (openBlock(), createElementBlock("div", Tn, [
52343
+ return (e, i3) => (openBlock(), createElementBlock("div", An, [
52344
52344
  createVNode(qe, {
52345
52345
  icons: t.icons,
52346
52346
  "active-color": t.activeColor,
@@ -52356,7 +52356,7 @@ ${t}
52356
52356
  ], 64)) : createCommentVNode("", true)
52357
52357
  ]));
52358
52358
  }
52359
- }, Fn = /* @__PURE__ */ vk(An, [["__scopeId", "data-v-fa2949d8"]]), In = (t) => {
52359
+ }, In = /* @__PURE__ */ vk(Fn, [["__scopeId", "data-v-fa2949d8"]]), Ln = (t) => {
52360
52360
  t.expand.value = false;
52361
52361
  }, f = (t, l = null) => ({
52362
52362
  label: l,
@@ -52369,10 +52369,10 @@ ${t}
52369
52369
  }
52370
52370
  }), Oe = (t, l, o = []) => {
52371
52371
  const n = (e) => {
52372
- l.iconColor.value = e, t.emitCommand({ item: l, argument: e }), In(l);
52372
+ l.iconColor.value = e, t.emitCommand({ item: l, argument: e }), Ln(l);
52373
52373
  };
52374
52374
  return h("div", {}, [
52375
- h(Fn, {
52375
+ h(In, {
52376
52376
  icons: Je,
52377
52377
  customIcons: o,
52378
52378
  activeColor: l.iconColor,
@@ -52452,7 +52452,7 @@ ${t}
52452
52452
  f("#DFCDF2"),
52453
52453
  f("#A91DFF")
52454
52454
  ]
52455
- ], Ln = () => Je.flat().map((t) => t.value), Mn = { class: "toolbar-table-grid-wrapper" }, Dn = ["data-cols", "data-rows", "onClick"], $n = { class: "toolbar-table-grid-value" }, Hn = {
52455
+ ], Mn = () => Je.flat().map((t) => t.value), Dn = { class: "toolbar-table-grid-wrapper" }, $n = ["data-cols", "data-rows", "onClick"], Hn = { class: "toolbar-table-grid-value" }, Bn = {
52456
52456
  __name: "TableGrid",
52457
52457
  emits: ["select", "clickoutside"],
52458
52458
  setup(t, { emit: l }) {
@@ -52469,7 +52469,7 @@ ${t}
52469
52469
  }, c3 = ({ cols: s, rows: a }) => {
52470
52470
  o("select", { cols: s, rows: a });
52471
52471
  };
52472
- return (s, a) => (openBlock(), createElementBlock("div", Mn, [
52472
+ return (s, a) => (openBlock(), createElementBlock("div", Dn, [
52473
52473
  createBaseVNode("div", {
52474
52474
  class: "toolbar-table-grid",
52475
52475
  onMouseover: i3,
@@ -52483,13 +52483,13 @@ ${t}
52483
52483
  "data-rows": d,
52484
52484
  "data-item": "true",
52485
52485
  onClick: withModifiers((r) => c3({ cols: u, rows: d }), ["stop", "prevent"])
52486
- }, null, 8, Dn)), 64))
52486
+ }, null, 8, $n)), 64))
52487
52487
  ], 64))), 64))
52488
52488
  ], 32),
52489
- createBaseVNode("div", $n, toDisplayString(n.value) + " x " + toDisplayString(e.value), 1)
52489
+ createBaseVNode("div", Hn, toDisplayString(n.value) + " x " + toDisplayString(e.value), 1)
52490
52490
  ]));
52491
52491
  }
52492
- }, Bn = /* @__PURE__ */ vk(Hn, [["__scopeId", "data-v-06352ab9"]]), Rn = { class: "toolbar-table-actions" }, On = ["onClick"], Nn = { class: "toolbar-table-actions__icon" }, zn = ["innerHTML"], Pn = { class: "toolbar-table-actions__label" }, Vn = {
52492
+ }, Rn = /* @__PURE__ */ vk(Bn, [["__scopeId", "data-v-06352ab9"]]), On = { class: "toolbar-table-actions" }, Nn = ["onClick"], zn = { class: "toolbar-table-actions__icon" }, Pn = ["innerHTML"], Vn = { class: "toolbar-table-actions__label" }, Wn = {
52493
52493
  __name: "TableActions",
52494
52494
  props: {
52495
52495
  options: {
@@ -52501,25 +52501,25 @@ ${t}
52501
52501
  const o = l, n = (e) => {
52502
52502
  o("select", { command: e.command });
52503
52503
  };
52504
- return (e, i3) => (openBlock(), createElementBlock("div", Rn, [
52504
+ return (e, i3) => (openBlock(), createElementBlock("div", On, [
52505
52505
  (openBlock(true), createElementBlock(Fragment, null, renderList(t.options, (c3) => (openBlock(), createElementBlock("div", {
52506
52506
  class: normalizeClass(["toolbar-table-actions__item", { "toolbar-table-actions__item--border": c3.bottomBorder }]),
52507
52507
  onClick: (s) => n(c3)
52508
52508
  }, [
52509
- createBaseVNode("div", Nn, [
52509
+ createBaseVNode("div", zn, [
52510
52510
  createBaseVNode("div", {
52511
52511
  class: "toolbar-table-actions__icon-wrapper",
52512
52512
  innerHTML: c3.icon
52513
- }, null, 8, zn)
52513
+ }, null, 8, Pn)
52514
52514
  ]),
52515
- createBaseVNode("div", Pn, toDisplayString(c3.label), 1)
52516
- ], 10, On))), 256))
52515
+ createBaseVNode("div", Vn, toDisplayString(c3.label), 1)
52516
+ ], 10, Nn))), 256))
52517
52517
  ]));
52518
52518
  }
52519
- }, Wn = /* @__PURE__ */ vk(Vn, [["__scopeId", "data-v-9a702d7f"]]), jn = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
52519
+ }, jn = /* @__PURE__ */ vk(Wn, [["__scopeId", "data-v-9a702d7f"]]), Un = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
52520
52520
  `, re = (t) => {
52521
52521
  t.expand.value = false;
52522
- }, Un = (t, l = false, o, n, e) => {
52522
+ }, qn = (t, l = false, o, n, e) => {
52523
52523
  const i3 = x({
52524
52524
  type: "button",
52525
52525
  name: "bold",
@@ -52694,7 +52694,7 @@ ${t}
52694
52694
  });
52695
52695
  function y(m) {
52696
52696
  return h("div", {}, [
52697
- h(cn, {
52697
+ h(dn, {
52698
52698
  onSubmit: ({ href: F3 }) => {
52699
52699
  re(m), m.attributes.value.link = { href: F3 };
52700
52700
  const X3 = { ...m, command: "toggleLink" };
@@ -52704,7 +52704,7 @@ ${t}
52704
52704
  goToAnchor: () => {
52705
52705
  if (re(m), !t.activeEditor || !m.attributes.value?.href) return;
52706
52706
  const F3 = m.attributes.value?.href?.slice(1), fe2 = t.activeEditor.element.querySelector(`a[name='${F3}']`);
52707
- fe2 && Pt(fe2);
52707
+ fe2 && Vt(fe2);
52708
52708
  }
52709
52709
  })
52710
52710
  ]);
@@ -52741,7 +52741,7 @@ ${t}
52741
52741
  });
52742
52742
  function D3(m) {
52743
52743
  return h("div", {}, [
52744
- h(Bn, {
52744
+ h(Rn, {
52745
52745
  onSelect: (F3) => {
52746
52746
  t.emitCommand({ item: m, argument: F3 }), re(m);
52747
52747
  }
@@ -52821,7 +52821,7 @@ ${t}
52821
52821
  }
52822
52822
  ];
52823
52823
  function A(m) {
52824
- return h(Wn, {
52824
+ return h(jn, {
52825
52825
  options: C,
52826
52826
  onSelect: (S) => {
52827
52827
  re(m);
@@ -52844,7 +52844,7 @@ ${t}
52844
52844
  {
52845
52845
  type: "render",
52846
52846
  render: () => h("div", {}, [
52847
- h(Kt, {
52847
+ h(Xt, {
52848
52848
  onSelect: (S) => {
52849
52849
  re(H3);
52850
52850
  const F3 = { ...H3, command: "setTextAlign" };
@@ -53056,7 +53056,7 @@ ${t}
53056
53056
  ];
53057
53057
  function Ie2(m) {
53058
53058
  const S = Fe2(n, _e2);
53059
- return h(yn, {
53059
+ return h(bn, {
53060
53060
  options: S,
53061
53061
  onSelect: (F3) => {
53062
53062
  re(m);
@@ -53112,7 +53112,7 @@ ${t}
53112
53112
  t.emitCommand({ item: F3, argument: S });
53113
53113
  };
53114
53114
  return h("div", {}, [
53115
- h(Cn, {
53115
+ h(_n, {
53116
53116
  editor: t.activeEditor,
53117
53117
  onSelect: m
53118
53118
  })
@@ -53128,7 +53128,7 @@ ${t}
53128
53128
  }
53129
53129
  }), pe2 = (m, S) => {
53130
53130
  if (S.value.toString() === m)
53131
- return h("div", { innerHTML: jn, class: "dropdown-select-icon" });
53131
+ return h("div", { innerHTML: Un, class: "dropdown-select-icon" });
53132
53132
  }, ae2 = x({
53133
53133
  type: "dropdown",
53134
53134
  name: "lineHeight",
@@ -53229,10 +53229,10 @@ ${t}
53229
53229
  defaultItems: Me2,
53230
53230
  overflowItems: xe2.filter((m) => m.type !== "separator")
53231
53231
  };
53232
- }, qn = [".jpg", ".jpeg", ".png", "image/jpeg", "image/png"], Gn = () => {
53232
+ }, Gn = [".jpg", ".jpeg", ".png", "image/jpeg", "image/png"], Kn = () => {
53233
53233
  let t = document.createElement("input");
53234
53234
  t.type = "file";
53235
- let l = qn;
53235
+ let l = Gn;
53236
53236
  return t.accept = l.join(","), () => new Promise((n, e) => {
53237
53237
  t.onchange = async () => {
53238
53238
  const i3 = t.files;
@@ -53241,13 +53241,13 @@ ${t}
53241
53241
  return n(c3 ? { file: c3 } : null);
53242
53242
  }, t.oncancel = () => n(null), t.onerror = e, t.click();
53243
53243
  });
53244
- }, Kn = (t) => new Promise((l, o) => {
53244
+ }, Xn = (t) => new Promise((l, o) => {
53245
53245
  let n = new FileReader();
53246
53246
  n.onload = (e) => l(e.target.result), n.onerror = o, setTimeout(() => n.readAsDataURL(t), 250);
53247
- }), Xn = (t, l) => new Promise((o, n) => {
53247
+ }), Zn = (t, l) => new Promise((o, n) => {
53248
53248
  const e = new window.Image();
53249
53249
  e.onload = () => {
53250
- const i3 = document.createElement("canvas"), { width: c3, height: s } = Zn(
53250
+ const i3 = document.createElement("canvas"), { width: c3, height: s } = Yn(
53251
53251
  e.width,
53252
53252
  e.height,
53253
53253
  l
@@ -53264,21 +53264,21 @@ ${t}
53264
53264
  o({ file: u, width: c3, height: s });
53265
53265
  });
53266
53266
  }, e.onerror = (i3) => n(i3), e.src = typeof t == "string" ? t : URL.createObjectURL(t);
53267
- }), Zn = (t, l, o) => {
53267
+ }), Yn = (t, l, o) => {
53268
53268
  const { width: n, height: e } = o.getMaxContentSize();
53269
53269
  if (!n || !e) return { width: t, height: l };
53270
53270
  let i3 = t, c3 = l;
53271
53271
  const s = t / l;
53272
53272
  return l > e && (c3 = e, i3 = Math.round(e * s)), i3 > n && (i3 = n, c3 = Math.round(n / s)), { width: i3, height: c3 };
53273
- }, Yn = async ({ editor: t, view: l, file: o }) => {
53274
- let n = typeof t.options.handleImageUpload == "function" ? t.options.handleImageUpload : Kn;
53273
+ }, Jn = async ({ editor: t, view: l, file: o }) => {
53274
+ let n = typeof t.options.handleImageUpload == "function" ? t.options.handleImageUpload : Xn;
53275
53275
  if ((o.size / (1024 * 1024)).toFixed(4) > 5) {
53276
53276
  window.alert("Image size must be less than 5MB");
53277
53277
  return;
53278
53278
  }
53279
53279
  let i3, c3;
53280
53280
  try {
53281
- const r = await Xn(o, t);
53281
+ const r = await Zn(o, t);
53282
53282
  i3 = r.width, c3 = r.height, o = r.file;
53283
53283
  } catch (r) {
53284
53284
  console.warn("Error processing image:", r);
@@ -53311,7 +53311,7 @@ ${t}
53311
53311
  );
53312
53312
  };
53313
53313
  var L, Qe, ge, Ne, et, tt, ze, nt, he;
53314
- class go extends Nt {
53314
+ class vo extends zt {
53315
53315
  constructor(o) {
53316
53316
  super();
53317
53317
  He(this, L);
@@ -53358,8 +53358,8 @@ ${t}
53358
53358
  this.superdoc.toggleRuler();
53359
53359
  },
53360
53360
  startImageUpload: async ({ item: o22, argument: n22 }) => {
53361
- let i3 = await Gn()();
53362
- i3?.file && Yn({
53361
+ let i3 = await Kn()();
53362
+ i3?.file && Jn({
53363
53363
  editor: this.activeEditor,
53364
53364
  view: this.activeEditor.view,
53365
53365
  file: i3.file
@@ -53486,7 +53486,7 @@ ${t}
53486
53486
  L = /* @__PURE__ */ new WeakSet(), Qe = function() {
53487
53487
  this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length && (this.config.toolbarGroups = Object.keys(this.config.groups));
53488
53488
  }, ge = /* @__PURE__ */ new WeakMap(), Ne = function(o, n, e = false) {
53489
- const i3 = document.documentElement.clientWidth, { defaultItems: c3, overflowItems: s } = Un(o, e, i3, this.role, n);
53489
+ const i3 = document.documentElement.clientWidth, { defaultItems: c3, overflowItems: s } = qn(o, e, i3, this.role, n);
53490
53490
  let a = [
53491
53491
  ...c3.map((u) => u.name.value),
53492
53492
  ...s.map((u) => u.name.value)
@@ -53502,7 +53502,7 @@ ${t}
53502
53502
  i3 && (i3.defaultLabel.value = o);
53503
53503
  }, tt = function() {
53504
53504
  if (!this.activeEditor || !this.activeEditor.converter || !this.activeEditor.converter.docHiglightColors.size) return;
53505
- const o = this.toolbarItems.find((s) => s.name.value === "highlight"), n = Ln(), e = 7, i3 = Array.from(this.activeEditor.converter.docHiglightColors).reduce((s, a, d) => {
53505
+ const o = this.toolbarItems.find((s) => s.name.value === "highlight"), n = Mn(), e = 7, i3 = Array.from(this.activeEditor.converter.docHiglightColors).reduce((s, a, d) => {
53506
53506
  const u = Math.floor(d / e);
53507
53507
  return s[u] || (s[u] = []), n.includes(a) || s[u].push(f(a)), s;
53508
53508
  }, []), c3 = {
@@ -53523,7 +53523,7 @@ ${t}
53523
53523
  let i3 = o.command;
53524
53524
  i3 in this.activeEditor?.commands && (this.activeEditor.commands[i3](n), typeof e == "function" && e(n), this.updateToolbarState());
53525
53525
  };
53526
- function Jn(t, l) {
53526
+ function Qn(t, l) {
53527
53527
  if (!t.value || !l?.value?.options?.scale) return;
53528
53528
  const o = l.value.options.scale, n = t.value.getBoundingClientRect(), e = t.value.querySelectorAll(".pagination-break-wrapper");
53529
53529
  let i3;
@@ -53535,7 +53535,7 @@ ${t}
53535
53535
  }
53536
53536
  });
53537
53537
  }
53538
- const Qn = (t, l) => {
53538
+ const eo = (t, l) => {
53539
53539
  const o = t.clientY, n = t.clientX, { view: e } = l, i3 = e.dom.getBoundingClientRect();
53540
53540
  let c3 = {
53541
53541
  left: 0,
@@ -53554,7 +53554,7 @@ ${t}
53554
53554
  );
53555
53555
  e.dispatch(u), e.focus();
53556
53556
  }
53557
- }, eo = { class: "numbering" }, Se = 200, to = "flex-end", no = {
53557
+ }, to = { class: "numbering" }, Se = 200, no = "flex-end", oo = {
53558
53558
  __name: "Ruler",
53559
53559
  props: {
53560
53560
  orientation: {
@@ -53629,7 +53629,7 @@ ${t}
53629
53629
  }, ce2 = () => {
53630
53630
  c3.value = "#CCC";
53631
53631
  }, de2 = () => r.value.side === "left" ? r.value.x / 96 : (a.value.width * 96 - r.value.x) / 96, se = computed(() => ({
53632
- "--alignment": to,
53632
+ "--alignment": no,
53633
53633
  "--ruler-handle-color": c3.value,
53634
53634
  "--ruler-handle-active-color": s.value
53635
53635
  }));
@@ -53664,7 +53664,7 @@ ${t}
53664
53664
  class: normalizeClass(B.className),
53665
53665
  style: normalizeStyle(p3.value(B))
53666
53666
  }, [
53667
- createBaseVNode("div", eo, toDisplayString(B.numbering), 1),
53667
+ createBaseVNode("div", to, toDisplayString(B.numbering), 1),
53668
53668
  (openBlock(true), createElementBlock(Fragment, null, renderList(B.elements, (R) => (openBlock(), createElementBlock("div", {
53669
53669
  class: normalizeClass(R.className),
53670
53670
  style: normalizeStyle(p3.value(R))
@@ -53677,10 +53677,10 @@ ${t}
53677
53677
  ], 6))), 256))
53678
53678
  ], 4));
53679
53679
  }
53680
- }, oo = /* @__PURE__ */ vk(no, [["__scopeId", "data-v-ad77036c"]]), io = { class: "super-editor-container" }, so = {
53680
+ }, io = /* @__PURE__ */ vk(oo, [["__scopeId", "data-v-ad77036c"]]), so = { class: "super-editor-container" }, lo = {
53681
53681
  key: 1,
53682
53682
  class: "placeholder-editor"
53683
- }, lo = { class: "placeholder-title" }, ao = {
53683
+ }, ao = { class: "placeholder-title" }, ro = {
53684
53684
  __name: "SuperEditor",
53685
53685
  props: {
53686
53686
  documentId: {
@@ -53755,7 +53755,7 @@ ${t}
53755
53755
  fonts: H3,
53756
53756
  ...n.options
53757
53757
  }), i3.value.on("paginationUpdate", () => {
53758
- Jn(s, i3);
53758
+ Qn(s, i3);
53759
53759
  }), i3.value.on("collaborationReady", () => {
53760
53760
  setTimeout(() => {
53761
53761
  e.value = true;
@@ -53774,7 +53774,7 @@ ${t}
53774
53774
  b(), (n.options?.suppressSkeletonLoader || !n.options?.collaborationProvider) && (e.value = true);
53775
53775
  });
53776
53776
  const M3 = (p3) => {
53777
- p3.target.classList.contains("ProseMirror") || Qn(p3, i3.value);
53777
+ p3.target.classList.contains("ProseMirror") || eo(p3, i3.value);
53778
53778
  }, D3 = ({ side: p3, value: C }) => {
53779
53779
  if (!i3.value) return;
53780
53780
  const A = i3.value.getPageStyles(), { pageMargins: H3 } = A, N3 = { ...H3, [p3]: C };
@@ -53782,8 +53782,8 @@ ${t}
53782
53782
  };
53783
53783
  return onBeforeUnmount(() => {
53784
53784
  d(), i3.value?.destroy(), i3.value = null;
53785
- }), (p3, C) => (openBlock(), createElementBlock("div", io, [
53786
- t.options.rulers && i3.value ? (openBlock(), createBlock(oo, {
53785
+ }), (p3, C) => (openBlock(), createElementBlock("div", so, [
53786
+ t.options.rulers && i3.value ? (openBlock(), createBlock(io, {
53787
53787
  key: 0,
53788
53788
  class: "ruler",
53789
53789
  editor: i3.value,
@@ -53803,8 +53803,8 @@ ${t}
53803
53803
  class: "editor-element super-editor__element"
53804
53804
  }, null, 512)
53805
53805
  ], 544),
53806
- e.value ? createCommentVNode("", true) : (openBlock(), createElementBlock("div", so, [
53807
- createBaseVNode("div", lo, [
53806
+ e.value ? createCommentVNode("", true) : (openBlock(), createElementBlock("div", lo, [
53807
+ createBaseVNode("div", ao, [
53808
53808
  createVNode(unref(_p), {
53809
53809
  text: "",
53810
53810
  style: { width: "60%" }
@@ -53850,7 +53850,7 @@ ${t}
53850
53850
  ]))
53851
53851
  ]));
53852
53852
  }
53853
- }, vo = /* @__PURE__ */ vk(ao, [["__scopeId", "data-v-ff8f86f4"]]), ro = ["innerHTML"], co = {
53853
+ }, yo = /* @__PURE__ */ vk(ro, [["__scopeId", "data-v-ff8f86f4"]]), co = ["innerHTML"], uo = {
53854
53854
  __name: "SuperInput",
53855
53855
  props: {
53856
53856
  modelValue: {
@@ -53907,7 +53907,7 @@ ${t}
53907
53907
  id: "currentContent",
53908
53908
  style: { display: "none" },
53909
53909
  innerHTML: t.modelValue
53910
- }, null, 8, ro),
53910
+ }, null, 8, co),
53911
53911
  createBaseVNode("div", {
53912
53912
  ref_key: "editorElem",
53913
53913
  ref: i3,
@@ -53915,7 +53915,7 @@ ${t}
53915
53915
  }, null, 512)
53916
53916
  ], 2));
53917
53917
  }
53918
- }, bo = /* @__PURE__ */ vk(co, [["__scopeId", "data-v-4d5cff52"]]);
53918
+ }, ko = /* @__PURE__ */ vk(uo, [["__scopeId", "data-v-4d5cff52"]]);
53919
53919
  const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
53920
53920
  const PDF = "application/pdf";
53921
53921
  const HTML = "text/html";
@@ -66752,7 +66752,7 @@ ${style2}
66752
66752
  createBaseVNode("div", {
66753
66753
  class: normalizeClass(["comment-entry", { "input-active": __props.isFocused }])
66754
66754
  }, [
66755
- createVNode(unref(bo), {
66755
+ createVNode(unref(ko), {
66756
66756
  class: "superdoc-field",
66757
66757
  placeholder: "Add a comment",
66758
66758
  modelValue: unref(currentCommentText),
@@ -68534,7 +68534,7 @@ ${style2}
68534
68534
  onPageLoaded: unref(handlePageReady),
68535
68535
  onBypassSelection: handlePdfClick
68536
68536
  }, null, 8, ["document-data", "onPageLoaded"])) : createCommentVNode("", true),
68537
- doc2.type === unref(DOCX) ? (openBlock(), createBlock(unref(vo), {
68537
+ doc2.type === unref(DOCX) ? (openBlock(), createBlock(unref(yo), {
68538
68538
  key: 1,
68539
68539
  "file-source": doc2.data,
68540
68540
  state: doc2.state,
@@ -68668,7 +68668,7 @@ ${style2}
68668
68668
  this.config.colors = shuffleArray(this.config.colors);
68669
68669
  this.userColorMap = /* @__PURE__ */ new Map();
68670
68670
  this.colorIndex = 0;
68671
- this.version = "0.10.15";
68671
+ this.version = "0.10.17";
68672
68672
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68673
68673
  this.superdocId = config.superdocId || v4();
68674
68674
  this.colors = this.config.colors;
@@ -68852,7 +68852,7 @@ ${style2}
68852
68852
  superdoc: this,
68853
68853
  ...moduleConfig
68854
68854
  };
68855
- this.toolbar = new go(config);
68855
+ this.toolbar = new vo(config);
68856
68856
  this.toolbar.on("superdoc-command", this.onToolbarCommand.bind(this));
68857
68857
  this.once("editorCreate", () => this.toolbar.updateToolbarState());
68858
68858
  }