@splunk/visualizations 24.5.2 → 24.5.3

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.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/Bar.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/Bubble.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/ChoroplethSvg.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1550,7 +1550,7 @@ var Cover = styled_components_1.default.div.withConfig({
1550
1550
  componentId: "sc-1gsbnxb-0"
1551
1551
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1552
1552
  var Blocker = styled_components_1.default.div.attrs({
1553
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1553
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1554
1554
  }).withConfig({
1555
1555
  displayName: "withEditModeCover__Blocker",
1556
1556
  componentId: "sc-1gsbnxb-1"
package/Column.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/Ellipse.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/FillerGauge.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/Image.js CHANGED
@@ -390,7 +390,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
390
390
 
391
391
  return React.createElement(FixSizeItem, {
392
392
  "data-test": "fix-size-item",
393
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
393
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
394
394
  width: width,
395
395
  height: height,
396
396
  backgroundColor: backgroundColor
@@ -1591,7 +1591,7 @@ var Cover = styled_components_1.default.div.withConfig({
1591
1591
  componentId: "sc-1gsbnxb-0"
1592
1592
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1593
1593
  var Blocker = styled_components_1.default.div.attrs({
1594
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1594
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1595
1595
  }).withConfig({
1596
1596
  displayName: "withEditModeCover__Blocker",
1597
1597
  componentId: "sc-1gsbnxb-1"
package/Line.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1555,7 +1555,7 @@ var Cover = styled_components_1.default.div.withConfig({
1555
1555
  componentId: "sc-1gsbnxb-0"
1556
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1557
1557
  var Blocker = styled_components_1.default.div.attrs({
1558
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1558
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1559
1559
  }).withConfig({
1560
1560
  displayName: "withEditModeCover__Blocker",
1561
1561
  componentId: "sc-1gsbnxb-1"
package/LinkGraph.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1550,7 +1550,7 @@ var Cover = styled_components_1.default.div.withConfig({
1550
1550
  componentId: "sc-1gsbnxb-0"
1551
1551
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1552
1552
  var Blocker = styled_components_1.default.div.attrs({
1553
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1553
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1554
1554
  }).withConfig({
1555
1555
  displayName: "withEditModeCover__Blocker",
1556
1556
  componentId: "sc-1gsbnxb-1"
package/Map.js CHANGED
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
585
+ "data-splunk-visualization-version": "24.5.3 - 3129e19a7",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -1545,7 +1545,7 @@ var Cover = styled_components_1.default.div.withConfig({
1545
1545
  componentId: "sc-1gsbnxb-0"
1546
1546
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1547
1547
  var Blocker = styled_components_1.default.div.attrs({
1548
- 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1548
+ 'data-splunk-visualization-version': "24.5.3 - 3129e19a7"
1549
1549
  }).withConfig({
1550
1550
  displayName: "withEditModeCover__Blocker",
1551
1551
  componentId: "sc-1gsbnxb-1"
@@ -2388,7 +2388,7 @@ var __rest = this && this.__rest || function (s, e) {
2388
2388
  Object.defineProperty(exports, "__esModule", {
2389
2389
  value: true
2390
2390
  });
2391
- exports.PureMap = exports.config = exports.themes = exports.computeVizProps = exports.convertToArrOfObjects = void 0;
2391
+ exports.PureMap = exports.config = exports.themes = exports.useIconPlaceholder = exports.computeVizProps = exports.convertToArrOfObjects = void 0;
2392
2392
  /* eslint-disable no-sequences */
2393
2393
 
2394
2394
  var React = __webpack_require__(1);
@@ -2649,14 +2649,17 @@ var withNullToZeros = function withNullToZeros(Viz) {
2649
2649
  return VizWithColumnsNullToZeros;
2650
2650
  };
2651
2651
 
2652
+ function useIconPlaceholder(dataSources, loading) {
2653
+ return loading;
2654
+ }
2655
+
2656
+ exports.useIconPlaceholder = useIconPlaceholder;
2652
2657
  var Map = withoutInternalFields(withTooltipFields(withNullToZeros(withDashboardViz_1.default({
2653
2658
  ReactViz: PureMap_1.default,
2654
2659
  vizConfig: config_1.default,
2655
2660
  computeVizProps: exports.computeVizProps,
2656
2661
  disableEditModeCover: true,
2657
- useIconPlaceholder: function useIconPlaceholder() {
2658
- return false;
2659
- }
2662
+ useIconPlaceholder: useIconPlaceholder
2660
2663
  }))));
2661
2664
  var themes = config_1.default.themes;
2662
2665
  exports.themes = themes;
@@ -2769,7 +2772,8 @@ var PureMap = function PureMap(props) {
2769
2772
  }
2770
2773
 
2771
2774
  return [center[1], center[0]];
2772
- }, [center]); // Assign default zoom when no zoom is defined
2775
+ }, [center]); // TODO: take out zoomLevel to use zoom instead (set prop zoom = DEFAULT_ZOOM)
2776
+ // Assign default zoom when no zoom is defined
2773
2777
 
2774
2778
  var zoomLevel = react_1.useMemo(function () {
2775
2779
  if (zoom === undefined) {
@@ -2807,21 +2811,26 @@ var PureMap = function PureMap(props) {
2807
2811
  setTimeout(function () {
2808
2812
  return onMapLoad();
2809
2813
  }, 500);
2810
- }); // drag
2814
+ }); // register event listener - drag
2811
2815
 
2812
2816
  map.current.on('dragend', function () {
2813
2817
  var newCenter = map.current.getCenter();
2814
2818
  onOptionsChange({
2815
2819
  center: [newCenter.lat, newCenter.lng]
2816
2820
  });
2817
- }); // zoom
2821
+ }); // register event listener - zoom
2818
2822
 
2819
2823
  map.current.on('zoomend', function () {
2820
- setCurrentZoomLevel(map.current.getZoom());
2824
+ setCurrentZoomLevel(map.current.getZoom()); // when zooming with mouse/track pad,
2825
+ // zooming centers at the cursor position, need to update center as well
2826
+
2827
+ var newCenter = map.current.getCenter();
2821
2828
  onOptionsChange({
2829
+ center: [newCenter.lat, newCenter.lng],
2822
2830
  zoom: map.current.getZoom()
2823
2831
  });
2824
- });
2832
+ }); // add zoom control
2833
+
2825
2834
  zoomControl.current = new maplibre_gl_1.NavigationControl({
2826
2835
  showCompass: false
2827
2836
  });
@@ -2884,11 +2893,9 @@ var PureMap = function PureMap(props) {
2884
2893
  }, [tilePreset, initializeMap, initializeScale, updateScale, defaultTileLight, defaultTileDark, baseLayerTileServer, baseLayerTileServerType, themeColorScheme]);
2885
2894
  react_1.useEffect(function () {
2886
2895
  if (map.current) {
2887
- map.current.on('load', function () {
2888
- map.current.flyTo({
2889
- center: lngLatCenter,
2890
- zoom: zoomLevel
2891
- });
2896
+ map.current.flyTo({
2897
+ center: lngLatCenter,
2898
+ zoom: zoomLevel
2892
2899
  });
2893
2900
  }
2894
2901
  }, [lngLatCenter, zoomLevel]);