@harbour-enterprises/superdoc 0.28.0-next.16 → 0.28.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-qq7VuheG.cjs → PdfViewer-C-Ze6JeA.cjs} +1 -1
- package/dist/chunks/{PdfViewer-511UYFts.es.js → PdfViewer-CgO84Z8T.es.js} +1 -1
- package/dist/chunks/{index-DXsRgDI8.cjs → index-D1umTiDg.cjs} +2 -2
- package/dist/chunks/{index-R92AJa-b-BK_BPu-7.es.js → index-cOCdMICZ-Ci7PU968.es.js} +1 -1
- package/dist/chunks/{index-R92AJa-b-814itwOQ.cjs → index-cOCdMICZ-DD6pWThu.cjs} +1 -1
- package/dist/chunks/{index-QrjpYZxu.es.js → index-kTCzN97h.es.js} +2 -2
- package/dist/chunks/{super-editor.es-DmerK7HX.es.js → super-editor.es-CPgOO-fX.es.js} +54 -15
- package/dist/chunks/{super-editor.es-C7rGSq3G.cjs → super-editor.es-Dc0PuIBh.cjs} +54 -15
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DCADSoU6.js → converter-DxFe92HN.js} +42 -10
- package/dist/super-editor/chunks/{docx-zipper-DiRUh82P.js → docx-zipper-cuctY57Z.js} +1 -1
- package/dist/super-editor/chunks/{editor-S-V_9zg8.js → editor-CMem2X8B.js} +14 -7
- package/dist/super-editor/chunks/{index-R92AJa-b.js → index-cOCdMICZ.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-CKze0avT.js → toolbar-DhuSaHbu.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/numberingCache.d.ts +2 -2
- package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts +1 -0
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +55 -16
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export const handleListNode: any;
|
|
|
107
107
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
108
108
|
*/
|
|
109
109
|
export const listHandlerEntity: any;
|
|
110
|
-
export function getAbstractDefinition(numId: any, docx: any): import("./numberingCache.js").DocxXmlElement;
|
|
110
|
+
export function getAbstractDefinition(numId: any, docx: any, converter: any): import("./numberingCache.js").DocxXmlElement;
|
|
111
111
|
export function generateListPath(level: any, numId: any, styleId: any, levels: any, docx: any): any[];
|
|
112
112
|
export function getListLevelDefinitionTag(numId: string, level: string, pStyleId: any, docx: any): any;
|
|
113
113
|
export namespace docxNumberingHelpers {
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/numberingCache.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export const NUMBERING_CACHE_KEY: "numbering-cache";
|
|
|
3
3
|
/** Symbol used to memoize level lookups on abstract numbering elements. */
|
|
4
4
|
export const LEVELS_MAP_KEY: unique symbol;
|
|
5
5
|
export function buildNumberingCache(docx: DocxPackage | null | undefined): NumberingCache;
|
|
6
|
-
export function ensureNumberingCache(docx: DocxPackage | null | undefined): NumberingCache;
|
|
7
|
-
export function getNumberingCache(
|
|
6
|
+
export function ensureNumberingCache(docx: DocxPackage | null | undefined, converter?: any): NumberingCache;
|
|
7
|
+
export function getNumberingCache(converterOrDocx: any): NumberingCache;
|
|
8
8
|
export type DocxXmlElement = {
|
|
9
9
|
name?: string;
|
|
10
10
|
attributes?: Record<string, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function shouldSkipNodeView(editor: import("../core/Editor.js").Editor): boolean;
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { c1, a5, i, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { v, C, w, T, q, x, t } from "./chunks/editor-
|
|
12
|
+
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-DxFe92HN.js";
|
|
13
|
+
import { c1, a5, i, a2 } from "./chunks/converter-DxFe92HN.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-CMem2X8B.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-CMem2X8B.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-DhuSaHbu.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-cuctY57Z.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-Dc0PuIBh.cjs");
|
|
4
4
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-CPgOO-fX.es.js";
|
|
2
2
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-Dc0PuIBh.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-D1umTiDg.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-CPgOO-fX.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-kTCzN97h.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -28333,7 +28333,23 @@
|
|
|
28333
28333
|
]
|
|
28334
28334
|
};
|
|
28335
28335
|
const docxNumberingCacheStore = /* @__PURE__ */ new WeakMap();
|
|
28336
|
+
const NUMBERING_CACHE_KEY = "numbering-cache";
|
|
28336
28337
|
const LEVELS_MAP_KEY = Symbol("superdoc.numbering.levels");
|
|
28338
|
+
const NUMBERING_CACHE_DOCX_KEY = Symbol("superdoc.numbering.docx");
|
|
28339
|
+
const clearConverterCache = (converter) => {
|
|
28340
|
+
if (!converter) return;
|
|
28341
|
+
delete converter[NUMBERING_CACHE_KEY];
|
|
28342
|
+
delete converter[NUMBERING_CACHE_DOCX_KEY];
|
|
28343
|
+
};
|
|
28344
|
+
const setConverterCache = (converter, cache2, docx) => {
|
|
28345
|
+
if (!converter) return;
|
|
28346
|
+
converter[NUMBERING_CACHE_KEY] = cache2;
|
|
28347
|
+
if (docx && typeof docx === "object") {
|
|
28348
|
+
converter[NUMBERING_CACHE_DOCX_KEY] = docx;
|
|
28349
|
+
} else {
|
|
28350
|
+
delete converter[NUMBERING_CACHE_DOCX_KEY];
|
|
28351
|
+
}
|
|
28352
|
+
};
|
|
28337
28353
|
const createEmptyCache = () => ({
|
|
28338
28354
|
numToAbstractId: /* @__PURE__ */ new Map(),
|
|
28339
28355
|
abstractById: /* @__PURE__ */ new Map(),
|
|
@@ -28405,12 +28421,27 @@
|
|
|
28405
28421
|
}
|
|
28406
28422
|
return { numToAbstractId, abstractById, templateById, numToDefinition, numNodesById };
|
|
28407
28423
|
};
|
|
28408
|
-
const ensureNumberingCache = (docx) => {
|
|
28424
|
+
const ensureNumberingCache = (docx, converter) => {
|
|
28425
|
+
if (converter?.[NUMBERING_CACHE_KEY]) {
|
|
28426
|
+
const cachedDocx = converter[NUMBERING_CACHE_DOCX_KEY];
|
|
28427
|
+
if (docx && cachedDocx && cachedDocx !== docx) {
|
|
28428
|
+
clearConverterCache(converter);
|
|
28429
|
+
} else {
|
|
28430
|
+
return converter[NUMBERING_CACHE_KEY];
|
|
28431
|
+
}
|
|
28432
|
+
}
|
|
28409
28433
|
if (!docx || typeof docx !== "object") return createEmptyCache();
|
|
28410
28434
|
const existingCache = docxNumberingCacheStore.get(docx);
|
|
28411
|
-
if (existingCache)
|
|
28435
|
+
if (existingCache) {
|
|
28436
|
+
setConverterCache(converter, existingCache, docx);
|
|
28437
|
+
return existingCache;
|
|
28438
|
+
}
|
|
28412
28439
|
const cache2 = buildNumberingCache(docx);
|
|
28413
|
-
|
|
28440
|
+
if (converter) {
|
|
28441
|
+
setConverterCache(converter, cache2, docx);
|
|
28442
|
+
} else {
|
|
28443
|
+
docxNumberingCacheStore.set(docx, cache2);
|
|
28444
|
+
}
|
|
28414
28445
|
return cache2;
|
|
28415
28446
|
};
|
|
28416
28447
|
const handleListNode = (params2) => {
|
|
@@ -28667,11 +28698,11 @@
|
|
|
28667
28698
|
}
|
|
28668
28699
|
return { numId, ilvl };
|
|
28669
28700
|
};
|
|
28670
|
-
const getAbstractDefinition = (numId, docx) => {
|
|
28701
|
+
const getAbstractDefinition = (numId, docx, converter) => {
|
|
28671
28702
|
const numberingXml = docx["word/numbering.xml"];
|
|
28672
28703
|
if (!numberingXml) return {};
|
|
28673
28704
|
if (numId == null) return void 0;
|
|
28674
|
-
const cache2 = ensureNumberingCache(docx);
|
|
28705
|
+
const cache2 = ensureNumberingCache(docx, converter);
|
|
28675
28706
|
const numKey = String(numId);
|
|
28676
28707
|
let listDefinitionForThisNumId = cache2.numToDefinition.get(numKey);
|
|
28677
28708
|
if (!listDefinitionForThisNumId) {
|
|
@@ -32184,10 +32215,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32184
32215
|
if (typeof numId === "string") numId = Number(numId);
|
|
32185
32216
|
if (typeof level === "string") level = Number(level);
|
|
32186
32217
|
const docx = editor?.converter?.convertedXml;
|
|
32187
|
-
const
|
|
32218
|
+
const converter = editor?.converter;
|
|
32219
|
+
const numbering = converter?.numbering;
|
|
32188
32220
|
const styleDefinition = docx ? getStyleTagFromStyleId(styleId, docx) : null;
|
|
32189
32221
|
const stylePpr = styleDefinition?.elements.find((el) => el.name === "w:pPr");
|
|
32190
|
-
let abstractDefinition = docx ? getAbstractDefinition(numId, docx) : null;
|
|
32222
|
+
let abstractDefinition = docx ? getAbstractDefinition(numId, docx, converter) : null;
|
|
32191
32223
|
if (!abstractDefinition) {
|
|
32192
32224
|
const listDef = numbering?.definitions?.[numId];
|
|
32193
32225
|
const abstractId = listDef?.elements?.find((item) => item.name === "w:abstractNumId")?.attributes?.["w:val"];
|
|
@@ -41261,7 +41293,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41261
41293
|
comments,
|
|
41262
41294
|
inlineDocumentFonts,
|
|
41263
41295
|
linkedStyles: getStyleDefinitions(docx),
|
|
41264
|
-
numbering: getNumberingDefinitions(docx)
|
|
41296
|
+
numbering: getNumberingDefinitions(docx, converter)
|
|
41265
41297
|
};
|
|
41266
41298
|
}
|
|
41267
41299
|
return null;
|
|
@@ -41660,8 +41692,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41660
41692
|
]);
|
|
41661
41693
|
return content2.filter((node2) => node2 && typeof node2.type === "string" && !INLINE_TYPES.has(node2.type));
|
|
41662
41694
|
}
|
|
41663
|
-
function getNumberingDefinitions(docx) {
|
|
41664
|
-
const cache2 = ensureNumberingCache(docx);
|
|
41695
|
+
function getNumberingDefinitions(docx, converter) {
|
|
41696
|
+
const cache2 = ensureNumberingCache(docx, converter);
|
|
41665
41697
|
const abstractDefinitions = {};
|
|
41666
41698
|
cache2.abstractById.forEach((value, key2) => {
|
|
41667
41699
|
const numericKey = Number(key2);
|
|
@@ -57462,10 +57494,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
57462
57494
|
type: getNodeType(extension.name, this.schema)
|
|
57463
57495
|
};
|
|
57464
57496
|
const addNodeView = getExtensionConfigField(extension, "addNodeView", context);
|
|
57465
|
-
if (!addNodeView) return
|
|
57497
|
+
if (!addNodeView) return null;
|
|
57498
|
+
const nodeViewFunction = addNodeView();
|
|
57499
|
+
if (!nodeViewFunction) return null;
|
|
57466
57500
|
const nodeview = (node2, _view, getPos, decorations) => {
|
|
57467
57501
|
const htmlAttributes = Attribute.getAttributesToRender(node2, extensionAttrs);
|
|
57468
|
-
return
|
|
57502
|
+
return nodeViewFunction({
|
|
57469
57503
|
editor,
|
|
57470
57504
|
node: node2,
|
|
57471
57505
|
getPos,
|
|
@@ -57475,7 +57509,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
57475
57509
|
});
|
|
57476
57510
|
};
|
|
57477
57511
|
return [extension.name, nodeview];
|
|
57478
|
-
});
|
|
57512
|
+
}).filter(Boolean);
|
|
57479
57513
|
return Object.fromEntries(entries);
|
|
57480
57514
|
}
|
|
57481
57515
|
};
|
|
@@ -61444,7 +61478,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61444
61478
|
{ default: remarkStringify2 },
|
|
61445
61479
|
{ default: remarkGfm2 }
|
|
61446
61480
|
] = await Promise.all([
|
|
61447
|
-
Promise.resolve().then(() =>
|
|
61481
|
+
Promise.resolve().then(() => indexCOCdMICZ),
|
|
61448
61482
|
Promise.resolve().then(() => indexDRCvimau),
|
|
61449
61483
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
61450
61484
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -66736,6 +66770,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
66736
66770
|
}
|
|
66737
66771
|
});
|
|
66738
66772
|
}
|
|
66773
|
+
const shouldSkipNodeView = (editor) => {
|
|
66774
|
+
return editor.options.isHeadless;
|
|
66775
|
+
};
|
|
66739
66776
|
const ListItem = Node$1.create({
|
|
66740
66777
|
name: "listItem",
|
|
66741
66778
|
content: "paragraph* block*",
|
|
@@ -66762,9 +66799,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
66762
66799
|
},
|
|
66763
66800
|
/**
|
|
66764
66801
|
* Important: The listItem node uses a custom node view.
|
|
66765
|
-
*
|
|
66802
|
+
* Skip node view in headless mode for performance.
|
|
66803
|
+
* @returns {import('@core/NodeView.js').NodeView|null}
|
|
66766
66804
|
*/
|
|
66767
66805
|
addNodeView() {
|
|
66806
|
+
if (shouldSkipNodeView(this.editor)) return null;
|
|
66768
66807
|
return ({ node: node2, editor, getPos, decorations }) => {
|
|
66769
66808
|
return new ListItemNodeView(node2, getPos, decorations, editor);
|
|
66770
66809
|
};
|
|
@@ -119960,7 +119999,7 @@ ${style2}
|
|
|
119960
119999
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
119961
120000
|
);
|
|
119962
120001
|
}
|
|
119963
|
-
const
|
|
120002
|
+
const indexCOCdMICZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
119964
120003
|
__proto__: null,
|
|
119965
120004
|
unified
|
|
119966
120005
|
}, Symbol.toStringTag, { value: "Module" }));
|