@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.
@@ -16719,7 +16719,7 @@ const ys = class V1 {
16719
16719
  return;
16720
16720
  }
16721
16721
  }
16722
- static updateDocumentVersion(e = this.convertedXml, n = "0.11.29") {
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.29") {
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.29"), !this.options.ydoc) return;
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
- * @param {Array[Object]} annotationValues
29628
+ *
29629
+ * @param {FieldValue[]} annotationValues
29629
29630
  * @returns {void}
29630
29631
  */
29631
- prepareForAnnotations(e = [], n = []) {
29632
- const { tr: r } = this.state, { dispatch: o } = this.view, i = ld.processTables({ editor: this, tr: r, annotationValues: e, hiddenIds: n });
29633
- this.view.dispatch(i);
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 {Array[Object]} annotationValues
29639
- * @param {Array[String]} hiddenIds
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;