@veltdev/react 3.0.3 → 3.0.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.
Files changed (54) hide show
  1. package/cjs/index.js +142 -7
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +2 -0
  4. package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +45 -0
  5. package/cjs/types/components/VeltCommentsSidebarButton/VeltCommentsSidebarButton.d.ts +45 -0
  6. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdown.d.ts +12 -0
  7. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/VeltCommentsSidebarLocationFilterDropdownContent.d.ts +6 -0
  8. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/index.d.ts +1 -0
  9. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTrigger.d.ts +10 -0
  10. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/VeltCommentsSidebarLocationFilterDropdownTriggerLabel.d.ts +6 -0
  11. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/index.d.ts +1 -0
  12. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/index.d.ts +1 -0
  13. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/index.d.ts +1 -0
  14. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  15. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeCloseButtonWireframe/VeltPersistentCommentModeCloseButtonWireframe.d.ts +5 -0
  16. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeCloseButtonWireframe/index.d.ts +1 -0
  17. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPrivateWireframe/VeltPersistentCommentModeLabelPrivateWireframe.d.ts +5 -0
  18. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPrivateWireframe/index.d.ts +1 -0
  19. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPublicWireframe/VeltPersistentCommentModeLabelPublicWireframe.d.ts +5 -0
  20. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPublicWireframe/index.d.ts +1 -0
  21. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelWireframe.d.ts +11 -0
  22. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/index.d.ts +1 -0
  23. package/cjs/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeWireframe.d.ts +12 -0
  24. package/cjs/types/components/VeltPersistentCommentModeWireframe/index.d.ts +1 -0
  25. package/cjs/types/components/index.d.ts +1 -0
  26. package/cjs/types/constants.d.ts +1 -1
  27. package/esm/index.js +142 -8
  28. package/esm/index.js.map +1 -1
  29. package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +2 -0
  30. package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +45 -0
  31. package/esm/types/components/VeltCommentsSidebarButton/VeltCommentsSidebarButton.d.ts +45 -0
  32. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdown.d.ts +12 -0
  33. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/VeltCommentsSidebarLocationFilterDropdownContent.d.ts +6 -0
  34. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/index.d.ts +1 -0
  35. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTrigger.d.ts +10 -0
  36. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/VeltCommentsSidebarLocationFilterDropdownTriggerLabel.d.ts +6 -0
  37. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/index.d.ts +1 -0
  38. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/index.d.ts +1 -0
  39. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/index.d.ts +1 -0
  40. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  41. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeCloseButtonWireframe/VeltPersistentCommentModeCloseButtonWireframe.d.ts +5 -0
  42. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeCloseButtonWireframe/index.d.ts +1 -0
  43. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPrivateWireframe/VeltPersistentCommentModeLabelPrivateWireframe.d.ts +5 -0
  44. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPrivateWireframe/index.d.ts +1 -0
  45. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPublicWireframe/VeltPersistentCommentModeLabelPublicWireframe.d.ts +5 -0
  46. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelPublicWireframe/index.d.ts +1 -0
  47. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelWireframe.d.ts +11 -0
  48. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeLabelWireframe/index.d.ts +1 -0
  49. package/esm/types/components/VeltPersistentCommentModeWireframe/VeltPersistentCommentModeWireframe.d.ts +12 -0
  50. package/esm/types/components/VeltPersistentCommentModeWireframe/index.d.ts +1 -0
  51. package/esm/types/components/index.d.ts +1 -0
  52. package/esm/types/constants.d.ts +1 -1
  53. package/index.d.ts +154 -13
  54. package/package.json +1 -1
@@ -29,6 +29,7 @@ declare class CommentSidebarFilters {
29
29
  }
30
30
  export interface IVeltCommentsSidebarProps {
31
31
  embedMode?: boolean;
32
+ floatingMode?: boolean;
32
33
  /**
33
34
  * @deprecated Use `urlNavigation` instead
34
35
  */
@@ -55,6 +56,7 @@ export interface IVeltCommentsSidebarProps {
55
56
  */
56
57
  onSidebarCommentClick?: Function;
57
58
  onCommentClick?: Function;
59
+ onSidebarClose?: Function;
58
60
  darkMode?: boolean;
59
61
  position?: "right" | "left";
60
62
  filterPanelLayout?: 'menu' | 'bottomSheet';
@@ -1,8 +1,53 @@
1
1
  import React from 'react';
2
+ declare class FilterTypeConfig {
3
+ name?: string;
4
+ enable?: boolean;
5
+ multiSelection?: boolean;
6
+ enableGrouping?: boolean;
7
+ order?: string[];
8
+ }
9
+ declare class CommentSidebarFilterConfig {
10
+ location?: FilterTypeConfig;
11
+ people?: FilterTypeConfig;
12
+ priority?: FilterTypeConfig;
13
+ category?: FilterTypeConfig;
14
+ commentType?: FilterTypeConfig;
15
+ }
16
+ declare class CommentSidebarGroupConfig {
17
+ enable?: boolean;
18
+ name?: string;
19
+ }
20
+ declare class CommentSidebarFilters {
21
+ location?: Location[];
22
+ people?: {
23
+ userId?: string;
24
+ email?: string;
25
+ }[];
26
+ priority?: string[];
27
+ status?: string[];
28
+ category?: string[];
29
+ }
2
30
  export interface IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
31
  tooltipText?: string;
4
32
  darkMode?: boolean;
5
33
  shadowDom?: boolean;
34
+ floatingMode?: boolean;
35
+ pageMode?: boolean;
36
+ sortData?: 'asc' | 'desc' | 'none';
37
+ urlNavigation?: boolean;
38
+ currentLocationSuffix?: boolean;
39
+ filterConfig?: CommentSidebarFilterConfig;
40
+ groupConfig?: CommentSidebarGroupConfig;
41
+ filters?: CommentSidebarFilters;
42
+ excludeLocationIds?: string[];
43
+ dialogVariant?: string;
44
+ pageModeComposerVariant?: string;
45
+ sidebarShadowDom?: boolean;
46
+ sidebarVariant?: string;
47
+ position?: "right" | "left";
48
+ filterPanelLayout?: 'menu' | 'bottomSheet';
49
+ onCommentClick?: Function;
50
+ onSidebarOpen?: Function;
6
51
  }
7
52
  declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
8
53
  export default SnippylySidebarButton;
@@ -1,8 +1,53 @@
1
1
  import React from 'react';
2
+ declare class FilterTypeConfig {
3
+ name?: string;
4
+ enable?: boolean;
5
+ multiSelection?: boolean;
6
+ enableGrouping?: boolean;
7
+ order?: string[];
8
+ }
9
+ declare class CommentSidebarFilterConfig {
10
+ location?: FilterTypeConfig;
11
+ people?: FilterTypeConfig;
12
+ priority?: FilterTypeConfig;
13
+ category?: FilterTypeConfig;
14
+ commentType?: FilterTypeConfig;
15
+ }
16
+ declare class CommentSidebarGroupConfig {
17
+ enable?: boolean;
18
+ name?: string;
19
+ }
20
+ declare class CommentSidebarFilters {
21
+ location?: Location[];
22
+ people?: {
23
+ userId?: string;
24
+ email?: string;
25
+ }[];
26
+ priority?: string[];
27
+ status?: string[];
28
+ category?: string[];
29
+ }
2
30
  export interface IVeltCommentsSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
31
  tooltipText?: string;
4
32
  darkMode?: boolean;
5
33
  shadowDom?: boolean;
34
+ floatingMode?: boolean;
35
+ pageMode?: boolean;
36
+ sortData?: 'asc' | 'desc' | 'none';
37
+ urlNavigation?: boolean;
38
+ currentLocationSuffix?: boolean;
39
+ filterConfig?: CommentSidebarFilterConfig;
40
+ groupConfig?: CommentSidebarGroupConfig;
41
+ filters?: CommentSidebarFilters;
42
+ excludeLocationIds?: string[];
43
+ dialogVariant?: string;
44
+ pageModeComposerVariant?: string;
45
+ sidebarShadowDom?: boolean;
46
+ sidebarVariant?: string;
47
+ position?: "right" | "left";
48
+ filterPanelLayout?: 'menu' | 'bottomSheet';
49
+ onCommentClick?: Function;
50
+ onSidebarOpen?: Function;
6
51
  }
7
52
  declare const VeltCommentsSidebarButton: React.FC<IVeltCommentsSidebarButtonProps>;
8
53
  export default VeltCommentsSidebarButton;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IVeltCommentsSidebarLocationFilterDropdownContentProps } from './VeltCommentsSidebarLocationFilterDropdownContent/VeltCommentsSidebarLocationFilterDropdownContent';
3
+ import { IVeltCommentsSidebarLocationFilterDropdownTrigger } from './VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTrigger';
4
+ export interface IVeltCommentsSidebarLocationFilterDropdownProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
5
+ variant?: string;
6
+ }
7
+ export interface IVeltCommentsSidebarLocationFilterDropdown extends React.FC<IVeltCommentsSidebarLocationFilterDropdownProps> {
8
+ Trigger: IVeltCommentsSidebarLocationFilterDropdownTrigger;
9
+ Content: React.FC<IVeltCommentsSidebarLocationFilterDropdownContentProps>;
10
+ }
11
+ declare const VeltCommentsSidebarLocationFilterDropdown: IVeltCommentsSidebarLocationFilterDropdown;
12
+ export default VeltCommentsSidebarLocationFilterDropdown;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentsSidebarLocationFilterDropdownContentProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ variant?: string;
4
+ }
5
+ declare const VeltCommentsSidebarLocationFilterDropdownContent: React.FC<IVeltCommentsSidebarLocationFilterDropdownContentProps>;
6
+ export default VeltCommentsSidebarLocationFilterDropdownContent;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentsSidebarLocationFilterDropdownContent";
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps } from './VeltCommentsSidebarLocationFilterDropdownTriggerLabel/VeltCommentsSidebarLocationFilterDropdownTriggerLabel';
3
+ export interface IVeltCommentsSidebarLocationFilterDropdownTriggerProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
4
+ variant?: string;
5
+ }
6
+ export interface IVeltCommentsSidebarLocationFilterDropdownTrigger extends React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerProps> {
7
+ Label: React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps>;
8
+ }
9
+ declare const VeltCommentsSidebarLocationFilterDropdownTrigger: IVeltCommentsSidebarLocationFilterDropdownTrigger;
10
+ export default VeltCommentsSidebarLocationFilterDropdownTrigger;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ variant?: string;
4
+ }
5
+ declare const VeltCommentsSidebarLocationFilterDropdownTriggerLabel: React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps>;
6
+ export default VeltCommentsSidebarLocationFilterDropdownTriggerLabel;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentsSidebarLocationFilterDropdownTrigger";
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentsSidebarLocationFilterDropdown";
@@ -11,6 +11,7 @@ import { IVeltCommentsSidebarFilterButtonProps } from './VeltCommentsSidebarFilt
11
11
  import { IVeltCommentsSidebarSkeletonProps } from './VeltCommentsSidebarSkeleton/VeltCommentsSidebarSkeleton';
12
12
  import { IVeltCommentsSidebarPanelProps } from './VeltCommentsSidebarPanel/VeltCommentsSidebarPanel';
13
13
  import { IVeltCommentsSidebarMinimalFilterDropdown } from './VeltCommentsSidebarMinimalFilterDropdown/VeltCommentsSidebarMinimalFilterDropdown';
14
+ import { IVeltCommentsSidebarLocationFilterDropdown } from './VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdown';
14
15
  export interface IVeltCommentsSidebarWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
15
16
  variant?: string;
16
17
  }
@@ -27,5 +28,6 @@ declare const VeltCommentsSidebarWireframe: React.FC<IVeltCommentsSidebarWirefra
27
28
  Skeleton: React.FC<IVeltCommentsSidebarSkeletonProps>;
28
29
  Panel: React.FC<IVeltCommentsSidebarPanelProps>;
29
30
  MinimalFilterDropdown: IVeltCommentsSidebarMinimalFilterDropdown;
31
+ LocationFilterDropdown: IVeltCommentsSidebarLocationFilterDropdown;
30
32
  };
31
33
  export default VeltCommentsSidebarWireframe;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface IVeltPersistentCommentModeCloseButtonWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ }
4
+ declare const VeltPersistentCommentModeCloseButtonWireframe: React.FC<IVeltPersistentCommentModeCloseButtonWireframeProps>;
5
+ export default VeltPersistentCommentModeCloseButtonWireframe;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltPersistentCommentModeCloseButtonWireframe";
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface IVeltPersistentCommentModeLabelPrivateWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ }
4
+ declare const VeltPersistentCommentModeLabelPrivateWireframe: React.FC<IVeltPersistentCommentModeLabelPrivateWireframeProps>;
5
+ export default VeltPersistentCommentModeLabelPrivateWireframe;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface IVeltPersistentCommentModeLabelPublicWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ }
4
+ declare const VeltPersistentCommentModeLabelPublicWireframe: React.FC<IVeltPersistentCommentModeLabelPublicWireframeProps>;
5
+ export default VeltPersistentCommentModeLabelPublicWireframe;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IVeltPersistentCommentModeLabelPrivateWireframeProps } from './VeltPersistentCommentModeLabelPrivateWireframe/VeltPersistentCommentModeLabelPrivateWireframe';
3
+ import { IVeltPersistentCommentModeLabelPublicWireframeProps } from './VeltPersistentCommentModeLabelPublicWireframe/VeltPersistentCommentModeLabelPublicWireframe';
4
+ export interface IVeltPersistentCommentModeLabelWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
5
+ }
6
+ export interface IVeltPersistentCommentModeLabelWireframe extends React.FC<IVeltPersistentCommentModeLabelWireframeProps> {
7
+ Private: React.FC<IVeltPersistentCommentModeLabelPrivateWireframeProps>;
8
+ Public: React.FC<IVeltPersistentCommentModeLabelPublicWireframeProps>;
9
+ }
10
+ declare const VeltPersistentCommentModeLabelWireframe: IVeltPersistentCommentModeLabelWireframe;
11
+ export default VeltPersistentCommentModeLabelWireframe;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltPersistentCommentModeLabelWireframe";
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IVeltPersistentCommentModeCloseButtonWireframeProps } from './VeltPersistentCommentModeCloseButtonWireframe/VeltPersistentCommentModeCloseButtonWireframe';
3
+ import { IVeltPersistentCommentModeLabelWireframe } from './VeltPersistentCommentModeLabelWireframe/VeltPersistentCommentModeLabelWireframe';
4
+ export interface IVeltPersistentCommentModeWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
5
+ variant?: string;
6
+ }
7
+ export interface IVeltPersistentCommentModeWireframe extends React.FC<IVeltPersistentCommentModeWireframeProps> {
8
+ CloseButton: React.FC<IVeltPersistentCommentModeCloseButtonWireframeProps>;
9
+ Label: IVeltPersistentCommentModeLabelWireframe;
10
+ }
11
+ declare const VeltPersistentCommentModeWireframe: IVeltPersistentCommentModeWireframe;
12
+ export default VeltPersistentCommentModeWireframe;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltPersistentCommentModeWireframe";
@@ -65,3 +65,4 @@ export { default as VeltNotificationsPanelWireframe } from "./VeltNotificationsP
65
65
  export { default as VeltNotificationsToolWireframe } from "./VeltNotificationsToolWireframe";
66
66
  export { default as VeltConfirmDialogWireframe } from "./VeltConfirmDialogWireframe";
67
67
  export { default as VeltInlineReactionsSectionWireframe } from "./VeltInlineReactionsSectionWireframe";
68
+ export { default as VeltPersistentCommentModeWireframe } from "./VeltPersistentCommentModeWireframe";
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.3";
1
+ export declare const VELT_SDK_VERSION = "3.0.5";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
package/index.d.ts CHANGED
@@ -156,25 +156,25 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
156
156
  }
157
157
  declare const SnippylyComments: React.FC<IVeltCommentsProps>;
158
158
 
159
- declare class FilterTypeConfig {
159
+ declare class FilterTypeConfig$2 {
160
160
  name?: string;
161
161
  enable?: boolean;
162
162
  multiSelection?: boolean;
163
163
  enableGrouping?: boolean;
164
164
  order?: string[];
165
165
  }
166
- declare class CommentSidebarFilterConfig {
167
- location?: FilterTypeConfig;
168
- people?: FilterTypeConfig;
169
- priority?: FilterTypeConfig;
170
- category?: FilterTypeConfig;
171
- commentType?: FilterTypeConfig;
166
+ declare class CommentSidebarFilterConfig$2 {
167
+ location?: FilterTypeConfig$2;
168
+ people?: FilterTypeConfig$2;
169
+ priority?: FilterTypeConfig$2;
170
+ category?: FilterTypeConfig$2;
171
+ commentType?: FilterTypeConfig$2;
172
172
  }
173
- declare class CommentSidebarGroupConfig {
173
+ declare class CommentSidebarGroupConfig$2 {
174
174
  enable?: boolean;
175
175
  name?: string;
176
176
  }
177
- declare class CommentSidebarFilters {
177
+ declare class CommentSidebarFilters$2 {
178
178
  location?: Location[];
179
179
  people?: {
180
180
  userId?: string;
@@ -186,6 +186,7 @@ declare class CommentSidebarFilters {
186
186
  }
187
187
  interface IVeltCommentsSidebarProps {
188
188
  embedMode?: boolean;
189
+ floatingMode?: boolean;
189
190
  /**
190
191
  * @deprecated Use `urlNavigation` instead
191
192
  */
@@ -198,9 +199,9 @@ interface IVeltCommentsSidebarProps {
198
199
  dialogVariant?: string;
199
200
  shadowDom?: boolean;
200
201
  sortData?: 'asc' | 'desc' | 'none';
201
- filterConfig?: CommentSidebarFilterConfig;
202
- groupConfig?: CommentSidebarGroupConfig;
203
- filters?: CommentSidebarFilters;
202
+ filterConfig?: CommentSidebarFilterConfig$2;
203
+ groupConfig?: CommentSidebarGroupConfig$2;
204
+ filters?: CommentSidebarFilters$2;
204
205
  excludeLocationIds?: string[];
205
206
  /**
206
207
  * @deprecated Use `onSidebarOpen` instead
@@ -212,6 +213,7 @@ interface IVeltCommentsSidebarProps {
212
213
  */
213
214
  onSidebarCommentClick?: Function;
214
215
  onCommentClick?: Function;
216
+ onSidebarClose?: Function;
215
217
  darkMode?: boolean;
216
218
  position?: "right" | "left";
217
219
  filterPanelLayout?: 'menu' | 'bottomSheet';
@@ -307,17 +309,107 @@ interface IVeltRecorderToolProps extends React.DetailedHTMLProps<React.HTMLAttri
307
309
  }
308
310
  declare const SnippylyRecorderTool: React.FC<IVeltRecorderToolProps>;
309
311
 
312
+ declare class FilterTypeConfig$1 {
313
+ name?: string;
314
+ enable?: boolean;
315
+ multiSelection?: boolean;
316
+ enableGrouping?: boolean;
317
+ order?: string[];
318
+ }
319
+ declare class CommentSidebarFilterConfig$1 {
320
+ location?: FilterTypeConfig$1;
321
+ people?: FilterTypeConfig$1;
322
+ priority?: FilterTypeConfig$1;
323
+ category?: FilterTypeConfig$1;
324
+ commentType?: FilterTypeConfig$1;
325
+ }
326
+ declare class CommentSidebarGroupConfig$1 {
327
+ enable?: boolean;
328
+ name?: string;
329
+ }
330
+ declare class CommentSidebarFilters$1 {
331
+ location?: Location[];
332
+ people?: {
333
+ userId?: string;
334
+ email?: string;
335
+ }[];
336
+ priority?: string[];
337
+ status?: string[];
338
+ category?: string[];
339
+ }
310
340
  interface IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
311
341
  tooltipText?: string;
312
342
  darkMode?: boolean;
313
343
  shadowDom?: boolean;
344
+ floatingMode?: boolean;
345
+ pageMode?: boolean;
346
+ sortData?: 'asc' | 'desc' | 'none';
347
+ urlNavigation?: boolean;
348
+ currentLocationSuffix?: boolean;
349
+ filterConfig?: CommentSidebarFilterConfig$1;
350
+ groupConfig?: CommentSidebarGroupConfig$1;
351
+ filters?: CommentSidebarFilters$1;
352
+ excludeLocationIds?: string[];
353
+ dialogVariant?: string;
354
+ pageModeComposerVariant?: string;
355
+ sidebarShadowDom?: boolean;
356
+ sidebarVariant?: string;
357
+ position?: "right" | "left";
358
+ filterPanelLayout?: 'menu' | 'bottomSheet';
359
+ onCommentClick?: Function;
360
+ onSidebarOpen?: Function;
314
361
  }
315
362
  declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
316
363
 
364
+ declare class FilterTypeConfig {
365
+ name?: string;
366
+ enable?: boolean;
367
+ multiSelection?: boolean;
368
+ enableGrouping?: boolean;
369
+ order?: string[];
370
+ }
371
+ declare class CommentSidebarFilterConfig {
372
+ location?: FilterTypeConfig;
373
+ people?: FilterTypeConfig;
374
+ priority?: FilterTypeConfig;
375
+ category?: FilterTypeConfig;
376
+ commentType?: FilterTypeConfig;
377
+ }
378
+ declare class CommentSidebarGroupConfig {
379
+ enable?: boolean;
380
+ name?: string;
381
+ }
382
+ declare class CommentSidebarFilters {
383
+ location?: Location[];
384
+ people?: {
385
+ userId?: string;
386
+ email?: string;
387
+ }[];
388
+ priority?: string[];
389
+ status?: string[];
390
+ category?: string[];
391
+ }
317
392
  interface IVeltCommentsSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
318
393
  tooltipText?: string;
319
394
  darkMode?: boolean;
320
395
  shadowDom?: boolean;
396
+ floatingMode?: boolean;
397
+ pageMode?: boolean;
398
+ sortData?: 'asc' | 'desc' | 'none';
399
+ urlNavigation?: boolean;
400
+ currentLocationSuffix?: boolean;
401
+ filterConfig?: CommentSidebarFilterConfig;
402
+ groupConfig?: CommentSidebarGroupConfig;
403
+ filters?: CommentSidebarFilters;
404
+ excludeLocationIds?: string[];
405
+ dialogVariant?: string;
406
+ pageModeComposerVariant?: string;
407
+ sidebarShadowDom?: boolean;
408
+ sidebarVariant?: string;
409
+ position?: "right" | "left";
410
+ filterPanelLayout?: 'menu' | 'bottomSheet';
411
+ onCommentClick?: Function;
412
+ onSidebarOpen?: Function;
321
413
  }
322
414
  declare const VeltCommentsSidebarButton: React.FC<IVeltCommentsSidebarButtonProps>;
323
415
 
@@ -1508,6 +1600,29 @@ interface IVeltCommentsSidebarMinimalFilterDropdown extends React.FC<IVeltCommen
1508
1600
  Content: IVeltCommentsSidebarMinimalFilterDropdownContent;
1509
1601
  }
1510
1602
 
1603
+ interface IVeltCommentsSidebarLocationFilterDropdownContentProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1604
+ variant?: string;
1605
+ }
1606
+
1607
+ interface IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1608
+ variant?: string;
1609
+ }
1610
+
1611
+ interface IVeltCommentsSidebarLocationFilterDropdownTriggerProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1612
+ variant?: string;
1613
+ }
1614
+ interface IVeltCommentsSidebarLocationFilterDropdownTrigger extends React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerProps> {
1615
+ Label: React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps>;
1616
+ }
1617
+
1618
+ interface IVeltCommentsSidebarLocationFilterDropdownProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1619
+ variant?: string;
1620
+ }
1621
+ interface IVeltCommentsSidebarLocationFilterDropdown extends React.FC<IVeltCommentsSidebarLocationFilterDropdownProps> {
1622
+ Trigger: IVeltCommentsSidebarLocationFilterDropdownTrigger;
1623
+ Content: React.FC<IVeltCommentsSidebarLocationFilterDropdownContentProps>;
1624
+ }
1625
+
1511
1626
  interface IVeltCommentsSidebarWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1512
1627
  variant?: string;
1513
1628
  }
@@ -1524,6 +1639,7 @@ declare const VeltCommentsSidebarWireframe: React.FC<IVeltCommentsSidebarWirefra
1524
1639
  Skeleton: React.FC<IVeltCommentsSidebarSkeletonProps>;
1525
1640
  Panel: React.FC<IVeltCommentsSidebarPanelProps>;
1526
1641
  MinimalFilterDropdown: IVeltCommentsSidebarMinimalFilterDropdown;
1642
+ LocationFilterDropdown: IVeltCommentsSidebarLocationFilterDropdown;
1527
1643
  };
1528
1644
 
1529
1645
  interface IVeltCommentPinGhostCommentIndicatorProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
@@ -2159,6 +2275,31 @@ interface IVeltInlineReactionsSectionWireframe extends React.FC<IVeltInlineReact
2159
2275
  }
2160
2276
  declare const VeltInlineReactionsSectionWireframe: IVeltInlineReactionsSectionWireframe;
2161
2277
 
2278
+ interface IVeltPersistentCommentModeCloseButtonWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
2279
+ }
2280
+
2281
+ interface IVeltPersistentCommentModeLabelPrivateWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
2282
+ }
2283
+
2284
+ interface IVeltPersistentCommentModeLabelPublicWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
2285
+ }
2286
+
2287
+ interface IVeltPersistentCommentModeLabelWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
2288
+ }
2289
+ interface IVeltPersistentCommentModeLabelWireframe extends React.FC<IVeltPersistentCommentModeLabelWireframeProps> {
2290
+ Private: React.FC<IVeltPersistentCommentModeLabelPrivateWireframeProps>;
2291
+ Public: React.FC<IVeltPersistentCommentModeLabelPublicWireframeProps>;
2292
+ }
2293
+
2294
+ interface IVeltPersistentCommentModeWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
2295
+ variant?: string;
2296
+ }
2297
+ interface IVeltPersistentCommentModeWireframe extends React.FC<IVeltPersistentCommentModeWireframeProps> {
2298
+ CloseButton: React.FC<IVeltPersistentCommentModeCloseButtonWireframeProps>;
2299
+ Label: IVeltPersistentCommentModeLabelWireframe;
2300
+ }
2301
+ declare const VeltPersistentCommentModeWireframe: IVeltPersistentCommentModeWireframe;
2302
+
2162
2303
  declare function useVeltClient(): {
2163
2304
  client: Velt;
2164
2305
  };
@@ -2256,4 +2397,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
2256
2397
  updateLiveStateDataId: (newId?: string) => void;
2257
2398
  };
2258
2399
 
2259
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, 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, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
2400
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, 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, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "3.0.3",
3
+ "version": "3.0.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": [