superdoc 2.29.0-next.3 → 2.29.0

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.
Files changed (175) hide show
  1. package/dist/chunks/{FindReplaceSurface-BKVHzhQ4.es.js → FindReplaceSurface-B_5ggdWg.es.js} +1 -1
  2. package/dist/chunks/{FindReplaceSurface-BNDrJ6VS.cjs → FindReplaceSurface-fVHxPXtn.cjs} +1 -1
  3. package/dist/chunks/{PasswordPromptSurface-6mF6Azda.es.js → PasswordPromptSurface-CZqhDQQ1.es.js} +1 -1
  4. package/dist/chunks/{PasswordPromptSurface-BNkaztaP.cjs → PasswordPromptSurface-x8GNmMJT.cjs} +1 -1
  5. package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-CW09MNrB.es.js} +70 -105
  6. package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-CkrAHpC-.cjs} +74 -109
  7. package/dist/chunks/{_plugin-vue_export-helper-6MBoygIY.cjs → _plugin-vue_export-helper-BkbCxNeT.cjs} +31 -7
  8. package/dist/chunks/{_plugin-vue_export-helper-CsJQtMvr.es.js → _plugin-vue_export-helper-DRPRMkeA.es.js} +20 -8
  9. package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
  10. package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
  11. package/dist/chunks/{create-super-doc-ui-BFt8agAI.es.js → create-super-doc-ui-Dc8dQAMc.es.js} +89 -137
  12. package/dist/chunks/{create-super-doc-ui-BAGOnYGM.cjs → create-super-doc-ui-L60GhVAX.cjs} +211 -259
  13. package/dist/collaboration-upgrade-engine.cjs +1 -1
  14. package/dist/collaboration-upgrade-engine.es.js +1 -1
  15. package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
  16. package/dist/document-api/src/comments/comments.d.ts +2 -0
  17. package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
  18. package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
  19. package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
  20. package/dist/document-api/src/index.d.ts +8 -7
  21. package/dist/document-api/src/insert/insert.d.ts +2 -2
  22. package/dist/document-api/src/replace/replace.d.ts +3 -2
  23. package/dist/document-api/src/types/address.d.ts +3 -0
  24. package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
  25. package/dist/document-api/src/write/write.d.ts +12 -6
  26. package/dist/public/ui-react.cjs +1 -1
  27. package/dist/public/ui-react.es.js +1 -1
  28. package/dist/public/ui-vue.cjs +1 -1
  29. package/dist/public/ui-vue.es.js +1 -1
  30. package/dist/public/ui.cjs +1 -1
  31. package/dist/public/ui.es.js +1 -1
  32. package/dist/style.css +1 -1
  33. package/dist/style.layered.css +1 -1
  34. package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
  35. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +28 -13
  36. package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +11 -1
  37. package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +19 -2
  38. package/dist/superdoc/src/components/CommentsLayer/comment-urls.d.ts +1 -1
  39. package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +23 -20
  40. package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
  41. package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +1 -4
  42. package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +16 -2
  43. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +28 -13
  44. package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
  45. package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
  46. package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
  47. package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
  48. package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +80 -16
  49. package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +48 -13
  50. package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
  51. package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +13 -0
  52. package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
  53. package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
  54. package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
  55. package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
  56. package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
  57. package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
  58. package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
  59. package/dist/superdoc/src/composables/use-field.d.ts +88 -25
  60. package/dist/superdoc/src/composables/use-find-replace.d.ts +13 -3
  61. package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
  62. package/dist/superdoc/src/composables/use-viewport-fit.d.ts +62 -26
  63. package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
  64. package/dist/superdoc/src/core/SuperDoc.d.ts +4 -4
  65. package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
  66. package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
  67. package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
  68. package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
  69. package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
  70. package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
  71. package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
  72. package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
  73. package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
  74. package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
  75. package/dist/superdoc/src/core/create-app.d.ts +13 -24
  76. package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
  77. package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
  78. package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
  79. package/dist/superdoc/src/core/editor-runtime/types.d.ts +2 -1
  80. package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
  81. package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
  82. package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
  83. package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
  84. package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
  85. package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
  86. package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
  87. package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
  88. package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +28 -61
  89. package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
  90. package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
  91. package/dist/superdoc/src/core/types/index.d.ts +41 -23
  92. package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +5 -3
  93. package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +3 -13
  94. package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +64 -59
  95. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
  96. package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
  97. package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
  98. package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
  99. package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
  100. package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
  101. package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
  102. package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
  103. package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
  104. package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
  105. package/dist/superdoc/src/helpers/object-guards.d.ts +2 -5
  106. package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
  107. package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
  108. package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
  109. package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
  110. package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
  111. package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
  112. package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
  113. package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
  114. package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
  115. package/dist/superdoc/src/icons.d.ts +11 -19
  116. package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
  117. package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +6 -4
  118. package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
  119. package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +4 -24
  120. package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +34 -0
  121. package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +34 -0
  122. package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
  123. package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +25 -15
  124. package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
  125. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +12 -14
  126. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -11
  127. package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +9 -19
  128. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +14 -45
  129. package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
  130. package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +15 -1
  131. package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +37 -7
  132. package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +10 -4
  133. package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +12 -1
  134. package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +9 -4
  135. package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
  136. package/dist/superdoc/src/internal/toolbar/built-in/page-number-feedback.d.ts +4 -5
  137. package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +3 -4
  138. package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
  139. package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +78 -145
  140. package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
  141. package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +11 -3
  142. package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
  143. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +11 -30
  144. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
  145. package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +29 -39
  146. package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
  147. package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
  148. package/dist/superdoc/src/public/index.d.cts +26 -0
  149. package/dist/superdoc/src/public/index.d.ts +13 -0
  150. package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
  151. package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
  152. package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
  153. package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
  154. package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
  155. package/dist/superdoc/src/public/ui/types.d.ts +1 -1
  156. package/dist/superdoc/src/stores/comments-store.d.ts +231 -105
  157. package/dist/superdoc/src/stores/helpers/comment-document-scope.d.ts +22 -0
  158. package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
  159. package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
  160. package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
  161. package/dist/superdoc/src/stores/helpers/pending-selection-snapshot.d.ts +17 -0
  162. package/dist/superdoc/src/stores/helpers/tracked-change-compaction.d.ts +16 -0
  163. package/dist/superdoc/src/stores/helpers/tracked-change-decision.d.ts +45 -0
  164. package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
  165. package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +0 -4
  166. package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
  167. package/dist/superdoc/src/stores/superdoc-store.d.ts +694 -316
  168. package/dist/superdoc.cjs +1804 -2782
  169. package/dist/superdoc.es.js +1720 -2699
  170. package/dist-cdn/style.layered.css +1 -1
  171. package/dist-cdn/superdoc.min.css +1 -1
  172. package/dist-cdn/superdoc.min.js +42 -42
  173. package/package.json +3 -2
  174. package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
  175. package/dist/superdoc/src/main.d.ts +0 -1
@@ -40,15 +40,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
40
40
  readonly CHANGE_ACCEPTED: "change-accepted";
41
41
  readonly CHANGE_REJECTED: "change-rejected";
42
42
  };
43
- isDebugging: boolean;
44
- hasInitializedComments: Ref<boolean, boolean>;
45
43
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
46
44
  editingCommentId: Ref<null, null>;
47
45
  activeComment: Ref<null, null>;
48
46
  activeFloatingCommentInstanceId: Ref<null, null>;
49
- commentDialogs: Ref<never[], never[]>;
50
- overlappingComments: Ref<never[], never[]>;
51
- overlappedIds: Set<never>;
52
47
  suppressInternalExternal: Ref<boolean, boolean>;
53
48
  pendingComment: Ref<null, null>;
54
49
  currentCommentText: Ref<string, string>;
@@ -66,8 +61,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
66
61
  isCommentHighlighted: Ref<boolean, boolean>;
67
62
  floatingCommentsOffset: Ref<number, number>;
68
63
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
69
- sortedConversations: Ref<never[], never[]>;
70
- visibleConversations: Ref<never[], never[]>;
71
64
  skipSelectionUpdate: Ref<boolean, boolean>;
72
65
  isFloatingCommentsReady: Ref<boolean, boolean>;
73
66
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -89,30 +82,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
89
82
  resolvedComments: any[];
90
83
  }>;
91
84
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
92
- getCommentsByPosition: import('vue').ComputedRef<{
93
- parentComments: any[];
94
- resolvedComments: any[];
95
- }>;
96
85
  getFloatingComments: import('vue').ComputedRef<any[]>;
97
86
  getFloatingCommentInstances: import('vue').ComputedRef<{
98
- id: any;
99
- threadId: any;
87
+ id: string;
88
+ threadId: string | null;
100
89
  comment: any;
101
- positionKey: any;
102
- pageIndex: any;
90
+ positionKey: string | null;
91
+ positionEntry: {
92
+ pageIndex?: number | null;
93
+ rects?: readonly ({
94
+ pageIndex?: number | null;
95
+ left?: number;
96
+ top?: number;
97
+ right?: number;
98
+ bottom?: number;
99
+ } | null | undefined)[] | null;
100
+ bounds?: Partial<{
101
+ left: number;
102
+ top: number;
103
+ right: number;
104
+ bottom: number;
105
+ width: number;
106
+ height: number;
107
+ }> | null;
108
+ } | null;
109
+ pageIndex: number | null;
103
110
  isPrimary: boolean;
104
- positionEntry: any;
105
111
  }[]>;
106
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
112
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
107
113
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
108
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
114
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
109
115
  getCommentPosition: (commentOrId: Object | string) => Object | null;
110
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
111
- key: string | null;
112
- entry: any;
116
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
117
+ key: string;
118
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
119
+ } | {
120
+ key: null;
121
+ entry: null;
113
122
  };
114
- getCommentDocumentId: (comment: any) => string | null;
115
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
123
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
124
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
116
125
  viewingVisibility: {
117
126
  documentMode: string;
118
127
  commentsVisible: boolean;
@@ -122,13 +131,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
122
131
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
123
132
  init: (config?: Object) => void;
124
133
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
125
- getComment: (id: string) => Record<string, unknown> | null | undefined;
134
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
126
135
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
127
- getCommentLocation: (selection: any, parent: any) => {
128
- top: any;
129
- left: any;
130
- };
131
- hasOverlapId: (id: any) => any;
132
136
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
133
137
  selection?: Object | undefined;
134
138
  documentId?: string | null | undefined;
@@ -217,11 +221,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
217
221
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
218
222
  setV2CommentsAdapter: (adapter: any) => void;
219
223
  getV2CommentsAdapter: (superdoc: any) => any;
220
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
224
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
225
+ ok: boolean;
226
+ geometryOnly: boolean;
227
+ commentItems?: undefined;
228
+ trackedItems?: undefined;
229
+ reason?: undefined;
230
+ detail?: undefined;
231
+ } | {
232
+ ok: boolean;
233
+ commentItems: any;
234
+ trackedItems: any;
235
+ geometryOnly?: undefined;
236
+ reason?: undefined;
237
+ detail?: undefined;
238
+ } | {
239
+ ok: boolean;
240
+ reason: any;
241
+ geometryOnly?: undefined;
242
+ commentItems?: undefined;
243
+ trackedItems?: undefined;
244
+ detail?: undefined;
245
+ } | {
246
+ ok: boolean;
247
+ reason: string;
248
+ detail: any;
249
+ geometryOnly?: undefined;
250
+ commentItems?: undefined;
251
+ trackedItems?: undefined;
252
+ };
221
253
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
222
254
  preparedInputs?: null | undefined;
223
255
  pruneStale?: boolean | undefined;
224
- }) => any;
256
+ }) => {
257
+ added: null;
258
+ dropped: string;
259
+ } | {
260
+ added: any;
261
+ dropped?: undefined;
262
+ };
225
263
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
226
264
  ok: boolean;
227
265
  reason: string;
@@ -255,7 +293,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
255
293
  kind: "trackedChange";
256
294
  trackedChangeId: string;
257
295
  story?: unknown;
258
- side?: "source" | "destination";
296
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
259
297
  } | undefined;
260
298
  }) => Promise<any>;
261
299
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -284,7 +322,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
284
322
  resolvedIds: never[];
285
323
  unresolvedIds: never[];
286
324
  allResolved: boolean;
287
- removedRows: any;
325
+ removedRows: number;
288
326
  reason?: undefined;
289
327
  removedIds?: undefined;
290
328
  } | {
@@ -304,9 +342,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
304
342
  previousPreparedPresentation?: null | undefined;
305
343
  liveIds?: null | undefined;
306
344
  liveAnchorKeys?: null | undefined;
307
- }) => any;
345
+ }) => {
346
+ liveIds: Set<any>;
347
+ liveAnchorKeys: Set<any>;
348
+ appliedCount: number;
349
+ } | undefined;
308
350
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
309
- }, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
351
+ }, "COMMENT_EVENTS" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
310
352
  COMMENT_EVENTS: {
311
353
  readonly RESOLVED: "resolved";
312
354
  readonly NEW: "new";
@@ -319,15 +361,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
319
361
  readonly CHANGE_ACCEPTED: "change-accepted";
320
362
  readonly CHANGE_REJECTED: "change-rejected";
321
363
  };
322
- isDebugging: boolean;
323
- hasInitializedComments: Ref<boolean, boolean>;
324
364
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
325
365
  editingCommentId: Ref<null, null>;
326
366
  activeComment: Ref<null, null>;
327
367
  activeFloatingCommentInstanceId: Ref<null, null>;
328
- commentDialogs: Ref<never[], never[]>;
329
- overlappingComments: Ref<never[], never[]>;
330
- overlappedIds: Set<never>;
331
368
  suppressInternalExternal: Ref<boolean, boolean>;
332
369
  pendingComment: Ref<null, null>;
333
370
  currentCommentText: Ref<string, string>;
@@ -345,8 +382,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
345
382
  isCommentHighlighted: Ref<boolean, boolean>;
346
383
  floatingCommentsOffset: Ref<number, number>;
347
384
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
348
- sortedConversations: Ref<never[], never[]>;
349
- visibleConversations: Ref<never[], never[]>;
350
385
  skipSelectionUpdate: Ref<boolean, boolean>;
351
386
  isFloatingCommentsReady: Ref<boolean, boolean>;
352
387
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -368,30 +403,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
368
403
  resolvedComments: any[];
369
404
  }>;
370
405
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
371
- getCommentsByPosition: import('vue').ComputedRef<{
372
- parentComments: any[];
373
- resolvedComments: any[];
374
- }>;
375
406
  getFloatingComments: import('vue').ComputedRef<any[]>;
376
407
  getFloatingCommentInstances: import('vue').ComputedRef<{
377
- id: any;
378
- threadId: any;
408
+ id: string;
409
+ threadId: string | null;
379
410
  comment: any;
380
- positionKey: any;
381
- pageIndex: any;
411
+ positionKey: string | null;
412
+ positionEntry: {
413
+ pageIndex?: number | null;
414
+ rects?: readonly ({
415
+ pageIndex?: number | null;
416
+ left?: number;
417
+ top?: number;
418
+ right?: number;
419
+ bottom?: number;
420
+ } | null | undefined)[] | null;
421
+ bounds?: Partial<{
422
+ left: number;
423
+ top: number;
424
+ right: number;
425
+ bottom: number;
426
+ width: number;
427
+ height: number;
428
+ }> | null;
429
+ } | null;
430
+ pageIndex: number | null;
382
431
  isPrimary: boolean;
383
- positionEntry: any;
384
432
  }[]>;
385
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
433
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
386
434
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
387
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
435
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
388
436
  getCommentPosition: (commentOrId: Object | string) => Object | null;
389
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
390
- key: string | null;
391
- entry: any;
437
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
438
+ key: string;
439
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
440
+ } | {
441
+ key: null;
442
+ entry: null;
392
443
  };
393
- getCommentDocumentId: (comment: any) => string | null;
394
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
444
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
445
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
395
446
  viewingVisibility: {
396
447
  documentMode: string;
397
448
  commentsVisible: boolean;
@@ -401,13 +452,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
401
452
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
402
453
  init: (config?: Object) => void;
403
454
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
404
- getComment: (id: string) => Record<string, unknown> | null | undefined;
455
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
405
456
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
406
- getCommentLocation: (selection: any, parent: any) => {
407
- top: any;
408
- left: any;
409
- };
410
- hasOverlapId: (id: any) => any;
411
457
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
412
458
  selection?: Object | undefined;
413
459
  documentId?: string | null | undefined;
@@ -496,11 +542,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
496
542
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
497
543
  setV2CommentsAdapter: (adapter: any) => void;
498
544
  getV2CommentsAdapter: (superdoc: any) => any;
499
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
545
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
546
+ ok: boolean;
547
+ geometryOnly: boolean;
548
+ commentItems?: undefined;
549
+ trackedItems?: undefined;
550
+ reason?: undefined;
551
+ detail?: undefined;
552
+ } | {
553
+ ok: boolean;
554
+ commentItems: any;
555
+ trackedItems: any;
556
+ geometryOnly?: undefined;
557
+ reason?: undefined;
558
+ detail?: undefined;
559
+ } | {
560
+ ok: boolean;
561
+ reason: any;
562
+ geometryOnly?: undefined;
563
+ commentItems?: undefined;
564
+ trackedItems?: undefined;
565
+ detail?: undefined;
566
+ } | {
567
+ ok: boolean;
568
+ reason: string;
569
+ detail: any;
570
+ geometryOnly?: undefined;
571
+ commentItems?: undefined;
572
+ trackedItems?: undefined;
573
+ };
500
574
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
501
575
  preparedInputs?: null | undefined;
502
576
  pruneStale?: boolean | undefined;
503
- }) => any;
577
+ }) => {
578
+ added: null;
579
+ dropped: string;
580
+ } | {
581
+ added: any;
582
+ dropped?: undefined;
583
+ };
504
584
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
505
585
  ok: boolean;
506
586
  reason: string;
@@ -534,7 +614,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
534
614
  kind: "trackedChange";
535
615
  trackedChangeId: string;
536
616
  story?: unknown;
537
- side?: "source" | "destination";
617
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
538
618
  } | undefined;
539
619
  }) => Promise<any>;
540
620
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -563,7 +643,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
563
643
  resolvedIds: never[];
564
644
  unresolvedIds: never[];
565
645
  allResolved: boolean;
566
- removedRows: any;
646
+ removedRows: number;
567
647
  reason?: undefined;
568
648
  removedIds?: undefined;
569
649
  } | {
@@ -583,9 +663,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
583
663
  previousPreparedPresentation?: null | undefined;
584
664
  liveIds?: null | undefined;
585
665
  liveAnchorKeys?: null | undefined;
586
- }) => any;
666
+ }) => {
667
+ liveIds: Set<any>;
668
+ liveAnchorKeys: Set<any>;
669
+ appliedCount: number;
670
+ } | undefined;
587
671
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
588
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
672
+ }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
589
673
  COMMENT_EVENTS: {
590
674
  readonly RESOLVED: "resolved";
591
675
  readonly NEW: "new";
@@ -598,15 +682,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
598
682
  readonly CHANGE_ACCEPTED: "change-accepted";
599
683
  readonly CHANGE_REJECTED: "change-rejected";
600
684
  };
601
- isDebugging: boolean;
602
- hasInitializedComments: Ref<boolean, boolean>;
603
685
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
604
686
  editingCommentId: Ref<null, null>;
605
687
  activeComment: Ref<null, null>;
606
688
  activeFloatingCommentInstanceId: Ref<null, null>;
607
- commentDialogs: Ref<never[], never[]>;
608
- overlappingComments: Ref<never[], never[]>;
609
- overlappedIds: Set<never>;
610
689
  suppressInternalExternal: Ref<boolean, boolean>;
611
690
  pendingComment: Ref<null, null>;
612
691
  currentCommentText: Ref<string, string>;
@@ -624,8 +703,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
624
703
  isCommentHighlighted: Ref<boolean, boolean>;
625
704
  floatingCommentsOffset: Ref<number, number>;
626
705
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
627
- sortedConversations: Ref<never[], never[]>;
628
- visibleConversations: Ref<never[], never[]>;
629
706
  skipSelectionUpdate: Ref<boolean, boolean>;
630
707
  isFloatingCommentsReady: Ref<boolean, boolean>;
631
708
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -647,30 +724,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
647
724
  resolvedComments: any[];
648
725
  }>;
649
726
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
650
- getCommentsByPosition: import('vue').ComputedRef<{
651
- parentComments: any[];
652
- resolvedComments: any[];
653
- }>;
654
727
  getFloatingComments: import('vue').ComputedRef<any[]>;
655
728
  getFloatingCommentInstances: import('vue').ComputedRef<{
656
- id: any;
657
- threadId: any;
729
+ id: string;
730
+ threadId: string | null;
658
731
  comment: any;
659
- positionKey: any;
660
- pageIndex: any;
732
+ positionKey: string | null;
733
+ positionEntry: {
734
+ pageIndex?: number | null;
735
+ rects?: readonly ({
736
+ pageIndex?: number | null;
737
+ left?: number;
738
+ top?: number;
739
+ right?: number;
740
+ bottom?: number;
741
+ } | null | undefined)[] | null;
742
+ bounds?: Partial<{
743
+ left: number;
744
+ top: number;
745
+ right: number;
746
+ bottom: number;
747
+ width: number;
748
+ height: number;
749
+ }> | null;
750
+ } | null;
751
+ pageIndex: number | null;
661
752
  isPrimary: boolean;
662
- positionEntry: any;
663
753
  }[]>;
664
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
754
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
665
755
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
666
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
756
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
667
757
  getCommentPosition: (commentOrId: Object | string) => Object | null;
668
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
669
- key: string | null;
670
- entry: any;
758
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
759
+ key: string;
760
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
761
+ } | {
762
+ key: null;
763
+ entry: null;
671
764
  };
672
- getCommentDocumentId: (comment: any) => string | null;
673
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
765
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
766
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
674
767
  viewingVisibility: {
675
768
  documentMode: string;
676
769
  commentsVisible: boolean;
@@ -680,13 +773,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
680
773
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
681
774
  init: (config?: Object) => void;
682
775
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
683
- getComment: (id: string) => Record<string, unknown> | null | undefined;
776
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
684
777
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
685
- getCommentLocation: (selection: any, parent: any) => {
686
- top: any;
687
- left: any;
688
- };
689
- hasOverlapId: (id: any) => any;
690
778
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
691
779
  selection?: Object | undefined;
692
780
  documentId?: string | null | undefined;
@@ -775,11 +863,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
775
863
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
776
864
  setV2CommentsAdapter: (adapter: any) => void;
777
865
  getV2CommentsAdapter: (superdoc: any) => any;
778
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
866
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
867
+ ok: boolean;
868
+ geometryOnly: boolean;
869
+ commentItems?: undefined;
870
+ trackedItems?: undefined;
871
+ reason?: undefined;
872
+ detail?: undefined;
873
+ } | {
874
+ ok: boolean;
875
+ commentItems: any;
876
+ trackedItems: any;
877
+ geometryOnly?: undefined;
878
+ reason?: undefined;
879
+ detail?: undefined;
880
+ } | {
881
+ ok: boolean;
882
+ reason: any;
883
+ geometryOnly?: undefined;
884
+ commentItems?: undefined;
885
+ trackedItems?: undefined;
886
+ detail?: undefined;
887
+ } | {
888
+ ok: boolean;
889
+ reason: string;
890
+ detail: any;
891
+ geometryOnly?: undefined;
892
+ commentItems?: undefined;
893
+ trackedItems?: undefined;
894
+ };
779
895
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
780
896
  preparedInputs?: null | undefined;
781
897
  pruneStale?: boolean | undefined;
782
- }) => any;
898
+ }) => {
899
+ added: null;
900
+ dropped: string;
901
+ } | {
902
+ added: any;
903
+ dropped?: undefined;
904
+ };
783
905
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
784
906
  ok: boolean;
785
907
  reason: string;
@@ -813,7 +935,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
813
935
  kind: "trackedChange";
814
936
  trackedChangeId: string;
815
937
  story?: unknown;
816
- side?: "source" | "destination";
938
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
817
939
  } | undefined;
818
940
  }) => Promise<any>;
819
941
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -842,7 +964,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
842
964
  resolvedIds: never[];
843
965
  unresolvedIds: never[];
844
966
  allResolved: boolean;
845
- removedRows: any;
967
+ removedRows: number;
846
968
  reason?: undefined;
847
969
  removedIds?: undefined;
848
970
  } | {
@@ -862,9 +984,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
862
984
  previousPreparedPresentation?: null | undefined;
863
985
  liveIds?: null | undefined;
864
986
  liveAnchorKeys?: null | undefined;
865
- }) => any;
987
+ }) => {
988
+ liveIds: Set<any>;
989
+ liveAnchorKeys: Set<any>;
990
+ appliedCount: number;
991
+ } | undefined;
866
992
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
867
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
993
+ }, "resolveCommentPositionEntry" | "getCommentAliasIds" | "getCommentPositionKey" | "belongsToDocument" | "getComment" | "getTrackedChangeThread" | "getCommentPosition" | "getCommentDocumentId" | "init" | "setViewingVisibility" | "setActiveComment" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
868
994
  documents: Ref<StoreDocument[], StoreDocument[]>;
869
995
  documentBounds: Ref<unknown[], unknown[]>;
870
996
  pages: Record<string, PageEntry[]>;
@@ -894,7 +1020,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
894
1020
  getPageBounds: (documentId: string, page: number) => {
895
1021
  top: number;
896
1022
  } | undefined;
897
- }, "user" | "pages" | "isInternal" | "measurementUnit" | "commentsStore" | "documents" | "documentBounds" | "documentUsers" | "users" | "activeZoom" | "zoomMode" | "viewportMetrics" | "documentScroll" | "selectionPosition" | "activeSelection" | "isReady" | "modules">, Pick<{
1023
+ }, "user" | "pages" | "isInternal" | "measurementUnit" | "commentsStore" | "modules" | "documents" | "users" | "documentBounds" | "documentUsers" | "activeZoom" | "zoomMode" | "viewportMetrics" | "documentScroll" | "selectionPosition" | "activeSelection" | "isReady">, Pick<{
898
1024
  commentsStore: import('pinia').Store<"comments", Pick<{
899
1025
  COMMENT_EVENTS: {
900
1026
  readonly RESOLVED: "resolved";
@@ -908,15 +1034,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
908
1034
  readonly CHANGE_ACCEPTED: "change-accepted";
909
1035
  readonly CHANGE_REJECTED: "change-rejected";
910
1036
  };
911
- isDebugging: boolean;
912
- hasInitializedComments: Ref<boolean, boolean>;
913
1037
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
914
1038
  editingCommentId: Ref<null, null>;
915
1039
  activeComment: Ref<null, null>;
916
1040
  activeFloatingCommentInstanceId: Ref<null, null>;
917
- commentDialogs: Ref<never[], never[]>;
918
- overlappingComments: Ref<never[], never[]>;
919
- overlappedIds: Set<never>;
920
1041
  suppressInternalExternal: Ref<boolean, boolean>;
921
1042
  pendingComment: Ref<null, null>;
922
1043
  currentCommentText: Ref<string, string>;
@@ -934,8 +1055,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
934
1055
  isCommentHighlighted: Ref<boolean, boolean>;
935
1056
  floatingCommentsOffset: Ref<number, number>;
936
1057
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
937
- sortedConversations: Ref<never[], never[]>;
938
- visibleConversations: Ref<never[], never[]>;
939
1058
  skipSelectionUpdate: Ref<boolean, boolean>;
940
1059
  isFloatingCommentsReady: Ref<boolean, boolean>;
941
1060
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -957,30 +1076,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
957
1076
  resolvedComments: any[];
958
1077
  }>;
959
1078
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
960
- getCommentsByPosition: import('vue').ComputedRef<{
961
- parentComments: any[];
962
- resolvedComments: any[];
963
- }>;
964
1079
  getFloatingComments: import('vue').ComputedRef<any[]>;
965
1080
  getFloatingCommentInstances: import('vue').ComputedRef<{
966
- id: any;
967
- threadId: any;
1081
+ id: string;
1082
+ threadId: string | null;
968
1083
  comment: any;
969
- positionKey: any;
970
- pageIndex: any;
1084
+ positionKey: string | null;
1085
+ positionEntry: {
1086
+ pageIndex?: number | null;
1087
+ rects?: readonly ({
1088
+ pageIndex?: number | null;
1089
+ left?: number;
1090
+ top?: number;
1091
+ right?: number;
1092
+ bottom?: number;
1093
+ } | null | undefined)[] | null;
1094
+ bounds?: Partial<{
1095
+ left: number;
1096
+ top: number;
1097
+ right: number;
1098
+ bottom: number;
1099
+ width: number;
1100
+ height: number;
1101
+ }> | null;
1102
+ } | null;
1103
+ pageIndex: number | null;
971
1104
  isPrimary: boolean;
972
- positionEntry: any;
973
1105
  }[]>;
974
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
1106
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
975
1107
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
976
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
1108
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
977
1109
  getCommentPosition: (commentOrId: Object | string) => Object | null;
978
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
979
- key: string | null;
980
- entry: any;
1110
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
1111
+ key: string;
1112
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
1113
+ } | {
1114
+ key: null;
1115
+ entry: null;
981
1116
  };
982
- getCommentDocumentId: (comment: any) => string | null;
983
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
1117
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
1118
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
984
1119
  viewingVisibility: {
985
1120
  documentMode: string;
986
1121
  commentsVisible: boolean;
@@ -990,13 +1125,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
990
1125
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
991
1126
  init: (config?: Object) => void;
992
1127
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
993
- getComment: (id: string) => Record<string, unknown> | null | undefined;
1128
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
994
1129
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
995
- getCommentLocation: (selection: any, parent: any) => {
996
- top: any;
997
- left: any;
998
- };
999
- hasOverlapId: (id: any) => any;
1000
1130
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
1001
1131
  selection?: Object | undefined;
1002
1132
  documentId?: string | null | undefined;
@@ -1085,11 +1215,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1085
1215
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
1086
1216
  setV2CommentsAdapter: (adapter: any) => void;
1087
1217
  getV2CommentsAdapter: (superdoc: any) => any;
1088
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
1218
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
1219
+ ok: boolean;
1220
+ geometryOnly: boolean;
1221
+ commentItems?: undefined;
1222
+ trackedItems?: undefined;
1223
+ reason?: undefined;
1224
+ detail?: undefined;
1225
+ } | {
1226
+ ok: boolean;
1227
+ commentItems: any;
1228
+ trackedItems: any;
1229
+ geometryOnly?: undefined;
1230
+ reason?: undefined;
1231
+ detail?: undefined;
1232
+ } | {
1233
+ ok: boolean;
1234
+ reason: any;
1235
+ geometryOnly?: undefined;
1236
+ commentItems?: undefined;
1237
+ trackedItems?: undefined;
1238
+ detail?: undefined;
1239
+ } | {
1240
+ ok: boolean;
1241
+ reason: string;
1242
+ detail: any;
1243
+ geometryOnly?: undefined;
1244
+ commentItems?: undefined;
1245
+ trackedItems?: undefined;
1246
+ };
1089
1247
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
1090
1248
  preparedInputs?: null | undefined;
1091
1249
  pruneStale?: boolean | undefined;
1092
- }) => any;
1250
+ }) => {
1251
+ added: null;
1252
+ dropped: string;
1253
+ } | {
1254
+ added: any;
1255
+ dropped?: undefined;
1256
+ };
1093
1257
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
1094
1258
  ok: boolean;
1095
1259
  reason: string;
@@ -1123,7 +1287,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1123
1287
  kind: "trackedChange";
1124
1288
  trackedChangeId: string;
1125
1289
  story?: unknown;
1126
- side?: "source" | "destination";
1290
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
1127
1291
  } | undefined;
1128
1292
  }) => Promise<any>;
1129
1293
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1152,7 +1316,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1152
1316
  resolvedIds: never[];
1153
1317
  unresolvedIds: never[];
1154
1318
  allResolved: boolean;
1155
- removedRows: any;
1319
+ removedRows: number;
1156
1320
  reason?: undefined;
1157
1321
  removedIds?: undefined;
1158
1322
  } | {
@@ -1172,9 +1336,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1172
1336
  previousPreparedPresentation?: null | undefined;
1173
1337
  liveIds?: null | undefined;
1174
1338
  liveAnchorKeys?: null | undefined;
1175
- }) => any;
1339
+ }) => {
1340
+ liveIds: Set<any>;
1341
+ liveAnchorKeys: Set<any>;
1342
+ appliedCount: number;
1343
+ } | undefined;
1176
1344
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1177
- }, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
1345
+ }, "COMMENT_EVENTS" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
1178
1346
  COMMENT_EVENTS: {
1179
1347
  readonly RESOLVED: "resolved";
1180
1348
  readonly NEW: "new";
@@ -1187,15 +1355,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1187
1355
  readonly CHANGE_ACCEPTED: "change-accepted";
1188
1356
  readonly CHANGE_REJECTED: "change-rejected";
1189
1357
  };
1190
- isDebugging: boolean;
1191
- hasInitializedComments: Ref<boolean, boolean>;
1192
1358
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
1193
1359
  editingCommentId: Ref<null, null>;
1194
1360
  activeComment: Ref<null, null>;
1195
1361
  activeFloatingCommentInstanceId: Ref<null, null>;
1196
- commentDialogs: Ref<never[], never[]>;
1197
- overlappingComments: Ref<never[], never[]>;
1198
- overlappedIds: Set<never>;
1199
1362
  suppressInternalExternal: Ref<boolean, boolean>;
1200
1363
  pendingComment: Ref<null, null>;
1201
1364
  currentCommentText: Ref<string, string>;
@@ -1213,8 +1376,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1213
1376
  isCommentHighlighted: Ref<boolean, boolean>;
1214
1377
  floatingCommentsOffset: Ref<number, number>;
1215
1378
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
1216
- sortedConversations: Ref<never[], never[]>;
1217
- visibleConversations: Ref<never[], never[]>;
1218
1379
  skipSelectionUpdate: Ref<boolean, boolean>;
1219
1380
  isFloatingCommentsReady: Ref<boolean, boolean>;
1220
1381
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -1236,30 +1397,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1236
1397
  resolvedComments: any[];
1237
1398
  }>;
1238
1399
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
1239
- getCommentsByPosition: import('vue').ComputedRef<{
1240
- parentComments: any[];
1241
- resolvedComments: any[];
1242
- }>;
1243
1400
  getFloatingComments: import('vue').ComputedRef<any[]>;
1244
1401
  getFloatingCommentInstances: import('vue').ComputedRef<{
1245
- id: any;
1246
- threadId: any;
1402
+ id: string;
1403
+ threadId: string | null;
1247
1404
  comment: any;
1248
- positionKey: any;
1249
- pageIndex: any;
1405
+ positionKey: string | null;
1406
+ positionEntry: {
1407
+ pageIndex?: number | null;
1408
+ rects?: readonly ({
1409
+ pageIndex?: number | null;
1410
+ left?: number;
1411
+ top?: number;
1412
+ right?: number;
1413
+ bottom?: number;
1414
+ } | null | undefined)[] | null;
1415
+ bounds?: Partial<{
1416
+ left: number;
1417
+ top: number;
1418
+ right: number;
1419
+ bottom: number;
1420
+ width: number;
1421
+ height: number;
1422
+ }> | null;
1423
+ } | null;
1424
+ pageIndex: number | null;
1250
1425
  isPrimary: boolean;
1251
- positionEntry: any;
1252
1426
  }[]>;
1253
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
1427
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
1254
1428
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
1255
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
1429
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
1256
1430
  getCommentPosition: (commentOrId: Object | string) => Object | null;
1257
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
1258
- key: string | null;
1259
- entry: any;
1431
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
1432
+ key: string;
1433
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
1434
+ } | {
1435
+ key: null;
1436
+ entry: null;
1260
1437
  };
1261
- getCommentDocumentId: (comment: any) => string | null;
1262
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
1438
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
1439
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
1263
1440
  viewingVisibility: {
1264
1441
  documentMode: string;
1265
1442
  commentsVisible: boolean;
@@ -1269,13 +1446,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1269
1446
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
1270
1447
  init: (config?: Object) => void;
1271
1448
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
1272
- getComment: (id: string) => Record<string, unknown> | null | undefined;
1449
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
1273
1450
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
1274
- getCommentLocation: (selection: any, parent: any) => {
1275
- top: any;
1276
- left: any;
1277
- };
1278
- hasOverlapId: (id: any) => any;
1279
1451
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
1280
1452
  selection?: Object | undefined;
1281
1453
  documentId?: string | null | undefined;
@@ -1364,11 +1536,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1364
1536
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
1365
1537
  setV2CommentsAdapter: (adapter: any) => void;
1366
1538
  getV2CommentsAdapter: (superdoc: any) => any;
1367
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
1539
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
1540
+ ok: boolean;
1541
+ geometryOnly: boolean;
1542
+ commentItems?: undefined;
1543
+ trackedItems?: undefined;
1544
+ reason?: undefined;
1545
+ detail?: undefined;
1546
+ } | {
1547
+ ok: boolean;
1548
+ commentItems: any;
1549
+ trackedItems: any;
1550
+ geometryOnly?: undefined;
1551
+ reason?: undefined;
1552
+ detail?: undefined;
1553
+ } | {
1554
+ ok: boolean;
1555
+ reason: any;
1556
+ geometryOnly?: undefined;
1557
+ commentItems?: undefined;
1558
+ trackedItems?: undefined;
1559
+ detail?: undefined;
1560
+ } | {
1561
+ ok: boolean;
1562
+ reason: string;
1563
+ detail: any;
1564
+ geometryOnly?: undefined;
1565
+ commentItems?: undefined;
1566
+ trackedItems?: undefined;
1567
+ };
1368
1568
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
1369
1569
  preparedInputs?: null | undefined;
1370
1570
  pruneStale?: boolean | undefined;
1371
- }) => any;
1571
+ }) => {
1572
+ added: null;
1573
+ dropped: string;
1574
+ } | {
1575
+ added: any;
1576
+ dropped?: undefined;
1577
+ };
1372
1578
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
1373
1579
  ok: boolean;
1374
1580
  reason: string;
@@ -1402,7 +1608,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1402
1608
  kind: "trackedChange";
1403
1609
  trackedChangeId: string;
1404
1610
  story?: unknown;
1405
- side?: "source" | "destination";
1611
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
1406
1612
  } | undefined;
1407
1613
  }) => Promise<any>;
1408
1614
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1431,7 +1637,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1431
1637
  resolvedIds: never[];
1432
1638
  unresolvedIds: never[];
1433
1639
  allResolved: boolean;
1434
- removedRows: any;
1640
+ removedRows: number;
1435
1641
  reason?: undefined;
1436
1642
  removedIds?: undefined;
1437
1643
  } | {
@@ -1451,9 +1657,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1451
1657
  previousPreparedPresentation?: null | undefined;
1452
1658
  liveIds?: null | undefined;
1453
1659
  liveAnchorKeys?: null | undefined;
1454
- }) => any;
1660
+ }) => {
1661
+ liveIds: Set<any>;
1662
+ liveAnchorKeys: Set<any>;
1663
+ appliedCount: number;
1664
+ } | undefined;
1455
1665
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1456
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
1666
+ }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
1457
1667
  COMMENT_EVENTS: {
1458
1668
  readonly RESOLVED: "resolved";
1459
1669
  readonly NEW: "new";
@@ -1466,15 +1676,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1466
1676
  readonly CHANGE_ACCEPTED: "change-accepted";
1467
1677
  readonly CHANGE_REJECTED: "change-rejected";
1468
1678
  };
1469
- isDebugging: boolean;
1470
- hasInitializedComments: Ref<boolean, boolean>;
1471
1679
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
1472
1680
  editingCommentId: Ref<null, null>;
1473
1681
  activeComment: Ref<null, null>;
1474
1682
  activeFloatingCommentInstanceId: Ref<null, null>;
1475
- commentDialogs: Ref<never[], never[]>;
1476
- overlappingComments: Ref<never[], never[]>;
1477
- overlappedIds: Set<never>;
1478
1683
  suppressInternalExternal: Ref<boolean, boolean>;
1479
1684
  pendingComment: Ref<null, null>;
1480
1685
  currentCommentText: Ref<string, string>;
@@ -1492,8 +1697,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1492
1697
  isCommentHighlighted: Ref<boolean, boolean>;
1493
1698
  floatingCommentsOffset: Ref<number, number>;
1494
1699
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
1495
- sortedConversations: Ref<never[], never[]>;
1496
- visibleConversations: Ref<never[], never[]>;
1497
1700
  skipSelectionUpdate: Ref<boolean, boolean>;
1498
1701
  isFloatingCommentsReady: Ref<boolean, boolean>;
1499
1702
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -1515,30 +1718,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1515
1718
  resolvedComments: any[];
1516
1719
  }>;
1517
1720
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
1518
- getCommentsByPosition: import('vue').ComputedRef<{
1519
- parentComments: any[];
1520
- resolvedComments: any[];
1521
- }>;
1522
1721
  getFloatingComments: import('vue').ComputedRef<any[]>;
1523
1722
  getFloatingCommentInstances: import('vue').ComputedRef<{
1524
- id: any;
1525
- threadId: any;
1723
+ id: string;
1724
+ threadId: string | null;
1526
1725
  comment: any;
1527
- positionKey: any;
1528
- pageIndex: any;
1726
+ positionKey: string | null;
1727
+ positionEntry: {
1728
+ pageIndex?: number | null;
1729
+ rects?: readonly ({
1730
+ pageIndex?: number | null;
1731
+ left?: number;
1732
+ top?: number;
1733
+ right?: number;
1734
+ bottom?: number;
1735
+ } | null | undefined)[] | null;
1736
+ bounds?: Partial<{
1737
+ left: number;
1738
+ top: number;
1739
+ right: number;
1740
+ bottom: number;
1741
+ width: number;
1742
+ height: number;
1743
+ }> | null;
1744
+ } | null;
1745
+ pageIndex: number | null;
1529
1746
  isPrimary: boolean;
1530
- positionEntry: any;
1531
1747
  }[]>;
1532
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
1748
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
1533
1749
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
1534
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
1750
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
1535
1751
  getCommentPosition: (commentOrId: Object | string) => Object | null;
1536
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
1537
- key: string | null;
1538
- entry: any;
1752
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
1753
+ key: string;
1754
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
1755
+ } | {
1756
+ key: null;
1757
+ entry: null;
1539
1758
  };
1540
- getCommentDocumentId: (comment: any) => string | null;
1541
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
1759
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
1760
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
1542
1761
  viewingVisibility: {
1543
1762
  documentMode: string;
1544
1763
  commentsVisible: boolean;
@@ -1548,13 +1767,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1548
1767
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
1549
1768
  init: (config?: Object) => void;
1550
1769
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
1551
- getComment: (id: string) => Record<string, unknown> | null | undefined;
1770
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
1552
1771
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
1553
- getCommentLocation: (selection: any, parent: any) => {
1554
- top: any;
1555
- left: any;
1556
- };
1557
- hasOverlapId: (id: any) => any;
1558
1772
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
1559
1773
  selection?: Object | undefined;
1560
1774
  documentId?: string | null | undefined;
@@ -1643,11 +1857,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1643
1857
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
1644
1858
  setV2CommentsAdapter: (adapter: any) => void;
1645
1859
  getV2CommentsAdapter: (superdoc: any) => any;
1646
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
1860
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
1861
+ ok: boolean;
1862
+ geometryOnly: boolean;
1863
+ commentItems?: undefined;
1864
+ trackedItems?: undefined;
1865
+ reason?: undefined;
1866
+ detail?: undefined;
1867
+ } | {
1868
+ ok: boolean;
1869
+ commentItems: any;
1870
+ trackedItems: any;
1871
+ geometryOnly?: undefined;
1872
+ reason?: undefined;
1873
+ detail?: undefined;
1874
+ } | {
1875
+ ok: boolean;
1876
+ reason: any;
1877
+ geometryOnly?: undefined;
1878
+ commentItems?: undefined;
1879
+ trackedItems?: undefined;
1880
+ detail?: undefined;
1881
+ } | {
1882
+ ok: boolean;
1883
+ reason: string;
1884
+ detail: any;
1885
+ geometryOnly?: undefined;
1886
+ commentItems?: undefined;
1887
+ trackedItems?: undefined;
1888
+ };
1647
1889
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
1648
1890
  preparedInputs?: null | undefined;
1649
1891
  pruneStale?: boolean | undefined;
1650
- }) => any;
1892
+ }) => {
1893
+ added: null;
1894
+ dropped: string;
1895
+ } | {
1896
+ added: any;
1897
+ dropped?: undefined;
1898
+ };
1651
1899
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
1652
1900
  ok: boolean;
1653
1901
  reason: string;
@@ -1681,7 +1929,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1681
1929
  kind: "trackedChange";
1682
1930
  trackedChangeId: string;
1683
1931
  story?: unknown;
1684
- side?: "source" | "destination";
1932
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
1685
1933
  } | undefined;
1686
1934
  }) => Promise<any>;
1687
1935
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1710,7 +1958,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1710
1958
  resolvedIds: never[];
1711
1959
  unresolvedIds: never[];
1712
1960
  allResolved: boolean;
1713
- removedRows: any;
1961
+ removedRows: number;
1714
1962
  reason?: undefined;
1715
1963
  removedIds?: undefined;
1716
1964
  } | {
@@ -1730,9 +1978,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1730
1978
  previousPreparedPresentation?: null | undefined;
1731
1979
  liveIds?: null | undefined;
1732
1980
  liveAnchorKeys?: null | undefined;
1733
- }) => any;
1981
+ }) => {
1982
+ liveIds: Set<any>;
1983
+ liveAnchorKeys: Set<any>;
1984
+ appliedCount: number;
1985
+ } | undefined;
1734
1986
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1735
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
1987
+ }, "resolveCommentPositionEntry" | "getCommentAliasIds" | "getCommentPositionKey" | "belongsToDocument" | "getComment" | "getTrackedChangeThread" | "getCommentPosition" | "getCommentDocumentId" | "init" | "setViewingVisibility" | "setActiveComment" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
1736
1988
  documents: Ref<StoreDocument[], StoreDocument[]>;
1737
1989
  documentBounds: Ref<unknown[], unknown[]>;
1738
1990
  pages: Record<string, PageEntry[]>;
@@ -1776,15 +2028,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1776
2028
  readonly CHANGE_ACCEPTED: "change-accepted";
1777
2029
  readonly CHANGE_REJECTED: "change-rejected";
1778
2030
  };
1779
- isDebugging: boolean;
1780
- hasInitializedComments: Ref<boolean, boolean>;
1781
2031
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
1782
2032
  editingCommentId: Ref<null, null>;
1783
2033
  activeComment: Ref<null, null>;
1784
2034
  activeFloatingCommentInstanceId: Ref<null, null>;
1785
- commentDialogs: Ref<never[], never[]>;
1786
- overlappingComments: Ref<never[], never[]>;
1787
- overlappedIds: Set<never>;
1788
2035
  suppressInternalExternal: Ref<boolean, boolean>;
1789
2036
  pendingComment: Ref<null, null>;
1790
2037
  currentCommentText: Ref<string, string>;
@@ -1802,8 +2049,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1802
2049
  isCommentHighlighted: Ref<boolean, boolean>;
1803
2050
  floatingCommentsOffset: Ref<number, number>;
1804
2051
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
1805
- sortedConversations: Ref<never[], never[]>;
1806
- visibleConversations: Ref<never[], never[]>;
1807
2052
  skipSelectionUpdate: Ref<boolean, boolean>;
1808
2053
  isFloatingCommentsReady: Ref<boolean, boolean>;
1809
2054
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -1825,30 +2070,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1825
2070
  resolvedComments: any[];
1826
2071
  }>;
1827
2072
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
1828
- getCommentsByPosition: import('vue').ComputedRef<{
1829
- parentComments: any[];
1830
- resolvedComments: any[];
1831
- }>;
1832
2073
  getFloatingComments: import('vue').ComputedRef<any[]>;
1833
2074
  getFloatingCommentInstances: import('vue').ComputedRef<{
1834
- id: any;
1835
- threadId: any;
2075
+ id: string;
2076
+ threadId: string | null;
1836
2077
  comment: any;
1837
- positionKey: any;
1838
- pageIndex: any;
2078
+ positionKey: string | null;
2079
+ positionEntry: {
2080
+ pageIndex?: number | null;
2081
+ rects?: readonly ({
2082
+ pageIndex?: number | null;
2083
+ left?: number;
2084
+ top?: number;
2085
+ right?: number;
2086
+ bottom?: number;
2087
+ } | null | undefined)[] | null;
2088
+ bounds?: Partial<{
2089
+ left: number;
2090
+ top: number;
2091
+ right: number;
2092
+ bottom: number;
2093
+ width: number;
2094
+ height: number;
2095
+ }> | null;
2096
+ } | null;
2097
+ pageIndex: number | null;
1839
2098
  isPrimary: boolean;
1840
- positionEntry: any;
1841
2099
  }[]>;
1842
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
2100
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
1843
2101
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
1844
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
2102
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
1845
2103
  getCommentPosition: (commentOrId: Object | string) => Object | null;
1846
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
1847
- key: string | null;
1848
- entry: any;
2104
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
2105
+ key: string;
2106
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
2107
+ } | {
2108
+ key: null;
2109
+ entry: null;
1849
2110
  };
1850
- getCommentDocumentId: (comment: any) => string | null;
1851
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
2111
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
2112
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
1852
2113
  viewingVisibility: {
1853
2114
  documentMode: string;
1854
2115
  commentsVisible: boolean;
@@ -1858,13 +2119,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1858
2119
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
1859
2120
  init: (config?: Object) => void;
1860
2121
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
1861
- getComment: (id: string) => Record<string, unknown> | null | undefined;
2122
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
1862
2123
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
1863
- getCommentLocation: (selection: any, parent: any) => {
1864
- top: any;
1865
- left: any;
1866
- };
1867
- hasOverlapId: (id: any) => any;
1868
2124
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
1869
2125
  selection?: Object | undefined;
1870
2126
  documentId?: string | null | undefined;
@@ -1953,11 +2209,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1953
2209
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
1954
2210
  setV2CommentsAdapter: (adapter: any) => void;
1955
2211
  getV2CommentsAdapter: (superdoc: any) => any;
1956
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
2212
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
2213
+ ok: boolean;
2214
+ geometryOnly: boolean;
2215
+ commentItems?: undefined;
2216
+ trackedItems?: undefined;
2217
+ reason?: undefined;
2218
+ detail?: undefined;
2219
+ } | {
2220
+ ok: boolean;
2221
+ commentItems: any;
2222
+ trackedItems: any;
2223
+ geometryOnly?: undefined;
2224
+ reason?: undefined;
2225
+ detail?: undefined;
2226
+ } | {
2227
+ ok: boolean;
2228
+ reason: any;
2229
+ geometryOnly?: undefined;
2230
+ commentItems?: undefined;
2231
+ trackedItems?: undefined;
2232
+ detail?: undefined;
2233
+ } | {
2234
+ ok: boolean;
2235
+ reason: string;
2236
+ detail: any;
2237
+ geometryOnly?: undefined;
2238
+ commentItems?: undefined;
2239
+ trackedItems?: undefined;
2240
+ };
1957
2241
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
1958
2242
  preparedInputs?: null | undefined;
1959
2243
  pruneStale?: boolean | undefined;
1960
- }) => any;
2244
+ }) => {
2245
+ added: null;
2246
+ dropped: string;
2247
+ } | {
2248
+ added: any;
2249
+ dropped?: undefined;
2250
+ };
1961
2251
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
1962
2252
  ok: boolean;
1963
2253
  reason: string;
@@ -1991,7 +2281,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1991
2281
  kind: "trackedChange";
1992
2282
  trackedChangeId: string;
1993
2283
  story?: unknown;
1994
- side?: "source" | "destination";
2284
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
1995
2285
  } | undefined;
1996
2286
  }) => Promise<any>;
1997
2287
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -2020,7 +2310,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2020
2310
  resolvedIds: never[];
2021
2311
  unresolvedIds: never[];
2022
2312
  allResolved: boolean;
2023
- removedRows: any;
2313
+ removedRows: number;
2024
2314
  reason?: undefined;
2025
2315
  removedIds?: undefined;
2026
2316
  } | {
@@ -2040,9 +2330,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2040
2330
  previousPreparedPresentation?: null | undefined;
2041
2331
  liveIds?: null | undefined;
2042
2332
  liveAnchorKeys?: null | undefined;
2043
- }) => any;
2333
+ }) => {
2334
+ liveIds: Set<any>;
2335
+ liveAnchorKeys: Set<any>;
2336
+ appliedCount: number;
2337
+ } | undefined;
2044
2338
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
2045
- }, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
2339
+ }, "COMMENT_EVENTS" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
2046
2340
  COMMENT_EVENTS: {
2047
2341
  readonly RESOLVED: "resolved";
2048
2342
  readonly NEW: "new";
@@ -2055,15 +2349,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2055
2349
  readonly CHANGE_ACCEPTED: "change-accepted";
2056
2350
  readonly CHANGE_REJECTED: "change-rejected";
2057
2351
  };
2058
- isDebugging: boolean;
2059
- hasInitializedComments: Ref<boolean, boolean>;
2060
2352
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
2061
2353
  editingCommentId: Ref<null, null>;
2062
2354
  activeComment: Ref<null, null>;
2063
2355
  activeFloatingCommentInstanceId: Ref<null, null>;
2064
- commentDialogs: Ref<never[], never[]>;
2065
- overlappingComments: Ref<never[], never[]>;
2066
- overlappedIds: Set<never>;
2067
2356
  suppressInternalExternal: Ref<boolean, boolean>;
2068
2357
  pendingComment: Ref<null, null>;
2069
2358
  currentCommentText: Ref<string, string>;
@@ -2081,8 +2370,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2081
2370
  isCommentHighlighted: Ref<boolean, boolean>;
2082
2371
  floatingCommentsOffset: Ref<number, number>;
2083
2372
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
2084
- sortedConversations: Ref<never[], never[]>;
2085
- visibleConversations: Ref<never[], never[]>;
2086
2373
  skipSelectionUpdate: Ref<boolean, boolean>;
2087
2374
  isFloatingCommentsReady: Ref<boolean, boolean>;
2088
2375
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -2104,30 +2391,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2104
2391
  resolvedComments: any[];
2105
2392
  }>;
2106
2393
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
2107
- getCommentsByPosition: import('vue').ComputedRef<{
2108
- parentComments: any[];
2109
- resolvedComments: any[];
2110
- }>;
2111
2394
  getFloatingComments: import('vue').ComputedRef<any[]>;
2112
2395
  getFloatingCommentInstances: import('vue').ComputedRef<{
2113
- id: any;
2114
- threadId: any;
2396
+ id: string;
2397
+ threadId: string | null;
2115
2398
  comment: any;
2116
- positionKey: any;
2117
- pageIndex: any;
2399
+ positionKey: string | null;
2400
+ positionEntry: {
2401
+ pageIndex?: number | null;
2402
+ rects?: readonly ({
2403
+ pageIndex?: number | null;
2404
+ left?: number;
2405
+ top?: number;
2406
+ right?: number;
2407
+ bottom?: number;
2408
+ } | null | undefined)[] | null;
2409
+ bounds?: Partial<{
2410
+ left: number;
2411
+ top: number;
2412
+ right: number;
2413
+ bottom: number;
2414
+ width: number;
2415
+ height: number;
2416
+ }> | null;
2417
+ } | null;
2418
+ pageIndex: number | null;
2118
2419
  isPrimary: boolean;
2119
- positionEntry: any;
2120
2420
  }[]>;
2121
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
2421
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
2122
2422
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
2123
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
2423
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
2124
2424
  getCommentPosition: (commentOrId: Object | string) => Object | null;
2125
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
2126
- key: string | null;
2127
- entry: any;
2425
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
2426
+ key: string;
2427
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
2428
+ } | {
2429
+ key: null;
2430
+ entry: null;
2128
2431
  };
2129
- getCommentDocumentId: (comment: any) => string | null;
2130
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
2432
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
2433
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
2131
2434
  viewingVisibility: {
2132
2435
  documentMode: string;
2133
2436
  commentsVisible: boolean;
@@ -2137,13 +2440,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2137
2440
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
2138
2441
  init: (config?: Object) => void;
2139
2442
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
2140
- getComment: (id: string) => Record<string, unknown> | null | undefined;
2443
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
2141
2444
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
2142
- getCommentLocation: (selection: any, parent: any) => {
2143
- top: any;
2144
- left: any;
2145
- };
2146
- hasOverlapId: (id: any) => any;
2147
2445
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
2148
2446
  selection?: Object | undefined;
2149
2447
  documentId?: string | null | undefined;
@@ -2232,11 +2530,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2232
2530
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
2233
2531
  setV2CommentsAdapter: (adapter: any) => void;
2234
2532
  getV2CommentsAdapter: (superdoc: any) => any;
2235
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
2533
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
2534
+ ok: boolean;
2535
+ geometryOnly: boolean;
2536
+ commentItems?: undefined;
2537
+ trackedItems?: undefined;
2538
+ reason?: undefined;
2539
+ detail?: undefined;
2540
+ } | {
2541
+ ok: boolean;
2542
+ commentItems: any;
2543
+ trackedItems: any;
2544
+ geometryOnly?: undefined;
2545
+ reason?: undefined;
2546
+ detail?: undefined;
2547
+ } | {
2548
+ ok: boolean;
2549
+ reason: any;
2550
+ geometryOnly?: undefined;
2551
+ commentItems?: undefined;
2552
+ trackedItems?: undefined;
2553
+ detail?: undefined;
2554
+ } | {
2555
+ ok: boolean;
2556
+ reason: string;
2557
+ detail: any;
2558
+ geometryOnly?: undefined;
2559
+ commentItems?: undefined;
2560
+ trackedItems?: undefined;
2561
+ };
2236
2562
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
2237
2563
  preparedInputs?: null | undefined;
2238
2564
  pruneStale?: boolean | undefined;
2239
- }) => any;
2565
+ }) => {
2566
+ added: null;
2567
+ dropped: string;
2568
+ } | {
2569
+ added: any;
2570
+ dropped?: undefined;
2571
+ };
2240
2572
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
2241
2573
  ok: boolean;
2242
2574
  reason: string;
@@ -2270,7 +2602,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2270
2602
  kind: "trackedChange";
2271
2603
  trackedChangeId: string;
2272
2604
  story?: unknown;
2273
- side?: "source" | "destination";
2605
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
2274
2606
  } | undefined;
2275
2607
  }) => Promise<any>;
2276
2608
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -2299,7 +2631,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2299
2631
  resolvedIds: never[];
2300
2632
  unresolvedIds: never[];
2301
2633
  allResolved: boolean;
2302
- removedRows: any;
2634
+ removedRows: number;
2303
2635
  reason?: undefined;
2304
2636
  removedIds?: undefined;
2305
2637
  } | {
@@ -2319,9 +2651,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2319
2651
  previousPreparedPresentation?: null | undefined;
2320
2652
  liveIds?: null | undefined;
2321
2653
  liveAnchorKeys?: null | undefined;
2322
- }) => any;
2654
+ }) => {
2655
+ liveIds: Set<any>;
2656
+ liveAnchorKeys: Set<any>;
2657
+ appliedCount: number;
2658
+ } | undefined;
2323
2659
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
2324
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
2660
+ }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
2325
2661
  COMMENT_EVENTS: {
2326
2662
  readonly RESOLVED: "resolved";
2327
2663
  readonly NEW: "new";
@@ -2334,15 +2670,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2334
2670
  readonly CHANGE_ACCEPTED: "change-accepted";
2335
2671
  readonly CHANGE_REJECTED: "change-rejected";
2336
2672
  };
2337
- isDebugging: boolean;
2338
- hasInitializedComments: Ref<boolean, boolean>;
2339
2673
  hasSyncedCollaborationComments: Ref<boolean, boolean>;
2340
2674
  editingCommentId: Ref<null, null>;
2341
2675
  activeComment: Ref<null, null>;
2342
2676
  activeFloatingCommentInstanceId: Ref<null, null>;
2343
- commentDialogs: Ref<never[], never[]>;
2344
- overlappingComments: Ref<never[], never[]>;
2345
- overlappedIds: Set<never>;
2346
2677
  suppressInternalExternal: Ref<boolean, boolean>;
2347
2678
  pendingComment: Ref<null, null>;
2348
2679
  currentCommentText: Ref<string, string>;
@@ -2360,8 +2691,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2360
2691
  isCommentHighlighted: Ref<boolean, boolean>;
2361
2692
  floatingCommentsOffset: Ref<number, number>;
2362
2693
  committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
2363
- sortedConversations: Ref<never[], never[]>;
2364
- visibleConversations: Ref<never[], never[]>;
2365
2694
  skipSelectionUpdate: Ref<boolean, boolean>;
2366
2695
  isFloatingCommentsReady: Ref<boolean, boolean>;
2367
2696
  instantSidebarAlignmentTargetY: Ref<null, null>;
@@ -2383,30 +2712,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2383
2712
  resolvedComments: any[];
2384
2713
  }>;
2385
2714
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
2386
- getCommentsByPosition: import('vue').ComputedRef<{
2387
- parentComments: any[];
2388
- resolvedComments: any[];
2389
- }>;
2390
2715
  getFloatingComments: import('vue').ComputedRef<any[]>;
2391
2716
  getFloatingCommentInstances: import('vue').ComputedRef<{
2392
- id: any;
2393
- threadId: any;
2717
+ id: string;
2718
+ threadId: string | null;
2394
2719
  comment: any;
2395
- positionKey: any;
2396
- pageIndex: any;
2720
+ positionKey: string | null;
2721
+ positionEntry: {
2722
+ pageIndex?: number | null;
2723
+ rects?: readonly ({
2724
+ pageIndex?: number | null;
2725
+ left?: number;
2726
+ top?: number;
2727
+ right?: number;
2728
+ bottom?: number;
2729
+ } | null | undefined)[] | null;
2730
+ bounds?: Partial<{
2731
+ left: number;
2732
+ top: number;
2733
+ right: number;
2734
+ bottom: number;
2735
+ width: number;
2736
+ height: number;
2737
+ }> | null;
2738
+ } | null;
2739
+ pageIndex: number | null;
2397
2740
  isPrimary: boolean;
2398
- positionEntry: any;
2399
2741
  }[]>;
2400
- getCommentAliasIds: (commentOrId: any) => (string | null)[];
2742
+ getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
2401
2743
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
2402
- getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
2744
+ getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
2403
2745
  getCommentPosition: (commentOrId: Object | string) => Object | null;
2404
- resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
2405
- key: string | null;
2406
- entry: any;
2746
+ resolveCommentPositionEntry: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined, preferredId?: unknown) => {
2747
+ key: string;
2748
+ entry: import('./helpers/comment-identity.js').CommentPositionEntry;
2749
+ } | {
2750
+ key: null;
2751
+ entry: null;
2407
2752
  };
2408
- getCommentDocumentId: (comment: any) => string | null;
2409
- belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
2753
+ getCommentDocumentId: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment) => string | null;
2754
+ belongsToDocument: (comment: import('./helpers/comment-document-scope.js').DocumentScopedComment, activeDocumentId: string | null | undefined, options?: import('./helpers/comment-document-scope.js').BelongsToDocumentOptions) => boolean;
2410
2755
  viewingVisibility: {
2411
2756
  documentMode: string;
2412
2757
  commentsVisible: boolean;
@@ -2416,13 +2761,8 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2416
2761
  shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
2417
2762
  init: (config?: Object) => void;
2418
2763
  setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
2419
- getComment: (id: string) => Record<string, unknown> | null | undefined;
2764
+ getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
2420
2765
  setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
2421
- getCommentLocation: (selection: any, parent: any) => {
2422
- top: any;
2423
- left: any;
2424
- };
2425
- hasOverlapId: (id: any) => any;
2426
2766
  getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
2427
2767
  selection?: Object | undefined;
2428
2768
  documentId?: string | null | undefined;
@@ -2511,11 +2851,45 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2511
2851
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
2512
2852
  setV2CommentsAdapter: (adapter: any) => void;
2513
2853
  getV2CommentsAdapter: (superdoc: any) => any;
2514
- applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
2854
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, preparedReview, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => {
2855
+ ok: boolean;
2856
+ geometryOnly: boolean;
2857
+ commentItems?: undefined;
2858
+ trackedItems?: undefined;
2859
+ reason?: undefined;
2860
+ detail?: undefined;
2861
+ } | {
2862
+ ok: boolean;
2863
+ commentItems: any;
2864
+ trackedItems: any;
2865
+ geometryOnly?: undefined;
2866
+ reason?: undefined;
2867
+ detail?: undefined;
2868
+ } | {
2869
+ ok: boolean;
2870
+ reason: any;
2871
+ geometryOnly?: undefined;
2872
+ commentItems?: undefined;
2873
+ trackedItems?: undefined;
2874
+ detail?: undefined;
2875
+ } | {
2876
+ ok: boolean;
2877
+ reason: string;
2878
+ detail: any;
2879
+ geometryOnly?: undefined;
2880
+ commentItems?: undefined;
2881
+ trackedItems?: undefined;
2882
+ };
2515
2883
  reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
2516
2884
  preparedInputs?: null | undefined;
2517
2885
  pruneStale?: boolean | undefined;
2518
- }) => any;
2886
+ }) => {
2887
+ added: null;
2888
+ dropped: string;
2889
+ } | {
2890
+ added: any;
2891
+ dropped?: undefined;
2892
+ };
2519
2893
  announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
2520
2894
  ok: boolean;
2521
2895
  reason: string;
@@ -2549,7 +2923,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2549
2923
  kind: "trackedChange";
2550
2924
  trackedChangeId: string;
2551
2925
  story?: unknown;
2552
- side?: "source" | "destination";
2926
+ side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
2553
2927
  } | undefined;
2554
2928
  }) => Promise<any>;
2555
2929
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -2578,7 +2952,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2578
2952
  resolvedIds: never[];
2579
2953
  unresolvedIds: never[];
2580
2954
  allResolved: boolean;
2581
- removedRows: any;
2955
+ removedRows: number;
2582
2956
  reason?: undefined;
2583
2957
  removedIds?: undefined;
2584
2958
  } | {
@@ -2598,9 +2972,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2598
2972
  previousPreparedPresentation?: null | undefined;
2599
2973
  liveIds?: null | undefined;
2600
2974
  liveAnchorKeys?: null | undefined;
2601
- }) => any;
2975
+ }) => {
2976
+ liveIds: Set<any>;
2977
+ liveAnchorKeys: Set<any>;
2978
+ appliedCount: number;
2979
+ } | undefined;
2602
2980
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
2603
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
2981
+ }, "resolveCommentPositionEntry" | "getCommentAliasIds" | "getCommentPositionKey" | "belongsToDocument" | "getComment" | "getTrackedChangeThread" | "getCommentPosition" | "getCommentDocumentId" | "init" | "setViewingVisibility" | "setActiveComment" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
2604
2982
  documents: Ref<StoreDocument[], StoreDocument[]>;
2605
2983
  documentBounds: Ref<unknown[], unknown[]>;
2606
2984
  pages: Record<string, PageEntry[]>;