@harbour-enterprises/superdoc 0.8.27 → 0.8.29
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/@harbour-enterprises/{super-editor-DkN9Dv8X.es.js → super-editor-D1Xk5Yrd.es.js} +8 -5
- package/dist/chunks/{super-editor.es-3mCiAAji.cjs → super-editor.es-DOk_Y-T9.cjs} +3 -3
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +9 -9
- package/dist/super-editor/chunks/{converter-Bzv8MkSI.js → converter-14D5Azcr.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-B9ETswWY.js → docx-zipper-DgX4zdaV.js} +1 -1
- package/dist/super-editor/chunks/{editor-CJuJmppY.js → editor-CPMoG7gE.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-C5ZpQcA3.js → toolbar-BDRxH8WI.js} +2 -2
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- 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.es.js +11 -8
- 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 +308 -308
- package/dist/superdoc.umd.js +11 -9
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -22052,7 +22052,7 @@ Actual: ` + h3.attribValue
|
|
|
22052
22052
|
return;
|
|
22053
22053
|
}
|
|
22054
22054
|
}
|
|
22055
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.8.
|
|
22055
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.8.29") {
|
|
22056
22056
|
const n = "docProps/custom.xml";
|
|
22057
22057
|
e[n] || (e[n] = yu$2());
|
|
22058
22058
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -22252,7 +22252,7 @@ Actual: ` + h3.attribValue
|
|
|
22252
22252
|
function yu$2() {
|
|
22253
22253
|
return Tf$2;
|
|
22254
22254
|
}
|
|
22255
|
-
function wu$2(r22 = 2, e = "0.8.
|
|
22255
|
+
function wu$2(r22 = 2, e = "0.8.29") {
|
|
22256
22256
|
return {
|
|
22257
22257
|
type: "element",
|
|
22258
22258
|
name: "property",
|
|
@@ -33264,7 +33264,7 @@ Actual: ` + h3.attribValue
|
|
|
33264
33264
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
33265
33265
|
*/
|
|
33266
33266
|
processCollaborationMigrations() {
|
|
33267
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.8.
|
|
33267
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.8.29"), !this.options.ydoc) return;
|
|
33268
33268
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
33269
33269
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
33270
33270
|
const o = Fa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -50210,10 +50210,13 @@ ${t}
|
|
|
50210
50210
|
}
|
|
50211
50211
|
}
|
|
50212
50212
|
L = /* @__PURE__ */ new WeakSet(), Ze = function() {
|
|
50213
|
-
this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length
|
|
50213
|
+
this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length ? this.config.toolbarGroups = Object.keys(this.config.groups) : this.config.toolbarGroups = ["left", "center", "right"];
|
|
50214
50214
|
}, fe = /* @__PURE__ */ new WeakMap(), Be = function(o, n, e = false) {
|
|
50215
50215
|
const i3 = document.documentElement.clientWidth, { defaultItems: c3, overflowItems: l } = Wn(o, e, i3, this.role, n);
|
|
50216
|
-
let a =
|
|
50216
|
+
let a = [
|
|
50217
|
+
...c3.map((u) => u.name.value),
|
|
50218
|
+
...l.map((u) => u.name.value)
|
|
50219
|
+
];
|
|
50217
50220
|
this.config.groups && (a = Object.values(this.config.groups).flatMap((u) => u));
|
|
50218
50221
|
const d = c3.filter((u) => a.includes(u.name.value)).filter((u) => !this.config.excludeItems.includes(u.name.value));
|
|
50219
50222
|
this.toolbarItems = d, this.overflowItems = l.filter((u) => a.includes(u.name.value));
|
|
@@ -64078,7 +64081,6 @@ ${style2}
|
|
|
64078
64081
|
pdfjsDocument.destroy();
|
|
64079
64082
|
pdfPageViews = [];
|
|
64080
64083
|
pdfjsDocument = null;
|
|
64081
|
-
URL.revokeObjectURL(workerUrl);
|
|
64082
64084
|
};
|
|
64083
64085
|
onMounted(async () => {
|
|
64084
64086
|
await Promise.resolve().then(() => pdf_viewer);
|
|
@@ -64109,7 +64111,7 @@ ${style2}
|
|
|
64109
64111
|
};
|
|
64110
64112
|
}
|
|
64111
64113
|
};
|
|
64112
|
-
const PdfViewer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
64114
|
+
const PdfViewer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-33ecc09d"]]);
|
|
64113
64115
|
const _hoisted_1$8 = {
|
|
64114
64116
|
class: "comments-container",
|
|
64115
64117
|
id: "commentsContainer"
|
|
@@ -65379,7 +65381,7 @@ ${style2}
|
|
|
65379
65381
|
this.config.colors = shuffleArray(this.config.colors);
|
|
65380
65382
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
65381
65383
|
this.colorIndex = 0;
|
|
65382
|
-
this.version = "0.8.
|
|
65384
|
+
this.version = "0.8.29";
|
|
65383
65385
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
65384
65386
|
this.superdocId = config.superdocId || v4();
|
|
65385
65387
|
this.colors = this.config.colors;
|
|
@@ -65392,11 +65394,11 @@ ${style2}
|
|
|
65392
65394
|
this.isDev = this.config.isDev || false;
|
|
65393
65395
|
this.activeEditor = null;
|
|
65394
65396
|
this.comments = [];
|
|
65395
|
-
this.#addToolbar(this);
|
|
65396
65397
|
this.app.mount(this.config.selector);
|
|
65397
65398
|
this.readyEditors = 0;
|
|
65398
65399
|
this.isLocked = this.config.isLocked || false;
|
|
65399
65400
|
this.lockedBy = this.config.lockedBy || null;
|
|
65401
|
+
this.#addToolbar(this);
|
|
65400
65402
|
}
|
|
65401
65403
|
get requiredNumberOfEditors() {
|
|
65402
65404
|
return this.superdocStore.documents.filter((d) => d.type === DOCX).length;
|