@veltdev/react 3.0.1 → 3.0.2
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 +35 -5
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -0
- package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/cjs/types/components/VeltInlineReactionsSection/VeltInlineReactionsSection.d.ts +9 -0
- package/cjs/types/components/VeltInlineReactionsSection/index.d.ts +1 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionListWireframe/VeltInlineReactionsSectionListWireframe.d.ts +8 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionListWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionPanelWireframe/VeltInlineReactionsSectionPanelWireframe.d.ts +8 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionPanelWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionToolContainerWireframe/VeltInlineReactionsSectionToolContainerWireframe.d.ts +8 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionWireframe.d.ts +14 -0
- package/cjs/types/components/VeltInlineReactionsSectionWireframe/index.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 +34 -6
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -0
- package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/esm/types/components/VeltInlineReactionsSection/VeltInlineReactionsSection.d.ts +9 -0
- package/esm/types/components/VeltInlineReactionsSection/index.d.ts +1 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionListWireframe/VeltInlineReactionsSectionListWireframe.d.ts +8 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionListWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionPanelWireframe/VeltInlineReactionsSectionPanelWireframe.d.ts +8 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionPanelWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionToolContainerWireframe/VeltInlineReactionsSectionToolContainerWireframe.d.ts +8 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/VeltInlineReactionsSectionWireframe.d.ts +14 -0
- package/esm/types/components/VeltInlineReactionsSectionWireframe/index.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 +39 -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.2';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
145
|
var VELT_TAB_ID = 'veltTabId';
|
|
146
146
|
|
|
@@ -352,7 +352,7 @@ var SnippylyComments = function (props) {
|
|
|
352
352
|
};
|
|
353
353
|
|
|
354
354
|
var SnippylyCommentsSidebar = function (props) {
|
|
355
|
-
var embedMode = props.embedMode, enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout;
|
|
355
|
+
var embedMode = props.embedMode, floatingMode = props.floatingMode, enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout;
|
|
356
356
|
var ref = React.useRef();
|
|
357
357
|
var openSidebarRef = React.useRef(openSidebar);
|
|
358
358
|
var onSidebarOpenRef = React.useRef(onSidebarOpen);
|
|
@@ -403,7 +403,7 @@ var SnippylyCommentsSidebar = function (props) {
|
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
405
|
}, []);
|
|
406
|
-
return (React__default["default"].createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
406
|
+
return (React__default["default"].createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(floatingMode) ? (floatingMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
407
407
|
};
|
|
408
408
|
|
|
409
409
|
var SnippylyCommentTool = function (props) {
|
|
@@ -612,8 +612,8 @@ var SnippylyRecorderTool = function (props) {
|
|
|
612
612
|
};
|
|
613
613
|
|
|
614
614
|
var SnippylySidebarButton = function (props) {
|
|
615
|
-
var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom;
|
|
616
|
-
return (React__default["default"].createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
615
|
+
var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom, floatingMode = props.floatingMode;
|
|
616
|
+
return (React__default["default"].createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(floatingMode) ? (floatingMode ? 'true' : 'false') : undefined }, children));
|
|
617
617
|
};
|
|
618
618
|
|
|
619
619
|
var SnippylyTags = function (props) {
|
|
@@ -1339,6 +1339,11 @@ var VeltReactionTool = function (props) {
|
|
|
1339
1339
|
return (React__default["default"].createElement("velt-reaction-tool", { ref: ref, "video-player-id": videoPlayerId }));
|
|
1340
1340
|
};
|
|
1341
1341
|
|
|
1342
|
+
var VeltInlineReactionsSection = function (props) {
|
|
1343
|
+
var children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, targetReactionElementId = props.targetReactionElementId;
|
|
1344
|
+
return (React__default["default"].createElement("velt-inline-reactions-section", { "target-reaction-element-id": targetReactionElementId, variant: variant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1342
1347
|
var VeltWireframe = function (props) {
|
|
1343
1348
|
var children = props.children;
|
|
1344
1349
|
return (React__default["default"].createElement("velt-wireframe", { style: { display: 'none' } }, children));
|
|
@@ -2957,6 +2962,29 @@ VeltConfirmDialogWireframe.Message = VeltConfirmDialogMessageWireframe;
|
|
|
2957
2962
|
VeltConfirmDialogWireframe.RejectButton = VeltConfirmDialogRejectButtonWireframe;
|
|
2958
2963
|
VeltConfirmDialogWireframe.ApproveButton = VeltConfirmDialogApproveButtonWireframe;
|
|
2959
2964
|
|
|
2965
|
+
var VeltInlineReactionsSectionListWireframe = function (props) {
|
|
2966
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2967
|
+
return (React__default["default"].createElement("velt-inline-reactions-section-list-wireframe", __assign({}, remainingProps), children));
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2970
|
+
var VeltInlineReactionsSectionPanelWireframe = function (props) {
|
|
2971
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2972
|
+
return (React__default["default"].createElement("velt-inline-reactions-section-panel-wireframe", __assign({}, remainingProps), children));
|
|
2973
|
+
};
|
|
2974
|
+
|
|
2975
|
+
var VeltInlineReactionsSectionToolContainerWireframe = function (props) {
|
|
2976
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2977
|
+
return (React__default["default"].createElement("velt-inline-reactions-section-tool-container-wireframe", __assign({}, remainingProps), children));
|
|
2978
|
+
};
|
|
2979
|
+
|
|
2980
|
+
var VeltInlineReactionsSectionWireframe = function (props) {
|
|
2981
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2982
|
+
return (React__default["default"].createElement("velt-inline-reactions-section-wireframe", __assign({}, remainingProps), children));
|
|
2983
|
+
};
|
|
2984
|
+
VeltInlineReactionsSectionWireframe.List = VeltInlineReactionsSectionListWireframe;
|
|
2985
|
+
VeltInlineReactionsSectionWireframe.Panel = VeltInlineReactionsSectionPanelWireframe;
|
|
2986
|
+
VeltInlineReactionsSectionWireframe.ToolContainer = VeltInlineReactionsSectionToolContainerWireframe;
|
|
2987
|
+
|
|
2960
2988
|
function useClient() {
|
|
2961
2989
|
var client = useVeltClient().client;
|
|
2962
2990
|
var _a = React__default["default"].useState(), veltClient = _a[0], setVeltClient = _a[1];
|
|
@@ -3762,6 +3790,8 @@ exports.VeltHuddle = SnippylyHuddle;
|
|
|
3762
3790
|
exports.VeltHuddleTool = SnippylyHuddleTool;
|
|
3763
3791
|
exports.VeltInlineCommentsSection = VeltInlineCommentsSection;
|
|
3764
3792
|
exports.VeltInlineCommentsSectionWireframe = VeltInlineCommentsSectionWireframe;
|
|
3793
|
+
exports.VeltInlineReactionsSection = VeltInlineReactionsSection;
|
|
3794
|
+
exports.VeltInlineReactionsSectionWireframe = VeltInlineReactionsSectionWireframe;
|
|
3765
3795
|
exports.VeltNivoChartComments = VeltNivoChartComments;
|
|
3766
3796
|
exports.VeltNotificationsHistoryPanel = VeltNotificationsHistoryPanel;
|
|
3767
3797
|
exports.VeltNotificationsPanel = VeltNotificationsPanel;
|