@veltdev/sdk 4.7.2 → 4.7.4
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.
|
@@ -188,3 +188,12 @@ export interface FetchCommentAnnotationsRequest {
|
|
|
188
188
|
userIds?: string[];
|
|
189
189
|
mentionedUserIds?: string[];
|
|
190
190
|
}
|
|
191
|
+
export interface SubmitCommentRequest {
|
|
192
|
+
targetComposerElementId: string;
|
|
193
|
+
}
|
|
194
|
+
export interface ClearComposerRequest {
|
|
195
|
+
targetComposerElementId: string;
|
|
196
|
+
}
|
|
197
|
+
export interface GetComposerDataRequest {
|
|
198
|
+
targetComposerElementId: string;
|
|
199
|
+
}
|
|
@@ -82,6 +82,7 @@ export type CommentEventTypesMap = {
|
|
|
82
82
|
[CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
|
|
83
83
|
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
84
84
|
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
85
|
+
[CommentEventTypes.COMPOSER_TEXT_CHANGE]: ComposerTextChangeEvent;
|
|
85
86
|
};
|
|
86
87
|
export interface AddAttachmentEvent {
|
|
87
88
|
annotationId: string;
|
|
@@ -270,3 +271,9 @@ export interface CommentBubbleClickedEvent {
|
|
|
270
271
|
commentAnnotation: CommentAnnotation;
|
|
271
272
|
metadata?: VeltEventMetadata;
|
|
272
273
|
}
|
|
274
|
+
export interface ComposerTextChangeEvent {
|
|
275
|
+
text: string;
|
|
276
|
+
annotation: CommentAnnotation;
|
|
277
|
+
targetComposerElementId: string;
|
|
278
|
+
metadata?: VeltEventMetadata;
|
|
279
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
4
|
-
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent
|
|
4
|
+
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
|
|
5
5
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
6
6
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
7
7
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
8
8
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent,
|
|
10
|
+
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, ClearComposerRequest, CommentRequestQuery, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
11
11
|
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
12
|
import { CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
|
|
13
13
|
import { UploadFileData } from "../data/attachment.model";
|
|
@@ -1274,6 +1274,26 @@ export declare class CommentElement {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
public disablePaginatedContactList: () => void;
|
|
1276
1276
|
|
|
1277
|
+
/**
|
|
1278
|
+
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
1279
|
+
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
1280
|
+
*/
|
|
1281
|
+
public submitComment: (request: SubmitCommentRequest) => void;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* Programmatically clear the composer state for the given targetComposerElementId
|
|
1285
|
+
* @param request ClearComposerRequest containing targetComposerElementId
|
|
1286
|
+
*/
|
|
1287
|
+
public clearComposer: (request: ClearComposerRequest) => void;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Get the current composer data for a given targetComposerElementId
|
|
1291
|
+
* Returns the same data as COMPOSER_TEXT_CHANGE event but as a one-time fetch
|
|
1292
|
+
* @param request GetComposerDataRequest containing targetComposerElementId
|
|
1293
|
+
* @returns The composer data or null if not found
|
|
1294
|
+
*/
|
|
1295
|
+
public getComposerData: (request: GetComposerDataRequest) => ComposerTextChangeEvent | null;
|
|
1296
|
+
|
|
1277
1297
|
constructor();
|
|
1278
1298
|
/**
|
|
1279
1299
|
* Subscribe to comments on the current document.
|
|
@@ -2526,4 +2546,24 @@ export declare class CommentElement {
|
|
|
2526
2546
|
* To disable paginated contact list
|
|
2527
2547
|
*/
|
|
2528
2548
|
private _disablePaginatedContactList;
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
2552
|
+
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
2553
|
+
*/
|
|
2554
|
+
private _submitComment;
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Programmatically clear the composer state for the given targetComposerElementId
|
|
2558
|
+
* @param request ClearComposerRequest containing targetComposerElementId
|
|
2559
|
+
*/
|
|
2560
|
+
private _clearComposer;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* Get the current composer data for a given targetComposerElementId
|
|
2564
|
+
* Returns the same data as COMPOSER_TEXT_CHANGE event but as a one-time fetch
|
|
2565
|
+
* @param request GetComposerDataRequest containing targetComposerElementId
|
|
2566
|
+
* @returns The composer data or null if not found
|
|
2567
|
+
*/
|
|
2568
|
+
private _getComposerData;
|
|
2529
2569
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export declare const CommentEventTypes: {
|
|
|
57
57
|
readonly LINK_CLICKED: "linkClicked";
|
|
58
58
|
readonly COMMENT_PIN_CLICKED: "commentPinClicked";
|
|
59
59
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
60
|
+
readonly COMPOSER_TEXT_CHANGE: "composerTextChange";
|
|
60
61
|
};
|
|
61
62
|
export declare const RecorderEventTypes: {
|
|
62
63
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
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": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
38
38
|
"version:update": "node ../update-npm-package.mjs",
|
|
39
|
-
"publish:sdk": "npm publish --access public --tag v4-7-
|
|
39
|
+
"publish:sdk": "npm publish --access public --tag v4-7-4"
|
|
40
40
|
},
|
|
41
41
|
"author": "",
|
|
42
42
|
"license": "ISC",
|