@veltdev/react 1.0.114 → 1.0.116
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 +5 -16
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +2 -0
- package/cjs/types/components/VeltHighChartComments/VeltHighChartComments.d.ts +1 -0
- package/esm/index.js +5 -16
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +2 -0
- package/esm/types/components/VeltHighChartComments/VeltHighChartComments.d.ts +1 -0
- package/index.d.ts +3 -0
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -107,10 +107,10 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
107
107
|
if (!existingScript) {
|
|
108
108
|
var script = document.createElement('script');
|
|
109
109
|
if (staging) {
|
|
110
|
-
script.src = "https://us-central1-snipply-sdk-staging.cloudfunctions.net/
|
|
110
|
+
script.src = "https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-staging&packageVersion=".concat((!version || version === 'latest') ? '1.0.1' : version, "&filePath=velt.js&orgName=@veltdev");
|
|
111
111
|
}
|
|
112
112
|
else if (develop) {
|
|
113
|
-
script.src = "https://us-central1-snipply-sdk-staging.cloudfunctions.net/
|
|
113
|
+
script.src = "https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-dev&packageVersion=".concat((!version || version === 'latest') ? '1.0.1' : version, "&filePath=velt.js&orgName=@veltdev");
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
if (proxyDomain) {
|
|
@@ -284,7 +284,7 @@ var SnippylyComments = function (props) {
|
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
var SnippylyCommentsSidebar = function (props) {
|
|
287
|
-
var embedMode = props.embedMode, enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, variant = props.variant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick;
|
|
287
|
+
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, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick;
|
|
288
288
|
var ref = React.useRef();
|
|
289
289
|
React.useEffect(function () {
|
|
290
290
|
if (ref.current) {
|
|
@@ -307,7 +307,7 @@ var SnippylyCommentsSidebar = function (props) {
|
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
}, []);
|
|
310
|
-
return (React__default["default"].createElement("velt-comments-sidebar", { ref: ref, "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, variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }));
|
|
310
|
+
return (React__default["default"].createElement("velt-comments-sidebar", { ref: ref, "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, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }));
|
|
311
311
|
};
|
|
312
312
|
|
|
313
313
|
var SnippylyCommentTool = function (props) {
|
|
@@ -730,19 +730,8 @@ var VeltNivoChartComments = function (_a) {
|
|
|
730
730
|
}))));
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
-
var HighchartsReact;
|
|
734
|
-
var Highcharts;
|
|
735
|
-
// optionally import highcharts modules using try catch
|
|
736
|
-
try {
|
|
737
|
-
HighchartsReact = require('highcharts-react-official');
|
|
738
|
-
Highcharts = require('highcharts');
|
|
739
|
-
}
|
|
740
|
-
catch (err) {
|
|
741
|
-
HighchartsReact = null;
|
|
742
|
-
Highcharts = null;
|
|
743
|
-
}
|
|
744
733
|
var VeltHighChartComments = function (_a) {
|
|
745
|
-
var chartComputedData = _a.chartComputedData, id = _a.id, dialogMetadataTemplate = _a.dialogMetadataTemplate;
|
|
734
|
+
var chartComputedData = _a.chartComputedData, id = _a.id, dialogMetadataTemplate = _a.dialogMetadataTemplate, Highcharts = _a.Highcharts;
|
|
746
735
|
var _b = React.useState([]), points = _b[0], setPoints = _b[1];
|
|
747
736
|
var _c = React.useState([]), ghostPoints = _c[0], setGhostPoints = _c[1];
|
|
748
737
|
var chartRef = React.useRef(chartComputedData);
|