@harbour-enterprises/superdoc 0.10.48 → 0.10.49
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-C4-w9MLl.cjs → index-BXKGjuVW.cjs} +1 -1
- package/dist/chunks/{index-DOBxSDrW.es.js → index-B_4G-Rse.es.js} +2 -2
- package/dist/chunks/{index-CdQWSv8b.es.js → index-C3fK1Y-u.es.js} +1 -1
- package/dist/chunks/{index-ChNh-3hE.cjs → index-CqRwYOdx.cjs} +1 -1
- package/dist/chunks/{super-editor.es-DnhBRrBW.es.js → super-editor.es-BnRb6ctt.es.js} +10 -3
- package/dist/chunks/{super-editor.es-C8S5ZYYG.cjs → super-editor.es-wu4lEYHk.cjs} +4 -4
- package/dist/chunks/{url-CzUL97Mg.cjs → url-6Xu7gR4T.cjs} +1 -1
- package/dist/chunks/{url-Dsvro-99.es.js → url-D6ObD5O4.es.js} +1 -1
- package/dist/chunks/{xml-js-Buzt-6J1.es.js → xml-js-BYiAO46K.es.js} +296 -303
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-Byydbaog.js → converter-BEB_YaL1.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BS1GNJCk.js → docx-zipper-1Yx6hAdV.js} +1 -1
- package/dist/super-editor/chunks/{editor-DbsR8gW_.js → editor-Ne_3t5iW.js} +9 -3
- package/dist/super-editor/chunks/{toolbar-pcXBaeqY.js → toolbar-Xx3RwrXG.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/core/Editor.d.ts +4 -0
- 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 +7 -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 +11 -4
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-zfoNze4t.cjs +0 -10
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as md, h as yd, a as bd, q as jo, J as Wo, x as wd, d as Sd, C as Dd, w as vd, c as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { R as Ib, b as Cb, f as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { g as md, h as yd, a as bd, q as jo, J as Wo, x as wd, d as Sd, C as Dd, w as vd, c as Fd } from "./chunks/super-editor.es-BnRb6ctt.es.js";
|
|
2
|
+
import { R as Ib, b as Cb, f as fb } from "./chunks/super-editor.es-BnRb6ctt.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, C as dt, i as ht, q as ji, l as wt, x as xe, a1 as kd, L as Zt, R as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, N as Us, M as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, Q as GA, m as Ct, D as mi, G as ms, B as re, V as Ld, S as Gd, W as Td, K as qi, O as Es, E as ar, P as Ud, J as Hd, T as Pd, b as ye, o as fe, t as yi, v as bi, y as zl, f as We, z as ri, e as Ze, u 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-D254cI7X.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-ChtTJmXO.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-B_4G-Rse.es.js"
|
|
16792
16792
|
).then((d) => d.i), a = await import(
|
|
16793
16793
|
/*webpackIgnore: true*/
|
|
16794
|
-
"./chunks/index-
|
|
16794
|
+
"./chunks/index-C3fK1Y-u.es.js"
|
|
16795
16795
|
).then((d) => d.i), o = await import(
|
|
16796
16796
|
/*webpackIgnore: true*/
|
|
16797
|
-
"./chunks/url-
|
|
16797
|
+
"./chunks/url-D6ObD5O4.es.js"
|
|
16798
16798
|
).then((d) => d.u);
|
|
16799
16799
|
let l, h;
|
|
16800
16800
|
try {
|
|
@@ -32693,7 +32693,7 @@ class hb extends eg {
|
|
|
32693
32693
|
this.config = {
|
|
32694
32694
|
...this.config,
|
|
32695
32695
|
...t
|
|
32696
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.
|
|
32696
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.49", 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);
|
|
32697
32697
|
}
|
|
32698
32698
|
get requiredNumberOfEditors() {
|
|
32699
32699
|
return this.superdocStore.documents.filter((t) => t.type === on).length;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -23908,7 +23908,7 @@ Actual: ` + p3.attribValue
|
|
|
23908
23908
|
return;
|
|
23909
23909
|
}
|
|
23910
23910
|
}
|
|
23911
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23911
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.49") {
|
|
23912
23912
|
const n = "docProps/custom.xml";
|
|
23913
23913
|
e[n] || (e[n] = Bu$2());
|
|
23914
23914
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24169,7 +24169,7 @@ Actual: ` + p3.attribValue
|
|
|
24169
24169
|
function Bu$2() {
|
|
24170
24170
|
return Wf$2;
|
|
24171
24171
|
}
|
|
24172
|
-
function ku$2(r22 = 2, e = "0.10.
|
|
24172
|
+
function ku$2(r22 = 2, e = "0.10.49") {
|
|
24173
24173
|
return {
|
|
24174
24174
|
type: "element",
|
|
24175
24175
|
name: "property",
|
|
@@ -36388,6 +36388,12 @@ Actual: ` + p3.attribValue
|
|
|
36388
36388
|
setToolbar(n) {
|
|
36389
36389
|
this.toolbar = n;
|
|
36390
36390
|
}
|
|
36391
|
+
/**
|
|
36392
|
+
* Focus the editor.
|
|
36393
|
+
*/
|
|
36394
|
+
focus() {
|
|
36395
|
+
this.view?.focus();
|
|
36396
|
+
}
|
|
36391
36397
|
/**
|
|
36392
36398
|
* Get the editor state.
|
|
36393
36399
|
*/
|
|
@@ -36673,7 +36679,7 @@ Actual: ` + p3.attribValue
|
|
|
36673
36679
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36674
36680
|
*/
|
|
36675
36681
|
processCollaborationMigrations() {
|
|
36676
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36682
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.49"), !this.options.ydoc) return;
|
|
36677
36683
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36678
36684
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36679
36685
|
const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -54478,6 +54484,7 @@ ${t}
|
|
|
54478
54484
|
* @param {Object} argument is the argument passed to the command
|
|
54479
54485
|
*/
|
|
54480
54486
|
emitCommand({ item: o, argument: n }) {
|
|
54487
|
+
this.activeEditor?.focus();
|
|
54481
54488
|
const { command: e } = o;
|
|
54482
54489
|
if (e) {
|
|
54483
54490
|
if (this.log("(emmitCommand) Command:", e, o, n), e in Se(this, he))
|
|
@@ -69882,7 +69889,7 @@ ${style2}
|
|
|
69882
69889
|
this.config.colors = shuffleArray(this.config.colors);
|
|
69883
69890
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
69884
69891
|
this.colorIndex = 0;
|
|
69885
|
-
this.version = "0.10.
|
|
69892
|
+
this.version = "0.10.49";
|
|
69886
69893
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
69887
69894
|
this.superdocId = config.superdocId || v4();
|
|
69888
69895
|
this.colors = this.config.colors;
|