@veltdev/react 4.7.0 → 4.7.1-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.
@@ -1,4 +1,4 @@
1
- import { AutocompleteData, CustomAnnotationDropdownData, ReactionMap } from '@veltdev/types';
1
+ import { AutocompleteData, CustomAnnotationDropdownData, ReactionMap, AutoCompleteScrollConfig } from '@veltdev/types';
2
2
  import React from 'react';
3
3
  export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
4
4
  streamViewContainerId?: string;
@@ -153,6 +153,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
153
153
  forceCloseAllOnEsc?: boolean;
154
154
  screenshot?: boolean;
155
155
  paginatedContactList?: boolean;
156
+ autoCompleteScrollConfig?: AutoCompleteScrollConfig;
156
157
  }
157
158
  declare const SnippylyComments: React.FC<IVeltCommentsProps>;
158
159
  export default SnippylyComments;
@@ -1,4 +1,4 @@
1
- import { CommentSidebarFilterConfig, CommentSidebarFilters, CommentSidebarGroupConfig } from '@veltdev/types';
1
+ import { CommentSidebarFilterConfig, CommentSidebarFilters, CommentSidebarGroupConfig, SidebarFilterCriteria, SortBy, SortOrder } from '@veltdev/types';
2
2
  import React from 'react';
3
3
  export interface IVeltCommentsSidebarProps {
4
4
  embedMode?: boolean;
@@ -53,6 +53,13 @@ export interface IVeltCommentsSidebarProps {
53
53
  context?: {
54
54
  [key: string]: any;
55
55
  };
56
+ defaultMinimalFilter?: SidebarFilterCriteria;
57
+ sortOrder?: SortOrder;
58
+ sortBy?: SortBy;
59
+ forceClose?: boolean;
60
+ commentPlaceholder?: string;
61
+ replyPlaceholder?: string;
62
+ pageModePlaceholder?: string;
56
63
  }
57
64
  declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
58
65
  export default SnippylyCommentsSidebar;
@@ -35,6 +35,9 @@ export interface IVeltInlineCommentsSectionProps extends React.DetailedHTMLProps
35
35
  locationId?: string;
36
36
  documentId?: string;
37
37
  folderId?: string;
38
+ commentPlaceholder?: string;
39
+ replyPlaceholder?: string;
40
+ composerPlaceholder?: string;
38
41
  }
39
42
  declare const VeltInlineCommentsSection: React.FC<IVeltInlineCommentsSectionProps>;
40
43
  export default VeltInlineCommentsSection;
@@ -20,6 +20,7 @@ export interface IVeltNotificationsPanelProps {
20
20
  panelOpenMode?: NotificationPanelMode;
21
21
  settings?: boolean;
22
22
  selfNotifications?: boolean;
23
+ pageSize?: number;
23
24
  }
24
25
  declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
25
26
  export default VeltNotificationsPanel;
@@ -23,6 +23,7 @@ export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<Rea
23
23
  settings?: boolean;
24
24
  selfNotifications?: boolean;
25
25
  considerAllNotifications?: boolean;
26
+ pageSize?: number;
26
27
  }
27
28
  declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
28
29
  export default VeltNotificationsTool;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "4.7.0";
2
+ export declare const VELT_SDK_VERSION = "4.7.1-beta.2";
3
3
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
4
4
  export declare const VELT_TAB_ID = "veltTabId";
5
5
  export declare const INTEGRITY_MAP: Record<string, string>;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React$1 from 'react';
3
- import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap } from '@veltdev/types';
3
+ import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -209,6 +209,7 @@ interface IVeltCommentsProps extends React$1.DetailedHTMLProps<React$1.HTMLAttri
209
209
  forceCloseAllOnEsc?: boolean;
210
210
  screenshot?: boolean;
211
211
  paginatedContactList?: boolean;
212
+ autoCompleteScrollConfig?: AutoCompleteScrollConfig;
212
213
  }
213
214
  declare const SnippylyComments: React$1.FC<IVeltCommentsProps>;
214
215
 
@@ -265,6 +266,13 @@ interface IVeltCommentsSidebarProps {
265
266
  context?: {
266
267
  [key: string]: any;
267
268
  };
269
+ defaultMinimalFilter?: SidebarFilterCriteria;
270
+ sortOrder?: SortOrder;
271
+ sortBy?: SortBy;
272
+ forceClose?: boolean;
273
+ commentPlaceholder?: string;
274
+ replyPlaceholder?: string;
275
+ pageModePlaceholder?: string;
268
276
  }
269
277
  declare const SnippylyCommentsSidebar: React$1.FC<IVeltCommentsSidebarProps>;
270
278
 
@@ -610,6 +618,7 @@ interface IVeltNotificationsToolProps extends React$1.DetailedHTMLProps<React$1.
610
618
  settings?: boolean;
611
619
  selfNotifications?: boolean;
612
620
  considerAllNotifications?: boolean;
621
+ pageSize?: number;
613
622
  }
614
623
  declare const VeltNotificationsTool: React$1.FC<IVeltNotificationsToolProps>;
615
624
 
@@ -633,6 +642,7 @@ interface IVeltNotificationsPanelProps {
633
642
  panelOpenMode?: NotificationPanelMode;
634
643
  settings?: boolean;
635
644
  selfNotifications?: boolean;
645
+ pageSize?: number;
636
646
  }
637
647
  declare const VeltNotificationsPanel: React$1.FC<IVeltNotificationsPanelProps>;
638
648
 
@@ -708,6 +718,9 @@ interface IVeltInlineCommentsSectionProps extends React$1.DetailedHTMLProps<Reac
708
718
  locationId?: string;
709
719
  documentId?: string;
710
720
  folderId?: string;
721
+ commentPlaceholder?: string;
722
+ replyPlaceholder?: string;
723
+ composerPlaceholder?: string;
711
724
  }
712
725
  declare const VeltInlineCommentsSection: React$1.FC<IVeltInlineCommentsSectionProps>;
713
726
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "4.7.0",
3
+ "version": "4.7.1-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": [