@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/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 = '3.0.4';
135
+ var VELT_SDK_VERSION = '3.0.6';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
  var VELT_TAB_ID = 'veltTabId';
138
138
 
@@ -344,12 +344,13 @@ var SnippylyComments = function (props) {
344
344
  };
345
345
 
346
346
  var SnippylyCommentsSidebar = function (props) {
347
- var embedMode = props.embedMode, enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout;
347
+ var embedMode = props.embedMode; props.floatingMode; var enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, onSidebarClose = props.onSidebarClose, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout;
348
348
  var ref = useRef();
349
349
  var openSidebarRef = useRef(openSidebar);
350
350
  var onSidebarOpenRef = useRef(onSidebarOpen);
351
351
  var onSidebarCommentClickRef = useRef(onSidebarCommentClick);
352
352
  var onCommentClickRef = useRef(onCommentClick);
353
+ var onSidebarCloseRef = useRef(onSidebarClose);
353
354
  // Update the ref to always point to the latest callback function
354
355
  useEffect(function () {
355
356
  openSidebarRef.current = openSidebar;
@@ -360,6 +361,9 @@ var SnippylyCommentsSidebar = function (props) {
360
361
  useEffect(function () {
361
362
  onSidebarCommentClickRef.current = onSidebarCommentClick;
362
363
  }, [onSidebarCommentClick]);
364
+ useEffect(function () {
365
+ onSidebarCloseRef.current = onSidebarClose;
366
+ }, [onSidebarClose]);
363
367
  useEffect(function () {
364
368
  onCommentClickRef.current = onCommentClick;
365
369
  }, [onCommentClick]);
@@ -381,21 +385,28 @@ var SnippylyCommentsSidebar = function (props) {
381
385
  onCommentClickRef.current(event === null || event === void 0 ? void 0 : event.detail);
382
386
  }
383
387
  };
388
+ var handleSidebarClose = function (event) {
389
+ if (onSidebarCloseRef.current) {
390
+ onSidebarCloseRef.current(event === null || event === void 0 ? void 0 : event.detail);
391
+ }
392
+ };
384
393
  if (ref.current) {
385
394
  element = ref.current;
386
395
  if (element) {
387
396
  element.addEventListener('onSidebarOpen', handleSidebarOpen);
388
397
  element.addEventListener('onSidebarCommentClick', handleSidebarCommentClick);
398
+ element.addEventListener('onSidebarClose', handleSidebarClose);
389
399
  }
390
400
  }
391
401
  return function () {
392
402
  if (element) {
393
403
  element.removeEventListener('onSidebarOpen', handleSidebarOpen);
394
404
  element.removeEventListener('onSidebarCommentClick', handleSidebarCommentClick);
405
+ element.removeEventListener('onSidebarClose', handleSidebarClose);
395
406
  }
396
407
  };
397
408
  }, []);
398
- return (React.createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
409
+ return (React.createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined }));
399
410
  };
400
411
 
401
412
  var SnippylyCommentTool = function (props) {
@@ -604,13 +615,83 @@ var SnippylyRecorderTool = function (props) {
604
615
  };
605
616
 
606
617
  var SnippylySidebarButton = function (props) {
607
- var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
608
- return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
618
+ var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom, floatingMode = props.floatingMode, pageMode = props.pageMode, sortData = props.sortData, urlNavigation = props.urlNavigation, currentLocationSuffix = props.currentLocationSuffix, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, dialogVariant = props.dialogVariant, pageModeComposerVariant = props.pageModeComposerVariant, sidebarShadowDom = props.sidebarShadowDom, sidebarVariant = props.sidebarVariant, position = props.position, onCommentClick = props.onCommentClick, onSidebarOpen = props.onSidebarOpen, filterPanelLayout = props.filterPanelLayout;
619
+ var ref = useRef();
620
+ var onSidebarOpenRef = useRef(onSidebarOpen);
621
+ var onCommentClickRef = useRef(onCommentClick);
622
+ useEffect(function () {
623
+ onCommentClickRef.current = onCommentClick;
624
+ }, [onCommentClick]);
625
+ useEffect(function () {
626
+ onSidebarOpenRef.current = onSidebarOpen;
627
+ }, [onSidebarOpen]);
628
+ useEffect(function () {
629
+ var element;
630
+ var handleSidebarOpen = function (event) {
631
+ if (onSidebarOpenRef.current) {
632
+ onSidebarOpenRef.current(event === null || event === void 0 ? void 0 : event.detail);
633
+ }
634
+ };
635
+ var handleSidebarCommentClick = function (event) {
636
+ if (onCommentClickRef.current) {
637
+ onCommentClickRef.current(event === null || event === void 0 ? void 0 : event.detail);
638
+ }
639
+ };
640
+ if (ref.current) {
641
+ element = ref.current;
642
+ if (element) {
643
+ element.addEventListener('onSidebarOpen', handleSidebarOpen);
644
+ element.addEventListener('onCommentClick', handleSidebarCommentClick);
645
+ }
646
+ }
647
+ return function () {
648
+ if (element) {
649
+ element.removeEventListener('onSidebarOpen', handleSidebarOpen);
650
+ element.removeEventListener('onCommentClick', handleSidebarCommentClick);
651
+ }
652
+ };
653
+ });
654
+ return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(floatingMode) ? (floatingMode ? 'true' : 'false') : undefined, ref: ref, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "sort-data": sortData, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, "dialog-variant": dialogVariant, "page-mode-composer-variant": pageModeComposerVariant, "sidebar-shadow-dom": [true, false].includes(sidebarShadowDom) ? (sidebarShadowDom ? 'true' : 'false') : undefined, "sidebar-variant": sidebarVariant, position: position, "filter-panel-layout": filterPanelLayout }, children));
609
655
  };
610
656
 
611
657
  var VeltCommentsSidebarButton = function (props) {
612
- var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
613
- return (React.createElement("velt-comments-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
658
+ var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom, floatingMode = props.floatingMode, pageMode = props.pageMode, sortData = props.sortData, urlNavigation = props.urlNavigation, currentLocationSuffix = props.currentLocationSuffix, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, dialogVariant = props.dialogVariant, pageModeComposerVariant = props.pageModeComposerVariant, sidebarShadowDom = props.sidebarShadowDom, sidebarVariant = props.sidebarVariant, position = props.position, onCommentClick = props.onCommentClick, onSidebarOpen = props.onSidebarOpen, filterPanelLayout = props.filterPanelLayout;
659
+ var ref = useRef();
660
+ var onSidebarOpenRef = useRef(onSidebarOpen);
661
+ var onCommentClickRef = useRef(onCommentClick);
662
+ useEffect(function () {
663
+ onCommentClickRef.current = onCommentClick;
664
+ }, [onCommentClick]);
665
+ useEffect(function () {
666
+ onSidebarOpenRef.current = onSidebarOpen;
667
+ }, [onSidebarOpen]);
668
+ useEffect(function () {
669
+ var element;
670
+ var handleSidebarOpen = function (event) {
671
+ if (onSidebarOpenRef.current) {
672
+ onSidebarOpenRef.current(event === null || event === void 0 ? void 0 : event.detail);
673
+ }
674
+ };
675
+ var handleSidebarCommentClick = function (event) {
676
+ if (onCommentClickRef.current) {
677
+ onCommentClickRef.current(event === null || event === void 0 ? void 0 : event.detail);
678
+ }
679
+ };
680
+ if (ref.current) {
681
+ element = ref.current;
682
+ if (element) {
683
+ element.addEventListener('onSidebarOpen', handleSidebarOpen);
684
+ element.addEventListener('onCommentClick', handleSidebarCommentClick);
685
+ }
686
+ }
687
+ return function () {
688
+ if (element) {
689
+ element.removeEventListener('onSidebarOpen', handleSidebarOpen);
690
+ element.removeEventListener('onCommentClick', handleSidebarCommentClick);
691
+ }
692
+ };
693
+ });
694
+ return (React.createElement("velt-comments-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(floatingMode) ? (floatingMode ? 'true' : 'false') : undefined, ref: ref, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "sort-data": sortData, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, "dialog-variant": dialogVariant, "page-mode-composer-variant": pageModeComposerVariant, "sidebar-shadow-dom": [true, false].includes(sidebarShadowDom) ? (sidebarShadowDom ? 'true' : 'false') : undefined, "sidebar-variant": sidebarVariant, position: position, "filter-panel-layout": filterPanelLayout }, children));
614
695
  };
615
696
 
616
697
  var SnippylyTags = function (props) {
@@ -1376,6 +1457,11 @@ var VeltCommentDialogAssigneeBannerUserName = function (props) {
1376
1457
  return (React.createElement("velt-comment-dialog-assignee-banner-user-name-wireframe", __assign({}, remainingProp), children));
1377
1458
  };
1378
1459
 
1460
+ var VeltCommentDialogAssigneeBannerUnresolveButton = function (props) {
1461
+ var children = props.children, remainingProp = __rest(props, ["children"]);
1462
+ return (React.createElement("velt-comment-dialog-assignee-banner-unresolve-button-wireframe", __assign({}, remainingProp), children));
1463
+ };
1464
+
1379
1465
  var VeltCommentDialogAssigneeBanner = function (props) {
1380
1466
  var children = props.children, remainingProp = __rest(props, ["children"]);
1381
1467
  return (React.createElement("velt-comment-dialog-assignee-banner-wireframe", __assign({}, remainingProp), children));
@@ -1383,6 +1469,7 @@ var VeltCommentDialogAssigneeBanner = function (props) {
1383
1469
  VeltCommentDialogAssigneeBanner.ResolveButton = VeltCommentDialogAssigneeBannerResolveButton;
1384
1470
  VeltCommentDialogAssigneeBanner.UserAvatar = VeltCommentDialogAssigneeBannerUserAvatar;
1385
1471
  VeltCommentDialogAssigneeBanner.UserName = VeltCommentDialogAssigneeBannerUserName;
1472
+ VeltCommentDialogAssigneeBanner.UnresolveButton = VeltCommentDialogAssigneeBannerUnresolveButton;
1386
1473
 
1387
1474
  var VeltCommentDialogBody = function (props) {
1388
1475
  var children = props.children, remainingProp = __rest(props, ["children"]);
@@ -2019,6 +2106,11 @@ var VeltCommentDialogCloseButton = function (props) {
2019
2106
  return (React.createElement("velt-comment-dialog-close-button-wireframe", __assign({}, remainingProp), children));
2020
2107
  };
2021
2108
 
2109
+ var VeltCommentDialogUnresolveButton = function (props) {
2110
+ var children = props.children, remainingProp = __rest(props, ["children"]);
2111
+ return (React.createElement("velt-comment-dialog-unresolve-button-wireframe", __assign({}, remainingProp), children));
2112
+ };
2113
+
2022
2114
  var VeltCommentDialogWireframe = function (props) {
2023
2115
  var children = props.children, remainingProp = __rest(props, ["children"]);
2024
2116
  return (React.createElement("velt-comment-dialog-wireframe", __assign({}, remainingProp), children));
@@ -2040,6 +2132,7 @@ VeltCommentDialogWireframe.Options = VeltCommentDialogOptions;
2040
2132
  VeltCommentDialogWireframe.Priority = VeltCommentDialogPriority;
2041
2133
  VeltCommentDialogWireframe.PrivateBanner = VeltCommentDialogPrivateBanner;
2042
2134
  VeltCommentDialogWireframe.ResolveButton = VeltCommentDialogResolveButton;
2135
+ VeltCommentDialogWireframe.UnresolveButton = VeltCommentDialogUnresolveButton;
2043
2136
  VeltCommentDialogWireframe.SignIn = VeltCommentDialogSignIn;
2044
2137
  VeltCommentDialogWireframe.Status = VeltCommentDialogStatus;
2045
2138
  VeltCommentDialogWireframe.SuggestionAction = VeltCommentDialogSuggestionAction;
@@ -2394,6 +2487,29 @@ var VeltCommentsSidebarMinimalFilterDropdown = function (props) {
2394
2487
  VeltCommentsSidebarMinimalFilterDropdown.Trigger = VeltCommentsSidebarMinimalFilterDropdownTrigger;
2395
2488
  VeltCommentsSidebarMinimalFilterDropdown.Content = VeltCommentsSidebarMinimalFilterDropdownContent;
2396
2489
 
2490
+ var VeltCommentsSidebarLocationFilterDropdownContent = function (props) {
2491
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2492
+ return (React.createElement("velt-comments-sidebar-location-filter-dropdown-content-wireframe", __assign({}, remainingProps), children));
2493
+ };
2494
+
2495
+ var VeltCommentsSidebarLocationFilterDropdownTriggerLabel = function (props) {
2496
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2497
+ return (React.createElement("velt-comments-sidebar-location-filter-dropdown-trigger-label-wireframe", __assign({}, remainingProps), children));
2498
+ };
2499
+
2500
+ var VeltCommentsSidebarLocationFilterDropdownTrigger = function (props) {
2501
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2502
+ return (React.createElement("velt-comments-sidebar-location-filter-dropdown-trigger-wireframe", __assign({}, remainingProps), children));
2503
+ };
2504
+ VeltCommentsSidebarLocationFilterDropdownTrigger.Label = VeltCommentsSidebarLocationFilterDropdownTriggerLabel;
2505
+
2506
+ var VeltCommentsSidebarLocationFilterDropdown = function (props) {
2507
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2508
+ return (React.createElement("velt-comments-sidebar-location-filter-dropdown-wireframe", __assign({}, remainingProps), children));
2509
+ };
2510
+ VeltCommentsSidebarLocationFilterDropdown.Trigger = VeltCommentsSidebarLocationFilterDropdownTrigger;
2511
+ VeltCommentsSidebarLocationFilterDropdown.Content = VeltCommentsSidebarLocationFilterDropdownContent;
2512
+
2397
2513
  var VeltCommentsSidebarWireframe = function (props) {
2398
2514
  var children = props.children, remainingProp = __rest(props, ["children"]);
2399
2515
  return (React.createElement("velt-comments-sidebar-wireframe", __assign({}, remainingProp), children));
@@ -2410,6 +2526,7 @@ VeltCommentsSidebarWireframe.FilterButton = VeltCommentsSidebarFilterButton;
2410
2526
  VeltCommentsSidebarWireframe.Skeleton = VeltCommentsSidebarSkeleton;
2411
2527
  VeltCommentsSidebarWireframe.Panel = VeltCommentsSidebarPanel;
2412
2528
  VeltCommentsSidebarWireframe.MinimalFilterDropdown = VeltCommentsSidebarMinimalFilterDropdown;
2529
+ VeltCommentsSidebarWireframe.LocationFilterDropdown = VeltCommentsSidebarLocationFilterDropdown;
2413
2530
 
2414
2531
  var VeltCommentPinGhostCommentIndicator = function (props) {
2415
2532
  var children = props.children, remainingProp = __rest(props, ["children"]);