superdoc 2.7.0-next.13 → 2.7.0-next.14
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/{create-super-doc-ui-C44xPZxz.cjs → create-super-doc-ui-B5nhSKqa.cjs} +11 -3
- package/dist/chunks/{create-super-doc-ui-BTNVc3UD.es.js → create-super-doc-ui-BJ6D4BfN.es.js} +11 -3
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/superdoc.cjs +3 -2
- package/dist/superdoc.es.js +3 -2
- package/dist-cdn/superdoc.min.js +16 -16
- package/package.json +2 -2
|
@@ -8115,11 +8115,19 @@ function createSuperDocUI(options) {
|
|
|
8115
8115
|
try {
|
|
8116
8116
|
if (spec.action === "insert-row-before" || spec.action === "insert-row-after") {
|
|
8117
8117
|
const host = getHost();
|
|
8118
|
-
const
|
|
8119
|
-
if (typeof
|
|
8118
|
+
const tableCommands = ((typeof host?.getHandles === "function" ? host.getHandles() : null)?.editing)?.tables;
|
|
8119
|
+
if (typeof tableCommands?.insertRow !== "function") return false;
|
|
8120
8120
|
const options = editorMutationOptionsForRoute(descriptor.docRoute);
|
|
8121
8121
|
if (options && options.success === false) return options;
|
|
8122
|
-
return options ?
|
|
8122
|
+
return options ? tableCommands.insertRow(input, options) : tableCommands.insertRow(input);
|
|
8123
|
+
}
|
|
8124
|
+
if (spec.action === "insert-column-before" || spec.action === "insert-column-after") {
|
|
8125
|
+
const host = getHost();
|
|
8126
|
+
const tableCommands = ((typeof host?.getHandles === "function" ? host.getHandles() : null)?.editing)?.tables;
|
|
8127
|
+
if (typeof tableCommands?.insertColumn !== "function") return false;
|
|
8128
|
+
const options = editorMutationOptionsForRoute(descriptor.docRoute);
|
|
8129
|
+
if (options && options.success === false) return options;
|
|
8130
|
+
return options ? tableCommands.insertColumn(input, context.rowIndex, options) : tableCommands.insertColumn(input, context.rowIndex);
|
|
8123
8131
|
}
|
|
8124
8132
|
return callEditorMutation(descriptor.docRoute, op, input);
|
|
8125
8133
|
} catch {
|
package/dist/chunks/{create-super-doc-ui-BTNVc3UD.es.js → create-super-doc-ui-BJ6D4BfN.es.js}
RENAMED
|
@@ -8115,11 +8115,19 @@ function createSuperDocUI(options) {
|
|
|
8115
8115
|
try {
|
|
8116
8116
|
if (spec.action === "insert-row-before" || spec.action === "insert-row-after") {
|
|
8117
8117
|
const host = getHost();
|
|
8118
|
-
const
|
|
8119
|
-
if (typeof
|
|
8118
|
+
const tableCommands = ((typeof host?.getHandles === "function" ? host.getHandles() : null)?.editing)?.tables;
|
|
8119
|
+
if (typeof tableCommands?.insertRow !== "function") return false;
|
|
8120
8120
|
const options = editorMutationOptionsForRoute(descriptor.docRoute);
|
|
8121
8121
|
if (options && options.success === false) return options;
|
|
8122
|
-
return options ?
|
|
8122
|
+
return options ? tableCommands.insertRow(input, options) : tableCommands.insertRow(input);
|
|
8123
|
+
}
|
|
8124
|
+
if (spec.action === "insert-column-before" || spec.action === "insert-column-after") {
|
|
8125
|
+
const host = getHost();
|
|
8126
|
+
const tableCommands = ((typeof host?.getHandles === "function" ? host.getHandles() : null)?.editing)?.tables;
|
|
8127
|
+
if (typeof tableCommands?.insertColumn !== "function") return false;
|
|
8128
|
+
const options = editorMutationOptionsForRoute(descriptor.docRoute);
|
|
8129
|
+
if (options && options.success === false) return options;
|
|
8130
|
+
return options ? tableCommands.insertColumn(input, context.rowIndex, options) : tableCommands.insertColumn(input, context.rowIndex);
|
|
8123
8131
|
}
|
|
8124
8132
|
return callEditorMutation(descriptor.docRoute, op, input);
|
|
8125
8133
|
} catch {
|
|
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
19
19
|
var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
20
20
|
var ENGINE_INFO = Object.freeze({
|
|
21
21
|
...PRIVATE_ENGINE_INFO,
|
|
22
|
-
superdocVersion: "2.7.0-next.
|
|
22
|
+
superdocVersion: "2.7.0-next.14",
|
|
23
23
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
24
24
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
25
25
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
18
18
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
19
19
|
var ENGINE_INFO = Object.freeze({
|
|
20
20
|
...PRIVATE_ENGINE_INFO,
|
|
21
|
-
superdocVersion: "2.7.0-next.
|
|
21
|
+
superdocVersion: "2.7.0-next.14",
|
|
22
22
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
23
23
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
24
24
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
package/dist/public/ui-react.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-B5nhSKqa.cjs");
|
|
3
3
|
let react = require("react");
|
|
4
4
|
//#region src/public/ui/react.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-BJ6D4BfN.es.js";
|
|
2
2
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
3
3
|
//#region src/public/ui/react.ts
|
|
4
4
|
/**
|
package/dist/public/ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-B5nhSKqa.cjs");
|
|
3
3
|
exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
|
|
4
4
|
exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
|
|
5
5
|
exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
|
package/dist/public/ui.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-BJ6D4BfN.es.js";
|
|
2
2
|
export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
|
package/dist/superdoc.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
|
4
4
|
const require_eventemitter3 = require("./chunks/eventemitter3-D38u8ta_.cjs");
|
|
5
5
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
6
6
|
const require_jszip = require("./chunks/jszip-RC64TPzL.cjs");
|
|
7
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
7
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-B5nhSKqa.cjs");
|
|
8
8
|
const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-SDR04tiH.cjs");
|
|
9
9
|
const require_constants = require("./chunks/constants-DpXuDx_g.cjs");
|
|
10
10
|
let vue = require("vue");
|
|
@@ -41611,6 +41611,7 @@ var makeDefaultItems = ({ superToolbar, toolbarIcons, toolbarTexts, toolbarFonts
|
|
|
41611
41611
|
item: tableActionsItem,
|
|
41612
41612
|
argument: { command }
|
|
41613
41613
|
});
|
|
41614
|
+
refocusEditorSurface(superToolbar);
|
|
41614
41615
|
}
|
|
41615
41616
|
});
|
|
41616
41617
|
}
|
|
@@ -43525,7 +43526,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
43525
43526
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43526
43527
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43527
43528
|
this.colorIndex = 0;
|
|
43528
|
-
this.version = "2.7.0-next.
|
|
43529
|
+
this.version = "2.7.0-next.14";
|
|
43529
43530
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43530
43531
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
43531
43532
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
|
3
3
|
import { t as import_eventemitter3 } from "./chunks/eventemitter3-CMOjDs74.es.js";
|
|
4
4
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
5
5
|
import { a as init_dist$1, i as global, n as init_dist$2, o as Buffer, r as process$1, s as init_dist, t as require_jszip_min } from "./chunks/jszip-VxCFV9YS.es.js";
|
|
6
|
-
import { a as DOM_CLASS_NAMES, i as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-
|
|
6
|
+
import { a as DOM_CLASS_NAMES, i as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-BJ6D4BfN.es.js";
|
|
7
7
|
import { t as _plugin_vue_export_helper_default } from "./chunks/_plugin-vue_export-helper-BOaGB7Aw.es.js";
|
|
8
8
|
import { t as PDF_TO_CSS_UNITS } from "./chunks/constants-B6VBlmKp.es.js";
|
|
9
9
|
import * as Vue from "vue";
|
|
@@ -41544,6 +41544,7 @@ var makeDefaultItems = ({ superToolbar, toolbarIcons, toolbarTexts, toolbarFonts
|
|
|
41544
41544
|
item: tableActionsItem,
|
|
41545
41545
|
argument: { command }
|
|
41546
41546
|
});
|
|
41547
|
+
refocusEditorSurface(superToolbar);
|
|
41547
41548
|
}
|
|
41548
41549
|
});
|
|
41549
41550
|
}
|
|
@@ -43458,7 +43459,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
43458
43459
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43459
43460
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43460
43461
|
this.colorIndex = 0;
|
|
43461
|
-
this.version = "2.7.0-next.
|
|
43462
|
+
this.version = "2.7.0-next.14";
|
|
43462
43463
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43463
43464
|
this.superdocId = config.superdocId || v4();
|
|
43464
43465
|
this.colors = this.config.colors ?? [];
|