superdoc 2.13.0-next.5 → 2.13.0-next.6
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.
|
@@ -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.13.0-next.
|
|
22
|
+
superdocVersion: "2.13.0-next.6",
|
|
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.13.0-next.
|
|
21
|
+
superdocVersion: "2.13.0-next.6",
|
|
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/superdoc.cjs
CHANGED
|
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
|
|
|
316
316
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
317
317
|
function getSuperdocVersion() {
|
|
318
318
|
try {
|
|
319
|
-
return "2.13.0-next.
|
|
319
|
+
return "2.13.0-next.6";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -45048,10 +45048,6 @@ function contentControlSelectionKey(selection) {
|
|
|
45048
45048
|
function isV2ActiveEditorFacade(editor) {
|
|
45049
45049
|
return Boolean(editor && typeof editor === "object" && editor.editorVersion === 2);
|
|
45050
45050
|
}
|
|
45051
|
-
function isV2FailClosedExportError(error) {
|
|
45052
|
-
const code = error && typeof error === "object" ? error.code : null;
|
|
45053
|
-
return code === "comment-export-missing-story-reference" || code === "v2-worker-comment-export-mode-unsupported";
|
|
45054
|
-
}
|
|
45055
45051
|
function normalizeActiveEditorDocumentId(documentId) {
|
|
45056
45052
|
return typeof documentId === "string" && documentId.length > 0 ? documentId : null;
|
|
45057
45053
|
}
|
|
@@ -45403,7 +45399,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
45403
45399
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45404
45400
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45405
45401
|
this.colorIndex = 0;
|
|
45406
|
-
this.version = "2.13.0-next.
|
|
45402
|
+
this.version = "2.13.0-next.6";
|
|
45407
45403
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45408
45404
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
45409
45405
|
this.colors = this.config.colors ?? [];
|
|
@@ -47486,7 +47482,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
47486
47482
|
error,
|
|
47487
47483
|
document: doc
|
|
47488
47484
|
});
|
|
47489
|
-
if (isV2Editor
|
|
47485
|
+
if (isV2Editor) throw error;
|
|
47490
47486
|
}
|
|
47491
47487
|
return fallbackDocx();
|
|
47492
47488
|
});
|
package/dist/superdoc.es.js
CHANGED
|
@@ -315,7 +315,7 @@ var shuffleArray = (array) => {
|
|
|
315
315
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
316
316
|
function getSuperdocVersion() {
|
|
317
317
|
try {
|
|
318
|
-
return "2.13.0-next.
|
|
318
|
+
return "2.13.0-next.6";
|
|
319
319
|
} catch {
|
|
320
320
|
return "unknown";
|
|
321
321
|
}
|
|
@@ -44979,10 +44979,6 @@ function contentControlSelectionKey(selection) {
|
|
|
44979
44979
|
function isV2ActiveEditorFacade(editor) {
|
|
44980
44980
|
return Boolean(editor && typeof editor === "object" && editor.editorVersion === 2);
|
|
44981
44981
|
}
|
|
44982
|
-
function isV2FailClosedExportError(error) {
|
|
44983
|
-
const code = error && typeof error === "object" ? error.code : null;
|
|
44984
|
-
return code === "comment-export-missing-story-reference" || code === "v2-worker-comment-export-mode-unsupported";
|
|
44985
|
-
}
|
|
44986
44982
|
function normalizeActiveEditorDocumentId(documentId) {
|
|
44987
44983
|
return typeof documentId === "string" && documentId.length > 0 ? documentId : null;
|
|
44988
44984
|
}
|
|
@@ -45334,7 +45330,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
45334
45330
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45335
45331
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45336
45332
|
this.colorIndex = 0;
|
|
45337
|
-
this.version = "2.13.0-next.
|
|
45333
|
+
this.version = "2.13.0-next.6";
|
|
45338
45334
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45339
45335
|
this.superdocId = config.superdocId || v4();
|
|
45340
45336
|
this.colors = this.config.colors ?? [];
|
|
@@ -47417,7 +47413,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
47417
47413
|
error,
|
|
47418
47414
|
document: doc
|
|
47419
47415
|
});
|
|
47420
|
-
if (isV2Editor
|
|
47416
|
+
if (isV2Editor) throw error;
|
|
47421
47417
|
}
|
|
47422
47418
|
return fallbackDocx();
|
|
47423
47419
|
});
|