@veltdev/react 1.0.119 → 1.0.121
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 +84 -134
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +2 -0
- package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
- package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/cjs/types/components/VeltAutocomplete/VeltAutocomplete.d.ts +8 -0
- package/cjs/types/components/VeltAutocomplete/index.d.ts +1 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/VeltAutocompleteOptionDescriptionWireframe.d.ts +5 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/VeltAutocompleteOptionErrorIconWireframe.d.ts +5 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/VeltAutocompleteOptionIconWireframe.d.ts +5 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/VeltAutocompleteOptionNameWireframe.d.ts +5 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionWireframe.d.ts +14 -0
- package/cjs/types/components/VeltAutocompleteOptionWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/VeltCommentDialogCommentIndex.d.ts +5 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogComposer/VeltCommentDialogComposerActionButton/VeltCommentDialogComposerActionButton.d.ts +2 -1
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogWireframe.d.ts +2 -2
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/VeltCommentsSidebarPageModeComposer.d.ts +5 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -2
- package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +1 -0
- package/cjs/types/components/index.d.ts +2 -0
- package/cjs/types/hooks/AutocompleteElement.d.ts +3 -0
- package/cjs/types/hooks/Client.d.ts +1 -20
- package/cjs/types/hooks/CommentElement.d.ts +0 -18
- package/cjs/types/hooks/CursorElement.d.ts +0 -6
- package/cjs/types/hooks/HuddleElement.d.ts +0 -3
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +0 -24
- package/cjs/types/hooks/NotificationElement.d.ts +0 -6
- package/cjs/types/hooks/PresenceElement.d.ts +0 -6
- package/cjs/types/hooks/RecorderElement.d.ts +0 -6
- package/cjs/types/hooks/RewriterElement.d.ts +0 -3
- package/cjs/types/hooks/SelectionElement.d.ts +0 -3
- package/cjs/types/hooks/TagElement.d.ts +0 -6
- package/cjs/types/hooks/ViewsElement.d.ts +0 -9
- package/cjs/types/hooks/index.d.ts +2 -1
- package/esm/index.js +81 -134
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +2 -0
- package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
- package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/esm/types/components/VeltAutocomplete/VeltAutocomplete.d.ts +8 -0
- package/esm/types/components/VeltAutocomplete/index.d.ts +1 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/VeltAutocompleteOptionDescriptionWireframe.d.ts +5 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/VeltAutocompleteOptionErrorIconWireframe.d.ts +5 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/VeltAutocompleteOptionIconWireframe.d.ts +5 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/VeltAutocompleteOptionNameWireframe.d.ts +5 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionWireframe.d.ts +14 -0
- package/esm/types/components/VeltAutocompleteOptionWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/VeltCommentDialogCommentIndex.d.ts +5 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogComposer/VeltCommentDialogComposerActionButton/VeltCommentDialogComposerActionButton.d.ts +2 -1
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogWireframe.d.ts +2 -2
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/VeltCommentsSidebarPageModeComposer.d.ts +5 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -2
- package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +1 -0
- package/esm/types/components/index.d.ts +2 -0
- package/esm/types/hooks/AutocompleteElement.d.ts +3 -0
- package/esm/types/hooks/Client.d.ts +1 -20
- package/esm/types/hooks/CommentElement.d.ts +0 -18
- package/esm/types/hooks/CursorElement.d.ts +0 -6
- package/esm/types/hooks/HuddleElement.d.ts +0 -3
- package/esm/types/hooks/LiveStateSyncElement.d.ts +0 -24
- package/esm/types/hooks/NotificationElement.d.ts +0 -6
- package/esm/types/hooks/PresenceElement.d.ts +0 -6
- package/esm/types/hooks/RecorderElement.d.ts +0 -6
- package/esm/types/hooks/RewriterElement.d.ts +0 -3
- package/esm/types/hooks/SelectionElement.d.ts +0 -3
- package/esm/types/hooks/TagElement.d.ts +0 -6
- package/esm/types/hooks/ViewsElement.d.ts +0 -9
- package/esm/types/hooks/index.d.ts +2 -1
- package/index.d.ts +47 -118
- package/package.json +1 -1
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/VeltCommentDialogCommentCount.d.ts +0 -5
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/index.d.ts +0 -1
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/VeltCommentsSidebarPageMode.d.ts +0 -5
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/index.d.ts +0 -1
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/VeltCommentDialogCommentCount.d.ts +0 -5
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/index.d.ts +0 -1
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/VeltCommentsSidebarPageMode.d.ts +0 -5
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/index.d.ts +0 -1
package/esm/index.js
CHANGED
|
@@ -220,12 +220,12 @@ var SnippylyProvider = function (props) {
|
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
var SnippylyCommentBubble = function (props) {
|
|
223
|
-
var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children;
|
|
224
|
-
return (React.createElement("velt-comment-bubble", { "target-comment-element-id": targetCommentElementId, "show-avatar": [true, false].includes(showAvatar) ? (showAvatar ? 'true' : 'false') : undefined, avatar: [true, false].includes(avatar) ? (avatar ? 'true' : 'false') : undefined, "comment-bubble-target-pin-hover": commentBubbleTargetPinHover ? 'true' : undefined }, children));
|
|
223
|
+
var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children, shadowDom = props.shadowDom, variant = props.variant;
|
|
224
|
+
return (React.createElement("velt-comment-bubble", { "target-comment-element-id": targetCommentElementId, "show-avatar": [true, false].includes(showAvatar) ? (showAvatar ? 'true' : 'false') : undefined, avatar: [true, false].includes(avatar) ? (avatar ? 'true' : 'false') : undefined, "comment-bubble-target-pin-hover": commentBubbleTargetPinHover ? 'true' : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, variant: variant }, children));
|
|
225
225
|
};
|
|
226
226
|
|
|
227
227
|
var SnippylyComments = function (props) {
|
|
228
|
-
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, persistentCommentMode = props.persistentCommentMode, ghostComments = props.ghostComments, ghostCommentsIndicator = props.ghostCommentsIndicator, commentsOnDom = props.commentsOnDom, commentTool = props.commentTool, sidebarButtonOnCommentDialog = props.sidebarButtonOnCommentDialog, deviceIndicatorOnCommentPins = props.deviceIndicatorOnCommentPins, scrollToComment = props.scrollToComment, userMentions = props.userMentions, deleteOnBackspace = props.deleteOnBackspace, hotkey = props.hotkey, recordingSummary = props.recordingSummary, recordingCountdown = props.recordingCountdown, unreadIndicatorMode = props.unreadIndicatorMode, pinShadowDom = props.pinShadowDom, dialogShadowDom = props.dialogShadowDom, shadowDom = props.shadowDom, changeDetectionInCommentMode = props.changeDetectionInCommentMode, allowedElementIds = props.allowedElementIds, allowedElementClassNames = props.allowedElementClassNames, allowedElementQuerySelectors = props.allowedElementQuerySelectors, onCommentAdd = props.onCommentAdd, onCommentUpdate = props.onCommentUpdate, onCommentAccept = props.onCommentAccept, onCommentReject = props.onCommentReject, onSidebarButtonOnCommentDialogClick = props.onSidebarButtonOnCommentDialogClick, customStatus = props.customStatus, customPriority = props.customPriority, customCategory = props.customCategory, status = props.status, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children;
|
|
228
|
+
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, persistentCommentMode = props.persistentCommentMode, ghostComments = props.ghostComments, ghostCommentsIndicator = props.ghostCommentsIndicator, commentsOnDom = props.commentsOnDom, commentTool = props.commentTool, sidebarButtonOnCommentDialog = props.sidebarButtonOnCommentDialog, deviceIndicatorOnCommentPins = props.deviceIndicatorOnCommentPins, scrollToComment = props.scrollToComment, userMentions = props.userMentions, deleteOnBackspace = props.deleteOnBackspace, hotkey = props.hotkey, recordingSummary = props.recordingSummary, recordingCountdown = props.recordingCountdown, unreadIndicatorMode = props.unreadIndicatorMode, pinShadowDom = props.pinShadowDom, dialogShadowDom = props.dialogShadowDom, shadowDom = props.shadowDom, changeDetectionInCommentMode = props.changeDetectionInCommentMode, allowedElementIds = props.allowedElementIds, allowedElementClassNames = props.allowedElementClassNames, allowedElementQuerySelectors = props.allowedElementQuerySelectors, onCommentAdd = props.onCommentAdd, onCommentUpdate = props.onCommentUpdate, onCommentAccept = props.onCommentAccept, onCommentReject = props.onCommentReject, onSidebarButtonOnCommentDialogClick = props.onSidebarButtonOnCommentDialogClick, customStatus = props.customStatus, 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;
|
|
229
229
|
var ref = useRef();
|
|
230
230
|
var onSignInRef = useRef(onSignIn);
|
|
231
231
|
var onUpgradeRef = useRef(onUpgrade);
|
|
@@ -305,7 +305,7 @@ var SnippylyComments = function (props) {
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
}, []);
|
|
308
|
-
return (React.createElement("velt-comments", { ref: ref, "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, "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, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined, "sidebar-button-on-comment-dialog": [true, false].includes(sidebarButtonOnCommentDialog) ? (sidebarButtonOnCommentDialog ? 'true' : 'false') : undefined, "device-indicator-on-comment-pins": [true, false].includes(deviceIndicatorOnCommentPins) ? (deviceIndicatorOnCommentPins ? 'true' : 'false') : undefined, "scroll-to-comment": [true, false].includes(scrollToComment) ? (scrollToComment ? 'true' : 'false') : undefined, "user-mentions": [true, false].includes(userMentions) ? (userMentions ? 'true' : 'false') : undefined, "delete-on-backspace": [true, false].includes(deleteOnBackspace) ? (deleteOnBackspace ? 'true' : 'false') : undefined, hotkey: [true, false].includes(hotkey) ? (hotkey ? 'true' : 'false') : undefined, "recording-summary": [true, false].includes(recordingSummary) ? (recordingSummary ? 'true' : 'false') : undefined, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "unread-indicator-mode": unreadIndicatorMode, "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, "change-detection-in-comment-mode": [true, false].includes(changeDetectionInCommentMode) ? (changeDetectionInCommentMode ? 'true' : 'false') : undefined, "allowed-element-ids": JSON.stringify(allowedElementIds), "allowed-element-class-names": JSON.stringify(allowedElementClassNames), "allowed-element-query-selectors": JSON.stringify(allowedElementQuerySelectors), "custom-status": JSON.stringify(customStatus), "custom-priority": JSON.stringify(customPriority), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
308
|
+
return (React.createElement("velt-comments", { ref: ref, "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, "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, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined, "sidebar-button-on-comment-dialog": [true, false].includes(sidebarButtonOnCommentDialog) ? (sidebarButtonOnCommentDialog ? 'true' : 'false') : undefined, "device-indicator-on-comment-pins": [true, false].includes(deviceIndicatorOnCommentPins) ? (deviceIndicatorOnCommentPins ? 'true' : 'false') : undefined, "scroll-to-comment": [true, false].includes(scrollToComment) ? (scrollToComment ? 'true' : 'false') : undefined, "user-mentions": [true, false].includes(userMentions) ? (userMentions ? 'true' : 'false') : undefined, "delete-on-backspace": [true, false].includes(deleteOnBackspace) ? (deleteOnBackspace ? 'true' : 'false') : undefined, hotkey: [true, false].includes(hotkey) ? (hotkey ? 'true' : 'false') : undefined, "recording-summary": [true, false].includes(recordingSummary) ? (recordingSummary ? 'true' : 'false') : undefined, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "unread-indicator-mode": unreadIndicatorMode, "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, "change-detection-in-comment-mode": [true, false].includes(changeDetectionInCommentMode) ? (changeDetectionInCommentMode ? 'true' : 'false') : undefined, "allowed-element-ids": JSON.stringify(allowedElementIds), "allowed-element-class-names": JSON.stringify(allowedElementClassNames), "allowed-element-query-selectors": JSON.stringify(allowedElementQuerySelectors), "custom-status": JSON.stringify(customStatus), "custom-priority": JSON.stringify(customPriority), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
309
309
|
};
|
|
310
310
|
|
|
311
311
|
var SnippylyCommentsSidebar = function (props) {
|
|
@@ -349,11 +349,11 @@ var SnippylyCommentsSidebar = function (props) {
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
}, []);
|
|
352
|
-
return (React.createElement("velt-comments-sidebar", { ref: ref, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData
|
|
352
|
+
return (React.createElement("velt-comments-sidebar", { ref: ref, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData }));
|
|
353
353
|
};
|
|
354
354
|
|
|
355
355
|
var SnippylyCommentTool = function (props) {
|
|
356
|
-
var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode, variant = props.variant;
|
|
356
|
+
var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom;
|
|
357
357
|
var ref = useRef();
|
|
358
358
|
var onCommentModeChangeRef = useRef(onCommentModeChange);
|
|
359
359
|
// Update the ref to always point to the latest callback function
|
|
@@ -370,7 +370,7 @@ var SnippylyCommentTool = function (props) {
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
}, []);
|
|
373
|
-
return (React.createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, variant: variant, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
373
|
+
return (React.createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, variant: variant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
374
374
|
};
|
|
375
375
|
|
|
376
376
|
var SnippylyCursor = function (props) {
|
|
@@ -509,8 +509,8 @@ var SnippylyRecorderTool = function (props) {
|
|
|
509
509
|
};
|
|
510
510
|
|
|
511
511
|
var SnippylySidebarButton = function (props) {
|
|
512
|
-
var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode;
|
|
513
|
-
return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
512
|
+
var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
|
|
513
|
+
return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
var SnippylyTags = function (props) {
|
|
@@ -1105,6 +1105,11 @@ var VeltHighChartComments = function (_a) {
|
|
|
1105
1105
|
React.createElement(VeltChartComment, { ghostComment: true, commentMetadata: point.metadata, dialogMetadataTemplate: dialogMetadataTemplate || point.dialogMetadataTemplate || ['groupId', 'label', 'value'] }))); })));
|
|
1106
1106
|
};
|
|
1107
1107
|
|
|
1108
|
+
var VeltAutocomplete = function (props) {
|
|
1109
|
+
var hotkey = props.hotkey, listData = props.listData;
|
|
1110
|
+
return (React.createElement("velt-autocomplete", { hotkey: hotkey, "list-data": (typeof listData === 'object') ? JSON.stringify(listData) : undefined }));
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1108
1113
|
var VeltWireframe = function (props) {
|
|
1109
1114
|
var children = props.children;
|
|
1110
1115
|
return (React.createElement("velt-wireframe", null, children));
|
|
@@ -1158,9 +1163,9 @@ var VeltCommentDialogCommentCategory = function (props) {
|
|
|
1158
1163
|
return (React.createElement("velt-comment-dialog-comment-category-wireframe", null, children));
|
|
1159
1164
|
};
|
|
1160
1165
|
|
|
1161
|
-
var
|
|
1166
|
+
var VeltCommentDialogCommentIndex = function (props) {
|
|
1162
1167
|
var children = props.children;
|
|
1163
|
-
return (React.createElement("velt-comment-dialog-comment-
|
|
1168
|
+
return (React.createElement("velt-comment-dialog-comment-index-wireframe", null, children));
|
|
1164
1169
|
};
|
|
1165
1170
|
|
|
1166
1171
|
var VeltCommentDialogCommentSuggestionStatus = function (props) {
|
|
@@ -1367,7 +1372,7 @@ VeltCommentDialogWireframe.AssigneeBanner = VeltCommentDialogAssigneeBanner;
|
|
|
1367
1372
|
VeltCommentDialogWireframe.AssignMenu = VeltCommentDialogAssignMenu;
|
|
1368
1373
|
VeltCommentDialogWireframe.Body = VeltCommentDialogBody;
|
|
1369
1374
|
VeltCommentDialogWireframe.CommentCategory = VeltCommentDialogCommentCategory;
|
|
1370
|
-
VeltCommentDialogWireframe.
|
|
1375
|
+
VeltCommentDialogWireframe.CommentIndex = VeltCommentDialogCommentIndex;
|
|
1371
1376
|
VeltCommentDialogWireframe.CommentSuggestionStatus = VeltCommentDialogCommentSuggestionStatus;
|
|
1372
1377
|
VeltCommentDialogWireframe.Composer = VeltCommentDialogComposer;
|
|
1373
1378
|
VeltCommentDialogWireframe.CopyLink = VeltCommentDialogCopyLink;
|
|
@@ -1496,9 +1501,9 @@ var VeltCommentsSidebarList = function (props) {
|
|
|
1496
1501
|
return (React.createElement("velt-comments-sidebar-list-wireframe", null, children));
|
|
1497
1502
|
};
|
|
1498
1503
|
|
|
1499
|
-
var
|
|
1504
|
+
var VeltCommentsSidebarPageModeComposer = function (props) {
|
|
1500
1505
|
var children = props.children;
|
|
1501
|
-
return (React.createElement("velt-comments-sidebar-page-mode-wireframe", null, children));
|
|
1506
|
+
return (React.createElement("velt-comments-sidebar-page-mode-composer-wireframe", null, children));
|
|
1502
1507
|
};
|
|
1503
1508
|
|
|
1504
1509
|
var VeltCommentsSidebarSearch = function (props) {
|
|
@@ -1525,7 +1530,7 @@ VeltCommentsSidebarWireframe.EmptyPlaceholder = VeltCommentsSidebarEmptyPlacehol
|
|
|
1525
1530
|
VeltCommentsSidebarWireframe.Filter = VeltCommentsSidebarFilter;
|
|
1526
1531
|
VeltCommentsSidebarWireframe.Header = VeltCommentsSidebarHeader;
|
|
1527
1532
|
VeltCommentsSidebarWireframe.List = VeltCommentsSidebarList;
|
|
1528
|
-
VeltCommentsSidebarWireframe.
|
|
1533
|
+
VeltCommentsSidebarWireframe.PageModeComposer = VeltCommentsSidebarPageModeComposer;
|
|
1529
1534
|
VeltCommentsSidebarWireframe.Search = VeltCommentsSidebarSearch;
|
|
1530
1535
|
VeltCommentsSidebarWireframe.Status = VeltCommentsSidebarStatus;
|
|
1531
1536
|
VeltCommentsSidebarWireframe.FilterButton = VeltCommentsSidebarFilterButton;
|
|
@@ -1571,8 +1576,8 @@ var VeltSidebarButtonCommentsCount = function (props) {
|
|
|
1571
1576
|
};
|
|
1572
1577
|
|
|
1573
1578
|
var VeltSidebarButtonWireframe = function (props) {
|
|
1574
|
-
var children = props.children;
|
|
1575
|
-
return (React.createElement("velt-sidebar-button-wireframe",
|
|
1579
|
+
var children = props.children, remainingProp = __rest(props, ["children"]);
|
|
1580
|
+
return (React.createElement("velt-sidebar-button-wireframe", __assign({}, remainingProp), children));
|
|
1576
1581
|
};
|
|
1577
1582
|
VeltSidebarButtonWireframe.CommentsCount = VeltSidebarButtonCommentsCount;
|
|
1578
1583
|
|
|
@@ -1644,6 +1649,35 @@ VeltUserSelectorDropdown.Email = VeltUserSelectorDropdownEmail;
|
|
|
1644
1649
|
VeltUserSelectorDropdown.ErrorIcon = VeltUserSelectorDropdownErrorIcon;
|
|
1645
1650
|
VeltUserSelectorDropdown.Name = VeltUserSelectorDropdownName;
|
|
1646
1651
|
|
|
1652
|
+
var VeltAutocompleteOptionIconWireframe = function (props) {
|
|
1653
|
+
var children = props.children;
|
|
1654
|
+
return (React.createElement("velt-autocomplete-option-icon-wireframe", null, children));
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
var VeltAutocompleteOptionNameWireframe = function (props) {
|
|
1658
|
+
var children = props.children;
|
|
1659
|
+
return (React.createElement("velt-autocomplete-option-name-wireframe", null, children));
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
var VeltAutocompleteOptionDescriptionWireframe = function (props) {
|
|
1663
|
+
var children = props.children;
|
|
1664
|
+
return (React.createElement("velt-autocomplete-option-description-wireframe", null, children));
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
var VeltAutocompleteOptionErrorIconWireframe = function (props) {
|
|
1668
|
+
var children = props.children;
|
|
1669
|
+
return (React.createElement("velt-autocomplete-option-error-icon-wireframe", null, children));
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
var VeltAutocompleteOptionWireframe = function (props) {
|
|
1673
|
+
var children = props.children;
|
|
1674
|
+
return (React.createElement("velt-autocomplete-option-wireframe", null, children));
|
|
1675
|
+
};
|
|
1676
|
+
VeltAutocompleteOptionWireframe.Icon = VeltAutocompleteOptionIconWireframe;
|
|
1677
|
+
VeltAutocompleteOptionWireframe.Description = VeltAutocompleteOptionDescriptionWireframe;
|
|
1678
|
+
VeltAutocompleteOptionWireframe.ErrorIcon = VeltAutocompleteOptionErrorIconWireframe;
|
|
1679
|
+
VeltAutocompleteOptionWireframe.Name = VeltAutocompleteOptionNameWireframe;
|
|
1680
|
+
|
|
1647
1681
|
var VeltCommentBubbleAvatar = function (props) {
|
|
1648
1682
|
var children = props.children;
|
|
1649
1683
|
return (React.createElement("velt-comment-bubble-avatar-wireframe", null, children));
|
|
@@ -1654,9 +1688,6 @@ var VeltCommentBubbleCommentsCount = function (props) {
|
|
|
1654
1688
|
return (React.createElement("velt-comment-bubble-comments-count-wireframe", null, children));
|
|
1655
1689
|
};
|
|
1656
1690
|
|
|
1657
|
-
/**
|
|
1658
|
-
* @beta This hook is in beta
|
|
1659
|
-
*/
|
|
1660
1691
|
function useClient() {
|
|
1661
1692
|
var client = useVeltClient().client;
|
|
1662
1693
|
var _a = React.useState(), veltClient = _a[0], setVeltClient = _a[1];
|
|
@@ -1667,55 +1698,31 @@ function useClient() {
|
|
|
1667
1698
|
}, [client, setVeltClient, veltClient]);
|
|
1668
1699
|
return veltClient;
|
|
1669
1700
|
}
|
|
1670
|
-
/**
|
|
1671
|
-
* @beta This hook is in beta
|
|
1672
|
-
*/
|
|
1673
1701
|
function useIdentify(user, userOptions) {
|
|
1674
1702
|
var client = useVeltClient().client;
|
|
1675
1703
|
React.useEffect(function () {
|
|
1676
1704
|
client && client.identify(user, userOptions);
|
|
1677
1705
|
}, [client]);
|
|
1678
1706
|
}
|
|
1679
|
-
/**
|
|
1680
|
-
* @beta This hook is in beta
|
|
1681
|
-
*/
|
|
1682
1707
|
function useSetDocumentId(documentId) {
|
|
1683
1708
|
var client = useVeltClient().client;
|
|
1684
1709
|
React.useEffect(function () {
|
|
1685
1710
|
client && client.setDocumentId(documentId);
|
|
1686
1711
|
}, [client]);
|
|
1687
1712
|
}
|
|
1688
|
-
/**
|
|
1689
|
-
* @beta This hook is in beta
|
|
1690
|
-
*/
|
|
1691
1713
|
function useUnsetDocumentId() {
|
|
1692
1714
|
var client = useVeltClient().client;
|
|
1693
1715
|
React.useEffect(function () {
|
|
1694
1716
|
client && client.unsetDocumentId && client.unsetDocumentId();
|
|
1695
1717
|
}, [client]);
|
|
1696
1718
|
}
|
|
1697
|
-
|
|
1698
|
-
* @beta This hook is in beta
|
|
1699
|
-
*/
|
|
1700
|
-
function useSetLocation(location) {
|
|
1719
|
+
function useSetLocation(location, appendLocation) {
|
|
1701
1720
|
var client = useVeltClient().client;
|
|
1702
1721
|
React.useEffect(function () {
|
|
1703
|
-
client && client.setLocation(location);
|
|
1704
|
-
}, [client]);
|
|
1705
|
-
}
|
|
1706
|
-
/**
|
|
1707
|
-
* @beta This hook is in beta
|
|
1708
|
-
*/
|
|
1709
|
-
function useAddLocation(location) {
|
|
1710
|
-
var client = useVeltClient().client;
|
|
1711
|
-
React.useEffect(function () {
|
|
1712
|
-
client && client.addLocation(location);
|
|
1722
|
+
client && client.setLocation(location, appendLocation);
|
|
1713
1723
|
}, [client]);
|
|
1714
1724
|
}
|
|
1715
1725
|
|
|
1716
|
-
/**
|
|
1717
|
-
* @beta This hook is in beta
|
|
1718
|
-
*/
|
|
1719
1726
|
function useCommentUtils() {
|
|
1720
1727
|
var _a = React.useState(), commentElement = _a[0], setCommentElement = _a[1];
|
|
1721
1728
|
var client = useVeltClient().client;
|
|
@@ -1727,9 +1734,6 @@ function useCommentUtils() {
|
|
|
1727
1734
|
}, [client, setCommentElement, commentElement]);
|
|
1728
1735
|
return commentElement;
|
|
1729
1736
|
}
|
|
1730
|
-
/**
|
|
1731
|
-
* @beta This hook is in beta
|
|
1732
|
-
*/
|
|
1733
1737
|
function useCommentAnnotations(documentId, location) {
|
|
1734
1738
|
var commentElement = useCommentUtils();
|
|
1735
1739
|
var _a = React.useState([]), data = _a[0], setData = _a[1];
|
|
@@ -1745,9 +1749,6 @@ function useCommentAnnotations(documentId, location) {
|
|
|
1745
1749
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAllCommentAnnotations]);
|
|
1746
1750
|
return data;
|
|
1747
1751
|
}
|
|
1748
|
-
/**
|
|
1749
|
-
* @beta This hook is in beta
|
|
1750
|
-
*/
|
|
1751
1752
|
function useCommentModeState() {
|
|
1752
1753
|
var commentElement = useCommentUtils();
|
|
1753
1754
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
@@ -1763,9 +1764,6 @@ function useCommentModeState() {
|
|
|
1763
1764
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCommentModeChange]);
|
|
1764
1765
|
return data;
|
|
1765
1766
|
}
|
|
1766
|
-
/**
|
|
1767
|
-
* @beta This hook is in beta
|
|
1768
|
-
*/
|
|
1769
1767
|
function useCommentAddHandler() {
|
|
1770
1768
|
var commentElement = useCommentUtils();
|
|
1771
1769
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
@@ -1781,9 +1779,6 @@ function useCommentAddHandler() {
|
|
|
1781
1779
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCommentAdd]);
|
|
1782
1780
|
return data;
|
|
1783
1781
|
}
|
|
1784
|
-
/**
|
|
1785
|
-
* @beta This hook is in beta
|
|
1786
|
-
*/
|
|
1787
1782
|
function useCommentUpdateHandler() {
|
|
1788
1783
|
var commentElement = useCommentUtils();
|
|
1789
1784
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
@@ -1799,9 +1794,6 @@ function useCommentUpdateHandler() {
|
|
|
1799
1794
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.onCommentUpdate]);
|
|
1800
1795
|
return data;
|
|
1801
1796
|
}
|
|
1802
|
-
/**
|
|
1803
|
-
* @beta This hook is in beta
|
|
1804
|
-
*/
|
|
1805
1797
|
function useCommentDialogSidebarClickHandler() {
|
|
1806
1798
|
var commentElement = useCommentUtils();
|
|
1807
1799
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
@@ -1818,9 +1810,6 @@ function useCommentDialogSidebarClickHandler() {
|
|
|
1818
1810
|
return data;
|
|
1819
1811
|
}
|
|
1820
1812
|
|
|
1821
|
-
/**
|
|
1822
|
-
* @beta This hook is in beta
|
|
1823
|
-
*/
|
|
1824
1813
|
function useCursorUtils() {
|
|
1825
1814
|
var _a = React.useState(), cursorElement = _a[0], setCursorElement = _a[1];
|
|
1826
1815
|
var client = useVeltClient().client;
|
|
@@ -1832,9 +1821,6 @@ function useCursorUtils() {
|
|
|
1832
1821
|
}, [client, setCursorElement, cursorElement]);
|
|
1833
1822
|
return cursorElement;
|
|
1834
1823
|
}
|
|
1835
|
-
/**
|
|
1836
|
-
* @beta This hook is in beta
|
|
1837
|
-
*/
|
|
1838
1824
|
function useCursorUsers() {
|
|
1839
1825
|
var cursorElement = useCursorUtils();
|
|
1840
1826
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -1851,9 +1837,6 @@ function useCursorUsers() {
|
|
|
1851
1837
|
return data;
|
|
1852
1838
|
}
|
|
1853
1839
|
|
|
1854
|
-
/**
|
|
1855
|
-
* @beta This hook is in beta
|
|
1856
|
-
*/
|
|
1857
1840
|
function useHuddleUtils() {
|
|
1858
1841
|
var _a = React.useState(), huddleElement = _a[0], setHuddleElement = _a[1];
|
|
1859
1842
|
var client = useVeltClient().client;
|
|
@@ -1866,9 +1849,6 @@ function useHuddleUtils() {
|
|
|
1866
1849
|
return huddleElement;
|
|
1867
1850
|
}
|
|
1868
1851
|
|
|
1869
|
-
/**
|
|
1870
|
-
* @beta This hook is in beta
|
|
1871
|
-
*/
|
|
1872
1852
|
function useLiveStateSyncUtils() {
|
|
1873
1853
|
var _a = React.useState(), liveStateSyncElement = _a[0], setLiveStateSyncElement = _a[1];
|
|
1874
1854
|
var client = useVeltClient().client;
|
|
@@ -1880,9 +1860,6 @@ function useLiveStateSyncUtils() {
|
|
|
1880
1860
|
}, [client, setLiveStateSyncElement, liveStateSyncElement]);
|
|
1881
1861
|
return liveStateSyncElement;
|
|
1882
1862
|
}
|
|
1883
|
-
/**
|
|
1884
|
-
* @beta This hook is in beta
|
|
1885
|
-
*/
|
|
1886
1863
|
function useLiveStateData(liveStateDataId) {
|
|
1887
1864
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1888
1865
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
@@ -1898,9 +1875,6 @@ function useLiveStateData(liveStateDataId) {
|
|
|
1898
1875
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getLiveStateData]);
|
|
1899
1876
|
return data;
|
|
1900
1877
|
}
|
|
1901
|
-
/**
|
|
1902
|
-
* @beta This hook is in beta
|
|
1903
|
-
*/
|
|
1904
1878
|
function useSetLiveStateData(liveStateDataId, liveStateData) {
|
|
1905
1879
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1906
1880
|
React.useEffect(function () {
|
|
@@ -1909,9 +1883,6 @@ function useSetLiveStateData(liveStateDataId, liveStateData) {
|
|
|
1909
1883
|
}
|
|
1910
1884
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.setLiveStateData]);
|
|
1911
1885
|
}
|
|
1912
|
-
/**
|
|
1913
|
-
* @beta This hook is in beta
|
|
1914
|
-
*/
|
|
1915
1886
|
function useUserEditorState() {
|
|
1916
1887
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1917
1888
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -1927,9 +1898,6 @@ function useUserEditorState() {
|
|
|
1927
1898
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.isUserEditor]);
|
|
1928
1899
|
return data;
|
|
1929
1900
|
}
|
|
1930
|
-
/**
|
|
1931
|
-
* @beta This hook is in beta
|
|
1932
|
-
*/
|
|
1933
1901
|
function useEditor() {
|
|
1934
1902
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1935
1903
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -1945,9 +1913,6 @@ function useEditor() {
|
|
|
1945
1913
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getEditor]);
|
|
1946
1914
|
return data;
|
|
1947
1915
|
}
|
|
1948
|
-
/**
|
|
1949
|
-
* @beta This hook is in beta
|
|
1950
|
-
*/
|
|
1951
1916
|
function useEditorAccessTimer() {
|
|
1952
1917
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1953
1918
|
var _a = React.useState({ state: 'idle' }), data = _a[0], setData = _a[1];
|
|
@@ -1963,9 +1928,6 @@ function useEditorAccessTimer() {
|
|
|
1963
1928
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getEditorAccessTimer]);
|
|
1964
1929
|
return data;
|
|
1965
1930
|
}
|
|
1966
|
-
/**
|
|
1967
|
-
* @beta This hook is in beta
|
|
1968
|
-
*/
|
|
1969
1931
|
function useEditorAccessRequestHandler() {
|
|
1970
1932
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1971
1933
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -1981,9 +1943,6 @@ function useEditorAccessRequestHandler() {
|
|
|
1981
1943
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.isEditorAccessRequested]);
|
|
1982
1944
|
return data;
|
|
1983
1945
|
}
|
|
1984
|
-
/**
|
|
1985
|
-
* @beta This hook is in beta
|
|
1986
|
-
*/
|
|
1987
1946
|
function useLiveState(liveStateDataId, initialValue, options) {
|
|
1988
1947
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
1989
1948
|
var client = useVeltClient().client;
|
|
@@ -2053,9 +2012,6 @@ function useLiveState(liveStateDataId, initialValue, options) {
|
|
|
2053
2012
|
return [data, setDataFunction];
|
|
2054
2013
|
}
|
|
2055
2014
|
|
|
2056
|
-
/**
|
|
2057
|
-
* @beta This hook is in beta
|
|
2058
|
-
*/
|
|
2059
2015
|
function usePresenceUtils() {
|
|
2060
2016
|
var _a = React.useState(), presenceElement = _a[0], setPresenceElement = _a[1];
|
|
2061
2017
|
var client = useVeltClient().client;
|
|
@@ -2067,9 +2023,6 @@ function usePresenceUtils() {
|
|
|
2067
2023
|
}, [client, setPresenceElement, presenceElement]);
|
|
2068
2024
|
return presenceElement;
|
|
2069
2025
|
}
|
|
2070
|
-
/**
|
|
2071
|
-
* @beta This hook is in beta
|
|
2072
|
-
*/
|
|
2073
2026
|
function usePresenceUsers() {
|
|
2074
2027
|
var presenceElement = usePresenceUtils();
|
|
2075
2028
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -2086,9 +2039,6 @@ function usePresenceUsers() {
|
|
|
2086
2039
|
return data;
|
|
2087
2040
|
}
|
|
2088
2041
|
|
|
2089
|
-
/**
|
|
2090
|
-
* @beta This hook is in beta
|
|
2091
|
-
*/
|
|
2092
2042
|
function useRecorderUtils() {
|
|
2093
2043
|
var _a = React.useState(), recorderElement = _a[0], setRecorderElement = _a[1];
|
|
2094
2044
|
var client = useVeltClient().client;
|
|
@@ -2100,9 +2050,6 @@ function useRecorderUtils() {
|
|
|
2100
2050
|
}, [client, setRecorderElement, recorderElement]);
|
|
2101
2051
|
return recorderElement;
|
|
2102
2052
|
}
|
|
2103
|
-
/**
|
|
2104
|
-
* @beta This hook is in beta
|
|
2105
|
-
*/
|
|
2106
2053
|
function useRecorderAddHandler() {
|
|
2107
2054
|
var recorderElement = useRecorderUtils();
|
|
2108
2055
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
@@ -2119,9 +2066,6 @@ function useRecorderAddHandler() {
|
|
|
2119
2066
|
return data;
|
|
2120
2067
|
}
|
|
2121
2068
|
|
|
2122
|
-
/**
|
|
2123
|
-
* @beta This hook is in beta
|
|
2124
|
-
*/
|
|
2125
2069
|
function useAIRewriterUtils() {
|
|
2126
2070
|
var _a = React.useState(), rewriterElement = _a[0], setRewriterElement = _a[1];
|
|
2127
2071
|
var client = useVeltClient().client;
|
|
@@ -2134,9 +2078,6 @@ function useAIRewriterUtils() {
|
|
|
2134
2078
|
return rewriterElement;
|
|
2135
2079
|
}
|
|
2136
2080
|
|
|
2137
|
-
/**
|
|
2138
|
-
* @beta This hook is in beta
|
|
2139
|
-
*/
|
|
2140
2081
|
function useLiveSelectionUtils() {
|
|
2141
2082
|
var _a = React.useState(), selectionElement = _a[0], setSelectionElement = _a[1];
|
|
2142
2083
|
var client = useVeltClient().client;
|
|
@@ -2149,9 +2090,6 @@ function useLiveSelectionUtils() {
|
|
|
2149
2090
|
return selectionElement;
|
|
2150
2091
|
}
|
|
2151
2092
|
|
|
2152
|
-
/**
|
|
2153
|
-
* @beta This hook is in beta
|
|
2154
|
-
*/
|
|
2155
2093
|
function useTagUtils() {
|
|
2156
2094
|
var _a = React.useState(), tagElement = _a[0], setTagElement = _a[1];
|
|
2157
2095
|
var client = useVeltClient().client;
|
|
@@ -2163,9 +2101,6 @@ function useTagUtils() {
|
|
|
2163
2101
|
}, [client, setTagElement, tagElement]);
|
|
2164
2102
|
return tagElement;
|
|
2165
2103
|
}
|
|
2166
|
-
/**
|
|
2167
|
-
* @beta This hook is in beta
|
|
2168
|
-
*/
|
|
2169
2104
|
function useTagAnnotations(documentId, location) {
|
|
2170
2105
|
var tagElement = useTagUtils();
|
|
2171
2106
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -2182,9 +2117,6 @@ function useTagAnnotations(documentId, location) {
|
|
|
2182
2117
|
return data;
|
|
2183
2118
|
}
|
|
2184
2119
|
|
|
2185
|
-
/**
|
|
2186
|
-
* @beta This hook is in beta
|
|
2187
|
-
*/
|
|
2188
2120
|
function useViewsUtils() {
|
|
2189
2121
|
var _a = React.useState(), viewsElement = _a[0], setViewsElement = _a[1];
|
|
2190
2122
|
var client = useVeltClient().client;
|
|
@@ -2196,9 +2128,6 @@ function useViewsUtils() {
|
|
|
2196
2128
|
}, [client, setViewsElement, viewsElement]);
|
|
2197
2129
|
return viewsElement;
|
|
2198
2130
|
}
|
|
2199
|
-
/**
|
|
2200
|
-
* @beta This hook is in beta
|
|
2201
|
-
*/
|
|
2202
2131
|
function useUniqueViewsByUser(clientLocationId) {
|
|
2203
2132
|
var viewsElement = useViewsUtils();
|
|
2204
2133
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -2214,9 +2143,6 @@ function useUniqueViewsByUser(clientLocationId) {
|
|
|
2214
2143
|
}, [viewsElement === null || viewsElement === void 0 ? void 0 : viewsElement.getUniqueViewsByUser]);
|
|
2215
2144
|
return data;
|
|
2216
2145
|
}
|
|
2217
|
-
/**
|
|
2218
|
-
* @beta This hook is in beta
|
|
2219
|
-
*/
|
|
2220
2146
|
function useUniqueViewsByDate(clientLocationId) {
|
|
2221
2147
|
var viewsElement = useViewsUtils();
|
|
2222
2148
|
var _a = React.useState(null), data = _a[0], setData = _a[1];
|
|
@@ -2233,9 +2159,6 @@ function useUniqueViewsByDate(clientLocationId) {
|
|
|
2233
2159
|
return data;
|
|
2234
2160
|
}
|
|
2235
2161
|
|
|
2236
|
-
/**
|
|
2237
|
-
* @beta This hook is in beta
|
|
2238
|
-
*/
|
|
2239
2162
|
function useNotificationUtils() {
|
|
2240
2163
|
var _a = React.useState(), notificationElement = _a[0], setNotificationElement = _a[1];
|
|
2241
2164
|
var client = useVeltClient().client;
|
|
@@ -2247,9 +2170,6 @@ function useNotificationUtils() {
|
|
|
2247
2170
|
}, [client, setNotificationElement, notificationElement]);
|
|
2248
2171
|
return notificationElement;
|
|
2249
2172
|
}
|
|
2250
|
-
/**
|
|
2251
|
-
* @beta This hook is in beta
|
|
2252
|
-
*/
|
|
2253
2173
|
function useNotificationsData() {
|
|
2254
2174
|
var notificationElement = useNotificationUtils();
|
|
2255
2175
|
var _a = React.useState([]), data = _a[0], setData = _a[1];
|
|
@@ -2266,6 +2186,33 @@ function useNotificationsData() {
|
|
|
2266
2186
|
return data;
|
|
2267
2187
|
}
|
|
2268
2188
|
|
|
2189
|
+
function useAutocompleteUtils() {
|
|
2190
|
+
var _a = React.useState(), autocompleteElement = _a[0], setAutocompleteElement = _a[1];
|
|
2191
|
+
var client = useVeltClient().client;
|
|
2192
|
+
React.useEffect(function () {
|
|
2193
|
+
if (!client || autocompleteElement)
|
|
2194
|
+
return;
|
|
2195
|
+
var loadedAutocompleteElement = client.getAutocompleteElement();
|
|
2196
|
+
setAutocompleteElement(loadedAutocompleteElement);
|
|
2197
|
+
}, [client, setAutocompleteElement, autocompleteElement]);
|
|
2198
|
+
return autocompleteElement;
|
|
2199
|
+
}
|
|
2200
|
+
function useAutocompleteChipClick() {
|
|
2201
|
+
var autocompleteElement = useAutocompleteUtils();
|
|
2202
|
+
var _a = React.useState(), data = _a[0], setData = _a[1];
|
|
2203
|
+
useEffect(function () {
|
|
2204
|
+
if (!autocompleteElement)
|
|
2205
|
+
return;
|
|
2206
|
+
var subscription = autocompleteElement.onAutocompleteChipClick().subscribe(function (res) {
|
|
2207
|
+
setData(res);
|
|
2208
|
+
});
|
|
2209
|
+
return function () {
|
|
2210
|
+
subscription.unsubscribe();
|
|
2211
|
+
};
|
|
2212
|
+
}, [autocompleteElement]);
|
|
2213
|
+
return data;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2269
2216
|
var sessionId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
2270
2217
|
var getSessionId = function () {
|
|
2271
2218
|
return sessionId;
|
|
@@ -2357,5 +2304,5 @@ var logLiveState = function (action, liveStateDataId) {
|
|
|
2357
2304
|
}
|
|
2358
2305
|
};
|
|
2359
2306
|
|
|
2360
|
-
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils,
|
|
2307
|
+
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnsetDocumentId, useUserEditorState, useVeltClient, useViewsUtils };
|
|
2361
2308
|
//# sourceMappingURL=index.js.map
|