@editora/core 1.0.8 → 1.0.10

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 (58) hide show
  1. package/README.md +6 -1
  2. package/dist/{ApprovalWorkflowPlugin.native-C3jtAYjG.mjs → ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs} +136 -133
  3. package/dist/BlockquotePlugin.native-57_Xcjl1.mjs +212 -0
  4. package/dist/{BlocksLibraryPlugin.native-HMWKxWNs.mjs → BlocksLibraryPlugin.native-5sdsXsiE.mjs} +90 -87
  5. package/dist/{BoldPlugin.native-BAzzoqU5.mjs → BoldPlugin.native-CSh_LiIJ.mjs} +11 -7
  6. package/dist/CapitalizationPlugin.native-DLV4oPmB.mjs +159 -0
  7. package/dist/ChecklistPlugin.native-BS-kMz9O.mjs +371 -0
  8. package/dist/{CitationsPlugin.native-BnU0qCwR.mjs → CitationsPlugin.native-DQgoCd1B.mjs} +132 -129
  9. package/dist/ClearFormattingPlugin.native-DIS6AN2t.mjs +172 -0
  10. package/dist/CodePlugin.native-C5l1IeSS.mjs +4570 -0
  11. package/dist/{ContentRulesPlugin.native-nBLQ8QFZ.mjs → ContentRulesPlugin.native-vPx5nC73.mjs} +105 -102
  12. package/dist/{DataBindingPlugin.native-jQ1JPRTp.mjs → DataBindingPlugin.native-BoXwghTz.mjs} +49 -46
  13. package/dist/DirectionPlugin.native-Bl-QLFzO.mjs +153 -0
  14. package/dist/{DocSchemaPlugin.native-CHOge18O.mjs → DocSchemaPlugin.native-DUSVRHqT.mjs} +55 -52
  15. package/dist/{EmbedIframePlugin.native-DKJx2OS7.mjs → EmbedIframePlugin.native-BF_-LjTq.mjs} +287 -115
  16. package/dist/HeadingPlugin.native-DZdvubrQ.mjs +249 -0
  17. package/dist/{HistoryPlugin.native-TDnVMsEO.mjs → HistoryPlugin.native-D2wl32jV.mjs} +88 -103
  18. package/dist/{ItalicPlugin.native-CQjjDyUL.mjs → ItalicPlugin.native-CmnlwFHB.mjs} +15 -11
  19. package/dist/MathPlugin.native-NwWPHVmj.mjs +369 -0
  20. package/dist/{MediaManagerPlugin.native-BiXiK8FC.mjs → MediaManagerPlugin.native-eOsTJFpw.mjs} +204 -202
  21. package/dist/MergeTagPlugin.native-BzRVoD9-.mjs +580 -0
  22. package/dist/{PIIRedactionPlugin.native-DcsjmtV1.mjs → PIIRedactionPlugin.native-g7j4jOmm.mjs} +158 -155
  23. package/dist/{SlashCommandsPlugin.native-CmxvMEaE.mjs → SlashCommandsPlugin.native-BiN6ODw5.mjs} +2 -2
  24. package/dist/{SmartPastePlugin.native-BOKKtF07.mjs → SmartPastePlugin.native-CZAEHkyt.mjs} +127 -124
  25. package/dist/{SpecialCharactersPlugin.native-CZDato89.mjs → SpecialCharactersPlugin.native-DaG4b19I.mjs} +100 -76
  26. package/dist/{StrikethroughPlugin.native-0Be7j49s.mjs → StrikethroughPlugin.native-V0TL4F48.mjs} +12 -26
  27. package/dist/TemplatePlugin.native-DLjFUaPW.mjs +1150 -0
  28. package/dist/{TranslationWorkflowPlugin.native-Bz6jDGvj.mjs → TranslationWorkflowPlugin.native-DdF16tgT.mjs} +104 -101
  29. package/dist/{UnderlinePlugin.native-QpIcK4L2.mjs → UnderlinePlugin.native-DZzg23rv.mjs} +8 -4
  30. package/dist/editora.min.js +1 -1
  31. package/dist/editora.umd.js +1 -1
  32. package/dist/index-CPMGUZfB.js +10 -0
  33. package/dist/{index-DqC57IEH.mjs → index-DBoj6QfW.mjs} +17 -15
  34. package/dist/index.cjs.js +1 -1
  35. package/dist/index.esm.js +2 -2
  36. package/dist/inlineFormatting-DJ0-NZtx.mjs +97 -0
  37. package/dist/plugin-loader.js +37 -37
  38. package/dist/webcomponent-core.js +18 -16
  39. package/dist/webcomponent-core.min.css +1 -1
  40. package/dist/webcomponent-core.min.js +139 -62
  41. package/dist/webcomponent.cjs.js +1 -1
  42. package/dist/webcomponent.esm.js +1 -1
  43. package/dist/webcomponent.js +50 -48
  44. package/dist/webcomponent.min.css +1 -1
  45. package/dist/webcomponent.min.js +1174 -1071
  46. package/package.json +11 -5
  47. package/LICENSE +0 -21
  48. package/dist/BlockquotePlugin.native-JFmOLsxN.mjs +0 -48
  49. package/dist/CapitalizationPlugin.native-DOMsh5R7.mjs +0 -79
  50. package/dist/ChecklistPlugin.native-nuSSEFNI.mjs +0 -309
  51. package/dist/ClearFormattingPlugin.native-Bq_XcTh2.mjs +0 -140
  52. package/dist/CodePlugin.native-DlpTPdkd.mjs +0 -2691
  53. package/dist/DirectionPlugin.native-CDnbdNyl.mjs +0 -130
  54. package/dist/HeadingPlugin.native-DrLYwQnQ.mjs +0 -64
  55. package/dist/MathPlugin.native-f_mDp8VL.mjs +0 -292
  56. package/dist/MergeTagPlugin.native-C3eOfEgw.mjs +0 -559
  57. package/dist/TemplatePlugin.native-CrpfKRJ8.mjs +0 -602
  58. package/dist/index-D1LOqg5C.js +0 -10
@@ -1,4 +1,4 @@
1
- const E = ".rte-content, .editora-content", ie = "[data-editora-editor], .rte-editor, .editora-editor, editora-editor", fe = "__editoraCommandEditorRoot", he = "rte-doc-schema-styles", m = "rte-doc-schema-panel", v = "document-schema", T = "doc-schema", R = "docSchema", w = ':is([data-theme="dark"], .dark, .editora-theme-dark, .rte-theme-dark)', Me = {
1
+ const E = ".rte-content, .editora-content", ie = "[data-editora-editor], .rte-editor, .editora-editor, editora-editor", fe = "__editoraCommandEditorRoot", he = "rte-doc-schema-styles", m = "rte-doc-schema-panel", v = "document-schema", T = "doc-schema", R = "docSchema", w = ':is([data-theme="dark"], .dark, .editora-theme-dark, .rte-theme-dark)', Ae = {
2
2
  panelTitle: "Document Schema",
3
3
  panelAriaLabel: "Document schema panel",
4
4
  schemaLabel: "Schema",
@@ -21,11 +21,11 @@ const E = ".rte-content, .editora-content", ie = "[data-editora-editor], .rte-ed
21
21
  unknownHeadingMessage: "Heading is not part of selected schema",
22
22
  insertedSummaryPrefix: "Inserted missing sections"
23
23
  }, u = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new Set();
24
- let W = 0, Ae = 0, ge = 0, k = null, y = null, q = null, z = null, B = null, H = null, K = null;
24
+ let W = 0, Le = 0, ge = 0, k = null, y = null, q = null, z = null, B = null, H = null, K = null;
25
25
  function M(e) {
26
26
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
27
27
  }
28
- function Le(e) {
28
+ function Oe(e) {
29
29
  return e.replace(/\u00A0/g, " ").replace(/\s+/g, " ").trim();
30
30
  }
31
31
  function P(e, t, n) {
@@ -85,7 +85,7 @@ function pe() {
85
85
  }
86
86
  ];
87
87
  }
88
- function Oe(e, t, n) {
88
+ function Re(e, t, n) {
89
89
  var f, h;
90
90
  const r = n(e.title || "");
91
91
  if (!r) return null;
@@ -111,11 +111,11 @@ function Se(e, t) {
111
111
  s.add(l);
112
112
  const f = Array.isArray(o.sections) ? o.sections : [], h = [], b = /* @__PURE__ */ new Set();
113
113
  if (f.forEach(($, g) => {
114
- const x = Oe($, g, t);
114
+ const x = Re($, g, t);
115
115
  if (!x) return;
116
- let N = x.id, Ie = 1;
116
+ let N = x.id, Me = 1;
117
117
  for (; b.has(N); )
118
- N = `${x.id}-${Ie++}`;
118
+ N = `${x.id}-${Me++}`;
119
119
  b.add(N), h.push({
120
120
  ...x,
121
121
  id: N
@@ -140,7 +140,7 @@ function Se(e, t) {
140
140
  }
141
141
  function Z(e = {}) {
142
142
  var o, a, c;
143
- const t = e.normalizeText || Le, n = Se(e.schemas, t), r = t(e.defaultSchemaId || ""), s = n.some((i) => i.id === r) ? r : ((o = n[0]) == null ? void 0 : o.id) || null;
143
+ const t = e.normalizeText || Oe, n = Se(e.schemas, t), r = t(e.defaultSchemaId || ""), s = n.some((i) => i.id === r) ? r : ((o = n[0]) == null ? void 0 : o.id) || null;
144
144
  return {
145
145
  schemas: n,
146
146
  defaultSchemaId: s,
@@ -148,13 +148,13 @@ function Z(e = {}) {
148
148
  debounceMs: P(Number((a = e.debounceMs) != null ? a : 260), 60, 2e3),
149
149
  maxIssues: P(Number((c = e.maxIssues) != null ? c : 80), 5, 500),
150
150
  labels: {
151
- ...Me,
151
+ ...Ae,
152
152
  ...e.labels || {}
153
153
  },
154
154
  normalizeText: t
155
155
  };
156
156
  }
157
- function Re(e) {
157
+ function He(e) {
158
158
  return {
159
159
  schemas: e.schemas.map((t) => ({
160
160
  id: t.id,
@@ -187,7 +187,7 @@ function U(e) {
187
187
  const t = e.querySelector(E);
188
188
  return t instanceof HTMLElement ? t : null;
189
189
  }
190
- function He() {
190
+ function De() {
191
191
  if (typeof window == "undefined") return null;
192
192
  const e = window[fe];
193
193
  if (!(e instanceof HTMLElement)) return null;
@@ -202,7 +202,7 @@ function He() {
202
202
  const r = e.closest(E);
203
203
  return r instanceof HTMLElement ? r : null;
204
204
  }
205
- function De(e) {
205
+ function Ne(e) {
206
206
  const t = e.closest("[data-editora-editor]");
207
207
  if (t && U(t) === e)
208
208
  return t;
@@ -220,16 +220,16 @@ function xe(e) {
220
220
  function Y(e) {
221
221
  return e ? (e.getAttribute("data-theme") || e.getAttribute("theme") || "").toLowerCase() === "dark" ? !0 : e.classList.contains("dark") || e.classList.contains("editora-theme-dark") || e.classList.contains("rte-theme-dark") : !1;
222
222
  }
223
- function Ne(e) {
223
+ function Pe(e) {
224
224
  const t = le(e);
225
225
  if (Y(t)) return !0;
226
226
  const n = t.closest("[data-theme], [theme], .dark, .editora-theme-dark, .rte-theme-dark");
227
227
  return Y(n) ? !0 : Y(document.documentElement) || Y(document.body);
228
228
  }
229
229
  function oe(e, t) {
230
- e.classList.remove("rte-doc-schema-theme-dark"), Ne(t) && e.classList.add("rte-doc-schema-theme-dark");
230
+ e.classList.remove("rte-doc-schema-theme-dark"), Pe(t) && e.classList.add("rte-doc-schema-theme-dark");
231
231
  }
232
- function Pe(e) {
232
+ function _e(e) {
233
233
  var t, n, r, s;
234
234
  for (let o = 0; o < e.length; o += 1) {
235
235
  const a = e[o];
@@ -256,7 +256,7 @@ function I(e, t = !0, n = !0) {
256
256
  const i = U(e.editorElement);
257
257
  if (i) return i;
258
258
  }
259
- const r = He();
259
+ const r = De();
260
260
  if (r) return r;
261
261
  const s = window.getSelection();
262
262
  if (s && s.rangeCount > 0) {
@@ -277,7 +277,7 @@ function I(e, t = !0, n = !0) {
277
277
  const a = document.querySelector(E);
278
278
  return a instanceof HTMLElement ? a : null;
279
279
  }
280
- function _e(e) {
280
+ function qe(e) {
281
281
  const t = e.target;
282
282
  if (t) {
283
283
  const r = t.closest(`.${m}`);
@@ -301,7 +301,7 @@ function _e(e) {
301
301
  return null;
302
302
  }
303
303
  function be(e, t, n) {
304
- const r = De(e);
304
+ const r = Ne(e);
305
305
  Array.from(
306
306
  r.querySelectorAll(
307
307
  `.rte-toolbar-button[data-command="${t}"], .editora-toolbar-button[data-command="${t}"]`
@@ -354,7 +354,7 @@ function ee(e, t) {
354
354
  const n = e.querySelector(".rte-doc-schema-live");
355
355
  n && (n.textContent = t);
356
356
  }
357
- function qe(e, t) {
357
+ function ze(e, t) {
358
358
  const n = Array.from(e.querySelectorAll("h1, h2, h3, h4, h5, h6")), r = [];
359
359
  return n.forEach((s, o) => {
360
360
  const a = t(s.textContent || "");
@@ -383,7 +383,7 @@ function ve(e, t, n) {
383
383
  });
384
384
  }), s;
385
385
  }
386
- function ze(e, t = 2) {
386
+ function Be(e, t = 2) {
387
387
  const n = e.filter((i) => i.section).map((i) => i.level), r = n.length > 0 ? n : e.map((i) => i.level);
388
388
  if (r.length === 0) return t;
389
389
  const s = /* @__PURE__ */ new Map();
@@ -397,7 +397,7 @@ function ze(e, t = 2) {
397
397
  (i.count > a || i.count === a && i.firstIndex < c || i.count === a && i.firstIndex === c && l < o) && (o = l, a = i.count, c = i.firstIndex);
398
398
  }), P(o, 1, 6);
399
399
  }
400
- function Be(e) {
400
+ function Ke(e) {
401
401
  var o;
402
402
  const t = window.getSelection();
403
403
  if (!t || t.rangeCount === 0) return null;
@@ -413,7 +413,7 @@ function Be(e) {
413
413
  referenceNode: n.startContainer.nextSibling || null
414
414
  } : null;
415
415
  }
416
- function Ke(e, t, n, r) {
416
+ function Ve(e, t, n, r) {
417
417
  var i;
418
418
  const s = ve(e, n, r), o = n.orderBySectionId.get(t.id);
419
419
  if (typeof o != "number" || s.length === 0)
@@ -438,7 +438,7 @@ function Ke(e, t, n, r) {
438
438
  }
439
439
  return { parent: e, referenceNode: null };
440
440
  }
441
- function Ve(e, t, n, r) {
441
+ function je(e, t, n, r) {
442
442
  const s = e.ownerDocument || document, o = `h${P(r, 1, 6)}`, a = s.createElement(o);
443
443
  a.setAttribute("data-doc-schema-section", t.id), a.textContent = t.title;
444
444
  const c = s.createElement("p");
@@ -456,9 +456,9 @@ function V(e, t, n, r = {}) {
456
456
  function J(e, t, n) {
457
457
  return e.replace(/\{section\}/g, t || "").replace(/\{heading\}/g, n || "").trim();
458
458
  }
459
- function je(e, t, n) {
459
+ function Ue(e, t, n) {
460
460
  var i;
461
- const r = qe(e, n.normalizeText), s = [], o = /* @__PURE__ */ new Map(), a = [];
461
+ const r = ze(e, n.normalizeText), s = [], o = /* @__PURE__ */ new Map(), a = [];
462
462
  for (let l = 0; l < r.length && !(s.length >= n.maxIssues); l += 1) {
463
463
  const d = r[l];
464
464
  if (!d.key) continue;
@@ -600,7 +600,7 @@ function G(e, t = !1) {
600
600
  n && (n.classList.remove("show"), F.set(e, !1), D(e), t && e.focus({ preventScroll: !0 }));
601
601
  }
602
602
  function ae(e) {
603
- const t = Fe(e);
603
+ const t = We(e);
604
604
  S.forEach((r, s) => {
605
605
  s !== e && G(s, !1);
606
606
  }), t.classList.add("show"), F.set(e, !0), _(e), se(e, t), D(e);
@@ -611,7 +611,7 @@ function ke(e, t) {
611
611
  const n = me(e);
612
612
  return (typeof t == "boolean" ? t : !n) ? ae(e) : G(e, !1), !0;
613
613
  }
614
- function Ue(e, t) {
614
+ function Ge(e, t) {
615
615
  if (t === e.innerHTML) return;
616
616
  const n = window.execEditorCommand || window.executeEditorCommand;
617
617
  if (typeof n == "function")
@@ -620,7 +620,7 @@ function Ue(e, t) {
620
620
  } catch (r) {
621
621
  }
622
622
  }
623
- function Ge(e) {
623
+ function Fe(e) {
624
624
  e.dispatchEvent(new Event("input", { bubbles: !0 }));
625
625
  }
626
626
  function C(e, t, n) {
@@ -636,7 +636,7 @@ function C(e, t, n) {
636
636
  suggestion: "Set `defaultSchemaId` or update schema options."
637
637
  })
638
638
  ], s.headingCount = 0, s.recognizedHeadingCount = 0, s.missingCount = 1, s.lastRunAt = (/* @__PURE__ */ new Date()).toISOString(), s.snapshot = a, _(e), D(e), s.issues;
639
- const i = je(e, c, r);
639
+ const i = Ue(e, c, r);
640
640
  return s.issues = i.issues, s.headingCount = i.headingCount, s.recognizedHeadingCount = i.recognizedHeadingCount, s.missingCount = i.missingCount, s.lastRunAt = (/* @__PURE__ */ new Date()).toISOString(), s.snapshot = a, _(e), D(e), e.dispatchEvent(
641
641
  new CustomEvent("editora:doc-schema-validation", {
642
642
  bubbles: !0,
@@ -681,11 +681,11 @@ function Te(e) {
681
681
  ), a = s.sections.filter((h) => o.includes(h.id));
682
682
  if (a.length === 0)
683
683
  return r && ee(r, t.labels.noIssuesText), !1;
684
- const c = e.innerHTML, i = ve(e, s, t.normalizeText), l = ze(i, 2), d = Be(e);
684
+ const c = e.innerHTML, i = ve(e, s, t.normalizeText), l = Be(i, 2), d = Ke(e);
685
685
  a.forEach((h) => {
686
- const b = s.strictOrder ? Ke(e, h, s, t.normalizeText) : d || { parent: e, referenceNode: null }, [O, A] = Ve(e, h, t, l);
686
+ const b = s.strictOrder ? Ve(e, h, s, t.normalizeText) : d || { parent: e, referenceNode: null }, [O, A] = je(e, h, t, l);
687
687
  b.parent.insertBefore(O, b.referenceNode), b.parent.insertBefore(A, b.referenceNode);
688
- }), Ue(e, c), Ge(e), C(e, "insert-missing-post", !0);
688
+ }), Ge(e, c), Fe(e), C(e, "insert-missing-post", !0);
689
689
  const f = a.map((h) => h.title).join(", ");
690
690
  return e.dispatchEvent(
691
691
  new CustomEvent("editora:doc-schema-insert-missing", {
@@ -697,12 +697,12 @@ function Te(e) {
697
697
  })
698
698
  ), r && ee(r, `${t.labels.insertedSummaryPrefix}: ${f}`), !0;
699
699
  }
700
- function Fe(e) {
700
+ function We(e) {
701
701
  const t = S.get(e);
702
702
  if (t) return t;
703
703
  const n = u.get(e) || k || Z();
704
704
  p(e, n);
705
- const r = `rte-doc-schema-panel-${Ae++}`, s = `${r}-schema`, o = document.createElement("section");
705
+ const r = `rte-doc-schema-panel-${Le++}`, s = `${r}-schema`, o = document.createElement("section");
706
706
  return o.className = m, o.id = r, o.setAttribute("role", "dialog"), o.setAttribute("aria-modal", "false"), o.setAttribute("aria-label", n.labels.panelAriaLabel), o.innerHTML = `
707
707
  <header class="rte-doc-schema-header">
708
708
  <h2 class="rte-doc-schema-title">${M(n.labels.panelTitle)}</h2>
@@ -756,15 +756,18 @@ function Fe(e) {
756
756
  a.key === "Escape" && (a.preventDefault(), G(e, !0));
757
757
  }), oe(o, e), document.body.appendChild(o), S.set(e, o), F.set(e, !1), _(e), o;
758
758
  }
759
- function We(e) {
760
- const t = e.key.toLowerCase();
761
- return (e.metaKey || e.ctrlKey) && e.altKey && e.shiftKey && t === "g";
759
+ function Ie(e) {
760
+ return typeof e.key == "string" ? e.key.toLowerCase() : "";
762
761
  }
763
762
  function Ye(e) {
764
- const t = e.key.toLowerCase();
765
- return (e.metaKey || e.ctrlKey) && e.altKey && e.shiftKey && t === "j";
763
+ const t = Ie(e);
764
+ return (e.metaKey || e.ctrlKey) && e.altKey && e.shiftKey && t === "g";
766
765
  }
767
766
  function Je(e) {
767
+ const t = Ie(e);
768
+ return (e.metaKey || e.ctrlKey) && e.altKey && e.shiftKey && t === "j";
769
+ }
770
+ function Xe(e) {
768
771
  k = e, q || (q = (t) => {
769
772
  Q();
770
773
  const n = t.target, r = n == null ? void 0 : n.closest(E);
@@ -782,33 +785,33 @@ function Je(e) {
782
785
  if (t.defaultPrevented) return;
783
786
  const n = t.target;
784
787
  if (n != null && n.closest(`.${m}`) && t.key !== "Escape") return;
785
- const r = _e(t);
788
+ const r = qe(t);
786
789
  if (!r) return;
787
790
  const s = u.get(r) || k || e;
788
791
  if (p(r, s), u.set(r, s), y = r, t.key === "Escape" && me(r)) {
789
792
  t.preventDefault(), G(r, !0);
790
793
  return;
791
794
  }
792
- if (We(t)) {
795
+ if (Ye(t)) {
793
796
  t.preventDefault(), t.stopPropagation(), ke(r);
794
797
  return;
795
798
  }
796
- Ye(t) && (t.preventDefault(), t.stopPropagation(), C(r, "shortcut", !0));
799
+ Je(t) && (t.preventDefault(), t.stopPropagation(), C(r, "shortcut", !0));
797
800
  }, document.addEventListener("keydown", B, !0)), H || (H = () => {
798
801
  Q(), S.forEach((t, n) => {
799
802
  !n.isConnected || !t.isConnected || (oe(t, n), se(n, t));
800
803
  });
801
804
  }, window.addEventListener("scroll", H, !0), window.addEventListener("resize", H)), !K && typeof MutationObserver != "undefined" && document.body && (K = new MutationObserver((t) => {
802
- Pe(t) && Q();
805
+ _e(t) && Q();
803
806
  }), K.observe(document.body, {
804
807
  childList: !0,
805
808
  subtree: !0
806
809
  }));
807
810
  }
808
- function Xe() {
811
+ function Ze() {
809
812
  q && (document.removeEventListener("focusin", q, !0), q = null), z && (document.removeEventListener("input", z, !0), z = null), B && (document.removeEventListener("keydown", B, !0), B = null), H && (window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H), H = null), K && (K.disconnect(), K = null), S.forEach((t) => t.remove()), S.clear(), Array.from(ne).forEach((t) => ue(t)), k = null, y = null;
810
813
  }
811
- function Ze() {
814
+ function Qe() {
812
815
  if (typeof document == "undefined" || document.getElementById(he)) return;
813
816
  const e = document.createElement("style");
814
817
  e.id = he, e.textContent = `
@@ -1182,9 +1185,9 @@ function Ze() {
1182
1185
  }
1183
1186
  `, document.head.appendChild(e);
1184
1187
  }
1185
- const Qe = (e = {}) => {
1188
+ const et = (e = {}) => {
1186
1189
  const t = Z(e), n = /* @__PURE__ */ new Set();
1187
- return Ze(), {
1190
+ return Qe(), {
1188
1191
  name: "docSchema",
1189
1192
  toolbar: [
1190
1193
  {
@@ -1264,7 +1267,7 @@ const Qe = (e = {}) => {
1264
1267
  setDocSchemaOptions: (r, s) => {
1265
1268
  const o = I(s, !1, !1);
1266
1269
  if (!o || !r || typeof r != "object") return !1;
1267
- const a = u.get(o) || t, c = X.get(o) || Re(a), i = {
1270
+ const a = u.get(o) || t, c = X.get(o) || He(a), i = {
1268
1271
  ...c,
1269
1272
  ...r,
1270
1273
  labels: {
@@ -1306,7 +1309,7 @@ const Qe = (e = {}) => {
1306
1309
  init: function(s) {
1307
1310
  W += 1;
1308
1311
  const o = this && typeof this.__pluginConfig == "object" ? { ...e, ...this.__pluginConfig } : e, a = Z(o);
1309
- Je(a);
1312
+ Xe(a);
1310
1313
  const c = I(
1311
1314
  s != null && s.editorElement ? { editorElement: s.editorElement } : void 0,
1312
1315
  !1,
@@ -1315,11 +1318,11 @@ const Qe = (e = {}) => {
1315
1318
  c && (y = c, n.add(c), p(c, a), u.set(c, a), X.set(c, o), D(c), C(c, "init", !0));
1316
1319
  },
1317
1320
  destroy: () => {
1318
- n.forEach((r) => ue(r)), n.clear(), W = Math.max(0, W - 1), !(W > 0) && Xe();
1321
+ n.forEach((r) => ue(r)), n.clear(), W = Math.max(0, W - 1), !(W > 0) && Ze();
1319
1322
  }
1320
1323
  };
1321
1324
  };
1322
1325
  export {
1323
- Qe as DocSchemaPlugin
1326
+ et as DocSchemaPlugin
1324
1327
  };
1325
- //# sourceMappingURL=DocSchemaPlugin.native-CHOge18O.mjs.map
1328
+ //# sourceMappingURL=DocSchemaPlugin.native-DUSVRHqT.mjs.map