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.
- package/dist/chunks/{FindReplaceSurface-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
- package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
- package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
- package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
- package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-DmSkZehl.cjs} +70 -99
- package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-aOWhUVI7.es.js} +67 -96
- package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
- package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
- package/dist/chunks/{create-super-doc-ui-Duf65d0b.es.js → create-super-doc-ui-DdT4b29f.es.js} +41 -66
- package/dist/chunks/{create-super-doc-ui-0OA8hCNb.cjs → create-super-doc-ui-_SbygYQ4.cjs} +46 -65
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
- package/dist/document-api/src/comments/comments.d.ts +2 -0
- package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
- package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
- package/dist/document-api/src/index.d.ts +8 -7
- package/dist/document-api/src/insert/insert.d.ts +2 -2
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +12 -6
- package/dist/layout-engine/contracts/src/index.d.ts +1 -1
- package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +116 -1277
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +106 -22
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +74 -14
- package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
- package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
- package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
- package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
- package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +29 -13
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
- package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +81 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +12 -5
- package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
- package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
- package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
- package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
- package/dist/superdoc/src/composables/use-field.d.ts +88 -25
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +40 -26
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +2 -7
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
- package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
- package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
- package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
- package/dist/superdoc/src/core/create-app.d.ts +13 -24
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +9 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
- package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
- package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +24 -61
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
- package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
- package/dist/superdoc/src/core/types/index.d.ts +5 -19
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
- package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
- package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +1 -5
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
- package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
- package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
- package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
- package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
- package/dist/superdoc/src/icons.d.ts +11 -11
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
- package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
- package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +13 -15
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
- package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
- package/dist/superdoc/src/public/index.d.cts +26 -0
- package/dist/superdoc/src/public/index.d.ts +13 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
- package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +225 -99
- package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +21 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +676 -298
- package/dist/superdoc.cjs +1682 -2515
- package/dist/superdoc.es.js +1716 -2553
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +2 -2
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
- 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,27 +82,43 @@ 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:
|
|
99
|
-
threadId:
|
|
87
|
+
id: string;
|
|
88
|
+
threadId: string | null;
|
|
100
89
|
comment: any;
|
|
101
|
-
positionKey:
|
|
102
|
-
|
|
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:
|
|
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:
|
|
114
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
109
115
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
110
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
111
|
-
key: string
|
|
112
|
-
entry:
|
|
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
123
|
getCommentDocumentId: (comment: any) => string | null;
|
|
115
124
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
345
|
+
}) => {
|
|
346
|
+
liveIds: Set<any>;
|
|
347
|
+
liveAnchorKeys: Set<any>;
|
|
348
|
+
appliedCount: number;
|
|
349
|
+
} | undefined;
|
|
308
350
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
309
|
-
}, "COMMENT_EVENTS" | "
|
|
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,27 +403,43 @@ 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:
|
|
378
|
-
threadId:
|
|
408
|
+
id: string;
|
|
409
|
+
threadId: string | null;
|
|
379
410
|
comment: any;
|
|
380
|
-
positionKey:
|
|
381
|
-
|
|
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:
|
|
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:
|
|
435
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
388
436
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
389
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
390
|
-
key: string
|
|
391
|
-
entry:
|
|
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
444
|
getCommentDocumentId: (comment: any) => string | null;
|
|
394
445
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
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" | "
|
|
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,27 +724,43 @@ 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:
|
|
657
|
-
threadId:
|
|
729
|
+
id: string;
|
|
730
|
+
threadId: string | null;
|
|
658
731
|
comment: any;
|
|
659
|
-
positionKey:
|
|
660
|
-
|
|
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:
|
|
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:
|
|
756
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
667
757
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
668
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
669
|
-
key: string
|
|
670
|
-
entry:
|
|
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
765
|
getCommentDocumentId: (comment: any) => string | null;
|
|
673
766
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
987
|
+
}) => {
|
|
988
|
+
liveIds: Set<any>;
|
|
989
|
+
liveAnchorKeys: Set<any>;
|
|
990
|
+
appliedCount: number;
|
|
991
|
+
} | undefined;
|
|
866
992
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
867
|
-
}, "
|
|
993
|
+
}, "resolveCommentPositionEntry" | "getCommentAliasIds" | "getCommentPositionKey" | "getComment" | "getTrackedChangeThread" | "getCommentPosition" | "getCommentDocumentId" | "belongsToDocument" | "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" | "
|
|
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,27 +1076,43 @@ 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:
|
|
967
|
-
threadId:
|
|
1081
|
+
id: string;
|
|
1082
|
+
threadId: string | null;
|
|
968
1083
|
comment: any;
|
|
969
|
-
positionKey:
|
|
970
|
-
|
|
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:
|
|
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:
|
|
1108
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
977
1109
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
978
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
979
|
-
key: string
|
|
980
|
-
entry:
|
|
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
1117
|
getCommentDocumentId: (comment: any) => string | null;
|
|
983
1118
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
1339
|
+
}) => {
|
|
1340
|
+
liveIds: Set<any>;
|
|
1341
|
+
liveAnchorKeys: Set<any>;
|
|
1342
|
+
appliedCount: number;
|
|
1343
|
+
} | undefined;
|
|
1176
1344
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1177
|
-
}, "COMMENT_EVENTS" | "
|
|
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,27 +1397,43 @@ 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:
|
|
1246
|
-
threadId:
|
|
1402
|
+
id: string;
|
|
1403
|
+
threadId: string | null;
|
|
1247
1404
|
comment: any;
|
|
1248
|
-
positionKey:
|
|
1249
|
-
|
|
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:
|
|
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:
|
|
1429
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1256
1430
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1257
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1258
|
-
key: string
|
|
1259
|
-
entry:
|
|
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
1438
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1262
1439
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
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" | "
|
|
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,27 +1718,43 @@ 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:
|
|
1525
|
-
threadId:
|
|
1723
|
+
id: string;
|
|
1724
|
+
threadId: string | null;
|
|
1526
1725
|
comment: any;
|
|
1527
|
-
positionKey:
|
|
1528
|
-
|
|
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:
|
|
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:
|
|
1750
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1535
1751
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1536
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1537
|
-
key: string
|
|
1538
|
-
entry:
|
|
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
1759
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1541
1760
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
1981
|
+
}) => {
|
|
1982
|
+
liveIds: Set<any>;
|
|
1983
|
+
liveAnchorKeys: Set<any>;
|
|
1984
|
+
appliedCount: number;
|
|
1985
|
+
} | undefined;
|
|
1734
1986
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1735
|
-
}, "
|
|
1987
|
+
}, "resolveCommentPositionEntry" | "getCommentAliasIds" | "getCommentPositionKey" | "getComment" | "getTrackedChangeThread" | "getCommentPosition" | "getCommentDocumentId" | "belongsToDocument" | "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,27 +2070,43 @@ 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:
|
|
1835
|
-
threadId:
|
|
2075
|
+
id: string;
|
|
2076
|
+
threadId: string | null;
|
|
1836
2077
|
comment: any;
|
|
1837
|
-
positionKey:
|
|
1838
|
-
|
|
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:
|
|
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:
|
|
2102
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1845
2103
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1846
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1847
|
-
key: string
|
|
1848
|
-
entry:
|
|
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
2111
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1851
2112
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
2333
|
+
}) => {
|
|
2334
|
+
liveIds: Set<any>;
|
|
2335
|
+
liveAnchorKeys: Set<any>;
|
|
2336
|
+
appliedCount: number;
|
|
2337
|
+
} | undefined;
|
|
2044
2338
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
2045
|
-
}, "COMMENT_EVENTS" | "
|
|
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,27 +2391,43 @@ 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:
|
|
2114
|
-
threadId:
|
|
2396
|
+
id: string;
|
|
2397
|
+
threadId: string | null;
|
|
2115
2398
|
comment: any;
|
|
2116
|
-
positionKey:
|
|
2117
|
-
|
|
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:
|
|
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:
|
|
2423
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
2124
2424
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
2125
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
2126
|
-
key: string
|
|
2127
|
-
entry:
|
|
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
2432
|
getCommentDocumentId: (comment: any) => string | null;
|
|
2130
2433
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
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" | "
|
|
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,27 +2712,43 @@ 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:
|
|
2393
|
-
threadId:
|
|
2717
|
+
id: string;
|
|
2718
|
+
threadId: string | null;
|
|
2394
2719
|
comment: any;
|
|
2395
|
-
positionKey:
|
|
2396
|
-
|
|
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:
|
|
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:
|
|
2744
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
2403
2745
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
2404
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
2405
|
-
key: string
|
|
2406
|
-
entry:
|
|
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
2753
|
getCommentDocumentId: (comment: any) => string | null;
|
|
2409
2754
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -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:
|
|
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, }?: {}) =>
|
|
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
|
-
}) =>
|
|
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?:
|
|
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:
|
|
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
|
-
}) =>
|
|
2975
|
+
}) => {
|
|
2976
|
+
liveIds: Set<any>;
|
|
2977
|
+
liveAnchorKeys: Set<any>;
|
|
2978
|
+
appliedCount: number;
|
|
2979
|
+
} | undefined;
|
|
2602
2980
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
2603
|
-
}, "
|
|
2981
|
+
}, "resolveCommentPositionEntry" | "getCommentAliasIds" | "getCommentPositionKey" | "getComment" | "getTrackedChangeThread" | "getCommentPosition" | "getCommentDocumentId" | "belongsToDocument" | "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[]>;
|