@splunk/visualization-context 26.0.0 → 26.1.1
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 +56 -16
- package/BaseRegistry.js.map +1 -1
- package/DataSourceContext.js +4 -2
- package/DataSourceContext.js.map +1 -1
- package/EventsContext.js +4 -2
- package/EventsContext.js.map +1 -1
- package/FeatureFlagContext.js +2 -2
- package/FeatureFlagContext.js.map +1 -1
- package/FeatureFlags.js +1 -1
- package/FeatureFlags.js.map +1 -1
- package/GeoContext.js +2 -2
- package/GeoContext.js.map +1 -1
- package/GeoJsonProvider.js +30 -12
- package/GeoJsonProvider.js.map +1 -1
- package/GeoRegistry.js +97 -39
- package/GeoRegistry.js.map +1 -1
- package/IconContext.js +2 -2
- package/IconContext.js.map +1 -1
- package/IconRegistry.js +75 -18
- package/IconRegistry.js.map +1 -1
- package/ImageContext.js +2 -2
- package/ImageContext.js.map +1 -1
- package/ImageRegistry.js +76 -18
- package/ImageRegistry.js.map +1 -1
- package/LocalIconProvider.js +71 -28
- package/LocalIconProvider.js.map +1 -1
- package/LocalImageProvider.js +48 -17
- package/LocalImageProvider.js.map +1 -1
- package/MapContext.js +4 -2
- package/MapContext.js.map +1 -1
- package/MessageContext.js +3 -1
- package/MessageContext.js.map +1 -1
- package/MockedProvider.js +56 -22
- package/MockedProvider.js.map +1 -1
- package/Provider.js +22 -3
- package/Provider.js.map +1 -1
- package/TimezoneContext.js +4 -2
- package/TimezoneContext.js.map +1 -1
- package/package.json +2 -5
- package/testDataURIs.js +1 -1
- package/testDataURIs.js.map +1 -1
- package/testSVG.js +1 -1
- package/testSVG.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@splunk/visualization-context/Provider\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"uuid-v4\"","webpack:///./src/LocalImageProvider.js"],"names":["KEY","LocalImageProvider","
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@splunk/visualization-context/Provider\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"uuid-v4\"","webpack:///./src/LocalImageProvider.js"],"names":["KEY","LocalImageProvider","id","uuid","imageObject","dataURI","metaData","images","JSON","localStorage","_","offset","count","imageIDS","Object","Provider"],"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,kD;;;;;;;ACAA,kE;;;;;;ACAA,+D;;;;;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eD,CAAf;AACA,YAAMK,QAAQ,GAAGC,MAAM,CAANA,KAAjB,MAAiBA,CAAjB;AACA,eAAOD,QAAQ,CAARA,cAAP,KAAOA,CAAP;AAHJ,QAIE,cAAc;AACZ,cAAM,UAAUH,+DAAC,CAAjB,iCAAiB,CAAX,CAAN;AACH;AACJ;AAED;AACJ;AACA;;;;WACI,6BAAoB;AAChB,UAAI;AACA,YAAMN,WAAW,GAAG,aAApB,OAAoB,CAApB;AACA,YAAMG,MAAM,GAAGC,IAAI,CAAJA,MAAWC,YAAY,CAAZA,QAA1B,GAA0BA,CAAXD,CAAf;AACA,eAAOD,MAAM,CAAb,OAAa,CAAb;AACAE,oBAAY,CAAZA,aAA0BD,IAAI,CAAJA,UAA1BC,MAA0BD,CAA1BC;AACA;AALJ,QAME,cAAc;AACZ,cAAM,UAAUC,+DAAC,CAAjB,8BAAiB,CAAX,CAAN;AACH;AACJ;;;;EApE4BK,6E;;AAuEjC,mF","file":"LocalImageProvider.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 = 29);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@splunk/visualization-context/Provider\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"uuid-v4\");","/* eslint-disable class-methods-use-this,no-useless-constructor */\nimport uuid from 'uuid-v4';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport Provider from '@splunk/visualization-context/Provider';\n\nexport const KEY = '__images__';\n\n/**\n * a pure frontend local image provider\n */\nclass LocalImageProvider extends Provider {\n constructor() {\n super();\n }\n\n /**\n * return provider type\n */\n getType() {\n return 'local';\n }\n\n /**\n * add a new image\n */\n upload(dataURI, metaData) {\n try {\n const id = uuid();\n const imageObject = { dataURI, metaData };\n let images = JSON.parse(localStorage.getItem(KEY) || '{}');\n images = { ...images, [id]: imageObject };\n localStorage.setItem(KEY, JSON.stringify(images));\n return id;\n } catch (error) {\n throw new Error(\n _('The image cannot be uploaded. Please check whether your localStorage is full.')\n );\n }\n }\n\n /**\n * get image by imageID\n */\n getById(imageID) {\n const images = JSON.parse(localStorage.getItem(KEY) || '{}');\n const imageObject = images[imageID];\n if (imageObject) {\n return imageObject;\n }\n throw new Error(_('The image is not found.'));\n }\n\n /**\n * get all imageIDs\n */\n listIds({ offset, count }) {\n try {\n const images = JSON.parse(localStorage.getItem(KEY) || '{}');\n const imageIDS = Object.keys(images);\n return imageIDS.slice(offset, count);\n } catch (error) {\n throw new Error(_('The image ids cannot be listed.'));\n }\n }\n\n /**\n * delete an image by dataID\n */\n deleteById(imageID) {\n try {\n const imageObject = this.getById(imageID);\n const images = JSON.parse(localStorage.getItem(KEY));\n delete images[imageID];\n localStorage.setItem(KEY, JSON.stringify(images));\n return imageObject;\n } catch (error) {\n throw new Error(_('The image cannot be deleted.'));\n }\n }\n}\n\nexport default LocalImageProvider;\n"],"sourceRoot":""}
|
package/MapContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2024 Splunk Inc.
|
|
3
3
|
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
4
4
|
* in part without a valid written license from Splunk Inc. is PROHIBITED.
|
|
5
5
|
*/
|
|
@@ -102,11 +102,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
102
102
|
value: true
|
|
103
103
|
});
|
|
104
104
|
exports.testTileConfig = exports.MapContextConsumer = exports.MapContextProvider = void 0;
|
|
105
|
+
|
|
105
106
|
var React = __webpack_require__(7);
|
|
107
|
+
|
|
106
108
|
var MapContext = React.createContext({
|
|
107
109
|
defaultTileConfig: []
|
|
108
110
|
});
|
|
109
|
-
MapContext.displayName = "data-splunk-visualization-version-MapContext-".concat("26.
|
|
111
|
+
MapContext.displayName = "data-splunk-visualization-version-MapContext-".concat("26.1.1 - b6df0a015");
|
|
110
112
|
exports.MapContextProvider = MapContext.Provider;
|
|
111
113
|
exports.MapContextConsumer = MapContext.Consumer;
|
|
112
114
|
exports.default = MapContext;
|
package/MapContext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/MapContext.tsx","webpack:///external \"react\""],"names":[
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/MapContext.tsx","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;;AA+BA,IAAM,UAAU,GAAG,KAAK,CAAC,aAAN,CAAyC;AAAE,mBAAiB,EAAE;AAArB,CAAzC,CAAnB;AACA,UAAU,CAAC,WAAX,0DAAyE,oBAAzE;AAEa,6BAAqB,UAAU,CAAC,QAAhC;AACA,6BAAqB,UAAU,CAAC,QAAhC;AACb,kBAAe,UAAf;AAEa,yBAAmC,CAC5C;AACI,MAAI,EAAE,wBADV;AAEI,KAAG,EAAE,sBAFT;AAGI,OAAK,EAAE,OAHX;AAII,SAAO,EAAE;AACL,kBAAc;AACV,UAAI,EAAE,QADI;AAEV,WAAK,EAAE,CAAC,kFAAD,CAFG;AAGV,cAAQ,EAAE;AAHA;AADT,GAJb;AAWI,QAAM,EAAE,CACJ;AACI,MAAE,EAAE,YADR;AAEI,QAAI,EAAE,QAFV;AAGI,UAAM,EAAE,YAHZ;AAII,WAAO,EAAE,CAJb;AAKI,WAAO,EAAE,EALb;AAMI,SAAK,EAAE;AACH,8BAAwB;AADrB;AANX,GADI;AAXZ,CAD4C,EAyB5C;AACI,MAAI,EAAE,sBADV;AAEI,KAAG,EAAE,qBAFT;AAGI,OAAK,EAAE,MAHX;AAII,SAAO,EAAE;AACL,kBAAc;AACV,UAAI,EAAE,QADI;AAEV,WAAK,EAAE,CAAC,sEAAD,CAFG;AAGV,cAAQ,EAAE;AAHA;AADT,GAJb;AAWI,QAAM,EAAE,CACJ;AACI,MAAE,EAAE,YADR;AAEI,QAAI,EAAE,QAFV;AAGI,UAAM,EAAE,YAHZ;AAII,WAAO,EAAE,CAJb;AAKI,WAAO,EAAE,EALb;AAMI,SAAK,EAAE;AACH,8BAAwB;AADrB;AANX,GADI;AAXZ,CAzB4C,CAAnC,C;;;;;;;ACtCb,kC","file":"MapContext.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 = 30);\n","import * as React from 'react';\nimport type { StyleSpecification, LayerSpecification } from 'maplibre-gl';\n\n// Global provided via webpack\n// eslint-disable-next-line no-underscore-dangle\ndeclare const __VISION_VERSION__: string;\n\n/**\n * We are omitting the `sources`, `layers`, `verison` properties, and re-adding them with some constraint\n * 1. Changing `sources` and `layers` from optional to required\n * 2. Limiting `sources` type to `VectorSource` and `RasterSource` for MVP\n * 3. `version` property is specific to MapLibre and is always an 8. We will add this internally in the\n * Viz map component and not let the consumers bother\n */\nexport interface BaseTileConfig extends Omit<StyleSpecification, 'sources' | 'layers' | 'version'> {\n name: string; // used to populate the tile server dropdown in editor, eg: 'Mapbox Streets V8 tileset'\n key: string; // sets the Viz map option - 'baseLayerTileServer'\n theme?: 'light' | 'dark'; // if no theme is specified, the tileserver is available for all themes\n sources: {\n [sourceName: string]: Record<string, unknown>;\n };\n layers: LayerSpecification[];\n version?: number;\n}\n\nexport interface MapContextInterface {\n defaultTileConfig: BaseTileConfig[];\n customTileConfig?: BaseTileConfig[];\n mapboxAccessToken?: string;\n}\n\nconst MapContext = React.createContext<MapContextInterface>({ defaultTileConfig: [] });\nMapContext.displayName = `data-splunk-visualization-version-MapContext-${__VISION_VERSION__}`;\n\nexport const MapContextProvider = MapContext.Provider;\nexport const MapContextConsumer = MapContext.Consumer;\nexport default MapContext;\n\nexport const testTileConfig: BaseTileConfig[] = [\n {\n name: 'Carto Base Map - Light',\n key: 'carto.base.map.light',\n theme: 'light',\n sources: {\n 'base-tiles': {\n type: 'raster',\n tiles: ['https://a.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}.png'],\n tileSize: 256,\n },\n },\n layers: [\n {\n id: 'base-layer',\n type: 'raster',\n source: 'base-tiles',\n minzoom: 0,\n maxzoom: 12,\n paint: {\n 'raster-fade-duration': 0,\n },\n },\n ],\n },\n {\n name: 'Cart Base Map - dark',\n key: 'carto.base.map.dark',\n theme: 'dark',\n sources: {\n 'base-tiles': {\n type: 'raster',\n tiles: ['https://a.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}.png'],\n tileSize: 256,\n },\n },\n layers: [\n {\n id: 'base-layer',\n type: 'raster',\n source: 'base-tiles',\n minzoom: 0,\n maxzoom: 12,\n paint: {\n 'raster-fade-duration': 0,\n },\n },\n ],\n },\n];\n","module.exports = require(\"react\");"],"sourceRoot":""}
|
package/MessageContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2024 Splunk Inc.
|
|
3
3
|
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
4
4
|
* in part without a valid written license from Splunk Inc. is PROHIBITED.
|
|
5
5
|
*/
|
|
@@ -102,7 +102,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
102
102
|
value: true
|
|
103
103
|
});
|
|
104
104
|
exports.MessageContextConsumer = exports.MessageContextProvider = void 0;
|
|
105
|
+
|
|
105
106
|
var React = __webpack_require__(7);
|
|
107
|
+
|
|
106
108
|
var MessageContext = React.createContext({});
|
|
107
109
|
exports.MessageContextProvider = MessageContext.Provider;
|
|
108
110
|
exports.MessageContextConsumer = MessageContext.Consumer;
|
package/MessageContext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/MessageContext.ts","webpack:///external \"react\""],"names":[
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/MessageContext.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;;AAMA,IAAM,cAAc,GAAG,KAAK,CAAC,aAAN,CAA6C,EAA7C,CAAvB;AAEa,iCAAyB,cAAc,CAAC,QAAxC;AACA,iCAAyB,cAAc,CAAC,QAAxC;AACb,kBAAe,cAAf,C;;;;;;;ACVA,kC","file":"MessageContext.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 = 31);\n","import * as React from 'react';\n\ninterface MessageContextInterface {\n cspMessageLink?: string;\n}\n\nconst MessageContext = React.createContext<MessageContextInterface>({});\n\nexport const MessageContextProvider = MessageContext.Provider;\nexport const MessageContextConsumer = MessageContext.Consumer;\nexport default MessageContext;\n","module.exports = require(\"react\");"],"sourceRoot":""}
|
package/MockedProvider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2024 Splunk Inc.
|
|
3
3
|
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
4
4
|
* in part without a valid written license from Splunk Inc. is PROHIBITED.
|
|
5
5
|
*/
|
|
@@ -147,45 +147,65 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
150
|
+
|
|
150
151
|
function ownKeys(object, enumerableOnly) {
|
|
151
152
|
var keys = Object.keys(object);
|
|
153
|
+
|
|
152
154
|
if (Object.getOwnPropertySymbols) {
|
|
153
155
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
154
|
-
enumerableOnly
|
|
156
|
+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
155
157
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
156
|
-
})
|
|
158
|
+
});
|
|
159
|
+
keys.push.apply(keys, symbols);
|
|
157
160
|
}
|
|
161
|
+
|
|
158
162
|
return keys;
|
|
159
163
|
}
|
|
164
|
+
|
|
160
165
|
function _objectSpread(target) {
|
|
161
166
|
for (var i = 1; i < arguments.length; i++) {
|
|
162
|
-
var source =
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
168
|
+
|
|
169
|
+
if (i % 2) {
|
|
170
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
171
|
+
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]);
|
|
172
|
+
});
|
|
173
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
174
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
175
|
+
} else {
|
|
176
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
177
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
178
|
+
});
|
|
179
|
+
}
|
|
168
180
|
}
|
|
181
|
+
|
|
169
182
|
return target;
|
|
170
183
|
}
|
|
184
|
+
|
|
171
185
|
function _createSuper(Derived) {
|
|
172
186
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
187
|
+
|
|
173
188
|
return function _createSuperInternal() {
|
|
174
189
|
var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived),
|
|
175
|
-
|
|
190
|
+
result;
|
|
191
|
+
|
|
176
192
|
if (hasNativeReflectConstruct) {
|
|
177
193
|
var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor;
|
|
194
|
+
|
|
178
195
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
179
196
|
} else {
|
|
180
197
|
result = Super.apply(this, arguments);
|
|
181
198
|
}
|
|
199
|
+
|
|
182
200
|
return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result);
|
|
183
201
|
};
|
|
184
202
|
}
|
|
203
|
+
|
|
185
204
|
function _isNativeReflectConstruct() {
|
|
186
205
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
187
206
|
if (Reflect.construct.sham) return false;
|
|
188
207
|
if (typeof Proxy === "function") return true;
|
|
208
|
+
|
|
189
209
|
try {
|
|
190
210
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
191
211
|
return true;
|
|
@@ -197,24 +217,31 @@ function _isNativeReflectConstruct() {
|
|
|
197
217
|
|
|
198
218
|
|
|
199
219
|
|
|
220
|
+
|
|
200
221
|
/**
|
|
201
222
|
* a local icon/image provider
|
|
202
223
|
*/
|
|
224
|
+
|
|
203
225
|
var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
204
226
|
_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(MockedProvider, _Provider);
|
|
227
|
+
|
|
205
228
|
var _super = _createSuper(MockedProvider);
|
|
229
|
+
|
|
206
230
|
function MockedProvider() {
|
|
207
231
|
var _this;
|
|
232
|
+
|
|
208
233
|
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MockedProvider);
|
|
234
|
+
|
|
209
235
|
_this = _super.call(this);
|
|
210
236
|
_this.id = 0;
|
|
211
237
|
_this.items = {};
|
|
212
238
|
return _this;
|
|
213
239
|
}
|
|
214
|
-
|
|
215
240
|
/**
|
|
216
241
|
* return provider type
|
|
217
242
|
*/
|
|
243
|
+
|
|
244
|
+
|
|
218
245
|
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MockedProvider, [{
|
|
219
246
|
key: "getType",
|
|
220
247
|
value: function getType() {
|
|
@@ -229,7 +256,7 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
|
229
256
|
metaData: metaData
|
|
230
257
|
};
|
|
231
258
|
var id = this.id,
|
|
232
|
-
|
|
259
|
+
items = this.items;
|
|
233
260
|
this.items = _objectSpread(_objectSpread({}, items), {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, id, obj));
|
|
234
261
|
this.id += 1;
|
|
235
262
|
return id;
|
|
@@ -237,35 +264,38 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
|
237
264
|
throw new Error(Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_6__["_"])('The obj cannot be uploaded.'));
|
|
238
265
|
}
|
|
239
266
|
}
|
|
240
|
-
|
|
241
267
|
/**
|
|
242
268
|
* get by id
|
|
243
269
|
*/
|
|
270
|
+
|
|
244
271
|
}, {
|
|
245
272
|
key: "getById",
|
|
246
273
|
value: function getById(id) {
|
|
247
274
|
if (this.items[id]) {
|
|
248
275
|
return this.items[id];
|
|
249
276
|
}
|
|
277
|
+
|
|
250
278
|
throw new Error(Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_6__["_"])('The obj is not found.'));
|
|
251
279
|
}
|
|
252
|
-
|
|
253
280
|
/**
|
|
254
281
|
* get all obj ids
|
|
255
282
|
*/
|
|
283
|
+
|
|
256
284
|
}, {
|
|
257
285
|
key: "listIds",
|
|
258
286
|
value: function listIds(_ref) {
|
|
259
287
|
var _ref$offset = _ref.offset,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
288
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
289
|
+
_ref$count = _ref.count,
|
|
290
|
+
count = _ref$count === void 0 ? 100 : _ref$count,
|
|
291
|
+
_ref$meta = _ref.meta,
|
|
292
|
+
meta = _ref$meta === void 0 ? [] : _ref$meta,
|
|
293
|
+
_ref$search = _ref.search,
|
|
294
|
+
search = _ref$search === void 0 ? null : _ref$search;
|
|
295
|
+
|
|
267
296
|
try {
|
|
268
297
|
var icons = _objectSpread({}, this.items);
|
|
298
|
+
|
|
269
299
|
var results = [];
|
|
270
300
|
Object.keys(icons).slice(offset, count).forEach(function (id) {
|
|
271
301
|
var icon = {
|
|
@@ -276,6 +306,7 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
|
276
306
|
var iconMetaValue = iconMeta[attr].toLowerCase();
|
|
277
307
|
return iconMetaValue.indexOf(search.toLowerCase()) > -1;
|
|
278
308
|
});
|
|
309
|
+
|
|
279
310
|
if (search == null || isSearchedIcon) {
|
|
280
311
|
if (meta && meta.length) {
|
|
281
312
|
icon.metaData = {};
|
|
@@ -285,6 +316,7 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
|
285
316
|
}
|
|
286
317
|
});
|
|
287
318
|
}
|
|
319
|
+
|
|
288
320
|
results.push(icon);
|
|
289
321
|
}
|
|
290
322
|
});
|
|
@@ -293,10 +325,10 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
|
293
325
|
throw new Error(Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_6__["_"])('The ids cannot be listed.'));
|
|
294
326
|
}
|
|
295
327
|
}
|
|
296
|
-
|
|
297
328
|
/**
|
|
298
329
|
* delete by id
|
|
299
330
|
*/
|
|
331
|
+
|
|
300
332
|
}, {
|
|
301
333
|
key: "deleteById",
|
|
302
334
|
value: function deleteById(id) {
|
|
@@ -315,8 +347,10 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
|
|
|
315
347
|
this.items = {};
|
|
316
348
|
}
|
|
317
349
|
}]);
|
|
350
|
+
|
|
318
351
|
return MockedProvider;
|
|
319
352
|
}(_splunk_visualization_context_Provider__WEBPACK_IMPORTED_MODULE_7___default.a);
|
|
353
|
+
|
|
320
354
|
/* harmony default export */ __webpack_exports__["default"] = (MockedProvider);
|
|
321
355
|
|
|
322
356
|
/***/ }),
|
package/MockedProvider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///./src/MockedProvider.js","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@splunk/visualization-context/Provider\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\""],"names":["MockedProvider","_Provider","_inherits","_super","_createSuper","_this","_classCallCheck","call","id","items","_createClass","key","value","getType","upload","dataURI","metaData","obj","_objectSpread","_defineProperty","error","Error","_","getById","listIds","_ref","_ref$offset","offset","_ref$count","count","_ref$meta","meta","_ref$search","search","icons","results","Object","keys","slice","forEach","icon","iconMeta","isSearchedIcon","some","attr","iconMetaValue","toLowerCase","indexOf","length","push","deleteById","clean","Provider"],"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,kD;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;ACAA,+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AAC0C;AACoB;;AAE9D;AACA;AACA;AAFA,IAGMA,cAAc,0BAAAC,SAAA;EAAAC,sEAAA,CAAAF,cAAA,EAAAC,SAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,cAAA;EAChB,SAAAA,eAAA,EAAc;IAAA,IAAAK,KAAA;IAAAC,4EAAA,OAAAN,cAAA;IACVK,KAAA,GAAAF,MAAA,CAAAI,IAAA;IACAF,KAAA,CAAKG,EAAE,GAAG,CAAC;IACXH,KAAA,CAAKI,KAAK,GAAG,CAAC,CAAC;IAAC,OAAAJ,KAAA;EACpB;;EAEA;AACJ;AACA;EAFIK,yEAAA,CAAAV,cAAA;IAAAW,GAAA;IAAAC,KAAA,EAGA,SAAAC,QAAA,EAAU;MACN,OAAO,MAAM;IACjB;EAAC;IAAA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AC,2BAA2B,CAAC,CAAC;MACnD;IACJ;;IAEA;AACJ;AACA;EAFI;IAAAX,GAAA;IAAAC,KAAA,EAGA,SAAAsC,WAAW1C,EAAE,EAAE;MACX,IAAI;QACA,IAAMS,GAAG,GAAG,IAAI,CAACM,OAAO,CAACf,EAAE,CAAC;QAC5B,OAAO,IAAI,CAACC,KAAK,CAACD,EAAE,CAAC;QACrB,OAAOS,GAAG;MACd,CAAC,CAAC,OAAOG,KAAK,EAAE;QACZ,MAAM,IAAIC,KAAK,CAACC,+DAAC,CAAC,4BAA4B,CAAC,CAAC;MACpD;IACJ;EAAC;IAAAX,GAAA;IAAAC,KAAA,EAED,SAAAuC,MAAA,EAAQ;MACJ,IAAI,CAAC3C,EAAE,GAAG,CAAC;MACX,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;IACnB;EAAC;EAAA,OAAAT,cAAA;AAAA,EA9FwBoD,6EAAQ;AAiGtBpD,6EAAc,E;;;;;;;ACxG7B,kE;;;;;;;ACAA,mE;;;;;;;ACAA,4D;;;;;;;ACAA,6E","file":"MockedProvider.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 = 32);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","/* eslint-disable class-methods-use-this,no-useless-constructor */\nimport { _ } from '@splunk/ui-utils/i18n';\nimport Provider from '@splunk/visualization-context/Provider';\n\n/**\n * a local icon/image provider\n */\nclass MockedProvider extends Provider {\n constructor() {\n super();\n this.id = 0;\n this.items = {};\n }\n\n /**\n * return provider type\n */\n getType() {\n return 'mock';\n }\n\n upload(dataURI, metaData) {\n try {\n const obj = { dataURI, metaData };\n const { id, items } = this;\n\n this.items = { ...items, [id]: obj };\n this.id += 1;\n\n return id;\n } catch (error) {\n throw new Error(_('The obj cannot be uploaded.'));\n }\n }\n\n /**\n * get by id\n */\n getById(id) {\n if (this.items[id]) {\n return this.items[id];\n }\n throw new Error(_('The obj is not found.'));\n }\n\n /**\n * get all obj ids\n */\n listIds({ offset = 0, count = 100, meta = [], search = null }) {\n try {\n const icons = { ...this.items };\n const results = [];\n\n Object.keys(icons)\n .slice(offset, count)\n .forEach(id => {\n const icon = { id };\n const iconMeta = icons[id].metaData || {};\n const isSearchedIcon =\n search != null &&\n Object.keys(iconMeta).some(attr => {\n const iconMetaValue = iconMeta[attr].toLowerCase();\n return iconMetaValue.indexOf(search.toLowerCase()) > -1;\n });\n\n if (search == null || isSearchedIcon) {\n if (meta && meta.length) {\n icon.metaData = {};\n meta.forEach(attr => {\n if (iconMeta[attr] != null) {\n icon.metaData[attr] = iconMeta[attr];\n }\n });\n }\n\n results.push(icon);\n }\n });\n\n return results;\n } catch (error) {\n throw new Error(_('The ids cannot be listed.'));\n }\n }\n\n /**\n * delete by id\n */\n deleteById(id) {\n try {\n const obj = this.getById(id);\n delete this.items[id];\n return obj;\n } catch (error) {\n throw new Error(_('The obj cannot be deleted.'));\n }\n }\n\n clean() {\n this.id = 0;\n this.items = {};\n }\n}\n\nexport default MockedProvider;\n","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@splunk/visualization-context/Provider\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///./src/MockedProvider.js","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@splunk/visualization-context/Provider\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\""],"names":["MockedProvider","obj","dataURI","metaData","id","items","_","offset","count","meta","search","icons","results","Object","icon","iconMeta","isSearchedIcon","iconMetaValue","Provider"],"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,kD;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;ACAA,+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;AACA;AACA;AAEA;AACA;AACA;;IACMA,c;;;;;AACF,4BAAc;AAAA;;AAAA;;AACV;AACA;AACA;AAHU;AAIb;AAED;AACJ;AACA;;;;;WACI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,IAAI,IAAIA,IAAI,CAAhB,QAAyB;AACrBK,kBAAI,CAAJA;AACAL,kBAAI,CAAJA,QAAa,gBAAQ;AACjB,oBAAIM,QAAQ,CAARA,IAAQ,CAARA,IAAJ,MAA4B;AACxBD,sBAAI,CAAJA,iBAAsBC,QAAQ,CAA9BD,IAA8B,CAA9BA;AACH;AAHLL;AAKH;;AAEDG,mBAAO,CAAPA;AACH;AAvBTC;AA0BA;AA9BJ,QA+BE,cAAc;AACZ,cAAM,UAAUP,+DAAC,CAAjB,2BAAiB,CAAX,CAAN;AACH;AACJ;AAED;AACJ;AACA;;;;WACI,wBAAe;AACX,UAAI;AACA,YAAML,GAAG,GAAG,aAAZ,EAAY,CAAZ;AACA,eAAO,WAAP,EAAO,CAAP;AACA;AAHJ,QAIE,cAAc;AACZ,cAAM,UAAUK,+DAAC,CAAjB,4BAAiB,CAAX,CAAN;AACH;AACJ;;;WAED,iBAAQ;AACJ;AACA;AACH;;;;EA9FwBY,6E;;AAiG7B,+E;;;;;;;ACxGA,kE;;;;;;;ACAA,mE;;;;;;;ACAA,4D;;;;;;;ACAA,6E","file":"MockedProvider.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 = 32);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","/* eslint-disable class-methods-use-this,no-useless-constructor */\nimport { _ } from '@splunk/ui-utils/i18n';\nimport Provider from '@splunk/visualization-context/Provider';\n\n/**\n * a local icon/image provider\n */\nclass MockedProvider extends Provider {\n constructor() {\n super();\n this.id = 0;\n this.items = {};\n }\n\n /**\n * return provider type\n */\n getType() {\n return 'mock';\n }\n\n upload(dataURI, metaData) {\n try {\n const obj = { dataURI, metaData };\n const { id, items } = this;\n\n this.items = { ...items, [id]: obj };\n this.id += 1;\n\n return id;\n } catch (error) {\n throw new Error(_('The obj cannot be uploaded.'));\n }\n }\n\n /**\n * get by id\n */\n getById(id) {\n if (this.items[id]) {\n return this.items[id];\n }\n throw new Error(_('The obj is not found.'));\n }\n\n /**\n * get all obj ids\n */\n listIds({ offset = 0, count = 100, meta = [], search = null }) {\n try {\n const icons = { ...this.items };\n const results = [];\n\n Object.keys(icons)\n .slice(offset, count)\n .forEach(id => {\n const icon = { id };\n const iconMeta = icons[id].metaData || {};\n const isSearchedIcon =\n search != null &&\n Object.keys(iconMeta).some(attr => {\n const iconMetaValue = iconMeta[attr].toLowerCase();\n return iconMetaValue.indexOf(search.toLowerCase()) > -1;\n });\n\n if (search == null || isSearchedIcon) {\n if (meta && meta.length) {\n icon.metaData = {};\n meta.forEach(attr => {\n if (iconMeta[attr] != null) {\n icon.metaData[attr] = iconMeta[attr];\n }\n });\n }\n\n results.push(icon);\n }\n });\n\n return results;\n } catch (error) {\n throw new Error(_('The ids cannot be listed.'));\n }\n }\n\n /**\n * delete by id\n */\n deleteById(id) {\n try {\n const obj = this.getById(id);\n delete this.items[id];\n return obj;\n } catch (error) {\n throw new Error(_('The obj cannot be deleted.'));\n }\n }\n\n clean() {\n this.id = 0;\n this.items = {};\n }\n}\n\nexport default MockedProvider;\n","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@splunk/visualization-context/Provider\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");"],"sourceRoot":""}
|
package/Provider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2024 Splunk Inc.
|
|
3
3
|
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
4
4
|
* in part without a valid written license from Splunk Inc. is PROHIBITED.
|
|
5
5
|
*/
|
|
@@ -131,23 +131,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
/* eslint-disable */
|
|
134
|
+
|
|
134
135
|
var Provider = /*#__PURE__*/function () {
|
|
135
136
|
function Provider() {
|
|
136
137
|
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Provider);
|
|
137
138
|
}
|
|
138
|
-
|
|
139
139
|
/**
|
|
140
140
|
* return provider type
|
|
141
141
|
*/
|
|
142
|
+
|
|
143
|
+
|
|
142
144
|
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Provider, [{
|
|
143
145
|
key: "getType",
|
|
144
146
|
value: function getType() {
|
|
145
147
|
throw new Error('getType() not implemented');
|
|
146
148
|
}
|
|
147
|
-
|
|
148
149
|
/**
|
|
149
150
|
* return a list of images
|
|
150
151
|
*/
|
|
152
|
+
|
|
151
153
|
}, {
|
|
152
154
|
key: "listIds",
|
|
153
155
|
value: function () {
|
|
@@ -159,6 +161,7 @@ var Provider = /*#__PURE__*/function () {
|
|
|
159
161
|
case 0:
|
|
160
162
|
offset = _ref.offset, count = _ref.count;
|
|
161
163
|
throw new Error('listIds() not implemented');
|
|
164
|
+
|
|
162
165
|
case 2:
|
|
163
166
|
case "end":
|
|
164
167
|
return _context.stop();
|
|
@@ -166,14 +169,17 @@ var Provider = /*#__PURE__*/function () {
|
|
|
166
169
|
}
|
|
167
170
|
}, _callee);
|
|
168
171
|
}));
|
|
172
|
+
|
|
169
173
|
function listIds(_x) {
|
|
170
174
|
return _listIds.apply(this, arguments);
|
|
171
175
|
}
|
|
176
|
+
|
|
172
177
|
return listIds;
|
|
173
178
|
}()
|
|
174
179
|
/**
|
|
175
180
|
* add an image to the storage
|
|
176
181
|
*/
|
|
182
|
+
|
|
177
183
|
}, {
|
|
178
184
|
key: "upload",
|
|
179
185
|
value: function () {
|
|
@@ -183,6 +189,7 @@ var Provider = /*#__PURE__*/function () {
|
|
|
183
189
|
switch (_context2.prev = _context2.next) {
|
|
184
190
|
case 0:
|
|
185
191
|
throw new Error('upload() not implemented');
|
|
192
|
+
|
|
186
193
|
case 1:
|
|
187
194
|
case "end":
|
|
188
195
|
return _context2.stop();
|
|
@@ -190,14 +197,17 @@ var Provider = /*#__PURE__*/function () {
|
|
|
190
197
|
}
|
|
191
198
|
}, _callee2);
|
|
192
199
|
}));
|
|
200
|
+
|
|
193
201
|
function upload(_x2, _x3) {
|
|
194
202
|
return _upload.apply(this, arguments);
|
|
195
203
|
}
|
|
204
|
+
|
|
196
205
|
return upload;
|
|
197
206
|
}()
|
|
198
207
|
/**
|
|
199
208
|
* retrieve imageID
|
|
200
209
|
*/
|
|
210
|
+
|
|
201
211
|
}, {
|
|
202
212
|
key: "getById",
|
|
203
213
|
value: function () {
|
|
@@ -207,6 +217,7 @@ var Provider = /*#__PURE__*/function () {
|
|
|
207
217
|
switch (_context3.prev = _context3.next) {
|
|
208
218
|
case 0:
|
|
209
219
|
throw new Error('get() not implemented');
|
|
220
|
+
|
|
210
221
|
case 1:
|
|
211
222
|
case "end":
|
|
212
223
|
return _context3.stop();
|
|
@@ -214,14 +225,17 @@ var Provider = /*#__PURE__*/function () {
|
|
|
214
225
|
}
|
|
215
226
|
}, _callee3);
|
|
216
227
|
}));
|
|
228
|
+
|
|
217
229
|
function getById(_x4) {
|
|
218
230
|
return _getById.apply(this, arguments);
|
|
219
231
|
}
|
|
232
|
+
|
|
220
233
|
return getById;
|
|
221
234
|
}()
|
|
222
235
|
/**
|
|
223
236
|
* delete image by imageID
|
|
224
237
|
*/
|
|
238
|
+
|
|
225
239
|
}, {
|
|
226
240
|
key: "deleteById",
|
|
227
241
|
value: function () {
|
|
@@ -231,6 +245,7 @@ var Provider = /*#__PURE__*/function () {
|
|
|
231
245
|
switch (_context4.prev = _context4.next) {
|
|
232
246
|
case 0:
|
|
233
247
|
throw new Error('delete() not implemented');
|
|
248
|
+
|
|
234
249
|
case 1:
|
|
235
250
|
case "end":
|
|
236
251
|
return _context4.stop();
|
|
@@ -238,14 +253,18 @@ var Provider = /*#__PURE__*/function () {
|
|
|
238
253
|
}
|
|
239
254
|
}, _callee4);
|
|
240
255
|
}));
|
|
256
|
+
|
|
241
257
|
function deleteById(_x5) {
|
|
242
258
|
return _deleteById.apply(this, arguments);
|
|
243
259
|
}
|
|
260
|
+
|
|
244
261
|
return deleteById;
|
|
245
262
|
}()
|
|
246
263
|
}]);
|
|
264
|
+
|
|
247
265
|
return Provider;
|
|
248
266
|
}();
|
|
267
|
+
|
|
249
268
|
/* harmony default export */ __webpack_exports__["default"] = (Provider);
|
|
250
269
|
|
|
251
270
|
/***/ }),
|
package/Provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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","
|
|
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":""}
|
package/TimezoneContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2024 Splunk Inc.
|
|
3
3
|
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
4
4
|
* in part without a valid written license from Splunk Inc. is PROHIBITED.
|
|
5
5
|
*/
|
|
@@ -102,9 +102,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
102
102
|
value: true
|
|
103
103
|
});
|
|
104
104
|
exports.TimezoneContextConsumer = exports.TimezoneContextProvider = void 0;
|
|
105
|
+
|
|
105
106
|
var React = __webpack_require__(7);
|
|
107
|
+
|
|
106
108
|
var TimezoneContext = React.createContext({});
|
|
107
|
-
TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("26.
|
|
109
|
+
TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("26.1.1 - b6df0a015");
|
|
108
110
|
exports.TimezoneContextProvider = TimezoneContext.Provider;
|
|
109
111
|
exports.TimezoneContextConsumer = TimezoneContext.Consumer;
|
|
110
112
|
exports.default = TimezoneContext;
|