@editora/core 1.0.18 → 1.0.20

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 (36) hide show
  1. package/dist/{A11yCheckerPlugin.native-DIKuCeFw.mjs → A11yCheckerPlugin.native-qW_njhLY.mjs} +2 -2
  2. package/dist/{AnchorPlugin.native-DXZdK3zr.mjs → AnchorPlugin.native-Drmxhy98.mjs} +37 -37
  3. package/dist/{BlockquotePlugin.native-57_Xcjl1.mjs → BlockquotePlugin.native-D8jjGd0c.mjs} +19 -19
  4. package/dist/{CapitalizationPlugin.native-C-HRbXGh.mjs → CapitalizationPlugin.native-Mh-kUy-x.mjs} +17 -17
  5. package/dist/{ChecklistPlugin.native-NVrBUkaL.mjs → ChecklistPlugin.native-DLedNLsb.mjs} +31 -31
  6. package/dist/{CodePlugin.native-BH-K4xmW.mjs → CodePlugin.native-BcVqm5MS.mjs} +64 -65
  7. package/dist/{CodePlugin.native-hNgfXlfS.mjs → CodePlugin.native-Rgxx2Igx.mjs} +2708 -1225
  8. package/dist/{CollaborationPlugin.native-oSybCGPW.mjs → CollaborationPlugin.native-Bl3R9CRI.mjs} +1406 -1295
  9. package/dist/{CommentsPlugin.native-CLip9wAO.mjs → CommentsPlugin.native-DncTHiEe.mjs} +2 -2
  10. package/dist/{DirectionPlugin.native-Bl-QLFzO.mjs → DirectionPlugin.native-B-Zj-EAt.mjs} +33 -33
  11. package/dist/{DocumentManagerPlugin.native-iFip6s4Q.mjs → DocumentManagerPlugin.native-B8K-Oqom.mjs} +12 -11
  12. package/dist/{FontFamilyPlugin.native-M3cNQ0KA.mjs → FontFamilyPlugin.native-DLq9x046.mjs} +32 -32
  13. package/dist/{PreviewPlugin.native-CiR51jql.mjs → PreviewPlugin.native-Dv5OsffK.mjs} +49 -52
  14. package/dist/{SpellCheckPlugin.native-Bef2oTLB.mjs → SpellCheckPlugin.native-BGm2qPfn.mjs} +20 -20
  15. package/dist/{TablePlugin.native-BjIxYZ2X.mjs → TablePlugin.native-C1YZ372P.mjs} +156 -147
  16. package/dist/TemplatePlugin.native-Dwk8TgxI.mjs +628 -0
  17. package/dist/{documentManager-BcBIv5P-.mjs → documentManager-BWK_-KJp.mjs} +524 -526
  18. package/dist/editora.min.js +17 -17
  19. package/dist/editora.umd.js +17 -17
  20. package/dist/{index-XsYC_KdJ.mjs → index-BxlbmLsp.mjs} +428 -405
  21. package/dist/index-Cdy6TOCy.js +12 -0
  22. package/dist/index.cjs.js +4 -4
  23. package/dist/index.esm.js +19 -16
  24. package/dist/plugin-loader.js +13 -13
  25. package/dist/purify.es-BHa5gZB7.mjs +1481 -0
  26. package/dist/sanitizeHtml-DA0ajC6k.mjs +17 -0
  27. package/dist/webcomponent-core.js +466 -449
  28. package/dist/webcomponent-core.min.js +91 -89
  29. package/dist/webcomponent.cjs.js +1 -1
  30. package/dist/webcomponent.esm.js +2 -2
  31. package/dist/webcomponent.js +397 -380
  32. package/dist/webcomponent.min.js +968 -967
  33. package/index.d.ts +9 -0
  34. package/package.json +1 -1
  35. package/dist/TemplatePlugin.native-D6n5RUnC.mjs +0 -1176
  36. package/dist/index-_eKRBZPq.js +0 -12
@@ -501,7 +501,7 @@ const k = () => {
501
501
  {
502
502
  label: "Accessibility",
503
503
  command: "toggleA11yChecker",
504
- icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M9 6.82954C10.1652 6.4177 11 5.30646 11 4.00024C11 2.34339 9.65686 1.00024 8 1.00024C6.34315 1.00024 5 2.34339 5 4.00024C5 5.30646 5.83481 6.4177 7 6.82954V12.0002C7 13.6571 8.34315 15.0002 10 15.0002H14.9296C15.264 15.0002 15.5762 15.1673 15.7617 15.4455L18.4913 19.54C19.1914 20.5901 20.6772 20.7373 21.5696 19.8448L22.7071 18.7074C23.0976 18.3168 23.0976 17.6837 22.7071 17.2931C22.3166 16.9026 21.6834 16.9026 21.2929 17.2931L20.1554 18.4306L17.4258 14.3361C16.8694 13.5015 15.9327 13.0002 14.9296 13.0002H10C9.44772 13.0002 9 12.5525 9 12.0002V11.0002H15C15.5523 11.0002 16 10.5525 16 10.0002C16 9.44796 15.5523 9.00025 15 9.00025H9V6.82954ZM8 5.10758C7.38844 5.10758 6.89267 4.61181 6.89267 4.00024C6.89267 3.38868 7.38844 2.89291 8 2.89291C8.61157 2.89291 9.10734 3.38868 9.10734 4.00024C9.10734 4.61181 8.61157 5.10758 8 5.10758Z" fill="#0F0F0F"></path> <path d="M4.6328 9.07414C5.10517 8.78987 5.69738 9.0279 5.91645 9.53381C6.13552 10.0397 5.89604 10.6205 5.43795 10.9272C4.92993 11.2673 4.48018 11.6911 4.10882 12.1826C3.53598 12.9408 3.16922 13.8345 3.04425 14.7765C2.91928 15.7185 3.04036 16.6768 3.3957 17.5582C3.75103 18.4395 4.32852 19.2138 5.07194 19.8058C5.81535 20.3977 6.69937 20.787 7.63791 20.9359C8.57646 21.0847 9.53756 20.988 10.4276 20.6552C11.3177 20.3223 12.1065 19.7647 12.7171 19.0366C13.1129 18.5645 13.4251 18.0313 13.6428 17.46C13.8391 16.9448 14.3514 16.5813 14.8936 16.6815C15.4357 16.7816 15.8004 17.3054 15.6291 17.8295C15.3326 18.7372 14.8644 19.583 14.2468 20.3194C13.4147 21.3117 12.3399 22.0716 11.1269 22.5252C9.91394 22.9787 8.6042 23.1105 7.32518 22.9077C6.04617 22.7048 4.84148 22.1742 3.82838 21.3676C2.81528 20.561 2.02831 19.5058 1.54407 18.3047C1.05983 17.1037 0.894836 15.7977 1.06514 14.5139C1.23545 13.2302 1.73525 12.0124 2.51589 10.9791C3.09523 10.2123 3.81459 9.56654 4.6328 9.07414Z" fill="#0F0F0F"></path> </g></svg>',
504
+ icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g> <path fill-rule="evenodd" clip-rule="evenodd" d="M9 6.82954C10.1652 6.4177 11 5.30646 11 4.00024C11 2.34339 9.65686 1.00024 8 1.00024C6.34315 1.00024 5 2.34339 5 4.00024C5 5.30646 5.83481 6.4177 7 6.82954V12.0002C7 13.6571 8.34315 15.0002 10 15.0002H14.9296C15.264 15.0002 15.5762 15.1673 15.7617 15.4455L18.4913 19.54C19.1914 20.5901 20.6772 20.7373 21.5696 19.8448L22.7071 18.7074C23.0976 18.3168 23.0976 17.6837 22.7071 17.2931C22.3166 16.9026 21.6834 16.9026 21.2929 17.2931L20.1554 18.4306L17.4258 14.3361C16.8694 13.5015 15.9327 13.0002 14.9296 13.0002H10C9.44772 13.0002 9 12.5525 9 12.0002V11.0002H15C15.5523 11.0002 16 10.5525 16 10.0002C16 9.44796 15.5523 9.00025 15 9.00025H9V6.82954ZM8 5.10758C7.38844 5.10758 6.89267 4.61181 6.89267 4.00024C6.89267 3.38868 7.38844 2.89291 8 2.89291C8.61157 2.89291 9.10734 3.38868 9.10734 4.00024C9.10734 4.61181 8.61157 5.10758 8 5.10758Z" fill="#0F0F0F"></path> <path d="M4.6328 9.07414C5.10517 8.78987 5.69738 9.0279 5.91645 9.53381C6.13552 10.0397 5.89604 10.6205 5.43795 10.9272C4.92993 11.2673 4.48018 11.6911 4.10882 12.1826C3.53598 12.9408 3.16922 13.8345 3.04425 14.7765C2.91928 15.7185 3.04036 16.6768 3.3957 17.5582C3.75103 18.4395 4.32852 19.2138 5.07194 19.8058C5.81535 20.3977 6.69937 20.787 7.63791 20.9359C8.57646 21.0847 9.53756 20.988 10.4276 20.6552C11.3177 20.3223 12.1065 19.7647 12.7171 19.0366C13.1129 18.5645 13.4251 18.0313 13.6428 17.46C13.8391 16.9448 14.3514 16.5813 14.8936 16.6815C15.4357 16.7816 15.8004 17.3054 15.6291 17.8295C15.3326 18.7372 14.8644 19.583 14.2468 20.3194C13.4147 21.3117 12.3399 22.0716 11.1269 22.5252C9.91394 22.9787 8.6042 23.1105 7.32518 22.9077C6.04617 22.7048 4.84148 22.1742 3.82838 21.3676C2.81528 20.561 2.02831 19.5058 1.54407 18.3047C1.05983 17.1037 0.894836 15.7977 1.06514 14.5139C1.23545 13.2302 1.73525 12.0124 2.51589 10.9791C3.09523 10.2123 3.81459 9.56654 4.6328 9.07414Z" fill="#0F0F0F"></path> </g></svg>',
505
505
  shortcut: "Mod-Shift-Alt-a"
506
506
  }
507
507
  ],
@@ -527,4 +527,4 @@ export {
527
527
  R as suppressRule,
528
528
  F as unsuppressRule
529
529
  };
530
- //# sourceMappingURL=A11yCheckerPlugin.native-DIKuCeFw.mjs.map
530
+ //# sourceMappingURL=A11yCheckerPlugin.native-qW_njhLY.mjs.map
@@ -1,28 +1,28 @@
1
1
  import { i as z } from "./dialogHelpers-DBf7WqYH.mjs";
2
2
  import { f as D, g as S } from "./editorContainerHelpers-C7kdWnS0.mjs";
3
3
  const b = /* @__PURE__ */ new Set(), y = '[data-theme="dark"], .dark, .editora-theme-dark';
4
- function R(t, l) {
4
+ function M(t, l) {
5
5
  if (l === t.innerHTML) return;
6
6
  const i = window.execEditorCommand || window.executeEditorCommand;
7
7
  if (typeof i == "function")
8
8
  try {
9
9
  i("recordDomTransaction", t, l, t.innerHTML);
10
- } catch (n) {
10
+ } catch (r) {
11
11
  }
12
12
  }
13
- function M() {
13
+ function H() {
14
14
  if (typeof window == "undefined" || window.__anchorObserverInitialized) return;
15
15
  window.__anchorObserverInitialized = !0, new MutationObserver((l) => {
16
16
  l.forEach((i) => {
17
- i.removedNodes.forEach((n) => {
17
+ i.removedNodes.forEach((r) => {
18
18
  var a, e;
19
- if (n.nodeType === Node.ELEMENT_NODE) {
20
- const r = n;
21
- if ((a = r.classList) != null && a.contains("rte-anchor")) {
22
- const c = r.id;
19
+ if (r.nodeType === Node.ELEMENT_NODE) {
20
+ const n = r;
21
+ if ((a = n.classList) != null && a.contains("rte-anchor")) {
22
+ const c = n.id;
23
23
  c && b.delete(c);
24
24
  }
25
- const f = (e = r.querySelectorAll) == null ? void 0 : e.call(r, ".rte-anchor");
25
+ const f = (e = n.querySelectorAll) == null ? void 0 : e.call(n, ".rte-anchor");
26
26
  f == null || f.forEach((c) => {
27
27
  const u = c.id;
28
28
  u && b.delete(u);
@@ -38,33 +38,33 @@ function M() {
38
38
  function A(t) {
39
39
  return !t || t.trim().length === 0 ? { valid: !1, error: "Anchor ID cannot be empty" } : t.length > 256 ? { valid: !1, error: "Anchor ID must be less than 256 characters" } : /^[A-Za-z_]/.test(t) ? /^[A-Za-z0-9\-_]+$/.test(t) ? { valid: !0, error: "" } : { valid: !1, error: "Anchor ID can only contain letters, numbers, hyphens, and underscores" } : { valid: !1, error: "Anchor ID must start with a letter or underscore" };
40
40
  }
41
- function H() {
41
+ function R() {
42
42
  const t = D();
43
43
  if (!t) return;
44
44
  const l = S(t);
45
45
  if (!l) return;
46
- const i = l.querySelectorAll(".rte-anchor"), n = /* @__PURE__ */ new Set();
46
+ const i = l.querySelectorAll(".rte-anchor"), r = /* @__PURE__ */ new Set();
47
47
  i.forEach((a) => {
48
48
  const e = a.id;
49
- e && n.add(e);
50
- }), b.clear(), n.forEach((a) => b.add(a));
49
+ e && r.add(e);
50
+ }), b.clear(), r.forEach((a) => b.add(a));
51
51
  }
52
- function _(t) {
52
+ function I(t) {
53
53
  if (t) {
54
- const n = t.startContainer, a = n.nodeType === Node.ELEMENT_NODE ? n : n.parentElement;
54
+ const r = t.startContainer, a = r.nodeType === Node.ELEMENT_NODE ? r : r.parentElement;
55
55
  if (a != null && a.closest(y)) return !0;
56
56
  }
57
57
  const l = window.getSelection();
58
58
  if (l && l.rangeCount > 0) {
59
- const n = l.getRangeAt(0).startContainer, a = n.nodeType === Node.ELEMENT_NODE ? n : n.parentElement;
59
+ const r = l.getRangeAt(0).startContainer, a = r.nodeType === Node.ELEMENT_NODE ? r : r.parentElement;
60
60
  if (a != null && a.closest(y)) return !0;
61
61
  }
62
62
  const i = document.activeElement;
63
63
  return i != null && i.closest(y) ? !0 : document.body.matches(y) || document.documentElement.matches(y);
64
64
  }
65
- function I(t, l, i, n) {
66
- document.querySelectorAll(".rte-anchor-dialog-overlay").forEach((s) => s.remove()), H();
67
- const a = _(n), e = a ? {
65
+ function _(t, l, i, r) {
66
+ document.querySelectorAll(".rte-anchor-dialog-overlay").forEach((s) => s.remove()), R();
67
+ const a = I(r), e = a ? {
68
68
  overlay: "rgba(0, 0, 0, 0.62)",
69
69
  dialogBg: "#1f2937",
70
70
  panelBg: "#222d3a",
@@ -112,8 +112,8 @@ function I(t, l, i, n) {
112
112
  help: "#999999",
113
113
  focusRing: "rgba(0, 102, 204, 0.1)",
114
114
  errorRing: "rgba(211, 47, 47, 0.1)"
115
- }, r = document.createElement("div");
116
- z(r), r.className = "rte-anchor-dialog-overlay", r.style.cssText = `
115
+ }, n = document.createElement("div");
116
+ z(n), n.className = "rte-anchor-dialog-overlay", n.style.cssText = `
117
117
  position: fixed;
118
118
  top: 0;
119
119
  left: 0;
@@ -262,15 +262,15 @@ function I(t, l, i, n) {
262
262
  };
263
263
  const T = () => {
264
264
  const s = o.value.trim();
265
- !s || !A(s).valid || b.has(s) || (i && i(s), r.remove());
265
+ !s || !A(s).valid || b.has(s) || (i && i(s), n.remove());
266
266
  }, w = () => {
267
- r.remove();
267
+ n.remove();
268
268
  };
269
269
  d.onclick = T, h.onclick = w, p.onclick = w, o.onkeydown = (s) => {
270
270
  s.key === "Enter" ? (s.preventDefault(), T()) : s.key === "Escape" && (s.preventDefault(), w());
271
- }, r.onclick = (s) => {
272
- s.target === r && w();
273
- }, f.appendChild(u), f.appendChild(C), f.appendChild(E), r.appendChild(f), document.body.appendChild(r), setTimeout(() => o.focus(), 100);
271
+ }, n.onclick = (s) => {
272
+ s.target === n && w();
273
+ }, f.appendChild(u), f.appendChild(C), f.appendChild(E), n.appendChild(f), document.body.appendChild(n), setTimeout(() => o.focus(), 100);
274
274
  }
275
275
  function L(t, l) {
276
276
  var c;
@@ -282,26 +282,26 @@ function L(t, l) {
282
282
  if (!u || u.rangeCount === 0) return;
283
283
  i = u.getRangeAt(0);
284
284
  }
285
- let n = null, a = i.startContainer;
285
+ let r = null, a = i.startContainer;
286
286
  for (; a && a !== document.body; ) {
287
287
  if (a.nodeType === Node.ELEMENT_NODE) {
288
288
  const u = a;
289
289
  if (u.getAttribute("contenteditable") === "true") {
290
- n = u;
290
+ r = u;
291
291
  break;
292
292
  }
293
293
  }
294
294
  a = a.parentNode;
295
295
  }
296
- const e = (c = n == null ? void 0 : n.innerHTML) != null ? c : "", r = document.createElement("span");
297
- r.id = t, r.className = "rte-anchor", r.setAttribute("data-type", "anchor"), r.setAttribute("data-anchor-id", t), r.setAttribute("title", `Anchor: ${t}`), r.style.cssText = `
296
+ const e = (c = r == null ? void 0 : r.innerHTML) != null ? c : "", n = document.createElement("span");
297
+ n.id = t, n.className = "rte-anchor", n.setAttribute("data-type", "anchor"), n.setAttribute("data-anchor-id", t), n.setAttribute("title", `Anchor: ${t}`), n.style.cssText = `
298
298
  display: inline;
299
299
  position: relative;
300
300
  cursor: pointer;
301
- `, i.insertNode(r), b.add(t), i.setStart(r.nextSibling || r.parentNode, 0), i.collapse(!0);
301
+ `, i.insertNode(n), b.add(t), i.setStart(n.nextSibling || n.parentNode, 0), i.collapse(!0);
302
302
  const f = window.getSelection();
303
- if (f && (f.removeAllRanges(), f.addRange(i)), n)
304
- R(n, e), n.dispatchEvent(new Event("input", { bubbles: !0 }));
303
+ if (f && (f.removeAllRanges(), f.addRange(i)), r)
304
+ M(r, e), r.dispatchEvent(new Event("input", { bubbles: !0 }));
305
305
  else {
306
306
  const u = D();
307
307
  if (u) {
@@ -394,13 +394,13 @@ function N() {
394
394
  }
395
395
  `, document.head.appendChild(t);
396
396
  }
397
- const j = () => (typeof window != "undefined" && (M(), N()), {
397
+ const j = () => (typeof window != "undefined" && (H(), N()), {
398
398
  name: "anchor",
399
399
  toolbar: [
400
400
  {
401
401
  label: "Anchor",
402
402
  command: "insertAnchor",
403
- icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M12 8.4C13.4912 8.4 14.7 7.19117 14.7 5.7C14.7 4.20883 13.4912 3 12 3C10.5088 3 9.3 4.20883 9.3 5.7C9.3 7.19117 10.5088 8.4 12 8.4ZM12 8.4V20.9999M12 20.9999C9.61305 20.9999 7.32387 20.0518 5.63604 18.364C3.94821 16.6761 3 14.3869 3 12H5M12 20.9999C14.3869 20.9999 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12H19" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>',
403
+ icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g> <path d="M12 8.4C13.4912 8.4 14.7 7.19117 14.7 5.7C14.7 4.20883 13.4912 3 12 3C10.5088 3 9.3 4.20883 9.3 5.7C9.3 7.19117 10.5088 8.4 12 8.4ZM12 8.4V20.9999M12 20.9999C9.61305 20.9999 7.32387 20.0518 5.63604 18.364C3.94821 16.6761 3 14.3869 3 12H5M12 20.9999C14.3869 20.9999 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12H19" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>',
404
404
  shortcut: "Mod-Shift-k"
405
405
  }
406
406
  ],
@@ -411,7 +411,7 @@ const j = () => (typeof window != "undefined" && (M(), N()), {
411
411
  if (!t || t.rangeCount === 0)
412
412
  return alert("Please place your cursor where you want to insert the anchor."), !1;
413
413
  const l = t.getRangeAt(0).cloneRange();
414
- return I("add", "", (i) => {
414
+ return _("add", "", (i) => {
415
415
  L(i, l);
416
416
  }, l), !0;
417
417
  } catch (t) {
@@ -426,4 +426,4 @@ const j = () => (typeof window != "undefined" && (M(), N()), {
426
426
  export {
427
427
  j as AnchorPlugin
428
428
  };
429
- //# sourceMappingURL=AnchorPlugin.native-DXZdK3zr.mjs.map
429
+ //# sourceMappingURL=AnchorPlugin.native-Drmxhy98.mjs.map
@@ -51,7 +51,7 @@ function N(e, t) {
51
51
  const o = n.closest(k);
52
52
  return o instanceof HTMLElement && o.parentElement === e ? o : n;
53
53
  }
54
- function w(e, t) {
54
+ function y(e, t) {
55
55
  if (typeof e.intersectsNode == "function")
56
56
  try {
57
57
  return e.intersectsNode(t);
@@ -67,10 +67,10 @@ function q(e, t) {
67
67
  if (!o || n === o) return [n];
68
68
  const l = Array.from(e.children).filter(
69
69
  (r) => r instanceof HTMLElement
70
- ).filter((r) => w(t, r));
70
+ ).filter((r) => y(t, r));
71
71
  return l.length > 0 ? l : [n];
72
72
  }
73
- function S(e, t) {
73
+ function L(e, t) {
74
74
  const n = E(t), o = n == null ? void 0 : n.closest("blockquote");
75
75
  return o instanceof HTMLQuoteElement && e.contains(o) ? o : null;
76
76
  }
@@ -90,24 +90,24 @@ function h(e) {
90
90
  t.insertBefore(o, e);
91
91
  }), t.removeChild(e);
92
92
  }
93
- function y(e) {
93
+ function S(e) {
94
94
  return e.nodeType === Node.TEXT_NODE && (e.textContent || "").trim() === "";
95
95
  }
96
- function L(e) {
97
- const t = Array.from(e.childNodes).filter((o) => !y(o));
96
+ function w(e) {
97
+ const t = Array.from(e.childNodes).filter((o) => !S(o));
98
98
  if (t.length !== 1) return null;
99
99
  const n = t[0];
100
100
  return n instanceof HTMLQuoteElement ? n : null;
101
101
  }
102
- function R(e) {
102
+ function A(e) {
103
103
  const t = document.createElement("blockquote");
104
- return Array.from(e.childNodes).filter((o) => !y(o)).forEach((o) => {
104
+ return Array.from(e.childNodes).filter((o) => !S(o)).forEach((o) => {
105
105
  t.appendChild(o);
106
106
  }), t.childNodes.length || (t.innerHTML = "<br>"), e.appendChild(t), t;
107
107
  }
108
- function A(e, t) {
108
+ function R(e, t) {
109
109
  const n = Array.from(e.querySelectorAll("li")).filter(
110
- (c) => c instanceof HTMLLIElement && w(t, c)
110
+ (c) => c instanceof HTMLLIElement && y(t, c)
111
111
  ), o = new Set(n);
112
112
  return n.filter((c) => {
113
113
  var r, i;
@@ -137,18 +137,18 @@ function I(e, t, n) {
137
137
  const c = window.executeEditorCommand;
138
138
  typeof c == "function" && c("recordDomTransaction", { editor: e, beforeHTML: t, afterHTML: n });
139
139
  }
140
- function _(e) {
140
+ function x(e) {
141
141
  var T, C;
142
142
  const t = b(e);
143
143
  if (!t) return !1;
144
144
  const n = M(t);
145
145
  if (!n) return !1;
146
- const o = t.innerHTML, c = S(t, n.startContainer), l = S(t, n.endContainer), r = A(t, n), i = q(t, n), f = i.length > 0 && i.every((s) => s.tagName === "BLOCKQUOTE");
146
+ const o = t.innerHTML, c = L(t, n.startContainer), l = L(t, n.endContainer), r = R(t, n), i = q(t, n), f = i.length > 0 && i.every((s) => s.tagName === "BLOCKQUOTE");
147
147
  if (c && c === l) {
148
148
  const s = c.firstChild || c;
149
149
  h(c), g(s);
150
150
  } else if (r.length > 0) {
151
- const s = r.map(L);
151
+ const s = r.map(w);
152
152
  if (s.every(Boolean)) {
153
153
  const u = ((T = s[0]) == null ? void 0 : T.firstChild) || r[0];
154
154
  s.forEach((a) => {
@@ -157,7 +157,7 @@ function _(e) {
157
157
  } else {
158
158
  const u = r[0];
159
159
  r.forEach((a) => {
160
- L(a) || R(a);
160
+ w(a) || A(a);
161
161
  }), g(u);
162
162
  }
163
163
  } else if (f) {
@@ -174,7 +174,7 @@ function _(e) {
174
174
  const d = t.innerHTML;
175
175
  return o === d ? !1 : (I(t, o, d), H(t), !0);
176
176
  }
177
- const x = () => ({
177
+ const _ = () => ({
178
178
  name: "blockquote",
179
179
  // Schema definition for blockquote node
180
180
  nodes: {
@@ -190,7 +190,7 @@ const x = () => ({
190
190
  {
191
191
  label: "Quote",
192
192
  command: "toggleBlockquote",
193
- icon: '<svg fill="#000000" height="24px" width="24px" version="1.1" id="Icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path d="M13,11c0.6,0,1-0.4,1-1s-0.4-1-1-1c-5,0-9,4-9,9c0,2.8,2.2,5,5,5s5-2.2,5-5s-2.2-5-5-5c-0.3,0-0.7,0-1,0.1 C9.3,11.8,11,11,13,11z"></path> <path d="M23,13c-0.3,0-0.7,0-1,0.1c1.3-1.3,3-2.1,5-2.1c0.6,0,1-0.4,1-1s-0.4-1-1-1c-5,0-9,4-9,9c0,2.8,2.2,5,5,5s5-2.2,5-5 S25.8,13,23,13z"></path> </g> </g></svg>',
193
+ icon: '<svg fill="#000000" height="24px" width="24px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" xml:space="preserve"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g> <g> <path d="M13,11c0.6,0,1-0.4,1-1s-0.4-1-1-1c-5,0-9,4-9,9c0,2.8,2.2,5,5,5s5-2.2,5-5s-2.2-5-5-5c-0.3,0-0.7,0-1,0.1 C9.3,11.8,11,11,13,11z"></path> <path d="M23,13c-0.3,0-0.7,0-1,0.1c1.3-1.3,3-2.1,5-2.1c0.6,0,1-0.4,1-1s-0.4-1-1-1c-5,0-9,4-9,9c0,2.8,2.2,5,5,5s5-2.2,5-5 S25.8,13,23,13z"></path> </g> </g></svg>',
194
194
  shortcut: "Mod-Shift-9"
195
195
  }
196
196
  ],
@@ -199,7 +199,7 @@ const x = () => ({
199
199
  /**
200
200
  * Toggle blockquote formatting on current selection
201
201
  */
202
- toggleBlockquote: (e, t) => _(t)
202
+ toggleBlockquote: (e, t) => x(t)
203
203
  },
204
204
  // Keyboard shortcuts
205
205
  keymap: {
@@ -207,6 +207,6 @@ const x = () => ({
207
207
  }
208
208
  });
209
209
  export {
210
- x as BlockquotePlugin
210
+ _ as BlockquotePlugin
211
211
  };
212
- //# sourceMappingURL=BlockquotePlugin.native-57_Xcjl1.mjs.map
212
+ //# sourceMappingURL=BlockquotePlugin.native-D8jjGd0c.mjs.map
@@ -22,12 +22,12 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
22
22
  }
23
23
  const l = document.activeElement, u = l instanceof HTMLElement ? l.closest(f) : null;
24
24
  return u instanceof HTMLElement ? u : document.querySelector(f);
25
- }, S = (t) => {
25
+ }, L = (t) => {
26
26
  const e = window.getSelection();
27
27
  if (!e || e.rangeCount === 0 || e.isCollapsed) return null;
28
28
  const n = e.getRangeAt(0);
29
29
  return !t.contains(n.startContainer) || !t.contains(n.endContainer) ? null : n;
30
- }, R = (t, e) => {
30
+ }, S = (t, e) => {
31
31
  if (!e.data) return !1;
32
32
  if (typeof t.intersectsNode == "function")
33
33
  try {
@@ -37,12 +37,12 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
37
37
  }
38
38
  const n = document.createRange();
39
39
  return n.selectNodeContents(e), t.compareBoundaryPoints(Range.END_TO_START, n) < 0 && t.compareBoundaryPoints(Range.START_TO_END, n) > 0;
40
- }, L = (t, e) => {
40
+ }, R = (t, e) => {
41
41
  const n = [], r = document.createTreeWalker(t, NodeFilter.SHOW_TEXT);
42
42
  let c = r.nextNode();
43
43
  for (; c; ) {
44
44
  const l = c;
45
- if (R(e, l)) {
45
+ if (S(e, l)) {
46
46
  const u = l === e.startContainer ? e.startOffset : 0, a = l === e.endContainer ? e.endOffset : l.data.length;
47
47
  u < a && n.push({
48
48
  node: l,
@@ -54,25 +54,25 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
54
54
  c = r.nextNode();
55
55
  }
56
56
  return n;
57
- }, _ = (t) => /\p{L}/u.test(t), y = (t) => /[\p{M}'’-]/u.test(t), M = () => {
57
+ }, y = (t) => /\p{L}/u.test(t), M = (t) => /[\p{M}'’-]/u.test(t), H = () => {
58
58
  let t = !1;
59
59
  return (e) => {
60
60
  let n = "";
61
61
  return Array.from(e.text).forEach((r) => {
62
- if (_(r)) {
62
+ if (y(r)) {
63
63
  n += t ? r.toLocaleLowerCase() : r.toLocaleUpperCase(), t = !0;
64
64
  return;
65
65
  }
66
- n += r, y(r) || (t = !1);
66
+ n += r, M(r) || (t = !1);
67
67
  }), n;
68
68
  };
69
- }, H = (t) => {
69
+ }, N = (t) => {
70
70
  if (t.length === 0) return;
71
71
  const e = t[0], n = t[t.length - 1], r = window.getSelection();
72
72
  if (!r) return;
73
73
  const c = document.createRange();
74
74
  c.setStart(e.node, e.start), c.setEnd(n.node, n.end), r.removeAllRanges(), r.addRange(c);
75
- }, N = (t, e, n) => {
75
+ }, _ = (t, e, n) => {
76
76
  if (e !== n) {
77
77
  if (typeof window.execEditorCommand == "function") {
78
78
  window.execEditorCommand("recordDomTransaction", t, e, n);
@@ -84,14 +84,14 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
84
84
  } catch (r) {
85
85
  }
86
86
  }
87
- }, b = () => {
87
+ }, x = () => {
88
88
  const t = (s, o) => {
89
89
  try {
90
90
  const i = v(o);
91
91
  if (!i) return !1;
92
- const m = S(i);
92
+ const m = L(i);
93
93
  if (!m) return !1;
94
- const p = L(i, m);
94
+ const p = R(i, m);
95
95
  if (p.length === 0) return !1;
96
96
  const C = i.innerHTML;
97
97
  p.forEach((d, T) => {
@@ -99,11 +99,11 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
99
99
  d.node.replaceData(d.start, d.end - d.start, E), d.end = d.start + E.length;
100
100
  });
101
101
  const g = i.innerHTML;
102
- return C === g ? !1 : (N(i, C, g), i.dispatchEvent(new window.Event("input", { bubbles: !0 })), H(p), !0);
102
+ return C === g ? !1 : (_(i, C, g), i.dispatchEvent(new window.Event("input", { bubbles: !0 })), N(p), !0);
103
103
  } catch (i) {
104
104
  return console.error("Failed to transform capitalization:", i), !1;
105
105
  }
106
- }, e = (s, o) => t((i) => i.text.toLocaleUpperCase(), o), n = (s, o) => t((i) => i.text.toLocaleLowerCase(), o), r = (s, o) => t(M(), o), c = (s, o) => {
106
+ }, e = (s, o) => t((i) => i.text.toLocaleUpperCase(), o), n = (s, o) => t((i) => i.text.toLocaleLowerCase(), o), r = (s, o) => t(H(), o), c = (s, o) => {
107
107
  if (!s) return !1;
108
108
  switch (s) {
109
109
  case "uppercase":
@@ -139,7 +139,7 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
139
139
  // block - that style tag applies document-wide once inserted via
140
140
  // raw innerHTML into light-DOM toolbar content, so it can collide
141
141
  // with any other icon reusing the same auto-generated class name.
142
- icon: '<svg fill="#000000" width="24" height="24" viewBox="0 0 32.00 32.00" id="icon" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="0.192"></g><g id="SVGRepo_iconCarrier"><title>letter--Aa</title><path d="M23,13H18v2h5v2H19a2,2,0,0,0-2,2v2a2,2,0,0,0,2,2h6V15A2,2,0,0,0,23,13Zm0,8H19V19h4Z"></path><path d="M13,9H9a2,2,0,0,0-2,2V23H9V18h4v5h2V11A2,2,0,0,0,13,9ZM9,16V11h4v5Z"></path><rect id="_Transparent_Rectangle_" data-name="&lt;Transparent Rectangle&gt;" fill="none" width="32" height="32"></rect></g></svg>'
142
+ icon: '<svg fill="#000000" width="24" height="24" viewBox="0 0 32.00 32.00" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="0.192"></g><g><title>letter--Aa</title><path d="M23,13H18v2h5v2H19a2,2,0,0,0-2,2v2a2,2,0,0,0,2,2h6V15A2,2,0,0,0,23,13Zm0,8H19V19h4Z"></path><path d="M13,9H9a2,2,0,0,0-2,2V23H9V18h4v5h2V11A2,2,0,0,0,13,9ZM9,16V11h4v5Z"></path><rect data-name="&lt;Transparent Rectangle&gt;" fill="none" width="32" height="32"></rect></g></svg>'
143
143
  }
144
144
  ],
145
145
  commands: {
@@ -159,6 +159,6 @@ const f = '.rte-content, .editora-content, [contenteditable="true"]', w = "[data
159
159
  };
160
160
  };
161
161
  export {
162
- b as CapitalizationPlugin
162
+ x as CapitalizationPlugin
163
163
  };
164
- //# sourceMappingURL=CapitalizationPlugin.native-C-HRbXGh.mjs.map
164
+ //# sourceMappingURL=CapitalizationPlugin.native-Mh-kUy-x.mjs.map
@@ -1,15 +1,15 @@
1
- const A = "__editoraCommandEditorRoot", S = (e) => {
1
+ const A = "__editoraCommandEditorRoot", R = (e) => {
2
2
  if (!e) return null;
3
3
  const t = e.querySelector('[contenteditable="true"]');
4
4
  return t instanceof HTMLElement ? t : null;
5
- }, H = () => {
5
+ }, S = () => {
6
6
  if (typeof window == "undefined") return null;
7
7
  const e = window[A];
8
8
  if (!(e instanceof HTMLElement)) return null;
9
9
  window[A] = null;
10
10
  const t = e.closest("[data-editora-editor], .rte-editor, .editora-editor, editora-editor") || (e.matches("[data-editora-editor], .rte-editor, .editora-editor, editora-editor") ? e : null);
11
11
  if (t) {
12
- const n = S(t);
12
+ const n = R(t);
13
13
  if (n) return n;
14
14
  if (t.getAttribute("contenteditable") === "true") return t;
15
15
  }
@@ -17,8 +17,8 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
17
17
  return e;
18
18
  const r = e.closest('[contenteditable="true"]');
19
19
  return r instanceof HTMLElement ? r : null;
20
- }, _ = () => {
21
- const e = H();
20
+ }, O = () => {
21
+ const e = S();
22
22
  if (e && document.contains(e))
23
23
  return e;
24
24
  const t = window.getSelection();
@@ -41,7 +41,7 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
41
41
  if (n) return n;
42
42
  }
43
43
  return document.querySelector('[contenteditable="true"]');
44
- }, M = (e) => e ? e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement : null, O = (e) => {
44
+ }, M = (e) => e ? e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement : null, _ = (e) => {
45
45
  const t = window.getSelection();
46
46
  if (!t || t.rangeCount === 0) return null;
47
47
  const r = t.getRangeAt(0);
@@ -85,7 +85,7 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
85
85
  }, I = (e) => (e.textContent || "").replace(/\u200B/g, "").trim() ? !1 : !e.querySelector("img, video, table, iframe, hr, pre, ul, ol"), v = () => {
86
86
  const e = document.createElement("p");
87
87
  return e.innerHTML = "<br>", e;
88
- }, R = (e, t) => {
88
+ }, H = (e, t) => {
89
89
  if (!e.isConnected) {
90
90
  t.focus({ preventScroll: !0 });
91
91
  return;
@@ -106,7 +106,7 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
106
106
  }, x = (e, t, r) => {
107
107
  var o;
108
108
  const n = v();
109
- (o = t.parentNode) == null || o.insertBefore(n, t.nextSibling), r.remove(), T(t).length === 0 && t.remove(), R(n, e);
109
+ (o = t.parentNode) == null || o.insertBefore(n, t.nextSibling), r.remove(), T(t).length === 0 && t.remove(), H(n, e);
110
110
  }, P = (e, t, r) => {
111
111
  var i;
112
112
  const n = b(t), o = r.cloneRange();
@@ -122,7 +122,7 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
122
122
  const c = document.createElement("li");
123
123
  c.setAttribute("data-type", "checklist-item"), c.setAttribute("data-checked", "false");
124
124
  const u = document.createElement("p");
125
- D(u, s), c.appendChild(u), (i = t.parentNode) == null || i.insertBefore(c, t.nextSibling), R(u, e);
125
+ D(u, s), c.appendChild(u), (i = t.parentNode) == null || i.insertBefore(c, t.nextSibling), H(u, e);
126
126
  }, k = (e) => {
127
127
  const t = document.createElement("li");
128
128
  t.setAttribute("data-type", "checklist-item"), t.setAttribute("data-checked", "false");
@@ -149,9 +149,9 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
149
149
  let d = i;
150
150
  for (; d && d !== document.body; ) {
151
151
  if (d.nodeType === Node.ELEMENT_NODE) {
152
- const p = d;
153
- if (N(p)) return p;
154
- if (p.getAttribute("contenteditable") === "true") break;
152
+ const h = d;
153
+ if (N(h)) return h;
154
+ if (h.getAttribute("contenteditable") === "true") break;
155
155
  }
156
156
  d = d.parentNode;
157
157
  }
@@ -168,8 +168,8 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
168
168
  if (!N(d) || d.closest("ul, ol")) return NodeFilter.FILTER_SKIP;
169
169
  if (typeof e.intersectsNode == "function")
170
170
  return e.intersectsNode(d) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
171
- const p = document.createRange();
172
- return p.selectNodeContents(d), e.compareBoundaryPoints(Range.END_TO_START, p) > 0 && e.compareBoundaryPoints(Range.START_TO_END, p) < 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
171
+ const h = document.createRange();
172
+ return h.selectNodeContents(d), e.compareBoundaryPoints(Range.END_TO_START, h) > 0 && e.compareBoundaryPoints(Range.START_TO_END, h) < 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
173
173
  }
174
174
  }
175
175
  );
@@ -241,7 +241,7 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
241
241
  o.innerHTML = "<br>", t.push(o);
242
242
  }
243
243
  return t;
244
- }, V = () => ({
244
+ }, X = () => ({
245
245
  name: "checklist",
246
246
  // Initialize click handler when plugin is loaded
247
247
  init: () => {
@@ -319,16 +319,16 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
319
319
  {
320
320
  label: "Checklist",
321
321
  command: "toggleChecklist",
322
- icon: '<svg width="24px" height="24px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 4.48h-.71L2 3.43l.71-.7.69.68L4.81 2l.71.71-1.77 1.77zM6.99 3h8v1h-8V3zm0 3h8v1h-8V6zm8 3h-8v1h8V9zm-8 3h8v1h-8v-1zM3.04 7.48h.71l1.77-1.77-.71-.7L3.4 6.42l-.69-.69-.71.71 1.04 1.04zm.71 3.01h-.71L2 9.45l.71-.71.69.69 1.41-1.42.71.71-1.77 1.77zm-.71 3.01h.71l1.77-1.77-.71-.71-1.41 1.42-.69-.69-.71.7 1.04 1.05z"></path></g></svg>',
322
+ icon: '<svg width="24px" height="24px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 4.48h-.71L2 3.43l.71-.7.69.68L4.81 2l.71.71-1.77 1.77zM6.99 3h8v1h-8V3zm0 3h8v1h-8V6zm8 3h-8v1h8V9zm-8 3h8v1h-8v-1zM3.04 7.48h.71l1.77-1.77-.71-.7L3.4 6.42l-.69-.69-.71.71 1.04 1.04zm.71 3.01h-.71L2 9.45l.71-.71.69.69 1.41-1.42.71.71-1.77 1.77zm-.71 3.01h.71l1.77-1.77-.71-.71-1.41 1.42-.69-.69-.71.7 1.04 1.05z"></path></g></svg>',
323
323
  shortcut: "Mod-Shift-9"
324
324
  }
325
325
  ],
326
326
  commands: {
327
327
  toggleChecklist: () => {
328
328
  try {
329
- const e = _();
329
+ const e = O();
330
330
  if (!e) return !1;
331
- const t = e.innerHTML, r = () => (L(e, t), y(e), !0), n = O(e);
331
+ const t = e.innerHTML, r = () => (L(e, t), y(e), !0), n = _(e);
332
332
  if (!n) return !1;
333
333
  z(e, n);
334
334
  const o = M(n.startContainer);
@@ -337,14 +337,14 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
337
337
  if (a && e.contains(a)) {
338
338
  const l = T(a);
339
339
  if (l.length === 0) return !1;
340
- const h = document.createDocumentFragment();
340
+ const p = document.createDocumentFragment();
341
341
  let f = null;
342
342
  return l.forEach((m, E) => {
343
343
  const g = q(m);
344
344
  g.forEach((w) => {
345
- h.appendChild(w), !f && (m.contains(n.startContainer) || E === 0) && (f = w);
345
+ p.appendChild(w), !f && (m.contains(n.startContainer) || E === 0) && (f = w);
346
346
  }), !f && E === 0 && g[0] && (f = g[0]);
347
- }), a.replaceWith(h), f && C(f, e), r();
347
+ }), a.replaceWith(p), f && C(f, e), r();
348
348
  }
349
349
  const s = o.closest("ul, ol");
350
350
  if (s && e.contains(s)) {
@@ -357,10 +357,10 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
357
357
  s.replaceWith(l);
358
358
  }
359
359
  l.setAttribute("data-type", "checklist");
360
- let h = T(l);
361
- h.length === 0 && (l.appendChild(k("")), h = T(l));
360
+ let p = T(l);
361
+ p.length === 0 && (l.appendChild(k("")), p = T(l));
362
362
  let f = null;
363
- h.forEach((E) => {
363
+ p.forEach((E) => {
364
364
  E.setAttribute("data-type", "checklist-item"), E.hasAttribute("data-checked") || E.setAttribute("data-checked", "false");
365
365
  const g = b(E);
366
366
  E.contains(n.startContainer) && (f = g);
@@ -383,17 +383,17 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
383
383
  if (u && u !== e) {
384
384
  const l = document.createElement("ul");
385
385
  l.setAttribute("data-type", "checklist");
386
- const h = k(u.innerHTML);
387
- l.appendChild(h), u.replaceWith(l);
388
- const f = h.querySelector(":scope > p");
386
+ const p = k(u.innerHTML);
387
+ l.appendChild(p), u.replaceWith(l);
388
+ const f = p.querySelector(":scope > p");
389
389
  return f && C(f, e), r();
390
390
  }
391
391
  const i = document.createElement("ul");
392
392
  i.setAttribute("data-type", "checklist");
393
393
  const d = k("");
394
394
  i.appendChild(d), n.deleteContents(), n.insertNode(i);
395
- const p = d.querySelector(":scope > p");
396
- return p && C(p, e), r();
395
+ const h = d.querySelector(":scope > p");
396
+ return h && C(h, e), r();
397
397
  } catch (e) {
398
398
  return console.error("Failed to toggle checklist:", e), !1;
399
399
  }
@@ -404,6 +404,6 @@ const A = "__editoraCommandEditorRoot", S = (e) => {
404
404
  }
405
405
  });
406
406
  export {
407
- V as ChecklistPlugin
407
+ X as ChecklistPlugin
408
408
  };
409
- //# sourceMappingURL=ChecklistPlugin.native-NVrBUkaL.mjs.map
409
+ //# sourceMappingURL=ChecklistPlugin.native-DLedNLsb.mjs.map