@veltdev/react 3.0.26 → 3.0.27
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 +64 -5
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
- package/cjs/types/components/VeltData/VeltData.d.ts +1 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe.d.ts +8 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe.d.ts +8 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe.d.ts +12 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe.d.ts +8 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe.d.ts +12 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogWireframe.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentElement.d.ts +3 -0
- package/cjs/types/hooks/index.d.ts +1 -1
- package/esm/index.js +64 -6
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
- package/esm/types/components/VeltData/VeltData.d.ts +1 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe.d.ts +8 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe.d.ts +8 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe.d.ts +12 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe.d.ts +8 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe.d.ts +12 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogWireframe.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentElement.d.ts +3 -0
- package/esm/types/hooks/index.d.ts +1 -1
- package/index.d.ts +42 -1
- package/package.json +1 -1
|
@@ -70,6 +70,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
|
|
|
70
70
|
onCommentUpdate?: Function;
|
|
71
71
|
onCommentAccept?: Function;
|
|
72
72
|
onCommentReject?: Function;
|
|
73
|
+
onCopyLink?: Function;
|
|
73
74
|
onSidebarButtonOnCommentDialogClick?: Function;
|
|
74
75
|
onCommentSelectionChange?: Function;
|
|
75
76
|
customStatus?: {
|
|
@@ -124,6 +125,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
|
|
|
124
125
|
*/
|
|
125
126
|
multiThreadMode?: boolean;
|
|
126
127
|
multiThread?: boolean;
|
|
128
|
+
deleteReplyConfirmation?: boolean;
|
|
127
129
|
}
|
|
128
130
|
declare const SnippylyComments: React.FC<IVeltCommentsProps>;
|
|
129
131
|
export default SnippylyComments;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
variant?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe extends React.FC<IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframeProps> {
|
|
6
|
+
}
|
|
7
|
+
declare const VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe: IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe;
|
|
8
|
+
export default VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
variant?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe extends React.FC<IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframeProps> {
|
|
6
|
+
}
|
|
7
|
+
declare const VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe: IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe;
|
|
8
|
+
export default VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe } from './VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe';
|
|
3
|
+
import { IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe } from './VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe';
|
|
4
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
5
|
+
variant?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe extends React.FC<IVeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframeProps> {
|
|
8
|
+
MarkAllRead: IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe;
|
|
9
|
+
MarkAllResolved: IVeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe;
|
|
10
|
+
}
|
|
11
|
+
declare const VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe: IVeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe;
|
|
12
|
+
export default VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
variant?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe extends React.FC<IVeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframeProps> {
|
|
6
|
+
}
|
|
7
|
+
declare const VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe: IVeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe;
|
|
8
|
+
export default VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe } from './VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe';
|
|
3
|
+
import { IVeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe } from './VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe';
|
|
4
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
5
|
+
variant?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IVeltMultiThreadCommentDialogMinimalActionsDropdownWireframe extends React.FC<IVeltMultiThreadCommentDialogMinimalActionsDropdownWireframeProps> {
|
|
8
|
+
Content: IVeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe;
|
|
9
|
+
Trigger: IVeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe;
|
|
10
|
+
}
|
|
11
|
+
declare const VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe: IVeltMultiThreadCommentDialogMinimalActionsDropdownWireframe;
|
|
12
|
+
export default VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe';
|
|
@@ -4,6 +4,7 @@ import { IVeltMultiThreadCommentDialogCommentCountWireframeProps } from './VeltM
|
|
|
4
4
|
import { IVeltMultiThreadCommentDialogComposerContainerWireframeProps } from './VeltMultiThreadCommentDialogComposerContainerWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe';
|
|
5
5
|
import { IVeltMultiThreadCommentDialogEmptyPlaceholderWireframe } from './VeltMultiThreadCommentDialogEmptyPlaceholderWireframe/VeltMultiThreadCommentDialogEmptyPlaceholderWireframe';
|
|
6
6
|
import { IVeltMultiThreadCommentDialogListWireframeProps } from './VeltMultiThreadCommentDialogListWireframe/VeltMultiThreadCommentDialogListWireframe';
|
|
7
|
+
import { IVeltMultiThreadCommentDialogMinimalActionsDropdownWireframe } from './VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe/VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe';
|
|
7
8
|
import { IVeltMultiThreadCommentDialogMinimalFilterDropdownWireframe } from './VeltMultiThreadCommentDialogMinimalFilterDropdownWireframe/VeltMultiThreadCommentDialogMinimalFilterDropdownWireframe';
|
|
8
9
|
import { IVeltMultiThreadCommentDialogNewThreadButtonWireframeProps } from './VeltMultiThreadCommentDialogNewThreadButtonWireframe/VeltMultiThreadCommentDialogNewThreadButtonWireframe';
|
|
9
10
|
export interface IVeltMultiThreadCommentDialogWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
@@ -17,6 +18,7 @@ export interface IVeltMultiThreadCommentDialogWireframe extends React.FC<IVeltMu
|
|
|
17
18
|
MinimalFilterDropdown: IVeltMultiThreadCommentDialogMinimalFilterDropdownWireframe;
|
|
18
19
|
EmptyPlaceholder: IVeltMultiThreadCommentDialogEmptyPlaceholderWireframe;
|
|
19
20
|
NewThreadButton: React.FC<IVeltMultiThreadCommentDialogNewThreadButtonWireframeProps>;
|
|
21
|
+
MinimalActionsDropdown: IVeltMultiThreadCommentDialogMinimalActionsDropdownWireframe;
|
|
20
22
|
}
|
|
21
23
|
declare const VeltMultiThreadCommentDialogWireframe: IVeltMultiThreadCommentDialogWireframe;
|
|
22
24
|
export default VeltMultiThreadCommentDialogWireframe;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -21,3 +21,6 @@ export declare function useCommentAddHandler(): any;
|
|
|
21
21
|
export declare function useCommentUpdateHandler(): any;
|
|
22
22
|
export declare function useCommentDialogSidebarClickHandler(): any;
|
|
23
23
|
export declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
|
|
24
|
+
export declare function useCommentCopyLinkHandler(): {
|
|
25
|
+
link: string;
|
|
26
|
+
} | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useSetLocation, useSetDocument, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
|
|
2
|
-
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, } from './CommentElement';
|
|
2
|
+
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, useCommentCopyLinkHandler } from './CommentElement';
|
|
3
3
|
export { useCursorUtils, useCursorUsers, } from './CursorElement';
|
|
4
4
|
export { useHuddleUtils, } from './HuddleElement';
|
|
5
5
|
export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessTimer, useEditorAccessRequestHandler, useServerConnectionStateChangeHandler, useLiveState, } from './LiveStateSyncElement';
|
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.
|
|
135
|
+
var VELT_SDK_VERSION = '3.0.27';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -226,7 +226,7 @@ var SnippylyCommentBubble = function (props) {
|
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
var SnippylyComments = function (props) {
|
|
229
|
-
var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, onSignIn = props.onSignIn, onUpgrade = props.onUpgrade, textMode = props.textMode, popoverMode = props.popoverMode, popoverTriangleComponent = props.popoverTriangleComponent, floatingCommentDialog = props.floatingCommentDialog, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, upgradeButton = props.upgradeButton, attachments = props.attachments, recordings = props.recordings, reactions = props.reactions, deviceInfo = props.deviceInfo, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, mobileMode = props.mobileMode, inlineCommentMode = props.inlineCommentMode, privateCommentMode = props.privateCommentMode, minimap = props.minimap, minimapPosition = props.minimapPosition, persistentCommentMode = props.persistentCommentMode, ghostComments = props.ghostComments, ghostCommentsIndicator = props.ghostCommentsIndicator, commentsOnDom = props.commentsOnDom, resolvedCommentsOnDom = props.resolvedCommentsOnDom, bubbleOnPin = props.bubbleOnPin, bubbleOnPinHover = props.bubbleOnPinHover, commentTool = props.commentTool, sidebarButtonOnCommentDialog = props.sidebarButtonOnCommentDialog, deviceIndicatorOnCommentPins = props.deviceIndicatorOnCommentPins, scrollToComment = props.scrollToComment, userMentions = props.userMentions, deleteOnBackspace = props.deleteOnBackspace, hotkey = props.hotkey, recordingSummary = props.recordingSummary, recordingCountdown = props.recordingCountdown, unreadIndicatorMode = props.unreadIndicatorMode, enterKeyToSubmit = props.enterKeyToSubmit, pinShadowDom = props.pinShadowDom, dialogShadowDom = props.dialogShadowDom, persistentCommentShadowDom = props.persistentCommentShadowDom, shadowDom = props.shadowDom, changeDetectionInCommentMode = props.changeDetectionInCommentMode, areaComment = props.areaComment, pinCursorImage = props.pinCursorImage, allowedElementIds = props.allowedElementIds, allowedElementClassNames = props.allowedElementClassNames, allowedElementQuerySelectors = props.allowedElementQuerySelectors, commentPinHighlighter = props.commentPinHighlighter, customReactions = props.customReactions, onCommentAdd = props.onCommentAdd, onCommentUpdate = props.onCommentUpdate, onCommentAccept = props.onCommentAccept, onCommentReject = props.onCommentReject, onSidebarButtonOnCommentDialogClick = props.onSidebarButtonOnCommentDialogClick, onCommentSelectionChange = props.onCommentSelectionChange, customStatus = props.customStatus, customListDataOnAnnotation = props.customListDataOnAnnotation, customListDataOnComment = props.customListDataOnComment, customPriority = props.customPriority, customCategory = props.customCategory, status = props.status, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children, textCommentToolShadowDom = props.textCommentToolShadowDom, textCommentToolbarShadowDom = props.textCommentToolbarShadowDom, dialogDarkMode = props.dialogDarkMode, pinDarkMode = props.pinDarkMode, textCommentToolDarkMode = props.textCommentToolDarkMode, textCommentToolbarDarkMode = props.textCommentToolbarDarkMode, composerMode = props.composerMode, atHereLabel = props.atHereLabel, atHereDescription = props.atHereDescription, multiThreadMode = props.multiThreadMode, multiThread = props.multiThread;
|
|
229
|
+
var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, onSignIn = props.onSignIn, onUpgrade = props.onUpgrade, textMode = props.textMode, popoverMode = props.popoverMode, popoverTriangleComponent = props.popoverTriangleComponent, floatingCommentDialog = props.floatingCommentDialog, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, upgradeButton = props.upgradeButton, attachments = props.attachments, recordings = props.recordings, reactions = props.reactions, deviceInfo = props.deviceInfo, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, mobileMode = props.mobileMode, inlineCommentMode = props.inlineCommentMode, privateCommentMode = props.privateCommentMode, minimap = props.minimap, minimapPosition = props.minimapPosition, persistentCommentMode = props.persistentCommentMode, ghostComments = props.ghostComments, ghostCommentsIndicator = props.ghostCommentsIndicator, commentsOnDom = props.commentsOnDom, resolvedCommentsOnDom = props.resolvedCommentsOnDom, bubbleOnPin = props.bubbleOnPin, bubbleOnPinHover = props.bubbleOnPinHover, commentTool = props.commentTool, sidebarButtonOnCommentDialog = props.sidebarButtonOnCommentDialog, deviceIndicatorOnCommentPins = props.deviceIndicatorOnCommentPins, scrollToComment = props.scrollToComment, userMentions = props.userMentions, deleteOnBackspace = props.deleteOnBackspace, hotkey = props.hotkey, recordingSummary = props.recordingSummary, recordingCountdown = props.recordingCountdown, unreadIndicatorMode = props.unreadIndicatorMode, enterKeyToSubmit = props.enterKeyToSubmit, pinShadowDom = props.pinShadowDom, dialogShadowDom = props.dialogShadowDom, persistentCommentShadowDom = props.persistentCommentShadowDom, shadowDom = props.shadowDom, changeDetectionInCommentMode = props.changeDetectionInCommentMode, areaComment = props.areaComment, pinCursorImage = props.pinCursorImage, allowedElementIds = props.allowedElementIds, allowedElementClassNames = props.allowedElementClassNames, allowedElementQuerySelectors = props.allowedElementQuerySelectors, commentPinHighlighter = props.commentPinHighlighter, customReactions = props.customReactions, onCommentAdd = props.onCommentAdd, onCommentUpdate = props.onCommentUpdate, onCommentAccept = props.onCommentAccept, onCommentReject = props.onCommentReject, onSidebarButtonOnCommentDialogClick = props.onSidebarButtonOnCommentDialogClick, onCommentSelectionChange = props.onCommentSelectionChange, customStatus = props.customStatus, customListDataOnAnnotation = props.customListDataOnAnnotation, customListDataOnComment = props.customListDataOnComment, customPriority = props.customPriority, customCategory = props.customCategory, status = props.status, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children, textCommentToolShadowDom = props.textCommentToolShadowDom, textCommentToolbarShadowDom = props.textCommentToolbarShadowDom, dialogDarkMode = props.dialogDarkMode, pinDarkMode = props.pinDarkMode, textCommentToolDarkMode = props.textCommentToolDarkMode, textCommentToolbarDarkMode = props.textCommentToolbarDarkMode, composerMode = props.composerMode, atHereLabel = props.atHereLabel, atHereDescription = props.atHereDescription, multiThreadMode = props.multiThreadMode, multiThread = props.multiThread, onCopyLink = props.onCopyLink, deleteReplyConfirmation = props.deleteReplyConfirmation;
|
|
230
230
|
var ref = useRef();
|
|
231
231
|
var onSignInRef = useRef(onSignIn);
|
|
232
232
|
var onUpgradeRef = useRef(onUpgrade);
|
|
@@ -237,10 +237,14 @@ var SnippylyComments = function (props) {
|
|
|
237
237
|
var onSidebarButtonOnCommentDialogClickRef = useRef(onSidebarButtonOnCommentDialogClick);
|
|
238
238
|
var onCustomPinInjectRef = useRef(onCustomPinInject);
|
|
239
239
|
var onCommentSelectionChangeRef = useRef(onCommentSelectionChange);
|
|
240
|
+
var onCopyLinkRef = useRef(onCopyLink);
|
|
240
241
|
// Update the ref to always point to the latest callback function
|
|
241
242
|
useEffect(function () {
|
|
242
243
|
onSignInRef.current = onSignIn;
|
|
243
244
|
}, [onSignIn]);
|
|
245
|
+
useEffect(function () {
|
|
246
|
+
onCopyLinkRef.current = onCopyLink;
|
|
247
|
+
}, [onCopyLink]);
|
|
244
248
|
useEffect(function () {
|
|
245
249
|
onUpgradeRef.current = onUpgrade;
|
|
246
250
|
}, [onUpgrade]);
|
|
@@ -312,6 +316,11 @@ var SnippylyComments = function (props) {
|
|
|
312
316
|
onCommentSelectionChangeRef.current(event === null || event === void 0 ? void 0 : event.detail);
|
|
313
317
|
}
|
|
314
318
|
};
|
|
319
|
+
var handleCopyLink = function (event) {
|
|
320
|
+
if (onCopyLinkRef.current) {
|
|
321
|
+
onCopyLinkRef.current(event === null || event === void 0 ? void 0 : event.detail);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
315
324
|
if (ref.current) {
|
|
316
325
|
element = ref.current;
|
|
317
326
|
if (element) {
|
|
@@ -324,6 +333,7 @@ var SnippylyComments = function (props) {
|
|
|
324
333
|
element.addEventListener('onSidebarButtonOnCommentDialogClick', handleSidebarButtonOnCommentDialogClick);
|
|
325
334
|
element.addEventListener('onCustomPinInject', handleCustomPinInject);
|
|
326
335
|
element.addEventListener('onCommentSelectionChange', handleCommentSelectionChange);
|
|
336
|
+
element.addEventListener('onCopyLink', handleCopyLink);
|
|
327
337
|
}
|
|
328
338
|
}
|
|
329
339
|
return function () {
|
|
@@ -337,10 +347,11 @@ var SnippylyComments = function (props) {
|
|
|
337
347
|
element.removeEventListener('onSidebarButtonOnCommentDialogClick', handleSidebarButtonOnCommentDialogClick);
|
|
338
348
|
element.removeEventListener('onCustomPinInject', handleCustomPinInject);
|
|
339
349
|
element.removeEventListener('onCommentSelectionChange', handleCommentSelectionChange);
|
|
350
|
+
element.removeEventListener('onCopyLink', handleCopyLink);
|
|
340
351
|
}
|
|
341
352
|
};
|
|
342
353
|
}, []);
|
|
343
|
-
return (React.createElement("velt-comments", { ref: ref, "at-here-label": atHereLabel, "at-here-description": atHereDescription, "composer-mode": composerMode, "auto-categorize": [true, false].includes(autoCategorize) ? (autoCategorize ? 'true' : 'false') : undefined, "data-stream-view-container-id": streamViewContainerId, "text-mode": [true, false].includes(textMode) ? (textMode ? 'true' : 'false') : undefined, "popover-mode": [true, false].includes(popoverMode) ? (popoverMode ? 'true' : 'false') : undefined, "popover-triangle-component": [true, false].includes(popoverTriangleComponent) ? (popoverTriangleComponent ? 'true' : 'false') : undefined, "floating-comment-dialog": [true, false].includes(floatingCommentDialog) ? (floatingCommentDialog ? 'true' : 'false') : undefined, "moderator-mode": [true, false].includes(moderatorMode) ? (moderatorMode ? 'true' : 'false') : undefined, "stream-mode": [true, false].includes(streamMode) ? (streamMode ? 'true' : 'false') : undefined, "sign-in-button": [true, false].includes(signInButton) ? (signInButton ? 'true' : 'false') : undefined, "upgrade-button": [true, false].includes(upgradeButton) ? (upgradeButton ? 'true' : 'false') : undefined, attachments: [true, false].includes(attachments) ? (attachments ? 'true' : 'false') : undefined, recordings: recordings, reactions: [true, false].includes(reactions) ? (reactions ? 'true' : 'false') : undefined, "device-info": [true, false].includes(deviceInfo) ? (deviceInfo ? 'true' : 'false') : undefined, "comment-index": [true, false].includes(commentIndex) ? (commentIndex ? 'true' : 'false') : undefined, "dialog-on-hover": [true, false].includes(dialogOnHover) ? (dialogOnHover ? 'true' : 'false') : undefined, "dialog-on-target-element-click": [true, false].includes(dialogOnTargetElementClick) ? (dialogOnTargetElementClick ? 'true' : 'false') : undefined, priority: [true, false].includes(priority) ? (priority ? 'true' : 'false') : undefined, status: [true, false].includes(status) ? (status ? 'true' : 'false') : undefined, "resolve-button": [true, false].includes(resolveButton) ? (resolveButton ? 'true' : 'false') : undefined, "inbox-mode": [true, false].includes(inboxMode) ? (inboxMode ? 'true' : 'false') : undefined, "suggestion-mode": [true, false].includes(suggestionMode) ? (suggestionMode ? 'true' : 'false') : undefined, "mobile-mode": [true, false].includes(mobileMode) ? (mobileMode ? 'true' : 'false') : undefined, "inline-comment-mode": [true, false].includes(inlineCommentMode) ? (inlineCommentMode ? 'true' : 'false') : undefined, "private-comment-mode": [true, false].includes(privateCommentMode) ? (privateCommentMode ? 'true' : 'false') : undefined, minimap: [true, false].includes(minimap) ? (minimap ? 'true' : 'false') : undefined, "minimap-position": minimapPosition, "persistent-comment-mode": [true, false].includes(persistentCommentMode) ? (persistentCommentMode ? 'true' : 'false') : undefined, "ghost-comments": [true, false].includes(ghostComments) ? (ghostComments ? 'true' : 'false') : undefined, "ghost-comments-indicator": [true, false].includes(ghostCommentsIndicator) ? (ghostCommentsIndicator ? 'true' : 'false') : undefined, "comments-on-dom": [true, false].includes(commentsOnDom) ? (commentsOnDom ? 'true' : 'false') : undefined, "resolved-comments-on-dom": [true, false].includes(resolvedCommentsOnDom) ? (resolvedCommentsOnDom ? 'true' : 'false') : undefined, "bubble-on-pin": [true, false].includes(bubbleOnPin) ? (bubbleOnPin ? 'true' : 'false') : undefined, "bubble-on-pin-hover": [true, false].includes(bubbleOnPinHover) ? (bubbleOnPinHover ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined, "sidebar-button-on-comment-dialog": [true, false].includes(sidebarButtonOnCommentDialog) ? (sidebarButtonOnCommentDialog ? 'true' : 'false') : undefined, "device-indicator-on-comment-pins": [true, false].includes(deviceIndicatorOnCommentPins) ? (deviceIndicatorOnCommentPins ? 'true' : 'false') : undefined, "scroll-to-comment": [true, false].includes(scrollToComment) ? (scrollToComment ? 'true' : 'false') : undefined, "user-mentions": [true, false].includes(userMentions) ? (userMentions ? 'true' : 'false') : undefined, "delete-on-backspace": [true, false].includes(deleteOnBackspace) ? (deleteOnBackspace ? 'true' : 'false') : undefined, hotkey: [true, false].includes(hotkey) ? (hotkey ? 'true' : 'false') : undefined, "recording-summary": [true, false].includes(recordingSummary) ? (recordingSummary ? 'true' : 'false') : undefined, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "unread-indicator-mode": unreadIndicatorMode, "enter-key-to-submit": [true, false].includes(enterKeyToSubmit) ? (enterKeyToSubmit ? 'true' : 'false') : undefined, "pin-shadow-dom": [true, false].includes(pinShadowDom) ? (pinShadowDom ? 'true' : 'false') : undefined, "dialog-shadow-dom": [true, false].includes(dialogShadowDom) ? (dialogShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "text-comment-tool-shadow-dom": [true, false].includes(textCommentToolShadowDom) ? (textCommentToolShadowDom ? 'true' : 'false') : undefined, "text-comment-toolbar-shadow-dom": [true, false].includes(textCommentToolbarShadowDom) ? (textCommentToolbarShadowDom ? 'true' : 'false') : undefined, "persistent-comment-shadow-dom": [true, false].includes(persistentCommentShadowDom) ? (persistentCommentShadowDom ? 'true' : 'false') : undefined, "change-detection-in-comment-mode": [true, false].includes(changeDetectionInCommentMode) ? (changeDetectionInCommentMode ? 'true' : 'false') : undefined, "area-comment": [true, false].includes(areaComment) ? (areaComment ? 'true' : 'false') : undefined, "pin-cursor-image": pinCursorImage, "allowed-element-ids": JSON.stringify(allowedElementIds), "allowed-element-class-names": JSON.stringify(allowedElementClassNames), "allowed-element-query-selectors": JSON.stringify(allowedElementQuerySelectors), "comment-pin-highlighter": [true, false].includes(commentPinHighlighter) ? (commentPinHighlighter ? 'true' : 'false') : undefined, "custom-reactions": JSON.stringify(customReactions), "custom-status": JSON.stringify(customStatus), "custom-list-data-on-annotation": JSON.stringify(customListDataOnAnnotation), "custom-list-data-on-comment": JSON.stringify(customListDataOnComment), "custom-priority": JSON.stringify(customPriority), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "dialog-dark-mode": [true, false].includes(dialogDarkMode) ? (dialogDarkMode ? 'true' : 'false') : undefined, "pin-dark-mode": [true, false].includes(pinDarkMode) ? (pinDarkMode ? 'true' : 'false') : undefined, "text-comment-tool-dark-mode": [true, false].includes(textCommentToolDarkMode) ? (textCommentToolDarkMode ? 'true' : 'false') : undefined, "text-comment-toolbar-dark-mode": [true, false].includes(textCommentToolbarDarkMode) ? (textCommentToolbarDarkMode ? 'true' : 'false') : undefined, "multi-thread-mode": [true, false].includes(multiThreadMode) ? (multiThreadMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined }, children));
|
|
354
|
+
return (React.createElement("velt-comments", { ref: ref, "at-here-label": atHereLabel, "at-here-description": atHereDescription, "composer-mode": composerMode, "delete-reply-confirmation": [true, false].includes(deleteReplyConfirmation) ? (deleteReplyConfirmation ? 'true' : 'false') : undefined, "auto-categorize": [true, false].includes(autoCategorize) ? (autoCategorize ? 'true' : 'false') : undefined, "data-stream-view-container-id": streamViewContainerId, "text-mode": [true, false].includes(textMode) ? (textMode ? 'true' : 'false') : undefined, "popover-mode": [true, false].includes(popoverMode) ? (popoverMode ? 'true' : 'false') : undefined, "popover-triangle-component": [true, false].includes(popoverTriangleComponent) ? (popoverTriangleComponent ? 'true' : 'false') : undefined, "floating-comment-dialog": [true, false].includes(floatingCommentDialog) ? (floatingCommentDialog ? 'true' : 'false') : undefined, "moderator-mode": [true, false].includes(moderatorMode) ? (moderatorMode ? 'true' : 'false') : undefined, "stream-mode": [true, false].includes(streamMode) ? (streamMode ? 'true' : 'false') : undefined, "sign-in-button": [true, false].includes(signInButton) ? (signInButton ? 'true' : 'false') : undefined, "upgrade-button": [true, false].includes(upgradeButton) ? (upgradeButton ? 'true' : 'false') : undefined, attachments: [true, false].includes(attachments) ? (attachments ? 'true' : 'false') : undefined, recordings: recordings, reactions: [true, false].includes(reactions) ? (reactions ? 'true' : 'false') : undefined, "device-info": [true, false].includes(deviceInfo) ? (deviceInfo ? 'true' : 'false') : undefined, "comment-index": [true, false].includes(commentIndex) ? (commentIndex ? 'true' : 'false') : undefined, "dialog-on-hover": [true, false].includes(dialogOnHover) ? (dialogOnHover ? 'true' : 'false') : undefined, "dialog-on-target-element-click": [true, false].includes(dialogOnTargetElementClick) ? (dialogOnTargetElementClick ? 'true' : 'false') : undefined, priority: [true, false].includes(priority) ? (priority ? 'true' : 'false') : undefined, status: [true, false].includes(status) ? (status ? 'true' : 'false') : undefined, "resolve-button": [true, false].includes(resolveButton) ? (resolveButton ? 'true' : 'false') : undefined, "inbox-mode": [true, false].includes(inboxMode) ? (inboxMode ? 'true' : 'false') : undefined, "suggestion-mode": [true, false].includes(suggestionMode) ? (suggestionMode ? 'true' : 'false') : undefined, "mobile-mode": [true, false].includes(mobileMode) ? (mobileMode ? 'true' : 'false') : undefined, "inline-comment-mode": [true, false].includes(inlineCommentMode) ? (inlineCommentMode ? 'true' : 'false') : undefined, "private-comment-mode": [true, false].includes(privateCommentMode) ? (privateCommentMode ? 'true' : 'false') : undefined, minimap: [true, false].includes(minimap) ? (minimap ? 'true' : 'false') : undefined, "minimap-position": minimapPosition, "persistent-comment-mode": [true, false].includes(persistentCommentMode) ? (persistentCommentMode ? 'true' : 'false') : undefined, "ghost-comments": [true, false].includes(ghostComments) ? (ghostComments ? 'true' : 'false') : undefined, "ghost-comments-indicator": [true, false].includes(ghostCommentsIndicator) ? (ghostCommentsIndicator ? 'true' : 'false') : undefined, "comments-on-dom": [true, false].includes(commentsOnDom) ? (commentsOnDom ? 'true' : 'false') : undefined, "resolved-comments-on-dom": [true, false].includes(resolvedCommentsOnDom) ? (resolvedCommentsOnDom ? 'true' : 'false') : undefined, "bubble-on-pin": [true, false].includes(bubbleOnPin) ? (bubbleOnPin ? 'true' : 'false') : undefined, "bubble-on-pin-hover": [true, false].includes(bubbleOnPinHover) ? (bubbleOnPinHover ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined, "sidebar-button-on-comment-dialog": [true, false].includes(sidebarButtonOnCommentDialog) ? (sidebarButtonOnCommentDialog ? 'true' : 'false') : undefined, "device-indicator-on-comment-pins": [true, false].includes(deviceIndicatorOnCommentPins) ? (deviceIndicatorOnCommentPins ? 'true' : 'false') : undefined, "scroll-to-comment": [true, false].includes(scrollToComment) ? (scrollToComment ? 'true' : 'false') : undefined, "user-mentions": [true, false].includes(userMentions) ? (userMentions ? 'true' : 'false') : undefined, "delete-on-backspace": [true, false].includes(deleteOnBackspace) ? (deleteOnBackspace ? 'true' : 'false') : undefined, hotkey: [true, false].includes(hotkey) ? (hotkey ? 'true' : 'false') : undefined, "recording-summary": [true, false].includes(recordingSummary) ? (recordingSummary ? 'true' : 'false') : undefined, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "unread-indicator-mode": unreadIndicatorMode, "enter-key-to-submit": [true, false].includes(enterKeyToSubmit) ? (enterKeyToSubmit ? 'true' : 'false') : undefined, "pin-shadow-dom": [true, false].includes(pinShadowDom) ? (pinShadowDom ? 'true' : 'false') : undefined, "dialog-shadow-dom": [true, false].includes(dialogShadowDom) ? (dialogShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "text-comment-tool-shadow-dom": [true, false].includes(textCommentToolShadowDom) ? (textCommentToolShadowDom ? 'true' : 'false') : undefined, "text-comment-toolbar-shadow-dom": [true, false].includes(textCommentToolbarShadowDom) ? (textCommentToolbarShadowDom ? 'true' : 'false') : undefined, "persistent-comment-shadow-dom": [true, false].includes(persistentCommentShadowDom) ? (persistentCommentShadowDom ? 'true' : 'false') : undefined, "change-detection-in-comment-mode": [true, false].includes(changeDetectionInCommentMode) ? (changeDetectionInCommentMode ? 'true' : 'false') : undefined, "area-comment": [true, false].includes(areaComment) ? (areaComment ? 'true' : 'false') : undefined, "pin-cursor-image": pinCursorImage, "allowed-element-ids": JSON.stringify(allowedElementIds), "allowed-element-class-names": JSON.stringify(allowedElementClassNames), "allowed-element-query-selectors": JSON.stringify(allowedElementQuerySelectors), "comment-pin-highlighter": [true, false].includes(commentPinHighlighter) ? (commentPinHighlighter ? 'true' : 'false') : undefined, "custom-reactions": JSON.stringify(customReactions), "custom-status": JSON.stringify(customStatus), "custom-list-data-on-annotation": JSON.stringify(customListDataOnAnnotation), "custom-list-data-on-comment": JSON.stringify(customListDataOnComment), "custom-priority": JSON.stringify(customPriority), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "dialog-dark-mode": [true, false].includes(dialogDarkMode) ? (dialogDarkMode ? 'true' : 'false') : undefined, "pin-dark-mode": [true, false].includes(pinDarkMode) ? (pinDarkMode ? 'true' : 'false') : undefined, "text-comment-tool-dark-mode": [true, false].includes(textCommentToolDarkMode) ? (textCommentToolDarkMode ? 'true' : 'false') : undefined, "text-comment-toolbar-dark-mode": [true, false].includes(textCommentToolbarDarkMode) ? (textCommentToolbarDarkMode ? 'true' : 'false') : undefined, "multi-thread-mode": [true, false].includes(multiThreadMode) ? (multiThreadMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined }, children));
|
|
344
355
|
};
|
|
345
356
|
|
|
346
357
|
var SnippylyCommentsSidebar = function (props) {
|
|
@@ -1378,9 +1389,9 @@ var VeltCanvasComment = function (props) {
|
|
|
1378
1389
|
};
|
|
1379
1390
|
|
|
1380
1391
|
var VeltData = function (props) {
|
|
1381
|
-
var path = props.path;
|
|
1392
|
+
var path = props.path, field = props.field;
|
|
1382
1393
|
var ref = useRef();
|
|
1383
|
-
return (React.createElement("velt-data", { ref: ref, path: path }));
|
|
1394
|
+
return (React.createElement("velt-data", { ref: ref, path: path, field: field }));
|
|
1384
1395
|
};
|
|
1385
1396
|
|
|
1386
1397
|
var VeltIf = function (props) {
|
|
@@ -3260,6 +3271,35 @@ var VeltMultiThreadCommentDialogListWireframe = function (props) {
|
|
|
3260
3271
|
return (React.createElement("velt-multi-thread-comment-dialog-list-wireframe", __assign({}, remainingProps), children));
|
|
3261
3272
|
};
|
|
3262
3273
|
|
|
3274
|
+
var VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe = function (props) {
|
|
3275
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3276
|
+
return (React.createElement("velt-multi-thread-comment-dialog-minimal-actions-dropdown-content-mark-all-read-wireframe", __assign({}, remainingProps), children));
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3279
|
+
var VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe = function (props) {
|
|
3280
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3281
|
+
return (React.createElement("velt-multi-thread-comment-dialog-minimal-actions-dropdown-content-mark-all-resolved-wireframe", __assign({}, remainingProps), children));
|
|
3282
|
+
};
|
|
3283
|
+
|
|
3284
|
+
var VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe = function (props) {
|
|
3285
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3286
|
+
return (React.createElement("velt-multi-thread-comment-dialog-minimal-actions-dropdown-content-wireframe", __assign({}, remainingProps), children));
|
|
3287
|
+
};
|
|
3288
|
+
VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe.MarkAllRead = VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllReadWireframe;
|
|
3289
|
+
VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe.MarkAllResolved = VeltMultiThreadCommentDialogMinimalActionsDropdownContentMarkAllResolvedWireframe;
|
|
3290
|
+
|
|
3291
|
+
var VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe = function (props) {
|
|
3292
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3293
|
+
return (React.createElement("velt-multi-thread-comment-dialog-minimal-actions-dropdown-trigger-wireframe", __assign({}, remainingProps), children));
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3296
|
+
var VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe = function (props) {
|
|
3297
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3298
|
+
return (React.createElement("velt-multi-thread-comment-dialog-minimal-actions-dropdown-wireframe", __assign({}, remainingProps), children));
|
|
3299
|
+
};
|
|
3300
|
+
VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe.Content = VeltMultiThreadCommentDialogMinimalActionsDropdownContentWireframe;
|
|
3301
|
+
VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe.Trigger = VeltMultiThreadCommentDialogMinimalActionsDropdownTriggerWireframe;
|
|
3302
|
+
|
|
3263
3303
|
var VeltMultiThreadCommentDialogMinimalFilterDropdownContentFilterAllWireframe = function (props) {
|
|
3264
3304
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3265
3305
|
return (React.createElement("velt-multi-thread-comment-dialog-minimal-filter-dropdown-content-filter-all-wireframe", __assign({}, remainingProps), children));
|
|
@@ -3335,6 +3375,7 @@ VeltMultiThreadCommentDialogWireframe.CloseButton = VeltMultiThreadCommentDialog
|
|
|
3335
3375
|
VeltMultiThreadCommentDialogWireframe.MinimalFilterDropdown = VeltMultiThreadCommentDialogMinimalFilterDropdownWireframe;
|
|
3336
3376
|
VeltMultiThreadCommentDialogWireframe.EmptyPlaceholder = VeltMultiThreadCommentDialogEmptyPlaceholderWireframe;
|
|
3337
3377
|
VeltMultiThreadCommentDialogWireframe.NewThreadButton = VeltMultiThreadCommentDialogNewThreadButtonWireframe;
|
|
3378
|
+
VeltMultiThreadCommentDialogWireframe.MinimalActionsDropdown = VeltMultiThreadCommentDialogMinimalActionsDropdownWireframe;
|
|
3338
3379
|
|
|
3339
3380
|
var VeltCommentComposerWireframe = function (props) {
|
|
3340
3381
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -3573,6 +3614,23 @@ function useCommentSelectionChangeHandler() {
|
|
|
3573
3614
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCommentSelectionChange]);
|
|
3574
3615
|
return data;
|
|
3575
3616
|
}
|
|
3617
|
+
function useCommentCopyLinkHandler() {
|
|
3618
|
+
var commentElement = useCommentUtils();
|
|
3619
|
+
var _a = React.useState(undefined), data = _a[0], setData = _a[1];
|
|
3620
|
+
useEffect(function () {
|
|
3621
|
+
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCopyLink))
|
|
3622
|
+
return;
|
|
3623
|
+
var subscription = commentElement.onCopyLink().subscribe(function (res) {
|
|
3624
|
+
if (res) {
|
|
3625
|
+
setData({ link: res });
|
|
3626
|
+
}
|
|
3627
|
+
});
|
|
3628
|
+
return function () {
|
|
3629
|
+
subscription.unsubscribe();
|
|
3630
|
+
};
|
|
3631
|
+
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCopyLink]);
|
|
3632
|
+
return data;
|
|
3633
|
+
}
|
|
3576
3634
|
|
|
3577
3635
|
function useCursorUtils() {
|
|
3578
3636
|
var _a = React.useState(), cursorElement = _a[0], setCursorElement = _a[1];
|
|
@@ -4111,5 +4169,5 @@ var logLiveState = function (action, liveStateDataId) {
|
|
|
4111
4169
|
}
|
|
4112
4170
|
};
|
|
4113
4171
|
|
|
4114
|
-
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
|
|
4172
|
+
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
|
|
4115
4173
|
//# sourceMappingURL=index.js.map
|