@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.
- package/cjs/index.js +193 -57
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/Snippyly/Snippyly.d.ts +2 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
- package/cjs/types/components/SnippylyRecorderNotes/SnippylyRecorderNotes.d.ts +2 -1
- package/cjs/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +4 -1
- package/cjs/types/hooks/CommentActions.d.ts +28 -26
- package/cjs/types/hooks/RecorderActions.d.ts +2 -0
- package/cjs/types/hooks/index.d.ts +3 -2
- package/esm/index.js +190 -58
- package/esm/index.js.map +1 -1
- package/esm/types/components/Snippyly/Snippyly.d.ts +2 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
- package/esm/types/components/SnippylyRecorderNotes/SnippylyRecorderNotes.d.ts +2 -1
- package/esm/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +4 -1
- package/esm/types/hooks/CommentActions.d.ts +28 -26
- package/esm/types/hooks/RecorderActions.d.ts +2 -0
- package/esm/types/hooks/index.d.ts +3 -2
- package/index.d.ts +48 -28
- package/package.json +3 -3
package/cjs/index.js
CHANGED
|
@@ -140,12 +140,12 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
var VELT_SDK_VERSION = '4.0.0-beta.
|
|
143
|
+
var VELT_SDK_VERSION = '4.0.0-beta.11';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
145
|
var VELT_TAB_ID = 'veltTabId';
|
|
146
146
|
|
|
147
147
|
var SnippylyProvider = function (props) {
|
|
148
|
-
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;
|
|
148
|
+
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;
|
|
149
149
|
var _a = React.useState(null), client = _a[0], setClient = _a[1];
|
|
150
150
|
React.useEffect(function () {
|
|
151
151
|
if (apiKey) {
|
|
@@ -154,6 +154,13 @@ var SnippylyProvider = function (props) {
|
|
|
154
154
|
}, (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);
|
|
155
155
|
}
|
|
156
156
|
}, []);
|
|
157
|
+
React.useEffect(function () {
|
|
158
|
+
if (client && userDataProvider) {
|
|
159
|
+
if (typeof (client === null || client === void 0 ? void 0 : client.setUserDataProvider) === 'function') {
|
|
160
|
+
client === null || client === void 0 ? void 0 : client.setUserDataProvider(userDataProvider);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}, [client, userDataProvider]);
|
|
157
164
|
var initVelt = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
158
165
|
var velt, event;
|
|
159
166
|
var _a, _b;
|
|
@@ -234,7 +241,7 @@ var SnippylyCommentBubble = function (props) {
|
|
|
234
241
|
};
|
|
235
242
|
|
|
236
243
|
var SnippylyComments = function (props) {
|
|
237
|
-
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;
|
|
244
|
+
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;
|
|
238
245
|
var ref = React.useRef();
|
|
239
246
|
var onSignInRef = React.useRef(onSignIn);
|
|
240
247
|
var onUpgradeRef = React.useRef(onUpgrade);
|
|
@@ -359,7 +366,7 @@ var SnippylyComments = function (props) {
|
|
|
359
366
|
}
|
|
360
367
|
};
|
|
361
368
|
}, []);
|
|
362
|
-
return (React__default["default"].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));
|
|
369
|
+
return (React__default["default"].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));
|
|
363
370
|
};
|
|
364
371
|
|
|
365
372
|
var SnippylyCommentsSidebar = function (props) {
|
|
@@ -606,7 +613,8 @@ var SnippylyRecorderControlPanel = function (props) {
|
|
|
606
613
|
};
|
|
607
614
|
|
|
608
615
|
var SnippylyRecorderNotes = function (props) {
|
|
609
|
-
|
|
616
|
+
var shadowDom = props.shadowDom, children = props.children;
|
|
617
|
+
return (React__default["default"].createElement("velt-recorder-notes", { "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }, children));
|
|
610
618
|
};
|
|
611
619
|
|
|
612
620
|
var SnippylyRecorderPlayer = function (props) {
|
|
@@ -640,8 +648,8 @@ var SnippylyRecorderPlayer = function (props) {
|
|
|
640
648
|
};
|
|
641
649
|
|
|
642
650
|
var SnippylyRecorderTool = function (props) {
|
|
643
|
-
var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode;
|
|
644
|
-
return (React__default["default"].createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
651
|
+
var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
|
|
652
|
+
return (React__default["default"].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));
|
|
645
653
|
};
|
|
646
654
|
|
|
647
655
|
var SnippylySidebarButton = function (props) {
|
|
@@ -2394,6 +2402,13 @@ var VeltCommentsSidebarFilterVersions = function (props) {
|
|
|
2394
2402
|
VeltCommentsSidebarFilterVersions.Name = VeltCommentsSidebarFilterName;
|
|
2395
2403
|
VeltCommentsSidebarFilterVersions.Item = VeltCommentsSidebarFilterItem;
|
|
2396
2404
|
|
|
2405
|
+
var VeltCommentsSidebarFilterStatus = function (props) {
|
|
2406
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2407
|
+
return (React__default["default"].createElement("velt-comments-sidebar-filter-status-wireframe", __assign({}, remainingProps), children));
|
|
2408
|
+
};
|
|
2409
|
+
VeltCommentsSidebarFilterStatus.Name = VeltCommentsSidebarFilterName;
|
|
2410
|
+
VeltCommentsSidebarFilterStatus.Item = VeltCommentsSidebarFilterItem;
|
|
2411
|
+
|
|
2397
2412
|
var VeltCommentsSidebarFilter = function (props) {
|
|
2398
2413
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2399
2414
|
return (React__default["default"].createElement("velt-comments-sidebar-filter-wireframe", __assign({}, remainingProps), children));
|
|
@@ -2409,6 +2424,7 @@ VeltCommentsSidebarFilter.Priority = VeltCommentsSidebarFilterPriority;
|
|
|
2409
2424
|
VeltCommentsSidebarFilter.Title = VeltCommentsSidebarFilterTitle;
|
|
2410
2425
|
VeltCommentsSidebarFilter.Versions = VeltCommentsSidebarFilterVersions;
|
|
2411
2426
|
VeltCommentsSidebarFilter.Item = VeltCommentsSidebarFilterItem;
|
|
2427
|
+
VeltCommentsSidebarFilter.Status = VeltCommentsSidebarFilterStatus;
|
|
2412
2428
|
|
|
2413
2429
|
var VeltCommentsSidebarFilterButton = function (props) {
|
|
2414
2430
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -4384,6 +4400,25 @@ function useSetDocumentId(documentId) {
|
|
|
4384
4400
|
}
|
|
4385
4401
|
}, [client, memoizedDocumentId]);
|
|
4386
4402
|
}
|
|
4403
|
+
function useSetDocuments() {
|
|
4404
|
+
var client = useVeltClient().client;
|
|
4405
|
+
var _a = React__default["default"].useState(undefined), data = _a[0], setData = _a[1];
|
|
4406
|
+
// Memoize the setDocuments call
|
|
4407
|
+
var memoizedData = React__default["default"].useMemo(function () {
|
|
4408
|
+
return data;
|
|
4409
|
+
}, [JSON.stringify(data === null || data === void 0 ? void 0 : data.documents), JSON.stringify(data === null || data === void 0 ? void 0 : data.options)]);
|
|
4410
|
+
React__default["default"].useEffect(function () {
|
|
4411
|
+
var _a;
|
|
4412
|
+
if (client && ((_a = memoizedData === null || memoizedData === void 0 ? void 0 : memoizedData.documents) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
4413
|
+
client.setDocuments(memoizedData.documents, memoizedData.options);
|
|
4414
|
+
}
|
|
4415
|
+
}, [client === null || client === void 0 ? void 0 : client.setDocuments, memoizedData]);
|
|
4416
|
+
return {
|
|
4417
|
+
setDocuments: function (documents, options) {
|
|
4418
|
+
setData({ documents: documents, options: options });
|
|
4419
|
+
}
|
|
4420
|
+
};
|
|
4421
|
+
}
|
|
4387
4422
|
function useUnsetDocumentId() {
|
|
4388
4423
|
var client = useVeltClient().client;
|
|
4389
4424
|
React__default["default"].useEffect(function () {
|
|
@@ -4748,11 +4783,11 @@ function useCommentSidebarData() {
|
|
|
4748
4783
|
function useAddCommentAnnotation() {
|
|
4749
4784
|
var commentElement = useCommentUtils();
|
|
4750
4785
|
return {
|
|
4751
|
-
addCommentAnnotation: function (
|
|
4786
|
+
addCommentAnnotation: function (request) {
|
|
4752
4787
|
return new Promise(function (resolve, reject) {
|
|
4753
4788
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addCommentAnnotation))
|
|
4754
4789
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4755
|
-
commentElement.addCommentAnnotation(
|
|
4790
|
+
commentElement.addCommentAnnotation(request).then(resolve).catch(reject);
|
|
4756
4791
|
});
|
|
4757
4792
|
}
|
|
4758
4793
|
};
|
|
@@ -4760,11 +4795,11 @@ function useAddCommentAnnotation() {
|
|
|
4760
4795
|
function useApproveCommentAnnotation() {
|
|
4761
4796
|
var commentElement = useCommentUtils();
|
|
4762
4797
|
return {
|
|
4763
|
-
approveCommentAnnotation: function (
|
|
4798
|
+
approveCommentAnnotation: function (request) {
|
|
4764
4799
|
return new Promise(function (resolve, reject) {
|
|
4765
4800
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.approveCommentAnnotation))
|
|
4766
4801
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4767
|
-
commentElement.approveCommentAnnotation(
|
|
4802
|
+
commentElement.approveCommentAnnotation(request).then(resolve).catch(reject);
|
|
4768
4803
|
});
|
|
4769
4804
|
}
|
|
4770
4805
|
};
|
|
@@ -4772,11 +4807,11 @@ function useApproveCommentAnnotation() {
|
|
|
4772
4807
|
function useRejectCommentAnnotation() {
|
|
4773
4808
|
var commentElement = useCommentUtils();
|
|
4774
4809
|
return {
|
|
4775
|
-
rejectCommentAnnotation: function (
|
|
4810
|
+
rejectCommentAnnotation: function (request) {
|
|
4776
4811
|
return new Promise(function (resolve, reject) {
|
|
4777
4812
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.rejectCommentAnnotation))
|
|
4778
4813
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4779
|
-
commentElement.rejectCommentAnnotation(
|
|
4814
|
+
commentElement.rejectCommentAnnotation(request).then(resolve).catch(reject);
|
|
4780
4815
|
});
|
|
4781
4816
|
}
|
|
4782
4817
|
};
|
|
@@ -4784,11 +4819,11 @@ function useRejectCommentAnnotation() {
|
|
|
4784
4819
|
function useSubscribeCommentAnnotation() {
|
|
4785
4820
|
var commentElement = useCommentUtils();
|
|
4786
4821
|
return {
|
|
4787
|
-
subscribeCommentAnnotation: function (
|
|
4822
|
+
subscribeCommentAnnotation: function (request) {
|
|
4788
4823
|
return new Promise(function (resolve, reject) {
|
|
4789
4824
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.subscribeCommentAnnotation))
|
|
4790
4825
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4791
|
-
commentElement.subscribeCommentAnnotation(
|
|
4826
|
+
commentElement.subscribeCommentAnnotation(request).then(resolve).catch(reject);
|
|
4792
4827
|
});
|
|
4793
4828
|
}
|
|
4794
4829
|
};
|
|
@@ -4796,11 +4831,11 @@ function useSubscribeCommentAnnotation() {
|
|
|
4796
4831
|
function useUnsubscribeCommentAnnotation() {
|
|
4797
4832
|
var commentElement = useCommentUtils();
|
|
4798
4833
|
return {
|
|
4799
|
-
unsubscribeCommentAnnotation: function (
|
|
4834
|
+
unsubscribeCommentAnnotation: function (request) {
|
|
4800
4835
|
return new Promise(function (resolve, reject) {
|
|
4801
4836
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.unsubscribeCommentAnnotation))
|
|
4802
4837
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4803
|
-
commentElement.unsubscribeCommentAnnotation(
|
|
4838
|
+
commentElement.unsubscribeCommentAnnotation(request).then(resolve).catch(reject);
|
|
4804
4839
|
});
|
|
4805
4840
|
}
|
|
4806
4841
|
};
|
|
@@ -4808,23 +4843,93 @@ function useUnsubscribeCommentAnnotation() {
|
|
|
4808
4843
|
function useDeleteCommentAnnotation() {
|
|
4809
4844
|
var commentElement = useCommentUtils();
|
|
4810
4845
|
return {
|
|
4811
|
-
deleteCommentAnnotation: function (
|
|
4846
|
+
deleteCommentAnnotation: function (request) {
|
|
4812
4847
|
return new Promise(function (resolve, reject) {
|
|
4813
4848
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteCommentAnnotation))
|
|
4814
4849
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4815
|
-
commentElement.deleteCommentAnnotation(
|
|
4850
|
+
commentElement.deleteCommentAnnotation(request).then(resolve).catch(reject);
|
|
4816
4851
|
});
|
|
4817
4852
|
}
|
|
4818
4853
|
};
|
|
4819
4854
|
}
|
|
4855
|
+
function useGetCommentAnnotations(query) {
|
|
4856
|
+
var commentElement = useCommentUtils();
|
|
4857
|
+
var _a = React.useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4858
|
+
var subscriptionRef = React.useRef();
|
|
4859
|
+
// Memoize the inputs
|
|
4860
|
+
var memoizedData = React.useMemo(function () {
|
|
4861
|
+
return query;
|
|
4862
|
+
}, [JSON.stringify(query)]);
|
|
4863
|
+
React.useEffect(function () {
|
|
4864
|
+
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations))
|
|
4865
|
+
return;
|
|
4866
|
+
// Unsubscribe from the previous subscription if it exists
|
|
4867
|
+
if (subscriptionRef.current) {
|
|
4868
|
+
subscriptionRef.current.unsubscribe();
|
|
4869
|
+
}
|
|
4870
|
+
var subscription = commentElement.getCommentAnnotations(memoizedData)
|
|
4871
|
+
.subscribe(function (res) {
|
|
4872
|
+
if (res) {
|
|
4873
|
+
setData(res);
|
|
4874
|
+
}
|
|
4875
|
+
else {
|
|
4876
|
+
setData({ data: null });
|
|
4877
|
+
}
|
|
4878
|
+
});
|
|
4879
|
+
// Store the new subscription
|
|
4880
|
+
subscriptionRef.current = subscription;
|
|
4881
|
+
// Cleanup function
|
|
4882
|
+
return function () {
|
|
4883
|
+
if (subscriptionRef.current) {
|
|
4884
|
+
subscriptionRef.current.unsubscribe();
|
|
4885
|
+
}
|
|
4886
|
+
};
|
|
4887
|
+
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations, memoizedData]);
|
|
4888
|
+
return data;
|
|
4889
|
+
}
|
|
4890
|
+
function useCommentAnnotationsCount(query) {
|
|
4891
|
+
var commentElement = useCommentUtils();
|
|
4892
|
+
var _a = React.useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4893
|
+
var subscriptionRef = React.useRef();
|
|
4894
|
+
// Memoize the inputs
|
|
4895
|
+
var memoizedData = React.useMemo(function () {
|
|
4896
|
+
return query;
|
|
4897
|
+
}, [JSON.stringify(query)]);
|
|
4898
|
+
React.useEffect(function () {
|
|
4899
|
+
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount))
|
|
4900
|
+
return;
|
|
4901
|
+
// Unsubscribe from the previous subscription if it exists
|
|
4902
|
+
if (subscriptionRef.current) {
|
|
4903
|
+
subscriptionRef.current.unsubscribe();
|
|
4904
|
+
}
|
|
4905
|
+
var subscription = commentElement.getCommentAnnotationsCount(memoizedData)
|
|
4906
|
+
.subscribe(function (res) {
|
|
4907
|
+
if (res) {
|
|
4908
|
+
setData(res);
|
|
4909
|
+
}
|
|
4910
|
+
else {
|
|
4911
|
+
setData({ data: null });
|
|
4912
|
+
}
|
|
4913
|
+
});
|
|
4914
|
+
// Store the new subscription
|
|
4915
|
+
subscriptionRef.current = subscription;
|
|
4916
|
+
// Cleanup function
|
|
4917
|
+
return function () {
|
|
4918
|
+
if (subscriptionRef.current) {
|
|
4919
|
+
subscriptionRef.current.unsubscribe();
|
|
4920
|
+
}
|
|
4921
|
+
};
|
|
4922
|
+
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount, memoizedData]);
|
|
4923
|
+
return data;
|
|
4924
|
+
}
|
|
4820
4925
|
function useAssignUser() {
|
|
4821
4926
|
var commentElement = useCommentUtils();
|
|
4822
4927
|
return {
|
|
4823
|
-
assignUser: function (
|
|
4928
|
+
assignUser: function (request) {
|
|
4824
4929
|
return new Promise(function (resolve, reject) {
|
|
4825
4930
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.assignUser))
|
|
4826
4931
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4827
|
-
commentElement.assignUser(
|
|
4932
|
+
commentElement.assignUser(request).then(resolve).catch(reject);
|
|
4828
4933
|
});
|
|
4829
4934
|
}
|
|
4830
4935
|
};
|
|
@@ -4832,11 +4937,11 @@ function useAssignUser() {
|
|
|
4832
4937
|
function useUpdatePriority() {
|
|
4833
4938
|
var commentElement = useCommentUtils();
|
|
4834
4939
|
return {
|
|
4835
|
-
updatePriority: function (
|
|
4940
|
+
updatePriority: function (request) {
|
|
4836
4941
|
return new Promise(function (resolve, reject) {
|
|
4837
4942
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updatePriority))
|
|
4838
4943
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4839
|
-
commentElement.updatePriority(
|
|
4944
|
+
commentElement.updatePriority(request).then(resolve).catch(reject);
|
|
4840
4945
|
});
|
|
4841
4946
|
}
|
|
4842
4947
|
};
|
|
@@ -4844,11 +4949,11 @@ function useUpdatePriority() {
|
|
|
4844
4949
|
function useUpdateStatus() {
|
|
4845
4950
|
var commentElement = useCommentUtils();
|
|
4846
4951
|
return {
|
|
4847
|
-
updateStatus: function (
|
|
4952
|
+
updateStatus: function (request) {
|
|
4848
4953
|
return new Promise(function (resolve, reject) {
|
|
4849
4954
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateStatus))
|
|
4850
4955
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4851
|
-
commentElement.updateStatus(
|
|
4956
|
+
commentElement.updateStatus(request).then(resolve).catch(reject);
|
|
4852
4957
|
});
|
|
4853
4958
|
}
|
|
4854
4959
|
};
|
|
@@ -4856,11 +4961,11 @@ function useUpdateStatus() {
|
|
|
4856
4961
|
function useUpdateAccess() {
|
|
4857
4962
|
var commentElement = useCommentUtils();
|
|
4858
4963
|
return {
|
|
4859
|
-
updateAccess: function (
|
|
4964
|
+
updateAccess: function (request) {
|
|
4860
4965
|
return new Promise(function (resolve, reject) {
|
|
4861
4966
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateAccess))
|
|
4862
4967
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4863
|
-
commentElement.updateAccess(
|
|
4968
|
+
commentElement.updateAccess(request).then(resolve).catch(reject);
|
|
4864
4969
|
});
|
|
4865
4970
|
}
|
|
4866
4971
|
};
|
|
@@ -4868,11 +4973,11 @@ function useUpdateAccess() {
|
|
|
4868
4973
|
function useResolveCommentAnnotation() {
|
|
4869
4974
|
var commentElement = useCommentUtils();
|
|
4870
4975
|
return {
|
|
4871
|
-
resolveCommentAnnotation: function (
|
|
4976
|
+
resolveCommentAnnotation: function (request) {
|
|
4872
4977
|
return new Promise(function (resolve, reject) {
|
|
4873
4978
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.resolveCommentAnnotation))
|
|
4874
4979
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4875
|
-
commentElement.resolveCommentAnnotation(
|
|
4980
|
+
commentElement.resolveCommentAnnotation(request).then(resolve).catch(reject);
|
|
4876
4981
|
});
|
|
4877
4982
|
}
|
|
4878
4983
|
};
|
|
@@ -4880,11 +4985,11 @@ function useResolveCommentAnnotation() {
|
|
|
4880
4985
|
function useGetLink() {
|
|
4881
4986
|
var commentElement = useCommentUtils();
|
|
4882
4987
|
return {
|
|
4883
|
-
getLink: function (
|
|
4988
|
+
getLink: function (request) {
|
|
4884
4989
|
return new Promise(function (resolve, reject) {
|
|
4885
4990
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getLink))
|
|
4886
4991
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4887
|
-
commentElement.getLink(
|
|
4992
|
+
commentElement.getLink(request).then(resolve).catch(reject);
|
|
4888
4993
|
});
|
|
4889
4994
|
}
|
|
4890
4995
|
};
|
|
@@ -4892,11 +4997,11 @@ function useGetLink() {
|
|
|
4892
4997
|
function useCopyLink() {
|
|
4893
4998
|
var commentElement = useCommentUtils();
|
|
4894
4999
|
return {
|
|
4895
|
-
copyLink: function (
|
|
5000
|
+
copyLink: function (request) {
|
|
4896
5001
|
return new Promise(function (resolve, reject) {
|
|
4897
5002
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.copyLink))
|
|
4898
5003
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4899
|
-
commentElement.copyLink(
|
|
5004
|
+
commentElement.copyLink(request).then(resolve).catch(reject);
|
|
4900
5005
|
});
|
|
4901
5006
|
}
|
|
4902
5007
|
};
|
|
@@ -4904,11 +5009,11 @@ function useCopyLink() {
|
|
|
4904
5009
|
function useAddComment() {
|
|
4905
5010
|
var commentElement = useCommentUtils();
|
|
4906
5011
|
return {
|
|
4907
|
-
addComment: function (
|
|
5012
|
+
addComment: function (request) {
|
|
4908
5013
|
return new Promise(function (resolve, reject) {
|
|
4909
5014
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addComment))
|
|
4910
5015
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4911
|
-
commentElement.addComment(
|
|
5016
|
+
commentElement.addComment(request).then(resolve).catch(reject);
|
|
4912
5017
|
});
|
|
4913
5018
|
}
|
|
4914
5019
|
};
|
|
@@ -4916,11 +5021,11 @@ function useAddComment() {
|
|
|
4916
5021
|
function useUpdateComment() {
|
|
4917
5022
|
var commentElement = useCommentUtils();
|
|
4918
5023
|
return {
|
|
4919
|
-
updateComment: function (
|
|
5024
|
+
updateComment: function (request) {
|
|
4920
5025
|
return new Promise(function (resolve, reject) {
|
|
4921
5026
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateComment))
|
|
4922
5027
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4923
|
-
commentElement.updateComment(
|
|
5028
|
+
commentElement.updateComment(request).then(resolve).catch(reject);
|
|
4924
5029
|
});
|
|
4925
5030
|
}
|
|
4926
5031
|
};
|
|
@@ -4928,11 +5033,11 @@ function useUpdateComment() {
|
|
|
4928
5033
|
function useDeleteComment() {
|
|
4929
5034
|
var commentElement = useCommentUtils();
|
|
4930
5035
|
return {
|
|
4931
|
-
deleteComment: function (
|
|
5036
|
+
deleteComment: function (request) {
|
|
4932
5037
|
return new Promise(function (resolve, reject) {
|
|
4933
5038
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteComment))
|
|
4934
5039
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4935
|
-
commentElement.deleteComment(
|
|
5040
|
+
commentElement.deleteComment(request).then(resolve).catch(reject);
|
|
4936
5041
|
});
|
|
4937
5042
|
}
|
|
4938
5043
|
};
|
|
@@ -4940,11 +5045,11 @@ function useDeleteComment() {
|
|
|
4940
5045
|
function useGetComment() {
|
|
4941
5046
|
var commentElement = useCommentUtils();
|
|
4942
5047
|
return {
|
|
4943
|
-
getComment: function (
|
|
5048
|
+
getComment: function (request) {
|
|
4944
5049
|
return new Promise(function (resolve, reject) {
|
|
4945
5050
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getComment))
|
|
4946
5051
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4947
|
-
commentElement.getComment(
|
|
5052
|
+
commentElement.getComment(request).then(resolve).catch(reject);
|
|
4948
5053
|
});
|
|
4949
5054
|
}
|
|
4950
5055
|
};
|
|
@@ -4952,11 +5057,11 @@ function useGetComment() {
|
|
|
4952
5057
|
function useAddAttachment() {
|
|
4953
5058
|
var commentElement = useCommentUtils();
|
|
4954
5059
|
return {
|
|
4955
|
-
addAttachment: function (
|
|
5060
|
+
addAttachment: function (request) {
|
|
4956
5061
|
return new Promise(function (resolve, reject) {
|
|
4957
5062
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addAttachment))
|
|
4958
5063
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4959
|
-
commentElement.addAttachment(
|
|
5064
|
+
commentElement.addAttachment(request).then(resolve).catch(reject);
|
|
4960
5065
|
});
|
|
4961
5066
|
}
|
|
4962
5067
|
};
|
|
@@ -4964,11 +5069,11 @@ function useAddAttachment() {
|
|
|
4964
5069
|
function useDeleteAttachment() {
|
|
4965
5070
|
var commentElement = useCommentUtils();
|
|
4966
5071
|
return {
|
|
4967
|
-
deleteAttachment: function (
|
|
5072
|
+
deleteAttachment: function (request) {
|
|
4968
5073
|
return new Promise(function (resolve, reject) {
|
|
4969
5074
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteAttachment))
|
|
4970
5075
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4971
|
-
commentElement.deleteAttachment(
|
|
5076
|
+
commentElement.deleteAttachment(request).then(resolve).catch(reject);
|
|
4972
5077
|
});
|
|
4973
5078
|
}
|
|
4974
5079
|
};
|
|
@@ -4976,11 +5081,11 @@ function useDeleteAttachment() {
|
|
|
4976
5081
|
function useGetAttachment() {
|
|
4977
5082
|
var commentElement = useCommentUtils();
|
|
4978
5083
|
return {
|
|
4979
|
-
getAttachment: function (
|
|
5084
|
+
getAttachment: function (request) {
|
|
4980
5085
|
return new Promise(function (resolve, reject) {
|
|
4981
5086
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAttachment))
|
|
4982
5087
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4983
|
-
commentElement.getAttachment(
|
|
5088
|
+
commentElement.getAttachment(request).then(resolve).catch(reject);
|
|
4984
5089
|
});
|
|
4985
5090
|
}
|
|
4986
5091
|
};
|
|
@@ -4988,11 +5093,11 @@ function useGetAttachment() {
|
|
|
4988
5093
|
function useDeleteRecording() {
|
|
4989
5094
|
var commentElement = useCommentUtils();
|
|
4990
5095
|
return {
|
|
4991
|
-
deleteRecording: function (
|
|
5096
|
+
deleteRecording: function (request) {
|
|
4992
5097
|
return new Promise(function (resolve, reject) {
|
|
4993
5098
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteRecording))
|
|
4994
5099
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4995
|
-
commentElement.deleteRecording(
|
|
5100
|
+
commentElement.deleteRecording(request).then(resolve).catch(reject);
|
|
4996
5101
|
});
|
|
4997
5102
|
}
|
|
4998
5103
|
};
|
|
@@ -5000,11 +5105,11 @@ function useDeleteRecording() {
|
|
|
5000
5105
|
function useGetRecording() {
|
|
5001
5106
|
var commentElement = useCommentUtils();
|
|
5002
5107
|
return {
|
|
5003
|
-
getRecording: function (
|
|
5108
|
+
getRecording: function (request) {
|
|
5004
5109
|
return new Promise(function (resolve, reject) {
|
|
5005
5110
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getRecording))
|
|
5006
5111
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5007
|
-
commentElement.getRecording(
|
|
5112
|
+
commentElement.getRecording(request).then(resolve).catch(reject);
|
|
5008
5113
|
});
|
|
5009
5114
|
}
|
|
5010
5115
|
};
|
|
@@ -5012,11 +5117,11 @@ function useGetRecording() {
|
|
|
5012
5117
|
function useAddReaction() {
|
|
5013
5118
|
var commentElement = useCommentUtils();
|
|
5014
5119
|
return {
|
|
5015
|
-
addReaction: function (
|
|
5120
|
+
addReaction: function (request) {
|
|
5016
5121
|
return new Promise(function (resolve, reject) {
|
|
5017
5122
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addReaction))
|
|
5018
5123
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5019
|
-
commentElement.addReaction(
|
|
5124
|
+
commentElement.addReaction(request).then(resolve).catch(reject);
|
|
5020
5125
|
});
|
|
5021
5126
|
}
|
|
5022
5127
|
};
|
|
@@ -5024,11 +5129,11 @@ function useAddReaction() {
|
|
|
5024
5129
|
function useDeleteReaction() {
|
|
5025
5130
|
var commentElement = useCommentUtils();
|
|
5026
5131
|
return {
|
|
5027
|
-
deleteReaction: function (
|
|
5132
|
+
deleteReaction: function (request) {
|
|
5028
5133
|
return new Promise(function (resolve, reject) {
|
|
5029
5134
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteReaction))
|
|
5030
5135
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5031
|
-
commentElement.deleteReaction(
|
|
5136
|
+
commentElement.deleteReaction(request).then(resolve).catch(reject);
|
|
5032
5137
|
});
|
|
5033
5138
|
}
|
|
5034
5139
|
};
|
|
@@ -5036,11 +5141,11 @@ function useDeleteReaction() {
|
|
|
5036
5141
|
function useToggleReaction() {
|
|
5037
5142
|
var commentElement = useCommentUtils();
|
|
5038
5143
|
return {
|
|
5039
|
-
toggleReaction: function (
|
|
5144
|
+
toggleReaction: function (request) {
|
|
5040
5145
|
return new Promise(function (resolve, reject) {
|
|
5041
5146
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.toggleReaction))
|
|
5042
5147
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5043
|
-
commentElement.toggleReaction(
|
|
5148
|
+
commentElement.toggleReaction(request).then(resolve).catch(reject);
|
|
5044
5149
|
});
|
|
5045
5150
|
}
|
|
5046
5151
|
};
|
|
@@ -5433,6 +5538,33 @@ function useRecordingDataByRecorderId(recorderId) {
|
|
|
5433
5538
|
return data;
|
|
5434
5539
|
}
|
|
5435
5540
|
|
|
5541
|
+
function useRecorderEventCallback(action) {
|
|
5542
|
+
var recorderElement = useRecorderUtils();
|
|
5543
|
+
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
5544
|
+
var subscriptionRef = React.useRef(null);
|
|
5545
|
+
var memoizedAction = React.useMemo(function () { return action; }, [action]);
|
|
5546
|
+
React.useEffect(function () {
|
|
5547
|
+
var _a;
|
|
5548
|
+
if (!(recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on))
|
|
5549
|
+
return;
|
|
5550
|
+
if (subscriptionRef.current) {
|
|
5551
|
+
subscriptionRef.current.unsubscribe();
|
|
5552
|
+
}
|
|
5553
|
+
var subscription = (_a = recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on(memoizedAction)) === null || _a === void 0 ? void 0 : _a.subscribe(function (data) {
|
|
5554
|
+
setData(data);
|
|
5555
|
+
});
|
|
5556
|
+
// Store the new subscription
|
|
5557
|
+
subscriptionRef.current = subscription;
|
|
5558
|
+
// Cleanup function
|
|
5559
|
+
return function () {
|
|
5560
|
+
if (subscriptionRef.current) {
|
|
5561
|
+
subscriptionRef.current.unsubscribe();
|
|
5562
|
+
}
|
|
5563
|
+
};
|
|
5564
|
+
}, [recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on, memoizedAction]);
|
|
5565
|
+
return data;
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5436
5568
|
function useAIRewriterUtils() {
|
|
5437
5569
|
var _a = React__default["default"].useState(), rewriterElement = _a[0], setRewriterElement = _a[1];
|
|
5438
5570
|
var client = useVeltClient().client;
|
|
@@ -5852,6 +5984,7 @@ exports.useCommentActionCallback = useCommentActionCallback;
|
|
|
5852
5984
|
exports.useCommentAddHandler = useCommentAddHandler;
|
|
5853
5985
|
exports.useCommentAnnotationById = useCommentAnnotationById;
|
|
5854
5986
|
exports.useCommentAnnotations = useCommentAnnotations;
|
|
5987
|
+
exports.useCommentAnnotationsCount = useCommentAnnotationsCount;
|
|
5855
5988
|
exports.useCommentCopyLinkHandler = useCommentCopyLinkHandler;
|
|
5856
5989
|
exports.useCommentDialogSidebarClickHandler = useCommentDialogSidebarClickHandler;
|
|
5857
5990
|
exports.useCommentEventCallback = useCommentEventCallback;
|
|
@@ -5877,6 +6010,7 @@ exports.useEditorAccessRequestHandler = useEditorAccessRequestHandler;
|
|
|
5877
6010
|
exports.useEditorAccessTimer = useEditorAccessTimer;
|
|
5878
6011
|
exports.useGetAttachment = useGetAttachment;
|
|
5879
6012
|
exports.useGetComment = useGetComment;
|
|
6013
|
+
exports.useGetCommentAnnotations = useGetCommentAnnotations;
|
|
5880
6014
|
exports.useGetLink = useGetLink;
|
|
5881
6015
|
exports.useGetRecording = useGetRecording;
|
|
5882
6016
|
exports.useHuddleUtils = useHuddleUtils;
|
|
@@ -5891,6 +6025,7 @@ exports.useNotificationsData = useNotificationsData;
|
|
|
5891
6025
|
exports.usePresenceUsers = usePresenceUsers;
|
|
5892
6026
|
exports.usePresenceUtils = usePresenceUtils;
|
|
5893
6027
|
exports.useRecorderAddHandler = useRecorderAddHandler;
|
|
6028
|
+
exports.useRecorderEventCallback = useRecorderEventCallback;
|
|
5894
6029
|
exports.useRecorderUtils = useRecorderUtils;
|
|
5895
6030
|
exports.useRecordingDataByRecorderId = useRecordingDataByRecorderId;
|
|
5896
6031
|
exports.useRejectCommentAnnotation = useRejectCommentAnnotation;
|
|
@@ -5898,6 +6033,7 @@ exports.useResolveCommentAnnotation = useResolveCommentAnnotation;
|
|
|
5898
6033
|
exports.useServerConnectionStateChangeHandler = useServerConnectionStateChangeHandler;
|
|
5899
6034
|
exports.useSetDocument = useSetDocument;
|
|
5900
6035
|
exports.useSetDocumentId = useSetDocumentId;
|
|
6036
|
+
exports.useSetDocuments = useSetDocuments;
|
|
5901
6037
|
exports.useSetLiveStateData = useSetLiveStateData;
|
|
5902
6038
|
exports.useSetLocation = useSetLocation;
|
|
5903
6039
|
exports.useSubscribeCommentAnnotation = useSubscribeCommentAnnotation;
|