@veltdev/react 4.7.7 → 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.
- package/cjs/index.js +24 -10
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +4 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/VeltCommentDialogThreadCardAssignButton.d.ts +6 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
- package/cjs/types/components/VeltData/VeltData.d.ts +2 -0
- package/cjs/types/components/VeltIf/VeltIf.d.ts +2 -0
- package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +24 -10
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +4 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/VeltCommentDialogThreadCardAssignButton.d.ts +6 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
- package/esm/types/components/VeltData/VeltData.d.ts +2 -0
- package/esm/types/components/VeltIf/VeltIf.d.ts +2 -0
- package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +16 -0
- 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.
|
|
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.
|
|
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) {
|
|
@@ -2462,6 +2462,12 @@ var VeltCommentDialogThreadCardReactionPin = function (props) {
|
|
|
2462
2462
|
return (React__default["default"].createElement("velt-comment-dialog-thread-card-reaction-pin-wireframe", __assign({}, transformedProps, { "reaction-id": reactionId }), children));
|
|
2463
2463
|
};
|
|
2464
2464
|
|
|
2465
|
+
var VeltCommentDialogThreadCardAssignButton = function (props) {
|
|
2466
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2467
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2468
|
+
return (React__default["default"].createElement("velt-comment-dialog-thread-card-assign-button-wireframe", __assign({}, transformedProps), children));
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2465
2471
|
var VeltCommentDialogThreadCardReactions = function (props) {
|
|
2466
2472
|
var children = props.children, excludeReactionIds = props.excludeReactionIds, remainingProps = __rest(props, ["children", "excludeReactionIds"]);
|
|
2467
2473
|
var transformedProps = transformWireframeProps(remainingProps);
|
|
@@ -2560,6 +2566,12 @@ var VeltCommentDialogThreadCardReply = function (props) {
|
|
|
2560
2566
|
return (React__default["default"].createElement("velt-comment-dialog-thread-card-reply-wireframe", __assign({}, transformedProps), children));
|
|
2561
2567
|
};
|
|
2562
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
|
+
|
|
2563
2575
|
// Main Thread Card component
|
|
2564
2576
|
var VeltCommentDialogThreadCard = function (props) {
|
|
2565
2577
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -2576,6 +2588,7 @@ VeltCommentDialogThreadCard.Options = VeltCommentDialogThreadCardOptions;
|
|
|
2576
2588
|
VeltCommentDialogThreadCard.Reactions = VeltCommentDialogThreadCardReactions;
|
|
2577
2589
|
VeltCommentDialogThreadCard.ReactionTool = VeltCommentDialogThreadCardReactionTool;
|
|
2578
2590
|
VeltCommentDialogThreadCard.ReactionPin = VeltCommentDialogThreadCardReactionPin;
|
|
2591
|
+
VeltCommentDialogThreadCard.AssignButton = VeltCommentDialogThreadCardAssignButton;
|
|
2579
2592
|
VeltCommentDialogThreadCard.Recordings = VeltCommentDialogThreadCardRecordings;
|
|
2580
2593
|
VeltCommentDialogThreadCard.Time = VeltCommentDialogThreadCardTime;
|
|
2581
2594
|
VeltCommentDialogThreadCard.Unread = VeltCommentDialogThreadCardUnread;
|
|
@@ -2583,6 +2596,7 @@ VeltCommentDialogThreadCard.Draft = VeltCommentDialogThreadCardDraft;
|
|
|
2583
2596
|
VeltCommentDialogThreadCard.SeenDropdown = VeltCommentDialogThreadCardSeenDropdown;
|
|
2584
2597
|
VeltCommentDialogThreadCard.Edited = VeltCommentDialogThreadCardEdited;
|
|
2585
2598
|
VeltCommentDialogThreadCard.Reply = VeltCommentDialogThreadCardReply;
|
|
2599
|
+
VeltCommentDialogThreadCard.EditComposer = VeltCommentDialogThreadCardEditComposer;
|
|
2586
2600
|
|
|
2587
2601
|
var VeltCommentDialogThreads = function (props) {
|
|
2588
2602
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|