@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/Image.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 = 167);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 168);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -120,7 +120,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 116:
123
+ /***/ 117:
124
124
  /***/ (function(module, exports, __webpack_require__) {
125
125
 
126
126
  "use strict";
@@ -150,21 +150,21 @@ var React = __webpack_require__(1);
150
150
 
151
151
  var i18n_1 = __webpack_require__(3);
152
152
 
153
- var style_1 = __webpack_require__(13);
153
+ var style_1 = __webpack_require__(14);
154
154
 
155
- var RemoteImage_1 = __webpack_require__(117);
155
+ var RemoteImage_1 = __webpack_require__(118);
156
156
 
157
157
  var styled_components_1 = __webpack_require__(4);
158
158
 
159
159
  var T = __webpack_require__(0);
160
160
 
161
- var config_1 = __webpack_require__(168);
161
+ var config_1 = __webpack_require__(169);
162
162
 
163
163
  exports.config = config_1.default;
164
164
 
165
- var withDashboardViz_1 = __webpack_require__(27);
165
+ var withDashboardViz_1 = __webpack_require__(28);
166
166
 
167
- var ImageApi_1 = __webpack_require__(169);
167
+ var ImageApi_1 = __webpack_require__(170);
168
168
 
169
169
  var useEffect = React.useEffect,
170
170
  useRef = React.useRef;
@@ -301,7 +301,7 @@ exports.default = Image;
301
301
 
302
302
  /***/ }),
303
303
 
304
- /***/ 117:
304
+ /***/ 118:
305
305
  /***/ (function(module, exports) {
306
306
 
307
307
  module.exports = require("@splunk/visualizations-shared/RemoteImage");
@@ -322,12 +322,14 @@ var React = __webpack_require__(1);
322
322
 
323
323
  var styled_components_1 = __webpack_require__(4);
324
324
 
325
- var SizeAwareWrapper_1 = __webpack_require__(17);
325
+ var SizeAwareWrapper_1 = __webpack_require__(18);
326
326
 
327
- var style_1 = __webpack_require__(13);
327
+ var style_1 = __webpack_require__(14);
328
328
 
329
329
  var colorUtils_1 = __webpack_require__(11);
330
330
 
331
+ var version_1 = __webpack_require__(13);
332
+
331
333
  var Item = styled_components_1.default.div.attrs(function (_ref) {
332
334
  var width = _ref.width;
333
335
  return {
@@ -383,6 +385,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
383
385
 
384
386
  return React.createElement(FixSizeItem, {
385
387
  "data-test": "fix-size-item",
388
+ "data-splunk-visualization-version": version_1.version,
386
389
  width: width,
387
390
  height: height,
388
391
  backgroundColor: backgroundColor
@@ -405,27 +408,34 @@ exports.default = withFixedSizeContainer;
405
408
  /***/ }),
406
409
 
407
410
  /***/ 13:
408
- /***/ (function(module, exports) {
411
+ /***/ (function(module, exports, __webpack_require__) {
409
412
 
410
- module.exports = require("@splunk/visualizations-shared/style");
413
+ "use strict";
414
+
415
+
416
+ Object.defineProperty(exports, "__esModule", {
417
+ value: true
418
+ });
419
+ exports.version = void 0;
420
+ exports.version = '24.2.0';
411
421
 
412
422
  /***/ }),
413
423
 
414
424
  /***/ 14:
415
425
  /***/ (function(module, exports) {
416
426
 
417
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
427
+ module.exports = require("@splunk/visualizations-shared/style");
418
428
 
419
429
  /***/ }),
420
430
 
421
- /***/ 16:
431
+ /***/ 15:
422
432
  /***/ (function(module, exports) {
423
433
 
424
- module.exports = require("@babel/runtime/helpers/createClass");
434
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
425
435
 
426
436
  /***/ }),
427
437
 
428
- /***/ 167:
438
+ /***/ 168:
429
439
  /***/ (function(module, exports, __webpack_require__) {
430
440
 
431
441
  "use strict";
@@ -455,9 +465,9 @@ Object.defineProperty(exports, "__esModule", {
455
465
  });
456
466
  exports.default = void 0;
457
467
 
458
- __exportStar(__webpack_require__(116), exports);
468
+ __exportStar(__webpack_require__(117), exports);
459
469
 
460
- var Image_1 = __webpack_require__(116);
470
+ var Image_1 = __webpack_require__(117);
461
471
 
462
472
  Object.defineProperty(exports, "default", {
463
473
  enumerable: true,
@@ -468,7 +478,7 @@ Object.defineProperty(exports, "default", {
468
478
 
469
479
  /***/ }),
470
480
 
471
- /***/ 168:
481
+ /***/ 169:
472
482
  /***/ (function(module, exports, __webpack_require__) {
473
483
 
474
484
  "use strict";
@@ -480,11 +490,11 @@ Object.defineProperty(exports, "__esModule", {
480
490
 
481
491
  var i18n_1 = __webpack_require__(3);
482
492
 
483
- var visualization_icons_1 = __webpack_require__(42);
493
+ var visualization_icons_1 = __webpack_require__(43);
484
494
 
485
495
  var VizBehavior_1 = __webpack_require__(5);
486
496
 
487
- var VizCategory_1 = __webpack_require__(26);
497
+ var VizCategory_1 = __webpack_require__(27);
488
498
 
489
499
  var configUtils_1 = __webpack_require__(6);
490
500
 
@@ -570,7 +580,14 @@ exports.default = configUtils_1.enhanceConfig(config);
570
580
 
571
581
  /***/ }),
572
582
 
573
- /***/ 169:
583
+ /***/ 17:
584
+ /***/ (function(module, exports) {
585
+
586
+ module.exports = require("@babel/runtime/helpers/createClass");
587
+
588
+ /***/ }),
589
+
590
+ /***/ 170:
574
591
  /***/ (function(module, exports, __webpack_require__) {
575
592
 
576
593
  "use strict";
@@ -578,7 +595,7 @@ exports.default = configUtils_1.enhanceConfig(config);
578
595
 
579
596
  var _classCallCheck = __webpack_require__(10);
580
597
 
581
- var _createClass = __webpack_require__(16);
598
+ var _createClass = __webpack_require__(17);
582
599
 
583
600
  Object.defineProperty(exports, "__esModule", {
584
601
  value: true
@@ -586,7 +603,7 @@ Object.defineProperty(exports, "__esModule", {
586
603
 
587
604
  var lodash_1 = __webpack_require__(2);
588
605
 
589
- var RemoteImage_1 = __webpack_require__(117);
606
+ var RemoteImage_1 = __webpack_require__(118);
590
607
  /**
591
608
  * Image Api
592
609
  */
@@ -631,7 +648,7 @@ exports.default = ImageApi;
631
648
 
632
649
  /***/ }),
633
650
 
634
- /***/ 17:
651
+ /***/ 18:
635
652
  /***/ (function(module, exports) {
636
653
 
637
654
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
@@ -645,14 +662,14 @@ module.exports = require("lodash");
645
662
 
646
663
  /***/ }),
647
664
 
648
- /***/ 22:
665
+ /***/ 23:
649
666
  /***/ (function(module, exports) {
650
667
 
651
668
  module.exports = require("@babel/runtime/helpers/typeof");
652
669
 
653
670
  /***/ }),
654
671
 
655
- /***/ 23:
672
+ /***/ 24:
656
673
  /***/ (function(module, exports, __webpack_require__) {
657
674
 
658
675
  "use strict";
@@ -669,7 +686,7 @@ var T = __webpack_require__(0);
669
686
 
670
687
  var lodash_1 = __webpack_require__(2);
671
688
 
672
- var DataSource_1 = __webpack_require__(33);
689
+ var DataSource_1 = __webpack_require__(34);
673
690
 
674
691
  exports.SortParamsPropTypes = T.shape({
675
692
  currentSortKey: T.string,
@@ -723,7 +740,7 @@ exports.getSortingParams = getSortingParams;
723
740
 
724
741
  /***/ }),
725
742
 
726
- /***/ 24:
743
+ /***/ 25:
727
744
  /***/ (function(module, exports, __webpack_require__) {
728
745
 
729
746
  "use strict";
@@ -788,7 +805,7 @@ exports.getPaginationParams = getPaginationParams;
788
805
 
789
806
  /***/ }),
790
807
 
791
- /***/ 25:
808
+ /***/ 26:
792
809
  /***/ (function(module, exports, __webpack_require__) {
793
810
 
794
811
  "use strict";
@@ -877,7 +894,7 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
877
894
 
878
895
  /***/ }),
879
896
 
880
- /***/ 26:
897
+ /***/ 27:
881
898
  /***/ (function(module, exports, __webpack_require__) {
882
899
 
883
900
  "use strict";
@@ -906,7 +923,7 @@ var VizCategory;
906
923
 
907
924
  /***/ }),
908
925
 
909
- /***/ 27:
926
+ /***/ 28:
910
927
  /***/ (function(module, exports, __webpack_require__) {
911
928
 
912
929
  "use strict";
@@ -920,31 +937,31 @@ var React = __webpack_require__(1);
920
937
 
921
938
  var lodash_1 = __webpack_require__(2);
922
939
 
923
- var getSettingsFromThemedProps_1 = __webpack_require__(28);
940
+ var getSettingsFromThemedProps_1 = __webpack_require__(29);
924
941
 
925
- var Options_1 = __webpack_require__(29);
942
+ var Options_1 = __webpack_require__(30);
926
943
 
927
- var SanitizeProps_1 = __webpack_require__(30);
944
+ var SanitizeProps_1 = __webpack_require__(31);
928
945
 
929
946
  var styled_components_1 = __webpack_require__(4);
930
947
 
931
- var SplunkVisualization_1 = __webpack_require__(31);
948
+ var SplunkVisualization_1 = __webpack_require__(32);
932
949
 
933
950
  var VizBehavior_1 = __webpack_require__(5);
934
951
 
935
- var getSorting_1 = __webpack_require__(23);
952
+ var getSorting_1 = __webpack_require__(24);
936
953
 
937
- var getPagination_1 = __webpack_require__(24);
954
+ var getPagination_1 = __webpack_require__(25);
938
955
 
939
- var useDeepMemo_1 = __webpack_require__(34);
956
+ var useDeepMemo_1 = __webpack_require__(35);
940
957
 
941
- var JSONSchemaUtils_1 = __webpack_require__(35);
958
+ var JSONSchemaUtils_1 = __webpack_require__(36);
942
959
 
943
- var MissingPropsMessage_1 = __webpack_require__(36);
960
+ var MissingPropsMessage_1 = __webpack_require__(37);
944
961
 
945
- var withEditModeCover_1 = __webpack_require__(37);
962
+ var withEditModeCover_1 = __webpack_require__(38);
946
963
 
947
- var withPlaceholder_1 = __webpack_require__(38);
964
+ var withPlaceholder_1 = __webpack_require__(39);
948
965
 
949
966
  var hocUtils_1 = __webpack_require__(8);
950
967
  /**
@@ -1130,35 +1147,35 @@ exports.default = withDashboardViz;
1130
1147
 
1131
1148
  /***/ }),
1132
1149
 
1133
- /***/ 28:
1150
+ /***/ 29:
1134
1151
  /***/ (function(module, exports) {
1135
1152
 
1136
1153
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1137
1154
 
1138
1155
  /***/ }),
1139
1156
 
1140
- /***/ 29:
1157
+ /***/ 3:
1141
1158
  /***/ (function(module, exports) {
1142
1159
 
1143
- module.exports = require("@splunk/visualization-encoding/Options");
1160
+ module.exports = require("@splunk/ui-utils/i18n");
1144
1161
 
1145
1162
  /***/ }),
1146
1163
 
1147
- /***/ 3:
1164
+ /***/ 30:
1148
1165
  /***/ (function(module, exports) {
1149
1166
 
1150
- module.exports = require("@splunk/ui-utils/i18n");
1167
+ module.exports = require("@splunk/visualization-encoding/Options");
1151
1168
 
1152
1169
  /***/ }),
1153
1170
 
1154
- /***/ 30:
1171
+ /***/ 31:
1155
1172
  /***/ (function(module, exports) {
1156
1173
 
1157
1174
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1158
1175
 
1159
1176
  /***/ }),
1160
1177
 
1161
- /***/ 31:
1178
+ /***/ 32:
1162
1179
  /***/ (function(module, exports, __webpack_require__) {
1163
1180
 
1164
1181
  "use strict";
@@ -1176,7 +1193,7 @@ var T = __webpack_require__(0);
1176
1193
 
1177
1194
  var lodash_1 = __webpack_require__(2);
1178
1195
 
1179
- var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1196
+ var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1180
1197
 
1181
1198
 
1182
1199
  exports.INITIAL_WIDTH = 250;
@@ -1310,7 +1327,7 @@ exports.default = SplunkVisualization;
1310
1327
 
1311
1328
  /***/ }),
1312
1329
 
1313
- /***/ 32:
1330
+ /***/ 33:
1314
1331
  /***/ (function(module, exports, __webpack_require__) {
1315
1332
 
1316
1333
  "use strict";
@@ -1318,7 +1335,7 @@ exports.default = SplunkVisualization;
1318
1335
 
1319
1336
  var _classCallCheck = __webpack_require__(10);
1320
1337
 
1321
- var _createClass = __webpack_require__(16);
1338
+ var _createClass = __webpack_require__(17);
1322
1339
 
1323
1340
  Object.defineProperty(exports, "__esModule", {
1324
1341
  value: true
@@ -1348,7 +1365,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1348
1365
 
1349
1366
  /***/ }),
1350
1367
 
1351
- /***/ 33:
1368
+ /***/ 34:
1352
1369
  /***/ (function(module, exports, __webpack_require__) {
1353
1370
 
1354
1371
  "use strict";
@@ -1362,7 +1379,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1362
1379
 
1363
1380
  /***/ }),
1364
1381
 
1365
- /***/ 34:
1382
+ /***/ 35:
1366
1383
  /***/ (function(module, exports, __webpack_require__) {
1367
1384
 
1368
1385
  "use strict";
@@ -1408,7 +1425,7 @@ exports.useDeepMemo = useDeepMemo;
1408
1425
 
1409
1426
  /***/ }),
1410
1427
 
1411
- /***/ 35:
1428
+ /***/ 36:
1412
1429
  /***/ (function(module, exports, __webpack_require__) {
1413
1430
 
1414
1431
  "use strict";
@@ -1442,7 +1459,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1442
1459
 
1443
1460
  /***/ }),
1444
1461
 
1445
- /***/ 36:
1462
+ /***/ 37:
1446
1463
  /***/ (function(module, exports, __webpack_require__) {
1447
1464
 
1448
1465
  "use strict";
@@ -1523,7 +1540,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1523
1540
 
1524
1541
  /***/ }),
1525
1542
 
1526
- /***/ 37:
1543
+ /***/ 38:
1527
1544
  /***/ (function(module, exports, __webpack_require__) {
1528
1545
 
1529
1546
  "use strict";
@@ -1539,11 +1556,15 @@ var styled_components_1 = __webpack_require__(4);
1539
1556
 
1540
1557
  var hocUtils_1 = __webpack_require__(8);
1541
1558
 
1559
+ var version_1 = __webpack_require__(13);
1560
+
1542
1561
  var Cover = styled_components_1.default.div.withConfig({
1543
1562
  displayName: "withEditModeCover__Cover",
1544
1563
  componentId: "sc-1gsbnxb-0"
1545
1564
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1546
- var Blocker = styled_components_1.default.div.withConfig({
1565
+ var Blocker = styled_components_1.default.div.attrs({
1566
+ 'data-splunk-visualization-version': version_1.version
1567
+ }).withConfig({
1547
1568
  displayName: "withEditModeCover__Blocker",
1548
1569
  componentId: "sc-1gsbnxb-1"
1549
1570
  })(["position:relative;width:100%;height:100%;"]);
@@ -1573,7 +1594,7 @@ exports.default = withEditModeCover;
1573
1594
 
1574
1595
  /***/ }),
1575
1596
 
1576
- /***/ 38:
1597
+ /***/ 39:
1577
1598
  /***/ (function(module, exports, __webpack_require__) {
1578
1599
 
1579
1600
  "use strict";
@@ -1587,7 +1608,7 @@ var React = __webpack_require__(1);
1587
1608
 
1588
1609
  var colorUtils_1 = __webpack_require__(11);
1589
1610
 
1590
- var IconPlaceholder_1 = __webpack_require__(25);
1611
+ var IconPlaceholder_1 = __webpack_require__(26);
1591
1612
 
1592
1613
  var VizBehavior_1 = __webpack_require__(5);
1593
1614
 
@@ -1640,7 +1661,7 @@ module.exports = require("styled-components");
1640
1661
 
1641
1662
  /***/ }),
1642
1663
 
1643
- /***/ 42:
1664
+ /***/ 43:
1644
1665
  /***/ (function(module, exports) {
1645
1666
 
1646
1667
  module.exports = require("@splunk/visualization-icons");
@@ -1713,7 +1734,7 @@ exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOp
1713
1734
 
1714
1735
  var lodash_1 = __webpack_require__(2);
1715
1736
 
1716
- var schemaUtils_1 = __webpack_require__(14);
1737
+ var schemaUtils_1 = __webpack_require__(15);
1717
1738
 
1718
1739
  var VizBehavior_1 = __webpack_require__(5);
1719
1740
 
@@ -1890,7 +1911,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
1890
1911
  "use strict";
1891
1912
 
1892
1913
 
1893
- var _typeof = __webpack_require__(22);
1914
+ var _typeof = __webpack_require__(23);
1894
1915
 
1895
1916
  Object.defineProperty(exports, "__esModule", {
1896
1917
  value: true