@veltdev/react 4.5.0-beta.7 → 4.5.0-beta.9

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.
Files changed (38) hide show
  1. package/cjs/index.js +76 -1
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +5 -0
  4. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent.d.ts +8 -0
  5. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/index.d.ts +1 -0
  6. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger.d.ts +10 -0
  7. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel.d.ts +8 -0
  8. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/index.d.ts +1 -0
  9. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/index.d.ts +1 -0
  10. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe.d.ts +12 -0
  11. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/index.d.ts +1 -0
  12. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
  13. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument.d.ts +16 -0
  14. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/index.d.ts +1 -0
  15. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  16. package/cjs/types/constants.d.ts +1 -1
  17. package/cjs/types/hooks/PresenceElement.d.ts +2 -1
  18. package/cjs/types/hooks/index.d.ts +1 -1
  19. package/esm/index.js +76 -2
  20. package/esm/index.js.map +1 -1
  21. package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +5 -0
  22. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent.d.ts +8 -0
  23. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/index.d.ts +1 -0
  24. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger.d.ts +10 -0
  25. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel.d.ts +8 -0
  26. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/index.d.ts +1 -0
  27. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/index.d.ts +1 -0
  28. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe.d.ts +12 -0
  29. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/index.d.ts +1 -0
  30. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
  31. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument.d.ts +16 -0
  32. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/index.d.ts +1 -0
  33. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  34. package/esm/types/constants.d.ts +1 -1
  35. package/esm/types/hooks/PresenceElement.d.ts +2 -1
  36. package/esm/types/hooks/index.d.ts +1 -1
  37. package/index.d.ts +42 -2
  38. package/package.json +1 -1
@@ -8,6 +8,7 @@ declare class FilterTypeConfig {
8
8
  }
9
9
  declare class CommentSidebarFilterConfig {
10
10
  location?: FilterTypeConfig;
11
+ document?: FilterTypeConfig;
11
12
  people?: FilterTypeConfig;
12
13
  tagged?: FilterTypeConfig;
13
14
  assigned?: FilterTypeConfig;
@@ -22,6 +23,10 @@ declare class CommentSidebarGroupConfig {
22
23
  }
23
24
  declare class CommentSidebarFilters {
24
25
  location?: Location[];
26
+ document?: {
27
+ id?: string;
28
+ documentName?: string;
29
+ }[];
25
30
  people?: {
26
31
  userId?: string;
27
32
  email?: string;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../../constants';
3
+ export interface IVeltCommentsSidebarDocumentFilterDropdownContentProps extends IVeltWireframeCommonProps {
4
+ }
5
+ export interface IVeltCommentsSidebarDocumentFilterDropdownContent extends React.FC<IVeltCommentsSidebarDocumentFilterDropdownContentProps> {
6
+ }
7
+ declare const VeltCommentsSidebarDocumentFilterDropdownContent: IVeltCommentsSidebarDocumentFilterDropdownContent;
8
+ export default VeltCommentsSidebarDocumentFilterDropdownContent;
@@ -0,0 +1 @@
1
+ export { default, IVeltCommentsSidebarDocumentFilterDropdownContentProps } from './VeltCommentsSidebarDocumentFilterDropdownContent';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IVeltCommentsSidebarDocumentFilterDropdownTriggerLabel } from './VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel';
3
+ import { IVeltWireframeCommonProps } from '../../../../constants';
4
+ export interface IVeltCommentsSidebarDocumentFilterDropdownTriggerProps extends IVeltWireframeCommonProps {
5
+ }
6
+ export interface IVeltCommentsSidebarDocumentFilterDropdownTrigger extends React.FC<IVeltCommentsSidebarDocumentFilterDropdownTriggerProps> {
7
+ Label: IVeltCommentsSidebarDocumentFilterDropdownTriggerLabel;
8
+ }
9
+ declare const VeltCommentsSidebarDocumentFilterDropdownTrigger: IVeltCommentsSidebarDocumentFilterDropdownTrigger;
10
+ export default VeltCommentsSidebarDocumentFilterDropdownTrigger;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../../../constants';
3
+ export interface IVeltCommentsSidebarDocumentFilterDropdownTriggerLabelProps extends IVeltWireframeCommonProps {
4
+ }
5
+ export interface IVeltCommentsSidebarDocumentFilterDropdownTriggerLabel extends React.FC<IVeltCommentsSidebarDocumentFilterDropdownTriggerLabelProps> {
6
+ }
7
+ declare const VeltCommentsSidebarDocumentFilterDropdownTriggerLabel: IVeltCommentsSidebarDocumentFilterDropdownTriggerLabel;
8
+ export default VeltCommentsSidebarDocumentFilterDropdownTriggerLabel;
@@ -0,0 +1 @@
1
+ export { default, IVeltCommentsSidebarDocumentFilterDropdownTriggerLabelProps } from './VeltCommentsSidebarDocumentFilterDropdownTriggerLabel';
@@ -0,0 +1 @@
1
+ export { default, IVeltCommentsSidebarDocumentFilterDropdownTrigger } from './VeltCommentsSidebarDocumentFilterDropdownTrigger';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../constants';
3
+ import { IVeltCommentsSidebarDocumentFilterDropdownContent } from './VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent';
4
+ import { IVeltCommentsSidebarDocumentFilterDropdownTrigger } from './VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger';
5
+ export interface IVeltCommentsSidebarDocumentFilterDropdownWireframeProps extends IVeltWireframeCommonProps {
6
+ }
7
+ export interface IVeltCommentsSidebarDocumentFilterDropdownWireframe extends React.FC<IVeltCommentsSidebarDocumentFilterDropdownWireframeProps> {
8
+ Trigger: IVeltCommentsSidebarDocumentFilterDropdownTrigger;
9
+ Content: IVeltCommentsSidebarDocumentFilterDropdownContent;
10
+ }
11
+ declare const VeltCommentsSidebarDocumentFilterDropdownWireframe: IVeltCommentsSidebarDocumentFilterDropdownWireframe;
12
+ export default VeltCommentsSidebarDocumentFilterDropdownWireframe;
@@ -0,0 +1 @@
1
+ export { default, IVeltCommentsSidebarDocumentFilterDropdownWireframe } from './VeltCommentsSidebarDocumentFilterDropdownWireframe';
@@ -16,6 +16,7 @@ import { IVeltCommentsSidebarFilterSearch } from './VeltCommentsSidebarFilterSea
16
16
  import { IVeltCommentsSidebarFilterResetButtonProps } from './VeltCommentsSidebarFilterResetButton/VeltCommentsSidebarFilterResetButton';
17
17
  import { IVeltCommentsSidebarFilterAssigned } from './VeltCommentsSidebarFilterAssigned/VeltCommentsSidebarFilterAssigned';
18
18
  import { IVeltCommentsSidebarFilterTagged } from './VeltCommentsSidebarFilterTagged/VeltCommentsSidebarFilterTagged';
19
+ import { IVeltCommentsSidebarFilterDocument } from './VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument';
19
20
  export interface IVeltCommentsSidebarFilterProps extends IVeltWireframeCommonProps {
20
21
  }
21
22
  export interface IVeltCommentsSidebarFilter extends React.FC<IVeltCommentsSidebarFilterProps> {
@@ -35,6 +36,7 @@ export interface IVeltCommentsSidebarFilter extends React.FC<IVeltCommentsSideba
35
36
  Status: IVeltCommentsSidebarFilterStatus;
36
37
  ResetButton: React.FC<IVeltCommentsSidebarFilterResetButtonProps>;
37
38
  Search: IVeltCommentsSidebarFilterSearch;
39
+ Document: IVeltCommentsSidebarFilterDocument;
38
40
  }
39
41
  declare const VeltCommentsSidebarFilter: IVeltCommentsSidebarFilter;
40
42
  export default VeltCommentsSidebarFilter;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../../constants';
3
+ import { IVeltCommentsSidebarFilterItem } from '../VeltCommentsSidebarFilterItem/VeltCommentsSidebarFilterItem';
4
+ import { IVeltCommentsSidebarFilterNameProps } from '../VeltCommentsSidebarFilterName/VeltCommentsSidebarFilterName';
5
+ import { IVeltCommentsSidebarFilterViewAllProps } from '../VeltCommentsSidebarFilterViewAll/VeltCommentsSidebarFilterViewAll';
6
+ import { IVeltCommentsSidebarFilterSearch } from '../VeltCommentsSidebarFilterSearch/VeltCommentsSidebarFilterSearch';
7
+ export interface IVeltCommentsSidebarFilterDocumentProps extends IVeltWireframeCommonProps {
8
+ }
9
+ export interface IVeltCommentsSidebarFilterDocument extends React.FC<IVeltCommentsSidebarFilterDocumentProps> {
10
+ Name: React.FC<IVeltCommentsSidebarFilterNameProps>;
11
+ Item: IVeltCommentsSidebarFilterItem;
12
+ ViewAll: React.FC<IVeltCommentsSidebarFilterViewAllProps>;
13
+ Search: IVeltCommentsSidebarFilterSearch;
14
+ }
15
+ declare const VeltCommentsSidebarFilterDocument: IVeltCommentsSidebarFilterDocument;
16
+ export default VeltCommentsSidebarFilterDocument;
@@ -0,0 +1 @@
1
+ export { default, IVeltCommentsSidebarFilterDocument } from './VeltCommentsSidebarFilterDocument';
@@ -7,6 +7,7 @@ import { IVeltCommentsSidebarFilterButtonProps } from './VeltCommentsSidebarFilt
7
7
  import { IVeltCommentsSidebarHeaderProps } from './VeltCommentsSidebarHeader/VeltCommentsSidebarHeader';
8
8
  import { IVeltCommentsSidebarList } from './VeltCommentsSidebarList/VeltCommentsSidebarList';
9
9
  import { IVeltCommentsSidebarLocationFilterDropdown } from './VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdown';
10
+ import { IVeltCommentsSidebarDocumentFilterDropdownWireframe } from './VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe';
10
11
  import { IVeltCommentsSidebarMinimalActionsDropdownWireframe } from './VeltCommentsSidebarMinimalActionsDropdownWireframe/VeltCommentsSidebarMinimalActionsDropdownWireframe';
11
12
  import { IVeltCommentsSidebarMinimalFilterDropdown } from './VeltCommentsSidebarMinimalFilterDropdown/VeltCommentsSidebarMinimalFilterDropdown';
12
13
  import { IVeltCommentsSidebarPageModeComposerProps } from './VeltCommentsSidebarPageModeComposer/VeltCommentsSidebarPageModeComposer';
@@ -33,6 +34,7 @@ declare const VeltCommentsSidebarWireframe: React.FC<IVeltCommentsSidebarWirefra
33
34
  Panel: React.FC<IVeltCommentsSidebarPanelProps>;
34
35
  MinimalFilterDropdown: IVeltCommentsSidebarMinimalFilterDropdown;
35
36
  LocationFilterDropdown: IVeltCommentsSidebarLocationFilterDropdown;
37
+ DocumentFilterDropdown: IVeltCommentsSidebarDocumentFilterDropdownWireframe;
36
38
  MinimalActionsDropdown: IVeltCommentsSidebarMinimalActionsDropdownWireframe;
37
39
  ResetFilterButton: React.FC<IVeltCommentsSidebarResetFilterButtonWireframeProps>;
38
40
  ActionButton: React.FC<IVeltCommentsSidebarActionButtonProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "4.5.0-beta.7";
2
+ export declare const VELT_SDK_VERSION = "4.5.0-beta.9";
3
3
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
4
4
  export declare const VELT_TAB_ID = "veltTabId";
5
5
  export interface IVeltWireframeCommonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
@@ -1,3 +1,4 @@
1
- import { PresenceElement, PresenceUser } from "@veltdev/types";
1
+ import { GetPresenceDataResponse, PresenceElement, PresenceRequestQuery, PresenceUser } from "@veltdev/types";
2
2
  export declare function usePresenceUtils(): PresenceElement | undefined;
3
3
  export declare function usePresenceUsers(): PresenceUser[] | null;
4
+ export declare function usePresenceData(query?: PresenceRequestQuery): GetPresenceDataResponse;
@@ -6,7 +6,7 @@ export { useCursorUtils, useCursorUsers, } from './CursorElement';
6
6
  export { useHuddleUtils, } from './HuddleElement';
7
7
  export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessTimer, useEditorAccessRequestHandler, useServerConnectionStateChangeHandler, useLiveState, } from './LiveStateSyncElement';
8
8
  export { useLiveStateSyncEventCallback, } from './LiveStateSyncActions';
9
- export { usePresenceUtils, usePresenceUsers, } from './PresenceElement';
9
+ export { usePresenceUtils, usePresenceUsers, usePresenceData, } from './PresenceElement';
10
10
  export { usePresenceEventCallback, } from './PresenceActions';
11
11
  export { useRecorderUtils, useRecorderAddHandler, useRecordingDataByRecorderId, useRecordings, } from './RecorderElement';
12
12
  export { useRecorderEventCallback, } from './RecorderActions';
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, Velt, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, 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, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse } from '@veltdev/types';
3
+ import { Config, UserDataProvider, VeltDataProvider, Velt, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, 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, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -191,6 +191,7 @@ declare class FilterTypeConfig$2 {
191
191
  }
192
192
  declare class CommentSidebarFilterConfig$2 {
193
193
  location?: FilterTypeConfig$2;
194
+ document?: FilterTypeConfig$2;
194
195
  people?: FilterTypeConfig$2;
195
196
  tagged?: FilterTypeConfig$2;
196
197
  assigned?: FilterTypeConfig$2;
@@ -205,6 +206,10 @@ declare class CommentSidebarGroupConfig$2 {
205
206
  }
206
207
  declare class CommentSidebarFilters$2 {
207
208
  location?: Location[];
209
+ document?: {
210
+ id?: string;
211
+ documentName?: string;
212
+ }[];
208
213
  people?: {
209
214
  userId?: string;
210
215
  email?: string;
@@ -1571,6 +1576,15 @@ interface IVeltCommentsSidebarFilterTagged extends React$1.FC<IVeltCommentsSideb
1571
1576
  Search: IVeltCommentsSidebarFilterSearch;
1572
1577
  }
1573
1578
 
1579
+ interface IVeltCommentsSidebarFilterDocumentProps extends IVeltWireframeCommonProps {
1580
+ }
1581
+ interface IVeltCommentsSidebarFilterDocument extends React$1.FC<IVeltCommentsSidebarFilterDocumentProps> {
1582
+ Name: React$1.FC<IVeltCommentsSidebarFilterNameProps>;
1583
+ Item: IVeltCommentsSidebarFilterItem;
1584
+ ViewAll: React$1.FC<IVeltCommentsSidebarFilterViewAllProps>;
1585
+ Search: IVeltCommentsSidebarFilterSearch;
1586
+ }
1587
+
1574
1588
  interface IVeltCommentsSidebarFilterProps extends IVeltWireframeCommonProps {
1575
1589
  }
1576
1590
  interface IVeltCommentsSidebarFilter extends React$1.FC<IVeltCommentsSidebarFilterProps> {
@@ -1590,6 +1604,7 @@ interface IVeltCommentsSidebarFilter extends React$1.FC<IVeltCommentsSidebarFilt
1590
1604
  Status: IVeltCommentsSidebarFilterStatus;
1591
1605
  ResetButton: React$1.FC<IVeltCommentsSidebarFilterResetButtonProps>;
1592
1606
  Search: IVeltCommentsSidebarFilterSearch;
1607
+ Document: IVeltCommentsSidebarFilterDocument;
1593
1608
  }
1594
1609
 
1595
1610
  interface IVeltCommentsSidebarFilterButtonProps extends IVeltWireframeCommonProps {
@@ -1650,6 +1665,29 @@ interface IVeltCommentsSidebarLocationFilterDropdown extends React$1.FC<IVeltCom
1650
1665
  Content: React$1.FC<IVeltCommentsSidebarLocationFilterDropdownContentProps>;
1651
1666
  }
1652
1667
 
1668
+ interface IVeltCommentsSidebarDocumentFilterDropdownContentProps extends IVeltWireframeCommonProps {
1669
+ }
1670
+ interface IVeltCommentsSidebarDocumentFilterDropdownContent extends React$1.FC<IVeltCommentsSidebarDocumentFilterDropdownContentProps> {
1671
+ }
1672
+
1673
+ interface IVeltCommentsSidebarDocumentFilterDropdownTriggerLabelProps extends IVeltWireframeCommonProps {
1674
+ }
1675
+ interface IVeltCommentsSidebarDocumentFilterDropdownTriggerLabel extends React$1.FC<IVeltCommentsSidebarDocumentFilterDropdownTriggerLabelProps> {
1676
+ }
1677
+
1678
+ interface IVeltCommentsSidebarDocumentFilterDropdownTriggerProps extends IVeltWireframeCommonProps {
1679
+ }
1680
+ interface IVeltCommentsSidebarDocumentFilterDropdownTrigger extends React$1.FC<IVeltCommentsSidebarDocumentFilterDropdownTriggerProps> {
1681
+ Label: IVeltCommentsSidebarDocumentFilterDropdownTriggerLabel;
1682
+ }
1683
+
1684
+ interface IVeltCommentsSidebarDocumentFilterDropdownWireframeProps extends IVeltWireframeCommonProps {
1685
+ }
1686
+ interface IVeltCommentsSidebarDocumentFilterDropdownWireframe extends React$1.FC<IVeltCommentsSidebarDocumentFilterDropdownWireframeProps> {
1687
+ Trigger: IVeltCommentsSidebarDocumentFilterDropdownTrigger;
1688
+ Content: IVeltCommentsSidebarDocumentFilterDropdownContent;
1689
+ }
1690
+
1653
1691
  interface IVeltCommentsSidebarMinimalActionsDropdownContentMarkAllReadWireframeProps extends IVeltWireframeCommonProps {
1654
1692
  }
1655
1693
  interface IVeltCommentsSidebarMinimalActionsDropdownContentMarkAllReadWireframe extends React$1.FC<IVeltCommentsSidebarMinimalActionsDropdownContentMarkAllReadWireframeProps> {
@@ -1850,6 +1888,7 @@ declare const VeltCommentsSidebarWireframe: React$1.FC<IVeltCommentsSidebarWiref
1850
1888
  Panel: React$1.FC<IVeltCommentsSidebarPanelProps>;
1851
1889
  MinimalFilterDropdown: IVeltCommentsSidebarMinimalFilterDropdown;
1852
1890
  LocationFilterDropdown: IVeltCommentsSidebarLocationFilterDropdown;
1891
+ DocumentFilterDropdown: IVeltCommentsSidebarDocumentFilterDropdownWireframe;
1853
1892
  MinimalActionsDropdown: IVeltCommentsSidebarMinimalActionsDropdownWireframe;
1854
1893
  ResetFilterButton: React$1.FC<IVeltCommentsSidebarResetFilterButtonWireframeProps>;
1855
1894
  ActionButton: React$1.FC<IVeltCommentsSidebarActionButtonProps>;
@@ -3896,6 +3935,7 @@ declare function useLiveStateSyncEventCallback<T extends keyof LiveStateEventTyp
3896
3935
 
3897
3936
  declare function usePresenceUtils(): PresenceElement | undefined;
3898
3937
  declare function usePresenceUsers(): PresenceUser[] | null;
3938
+ declare function usePresenceData(query?: PresenceRequestQuery): GetPresenceDataResponse;
3899
3939
 
3900
3940
  declare function usePresenceEventCallback<T extends keyof PresenceEventTypesMap>(action: T): PresenceEventTypesMap[T];
3901
3941
 
@@ -3952,4 +3992,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
3952
3992
  updateAllowAction: (newAllowAction?: ((action: any) => boolean) | undefined) => void;
3953
3993
  };
3954
3994
 
3955
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteGroupOptionWireframe, VeltAutocompleteOptionWireframe, VeltButtonWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerExpandedWireframe, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSingleEditorModePanel, VeltSingleEditorModePanelWireframe, VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoEditorPlayerWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAssignUser, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentAnnotationsCount, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentEventCallback, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactList, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetCommentAnnotations, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncEventCallback, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceEventCallback, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderEventCallback, useRecorderUtils, useRecordingDataByRecorderId, useRecordings, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetDocuments, useSetLiveStateData, useSetLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsetDocuments, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltEventCallback, useVeltInitState, useViewsUtils };
3995
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteGroupOptionWireframe, VeltAutocompleteOptionWireframe, VeltButtonWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerExpandedWireframe, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSingleEditorModePanel, VeltSingleEditorModePanelWireframe, VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoEditorPlayerWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAssignUser, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentAnnotationsCount, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentEventCallback, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactList, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetCommentAnnotations, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncEventCallback, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceData, usePresenceEventCallback, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderEventCallback, useRecorderUtils, useRecordingDataByRecorderId, useRecordings, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetDocuments, useSetLiveStateData, useSetLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsetDocuments, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltEventCallback, useVeltInitState, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "4.5.0-beta.7",
3
+ "version": "4.5.0-beta.9",
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": [