@veltdev/react 1.0.118 → 1.0.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/cjs/index.js +119 -21
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +2 -0
  4. package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
  5. package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
  6. package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
  7. package/cjs/types/components/VeltAutocomplete/VeltAutocomplete.d.ts +8 -0
  8. package/cjs/types/components/VeltAutocomplete/index.d.ts +1 -0
  9. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/VeltAutocompleteOptionDescriptionWireframe.d.ts +5 -0
  10. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/index.d.ts +1 -0
  11. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/VeltAutocompleteOptionErrorIconWireframe.d.ts +5 -0
  12. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/index.d.ts +1 -0
  13. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/VeltAutocompleteOptionIconWireframe.d.ts +5 -0
  14. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/index.d.ts +1 -0
  15. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/VeltAutocompleteOptionNameWireframe.d.ts +5 -0
  16. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/index.d.ts +1 -0
  17. package/cjs/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionWireframe.d.ts +14 -0
  18. package/cjs/types/components/VeltAutocompleteOptionWireframe/index.d.ts +1 -0
  19. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/VeltCommentDialogCommentIndex.d.ts +5 -0
  20. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/index.d.ts +1 -0
  21. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogComposer/VeltCommentDialogComposerActionButton/VeltCommentDialogComposerActionButton.d.ts +2 -1
  22. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogWireframe.d.ts +2 -2
  23. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/VeltCommentsSidebarPageModeComposer.d.ts +5 -0
  24. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/index.d.ts +1 -0
  25. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -2
  26. package/cjs/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +1 -0
  27. package/cjs/types/components/index.d.ts +2 -0
  28. package/cjs/types/hooks/AutocompleteElement.d.ts +9 -0
  29. package/cjs/types/hooks/LiveStateSyncElement.d.ts +4 -1
  30. package/cjs/types/hooks/index.d.ts +1 -0
  31. package/esm/index.js +116 -22
  32. package/esm/index.js.map +1 -1
  33. package/esm/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +2 -0
  34. package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
  35. package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
  36. package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
  37. package/esm/types/components/VeltAutocomplete/VeltAutocomplete.d.ts +8 -0
  38. package/esm/types/components/VeltAutocomplete/index.d.ts +1 -0
  39. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/VeltAutocompleteOptionDescriptionWireframe.d.ts +5 -0
  40. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionDescriptionWireframe/index.d.ts +1 -0
  41. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/VeltAutocompleteOptionErrorIconWireframe.d.ts +5 -0
  42. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionErrorIconWireframe/index.d.ts +1 -0
  43. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/VeltAutocompleteOptionIconWireframe.d.ts +5 -0
  44. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionIconWireframe/index.d.ts +1 -0
  45. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/VeltAutocompleteOptionNameWireframe.d.ts +5 -0
  46. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionNameWireframe/index.d.ts +1 -0
  47. package/esm/types/components/VeltAutocompleteOptionWireframe/VeltAutocompleteOptionWireframe.d.ts +14 -0
  48. package/esm/types/components/VeltAutocompleteOptionWireframe/index.d.ts +1 -0
  49. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/VeltCommentDialogCommentIndex.d.ts +5 -0
  50. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentIndex/index.d.ts +1 -0
  51. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogComposer/VeltCommentDialogComposerActionButton/VeltCommentDialogComposerActionButton.d.ts +2 -1
  52. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogWireframe.d.ts +2 -2
  53. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/VeltCommentsSidebarPageModeComposer.d.ts +5 -0
  54. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageModeComposer/index.d.ts +1 -0
  55. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -2
  56. package/esm/types/components/VeltSidebarButtonWireframe/VeltSidebarButtonWireframe.d.ts +1 -0
  57. package/esm/types/components/index.d.ts +2 -0
  58. package/esm/types/hooks/AutocompleteElement.d.ts +9 -0
  59. package/esm/types/hooks/LiveStateSyncElement.d.ts +4 -1
  60. package/esm/types/hooks/index.d.ts +1 -0
  61. package/index.d.ts +55 -8
  62. package/package.json +1 -1
  63. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/VeltCommentDialogCommentCount.d.ts +0 -5
  64. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/index.d.ts +0 -1
  65. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/VeltCommentsSidebarPageMode.d.ts +0 -5
  66. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/index.d.ts +0 -1
  67. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/VeltCommentDialogCommentCount.d.ts +0 -5
  68. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogCommentCount/index.d.ts +0 -1
  69. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/VeltCommentsSidebarPageMode.d.ts +0 -5
  70. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarPageMode/index.d.ts +0 -1
package/cjs/index.js CHANGED
@@ -228,12 +228,12 @@ var SnippylyProvider = function (props) {
228
228
  };
229
229
 
230
230
  var SnippylyCommentBubble = function (props) {
231
- var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children;
232
- return (React__default["default"].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));
231
+ var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children, shadowDom = props.shadowDom, variant = props.variant;
232
+ return (React__default["default"].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));
233
233
  };
234
234
 
235
235
  var SnippylyComments = function (props) {
236
- var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, onSignIn = props.onSignIn, onUpgrade = props.onUpgrade, textMode = props.textMode, popoverMode = props.popoverMode, popoverTriangleComponent = props.popoverTriangleComponent, floatingCommentDialog = props.floatingCommentDialog, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, upgradeButton = props.upgradeButton, attachments = props.attachments, recordings = props.recordings, reactions = props.reactions, deviceInfo = props.deviceInfo, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, mobileMode = props.mobileMode, inlineCommentMode = props.inlineCommentMode, privateCommentMode = props.privateCommentMode, minimap = props.minimap, 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;
236
+ var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, onSignIn = props.onSignIn, onUpgrade = props.onUpgrade, textMode = props.textMode, popoverMode = props.popoverMode, popoverTriangleComponent = props.popoverTriangleComponent, floatingCommentDialog = props.floatingCommentDialog, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, upgradeButton = props.upgradeButton, attachments = props.attachments, recordings = props.recordings, reactions = props.reactions, deviceInfo = props.deviceInfo, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, mobileMode = props.mobileMode, inlineCommentMode = props.inlineCommentMode, privateCommentMode = props.privateCommentMode, minimap = props.minimap, 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;
237
237
  var ref = React.useRef();
238
238
  var onSignInRef = React.useRef(onSignIn);
239
239
  var onUpgradeRef = React.useRef(onUpgrade);
@@ -313,7 +313,7 @@ var SnippylyComments = function (props) {
313
313
  });
314
314
  }
315
315
  }, []);
316
- return (React__default["default"].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));
316
+ return (React__default["default"].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));
317
317
  };
318
318
 
319
319
  var SnippylyCommentsSidebar = function (props) {
@@ -357,11 +357,11 @@ var SnippylyCommentsSidebar = function (props) {
357
357
  });
358
358
  }
359
359
  }, []);
360
- return (React__default["default"].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, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }));
360
+ return (React__default["default"].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 }));
361
361
  };
362
362
 
363
363
  var SnippylyCommentTool = function (props) {
364
- var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode, variant = props.variant;
364
+ var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom;
365
365
  var ref = React.useRef();
366
366
  var onCommentModeChangeRef = React.useRef(onCommentModeChange);
367
367
  // Update the ref to always point to the latest callback function
@@ -378,7 +378,7 @@ var SnippylyCommentTool = function (props) {
378
378
  });
379
379
  }
380
380
  }, []);
381
- return (React__default["default"].createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, variant: variant, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
381
+ return (React__default["default"].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));
382
382
  };
383
383
 
384
384
  var SnippylyCursor = function (props) {
@@ -517,8 +517,8 @@ var SnippylyRecorderTool = function (props) {
517
517
  };
518
518
 
519
519
  var SnippylySidebarButton = function (props) {
520
- var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode;
521
- return (React__default["default"].createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
520
+ var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
521
+ return (React__default["default"].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));
522
522
  };
523
523
 
524
524
  var SnippylyTags = function (props) {
@@ -1113,6 +1113,11 @@ var VeltHighChartComments = function (_a) {
1113
1113
  React__default["default"].createElement(VeltChartComment, { ghostComment: true, commentMetadata: point.metadata, dialogMetadataTemplate: dialogMetadataTemplate || point.dialogMetadataTemplate || ['groupId', 'label', 'value'] }))); })));
1114
1114
  };
1115
1115
 
1116
+ var VeltAutocomplete = function (props) {
1117
+ var hotkey = props.hotkey, listData = props.listData;
1118
+ return (React__default["default"].createElement("velt-autocomplete", { hotkey: hotkey, "list-data": (typeof listData === 'object') ? JSON.stringify(listData) : undefined }));
1119
+ };
1120
+
1116
1121
  var VeltWireframe = function (props) {
1117
1122
  var children = props.children;
1118
1123
  return (React__default["default"].createElement("velt-wireframe", null, children));
@@ -1166,9 +1171,9 @@ var VeltCommentDialogCommentCategory = function (props) {
1166
1171
  return (React__default["default"].createElement("velt-comment-dialog-comment-category-wireframe", null, children));
1167
1172
  };
1168
1173
 
1169
- var VeltCommentDialogCommentCount = function (props) {
1174
+ var VeltCommentDialogCommentIndex = function (props) {
1170
1175
  var children = props.children;
1171
- return (React__default["default"].createElement("velt-comment-dialog-comment-count-wireframe", null, children));
1176
+ return (React__default["default"].createElement("velt-comment-dialog-comment-index-wireframe", null, children));
1172
1177
  };
1173
1178
 
1174
1179
  var VeltCommentDialogCommentSuggestionStatus = function (props) {
@@ -1375,7 +1380,7 @@ VeltCommentDialogWireframe.AssigneeBanner = VeltCommentDialogAssigneeBanner;
1375
1380
  VeltCommentDialogWireframe.AssignMenu = VeltCommentDialogAssignMenu;
1376
1381
  VeltCommentDialogWireframe.Body = VeltCommentDialogBody;
1377
1382
  VeltCommentDialogWireframe.CommentCategory = VeltCommentDialogCommentCategory;
1378
- VeltCommentDialogWireframe.CommentCount = VeltCommentDialogCommentCount;
1383
+ VeltCommentDialogWireframe.CommentIndex = VeltCommentDialogCommentIndex;
1379
1384
  VeltCommentDialogWireframe.CommentSuggestionStatus = VeltCommentDialogCommentSuggestionStatus;
1380
1385
  VeltCommentDialogWireframe.Composer = VeltCommentDialogComposer;
1381
1386
  VeltCommentDialogWireframe.CopyLink = VeltCommentDialogCopyLink;
@@ -1504,9 +1509,9 @@ var VeltCommentsSidebarList = function (props) {
1504
1509
  return (React__default["default"].createElement("velt-comments-sidebar-list-wireframe", null, children));
1505
1510
  };
1506
1511
 
1507
- var VeltCommentsSidebarPageMode = function (props) {
1512
+ var VeltCommentsSidebarPageModeComposer = function (props) {
1508
1513
  var children = props.children;
1509
- return (React__default["default"].createElement("velt-comments-sidebar-page-mode-wireframe", null, children));
1514
+ return (React__default["default"].createElement("velt-comments-sidebar-page-mode-composer-wireframe", null, children));
1510
1515
  };
1511
1516
 
1512
1517
  var VeltCommentsSidebarSearch = function (props) {
@@ -1533,7 +1538,7 @@ VeltCommentsSidebarWireframe.EmptyPlaceholder = VeltCommentsSidebarEmptyPlacehol
1533
1538
  VeltCommentsSidebarWireframe.Filter = VeltCommentsSidebarFilter;
1534
1539
  VeltCommentsSidebarWireframe.Header = VeltCommentsSidebarHeader;
1535
1540
  VeltCommentsSidebarWireframe.List = VeltCommentsSidebarList;
1536
- VeltCommentsSidebarWireframe.PageMode = VeltCommentsSidebarPageMode;
1541
+ VeltCommentsSidebarWireframe.PageModeComposer = VeltCommentsSidebarPageModeComposer;
1537
1542
  VeltCommentsSidebarWireframe.Search = VeltCommentsSidebarSearch;
1538
1543
  VeltCommentsSidebarWireframe.Status = VeltCommentsSidebarStatus;
1539
1544
  VeltCommentsSidebarWireframe.FilterButton = VeltCommentsSidebarFilterButton;
@@ -1579,8 +1584,8 @@ var VeltSidebarButtonCommentsCount = function (props) {
1579
1584
  };
1580
1585
 
1581
1586
  var VeltSidebarButtonWireframe = function (props) {
1582
- var children = props.children;
1583
- return (React__default["default"].createElement("velt-sidebar-button-wireframe", null, children));
1587
+ var children = props.children, remainingProp = __rest(props, ["children"]);
1588
+ return (React__default["default"].createElement("velt-sidebar-button-wireframe", __assign({}, remainingProp), children));
1584
1589
  };
1585
1590
  VeltSidebarButtonWireframe.CommentsCount = VeltSidebarButtonCommentsCount;
1586
1591
 
@@ -1652,6 +1657,35 @@ VeltUserSelectorDropdown.Email = VeltUserSelectorDropdownEmail;
1652
1657
  VeltUserSelectorDropdown.ErrorIcon = VeltUserSelectorDropdownErrorIcon;
1653
1658
  VeltUserSelectorDropdown.Name = VeltUserSelectorDropdownName;
1654
1659
 
1660
+ var VeltAutocompleteOptionIconWireframe = function (props) {
1661
+ var children = props.children;
1662
+ return (React__default["default"].createElement("velt-autocomplete-option-icon-wireframe", null, children));
1663
+ };
1664
+
1665
+ var VeltAutocompleteOptionNameWireframe = function (props) {
1666
+ var children = props.children;
1667
+ return (React__default["default"].createElement("velt-autocomplete-option-name-wireframe", null, children));
1668
+ };
1669
+
1670
+ var VeltAutocompleteOptionDescriptionWireframe = function (props) {
1671
+ var children = props.children;
1672
+ return (React__default["default"].createElement("velt-autocomplete-option-description-wireframe", null, children));
1673
+ };
1674
+
1675
+ var VeltAutocompleteOptionErrorIconWireframe = function (props) {
1676
+ var children = props.children;
1677
+ return (React__default["default"].createElement("velt-autocomplete-option-error-icon-wireframe", null, children));
1678
+ };
1679
+
1680
+ var VeltAutocompleteOptionWireframe = function (props) {
1681
+ var children = props.children;
1682
+ return (React__default["default"].createElement("velt-autocomplete-option-wireframe", null, children));
1683
+ };
1684
+ VeltAutocompleteOptionWireframe.Icon = VeltAutocompleteOptionIconWireframe;
1685
+ VeltAutocompleteOptionWireframe.Description = VeltAutocompleteOptionDescriptionWireframe;
1686
+ VeltAutocompleteOptionWireframe.ErrorIcon = VeltAutocompleteOptionErrorIconWireframe;
1687
+ VeltAutocompleteOptionWireframe.Name = VeltAutocompleteOptionNameWireframe;
1688
+
1655
1689
  var VeltCommentBubbleAvatar = function (props) {
1656
1690
  var children = props.children;
1657
1691
  return (React__default["default"].createElement("velt-comment-bubble-avatar-wireframe", null, children));
@@ -1992,18 +2026,45 @@ function useEditorAccessRequestHandler() {
1992
2026
  /**
1993
2027
  * @beta This hook is in beta
1994
2028
  */
1995
- function useLiveState(liveStateDataId, initialValue, debounceTime) {
1996
- if (debounceTime === void 0) { debounceTime = 50; }
2029
+ function useLiveState(liveStateDataId, initialValue, options) {
1997
2030
  var liveStateSyncElement = useLiveStateSyncUtils();
1998
- var _a = React__default["default"].useState(initialValue), data = _a[0], setData = _a[1];
2031
+ var client = useVeltClient().client;
2032
+ var _a = React__default["default"].useState(null), documentId = _a[0], setDocumentId = _a[1];
2033
+ var _b = React__default["default"].useState(null), user = _b[0], setUser = _b[1];
2034
+ var _c = React__default["default"].useState(initialValue), data = _c[0], setData = _c[1];
2035
+ React.useEffect(function () {
2036
+ resetLiveStateData();
2037
+ }, [documentId, user]);
2038
+ var resetLiveStateData = function () {
2039
+ if (user && documentId) {
2040
+ liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.setLiveStateData(liveStateDataId, data);
2041
+ }
2042
+ };
1999
2043
  React.useEffect(function () {
2000
2044
  if (!(liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getLiveStateData))
2001
2045
  return;
2046
+ var documentPathsSubscription, userSubscription;
2047
+ if (options === null || options === void 0 ? void 0 : options.resetLiveState) {
2048
+ documentPathsSubscription = client.docService.getDocumentPaths$().subscribe(function (paths) {
2049
+ if (paths) {
2050
+ setDocumentId(paths === null || paths === void 0 ? void 0 : paths.documentId);
2051
+ documentPathsSubscription === null || documentPathsSubscription === void 0 ? void 0 : documentPathsSubscription.unsubscribe();
2052
+ }
2053
+ });
2054
+ userSubscription = client.authService.getUser$().subscribe(function (user) {
2055
+ if (user) {
2056
+ setUser(user);
2057
+ userSubscription === null || userSubscription === void 0 ? void 0 : userSubscription.unsubscribe();
2058
+ }
2059
+ });
2060
+ }
2002
2061
  var subscription = liveStateSyncElement.getLiveStateData(liveStateDataId).subscribe(function (res) {
2003
2062
  setData(res);
2004
2063
  });
2005
2064
  return function () {
2006
2065
  subscription.unsubscribe();
2066
+ documentPathsSubscription === null || documentPathsSubscription === void 0 ? void 0 : documentPathsSubscription.unsubscribe();
2067
+ userSubscription === null || userSubscription === void 0 ? void 0 : userSubscription.unsubscribe();
2007
2068
  };
2008
2069
  }, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getLiveStateData]);
2009
2070
  var useDebounce = function (callback) {
@@ -2024,7 +2085,7 @@ function useLiveState(liveStateDataId, initialValue, debounceTime) {
2024
2085
  };
2025
2086
  var setDataFunction = function (value) {
2026
2087
  setData(value);
2027
- debouncedOnInput(value, debounceTime); // default 50ms debounce time
2088
+ debouncedOnInput(value, (options === null || options === void 0 ? void 0 : options.syncDuration) >= 0 ? options === null || options === void 0 ? void 0 : options.syncDuration : 50); // default 50ms debounce time
2028
2089
  };
2029
2090
  var debouncedOnInput = useDebounce(function (value) {
2030
2091
  if (liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.setLiveStateData) {
@@ -2247,6 +2308,39 @@ function useNotificationsData() {
2247
2308
  return data;
2248
2309
  }
2249
2310
 
2311
+ /**
2312
+ * @beta This hook is in beta
2313
+ */
2314
+ function useAutocompleteUtils() {
2315
+ var _a = React__default["default"].useState(), autocompleteElement = _a[0], setAutocompleteElement = _a[1];
2316
+ var client = useVeltClient().client;
2317
+ React__default["default"].useEffect(function () {
2318
+ if (!client || autocompleteElement)
2319
+ return;
2320
+ var loadedAutocompleteElement = client.getAutocompleteElement();
2321
+ setAutocompleteElement(loadedAutocompleteElement);
2322
+ }, [client, setAutocompleteElement, autocompleteElement]);
2323
+ return autocompleteElement;
2324
+ }
2325
+ /**
2326
+ * @beta This hook is in beta
2327
+ */
2328
+ function useAutocompleteChipClick() {
2329
+ var autocompleteElement = useAutocompleteUtils();
2330
+ var _a = React__default["default"].useState(), data = _a[0], setData = _a[1];
2331
+ React.useEffect(function () {
2332
+ if (!autocompleteElement)
2333
+ return;
2334
+ var subscription = autocompleteElement.onAutocompleteChipClick().subscribe(function (res) {
2335
+ setData(res);
2336
+ });
2337
+ return function () {
2338
+ subscription.unsubscribe();
2339
+ };
2340
+ }, [autocompleteElement]);
2341
+ return data;
2342
+ }
2343
+
2250
2344
  var sessionId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
2251
2345
  var getSessionId = function () {
2252
2346
  return sessionId;
@@ -2340,6 +2434,8 @@ var logLiveState = function (action, liveStateDataId) {
2340
2434
 
2341
2435
  exports.VeltArrowTool = SnippylyArrowTool;
2342
2436
  exports.VeltArrows = SnippylyArrows;
2437
+ exports.VeltAutocomplete = VeltAutocomplete;
2438
+ exports.VeltAutocompleteOptionWireframe = VeltAutocompleteOptionWireframe;
2343
2439
  exports.VeltChartComment = VeltChartComment;
2344
2440
  exports.VeltCommentBubble = SnippylyCommentBubble;
2345
2441
  exports.VeltCommentBubbleAvatar = VeltCommentBubbleAvatar;
@@ -2382,6 +2478,8 @@ exports.VeltWireframe = VeltWireframe;
2382
2478
  exports.createLiveStateMiddleware = createLiveStateMiddleware;
2383
2479
  exports.useAIRewriterUtils = useAIRewriterUtils;
2384
2480
  exports.useAddLocation = useAddLocation;
2481
+ exports.useAutocompleteChipClick = useAutocompleteChipClick;
2482
+ exports.useAutocompleteUtils = useAutocompleteUtils;
2385
2483
  exports.useClient = useClient;
2386
2484
  exports.useCommentAddHandler = useCommentAddHandler;
2387
2485
  exports.useCommentAnnotations = useCommentAnnotations;