@editora/core 1.0.8 → 1.0.9

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 (88) hide show
  1. package/README.md +5 -0
  2. package/dist/{A11yCheckerPlugin.native-BRdGYMju.mjs → A11yCheckerPlugin.native-58d12bed.mjs} +23 -12
  3. package/dist/{AnchorPlugin.native-BcYGEtd9.mjs → AnchorPlugin.native-289a112a.mjs} +112 -102
  4. package/dist/{ApprovalWorkflowPlugin.native-C3jtAYjG.mjs → ApprovalWorkflowPlugin.native-449ce66c.mjs} +79 -40
  5. package/dist/{BackgroundColorPlugin.native-50iAT9xU.mjs → BackgroundColorPlugin.native-8aceb5cc.mjs} +16 -9
  6. package/dist/{BlockquotePlugin.native-JFmOLsxN.mjs → BlockquotePlugin.native-3541c714.mjs} +3 -2
  7. package/dist/{BlocksLibraryPlugin.native-HMWKxWNs.mjs → BlocksLibraryPlugin.native-1cc51e63.mjs} +119 -60
  8. package/dist/{BoldPlugin.native-BAzzoqU5.mjs → BoldPlugin.native-f9d7f8e4.mjs} +1 -1
  9. package/dist/{CapitalizationPlugin.native-DOMsh5R7.mjs → CapitalizationPlugin.native-42c135dc.mjs} +3 -2
  10. package/dist/{ChecklistPlugin.native-nuSSEFNI.mjs → ChecklistPlugin.native-3b397ee9.mjs} +43 -22
  11. package/dist/{CitationsPlugin.native-BnU0qCwR.mjs → CitationsPlugin.native-169fb1e8.mjs} +137 -69
  12. package/dist/{ClearFormattingPlugin.native-Bq_XcTh2.mjs → ClearFormattingPlugin.native-77baa514.mjs} +11 -6
  13. package/dist/{CodePlugin.native-DlpTPdkd.mjs → CodePlugin.native-989cf0aa.mjs} +629 -580
  14. package/dist/{CodeSamplePlugin.native-CgGoH-X4.mjs → CodeSamplePlugin.native-6cc0148e.mjs} +19 -10
  15. package/dist/{CommentsPlugin.native-DPSqTkiv.mjs → CommentsPlugin.native-03659874.mjs} +55 -28
  16. package/dist/{ConditionalContentPlugin.native-CfhY46rU.mjs → ConditionalContentPlugin.native-4983143a.mjs} +108 -51
  17. package/dist/{ContentRulesPlugin.native-nBLQ8QFZ.mjs → ContentRulesPlugin.native-63ed405b.mjs} +100 -50
  18. package/dist/{DataBindingPlugin.native-jQ1JPRTp.mjs → DataBindingPlugin.native-427e9d75.mjs} +79 -40
  19. package/dist/{DirectionPlugin.native-CDnbdNyl.mjs → DirectionPlugin.native-4e742f42.mjs} +19 -10
  20. package/dist/{DocSchemaPlugin.native-CHOge18O.mjs → DocSchemaPlugin.native-8e41eda0.mjs} +115 -58
  21. package/dist/{DocumentManagerPlugin.native-C2cs_1w4.mjs → DocumentManagerPlugin.native-e69895ad.mjs} +4 -4
  22. package/dist/{EmbedIframePlugin.native-DKJx2OS7.mjs → EmbedIframePlugin.native-55209c87.mjs} +70 -70
  23. package/dist/{EmojisPlugin.native-CitxxlWX.mjs → EmojisPlugin.native-65c5ac47.mjs} +11 -6
  24. package/dist/{FontFamilyPlugin.native-j8hMTbg4.mjs → FontFamilyPlugin.native-f9bc255a.mjs} +7 -4
  25. package/dist/{FontSizePlugin.native-B_jCh7dY.mjs → FontSizePlugin.native-f5647872.mjs} +19 -10
  26. package/dist/{FootnotePlugin.native-D730OGRm.mjs → FootnotePlugin.native-494657b3.mjs} +77 -39
  27. package/dist/{FullscreenPlugin.native-ChXyxeNw.mjs → FullscreenPlugin.native-87ce92e9.mjs} +1 -1
  28. package/dist/{HeadingPlugin.native-DrLYwQnQ.mjs → HeadingPlugin.native-e38c4a16.mjs} +1 -1
  29. package/dist/{HistoryPlugin.native-TDnVMsEO.mjs → HistoryPlugin.native-92ed4be4.mjs} +43 -22
  30. package/dist/{IndentPlugin.native-BHixp8sP.mjs → IndentPlugin.native-e4ee902b.mjs} +23 -12
  31. package/dist/{ItalicPlugin.native-CQjjDyUL.mjs → ItalicPlugin.native-7c95cfbc.mjs} +1 -1
  32. package/dist/{LineHeightPlugin.native-CM7iXdQj.mjs → LineHeightPlugin.native-5668f78c.mjs} +19 -10
  33. package/dist/{LinkPlugin.native-DYCIcdTm.mjs → LinkPlugin.native-6df29111.mjs} +9 -5
  34. package/dist/{ListPlugin.native-V7EZC1lM.mjs → ListPlugin.native-fe2e115a.mjs} +9 -5
  35. package/dist/{MathPlugin.native-f_mDp8VL.mjs → MathPlugin.native-735bbac2.mjs} +9 -5
  36. package/dist/{MediaManagerPlugin.native-BiXiK8FC.mjs → MediaManagerPlugin.native-3cf48a00.mjs} +219 -207
  37. package/dist/{MentionPlugin.native-BMDlOqur.mjs → MentionPlugin.native-3b1e8c05.mjs} +89 -45
  38. package/dist/{MergeTagPlugin.native-C3eOfEgw.mjs → MergeTagPlugin.native-31cf7d48.mjs} +51 -26
  39. package/dist/{PIIRedactionPlugin.native-DcsjmtV1.mjs → PIIRedactionPlugin.native-7ab10b9f.mjs} +107 -54
  40. package/dist/{PageBreakPlugin.native-DijGuHJZ.mjs → PageBreakPlugin.native-1794c5fb.mjs} +31 -16
  41. package/dist/{PreviewPlugin.native-WuIwOAOR.mjs → PreviewPlugin.native-f7b67cc0.mjs} +11 -6
  42. package/dist/{PrintPlugin.native-7qt5v7L5.mjs → PrintPlugin.native-f6a168c2.mjs} +5 -3
  43. package/dist/{SlashCommandsPlugin.native-CmxvMEaE.mjs → SlashCommandsPlugin.native-8d45e511.mjs} +72 -37
  44. package/dist/{SmartPastePlugin.native-BOKKtF07.mjs → SmartPastePlugin.native-a6c5efec.mjs} +99 -50
  45. package/dist/{SpecialCharactersPlugin.native-CZDato89.mjs → SpecialCharactersPlugin.native-7f06d4ba.mjs} +17 -9
  46. package/dist/{SpellCheckPlugin.native-BZB9AewP.mjs → SpellCheckPlugin.native-04e20834.mjs} +41 -21
  47. package/dist/{StrikethroughPlugin.native-0Be7j49s.mjs → StrikethroughPlugin.native-905e9501.mjs} +9 -5
  48. package/dist/{TablePlugin.native-DrHX-efe.mjs → TablePlugin.native-7d5458c1.mjs} +58 -30
  49. package/dist/{TemplatePlugin.native-CrpfKRJ8.mjs → TemplatePlugin.native-580f0f63.mjs} +32 -17
  50. package/dist/{TextAlignmentPlugin.native-sM_1s00t.mjs → TextAlignmentPlugin.native-9357b3ed.mjs} +11 -6
  51. package/dist/{TextColorPlugin.native-Bwl_bSmc.mjs → TextColorPlugin.native-d53ed459.mjs} +26 -14
  52. package/dist/{TrackChangesPlugin.native-Bghu2q4a.mjs → TrackChangesPlugin.native-e96da509.mjs} +115 -58
  53. package/dist/{TranslationWorkflowPlugin.native-Bz6jDGvj.mjs → TranslationWorkflowPlugin.native-4e711b1e.mjs} +160 -91
  54. package/dist/{UnderlinePlugin.native-QpIcK4L2.mjs → UnderlinePlugin.native-8080c998.mjs} +1 -1
  55. package/dist/{VersionDiffPlugin.native-Bvxgy--t.mjs → VersionDiffPlugin.native-5bbeff85.mjs} +51 -26
  56. package/dist/_commonjsHelpers-69d58be2.mjs +31 -0
  57. package/dist/{anchoredPopover-Bxds0VoB.mjs → anchoredPopover-5cca53ba.mjs} +1 -1
  58. package/dist/documentManager-8327fb6e.mjs +9166 -0
  59. package/dist/{editorContainerHelpers-C7kdWnS0.mjs → editorContainerHelpers-69585c07.mjs} +3 -2
  60. package/dist/editora.min.js +14 -13
  61. package/dist/editora.umd.js +14 -13
  62. package/dist/{html2canvas.esm-AYkPY5LS.mjs → html2canvas.esm-c51cb3b9.mjs} +978 -894
  63. package/dist/index-072ef022.js +11 -0
  64. package/dist/index-49d31221.mjs +16860 -0
  65. package/dist/{index-DqC57IEH.mjs → index-7da30697.mjs} +163 -124
  66. package/dist/index.cjs.js +1 -1
  67. package/dist/index.es-b47a189f.mjs +5782 -0
  68. package/dist/index.esm.js +12 -7
  69. package/dist/{jspdf.es.min-BJGtOnRT.mjs → jspdf.es.min-780c82db.mjs} +4808 -3784
  70. package/dist/plugin-loader.js +67 -67
  71. package/dist/{purify.es-CKpwg8Tk.mjs → purify.es-3bdbcfc5.mjs} +20 -10
  72. package/dist/style.css +1 -0
  73. package/dist/webcomponent-core.js +164 -125
  74. package/dist/webcomponent-core.min.css +1 -1
  75. package/dist/webcomponent-core.min.js +18 -17
  76. package/dist/webcomponent.cjs.js +1 -1
  77. package/dist/webcomponent.esm.js +1 -1
  78. package/dist/webcomponent.js +226 -187
  79. package/dist/webcomponent.min.css +1 -1
  80. package/dist/webcomponent.min.js +1324 -1117
  81. package/package.json +11 -5
  82. package/LICENSE +0 -21
  83. package/dist/_commonjsHelpers-DOllISpa.mjs +0 -32
  84. package/dist/core.css +0 -1
  85. package/dist/documentManager-vQ1VkbUY.mjs +0 -8418
  86. package/dist/index-BslAFzmv.mjs +0 -16544
  87. package/dist/index-D1LOqg5C.js +0 -10
  88. package/dist/index.es-BYD2KEo6.mjs +0 -6666
@@ -56,22 +56,28 @@ function U(e) {
56
56
  return e.closest(F) || e;
57
57
  }
58
58
  function B(e) {
59
- if (!e) return null;
60
- if (e.matches(w)) return e;
59
+ if (!e)
60
+ return null;
61
+ if (e.matches(w))
62
+ return e;
61
63
  const t = e.querySelector(w);
62
64
  return t instanceof HTMLElement ? t : null;
63
65
  }
64
66
  function ve() {
65
- if (typeof window == "undefined") return null;
67
+ if (typeof window == "undefined")
68
+ return null;
66
69
  const e = window[ee];
67
- if (!(e instanceof HTMLElement)) return null;
70
+ if (!(e instanceof HTMLElement))
71
+ return null;
68
72
  window[ee] = null;
69
73
  const t = B(e);
70
- if (t) return t;
74
+ if (t)
75
+ return t;
71
76
  const o = e.closest(F);
72
77
  if (o) {
73
78
  const a = B(o);
74
- if (a) return a;
79
+ if (a)
80
+ return a;
75
81
  }
76
82
  return null;
77
83
  }
@@ -92,7 +98,8 @@ function W(e) {
92
98
  }
93
99
  function he(e) {
94
100
  const t = U(e);
95
- if (W(t)) return !0;
101
+ if (W(t))
102
+ return !0;
96
103
  const o = t.closest("[data-theme], [theme], .dark, .editora-theme-dark, .rte-theme-dark");
97
104
  return W(o) ? !0 : W(document.documentElement) || W(document.body);
98
105
  }
@@ -103,25 +110,32 @@ function le(e) {
103
110
  return e ? e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement : null;
104
111
  }
105
112
  function x(e, t = !0) {
106
- if (D(), (e == null ? void 0 : e.contentElement) instanceof HTMLElement) return e.contentElement;
113
+ if (D(), (e == null ? void 0 : e.contentElement) instanceof HTMLElement)
114
+ return e.contentElement;
107
115
  if ((e == null ? void 0 : e.editorElement) instanceof HTMLElement) {
108
116
  const n = e.editorElement;
109
- if (n.matches(w)) return n;
117
+ if (n.matches(w))
118
+ return n;
110
119
  const l = n.querySelector(w);
111
- if (l instanceof HTMLElement) return l;
120
+ if (l instanceof HTMLElement)
121
+ return l;
112
122
  }
113
123
  const o = ve();
114
- if (o) return o;
124
+ if (o)
125
+ return o;
115
126
  const a = window.getSelection();
116
127
  if (a && a.rangeCount > 0) {
117
128
  const n = le(a.getRangeAt(0).startContainer), l = n == null ? void 0 : n.closest(w);
118
- if (l) return l;
129
+ if (l)
130
+ return l;
119
131
  }
120
132
  const r = document.activeElement;
121
133
  if (r) {
122
- if (r.matches(w)) return r;
134
+ if (r.matches(w))
135
+ return r;
123
136
  const n = r.closest(w);
124
- if (n) return n;
137
+ if (n)
138
+ return n;
125
139
  }
126
140
  return g && g.isConnected ? g : (g && !g.isConnected && (g = null), t ? document.querySelector(w) : null);
127
141
  }
@@ -136,7 +150,8 @@ function xe(e) {
136
150
  }
137
151
  function we() {
138
152
  const e = window.getSelection();
139
- if (!e || e.rangeCount === 0) return !1;
153
+ if (!e || e.rangeCount === 0)
154
+ return !1;
140
155
  const t = e.getRangeAt(0).startContainer, o = le(t);
141
156
  return !!(o != null && o.closest(w));
142
157
  }
@@ -157,7 +172,8 @@ function Y(e) {
157
172
  e.dispatchEvent(new Event("input", { bubbles: !0 }));
158
173
  }
159
174
  function X(e, t) {
160
- if (t === e.innerHTML) return;
175
+ if (t === e.innerHTML)
176
+ return;
161
177
  const o = window.execEditorCommand || window.executeEditorCommand;
162
178
  if (typeof o == "function")
163
179
  try {
@@ -230,9 +246,11 @@ function Ae(e, t) {
230
246
  }
231
247
  function q(e) {
232
248
  const t = k.get(e);
233
- if (!t) return;
249
+ if (!t)
250
+ return;
234
251
  const o = p.get(e) || R;
235
- if (!o) return;
252
+ if (!o)
253
+ return;
236
254
  const a = f(e, o), r = t.querySelector(".rte-approval-summary"), n = t.querySelector('[data-action="request-review"]'), l = t.querySelector('[data-action="approve"]'), s = t.querySelector('[data-action="reopen-draft"]'), u = t.querySelector(".rte-approval-comments-list"), m = t.querySelector(".rte-approval-signoffs-list");
237
255
  if (r) {
238
256
  const i = ye(a.status, o);
@@ -278,13 +296,15 @@ function ae(e, t, o, a) {
278
296
  }
279
297
  function E(e, t, o, a) {
280
298
  const r = f(e, o);
281
- if (r.status === t) return !1;
299
+ if (r.status === t)
300
+ return !1;
282
301
  const n = e.innerHTML;
283
302
  return r.status = t, t === "review" ? ae(r, o, a, "Review requested.") : t === "draft" && ae(r, o, a, "Returned to draft."), G(e, r, o), Y(e), X(e, n), !0;
284
303
  }
285
304
  function ce(e, t, o, a) {
286
305
  const r = a.normalizeText(t);
287
- if (!r) return !1;
306
+ if (!r)
307
+ return !1;
288
308
  const n = a.normalizeText(o) || a.defaultActor, l = f(e, a), s = e.innerHTML;
289
309
  return l.comments.push({
290
310
  id: J(),
@@ -296,7 +316,8 @@ function ce(e, t, o, a) {
296
316
  }
297
317
  function Q(e, t, o, a) {
298
318
  const r = t.normalizeText(o) || t.defaultActor, n = t.normalizeText(a);
299
- if (t.requireCommentOnApprove && !n) return !1;
319
+ if (t.requireCommentOnApprove && !n)
320
+ return !1;
300
321
  const l = f(e, t), s = e.innerHTML;
301
322
  return l.status = "approved", l.signoffs.push({
302
323
  id: ke(),
@@ -320,13 +341,15 @@ function Se(e) {
320
341
  return { actor: t, comment: o };
321
342
  }
322
343
  function V(e, t) {
323
- if (!t.classList.contains("show")) return;
344
+ if (!t.classList.contains("show"))
345
+ return;
324
346
  const a = U(e).getBoundingClientRect(), r = Math.min(window.innerWidth - 20, 420), n = Math.max(10, window.innerWidth - r - 10), l = Math.min(Math.max(10, a.right - r), n), s = Math.max(10, Math.min(window.innerHeight - 10 - 280, a.top + 12));
325
347
  t.style.width = `${r}px`, t.style.left = `${l}px`, t.style.top = `${s}px`, t.style.maxHeight = `${Math.max(280, window.innerHeight - 24)}px`;
326
348
  }
327
349
  function $e(e) {
328
350
  const t = k.get(e);
329
- if (t) return t;
351
+ if (t)
352
+ return t;
330
353
  const o = p.get(e) || R || z(), a = `rte-approval-panel-${me++}`, r = document.createElement("section");
331
354
  return r.className = d, r.id = a, r.setAttribute("role", "dialog"), r.setAttribute("aria-modal", "false"), r.setAttribute("aria-label", o.labels.panelAriaLabel), r.setAttribute("tabindex", "-1"), r.innerHTML = `
332
355
  <header class="rte-approval-header">
@@ -383,9 +406,11 @@ function $e(e) {
383
406
  </div>
384
407
  `, r.addEventListener("click", (n) => {
385
408
  const l = n.target;
386
- if (!l) return;
409
+ if (!l)
410
+ return;
387
411
  const s = l.closest("[data-action]");
388
- if (!s) return;
412
+ if (!s)
413
+ return;
389
414
  const u = s.getAttribute("data-action") || "", m = p.get(e) || R || o;
390
415
  if (p.set(e, m), f(e, m), u === "close") {
391
416
  P(e, !0);
@@ -413,7 +438,8 @@ function $e(e) {
413
438
  return;
414
439
  }
415
440
  if (u === "add-comment") {
416
- if (!ce(e, i.comment, i.actor, m)) return;
441
+ if (!ce(e, i.comment, i.actor, m))
442
+ return;
417
443
  const $ = N(r, "comment");
418
444
  $ && ($.value = ""), M(r, "Comment added.");
419
445
  return;
@@ -460,14 +486,16 @@ function Re(e) {
460
486
  R = e, T || (T = (t) => {
461
487
  D();
462
488
  const o = t.target, a = o == null ? void 0 : o.closest(w);
463
- if (!a) return;
489
+ if (!a)
490
+ return;
464
491
  g = a;
465
492
  const r = p.get(a) || e;
466
493
  p.set(a, r), f(a, r);
467
494
  const n = k.get(a);
468
495
  n && (K(n, a), V(a, n));
469
496
  }, document.addEventListener("focusin", T, !0)), L || (L = (t) => {
470
- if (t.defaultPrevented) return;
497
+ if (t.defaultPrevented)
498
+ return;
471
499
  const o = Ee(t), a = Ce(t), r = Te(t), n = Le(t), l = t.key === "Escape";
472
500
  if (!l && !o && !a && !r && !n)
473
501
  return;
@@ -476,7 +504,8 @@ function Re(e) {
476
504
  if (!xe(s) && !we())
477
505
  return;
478
506
  const i = x(void 0, !1);
479
- if (!i) return;
507
+ if (!i)
508
+ return;
480
509
  const b = p.get(i) || R || e;
481
510
  p.set(i, b);
482
511
  const $ = f(i, b);
@@ -518,7 +547,8 @@ function De() {
518
547
  T && (document.removeEventListener("focusin", T, !0), T = null), L && (document.removeEventListener("keydown", L, !0), L = null), S && (window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", S), S = null), k.forEach((e) => e.remove()), k.clear(), H.forEach((e) => Me(e)), H.clear(), R = null, g = null;
519
548
  }
520
549
  function He() {
521
- if (typeof document == "undefined" || document.getElementById(te)) return;
550
+ if (typeof document == "undefined" || document.getElementById(te))
551
+ return;
522
552
  const e = document.createElement("style");
523
553
  e.id = te, e.textContent = `
524
554
  .rte-toolbar-group-items.${h},
@@ -958,19 +988,22 @@ const qe = (e = {}) => {
958
988
  commands: {
959
989
  approvalWorkflow: (o, a) => {
960
990
  const r = x(a);
961
- if (!r) return !1;
991
+ if (!r)
992
+ return !1;
962
993
  const n = p.get(r) || t;
963
994
  return p.set(r, n), f(r, n), g = r, A(r), q(r), !0;
964
995
  },
965
996
  toggleApprovalWorkflowPanel: (o, a) => {
966
997
  const r = x(a);
967
- if (!r) return !1;
998
+ if (!r)
999
+ return !1;
968
1000
  const n = p.get(r) || t;
969
1001
  return p.set(r, n), f(r, n), g = r, de(r, typeof o == "boolean" ? o : void 0);
970
1002
  },
971
1003
  requestApprovalReview: (o, a) => {
972
1004
  const r = x(a);
973
- if (!r) return !1;
1005
+ if (!r)
1006
+ return !1;
974
1007
  const n = p.get(r) || t;
975
1008
  p.set(r, n), f(r, n);
976
1009
  const l = E(r, "review", n, n.defaultActor);
@@ -978,7 +1011,8 @@ const qe = (e = {}) => {
978
1011
  },
979
1012
  approveDocument: (o, a) => {
980
1013
  const r = x(a);
981
- if (!r) return !1;
1014
+ if (!r)
1015
+ return !1;
982
1016
  const n = p.get(r) || t;
983
1017
  p.set(r, n), f(r, n);
984
1018
  const l = typeof o == "object" && o ? String(o.author || "") : n.defaultActor, s = typeof o == "object" && o ? String(o.comment || "") : typeof o == "string" ? o : "", u = Q(r, n, l, s);
@@ -986,7 +1020,8 @@ const qe = (e = {}) => {
986
1020
  },
987
1021
  reopenDraft: (o, a) => {
988
1022
  const r = x(a);
989
- if (!r) return !1;
1023
+ if (!r)
1024
+ return !1;
990
1025
  const n = p.get(r) || t;
991
1026
  p.set(r, n), f(r, n);
992
1027
  const l = E(r, "draft", n, n.defaultActor);
@@ -994,7 +1029,8 @@ const qe = (e = {}) => {
994
1029
  },
995
1030
  addApprovalComment: (o, a) => {
996
1031
  const r = x(a);
997
- if (!r) return !1;
1032
+ if (!r)
1033
+ return !1;
998
1034
  const n = p.get(r) || t;
999
1035
  p.set(r, n), f(r, n);
1000
1036
  const l = typeof o == "object" && o ? String(o.author || "") : n.defaultActor, s = typeof o == "object" && o ? String(o.message || "") : typeof o == "string" ? o : "", u = ce(r, s, l, n);
@@ -1002,7 +1038,8 @@ const qe = (e = {}) => {
1002
1038
  },
1003
1039
  setApprovalStatus: (o, a) => {
1004
1040
  const r = x(a);
1005
- if (!r || !o) return !1;
1041
+ if (!r || !o)
1042
+ return !1;
1006
1043
  const n = ne(o), l = p.get(r) || t;
1007
1044
  p.set(r, l), f(r, l);
1008
1045
  const s = E(r, n, l, l.defaultActor);
@@ -1010,7 +1047,8 @@ const qe = (e = {}) => {
1010
1047
  },
1011
1048
  setApprovalWorkflowOptions: (o, a) => {
1012
1049
  const r = x(a);
1013
- if (!r || !o || typeof o != "object") return !1;
1050
+ if (!r || !o || typeof o != "object")
1051
+ return !1;
1014
1052
  const n = p.get(r) || t, l = z({
1015
1053
  ...n,
1016
1054
  ...o,
@@ -1026,7 +1064,8 @@ const qe = (e = {}) => {
1026
1064
  },
1027
1065
  getApprovalWorkflowState: (o, a) => {
1028
1066
  const r = x(a);
1029
- if (!r) return !1;
1067
+ if (!r)
1068
+ return !1;
1030
1069
  const n = p.get(r) || t;
1031
1070
  p.set(r, n);
1032
1071
  const l = f(r, n), s = se(l);
@@ -1073,4 +1112,4 @@ const qe = (e = {}) => {
1073
1112
  export {
1074
1113
  qe as ApprovalWorkflowPlugin
1075
1114
  };
1076
- //# sourceMappingURL=ApprovalWorkflowPlugin.native-C3jtAYjG.mjs.map
1115
+ //# sourceMappingURL=ApprovalWorkflowPlugin.native-449ce66c.mjs.map
@@ -1,4 +1,4 @@
1
- import { a as P, b as R } from "./anchoredPopover-Bxds0VoB.mjs";
1
+ import { a as P, b as R } from "./anchoredPopover-5cca53ba.mjs";
2
2
  let a = null, B = null, g = null, L = null, i = "#ffff00";
3
3
  const k = '[data-theme="dark"], .dark, .editora-theme-dark', I = [
4
4
  "#000000",
@@ -22,7 +22,8 @@ function A() {
22
22
  const o = n.closest(
23
23
  '[data-editora-editor="true"], .rte-editor, .editora-editor'
24
24
  );
25
- if (o) return o;
25
+ if (o)
26
+ return o;
26
27
  }
27
28
  }
28
29
  const t = document.activeElement;
@@ -49,7 +50,8 @@ function M(e) {
49
50
  const l = Array.from(
50
51
  n.querySelectorAll(`[data-command="${e}"]`)
51
52
  ), s = c(l);
52
- if (s) return s;
53
+ if (s)
54
+ return s;
53
55
  }
54
56
  const o = Array.from(
55
57
  document.querySelectorAll(`[data-command="${e}"]`)
@@ -57,11 +59,13 @@ function M(e) {
57
59
  return c(o);
58
60
  }
59
61
  function T(e) {
60
- if (e != null && e.closest(k)) return !0;
62
+ if (e != null && e.closest(k))
63
+ return !0;
61
64
  const t = window.getSelection();
62
65
  if (t && t.rangeCount > 0) {
63
66
  const c = t.getRangeAt(0).startContainer, n = c.nodeType === Node.ELEMENT_NODE ? c : c.parentElement;
64
- if (n != null && n.closest(k)) return !0;
67
+ if (n != null && n.closest(k))
68
+ return !0;
65
69
  }
66
70
  const r = document.activeElement;
67
71
  return r != null && r.closest(k) ? !0 : document.body.matches(k) || document.documentElement.matches(k);
@@ -329,7 +333,8 @@ function q() {
329
333
  return u.type = "text", u.className = "rte-bg-color-text-input", u.id = "rte-bg-color-text-input", u.placeholder = "#FFFF00", u.value = i.toUpperCase(), u.maxLength = 7, w.appendChild(m), w.appendChild(u), C.appendChild(E), C.appendChild(w), n.appendChild(o), n.appendChild(p), n.appendChild(C), e.appendChild(t), e.appendChild(n), e;
330
334
  }
331
335
  function _() {
332
- if (!a) return;
336
+ if (!a)
337
+ return;
333
338
  const e = a.querySelector("#rte-bg-color-close");
334
339
  e == null || e.addEventListener("click", () => f());
335
340
  const t = a.querySelector("#rte-bg-color-grid");
@@ -357,12 +362,14 @@ function _() {
357
362
  }));
358
363
  }
359
364
  function S() {
360
- if (!a) return;
365
+ if (!a)
366
+ return;
361
367
  const e = a.querySelector("#rte-bg-color-preview-swatch"), t = a.querySelector("#rte-bg-color-preview-hex"), r = a.querySelector("#rte-bg-color-input"), c = a.querySelector("#rte-bg-color-text-input");
362
368
  e && (e.style.backgroundColor = i), t && (t.textContent = i.toUpperCase()), r && (r.value = i), c && (c.value = i.toUpperCase());
363
369
  }
364
370
  function N() {
365
- if (!a) return;
371
+ if (!a)
372
+ return;
366
373
  a.querySelectorAll(".rte-bg-color-swatch").forEach((t) => {
367
374
  const r = t.dataset.color;
368
375
  (r == null ? void 0 : r.toUpperCase()) === i.toUpperCase() ? t.classList.add("selected") : t.classList.remove("selected");
@@ -483,4 +490,4 @@ const O = () => ({
483
490
  export {
484
491
  O as BackgroundColorPlugin
485
492
  };
486
- //# sourceMappingURL=BackgroundColorPlugin.native-50iAT9xU.mjs.map
493
+ //# sourceMappingURL=BackgroundColorPlugin.native-8aceb5cc.mjs.map
@@ -25,7 +25,8 @@ const c = () => ({
25
25
  */
26
26
  toggleBlockquote: () => {
27
27
  const e = window.getSelection();
28
- if (!e || e.rangeCount === 0) return !1;
28
+ if (!e || e.rangeCount === 0)
29
+ return !1;
29
30
  let o = e.anchorNode, t = !1;
30
31
  for (; o && o !== document.body; ) {
31
32
  if (o.nodeName === "BLOCKQUOTE") {
@@ -45,4 +46,4 @@ const c = () => ({
45
46
  export {
46
47
  c as BlockquotePlugin
47
48
  };
48
- //# sourceMappingURL=BlockquotePlugin.native-JFmOLsxN.mjs.map
49
+ //# sourceMappingURL=BlockquotePlugin.native-3541c714.mjs.map