@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.
- package/dist/chunks/{super-editor.es-NJN-yBj5.es.js → super-editor.es-BnRb6ctt.es.js} +10 -3
- package/dist/chunks/{super-editor.es-DcQoeQtX.cjs → super-editor.es-wu4lEYHk.cjs} +4 -4
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-VQAjPXuO.js → converter-BEB_YaL1.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-C3Ih3hdl.js → docx-zipper-1Yx6hAdV.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bcywz3bs.js → editor-Ne_3t5iW.js} +9 -3
- package/dist/super-editor/chunks/{toolbar-D0_6-KRN.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 +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +11 -4
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -16547,7 +16547,7 @@ const hs = class Mv {
|
|
|
16547
16547
|
return;
|
|
16548
16548
|
}
|
|
16549
16549
|
}
|
|
16550
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.10.
|
|
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.
|
|
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.
|
|
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))
|