superdoc 2.0.0-next.47 → 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.
- package/dist/chunks/{create-super-doc-ui-Dk6T01KE.cjs → create-super-doc-ui-BNo2DvD1.cjs} +43 -2
- package/dist/chunks/{create-super-doc-ui-CKyCKKdl.es.js → create-super-doc-ui-BmtUtDDR.es.js} +43 -2
- 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 +6 -4
- package/dist/superdoc.es.js +6 -4
- package/dist-cdn/superdoc.min.js +35 -35
- package/package.json +2 -2
|
@@ -4814,7 +4814,11 @@ function createSuperDocUI(options) {
|
|
|
4814
4814
|
if (mirroredEditCommandState) {
|
|
4815
4815
|
const shippedStatus = mirroredEditCommandState.shippedStatus;
|
|
4816
4816
|
const supported = shippedStatus !== "not-shipped" && shippedStatus !== "disabled";
|
|
4817
|
-
const
|
|
4817
|
+
const mirroredEnabled = typeof mirroredEditCommandState.enabled === "boolean" ? mirroredEditCommandState.enabled : true;
|
|
4818
|
+
const isHistoryCommand = id === "undo" || id === "redo";
|
|
4819
|
+
const historyUnread = isHistoryCommand && mirroredEditCommandState.historyResolved === false;
|
|
4820
|
+
const isEmptyHistoryStack = isHistoryCommand && supported && mirroredEnabled === false && mirroredEditCommandState.reason === null && !historyUnread;
|
|
4821
|
+
const reason = mirroredEditCommandState.reason === void 0 ? void 0 : isEmptyHistoryStack ? SUPERDOC_UI_REASONS.historyEmpty : historyUnread ? SUPERDOC_UI_REASONS.notReady : coerceSuperDocUIReason(mirroredEditCommandState.reason, SUPERDOC_UI_REASONS.commandUnsupported);
|
|
4818
4822
|
if (descriptor.mutates && readonly) return normalizeCommandState({
|
|
4819
4823
|
enabled: false,
|
|
4820
4824
|
active: false,
|
|
@@ -4822,7 +4826,7 @@ function createSuperDocUI(options) {
|
|
|
4822
4826
|
reason: SUPERDOC_UI_REASONS.documentReadonly
|
|
4823
4827
|
}, "builtin");
|
|
4824
4828
|
return normalizeCommandState({
|
|
4825
|
-
enabled: supported &&
|
|
4829
|
+
enabled: supported && mirroredEnabled,
|
|
4826
4830
|
active: false,
|
|
4827
4831
|
supported,
|
|
4828
4832
|
reason
|
|
@@ -5747,6 +5751,37 @@ function createSuperDocUI(options) {
|
|
|
5747
5751
|
};
|
|
5748
5752
|
let currentHostSelectionSource = null;
|
|
5749
5753
|
let detachHostSelection = null;
|
|
5754
|
+
let currentEditCommandsSource = null;
|
|
5755
|
+
let detachEditCommands = null;
|
|
5756
|
+
let editCommandsRecomputeQueued = false;
|
|
5757
|
+
const requestEditCommandsRecompute = () => {
|
|
5758
|
+
if (disposed || editCommandsRecomputeQueued) return;
|
|
5759
|
+
editCommandsRecomputeQueued = true;
|
|
5760
|
+
const run = () => {
|
|
5761
|
+
if (!editCommandsRecomputeQueued) return;
|
|
5762
|
+
editCommandsRecomputeQueued = false;
|
|
5763
|
+
if (disposed) return;
|
|
5764
|
+
recompute();
|
|
5765
|
+
};
|
|
5766
|
+
if (typeof queueMicrotask === "function") queueMicrotask(run);
|
|
5767
|
+
else Promise.resolve().then(run);
|
|
5768
|
+
};
|
|
5769
|
+
const syncEditCommandsSubscription = () => {
|
|
5770
|
+
const next = getEditCommands();
|
|
5771
|
+
if (next === currentEditCommandsSource) return;
|
|
5772
|
+
if (detachEditCommands) {
|
|
5773
|
+
detachEditCommands();
|
|
5774
|
+
detachEditCommands = null;
|
|
5775
|
+
}
|
|
5776
|
+
currentEditCommandsSource = next;
|
|
5777
|
+
if (!next || typeof next.subscribe !== "function") return;
|
|
5778
|
+
try {
|
|
5779
|
+
const unsubscribe = next.subscribe(() => requestEditCommandsRecompute());
|
|
5780
|
+
if (typeof unsubscribe === "function") detachEditCommands = unsubscribe;
|
|
5781
|
+
} catch {
|
|
5782
|
+
currentEditCommandsSource = null;
|
|
5783
|
+
}
|
|
5784
|
+
};
|
|
5750
5785
|
let currentHostReviewSource = null;
|
|
5751
5786
|
let detachHostReview = null;
|
|
5752
5787
|
let currentHostEventsSource = null;
|
|
@@ -5941,8 +5976,10 @@ function createSuperDocUI(options) {
|
|
|
5941
5976
|
};
|
|
5942
5977
|
const recompute = () => {
|
|
5943
5978
|
if (disposed) return;
|
|
5979
|
+
editCommandsRecomputeQueued = false;
|
|
5944
5980
|
syncCoordinatorEditor();
|
|
5945
5981
|
syncHostSelectionSubscription();
|
|
5982
|
+
syncEditCommandsSubscription();
|
|
5946
5983
|
syncHostReviewSubscription();
|
|
5947
5984
|
syncDocumentSelectionFallbackSubscription();
|
|
5948
5985
|
syncHostEventsSubscription();
|
|
@@ -5977,6 +6014,7 @@ function createSuperDocUI(options) {
|
|
|
5977
6014
|
};
|
|
5978
6015
|
attach(superdoc, HOST_EVENTS);
|
|
5979
6016
|
syncHostSelectionSubscription();
|
|
6017
|
+
syncEditCommandsSubscription();
|
|
5980
6018
|
syncHostReviewSubscription();
|
|
5981
6019
|
syncDocumentSelectionFallbackSubscription();
|
|
5982
6020
|
syncHostEventsSubscription();
|
|
@@ -9049,6 +9087,9 @@ function createSuperDocUI(options) {
|
|
|
9049
9087
|
if (detachHostSelection) detachHostSelection();
|
|
9050
9088
|
detachHostSelection = null;
|
|
9051
9089
|
currentHostSelectionSource = null;
|
|
9090
|
+
if (detachEditCommands) detachEditCommands();
|
|
9091
|
+
detachEditCommands = null;
|
|
9092
|
+
currentEditCommandsSource = null;
|
|
9052
9093
|
if (detachHostReview) detachHostReview();
|
|
9053
9094
|
detachHostReview = null;
|
|
9054
9095
|
currentHostReviewSource = null;
|
package/dist/chunks/{create-super-doc-ui-CKyCKKdl.es.js → create-super-doc-ui-BmtUtDDR.es.js}
RENAMED
|
@@ -4592,7 +4592,11 @@ function createSuperDocUI(options) {
|
|
|
4592
4592
|
if (mirroredEditCommandState) {
|
|
4593
4593
|
const shippedStatus = mirroredEditCommandState.shippedStatus;
|
|
4594
4594
|
const supported = shippedStatus !== "not-shipped" && shippedStatus !== "disabled";
|
|
4595
|
-
const
|
|
4595
|
+
const mirroredEnabled = typeof mirroredEditCommandState.enabled === "boolean" ? mirroredEditCommandState.enabled : true;
|
|
4596
|
+
const isHistoryCommand = id === "undo" || id === "redo";
|
|
4597
|
+
const historyUnread = isHistoryCommand && mirroredEditCommandState.historyResolved === false;
|
|
4598
|
+
const isEmptyHistoryStack = isHistoryCommand && supported && mirroredEnabled === false && mirroredEditCommandState.reason === null && !historyUnread;
|
|
4599
|
+
const reason = mirroredEditCommandState.reason === void 0 ? void 0 : isEmptyHistoryStack ? SUPERDOC_UI_REASONS.historyEmpty : historyUnread ? SUPERDOC_UI_REASONS.notReady : coerceSuperDocUIReason(mirroredEditCommandState.reason, SUPERDOC_UI_REASONS.commandUnsupported);
|
|
4596
4600
|
if (descriptor.mutates && readonly) return normalizeCommandState({
|
|
4597
4601
|
enabled: false,
|
|
4598
4602
|
active: false,
|
|
@@ -4600,7 +4604,7 @@ function createSuperDocUI(options) {
|
|
|
4600
4604
|
reason: SUPERDOC_UI_REASONS.documentReadonly
|
|
4601
4605
|
}, "builtin");
|
|
4602
4606
|
return normalizeCommandState({
|
|
4603
|
-
enabled: supported &&
|
|
4607
|
+
enabled: supported && mirroredEnabled,
|
|
4604
4608
|
active: false,
|
|
4605
4609
|
supported,
|
|
4606
4610
|
reason
|
|
@@ -5525,6 +5529,37 @@ function createSuperDocUI(options) {
|
|
|
5525
5529
|
};
|
|
5526
5530
|
let currentHostSelectionSource = null;
|
|
5527
5531
|
let detachHostSelection = null;
|
|
5532
|
+
let currentEditCommandsSource = null;
|
|
5533
|
+
let detachEditCommands = null;
|
|
5534
|
+
let editCommandsRecomputeQueued = false;
|
|
5535
|
+
const requestEditCommandsRecompute = () => {
|
|
5536
|
+
if (disposed || editCommandsRecomputeQueued) return;
|
|
5537
|
+
editCommandsRecomputeQueued = true;
|
|
5538
|
+
const run = () => {
|
|
5539
|
+
if (!editCommandsRecomputeQueued) return;
|
|
5540
|
+
editCommandsRecomputeQueued = false;
|
|
5541
|
+
if (disposed) return;
|
|
5542
|
+
recompute();
|
|
5543
|
+
};
|
|
5544
|
+
if (typeof queueMicrotask === "function") queueMicrotask(run);
|
|
5545
|
+
else Promise.resolve().then(run);
|
|
5546
|
+
};
|
|
5547
|
+
const syncEditCommandsSubscription = () => {
|
|
5548
|
+
const next = getEditCommands();
|
|
5549
|
+
if (next === currentEditCommandsSource) return;
|
|
5550
|
+
if (detachEditCommands) {
|
|
5551
|
+
detachEditCommands();
|
|
5552
|
+
detachEditCommands = null;
|
|
5553
|
+
}
|
|
5554
|
+
currentEditCommandsSource = next;
|
|
5555
|
+
if (!next || typeof next.subscribe !== "function") return;
|
|
5556
|
+
try {
|
|
5557
|
+
const unsubscribe = next.subscribe(() => requestEditCommandsRecompute());
|
|
5558
|
+
if (typeof unsubscribe === "function") detachEditCommands = unsubscribe;
|
|
5559
|
+
} catch {
|
|
5560
|
+
currentEditCommandsSource = null;
|
|
5561
|
+
}
|
|
5562
|
+
};
|
|
5528
5563
|
let currentHostReviewSource = null;
|
|
5529
5564
|
let detachHostReview = null;
|
|
5530
5565
|
let currentHostEventsSource = null;
|
|
@@ -5719,8 +5754,10 @@ function createSuperDocUI(options) {
|
|
|
5719
5754
|
};
|
|
5720
5755
|
const recompute = () => {
|
|
5721
5756
|
if (disposed) return;
|
|
5757
|
+
editCommandsRecomputeQueued = false;
|
|
5722
5758
|
syncCoordinatorEditor();
|
|
5723
5759
|
syncHostSelectionSubscription();
|
|
5760
|
+
syncEditCommandsSubscription();
|
|
5724
5761
|
syncHostReviewSubscription();
|
|
5725
5762
|
syncDocumentSelectionFallbackSubscription();
|
|
5726
5763
|
syncHostEventsSubscription();
|
|
@@ -5755,6 +5792,7 @@ function createSuperDocUI(options) {
|
|
|
5755
5792
|
};
|
|
5756
5793
|
attach(superdoc, HOST_EVENTS);
|
|
5757
5794
|
syncHostSelectionSubscription();
|
|
5795
|
+
syncEditCommandsSubscription();
|
|
5758
5796
|
syncHostReviewSubscription();
|
|
5759
5797
|
syncDocumentSelectionFallbackSubscription();
|
|
5760
5798
|
syncHostEventsSubscription();
|
|
@@ -8827,6 +8865,9 @@ function createSuperDocUI(options) {
|
|
|
8827
8865
|
if (detachHostSelection) detachHostSelection();
|
|
8828
8866
|
detachHostSelection = null;
|
|
8829
8867
|
currentHostSelectionSource = null;
|
|
8868
|
+
if (detachEditCommands) detachEditCommands();
|
|
8869
|
+
detachEditCommands = null;
|
|
8870
|
+
currentEditCommandsSource = null;
|
|
8830
8871
|
if (detachHostReview) detachHostReview();
|
|
8831
8872
|
detachHostReview = null;
|
|
8832
8873
|
currentHostReviewSource = null;
|
|
@@ -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/public/ui-react.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../chunks/rolldown-runtime-_dR15c8t.cjs");
|
|
3
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
3
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-BNo2DvD1.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
var SuperDocUIContext = (0, react.createContext)(null);
|
|
6
6
|
function disposeOwnedUi(ref) {
|
|
@@ -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-BmtUtDDR.es.js";
|
|
2
2
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
3
3
|
var SuperDocUIContext = createContext(null);
|
|
4
4
|
function disposeOwnedUi(ref) {
|
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-BNo2DvD1.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-BmtUtDDR.es.js";
|
|
2
2
|
export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
|
package/dist/superdoc.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const require_uuid = require("./chunks/uuid-CFp0WGVU.cjs");
|
|
|
6
6
|
const require_jszip = require("./chunks/jszip-BdUBlUeG.cjs");
|
|
7
7
|
const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-BTwbGDKw.cjs");
|
|
8
8
|
const require_constants = require("./chunks/constants-sbCZ2O_A.cjs");
|
|
9
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
9
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-BNo2DvD1.cjs");
|
|
10
10
|
let vue = require("vue");
|
|
11
11
|
vue = require_rolldown_runtime.__toESM(vue);
|
|
12
12
|
require("y-websocket");
|
|
@@ -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
|
@@ -5,7 +5,7 @@ import { t as v4_default } from "./chunks/uuid-B2Sqk-3p.es.js";
|
|
|
5
5
|
import { a as init_dist, i as global, n as init_dist$1, r as process$1, t as require_jszip_min } from "./chunks/jszip-DzmwAHr3.es.js";
|
|
6
6
|
import { t as __plugin_vue_export_helper_default } from "./chunks/_plugin-vue_export-helper-CInC0bKI.es.js";
|
|
7
7
|
import { n as PDF_TO_CSS_UNITS } from "./chunks/constants-CY3R3_kF.es.js";
|
|
8
|
-
import { a as createV2ReviewMutationReconciler, i as isV2EditableTextMutationEvent, o as getV2TrackedChangeMutationImpact, s as composeAuthorColorResolver, t as createSuperDocUI } from "./chunks/create-super-doc-ui-
|
|
8
|
+
import { a as createV2ReviewMutationReconciler, i as isV2EditableTextMutationEvent, o as getV2TrackedChangeMutationImpact, s as composeAuthorColorResolver, t as createSuperDocUI } from "./chunks/create-super-doc-ui-BmtUtDDR.es.js";
|
|
9
9
|
import * as Vue from "vue";
|
|
10
10
|
import { Fragment, Teleport, Transition, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, h, inject, markRaw, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onDeactivated, onMounted, openBlock, reactive, ref, renderList, renderSlot, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, unref, useAttrs, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
11
11
|
import "y-websocket";
|
|
@@ -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 ?? [];
|