@editora/core 1.0.15 → 1.0.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.
- package/dist/{A11yCheckerPlugin.native-BRdGYMju.mjs → A11yCheckerPlugin.native-DIKuCeFw.mjs} +82 -79
- package/dist/{AnchorPlugin.native-BcYGEtd9.mjs → AnchorPlugin.native-DXZdK3zr.mjs} +72 -71
- package/dist/{ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs → ApprovalWorkflowPlugin.native-ZsS_2xmn.mjs} +239 -238
- package/dist/{BackgroundColorPlugin.native-50iAT9xU.mjs → BackgroundColorPlugin.native-H3XyYD7_.mjs} +2 -2
- package/dist/{BlocksLibraryPlugin.native-5sdsXsiE.mjs → BlocksLibraryPlugin.native-CownM6Rk.mjs} +140 -116
- package/dist/{CapitalizationPlugin.native-DLV4oPmB.mjs → CapitalizationPlugin.native-C-HRbXGh.mjs} +10 -5
- package/dist/{ChecklistPlugin.native-BS-kMz9O.mjs → ChecklistPlugin.native-NVrBUkaL.mjs} +141 -103
- package/dist/{CitationsPlugin.native-DQgoCd1B.mjs → CitationsPlugin.native-C_7wWQ-k.mjs} +441 -422
- package/dist/{ClearFormattingPlugin.native-B6ro3a1h.mjs → ClearFormattingPlugin.native-Pp0O-SBf.mjs} +24 -23
- package/dist/{CodePlugin.native-knhM8NNo.mjs → CodePlugin.native-BH-K4xmW.mjs} +474 -342
- package/dist/CodePlugin.native-hNgfXlfS.mjs +4767 -0
- package/dist/CodeSamplePlugin.native-svbAFWh_.mjs +501 -0
- package/dist/CollaborationPlugin.native-oSybCGPW.mjs +7468 -0
- package/dist/{CommentsPlugin.native-DPSqTkiv.mjs → CommentsPlugin.native-CLip9wAO.mjs} +233 -185
- package/dist/{ConditionalContentPlugin.native-CfhY46rU.mjs → ConditionalContentPlugin.native-Bf7XgRSW.mjs} +401 -351
- package/dist/{DataBindingPlugin.native-BoXwghTz.mjs → DataBindingPlugin.native-B7lpI_0c.mjs} +29 -28
- package/dist/{DocumentManagerPlugin.native-D1YHQ2NN.mjs → DocumentManagerPlugin.native-iFip6s4Q.mjs} +94 -45
- package/dist/{EmbedIframePlugin.native-BF_-LjTq.mjs → EmbedIframePlugin.native-BfZ_HGlV.mjs} +231 -186
- package/dist/{EmojisPlugin.native-CitxxlWX.mjs → EmojisPlugin.native-D92aaOKi.mjs} +288 -76
- package/dist/{FontFamilyPlugin.native-j8hMTbg4.mjs → FontFamilyPlugin.native-M3cNQ0KA.mjs} +57 -50
- package/dist/{FontSizePlugin.native-B_jCh7dY.mjs → FontSizePlugin.native-DsLrH8eq.mjs} +41 -34
- package/dist/{FormatPainterPlugin.native-CsMrKfFU.mjs → FormatPainterPlugin.native-BhjzsiVq.mjs} +3 -2
- package/dist/{HistoryPlugin.native-D2wl32jV.mjs → HistoryPlugin.native-DPvhks6h.mjs} +36 -32
- package/dist/LinkPlugin.native-BsQXYsK6.mjs +352 -0
- package/dist/{ListPlugin.native-V7EZC1lM.mjs → ListPlugin.native-Bt0LANbO.mjs} +68 -35
- package/dist/{MathPlugin.native-NwWPHVmj.mjs → MathPlugin.native-Byo3WL0f.mjs} +211 -115
- package/dist/{MediaManagerPlugin.native-eOsTJFpw.mjs → MediaManagerPlugin.native-BT1NZIJS.mjs} +139 -134
- package/dist/{MentionPlugin.native-BMDlOqur.mjs → MentionPlugin.native-S_lwGZQO.mjs} +23 -18
- package/dist/{MergeTagPlugin.native-BzRVoD9-.mjs → MergeTagPlugin.native-7-6F3S1Y.mjs} +44 -43
- package/dist/{PreviewPlugin.native-WuIwOAOR.mjs → PreviewPlugin.native-CiR51jql.mjs} +31 -28
- package/dist/{SlashCommandsPlugin.native-BiN6ODw5.mjs → SlashCommandsPlugin.native-BDIIwGNs.mjs} +90 -79
- package/dist/{SmartPastePlugin.native-CZAEHkyt.mjs → SmartPastePlugin.native-BATLCds5.mjs} +89 -85
- package/dist/{SpecialCharactersPlugin.native-DaG4b19I.mjs → SpecialCharactersPlugin.native-CdZoc1GB.mjs} +73 -26
- package/dist/SpellCheckPlugin.native-Bef2oTLB.mjs +10935 -0
- package/dist/TablePlugin.native-BjIxYZ2X.mjs +772 -0
- package/dist/{TemplatePlugin.native-DLjFUaPW.mjs → TemplatePlugin.native-D6n5RUnC.mjs} +288 -262
- package/dist/{TextColorPlugin.native-Bwl_bSmc.mjs → TextColorPlugin.native-KMZ2uzlq.mjs} +2 -2
- package/dist/{TranslationWorkflowPlugin.native-DdF16tgT.mjs → TranslationWorkflowPlugin.native-CZtG--06.mjs} +67 -65
- package/dist/{VersionDiffPlugin.native-Bvxgy--t.mjs → VersionDiffPlugin.native-Ca1fMWUJ.mjs} +42 -42
- package/dist/anchoredPopover-DJFD2oAP.mjs +116 -0
- package/dist/core.css +1 -1
- package/dist/dialogHelpers-DBf7WqYH.mjs +40 -0
- package/dist/editora.min.js +26 -24
- package/dist/editora.umd.js +26 -24
- package/dist/escapeHtml-CX8RelZ1.mjs +7 -0
- package/dist/historyHelpers-B0-4mq1E.mjs +15 -0
- package/dist/index-XsYC_KdJ.mjs +3923 -0
- package/dist/index-_eKRBZPq.js +12 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +17 -14
- package/dist/plugin-loader.js +53 -52
- package/dist/webcomponent-core.js +2055 -476
- package/dist/webcomponent-core.min.css +1 -1
- package/dist/webcomponent-core.min.js +96 -66
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +1 -1
- package/dist/webcomponent.js +2223 -643
- package/dist/webcomponent.min.css +1 -1
- package/dist/webcomponent.min.js +1564 -1198
- package/index.d.ts +32 -0
- package/package.json +10 -3
- package/dist/CodeSamplePlugin.native-CgGoH-X4.mjs +0 -384
- package/dist/LinkPlugin.native-DYCIcdTm.mjs +0 -283
- package/dist/SpellCheckPlugin.native-BZB9AewP.mjs +0 -1039
- package/dist/TablePlugin.native-DrHX-efe.mjs +0 -495
- package/dist/anchoredPopover-Bxds0VoB.mjs +0 -110
- package/dist/index-BLm1MtzH.js +0 -10
- package/dist/index-Cd9jEuZP.mjs +0 -2341
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as z } from "./dialogHelpers-DBf7WqYH.mjs";
|
|
1
2
|
const x = {
|
|
2
3
|
all: {
|
|
3
4
|
name: "All",
|
|
@@ -79,6 +80,10 @@ const x = {
|
|
|
79
80
|
"⁇",
|
|
80
81
|
"⁈",
|
|
81
82
|
"⁉",
|
|
83
|
+
"—",
|
|
84
|
+
"–",
|
|
85
|
+
"…",
|
|
86
|
+
"·",
|
|
82
87
|
"+",
|
|
83
88
|
"-",
|
|
84
89
|
"×",
|
|
@@ -169,6 +174,16 @@ const x = {
|
|
|
169
174
|
"≽",
|
|
170
175
|
"≾",
|
|
171
176
|
"≿",
|
|
177
|
+
"∞",
|
|
178
|
+
"√",
|
|
179
|
+
"¼",
|
|
180
|
+
"½",
|
|
181
|
+
"¾",
|
|
182
|
+
"¹",
|
|
183
|
+
"²",
|
|
184
|
+
"³",
|
|
185
|
+
"µ",
|
|
186
|
+
"¬",
|
|
172
187
|
"À",
|
|
173
188
|
"Á",
|
|
174
189
|
"Â",
|
|
@@ -367,7 +382,7 @@ const x = {
|
|
|
367
382
|
},
|
|
368
383
|
text: {
|
|
369
384
|
name: "Text",
|
|
370
|
-
characters: ["©", "®", "™", "°", "§", "¶", "†", "‡", "•", "‣", "⁃", "‰", "‱", "′", "″", "‴", "‵", "‶", "‷", "※", "‼", "‽", "‾", "‿", "⁀", "⁁", "⁂"]
|
|
385
|
+
characters: ["©", "®", "™", "°", "§", "¶", "†", "‡", "•", "‣", "⁃", "‰", "‱", "′", "″", "‴", "‵", "‶", "‷", "※", "‼", "‽", "‾", "‿", "⁀", "⁁", "⁂", "—", "–", "…", "·"]
|
|
371
386
|
},
|
|
372
387
|
quotation: {
|
|
373
388
|
name: "Quotation",
|
|
@@ -375,7 +390,7 @@ const x = {
|
|
|
375
390
|
},
|
|
376
391
|
mathematical: {
|
|
377
392
|
name: "Mathematical",
|
|
378
|
-
characters: ["+", "-", "×", "÷", "=", "≠", "≈", "≡", "≤", "≥", "<", ">", "±", "∓", "∴", "∵", "∶", "∷", "∸", "∹", "∺", "∻", "∼", "∽", "∾", "∿", "≀", "≁", "≂", "≃", "≄", "≅", "≆", "≇", "≉", "≊", "≋", "≌", "≍", "≎", "≏", "≐", "≑", "≒", "≓", "≔", "≕", "≖", "≗", "≘", "≙", "≚", "≛", "≜", "≝", "≞", "≟", "≢", "≣", "≦", "≧", "≨", "≩", "≪", "≫", "≬", "≭", "≮", "≯", "≰", "≱", "≲", "≳", "≴", "≵", "≶", "≷", "≸", "≹", "≺", "≻", "≼", "≽", "≾", "≿"]
|
|
393
|
+
characters: ["+", "-", "×", "÷", "=", "≠", "≈", "≡", "≤", "≥", "<", ">", "±", "∓", "∴", "∵", "∶", "∷", "∸", "∹", "∺", "∻", "∼", "∽", "∾", "∿", "≀", "≁", "≂", "≃", "≄", "≅", "≆", "≇", "≉", "≊", "≋", "≌", "≍", "≎", "≏", "≐", "≑", "≒", "≓", "≔", "≕", "≖", "≗", "≘", "≙", "≚", "≛", "≜", "≝", "≞", "≟", "≢", "≣", "≦", "≧", "≨", "≩", "≪", "≫", "≬", "≭", "≮", "≯", "≰", "≱", "≲", "≳", "≴", "≵", "≶", "≷", "≸", "≹", "≺", "≻", "≼", "≽", "≾", "≿", "∞", "√", "¼", "½", "¾", "¹", "²", "³", "µ", "¬"]
|
|
379
394
|
},
|
|
380
395
|
"extended-latin": {
|
|
381
396
|
name: "Extended Latin",
|
|
@@ -402,7 +417,6 @@ const x = {
|
|
|
402
417
|
"'": "apostrophe",
|
|
403
418
|
"«": "left angle quote",
|
|
404
419
|
"»": "right angle quote",
|
|
405
|
-
"„": "low quote",
|
|
406
420
|
"©": "copyright",
|
|
407
421
|
"®": "registered",
|
|
408
422
|
"™": "trademark",
|
|
@@ -432,17 +446,47 @@ const x = {
|
|
|
432
446
|
Ã: "a tilde",
|
|
433
447
|
Ä: "a diaeresis",
|
|
434
448
|
Ç: "c cedilla",
|
|
449
|
+
È: "e grave",
|
|
450
|
+
É: "e acute",
|
|
451
|
+
Ê: "e circumflex",
|
|
452
|
+
Ë: "e diaeresis",
|
|
453
|
+
è: "e grave",
|
|
454
|
+
é: "e acute",
|
|
455
|
+
ê: "e circumflex",
|
|
456
|
+
ë: "e diaeresis",
|
|
457
|
+
Ñ: "n tilde",
|
|
458
|
+
ñ: "n tilde",
|
|
459
|
+
Ü: "u diaeresis",
|
|
460
|
+
ü: "u diaeresis",
|
|
435
461
|
"←": "left arrow",
|
|
436
462
|
"↑": "up arrow",
|
|
437
463
|
"→": "right arrow",
|
|
438
464
|
"↓": "down arrow",
|
|
439
|
-
"↔": "left right arrow"
|
|
465
|
+
"↔": "left right arrow",
|
|
466
|
+
"—": "em dash",
|
|
467
|
+
"–": "en dash",
|
|
468
|
+
"…": "ellipsis",
|
|
469
|
+
"·": "middle dot",
|
|
470
|
+
"∞": "infinity",
|
|
471
|
+
"√": "square root",
|
|
472
|
+
"¼": "one quarter",
|
|
473
|
+
"½": "one half",
|
|
474
|
+
"¾": "three quarters",
|
|
475
|
+
"¹": "superscript one",
|
|
476
|
+
"²": "superscript two",
|
|
477
|
+
"³": "superscript three",
|
|
478
|
+
µ: "micro sign",
|
|
479
|
+
"¬": "not sign",
|
|
480
|
+
"‹": "single left angle quote",
|
|
481
|
+
"›": "single right angle quote",
|
|
482
|
+
"„": "double low quote",
|
|
483
|
+
"‚": "single low quote"
|
|
440
484
|
};
|
|
441
485
|
let w = !1;
|
|
442
|
-
const
|
|
486
|
+
const S = '[data-theme="dark"], .dark, .editora-theme-dark', q = (r) => r ? r.nodeType === Node.ELEMENT_NODE ? r : r.parentElement : null, b = () => {
|
|
443
487
|
const r = window.getSelection();
|
|
444
488
|
if (!r || r.rangeCount === 0) return null;
|
|
445
|
-
const e =
|
|
489
|
+
const e = q(r.getRangeAt(0).startContainer);
|
|
446
490
|
return (e == null ? void 0 : e.closest('.rte-content, .editora-content, [contenteditable="true"]')) || null;
|
|
447
491
|
}, A = (r) => {
|
|
448
492
|
const e = window.getSelection();
|
|
@@ -464,10 +508,10 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
464
508
|
} catch (c) {
|
|
465
509
|
}
|
|
466
510
|
}
|
|
467
|
-
},
|
|
468
|
-
const e = r ||
|
|
469
|
-
return e ? !!e.closest(
|
|
470
|
-
},
|
|
511
|
+
}, N = (r) => {
|
|
512
|
+
const e = r || b();
|
|
513
|
+
return e ? !!e.closest(S) : !1;
|
|
514
|
+
}, D = () => {
|
|
471
515
|
if (typeof document == "undefined") return;
|
|
472
516
|
const r = "special-characters-plugin-styles";
|
|
473
517
|
if (document.getElementById(r)) return;
|
|
@@ -718,6 +762,9 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
718
762
|
border-bottom: 1px solid var(--rte-sc-border);
|
|
719
763
|
flex-direction: row;
|
|
720
764
|
overflow-x: auto;
|
|
765
|
+
/* As a column-flex child with overflow set it would shrink below its
|
|
766
|
+
content height when the dialog is short, clipping the tab labels. */
|
|
767
|
+
flex-shrink: 0;
|
|
721
768
|
}
|
|
722
769
|
|
|
723
770
|
.special-characters-tab {
|
|
@@ -739,8 +786,8 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
739
786
|
}
|
|
740
787
|
}
|
|
741
788
|
`, document.head.appendChild(e);
|
|
742
|
-
},
|
|
743
|
-
const c = e ||
|
|
789
|
+
}, R = (r, e, a) => {
|
|
790
|
+
const c = e || b();
|
|
744
791
|
if (!c) return;
|
|
745
792
|
const l = a && c.contains(a.commonAncestorContainer) ? a : L(c), d = c.innerHTML;
|
|
746
793
|
l.deleteContents();
|
|
@@ -750,13 +797,13 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
750
797
|
o && (o.removeAllRanges(), o.addRange(l));
|
|
751
798
|
const p = c.innerHTML;
|
|
752
799
|
T(c, d, p), c.dispatchEvent(new window.Event("input", { bubbles: !0 })), c.focus();
|
|
753
|
-
},
|
|
800
|
+
}, j = (r) => {
|
|
754
801
|
if (typeof window == "undefined" || w) return;
|
|
755
|
-
w = !0,
|
|
756
|
-
const e = r ||
|
|
802
|
+
w = !0, D();
|
|
803
|
+
const e = r || b(), a = e ? A(e) : null;
|
|
757
804
|
let c = "all", l = "", d = null;
|
|
758
805
|
const i = document.createElement("div");
|
|
759
|
-
i.className = "special-characters-overlay",
|
|
806
|
+
z(i), i.className = "special-characters-overlay", N(r) && i.classList.add("rte-ui-theme-dark");
|
|
760
807
|
const o = document.createElement("div");
|
|
761
808
|
o.className = "special-characters-dialog", o.setAttribute("role", "dialog"), o.setAttribute("aria-modal", "true"), o.innerHTML = `
|
|
762
809
|
<div class="special-characters-header">
|
|
@@ -803,12 +850,12 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
803
850
|
const n = document.createElement("button");
|
|
804
851
|
n.type = "button", n.className = "special-characters-item", n.dataset.char = s, n.title = E[s] || s, n.textContent = s, u.appendChild(n);
|
|
805
852
|
});
|
|
806
|
-
},
|
|
853
|
+
}, m = () => {
|
|
807
854
|
d !== null && (window.clearTimeout(d), d = null), i.parentNode && i.parentNode.removeChild(i), w = !1, document.removeEventListener("keydown", y, !0);
|
|
808
855
|
}, y = (t) => {
|
|
809
|
-
t.key === "Escape" && (t.preventDefault(), t.stopPropagation(),
|
|
856
|
+
t.key === "Escape" && (t.preventDefault(), t.stopPropagation(), m());
|
|
810
857
|
};
|
|
811
|
-
f == null || f.addEventListener("click",
|
|
858
|
+
f == null || f.addEventListener("click", m), p == null || p.addEventListener("click", (t) => {
|
|
812
859
|
const n = t.target.closest(".special-characters-tab");
|
|
813
860
|
if (!n) return;
|
|
814
861
|
const g = n.getAttribute("data-category");
|
|
@@ -821,11 +868,11 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
821
868
|
const n = t.target.closest(".special-characters-item");
|
|
822
869
|
if (!n) return;
|
|
823
870
|
const g = n.dataset.char;
|
|
824
|
-
g && (
|
|
871
|
+
g && (R(g, e, a), m());
|
|
825
872
|
}), i.addEventListener("click", (t) => {
|
|
826
|
-
t.target === i &&
|
|
873
|
+
t.target === i && m();
|
|
827
874
|
}), document.addEventListener("keydown", y, !0), k(), v(), i.appendChild(o), document.body.appendChild(i), requestAnimationFrame(() => h == null ? void 0 : h.focus());
|
|
828
|
-
},
|
|
875
|
+
}, H = () => ({
|
|
829
876
|
name: "specialCharacters",
|
|
830
877
|
toolbar: [{
|
|
831
878
|
label: "Special Characters",
|
|
@@ -834,13 +881,13 @@ const z = '[data-theme="dark"], .dark, .editora-theme-dark', S = (r) => r ? r.no
|
|
|
834
881
|
}],
|
|
835
882
|
commands: {
|
|
836
883
|
insertSpecialCharacter: (r, e) => {
|
|
837
|
-
const a = (e == null ? void 0 : e.contentElement) instanceof HTMLElement ? e.contentElement :
|
|
838
|
-
return
|
|
884
|
+
const a = (e == null ? void 0 : e.contentElement) instanceof HTMLElement ? e.contentElement : b();
|
|
885
|
+
return j(a), !0;
|
|
839
886
|
}
|
|
840
887
|
},
|
|
841
888
|
keymap: {}
|
|
842
889
|
});
|
|
843
890
|
export {
|
|
844
|
-
|
|
891
|
+
H as SpecialCharactersPlugin
|
|
845
892
|
};
|
|
846
|
-
//# sourceMappingURL=SpecialCharactersPlugin.native-
|
|
893
|
+
//# sourceMappingURL=SpecialCharactersPlugin.native-CdZoc1GB.mjs.map
|