@editora/plugins 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.
- package/README.md +27 -0
- package/dist/_commonjsHelpers-6763f629.js +1 -0
- package/dist/_commonjsHelpers-c5d32002.mjs +30 -0
- package/dist/a11y-checker.cjs.js +12 -12
- package/dist/a11y-checker.esm.js +98 -80
- package/dist/anchor.cjs.js +12 -12
- package/dist/anchor.esm.js +128 -115
- package/dist/anchoredPopover-33f1358d.mjs +109 -0
- package/dist/anchoredPopover-8151d535.js +1 -0
- package/dist/approval-workflow.cjs.js +447 -0
- package/dist/approval-workflow.esm.js +1111 -0
- package/dist/background-color.cjs.js +2 -2
- package/dist/background-color.esm.js +68 -55
- package/dist/blockquote.esm.js +2 -1
- package/dist/blocks-library.cjs.js +442 -0
- package/dist/blocks-library.esm.js +1384 -0
- package/dist/capitalization.esm.js +2 -1
- package/dist/checklist.cjs.js +1 -1
- package/dist/checklist.esm.js +82 -58
- package/dist/citations.cjs.js +548 -0
- package/dist/citations.esm.js +1530 -0
- package/dist/clear-formatting.cjs.js +1 -1
- package/dist/clear-formatting.esm.js +33 -27
- package/dist/code-sample.cjs.js +14 -14
- package/dist/code-sample.esm.js +93 -82
- package/dist/code.cjs.js +32 -32
- package/dist/code.esm.js +653 -594
- package/dist/comments.cjs.js +6 -6
- package/dist/comments.esm.js +158 -116
- package/dist/conditional-content.cjs.js +626 -0
- package/dist/conditional-content.esm.js +1421 -0
- package/dist/content-rules.cjs.js +408 -0
- package/dist/content-rules.esm.js +1147 -0
- package/dist/data-binding.cjs.js +321 -0
- package/dist/data-binding.esm.js +953 -0
- package/dist/direction.esm.js +18 -9
- package/dist/doc-schema.cjs.js +398 -0
- package/dist/doc-schema.esm.js +1378 -0
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +5 -4
- package/dist/documentManager-25b6203c.mjs +9122 -0
- package/dist/documentManager-b69e7054.js +17 -0
- package/dist/{editorContainerHelpers-C7kdWnS0.mjs → editorContainerHelpers-69585c07.mjs} +2 -1
- package/dist/embed-iframe.cjs.js +4 -4
- package/dist/embed-iframe.esm.js +81 -73
- package/dist/emojis.cjs.js +8 -8
- package/dist/emojis.esm.js +77 -65
- package/dist/enterprise.cjs.js +1 -0
- package/dist/enterprise.esm.js +58 -0
- package/dist/font-family.cjs.js +1 -1
- package/dist/font-family.esm.js +47 -39
- package/dist/font-size.cjs.js +1 -1
- package/dist/font-size.esm.js +53 -37
- package/dist/footnote.cjs.js +2 -2
- package/dist/footnote.esm.js +117 -76
- package/dist/history.cjs.js +1 -1
- package/dist/history.esm.js +92 -70
- package/dist/html2canvas.esm-09133e29.js +22 -0
- package/dist/{html2canvas.esm-BWVIUcAF.mjs → html2canvas.esm-1a1724a1.mjs} +225 -141
- package/dist/indent.cjs.js +1 -1
- package/dist/indent.esm.js +24 -12
- package/dist/index-656d224b.js +231 -0
- package/dist/index-6a8c48bb.js +1 -0
- package/dist/index-d027b7e2.mjs +16859 -0
- package/dist/{index-BFsKNTTj.mjs → index-f04538f2.mjs} +71 -70
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-730f2d98.mjs +5775 -0
- package/dist/index.es-dd40173b.js +18 -0
- package/dist/index.esm.js +124 -93
- package/dist/italic.cjs.js +1 -1
- package/dist/italic.esm.js +9 -8
- package/dist/jspdf.es.min-90db2c97.js +243 -0
- package/dist/{jspdf.es.min-DQCoX5yh.mjs → jspdf.es.min-c36a4fd8.mjs} +4682 -3658
- package/dist/line-height.cjs.js +1 -1
- package/dist/line-height.esm.js +24 -11
- package/dist/link.cjs.js +5 -5
- package/dist/link.esm.js +30 -24
- package/dist/list.cjs.js +1 -1
- package/dist/list.esm.js +25 -20
- package/dist/lite.cjs.js +1 -1
- package/dist/lite.esm.js +61 -59
- package/dist/math.cjs.js +21 -21
- package/dist/math.esm.js +146 -139
- package/dist/media-manager.cjs.js +38 -38
- package/dist/media-manager.esm.js +325 -308
- package/dist/mentions.cjs.js +105 -0
- package/dist/mentions.esm.js +774 -0
- package/dist/merge-tag.cjs.js +2 -2
- package/dist/merge-tag.esm.js +216 -177
- package/dist/page-break.cjs.js +2 -2
- package/dist/page-break.esm.js +67 -51
- package/dist/pii-redaction.cjs.js +436 -0
- package/dist/pii-redaction.esm.js +1447 -0
- package/dist/preview.cjs.js +3 -3
- package/dist/preview.esm.js +37 -32
- package/dist/print.cjs.js +4 -4
- package/dist/print.esm.js +20 -17
- package/dist/{purify.es-DHhaBdbu.mjs → purify.es-35a15df8.mjs} +19 -9
- package/dist/{purify.es-T2a3nLiC.js → purify.es-a8d731c6.js} +1 -1
- package/dist/slash-commands.cjs.js +90 -0
- package/dist/slash-commands.esm.js +788 -0
- package/dist/smart-paste.cjs.js +398 -0
- package/dist/smart-paste.esm.js +1444 -0
- package/dist/special-characters.cjs.js +7 -7
- package/dist/special-characters.esm.js +69 -61
- package/dist/spell-check.cjs.js +5 -5
- package/dist/spell-check.esm.js +123 -97
- package/dist/strikethrough.cjs.js +1 -1
- package/dist/strikethrough.esm.js +19 -14
- package/dist/style.css +1 -0
- package/dist/table.cjs.js +4 -4
- package/dist/table.esm.js +225 -191
- package/dist/template.cjs.js +11 -11
- package/dist/template.esm.js +153 -124
- package/dist/text-alignment.cjs.js +1 -1
- package/dist/text-alignment.esm.js +27 -21
- package/dist/text-color.cjs.js +3 -3
- package/dist/text-color.esm.js +87 -70
- package/dist/track-changes.cjs.js +77 -0
- package/dist/track-changes.esm.js +817 -0
- package/dist/translation-workflow.cjs.js +626 -0
- package/dist/translation-workflow.esm.js +1794 -0
- package/dist/version-diff.cjs.js +362 -0
- package/dist/version-diff.esm.js +797 -0
- package/index.d.ts +798 -0
- package/package.json +114 -9
- package/dist/_commonjsHelpers-BH3jXuIh.js +0 -1
- package/dist/_commonjsHelpers-ByX85dGu.mjs +0 -33
- package/dist/anchoredPopover-BzqGPOAE.js +0 -1
- package/dist/anchoredPopover-Dts0IrgU.mjs +0 -106
- package/dist/documentManager-CTqRftU8.mjs +0 -8369
- package/dist/documentManager-Jf0RbSks.js +0 -17
- package/dist/html2canvas.esm-B5qzocYs.js +0 -5
- package/dist/index-CvJk4DKa.js +0 -221
- package/dist/index-D3CycEFU.mjs +0 -16543
- package/dist/index-tqLTHcO6.js +0 -1
- package/dist/index.es-CE_A4QSm.js +0 -5
- package/dist/index.es-DQ78mYYo.mjs +0 -6665
- package/dist/jspdf.es.min-BoS80556.js +0 -77
- package/dist/plugins.css +0 -1
- /package/dist/{editorContainerHelpers-CFbfiOJI.js → editorContainerHelpers-36b8ddf3.js} +0 -0
package/dist/emojis.esm.js
CHANGED
|
@@ -540,7 +540,7 @@ const p = {
|
|
|
540
540
|
"🇳🇿"
|
|
541
541
|
]
|
|
542
542
|
}
|
|
543
|
-
},
|
|
543
|
+
}, w = {
|
|
544
544
|
"💙": "blue heart",
|
|
545
545
|
"💚": "green heart",
|
|
546
546
|
"💛": "yellow heart",
|
|
@@ -689,7 +689,7 @@ const p = {
|
|
|
689
689
|
"🧸": "teddy bear"
|
|
690
690
|
};
|
|
691
691
|
let g = null, s = "all", u = "", n = null, l = null, d = null;
|
|
692
|
-
const
|
|
692
|
+
const y = '[data-theme="dark"], .dark, .editora-theme-dark', C = () => ({
|
|
693
693
|
name: "emojis",
|
|
694
694
|
toolbar: [
|
|
695
695
|
{
|
|
@@ -701,16 +701,18 @@ const k = '[data-theme="dark"], .dark, .editora-theme-dark', A = () => ({
|
|
|
701
701
|
}
|
|
702
702
|
],
|
|
703
703
|
commands: {
|
|
704
|
-
openEmojiDialog: (
|
|
705
|
-
const e =
|
|
706
|
-
return e ? (
|
|
704
|
+
openEmojiDialog: (r, t) => {
|
|
705
|
+
const e = (t == null ? void 0 : t.contentElement) || b();
|
|
706
|
+
return e ? (E(e), !0) : !1;
|
|
707
707
|
},
|
|
708
|
-
insertEmoji: (
|
|
709
|
-
if (!
|
|
710
|
-
|
|
711
|
-
|
|
708
|
+
insertEmoji: (r, t) => {
|
|
709
|
+
if (!r)
|
|
710
|
+
return !1;
|
|
711
|
+
const e = (t == null ? void 0 : t.contentElement) || b();
|
|
712
|
+
if (!e)
|
|
713
|
+
return !1;
|
|
712
714
|
try {
|
|
713
|
-
return
|
|
715
|
+
return k(r, e), !0;
|
|
714
716
|
} catch {
|
|
715
717
|
return !1;
|
|
716
718
|
}
|
|
@@ -720,15 +722,15 @@ const k = '[data-theme="dark"], .dark, .editora-theme-dark', A = () => ({
|
|
|
720
722
|
"Mod-Shift-j": "openEmojiDialog"
|
|
721
723
|
}
|
|
722
724
|
});
|
|
723
|
-
function
|
|
725
|
+
function E(r) {
|
|
724
726
|
m(), s = "all", u = "";
|
|
725
|
-
const
|
|
726
|
-
l = null,
|
|
727
|
+
const t = window.getSelection();
|
|
728
|
+
l = null, t && t.rangeCount > 0 && r.contains(t.anchorNode) && (l = t.getRangeAt(0).cloneRange());
|
|
727
729
|
const e = document.createElement("div");
|
|
728
|
-
e.className = "emojis-overlay",
|
|
730
|
+
e.className = "emojis-overlay", A(r) && e.classList.add("rte-ui-theme-dark"), e.onclick = m;
|
|
729
731
|
const o = document.createElement("div");
|
|
730
|
-
o.className = "emojis-dialog", o.setAttribute("role", "dialog"), o.setAttribute("aria-modal", "true"), o.onclick = (
|
|
731
|
-
const
|
|
732
|
+
o.className = "emojis-dialog", o.setAttribute("role", "dialog"), o.setAttribute("aria-modal", "true"), o.onclick = (i) => i.stopPropagation();
|
|
733
|
+
const a = Object.keys(p);
|
|
732
734
|
o.innerHTML = `
|
|
733
735
|
<div class="rte-dialog-header emojis-header">
|
|
734
736
|
<h3>Insert Emojis</h3>
|
|
@@ -736,9 +738,9 @@ function w(t) {
|
|
|
736
738
|
</div>
|
|
737
739
|
<div class="rte-dialog-body emojis-content">
|
|
738
740
|
<div class="emojis-tabs">
|
|
739
|
-
${
|
|
740
|
-
<button class="emojis-tab ${
|
|
741
|
-
${p[
|
|
741
|
+
${a.map((i) => `
|
|
742
|
+
<button class="emojis-tab ${i === s ? "active" : ""}" data-category="${i}">
|
|
743
|
+
${p[i].name}
|
|
742
744
|
</button>
|
|
743
745
|
`).join("")}
|
|
744
746
|
</div>
|
|
@@ -756,45 +758,53 @@ function w(t) {
|
|
|
756
758
|
/>
|
|
757
759
|
</div>
|
|
758
760
|
<div class="emojis-grid" id="emojis-grid">
|
|
759
|
-
${
|
|
761
|
+
${x(s, u)}
|
|
760
762
|
</div>
|
|
761
763
|
</div>
|
|
762
764
|
</div>
|
|
763
|
-
`, e.appendChild(o), document.body.appendChild(e), g = e, d = (
|
|
764
|
-
|
|
765
|
-
}, document.addEventListener("keydown", d, !0),
|
|
766
|
-
|
|
765
|
+
`, e.appendChild(o), document.body.appendChild(e), g = e, d = (i) => {
|
|
766
|
+
i.key === "Escape" && (i.preventDefault(), i.stopPropagation(), m());
|
|
767
|
+
}, document.addEventListener("keydown", d, !0), z(o, r), L(), requestAnimationFrame(() => {
|
|
768
|
+
var i;
|
|
769
|
+
(i = o.querySelector("#emoji-search-input")) == null || i.focus();
|
|
767
770
|
});
|
|
768
771
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
c
|
|
772
|
+
function z(r, t) {
|
|
773
|
+
var a;
|
|
774
|
+
(a = r.querySelector(".emojis-close")) == null || a.addEventListener("click", m), r.querySelectorAll(".emojis-tab").forEach((i) => {
|
|
775
|
+
i.addEventListener("click", (f) => {
|
|
776
|
+
const c = f.target.getAttribute("data-category");
|
|
777
|
+
c && S(r, c);
|
|
774
778
|
});
|
|
775
|
-
})
|
|
779
|
+
});
|
|
780
|
+
const e = r.querySelector("#emoji-search-input");
|
|
781
|
+
e == null || e.addEventListener("input", (i) => {
|
|
776
782
|
u = i.target.value, n !== null && window.clearTimeout(n), n = window.setTimeout(() => {
|
|
777
|
-
n = null,
|
|
783
|
+
n = null, v(r);
|
|
778
784
|
}, 90);
|
|
779
|
-
})
|
|
785
|
+
});
|
|
786
|
+
const o = r.querySelector("#emojis-grid");
|
|
787
|
+
o == null || o.addEventListener("click", (i) => {
|
|
788
|
+
var j;
|
|
780
789
|
const c = i.target.closest(".emojis-item");
|
|
781
|
-
if (!c)
|
|
782
|
-
|
|
783
|
-
|
|
790
|
+
if (!c)
|
|
791
|
+
return;
|
|
792
|
+
const h = c.getAttribute("data-emoji") || ((j = c.textContent) == null ? void 0 : j.trim()) || "";
|
|
793
|
+
h && (k(h, t), m());
|
|
784
794
|
});
|
|
785
795
|
}
|
|
786
|
-
function
|
|
787
|
-
s =
|
|
788
|
-
e.classList.toggle("active", e.getAttribute("data-category") ===
|
|
789
|
-
}),
|
|
796
|
+
function S(r, t) {
|
|
797
|
+
s = t, r.querySelectorAll(".emojis-tab").forEach((e) => {
|
|
798
|
+
e.classList.toggle("active", e.getAttribute("data-category") === t);
|
|
799
|
+
}), v(r);
|
|
790
800
|
}
|
|
791
|
-
function
|
|
792
|
-
const
|
|
793
|
-
|
|
801
|
+
function v(r) {
|
|
802
|
+
const t = r.querySelector("#emojis-grid");
|
|
803
|
+
t && (t.innerHTML = x(s, u));
|
|
794
804
|
}
|
|
795
|
-
function
|
|
796
|
-
let e = p[
|
|
797
|
-
return
|
|
805
|
+
function x(r, t) {
|
|
806
|
+
let e = p[r].emojis;
|
|
807
|
+
return t.trim() && (e = e.filter((o) => o.toLowerCase().includes(t.toLowerCase()) ? !0 : (w[o] || "").toLowerCase().includes(t.toLowerCase()))), e.length === 0 && t.trim() ? `<div class="emojis-no-results">No emojis found for "${t}"</div>` : e.map((o, a) => `
|
|
798
808
|
<button
|
|
799
809
|
class="emojis-item"
|
|
800
810
|
title="Insert ${o}"
|
|
@@ -807,33 +817,35 @@ function j(t, r) {
|
|
|
807
817
|
function m() {
|
|
808
818
|
d && (document.removeEventListener("keydown", d, !0), d = null), n !== null && (window.clearTimeout(n), n = null), g && (g.remove(), g = null);
|
|
809
819
|
}
|
|
810
|
-
function
|
|
811
|
-
|
|
820
|
+
function k(r, t) {
|
|
821
|
+
t.focus();
|
|
812
822
|
let e = window.getSelection();
|
|
813
|
-
if (l && (e
|
|
823
|
+
if (l && (e == null || e.removeAllRanges(), e == null || e.addRange(l), l = null), e = window.getSelection(), e && e.rangeCount > 0) {
|
|
814
824
|
const o = e.getRangeAt(0);
|
|
815
825
|
o.deleteContents();
|
|
816
|
-
const
|
|
817
|
-
o.insertNode(
|
|
826
|
+
const a = document.createTextNode(r);
|
|
827
|
+
o.insertNode(a), o.setStartAfter(a), o.setEndAfter(a), e.removeAllRanges(), e.addRange(o);
|
|
818
828
|
}
|
|
819
829
|
}
|
|
820
830
|
function b() {
|
|
821
|
-
const
|
|
822
|
-
if (
|
|
823
|
-
const e =
|
|
824
|
-
if (
|
|
831
|
+
const r = window.getSelection();
|
|
832
|
+
if (r && r.rangeCount > 0) {
|
|
833
|
+
const e = r.anchorNode, o = e instanceof HTMLElement ? e : e == null ? void 0 : e.parentElement, a = o == null ? void 0 : o.closest(".editora-content, .rte-content");
|
|
834
|
+
if (a)
|
|
835
|
+
return a;
|
|
825
836
|
}
|
|
826
|
-
const
|
|
827
|
-
return
|
|
837
|
+
const t = document.activeElement;
|
|
838
|
+
return t && (t.classList.contains("editora-content") || t.classList.contains("rte-content")) ? t : document.querySelector(".editora-content, .rte-content");
|
|
828
839
|
}
|
|
829
|
-
function
|
|
830
|
-
const
|
|
831
|
-
return
|
|
840
|
+
function A(r) {
|
|
841
|
+
const t = r || b();
|
|
842
|
+
return t ? !!t.closest(y) : !1;
|
|
832
843
|
}
|
|
833
|
-
function
|
|
834
|
-
if (document.getElementById("emojis-dialog-styles"))
|
|
835
|
-
|
|
836
|
-
|
|
844
|
+
function L() {
|
|
845
|
+
if (document.getElementById("emojis-dialog-styles"))
|
|
846
|
+
return;
|
|
847
|
+
const r = document.createElement("style");
|
|
848
|
+
r.id = "emojis-dialog-styles", r.textContent = `
|
|
837
849
|
.emojis-overlay {
|
|
838
850
|
--rte-emoji-overlay-bg: rgba(15, 23, 36, 0.56);
|
|
839
851
|
--rte-emoji-dialog-bg: #ffffff;
|
|
@@ -1102,8 +1114,8 @@ function S() {
|
|
|
1102
1114
|
font-size: 16px;
|
|
1103
1115
|
}
|
|
1104
1116
|
}
|
|
1105
|
-
`, document.head.appendChild(
|
|
1117
|
+
`, document.head.appendChild(r);
|
|
1106
1118
|
}
|
|
1107
1119
|
export {
|
|
1108
|
-
|
|
1120
|
+
C as EmojisPlugin
|
|
1109
1121
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./mentions.cjs.js"),t=require("./track-changes.cjs.js"),r=require("./version-diff.cjs.js"),o=require("./conditional-content.cjs.js"),l=require("./data-binding.cjs.js"),g=require("./content-rules.cjs.js"),u=require("./citations.cjs.js"),s=require("./approval-workflow.cjs.js"),c=require("./pii-redaction.cjs.js"),P=require("./smart-paste.cjs.js"),m=require("./blocks-library.cjs.js"),C=require("./doc-schema.cjs.js"),d=require("./translation-workflow.cjs.js"),p=require("./slash-commands.cjs.js"),M=require("./spell-check.cjs.js"),T=require("./a11y-checker.cjs.js"),q=require("./comments.cjs.js"),f=require("./merge-tag.cjs.js"),e=require("./template.cjs.js"),n=require("./media-manager.cjs.js"),i=require("./index-6a8c48bb.js");require("./purify.es-a8d731c6.js");require("./shared-config.cjs.js");exports.MentionPlugin=a.MentionPlugin;exports.TrackChangesPlugin=t.TrackChangesPlugin;exports.VersionDiffPlugin=r.VersionDiffPlugin;exports.ConditionalContentPlugin=o.ConditionalContentPlugin;exports.DataBindingPlugin=l.DataBindingPlugin;exports.ContentRulesPlugin=g.ContentRulesPlugin;exports.CitationsPlugin=u.CitationsPlugin;exports.ApprovalWorkflowPlugin=s.ApprovalWorkflowPlugin;exports.PIIRedactionPlugin=c.PIIRedactionPlugin;exports.SmartPastePlugin=P.SmartPastePlugin;exports.BlocksLibraryPlugin=m.BlocksLibraryPlugin;exports.DocSchemaPlugin=C.DocSchemaPlugin;exports.TranslationWorkflowPlugin=d.TranslationWorkflowPlugin;exports.SlashCommandsPlugin=p.SlashCommandsPlugin;exports.SpellCheckPlugin=M.SpellCheckPlugin;exports.A11yCheckerPlugin=T.A11yCheckerPlugin;exports.CommentsPlugin=q.CommentsPlugin;exports.MergeTagPlugin=f.MergeTagPlugin;exports.PREDEFINED_TEMPLATES=e.PREDEFINED_TEMPLATES;exports.TemplatePlugin=e.TemplatePlugin;exports.addCustomTemplate=e.addCustomTemplate;exports.getAllTemplates=e.getAllTemplates;exports.getTemplateCategories=e.getTemplateCategories;exports.getTemplatesByCategory=e.getTemplatesByCategory;exports.sanitizeTemplate=e.sanitizeTemplate;exports.searchTemplates=e.searchTemplates;exports.validateTemplate=e.validateTemplate;exports.MediaManagerPlugin=n.MediaManagerPlugin;exports.getMediaManagerConfig=n.getMediaManagerConfig;exports.setMediaManagerConfig=n.setMediaManagerConfig;exports.DocumentManagerPlugin=i.DocumentManagerPlugin;exports.getDocumentManagerConfig=i.getDocumentManagerConfig;exports.setDocumentManagerConfig=i.setDocumentManagerConfig;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { MentionPlugin as n } from "./mentions.esm.js";
|
|
2
|
+
import { TrackChangesPlugin as i } from "./track-changes.esm.js";
|
|
3
|
+
import { VersionDiffPlugin as l } from "./version-diff.esm.js";
|
|
4
|
+
import { ConditionalContentPlugin as p } from "./conditional-content.esm.js";
|
|
5
|
+
import { DataBindingPlugin as u } from "./data-binding.esm.js";
|
|
6
|
+
import { ContentRulesPlugin as s } from "./content-rules.esm.js";
|
|
7
|
+
import { CitationsPlugin as C } from "./citations.esm.js";
|
|
8
|
+
import { ApprovalWorkflowPlugin as M } from "./approval-workflow.esm.js";
|
|
9
|
+
import { PIIRedactionPlugin as d } from "./pii-redaction.esm.js";
|
|
10
|
+
import { SmartPastePlugin as h } from "./smart-paste.esm.js";
|
|
11
|
+
import { BlocksLibraryPlugin as E } from "./blocks-library.esm.js";
|
|
12
|
+
import { DocSchemaPlugin as y } from "./doc-schema.esm.js";
|
|
13
|
+
import { TranslationWorkflowPlugin as B } from "./translation-workflow.esm.js";
|
|
14
|
+
import { SlashCommandsPlugin as R } from "./slash-commands.esm.js";
|
|
15
|
+
import { SpellCheckPlugin as w } from "./spell-check.esm.js";
|
|
16
|
+
import { A11yCheckerPlugin as W } from "./a11y-checker.esm.js";
|
|
17
|
+
import { CommentsPlugin as z } from "./comments.esm.js";
|
|
18
|
+
import { MergeTagPlugin as N } from "./merge-tag.esm.js";
|
|
19
|
+
import { PREDEFINED_TEMPLATES as _, TemplatePlugin as j, addCustomTemplate as q, getAllTemplates as G, getTemplateCategories as H, getTemplatesByCategory as J, sanitizeTemplate as K, searchTemplates as O, validateTemplate as Q } from "./template.esm.js";
|
|
20
|
+
import { MediaManagerPlugin as X, getMediaManagerConfig as Y, setMediaManagerConfig as Z } from "./media-manager.esm.js";
|
|
21
|
+
import { D as ee, g as oe, s as re } from "./index-f04538f2.mjs";
|
|
22
|
+
import "./purify.es-35a15df8.mjs";
|
|
23
|
+
import "./shared-config.esm.js";
|
|
24
|
+
export {
|
|
25
|
+
W as A11yCheckerPlugin,
|
|
26
|
+
M as ApprovalWorkflowPlugin,
|
|
27
|
+
E as BlocksLibraryPlugin,
|
|
28
|
+
C as CitationsPlugin,
|
|
29
|
+
z as CommentsPlugin,
|
|
30
|
+
p as ConditionalContentPlugin,
|
|
31
|
+
s as ContentRulesPlugin,
|
|
32
|
+
u as DataBindingPlugin,
|
|
33
|
+
y as DocSchemaPlugin,
|
|
34
|
+
ee as DocumentManagerPlugin,
|
|
35
|
+
X as MediaManagerPlugin,
|
|
36
|
+
n as MentionPlugin,
|
|
37
|
+
N as MergeTagPlugin,
|
|
38
|
+
d as PIIRedactionPlugin,
|
|
39
|
+
_ as PREDEFINED_TEMPLATES,
|
|
40
|
+
R as SlashCommandsPlugin,
|
|
41
|
+
h as SmartPastePlugin,
|
|
42
|
+
w as SpellCheckPlugin,
|
|
43
|
+
j as TemplatePlugin,
|
|
44
|
+
i as TrackChangesPlugin,
|
|
45
|
+
B as TranslationWorkflowPlugin,
|
|
46
|
+
l as VersionDiffPlugin,
|
|
47
|
+
q as addCustomTemplate,
|
|
48
|
+
G as getAllTemplates,
|
|
49
|
+
oe as getDocumentManagerConfig,
|
|
50
|
+
Y as getMediaManagerConfig,
|
|
51
|
+
H as getTemplateCategories,
|
|
52
|
+
J as getTemplatesByCategory,
|
|
53
|
+
K as sanitizeTemplate,
|
|
54
|
+
O as searchTemplates,
|
|
55
|
+
re as setDocumentManagerConfig,
|
|
56
|
+
Z as setMediaManagerConfig,
|
|
57
|
+
Q as validateTemplate
|
|
58
|
+
};
|
package/dist/font-family.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=()=>({name:"fontFamily",marks:{fontFamily:{attrs:{family:{default:null}},parseDOM:[{tag:'span[style*="font-family"]',getAttrs:e=>{const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=()=>({name:"fontFamily",marks:{fontFamily:{attrs:{family:{default:null}},parseDOM:[{tag:'span[style*="font-family"]',getAttrs:e=>{const n=e.style.fontFamily;return n?{family:n}:!1}},{tag:"font[face]",getAttrs:e=>{const n=e.getAttribute("face");return n?{family:n}:!1}}],toDOM:e=>{var t;return["span",{style:`font-family: ${(t=e.attrs)==null?void 0:t.family}`},0]}}},toolbar:[{label:"Font Family",command:"setFontFamily",type:"inline-menu",options:[{label:"Arial",value:"Arial, sans-serif"},{label:"Times New Roman",value:"Times New Roman, serif"},{label:"Courier New",value:"Courier New, monospace"},{label:"Georgia",value:"Georgia, serif"},{label:"Verdana",value:"Verdana, sans-serif"},{label:"Helvetica",value:"Helvetica, Arial, sans-serif"},{label:"Trebuchet MS",value:"Trebuchet MS, sans-serif"},{label:"Impact",value:"Impact, sans-serif"}],icon:'<svg fill="#000000" width="24px" height="24px" viewBox="0 0 24 24" 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="M15 4h7v2h-7zm1 4h6v2h-6zm2 4h4v2h-4zM9.307 4l-6 16h2.137l1.875-5h6.363l1.875 5h2.137l-6-16H9.307zm-1.239 9L10.5 6.515 12.932 13H8.068z"></path></g></svg>'}],commands:{setFontFamily:e=>{if(!e)return!1;try{return b(e),!0}catch(t){return console.error("Failed to set font family:",t),!1}}},keymap:{"Mod-Shift-f":"setFontFamily"}}),p="p,div,li,ul,ol,table,thead,tbody,tfoot,tr,td,th,h1,h2,h3,h4,h5,h6,blockquote,pre";function h(e){return!!e.cloneContents().querySelector(p)}function g(e){const t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;return(t==null?void 0:t.closest('[contenteditable="true"]'))||document.querySelector('[contenteditable="true"]')}function f(e){e&&e.dispatchEvent(new Event("input",{bubbles:!0}))}function S(e,t){var a;const n=document.createElement("span");for(const l of Array.from(e.attributes))l.name==="face"||l.name==="style"||n.setAttribute(l.name,l.value);const o=e.getAttribute("style");for(o&&n.setAttribute("style",o),n.style.fontFamily=t,n.classList.add("rte-font-family");e.firstChild;)n.appendChild(e.firstChild);(a=e.parentNode)==null||a.replaceChild(n,e)}function A(e){e.querySelectorAll("span").forEach(n=>{n.childElementCount>0||(n.textContent||"").trim().length>0||n.remove()})}function C(e,t,n){if(h(e))return!1;const o=document.createElement("span");o.style.fontFamily=n,o.className="rte-font-family";try{e.surroundContents(o)}catch{const l=e.extractContents();o.appendChild(l),e.insertNode(o)}const a=document.createRange();return a.selectNodeContents(o),t.removeAllRanges(),t.addRange(a),!0}function b(e){const t=window.getSelection();if(!t||t.rangeCount===0)return;const n=t.getRangeAt(0),o=n.cloneRange(),a=g(n.commonAncestorContainer);if(n.collapsed)return;const l=n.commonAncestorContainer,i=F(l);if(i&&v(n,i)){i.style.fontFamily=e,i.classList.add("rte-font-family");const r=document.createRange();r.selectNodeContents(i),t.removeAllRanges(),t.addRange(r),f(a);return}if(!a)return;const u=new Set(Array.from(a.querySelectorAll("font[face]"))),m=new Set(Array.from(a.querySelectorAll("span[style*='font-family']")));a.focus({preventScroll:!0});try{document.execCommand("styleWithCSS",!1,"true")}catch{}const d=e.split(",").map(r=>r.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean)[0]||"Arial";let s=document.execCommand("fontName",!1,d),c=!1;Array.from(a.querySelectorAll("font[face]")).forEach(r=>{u.has(r)||(S(r,e),c=!0)}),Array.from(a.querySelectorAll("span[style*='font-family']")).forEach(r=>{m.has(r)||(r.style.fontFamily=e,r.classList.add("rte-font-family"),c=!0)}),s||(s=C(o,t,e)),(s||c)&&(A(a),f(a))}function F(e){let t=e;for(;t;){if(t.nodeType===Node.ELEMENT_NODE){const n=t;if(n.tagName==="SPAN"&&n.style.fontFamily)return n}t=t.parentNode}return null}function v(e,t){const n=e.startContainer,o=e.endContainer,a=t.contains(n)||n.nodeType===Node.TEXT_NODE&&n.parentElement===t,l=t.contains(o)||o.nodeType===Node.TEXT_NODE&&o.parentElement===t;return a&&l}exports.FontFamilyPlugin=y;
|
package/dist/font-family.esm.js
CHANGED
|
@@ -9,19 +9,22 @@ const E = () => ({
|
|
|
9
9
|
{
|
|
10
10
|
tag: 'span[style*="font-family"]',
|
|
11
11
|
getAttrs: (e) => {
|
|
12
|
-
const
|
|
13
|
-
return
|
|
12
|
+
const n = e.style.fontFamily;
|
|
13
|
+
return n ? { family: n } : !1;
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
tag: "font[face]",
|
|
18
18
|
getAttrs: (e) => {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
19
|
+
const n = e.getAttribute("face");
|
|
20
|
+
return n ? { family: n } : !1;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
toDOM: (e) =>
|
|
24
|
+
toDOM: (e) => {
|
|
25
|
+
var t;
|
|
26
|
+
return ["span", { style: `font-family: ${(t = e.attrs) == null ? void 0 : t.family}` }, 0];
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
toolbar: [
|
|
@@ -44,11 +47,12 @@ const E = () => ({
|
|
|
44
47
|
],
|
|
45
48
|
commands: {
|
|
46
49
|
setFontFamily: (e) => {
|
|
47
|
-
if (!e)
|
|
50
|
+
if (!e)
|
|
51
|
+
return !1;
|
|
48
52
|
try {
|
|
49
53
|
return C(e), !0;
|
|
50
|
-
} catch (
|
|
51
|
-
return console.error("Failed to set font family:",
|
|
54
|
+
} catch (t) {
|
|
55
|
+
return console.error("Failed to set font family:", t), !1;
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
},
|
|
@@ -60,30 +64,32 @@ function p(e) {
|
|
|
60
64
|
return !!e.cloneContents().querySelector(y);
|
|
61
65
|
}
|
|
62
66
|
function h(e) {
|
|
63
|
-
|
|
67
|
+
const t = e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement;
|
|
68
|
+
return (t == null ? void 0 : t.closest('[contenteditable="true"]')) || document.querySelector('[contenteditable="true"]');
|
|
64
69
|
}
|
|
65
70
|
function f(e) {
|
|
66
71
|
e && e.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
67
72
|
}
|
|
68
|
-
function g(e,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
function g(e, t) {
|
|
74
|
+
var a;
|
|
75
|
+
const n = document.createElement("span");
|
|
76
|
+
for (const l of Array.from(e.attributes))
|
|
77
|
+
l.name === "face" || l.name === "style" || n.setAttribute(l.name, l.value);
|
|
72
78
|
const r = e.getAttribute("style");
|
|
73
|
-
for (r &&
|
|
74
|
-
|
|
75
|
-
e.parentNode
|
|
79
|
+
for (r && n.setAttribute("style", r), n.style.fontFamily = t, n.classList.add("rte-font-family"); e.firstChild; )
|
|
80
|
+
n.appendChild(e.firstChild);
|
|
81
|
+
(a = e.parentNode) == null || a.replaceChild(n, e);
|
|
76
82
|
}
|
|
77
83
|
function S(e) {
|
|
78
|
-
e.querySelectorAll("span").forEach((
|
|
79
|
-
|
|
84
|
+
e.querySelectorAll("span").forEach((n) => {
|
|
85
|
+
n.childElementCount > 0 || (n.textContent || "").trim().length > 0 || n.remove();
|
|
80
86
|
});
|
|
81
87
|
}
|
|
82
|
-
function A(e,
|
|
88
|
+
function A(e, t, n) {
|
|
83
89
|
if (p(e))
|
|
84
90
|
return !1;
|
|
85
91
|
const r = document.createElement("span");
|
|
86
|
-
r.style.fontFamily =
|
|
92
|
+
r.style.fontFamily = n, r.className = "rte-font-family";
|
|
87
93
|
try {
|
|
88
94
|
e.surroundContents(r);
|
|
89
95
|
} catch {
|
|
@@ -91,22 +97,24 @@ function A(e, n, t) {
|
|
|
91
97
|
r.appendChild(l), e.insertNode(r);
|
|
92
98
|
}
|
|
93
99
|
const a = document.createRange();
|
|
94
|
-
return a.selectNodeContents(r),
|
|
100
|
+
return a.selectNodeContents(r), t.removeAllRanges(), t.addRange(a), !0;
|
|
95
101
|
}
|
|
96
102
|
function C(e) {
|
|
97
|
-
const
|
|
98
|
-
if (!
|
|
99
|
-
|
|
100
|
-
|
|
103
|
+
const t = window.getSelection();
|
|
104
|
+
if (!t || t.rangeCount === 0)
|
|
105
|
+
return;
|
|
106
|
+
const n = t.getRangeAt(0), r = n.cloneRange(), a = h(n.commonAncestorContainer);
|
|
107
|
+
if (n.collapsed)
|
|
101
108
|
return;
|
|
102
|
-
const l =
|
|
103
|
-
if (s && F(
|
|
109
|
+
const l = n.commonAncestorContainer, s = b(l);
|
|
110
|
+
if (s && F(n, s)) {
|
|
104
111
|
s.style.fontFamily = e, s.classList.add("rte-font-family");
|
|
105
112
|
const o = document.createRange();
|
|
106
|
-
o.selectNodeContents(s),
|
|
113
|
+
o.selectNodeContents(s), t.removeAllRanges(), t.addRange(o), f(a);
|
|
107
114
|
return;
|
|
108
115
|
}
|
|
109
|
-
if (!a)
|
|
116
|
+
if (!a)
|
|
117
|
+
return;
|
|
110
118
|
const m = new Set(
|
|
111
119
|
Array.from(a.querySelectorAll("font[face]"))
|
|
112
120
|
), u = new Set(
|
|
@@ -129,22 +137,22 @@ function C(e) {
|
|
|
129
137
|
a.querySelectorAll("span[style*='font-family']")
|
|
130
138
|
).forEach((o) => {
|
|
131
139
|
u.has(o) || (o.style.fontFamily = e, o.classList.add("rte-font-family"), c = !0);
|
|
132
|
-
}), i || (i = A(r,
|
|
140
|
+
}), i || (i = A(r, t, e)), (i || c) && (S(a), f(a));
|
|
133
141
|
}
|
|
134
142
|
function b(e) {
|
|
135
|
-
let
|
|
136
|
-
for (;
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
return
|
|
143
|
+
let t = e;
|
|
144
|
+
for (; t; ) {
|
|
145
|
+
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
146
|
+
const n = t;
|
|
147
|
+
if (n.tagName === "SPAN" && n.style.fontFamily)
|
|
148
|
+
return n;
|
|
141
149
|
}
|
|
142
|
-
|
|
150
|
+
t = t.parentNode;
|
|
143
151
|
}
|
|
144
152
|
return null;
|
|
145
153
|
}
|
|
146
|
-
function F(e,
|
|
147
|
-
const
|
|
154
|
+
function F(e, t) {
|
|
155
|
+
const n = e.startContainer, r = e.endContainer, a = t.contains(n) || n.nodeType === Node.TEXT_NODE && n.parentElement === t, l = t.contains(r) || r.nodeType === Node.TEXT_NODE && r.parentElement === t;
|
|
148
156
|
return a && l;
|
|
149
157
|
}
|
|
150
158
|
export {
|
package/dist/font-size.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=()=>({name:"fontSize",marks:{fontSize:{attrs:{size:{default:null}},parseDOM:[{tag:'span[style*="font-size"]',getAttrs:e=>{const t=e.style.fontSize;return t?{size:t}:!1}},{tag:"font[size]",getAttrs:e=>{const t=e.getAttribute("size");return t?{size:t}:!1}}],toDOM:e=>["span",{style:`font-size: ${e.attrs
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=()=>({name:"fontSize",marks:{fontSize:{attrs:{size:{default:null}},parseDOM:[{tag:'span[style*="font-size"]',getAttrs:e=>{const t=e.style.fontSize;return t?{size:t}:!1}},{tag:"font[size]",getAttrs:e=>{const t=e.getAttribute("size");return t?{size:t}:!1}}],toDOM:e=>{var o;return["span",{style:`font-size: ${(o=e.attrs)==null?void 0:o.size}`},0]}}},toolbar:[{label:"Font Size",command:"fontSize",type:"group",items:[{label:"Decrease Font Size",command:"decreaseFontSize",icon:"−",type:"button"},{label:"Font Size",command:"setFontSize",type:"input",placeholder:"14"},{label:"Increase Font Size",command:"increaseFontSize",icon:"+",type:"button"}]}],commands:{decreaseFontSize:()=>{try{return g(-2),y(),!0}catch(e){return console.error("Failed to decrease font size:",e),!1}},increaseFontSize:()=>{try{return g(2),y(),!0}catch(e){return console.error("Failed to increase font size:",e),!1}},setFontSize:e=>{var o;if(!e)return!1;try{const n=e.trim().match(/^(\d+(?:\.\d+)?)(px|em|rem)?$/i);if(!n)return!1;const i=parseFloat(n[1]),r=((o=n[2])==null?void 0:o.toLowerCase())||"px";return r==="px"&&(i<8||i>72)||(r==="em"||r==="rem")&&(i<.5||i>5)?!1:(C(i,r),!0)}catch(t){return console.error("Failed to set font size:",t),!1}}},keymap:{}}),A="p,div,li,ul,ol,table,thead,tbody,tfoot,tr,td,th,h1,h2,h3,h4,h5,h6,blockquote,pre",z={"xx-small":9,"x-small":10,small:13,medium:16,large:18,"x-large":24,"xx-large":32,"xxx-large":48,smaller:13,larger:18};function p(e){const o=e.trim().toLowerCase(),t=o.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/i);if(t)return{value:parseFloat(t[1]),unit:t[2].toLowerCase()};const n=z[o];return n?{value:n,unit:"px"}:null}function N(e){return e.trim().toLowerCase()in z}function x(e){return!!e.cloneContents().querySelector(A)}function w(e){const o=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;return(o==null?void 0:o.closest('[contenteditable="true"]'))||document.querySelector('[contenteditable="true"]')}function m(e){e&&e.dispatchEvent(new Event("input",{bubbles:!0}))}function E(e,o){var i;const t=document.createElement("span");for(const r of Array.from(e.attributes))r.name==="size"||r.name==="style"||t.setAttribute(r.name,r.value);const n=e.getAttribute("style");for(n&&t.setAttribute("style",n),t.style.fontSize=o;e.firstChild;)t.appendChild(e.firstChild);(i=e.parentNode)==null||i.replaceChild(t,e)}function T(e,o,t,n){const i=Array.from(e.querySelectorAll("font[size], [style*='font-size']")),r=s=>{if(!n||!s.isConnected)return!1;try{if(typeof n.intersectsNode=="function")return n.intersectsNode(s)}catch{}const a=document.createRange();return a.selectNodeContents(s),n.compareBoundaryPoints(Range.END_TO_START,a)>0&&n.compareBoundaryPoints(Range.START_TO_END,a)<0};let c=!1;return i.forEach(s=>{const a=!o.has(s),l=s.tagName==="FONT",u=N(s.style.fontSize||""),f=r(s);if(!(!a&&!f)&&!(!a&&!l&&!u)){if(c=!0,s.tagName==="FONT"){E(s,t);return}s.style.fontSize=t}}),c}function S(e){e.querySelectorAll("span").forEach(t=>{t.childElementCount>0||(t.textContent||"").trim().length>0||t.remove()})}function R(e,o,t){if(x(e))return!1;const n=document.createElement("span");n.style.fontSize=t;try{e.surroundContents(n)}catch{const r=e.extractContents();n.appendChild(r),e.insertNode(n)}const i=document.createRange();return i.selectNodeContents(n),o.removeAllRanges(),o.addRange(i),!0}function g(e){const o=window.getSelection();if(!o||o.rangeCount===0)return;const{value:t,unit:n}=h();let i=e;(n==="em"||n==="rem")&&(i=e*.125);let r;n==="px"?r=e<0?Math.max(8,t+e):Math.min(72,t+e):r=e<0?Math.max(.5,t+i):Math.min(5,t+i),C(r,n)}function h(){var i;const e=window.getSelection();if(!e||e.rangeCount===0)return{value:14,unit:"px"};const t=e.getRangeAt(0).startContainer,n=t.nodeType===Node.TEXT_NODE?t.parentElement:t;if(n){const r=(i=n.style)==null?void 0:i.fontSize;if(r){const l=p(r);if(l)return l}const s=window.getComputedStyle(n).fontSize,a=p(s);if(a)return a}return{value:14,unit:"px"}}function C(e,o="px"){const t=window.getSelection();if(!t||t.rangeCount===0)return;const n=t.getRangeAt(0),i=n.cloneRange(),r=w(n.commonAncestorContainer);if(n.collapsed)return;const c=`${e}${o}`,s=n.commonAncestorContainer,a=v(s);if(a&&O(n,a)){a.style.fontSize=c,m(r);const d=document.createRange();d.selectNodeContents(a),t.removeAllRanges(),t.addRange(d);return}if(!r)return;const l=new Set(Array.from(r.querySelectorAll("font[size], [style*='font-size']")));r.focus({preventScroll:!0});try{document.execCommand("styleWithCSS",!1,"true")}catch{}let u=document.execCommand("fontSize",!1,"7");const f=t.rangeCount>0?t.getRangeAt(0).cloneRange():i,F=T(r,l,c,f);if(u&&F){S(r),m(r);return}u=R(i,t,c),u&&(S(r),m(r))}function v(e){let o=e;for(;o&&o!==document.body;){if(o.nodeType===Node.ELEMENT_NODE){const t=o;if(t.tagName==="SPAN"&&t.style.fontSize)return t}o=o.parentNode}return null}function O(e,o){const t=e.startContainer,n=e.endContainer;return o.contains(t)&&o.contains(n)}function y(){setTimeout(()=>{const{value:e,unit:o}=h(),t=window.getSelection();if(!t||t.rangeCount===0)return;let n=null,r=t.getRangeAt(0).startContainer;for(;r;){if(r instanceof HTMLElement&&(r.classList.contains("rte-editor")||r.classList.contains("editora-editor")||r.hasAttribute("data-editora-editor"))){n=r;break}r=r.parentNode}if(!n)return;const c=n.querySelector(".rte-toolbar-wrapper, .editora-toolbar-container")||n,s=Array.from(c.querySelectorAll('input[data-command="setFontSize"], input.editora-toolbar-input.font-size, input.rte-toolbar-input.font-size, input[title="Font Size"]'));if(s.length===0)return;const l=`${e%1===0?e.toString():e.toFixed(2).replace(/\.?0+$/,"")}${o}`;s.forEach(u=>{u.value=l})},10)}exports.FontSizePlugin=b;
|