@splunk/visualizations-shared 26.4.1 → 27.1.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 (63) hide show
  1. package/.loki/reference/chrome_docker_SizeAwareWrapper_50_parent.png +0 -0
  2. package/.loki/reference/chrome_docker_SizeAwareWrapper_Fix_size_container.png +0 -0
  3. package/.loki/reference/chrome_docker_SizeAwareWrapper_Flex_layout_container.png +0 -0
  4. package/.loki/reference/chrome_docker_SizeAwareWrapper_Flex_layout_container_with_extra_wrapper.png +0 -0
  5. package/Downloader.js +164 -403
  6. package/Downloader.js.map +7 -1
  7. package/FileDownloader.js +121 -557
  8. package/FileDownloader.js.map +7 -1
  9. package/JSONSchemaUtils.js +58 -134
  10. package/JSONSchemaUtils.js.map +7 -1
  11. package/Message.js +105 -270
  12. package/Message.js.map +7 -1
  13. package/RemoteIcon.js +272 -736
  14. package/RemoteIcon.js.map +7 -1
  15. package/RemoteImage.js +190 -458
  16. package/RemoteImage.js.map +7 -1
  17. package/SanitizeProps.js +117 -238
  18. package/SanitizeProps.js.map +7 -1
  19. package/SizeAwareWrapper.js +108 -306
  20. package/SizeAwareWrapper.js.map +7 -1
  21. package/SizeAwareWrapperDeprecated.js +117 -326
  22. package/SizeAwareWrapperDeprecated.js.map +7 -1
  23. package/VisualizationDocPage.js +212 -461
  24. package/VisualizationDocPage.js.map +7 -1
  25. package/colorConstants.js +81 -132
  26. package/colorConstants.js.map +7 -1
  27. package/colorUtils.js +47 -134
  28. package/colorUtils.js.map +7 -1
  29. package/configUtils.js +28 -112
  30. package/configUtils.js.map +7 -1
  31. package/console.js +45 -183
  32. package/console.js.map +7 -1
  33. package/dataSourceUtils.js +45 -140
  34. package/dataSourceUtils.js.map +7 -1
  35. package/domUtils.js +58 -122
  36. package/domUtils.js.map +7 -1
  37. package/hocUtils.js +45 -122
  38. package/hocUtils.js.map +7 -1
  39. package/i18n.js +168 -323
  40. package/i18n.js.map +7 -1
  41. package/iconUtils.js +47 -178
  42. package/iconUtils.js.map +7 -1
  43. package/mapUtils.js +45 -122
  44. package/mapUtils.js.map +7 -1
  45. package/numberUtils.js +101 -275
  46. package/numberUtils.js.map +7 -1
  47. package/package.json +18 -22
  48. package/previewVizMessage.js +28 -108
  49. package/previewVizMessage.js.map +7 -1
  50. package/propUtils.js +88 -212
  51. package/propUtils.js.map +7 -1
  52. package/schemaUtils.js +58 -185
  53. package/schemaUtils.js.map +7 -1
  54. package/simpleXMLOptions.js +142 -225
  55. package/simpleXMLOptions.js.map +7 -1
  56. package/style.js +65 -168
  57. package/style.js.map +7 -1
  58. package/testHelper.js +247 -303
  59. package/testHelper.js.map +7 -1
  60. package/themeUtils.js +63 -142
  61. package/themeUtils.js.map +7 -1
  62. package/trellisUtils.js +108 -276
  63. package/trellisUtils.js.map +7 -1
package/configUtils.js CHANGED
@@ -1,115 +1,31 @@
1
- /*!
2
- * Copyright © 2024 Splunk Inc.
3
- * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
- * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
- */
6
- module.exports =
7
- /******/ (function(modules) { // webpackBootstrap
8
- /******/ // The module cache
9
- /******/ var installedModules = {};
10
- /******/
11
- /******/ // The require function
12
- /******/ function __webpack_require__(moduleId) {
13
- /******/
14
- /******/ // Check if module is in cache
15
- /******/ if(installedModules[moduleId]) {
16
- /******/ return installedModules[moduleId].exports;
17
- /******/ }
18
- /******/ // Create a new module (and put it into the cache)
19
- /******/ var module = installedModules[moduleId] = {
20
- /******/ i: moduleId,
21
- /******/ l: false,
22
- /******/ exports: {}
23
- /******/ };
24
- /******/
25
- /******/ // Execute the module function
26
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
27
- /******/
28
- /******/ // Flag the module as loaded
29
- /******/ module.l = true;
30
- /******/
31
- /******/ // Return the exports of the module
32
- /******/ return module.exports;
33
- /******/ }
34
- /******/
35
- /******/
36
- /******/ // expose the modules object (__webpack_modules__)
37
- /******/ __webpack_require__.m = modules;
38
- /******/
39
- /******/ // expose the module cache
40
- /******/ __webpack_require__.c = installedModules;
41
- /******/
42
- /******/ // define getter function for harmony exports
43
- /******/ __webpack_require__.d = function(exports, name, getter) {
44
- /******/ if(!__webpack_require__.o(exports, name)) {
45
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
46
- /******/ }
47
- /******/ };
48
- /******/
49
- /******/ // define __esModule on exports
50
- /******/ __webpack_require__.r = function(exports) {
51
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
52
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
53
- /******/ }
54
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
55
- /******/ };
56
- /******/
57
- /******/ // create a fake namespace object
58
- /******/ // mode & 1: value is a module id, require it
59
- /******/ // mode & 2: merge all properties of value into the ns
60
- /******/ // mode & 4: return value when already ns object
61
- /******/ // mode & 8|1: behave like require
62
- /******/ __webpack_require__.t = function(value, mode) {
63
- /******/ if(mode & 1) value = __webpack_require__(value);
64
- /******/ if(mode & 8) return value;
65
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
66
- /******/ var ns = Object.create(null);
67
- /******/ __webpack_require__.r(ns);
68
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
69
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
70
- /******/ return ns;
71
- /******/ };
72
- /******/
73
- /******/ // getDefaultExport function for compatibility with non-harmony modules
74
- /******/ __webpack_require__.n = function(module) {
75
- /******/ var getter = module && module.__esModule ?
76
- /******/ function getDefault() { return module['default']; } :
77
- /******/ function getModuleExports() { return module; };
78
- /******/ __webpack_require__.d(getter, 'a', getter);
79
- /******/ return getter;
80
- /******/ };
81
- /******/
82
- /******/ // Object.prototype.hasOwnProperty.call
83
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
84
- /******/
85
- /******/ // __webpack_public_path__
86
- /******/ __webpack_require__.p = "";
87
- /******/
88
- /******/
89
- /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 51);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 51:
96
- /***/ (function(module, exports, __webpack_require__) {
97
-
98
- "use strict";
99
-
100
-
101
- Object.defineProperty(exports, "__esModule", {
102
- value: true
1
+ /* Copyright © 2020 Splunk Inc.
2
+ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
3
+ in part without a valid written license from Splunk Inc. is PROHIBITED. */
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/configUtils.ts
23
+ var configUtils_exports = {};
24
+ __export(configUtils_exports, {
25
+ isDynamicOption: () => isDynamicOption
103
26
  });
104
- exports.isDynamicOption = void 0;
105
-
27
+ module.exports = __toCommonJS(configUtils_exports);
106
28
  function isDynamicOption(option) {
107
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
29
+ return option && typeof option === "string" && option.trim().startsWith(">") || false;
108
30
  }
109
-
110
- exports.isDynamicOption = isDynamicOption;
111
-
112
- /***/ })
113
-
114
- /******/ });
115
- //# sourceMappingURL=configUtils.js.map
31
+ //# sourceMappingURL=configUtils.js.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/configUtils.ts"],"names":[],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;AClFA,SAAS,eAAT,CAAyB,MAAzB,EAAwC;AACpC,SAAQ,MAAM,IAAI,OAAO,MAAP,KAAkB,QAA5B,IAAwC,MAAM,CAAC,IAAP,GAAc,UAAd,CAAyB,GAAzB,CAAzC,IAA2E,KAAlF;AACH;;AAEQ,0C","file":"configUtils.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 51);\n","function isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\nexport { isDynamicOption };\n"],"sourceRoot":""}
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/configUtils.ts"],
4
+ "sourcesContent": ["function isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\nexport { isDynamicOption };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,gBAAgB,QAA0B;AAC/C,SAAQ,UAAU,OAAO,WAAW,YAAY,OAAO,KAAK,EAAE,WAAW,GAAG,KAAM;AACtF;",
6
+ "names": []
7
+ }
package/console.js CHANGED
@@ -1,190 +1,52 @@
1
- /*!
2
- * Copyright © 2024 Splunk Inc.
3
- * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
- * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
- */
6
- module.exports =
7
- /******/ (function(modules) { // webpackBootstrap
8
- /******/ // The module cache
9
- /******/ var installedModules = {};
10
- /******/
11
- /******/ // The require function
12
- /******/ function __webpack_require__(moduleId) {
13
- /******/
14
- /******/ // Check if module is in cache
15
- /******/ if(installedModules[moduleId]) {
16
- /******/ return installedModules[moduleId].exports;
17
- /******/ }
18
- /******/ // Create a new module (and put it into the cache)
19
- /******/ var module = installedModules[moduleId] = {
20
- /******/ i: moduleId,
21
- /******/ l: false,
22
- /******/ exports: {}
23
- /******/ };
24
- /******/
25
- /******/ // Execute the module function
26
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
27
- /******/
28
- /******/ // Flag the module as loaded
29
- /******/ module.l = true;
30
- /******/
31
- /******/ // Return the exports of the module
32
- /******/ return module.exports;
33
- /******/ }
34
- /******/
35
- /******/
36
- /******/ // expose the modules object (__webpack_modules__)
37
- /******/ __webpack_require__.m = modules;
38
- /******/
39
- /******/ // expose the module cache
40
- /******/ __webpack_require__.c = installedModules;
41
- /******/
42
- /******/ // define getter function for harmony exports
43
- /******/ __webpack_require__.d = function(exports, name, getter) {
44
- /******/ if(!__webpack_require__.o(exports, name)) {
45
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
46
- /******/ }
47
- /******/ };
48
- /******/
49
- /******/ // define __esModule on exports
50
- /******/ __webpack_require__.r = function(exports) {
51
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
52
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
53
- /******/ }
54
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
55
- /******/ };
56
- /******/
57
- /******/ // create a fake namespace object
58
- /******/ // mode & 1: value is a module id, require it
59
- /******/ // mode & 2: merge all properties of value into the ns
60
- /******/ // mode & 4: return value when already ns object
61
- /******/ // mode & 8|1: behave like require
62
- /******/ __webpack_require__.t = function(value, mode) {
63
- /******/ if(mode & 1) value = __webpack_require__(value);
64
- /******/ if(mode & 8) return value;
65
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
66
- /******/ var ns = Object.create(null);
67
- /******/ __webpack_require__.r(ns);
68
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
69
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
70
- /******/ return ns;
71
- /******/ };
72
- /******/
73
- /******/ // getDefaultExport function for compatibility with non-harmony modules
74
- /******/ __webpack_require__.n = function(module) {
75
- /******/ var getter = module && module.__esModule ?
76
- /******/ function getDefault() { return module['default']; } :
77
- /******/ function getModuleExports() { return module; };
78
- /******/ __webpack_require__.d(getter, 'a', getter);
79
- /******/ return getter;
80
- /******/ };
81
- /******/
82
- /******/ // Object.prototype.hasOwnProperty.call
83
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
84
- /******/
85
- /******/ // __webpack_public_path__
86
- /******/ __webpack_require__.p = "";
87
- /******/
88
- /******/
89
- /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 52);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 21:
96
- /***/ (function(module, exports) {
97
-
98
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
99
-
100
- /***/ }),
101
-
102
- /***/ 22:
103
- /***/ (function(module, exports) {
104
-
105
- module.exports = require("@babel/runtime/helpers/typeof");
106
-
107
- /***/ }),
108
-
109
- /***/ 52:
110
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
111
-
112
- "use strict";
113
- __webpack_require__.r(__webpack_exports__);
114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logfmt", function() { return logfmt; });
115
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
116
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
117
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
118
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
119
-
120
-
121
- var hasWindowConsole = (typeof window === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(window)) === 'object' && 'console' in window;
122
-
123
- var hasConsoleMethod = function hasConsoleMethod(method) {
124
- return hasWindowConsole && typeof window.console[method] === 'function';
1
+ /* Copyright © 2020 Splunk Inc.
2
+ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
3
+ in part without a valid written license from Splunk Inc. is PROHIBITED. */
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/console.js
23
+ var console_exports = {};
24
+ __export(console_exports, {
25
+ default: () => console_default,
26
+ logfmt: () => logfmt
27
+ });
28
+ module.exports = __toCommonJS(console_exports);
29
+ var hasWindowConsole = typeof window === "object" && "console" in window;
30
+ var hasConsoleMethod = (method) => hasWindowConsole && typeof window.console[method] === "function";
31
+ var noop = () => {
125
32
  };
126
-
127
- var noop = function noop() {};
128
-
129
33
  var console = {
130
- log: hasConsoleMethod('log') ? function () {
131
- var _window$console;
132
-
133
- return (_window$console = window.console).log.apply(_window$console, arguments);
134
- } : noop,
135
- debug: hasConsoleMethod('debug') ? function () {
136
- var _window$console2;
137
-
138
- return (_window$console2 = window.console).debug.apply(_window$console2, arguments);
139
- } : noop,
140
- info: hasConsoleMethod('info') ? function () {
141
- var _window$console3;
142
-
143
- return (_window$console3 = window.console).info.apply(_window$console3, arguments);
144
- } : noop,
145
- warn: hasConsoleMethod('warn') ? function () {
146
- var _window$console4;
147
-
148
- return (_window$console4 = window.console).warn.apply(_window$console4, arguments);
149
- } : noop,
150
- error: hasConsoleMethod('error') ? function () {
151
- var _window$console5;
152
-
153
- return (_window$console5 = window.console).error.apply(_window$console5, arguments);
154
- } : noop,
155
- group: hasConsoleMethod('group') ? function () {
156
- var _window$console6;
157
-
158
- return (_window$console6 = window.console).group.apply(_window$console6, arguments);
159
- } : noop,
160
- groupCollapsed: hasConsoleMethod('groupCollapsed') ? function () {
161
- var _window$console7;
162
-
163
- return (_window$console7 = window.console).groupCollapsed.apply(_window$console7, arguments);
164
- } : noop,
165
- groupEnd: hasConsoleMethod('groupEnd') ? function () {
166
- var _window$console8;
167
-
168
- return (_window$console8 = window.console).groupEnd.apply(_window$console8, arguments);
169
- } : noop,
170
- logWithDetails: function logWithDetails(message, lines) {
34
+ log: hasConsoleMethod("log") ? (...args) => window.console.log(...args) : noop,
35
+ debug: hasConsoleMethod("debug") ? (...args) => window.console.debug(...args) : noop,
36
+ info: hasConsoleMethod("info") ? (...args) => window.console.info(...args) : noop,
37
+ warn: hasConsoleMethod("warn") ? (...args) => window.console.warn(...args) : noop,
38
+ error: hasConsoleMethod("error") ? (...args) => window.console.error(...args) : noop,
39
+ group: hasConsoleMethod("group") ? (...args) => window.console.group(...args) : noop,
40
+ groupCollapsed: hasConsoleMethod("groupCollapsed") ? (...args) => window.console.groupCollapsed(...args) : noop,
41
+ groupEnd: hasConsoleMethod("groupEnd") ? (...args) => window.console.groupEnd(...args) : noop,
42
+ logWithDetails(message, lines) {
171
43
  console.groupCollapsed(message);
172
- lines.forEach(function (line) {
173
- return Array.isArray(line) ? console.log.apply(console, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(line)) : console.log(line);
174
- });
44
+ lines.forEach((line) => Array.isArray(line) ? console.log(...line) : console.log(line));
175
45
  console.groupEnd();
176
46
  }
177
47
  };
178
- /* harmony default export */ __webpack_exports__["default"] = (console);
179
- function logfmt(strings) {
180
- for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
181
- values[_key - 1] = arguments[_key];
182
- }
183
-
184
- return [strings.join('%o')].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(values || []));
48
+ var console_default = console;
49
+ function logfmt(strings, ...values) {
50
+ return [strings.join("%o"), ...values || []];
185
51
  }
186
-
187
- /***/ })
188
-
189
- /******/ });
190
- //# sourceMappingURL=console.js.map
52
+ //# sourceMappingURL=console.js.map
package/console.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///external \"@babel/runtime/helpers/typeof\"","webpack:///./src/console.js"],"names":["hasWindowConsole","hasConsoleMethod","window","noop","console","log","debug","info","warn","error","group","groupCollapsed","groupEnd","logWithDetails","lines","Array","values","strings"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,qE;;;;;;;ACAA,0D;;;;;;;;;;;;;;;;ACAA,IAAMA,gBAAgB,GAAG,6IAA8B,aAAvD;;AACA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,SAAM;AAAA,SAAID,gBAAgB,IAAI,OAAOE,MAAM,CAANA,QAAP,MAAOA,CAAP,KAAxB;AAA/B;;AACA,IAAMC,IAAI,GAAG,SAAPA,IAAO,GAAM,CAAnB;;AAEA,IAAMC,OAAO,GAAG;AACZC,KAAG,EAAE,gBAAgB,CAAhB,KAAgB,CAAhB,GAA0B;AAAA;;AAAA,WAAa,yBAAM,CAAN,oCAAb,SAAa,CAAb;AAA1B,MADO;AAEZC,OAAK,EAAE,gBAAgB,CAAhB,OAAgB,CAAhB,GAA4B;AAAA;;AAAA,WAAa,0BAAM,CAAN,uCAAb,SAAa,CAAb;AAA5B,MAFK;AAGZC,MAAI,EAAE,gBAAgB,CAAhB,MAAgB,CAAhB,GAA2B;AAAA;;AAAA,WAAa,0BAAM,CAAN,sCAAb,SAAa,CAAb;AAA3B,MAHM;AAIZC,MAAI,EAAE,gBAAgB,CAAhB,MAAgB,CAAhB,GAA2B;AAAA;;AAAA,WAAa,0BAAM,CAAN,sCAAb,SAAa,CAAb;AAA3B,MAJM;AAKZC,OAAK,EAAE,gBAAgB,CAAhB,OAAgB,CAAhB,GAA4B;AAAA;;AAAA,WAAa,0BAAM,CAAN,uCAAb,SAAa,CAAb;AAA5B,MALK;AAMZC,OAAK,EAAE,gBAAgB,CAAhB,OAAgB,CAAhB,GAA4B;AAAA;;AAAA,WAAa,0BAAM,CAAN,uCAAb,SAAa,CAAb;AAA5B,MANK;AAOZC,gBAAc,EAAE,gBAAgB,CAAhB,gBAAgB,CAAhB,GACV;AAAA;;AAAA,WAAa,0BAAM,CAAN,gDAAb,SAAa,CAAb;AADU,MAPJ;AAUZC,UAAQ,EAAE,gBAAgB,CAAhB,UAAgB,CAAhB,GAA+B;AAAA;;AAAA,WAAa,0BAAM,CAAN,0CAAb,SAAa,CAAb;AAA/B,MAVE;AAYZC,gBAZY,0CAYmB;AAC3BT,WAAO,CAAPA;AACAU,SAAK,CAALA,QAAc,gBAAI;AAAA,aAAKC,KAAK,CAALA,gBAAsBX,OAAO,CAAPA,mBAAO,gFAA7BW,IAA6B,CAAPX,CAAtBW,GAA6CX,OAAO,CAAPA,IAAlD,IAAkDA,CAAlD;AAAlBU;AACAV,WAAO,CAAPA;AACH;AAhBW,CAAhB;AAmBA;AAEO,yBAAoC;AAAA,oCAARY,MAAQ;AAARA,UAAQ,UAARA,GAAQ,eAARA;AAAQ;;AACvC,UAAQC,OAAO,CAAPA,KAAR,IAAQA,CAAR,yFAAgCD,MAAM,IAAtC;AACH,C","file":"console.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 52);\n","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@babel/runtime/helpers/typeof\");","const hasWindowConsole = typeof window === 'object' && 'console' in window;\nconst hasConsoleMethod = method => hasWindowConsole && typeof window.console[method] === 'function';\nconst noop = () => {};\n\nconst console = {\n log: hasConsoleMethod('log') ? (...args) => window.console.log(...args) : noop,\n debug: hasConsoleMethod('debug') ? (...args) => window.console.debug(...args) : noop,\n info: hasConsoleMethod('info') ? (...args) => window.console.info(...args) : noop,\n warn: hasConsoleMethod('warn') ? (...args) => window.console.warn(...args) : noop,\n error: hasConsoleMethod('error') ? (...args) => window.console.error(...args) : noop,\n group: hasConsoleMethod('group') ? (...args) => window.console.group(...args) : noop,\n groupCollapsed: hasConsoleMethod('groupCollapsed')\n ? (...args) => window.console.groupCollapsed(...args)\n : noop,\n groupEnd: hasConsoleMethod('groupEnd') ? (...args) => window.console.groupEnd(...args) : noop,\n\n logWithDetails(message, lines) {\n console.groupCollapsed(message);\n lines.forEach(line => (Array.isArray(line) ? console.log(...line) : console.log(line)));\n console.groupEnd();\n },\n};\n\nexport default console;\n\nexport function logfmt(strings, ...values) {\n return [strings.join('%o'), ...(values || [])];\n}\n"],"sourceRoot":""}
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/console.js"],
4
+ "sourcesContent": ["const hasWindowConsole = typeof window === 'object' && 'console' in window;\nconst hasConsoleMethod = method => hasWindowConsole && typeof window.console[method] === 'function';\nconst noop = () => {};\n\nconst console = {\n log: hasConsoleMethod('log') ? (...args) => window.console.log(...args) : noop,\n debug: hasConsoleMethod('debug') ? (...args) => window.console.debug(...args) : noop,\n info: hasConsoleMethod('info') ? (...args) => window.console.info(...args) : noop,\n warn: hasConsoleMethod('warn') ? (...args) => window.console.warn(...args) : noop,\n error: hasConsoleMethod('error') ? (...args) => window.console.error(...args) : noop,\n group: hasConsoleMethod('group') ? (...args) => window.console.group(...args) : noop,\n groupCollapsed: hasConsoleMethod('groupCollapsed')\n ? (...args) => window.console.groupCollapsed(...args)\n : noop,\n groupEnd: hasConsoleMethod('groupEnd') ? (...args) => window.console.groupEnd(...args) : noop,\n\n logWithDetails(message, lines) {\n console.groupCollapsed(message);\n lines.forEach(line => (Array.isArray(line) ? console.log(...line) : console.log(line)));\n console.groupEnd();\n },\n};\n\nexport default console;\n\nexport function logfmt(strings, ...values) {\n return [strings.join('%o'), ...(values || [])];\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,mBAAmB,OAAO,WAAW,YAAY,aAAa;AACpE,IAAM,mBAAmB,YAAU,oBAAoB,OAAO,OAAO,QAAQ,MAAM,MAAM;AACzF,IAAM,OAAO,MAAM;AAAC;AAEpB,IAAM,UAAU;AAAA,EACZ,KAAK,iBAAiB,KAAK,IAAI,IAAI,SAAS,OAAO,QAAQ,IAAI,GAAG,IAAI,IAAI;AAAA,EAC1E,OAAO,iBAAiB,OAAO,IAAI,IAAI,SAAS,OAAO,QAAQ,MAAM,GAAG,IAAI,IAAI;AAAA,EAChF,MAAM,iBAAiB,MAAM,IAAI,IAAI,SAAS,OAAO,QAAQ,KAAK,GAAG,IAAI,IAAI;AAAA,EAC7E,MAAM,iBAAiB,MAAM,IAAI,IAAI,SAAS,OAAO,QAAQ,KAAK,GAAG,IAAI,IAAI;AAAA,EAC7E,OAAO,iBAAiB,OAAO,IAAI,IAAI,SAAS,OAAO,QAAQ,MAAM,GAAG,IAAI,IAAI;AAAA,EAChF,OAAO,iBAAiB,OAAO,IAAI,IAAI,SAAS,OAAO,QAAQ,MAAM,GAAG,IAAI,IAAI;AAAA,EAChF,gBAAgB,iBAAiB,gBAAgB,IAC3C,IAAI,SAAS,OAAO,QAAQ,eAAe,GAAG,IAAI,IAClD;AAAA,EACN,UAAU,iBAAiB,UAAU,IAAI,IAAI,SAAS,OAAO,QAAQ,SAAS,GAAG,IAAI,IAAI;AAAA,EAEzF,eAAe,SAAS,OAAO;AAC3B,YAAQ,eAAe,OAAO;AAC9B,UAAM,QAAQ,UAAS,MAAM,QAAQ,IAAI,IAAI,QAAQ,IAAI,GAAG,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAE;AACtF,YAAQ,SAAS;AAAA,EACrB;AACJ;AAEA,IAAO,kBAAQ;AAER,SAAS,OAAO,YAAY,QAAQ;AACvC,SAAO,CAAC,QAAQ,KAAK,IAAI,GAAG,GAAI,UAAU,CAAC,CAAE;AACjD;",
6
+ "names": []
7
+ }
@@ -1,152 +1,57 @@
1
- /*!
2
- * Copyright © 2024 Splunk Inc.
3
- * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
- * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
- */
6
- module.exports =
7
- /******/ (function(modules) { // webpackBootstrap
8
- /******/ // The module cache
9
- /******/ var installedModules = {};
10
- /******/
11
- /******/ // The require function
12
- /******/ function __webpack_require__(moduleId) {
13
- /******/
14
- /******/ // Check if module is in cache
15
- /******/ if(installedModules[moduleId]) {
16
- /******/ return installedModules[moduleId].exports;
17
- /******/ }
18
- /******/ // Create a new module (and put it into the cache)
19
- /******/ var module = installedModules[moduleId] = {
20
- /******/ i: moduleId,
21
- /******/ l: false,
22
- /******/ exports: {}
23
- /******/ };
24
- /******/
25
- /******/ // Execute the module function
26
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
27
- /******/
28
- /******/ // Flag the module as loaded
29
- /******/ module.l = true;
30
- /******/
31
- /******/ // Return the exports of the module
32
- /******/ return module.exports;
33
- /******/ }
34
- /******/
35
- /******/
36
- /******/ // expose the modules object (__webpack_modules__)
37
- /******/ __webpack_require__.m = modules;
38
- /******/
39
- /******/ // expose the module cache
40
- /******/ __webpack_require__.c = installedModules;
41
- /******/
42
- /******/ // define getter function for harmony exports
43
- /******/ __webpack_require__.d = function(exports, name, getter) {
44
- /******/ if(!__webpack_require__.o(exports, name)) {
45
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
46
- /******/ }
47
- /******/ };
48
- /******/
49
- /******/ // define __esModule on exports
50
- /******/ __webpack_require__.r = function(exports) {
51
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
52
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
53
- /******/ }
54
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
55
- /******/ };
56
- /******/
57
- /******/ // create a fake namespace object
58
- /******/ // mode & 1: value is a module id, require it
59
- /******/ // mode & 2: merge all properties of value into the ns
60
- /******/ // mode & 4: return value when already ns object
61
- /******/ // mode & 8|1: behave like require
62
- /******/ __webpack_require__.t = function(value, mode) {
63
- /******/ if(mode & 1) value = __webpack_require__(value);
64
- /******/ if(mode & 8) return value;
65
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
66
- /******/ var ns = Object.create(null);
67
- /******/ __webpack_require__.r(ns);
68
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
69
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
70
- /******/ return ns;
71
- /******/ };
72
- /******/
73
- /******/ // getDefaultExport function for compatibility with non-harmony modules
74
- /******/ __webpack_require__.n = function(module) {
75
- /******/ var getter = module && module.__esModule ?
76
- /******/ function getDefault() { return module['default']; } :
77
- /******/ function getModuleExports() { return module; };
78
- /******/ __webpack_require__.d(getter, 'a', getter);
79
- /******/ return getter;
80
- /******/ };
81
- /******/
82
- /******/ // Object.prototype.hasOwnProperty.call
83
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
84
- /******/
85
- /******/ // __webpack_public_path__
86
- /******/ __webpack_require__.p = "";
87
- /******/
88
- /******/
89
- /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 53);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 53:
96
- /***/ (function(module, exports, __webpack_require__) {
97
-
98
- "use strict";
99
-
1
+ /* Copyright © 2020 Splunk Inc.
2
+ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
3
+ in part without a valid written license from Splunk Inc. is PROHIBITED. */
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
100
21
 
101
- Object.defineProperty(exports, "__esModule", {
102
- value: true
22
+ // src/dataSourceUtils.ts
23
+ var dataSourceUtils_exports = {};
24
+ __export(dataSourceUtils_exports, {
25
+ DataSourceState: () => DataSourceState,
26
+ getDataSourceStateInfo: () => getDataSourceStateInfo
103
27
  });
104
- exports.getDataSourceStateInfo = exports.DataSourceState = void 0;
105
- var DataSourceState;
106
-
107
- (function (DataSourceState) {
108
- DataSourceState[DataSourceState["NONEXISTENT"] = 0] = "NONEXISTENT";
109
- DataSourceState[DataSourceState["ERROR"] = 1] = "ERROR";
110
- DataSourceState[DataSourceState["LOADING"] = 2] = "LOADING";
111
- DataSourceState[DataSourceState["OK"] = 3] = "OK";
112
- })(DataSourceState = exports.DataSourceState || (exports.DataSourceState = {}));
113
-
114
- var getDataSourceState = function getDataSourceState(dataSource) {
28
+ module.exports = __toCommonJS(dataSourceUtils_exports);
29
+ var DataSourceState = /* @__PURE__ */ ((DataSourceState2) => {
30
+ DataSourceState2[DataSourceState2["NONEXISTENT"] = 0] = "NONEXISTENT";
31
+ DataSourceState2[DataSourceState2["ERROR"] = 1] = "ERROR";
32
+ DataSourceState2[DataSourceState2["LOADING"] = 2] = "LOADING";
33
+ DataSourceState2[DataSourceState2["OK"] = 3] = "OK";
34
+ return DataSourceState2;
35
+ })(DataSourceState || {});
36
+ var getDataSourceState = (dataSource) => {
115
37
  if (!dataSource) {
116
- return DataSourceState.NONEXISTENT;
38
+ return 0 /* NONEXISTENT */;
117
39
  }
118
-
119
- var error = dataSource.error,
120
- data = dataSource.data;
121
-
40
+ const { error, data } = dataSource;
122
41
  if (dataSource.error) {
123
- return DataSourceState.ERROR;
42
+ return 1 /* ERROR */;
124
43
  }
125
-
126
44
  if (error == null && data == null) {
127
- return DataSourceState.LOADING;
45
+ return 2 /* LOADING */;
128
46
  }
129
-
130
- return DataSourceState.OK;
47
+ return 3 /* OK */;
131
48
  };
132
- /**
133
- * A utility fn to return data source state info as an object of boolean flags
134
- * @param dataSource
135
- */
136
-
137
-
138
- var getDataSourceStateInfo = function getDataSourceStateInfo(dataSource) {
139
- var dataSourceState = getDataSourceState(dataSource);
49
+ var getDataSourceStateInfo = (dataSource) => {
50
+ const dataSourceState = getDataSourceState(dataSource);
140
51
  return {
141
- hasError: dataSourceState === DataSourceState.ERROR,
142
- isMissing: dataSourceState === DataSourceState.NONEXISTENT,
143
- isLoading: dataSourceState === DataSourceState.LOADING
52
+ hasError: dataSourceState === 1 /* ERROR */,
53
+ isMissing: dataSourceState === 0 /* NONEXISTENT */,
54
+ isLoading: dataSourceState === 2 /* LOADING */
144
55
  };
145
56
  };
146
-
147
- exports.getDataSourceStateInfo = getDataSourceStateInfo;
148
-
149
- /***/ })
150
-
151
- /******/ });
152
- //# sourceMappingURL=dataSourceUtils.js.map
57
+ //# sourceMappingURL=dataSourceUtils.js.map