superdoc 2.28.0 → 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-Cg072l5d.cjs → PdfViewer-DmSkZehl.cjs} +72 -100
- package/dist/chunks/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-aOWhUVI7.es.js} +69 -97
- 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-BbjHD1ul.es.js → create-super-doc-ui-DdT4b29f.es.js} +200 -65
- package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-_SbygYQ4.cjs} +227 -68
- package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
- package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
- 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/lists/lists.d.ts +79 -79
- 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 +18 -11
- 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/layout-engine/painters/dom/src/page-content.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
- 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 +137 -61
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +533 -48
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +107 -23
- 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/FloatingComments.vue.d.ts +21 -8
- 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 +14 -0
- 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/SurfaceDialog.vue.d.ts +27 -9
- package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
- 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-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
- 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 +3 -8
- 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 -9
- 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 +14 -23
- 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/is-finite-number.d.ts +1 -0
- 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 +7 -16
- 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 +181 -36
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
- package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
- 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/ToolbarButton.vue.d.ts +101 -16
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +80 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +113 -33
- 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 -49
- 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 +372 -123
- 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 +1117 -370
- package/dist/superdoc.cjs +1923 -2838
- package/dist/superdoc.es.js +1863 -2783
- 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/built-in/OverflowMenu.vue.d.ts +0 -104
- 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,31 +131,46 @@ 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
|
-
selection
|
|
134
|
-
documentId
|
|
135
|
-
parentCommentId
|
|
136
|
-
}) =>
|
|
137
|
+
selection?: Object | undefined;
|
|
138
|
+
documentId?: string | null | undefined;
|
|
139
|
+
parentCommentId?: string | null | undefined;
|
|
140
|
+
}) => ReturnType<any>;
|
|
137
141
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
138
142
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
139
143
|
superdoc: any;
|
|
140
144
|
comment: any;
|
|
141
145
|
skipEditorUpdate?: boolean | undefined;
|
|
142
146
|
broadcastChanges?: boolean | undefined;
|
|
143
|
-
}) =>
|
|
147
|
+
}) => {
|
|
148
|
+
ok: boolean;
|
|
149
|
+
reason?: string;
|
|
150
|
+
detail?: string;
|
|
151
|
+
code?: string;
|
|
152
|
+
} | Promise<{
|
|
153
|
+
ok: boolean;
|
|
154
|
+
reason?: string;
|
|
155
|
+
detail?: string;
|
|
156
|
+
code?: string;
|
|
157
|
+
}>;
|
|
144
158
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
145
159
|
superdoc: any;
|
|
146
160
|
comment: any;
|
|
147
161
|
skipEditorUpdate?: boolean | undefined;
|
|
148
162
|
broadcastChanges?: boolean | undefined;
|
|
149
|
-
}) =>
|
|
163
|
+
}) => {
|
|
164
|
+
ok: boolean;
|
|
165
|
+
reason?: string;
|
|
166
|
+
detail?: string;
|
|
167
|
+
code?: string;
|
|
168
|
+
} | Promise<{
|
|
169
|
+
ok: boolean;
|
|
170
|
+
reason?: string;
|
|
171
|
+
detail?: string;
|
|
172
|
+
code?: string;
|
|
173
|
+
}>;
|
|
150
174
|
cancelComment: (superdoc: any) => void;
|
|
151
175
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
152
176
|
commentId: any;
|
|
@@ -183,16 +207,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
183
207
|
clearInstantSidebarAlignment: () => void;
|
|
184
208
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
185
209
|
superdoc: Object;
|
|
186
|
-
|
|
187
|
-
|
|
210
|
+
comment: Object;
|
|
211
|
+
decision: string;
|
|
212
|
+
}) => {
|
|
213
|
+
ok: boolean;
|
|
214
|
+
success?: boolean;
|
|
215
|
+
reason?: string;
|
|
216
|
+
} | Promise<{
|
|
217
|
+
ok: boolean;
|
|
218
|
+
success?: boolean;
|
|
219
|
+
reason?: string;
|
|
220
|
+
}>;
|
|
188
221
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
189
222
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
190
223
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
191
|
-
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
|
+
};
|
|
192
253
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
193
254
|
preparedInputs?: null | undefined;
|
|
194
255
|
pruneStale?: boolean | undefined;
|
|
195
|
-
}) =>
|
|
256
|
+
}) => {
|
|
257
|
+
added: null;
|
|
258
|
+
dropped: string;
|
|
259
|
+
} | {
|
|
260
|
+
added: any;
|
|
261
|
+
dropped?: undefined;
|
|
262
|
+
};
|
|
196
263
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
197
264
|
ok: boolean;
|
|
198
265
|
reason: string;
|
|
@@ -215,7 +282,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
215
282
|
};
|
|
216
283
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
217
284
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
218
|
-
|
|
285
|
+
superdoc?: Object | undefined;
|
|
286
|
+
parentCommentId?: string | null | undefined;
|
|
287
|
+
text?: string | undefined;
|
|
288
|
+
mentions?: {
|
|
289
|
+
name?: string | null;
|
|
290
|
+
email?: string | null;
|
|
291
|
+
}[] | undefined;
|
|
292
|
+
trackedChangeTarget?: {
|
|
293
|
+
kind: "trackedChange";
|
|
294
|
+
trackedChangeId: string;
|
|
295
|
+
story?: unknown;
|
|
296
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
297
|
+
} | undefined;
|
|
219
298
|
}) => Promise<any>;
|
|
220
299
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
221
300
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -243,7 +322,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
243
322
|
resolvedIds: never[];
|
|
244
323
|
unresolvedIds: never[];
|
|
245
324
|
allResolved: boolean;
|
|
246
|
-
removedRows:
|
|
325
|
+
removedRows: number;
|
|
247
326
|
reason?: undefined;
|
|
248
327
|
removedIds?: undefined;
|
|
249
328
|
} | {
|
|
@@ -263,9 +342,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
263
342
|
previousPreparedPresentation?: null | undefined;
|
|
264
343
|
liveIds?: null | undefined;
|
|
265
344
|
liveAnchorKeys?: null | undefined;
|
|
266
|
-
}) =>
|
|
345
|
+
}) => {
|
|
346
|
+
liveIds: Set<any>;
|
|
347
|
+
liveAnchorKeys: Set<any>;
|
|
348
|
+
appliedCount: number;
|
|
349
|
+
} | undefined;
|
|
267
350
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
268
|
-
}, "
|
|
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<{
|
|
269
352
|
COMMENT_EVENTS: {
|
|
270
353
|
readonly RESOLVED: "resolved";
|
|
271
354
|
readonly NEW: "new";
|
|
@@ -278,15 +361,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
278
361
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
279
362
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
280
363
|
};
|
|
281
|
-
isDebugging: boolean;
|
|
282
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
283
364
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
284
365
|
editingCommentId: Ref<null, null>;
|
|
285
366
|
activeComment: Ref<null, null>;
|
|
286
367
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
287
|
-
commentDialogs: Ref<never[], never[]>;
|
|
288
|
-
overlappingComments: Ref<never[], never[]>;
|
|
289
|
-
overlappedIds: Set<never>;
|
|
290
368
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
291
369
|
pendingComment: Ref<null, null>;
|
|
292
370
|
currentCommentText: Ref<string, string>;
|
|
@@ -304,8 +382,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
304
382
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
305
383
|
floatingCommentsOffset: Ref<number, number>;
|
|
306
384
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
307
|
-
sortedConversations: Ref<never[], never[]>;
|
|
308
|
-
visibleConversations: Ref<never[], never[]>;
|
|
309
385
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
310
386
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
311
387
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -327,27 +403,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
327
403
|
resolvedComments: any[];
|
|
328
404
|
}>;
|
|
329
405
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
330
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
331
|
-
parentComments: any[];
|
|
332
|
-
resolvedComments: any[];
|
|
333
|
-
}>;
|
|
334
406
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
335
407
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
336
|
-
id:
|
|
337
|
-
threadId:
|
|
408
|
+
id: string;
|
|
409
|
+
threadId: string | null;
|
|
338
410
|
comment: any;
|
|
339
|
-
positionKey:
|
|
340
|
-
|
|
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;
|
|
341
431
|
isPrimary: boolean;
|
|
342
|
-
positionEntry: any;
|
|
343
432
|
}[]>;
|
|
344
|
-
getCommentAliasIds: (commentOrId:
|
|
433
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
345
434
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
346
|
-
getCommentPositionKey: (commentOrId:
|
|
435
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
347
436
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
348
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
349
|
-
key: string
|
|
350
|
-
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;
|
|
351
443
|
};
|
|
352
444
|
getCommentDocumentId: (comment: any) => string | null;
|
|
353
445
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -360,31 +452,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
360
452
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
361
453
|
init: (config?: Object) => void;
|
|
362
454
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
363
|
-
getComment: (id:
|
|
455
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
364
456
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
365
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
366
|
-
top: any;
|
|
367
|
-
left: any;
|
|
368
|
-
};
|
|
369
|
-
hasOverlapId: (id: any) => any;
|
|
370
457
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
371
|
-
selection
|
|
372
|
-
documentId
|
|
373
|
-
parentCommentId
|
|
374
|
-
}) =>
|
|
458
|
+
selection?: Object | undefined;
|
|
459
|
+
documentId?: string | null | undefined;
|
|
460
|
+
parentCommentId?: string | null | undefined;
|
|
461
|
+
}) => ReturnType<any>;
|
|
375
462
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
376
463
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
377
464
|
superdoc: any;
|
|
378
465
|
comment: any;
|
|
379
466
|
skipEditorUpdate?: boolean | undefined;
|
|
380
467
|
broadcastChanges?: boolean | undefined;
|
|
381
|
-
}) =>
|
|
468
|
+
}) => {
|
|
469
|
+
ok: boolean;
|
|
470
|
+
reason?: string;
|
|
471
|
+
detail?: string;
|
|
472
|
+
code?: string;
|
|
473
|
+
} | Promise<{
|
|
474
|
+
ok: boolean;
|
|
475
|
+
reason?: string;
|
|
476
|
+
detail?: string;
|
|
477
|
+
code?: string;
|
|
478
|
+
}>;
|
|
382
479
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
383
480
|
superdoc: any;
|
|
384
481
|
comment: any;
|
|
385
482
|
skipEditorUpdate?: boolean | undefined;
|
|
386
483
|
broadcastChanges?: boolean | undefined;
|
|
387
|
-
}) =>
|
|
484
|
+
}) => {
|
|
485
|
+
ok: boolean;
|
|
486
|
+
reason?: string;
|
|
487
|
+
detail?: string;
|
|
488
|
+
code?: string;
|
|
489
|
+
} | Promise<{
|
|
490
|
+
ok: boolean;
|
|
491
|
+
reason?: string;
|
|
492
|
+
detail?: string;
|
|
493
|
+
code?: string;
|
|
494
|
+
}>;
|
|
388
495
|
cancelComment: (superdoc: any) => void;
|
|
389
496
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
390
497
|
commentId: any;
|
|
@@ -421,16 +528,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
421
528
|
clearInstantSidebarAlignment: () => void;
|
|
422
529
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
423
530
|
superdoc: Object;
|
|
424
|
-
|
|
425
|
-
|
|
531
|
+
comment: Object;
|
|
532
|
+
decision: string;
|
|
533
|
+
}) => {
|
|
534
|
+
ok: boolean;
|
|
535
|
+
success?: boolean;
|
|
536
|
+
reason?: string;
|
|
537
|
+
} | Promise<{
|
|
538
|
+
ok: boolean;
|
|
539
|
+
success?: boolean;
|
|
540
|
+
reason?: string;
|
|
541
|
+
}>;
|
|
426
542
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
427
543
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
428
544
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
429
|
-
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
|
+
};
|
|
430
574
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
431
575
|
preparedInputs?: null | undefined;
|
|
432
576
|
pruneStale?: boolean | undefined;
|
|
433
|
-
}) =>
|
|
577
|
+
}) => {
|
|
578
|
+
added: null;
|
|
579
|
+
dropped: string;
|
|
580
|
+
} | {
|
|
581
|
+
added: any;
|
|
582
|
+
dropped?: undefined;
|
|
583
|
+
};
|
|
434
584
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
435
585
|
ok: boolean;
|
|
436
586
|
reason: string;
|
|
@@ -453,7 +603,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
453
603
|
};
|
|
454
604
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
455
605
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
456
|
-
|
|
606
|
+
superdoc?: Object | undefined;
|
|
607
|
+
parentCommentId?: string | null | undefined;
|
|
608
|
+
text?: string | undefined;
|
|
609
|
+
mentions?: {
|
|
610
|
+
name?: string | null;
|
|
611
|
+
email?: string | null;
|
|
612
|
+
}[] | undefined;
|
|
613
|
+
trackedChangeTarget?: {
|
|
614
|
+
kind: "trackedChange";
|
|
615
|
+
trackedChangeId: string;
|
|
616
|
+
story?: unknown;
|
|
617
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
618
|
+
} | undefined;
|
|
457
619
|
}) => Promise<any>;
|
|
458
620
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
459
621
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -481,7 +643,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
481
643
|
resolvedIds: never[];
|
|
482
644
|
unresolvedIds: never[];
|
|
483
645
|
allResolved: boolean;
|
|
484
|
-
removedRows:
|
|
646
|
+
removedRows: number;
|
|
485
647
|
reason?: undefined;
|
|
486
648
|
removedIds?: undefined;
|
|
487
649
|
} | {
|
|
@@ -501,9 +663,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
501
663
|
previousPreparedPresentation?: null | undefined;
|
|
502
664
|
liveIds?: null | undefined;
|
|
503
665
|
liveAnchorKeys?: null | undefined;
|
|
504
|
-
}) =>
|
|
666
|
+
}) => {
|
|
667
|
+
liveIds: Set<any>;
|
|
668
|
+
liveAnchorKeys: Set<any>;
|
|
669
|
+
appliedCount: number;
|
|
670
|
+
} | undefined;
|
|
505
671
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
506
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "
|
|
672
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
507
673
|
COMMENT_EVENTS: {
|
|
508
674
|
readonly RESOLVED: "resolved";
|
|
509
675
|
readonly NEW: "new";
|
|
@@ -516,15 +682,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
516
682
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
517
683
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
518
684
|
};
|
|
519
|
-
isDebugging: boolean;
|
|
520
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
521
685
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
522
686
|
editingCommentId: Ref<null, null>;
|
|
523
687
|
activeComment: Ref<null, null>;
|
|
524
688
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
525
|
-
commentDialogs: Ref<never[], never[]>;
|
|
526
|
-
overlappingComments: Ref<never[], never[]>;
|
|
527
|
-
overlappedIds: Set<never>;
|
|
528
689
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
529
690
|
pendingComment: Ref<null, null>;
|
|
530
691
|
currentCommentText: Ref<string, string>;
|
|
@@ -542,8 +703,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
542
703
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
543
704
|
floatingCommentsOffset: Ref<number, number>;
|
|
544
705
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
545
|
-
sortedConversations: Ref<never[], never[]>;
|
|
546
|
-
visibleConversations: Ref<never[], never[]>;
|
|
547
706
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
548
707
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
549
708
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -565,27 +724,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
565
724
|
resolvedComments: any[];
|
|
566
725
|
}>;
|
|
567
726
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
568
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
569
|
-
parentComments: any[];
|
|
570
|
-
resolvedComments: any[];
|
|
571
|
-
}>;
|
|
572
727
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
573
728
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
574
|
-
id:
|
|
575
|
-
threadId:
|
|
729
|
+
id: string;
|
|
730
|
+
threadId: string | null;
|
|
576
731
|
comment: any;
|
|
577
|
-
positionKey:
|
|
578
|
-
|
|
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;
|
|
579
752
|
isPrimary: boolean;
|
|
580
|
-
positionEntry: any;
|
|
581
753
|
}[]>;
|
|
582
|
-
getCommentAliasIds: (commentOrId:
|
|
754
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
583
755
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
584
|
-
getCommentPositionKey: (commentOrId:
|
|
756
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
585
757
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
586
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
587
|
-
key: string
|
|
588
|
-
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;
|
|
589
764
|
};
|
|
590
765
|
getCommentDocumentId: (comment: any) => string | null;
|
|
591
766
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -598,31 +773,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
598
773
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
599
774
|
init: (config?: Object) => void;
|
|
600
775
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
601
|
-
getComment: (id:
|
|
776
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
602
777
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
603
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
604
|
-
top: any;
|
|
605
|
-
left: any;
|
|
606
|
-
};
|
|
607
|
-
hasOverlapId: (id: any) => any;
|
|
608
778
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
609
|
-
selection
|
|
610
|
-
documentId
|
|
611
|
-
parentCommentId
|
|
612
|
-
}) =>
|
|
779
|
+
selection?: Object | undefined;
|
|
780
|
+
documentId?: string | null | undefined;
|
|
781
|
+
parentCommentId?: string | null | undefined;
|
|
782
|
+
}) => ReturnType<any>;
|
|
613
783
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
614
784
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
615
785
|
superdoc: any;
|
|
616
786
|
comment: any;
|
|
617
787
|
skipEditorUpdate?: boolean | undefined;
|
|
618
788
|
broadcastChanges?: boolean | undefined;
|
|
619
|
-
}) =>
|
|
789
|
+
}) => {
|
|
790
|
+
ok: boolean;
|
|
791
|
+
reason?: string;
|
|
792
|
+
detail?: string;
|
|
793
|
+
code?: string;
|
|
794
|
+
} | Promise<{
|
|
795
|
+
ok: boolean;
|
|
796
|
+
reason?: string;
|
|
797
|
+
detail?: string;
|
|
798
|
+
code?: string;
|
|
799
|
+
}>;
|
|
620
800
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
621
801
|
superdoc: any;
|
|
622
802
|
comment: any;
|
|
623
803
|
skipEditorUpdate?: boolean | undefined;
|
|
624
804
|
broadcastChanges?: boolean | undefined;
|
|
625
|
-
}) =>
|
|
805
|
+
}) => {
|
|
806
|
+
ok: boolean;
|
|
807
|
+
reason?: string;
|
|
808
|
+
detail?: string;
|
|
809
|
+
code?: string;
|
|
810
|
+
} | Promise<{
|
|
811
|
+
ok: boolean;
|
|
812
|
+
reason?: string;
|
|
813
|
+
detail?: string;
|
|
814
|
+
code?: string;
|
|
815
|
+
}>;
|
|
626
816
|
cancelComment: (superdoc: any) => void;
|
|
627
817
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
628
818
|
commentId: any;
|
|
@@ -659,16 +849,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
659
849
|
clearInstantSidebarAlignment: () => void;
|
|
660
850
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
661
851
|
superdoc: Object;
|
|
662
|
-
|
|
663
|
-
|
|
852
|
+
comment: Object;
|
|
853
|
+
decision: string;
|
|
854
|
+
}) => {
|
|
855
|
+
ok: boolean;
|
|
856
|
+
success?: boolean;
|
|
857
|
+
reason?: string;
|
|
858
|
+
} | Promise<{
|
|
859
|
+
ok: boolean;
|
|
860
|
+
success?: boolean;
|
|
861
|
+
reason?: string;
|
|
862
|
+
}>;
|
|
664
863
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
665
864
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
666
865
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
667
|
-
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
|
+
};
|
|
668
895
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
669
896
|
preparedInputs?: null | undefined;
|
|
670
897
|
pruneStale?: boolean | undefined;
|
|
671
|
-
}) =>
|
|
898
|
+
}) => {
|
|
899
|
+
added: null;
|
|
900
|
+
dropped: string;
|
|
901
|
+
} | {
|
|
902
|
+
added: any;
|
|
903
|
+
dropped?: undefined;
|
|
904
|
+
};
|
|
672
905
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
673
906
|
ok: boolean;
|
|
674
907
|
reason: string;
|
|
@@ -691,7 +924,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
691
924
|
};
|
|
692
925
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
693
926
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
694
|
-
|
|
927
|
+
superdoc?: Object | undefined;
|
|
928
|
+
parentCommentId?: string | null | undefined;
|
|
929
|
+
text?: string | undefined;
|
|
930
|
+
mentions?: {
|
|
931
|
+
name?: string | null;
|
|
932
|
+
email?: string | null;
|
|
933
|
+
}[] | undefined;
|
|
934
|
+
trackedChangeTarget?: {
|
|
935
|
+
kind: "trackedChange";
|
|
936
|
+
trackedChangeId: string;
|
|
937
|
+
story?: unknown;
|
|
938
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
939
|
+
} | undefined;
|
|
695
940
|
}) => Promise<any>;
|
|
696
941
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
697
942
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -719,7 +964,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
719
964
|
resolvedIds: never[];
|
|
720
965
|
unresolvedIds: never[];
|
|
721
966
|
allResolved: boolean;
|
|
722
|
-
removedRows:
|
|
967
|
+
removedRows: number;
|
|
723
968
|
reason?: undefined;
|
|
724
969
|
removedIds?: undefined;
|
|
725
970
|
} | {
|
|
@@ -739,9 +984,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
739
984
|
previousPreparedPresentation?: null | undefined;
|
|
740
985
|
liveIds?: null | undefined;
|
|
741
986
|
liveAnchorKeys?: null | undefined;
|
|
742
|
-
}) =>
|
|
987
|
+
}) => {
|
|
988
|
+
liveIds: Set<any>;
|
|
989
|
+
liveAnchorKeys: Set<any>;
|
|
990
|
+
appliedCount: number;
|
|
991
|
+
} | undefined;
|
|
743
992
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
744
|
-
}, "
|
|
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">>;
|
|
745
994
|
documents: Ref<StoreDocument[], StoreDocument[]>;
|
|
746
995
|
documentBounds: Ref<unknown[], unknown[]>;
|
|
747
996
|
pages: Record<string, PageEntry[]>;
|
|
@@ -771,7 +1020,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
771
1020
|
getPageBounds: (documentId: string, page: number) => {
|
|
772
1021
|
top: number;
|
|
773
1022
|
} | undefined;
|
|
774
|
-
}, "user" | "pages" | "isInternal" | "
|
|
1023
|
+
}, "user" | "pages" | "isInternal" | "measurementUnit" | "commentsStore" | "modules" | "documents" | "users" | "documentBounds" | "documentUsers" | "activeZoom" | "zoomMode" | "viewportMetrics" | "documentScroll" | "selectionPosition" | "activeSelection" | "isReady">, Pick<{
|
|
775
1024
|
commentsStore: import('pinia').Store<"comments", Pick<{
|
|
776
1025
|
COMMENT_EVENTS: {
|
|
777
1026
|
readonly RESOLVED: "resolved";
|
|
@@ -785,15 +1034,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
785
1034
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
786
1035
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
787
1036
|
};
|
|
788
|
-
isDebugging: boolean;
|
|
789
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
790
1037
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
791
1038
|
editingCommentId: Ref<null, null>;
|
|
792
1039
|
activeComment: Ref<null, null>;
|
|
793
1040
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
794
|
-
commentDialogs: Ref<never[], never[]>;
|
|
795
|
-
overlappingComments: Ref<never[], never[]>;
|
|
796
|
-
overlappedIds: Set<never>;
|
|
797
1041
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
798
1042
|
pendingComment: Ref<null, null>;
|
|
799
1043
|
currentCommentText: Ref<string, string>;
|
|
@@ -811,8 +1055,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
811
1055
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
812
1056
|
floatingCommentsOffset: Ref<number, number>;
|
|
813
1057
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
814
|
-
sortedConversations: Ref<never[], never[]>;
|
|
815
|
-
visibleConversations: Ref<never[], never[]>;
|
|
816
1058
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
817
1059
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
818
1060
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -834,27 +1076,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
834
1076
|
resolvedComments: any[];
|
|
835
1077
|
}>;
|
|
836
1078
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
837
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
838
|
-
parentComments: any[];
|
|
839
|
-
resolvedComments: any[];
|
|
840
|
-
}>;
|
|
841
1079
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
842
1080
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
843
|
-
id:
|
|
844
|
-
threadId:
|
|
1081
|
+
id: string;
|
|
1082
|
+
threadId: string | null;
|
|
845
1083
|
comment: any;
|
|
846
|
-
positionKey:
|
|
847
|
-
|
|
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;
|
|
848
1104
|
isPrimary: boolean;
|
|
849
|
-
positionEntry: any;
|
|
850
1105
|
}[]>;
|
|
851
|
-
getCommentAliasIds: (commentOrId:
|
|
1106
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
852
1107
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
853
|
-
getCommentPositionKey: (commentOrId:
|
|
1108
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
854
1109
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
855
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
856
|
-
key: string
|
|
857
|
-
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;
|
|
858
1116
|
};
|
|
859
1117
|
getCommentDocumentId: (comment: any) => string | null;
|
|
860
1118
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -867,31 +1125,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
867
1125
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
868
1126
|
init: (config?: Object) => void;
|
|
869
1127
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
870
|
-
getComment: (id:
|
|
1128
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
871
1129
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
872
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
873
|
-
top: any;
|
|
874
|
-
left: any;
|
|
875
|
-
};
|
|
876
|
-
hasOverlapId: (id: any) => any;
|
|
877
1130
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
878
|
-
selection
|
|
879
|
-
documentId
|
|
880
|
-
parentCommentId
|
|
881
|
-
}) =>
|
|
1131
|
+
selection?: Object | undefined;
|
|
1132
|
+
documentId?: string | null | undefined;
|
|
1133
|
+
parentCommentId?: string | null | undefined;
|
|
1134
|
+
}) => ReturnType<any>;
|
|
882
1135
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
883
1136
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
884
1137
|
superdoc: any;
|
|
885
1138
|
comment: any;
|
|
886
1139
|
skipEditorUpdate?: boolean | undefined;
|
|
887
1140
|
broadcastChanges?: boolean | undefined;
|
|
888
|
-
}) =>
|
|
1141
|
+
}) => {
|
|
1142
|
+
ok: boolean;
|
|
1143
|
+
reason?: string;
|
|
1144
|
+
detail?: string;
|
|
1145
|
+
code?: string;
|
|
1146
|
+
} | Promise<{
|
|
1147
|
+
ok: boolean;
|
|
1148
|
+
reason?: string;
|
|
1149
|
+
detail?: string;
|
|
1150
|
+
code?: string;
|
|
1151
|
+
}>;
|
|
889
1152
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
890
1153
|
superdoc: any;
|
|
891
1154
|
comment: any;
|
|
892
1155
|
skipEditorUpdate?: boolean | undefined;
|
|
893
1156
|
broadcastChanges?: boolean | undefined;
|
|
894
|
-
}) =>
|
|
1157
|
+
}) => {
|
|
1158
|
+
ok: boolean;
|
|
1159
|
+
reason?: string;
|
|
1160
|
+
detail?: string;
|
|
1161
|
+
code?: string;
|
|
1162
|
+
} | Promise<{
|
|
1163
|
+
ok: boolean;
|
|
1164
|
+
reason?: string;
|
|
1165
|
+
detail?: string;
|
|
1166
|
+
code?: string;
|
|
1167
|
+
}>;
|
|
895
1168
|
cancelComment: (superdoc: any) => void;
|
|
896
1169
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
897
1170
|
commentId: any;
|
|
@@ -928,16 +1201,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
928
1201
|
clearInstantSidebarAlignment: () => void;
|
|
929
1202
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
930
1203
|
superdoc: Object;
|
|
931
|
-
|
|
932
|
-
|
|
1204
|
+
comment: Object;
|
|
1205
|
+
decision: string;
|
|
1206
|
+
}) => {
|
|
1207
|
+
ok: boolean;
|
|
1208
|
+
success?: boolean;
|
|
1209
|
+
reason?: string;
|
|
1210
|
+
} | Promise<{
|
|
1211
|
+
ok: boolean;
|
|
1212
|
+
success?: boolean;
|
|
1213
|
+
reason?: string;
|
|
1214
|
+
}>;
|
|
933
1215
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
934
1216
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
935
1217
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
936
|
-
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
|
+
};
|
|
937
1247
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
938
1248
|
preparedInputs?: null | undefined;
|
|
939
1249
|
pruneStale?: boolean | undefined;
|
|
940
|
-
}) =>
|
|
1250
|
+
}) => {
|
|
1251
|
+
added: null;
|
|
1252
|
+
dropped: string;
|
|
1253
|
+
} | {
|
|
1254
|
+
added: any;
|
|
1255
|
+
dropped?: undefined;
|
|
1256
|
+
};
|
|
941
1257
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
942
1258
|
ok: boolean;
|
|
943
1259
|
reason: string;
|
|
@@ -960,7 +1276,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
960
1276
|
};
|
|
961
1277
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
962
1278
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
963
|
-
|
|
1279
|
+
superdoc?: Object | undefined;
|
|
1280
|
+
parentCommentId?: string | null | undefined;
|
|
1281
|
+
text?: string | undefined;
|
|
1282
|
+
mentions?: {
|
|
1283
|
+
name?: string | null;
|
|
1284
|
+
email?: string | null;
|
|
1285
|
+
}[] | undefined;
|
|
1286
|
+
trackedChangeTarget?: {
|
|
1287
|
+
kind: "trackedChange";
|
|
1288
|
+
trackedChangeId: string;
|
|
1289
|
+
story?: unknown;
|
|
1290
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
1291
|
+
} | undefined;
|
|
964
1292
|
}) => Promise<any>;
|
|
965
1293
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
966
1294
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -988,7 +1316,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
988
1316
|
resolvedIds: never[];
|
|
989
1317
|
unresolvedIds: never[];
|
|
990
1318
|
allResolved: boolean;
|
|
991
|
-
removedRows:
|
|
1319
|
+
removedRows: number;
|
|
992
1320
|
reason?: undefined;
|
|
993
1321
|
removedIds?: undefined;
|
|
994
1322
|
} | {
|
|
@@ -1008,9 +1336,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1008
1336
|
previousPreparedPresentation?: null | undefined;
|
|
1009
1337
|
liveIds?: null | undefined;
|
|
1010
1338
|
liveAnchorKeys?: null | undefined;
|
|
1011
|
-
}) =>
|
|
1339
|
+
}) => {
|
|
1340
|
+
liveIds: Set<any>;
|
|
1341
|
+
liveAnchorKeys: Set<any>;
|
|
1342
|
+
appliedCount: number;
|
|
1343
|
+
} | undefined;
|
|
1012
1344
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1013
|
-
}, "
|
|
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<{
|
|
1014
1346
|
COMMENT_EVENTS: {
|
|
1015
1347
|
readonly RESOLVED: "resolved";
|
|
1016
1348
|
readonly NEW: "new";
|
|
@@ -1023,15 +1355,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1023
1355
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
1024
1356
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
1025
1357
|
};
|
|
1026
|
-
isDebugging: boolean;
|
|
1027
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
1028
1358
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
1029
1359
|
editingCommentId: Ref<null, null>;
|
|
1030
1360
|
activeComment: Ref<null, null>;
|
|
1031
1361
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
1032
|
-
commentDialogs: Ref<never[], never[]>;
|
|
1033
|
-
overlappingComments: Ref<never[], never[]>;
|
|
1034
|
-
overlappedIds: Set<never>;
|
|
1035
1362
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
1036
1363
|
pendingComment: Ref<null, null>;
|
|
1037
1364
|
currentCommentText: Ref<string, string>;
|
|
@@ -1049,8 +1376,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1049
1376
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
1050
1377
|
floatingCommentsOffset: Ref<number, number>;
|
|
1051
1378
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
1052
|
-
sortedConversations: Ref<never[], never[]>;
|
|
1053
|
-
visibleConversations: Ref<never[], never[]>;
|
|
1054
1379
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
1055
1380
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
1056
1381
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -1072,27 +1397,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1072
1397
|
resolvedComments: any[];
|
|
1073
1398
|
}>;
|
|
1074
1399
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1075
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1076
|
-
parentComments: any[];
|
|
1077
|
-
resolvedComments: any[];
|
|
1078
|
-
}>;
|
|
1079
1400
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1080
1401
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1081
|
-
id:
|
|
1082
|
-
threadId:
|
|
1402
|
+
id: string;
|
|
1403
|
+
threadId: string | null;
|
|
1083
1404
|
comment: any;
|
|
1084
|
-
positionKey:
|
|
1085
|
-
|
|
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;
|
|
1086
1425
|
isPrimary: boolean;
|
|
1087
|
-
positionEntry: any;
|
|
1088
1426
|
}[]>;
|
|
1089
|
-
getCommentAliasIds: (commentOrId:
|
|
1427
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
1090
1428
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
1091
|
-
getCommentPositionKey: (commentOrId:
|
|
1429
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1092
1430
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1093
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1094
|
-
key: string
|
|
1095
|
-
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;
|
|
1096
1437
|
};
|
|
1097
1438
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1098
1439
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -1105,31 +1446,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1105
1446
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
1106
1447
|
init: (config?: Object) => void;
|
|
1107
1448
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
1108
|
-
getComment: (id:
|
|
1449
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
1109
1450
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
1110
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
1111
|
-
top: any;
|
|
1112
|
-
left: any;
|
|
1113
|
-
};
|
|
1114
|
-
hasOverlapId: (id: any) => any;
|
|
1115
1451
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
1116
|
-
selection
|
|
1117
|
-
documentId
|
|
1118
|
-
parentCommentId
|
|
1119
|
-
}) =>
|
|
1452
|
+
selection?: Object | undefined;
|
|
1453
|
+
documentId?: string | null | undefined;
|
|
1454
|
+
parentCommentId?: string | null | undefined;
|
|
1455
|
+
}) => ReturnType<any>;
|
|
1120
1456
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
1121
1457
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1122
1458
|
superdoc: any;
|
|
1123
1459
|
comment: any;
|
|
1124
1460
|
skipEditorUpdate?: boolean | undefined;
|
|
1125
1461
|
broadcastChanges?: boolean | undefined;
|
|
1126
|
-
}) =>
|
|
1462
|
+
}) => {
|
|
1463
|
+
ok: boolean;
|
|
1464
|
+
reason?: string;
|
|
1465
|
+
detail?: string;
|
|
1466
|
+
code?: string;
|
|
1467
|
+
} | Promise<{
|
|
1468
|
+
ok: boolean;
|
|
1469
|
+
reason?: string;
|
|
1470
|
+
detail?: string;
|
|
1471
|
+
code?: string;
|
|
1472
|
+
}>;
|
|
1127
1473
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1128
1474
|
superdoc: any;
|
|
1129
1475
|
comment: any;
|
|
1130
1476
|
skipEditorUpdate?: boolean | undefined;
|
|
1131
1477
|
broadcastChanges?: boolean | undefined;
|
|
1132
|
-
}) =>
|
|
1478
|
+
}) => {
|
|
1479
|
+
ok: boolean;
|
|
1480
|
+
reason?: string;
|
|
1481
|
+
detail?: string;
|
|
1482
|
+
code?: string;
|
|
1483
|
+
} | Promise<{
|
|
1484
|
+
ok: boolean;
|
|
1485
|
+
reason?: string;
|
|
1486
|
+
detail?: string;
|
|
1487
|
+
code?: string;
|
|
1488
|
+
}>;
|
|
1133
1489
|
cancelComment: (superdoc: any) => void;
|
|
1134
1490
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
1135
1491
|
commentId: any;
|
|
@@ -1166,16 +1522,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1166
1522
|
clearInstantSidebarAlignment: () => void;
|
|
1167
1523
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
1168
1524
|
superdoc: Object;
|
|
1169
|
-
|
|
1170
|
-
|
|
1525
|
+
comment: Object;
|
|
1526
|
+
decision: string;
|
|
1527
|
+
}) => {
|
|
1528
|
+
ok: boolean;
|
|
1529
|
+
success?: boolean;
|
|
1530
|
+
reason?: string;
|
|
1531
|
+
} | Promise<{
|
|
1532
|
+
ok: boolean;
|
|
1533
|
+
success?: boolean;
|
|
1534
|
+
reason?: string;
|
|
1535
|
+
}>;
|
|
1171
1536
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1172
1537
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1173
1538
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1174
|
-
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
|
+
};
|
|
1175
1568
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1176
1569
|
preparedInputs?: null | undefined;
|
|
1177
1570
|
pruneStale?: boolean | undefined;
|
|
1178
|
-
}) =>
|
|
1571
|
+
}) => {
|
|
1572
|
+
added: null;
|
|
1573
|
+
dropped: string;
|
|
1574
|
+
} | {
|
|
1575
|
+
added: any;
|
|
1576
|
+
dropped?: undefined;
|
|
1577
|
+
};
|
|
1179
1578
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1180
1579
|
ok: boolean;
|
|
1181
1580
|
reason: string;
|
|
@@ -1198,7 +1597,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1198
1597
|
};
|
|
1199
1598
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1200
1599
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
1201
|
-
|
|
1600
|
+
superdoc?: Object | undefined;
|
|
1601
|
+
parentCommentId?: string | null | undefined;
|
|
1602
|
+
text?: string | undefined;
|
|
1603
|
+
mentions?: {
|
|
1604
|
+
name?: string | null;
|
|
1605
|
+
email?: string | null;
|
|
1606
|
+
}[] | undefined;
|
|
1607
|
+
trackedChangeTarget?: {
|
|
1608
|
+
kind: "trackedChange";
|
|
1609
|
+
trackedChangeId: string;
|
|
1610
|
+
story?: unknown;
|
|
1611
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
1612
|
+
} | undefined;
|
|
1202
1613
|
}) => Promise<any>;
|
|
1203
1614
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1204
1615
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1226,7 +1637,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1226
1637
|
resolvedIds: never[];
|
|
1227
1638
|
unresolvedIds: never[];
|
|
1228
1639
|
allResolved: boolean;
|
|
1229
|
-
removedRows:
|
|
1640
|
+
removedRows: number;
|
|
1230
1641
|
reason?: undefined;
|
|
1231
1642
|
removedIds?: undefined;
|
|
1232
1643
|
} | {
|
|
@@ -1246,9 +1657,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1246
1657
|
previousPreparedPresentation?: null | undefined;
|
|
1247
1658
|
liveIds?: null | undefined;
|
|
1248
1659
|
liveAnchorKeys?: null | undefined;
|
|
1249
|
-
}) =>
|
|
1660
|
+
}) => {
|
|
1661
|
+
liveIds: Set<any>;
|
|
1662
|
+
liveAnchorKeys: Set<any>;
|
|
1663
|
+
appliedCount: number;
|
|
1664
|
+
} | undefined;
|
|
1250
1665
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1251
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "
|
|
1666
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
1252
1667
|
COMMENT_EVENTS: {
|
|
1253
1668
|
readonly RESOLVED: "resolved";
|
|
1254
1669
|
readonly NEW: "new";
|
|
@@ -1261,15 +1676,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1261
1676
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
1262
1677
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
1263
1678
|
};
|
|
1264
|
-
isDebugging: boolean;
|
|
1265
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
1266
1679
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
1267
1680
|
editingCommentId: Ref<null, null>;
|
|
1268
1681
|
activeComment: Ref<null, null>;
|
|
1269
1682
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
1270
|
-
commentDialogs: Ref<never[], never[]>;
|
|
1271
|
-
overlappingComments: Ref<never[], never[]>;
|
|
1272
|
-
overlappedIds: Set<never>;
|
|
1273
1683
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
1274
1684
|
pendingComment: Ref<null, null>;
|
|
1275
1685
|
currentCommentText: Ref<string, string>;
|
|
@@ -1287,8 +1697,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1287
1697
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
1288
1698
|
floatingCommentsOffset: Ref<number, number>;
|
|
1289
1699
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
1290
|
-
sortedConversations: Ref<never[], never[]>;
|
|
1291
|
-
visibleConversations: Ref<never[], never[]>;
|
|
1292
1700
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
1293
1701
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
1294
1702
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -1310,27 +1718,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1310
1718
|
resolvedComments: any[];
|
|
1311
1719
|
}>;
|
|
1312
1720
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1313
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1314
|
-
parentComments: any[];
|
|
1315
|
-
resolvedComments: any[];
|
|
1316
|
-
}>;
|
|
1317
1721
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1318
1722
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1319
|
-
id:
|
|
1320
|
-
threadId:
|
|
1723
|
+
id: string;
|
|
1724
|
+
threadId: string | null;
|
|
1321
1725
|
comment: any;
|
|
1322
|
-
positionKey:
|
|
1323
|
-
|
|
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;
|
|
1324
1746
|
isPrimary: boolean;
|
|
1325
|
-
positionEntry: any;
|
|
1326
1747
|
}[]>;
|
|
1327
|
-
getCommentAliasIds: (commentOrId:
|
|
1748
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
1328
1749
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
1329
|
-
getCommentPositionKey: (commentOrId:
|
|
1750
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1330
1751
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1331
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1332
|
-
key: string
|
|
1333
|
-
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;
|
|
1334
1758
|
};
|
|
1335
1759
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1336
1760
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -1343,31 +1767,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1343
1767
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
1344
1768
|
init: (config?: Object) => void;
|
|
1345
1769
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
1346
|
-
getComment: (id:
|
|
1770
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
1347
1771
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
1348
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
1349
|
-
top: any;
|
|
1350
|
-
left: any;
|
|
1351
|
-
};
|
|
1352
|
-
hasOverlapId: (id: any) => any;
|
|
1353
1772
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
1354
|
-
selection
|
|
1355
|
-
documentId
|
|
1356
|
-
parentCommentId
|
|
1357
|
-
}) =>
|
|
1773
|
+
selection?: Object | undefined;
|
|
1774
|
+
documentId?: string | null | undefined;
|
|
1775
|
+
parentCommentId?: string | null | undefined;
|
|
1776
|
+
}) => ReturnType<any>;
|
|
1358
1777
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
1359
1778
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1360
1779
|
superdoc: any;
|
|
1361
1780
|
comment: any;
|
|
1362
1781
|
skipEditorUpdate?: boolean | undefined;
|
|
1363
1782
|
broadcastChanges?: boolean | undefined;
|
|
1364
|
-
}) =>
|
|
1783
|
+
}) => {
|
|
1784
|
+
ok: boolean;
|
|
1785
|
+
reason?: string;
|
|
1786
|
+
detail?: string;
|
|
1787
|
+
code?: string;
|
|
1788
|
+
} | Promise<{
|
|
1789
|
+
ok: boolean;
|
|
1790
|
+
reason?: string;
|
|
1791
|
+
detail?: string;
|
|
1792
|
+
code?: string;
|
|
1793
|
+
}>;
|
|
1365
1794
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1366
1795
|
superdoc: any;
|
|
1367
1796
|
comment: any;
|
|
1368
1797
|
skipEditorUpdate?: boolean | undefined;
|
|
1369
1798
|
broadcastChanges?: boolean | undefined;
|
|
1370
|
-
}) =>
|
|
1799
|
+
}) => {
|
|
1800
|
+
ok: boolean;
|
|
1801
|
+
reason?: string;
|
|
1802
|
+
detail?: string;
|
|
1803
|
+
code?: string;
|
|
1804
|
+
} | Promise<{
|
|
1805
|
+
ok: boolean;
|
|
1806
|
+
reason?: string;
|
|
1807
|
+
detail?: string;
|
|
1808
|
+
code?: string;
|
|
1809
|
+
}>;
|
|
1371
1810
|
cancelComment: (superdoc: any) => void;
|
|
1372
1811
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
1373
1812
|
commentId: any;
|
|
@@ -1404,16 +1843,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1404
1843
|
clearInstantSidebarAlignment: () => void;
|
|
1405
1844
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
1406
1845
|
superdoc: Object;
|
|
1407
|
-
|
|
1408
|
-
|
|
1846
|
+
comment: Object;
|
|
1847
|
+
decision: string;
|
|
1848
|
+
}) => {
|
|
1849
|
+
ok: boolean;
|
|
1850
|
+
success?: boolean;
|
|
1851
|
+
reason?: string;
|
|
1852
|
+
} | Promise<{
|
|
1853
|
+
ok: boolean;
|
|
1854
|
+
success?: boolean;
|
|
1855
|
+
reason?: string;
|
|
1856
|
+
}>;
|
|
1409
1857
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1410
1858
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1411
1859
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1412
|
-
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
|
+
};
|
|
1413
1889
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1414
1890
|
preparedInputs?: null | undefined;
|
|
1415
1891
|
pruneStale?: boolean | undefined;
|
|
1416
|
-
}) =>
|
|
1892
|
+
}) => {
|
|
1893
|
+
added: null;
|
|
1894
|
+
dropped: string;
|
|
1895
|
+
} | {
|
|
1896
|
+
added: any;
|
|
1897
|
+
dropped?: undefined;
|
|
1898
|
+
};
|
|
1417
1899
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1418
1900
|
ok: boolean;
|
|
1419
1901
|
reason: string;
|
|
@@ -1436,7 +1918,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1436
1918
|
};
|
|
1437
1919
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1438
1920
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
1439
|
-
|
|
1921
|
+
superdoc?: Object | undefined;
|
|
1922
|
+
parentCommentId?: string | null | undefined;
|
|
1923
|
+
text?: string | undefined;
|
|
1924
|
+
mentions?: {
|
|
1925
|
+
name?: string | null;
|
|
1926
|
+
email?: string | null;
|
|
1927
|
+
}[] | undefined;
|
|
1928
|
+
trackedChangeTarget?: {
|
|
1929
|
+
kind: "trackedChange";
|
|
1930
|
+
trackedChangeId: string;
|
|
1931
|
+
story?: unknown;
|
|
1932
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
1933
|
+
} | undefined;
|
|
1440
1934
|
}) => Promise<any>;
|
|
1441
1935
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1442
1936
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1464,7 +1958,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1464
1958
|
resolvedIds: never[];
|
|
1465
1959
|
unresolvedIds: never[];
|
|
1466
1960
|
allResolved: boolean;
|
|
1467
|
-
removedRows:
|
|
1961
|
+
removedRows: number;
|
|
1468
1962
|
reason?: undefined;
|
|
1469
1963
|
removedIds?: undefined;
|
|
1470
1964
|
} | {
|
|
@@ -1484,9 +1978,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1484
1978
|
previousPreparedPresentation?: null | undefined;
|
|
1485
1979
|
liveIds?: null | undefined;
|
|
1486
1980
|
liveAnchorKeys?: null | undefined;
|
|
1487
|
-
}) =>
|
|
1981
|
+
}) => {
|
|
1982
|
+
liveIds: Set<any>;
|
|
1983
|
+
liveAnchorKeys: Set<any>;
|
|
1984
|
+
appliedCount: number;
|
|
1985
|
+
} | undefined;
|
|
1488
1986
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1489
|
-
}, "
|
|
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">>;
|
|
1490
1988
|
documents: Ref<StoreDocument[], StoreDocument[]>;
|
|
1491
1989
|
documentBounds: Ref<unknown[], unknown[]>;
|
|
1492
1990
|
pages: Record<string, PageEntry[]>;
|
|
@@ -1530,15 +2028,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1530
2028
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
1531
2029
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
1532
2030
|
};
|
|
1533
|
-
isDebugging: boolean;
|
|
1534
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
1535
2031
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
1536
2032
|
editingCommentId: Ref<null, null>;
|
|
1537
2033
|
activeComment: Ref<null, null>;
|
|
1538
2034
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
1539
|
-
commentDialogs: Ref<never[], never[]>;
|
|
1540
|
-
overlappingComments: Ref<never[], never[]>;
|
|
1541
|
-
overlappedIds: Set<never>;
|
|
1542
2035
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
1543
2036
|
pendingComment: Ref<null, null>;
|
|
1544
2037
|
currentCommentText: Ref<string, string>;
|
|
@@ -1556,8 +2049,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1556
2049
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
1557
2050
|
floatingCommentsOffset: Ref<number, number>;
|
|
1558
2051
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
1559
|
-
sortedConversations: Ref<never[], never[]>;
|
|
1560
|
-
visibleConversations: Ref<never[], never[]>;
|
|
1561
2052
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
1562
2053
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
1563
2054
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -1579,27 +2070,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1579
2070
|
resolvedComments: any[];
|
|
1580
2071
|
}>;
|
|
1581
2072
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1582
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1583
|
-
parentComments: any[];
|
|
1584
|
-
resolvedComments: any[];
|
|
1585
|
-
}>;
|
|
1586
2073
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1587
2074
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1588
|
-
id:
|
|
1589
|
-
threadId:
|
|
2075
|
+
id: string;
|
|
2076
|
+
threadId: string | null;
|
|
1590
2077
|
comment: any;
|
|
1591
|
-
positionKey:
|
|
1592
|
-
|
|
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;
|
|
1593
2098
|
isPrimary: boolean;
|
|
1594
|
-
positionEntry: any;
|
|
1595
2099
|
}[]>;
|
|
1596
|
-
getCommentAliasIds: (commentOrId:
|
|
2100
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
1597
2101
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
1598
|
-
getCommentPositionKey: (commentOrId:
|
|
2102
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1599
2103
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1600
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1601
|
-
key: string
|
|
1602
|
-
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;
|
|
1603
2110
|
};
|
|
1604
2111
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1605
2112
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -1612,31 +2119,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1612
2119
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
1613
2120
|
init: (config?: Object) => void;
|
|
1614
2121
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
1615
|
-
getComment: (id:
|
|
2122
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
1616
2123
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
1617
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
1618
|
-
top: any;
|
|
1619
|
-
left: any;
|
|
1620
|
-
};
|
|
1621
|
-
hasOverlapId: (id: any) => any;
|
|
1622
2124
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
1623
|
-
selection
|
|
1624
|
-
documentId
|
|
1625
|
-
parentCommentId
|
|
1626
|
-
}) =>
|
|
2125
|
+
selection?: Object | undefined;
|
|
2126
|
+
documentId?: string | null | undefined;
|
|
2127
|
+
parentCommentId?: string | null | undefined;
|
|
2128
|
+
}) => ReturnType<any>;
|
|
1627
2129
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
1628
2130
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1629
2131
|
superdoc: any;
|
|
1630
2132
|
comment: any;
|
|
1631
2133
|
skipEditorUpdate?: boolean | undefined;
|
|
1632
2134
|
broadcastChanges?: boolean | undefined;
|
|
1633
|
-
}) =>
|
|
2135
|
+
}) => {
|
|
2136
|
+
ok: boolean;
|
|
2137
|
+
reason?: string;
|
|
2138
|
+
detail?: string;
|
|
2139
|
+
code?: string;
|
|
2140
|
+
} | Promise<{
|
|
2141
|
+
ok: boolean;
|
|
2142
|
+
reason?: string;
|
|
2143
|
+
detail?: string;
|
|
2144
|
+
code?: string;
|
|
2145
|
+
}>;
|
|
1634
2146
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1635
2147
|
superdoc: any;
|
|
1636
2148
|
comment: any;
|
|
1637
2149
|
skipEditorUpdate?: boolean | undefined;
|
|
1638
2150
|
broadcastChanges?: boolean | undefined;
|
|
1639
|
-
}) =>
|
|
2151
|
+
}) => {
|
|
2152
|
+
ok: boolean;
|
|
2153
|
+
reason?: string;
|
|
2154
|
+
detail?: string;
|
|
2155
|
+
code?: string;
|
|
2156
|
+
} | Promise<{
|
|
2157
|
+
ok: boolean;
|
|
2158
|
+
reason?: string;
|
|
2159
|
+
detail?: string;
|
|
2160
|
+
code?: string;
|
|
2161
|
+
}>;
|
|
1640
2162
|
cancelComment: (superdoc: any) => void;
|
|
1641
2163
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
1642
2164
|
commentId: any;
|
|
@@ -1673,16 +2195,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1673
2195
|
clearInstantSidebarAlignment: () => void;
|
|
1674
2196
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
1675
2197
|
superdoc: Object;
|
|
1676
|
-
|
|
1677
|
-
|
|
2198
|
+
comment: Object;
|
|
2199
|
+
decision: string;
|
|
2200
|
+
}) => {
|
|
2201
|
+
ok: boolean;
|
|
2202
|
+
success?: boolean;
|
|
2203
|
+
reason?: string;
|
|
2204
|
+
} | Promise<{
|
|
2205
|
+
ok: boolean;
|
|
2206
|
+
success?: boolean;
|
|
2207
|
+
reason?: string;
|
|
2208
|
+
}>;
|
|
1678
2209
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1679
2210
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1680
2211
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1681
|
-
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
|
+
};
|
|
1682
2241
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1683
2242
|
preparedInputs?: null | undefined;
|
|
1684
2243
|
pruneStale?: boolean | undefined;
|
|
1685
|
-
}) =>
|
|
2244
|
+
}) => {
|
|
2245
|
+
added: null;
|
|
2246
|
+
dropped: string;
|
|
2247
|
+
} | {
|
|
2248
|
+
added: any;
|
|
2249
|
+
dropped?: undefined;
|
|
2250
|
+
};
|
|
1686
2251
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1687
2252
|
ok: boolean;
|
|
1688
2253
|
reason: string;
|
|
@@ -1705,7 +2270,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1705
2270
|
};
|
|
1706
2271
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1707
2272
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
1708
|
-
|
|
2273
|
+
superdoc?: Object | undefined;
|
|
2274
|
+
parentCommentId?: string | null | undefined;
|
|
2275
|
+
text?: string | undefined;
|
|
2276
|
+
mentions?: {
|
|
2277
|
+
name?: string | null;
|
|
2278
|
+
email?: string | null;
|
|
2279
|
+
}[] | undefined;
|
|
2280
|
+
trackedChangeTarget?: {
|
|
2281
|
+
kind: "trackedChange";
|
|
2282
|
+
trackedChangeId: string;
|
|
2283
|
+
story?: unknown;
|
|
2284
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
2285
|
+
} | undefined;
|
|
1709
2286
|
}) => Promise<any>;
|
|
1710
2287
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1711
2288
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1733,7 +2310,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1733
2310
|
resolvedIds: never[];
|
|
1734
2311
|
unresolvedIds: never[];
|
|
1735
2312
|
allResolved: boolean;
|
|
1736
|
-
removedRows:
|
|
2313
|
+
removedRows: number;
|
|
1737
2314
|
reason?: undefined;
|
|
1738
2315
|
removedIds?: undefined;
|
|
1739
2316
|
} | {
|
|
@@ -1753,9 +2330,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1753
2330
|
previousPreparedPresentation?: null | undefined;
|
|
1754
2331
|
liveIds?: null | undefined;
|
|
1755
2332
|
liveAnchorKeys?: null | undefined;
|
|
1756
|
-
}) =>
|
|
2333
|
+
}) => {
|
|
2334
|
+
liveIds: Set<any>;
|
|
2335
|
+
liveAnchorKeys: Set<any>;
|
|
2336
|
+
appliedCount: number;
|
|
2337
|
+
} | undefined;
|
|
1757
2338
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1758
|
-
}, "
|
|
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<{
|
|
1759
2340
|
COMMENT_EVENTS: {
|
|
1760
2341
|
readonly RESOLVED: "resolved";
|
|
1761
2342
|
readonly NEW: "new";
|
|
@@ -1768,15 +2349,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1768
2349
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
1769
2350
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
1770
2351
|
};
|
|
1771
|
-
isDebugging: boolean;
|
|
1772
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
1773
2352
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
1774
2353
|
editingCommentId: Ref<null, null>;
|
|
1775
2354
|
activeComment: Ref<null, null>;
|
|
1776
2355
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
1777
|
-
commentDialogs: Ref<never[], never[]>;
|
|
1778
|
-
overlappingComments: Ref<never[], never[]>;
|
|
1779
|
-
overlappedIds: Set<never>;
|
|
1780
2356
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
1781
2357
|
pendingComment: Ref<null, null>;
|
|
1782
2358
|
currentCommentText: Ref<string, string>;
|
|
@@ -1794,8 +2370,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1794
2370
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
1795
2371
|
floatingCommentsOffset: Ref<number, number>;
|
|
1796
2372
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
1797
|
-
sortedConversations: Ref<never[], never[]>;
|
|
1798
|
-
visibleConversations: Ref<never[], never[]>;
|
|
1799
2373
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
1800
2374
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
1801
2375
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -1817,27 +2391,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1817
2391
|
resolvedComments: any[];
|
|
1818
2392
|
}>;
|
|
1819
2393
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1820
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1821
|
-
parentComments: any[];
|
|
1822
|
-
resolvedComments: any[];
|
|
1823
|
-
}>;
|
|
1824
2394
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1825
2395
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1826
|
-
id:
|
|
1827
|
-
threadId:
|
|
2396
|
+
id: string;
|
|
2397
|
+
threadId: string | null;
|
|
1828
2398
|
comment: any;
|
|
1829
|
-
positionKey:
|
|
1830
|
-
|
|
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;
|
|
1831
2419
|
isPrimary: boolean;
|
|
1832
|
-
positionEntry: any;
|
|
1833
2420
|
}[]>;
|
|
1834
|
-
getCommentAliasIds: (commentOrId:
|
|
2421
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
1835
2422
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
1836
|
-
getCommentPositionKey: (commentOrId:
|
|
2423
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
1837
2424
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
1838
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
1839
|
-
key: string
|
|
1840
|
-
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;
|
|
1841
2431
|
};
|
|
1842
2432
|
getCommentDocumentId: (comment: any) => string | null;
|
|
1843
2433
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -1850,31 +2440,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1850
2440
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
1851
2441
|
init: (config?: Object) => void;
|
|
1852
2442
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
1853
|
-
getComment: (id:
|
|
2443
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
1854
2444
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
1855
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
1856
|
-
top: any;
|
|
1857
|
-
left: any;
|
|
1858
|
-
};
|
|
1859
|
-
hasOverlapId: (id: any) => any;
|
|
1860
2445
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
1861
|
-
selection
|
|
1862
|
-
documentId
|
|
1863
|
-
parentCommentId
|
|
1864
|
-
}) =>
|
|
2446
|
+
selection?: Object | undefined;
|
|
2447
|
+
documentId?: string | null | undefined;
|
|
2448
|
+
parentCommentId?: string | null | undefined;
|
|
2449
|
+
}) => ReturnType<any>;
|
|
1865
2450
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
1866
2451
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1867
2452
|
superdoc: any;
|
|
1868
2453
|
comment: any;
|
|
1869
2454
|
skipEditorUpdate?: boolean | undefined;
|
|
1870
2455
|
broadcastChanges?: boolean | undefined;
|
|
1871
|
-
}) =>
|
|
2456
|
+
}) => {
|
|
2457
|
+
ok: boolean;
|
|
2458
|
+
reason?: string;
|
|
2459
|
+
detail?: string;
|
|
2460
|
+
code?: string;
|
|
2461
|
+
} | Promise<{
|
|
2462
|
+
ok: boolean;
|
|
2463
|
+
reason?: string;
|
|
2464
|
+
detail?: string;
|
|
2465
|
+
code?: string;
|
|
2466
|
+
}>;
|
|
1872
2467
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1873
2468
|
superdoc: any;
|
|
1874
2469
|
comment: any;
|
|
1875
2470
|
skipEditorUpdate?: boolean | undefined;
|
|
1876
2471
|
broadcastChanges?: boolean | undefined;
|
|
1877
|
-
}) =>
|
|
2472
|
+
}) => {
|
|
2473
|
+
ok: boolean;
|
|
2474
|
+
reason?: string;
|
|
2475
|
+
detail?: string;
|
|
2476
|
+
code?: string;
|
|
2477
|
+
} | Promise<{
|
|
2478
|
+
ok: boolean;
|
|
2479
|
+
reason?: string;
|
|
2480
|
+
detail?: string;
|
|
2481
|
+
code?: string;
|
|
2482
|
+
}>;
|
|
1878
2483
|
cancelComment: (superdoc: any) => void;
|
|
1879
2484
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
1880
2485
|
commentId: any;
|
|
@@ -1911,16 +2516,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1911
2516
|
clearInstantSidebarAlignment: () => void;
|
|
1912
2517
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
1913
2518
|
superdoc: Object;
|
|
1914
|
-
|
|
1915
|
-
|
|
2519
|
+
comment: Object;
|
|
2520
|
+
decision: string;
|
|
2521
|
+
}) => {
|
|
2522
|
+
ok: boolean;
|
|
2523
|
+
success?: boolean;
|
|
2524
|
+
reason?: string;
|
|
2525
|
+
} | Promise<{
|
|
2526
|
+
ok: boolean;
|
|
2527
|
+
success?: boolean;
|
|
2528
|
+
reason?: string;
|
|
2529
|
+
}>;
|
|
1916
2530
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1917
2531
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1918
2532
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1919
|
-
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
|
+
};
|
|
1920
2562
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1921
2563
|
preparedInputs?: null | undefined;
|
|
1922
2564
|
pruneStale?: boolean | undefined;
|
|
1923
|
-
}) =>
|
|
2565
|
+
}) => {
|
|
2566
|
+
added: null;
|
|
2567
|
+
dropped: string;
|
|
2568
|
+
} | {
|
|
2569
|
+
added: any;
|
|
2570
|
+
dropped?: undefined;
|
|
2571
|
+
};
|
|
1924
2572
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
1925
2573
|
ok: boolean;
|
|
1926
2574
|
reason: string;
|
|
@@ -1943,7 +2591,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1943
2591
|
};
|
|
1944
2592
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1945
2593
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
1946
|
-
|
|
2594
|
+
superdoc?: Object | undefined;
|
|
2595
|
+
parentCommentId?: string | null | undefined;
|
|
2596
|
+
text?: string | undefined;
|
|
2597
|
+
mentions?: {
|
|
2598
|
+
name?: string | null;
|
|
2599
|
+
email?: string | null;
|
|
2600
|
+
}[] | undefined;
|
|
2601
|
+
trackedChangeTarget?: {
|
|
2602
|
+
kind: "trackedChange";
|
|
2603
|
+
trackedChangeId: string;
|
|
2604
|
+
story?: unknown;
|
|
2605
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
2606
|
+
} | undefined;
|
|
1947
2607
|
}) => Promise<any>;
|
|
1948
2608
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
1949
2609
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -1971,7 +2631,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1971
2631
|
resolvedIds: never[];
|
|
1972
2632
|
unresolvedIds: never[];
|
|
1973
2633
|
allResolved: boolean;
|
|
1974
|
-
removedRows:
|
|
2634
|
+
removedRows: number;
|
|
1975
2635
|
reason?: undefined;
|
|
1976
2636
|
removedIds?: undefined;
|
|
1977
2637
|
} | {
|
|
@@ -1991,9 +2651,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
1991
2651
|
previousPreparedPresentation?: null | undefined;
|
|
1992
2652
|
liveIds?: null | undefined;
|
|
1993
2653
|
liveAnchorKeys?: null | undefined;
|
|
1994
|
-
}) =>
|
|
2654
|
+
}) => {
|
|
2655
|
+
liveIds: Set<any>;
|
|
2656
|
+
liveAnchorKeys: Set<any>;
|
|
2657
|
+
appliedCount: number;
|
|
2658
|
+
} | undefined;
|
|
1995
2659
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1996
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "
|
|
2660
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
1997
2661
|
COMMENT_EVENTS: {
|
|
1998
2662
|
readonly RESOLVED: "resolved";
|
|
1999
2663
|
readonly NEW: "new";
|
|
@@ -2006,15 +2670,10 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2006
2670
|
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
2007
2671
|
readonly CHANGE_REJECTED: "change-rejected";
|
|
2008
2672
|
};
|
|
2009
|
-
isDebugging: boolean;
|
|
2010
|
-
hasInitializedComments: Ref<boolean, boolean>;
|
|
2011
2673
|
hasSyncedCollaborationComments: Ref<boolean, boolean>;
|
|
2012
2674
|
editingCommentId: Ref<null, null>;
|
|
2013
2675
|
activeComment: Ref<null, null>;
|
|
2014
2676
|
activeFloatingCommentInstanceId: Ref<null, null>;
|
|
2015
|
-
commentDialogs: Ref<never[], never[]>;
|
|
2016
|
-
overlappingComments: Ref<never[], never[]>;
|
|
2017
|
-
overlappedIds: Set<never>;
|
|
2018
2677
|
suppressInternalExternal: Ref<boolean, boolean>;
|
|
2019
2678
|
pendingComment: Ref<null, null>;
|
|
2020
2679
|
currentCommentText: Ref<string, string>;
|
|
@@ -2032,8 +2691,6 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2032
2691
|
isCommentHighlighted: Ref<boolean, boolean>;
|
|
2033
2692
|
floatingCommentsOffset: Ref<number, number>;
|
|
2034
2693
|
committedReviewPresentations: import('vue').ShallowRef<{}, {}>;
|
|
2035
|
-
sortedConversations: Ref<never[], never[]>;
|
|
2036
|
-
visibleConversations: Ref<never[], never[]>;
|
|
2037
2694
|
skipSelectionUpdate: Ref<boolean, boolean>;
|
|
2038
2695
|
isFloatingCommentsReady: Ref<boolean, boolean>;
|
|
2039
2696
|
instantSidebarAlignmentTargetY: Ref<null, null>;
|
|
@@ -2055,27 +2712,43 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2055
2712
|
resolvedComments: any[];
|
|
2056
2713
|
}>;
|
|
2057
2714
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
2058
|
-
getCommentsByPosition: import('vue').ComputedRef<{
|
|
2059
|
-
parentComments: any[];
|
|
2060
|
-
resolvedComments: any[];
|
|
2061
|
-
}>;
|
|
2062
2715
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
2063
2716
|
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
2064
|
-
id:
|
|
2065
|
-
threadId:
|
|
2717
|
+
id: string;
|
|
2718
|
+
threadId: string | null;
|
|
2066
2719
|
comment: any;
|
|
2067
|
-
positionKey:
|
|
2068
|
-
|
|
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;
|
|
2069
2740
|
isPrimary: boolean;
|
|
2070
|
-
positionEntry: any;
|
|
2071
2741
|
}[]>;
|
|
2072
|
-
getCommentAliasIds: (commentOrId:
|
|
2742
|
+
getCommentAliasIds: (commentOrId: string | number | import('./helpers/comment-identity.js').CommentIdentityRow | null | undefined) => string[];
|
|
2073
2743
|
getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
|
|
2074
|
-
getCommentPositionKey: (commentOrId:
|
|
2744
|
+
getCommentPositionKey: (commentOrId: import('./helpers/comment-identity.js').CommentIdentityRow | string | null | undefined) => unknown;
|
|
2075
2745
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
2076
|
-
resolveCommentPositionEntry: (commentOrId:
|
|
2077
|
-
key: string
|
|
2078
|
-
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;
|
|
2079
2752
|
};
|
|
2080
2753
|
getCommentDocumentId: (comment: any) => string | null;
|
|
2081
2754
|
belongsToDocument: (comment: any, activeDocumentId: any, options?: {}) => any;
|
|
@@ -2088,31 +2761,46 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2088
2761
|
shouldRenderReviewInViewing: import('vue').ComputedRef<boolean>;
|
|
2089
2762
|
init: (config?: Object) => void;
|
|
2090
2763
|
setViewingVisibility: ({ documentMode, commentsVisible, trackChangesVisible }?: {}) => void;
|
|
2091
|
-
getComment: (id:
|
|
2764
|
+
getComment: (id: unknown) => import('./helpers/comment-identity.js').CommentIdentityRow | null;
|
|
2092
2765
|
setActiveComment: (superdoc: Object | undefined | null, id: string | undefined | null) => void;
|
|
2093
|
-
getCommentLocation: (selection: any, parent: any) => {
|
|
2094
|
-
top: any;
|
|
2095
|
-
left: any;
|
|
2096
|
-
};
|
|
2097
|
-
hasOverlapId: (id: any) => any;
|
|
2098
2766
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
2099
|
-
selection
|
|
2100
|
-
documentId
|
|
2101
|
-
parentCommentId
|
|
2102
|
-
}) =>
|
|
2767
|
+
selection?: Object | undefined;
|
|
2768
|
+
documentId?: string | null | undefined;
|
|
2769
|
+
parentCommentId?: string | null | undefined;
|
|
2770
|
+
}) => ReturnType<any>;
|
|
2103
2771
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
2104
2772
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
2105
2773
|
superdoc: any;
|
|
2106
2774
|
comment: any;
|
|
2107
2775
|
skipEditorUpdate?: boolean | undefined;
|
|
2108
2776
|
broadcastChanges?: boolean | undefined;
|
|
2109
|
-
}) =>
|
|
2777
|
+
}) => {
|
|
2778
|
+
ok: boolean;
|
|
2779
|
+
reason?: string;
|
|
2780
|
+
detail?: string;
|
|
2781
|
+
code?: string;
|
|
2782
|
+
} | Promise<{
|
|
2783
|
+
ok: boolean;
|
|
2784
|
+
reason?: string;
|
|
2785
|
+
detail?: string;
|
|
2786
|
+
code?: string;
|
|
2787
|
+
}>;
|
|
2110
2788
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
2111
2789
|
superdoc: any;
|
|
2112
2790
|
comment: any;
|
|
2113
2791
|
skipEditorUpdate?: boolean | undefined;
|
|
2114
2792
|
broadcastChanges?: boolean | undefined;
|
|
2115
|
-
}) =>
|
|
2793
|
+
}) => {
|
|
2794
|
+
ok: boolean;
|
|
2795
|
+
reason?: string;
|
|
2796
|
+
detail?: string;
|
|
2797
|
+
code?: string;
|
|
2798
|
+
} | Promise<{
|
|
2799
|
+
ok: boolean;
|
|
2800
|
+
reason?: string;
|
|
2801
|
+
detail?: string;
|
|
2802
|
+
code?: string;
|
|
2803
|
+
}>;
|
|
2116
2804
|
cancelComment: (superdoc: any) => void;
|
|
2117
2805
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
2118
2806
|
commentId: any;
|
|
@@ -2149,16 +2837,59 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2149
2837
|
clearInstantSidebarAlignment: () => void;
|
|
2150
2838
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
2151
2839
|
superdoc: Object;
|
|
2152
|
-
|
|
2153
|
-
|
|
2840
|
+
comment: Object;
|
|
2841
|
+
decision: string;
|
|
2842
|
+
}) => {
|
|
2843
|
+
ok: boolean;
|
|
2844
|
+
success?: boolean;
|
|
2845
|
+
reason?: string;
|
|
2846
|
+
} | Promise<{
|
|
2847
|
+
ok: boolean;
|
|
2848
|
+
success?: boolean;
|
|
2849
|
+
reason?: string;
|
|
2850
|
+
}>;
|
|
2154
2851
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
2155
2852
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
2156
2853
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
2157
|
-
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
|
+
};
|
|
2158
2883
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
2159
2884
|
preparedInputs?: null | undefined;
|
|
2160
2885
|
pruneStale?: boolean | undefined;
|
|
2161
|
-
}) =>
|
|
2886
|
+
}) => {
|
|
2887
|
+
added: null;
|
|
2888
|
+
dropped: string;
|
|
2889
|
+
} | {
|
|
2890
|
+
added: any;
|
|
2891
|
+
dropped?: undefined;
|
|
2892
|
+
};
|
|
2162
2893
|
announceV2CommentCreated: ({ superdoc, commentId }?: {}) => Promise<{
|
|
2163
2894
|
ok: boolean;
|
|
2164
2895
|
reason: string;
|
|
@@ -2181,7 +2912,19 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2181
2912
|
};
|
|
2182
2913
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
2183
2914
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
2184
|
-
|
|
2915
|
+
superdoc?: Object | undefined;
|
|
2916
|
+
parentCommentId?: string | null | undefined;
|
|
2917
|
+
text?: string | undefined;
|
|
2918
|
+
mentions?: {
|
|
2919
|
+
name?: string | null;
|
|
2920
|
+
email?: string | null;
|
|
2921
|
+
}[] | undefined;
|
|
2922
|
+
trackedChangeTarget?: {
|
|
2923
|
+
kind: "trackedChange";
|
|
2924
|
+
trackedChangeId: string;
|
|
2925
|
+
story?: unknown;
|
|
2926
|
+
side?: import('./helpers/tracked-change-thread-index.js').TrackedChangeSideGroup;
|
|
2927
|
+
} | undefined;
|
|
2185
2928
|
}) => Promise<any>;
|
|
2186
2929
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
2187
2930
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -2209,7 +2952,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2209
2952
|
resolvedIds: never[];
|
|
2210
2953
|
unresolvedIds: never[];
|
|
2211
2954
|
allResolved: boolean;
|
|
2212
|
-
removedRows:
|
|
2955
|
+
removedRows: number;
|
|
2213
2956
|
reason?: undefined;
|
|
2214
2957
|
removedIds?: undefined;
|
|
2215
2958
|
} | {
|
|
@@ -2229,9 +2972,13 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
|
|
|
2229
2972
|
previousPreparedPresentation?: null | undefined;
|
|
2230
2973
|
liveIds?: null | undefined;
|
|
2231
2974
|
liveAnchorKeys?: null | undefined;
|
|
2232
|
-
}) =>
|
|
2975
|
+
}) => {
|
|
2976
|
+
liveIds: Set<any>;
|
|
2977
|
+
liveAnchorKeys: Set<any>;
|
|
2978
|
+
appliedCount: number;
|
|
2979
|
+
} | undefined;
|
|
2233
2980
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
2234
|
-
}, "
|
|
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">>;
|
|
2235
2982
|
documents: Ref<StoreDocument[], StoreDocument[]>;
|
|
2236
2983
|
documentBounds: Ref<unknown[], unknown[]>;
|
|
2237
2984
|
pages: Record<string, PageEntry[]>;
|