@veltdev/sdk 5.0.2-beta.3 → 5.0.2-beta.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.
@@ -22,17 +22,17 @@ export declare class AutocompleteItem {
22
22
  groupId?: string;
23
23
  }
24
24
  export declare class AutocompleteReplaceData {
25
- text: string;
25
+ text?: string;
26
26
  custom: AutocompleteItem;
27
27
  }
28
28
  export declare class AutocompleteGroupReplaceData {
29
- text: string;
29
+ text?: string;
30
30
  groupId: string;
31
31
  clientGroupId: string;
32
32
  group?: OrganizationUserGroup;
33
33
  }
34
34
  export declare class AutocompleteUserContactReplaceData {
35
- text: string;
35
+ text?: string;
36
36
  userId: string;
37
37
  contact?: UserContact;
38
38
  }
@@ -141,6 +141,8 @@ export interface AddCommentRequest {
141
141
  assignedTo?: User;
142
142
  assigned?: boolean;
143
143
  options?: RequestOptions;
144
+ /** Optional visibility configuration for the comment */
145
+ visibility?: CommentVisibilityConfig;
144
146
  }
145
147
  export interface UpdateCommentRequest {
146
148
  annotationId: string;
@@ -1,4 +1,4 @@
1
- import { CommentAccessMode } from "../../utils/enums";
1
+ import { CommentAccessMode, CommentVisibilityOptionType } from "../../utils/enums";
2
2
  import { BaseMetadata } from "./base-metadata.data.model";
3
3
  import { CommentVisibilityType } from "./comment-actions.data.model";
4
4
  import { Comment } from "./comment.data.model";
@@ -241,7 +241,8 @@ export declare class CommentSelectionChangeData {
241
241
  }
242
242
  export declare class VisibilityOptionClickedData {
243
243
  annotationId: string;
244
- visibility: 'public' | 'private';
244
+ visibility: CommentVisibilityOptionType;
245
+ users?: any[];
245
246
  }
246
247
  export declare class InlineCommentSectionConfig {
247
248
  id: string;
@@ -1,4 +1,4 @@
1
- import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
1
+ import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus, CommentVisibilityOptionType } 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";
@@ -188,6 +188,7 @@ export interface CommentSavedEvent {
188
188
  }
189
189
  export interface CommentSaveTriggeredEvent {
190
190
  annotationId: string;
191
+ commentAnnotation: CommentAnnotation;
191
192
  metadata: VeltEventMetadata;
192
193
  }
193
194
  export interface UpdateCommentEvent {
@@ -332,6 +333,7 @@ export interface AttachmentDownloadClickedEvent {
332
333
  export interface VisibilityOptionClickedEvent {
333
334
  annotationId: string;
334
335
  commentAnnotation: CommentAnnotation;
335
- visibility: 'public' | 'private';
336
+ visibility: CommentVisibilityOptionType;
337
+ users?: any[];
336
338
  metadata?: VeltEventMetadata;
337
339
  }
@@ -5,12 +5,18 @@ export interface AccessRequestEvent {
5
5
  editor?: User;
6
6
  timestamp?: number;
7
7
  status?: string;
8
+ totalUsers?: number;
9
+ presenceSnippylyUserIds?: string[];
10
+ presenceClientUserIds?: string[];
8
11
  }
9
12
  export interface SEMEvent {
10
13
  viewer?: User;
11
14
  editor?: User;
12
15
  timestamp?: number;
13
16
  role?: string;
17
+ totalUsers?: number;
18
+ presenceSnippylyUserIds?: string[];
19
+ presenceClientUserIds?: string[];
14
20
  }
15
21
  export type LiveStateEventTypesMap = {
16
22
  [LiveStateSyncEventTypes.ACCESS_REQUESTED]: AccessRequestEvent;
@@ -291,14 +291,14 @@ export declare class CommentElement {
291
291
  public disableStatus: () => any;
292
292
 
293
293
  /**
294
- * To enable visibility option dropdown on comments
294
+ * To enable visibility options on comments
295
295
  */
296
- public enableVisibilityOptionDropdown: () => any;
296
+ public enableVisibilityOptions: () => any;
297
297
 
298
298
  /**
299
- * To disable visibility option dropdown on comments
299
+ * To disable visibility options on comments
300
300
  */
301
- public disableVisibilityOptionDropdown: () => any;
301
+ public disableVisibilityOptions: () => any;
302
302
 
303
303
  /**
304
304
  * To enable feature to show resolve button
@@ -1626,14 +1626,14 @@ export declare class CommentElement {
1626
1626
  private _disableStatus;
1627
1627
 
1628
1628
  /**
1629
- * To enable visibility option dropdown on comments
1629
+ * To enable visibility options on comments
1630
1630
  */
1631
- private _enableVisibilityOptionDropdown;
1631
+ private _enableVisibilityOptions;
1632
1632
 
1633
1633
  /**
1634
- * To disable visibility option dropdown on comments
1634
+ * To disable visibility options on comments
1635
1635
  */
1636
- private _disableVisibilityOptionDropdown;
1636
+ private _disableVisibilityOptions;
1637
1637
 
1638
1638
  /**
1639
1639
  * To enable feature to show resolve button
@@ -244,7 +244,21 @@ export declare class Constants {
244
244
  VELT_NOTIFICATIONS_HISTORY_PANEL: string;
245
245
  VELT_WIREFRAME: string;
246
246
  VELT_AUTOCOMPLETE: string;
247
+ VELT_AUTOCOMPLETE_PANEL: string;
248
+ VELT_AUTOCOMPLETE_OPTION: string;
249
+ VELT_AUTOCOMPLETE_OPTION_ICON: string;
250
+ VELT_AUTOCOMPLETE_OPTION_NAME: string;
251
+ VELT_AUTOCOMPLETE_OPTION_DESCRIPTION: string;
252
+ VELT_AUTOCOMPLETE_OPTION_ERROR_ICON: string;
253
+ VELT_AUTOCOMPLETE_GROUP_OPTION: string;
254
+ VELT_AUTOCOMPLETE_TOOL: string;
255
+ VELT_AUTOCOMPLETE_EMPTY: string;
247
256
  VELT_AUTOCOMPLETE_CHIP: string;
257
+ VELT_AUTOCOMPLETE_CHIP_TOOLTIP: string;
258
+ VELT_AUTOCOMPLETE_CHIP_TOOLTIP_ICON: string;
259
+ VELT_AUTOCOMPLETE_CHIP_TOOLTIP_NAME: string;
260
+ VELT_AUTOCOMPLETE_CHIP_TOOLTIP_DESCRIPTION: string;
261
+ VELT_AUTOCOMPLETE_CONTEXT_WRAPPER: string;
248
262
  VELT_COMMENT_COMPOSER: string;
249
263
  VELT_SKELETON_LOADER: string;
250
264
  VELT_SHADOW_DOM_INTERNAL: string;
@@ -313,3 +313,13 @@ export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
313
313
  * Type for notification settings layout
314
314
  */
315
315
  export type NotificationSettingsLayout = 'accordion' | 'dropdown';
316
+ /**
317
+ * Enum for comment visibility options in the visibility banner dropdown
318
+ */
319
+ export declare enum CommentVisibilityOption {
320
+ RESTRICTED_SELF = "restrictedSelf",
321
+ RESTRICTED_SELECTED_PEOPLE = "restrictedSelectedPeople",
322
+ ORGANIZATION_PRIVATE = "organizationPrivate",
323
+ PUBLIC = "public"
324
+ }
325
+ export type CommentVisibilityOptionType = `${CommentVisibilityOption}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "5.0.2-beta.3",
3
+ "version": "5.0.2-beta.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": [