@splunk/visualization-context 25.8.1 → 25.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DataSourceContext.js +1 -1
- package/EventsContext.js +1 -1
- package/FeatureFlagContext.js +1 -1
- package/GeoContext.js +1 -1
- package/IconContext.js +1 -1
- package/ImageContext.js +1 -1
- package/MapContext.js +9 -3
- package/MapContext.js.map +1 -1
- package/TimezoneContext.js +1 -1
- package/package.json +2 -2
package/DataSourceContext.js
CHANGED
|
@@ -108,7 +108,7 @@ var DataSourceContext = React.createContext({
|
|
|
108
108
|
return function () {};
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
DataSourceContext.displayName = "data-splunk-visualization-version-DataSourceContext-".concat("25.
|
|
111
|
+
DataSourceContext.displayName = "data-splunk-visualization-version-DataSourceContext-".concat("25.9.1 - 5ba41e723");
|
|
112
112
|
exports.DataSourceContextProvider = DataSourceContext.Provider;
|
|
113
113
|
exports.DataSourceContextConsumer = DataSourceContext.Consumer;
|
|
114
114
|
exports.default = DataSourceContext;
|
package/EventsContext.js
CHANGED
|
@@ -108,7 +108,7 @@ var EventsContext = React.createContext({
|
|
|
108
108
|
fieldActions: {},
|
|
109
109
|
isSplunkWebAvailable: false
|
|
110
110
|
});
|
|
111
|
-
EventsContext.displayName = "data-splunk-visualization-version-EventsContext-".concat("25.
|
|
111
|
+
EventsContext.displayName = "data-splunk-visualization-version-EventsContext-".concat("25.9.1 - 5ba41e723");
|
|
112
112
|
exports.EventsContextProvider = EventsContext.Provider;
|
|
113
113
|
exports.EventsContextConsumer = EventsContext.Consumer;
|
|
114
114
|
exports.default = EventsContext;
|
package/FeatureFlagContext.js
CHANGED
|
@@ -104,7 +104,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104
104
|
/* global __VISION_VERSION__ */
|
|
105
105
|
|
|
106
106
|
var FeatureFlagContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext();
|
|
107
|
-
FeatureFlagContext.displayName = "data-splunk-visualization-version-FeatureFlagContext-".concat("25.
|
|
107
|
+
FeatureFlagContext.displayName = "data-splunk-visualization-version-FeatureFlagContext-".concat("25.9.1 - 5ba41e723");
|
|
108
108
|
var FeatureFlagContextProvider = FeatureFlagContext.Provider;
|
|
109
109
|
var FeatureFlagContextConsumer = FeatureFlagContext.Consumer;
|
|
110
110
|
/* harmony default export */ __webpack_exports__["default"] = (FeatureFlagContext);
|
package/GeoContext.js
CHANGED
|
@@ -104,7 +104,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104
104
|
/* global __VISION_VERSION__ */
|
|
105
105
|
|
|
106
106
|
var GeoContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext();
|
|
107
|
-
GeoContext.displayName = "data-splunk-visualization-version-GeoContext-".concat("25.
|
|
107
|
+
GeoContext.displayName = "data-splunk-visualization-version-GeoContext-".concat("25.9.1 - 5ba41e723");
|
|
108
108
|
var GeoContextProvider = GeoContext.Provider;
|
|
109
109
|
var GeoContextConsumer = GeoContext.Consumer;
|
|
110
110
|
/* harmony default export */ __webpack_exports__["default"] = (GeoContext);
|
package/IconContext.js
CHANGED
|
@@ -104,7 +104,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104
104
|
/* global __VISION_VERSION__ */
|
|
105
105
|
|
|
106
106
|
var IconContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext();
|
|
107
|
-
IconContext.displayName = "data-splunk-visualization-version-IconContext-".concat("25.
|
|
107
|
+
IconContext.displayName = "data-splunk-visualization-version-IconContext-".concat("25.9.1 - 5ba41e723");
|
|
108
108
|
var IconContextProvider = IconContext.Provider;
|
|
109
109
|
var IconContextConsumer = IconContext.Consumer;
|
|
110
110
|
/* harmony default export */ __webpack_exports__["default"] = (IconContext);
|
package/ImageContext.js
CHANGED
|
@@ -104,7 +104,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104
104
|
/* global __VISION_VERSION__ */
|
|
105
105
|
|
|
106
106
|
var ImageContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext();
|
|
107
|
-
ImageContext.displayName = "data-splunk-visualization-version-ImageContext-".concat("25.
|
|
107
|
+
ImageContext.displayName = "data-splunk-visualization-version-ImageContext-".concat("25.9.1 - 5ba41e723");
|
|
108
108
|
var ImageContextProvider = ImageContext.Provider;
|
|
109
109
|
var ImageContextConsumer = ImageContext.Consumer;
|
|
110
110
|
/* harmony default export */ __webpack_exports__["default"] = (ImageContext);
|
package/MapContext.js
CHANGED
|
@@ -106,7 +106,7 @@ var React = __webpack_require__(7);
|
|
|
106
106
|
var MapContext = React.createContext({
|
|
107
107
|
defaultTileConfig: []
|
|
108
108
|
});
|
|
109
|
-
MapContext.displayName = "data-splunk-visualization-version-MapContext-".concat("25.
|
|
109
|
+
MapContext.displayName = "data-splunk-visualization-version-MapContext-".concat("25.9.1 - 5ba41e723");
|
|
110
110
|
exports.MapContextProvider = MapContext.Provider;
|
|
111
111
|
exports.MapContextConsumer = MapContext.Consumer;
|
|
112
112
|
exports.default = MapContext;
|
|
@@ -126,7 +126,10 @@ exports.testTileConfig = [{
|
|
|
126
126
|
type: 'raster',
|
|
127
127
|
source: 'base-tiles',
|
|
128
128
|
minzoom: 0,
|
|
129
|
-
maxzoom: 12
|
|
129
|
+
maxzoom: 12,
|
|
130
|
+
paint: {
|
|
131
|
+
'raster-fade-duration': 0
|
|
132
|
+
}
|
|
130
133
|
}]
|
|
131
134
|
}, {
|
|
132
135
|
name: 'Cart Base Map - dark',
|
|
@@ -144,7 +147,10 @@ exports.testTileConfig = [{
|
|
|
144
147
|
type: 'raster',
|
|
145
148
|
source: 'base-tiles',
|
|
146
149
|
minzoom: 0,
|
|
147
|
-
maxzoom: 12
|
|
150
|
+
maxzoom: 12,
|
|
151
|
+
paint: {
|
|
152
|
+
'raster-fade-duration': 0
|
|
153
|
+
}
|
|
148
154
|
}]
|
|
149
155
|
}];
|
|
150
156
|
|
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"],"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;
|
|
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,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,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":""}
|
package/TimezoneContext.js
CHANGED
|
@@ -104,7 +104,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
104
104
|
exports.TimezoneContextConsumer = exports.TimezoneContextProvider = void 0;
|
|
105
105
|
var React = __webpack_require__(7);
|
|
106
106
|
var TimezoneContext = React.createContext({});
|
|
107
|
-
TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("25.
|
|
107
|
+
TimezoneContext.displayName = "data-splunk-visualization-version-TimezoneContext-".concat("25.9.1 - 5ba41e723");
|
|
108
108
|
exports.TimezoneContextProvider = TimezoneContext.Provider;
|
|
109
109
|
exports.TimezoneContextConsumer = TimezoneContext.Consumer;
|
|
110
110
|
exports.default = TimezoneContext;
|
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.
|
|
5
|
+
"version": "25.9.1",
|
|
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.
|
|
34
|
+
"@splunk/visualization-build-tools": "^25.9.1",
|
|
35
35
|
"@splunk/webpack-configs": "^4.0.0",
|
|
36
36
|
"babel-jest": "^26.0.0",
|
|
37
37
|
"babel-loader": "^8.2.1",
|