@splunk/visualizations 24.1.0 → 24.2.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 (83) hide show
  1. package/Area.js +137 -117
  2. package/Area.js.map +1 -1
  3. package/Bar.js +130 -110
  4. package/Bar.js.map +1 -1
  5. package/Bubble.js +123 -103
  6. package/Bubble.js.map +1 -1
  7. package/ChoroplethSvg.js +121 -101
  8. package/ChoroplethSvg.js.map +1 -1
  9. package/Column.js +130 -110
  10. package/Column.js.map +1 -1
  11. package/Ellipse.js +95 -75
  12. package/Ellipse.js.map +1 -1
  13. package/FillerGauge.js +114 -94
  14. package/FillerGauge.js.map +1 -1
  15. package/Image.js +85 -64
  16. package/Image.js.map +1 -1
  17. package/Line.js +130 -110
  18. package/Line.js.map +1 -1
  19. package/LinkGraph.js +137 -117
  20. package/LinkGraph.js.map +1 -1
  21. package/Markdown.js +86 -65
  22. package/Markdown.js.map +1 -1
  23. package/MarkerGauge.js +111 -91
  24. package/MarkerGauge.js.map +1 -1
  25. package/ParallelCoordinates.js +119 -99
  26. package/ParallelCoordinates.js.map +1 -1
  27. package/Pie.js +117 -97
  28. package/Pie.js.map +1 -1
  29. package/Punchcard.js +147 -127
  30. package/Punchcard.js.map +1 -1
  31. package/Rectangle.js +103 -82
  32. package/Rectangle.js.map +1 -1
  33. package/Sankey.js +138 -118
  34. package/Sankey.js.map +1 -1
  35. package/Scatter.js +218 -197
  36. package/Scatter.js.map +1 -1
  37. package/SingleValue.js +313 -292
  38. package/SingleValue.js.map +1 -1
  39. package/SingleValueBasic.js +20 -20
  40. package/SingleValueBasic.js.map +1 -1
  41. package/SingleValueIcon.js +144 -124
  42. package/SingleValueIcon.js.map +1 -1
  43. package/SingleValueRadial.js +278 -257
  44. package/SingleValueRadial.js.map +1 -1
  45. package/Table.config.js +9 -1
  46. package/Table.config.js.map +1 -1
  47. package/Table.js +291 -262
  48. package/Table.js.map +1 -1
  49. package/common/Charting.js +22 -21
  50. package/common/Charting.js.map +1 -1
  51. package/common/ChartingApi.js +2 -2
  52. package/common/ChartingApi.js.map +1 -1
  53. package/common/EventsDoc.js +15 -14
  54. package/common/EventsDoc.js.map +1 -1
  55. package/common/GaugeMajorTicks.js +2 -2
  56. package/common/GaugeMajorTicks.js.map +1 -1
  57. package/common/GaugeValueMarker.js +2 -2
  58. package/common/GaugeValueMarker.js.map +1 -1
  59. package/common/OptionsDoc.js +7 -6
  60. package/common/OptionsDoc.js.map +1 -1
  61. package/common/OverviewDoc.js +22 -22
  62. package/common/OverviewDoc.js.map +1 -1
  63. package/common/SplunkVisualization.js +4 -4
  64. package/common/SplunkVisualization.js.map +1 -1
  65. package/common/SplunkVisualizationApi.js +2 -2
  66. package/common/SplunkVisualizationApi.js.map +1 -1
  67. package/common/ThemesDoc.js +16 -16
  68. package/common/ThemesDoc.js.map +1 -1
  69. package/common/chartingUtils.js +4 -4
  70. package/common/chartingUtils.js.map +1 -1
  71. package/common/docUtils.js +4 -4
  72. package/common/docUtils.js.map +1 -1
  73. package/common/gaugeUtils.js +13 -13
  74. package/common/gaugeUtils.js.map +1 -1
  75. package/common/shapeUtils.js +8 -8
  76. package/common/shapeUtils.js.map +1 -1
  77. package/common/version.js +110 -0
  78. package/common/version.js.map +1 -0
  79. package/common/withDashboardViz.js +67 -47
  80. package/common/withDashboardViz.js.map +1 -1
  81. package/package.json +14 -13
  82. package/scripts/generateVersion.js +13 -0
  83. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueRadial_Trend_Indicator_Position_pushed_below_value_does_not_fit_inside_of_radial.png +0 -0
package/Markdown.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 187);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 188);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -134,12 +134,14 @@ var React = __webpack_require__(1);
134
134
 
135
135
  var styled_components_1 = __webpack_require__(4);
136
136
 
137
- var SizeAwareWrapper_1 = __webpack_require__(17);
137
+ var SizeAwareWrapper_1 = __webpack_require__(18);
138
138
 
139
- var style_1 = __webpack_require__(13);
139
+ var style_1 = __webpack_require__(14);
140
140
 
141
141
  var colorUtils_1 = __webpack_require__(11);
142
142
 
143
+ var version_1 = __webpack_require__(13);
144
+
143
145
  var Item = styled_components_1.default.div.attrs(function (_ref) {
144
146
  var width = _ref.width;
145
147
  return {
@@ -195,6 +197,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
195
197
 
196
198
  return React.createElement(FixSizeItem, {
197
199
  "data-test": "fix-size-item",
200
+ "data-splunk-visualization-version": version_1.version,
198
201
  width: width,
199
202
  height: height,
200
203
  backgroundColor: backgroundColor
@@ -216,7 +219,7 @@ exports.default = withFixedSizeContainer;
216
219
 
217
220
  /***/ }),
218
221
 
219
- /***/ 122:
222
+ /***/ 123:
220
223
  /***/ (function(module, exports, __webpack_require__) {
221
224
 
222
225
  "use strict";
@@ -231,19 +234,19 @@ var lodash_1 = __webpack_require__(2);
231
234
 
232
235
  var React = __webpack_require__(1);
233
236
 
234
- var style_1 = __webpack_require__(13);
237
+ var style_1 = __webpack_require__(14);
235
238
 
236
- var Markdown_1 = __webpack_require__(188);
239
+ var Markdown_1 = __webpack_require__(189);
237
240
 
238
241
  var styled_components_1 = __webpack_require__(4);
239
242
 
240
243
  var T = __webpack_require__(0);
241
244
 
242
- var config_1 = __webpack_require__(189);
245
+ var config_1 = __webpack_require__(190);
243
246
 
244
247
  exports.config = config_1.default;
245
248
 
246
- var withDashboardViz_1 = __webpack_require__(27); // startsWithHeader is a prop that can be
249
+ var withDashboardViz_1 = __webpack_require__(28); // startsWithHeader is a prop that can be
247
250
  // falsy if the markdown text begins with text
248
251
  // or the number of heading level;
249
252
  // casting heading level below 4 to 4
@@ -315,34 +318,48 @@ exports.default = Markdown;
315
318
  /***/ }),
316
319
 
317
320
  /***/ 13:
321
+ /***/ (function(module, exports, __webpack_require__) {
322
+
323
+ "use strict";
324
+
325
+
326
+ Object.defineProperty(exports, "__esModule", {
327
+ value: true
328
+ });
329
+ exports.version = void 0;
330
+ exports.version = '24.2.0';
331
+
332
+ /***/ }),
333
+
334
+ /***/ 14:
318
335
  /***/ (function(module, exports) {
319
336
 
320
337
  module.exports = require("@splunk/visualizations-shared/style");
321
338
 
322
339
  /***/ }),
323
340
 
324
- /***/ 14:
341
+ /***/ 15:
325
342
  /***/ (function(module, exports) {
326
343
 
327
344
  module.exports = require("@splunk/visualizations-shared/schemaUtils");
328
345
 
329
346
  /***/ }),
330
347
 
331
- /***/ 16:
348
+ /***/ 17:
332
349
  /***/ (function(module, exports) {
333
350
 
334
351
  module.exports = require("@babel/runtime/helpers/createClass");
335
352
 
336
353
  /***/ }),
337
354
 
338
- /***/ 17:
355
+ /***/ 18:
339
356
  /***/ (function(module, exports) {
340
357
 
341
358
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
342
359
 
343
360
  /***/ }),
344
361
 
345
- /***/ 187:
362
+ /***/ 188:
346
363
  /***/ (function(module, exports, __webpack_require__) {
347
364
 
348
365
  "use strict";
@@ -372,9 +389,9 @@ Object.defineProperty(exports, "__esModule", {
372
389
  });
373
390
  exports.default = void 0;
374
391
 
375
- __exportStar(__webpack_require__(122), exports);
392
+ __exportStar(__webpack_require__(123), exports);
376
393
 
377
- var Markdown_1 = __webpack_require__(122);
394
+ var Markdown_1 = __webpack_require__(123);
378
395
 
379
396
  Object.defineProperty(exports, "default", {
380
397
  enumerable: true,
@@ -385,38 +402,38 @@ Object.defineProperty(exports, "default", {
385
402
 
386
403
  /***/ }),
387
404
 
388
- /***/ 188:
405
+ /***/ 189:
389
406
  /***/ (function(module, exports) {
390
407
 
391
408
  module.exports = require("@splunk/react-ui/Markdown");
392
409
 
393
410
  /***/ }),
394
411
 
395
- /***/ 189:
412
+ /***/ 190:
396
413
  /***/ (function(module, exports, __webpack_require__) {
397
414
 
398
415
  "use strict";
399
416
 
400
417
 
401
- var _toConsumableArray = __webpack_require__(39);
418
+ var _toConsumableArray = __webpack_require__(40);
402
419
 
403
420
  Object.defineProperty(exports, "__esModule", {
404
421
  value: true
405
422
  });
406
423
 
407
- var themes_1 = __webpack_require__(73);
424
+ var themes_1 = __webpack_require__(74);
408
425
 
409
426
  var i18n_1 = __webpack_require__(3);
410
427
 
411
- var schemaUtils_1 = __webpack_require__(14);
428
+ var schemaUtils_1 = __webpack_require__(15);
412
429
 
413
430
  var VizBehavior_1 = __webpack_require__(5);
414
431
 
415
- var VizCategory_1 = __webpack_require__(26);
432
+ var VizCategory_1 = __webpack_require__(27);
416
433
 
417
434
  var configUtils_1 = __webpack_require__(6);
418
435
 
419
- var BackgroundColor_1 = __webpack_require__(45);
436
+ var BackgroundColor_1 = __webpack_require__(46);
420
437
 
421
438
  var dataContract = {
422
439
  requiredDataSources: [],
@@ -530,14 +547,14 @@ module.exports = require("lodash");
530
547
 
531
548
  /***/ }),
532
549
 
533
- /***/ 22:
550
+ /***/ 23:
534
551
  /***/ (function(module, exports) {
535
552
 
536
553
  module.exports = require("@babel/runtime/helpers/typeof");
537
554
 
538
555
  /***/ }),
539
556
 
540
- /***/ 23:
557
+ /***/ 24:
541
558
  /***/ (function(module, exports, __webpack_require__) {
542
559
 
543
560
  "use strict";
@@ -554,7 +571,7 @@ var T = __webpack_require__(0);
554
571
 
555
572
  var lodash_1 = __webpack_require__(2);
556
573
 
557
- var DataSource_1 = __webpack_require__(33);
574
+ var DataSource_1 = __webpack_require__(34);
558
575
 
559
576
  exports.SortParamsPropTypes = T.shape({
560
577
  currentSortKey: T.string,
@@ -608,7 +625,7 @@ exports.getSortingParams = getSortingParams;
608
625
 
609
626
  /***/ }),
610
627
 
611
- /***/ 24:
628
+ /***/ 25:
612
629
  /***/ (function(module, exports, __webpack_require__) {
613
630
 
614
631
  "use strict";
@@ -673,7 +690,7 @@ exports.getPaginationParams = getPaginationParams;
673
690
 
674
691
  /***/ }),
675
692
 
676
- /***/ 25:
693
+ /***/ 26:
677
694
  /***/ (function(module, exports, __webpack_require__) {
678
695
 
679
696
  "use strict";
@@ -762,7 +779,7 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
762
779
 
763
780
  /***/ }),
764
781
 
765
- /***/ 26:
782
+ /***/ 27:
766
783
  /***/ (function(module, exports, __webpack_require__) {
767
784
 
768
785
  "use strict";
@@ -791,7 +808,7 @@ var VizCategory;
791
808
 
792
809
  /***/ }),
793
810
 
794
- /***/ 27:
811
+ /***/ 28:
795
812
  /***/ (function(module, exports, __webpack_require__) {
796
813
 
797
814
  "use strict";
@@ -805,31 +822,31 @@ var React = __webpack_require__(1);
805
822
 
806
823
  var lodash_1 = __webpack_require__(2);
807
824
 
808
- var getSettingsFromThemedProps_1 = __webpack_require__(28);
825
+ var getSettingsFromThemedProps_1 = __webpack_require__(29);
809
826
 
810
- var Options_1 = __webpack_require__(29);
827
+ var Options_1 = __webpack_require__(30);
811
828
 
812
- var SanitizeProps_1 = __webpack_require__(30);
829
+ var SanitizeProps_1 = __webpack_require__(31);
813
830
 
814
831
  var styled_components_1 = __webpack_require__(4);
815
832
 
816
- var SplunkVisualization_1 = __webpack_require__(31);
833
+ var SplunkVisualization_1 = __webpack_require__(32);
817
834
 
818
835
  var VizBehavior_1 = __webpack_require__(5);
819
836
 
820
- var getSorting_1 = __webpack_require__(23);
837
+ var getSorting_1 = __webpack_require__(24);
821
838
 
822
- var getPagination_1 = __webpack_require__(24);
839
+ var getPagination_1 = __webpack_require__(25);
823
840
 
824
- var useDeepMemo_1 = __webpack_require__(34);
841
+ var useDeepMemo_1 = __webpack_require__(35);
825
842
 
826
- var JSONSchemaUtils_1 = __webpack_require__(35);
843
+ var JSONSchemaUtils_1 = __webpack_require__(36);
827
844
 
828
- var MissingPropsMessage_1 = __webpack_require__(36);
845
+ var MissingPropsMessage_1 = __webpack_require__(37);
829
846
 
830
- var withEditModeCover_1 = __webpack_require__(37);
847
+ var withEditModeCover_1 = __webpack_require__(38);
831
848
 
832
- var withPlaceholder_1 = __webpack_require__(38);
849
+ var withPlaceholder_1 = __webpack_require__(39);
833
850
 
834
851
  var hocUtils_1 = __webpack_require__(8);
835
852
  /**
@@ -1015,35 +1032,35 @@ exports.default = withDashboardViz;
1015
1032
 
1016
1033
  /***/ }),
1017
1034
 
1018
- /***/ 28:
1035
+ /***/ 29:
1019
1036
  /***/ (function(module, exports) {
1020
1037
 
1021
1038
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1022
1039
 
1023
1040
  /***/ }),
1024
1041
 
1025
- /***/ 29:
1042
+ /***/ 3:
1026
1043
  /***/ (function(module, exports) {
1027
1044
 
1028
- module.exports = require("@splunk/visualization-encoding/Options");
1045
+ module.exports = require("@splunk/ui-utils/i18n");
1029
1046
 
1030
1047
  /***/ }),
1031
1048
 
1032
- /***/ 3:
1049
+ /***/ 30:
1033
1050
  /***/ (function(module, exports) {
1034
1051
 
1035
- module.exports = require("@splunk/ui-utils/i18n");
1052
+ module.exports = require("@splunk/visualization-encoding/Options");
1036
1053
 
1037
1054
  /***/ }),
1038
1055
 
1039
- /***/ 30:
1056
+ /***/ 31:
1040
1057
  /***/ (function(module, exports) {
1041
1058
 
1042
1059
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1043
1060
 
1044
1061
  /***/ }),
1045
1062
 
1046
- /***/ 31:
1063
+ /***/ 32:
1047
1064
  /***/ (function(module, exports, __webpack_require__) {
1048
1065
 
1049
1066
  "use strict";
@@ -1061,7 +1078,7 @@ var T = __webpack_require__(0);
1061
1078
 
1062
1079
  var lodash_1 = __webpack_require__(2);
1063
1080
 
1064
- var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1081
+ var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1065
1082
 
1066
1083
 
1067
1084
  exports.INITIAL_WIDTH = 250;
@@ -1195,7 +1212,7 @@ exports.default = SplunkVisualization;
1195
1212
 
1196
1213
  /***/ }),
1197
1214
 
1198
- /***/ 32:
1215
+ /***/ 33:
1199
1216
  /***/ (function(module, exports, __webpack_require__) {
1200
1217
 
1201
1218
  "use strict";
@@ -1203,7 +1220,7 @@ exports.default = SplunkVisualization;
1203
1220
 
1204
1221
  var _classCallCheck = __webpack_require__(10);
1205
1222
 
1206
- var _createClass = __webpack_require__(16);
1223
+ var _createClass = __webpack_require__(17);
1207
1224
 
1208
1225
  Object.defineProperty(exports, "__esModule", {
1209
1226
  value: true
@@ -1233,7 +1250,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1233
1250
 
1234
1251
  /***/ }),
1235
1252
 
1236
- /***/ 33:
1253
+ /***/ 34:
1237
1254
  /***/ (function(module, exports, __webpack_require__) {
1238
1255
 
1239
1256
  "use strict";
@@ -1247,7 +1264,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1247
1264
 
1248
1265
  /***/ }),
1249
1266
 
1250
- /***/ 34:
1267
+ /***/ 35:
1251
1268
  /***/ (function(module, exports, __webpack_require__) {
1252
1269
 
1253
1270
  "use strict";
@@ -1293,7 +1310,7 @@ exports.useDeepMemo = useDeepMemo;
1293
1310
 
1294
1311
  /***/ }),
1295
1312
 
1296
- /***/ 35:
1313
+ /***/ 36:
1297
1314
  /***/ (function(module, exports, __webpack_require__) {
1298
1315
 
1299
1316
  "use strict";
@@ -1327,7 +1344,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1327
1344
 
1328
1345
  /***/ }),
1329
1346
 
1330
- /***/ 36:
1347
+ /***/ 37:
1331
1348
  /***/ (function(module, exports, __webpack_require__) {
1332
1349
 
1333
1350
  "use strict";
@@ -1408,7 +1425,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1408
1425
 
1409
1426
  /***/ }),
1410
1427
 
1411
- /***/ 37:
1428
+ /***/ 38:
1412
1429
  /***/ (function(module, exports, __webpack_require__) {
1413
1430
 
1414
1431
  "use strict";
@@ -1424,11 +1441,15 @@ var styled_components_1 = __webpack_require__(4);
1424
1441
 
1425
1442
  var hocUtils_1 = __webpack_require__(8);
1426
1443
 
1444
+ var version_1 = __webpack_require__(13);
1445
+
1427
1446
  var Cover = styled_components_1.default.div.withConfig({
1428
1447
  displayName: "withEditModeCover__Cover",
1429
1448
  componentId: "sc-1gsbnxb-0"
1430
1449
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1431
- var Blocker = styled_components_1.default.div.withConfig({
1450
+ var Blocker = styled_components_1.default.div.attrs({
1451
+ 'data-splunk-visualization-version': version_1.version
1452
+ }).withConfig({
1432
1453
  displayName: "withEditModeCover__Blocker",
1433
1454
  componentId: "sc-1gsbnxb-1"
1434
1455
  })(["position:relative;width:100%;height:100%;"]);
@@ -1458,7 +1479,7 @@ exports.default = withEditModeCover;
1458
1479
 
1459
1480
  /***/ }),
1460
1481
 
1461
- /***/ 38:
1482
+ /***/ 39:
1462
1483
  /***/ (function(module, exports, __webpack_require__) {
1463
1484
 
1464
1485
  "use strict";
@@ -1472,7 +1493,7 @@ var React = __webpack_require__(1);
1472
1493
 
1473
1494
  var colorUtils_1 = __webpack_require__(11);
1474
1495
 
1475
- var IconPlaceholder_1 = __webpack_require__(25);
1496
+ var IconPlaceholder_1 = __webpack_require__(26);
1476
1497
 
1477
1498
  var VizBehavior_1 = __webpack_require__(5);
1478
1499
 
@@ -1518,21 +1539,21 @@ exports.default = withPlaceholder;
1518
1539
 
1519
1540
  /***/ }),
1520
1541
 
1521
- /***/ 39:
1542
+ /***/ 4:
1522
1543
  /***/ (function(module, exports) {
1523
1544
 
1524
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
1545
+ module.exports = require("styled-components");
1525
1546
 
1526
1547
  /***/ }),
1527
1548
 
1528
- /***/ 4:
1549
+ /***/ 40:
1529
1550
  /***/ (function(module, exports) {
1530
1551
 
1531
- module.exports = require("styled-components");
1552
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
1532
1553
 
1533
1554
  /***/ }),
1534
1555
 
1535
- /***/ 45:
1556
+ /***/ 46:
1536
1557
  /***/ (function(module, exports, __webpack_require__) {
1537
1558
 
1538
1559
  "use strict";
@@ -1629,7 +1650,7 @@ exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOp
1629
1650
 
1630
1651
  var lodash_1 = __webpack_require__(2);
1631
1652
 
1632
- var schemaUtils_1 = __webpack_require__(14);
1653
+ var schemaUtils_1 = __webpack_require__(15);
1633
1654
 
1634
1655
  var VizBehavior_1 = __webpack_require__(5);
1635
1656
 
@@ -1800,7 +1821,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
1800
1821
 
1801
1822
  /***/ }),
1802
1823
 
1803
- /***/ 73:
1824
+ /***/ 74:
1804
1825
  /***/ (function(module, exports) {
1805
1826
 
1806
1827
  module.exports = require("@splunk/themes");
@@ -1813,7 +1834,7 @@ module.exports = require("@splunk/themes");
1813
1834
  "use strict";
1814
1835
 
1815
1836
 
1816
- var _typeof = __webpack_require__(22);
1837
+ var _typeof = __webpack_require__(23);
1817
1838
 
1818
1839
  Object.defineProperty(exports, "__esModule", {
1819
1840
  value: true