@veltdev/react 4.0.0-beta.1 → 4.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/cjs/index.js +193 -57
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/Snippyly/Snippyly.d.ts +2 -1
  4. package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
  5. package/cjs/types/components/SnippylyRecorderNotes/SnippylyRecorderNotes.d.ts +2 -1
  6. package/cjs/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
  7. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
  8. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
  9. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
  10. package/cjs/types/constants.d.ts +1 -1
  11. package/cjs/types/hooks/Client.d.ts +4 -1
  12. package/cjs/types/hooks/CommentActions.d.ts +28 -26
  13. package/cjs/types/hooks/RecorderActions.d.ts +2 -0
  14. package/cjs/types/hooks/index.d.ts +3 -2
  15. package/esm/index.js +190 -58
  16. package/esm/index.js.map +1 -1
  17. package/esm/types/components/Snippyly/Snippyly.d.ts +2 -1
  18. package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
  19. package/esm/types/components/SnippylyRecorderNotes/SnippylyRecorderNotes.d.ts +2 -1
  20. package/esm/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
  21. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
  22. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
  23. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
  24. package/esm/types/constants.d.ts +1 -1
  25. package/esm/types/hooks/Client.d.ts +4 -1
  26. package/esm/types/hooks/CommentActions.d.ts +28 -26
  27. package/esm/types/hooks/RecorderActions.d.ts +2 -0
  28. package/esm/types/hooks/index.d.ts +3 -2
  29. package/index.d.ts +48 -28
  30. package/package.json +3 -3
package/esm/index.js CHANGED
@@ -132,12 +132,12 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
132
132
  }
133
133
  };
134
134
 
135
- var VELT_SDK_VERSION = '4.0.0-beta.1';
135
+ var VELT_SDK_VERSION = '4.0.0-beta.11';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
  var VELT_TAB_ID = 'veltTabId';
138
138
 
139
139
  var SnippylyProvider = function (props) {
140
- var apiKey = props.apiKey, user = props.user, config = props.config, documentId = props.documentId, language = props.language, translations = props.translations, autoTranslation = props.autoTranslation, onClientLoad = props.onClientLoad, children = props.children;
140
+ var apiKey = props.apiKey, user = props.user, config = props.config, documentId = props.documentId, language = props.language, translations = props.translations, autoTranslation = props.autoTranslation, userDataProvider = props.userDataProvider, onClientLoad = props.onClientLoad, children = props.children;
141
141
  var _a = useState(null), client = _a[0], setClient = _a[1];
142
142
  useEffect(function () {
143
143
  if (apiKey) {
@@ -146,6 +146,13 @@ var SnippylyProvider = function (props) {
146
146
  }, (config === null || config === void 0 ? void 0 : config.version) || VELT_SDK_VERSION, config === null || config === void 0 ? void 0 : config.staging, config === null || config === void 0 ? void 0 : config.develop, config === null || config === void 0 ? void 0 : config.proxyDomain);
147
147
  }
148
148
  }, []);
149
+ useEffect(function () {
150
+ if (client && userDataProvider) {
151
+ if (typeof (client === null || client === void 0 ? void 0 : client.setUserDataProvider) === 'function') {
152
+ client === null || client === void 0 ? void 0 : client.setUserDataProvider(userDataProvider);
153
+ }
154
+ }
155
+ }, [client, userDataProvider]);
149
156
  var initVelt = function () { return __awaiter(void 0, void 0, void 0, function () {
150
157
  var velt, event;
151
158
  var _a, _b;
@@ -226,7 +233,7 @@ var SnippylyCommentBubble = function (props) {
226
233
  };
227
234
 
228
235
  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, recordingTranscription = props.recordingTranscription, 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, collapsedComments = props.collapsedComments, shortUserName = props.shortUserName, resolveStatusAccessAdminOnly = props.resolveStatusAccessAdminOnly, seenByUsers = props.seenByUsers, readOnly = props.readOnly;
236
+ 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, recordingTranscription = props.recordingTranscription, 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, collapsedComments = props.collapsedComments, shortUserName = props.shortUserName, resolveStatusAccessAdminOnly = props.resolveStatusAccessAdminOnly, seenByUsers = props.seenByUsers, readOnly = props.readOnly, atHereEnabled = props.atHereEnabled;
230
237
  var ref = useRef();
231
238
  var onSignInRef = useRef(onSignIn);
232
239
  var onUpgradeRef = useRef(onUpgrade);
@@ -351,7 +358,7 @@ var SnippylyComments = function (props) {
351
358
  }
352
359
  };
353
360
  }, []);
354
- return (React.createElement("velt-comments", { ref: ref, "at-here-label": atHereLabel, "at-here-description": atHereDescription, "composer-mode": composerMode, "seen-by-users": [true, false].includes(seenByUsers) ? (seenByUsers ? 'true' : 'false') : undefined, "collapsed-comments": [true, false].includes(collapsedComments) ? (collapsedComments ? 'true' : 'false') : undefined, "short-user-name": [true, false].includes(shortUserName) ? (shortUserName ? 'true' : 'false') : undefined, "resolve-status-access-admin-only": [true, false].includes(resolveStatusAccessAdminOnly) ? (resolveStatusAccessAdminOnly ? 'true' : 'false') : undefined, "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-transcription": [true, false].includes(recordingTranscription) ? (recordingTranscription ? '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, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined }, children));
361
+ return (React.createElement("velt-comments", { ref: ref, "at-here-label": atHereLabel, "at-here-description": atHereDescription, "at-here-enabled": [true, false].includes(atHereEnabled) ? (atHereEnabled ? 'true' : 'false') : undefined, "composer-mode": composerMode, "seen-by-users": [true, false].includes(seenByUsers) ? (seenByUsers ? 'true' : 'false') : undefined, "collapsed-comments": [true, false].includes(collapsedComments) ? (collapsedComments ? 'true' : 'false') : undefined, "short-user-name": [true, false].includes(shortUserName) ? (shortUserName ? 'true' : 'false') : undefined, "resolve-status-access-admin-only": [true, false].includes(resolveStatusAccessAdminOnly) ? (resolveStatusAccessAdminOnly ? 'true' : 'false') : undefined, "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-transcription": [true, false].includes(recordingTranscription) ? (recordingTranscription ? '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, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined }, children));
355
362
  };
356
363
 
357
364
  var SnippylyCommentsSidebar = function (props) {
@@ -598,7 +605,8 @@ var SnippylyRecorderControlPanel = function (props) {
598
605
  };
599
606
 
600
607
  var SnippylyRecorderNotes = function (props) {
601
- return (React.createElement("velt-recorder-notes", null));
608
+ var shadowDom = props.shadowDom, children = props.children;
609
+ return (React.createElement("velt-recorder-notes", { "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }, children));
602
610
  };
603
611
 
604
612
  var SnippylyRecorderPlayer = function (props) {
@@ -632,8 +640,8 @@ var SnippylyRecorderPlayer = function (props) {
632
640
  };
633
641
 
634
642
  var SnippylyRecorderTool = function (props) {
635
- var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode;
636
- return (React.createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
643
+ var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
644
+ return (React.createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }, children));
637
645
  };
638
646
 
639
647
  var SnippylySidebarButton = function (props) {
@@ -2386,6 +2394,13 @@ var VeltCommentsSidebarFilterVersions = function (props) {
2386
2394
  VeltCommentsSidebarFilterVersions.Name = VeltCommentsSidebarFilterName;
2387
2395
  VeltCommentsSidebarFilterVersions.Item = VeltCommentsSidebarFilterItem;
2388
2396
 
2397
+ var VeltCommentsSidebarFilterStatus = function (props) {
2398
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2399
+ return (React.createElement("velt-comments-sidebar-filter-status-wireframe", __assign({}, remainingProps), children));
2400
+ };
2401
+ VeltCommentsSidebarFilterStatus.Name = VeltCommentsSidebarFilterName;
2402
+ VeltCommentsSidebarFilterStatus.Item = VeltCommentsSidebarFilterItem;
2403
+
2389
2404
  var VeltCommentsSidebarFilter = function (props) {
2390
2405
  var children = props.children, remainingProps = __rest(props, ["children"]);
2391
2406
  return (React.createElement("velt-comments-sidebar-filter-wireframe", __assign({}, remainingProps), children));
@@ -2401,6 +2416,7 @@ VeltCommentsSidebarFilter.Priority = VeltCommentsSidebarFilterPriority;
2401
2416
  VeltCommentsSidebarFilter.Title = VeltCommentsSidebarFilterTitle;
2402
2417
  VeltCommentsSidebarFilter.Versions = VeltCommentsSidebarFilterVersions;
2403
2418
  VeltCommentsSidebarFilter.Item = VeltCommentsSidebarFilterItem;
2419
+ VeltCommentsSidebarFilter.Status = VeltCommentsSidebarFilterStatus;
2404
2420
 
2405
2421
  var VeltCommentsSidebarFilterButton = function (props) {
2406
2422
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -4376,6 +4392,25 @@ function useSetDocumentId(documentId) {
4376
4392
  }
4377
4393
  }, [client, memoizedDocumentId]);
4378
4394
  }
4395
+ function useSetDocuments() {
4396
+ var client = useVeltClient().client;
4397
+ var _a = React.useState(undefined), data = _a[0], setData = _a[1];
4398
+ // Memoize the setDocuments call
4399
+ var memoizedData = React.useMemo(function () {
4400
+ return data;
4401
+ }, [JSON.stringify(data === null || data === void 0 ? void 0 : data.documents), JSON.stringify(data === null || data === void 0 ? void 0 : data.options)]);
4402
+ React.useEffect(function () {
4403
+ var _a;
4404
+ if (client && ((_a = memoizedData === null || memoizedData === void 0 ? void 0 : memoizedData.documents) === null || _a === void 0 ? void 0 : _a.length)) {
4405
+ client.setDocuments(memoizedData.documents, memoizedData.options);
4406
+ }
4407
+ }, [client === null || client === void 0 ? void 0 : client.setDocuments, memoizedData]);
4408
+ return {
4409
+ setDocuments: function (documents, options) {
4410
+ setData({ documents: documents, options: options });
4411
+ }
4412
+ };
4413
+ }
4379
4414
  function useUnsetDocumentId() {
4380
4415
  var client = useVeltClient().client;
4381
4416
  React.useEffect(function () {
@@ -4740,11 +4775,11 @@ function useCommentSidebarData() {
4740
4775
  function useAddCommentAnnotation() {
4741
4776
  var commentElement = useCommentUtils();
4742
4777
  return {
4743
- addCommentAnnotation: function (config) {
4778
+ addCommentAnnotation: function (request) {
4744
4779
  return new Promise(function (resolve, reject) {
4745
4780
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addCommentAnnotation))
4746
4781
  return reject(new Error('Velt SDK is not initialized.'));
4747
- commentElement.addCommentAnnotation(config).then(resolve).catch(reject);
4782
+ commentElement.addCommentAnnotation(request).then(resolve).catch(reject);
4748
4783
  });
4749
4784
  }
4750
4785
  };
@@ -4752,11 +4787,11 @@ function useAddCommentAnnotation() {
4752
4787
  function useApproveCommentAnnotation() {
4753
4788
  var commentElement = useCommentUtils();
4754
4789
  return {
4755
- approveCommentAnnotation: function (config) {
4790
+ approveCommentAnnotation: function (request) {
4756
4791
  return new Promise(function (resolve, reject) {
4757
4792
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.approveCommentAnnotation))
4758
4793
  return reject(new Error('Velt SDK is not initialized.'));
4759
- commentElement.approveCommentAnnotation(config).then(resolve).catch(reject);
4794
+ commentElement.approveCommentAnnotation(request).then(resolve).catch(reject);
4760
4795
  });
4761
4796
  }
4762
4797
  };
@@ -4764,11 +4799,11 @@ function useApproveCommentAnnotation() {
4764
4799
  function useRejectCommentAnnotation() {
4765
4800
  var commentElement = useCommentUtils();
4766
4801
  return {
4767
- rejectCommentAnnotation: function (config) {
4802
+ rejectCommentAnnotation: function (request) {
4768
4803
  return new Promise(function (resolve, reject) {
4769
4804
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.rejectCommentAnnotation))
4770
4805
  return reject(new Error('Velt SDK is not initialized.'));
4771
- commentElement.rejectCommentAnnotation(config).then(resolve).catch(reject);
4806
+ commentElement.rejectCommentAnnotation(request).then(resolve).catch(reject);
4772
4807
  });
4773
4808
  }
4774
4809
  };
@@ -4776,11 +4811,11 @@ function useRejectCommentAnnotation() {
4776
4811
  function useSubscribeCommentAnnotation() {
4777
4812
  var commentElement = useCommentUtils();
4778
4813
  return {
4779
- subscribeCommentAnnotation: function (config) {
4814
+ subscribeCommentAnnotation: function (request) {
4780
4815
  return new Promise(function (resolve, reject) {
4781
4816
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.subscribeCommentAnnotation))
4782
4817
  return reject(new Error('Velt SDK is not initialized.'));
4783
- commentElement.subscribeCommentAnnotation(config).then(resolve).catch(reject);
4818
+ commentElement.subscribeCommentAnnotation(request).then(resolve).catch(reject);
4784
4819
  });
4785
4820
  }
4786
4821
  };
@@ -4788,11 +4823,11 @@ function useSubscribeCommentAnnotation() {
4788
4823
  function useUnsubscribeCommentAnnotation() {
4789
4824
  var commentElement = useCommentUtils();
4790
4825
  return {
4791
- unsubscribeCommentAnnotation: function (config) {
4826
+ unsubscribeCommentAnnotation: function (request) {
4792
4827
  return new Promise(function (resolve, reject) {
4793
4828
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.unsubscribeCommentAnnotation))
4794
4829
  return reject(new Error('Velt SDK is not initialized.'));
4795
- commentElement.unsubscribeCommentAnnotation(config).then(resolve).catch(reject);
4830
+ commentElement.unsubscribeCommentAnnotation(request).then(resolve).catch(reject);
4796
4831
  });
4797
4832
  }
4798
4833
  };
@@ -4800,23 +4835,93 @@ function useUnsubscribeCommentAnnotation() {
4800
4835
  function useDeleteCommentAnnotation() {
4801
4836
  var commentElement = useCommentUtils();
4802
4837
  return {
4803
- deleteCommentAnnotation: function (config) {
4838
+ deleteCommentAnnotation: function (request) {
4804
4839
  return new Promise(function (resolve, reject) {
4805
4840
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteCommentAnnotation))
4806
4841
  return reject(new Error('Velt SDK is not initialized.'));
4807
- commentElement.deleteCommentAnnotation(config).then(resolve).catch(reject);
4842
+ commentElement.deleteCommentAnnotation(request).then(resolve).catch(reject);
4808
4843
  });
4809
4844
  }
4810
4845
  };
4811
4846
  }
4847
+ function useGetCommentAnnotations(query) {
4848
+ var commentElement = useCommentUtils();
4849
+ var _a = useState({ data: null }), data = _a[0], setData = _a[1];
4850
+ var subscriptionRef = useRef();
4851
+ // Memoize the inputs
4852
+ var memoizedData = useMemo(function () {
4853
+ return query;
4854
+ }, [JSON.stringify(query)]);
4855
+ useEffect(function () {
4856
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations))
4857
+ return;
4858
+ // Unsubscribe from the previous subscription if it exists
4859
+ if (subscriptionRef.current) {
4860
+ subscriptionRef.current.unsubscribe();
4861
+ }
4862
+ var subscription = commentElement.getCommentAnnotations(memoizedData)
4863
+ .subscribe(function (res) {
4864
+ if (res) {
4865
+ setData(res);
4866
+ }
4867
+ else {
4868
+ setData({ data: null });
4869
+ }
4870
+ });
4871
+ // Store the new subscription
4872
+ subscriptionRef.current = subscription;
4873
+ // Cleanup function
4874
+ return function () {
4875
+ if (subscriptionRef.current) {
4876
+ subscriptionRef.current.unsubscribe();
4877
+ }
4878
+ };
4879
+ }, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations, memoizedData]);
4880
+ return data;
4881
+ }
4882
+ function useCommentAnnotationsCount(query) {
4883
+ var commentElement = useCommentUtils();
4884
+ var _a = useState({ data: null }), data = _a[0], setData = _a[1];
4885
+ var subscriptionRef = useRef();
4886
+ // Memoize the inputs
4887
+ var memoizedData = useMemo(function () {
4888
+ return query;
4889
+ }, [JSON.stringify(query)]);
4890
+ useEffect(function () {
4891
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount))
4892
+ return;
4893
+ // Unsubscribe from the previous subscription if it exists
4894
+ if (subscriptionRef.current) {
4895
+ subscriptionRef.current.unsubscribe();
4896
+ }
4897
+ var subscription = commentElement.getCommentAnnotationsCount(memoizedData)
4898
+ .subscribe(function (res) {
4899
+ if (res) {
4900
+ setData(res);
4901
+ }
4902
+ else {
4903
+ setData({ data: null });
4904
+ }
4905
+ });
4906
+ // Store the new subscription
4907
+ subscriptionRef.current = subscription;
4908
+ // Cleanup function
4909
+ return function () {
4910
+ if (subscriptionRef.current) {
4911
+ subscriptionRef.current.unsubscribe();
4912
+ }
4913
+ };
4914
+ }, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount, memoizedData]);
4915
+ return data;
4916
+ }
4812
4917
  function useAssignUser() {
4813
4918
  var commentElement = useCommentUtils();
4814
4919
  return {
4815
- assignUser: function (config) {
4920
+ assignUser: function (request) {
4816
4921
  return new Promise(function (resolve, reject) {
4817
4922
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.assignUser))
4818
4923
  return reject(new Error('Velt SDK is not initialized.'));
4819
- commentElement.assignUser(config).then(resolve).catch(reject);
4924
+ commentElement.assignUser(request).then(resolve).catch(reject);
4820
4925
  });
4821
4926
  }
4822
4927
  };
@@ -4824,11 +4929,11 @@ function useAssignUser() {
4824
4929
  function useUpdatePriority() {
4825
4930
  var commentElement = useCommentUtils();
4826
4931
  return {
4827
- updatePriority: function (config) {
4932
+ updatePriority: function (request) {
4828
4933
  return new Promise(function (resolve, reject) {
4829
4934
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updatePriority))
4830
4935
  return reject(new Error('Velt SDK is not initialized.'));
4831
- commentElement.updatePriority(config).then(resolve).catch(reject);
4936
+ commentElement.updatePriority(request).then(resolve).catch(reject);
4832
4937
  });
4833
4938
  }
4834
4939
  };
@@ -4836,11 +4941,11 @@ function useUpdatePriority() {
4836
4941
  function useUpdateStatus() {
4837
4942
  var commentElement = useCommentUtils();
4838
4943
  return {
4839
- updateStatus: function (config) {
4944
+ updateStatus: function (request) {
4840
4945
  return new Promise(function (resolve, reject) {
4841
4946
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateStatus))
4842
4947
  return reject(new Error('Velt SDK is not initialized.'));
4843
- commentElement.updateStatus(config).then(resolve).catch(reject);
4948
+ commentElement.updateStatus(request).then(resolve).catch(reject);
4844
4949
  });
4845
4950
  }
4846
4951
  };
@@ -4848,11 +4953,11 @@ function useUpdateStatus() {
4848
4953
  function useUpdateAccess() {
4849
4954
  var commentElement = useCommentUtils();
4850
4955
  return {
4851
- updateAccess: function (config) {
4956
+ updateAccess: function (request) {
4852
4957
  return new Promise(function (resolve, reject) {
4853
4958
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateAccess))
4854
4959
  return reject(new Error('Velt SDK is not initialized.'));
4855
- commentElement.updateAccess(config).then(resolve).catch(reject);
4960
+ commentElement.updateAccess(request).then(resolve).catch(reject);
4856
4961
  });
4857
4962
  }
4858
4963
  };
@@ -4860,11 +4965,11 @@ function useUpdateAccess() {
4860
4965
  function useResolveCommentAnnotation() {
4861
4966
  var commentElement = useCommentUtils();
4862
4967
  return {
4863
- resolveCommentAnnotation: function (config) {
4968
+ resolveCommentAnnotation: function (request) {
4864
4969
  return new Promise(function (resolve, reject) {
4865
4970
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.resolveCommentAnnotation))
4866
4971
  return reject(new Error('Velt SDK is not initialized.'));
4867
- commentElement.resolveCommentAnnotation(config).then(resolve).catch(reject);
4972
+ commentElement.resolveCommentAnnotation(request).then(resolve).catch(reject);
4868
4973
  });
4869
4974
  }
4870
4975
  };
@@ -4872,11 +4977,11 @@ function useResolveCommentAnnotation() {
4872
4977
  function useGetLink() {
4873
4978
  var commentElement = useCommentUtils();
4874
4979
  return {
4875
- getLink: function (config) {
4980
+ getLink: function (request) {
4876
4981
  return new Promise(function (resolve, reject) {
4877
4982
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getLink))
4878
4983
  return reject(new Error('Velt SDK is not initialized.'));
4879
- commentElement.getLink(config).then(resolve).catch(reject);
4984
+ commentElement.getLink(request).then(resolve).catch(reject);
4880
4985
  });
4881
4986
  }
4882
4987
  };
@@ -4884,11 +4989,11 @@ function useGetLink() {
4884
4989
  function useCopyLink() {
4885
4990
  var commentElement = useCommentUtils();
4886
4991
  return {
4887
- copyLink: function (config) {
4992
+ copyLink: function (request) {
4888
4993
  return new Promise(function (resolve, reject) {
4889
4994
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.copyLink))
4890
4995
  return reject(new Error('Velt SDK is not initialized.'));
4891
- commentElement.copyLink(config).then(resolve).catch(reject);
4996
+ commentElement.copyLink(request).then(resolve).catch(reject);
4892
4997
  });
4893
4998
  }
4894
4999
  };
@@ -4896,11 +5001,11 @@ function useCopyLink() {
4896
5001
  function useAddComment() {
4897
5002
  var commentElement = useCommentUtils();
4898
5003
  return {
4899
- addComment: function (config) {
5004
+ addComment: function (request) {
4900
5005
  return new Promise(function (resolve, reject) {
4901
5006
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addComment))
4902
5007
  return reject(new Error('Velt SDK is not initialized.'));
4903
- commentElement.addComment(config).then(resolve).catch(reject);
5008
+ commentElement.addComment(request).then(resolve).catch(reject);
4904
5009
  });
4905
5010
  }
4906
5011
  };
@@ -4908,11 +5013,11 @@ function useAddComment() {
4908
5013
  function useUpdateComment() {
4909
5014
  var commentElement = useCommentUtils();
4910
5015
  return {
4911
- updateComment: function (config) {
5016
+ updateComment: function (request) {
4912
5017
  return new Promise(function (resolve, reject) {
4913
5018
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateComment))
4914
5019
  return reject(new Error('Velt SDK is not initialized.'));
4915
- commentElement.updateComment(config).then(resolve).catch(reject);
5020
+ commentElement.updateComment(request).then(resolve).catch(reject);
4916
5021
  });
4917
5022
  }
4918
5023
  };
@@ -4920,11 +5025,11 @@ function useUpdateComment() {
4920
5025
  function useDeleteComment() {
4921
5026
  var commentElement = useCommentUtils();
4922
5027
  return {
4923
- deleteComment: function (config) {
5028
+ deleteComment: function (request) {
4924
5029
  return new Promise(function (resolve, reject) {
4925
5030
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteComment))
4926
5031
  return reject(new Error('Velt SDK is not initialized.'));
4927
- commentElement.deleteComment(config).then(resolve).catch(reject);
5032
+ commentElement.deleteComment(request).then(resolve).catch(reject);
4928
5033
  });
4929
5034
  }
4930
5035
  };
@@ -4932,11 +5037,11 @@ function useDeleteComment() {
4932
5037
  function useGetComment() {
4933
5038
  var commentElement = useCommentUtils();
4934
5039
  return {
4935
- getComment: function (config) {
5040
+ getComment: function (request) {
4936
5041
  return new Promise(function (resolve, reject) {
4937
5042
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getComment))
4938
5043
  return reject(new Error('Velt SDK is not initialized.'));
4939
- commentElement.getComment(config).then(resolve).catch(reject);
5044
+ commentElement.getComment(request).then(resolve).catch(reject);
4940
5045
  });
4941
5046
  }
4942
5047
  };
@@ -4944,11 +5049,11 @@ function useGetComment() {
4944
5049
  function useAddAttachment() {
4945
5050
  var commentElement = useCommentUtils();
4946
5051
  return {
4947
- addAttachment: function (config) {
5052
+ addAttachment: function (request) {
4948
5053
  return new Promise(function (resolve, reject) {
4949
5054
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addAttachment))
4950
5055
  return reject(new Error('Velt SDK is not initialized.'));
4951
- commentElement.addAttachment(config).then(resolve).catch(reject);
5056
+ commentElement.addAttachment(request).then(resolve).catch(reject);
4952
5057
  });
4953
5058
  }
4954
5059
  };
@@ -4956,11 +5061,11 @@ function useAddAttachment() {
4956
5061
  function useDeleteAttachment() {
4957
5062
  var commentElement = useCommentUtils();
4958
5063
  return {
4959
- deleteAttachment: function (config) {
5064
+ deleteAttachment: function (request) {
4960
5065
  return new Promise(function (resolve, reject) {
4961
5066
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteAttachment))
4962
5067
  return reject(new Error('Velt SDK is not initialized.'));
4963
- commentElement.deleteAttachment(config).then(resolve).catch(reject);
5068
+ commentElement.deleteAttachment(request).then(resolve).catch(reject);
4964
5069
  });
4965
5070
  }
4966
5071
  };
@@ -4968,11 +5073,11 @@ function useDeleteAttachment() {
4968
5073
  function useGetAttachment() {
4969
5074
  var commentElement = useCommentUtils();
4970
5075
  return {
4971
- getAttachment: function (config) {
5076
+ getAttachment: function (request) {
4972
5077
  return new Promise(function (resolve, reject) {
4973
5078
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAttachment))
4974
5079
  return reject(new Error('Velt SDK is not initialized.'));
4975
- commentElement.getAttachment(config).then(resolve).catch(reject);
5080
+ commentElement.getAttachment(request).then(resolve).catch(reject);
4976
5081
  });
4977
5082
  }
4978
5083
  };
@@ -4980,11 +5085,11 @@ function useGetAttachment() {
4980
5085
  function useDeleteRecording() {
4981
5086
  var commentElement = useCommentUtils();
4982
5087
  return {
4983
- deleteRecording: function (config) {
5088
+ deleteRecording: function (request) {
4984
5089
  return new Promise(function (resolve, reject) {
4985
5090
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteRecording))
4986
5091
  return reject(new Error('Velt SDK is not initialized.'));
4987
- commentElement.deleteRecording(config).then(resolve).catch(reject);
5092
+ commentElement.deleteRecording(request).then(resolve).catch(reject);
4988
5093
  });
4989
5094
  }
4990
5095
  };
@@ -4992,11 +5097,11 @@ function useDeleteRecording() {
4992
5097
  function useGetRecording() {
4993
5098
  var commentElement = useCommentUtils();
4994
5099
  return {
4995
- getRecording: function (config) {
5100
+ getRecording: function (request) {
4996
5101
  return new Promise(function (resolve, reject) {
4997
5102
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getRecording))
4998
5103
  return reject(new Error('Velt SDK is not initialized.'));
4999
- commentElement.getRecording(config).then(resolve).catch(reject);
5104
+ commentElement.getRecording(request).then(resolve).catch(reject);
5000
5105
  });
5001
5106
  }
5002
5107
  };
@@ -5004,11 +5109,11 @@ function useGetRecording() {
5004
5109
  function useAddReaction() {
5005
5110
  var commentElement = useCommentUtils();
5006
5111
  return {
5007
- addReaction: function (config) {
5112
+ addReaction: function (request) {
5008
5113
  return new Promise(function (resolve, reject) {
5009
5114
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addReaction))
5010
5115
  return reject(new Error('Velt SDK is not initialized.'));
5011
- commentElement.addReaction(config).then(resolve).catch(reject);
5116
+ commentElement.addReaction(request).then(resolve).catch(reject);
5012
5117
  });
5013
5118
  }
5014
5119
  };
@@ -5016,11 +5121,11 @@ function useAddReaction() {
5016
5121
  function useDeleteReaction() {
5017
5122
  var commentElement = useCommentUtils();
5018
5123
  return {
5019
- deleteReaction: function (config) {
5124
+ deleteReaction: function (request) {
5020
5125
  return new Promise(function (resolve, reject) {
5021
5126
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteReaction))
5022
5127
  return reject(new Error('Velt SDK is not initialized.'));
5023
- commentElement.deleteReaction(config).then(resolve).catch(reject);
5128
+ commentElement.deleteReaction(request).then(resolve).catch(reject);
5024
5129
  });
5025
5130
  }
5026
5131
  };
@@ -5028,11 +5133,11 @@ function useDeleteReaction() {
5028
5133
  function useToggleReaction() {
5029
5134
  var commentElement = useCommentUtils();
5030
5135
  return {
5031
- toggleReaction: function (config) {
5136
+ toggleReaction: function (request) {
5032
5137
  return new Promise(function (resolve, reject) {
5033
5138
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.toggleReaction))
5034
5139
  return reject(new Error('Velt SDK is not initialized.'));
5035
- commentElement.toggleReaction(config).then(resolve).catch(reject);
5140
+ commentElement.toggleReaction(request).then(resolve).catch(reject);
5036
5141
  });
5037
5142
  }
5038
5143
  };
@@ -5425,6 +5530,33 @@ function useRecordingDataByRecorderId(recorderId) {
5425
5530
  return data;
5426
5531
  }
5427
5532
 
5533
+ function useRecorderEventCallback(action) {
5534
+ var recorderElement = useRecorderUtils();
5535
+ var _a = useState(null), data = _a[0], setData = _a[1];
5536
+ var subscriptionRef = useRef(null);
5537
+ var memoizedAction = useMemo(function () { return action; }, [action]);
5538
+ useEffect(function () {
5539
+ var _a;
5540
+ if (!(recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on))
5541
+ return;
5542
+ if (subscriptionRef.current) {
5543
+ subscriptionRef.current.unsubscribe();
5544
+ }
5545
+ var subscription = (_a = recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on(memoizedAction)) === null || _a === void 0 ? void 0 : _a.subscribe(function (data) {
5546
+ setData(data);
5547
+ });
5548
+ // Store the new subscription
5549
+ subscriptionRef.current = subscription;
5550
+ // Cleanup function
5551
+ return function () {
5552
+ if (subscriptionRef.current) {
5553
+ subscriptionRef.current.unsubscribe();
5554
+ }
5555
+ };
5556
+ }, [recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on, memoizedAction]);
5557
+ return data;
5558
+ }
5559
+
5428
5560
  function useAIRewriterUtils() {
5429
5561
  var _a = React.useState(), rewriterElement = _a[0], setRewriterElement = _a[1];
5430
5562
  var client = useVeltClient().client;
@@ -5742,5 +5874,5 @@ var logLiveState = function (action, liveStateDataId) {
5742
5874
  }
5743
5875
  };
5744
5876
 
5745
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, 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, 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, useCommentEventCallback, 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, useVeltEventCallback, useVeltInitState, useViewsUtils };
5877
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, 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, 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, useCommentAnnotationsCount, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentEventCallback, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetCommentAnnotations, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderEventCallback, useRecorderUtils, useRecordingDataByRecorderId, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetDocuments, useSetLiveStateData, useSetLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltEventCallback, useVeltInitState, useViewsUtils };
5746
5878
  //# sourceMappingURL=index.js.map