@splunk/visualization-context 25.7.1 → 25.8.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/MapContext.js.map CHANGED
@@ -1 +1 @@
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;AALb,GADI;AAXZ,CAD4C,EAsB5C;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;AALb,GADI;AAXZ,CAtB4C,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 },\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 },\n ],\n },\n];\n","module.exports = require(\"react\");"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/MapContext.tsx","webpack:///external \"react\""],"names":["React","require","MapContext","createContext","defaultTileConfig","displayName","concat","__VISION_VERSION__","exports","MapContextProvider","Provider","MapContextConsumer","Consumer","default","testTileConfig","name","key","theme","sources","type","tiles","tileSize","layers","id","source","minzoom","maxzoom"],"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,IAAAA,KAAA,GAAAC,mBAAA;AA+BA,IAAMC,UAAU,GAAGF,KAAK,CAACG,aAAa,CAAsB;EAAEC,iBAAiB,EAAE;AAAE,CAAE,CAAC;AACtFF,UAAU,CAACG,WAAW,mDAAAC,MAAA,CAAmDC,oBAAkB,CAAE;AAEhFC,OAAA,CAAAC,kBAAkB,GAAGP,UAAU,CAACQ,QAAQ;AACxCF,OAAA,CAAAG,kBAAkB,GAAGT,UAAU,CAACU,QAAQ;AACrDJ,OAAA,CAAAK,OAAA,GAAeX,UAAU;AAEZM,OAAA,CAAAM,cAAc,GAAqB,CAC5C;EACIC,IAAI,EAAE,wBAAwB;EAC9BC,GAAG,EAAE,sBAAsB;EAC3BC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE;IACL,YAAY,EAAE;MACVC,IAAI,EAAE,QAAQ;MACdC,KAAK,EAAE,CAAC,kFAAkF,CAAC;MAC3FC,QAAQ,EAAE;;GAEjB;EACDC,MAAM,EAAE,CACJ;IACIC,EAAE,EAAE,YAAY;IAChBJ,IAAI,EAAE,QAAQ;IACdK,MAAM,EAAE,YAAY;IACpBC,OAAO,EAAE,CAAC;IACVC,OAAO,EAAE;GACZ;CAER,EACD;EACIX,IAAI,EAAE,sBAAsB;EAC5BC,GAAG,EAAE,qBAAqB;EAC1BC,KAAK,EAAE,MAAM;EACbC,OAAO,EAAE;IACL,YAAY,EAAE;MACVC,IAAI,EAAE,QAAQ;MACdC,KAAK,EAAE,CAAC,sEAAsE,CAAC;MAC/EC,QAAQ,EAAE;;GAEjB;EACDC,MAAM,EAAE,CACJ;IACIC,EAAE,EAAE,YAAY;IAChBJ,IAAI,EAAE,QAAQ;IACdK,MAAM,EAAE,YAAY;IACpBC,OAAO,EAAE,CAAC;IACVC,OAAO,EAAE;GACZ;CAER,CACJ,C;;;;;;;ACjFD,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 },\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 },\n ],\n },\n];\n","module.exports = require(\"react\");"],"sourceRoot":""}
package/MessageContext.js CHANGED
@@ -102,9 +102,7 @@ Object.defineProperty(exports, "__esModule", {
102
102
  value: true
103
103
  });
104
104
  exports.MessageContextConsumer = exports.MessageContextProvider = void 0;
105
-
106
105
  var React = __webpack_require__(7);
107
-
108
106
  var MessageContext = React.createContext({});
109
107
  exports.MessageContextProvider = MessageContext.Provider;
110
108
  exports.MessageContextConsumer = MessageContext.Consumer;
@@ -1 +1 @@
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":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/MessageContext.ts","webpack:///external \"react\""],"names":["React","require","MessageContext","createContext","exports","MessageContextProvider","Provider","MessageContextConsumer","Consumer","default"],"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,IAAAA,KAAA,GAAAC,mBAAA;AAMA,IAAMC,cAAc,GAAGF,KAAK,CAACG,aAAa,CAA0B,EAAE,CAAC;AAE1DC,OAAA,CAAAC,sBAAsB,GAAGH,cAAc,CAACI,QAAQ;AAChDF,OAAA,CAAAG,sBAAsB,GAAGL,cAAc,CAACM,QAAQ;AAC7DJ,OAAA,CAAAK,OAAA,GAAeP,cAAc,C;;;;;;;ACV7B,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
@@ -147,65 +147,45 @@ __webpack_require__.r(__webpack_exports__);
147
147
 
148
148
 
149
149
 
150
-
151
150
  function ownKeys(object, enumerableOnly) {
152
151
  var keys = Object.keys(object);
153
-
154
152
  if (Object.getOwnPropertySymbols) {
155
153
  var symbols = Object.getOwnPropertySymbols(object);
156
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
154
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
157
155
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
158
- });
159
- keys.push.apply(keys, symbols);
156
+ })), keys.push.apply(keys, symbols);
160
157
  }
161
-
162
158
  return keys;
163
159
  }
164
-
165
160
  function _objectSpread(target) {
166
161
  for (var i = 1; i < arguments.length; i++) {
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
- }
162
+ var source = null != arguments[i] ? arguments[i] : {};
163
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
164
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]);
165
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
166
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
167
+ });
180
168
  }
181
-
182
169
  return target;
183
170
  }
184
-
185
171
  function _createSuper(Derived) {
186
172
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
187
-
188
173
  return function _createSuperInternal() {
189
174
  var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived),
190
- result;
191
-
175
+ result;
192
176
  if (hasNativeReflectConstruct) {
193
177
  var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor;
194
-
195
178
  result = Reflect.construct(Super, arguments, NewTarget);
196
179
  } else {
197
180
  result = Super.apply(this, arguments);
198
181
  }
199
-
200
182
  return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result);
201
183
  };
202
184
  }
203
-
204
185
  function _isNativeReflectConstruct() {
205
186
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
206
187
  if (Reflect.construct.sham) return false;
207
188
  if (typeof Proxy === "function") return true;
208
-
209
189
  try {
210
190
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
211
191
  return true;
@@ -217,31 +197,24 @@ function _isNativeReflectConstruct() {
217
197
 
218
198
 
219
199
 
220
-
221
200
  /**
222
201
  * a local icon/image provider
223
202
  */
224
-
225
203
  var MockedProvider = /*#__PURE__*/function (_Provider) {
226
204
  _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(MockedProvider, _Provider);
227
-
228
205
  var _super = _createSuper(MockedProvider);
229
-
230
206
  function MockedProvider() {
231
207
  var _this;
232
-
233
208
  _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MockedProvider);
234
-
235
209
  _this = _super.call(this);
236
210
  _this.id = 0;
237
211
  _this.items = {};
238
212
  return _this;
239
213
  }
214
+
240
215
  /**
241
216
  * return provider type
242
217
  */
243
-
244
-
245
218
  _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MockedProvider, [{
246
219
  key: "getType",
247
220
  value: function getType() {
@@ -256,7 +229,7 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
256
229
  metaData: metaData
257
230
  };
258
231
  var id = this.id,
259
- items = this.items;
232
+ items = this.items;
260
233
  this.items = _objectSpread(_objectSpread({}, items), {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, id, obj));
261
234
  this.id += 1;
262
235
  return id;
@@ -264,38 +237,35 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
264
237
  throw new Error(Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_6__["_"])('The obj cannot be uploaded.'));
265
238
  }
266
239
  }
240
+
267
241
  /**
268
242
  * get by id
269
243
  */
270
-
271
244
  }, {
272
245
  key: "getById",
273
246
  value: function getById(id) {
274
247
  if (this.items[id]) {
275
248
  return this.items[id];
276
249
  }
277
-
278
250
  throw new Error(Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_6__["_"])('The obj is not found.'));
279
251
  }
252
+
280
253
  /**
281
254
  * get all obj ids
282
255
  */
283
-
284
256
  }, {
285
257
  key: "listIds",
286
258
  value: function listIds(_ref) {
287
259
  var _ref$offset = _ref.offset,
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
-
260
+ offset = _ref$offset === void 0 ? 0 : _ref$offset,
261
+ _ref$count = _ref.count,
262
+ count = _ref$count === void 0 ? 100 : _ref$count,
263
+ _ref$meta = _ref.meta,
264
+ meta = _ref$meta === void 0 ? [] : _ref$meta,
265
+ _ref$search = _ref.search,
266
+ search = _ref$search === void 0 ? null : _ref$search;
296
267
  try {
297
268
  var icons = _objectSpread({}, this.items);
298
-
299
269
  var results = [];
300
270
  Object.keys(icons).slice(offset, count).forEach(function (id) {
301
271
  var icon = {
@@ -306,7 +276,6 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
306
276
  var iconMetaValue = iconMeta[attr].toLowerCase();
307
277
  return iconMetaValue.indexOf(search.toLowerCase()) > -1;
308
278
  });
309
-
310
279
  if (search == null || isSearchedIcon) {
311
280
  if (meta && meta.length) {
312
281
  icon.metaData = {};
@@ -316,7 +285,6 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
316
285
  }
317
286
  });
318
287
  }
319
-
320
288
  results.push(icon);
321
289
  }
322
290
  });
@@ -325,10 +293,10 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
325
293
  throw new Error(Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_6__["_"])('The ids cannot be listed.'));
326
294
  }
327
295
  }
296
+
328
297
  /**
329
298
  * delete by id
330
299
  */
331
-
332
300
  }, {
333
301
  key: "deleteById",
334
302
  value: function deleteById(id) {
@@ -347,10 +315,8 @@ var MockedProvider = /*#__PURE__*/function (_Provider) {
347
315
  this.items = {};
348
316
  }
349
317
  }]);
350
-
351
318
  return MockedProvider;
352
319
  }(_splunk_visualization_context_Provider__WEBPACK_IMPORTED_MODULE_7___default.a);
353
-
354
320
  /* harmony default export */ __webpack_exports__["default"] = (MockedProvider);
355
321
 
356
322
  /***/ }),
@@ -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","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;AA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QAAJ,gBAAsC;AAClC,gBAAID,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":""}
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;;;;;;;;;;;;;;;;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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
@@ -131,25 +131,23 @@ __webpack_require__.r(__webpack_exports__);
131
131
 
132
132
 
133
133
  /* eslint-disable */
134
-
135
134
  var Provider = /*#__PURE__*/function () {
136
135
  function Provider() {
137
136
  _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Provider);
138
137
  }
138
+
139
139
  /**
140
140
  * return provider type
141
141
  */
142
-
143
-
144
142
  _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Provider, [{
145
143
  key: "getType",
146
144
  value: function getType() {
147
145
  throw new Error('getType() not implemented');
148
146
  }
147
+
149
148
  /**
150
149
  * return a list of images
151
150
  */
152
-
153
151
  }, {
154
152
  key: "listIds",
155
153
  value: function () {
@@ -161,7 +159,6 @@ var Provider = /*#__PURE__*/function () {
161
159
  case 0:
162
160
  offset = _ref.offset, count = _ref.count;
163
161
  throw new Error('listIds() not implemented');
164
-
165
162
  case 2:
166
163
  case "end":
167
164
  return _context.stop();
@@ -169,17 +166,14 @@ var Provider = /*#__PURE__*/function () {
169
166
  }
170
167
  }, _callee);
171
168
  }));
172
-
173
169
  function listIds(_x) {
174
170
  return _listIds.apply(this, arguments);
175
171
  }
176
-
177
172
  return listIds;
178
173
  }()
179
174
  /**
180
175
  * add an image to the storage
181
176
  */
182
-
183
177
  }, {
184
178
  key: "upload",
185
179
  value: function () {
@@ -189,7 +183,6 @@ var Provider = /*#__PURE__*/function () {
189
183
  switch (_context2.prev = _context2.next) {
190
184
  case 0:
191
185
  throw new Error('upload() not implemented');
192
-
193
186
  case 1:
194
187
  case "end":
195
188
  return _context2.stop();
@@ -197,17 +190,14 @@ var Provider = /*#__PURE__*/function () {
197
190
  }
198
191
  }, _callee2);
199
192
  }));
200
-
201
193
  function upload(_x2, _x3) {
202
194
  return _upload.apply(this, arguments);
203
195
  }
204
-
205
196
  return upload;
206
197
  }()
207
198
  /**
208
199
  * retrieve imageID
209
200
  */
210
-
211
201
  }, {
212
202
  key: "getById",
213
203
  value: function () {
@@ -217,7 +207,6 @@ var Provider = /*#__PURE__*/function () {
217
207
  switch (_context3.prev = _context3.next) {
218
208
  case 0:
219
209
  throw new Error('get() not implemented');
220
-
221
210
  case 1:
222
211
  case "end":
223
212
  return _context3.stop();
@@ -225,17 +214,14 @@ var Provider = /*#__PURE__*/function () {
225
214
  }
226
215
  }, _callee3);
227
216
  }));
228
-
229
217
  function getById(_x4) {
230
218
  return _getById.apply(this, arguments);
231
219
  }
232
-
233
220
  return getById;
234
221
  }()
235
222
  /**
236
223
  * delete image by imageID
237
224
  */
238
-
239
225
  }, {
240
226
  key: "deleteById",
241
227
  value: function () {
@@ -245,7 +231,6 @@ var Provider = /*#__PURE__*/function () {
245
231
  switch (_context4.prev = _context4.next) {
246
232
  case 0:
247
233
  throw new Error('delete() not implemented');
248
-
249
234
  case 1:
250
235
  case "end":
251
236
  return _context4.stop();
@@ -253,18 +238,14 @@ var Provider = /*#__PURE__*/function () {
253
238
  }
254
239
  }, _callee4);
255
240
  }));
256
-
257
241
  function deleteById(_x5) {
258
242
  return _deleteById.apply(this, arguments);
259
243
  }
260
-
261
244
  return deleteById;
262
245
  }()
263
246
  }]);
264
-
265
247
  return Provider;
266
248
  }();
267
-
268
249
  /* harmony default export */ __webpack_exports__["default"] = (Provider);
269
250
 
270
251
  /***/ }),
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","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
+ {"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","_classCallCheck","_createClass","key","value","getType","Error","_listIds","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref","offset","count","wrap","_callee$","_context","prev","next","stop","listIds","_x","apply","arguments","_upload","_callee2","dataURI","metaData","_callee2$","_context2","upload","_x2","_x3","_getById","_callee3","imageID","_callee3$","_context3","getById","_x4","_deleteById","_callee4","_callee4$","_context4","deleteById","_x5"],"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;AAAA,IAEMA,QAAQ;EACV,SAAAA,SAAA,EAAc;IAAAC,4EAAA,OAAAD,QAAA;EAAC;;EAEf;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pack_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":""}
@@ -102,11 +102,9 @@ Object.defineProperty(exports, "__esModule", {
102
102
  value: true
103
103
  });
104
104
  exports.TimezoneContextConsumer = exports.TimezoneContextProvider = void 0;
105
-
106
105
  var React = __webpack_require__(7);
107
-
108
106
  var TimezoneContext = React.createContext({});
109
- TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("25.7.1 - 6a77c5530");
107
+ TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("25.8.0 - 65f56b99e");
110
108
  exports.TimezoneContextProvider = TimezoneContext.Provider;
111
109
  exports.TimezoneContextConsumer = TimezoneContext.Consumer;
112
110
  exports.default = TimezoneContext;
@@ -1 +1 @@
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
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/TimezoneContext.ts","webpack:///external \"react\""],"names":["React","require","TimezoneContext","createContext","displayName","concat","__VISION_VERSION__","exports","TimezoneContextProvider","Provider","TimezoneContextConsumer","Consumer","default"],"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,IAAAA,KAAA,GAAAC,mBAAA;AAqBA,IAAMC,eAAe,GAAGF,KAAK,CAACG,aAAa,CAA2B,EAAE,CAAC;AACzED,eAAe,CAACE,WAAW,wDAAAC,MAAA,CAAwDC,oBAAkB,CAAE;AAE1FC,OAAA,CAAAC,uBAAuB,GAAGN,eAAe,CAACO,QAAQ;AAClDF,OAAA,CAAAG,uBAAuB,GAAGR,eAAe,CAACS,QAAQ;AAC/DJ,OAAA,CAAAK,OAAA,GAAeV,eAAe,C;;;;;;;AC1B9B,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":""}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@splunk/visualization-context",
3
3
  "license": "SEE LICENSE IN LICENSE.md",
4
4
  "author": "Splunk",
5
- "version": "25.7.1",
5
+ "version": "25.8.0",
6
6
  "scripts": {
7
7
  "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail",
8
8
  "build:ci": "yarn build && yarn docs",
@@ -31,7 +31,7 @@
31
31
  "@babel/plugin-transform-runtime": "^7.13.0",
32
32
  "@splunk/eslint-config": "^4.0.0",
33
33
  "@splunk/jsdoc-loader": "^3.0.0",
34
- "@splunk/visualization-build-tools": "^25.7.1",
34
+ "@splunk/visualization-build-tools": "^25.8.0",
35
35
  "@splunk/webpack-configs": "^4.0.0",
36
36
  "babel-jest": "^26.0.0",
37
37
  "babel-loader": "^8.2.1",