@veltdev/sdk 4.7.3 → 4.7.5
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
|
+
}
|
|
@@ -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";
|
|
@@ -1275,10 +1275,24 @@ export declare class CommentElement {
|
|
|
1275
1275
|
public disablePaginatedContactList: () => void;
|
|
1276
1276
|
|
|
1277
1277
|
/**
|
|
1278
|
-
* Programmatically trigger comment submission for a composer with the given
|
|
1279
|
-
* @param
|
|
1278
|
+
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
1279
|
+
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
1280
1280
|
*/
|
|
1281
|
-
public submitComment: (
|
|
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;
|
|
1282
1296
|
|
|
1283
1297
|
constructor();
|
|
1284
1298
|
/**
|
|
@@ -2534,8 +2548,22 @@ export declare class CommentElement {
|
|
|
2534
2548
|
private _disablePaginatedContactList;
|
|
2535
2549
|
|
|
2536
2550
|
/**
|
|
2537
|
-
* Programmatically trigger comment submission for a composer with the given
|
|
2538
|
-
* @param
|
|
2551
|
+
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
2552
|
+
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
2539
2553
|
*/
|
|
2540
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;
|
|
2541
2569
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.5",
|
|
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-5"
|
|
40
40
|
},
|
|
41
41
|
"author": "",
|
|
42
42
|
"license": "ISC",
|