superdoc 2.25.0-next.10 → 2.25.0-next.12
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.25.0-next.
|
|
22
|
+
superdocVersion: "2.25.0-next.12",
|
|
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.25.0-next.
|
|
21
|
+
superdocVersion: "2.25.0-next.12",
|
|
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
|
@@ -304,7 +304,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
304
304
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
305
305
|
function getSuperdocVersion() {
|
|
306
306
|
try {
|
|
307
|
-
return "2.25.0-next.
|
|
307
|
+
return "2.25.0-next.12";
|
|
308
308
|
} catch {
|
|
309
309
|
return "unknown";
|
|
310
310
|
}
|
|
@@ -8515,6 +8515,7 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8515
8515
|
const commentCanonicalId = trackedComment.trackedChangeCanonicalId != null ? String(trackedComment.trackedChangeCanonicalId) : null;
|
|
8516
8516
|
const commentAliasIds = getCommentAliasIds(trackedComment);
|
|
8517
8517
|
const hasCompatibleStory = trackedChangeStoryKeysAreCompatible(getTrackedChangeStoryKey(trackedComment), incomingStoryKey);
|
|
8518
|
+
if (normalizedTrackedChangeCanonicalId && commentCanonicalId && normalizedTrackedChangeCanonicalId !== commentCanonicalId) return false;
|
|
8518
8519
|
if (hasCompatibleStory && commentAliasIds.includes(normalizedChangeId)) return true;
|
|
8519
8520
|
const incomingAliasIds = new Set(normalizedTrackedChangePositionAliases ?? []);
|
|
8520
8521
|
if (hasCompatibleStory && incomingAliasIds.size > 0 && [
|
|
@@ -10641,11 +10642,8 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
10641
10642
|
return normalizedDecision === "accept" && type === "insertion" || normalizedDecision === "reject" && type === "deletion";
|
|
10642
10643
|
};
|
|
10643
10644
|
const getBodyTrackedChangeIdentityIds = (comment) => {
|
|
10644
|
-
|
|
10645
|
-
const canonicalId = normalizeCommentId(comment.trackedChangeCanonicalId);
|
|
10646
|
-
return [commentId, ...!(canonicalId && canonicalId !== commentId) ? [
|
|
10645
|
+
return [normalizeCommentId(comment.commentId), ...!normalizeCommentId(comment.trackedChangeCanonicalId) ? [
|
|
10647
10646
|
comment.importedId,
|
|
10648
|
-
canonicalId,
|
|
10649
10647
|
comment.trackedChangeAnchorKey,
|
|
10650
10648
|
...normalizeTrackedChangePositionAliases(comment.trackedChangePositionAliases)
|
|
10651
10649
|
] : []].map((id) => normalizeCommentId(id)).filter(Boolean);
|
|
@@ -46827,7 +46825,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46827
46825
|
}
|
|
46828
46826
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46829
46827
|
this.colorIndex = 0;
|
|
46830
|
-
this.version = "2.25.0-next.
|
|
46828
|
+
this.version = "2.25.0-next.12";
|
|
46831
46829
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46832
46830
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46833
46831
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
302
302
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
303
303
|
function getSuperdocVersion() {
|
|
304
304
|
try {
|
|
305
|
-
return "2.25.0-next.
|
|
305
|
+
return "2.25.0-next.12";
|
|
306
306
|
} catch {
|
|
307
307
|
return "unknown";
|
|
308
308
|
}
|
|
@@ -8513,6 +8513,7 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8513
8513
|
const commentCanonicalId = trackedComment.trackedChangeCanonicalId != null ? String(trackedComment.trackedChangeCanonicalId) : null;
|
|
8514
8514
|
const commentAliasIds = getCommentAliasIds(trackedComment);
|
|
8515
8515
|
const hasCompatibleStory = trackedChangeStoryKeysAreCompatible(getTrackedChangeStoryKey(trackedComment), incomingStoryKey);
|
|
8516
|
+
if (normalizedTrackedChangeCanonicalId && commentCanonicalId && normalizedTrackedChangeCanonicalId !== commentCanonicalId) return false;
|
|
8516
8517
|
if (hasCompatibleStory && commentAliasIds.includes(normalizedChangeId)) return true;
|
|
8517
8518
|
const incomingAliasIds = new Set(normalizedTrackedChangePositionAliases ?? []);
|
|
8518
8519
|
if (hasCompatibleStory && incomingAliasIds.size > 0 && [
|
|
@@ -10639,11 +10640,8 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
10639
10640
|
return normalizedDecision === "accept" && type === "insertion" || normalizedDecision === "reject" && type === "deletion";
|
|
10640
10641
|
};
|
|
10641
10642
|
const getBodyTrackedChangeIdentityIds = (comment) => {
|
|
10642
|
-
|
|
10643
|
-
const canonicalId = normalizeCommentId(comment.trackedChangeCanonicalId);
|
|
10644
|
-
return [commentId, ...!(canonicalId && canonicalId !== commentId) ? [
|
|
10643
|
+
return [normalizeCommentId(comment.commentId), ...!normalizeCommentId(comment.trackedChangeCanonicalId) ? [
|
|
10645
10644
|
comment.importedId,
|
|
10646
|
-
canonicalId,
|
|
10647
10645
|
comment.trackedChangeAnchorKey,
|
|
10648
10646
|
...normalizeTrackedChangePositionAliases(comment.trackedChangePositionAliases)
|
|
10649
10647
|
] : []].map((id) => normalizeCommentId(id)).filter(Boolean);
|
|
@@ -46756,7 +46754,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46756
46754
|
}
|
|
46757
46755
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46758
46756
|
this.colorIndex = 0;
|
|
46759
|
-
this.version = "2.25.0-next.
|
|
46757
|
+
this.version = "2.25.0-next.12";
|
|
46760
46758
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46761
46759
|
this.superdocId = config.superdocId || v4();
|
|
46762
46760
|
this.colors = this.config.colors ?? [];
|