superdoc 2.5.1 → 2.6.0-next.10
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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/layout-engine/contracts/src/index.d.ts +5 -1
- package/dist/layout-engine/contracts/src/run-helpers.d.ts +10 -0
- package/dist/layout-engine/layout-bridge/src/cache.d.ts +4 -1
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +6 -1
- package/dist/layout-engine/layout-engine/src/footnote-anchor-index.d.ts +1 -0
- package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +7 -0
- package/dist/layout-engine/painters/dom/src/paragraph/indentation.d.ts +1 -0
- package/dist/layout-engine/painters/dom/src/renderer.d.ts +6 -8
- package/dist/style.css +178 -136
- package/dist/style.layered.css +178 -136
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +1 -1
- package/dist/superdoc/src/core/SuperDoc.d.ts +1 -0
- package/dist/superdoc/src/core/types/index.d.ts +46 -13
- package/dist/superdoc/src/stores/comments-store.d.ts +62 -5
- package/dist/superdoc/src/stores/superdoc-store.d.ts +186 -15
- package/dist/superdoc.cjs +261 -60
- package/dist/superdoc.es.js +261 -60
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +37 -37
- package/package.json +12 -11
|
@@ -24,6 +24,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
24
24
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
25
25
|
pendingComment: import('vue').Ref<null, null>;
|
|
26
26
|
currentCommentText: import('vue').Ref<string, string>;
|
|
27
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
27
28
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
28
29
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
29
30
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -211,8 +212,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
211
212
|
preparedInputs?: null | undefined;
|
|
212
213
|
pruneStale?: boolean | undefined;
|
|
213
214
|
}) => any;
|
|
215
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
216
|
+
ok: boolean;
|
|
217
|
+
reason: string;
|
|
218
|
+
detail?: undefined;
|
|
219
|
+
comment?: undefined;
|
|
220
|
+
} | {
|
|
221
|
+
ok: boolean;
|
|
222
|
+
reason: string;
|
|
223
|
+
detail: any;
|
|
224
|
+
comment?: undefined;
|
|
225
|
+
} | {
|
|
226
|
+
ok: boolean;
|
|
227
|
+
comment: any;
|
|
228
|
+
reason?: undefined;
|
|
229
|
+
detail?: undefined;
|
|
230
|
+
}>;
|
|
214
231
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
215
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
232
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
233
|
+
mentions?: never[] | undefined;
|
|
234
|
+
}) => Promise<any>;
|
|
216
235
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
217
236
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
218
237
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -259,7 +278,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
259
278
|
liveAnchorKeys?: null | undefined;
|
|
260
279
|
}) => any;
|
|
261
280
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
262
|
-
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
281
|
+
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
263
282
|
COMMENT_EVENTS: {
|
|
264
283
|
readonly RESOLVED: "resolved";
|
|
265
284
|
readonly NEW: "new";
|
|
@@ -284,6 +303,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
284
303
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
285
304
|
pendingComment: import('vue').Ref<null, null>;
|
|
286
305
|
currentCommentText: import('vue').Ref<string, string>;
|
|
306
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
287
307
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
288
308
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
289
309
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -471,8 +491,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
471
491
|
preparedInputs?: null | undefined;
|
|
472
492
|
pruneStale?: boolean | undefined;
|
|
473
493
|
}) => any;
|
|
494
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
495
|
+
ok: boolean;
|
|
496
|
+
reason: string;
|
|
497
|
+
detail?: undefined;
|
|
498
|
+
comment?: undefined;
|
|
499
|
+
} | {
|
|
500
|
+
ok: boolean;
|
|
501
|
+
reason: string;
|
|
502
|
+
detail: any;
|
|
503
|
+
comment?: undefined;
|
|
504
|
+
} | {
|
|
505
|
+
ok: boolean;
|
|
506
|
+
comment: any;
|
|
507
|
+
reason?: undefined;
|
|
508
|
+
detail?: undefined;
|
|
509
|
+
}>;
|
|
474
510
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
475
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
511
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
512
|
+
mentions?: never[] | undefined;
|
|
513
|
+
}) => Promise<any>;
|
|
476
514
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
477
515
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
478
516
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -544,6 +582,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
544
582
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
545
583
|
pendingComment: import('vue').Ref<null, null>;
|
|
546
584
|
currentCommentText: import('vue').Ref<string, string>;
|
|
585
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
547
586
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
548
587
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
549
588
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -731,8 +770,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
731
770
|
preparedInputs?: null | undefined;
|
|
732
771
|
pruneStale?: boolean | undefined;
|
|
733
772
|
}) => any;
|
|
773
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
774
|
+
ok: boolean;
|
|
775
|
+
reason: string;
|
|
776
|
+
detail?: undefined;
|
|
777
|
+
comment?: undefined;
|
|
778
|
+
} | {
|
|
779
|
+
ok: boolean;
|
|
780
|
+
reason: string;
|
|
781
|
+
detail: any;
|
|
782
|
+
comment?: undefined;
|
|
783
|
+
} | {
|
|
784
|
+
ok: boolean;
|
|
785
|
+
comment: any;
|
|
786
|
+
reason?: undefined;
|
|
787
|
+
detail?: undefined;
|
|
788
|
+
}>;
|
|
734
789
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
735
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
790
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
791
|
+
mentions?: never[] | undefined;
|
|
792
|
+
}) => Promise<any>;
|
|
736
793
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
737
794
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
738
795
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -779,7 +836,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
779
836
|
liveAnchorKeys?: null | undefined;
|
|
780
837
|
}) => any;
|
|
781
838
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
782
|
-
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
839
|
+
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
783
840
|
documents: import('vue').Ref<any[], any[]>;
|
|
784
841
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
785
842
|
pages: {};
|
|
@@ -856,6 +913,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
856
913
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
857
914
|
pendingComment: import('vue').Ref<null, null>;
|
|
858
915
|
currentCommentText: import('vue').Ref<string, string>;
|
|
916
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
859
917
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
860
918
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
861
919
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -1043,8 +1101,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1043
1101
|
preparedInputs?: null | undefined;
|
|
1044
1102
|
pruneStale?: boolean | undefined;
|
|
1045
1103
|
}) => any;
|
|
1104
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1105
|
+
ok: boolean;
|
|
1106
|
+
reason: string;
|
|
1107
|
+
detail?: undefined;
|
|
1108
|
+
comment?: undefined;
|
|
1109
|
+
} | {
|
|
1110
|
+
ok: boolean;
|
|
1111
|
+
reason: string;
|
|
1112
|
+
detail: any;
|
|
1113
|
+
comment?: undefined;
|
|
1114
|
+
} | {
|
|
1115
|
+
ok: boolean;
|
|
1116
|
+
comment: any;
|
|
1117
|
+
reason?: undefined;
|
|
1118
|
+
detail?: undefined;
|
|
1119
|
+
}>;
|
|
1046
1120
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1047
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
1121
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
1122
|
+
mentions?: never[] | undefined;
|
|
1123
|
+
}) => Promise<any>;
|
|
1048
1124
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1049
1125
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
1050
1126
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1091,7 +1167,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1091
1167
|
liveAnchorKeys?: null | undefined;
|
|
1092
1168
|
}) => any;
|
|
1093
1169
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1094
|
-
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
1170
|
+
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
1095
1171
|
COMMENT_EVENTS: {
|
|
1096
1172
|
readonly RESOLVED: "resolved";
|
|
1097
1173
|
readonly NEW: "new";
|
|
@@ -1116,6 +1192,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1116
1192
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
1117
1193
|
pendingComment: import('vue').Ref<null, null>;
|
|
1118
1194
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1195
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
1119
1196
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1120
1197
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1121
1198
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -1303,8 +1380,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1303
1380
|
preparedInputs?: null | undefined;
|
|
1304
1381
|
pruneStale?: boolean | undefined;
|
|
1305
1382
|
}) => any;
|
|
1383
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1384
|
+
ok: boolean;
|
|
1385
|
+
reason: string;
|
|
1386
|
+
detail?: undefined;
|
|
1387
|
+
comment?: undefined;
|
|
1388
|
+
} | {
|
|
1389
|
+
ok: boolean;
|
|
1390
|
+
reason: string;
|
|
1391
|
+
detail: any;
|
|
1392
|
+
comment?: undefined;
|
|
1393
|
+
} | {
|
|
1394
|
+
ok: boolean;
|
|
1395
|
+
comment: any;
|
|
1396
|
+
reason?: undefined;
|
|
1397
|
+
detail?: undefined;
|
|
1398
|
+
}>;
|
|
1306
1399
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1307
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
1400
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
1401
|
+
mentions?: never[] | undefined;
|
|
1402
|
+
}) => Promise<any>;
|
|
1308
1403
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1309
1404
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
1310
1405
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1376,6 +1471,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1376
1471
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
1377
1472
|
pendingComment: import('vue').Ref<null, null>;
|
|
1378
1473
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1474
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
1379
1475
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1380
1476
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1381
1477
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -1563,8 +1659,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1563
1659
|
preparedInputs?: null | undefined;
|
|
1564
1660
|
pruneStale?: boolean | undefined;
|
|
1565
1661
|
}) => any;
|
|
1662
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1663
|
+
ok: boolean;
|
|
1664
|
+
reason: string;
|
|
1665
|
+
detail?: undefined;
|
|
1666
|
+
comment?: undefined;
|
|
1667
|
+
} | {
|
|
1668
|
+
ok: boolean;
|
|
1669
|
+
reason: string;
|
|
1670
|
+
detail: any;
|
|
1671
|
+
comment?: undefined;
|
|
1672
|
+
} | {
|
|
1673
|
+
ok: boolean;
|
|
1674
|
+
comment: any;
|
|
1675
|
+
reason?: undefined;
|
|
1676
|
+
detail?: undefined;
|
|
1677
|
+
}>;
|
|
1566
1678
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1567
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
1679
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
1680
|
+
mentions?: never[] | undefined;
|
|
1681
|
+
}) => Promise<any>;
|
|
1568
1682
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1569
1683
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
1570
1684
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1611,7 +1725,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1611
1725
|
liveAnchorKeys?: null | undefined;
|
|
1612
1726
|
}) => any;
|
|
1613
1727
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1614
|
-
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
1728
|
+
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
1615
1729
|
documents: import('vue').Ref<any[], any[]>;
|
|
1616
1730
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
1617
1731
|
pages: {};
|
|
@@ -1688,6 +1802,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1688
1802
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
1689
1803
|
pendingComment: import('vue').Ref<null, null>;
|
|
1690
1804
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1805
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
1691
1806
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1692
1807
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1693
1808
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -1875,8 +1990,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1875
1990
|
preparedInputs?: null | undefined;
|
|
1876
1991
|
pruneStale?: boolean | undefined;
|
|
1877
1992
|
}) => any;
|
|
1993
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1994
|
+
ok: boolean;
|
|
1995
|
+
reason: string;
|
|
1996
|
+
detail?: undefined;
|
|
1997
|
+
comment?: undefined;
|
|
1998
|
+
} | {
|
|
1999
|
+
ok: boolean;
|
|
2000
|
+
reason: string;
|
|
2001
|
+
detail: any;
|
|
2002
|
+
comment?: undefined;
|
|
2003
|
+
} | {
|
|
2004
|
+
ok: boolean;
|
|
2005
|
+
comment: any;
|
|
2006
|
+
reason?: undefined;
|
|
2007
|
+
detail?: undefined;
|
|
2008
|
+
}>;
|
|
1878
2009
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1879
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
2010
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
2011
|
+
mentions?: never[] | undefined;
|
|
2012
|
+
}) => Promise<any>;
|
|
1880
2013
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1881
2014
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
1882
2015
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1923,7 +2056,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1923
2056
|
liveAnchorKeys?: null | undefined;
|
|
1924
2057
|
}) => any;
|
|
1925
2058
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1926
|
-
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
2059
|
+
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
1927
2060
|
COMMENT_EVENTS: {
|
|
1928
2061
|
readonly RESOLVED: "resolved";
|
|
1929
2062
|
readonly NEW: "new";
|
|
@@ -1948,6 +2081,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1948
2081
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
1949
2082
|
pendingComment: import('vue').Ref<null, null>;
|
|
1950
2083
|
currentCommentText: import('vue').Ref<string, string>;
|
|
2084
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
1951
2085
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1952
2086
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1953
2087
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -2135,8 +2269,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2135
2269
|
preparedInputs?: null | undefined;
|
|
2136
2270
|
pruneStale?: boolean | undefined;
|
|
2137
2271
|
}) => any;
|
|
2272
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
2273
|
+
ok: boolean;
|
|
2274
|
+
reason: string;
|
|
2275
|
+
detail?: undefined;
|
|
2276
|
+
comment?: undefined;
|
|
2277
|
+
} | {
|
|
2278
|
+
ok: boolean;
|
|
2279
|
+
reason: string;
|
|
2280
|
+
detail: any;
|
|
2281
|
+
comment?: undefined;
|
|
2282
|
+
} | {
|
|
2283
|
+
ok: boolean;
|
|
2284
|
+
comment: any;
|
|
2285
|
+
reason?: undefined;
|
|
2286
|
+
detail?: undefined;
|
|
2287
|
+
}>;
|
|
2138
2288
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
2139
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
2289
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
2290
|
+
mentions?: never[] | undefined;
|
|
2291
|
+
}) => Promise<any>;
|
|
2140
2292
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
2141
2293
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
2142
2294
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -2208,6 +2360,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2208
2360
|
suppressInternalExternal: import('vue').Ref<boolean, boolean>;
|
|
2209
2361
|
pendingComment: import('vue').Ref<null, null>;
|
|
2210
2362
|
currentCommentText: import('vue').Ref<string, string>;
|
|
2363
|
+
currentCommentMentions: import('vue').Ref<never[], never[]>;
|
|
2211
2364
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
2212
2365
|
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
2213
2366
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
@@ -2395,8 +2548,26 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2395
2548
|
preparedInputs?: null | undefined;
|
|
2396
2549
|
pruneStale?: boolean | undefined;
|
|
2397
2550
|
}) => any;
|
|
2551
|
+
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
2552
|
+
ok: boolean;
|
|
2553
|
+
reason: string;
|
|
2554
|
+
detail?: undefined;
|
|
2555
|
+
comment?: undefined;
|
|
2556
|
+
} | {
|
|
2557
|
+
ok: boolean;
|
|
2558
|
+
reason: string;
|
|
2559
|
+
detail: any;
|
|
2560
|
+
comment?: undefined;
|
|
2561
|
+
} | {
|
|
2562
|
+
ok: boolean;
|
|
2563
|
+
comment: any;
|
|
2564
|
+
reason?: undefined;
|
|
2565
|
+
detail?: undefined;
|
|
2566
|
+
}>;
|
|
2398
2567
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
2399
|
-
replyCommentV2: ({ superdoc, parentCommentId, text }?: {
|
|
2568
|
+
replyCommentV2: ({ superdoc, parentCommentId, text, mentions }?: {
|
|
2569
|
+
mentions?: never[] | undefined;
|
|
2570
|
+
}) => Promise<any>;
|
|
2400
2571
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
2401
2572
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
2402
2573
|
reopenCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -2443,7 +2614,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2443
2614
|
liveAnchorKeys?: null | undefined;
|
|
2444
2615
|
}) => any;
|
|
2445
2616
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
2446
|
-
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
2617
|
+
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
2447
2618
|
documents: import('vue').Ref<any[], any[]>;
|
|
2448
2619
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
2449
2620
|
pages: {};
|