@veltdev/types-dev 5.0.0-beta.31 → 5.0.0-beta.33

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.
@@ -184,6 +184,7 @@ export declare class CommentAnnotation {
184
184
  unsubscribedUsers?: CommentAnnotationUnsubscribedUsers;
185
185
  subscribedGroups?: CommentAnnotationSubscribedGroups;
186
186
  resolvedByUserId?: string | null;
187
+ resolvedByUser?: User | null;
187
188
  multiThreadAnnotationId?: string;
188
189
  isDraft?: boolean;
189
190
  sourceId?: string;
@@ -1,4 +1,4 @@
1
- import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
1
+ import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
2
2
  import { Attachment } from "./attachment.model";
3
3
  import { VeltButtonClickEvent } from "./button.data.model";
4
4
  import { AddAttachmentResponse } from "./comment-actions.data.model";
@@ -84,6 +84,8 @@ export type CommentEventTypesMap = {
84
84
  [CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
85
85
  [CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
86
86
  [CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
87
+ [CommentEventTypes.COMMENT_TOOL_CLICK]: CommentToolClickEvent;
88
+ [CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
87
89
  };
88
90
  export interface AddAttachmentEvent {
89
91
  annotationId: string;
@@ -285,3 +287,22 @@ export interface ComposerTextChangeEvent {
285
287
  text: string;
286
288
  metadata?: VeltEventMetadata;
287
289
  }
290
+ export interface AssignToConfig {
291
+ type: AssignToType;
292
+ }
293
+ export interface PageModeComposerConfig {
294
+ context?: {
295
+ [key: string]: any;
296
+ } | null;
297
+ targetElementId?: string | null;
298
+ }
299
+ export interface CommentToolClickEvent {
300
+ context: {
301
+ [key: string]: any;
302
+ } | null;
303
+ targetElementId?: string | null;
304
+ metadata?: VeltEventMetadata;
305
+ }
306
+ export interface SidebarButtonClickEvent {
307
+ metadata?: VeltEventMetadata;
308
+ }
@@ -1,11 +1,11 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
3
+ import { AssignToType, CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
4
4
  import { UploadFileData } from "../data/attachment.model";
5
5
  import { AutocompleteData } from "../data/autocomplete.data.model";
6
- import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, PublishCommentAnnotationRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
6
+ import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, ClearComposerRequest, CommentRequestQuery, CommentVisibilityConfig, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, PublishCommentAnnotationRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
7
7
  import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
8
- import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkEvent, PublishCommentAnnotationEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
8
+ import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkEvent, PageModeComposerConfig, PublishCommentAnnotationEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
9
9
  import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
10
10
  import { CommentContextProvider, TransformContext, UnreadCommentsCount } from "../data/comment-utils.data.model";
11
11
  import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
@@ -85,6 +85,39 @@ export declare class CommentElement {
85
85
  */
86
86
  toggleCommentSidebar: () => any;
87
87
 
88
+ /**
89
+ * To enable context in page mode composer feature
90
+ * When enabled, clicking comment tool will open sidebar with page mode composer and pass context
91
+ */
92
+ enableContextInPageModeComposer: () => void;
93
+
94
+ /**
95
+ * To disable context in page mode composer feature
96
+ */
97
+ disableContextInPageModeComposer: () => void;
98
+
99
+ /**
100
+ * To clear page mode composer context
101
+ */
102
+ clearPageModeComposerContext: () => void;
103
+
104
+ /**
105
+ * To set context in page mode composer
106
+ * @param config The page mode composer config containing context and targetElementId
107
+ */
108
+ setContextInPageModeComposer: (config: PageModeComposerConfig | null) => void;
109
+
110
+ /**
111
+ * To focus the page mode composer input
112
+ */
113
+ focusPageModeComposer: () => void;
114
+
115
+ /**
116
+ * To set assign to type for comment dialog
117
+ * @param config The assign to config containing type
118
+ */
119
+ setAssignToType: (config: AssignToConfig) => void;
120
+
88
121
  /**
89
122
  * To enable moderator mode
90
123
  */
@@ -1276,13 +1309,6 @@ export declare class CommentElement {
1276
1309
  */
1277
1310
  public disableScreenshot: () => void;
1278
1311
 
1279
- /**
1280
- * To programmatically submit a comment from a velt-comment-composer.
1281
- * Finds the composer within the element identified by referenceId and submits its content.
1282
- * @param referenceId The ID of the HTML element containing the velt-comment-composer
1283
- */
1284
- public submitComment: (referenceId: string) => void;
1285
-
1286
1312
  /**
1287
1313
  * To enable paginated contact list
1288
1314
  */
@@ -1293,6 +1319,26 @@ export declare class CommentElement {
1293
1319
  */
1294
1320
  public disablePaginatedContactList: () => void;
1295
1321
 
1322
+ /**
1323
+ * Programmatically trigger comment submission for a composer with the given targetComposerElementId
1324
+ * @param request SubmitCommentRequest containing targetComposerElementId
1325
+ */
1326
+ public submitComment: (request: SubmitCommentRequest) => void;
1327
+
1328
+ /**
1329
+ * Programmatically clear the composer state for the given targetComposerElementId
1330
+ * @param request ClearComposerRequest containing targetComposerElementId
1331
+ */
1332
+ public clearComposer: (request: ClearComposerRequest) => void;
1333
+
1334
+ /**
1335
+ * Get the current composer data for a given targetComposerElementId
1336
+ * Returns the same data as COMPOSER_TEXT_CHANGE event but as a one-time fetch
1337
+ * @param request GetComposerDataRequest containing targetComposerElementId
1338
+ * @returns The composer data or null if not found
1339
+ */
1340
+ public getComposerData: (request: GetComposerDataRequest) => ComposerTextChangeEvent | null;
1341
+
1296
1342
  constructor();
1297
1343
  /**
1298
1344
  * Subscribe to comments on the current document.
@@ -2560,9 +2606,53 @@ export declare class CommentElement {
2560
2606
  private _disablePaginatedContactList;
2561
2607
 
2562
2608
  /**
2563
- * To programmatically submit a comment from a velt-comment-composer.
2564
- * Finds the composer within the element identified by referenceId and submits its content.
2565
- * @param referenceId The ID of the HTML element containing the velt-comment-composer
2609
+ * Programmatically trigger comment submission for a composer with the given targetComposerElementId
2610
+ * @param request SubmitCommentRequest containing targetComposerElementId
2566
2611
  */
2567
2612
  private _submitComment;
2613
+
2614
+ /**
2615
+ * Programmatically clear the composer state for the given targetComposerElementId
2616
+ * @param request ClearComposerRequest containing targetComposerElementId
2617
+ */
2618
+ private _clearComposer;
2619
+
2620
+ /**
2621
+ * Get the current composer data for a given targetComposerElementId
2622
+ * Returns the same data as COMPOSER_TEXT_CHANGE event but as a one-time fetch
2623
+ * @param request GetComposerDataRequest containing targetComposerElementId
2624
+ * @returns The composer data or null if not found
2625
+ */
2626
+ private _getComposerData;
2627
+
2628
+ /**
2629
+ * To enable context in page mode composer feature
2630
+ */
2631
+ private _enableContextInPageModeComposer;
2632
+
2633
+ /**
2634
+ * To disable context in page mode composer feature
2635
+ */
2636
+ private _disableContextInPageModeComposer;
2637
+
2638
+ /**
2639
+ * To clear page mode composer context
2640
+ */
2641
+ private _clearPageModeComposerContext;
2642
+
2643
+ /**
2644
+ * To set context in page mode composer
2645
+ */
2646
+ private _setContextInPageModeComposer;
2647
+
2648
+ /**
2649
+ * To focus the page mode composer input
2650
+ */
2651
+ private _focusPageModeComposer;
2652
+
2653
+ /**
2654
+ * To set assign to type for comment dialog
2655
+ * @param type 'dropdown' | 'checkbox'
2656
+ */
2657
+ private _setAssignToType;
2568
2658
  }
@@ -68,6 +68,16 @@ export declare class NotificationElement {
68
68
  */
69
69
  getSettings: () => Observable<NotificationSettingsConfig | null>;
70
70
 
71
+ /**
72
+ * To enable settings config by organization
73
+ */
74
+ enableSettingsConfigByOrganization: () => void;
75
+
76
+ /**
77
+ * To disable settings config by organization
78
+ */
79
+ disableSettingsConfigByOrganization: () => void;
80
+
71
81
  /**
72
82
  * To mute all notifications
73
83
  */
@@ -200,6 +210,16 @@ export declare class NotificationElement {
200
210
  */
201
211
  private _disableSettings;
202
212
 
213
+ /**
214
+ * To enable settings config by organization
215
+ */
216
+ private _enableSettingsConfigByOrganization;
217
+
218
+ /**
219
+ * To disable settings config by organization
220
+ */
221
+ private _disableSettingsConfigByOrganization;
222
+
203
223
  /**
204
224
  * To enable self notifications
205
225
  */
@@ -61,6 +61,8 @@ export declare const CommentEventTypes: {
61
61
  readonly LINK_CLICKED: "linkClicked";
62
62
  readonly COMMENT_PIN_CLICKED: "commentPinClicked";
63
63
  readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
64
+ readonly COMMENT_TOOL_CLICK: "commentToolClick";
65
+ readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
64
66
  };
65
67
  export declare const RecorderEventTypes: {
66
68
  readonly TRANSCRIPTION_DONE: "transcriptionDone";
@@ -189,6 +191,7 @@ export declare enum AnalyticsFeatures {
189
191
  COMMENT_SIDEBAR = "commentSidebar"
190
192
  }
191
193
  export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
194
+ export type AssignToType = 'dropdown' | 'checkbox';
192
195
  export declare enum DeviceType {
193
196
  DESKTOP = "Desktop",
194
197
  MOBILE = "Mobile",
@@ -281,10 +284,10 @@ export type OverlayOriginY = 'top' | 'center' | 'bottom';
281
284
  export type OverlayOriginX = 'start' | 'center' | 'end';
282
285
  export type SubtitlesMode = 'floating' | 'embed';
283
286
  export type RecorderVariant = 'default' | 'embed';
284
- export type ReactionPinType = 'timeline' | 'comment';
287
+ export type ReactionPinType = 'timeline' | 'comment' | 'standalone';
285
288
  export type SidebarPosition = 'left' | 'right';
286
289
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
287
- export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved' | 'open' | 'reset' | null;
290
+ export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved' | 'open' | 'assignedToMe' | 'reset' | null;
288
291
  export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
289
292
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
290
293
  export type NotificationPanelMode = 'popover' | 'sidebar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "5.0.0-beta.31",
3
+ "version": "5.0.0-beta.33",
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": [