superdoc 2.7.0-next.11 → 2.7.0-next.13
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.7.0-next.
|
|
22
|
+
superdocVersion: "2.7.0-next.13",
|
|
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.13",
|
|
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
|
@@ -8480,7 +8480,13 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8480
8480
|
documentId: v2Adapter.documentId,
|
|
8481
8481
|
items: outcome.items
|
|
8482
8482
|
});
|
|
8483
|
-
|
|
8483
|
+
const hadPendingComment = !!pendingComment.value;
|
|
8484
|
+
if (hadPendingComment) removePendingComment(superdoc);
|
|
8485
|
+
const createdId = reconciled?.added?.commentId ?? null;
|
|
8486
|
+
if (hadPendingComment && createdId) {
|
|
8487
|
+
setActiveComment(superdoc, createdId);
|
|
8488
|
+
setActiveFloatingCommentInstance(createdId);
|
|
8489
|
+
}
|
|
8484
8490
|
if (broadcastChanges) superdoc.emit("comments-update", {
|
|
8485
8491
|
type: COMMENT_EVENTS.ADD,
|
|
8486
8492
|
comment: reconciled?.added?.getValues?.() ?? null
|
|
@@ -8506,7 +8512,12 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8506
8512
|
if (parentComment) newComment.isInternal = parentComment.isInternal;
|
|
8507
8513
|
if (!superdoc.config.isInternal) newComment.isInternal = false;
|
|
8508
8514
|
commentsList.value.push(newComment);
|
|
8515
|
+
const hadPendingComment = !!pendingComment.value;
|
|
8509
8516
|
removePendingComment(superdoc);
|
|
8517
|
+
if (hadPendingComment) {
|
|
8518
|
+
activeComment.value = newComment.commentId;
|
|
8519
|
+
setActiveFloatingCommentInstance(newComment.commentId);
|
|
8520
|
+
}
|
|
8510
8521
|
if (!skipEditorUpdate && !comment.trackedChange && superdoc.activeEditor?.commands && !comment.parentCommentId) superdoc.activeEditor.commands.insertComment({
|
|
8511
8522
|
...newComment.getValues(),
|
|
8512
8523
|
skipEmit: true
|
|
@@ -43514,7 +43525,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
43514
43525
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43515
43526
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43516
43527
|
this.colorIndex = 0;
|
|
43517
|
-
this.version = "2.7.0-next.
|
|
43528
|
+
this.version = "2.7.0-next.13";
|
|
43518
43529
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43519
43530
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
43520
43531
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -8479,7 +8479,13 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8479
8479
|
documentId: v2Adapter.documentId,
|
|
8480
8480
|
items: outcome.items
|
|
8481
8481
|
});
|
|
8482
|
-
|
|
8482
|
+
const hadPendingComment = !!pendingComment.value;
|
|
8483
|
+
if (hadPendingComment) removePendingComment(superdoc);
|
|
8484
|
+
const createdId = reconciled?.added?.commentId ?? null;
|
|
8485
|
+
if (hadPendingComment && createdId) {
|
|
8486
|
+
setActiveComment(superdoc, createdId);
|
|
8487
|
+
setActiveFloatingCommentInstance(createdId);
|
|
8488
|
+
}
|
|
8483
8489
|
if (broadcastChanges) superdoc.emit("comments-update", {
|
|
8484
8490
|
type: COMMENT_EVENTS.ADD,
|
|
8485
8491
|
comment: reconciled?.added?.getValues?.() ?? null
|
|
@@ -8505,7 +8511,12 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8505
8511
|
if (parentComment) newComment.isInternal = parentComment.isInternal;
|
|
8506
8512
|
if (!superdoc.config.isInternal) newComment.isInternal = false;
|
|
8507
8513
|
commentsList.value.push(newComment);
|
|
8514
|
+
const hadPendingComment = !!pendingComment.value;
|
|
8508
8515
|
removePendingComment(superdoc);
|
|
8516
|
+
if (hadPendingComment) {
|
|
8517
|
+
activeComment.value = newComment.commentId;
|
|
8518
|
+
setActiveFloatingCommentInstance(newComment.commentId);
|
|
8519
|
+
}
|
|
8509
8520
|
if (!skipEditorUpdate && !comment.trackedChange && superdoc.activeEditor?.commands && !comment.parentCommentId) superdoc.activeEditor.commands.insertComment({
|
|
8510
8521
|
...newComment.getValues(),
|
|
8511
8522
|
skipEmit: true
|
|
@@ -43447,7 +43458,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
43447
43458
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43448
43459
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43449
43460
|
this.colorIndex = 0;
|
|
43450
|
-
this.version = "2.7.0-next.
|
|
43461
|
+
this.version = "2.7.0-next.13";
|
|
43451
43462
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43452
43463
|
this.superdocId = config.superdocId || v4();
|
|
43453
43464
|
this.colors = this.config.colors ?? [];
|