superdoc 2.29.0-next.1 → 2.29.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/chunks/{FindReplaceSurface-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
  2. package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
  3. package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
  4. package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
  5. package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-DmSkZehl.cjs} +70 -99
  6. package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-aOWhUVI7.es.js} +67 -96
  7. package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
  8. package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
  9. package/dist/chunks/{create-super-doc-ui-Duf65d0b.es.js → create-super-doc-ui-DdT4b29f.es.js} +41 -66
  10. package/dist/chunks/{create-super-doc-ui-0OA8hCNb.cjs → create-super-doc-ui-_SbygYQ4.cjs} +46 -65
  11. package/dist/collaboration-upgrade-engine.cjs +1 -1
  12. package/dist/collaboration-upgrade-engine.es.js +1 -1
  13. package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
  14. package/dist/document-api/src/comments/comments.d.ts +2 -0
  15. package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
  16. package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
  17. package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
  18. package/dist/document-api/src/index.d.ts +8 -7
  19. package/dist/document-api/src/insert/insert.d.ts +2 -2
  20. package/dist/document-api/src/replace/replace.d.ts +3 -2
  21. package/dist/document-api/src/tables/tables.d.ts +2 -1
  22. package/dist/document-api/src/types/address.d.ts +3 -0
  23. package/dist/document-api/src/types/table-operations.types.d.ts +1 -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/layout-engine/contracts/src/index.d.ts +1 -1
  27. package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
  28. package/dist/public/ui-react.cjs +1 -1
  29. package/dist/public/ui-react.es.js +1 -1
  30. package/dist/public/ui-vue.cjs +1 -1
  31. package/dist/public/ui-vue.es.js +1 -1
  32. package/dist/public/ui.cjs +1 -1
  33. package/dist/public/ui.es.js +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/style.layered.css +1 -1
  36. package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
  37. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +116 -1277
  38. package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +106 -22
  39. package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +74 -14
  40. package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
  41. package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
  42. package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
  43. package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
  44. package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
  45. package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
  46. package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
  47. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +29 -13
  48. package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
  49. package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
  50. package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
  51. package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
  52. package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +81 -16
  53. package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
  54. package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
  55. package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
  56. package/dist/superdoc/src/components/general/Avatar.vue.d.ts +12 -5
  57. package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
  58. package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
  59. package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
  60. package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
  61. package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
  62. package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
  63. package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
  64. package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
  65. package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
  66. package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
  67. package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
  68. package/dist/superdoc/src/composables/use-field.d.ts +88 -25
  69. package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
  70. package/dist/superdoc/src/composables/use-viewport-fit.d.ts +40 -26
  71. package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
  72. package/dist/superdoc/src/core/SuperDoc.d.ts +2 -7
  73. package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
  74. package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
  75. package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
  76. package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
  77. package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
  78. package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
  79. package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
  80. package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
  81. package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
  82. package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
  83. package/dist/superdoc/src/core/create-app.d.ts +13 -24
  84. package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
  85. package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
  86. package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
  87. package/dist/superdoc/src/core/editor-runtime/types.d.ts +9 -1
  88. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
  89. package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
  90. package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
  91. package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
  92. package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
  93. package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
  94. package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
  95. package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
  96. package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
  97. package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +24 -61
  98. package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
  99. package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
  100. package/dist/superdoc/src/core/types/index.d.ts +5 -19
  101. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
  102. package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
  103. package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
  104. package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
  105. package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
  106. package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
  107. package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
  108. package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
  109. package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
  110. package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
  111. package/dist/superdoc/src/helpers/object-guards.d.ts +1 -5
  112. package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
  113. package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
  114. package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
  115. package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
  116. package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
  117. package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
  118. package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
  119. package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
  120. package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
  121. package/dist/superdoc/src/icons.d.ts +11 -11
  122. package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
  123. package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
  124. package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
  125. package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
  126. package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
  127. package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
  128. package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
  129. package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
  130. package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
  131. package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
  132. package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
  133. package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
  134. package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
  135. package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
  136. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +13 -15
  137. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -10
  138. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
  139. package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
  140. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
  141. package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
  142. package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
  143. package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
  144. package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
  145. package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
  146. package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
  147. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
  148. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
  149. package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
  150. package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
  151. package/dist/superdoc/src/public/index.d.cts +26 -0
  152. package/dist/superdoc/src/public/index.d.ts +13 -0
  153. package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
  154. package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
  155. package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
  156. package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
  157. package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
  158. package/dist/superdoc/src/public/ui/types.d.ts +1 -1
  159. package/dist/superdoc/src/stores/comments-store.d.ts +225 -99
  160. package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
  161. package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
  162. package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
  163. package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
  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 +21 -0
  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 +676 -298
  168. package/dist/superdoc.cjs +1682 -2515
  169. package/dist/superdoc.es.js +1716 -2553
  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 +2 -2
  174. package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
  175. package/dist/superdoc/src/main.d.ts +0 -1
@@ -0,0 +1,40 @@
1
+ export type CommentIdentityRow = Record<string, unknown>;
2
+ type PositionBounds = {
3
+ left?: number;
4
+ right?: number;
5
+ top?: number;
6
+ bottom?: number;
7
+ };
8
+ export type CommentPositionEntry = {
9
+ key?: unknown;
10
+ threadId?: unknown;
11
+ kind?: string;
12
+ storyKey?: string;
13
+ pageIndex?: number | null;
14
+ start?: number;
15
+ end?: number;
16
+ bounds?: PositionBounds | null;
17
+ } | null;
18
+ export type CommentPositions = Record<string, CommentPositionEntry | undefined>;
19
+ type PositionMatch = {
20
+ key: string;
21
+ entry: CommentPositionEntry;
22
+ } | {
23
+ key: null;
24
+ entry: null;
25
+ };
26
+ type CommentIdentitySources = {
27
+ getComments: () => CommentIdentityRow[];
28
+ getReviewDirectory: () => CommentIdentityRow[];
29
+ getPositions: () => CommentPositions | null | undefined;
30
+ };
31
+ type CommentReference = CommentIdentityRow | string | number | null | undefined;
32
+ export declare const trackedChangeThreadParentIdForComment: (comment: CommentIdentityRow | null | undefined) => unknown;
33
+ export declare const createCommentIdentity: ({ getComments, getReviewDirectory, getPositions }: CommentIdentitySources) => {
34
+ getComment: (id: unknown) => CommentIdentityRow | null;
35
+ getThreadParent: (comment: CommentIdentityRow | null | undefined) => CommentIdentityRow | null | undefined;
36
+ getCommentPositionKey: (commentOrId: CommentIdentityRow | string | null | undefined) => unknown;
37
+ getCommentAliasIds: (commentOrId: CommentReference) => string[];
38
+ resolveCommentPositionEntry: (commentOrId: CommentReference, preferredId?: unknown) => PositionMatch;
39
+ };
40
+ export {};
@@ -1,14 +1,49 @@
1
- export function buildFloatingCommentInstances({ comment, positionKey, positionEntry, fallbackId }: {
2
- comment: any;
3
- positionKey: any;
4
- positionEntry: any;
5
- fallbackId: any;
6
- }): {
7
- id: any;
8
- threadId: any;
9
- comment: any;
10
- positionKey: any;
11
- pageIndex: any;
1
+ type FloatingCommentRect = {
2
+ pageIndex?: number | null;
3
+ left?: number;
4
+ top?: number;
5
+ right?: number;
6
+ bottom?: number;
7
+ };
8
+ type FloatingCommentBounds = {
9
+ left: number;
10
+ top: number;
11
+ right: number;
12
+ bottom: number;
13
+ width: number;
14
+ height: number;
15
+ };
16
+ type FloatingCommentPositionEntry = {
17
+ pageIndex?: number | null;
18
+ rects?: readonly (FloatingCommentRect | null | undefined)[] | null;
19
+ bounds?: Partial<FloatingCommentBounds> | null;
20
+ };
21
+ type FloatingCommentSource = {
22
+ commentId?: string | null;
23
+ trackedChange?: boolean | null;
24
+ trackedChangeStory?: string | {
25
+ storyType?: unknown;
26
+ } | null;
27
+ trackedChangeCanonicalId?: string | null;
28
+ trackedChangePositionAliases?: readonly unknown[] | null;
29
+ selection?: {
30
+ page?: unknown;
31
+ } | null;
32
+ };
33
+ type FloatingCommentInstance<TComment extends FloatingCommentSource = FloatingCommentSource> = {
34
+ id: string;
35
+ threadId: string | null;
36
+ comment: TComment;
37
+ positionKey: string | null;
38
+ positionEntry: FloatingCommentPositionEntry | null;
39
+ pageIndex: number | null;
12
40
  isPrimary: boolean;
13
- positionEntry: any;
14
- }[];
41
+ };
42
+ type BuildFloatingCommentInstancesParams<TComment extends FloatingCommentSource> = {
43
+ comment: TComment;
44
+ positionKey: string | null;
45
+ positionEntry: FloatingCommentPositionEntry | null;
46
+ fallbackId: string | null;
47
+ };
48
+ export declare const buildFloatingCommentInstances: <TComment extends FloatingCommentSource>({ comment, positionKey, positionEntry, fallbackId, }: BuildFloatingCommentInstancesParams<TComment>) => FloatingCommentInstance<TComment>[];
49
+ export {};
@@ -0,0 +1,19 @@
1
+ import { BodyStoryLocator } from '../../../../document-api/src/index.js';
2
+ type TrackedChangeAnchorParts = {
3
+ storyKey: string;
4
+ rawId: string;
5
+ };
6
+ export declare const BODY_TRACKED_CHANGE_STORY: BodyStoryLocator;
7
+ export declare const normalizeCommentId: (id: unknown) => string | null;
8
+ export declare const makeTrackedChangeAnchorKey: ({ storyKey, rawId }: TrackedChangeAnchorParts) => string;
9
+ export declare const isBodyTrackedChangeComment: (comment: unknown) => boolean;
10
+ export declare const buildBodyTrackedChangeAnchorKey: (rawId: unknown) => string | null;
11
+ export declare const parseTrackedChangeAnchorKey: (anchorKey: unknown) => TrackedChangeAnchorParts | null;
12
+ export declare const buildTrackedChangeAnchorKeyForStory: (storyKey: string | null, rawId: unknown) => string | null;
13
+ export declare const normalizeTrackedChangePositionAliases: (aliases: unknown) => string[];
14
+ export declare const getTrackedChangeStoryKey: (comment: unknown) => string | null;
15
+ export declare const normalizeTrackedChangeStoryKey: (storyKey: string | null) => string | null;
16
+ export declare const trackedChangeStoryKeysAreCompatible: (leftStoryKey: string | null, rightStoryKey: string | null) => boolean;
17
+ export declare const positionEntryMatchesTrackedChangeStory: (entry: unknown, comment: unknown) => boolean;
18
+ export declare const buildTrackedChangeImportedPositionId: (id: unknown) => string | null;
19
+ export {};
@@ -0,0 +1,21 @@
1
+ import { TrackChangeCustomAttribute } from '../../../../document-api/src/index.js';
2
+ type TrackedChangeDetailLine = {
3
+ excerpt: string;
4
+ label: string;
5
+ };
6
+ type TrackedChangeRowImagePreview = {
7
+ src: string;
8
+ contentType?: string;
9
+ role?: string;
10
+ width?: number;
11
+ height?: number;
12
+ alt: string;
13
+ };
14
+ export declare const shallowEqual: (a: unknown, b: unknown) => boolean;
15
+ export declare const normalizeTrackedChangeDetailLines: (lines: unknown) => TrackedChangeDetailLine[] | null;
16
+ export declare const trackedChangeDetailLinesEqual: (a: unknown, b: unknown) => boolean;
17
+ export declare const normalizeTrackedChangeCustomAttributes: (attributes: unknown) => TrackChangeCustomAttribute[] | null;
18
+ export declare const trackedChangeCustomAttributesEqual: (a: unknown, b: unknown) => boolean;
19
+ export declare const normalizeTrackedChangeImagePreview: (preview: unknown) => TrackedChangeRowImagePreview | null;
20
+ export declare const cloneV2TrackedChangeStory: (story: unknown) => Record<string, unknown> | null;
21
+ export {};
@@ -1,28 +1,25 @@
1
- export function buildTrackedChangeThreadOwnerIndex<Comment extends {
2
- commentId: string | number;
1
+ type CommentId = string | number;
2
+ export type TrackedChangeSideGroup = 'source' | 'destination';
3
+ type TrackedChangeLinkFields = {
4
+ parentCommentId?: CommentId | null;
5
+ threadingParentCommentId?: CommentId | null;
6
+ trackedChangeParentId?: CommentId | null;
7
+ trackedChangeThreadParentId?: CommentId | null;
8
+ };
9
+ type TrackedChangeThreadOwnerFields = TrackedChangeLinkFields & {
10
+ commentId: CommentId;
3
11
  trackedChange?: boolean;
4
- trackedChangeCanonicalId?: string | number | null;
5
- trackedChangeSide?: string | null;
6
- semanticColorKey?: string | null;
7
- parentCommentId?: string | number | null;
8
- threadingParentCommentId?: string | number | null;
9
- trackedChangeParentId?: string | number | null;
10
- trackedChangeThreadParentId?: string | number | null;
11
- }>(allComments: ReadonlyArray<Comment>): Map<Comment, Comment>;
12
- export function buildTrackedChangeThreadIndex<Comment extends {
13
- commentId: string | number;
14
- trackedChange?: boolean;
15
- trackedChangeCanonicalId?: string | number | null;
12
+ trackedChangeCanonicalId?: CommentId | null;
16
13
  trackedChangeSide?: string | null;
17
14
  semanticColorKey?: string | null;
15
+ };
16
+ type TrackedChangeThreadFields = TrackedChangeThreadOwnerFields & {
18
17
  createdTime?: number;
19
- parentCommentId?: string | number | null;
20
- threadingParentCommentId?: string | number | null;
21
- trackedChangeParentId?: string | number | null;
22
- }>(allComments: ReadonlyArray<Comment>, previous?: ReadonlyMap<string | number, ReadonlyArray<Comment>>): Map<string | number, ReadonlyArray<Comment>>;
23
- export function buildTrackedChangeDecisionLinkIndex<Comment extends {
24
- parentCommentId?: string | number | null;
25
- threadingParentCommentId?: string | number | null;
26
- trackedChangeParentId?: string | number | null;
27
- trackedChangeThreadParentId?: string | number | null;
28
- }>(allComments: ReadonlyArray<Comment>, previous?: ReadonlyMap<string, ReadonlyArray<Comment>>): Map<string, ReadonlyArray<Comment>>;
18
+ };
19
+ export declare const trackedChangeRowSideGroup: (comment: {
20
+ semanticColorKey?: string | null;
21
+ }) => TrackedChangeSideGroup | null;
22
+ export declare const buildTrackedChangeThreadOwnerIndex: <Comment extends TrackedChangeThreadOwnerFields>(allComments: ReadonlyArray<Comment>) => Map<Comment, Comment>;
23
+ export declare const buildTrackedChangeThreadIndex: <Comment extends TrackedChangeThreadFields>(allComments: ReadonlyArray<Comment>, previous?: ReadonlyMap<CommentId, ReadonlyArray<Comment>>) => Map<CommentId, ReadonlyArray<Comment>>;
24
+ export declare const buildTrackedChangeDecisionLinkIndex: <Comment extends TrackedChangeLinkFields>(allComments: ReadonlyArray<Comment>, previous?: ReadonlyMap<string, ReadonlyArray<Comment>>) => Map<string, ReadonlyArray<Comment>>;
25
+ export {};