@harbour-enterprises/superdoc 0.25.0-next.3 → 0.25.0-next.4
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-DDL0V0l5.cjs → PdfViewer-BETK3Bs4.cjs} +1 -1
- package/dist/chunks/{PdfViewer-Y13XRanw.es.js → PdfViewer-D4F3H-Ay.es.js} +1 -1
- package/dist/chunks/{index-Bo5YCvD5.cjs → index-BHS2aLqo.cjs} +2 -2
- package/dist/chunks/{index-DKNVSdr6.es.js → index-D9KYAvvg.es.js} +2 -2
- package/dist/chunks/{super-editor.es-Ct2sXbNV.cjs → super-editor.es-BJzqCihw.cjs} +107 -116
- package/dist/chunks/{super-editor.es-CYtLh0Ob.es.js → super-editor.es-Beeng5kU.es.js} +107 -116
- 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-gSy6s2VK.js → converter-DOkexB95.js} +89 -72
- package/dist/super-editor/chunks/{docx-zipper-CceGxV02.js → docx-zipper-Ci5JbfjE.js} +1 -1
- package/dist/super-editor/chunks/{editor-CoX24lXQ.js → editor-DC9ZOqdt.js} +23 -58
- package/dist/super-editor/chunks/{toolbar-BTw9-jfX.js → toolbar-SPGEoEi0.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/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +11 -0
- package/dist/super-editor/super-editor/src/index.d.ts +8 -2
- package/dist/super-editor/super-editor.es.js +16 -12
- 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 +107 -116
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;UAEc,MAAM;;;;WACN,MAAM;;;;YACN,MAAM,GAAG,IAAI;;;;;;;;;cAKb,OAAO;;;;iBACP,MAAM;;;;eACN,MAAM;;;;sBACN,MAAM;;;;;;SAKN,MAAM;;;;UACN,MAAM;;;;WACN,IAAI,GAAG,IAAI,GAAG,IAAI;;;;WAClB,MAAM;;;;UACN,MAAM;;;;gBACN,OAAO;;;;WACP,OAAO,KAAK,EAAE,GAAG;;;;eACjB,OAAO,sBAAsB,EAAE,kBAAkB;;;;;;eAM5D;QAQqC,kBAAkB,GAR5C,CAAC,MAAM,EAAE;YAClB,UAAU,EAAE,MAAM,CAAC;YACnB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,UAAU,CAAC,EAAE,OAAO,CAAC;YACrB,OAAO,CAAC,EAAE,MAAS,IAAI,CAAC;YACxB,aAAa,CAAC,EAAE,MAAS,IAAI,CAAC;YAC9B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;YAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;SAC5B,KAAK,OAAO,GAAG,SAAS;KACzB;;;;SACA;QAAuB,MAAM,GAAlB,MAAM;QACM,QAAQ,GAApB,MAAM;KACjB;;;;;;;;;;;;gBAGA;QAA6B,WAAW;QACR,YAAY;QACb,mBAAmB,GAAvC,OAAO;KACpB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
|
-
import { T as TextSelection } from "./chunks/converter-
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
2
|
+
import { T as TextSelection } from "./chunks/converter-DOkexB95.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-DC9ZOqdt.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -32322,8 +32322,7 @@ const bookmarkEndNodeHandlerEntity = {
|
|
|
32322
32322
|
handlerName: "w:bookmarkEndTranslator",
|
|
32323
32323
|
handler: handleBookmarkEndNode
|
|
32324
32324
|
};
|
|
32325
|
-
const
|
|
32326
|
-
const SUPPORTED_REQUIRES = /* @__PURE__ */ new Set([
|
|
32325
|
+
const SUPPORTED_ALTERNATE_CONTENT_REQUIRES = /* @__PURE__ */ new Set([
|
|
32327
32326
|
"wps",
|
|
32328
32327
|
"wp14",
|
|
32329
32328
|
"w14",
|
|
@@ -32336,22 +32335,85 @@ const SUPPORTED_REQUIRES = /* @__PURE__ */ new Set([
|
|
|
32336
32335
|
"w16sdtfl",
|
|
32337
32336
|
"w16se"
|
|
32338
32337
|
]);
|
|
32338
|
+
const XML_NODE_NAME$1 = "mc:AlternateContent";
|
|
32339
|
+
const SD_NODE_NAME$1 = [];
|
|
32340
|
+
const validXmlAttributes$1 = [];
|
|
32341
|
+
function encode$1(params) {
|
|
32342
|
+
const { nodeListHandler } = params;
|
|
32343
|
+
const { node } = params.extraParams;
|
|
32344
|
+
if (!node || !node.type) {
|
|
32345
|
+
return null;
|
|
32346
|
+
}
|
|
32347
|
+
const { branch, elements } = selectAlternateContentElements(node);
|
|
32348
|
+
if (!elements) {
|
|
32349
|
+
return null;
|
|
32350
|
+
}
|
|
32351
|
+
return nodeListHandler.handler({
|
|
32352
|
+
...params,
|
|
32353
|
+
nodes: elements,
|
|
32354
|
+
path: buildPath(params.path, node, branch)
|
|
32355
|
+
});
|
|
32356
|
+
}
|
|
32357
|
+
function decode$1(params) {
|
|
32358
|
+
const { node } = params;
|
|
32359
|
+
const { drawingContent } = node.attrs;
|
|
32360
|
+
const drawing = {
|
|
32361
|
+
name: "w:drawing",
|
|
32362
|
+
elements: [...drawingContent ? [...drawingContent.elements || []] : []]
|
|
32363
|
+
};
|
|
32364
|
+
const choice = {
|
|
32365
|
+
name: "mc:Choice",
|
|
32366
|
+
attributes: { Requires: "wps" },
|
|
32367
|
+
elements: [drawing]
|
|
32368
|
+
};
|
|
32369
|
+
return {
|
|
32370
|
+
name: "mc:AlternateContent",
|
|
32371
|
+
elements: [choice]
|
|
32372
|
+
};
|
|
32373
|
+
}
|
|
32374
|
+
const config$1 = {
|
|
32375
|
+
xmlName: XML_NODE_NAME$1,
|
|
32376
|
+
sdNodeOrKeyName: SD_NODE_NAME$1,
|
|
32377
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
32378
|
+
encode: encode$1,
|
|
32379
|
+
decode: decode$1,
|
|
32380
|
+
attributes: validXmlAttributes$1
|
|
32381
|
+
};
|
|
32382
|
+
function selectAlternateContentElements(node) {
|
|
32383
|
+
if (!node?.elements?.length) {
|
|
32384
|
+
return { branch: null, elements: null };
|
|
32385
|
+
}
|
|
32386
|
+
const choices = node.elements.filter((el) => el?.name === "mc:Choice");
|
|
32387
|
+
const fallback = node.elements.find((el) => el?.name === "mc:Fallback");
|
|
32388
|
+
const supportedChoice = choices.find((choice) => {
|
|
32389
|
+
const requiresAttr = choice?.attributes?.Requires || choice?.attributes?.requires;
|
|
32390
|
+
if (!requiresAttr) return false;
|
|
32391
|
+
return requiresAttr.split(/\s+/).filter(Boolean).some((namespace) => SUPPORTED_ALTERNATE_CONTENT_REQUIRES.has(namespace));
|
|
32392
|
+
});
|
|
32393
|
+
const branch = supportedChoice || fallback || choices[0] || null;
|
|
32394
|
+
const selectedElements = branch?.elements;
|
|
32395
|
+
if (!selectedElements) {
|
|
32396
|
+
return { branch, elements: null };
|
|
32397
|
+
}
|
|
32398
|
+
return {
|
|
32399
|
+
branch,
|
|
32400
|
+
elements: carbonCopy(selectedElements)
|
|
32401
|
+
};
|
|
32402
|
+
}
|
|
32403
|
+
const translator$1 = NodeTranslator.from(config$1);
|
|
32404
|
+
function buildPath(existingPath = [], node, branch) {
|
|
32405
|
+
const path = [...existingPath];
|
|
32406
|
+
if (node) path.push(node);
|
|
32407
|
+
if (branch) path.push(branch);
|
|
32408
|
+
return path;
|
|
32409
|
+
}
|
|
32410
|
+
const ALTERNATE_CONTENT_NODE = "mc:AlternateContent";
|
|
32339
32411
|
const skipHandlerResponse = { nodes: [], consumed: 0 };
|
|
32340
32412
|
const isAlternateContentNode = (node) => node?.name === ALTERNATE_CONTENT_NODE;
|
|
32341
|
-
const isSupportedChoice = (choice) => {
|
|
32342
|
-
if (!choice?.attributes) return false;
|
|
32343
|
-
const requires = choice.attributes.Requires || choice.attributes.requires;
|
|
32344
|
-
if (!requires) return false;
|
|
32345
|
-
return requires.split(/\s+/).filter(Boolean).some((namespace) => SUPPORTED_REQUIRES.has(namespace));
|
|
32346
|
-
};
|
|
32347
32413
|
const resolveAlternateContentElements = (alternateContent) => {
|
|
32348
|
-
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
const supportedChoice = choices.find(isSupportedChoice);
|
|
32352
|
-
const selectedElements = supportedChoice?.elements || fallback?.elements || choices[0]?.elements;
|
|
32353
|
-
if (!selectedElements) return null;
|
|
32354
|
-
return carbonCopy(selectedElements);
|
|
32414
|
+
const { elements } = selectAlternateContentElements(alternateContent);
|
|
32415
|
+
if (!elements) return null;
|
|
32416
|
+
return elements;
|
|
32355
32417
|
};
|
|
32356
32418
|
const buildNodeWithoutAlternateContent = (node) => {
|
|
32357
32419
|
const { elements } = node || {};
|
|
@@ -32383,16 +32445,20 @@ const handleAlternateChoice = (params) => {
|
|
|
32383
32445
|
}
|
|
32384
32446
|
const [currentNode] = nodes;
|
|
32385
32447
|
if (isAlternateContentNode(currentNode)) {
|
|
32386
|
-
const
|
|
32387
|
-
|
|
32388
|
-
|
|
32389
|
-
}
|
|
32390
|
-
const
|
|
32448
|
+
const nodeForTranslator = currentNode?.type ? currentNode : {
|
|
32449
|
+
...currentNode,
|
|
32450
|
+
type: "element"
|
|
32451
|
+
};
|
|
32452
|
+
const translated = translator$1.encode({
|
|
32391
32453
|
...params,
|
|
32392
|
-
nodes:
|
|
32393
|
-
|
|
32454
|
+
nodes: [nodeForTranslator],
|
|
32455
|
+
extraParams: { ...params.extraParams || {}, node: nodeForTranslator }
|
|
32394
32456
|
});
|
|
32395
|
-
|
|
32457
|
+
if (!translated) {
|
|
32458
|
+
return skipHandlerResponse;
|
|
32459
|
+
}
|
|
32460
|
+
const nodesArray = Array.isArray(translated) ? translated : [translated];
|
|
32461
|
+
return { nodes: nodesArray, consumed: 1 };
|
|
32396
32462
|
}
|
|
32397
32463
|
const sanitizedNode = buildNodeWithoutAlternateContent(currentNode);
|
|
32398
32464
|
if (!sanitizedNode) {
|
|
@@ -33690,55 +33756,6 @@ function translateShapeTextbox(params) {
|
|
|
33690
33756
|
};
|
|
33691
33757
|
return textbox;
|
|
33692
33758
|
}
|
|
33693
|
-
const XML_NODE_NAME$1 = "mc:AlternateContent";
|
|
33694
|
-
const SD_NODE_NAME$1 = [];
|
|
33695
|
-
const validXmlAttributes$1 = [];
|
|
33696
|
-
function encode$1(params) {
|
|
33697
|
-
const { nodeListHandler } = params;
|
|
33698
|
-
const { node } = params.extraParams;
|
|
33699
|
-
if (!node || !node.type) {
|
|
33700
|
-
return null;
|
|
33701
|
-
}
|
|
33702
|
-
const allowedNamespaces = ["wps", "wp14", "w14", "w15"];
|
|
33703
|
-
const wpsNode = node.elements.find(
|
|
33704
|
-
(el) => el.name === "mc:Choice" && allowedNamespaces.includes(el.attributes["Requires"])
|
|
33705
|
-
);
|
|
33706
|
-
if (!wpsNode) {
|
|
33707
|
-
return null;
|
|
33708
|
-
}
|
|
33709
|
-
const contents = wpsNode.elements;
|
|
33710
|
-
return nodeListHandler.handler({
|
|
33711
|
-
...params,
|
|
33712
|
-
nodes: contents,
|
|
33713
|
-
path: [...params.path || [], wpsNode]
|
|
33714
|
-
});
|
|
33715
|
-
}
|
|
33716
|
-
function decode$1(params) {
|
|
33717
|
-
const { node } = params;
|
|
33718
|
-
const { drawingContent } = node.attrs;
|
|
33719
|
-
const drawing = {
|
|
33720
|
-
name: "w:drawing",
|
|
33721
|
-
elements: [...drawingContent ? [...drawingContent.elements || []] : []]
|
|
33722
|
-
};
|
|
33723
|
-
const choice = {
|
|
33724
|
-
name: "mc:Choice",
|
|
33725
|
-
attributes: { Requires: "wps" },
|
|
33726
|
-
elements: [drawing]
|
|
33727
|
-
};
|
|
33728
|
-
return {
|
|
33729
|
-
name: "mc:AlternateContent",
|
|
33730
|
-
elements: [choice]
|
|
33731
|
-
};
|
|
33732
|
-
}
|
|
33733
|
-
const config$1 = {
|
|
33734
|
-
xmlName: XML_NODE_NAME$1,
|
|
33735
|
-
sdNodeOrKeyName: SD_NODE_NAME$1,
|
|
33736
|
-
type: NodeTranslator.translatorTypes.NODE,
|
|
33737
|
-
encode: encode$1,
|
|
33738
|
-
decode: decode$1,
|
|
33739
|
-
attributes: validXmlAttributes$1
|
|
33740
|
-
};
|
|
33741
|
-
const translator$1 = NodeTranslator.from(config$1);
|
|
33742
33759
|
function translateContentBlock(params) {
|
|
33743
33760
|
const { node } = params;
|
|
33744
33761
|
const { vmlAttributes, horizontalRule } = node.attrs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-DOkexB95.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -9,12 +9,12 @@ 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 __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
|
-
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn,
|
|
12
|
+
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberigHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberigHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-DOkexB95.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-Ci5JbfjE.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -15271,9 +15271,6 @@ init_fn = function() {
|
|
|
15271
15271
|
this.emit("beforeCreate", { editor: this });
|
|
15272
15272
|
this.on("contentError", this.options.onContentError);
|
|
15273
15273
|
this.mount(this.options.element);
|
|
15274
|
-
if (!this.options.isHeadless) {
|
|
15275
|
-
__privateMethod(this, _Editor_instances, checkFonts_fn).call(this);
|
|
15276
|
-
}
|
|
15277
15274
|
this.on("create", this.options.onCreate);
|
|
15278
15275
|
this.on("update", this.options.onUpdate);
|
|
15279
15276
|
this.on("selectionUpdate", this.options.onSelectionUpdate);
|
|
@@ -15295,8 +15292,12 @@ init_fn = function() {
|
|
|
15295
15292
|
if (!this.options.isHeadless) {
|
|
15296
15293
|
this.initializeCollaborationData();
|
|
15297
15294
|
this.initDefaultStyles();
|
|
15295
|
+
__privateMethod(this, _Editor_instances, checkFonts_fn).call(this);
|
|
15298
15296
|
}
|
|
15299
|
-
|
|
15297
|
+
const shouldMigrateListsOnInit = Boolean(
|
|
15298
|
+
this.options.markdown || this.options.html || this.options.loadFromSchema || this.options.jsonOverride || this.options.mode === "html" || this.options.mode === "text"
|
|
15299
|
+
);
|
|
15300
|
+
if (shouldMigrateListsOnInit) {
|
|
15300
15301
|
this.migrateListsToV2();
|
|
15301
15302
|
}
|
|
15302
15303
|
this.setDocumentMode(this.options.documentMode);
|
|
@@ -15490,58 +15491,17 @@ checkFonts_fn = async function() {
|
|
|
15490
15491
|
if (this.options.isHeadless) {
|
|
15491
15492
|
return;
|
|
15492
15493
|
}
|
|
15493
|
-
const fontsUsedInDocument = this.converter.getDocumentFonts();
|
|
15494
|
-
if (!("queryLocalFonts" in window)) {
|
|
15495
|
-
console.warn("[SuperDoc] Could not get access to local fonts. Using fallback solution.");
|
|
15496
|
-
const unsupportedFonts = __privateMethod(this, _Editor_instances, determineUnsupportedFontsWithCanvas_fn).call(this, fontsUsedInDocument);
|
|
15497
|
-
this.emit("fonts-resolved", {
|
|
15498
|
-
documentFonts: fontsUsedInDocument,
|
|
15499
|
-
unsupportedFonts
|
|
15500
|
-
});
|
|
15501
|
-
return;
|
|
15502
|
-
}
|
|
15503
|
-
const localFontAccess = await navigator.permissions.query({ name: "local-fonts" });
|
|
15504
|
-
if (localFontAccess.state === "denied") {
|
|
15505
|
-
console.warn("[SuperDoc] Could not get access to local fonts. Using fallback solution.");
|
|
15506
|
-
const unsupportedFonts = __privateMethod(this, _Editor_instances, determineUnsupportedFontsWithCanvas_fn).call(this, fontsUsedInDocument);
|
|
15507
|
-
this.emit("fonts-resolved", {
|
|
15508
|
-
documentFonts: fontsUsedInDocument,
|
|
15509
|
-
unsupportedFonts
|
|
15510
|
-
});
|
|
15511
|
-
return;
|
|
15512
|
-
}
|
|
15513
15494
|
try {
|
|
15514
|
-
const
|
|
15515
|
-
const
|
|
15516
|
-
const unsupportedFonts = __privateMethod(this, _Editor_instances, determineUnsupportedFontsWithLocalFonts_fn).call(this, fontsUsedInDocument, uniqueLocalFonts);
|
|
15495
|
+
const fontsUsedInDocument = this.converter.getDocumentFonts();
|
|
15496
|
+
const unsupportedFonts = __privateMethod(this, _Editor_instances, determineUnsupportedFonts_fn).call(this, fontsUsedInDocument);
|
|
15517
15497
|
this.emit("fonts-resolved", {
|
|
15518
15498
|
documentFonts: fontsUsedInDocument,
|
|
15519
15499
|
unsupportedFonts
|
|
15520
15500
|
});
|
|
15521
15501
|
} catch {
|
|
15522
|
-
console.warn("[SuperDoc] Could not
|
|
15523
|
-
const unsupportedFonts = __privateMethod(this, _Editor_instances, determineUnsupportedFontsWithCanvas_fn).call(this, fontsUsedInDocument);
|
|
15524
|
-
this.emit("fonts-resolved", {
|
|
15525
|
-
documentFonts: fontsUsedInDocument,
|
|
15526
|
-
unsupportedFonts
|
|
15527
|
-
});
|
|
15502
|
+
console.warn("[SuperDoc] Could not determine document fonts and unsupported fonts");
|
|
15528
15503
|
}
|
|
15529
15504
|
};
|
|
15530
|
-
/**
|
|
15531
|
-
* Determines which fonts used in the document are not available locally nor imported.
|
|
15532
|
-
*
|
|
15533
|
-
* @param {string[]} fonts - Array of font family names used in the document.
|
|
15534
|
-
* @param {string[]} localFonts - Array of local font family names available on the system.
|
|
15535
|
-
* @returns {string[]} Array of font names that are unsupported.
|
|
15536
|
-
*/
|
|
15537
|
-
determineUnsupportedFontsWithLocalFonts_fn = function(fonts, localFonts) {
|
|
15538
|
-
const unsupportedFonts = fonts.filter((font) => {
|
|
15539
|
-
const isLocalFont = localFonts.includes(font);
|
|
15540
|
-
const isFontImported = this.fontsImported.includes(font);
|
|
15541
|
-
return !isLocalFont && !isFontImported;
|
|
15542
|
-
});
|
|
15543
|
-
return unsupportedFonts;
|
|
15544
|
-
};
|
|
15545
15505
|
/**
|
|
15546
15506
|
* Determines which fonts used in the document are not supported
|
|
15547
15507
|
* by attempting to render them on a canvas.
|
|
@@ -15551,7 +15511,7 @@ determineUnsupportedFontsWithLocalFonts_fn = function(fonts, localFonts) {
|
|
|
15551
15511
|
* @param {string[]} fonts - Array of font family names used in the document.
|
|
15552
15512
|
* @returns {string[]} Array of unsupported font family names.
|
|
15553
15513
|
*/
|
|
15554
|
-
|
|
15514
|
+
determineUnsupportedFonts_fn = function(fonts) {
|
|
15555
15515
|
const unsupportedFonts = fonts.filter((font) => {
|
|
15556
15516
|
const canRender = canRenderFont(font);
|
|
15557
15517
|
const isFontImported = this.fontsImported.includes(font);
|
|
@@ -15660,6 +15620,9 @@ onCollaborationReady_fn = function({ editor, ydoc }) {
|
|
|
15660
15620
|
if (this.options.collaborationIsReady) return;
|
|
15661
15621
|
console.debug("🔗 [super-editor] Collaboration ready");
|
|
15662
15622
|
__privateMethod(this, _Editor_instances, validateDocumentInit_fn).call(this);
|
|
15623
|
+
if (this.options.ydoc) {
|
|
15624
|
+
this.migrateListsToV2();
|
|
15625
|
+
}
|
|
15663
15626
|
this.options.onCollaborationReady({ editor, ydoc });
|
|
15664
15627
|
this.options.collaborationIsReady = true;
|
|
15665
15628
|
this.options.initialState = this.state;
|
|
@@ -35059,6 +35022,7 @@ const getStarterExtensions = () => {
|
|
|
35059
35022
|
export {
|
|
35060
35023
|
Attribute as A,
|
|
35061
35024
|
CommentsPluginKey as C,
|
|
35025
|
+
DecorationSet as D,
|
|
35062
35026
|
Editor as E,
|
|
35063
35027
|
Mark as M,
|
|
35064
35028
|
Node$1 as N,
|
|
@@ -35079,14 +35043,15 @@ export {
|
|
|
35079
35043
|
collectTrackedChangesForContext as k,
|
|
35080
35044
|
getStarterExtensions as l,
|
|
35081
35045
|
getRichTextExtensions as m,
|
|
35082
|
-
|
|
35083
|
-
|
|
35084
|
-
index as p,
|
|
35085
|
-
|
|
35046
|
+
Decoration as n,
|
|
35047
|
+
Extension as o,
|
|
35048
|
+
index$1 as p,
|
|
35049
|
+
index as q,
|
|
35086
35050
|
replaceSelectionWithImagePlaceholder as r,
|
|
35087
35051
|
shouldBypassContextMenu as s,
|
|
35088
|
-
|
|
35052
|
+
AnnotatorHelpers as t,
|
|
35089
35053
|
useHighContrastMode as u,
|
|
35090
|
-
|
|
35054
|
+
SectionHelpers as v,
|
|
35055
|
+
getAllowedImageDimensions as w,
|
|
35091
35056
|
yUndoPluginKey as y
|
|
35092
35057
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-DOkexB95.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DC9ZOqdt.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-DC9ZOqdt.js";
|
|
2
|
+
import "./chunks/converter-DOkexB95.js";
|
|
3
|
+
import "./chunks/docx-zipper-Ci5JbfjE.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selects the best-fit mc:AlternateContent branch, mirroring the legacy importer logic.
|
|
3
|
+
* @param {import('@translator').SCExtraParams['node']} node
|
|
4
|
+
* @returns {{ branch: import('@translator').XmlNode|null, elements: import('@translator').XmlNode[]|null }}
|
|
5
|
+
*/
|
|
6
|
+
export function selectAlternateContentElements(node: import("@translator").SCExtraParams["node"]): {
|
|
7
|
+
branch: import("@translator").XmlNode | null;
|
|
8
|
+
elements: import("@translator").XmlNode[] | null;
|
|
9
|
+
};
|
|
10
|
+
/** @type {Set<string>} */
|
|
11
|
+
export const SUPPORTED_ALTERNATE_CONTENT_REQUIRES: Set<string>;
|
|
1
12
|
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
13
|
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
14
|
/**
|
|
@@ -19,14 +19,20 @@ export namespace Extensions {
|
|
|
19
19
|
export { Node };
|
|
20
20
|
export { Attribute };
|
|
21
21
|
export { Extension };
|
|
22
|
-
export { Plugin };
|
|
23
22
|
export { Mark };
|
|
23
|
+
export { Plugin };
|
|
24
|
+
export { PluginKey };
|
|
25
|
+
export { Decoration };
|
|
26
|
+
export { DecorationSet };
|
|
24
27
|
}
|
|
25
28
|
import { TrackChangesBasePluginKey } from './extensions/track-changes/plugins/index.js';
|
|
26
29
|
import { CommentsPluginKey } from './extensions/comment/comments-plugin.js';
|
|
27
30
|
import { Node } from '@core/index.js';
|
|
28
31
|
import { Attribute } from '@core/index.js';
|
|
29
32
|
import { Extension } from '@core/Extension.js';
|
|
30
|
-
import { Plugin } from 'prosemirror-state';
|
|
31
33
|
import { Mark } from '@core/Mark.js';
|
|
34
|
+
import { Plugin } from 'prosemirror-state';
|
|
35
|
+
import { PluginKey } from 'prosemirror-state';
|
|
36
|
+
import { Decoration } from 'prosemirror-view';
|
|
37
|
+
import { DecorationSet } from 'prosemirror-view';
|
|
32
38
|
export { SuperConverter, DocxZipper, SuperToolbar, Editor, SuperEditor, SuperInput, BasicUpload, Toolbar, AIWriter, SlashMenu, helpers, fieldAnnotationHelpers, trackChangesHelpers, AnnotatorHelpers, SectionHelpers, getMarksFromSelection, getActiveFormatting, getStarterExtensions, getRichTextExtensions, createZip, getAllowedImageDimensions, registeredHandlers, TrackChangesBasePluginKey, CommentsPluginKey };
|
|
@@ -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, H as findParentNode, 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, 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 getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, M as Mark,
|
|
15
|
-
import {
|
|
12
|
+
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, 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-DOkexB95.js";
|
|
13
|
+
import { c1, a5, i, a2 } from "./chunks/converter-DOkexB95.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, D as DecorationSet, n as Decoration, M as Mark, o as Extension, A as Attribute, N as Node } from "./chunks/editor-DC9ZOqdt.js";
|
|
15
|
+
import { t, C, v, T, p, w, q } from "./chunks/editor-DC9ZOqdt.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-SPGEoEi0.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-Ci5JbfjE.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -5179,18 +5179,22 @@ const Extensions = {
|
|
|
5179
5179
|
Node,
|
|
5180
5180
|
Attribute,
|
|
5181
5181
|
Extension,
|
|
5182
|
+
Mark,
|
|
5183
|
+
//
|
|
5182
5184
|
Plugin,
|
|
5183
|
-
|
|
5185
|
+
PluginKey,
|
|
5186
|
+
Decoration,
|
|
5187
|
+
DecorationSet
|
|
5184
5188
|
};
|
|
5185
5189
|
export {
|
|
5186
5190
|
AIWriter,
|
|
5187
|
-
|
|
5191
|
+
t as AnnotatorHelpers,
|
|
5188
5192
|
c1 as BasicUpload,
|
|
5189
5193
|
C as CommentsPluginKey,
|
|
5190
5194
|
D as DocxZipper,
|
|
5191
5195
|
Editor,
|
|
5192
5196
|
Extensions,
|
|
5193
|
-
|
|
5197
|
+
v as SectionHelpers,
|
|
5194
5198
|
_sfc_main$4 as SlashMenu,
|
|
5195
5199
|
a5 as SuperConverter,
|
|
5196
5200
|
SuperEditor,
|
|
@@ -5199,13 +5203,13 @@ export {
|
|
|
5199
5203
|
Toolbar,
|
|
5200
5204
|
T as TrackChangesBasePluginKey,
|
|
5201
5205
|
createZip,
|
|
5202
|
-
|
|
5206
|
+
p as fieldAnnotationHelpers,
|
|
5203
5207
|
getActiveFormatting,
|
|
5204
|
-
|
|
5208
|
+
w as getAllowedImageDimensions,
|
|
5205
5209
|
i as getMarksFromSelection,
|
|
5206
5210
|
getRichTextExtensions,
|
|
5207
5211
|
getStarterExtensions,
|
|
5208
5212
|
a2 as helpers,
|
|
5209
5213
|
registeredHandlers,
|
|
5210
|
-
|
|
5214
|
+
q as trackChangesHelpers
|
|
5211
5215
|
};
|
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-BJzqCihw.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-Beeng5kU.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-BJzqCihw.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-BHS2aLqo.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-Beeng5kU.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-D9KYAvvg.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|