@harbour-enterprises/superdoc 0.17.1 → 0.17.3
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-B8JzHLrU.cjs → PdfViewer-B5bEH-lD.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CdQaViwe.es.js → PdfViewer-P3OSs9iX.es.js} +1 -1
- package/dist/chunks/{index-B1qS_V43.es.js → index-CHQbeTTv.es.js} +3 -3
- package/dist/chunks/{index-CVp87_VW.cjs → index-LZjTD5KG.cjs} +3 -3
- package/dist/chunks/{super-editor.es-Cx4I-VrC.es.js → super-editor.es-C-nn3bMY.es.js} +38 -7
- package/dist/chunks/{super-editor.es-CHzSx5FH.cjs → super-editor.es-D8CRzfwC.cjs} +38 -7
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B_IuCnqV.js → converter-Bcg2-svq.js} +37 -6
- package/dist/super-editor/chunks/{docx-zipper-C_Qak38x.js → docx-zipper-X-fYIxPZ.js} +1 -1
- package/dist/super-editor/chunks/{editor-DrBQYZYl.js → editor-D4fBb3em.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-CnAXgAhs.js → toolbar-C6KdVRS2.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/src/core/super-converter/v2/importer/docxImporter.d.ts +15 -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 +39 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-DWle4Cai.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-LZjTD5KG.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-CXxsqYcP.es.js";
|
|
2
|
-
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-
|
|
2
|
+
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-CHQbeTTv.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-
|
|
1
|
+
import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-C-nn3bMY.es.js";
|
|
2
2
|
import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-CXxsqYcP.es.js";
|
|
3
3
|
import { B as Buffer$2 } from "./jszip-B8KIZSNe.es.js";
|
|
4
4
|
import { B as BlankDOCX } from "./blank-docx-iwdyG9RH.es.js";
|
|
@@ -17248,7 +17248,7 @@ const _sfc_main = {
|
|
|
17248
17248
|
__name: "SuperDoc",
|
|
17249
17249
|
emits: ["selection-update"],
|
|
17250
17250
|
setup(__props, { emit: __emit }) {
|
|
17251
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17251
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-P3OSs9iX.es.js"));
|
|
17252
17252
|
const superdocStore = useSuperdocStore();
|
|
17253
17253
|
const commentsStore = useCommentsStore();
|
|
17254
17254
|
const {
|
|
@@ -17892,7 +17892,7 @@ class SuperDoc extends EventEmitter {
|
|
|
17892
17892
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17893
17893
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17894
17894
|
this.colorIndex = 0;
|
|
17895
|
-
this.version = "0.17.
|
|
17895
|
+
this.version = "0.17.2";
|
|
17896
17896
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17897
17897
|
this.superdocId = config.superdocId || v4();
|
|
17898
17898
|
this.colors = this.config.colors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-D8CRzfwC.cjs");
|
|
3
3
|
const vue = require("./vue-DWle4Cai.cjs");
|
|
4
4
|
const jszip = require("./jszip-b7l8QkfH.cjs");
|
|
5
5
|
const blankDocx = require("./blank-docx-CPqX9RF5.cjs");
|
|
@@ -17265,7 +17265,7 @@ const _sfc_main = {
|
|
|
17265
17265
|
__name: "SuperDoc",
|
|
17266
17266
|
emits: ["selection-update"],
|
|
17267
17267
|
setup(__props, { emit: __emit }) {
|
|
17268
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17268
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-B5bEH-lD.cjs")));
|
|
17269
17269
|
const superdocStore = useSuperdocStore();
|
|
17270
17270
|
const commentsStore = useCommentsStore();
|
|
17271
17271
|
const {
|
|
@@ -17909,7 +17909,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
17909
17909
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17910
17910
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17911
17911
|
this.colorIndex = 0;
|
|
17912
|
-
this.version = "0.17.
|
|
17912
|
+
this.version = "0.17.2";
|
|
17913
17913
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17914
17914
|
this.superdocId = config.superdocId || uuid.v4();
|
|
17915
17915
|
this.colors = this.config.colors;
|
|
@@ -22982,17 +22982,22 @@ const changeNumIdSameAbstract = (numId, level, listType, editor) => {
|
|
|
22982
22982
|
const { abstract } = ListHelpers.getListDefinitionDetails({ numId, level, listType, editor });
|
|
22983
22983
|
const numbering = editor.converter.numbering;
|
|
22984
22984
|
const newNumbering = { ...numbering };
|
|
22985
|
+
if (!abstract) {
|
|
22986
|
+
ListHelpers.generateNewListDefinition({ numId: newId, listType, editor });
|
|
22987
|
+
return newId;
|
|
22988
|
+
}
|
|
22985
22989
|
const newAbstractId = getNewListId(editor, "abstracts");
|
|
22986
22990
|
const newAbstractDef = {
|
|
22987
22991
|
...abstract,
|
|
22988
22992
|
attributes: {
|
|
22989
|
-
...abstract.attributes,
|
|
22993
|
+
...abstract.attributes || {},
|
|
22990
22994
|
"w:abstractNumId": String(newAbstractId)
|
|
22991
22995
|
}
|
|
22992
22996
|
};
|
|
22993
22997
|
newNumbering.abstracts[newAbstractId] = newAbstractDef;
|
|
22994
22998
|
const newNumDef = getBasicNumIdTag(newId, newAbstractId);
|
|
22995
22999
|
newNumbering.definitions[newId] = newNumDef;
|
|
23000
|
+
editor.converter.numbering = newNumbering;
|
|
22996
23001
|
return newId;
|
|
22997
23002
|
};
|
|
22998
23003
|
const getBasicNumIdTag = (numId, abstractId) => {
|
|
@@ -29602,7 +29607,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
29602
29607
|
const content = pruneIgnoredNodes(contentElements);
|
|
29603
29608
|
const comments = importCommentData({ docx, converter, editor });
|
|
29604
29609
|
const lists = {};
|
|
29605
|
-
|
|
29610
|
+
let parsedContent = nodeListHandler2.handler({
|
|
29606
29611
|
nodes: content,
|
|
29607
29612
|
nodeListHandler: nodeListHandler2,
|
|
29608
29613
|
docx,
|
|
@@ -29610,6 +29615,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
29610
29615
|
editor,
|
|
29611
29616
|
lists
|
|
29612
29617
|
});
|
|
29618
|
+
parsedContent = filterOutRootInlineNodes(parsedContent);
|
|
29613
29619
|
const result = {
|
|
29614
29620
|
type: "doc",
|
|
29615
29621
|
content: parsedContent,
|
|
@@ -29885,7 +29891,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29885
29891
|
let sectionType = sectPrHeader?.attributes["w:type"];
|
|
29886
29892
|
if (converter.headerIds[sectionType]) sectionType = null;
|
|
29887
29893
|
const nodeListHandler2 = defaultNodeListHandler();
|
|
29888
|
-
|
|
29894
|
+
let schema = nodeListHandler2.handler({
|
|
29889
29895
|
nodes: referenceFile.elements[0].elements,
|
|
29890
29896
|
nodeListHandler: nodeListHandler2,
|
|
29891
29897
|
docx,
|
|
@@ -29893,6 +29899,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29893
29899
|
editor,
|
|
29894
29900
|
filename: currentFileName
|
|
29895
29901
|
});
|
|
29902
|
+
schema = filterOutRootInlineNodes(schema);
|
|
29896
29903
|
if (!converter.headerIds.ids) converter.headerIds.ids = [];
|
|
29897
29904
|
converter.headerIds.ids.push(rId);
|
|
29898
29905
|
converter.headers[rId] = { type: "doc", content: [...schema] };
|
|
@@ -29907,7 +29914,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29907
29914
|
);
|
|
29908
29915
|
const sectionType = sectPrFooter?.attributes["w:type"];
|
|
29909
29916
|
const nodeListHandler2 = defaultNodeListHandler();
|
|
29910
|
-
|
|
29917
|
+
let schema = nodeListHandler2.handler({
|
|
29911
29918
|
nodes: referenceFile.elements[0].elements,
|
|
29912
29919
|
nodeListHandler: nodeListHandler2,
|
|
29913
29920
|
docx,
|
|
@@ -29915,6 +29922,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29915
29922
|
editor,
|
|
29916
29923
|
filename: currentFileName
|
|
29917
29924
|
});
|
|
29925
|
+
schema = filterOutRootInlineNodes(schema);
|
|
29918
29926
|
if (!converter.footerIds.ids) converter.footerIds.ids = [];
|
|
29919
29927
|
converter.footerIds.ids.push(rId);
|
|
29920
29928
|
converter.footers[rId] = { type: "doc", content: [...schema] };
|
|
@@ -29942,6 +29950,29 @@ const getHeaderFooterSectionData = (sectionData, docx) => {
|
|
|
29942
29950
|
currentFileName
|
|
29943
29951
|
};
|
|
29944
29952
|
};
|
|
29953
|
+
function filterOutRootInlineNodes(content = []) {
|
|
29954
|
+
if (!Array.isArray(content) || content.length === 0) return content;
|
|
29955
|
+
const INLINE_TYPES = /* @__PURE__ */ new Set([
|
|
29956
|
+
"text",
|
|
29957
|
+
"bookmarkStart",
|
|
29958
|
+
"lineBreak",
|
|
29959
|
+
"hardBreak",
|
|
29960
|
+
"pageNumber",
|
|
29961
|
+
"totalPageCount",
|
|
29962
|
+
"runItem",
|
|
29963
|
+
"image",
|
|
29964
|
+
"tab",
|
|
29965
|
+
"fieldAnnotation",
|
|
29966
|
+
"mention",
|
|
29967
|
+
"contentBlock",
|
|
29968
|
+
"aiLoaderNode",
|
|
29969
|
+
"commentRangeStart",
|
|
29970
|
+
"commentRangeEnd",
|
|
29971
|
+
"commentReference",
|
|
29972
|
+
"structuredContent"
|
|
29973
|
+
]);
|
|
29974
|
+
return content.filter((node2) => node2 && typeof node2.type === "string" && !INLINE_TYPES.has(node2.type));
|
|
29975
|
+
}
|
|
29945
29976
|
function getNumberingDefinitions(docx) {
|
|
29946
29977
|
let numbering = docx["word/numbering.xml"];
|
|
29947
29978
|
if (!numbering || !numbering.elements?.length || !numbering.elements[0].elements?.length) numbering = baseNumbering;
|
|
@@ -30168,7 +30199,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
30168
30199
|
return;
|
|
30169
30200
|
}
|
|
30170
30201
|
}
|
|
30171
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.17.
|
|
30202
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.17.2") {
|
|
30172
30203
|
const customLocation = "docProps/custom.xml";
|
|
30173
30204
|
if (!docx[customLocation]) {
|
|
30174
30205
|
docx[customLocation] = generateCustomXml();
|
|
@@ -30650,7 +30681,7 @@ function storeSuperdocVersion(docx) {
|
|
|
30650
30681
|
function generateCustomXml() {
|
|
30651
30682
|
return DEFAULT_CUSTOM_XML;
|
|
30652
30683
|
}
|
|
30653
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.17.
|
|
30684
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.17.2") {
|
|
30654
30685
|
return {
|
|
30655
30686
|
type: "element",
|
|
30656
30687
|
name: "property",
|
|
@@ -47510,7 +47541,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
47510
47541
|
* @returns {Object | void} Migration results
|
|
47511
47542
|
*/
|
|
47512
47543
|
processCollaborationMigrations() {
|
|
47513
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.17.
|
|
47544
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.17.2");
|
|
47514
47545
|
if (!this.options.ydoc) return;
|
|
47515
47546
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
47516
47547
|
let docVersion = metaMap.get("version");
|
|
@@ -22999,17 +22999,22 @@ const changeNumIdSameAbstract = (numId, level, listType, editor) => {
|
|
|
22999
22999
|
const { abstract } = ListHelpers.getListDefinitionDetails({ numId, level, listType, editor });
|
|
23000
23000
|
const numbering = editor.converter.numbering;
|
|
23001
23001
|
const newNumbering = { ...numbering };
|
|
23002
|
+
if (!abstract) {
|
|
23003
|
+
ListHelpers.generateNewListDefinition({ numId: newId, listType, editor });
|
|
23004
|
+
return newId;
|
|
23005
|
+
}
|
|
23002
23006
|
const newAbstractId = getNewListId(editor, "abstracts");
|
|
23003
23007
|
const newAbstractDef = {
|
|
23004
23008
|
...abstract,
|
|
23005
23009
|
attributes: {
|
|
23006
|
-
...abstract.attributes,
|
|
23010
|
+
...abstract.attributes || {},
|
|
23007
23011
|
"w:abstractNumId": String(newAbstractId)
|
|
23008
23012
|
}
|
|
23009
23013
|
};
|
|
23010
23014
|
newNumbering.abstracts[newAbstractId] = newAbstractDef;
|
|
23011
23015
|
const newNumDef = getBasicNumIdTag(newId, newAbstractId);
|
|
23012
23016
|
newNumbering.definitions[newId] = newNumDef;
|
|
23017
|
+
editor.converter.numbering = newNumbering;
|
|
23013
23018
|
return newId;
|
|
23014
23019
|
};
|
|
23015
23020
|
const getBasicNumIdTag = (numId, abstractId) => {
|
|
@@ -29619,7 +29624,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
29619
29624
|
const content = pruneIgnoredNodes(contentElements);
|
|
29620
29625
|
const comments = importCommentData({ docx, converter, editor });
|
|
29621
29626
|
const lists = {};
|
|
29622
|
-
|
|
29627
|
+
let parsedContent = nodeListHandler2.handler({
|
|
29623
29628
|
nodes: content,
|
|
29624
29629
|
nodeListHandler: nodeListHandler2,
|
|
29625
29630
|
docx,
|
|
@@ -29627,6 +29632,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
29627
29632
|
editor,
|
|
29628
29633
|
lists
|
|
29629
29634
|
});
|
|
29635
|
+
parsedContent = filterOutRootInlineNodes(parsedContent);
|
|
29630
29636
|
const result = {
|
|
29631
29637
|
type: "doc",
|
|
29632
29638
|
content: parsedContent,
|
|
@@ -29902,7 +29908,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29902
29908
|
let sectionType = sectPrHeader?.attributes["w:type"];
|
|
29903
29909
|
if (converter.headerIds[sectionType]) sectionType = null;
|
|
29904
29910
|
const nodeListHandler2 = defaultNodeListHandler();
|
|
29905
|
-
|
|
29911
|
+
let schema = nodeListHandler2.handler({
|
|
29906
29912
|
nodes: referenceFile.elements[0].elements,
|
|
29907
29913
|
nodeListHandler: nodeListHandler2,
|
|
29908
29914
|
docx,
|
|
@@ -29910,6 +29916,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29910
29916
|
editor,
|
|
29911
29917
|
filename: currentFileName
|
|
29912
29918
|
});
|
|
29919
|
+
schema = filterOutRootInlineNodes(schema);
|
|
29913
29920
|
if (!converter.headerIds.ids) converter.headerIds.ids = [];
|
|
29914
29921
|
converter.headerIds.ids.push(rId);
|
|
29915
29922
|
converter.headers[rId] = { type: "doc", content: [...schema] };
|
|
@@ -29924,7 +29931,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29924
29931
|
);
|
|
29925
29932
|
const sectionType = sectPrFooter?.attributes["w:type"];
|
|
29926
29933
|
const nodeListHandler2 = defaultNodeListHandler();
|
|
29927
|
-
|
|
29934
|
+
let schema = nodeListHandler2.handler({
|
|
29928
29935
|
nodes: referenceFile.elements[0].elements,
|
|
29929
29936
|
nodeListHandler: nodeListHandler2,
|
|
29930
29937
|
docx,
|
|
@@ -29932,6 +29939,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29932
29939
|
editor,
|
|
29933
29940
|
filename: currentFileName
|
|
29934
29941
|
});
|
|
29942
|
+
schema = filterOutRootInlineNodes(schema);
|
|
29935
29943
|
if (!converter.footerIds.ids) converter.footerIds.ids = [];
|
|
29936
29944
|
converter.footerIds.ids.push(rId);
|
|
29937
29945
|
converter.footers[rId] = { type: "doc", content: [...schema] };
|
|
@@ -29959,6 +29967,29 @@ const getHeaderFooterSectionData = (sectionData, docx) => {
|
|
|
29959
29967
|
currentFileName
|
|
29960
29968
|
};
|
|
29961
29969
|
};
|
|
29970
|
+
function filterOutRootInlineNodes(content = []) {
|
|
29971
|
+
if (!Array.isArray(content) || content.length === 0) return content;
|
|
29972
|
+
const INLINE_TYPES = /* @__PURE__ */ new Set([
|
|
29973
|
+
"text",
|
|
29974
|
+
"bookmarkStart",
|
|
29975
|
+
"lineBreak",
|
|
29976
|
+
"hardBreak",
|
|
29977
|
+
"pageNumber",
|
|
29978
|
+
"totalPageCount",
|
|
29979
|
+
"runItem",
|
|
29980
|
+
"image",
|
|
29981
|
+
"tab",
|
|
29982
|
+
"fieldAnnotation",
|
|
29983
|
+
"mention",
|
|
29984
|
+
"contentBlock",
|
|
29985
|
+
"aiLoaderNode",
|
|
29986
|
+
"commentRangeStart",
|
|
29987
|
+
"commentRangeEnd",
|
|
29988
|
+
"commentReference",
|
|
29989
|
+
"structuredContent"
|
|
29990
|
+
]);
|
|
29991
|
+
return content.filter((node2) => node2 && typeof node2.type === "string" && !INLINE_TYPES.has(node2.type));
|
|
29992
|
+
}
|
|
29962
29993
|
function getNumberingDefinitions(docx) {
|
|
29963
29994
|
let numbering = docx["word/numbering.xml"];
|
|
29964
29995
|
if (!numbering || !numbering.elements?.length || !numbering.elements[0].elements?.length) numbering = baseNumbering;
|
|
@@ -30185,7 +30216,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
30185
30216
|
return;
|
|
30186
30217
|
}
|
|
30187
30218
|
}
|
|
30188
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.17.
|
|
30219
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.17.2") {
|
|
30189
30220
|
const customLocation = "docProps/custom.xml";
|
|
30190
30221
|
if (!docx[customLocation]) {
|
|
30191
30222
|
docx[customLocation] = generateCustomXml();
|
|
@@ -30667,7 +30698,7 @@ function storeSuperdocVersion(docx) {
|
|
|
30667
30698
|
function generateCustomXml() {
|
|
30668
30699
|
return DEFAULT_CUSTOM_XML;
|
|
30669
30700
|
}
|
|
30670
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.17.
|
|
30701
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.17.2") {
|
|
30671
30702
|
return {
|
|
30672
30703
|
type: "element",
|
|
30673
30704
|
name: "property",
|
|
@@ -47527,7 +47558,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
47527
47558
|
* @returns {Object | void} Migration results
|
|
47528
47559
|
*/
|
|
47529
47560
|
processCollaborationMigrations() {
|
|
47530
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.17.
|
|
47561
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.17.2");
|
|
47531
47562
|
if (!this.options.ydoc) return;
|
|
47532
47563
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
47533
47564
|
let docVersion = metaMap.get("version");
|
|
@@ -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-Bcg2-svq.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-D4fBb3em.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 = {}) {
|
|
@@ -22980,17 +22980,22 @@ const changeNumIdSameAbstract = (numId, level, listType, editor) => {
|
|
|
22980
22980
|
const { abstract } = ListHelpers.getListDefinitionDetails({ numId, level, listType, editor });
|
|
22981
22981
|
const numbering = editor.converter.numbering;
|
|
22982
22982
|
const newNumbering = { ...numbering };
|
|
22983
|
+
if (!abstract) {
|
|
22984
|
+
ListHelpers.generateNewListDefinition({ numId: newId, listType, editor });
|
|
22985
|
+
return newId;
|
|
22986
|
+
}
|
|
22983
22987
|
const newAbstractId = getNewListId(editor, "abstracts");
|
|
22984
22988
|
const newAbstractDef = {
|
|
22985
22989
|
...abstract,
|
|
22986
22990
|
attributes: {
|
|
22987
|
-
...abstract.attributes,
|
|
22991
|
+
...abstract.attributes || {},
|
|
22988
22992
|
"w:abstractNumId": String(newAbstractId)
|
|
22989
22993
|
}
|
|
22990
22994
|
};
|
|
22991
22995
|
newNumbering.abstracts[newAbstractId] = newAbstractDef;
|
|
22992
22996
|
const newNumDef = getBasicNumIdTag(newId, newAbstractId);
|
|
22993
22997
|
newNumbering.definitions[newId] = newNumDef;
|
|
22998
|
+
editor.converter.numbering = newNumbering;
|
|
22994
22999
|
return newId;
|
|
22995
23000
|
};
|
|
22996
23001
|
const getBasicNumIdTag = (numId, abstractId) => {
|
|
@@ -29600,7 +29605,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
29600
29605
|
const content = pruneIgnoredNodes(contentElements);
|
|
29601
29606
|
const comments = importCommentData({ docx, converter, editor });
|
|
29602
29607
|
const lists = {};
|
|
29603
|
-
|
|
29608
|
+
let parsedContent = nodeListHandler2.handler({
|
|
29604
29609
|
nodes: content,
|
|
29605
29610
|
nodeListHandler: nodeListHandler2,
|
|
29606
29611
|
docx,
|
|
@@ -29608,6 +29613,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
29608
29613
|
editor,
|
|
29609
29614
|
lists
|
|
29610
29615
|
});
|
|
29616
|
+
parsedContent = filterOutRootInlineNodes(parsedContent);
|
|
29611
29617
|
const result = {
|
|
29612
29618
|
type: "doc",
|
|
29613
29619
|
content: parsedContent,
|
|
@@ -29883,7 +29889,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29883
29889
|
let sectionType = sectPrHeader?.attributes["w:type"];
|
|
29884
29890
|
if (converter.headerIds[sectionType]) sectionType = null;
|
|
29885
29891
|
const nodeListHandler2 = defaultNodeListHandler();
|
|
29886
|
-
|
|
29892
|
+
let schema = nodeListHandler2.handler({
|
|
29887
29893
|
nodes: referenceFile.elements[0].elements,
|
|
29888
29894
|
nodeListHandler: nodeListHandler2,
|
|
29889
29895
|
docx,
|
|
@@ -29891,6 +29897,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29891
29897
|
editor,
|
|
29892
29898
|
filename: currentFileName
|
|
29893
29899
|
});
|
|
29900
|
+
schema = filterOutRootInlineNodes(schema);
|
|
29894
29901
|
if (!converter.headerIds.ids) converter.headerIds.ids = [];
|
|
29895
29902
|
converter.headerIds.ids.push(rId);
|
|
29896
29903
|
converter.headers[rId] = { type: "doc", content: [...schema] };
|
|
@@ -29905,7 +29912,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29905
29912
|
);
|
|
29906
29913
|
const sectionType = sectPrFooter?.attributes["w:type"];
|
|
29907
29914
|
const nodeListHandler2 = defaultNodeListHandler();
|
|
29908
|
-
|
|
29915
|
+
let schema = nodeListHandler2.handler({
|
|
29909
29916
|
nodes: referenceFile.elements[0].elements,
|
|
29910
29917
|
nodeListHandler: nodeListHandler2,
|
|
29911
29918
|
docx,
|
|
@@ -29913,6 +29920,7 @@ const importHeadersFooters = (docx, converter, mainEditor) => {
|
|
|
29913
29920
|
editor,
|
|
29914
29921
|
filename: currentFileName
|
|
29915
29922
|
});
|
|
29923
|
+
schema = filterOutRootInlineNodes(schema);
|
|
29916
29924
|
if (!converter.footerIds.ids) converter.footerIds.ids = [];
|
|
29917
29925
|
converter.footerIds.ids.push(rId);
|
|
29918
29926
|
converter.footers[rId] = { type: "doc", content: [...schema] };
|
|
@@ -29940,6 +29948,29 @@ const getHeaderFooterSectionData = (sectionData, docx) => {
|
|
|
29940
29948
|
currentFileName
|
|
29941
29949
|
};
|
|
29942
29950
|
};
|
|
29951
|
+
function filterOutRootInlineNodes(content = []) {
|
|
29952
|
+
if (!Array.isArray(content) || content.length === 0) return content;
|
|
29953
|
+
const INLINE_TYPES = /* @__PURE__ */ new Set([
|
|
29954
|
+
"text",
|
|
29955
|
+
"bookmarkStart",
|
|
29956
|
+
"lineBreak",
|
|
29957
|
+
"hardBreak",
|
|
29958
|
+
"pageNumber",
|
|
29959
|
+
"totalPageCount",
|
|
29960
|
+
"runItem",
|
|
29961
|
+
"image",
|
|
29962
|
+
"tab",
|
|
29963
|
+
"fieldAnnotation",
|
|
29964
|
+
"mention",
|
|
29965
|
+
"contentBlock",
|
|
29966
|
+
"aiLoaderNode",
|
|
29967
|
+
"commentRangeStart",
|
|
29968
|
+
"commentRangeEnd",
|
|
29969
|
+
"commentReference",
|
|
29970
|
+
"structuredContent"
|
|
29971
|
+
]);
|
|
29972
|
+
return content.filter((node2) => node2 && typeof node2.type === "string" && !INLINE_TYPES.has(node2.type));
|
|
29973
|
+
}
|
|
29943
29974
|
function getNumberingDefinitions(docx) {
|
|
29944
29975
|
let numbering = docx["word/numbering.xml"];
|
|
29945
29976
|
if (!numbering || !numbering.elements?.length || !numbering.elements[0].elements?.length) numbering = baseNumbering;
|
|
@@ -30166,7 +30197,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
30166
30197
|
return;
|
|
30167
30198
|
}
|
|
30168
30199
|
}
|
|
30169
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.17.
|
|
30200
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.17.2") {
|
|
30170
30201
|
const customLocation = "docProps/custom.xml";
|
|
30171
30202
|
if (!docx[customLocation]) {
|
|
30172
30203
|
docx[customLocation] = generateCustomXml();
|
|
@@ -30651,7 +30682,7 @@ function storeSuperdocVersion(docx) {
|
|
|
30651
30682
|
function generateCustomXml() {
|
|
30652
30683
|
return DEFAULT_CUSTOM_XML;
|
|
30653
30684
|
}
|
|
30654
|
-
function generateSuperdocVersion(pid = 2, version = "0.17.
|
|
30685
|
+
function generateSuperdocVersion(pid = 2, version = "0.17.2") {
|
|
30655
30686
|
return {
|
|
30656
30687
|
type: "element",
|
|
30657
30688
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, av as commonjsGlobal, I as Buffer, aw as getDefaultExportFromCjs, ax as getContentTypesFromXml, ay as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, av as commonjsGlobal, I as Buffer, aw as getDefaultExportFromCjs, ax as getContentTypesFromXml, ay as xmljs } from "./converter-Bcg2-svq.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
|
}
|
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
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, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_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, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _DocumentSectionView_instances, init_fn3, addToolTip_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, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, N as NodeSelection, i as canSplit, j as defaultBlockAt$1, l as liftTarget, A as AllSelection, k as canJoin, m as joinPoint, n as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, o as Slice, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, L as ListHelpers, y as findParentNode, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as helpers, a2 as posToDOMRect, a3 as CommandService, a4 as SuperConverter, a5 as createDocument, a6 as createDocFromMarkdown, a7 as createDocFromHTML, a8 as EditorState, a9 as hasSomeParentWithClass, aa as isActive, ab as unflattenListsInHtml, ac as parseSizeUnit, ad as minMax, ae as getLineHeightValueString, af as InputRule, ag as kebabCase, ah as findParentNodeClosestToPos, ai as getListItemStyleDefinitions, aj as docxNumberigHelpers, ak as parseIndentElement, al as combineIndents, am as StepMap, an as getColStyleDeclaration, ao as SelectionRange, ap as Transform, aq as isInTable$1, ar as createColGroup, as as generateDocxRandomId, at as insertNewRelationship, au as htmlHandler } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, N as NodeSelection, i as canSplit, j as defaultBlockAt$1, l as liftTarget, A as AllSelection, k as canJoin, m as joinPoint, n as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, o as Slice, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, L as ListHelpers, y as findParentNode, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as helpers, a2 as posToDOMRect, a3 as CommandService, a4 as SuperConverter, a5 as createDocument, a6 as createDocFromMarkdown, a7 as createDocFromHTML, a8 as EditorState, a9 as hasSomeParentWithClass, aa as isActive, ab as unflattenListsInHtml, ac as parseSizeUnit, ad as minMax, ae as getLineHeightValueString, af as InputRule, ag as kebabCase, ah as findParentNodeClosestToPos, ai as getListItemStyleDefinitions, aj as docxNumberigHelpers, ak as parseIndentElement, al as combineIndents, am as StepMap, an as getColStyleDeclaration, ao as SelectionRange, ap as Transform, aq as isInTable$1, ar as createColGroup, as as generateDocxRandomId, at as insertNewRelationship, au as htmlHandler } from "./converter-Bcg2-svq.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-X-fYIxPZ.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -14353,7 +14353,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14353
14353
|
* @returns {Object | void} Migration results
|
|
14354
14354
|
*/
|
|
14355
14355
|
processCollaborationMigrations() {
|
|
14356
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.17.
|
|
14356
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.17.2");
|
|
14357
14357
|
if (!this.options.ydoc) return;
|
|
14358
14358
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14359
14359
|
let docVersion = metaMap.get("version");
|
|
@@ -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 { H as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { H as process$1 } from "./converter-Bcg2-svq.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D4fBb3em.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-D4fBb3em.js";
|
|
2
|
+
import "./chunks/converter-Bcg2-svq.js";
|
|
3
|
+
import "./chunks/docx-zipper-X-fYIxPZ.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -8,6 +8,21 @@
|
|
|
8
8
|
* @returns {Object | null} The updated styles object with default styles
|
|
9
9
|
*/
|
|
10
10
|
export function addDefaultStylesIfMissing(styles: any): any | null;
|
|
11
|
+
/**
|
|
12
|
+
* Remove any nodes that belong to the inline group when they appear at the root.
|
|
13
|
+
* ProseMirror's doc node only accepts block-level content; inline nodes here cause
|
|
14
|
+
* Invalid content for node doc errors. This is a conservative filter that only
|
|
15
|
+
* drops clearly inline node types if they somehow escape their paragraph.
|
|
16
|
+
*
|
|
17
|
+
* @param {Array<{type: string, content?: any, attrs?: any, marks?: any[]}>} content
|
|
18
|
+
* @returns {Array}
|
|
19
|
+
*/
|
|
20
|
+
export function filterOutRootInlineNodes(content?: Array<{
|
|
21
|
+
type: string;
|
|
22
|
+
content?: any;
|
|
23
|
+
attrs?: any;
|
|
24
|
+
marks?: any[];
|
|
25
|
+
}>): any[];
|
|
11
26
|
export function createDocumentJson(docx: ParsedDocx, converter: SuperConverter, editor: Editor): {
|
|
12
27
|
pmDoc: PmNodeJson;
|
|
13
28
|
savedTagsToRestore: XmlNode;
|
|
@@ -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, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aw as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, az as vClickOutside, y as findParentNode, aA as getActiveFormatting, aq as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { aE, a4, d, a1 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { k, C, l, T, i, m, j } from "./chunks/editor-
|
|
12
|
+
import { aw as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, az as vClickOutside, y as findParentNode, aA as getActiveFormatting, aq as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, a as Plugin } from "./chunks/converter-Bcg2-svq.js";
|
|
13
|
+
import { aE, a4, d, a1 } from "./chunks/converter-Bcg2-svq.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-D4fBb3em.js";
|
|
15
|
+
import { k, C, l, T, i, m, j } from "./chunks/editor-D4fBb3em.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, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-C6KdVRS2.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-X-fYIxPZ.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-D8CRzfwC.cjs");
|
|
4
4
|
require("./chunks/vue-DWle4Cai.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, 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, q } from "./chunks/super-editor.es-C-nn3bMY.es.js";
|
|
2
2
|
import "./chunks/vue-CXxsqYcP.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-D8CRzfwC.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-LZjTD5KG.cjs");
|
|
5
5
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
6
6
|
require("./chunks/jszip-b7l8QkfH.cjs");
|
|
7
7
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, 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, p, q } from "./chunks/super-editor.es-C-nn3bMY.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-CHQbeTTv.es.js";
|
|
3
3
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
4
4
|
import "./chunks/jszip-B8KIZSNe.es.js";
|
|
5
5
|
import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
|