@splunk/visualization-context 26.4.0 → 27.0.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 (44) hide show
  1. package/BaseRegistry.js +227 -495
  2. package/BaseRegistry.js.map +7 -1
  3. package/DataSourceContext.js +55 -125
  4. package/DataSourceContext.js.map +7 -1
  5. package/EventsContext.js +54 -121
  6. package/EventsContext.js.map +7 -1
  7. package/FeatureFlagContext.js +55 -120
  8. package/FeatureFlagContext.js.map +7 -1
  9. package/FeatureFlags.js +27 -107
  10. package/FeatureFlags.js.map +7 -1
  11. package/GeoContext.js +55 -120
  12. package/GeoContext.js.map +7 -1
  13. package/GeoJsonProvider.js +26712 -303
  14. package/GeoJsonProvider.js.map +7 -1
  15. package/GeoRegistry.js +280 -691
  16. package/GeoRegistry.js.map +7 -1
  17. package/IconContext.js +55 -120
  18. package/IconContext.js.map +7 -1
  19. package/IconRegistry.js +256 -654
  20. package/IconRegistry.js.map +7 -1
  21. package/ImageContext.js +55 -120
  22. package/ImageContext.js.map +7 -1
  23. package/ImageRegistry.js +265 -660
  24. package/ImageRegistry.js.map +7 -1
  25. package/LocalIconProvider.js +206 -470
  26. package/LocalIconProvider.js.map +7 -1
  27. package/LocalImageProvider.js +143 -366
  28. package/LocalImageProvider.js.map +7 -1
  29. package/MapContext.js +103 -164
  30. package/MapContext.js.map +7 -1
  31. package/MessageContext.js +54 -121
  32. package/MessageContext.js.map +7 -1
  33. package/MockedProvider.js +146 -376
  34. package/MockedProvider.js.map +7 -1
  35. package/Provider.js +87 -276
  36. package/Provider.js.map +7 -1
  37. package/TimezoneContext.js +55 -122
  38. package/TimezoneContext.js.map +7 -1
  39. package/package.json +7 -14
  40. package/testDataURIs.js +37 -106
  41. package/testDataURIs.js.map +7 -1
  42. package/testSVG.js +27 -104
  43. package/testSVG.js.map +7 -1
  44. package/babel.config.js +0 -3
package/Provider.js CHANGED
@@ -1,280 +1,91 @@
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 = 33);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 1:
96
- /***/ (function(module, exports) {
97
-
98
- module.exports = require("@babel/runtime/regenerator");
99
-
100
- /***/ }),
101
-
102
- /***/ 2:
103
- /***/ (function(module, exports) {
104
-
105
- module.exports = require("@babel/runtime/helpers/classCallCheck");
106
-
107
- /***/ }),
108
-
109
- /***/ 3:
110
- /***/ (function(module, exports) {
111
-
112
- module.exports = require("@babel/runtime/helpers/createClass");
113
-
114
- /***/ }),
115
-
116
- /***/ 33:
117
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
118
-
119
- "use strict";
120
- __webpack_require__.r(__webpack_exports__);
121
- /* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
122
- /* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);
123
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
124
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
125
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
126
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
127
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
128
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__);
129
-
130
-
131
-
132
-
133
- /* eslint-disable */
134
-
135
- var Provider = /*#__PURE__*/function () {
136
- function Provider() {
137
- _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Provider);
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
+ var __async = (__this, __arguments, generator) => {
22
+ return new Promise((resolve, reject) => {
23
+ var fulfilled = (value) => {
24
+ try {
25
+ step(generator.next(value));
26
+ } catch (e) {
27
+ reject(e);
28
+ }
29
+ };
30
+ var rejected = (value) => {
31
+ try {
32
+ step(generator.throw(value));
33
+ } catch (e) {
34
+ reject(e);
35
+ }
36
+ };
37
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38
+ step((generator = generator.apply(__this, __arguments)).next());
39
+ });
40
+ };
41
+
42
+ // src/Provider.js
43
+ var Provider_exports = {};
44
+ __export(Provider_exports, {
45
+ default: () => Provider_default
46
+ });
47
+ module.exports = __toCommonJS(Provider_exports);
48
+ var Provider = class {
49
+ constructor() {
138
50
  }
139
51
  /**
140
52
  * return provider type
141
53
  */
142
-
143
-
144
- _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Provider, [{
145
- key: "getType",
146
- value: function getType() {
147
- throw new Error('getType() not implemented');
148
- }
149
- /**
150
- * return a list of images
151
- */
152
-
153
- }, {
154
- key: "listIds",
155
- value: function () {
156
- var _listIds = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee(_ref) {
157
- var offset, count;
158
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee$(_context) {
159
- while (1) {
160
- switch (_context.prev = _context.next) {
161
- case 0:
162
- offset = _ref.offset, count = _ref.count;
163
- throw new Error('listIds() not implemented');
164
-
165
- case 2:
166
- case "end":
167
- return _context.stop();
168
- }
169
- }
170
- }, _callee);
171
- }));
172
-
173
- function listIds(_x) {
174
- return _listIds.apply(this, arguments);
175
- }
176
-
177
- return listIds;
178
- }()
179
- /**
180
- * add an image to the storage
181
- */
182
-
183
- }, {
184
- key: "upload",
185
- value: function () {
186
- var _upload = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee2(dataURI, metaData) {
187
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee2$(_context2) {
188
- while (1) {
189
- switch (_context2.prev = _context2.next) {
190
- case 0:
191
- throw new Error('upload() not implemented');
192
-
193
- case 1:
194
- case "end":
195
- return _context2.stop();
196
- }
197
- }
198
- }, _callee2);
199
- }));
200
-
201
- function upload(_x2, _x3) {
202
- return _upload.apply(this, arguments);
203
- }
204
-
205
- return upload;
206
- }()
207
- /**
208
- * retrieve imageID
209
- */
210
-
211
- }, {
212
- key: "getById",
213
- value: function () {
214
- var _getById = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee3(imageID) {
215
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee3$(_context3) {
216
- while (1) {
217
- switch (_context3.prev = _context3.next) {
218
- case 0:
219
- throw new Error('get() not implemented');
220
-
221
- case 1:
222
- case "end":
223
- return _context3.stop();
224
- }
225
- }
226
- }, _callee3);
227
- }));
228
-
229
- function getById(_x4) {
230
- return _getById.apply(this, arguments);
231
- }
232
-
233
- return getById;
234
- }()
235
- /**
236
- * delete image by imageID
237
- */
238
-
239
- }, {
240
- key: "deleteById",
241
- value: function () {
242
- var _deleteById = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee4(imageID) {
243
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee4$(_context4) {
244
- while (1) {
245
- switch (_context4.prev = _context4.next) {
246
- case 0:
247
- throw new Error('delete() not implemented');
248
-
249
- case 1:
250
- case "end":
251
- return _context4.stop();
252
- }
253
- }
254
- }, _callee4);
255
- }));
256
-
257
- function deleteById(_x5) {
258
- return _deleteById.apply(this, arguments);
259
- }
260
-
261
- return deleteById;
262
- }()
263
- }]);
264
-
265
- return Provider;
266
- }();
267
-
268
- /* harmony default export */ __webpack_exports__["default"] = (Provider);
269
-
270
- /***/ }),
271
-
272
- /***/ 4:
273
- /***/ (function(module, exports) {
274
-
275
- module.exports = require("@babel/runtime/helpers/asyncToGenerator");
276
-
277
- /***/ })
278
-
279
- /******/ });
280
- //# sourceMappingURL=Provider.js.map
54
+ getType() {
55
+ throw new Error("getType() not implemented");
56
+ }
57
+ /**
58
+ * return a list of images
59
+ */
60
+ listIds(_0) {
61
+ return __async(this, arguments, function* ({ offset, count }) {
62
+ throw new Error("listIds() not implemented");
63
+ });
64
+ }
65
+ /**
66
+ * add an image to the storage
67
+ */
68
+ upload(dataURI, metaData) {
69
+ return __async(this, null, function* () {
70
+ throw new Error("upload() not implemented");
71
+ });
72
+ }
73
+ /**
74
+ * retrieve imageID
75
+ */
76
+ getById(imageID) {
77
+ return __async(this, null, function* () {
78
+ throw new Error("get() not implemented");
79
+ });
80
+ }
81
+ /**
82
+ * delete image by imageID
83
+ */
84
+ deleteById(imageID) {
85
+ return __async(this, null, function* () {
86
+ throw new Error("delete() not implemented");
87
+ });
88
+ }
89
+ };
90
+ var Provider_default = Provider;
91
+ //# sourceMappingURL=Provider.js.map
package/Provider.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@babel/runtime/regenerator\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///./src/Provider.js","webpack:///external \"@babel/runtime/helpers/asyncToGenerator\""],"names":["Provider","offset","count"],"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,uD;;;;;;;ACAA,kE;;;;;;;ACAA,+D;;;;;;;;;;;;;;;;;;;;;ACAA;;IAEMA,Q;AACF,sBAAc;AAAA;AAAE;AAEhB;AACJ;AACA;;;;;WACI,mBAAU;AACN,YAAM,UAAN,2BAAM,CAAN;AACH;AAED;AACJ;AACA;;;;;yLACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgBC,sBAAhB,cAAgBA,EAAQC,KAAxB,aAAgBD;AAAhB,sBACU,UADV,2BACU,CADV;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;AAIA;AACJ;AACA;;;;;wLACI;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,UADV,0BACU,CADV;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;AAIA;AACJ;AACA;;;;;yLACI;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,UADV,uBACU,CADV;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;AAIA;AACJ;AACA;;;;;4LACI;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,UADV,0BACU,CADV;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;AAKJ,yE;;;;;;;ACzCA,oE","file":"Provider.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 = 33);\n","module.exports = require(\"@babel/runtime/regenerator\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","/* eslint-disable */\n\nclass Provider {\n constructor() {}\n\n /**\n * return provider type\n */\n getType() {\n throw new Error('getType() not implemented');\n }\n\n /**\n * return a list of images\n */\n async listIds({ offset, count }) {\n throw new Error('listIds() not implemented');\n }\n\n /**\n * add an image to the storage\n */\n async upload(dataURI, metaData) {\n throw new Error('upload() not implemented');\n }\n\n /**\n * retrieve imageID\n */\n async getById(imageID) {\n throw new Error('get() not implemented');\n }\n\n /**\n * delete image by imageID\n */\n async deleteById(imageID) {\n throw new Error('delete() not implemented');\n }\n}\n\nexport default Provider;\n","module.exports = require(\"@babel/runtime/helpers/asyncToGenerator\");"],"sourceRoot":""}
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/Provider.js"],
4
+ "sourcesContent": ["/* eslint-disable */\n\nclass Provider {\n constructor() {}\n\n /**\n * return provider type\n */\n getType() {\n throw new Error('getType() not implemented');\n }\n\n /**\n * return a list of images\n */\n async listIds({ offset, count }) {\n throw new Error('listIds() not implemented');\n }\n\n /**\n * add an image to the storage\n */\n async upload(dataURI, metaData) {\n throw new Error('upload() not implemented');\n }\n\n /**\n * retrieve imageID\n */\n async getById(imageID) {\n throw new Error('get() not implemented');\n }\n\n /**\n * delete image by imageID\n */\n async deleteById(imageID) {\n throw new Error('delete() not implemented');\n }\n}\n\nexport default Provider;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAM,WAAN,MAAe;AAAA,EACX,cAAc;AAAA,EAAC;AAAA;AAAA;AAAA;AAAA,EAKf,UAAU;AACN,UAAM,IAAI,MAAM,2BAA2B;AAAA,EAC/C;AAAA;AAAA;AAAA;AAAA,EAKM,QAAQ,IAAmB;AAAA,+CAAnB,EAAE,QAAQ,MAAM,GAAG;AAC7B,YAAM,IAAI,MAAM,2BAA2B;AAAA,IAC/C;AAAA;AAAA;AAAA;AAAA;AAAA,EAKM,OAAO,SAAS,UAAU;AAAA;AAC5B,YAAM,IAAI,MAAM,0BAA0B;AAAA,IAC9C;AAAA;AAAA;AAAA;AAAA;AAAA,EAKM,QAAQ,SAAS;AAAA;AACnB,YAAM,IAAI,MAAM,uBAAuB;AAAA,IAC3C;AAAA;AAAA;AAAA;AAAA;AAAA,EAKM,WAAW,SAAS;AAAA;AACtB,YAAM,IAAI,MAAM,0BAA0B;AAAA,IAC9C;AAAA;AACJ;AAEA,IAAO,mBAAQ;",
6
+ "names": []
7
+ }
@@ -1,124 +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 = 34);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 34:
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 __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+
33
+ // src/TimezoneContext.ts
34
+ var TimezoneContext_exports = {};
35
+ __export(TimezoneContext_exports, {
36
+ TimezoneContextConsumer: () => TimezoneContextConsumer,
37
+ TimezoneContextProvider: () => TimezoneContextProvider,
38
+ default: () => TimezoneContext_default
103
39
  });
104
- exports.TimezoneContextConsumer = exports.TimezoneContextProvider = void 0;
105
-
106
- var React = __webpack_require__(7);
107
-
108
- var TimezoneContext = React.createContext({});
109
- TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("26.4.0 - 04078274d");
110
- exports.TimezoneContextProvider = TimezoneContext.Provider;
111
- exports.TimezoneContextConsumer = TimezoneContext.Consumer;
112
- exports.default = TimezoneContext;
40
+ module.exports = __toCommonJS(TimezoneContext_exports);
113
41
 
114
- /***/ }),
115
-
116
- /***/ 7:
117
- /***/ (function(module, exports) {
118
-
119
- module.exports = require("react");
120
-
121
- /***/ })
122
-
123
- /******/ });
124
- //# sourceMappingURL=TimezoneContext.js.map
42
+ // esm-externals:react
43
+ var react_exports = {};
44
+ __export(react_exports, {
45
+ default: () => react_default
46
+ });
47
+ var defaultImport = __toESM(require("react"));
48
+ __reExport(react_exports, require("react"));
49
+ var react_default = "default" in defaultImport ? defaultImport.default : defaultImport;
50
+
51
+ // src/TimezoneContext.ts
52
+ var TimezoneContext = react_exports.createContext({});
53
+ TimezoneContext.displayName = `data-splunk-visualization-version-TimezoneContext-${"27.0.0 - 9bf093b7d"}`;
54
+ var TimezoneContextProvider = TimezoneContext.Provider;
55
+ var TimezoneContextConsumer = TimezoneContext.Consumer;
56
+ var TimezoneContext_default = TimezoneContext;
57
+ //# sourceMappingURL=TimezoneContext.js.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/TimezoneContext.ts","webpack:///external \"react\""],"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;;AAqBA,IAAM,eAAe,GAAG,KAAK,CAAC,aAAN,CAA8C,EAA9C,CAAxB;AACA,eAAe,CAAC,WAAhB,+DAAmF,oBAAnF;AAEa,kCAA0B,eAAe,CAAC,QAA1C;AACA,kCAA0B,eAAe,CAAC,QAA1C;AACb,kBAAe,eAAf,C;;;;;;;AC1BA,kC","file":"TimezoneContext.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 = 34);\n","import * as React from 'react';\n\n// Global provided via webpack\n// eslint-disable-next-line no-underscore-dangle\ndeclare const __VISION_VERSION__: string;\n\n/**\n * ianaTimezone can be used to specify a timezone corresponding to one of the entries in the IANA time zone database (e.g. America/Los_Angeles)\n *\n * serializedTimezone is Splunk's serialized timezone format and is usually present in enterprise via window.$C.SERVER_ZONEINFO\n * serialized time format examples can be found here https://git.splunk.com/projects/UI/repos/splunk-ui/browse/packages/moment/src/test/timezones\n *\n * utcOffset can be used to specify the desired display timezone via its offset from UTC time in minutes\n * Positive values are west, negative values are east of UTC, as in the ECMAScript getTimezoneOffset method\n */\nexport interface TimezoneContextInterface {\n ianaTimezone?: string;\n serializedTimezone?: string;\n utcOffset?: number;\n}\n\nconst TimezoneContext = React.createContext<TimezoneContextInterface>({});\nTimezoneContext.displayName = `data-splunk-visualization-version-TimezoneContext-${__VISION_VERSION__}`;\n\nexport const TimezoneContextProvider = TimezoneContext.Provider;\nexport const TimezoneContextConsumer = TimezoneContext.Consumer;\nexport default TimezoneContext;\n","module.exports = require(\"react\");"],"sourceRoot":""}
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/TimezoneContext.ts", "esm-externals:react"],
4
+ "sourcesContent": ["import * as React from 'react';\n\n// Global provided via webpack\n// eslint-disable-next-line no-underscore-dangle\ndeclare const __VISION_VERSION__: string;\n\n/**\n * ianaTimezone can be used to specify a timezone corresponding to one of the entries in the IANA time zone database (e.g. America/Los_Angeles)\n *\n * serializedTimezone is Splunk's serialized timezone format and is usually present in enterprise via window.$C.SERVER_ZONEINFO\n * serialized time format examples can be found here https://git.splunk.com/projects/UI/repos/splunk-ui/browse/packages/moment/src/test/timezones\n *\n * utcOffset can be used to specify the desired display timezone via its offset from UTC time in minutes\n * Positive values are west, negative values are east of UTC, as in the ECMAScript getTimezoneOffset method\n */\nexport interface TimezoneContextInterface {\n ianaTimezone?: string;\n serializedTimezone?: string;\n utcOffset?: number;\n}\n\nconst TimezoneContext = React.createContext<TimezoneContextInterface>({});\nTimezoneContext.displayName = `data-splunk-visualization-version-TimezoneContext-${__VISION_VERSION__}`;\n\nexport const TimezoneContextProvider = TimezoneContext.Provider;\nexport const TimezoneContextConsumer = TimezoneContext.Consumer;\nexport default TimezoneContext;\n", "\nimport * as defaultImport from \"react\";\nexport * from \"react\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,0BAAc;AACd,IAAO,gBAAS,aAAa,gBAA8B,wBAAU;;;ADkBrE,IAAM,kBAAwB,4BAAwC,CAAC,CAAC;AACxE,gBAAgB,cAAc,qDAAqD,oBAAkB;AAE9F,IAAM,0BAA0B,gBAAgB;AAChD,IAAM,0BAA0B,gBAAgB;AACvD,IAAO,0BAAQ;",
6
+ "names": []
7
+ }