@splunk/visualizations 25.8.1 → 25.9.0
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/Area.config.js +2 -2
- package/Area.config.js.map +1 -1
- package/Area.js +25 -9
- package/Area.js.map +1 -1
- package/Bar.config.js +2 -2
- package/Bar.config.js.map +1 -1
- package/Bar.js +25 -9
- package/Bar.js.map +1 -1
- package/Bubble.js +23 -7
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +20 -6
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +3 -3
- package/Column.config.js.map +1 -1
- package/Column.js +26 -10
- package/Column.js.map +1 -1
- package/Ellipse.js +20 -6
- package/Ellipse.js.map +1 -1
- package/Events.js +20 -6
- package/Events.js.map +1 -1
- package/FillerGauge.js +20 -6
- package/FillerGauge.js.map +1 -1
- package/Image.js +20 -6
- package/Image.js.map +1 -1
- package/Line.config.js +12 -3
- package/Line.config.js.map +1 -1
- package/Line.js +37 -11
- package/Line.js.map +1 -1
- package/LinkGraph.js +29 -10
- package/LinkGraph.js.map +1 -1
- package/Map.js +21 -7
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -0
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +21 -6
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +20 -6
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +20 -6
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +23 -7
- package/Pie.js.map +1 -1
- package/Punchcard.js +20 -6
- package/Punchcard.js.map +1 -1
- package/README.internal.md +15 -5
- package/README.md +3 -1
- package/Rectangle.js +20 -6
- package/Rectangle.js.map +1 -1
- package/Sankey.js +20 -6
- package/Sankey.js.map +1 -1
- package/Scatter.js +23 -7
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +5 -5
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +25 -11
- package/SingleValue.js.map +1 -1
- package/SingleValueIcon.config.js +9 -7
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +29 -13
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +9 -7
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +29 -13
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +1 -1
- package/Table.config.js.map +1 -1
- package/Table.js +21 -7
- package/Table.js.map +1 -1
- package/common/Charting.js +3 -1
- package/common/Charting.js.map +1 -1
- package/common/OptionsDoc.js +9 -6
- package/common/OptionsDoc.js.map +1 -1
- package/common/withDashboardViz.js +20 -6
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +20 -20
package/Pie.js
CHANGED
|
@@ -200,7 +200,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
200
200
|
}
|
|
201
201
|
return React.createElement(FixSizeItem, {
|
|
202
202
|
"data-test": "fix-size-item",
|
|
203
|
-
"data-splunk-visualization-version": "25.
|
|
203
|
+
"data-splunk-visualization-version": "25.9.0 - 933e6a539",
|
|
204
204
|
width: width,
|
|
205
205
|
height: height,
|
|
206
206
|
backgroundColor: backgroundColor
|
|
@@ -979,10 +979,18 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
979
979
|
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
980
980
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
981
981
|
visualizationID = _React$useState4[0];
|
|
982
|
-
var _React$useState5 = React.useState(
|
|
982
|
+
var _React$useState5 = React.useState({}),
|
|
983
983
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
984
|
-
|
|
985
|
-
|
|
984
|
+
dataSourcesInState = _React$useState6[0],
|
|
985
|
+
setDataSourcesInState = _React$useState6[1];
|
|
986
|
+
var _React$useState7 = React.useState(),
|
|
987
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
988
|
+
dataFramesInState = _React$useState8[0],
|
|
989
|
+
setDataFramesInState = _React$useState8[1];
|
|
990
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
991
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
992
|
+
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
993
|
+
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
986
994
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
987
995
|
try {
|
|
988
996
|
if (useAsyncEvaluatedOptions) {
|
|
@@ -1005,10 +1013,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1005
1013
|
setUseAsyncEvaluatedOptions(false);
|
|
1006
1014
|
});
|
|
1007
1015
|
} else {
|
|
1016
|
+
var dataFrames = dataFramesInState;
|
|
1017
|
+
if (dataSources !== dataSourcesInState) {
|
|
1018
|
+
setDataSourcesInState(dataSources);
|
|
1019
|
+
dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
|
|
1020
|
+
setDataFramesInState(dataFrames);
|
|
1021
|
+
}
|
|
1008
1022
|
return Options_1.Options.evaluate({
|
|
1009
1023
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1010
1024
|
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1011
|
-
}, dataSources, themeFunc);
|
|
1025
|
+
}, dataSources, themeFunc, dataFrames);
|
|
1012
1026
|
}
|
|
1013
1027
|
} catch (e) {
|
|
1014
1028
|
// eslint-disable-next-line no-console
|
|
@@ -1927,7 +1941,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1927
1941
|
componentId: "sc-1gsbnxb-0"
|
|
1928
1942
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1929
1943
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1930
|
-
'data-splunk-visualization-version': "25.
|
|
1944
|
+
'data-splunk-visualization-version': "25.9.0 - 933e6a539"
|
|
1931
1945
|
}).withConfig({
|
|
1932
1946
|
displayName: "withEditModeCover__Blocker",
|
|
1933
1947
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2561,7 +2575,9 @@ var Charting = function Charting(props) {
|
|
|
2561
2575
|
chart.current.prepareAndDraw(chartData, updatedOptions, function () {});
|
|
2562
2576
|
}
|
|
2563
2577
|
if (chart.current) {
|
|
2564
|
-
chart.current.
|
|
2578
|
+
if (Math.round(chart.current.height) !== Math.round(computedHeight) || Math.round(chart.current.width) !== Math.round(computedWidth)) {
|
|
2579
|
+
chart.current.resize(computedWidth, computedHeight);
|
|
2580
|
+
}
|
|
2565
2581
|
}
|
|
2566
2582
|
needsInit.current = false;
|
|
2567
2583
|
needsRedraw.current = false;
|