@veltdev/react 3.0.18 → 3.0.20
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 +19 -7
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +9 -0
- package/cjs/types/components/VeltCommentComposer/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentComposerWireframe/VeltInlineCommentsSectionWireframe.d.ts +8 -0
- package/cjs/types/components/VeltCommentComposerWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/cjs/types/components/index.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +18 -8
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +9 -0
- package/esm/types/components/VeltCommentComposer/index.d.ts +1 -0
- package/esm/types/components/VeltCommentComposerWireframe/VeltInlineCommentsSectionWireframe.d.ts +8 -0
- package/esm/types/components/VeltCommentComposerWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
- package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/esm/types/components/index.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +19 -1
- 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.
|
|
143
|
+
var VELT_SDK_VERSION = '3.0.20';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
145
|
var VELT_TAB_ID = 'veltTabId';
|
|
146
146
|
|
|
@@ -812,7 +812,7 @@ var VeltCommentThread = function (props) {
|
|
|
812
812
|
};
|
|
813
813
|
|
|
814
814
|
var VeltNotificationsTool = function (props) {
|
|
815
|
-
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant;
|
|
815
|
+
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab;
|
|
816
816
|
var ref = React.useRef();
|
|
817
817
|
var onNotificationClickRef = React.useRef(onNotificationClick);
|
|
818
818
|
// Update the ref to always point to the latest callback function
|
|
@@ -838,11 +838,11 @@ var VeltNotificationsTool = function (props) {
|
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
840
|
}, []);
|
|
841
|
-
return (React__default["default"].createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, panelVariant: panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
841
|
+
return (React__default["default"].createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, panelVariant: panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined }, children));
|
|
842
842
|
};
|
|
843
843
|
|
|
844
844
|
var VeltNotificationsPanel = function (props) {
|
|
845
|
-
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant;
|
|
845
|
+
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab;
|
|
846
846
|
var ref = React.useRef();
|
|
847
847
|
var onNotificationClickRef = React.useRef(onNotificationClick);
|
|
848
848
|
// Update the ref to always point to the latest callback function
|
|
@@ -868,7 +868,7 @@ var VeltNotificationsPanel = function (props) {
|
|
|
868
868
|
}
|
|
869
869
|
};
|
|
870
870
|
}, []);
|
|
871
|
-
return (React__default["default"].createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
871
|
+
return (React__default["default"].createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined }));
|
|
872
872
|
};
|
|
873
873
|
|
|
874
874
|
var VeltNotificationsHistoryPanel = 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, 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));
|
|
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, multiThread = props.multiThread;
|
|
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, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined }, children));
|
|
1376
1376
|
};
|
|
1377
1377
|
|
|
1378
1378
|
var VeltCommentPin = function (props) {
|
|
@@ -1436,6 +1436,11 @@ var VeltInlineReactionsSection = function (props) {
|
|
|
1436
1436
|
return (React__default["default"].createElement("velt-inline-reactions-section", { "target-reaction-element-id": targetReactionElementId, variant: variant, "custom-reactions": JSON.stringify(customReactions), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
1437
1437
|
};
|
|
1438
1438
|
|
|
1439
|
+
var VeltCommentComposer = function (props) {
|
|
1440
|
+
var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant;
|
|
1441
|
+
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 }));
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1439
1444
|
var VeltWireframe = function (props) {
|
|
1440
1445
|
var children = props.children;
|
|
1441
1446
|
return (React__default["default"].createElement("velt-wireframe", { style: { display: 'none' } }, children));
|
|
@@ -3303,6 +3308,11 @@ VeltMultiThreadCommentDialogWireframe.CloseButton = VeltMultiThreadCommentDialog
|
|
|
3303
3308
|
VeltMultiThreadCommentDialogWireframe.MinimalFilterDropdown = VeltMultiThreadCommentDialogMinimalFilterDropdownWireframe;
|
|
3304
3309
|
VeltMultiThreadCommentDialogWireframe.EmptyPlaceholder = VeltMultiThreadCommentDialogEmptyPlaceholderWireframe;
|
|
3305
3310
|
|
|
3311
|
+
var VeltCommentComposerWireframe = function (props) {
|
|
3312
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
3313
|
+
return (React__default["default"].createElement("velt-comment-composer-wireframe", __assign({}, remainingProps), children));
|
|
3314
|
+
};
|
|
3315
|
+
|
|
3306
3316
|
function useClient() {
|
|
3307
3317
|
var client = useVeltClient().client;
|
|
3308
3318
|
var _a = React__default["default"].useState(), veltClient = _a[0], setVeltClient = _a[1];
|
|
@@ -4082,6 +4092,8 @@ exports.VeltCanvasComment = VeltCanvasComment;
|
|
|
4082
4092
|
exports.VeltChartComment = VeltChartComment;
|
|
4083
4093
|
exports.VeltCommentBubble = SnippylyCommentBubble;
|
|
4084
4094
|
exports.VeltCommentBubbleWireframe = VeltCommentBubbleWireframe;
|
|
4095
|
+
exports.VeltCommentComposer = VeltCommentComposer;
|
|
4096
|
+
exports.VeltCommentComposerWireframe = VeltCommentComposerWireframe;
|
|
4085
4097
|
exports.VeltCommentDialogOptionsDropdownContentWireframe = VeltCommentDialogOptionsDropdownContentWireframe;
|
|
4086
4098
|
exports.VeltCommentDialogOptionsDropdownTriggerWireframe = VeltCommentDialogOptionsDropdownTriggerWireframe;
|
|
4087
4099
|
exports.VeltCommentDialogPriorityDropdownContentWireframe = VeltCommentDialogPriorityDropdownContentWireframe;
|