@veltdev/react 4.0.0-beta.2 → 4.0.0-beta.21
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 +130 -69
- 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/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +6 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +1 -0
- package/cjs/types/hooks/CommentActions.d.ts +28 -28
- package/cjs/types/hooks/RecorderActions.d.ts +2 -0
- package/cjs/types/hooks/index.d.ts +2 -1
- package/esm/index.js +129 -70
- 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/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +6 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +1 -0
- package/esm/types/hooks/CommentActions.d.ts +28 -28
- package/esm/types/hooks/RecorderActions.d.ts +2 -0
- package/esm/types/hooks/index.d.ts +2 -1
- package/index.d.ts +52 -30
- 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.21';
|
|
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) {
|
|
@@ -1393,8 +1401,8 @@ var VeltAutocomplete = function (props) {
|
|
|
1393
1401
|
};
|
|
1394
1402
|
|
|
1395
1403
|
var VeltInlineCommentsSection = function (props) {
|
|
1396
|
-
var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread, sortData = props.sortData, composerVariant = props.composerVariant;
|
|
1397
|
-
return (React__default["default"].createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined, "composer-variant": composerVariant }, children));
|
|
1404
|
+
var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread, sortData = props.sortData, composerVariant = props.composerVariant, composerPosition = props.composerPosition, sortBy = props.sortBy, sortOrder = props.sortOrder;
|
|
1405
|
+
return (React__default["default"].createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined, "composer-variant": composerVariant, "composer-position": composerPosition, "sort-by": sortBy, "sort-order": sortOrder }, children));
|
|
1398
1406
|
};
|
|
1399
1407
|
|
|
1400
1408
|
var VeltCommentPin = 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"]);
|
|
@@ -4409,6 +4425,12 @@ function useUnsetDocumentId() {
|
|
|
4409
4425
|
client && client.unsetDocumentId && client.unsetDocumentId();
|
|
4410
4426
|
}, [client]);
|
|
4411
4427
|
}
|
|
4428
|
+
function useUnsetDocuments() {
|
|
4429
|
+
var client = useVeltClient().client;
|
|
4430
|
+
React__default["default"].useEffect(function () {
|
|
4431
|
+
client && client.unsetDocuments && client.unsetDocuments();
|
|
4432
|
+
}, [client]);
|
|
4433
|
+
}
|
|
4412
4434
|
function useSetLocation(location, appendLocation) {
|
|
4413
4435
|
var client = useVeltClient().client;
|
|
4414
4436
|
// Memoize the setLocation call
|
|
@@ -4767,11 +4789,11 @@ function useCommentSidebarData() {
|
|
|
4767
4789
|
function useAddCommentAnnotation() {
|
|
4768
4790
|
var commentElement = useCommentUtils();
|
|
4769
4791
|
return {
|
|
4770
|
-
addCommentAnnotation: function (
|
|
4792
|
+
addCommentAnnotation: function (request) {
|
|
4771
4793
|
return new Promise(function (resolve, reject) {
|
|
4772
4794
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addCommentAnnotation))
|
|
4773
4795
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4774
|
-
commentElement.addCommentAnnotation(
|
|
4796
|
+
commentElement.addCommentAnnotation(request).then(resolve).catch(reject);
|
|
4775
4797
|
});
|
|
4776
4798
|
}
|
|
4777
4799
|
};
|
|
@@ -4779,11 +4801,11 @@ function useAddCommentAnnotation() {
|
|
|
4779
4801
|
function useApproveCommentAnnotation() {
|
|
4780
4802
|
var commentElement = useCommentUtils();
|
|
4781
4803
|
return {
|
|
4782
|
-
approveCommentAnnotation: function (
|
|
4804
|
+
approveCommentAnnotation: function (request) {
|
|
4783
4805
|
return new Promise(function (resolve, reject) {
|
|
4784
4806
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.approveCommentAnnotation))
|
|
4785
4807
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4786
|
-
commentElement.approveCommentAnnotation(
|
|
4808
|
+
commentElement.approveCommentAnnotation(request).then(resolve).catch(reject);
|
|
4787
4809
|
});
|
|
4788
4810
|
}
|
|
4789
4811
|
};
|
|
@@ -4791,11 +4813,11 @@ function useApproveCommentAnnotation() {
|
|
|
4791
4813
|
function useRejectCommentAnnotation() {
|
|
4792
4814
|
var commentElement = useCommentUtils();
|
|
4793
4815
|
return {
|
|
4794
|
-
rejectCommentAnnotation: function (
|
|
4816
|
+
rejectCommentAnnotation: function (request) {
|
|
4795
4817
|
return new Promise(function (resolve, reject) {
|
|
4796
4818
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.rejectCommentAnnotation))
|
|
4797
4819
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4798
|
-
commentElement.rejectCommentAnnotation(
|
|
4820
|
+
commentElement.rejectCommentAnnotation(request).then(resolve).catch(reject);
|
|
4799
4821
|
});
|
|
4800
4822
|
}
|
|
4801
4823
|
};
|
|
@@ -4803,11 +4825,11 @@ function useRejectCommentAnnotation() {
|
|
|
4803
4825
|
function useSubscribeCommentAnnotation() {
|
|
4804
4826
|
var commentElement = useCommentUtils();
|
|
4805
4827
|
return {
|
|
4806
|
-
subscribeCommentAnnotation: function (
|
|
4828
|
+
subscribeCommentAnnotation: function (request) {
|
|
4807
4829
|
return new Promise(function (resolve, reject) {
|
|
4808
4830
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.subscribeCommentAnnotation))
|
|
4809
4831
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4810
|
-
commentElement.subscribeCommentAnnotation(
|
|
4832
|
+
commentElement.subscribeCommentAnnotation(request).then(resolve).catch(reject);
|
|
4811
4833
|
});
|
|
4812
4834
|
}
|
|
4813
4835
|
};
|
|
@@ -4815,11 +4837,11 @@ function useSubscribeCommentAnnotation() {
|
|
|
4815
4837
|
function useUnsubscribeCommentAnnotation() {
|
|
4816
4838
|
var commentElement = useCommentUtils();
|
|
4817
4839
|
return {
|
|
4818
|
-
unsubscribeCommentAnnotation: function (
|
|
4840
|
+
unsubscribeCommentAnnotation: function (request) {
|
|
4819
4841
|
return new Promise(function (resolve, reject) {
|
|
4820
4842
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.unsubscribeCommentAnnotation))
|
|
4821
4843
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4822
|
-
commentElement.unsubscribeCommentAnnotation(
|
|
4844
|
+
commentElement.unsubscribeCommentAnnotation(request).then(resolve).catch(reject);
|
|
4823
4845
|
});
|
|
4824
4846
|
}
|
|
4825
4847
|
};
|
|
@@ -4827,23 +4849,23 @@ function useUnsubscribeCommentAnnotation() {
|
|
|
4827
4849
|
function useDeleteCommentAnnotation() {
|
|
4828
4850
|
var commentElement = useCommentUtils();
|
|
4829
4851
|
return {
|
|
4830
|
-
deleteCommentAnnotation: function (
|
|
4852
|
+
deleteCommentAnnotation: function (request) {
|
|
4831
4853
|
return new Promise(function (resolve, reject) {
|
|
4832
4854
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteCommentAnnotation))
|
|
4833
4855
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4834
|
-
commentElement.deleteCommentAnnotation(
|
|
4856
|
+
commentElement.deleteCommentAnnotation(request).then(resolve).catch(reject);
|
|
4835
4857
|
});
|
|
4836
4858
|
}
|
|
4837
4859
|
};
|
|
4838
4860
|
}
|
|
4839
|
-
function useGetCommentAnnotations(
|
|
4861
|
+
function useGetCommentAnnotations(query) {
|
|
4840
4862
|
var commentElement = useCommentUtils();
|
|
4841
|
-
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
4863
|
+
var _a = React.useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4842
4864
|
var subscriptionRef = React.useRef();
|
|
4843
4865
|
// Memoize the inputs
|
|
4844
4866
|
var memoizedData = React.useMemo(function () {
|
|
4845
|
-
return
|
|
4846
|
-
}, [JSON.stringify(
|
|
4867
|
+
return query;
|
|
4868
|
+
}, [JSON.stringify(query)]);
|
|
4847
4869
|
React.useEffect(function () {
|
|
4848
4870
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations))
|
|
4849
4871
|
return;
|
|
@@ -4853,7 +4875,12 @@ function useGetCommentAnnotations(getCommentAnnotationsRequest) {
|
|
|
4853
4875
|
}
|
|
4854
4876
|
var subscription = commentElement.getCommentAnnotations(memoizedData)
|
|
4855
4877
|
.subscribe(function (res) {
|
|
4856
|
-
|
|
4878
|
+
if (res) {
|
|
4879
|
+
setData(res);
|
|
4880
|
+
}
|
|
4881
|
+
else {
|
|
4882
|
+
setData({ data: null });
|
|
4883
|
+
}
|
|
4857
4884
|
});
|
|
4858
4885
|
// Store the new subscription
|
|
4859
4886
|
subscriptionRef.current = subscription;
|
|
@@ -4866,14 +4893,14 @@ function useGetCommentAnnotations(getCommentAnnotationsRequest) {
|
|
|
4866
4893
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations, memoizedData]);
|
|
4867
4894
|
return data;
|
|
4868
4895
|
}
|
|
4869
|
-
function useCommentAnnotationsCount(
|
|
4896
|
+
function useCommentAnnotationsCount(query) {
|
|
4870
4897
|
var commentElement = useCommentUtils();
|
|
4871
|
-
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
4898
|
+
var _a = React.useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4872
4899
|
var subscriptionRef = React.useRef();
|
|
4873
4900
|
// Memoize the inputs
|
|
4874
4901
|
var memoizedData = React.useMemo(function () {
|
|
4875
|
-
return
|
|
4876
|
-
}, [JSON.stringify(
|
|
4902
|
+
return query;
|
|
4903
|
+
}, [JSON.stringify(query)]);
|
|
4877
4904
|
React.useEffect(function () {
|
|
4878
4905
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount))
|
|
4879
4906
|
return;
|
|
@@ -4883,7 +4910,12 @@ function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
|
|
|
4883
4910
|
}
|
|
4884
4911
|
var subscription = commentElement.getCommentAnnotationsCount(memoizedData)
|
|
4885
4912
|
.subscribe(function (res) {
|
|
4886
|
-
|
|
4913
|
+
if (res) {
|
|
4914
|
+
setData(res);
|
|
4915
|
+
}
|
|
4916
|
+
else {
|
|
4917
|
+
setData({ data: null });
|
|
4918
|
+
}
|
|
4887
4919
|
});
|
|
4888
4920
|
// Store the new subscription
|
|
4889
4921
|
subscriptionRef.current = subscription;
|
|
@@ -4899,11 +4931,11 @@ function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
|
|
|
4899
4931
|
function useAssignUser() {
|
|
4900
4932
|
var commentElement = useCommentUtils();
|
|
4901
4933
|
return {
|
|
4902
|
-
assignUser: function (
|
|
4934
|
+
assignUser: function (request) {
|
|
4903
4935
|
return new Promise(function (resolve, reject) {
|
|
4904
4936
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.assignUser))
|
|
4905
4937
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4906
|
-
commentElement.assignUser(
|
|
4938
|
+
commentElement.assignUser(request).then(resolve).catch(reject);
|
|
4907
4939
|
});
|
|
4908
4940
|
}
|
|
4909
4941
|
};
|
|
@@ -4911,11 +4943,11 @@ function useAssignUser() {
|
|
|
4911
4943
|
function useUpdatePriority() {
|
|
4912
4944
|
var commentElement = useCommentUtils();
|
|
4913
4945
|
return {
|
|
4914
|
-
updatePriority: function (
|
|
4946
|
+
updatePriority: function (request) {
|
|
4915
4947
|
return new Promise(function (resolve, reject) {
|
|
4916
4948
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updatePriority))
|
|
4917
4949
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4918
|
-
commentElement.updatePriority(
|
|
4950
|
+
commentElement.updatePriority(request).then(resolve).catch(reject);
|
|
4919
4951
|
});
|
|
4920
4952
|
}
|
|
4921
4953
|
};
|
|
@@ -4923,11 +4955,11 @@ function useUpdatePriority() {
|
|
|
4923
4955
|
function useUpdateStatus() {
|
|
4924
4956
|
var commentElement = useCommentUtils();
|
|
4925
4957
|
return {
|
|
4926
|
-
updateStatus: function (
|
|
4958
|
+
updateStatus: function (request) {
|
|
4927
4959
|
return new Promise(function (resolve, reject) {
|
|
4928
4960
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateStatus))
|
|
4929
4961
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4930
|
-
commentElement.updateStatus(
|
|
4962
|
+
commentElement.updateStatus(request).then(resolve).catch(reject);
|
|
4931
4963
|
});
|
|
4932
4964
|
}
|
|
4933
4965
|
};
|
|
@@ -4935,11 +4967,11 @@ function useUpdateStatus() {
|
|
|
4935
4967
|
function useUpdateAccess() {
|
|
4936
4968
|
var commentElement = useCommentUtils();
|
|
4937
4969
|
return {
|
|
4938
|
-
updateAccess: function (
|
|
4970
|
+
updateAccess: function (request) {
|
|
4939
4971
|
return new Promise(function (resolve, reject) {
|
|
4940
4972
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateAccess))
|
|
4941
4973
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4942
|
-
commentElement.updateAccess(
|
|
4974
|
+
commentElement.updateAccess(request).then(resolve).catch(reject);
|
|
4943
4975
|
});
|
|
4944
4976
|
}
|
|
4945
4977
|
};
|
|
@@ -4947,11 +4979,11 @@ function useUpdateAccess() {
|
|
|
4947
4979
|
function useResolveCommentAnnotation() {
|
|
4948
4980
|
var commentElement = useCommentUtils();
|
|
4949
4981
|
return {
|
|
4950
|
-
resolveCommentAnnotation: function (
|
|
4982
|
+
resolveCommentAnnotation: function (request) {
|
|
4951
4983
|
return new Promise(function (resolve, reject) {
|
|
4952
4984
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.resolveCommentAnnotation))
|
|
4953
4985
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4954
|
-
commentElement.resolveCommentAnnotation(
|
|
4986
|
+
commentElement.resolveCommentAnnotation(request).then(resolve).catch(reject);
|
|
4955
4987
|
});
|
|
4956
4988
|
}
|
|
4957
4989
|
};
|
|
@@ -4959,11 +4991,11 @@ function useResolveCommentAnnotation() {
|
|
|
4959
4991
|
function useGetLink() {
|
|
4960
4992
|
var commentElement = useCommentUtils();
|
|
4961
4993
|
return {
|
|
4962
|
-
getLink: function (
|
|
4994
|
+
getLink: function (request) {
|
|
4963
4995
|
return new Promise(function (resolve, reject) {
|
|
4964
4996
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getLink))
|
|
4965
4997
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4966
|
-
commentElement.getLink(
|
|
4998
|
+
commentElement.getLink(request).then(resolve).catch(reject);
|
|
4967
4999
|
});
|
|
4968
5000
|
}
|
|
4969
5001
|
};
|
|
@@ -4971,11 +5003,11 @@ function useGetLink() {
|
|
|
4971
5003
|
function useCopyLink() {
|
|
4972
5004
|
var commentElement = useCommentUtils();
|
|
4973
5005
|
return {
|
|
4974
|
-
copyLink: function (
|
|
5006
|
+
copyLink: function (request) {
|
|
4975
5007
|
return new Promise(function (resolve, reject) {
|
|
4976
5008
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.copyLink))
|
|
4977
5009
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4978
|
-
commentElement.copyLink(
|
|
5010
|
+
commentElement.copyLink(request).then(resolve).catch(reject);
|
|
4979
5011
|
});
|
|
4980
5012
|
}
|
|
4981
5013
|
};
|
|
@@ -4983,11 +5015,11 @@ function useCopyLink() {
|
|
|
4983
5015
|
function useAddComment() {
|
|
4984
5016
|
var commentElement = useCommentUtils();
|
|
4985
5017
|
return {
|
|
4986
|
-
addComment: function (
|
|
5018
|
+
addComment: function (request) {
|
|
4987
5019
|
return new Promise(function (resolve, reject) {
|
|
4988
5020
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addComment))
|
|
4989
5021
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4990
|
-
commentElement.addComment(
|
|
5022
|
+
commentElement.addComment(request).then(resolve).catch(reject);
|
|
4991
5023
|
});
|
|
4992
5024
|
}
|
|
4993
5025
|
};
|
|
@@ -4995,11 +5027,11 @@ function useAddComment() {
|
|
|
4995
5027
|
function useUpdateComment() {
|
|
4996
5028
|
var commentElement = useCommentUtils();
|
|
4997
5029
|
return {
|
|
4998
|
-
updateComment: function (
|
|
5030
|
+
updateComment: function (request) {
|
|
4999
5031
|
return new Promise(function (resolve, reject) {
|
|
5000
5032
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateComment))
|
|
5001
5033
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5002
|
-
commentElement.updateComment(
|
|
5034
|
+
commentElement.updateComment(request).then(resolve).catch(reject);
|
|
5003
5035
|
});
|
|
5004
5036
|
}
|
|
5005
5037
|
};
|
|
@@ -5007,11 +5039,11 @@ function useUpdateComment() {
|
|
|
5007
5039
|
function useDeleteComment() {
|
|
5008
5040
|
var commentElement = useCommentUtils();
|
|
5009
5041
|
return {
|
|
5010
|
-
deleteComment: function (
|
|
5042
|
+
deleteComment: function (request) {
|
|
5011
5043
|
return new Promise(function (resolve, reject) {
|
|
5012
5044
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteComment))
|
|
5013
5045
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5014
|
-
commentElement.deleteComment(
|
|
5046
|
+
commentElement.deleteComment(request).then(resolve).catch(reject);
|
|
5015
5047
|
});
|
|
5016
5048
|
}
|
|
5017
5049
|
};
|
|
@@ -5019,11 +5051,11 @@ function useDeleteComment() {
|
|
|
5019
5051
|
function useGetComment() {
|
|
5020
5052
|
var commentElement = useCommentUtils();
|
|
5021
5053
|
return {
|
|
5022
|
-
getComment: function (
|
|
5054
|
+
getComment: function (request) {
|
|
5023
5055
|
return new Promise(function (resolve, reject) {
|
|
5024
5056
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getComment))
|
|
5025
5057
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5026
|
-
commentElement.getComment(
|
|
5058
|
+
commentElement.getComment(request).then(resolve).catch(reject);
|
|
5027
5059
|
});
|
|
5028
5060
|
}
|
|
5029
5061
|
};
|
|
@@ -5031,11 +5063,11 @@ function useGetComment() {
|
|
|
5031
5063
|
function useAddAttachment() {
|
|
5032
5064
|
var commentElement = useCommentUtils();
|
|
5033
5065
|
return {
|
|
5034
|
-
addAttachment: function (
|
|
5066
|
+
addAttachment: function (request) {
|
|
5035
5067
|
return new Promise(function (resolve, reject) {
|
|
5036
5068
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addAttachment))
|
|
5037
5069
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5038
|
-
commentElement.addAttachment(
|
|
5070
|
+
commentElement.addAttachment(request).then(resolve).catch(reject);
|
|
5039
5071
|
});
|
|
5040
5072
|
}
|
|
5041
5073
|
};
|
|
@@ -5043,11 +5075,11 @@ function useAddAttachment() {
|
|
|
5043
5075
|
function useDeleteAttachment() {
|
|
5044
5076
|
var commentElement = useCommentUtils();
|
|
5045
5077
|
return {
|
|
5046
|
-
deleteAttachment: function (
|
|
5078
|
+
deleteAttachment: function (request) {
|
|
5047
5079
|
return new Promise(function (resolve, reject) {
|
|
5048
5080
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteAttachment))
|
|
5049
5081
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5050
|
-
commentElement.deleteAttachment(
|
|
5082
|
+
commentElement.deleteAttachment(request).then(resolve).catch(reject);
|
|
5051
5083
|
});
|
|
5052
5084
|
}
|
|
5053
5085
|
};
|
|
@@ -5055,11 +5087,11 @@ function useDeleteAttachment() {
|
|
|
5055
5087
|
function useGetAttachment() {
|
|
5056
5088
|
var commentElement = useCommentUtils();
|
|
5057
5089
|
return {
|
|
5058
|
-
getAttachment: function (
|
|
5090
|
+
getAttachment: function (request) {
|
|
5059
5091
|
return new Promise(function (resolve, reject) {
|
|
5060
5092
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAttachment))
|
|
5061
5093
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5062
|
-
commentElement.getAttachment(
|
|
5094
|
+
commentElement.getAttachment(request).then(resolve).catch(reject);
|
|
5063
5095
|
});
|
|
5064
5096
|
}
|
|
5065
5097
|
};
|
|
@@ -5067,11 +5099,11 @@ function useGetAttachment() {
|
|
|
5067
5099
|
function useDeleteRecording() {
|
|
5068
5100
|
var commentElement = useCommentUtils();
|
|
5069
5101
|
return {
|
|
5070
|
-
deleteRecording: function (
|
|
5102
|
+
deleteRecording: function (request) {
|
|
5071
5103
|
return new Promise(function (resolve, reject) {
|
|
5072
5104
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteRecording))
|
|
5073
5105
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5074
|
-
commentElement.deleteRecording(
|
|
5106
|
+
commentElement.deleteRecording(request).then(resolve).catch(reject);
|
|
5075
5107
|
});
|
|
5076
5108
|
}
|
|
5077
5109
|
};
|
|
@@ -5079,11 +5111,11 @@ function useDeleteRecording() {
|
|
|
5079
5111
|
function useGetRecording() {
|
|
5080
5112
|
var commentElement = useCommentUtils();
|
|
5081
5113
|
return {
|
|
5082
|
-
getRecording: function (
|
|
5114
|
+
getRecording: function (request) {
|
|
5083
5115
|
return new Promise(function (resolve, reject) {
|
|
5084
5116
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getRecording))
|
|
5085
5117
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5086
|
-
commentElement.getRecording(
|
|
5118
|
+
commentElement.getRecording(request).then(resolve).catch(reject);
|
|
5087
5119
|
});
|
|
5088
5120
|
}
|
|
5089
5121
|
};
|
|
@@ -5091,11 +5123,11 @@ function useGetRecording() {
|
|
|
5091
5123
|
function useAddReaction() {
|
|
5092
5124
|
var commentElement = useCommentUtils();
|
|
5093
5125
|
return {
|
|
5094
|
-
addReaction: function (
|
|
5126
|
+
addReaction: function (request) {
|
|
5095
5127
|
return new Promise(function (resolve, reject) {
|
|
5096
5128
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addReaction))
|
|
5097
5129
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5098
|
-
commentElement.addReaction(
|
|
5130
|
+
commentElement.addReaction(request).then(resolve).catch(reject);
|
|
5099
5131
|
});
|
|
5100
5132
|
}
|
|
5101
5133
|
};
|
|
@@ -5103,11 +5135,11 @@ function useAddReaction() {
|
|
|
5103
5135
|
function useDeleteReaction() {
|
|
5104
5136
|
var commentElement = useCommentUtils();
|
|
5105
5137
|
return {
|
|
5106
|
-
deleteReaction: function (
|
|
5138
|
+
deleteReaction: function (request) {
|
|
5107
5139
|
return new Promise(function (resolve, reject) {
|
|
5108
5140
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteReaction))
|
|
5109
5141
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5110
|
-
commentElement.deleteReaction(
|
|
5142
|
+
commentElement.deleteReaction(request).then(resolve).catch(reject);
|
|
5111
5143
|
});
|
|
5112
5144
|
}
|
|
5113
5145
|
};
|
|
@@ -5115,11 +5147,11 @@ function useDeleteReaction() {
|
|
|
5115
5147
|
function useToggleReaction() {
|
|
5116
5148
|
var commentElement = useCommentUtils();
|
|
5117
5149
|
return {
|
|
5118
|
-
toggleReaction: function (
|
|
5150
|
+
toggleReaction: function (request) {
|
|
5119
5151
|
return new Promise(function (resolve, reject) {
|
|
5120
5152
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.toggleReaction))
|
|
5121
5153
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5122
|
-
commentElement.toggleReaction(
|
|
5154
|
+
commentElement.toggleReaction(request).then(resolve).catch(reject);
|
|
5123
5155
|
});
|
|
5124
5156
|
}
|
|
5125
5157
|
};
|
|
@@ -5512,6 +5544,33 @@ function useRecordingDataByRecorderId(recorderId) {
|
|
|
5512
5544
|
return data;
|
|
5513
5545
|
}
|
|
5514
5546
|
|
|
5547
|
+
function useRecorderEventCallback(action) {
|
|
5548
|
+
var recorderElement = useRecorderUtils();
|
|
5549
|
+
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
5550
|
+
var subscriptionRef = React.useRef(null);
|
|
5551
|
+
var memoizedAction = React.useMemo(function () { return action; }, [action]);
|
|
5552
|
+
React.useEffect(function () {
|
|
5553
|
+
var _a;
|
|
5554
|
+
if (!(recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on))
|
|
5555
|
+
return;
|
|
5556
|
+
if (subscriptionRef.current) {
|
|
5557
|
+
subscriptionRef.current.unsubscribe();
|
|
5558
|
+
}
|
|
5559
|
+
var subscription = (_a = recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on(memoizedAction)) === null || _a === void 0 ? void 0 : _a.subscribe(function (data) {
|
|
5560
|
+
setData(data);
|
|
5561
|
+
});
|
|
5562
|
+
// Store the new subscription
|
|
5563
|
+
subscriptionRef.current = subscription;
|
|
5564
|
+
// Cleanup function
|
|
5565
|
+
return function () {
|
|
5566
|
+
if (subscriptionRef.current) {
|
|
5567
|
+
subscriptionRef.current.unsubscribe();
|
|
5568
|
+
}
|
|
5569
|
+
};
|
|
5570
|
+
}, [recorderElement === null || recorderElement === void 0 ? void 0 : recorderElement.on, memoizedAction]);
|
|
5571
|
+
return data;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5515
5574
|
function useAIRewriterUtils() {
|
|
5516
5575
|
var _a = React__default["default"].useState(), rewriterElement = _a[0], setRewriterElement = _a[1];
|
|
5517
5576
|
var client = useVeltClient().client;
|
|
@@ -5972,6 +6031,7 @@ exports.useNotificationsData = useNotificationsData;
|
|
|
5972
6031
|
exports.usePresenceUsers = usePresenceUsers;
|
|
5973
6032
|
exports.usePresenceUtils = usePresenceUtils;
|
|
5974
6033
|
exports.useRecorderAddHandler = useRecorderAddHandler;
|
|
6034
|
+
exports.useRecorderEventCallback = useRecorderEventCallback;
|
|
5975
6035
|
exports.useRecorderUtils = useRecorderUtils;
|
|
5976
6036
|
exports.useRecordingDataByRecorderId = useRecordingDataByRecorderId;
|
|
5977
6037
|
exports.useRejectCommentAnnotation = useRejectCommentAnnotation;
|
|
@@ -5995,6 +6055,7 @@ exports.useUnreadCommentCountByLocationId = useUnreadCommentCountByLocationId;
|
|
|
5995
6055
|
exports.useUnreadCommentCountOnCurrentDocument = useUnreadCommentCountOnCurrentDocument;
|
|
5996
6056
|
exports.useUnreadNotificationsCount = useUnreadNotificationsCount;
|
|
5997
6057
|
exports.useUnsetDocumentId = useUnsetDocumentId;
|
|
6058
|
+
exports.useUnsetDocuments = useUnsetDocuments;
|
|
5998
6059
|
exports.useUnsubscribeCommentAnnotation = useUnsubscribeCommentAnnotation;
|
|
5999
6060
|
exports.useUpdateAccess = useUpdateAccess;
|
|
6000
6061
|
exports.useUpdateComment = useUpdateComment;
|