@harbour-enterprises/superdoc 0.14.2-next.2 → 0.14.2
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/{index-BMwK7kM5.es.js → index-Bmg-LdrI.es.js} +2 -2
- package/dist/chunks/{index-Oz4X1zyg.cjs → index-Bx6NTjUr.cjs} +2 -2
- package/dist/chunks/{index-CZuIe8A3.cjs → index-D8-yLk4l.cjs} +1 -1
- package/dist/chunks/{index-MJ-5Yknb.es.js → index-q6mHfs8e.es.js} +1 -1
- package/dist/chunks/{super-editor.es-DDBiIC2f.cjs → super-editor.es-CVXcyA03.cjs} +10 -23
- package/dist/chunks/{super-editor.es-BWlm5Ej1.es.js → super-editor.es-uexOEMOI.es.js} +10 -23
- package/dist/chunks/{url-Cqg2Hljl.es.js → url-CZRpBZ8r.es.js} +1 -1
- package/dist/chunks/{url-CRVat8D5.cjs → url-f1i5V486.cjs} +1 -1
- package/dist/chunks/{xml-js-t28wMlyv.cjs → xml-js-CR_HPgfX.cjs} +158 -123
- package/dist/chunks/{xml-js-D78KIQHL.es.js → xml-js-DzoGf_HX.es.js} +158 -123
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-dFE2Jr2b.js → converter-D4QevHSw.js} +2 -4
- package/dist/super-editor/chunks/{docx-zipper-BsY1xnjc.js → docx-zipper-L44d28km.js} +1 -1
- package/dist/super-editor/chunks/{editor-CGEU-2b7.js → editor-CUqQDQxM.js} +10 -21
- package/dist/super-editor/chunks/{toolbar-R0GEOSnM.js → toolbar--4jgiUTj.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +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/extensions/list-item/ListItemNodeView.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- 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 +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +11 -24
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
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-CVXcyA03.cjs");
|
|
4
4
|
require("./chunks/vue-tQYF719J.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, c, S, d, e, f, T, g, h, i, j, k, l, m, n, o, p } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, c, S, d, e, f, T, g, h, i, j, k, l, m, n, o, p } from "./chunks/super-editor.es-uexOEMOI.es.js";
|
|
2
2
|
import "./chunks/vue-lU0o_RlU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.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-CVXcyA03.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-tQYF719J.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-D5XoMX4C.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -24406,13 +24406,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24406
24406
|
"./chunks/empty-lth7LH78.cjs"
|
|
24407
24407
|
)), http = await Promise.resolve().then(() => require(
|
|
24408
24408
|
/*webpackIgnore: true*/
|
|
24409
|
-
"./chunks/index-
|
|
24409
|
+
"./chunks/index-Bx6NTjUr.cjs"
|
|
24410
24410
|
)).then((n) => n.index), https = await Promise.resolve().then(() => require(
|
|
24411
24411
|
/*webpackIgnore: true*/
|
|
24412
|
-
"./chunks/index-
|
|
24412
|
+
"./chunks/index-D8-yLk4l.cjs"
|
|
24413
24413
|
)).then((n) => n.index), url = await Promise.resolve().then(() => require(
|
|
24414
24414
|
/*webpackIgnore: true*/
|
|
24415
|
-
"./chunks/url-
|
|
24415
|
+
"./chunks/url-f1i5V486.cjs"
|
|
24416
24416
|
)).then((n) => n.url);
|
|
24417
24417
|
let canvas, path2d;
|
|
24418
24418
|
try {
|
|
@@ -47807,7 +47807,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47807
47807
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47808
47808
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47809
47809
|
this.colorIndex = 0;
|
|
47810
|
-
this.version = "0.14.2
|
|
47810
|
+
this.version = "0.14.2";
|
|
47811
47811
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47812
47812
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47813
47813
|
this.colors = this.config.colors;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as index$1, C as CommentsPluginKey, g as TrackChangesBasePluginKey, E as Editor, m as getRichTextExtensions, e as SuperInput, d as SuperEditor, A as AIWriter, f as SuperToolbar, h as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { a, S, i, o } from "./chunks/super-editor.es-
|
|
1
|
+
import { p as index$1, C as CommentsPluginKey, g as TrackChangesBasePluginKey, E as Editor, m as getRichTextExtensions, e as SuperInput, d as SuperEditor, A as AIWriter, f as SuperToolbar, h as createZip } from "./chunks/super-editor.es-uexOEMOI.es.js";
|
|
2
|
+
import { a, S, i, o } from "./chunks/super-editor.es-uexOEMOI.es.js";
|
|
3
3
|
import { a0 as effectScope, r as ref, $ as markRaw, p as process$1, a1 as toRaw, a as computed, a2 as isRef, a3 as isReactive, D as toRef, i as inject, q as getCurrentInstance, l as watch, y as unref, a4 as hasInjectionContext, N as reactive, u as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, K as shallowRef, O as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, A as createTextVNode, F as Fragment, R as Comment, m as defineComponent, E as provide, I as withDirectives, C as h, V as Teleport, S as renderSlot, W as isVNode, J as watchEffect, P as Transition, G as mergeProps, Q as vShow, H as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, x as createVNode, z as withCtx, f as createBaseVNode, B as normalizeStyle, e as createCommentVNode, v as createBlock, w as withModifiers, n as normalizeClass, a8 as resolveDirective, d as renderList, c as createApp, X as onUnmounted, Y as resolveDynamicComponent } from "./chunks/vue-lU0o_RlU.es.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-CYDYUNnI.es.js";
|
|
5
5
|
import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
|
|
@@ -24389,13 +24389,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24389
24389
|
"./chunks/empty-smM22Y5N.es.js"
|
|
24390
24390
|
), http = await import(
|
|
24391
24391
|
/*webpackIgnore: true*/
|
|
24392
|
-
"./chunks/index-
|
|
24392
|
+
"./chunks/index-Bmg-LdrI.es.js"
|
|
24393
24393
|
).then((n) => n.i), https = await import(
|
|
24394
24394
|
/*webpackIgnore: true*/
|
|
24395
|
-
"./chunks/index-
|
|
24395
|
+
"./chunks/index-q6mHfs8e.es.js"
|
|
24396
24396
|
).then((n) => n.i), url = await import(
|
|
24397
24397
|
/*webpackIgnore: true*/
|
|
24398
|
-
"./chunks/url-
|
|
24398
|
+
"./chunks/url-CZRpBZ8r.es.js"
|
|
24399
24399
|
).then((n) => n.u);
|
|
24400
24400
|
let canvas, path2d;
|
|
24401
24401
|
try {
|
|
@@ -47790,7 +47790,7 @@ class SuperDoc extends EventEmitter {
|
|
|
47790
47790
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47791
47791
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47792
47792
|
this.colorIndex = 0;
|
|
47793
|
-
this.version = "0.14.2
|
|
47793
|
+
this.version = "0.14.2";
|
|
47794
47794
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47795
47795
|
this.superdocId = config.superdocId || v4();
|
|
47796
47796
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -29815,11 +29815,9 @@
|
|
|
29815
29815
|
textHighlight: parsedAttrs.fieldTextHighlight
|
|
29816
29816
|
};
|
|
29817
29817
|
attrs = attrsFromJSON;
|
|
29818
|
-
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
29819
29818
|
} else {
|
|
29820
29819
|
const attrsFromElements = getAttrsFromElements({ sdtPr, tag, alias });
|
|
29821
29820
|
attrs = attrsFromElements;
|
|
29822
|
-
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
29823
29821
|
}
|
|
29824
29822
|
const { attrs: marksAsAttrs, marks } = parseAnnotationMarks(sdtContent);
|
|
29825
29823
|
const allAttrs = { ...attrs, ...marksAsAttrs };
|
|
@@ -31695,7 +31693,7 @@
|
|
|
31695
31693
|
return;
|
|
31696
31694
|
}
|
|
31697
31695
|
}
|
|
31698
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.2
|
|
31696
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.2") {
|
|
31699
31697
|
const customLocation = "docProps/custom.xml";
|
|
31700
31698
|
if (!docx[customLocation]) {
|
|
31701
31699
|
docx[customLocation] = generateCustomXml();
|
|
@@ -32171,7 +32169,7 @@
|
|
|
32171
32169
|
function generateCustomXml() {
|
|
32172
32170
|
return DEFAULT_CUSTOM_XML;
|
|
32173
32171
|
}
|
|
32174
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.2
|
|
32172
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.2") {
|
|
32175
32173
|
return {
|
|
32176
32174
|
type: "element",
|
|
32177
32175
|
name: "property",
|
|
@@ -49668,7 +49666,7 @@
|
|
|
49668
49666
|
* @returns {Object | void} Migration results
|
|
49669
49667
|
*/
|
|
49670
49668
|
processCollaborationMigrations() {
|
|
49671
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.2
|
|
49669
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.2");
|
|
49672
49670
|
if (!this.options.ydoc) return;
|
|
49673
49671
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
49674
49672
|
let docVersion = metaMap.get("version");
|
|
@@ -51955,7 +51953,7 @@
|
|
|
51955
51953
|
this.contentDOM.className = "sd-editor-list-item-content-dom";
|
|
51956
51954
|
let contentLeft = visibleIndent.left;
|
|
51957
51955
|
if (visibleIndent.left === absoluteLeft) {
|
|
51958
|
-
absoluteLeft
|
|
51956
|
+
contentLeft = absoluteLeft + 48;
|
|
51959
51957
|
}
|
|
51960
51958
|
this.contentDOM.style.marginLeft = `${contentLeft}px`;
|
|
51961
51959
|
this.numberingDOM.style.left = `${absoluteLeft}px`;
|
|
@@ -52039,16 +52037,9 @@
|
|
|
52039
52037
|
if (!shouldProcess) return null;
|
|
52040
52038
|
newState.doc.descendants((node2, pos) => {
|
|
52041
52039
|
if (node2.type.name !== "listItem") return;
|
|
52042
|
-
const { level: attrLvl, numId: attrNumId, styleId } = node2.attrs;
|
|
52040
|
+
const { level: attrLvl, numId: attrNumId, styleId, start: start2 } = node2.attrs;
|
|
52043
52041
|
const level = parseInt(attrLvl);
|
|
52044
52042
|
const numId = parseInt(attrNumId);
|
|
52045
|
-
const {
|
|
52046
|
-
lvlText,
|
|
52047
|
-
customFormat,
|
|
52048
|
-
listNumberingType,
|
|
52049
|
-
start: numberingDefStart
|
|
52050
|
-
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
52051
|
-
const start2 = parseInt(numberingDefStart) || 1;
|
|
52052
52043
|
if (!listMap.has(numId)) {
|
|
52053
52044
|
const generatedLevels = {};
|
|
52054
52045
|
const initialPath = docxNumberigHelpers.generateListPath(level, numId, styleId, generatedLevels, docx);
|
|
@@ -52058,15 +52049,6 @@
|
|
|
52058
52049
|
let currentListLevels = [...listMap.get(numId)];
|
|
52059
52050
|
if (!listInitialized.get(numId)) {
|
|
52060
52051
|
listInitialized.set(numId, true);
|
|
52061
|
-
if (typeof start2 === "number") {
|
|
52062
|
-
while (currentListLevels.length <= level) {
|
|
52063
|
-
currentListLevels.push(0);
|
|
52064
|
-
}
|
|
52065
|
-
currentListLevels[level] = start2;
|
|
52066
|
-
for (let i2 = level + 1; i2 < currentListLevels.length; i2++) {
|
|
52067
|
-
currentListLevels[i2] = 0;
|
|
52068
|
-
}
|
|
52069
|
-
}
|
|
52070
52052
|
} else {
|
|
52071
52053
|
while (currentListLevels.length <= level) {
|
|
52072
52054
|
currentListLevels.push(0);
|
|
@@ -52080,6 +52062,11 @@
|
|
|
52080
52062
|
currentListLevels = [1];
|
|
52081
52063
|
}
|
|
52082
52064
|
listMap.set(numId, currentListLevels);
|
|
52065
|
+
const {
|
|
52066
|
+
lvlText,
|
|
52067
|
+
customFormat,
|
|
52068
|
+
listNumberingType
|
|
52069
|
+
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
52083
52070
|
const updatedAttrs = {
|
|
52084
52071
|
...node2.attrs,
|
|
52085
52072
|
listLevel: [...currentListLevels],
|
|
@@ -95398,7 +95385,7 @@ ${style2}
|
|
|
95398
95385
|
this.config.colors = shuffleArray(this.config.colors);
|
|
95399
95386
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
95400
95387
|
this.colorIndex = 0;
|
|
95401
|
-
this.version = "0.14.2
|
|
95388
|
+
this.version = "0.14.2";
|
|
95402
95389
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
95403
95390
|
this.superdocId = config.superdocId || v4();
|
|
95404
95391
|
this.colors = this.config.colors;
|