@splunk/visualizations 23.4.1 → 23.5.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.
Files changed (76) hide show
  1. package/Area.config.js +18 -17
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +13 -12
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +11 -10
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +6 -5
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +11 -10
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +6 -5
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.js +7 -7
  14. package/ChoroplethSvg.js.map +1 -1
  15. package/Column.config.js +11 -10
  16. package/Column.config.js.map +1 -1
  17. package/Column.js +6 -5
  18. package/Column.js.map +1 -1
  19. package/Ellipse.config.js +9 -9
  20. package/Ellipse.config.js.map +1 -1
  21. package/Ellipse.js +11 -11
  22. package/Ellipse.js.map +1 -1
  23. package/FillerGauge.config.js +9 -8
  24. package/FillerGauge.config.js.map +1 -1
  25. package/FillerGauge.js +14 -13
  26. package/FillerGauge.js.map +1 -1
  27. package/Line.config.js +18 -17
  28. package/Line.config.js.map +1 -1
  29. package/Line.js +13 -12
  30. package/Line.js.map +1 -1
  31. package/LinkGraph.config.js +2 -2
  32. package/LinkGraph.js +15 -15
  33. package/LinkGraph.js.map +1 -1
  34. package/Markdown.config.js +91 -1
  35. package/Markdown.config.js.map +1 -1
  36. package/Markdown.js +110 -7
  37. package/Markdown.js.map +1 -1
  38. package/MarkerGauge.config.js +39 -3
  39. package/MarkerGauge.config.js.map +1 -1
  40. package/MarkerGauge.js +47 -13
  41. package/MarkerGauge.js.map +1 -1
  42. package/ParallelCoordinates.config.js +12 -11
  43. package/ParallelCoordinates.config.js.map +1 -1
  44. package/ParallelCoordinates.js +11 -10
  45. package/ParallelCoordinates.js.map +1 -1
  46. package/Pie.config.js +12 -11
  47. package/Pie.config.js.map +1 -1
  48. package/Pie.js +6 -5
  49. package/Pie.js.map +1 -1
  50. package/Punchcard.config.js +12 -11
  51. package/Punchcard.config.js.map +1 -1
  52. package/Punchcard.js +22 -21
  53. package/Punchcard.js.map +1 -1
  54. package/Rectangle.config.js +16 -16
  55. package/Rectangle.config.js.map +1 -1
  56. package/Rectangle.js +18 -18
  57. package/Rectangle.js.map +1 -1
  58. package/Sankey.config.js +14 -13
  59. package/Sankey.config.js.map +1 -1
  60. package/Sankey.js +24 -23
  61. package/Sankey.js.map +1 -1
  62. package/Scatter.config.js +12 -11
  63. package/Scatter.config.js.map +1 -1
  64. package/Scatter.js +8 -7
  65. package/Scatter.js.map +1 -1
  66. package/SingleValue.js +8 -8
  67. package/SingleValue.js.map +1 -1
  68. package/SingleValueBasic.js +5 -5
  69. package/SingleValueBasic.js.map +1 -1
  70. package/SingleValueIcon.js +6 -6
  71. package/SingleValueIcon.js.map +1 -1
  72. package/SingleValueRadial.js +6 -6
  73. package/SingleValueRadial.js.map +1 -1
  74. package/Table.js +17 -18
  75. package/Table.js.map +1 -1
  76. package/package.json +10 -9
package/Table.js CHANGED
@@ -567,7 +567,7 @@ Object.defineProperty(exports, "default", {
567
567
  "use strict";
568
568
 
569
569
 
570
- var _toConsumableArray = __webpack_require__(40);
570
+ var _toConsumableArray = __webpack_require__(39);
571
571
 
572
572
  Object.defineProperty(exports, "__esModule", {
573
573
  value: true
@@ -579,7 +579,7 @@ var lodash_1 = __webpack_require__(2);
579
579
 
580
580
  var schemaUtils_1 = __webpack_require__(14);
581
581
 
582
- var colorConstants_1 = __webpack_require__(39);
582
+ var colorConstants_1 = __webpack_require__(40);
583
583
 
584
584
  var visualization_icons_1 = __webpack_require__(42);
585
585
 
@@ -1223,7 +1223,7 @@ exports.default = configUtils_1.enhanceConfig(config);
1223
1223
  "use strict";
1224
1224
 
1225
1225
 
1226
- var _taggedTemplateLiteral = __webpack_require__(93);
1226
+ var _taggedTemplateLiteral = __webpack_require__(94);
1227
1227
 
1228
1228
  var _templateObject, _templateObject2;
1229
1229
 
@@ -1256,7 +1256,7 @@ var styled_components_1 = __webpack_require__(4);
1256
1256
 
1257
1257
  var i18n_1 = __webpack_require__(3);
1258
1258
 
1259
- var Table_1 = __webpack_require__(75);
1259
+ var Table_1 = __webpack_require__(76);
1260
1260
 
1261
1261
  var Paginator_1 = __webpack_require__(245);
1262
1262
 
@@ -1402,15 +1402,14 @@ var PureTable = function PureTable(props) {
1402
1402
  }
1403
1403
  }, [count, paginatorProps]);
1404
1404
  var TableHead = tableHeader.visibility === 'none' ? NonVisibleTableHead : Table_1.default.Head;
1405
- var drilldown = React.useCallback(function (e, payload) {
1405
+ var debouncedDrilldown = debounce(function (e, payload) {
1406
1406
  if (window.getSelection().toString() === '') {
1407
1407
  lodash_1.isFunction(onCellClick) && onCellClick({
1408
1408
  e: e,
1409
1409
  payload: payload
1410
1410
  });
1411
1411
  }
1412
- }, [onCellClick]);
1413
- var debouncedDrilldown = React.useCallback(debounce(drilldown, 200), []);
1412
+ }, 200);
1414
1413
  var drilldownHandler = React.useCallback(function (e) {
1415
1414
  var element = e.target;
1416
1415
  var row = element.getAttribute('data-row-index');
@@ -1468,7 +1467,7 @@ var PureTable = function PureTable(props) {
1468
1467
  height: '100%',
1469
1468
  cursor: onCellClick ? 'pointer' : 'unset'
1470
1469
  },
1471
- onClick: onCellClick ? drilldownHandler : function () {}
1470
+ onClick: onCellClick ? drilldownHandler : lodash_1.noop
1472
1471
  }, React.createElement(TableHead, null, tableHeader.cells.map(function (_a) {
1473
1472
  var key = _a.key,
1474
1473
  value = _a.value,
@@ -1592,7 +1591,7 @@ module.exports = require("@splunk/react-ui/Message");
1592
1591
  "use strict";
1593
1592
 
1594
1593
 
1595
- var _toConsumableArray = __webpack_require__(40);
1594
+ var _toConsumableArray = __webpack_require__(39);
1596
1595
 
1597
1596
  var _typeof = __webpack_require__(22);
1598
1597
 
@@ -2170,7 +2169,7 @@ exports.TextCell = void 0;
2170
2169
 
2171
2170
  var React = __webpack_require__(1);
2172
2171
 
2173
- var Table_1 = __webpack_require__(75);
2172
+ var Table_1 = __webpack_require__(76);
2174
2173
 
2175
2174
  var TextCell = function TextCell(_ref) {
2176
2175
  var cell = _ref.cell,
@@ -2203,7 +2202,7 @@ exports.ArrayCell = void 0;
2203
2202
 
2204
2203
  var React = __webpack_require__(1);
2205
2204
 
2206
- var Table_1 = __webpack_require__(75);
2205
+ var Table_1 = __webpack_require__(76);
2207
2206
 
2208
2207
  var ArrayCell = function ArrayCell(_ref) {
2209
2208
  var cell = _ref.cell,
@@ -2244,9 +2243,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
2244
2243
 
2245
2244
  var React = __webpack_require__(1);
2246
2245
 
2247
- var Table_1 = __webpack_require__(75);
2246
+ var Table_1 = __webpack_require__(76);
2248
2247
 
2249
- var Line_1 = __webpack_require__(76);
2248
+ var Line_1 = __webpack_require__(77);
2250
2249
 
2251
2250
  var paddingLeftRight = 5;
2252
2251
  var paddingTopBottom = 3;
@@ -3077,7 +3076,7 @@ exports.default = withPlaceholder;
3077
3076
  /***/ 39:
3078
3077
  /***/ (function(module, exports) {
3079
3078
 
3080
- module.exports = require("@splunk/visualizations-shared/colorConstants");
3079
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
3081
3080
 
3082
3081
  /***/ }),
3083
3082
 
@@ -3091,7 +3090,7 @@ module.exports = require("styled-components");
3091
3090
  /***/ 40:
3092
3091
  /***/ (function(module, exports) {
3093
3092
 
3094
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
3093
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
3095
3094
 
3096
3095
  /***/ }),
3097
3096
 
@@ -3226,14 +3225,14 @@ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
3226
3225
 
3227
3226
  /***/ }),
3228
3227
 
3229
- /***/ 75:
3228
+ /***/ 76:
3230
3229
  /***/ (function(module, exports) {
3231
3230
 
3232
3231
  module.exports = require("@splunk/react-ui/Table");
3233
3232
 
3234
3233
  /***/ }),
3235
3234
 
3236
- /***/ 76:
3235
+ /***/ 77:
3237
3236
  /***/ (function(module, exports) {
3238
3237
 
3239
3238
  module.exports = require("@splunk/react-sparkline/Line");
@@ -3439,7 +3438,7 @@ module.exports = require("@splunk/visualizations-shared/Message");
3439
3438
 
3440
3439
  /***/ }),
3441
3440
 
3442
- /***/ 93:
3441
+ /***/ 94:
3443
3442
  /***/ (function(module, exports) {
3444
3443
 
3445
3444
  module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");