@veltdev/types-dev 4.5.4-beta.1 → 4.5.4-beta.11

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;
@@ -1,5 +1,5 @@
1
1
  import { BaseMetadata } from "./base-metadata.data.model";
2
- export declare class Heartbeat {
2
+ export interface Heartbeat {
3
3
  id: string;
4
4
  createdTimestamp: number;
5
5
  userId: string;
@@ -11,11 +11,12 @@ export declare class LiveStateDataMap {
11
11
  */
12
12
  default?: {
13
13
  singleEditor?: SingleEditorLiveStateData;
14
- autoSyncState?: {
15
- current?: LiveStateData;
16
- history?: {
17
- [liveStateDataId: string]: LiveStateData;
18
- };
19
- };
14
+ autoSyncState?: LiveStateAutoSyncState;
15
+ };
16
+ }
17
+ export declare class LiveStateAutoSyncState {
18
+ current?: LiveStateData;
19
+ history?: {
20
+ [liveStateDataId: string]: LiveStateData;
20
21
  };
21
22
  }
@@ -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, PublishCommentAnnotationRequest } 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
  /**
@@ -1228,6 +1229,16 @@ export declare class CommentElement {
1228
1229
  */
1229
1230
  public disableFullScreenInSidebar: () => void;
1230
1231
 
1232
+ /**
1233
+ * To set composer file attachments
1234
+ */
1235
+ public setComposerFileAttachments: (data: UploadFileData) => void;
1236
+
1237
+ /**
1238
+ * To set allowed file types
1239
+ */
1240
+ public setAllowedFileTypes: (allowedFileTypes: string[]) => void;
1241
+
1231
1242
  constructor();
1232
1243
  /**
1233
1244
  * Subscribe to comments on the current document.
@@ -2435,4 +2446,14 @@ export declare class CommentElement {
2435
2446
  * To disable full screen in sidebar
2436
2447
  */
2437
2448
  private _disableFullScreenInSidebar;
2449
+
2450
+ /**
2451
+ * To set composer file attachments
2452
+ */
2453
+ private _setComposerFileAttachments;
2454
+
2455
+ /**
2456
+ * To set allowed file types
2457
+ */
2458
+ private _setAllowedFileTypes;
2438
2459
  }
@@ -147,6 +147,16 @@ export declare class LiveStateSyncElement {
147
147
  */
148
148
  updateUserPresence: (userPresence: LiveStateSingleEditorExternalUserPresence) => void;
149
149
 
150
+ /**
151
+ * To enable heartbeat
152
+ */
153
+ enableHeartbeat: () => void;
154
+
155
+ /**
156
+ * To disable heartbeat
157
+ */
158
+ disableHeartbeat: () => void;
159
+
150
160
  /**
151
161
  * Subscribe to live state events
152
162
  */
@@ -295,6 +305,16 @@ export declare class LiveStateSyncElement {
295
305
  */
296
306
  private _updateUserPresence;
297
307
 
308
+ /**
309
+ * To enable heartbeat
310
+ */
311
+ private _enableHeartbeat;
312
+
313
+ /**
314
+ * To disable heartbeat
315
+ */
316
+ private _disableHeartbeat;
317
+
298
318
  /**
299
319
  * Subscribe to live state events
300
320
  */
@@ -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/types-dev",
3
- "version": "4.5.4-beta.1",
3
+ "version": "4.5.4-beta.11",
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": [