@harbour-enterprises/superdoc 0.11.47 → 0.11.48
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-caxTRCtS.cjs → super-editor.es-QPtPXoJ-.cjs} +4 -4
- package/dist/chunks/{super-editor.es-C03S4Glp.es.js → super-editor.es-URZC9eM6.es.js} +20 -3
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DE9i_jAD.js → converter-CmRoa_i9.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-B8mHqLOC.js → docx-zipper-Bl-uAN1u.js} +1 -1
- package/dist/super-editor/chunks/{editor-BLPIzC2o.js → editor-BpfdiU4_.js} +20 -3
- package/dist/super-editor/chunks/{toolbar-CWugh8sl.js → toolbar-7GhL4qam.js} +2 -2
- 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/extensions/field-annotation/field-annotation.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 +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +21 -4
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Y as md, g as yd, c as bd, n as jo, F as Wo, H as wd, x as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { O as Ib, X as Cb, R as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { Y as md, g as yd, c as bd, n as jo, F as Wo, H as wd, x as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-URZC9eM6.es.js";
|
|
2
|
+
import { O as Ib, X as Cb, R as fb } from "./chunks/super-editor.es-URZC9eM6.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-DKS68Dra.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-OpmRHhd4.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -32717,7 +32717,7 @@ class hb extends eg {
|
|
|
32717
32717
|
this.config = {
|
|
32718
32718
|
...this.config,
|
|
32719
32719
|
...t
|
|
32720
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.
|
|
32720
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.48", 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();
|
|
32721
32721
|
}
|
|
32722
32722
|
/**
|
|
32723
32723
|
* Get the number of editors that are required for this superdoc
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -24184,7 +24184,7 @@ Actual: ` + p3.attribValue
|
|
|
24184
24184
|
return;
|
|
24185
24185
|
}
|
|
24186
24186
|
}
|
|
24187
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
24187
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.48") {
|
|
24188
24188
|
const n = "docProps/custom.xml";
|
|
24189
24189
|
e[n] || (e[n] = Bu$2());
|
|
24190
24190
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24447,7 +24447,7 @@ Actual: ` + p3.attribValue
|
|
|
24447
24447
|
function Bu$2() {
|
|
24448
24448
|
return Wf$1;
|
|
24449
24449
|
}
|
|
24450
|
-
function ku$2(r22 = 2, e = "0.11.
|
|
24450
|
+
function ku$2(r22 = 2, e = "0.11.48") {
|
|
24451
24451
|
return {
|
|
24452
24452
|
type: "element",
|
|
24453
24453
|
name: "property",
|
|
@@ -37245,7 +37245,7 @@ Actual: ` + p3.attribValue
|
|
|
37245
37245
|
* @returns {Object | void} Migration results
|
|
37246
37246
|
*/
|
|
37247
37247
|
processCollaborationMigrations() {
|
|
37248
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
37248
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.48"), !this.options.ydoc) return;
|
|
37249
37249
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
37250
37250
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
37251
37251
|
const o = hl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -42557,6 +42557,23 @@ Actual: ` + p3.attribValue
|
|
|
42557
42557
|
const { from: a } = o.selection;
|
|
42558
42558
|
s.addFieldAnnotation(a, t, e);
|
|
42559
42559
|
},
|
|
42560
|
+
/**
|
|
42561
|
+
* Replace field annotation.
|
|
42562
|
+
* @param fieldsArray array of fields with attrs to add as annotation.
|
|
42563
|
+
* @example
|
|
42564
|
+
* editor.commands.replaceWithFieldAnnotation([
|
|
42565
|
+
* from: 20,
|
|
42566
|
+
* to: 45,
|
|
42567
|
+
* attrs: {
|
|
42568
|
+
* fieldType: 'TEXTINPUT'
|
|
42569
|
+
* fieldColor: '#980043'
|
|
42570
|
+
* }
|
|
42571
|
+
* ])
|
|
42572
|
+
*/
|
|
42573
|
+
replaceWithFieldAnnotation: (t) => ({ editor: e, dispatch: n, state: r, tr: o }) => (n && (o.setMeta("fieldAnnotationReplace", true), t.forEach((i3) => {
|
|
42574
|
+
let { from: s, to: a, attrs: l } = i3, { schema: c3 } = e, d = o.mapping.map(s), u = o.mapping.map(a), f = c3.nodes[this.name].create({ ...l }, null, null);
|
|
42575
|
+
o.replaceWith(d, u, f);
|
|
42576
|
+
})), true),
|
|
42560
42577
|
/**
|
|
42561
42578
|
* Update annotations associated with a field.
|
|
42562
42579
|
* @param fieldIdOrArray The field ID or array of field IDs.
|
|
@@ -71534,7 +71551,7 @@ ${style2}
|
|
|
71534
71551
|
this.config.colors = shuffleArray(this.config.colors);
|
|
71535
71552
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
71536
71553
|
this.colorIndex = 0;
|
|
71537
|
-
this.version = "0.11.
|
|
71554
|
+
this.version = "0.11.48";
|
|
71538
71555
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
71539
71556
|
this.superdocId = config.superdocId || v4();
|
|
71540
71557
|
this.colors = this.config.colors;
|