@splunk/visualizations 25.5.0 → 25.6.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/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Dark.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_DarkPrisma.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Light.png +0 -0
  4. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
  5. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
  6. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
  7. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
  8. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
  9. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
  10. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
  11. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Value_Highlighting.png +0 -0
  12. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
  13. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
  14. package/Area.js +226 -143
  15. package/Area.js.map +1 -1
  16. package/Bar.js +226 -143
  17. package/Bar.js.map +1 -1
  18. package/Bubble.js +218 -135
  19. package/Bubble.js.map +1 -1
  20. package/ChoroplethSvg.js +217 -139
  21. package/ChoroplethSvg.js.map +1 -1
  22. package/Column.js +226 -143
  23. package/Column.js.map +1 -1
  24. package/Ellipse.js +188 -105
  25. package/Ellipse.js.map +1 -1
  26. package/Events.config.js +3 -0
  27. package/Events.config.js.map +1 -1
  28. package/Events.js +967 -267
  29. package/Events.js.map +1 -1
  30. package/FillerGauge.js +214 -126
  31. package/FillerGauge.js.map +1 -1
  32. package/Image.js +210 -125
  33. package/Image.js.map +1 -1
  34. package/Line.js +231 -143
  35. package/Line.js.map +1 -1
  36. package/LinkGraph.js +601 -524
  37. package/LinkGraph.js.map +1 -1
  38. package/Map.js +484 -406
  39. package/Map.js.map +1 -1
  40. package/Markdown.js +295 -210
  41. package/Markdown.js.map +1 -1
  42. package/MarkerGauge.js +388 -310
  43. package/MarkerGauge.js.map +1 -1
  44. package/ParallelCoordinates.js +469 -391
  45. package/ParallelCoordinates.js.map +1 -1
  46. package/Pie.js +428 -343
  47. package/Pie.js.map +1 -1
  48. package/Punchcard.js +480 -402
  49. package/Punchcard.js.map +1 -1
  50. package/Rectangle.js +437 -352
  51. package/Rectangle.js.map +1 -1
  52. package/Sankey.js +497 -419
  53. package/Sankey.js.map +1 -1
  54. package/Scatter.js +361 -276
  55. package/Scatter.js.map +1 -1
  56. package/SingleValue.js +386 -301
  57. package/SingleValue.js.map +1 -1
  58. package/SingleValueBasic.js +23 -23
  59. package/SingleValueBasic.js.map +1 -1
  60. package/SingleValueIcon.js +385 -300
  61. package/SingleValueIcon.js.map +1 -1
  62. package/SingleValueRadial.js +319 -234
  63. package/SingleValueRadial.js.map +1 -1
  64. package/Table.js +309 -231
  65. package/Table.js.map +1 -1
  66. package/common/EventsDoc.js +3 -3
  67. package/common/EventsDoc.js.map +1 -1
  68. package/common/GaugeMajorTicks.js +2 -2
  69. package/common/GaugeValueMarker.js +2 -2
  70. package/common/OptionsDoc.js +14 -14
  71. package/common/OptionsDoc.js.map +1 -1
  72. package/common/ThemesDoc.js +10 -10
  73. package/common/ThemesDoc.js.map +1 -1
  74. package/common/withDashboardViz.js +122 -42
  75. package/common/withDashboardViz.js.map +1 -1
  76. package/package.json +13 -11
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 = 196);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 207);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -141,7 +141,7 @@ var React = __webpack_require__(1);
141
141
 
142
142
  var styled_components_1 = __webpack_require__(4);
143
143
 
144
- var SizeAwareWrapper_1 = __webpack_require__(20);
144
+ var SizeAwareWrapper_1 = __webpack_require__(21);
145
145
 
146
146
  var style_1 = __webpack_require__(15);
147
147
 
@@ -202,7 +202,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
202
202
 
203
203
  return React.createElement(FixSizeItem, {
204
204
  "data-test": "fix-size-item",
205
- "data-splunk-visualization-version": "25.5.0 - 12c0447a7",
205
+ "data-splunk-visualization-version": "25.6.0 - f5eb3abf9",
206
206
  width: width,
207
207
  height: height,
208
208
  backgroundColor: backgroundColor
@@ -224,7 +224,40 @@ exports.default = withFixedSizeContainer;
224
224
 
225
225
  /***/ }),
226
226
 
227
- /***/ 135:
227
+ /***/ 14:
228
+ /***/ (function(module, exports, __webpack_require__) {
229
+
230
+ "use strict";
231
+
232
+
233
+ Object.defineProperty(exports, "__esModule", {
234
+ value: true
235
+ });
236
+ exports.extendStaticWrapperProps = void 0;
237
+ /**
238
+ * @method extendStaticWrapperProps
239
+ * @param {Object} props
240
+ * @param {DashboardVizType} props.Wrapper
241
+ * @param {DashboardVizType} props.Visualization
242
+ */
243
+
244
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
245
+ var Wrapper = _ref.Wrapper,
246
+ Visualization = _ref.Visualization;
247
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
248
+ extendProperties.forEach(function (prop) {
249
+ if (Visualization[prop]) {
250
+ // eslint-disable-next-line no-param-reassign
251
+ Wrapper[prop] = Visualization[prop];
252
+ }
253
+ });
254
+ };
255
+
256
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
257
+
258
+ /***/ }),
259
+
260
+ /***/ 141:
228
261
  /***/ (function(module, exports, __webpack_require__) {
229
262
 
230
263
  "use strict";
@@ -256,19 +289,19 @@ var i18n_1 = __webpack_require__(2);
256
289
 
257
290
  var style_1 = __webpack_require__(15);
258
291
 
259
- var RemoteImage_1 = __webpack_require__(136);
292
+ var RemoteImage_1 = __webpack_require__(142);
260
293
 
261
294
  var styled_components_1 = __webpack_require__(4);
262
295
 
263
296
  var T = __webpack_require__(0);
264
297
 
265
- var config_1 = __webpack_require__(197);
298
+ var config_1 = __webpack_require__(208);
266
299
 
267
300
  exports.config = config_1.default;
268
301
 
269
- var withDashboardViz_1 = __webpack_require__(32);
302
+ var withDashboardViz_1 = __webpack_require__(35);
270
303
 
271
- var ImageApi_1 = __webpack_require__(198);
304
+ var ImageApi_1 = __webpack_require__(209);
272
305
 
273
306
  var useEffect = React.useEffect,
274
307
  useRef = React.useRef;
@@ -405,46 +438,13 @@ exports.default = Image;
405
438
 
406
439
  /***/ }),
407
440
 
408
- /***/ 136:
441
+ /***/ 142:
409
442
  /***/ (function(module, exports) {
410
443
 
411
444
  module.exports = require("@splunk/visualizations-shared/RemoteImage");
412
445
 
413
446
  /***/ }),
414
447
 
415
- /***/ 14:
416
- /***/ (function(module, exports, __webpack_require__) {
417
-
418
- "use strict";
419
-
420
-
421
- Object.defineProperty(exports, "__esModule", {
422
- value: true
423
- });
424
- exports.extendStaticWrapperProps = void 0;
425
- /**
426
- * @method extendStaticWrapperProps
427
- * @param {Object} props
428
- * @param {DashboardVizType} props.Wrapper
429
- * @param {DashboardVizType} props.Visualization
430
- */
431
-
432
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
433
- var Wrapper = _ref.Wrapper,
434
- Visualization = _ref.Visualization;
435
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
436
- extendProperties.forEach(function (prop) {
437
- if (Visualization[prop]) {
438
- // eslint-disable-next-line no-param-reassign
439
- Wrapper[prop] = Visualization[prop];
440
- }
441
- });
442
- };
443
-
444
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
445
-
446
- /***/ }),
447
-
448
448
  /***/ 15:
449
449
  /***/ (function(module, exports) {
450
450
 
@@ -460,6 +460,13 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
460
460
  /***/ }),
461
461
 
462
462
  /***/ 17:
463
+ /***/ (function(module, exports) {
464
+
465
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
466
+
467
+ /***/ }),
468
+
469
+ /***/ 18:
463
470
  /***/ (function(module, exports, __webpack_require__) {
464
471
 
465
472
  "use strict";
@@ -696,14 +703,21 @@ exports.insertLayout = insertLayout;
696
703
 
697
704
  /***/ }),
698
705
 
699
- /***/ 19:
706
+ /***/ 2:
707
+ /***/ (function(module, exports) {
708
+
709
+ module.exports = require("@splunk/ui-utils/i18n");
710
+
711
+ /***/ }),
712
+
713
+ /***/ 20:
700
714
  /***/ (function(module, exports) {
701
715
 
702
716
  module.exports = require("@babel/runtime/helpers/createClass");
703
717
 
704
718
  /***/ }),
705
719
 
706
- /***/ 196:
720
+ /***/ 207:
707
721
  /***/ (function(module, exports, __webpack_require__) {
708
722
 
709
723
  "use strict";
@@ -733,9 +747,9 @@ Object.defineProperty(exports, "__esModule", {
733
747
  });
734
748
  exports.default = void 0;
735
749
 
736
- __exportStar(__webpack_require__(135), exports);
750
+ __exportStar(__webpack_require__(141), exports);
737
751
 
738
- var Image_1 = __webpack_require__(135);
752
+ var Image_1 = __webpack_require__(141);
739
753
 
740
754
  Object.defineProperty(exports, "default", {
741
755
  enumerable: true,
@@ -746,7 +760,7 @@ Object.defineProperty(exports, "default", {
746
760
 
747
761
  /***/ }),
748
762
 
749
- /***/ 197:
763
+ /***/ 208:
750
764
  /***/ (function(module, exports, __webpack_require__) {
751
765
 
752
766
  "use strict";
@@ -758,13 +772,13 @@ Object.defineProperty(exports, "__esModule", {
758
772
 
759
773
  var i18n_1 = __webpack_require__(2);
760
774
 
761
- var visualization_icons_1 = __webpack_require__(47);
775
+ var visualization_icons_1 = __webpack_require__(51);
762
776
 
763
777
  var VizBehavior_1 = __webpack_require__(6);
764
778
 
765
- var VizCategory_1 = __webpack_require__(31);
779
+ var VizCategory_1 = __webpack_require__(34);
766
780
 
767
- var configUtils_1 = __webpack_require__(17);
781
+ var configUtils_1 = __webpack_require__(18);
768
782
 
769
783
  var dataContract = {
770
784
  requiredDataSources: [],
@@ -847,7 +861,7 @@ exports.default = configUtils_1.enhanceConfig(config);
847
861
 
848
862
  /***/ }),
849
863
 
850
- /***/ 198:
864
+ /***/ 209:
851
865
  /***/ (function(module, exports, __webpack_require__) {
852
866
 
853
867
  "use strict";
@@ -855,7 +869,7 @@ exports.default = configUtils_1.enhanceConfig(config);
855
869
 
856
870
  var _classCallCheck = __webpack_require__(11);
857
871
 
858
- var _createClass = __webpack_require__(19);
872
+ var _createClass = __webpack_require__(20);
859
873
 
860
874
  Object.defineProperty(exports, "__esModule", {
861
875
  value: true
@@ -863,7 +877,7 @@ Object.defineProperty(exports, "__esModule", {
863
877
 
864
878
  var lodash_1 = __webpack_require__(3);
865
879
 
866
- var RemoteImage_1 = __webpack_require__(136);
880
+ var RemoteImage_1 = __webpack_require__(142);
867
881
  /**
868
882
  * Image Api
869
883
  */
@@ -908,42 +922,49 @@ exports.default = ImageApi;
908
922
 
909
923
  /***/ }),
910
924
 
911
- /***/ 2:
925
+ /***/ 21:
912
926
  /***/ (function(module, exports) {
913
927
 
914
- module.exports = require("@splunk/ui-utils/i18n");
928
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
915
929
 
916
930
  /***/ }),
917
931
 
918
- /***/ 20:
932
+ /***/ 24:
919
933
  /***/ (function(module, exports) {
920
934
 
921
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
935
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
922
936
 
923
937
  /***/ }),
924
938
 
925
- /***/ 23:
939
+ /***/ 26:
926
940
  /***/ (function(module, exports) {
927
941
 
928
- module.exports = require("@splunk/visualization-context/TimezoneContext");
942
+ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
929
943
 
930
944
  /***/ }),
931
945
 
932
- /***/ 25:
946
+ /***/ 27:
933
947
  /***/ (function(module, exports) {
934
948
 
935
949
  module.exports = require("@splunk/visualizations-shared/hocUtils");
936
950
 
937
951
  /***/ }),
938
952
 
939
- /***/ 26:
953
+ /***/ 28:
940
954
  /***/ (function(module, exports) {
941
955
 
942
956
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
943
957
 
944
958
  /***/ }),
945
959
 
946
- /***/ 27:
960
+ /***/ 3:
961
+ /***/ (function(module, exports) {
962
+
963
+ module.exports = require("lodash");
964
+
965
+ /***/ }),
966
+
967
+ /***/ 30:
947
968
  /***/ (function(module, exports, __webpack_require__) {
948
969
 
949
970
  "use strict";
@@ -1035,7 +1056,14 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1035
1056
 
1036
1057
  /***/ }),
1037
1058
 
1038
- /***/ 28:
1059
+ /***/ 31:
1060
+ /***/ (function(module, exports) {
1061
+
1062
+ module.exports = require("@splunk/ui-utils/id");
1063
+
1064
+ /***/ }),
1065
+
1066
+ /***/ 32:
1039
1067
  /***/ (function(module, exports, __webpack_require__) {
1040
1068
 
1041
1069
  "use strict";
@@ -1052,7 +1080,7 @@ var T = __webpack_require__(0);
1052
1080
 
1053
1081
  var lodash_1 = __webpack_require__(3);
1054
1082
 
1055
- var DataSource_1 = __webpack_require__(39);
1083
+ var DataSource_1 = __webpack_require__(43);
1056
1084
 
1057
1085
  exports.SortParamsPropTypes = T.shape({
1058
1086
  currentSortKey: T.string,
@@ -1106,7 +1134,7 @@ exports.getSortingParams = getSortingParams;
1106
1134
 
1107
1135
  /***/ }),
1108
1136
 
1109
- /***/ 29:
1137
+ /***/ 33:
1110
1138
  /***/ (function(module, exports, __webpack_require__) {
1111
1139
 
1112
1140
  "use strict";
@@ -1171,14 +1199,7 @@ exports.getPaginationParams = getPaginationParams;
1171
1199
 
1172
1200
  /***/ }),
1173
1201
 
1174
- /***/ 3:
1175
- /***/ (function(module, exports) {
1176
-
1177
- module.exports = require("lodash");
1178
-
1179
- /***/ }),
1180
-
1181
- /***/ 31:
1202
+ /***/ 34:
1182
1203
  /***/ (function(module, exports, __webpack_require__) {
1183
1204
 
1184
1205
  "use strict";
@@ -1207,12 +1228,14 @@ var VizCategory;
1207
1228
 
1208
1229
  /***/ }),
1209
1230
 
1210
- /***/ 32:
1231
+ /***/ 35:
1211
1232
  /***/ (function(module, exports, __webpack_require__) {
1212
1233
 
1213
1234
  "use strict";
1214
1235
 
1215
1236
 
1237
+ var _slicedToArray = __webpack_require__(17);
1238
+
1216
1239
  Object.defineProperty(exports, "__esModule", {
1217
1240
  value: true
1218
1241
  });
@@ -1221,44 +1244,51 @@ var React = __webpack_require__(1);
1221
1244
 
1222
1245
  var lodash_1 = __webpack_require__(3);
1223
1246
 
1224
- var getSettingsFromThemedProps_1 = __webpack_require__(33);
1247
+ var getSettingsFromThemedProps_1 = __webpack_require__(36);
1225
1248
 
1226
- var Options_1 = __webpack_require__(34);
1249
+ var Options_1 = __webpack_require__(37);
1227
1250
 
1228
- var SanitizeProps_1 = __webpack_require__(35);
1251
+ var SanitizeProps_1 = __webpack_require__(38);
1229
1252
 
1230
- var TimezoneContext_1 = __webpack_require__(23);
1253
+ var TimezoneContext_1 = __webpack_require__(24);
1231
1254
 
1232
- var moment_1 = __webpack_require__(36);
1255
+ var moment_1 = __webpack_require__(39);
1256
+
1257
+ var FeatureFlagContext_1 = __webpack_require__(26);
1233
1258
 
1234
1259
  var styled_components_1 = __webpack_require__(4);
1235
1260
 
1236
- var hocUtils_1 = __webpack_require__(25);
1261
+ var hocUtils_1 = __webpack_require__(27);
1262
+
1263
+ var JSONSchemaUtils_1 = __webpack_require__(28);
1237
1264
 
1238
- var JSONSchemaUtils_1 = __webpack_require__(26);
1265
+ var async_dynamic_options_evaluator_1 = __webpack_require__(40);
1239
1266
 
1240
- var SplunkVisualization_1 = __webpack_require__(37);
1267
+ var id_1 = __webpack_require__(31);
1268
+
1269
+ var SplunkVisualization_1 = __webpack_require__(41);
1241
1270
 
1242
1271
  var VizBehavior_1 = __webpack_require__(6);
1243
1272
 
1244
- var getSorting_1 = __webpack_require__(28);
1273
+ var getSorting_1 = __webpack_require__(32);
1274
+
1275
+ var getPagination_1 = __webpack_require__(33);
1245
1276
 
1246
- var getPagination_1 = __webpack_require__(29);
1277
+ var useDeepMemo_1 = __webpack_require__(44);
1247
1278
 
1248
- var useDeepMemo_1 = __webpack_require__(40);
1279
+ var MissingPropsMessage_1 = __webpack_require__(45);
1249
1280
 
1250
- var MissingPropsMessage_1 = __webpack_require__(41);
1281
+ var withEditModeCover_1 = __webpack_require__(46);
1251
1282
 
1252
- var withEditModeCover_1 = __webpack_require__(42);
1283
+ var withPlaceholder_1 = __webpack_require__(47);
1253
1284
 
1254
- var withPlaceholder_1 = __webpack_require__(43);
1285
+ var UUID = id_1.createGUID();
1255
1286
  /**
1256
1287
  * hoc that wraps a pure react visualization in a Dashboard visualization
1257
1288
  * @param {DashboardVizOpts} opts
1258
1289
  * @returns {HOC}
1259
1290
  */
1260
1291
 
1261
-
1262
1292
  var withDashboardViz = function withDashboardViz(opts) {
1263
1293
  var ReactViz = opts.ReactViz,
1264
1294
  vizConfig = opts.vizConfig,
@@ -1318,28 +1348,76 @@ var withDashboardViz = function withDashboardViz(opts) {
1318
1348
 
1319
1349
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1320
1350
 
1351
+ var _React$useState = React.useState({}),
1352
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1353
+ evaluatedOptionsAsync = _React$useState2[0],
1354
+ setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1355
+
1356
+
1357
+ var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
1358
+
1359
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
1360
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
1361
+ visualizationID = _React$useState4[0];
1362
+
1363
+ var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext['visualizations.useWebWorkersForDSL'] && typeof Worker !== 'undefined')),
1364
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
1365
+ useAsyncEvaluatedOptions = _React$useState6[0],
1366
+ setUseAsyncEvaluatedOptions = _React$useState6[1];
1367
+
1321
1368
  evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1322
1369
  try {
1323
- return Options_1.Options.evaluate({
1324
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1325
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1326
- }, dataSources, themeFunc);
1370
+ if (useAsyncEvaluatedOptions) {
1371
+ var optionsToEvaluate = {
1372
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1373
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1374
+ };
1375
+ var asyncDynamicOptionsEvaluatorParams = {
1376
+ visualizationID: visualizationID,
1377
+ props: props,
1378
+ options: optionsToEvaluate,
1379
+ dataSources: dataSources,
1380
+ theme: vizConfig.themes
1381
+ };
1382
+ async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
1383
+ setEvaluatedOptionsAsync(results.results);
1384
+ }).catch(function (e) {
1385
+ // eslint-disable-next-line no-console
1386
+ console.error("unexpected error evaluating options - async: ".concat(e.message));
1387
+ setUseAsyncEvaluatedOptions(false);
1388
+ });
1389
+ } else {
1390
+ return Options_1.Options.evaluate({
1391
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1392
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1393
+ }, dataSources, themeFunc);
1394
+ }
1327
1395
  } catch (e) {
1328
1396
  // eslint-disable-next-line no-console
1329
- console.error("unexpected error evaluating options: + ".concat(e.message));
1397
+ console.error("unexpected error evaluating options: ".concat(e.message));
1330
1398
  return {};
1331
1399
  }
1332
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
1400
+
1401
+ return {};
1402
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
1403
+ var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // useEffect hook needs to be initialized before any early returns
1333
1404
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1334
1405
 
1335
1406
  React.useEffect(function () {
1336
- onComputedProps(evaluatedOptions);
1337
- }); // present warning message if any required props are missing
1407
+ onComputedProps(evaluatedOptionsToUse);
1408
+ });
1409
+ React.useEffect(function () {
1410
+ return function () {
1411
+ if (useAsyncEvaluatedOptions) {
1412
+ async_dynamic_options_evaluator_1.default.reset(visualizationID);
1413
+ }
1414
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
1415
+ }, []); // present warning message if any required props are missing
1338
1416
 
1339
1417
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1340
1418
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1341
1419
  supports = vizConfig.supports;
1342
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptions);
1420
+ var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1343
1421
 
1344
1422
  if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
1345
1423
  return React.createElement(MissingPropsMessage_1.default, {
@@ -1366,7 +1444,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1366
1444
 
1367
1445
  if (Array.isArray(payloadKeys) && payloadKeys.length) {
1368
1446
  payloadKeys.forEach(function (p) {
1369
- payload[p] = evaluatedOptions[p];
1447
+ payload[p] = evaluatedOptionsToUse[p];
1370
1448
  });
1371
1449
  }
1372
1450
 
@@ -1385,7 +1463,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1385
1463
  } // compute pure viz props which are not from options
1386
1464
 
1387
1465
 
1388
- var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptions), eventCallbackProps), {
1466
+ var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
1389
1467
  themeFunc: themeFunc
1390
1468
  }));
1391
1469
  /**
@@ -1405,7 +1483,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1405
1483
 
1406
1484
  var dataSourceMetadata = {};
1407
1485
  var OptionKey = 'paginateDataSourceKey';
1408
- var paginateDataSourceKey = lodash_1.has(evaluatedOptions, OptionKey) && evaluatedOptions[OptionKey] || 'primary';
1486
+ var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1409
1487
 
1410
1488
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1411
1489
  var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
@@ -1435,7 +1513,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1435
1513
  mode: mode,
1436
1514
  width: width,
1437
1515
  height: height
1438
- }, evaluatedOptions, computedVizProps, eventCallbackProps, dataSourceMetadata));
1516
+ }, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
1439
1517
  };
1440
1518
 
1441
1519
  DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
@@ -1453,35 +1531,49 @@ exports.default = withDashboardViz;
1453
1531
 
1454
1532
  /***/ }),
1455
1533
 
1456
- /***/ 33:
1534
+ /***/ 36:
1457
1535
  /***/ (function(module, exports) {
1458
1536
 
1459
1537
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1460
1538
 
1461
1539
  /***/ }),
1462
1540
 
1463
- /***/ 34:
1541
+ /***/ 37:
1464
1542
  /***/ (function(module, exports) {
1465
1543
 
1466
1544
  module.exports = require("@splunk/visualization-encoding/Options");
1467
1545
 
1468
1546
  /***/ }),
1469
1547
 
1470
- /***/ 35:
1548
+ /***/ 38:
1471
1549
  /***/ (function(module, exports) {
1472
1550
 
1473
1551
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1474
1552
 
1475
1553
  /***/ }),
1476
1554
 
1477
- /***/ 36:
1555
+ /***/ 39:
1478
1556
  /***/ (function(module, exports) {
1479
1557
 
1480
1558
  module.exports = require("@splunk/moment");
1481
1559
 
1482
1560
  /***/ }),
1483
1561
 
1484
- /***/ 37:
1562
+ /***/ 4:
1563
+ /***/ (function(module, exports) {
1564
+
1565
+ module.exports = require("styled-components");
1566
+
1567
+ /***/ }),
1568
+
1569
+ /***/ 40:
1570
+ /***/ (function(module, exports) {
1571
+
1572
+ module.exports = require("@splunk/async-dynamic-options-evaluator");
1573
+
1574
+ /***/ }),
1575
+
1576
+ /***/ 41:
1485
1577
  /***/ (function(module, exports, __webpack_require__) {
1486
1578
 
1487
1579
  "use strict";
@@ -1499,7 +1591,7 @@ var T = __webpack_require__(0);
1499
1591
 
1500
1592
  var lodash_1 = __webpack_require__(3);
1501
1593
 
1502
- var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1594
+ var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1503
1595
 
1504
1596
 
1505
1597
  exports.INITIAL_WIDTH = 250;
@@ -1633,7 +1725,7 @@ exports.default = SplunkVisualization;
1633
1725
 
1634
1726
  /***/ }),
1635
1727
 
1636
- /***/ 38:
1728
+ /***/ 42:
1637
1729
  /***/ (function(module, exports, __webpack_require__) {
1638
1730
 
1639
1731
  "use strict";
@@ -1641,7 +1733,7 @@ exports.default = SplunkVisualization;
1641
1733
 
1642
1734
  var _classCallCheck = __webpack_require__(11);
1643
1735
 
1644
- var _createClass = __webpack_require__(19);
1736
+ var _createClass = __webpack_require__(20);
1645
1737
 
1646
1738
  Object.defineProperty(exports, "__esModule", {
1647
1739
  value: true
@@ -1671,7 +1763,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1671
1763
 
1672
1764
  /***/ }),
1673
1765
 
1674
- /***/ 39:
1766
+ /***/ 43:
1675
1767
  /***/ (function(module, exports, __webpack_require__) {
1676
1768
 
1677
1769
  "use strict";
@@ -1685,14 +1777,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1685
1777
 
1686
1778
  /***/ }),
1687
1779
 
1688
- /***/ 4:
1689
- /***/ (function(module, exports) {
1690
-
1691
- module.exports = require("styled-components");
1692
-
1693
- /***/ }),
1694
-
1695
- /***/ 40:
1780
+ /***/ 44:
1696
1781
  /***/ (function(module, exports, __webpack_require__) {
1697
1782
 
1698
1783
  "use strict";
@@ -1738,7 +1823,7 @@ exports.useDeepMemo = useDeepMemo;
1738
1823
 
1739
1824
  /***/ }),
1740
1825
 
1741
- /***/ 41:
1826
+ /***/ 45:
1742
1827
  /***/ (function(module, exports, __webpack_require__) {
1743
1828
 
1744
1829
  "use strict";
@@ -1819,7 +1904,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1819
1904
 
1820
1905
  /***/ }),
1821
1906
 
1822
- /***/ 42:
1907
+ /***/ 46:
1823
1908
  /***/ (function(module, exports, __webpack_require__) {
1824
1909
 
1825
1910
  "use strict";
@@ -1840,7 +1925,7 @@ var Cover = styled_components_1.default.div.withConfig({
1840
1925
  componentId: "sc-1gsbnxb-0"
1841
1926
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1842
1927
  var Blocker = styled_components_1.default.div.attrs({
1843
- 'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
1928
+ 'data-splunk-visualization-version': "25.6.0 - f5eb3abf9"
1844
1929
  }).withConfig({
1845
1930
  displayName: "withEditModeCover__Blocker",
1846
1931
  componentId: "sc-1gsbnxb-1"
@@ -1872,7 +1957,7 @@ exports.default = withEditModeCover;
1872
1957
 
1873
1958
  /***/ }),
1874
1959
 
1875
- /***/ 43:
1960
+ /***/ 47:
1876
1961
  /***/ (function(module, exports, __webpack_require__) {
1877
1962
 
1878
1963
  "use strict";
@@ -1888,7 +1973,7 @@ var colorUtils_1 = __webpack_require__(12);
1888
1973
 
1889
1974
  var variables_1 = __webpack_require__(9);
1890
1975
 
1891
- var IconPlaceholder_1 = __webpack_require__(27);
1976
+ var IconPlaceholder_1 = __webpack_require__(30);
1892
1977
 
1893
1978
  var VizBehavior_1 = __webpack_require__(6);
1894
1979
 
@@ -1937,7 +2022,7 @@ exports.default = withPlaceholder;
1937
2022
 
1938
2023
  /***/ }),
1939
2024
 
1940
- /***/ 47:
2025
+ /***/ 51:
1941
2026
  /***/ (function(module, exports) {
1942
2027
 
1943
2028
  module.exports = require("@splunk/visualization-icons");