@veltdev/react 3.0.4 → 3.0.6

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 (44) hide show
  1. package/cjs/index.js +124 -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/VeltCommentDialogWireframe/VeltCommentDialogAssigneeBanner/VeltCommentDialogAssigneeBanner.d.ts +2 -0
  6. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogAssigneeBanner/VeltCommentDialogAssigneeBannerUnresolveButton/VeltCommentDialogAssigneeBannerUnresolveButton.d.ts +6 -0
  7. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogAssigneeBanner/VeltCommentDialogAssigneeBannerUnresolveButton/index.d.ts +1 -0
  8. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogUnresolveButton/VeltCommentDialogUnresolveButton.d.ts +6 -0
  9. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogUnresolveButton/index.d.ts +1 -0
  10. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogWireframe.d.ts +2 -0
  11. package/cjs/types/components/VeltCommentsSidebarButton/VeltCommentsSidebarButton.d.ts +45 -0
  12. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdown.d.ts +12 -0
  13. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/VeltCommentsSidebarLocationFilterDropdownContent.d.ts +6 -0
  14. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/index.d.ts +1 -0
  15. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTrigger.d.ts +10 -0
  16. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/VeltCommentsSidebarLocationFilterDropdownTriggerLabel.d.ts +6 -0
  17. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/index.d.ts +1 -0
  18. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/index.d.ts +1 -0
  19. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/index.d.ts +1 -0
  20. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  21. package/cjs/types/constants.d.ts +1 -1
  22. package/esm/index.js +124 -7
  23. package/esm/index.js.map +1 -1
  24. package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +2 -0
  25. package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +45 -0
  26. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogAssigneeBanner/VeltCommentDialogAssigneeBanner.d.ts +2 -0
  27. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogAssigneeBanner/VeltCommentDialogAssigneeBannerUnresolveButton/VeltCommentDialogAssigneeBannerUnresolveButton.d.ts +6 -0
  28. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogAssigneeBanner/VeltCommentDialogAssigneeBannerUnresolveButton/index.d.ts +1 -0
  29. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogUnresolveButton/VeltCommentDialogUnresolveButton.d.ts +6 -0
  30. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogUnresolveButton/index.d.ts +1 -0
  31. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogWireframe.d.ts +2 -0
  32. package/esm/types/components/VeltCommentsSidebarButton/VeltCommentsSidebarButton.d.ts +45 -0
  33. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdown.d.ts +12 -0
  34. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/VeltCommentsSidebarLocationFilterDropdownContent.d.ts +6 -0
  35. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownContent/index.d.ts +1 -0
  36. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTrigger.d.ts +10 -0
  37. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/VeltCommentsSidebarLocationFilterDropdownTriggerLabel.d.ts +6 -0
  38. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/VeltCommentsSidebarLocationFilterDropdownTriggerLabel/index.d.ts +1 -0
  39. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/VeltCommentsSidebarLocationFilterDropdownTrigger/index.d.ts +1 -0
  40. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarLocationFilterDropdown/index.d.ts +1 -0
  41. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  42. package/esm/types/constants.d.ts +1 -1
  43. package/index.d.ts +138 -12
  44. 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;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { IVeltCommentDialogAssigneeBannerResolveButtonProps } from "./VeltCommentDialogAssigneeBannerResolveButton/VeltCommentDialogAssigneeBannerResolveButton";
3
3
  import { IVeltCommentDialogAssigneeBannerUserAvatarProps } from "./VeltCommentDialogAssigneeBannerUserAvatar/VeltCommentDialogAssigneeBannerUserAvatar";
4
4
  import { IVeltCommentDialogAssigneeBannerUserNameProps } from "./VeltCommentDialogAssigneeBannerUserName/VeltCommentDialogAssigneeBannerUserName";
5
+ import { IVeltCommentDialogAssigneeBannerUnresolveButtonProps } from "./VeltCommentDialogAssigneeBannerUnresolveButton/VeltCommentDialogAssigneeBannerUnresolveButton";
5
6
  export interface IVeltCommentDialogAssigneeBannerProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
7
  variant?: string;
7
8
  }
@@ -9,6 +10,7 @@ export interface IVeltCommentDialogAssigneeBanner extends React.FC<IVeltCommentD
9
10
  ResolveButton: React.FC<IVeltCommentDialogAssigneeBannerResolveButtonProps>;
10
11
  UserAvatar: React.FC<IVeltCommentDialogAssigneeBannerUserAvatarProps>;
11
12
  UserName: React.FC<IVeltCommentDialogAssigneeBannerUserNameProps>;
13
+ UnresolveButton: React.FC<IVeltCommentDialogAssigneeBannerUnresolveButtonProps>;
12
14
  }
13
15
  declare const VeltCommentDialogAssigneeBanner: IVeltCommentDialogAssigneeBanner;
14
16
  export default VeltCommentDialogAssigneeBanner;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentDialogAssigneeBannerUnresolveButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ variant?: string;
4
+ }
5
+ declare const VeltCommentDialogAssigneeBannerUnresolveButton: React.FC<IVeltCommentDialogAssigneeBannerUnresolveButtonProps>;
6
+ export default VeltCommentDialogAssigneeBannerUnresolveButton;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentDialogAssigneeBannerUnresolveButton";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentDialogUnresolveButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ variant?: string;
4
+ }
5
+ declare const VeltCommentDialogUnresolveButton: React.FC<IVeltCommentDialogUnresolveButtonProps>;
6
+ export default VeltCommentDialogUnresolveButton;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentDialogUnresolveButton";
@@ -26,6 +26,7 @@ import { IVeltCommentDialogUpgradeProps } from "./VeltCommentDialogUpgrade/VeltC
26
26
  import { IVeltCommentDialogCustomAnnotationDropdown } from "./VeltCommentDialogCustomAnnotationDropdown/VeltCommentDialogCustomAnnotationDropdown";
27
27
  import { IVeltCommentDialogDeleteButtonProps } from "./VeltCommentDialogDeleteButton/VeltCommentDialogDeleteButton";
28
28
  import { IVeltCommentDialogCloseButtonProps } from "./VeltCommentDialogCloseButton/VeltCommentDialogCloseButton";
29
+ import { IVeltCommentDialogUnresolveButtonProps } from "./VeltCommentDialogUnresolveButton/VeltCommentDialogUnresolveButton";
29
30
  export interface IVeltCommentDialogWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
30
31
  variant?: string;
31
32
  }
@@ -47,6 +48,7 @@ declare const VeltCommentDialogWireframe: React.FC<IVeltCommentDialogWireframePr
47
48
  Priority: IVeltCommentDialogPriority;
48
49
  PrivateBanner: React.FC<IVeltCommentDialogPrivateBannerProps>;
49
50
  ResolveButton: React.FC<IVeltCommentDialogResolveButtonProps>;
51
+ UnresolveButton: React.FC<IVeltCommentDialogUnresolveButtonProps>;
50
52
  SignIn: React.FC<IVeltCommentDialogSignInProps>;
51
53
  Status: IVeltCommentDialogStatus;
52
54
  SuggestionAction: IVeltCommentDialogSuggestionAction;
@@ -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;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.4";
1
+ export declare const VELT_SDK_VERSION = "3.0.6";
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
 
@@ -530,6 +622,10 @@ interface IVeltCommentDialogAssigneeBannerUserNameProps extends React.DetailedHT
530
622
  variant?: string;
531
623
  }
532
624
 
625
+ interface IVeltCommentDialogAssigneeBannerUnresolveButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
626
+ variant?: string;
627
+ }
628
+
533
629
  interface IVeltCommentDialogAssigneeBannerProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
534
630
  variant?: string;
535
631
  }
@@ -537,6 +633,7 @@ interface IVeltCommentDialogAssigneeBanner extends React.FC<IVeltCommentDialogAs
537
633
  ResolveButton: React.FC<IVeltCommentDialogAssigneeBannerResolveButtonProps>;
538
634
  UserAvatar: React.FC<IVeltCommentDialogAssigneeBannerUserAvatarProps>;
539
635
  UserName: React.FC<IVeltCommentDialogAssigneeBannerUserNameProps>;
636
+ UnresolveButton: React.FC<IVeltCommentDialogAssigneeBannerUnresolveButtonProps>;
540
637
  }
541
638
 
542
639
  interface IVeltCommentDialogBodyProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
@@ -1133,6 +1230,10 @@ interface IVeltCommentDialogCloseButtonProps extends React.DetailedHTMLProps<Rea
1133
1230
  variant?: string;
1134
1231
  }
1135
1232
 
1233
+ interface IVeltCommentDialogUnresolveButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1234
+ variant?: string;
1235
+ }
1236
+
1136
1237
  interface IVeltCommentDialogWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1137
1238
  variant?: string;
1138
1239
  }
@@ -1154,6 +1255,7 @@ declare const VeltCommentDialogWireframe: React.FC<IVeltCommentDialogWireframePr
1154
1255
  Priority: IVeltCommentDialogPriority;
1155
1256
  PrivateBanner: React.FC<IVeltCommentDialogPrivateBannerProps>;
1156
1257
  ResolveButton: React.FC<IVeltCommentDialogResolveButtonProps>;
1258
+ UnresolveButton: React.FC<IVeltCommentDialogUnresolveButtonProps>;
1157
1259
  SignIn: React.FC<IVeltCommentDialogSignInProps>;
1158
1260
  Status: IVeltCommentDialogStatus;
1159
1261
  SuggestionAction: IVeltCommentDialogSuggestionAction;
@@ -1508,6 +1610,29 @@ interface IVeltCommentsSidebarMinimalFilterDropdown extends React.FC<IVeltCommen
1508
1610
  Content: IVeltCommentsSidebarMinimalFilterDropdownContent;
1509
1611
  }
1510
1612
 
1613
+ interface IVeltCommentsSidebarLocationFilterDropdownContentProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1614
+ variant?: string;
1615
+ }
1616
+
1617
+ interface IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1618
+ variant?: string;
1619
+ }
1620
+
1621
+ interface IVeltCommentsSidebarLocationFilterDropdownTriggerProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1622
+ variant?: string;
1623
+ }
1624
+ interface IVeltCommentsSidebarLocationFilterDropdownTrigger extends React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerProps> {
1625
+ Label: React.FC<IVeltCommentsSidebarLocationFilterDropdownTriggerLabelProps>;
1626
+ }
1627
+
1628
+ interface IVeltCommentsSidebarLocationFilterDropdownProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1629
+ variant?: string;
1630
+ }
1631
+ interface IVeltCommentsSidebarLocationFilterDropdown extends React.FC<IVeltCommentsSidebarLocationFilterDropdownProps> {
1632
+ Trigger: IVeltCommentsSidebarLocationFilterDropdownTrigger;
1633
+ Content: React.FC<IVeltCommentsSidebarLocationFilterDropdownContentProps>;
1634
+ }
1635
+
1511
1636
  interface IVeltCommentsSidebarWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1512
1637
  variant?: string;
1513
1638
  }
@@ -1524,6 +1649,7 @@ declare const VeltCommentsSidebarWireframe: React.FC<IVeltCommentsSidebarWirefra
1524
1649
  Skeleton: React.FC<IVeltCommentsSidebarSkeletonProps>;
1525
1650
  Panel: React.FC<IVeltCommentsSidebarPanelProps>;
1526
1651
  MinimalFilterDropdown: IVeltCommentsSidebarMinimalFilterDropdown;
1652
+ LocationFilterDropdown: IVeltCommentsSidebarLocationFilterDropdown;
1527
1653
  };
1528
1654
 
1529
1655
  interface IVeltCommentPinGhostCommentIndicatorProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
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": [