@veltdev/sdk 4.5.4-beta.1 → 4.5.4-beta.3

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.
@@ -50,3 +50,8 @@ export interface UploadFileOptions {
50
50
  useAttachmentResolver?: boolean;
51
51
  metadata?: any;
52
52
  }
53
+ export interface UploadFileData {
54
+ files: File[];
55
+ annotationId?: string;
56
+ targetElementId?: string;
57
+ }
@@ -8,6 +8,7 @@ export interface VeltButtonClickEvent extends VeltButtonData {
8
8
  buttonContext?: VeltButtonContext;
9
9
  metadata?: VeltEventMetadata;
10
10
  customFilters?: CustomFilters;
11
+ data?: any;
11
12
  }
12
13
  export interface VeltButtonContext {
13
14
  type?: string;
@@ -10,6 +10,7 @@ export { ReactionMap } from '../data/reaction-annotation.data.model';
10
10
  import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest } 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
+ import { UploadFileData } from "../data/attachment.model";
13
14
 
14
15
  export declare class CommentElement {
15
16
  /**
@@ -1223,6 +1224,16 @@ export declare class CommentElement {
1223
1224
  */
1224
1225
  public disableFullScreenInSidebar: () => void;
1225
1226
 
1227
+ /**
1228
+ * To set composer file attachments
1229
+ */
1230
+ public setComposerFileAttachments: (data: UploadFileData) => void;
1231
+
1232
+ /**
1233
+ * To set allowed file types
1234
+ */
1235
+ public setAllowedFileTypes: (allowedFileTypes: string[]) => void;
1236
+
1226
1237
  constructor();
1227
1238
  /**
1228
1239
  * Subscribe to comments on the current document.
@@ -2425,4 +2436,14 @@ export declare class CommentElement {
2425
2436
  * To disable full screen in sidebar
2426
2437
  */
2427
2438
  private _disableFullScreenInSidebar;
2439
+
2440
+ /**
2441
+ * To set composer file attachments
2442
+ */
2443
+ private _setComposerFileAttachments;
2444
+
2445
+ /**
2446
+ * To set allowed file types
2447
+ */
2448
+ private _setAllowedFileTypes;
2428
2449
  }
@@ -108,6 +108,16 @@ export declare class NotificationElement {
108
108
  */
109
109
  closeNotificationsPanel: () => void;
110
110
 
111
+ /**
112
+ * To enable current document only
113
+ */
114
+ enableCurrentDocumentOnly: () => void;
115
+
116
+ /**
117
+ * To disable current document only
118
+ */
119
+ disableCurrentDocumentOnly: () => void;
120
+
111
121
  constructor();
112
122
 
113
123
  /**
@@ -214,4 +224,14 @@ export declare class NotificationElement {
214
224
  * To close notifications panel
215
225
  */
216
226
  private _closeNotificationsPanel;
227
+
228
+ /**
229
+ * To enable current document only
230
+ */
231
+ private _enableCurrentDocumentOnly;
232
+
233
+ /**
234
+ * To disable current document only
235
+ */
236
+ private _disableCurrentDocumentOnly;
217
237
  }
@@ -154,6 +154,16 @@ export declare class RecorderElement {
154
154
  */
155
155
  disablePictureInPicture: () => void;
156
156
 
157
+ /**
158
+ * To enable playback on preview click
159
+ */
160
+ enablePlaybackOnPreviewClick: () => void;
161
+
162
+ /**
163
+ * To disable playback on preview click
164
+ */
165
+ disablePlaybackOnPreviewClick: () => void;
166
+
157
167
  constructor();
158
168
 
159
169
  private _initRecording;
@@ -303,4 +313,14 @@ export declare class RecorderElement {
303
313
  * To disable picture in picture
304
314
  */
305
315
  private _disablePictureInPicture;
316
+
317
+ /**
318
+ * To enable playback on preview click
319
+ */
320
+ private _enablePlaybackOnPreviewClick;
321
+
322
+ /**
323
+ * To disable playback on preview click
324
+ */
325
+ private _disablePlaybackOnPreviewClick;
306
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.4-beta.1",
3
+ "version": "4.5.4-beta.3",
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": [