@veltdev/sdk 4.5.4-beta.1 → 4.5.4-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.
@@ -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
  }
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.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": [