@veltdev/react 5.0.2-beta.16 → 5.0.2-beta.18
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 +56 -4
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/VeltCommentDialogThreadCardMessageShowLess.d.ts +13 -0
- package/cjs/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/VeltCommentDialogThreadCardMessageShowMore.d.ts +14 -0
- package/cjs/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialog/index.d.ts +2 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -2
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessage.d.ts +7 -1
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/VeltCommentDialogThreadCardMessageShowLess.d.ts +8 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/VeltCommentDialogThreadCardMessageShowMore.d.ts +8 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/index.d.ts +1 -0
- package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +10 -0
- package/cjs/types/components/index.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +55 -5
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/VeltCommentDialogThreadCardMessageShowLess.d.ts +13 -0
- package/esm/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/VeltCommentDialogThreadCardMessageShowMore.d.ts +14 -0
- package/esm/types/components/VeltCommentDialog/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialog/index.d.ts +2 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -2
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessage.d.ts +7 -1
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/VeltCommentDialogThreadCardMessageShowLess.d.ts +8 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowLess/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/VeltCommentDialogThreadCardMessageShowMore.d.ts +8 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardMessage/VeltCommentDialogThreadCardMessageShowMore/index.d.ts +1 -0
- package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +10 -0
- package/esm/types/components/index.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +51 -2
- package/package.json +1 -1
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 = '5.0.2-beta.
|
|
215
|
+
var VELT_SDK_VERSION = '5.0.2-beta.18';
|
|
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
|
-
'5.0.2-beta.
|
|
221
|
+
'5.0.2-beta.18': 'sha384-69LoKfP81N0BizQX0RnZyXU38I8rcgQaKpHG2rufCSLpRGaArTrKTIE9FNE9+hIh',
|
|
222
222
|
};
|
|
223
223
|
|
|
224
224
|
var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
|
|
@@ -2186,8 +2186,8 @@ var VeltAutocompleteChipTooltipDescription = function (props) {
|
|
|
2186
2186
|
};
|
|
2187
2187
|
|
|
2188
2188
|
var VeltInlineCommentsSection = function (props) {
|
|
2189
|
-
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, anonymousEmail = props.anonymousEmail;
|
|
2190
|
-
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, "anonymous-email": [true, false].includes(anonymousEmail) ? (anonymousEmail ? 'true' : 'false') : undefined }, children));
|
|
2189
|
+
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, anonymousEmail = props.anonymousEmail, messageTruncation = props.messageTruncation, messageTruncationLines = props.messageTruncationLines;
|
|
2190
|
+
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, "anonymous-email": [true, false].includes(anonymousEmail) ? (anonymousEmail ? 'true' : 'false') : undefined, "message-truncation": [true, false].includes(messageTruncation) ? (messageTruncation ? 'true' : 'false') : undefined, "message-truncation-lines": messageTruncationLines !== undefined ? String(messageTruncationLines) : undefined }, children));
|
|
2191
2191
|
};
|
|
2192
2192
|
|
|
2193
2193
|
var VeltInlineCommentsSectionCommentCount = function (props) {
|
|
@@ -2710,6 +2710,42 @@ var VeltCommentDialogThreadCardMessage$1 = function (props) {
|
|
|
2710
2710
|
return (React__default["default"].createElement("velt-comment-dialog-thread-card-message", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "comment-obj": commentObj ? (typeof commentObj === 'string' ? commentObj : JSON.stringify(commentObj)) : undefined, "comment-id": commentId !== undefined ? String(commentId) : undefined, "comment-index": commentIndex !== undefined ? String(commentIndex) : undefined }, children));
|
|
2711
2711
|
};
|
|
2712
2712
|
|
|
2713
|
+
var VeltCommentDialogThreadCardMessageShowMore$1 = function (props) {
|
|
2714
|
+
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, commentObj = props.commentObj, commentId = props.commentId, commentIndex = props.commentIndex, expanded = props.expanded, truncated = props.truncated, onToggle = props.onToggle, children = props.children;
|
|
2715
|
+
var ref = React.useRef(null);
|
|
2716
|
+
React.useEffect(function () {
|
|
2717
|
+
if (ref.current && onToggle) {
|
|
2718
|
+
var element_1 = ref.current;
|
|
2719
|
+
var handleToggle_1 = function () {
|
|
2720
|
+
onToggle();
|
|
2721
|
+
};
|
|
2722
|
+
element_1.addEventListener('toggle', handleToggle_1);
|
|
2723
|
+
return function () {
|
|
2724
|
+
element_1.removeEventListener('toggle', handleToggle_1);
|
|
2725
|
+
};
|
|
2726
|
+
}
|
|
2727
|
+
}, [onToggle]);
|
|
2728
|
+
return (React__default["default"].createElement("velt-comment-dialog-thread-card-message-show-more", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "comment-obj": commentObj ? (typeof commentObj === 'string' ? commentObj : JSON.stringify(commentObj)) : undefined, "comment-id": commentId !== undefined ? String(commentId) : undefined, "comment-index": commentIndex !== undefined ? String(commentIndex) : undefined, expanded: [true, false].includes(expanded) ? (expanded ? 'true' : 'false') : undefined, truncated: [true, false].includes(truncated) ? (truncated ? 'true' : 'false') : undefined }, children));
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
var VeltCommentDialogThreadCardMessageShowLess$1 = function (props) {
|
|
2732
|
+
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, commentObj = props.commentObj, commentId = props.commentId, commentIndex = props.commentIndex, expanded = props.expanded, onToggle = props.onToggle, children = props.children;
|
|
2733
|
+
var ref = React.useRef(null);
|
|
2734
|
+
React.useEffect(function () {
|
|
2735
|
+
if (ref.current && onToggle) {
|
|
2736
|
+
var element_1 = ref.current;
|
|
2737
|
+
var handleToggle_1 = function () {
|
|
2738
|
+
onToggle();
|
|
2739
|
+
};
|
|
2740
|
+
element_1.addEventListener('toggle', handleToggle_1);
|
|
2741
|
+
return function () {
|
|
2742
|
+
element_1.removeEventListener('toggle', handleToggle_1);
|
|
2743
|
+
};
|
|
2744
|
+
}
|
|
2745
|
+
}, [onToggle]);
|
|
2746
|
+
return (React__default["default"].createElement("velt-comment-dialog-thread-card-message-show-less", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "comment-obj": commentObj ? (typeof commentObj === 'string' ? commentObj : JSON.stringify(commentObj)) : undefined, "comment-id": commentId !== undefined ? String(commentId) : undefined, "comment-index": commentIndex !== undefined ? String(commentIndex) : undefined, expanded: [true, false].includes(expanded) ? (expanded ? 'true' : 'false') : undefined }, children));
|
|
2747
|
+
};
|
|
2748
|
+
|
|
2713
2749
|
var VeltCommentDialogThreadCardName$1 = function (props) {
|
|
2714
2750
|
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, commentObj = props.commentObj, commentId = props.commentId, commentIndex = props.commentIndex, children = props.children;
|
|
2715
2751
|
var ref = React.useRef(null);
|
|
@@ -4538,11 +4574,25 @@ var VeltCommentDialogThreadCardDraft = function (props) {
|
|
|
4538
4574
|
return (React__default["default"].createElement("velt-comment-dialog-thread-card-draft-wireframe", __assign({}, transformedProps), children));
|
|
4539
4575
|
};
|
|
4540
4576
|
|
|
4577
|
+
var VeltCommentDialogThreadCardMessageShowMore = function (props) {
|
|
4578
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
4579
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
4580
|
+
return (React__default["default"].createElement("velt-comment-dialog-thread-card-message-show-more-wireframe", __assign({}, transformedProps), children));
|
|
4581
|
+
};
|
|
4582
|
+
|
|
4583
|
+
var VeltCommentDialogThreadCardMessageShowLess = function (props) {
|
|
4584
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
4585
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
4586
|
+
return (React__default["default"].createElement("velt-comment-dialog-thread-card-message-show-less-wireframe", __assign({}, transformedProps), children));
|
|
4587
|
+
};
|
|
4588
|
+
|
|
4541
4589
|
var VeltCommentDialogThreadCardMessage = function (props) {
|
|
4542
4590
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
4543
4591
|
var transformedProps = transformWireframeProps(remainingProps);
|
|
4544
4592
|
return (React__default["default"].createElement("velt-comment-dialog-thread-card-message-wireframe", __assign({}, transformedProps), children));
|
|
4545
4593
|
};
|
|
4594
|
+
VeltCommentDialogThreadCardMessage.ShowMore = VeltCommentDialogThreadCardMessageShowMore;
|
|
4595
|
+
VeltCommentDialogThreadCardMessage.ShowLess = VeltCommentDialogThreadCardMessageShowLess;
|
|
4546
4596
|
|
|
4547
4597
|
var VeltCommentDialogThreadCardName = function (props) {
|
|
4548
4598
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -11453,6 +11503,8 @@ exports.VeltCommentDialogThreadCardDeviceType = VeltCommentDialogThreadCardDevic
|
|
|
11453
11503
|
exports.VeltCommentDialogThreadCardDraft = VeltCommentDialogThreadCardDraft$1;
|
|
11454
11504
|
exports.VeltCommentDialogThreadCardEdited = VeltCommentDialogThreadCardEdited$1;
|
|
11455
11505
|
exports.VeltCommentDialogThreadCardMessage = VeltCommentDialogThreadCardMessage$1;
|
|
11506
|
+
exports.VeltCommentDialogThreadCardMessageShowLess = VeltCommentDialogThreadCardMessageShowLess$1;
|
|
11507
|
+
exports.VeltCommentDialogThreadCardMessageShowMore = VeltCommentDialogThreadCardMessageShowMore$1;
|
|
11456
11508
|
exports.VeltCommentDialogThreadCardName = VeltCommentDialogThreadCardName$1;
|
|
11457
11509
|
exports.VeltCommentDialogThreadCardOptions = VeltCommentDialogThreadCardOptions$1;
|
|
11458
11510
|
exports.VeltCommentDialogThreadCardReactionTool = VeltCommentDialogThreadCardReactionTool$1;
|