@harbour-enterprises/superdoc 0.10.47 → 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.
@@ -16547,7 +16547,7 @@ const hs = class Mv {
16547
16547
  return;
16548
16548
  }
16549
16549
  }
16550
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.47") {
16550
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.49") {
16551
16551
  const r = "docProps/custom.xml";
16552
16552
  e[r] || (e[r] = Dv());
16553
16553
  const o = e["docProps/custom.xml"];
@@ -16808,7 +16808,7 @@ function BT(t) {
16808
16808
  function Dv() {
16809
16809
  return a4;
16810
16810
  }
16811
- function _v(t = 2, e = "0.10.47") {
16811
+ function _v(t = 2, e = "0.10.49") {
16812
16812
  return {
16813
16813
  type: "element",
16814
16814
  name: "property",
@@ -28989,6 +28989,12 @@ const v8 = class Ox extends bM {
28989
28989
  setToolbar(e) {
28990
28990
  this.toolbar = e;
28991
28991
  }
28992
+ /**
28993
+ * Focus the editor.
28994
+ */
28995
+ focus() {
28996
+ this.view?.focus();
28997
+ }
28992
28998
  /**
28993
28999
  * Get the editor state.
28994
29000
  */
@@ -29274,7 +29280,7 @@ const v8 = class Ox extends bM {
29274
29280
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29275
29281
  */
29276
29282
  processCollaborationMigrations() {
29277
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.47"), !this.options.ydoc) return;
29283
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.49"), !this.options.ydoc) return;
29278
29284
  let e = this.options.ydoc.getMap("meta").get("version");
29279
29285
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29280
29286
  const n = sw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -47033,6 +47039,7 @@ class tH extends Wq {
47033
47039
  * @param {Object} argument is the argument passed to the command
47034
47040
  */
47035
47041
  emitCommand({ item: e, argument: n }) {
47042
+ this.activeEditor?.focus();
47036
47043
  const { command: r } = e;
47037
47044
  if (r) {
47038
47045
  if (this.log("(emmitCommand) Command:", r, e, n), r in Dd(this, xs))