@veltdev/react 3.0.69 → 3.0.70

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.
@@ -69,8 +69,14 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
69
69
  allowedElementQuerySelectors?: string[];
70
70
  commentPinHighlighter?: boolean;
71
71
  customReactions?: ReactionMap;
72
+ /**
73
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
74
+ */
72
75
  onCommentAdd?: Function;
73
76
  onCustomPinInject?: Function;
77
+ /**
78
+ * @deprecated Use respective update events hooks instead.
79
+ */
74
80
  onCommentUpdate?: Function;
75
81
  onCommentAccept?: Function;
76
82
  onCommentReject?: Function;
@@ -65,6 +65,7 @@ export interface IVeltCommentsSidebarProps {
65
65
  customActions?: boolean;
66
66
  focusedThreadDialogVariant?: string;
67
67
  focusedThreadMode?: boolean;
68
+ searchPlaceholder?: string;
68
69
  }
69
70
  declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
70
71
  export default SnippylyCommentsSidebar;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.69";
1
+ export declare const VELT_SDK_VERSION = "3.0.70";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,68 +1,77 @@
1
- import { AddAttachmentConfig, AddAttachmentResponse, AddCommentAnnotationConfig, AddCommentAnnotationEvent, AddCommentConfig, AddCommentEvent, AddReactionConfig, AddReactionEvent, ApproveCommentAnnotationConfig, ApproveCommentAnnotationEvent, Attachment, CopyLinkConfig, CopyLinkEvent, DeleteAttachmentConfig, DeleteAttachmentEvent, DeleteCommentAnnotationConfig, DeleteCommentAnnotationEvent, DeleteCommentConfig, DeleteCommentEvent, DeleteReactionConfig, DeleteReactionEvent, DeleteRecordingConfig, DeleteRecordingEvent, GetAttachmentConfig, GetCommentConfig, GetLinkConfig, GetLinkEvent, GetRecordingConfig, RecordedData, RejectCommentAnnotationConfig, RejectCommentAnnotationEvent, ResolveCommentAnnotationConfig, ToggleReactionConfig, ToggleReactionEvent, UpdateAccessConfig, UpdateAccessEvent, UpdateCommentConfig, UpdateCommentEvent, UpdatePriorityConfig, UpdatePriorityEvent, UpdateStatusConfig, UpdateStatusEvent } from "@veltdev/types";
1
+ import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetLinkResponse, GetRecordingRequest, RecordedData, RejectCommentAnnotationEvent, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationEvent, SubscribeCommentAnnotationRequest, ToggleReactionEvent, ToggleReactionRequest, UnsubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UpdateAccessEvent, UpdateAccessRequest, UpdateCommentEvent, UpdateCommentRequest, UpdatePriorityEvent, UpdatePriorityRequest, UpdateStatusEvent, UpdateStatusRequest } from "@veltdev/types";
2
2
  export declare function useAddCommentAnnotation(): {
3
- addCommentAnnotation: (config: AddCommentAnnotationConfig) => Promise<AddCommentAnnotationEvent | null>;
3
+ addCommentAnnotation: (config: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
4
4
  };
5
5
  export declare function useApproveCommentAnnotation(): {
6
- approveCommentAnnotation: (config: ApproveCommentAnnotationConfig) => Promise<ApproveCommentAnnotationEvent | null>;
6
+ approveCommentAnnotation: (config: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
7
7
  };
8
8
  export declare function useRejectCommentAnnotation(): {
9
- rejectCommentAnnotation: (config: RejectCommentAnnotationConfig) => Promise<RejectCommentAnnotationEvent | null>;
9
+ rejectCommentAnnotation: (config: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
10
+ };
11
+ export declare function useSubscribeCommentAnnotation(): {
12
+ subscribeCommentAnnotation: (config: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
13
+ };
14
+ export declare function useUnsubscribeCommentAnnotation(): {
15
+ unsubscribeCommentAnnotation: (config: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
10
16
  };
11
17
  export declare function useDeleteCommentAnnotation(): {
12
- deleteCommentAnnotation: (config: DeleteCommentAnnotationConfig) => Promise<DeleteCommentAnnotationEvent | null>;
18
+ deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
19
+ };
20
+ export declare function useAssignUser(): {
21
+ assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
13
22
  };
14
23
  export declare function useUpdatePriority(): {
15
- updatePriority: (config: UpdatePriorityConfig) => Promise<UpdatePriorityEvent | null>;
24
+ updatePriority: (config: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
16
25
  };
17
26
  export declare function useUpdateStatus(): {
18
- updateStatus: (config: UpdateStatusConfig) => Promise<UpdateStatusEvent | null>;
27
+ updateStatus: (config: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
19
28
  };
20
29
  export declare function useUpdateAccess(): {
21
- updateAccess: (config: UpdateAccessConfig) => Promise<UpdateAccessEvent | null>;
30
+ updateAccess: (config: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
22
31
  };
23
32
  export declare function useResolveCommentAnnotation(): {
24
- resolveCommentAnnotation: (config: ResolveCommentAnnotationConfig) => Promise<any>;
33
+ resolveCommentAnnotation: (config: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
25
34
  };
26
35
  export declare function useGetLink(): {
27
- getLink: (config: GetLinkConfig) => Promise<GetLinkEvent | null>;
36
+ getLink: (config: GetLinkRequest) => Promise<GetLinkResponse | null>;
28
37
  };
29
38
  export declare function useCopyLink(): {
30
- copyLink: (config: CopyLinkConfig) => Promise<CopyLinkEvent | null>;
39
+ copyLink: (config: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
31
40
  };
32
41
  export declare function useAddComment(): {
33
- addComment: (config: AddCommentConfig) => Promise<AddCommentEvent | null>;
42
+ addComment: (config: AddCommentRequest) => Promise<AddCommentEvent | null>;
34
43
  };
35
44
  export declare function useUpdateComment(): {
36
- updateComment: (config: UpdateCommentConfig) => Promise<UpdateCommentEvent | null>;
45
+ updateComment: (config: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
37
46
  };
38
47
  export declare function useDeleteComment(): {
39
- deleteComment: (config: DeleteCommentConfig) => Promise<DeleteCommentEvent | null>;
48
+ deleteComment: (config: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
40
49
  };
41
50
  export declare function useGetComment(): {
42
- getComment: (config: GetCommentConfig) => Promise<Comment[]>;
51
+ getComment: (config: GetCommentRequest) => Promise<Comment[]>;
43
52
  };
44
53
  export declare function useAddAttachment(): {
45
- addAttachment: (config: AddAttachmentConfig) => Promise<AddAttachmentResponse[] | null>;
54
+ addAttachment: (config: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
46
55
  };
47
56
  export declare function useDeleteAttachment(): {
48
- deleteAttachment: (config: DeleteAttachmentConfig) => Promise<DeleteAttachmentEvent | null>;
57
+ deleteAttachment: (config: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
49
58
  };
50
59
  export declare function useGetAttachment(): {
51
- getAttachment: (config: GetAttachmentConfig) => Promise<Attachment[] | null>;
60
+ getAttachment: (config: GetAttachmentRequest) => Promise<Attachment[] | null>;
52
61
  };
53
62
  export declare function useDeleteRecording(): {
54
- deleteRecording: (config: DeleteRecordingConfig) => Promise<DeleteRecordingEvent | null>;
63
+ deleteRecording: (config: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
55
64
  };
56
65
  export declare function useGetRecording(): {
57
- getRecording: (config: GetRecordingConfig) => Promise<RecordedData[] | null>;
66
+ getRecording: (config: GetRecordingRequest) => Promise<RecordedData[] | null>;
58
67
  };
59
68
  export declare function useAddReaction(): {
60
- addReaction: (config: AddReactionConfig) => Promise<AddReactionEvent | null>;
69
+ addReaction: (config: AddReactionRequest) => Promise<AddReactionEvent | null>;
61
70
  };
62
71
  export declare function useDeleteReaction(): {
63
- deleteReaction: (config: DeleteReactionConfig) => Promise<DeleteReactionEvent | null>;
72
+ deleteReaction: (config: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
64
73
  };
65
74
  export declare function useToggleReaction(): {
66
- toggleReaction: (config: ToggleReactionConfig) => Promise<ToggleReactionEvent | null>;
75
+ toggleReaction: (config: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
67
76
  };
68
- export declare function useCommentActionCallback(action: string): any;
77
+ export declare function useCommentActionCallback<T extends keyof CommentEventTypesMap>(action: T): CommentEventTypesMap[T];
@@ -17,7 +17,13 @@ export declare function useUnreadCommentAnnotationCountByLocationId(locationId:
17
17
  count: number;
18
18
  } | null;
19
19
  export declare function useCommentModeState(): boolean | undefined;
20
+ /**
21
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
22
+ */
20
23
  export declare function useCommentAddHandler(): CommentAddEventData | undefined;
24
+ /**
25
+ * @deprecated Use respective update events hooks instead.
26
+ */
21
27
  export declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
22
28
  export declare function useCommentDialogSidebarClickHandler(): any;
23
29
  export declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
@@ -1,6 +1,6 @@
1
1
  export { useSetLocation, useSetDocument, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } 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
- export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, } from './CommentActions';
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, } from './CommentActions';
4
4
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
5
5
  export { useHuddleUtils, } from './HuddleElement';
6
6
  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.69';
135
+ var VELT_SDK_VERSION = '3.0.70';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
  var VELT_TAB_ID = 'veltTabId';
138
138
 
@@ -355,7 +355,7 @@ var SnippylyComments = function (props) {
355
355
  };
356
356
 
357
357
  var SnippylyCommentsSidebar = function (props) {
358
- var embedMode = props.embedMode; props.floatingMode; var enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, queryParamsComments = props.queryParamsComments, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, onSidebarClose = props.onSidebarClose, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout, customActions = props.customActions, focusedThreadDialogVariant = props.focusedThreadDialogVariant, focusedThreadMode = props.focusedThreadMode, onCommentNavigationButtonClick = props.onCommentNavigationButtonClick;
358
+ var embedMode = props.embedMode; props.floatingMode; var enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, queryParamsComments = props.queryParamsComments, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, searchPlaceholder = props.searchPlaceholder, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, onSidebarClose = props.onSidebarClose, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout, customActions = props.customActions, focusedThreadDialogVariant = props.focusedThreadDialogVariant, focusedThreadMode = props.focusedThreadMode, onCommentNavigationButtonClick = props.onCommentNavigationButtonClick;
359
359
  var ref = useRef();
360
360
  var openSidebarRef = useRef(openSidebar);
361
361
  var onSidebarOpenRef = useRef(onSidebarOpen);
@@ -428,7 +428,7 @@ var SnippylyCommentsSidebar = function (props) {
428
428
  }
429
429
  };
430
430
  }, []);
431
- return (React.createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "focused-thread-mode": [true, false].includes(focusedThreadMode) ? (focusedThreadMode ? 'true' : 'false') : undefined, "focused-thread-dialog-variant": focusedThreadDialogVariant, "custom-actions": [true, false].includes(customActions) ? (customActions ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "query-params-comments": [true, false].includes(queryParamsComments) ? (queryParamsComments ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined }));
431
+ return (React.createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "focused-thread-mode": [true, false].includes(focusedThreadMode) ? (focusedThreadMode ? 'true' : 'false') : undefined, "focused-thread-dialog-variant": focusedThreadDialogVariant, "custom-actions": [true, false].includes(customActions) ? (customActions ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "query-params-comments": [true, false].includes(queryParamsComments) ? (queryParamsComments ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "search-placeholder": searchPlaceholder, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined }));
432
432
  };
433
433
 
434
434
  var SnippylyCommentTool = function (props) {
@@ -4556,6 +4556,9 @@ function useCommentModeState() {
4556
4556
  }, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCommentModeChange]);
4557
4557
  return data;
4558
4558
  }
4559
+ /**
4560
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
4561
+ */
4559
4562
  function useCommentAddHandler() {
4560
4563
  var commentElement = useCommentUtils();
4561
4564
  var _a = React.useState(undefined), data = _a[0], setData = _a[1];
@@ -4571,6 +4574,9 @@ function useCommentAddHandler() {
4571
4574
  }, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCommentAdd]);
4572
4575
  return data;
4573
4576
  }
4577
+ /**
4578
+ * @deprecated Use respective update events hooks instead.
4579
+ */
4574
4580
  function useCommentUpdateHandler() {
4575
4581
  var commentElement = useCommentUtils();
4576
4582
  var _a = React.useState(undefined), data = _a[0], setData = _a[1];
@@ -4743,6 +4749,30 @@ function useRejectCommentAnnotation() {
4743
4749
  }
4744
4750
  };
4745
4751
  }
4752
+ function useSubscribeCommentAnnotation() {
4753
+ var commentElement = useCommentUtils();
4754
+ return {
4755
+ subscribeCommentAnnotation: function (config) {
4756
+ return new Promise(function (resolve, reject) {
4757
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.subscribeCommentAnnotation))
4758
+ return reject(new Error('Velt SDK is not initialized.'));
4759
+ commentElement.subscribeCommentAnnotation(config).then(resolve).catch(reject);
4760
+ });
4761
+ }
4762
+ };
4763
+ }
4764
+ function useUnsubscribeCommentAnnotation() {
4765
+ var commentElement = useCommentUtils();
4766
+ return {
4767
+ unsubscribeCommentAnnotation: function (config) {
4768
+ return new Promise(function (resolve, reject) {
4769
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.unsubscribeCommentAnnotation))
4770
+ return reject(new Error('Velt SDK is not initialized.'));
4771
+ commentElement.unsubscribeCommentAnnotation(config).then(resolve).catch(reject);
4772
+ });
4773
+ }
4774
+ };
4775
+ }
4746
4776
  function useDeleteCommentAnnotation() {
4747
4777
  var commentElement = useCommentUtils();
4748
4778
  return {
@@ -4755,6 +4785,18 @@ function useDeleteCommentAnnotation() {
4755
4785
  }
4756
4786
  };
4757
4787
  }
4788
+ function useAssignUser() {
4789
+ var commentElement = useCommentUtils();
4790
+ return {
4791
+ assignUser: function (config) {
4792
+ return new Promise(function (resolve, reject) {
4793
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.assignUser))
4794
+ return reject(new Error('Velt SDK is not initialized.'));
4795
+ commentElement.assignUser(config).then(resolve).catch(reject);
4796
+ });
4797
+ }
4798
+ };
4799
+ }
4758
4800
  function useUpdatePriority() {
4759
4801
  var commentElement = useCommentUtils();
4760
4802
  return {
@@ -5620,5 +5662,5 @@ var logLiveState = function (action, liveStateDataId) {
5620
5662
  }
5621
5663
  };
5622
5664
 
5623
- 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, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, 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, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSubtitlesButtonWireframe as VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltVideoPlayerWireframe, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useRecordingDataByRecorderId, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
5665
+ 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, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, 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, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSubtitlesButtonWireframe as VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltVideoPlayerWireframe, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAssignUser, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useRecordingDataByRecorderId, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
5624
5666
  //# sourceMappingURL=index.js.map