@veltdev/react 4.6.6-beta.1 → 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.
- package/cjs/index.js +46 -6
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +1 -0
- package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/cjs/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/VeltCommentBubbleUnreadIcon.d.ts +6 -0
- package/cjs/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentBubble/VeltCommentBubbleWireframe.d.ts +2 -0
- package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/VeltCommentsSidebarButtonUnreadIcon.d.ts +6 -0
- package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonWireframe.d.ts +2 -0
- package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/VeltSidebarButtonUnreadIcon.d.ts +6 -0
- package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/index.d.ts +1 -0
- package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +2 -1
- package/cjs/types/hooks/index.d.ts +1 -1
- package/esm/index.js +46 -7
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +1 -0
- package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/esm/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/VeltCommentBubbleUnreadIcon.d.ts +6 -0
- package/esm/types/components/VeltCommentBubble/VeltCommentBubbleUnreadIcon/index.d.ts +1 -0
- package/esm/types/components/VeltCommentBubble/VeltCommentBubbleWireframe.d.ts +2 -0
- package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/VeltCommentsSidebarButtonUnreadIcon.d.ts +6 -0
- package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonUnreadIcon/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonWireframe.d.ts +2 -0
- package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/VeltSidebarButtonUnreadIcon.d.ts +6 -0
- package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/index.d.ts +1 -0
- package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +2 -1
- package/esm/types/hooks/index.d.ts +1 -1
- package/index.d.ts +13 -2
- 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;
|
package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonUnreadIcon/index.d.ts
ADDED
|
@@ -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;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "4.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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Location, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse } from "@veltdev/types";
|
|
1
|
+
import { Location, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse } from "@veltdev/types";
|
|
2
2
|
export declare function useClient(): any;
|
|
3
3
|
export declare function useIdentify(user: User, userOptions?: Options): void;
|
|
4
4
|
export declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
|
|
@@ -25,3 +25,4 @@ export declare function useUiState<T extends object = object>(): {
|
|
|
25
25
|
};
|
|
26
26
|
export declare function useHeartbeat(heartbeatConfig?: HeartbeatConfig): GetHeartbeatResponse;
|
|
27
27
|
export declare function useCurrentUser(): User | null | undefined;
|
|
28
|
+
export declare function useCurrentUserPermissions(): GetUserPermissionsResponse | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useSetLocation, useSetDocument, useSetDocumentId, useSetDocuments, useSetRootDocument, useSetLocations, useSetRootLocation, useUnsetDocumentId, useUnsetDocuments, useIdentify, useClient, useVeltInitState, useUiState, useHeartbeat, useCurrentUser, } from './Client';
|
|
1
|
+
export { useSetLocation, useSetDocument, useSetDocumentId, useSetDocuments, useSetRootDocument, useSetLocations, useSetRootLocation, useUnsetDocumentId, useUnsetDocuments, useIdentify, useClient, useVeltInitState, useUiState, useHeartbeat, useCurrentUser, useCurrentUserPermissions, } from './Client';
|
|
2
2
|
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, useCommentCopyLinkHandler, useCommentAnnotationById, useCommentSidebarActionButtonClick, useCommentSidebarInit, useCommentSidebarData, } from './CommentElement';
|
|
3
3
|
export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useSubscribeCommentAnnotation, useUnsubscribeCommentAnnotation, useAssignUser, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, useCommentEventCallback, useGetCommentAnnotations, useCommentAnnotationsCount, } from './CommentActions';
|
|
4
4
|
export { useVeltEventCallback } from './CoreActions';
|
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.
|
|
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.
|
|
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"]);
|
|
@@ -6275,6 +6289,31 @@ function useCurrentUser() {
|
|
|
6275
6289
|
}, [client === null || client === void 0 ? void 0 : client.getCurrentUser]);
|
|
6276
6290
|
return data;
|
|
6277
6291
|
}
|
|
6292
|
+
function useCurrentUserPermissions() {
|
|
6293
|
+
var client = useVeltClient().client;
|
|
6294
|
+
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
6295
|
+
var subscriptionRef = React.useRef();
|
|
6296
|
+
React.useEffect(function () {
|
|
6297
|
+
if (!(client === null || client === void 0 ? void 0 : client.getCurrentUserPermissions))
|
|
6298
|
+
return;
|
|
6299
|
+
// Unsubscribe from the previous subscription if it exists
|
|
6300
|
+
if (subscriptionRef.current) {
|
|
6301
|
+
subscriptionRef.current.unsubscribe();
|
|
6302
|
+
}
|
|
6303
|
+
var subscription = client.getCurrentUserPermissions().subscribe(function (res) {
|
|
6304
|
+
setData(res);
|
|
6305
|
+
});
|
|
6306
|
+
// Store the new subscription
|
|
6307
|
+
subscriptionRef.current = subscription;
|
|
6308
|
+
// Cleanup function.
|
|
6309
|
+
return function () {
|
|
6310
|
+
if (subscriptionRef.current) {
|
|
6311
|
+
subscriptionRef.current.unsubscribe();
|
|
6312
|
+
}
|
|
6313
|
+
};
|
|
6314
|
+
}, [client === null || client === void 0 ? void 0 : client.getCurrentUserPermissions]);
|
|
6315
|
+
return data;
|
|
6316
|
+
}
|
|
6278
6317
|
|
|
6279
6318
|
function useCommentUtils() {
|
|
6280
6319
|
var _a = React.useState(), commentElement = _a[0], setCommentElement = _a[1];
|
|
@@ -7995,5 +8034,5 @@ var logLiveState = function (action, liveStateDataId) {
|
|
|
7995
8034
|
}
|
|
7996
8035
|
};
|
|
7997
8036
|
|
|
7998
|
-
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteGroupOptionWireframe, VeltAutocompleteOptionWireframe, VeltButtonWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltCursorPointerWireframe, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, VeltPresenceTooltipWireframe, VeltPresenceWireframe, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerExpandedWireframe, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSingleEditorModePanel, VeltSingleEditorModePanelWireframe, VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoEditor, VeltVideoEditorPlayerWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAssignUser, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentAnnotationsCount, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentEventCallback, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactList, useContactSelected, useContactUtils, useCopyLink, useCurrentUser, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetCommentAnnotations, useGetLink, useGetRecording, useHeartbeat, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncEventCallback, useLiveStateSyncUtils, useNotificationEventCallback, useNotificationSettings, useNotificationUtils, useNotificationsData, usePresenceData, usePresenceEventCallback, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderEventCallback, useRecorderUtils, useRecordingDataByRecorderId, useRecordings, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetDocuments, useSetLiveStateData, useSetLocation, useSetLocations, useSetRootDocument, useSetRootLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUiState, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsetDocuments, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltEventCallback, useVeltInitState, useViewsUtils };
|
|
8037
|
+
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteGroupOptionWireframe, VeltAutocompleteOptionWireframe, VeltButtonWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltCursorPointerWireframe, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, VeltPresenceTooltipWireframe, VeltPresenceWireframe, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerExpandedWireframe, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSingleEditorModePanel, VeltSingleEditorModePanelWireframe, VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoEditor, VeltVideoEditorPlayerWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAssignUser, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentAnnotationsCount, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentEventCallback, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactList, useContactSelected, useContactUtils, useCopyLink, useCurrentUser, useCurrentUserPermissions, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetCommentAnnotations, useGetLink, useGetRecording, useHeartbeat, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncEventCallback, useLiveStateSyncUtils, useNotificationEventCallback, useNotificationSettings, useNotificationUtils, useNotificationsData, usePresenceData, usePresenceEventCallback, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderEventCallback, useRecorderUtils, useRecordingDataByRecorderId, useRecordings, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetDocuments, useSetLiveStateData, useSetLocation, useSetLocations, useSetRootDocument, useSetRootLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUiState, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsetDocuments, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltEventCallback, useVeltInitState, useViewsUtils };
|
|
7999
8038
|
//# sourceMappingURL=index.js.map
|