@editora/plugins 1.0.23 → 1.1.0
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 +1 -1
- package/dist/{CodePlugin.native-DJqwsRPZ.js → CodePlugin.native-BwhZsI5v.js} +1 -1
- package/dist/{CodePlugin.native-DESvGCrJ.mjs → CodePlugin.native-CojLCp6C.mjs} +1 -1
- package/dist/MediaManagerPlugin.native-CycfjOi4.js +1841 -0
- package/dist/MediaManagerPlugin.native-DZrmcmnm.mjs +4688 -0
- package/dist/code.cjs.js +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/confirmDialog-D3S8BhIM.js +42 -0
- package/dist/confirmDialog-DR4c8j6S.mjs +87 -0
- package/dist/enterprise.cjs.js +1 -1
- package/dist/enterprise.esm.js +11 -11
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +90 -83
- package/dist/media-manager.cjs.js +1 -619
- package/dist/media-manager.esm.js +30 -1073
- package/index.d.ts +183 -2
- package/package.json +3 -3
- package/dist/confirmDialog-6BPaNPis.mjs +0 -106
- package/dist/confirmDialog-C4UWENes.js +0 -46
package/dist/code.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./CodePlugin.native-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./CodePlugin.native-BwhZsI5v.js");exports.CodePlugin=e.CodePlugin;
|
package/dist/code.esm.js
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";const l=require("./escapeHtml-D2Zh82pD.js"),u=require("./dialogHelpers-BxSQ7A6M.js"),m="rte-confirm-styles",p='[data-theme="dark"], .dark, .editora-theme-dark';let b=0;function g(){if(document.getElementById(m))return;const n=document.createElement("style");n.id=m,n.textContent=`
|
|
2
|
+
.rte-confirm-overlay {
|
|
3
|
+
position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center;
|
|
4
|
+
padding: 16px; background: rgba(15, 23, 36, 0.56);
|
|
5
|
+
--rte-confirm-bg: #ffffff; --rte-confirm-text: #101828; --rte-confirm-muted: #5f6b7d; --rte-confirm-border: #d6dbe4;
|
|
6
|
+
--rte-confirm-accent: #1f75fe; --rte-confirm-danger: #c62828;
|
|
7
|
+
}
|
|
8
|
+
.rte-confirm-overlay.rte-confirm-dark {
|
|
9
|
+
--rte-confirm-bg: #1f2937; --rte-confirm-text: #e5e7eb; --rte-confirm-muted: #9ca3af; --rte-confirm-border: #3b4657;
|
|
10
|
+
--rte-confirm-accent: #3b82f6; --rte-confirm-danger: #ef4444;
|
|
11
|
+
}
|
|
12
|
+
.rte-confirm-dialog {
|
|
13
|
+
box-sizing: border-box; width: min(100%, 420px); padding: 20px; border-radius: 10px;
|
|
14
|
+
background: var(--rte-confirm-bg); color: var(--rte-confirm-text); border: 1px solid var(--rte-confirm-border);
|
|
15
|
+
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); font-size: 14px; line-height: 1.45;
|
|
16
|
+
}
|
|
17
|
+
.rte-confirm-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
|
|
18
|
+
.rte-confirm-message { margin: 0 0 14px; color: var(--rte-confirm-muted); }
|
|
19
|
+
.rte-confirm-field { display: block; margin: 0 0 6px; }
|
|
20
|
+
.rte-confirm-input {
|
|
21
|
+
box-sizing: border-box; width: 100%; padding: 8px 10px; border-radius: 6px; font: inherit;
|
|
22
|
+
border: 1px solid var(--rte-confirm-border); background: transparent; color: inherit;
|
|
23
|
+
}
|
|
24
|
+
.rte-confirm-input[aria-invalid="true"] { border-color: var(--rte-confirm-danger); }
|
|
25
|
+
.rte-confirm-error { margin: 6px 0 0; color: var(--rte-confirm-danger); font-size: 13px; }
|
|
26
|
+
.rte-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
|
27
|
+
.rte-confirm-button {
|
|
28
|
+
padding: 8px 14px; border-radius: 6px; font: inherit; cursor: pointer;
|
|
29
|
+
border: 1px solid var(--rte-confirm-border); background: transparent; color: inherit;
|
|
30
|
+
}
|
|
31
|
+
.rte-confirm-button.primary { background: var(--rte-confirm-accent); border-color: var(--rte-confirm-accent); color: #fff; }
|
|
32
|
+
.rte-confirm-button.danger { background: var(--rte-confirm-danger); border-color: var(--rte-confirm-danger); color: #fff; }
|
|
33
|
+
.rte-confirm-button:focus-visible, .rte-confirm-input:focus-visible { outline: 2px solid var(--rte-confirm-accent); outline-offset: 2px; }
|
|
34
|
+
`,document.head.appendChild(n)}function x(n,o,a){g();const r=`rte-confirm-${++b}`,i=document.createElement("div");u.initDialogOverlay(i),i.className="rte-confirm-overlay",(o.context??(document.activeElement instanceof Element?document.activeElement:null))?.closest(p)&&i.classList.add("rte-confirm-dark");const d=o.title??"Please confirm",c=o.confirmText??"Confirm",f=o.cancelText??"Cancel",t=o.danger===!0,e=document.createElement("div");return e.className="rte-confirm-dialog",e.setAttribute("role","alertdialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-labelledby",`${r}-title`),e.setAttribute("aria-describedby",`${r}-message`),e.innerHTML=`
|
|
35
|
+
<h2 class="rte-confirm-title" id="${r}-title">${l.escapeHtml(d)}</h2>
|
|
36
|
+
<p class="rte-confirm-message" id="${r}-message">${l.escapeHtml(n)}</p>
|
|
37
|
+
|
|
38
|
+
<div class="rte-confirm-actions">
|
|
39
|
+
<button type="button" class="rte-confirm-button" data-action="cancel">${l.escapeHtml(f)}</button>
|
|
40
|
+
<button type="button" class="rte-confirm-button ${t?"danger":"primary"}" data-action="confirm">${l.escapeHtml(c)}</button>
|
|
41
|
+
</div>
|
|
42
|
+
`,i.appendChild(e),{overlay:i,confirmButton:e.querySelector('[data-action="confirm"]'),cancelButton:e.querySelector('[data-action="cancel"]'),input:e.querySelector("input"),error:e.querySelector(".rte-confirm-error")}}function v(n,o){return new Promise(a=>{const{overlay:r,confirmButton:i,cancelButton:s}=n;let d=!1;const c=t=>{const e=o(t);e!==void 0&&(d||(d=!0,window.removeEventListener("keydown",f,!0),r.remove(),a(e)))},f=t=>{t.key!=="Escape"||!r.isConnected||(t.preventDefault(),t.stopPropagation(),c(!1))};window.addEventListener("keydown",f,!0),s.addEventListener("click",()=>c(!1)),i.addEventListener("click",()=>c(!0)),r.addEventListener("click",t=>{t.target===r&&c(!1)}),n.input?.addEventListener("keydown",t=>{t.key==="Enter"&&(t.preventDefault(),c(!0))}),document.body.appendChild(r)})}function y(n,o={}){const a=x(n,o);return v(a,r=>r)}exports.confirmAction=y;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { e as m } from "./escapeHtml-DyksyvcZ.mjs";
|
|
2
|
+
import { i as u } from "./dialogHelpers-BbwpIXD9.mjs";
|
|
3
|
+
const s = "rte-confirm-styles", p = '[data-theme="dark"], .dark, .editora-theme-dark';
|
|
4
|
+
let b = 0;
|
|
5
|
+
function g() {
|
|
6
|
+
if (document.getElementById(s)) return;
|
|
7
|
+
const n = document.createElement("style");
|
|
8
|
+
n.id = s, n.textContent = `
|
|
9
|
+
.rte-confirm-overlay {
|
|
10
|
+
position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center;
|
|
11
|
+
padding: 16px; background: rgba(15, 23, 36, 0.56);
|
|
12
|
+
--rte-confirm-bg: #ffffff; --rte-confirm-text: #101828; --rte-confirm-muted: #5f6b7d; --rte-confirm-border: #d6dbe4;
|
|
13
|
+
--rte-confirm-accent: #1f75fe; --rte-confirm-danger: #c62828;
|
|
14
|
+
}
|
|
15
|
+
.rte-confirm-overlay.rte-confirm-dark {
|
|
16
|
+
--rte-confirm-bg: #1f2937; --rte-confirm-text: #e5e7eb; --rte-confirm-muted: #9ca3af; --rte-confirm-border: #3b4657;
|
|
17
|
+
--rte-confirm-accent: #3b82f6; --rte-confirm-danger: #ef4444;
|
|
18
|
+
}
|
|
19
|
+
.rte-confirm-dialog {
|
|
20
|
+
box-sizing: border-box; width: min(100%, 420px); padding: 20px; border-radius: 10px;
|
|
21
|
+
background: var(--rte-confirm-bg); color: var(--rte-confirm-text); border: 1px solid var(--rte-confirm-border);
|
|
22
|
+
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); font-size: 14px; line-height: 1.45;
|
|
23
|
+
}
|
|
24
|
+
.rte-confirm-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
|
|
25
|
+
.rte-confirm-message { margin: 0 0 14px; color: var(--rte-confirm-muted); }
|
|
26
|
+
.rte-confirm-field { display: block; margin: 0 0 6px; }
|
|
27
|
+
.rte-confirm-input {
|
|
28
|
+
box-sizing: border-box; width: 100%; padding: 8px 10px; border-radius: 6px; font: inherit;
|
|
29
|
+
border: 1px solid var(--rte-confirm-border); background: transparent; color: inherit;
|
|
30
|
+
}
|
|
31
|
+
.rte-confirm-input[aria-invalid="true"] { border-color: var(--rte-confirm-danger); }
|
|
32
|
+
.rte-confirm-error { margin: 6px 0 0; color: var(--rte-confirm-danger); font-size: 13px; }
|
|
33
|
+
.rte-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
|
34
|
+
.rte-confirm-button {
|
|
35
|
+
padding: 8px 14px; border-radius: 6px; font: inherit; cursor: pointer;
|
|
36
|
+
border: 1px solid var(--rte-confirm-border); background: transparent; color: inherit;
|
|
37
|
+
}
|
|
38
|
+
.rte-confirm-button.primary { background: var(--rte-confirm-accent); border-color: var(--rte-confirm-accent); color: #fff; }
|
|
39
|
+
.rte-confirm-button.danger { background: var(--rte-confirm-danger); border-color: var(--rte-confirm-danger); color: #fff; }
|
|
40
|
+
.rte-confirm-button:focus-visible, .rte-confirm-input:focus-visible { outline: 2px solid var(--rte-confirm-accent); outline-offset: 2px; }
|
|
41
|
+
`, document.head.appendChild(n);
|
|
42
|
+
}
|
|
43
|
+
function x(n, o, a) {
|
|
44
|
+
g();
|
|
45
|
+
const r = `rte-confirm-${++b}`, i = document.createElement("div");
|
|
46
|
+
u(i), i.className = "rte-confirm-overlay", (o.context ?? (document.activeElement instanceof Element ? document.activeElement : null))?.closest(p) && i.classList.add("rte-confirm-dark");
|
|
47
|
+
const d = o.title ?? "Please confirm", c = o.confirmText ?? "Confirm", f = o.cancelText ?? "Cancel", t = o.danger === !0, e = document.createElement("div");
|
|
48
|
+
return e.className = "rte-confirm-dialog", e.setAttribute("role", "alertdialog"), e.setAttribute("aria-modal", "true"), e.setAttribute("aria-labelledby", `${r}-title`), e.setAttribute("aria-describedby", `${r}-message`), e.innerHTML = `
|
|
49
|
+
<h2 class="rte-confirm-title" id="${r}-title">${m(d)}</h2>
|
|
50
|
+
<p class="rte-confirm-message" id="${r}-message">${m(n)}</p>
|
|
51
|
+
|
|
52
|
+
<div class="rte-confirm-actions">
|
|
53
|
+
<button type="button" class="rte-confirm-button" data-action="cancel">${m(f)}</button>
|
|
54
|
+
<button type="button" class="rte-confirm-button ${t ? "danger" : "primary"}" data-action="confirm">${m(c)}</button>
|
|
55
|
+
</div>
|
|
56
|
+
`, i.appendChild(e), {
|
|
57
|
+
overlay: i,
|
|
58
|
+
confirmButton: e.querySelector('[data-action="confirm"]'),
|
|
59
|
+
cancelButton: e.querySelector('[data-action="cancel"]'),
|
|
60
|
+
input: e.querySelector("input"),
|
|
61
|
+
error: e.querySelector(".rte-confirm-error")
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function v(n, o) {
|
|
65
|
+
return new Promise((a) => {
|
|
66
|
+
const { overlay: r, confirmButton: i, cancelButton: l } = n;
|
|
67
|
+
let d = !1;
|
|
68
|
+
const c = (t) => {
|
|
69
|
+
const e = o(t);
|
|
70
|
+
e !== void 0 && (d || (d = !0, window.removeEventListener("keydown", f, !0), r.remove(), a(e)));
|
|
71
|
+
}, f = (t) => {
|
|
72
|
+
t.key !== "Escape" || !r.isConnected || (t.preventDefault(), t.stopPropagation(), c(!1));
|
|
73
|
+
};
|
|
74
|
+
window.addEventListener("keydown", f, !0), l.addEventListener("click", () => c(!1)), i.addEventListener("click", () => c(!0)), r.addEventListener("click", (t) => {
|
|
75
|
+
t.target === r && c(!1);
|
|
76
|
+
}), n.input?.addEventListener("keydown", (t) => {
|
|
77
|
+
t.key === "Enter" && (t.preventDefault(), c(!0));
|
|
78
|
+
}), document.body.appendChild(r);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function k(n, o = {}) {
|
|
82
|
+
const a = x(n, o);
|
|
83
|
+
return v(a, (r) => r);
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
k as c
|
|
87
|
+
};
|
package/dist/enterprise.cjs.js
CHANGED
|
@@ -1 +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"),o=require("./version-diff.cjs.js"),l=require("./conditional-content.cjs.js"),r=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"),
|
|
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"),o=require("./version-diff.cjs.js"),l=require("./conditional-content.cjs.js"),r=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"),M=require("./slash-commands.cjs.js"),p=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("./MediaManagerPlugin.native-CycfjOi4.js"),i=require("./index-CtR8olYy.js"),k=require("./collaboration.cjs.js");exports.MentionPlugin=a.MentionPlugin;exports.TrackChangesPlugin=t.TrackChangesPlugin;exports.VersionDiffPlugin=o.VersionDiffPlugin;exports.ConditionalContentPlugin=l.ConditionalContentPlugin;exports.DataBindingPlugin=r.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=M.SlashCommandsPlugin;exports.SpellCheckPlugin=p.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;exports.CollaborationPlugin=k.CollaborationPlugin;
|
package/dist/enterprise.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MentionPlugin as r } from "./mentions.esm.js";
|
|
2
|
-
import { TrackChangesPlugin as
|
|
2
|
+
import { TrackChangesPlugin as a } from "./track-changes.esm.js";
|
|
3
3
|
import { VersionDiffPlugin as i } from "./version-diff.esm.js";
|
|
4
|
-
import { ConditionalContentPlugin as
|
|
4
|
+
import { ConditionalContentPlugin as l } from "./conditional-content.esm.js";
|
|
5
5
|
import { DataBindingPlugin as p } from "./data-binding.esm.js";
|
|
6
|
-
import { ContentRulesPlugin as
|
|
7
|
-
import { CitationsPlugin as
|
|
6
|
+
import { ContentRulesPlugin as s } from "./content-rules.esm.js";
|
|
7
|
+
import { CitationsPlugin as P } from "./citations.esm.js";
|
|
8
8
|
import { ApprovalWorkflowPlugin as C } from "./approval-workflow.esm.js";
|
|
9
|
-
import { PIIRedactionPlugin as
|
|
9
|
+
import { PIIRedactionPlugin as T } from "./pii-redaction.esm.js";
|
|
10
10
|
import { SmartPastePlugin as d } from "./smart-paste.esm.js";
|
|
11
11
|
import { BlocksLibraryPlugin as h } from "./blocks-library.esm.js";
|
|
12
12
|
import { DocSchemaPlugin as E } from "./doc-schema.esm.js";
|
|
@@ -17,31 +17,31 @@ import { A11yCheckerPlugin as v } from "./a11y-checker.esm.js";
|
|
|
17
17
|
import { CommentsPlugin as L } from "./comments.esm.js";
|
|
18
18
|
import { MergeTagPlugin as z } from "./merge-tag.esm.js";
|
|
19
19
|
import { PREDEFINED_TEMPLATES as N, TemplatePlugin as V, addCustomTemplate as _, getAllTemplates as j, getTemplateCategories as q, getTemplatesByCategory as G, sanitizeTemplate as H, searchTemplates as J, validateTemplate as K } from "./template.esm.js";
|
|
20
|
-
import {
|
|
20
|
+
import { M as Q, g as U, s as X } from "./MediaManagerPlugin.native-DZrmcmnm.mjs";
|
|
21
21
|
import { D as Z, g as $, s as ee } from "./index-Du_Ljqfz.mjs";
|
|
22
22
|
import { CollaborationPlugin as re } from "./collaboration.esm.js";
|
|
23
23
|
export {
|
|
24
24
|
v as A11yCheckerPlugin,
|
|
25
25
|
C as ApprovalWorkflowPlugin,
|
|
26
26
|
h as BlocksLibraryPlugin,
|
|
27
|
-
|
|
27
|
+
P as CitationsPlugin,
|
|
28
28
|
re as CollaborationPlugin,
|
|
29
29
|
L as CommentsPlugin,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
l as ConditionalContentPlugin,
|
|
31
|
+
s as ContentRulesPlugin,
|
|
32
32
|
p as DataBindingPlugin,
|
|
33
33
|
E as DocSchemaPlugin,
|
|
34
34
|
Z as DocumentManagerPlugin,
|
|
35
35
|
Q as MediaManagerPlugin,
|
|
36
36
|
r as MentionPlugin,
|
|
37
37
|
z as MergeTagPlugin,
|
|
38
|
-
|
|
38
|
+
T as PIIRedactionPlugin,
|
|
39
39
|
N as PREDEFINED_TEMPLATES,
|
|
40
40
|
B as SlashCommandsPlugin,
|
|
41
41
|
d as SmartPastePlugin,
|
|
42
42
|
R as SpellCheckPlugin,
|
|
43
43
|
V as TemplatePlugin,
|
|
44
|
-
|
|
44
|
+
a as TrackChangesPlugin,
|
|
45
45
|
y as TranslationWorkflowPlugin,
|
|
46
46
|
i as VersionDiffPlugin,
|
|
47
47
|
_ as addCustomTemplate,
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./heading.cjs.js"),l=require("./bold.cjs.js"),o=require("./italic.cjs.js"),a=require("./underline.cjs.js"),u=require("./strikethrough.cjs.js"),g=require("./list.cjs.js"),s=require("./checklist.cjs.js"),P=require("./history.cjs.js"),c=require("./link.cjs.js"),m=require("./blockquote.cjs.js"),d=require("./clear-formatting.cjs.js"),C=require("./CodePlugin.native-BwhZsI5v.js"),q=require("./table.cjs.js"),p=require("./font-size.cjs.js"),h=require("./format-painter.cjs.js"),k=require("./font-family.cjs.js"),f=require("./text-alignment.cjs.js"),M=require("./text-color.cjs.js"),T=require("./background-color.cjs.js"),b=require("./line-height.cjs.js"),S=require("./indent.cjs.js"),A=require("./direction.cjs.js"),v=require("./capitalization.cjs.js"),D=require("./math.cjs.js"),B=require("./special-characters.cjs.js"),E=require("./emojis.cjs.js"),F=require("./embed-iframe.cjs.js"),y=require("./anchor.cjs.js"),I=require("./mentions.cjs.js"),L=require("./track-changes.cjs.js"),R=require("./version-diff.cjs.js"),w=require("./conditional-content.cjs.js"),H=require("./data-binding.cjs.js"),z=require("./content-rules.cjs.js"),U=require("./citations.cjs.js"),x=require("./approval-workflow.cjs.js"),G=require("./pii-redaction.cjs.js"),W=require("./smart-paste.cjs.js"),_=require("./blocks-library.cjs.js"),j=require("./doc-schema.cjs.js"),N=require("./translation-workflow.cjs.js"),V=require("./slash-commands.cjs.js"),i=require("./MediaManagerPlugin.native-CycfjOi4.js"),O=require("./media-manager.cjs.js"),r=require("./index-CtR8olYy.js"),J=require("./preview.cjs.js"),K=require("./fullscreen.cjs.js"),Q=require("./print.cjs.js"),X=require("./page-break.cjs.js"),Y=require("./footnote.cjs.js"),Z=require("./code-sample.cjs.js"),$=require("./merge-tag.cjs.js"),e=require("./template.cjs.js"),ee=require("./comments.cjs.js"),ie=require("./collaboration.cjs.js"),ne=require("./spell-check.cjs.js"),re=require("./a11y-checker.cjs.js"),n=require("./shared-config.cjs.js");exports.HeadingPlugin=t.HeadingPlugin;exports.BoldPlugin=l.BoldPlugin;exports.ItalicPlugin=o.ItalicPlugin;exports.UnderlinePlugin=a.UnderlinePlugin;exports.StrikethroughPlugin=u.StrikethroughPlugin;exports.ListPlugin=g.ListPlugin;exports.ChecklistPlugin=s.ChecklistPlugin;exports.HistoryPlugin=P.HistoryPlugin;exports.LinkPlugin=c.LinkPlugin;exports.BlockquotePlugin=m.BlockquotePlugin;exports.ClearFormattingPlugin=d.ClearFormattingPlugin;exports.CodePlugin=C.CodePlugin;exports.TablePlugin=q.TablePlugin;exports.FontSizePlugin=p.FontSizePlugin;exports.FormatPainterPlugin=h.FormatPainterPlugin;exports.FontFamilyPlugin=k.FontFamilyPlugin;exports.TextAlignmentPlugin=f.TextAlignmentPlugin;exports.TextColorPlugin=M.TextColorPlugin;exports.BackgroundColorPlugin=T.BackgroundColorPlugin;exports.LineHeightPlugin=b.LineHeightPlugin;exports.IndentPlugin=S.IndentPlugin;exports.DirectionPlugin=A.DirectionPlugin;exports.CapitalizationPlugin=v.CapitalizationPlugin;exports.MathPlugin=D.MathPlugin;exports.SpecialCharactersPlugin=B.SpecialCharactersPlugin;exports.EmojisPlugin=E.EmojisPlugin;exports.EmbedIframePlugin=F.EmbedIframePlugin;exports.AnchorPlugin=y.AnchorPlugin;exports.MentionPlugin=I.MentionPlugin;exports.TrackChangesPlugin=L.TrackChangesPlugin;exports.VersionDiffPlugin=R.VersionDiffPlugin;exports.ConditionalContentPlugin=w.ConditionalContentPlugin;exports.DataBindingPlugin=H.DataBindingPlugin;exports.ContentRulesPlugin=z.ContentRulesPlugin;exports.CitationsPlugin=U.CitationsPlugin;exports.ApprovalWorkflowPlugin=x.ApprovalWorkflowPlugin;exports.PIIRedactionPlugin=G.PIIRedactionPlugin;exports.SmartPastePlugin=W.SmartPastePlugin;exports.BlocksLibraryPlugin=_.BlocksLibraryPlugin;exports.DocSchemaPlugin=j.DocSchemaPlugin;exports.TranslationWorkflowPlugin=N.TranslationWorkflowPlugin;exports.SlashCommandsPlugin=V.SlashCommandsPlugin;exports.MediaManagerPlugin=i.MediaManagerPlugin;exports.MediaUploadError=i.MediaUploadError;exports.createBase64Provider=i.createBase64Provider;exports.createCallbackProvider=i.createCallbackProvider;exports.createRestProvider=i.createRestProvider;exports.getMediaManagerConfig=i.getMediaManagerConfig;exports.parseEmbedUrl=i.parseEmbedUrl;exports.setMediaManagerConfig=i.setMediaManagerConfig;exports.mediaSlashItems=O.mediaSlashItems;exports.DocumentManagerPlugin=r.DocumentManagerPlugin;exports.getDocumentManagerConfig=r.getDocumentManagerConfig;exports.setDocumentManagerConfig=r.setDocumentManagerConfig;exports.PreviewPlugin=J.PreviewPlugin;exports.FullscreenPlugin=K.FullscreenPlugin;exports.PrintPlugin=Q.PrintPlugin;exports.PageBreakPlugin=X.PageBreakPlugin;exports.FootnotePlugin=Y.FootnotePlugin;exports.CodeSamplePlugin=Z.CodeSamplePlugin;exports.MergeTagPlugin=$.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.CommentsPlugin=ee.CommentsPlugin;exports.CollaborationPlugin=ie.CollaborationPlugin;exports.SpellCheckPlugin=ne.SpellCheckPlugin;exports.A11yCheckerPlugin=re.A11yCheckerPlugin;exports.buildApiUrl=n.buildApiUrl;exports.getGlobalApiConfig=n.getGlobalApiConfig;exports.getGlobalApiHeaders=n.getGlobalApiHeaders;exports.setGlobalApiConfig=n.setGlobalApiConfig;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { HeadingPlugin as e } from "./heading.esm.js";
|
|
2
2
|
import { BoldPlugin as i } from "./bold.esm.js";
|
|
3
3
|
import { ItalicPlugin as l } from "./italic.esm.js";
|
|
4
|
-
import { UnderlinePlugin as
|
|
4
|
+
import { UnderlinePlugin as g } from "./underline.esm.js";
|
|
5
5
|
import { StrikethroughPlugin as p } from "./strikethrough.esm.js";
|
|
6
|
-
import { ListPlugin as
|
|
6
|
+
import { ListPlugin as P } from "./list.esm.js";
|
|
7
7
|
import { ChecklistPlugin as x } from "./checklist.esm.js";
|
|
8
8
|
import { HistoryPlugin as C } from "./history.esm.js";
|
|
9
|
-
import { LinkPlugin as
|
|
10
|
-
import { BlockquotePlugin as
|
|
9
|
+
import { LinkPlugin as c } from "./link.esm.js";
|
|
10
|
+
import { BlockquotePlugin as M } from "./blockquote.esm.js";
|
|
11
11
|
import { ClearFormattingPlugin as k } from "./clear-formatting.esm.js";
|
|
12
|
-
import { C as
|
|
13
|
-
import { TablePlugin as
|
|
12
|
+
import { C as A } from "./CodePlugin.native-CojLCp6C.mjs";
|
|
13
|
+
import { TablePlugin as S } from "./table.esm.js";
|
|
14
14
|
import { FontSizePlugin as B } from "./font-size.esm.js";
|
|
15
|
-
import { FormatPainterPlugin as
|
|
16
|
-
import { FontFamilyPlugin as
|
|
17
|
-
import { TextAlignmentPlugin as
|
|
18
|
-
import { TextColorPlugin as
|
|
19
|
-
import { BackgroundColorPlugin as
|
|
15
|
+
import { FormatPainterPlugin as I } from "./format-painter.esm.js";
|
|
16
|
+
import { FontFamilyPlugin as y } from "./font-family.esm.js";
|
|
17
|
+
import { TextAlignmentPlugin as H } from "./text-alignment.esm.js";
|
|
18
|
+
import { TextColorPlugin as U } from "./text-color.esm.js";
|
|
19
|
+
import { BackgroundColorPlugin as z } from "./background-color.esm.js";
|
|
20
20
|
import { LineHeightPlugin as W } from "./line-height.esm.js";
|
|
21
21
|
import { IndentPlugin as q } from "./indent.esm.js";
|
|
22
22
|
import { DirectionPlugin as V } from "./direction.esm.js";
|
|
@@ -28,104 +28,111 @@ import { EmbedIframePlugin as oo } from "./embed-iframe.esm.js";
|
|
|
28
28
|
import { AnchorPlugin as eo } from "./anchor.esm.js";
|
|
29
29
|
import { MentionPlugin as io } from "./mentions.esm.js";
|
|
30
30
|
import { TrackChangesPlugin as lo } from "./track-changes.esm.js";
|
|
31
|
-
import { VersionDiffPlugin as
|
|
31
|
+
import { VersionDiffPlugin as go } from "./version-diff.esm.js";
|
|
32
32
|
import { ConditionalContentPlugin as po } from "./conditional-content.esm.js";
|
|
33
|
-
import { DataBindingPlugin as
|
|
33
|
+
import { DataBindingPlugin as Po } from "./data-binding.esm.js";
|
|
34
34
|
import { ContentRulesPlugin as xo } from "./content-rules.esm.js";
|
|
35
35
|
import { CitationsPlugin as Co } from "./citations.esm.js";
|
|
36
36
|
import { ApprovalWorkflowPlugin as To } from "./approval-workflow.esm.js";
|
|
37
|
-
import { PIIRedactionPlugin as
|
|
38
|
-
import { SmartPastePlugin as
|
|
39
|
-
import { BlocksLibraryPlugin as
|
|
40
|
-
import { DocSchemaPlugin as
|
|
41
|
-
import { TranslationWorkflowPlugin as
|
|
42
|
-
import { SlashCommandsPlugin as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
37
|
+
import { PIIRedactionPlugin as ho } from "./pii-redaction.esm.js";
|
|
38
|
+
import { SmartPastePlugin as bo } from "./smart-paste.esm.js";
|
|
39
|
+
import { BlocksLibraryPlugin as Do } from "./blocks-library.esm.js";
|
|
40
|
+
import { DocSchemaPlugin as Eo } from "./doc-schema.esm.js";
|
|
41
|
+
import { TranslationWorkflowPlugin as Fo } from "./translation-workflow.esm.js";
|
|
42
|
+
import { SlashCommandsPlugin as vo } from "./slash-commands.esm.js";
|
|
43
|
+
import { M as Lo, a as Ho, c as Ro, b as Uo, d as wo, g as zo, p as Go, s as Wo } from "./MediaManagerPlugin.native-DZrmcmnm.mjs";
|
|
44
|
+
import { mediaSlashItems as qo } from "./media-manager.esm.js";
|
|
45
|
+
import { D as Vo, g as _o, s as Jo } from "./index-Du_Ljqfz.mjs";
|
|
46
|
+
import { PreviewPlugin as Oo } from "./preview.esm.js";
|
|
47
|
+
import { FullscreenPlugin as Xo } from "./fullscreen.esm.js";
|
|
48
|
+
import { PrintPlugin as Zo } from "./print.esm.js";
|
|
49
|
+
import { PageBreakPlugin as or } from "./page-break.esm.js";
|
|
50
|
+
import { FootnotePlugin as er } from "./footnote.esm.js";
|
|
51
|
+
import { CodeSamplePlugin as ir } from "./code-sample.esm.js";
|
|
52
|
+
import { MergeTagPlugin as lr } from "./merge-tag.esm.js";
|
|
53
|
+
import { PREDEFINED_TEMPLATES as gr, TemplatePlugin as mr, addCustomTemplate as pr, getAllTemplates as fr, getTemplateCategories as Pr, getTemplatesByCategory as ur, sanitizeTemplate as xr, searchTemplates as sr, validateTemplate as Cr } from "./template.esm.js";
|
|
54
|
+
import { CommentsPlugin as cr } from "./comments.esm.js";
|
|
55
|
+
import { CollaborationPlugin as Mr } from "./collaboration.esm.js";
|
|
56
|
+
import { SpellCheckPlugin as kr } from "./spell-check.esm.js";
|
|
57
|
+
import { A11yCheckerPlugin as Ar } from "./a11y-checker.esm.js";
|
|
58
|
+
import { buildApiUrl as Sr, getGlobalApiConfig as Er, getGlobalApiHeaders as Br, setGlobalApiConfig as Fr } from "./shared-config.esm.js";
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
Ar as A11yCheckerPlugin,
|
|
60
61
|
eo as AnchorPlugin,
|
|
61
62
|
To as ApprovalWorkflowPlugin,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
z as BackgroundColorPlugin,
|
|
64
|
+
M as BlockquotePlugin,
|
|
65
|
+
Do as BlocksLibraryPlugin,
|
|
65
66
|
i as BoldPlugin,
|
|
66
67
|
J as CapitalizationPlugin,
|
|
67
68
|
x as ChecklistPlugin,
|
|
68
69
|
Co as CitationsPlugin,
|
|
69
70
|
k as ClearFormattingPlugin,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
A as CodePlugin,
|
|
72
|
+
ir as CodeSamplePlugin,
|
|
73
|
+
Mr as CollaborationPlugin,
|
|
74
|
+
cr as CommentsPlugin,
|
|
74
75
|
po as ConditionalContentPlugin,
|
|
75
76
|
xo as ContentRulesPlugin,
|
|
76
|
-
|
|
77
|
+
Po as DataBindingPlugin,
|
|
77
78
|
V as DirectionPlugin,
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
Eo as DocSchemaPlugin,
|
|
80
|
+
Vo as DocumentManagerPlugin,
|
|
80
81
|
oo as EmbedIframePlugin,
|
|
81
82
|
Z as EmojisPlugin,
|
|
82
|
-
|
|
83
|
+
y as FontFamilyPlugin,
|
|
83
84
|
B as FontSizePlugin,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
er as FootnotePlugin,
|
|
86
|
+
I as FormatPainterPlugin,
|
|
87
|
+
Xo as FullscreenPlugin,
|
|
87
88
|
e as HeadingPlugin,
|
|
88
89
|
C as HistoryPlugin,
|
|
89
90
|
q as IndentPlugin,
|
|
90
91
|
l as ItalicPlugin,
|
|
91
92
|
W as LineHeightPlugin,
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
c as LinkPlugin,
|
|
94
|
+
P as ListPlugin,
|
|
94
95
|
O as MathPlugin,
|
|
95
|
-
|
|
96
|
+
Lo as MediaManagerPlugin,
|
|
97
|
+
Ho as MediaUploadError,
|
|
96
98
|
io as MentionPlugin,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
lr as MergeTagPlugin,
|
|
100
|
+
ho as PIIRedactionPlugin,
|
|
101
|
+
gr as PREDEFINED_TEMPLATES,
|
|
102
|
+
or as PageBreakPlugin,
|
|
103
|
+
Oo as PreviewPlugin,
|
|
104
|
+
Zo as PrintPlugin,
|
|
105
|
+
vo as SlashCommandsPlugin,
|
|
106
|
+
bo as SmartPastePlugin,
|
|
105
107
|
X as SpecialCharactersPlugin,
|
|
106
|
-
|
|
108
|
+
kr as SpellCheckPlugin,
|
|
107
109
|
p as StrikethroughPlugin,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
S as TablePlugin,
|
|
111
|
+
mr as TemplatePlugin,
|
|
112
|
+
H as TextAlignmentPlugin,
|
|
113
|
+
U as TextColorPlugin,
|
|
112
114
|
lo as TrackChangesPlugin,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
Fo as TranslationWorkflowPlugin,
|
|
116
|
+
g as UnderlinePlugin,
|
|
117
|
+
go as VersionDiffPlugin,
|
|
118
|
+
pr as addCustomTemplate,
|
|
119
|
+
Sr as buildApiUrl,
|
|
120
|
+
Ro as createBase64Provider,
|
|
121
|
+
Uo as createCallbackProvider,
|
|
122
|
+
wo as createRestProvider,
|
|
123
|
+
fr as getAllTemplates,
|
|
124
|
+
_o as getDocumentManagerConfig,
|
|
125
|
+
Er as getGlobalApiConfig,
|
|
126
|
+
Br as getGlobalApiHeaders,
|
|
127
|
+
zo as getMediaManagerConfig,
|
|
128
|
+
Pr as getTemplateCategories,
|
|
129
|
+
ur as getTemplatesByCategory,
|
|
130
|
+
qo as mediaSlashItems,
|
|
131
|
+
Go as parseEmbedUrl,
|
|
132
|
+
xr as sanitizeTemplate,
|
|
133
|
+
sr as searchTemplates,
|
|
134
|
+
Jo as setDocumentManagerConfig,
|
|
135
|
+
Fr as setGlobalApiConfig,
|
|
136
|
+
Wo as setMediaManagerConfig,
|
|
137
|
+
Cr as validateTemplate
|
|
131
138
|
};
|