@harbour-enterprises/superdoc 0.11.29 → 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/{super-editor.es-CsEQg4xc.es.js → super-editor.es-D8XdnWMu.es.js} +11 -9
- package/dist/chunks/{super-editor.es-Bl9myfzE.cjs → super-editor.es-DkAuD0cl.cjs} +3 -3
- package/dist/core/SuperDoc.d.ts +3 -2
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CJL8YHIz.js → converter-hZK1xKPW.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Bdd3jp6o.js → docx-zipper-DMEmQVkt.js} +1 -1
- package/dist/super-editor/chunks/{editor-DE58B9UE.js → editor-GtdcYA5D.js} +11 -9
- package/dist/super-editor/chunks/{toolbar-lfYkRb7A.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 +26 -26
- package/dist/superdoc.es.js +733 -732
- package/dist/superdoc.umd.js +17 -14
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -16719,7 +16719,7 @@ const ys = class V1 {
|
|
|
16719
16719
|
return;
|
|
16720
16720
|
}
|
|
16721
16721
|
}
|
|
16722
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16722
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.31") {
|
|
16723
16723
|
const r = "docProps/custom.xml";
|
|
16724
16724
|
e[r] || (e[r] = H1());
|
|
16725
16725
|
const o = e["docProps/custom.xml"];
|
|
@@ -16982,7 +16982,7 @@ function tT(t) {
|
|
|
16982
16982
|
function H1() {
|
|
16983
16983
|
return S4;
|
|
16984
16984
|
}
|
|
16985
|
-
function W1(t = 2, e = "0.11.
|
|
16985
|
+
function W1(t = 2, e = "0.11.31") {
|
|
16986
16986
|
return {
|
|
16987
16987
|
type: "element",
|
|
16988
16988
|
name: "property",
|
|
@@ -29585,7 +29585,7 @@ const K_ = class qx extends RM {
|
|
|
29585
29585
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29586
29586
|
*/
|
|
29587
29587
|
processCollaborationMigrations() {
|
|
29588
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29588
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.31"), !this.options.ydoc) return;
|
|
29589
29589
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29590
29590
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29591
29591
|
const n = m0(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -29625,18 +29625,20 @@ const K_ = class qx extends RM {
|
|
|
29625
29625
|
* pre-process the document as needed prior to running in the annotator.
|
|
29626
29626
|
*
|
|
29627
29627
|
* Currently this is only used for table generation but additional pre-processing can be done here.
|
|
29628
|
-
*
|
|
29628
|
+
*
|
|
29629
|
+
* @param {FieldValue[]} annotationValues
|
|
29629
29630
|
* @returns {void}
|
|
29630
29631
|
*/
|
|
29631
|
-
prepareForAnnotations(e = []
|
|
29632
|
-
const { tr:
|
|
29633
|
-
this.view.dispatch(
|
|
29632
|
+
prepareForAnnotations(e = []) {
|
|
29633
|
+
const { tr: n } = this.state, { dispatch: r } = this.view, o = ld.processTables({ editor: this, tr: n, annotationValues: e });
|
|
29634
|
+
this.view.dispatch(o);
|
|
29634
29635
|
}
|
|
29635
29636
|
/**
|
|
29636
29637
|
* Annotate the document with the given annotation values.
|
|
29637
29638
|
*
|
|
29638
|
-
* @param {
|
|
29639
|
-
* @param {
|
|
29639
|
+
* @param {FieldValue[]} annotationValues List of field values to apply.
|
|
29640
|
+
* @param {String[]} hiddenIds List of field ids to remove from the document.
|
|
29641
|
+
* @returns {void}
|
|
29640
29642
|
*/
|
|
29641
29643
|
annotate(e = [], n = []) {
|
|
29642
29644
|
const { state: r, view: o, schema: i } = this;
|