@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.
- package/BaseRegistry.js +227 -495
- package/BaseRegistry.js.map +7 -1
- package/DataSourceContext.js +55 -125
- package/DataSourceContext.js.map +7 -1
- package/EventsContext.js +54 -121
- package/EventsContext.js.map +7 -1
- package/FeatureFlagContext.js +55 -120
- package/FeatureFlagContext.js.map +7 -1
- package/FeatureFlags.js +27 -107
- package/FeatureFlags.js.map +7 -1
- package/GeoContext.js +55 -120
- package/GeoContext.js.map +7 -1
- package/GeoJsonProvider.js +26712 -303
- package/GeoJsonProvider.js.map +7 -1
- package/GeoRegistry.js +280 -691
- package/GeoRegistry.js.map +7 -1
- package/IconContext.js +55 -120
- package/IconContext.js.map +7 -1
- package/IconRegistry.js +256 -654
- package/IconRegistry.js.map +7 -1
- package/ImageContext.js +55 -120
- package/ImageContext.js.map +7 -1
- package/ImageRegistry.js +265 -660
- package/ImageRegistry.js.map +7 -1
- package/LocalIconProvider.js +206 -470
- package/LocalIconProvider.js.map +7 -1
- package/LocalImageProvider.js +143 -366
- package/LocalImageProvider.js.map +7 -1
- package/MapContext.js +103 -164
- package/MapContext.js.map +7 -1
- package/MessageContext.js +54 -121
- package/MessageContext.js.map +7 -1
- package/MockedProvider.js +146 -376
- package/MockedProvider.js.map +7 -1
- package/Provider.js +87 -276
- package/Provider.js.map +7 -1
- package/TimezoneContext.js +55 -122
- package/TimezoneContext.js.map +7 -1
- package/package.json +7 -14
- package/testDataURIs.js +37 -106
- package/testDataURIs.js.map +7 -1
- package/testSVG.js +27 -104
- package/testSVG.js.map +7 -1
- package/babel.config.js +0 -3
package/Provider.js
CHANGED
|
@@ -1,280 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
-
{
|
|
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
|
+
}
|
package/TimezoneContext.js
CHANGED
|
@@ -1,124 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
package/TimezoneContext.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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
|
+
}
|