@editora/plugins 1.0.23 → 1.2.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/comments.cjs.js +813 -340
- package/dist/comments.esm.js +1910 -654
- 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 +48 -43
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +85 -73
- package/dist/media-manager.cjs.js +1 -619
- package/dist/media-manager.esm.js +30 -1073
- package/index.d.ts +246 -3
- package/package.json +3 -3
- package/dist/confirmDialog-6BPaNPis.mjs +0 -106
- package/dist/confirmDialog-C4UWENes.js +0 -46
|
@@ -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"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./mentions.cjs.js"),o=require("./track-changes.cjs.js"),r=require("./version-diff.cjs.js"),l=require("./conditional-content.cjs.js"),g=require("./data-binding.cjs.js"),u=require("./content-rules.cjs.js"),s=require("./citations.cjs.js"),m=require("./approval-workflow.cjs.js"),c=require("./pii-redaction.cjs.js"),P=require("./smart-paste.cjs.js"),C=require("./blocks-library.cjs.js"),d=require("./doc-schema.cjs.js"),T=require("./translation-workflow.cjs.js"),p=require("./slash-commands.cjs.js"),M=require("./spell-check.cjs.js"),h=require("./a11y-checker.cjs.js"),n=require("./comments.cjs.js"),f=require("./merge-tag.cjs.js"),e=require("./template.cjs.js"),t=require("./MediaManagerPlugin.native-CycfjOi4.js"),i=require("./index-CtR8olYy.js"),q=require("./collaboration.cjs.js");exports.MentionPlugin=a.MentionPlugin;exports.TrackChangesPlugin=o.TrackChangesPlugin;exports.VersionDiffPlugin=r.VersionDiffPlugin;exports.ConditionalContentPlugin=l.ConditionalContentPlugin;exports.DataBindingPlugin=g.DataBindingPlugin;exports.ContentRulesPlugin=u.ContentRulesPlugin;exports.CitationsPlugin=s.CitationsPlugin;exports.ApprovalWorkflowPlugin=m.ApprovalWorkflowPlugin;exports.PIIRedactionPlugin=c.PIIRedactionPlugin;exports.SmartPastePlugin=P.SmartPastePlugin;exports.BlocksLibraryPlugin=C.BlocksLibraryPlugin;exports.DocSchemaPlugin=d.DocSchemaPlugin;exports.TranslationWorkflowPlugin=T.TranslationWorkflowPlugin;exports.SlashCommandsPlugin=p.SlashCommandsPlugin;exports.SpellCheckPlugin=M.SpellCheckPlugin;exports.A11yCheckerPlugin=h.A11yCheckerPlugin;exports.CommentsPlugin=n.CommentsPlugin;exports.configureComments=n.configureComments;exports.getCommentThreads=n.getCommentThreads;exports.removeCommentThread=n.removeCommentThread;exports.setCommentThreads=n.setCommentThreads;exports.upsertCommentThread=n.upsertCommentThread;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=t.MediaManagerPlugin;exports.getMediaManagerConfig=t.getMediaManagerConfig;exports.setMediaManagerConfig=t.setMediaManagerConfig;exports.DocumentManagerPlugin=i.DocumentManagerPlugin;exports.getDocumentManagerConfig=i.getDocumentManagerConfig;exports.setDocumentManagerConfig=i.setDocumentManagerConfig;exports.CollaborationPlugin=q.CollaborationPlugin;
|
package/dist/enterprise.esm.js
CHANGED
|
@@ -1,58 +1,63 @@
|
|
|
1
1
|
import { MentionPlugin as r } from "./mentions.esm.js";
|
|
2
2
|
import { TrackChangesPlugin as n } from "./track-changes.esm.js";
|
|
3
|
-
import { VersionDiffPlugin as
|
|
4
|
-
import { ConditionalContentPlugin as
|
|
3
|
+
import { VersionDiffPlugin as m } from "./version-diff.esm.js";
|
|
4
|
+
import { ConditionalContentPlugin as i } 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 f } 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
|
|
10
|
-
import { SmartPastePlugin as
|
|
11
|
-
import { BlocksLibraryPlugin as
|
|
9
|
+
import { PIIRedactionPlugin as d } from "./pii-redaction.esm.js";
|
|
10
|
+
import { SmartPastePlugin as c } from "./smart-paste.esm.js";
|
|
11
|
+
import { BlocksLibraryPlugin as D } from "./blocks-library.esm.js";
|
|
12
12
|
import { DocSchemaPlugin as E } from "./doc-schema.esm.js";
|
|
13
13
|
import { TranslationWorkflowPlugin as y } from "./translation-workflow.esm.js";
|
|
14
|
-
import { SlashCommandsPlugin as
|
|
15
|
-
import { SpellCheckPlugin as
|
|
16
|
-
import { A11yCheckerPlugin as
|
|
17
|
-
import { CommentsPlugin as L } from "./comments.esm.js";
|
|
18
|
-
import { MergeTagPlugin as
|
|
19
|
-
import { PREDEFINED_TEMPLATES as
|
|
20
|
-
import {
|
|
21
|
-
import { D as
|
|
22
|
-
import { CollaborationPlugin as
|
|
14
|
+
import { SlashCommandsPlugin as v } from "./slash-commands.esm.js";
|
|
15
|
+
import { SpellCheckPlugin as I } from "./spell-check.esm.js";
|
|
16
|
+
import { A11yCheckerPlugin as b } from "./a11y-checker.esm.js";
|
|
17
|
+
import { CommentsPlugin as L, configureComments as W, getCommentThreads as z, removeCommentThread as F, setCommentThreads as N, upsertCommentThread as V } from "./comments.esm.js";
|
|
18
|
+
import { MergeTagPlugin as j } from "./merge-tag.esm.js";
|
|
19
|
+
import { PREDEFINED_TEMPLATES as G, TemplatePlugin as H, addCustomTemplate as J, getAllTemplates as K, getTemplateCategories as O, getTemplatesByCategory as Q, sanitizeTemplate as U, searchTemplates as X, validateTemplate as Y } from "./template.esm.js";
|
|
20
|
+
import { M as $, g as ee, s as oe } from "./MediaManagerPlugin.native-DZrmcmnm.mjs";
|
|
21
|
+
import { D as te, g as ne, s as ae } from "./index-Du_Ljqfz.mjs";
|
|
22
|
+
import { CollaborationPlugin as ge } from "./collaboration.esm.js";
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
b as A11yCheckerPlugin,
|
|
25
25
|
C as ApprovalWorkflowPlugin,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
D as BlocksLibraryPlugin,
|
|
27
|
+
P as CitationsPlugin,
|
|
28
|
+
ge as CollaborationPlugin,
|
|
29
29
|
L as CommentsPlugin,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
i as ConditionalContentPlugin,
|
|
31
|
+
f as ContentRulesPlugin,
|
|
32
32
|
p as DataBindingPlugin,
|
|
33
33
|
E as DocSchemaPlugin,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
te as DocumentManagerPlugin,
|
|
35
|
+
$ as MediaManagerPlugin,
|
|
36
36
|
r as MentionPlugin,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
j as MergeTagPlugin,
|
|
38
|
+
d as PIIRedactionPlugin,
|
|
39
|
+
G as PREDEFINED_TEMPLATES,
|
|
40
|
+
v as SlashCommandsPlugin,
|
|
41
|
+
c as SmartPastePlugin,
|
|
42
|
+
I as SpellCheckPlugin,
|
|
43
|
+
H as TemplatePlugin,
|
|
44
44
|
n as TrackChangesPlugin,
|
|
45
45
|
y as TranslationWorkflowPlugin,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
m as VersionDiffPlugin,
|
|
47
|
+
J as addCustomTemplate,
|
|
48
|
+
W as configureComments,
|
|
49
|
+
K as getAllTemplates,
|
|
50
|
+
z as getCommentThreads,
|
|
51
|
+
ne as getDocumentManagerConfig,
|
|
52
|
+
ee as getMediaManagerConfig,
|
|
53
|
+
O as getTemplateCategories,
|
|
54
|
+
Q as getTemplatesByCategory,
|
|
55
|
+
F as removeCommentThread,
|
|
56
|
+
U as sanitizeTemplate,
|
|
57
|
+
X as searchTemplates,
|
|
58
|
+
N as setCommentThreads,
|
|
59
|
+
ae as setDocumentManagerConfig,
|
|
60
|
+
oe as setMediaManagerConfig,
|
|
61
|
+
V as upsertCommentThread,
|
|
62
|
+
Y as validateTemplate
|
|
58
63
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./heading.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./heading.cjs.js"),o=require("./bold.cjs.js"),a=require("./italic.cjs.js"),u=require("./underline.cjs.js"),g=require("./strikethrough.cjs.js"),s=require("./list.cjs.js"),P=require("./checklist.cjs.js"),c=require("./history.cjs.js"),m=require("./link.cjs.js"),d=require("./blockquote.cjs.js"),C=require("./clear-formatting.cjs.js"),q=require("./CodePlugin.native-BwhZsI5v.js"),p=require("./table.cjs.js"),h=require("./font-size.cjs.js"),T=require("./format-painter.cjs.js"),k=require("./font-family.cjs.js"),f=require("./text-alignment.cjs.js"),M=require("./text-color.cjs.js"),b=require("./background-color.cjs.js"),S=require("./line-height.cjs.js"),v=require("./indent.cjs.js"),A=require("./direction.cjs.js"),D=require("./capitalization.cjs.js"),B=require("./math.cjs.js"),E=require("./special-characters.cjs.js"),F=require("./emojis.cjs.js"),y=require("./embed-iframe.cjs.js"),I=require("./anchor.cjs.js"),L=require("./mentions.cjs.js"),R=require("./track-changes.cjs.js"),w=require("./version-diff.cjs.js"),H=require("./conditional-content.cjs.js"),z=require("./data-binding.cjs.js"),U=require("./content-rules.cjs.js"),x=require("./citations.cjs.js"),G=require("./approval-workflow.cjs.js"),W=require("./pii-redaction.cjs.js"),_=require("./smart-paste.cjs.js"),j=require("./blocks-library.cjs.js"),N=require("./doc-schema.cjs.js"),V=require("./translation-workflow.cjs.js"),O=require("./slash-commands.cjs.js"),i=require("./MediaManagerPlugin.native-CycfjOi4.js"),J=require("./media-manager.cjs.js"),t=require("./index-CtR8olYy.js"),K=require("./preview.cjs.js"),Q=require("./fullscreen.cjs.js"),X=require("./print.cjs.js"),Y=require("./page-break.cjs.js"),Z=require("./footnote.cjs.js"),$=require("./code-sample.cjs.js"),ee=require("./merge-tag.cjs.js"),e=require("./template.cjs.js"),n=require("./comments.cjs.js"),ie=require("./collaboration.cjs.js"),ne=require("./spell-check.cjs.js"),re=require("./a11y-checker.cjs.js"),r=require("./shared-config.cjs.js");exports.HeadingPlugin=l.HeadingPlugin;exports.BoldPlugin=o.BoldPlugin;exports.ItalicPlugin=a.ItalicPlugin;exports.UnderlinePlugin=u.UnderlinePlugin;exports.StrikethroughPlugin=g.StrikethroughPlugin;exports.ListPlugin=s.ListPlugin;exports.ChecklistPlugin=P.ChecklistPlugin;exports.HistoryPlugin=c.HistoryPlugin;exports.LinkPlugin=m.LinkPlugin;exports.BlockquotePlugin=d.BlockquotePlugin;exports.ClearFormattingPlugin=C.ClearFormattingPlugin;exports.CodePlugin=q.CodePlugin;exports.TablePlugin=p.TablePlugin;exports.FontSizePlugin=h.FontSizePlugin;exports.FormatPainterPlugin=T.FormatPainterPlugin;exports.FontFamilyPlugin=k.FontFamilyPlugin;exports.TextAlignmentPlugin=f.TextAlignmentPlugin;exports.TextColorPlugin=M.TextColorPlugin;exports.BackgroundColorPlugin=b.BackgroundColorPlugin;exports.LineHeightPlugin=S.LineHeightPlugin;exports.IndentPlugin=v.IndentPlugin;exports.DirectionPlugin=A.DirectionPlugin;exports.CapitalizationPlugin=D.CapitalizationPlugin;exports.MathPlugin=B.MathPlugin;exports.SpecialCharactersPlugin=E.SpecialCharactersPlugin;exports.EmojisPlugin=F.EmojisPlugin;exports.EmbedIframePlugin=y.EmbedIframePlugin;exports.AnchorPlugin=I.AnchorPlugin;exports.MentionPlugin=L.MentionPlugin;exports.TrackChangesPlugin=R.TrackChangesPlugin;exports.VersionDiffPlugin=w.VersionDiffPlugin;exports.ConditionalContentPlugin=H.ConditionalContentPlugin;exports.DataBindingPlugin=z.DataBindingPlugin;exports.ContentRulesPlugin=U.ContentRulesPlugin;exports.CitationsPlugin=x.CitationsPlugin;exports.ApprovalWorkflowPlugin=G.ApprovalWorkflowPlugin;exports.PIIRedactionPlugin=W.PIIRedactionPlugin;exports.SmartPastePlugin=_.SmartPastePlugin;exports.BlocksLibraryPlugin=j.BlocksLibraryPlugin;exports.DocSchemaPlugin=N.DocSchemaPlugin;exports.TranslationWorkflowPlugin=V.TranslationWorkflowPlugin;exports.SlashCommandsPlugin=O.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=J.mediaSlashItems;exports.DocumentManagerPlugin=t.DocumentManagerPlugin;exports.getDocumentManagerConfig=t.getDocumentManagerConfig;exports.setDocumentManagerConfig=t.setDocumentManagerConfig;exports.PreviewPlugin=K.PreviewPlugin;exports.FullscreenPlugin=Q.FullscreenPlugin;exports.PrintPlugin=X.PrintPlugin;exports.PageBreakPlugin=Y.PageBreakPlugin;exports.FootnotePlugin=Z.FootnotePlugin;exports.CodeSamplePlugin=$.CodeSamplePlugin;exports.MergeTagPlugin=ee.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=n.CommentsPlugin;exports.configureComments=n.configureComments;exports.getCommentThreads=n.getCommentThreads;exports.removeCommentThread=n.removeCommentThread;exports.setCommentThreads=n.setCommentThreads;exports.upsertCommentThread=n.upsertCommentThread;exports.CollaborationPlugin=ie.CollaborationPlugin;exports.SpellCheckPlugin=ne.SpellCheckPlugin;exports.A11yCheckerPlugin=re.A11yCheckerPlugin;exports.buildApiUrl=r.buildApiUrl;exports.getGlobalApiConfig=r.getGlobalApiConfig;exports.getGlobalApiHeaders=r.getGlobalApiHeaders;exports.setGlobalApiConfig=r.setGlobalApiConfig;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HeadingPlugin as
|
|
1
|
+
import { HeadingPlugin as r } 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
4
|
import { UnderlinePlugin as m } from "./underline.esm.js";
|
|
@@ -6,17 +6,17 @@ import { StrikethroughPlugin as p } from "./strikethrough.esm.js";
|
|
|
6
6
|
import { ListPlugin as u } 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
|
|
9
|
+
import { LinkPlugin as c } from "./link.esm.js";
|
|
10
10
|
import { BlockquotePlugin as h } 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 v } 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";
|
|
@@ -25,7 +25,7 @@ import { MathPlugin as O } from "./math.esm.js";
|
|
|
25
25
|
import { SpecialCharactersPlugin as X } from "./special-characters.esm.js";
|
|
26
26
|
import { EmojisPlugin as Z } from "./emojis.esm.js";
|
|
27
27
|
import { EmbedIframePlugin as oo } from "./embed-iframe.esm.js";
|
|
28
|
-
import { AnchorPlugin as
|
|
28
|
+
import { AnchorPlugin as ro } 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
31
|
import { VersionDiffPlugin as mo } from "./version-diff.esm.js";
|
|
@@ -35,97 +35,109 @@ 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
37
|
import { PIIRedactionPlugin as Mo } from "./pii-redaction.esm.js";
|
|
38
|
-
import { SmartPastePlugin as
|
|
39
|
-
import { BlocksLibraryPlugin as
|
|
40
|
-
import { DocSchemaPlugin as
|
|
41
|
-
import { TranslationWorkflowPlugin as
|
|
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
42
|
import { SlashCommandsPlugin as Io } from "./slash-commands.esm.js";
|
|
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 {
|
|
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 oe } from "./page-break.esm.js";
|
|
50
|
+
import { FootnotePlugin as re } from "./footnote.esm.js";
|
|
51
|
+
import { CodeSamplePlugin as ie } from "./code-sample.esm.js";
|
|
52
|
+
import { MergeTagPlugin as le } from "./merge-tag.esm.js";
|
|
53
|
+
import { PREDEFINED_TEMPLATES as me, TemplatePlugin as ge, addCustomTemplate as pe, getAllTemplates as fe, getTemplateCategories as ue, getTemplatesByCategory as Pe, sanitizeTemplate as xe, searchTemplates as se, validateTemplate as Ce } from "./template.esm.js";
|
|
54
|
+
import { CommentsPlugin as ce, configureComments as Te, getCommentThreads as he, removeCommentThread as Me, setCommentThreads as ke, upsertCommentThread as be } from "./comments.esm.js";
|
|
55
|
+
import { CollaborationPlugin as De } from "./collaboration.esm.js";
|
|
56
|
+
import { SpellCheckPlugin as Ee } from "./spell-check.esm.js";
|
|
57
|
+
import { A11yCheckerPlugin as Fe } from "./a11y-checker.esm.js";
|
|
58
|
+
import { buildApiUrl as Ie, getGlobalApiConfig as ye, getGlobalApiHeaders as Le, setGlobalApiConfig as He } from "./shared-config.esm.js";
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
Fe as A11yCheckerPlugin,
|
|
61
|
+
ro as AnchorPlugin,
|
|
61
62
|
To as ApprovalWorkflowPlugin,
|
|
62
|
-
|
|
63
|
+
z as BackgroundColorPlugin,
|
|
63
64
|
h as BlockquotePlugin,
|
|
64
|
-
|
|
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
|
+
ie as CodeSamplePlugin,
|
|
73
|
+
De as CollaborationPlugin,
|
|
74
|
+
ce as CommentsPlugin,
|
|
74
75
|
po as ConditionalContentPlugin,
|
|
75
76
|
xo as ContentRulesPlugin,
|
|
76
77
|
uo 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
|
-
|
|
87
|
-
|
|
85
|
+
re as FootnotePlugin,
|
|
86
|
+
v as FormatPainterPlugin,
|
|
87
|
+
Xo as FullscreenPlugin,
|
|
88
|
+
r as HeadingPlugin,
|
|
88
89
|
C as HistoryPlugin,
|
|
89
90
|
q as IndentPlugin,
|
|
90
91
|
l as ItalicPlugin,
|
|
91
92
|
W as LineHeightPlugin,
|
|
92
|
-
|
|
93
|
+
c as LinkPlugin,
|
|
93
94
|
u as ListPlugin,
|
|
94
95
|
O as MathPlugin,
|
|
95
|
-
|
|
96
|
+
Lo as MediaManagerPlugin,
|
|
97
|
+
Ho as MediaUploadError,
|
|
96
98
|
io as MentionPlugin,
|
|
97
|
-
|
|
99
|
+
le as MergeTagPlugin,
|
|
98
100
|
Mo as PIIRedactionPlugin,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
me as PREDEFINED_TEMPLATES,
|
|
102
|
+
oe as PageBreakPlugin,
|
|
103
|
+
Oo as PreviewPlugin,
|
|
104
|
+
Zo as PrintPlugin,
|
|
103
105
|
Io as SlashCommandsPlugin,
|
|
104
|
-
|
|
106
|
+
bo as SmartPastePlugin,
|
|
105
107
|
X as SpecialCharactersPlugin,
|
|
106
|
-
|
|
108
|
+
Ee as SpellCheckPlugin,
|
|
107
109
|
p as StrikethroughPlugin,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
S as TablePlugin,
|
|
111
|
+
ge as TemplatePlugin,
|
|
112
|
+
H as TextAlignmentPlugin,
|
|
113
|
+
U as TextColorPlugin,
|
|
112
114
|
lo as TrackChangesPlugin,
|
|
113
|
-
|
|
115
|
+
Fo as TranslationWorkflowPlugin,
|
|
114
116
|
m as UnderlinePlugin,
|
|
115
117
|
mo as VersionDiffPlugin,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Ro as
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
118
|
+
pe as addCustomTemplate,
|
|
119
|
+
Ie as buildApiUrl,
|
|
120
|
+
Te as configureComments,
|
|
121
|
+
Ro as createBase64Provider,
|
|
122
|
+
Uo as createCallbackProvider,
|
|
123
|
+
wo as createRestProvider,
|
|
124
|
+
fe as getAllTemplates,
|
|
125
|
+
he as getCommentThreads,
|
|
126
|
+
_o as getDocumentManagerConfig,
|
|
127
|
+
ye as getGlobalApiConfig,
|
|
128
|
+
Le as getGlobalApiHeaders,
|
|
129
|
+
zo as getMediaManagerConfig,
|
|
130
|
+
ue as getTemplateCategories,
|
|
131
|
+
Pe as getTemplatesByCategory,
|
|
132
|
+
qo as mediaSlashItems,
|
|
133
|
+
Go as parseEmbedUrl,
|
|
134
|
+
Me as removeCommentThread,
|
|
135
|
+
xe as sanitizeTemplate,
|
|
136
|
+
se as searchTemplates,
|
|
137
|
+
ke as setCommentThreads,
|
|
138
|
+
Jo as setDocumentManagerConfig,
|
|
139
|
+
He as setGlobalApiConfig,
|
|
140
|
+
Wo as setMediaManagerConfig,
|
|
141
|
+
be as upsertCommentThread,
|
|
142
|
+
Ce as validateTemplate
|
|
131
143
|
};
|