@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/esm/index.js CHANGED
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
132
132
  }
133
133
  };
134
134
 
135
- var VELT_SDK_VERSION = '4.5.0-beta.7';
135
+ var VELT_SDK_VERSION = '4.5.0-beta.9';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
  var VELT_TAB_ID = 'veltTabId';
138
138
 
@@ -2678,6 +2678,16 @@ VeltCommentsSidebarFilterTagged.Name = VeltCommentsSidebarFilterName;
2678
2678
  VeltCommentsSidebarFilterTagged.Item = VeltCommentsSidebarFilterItem;
2679
2679
  VeltCommentsSidebarFilterTagged.Search = VeltCommentsSidebarFilterSearch;
2680
2680
 
2681
+ var VeltCommentsSidebarFilterDocument = function (props) {
2682
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2683
+ var transformedProps = transformWireframeProps(remainingProps);
2684
+ return (React.createElement("velt-comments-sidebar-filter-document-wireframe", __assign({}, transformedProps), children));
2685
+ };
2686
+ VeltCommentsSidebarFilterDocument.Name = VeltCommentsSidebarFilterName;
2687
+ VeltCommentsSidebarFilterDocument.Item = VeltCommentsSidebarFilterItem;
2688
+ VeltCommentsSidebarFilterDocument.ViewAll = VeltCommentsSidebarFilterViewAll;
2689
+ VeltCommentsSidebarFilterDocument.Search = VeltCommentsSidebarFilterSearch;
2690
+
2681
2691
  var VeltCommentsSidebarFilter = function (props) {
2682
2692
  var children = props.children, remainingProps = __rest(props, ["children"]);
2683
2693
  var transformedProps = transformWireframeProps(remainingProps);
@@ -2699,6 +2709,7 @@ VeltCommentsSidebarFilter.Item = VeltCommentsSidebarFilterItem;
2699
2709
  VeltCommentsSidebarFilter.Status = VeltCommentsSidebarFilterStatus;
2700
2710
  VeltCommentsSidebarFilter.ResetButton = VeltCommentsSidebarFilterResetButton;
2701
2711
  VeltCommentsSidebarFilter.Search = VeltCommentsSidebarFilterSearch;
2712
+ VeltCommentsSidebarFilter.Document = VeltCommentsSidebarFilterDocument;
2702
2713
 
2703
2714
  var VeltCommentsSidebarFilterButton = function (props) {
2704
2715
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -2787,6 +2798,33 @@ var VeltCommentsSidebarLocationFilterDropdown = function (props) {
2787
2798
  VeltCommentsSidebarLocationFilterDropdown.Trigger = VeltCommentsSidebarLocationFilterDropdownTrigger;
2788
2799
  VeltCommentsSidebarLocationFilterDropdown.Content = VeltCommentsSidebarLocationFilterDropdownContent;
2789
2800
 
2801
+ var VeltCommentsSidebarDocumentFilterDropdownContent = function (props) {
2802
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2803
+ var transformedProps = transformWireframeProps(remainingProps);
2804
+ return (React.createElement("velt-comments-sidebar-document-filter-dropdown-content-wireframe", __assign({}, transformedProps), children));
2805
+ };
2806
+
2807
+ var VeltCommentsSidebarDocumentFilterDropdownTriggerLabel = function (props) {
2808
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2809
+ var transformedProps = transformWireframeProps(remainingProps);
2810
+ return (React.createElement("velt-comments-sidebar-document-filter-dropdown-trigger-label-wireframe", __assign({}, transformedProps), children));
2811
+ };
2812
+
2813
+ var VeltCommentsSidebarDocumentFilterDropdownTrigger = function (props) {
2814
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2815
+ var transformedProps = transformWireframeProps(remainingProps);
2816
+ return (React.createElement("velt-comments-sidebar-document-filter-dropdown-trigger-wireframe", __assign({}, transformedProps), children));
2817
+ };
2818
+ VeltCommentsSidebarDocumentFilterDropdownTrigger.Label = VeltCommentsSidebarDocumentFilterDropdownTriggerLabel;
2819
+
2820
+ var VeltCommentsSidebarDocumentFilterDropdownWireframe = function (props) {
2821
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2822
+ var transformedProps = transformWireframeProps(remainingProps);
2823
+ return (React.createElement("velt-comments-sidebar-document-filter-dropdown-wireframe", __assign({}, transformedProps), children));
2824
+ };
2825
+ VeltCommentsSidebarDocumentFilterDropdownWireframe.Trigger = VeltCommentsSidebarDocumentFilterDropdownTrigger;
2826
+ VeltCommentsSidebarDocumentFilterDropdownWireframe.Content = VeltCommentsSidebarDocumentFilterDropdownContent;
2827
+
2790
2828
  var VeltCommentsSidebarMinimalActionsDropdownContentMarkAllReadWireframe = function (props) {
2791
2829
  var children = props.children, remainingProps = __rest(props, ["children"]);
2792
2830
  var transformedProps = transformWireframeProps(remainingProps);
@@ -3054,6 +3092,7 @@ VeltCommentsSidebarWireframe.Skeleton = VeltCommentsSidebarSkeleton;
3054
3092
  VeltCommentsSidebarWireframe.Panel = VeltCommentsSidebarPanel;
3055
3093
  VeltCommentsSidebarWireframe.MinimalFilterDropdown = VeltCommentsSidebarMinimalFilterDropdown;
3056
3094
  VeltCommentsSidebarWireframe.LocationFilterDropdown = VeltCommentsSidebarLocationFilterDropdown;
3095
+ VeltCommentsSidebarWireframe.DocumentFilterDropdown = VeltCommentsSidebarDocumentFilterDropdownWireframe;
3057
3096
  VeltCommentsSidebarWireframe.MinimalActionsDropdown = VeltCommentsSidebarMinimalActionsDropdownWireframe;
3058
3097
  VeltCommentsSidebarWireframe.ResetFilterButton = VeltCommentsSidebarResetFilterButtonWireframe;
3059
3098
  VeltCommentsSidebarWireframe.ActionButton = VeltCommentsSidebarActionButton;
@@ -6499,6 +6538,41 @@ function usePresenceUsers() {
6499
6538
  }, [presenceElement]);
6500
6539
  return data;
6501
6540
  }
6541
+ function usePresenceData(query) {
6542
+ var presenceElement = usePresenceUtils();
6543
+ var _a = useState({ data: null }), data = _a[0], setData = _a[1];
6544
+ var subscriptionRef = useRef();
6545
+ // Memoize the inputs
6546
+ var memoizedData = useMemo(function () {
6547
+ return query;
6548
+ }, [JSON.stringify(query)]);
6549
+ useEffect(function () {
6550
+ if (!(presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.getData))
6551
+ return;
6552
+ // Unsubscribe from the previous subscription if it exists
6553
+ if (subscriptionRef.current) {
6554
+ subscriptionRef.current.unsubscribe();
6555
+ }
6556
+ var subscription = presenceElement.getData(memoizedData)
6557
+ .subscribe(function (res) {
6558
+ if (res) {
6559
+ setData(res);
6560
+ }
6561
+ else {
6562
+ setData({ data: null });
6563
+ }
6564
+ });
6565
+ // Store the new subscription
6566
+ subscriptionRef.current = subscription;
6567
+ // Cleanup function
6568
+ return function () {
6569
+ if (subscriptionRef.current) {
6570
+ subscriptionRef.current.unsubscribe();
6571
+ }
6572
+ };
6573
+ }, [presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.getData, memoizedData]);
6574
+ return data;
6575
+ }
6502
6576
 
6503
6577
  function usePresenceEventCallback(action) {
6504
6578
  var presenceElement = usePresenceUtils();
@@ -7022,5 +7096,5 @@ var logLiveState = function (action, liveStateDataId) {
7022
7096
  }
7023
7097
  };
7024
7098
 
7025
- 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 };
7099
+ 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 };
7026
7100
  //# sourceMappingURL=index.js.map