@veltdev/react 4.6.6 → 4.6.7-beta.1

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 (30) hide show
  1. package/cjs/index.js +20 -6
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +1 -0
  4. package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
  5. package/cjs/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/VeltCommentBubbleUnreadIcon.d.ts +6 -0
  6. package/cjs/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/index.d.ts +1 -0
  7. package/cjs/types/components/VeltCommentBubble/VeltCommentBubbleWireframe.d.ts +2 -0
  8. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/VeltCommentsSidebarButtonUnreadIcon.d.ts +6 -0
  9. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/index.d.ts +1 -0
  10. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonWireframe.d.ts +2 -0
  11. package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/VeltSidebarButtonUnreadIcon.d.ts +6 -0
  12. package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/index.d.ts +1 -0
  13. package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +2 -0
  14. package/cjs/types/constants.d.ts +1 -1
  15. package/esm/index.js +20 -6
  16. package/esm/index.js.map +1 -1
  17. package/esm/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +1 -0
  18. package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
  19. package/esm/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/VeltCommentBubbleUnreadIcon.d.ts +6 -0
  20. package/esm/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/index.d.ts +1 -0
  21. package/esm/types/components/VeltCommentBubble/VeltCommentBubbleWireframe.d.ts +2 -0
  22. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/VeltCommentsSidebarButtonUnreadIcon.d.ts +6 -0
  23. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/index.d.ts +1 -0
  24. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonWireframe.d.ts +2 -0
  25. package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/VeltSidebarButtonUnreadIcon.d.ts +6 -0
  26. package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/index.d.ts +1 -0
  27. package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +2 -0
  28. package/esm/types/constants.d.ts +1 -1
  29. package/index.d.ts +10 -0
  30. package/package.json +1 -1
@@ -25,6 +25,7 @@ export interface IVeltCommentBubbleProps extends React.DetailedHTMLProps<React.H
25
25
  documentId?: string;
26
26
  folderId?: string;
27
27
  annotationId?: string;
28
+ openDialog?: boolean;
28
29
  }
29
30
  declare const SnippylyCommentBubble: React.FC<IVeltCommentBubbleProps>;
30
31
  export default SnippylyCommentBubble;
@@ -51,6 +51,7 @@ export interface IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.H
51
51
  filterGhostCommentsInSidebar?: boolean;
52
52
  onCommentClick?: Function;
53
53
  onSidebarOpen?: Function;
54
+ commentCountType?: 'total' | 'unread';
54
55
  }
55
56
  declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
56
57
  export default SnippylySidebarButton;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../constants';
3
+ export interface IVeltCommentBubbleUnreadIconProps extends IVeltWireframeCommonProps {
4
+ }
5
+ declare const VeltCommentBubbleUnreadIcon: React.FC<IVeltCommentBubbleUnreadIconProps>;
6
+ export default VeltCommentBubbleUnreadIcon;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentBubbleUnreadIcon";
@@ -1,12 +1,14 @@
1
1
  import React from "react";
2
2
  import { IVeltCommentBubbleAvatarProps } from "./VeltCommentBubbleAvatar/VeltCommentBubbleAvatar";
3
3
  import { IVeltCommentBubbleCommentsCountProps } from "./VeltCommentBubbleCommentsCount/VeltCommentBubbleCommentsCount";
4
+ import { IVeltCommentBubbleUnreadIconProps } from "./VeltCommentBubbleUnreadIcon/VeltCommentBubbleUnreadIcon";
4
5
  export interface IVeltCommentBubbleWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
5
6
  variant?: string;
6
7
  }
7
8
  export interface IVeltCommentBubbleWireframe extends React.FC<IVeltCommentBubbleWireframeProps> {
8
9
  Avatar: React.FC<IVeltCommentBubbleAvatarProps>;
9
10
  CommentsCount: React.FC<IVeltCommentBubbleCommentsCountProps>;
11
+ UnreadIcon: React.FC<IVeltCommentBubbleUnreadIconProps>;
10
12
  }
11
13
  declare const VeltCommentBubbleWireframe: IVeltCommentBubbleWireframe;
12
14
  export default VeltCommentBubbleWireframe;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../constants';
3
+ export interface IVeltCommentsSidebarButtonUnreadIconProps extends IVeltWireframeCommonProps {
4
+ }
5
+ declare const VeltCommentsSidebarButtonUnreadIcon: React.FC<IVeltCommentsSidebarButtonUnreadIconProps>;
6
+ export default VeltCommentsSidebarButtonUnreadIcon;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentsSidebarButtonUnreadIcon";
@@ -2,10 +2,12 @@ import React from 'react';
2
2
  import { IVeltWireframeCommonProps } from '../../constants';
3
3
  import { IVeltCommentsSidebarButtonCommentsCountProps } from './VeltCommentsSidebarButtonCommentsCount/VeltCommentsSidebarButtonCommentsCount';
4
4
  import { IVeltCommentsSidebarButtonIconProps } from './VeltCommentsSidebarButtonIcon/VeltCommentsSidebarButtonIcon';
5
+ import { IVeltCommentsSidebarButtonUnreadIconProps } from './VeltCommentsSidebarButtonUnreadIcon/VeltCommentsSidebarButtonUnreadIcon';
5
6
  export interface IVeltCommentsSidebarButtonWireframeProps extends IVeltWireframeCommonProps {
6
7
  }
7
8
  declare const VeltCommentsSidebarButtonWireframe: React.FC<IVeltCommentsSidebarButtonWireframeProps> & {
8
9
  CommentsCount: React.FC<IVeltCommentsSidebarButtonCommentsCountProps>;
9
10
  Icon: React.FC<IVeltCommentsSidebarButtonIconProps>;
11
+ UnreadIcon: React.FC<IVeltCommentsSidebarButtonUnreadIconProps>;
10
12
  };
11
13
  export default VeltCommentsSidebarButtonWireframe;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IVeltWireframeCommonProps } from '../../../constants';
3
+ export interface IVeltSidebarButtonUnreadIconProps extends IVeltWireframeCommonProps {
4
+ }
5
+ declare const VeltSidebarButtonUnreadIcon: React.FC<IVeltSidebarButtonUnreadIconProps>;
6
+ export default VeltSidebarButtonUnreadIcon;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltSidebarButtonUnreadIcon";
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { IVeltSidebarButtonCommentsCountProps } from './VeltSidebarButtonCommentsCount/VeltSidebarButtonCommentsCount';
3
3
  import { IVeltSidebarButtonIconProps } from './VeltSidebarButtonIcon/VeltSidebarButtonIcon';
4
+ import { IVeltSidebarButtonUnreadIconProps } from './VeltSidebarButtonUnreadIcon/VeltSidebarButtonUnreadIcon';
4
5
  import { IVeltWireframeCommonProps } from '../../constants';
5
6
  export interface IVeltSidebarButtonWireframeProps extends IVeltWireframeCommonProps {
6
7
  }
7
8
  declare const VeltSidebarButtonWireframe: React.FC<IVeltSidebarButtonWireframeProps> & {
8
9
  CommentsCount: React.FC<IVeltSidebarButtonCommentsCountProps>;
9
10
  Icon: React.FC<IVeltSidebarButtonIconProps>;
11
+ UnreadIcon: React.FC<IVeltSidebarButtonUnreadIconProps>;
10
12
  };
11
13
  export default VeltSidebarButtonWireframe;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "4.6.6";
2
+ export declare const VELT_SDK_VERSION = "4.6.7-beta.1";
3
3
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
4
4
  export declare const VELT_TAB_ID = "veltTabId";
5
5
  export declare const INTEGRITY_MAP: Record<string, string>;
package/esm/index.js CHANGED
@@ -137,13 +137,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
137
137
  }
138
138
  };
139
139
 
140
- var VELT_SDK_VERSION = '4.6.6';
140
+ var VELT_SDK_VERSION = '4.6.7-beta.1';
141
141
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
142
142
  var VELT_TAB_ID = 'veltTabId';
143
143
  // integrity map for the Velt SDK
144
144
  // Note: generate integrity hashes with: https://www.srihash.org/
145
145
  var INTEGRITY_MAP = {
146
- '4.6.6': 'sha384-NwjxBARMh0QyZR9MFw1alVnq9kG8FMREeH+x/2yu8PPQ2SjkpwrRJ01JjlfDhPrz',
146
+ '4.6.7-beta.1': 'sha384-2SAH5flmczIVYXtRDgIpTuJje1yHUcqAa85clH0l6/hin1JLZ/d51ydhsYIN6O2V',
147
147
  };
148
148
 
149
149
  var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
@@ -381,8 +381,8 @@ var SnippylyProvider = function (props) {
381
381
  };
382
382
 
383
383
  var SnippylyCommentBubble = function (props) {
384
- var targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children, shadowDom = props.shadowDom, variant = props.variant, darkMode = props.darkMode, commentCountType = props.commentCountType, context = props.context, contextOptions = props.contextOptions, annotationId = props.annotationId, documentId = props.documentId, folderId = props.folderId, locationId = props.locationId, readOnly = props.readOnly;
385
- return (React.createElement("velt-comment-bubble", { "annotation-id": annotationId, "comment-count-type": commentCountType, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, context: JSON.stringify(context), "context-options": JSON.stringify(contextOptions), "location-id": locationId, "document-id": documentId, "folder-id": folderId, "show-avatar": [true, false].includes(showAvatar) ? (showAvatar ? 'true' : 'false') : undefined, avatar: [true, false].includes(avatar) ? (avatar ? 'true' : 'false') : undefined, "comment-bubble-target-pin-hover": commentBubbleTargetPinHover ? 'true' : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined, variant: variant }, children));
384
+ var targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children, shadowDom = props.shadowDom, variant = props.variant, darkMode = props.darkMode, commentCountType = props.commentCountType, context = props.context, contextOptions = props.contextOptions, annotationId = props.annotationId, documentId = props.documentId, folderId = props.folderId, locationId = props.locationId, readOnly = props.readOnly, openDialog = props.openDialog;
385
+ return (React.createElement("velt-comment-bubble", { "annotation-id": annotationId, "comment-count-type": commentCountType, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, context: JSON.stringify(context), "context-options": JSON.stringify(contextOptions), "location-id": locationId, "document-id": documentId, "folder-id": folderId, "show-avatar": [true, false].includes(showAvatar) ? (showAvatar ? 'true' : 'false') : undefined, avatar: [true, false].includes(avatar) ? (avatar ? 'true' : 'false') : undefined, "comment-bubble-target-pin-hover": commentBubbleTargetPinHover ? 'true' : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined, "open-dialog": [true, false].includes(openDialog) ? (openDialog ? 'true' : 'false') : undefined, variant: variant }, children));
386
386
  };
387
387
 
388
388
  var SnippylyComments = function (props) {
@@ -798,7 +798,7 @@ var SnippylyRecorderTool = function (props) {
798
798
  };
799
799
 
800
800
  var SnippylySidebarButton = function (props) {
801
- 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, sidebarButtonCountType = props.sidebarButtonCountType, filterGhostCommentsInSidebar = props.filterGhostCommentsInSidebar;
801
+ 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, sidebarButtonCountType = props.sidebarButtonCountType, filterGhostCommentsInSidebar = props.filterGhostCommentsInSidebar, commentCountType = props.commentCountType;
802
802
  var ref = useRef();
803
803
  var onSidebarOpenRef = useRef(onSidebarOpen);
804
804
  var onCommentClickRef = useRef(onCommentClick);
@@ -834,7 +834,7 @@ var SnippylySidebarButton = function (props) {
834
834
  }
835
835
  };
836
836
  });
837
- 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, "sidebar-button-count-type": sidebarButtonCountType, "filter-ghost-comments-in-sidebar": [true, false].includes(filterGhostCommentsInSidebar) ? (filterGhostCommentsInSidebar ? 'true' : 'false') : undefined }, children));
837
+ 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, "sidebar-button-count-type": sidebarButtonCountType, "filter-ghost-comments-in-sidebar": [true, false].includes(filterGhostCommentsInSidebar) ? (filterGhostCommentsInSidebar ? 'true' : 'false') : undefined, "comment-count-type": commentCountType }, children));
838
838
  };
839
839
 
840
840
  var VeltCommentsSidebarButton = function (props) {
@@ -3367,6 +3367,12 @@ var VeltSidebarButtonIcon = function (props) {
3367
3367
  return (React.createElement("velt-sidebar-button-icon-wireframe", __assign({}, transformedProps), children));
3368
3368
  };
3369
3369
 
3370
+ var VeltSidebarButtonUnreadIcon = function (props) {
3371
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3372
+ var transformedProps = transformWireframeProps(remainingProps);
3373
+ return (React.createElement("velt-sidebar-button-unread-icon-wireframe", __assign({}, transformedProps), children));
3374
+ };
3375
+
3370
3376
  var VeltSidebarButtonWireframe = function (props) {
3371
3377
  var children = props.children, remainingProps = __rest(props, ["children"]);
3372
3378
  var transformedProps = transformWireframeProps(remainingProps);
@@ -3374,6 +3380,7 @@ var VeltSidebarButtonWireframe = function (props) {
3374
3380
  };
3375
3381
  VeltSidebarButtonWireframe.CommentsCount = VeltSidebarButtonCommentsCount;
3376
3382
  VeltSidebarButtonWireframe.Icon = VeltSidebarButtonIcon;
3383
+ VeltSidebarButtonWireframe.UnreadIcon = VeltSidebarButtonUnreadIcon;
3377
3384
 
3378
3385
  var VeltCommentToolWireframe = function (props) {
3379
3386
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -3532,12 +3539,19 @@ var VeltCommentBubbleCommentsCount = function (props) {
3532
3539
  return (React.createElement("velt-comment-bubble-comments-count-wireframe", null, children));
3533
3540
  };
3534
3541
 
3542
+ var VeltCommentBubbleUnreadIcon = function (props) {
3543
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3544
+ var transformedProps = transformWireframeProps(remainingProps);
3545
+ return (React.createElement("velt-comment-bubble-unread-icon-wireframe", __assign({}, transformedProps), children));
3546
+ };
3547
+
3535
3548
  var VeltCommentBubbleWireframe = function (props) {
3536
3549
  var children = props.children, remainingProp = __rest(props, ["children"]);
3537
3550
  return (React.createElement("velt-comment-bubble-wireframe", __assign({}, remainingProp), children));
3538
3551
  };
3539
3552
  VeltCommentBubbleWireframe.Avatar = VeltCommentBubbleAvatar;
3540
3553
  VeltCommentBubbleWireframe.CommentsCount = VeltCommentBubbleCommentsCount;
3554
+ VeltCommentBubbleWireframe.UnreadIcon = VeltCommentBubbleUnreadIcon;
3541
3555
 
3542
3556
  var VeltCommentsSidebarStatusDropdownWireframe = function (props) {
3543
3557
  var children = props.children, remainingProps = __rest(props, ["children"]);