@veltdev/react 4.7.8 → 4.7.9

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 (22) hide show
  1. package/cjs/index.js +17 -10
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
  4. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
  5. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
  6. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
  7. package/cjs/types/components/VeltData/VeltData.d.ts +2 -0
  8. package/cjs/types/components/VeltIf/VeltIf.d.ts +2 -0
  9. package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
  10. package/cjs/types/constants.d.ts +1 -1
  11. package/esm/index.js +17 -10
  12. package/esm/index.js.map +1 -1
  13. package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
  14. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
  15. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
  16. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
  17. package/esm/types/components/VeltData/VeltData.d.ts +2 -0
  18. package/esm/types/components/VeltIf/VeltIf.d.ts +2 -0
  19. package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
  20. package/esm/types/constants.d.ts +1 -1
  21. package/index.d.ts +12 -0
  22. package/package.json +2 -2
package/cjs/index.js CHANGED
@@ -212,13 +212,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
212
212
  };
213
213
  };
214
214
 
215
- var VELT_SDK_VERSION = '4.7.8';
215
+ var VELT_SDK_VERSION = '4.7.9';
216
216
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
217
217
  var VELT_TAB_ID = 'veltTabId';
218
218
  // integrity map for the Velt SDK
219
219
  // Note: generate integrity hashes with: https://www.srihash.org/
220
220
  var INTEGRITY_MAP = {
221
- '4.7.8': 'sha384-FEqQMemqzDZDXnFX7Agv2pVMRTIkRPfPSBgSMckfI/TxwIOqlgLGCbvD655jSs5T',
221
+ '4.7.9': 'sha384-hAe81s0JgcBv1OIda4tGTO+4ezlxMgQBN+SbpY3C+THZqt2pD4ak74YYMh3/gNXV',
222
222
  };
223
223
 
224
224
  var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
@@ -1705,8 +1705,8 @@ var VeltAutocomplete = function (props) {
1705
1705
  };
1706
1706
 
1707
1707
  var VeltInlineCommentsSection = function (props) {
1708
- var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread, sortData = props.sortData, composerVariant = props.composerVariant, composerPosition = props.composerPosition, sortBy = props.sortBy, sortOrder = props.sortOrder, fullExpanded = props.fullExpanded, context = props.context, contextOptions = props.contextOptions, documentId = props.documentId, folderId = props.folderId, locationId = props.locationId, commentPlaceholder = props.commentPlaceholder, replyPlaceholder = props.replyPlaceholder, composerPlaceholder = props.composerPlaceholder;
1709
- return (React__default["default"].createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined, "composer-variant": composerVariant, "composer-position": composerPosition, "sort-by": sortBy, "sort-order": sortOrder, "full-expanded": [true, false].includes(fullExpanded) ? (fullExpanded ? 'true' : 'false') : undefined, context: JSON.stringify(context), "context-options": JSON.stringify(contextOptions), "location-id": locationId, "document-id": documentId, "folder-id": folderId, "comment-placeholder": commentPlaceholder, "reply-placeholder": replyPlaceholder, "composer-placeholder": composerPlaceholder }, children));
1708
+ var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread, sortData = props.sortData, composerVariant = props.composerVariant, composerPosition = props.composerPosition, sortBy = props.sortBy, sortOrder = props.sortOrder, fullExpanded = props.fullExpanded, context = props.context, contextOptions = props.contextOptions, documentId = props.documentId, folderId = props.folderId, locationId = props.locationId, commentPlaceholder = props.commentPlaceholder, replyPlaceholder = props.replyPlaceholder, composerPlaceholder = props.composerPlaceholder, readOnly = props.readOnly;
1709
+ return (React__default["default"].createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined, "composer-variant": composerVariant, "composer-position": composerPosition, "sort-by": sortBy, "sort-order": sortOrder, "full-expanded": [true, false].includes(fullExpanded) ? (fullExpanded ? 'true' : 'false') : undefined, context: JSON.stringify(context), "context-options": JSON.stringify(contextOptions), "location-id": locationId, "document-id": documentId, "folder-id": folderId, "comment-placeholder": commentPlaceholder, "reply-placeholder": replyPlaceholder, "composer-placeholder": composerPlaceholder, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined }, children));
1710
1710
  };
1711
1711
 
1712
1712
  var VeltCommentPin = function (props) {
@@ -1725,15 +1725,15 @@ var VeltCanvasComment = function (props) {
1725
1725
  };
1726
1726
 
1727
1727
  var VeltData = function (props) {
1728
- var path = props.path, field = props.field;
1728
+ var path = props.path, field = props.field, className = props.className, id = props.id;
1729
1729
  var ref = React.useRef();
1730
- return (React__default["default"].createElement("velt-data", { ref: ref, path: path, field: field }));
1730
+ return (React__default["default"].createElement("velt-data", { ref: ref, path: path, field: field, class: className, id: id }));
1731
1731
  };
1732
1732
 
1733
1733
  var VeltIf = function (props) {
1734
- var condition = props.condition, children = props.children;
1734
+ var condition = props.condition, children = props.children, className = props.className, id = props.id;
1735
1735
  var ref = React.useRef();
1736
- return (React__default["default"].createElement("velt-if", { ref: ref, condition: condition }, children));
1736
+ return (React__default["default"].createElement("velt-if", { ref: ref, condition: condition, class: className, id: id }, children));
1737
1737
  };
1738
1738
 
1739
1739
  var VeltCommentsMinimap = function (props) {
@@ -1776,8 +1776,8 @@ var VeltInlineReactionsSection = function (props) {
1776
1776
  };
1777
1777
 
1778
1778
  var VeltCommentComposer = function (props) {
1779
- var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, context = props.context, locationId = props.locationId, documentId = props.documentId, folderId = props.folderId, targetComposerElementId = props.targetComposerElementId, placeholder = props.placeholder;
1780
- return (React__default["default"].createElement("velt-comment-composer", { 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, context: context ? JSON.stringify(context) : undefined, "location-id": locationId, "document-id": documentId, "folder-id": folderId, "target-composer-element-id": targetComposerElementId, placeholder: placeholder }));
1779
+ var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, context = props.context, locationId = props.locationId, documentId = props.documentId, folderId = props.folderId, targetComposerElementId = props.targetComposerElementId, placeholder = props.placeholder, readOnly = props.readOnly;
1780
+ return (React__default["default"].createElement("velt-comment-composer", { 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, context: context ? JSON.stringify(context) : undefined, "location-id": locationId, "document-id": documentId, "folder-id": folderId, "target-composer-element-id": targetComposerElementId, placeholder: placeholder, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined }));
1781
1781
  };
1782
1782
 
1783
1783
  var VeltSingleEditorModePanel = function (props) {
@@ -2566,6 +2566,12 @@ var VeltCommentDialogThreadCardReply = function (props) {
2566
2566
  return (React__default["default"].createElement("velt-comment-dialog-thread-card-reply-wireframe", __assign({}, transformedProps), children));
2567
2567
  };
2568
2568
 
2569
+ var VeltCommentDialogThreadCardEditComposer = function (props) {
2570
+ var children = props.children, remainingProps = __rest(props, ["children"]);
2571
+ var transformedProps = transformWireframeProps(remainingProps);
2572
+ return (React__default["default"].createElement("velt-comment-dialog-thread-card-edit-composer-wireframe", __assign({}, transformedProps), children));
2573
+ };
2574
+
2569
2575
  // Main Thread Card component
2570
2576
  var VeltCommentDialogThreadCard = function (props) {
2571
2577
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -2590,6 +2596,7 @@ VeltCommentDialogThreadCard.Draft = VeltCommentDialogThreadCardDraft;
2590
2596
  VeltCommentDialogThreadCard.SeenDropdown = VeltCommentDialogThreadCardSeenDropdown;
2591
2597
  VeltCommentDialogThreadCard.Edited = VeltCommentDialogThreadCardEdited;
2592
2598
  VeltCommentDialogThreadCard.Reply = VeltCommentDialogThreadCardReply;
2599
+ VeltCommentDialogThreadCard.EditComposer = VeltCommentDialogThreadCardEditComposer;
2593
2600
 
2594
2601
  var VeltCommentDialogThreads = function (props) {
2595
2602
  var children = props.children, remainingProps = __rest(props, ["children"]);