@veltdev/react 3.0.7 → 3.0.8

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 (48) hide show
  1. package/cjs/index.js +55 -7
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +4 -0
  4. package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +4 -0
  5. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonCommentsCount/VeltCommentsSidebarButtonCommentsCount.d.ts +5 -0
  6. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonCommentsCount/index.d.ts +1 -0
  7. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonIcon/VeltCommentsSidebarButtonIcon.d.ts +5 -0
  8. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonIcon/index.d.ts +1 -0
  9. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonWireframe.d.ts +11 -0
  10. package/cjs/types/components/VeltCommentsSidebarButtonWireframe/index.d.ts +1 -0
  11. package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +4 -0
  12. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCloseButtonWireframe/VeltMultiThreadCommentDialogCloseButtonWireframe.d.ts +6 -0
  13. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCloseButtonWireframe/index.d.ts +1 -0
  14. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCommentCountWireframe/VeltMultiThreadCommentDialogCommentCountWireframe.d.ts +6 -0
  15. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCommentCountWireframe/index.d.ts +1 -0
  16. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe.d.ts +6 -0
  17. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe/index.d.ts +1 -0
  18. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogListWireframe/VeltMultiThreadCommentDialogListWireframe.d.ts +6 -0
  19. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogListWireframe/index.d.ts +1 -0
  20. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogWireframe.d.ts +16 -0
  21. package/cjs/types/components/VeltMultiThreadCommentDialogWireframe/index.d.ts +1 -0
  22. package/cjs/types/components/index.d.ts +2 -0
  23. package/cjs/types/constants.d.ts +1 -1
  24. package/esm/index.js +54 -8
  25. package/esm/index.js.map +1 -1
  26. package/esm/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +4 -0
  27. package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +4 -0
  28. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonCommentsCount/VeltCommentsSidebarButtonCommentsCount.d.ts +5 -0
  29. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonCommentsCount/index.d.ts +1 -0
  30. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonIcon/VeltCommentsSidebarButtonIcon.d.ts +5 -0
  31. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonIcon/index.d.ts +1 -0
  32. package/esm/types/components/VeltCommentsSidebarButtonWireframe/VeltCommentsSidebarButtonWireframe.d.ts +11 -0
  33. package/esm/types/components/VeltCommentsSidebarButtonWireframe/index.d.ts +1 -0
  34. package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +4 -0
  35. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCloseButtonWireframe/VeltMultiThreadCommentDialogCloseButtonWireframe.d.ts +6 -0
  36. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCloseButtonWireframe/index.d.ts +1 -0
  37. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCommentCountWireframe/VeltMultiThreadCommentDialogCommentCountWireframe.d.ts +6 -0
  38. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogCommentCountWireframe/index.d.ts +1 -0
  39. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe.d.ts +6 -0
  40. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogComposerContainerWireframe/index.d.ts +1 -0
  41. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogListWireframe/VeltMultiThreadCommentDialogListWireframe.d.ts +6 -0
  42. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogListWireframe/index.d.ts +1 -0
  43. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/VeltMultiThreadCommentDialogWireframe.d.ts +16 -0
  44. package/esm/types/components/VeltMultiThreadCommentDialogWireframe/index.d.ts +1 -0
  45. package/esm/types/components/index.d.ts +2 -0
  46. package/esm/types/constants.d.ts +1 -1
  47. package/index.d.ts +54 -1
  48. package/package.json +1 -1
package/cjs/index.js CHANGED
@@ -140,7 +140,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
140
140
  }
141
141
  };
142
142
 
143
- var VELT_SDK_VERSION = '3.0.7';
143
+ var VELT_SDK_VERSION = '3.0.8';
144
144
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
145
145
  var VELT_TAB_ID = 'veltTabId';
146
146
 
@@ -229,8 +229,8 @@ var SnippylyProvider = function (props) {
229
229
  };
230
230
 
231
231
  var SnippylyCommentBubble = function (props) {
232
- var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children, shadowDom = props.shadowDom, variant = props.variant, darkMode = props.darkMode, commentCountType = props.commentCountType;
233
- return (React__default["default"].createElement("velt-comment-bubble", { "comment-count-type": commentCountType, "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, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, variant: variant }, children));
232
+ var targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children, shadowDom = props.shadowDom, variant = props.variant, darkMode = props.darkMode, commentCountType = props.commentCountType;
233
+ return (React__default["default"].createElement("velt-comment-bubble", { "comment-count-type": commentCountType, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, "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, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, variant: variant }, children));
234
234
  };
235
235
 
236
236
  var SnippylyComments = function (props) {
@@ -418,7 +418,7 @@ var SnippylyCommentsSidebar = function (props) {
418
418
  };
419
419
 
420
420
  var SnippylyCommentTool = function (props) {
421
- var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom;
421
+ var targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom;
422
422
  var ref = React.useRef();
423
423
  var onCommentModeChangeRef = React.useRef(onCommentModeChange);
424
424
  // Update the ref to always point to the latest callback function
@@ -444,7 +444,7 @@ var SnippylyCommentTool = function (props) {
444
444
  }
445
445
  };
446
446
  }, []);
447
- 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));
447
+ return (React__default["default"].createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, variant: variant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
448
448
  };
449
449
 
450
450
  var SnippylyCursor = function (props) {
@@ -1371,8 +1371,8 @@ var VeltAutocomplete = function (props) {
1371
1371
  };
1372
1372
 
1373
1373
  var VeltInlineCommentsSection = function (props) {
1374
- var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId;
1375
- return (React__default["default"].createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
1374
+ var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId;
1375
+ return (React__default["default"].createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
1376
1376
  };
1377
1377
 
1378
1378
  var VeltCommentPin = function (props) {
@@ -3196,6 +3196,52 @@ var VeltPersistentCommentModeWireframe = function (props) {
3196
3196
  VeltPersistentCommentModeWireframe.CloseButton = VeltPersistentCommentModeCloseButtonWireframe;
3197
3197
  VeltPersistentCommentModeWireframe.Label = VeltPersistentCommentModeLabelWireframe;
3198
3198
 
3199
+ var VeltMultiThreadCommentDialogCommentCountWireframe = function (props) {
3200
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3201
+ return (React__default["default"].createElement("velt-multi-thread-comment-dialog-comment-count-wireframe", __assign({}, remainingProps), children));
3202
+ };
3203
+
3204
+ var VeltMultiThreadCommentDialogComposerContainerWireframe = function (props) {
3205
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3206
+ return (React__default["default"].createElement("velt-multi-thread-comment-dialog-composer-container-wireframe", __assign({}, remainingProps), children));
3207
+ };
3208
+
3209
+ var VeltMultiThreadCommentDialogListWireframe = function (props) {
3210
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3211
+ return (React__default["default"].createElement("velt-multi-thread-comment-dialog-list-wireframe", __assign({}, remainingProps), children));
3212
+ };
3213
+
3214
+ var VeltMultiThreadCommentDialogCloseButtonWireframe = function (props) {
3215
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3216
+ return (React__default["default"].createElement("velt-multi-thread-comment-dialog-close-button-wireframe", __assign({}, remainingProps), children));
3217
+ };
3218
+
3219
+ var VeltMultiThreadCommentDialogWireframe = function (props) {
3220
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3221
+ return (React__default["default"].createElement("velt-multi-thread-comment-dialog-wireframe", __assign({}, remainingProps), children));
3222
+ };
3223
+ VeltMultiThreadCommentDialogWireframe.CommentCount = VeltMultiThreadCommentDialogCommentCountWireframe;
3224
+ VeltMultiThreadCommentDialogWireframe.ComposerContainer = VeltMultiThreadCommentDialogComposerContainerWireframe;
3225
+ VeltMultiThreadCommentDialogWireframe.List = VeltMultiThreadCommentDialogListWireframe;
3226
+ VeltMultiThreadCommentDialogWireframe.CloseButton = VeltMultiThreadCommentDialogCloseButtonWireframe;
3227
+
3228
+ var VeltCommentsSidebarButtonCommentsCount = function (props) {
3229
+ var children = props.children;
3230
+ return (React__default["default"].createElement("velt-comments-sidebar-button-comments-count-wireframe", null, children));
3231
+ };
3232
+
3233
+ var VeltCommentsSidebarButtonIcon = function (props) {
3234
+ var children = props.children;
3235
+ return (React__default["default"].createElement("velt-comments-sidebar-button-icon-wireframe", null, children));
3236
+ };
3237
+
3238
+ var VeltCommentsSidebarButtonWireframe = function (props) {
3239
+ var children = props.children, remainingProp = __rest(props, ["children"]);
3240
+ return (React__default["default"].createElement("velt-comments-sidebar-button-wireframe", __assign({}, remainingProp), children));
3241
+ };
3242
+ VeltCommentsSidebarButtonWireframe.CommentsCount = VeltCommentsSidebarButtonCommentsCount;
3243
+ VeltCommentsSidebarButtonWireframe.Icon = VeltCommentsSidebarButtonIcon;
3244
+
3199
3245
  function useClient() {
3200
3246
  var client = useVeltClient().client;
3201
3247
  var _a = React__default["default"].useState(), veltClient = _a[0], setVeltClient = _a[1];
@@ -3992,6 +4038,7 @@ exports.VeltComments = SnippylyComments;
3992
4038
  exports.VeltCommentsMinimap = VeltCommentsMinimap;
3993
4039
  exports.VeltCommentsSidebar = SnippylyCommentsSidebar;
3994
4040
  exports.VeltCommentsSidebarButton = VeltCommentsSidebarButton;
4041
+ exports.VeltCommentsSidebarButtonWireframe = VeltCommentsSidebarButtonWireframe;
3995
4042
  exports.VeltCommentsSidebarStatusDropdownWireframe = VeltCommentsSidebarStatusDropdownWireframe;
3996
4043
  exports.VeltCommentsSidebarWireframe = VeltCommentsSidebarWireframe;
3997
4044
  exports.VeltConfirmDialogWireframe = VeltConfirmDialogWireframe;
@@ -4004,6 +4051,7 @@ exports.VeltInlineCommentsSection = VeltInlineCommentsSection;
4004
4051
  exports.VeltInlineCommentsSectionWireframe = VeltInlineCommentsSectionWireframe;
4005
4052
  exports.VeltInlineReactionsSection = VeltInlineReactionsSection;
4006
4053
  exports.VeltInlineReactionsSectionWireframe = VeltInlineReactionsSectionWireframe;
4054
+ exports.VeltMultiThreadCommentDialogWireframe = VeltMultiThreadCommentDialogWireframe;
4007
4055
  exports.VeltNivoChartComments = VeltNivoChartComments;
4008
4056
  exports.VeltNotificationsHistoryPanel = VeltNotificationsHistoryPanel;
4009
4057
  exports.VeltNotificationsPanel = VeltNotificationsPanel;