@pixerate/editor 0.75.0 → 0.77.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/dist/agent/index.cjs +28 -28
- package/dist/agent/index.js +3 -3
- package/dist/animation-editor/index.cjs +148 -218
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.js +8 -78
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/{chunk-OK7T2LHK.js → chunk-GNO5PEMH.js} +2 -2
- package/dist/{chunk-EIXXBKUB.js → chunk-IMSX4IVG.js} +7 -7
- package/dist/chunk-INZJALPY.js +87 -0
- package/dist/chunk-INZJALPY.js.map +1 -0
- package/dist/{chunk-PL3MPFPA.cjs → chunk-MXF4DP2C.cjs} +77 -77
- package/dist/{chunk-PL3MPFPA.cjs.map → chunk-MXF4DP2C.cjs.map} +1 -1
- package/dist/{chunk-T4XWVPJK.cjs → chunk-RKJDBXTY.cjs} +3 -3
- package/dist/{chunk-T4XWVPJK.cjs.map → chunk-RKJDBXTY.cjs.map} +1 -1
- package/dist/{chunk-HNDSPZ5T.cjs → chunk-ROXFP2LQ.cjs} +4 -4
- package/dist/{chunk-HNDSPZ5T.cjs.map → chunk-ROXFP2LQ.cjs.map} +1 -1
- package/dist/{chunk-WON34HKM.js → chunk-SVW2UNUC.js} +2 -2
- package/dist/{chunk-66IMF6OD.cjs → chunk-TYOAJDFD.cjs} +3 -3
- package/dist/{chunk-66IMF6OD.cjs.map → chunk-TYOAJDFD.cjs.map} +1 -1
- package/dist/chunk-WAJQKWQU.cjs +87 -0
- package/dist/chunk-WAJQKWQU.cjs.map +1 -0
- package/dist/{chunk-UKI64KUD.js → chunk-ZQNDSUZO.js} +6 -6
- package/dist/extensions/index.cjs +7 -7
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.js +6 -6
- package/dist/index.cjs +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -17
- package/dist/serializers/index.cjs +4 -4
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.js +3 -3
- package/dist/video-editor/index.cjs +2234 -0
- package/dist/video-editor/index.cjs.map +1 -0
- package/dist/video-editor/index.d.cts +1003 -0
- package/dist/video-editor/index.d.ts +1003 -0
- package/dist/video-editor/index.js +2234 -0
- package/dist/video-editor/index.js.map +1 -0
- package/package.json +6 -1
- /package/dist/{chunk-OK7T2LHK.js.map → chunk-GNO5PEMH.js.map} +0 -0
- /package/dist/{chunk-EIXXBKUB.js.map → chunk-IMSX4IVG.js.map} +0 -0
- /package/dist/{chunk-WON34HKM.js.map → chunk-SVW2UNUC.js.map} +0 -0
- /package/dist/{chunk-UKI64KUD.js.map → chunk-ZQNDSUZO.js.map} +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3;
|
|
2
2
|
|
|
3
|
+
var _chunkCS6NZWWAcjs = require('./chunk-CS6NZWWA.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
|
|
@@ -31,15 +34,12 @@ var _chunk5PTR7HTLcjs = require('./chunk-5PTR7HTL.cjs');
|
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
|
|
34
|
-
var
|
|
37
|
+
var _chunkRKJDBXTYcjs = require('./chunk-RKJDBXTY.cjs');
|
|
35
38
|
|
|
36
39
|
|
|
37
40
|
var _chunkCKRNELPOcjs = require('./chunk-CKRNELPO.cjs');
|
|
38
41
|
|
|
39
42
|
|
|
40
|
-
var _chunkCS6NZWWAcjs = require('./chunk-CS6NZWWA.cjs');
|
|
41
|
-
|
|
42
|
-
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -53,13 +53,13 @@ var _chunkMKA3AHLVcjs = require('./chunk-MKA3AHLV.cjs');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkROXFP2LQcjs = require('./chunk-ROXFP2LQ.cjs');
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkTYOAJDFDcjs = require('./chunk-TYOAJDFD.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -2484,10 +2484,10 @@ async function loadCharts(zip, Parser, root, rels, options) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
function chartBlockHtml(chart) {
|
|
2486
2486
|
const [head, ...rows] = _chunkCKRNELPOcjs.chartDataToTable.call(void 0, chart.spec);
|
|
2487
|
-
const cell = (v, tag) => `<${tag}><p>${
|
|
2487
|
+
const cell = (v, tag) => `<${tag}><p>${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, v === null || v === void 0 ? "" : String(v))}</p></${tag}>`;
|
|
2488
2488
|
const table = `<table><tbody><tr>${head.map((h) => cell(h, "th")).join("")}</tr>${rows.map((r) => `<tr>${r.map((v, i) => cell(v, i ? "td" : "th")).join("")}</tr>`).join("")}</tbody></table>`;
|
|
2489
|
-
const caption = `<p>${
|
|
2490
|
-
return `<div data-type="chart" data-chart-id="${
|
|
2489
|
+
const caption = `<p>${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, `[Chart: ${chart.title || "untitled"}]`)}</p>`;
|
|
2490
|
+
return `<div data-type="chart" data-chart-id="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, chart.id)}" data-chart="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, JSON.stringify(chart.spec))}">${caption}${table}</div>`;
|
|
2491
2491
|
}
|
|
2492
2492
|
async function loadImages(zip, root, rels, options) {
|
|
2493
2493
|
const images = /* @__PURE__ */ new Map();
|
|
@@ -2923,7 +2923,7 @@ var FORMAT_MARK_TYPES = [
|
|
|
2923
2923
|
var formatMarks = (f) => FORMAT_MARK_TYPES.filter(([key]) => f[key]).map(([, type]) => ({ type }));
|
|
2924
2924
|
var formatKey = (f) => `${f.b ? 1 : 0}${f.i ? 1 : 0}${f.u ? 1 : 0}${f.s ? 1 : 0}${f.sup ? 1 : 0}${f.sub ? 1 : 0}|${_nullishCoalesce(f.href, () => ( ""))}` + (f.rev ? `|${f.rev.kind}:${f.rev.changeId}:${_nullishCoalesce(f.rev.moveId, () => ( ""))}` : "") + (f.fmt ? `|f:${f.fmt.changeId}` : "") + (f.comments ? `|c:${f.comments.join(",")}` : "");
|
|
2925
2925
|
function changeAttrs(change) {
|
|
2926
|
-
return ` data-change-id="${
|
|
2926
|
+
return ` data-change-id="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, change.changeId)}" data-author-id="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, change.authorId)}" data-author-name="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, change.authorName)}" data-created-at="${change.createdAt}"`;
|
|
2927
2927
|
}
|
|
2928
2928
|
function wrapFormat(inner, f) {
|
|
2929
2929
|
let html = inner;
|
|
@@ -2934,15 +2934,15 @@ function wrapFormat(inner, f) {
|
|
|
2934
2934
|
if (f.i) html = `<em>${html}</em>`;
|
|
2935
2935
|
if (f.b) html = `<strong>${html}</strong>`;
|
|
2936
2936
|
if (f.fmt) {
|
|
2937
|
-
html = `<span data-change-type="format"${changeAttrs(f.fmt)} data-format-before="${
|
|
2937
|
+
html = `<span data-change-type="format"${changeAttrs(f.fmt)} data-format-before="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, JSON.stringify(f.fmt.before))}" data-format-after="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, JSON.stringify(f.fmt.after))}">${html}</span>`;
|
|
2938
2938
|
}
|
|
2939
2939
|
if (f.rev) {
|
|
2940
2940
|
const tag = f.rev.kind === "insertion" ? "ins" : "del";
|
|
2941
|
-
const move = f.rev.moveId ? ` data-move-id="${
|
|
2941
|
+
const move = f.rev.moveId ? ` data-move-id="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, f.rev.moveId)}"` : "";
|
|
2942
2942
|
html = `<${tag} data-change-type="${f.rev.kind}"${changeAttrs(f.rev)}${move}>${html}</${tag}>`;
|
|
2943
2943
|
}
|
|
2944
|
-
for (const id of [..._nullishCoalesce(f.comments, () => ( []))].reverse()) html = `<span data-comment-id="${
|
|
2945
|
-
if (f.href) html = `<a href="${
|
|
2944
|
+
for (const id of [..._nullishCoalesce(f.comments, () => ( []))].reverse()) html = `<span data-comment-id="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, id)}">${html}</span>`;
|
|
2945
|
+
if (f.href) html = `<a href="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, f.href)}">${html}</a>`;
|
|
2946
2946
|
return html;
|
|
2947
2947
|
}
|
|
2948
2948
|
function renderSegments(segments, code = false) {
|
|
@@ -2954,10 +2954,10 @@ function renderSegments(segments, code = false) {
|
|
|
2954
2954
|
let j = i;
|
|
2955
2955
|
for (; j < segments.length && formatKey(segments[j].format) === key; j++) {
|
|
2956
2956
|
const seg = segments[j];
|
|
2957
|
-
if (seg.kind === "text") inner +=
|
|
2957
|
+
if (seg.kind === "text") inner += _chunkTYOAJDFDcjs.escapeHtml.call(void 0, seg.text);
|
|
2958
2958
|
else if (seg.kind === "br") inner += code ? "\n" : "<br>";
|
|
2959
|
-
else if (seg.kind === "img") inner += code ? "" : `<img src="${
|
|
2960
|
-
else if (seg.kind === "chart") inner += code ?
|
|
2959
|
+
else if (seg.kind === "img") inner += code ? "" : `<img src="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, seg.src)}" alt="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, seg.alt)}">`;
|
|
2960
|
+
else if (seg.kind === "chart") inner += code ? _chunkTYOAJDFDcjs.escapeHtml.call(void 0, `[Chart: ${seg.chart.title || "untitled"}]`) : "";
|
|
2961
2961
|
else inner += `<sup>${seg.n}</sup>`;
|
|
2962
2962
|
}
|
|
2963
2963
|
const format = segments[i].format;
|
|
@@ -3304,7 +3304,7 @@ function blockChangeAttr(pPr, ctx) {
|
|
|
3304
3304
|
createdAt: dateOf(attr(change, "date")),
|
|
3305
3305
|
previous
|
|
3306
3306
|
};
|
|
3307
|
-
return ` data-block-change="${
|
|
3307
|
+
return ` data-block-change="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, JSON.stringify(record))}"`;
|
|
3308
3308
|
}
|
|
3309
3309
|
function renderBlocks(container, ctx, part, topLevel = false) {
|
|
3310
3310
|
let html = "";
|
|
@@ -3346,7 +3346,7 @@ function renderBlocks(container, ctx, part, topLevel = false) {
|
|
|
3346
3346
|
const task = list && !list.ordered ? renderer.takeTaskGlyph() : void 0;
|
|
3347
3347
|
const inner = renderer.html();
|
|
3348
3348
|
const mappedStyle = styleId ? ctx.styleIds.get(styleId) : void 0;
|
|
3349
|
-
const styleAttr = !heading && !list && mappedStyle && mappedStyle !== _chunkO6FO6VI3cjs.NORMAL_STYLE_ID ? ` data-style="${
|
|
3349
|
+
const styleAttr = !heading && !list && mappedStyle && mappedStyle !== _chunkO6FO6VI3cjs.NORMAL_STYLE_ID ? ` data-style="${_chunkTYOAJDFDcjs.escapeHtml.call(void 0, mappedStyle)}"` : "";
|
|
3350
3350
|
const changeAttr = topLevel && !list && ctx.tracked === "marks" ? blockChangeAttr(pPr, ctx) : "";
|
|
3351
3351
|
const charts = renderer.charts.map(chartBlockHtml).join("");
|
|
3352
3352
|
const blockHtml = (charts && !inner && !heading ? "" : heading ? `<h${heading}${changeAttr}>${inner}</h${heading}>` : `<p${styleAttr}${changeAttr}>${inner}</p>`) + charts;
|
|
@@ -3522,8 +3522,8 @@ async function docxToDocumentImport(data, options = {}) {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
html += `<hr><ol>${notesHtml}</ol>`;
|
|
3524
3524
|
}
|
|
3525
|
-
const sanitized =
|
|
3526
|
-
const result = { html: sanitized, text:
|
|
3525
|
+
const sanitized = _chunkROXFP2LQcjs.sanitizeImportedHtml.call(void 0, html);
|
|
3526
|
+
const result = { html: sanitized, text: _chunkTYOAJDFDcjs.htmlToPlainText.call(void 0, sanitized) };
|
|
3527
3527
|
if (threads.length) result.comments = { version: 1, threads };
|
|
3528
3528
|
if (ctx.charts.length) result.charts = ctx.charts;
|
|
3529
3529
|
if (useStyles) {
|
|
@@ -3555,7 +3555,7 @@ var markdownImportAdapter = {
|
|
|
3555
3555
|
target: "document",
|
|
3556
3556
|
async import(_input, context) {
|
|
3557
3557
|
const text = await context.readText();
|
|
3558
|
-
return { html:
|
|
3558
|
+
return { html: _chunkTYOAJDFDcjs.markdownToTipTapHtml.call(void 0, text), text };
|
|
3559
3559
|
}
|
|
3560
3560
|
};
|
|
3561
3561
|
var htmlImportAdapter = {
|
|
@@ -3565,8 +3565,8 @@ var htmlImportAdapter = {
|
|
|
3565
3565
|
extensions: [".html", ".htm", ".xhtml"],
|
|
3566
3566
|
target: "document",
|
|
3567
3567
|
async import(_input, context) {
|
|
3568
|
-
const html =
|
|
3569
|
-
return { html, text:
|
|
3568
|
+
const html = _chunkROXFP2LQcjs.sanitizeImportedHtml.call(void 0, await context.readText());
|
|
3569
|
+
return { html, text: _chunkTYOAJDFDcjs.htmlToPlainText.call(void 0, html) };
|
|
3570
3570
|
}
|
|
3571
3571
|
};
|
|
3572
3572
|
var plainTextImportAdapter = {
|
|
@@ -3577,7 +3577,7 @@ var plainTextImportAdapter = {
|
|
|
3577
3577
|
target: "document",
|
|
3578
3578
|
async import(_input, context) {
|
|
3579
3579
|
const text = (await context.readText()).replace(/\r\n?/g, "\n");
|
|
3580
|
-
return { html:
|
|
3580
|
+
return { html: _chunkROXFP2LQcjs.plainTextToParagraphHtml.call(void 0, text), text };
|
|
3581
3581
|
}
|
|
3582
3582
|
};
|
|
3583
3583
|
var rtfImportAdapter = {
|
|
@@ -3587,8 +3587,8 @@ var rtfImportAdapter = {
|
|
|
3587
3587
|
extensions: [".rtf"],
|
|
3588
3588
|
target: "document",
|
|
3589
3589
|
async import(_input, context) {
|
|
3590
|
-
const text =
|
|
3591
|
-
return { html:
|
|
3590
|
+
const text = _chunkROXFP2LQcjs.rtfToPlainText.call(void 0, await context.readText());
|
|
3591
|
+
return { html: _chunkROXFP2LQcjs.plainTextToParagraphHtml.call(void 0, text), text };
|
|
3592
3592
|
}
|
|
3593
3593
|
};
|
|
3594
3594
|
var BUILT_IN_IMPORT_ADAPTERS = [
|
|
@@ -3642,16 +3642,16 @@ function insertImportedDocument(target, content, options = {}) {
|
|
|
3642
3642
|
if (!htmlSlice && from === to && !state.doc.resolve(from).parent.inlineContent) {
|
|
3643
3643
|
from = to = _state.Selection.near(state.doc.resolve(from)).from;
|
|
3644
3644
|
}
|
|
3645
|
-
if (htmlSlice &&
|
|
3645
|
+
if (htmlSlice && _chunkRKJDBXTYcjs.sliceContainsTable.call(void 0, htmlSlice) && _chunkRKJDBXTYcjs.outermostTableDepth.call(void 0, state.doc.resolve(from)) >= 0) {
|
|
3646
3646
|
const tr2 = state.tr;
|
|
3647
|
-
const end2 =
|
|
3647
|
+
const end2 = _chunkRKJDBXTYcjs.insertSliceAfterTable.call(void 0, tr2, from, to, htmlSlice);
|
|
3648
3648
|
if (end2 !== null) {
|
|
3649
3649
|
if (options.at === void 0) tr2.setSelection(_state.Selection.near(tr2.doc.resolve(end2), -1));
|
|
3650
3650
|
view.dispatch(tr2.scrollIntoView().setMeta("uiEvent", "drop"));
|
|
3651
3651
|
return end2;
|
|
3652
3652
|
}
|
|
3653
3653
|
}
|
|
3654
|
-
const tr = htmlSlice ? state.tr.replaceRange(from, to, htmlSlice) : state.tr.replace(from, to,
|
|
3654
|
+
const tr = htmlSlice ? state.tr.replaceRange(from, to, htmlSlice) : state.tr.replace(from, to, _chunkTYOAJDFDcjs.plainTextToSlice.call(void 0, content.text, state.schema));
|
|
3655
3655
|
const end = tr.mapping.map(to, 1);
|
|
3656
3656
|
view.dispatch(tr.scrollIntoView().setMeta("uiEvent", "drop"));
|
|
3657
3657
|
return end;
|
|
@@ -3780,7 +3780,7 @@ var richClipboardPluginKey = new (0, _state.PluginKey)("richClipboard");
|
|
|
3780
3780
|
function writeRichClipboard(view, event, options = {}) {
|
|
3781
3781
|
const { state } = view;
|
|
3782
3782
|
if (state.selection.empty) return false;
|
|
3783
|
-
const data =
|
|
3783
|
+
const data = _chunkROXFP2LQcjs.getClipboardData.call(void 0, event);
|
|
3784
3784
|
if (!data || typeof data.setData !== "function") return false;
|
|
3785
3785
|
const slice = state.selection.content();
|
|
3786
3786
|
const { dom, text } = view.serializeForClipboard(slice);
|
|
@@ -3788,7 +3788,7 @@ function writeRichClipboard(view, event, options = {}) {
|
|
|
3788
3788
|
_optionalChain([data, 'access', _146 => _146.clearData, 'optionalCall', _147 => _147()]);
|
|
3789
3789
|
data.setData("text/html", dom.innerHTML);
|
|
3790
3790
|
data.setData("text/plain", text);
|
|
3791
|
-
data.setData(_nullishCoalesce(options.mimeType, () => (
|
|
3791
|
+
data.setData(_nullishCoalesce(options.mimeType, () => ( _chunkROXFP2LQcjs.PIXERATE_DOCUMENT_MIME)), _chunkROXFP2LQcjs.serializeRichClipboardPayload.call(void 0, slice, state.schema));
|
|
3792
3792
|
if (options.cut && view.editable) {
|
|
3793
3793
|
view.dispatch(state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
3794
3794
|
}
|
|
@@ -3798,7 +3798,7 @@ var RichClipboard = _core.Extension.create({
|
|
|
3798
3798
|
name: "richClipboard",
|
|
3799
3799
|
addOptions() {
|
|
3800
3800
|
return {
|
|
3801
|
-
mimeType:
|
|
3801
|
+
mimeType: _chunkROXFP2LQcjs.PIXERATE_DOCUMENT_MIME,
|
|
3802
3802
|
plainTextMode: false
|
|
3803
3803
|
};
|
|
3804
3804
|
},
|
|
@@ -3806,7 +3806,7 @@ var RichClipboard = _core.Extension.create({
|
|
|
3806
3806
|
return { plainTextMode: !!this.options.plainTextMode };
|
|
3807
3807
|
},
|
|
3808
3808
|
addProseMirrorPlugins() {
|
|
3809
|
-
const mimeType = _nullishCoalesce(this.options.mimeType, () => (
|
|
3809
|
+
const mimeType = _nullishCoalesce(this.options.mimeType, () => ( _chunkROXFP2LQcjs.PIXERATE_DOCUMENT_MIME));
|
|
3810
3810
|
const storage = this.storage;
|
|
3811
3811
|
return [
|
|
3812
3812
|
new (0, _state.Plugin)({
|
|
@@ -3818,10 +3818,10 @@ var RichClipboard = _core.Extension.create({
|
|
|
3818
3818
|
},
|
|
3819
3819
|
handlePaste(view, event) {
|
|
3820
3820
|
if (storage.plainTextMode) return false;
|
|
3821
|
-
const slice =
|
|
3821
|
+
const slice = _chunkROXFP2LQcjs.readRichClipboard.call(void 0, event, view.state.schema, mimeType);
|
|
3822
3822
|
if (!slice) return false;
|
|
3823
3823
|
event.preventDefault();
|
|
3824
|
-
if (
|
|
3824
|
+
if (_chunkRKJDBXTYcjs.handleTablePasteWithoutNesting.call(void 0, view, event, slice)) return true;
|
|
3825
3825
|
view.dispatch(
|
|
3826
3826
|
view.state.tr.replaceSelection(slice).scrollIntoView().setMeta("paste", true).setMeta("uiEvent", "paste")
|
|
3827
3827
|
);
|
|
@@ -4222,7 +4222,7 @@ function createOutlineStore(editor) {
|
|
|
4222
4222
|
if (!editor || editor.isDestroyed) return EMPTY_SNAPSHOT;
|
|
4223
4223
|
const headings = getOutline(editor);
|
|
4224
4224
|
const activeId = _nullishCoalesce(_optionalChain([getActiveHeading, 'call', _161 => _161(editor, headings), 'optionalAccess', _162 => _162.id]), () => ( null));
|
|
4225
|
-
const sameStructure =
|
|
4225
|
+
const sameStructure = _chunkRKJDBXTYcjs.arraysEqual.call(void 0, snapshot.headings, headings, sameHeading);
|
|
4226
4226
|
if (sameStructure && snapshot.activeId === activeId) return snapshot;
|
|
4227
4227
|
return {
|
|
4228
4228
|
headings: sameStructure ? snapshot.headings : headings,
|
|
@@ -4270,7 +4270,7 @@ function navigateToHeading(editor, heading, options = {}) {
|
|
|
4270
4270
|
editor.view.dispatch(tr);
|
|
4271
4271
|
editor.view.focus();
|
|
4272
4272
|
}
|
|
4273
|
-
|
|
4273
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, editor.view, current.pos, behavior);
|
|
4274
4274
|
return true;
|
|
4275
4275
|
}
|
|
4276
4276
|
function assignHeadingIds(state, types, generateId) {
|
|
@@ -4295,11 +4295,11 @@ function assignHeadingIds(state, types, generateId) {
|
|
|
4295
4295
|
}
|
|
4296
4296
|
var Outline = _core.Extension.create({
|
|
4297
4297
|
name: "outline",
|
|
4298
|
-
priority:
|
|
4298
|
+
priority: _chunkRKJDBXTYcjs.STRUCTURE_PRIORITY,
|
|
4299
4299
|
addOptions() {
|
|
4300
4300
|
return {
|
|
4301
4301
|
types: ["heading"],
|
|
4302
|
-
generateId: () =>
|
|
4302
|
+
generateId: () => _chunkRKJDBXTYcjs.generateStructureId.call(void 0, "h"),
|
|
4303
4303
|
onUpdate: void 0
|
|
4304
4304
|
};
|
|
4305
4305
|
},
|
|
@@ -4332,14 +4332,14 @@ var Outline = _core.Extension.create({
|
|
|
4332
4332
|
tr.scrollIntoView();
|
|
4333
4333
|
_optionalChain([view, 'optionalAccess', _169 => _169.focus, 'optionalCall', _170 => _170()]);
|
|
4334
4334
|
}
|
|
4335
|
-
|
|
4335
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, heading.pos, options.behavior);
|
|
4336
4336
|
}
|
|
4337
4337
|
return true;
|
|
4338
4338
|
},
|
|
4339
4339
|
scrollToHeading: (id, options = {}) => ({ state, dispatch, view }) => {
|
|
4340
4340
|
const heading = findHeading(state, id);
|
|
4341
4341
|
if (!heading) return false;
|
|
4342
|
-
if (dispatch)
|
|
4342
|
+
if (dispatch) _chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, heading.pos, options.behavior);
|
|
4343
4343
|
return true;
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
@@ -4360,7 +4360,7 @@ var Outline = _core.Extension.create({
|
|
|
4360
4360
|
apply: (tr, prev, _oldState, newState) => {
|
|
4361
4361
|
if (!tr.docChanged) return prev;
|
|
4362
4362
|
const next = computeOutline(newState.doc, types);
|
|
4363
|
-
if (
|
|
4363
|
+
if (_chunkRKJDBXTYcjs.arraysEqual.call(void 0, prev, next, sameHeading)) return prev;
|
|
4364
4364
|
storage.headings = next;
|
|
4365
4365
|
_optionalChain([onUpdate, 'call', _171 => _171(), 'optionalCall', _172 => _172(next)]);
|
|
4366
4366
|
return next;
|
|
@@ -4378,7 +4378,7 @@ var Outline = _core.Extension.create({
|
|
|
4378
4378
|
},
|
|
4379
4379
|
onBeforeCreate() {
|
|
4380
4380
|
const { types, generateId } = this.options;
|
|
4381
|
-
|
|
4381
|
+
_chunkRKJDBXTYcjs.syncInitialContent.call(void 0, this.editor, (state) => assignHeadingIds(state, types, generateId));
|
|
4382
4382
|
}
|
|
4383
4383
|
});
|
|
4384
4384
|
|
|
@@ -4548,7 +4548,7 @@ function syncTableOfContents(state, headingTypes) {
|
|
|
4548
4548
|
node.attrs.minLevel,
|
|
4549
4549
|
node.attrs.maxLevel
|
|
4550
4550
|
);
|
|
4551
|
-
if (!
|
|
4551
|
+
if (!_chunkRKJDBXTYcjs.arraysEqual.call(void 0, _nullishCoalesce(node.attrs.entries, () => ( [])), entries, sameEntry)) {
|
|
4552
4552
|
tr = _nullishCoalesce(tr, () => ( state.tr));
|
|
4553
4553
|
tr.setNodeMarkup(pos, void 0, { ...node.attrs, entries });
|
|
4554
4554
|
}
|
|
@@ -4560,7 +4560,7 @@ function syncTableOfContents(state, headingTypes) {
|
|
|
4560
4560
|
}
|
|
4561
4561
|
var TableOfContents = _core.Node.create({
|
|
4562
4562
|
name: "tableOfContents",
|
|
4563
|
-
priority:
|
|
4563
|
+
priority: _chunkRKJDBXTYcjs.STRUCTURE_PRIORITY - 5,
|
|
4564
4564
|
group: "block",
|
|
4565
4565
|
atom: true,
|
|
4566
4566
|
selectable: true,
|
|
@@ -4671,7 +4671,7 @@ var TableOfContents = _core.Node.create({
|
|
|
4671
4671
|
return [
|
|
4672
4672
|
new (0, _state.Plugin)({
|
|
4673
4673
|
key: tableOfContentsPluginKey,
|
|
4674
|
-
state:
|
|
4674
|
+
state: _chunkRKJDBXTYcjs.presenceStateSpec.call(void 0, [this.name]),
|
|
4675
4675
|
appendTransaction: (transactions, _oldState, newState) => {
|
|
4676
4676
|
if (!transactions.some((tr) => tr.docChanged)) return null;
|
|
4677
4677
|
if (!tableOfContentsPluginKey.getState(newState)) return null;
|
|
@@ -4695,7 +4695,7 @@ var TableOfContents = _core.Node.create({
|
|
|
4695
4695
|
);
|
|
4696
4696
|
view.focus();
|
|
4697
4697
|
}
|
|
4698
|
-
|
|
4698
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, heading.pos);
|
|
4699
4699
|
return true;
|
|
4700
4700
|
}
|
|
4701
4701
|
}
|
|
@@ -4705,7 +4705,7 @@ var TableOfContents = _core.Node.create({
|
|
|
4705
4705
|
},
|
|
4706
4706
|
onBeforeCreate() {
|
|
4707
4707
|
const { headingTypes } = this.options;
|
|
4708
|
-
|
|
4708
|
+
_chunkRKJDBXTYcjs.syncInitialContent.call(void 0, this.editor, (state) => syncTableOfContents(state, headingTypes));
|
|
4709
4709
|
}
|
|
4710
4710
|
});
|
|
4711
4711
|
|
|
@@ -4763,7 +4763,7 @@ function syncFootnotes(tr, options = {}) {
|
|
|
4763
4763
|
const listType = schema.nodes[LIST];
|
|
4764
4764
|
const itemType = schema.nodes[ITEM];
|
|
4765
4765
|
if (!listType || !itemType) return false;
|
|
4766
|
-
const generateId = _nullishCoalesce(options.generateId, () => ( (() =>
|
|
4766
|
+
const generateId = _nullishCoalesce(options.generateId, () => ( (() => _chunkRKJDBXTYcjs.generateStructureId.call(void 0, "fn"))));
|
|
4767
4767
|
const refs = [];
|
|
4768
4768
|
const lists = [];
|
|
4769
4769
|
const existing = /* @__PURE__ */ new Map();
|
|
@@ -4847,7 +4847,7 @@ function findReferences(doc, id) {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
var FootnoteReference = _core.Node.create({
|
|
4849
4849
|
name: REFERENCE,
|
|
4850
|
-
priority:
|
|
4850
|
+
priority: _chunkRKJDBXTYcjs.STRUCTURE_PRIORITY - 5,
|
|
4851
4851
|
group: "inline",
|
|
4852
4852
|
inline: true,
|
|
4853
4853
|
atom: true,
|
|
@@ -4855,7 +4855,7 @@ var FootnoteReference = _core.Node.create({
|
|
|
4855
4855
|
addOptions() {
|
|
4856
4856
|
return {
|
|
4857
4857
|
HTMLAttributes: {},
|
|
4858
|
-
generateId: () =>
|
|
4858
|
+
generateId: () => _chunkRKJDBXTYcjs.generateStructureId.call(void 0, "fn")
|
|
4859
4859
|
};
|
|
4860
4860
|
},
|
|
4861
4861
|
addAttributes() {
|
|
@@ -4966,7 +4966,7 @@ var FootnoteReference = _core.Node.create({
|
|
|
4966
4966
|
_state.TextSelection.create(tr.doc, footnote.pos + footnote.node.nodeSize - 2)
|
|
4967
4967
|
);
|
|
4968
4968
|
tr.scrollIntoView();
|
|
4969
|
-
|
|
4969
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, footnote.pos);
|
|
4970
4970
|
}
|
|
4971
4971
|
return true;
|
|
4972
4972
|
},
|
|
@@ -4976,7 +4976,7 @@ var FootnoteReference = _core.Node.create({
|
|
|
4976
4976
|
if (dispatch) {
|
|
4977
4977
|
tr.setSelection(_state.NodeSelection.create(tr.doc, ref.pos));
|
|
4978
4978
|
tr.scrollIntoView();
|
|
4979
|
-
|
|
4979
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, ref.pos);
|
|
4980
4980
|
}
|
|
4981
4981
|
return true;
|
|
4982
4982
|
}
|
|
@@ -4988,7 +4988,7 @@ var FootnoteReference = _core.Node.create({
|
|
|
4988
4988
|
return [
|
|
4989
4989
|
new (0, _state.Plugin)({
|
|
4990
4990
|
key: footnotesPluginKey,
|
|
4991
|
-
state:
|
|
4991
|
+
state: _chunkRKJDBXTYcjs.presenceStateSpec.call(void 0, [REFERENCE, LIST]),
|
|
4992
4992
|
appendTransaction: (transactions, _oldState, newState) => {
|
|
4993
4993
|
if (!transactions.some((tr2) => tr2.docChanged)) return null;
|
|
4994
4994
|
if (!footnotesPluginKey.getState(newState)) return null;
|
|
@@ -5009,7 +5009,7 @@ var FootnoteReference = _core.Node.create({
|
|
|
5009
5009
|
},
|
|
5010
5010
|
onBeforeCreate() {
|
|
5011
5011
|
const { generateId } = this.options;
|
|
5012
|
-
|
|
5012
|
+
_chunkRKJDBXTYcjs.syncInitialContent.call(void 0, this.editor, (state) => {
|
|
5013
5013
|
const tr = state.tr;
|
|
5014
5014
|
return syncFootnotes(tr, { generateId }) ? tr : null;
|
|
5015
5015
|
});
|
|
@@ -5149,7 +5149,7 @@ var Bookmark = _core.Mark.create({
|
|
|
5149
5149
|
addOptions() {
|
|
5150
5150
|
return {
|
|
5151
5151
|
HTMLAttributes: {},
|
|
5152
|
-
generateId: () =>
|
|
5152
|
+
generateId: () => _chunkRKJDBXTYcjs.generateStructureId.call(void 0, "bm")
|
|
5153
5153
|
};
|
|
5154
5154
|
},
|
|
5155
5155
|
addAttributes() {
|
|
@@ -5234,7 +5234,7 @@ var Bookmark = _core.Mark.create({
|
|
|
5234
5234
|
tr.setSelection(_state.TextSelection.create(tr.doc, bookmark.from, bookmark.to));
|
|
5235
5235
|
tr.scrollIntoView();
|
|
5236
5236
|
const domPos = state.doc.resolve(bookmark.from);
|
|
5237
|
-
|
|
5237
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, domPos.before(domPos.depth));
|
|
5238
5238
|
}
|
|
5239
5239
|
return true;
|
|
5240
5240
|
}
|
|
@@ -5299,7 +5299,7 @@ function syncCrossReferences(state, headingTypes) {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
var CrossReference = _core.Node.create({
|
|
5301
5301
|
name: NAME,
|
|
5302
|
-
priority:
|
|
5302
|
+
priority: _chunkRKJDBXTYcjs.STRUCTURE_PRIORITY - 5,
|
|
5303
5303
|
group: "inline",
|
|
5304
5304
|
inline: true,
|
|
5305
5305
|
atom: true,
|
|
@@ -5401,7 +5401,7 @@ var CrossReference = _core.Node.create({
|
|
|
5401
5401
|
if (dispatch) {
|
|
5402
5402
|
tr.setSelection(_state.TextSelection.create(tr.doc, range.from, range.to));
|
|
5403
5403
|
tr.scrollIntoView();
|
|
5404
|
-
|
|
5404
|
+
_chunkRKJDBXTYcjs.scrollDomAtPos.call(void 0, view, range.blockPos);
|
|
5405
5405
|
}
|
|
5406
5406
|
return true;
|
|
5407
5407
|
}
|
|
@@ -5413,7 +5413,7 @@ var CrossReference = _core.Node.create({
|
|
|
5413
5413
|
return [
|
|
5414
5414
|
new (0, _state.Plugin)({
|
|
5415
5415
|
key: crossReferencePluginKey,
|
|
5416
|
-
state:
|
|
5416
|
+
state: _chunkRKJDBXTYcjs.presenceStateSpec.call(void 0, [NAME]),
|
|
5417
5417
|
appendTransaction: (transactions, _oldState, newState) => {
|
|
5418
5418
|
if (!transactions.some((tr) => tr.docChanged)) return null;
|
|
5419
5419
|
if (!crossReferencePluginKey.getState(newState)) return null;
|
|
@@ -5432,7 +5432,7 @@ var CrossReference = _core.Node.create({
|
|
|
5432
5432
|
},
|
|
5433
5433
|
onBeforeCreate() {
|
|
5434
5434
|
const { headingTypes } = this.options;
|
|
5435
|
-
|
|
5435
|
+
_chunkRKJDBXTYcjs.syncInitialContent.call(void 0, this.editor, (state) => syncCrossReferences(state, headingTypes));
|
|
5436
5436
|
}
|
|
5437
5437
|
});
|
|
5438
5438
|
|
|
@@ -5687,7 +5687,7 @@ var FindReplace = _core.Extension.create({
|
|
|
5687
5687
|
if (!s || !s.active || s.currentIndex < 0 || !s.matches[s.currentIndex]) return false;
|
|
5688
5688
|
if (dispatch) {
|
|
5689
5689
|
_history.closeHistory.call(void 0, tr);
|
|
5690
|
-
const [end] =
|
|
5690
|
+
const [end] = _chunkRKJDBXTYcjs.applyReplacements.call(void 0, tr, [s.matches[s.currentIndex]]);
|
|
5691
5691
|
tr.setSelection(_state.TextSelection.create(tr.doc, end)).scrollIntoView();
|
|
5692
5692
|
meta(tr, { type: "replaced", anchor: end, count: 1 });
|
|
5693
5693
|
}
|
|
@@ -5698,7 +5698,7 @@ var FindReplace = _core.Extension.create({
|
|
|
5698
5698
|
if (!s || !s.active || !s.matches.length) return false;
|
|
5699
5699
|
if (dispatch) {
|
|
5700
5700
|
_history.closeHistory.call(void 0, tr);
|
|
5701
|
-
const ends =
|
|
5701
|
+
const ends = _chunkRKJDBXTYcjs.applyReplacements.call(void 0, tr, s.matches);
|
|
5702
5702
|
meta(tr, { type: "replaced", anchor: ends[ends.length - 1], count: s.matches.length });
|
|
5703
5703
|
}
|
|
5704
5704
|
return true;
|
|
@@ -5730,7 +5730,7 @@ var FindReplace = _core.Extension.create({
|
|
|
5730
5730
|
if (!s.active || !s.query) {
|
|
5731
5731
|
return { ...s, matches: [], currentIndex: -1, error: null, truncated: false };
|
|
5732
5732
|
}
|
|
5733
|
-
const result =
|
|
5733
|
+
const result = _chunkRKJDBXTYcjs.searchDocument.call(void 0, doc, s.query, s.options, {
|
|
5734
5734
|
replacement: s.replacement,
|
|
5735
5735
|
clipboardText: safeClipboard(options.getClipboardText),
|
|
5736
5736
|
timeLimitMs: options.timeLimitMs,
|
|
@@ -6317,7 +6317,7 @@ function createRichTextPreset(options = {}) {
|
|
|
6317
6317
|
})
|
|
6318
6318
|
];
|
|
6319
6319
|
if (options.table !== false) {
|
|
6320
|
-
extensions2.push(...
|
|
6320
|
+
extensions2.push(..._chunkRKJDBXTYcjs.createTableExtensions.call(void 0, optionObject(options.table)));
|
|
6321
6321
|
}
|
|
6322
6322
|
if (characterLimit) {
|
|
6323
6323
|
extensions2.push(
|
|
@@ -6424,8 +6424,8 @@ function createRichTextPreset(options = {}) {
|
|
|
6424
6424
|
}
|
|
6425
6425
|
if (options.chart) {
|
|
6426
6426
|
const { sparkline = true, ...chartOptions } = optionObject(options.chart);
|
|
6427
|
-
extensions2.push(
|
|
6428
|
-
if (sparkline) extensions2.push(
|
|
6427
|
+
extensions2.push(_chunkRKJDBXTYcjs.Chart.configure(chartOptions));
|
|
6428
|
+
if (sparkline) extensions2.push(_chunkRKJDBXTYcjs.Sparkline.configure(optionObject(sparkline)));
|
|
6429
6429
|
}
|
|
6430
6430
|
if (options.paragraphStyles) {
|
|
6431
6431
|
extensions2.push(ParagraphStyles.configure(optionObject(options.paragraphStyles)));
|
|
@@ -6566,7 +6566,7 @@ function createFindReplaceCommands(editor, options = {}) {
|
|
|
6566
6566
|
];
|
|
6567
6567
|
}
|
|
6568
6568
|
function validateFindPattern(query, options = {}) {
|
|
6569
|
-
const result =
|
|
6569
|
+
const result = _chunkRKJDBXTYcjs.compileFindPattern.call(void 0, query, options);
|
|
6570
6570
|
return result.ok ? null : result.error;
|
|
6571
6571
|
}
|
|
6572
6572
|
|
|
@@ -6575,8 +6575,8 @@ var PARAMS = {
|
|
|
6575
6575
|
insertTable: {
|
|
6576
6576
|
type: "object",
|
|
6577
6577
|
properties: {
|
|
6578
|
-
rows: { type: "integer", minimum: 1, maximum:
|
|
6579
|
-
cols: { type: "integer", minimum: 1, maximum:
|
|
6578
|
+
rows: { type: "integer", minimum: 1, maximum: _chunkRKJDBXTYcjs.MAX_TABLE_ROWS, description: "Rows (default 3)." },
|
|
6579
|
+
cols: { type: "integer", minimum: 1, maximum: _chunkRKJDBXTYcjs.MAX_TABLE_COLUMNS, description: "Columns (default 3)." },
|
|
6580
6580
|
withHeaderRow: { type: "boolean", description: "Make the first row a header row (default true)." }
|
|
6581
6581
|
},
|
|
6582
6582
|
additionalProperties: false
|
|
@@ -6607,7 +6607,7 @@ function createTableCommands(editor, options = {}) {
|
|
|
6607
6607
|
const group = _nullishCoalesce(options.group, () => ( "Table"));
|
|
6608
6608
|
const scope = options.scope ? { scope: options.scope } : {};
|
|
6609
6609
|
const focus = _nullishCoalesce(options.focus, () => ( true));
|
|
6610
|
-
return
|
|
6610
|
+
return _chunkRKJDBXTYcjs.TABLE_ACTIONS.map(({ action, label, description, keywords }) => {
|
|
6611
6611
|
const params = PARAMS[action];
|
|
6612
6612
|
return {
|
|
6613
6613
|
id: `${prefix}${action}`,
|
|
@@ -6617,13 +6617,13 @@ function createTableCommands(editor, options = {}) {
|
|
|
6617
6617
|
description,
|
|
6618
6618
|
...params ? { params } : {},
|
|
6619
6619
|
...scope,
|
|
6620
|
-
enabled: (_ctx, p) =>
|
|
6620
|
+
enabled: (_ctx, p) => _chunkRKJDBXTYcjs.getTableActionState.call(void 0, editor, action, _nullishCoalesce(p, () => ( {}))),
|
|
6621
6621
|
run: (_ctx, p) => {
|
|
6622
|
-
if (!
|
|
6623
|
-
const reason =
|
|
6622
|
+
if (!_chunkRKJDBXTYcjs.runTableAction.call(void 0, editor, action, _nullishCoalesce(p, () => ( {})), { focus })) {
|
|
6623
|
+
const reason = _chunkRKJDBXTYcjs.getTableActionState.call(void 0, editor, action, _nullishCoalesce(p, () => ( {})));
|
|
6624
6624
|
throw new Error(reason === true ? `${label} did not change the document.` : reason);
|
|
6625
6625
|
}
|
|
6626
|
-
const state =
|
|
6626
|
+
const state = _chunkRKJDBXTYcjs.getTableState.call(void 0, editor);
|
|
6627
6627
|
return {
|
|
6628
6628
|
done: true,
|
|
6629
6629
|
table: state.inTable ? { rows: state.rows, columns: state.columns, row: state.row, column: state.column } : null
|
|
@@ -6755,4 +6755,4 @@ function createTableCommands(editor, options = {}) {
|
|
|
6755
6755
|
|
|
6756
6756
|
|
|
6757
6757
|
exports.GradientText = GradientText; exports.SlashCommands = SlashCommands; exports.TemplateSuggestions = TemplateSuggestions; exports.LoadingNode = LoadingNode; exports.SMILIE_REPLACEMENTS = SMILIE_REPLACEMENTS; exports.smilieAutocorrectRules = smilieAutocorrectRules; exports.SmilieReplacer = SmilieReplacer; exports.findHexColors = findHexColors; exports.ColorHighlighter = ColorHighlighter; exports.FontSize = FontSize; exports.Mention = Mention; exports.getMentionNodes = getMentionNodes; exports.setMentionRoleAt = setMentionRoleAt; exports.createMentionExtension = createMentionExtension; exports.Markdown = Markdown2; exports.imagePastePluginKey = imagePastePluginKey; exports.insertImageNode = insertImageNode; exports.updateImageSrc = updateImageSrc; exports.removeImageNode = removeImageNode; exports.handleImageInsertion = handleImageInsertion; exports.Image = Image2; exports.commentsPluginKey = commentsPluginKey; exports.COMMENT_MARK_NAME = COMMENT_MARK_NAME; exports.findCommentRanges = findCommentRanges; exports.getCommentAnchors = getCommentAnchors; exports.getCommentIdsAt = getCommentIdsAt; exports.getCommentStore = getCommentStore; exports.Comments = Comments; exports.getCommentAuthor = getCommentAuthor; exports.compareInEditor = compareInEditor; exports.applyDocumentComparison = applyDocumentComparison; exports.DocumentCompare = DocumentCompare; exports.ImportError = ImportError; exports.createImportContext = createImportContext; exports.ImportAdapterRegistry = ImportAdapterRegistry; exports.DOCX_MIME_TYPES = DOCX_MIME_TYPES; exports.DEFAULT_DOCX_MAX_IMAGE_SIZE = DEFAULT_DOCX_MAX_IMAGE_SIZE; exports.docxToDocumentImport = docxToDocumentImport; exports.createDocxImportAdapter = createDocxImportAdapter; exports.docxImportAdapter = docxImportAdapter; exports.markdownImportAdapter = markdownImportAdapter; exports.htmlImportAdapter = htmlImportAdapter; exports.plainTextImportAdapter = plainTextImportAdapter; exports.rtfImportAdapter = rtfImportAdapter; exports.BUILT_IN_IMPORT_ADAPTERS = BUILT_IN_IMPORT_ADAPTERS; exports.createImportAdapterRegistry = createImportAdapterRegistry; exports.defaultImportRegistry = defaultImportRegistry; exports.registerImportAdapter = registerImportAdapter; exports.unregisterImportAdapter = unregisterImportAdapter; exports.findImportAdapter = findImportAdapter; exports.importFile = importFile; exports.getImportAccept = getImportAccept; exports.htmlToSlice = htmlToSlice; exports.insertImportedDocument = insertImportedDocument; exports.applyImportedReviewData = applyImportedReviewData; exports.importFilesIntoEditor = importFilesIntoEditor; exports.fileImportPluginKey = fileImportPluginKey; exports.FileImport = FileImport; exports.richClipboardPluginKey = richClipboardPluginKey; exports.writeRichClipboard = writeRichClipboard; exports.RichClipboard = RichClipboard; exports.smartQuoteRules = smartQuoteRules; exports.symbolRules = symbolRules; exports.fractionRules = fractionRules; exports.capitalizeSentenceRules = capitalizeSentenceRules; exports.twoInitialCapitalsRules = twoInitialCapitalsRules; exports.defaultAutocorrectRules = defaultAutocorrectRules; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.autocorrectPluginKey = autocorrectPluginKey; exports.findAutocorrection = findAutocorrection; exports.isInsidePromptToken = isInsidePromptToken; exports.Autocorrect = Autocorrect; exports.outlinePluginKey = outlinePluginKey; exports.computeOutline = computeOutline; exports.buildOutlineTree = buildOutlineTree; exports.getOutline = getOutline; exports.getActiveHeading = getActiveHeading; exports.createOutlineStore = createOutlineStore; exports.navigateToHeading = navigateToHeading; exports.Outline = Outline; exports.tableOfContentsMarkdownIt = tableOfContentsMarkdownIt; exports.footnotesMarkdownIt = footnotesMarkdownIt; exports.tableOfContentsPluginKey = tableOfContentsPluginKey; exports.getTableOfContentsEntries = getTableOfContentsEntries; exports.TableOfContents = TableOfContents; exports.footnotesPluginKey = footnotesPluginKey; exports.getFootnotes = getFootnotes; exports.syncFootnotes = syncFootnotes; exports.FootnoteReference = FootnoteReference; exports.Footnotes = Footnotes; exports.Footnote = Footnote; exports.getBookmarks = getBookmarks; exports.Bookmark = Bookmark; exports.crossReferencePluginKey = crossReferencePluginKey; exports.getCrossReferenceTargets = getCrossReferenceTargets; exports.CrossReference = CrossReference; exports.documentStructureCommandItems = documentStructureCommandItems; exports.getDocumentStructureCommandItems = getDocumentStructureCommandItems; exports.EMPTY_FIND_REPLACE_SNAPSHOT = EMPTY_FIND_REPLACE_SNAPSHOT; exports.FindReplaceStore = FindReplaceStore; exports.findReplacePluginKey = findReplacePluginKey; exports.getFindReplaceState = getFindReplaceState; exports.getFindReplaceStore = getFindReplaceStore; exports.FIND_OPTION_TOGGLES = FIND_OPTION_TOGGLES; exports.formatFindStatus = formatFindStatus; exports.FindReplace = FindReplace; exports.STYLE_ID_ATTRIBUTE = STYLE_ID_ATTRIBUTE; exports.CHARACTER_STYLE_MARK_NAME = CHARACTER_STYLE_MARK_NAME; exports.paragraphStylesPluginKey = paragraphStylesPluginKey; exports.getStyleRegistry = getStyleRegistry; exports.isParagraphStyleAvailable = isParagraphStyleAvailable; exports.getParagraphStyleAt = getParagraphStyleAt; exports.captureSelectionFormat = captureSelectionFormat; exports.CharacterStyle = CharacterStyle; exports.ParagraphStyles = ParagraphStyles; exports.createParagraphStylesStore = createParagraphStylesStore; exports.createRichTextPreset = createRichTextPreset; exports.createFindReplaceCommands = createFindReplaceCommands; exports.validateFindPattern = validateFindPattern; exports.createTableCommands = createTableCommands;
|
|
6758
|
-
//# sourceMappingURL=chunk-
|
|
6758
|
+
//# sourceMappingURL=chunk-MXF4DP2C.cjs.map
|