@splunk/visualization-context 25.13.1 → 26.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/MapContext.js.map CHANGED
@@ -1 +1 @@
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","paint"],"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,qBAAkB,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,EAAE;IACXC,KAAK,EAAE;MACH,sBAAsB,EAAE;;GAE/B;CAER,EACD;EACIZ,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,EAAE;IACXC,KAAK,EAAE;MACH,sBAAsB,EAAE;;GAE/B;CAER,CACJ,C;;;;;;;ACvFD,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":""}
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
@@ -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;
@@ -1 +1 @@
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":""}
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
@@ -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 && (symbols = symbols.filter(function (sym) {
156
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
155
157
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
156
- })), keys.push.apply(keys, symbols);
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 = 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
- });
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
- result;
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
- items = this.items;
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
- 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;
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
  /***/ }),
@@ -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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D;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","isSearched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;;;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
@@ -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","_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;QAC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AAA,MACd,IAAIb,KAAK,CAAC,0BAA0B,CAAC;cAAA;cAAA;gBAAA,OAAAsC,SAAA,CAAAxB,IAAA;YAAA;UAAA;QAAA,GAAAsB,QAAA;MAAA,CAC9C;MAAA,SAAAG,WAAAC,GAAA;QAAA,OAAAL,WAAA,CAAAlB,KAAA,OAAAC,SAAA;MAAA;MAAA,OAAAqB,UAAA;IAAA;EAAA;EAAA,OAAA7C,QAAA;AAAA;AAGUA,uEAAQ,E;;;;;;;ACzCvB,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","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":""}
@@ -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("25.13.1 - ea48ec41e");
109
+ TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("26.1.0 - fc8bf8d77");
108
110
  exports.TimezoneContextProvider = TimezoneContext.Provider;
109
111
  exports.TimezoneContextConsumer = TimezoneContext.Consumer;
110
112
  exports.default = TimezoneContext;
@@ -1 +1 @@
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,qBAAkB,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":""}
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":""}
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@splunk/visualization-context",
3
3
  "license": "SEE LICENSE IN LICENSE.md",
4
4
  "author": "Splunk",
5
- "version": "25.13.1",
5
+ "version": "26.1.0",
6
6
  "scripts": {
7
- "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail",
7
+ "build": "export NODE_OPTIONS=--openssl-legacy-provider && NODE_ENV=production webpack --config ./webpack.config.js --bail",
8
8
  "build:ci": "yarn build && yarn docs",
9
9
  "clean": "yarn clean:webpack && yarn clean:test-reports",
10
10
  "clean:webpack": "git ls-files --others -i --exclude-standard *.js *.map | xargs rm",
11
11
  "clean:test-reports": "rm -rf ./test-reports",
12
- "dev": "NODE_ENV=development webpack --config ./webpack.config.js --watch",
12
+ "dev": "export NODE_OPTIONS=--openssl-legacy-provider && NODE_ENV=development webpack --config ./webpack.config.js --watch",
13
13
  "lint": "eslint src --ext \".js,.jsx,.ts,.tsx\"",
14
14
  "lint:ci": "eslint src --ext \".js,.jsx,.ts,.tsx\" -f junit -o test-reports/lint-results.xml",
15
15
  "lint:fix": "eslint src --ext \".js,.jsx,.ts,.tsx\" --fix",
@@ -30,14 +30,14 @@
30
30
  "@babel/plugin-transform-runtime": "^7.13.0",
31
31
  "@splunk/eslint-config": "^4.0.0",
32
32
  "@splunk/jsdoc-loader": "^3.0.0",
33
- "@splunk/visualization-build-tools": "^25.13.1",
33
+ "@splunk/visualization-build-tools": "^26.1.0",
34
34
  "@splunk/webpack-configs": "^4.0.0",
35
35
  "babel-jest": "^26.0.0",
36
36
  "babel-loader": "^8.2.1",
37
37
  "eslint": "^7.20.0",
38
38
  "eslint-config-airbnb": "^18.2.1",
39
39
  "eslint-config-prettier": "^7.2.0",
40
- "eslint-import-resolver-webpack": "^0.13.0",
40
+ "eslint-import-resolver-webpack": "^0.13.8",
41
41
  "eslint-plugin-import": "^2.22.1",
42
42
  "jest": "^26.0.0",
43
43
  "jest-localstorage-mock": "^2.4.2",