@veltdev/types-dev 6.0.8-beta.5 → 6.0.9-beta.2
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.
|
@@ -4,9 +4,9 @@ import { Observable } from "rxjs";
|
|
|
4
4
|
import { AssignToType, CommentSidebarSystemFiltersOperator, DetectionStrategy, SidebarButtonCountType } from "../../utils/enums";
|
|
5
5
|
import { UploadFileData, Attachment } from "../data/attachment.model";
|
|
6
6
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
7
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, ClearComposerRequest, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, FormatConfig, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, PrivateModeConfig, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
7
|
+
import { AcceptSuggestionRequest, RejectSuggestionRequest, AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, ClearComposerRequest, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, FormatConfig, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, PrivateModeConfig, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
8
8
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
9
|
-
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, AssignUserEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkResponse, PageModeComposerConfig, RejectCommentAnnotationEvent, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
|
|
9
|
+
import { SuggestionAcceptEvent, SuggestionRejectEvent, AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, AssignUserEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkResponse, PageModeComposerConfig, RejectCommentAnnotationEvent, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
|
|
10
10
|
import { CommentSidebarCustomActionEventData, CommentSidebarCustomActionsState, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
11
11
|
import { CommentContextProvider, TransformContext, UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
12
12
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
@@ -1143,14 +1143,44 @@ export declare class CommentElement {
|
|
|
1143
1143
|
|
|
1144
1144
|
/**
|
|
1145
1145
|
* To accept comment annotation
|
|
1146
|
+
*
|
|
1147
|
+
* @deprecated Use {@link acceptSuggestion} instead.
|
|
1148
|
+
*
|
|
1149
|
+
* The legacy "comments-as-suggestions" flow. Writes the workflow status
|
|
1150
|
+
* (`annotation.status = Accepted`) and does NOT change `annotation.type`, so a
|
|
1151
|
+
* suggestion card accepted this way keeps rendering as a suggestion.
|
|
1152
|
+
* `acceptSuggestion` writes `annotation.suggestion.status` AND flips `type` to
|
|
1153
|
+
* `'comment'`, which is what retires the card.
|
|
1154
|
+
*
|
|
1155
|
+
* Still functional; no removal date is set. `approveCommentAnnotation` is a
|
|
1156
|
+
* separate mechanism and is NOT deprecated.
|
|
1146
1157
|
*/
|
|
1147
1158
|
public acceptCommentAnnotation: (request: AcceptCommentAnnotationRequest) => Promise<AcceptCommentAnnotationEvent | null>;
|
|
1148
1159
|
|
|
1149
1160
|
/**
|
|
1150
1161
|
* To reject comment annotation
|
|
1162
|
+
*
|
|
1163
|
+
* @deprecated Use {@link rejectSuggestion} instead. The reject half of the
|
|
1164
|
+
* legacy flow — writes `annotation.status = Rejected` without touching
|
|
1165
|
+
* `annotation.type`. See {@link acceptCommentAnnotation}.
|
|
1151
1166
|
*/
|
|
1152
1167
|
public rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
1153
1168
|
|
|
1169
|
+
/**
|
|
1170
|
+
* Accept a `type: 'suggestion'` annotation — the same operation the suggestion
|
|
1171
|
+
* card's built-in accept button performs: writes `suggestion.status` AND flips
|
|
1172
|
+
* `type` to `'comment'`, which retires the card into a normal thread.
|
|
1173
|
+
*
|
|
1174
|
+
* Distinct from `acceptCommentAnnotation`, which is the legacy
|
|
1175
|
+
* comments-as-suggestions flow and writes `annotation.status` instead.
|
|
1176
|
+
*/
|
|
1177
|
+
public acceptSuggestion: (request: AcceptSuggestionRequest) => Promise<SuggestionAcceptEvent | null>;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Reject a `type: 'suggestion'` annotation. See `acceptSuggestion`.
|
|
1181
|
+
*/
|
|
1182
|
+
public rejectSuggestion: (request: RejectSuggestionRequest) => Promise<SuggestionRejectEvent | null>;
|
|
1183
|
+
|
|
1154
1184
|
/**
|
|
1155
1185
|
* To subscribe comment annotation
|
|
1156
1186
|
*/
|
|
@@ -2541,6 +2571,8 @@ export declare class CommentElement {
|
|
|
2541
2571
|
* To reject comment annotation
|
|
2542
2572
|
*/
|
|
2543
2573
|
private _rejectCommentAnnotation;
|
|
2574
|
+
private _acceptSuggestion;
|
|
2575
|
+
private _rejectSuggestion;
|
|
2544
2576
|
|
|
2545
2577
|
/**
|
|
2546
2578
|
* To subscribe to comment annotation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9-beta.2",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|