@harbour-enterprises/superdoc 0.11.30 → 0.11.31
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-D8Qchtwe.cjs → index-BXKGjuVW.cjs} +1 -1
- package/dist/chunks/{index-D5LUU_DK.es.js → index-CPZ-IxHT.es.js} +1 -1
- package/dist/chunks/{index-BJQ3rSJD.cjs → index-CqRwYOdx.cjs} +1 -1
- package/dist/chunks/{index-BIKukPks.es.js → index-Y7BlAr93.es.js} +2 -2
- package/dist/chunks/{super-editor.es-B9zU4phN.es.js → super-editor.es-D8XdnWMu.es.js} +11 -9
- package/dist/chunks/{super-editor.es-DR8TyHgu.cjs → super-editor.es-DkAuD0cl.cjs} +3 -3
- package/dist/chunks/{url-lfePTVJU.cjs → url-6Xu7gR4T.cjs} +1 -1
- package/dist/chunks/{url-ChEJem8_.es.js → url-t15h9onH.es.js} +1 -1
- package/dist/chunks/{xml-js-Dq803VXB.es.js → xml-js-kwrvzyhm.es.js} +753 -739
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-69UAZ0Ft.js → converter-hZK1xKPW.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CvLDRHYT.js → docx-zipper-DMEmQVkt.js} +1 -1
- package/dist/super-editor/chunks/{editor-Br7gJJbN.js → editor-GtdcYA5D.js} +11 -9
- package/dist/super-editor/chunks/{toolbar-BX3EQkLT.js → toolbar-Bk4txCKp.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +25 -5
- package/dist/super-editor/core/Editor.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/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 +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +12 -10
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/xml-js-BXHFNveP.cjs +0 -10
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as md, g as yd, c as bd, n as jo, L as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { O as Ib, K as Cb, X as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { J as md, g as yd, c as bd, n as jo, L as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-D8XdnWMu.es.js";
|
|
2
|
+
import { O as Ib, K as Cb, X as fb } from "./chunks/super-editor.es-D8XdnWMu.es.js";
|
|
3
3
|
import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as Fe, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-DXpzqXur.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-DO3il9iI.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -16788,13 +16788,13 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16788
16788
|
"./chunks/empty-GlqisfcO.es.js"
|
|
16789
16789
|
), s = await import(
|
|
16790
16790
|
/*webpackIgnore: true*/
|
|
16791
|
-
"./chunks/index-
|
|
16791
|
+
"./chunks/index-Y7BlAr93.es.js"
|
|
16792
16792
|
).then((d) => d.i), a = await import(
|
|
16793
16793
|
/*webpackIgnore: true*/
|
|
16794
|
-
"./chunks/index-
|
|
16794
|
+
"./chunks/index-CPZ-IxHT.es.js"
|
|
16795
16795
|
).then((d) => d.i), o = await import(
|
|
16796
16796
|
/*webpackIgnore: true*/
|
|
16797
|
-
"./chunks/url-
|
|
16797
|
+
"./chunks/url-t15h9onH.es.js"
|
|
16798
16798
|
).then((d) => d.u);
|
|
16799
16799
|
let l, h;
|
|
16800
16800
|
try {
|
|
@@ -32713,7 +32713,7 @@ class hb extends eg {
|
|
|
32713
32713
|
this.config = {
|
|
32714
32714
|
...this.config,
|
|
32715
32715
|
...t
|
|
32716
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.
|
|
32716
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.31", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
|
|
32717
32717
|
}
|
|
32718
32718
|
get requiredNumberOfEditors() {
|
|
32719
32719
|
return this.superdocStore.documents.filter((t) => t.type === on).length;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -24080,7 +24080,7 @@ Actual: ` + p3.attribValue
|
|
|
24080
24080
|
return;
|
|
24081
24081
|
}
|
|
24082
24082
|
}
|
|
24083
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
24083
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.31") {
|
|
24084
24084
|
const n = "docProps/custom.xml";
|
|
24085
24085
|
e[n] || (e[n] = Fu$2());
|
|
24086
24086
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24343,7 +24343,7 @@ Actual: ` + p3.attribValue
|
|
|
24343
24343
|
function Fu$2() {
|
|
24344
24344
|
return Gf$1;
|
|
24345
24345
|
}
|
|
24346
|
-
function Bu$2(r22 = 2, e = "0.11.
|
|
24346
|
+
function Bu$2(r22 = 2, e = "0.11.31") {
|
|
24347
24347
|
return {
|
|
24348
24348
|
type: "element",
|
|
24349
24349
|
name: "property",
|
|
@@ -36983,7 +36983,7 @@ Actual: ` + p3.attribValue
|
|
|
36983
36983
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36984
36984
|
*/
|
|
36985
36985
|
processCollaborationMigrations() {
|
|
36986
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
36986
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.31"), !this.options.ydoc) return;
|
|
36987
36987
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36988
36988
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36989
36989
|
const i3 = hl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -37023,18 +37023,20 @@ Actual: ` + p3.attribValue
|
|
|
37023
37023
|
* pre-process the document as needed prior to running in the annotator.
|
|
37024
37024
|
*
|
|
37025
37025
|
* Currently this is only used for table generation but additional pre-processing can be done here.
|
|
37026
|
-
*
|
|
37026
|
+
*
|
|
37027
|
+
* @param {FieldValue[]} annotationValues
|
|
37027
37028
|
* @returns {void}
|
|
37028
37029
|
*/
|
|
37029
|
-
prepareForAnnotations(n = []
|
|
37030
|
-
const { tr:
|
|
37031
|
-
this.view.dispatch(
|
|
37030
|
+
prepareForAnnotations(n = []) {
|
|
37031
|
+
const { tr: r } = this.state, { dispatch: i3 } = this.view, o = ko$2.processTables({ editor: this, tr: r, annotationValues: n });
|
|
37032
|
+
this.view.dispatch(o);
|
|
37032
37033
|
}
|
|
37033
37034
|
/**
|
|
37034
37035
|
* Annotate the document with the given annotation values.
|
|
37035
37036
|
*
|
|
37036
|
-
* @param {
|
|
37037
|
-
* @param {
|
|
37037
|
+
* @param {FieldValue[]} annotationValues List of field values to apply.
|
|
37038
|
+
* @param {String[]} hiddenIds List of field ids to remove from the document.
|
|
37039
|
+
* @returns {void}
|
|
37038
37040
|
*/
|
|
37039
37041
|
annotate(n = [], r = []) {
|
|
37040
37042
|
const { state: i3, view: o, schema: s } = this;
|
|
@@ -70949,7 +70951,7 @@ ${style2}
|
|
|
70949
70951
|
this.config.colors = shuffleArray(this.config.colors);
|
|
70950
70952
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
70951
70953
|
this.colorIndex = 0;
|
|
70952
|
-
this.version = "0.11.
|
|
70954
|
+
this.version = "0.11.31";
|
|
70953
70955
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
70954
70956
|
this.superdocId = config.superdocId || v4();
|
|
70955
70957
|
this.colors = this.config.colors;
|