@harbour-enterprises/superdoc 0.6.45 → 0.6.47
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/{super-editor.es-oxGmJoDr.js → super-editor.es-BimqHKz4.js} +15 -17
- package/dist/chunks/super-editor.es-BimqHKz4.js.map +1 -0
- package/dist/super-editor/chunks/{converter-BdP8QDs2.js → converter-RUbkHvVA.js} +3 -3
- package/dist/super-editor/chunks/{converter-BdP8QDs2.js.map → converter-RUbkHvVA.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-C_rx6KHO.js → docx-zipper-BbeRnWFQ.js} +7 -6
- package/dist/super-editor/chunks/docx-zipper-BbeRnWFQ.js.map +1 -0
- package/dist/super-editor/chunks/{editor-l2eNM1kh.js → editor-n0njCfa5.js} +10 -13
- package/dist/super-editor/chunks/editor-n0njCfa5.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-Cct-ap6j.js → toolbar-CMCaGLDm.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Cct-ap6j.js.map → toolbar-CMCaGLDm.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/DocxZipper.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/comment/comments-helpers.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.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +15 -17
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-oxGmJoDr.js.map +0 -1
- package/dist/super-editor/chunks/docx-zipper-C_rx6KHO.js.map +0 -1
- package/dist/super-editor/chunks/editor-l2eNM1kh.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocxZipper.d.ts","sourceRoot":"","sources":["../../src/core/DocxZipper.js"],"names":[],"mappings":";AAGA;;GAEG;AACH;IACE,yBAOC;IANC,WAAkC;IAClC,SAAsB;IACtB,aAAe;IACf,UAAe;IACf,eAAoB;IACpB,UAAe;IAGjB;;;;;;;;;;;;;;;;;SAiBK;IACL,yDA0CC;IAED,qCAEC;IAED;;OAEG;IACH,yEA0BC;IAED,+BAGC;IAED;;;;;;;qBAaC;IAED;;;;;OAKG;IACH,kFAFa,OAAO,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"DocxZipper.d.ts","sourceRoot":"","sources":["../../src/core/DocxZipper.js"],"names":[],"mappings":";AAGA;;GAEG;AACH;IACE,yBAOC;IANC,WAAkC;IAClC,SAAsB;IACtB,aAAe;IACf,UAAe;IACf,eAAoB;IACpB,UAAe;IAGjB;;;;;;;;;;;;;;;;;SAiBK;IACL,yDA0CC;IAED,qCAEC;IAED;;OAEG;IACH,yEA0BC;IAED,+BAGC;IAED;;;;;;;qBAaC;IAED;;;;;OAKG;IACH,kFAFa,OAAO,CAAC,KAAK,CAAC,CA6B1B;IAED;;;;;;OAMG;IACH,yCAJW,IAAI,iCAEF,OAAO,CAAC,KAAK,CAAC,CAyB1B;CACF"}
|
|
@@ -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-n0njCfa5.js";
|
|
2
|
+
import "./chunks/converter-RUbkHvVA.js";
|
|
3
|
+
import "./chunks/docx-zipper-BbeRnWFQ.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/comment/comments-helpers.js"],"names":[],"mappings":"AAeO,mFAPJ;IAAuB,SAAS,EAAxB,MAAM;IACS,UAAU,EAAzB,MAAM;CACd,GAGU,IAAI,CAUhB;AAWM,oFAHI,OAAO,mBAAmB,EAAE,IAAI,SAmB1C;AAWM,8CANI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAEhC,IAAI,CA+DhB;AASM,oDAMN;AAWM,8CALI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,GAChC,IAAI,
|
|
1
|
+
{"version":3,"file":"comments-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/comment/comments-helpers.js"],"names":[],"mappings":"AAeO,mFAPJ;IAAuB,SAAS,EAAxB,MAAM;IACS,UAAU,EAAzB,MAAM;CACd,GAGU,IAAI,CAUhB;AAWM,oFAHI,OAAO,mBAAmB,EAAE,IAAI,SAmB1C;AAWM,8CANI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAEhC,IAAI,CA+DhB;AASM,oDAMN;AAWM,8CALI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,GAChC,IAAI,CAiDhB"}
|
|
@@ -9,13 +9,13 @@ 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 _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-
|
|
13
|
-
import { k, m, j, l } from "./chunks/editor-
|
|
14
|
-
import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-
|
|
15
|
-
import { B } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-n0njCfa5.js";
|
|
13
|
+
import { k, m, j, l } from "./chunks/editor-n0njCfa5.js";
|
|
14
|
+
import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-RUbkHvVA.js";
|
|
15
|
+
import { B } from "./chunks/converter-RUbkHvVA.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
18
|
-
import { D } from "./chunks/docx-zipper-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-CMCaGLDm.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-BbeRnWFQ.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-BimqHKz4.js";
|
|
2
2
|
import "./chunks/vue-CUQGd1xF.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as BasicUpload,
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { S, i, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-BimqHKz4.js";
|
|
2
|
+
import { S, i, k, l } from "./chunks/super-editor.es-BimqHKz4.js";
|
|
3
3
|
import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, B as toRef, i as inject, l as getCurrentInstance, j as watch, v as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, f as onMounted, h as onBeforeUnmount, e as onBeforeMount, U as onActivated, m as onDeactivated, y as createTextVNode, F as Fragment, Q as Comment, k as defineComponent, C as provide, G as withDirectives, A as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, D as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, u as createVNode, x as withCtx, E as createBaseVNode, z as normalizeStyle, s as createCommentVNode, q as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-CUQGd1xF.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-DlHbx6j5.js";
|
|
5
5
|
import { b } from "./chunks/blank-docx-BagxM198.js";
|
|
@@ -45541,7 +45541,7 @@ class SuperDoc extends EventEmitter {
|
|
|
45541
45541
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45542
45542
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45543
45543
|
this.colorIndex = 0;
|
|
45544
|
-
this.version = "0.6.
|
|
45544
|
+
this.version = "0.6.47";
|
|
45545
45545
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45546
45546
|
this.superdocId = config.superdocId || v4();
|
|
45547
45547
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -27907,7 +27907,7 @@
|
|
|
27907
27907
|
return;
|
|
27908
27908
|
}
|
|
27909
27909
|
}
|
|
27910
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.
|
|
27910
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.47") {
|
|
27911
27911
|
const customLocation = "docProps/custom.xml";
|
|
27912
27912
|
if (!docx[customLocation]) {
|
|
27913
27913
|
docx[customLocation] = generateCustomXml();
|
|
@@ -28165,7 +28165,7 @@
|
|
|
28165
28165
|
function generateCustomXml() {
|
|
28166
28166
|
return DEFAULT_CUSTOM_XML;
|
|
28167
28167
|
}
|
|
28168
|
-
function generateSuperdocVersion(version2 = "0.6.
|
|
28168
|
+
function generateSuperdocVersion(version2 = "0.6.47") {
|
|
28169
28169
|
return {
|
|
28170
28170
|
type: "element",
|
|
28171
28171
|
name: "property",
|
|
@@ -30611,12 +30611,13 @@
|
|
|
30611
30611
|
async exportFromCollaborativeDocx(docx, updatedDocs, media, fonts) {
|
|
30612
30612
|
const zip = new JSZip();
|
|
30613
30613
|
for (const file of docx) {
|
|
30614
|
-
|
|
30615
|
-
if (file.name in updatedDocs) {
|
|
30616
|
-
content = updatedDocs[file.name];
|
|
30617
|
-
}
|
|
30614
|
+
const content = file.content;
|
|
30618
30615
|
zip.file(file.name, content);
|
|
30619
30616
|
}
|
|
30617
|
+
Object.keys(updatedDocs).forEach((key) => {
|
|
30618
|
+
const content = updatedDocs[key];
|
|
30619
|
+
zip.file(key, content);
|
|
30620
|
+
});
|
|
30620
30621
|
Object.keys(media).forEach((name) => {
|
|
30621
30622
|
const binaryData = Buffer2.from(media[name], "base64");
|
|
30622
30623
|
zip.file(`word/media/${name}`, binaryData);
|
|
@@ -41392,19 +41393,18 @@
|
|
|
41392
41393
|
doc2.descendants((node2, pos) => {
|
|
41393
41394
|
const { type: type2 } = node2;
|
|
41394
41395
|
if (type2.name === "commentRangeStart") {
|
|
41395
|
-
|
|
41396
|
+
toMark.push({
|
|
41396
41397
|
"w:id": node2.attrs["w:id"],
|
|
41397
41398
|
internal: node2.attrs.internal,
|
|
41398
41399
|
start: pos
|
|
41399
|
-
};
|
|
41400
|
-
|
|
41401
|
-
toDelete.push({ start: pos - 1, end: pos });
|
|
41400
|
+
});
|
|
41401
|
+
toDelete.push({ start: pos, end: pos + 1 });
|
|
41402
41402
|
} else if (type2.name === "commentRangeEnd") {
|
|
41403
41403
|
const itemToMark = toMark.find((p2) => p2["w:id"] === node2.attrs["w:id"]);
|
|
41404
41404
|
if (!itemToMark) return;
|
|
41405
41405
|
const { start: start2 } = itemToMark;
|
|
41406
41406
|
const markAttrs = {
|
|
41407
|
-
importedId:
|
|
41407
|
+
importedId: node2.attrs["w:id"],
|
|
41408
41408
|
internal: itemToMark.internal
|
|
41409
41409
|
};
|
|
41410
41410
|
tr.addMark(start2, pos + 1, schema.marks[CommentMarkName].create(markAttrs));
|
|
@@ -41413,10 +41413,8 @@
|
|
|
41413
41413
|
toDelete.push({ start: pos, end: pos + 1 });
|
|
41414
41414
|
}
|
|
41415
41415
|
});
|
|
41416
|
-
toDelete.sort((a, b) => b.
|
|
41417
|
-
|
|
41418
|
-
tr.delete(end2, end2 + 1);
|
|
41419
|
-
tr.delete(start2, start2 + 1);
|
|
41416
|
+
toDelete.sort((a, b) => b.start - a.start).forEach(({ start: start2, end: end2 }) => {
|
|
41417
|
+
tr.delete(start2, end2);
|
|
41420
41418
|
});
|
|
41421
41419
|
};
|
|
41422
41420
|
const CommentsPluginKey = new PluginKey("comments");
|
|
@@ -42191,7 +42189,7 @@
|
|
|
42191
42189
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
42192
42190
|
*/
|
|
42193
42191
|
processCollaborationMigrations() {
|
|
42194
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
42192
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.47");
|
|
42195
42193
|
if (!this.options.ydoc) return;
|
|
42196
42194
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42197
42195
|
let docVersion = metaMap.get("version");
|
|
@@ -110150,7 +110148,7 @@ ${style2}
|
|
|
110150
110148
|
this.config.colors = shuffleArray(this.config.colors);
|
|
110151
110149
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
110152
110150
|
this.colorIndex = 0;
|
|
110153
|
-
this.version = "0.6.
|
|
110151
|
+
this.version = "0.6.47";
|
|
110154
110152
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
110155
110153
|
this.superdocId = config.superdocId || v4();
|
|
110156
110154
|
this.colors = this.config.colors;
|