superdoc 2.0.0-next.48 → 2.0.0-next.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.
|
@@ -7,7 +7,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
7
7
|
var PRIVATE_ENGINE_INFO = (0, __superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
8
8
|
var ENGINE_INFO = Object.freeze({
|
|
9
9
|
...PRIVATE_ENGINE_INFO,
|
|
10
|
-
superdocVersion: "2.0.0-next.
|
|
10
|
+
superdocVersion: "2.0.0-next.49",
|
|
11
11
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
12
12
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
13
13
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -6,7 +6,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
6
6
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
7
7
|
var ENGINE_INFO = Object.freeze({
|
|
8
8
|
...PRIVATE_ENGINE_INFO,
|
|
9
|
-
superdocVersion: "2.0.0-next.
|
|
9
|
+
superdocVersion: "2.0.0-next.49",
|
|
10
10
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
11
11
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
12
12
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
package/dist/superdoc.cjs
CHANGED
|
@@ -3609,9 +3609,11 @@ const useCommentsStore = defineStore("comments", () => {
|
|
|
3609
3609
|
const commentAnchorKey = trackedComment.trackedChangeAnchorKey != null ? String(trackedComment.trackedChangeAnchorKey) : null;
|
|
3610
3610
|
const commentId = trackedComment.commentId != null ? String(trackedComment.commentId) : null;
|
|
3611
3611
|
const importedId$1 = trackedComment.importedId != null ? String(trackedComment.importedId) : null;
|
|
3612
|
-
if (commentId === normalizedChangeId || importedId$1 === normalizedChangeId || normalizedImportedId !== void 0 && normalizedImportedId != null && importedId$1 === normalizedImportedId) return true;
|
|
3613
3612
|
const commentCanonicalId = trackedComment.trackedChangeCanonicalId != null ? String(trackedComment.trackedChangeCanonicalId) : null;
|
|
3614
|
-
|
|
3613
|
+
const hasSyntheticSideIdentity = normalizedTrackedChangeCanonicalId && normalizedTrackedChangeCanonicalId !== normalizedChangeId || commentCanonicalId && commentCanonicalId !== commentId;
|
|
3614
|
+
if (commentId === normalizedChangeId) return true;
|
|
3615
|
+
if (!hasSyntheticSideIdentity && (importedId$1 === normalizedChangeId || normalizedImportedId !== void 0 && normalizedImportedId != null && importedId$1 === normalizedImportedId)) return true;
|
|
3616
|
+
if (hasSyntheticSideIdentity) return false;
|
|
3615
3617
|
if (normalizedAnchorKey && commentAnchorKey) return commentAnchorKey === normalizedAnchorKey;
|
|
3616
3618
|
return false;
|
|
3617
3619
|
};
|
|
@@ -34710,7 +34712,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
34710
34712
|
this.config.colors = shuffleArray(this.config.colors);
|
|
34711
34713
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
34712
34714
|
this.colorIndex = 0;
|
|
34713
|
-
this.version = "2.0.0-next.
|
|
34715
|
+
this.version = "2.0.0-next.49";
|
|
34714
34716
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
34715
34717
|
this.superdocId = config.superdocId || require_uuid.v4_default();
|
|
34716
34718
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -3605,9 +3605,11 @@ const useCommentsStore = defineStore("comments", () => {
|
|
|
3605
3605
|
const commentAnchorKey = trackedComment.trackedChangeAnchorKey != null ? String(trackedComment.trackedChangeAnchorKey) : null;
|
|
3606
3606
|
const commentId = trackedComment.commentId != null ? String(trackedComment.commentId) : null;
|
|
3607
3607
|
const importedId$1 = trackedComment.importedId != null ? String(trackedComment.importedId) : null;
|
|
3608
|
-
if (commentId === normalizedChangeId || importedId$1 === normalizedChangeId || normalizedImportedId !== void 0 && normalizedImportedId != null && importedId$1 === normalizedImportedId) return true;
|
|
3609
3608
|
const commentCanonicalId = trackedComment.trackedChangeCanonicalId != null ? String(trackedComment.trackedChangeCanonicalId) : null;
|
|
3610
|
-
|
|
3609
|
+
const hasSyntheticSideIdentity = normalizedTrackedChangeCanonicalId && normalizedTrackedChangeCanonicalId !== normalizedChangeId || commentCanonicalId && commentCanonicalId !== commentId;
|
|
3610
|
+
if (commentId === normalizedChangeId) return true;
|
|
3611
|
+
if (!hasSyntheticSideIdentity && (importedId$1 === normalizedChangeId || normalizedImportedId !== void 0 && normalizedImportedId != null && importedId$1 === normalizedImportedId)) return true;
|
|
3612
|
+
if (hasSyntheticSideIdentity) return false;
|
|
3611
3613
|
if (normalizedAnchorKey && commentAnchorKey) return commentAnchorKey === normalizedAnchorKey;
|
|
3612
3614
|
return false;
|
|
3613
3615
|
};
|
|
@@ -34647,7 +34649,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
34647
34649
|
this.config.colors = shuffleArray(this.config.colors);
|
|
34648
34650
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
34649
34651
|
this.colorIndex = 0;
|
|
34650
|
-
this.version = "2.0.0-next.
|
|
34652
|
+
this.version = "2.0.0-next.49";
|
|
34651
34653
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
34652
34654
|
this.superdocId = config.superdocId || v4_default();
|
|
34653
34655
|
this.colors = this.config.colors ?? [];
|