Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Feat] Geo-Operations: create and apply polygon filters (#595)

Giuseppe Macrì3a01a4fcd65b
diff --git a/docs/api-reference/actions/actions.md b/docs/api-reference/actions/actions.md
index 8da3dd52a..7e9ff4d5d 100644
--- a/docs/api-reference/actions/actions.md
+++ b/docs/api-reference/actions/actions.md
@@ -43,44 +43,48 @@
- [removeFilter][74]
- [removeLayer][76]
- [reorderLayer][78]
- - [setFilter][81]
- - [setFilterPlot][83]
- - [showDatasetTable][85]
- - [toggleAnimation][87]
- - [toggleLayerForMap][89]
- - [updateAnimationSpeed][91]
- - [updateLayerBlending][93]
- - [updateVisData][95]
-- [uiStateActions][97]
- - [addNotification][98]
- - [cleanupExportImage][100]
- - [hideExportDropdown][101]
- - [openDeleteModal][102]
- - [removeNotification][104]
- - [setExportData][106]
- - [setExportDataType][107]
- - [setExportFiltered][109]
- - [setExportImageDataUri][111]
- - [setExportSelectedDataset][113]
- - [setRatio][115]
- - [setResolution][117]
- - [setUserMapboxAccessToken][119]
- - [showExportDropdown][121]
- - [startExportingImage][123]
- - [toggleLegend][124]
- - [toggleMapControl][125]
- - [toggleModal][127]
- - [toggleSidePanel][129]
-- [rootActions][131]
- - [deleteEntry][132]
- - [registerEntry][134]
- - [renameEntry][136]
-- [mapStateActions][138]
- - [fitBounds][139]
- - [togglePerspective][142]
- - [toggleSplitMap][144]
- - [updateMap][147]
-- [setExportMapFormat][150]
+ - [setEditorMode][81]
+ - [setFilter][84]
+ - [setFilterPlot][86]
+ - [showDatasetTable][88]
+ - [toggleFilterAnimation][90]
+ - [toggleLayerForMap][92]
+ - [updateAnimationTime][94]
+ - [updateFilterAnimationSpeed][96]
+ - [updateLayerAnimationSpeed][98]
+ - [updateLayerBlending][100]
+ - [updateVisData][102]
+- [uiStateActions][104]
+ - [addNotification][105]
+ - [cleanupExportImage][107]
+ - [hideExportDropdown][108]
+ - [openDeleteModal][109]
+ - [removeNotification][111]
+ - [setExportData][113]
+ - [setExportDataType][114]
+ - [setExportFiltered][116]
+ - [setExportImageDataUri][118]
+ - [setExportSelectedDataset][120]
+ - [setRatio][122]
+ - [setResolution][124]
+ - [setUserMapboxAccessToken][126]
+ - [showExportDropdown][128]
+ - [startExportingImage][130]
+ - [toggleLegend][131]
+ - [toggleMapControl][132]
+ - [toggleModal][134]
+ - [toggleSidePanel][136]
+- [rootActions][138]
+ - [deleteEntry][139]
+ - [registerEntry][141]
+ - [renameEntry][143]
+- [mapStateActions][145]
+ - [fitBounds][146]
+ - [togglePerspective][149]
+ - [toggleSplitMap][151]
+ - [updateMap][154]
+- [layerColorUIChange][157]
+- [setExportMapFormat][159]
## forwardActions
@@ -92,8 +96,8 @@ Returns an action dispatcher that wraps and forwards the actions to a specific i
**Parameters**
-- `id` **[string][152]** instance id
-- `dispatch` **[Function][153]** action dispatcher
+- `id` **[string][161]** instance id
+- `dispatch` **[Function][162]** action dispatcher
**Examples**
@@ -125,9 +129,9 @@ Whether an action is a forward action
**Parameters**
-- `action` **[Object][154]** the action object
+- `action` **[Object][163]** the action object
-Returns **[boolean][155]** boolean - whether the action is a forward action
+Returns **[boolean][164]** boolean - whether the action is a forward action
### unwrap
@@ -135,9 +139,9 @@ Unwrap an action
**Parameters**
-- `action` **[Object][154]** the action object
+- `action` **[Object][163]** the action object
-Returns **[Object][154]** unwrapped action
+Returns **[Object][163]** unwrapped action
### wrapTo
@@ -170,8 +174,8 @@ A forward action looks like this
**Parameters**
-- `id` **[string][152]** The id to forward to
-- `action` **[Object][154]** the action object {type: string, payload: \*}
+- `id` **[string][161]** The id to forward to
+- `action` **[Object][163]** the action object {type: string, payload: \*}
**Examples**
@@ -190,7 +194,7 @@ this.props.dispatch(wrapToMap1(togglePerspective()));
Kepler.gl action types, can be listened by reducers to perform additional tasks whenever an action is called in kepler.gl
-Type: [Object][154]
+Type: [Object][163]
**Examples**
@@ -233,104 +237,105 @@ It should not be called from outside kepler.gl without a valid `inputStyle` in t
param {void}
- **ActionTypes**: [`ActionTypes.ADD_CUSTOM_MAP_STYLE`][12]
-- **Updaters**: [`mapStyleUpdaters.addCustomMapStyleUpdater`][156]
+- **Updaters**: [`mapStyleUpdaters.addCustomMapStyleUpdater`][165]
### inputMapStyle
Input a custom map style object
- **ActionTypes**: [`ActionTypes.INPUT_MAP_STYLE`][12]
-- **Updaters**: [`mapStyleUpdaters.inputMapStyleUpdater`][157]
+- **Updaters**: [`mapStyleUpdaters.inputMapStyleUpdater`][166]
**Parameters**
-- `inputStyle` **[Object][154]**
- - `inputStyle.url` **[string][152]** style url e.g. `'mapbox://styles/heshan/xxxxxyyyyzzz'`
- - `inputStyle.id` **[string][152]** style url e.g. `'custom_style_1'`
- - `inputStyle.style` **[Object][154]** actual mapbox style json
- - `inputStyle.name` **[string][152]** style name
- - `inputStyle.layerGroups` **[Object][154]** layer groups that can be used to set map layer visibility
- - `inputStyle.icon` **[Object][154]** icon image data url
+- `inputStyle` **[Object][163]**
+ - `inputStyle.url` **[string][161]** style url e.g. `'mapbox://styles/heshan/xxxxxyyyyzzz'`
+ - `inputStyle.id` **[string][161]** style url e.g. `'custom_style_1'`
+ - `inputStyle.style` **[Object][163]** actual mapbox style json
+ - `inputStyle.name` **[string][161]** style name
+ - `inputStyle.layerGroups` **[Object][163]** layer groups that can be used to set map layer visibility
+ - `inputStyle.icon` **[Object][163]** icon image data url
+- `mapState` **[Object][163]** mapState is optional
### loadCustomMapStyle
Callback when a custom map style object is received
- **ActionTypes**: [`ActionTypes.LOAD_CUSTOM_MAP_STYLE`][12]
-- **Updaters**: [`mapStyleUpdaters.loadCustomMapStyleUpdater`][158]
+- **Updaters**: [`mapStyleUpdaters.loadCustomMapStyleUpdater`][167]
**Parameters**
-- `customMapStyle` **[Object][154]**
- - `customMapStyle.icon` **[string][152]**
- - `customMapStyle.style` **[Object][154]**
- - `customMapStyle.error` **any**
+- `customMapStyle` **[Object][163]**
+ - `customMapStyle.icon` **[string][161]**
+ - `customMapStyle.style` **[Object][163]**
+ - `customMapStyle.error` **any**
### loadMapStyleErr
Callback when load map style error
- **ActionTypes**: [`ActionTypes.LOAD_MAP_STYLE_ERR`][12]
-- **Updaters**: [`mapStyleUpdaters.loadMapStyleErrUpdater`][159]
+- **Updaters**: [`mapStyleUpdaters.loadMapStyleErrUpdater`][168]
**Parameters**
-- `error` **any**
+- `error` **any**
### loadMapStyles
Callback when load map style success
- **ActionTypes**: [`ActionTypes.LOAD_MAP_STYLES`][12]
-- **Updaters**: [`mapStyleUpdaters.loadMapStylesUpdater`][160]
+- **Updaters**: [`mapStyleUpdaters.loadMapStylesUpdater`][169]
**Parameters**
-- `newStyles` **[Object][154]** a `{[id]: style}` mapping
+- `newStyles` **[Object][163]** a `{[id]: style}` mapping
### mapConfigChange
Update `visibleLayerGroups`to change layer group visibility
- **ActionTypes**: [`ActionTypes.MAP_CONFIG_CHANGE`][12]
-- **Updaters**: [`mapStyleUpdaters.mapConfigChangeUpdater`][161]
+- **Updaters**: [`mapStyleUpdaters.mapConfigChangeUpdater`][170]
**Parameters**
-- `mapStyle` **[Object][154]** new config `{visibleLayerGroups: {label: false, road: true, background: true}}`
+- `mapStyle` **[Object][163]** new config `{visibleLayerGroups: {label: false, road: true, background: true}}`
### mapStyleChange
Change to another map style. The selected style should already been loaded into `mapStyle.mapStyles`
- **ActionTypes**: [`ActionTypes.MAP_STYLE_CHANGE`][12]
-- **Updaters**: [`mapStyleUpdaters.mapStyleChangeUpdater`][162]
+- **Updaters**: [`mapStyleUpdaters.mapStyleChangeUpdater`][171]
**Parameters**
-- `styleType` **[string][152]** the style to change to
+- `styleType` **[string][161]** the style to change to
### requestMapStyles
Request map style style object based on style.url.
- **ActionTypes**: [`ActionTypes.REQUEST_MAP_STYLES`][12]
-- **Updaters**: [`mapStyleUpdaters.requestMapStylesUpdater`][163]
+- **Updaters**: [`mapStyleUpdaters.requestMapStylesUpdater`][172]
**Parameters**
-- `mapStyles` **[Array][164]<[Object][154]>**
+- `mapStyles` **[Array][173]<[Object][163]>**
### set3dBuildingColor
Set 3d building layer group color
- **ActionTypes**: [`ActionTypes.SET_3D_BUILDING_COLOR`][12]
-- **Updaters**: [`mapStyleUpdaters.set3dBuildingColorUpdater`][165]
+- **Updaters**: [`mapStyleUpdaters.set3dBuildingColorUpdater`][174]
**Parameters**
-- `color` **[Array][164]** [r, g, b]
+- `color` **[Array][173]** [r, g, b]
## main
@@ -340,7 +345,7 @@ is listened by all subreducers,
### addDataToMap
Add data to kepler.gl reducer, prepare map with preset configuration if config is passed.
-Kepler.gl provides a handy set of utils to parse data from different formats to the `data` object required in dataset. You rarely need to manually format the data obejct.
+Kepler.gl provides a handy set of utils to parse data from different format to the `data` object required in dataset. You rarely need to manually format the data obejct.
Use `KeplerGlSchema.getConfigToSave` to generate a json blob of the currents instance config.
The config object value will always have higher precedence than the options properties.
@@ -349,27 +354,27 @@ Kepler.gl uses `dataId` in the config to match with loaded dataset. If you pass
to match the `info.id` of your dataset to the `dataId` in each `layer`, `filter` and `interactionConfig.tooltips.fieldsToShow`
- **ActionTypes**: [`ActionTypes.ADD_DATA_TO_MAP`][12]
-- **Updaters**: [`combinedUpdaters.addDataToMapUpdater`][166]
+- **Updaters**: [`combinedUpdaters.addDataToMapUpdater`][175]
**Parameters**
-- `data` **[Object][154]** **\*required**
- - `data.datasets` **([Array][164]<[Object][154]> | [Object][154])** **\*required** datasets can be a dataset or an array of datasets
+- `data` **[Object][163]**
+ - `data.datasets` **([Array][173]<[Object][163]> | [Object][163])** **\*required** datasets can be a dataset or an array of datasets
Each dataset object needs to have `info` and `data` property.
- - `data.datasets.info` **[Object][154]** \-info of a dataset
- - `data.datasets.info.id` **[string][152]** id of this dataset. If config is defined, `id` should matches the `dataId` in config.
- - `data.datasets.info.label` **[string][152]** A display name of this dataset
- - `data.datasets.data` **[Object][154]** **\*required** The data object, in a tabular format with 2 properties `fields` and `rows`
- - `data.datasets.data.fields` **[Array][164]<[Object][154]>** **\*required** Array of fields,
- - `data.datasets.data.fields.name` **[string][152]** **\*required** Name of the field,
- - `data.datasets.data.rows` **[Array][164]<[Array][164]>** **\*required** Array of rows, in a tabular format with `fields` and `rows`
- - `data.options` **[Object][154]**
- - `data.options.centerMap` **[boolean][155]** `default: true` if `centerMap` is set to `true` kepler.gl will
+ - `data.datasets.info` **[Object][163]** \-info of a dataset
+ - `data.datasets.info.id` **[string][161]** id of this dataset. If config is defined, `id` should matches the `dataId` in config.
+ - `data.datasets.info.label` **[string][161]** A display name of this dataset
+ - `data.datasets.data` **[Object][163]** **\*required** The data object, in a tabular format with 2 properties `fields` and `rows`
+ - `data.datasets.data.fields` **[Array][173]<[Object][163]>** **\*required** Array of fields,
+ - `data.datasets.data.fields.name` **[string][161]** **\*required** Name of the field,
+ - `data.datasets.data.rows` **[Array][173]<[Array][173]>** **\*required** Array of rows, in a tabular format with `fields` and `rows`
+ - `data.options` **[Object][163]**
+ - `data.options.centerMap` **[boolean][164]** `default: true` if `centerMap` is set to `true` kepler.gl will
place the map view within the data points boundaries. `options.centerMap` will override `config.mapState` if passed in.
- - `data.options.readOnly` **[boolean][155]** `default: false` if `readOnly` is set to `true`
+ - `data.options.readOnly` **[boolean][164]** `default: false` if `readOnly` is set to `true`
the left setting panel will be hidden
- - `data.options.keepExistingConfig` **[boolean][155]** whether to keep exiting map data and associated layer filter interaction config `default: false`.
- - `data.config` **[Object][154]** this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}
+ - `data.options.keepExistingConfig` **[boolean][164]** whether to keep exiting map data and associated layer filter interaction config `default: false`.
+ - `data.config` **[Object][163]** this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}
**Examples**
@@ -428,14 +433,14 @@ this.props.dispatch(
Initialize kepler.gl reducer. It is used to pass in `mapboxApiAccessToken` to `mapStyle` reducer.
- **ActionTypes**: [`ActionTypes.INIT`][12]
-- **Updaters**: [`mapStyleUpdaters.initMapStyleUpdater`][167]
+- **Updaters**: [`mapStyleUpdaters.initMapStyleUpdater`][176]
**Parameters**
-- `payload` **[Object][154]**
- - `payload.mapboxApiAccessToken` **[string][152]** mapboxApiAccessToken to be saved to mapStyle reducer
- - `payload.mapboxApiUrl` **[string][152]** mapboxApiUrl to be saved to mapStyle reducer.
- - `payload.mapStylesReplaceDefault` **[Boolean][155]** mapStylesReplaceDefault to be saved to mapStyle reducer
+- `payload` **[Object][163]**
+ - `payload.mapboxApiAccessToken` **[string][161]** mapboxApiAccessToken to be saved to mapStyle reducer
+ - `payload.mapboxApiUrl` **[string][161]** mapboxApiUrl to be saved to mapStyle reducer.
+ - `payload.mapStylesReplaceDefault` **[Boolean][164]** mapStylesReplaceDefault to be saved to mapStyle reducer
### receiveMapConfig
@@ -451,17 +456,17 @@ It is also useful when you want to prepare the kepler.gl instance with some pres
It will reset current configuration first then apply config to it.
- **ActionTypes**: [`ActionTypes.RECEIVE_MAP_CONFIG`][12]
-- **Updaters**: [`mapStateUpdaters.receiveMapConfigUpdater`][168], [`mapStyleUpdaters.receiveMapConfigUpdater`][169], [`visStateUpdaters.receiveMapConfigUpdater`][170]
+- **Updaters**: [`mapStateUpdaters.receiveMapConfigUpdater`][177], [`mapStyleUpdaters.receiveMapConfigUpdater`][178], [`visStateUpdaters.receiveMapConfigUpdater`][179]
**Parameters**
-- `config` **[Object][154]** **\*required** The Config Object
-- `options` **[Object][154]** **\*optional** The Option object
- - `options.centerMap` **[boolean][155]** `default: true` if `centerMap` is set to `true` kepler.gl will
+- `config` **[Object][163]** **\*required** The Config Object
+- `options` **[Object][163]** **\*optional** The Option object
+ - `options.centerMap` **[boolean][164]** `default: true` if `centerMap` is set to `true` kepler.gl will
place the map view within the data points boundaries
- - `options.readOnly` **[boolean][155]** `default: false` if `readOnly` is set to `true`
+ - `options.readOnly` **[boolean][164]** `default: false` if `readOnly` is set to `true`
the left setting panel will be hidden
- - `options.keepExistingConfig` **[boolean][155]** whether to keep exiting layer filter and interaction config `default: false`.
+ - `options.keepExistingConfig` **[boolean][164]** whether to keep exiting layer filter and interaction config `default: false`.
**Examples**
@@ -478,7 +483,7 @@ this.props.dispatch(receiveMapConfig(parsedConfig));
Reset all sub-reducers to its initial state. This can be used to clear out all configuration in the reducer.
- **ActionTypes**: [`ActionTypes.RESET_MAP_CONFIG`][12]
-- **Updaters**: [`mapStateUpdaters.resetMapConfigUpdater`][171], [`mapStyleUpdaters.resetMapConfigMapStyleUpdater`][172], [`visStateUpdaters.resetMapConfigUpdater`][173]
+- **Updaters**: [`mapStateUpdaters.resetMapConfigUpdater`][180], [`mapStyleUpdaters.resetMapConfigMapStyleUpdater`][181], [`mapStyleUpdaters.resetMapConfigMapStyleUpdater`][181], [`visStateUpdaters.resetMapConfigUpdater`][182]
## visStateActions
@@ -491,79 +496,79 @@ filters and interaction settings.
Add a new filter
- **ActionTypes**: [`ActionTypes.ADD_FILTER`][12]
-- **Updaters**: [`visStateUpdaters.addFilterUpdater`][174]
+- **Updaters**: [`visStateUpdaters.addFilterUpdater`][183]
**Parameters**
-- `dataId` **[string][152]** dataset `id` this new filter is associated with
+- `dataId` **[string][161]** dataset `id` this new filter is associated with
-Returns **{type: ActionTypes.ADD_FILTER, dataId: dataId}**
+Returns **{type: ActionTypes.ADD_FILTER, dataId: dataId}**
### addLayer
Add a new layer
- **ActionTypes**: [`ActionTypes.ADD_LAYER`][12]
-- **Updaters**: [`visStateUpdaters.addLayerUpdater`][175]
+- **Updaters**: [`visStateUpdaters.addLayerUpdater`][184]
**Parameters**
-- `props` **[Object][154]** new layer props
+- `props` **[Object][163]** new layer props
-Returns **{type: ActionTypes.ADD_LAYER, props: props}**
+Returns **{type: ActionTypes.ADD_LAYER, props: props}**
### enlargeFilter
Show larger time filter at bottom for time playback (apply to time filter only)
- **ActionTypes**: [`ActionTypes.ENLARGE_FILTER`][12]
-- **Updaters**: [`visStateUpdaters.enlargeFilterUpdater`][176]
+- **Updaters**: [`visStateUpdaters.enlargeFilterUpdater`][185]
**Parameters**
-- `idx` **[Number][177]** index of filter to enlarge
+- `idx` **[Number][186]** index of filter to enlarge
-Returns **{type: ActionTypes.ENLARGE_FILTER, idx: idx}**
+Returns **{type: ActionTypes.ENLARGE_FILTER, idx: idx}**
### interactionConfigChange
Update `interactionConfig`
- **ActionTypes**: [`ActionTypes.INTERACTION_CONFIG_CHANGE`][12]
-- **Updaters**: [`visStateUpdaters.interactionConfigChangeUpdater`][178]
+- **Updaters**: [`visStateUpdaters.interactionConfigChangeUpdater`][187]
**Parameters**
-- `config` **[Object][154]** new config as key value map: `{tooltip: {enabled: true}}`
+- `config` **[Object][163]** new config as key value map: `{tooltip: {enabled: true}}`
-Returns **{type: ActionTypes.INTERACTION_CONFIG_CHANGE, config: config}**
+Returns **{type: ActionTypes.INTERACTION_CONFIG_CHANGE, config: config}**
### layerConfigChange
Update layer base config: dataId, label, column, isVisible
- **ActionTypes**: [`ActionTypes.LAYER_CONFIG_CHANGE`][12]
-- **Updaters**: [`visStateUpdaters.layerConfigChangeUpdater`][179]
+- **Updaters**: [`visStateUpdaters.layerConfigChangeUpdater`][188]
**Parameters**
-- `oldLayer` **[Object][154]** layer to be updated
-- `newConfig` **[Object][154]** new config
+- `oldLayer` **[Object][163]** layer to be updated
+- `newConfig` **[Object][163]** new config
-Returns **{type: ActionTypes.LAYER_CONFIG_CHANGE, oldLayer: oldLayer, newConfig: newConfig}**
+Returns **{type: ActionTypes.LAYER_CONFIG_CHANGE, oldLayer: oldLayer, newConfig: newConfig}**
### layerTextLabelChange
Update layer text label
- **ActionTypes**: [`ActionTypes.LAYER_TEXT_LABEL_CHANGE`][12]
-- **Updaters**: [`visStateUpdaters.layerTextLabelChangeUpdater`][180]
+- **Updaters**: [`visStateUpdaters.layerTextLabelChangeUpdater`][189]
**Parameters**
-- `oldLayer` **[Object][154]** layer to be updated
-- `idx` **[Number][177]** \-`idx` of text label to be updated
-- `prop` **[string][152]** `prop` of text label, e,g, `anchor`, `alignment`, `color`, `size`, `field`
+- `oldLayer` **[Object][163]** layer to be updated
+- `idx` **[Number][186]** \-`idx` of text label to be updated
+- `prop` **[string][161]** `prop` of text label, e,g, `anchor`, `alignment`, `color`, `size`, `field`
- `value` **any** new value
### layerTypeChange
@@ -571,169 +576,169 @@ Update layer text label
Update layer type. Previews layer config will be copied if applicable.
- **ActionTypes**: [`ActionTypes.LAYER_TYPE_CHANGE`][12]
-- **Updaters**: [`visStateUpdaters.layerTypeChangeUpdater`][181]
+- **Updaters**: [`visStateUpdaters.layerTypeChangeUpdater`][190]
**Parameters**
-- `oldLayer` **[Object][154]** layer to be updated
-- `newType` **[string][152]** new type
+- `oldLayer` **[Object][163]** layer to be updated
+- `newType` **[string][161]** new type
-Returns **{type: ActionTypes.LAYER_TYPE_CHANGE, oldLayer: oldLayer, newType: newType}**
+Returns **{type: ActionTypes.LAYER_TYPE_CHANGE, oldLayer: oldLayer, newType: newType}**
### layerVisConfigChange
Update layer `visConfig`
- **ActionTypes**: [`ActionTypes.LAYER_VIS_CONFIG_CHANGE`][12]
-- **Updaters**: [`visStateUpdaters.layerVisConfigChangeUpdater`][182]
+- **Updaters**: [`visStateUpdaters.layerVisConfigChangeUpdater`][191]
**Parameters**
-- `oldLayer` **[Object][154]** layer to be updated
-- `newVisConfig` **[Object][154]** new visConfig as a key value map: e.g. `{opacity: 0.8}`
+- `oldLayer` **[Object][163]** layer to be updated
+- `newVisConfig` **[Object][163]** new visConfig as a key value map: e.g. `{opacity: 0.8}`
-Returns **{type: ActionTypes.LAYER_VIS_CONFIG_CHANGE, oldLayer: oldLayer, newVisConfig: newVisConfig}**
+Returns **{type: ActionTypes.LAYER_VIS_CONFIG_CHANGE, oldLayer: oldLayer, newVisConfig: newVisConfig}**
### layerVisualChannelConfigChange
Update layer visual channel
- **ActionTypes**: [`ActionTypes.LAYER_VISUAL_CHANNEL_CHANGE`][12]
-- **Updaters**: [`visStateUpdaters.layerVisualChannelChangeUpdater`][183]
+- **Updaters**: [`visStateUpdaters.layerVisualChannelChangeUpdater`][192]
**Parameters**
-- `oldLayer` **[Object][154]** layer to be updated
-- `newConfig` **[Object][154]** new visual channel config
-- `channel` **[string][152]** channel to be updated
+- `oldLayer` **[Object][163]** layer to be updated
+- `newConfig` **[Object][163]** new visual channel config
+- `channel` **[string][161]** channel to be updated
-Returns **{type: ActionTypes.LAYER_VISUAL_CHANNEL_CHANGE, oldLayer: oldLayer, newConfig: newConfig, channel: channel}**
+Returns **{type: ActionTypes.LAYER_VISUAL_CHANNEL_CHANGE, oldLayer: oldLayer, newConfig: newConfig, channel: channel}**
### loadFiles
Trigger file loading dispatch `addDataToMap` if succeed, or `loadFilesErr` if failed
- **ActionTypes**: [`ActionTypes.LOAD_FILES`][12]
-- **Updaters**: [`visStateUpdaters.loadFilesUpdater`][184]
+- **Updaters**: [`uiStateUpdaters.loadFilesUpdater`][193], [`visStateUpdaters.loadFilesUpdater`][194]
**Parameters**
-- `files` **[Array][164]<[Object][154]>** array of fileblob
+- `files` **[Array][173]<[Object][163]>** array of fileblob
-Returns **{type: ActionTypes.LOAD_FILES, files: any}**
+Returns **{type: ActionTypes.LOAD_FILES, files: any}**
### loadFilesErr
Trigger loading file error
- **ActionTypes**: [`ActionTypes.LOAD_FILES_ERR`][12]
-- **Updaters**: [`visStateUpdaters.loadFilesErrUpdater`][185]
+- **Updaters**: [`uiStateUpdaters.loadFilesErrUpdater`][195], [`visStateUpdaters.loadFilesErrUpdater`][196]
**Parameters**
-- `error` **any**
+- `error` **any**
-Returns **{type: ActionTypes.LOAD_FILES_ERR, error: any}**
+Returns **{type: ActionTypes.LOAD_FILES_ERR, error: [Object][163]}**
### onLayerClick
Trigger layer click event with clicked object
- **ActionTypes**: [`ActionTypes.LAYER_CLICK`][12]
-- **Updaters**: [`visStateUpdaters.layerClickUpdater`][186]
+- **Updaters**: [`visStateUpdaters.layerClickUpdater`][197]
**Parameters**
-- `info` **[Object][154]** Object clicked, returned by deck.gl
+- `info` **[Object][163]** Object clicked, returned by deck.gl
-Returns **{type: ActionTypes.LAYER_CLICK, info: info}**
+Returns **{type: ActionTypes.LAYER_CLICK, info: info}**
### onLayerHover
Trigger layer hover event with hovered object
- **ActionTypes**: [`ActionTypes.LAYER_HOVER`][12]
-- **Updaters**: [`visStateUpdaters.layerHoverUpdater`][187]
+- **Updaters**: [`visStateUpdaters.layerHoverUpdater`][198]
**Parameters**
-- `info` **[Object][154]** Object hovered, returned by deck.gl
+- `info` **[Object][163]** Object hovered, returned by deck.gl
-Returns **{type: ActionTypes.LAYER_HOVER, info: info}**
+Returns **{type: ActionTypes.LAYER_HOVER, info: info}**
### onMapClick
Trigger map click event, unselect clicked object
- **ActionTypes**: [`ActionTypes.MAP_CLICK`][12]
-- **Updaters**: [`visStateUpdaters.mapClickUpdater`][188]
+- **Updaters**: [`visStateUpdaters.mapClickUpdater`][199]
-Returns **{type: ActionTypes.MAP_CLICK}**
+Returns **{type: ActionTypes.MAP_CLICK}**
### onMouseMove
Trigger map mouse moveevent, payload would be
React-map-gl PointerEvent
-[https://uber.github.io/react-map-gl/#/documentation/api-reference/pointer-event][189]
+[https://uber.github.io/react-map-gl/#/documentation/api-reference/pointer-event][200]
- **ActionTypes**: [`ActionTypes.MOUSE_MOVE`][12]
-- **Updaters**: [`visStateUpdaters.mouseMoveUpdater`][190]
+- **Updaters**: [`visStateUpdaters.mouseMoveUpdater`][201]
**Parameters**
-- `evt` **[Object][154]** PointerEvent
+- `evt` **[Object][163]** PointerEvent
-Returns **{type: ActionTypes.MAP_CLICK}**
+Returns **{type: ActionTypes.MAP_CLICK}**
### removeDataset
Remove a dataset and all layers, filters, tooltip configs that based on it
- **ActionTypes**: [`ActionTypes.REMOVE_DATASET`][12]
-- **Updaters**: [`visStateUpdaters.removeDatasetUpdater`][191]
+- **Updaters**: [`visStateUpdaters.removeDatasetUpdater`][202]
**Parameters**
-- `key` **[string][152]** dataset id
+- `key` **[string][161]** dataset id
-Returns **{type: ActionTypes.REMOVE_DATASET, key: key}**
+Returns **{type: ActionTypes.REMOVE_DATASET, key: key}**
### removeFilter
Remove a filter from `visState.filters`, once a filter is removed, data will be re-filtered and layer will be updated
- **ActionTypes**: [`ActionTypes.REMOVE_FILTER`][12]
-- **Updaters**: [`visStateUpdaters.removeFilterUpdater`][192]
+- **Updaters**: [`visStateUpdaters.removeFilterUpdater`][203]
**Parameters**
-- `idx` **[Number][177]** idx of filter to be removed
+- `idx` **[Number][186]** idx of filter to be removed
-Returns **{type: ActionTypes.REMOVE_FILTER, idx: idx}**
+Returns **{type: ActionTypes.REMOVE_FILTER, idx: idx}**
### removeLayer
Remove a layer
- **ActionTypes**: [`ActionTypes.REMOVE_LAYER`][12]
-- **Updaters**: [`visStateUpdaters.removeLayerUpdater`][193]
+- **Updaters**: [`visStateUpdaters.removeLayerUpdater`][204]
**Parameters**
-- `idx` **[Number][177]** idx of layer to be removed
+- `idx` **[Number][186]** idx of layer to be removed
-Returns **{type: ActionTypes.REMOVE_LAYER, idx: idx}**
+Returns **{type: ActionTypes.REMOVE_LAYER, idx: idx}**
### reorderLayer
Reorder layer, order is an array of layer indexes, index 0 will be the one at the bottom
- **ActionTypes**: [`ActionTypes.REORDER_LAYER`][12]
-- **Updaters**: [`visStateUpdaters.reorderLayerUpdater`][194]
+- **Updaters**: [`visStateUpdaters.reorderLayerUpdater`][205]
**Parameters**
-- `order` **[Array][164]<[Number][177]>** an array of layer indexes
+- `order` **[Array][173]<[Number][186]>** an array of layer indexes
**Examples**
@@ -743,130 +748,177 @@ Reorder layer, order is an array of layer indexes, index 0 will be the one at th
this.props.dispatch(reorderLayer([1, 0, 2, 3]));
```
-Returns **{type: ActionTypes.REORDER_LAYER, order: order}**
+Returns **{type: ActionTypes.REORDER_LAYER, order: order}**
+
+### setEditorMode
+
+Set the map mode
+
+- **ActionTypes**: [`ActionTypes.SET_EDITOR_MODE`][12]
+- **Updaters**: [`visStateUpdaters.setEditorModeUpdater`][206]
+
+**Parameters**
+
+- `mode` **[string][161]** one of EDITOR_MODES
+
+**Examples**
+
+```javascript
+import {setMapMode} from 'kepler.gl/actions';
+import {EDITOR_MODES} from 'kepler.gl/constants';
+
+this.props.dispatch(setMapMode(EDITOR_MODES.DRAW_POLYGON));
+```
### setFilter
Update filter property
- **ActionTypes**: [`ActionTypes.SET_FILTER`][12]
-- **Updaters**: [`visStateUpdaters.setFilterUpdater`][195]
+- **Updaters**: [`visStateUpdaters.setFilterUpdater`][207]
**Parameters**
-- `idx` **[Number][177]** \-`idx` of filter to be updated
-- `prop` **[string][152]** `prop` of filter, e,g, `dataId`, `name`, `value`
+- `idx` **[Number][186]** \-`idx` of filter to be updated
+- `prop` **[string][161]** `prop` of filter, e,g, `dataId`, `name`, `value`
- `value` **any** new value
+- `valueIndex` **[Number][186]** array properties like dataset require index in order to improve performance
-Returns **{type: ActionTypes.SET_FILTER, idx: idx, prop: prop, value: value}**
+Returns **{type: ActionTypes.SET_FILTER, idx: idx, prop: prop, value: value}**
### setFilterPlot
Set the property of a filter plot
- **ActionTypes**: [`ActionTypes.SET_FILTER_PLOT`][12]
-- **Updaters**: [`visStateUpdaters.setFilterPlotUpdater`][196]
+- **Updaters**: [`visStateUpdaters.setFilterPlotUpdater`][208]
**Parameters**
-- `idx` **[Number][177]**
-- `newProp` **[Object][154]** key value mapping of new prop `{yAxis: 'histogram'}`
+- `idx` **[Number][186]**
+- `newProp` **[Object][163]** key value mapping of new prop `{yAxis: 'histogram'}`
-Returns **{type: ActionTypes.SET_FILTER_PLOT, idx: any, newProp: any}**
+Returns **{type: ActionTypes.SET_FILTER_PLOT, idx: any, newProp: any}**
### showDatasetTable
Display dataset table in a modal
- **ActionTypes**: [`ActionTypes.SHOW_DATASET_TABLE`][12]
-- **Updaters**: [`visStateUpdaters.showDatasetTableUpdater`][197]
+- **Updaters**: [`visStateUpdaters.showDatasetTableUpdater`][209]
**Parameters**
-- `dataId` **[string][152]** dataset id to show in table
+- `dataId` **[string][161]** dataset id to show in table
-Returns **{type: ActionTypes.SHOW_DATASET_TABLE, dataId: dataId}**
+Returns **{type: ActionTypes.SHOW_DATASET_TABLE, dataId: dataId}**
-### toggleAnimation
+### toggleFilterAnimation
Start and end filter animation
- **ActionTypes**: [`ActionTypes.TOGGLE_FILTER_ANIMATION`][12]
-- **Updaters**: [`visStateUpdaters.toggleFilterAnimationUpdater`][198]
+- **Updaters**: [`visStateUpdaters.toggleFilterAnimationUpdater`][210]
**Parameters**
-- `idx` **[Number][177]** idx of filter
+- `idx` **[Number][186]** idx of filter
-Returns **{type: ActionTypes.TOGGLE_FILTER_ANIMATION, idx: idx}**
+Returns **{type: ActionTypes.TOGGLE_FILTER_ANIMATION, idx: idx}**
### toggleLayerForMap
Toggle visibility of a layer in a split map
- **ActionTypes**: [`ActionTypes.TOGGLE_LAYER_FOR_MAP`][12]
-- **Updaters**: [`visStateUpdaters.toggleLayerForMapUpdater`][199]
+- **Updaters**: [`visStateUpdaters.toggleLayerForMapUpdater`][211]
**Parameters**
-- `mapIndex` **[Number][177]** index of the split map
-- `layerId` **[string][152]** id of the layer
+- `mapIndex` **[Number][186]** index of the split map
+- `layerId` **[string][161]** id of the layer
-Returns **{type: ActionTypes.TOGGLE_LAYER_FOR_MAP, mapIndex: any, layerId: any}**
+Returns **{type: ActionTypes.TOGGLE_LAYER_FOR_MAP, mapIndex: any, layerId: any}**
-### updateAnimationSpeed
+### updateAnimationTime
+
+Reset animation
+
+- **ActionTypes**: [`ActionTypes.UPDATE_ANIMATION_TIME`][12]
+- **Updaters**: [`visStateUpdaters.updateAnimationTimeUpdater`][212]
+
+**Parameters**
+
+- `value` **[Number][186]** Current value of the slider
+
+Returns **{type: ActionTypes.UPDATE_ANIMATION_TIME, value: value}**
+
+### updateFilterAnimationSpeed
Change filter animation speed
- **ActionTypes**: [`ActionTypes.UPDATE_FILTER_ANIMATION_SPEED`][12]
-- **Updaters**: [`visStateUpdaters.updateAnimationSpeedUpdater`][200]
+- **Updaters**: [`visStateUpdaters.updateFilterAnimationSpeedUpdater`][213]
**Parameters**
-- `idx` **[Number][177]** `idx` of filter
-- `speed` **[Number][177]** `speed` to change it to. `speed` is a multiplier
+- `idx` **[Number][186]** `idx` of filter
+- `speed` **[Number][186]** `speed` to change it to. `speed` is a multiplier
+
+Returns **{type: ActionTypes.UPDATE_FILTER_ANIMATION_SPEED, idx: idx, speed: speed}**
+
+### updateLayerAnimationSpeed
-Returns **{type: ActionTypes.UPDATE_FILTER_ANIMATION_SPEED, idx: idx, speed: speed}**
+update trip layer animation speed
+
+- **ActionTypes**: [`ActionTypes.UPDATE_LAYER_ANIMATION_SPEED`][12]
+- **Updaters**: [`visStateUpdaters.updateLayerAnimationSpeedUpdater`][214]
+
+**Parameters**
+
+- `speed` **[Number][186]** `speed` to change it to. `speed` is a multiplier
+
+Returns **{type: ActionTypes.UPDATE_LAYER_ANIMATION_SPEED, speed: speed}**
### updateLayerBlending
Update layer blending mode
- **ActionTypes**: [`ActionTypes.UPDATE_LAYER_BLENDING`][12]
-- **Updaters**: [`visStateUpdaters.updateLayerBlendingUpdater`][201]
+- **Updaters**: [`visStateUpdaters.updateLayerBlendingUpdater`][215]
**Parameters**
-- `mode` **[string][152]** one of `additive`, `normal` and `subtractive`
+- `mode` **[string][161]** one of `additive`, `normal` and `subtractive`
-Returns **{type: ActionTypes.UPDATE_LAYER_BLENDING, mode: mode}**
+Returns **{type: ActionTypes.UPDATE_LAYER_BLENDING, mode: mode}**
### updateVisData
Add new dataset to `visState`, with option to load a map config along with the datasets
- **ActionTypes**: [`ActionTypes.UPDATE_VIS_DATA`][12]
-- **Updaters**: [`combinedUpdaters.updateVisDataUpdater`][202], [`visStateUpdaters.updateVisDataUpdater`][203]
+- **Updaters**: [`visStateUpdaters.updateVisDataUpdater`][216]
**Parameters**
-- `datasets` **([Array][164]<[Object][154]> | [Object][154])** **\*required** datasets can be a dataset or an array of datasets
+- `datasets` **([Array][173]<[Object][163]> | [Object][163])** **\*required** datasets can be a dataset or an array of datasets
Each dataset object needs to have `info` and `data` property.
- - `datasets.info` **[Object][154]** \-info of a dataset
- - `datasets.info.id` **[string][152]** id of this dataset. If config is defined, `id` should matches the `dataId` in config.
- - `datasets.info.label` **[string][152]** A display name of this dataset
- - `datasets.data` **[Object][154]** **\*required** The data object, in a tabular format with 2 properties `fields` and `rows`
- - `datasets.data.fields` **[Array][164]<[Object][154]>** **\*required** Array of fields,
- - `datasets.data.fields.name` **[string][152]** **\*required** Name of the field,
- - `datasets.data.rows` **[Array][164]<[Array][164]>** **\*required** Array of rows, in a tabular format with `fields` and `rows`
-- `options` **[Object][154]**
- - `options.centerMap` **[boolean][155]** `default: true` if `centerMap` is set to `true` kepler.gl will
+ - `datasets.info` **[Object][163]** \-info of a dataset
+ - `datasets.info.id` **[string][161]** id of this dataset. If config is defined, `id` should matches the `dataId` in config.
+ - `datasets.info.label` **[string][161]** A display name of this dataset
+ - `datasets.data` **[Object][163]** **\*required** The data object, in a tabular format with 2 properties `fields` and `rows`
+ - `datasets.data.fields` **[Array][173]<[Object][163]>** **\*required** Array of fields,
+ - `datasets.data.fields.name` **[string][161]** **\*required** Name of the field,
+ - `datasets.data.rows` **[Array][173]<[Array][173]>** **\*required** Array of rows, in a tabular format with `fields` and `rows`
+- `options` **[Object][163]**
+ - `options.centerMap` **[boolean][164]** `default: true` if `centerMap` is set to `true` kepler.gl will
place the map view within the data points boundaries
- - `options.readOnly` **[boolean][155]** `default: false` if `readOnly` is set to `true`
+ - `options.readOnly` **[boolean][164]** `default: false` if `readOnly` is set to `true`
the left setting panel will be hidden
-- `config` **[Object][154]** this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}
+- `config` **[Object][163]** this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}
-Returns **{type: ActionTypes.UPDATE_VIS_DATA, datasets: datasets, options: options, config: config}**
+Returns **{type: ActionTypes.UPDATE_VIS_DATA, datasets: datasets, options: options, config: config}**
## uiStateActions
@@ -880,194 +932,194 @@ It also manges which settings are selected during image and map export
Add a notification to be displayed
- **ActionTypes**: [`ActionTypes.ADD_NOTIFICATION`][12]
-- **Updaters**: [`uiStateUpdaters.addNotificationUpdater`][204]
+- **Updaters**: [`uiStateUpdaters.addNotificationUpdater`][217]
**Parameters**
-- `notification` **[Object][154]** The `notification` object to be added
+- `notification` **[Object][163]** The `notification` object to be added
### cleanupExportImage
Delete cached export image
- **ActionTypes**: [`ActionTypes.CLEANUP_EXPORT_IMAGE`][12]
-- **Updaters**: [`uiStateUpdaters.cleanupExportImage`][205]
+- **Updaters**: [`uiStateUpdaters.cleanupExportImage`][218]
### hideExportDropdown
Hide side panel header dropdown, activated by clicking the share link on top of the side panel
- **ActionTypes**: [`ActionTypes.HIDE_EXPORT_DROPDOWN`][12]
-- **Updaters**: [`uiStateUpdaters.hideExportDropdownUpdater`][206]
+- **Updaters**: [`uiStateUpdaters.hideExportDropdownUpdater`][219]
### openDeleteModal
Toggle active map control panel
- **ActionTypes**: [`ActionTypes.OPEN_DELETE_MODAL`][12]
-- **Updaters**: [`uiStateUpdaters.openDeleteModalUpdater`][207]
+- **Updaters**: [`uiStateUpdaters.openDeleteModalUpdater`][220]
**Parameters**
-- `datasetId` **[string][152]** `id` of the dataset to be deleted
+- `datasetId` **[string][161]** `id` of the dataset to be deleted
### removeNotification
Remove a notification
- **ActionTypes**: [`ActionTypes.REMOVE_NOTIFICATION`][12]
-- **Updaters**: [`uiStateUpdaters.removeNotificationUpdater`][208]
+- **Updaters**: [`uiStateUpdaters.removeNotificationUpdater`][221]
**Parameters**
-- `id` **[string][152]** `id` of the notification to be removed
+- `id` **[string][161]** `id` of the notification to be removed
### setExportData
Whether to including data in map config, toggle between `true` or `false`
- **ActionTypes**: [`ActionTypes.SET_EXPORT_DATA`][12]
-- **Updaters**: [`uiStateUpdaters.setExportDataUpdater`][209]
+- **Updaters**: [`uiStateUpdaters.setExportDataUpdater`][222]
### setExportDataType
Set data format for exporting data
- **ActionTypes**: [`ActionTypes.SET_EXPORT_DATA_TYPE`][12]
-- **Updaters**: [`uiStateUpdaters.setExportDataTypeUpdater`][210]
+- **Updaters**: [`uiStateUpdaters.setExportDataTypeUpdater`][223]
**Parameters**
-- `dataType` **[string][152]** one of `'text/csv'`
+- `dataType` **[string][161]** one of `'text/csv'`
### setExportFiltered
Whether to export filtered data, `true` or `false`
- **ActionTypes**: [`ActionTypes.SET_EXPORT_FILTERED`][12]
-- **Updaters**: [`uiStateUpdaters.setExportFilteredUpdater`][211]
+- **Updaters**: [`uiStateUpdaters.setExportFilteredUpdater`][224]
**Parameters**
-- `payload` **[boolean][155]** set `true` to ony export filtered data
+- `payload` **[boolean][164]** set `true` to ony export filtered data
### setExportImageDataUri
Set `exportImage.setExportImageDataUri` to a dataUri
- **ActionTypes**: [`ActionTypes.SET_EXPORT_IMAGE_DATA_URI`][12]
-- **Updaters**: [`uiStateUpdaters.setExportImageDataUri`][212]
+- **Updaters**: [`uiStateUpdaters.setExportImageDataUri`][225]
**Parameters**
-- `dataUri` **[string][152]** export image data uri
+- `dataUri` **[string][161]** export image data uri
### setExportSelectedDataset
Set selected dataset for export
- **ActionTypes**: [`ActionTypes.SET_EXPORT_SELECTED_DATASET`][12]
-- **Updaters**: [`uiStateUpdaters.setExportSelectedDatasetUpdater`][213]
+- **Updaters**: [`uiStateUpdaters.setExportSelectedDatasetUpdater`][226]
**Parameters**
-- `datasetId` **[string][152]** dataset id
+- `datasetId` **[string][161]** dataset id
### setRatio
Set `exportImage.ratio`
- **ActionTypes**: [`ActionTypes.SET_RATIO`][12]
-- **Updaters**: [`uiStateUpdaters.setRatioUpdater`][214]
+- **Updaters**: [`uiStateUpdaters.setRatioUpdater`][227]
**Parameters**
-- `ratio` **[string][152]** one of `'SCREEN'`, `'FOUR_BY_THREE'` and `'SIXTEEN_BY_NINE'`
+- `ratio` **[string][161]** one of `'SCREEN'`, `'FOUR_BY_THREE'` and `'SIXTEEN_BY_NINE'`
### setResolution
Set `exportImage.resolution`
- **ActionTypes**: [`ActionTypes.SET_RESOLUTION`][12]
-- **Updaters**: [`uiStateUpdaters.setResolutionUpdater`][215]
+- **Updaters**: [`uiStateUpdaters.setResolutionUpdater`][228]
**Parameters**
-- `resolution` **[string][152]** one of `'ONE_X'`, `'TWO_X'`
+- `resolution` **[string][161]** one of `'ONE_X'`, `'TWO_X'`
### setUserMapboxAccessToken
Whether we export a mapbox access token used to create a single map html file
- **ActionTypes**: [`ActionTypes.SET_USER_MAPBOX_ACCESS_TOKEN`][12]
-- **Updaters**: [`uiStateUpdaters.setUserMapboxAccessTokenUpdater`][216]
+- **Updaters**: [`uiStateUpdaters.setUserMapboxAccessTokenUpdater`][229]
**Parameters**
-- `payload` **[string][152]** mapbox access token
+- `payload` **[string][161]** mapbox access token
### showExportDropdown
Hide and show side panel header dropdown, activated by clicking the share link on top of the side panel
- **ActionTypes**: [`ActionTypes.SHOW_EXPORT_DROPDOWN`][12]
-- **Updaters**: [`uiStateUpdaters.showExportDropdownUpdater`][217]
+- **Updaters**: [`uiStateUpdaters.showExportDropdownUpdater`][230]
**Parameters**
-- `id` **[string][152]** id of the dropdown
+- `id` **[string][161]** id of the dropdown
### startExportingImage
Set `exportImage.exporting` to true
- **ActionTypes**: [`ActionTypes.START_EXPORTING_IMAGE`][12]
-- **Updaters**: [`uiStateUpdaters.startExportingImage`][218]
+- **Updaters**: [`uiStateUpdaters.startExportingImage`][231]
### toggleLegend
Set `exportImage.legend` to true or false
- **ActionTypes**: [`ActionTypes.TOGGLE_LEGEND`][12]
-- **Updaters**: [`uiStateUpdaters.toggleLegendUpdater`][219]
+- **Updaters**: [`uiStateUpdaters.toggleLegendUpdater`][232]
### toggleMapControl
Toggle active map control panel
- **ActionTypes**: [`ActionTypes.TOGGLE_MAP_CONTROL`][12]
-- **Updaters**: [`uiStateUpdaters.toggleMapControlUpdater`][220]
+- **Updaters**: [`uiStateUpdaters.toggleMapControlUpdater`][233]
**Parameters**
-- `panelId` **[string][152]** map control panel id, one of the keys of: [`DEFAULT_MAP_CONTROLS`][221]
+- `panelId` **[string][161]** map control panel id, one of the keys of: [`DEFAULT_MAP_CONTROLS`][234]
### toggleModal
Show and hide modal dialog
- **ActionTypes**: [`ActionTypes.TOGGLE_MODAL`][12]
-- **Updaters**: [`uiStateUpdaters.toggleModalUpdater`][222]
+- **Updaters**: [`uiStateUpdaters.toggleModalUpdater`][235]
**Parameters**
-- `id` **([string][152] | null)** id of modal to be shown, null to hide modals. One of:- [`DATA_TABLE_ID`][223]
- - [`DELETE_DATA_ID`][224]
- - [`ADD_DATA_ID`][225]
- - [`EXPORT_IMAGE_ID`][226]
- - [`EXPORT_DATA_ID`][227]
- - [`ADD_MAP_STYLE_ID`][228]
+- `id` **([string][161] | null)** id of modal to be shown, null to hide modals. One of:- [`DATA_TABLE_ID`][236]
+ - [`DELETE_DATA_ID`][237]
+ - [`ADD_DATA_ID`][238]
+ - [`EXPORT_IMAGE_ID`][239]
+ - [`EXPORT_DATA_ID`][240]
+ - [`ADD_MAP_STYLE_ID`][241]
### toggleSidePanel
Toggle active side panel
- **ActionTypes**: [`ActionTypes.TOGGLE_SIDE_PANEL`][12]
-- **Updaters**: [`uiStateUpdaters.toggleSidePanelUpdater`][229]
+- **Updaters**: [`uiStateUpdaters.toggleSidePanelUpdater`][242]
**Parameters**
-- `id` **[string][152]** id of side panel to be shown, one of `layer`, `filter`, `interaction`, `map`
+- `id` **[string][161]** id of side panel to be shown, one of `layer`, `filter`, `interaction`, `map`
## rootActions
@@ -1084,11 +1136,11 @@ If `mint` is set to be `true` in the component prop, the instance state will be
the instance state and later transfer it to a newly mounted component with the same `id`
- **ActionTypes**: [`ActionTypes.DELETE_ENTRY`][12]
-- **Updaters**:
+- **Updaters**:
**Parameters**
-- `id` **[string][152]** the id of the instance to be deleted
+- `id` **[string][161]** the id of the instance to be deleted
### registerEntry
@@ -1097,29 +1149,29 @@ Note that if you dispatch actions such as adding data to a kepler.gl instance be
performed. Instance reducer can only handle actions when it is instantiated.
- **ActionTypes**: [`ActionTypes.REGISTER_ENTRY`][12]
-- **Updaters**:
+- **Updaters**:
**Parameters**
-- `payload` **[Object][154]**
- - `payload.id` **[string][152]** **\*required** The id of the instance
- - `payload.mint` **[boolean][155]** Whether to use a fresh empty state, when `mint: true` it will _always_ load a fresh state when the component is re-mounted.
+- `payload` **[Object][163]**
+ - `payload.id` **[string][161]** **\*required** The id of the instance
+ - `payload.mint` **[boolean][164]** Whether to use a fresh empty state, when `mint: true` it will _always_ load a fresh state when the component is re-mounted.
When `mint: false` it will register with existing instance state under the same `id`, when the component is unmounted then mounted again. Default: `true`
- - `payload.mapboxApiAccessToken` **[string][152]** mapboxApiAccessToken to be saved in `map-style` reducer.
- - `payload.mapboxApiUrl` **[string][152]** mapboxApiUrl to be saved in `map-style` reducer.
- - `payload.mapStylesReplaceDefault` **[Boolean][155]** mapStylesReplaceDefault to be saved in `map-style` reducer.
+ - `payload.mapboxApiAccessToken` **[string][161]** mapboxApiAccessToken to be saved in `map-style` reducer.
+ - `payload.mapboxApiUrl` **[string][161]** mapboxApiUrl to be saved in `map-style` reducer.
+ - `payload.mapStylesReplaceDefault` **[Boolean][164]** mapStylesReplaceDefault to be saved in `map-style` reducer.
### renameEntry
Rename an instance in the root reducer, keep its entire state
- **ActionTypes**: [`ActionTypes.RENAME_ENTRY`][12]
-- **Updaters**:
+- **Updaters**:
**Parameters**
-- `oldId` **[string][152]** **\*required** old id
-- `newId` **[string][152]** **\*required** new id
+- `oldId` **[string][161]** **\*required** old id
+- `newId` **[string][161]** **\*required** new id
## mapStateActions
@@ -1132,11 +1184,11 @@ toggle between single and split maps.
Fit map viewport to bounds
- **ActionTypes**: [`ActionTypes.FIT_BOUNDS`][12]
-- **Updaters**: [`mapStateUpdaters.fitBoundsUpdater`][230]
+- **Updaters**: [`mapStateUpdaters.fitBoundsUpdater`][243]
**Parameters**
-- `bounds` **[Array][164]<[Number][177]>** as `[lngMin, latMin, lngMax, latMax]`
+- `bounds` **[Array][173]<[Number][186]>** as `[lngMin, latMin, lngMax, latMax]`
**Examples**
@@ -1150,7 +1202,7 @@ this.props.dispatch(fitBounds([-122.23, 37.127, -122.11, 37.456]));
Toggle between 3d and 2d map.
- **ActionTypes**: [`ActionTypes.TOGGLE_PERSPECTIVE`][12]
-- **Updaters**: [`mapStateUpdaters.togglePerspectiveUpdater`][231]
+- **Updaters**: [`mapStateUpdaters.togglePerspectiveUpdater`][244]
**Examples**
@@ -1164,11 +1216,11 @@ this.props.dispatch(togglePerspective());
Toggle between single map or split maps
- **ActionTypes**: [`ActionTypes.TOGGLE_SPLIT_MAP`][12]
-- **Updaters**: [`mapStateUpdaters.toggleSplitMapUpdater`][232], [`visStateUpdaters.toggleSplitMapUpdater`][233]
+- **Updaters**: [`mapStateUpdaters.toggleSplitMapUpdater`][245], [`uiStateUpdaters.toggleSplitMapUpdater`][246], [`visStateUpdaters.toggleSplitMapUpdater`][247]
**Parameters**
-- `index` **[Number][177]?** index is provided, close split map at index
+- `index` **[Number][186]?** index is provided, close split map at index
**Examples**
@@ -1182,19 +1234,19 @@ this.props.dispatch(toggleSplitMap());
Update map viewport
- **ActionTypes**: [`ActionTypes.UPDATE_MAP`][12]
-- **Updaters**: [`mapStateUpdaters.updateMapUpdater`][234]
+- **Updaters**: [`mapStateUpdaters.updateMapUpdater`][248]
**Parameters**
-- `viewport` **[Object][154]** viewport object container one or any of these properties `width`, `height`, `latitude` `longitude`, `zoom`, `pitch`, `bearing`, `dragRotate`
- - `viewport.width` **[Number][177]?** Width of viewport
- - `viewport.height` **[Number][177]?** Height of viewport
- - `viewport.zoom` **[Number][177]?** Zoom of viewport
- - `viewport.pitch` **[Number][177]?** Camera angle in degrees (0 is straight down)
- - `viewport.bearing` **[Number][177]?** Map rotation in degrees (0 means north is up)
- - `viewport.latitude` **[Number][177]?** Latitude center of viewport on map in mercator projection
- - `viewport.longitude` **[Number][177]?** Longitude Center of viewport on map in mercator projection
- - `viewport.dragRotate` **[boolean][155]?** Whether to enable drag and rotate map into perspective viewport
+- `viewport` **[Object][163]** viewport object container one or any of these properties `width`, `height`, `latitude` `longitude`, `zoom`, `pitch`, `bearing`, `dragRotate`
+ - `viewport.width` **[Number][186]?** Width of viewport
+ - `viewport.height` **[Number][186]?** Height of viewport
+ - `viewport.zoom` **[Number][186]?** Zoom of viewport
+ - `viewport.pitch` **[Number][186]?** Camera angle in degrees (0 is straight down)
+ - `viewport.bearing` **[Number][186]?** Map rotation in degrees (0 means north is up)
+ - `viewport.latitude` **[Number][186]?** Latitude center of viewport on map in mercator projection
+ - `viewport.longitude` **[Number][186]?** Longitude Center of viewport on map in mercator projection
+ - `viewport.dragRotate` **[boolean][164]?** Whether to enable drag and rotate map into perspective viewport
**Examples**
@@ -1203,16 +1255,29 @@ import {updateMap} from 'kepler.gl/actions';
this.props.dispatch(updateMap({latitude: 37.75043, longitude: -122.34679, width: 800, height: 1200}));
```
+## layerColorUIChange
+
+Set the color palette ui for layer color
+
+- **ActionTypes**: [`ActionTypes.LAYER_COLOR_UI_CHANGE`][12]
+- **Updaters**: [`visStateUpdaters.layerColorUIChangeUpdater`][249]
+
+**Parameters**
+
+- `oldLayer` **[Object][163]** layer to be updated
+- `prop` **[String][161]** which color prop
+- `newConfig` **[object][163]** to be merged
+
## setExportMapFormat
-Set the expor tmap format (html, json)
+Set the export map format (html, json)
- **ActionTypes**: [`ActionTypes.SET_EXPORT_MAP_FORMAT`][12]
-- **Updaters**: [`uiStateUpdaters.setExportMapFormat`][235]
+- **Updaters**: [`uiStateUpdaters.setExportMapFormatUpdater`][250]
**Parameters**
-- `payload` **[string][152]** map format
+- `payload` **[string][161]** map format
[1]: #forwardactions
@@ -1374,312 +1439,342 @@ Set the expor tmap format (html, json)
[80]: #examples-5
-[81]: #setfilter
+[81]: #seteditormode
[82]: #parameters-33
-[83]: #setfilterplot
+[83]: #examples-6
-[84]: #parameters-34
+[84]: #setfilter
-[85]: #showdatasettable
+[85]: #parameters-34
-[86]: #parameters-35
+[86]: #setfilterplot
-[87]: #toggleanimation
+[87]: #parameters-35
-[88]: #parameters-36
+[88]: #showdatasettable
-[89]: #togglelayerformap
+[89]: #parameters-36
-[90]: #parameters-37
+[90]: #togglefilteranimation
-[91]: #updateanimationspeed
+[91]: #parameters-37
-[92]: #parameters-38
+[92]: #togglelayerformap
-[93]: #updatelayerblending
+[93]: #parameters-38
-[94]: #parameters-39
+[94]: #updateanimationtime
-[95]: #updatevisdata
+[95]: #parameters-39
-[96]: #parameters-40
+[96]: #updatefilteranimationspeed
-[97]: #uistateactions
+[97]: #parameters-40
-[98]: #addnotification
+[98]: #updatelayeranimationspeed
[99]: #parameters-41
-[100]: #cleanupexportimage
+[100]: #updatelayerblending
-[101]: #hideexportdropdown
+[101]: #parameters-42
-[102]: #opendeletemodal
+[102]: #updatevisdata
-[103]: #parameters-42
+[103]: #parameters-43
-[104]: #removenotification
+[104]: #uistateactions
-[105]: #parameters-43
+[105]: #addnotification
-[106]: #setexportdata
+[106]: #parameters-44
-[107]: #setexportdatatype
+[107]: #cleanupexportimage
-[108]: #parameters-44
+[108]: #hideexportdropdown
-[109]: #setexportfiltered
+[109]: #opendeletemodal
[110]: #parameters-45
-[111]: #setexportimagedatauri
+[111]: #removenotification
[112]: #parameters-46
-[113]: #setexportselecteddataset
+[113]: #setexportdata
-[114]: #parameters-47
+[114]: #setexportdatatype
-[115]: #setratio
+[115]: #parameters-47
-[116]: #parameters-48
+[116]: #setexportfiltered
-[117]: #setresolution
+[117]: #parameters-48
-[118]: #parameters-49
+[118]: #setexportimagedatauri
-[119]: #setusermapboxaccesstoken
+[119]: #parameters-49
-[120]: #parameters-50
+[120]: #setexportselecteddataset
-[121]: #showexportdropdown
+[121]: #parameters-50
-[122]: #parameters-51
+[122]: #setratio
-[123]: #startexportingimage
+[123]: #parameters-51
-[124]: #togglelegend
+[124]: #setresolution
-[125]: #togglemapcontrol
+[125]: #parameters-52
-[126]: #parameters-52
+[126]: #setusermapboxaccesstoken
-[127]: #togglemodal
+[127]: #parameters-53
-[128]: #parameters-53
+[128]: #showexportdropdown
-[129]: #togglesidepanel
+[129]: #parameters-54
-[130]: #parameters-54
+[130]: #startexportingimage
-[131]: #rootactions
+[131]: #togglelegend
-[132]: #deleteentry
+[132]: #togglemapcontrol
[133]: #parameters-55
-[134]: #registerentry
+[134]: #togglemodal
[135]: #parameters-56
-[136]: #renameentry
+[136]: #togglesidepanel
[137]: #parameters-57
-[138]: #mapstateactions
+[138]: #rootactions
-[139]: #fitbounds
+[139]: #deleteentry
[140]: #parameters-58
-[141]: #examples-6
+[141]: #registerentry
+
+[142]: #parameters-59
+
+[143]: #renameentry
+
+[144]: #parameters-60
+
+[145]: #mapstateactions
+
+[146]: #fitbounds
+
+[147]: #parameters-61
+
+[148]: #examples-7
+
+[149]: #toggleperspective
+
+[150]: #examples-8
+
+[151]: #togglesplitmap
+
+[152]: #parameters-62
+
+[153]: #examples-9
+
+[154]: #updatemap
+
+[155]: #parameters-63
+
+[156]: #examples-10
-[142]: #toggleperspective
+[157]: #layercoloruichange
-[143]: #examples-7
+[158]: #parameters-64
-[144]: #togglesplitmap
+[159]: #setexportmapformat
-[145]: #parameters-59
+[160]: #parameters-65
-[146]: #examples-8
+[161]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
-[147]: #updatemap
+[162]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function
-[148]: #parameters-60
+[163]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
-[149]: #examples-9
+[164]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
-[150]: #setexportmapformat
+[165]: ../reducers/map-style.md#mapstyleupdatersaddcustommapstyleupdater
-[151]: #parameters-61
+[166]: ../reducers/map-style.md#mapstyleupdatersinputmapstyleupdater
-[152]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
+[167]: ../reducers/map-style.md#mapstyleupdatersloadcustommapstyleupdater
-[153]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function
+[168]: ../reducers/map-style.md#mapstyleupdatersloadmapstyleerrupdater
-[154]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
+[169]: ../reducers/map-style.md#mapstyleupdatersloadmapstylesupdater
-[155]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
+[170]: ../reducers/map-style.md#mapstyleupdatersmapconfigchangeupdater
-[156]: ../reducers/map-style.md#mapstyleupdatersaddcustommapstyleupdater
+[171]: ../reducers/map-style.md#mapstyleupdatersmapstylechangeupdater
-[157]: ../reducers/map-style.md#mapstyleupdatersinputmapstyleupdater
+[172]: ../reducers/map-style.md#mapstyleupdatersrequestmapstylesupdater
-[158]: ../reducers/map-style.md#mapstyleupdatersloadcustommapstyleupdater
+[173]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
-[159]: ../reducers/map-style.md#mapstyleupdatersloadmapstyleerrupdater
+[174]: ../reducers/map-style.md#mapstyleupdatersset3dbuildingcolorupdater
-[160]: ../reducers/map-style.md#mapstyleupdatersloadmapstylesupdater
+[175]: ../reducers/composers.md#combinedupdatersadddatatomapupdater
-[161]: ../reducers/map-style.md#mapstyleupdatersmapconfigchangeupdater
+[176]: ../reducers/map-style.md#mapstyleupdatersinitmapstyleupdater
-[162]: ../reducers/map-style.md#mapstyleupdatersmapstylechangeupdater
+[177]: ../reducers/map-state.md#mapstateupdatersreceivemapconfigupdater
-[163]: ../reducers/map-style.md#mapstyleupdatersrequestmapstylesupdater
+[178]: ../reducers/map-style.md#mapstyleupdatersreceivemapconfigupdater
-[164]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
+[179]: ../reducers/vis-state.md#visstateupdatersreceivemapconfigupdater
-[165]: ../reducers/map-style.md#mapstyleupdatersset3dbuildingcolorupdater
+[180]: ../reducers/map-state.md#mapstateupdatersresetmapconfigupdater
-[166]: ../reducers/combine.md#combinedupdatersadddatatomapupdater
+[181]: ../reducers/map-style.md#mapstyleupdatersresetmapconfigmapstyleupdater
-[167]: ../reducers/map-style.md#mapstyleupdatersinitmapstyleupdater
+[182]: ../reducers/vis-state.md#visstateupdatersresetmapconfigupdater
-[168]: ../reducers/map-state.md#mapstateupdatersreceivemapconfigupdater
+[183]: ../reducers/vis-state.md#visstateupdatersaddfilterupdater
-[169]: ../reducers/map-style.md#mapstyleupdatersreceivemapconfigupdater
+[184]: ../reducers/vis-state.md#visstateupdatersaddlayerupdater
-[170]: ../reducers/vis-state.md#visstateupdatersreceivemapconfigupdater
+[185]: ../reducers/vis-state.md#visstateupdatersenlargefilterupdater
-[171]: ../reducers/map-state.md#mapstateupdatersresetmapconfigupdater
+[186]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
-[172]: ../reducers/map-style.md#mapstyleupdatersresetmapconfigmapstyleupdater
+[187]: ../reducers/vis-state.md#visstateupdatersinteractionconfigchangeupdater
-[173]: ../reducers/vis-state.md#visstateupdatersresetmapconfigupdater
+[188]: ../reducers/vis-state.md#visstateupdaterslayerconfigchangeupdater
-[174]: ../reducers/vis-state.md#visstateupdatersaddfilterupdater
+[189]: ../reducers/vis-state.md#visstateupdaterslayertextlabelchangeupdater
-[175]: ../reducers/vis-state.md#visstateupdatersaddlayerupdater
+[190]: ../reducers/vis-state.md#visstateupdaterslayertypechangeupdater
-[176]: ../reducers/vis-state.md#visstateupdatersenlargefilterupdater
+[191]: ../reducers/vis-state.md#visstateupdaterslayervisconfigchangeupdater
-[177]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
+[192]: ../reducers/vis-state.md#visstateupdaterslayervisualchannelchangeupdater
-[178]: ../reducers/vis-state.md#visstateupdatersinteractionconfigchangeupdater
+[193]: ../reducers/ui-state.md#uistateupdatersloadfilesupdater
-[179]: ../reducers/vis-state.md#visstateupdaterslayerconfigchangeupdater
+[194]: ../reducers/vis-state.md#visstateupdatersloadfilesupdater
-[180]: ../reducers/vis-state.md#visstateupdaterslayertextlabelchangeupdater
+[195]: ../reducers/ui-state.md#uistateupdatersloadfileserrupdater
-[181]: ../reducers/vis-state.md#visstateupdaterslayertypechangeupdater
+[196]: ../reducers/vis-state.md#visstateupdatersloadfileserrupdater
-[182]: ../reducers/vis-state.md#visstateupdaterslayervisconfigchangeupdater
+[197]: ../reducers/vis-state.md#visstateupdaterslayerclickupdater
-[183]: ../reducers/vis-state.md#visstateupdaterslayervisualchannelchangeupdater
+[198]: ../reducers/vis-state.md#visstateupdaterslayerhoverupdater
-[184]: ../reducers/vis-state.md#visstateupdatersloadfilesupdater
+[199]: ../reducers/vis-state.md#visstateupdatersmapclickupdater
-[185]: ../reducers/vis-state.md#visstateupdatersloadfileserrupdater
+[200]: https://uber.github.io/react-map-gl/#/documentation/api-reference/pointer-event
-[186]: ../reducers/vis-state.md#visstateupdaterslayerclickupdater
+[201]: ../reducers/vis-state.md#visstateupdatersmousemoveupdater
-[187]: ../reducers/vis-state.md#visstateupdaterslayerhoverupdater
+[202]: ../reducers/vis-state.md#visstateupdatersremovedatasetupdater
-[188]: ../reducers/vis-state.md#visstateupdatersmapclickupdater
+[203]: ../reducers/vis-state.md#visstateupdatersremovefilterupdater
-[189]: https://uber.github.io/react-map-gl/#/documentation/api-reference/pointer-event
+[204]: ../reducers/vis-state.md#visstateupdatersremovelayerupdater
-[190]: ../reducers/vis-state.md#visstateupdatersmousemoveupdater
+[205]: ../reducers/vis-state.md#visstateupdatersreorderlayerupdater
-[191]: ../reducers/vis-state.md#visstateupdatersremovedatasetupdater
+[206]: ../reducers/vis-state.md#visstateupdatersseteditormodeupdater
-[192]: ../reducers/vis-state.md#visstateupdatersremovefilterupdater
+[207]: ../reducers/vis-state.md#visstateupdaterssetfilterupdater
-[193]: ../reducers/vis-state.md#visstateupdatersremovelayerupdater
+[208]: ../reducers/vis-state.md#visstateupdaterssetfilterplotupdater
-[194]: ../reducers/vis-state.md#visstateupdatersreorderlayerupdater
+[209]: ../reducers/vis-state.md#visstateupdatersshowdatasettableupdater
-[195]: ../reducers/vis-state.md#visstateupdaterssetfilterupdater
+[210]: ../reducers/vis-state.md#visstateupdaterstogglefilteranimationupdater
-[196]: ../reducers/vis-state.md#visstateupdaterssetfilterplotupdater
+[211]: ../reducers/vis-state.md#visstateupdaterstogglelayerformapupdater
-[197]: ../reducers/vis-state.md#visstateupdatersshowdatasettableupdater
+[212]: ../reducers/vis-state.md#visstateupdatersupdateanimationtimeupdater
-[198]: ../reducers/vis-state.md#visstateupdaterstogglefilteranimationupdater
+[213]: ../reducers/vis-state.md#visstateupdatersupdatefilteranimationspeedupdater
-[199]: ../reducers/vis-state.md#visstateupdaterstogglelayerformapupdater
+[214]: ../reducers/vis-state.md#visstateupdatersupdatelayeranimationspeedupdater
-[200]: ../reducers/vis-state.md#visstateupdatersupdateanimationspeedupdater
+[215]: ../reducers/vis-state.md#visstateupdatersupdatelayerblendingupdater
-[201]: ../reducers/vis-state.md#visstateupdatersupdatelayerblendingupdater
+[216]: ../reducers/vis-state.md#visstateupdatersupdatevisdataupdater
-[202]: ../reducers/composers.md#combinedupdatersupdatevisdataupdater
+[217]: ../reducers/ui-state.md#uistateupdatersaddnotificationupdater
-[203]: ../reducers/vis-state.md#visstateupdatersupdatevisdataupdater
+[218]: ../reducers/ui-state.md#uistateupdaterscleanupexportimage
-[204]: ../reducers/ui-state.md#uistateupdatersaddnotificationupdater
+[219]: ../reducers/ui-state.md#uistateupdatershideexportdropdownupdater
-[205]: ../reducers/ui-state.md#uistateupdaterscleanupexportimage
+[220]: ../reducers/ui-state.md#uistateupdatersopendeletemodalupdater
-[206]: ../reducers/ui-state.md#uistateupdatershideexportdropdownupdater
+[221]: ../reducers/ui-state.md#uistateupdatersremovenotificationupdater
-[207]: ../reducers/ui-state.md#uistateupdatersopendeletemodalupdater
+[222]: ../reducers/ui-state.md#uistateupdaterssetexportdataupdater
-[208]: ../reducers/ui-state.md#uistateupdatersremovenotificationupdater
+[223]: ../reducers/ui-state.md#uistateupdaterssetexportdatatypeupdater
-[209]: ../reducers/ui-state.md#uistateupdaterssetexportdataupdater
+[224]: ../reducers/ui-state.md#uistateupdaterssetexportfilteredupdater
-[210]: ../reducers/ui-state.md#uistateupdaterssetexportdatatypeupdater
+[225]: ../reducers/ui-state.md#uistateupdaterssetexportimagedatauri
-[211]: ../reducers/ui-state.md#uistateupdaterssetexportfilteredupdater
+[226]: ../reducers/ui-state.md#uistateupdaterssetexportselecteddatasetupdater
-[212]: ../reducers/ui-state.md#uistateupdaterssetexportimagedatauri
+[227]: ../reducers/ui-state.md#uistateupdaterssetratioupdater
-[213]: ../reducers/ui-state.md#uistateupdaterssetexportselecteddatasetupdater
+[228]: ../reducers/ui-state.md#uistateupdaterssetresolutionupdater
-[214]: ../reducers/ui-state.md#uistateupdaterssetratioupdater
+[229]: ../reducers/ui-state.md#uistateupdaterssetusermapboxaccesstokenupdater
-[215]: ../reducers/ui-state.md#uistateupdaterssetresolutionupdater
+[230]: ../reducers/ui-state.md#uistateupdatersshowexportdropdownupdater
-[216]: ../reducers/ui-state.md#uistateupdaterssetusermapboxaccesstokenupdater
+[231]: ../reducers/ui-state.md#uistateupdatersstartexportingimage
-[217]: ../reducers/ui-state.md#uistateupdatersshowexportdropdownupdater
+[232]: ../reducers/ui-state.md#uistateupdaterstogglelegendupdater
-[218]: ../reducers/ui-state.md#uistateupdatersstartexportingimage
+[233]: ../reducers/ui-state.md#uistateupdaterstogglemapcontrolupdater
-[219]: ../reducers/ui-state.md#uistateupdaterstogglelegendupdater
+[234]: #default_map_controls
-[220]: ../reducers/ui-state.md#uistateupdaterstogglemapcontrolupdater
+[235]: ../reducers/ui-state.md#uistateupdaterstogglemodalupdater
-[221]: #default_map_controls
+[236]: ../constants/default-settings.md#data_table_id
-[222]: ../reducers/ui-state.md#uistateupdaterstogglemodalupdater
+[237]: ../constants/default-settings.md#delete_data_id
-[223]: ../constants/default-settings.md#data_table_id
+[238]: ../constants/default-settings.md#add_data_id
-[224]: ../constants/default-settings.md#delete_data_id
+[239]: ../constants/default-settings.md#export_image_id
-[225]: ../constants/default-settings.md#add_data_id
+[240]: ../constants/default-settings.md#export_data_id
-[226]: ../constants/default-settings.md#export_image_id
+[241]: ../constants/default-settings.md#add_map_style_id
-[227]: ../constants/default-settings.md#export_data_id
+[242]: ../reducers/ui-state.md#uistateupdaterstogglesidepanelupdater
-[228]: ../constants/default-settings.md#add_map_style_id
+[243]: ../reducers/map-state.md#mapstateupdatersfitboundsupdater
-[229]: ../reducers/ui-state.md#uistateupdaterstogglesidepanelupdater
+[244]: ../reducers/map-state.md#mapstateupdaterstoggleperspectiveupdater
-[230]: ../reducers/map-state.md#mapstateupdatersfitboundsupdater
+[245]: ../reducers/map-state.md#mapstateupdaterstogglesplitmapupdater
-[231]: ../reducers/map-state.md#mapstateupdaterstoggleperspectiveupdater
+[246]: ../reducers/ui-state.md#uistateupdaterstogglesplitmapupdater
-[232]: ../reducers/map-state.md#mapstateupdaterstogglesplitmapupdater
+[247]: ../reducers/vis-state.md#visstateupdaterstogglesplitmapupdater
-[233]: ../reducers/vis-state.md#visstateupdaterstogglesplitmapupdater
+[248]: ../reducers/map-state.md#mapstateupdatersupdatemapupdater
-[234]: ../reducers/map-state.md#mapstateupdatersupdatemapupdater
+[249]: ../reducers/vis-state.md#visstateupdaterslayercoloruichangeupdater
-[235]: ../reducers/ui-state.md#uistateupdaterssetexportmapformat
+[250]: ../reducers/ui-state.md#uistateupdaterssetexportmapformatupdater
diff --git a/docs/api-reference/processors/processors.md b/docs/api-reference/processors/processors.md
index 79e7559ca..10ac22b1b 100644
--- a/docs/api-reference/processors/processors.md
+++ b/docs/api-reference/processors/processors.md
@@ -159,7 +159,7 @@ Process data where each row is an object, output can be passed to [`addDataToMap
**Parameters**
-- `rawData` **[Object][17]** an array of object
+- `rawData` **[Array][16]<[Object][17]>** an array of row object, each object should have the same number of keys
**Examples**
diff --git a/docs/api-reference/reducers/map-style.md b/docs/api-reference/reducers/map-style.md
index 4a3321f01..1c5db3749 100644
--- a/docs/api-reference/reducers/map-style.md
+++ b/docs/api-reference/reducers/map-style.md
@@ -100,6 +100,8 @@ Input a custom map style object
- `action.payload.name` **[string][22]** style name
- `action.payload.layerGroups` **[Object][23]** layer groups that can be used to set map layer visibility
- `action.payload.icon` **[Object][23]** icon image data url
+ - `action.payload.inputStyle`
+ - `action.payload.mapState`
Returns **[Object][23]** nextState
diff --git a/docs/api-reference/reducers/ui-state.md b/docs/api-reference/reducers/ui-state.md
index 91b58ce3b..1ec2589af 100644
--- a/docs/api-reference/reducers/ui-state.md
+++ b/docs/api-reference/reducers/ui-state.md
@@ -7,30 +7,34 @@
- [cleanupExportImage][5]
- [DEFAULT_EXPORT_DATA][7]
- [DEFAULT_EXPORT_IMAGE][9]
- - [DEFAULT_MAP_CONTROLS][11]
+ - [DEFAULT_MAP_CONTROLS_FEATURES][11]
- [hideExportDropdownUpdater][13]
- [INITIAL_UI_STATE][15]
- - [openDeleteModalUpdater][17]
- - [setExportDataTypeUpdater][19]
- - [setExportDataUpdater][21]
- - [setExportFilteredUpdater][23]
- - [setExportImageDataUri][25]
- - [setExportSelectedDatasetUpdater][27]
- - [setRatioUpdater][29]
- - [setResolutionUpdater][31]
- - [showExportDropdownUpdater][33]
- - [startExportingImage][35]
- - [toggleLegendUpdater][37]
- - [toggleMapControlUpdater][39]
- - [toggleModalUpdater][41]
- - [toggleSidePanelUpdater][43]
-- [DEFAULT_EXPORT_HTML][45]
-- [setUserMapboxAccessTokenUpdater][47]
+ - [loadFilesErrUpdater][17]
+ - [loadFilesUpdater][19]
+ - [openDeleteModalUpdater][21]
+ - [removeNotificationUpdater][23]
+ - [setExportDataTypeUpdater][25]
+ - [setExportDataUpdater][27]
+ - [setExportFilteredUpdater][29]
+ - [setExportImageDataUri][31]
+ - [setExportSelectedDatasetUpdater][33]
+ - [setRatioUpdater][35]
+ - [setResolutionUpdater][37]
+ - [showExportDropdownUpdater][39]
+ - [startExportingImage][41]
+ - [toggleLegendUpdater][43]
+ - [toggleMapControlUpdater][45]
+ - [toggleModalUpdater][47]
+ - [toggleSidePanelUpdater][49]
+ - [toggleSplitMapUpdater][51]
+- [DEFAULT_EXPORT_HTML][53]
+- [setUserMapboxAccessTokenUpdater][55]
## uiStateUpdaters
Updaters for `uiState` reducer. Can be used in your root reducer to directly modify kepler.gl's state.
-Read more about [Using updaters][49]
+Read more about [Using updaters][57]
**Examples**
@@ -69,315 +73,371 @@ export default composedReducer;
Add a notification to be displayed
-- **Action**: [`addNotification`][50]
+- **Action**: [`addNotification`][58]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[Object][51]**
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[Object][59]**
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### cleanupExportImage
Delete cached export image
-- **Action**: [`cleanupExportImage`][52]
+- **Action**: [`cleanupExportImage`][60]
**Parameters**
-- `state` **[Object][51]** `uiState`
+- `state` **[Object][59]** `uiState`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### DEFAULT_EXPORT_DATA
Default initial `exportData` settings
-Type: [Object][51]
+Type: [Object][59]
#### Properties
-- `selectedDataset` **[string][53]** Default: `''`,
-- `dataType` **[string][53]** Default: `'csv'`,
-- `filtered` **[boolean][54]** Default: `true`,
-- `config` **[boolean][54]** deprecated
-- `data` **[boolean][54]** used in modal config export. Default: `false`
+- `selectedDataset` **[string][61]** Default: `''`,
+- `dataType` **[string][61]** Default: `'csv'`,
+- `filtered` **[boolean][62]** Default: `true`,
+- `config` **[boolean][62]** deprecated
+- `data` **[boolean][62]** used in modal config export. Default: `false`
### DEFAULT_EXPORT_IMAGE
Default image export config
-Type: [Object][51]
+Type: [Object][59]
#### Properties
-- `ratio` **[string][53]** Default: `'SCREEN'`,
-- `resolution` **[string][53]** Default: `'ONE_X'`,
-- `legend` **[boolean][54]** Default: `false`,
-- `imageDataUri` **[string][53]** Default: `''`,
-- `exporting` **[boolean][54]** Default: `false`
+- `ratio` **[string][61]** Default: `'SCREEN'`,
+- `resolution` **[string][61]** Default: `'ONE_X'`,
+- `legend` **[boolean][62]** Default: `false`,
+- `imageDataUri` **[string][61]** Default: `''`,
+- `exporting` **[boolean][62]** Default: `false`
+- `error` **[boolean][62]** Default: `false`
-### DEFAULT_MAP_CONTROLS
+### DEFAULT_MAP_CONTROLS_FEATURES
A list of map control visibility and whether is it active.
-Type: [Object][51]
+Type: [Object][59]
#### Properties
-- `visibleLayers` **[Object][51]** Default: `{show: true, active: false}`
-- `mapLegend` **[Object][51]** Default: `{show: true, active: false}`
-- `toggle3d` **[Object][51]** Default: `{show: true}`
-- `splitMap` **[Object][51]** Default: `{show: true}`
+- `visibleLayers` **[Object][59]** Default: `{show: true, active: false}`
+- `mapLegend` **[Object][59]** Default: `{show: true, active: false}`
+- `toggle3d` **[Object][59]** Default: `{show: true}`
+- `splitMap` **[Object][59]** Default: `{show: true}`
### hideExportDropdownUpdater
Hide side panel header dropdown, activated by clicking the share link on top of the side panel
-- **Action**: [`hideExportDropdown`][55]
+- **Action**: [`hideExportDropdown`][63]
**Parameters**
-- `state` **[Object][51]** `uiState`
+- `state` **[Object][59]** `uiState`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### INITIAL_UI_STATE
Default initial `uiState`
-Type: [Object][51]
+Type: [Object][59]
#### Properties
-- `readOnly` **[boolean][54]** Default: `false`
-- `activeSidePanel` **[string][53]** Default: `'layer'`
-- `currentModal` **([string][53] | null)** Default: `'addData'`
-- `datasetKeyToRemove` **([string][53] | null)** Default: `null`
-- `visibleDropdown` **([string][53] | null)** Default: `null`
-- `exportImage` **[Object][51]** Default: [`DEFAULT_EXPORT_IMAGE`][9]
-- `exportData` **[Object][51]** Default: [`DEFAULT_EXPORT_DATA`][7]
-- `mapControls` **[Object][51]** Default: [`DEFAULT_MAP_CONTROLS`][11]
+- `readOnly` **[boolean][62]** Default: `false`
+- `activeSidePanel` **[string][61]** Default: `'layer'`
+- `currentModal` **([string][61] | null)** Default: `'addData'`
+- `datasetKeyToRemove` **([string][61] | null)** Default: `null`
+- `visibleDropdown` **([string][61] | null)** Default: `null`
+- `exportImage` **[Object][59]** Default: [`DEFAULT_EXPORT_IMAGE`][9]
+- `exportData` **[Object][59]** Default: [`DEFAULT_EXPORT_DATA`][7]
+- `mapControls` **[Object][59]** Default: [`DEFAULT_MAP_CONTROLS`][64]
+- `activeMapIndex` **[number][65]** defines which map the user clicked on. Default: 0
+
+### loadFilesErrUpdater
+
+Handles load file error and set fileLoading property to false
+
+- **Action**: [`loadFilesErr`][66]
+
+**Parameters**
+
+- `state`
+- `error` **[Object][59]**
+ - `error.error`
+
+Returns **[Object][59]** nextState
+
+### loadFilesUpdater
+
+Fired when file loading begin
+
+- **Action**: [`loadFiles`][67]
+
+**Parameters**
+
+- `state` **[Object][59]** `uiState`
+
+Returns **[Object][59]** nextState
### openDeleteModalUpdater
Toggle active map control panel
-- **Action**: [`openDeleteModal`][56]
+- **Action**: [`openDeleteModal`][68]
+
+**Parameters**
+
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** dataset id
+
+Returns **[Object][59]** nextState
+
+### removeNotificationUpdater
+
+Remove a notification
+
+- **Action**: [`removeNotification`][69]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** dataset id
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[String][61]** id of the notification to be removed
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setExportDataTypeUpdater
Set data format for exporting data
-- **Action**: [`setExportDataType`][57]
+- **Action**: [`setExportDataType`][70]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** one of `'text/csv'`
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** one of `'text/csv'`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setExportDataUpdater
Whether to including data in map config, toggle between `true` or `false`
-- **Action**: [`setExportData`][58]
+- **Action**: [`setExportData`][71]
**Parameters**
-- `state` **[Object][51]** `uiState`
+- `state` **[Object][59]** `uiState`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setExportFilteredUpdater
Whether to export filtered data, `true` or `false`
-- **Action**: [`setExportFiltered`][59]
+- **Action**: [`setExportFiltered`][72]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[boolean][54]**
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[boolean][62]**
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setExportImageDataUri
Set `exportImage.setExportImageDataUri` to a image dataUri
-- **Action**: [`setExportImageDataUri`][60]
+- **Action**: [`setExportImageDataUri`][73]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** export image data uri
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** export image data uri
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setExportSelectedDatasetUpdater
Set selected dataset for export
-- **Action**: [`setExportSelectedDataset`][61]
+- **Action**: [`setExportSelectedDataset`][74]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** dataset id
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** dataset id
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setRatioUpdater
Set `exportImage.ratio`
-- **Action**: [`setRatio`][62]
+- **Action**: [`setRatio`][75]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** one of `'SCREEN'`, `'FOUR_BY_THREE'` and `'SIXTEEN_BY_NINE'`
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** one of `'SCREEN'`, `'FOUR_BY_THREE'` and `'SIXTEEN_BY_NINE'`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### setResolutionUpdater
Set `exportImage.resolution`
-- **Action**: [`setResolution`][63]
+- **Action**: [`setResolution`][76]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** one of `'ONE_X'`, `'TWO_X'`
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** one of `'ONE_X'`, `'TWO_X'`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### showExportDropdownUpdater
Hide and show side panel header dropdown, activated by clicking the share link on top of the side panel
-- **Action**: [`showExportDropdown`][64]
+- **Action**: [`showExportDropdown`][77]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]** id of the dropdown
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]** id of the dropdown
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### startExportingImage
Set `exportImage.exporting` to `true`
-- **Action**: [`startExportingImage`][65]
+- **Action**: [`startExportingImage`][78]
**Parameters**
-- `state` **[Object][51]** `uiState`
+- `state` **[Object][59]** `uiState`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### toggleLegendUpdater
Set `exportImage.legend` to `true` or `false`
-- **Action**: [`toggleLegend`][66]
+- **Action**: [`toggleLegend`][79]
**Parameters**
-- `state` **[Object][51]** `uiState`
+- `state` **[Object][59]** `uiState`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### toggleMapControlUpdater
Toggle active map control panel
-- **Action**: [`toggleMapControl`][67]
+- **Action**: [`toggleMapControl`][80]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]** action
- - `action.payload` **[string][53]** map control panel id, one of the keys of: [`DEFAULT_MAP_CONTROLS`][11]
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]** action
+ - `action.payload` **[string][61]** map control panel id, one of the keys of: [`DEFAULT_MAP_CONTROLS`][64]
+ - `action.payload.panelId`
+ - `action.payload.index` (optional, default `0`)
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### toggleModalUpdater
Show and hide modal dialog
-- **Action**: [`toggleModal`][68]
+- **Action**: [`toggleModal`][81]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **([string][53] | null)** id of modal to be shown, null to hide modals. One of:- [`DATA_TABLE_ID`][69]
- - [`DELETE_DATA_ID`][70]
- - [`ADD_DATA_ID`][71]
- - [`EXPORT_IMAGE_ID`][72]
- - [`EXPORT_DATA_ID`][73]
- - [`ADD_MAP_STYLE_ID`][74]
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **([string][61] | null)** id of modal to be shown, null to hide modals. One of:- [`DATA_TABLE_ID`][82]
+ - [`DELETE_DATA_ID`][83]
+ - [`ADD_DATA_ID`][84]
+ - [`EXPORT_IMAGE_ID`][85]
+ - [`EXPORT_DATA_ID`][86]
+ - [`ADD_MAP_STYLE_ID`][87]
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
### toggleSidePanelUpdater
Toggle active side panel
-- **Action**: [`toggleSidePanel`][75]
+- **Action**: [`toggleSidePanel`][88]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **([string][53] | null)** id of side panel to be shown, one of `layer`, `filter`, `interaction`, `map`. close side panel if `null`
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **([string][61] | null)** id of side panel to be shown, one of `layer`, `filter`, `interaction`, `map`. close side panel if `null`
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
+
+### toggleSplitMapUpdater
+
+Handles toggle map split and reset all map control index to 0
+
+- **Action**: [`toggleSplitMap`][89]
+
+**Parameters**
+
+- `state`
+
+Returns **[Object][59]** nextState
## DEFAULT_EXPORT_HTML
-Type: [Object][51]
+Type: [Object][59]
### Properties
-- `exportMapboxAccessToken` **[string][53]** Default: null, this is used when we provide a default mapbox token for users to take advantage of
-- `userMapboxToken` **[string][53]** Default: '', mapbox token provided by user through input field
+- `exportMapboxAccessToken` **[string][61]** Default: null, this is used when we provide a default mapbox token for users to take advantage of
+- `userMapboxToken` **[string][61]** Default: '', mapbox token provided by user through input field
## setUserMapboxAccessTokenUpdater
whether to export a mapbox access to HTML single page
-- **Action**: [`setUserMapboxAccessToken`][76]
+- **Action**: [`setUserMapboxAccessToken`][90]
**Parameters**
-- `state` **[Object][51]** `uiState`
-- `action` **[Object][51]**
- - `action.payload` **[string][53]**
+- `state` **[Object][59]** `uiState`
+- `action` **[Object][59]**
+ - `action.payload` **[string][61]**
-Returns **[Object][51]** nextState
+Returns **[Object][59]** nextState
[1]: #uistateupdaters
@@ -399,7 +459,7 @@ Returns **[Object][51]** nextState
[10]: #properties-1
-[11]: #default_map_controls
+[11]: #default_map_controls_features
[12]: #properties-2
@@ -411,122 +471,150 @@ Returns **[Object][51]** nextState
[16]: #properties-3
-[17]: #opendeletemodalupdater
+[17]: #loadfileserrupdater
[18]: #parameters-3
-[19]: #setexportdatatypeupdater
+[19]: #loadfilesupdater
[20]: #parameters-4
-[21]: #setexportdataupdater
+[21]: #opendeletemodalupdater
[22]: #parameters-5
-[23]: #setexportfilteredupdater
+[23]: #removenotificationupdater
[24]: #parameters-6
-[25]: #setexportimagedatauri
+[25]: #setexportdatatypeupdater
[26]: #parameters-7
-[27]: #setexportselecteddatasetupdater
+[27]: #setexportdataupdater
[28]: #parameters-8
-[29]: #setratioupdater
+[29]: #setexportfilteredupdater
[30]: #parameters-9
-[31]: #setresolutionupdater
+[31]: #setexportimagedatauri
[32]: #parameters-10
-[33]: #showexportdropdownupdater
+[33]: #setexportselecteddatasetupdater
[34]: #parameters-11
-[35]: #startexportingimage
+[35]: #setratioupdater
[36]: #parameters-12
-[37]: #togglelegendupdater
+[37]: #setresolutionupdater
[38]: #parameters-13
-[39]: #togglemapcontrolupdater
+[39]: #showexportdropdownupdater
[40]: #parameters-14
-[41]: #togglemodalupdater
+[41]: #startexportingimage
[42]: #parameters-15
-[43]: #togglesidepanelupdater
+[43]: #togglelegendupdater
[44]: #parameters-16
-[45]: #default_export_html
+[45]: #togglemapcontrolupdater
+
+[46]: #parameters-17
+
+[47]: #togglemodalupdater
+
+[48]: #parameters-18
+
+[49]: #togglesidepanelupdater
+
+[50]: #parameters-19
+
+[51]: #togglesplitmapupdater
+
+[52]: #parameters-20
+
+[53]: #default_export_html
+
+[54]: #properties-4
+
+[55]: #setusermapboxaccesstokenupdater
+
+[56]: #parameters-21
+
+[57]: ../advanced-usage/using-updaters.md
+
+[58]: ../actions/actions.md#addnotification
+
+[59]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
-[46]: #properties-4
+[60]: ../actions/actions.md#cleanupexportimage
-[47]: #setusermapboxaccesstokenupdater
+[61]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
-[48]: #parameters-17
+[62]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
-[49]: ../advanced-usage/using-updaters.md
+[63]: ../actions/actions.md#hideexportdropdown
-[50]: ../actions/actions.md#addnotification
+[64]: #default_map_controls
-[51]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
+[65]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
-[52]: ../actions/actions.md#cleanupexportimage
+[66]: ../actions/actions.md#loadfileserr
-[53]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
+[67]: ../actions/actions.md#loadfiles
-[54]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
+[68]: ../actions/actions.md#opendeletemodal
-[55]: ../actions/actions.md#hideexportdropdown
+[69]: ../actions/actions.md#removenotification
-[56]: ../actions/actions.md#opendeletemodal
+[70]: ../actions/actions.md#setexportdatatype
-[57]: ../actions/actions.md#setexportdatatype
+[71]: ../actions/actions.md#setexportdata
-[58]: ../actions/actions.md#setexportdata
+[72]: ../actions/actions.md#setexportfiltered
-[59]: ../actions/actions.md#setexportfiltered
+[73]: ../actions/actions.md#setexportimagedatauri
-[60]: ../actions/actions.md#setexportimagedatauri
+[74]: ../actions/actions.md#setexportselecteddataset
-[61]: ../actions/actions.md#setexportselecteddataset
+[75]: ../actions/actions.md#setratio
-[62]: ../actions/actions.md#setratio
+[76]: ../actions/actions.md#setresolution
-[63]: ../actions/actions.md#setresolution
+[77]: ../actions/actions.md#showexportdropdown
-[64]: ../actions/actions.md#showexportdropdown
+[78]: ../actions/actions.md#startexportingimage
-[65]: ../actions/actions.md#startexportingimage
+[79]: ../actions/actions.md#togglelegend
-[66]: ../actions/actions.md#togglelegend
+[80]: ../actions/actions.md#togglemapcontrol
-[67]: ../actions/actions.md#togglemapcontrol
+[81]: ../actions/actions.md#togglemodal
-[68]: ../actions/actions.md#togglemodal
+[82]: ../constants/default-settings.md#data_table_id
-[69]: ../constants/default-settings.md#data_table_id
+[83]: ../constants/default-settings.md#delete_data_id
-[70]: ../constants/default-settings.md#delete_data_id
+[84]: ../constants/default-settings.md#add_data_id
-[71]: ../constants/default-settings.md#add_data_id
+[85]: ../constants/default-settings.md#export_image_id
-[72]: ../constants/default-settings.md#export_image_id
+[86]: ../constants/default-settings.md#export_data_id
-[73]: ../constants/default-settings.md#export_data_id
+[87]: ../constants/default-settings.md#add_map_style_id
-[74]: ../constants/default-settings.md#add_map_style_id
+[88]: ../actions/actions.md#togglesidepanel
-[75]: ../actions/actions.md#togglesidepanel
+[89]: ../actions/actions.md#togglesplitmap
-[76]: ../actions/actions.md#setusermapboxaccesstoken
+[90]: ../actions/actions.md#setusermapboxaccesstoken
diff --git a/docs/api-reference/reducers/vis-state.md b/docs/api-reference/reducers/vis-state.md
index a6c2d37f1..1d8ca28c1 100644
--- a/docs/api-reference/reducers/vis-state.md
+++ b/docs/api-reference/reducers/vis-state.md
@@ -28,14 +28,16 @@
- [toggleFilterAnimationUpdater][47]
- [toggleLayerForMapUpdater][49]
- [toggleSplitMapUpdater][51]
- - [updateAnimationSpeedUpdater][53]
- - [updateLayerBlendingUpdater][55]
- - [updateVisDataUpdater][57]
+ - [updateAnimationTimeUpdater][53]
+ - [updateFilterAnimationSpeedUpdater][55]
+ - [updateLayerAnimationSpeedUpdater][57]
+ - [updateLayerBlendingUpdater][59]
+ - [updateVisDataUpdater][61]
## visStateUpdaters
Updaters for `visState` reducer. Can be used in your root reducer to directly modify kepler.gl's state.
-Read more about [Using updaters][59]
+Read more about [Using updaters][63]
**Examples**
@@ -74,423 +76,454 @@ export default composedReducer;
Add a new filter
-- **Action**: [`addFilter`][60]
+- **Action**: [`addFilter`][64]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.dataId` **[string][62]** dataset `id` this new filter is associated with
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.dataId` **[string][66]** dataset `id` this new filter is associated with
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### addLayerUpdater
Add a new layer
-- **Action**: [`addLayer`][63]
+- **Action**: [`addLayer`][67]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.props` **[Object][61]** new layer props
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.props` **[Object][65]** new layer props
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### enlargeFilterUpdater
Show larger time filter at bottom for time playback (apply to time filter only)
-- **Action**: [`enlargeFilter`][64]
+- **Action**: [`enlargeFilter`][68]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]** index of filter to enlarge
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]** index of filter to enlarge
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### INITIAL_VIS_STATE
Default initial `visState`
-Type: [Object][61]
+Type: [Object][65]
#### Properties
-- `layers` **[Array][66]**
-- `layerData` **[Array][66]**
-- `layerToBeMerged` **[Array][66]**
-- `layerOrder` **[Array][66]**
-- `filters` **[Array][66]**
-- `filterToBeMerged` **[Array][66]**
-- `datasets` **[Array][66]**
-- `editingDataset` **[string][62]**
-- `interactionConfig` **[Object][61]**
-- `interactionToBeMerged` **[Object][61]**
-- `layerBlending` **[string][62]**
-- `hoverInfo` **[Object][61]**
-- `clicked` **[Object][61]**
-- `fileLoading` **[boolean][67]**
-- `fileLoadingErr` **any**
-- `splitMaps` **[Array][66]** a list of objects of layer availabilities and visibilities for each map
+- `layers` **[Array][70]**
+- `layerData` **[Array][70]**
+- `layerToBeMerged` **[Array][70]**
+- `layerOrder` **[Array][70]**
+- `filters` **[Array][70]**
+- `filterToBeMerged` **[Array][70]**
+- `datasets` **[Array][70]**
+- `editingDataset` **[string][66]**
+- `interactionConfig` **[Object][65]**
+- `interactionToBeMerged` **[Object][65]**
+- `layerBlending` **[string][66]**
+- `hoverInfo` **[Object][65]**
+- `clicked` **[Object][65]**
+- `mousePos` **[Object][65]**
+- `splitMaps` **[Array][70]** a list of objects of layer availabilities and visibilities for each map
+- `layerClasses` **[Object][65]**
+- `animationConfig` **[Object][65]**
+- `editor` **[Object][65]**
### interactionConfigChangeUpdater
Update `interactionConfig`
-- **Action**: [`interactionConfigChange`][68]
+- **Action**: [`interactionConfigChange`][71]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.config` **[Object][61]** new config as key value map: `{tooltip: {enabled: true}}`
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.config` **[Object][65]** new config as key value map: `{tooltip: {enabled: true}}`
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### layerClickUpdater
Trigger layer click event with clicked object
-- **Action**: [`onLayerClick`][69]
+- **Action**: [`onLayerClick`][72]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.info` **[Object][61]** Object clicked, returned by deck.gl
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.info` **[Object][65]** Object clicked, returned by deck.gl
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### layerHoverUpdater
Trigger layer hover event with hovered object
-- **Action**: [`onLayerHover`][70]
+- **Action**: [`onLayerHover`][73]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.info` **[Object][61]** Object hovered, returned by deck.gl
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.info` **[Object][65]** Object hovered, returned by deck.gl
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### layerTypeChangeUpdater
Update layer type. Previews layer config will be copied if applicable.
-- **Action**: [`layerTypeChange`][71]
+- **Action**: [`layerTypeChange`][74]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.oldLayer` **[Object][61]** layer to be updated
- - `action.newType` **[string][62]** new type
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.oldLayer` **[Object][65]** layer to be updated
+ - `action.newType` **[string][66]** new type
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### layerVisConfigChangeUpdater
Update layer `visConfig`
-- **Action**: [`layerVisConfigChange`][72]
+- **Action**: [`layerVisConfigChange`][75]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.oldLayer` **[Object][61]** layer to be updated
- - `action.newVisConfig` **[Object][61]** new visConfig as a key value map: e.g. `{opacity: 0.8}`
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.oldLayer` **[Object][65]** layer to be updated
+ - `action.newVisConfig` **[Object][65]** new visConfig as a key value map: e.g. `{opacity: 0.8}`
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### layerVisualChannelChangeUpdater
Update layer visual channel
-- **Action**: [`layerVisualChannelConfigChange`][73]
+- **Action**: [`layerVisualChannelConfigChange`][76]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.oldLayer` **[Object][61]** layer to be updated
- - `action.newConfig` **[Object][61]** new visual channel config
- - `action.channel` **[string][62]** channel to be updated
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.oldLayer` **[Object][65]** layer to be updated
+ - `action.newConfig` **[Object][65]** new visual channel config
+ - `action.channel` **[string][66]** channel to be updated
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### loadFilesErrUpdater
Trigger loading file error
-- **Action**: [`loadFilesErr`][74]
+- **Action**: [`loadFilesErr`][77]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
- `action.error` **any**
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### loadFilesUpdater
Trigger file loading dispatch `addDataToMap` if succeed, or `loadFilesErr` if failed
-- **Action**: [`loadFiles`][75]
+- **Action**: [`loadFiles`][78]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.files` **[Array][66]<[Object][61]>** array of fileblob
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.files` **[Array][70]<[Object][65]>** array of fileblob
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### mapClickUpdater
Trigger map click event, unselect clicked object
-- **Action**: [`onMapClick`][76]
+- **Action**: [`onMapClick`][79]
**Parameters**
-- `state` **[Object][61]** `visState`
+- `state` **[Object][65]** `visState`
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### receiveMapConfigUpdater
Propagate `visState` reducer with a new configuration. Current config will be override.
-- **Action**: [`receiveMapConfig`][77]
+- **Action**: [`receiveMapConfig`][80]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.payload` **[Object][61]** map config to be propagated
- - `action.payload.config` **[Object][61]** map config to be propagated
- - `action.payload.option` **[Object][61]** {keepExistingConfig: true | false}
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.payload` **[Object][65]** map config to be propagated
+ - `action.payload.config` **[Object][65]** map config to be propagated
+ - `action.payload.option` **[Object][65]** {keepExistingConfig: true | false}
- `action.payload.config` (optional, default `{}`)
- `action.payload.options` (optional, default `{}`)
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### removeDatasetUpdater
Remove a dataset and all layers, filters, tooltip configs that based on it
-- **Action**: [`removeDataset`][78]
+- **Action**: [`removeDataset`][81]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.key` **[string][62]** dataset id
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.key` **[string][66]** dataset id
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### removeFilterUpdater
Remove a filter
-- **Action**: [`removeFilter`][79]
+- **Action**: [`removeFilter`][82]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]** index of filter to b e removed
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]** index of filter to b e removed
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### removeLayerUpdater
remove layer
-- **Action**: [`removeLayer`][80]
+- **Action**: [`removeLayer`][83]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]** index of layer to b e removed
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]** index of layer to b e removed
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### reorderLayerUpdater
Reorder layer
-- **Action**: [`reorderLayer`][81]
+- **Action**: [`reorderLayer`][84]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.order` **[Array][66]<[Number][65]>** an array of layer indexes
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.order` **[Array][70]<[Number][69]>** an array of layer indexes
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### resetMapConfigUpdater
reset visState to initial State
-- **Action**: [`resetMapConfig`][82]
+- **Action**: [`resetMapConfig`][85]
**Parameters**
-- `state` **[Object][61]** `visState`
+- `state` **[Object][65]** `visState`
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### setFilterPlotUpdater
Set the property of a filter plot
-- **Action**: [`setFilterPlot`][83]
+- **Action**: [`setFilterPlot`][86]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]**
- - `action.newProp` **[Object][61]** key value mapping of new prop `{yAxis: 'histogram'}`
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]**
+ - `action.newProp` **[Object][65]** key value mapping of new prop `{yAxis: 'histogram'}`
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### setFilterUpdater
Update filter property
-- **Action**: [`setFilter`][84]
+- **Action**: [`setFilter`][87]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]** `idx` of filter to be updated
- - `action.prop` **[string][62]** `prop` of filter, e,g, `dataId`, `name`, `value`
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]** `idx` of filter to be updated
+ - `action.prop` **[string][66]** `prop` of filter, e,g, `dataId`, `name`, `value`
- `action.value` **any** new value
+- `datasetId` **[string][66]** used when updating a prop (dataId, name) that can be linked to multiple datasets
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### showDatasetTableUpdater
Display dataset table in a modal
-- **Action**: [`showDatasetTable`][85]
+- **Action**: [`showDatasetTable`][88]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.dataId` **[string][62]** dataset id to show in table
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.dataId` **[string][66]** dataset id to show in table
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### toggleFilterAnimationUpdater
Start and end filter animation
-- **Action**: [`toggleAnimation`][86]
+- **Action**: [`toggleFilterAnimation`][89]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]** idx of filter
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]** idx of filter
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### toggleLayerForMapUpdater
Toggle visibility of a layer in a split map
-- **Action**: [`toggleLayerForMap`][87]
+- **Action**: [`toggleLayerForMap`][90]
**Parameters**
-- `state` **[Object][61]**
-- `action` **[Object][61]**
- - `action.mapIndex` **[Number][65]** index of the split map
- - `action.layerId` **[string][62]** id of the layer
+- `state` **[Object][65]**
+- `action` **[Object][65]**
+ - `action.mapIndex` **[Number][69]** index of the split map
+ - `action.layerId` **[string][66]** id of the layer
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### toggleSplitMapUpdater
Toggle visibility of a layer for a split map
-- **Action**: [`toggleSplitMap`][88]
+- **Action**: [`toggleSplitMap`][91]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.payload` **([Number][65] \| [undefined][89])** index of the split map
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.payload` **([Number][69] \| [undefined][92])** index of the split map
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
-### updateAnimationSpeedUpdater
+### updateAnimationTimeUpdater
+
+Reset animation config current time to a specified value
+
+- **Action**: [`updateAnimationTime`][93]
+
+**Parameters**
+
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.value` **[Number][69]** the value current time will be set to
+
+Returns **[Object][65]** nextState
+
+### updateFilterAnimationSpeedUpdater
Change filter animation speed
-- **Action**: [`updateAnimationSpeed`][90]
+- **Action**: [`updateFilterAnimationSpeed`][94]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.idx` **[Number][65]** `idx` of filter
- - `action.speed` **[Number][65]** `speed` to change it to. `speed` is a multiplier
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.idx` **[Number][69]** `idx` of filter
+ - `action.speed` **[Number][69]** `speed` to change it to. `speed` is a multiplier
+
+Returns **[Object][65]** nextState
+
+### updateLayerAnimationSpeedUpdater
+
+Update animation speed with the vertical speed slider
-Returns **[Object][61]** nextState
+- **Action**: [`updateLayerAnimationSpeed`][95]
+
+**Parameters**
+
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.speed` **[Number][69]** the updated speed of the animation
+
+Returns **[Object][65]** nextState
### updateLayerBlendingUpdater
update layer blending mode
-- **Action**: [`updateLayerBlending`][91]
+- **Action**: [`updateLayerBlending`][96]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.mode` **[string][62]** one of `additive`, `normal` and `subtractive`
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.mode` **[string][66]** one of `additive`, `normal` and `subtractive`
-Returns **[Object][61]** nextState
+Returns **[Object][65]** nextState
### updateVisDataUpdater
Add new dataset to `visState`, with option to load a map config along with the datasets
-- **Action**: [`updateVisData`][92]
+- **Action**: [`updateVisData`][97]
**Parameters**
-- `state` **[Object][61]** `visState`
-- `action` **[Object][61]** action
- - `action.datasets` **([Array][66]<[Object][61]> | [Object][61])** **\*required** datasets can be a dataset or an array of datasets
+- `state` **[Object][65]** `visState`
+- `action` **[Object][65]** action
+ - `action.datasets` **([Array][70]<[Object][65]> | [Object][65])** **\*required** datasets can be a dataset or an array of datasets
Each dataset object needs to have `info` and `data` property.
- - `action.datasets.info` **[Object][61]** \-info of a dataset
- - `action.datasets.info.id` **[string][62]** id of this dataset. If config is defined, `id` should matches the `dataId` in config.
- - `action.datasets.info.label` **[string][62]** A display name of this dataset
- - `action.datasets.data` **[Object][61]** **\*required** The data object, in a tabular format with 2 properties `fields` and `rows`
- - `action.datasets.data.fields` **[Array][66]<[Object][61]>** **\*required** Array of fields,
- - `action.datasets.data.fields.name` **[string][62]** **\*required** Name of the field,
- - `action.datasets.data.rows` **[Array][66]<[Array][66]>** **\*required** Array of rows, in a tabular format with `fields` and `rows`
- - `action.options` **[Object][61]** option object `{centerMap: true, keepExistingConfig: false}`
- - `action.config` **[Object][61]** map config
-
-Returns **[Object][61]** nextState
+ - `action.datasets.info` **[Object][65]** \-info of a dataset
+ - `action.datasets.info.id` **[string][66]** id of this dataset. If config is defined, `id` should matches the `dataId` in config.
+ - `action.datasets.info.label` **[string][66]** A display name of this dataset
+ - `action.datasets.data` **[Object][65]** **\*required** The data object, in a tabular format with 2 properties `fields` and `rows`
+ - `action.datasets.data.fields` **[Array][70]<[Object][65]>** **\*required** Array of fields,
+ - `action.datasets.data.fields.name` **[string][66]** **\*required** Name of the field,
+ - `action.datasets.data.rows` **[Array][70]<[Array][70]>** **\*required** Array of rows, in a tabular format with `fields` and `rows`
+ - `action.options` **[Object][65]** option object `{centerMap: true, keepExistingConfig: false}`
+ - `action.config` **[Object][65]** map config
+
+Returns **[Object][65]** nextState
[1]: #visstateupdaters
@@ -596,82 +629,92 @@ Returns **[Object][61]** nextState
[52]: #parameters-23
-[53]: #updateanimationspeedupdater
+[53]: #updateanimationtimeupdater
[54]: #parameters-24
-[55]: #updatelayerblendingupdater
+[55]: #updatefilteranimationspeedupdater
[56]: #parameters-25
-[57]: #updatevisdataupdater
+[57]: #updatelayeranimationspeedupdater
[58]: #parameters-26
-[59]: ../advanced-usage/using-updaters.md
+[59]: #updatelayerblendingupdater
+
+[60]: #parameters-27
+
+[61]: #updatevisdataupdater
+
+[62]: #parameters-28
+
+[63]: ../advanced-usage/using-updaters.md
+
+[64]: ../actions/actions.md#addfilter
-[60]: ../actions/actions.md#addfilter
+[65]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
-[61]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
+[66]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
-[62]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
+[67]: ../actions/actions.md#addlayer
-[63]: ../actions/actions.md#addlayer
+[68]: ../actions/actions.md#enlargefilter
-[64]: ../actions/actions.md#enlargefilter
+[69]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
-[65]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
+[70]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
-[66]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
+[71]: ../actions/actions.md#interactionconfigchange
-[67]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
+[72]: ../actions/actions.md#onlayerclick
-[68]: ../actions/actions.md#interactionconfigchange
+[73]: ../actions/actions.md#onlayerhover
-[69]: ../actions/actions.md#onlayerclick
+[74]: ../actions/actions.md#layertypechange
-[70]: ../actions/actions.md#onlayerhover
+[75]: ../actions/actions.md#layervisconfigchange
-[71]: ../actions/actions.md#layertypechange
+[76]: ../actions/actions.md#layervisualchannelconfigchange
-[72]: ../actions/actions.md#layervisconfigchange
+[77]: ../actions/actions.md#loadfileserr
-[73]: ../actions/actions.md#layervisualchannelconfigchange
+[78]: ../actions/actions.md#loadfiles
-[74]: ../actions/actions.md#loadfileserr
+[79]: ../actions/actions.md#onmapclick
-[75]: ../actions/actions.md#loadfiles
+[80]: ../actions/actions.md#receivemapconfig
-[76]: ../actions/actions.md#onmapclick
+[81]: ../actions/actions.md#removedataset
-[77]: ../actions/actions.md#receivemapconfig
+[82]: ../actions/actions.md#removefilter
-[78]: ../actions/actions.md#removedataset
+[83]: ../actions/actions.md#removelayer
-[79]: ../actions/actions.md#removefilter
+[84]: ../actions/actions.md#reorderlayer
-[80]: ../actions/actions.md#removelayer
+[85]: ../actions/actions.md#resetmapconfig
-[81]: ../actions/actions.md#reorderlayer
+[86]: ../actions/actions.md#setfilterplot
-[82]: ../actions/actions.md#resetmapconfig
+[87]: ../actions/actions.md#setfilter
-[83]: ../actions/actions.md#setfilterplot
+[88]: ../actions/actions.md#showdatasettable
-[84]: ../actions/actions.md#setfilter
+[89]: ../actions/actions.md#togglefilteranimation
-[85]: ../actions/actions.md#showdatasettable
+[90]: ../actions/actions.md#togglelayerformap
-[86]: ../actions/actions.md#toggleanimation
+[91]: ../actions/actions.md#togglesplitmap
-[87]: ../actions/actions.md#togglelayerformap
+[92]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined
-[88]: ../actions/actions.md#togglesplitmap
+[93]: ../actions/actions.md#updateanimationtime
-[89]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined
+[94]: ../actions/actions.md#updatefilteranimationspeed
-[90]: ../actions/actions.md#updateanimationspeed
+[95]: ../actions/actions.md#updatelayeranimationspeed
-[91]: ../actions/actions.md#updatelayerblending
+[96]: ../actions/actions.md#updatelayerblending
-[92]: ../actions/actions.md#updatevisdata
+[97]: ../actions/actions.md#updatevisdata
diff --git a/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md b/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md
index a1da6b294..966ed164c 100644
--- a/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md
+++ b/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md
@@ -37,6 +37,7 @@ CSV file should contain header row and multiple columns. Each row should be 1 fe
| b | 31.2311 | -127.30231 | 11 | 2019-08-01 12:05
| c | 31.2334 | -127.30238 | 9 | 2019-08-01 11:55
+
#### 1. Data type detection
Because CSV file content is uploaded as strings, kepler.gl will attempt to detect column data type by parsing a sample of data in each column. kepler.gl can detect
@@ -139,7 +140,7 @@ id,geometry
]
},
"properties": {
- "prop0": "value0",
+ "prop0": "value0"
}
}]
}
diff --git a/examples/demo-app/src/components/map-control/map-control.js b/examples/demo-app/src/components/map-control/map-control.js
index 1c71c6693..8f59a9f56 100644
--- a/examples/demo-app/src/components/map-control/map-control.js
+++ b/examples/demo-app/src/components/map-control/map-control.js
@@ -182,7 +182,7 @@ function SampleMapPanel(props) {
const CustomMapControl = props => (
<StyledMapControlOverlay>
- {props.currentSample ? <SampleMapPanel {...props} /> : null}
+ {!props.isExport && props.currentSample ? <SampleMapPanel {...props} /> : null}
<MapControl {...props} />
</StyledMapControlOverlay>
);
diff --git a/examples/demo-app/src/store.js b/examples/demo-app/src/store.js
index 3e6f1693b..9cda5a064 100644
--- a/examples/demo-app/src/store.js
+++ b/examples/demo-app/src/store.js
@@ -42,7 +42,12 @@ export const enhancers = [applyMiddleware(...middlewares)];
const initialState = {};
// add redux devtools
-const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
+const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
+ actionsBlacklist: [
+ '@@kepler.gl/MOUSE_MOVE',
+ '@@kepler.gl/UPDATE_MAP'
+ ]
+}) || compose;
export default createStore(
reducers,
diff --git a/examples/demo-app/webpack.config.js b/examples/demo-app/webpack.config.js
index 27686a35b..9e14233a9 100644
--- a/examples/demo-app/webpack.config.js
+++ b/examples/demo-app/webpack.config.js
@@ -69,7 +69,8 @@ const CONFIG = {
plugins: [
new webpack.EnvironmentPlugin([
'MapboxAccessToken',
- 'DropboxClientId'
+ 'DropboxClientId',
+ 'MapboxExportToken'
])
]
};
diff --git a/package.json b/package.json
index 371b70148..1f87bd57d 100644
--- a/package.json
+++ b/package.json
@@ -74,6 +74,8 @@
"@mapbox/geojson-normalize": "0.0.1",
"@mapbox/vector-tile": "^1.3.1",
"@turf/bbox": "^6.0.1",
+ "@turf/boolean-within": "^6.0.1",
+ "@turf/helpers": "^6.1.4",
"classnames": "^2.2.1",
"colorbrewer": "^1.0.0",
"d3-array": "^1.2.0",
@@ -94,11 +96,13 @@
"lodash.curry": "^4.1.1",
"lodash.debounce": "^4.0.8",
"lodash.flattendeep": "^4.2.0",
+ "lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lodash.memoize": "^4.1.2",
"lodash.pick": "^4.4.0",
"lodash.throttle": "^4.1.1",
"lodash.uniq": "^4.0.1",
+ "lodash.uniqby": "^4.7.0",
"luma.gl": "^7.1.1",
"mini-svg-data-uri": "^1.0.3",
"moment": "^2.10.6",
@@ -108,6 +112,7 @@
"react-json-pretty": "^1.7.9",
"react-lifecycles-compat": "^3.0.4",
"react-map-gl": "^5.0.3",
+ "react-map-gl-draw": "0.14.8",
"react-markdown": "^4.0.6",
"react-modal": "^3.8.1",
"react-onclickoutside": "^6.7.1",
diff --git a/src/actions/actions.js b/src/actions/actions.js
index 7720f775c..c31e96128 100644
--- a/src/actions/actions.js
+++ b/src/actions/actions.js
@@ -156,7 +156,7 @@ export const receiveMapConfig = createAction(
* @param {Boolean} payload.mapStylesReplaceDefault - mapStylesReplaceDefault to be saved to mapStyle reducer
* @public
*/
-export const keplerGlInit = createAction(
+export const keplerGlInit = createAction(
ActionTypes.INIT,
({mapboxApiAccessToken, mapboxApiUrl, mapStylesReplaceDefault} = {}) => ({mapboxApiAccessToken, mapboxApiUrl, mapStylesReplaceDefault})
);
diff --git a/src/actions/ui-state-actions.js b/src/actions/ui-state-actions.js
index 86e53a65e..3326d7693 100644
--- a/src/actions/ui-state-actions.js
+++ b/src/actions/ui-state-actions.js
@@ -78,7 +78,7 @@ export const hideExportDropdown = createAction(
*/
export const toggleMapControl = createAction(
ActionTypes.TOGGLE_MAP_CONTROL,
- panelId => panelId
+ (panelId, index) => ({panelId, index})
);
/**
diff --git a/src/actions/vis-state-actions.js b/src/actions/vis-state-actions.js
index 8515b19cb..f87b25463 100644
--- a/src/actions/vis-state-actions.js
+++ b/src/actions/vis-state-actions.js
@@ -340,7 +340,7 @@ export function updateFilterAnimationSpeed(idx, speed) {
* Reset animation
* @memberof visStateActions
* @param {Number} value - Current value of the slider
- * @returns {{type: ActionTypes.RESET_ANIMATION, value: value}}
+ * @returns {{type: ActionTypes.UPDATE_ANIMATION_TIME, value: value}}
* @public
*/
export function updateAnimationTime(value) {
@@ -378,6 +378,19 @@ export function enlargeFilter(idx) {
};
}
+/**
+ * Show/hide filter feature on map
+ * @memberof visStateActions
+ * @param {Number} idx - index of filter feature to show/hide
+ * @return {{type: ActionTypes.TOGGLE_FILTER_FEATURE, idx: idx}}
+ */
+export function toggleFilterFeature(idx) {
+ return {
+ type: ActionTypes.TOGGLE_FILTER_FEATURE,
+ idx
+ }
+}
+
/**
* Trigger layer hover event with hovered object
* @memberof visStateActions
@@ -485,7 +498,7 @@ export function loadFiles(files) {
* Trigger loading file error
* @memberof visStateActions
* @param {*} error
- * @returns {{type: ActionTypes.LOAD_FILES_ERR, error: *}}
+ * @returns {{type: ActionTypes.LOAD_FILES_ERR, error: Object}}
* @public
*/
export function loadFilesErr(error) {
@@ -495,6 +508,90 @@ export function loadFilesErr(error) {
};
}
+/**
+ * Store features to state
+ * @memberof visStateActions
+ * @param {Array<Object>} features
+ * @returns {{type: ActionTypes.SET_FEATURES, features: Object}}
+ */
+export function setFeatures(features) {
+ return {
+ type: ActionTypes.SET_FEATURES,
+ features
+ }
+}
+
+/**
+ * It will apply the provide feature as filter to the given layer.
+ * If the given feature is already applied as filter to the layer, it will remove the layer from the filter
+ * @memberof visStateActions
+ * @param {Object} layer
+ * @param {Object} feature
+ * @return {{feature: *, type: ActionTypes.SET_POLYGON_FILTER_LAYER, layer: *}}
+ */
+export function setPolygonFilterLayer(layer, feature) {
+ return {
+ type: ActionTypes.SET_POLYGON_FILTER_LAYER,
+ layer,
+ feature
+ };
+}
+
+/**
+ * Set the current feature to be edited/deleted
+ * @memberof visStateActions
+ * @param {Object} feature
+ * @return {{feature: feature, type: ActionTypes.SET_SELECTED_FEATURE}}
+ */
+export function setSelectedFeature(feature) {
+ return {
+ type: ActionTypes.SET_SELECTED_FEATURE,
+ feature
+ }
+}
+
+/**
+ * Delete the given feature
+ * @memberof visStateActions
+ * @param {Object} feature
+ * @return {{type: ActionTypes.DELETE_FEATURE, feature: feature}}
+ */
+export function deleteFeature(feature) {
+ return {
+ type: ActionTypes.DELETE_FEATURE,
+ feature
+ };
+}
+
+/** Set the map mode
+ * @memberof visStateActions
+ * @param {string} mode one of EDITOR_MODES
+ * @return {{type: ActionTypes. SET_EDITOR_MODE, mode: *}}
+ * @public
+ * @example
+ * import {setMapMode} from 'kepler.gl/actions';
+ * import {EDITOR_MODES} from 'kepler.gl/constants';
+ *
+ * this.props.dispatch(setMapMode(EDITOR_MODES.DRAW_POLYGON));
+ */
+export function setEditorMode(mode) {
+ return {
+ type: ActionTypes.SET_EDITOR_MODE,
+ mode
+ };
+}
+
+/**
+ * Toggle editor layer visibility
+ * @memberof visStateActions
+ * @return {{type: ActionTypes.TOGGLE_EDITOR_VISIBILITY}}
+ */
+export function toggleEditorVisibility() {
+ return {
+ type: ActionTypes.TOGGLE_EDITOR_VISIBILITY
+ }
+}
+
/**
* This declaration is needed to group actions in docs
*/
diff --git a/src/components/common/action-panel.js b/src/components/common/action-panel.js
new file mode 100644
index 000000000..8e57ba94e
--- /dev/null
+++ b/src/components/common/action-panel.js
@@ -0,0 +1,183 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback} from 'react';
+import styled from 'styled-components';
+import {
+ ArrowRight
+} from 'components/common/icons';
+import Checkbox from 'components/common/switch';
+
+const StyledItem = styled.div`
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ font-size: 12px;
+ line-height: 14px;
+ padding: 8px;
+ min-height: ${props => props.theme.actionPanelHeight}px;
+ text-transform: capitalize;
+ background-color: ${props => props.theme.dropdownListBgd};
+ width: ${props => props.theme.actionPanelWidth}px;
+ position: relative;
+ ${props => props.color ? `border-left: 3px solid rgb(${props.color});` : ''}
+
+ :hover {
+ cursor: pointer;
+ color: ${props => props.theme.textColorHl};
+ .nested-group {
+ display: block;
+ }
+ }
+
+ .label {
+ margin-left: 8px;
+ }
+
+ .label-icon {
+ margin-left: auto;
+ }
+
+ .nested-group {
+ width: 110px;
+ display: none;
+ color: ${props => props.theme.textColor};
+ position: absolute;
+ left: 110px;
+ top: 0px;
+ padding-left: 4px;
+ }
+`;
+
+const StyledCheckedbox = styled(Checkbox)`
+ label {
+ margin-bottom: 0;
+ color: ${props => props.theme.textColor};
+ padding-left: 20px;
+ line-height: 12px;
+
+ &:before {
+ width: 12px;
+ height: 12px;
+ background-color: ${props => props.theme.dropdownListBgd};
+ }
+ &:hover {
+ color: ${props => props.theme.textColorHl};
+ }
+ }
+`;
+
+const renderChildren = (child, index) => React.cloneElement(child, {
+ onClick: () => {
+ if (React.isValidElement(child)) {
+ if (child.props.onClick) {
+ child.props.onClick(index);
+ }
+ }
+ },
+ className: 'action-panel-item'
+});
+
+export const ActionPanelItem = React.memo(({
+ children,
+ color,
+ className,
+ Icon,
+ label,
+ onClick,
+ isSelection,
+ isActive,
+ style}) => {
+
+ const onClickCallback = useCallback(event => {
+ event.preventDefault();
+ event.stopPropagation();
+ onClick()
+ }, [onClick]);
+
+ return (
+ <StyledItem
+ className={className}
+ onClick={onClickCallback}
+ color={color}
+ style={style}
+ >
+ {Icon ? (
+ <div className="icon">
+ <Icon height="16px"/>
+ </div>
+ ) : null}
+ {isSelection ? (
+ <StyledCheckedbox
+ type="checkbox"
+ checked={Boolean(isActive)}
+ id={`switch-${label}`}
+ secondary
+ label={label}
+ />
+ ) : (
+ <span className="label">{label}</span>
+ )}
+ {children && children.length ? (
+ <div>
+ <div className="label-icon">
+ <ArrowRight height="16px" />
+ </div>
+ <div className="nested-group">
+ {React.Children.map(children, renderChildren)}
+ </div>
+ </div>
+ ) : null}
+ </StyledItem>
+ );
+});
+
+ActionPanelItem.displayName = 'ActionPanelItem';
+
+const StyledActionPanel = styled.div`
+ display: flex;
+ flex-direction: ${props => props.direction};
+ box-shadow: ${props => props.theme.dropdownListShadow};
+ transition: ${props => props.theme.transitionSlow};
+ color: ${props => props.theme.textColor};
+
+ .action-panel-item {
+ ${props => props.direction === 'column' ?
+ `border-bottom: 1px solid ${props.theme.panelHeaderIcon}`
+ :
+ `border-right: 1px solid ${props.theme.panelHeaderIcon}`
+ }
+
+ &:last-of-type {
+ border-bottom: 0
+ }
+ }
+`;
+
+// React compound element https://medium.com/@Dane_s/react-js-compound-components-a6e54b5c9992
+const ActionPanel = ({children, className, direction = 'column'}) => (
+ <StyledActionPanel className={className} direction={direction}>
+ {React.Children.map(children, renderChildren)}
+ </StyledActionPanel>
+);
+
+ActionPanel.displayName = 'ActionPanel';
+
+export default ActionPanel;
diff --git a/src/components/common/animation-control/playback-controls.js b/src/components/common/animation-control/playback-controls.js
index e42339175..c695534c6 100644
--- a/src/components/common/animation-control/playback-controls.js
+++ b/src/components/common/animation-control/playback-controls.js
@@ -63,7 +63,8 @@ function AnimationPlaybacksFactory() {
})}
>
<ButtonGroup>
- <IconButton className="playback-control-button"
+ <IconButton
+ className="playback-control-button"
{...btnStyle}
onClick={updateAnimationTime}>
<Reset height={buttonHeight} />
diff --git a/src/components/common/checkbox.js b/src/components/common/checkbox.js
index fdd338e21..9f6613a9e 100644
--- a/src/components/common/checkbox.js
+++ b/src/components/common/checkbox.js
@@ -22,6 +22,7 @@ import React, {Component} from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import pick from 'lodash.pick';
+import classnames from 'classnames';
function noop() {}
@@ -41,7 +42,7 @@ const HiddenInput = styled.input`
const StyledCheckbox = styled.div`
line-height: 0;
- height: ${props => props.theme.switchBtnHeight};
+ min-height: ${props => props.theme.switchBtnHeight};
margin-left: ${props => props.theme.switchLabelMargin}px;
`;
@@ -100,7 +101,7 @@ export default class Checkbox extends Component {
const LabelElement = this.props.type === 'checkbox' ? StyledCheckboxInput : StyledSwitchInput;
return (
- <StyledCheckbox className="kg-checkbox">
+ <StyledCheckbox className={classnames('kg-checkbox', this.props.className)}>
<HiddenInput {...inputProps} />
<LabelElement className="kg-checkbox__label" {...labelProps}>
{this.props.label}
diff --git a/src/components/common/datagrid.js b/src/components/common/datagrid.js
index f06015e63..0be65e544 100644
--- a/src/components/common/datagrid.js
+++ b/src/components/common/datagrid.js
@@ -172,7 +172,7 @@ function DataGridFactory(
_cellRenderer = ({columnIndex, key, rowIndex, style}) => {
const {columns, rows} = this.props;
- const isLast = columnIndex === columns.length - 1
+ const isLast = columnIndex === columns.length - 1;
const type = columns[columnIndex].type;
// rowIndex -1 because data rows start rendering at index 1 and we normalize back using the -1 param
@@ -227,7 +227,7 @@ function DataGridFactory(
DataGrid.displayName = 'DataGrid';
// Wrapping the component using withTheme because we need to
- // access variables outside sytled-components context
+ // access variables outside styled-components context
return withTheme(DataGrid);
}
diff --git a/src/components/common/field-selector.js b/src/components/common/field-selector.js
index f5658e02a..0200aa9fa 100644
--- a/src/components/common/field-selector.js
+++ b/src/components/common/field-selector.js
@@ -19,6 +19,7 @@
// THE SOFTWARE.
import React, {Component} from 'react';
+import styled from 'styled-components';
import PropTypes from 'prop-types';
import {createSelector} from 'reselect';
@@ -28,17 +29,29 @@ import {classList} from './item-selector/dropdown-list';
const defaultDisplayOption = d => d.name;
+const StyledFieldItem = styled.div`
+ .${classList.listItemAnchor} {
+ color: white;
+ }
+`;
+
+const StyledToken = styled.div`
+ display: inline-block;
+ margin: 0 4px 0 0;
+`;
// custom list Item
-const FieldListItemFactory = showToken => {
+export const FieldListItemFactory = (showToken = true) => {
const FieldListItem = ({value, displayOption = defaultDisplayOption}) => (
- <div>
+ <StyledFieldItem>
{showToken ? (
- <div style={{display: 'inline-block', margin: '0 4px 0 0'}}>
+ <StyledToken>
<FieldToken type={value.type} />
- </div>
+ </StyledToken>
) : null}
- <span className={classList.listItemAnchor}>{displayOption(value)}</span>
- </div>
+ <span className={classList.listItemAnchor}>
+ {displayOption(value)}
+ </span>
+ </StyledFieldItem>
);
return FieldListItem;
diff --git a/src/components/common/icons/base.js b/src/components/common/icons/base.js
index 1b50be247..97affa310 100644
--- a/src/components/common/icons/base.js
+++ b/src/components/common/icons/base.js
@@ -51,7 +51,10 @@ export default class Base extends Component {
width: null,
viewBox: '0 0 64 64',
predefinedClassName: '',
- className: ''
+ className: '',
+ style: {
+ fill: 'currentColor'
+ }
};
render() {
@@ -59,7 +62,7 @@ export default class Base extends Component {
height,
width,
viewBox,
- style = {},
+ style,
children,
predefinedClassName,
className,
@@ -69,7 +72,6 @@ export default class Base extends Component {
} = this.props;
const svgHeight = height;
const svgWidth = width || svgHeight;
- style.fill = 'currentColor';
const fillStyle =
Array.isArray(colors) &&
diff --git a/src/components/common/icons/draw-polygon.js b/src/components/common/icons/draw-polygon.js
new file mode 100644
index 000000000..fb4dff370
--- /dev/null
+++ b/src/components/common/icons/draw-polygon.js
@@ -0,0 +1,56 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {Component} from 'react';
+import PropTypes from 'prop-types';
+import Base from './base';
+
+export default class DrawPolygon extends Component {
+ static propTypes = {
+ /** Set the height of the icon, ex. '16px' */
+ height: PropTypes.string,
+ predefinedClassName: PropTypes.string,
+ viewBox: PropTypes.string,
+ style: PropTypes.object
+ };
+
+ static defaultProps = {
+ height: '16px',
+ predefinedClassName: 'data-ex-icons-draw-polygon',
+ viewBox: '0 0 24 25'
+ };
+
+ render() {
+ return (
+ <Base {...this.props}>
+ <path fillRule="evenodd" clipRule="evenodd" d="M5 6L13 2L22 9L21 23L2 17L5 6Z" stroke="currentColor" fill="transparent" strokeWidth="1.5"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M11.5 16C12.3284 16 13 15.3284 13 14.5C13 13.6716 12.3284 13 11.5 13C10.6716 13 10 13.6716 10 14.5C10 15.3284 10.6716 16 11.5 16Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M15.5 12C16.3284 12 17 11.3284 17 10.5C17 9.67157 16.3284 9 15.5 9C14.6716 9 14 9.67157 14 10.5C14 11.3284 14.6716 12 15.5 12Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M22 11C23.1046 11 24 10.1046 24 9C24 7.89543 23.1046 7 22 7C20.8954 7 20 7.89543 20 9C20 10.1046 20.8954 11 22 11Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M21 25C22.1046 25 23 24.1046 23 23C23 21.8954 22.1046 21 21 21C19.8954 21 19 21.8954 19 23C19 24.1046 19.8954 25 21 25Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M2 19C3.10457 19 4 18.1046 4 17C4 15.8954 3.10457 15 2 15C0.89543 15 0 15.8954 0 17C0 18.1046 0.89543 19 2 19Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M13 4C14.1046 4 15 3.10457 15 2C15 0.89543 14.1046 0 13 0C11.8954 0 11 0.89543 11 2C11 3.10457 11.8954 4 13 4Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M5 8C6.10457 8 7 7.10457 7 6C7 4.89543 6.10457 4 5 4C3.89543 4 3 4.89543 3 6C3 7.10457 3.89543 8 5 8Z"/>
+ </Base>
+ );
+ }
+}
+
diff --git a/src/components/common/icons/index.js b/src/components/common/icons/index.js
index 78bf9d3b2..48c4c9d7e 100644
--- a/src/components/common/icons/index.js
+++ b/src/components/common/icons/index.js
@@ -71,4 +71,7 @@ export {default as VertThreeDots} from './vert-three-dots';
export {default as IconWrapper} from './base';
export {default as CodeAlt} from './code-alt';
export {default as Warning} from './warning';
+export {default as DrawPolygon} from './draw-polygon';
+export {default as Polygon} from './polygon';
+export {default as Rectangle} from './rectangle';
diff --git a/src/components/common/icons/polygon.js b/src/components/common/icons/polygon.js
new file mode 100644
index 000000000..c83fa4f10
--- /dev/null
+++ b/src/components/common/icons/polygon.js
@@ -0,0 +1,51 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {Component} from 'react';
+import PropTypes from 'prop-types';
+import Base from './base';
+
+export default class DrawPolygon extends Component {
+ static propTypes = {
+ /** Set the height of the icon, ex. '16px' */
+ height: PropTypes.string,
+ predefinedClassName: PropTypes.string,
+ viewBox: PropTypes.string,
+ style: PropTypes.object
+ };
+
+ static defaultProps = {
+ height: '16px',
+ predefinedClassName: 'data-ex-icons-polygon',
+ viewBox: '0 0 22 18'
+ };
+
+ render() {
+ return (
+ <Base {...this.props}>
+ <path fillRule="evenodd" clipRule="evenodd" d="M9 2L18 6L20 16L2 13L9 2Z" stroke="currentColor" fill="transparent" strokeWidth="1.5"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M9 4C10.1046 4 11 3.10457 11 2C11 0.89543 10.1046 0 9 0C7.89543 0 7 0.89543 7 2C7 3.10457 7.89543 4 9 4Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M2 15C3.10457 15 4 14.1046 4 13C4 11.8954 3.10457 11 2 11C0.89543 11 0 11.8954 0 13C0 14.1046 0.89543 15 2 15Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M20 18C21.1046 18 22 17.1046 22 16C22 14.8954 21.1046 14 20 14C18.8954 14 18 14.8954 18 16C18 17.1046 18.8954 18 20 18Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z"/>
+ </Base>
+ );
+ }
+}
diff --git a/src/components/common/icons/rectangle.js b/src/components/common/icons/rectangle.js
new file mode 100644
index 000000000..b23f62fbf
--- /dev/null
+++ b/src/components/common/icons/rectangle.js
@@ -0,0 +1,51 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {Component} from 'react';
+import PropTypes from 'prop-types';
+import Base from './base';
+
+export default class Rectangle extends Component {
+ static propTypes = {
+ /** Set the height of the icon, ex. '16px' */
+ height: PropTypes.string,
+ predefinedClassName: PropTypes.string,
+ viewBox: PropTypes.string,
+ style: PropTypes.object
+ };
+
+ static defaultProps = {
+ height: '16px',
+ predefinedClassName: 'data-ex-icons-rectangle',
+ viewBox: '0 0 22 16'
+ };
+
+ render() {
+ return (
+ <Base {...this.props}>
+ <rect x="2" y="2" width="18" height="12" stroke="currentColor" fill="transparent" strokeWidth="1.5"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M2 4C3.10457 4 4 3.10457 4 2C4 0.89543 3.10457 0 2 0C0.89543 0 0 0.89543 0 2C0 3.10457 0.89543 4 2 4Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M2 16C3.10457 16 4 15.1046 4 14C4 12.8954 3.10457 12 2 12C0.89543 12 0 12.8954 0 14C0 15.1046 0.89543 16 2 16Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M20 16C21.1046 16 22 15.1046 22 14C22 12.8954 21.1046 12 20 12C18.8954 12 18 12.8954 18 14C18 15.1046 18.8954 16 20 16Z"/>
+ <path fillRule="evenodd" clipRule="evenodd" d="M20 4C21.1046 4 22 3.10457 22 2C22 0.89543 21.1046 0 20 0C18.8954 0 18 0.89543 18 2C18 3.10457 18.8954 4 20 4Z"/>
+ </Base>
+ );
+ }
+}
diff --git a/src/components/common/item-selector/item-selector.js b/src/components/common/item-selector/item-selector.js
index de32bef38..8fb586869 100644
--- a/src/components/common/item-selector/item-selector.js
+++ b/src/components/common/item-selector/item-selector.js
@@ -21,7 +21,7 @@
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
-import uniq from 'lodash.uniq';
+import uniqBy from 'lodash.uniqby';
import listensToClickOutside from 'react-onclickoutside';
import styled from 'styled-components';
@@ -31,25 +31,7 @@ import Typeahead from './typeahead';
import {Delete} from 'components/common/icons';
import DropdownList, {ListItem} from './dropdown-list';
-/**
- * Converts non-arrays to arrays. Leaves arrays alone. Converts
- * undefined values to empty arrays ([] instead of [undefined]).
- * Otherwise, just returns [item] for non-array items.
- *
- * @param {*} item
- * @returns {array} boom! much array. very indexed. so useful.
- */
-function _toArray(item) {
- if (Array.isArray(item)) {
- return item;
- }
-
- if (typeof item === 'undefined' || item === null) {
- return [];
- }
-
- return [item];
-}
+import {toArray} from 'utils/utils';
const StyledDropdownSelect = styled.div.attrs({
className: 'item-selector__dropdown'
@@ -190,10 +172,10 @@ class ItemSelector extends Component {
this.props.getOptionValue || this.props.displayOption
);
- const previousSelected = _toArray(this.props.selectedItems);
+ const previousSelected = toArray(this.props.selectedItems);
if (this.props.multiSelect) {
- const items = uniq(previousSelected.concat(_toArray(item).map(getValue)));
+ const items = uniqBy(previousSelected.concat(toArray(item)), getValue);
this.props.onChange(items);
} else {
this.props.onChange(getValue(item));
@@ -241,14 +223,14 @@ class ItemSelector extends Component {
)}
searchable={this.props.searchable}
showOptionsWhenEmpty
- selectedItems={_toArray(this.props.selectedItems)}
+ selectedItems={toArray(this.props.selectedItems)}
/>
</DropdownWrapper>
);
}
render() {
- const selected = _toArray(this.props.selectedItems);
+ const selected = toArray(this.props.selectedItems);
const hasValue = selected.length;
const displayOption = Accessor.generateOptionToStringFor(
this.props.displayOption
@@ -272,7 +254,7 @@ class ItemSelector extends Component {
{this.props.multiSelect ? (
<ChickletedInput
{...dropdownSelectProps}
- selectedItems={_toArray(this.props.selectedItems)}
+ selectedItems={toArray(this.props.selectedItems)}
placeholder={this.props.placeholder}
displayOption={displayOption}
removeItem={this._removeItem}
diff --git a/src/components/common/styled-components.js b/src/components/common/styled-components.js
index 17b84501c..0cc272316 100644
--- a/src/components/common/styled-components.js
+++ b/src/components/common/styled-components.js
@@ -62,9 +62,10 @@ export const CenterFlexbox = styled.div`
export const SpaceBetweenFlexbox = styled.div`
display: flex;
- align-items: space-between;
+ justify-content: space-between;
margin-left: -16px;
`;
+
export const SBFlexboxItem = styled.div`
flex-grow: 1;
margin-left: 16px;
@@ -540,3 +541,8 @@ export const MapControlButton = styled.div.attrs({
color: ${props => props.theme.secondaryBtnActColor};
}
`;
+
+export const StyledFilterContent = styled.div`
+ background-color: ${props => props.theme.panelBackground};
+ padding: 12px;
+`;
diff --git a/src/components/common/toolbar-item.js b/src/components/common/toolbar-item.js
new file mode 100644
index 000000000..7d6d48b36
--- /dev/null
+++ b/src/components/common/toolbar-item.js
@@ -0,0 +1,43 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React from 'react';
+import styled from 'styled-components';
+
+const StyledDiv = styled.div`
+ color: ${props => props.active ?
+ 'white' : props.theme.textColor
+ };
+`;
+
+const ToolbarItem = React.memo(({active, className, icon, label, onClick}) => (
+ <StyledDiv active={active} className="toolbar-item" onClick={(e) => {
+ e.stopPropagation();
+ e.preventDefault();
+ onClick(e);
+ }}>
+ {icon}
+ <div className="toolbar-item__title">{label}</div>
+ </StyledDiv>
+));
+
+ToolbarItem.displayName = 'ToolbarItem';
+
+export default ToolbarItem;
diff --git a/src/components/common/toolbar.js b/src/components/common/toolbar.js
new file mode 100644
index 000000000..7c06aa0ee
--- /dev/null
+++ b/src/components/common/toolbar.js
@@ -0,0 +1,68 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import styled from 'styled-components';
+
+const Toolbar = styled.div`
+ display: flex;
+ flex-direction: row;
+ background-color: ${props => props.theme.dropdownListBgd};
+ box-shadow: ${props => props.theme.dropdownListShadow};
+ font-size: 11px;
+ padding: 16px 0;
+ transition: ${props => props.theme.transitionSlow};
+ margin-top: ${props => props.show ? '6px' : '20px'};
+ opacity: ${props => props.show ? 1 : 0};
+ transform: translateX(calc(-50% + 20px));
+ pointer-events: ${props => props.show ? 'all' : 'none'};
+ z-index: 1000;
+
+ .save-export-dropdown__inner {
+ box-shadow: none;
+ background-color: transparent;
+ display: flex;
+ }
+
+ .toolbar-item {
+ align-items: center;
+ border-right: 1px solid ${props => props.theme.panelHeaderIcon};
+ padding: 0 22px;
+ display: flex;
+ flex-direction: column;
+
+ .toolbar-item__title {
+ white-space: nowrap;
+ margin-top: 4px;
+ }
+
+ :hover {
+ cursor: pointer;
+ color: ${props => props.theme.textColorHl};
+ }
+
+ &:last-child {
+ border-right: 0;
+ }
+ }
+`;
+
+Toolbar.displayName = 'Toolbar';
+
+export default Toolbar;
diff --git a/src/components/common/vertical-toolbar.js b/src/components/common/vertical-toolbar.js
new file mode 100644
index 000000000..0c0a0f45b
--- /dev/null
+++ b/src/components/common/vertical-toolbar.js
@@ -0,0 +1,41 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import styled from 'styled-components';
+import Toolbar from './toolbar';
+
+const VerticalToolbar = styled(Toolbar)`
+ flex-direction: column;
+ padding: 0 24px;
+
+ .toolbar-item {
+ padding: 16px 0;
+ border-right: 0;
+ border-bottom: 1px solid ${props => props.theme.panelHeaderIcon};
+
+ &:last-of-type {
+ border-bottom: 0;
+ }
+ }
+`;
+
+VerticalToolbar.displayName = 'VerticalToolbar';
+
+export default VerticalToolbar;
diff --git a/src/components/editor/constants.js b/src/components/editor/constants.js
new file mode 100644
index 000000000..a3750c256
--- /dev/null
+++ b/src/components/editor/constants.js
@@ -0,0 +1,40 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+// Copied from react-map-gl-draw until it gets exported
+export const RENDER_STATE = {
+ INACTIVE: 'INACTIVE',
+ UNCOMMITTED: 'UNCOMMITTED',
+ SELECTED: 'SELECTED',
+ HOVERED: 'HOVERED'
+};
+export const RENDER_TYPE = {
+ POINT: 'Point',
+ LINE_STRING: 'LineString',
+ POLYGON: 'Polygon',
+ RECTANGLE: 'Rectangle'
+};
+
+export const COLORS = {
+ PRIMARY: '#26B5F2',
+ SECONDARY: '#ffff00',
+ TERTIARY: '#6c6c6c'
+};
+
diff --git a/src/components/editor/editor.js b/src/components/editor/editor.js
new file mode 100644
index 000000000..b96b5df60
--- /dev/null
+++ b/src/components/editor/editor.js
@@ -0,0 +1,232 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {Component} from 'react';
+import PropTypes from 'prop-types';
+import styled from 'styled-components';
+import {Editor as Draw} from 'react-map-gl-draw';
+import window from 'global/window';
+import classnames from 'classnames';
+import get from 'lodash.get';
+
+import {EDITOR_AVAILABLE_LAYERS} from 'constants/default-settings';
+import FeatureActionPanel from './feature-action-panel';
+import {FILTER_TYPES} from 'utils/filter-utils';
+
+import {
+ DEFAULT_RADIUS,
+ getStyle as getFeatureStyle
+} from './feature-styles';
+import {
+ getStyle as getEditHandleStyle,
+ getEditHandleShape
+} from './handle-style';
+import {EDITOR_MODES} from 'constants';
+import {createSelector} from 'reselect';
+
+const DELETE_KEY_EVENT_CODE = 46;
+const BACKSPACE_KEY_EVENT_CODE = 8;
+const ESCAPE_KEY_EVENT_CODE = 27;
+
+const StyledWrapper = styled.div`
+ cursor: ${props => props.editor.mode === EDITOR_MODES.EDIT ? 'pointer' : 'crosshair'};
+ position: relative;
+`;
+
+const editorLayerFilter = layer => EDITOR_AVAILABLE_LAYERS.includes(layer.type);
+
+class Editor extends Component {
+ static propTypes = {
+ filters: PropTypes.arrayOf(PropTypes.object).isRequired,
+ layers: PropTypes.arrayOf(PropTypes.object).isRequired,
+ datasets: PropTypes.object.isRequired,
+ editor: PropTypes.object.isRequired,
+ layersToRender: PropTypes.object.isRequired,
+ onSelect: PropTypes.func.isRequired,
+ onUpdate: PropTypes.func.isRequired,
+ onDeleteFeature: PropTypes.func.isRequired,
+ onTogglePolygonFilter: PropTypes.func.isRequired,
+
+ index: PropTypes.number,
+ classnames: PropTypes.string,
+ clickRadius: PropTypes.number,
+ isEnabled: PropTypes.bool
+ };
+
+ static defaultProps = {
+ clickRadius: DEFAULT_RADIUS
+ };
+
+ state = {
+ showActions: false,
+ lastPosition: null
+ };
+
+ componentDidMount() {
+ window.addEventListener('keydown', this._onKeyPressed);
+ }
+
+ componentWillUnmount() {
+ window.removeEventListener('keydown', this._onKeyPressed);
+ }
+
+ layerSelector = props => props.layers;
+ layersToRenderSelector = props => props.layersToRender;
+ filterSelector = props => props.filters;
+ selectedFeatureIdSelector = props => get(props, ['editor', 'selectedFeature', 'id']);
+ editorFeatureSelector = props => get(props, ['editor', 'features']);
+
+ currentFilterSelector = createSelector(
+ this.filterSelector,
+ this.selectedFeatureIdSelector,
+ (filters, selectedFeatureId) => filters.find(f =>
+ f.value && f.value.id === selectedFeatureId
+ )
+ );
+
+ availableLayersSeletor = createSelector(
+ this.layerSelector,
+ this.layersToRenderSelector,
+ (layers, layersToRender) => layers
+ .filter(editorLayerFilter)
+ .filter(layer => {
+ return layersToRender[layer.id];
+ })
+ );
+
+ allFeaturesSelector = createSelector(
+ this.filterSelector,
+ this.editorFeatureSelector,
+ (filters, editorFeatures) =>
+ filters
+ .filter(f => f.type === FILTER_TYPES.polygon)
+ .map(f => f.value)
+ .concat(editorFeatures)
+ );
+
+ _onKeyPressed = event => {
+ const {isEnabled} = this.props;
+
+ if (!isEnabled) {
+ return;
+ }
+
+ switch (event.which) {
+ case DELETE_KEY_EVENT_CODE:
+ case BACKSPACE_KEY_EVENT_CODE:
+ this._onDeleteSelectedFeature();
+ break;
+ case ESCAPE_KEY_EVENT_CODE:
+ this.props.onSelect(null);
+ break;
+ default: break;
+ }
+ };
+
+ _onSelect = ({selectedFeatureId, sourceEvent}) => {
+ const allFeatures = this.allFeaturesSelector(this.props);
+ this.setState({
+ ...(sourceEvent.rightButton ? {
+ showActions: true,
+ lastPosition: {
+ x: sourceEvent.changedPointers[0].offsetX,
+ y: sourceEvent.changedPointers[0].offsetY
+ }
+ } : null)
+ }, () => {
+ this.props.onSelect(
+ allFeatures.find(f => f.id === selectedFeatureId)
+ );
+ });
+ };
+
+ _onDeleteSelectedFeature = () => {
+ if (this.state.showActions) {
+ this.setState({showActions: false});
+ }
+
+ const {editor} = this.props;
+ const {selectedFeature = {}} = editor;
+ this.props.onDeleteFeature(selectedFeature);
+ };
+
+ _closeFeatureAction = () => {
+ this.setState({showActions: false});
+ };
+
+ _onToggleLayer = layer => {
+ const {selectedFeature} = this.props.editor;
+ if (!selectedFeature) {
+ return;
+ }
+
+ this.props.onTogglePolygonFilter(layer, selectedFeature);
+ };
+
+ render() {
+ const {
+ className,
+ clickRadius,
+ datasets,
+ editor,
+ onUpdate,
+ style
+ } = this.props;
+
+ const {lastPosition, showActions} = this.state;
+ const selectedFeatureId = get(editor, ['selectedFeature', 'id']);
+ const currentFilter = this.currentFilterSelector(this.props);
+ const availableLayers = this.availableLayersSeletor(this.props);
+ const allFeatures = this.allFeaturesSelector(this.props);
+
+ return (
+ <StyledWrapper
+ editor={editor}
+ className={classnames('editor', className)}
+ style={style}
+ >
+ <Draw
+ clickRadius={clickRadius}
+ mode={editor.mode}
+ features={allFeatures}
+ selectedFeatureId={selectedFeatureId}
+ onSelect={this._onSelect}
+ onUpdate={onUpdate}
+ getEditHandleShape={getEditHandleShape}
+ getFeatureStyle={getFeatureStyle}
+ getEditHandleStyle={getEditHandleStyle}
+ />
+ {showActions && Boolean(selectedFeatureId) ? (
+ <FeatureActionPanel
+ datasets={datasets}
+ layers={availableLayers}
+ currentFilter={currentFilter}
+ onClose={this._closeFeatureAction}
+ onDeleteFeature={this._onDeleteSelectedFeature}
+ onToggleLayer={this._onToggleLayer}
+ position={lastPosition}
+ />
+ ) : null}
+ </StyledWrapper>
+ );
+ }
+}
+
+export default Editor;
diff --git a/src/components/editor/feature-action-panel.js b/src/components/editor/feature-action-panel.js
new file mode 100644
index 000000000..ac65c3ae6
--- /dev/null
+++ b/src/components/editor/feature-action-panel.js
@@ -0,0 +1,107 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {PureComponent} from 'react';
+import ActionPanel, {ActionPanelItem} from 'components/common/action-panel';
+import styled from 'styled-components';
+import onClickOutside from 'react-onclickoutside';
+import PropTypes from 'prop-types';
+import classnames from 'classnames';
+import {
+ Trash,
+ Layers
+} from 'components/common/icons';
+
+const LAYOVER_OFFSET = 4;
+
+const StyledActionsLayer = styled.div`
+ position: absolute;
+`;
+
+export class FeatureActionPanel extends PureComponent {
+ static propTypes = {
+ className: PropTypes.string,
+ datasets: PropTypes.object.isRequired,
+ position: PropTypes.object.isRequired,
+ layers: PropTypes.arrayOf(PropTypes.object).isRequired,
+ currentFilter: PropTypes.object,
+ onClose: PropTypes.func.isRequired,
+ onDeleteFeature: PropTypes.func.isRequired
+ };
+
+ static defaultProps = {
+ position: {}
+ };
+
+ // Used by onClickOutside
+ handleClickOutside = e => {
+ e.preventDefault();
+ e.stopPropagation();
+ this.props.onClose();
+ };
+
+ render() {
+ const {
+ className,
+ datasets,
+ position,
+ layers,
+ currentFilter,
+ onToggleLayer,
+ onDeleteFeature
+ } = this.props;
+
+ const {layerId = []} = (currentFilter || {});
+
+ return (
+ <StyledActionsLayer
+ className={classnames('feature-action-panel', className)}
+ style={{
+ top: `${position.y + LAYOVER_OFFSET}px`,
+ left: `${position.x + LAYOVER_OFFSET}px`
+ }}
+ >
+ <ActionPanel>
+ <ActionPanelItem label="layers" Icon={Layers}>
+ {layers.map((layer, index) => (
+ <ActionPanelItem
+ key={index}
+ label={layer.config.label}
+ color={datasets[layer.config.dataId].color}
+ isSelection={true}
+ isActive={layerId.includes(layer.id)}
+ onClick={() => onToggleLayer(layer)}
+ className="layer-panel-item"
+ />
+ ))}
+ </ActionPanelItem>
+ <ActionPanelItem
+ label="delete"
+ className="delete-panel-item"
+ Icon={Trash}
+ onClick={onDeleteFeature}
+ />
+ </ActionPanel>
+ </StyledActionsLayer>
+ )
+ }
+}
+
+export default onClickOutside(FeatureActionPanel);
diff --git a/src/components/editor/feature-styles.js b/src/components/editor/feature-styles.js
new file mode 100644
index 000000000..45b9be356
--- /dev/null
+++ b/src/components/editor/feature-styles.js
@@ -0,0 +1,75 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import {RenderStates, RenderTypes} from 'react-map-gl-draw';
+import get from 'lodash.get';
+import {COLORS} from './constants';
+
+export const DEFAULT_RADIUS = 5;
+export const DEFAULT_STATE_STYLE_STROKE = COLORS.PRIMARY;
+
+export const STATE_STYLES_STROKE = {
+ [RenderStates.INACTIVE]: '#26B5F2',
+ [RenderStates.UNCOMMITTED]: '#a9a9a9',
+ [RenderStates.CLOSING]: '#a9a9a9',
+ [RenderStates.SELECTED]: '#26B5F2',
+ [RenderStates.HOVERED]: '#26B5F2'
+};
+
+export const DEFAULT_STATE_STYLE_FILL = '#000';
+
+export const STATE_STYLES_FILL = {
+ [RenderStates.INACTIVE]: '#333333',
+ [RenderStates.HOVERED]: '#7ac943',
+ [RenderStates.SELECTED]: '#ffff00',
+ [RenderStates.UNCOMMITTED]: '#a9a9a9',
+ [RenderStates.CLOSING]: '#a9a9a9'
+};
+
+export const DEFAULT_STATE_STYLE_OPACITY = 0.1;
+
+export const STATE_STYLES_STROKE_WIDTH = 2;
+
+export const DEFAULT_STROKE_DASH_ARRAY = '4,2';
+
+export const RENDER_TYPE_STYLES = {
+ [RenderTypes.POINT]: () => ({r: DEFAULT_RADIUS}),
+ [RenderTypes.LINE_STRING]: () => ({fill: 'none'})
+};
+
+export function noOp() {}
+
+export function getStyle({feature, state}) {
+ const isVisible = get(feature, ['properties', 'isVisible'], true);
+ const style = {
+ stroke: STATE_STYLES_STROKE[state] || DEFAULT_STATE_STYLE_STROKE,
+ strokeWidth: isVisible ? STATE_STYLES_STROKE_WIDTH : 0,
+ fill: STATE_STYLES_FILL[state] || DEFAULT_STATE_STYLE_FILL,
+ fillOpacity: DEFAULT_STATE_STYLE_OPACITY,
+ ...(state !== RenderStates.SELECTED ? {strokeDasharray: DEFAULT_STROKE_DASH_ARRAY} : null)
+ };
+
+ const renderType = feature.properties ? feature.properties.renderType : feature.renderType;
+
+ return {
+ ...style,
+ ...(RENDER_TYPE_STYLES[renderType] || noOp)(state)
+ };
+}
diff --git a/src/components/editor/handle-style.js b/src/components/editor/handle-style.js
new file mode 100644
index 000000000..16fbd0a64
--- /dev/null
+++ b/src/components/editor/handle-style.js
@@ -0,0 +1,91 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import {RenderStates, RenderTypes} from 'react-map-gl-draw';
+import {COLORS} from './constants';
+import get from 'lodash.get';
+
+const DEFAULT_EDIT_HANDLE_SHAPE = 'circle';
+
+const rectStyle = {
+ x: -6,
+ y: -6,
+ height: 12,
+ width: 12
+};
+
+export const DEFAULT_STATE_STYLE_STROKE = COLORS.PRIMARY;
+
+export const STATE_STYLES_STROKE = {
+ [RenderStates.SELECTED]: COLORS.PRIMARY,
+ [RenderStates.HOVERED]: COLORS.SECONDARY
+};
+
+export const DEFAULT_STATE_STYLE_FILL = '#ffffff';
+
+export const STATE_STYLES_FILL = {
+ [RenderStates.SELECTED]: COLORS.SECONDARY,
+ [RenderStates.HOVERED]: COLORS.SECONDARY,
+ [RenderStates.INACTIVE]: COLORS.PRIMARY,
+ [RenderStates.UNCOMMITTED]: COLORS.PRIMARY
+};
+
+const STATE_STYLES_STROKE_WIDTH = 1;
+
+export const RENDER_TYPE_STYLES = {
+ [RenderTypes.POINT]: state => ({
+ fill: STATE_STYLES_FILL[state],
+ stroke: state === RenderStates.SELECTED
+ ? COLORS.PRIMARY
+ : DEFAULT_STATE_STYLE_STROKE
+ }),
+ [RenderTypes.LINE_STRING]: () => rectStyle,
+ [RenderTypes.RECTANGLE]: () => rectStyle,
+ [RenderTypes.POLYGON]: () => rectStyle
+};
+
+export const DEFAULT_STATE_STYLE_OPACITY = 0;
+
+export const DEFAULT_RADIUS = 5;
+
+function noOp() {}
+
+export function getStyle({feature, state}) {
+ const isVisible = get(feature, ['properties', 'isVisible'], true);
+
+ const style = {
+ stroke: STATE_STYLES_STROKE[state] || DEFAULT_STATE_STYLE_STROKE,
+ strokeWidth: isVisible ? STATE_STYLES_STROKE_WIDTH : 0,
+ fill: DEFAULT_STATE_STYLE_FILL,
+ fillOpacity: DEFAULT_STATE_STYLE_OPACITY,
+ r: DEFAULT_RADIUS
+ };
+
+ const renderType = feature.properties ? feature.properties.renderType : feature.renderType;
+
+ return {
+ ...style,
+ ...(RENDER_TYPE_STYLES[renderType] || noOp)(state)
+ };
+}
+
+export function getEditHandleShape() {
+ return DEFAULT_EDIT_HANDLE_SHAPE;
+}
diff --git a/src/components/filters/components.js b/src/components/filters/components.js
new file mode 100644
index 000000000..8c37d3812
--- /dev/null
+++ b/src/components/filters/components.js
@@ -0,0 +1,28 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import styled from 'styled-components';
+import {PanelLabel} from 'components/common/styled-components';
+
+export const StyledFilterPanel = styled(PanelLabel)`
+ font-weight: 500;
+ color: white;
+ flex: 1;
+`;
diff --git a/src/components/filters/filter-panels/filter-panel-with-field-select.js b/src/components/filters/filter-panels/filter-panel-with-field-select.js
new file mode 100644
index 000000000..fb87893fd
--- /dev/null
+++ b/src/components/filters/filter-panels/filter-panel-with-field-select.js
@@ -0,0 +1,109 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback, useMemo} from 'react';
+import {StyledFilterContent} from 'components/common/styled-components';
+import FilterPanelHeaderFactory from 'components/side-panel/filter-panel/filter-panel-header';
+import FieldSelector from 'components/common/field-selector';
+import PanelHeaderAction from 'components/side-panel/panel-header-action';
+import SourceDataSelectorFactory from 'components/side-panel/common/source-data-selector';
+
+FieldPanelWithFieldSelectFactory.deps = [
+ FilterPanelHeaderFactory,
+ SourceDataSelectorFactory
+];
+
+function FieldPanelWithFieldSelectFactory(
+ FilterPanelHeader,
+ SourceDataSelector
+) {
+ const FilterPanelWithFieldSelect = React.memo(({
+ allAvailableFields,
+ children,
+ datasets,
+ filter,
+ idx,
+ removeFilter,
+ setFilter,
+ panelActions = []
+ }) => {
+ const onFieldSelector = useCallback(field =>
+ setFilter(idx, 'name', field.name),
+ [idx, setFilter]
+ );
+
+ const onSourceDataSelector = useCallback(value =>
+ setFilter(idx, 'dataId', value),
+ [idx, setFilter]
+ );
+
+ const fieldValue = useMemo(() => Array.isArray(filter.name) ?
+ filter.name[0] : filter.name,
+ [filter.name]
+ );
+
+ return (
+ <>
+ <FilterPanelHeader
+ datasets={[datasets[filter.dataId[0]]]}
+ allAvailableFields={allAvailableFields}
+ idx={idx}
+ filter={filter}
+ removeFilter={removeFilter}
+ >
+ <FieldSelector
+ inputTheme="secondary"
+ fields={allAvailableFields}
+ value={fieldValue}
+ erasable={false}
+ onSelect={onFieldSelector}
+ />
+ {panelActions && panelActions.map(panelAction => (
+ <PanelHeaderAction
+ id={panelAction.id}
+ onClick={panelAction.onClick}
+ tooltip={panelAction.tooltip}
+ IconComponent={panelAction.iconComponent}
+ active={panelAction.active}
+ />
+ ))}
+ </FilterPanelHeader>
+ <StyledFilterContent className="filter-panel__content">
+ {Object.keys(datasets).length > 1 && (
+ <SourceDataSelector
+ inputTheme="secondary"
+ datasets={datasets}
+ disabled={filter.freeze}
+ dataId={filter.dataId}
+ onSelect={onSourceDataSelector}
+ />
+ )}
+ {children}
+ </StyledFilterContent>
+ </>
+ )
+ });
+
+ FilterPanelWithFieldSelect.displayName = 'FilterPanelWithFieldSelect';
+
+ return FilterPanelWithFieldSelect;
+}
+
+export default FieldPanelWithFieldSelectFactory;
diff --git a/src/components/filters/filter-panels/multi-select-filter-panel.js b/src/components/filters/filter-panels/multi-select-filter-panel.js
new file mode 100644
index 000000000..2e31ed847
--- /dev/null
+++ b/src/components/filters/filter-panels/multi-select-filter-panel.js
@@ -0,0 +1,80 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback} from 'react';
+import MultiSelectFilterFactory from 'components/filters/multi-select-filter';
+import FieldPanelWithFieldSelectFactory from 'components/filters/filter-panels/filter-panel-with-field-select';
+
+MultiSelectFilterPanelFactory.deps = [
+ FieldPanelWithFieldSelectFactory,
+ MultiSelectFilterFactory
+];
+
+function MultiSelectFilterPanelFactory(
+ FieldPanelWithFieldSelect,
+ MultiSelectFilter
+) {
+ const MultiSelectFilterPanel = React.memo(({
+ idx,
+ datasets,
+ allAvailableFields,
+ filter,
+ isAnyFilterAnimating,
+ enlargeFilter,
+ setFilter,
+ removeFilter,
+ toggleAnimation
+ }) => {
+ const onSetFilter = useCallback(value =>
+ setFilter(idx, 'value', value),
+ [idx, setFilter]);
+
+ return (
+ <div className="multi-select-filter-panel">
+ <FieldPanelWithFieldSelect
+ allAvailableFields={allAvailableFields}
+ datasets={datasets}
+ filter={filter}
+ idx={idx}
+ removeFilter={removeFilter}
+ setFilter={setFilter}
+ >
+ {filter.type && !filter.enlarged && (
+ <div className="filter-panel__filter">
+ <MultiSelectFilter
+ filter={filter}
+ idx={idx}
+ isAnyFilterAnimating={isAnyFilterAnimating}
+ toggleAnimation={toggleAnimation}
+ setFilter={onSetFilter}
+ />
+ </div>
+ )}
+ </FieldPanelWithFieldSelect>
+ </div>
+ );
+ });
+
+ MultiSelectFilterPanel.displayName = 'MultiSelectFilterPanel';
+
+ return MultiSelectFilterPanel;
+}
+
+export default MultiSelectFilterPanelFactory;
diff --git a/src/components/filters/filter-panels/new-filter-panel.js b/src/components/filters/filter-panels/new-filter-panel.js
new file mode 100644
index 000000000..a6af74c55
--- /dev/null
+++ b/src/components/filters/filter-panels/new-filter-panel.js
@@ -0,0 +1,94 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback} from 'react';
+import {StyledFilterContent} from 'components/common/styled-components';
+import FilterPanelHeaderFactory from 'components/side-panel/filter-panel/filter-panel-header';
+import FieldSelector from 'components/common/field-selector';
+import SourceDataSelectorFactory from 'components/side-panel/common/source-data-selector';
+
+NewFilterPanelFactory.deps = [
+ FilterPanelHeaderFactory,
+ SourceDataSelectorFactory
+];
+
+function NewFilterPanelFactory(
+ FilterPanelHeader,
+ SourceDataSelector
+) {
+ const NewFilterPanel = React.memo(({
+ idx,
+ filter,
+ datasets,
+ allAvailableFields,
+ setFilter,
+ removeFilter,
+ enlargeFilter
+ }) => {
+ const onFieldSelector = useCallback(field =>
+ setFilter(idx, 'name', field.name),
+ [idx, setFilter]
+ );
+
+ const onSourceDataSelector = useCallback(value =>
+ setFilter(idx, 'dataId', value),
+ [idx, setFilter]
+ );
+
+ return (
+ <>
+ <FilterPanelHeader
+ datasets={[datasets[filter.dataId[0]]]}
+ allAvailableFields={allAvailableFields}
+ idx={idx}
+ filter={filter}
+ removeFilter={removeFilter}
+ enlargeFilter={enlargeFilter}
+ enlarged={filter.enlarged}
+ >
+ <FieldSelector
+ inputTheme="secondary"
+ fields={allAvailableFields}
+ value={Array.isArray(filter.name) ? filter.name[0] : filter.name}
+ erasable={false}
+ onSelect={onFieldSelector}
+ />
+ </FilterPanelHeader>
+ <StyledFilterContent className="filter-panel__content">
+ {Object.keys(datasets).length > 1 && (
+ <SourceDataSelector
+ inputTheme="secondary"
+ datasets={datasets}
+ disabled={filter.freeze}
+ dataId={filter.dataId}
+ onSelect={onSourceDataSelector}
+ />
+ )}
+ </StyledFilterContent>
+ </>
+ );
+ });
+
+ NewFilterPanel.displayName = 'NewFilterPanel';
+
+ return NewFilterPanel;
+}
+
+export default NewFilterPanelFactory;
diff --git a/src/components/filters/filter-panels/polygon-filter-panel.js b/src/components/filters/filter-panels/polygon-filter-panel.js
new file mode 100644
index 000000000..2c2e3f0e3
--- /dev/null
+++ b/src/components/filters/filter-panels/polygon-filter-panel.js
@@ -0,0 +1,103 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useMemo, useCallback} from 'react';
+import {StyledFilterContent} from 'components/common/styled-components';
+import PolygonFilterFactory from 'components/filters/polygon-filter';
+import PanelHeaderAction from 'components/side-panel/panel-header-action';
+import {EyeSeen} from 'components/common/icons';
+import {EyeUnseen} from 'components/common/icons';
+import FilterPanelHeaderFactory from 'components/side-panel/filter-panel/filter-panel-header';
+import {StyledFilterPanel} from '../components';
+
+import get from 'lodash.get';
+
+PolygonFilterPanelFactory.deps = [
+ FilterPanelHeaderFactory,
+ PolygonFilterFactory
+];
+
+function PolygonFilterPanelFactory(
+ FilterPanelHeader,
+ PolygonFilter
+) {
+ const PolygonFilterPanel = React.memo(({
+ idx,
+ datasets,
+ layers,
+ layerData,
+ allAvailableFields,
+ filter,
+ isAnyFilterAnimating,
+ enlargeFilter,
+ removeFilter,
+ setFilter,
+ toggleFilterFeature
+ }) => {
+
+ const filterDatasets = useMemo(() => filter.dataId.map(d => datasets[d]),
+ [filter, datasets]
+ );
+
+ const onSetLayers = useCallback(value =>
+ setFilter(idx, 'layerId', value),
+ [setFilter]);
+
+ const isVisible = get(filter, ['value', 'properties', 'isVisible'], true);
+ const featureType = get(filter, ['value', 'properties', 'renderType'], true);
+
+ return (
+ <div className="polygon-filter-panel">
+ <FilterPanelHeader
+ datasets={filterDatasets}
+ allAvailableFields={allAvailableFields}
+ idx={idx}
+ filter={filter}
+ removeFilter={removeFilter}
+ >
+ <StyledFilterPanel>Geo - {featureType}</StyledFilterPanel>
+ <PanelHeaderAction
+ id={filter.id}
+ onClick={toggleFilterFeature}
+ tooltip={isVisible ? 'Hide Feature' : 'Show feature'}
+ IconComponent={isVisible ? EyeSeen : EyeUnseen}
+ active={isVisible}
+ />
+ </FilterPanelHeader>
+ <StyledFilterContent className="filter-panel__content">
+ <div className="filter-panel__filter">
+ <PolygonFilter
+ filter={filter}
+ layers={layers}
+ setLayers={onSetLayers}
+ toggleFilterFeature={toggleFilterFeature}
+ />
+ </div>
+ </StyledFilterContent>
+ </div>
+ )
+ });
+
+ PolygonFilterPanel.displayName = 'PolygonFilterPanel';
+
+ return PolygonFilterPanel;
+}
+
+export default PolygonFilterPanelFactory;
diff --git a/src/components/filters/filter-panels/range-filter-panel.js b/src/components/filters/filter-panels/range-filter-panel.js
new file mode 100644
index 000000000..1b4b000f5
--- /dev/null
+++ b/src/components/filters/filter-panels/range-filter-panel.js
@@ -0,0 +1,80 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback} from 'react';
+import RangeFilterFactory from 'components/filters/range-filter';
+import FieldPanelWithFieldSelectFactory from 'components/filters/filter-panels/filter-panel-with-field-select';
+
+RangeFilterPanelFactory.deps = [
+ FieldPanelWithFieldSelectFactory,
+ RangeFilterFactory
+];
+
+function RangeFilterPanelFactory(
+ FieldPanelWithFieldSelect,
+ RangeFilter
+) {
+ const RangeFilterPanel = React.memo(({
+ idx,
+ datasets,
+ allAvailableFields,
+ filter,
+ isAnyFilterAnimating,
+ enlargeFilter,
+ removeFilter,
+ setFilter,
+ toggleAnimation
+ }) => {
+ const onSetFilter = useCallback(value =>
+ setFilter(idx, 'value', value),
+ [idx, setFilter]);
+
+ return (
+ <div className="range-filter-panel">
+ <FieldPanelWithFieldSelect
+ allAvailableFields={allAvailableFields}
+ datasets={datasets}
+ filter={filter}
+ idx={idx}
+ removeFilter={removeFilter}
+ setFilter={setFilter}
+ >
+ {filter.type && !filter.enlarged && (
+ <div className="filter-panel__filter">
+ <RangeFilter
+ filter={filter}
+ idx={idx}
+ isAnyFilterAnimating={isAnyFilterAnimating}
+ toggleAnimation={toggleAnimation}
+ setFilter={onSetFilter}
+ />
+ </div>
+ )}
+ </FieldPanelWithFieldSelect>
+ </div>
+ );
+ });
+
+ RangeFilterPanel.displayName = 'RangeFilterPanel';
+
+ return RangeFilterPanel;
+}
+
+export default RangeFilterPanelFactory;
diff --git a/src/components/filters/filter-panels/single-select-filter-panel.js b/src/components/filters/filter-panels/single-select-filter-panel.js
new file mode 100644
index 000000000..0e943c623
--- /dev/null
+++ b/src/components/filters/filter-panels/single-select-filter-panel.js
@@ -0,0 +1,80 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback} from 'react';
+import SingleSelectFilterFactory from 'components/filters/single-select-filter';
+import FieldPanelWithFieldSelectFactory from 'components/filters/filter-panels/filter-panel-with-field-select';
+
+SingleSelectFilterPanelFactory.deps = [
+ FieldPanelWithFieldSelectFactory,
+ SingleSelectFilterFactory
+];
+
+function SingleSelectFilterPanelFactory(
+ FieldPanelWithFieldSelect,
+ SingleSelectFilter
+) {
+ const SingleSelectFilterPanel = React.memo(({
+ idx,
+ datasets,
+ allAvailableFields,
+ filter,
+ isAnyFilterAnimating,
+ enlargeFilter,
+ setFilter,
+ removeFilter,
+ toggleAnimation
+ }) => {
+ const onSetFilter = useCallback(value =>
+ setFilter(idx, 'value', value),
+ [idx, setFilter]);
+
+ return (
+ <div className="single-select-filter-panel">
+ <FieldPanelWithFieldSelect
+ allAvailableFields={allAvailableFields}
+ datasets={datasets}
+ filter={filter}
+ idx={idx}
+ removeFilter={removeFilter}
+ setFilter={setFilter}
+ >
+ {filter.type && !filter.enlarged && (
+ <div className="filter-panel__filter">
+ <SingleSelectFilter
+ filter={filter}
+ idx={idx}
+ isAnyFilterAnimating={isAnyFilterAnimating}
+ toggleAnimation={toggleAnimation}
+ setFilter={onSetFilter}
+ />
+ </div>
+ )}
+ </FieldPanelWithFieldSelect>
+ </div>
+ );
+ });
+
+ SingleSelectFilterPanel.displayName = 'SingleSelectFilterPanel';
+
+ return SingleSelectFilterPanel;
+}
+
+export default SingleSelectFilterPanelFactory;
diff --git a/src/components/filters/filter-panels/time-range-filter-panel.js b/src/components/filters/filter-panels/time-range-filter-panel.js
new file mode 100644
index 000000000..d702944e3
--- /dev/null
+++ b/src/components/filters/filter-panels/time-range-filter-panel.js
@@ -0,0 +1,92 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useCallback, useMemo} from 'react';
+import TimeRangeFilterFactory from 'components/filters/time-range-filter';
+import {Clock} from 'components/common/icons';
+import SourceDataSelectorFactory from 'components/side-panel/common/source-data-selector';
+import FieldPanelWithFieldSelectFactory from 'components/filters/filter-panels/filter-panel-with-field-select';
+
+TimeRangeFilterPanelFactory.deps = [
+ FieldPanelWithFieldSelectFactory,
+ TimeRangeFilterFactory,
+ SourceDataSelectorFactory
+];
+
+function TimeRangeFilterPanelFactory(
+ FieldPanelWithFieldSelect,
+ TimeRangeFilter
+) {
+ const TimeRangeFilterPanel = React.memo(({
+ idx,
+ datasets,
+ allAvailableFields,
+ filter,
+ isAnyFilterAnimating,
+ enlargeFilter,
+ setFilter,
+ removeFilter,
+ toggleAnimation
+ }) => {
+ const onSetFilter = useCallback(value =>
+ setFilter(idx, 'value', value),
+ [idx, setFilter]);
+
+ const panelActions = useMemo(() => ([{
+ id: filter.id,
+ onClick: enlargeFilter,
+ tooltip: 'Time Playback',
+ iconComponent: Clock,
+ active: filter.enlarged
+ }]), [filter.id, filter.enlargeFilter, enlargeFilter]);
+
+ return (
+ <>
+ <FieldPanelWithFieldSelect
+ allAvailableFields={allAvailableFields}
+ datasets={datasets}
+ filter={filter}
+ idx={idx}
+ removeFilter={removeFilter}
+ setFilter={setFilter}
+ panelActions={panelActions}
+ >
+ {filter.type && !filter.enlarged && (
+ <div className="filter-panel__filter">
+ <TimeRangeFilter
+ filter={filter}
+ idx={idx}
+ isAnyFilterAnimating={isAnyFilterAnimating}
+ toggleAnimation={toggleAnimation}
+ setFilter={onSetFilter}
+ />
+ </div>
+ )}
+ </FieldPanelWithFieldSelect>
+ </>
+ );
+ });
+
+ TimeRangeFilterPanel.displayName = 'TimeRangeFilterPanel';
+
+ return TimeRangeFilterPanel;
+}
+
+export default TimeRangeFilterPanelFactory;
diff --git a/src/components/filters/index.js b/src/components/filters/index.js
index a954635e4..4521095c8 100644
--- a/src/components/filters/index.js
+++ b/src/components/filters/index.js
@@ -18,7 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-export {default as SingleSelectFilterFactory} from './single-select-filter';
-export {default as MultiSelectFilterFactory} from './multi-select-filter';
-export {default as TimeRangeFilterFactory} from './time-range-filter';
-export {default as RangeFilterFactory} from './range-filter';
+export {default as SingleSelectFilter} from './single-select-filter';
+export {default as MultiSelectFilter} from './multi-select-filter';
+export {default as TimeRangeFilter} from './time-range-filter';
+export {default as RangeFilter} from './range-filter';
+export {default as PolygonFilter} from './polygon-filter';
diff --git a/src/components/filters/polygon-filter.js b/src/components/filters/polygon-filter.js
new file mode 100644
index 000000000..6622b2d8e
--- /dev/null
+++ b/src/components/filters/polygon-filter.js
@@ -0,0 +1,66 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React, {useMemo, useCallback} from 'react';
+import ItemSelector from 'components/common/item-selector/item-selector';
+import {StyledFilterPanel} from './components';
+import {LAYER_TYPES} from 'constants';
+
+const layerFilter = layer => layer.type === LAYER_TYPES.point;
+const isAlreadySelected = (selectedLayers, layerId) => selectedLayers.findIndex(l => l.id === layerId) === -1;
+
+function PolygonFilterFactory() {
+ const PolygonFilter = React.memo(({filter, layers, setLayers}) => {
+
+ const setNewLayers = useCallback(newLayers => {
+ return setLayers(newLayers.map(l => l.id));
+ }, [layers, setLayers]);
+
+ const selectedLayers = useMemo(() =>
+ layers.filter(l => filter.layerId.includes(l.id)),
+ [filter, layers]);
+
+ const availableLayers = useMemo(() => {
+ // remove already added layers and filter out non point layers
+ return layers.filter(layer => layerFilter(layer) && isAlreadySelected(selectedLayers, layer.id));
+ }, [layers, selectedLayers]);
+
+ return (
+ <div>
+ <StyledFilterPanel htmlFor={`filter-${filter.id}`}>Layers:</StyledFilterPanel>
+ <ItemSelector
+ options={availableLayers}
+ selectedItems={selectedLayers}
+ onChange={setNewLayers}
+ searchable={false}
+ multiSelect={true}
+ getOptionValue={l => l.id}
+ displayOption={l => l.config.label}
+ />
+ </div>
+ )
+ });
+
+ PolygonFilter.displayName = 'PolygonFilter';
+
+ return PolygonFilter;
+}
+
+export default PolygonFilterFactory
diff --git a/src/components/filters/single-select-filter.js b/src/components/filters/single-select-filter.js
index 9f6c51993..fb36b036a 100644
--- a/src/components/filters/single-select-filter.js
+++ b/src/components/filters/single-select-filter.js
@@ -40,5 +40,7 @@ export default function SingleSelectFilterFactory() {
</SidePanelSection>
);
+ SingleSelectFilter.displayName = 'SingleSelectFilter';
+
return SingleSelectFilter;
}
diff --git a/src/components/index.js b/src/components/index.js
index 738882542..f8bfff1ff 100644
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -37,7 +37,6 @@ export {
SaveExportDropdownFactory,
ExportImageFactory,
ExportDataFactory,
- ExportConfigFactory,
ExportMapFactory,
SaveMapFactory
} from './side-panel/panel-header'
diff --git a/src/components/kepler-gl.js b/src/components/kepler-gl.js
index cd7f4d78d..423701ff8 100644
--- a/src/components/kepler-gl.js
+++ b/src/components/kepler-gl.js
@@ -262,18 +262,20 @@ function KeplerGlFactory(
mapboxApiAccessToken,
mapboxApiUrl,
mapState,
+ uiState,
+ editor: visState.editor,
mapStyle,
mapControls: uiState.mapControls,
layers,
layerOrder,
layerData,
layerBlending,
+ filters,
interactionConfig,
hoverInfo,
clicked,
mousePos,
readOnly: uiState.readOnly,
- toggleMapControl: uiStateActions.toggleMapControl,
onViewStateChange,
uiStateActions,
visStateActions,
@@ -290,7 +292,7 @@ function KeplerGlFactory(
key={0}
index={0}
{...mapFields}
- mapLayers={isSplit ? splitMaps[0].layers : null}
+ mapLayers={null}
/>
]
: splitMaps.map((settings, index) => (
@@ -308,11 +310,8 @@ function KeplerGlFactory(
return (
<ThemeProvider theme={theme}>
<GlobalStyle
- style={{
- position: 'relative',
- width: `${width}px`,
- height: `${height}px`
- }}
+ width={width}
+ height={height}
className="kepler-gl"
id={`kepler-gl__${id}`}
ref={this.root}
diff --git a/src/components/map-container.js b/src/components/map-container.js
index a84e99a3f..4861ee762 100644
--- a/src/components/map-container.js
+++ b/src/components/map-container.js
@@ -31,6 +31,8 @@ import MapPopoverFactory from 'components/map/map-popover';
import MapControlFactory from 'components/map/map-control';
import {StyledMapContainer} from 'components/common/styled-components';
+import Editor from './editor/editor';
+
// utils
import {generateMapboxLayers, updateMapboxLayers} from 'layers/mapbox-utils';
import {OVERLAY_TYPE} from 'layers/base-layer';
@@ -39,6 +41,7 @@ import {transformRequest} from 'utils/map-style-utils/mapbox-utils';
// default-settings
import ThreeDBuildingLayer from 'deckgl-layers/3d-building-layer/3d-building-layer';
+import {FILTER_TYPES} from 'utils/filter-utils';
const MAP_STYLE = {
container: {
@@ -68,15 +71,17 @@ export default function MapContainerFactory(MapPopover, MapControl) {
layerOrder: PropTypes.arrayOf(PropTypes.any).isRequired,
layerData: PropTypes.arrayOf(PropTypes.any).isRequired,
layers: PropTypes.arrayOf(PropTypes.any).isRequired,
+ filters: PropTypes.arrayOf(PropTypes.any).isRequired,
mapState: PropTypes.object.isRequired,
- mapStyle: PropTypes.object.isRequired,
mapControls: PropTypes.object.isRequired,
+ uiState: PropTypes.object.isRequired,
+ mapStyle: PropTypes.object.isRequired,
mousePos: PropTypes.object.isRequired,
mapboxApiAccessToken: PropTypes.string.isRequired,
mapboxApiUrl: PropTypes.string,
- toggleMapControl: PropTypes.func.isRequired,
visStateActions: PropTypes.object.isRequired,
mapStateActions: PropTypes.object.isRequired,
+ uiStateActions: PropTypes.object.isRequired,
// optional
readOnly: PropTypes.bool,
@@ -87,12 +92,14 @@ export default function MapContainerFactory(MapPopover, MapControl) {
onMapToggleLayer: PropTypes.func,
onMapStyleLoaded: PropTypes.func,
onMapRender: PropTypes.func,
- getMapboxRef: PropTypes.func
+ getMapboxRef: PropTypes.func,
+ index: PropTypes.number
};
static defaultProps = {
MapComponent: MapboxGLMap,
- deckGlProps: {}
+ deckGlProps: {},
+ index: 0
};
constructor(props) {
@@ -127,13 +134,20 @@ export default function MapContainerFactory(MapPopover, MapControl) {
}), {})
);
+ filtersSelector = props => props.filters;
+ polygonFilters = createSelector(
+ this.filtersSelector,
+ filters => filters.filter(f => f.type === FILTER_TYPES.polygon)
+ );
+
mapboxLayersSelector = createSelector(
this.layersSelector,
this.layerDataSelector,
this.layerOrderSelector,
this.layersToRenderSelector,
generateMapboxLayers
- )
+ );
+
/* component private functions */
_isVisibleMapLayer(layer, mapLayers) {
// if layer.id is not in mapLayers, don't render it
@@ -197,6 +211,7 @@ export default function MapContainerFactory(MapPopover, MapControl) {
};
/* component render functions */
+
/* eslint-disable complexity */
_renderMapPopover(layersToRender) {
// TODO: move this into reducer so it can be tested
@@ -280,7 +295,6 @@ export default function MapContainerFactory(MapPopover, MapControl) {
_getHoverXY(viewport, lngLat) {
const screenCoord =
!viewport || !lngLat ? null : viewport.project(lngLat);
-
return screenCoord && {x: screenCoord[0], y: screenCoord[1]};
}
@@ -400,6 +414,15 @@ export default function MapContainerFactory(MapPopover, MapControl) {
this.props.mapStateActions.updateMap(viewState);
};
+ _toggleMapControl = panelId => {
+ const {
+ index,
+ uiStateActions
+ } = this.props;
+
+ uiStateActions.toggleMapControl(panelId, index);
+ };
+
render() {
const {
mapState,
@@ -412,9 +435,14 @@ export default function MapContainerFactory(MapPopover, MapControl) {
mapboxApiAccessToken,
mapboxApiUrl,
mapControls,
- toggleMapControl
+ uiState,
+ visStateActions,
+ editor,
+ index
} = this.props;
+
const layersToRender = this.layersToRenderSelector(this.props);
+
if (!mapStyle.bottomMapStyle) {
// style not yet loaded
return <div />;
@@ -429,6 +457,8 @@ export default function MapContainerFactory(MapPopover, MapControl) {
transformRequest
};
+ const isEdit = uiState.mapControls.mapDraw.active;
+
return (
<StyledMapContainer style={MAP_STYLE.container}>
<MapControl
@@ -438,15 +468,18 @@ export default function MapContainerFactory(MapPopover, MapControl) {
isExport={this.props.isExport}
layers={layers}
layersToRender={layersToRender}
- mapIndex={this.props.index}
+ mapIndex={index}
mapControls={mapControls}
readOnly={this.props.readOnly}
scale={mapState.scale || 1}
top={0}
+ editor={editor}
onTogglePerspective={mapStateActions.togglePerspective}
onToggleSplitMap={mapStateActions.toggleSplitMap}
onMapToggleLayer={this._handleMapToggleLayer}
- onToggleMapControl={toggleMapControl}
+ onToggleMapControl={this._toggleMapControl}
+ onSetEditorMode={visStateActions.setEditorMode}
+ onToggleEditorVisibility={visStateActions.toggleEditorVisibility}
/>
<MapComponent
{...mapProps}
@@ -459,6 +492,24 @@ export default function MapContainerFactory(MapPopover, MapControl) {
>
{this._renderDeckOverlay(layersToRender)}
{this._renderMapboxOverlays(layersToRender)}
+ <Editor
+ index={index}
+ datasets={datasets}
+ editor={editor}
+ filters={this.polygonFilters(this.props)}
+ isEnabled={isEdit}
+ layers={layers}
+ layersToRender={layersToRender}
+ onDeleteFeature={visStateActions.deleteFeature}
+ onSelect={visStateActions.setSelectedFeature}
+ onUpdate={visStateActions.setFeatures}
+ onTogglePolygonFilter={visStateActions.setPolygonFilterLayer}
+ style={{
+ pointerEvents: isEdit ? 'all' : 'none',
+ position: 'absolute',
+ display: editor.visible ? 'block' : 'none'
+ }}
+ />
</MapComponent>
{mapStyle.topMapStyle && (
<div style={MAP_STYLE.top}>
@@ -475,5 +526,7 @@ export default function MapContainerFactory(MapPopover, MapControl) {
}
}
+ MapContainer.displayName = 'MapContainer';
+
return MapContainer;
}
diff --git a/src/components/map/map-control.js b/src/components/map/map-control.js
index fdb7484de..19e482265 100644
--- a/src/components/map/map-control.js
+++ b/src/components/map/map-control.js
@@ -33,14 +33,23 @@ import {
Legend,
Cube3d,
Delete,
- Layers
+ Layers,
+ DrawPolygon,
+ Polygon,
+ Rectangle,
+ CursorClick,
+ EyeSeen,
+ EyeUnseen
} from 'components/common/icons';
+import VerticalToolbar from 'components/common/vertical-toolbar';
+import ToolbarItem from 'components/common/toolbar-item';
+import {EDITOR_MODES} from 'constants/default-settings';
const StyledMapControl = styled.div`
right: 0;
width: ${props => props.theme.mapControl.width}px;
padding: ${props => props.theme.mapControl.padding}px;
- z-index: 1;
+ z-index: 10;
top: ${props => props.top}px;
position: absolute;
`;
@@ -61,7 +70,8 @@ const StyledMapControlPanel = styled.div`
`;
const StyledMapControlPanelContent = styled.div`
- ${props => props.theme.dropdownScrollBar} max-height: 500px;
+ ${props => props.theme.dropdownScrollBar};
+ max-height: 500px;
min-height: 100px;
overflow: auto;
`;
@@ -74,6 +84,7 @@ const StyledMapControlPanelHeader = styled.div`
padding: 6px 12px;
font-size: 11px;
color: ${props => props.theme.titleTextColor};
+ position: relative;
button {
width: 18px;
@@ -81,17 +92,27 @@ const StyledMapControlPanelHeader = styled.div`
}
`;
-const ActionPanel = ({children}) => (
- <StyledMapControlAction>{children}</StyledMapControlAction>
+const ActionPanel = ({className, children}) => (
+ <StyledMapControlAction className={className}>{children}</StyledMapControlAction>
);
+ActionPanel.displayName = 'ActionPanel';
+
+const MapControlTooltip = React.memo(({id, message}) => (
+ <Tooltip id={id} place="left" effect="solid">
+ <span>{message}</span>
+ </Tooltip>
+));
+
+MapControlTooltip.displayName = 'MapControlTooltip';
+
const MapLegendTooltip = ({id, message}) => (
<Tooltip id={id} place="left" effect="solid">
<span>{message}</span>
</Tooltip>
);
-const LayerSelectorPanel = ({
+const LayerSelectorPanel = React.memo(({
items,
onMapToggleLayer,
isActive,
@@ -109,7 +130,7 @@ const LayerSelectorPanel = ({
data-for="toggle-layer"
>
<Layers height="22px" />
- <MapLegendTooltip
+ <MapControlTooltip
id="toggle-layer"
message={isActive ? 'Hide layer panel' : 'Show layer panel'}
/>
@@ -118,16 +139,20 @@ const LayerSelectorPanel = ({
<MapControlPanel header="Visible layers" onClick={toggleMenuPanel}>
<MapLayerSelector layers={items} onMapToggleLayer={onMapToggleLayer} />
</MapControlPanel>
- );
+ )
+);
+
+LayerSelectorPanel.displayName = 'LayerSelectorPanel';
-const MapControlPanel = ({children, header, onClick, scale = 1, isExport}) => (
+const MapControlPanel = React.memo(({children, header, onClick, scale = 1, isExport}) => (
<StyledMapControlPanel
style={{
transform: `scale(${scale}) translate(calc(-${25 * (scale - 1)}% - ${10 *
- scale}px), calc(${25 * (scale - 1)}% + ${10 * scale}px))`
+ scale}px), calc(${25 * (scale - 1)}% + ${10 * scale}px))`,
+ marginBottom: '8px'
}}
>
- <StyledMapControlPanelHeader style={{position: 'relative'}}>
+ <StyledMapControlPanelHeader>
{isExport ? (
<KeplerGlLogo version={false} appName="kepler.gl" />
) : (
@@ -141,9 +166,11 @@ const MapControlPanel = ({children, header, onClick, scale = 1, isExport}) => (
</StyledMapControlPanelHeader>
<StyledMapControlPanelContent>{children}</StyledMapControlPanelContent>
</StyledMapControlPanel>
-);
+));
+
+MapControlPanel.displayName = 'MapControlPanel';
-const MapLegendPanel = ({layers, isActive, scale, toggleMenuPanel, isExport}) =>
+const MapLegendPanel = ({layers, isActive, scale, onToggleMenuPanel, isExport}) =>
!isActive ? (
<MapControlButton
key={2}
@@ -152,7 +179,7 @@ const MapLegendPanel = ({layers, isActive, scale, toggleMenuPanel, isExport}) =>
className="map-control-button show-legend"
onClick={e => {
e.preventDefault();
- toggleMenuPanel();
+ onToggleMenuPanel();
}}
>
<Legend height="22px" />
@@ -162,12 +189,121 @@ const MapLegendPanel = ({layers, isActive, scale, toggleMenuPanel, isExport}) =>
<MapControlPanel
scale={scale}
header={'Layer Legend'}
- onClick={toggleMenuPanel}
+ onClick={onToggleMenuPanel}
isExport={isExport}
>
<MapLegend layers={layers}/>
</MapControlPanel>
+);
+
+MapLegendPanel.displayName = 'MapControlPanel';
+
+const SplitMapButton = React.memo(({isSplit, mapIndex, onToggleSplitMap}) => (
+ <MapControlButton
+ active={isSplit}
+ onClick={e => {
+ e.preventDefault();
+ onToggleSplitMap(isSplit ? mapIndex : undefined);
+ }}
+ key={`split-${isSplit}`}
+ className="map-control-button split-map"
+ data-tip
+ data-for="action-toggle"
+ >
+ {isSplit ? <Delete height="18px" /> : <Split height="18px" />}
+ <MapControlTooltip
+ id="action-toggle"
+ message={
+ isSplit ? 'Close current panel' : 'Switch to dual map view'
+ }
+ />
+ </MapControlButton>
+));
+
+SplitMapButton.displayName = 'SplitMapButton';
+
+const Toggle3dButton = React.memo(({dragRotate, onTogglePerspective}) => (
+ <MapControlButton
+ onClick={e => {
+ e.preventDefault();
+ onTogglePerspective();
+ }}
+ active={dragRotate}
+ data-tip
+ data-for="action-3d"
+ >
+ <Cube3d height="22px" />
+ <MapControlTooltip
+ id="action-3d"
+ message={dragRotate ? 'Disable 3D Map' : '3D Map'}
+ />
+ </MapControlButton>
+));
+
+Toggle3dButton.displayName = 'Toggle3dButton';
+
+const StyledToolbar = styled(VerticalToolbar)`
+ position: absolute;
+ right: 32px;
+`;
+
+const MapDrawPanel = React.memo(({
+ editor,
+ isActive,
+ onToggleMenuPanel,
+ onSetEditorMode,
+ onToggleEditorVisibility
+}) => {
+ return (
+ <div style={{position: 'relative'}}>
+ {isActive ? (
+ <StyledToolbar show={isActive}>
+ <ToolbarItem
+ onClick={() => onSetEditorMode(EDITOR_MODES.EDIT)}
+ label="select"
+ icon={(<CursorClick height="22px"/>)}
+ active={editor.mode === EDITOR_MODES.EDIT}
+ />
+ <ToolbarItem
+ onClick={() => onSetEditorMode(EDITOR_MODES.DRAW_POLYGON)}
+ label="polygon"
+ icon={(<Polygon height="22px"/>)}
+ active={editor.mode === EDITOR_MODES.DRAW_POLYGON}
+ />
+ <ToolbarItem
+ onClick={() => onSetEditorMode(EDITOR_MODES.DRAW_RECTANGLE)}
+ label="rectangle"
+ icon={(<Rectangle height="22px"/>)}
+ active={editor.mode === EDITOR_MODES.DRAW_RECTANGLE}
+ />
+ <ToolbarItem
+ onClick={onToggleEditorVisibility}
+ label={editor.visible ? 'hide' : 'show'}
+ icon={editor.visible ? (<EyeSeen height="22px"/>) : (<EyeUnseen height="22px"/>)}
+ active={true}
+ />
+ </StyledToolbar>
+ ) : null}
+ <MapControlButton
+ onClick={e => {
+ e.preventDefault();
+ onToggleMenuPanel();
+ }}
+ active={isActive}
+ data-tip
+ data-for="map-draw"
+ >
+ <DrawPolygon height="22px"/>
+ <MapControlTooltip
+ id="map-draw"
+ message="Draw on map"
+ />
+ </MapControlButton>
+ </div>
);
+});
+
+MapDrawPanel.displayName = 'MapDrawPanel';
const MapControlFactory = () => {
class MapControl extends Component {
@@ -182,17 +318,21 @@ const MapControlFactory = () => {
onTogglePerspective: PropTypes.func.isRequired,
onToggleSplitMap: PropTypes.func.isRequired,
onToggleMapControl: PropTypes.func.isRequired,
- onMapToggleLayer: PropTypes.func.isRequired,
+ onSetEditorMode: PropTypes.func.isRequired,
+ onToggleEditorVisibility: PropTypes.func.isRequired,
top: PropTypes.number.isRequired,
// optional
readOnly: PropTypes.bool,
- scale: PropTypes.number
+ scale: PropTypes.number,
+ mapLayers: PropTypes.object,
+ editor: PropTypes.object
};
static defaultProps = {
isSplit: false,
- top: 0
+ top: 0,
+ mapIndex: 0
};
layerSelector = props => props.layers;
@@ -212,7 +352,6 @@ const MapControlFactory = () => {
);
render() {
-
const {
dragRotate,
layers,
@@ -225,6 +364,7 @@ const MapControlFactory = () => {
onToggleSplitMap,
onMapToggleLayer,
onToggleMapControl,
+ editor,
scale,
readOnly
} = this.props;
@@ -233,39 +373,26 @@ const MapControlFactory = () => {
visibleLayers = {},
mapLegend = {},
toggle3d = {},
- splitMap = {}
+ splitMap = {},
+ mapDraw = {}
} = mapControls;
return (
<StyledMapControl className="map-control">
{/* Split Map */}
{splitMap.show && readOnly !== true ? (
- <ActionPanel key={0}>
- <MapControlButton
- active={isSplit}
- onClick={e => {
- e.preventDefault();
- onToggleSplitMap(isSplit ? mapIndex : undefined);
- }}
- key={`split-${isSplit}`}
- className="map-control-button split-map"
- data-tip
- data-for="action-toggle"
- >
- {isSplit ? <Delete height="18px" /> : <Split height="18px" />}
- <MapLegendTooltip
- id="action-toggle"
- message={
- isSplit ? 'Close current panel' : 'Switch to dual map view'
- }
- />
- </MapControlButton>
+ <ActionPanel className="split-map" key={0}>
+ <SplitMapButton
+ isSplit={isSplit}
+ mapIndex={mapIndex}
+ onToggleSplitMap={onToggleSplitMap}
+ />
</ActionPanel>
) : null}
{/* Map Layers */}
{isSplit && visibleLayers.show && readOnly !== true ? (
- <ActionPanel key={1}>
+ <ActionPanel className="map-layers" key={1}>
<LayerSelectorPanel
items={this.layerPanelItemsSelector(this.props)}
onMapToggleLayer={onMapToggleLayer}
@@ -277,36 +404,36 @@ const MapControlFactory = () => {
{/* 3D Map */}
{toggle3d.show ? (
- <ActionPanel key={2}>
- <MapControlButton
- onClick={e => {
- e.preventDefault();
- onTogglePerspective();
- }}
- active={dragRotate}
- data-tip
- data-for="action-3d"
- >
- <Cube3d height="22px" />
- {/* No icon since we are injecting through css .threeD-map class*/}
- <MapLegendTooltip
- id="action-3d"
- message={dragRotate ? 'Disable 3D Map' : '3D Map'}
- />
- </MapControlButton>
+ <ActionPanel className="toggle-3d" key={2}>
+ <Toggle3dButton
+ dragRotate={dragRotate}
+ onTogglePerspective={onTogglePerspective}
+ />
</ActionPanel>
) : null}
{/* Map Legend */}
{mapLegend.show ? (
- <ActionPanel key={3}>
+ <ActionPanel className="show-legend" key={3}>
<MapLegendPanel
layers={layers.filter(l => layersToRender[l.id])}
scale={scale}
isExport={isExport}
onMapToggleLayer={onMapToggleLayer}
isActive={mapLegend.active}
- toggleMenuPanel={() => onToggleMapControl('mapLegend')}
+ onToggleMenuPanel={() => onToggleMapControl('mapLegend')}
+ />
+ </ActionPanel>
+ ) : null}
+
+ {mapDraw.show ? (
+ <ActionPanel key={4}>
+ <MapDrawPanel
+ isActive={mapDraw.active && mapDraw.activeMapIndex === mapIndex}
+ editor={editor}
+ onToggleMenuPanel={() => onToggleMapControl('mapDraw')}
+ onSetEditorMode={this.props.onSetEditorMode}
+ onToggleEditorVisibility={this.props.onToggleEditorVisibility}
/>
</ActionPanel>
) : null}
@@ -315,6 +442,8 @@ const MapControlFactory = () => {
}
}
+ MapControl.displayName = 'MapControl';
+
return MapControl;
};
diff --git a/src/components/map/map-legend.js b/src/components/map/map-legend.js
index 81481e8b2..44bc5a9df 100644
--- a/src/components/map/map-legend.js
+++ b/src/components/map/map-legend.js
@@ -85,7 +85,7 @@ const propTypes = {
};
const SingleColorDomain = [''];
-export const SingleColorLegend = ({width, color}) => (
+export const SingleColorLegend = React.memo(({width, color}) => (
<ColorLegend
scaleType="ordinal"
displayLabel={false}
@@ -94,23 +94,24 @@ export const SingleColorLegend = ({width, color}) => (
range={[rgb(...color).toString()]}
width={width}
/>
-);
+));
-export const MultiColorLegend = ({colorRange, colorScale, colorDomain, colorField, width}) => {
+SingleColorLegend.displayName = 'SingleColorLegend';
- return (
- <ColorLegend
- scaleType={colorScale}
- displayLabel
- domain={colorDomain}
- fieldType={(colorField && colorField.type) || 'real'}
- range={colorRange.colors}
- width={width}
- />
- );
-};
+export const MultiColorLegend = React.memo(({colorRange, colorScale, colorDomain, colorField, width}) => (
+ <ColorLegend
+ scaleType={colorScale}
+ displayLabel
+ domain={colorDomain}
+ fieldType={(colorField && colorField.type) || 'real'}
+ range={colorRange.colors}
+ width={width}
+ />
+));
-export const LayerColorLegend = ({description, config, width, colorChannel}) => {
+MultiColorLegend.displayName = 'MultiColorLegend';
+
+export const LayerColorLegend = React.memo(({description, config, width, colorChannel}) => {
const enableColorBy = description.measure;
const {scale, field, domain, range, property, key} = colorChannel;
const [colorScale, colorField, colorDomain] = [scale, field, domain].map(k => config[k]);
@@ -142,11 +143,15 @@ export const LayerColorLegend = ({description, config, width, colorChannel}) =>
</div>
</div>
)
-}
+});
+
+LayerColorLegend.displayName = 'LayerColorLegend';
const isColorChannel = (visualChannel) =>
[CHANNEL_SCALES.color, CHANNEL_SCALES.colorAggr].includes(visualChannel.channelScaleType);
+const MAP_LEGEND_WIDTH = DIMENSIONS.mapControl.width - 2 * DIMENSIONS.mapControl.padding;
+
const MapLegend = ({layers = []}) => (
<div>
{layers.map((layer, index) => {
@@ -154,7 +159,6 @@ const MapLegend = ({layers = []}) => (
return null;
}
- const width = DIMENSIONS.mapControl.width - 2 * DIMENSIONS.mapControl.padding;
const colorChannels = Object.values(layer.visualChannels)
.filter(isColorChannel);
const nonColorChannels = Object.values(layer.visualChannels)
@@ -169,13 +173,15 @@ const MapLegend = ({layers = []}) => (
<div className="legend--layer_name">{layer.config.label}</div>
{colorChannels.map(colorChannel =>
!colorChannel.condition || colorChannel.condition(layer.config) ?
- <LayerColorLegend
- key={colorChannel.key}
- description={layer.getVisualChannelDescription(colorChannel.key)}
- config={layer.config}
- width={width}
- colorChannel={colorChannel}
- /> : null
+ (
+ <LayerColorLegend
+ key={colorChannel.key}
+ description={layer.getVisualChannelDescription(colorChannel.key)}
+ config={layer.config}
+ width={MAP_LEGEND_WIDTH}
+ colorChannel={colorChannel}
+ />
+ ) : null
)}
{nonColorChannels
.map(visualChannel => {
@@ -187,16 +193,15 @@ const MapLegend = ({layers = []}) => (
visualChannel.defaultMeasure;
const description = layer.getVisualChannelDescription(visualChannel.key);
- if (matchCondition && enabled) {
- return (
+
+ return matchCondition && enabled ?
+ (
<LayerSizeLegend
key={visualChannel.key}
label={description.label}
name={description.measure}
/>
- );
- }
- return null;
+ ) : null;
})}
</StyledMapControlLegend>
);
diff --git a/src/components/map/map-popover.js b/src/components/map/map-popover.js
index a03ed389b..540b07bae 100644
--- a/src/components/map/map-popover.js
+++ b/src/components/map/map-popover.js
@@ -30,7 +30,7 @@ const MAX_WIDTH = 500;
const MAX_HEIGHT = 600;
const StyledMapPopover = styled.div`
- ${props => props.theme.scrollBar}
+ ${props => props.theme.scrollBar};
font-size: 11px;
font-weight: 500;
background-color: ${props => props.theme.panelBackground};
diff --git a/src/components/modals/data-table-modal.js b/src/components/modals/data-table-modal.js
index 385711cd4..9445a2671 100644
--- a/src/components/modals/data-table-modal.js
+++ b/src/components/modals/data-table-modal.js
@@ -88,7 +88,6 @@ function DataTableModalFactory(DataGrid) {
}
const activeDataset = datasets[dataId];
- const rows = activeDataset.data;
return (
<StyledModal className="dataset-modal" >
@@ -100,7 +99,7 @@ function DataTableModalFactory(DataGrid) {
<DataGrid
width={width}
height={height}
- rows={rows}
+ rows={activeDataset.data}
columns={activeDataset.fields}
/>
</StyledModal>
diff --git a/src/components/plot-container.js b/src/components/plot-container.js
index e8afb3a01..239a5a86a 100644
--- a/src/components/plot-container.js
+++ b/src/components/plot-container.js
@@ -46,6 +46,8 @@ const StyledPlotContainer = styled.div`
.mapboxgl-ctrl-bottom-right {
display: none;
}
+
+ position: absolute;
`;
const deckGlProps = {
@@ -150,6 +152,7 @@ export default function PlotContainerFactory(MapContainer) {
return (
<StyledPlotContainer
style={{position: 'absolute', top: -9999, left: -9999}}
+ className="export-map-instance"
>
<div
ref={this.plottingAreaRef}
diff --git a/src/components/side-panel.js b/src/components/side-panel.js
index f1cf4a3c0..10e8f72b4 100644
--- a/src/components/side-panel.js
+++ b/src/components/side-panel.js
@@ -171,7 +171,8 @@ export default function SidePanelFactory(
showDatasetTable: this._showDatasetTable,
showAddDataModal: this._showAddDataModal,
toggleAnimation: visStateActions.toggleFilterAnimation,
- enlargeFilter: visStateActions.enlargeFilter
+ enlargeFilter: visStateActions.enlargeFilter,
+ toggleFilterFeature: visStateActions.toggleFilterFeature
};
const interactionManagerActions = {
@@ -231,6 +232,7 @@ export default function SidePanelFactory(
<FilterManager
{...filterManagerActions}
datasets={datasets}
+ layers={layers}
filters={filters}
/>
)}
diff --git a/src/components/side-panel/filter-manager.js b/src/components/side-panel/filter-manager.js
index bcf6617c5..e310e91f8 100644
--- a/src/components/side-panel/filter-manager.js
+++ b/src/components/side-panel/filter-manager.js
@@ -39,10 +39,12 @@ function FilterManagerFactory(SourceDataCatalog, FilterPanel) {
return class FilterManager extends Component {
static propTypes = {
datasets: PropTypes.object,
+ layers: PropTypes.arrayOf(PropTypes.any).isRequired,
addFilter: PropTypes.func.isRequired,
removeFilter: PropTypes.func.isRequired,
enlargeFilter: PropTypes.func.isRequired,
toggleAnimation: PropTypes.func.isRequired,
+ toggleFilterFeature: PropTypes.func.isRequired,
setFilter: PropTypes.func.isRequired,
filters: PropTypes.arrayOf(PropTypes.any).isRequired,
showDatasetTable: PropTypes.func,
@@ -66,7 +68,7 @@ function FilterManagerFactory(SourceDataCatalog, FilterPanel) {
};
render() {
- const {filters, datasets} = this.props;
+ const {filters, datasets, layers} = this.props;
const isAnyFilterAnimating = filters.some(f => f.isAnimating);
const hadEmptyFilter = filters.some(f => !f.name);
const hadDataset = Object.keys(datasets).length;
@@ -87,10 +89,12 @@ function FilterManagerFactory(SourceDataCatalog, FilterPanel) {
filters={filters}
filter={filter}
datasets={datasets}
+ layers={layers}
isAnyFilterAnimating={isAnyFilterAnimating}
removeFilter={() => this.props.removeFilter(idx)}
enlargeFilter={() => this.props.enlargeFilter(idx)}
toggleAnimation={() => this.props.toggleAnimation(idx)}
+ toggleFilterFeature={() => this.props.toggleFilterFeature(idx)}
setFilter={this.props.setFilter}
/>
))}
diff --git a/src/components/side-panel/filter-panel/filter-panel-header.js b/src/components/side-panel/filter-panel/filter-panel-header.js
new file mode 100644
index 000000000..ae79b78e9
--- /dev/null
+++ b/src/components/side-panel/filter-panel/filter-panel-header.js
@@ -0,0 +1,82 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React from 'react';
+import styled from 'styled-components';
+import PanelHeaderAction from 'components/side-panel/panel-header-action';
+import {Trash} from 'components/common/icons';
+import {createLinearGradient} from 'utils/color-utils';
+import {StyledPanelHeader} from 'components/common/styled-components';
+
+export const StyledFilterHeader = styled(StyledPanelHeader)`
+ cursor: pointer;
+ padding: 10px 12px;
+
+ .field-selector {
+ flex: 2;
+ }
+
+ border-left: 3px solid;
+ ${props => props.labelRCGColorValues && props.labelRCGColorValues.length > 0 ?
+ `border-image: ${createLinearGradient('bottom', props.labelRCGColorValues)} 3;`
+ : 'border-color: transparent;'
+ }
+
+`;
+
+const StyledChildrenContainer = styled.div`
+ display: flex;
+ flex: 2;
+`;
+
+FilterPanelHeaderFactory.deps = [];
+
+function FilterPanelHeaderFactory() {
+ const FilterPanelHeader = ({
+ children,
+ datasets,
+ allAvailableFields,
+ setFilter,
+ idx,
+ filter,
+ removeFilter
+ }) => (
+ <StyledFilterHeader
+ className="filter-panel__header"
+ labelRCGColorValues={datasets.map(d => d.color)}
+ >
+ <StyledChildrenContainer>
+ {children}
+ </StyledChildrenContainer>
+ <PanelHeaderAction
+ id={filter.id}
+ tooltip="delete"
+ tooltipType="error"
+ onClick={removeFilter}
+ hoverColor={'errorColor'}
+ IconComponent={Trash}
+ />
+ </StyledFilterHeader>
+ );
+
+ return FilterPanelHeader;
+}
+
+export default FilterPanelHeaderFactory;
diff --git a/src/components/side-panel/filter-panel/filter-panel.js b/src/components/side-panel/filter-panel/filter-panel.js
index 99039c82b..c8fcd60cb 100644
--- a/src/components/side-panel/filter-panel/filter-panel.js
+++ b/src/components/side-panel/filter-panel/filter-panel.js
@@ -22,19 +22,17 @@ import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {createSelector} from 'reselect';
import styled from 'styled-components';
-import PanelHeaderAction from 'components/side-panel/panel-header-action';
-import FieldSelector from 'components/common/field-selector';
-import {Trash, Clock} from 'components/common/icons';
-import SourceDataSelectorFactory from 'components/side-panel/common/source-data-selector';
-import {StyledPanelHeader} from 'components/common/styled-components';
-
-import SingleSelectFilterFactory from 'components/filters/single-select-filter';
-import MultiSelectFilterFactory from 'components/filters/multi-select-filter';
-import TimeRangeFilterFactory from 'components/filters/time-range-filter';
-import RangeFilterFactory from 'components/filters/range-filter';
-import {FILTER_TYPES, FILTER_COMPONENTS} from 'utils/filter-utils';
+import {FILTER_TYPES} from 'utils/filter-utils';
import {ALL_FIELD_TYPES} from 'constants/default-settings';
+import FilterPanelHeaderFactory from 'components/side-panel/filter-panel/filter-panel-header';
+import NewFilterPanelFactory from 'components/filters/filter-panels/new-filter-panel';
+import TimeRangeFilterPanelFactory from 'components/filters/filter-panels/time-range-filter-panel';
+import SingleSelectFilterPanelFactory from 'components/filters/filter-panels/single-select-filter-panel';
+import MultiSelectFilterPanelFactory from 'components/filters/filter-panels/multi-select-filter-panel';
+import RangeFilterPanelFactory from 'components/filters/filter-panels/range-filter-panel';
+import PolygonFilterPanelFactory from 'components/filters/filter-panels/polygon-filter-panel';
+
const StyledFilterPanel = styled.div`
margin-bottom: 12px;
border-radius: 1px;
@@ -44,40 +42,32 @@ const StyledFilterPanel = styled.div`
}
`;
-const StyledFilterHeader = styled(StyledPanelHeader)`
- cursor: pointer;
- padding: 10px 12px;
-
- .field-selector {
- width: calc(100% - 58px);
- }
-`;
-
-const StyledFilterContent = styled.div`
- background-color: ${props => props.theme.panelBackground};
- padding: 12px;
-`;
-
FilterPanelFactory.deps = [
- SourceDataSelectorFactory,
- SingleSelectFilterFactory,
- MultiSelectFilterFactory,
- TimeRangeFilterFactory,
- RangeFilterFactory
+ FilterPanelHeaderFactory,
+ NewFilterPanelFactory,
+ TimeRangeFilterPanelFactory,
+ SingleSelectFilterPanelFactory,
+ MultiSelectFilterPanelFactory,
+ RangeFilterPanelFactory,
+ PolygonFilterPanelFactory
];
function FilterPanelFactory(
- SourceDataSelector,
- SingleSelectFilter,
- MultiSelectFilter,
- TimeRangeFilter,
- RangeFilter
+ FilterPanelHeader,
+ NewFilterPanel,
+ TimeRangeFilterPanel,
+ SingleSelectFilterPanel,
+ MultiSelectFilterPanel,
+ RangeFilterPanel,
+ PolygonFilterPanel
) {
- const FilterComponents = {
- SingleSelectFilter,
- MultiSelectFilter,
- TimeRangeFilter,
- RangeFilter
+ const FilterPanelComponents = {
+ default: NewFilterPanel,
+ [FILTER_TYPES.timeRange]: TimeRangeFilterPanel,
+ [FILTER_TYPES.select]: SingleSelectFilterPanel,
+ [FILTER_TYPES.multiSelect]: MultiSelectFilterPanel,
+ [FILTER_TYPES.range]: RangeFilterPanel,
+ [FILTER_TYPES.polygon]: PolygonFilterPanel
};
return class FilterPanel extends Component {
@@ -89,17 +79,17 @@ function FilterPanelFactory(
removeFilter: PropTypes.func.isRequired,
enlargeFilter: PropTypes.func.isRequired,
toggleAnimation: PropTypes.func.isRequired,
+ toggleFilterFeature: PropTypes.func.isRequired,
datasets: PropTypes.object,
showDatasetTable: PropTypes.func,
isAnyFilterAnimating: PropTypes.bool
};
/* selectors */
- fieldsSelector = props =>
- (props.filter.dataId && props.datasets[props.filter.dataId].fields) || [];
+ fieldsSelector = props => props.filter.dataId[0] && props.datasets[props.filter.dataId[0]].fields || [];
filterSelector = props => props.filters;
nameSelector = props => props.filter.name;
- dataIdSelector = props => props.filter.dataId;
+ dataIdSelector = props => props.filter.dataId[0];
// only show current field and field that's not already been used as a filter
availableFieldsSelector = createSelector(
@@ -119,72 +109,19 @@ function FilterPanelFactory(
render() {
const {
- datasets,
- enlargeFilter,
- filter,
- idx,
- isAnyFilterAnimating,
- removeFilter,
- setFilter,
- toggleAnimation
+ filter
} = this.props;
- const {name, enlarged, type, dataId} = filter;
- const FilterComponent = type && FilterComponents[FILTER_COMPONENTS[type]];
+ const {type} = filter;
+ const FilterFilterComponent = (type && FilterPanelComponents[type]) || FilterPanelComponents.default;
const allAvailableFields = this.availableFieldsSelector(this.props);
return (
<StyledFilterPanel className="filter-panel">
- <StyledFilterHeader className="filter-panel__header"
- labelRCGColorValues={datasets[dataId].color}>
- <FieldSelector
- inputTheme="secondary"
- fields={allAvailableFields}
- value={Array.isArray(name) ? name[0] : name}
- erasable={false}
- onSelect={value => setFilter(idx, 'name', value.name)}
- />
- <PanelHeaderAction
- id={filter.id}
- tooltip="delete"
- tooltipType="error"
- onClick={removeFilter}
- hoverColor={'errorColor'}
- IconComponent={Trash}
- />
- {type === FILTER_TYPES.timeRange && (
- <PanelHeaderAction
- id={filter.id}
- onClick={enlargeFilter}
- tooltip="Time Playback"
- IconComponent={Clock}
- active={enlarged}
- />
- )}
- </StyledFilterHeader>
- <StyledFilterContent className="filter-panel__content">
- {Object.keys(datasets).length > 1 && (
- <SourceDataSelector
- inputTheme="secondary"
- datasets={datasets}
- disabled={filter.freeze}
- dataId={filter.dataId}
- onSelect={value => setFilter(idx, 'dataId', value)}
- />
- )}
- {type &&
- !enlarged && (
- <div className="filter-panel__filter">
- <FilterComponent
- filter={filter}
- idx={idx}
- isAnyFilterAnimating={isAnyFilterAnimating}
- toggleAnimation={toggleAnimation}
- setFilter={value => setFilter(idx, 'value', value)}
- />
- </div>
- )}
- </StyledFilterContent>
+ <FilterFilterComponent
+ allAvailableFields={allAvailableFields}
+ {...this.props}
+ />
</StyledFilterPanel>
);
}
diff --git a/src/components/side-panel/panel-dropdown.js b/src/components/side-panel/panel-dropdown.js
index 80d289c32..7151e0bb7 100644
--- a/src/components/side-panel/panel-dropdown.js
+++ b/src/components/side-panel/panel-dropdown.js
@@ -46,6 +46,6 @@ class ClickOutsideCloseDropdown extends Component {
</StyledPanelDropdown>
);
}
-};
+}
export default listensToClickOutside(ClickOutsideCloseDropdown);
diff --git a/src/components/side-panel/panel-header.js b/src/components/side-panel/panel-header.js
index 42081f5d1..7dc7c16a2 100644
--- a/src/components/side-panel/panel-header.js
+++ b/src/components/side-panel/panel-header.js
@@ -25,6 +25,8 @@ import {Tooltip} from 'components/common/styled-components';
import KeplerGlLogo from 'components/common/logo';
import {Save, Files, Share, Picture, Map} from 'components/common/icons';
import ClickOutsideCloseDropdown from 'components/side-panel/panel-dropdown';
+import Toolbar from 'components/common/toolbar';
+import ToolbarItem from 'components/common/toolbar-item';
const StyledPanelHeader = styled.div.attrs({
className: 'side-side-panel__header'
@@ -80,49 +82,10 @@ const StyledPanelAction = styled.div.attrs({
}
`;
-const StyledPanelDropdown = styled.div`
- background-color: ${props => props.theme.dropdownListBgd};
- box-shadow: ${props => props.theme.dropdownListShadow};
- font-size: 11px;
- padding: 16px 0;
+// By assigning this style we can position the toolbar in the right place on the screen
+const StyledToolbar = styled(Toolbar)`
position: absolute;
left: 64px;
- transition: ${props => props.theme.transitionSlow};
- display: flex;
- margin-top: ${props => props.show ? '6px' : '20px'};
- opacity: ${props => props.show ? 1 : 0};
- transform: translateX(calc(-50% + 20px));
- pointer-events: ${props => props.show ? 'all' : 'none'};
- z-index: 1000;
-
- .save-export-dropdown__inner {
- box-shadow: none;
- background-color: transparent;
- display: flex;
- }
-
- .save-export-dropdown__item {
- align-items: center;
- border-right: 1px solid ${props => props.theme.panelHeaderIcon};
- color: ${props => props.theme.textColor};
- display: flex;
- flex-direction: column;
- padding: 0 22px;
-
- :hover {
- cursor: pointer;
- color: ${props => props.theme.textColorHl};
- }
-
- &:last-child {
- border-right: 0;
- }
- }
-
- .save-export-dropdown__title {
- white-space: nowrap;
- margin-top: 4px;
- }
`;
export const PanelAction = ({item, onClick}) => (
@@ -143,21 +106,8 @@ export const PanelAction = ({item, onClick}) => (
</StyledPanelAction>
);
-const PanelItem = ({onClose, onClickHandler, label, icon}) => (
- <div className="save-export-dropdown__item" onClick={(e) => {
- e.stopPropagation();
- onClose();
- onClickHandler();
- }}>
- {icon}
- <div className="save-export-dropdown__title">{label}</div>
- </div>
-);
-
export const ExportImageFactory = () => {
- const ExportImage = (props) => (
- <PanelItem {...props}/>
- );
+ const ExportImage = props => (<ToolbarItem {...props}/>);
ExportImage.defaultProps = {
label: 'Export Image',
icon: <Picture />
@@ -167,9 +117,7 @@ export const ExportImageFactory = () => {
};
export const ExportDataFactory = () => {
- const ExportData = (props) => (
- <PanelItem {...props}/>
- );
+ const ExportData = props => (<ToolbarItem {...props}/>);
ExportData.defaultProps = {
label: 'Export Data',
icon: <Files />
@@ -179,9 +127,7 @@ export const ExportDataFactory = () => {
};
export const ExportMapFactory = () => {
- const ExportMap = (props) => (
- <PanelItem {...props}/>
- );
+ const ExportMap = props => (<ToolbarItem {...props}/>);
ExportMap.defaultProps = {
label: 'Export Map',
icon: <Map />
@@ -191,9 +137,7 @@ export const ExportMapFactory = () => {
};
export const SaveMapFactory = () => {
- const SaveMap = (props) => (
- <PanelItem {...props}/>
- );
+ const SaveMap = props => (<ToolbarItem {...props}/>);
SaveMap.defaultProps = {
label: 'Save Map',
icon: <Share />
@@ -202,11 +146,19 @@ export const SaveMapFactory = () => {
return SaveMap;
};
-export const SaveExportDropdownFactory = (
+SaveExportDropdownFactory.deps = [
+ ExportImageFactory,
+ ExportDataFactory,
+ ExportMapFactory,
+ SaveMapFactory
+];
+
+export function SaveExportDropdownFactory(
ExportImage,
ExportData,
ExportMap,
- SaveMap) => {
+ SaveMap) {
+
const SaveExportDropdown = ({
onExportImage,
onExportData,
@@ -217,42 +169,49 @@ export const SaveExportDropdownFactory = (
onClose
}) => {
return (
- <StyledPanelDropdown show={show} className="save-export-dropdown">
- <ClickOutsideCloseDropdown className="save-export-dropdown__inner"
+ <StyledToolbar show={show} onClose={onClose} className="save-export-dropdown">
+ <ClickOutsideCloseDropdown
+ className="save-export-dropdown__inner"
show={show}
onClose={onClose}>
<ExportImage
- onClickHandler={onExportImage}
- onClose={onClose}
+ className="export-image"
+ onClick={() => {
+ onExportImage();
+ onClose();
+ }}
/>
<ExportData
- onClickHandler={onExportData}
- onClose={onClose}
+ className="export-data"
+ onClick={() => {
+ onExportData();
+ onClose();
+ }}
/>
<ExportMap
- onClickHandler={onExportMap}
- onClose={onClose}
+ className="export-map"
+ onClick={() => {
+ onExportMap();
+ onClose();
+ }}
/>
{onSaveMap ? (
<SaveMap
- onClickHandler={onSaveMap}
- onClose={onClose}
+ className="save-map"
+ onClick={() => {
+ onSaveMap();
+ onClose();
+ }}
/>
- ) : null}
+ ) : null}
</ClickOutsideCloseDropdown>
- </StyledPanelDropdown>
+ </StyledToolbar>
+
);
};
return SaveExportDropdown;
-};
-
-SaveExportDropdownFactory.deps = [
- ExportImageFactory,
- ExportDataFactory,
- ExportMapFactory,
- SaveMapFactory
-];
+}
PanelHeaderFactory.deps = [
SaveExportDropdownFactory
diff --git a/src/constants/action-types.js b/src/constants/action-types.js
index 9b06c78d2..61019caae 100644
--- a/src/constants/action-types.js
+++ b/src/constants/action-types.js
@@ -87,12 +87,14 @@ const ActionTypes = keyMirror({
UPDATE_LAYER_ANIMATION_SPEED: null,
TOGGLE_LAYER_CONFIG_ACTIVE: null,
ENLARGE_FILTER: null,
+ TOGGLE_FILTER_FEATURE: null,
SET_VISIBLE_LAYERS_FOR_MAP: null,
TOGGLE_LAYER_FOR_MAP: null,
SET_FILTER_PLOT: null,
LOAD_FILES: null,
LOAD_FILES_ERR: null,
LAYER_COLOR_UI_CHANGE: null,
+ TOGGLE_FEATURE_LAYER: null,
// mapState
UPDATE_MAP: null,
@@ -143,11 +145,21 @@ const ActionTypes = keyMirror({
SET_USER_MAPBOX_ACCESS_TOKEN: null,
SET_EXPORT_MAP_HTML_MODE: null,
+ // uiState > editor
+ SET_EDITOR_MODE: null,
+ SET_SELECTED_FEATURE: null,
+
// all
INIT: null,
ADD_DATA_TO_MAP: null,
RECEIVE_MAP_CONFIG: null,
- RESET_MAP_CONFIG: null
+ RESET_MAP_CONFIG: null,
+
+ // geo-operations
+ SET_FEATURES: null,
+ SET_POLYGON_FILTER_LAYER: null,
+ DELETE_FEATURE: null,
+ TOGGLE_EDITOR_VISIBILITY: null
});
const addPrefix = actions =>
diff --git a/src/constants/default-settings.js b/src/constants/default-settings.js
index 1a7d5f5fa..fccc7f9f3 100644
--- a/src/constants/default-settings.js
+++ b/src/constants/default-settings.js
@@ -19,6 +19,7 @@
// THE SOFTWARE.
import keyMirror from 'keymirror';
+import {EditorModes} from 'react-map-gl-draw';
import {
scaleLinear,
@@ -694,3 +695,20 @@ export const MAP_CONFIG_DESCRIPTION = 'Map config will be included in the Json f
export const BASE_SPEED = 600;
export const DEFAULT_TIME_FORMAT = 'MM/DD/YY HH:mm:ssa';
export const SPEED_CONTROL_RANGE = [0, 10];
+
+// We could use directly react-map-gl-draw EditorMode but this would
+// create a direct dependency with react-map-gl-draw
+// Created this map to be independent from react-map-gl-draw
+export const EDITOR_MODES = {
+ READ_ONLY: EditorModes.READ_ONLY,
+ DRAW_POLYGON: EditorModes.DRAW_POLYGON,
+ DRAW_RECTANGLE: EditorModes.DRAW_RECTANGLE,
+ EDIT: EditorModes.EDIT_VERTEX
+};
+
+export const EDITOR_AVAILABLE_LAYERS = [
+ LAYER_TYPES.point,
+ LAYER_TYPES.hexagon,
+ LAYER_TYPES.arc,
+ LAYER_TYPES.line
+];
diff --git a/src/constants/index.js b/src/constants/index.js
index f43d30e6b..8b6de3b1c 100644
--- a/src/constants/index.js
+++ b/src/constants/index.js
@@ -52,7 +52,8 @@ export {
DEFAULT_NOTIFICATION_TYPES,
DEFAULT_NOTIFICATION_TOPICS,
DEFAULT_COLOR_RANGE,
- PANELS
+ PANELS,
+ EDITOR_MODES
} from './default-settings';
export {
diff --git a/src/layers/arc-layer/arc-layer.js b/src/layers/arc-layer/arc-layer.js
index 6c00beb80..3a3921e05 100644
--- a/src/layers/arc-layer/arc-layer.js
+++ b/src/layers/arc-layer/arc-layer.js
@@ -106,6 +106,9 @@ export default class ArcLayer extends Layer {
return {props: [props]};
}
+ getPositionAccessor() {
+ return this.getPosition(this.config.columns);
+ }
// TODO: fix complexity
/* eslint-disable complexity */
formatLayerData(_, allData, filteredIndex, oldLayerData, opt = {}) {
@@ -114,7 +117,6 @@ export default class ArcLayer extends Layer {
colorDomain,
colorField,
color,
- columns,
sizeField,
sizeScale,
sizeDomain,
@@ -134,7 +136,7 @@ export default class ArcLayer extends Layer {
const sScale =
sizeField && this.getVisChannelScale(sizeScale, sizeDomain, sizeRange);
- const getPosition = this.getPosition(columns);
+ const getPosition = this.getPositionAccessor();
if (!oldLayerData || oldLayerData.getPosition !== getPosition) {
this.updateLayerMeta(allData, getPosition);
@@ -191,8 +193,10 @@ export default class ArcLayer extends Layer {
}
/* eslint-enable complexity */
- updateLayerMeta(allData, getPosition) {
+ updateLayerMeta(allData) {
// get bounds from arcs
+ const getPosition = this.getPositionAccessor();
+
const sBounds = this.getPointsBounds(allData, d => {
const pos = getPosition({data: d});
return [pos[0], pos[1]];
diff --git a/src/processors/data-processor.js b/src/processors/data-processor.js
index 3ad0d4924..fb29c454a 100644
--- a/src/processors/data-processor.js
+++ b/src/processors/data-processor.js
@@ -203,6 +203,7 @@ function cleanUpFalsyCsvValue(rows) {
* Process uploaded csv file to parse value by field type
*
* @param {Array<Array>} rows
+ * @param {Number} geo field index
* @param {Object} field
* @param {Number} i
* @returns {void}
diff --git a/src/reducers/combined-updaters.js b/src/reducers/combined-updaters.js
index 16a9c8cf0..fa59c559f 100644
--- a/src/reducers/combined-updaters.js
+++ b/src/reducers/combined-updaters.js
@@ -19,7 +19,9 @@
// THE SOFTWARE.
import {toggleModalUpdater, loadFilesSuccessUpdater} from './ui-state-updaters';
-import {updateVisDataUpdater as visStateUpdateVisDataUpdater} from './vis-state-updaters';
+import {
+ updateVisDataUpdater as visStateUpdateVisDataUpdater
+} from './vis-state-updaters';
import {receiveMapConfigUpdater as stateMapConfigUpdater} from './map-state-updaters';
import {receiveMapConfigUpdater as styleMapConfigUpdater} from './map-style-updaters';
import {findMapBounds} from 'utils/data-utils';
diff --git a/src/reducers/map-style-updaters.js b/src/reducers/map-style-updaters.js
index 03d4b4c42..dc1291c62 100644
--- a/src/reducers/map-style-updaters.js
+++ b/src/reducers/map-style-updaters.js
@@ -557,12 +557,23 @@ export const addCustomMapStyleUpdater = state => {
return mapStyleChangeUpdater(newState, {payload: styleId});
};
+/**
+ * Updates 3d building color
+ * @memberof mapStyleUpdaters
+ * @param state
+ * @param color
+ * @return {Object} nextState
+ */
export const set3dBuildingColorUpdater = (state, {payload: color}) => ({
...state,
threeDBuildingColor: color,
custom3DBuildingColor: true
});
+/**
+ * Return the initial input style
+ * @return Object
+ */
export function getInitialInputStyle() {
return {
accessToken: null,
diff --git a/src/reducers/map-style.js b/src/reducers/map-style.js
index 63f1cc094..4721f736f 100644
--- a/src/reducers/map-style.js
+++ b/src/reducers/map-style.js
@@ -38,7 +38,8 @@ const actionHandler = {
[ActionTypes.LOAD_CUSTOM_MAP_STYLE]: mapStyleUpdaters.loadCustomMapStyleUpdater,
[ActionTypes.ADD_CUSTOM_MAP_STYLE]: mapStyleUpdaters.addCustomMapStyleUpdater,
[ActionTypes.RESET_MAP_CONFIG]: mapStyleUpdaters.resetMapConfigMapStyleUpdater,
- [ActionTypes.SET_3D_BUILDING_COLOR]: mapStyleUpdaters.set3dBuildingColorUpdater
+ [ActionTypes.SET_3D_BUILDING_COLOR]: mapStyleUpdaters.set3dBuildingColorUpdater,
+ [ActionTypes.RESET_MAP_CONFIG]: mapStyleUpdaters.resetMapConfigMapStyleUpdater
};
export const mapStyleReducerFactory = (initialState = {}) =>
diff --git a/src/reducers/ui-state-updaters.js b/src/reducers/ui-state-updaters.js
index 548806301..28e0f0186 100644
--- a/src/reducers/ui-state-updaters.js
+++ b/src/reducers/ui-state-updaters.js
@@ -84,23 +84,24 @@ const uiStateUpdaters = null;
* @property {Object} splitMap Default: `{show: true}`
* @public
*/
-export const DEFAULT_MAP_CONTROLS = {
- visibleLayers: {
- show: true,
- active: false
- },
- mapLegend: {
- show: true,
- active: false
- },
- toggle3d: {
- show: true
- },
- splitMap: {
- show: true
- }
+const DEFAULT_MAP_CONTROLS_FEATURES = {
+ show: true,
+ active: false,
+ // defines which map index users are interacting with (through map controls)
+ activeMapIndex: 0
};
+export const DEFAULT_MAP_CONTROLS = [
+ 'visibleLayers',
+ 'mapLegend',
+ 'toggle3d',
+ 'splitMap',
+ 'mapDraw'
+].reduce((final, current) => ({
+ ...final,
+ [current]: DEFAULT_MAP_CONTROLS_FEATURES
+}), {});
+
/**
* Default image export config
* @memberof uiStateUpdaters
@@ -111,6 +112,7 @@ export const DEFAULT_MAP_CONTROLS = {
* @property {boolean} legend Default: `false`,
* @property {string} imageDataUri Default: `''`,
* @property {boolean} exporting Default: `false`
+ * @property {boolean} error Default: `false`
* @public
*/
export const DEFAULT_EXPORT_IMAGE = {
@@ -188,6 +190,7 @@ export const DEFAULT_EXPORT_MAP = {
* @property {Object} exportImage Default: [`DEFAULT_EXPORT_IMAGE`](#default_export_image)
* @property {Object} exportData Default: [`DEFAULT_EXPORT_DATA`](#default_export_data)
* @property {Object} mapControls Default: [`DEFAULT_MAP_CONTROLS`](#default_map_controls)
+ * @property {number} activeMapIndex defines which map the user clicked on. Default: 0
* @public
*/
export const INITIAL_UI_STATE = {
@@ -206,6 +209,7 @@ export const INITIAL_UI_STATE = {
mapControls: DEFAULT_MAP_CONTROLS,
// ui notifications
notifications: DEFAULT_NOTIFICATIONS,
+ // load files
loadFiles: DEFAULT_LOAD_FILES
};
@@ -220,14 +224,11 @@ export const INITIAL_UI_STATE = {
* @public
*/
export const toggleSidePanelUpdater = (state, {payload: id}) => {
- if (id === state.activeSidePanel) {
- return state;
- }
-
- return {
- ...state,
- activeSidePanel: id
- };
+ return id === state.activeSidePanel ?
+ state : {
+ ...state,
+ activeSidePanel: id
+ };
};
/**
@@ -286,13 +287,18 @@ export const hideExportDropdownUpdater = state => ({
* @returns {Object} nextState
* @public
*/
-export const toggleMapControlUpdater = (state, {payload: panelId}) => ({
+export const toggleMapControlUpdater = (state, {payload: {panelId, index = 0} }) => ({
...state,
mapControls: {
...state.mapControls,
[panelId]: {
...state.mapControls[panelId],
- active: !state.mapControls[panelId].active
+ // this handles split map interaction
+ // Toggling from within the same map will simply toggle the active property
+ // Toggling from within different maps we set the active property to true
+ active: index === state.mapControls[panelId].activeMapIndex
+ ? !state.mapControls[panelId].active : true,
+ activeMapIndex: index
}
}
});
@@ -521,7 +527,7 @@ export const setUserMapboxAccessTokenUpdater = (
* @param {string} format to use to export the map onto
* @return {Object} nextState
*/
-export const setExportMapFormat = (state, {payload: format}) => ({
+export const setExportMapFormatUpdater = (state, {payload: format}) => ({
...state,
exportMap: {
...state.exportMap,
@@ -567,6 +573,7 @@ export const addNotificationUpdater = (state, {payload}) => ({
* @param {Object} action
* @param {String} action.payload id of the notification to be removed
* @returns {Object} nextState
+ * @public
*/
export const removeNotificationUpdater = (state, {payload: id}) => ({
...state,
@@ -577,7 +584,8 @@ export const removeNotificationUpdater = (state, {payload: id}) => ({
* Fired when file loading begin
* @memberof uiStateUpdaters
* @param {Object} state `uiState`
- * @param {Object} action
+ * @returns {Object} nextState
+ * @public
*/
export const loadFilesUpdater = (state) => ({
...state,
@@ -587,6 +595,12 @@ export const loadFilesUpdater = (state) => ({
}
});
+/**
+ * Handles loading file success and set fileLoading property to false
+ * @memberof uiStateUpdaters
+ * @param {Object} state `uiState`
+ * @returns {Object} nextState
+ */
export const loadFilesSuccessUpdater = (state) => ({
...state,
loadFiles: {
@@ -595,19 +609,46 @@ export const loadFilesSuccessUpdater = (state) => ({
}
});
-export const loadFilesErrUpdater = (state, {error}) =>
- addNotificationUpdater(
- {
- ...state,
- loadFiles: {
- ...state.loadFiles,
- fileLoading: false
- }
- },
- {
- payload: errorNotification({
- message: (error || {}).message || 'Failed to upload files',
- topic: DEFAULT_NOTIFICATION_TOPICS.global
- })
+/**
+ * Handles load file error and set fileLoading property to false
+ * @memberof uiStateUpdaters
+ * @param state
+ * @param error
+ * @returns {Object} nextState
+ * @public
+ */
+export const loadFilesErrUpdater = (state, {error}) => addNotificationUpdater(
+ {
+ ...state,
+ loadFiles: {
+ ...state.loadFiles,
+ fileLoading: false
}
- );
+ },
+ {
+ payload: errorNotification({
+ message: (error || {}).message || 'Failed to upload files',
+ topic: DEFAULT_NOTIFICATION_TOPICS.global
+ })
+ }
+);
+
+/**
+ * Handles toggle map split and reset all map control index to 0
+ * @memberof uiStateUpdaters
+ * @param state
+ * @returns {Object} nextState
+ * @public
+ */
+export const toggleSplitMapUpdater = (state) => ({
+ ...state,
+ mapControls: Object.entries(state.mapControls)
+ .reduce((acc, entry) => ({
+ ...acc,
+ [entry[0]]: {
+ ...entry[1],
+ activeMapIndex: 0
+ }
+ }), {})
+});
+
diff --git a/src/reducers/ui-state.js b/src/reducers/ui-state.js
index 5e0e0db54..892235507 100644
--- a/src/reducers/ui-state.js
+++ b/src/reducers/ui-state.js
@@ -49,11 +49,14 @@ const actionHandler = {
[ActionTypes.SET_EXPORT_FILTERED]: uiStateUpdaters.setExportFilteredUpdater,
[ActionTypes.SET_EXPORT_DATA]: uiStateUpdaters.setExportDataUpdater,
[ActionTypes.SET_USER_MAPBOX_ACCESS_TOKEN]: uiStateUpdaters.setUserMapboxAccessTokenUpdater,
- [ActionTypes.SET_EXPORT_MAP_FORMAT]: uiStateUpdaters.setExportMapFormat,
- [ActionTypes.SET_EXPORT_MAP_HTML_MODE]: uiStateUpdaters.setExportMapHTMLMode,
+ [ActionTypes.SET_EXPORT_MAP_FORMAT]: uiStateUpdaters.setExportMapFormatUpdater,
+
+ [ActionTypes.SET_EXPORT_MAP_HTML_MODE]: uiStateUpdaters.setExportMapHTMLMode,
[ActionTypes.LOAD_FILES]: uiStateUpdaters.loadFilesUpdater,
- [ActionTypes.LOAD_FILES_ERR]: uiStateUpdaters.loadFilesErrUpdater
+ [ActionTypes.LOAD_FILES_ERR]: uiStateUpdaters.loadFilesErrUpdater,
+
+ [ActionTypes.TOGGLE_SPLIT_MAP]: uiStateUpdaters.toggleSplitMapUpdater
};
/* Reducer */
diff --git a/src/reducers/vis-state-merger.js b/src/reducers/vis-state-merger.js
index 8ac459505..a28562863 100644
--- a/src/reducers/vis-state-merger.js
+++ b/src/reducers/vis-state-merger.js
@@ -56,14 +56,15 @@ export function mergeFilters(state, filtersToMerge) {
// we can only look for datasets define in the filter dataId
const datasetIds = Array.isArray(filter.dataId) ? filter.dataId : [filter.dataId];
- // we can merge a filter only if all datasets in filter.dataId are laoded
+ // we can merge a filter only if all datasets in filter.dataId are loaded
if (datasetIds.every(d => datasets[d])) {
// all datasetIds in filter must be present the state datasets
const {filter: validatedFilter, applyToDatasets, augmentedDatasets} = datasetIds.reduce((acc, datasetId) => {
+
const dataset = updatedDatasets[datasetId];
- const {filter: updatedFilter, dataset: updatedDataset} =
- validateFilterWithData(acc.augmentedDatasets[datasetId] || dataset, filter);
+ const layers = state.layers.filter(l => l.config.dataId === dataset.id);
+ const {filter: updatedFilter, dataset: updatedDataset} = validateFilterWithData(acc.augmentedDatasets[datasetId] || dataset, filter, layers);
if (updatedFilter) {
return {
@@ -87,7 +88,6 @@ export function mergeFilters(state, filtersToMerge) {
}
return acc;
-
}, {
filter: null,
applyToDatasets: [],
@@ -112,7 +112,7 @@ export function mergeFilters(state, filtersToMerge) {
// flatten all filter dataIds
const datasetsToFilter = uniq(flattenDeep(merged.map(f => f.dataId)));
- const filtered = applyFiltersToDatasets(datasetsToFilter, updatedDatasets, updatedFilters);
+ const filtered = applyFiltersToDatasets(datasetsToFilter, updatedDatasets, updatedFilters, state.layers);
return {
...state,
diff --git a/src/reducers/vis-state-updaters.js b/src/reducers/vis-state-updaters.js
index 2656dc767..7954ced1b 100644
--- a/src/reducers/vis-state-updaters.js
+++ b/src/reducers/vis-state-updaters.js
@@ -21,6 +21,9 @@
import {console as Console} from 'global/window';
import Task, {disableStackCapturing, withTask} from 'react-palm/tasks';
import cloneDeep from 'lodash.clonedeep';
+import uniq from 'lodash.uniq';
+import {toArray} from 'utils/utils';
+import get from 'lodash.get';
// Tasks
import {LOAD_FILE_TASK} from 'tasks/tasks';
@@ -32,14 +35,17 @@ import {addDataToMap} from 'actions';
// Utils
import {getDefaultInteraction, findFieldsToShow} from 'utils/interaction-utils';
import {
+ FILTER_UPDATER_PROPS,
+ LIMITED_FILTER_EFFECT_PROPS,
applyFilterFieldName,
applyFiltersToDatasets,
+ generatePolygonFilter,
getDefaultFilter,
getFilterPlot,
getDefaultFilterPlotType,
isInRange,
- FILTER_UPDATER_PROPS,
- LIMITED_FILTER_EFFECT_PROPS
+ getFilterIdInFeature,
+ featureToFilterValue
} from 'utils/filter-utils';
import {createNewDataEntry} from 'utils/dataset-utils';
@@ -67,6 +73,10 @@ import {Layer, LayerClasses} from 'layers';
import {processFileToLoad} from '/utils/file-utils';
import {DEFAULT_TEXT_LABEL} from 'layers/layer-factory';
+import {
+ EDITOR_MODES
+} from 'constants/default-settings';
+
// react-palm
// disable capture exception for react-palm call to withTask
disableStackCapturing();
@@ -117,6 +127,13 @@ export const defaultAnimationConfig = {
speed: 1
};
+export const DEFAULT_EDITOR = {
+ mode: EDITOR_MODES.DRAW_POLYGON,
+ features: [],
+ selectedFeature: null,
+ visible: true
+};
+
/**
* Default initial `visState`
* @memberof visStateUpdaters
@@ -139,6 +156,7 @@ export const defaultAnimationConfig = {
* @property {Array} splitMaps - a list of objects of layer availabilities and visibilities for each map
* @property {Object} layerClasses
* @property {Object} animationConfig
+ * @property {Object} editor
* @public
*/
export const INITIAL_VIS_STATE = {
@@ -180,7 +198,9 @@ export const INITIAL_VIS_STATE = {
// default animation
// time in unix timestamp (milliseconds) (the number of seconds since the Unix Epoch)
- animationConfig: defaultAnimationConfig
+ animationConfig: defaultAnimationConfig,
+
+ editor: DEFAULT_EDITOR
};
function updateStateWithLayerAndData(state, {layerData, layer, idx}) {
@@ -520,12 +540,9 @@ export function setFilterUpdater(state, action) {
};
const {dataId} = newFilter;
- if (!dataId || !dataId.length) {
- return state;
- }
- // ENsuring backward compatibility
- const datasetIds = Array.isArray(dataId) ? dataId : [dataId];
+ // Ensuring backward compatibility
+ let datasetIds = toArray(dataId);
switch (prop) {
// TODO: Next PR for UI if we update dataId, we need to consider two cases:
@@ -566,6 +583,27 @@ export function setFilterUpdater(state, action) {
};
// only filter the current dataset
+ break;
+ case FILTER_UPDATER_PROPS.layerId:
+ // const layers = state.layers.filter(l => value.includes(l.id));
+
+ const layerDataIds = uniq(
+ value
+ .map(lid => get(state.layers.find(l => l.id === lid), ['config', 'dataId']))
+ .filter(d => d)
+ );
+
+ // diff filter.dataId with layerDataIds, to determine which dataset to run filter on
+ datasetIds = [
+ ...layerDataIds.filter(lid => !datasetIds.includes(lid)),
+ ...datasetIds.filter(did => !layerDataIds.includes(did))
+ ];
+
+ newFilter = {
+ ...newFilter,
+ dataId: layerDataIds
+ };
+
break;
default:
break;
@@ -597,7 +635,8 @@ export function setFilterUpdater(state, action) {
datasets: applyFiltersToDatasets(
datasetIdsToFilter,
newState.datasets,
- newState.filters
+ newState.filters,
+ newState.layers
)
};
@@ -721,7 +760,6 @@ export const updateFilterAnimationSpeedUpdater = (state, action) => ({
* @public
*
*/
-
export const updateAnimationTimeUpdater = (state, {value}) => ({
...state,
animationConfig: {
@@ -740,7 +778,6 @@ export const updateAnimationTimeUpdater = (state, {value}) => ({
* @public
*
*/
-
export const updateLayerAnimationSpeedUpdater = (state, {speed}) => {
return {
...state,
@@ -772,6 +809,28 @@ export const enlargeFilterUpdater = (state, action) => {
};
};
+/**
+ * Toggles filter feature visibility
+ * @memberof visStateUpdaters
+ * @param {Object} state `visState`
+ * @param {Object} action action
+ * @param {Number} action.idx index of filter to enlarge
+ * @returns {Object} nextState
+ */
+export const toggleFilterFeatureUpdater = (state, action) => {
+ const filter = state.filters[action.idx];
+ const isVisible = get(filter, ['value', 'properties', 'isVisible']);
+ const newFilter = {
+ ...filter,
+ value: featureToFilterValue(filter.value, filter.id, {isVisible: !isVisible})
+ };
+
+ return {
+ ...state,
+ filters: Object.assign([].concat(state.filters), {[action.idx]: newFilter})
+ };
+};
+
/**
* Remove a filter
* @memberof visStateUpdaters
@@ -783,7 +842,7 @@ export const enlargeFilterUpdater = (state, action) => {
*/
export const removeFilterUpdater = (state, action) => {
const {idx} = action;
- const {dataId} = state.filters[idx];
+ const {dataId, id} = state.filters[idx];
const newFilters = [
...state.filters.slice(0, idx),
@@ -792,8 +851,12 @@ export const removeFilterUpdater = (state, action) => {
const newState = {
...state,
- datasets: applyFiltersToDatasets(dataId, state.datasets, newFilters),
- filters: newFilters
+ datasets: applyFiltersToDatasets(dataId, state.datasets, newFilters, state.layers),
+ filters: newFilters,
+ editor: getFilterIdInFeature(state.editor.selectedFeature) === id ? {
+ ...state.editor,
+ selectedFeature: null
+ } : state.editor
};
return updateAllLayerDomainData(newState, dataId);
@@ -853,6 +916,7 @@ export const removeLayerUpdater = (state, {idx}) => {
clicked: layerToRemove.isLayerHovered(clicked) ? undefined : clicked,
hoverInfo: layerToRemove.isLayerHovered(hoverInfo) ? undefined : hoverInfo,
splitMaps: newMaps
+ // TODO: update filters, create helper to remove layer form filter (remove layerid and dataid) if mapped
};
return updateAnimationDomain(newState);
@@ -1013,8 +1077,8 @@ export const receiveMapConfigUpdater = (
// reset config if keepExistingConfig is falsy
let mergedState = !keepExistingConfig ? resetMapConfigUpdater(state) : state;
- mergedState = mergeFilters(mergedState, filters);
mergedState = mergeLayers(mergedState, layers);
+ mergedState = mergeFilters(mergedState, filters);
mergedState = mergeInteractions(mergedState, interactionConfig);
mergedState = mergeLayerBlending(mergedState, layerBlending);
mergedState = mergeSplitMaps(mergedState, splitMaps);
@@ -1158,9 +1222,7 @@ export const updateVisDataUpdater = (state, action) => {
// datasets can be a single data entries or an array of multiple data entries
const {config, options} = action;
- const datasets = Array.isArray(action.datasets)
- ? action.datasets
- : [action.datasets];
+ const datasets = toArray(action.datasets);
const newDataEntries = datasets.reduce(
(accu, {info = {}, data}) => ({
@@ -1197,11 +1259,10 @@ export const updateVisDataUpdater = (state, action) => {
splitMapsToBeMerged = []
} = stateWithNewData;
- // merge state with saved filters
- let mergedState = mergeFilters(stateWithNewData, filterToBeMerged);
+ // We need to merge layers before filters because polygon filters requires layers to be loaded
+ let mergedState = mergeLayers(stateWithNewData, layerToBeMerged);
- // merge state with saved layers
- mergedState = mergeLayers(mergedState, layerToBeMerged);
+ mergedState = mergeFilters(mergedState, filterToBeMerged);
// merge state with saved splitMaps
mergedState = mergeSplitMaps(mergedState, splitMapsToBeMerged);
@@ -1321,6 +1382,21 @@ export const loadFilesUpdater = (state, action) => {
return withTask(state, loadFileTasks);
};
+/**
+ * Trigger loading file error
+ * @memberof visStateUpdaters
+ * @param {Object} state `visState`
+ * @param {Object} action action
+ * @param {*} action.error
+ * @returns {Object} nextState
+ * @public
+ */
+export const loadFilesErrUpdater = (state, {error}) => ({
+ ...state,
+ fileLoading: false,
+ fileLoadingErr: error
+});
+
/**
* Helper function to update All layer domain and layer data of state
* @memberof visStateUpdaters
@@ -1379,7 +1455,7 @@ export function addDefaultTooltips(state, dataset) {
}
/**
- * Helper function to update layer domains for an array of datsets
+ * Helper function to update layer domains for an array of datasets
* @param {Object} state
* @param {Array|Array<string>} dataId dataset id or array of dataset ids
* @param {Object} newFilter if is called by setFilter, the filter that has changed
@@ -1388,7 +1464,7 @@ export function addDefaultTooltips(state, dataset) {
export function updateAllLayerDomainData(state, dataId, newFilter) {
const dataIds = typeof dataId === 'string' ? [dataId] : dataId;
const newLayers = [];
- const newLayerDatas = [];
+ const newLayerData = [];
state.layers.forEach((oldLayer, i) => {
if (oldLayer.config.dataId && dataIds.includes(oldLayer.config.dataId)) {
@@ -1407,18 +1483,19 @@ export function updateAllLayerDomainData(state, dataId, newFilter) {
state.layerData[i]
);
+ // console.log('LayerData', layerData);
newLayers.push(layer);
- newLayerDatas.push(layerData);
+ newLayerData.push(layerData);
} else {
newLayers.push(oldLayer);
- newLayerDatas.push(state.layerData[i]);
+ newLayerData.push(state.layerData[i]);
}
});
const newState = {
...state,
layers: newLayers,
- layerData: newLayerDatas
+ layerData: newLayerData
};
return newState;
@@ -1460,3 +1537,209 @@ export function updateAnimationDomain(state) {
}
};
}
+
+/**
+ * Update the status of the editor
+ * @memberof visStateUpdaters
+ * @param {Object} state `visState`
+ * @param {string} mode to set to editor to
+ * @return {Object} nextState
+ */
+export const setEditorModeUpdater = (state, {mode}) => ({
+ ...state,
+ editor: {
+ ...state.editor,
+ mode,
+ selectedFeature: null
+ }
+});
+
+// const featureToFilterValue = (feature) => ({...feature, id: feature.id});
+/**
+ * Update editor features
+ * @memberof visStateUpdaters
+ * @param {Object} state `visState`
+ * @param {[Object]} features to store
+ * @return {Object} nextState
+ */
+export function setFeaturesUpdater(state, {features = []}) {
+
+ const lastFeature = features.length && features[features.length - 1];
+
+ const newState = {
+ ...state,
+ editor: {
+ ...state.editor,
+ // only save none filter features to editor
+ features: features.filter(f => !getFilterIdInFeature(f)),
+ mode: lastFeature && lastFeature.properties.isClosed ?
+ EDITOR_MODES.EDIT : state.editor.mode
+ }
+ };
+
+ // Retrieve existing feature
+ const {selectedFeature} = state.editor;
+
+ // If no feature is selected we can simply return since no operations
+ if (!selectedFeature) {
+ return newState;
+ }
+
+ // TODO: check if the feature has changed
+ const feature = features.find(f => f.id === selectedFeature.id);
+
+ // if feature is part of a filter
+ const filterId = feature && getFilterIdInFeature(feature);
+ if (filterId) {
+ const featureValue = featureToFilterValue(feature, filterId);
+ const filterIdx = state.filters.findIndex(fil => fil.id === filterId);
+ return setFilterUpdater(newState, {idx: filterIdx, prop: 'value', value: featureValue});
+ }
+
+ return newState
+}
+
+/**
+ * Set the current selected feature
+ * @memberof uiStateUpdaters
+ * @param {Object} state `uiState`
+ * @param {[Object]} features to store
+ * @return {Object} nextState
+ */
+export const setSelectedFeatureUpdater = (state, {feature}) => ({
+ ...state,
+ editor: {
+ ...state.editor,
+ selectedFeature: feature
+ }
+});
+
+/**
+ * Delete existing feature from filters
+ * @memberof visStateUpdaters
+ * @param {Object} state `visState`
+ * @param {string} selectedFeatureId feature to delete
+ * @return {Object} nextState
+ */
+export function deleteFeatureUpdater(state, {feature}) {
+
+ if (!feature) {
+ return state;
+ }
+
+ const newState = {
+ ...state,
+ editor: {
+ ...state.editor,
+ selectedFeature: null
+ }
+ };
+
+ if (getFilterIdInFeature(feature)) {
+ const filterIdx = newState.filters
+ .findIndex(f => f.id === getFilterIdInFeature(feature));
+
+ return filterIdx > -1 ? removeFilterUpdater(newState, {idx: filterIdx}) : newState;
+ }
+
+ // modify editor object
+ const newEditor = {
+ ...state.editor,
+ features: state.editor.features.filter(f => f.id !== feature.id),
+ selectedFeature: null
+ };
+
+ return {
+ ...state,
+ editor: newEditor
+ };
+}
+
+/**
+ * Toggle feature as layer filter
+ * @memberof visStateUpdaters
+ * @param state
+ * @param {Object} payload
+ * @param {string} payload.featureId
+ * @param {Object} payload.layer
+ * @return {Object} nextState
+ */
+export function setPolygonFilterLayerUpdater(state, payload) {
+ const {layer, feature} = payload;
+ const filterId = getFilterIdInFeature(feature);
+
+ // let newFilter = null;
+ let filterIdx;
+ let newLayerId = [layer.id];
+ let newState = state;
+ // If polygon filter already exists, we need to find out if the current layer is already included
+ if (filterId) {
+ filterIdx = state.filters.findIndex(f => f.id === filterId);
+
+ if (!state.filters[filterIdx]) {
+ // what if filter doesn't exist?... not possible.
+ // because features in the editor is passed in from filters and editors.
+ // but we will move this feature back to editor just in case
+ const noneFilterFeature = {
+ ...feature,
+ properties: {
+ ...feature.properties, filterId: null
+ }
+ };
+
+ return {
+ ...state,
+ editor: {
+ ...state.editor,
+ features: [...state.editor.features, noneFilterFeature],
+ selectedFeature: noneFilterFeature
+ }
+ };
+ }
+
+ const {layerId} = state.filters[filterIdx] || [];
+ const isLayerIncluded = layerId.includes(layer.id);
+ const filter = state.filters[filterIdx];
+
+ newLayerId = isLayerIncluded ?
+ // if layer is included, remove it
+ filter.layerId.filter(l => l !== layer.id) : [
+ ...filter.layerId,
+ layer.id
+ ];
+ } else {
+
+ // if we haven't create the polygon filter, create it
+ const newFilter = generatePolygonFilter([], feature);
+ filterIdx = state.filters.length;
+
+ // add feature, remove feature from eidtor
+ newState = {
+ ...state,
+ filters: [...state.filters, newFilter],
+ editor: {
+ ...state.editor,
+ features: state.editor.features.filter(f => f.id !== feature.id),
+ selectedFeature: newFilter.value
+ }
+ };
+ }
+
+ return setFilterUpdater(newState, {idx: filterIdx, prop: 'layerId', value: newLayerId})
+}
+
+/**
+ * Update editor
+ * @param {Object} state `visState`
+ * @param visible
+ * @return {Object} nextState
+ */
+export function toggleEditorVisibility(state, {visible}) {
+ return {
+ ...state,
+ editor: {
+ ...state.editor,
+ visible: !state.editor.visible
+ }
+ }
+}
diff --git a/src/reducers/vis-state.js b/src/reducers/vis-state.js
index 04d16a961..31318e57b 100644
--- a/src/reducers/vis-state.js
+++ b/src/reducers/vis-state.js
@@ -93,7 +93,21 @@ const actionHandler = {
[ActionTypes.UPDATE_LAYER_BLENDING]: visStateUpdaters.updateLayerBlendingUpdater,
- [ActionTypes.UPDATE_VIS_DATA]: visStateUpdaters.updateVisDataUpdater
+ [ActionTypes.UPDATE_VIS_DATA]: visStateUpdaters.updateVisDataUpdater,
+
+ [ActionTypes.SET_FEATURES]: visStateUpdaters.setFeaturesUpdater,
+
+ [ActionTypes.DELETE_FEATURE]: visStateUpdaters.deleteFeatureUpdater,
+
+ [ActionTypes.SET_POLYGON_FILTER_LAYER]: visStateUpdaters.setPolygonFilterLayerUpdater,
+
+ [ActionTypes.SET_SELECTED_FEATURE]: visStateUpdaters.setSelectedFeatureUpdater,
+
+ [ActionTypes.SET_EDITOR_MODE]: visStateUpdaters.setEditorModeUpdater,
+
+ [ActionTypes.TOGGLE_EDITOR_VISIBILITY]: visStateUpdaters.toggleEditorVisibility,
+
+ [ActionTypes.TOGGLE_FILTER_FEATURE]: visStateUpdaters.toggleFilterFeatureUpdater
};
// construct vis-state reducer
diff --git a/src/schemas/vis-state-schema.js b/src/schemas/vis-state-schema.js
index 238235489..50b712ac1 100644
--- a/src/schemas/vis-state-schema.js
+++ b/src/schemas/vis-state-schema.js
@@ -653,7 +653,10 @@ export const filterPropsV1 = {
name: null,
type: null
}
- })
+ }),
+
+ // polygon filter properties
+ layerId: null
};
export const propertiesV0 = {
diff --git a/src/styles/base.js b/src/styles/base.js
index f0742b0e1..52e1b2f3a 100644
--- a/src/styles/base.js
+++ b/src/styles/base.js
@@ -271,6 +271,10 @@ const timeDisplayPadding = '0 24px';
// Export map modal
const exportIntraSectionMargin = '8';
+// Action Panel
+export const actionPanelWidth = 110;
+export const actionPanelHeight = 32;
+
export const textTruncate = {
maxWidth: '100%',
overflow: 'hidden',
@@ -1059,6 +1063,10 @@ export const theme = {
// export map
exportIntraSectionMargin,
+ // Action Panel
+ actionPanelWidth,
+ actionPanelHeight,
+
// Breakpoints
breakPoints
};
diff --git a/src/utils/aggregate-utils.js b/src/utils/aggregate-utils.js
index 3f802a929..03ba50636 100644
--- a/src/utils/aggregate-utils.js
+++ b/src/utils/aggregate-utils.js
@@ -21,16 +21,16 @@
import {deviation, min, max, mean, median, sum, variance} from 'd3-array';
import {AGGREGATION_TYPES} from 'constants/default-settings';
-const getFrenquency = data => data.reduce((uniques, val) => {
- uniques[val] = (uniques[val] || 0) + 1;
- return uniques;
-}, {});
+export const getFrequency = data => data.reduce((uniques, val) => ({
+ ...uniques,
+ [val]: (uniques[val] || 0) + 1
+}), {});
-function getMode(data) {
- const occur = getFrenquency(data);
+export const getMode = data => {
+ const occur = getFrequency(data);
return Object.keys(occur).reduce((prev, key) =>
occur[prev] >= occur[key] ? prev : key, Object.keys(occur)[0]);
-}
+};
export function aggregate(data, technique) {
switch (technique) {
diff --git a/src/utils/color-utils.js b/src/utils/color-utils.js
index fc426f485..49d4e4299 100644
--- a/src/utils/color-utils.js
+++ b/src/utils/color-utils.js
@@ -88,3 +88,18 @@ export function reverseColorRange(reversed, colorRange) {
colors: colorRange.colors.slice().reverse()
};
}
+
+/**
+ * given a list of rgb arrays it will generate a linear gradient css rule
+ * @param direction
+ * @param colors
+ * @return {string}
+ */
+export function createLinearGradient(direction, colors) {
+ const step = parseFloat(100.00/colors.length).toFixed(2);
+ const bands = colors.map((rgb, index) => {
+ return `rgba(${rgb.join(',')}, 1) ${step * index}%, rgba(${rgb.join(',')}, 1) ${step * (index + 1)}%`
+ });
+
+ return `linear-gradient(to ${direction}, ${bands.join(',')})`;
+}
diff --git a/src/utils/data-scale-utils.js b/src/utils/data-scale-utils.js
index f4f9a0dd9..542a8de0c 100644
--- a/src/utils/data-scale-utils.js
+++ b/src/utils/data-scale-utils.js
@@ -54,7 +54,7 @@ export function getOrdinalDomain(data, valueAccessor) {
* @param {function} valueAccessor
* @returns {Array} domain
*/
-export function getLinearDomain(data, valueAccessor) {
+export function getLinearDomain(data, valueAccessor = null) {
const range =
typeof valueAccessor === 'function'
? extent(data, valueAccessor)
diff --git a/src/utils/filter-utils.js b/src/utils/filter-utils.js
index 996f7511d..9225ebd7c 100644
--- a/src/utils/filter-utils.js
+++ b/src/utils/filter-utils.js
@@ -18,13 +18,17 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-import moment from 'moment';
import {ascending, extent, histogram as d3Histogram, ticks} from 'd3-array';
import keyMirror from 'keymirror';
+import get from 'lodash.get';
+import booleanWithin from '@turf/boolean-within';
+import {point as turfPoint} from '@turf/helpers';
import {ALL_FIELD_TYPES} from 'constants/default-settings';
-import {maybeToDate, notNullorUndefined, unique} from './data-utils';
+import {maybeToDate, notNullorUndefined, unique, timeToUnixMilli} from './data-utils';
import * as ScaleUtils from './data-scale-utils';
import {generateHashId} from './utils';
+import {toArray} from 'utils/utils';
+import {LAYER_TYPES} from '../constants';
export const TimestampStepMap = [
{max: 1, step: 0.05},
@@ -50,7 +54,8 @@ export const FILTER_TYPES = keyMirror({
range: null,
select: null,
timeRange: null,
- multiSelect: null
+ multiSelect: null,
+ polygon: null
});
export const PLOT_TYPES = keyMirror({
@@ -60,7 +65,8 @@ export const PLOT_TYPES = keyMirror({
export const FILTER_UPDATER_PROPS = keyMirror({
dataId: null,
- name: null
+ name: null,
+ layerId: null
});
export const LIMITED_FILTER_EFFECT_PROPS = keyMirror({
@@ -84,7 +90,8 @@ export const FILTER_COMPONENTS = {
[FILTER_TYPES.select]: 'SingleSelectFilter',
[FILTER_TYPES.multiSelect]: 'MultiSelectFilter',
[FILTER_TYPES.timeRange]: 'TimeRangeFilter',
- [FILTER_TYPES.range]: 'RangeFilter'
+ [FILTER_TYPES.range]: 'RangeFilter',
+ [FILTER_TYPES.polygon]: 'PolygonFilter'
};
export const DEFAULT_FILTER_STRUCTURE = {
@@ -113,6 +120,8 @@ export const DEFAULT_FILTER_STRUCTURE = {
export const FILTER_ID_LENGTH = 4;
+export const LAYER_FILTERS = [FILTER_TYPES.polygon];
+
/**
* Generates a filter with a dataset id as dataId
* @param {[string]} dataId
@@ -134,33 +143,66 @@ export function getDefaultFilter(dataId) {
* @return {boolean} true if a filter is valid, false otherwise
*/
export function shouldApplyFilter(filter, datasetId) {
- const valid = Boolean(filter.dataId)
- // datasetId is contained in dataId
- && (
- // filter.dataId is an array or or matches exactly the datasetId
- (Array.isArray(filter.dataId) && filter.dataId.includes(datasetId))
- || filter.dataId === datasetId
- )
- // value must be defined
- && filter.value !== null;
-
- return valid;
+ const dataIds = toArray(filter.dataId);
+ return dataIds.includes(datasetId) && filter.value !== null;
}
/**
- * Validate saved filter config with new data,
- * calculate domain and fieldIdx based new fields and data
- *
- * @param {Object} dataset
- * @param {Object} filter - filter to be validate
- * @return {Object | null} - validated filter
+ * Validates and modifies polygon filter structure
+ * @param dataset
+ * @param filter
+ * @param layers
+ * @return {object}
*/
-export function validateFilterWithData(dataset, filter) {
+export function validatePolygonFilter(dataset, filter, layers) {
+ const failed = {dataset, filter: null};
+ const {value, layerId, type, dataId} = filter;
+
+ if (!layerId || !isValidFilterValue(type, value)) {
+ return failed;
+ }
+
+ const isValidDataset = dataId.includes(dataset.id);
+ if (!isValidDataset) {
+ return failed;
+ }
+
+ const layer = layers.find(l => layerId.includes(l.id));
+
+ if (!layer) {
+ return failed;
+ }
+
+ return {
+ filter: {
+ ...filter,
+ freeze: true,
+ fieldIdx: []
+ },
+ dataset
+ };
+}
+
+/**
+ * Custom filter validators
+ * @type {Function}
+ */
+const filterValidators = {
+ [FILTER_TYPES.polygon]: validatePolygonFilter
+};
+
+/**
+ * Default validate filter function
+ * @param dataset
+ * @param filter
+ * @return {*}
+ */
+export function validateFilter(dataset, filter) {
// match filter.dataId
const failed = {dataset, filter: null};
- const filterDataId = Array.isArray(filter.dataId) ? filter.dataId : [filter.dataId];
+ const filterDataId = toArray(filter.dataId);
const filterDatasetIndex = filterDataId.indexOf(dataset.id);
if (filterDatasetIndex < 0) {
@@ -192,9 +234,29 @@ export function validateFilterWithData(dataset, filter) {
return {
filter: validateFilterYAxis(updatedFilter, updatedDataset),
dataset: updatedDataset
- }
+ };
+}
+
+/**
+ * Validate saved filter config with new data,
+ * calculate domain and fieldIdx based new fields and data
+ *
+ * @param {Object} dataset
+ * @param {Object} filter - filter to be validate
+ * @return {Object | null} - validated filter
+ */
+export function validateFilterWithData(dataset, filter, layers) {
+ return filterValidators.hasOwnProperty(filter.type) ?
+ filterValidators[filter.type](dataset, filter, layers)
+ : validateFilter(dataset, filter);
}
+/**
+ * Validate YAxis
+ * @param filter
+ * @param dataset
+ * @return {*}
+ */
function validateFilterYAxis(filter, dataset) {
// TODO: validate yAxis against other datasets
@@ -217,6 +279,7 @@ function validateFilterYAxis(filter, dataset) {
return filter;
}
+
/**
* Get default filter prop based on field type
*
@@ -304,12 +367,77 @@ export function getFieldDomain(data, field) {
}
}
+export const getPolygonFilterFunctor = (layer, filter) => {
+ const getPosition = layer.getPositionAccessor();
+
+ switch (layer.type) {
+ case LAYER_TYPES.point:
+ case LAYER_TYPES.icon:
+ return data => {
+ const pos = getPosition({data});
+ return pos.every(Number.isFinite) && isInPolygon(pos, filter.value);
+ };
+ case LAYER_TYPES.arc:
+ case LAYER_TYPES.line:
+ return data => {
+ const pos = getPosition({data});
+ return pos.every(Number.isFinite) && [
+ [pos[0], pos[1]],
+ [pos[3], pos[4]]
+ ].every(point => isInPolygon(point, filter.value));
+ };
+ default:
+ return () => true
+ }
+};
+
+/**
+ * @param field dataset Field
+ * @param dataId Dataset id
+ * @param filter Filter object
+ * @param layers list of layers to filter upon
+ * @return {*}
+ */
+export function getFilterFunction(field, dataId, filter, layers) {
+ // field could be null
+ const valueAccessor = data => field ? data[field.tableFieldIndex - 1] : null;
+
+ switch (filter.type) {
+ case FILTER_TYPES.range:
+ return data => isInRange(valueAccessor(data), filter.value);
+ case FILTER_TYPES.multiSelect:
+ return data => filter.value.includes(valueAccessor(data));
+ case FILTER_TYPES.select:
+ return data => valueAccessor(data) === filter.value;
+ case FILTER_TYPES.timeRange:
+ const mappedValue = get(field, ['filterProps', 'mappedValue']);
+ const accessor = Array.isArray(mappedValue) ?
+ (data, index) => mappedValue[index]
+ : data => timeToUnixMilli(valueAccessor(data), field.format);
+ return (data, index) => isInRange(accessor(data, index), filter.value);
+ case FILTER_TYPES.polygon:
+ if (!layers || !layers.length) {
+ return () => true;
+ }
+
+ const layerFilterFunctions = filter.layerId
+ .map(id => layers.find(l => l.id === id))
+ .filter(l => l && l.config.dataId === dataId)
+ .map(layer => getPolygonFilterFunctor(layer, filter));
+
+ return data => layerFilterFunctions.every(filterFunc => filterFunc(data));
+ default:
+ return () => true;
+ }
+}
+
/**
* Filter data based on an array of filters
* @param {Object} dataset to perform the filter on
* @param {Object[]} filters list of filters to use against dataset
+ * @return {Object} {data: filtered, filteredIndex, filteredIndexForDomain}
*/
-export function filterData(dataset, filters) {
+export function filterData(dataset, filters, layers) {
const {allData: data, fields} = dataset;
if (!filters.length) {
@@ -320,16 +448,15 @@ export function filterData(dataset, filters) {
const appliedFilters = filters.filter(d => shouldApplyFilter(d, dataset.id));
// Map filter against current dataset field
- const filtersToFields = filters.reduce((acc, filter) => {
+ const filterFunctors = appliedFilters.reduce((acc, filter) => {
const fieldIndex = getDatasetFieldIndexForFilter(dataset, filter);
+ const field = fieldIndex !== -1 ? fields[fieldIndex] : null;
return {
...acc,
- ...(fieldIndex !== -1 ? {[filter.id]: fields[fieldIndex]} : {})
+ [filter.id]: getFilterFunction(field, dataset.id, filter, layers)
}
- }, {
- // [filterId]: field
- });
+ }, {});
const [dynamicDomainFilters, fixedDomainFilters] = appliedFilters.reduce(
(accu, f) => {
@@ -341,19 +468,12 @@ export function filterData(dataset, filters) {
const {filtered, filteredIndex, filteredIndexForDomain} = data.reduce(
(accu, d, i) => {
- // generate 2 sets of
- // filter data used to calculate layer Domain
- const matchForDomain = dynamicDomainFilters.every(filter => {
- return isDataMatchFilter(d, filter, i, filtersToFields[filter.id]);
- });
+ const matchForDomain = dynamicDomainFilters.every(filter => filterFunctors[filter.id](d, i));
if (matchForDomain) {
accu.filteredIndexForDomain.push(i);
- // filter data for render
- const matchForRender = fixedDomainFilters.every(filter =>
- isDataMatchFilter(d, filter, i, filtersToFields[filter.id])
- );
+ const matchForRender = fixedDomainFilters.every(filter => filterFunctors[filter.id](d, i));
if (matchForRender) {
accu.filtered.push(d);
@@ -369,44 +489,6 @@ export function filterData(dataset, filters) {
return {data: filtered, filteredIndex, filteredIndexForDomain};
}
-/**
- * Check if value is in range of filter
- *
- * @param {Object[]} data
- * @param {Object} filter
- * @param {number} i
- * @param {field} field containing values to test data against. This is used only when
- * testing timestamp filters
- * @returns {Boolean} - whether value falls in the range of the filter
- */
-export function isDataMatchFilter(data, filter, i, field) {
- const val = data[field.tableFieldIndex - 1];
- if (!filter.type) {
- return true;
- }
-
- switch (filter.type) {
- case FILTER_TYPES.range:
- return isInRange(val, filter.value);
-
- case FILTER_TYPES.timeRange:
- const timeVal = field && field.filterProps && Array.isArray(field.filterProps.mappedValue)
- ? field.filterProps.mappedValue[i]
- : moment.utc(val).valueOf();
-
- return isInRange(timeVal, filter.value);
-
- case FILTER_TYPES.multiSelect:
- return filter.value.includes(val);
-
- case FILTER_TYPES.select:
- return filter.value === val;
-
- default:
- return true;
- }
-}
-
/**
* Call by parsing filters from URL
* Check if value of filter within filter domain, if not adjust it to match
@@ -570,6 +652,17 @@ export function isInRange(val, domain) {
return val >= domain[0] && val <= domain[1];
}
+/**
+ * Determines whether a point is within the provided polygon
+ *
+ * @param point as input search [lat, lng]
+ * @param polygon Points must be within these (Multi)Polygon(s)
+ * @return {boolean}
+ */
+export function isInPolygon(point, polygon) {
+ return booleanWithin(turfPoint(point), polygon);
+}
+
export function getTimeWidgetTitleFormatter(domain) {
if (!Array.isArray(domain)) {
return null;
@@ -579,8 +672,8 @@ export function getTimeWidgetTitleFormatter(domain) {
return diff > durationYear
? 'MM/DD/YY'
: diff > durationDay
- ? 'MM/DD/YY hh:mma'
- : 'MM/DD/YY hh:mm:ssa';
+ ? 'MM/DD/YY hh:mma'
+ : 'MM/DD/YY hh:mm:ssa';
}
export function getTimeWidgetHintFormatter(domain) {
@@ -606,7 +699,8 @@ export function getTimeWidgetHintFormatter(domain) {
* @param {*} value - filter value
* @returns {boolean} whether filter is value
*/
-export function isValidFilterValue({type, value}) {
+/* eslint-disable complexity */
+export function isValidFilterValue(type, value) {
if (!type) {
return false;
}
@@ -624,6 +718,10 @@ export function isValidFilterValue({type, value}) {
case FILTER_TYPES.input:
return Boolean(value.length);
+ case FILTER_TYPES.polygon:
+ const coordinates = get(value, ['geometry', 'coordinates']);
+ return Boolean(value && value.id && coordinates);
+
default:
return true;
}
@@ -672,10 +770,10 @@ export function getDefaultFilterPlotType(filter) {
* @param filters
* @return {Object} filtered dataset
*/
-export function applyFilterToDataset(dataset, filters) {
+export function applyFilterToDataset(dataset, filters, layers) {
return {
...dataset,
- ...filterData(dataset, filters)
+ ...filterData(dataset, filters, layers)
};
}
@@ -686,19 +784,24 @@ export function applyFilterToDataset(dataset, filters) {
* @param filters all filters to be applied to datasets
* @return {{[datasetId: string]: Object}} datasets - new updated datasets
*/
-export function applyFiltersToDatasets(datasetIds, datasets, filters) {
+export function applyFiltersToDatasets(datasetIds, datasets, filters, layers) {
const dataIds = Array.isArray(datasetIds) ? datasetIds : [datasetIds];
- return dataIds.reduce((acc, dataIdentifier) => ({
- ...acc,
- [dataIdentifier]: applyFilterToDataset(datasets[dataIdentifier], filters)
- }), datasets);
+ return dataIds.reduce((acc, dataIdentifier) => {
+ const layersToFilter = (layers || []).filter(l => l.config.dataId === dataIdentifier);
+ return {
+ ...acc,
+ [dataIdentifier]: applyFilterToDataset(datasets[dataIdentifier], filters, layersToFilter)
+ }
+ }, datasets);
}
/**
* Applies a new field name value to fielter and update both filter and dataset
* @param filter to be applied the new field name on
- * @param datasets
+ * @param dataset
* @param fieldName
+ * @param filterDatasetIndex
+ * @param options
* @return {object} {filter, datasets}
*/
export function applyFilterFieldName(filter, dataset, fieldName, filterDatasetIndex = 0, {mergeDomain = false} = {}) {
@@ -734,7 +837,7 @@ export function applyFilterFieldName(filter, dataset, fieldName, filterDatasetIn
filterProps
};
- const newFields = fields.map((d, i) => (i === fieldIndex ? fieldWithFilterProps : d));
+ const newFields = Object.assign([].concat(fields), {[fieldIndex]: fieldWithFilterProps});
return {
filter: filterWithProps,
@@ -815,10 +918,9 @@ export function mergeFilterDomainStep(filter, filterProps) {
*/
export function getDatasetIndexForFilter(dataset, filter) {
const {dataId} = filter;
+ const dataIds = toArray(dataId);
// dataId is an array
- return Array.isArray(dataId) ? dataId.findIndex(id => id === dataset.id)
- // if not an array check if the current filter.dataid is equal to dataset.id
- : dataId === dataset.id ? 0 : -1;
+ return dataIds.findIndex(id => id === dataset.id);
}
/**
@@ -839,3 +941,43 @@ export function getDatasetFieldIndexForFilter(dataset, filter) {
return notNullorUndefined(fieldIndex) ? fieldIndex : -1;
}
+export const featureToFilterValue = (feature, filterId, properties = {}) => ({
+ ...feature,
+ id: feature.id,
+ properties: {
+ ...feature.properties,
+ ...properties,
+ filterId
+ }
+});
+
+export const getFilterIdInFeature = f => get(f, ['properties', 'filterId']);
+
+/**
+ * Generates polygon filter
+ * @param layers array of layers
+ * @param feature polygon to use
+ * @return {object} filter
+ */
+export function generatePolygonFilter(layers, feature) {
+ const {dataId, layerId, name} = layers.reduce((acc, layer) => ({
+ ...acc,
+ dataId: [...acc.dataId, layer.config.dataId],
+ layerId: [...acc.layerId, layer.id],
+ name: [...acc.name, layer.config.label]
+ }), {
+ dataId: [],
+ layerId: [],
+ name: []
+ });
+
+ const filter = getDefaultFilter(dataId);
+ return {
+ ...filter,
+ fixedDomain: true,
+ type: FILTER_TYPES.polygon,
+ name,
+ layerId,
+ value: featureToFilterValue(feature, filter.id, {isVisible: true})
+ };
+}
diff --git a/src/utils/map-style-utils/mapbox-utils.js b/src/utils/map-style-utils/mapbox-utils.js
index 917ba18c6..db442ffcf 100644
--- a/src/utils/map-style-utils/mapbox-utils.js
+++ b/src/utils/map-style-utils/mapbox-utils.js
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-export const transformRequest = (url, resourceType) => {
+export const transformRequest = url => {
const isMapboxRequest = url.slice(8, 22) === 'api.mapbox.com' ||
url.slice(10, 26) === 'tiles.mapbox.com';
diff --git a/src/utils/utils.js b/src/utils/utils.js
index 11d262e30..0c10f8435 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -70,6 +70,31 @@ export function camelToTitle(str){
return capitalizeFirstLetter(breakWord);
}
+/**
+ * Returns the img url for a given map export option
+ * @param mode export option
+ * @return {string} url
+ */
export function getHTMLMapModeTileUrl(mode) {
return `https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/documentation/map-${mode.toLowerCase()}-mode.png`
}
+
+/**
+ * Converts non-arrays to arrays. Leaves arrays alone. Converts
+ * undefined values to empty arrays ([] instead of [undefined]).
+ * Otherwise, just returns [item] for non-array items.
+ *
+ * @param {*} item
+ * @returns {array} boom! much array. very indexed. so useful.
+ */
+export function toArray(item) {
+ if (Array.isArray(item)) {
+ return item;
+ }
+
+ if (typeof item === 'undefined' || item === null) {
+ return [];
+ }
+
+ return [item];
+}
diff --git a/test/browser/components/editor/feature-action-panel-test.js b/test/browser/components/editor/feature-action-panel-test.js
new file mode 100644
index 000000000..359b3be15
--- /dev/null
+++ b/test/browser/components/editor/feature-action-panel-test.js
@@ -0,0 +1,70 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React from 'react';
+import test from 'tape';
+import {shallow} from 'enzyme';
+import sinon from 'sinon';
+import {FeatureActionPanel} from 'components/editor/feature-action-panel';
+
+test('FeatureActionPanel -> display layers', t => {
+ const layers = [
+ {
+ config: {
+ label: 'layer 1',
+ dataId: 'puppy'
+ }
+ },
+ {
+ config: {
+ label: 'layer 2',
+ dataId: 'puppy'
+ }
+ }
+ ];
+
+ const datasets = {
+ puppy: {
+ color: [123,123,123]
+ }
+ };
+
+ const onToggleLayer = sinon.spy();
+ const onDeleteFeature = sinon.spy();
+
+ const $ = shallow(
+ <FeatureActionPanel
+ className="action-item-test"
+ layers={layers}
+ datasets={datasets}
+ onToggleLayer={onToggleLayer}
+ onDeleteFeature={onDeleteFeature}
+ />
+ );
+
+ t.equal(
+ $.find('.layer-panel-item').length,
+ 2,
+ 'We should display only 2 action panel items'
+ );
+
+ t.end();
+
+});
diff --git a/test/browser/components/editor/feature-styles-test.js b/test/browser/components/editor/feature-styles-test.js
new file mode 100644
index 000000000..cbd699815
--- /dev/null
+++ b/test/browser/components/editor/feature-styles-test.js
@@ -0,0 +1,107 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import test from 'tape';
+import {RenderStates, RenderTypes} from 'react-map-gl-draw';
+import {getStyle} from 'components/editor/feature-styles';
+
+test('FeatureStyles - getStyles point', t => {
+ const feature = {
+ properties: {
+ isVisible: true,
+ renderType: RenderTypes.POINT
+ }
+ };
+
+ t.deepEqual(
+ getStyle({feature, state: RenderStates.INACTIVE}),
+ {
+ stroke: '#26B5F2',
+ strokeWidth: 2,
+ fill: '#333333',
+ fillOpacity: 0.1,
+ strokeDasharray: '4,2',
+ r: 5
+ },
+ 'Should display point feature correctly'
+ );
+
+ t.deepEqual(
+ getStyle({feature: {
+ ...feature,
+ properties: {
+ ...feature.properties,
+ isVisible: false
+ }
+ }, state: RenderStates.INACTIVE}),
+ {
+ stroke: '#26B5F2',
+ strokeWidth: 0,
+ fill: '#333333',
+ fillOpacity: 0.1,
+ strokeDasharray: '4,2',
+ r: 5
+ },
+ 'Should display point feature correctly with strokeWidth = 0'
+ );
+ t.end();
+});
+
+test('FeatureStyles - getStyles line-string', t => {
+
+ const feature = {
+ properties: {
+ isVisible: true,
+ renderType: RenderTypes.LINE_STRING
+ }
+ };
+
+ t.deepEqual(
+ getStyle({feature, state: RenderStates.INACTIVE}),
+ {
+ stroke: '#26B5F2',
+ strokeWidth: 2,
+ fill: 'none',
+ fillOpacity: 0.1,
+ strokeDasharray: '4,2'
+ },
+ 'Should display point feature correctly'
+ );
+
+ t.deepEqual(
+ getStyle({feature: {
+ ...feature,
+ properties: {
+ ...feature.properties,
+ isVisible: false
+ }
+ }, state: RenderStates.INACTIVE}),
+ {
+ stroke: '#26B5F2',
+ strokeWidth: 0,
+ fill: 'none',
+ fillOpacity: 0.1,
+ strokeDasharray: '4,2'
+ },
+ 'Should display point feature correctly with strokeWidth = 0'
+ );
+ t.end();
+});
+
diff --git a/test/browser/components/editor/index.js b/test/browser/components/editor/index.js
new file mode 100644
index 000000000..ef4ecc669
--- /dev/null
+++ b/test/browser/components/editor/index.js
@@ -0,0 +1,22 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import './feature-action-panel-test';
+import './feature-styles-test';
diff --git a/test/browser/components/index.js b/test/browser/components/index.js
index ecdd76e89..1ea87c15b 100644
--- a/test/browser/components/index.js
+++ b/test/browser/components/index.js
@@ -31,4 +31,8 @@ import './modals';
import './notifications';
import './map';
import './side-panel';
+
import './common';
+import './editor';
+import './map-container-test';
+
diff --git a/test/browser/components/map-container-test.js b/test/browser/components/map-container-test.js
new file mode 100644
index 000000000..5fcb33b6e
--- /dev/null
+++ b/test/browser/components/map-container-test.js
@@ -0,0 +1,128 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React from 'react';
+import {mount as render} from 'enzyme';
+import sinon from 'sinon';
+import test from 'tape';
+import MapContainerFactory from 'components/map-container';
+
+test('MapContainerFactory - display all options', t => {
+ const MapPopover = () => <div className="map-popover" />;
+ const MapControl = () => <div className="map-control" />;
+ const MapContainer = MapContainerFactory(MapPopover, MapControl);
+
+ const updateMap = sinon.spy();
+ const onMapStyleLoaded = sinon.spy();
+ const onLayerClick = sinon.spy();
+
+ const $ = render(
+ <MapContainer
+ mapState={{}}
+ mapStyle={{
+ bottomMapStyle: {layers: [], name: 'foo'},
+ visibleLayerGroups: {}
+ }}
+ mapStateActions={{
+ updateMap
+ }}
+ mapLayers={{}}
+ layers={[]}
+ filters={[]}
+ datasets={{}}
+ uiState={{
+ mapControls: {
+ splitMap: {show: true},
+ visibleLayers: {show: true},
+ toggle3d: {show: true},
+ mapLegend: {show: true},
+ mapDraw: {show: true}
+ },
+ editor: {}
+ }}
+ uiStateActions={{}}
+ visStateActions={{
+ onLayerClick
+ }}
+ interactionConfig={{
+ tooltip: {
+ enabled: true
+ },
+ coordinate: {
+ enabled: true
+ }
+ }}
+ layerBlending=""
+ layerOrder={[]}
+ layerData={[]}
+ pinned={{
+ coordinate: [0, 0]
+ }}
+ mapboxApiAccessToken=""
+ editor={{
+ features:[]
+ }}
+ onMapStyleLoaded={onMapStyleLoaded}
+ mousePos={{
+ mousePosition: [0, 0],
+ coordinate: [0, 0],
+ pinned: null
+ }}
+ />
+ );
+
+ t.equal(
+ $.find('MapControl').length,
+ 1,
+ 'Should display 1 MapControl'
+ );
+
+ t.equal(
+ $.find('InteractiveMap').length,
+ 1,
+ 'Should display 1 InteractiveMap'
+ );
+
+ // Editor
+ t.equal(
+ $.find('StaticMap').length,
+ 1,
+ 'Should display 1 DeckGl'
+ );
+
+ const instance = $.instance();
+
+ instance._onMapboxStyleUpdate();
+
+ t.equal(
+ onMapStyleLoaded.called,
+ true,
+ 'Should be calling onMapStyleLoaded'
+ );
+
+ instance._onCloseMapPopover();
+ t.equal(
+ onLayerClick.called,
+ true,
+ 'Should be calling onLayerClick'
+ );
+
+ t.end();
+});
diff --git a/test/browser/components/map/index.js b/test/browser/components/map/index.js
index 8ed756190..95903416b 100644
--- a/test/browser/components/map/index.js
+++ b/test/browser/components/map/index.js
@@ -19,3 +19,4 @@
// THE SOFTWARE.
import './map-legend-test';
+import './map-control-test';
diff --git a/test/browser/components/map/map-control-test.js b/test/browser/components/map/map-control-test.js
new file mode 100644
index 000000000..69d0556cf
--- /dev/null
+++ b/test/browser/components/map/map-control-test.js
@@ -0,0 +1,63 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React from 'react';
+import {shallow} from 'enzyme';
+import sinon from 'sinon';
+import test from 'tape';
+import MapControlFactory from 'components/map/map-control';
+
+test('MapControlFactory - display all options', t => {
+
+ const MapControl = MapControlFactory();
+ const onToggleSplitMap = sinon.spy();
+ const onTogglePerspective = sinon.spy();
+ const onToggleMapControl = sinon.spy();
+ const onSetEditorMode = sinon.spy();
+
+ const $ = shallow(
+ <MapControl
+ mapControls={{
+ splitMap: {show: true},
+ visibleLayers: {show: true},
+ toggle3d: {show: true},
+ mapLegend: {show: true},
+ mapDraw: {show: true}
+ }}
+ datasets={{}}
+ layers={[]}
+ layersToRender={{}}
+ dragRotate={true}
+ mapIndex={0}
+ onToggleSplitMap={onToggleSplitMap}
+ onTogglePerspective={onTogglePerspective}
+ onToggleMapControl={onToggleMapControl}
+ onSetEditorMode={onSetEditorMode}
+ />
+ );
+
+ t.equal(
+ $.find('ActionPanel').length,
+ 4,
+ 'Should show 4 action panels'
+ );
+
+ t.end();
+});
diff --git a/test/browser/components/modals/data-table-modal-test.js b/test/browser/components/modals/data-table-modal-test.js
index 509261f7a..edc513d09 100644
--- a/test/browser/components/modals/data-table-modal-test.js
+++ b/test/browser/components/modals/data-table-modal-test.js
@@ -30,17 +30,17 @@ import DataGridFactory, {
FieldHeaderFactory,
CellFactory
} from 'components/common/datagrid';
-
-const FieldHeader = FieldHeaderFactory();
-const Cell = CellFactory();
-const DataGrid = DataGridFactory(FieldHeader, Cell);
-const DataTableModal = DataTableModalFactory(DataGrid);
import {testFields, testAllData} from 'test/fixtures/test-csv-data';
import {
geoStyleFields,
geoStyleRows
} from 'test/fixtures/geojson';
+const FieldHeader = FieldHeaderFactory();
+const Cell = CellFactory();
+const DataGrid = DataGridFactory(FieldHeader, Cell);
+const DataTableModal = DataTableModalFactory(DataGrid);
+
// This makes sure react-virtualized renders the full grid
const WIDTH = 2100;
const HEIGHT = 800;
@@ -69,6 +69,8 @@ test('Components -> DataTableModal.render: csv 1', t => {
/>
);
+ // console.log(wrapper.debug());
+
t.equal(
wrapper.find(DataTableModal).length,
1,
@@ -127,9 +129,8 @@ test('Components -> DataTableModal.render: csv 1', t => {
Object.entries(expectedRows).forEach(keyAndRow => {
const [index, expectedRow] = keyAndRow;
-
const cells = wrapper.find(`.row-${index}`);
- t.equal(cells.length, 11, 'should render 11 cells');
+ t.equal(cells.length, 11, `should render 11 cells for index ${index}`);
for (let c = 0; c < cells.length; c++) {
const cellText = cells
diff --git a/test/browser/components/side-panel/index.js b/test/browser/components/side-panel/index.js
index a36489dc7..b8e278c73 100644
--- a/test/browser/components/side-panel/index.js
+++ b/test/browser/components/side-panel/index.js
@@ -19,3 +19,4 @@
// THE SOFTWARE.
import './color-selector-test';
+import './save-export-dropdown-test';
diff --git a/test/browser/components/side-panel/save-export-dropdown-test.js b/test/browser/components/side-panel/save-export-dropdown-test.js
new file mode 100644
index 000000000..e5aeae3b6
--- /dev/null
+++ b/test/browser/components/side-panel/save-export-dropdown-test.js
@@ -0,0 +1,120 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import React from 'react';
+import test from 'tape';
+import {shallow} from 'enzyme';
+import sinon from 'sinon';
+import {
+ ExportImageFactory,
+ ExportDataFactory,
+ ExportMapFactory,
+ SaveMapFactory,
+ SaveExportDropdownFactory
+} from 'components/side-panel/panel-header';
+
+test('SaveExportDropdown', t => {
+
+ const ExportImage = ExportImageFactory();
+ const ExportData = ExportDataFactory();
+ const ExportMap = ExportMapFactory();
+ const SaveMap = SaveMapFactory();
+
+ const SaveExportDropdown = SaveExportDropdownFactory(
+ ExportImage,
+ ExportData,
+ ExportMap,
+ SaveMap
+ );
+
+ const onExportImage = sinon.spy();
+ const onExportData = sinon.spy();
+ const onExportConfig = sinon.spy();
+ const onExportMap = sinon.spy();
+ const onSaveMap = sinon.spy();
+ const onClose = sinon.spy();
+
+ const $ = shallow(
+ <SaveExportDropdown
+ onExportImage={onExportImage}
+ onExportData={onExportData}
+ onExportConfig={onExportConfig}
+ onExportMap={onExportMap}
+ onSaveMap={onSaveMap}
+ show={true}
+ onClose={onClose}
+ />
+ );
+
+ t.equal(
+ $.find('ExportImage').length,
+ 1,
+ 'We should display 1 ExportImage'
+ );
+
+ t.equal(
+ $.find('ExportData').length,
+ 1,
+ 'We should display 1 ExportData'
+ );
+
+ t.equal(
+ $.find('ExportMap').length,
+ 1,
+ 'We should display 1 ExportMap'
+ );
+
+ t.equal(
+ $.find('SaveMap').length,
+ 1,
+ 'We should display 1 SaveMap'
+ );
+
+ $.find('ExportImage').simulate('click');
+ t.equal(
+ onExportImage.called,
+ true,
+ 'Should have called export image callback'
+ );
+
+ $.find('ExportData').simulate('click');
+ t.equal(
+ onExportData.called,
+ true,
+ 'Should have called export data callback'
+ );
+
+ $.find('ExportMap').simulate('click');
+ t.equal(
+ onExportMap.called,
+ true,
+ 'Should have called export map callback'
+ );
+
+ $.find('SaveMap').simulate('click');
+ t.equal(
+ onSaveMap.called,
+ true,
+ 'Should have called save map callback'
+ );
+
+ t.end();
+});
+
diff --git a/test/fixtures/polygon-filter-map.js b/test/fixtures/polygon-filter-map.js
new file mode 100644
index 000000000..34cbb707a
--- /dev/null
+++ b/test/fixtures/polygon-filter-map.js
@@ -0,0 +1,460 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+export const polygonFilterMap = {
+ datasets: [
+ {
+ version: 'v1',
+ data: {
+ id: '9bluyz5s2',
+ label: 'kepler-gl_new dataset (3).csv',
+ color: [
+ 143,
+ 47,
+ 191
+ ],
+ allData: [
+ [
+ '1967/08/01 10:33:50.47',
+ 36.08,
+ -121.07083,
+ 80.339,
+ 2.5,
+ 'Mx',
+ 10,
+ 292,
+ 42,
+ 0.25,
+ 'NCSN',
+ 1000872
+ ],
+ [
+ '1967/08/02 02:49:12.55',
+ 35.63433,
+ -120.75716,
+ 3.98,
+ 2.6,
+ 'Mx',
+ 9,
+ 322,
+ 108,
+ 0.24,
+ 'NCSN',
+ 1000887
+ ],
+ [
+ '1967/08/03 05:55:26.73',
+ 36.37967,
+ -121.0085,
+ 39.609,
+ 2.7,
+ 'Mx',
+ 10,
+ 298,
+ 21,
+ 0.41,
+ 'NCSN',
+ 1000912
+ ],
+ [
+ '1967/08/03 06:57:01.25',
+ 36.3955,
+ -121.01667,
+ 40.159,
+ 2.7,
+ 'Mx',
+ 10,
+ 293,
+ 19,
+ 0.46,
+ 'NCSN',
+ 1000916
+ ],
+ [
+ '1967/08/03 20:21:26.52',
+ 36.5435,
+ -121.17216,
+ 5.945,
+ 2.6,
+ 'Mx',
+ 10,
+ 132,
+ 6,
+ 0.07,
+ 'NCSN',
+ 1000926
+ ],
+ [
+ '1967/08/09 04:53:59.73',
+ 35.4015,
+ -120.58783,
+ 4.06,
+ 2.6,
+ 'Mx',
+ 7,
+ 331,
+ 131,
+ 0.26,
+ 'NCSN',
+ 1000979
+ ],
+ [
+ '1967/08/09 07:27:32.82',
+ 36.15567,
+ -121.09367,
+ 68.79,
+ 2.7,
+ 'Mx',
+ 10,
+ 284,
+ 33,
+ 0.39,
+ 'NCSN',
+ 1000981
+ ],
+ [
+ '1967/08/13 20:29:14.27',
+ 35.4195,
+ -121.109,
+ 4.05,
+ 2.7,
+ 'Mx',
+ 9,
+ 325,
+ 124,
+ 0.28,
+ 'NCSN',
+ 1001030
+ ],
+ [
+ '1967/08/15 16:53:24.26',
+ 35.48417,
+ -121.01167,
+ 4.585,
+ 2.9,
+ 'Mx',
+ 8,
+ 322,
+ 107,
+ 0.77,
+ 'NCSN',
+ 1001047
+ ],
+ [
+ '1967/08/22 08:04:34.06',
+ 37.65333,
+ -122.4295,
+ 39.675,
+ 2.5,
+ 'Mx',
+ 25,
+ 329,
+ 30,
+ 0.24,
+ 'NCSN',
+ 1001119
+ ]
+ ],
+ fields: [
+ {
+ name: 'DateTime',
+ type: 'timestamp',
+ format: 'YYYY/M/D HH:mm:ss.SSSS',
+ analyzerType: 'DATETIME'
+ },
+ {
+ name: 'Latitude',
+ type: 'real',
+ format: '',
+ analyzerType: 'FLOAT'
+ },
+ {
+ name: 'Longitude',
+ type: 'real',
+ format: '',
+ analyzerType: 'FLOAT'
+ },
+ {
+ name: 'Depth',
+ type: 'real',
+ format: '',
+ analyzerType: 'FLOAT'
+ },
+ {
+ name: 'Magnitude',
+ type: 'real',
+ format: '',
+ analyzerType: 'FLOAT'
+ },
+ {
+ name: 'MagType',
+ type: 'string',
+ format: '',
+ analyzerType: 'STRING'
+ },
+ {
+ name: 'NbStations',
+ type: 'integer',
+ format: '',
+ analyzerType: 'INT'
+ },
+ {
+ name: 'Gap',
+ type: 'integer',
+ format: '',
+ analyzerType: 'INT'
+ },
+ {
+ name: 'Distance',
+ type: 'integer',
+ format: '',
+ analyzerType: 'INT'
+ },
+ {
+ name: 'RMS',
+ type: 'real',
+ format: '',
+ analyzerType: 'FLOAT'
+ },
+ {
+ name: 'Source',
+ type: 'string',
+ format: '',
+ analyzerType: 'STRING'
+ },
+ {
+ name: 'EventID',
+ type: 'integer',
+ format: '',
+ analyzerType: 'INT'
+ }
+ ]
+ }
+ }
+ ],
+ config: {
+ version: 'v1',
+ config: {
+ visState: {
+ filters: [
+ {
+ dataId: [
+ '9bluyz5s2'
+ ],
+ id: '1545pmr0s',
+ name: [
+ 'Point'
+ ],
+ type: 'polygon',
+ value: {
+ type: 'Feature',
+ geometry: {
+ type: 'Polygon',
+ coordinates: [
+ [
+ [
+ -121.20301917819414,
+ 36.19054006644038
+ ],
+ [
+ -121.20301917819414,
+ 36.05580399351024
+ ],
+ [
+ -120.91706956830599,
+ 36.05580399351024
+ ],
+ [
+ -120.91706956830599,
+ 36.19054006644038
+ ],
+ [
+ -121.20301917819414,
+ 36.19054006644038
+ ]
+ ]
+ ]
+ },
+ properties: {
+ renderType: 'Rectangle',
+ isClosed: true,
+ bbox: {
+ xmin: -121.20518546311551,
+ xmax: null,
+ ymin: 36.19054006644038,
+ ymax: null
+ }
+ },
+ id: '3f29ec21-4c67-4741-9504-1d6f0eb831c4'
+ },
+ enlarged: false,
+ plotType: 'histogram',
+ yAxis: null,
+ fixedDomain: true,
+ layerId: [
+ 'i1w1f0m'
+ ]
+ }
+ ],
+ layers: [
+ {
+ id: 'i1w1f0m',
+ type: 'point',
+ config: {
+ dataId: '9bluyz5s2',
+ label: 'Point',
+ color: [
+ 183,
+ 136,
+ 94
+ ],
+ columns: {
+ lat: 'Latitude',
+ lng: 'Longitude',
+ altitude: null
+ },
+ isVisible: true,
+ visConfig: {
+ radius: 10,
+ fixedRadius: false,
+ opacity: 0.8,
+ outline: false,
+ thickness: 2,
+ strokeColor: null,
+ colorRange: {
+ name: 'Global Warming',
+ type: 'sequential',
+ category: 'Uber',
+ colors: [
+ '#5A1846',
+ '#900C3F',
+ '#C70039',
+ '#E3611C',
+ '#F1920E',
+ '#FFC300'
+ ]
+ },
+ strokeColorRange: {
+ name: 'Global Warming',
+ type: 'sequential',
+ category: 'Uber',
+ colors: [
+ '#5A1846',
+ '#900C3F',
+ '#C70039',
+ '#E3611C',
+ '#F1920E',
+ '#FFC300'
+ ]
+ },
+ radiusRange: [
+ 0,
+ 50
+ ],
+ filled: true
+ },
+ textLabel: [
+ {
+ field: null,
+ color: [
+ 255,
+ 255,
+ 255
+ ],
+ size: 18,
+ offset: [
+ 0,
+ 0
+ ],
+ anchor: 'start',
+ alignment: 'center'
+ }
+ ]
+ },
+ visualChannels: {
+ colorField: null,
+ colorScale: 'quantile',
+ strokeColorField: null,
+ strokeColorScale: 'quantile',
+ sizeField: null,
+ sizeScale: 'linear'
+ }
+ }
+ ],
+ interactionConfig: {
+ tooltip: {
+ fieldsToShow: {
+ '9bluyz5s2': [
+ 'DateTime',
+ 'Latitude',
+ 'Longitude',
+ 'Depth',
+ 'Magnitude'
+ ]
+ },
+ enabled: true
+ },
+ brush: {
+ size: 0.5,
+ enabled: false
+ }
+ },
+ layerBlending: 'normal',
+ splitMaps: [],
+ animationConfig: {
+ currentTime: null,
+ speed: 1
+ }
+ },
+ mapState: {
+ bearing: 0,
+ dragRotate: false,
+ latitude: 35.89276276972923,
+ longitude: -121.07954093755023,
+ pitch: 0,
+ zoom: 8.342414373255385,
+ isSplit: false
+ },
+ mapStyle: {
+ styleType: 'dark',
+ topLayerGroups: {},
+ visibleLayerGroups: {
+ label: true,
+ road: true,
+ border: false,
+ building: true,
+ water: true,
+ land: true,
+ '3d building': false
+ },
+ threeDBuildingColor: [
+ 9.665468314072013,
+ 17.18305478057247,
+ 31.1442867897876
+ ],
+ mapStyles: {}
+ }
+ }
+ },
+ info: {
+ app: 'kepler.gl',
+ created_at: 'Thu Dec 26 2019 16:00:54 GMT+0100 (Central European Standard Time)'
+ }
+};
diff --git a/test/fixtures/polygon.js b/test/fixtures/polygon.js
new file mode 100644
index 000000000..32ce8a7d4
--- /dev/null
+++ b/test/fixtures/polygon.js
@@ -0,0 +1,268 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+export const mockPolygonFeature = {
+ type: 'Feature',
+ geometry: {
+ type: 'Polygon',
+ coordinates: [
+ [
+ [
+ 12.0,
+ 30.0
+ ],
+ [
+ 12.0,
+ 36.0
+ ],
+ [
+ 12.5,
+ 36.0
+ ],
+ [
+ 12.5,
+ 30.0
+ ],
+ [
+ 12.0,
+ 30.0
+ ]
+ ]
+ ]
+ },
+ properties: {
+ renderType: 'Polygon',
+ isClosed: true,
+ bbox: {
+ xmin: 12,
+ xmax: null,
+ ymin: 36,
+ ymax: null
+ }
+ },
+ id: 'bf5be428-f522-4a52-8ea5-3e90e86aad51'
+};
+
+export const mockPolygonData = {
+ fields: [
+ {
+ name: 'start_point_lat',
+ type: 'real'
+ },
+ {
+ name: 'start_point_lng',
+ type: 'real'
+ },
+ {
+ name: 'end_point_lat',
+ type: 'real'
+ },
+ {
+ name: 'end_point_lng',
+ type: 'real'
+ }
+ ],
+ data: [
+ [12.25, 30.5, 45.5, 32.5],
+ [12.25, 35.5, 45.5, 36.5],
+ [14.25, 30.5, 47.5, 32.5],
+ [14.25, 35.5, 47.5, 36.5]
+ ],
+ layers: [
+ {
+ id: 'm1buc6o',
+ type: 'point',
+ config: {
+ dataId: 'puppy',
+ label: 'start point',
+ color: [
+ 227,
+ 26,
+ 26
+ ],
+ columns: {
+ lat: 'start_point_lat',
+ lng: 'start_point_lng',
+ altitude: null
+ },
+ isVisible: true,
+ visConfig: {
+ radius: 10,
+ fixedRadius: false,
+ opacity: 0.8,
+ outline: false,
+ thickness: 2,
+ strokeColor: null,
+ colorRange: {
+ name: 'Global Warming',
+ type: 'sequential',
+ category: 'Uber',
+ colors: [
+ '#5A1846',
+ '#900C3F',
+ '#C70039',
+ '#E3611C',
+ '#F1920E',
+ '#FFC300'
+ ]
+ },
+ strokeColorRange: {
+ name: 'Global Warming',
+ type: 'sequential',
+ category: 'Uber',
+ colors: [
+ '#5A1846',
+ '#900C3F',
+ '#C70039',
+ '#E3611C',
+ '#F1920E',
+ '#FFC300'
+ ]
+ },
+ radiusRange: [
+ 0,
+ 50
+ ],
+ filled: true
+ },
+ textLabel: [
+ {
+ field: null,
+ color: [
+ 255,
+ 255,
+ 255
+ ],
+ size: 18,
+ offset: [
+ 0,
+ 0
+ ],
+ anchor: 'start',
+ alignment: 'center'
+ }
+ ]
+ },
+ visualChannels: {
+ colorField: null,
+ colorScale: 'quantile',
+ strokeColorField: null,
+ strokeColorScale: 'quantile',
+ sizeField: null,
+ sizeScale: 'linear'
+ }
+ },
+ {
+ id: 'jcotm1p',
+ type: 'point',
+ config: {
+ dataId: 'puppy',
+ label: 'end point',
+ color: [
+ 255,
+ 203,
+ 153
+ ],
+ columns: {
+ lat: 'end_point_lat',
+ lng: 'end_point_lng',
+ altitude: null
+ },
+ isVisible: true,
+ visConfig: {
+ radius: 10,
+ fixedRadius: false,
+ opacity: 0.8,
+ outline: false,
+ thickness: 2,
+ strokeColor: null,
+ colorRange: {
+ name: 'Global Warming',
+ type: 'sequential',
+ category: 'Uber',
+ colors: [
+ '#5A1846',
+ '#900C3F',
+ '#C70039',
+ '#E3611C',
+ '#F1920E',
+ '#FFC300'
+ ]
+ },
+ strokeColorRange: {
+ name: 'Global Warming',
+ type: 'sequential',
+ category: 'Uber',
+ colors: [
+ '#5A1846',
+ '#900C3F',
+ '#C70039',
+ '#E3611C',
+ '#F1920E',
+ '#FFC300'
+ ]
+ },
+ radiusRange: [
+ 0,
+ 50
+ ],
+ filled: true
+ },
+ textLabel: [
+ {
+ field: null,
+ color: [
+ 255,
+ 255,
+ 255
+ ],
+ size: 18,
+ offset: [
+ 0,
+ 0
+ ],
+ anchor: 'start',
+ alignment: 'center'
+ }
+ ]
+ },
+ visualChannels: {
+ colorField: null,
+ colorScale: 'quantile',
+ strokeColorField: null,
+ strokeColorScale: 'quantile',
+ sizeField: null,
+ sizeScale: 'linear'
+ }
+ }
+ ],
+ interactionConfig: {
+ tooltip: {
+ fieldsToShow: {
+ zgi2h4mkn: []
+ },
+ enabled: true
+ },
+ brush: {
+ size: 0.5,
+ enabled: false
+ }
+ }
+};
diff --git a/test/fixtures/test-hex-id-data.js b/test/fixtures/test-hex-id-data.js
index 9539977ee..247b6ad06 100644
--- a/test/fixtures/test-hex-id-data.js
+++ b/test/fixtures/test-hex-id-data.js
@@ -532,7 +532,14 @@ mergedH3Layer.config = {
isVisible: true,
highlightColor: [252, 242, 26, 255],
isConfigActive: false,
- colorField: fields[1],
+ colorField: {
+ name: 'value',
+ format: '',
+ tableFieldIndex: 2,
+ type: 'integer',
+ analyzerType: 'INT',
+ id: 'value'
+ },
colorScale: 'quantile',
colorDomain: [12, 13, 13, 15, 15, 15, 15, 15, 16, 16, 17, 17, 18, 18],
sizeField: null,
diff --git a/test/node/reducers/composer-state-test.js b/test/node/reducers/composer-state-test.js
index 5f9ac7e63..dcfb8832a 100644
--- a/test/node/reducers/composer-state-test.js
+++ b/test/node/reducers/composer-state-test.js
@@ -28,6 +28,7 @@ import testCsvData, {sampleConfig} from 'test/fixtures/test-csv-data';
import testHexIdData, {hexIdDataConfig, mergedH3Layer, mergedFilters, expectedHexDataset} from 'test/fixtures/test-hex-id-data';
import {cmpLayers, cmpFilters, cmpDatasets, cmpDataset, cmpInteraction} from 'test/helpers/comparison-utils';
import {INITIAL_UI_STATE} from 'reducers/ui-state-updaters';
+import {toggleMapControlUpdater} from 'reducers/map-state-updaters';
const mockRawData = {
fields: [
@@ -144,7 +145,7 @@ test('#composerStateReducer - addDataToMapUpdater: uiState', t => {
initialState: {},
readOnly: false,
currentModal: null
- }
+ };
t.deepEqual(newState.uiState, expectedUIState, 'ui state should be set readOnly:false,currentModal: null');
@@ -194,7 +195,7 @@ test('#composerStateReducer - addDataToMapUpdater: keepExistingConfig', t => {
});
const hexDataset = nextState1.visState.datasets[hexDataId];
- cmpDataset(t, expectedHexDataset, nextState1.visState.datasets[hexDataId])
+ cmpDataset(t, expectedHexDataset, nextState1.visState.datasets[hexDataId]);
t.deepEqual(nextState1.visState.splitMaps, [], 'should clear out splitMaps');
@@ -268,7 +269,7 @@ test('#composerStateReducer - addDataToMapUpdater: readOnly', t => {
info: {
id: sampleConfig.dataId
}
- }
+ };
const state = keplerGlReducer({}, registerEntry({id: 'test'})).test;
// old state contain splitMaps
diff --git a/test/node/reducers/root-test.js b/test/node/reducers/root-test.js
index 810843ed2..a70c6addb 100644
--- a/test/node/reducers/root-test.js
+++ b/test/node/reducers/root-test.js
@@ -20,7 +20,7 @@
import test from 'tape';
import keplerGlReducer from 'reducers';
-import {registerEntry, resetMapConfig, receiveMapConfig} from 'actions';
+import {registerEntry, resetMapConfig, receiveMapConfig, toggleSplitMap, toggleMapControl} from 'actions';
import {createAction, handleActions} from 'redux-actions';
test('keplerGlReducer.initialState', t => {
@@ -172,3 +172,54 @@ test('keplerGlReducer.plugin', t => {
t.end();
});
+
+test('keplerGlReducer - splitMap and mapControl interaction', t => {
+ // init kepler.gl root and instance
+ let state = keplerGlReducer(undefined, registerEntry({id: 'test'}));
+
+ state = keplerGlReducer(state, toggleMapControl('mapDraw'));
+
+ t.equal(
+ state.test.uiState.mapControls.mapDraw.active,
+ true,
+ 'Map draw should now be active'
+ );
+
+ t.equal(
+ state.test.uiState.mapControls.mapDraw.activeMapIndex,
+ 0,
+ 'Map draw split index should be 0'
+ );
+
+ state = keplerGlReducer(state, toggleMapControl('mapDraw'));
+
+ t.equal(
+ state.test.uiState.mapControls.mapDraw.active,
+ false,
+ 'Map draw should now be non active'
+ );
+
+ state = keplerGlReducer(state, toggleSplitMap());
+
+ t.equal(
+ state.test.mapState.isSplit,
+ true,
+ 'Should have split map'
+ );
+
+ state = keplerGlReducer(state, toggleMapControl('mapDraw', 1));
+
+ t.equal(
+ state.test.uiState.mapControls.mapDraw.active,
+ true,
+ 'Split View - Map draw should now be active'
+ );
+
+ t.equal(
+ state.test.uiState.mapControls.mapDraw.activeMapIndex,
+ 1,
+ 'Split View - Map draw split index should be 1'
+ );
+
+ t.end();
+});
diff --git a/test/node/reducers/ui-state-test.js b/test/node/reducers/ui-state-test.js
index 27283c862..72b81f2e2 100644
--- a/test/node/reducers/ui-state-test.js
+++ b/test/node/reducers/ui-state-test.js
@@ -31,8 +31,7 @@ import {
setExportSelectedDataset,
setExportDataType,
setExportFiltered,
- addNotification,
- loadFilesErrUpdater
+ addNotification
} from 'actions/ui-state-actions';
import {loadFiles, loadFilesErr} from 'actions/vis-state-actions';
import reducer, {uiStateReducerFactory} from 'reducers/ui-state';
@@ -184,7 +183,8 @@ test('#uiStateReducer -> TOGGLE_MAP_CONTROL', t => {
...INITIAL_UI_STATE.mapControls,
mapLegend: {
show: INITIAL_UI_STATE.mapControls.mapLegend.show,
- active: !INITIAL_UI_STATE.mapControls.mapLegend.active
+ active: !INITIAL_UI_STATE.mapControls.mapLegend.active,
+ activeMapIndex: 0
}
}
};
diff --git a/test/node/reducers/vis-state-merger-test.js b/test/node/reducers/vis-state-merger-test.js
index 2b3da7739..4bc10d66d 100644
--- a/test/node/reducers/vis-state-merger-test.js
+++ b/test/node/reducers/vis-state-merger-test.js
@@ -76,6 +76,8 @@ import {
savedStateWIthNonValidFilters as NonValidFilterState
} from 'test/fixtures/state-saved-v1-6';
+import {polygonFilterMap} from 'test/fixtures/polygon-filter-map';
+
// helpers
import {cmpFilters, cmpLayers, cmpDatasets} from 'test/helpers/comparison-utils';
@@ -1276,6 +1278,7 @@ test('VisStateMerger.v1 -> mergeFilters -> nonValidFilter', t => {
t.end();
});
+
test('VisStateMerger.v1 -> mergeFilters -> multiFilters', t => {
const stateToSave = cloneDeep(StateWMultiFilters);
const oldCsvData = stateToSave.visState.datasets[testCsvDataId];
@@ -1348,3 +1351,43 @@ test('VisStateMerger.v1 -> mergeFilters -> multiFilters', t => {
cmpFilters(t, expectedFilters, mergedState.filters);
t.end();
});
+
+test('VisStateMerger -> import polygon filter map', t => {
+ const oldState = cloneDeep(InitialState);
+ const savedConfig = cloneDeep(polygonFilterMap);
+ const oldVisState = oldState.visState;
+
+ const parsedConfig = SchemaManager.parseSavedConfig(
+ savedConfig.config,
+ oldState
+ );
+
+ const parsedFilters = parsedConfig.visState.filters;
+
+ const mergedState = mergeFilters(oldState.visState, parsedFilters);
+
+ Object.keys(oldVisState).forEach(key => {
+ if (key === 'filterToBeMerged') {
+ t.deepEqual(
+ mergedState.filterToBeMerged,
+ parsedFilters,
+ 'Should save filters to filterToBeMerged before data loaded'
+ );
+ } else {
+ t.deepEqual(
+ mergedState[key],
+ oldVisState[key],
+ 'Should keep the rest of state same'
+ );
+ }
+ });
+
+ const parsedData = SchemaManager.parseSavedData(savedConfig.datasets);
+
+ // load data into reducer
+ const stateWData = visStateReducer(mergedState, updateVisData(parsedData));
+
+ // parsed filters must be empty
+ cmpFilters(t, [], stateWData.filters);
+ t.end();
+});
diff --git a/test/node/reducers/vis-state-test.js b/test/node/reducers/vis-state-test.js
index b40f86dc0..cdb98d0e0 100644
--- a/test/node/reducers/vis-state-test.js
+++ b/test/node/reducers/vis-state-test.js
@@ -28,6 +28,7 @@ import reducer from 'reducers/vis-state';
import {
INITIAL_VIS_STATE,
+ DEFAULT_EDITOR,
defaultAnimationConfig
} from 'reducers/vis-state-updaters';
@@ -35,8 +36,9 @@ import {getDefaultFilter} from 'utils/filter-utils';
import {getDefaultInteraction} from 'utils/interaction-utils';
import {createNewDataEntry} from 'utils/dataset-utils';
import {processCsvData, processGeojson} from 'processors/data-processor';
-
import {Layer, KeplerGlLayers} from 'layers';
+import {EDITOR_MODES} from 'constants/default-settings';
+
const {
ArcLayer,
PointLayer,
@@ -44,6 +46,7 @@ const {
LineLayer,
TripLayer
} = KeplerGlLayers;
+
// fixtures
import testData, {testFields, testAllData} from 'test/fixtures/test-csv-data';
import {
@@ -54,6 +57,7 @@ import {
} from 'test/fixtures/geojson';
import tripGeojson, {timeStampDomain} from 'test/fixtures/trip-geojson';
+import {mockPolygonFeature, mockPolygonData} from '../../fixtures/polygon';
// test helpers
import {
@@ -182,8 +186,6 @@ const mockRawData = {
// const InitialVisState = reducer(undefined, {});
test('#visStateReducer', t => {
- reducer(undefined, {});
-
t.deepEqual(
reducer(undefined, {}),
{...INITIAL_VIS_STATE, initialState: {}},
@@ -931,7 +933,8 @@ test('#visStateReducer -> REMOVE_FILTER', t => {
}
},
layers: [],
- layerData: []
+ layerData: [],
+ editor: DEFAULT_EDITOR
};
// remove smoothie filter
@@ -963,9 +966,9 @@ test('#visStateReducer -> REMOVE_FILTER', t => {
filteredIndexForDomain: [0, 1, 2, 3]
}
},
-
layers: [],
- layerData: []
+ layerData: [],
+ editor: DEFAULT_EDITOR
},
'should remove filter and recalculate data only for associated dataset'
);
@@ -2657,7 +2660,8 @@ test('#visStateReducer -> REMOVE_DATASET w filter and layer', t => {
layerToBeMerged: [],
filterToBeMerged: [],
splitMapsToBeMerged: [],
- interactionToBeMerged: []
+ interactionToBeMerged: [],
+ editor: oldState.editor
};
const newReducer = reducer(
@@ -2875,7 +2879,8 @@ test('#visStateReducer -> SPLIT_MAP: REMOVE_DATASET', t => {
layerToBeMerged: [],
filterToBeMerged: [],
splitMapsToBeMerged: [],
- interactionToBeMerged: []
+ interactionToBeMerged: [],
+ editor: oldState.editor
};
const newReducer = reducer(
@@ -3288,8 +3293,6 @@ test('#visStateReducer -> LAYER_COLOR_UI_CHANGE. colorRangeConfig.step', t => {
})
);
- const {colorRangeConfig} = prepareState.layers[0].config.colorUI.colorRange;
-
// set color range steps
const nextState = reducer(
prepareState,
@@ -3704,3 +3707,528 @@ test('#visStateReducer -> LAYER_COLOR_UI_CHANGE. custom Palette', t => {
);
t.end();
});
+
+test('#visStateReducer -> setFeatures/delete', t => {
+ const expectedFeatures = [mockPolygonFeature];
+ let newReducer = reducer(
+ INITIAL_VIS_STATE,
+ VisStateActions.setFeatures([mockPolygonFeature])
+ );
+
+ t.deepEqual(
+ newReducer.editor.features,
+ expectedFeatures,
+ 'should add new feature'
+ );
+
+ newReducer = reducer(newReducer, VisStateActions.deleteFeature(mockPolygonFeature));
+
+ t.deepEqual(
+ newReducer.editor.features,
+ [],
+ 'Should not have features'
+ );
+
+ t.end();
+});
+
+test('#visStateReducer -> POLYGON: Add/Remove new polygon feature', t => {
+ const expectedFeatures = [mockPolygonFeature];
+ let newReducer = reducer(
+ INITIAL_VIS_STATE,
+ VisStateActions.setFeatures([mockPolygonFeature])
+ );
+
+ t.deepEqual(
+ newReducer.editor.features,
+ expectedFeatures,
+ 'should add new feature'
+ );
+
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setSelectedFeature(mockPolygonFeature)
+ );
+
+ const updatedFeature = {
+ ...mockPolygonFeature,
+ geometry: {
+ ...mockPolygonFeature.geometry,
+ coordinates: [
+ [
+ [
+ 12.0,
+ 30.0
+ ],
+ [
+ 12.0,
+ 36.0
+ ],
+ [
+ 12.5,
+ 36.0
+ ],
+ [
+ 12.0,
+ 30.0
+ ]
+ ]
+ ]
+ }
+ };
+
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setFeatures([updatedFeature])
+ );
+
+ t.deepEqual(
+ newReducer.editor.selectedFeature.id,
+ mockPolygonFeature.id,
+ 'should set selected feature'
+ );
+
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.deleteFeature(mockPolygonFeature)
+ );
+
+ t.deepEqual(
+ newReducer.editor,
+ {
+ features: [],
+ selectedFeature: null,
+ visible: true,
+ mode: 'EDIT_VERTEX'
+ },
+ 'Should remove existing feature and set selected feature to null'
+ );
+
+ t.end();
+});
+
+/* eslint-disable max-statements */
+test('#visStateReducer -> POLYGON: Create polygon filter', t => {
+ const state = {
+ ...INITIAL_VIS_STATE,
+ datasets: {
+ puppy: {
+ data: mockPolygonData.data,
+ allData: mockPolygonData.data,
+ fields: mockPolygonData.fields
+ },
+ cat: {
+ data: mockPolygonData.data,
+ allData: mockPolygonData.data,
+ fields: mockPolygonData.fields
+ }
+ },
+ layers: [],
+ layerData: []
+ };
+
+ let newReducer = reducer(state, VisStateActions.addLayer());
+
+ t.equal(
+ newReducer.layers.length,
+ 1,
+ 'Should have created a new layer'
+ );
+
+ // add new polygon feature
+ newReducer = reducer(newReducer, VisStateActions.setFeatures([mockPolygonFeature]));
+
+ // set selected feature
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setSelectedFeature(mockPolygonFeature)
+ );
+
+ // set it as filter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[0], mockPolygonFeature)
+ );
+
+ const newFilter = newReducer.filters[0];
+
+ const filterFeature = newReducer.filters[0].value;
+
+ const expectedFilter = {
+ id: newFilter.id,
+ dataId: ['puppy'],
+ freeze: false,
+ fixedDomain: true,
+ enlarged: false,
+ isAnimating: false,
+ speed: 1,
+ name: [],
+ type: 'polygon',
+ fieldIdx: [],
+ domain: null,
+ value: {
+ ...mockPolygonFeature,
+ properties: {
+ ...mockPolygonFeature.properties,
+ isVisible: true,
+ filterId: newFilter.id
+ }
+ },
+ plotType: 'histogram',
+ yAxis: null,
+ interval: null,
+ layerId: [newReducer.layers[0].id]
+ };
+
+ t.deepEqual(
+ newFilter,
+ expectedFilter,
+ 'Should have created a polygon filter'
+ );
+
+ // Add a second layer to the same dataset
+ newReducer = reducer(newReducer, VisStateActions.addLayer());
+
+ t.equal(
+ newReducer.layers.length,
+ 2,
+ 'Should have created a second layer'
+ );
+
+ // set polygon filter for the second layer
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[1], filterFeature)
+ );
+
+ t.equal(
+ newReducer.filters.length,
+ 1,
+ 'Should still have 1 polygon filter'
+ );
+
+ t.equal(
+ newReducer.filters[0].layerId.length,
+ 2,
+ 'Should have two values in filter.layerId'
+ );
+
+ // Add a new dataset layer to the same dataset
+ newReducer = reducer(newReducer, VisStateActions.addLayer({dataId: 'cat'}));
+ t.equal(
+ newReducer.layers.length,
+ 3,
+ 'Should have created a third layer'
+ );
+
+ // Set polygon for a different dataset layer
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[2], filterFeature)
+ );
+
+ t.equal(
+ newReducer.filters[0].layerId.length,
+ 3,
+ 'Should 3 values in filter.layerId'
+ );
+
+ t.equal(
+ newReducer.filters[0].dataId.length,
+ 2,
+ 'Should have two values in filter.dataId'
+ );
+
+ // TODO: invert filter
+
+ // remove the second layer from the filter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[1], filterFeature)
+ );
+
+ t.equal(
+ newReducer.filters[0].layerId.length,
+ 2,
+ 'Should have two values in filter.layerId after removing second element'
+ );
+
+ t.equal(
+ newReducer.filters[0].dataId.length,
+ 2,
+ 'Should have two values in filter.dataId after removing one layer'
+ );
+
+ // remove the first layer from the filter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[0], filterFeature)
+ );
+
+ t.equal(
+ newReducer.filters[0].layerId.length,
+ 1,
+ 'Should have one value in filter.layerId after removing first element'
+ );
+
+ t.equal(
+ newReducer.filters[0].dataId.length,
+ 1,
+ 'Should have one value in filter.dataId after removing first layer'
+ );
+
+ t.end();
+});
+/* eslint-enable max-statements */
+
+test('#visStateReducer -> POLYGON: Toggle filter feature', t => {
+ const state = {
+ ...INITIAL_VIS_STATE,
+ datasets: {
+ puppy: {
+ data: mockPolygonData.data,
+ allData: mockPolygonData.data,
+ fields: mockPolygonData.fields
+ },
+ cat: {
+ data: mockPolygonData.data,
+ allData: mockPolygonData.data,
+ fields: mockPolygonData.fields
+ }
+ },
+ layers: [],
+ layerData: []
+ };
+
+ let newReducer = reducer(state, VisStateActions.addLayer());
+
+ t.equal(
+ newReducer.layers.length,
+ 1,
+ 'Should have created a new layer'
+ );
+
+ // add new polygon feature
+ newReducer = reducer(newReducer, VisStateActions.setFeatures([mockPolygonFeature]));
+
+ // set selected feature
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setSelectedFeature(mockPolygonFeature)
+ );
+
+ // set it as filter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[0], mockPolygonFeature)
+ );
+
+ const newFilter = newReducer.filters[0];
+
+ const expectedFilter = {
+ id: newFilter.id,
+ dataId: ['puppy'],
+ freeze: false,
+ fixedDomain: true,
+ enlarged: false,
+ isAnimating: false,
+ speed: 1,
+ name: [],
+ type: 'polygon',
+ fieldIdx: [],
+ domain: null,
+ value: {
+ ...mockPolygonFeature,
+ properties: {
+ ...mockPolygonFeature.properties,
+ isVisible: true,
+ filterId: newFilter.id
+ }
+ },
+ plotType: 'histogram',
+ yAxis: null,
+ interval: null,
+ layerId: [newReducer.layers[0].id]
+ };
+
+ t.deepEqual(
+ newFilter,
+ expectedFilter,
+ 'Should have created a polygon filter'
+ );
+
+ let filterFeature = newReducer.filters[0].value;
+
+ t.deepEqual(
+ filterFeature.properties.isVisible,
+ true,
+ 'Should have feature visibility set to true'
+ );
+
+ newReducer = reducer(newReducer, VisStateActions.toggleFilterFeature(0));
+
+ filterFeature = newReducer.filters[0].value;
+
+ t.deepEqual(
+ filterFeature.properties.isVisible,
+ false,
+ 'Should hide filter feature'
+ );
+
+ t.end();
+});
+
+test('#visStateReducer -> POLYGON: delete polygon filter', t => {
+ const state = {
+ ...INITIAL_VIS_STATE,
+ datasets: {
+ puppy: {
+ data: mockData.data,
+ allData: mockData.data,
+ fields: mockData.fields
+ }
+ },
+ layers: [],
+ layerData: []
+ };
+
+ let newReducer = reducer(state, VisStateActions.addLayer());
+
+ t.equal(
+ newReducer.layers.length,
+ 1,
+ 'Should have created a new layer'
+ );
+
+ // add new polygon feature
+ newReducer = reducer(newReducer, VisStateActions.setFeatures([mockPolygonFeature]));
+
+ // set selected feature
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setSelectedFeature(mockPolygonFeature)
+ );
+
+ // set it as filter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setPolygonFilterLayer(newReducer.layers[0], mockPolygonFeature)
+ );
+
+ // Update filters using setFilter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.setFilter(0, 'layerId', [])
+ );
+
+ t.deepEqual(
+ newReducer.filters[0].layerId,
+ [],
+ 'Should have removed layers from filter'
+ );
+
+ t.deepEqual(
+ newReducer.filters[0].dataId,
+ [],
+ 'Should have removed datasets from filter'
+ );
+
+ // unset it as filter
+ newReducer = reducer(
+ newReducer,
+ VisStateActions.removeFilter(0)
+ );
+
+ t.deepEqual(
+ newReducer.filters,
+ [],
+ 'Should have removed the created polygon filter'
+ );
+
+ // deleting the filter will also delete the feature
+ t.deepEqual(
+ newReducer.editor.features.length,
+ 0,
+ 'Should have removed the feature'
+ );
+
+ t.end();
+});
+
+test('#uiStateReducer -> SET_EDITOR_MODE', t => {
+ const newState = reducer(INITIAL_VIS_STATE, VisStateActions.setEditorMode(EDITOR_MODES.EDIT));
+
+ t.equal(
+ newState.editor.mode,
+ EDITOR_MODES.EDIT,
+ 'Editor mode should be set to vertex'
+ );
+
+ t.end();
+});
+
+test('#uiStateReducer -> TOGGLE_EDITOR_VISIBILITY', t => {
+ let newState = reducer(INITIAL_VIS_STATE, VisStateActions.toggleEditorVisibility());
+
+ t.equal(
+ newState.editor.visible,
+ false,
+ 'Should set editor visibility to false'
+ );
+
+ newState = reducer(newState, VisStateActions.toggleEditorVisibility());
+
+ t.equal(
+ newState.editor.visible,
+ true,
+ 'Should set editor visibility to true'
+ );
+
+ t.end();
+});
+
+test('#uiStateReducer -> SET_FEATURES/SET_SELECTED_FEATURE/DELETE_FEATURE', t => {
+
+ let newState = reducer(INITIAL_VIS_STATE, VisStateActions.setFeatures([]));
+
+ t.deepEqual(
+ newState,
+ INITIAL_VIS_STATE,
+ 'Editor should not have features and return the same state'
+ );
+
+ newState = reducer(INITIAL_VIS_STATE, VisStateActions.setFeatures([
+ {
+ ...mockPolygonFeature,
+ properties: {
+ ...mockPolygonFeature.properties,
+ isClosed: false
+ }
+ }
+ ]));
+
+ t.equal(
+ newState.editor.mode,
+ INITIAL_VIS_STATE.editor.mode,
+ 'Editor mode should not change because feature is not closed'
+ );
+
+ newState = reducer(newState, VisStateActions.setFeatures([
+ {
+ ...mockPolygonFeature,
+ properties: {
+ ...mockPolygonFeature.properties,
+ isClosed: false
+ }
+ },
+ mockPolygonFeature
+ ]));
+
+ t.equal(
+ newState.editor.mode,
+ EDITOR_MODES.EDIT,
+ 'Editor mode should be set to edit_vertex'
+ );
+
+ t.end();
+});
diff --git a/test/node/utils/aggregate-utils-test.js b/test/node/utils/aggregate-utils-test.js
new file mode 100644
index 000000000..f3b53e2b0
--- /dev/null
+++ b/test/node/utils/aggregate-utils-test.js
@@ -0,0 +1,85 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import test from 'tape';
+import {
+ getFrequency,
+ getMode,
+ aggregate
+} from 'utils/aggregate-utils';
+import {AGGREGATION_TYPES} from 'constants/default-settings';
+
+test('AggregateUtils - GetFrequency', t => {
+
+ t.deepEqual(
+ getFrequency([2, 1, 2, 1]),
+ {
+ 1: 2,
+ 2: 2
+ },
+ 'Should compute frequency corerctly'
+ );
+
+ t.deepEqual(
+ getFrequency([]),
+ {},
+ 'Should return an empty object'
+ );
+
+ t.end();
+});
+
+test('AggregateUtils - GetMode', t => {
+
+ t.deepEqual(
+ getMode([2, 1, 2, 1]),
+ '1',
+ 'should return 1 as Mode'
+ );
+
+ t.end();
+});
+
+test('AggregateUtils - aggregate', t => {
+
+ const data = [1, 2, 3, 1, 2, 3, 4, 3];
+ const results = [
+ 8,
+ 2.375,
+ 4,
+ 1,
+ 2.5,
+ 1.0606601717798212,
+ 19,
+ 1.125,
+ '3',
+ 8
+ ];
+ Object.keys(AGGREGATION_TYPES).map((technique, index) => {
+ t.equal(
+ aggregate(data, technique),
+ results[index],
+ `Should compute the right aggregation using ${technique} - ${index}`
+ )
+ });
+
+ t.end();
+
+});
diff --git a/test/node/utils/color-util-test.js b/test/node/utils/color-util-test.js
new file mode 100644
index 000000000..fd0989624
--- /dev/null
+++ b/test/node/utils/color-util-test.js
@@ -0,0 +1,62 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import test from 'tape';
+import {createLinearGradient} from 'utils/color-utils';
+
+test('createLinearGradient', t => {
+
+ let colors = [
+ [100, 100, 100]
+ ];
+
+ t.deepEqual(
+ createLinearGradient('bottom', colors),
+ 'linear-gradient(to bottom, rgba(100,100,100, 1) 0%, rgba(100,100,100, 1) 100%)',
+ 'Should create a solid gradient with 1 color'
+ );
+
+ colors = [
+ [100, 100, 100],
+ [200, 200, 200],
+ [300, 300, 300]
+ ];
+
+ t.deepEqual(
+ createLinearGradient('bottom', colors),
+ 'linear-gradient(to bottom, rgba(100,100,100, 1) 0%, rgba(100,100,100, 1) 33.33%,rgba(200,200,200, 1) 33.33%, rgba(200,200,200, 1) 66.66%,rgba(300,300,300, 1) 66.66%, rgba(300,300,300, 1) 99.99%)',
+ 'Should create a linear gradient'
+ );
+
+ colors = [
+ [10, 10, 10],
+ [20, 20, 20],
+ [30, 30, 30],
+ [40, 40, 40]
+ ];
+
+ t.deepEqual(
+ createLinearGradient('bottom', colors),
+ 'linear-gradient(to bottom, rgba(10,10,10, 1) 0%, rgba(10,10,10, 1) 25%,rgba(20,20,20, 1) 25%, rgba(20,20,20, 1) 50%,rgba(30,30,30, 1) 50%, rgba(30,30,30, 1) 75%,rgba(40,40,40, 1) 75%, rgba(40,40,40, 1) 100%)',
+ 'Should create a linear gradient'
+ );
+
+ t.end();
+});
diff --git a/test/node/utils/filter-utils-test.js b/test/node/utils/filter-utils-test.js
index 4cc508a9a..c2fb74b96 100644
--- a/test/node/utils/filter-utils-test.js
+++ b/test/node/utils/filter-utils-test.js
@@ -25,132 +25,21 @@ import testData, {testFields} from 'test/fixtures/test-csv-data';
import {
FILTER_TYPES,
adjustValueToFilterDomain,
- isDataMatchFilter,
+ getFilterFunction,
getFieldDomain,
getTimestampFieldDomain,
getDefaultFilter,
getDatasetIndexForFilter,
- getDatasetFieldIndexForFilter
+ getDatasetFieldIndexForFilter,
+ validatePolygonFilter,
+ filterData,
+ generatePolygonFilter,
+ isValidFilterValue,
+ isInPolygon
} from 'utils/filter-utils';
import {processCsvData} from 'processors/data-processor';
-
-/* eslint-disable max-statements */
-test('filterUtils -> adjustValueToFilterDomain', t => {
- // TODO: needs id
- const rangeFilter = getDefaultFilter();
- rangeFilter.type = FILTER_TYPES.range;
- rangeFilter.domain = [0, 1];
-
- t.deepEqual(
- adjustValueToFilterDomain([0, 0.5], rangeFilter),
- [0, 0.5],
- 'should return value matched to range filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain([-1, 0.5], rangeFilter),
- [0, 0.5],
- 'should return value adjust to range filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain([0.1, 1.5], rangeFilter),
- [0.1, 1],
- 'should return value adjust to range filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain([1.1, 2], rangeFilter),
- [0, 1],
- 'should return value adjust to range filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain(null, rangeFilter),
- [0, 1],
- 'should return value adjust to range filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain([undefined, 0.5], rangeFilter),
- [0, 0.5],
- 'should return value adjust to range filter'
- );
-
- // TODO needs id
- const multiSelectFilter = getDefaultFilter();
- multiSelectFilter.type = FILTER_TYPES.multiSelect;
- multiSelectFilter.domain = ['a', 'b', 'c'];
-
- t.deepEqual(
- adjustValueToFilterDomain(['a', 'b'], multiSelectFilter),
- ['a', 'b'],
- 'should return value matched to multiSelect filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain(['a', 'b', 'd'], multiSelectFilter),
- ['a', 'b'],
- 'should return value matched to multiSelect filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain(['a', 'b', null], multiSelectFilter),
- ['a', 'b'],
- 'should return value matched to multiSelect filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain(null, multiSelectFilter),
- [],
- 'should return [] if nothing matched to multiSelect filter'
- );
-
- t.deepEqual(
- adjustValueToFilterDomain([1, 2], multiSelectFilter),
- [],
- 'should return [] if nothing matched to multiSelect filter'
- );
-
- // TODO needs id
- const selectFilter = getDefaultFilter();
- selectFilter.type = FILTER_TYPES.select;
- selectFilter.domain = ['a', 'b', 'c'];
-
- t.equal(
- adjustValueToFilterDomain('a', selectFilter),
- 'a',
- 'should return value matched to select filter'
- );
-
- t.equal(
- adjustValueToFilterDomain(['a', 'b'], selectFilter),
- true,
- 'should return true if nothing matched to select filter'
- );
-
- t.equal(
- adjustValueToFilterDomain(null, selectFilter),
- true,
- 'should return true if nothing matched to select filter'
- );
-
- t.end();
-});
-
-test('filterUtils -> getFieldDomain.time', async t => {
- const data = testData;
- const expectedFields = testFields;
-
- const {fields, rows} = await processCsvData(data);
-
- t.deepEqual(fields, expectedFields, 'should get corrent field type');
- testGetTimeFieldDomain(rows, fields, t);
- testIsTimeDataMatchFilter(rows, fields, t);
-
- t.end();
-});
+import {mockPolygonFeature, mockPolygonData} from '../../fixtures/polygon';
function testGetTimeFieldDomain(rows, allFields, t) {
const test_cases = [
@@ -205,30 +94,41 @@ function testGetTimeFieldDomain(rows, allFields, t) {
t.deepEqual(
tc.input,
tc.output,
- `should process correct domian for timestamp ${tc.msg}`
+ `should process correct domain for timestamp ${tc.msg}`
)
);
}
-function testIsTimeDataMatchFilter(rows, fields, t) {
-
+function testGetFilterFunction(rows, fields, t) {
+ const dataId = 'dataset-1';
const timeStringFilter = {
fieldIdx: [0],
type: FILTER_TYPES.timeRange,
value: [
moment.utc('2016-09-17 00:09:55').valueOf(),
moment.utc('2016-09-17 00:20:08').valueOf()
- ]
+ ],
+ id: 'filter-1',
+ dataId: [dataId]
};
+ let field = fields[timeStringFilter.fieldIdx[0]];
+
+ let filterFunction = getFilterFunction(
+ field,
+ dataId,
+ timeStringFilter,
+ []
+ );
+
t.equal(
- isDataMatchFilter(rows[10], timeStringFilter, 10, fields[timeStringFilter.fieldIdx[0]]),
+ filterFunction(rows[10], 10),
true,
`${rows[10][0]} should be inside the range`
);
t.equal(
- isDataMatchFilter(rows[15], timeStringFilter, 15, fields[timeStringFilter.fieldIdx[0]]),
+ filterFunction(rows[15], 15),
false,
`${rows[15][0]} should be outside the range`
);
@@ -239,17 +139,28 @@ function testIsTimeDataMatchFilter(rows, fields, t) {
value: [
moment.utc(1472688000000).valueOf(),
moment.utc(1472734400000).valueOf()
- ]
+ ],
+ id: 'filter-2',
+ dataId: [dataId]
};
+ field = fields[epochFilter.fieldIdx[0]];
+
+ filterFunction = getFilterFunction(
+ field,
+ dataId,
+ epochFilter,
+ []
+ );
+
t.equal(
- isDataMatchFilter(rows[10], epochFilter, 10, fields[epochFilter.fieldIdx[0]]),
+ filterFunction(rows[10], 10),
true,
`${rows[10][1]} should be inside the range`
);
t.equal(
- isDataMatchFilter(rows[15], epochFilter, 15, fields[epochFilter.fieldIdx[0]]),
+ filterFunction(rows[15], 15),
false,
`${rows[15][1]} should be outside the range`
);
@@ -260,17 +171,28 @@ function testIsTimeDataMatchFilter(rows, fields, t) {
value: [
moment.utc('2016-09-23T00:00:00.000Z').valueOf(),
moment.utc('2016-09-23T06:00:00.000Z').valueOf()
- ]
+ ],
+ id: 'filter-3',
+ dataId: [dataId]
};
+ field = fields[tzFilter.fieldIdx[0]];
+
+ filterFunction = getFilterFunction(
+ field,
+ dataId,
+ tzFilter,
+ []
+ );
+
t.equal(
- isDataMatchFilter(rows[10], tzFilter, 10, fields[tzFilter.fieldIdx[0]]),
+ filterFunction(rows[10], 10),
true,
`${rows[10][7]} should be inside the range`
);
t.equal(
- isDataMatchFilter(rows[23], tzFilter, 10, fields[tzFilter.fieldIdx[0]]),
+ filterFunction(rows[23], 10),
false,
`${rows[23][7]} should be outside the range`
);
@@ -281,28 +203,156 @@ function testIsTimeDataMatchFilter(rows, fields, t) {
value: [
moment.utc('2016-10-01 09:45:39+00:00').valueOf(),
moment.utc('2016-10-01 10:00:00+00:00').valueOf()
- ]
+ ],
+ id: 'filter-4',
+ dataId: [dataId]
};
+ field = fields[utcFilter.fieldIdx[0]];
+
+ filterFunction = getFilterFunction(
+ field,
+ dataId,
+ utcFilter,
+ []
+ );
+
t.equal(
- isDataMatchFilter(rows[6], utcFilter, 6, fields[utcFilter.fieldIdx[0]]),
+ filterFunction(rows[6], 6),
false,
`${rows[0][8]} should be outside the range`
);
t.equal(
- isDataMatchFilter(rows[4], utcFilter, 4, fields[utcFilter.fieldIdx[0]]),
+ filterFunction(rows[4], 4),
true,
`${rows[4][8]} should be inside the range`
);
t.equal(
- isDataMatchFilter(rows[23], utcFilter, 23, fields[utcFilter.fieldIdx[0]]),
+ filterFunction(rows[23], 23),
false,
`${rows[23][8]} should be outside the range`
);
}
+/* eslint-disable max-statements */
+test('filterUtils -> adjustValueToFilterDomain', t => {
+ // TODO: needs id
+ const rangeFilter = getDefaultFilter();
+ rangeFilter.type = FILTER_TYPES.range;
+ rangeFilter.domain = [0, 1];
+
+ t.deepEqual(
+ adjustValueToFilterDomain([0, 0.5], rangeFilter),
+ [0, 0.5],
+ 'should return value matched to range filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain([-1, 0.5], rangeFilter),
+ [0, 0.5],
+ 'should return value adjust to range filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain([0.1, 1.5], rangeFilter),
+ [0.1, 1],
+ 'should return value adjust to range filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain([1.1, 2], rangeFilter),
+ [0, 1],
+ 'should return value adjust to range filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain(null, rangeFilter),
+ [0, 1],
+ 'should return value adjust to range filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain([undefined, 0.5], rangeFilter),
+ [0, 0.5],
+ 'should return value adjust to range filter'
+ );
+
+ // TODO needs id
+ const multiSelectFilter = getDefaultFilter();
+ multiSelectFilter.type = FILTER_TYPES.multiSelect;
+ multiSelectFilter.domain = ['a', 'b', 'c'];
+
+ t.deepEqual(
+ adjustValueToFilterDomain(['a', 'b'], multiSelectFilter),
+ ['a', 'b'],
+ 'should return value matched to multiSelect filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain(['a', 'b', 'd'], multiSelectFilter),
+ ['a', 'b'],
+ 'should return value matched to multiSelect filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain(['a', 'b', null], multiSelectFilter),
+ ['a', 'b'],
+ 'should return value matched to multiSelect filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain(null, multiSelectFilter),
+ [],
+ 'should return [] if nothing matched to multiSelect filter'
+ );
+
+ t.deepEqual(
+ adjustValueToFilterDomain([1, 2], multiSelectFilter),
+ [],
+ 'should return [] if nothing matched to multiSelect filter'
+ );
+
+ // TODO needs id
+ const selectFilter = getDefaultFilter();
+ selectFilter.type = FILTER_TYPES.select;
+ selectFilter.domain = ['a', 'b', 'c'];
+
+ t.equal(
+ adjustValueToFilterDomain('a', selectFilter),
+ 'a',
+ 'should return value matched to select filter'
+ );
+
+ t.equal(
+ adjustValueToFilterDomain(['a', 'b'], selectFilter),
+ true,
+ 'should return true if nothing matched to select filter'
+ );
+
+ t.equal(
+ adjustValueToFilterDomain(null, selectFilter),
+ true,
+ 'should return true if nothing matched to select filter'
+ );
+
+ t.end();
+});
+
+test('filterUtils -> getFieldDomain.time', async t => {
+ const data = testData;
+ const expectedFields = testFields;
+
+ const {fields, rows} = await processCsvData(data);
+
+ t.deepEqual(fields, expectedFields, 'should get current field type');
+ testGetTimeFieldDomain(rows, fields, t);
+ testGetFilterFunction(rows, fields, t);
+
+ t.end();
+});
+
test('filterUtils -> getTimestampFieldDomain', t => {
/* eslint-disable func-style */
const valueAccessor = d => moment.utc(d).valueOf();
@@ -734,4 +784,291 @@ test('filterUtils -> getDatasetIndexForFilter', t => {
t.end();
});
+test('filterUtils -> isValidFilterValue', t => {
+ t.equal(
+ isValidFilterValue(null, true),
+ false,
+ 'Should return false because type is null'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.select, true),
+ true,
+ 'Should return true because type is select and value is true'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.select, false),
+ true,
+ 'Should return true because type is select and value is true'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.timeRange, false),
+ false,
+ 'Should return false because type is timeRange and value is not an array'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.timeRange, []),
+ true,
+ 'Should return true because type is timeRange and value is an empty array'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.timeRange, [1]),
+ true,
+ 'Should return false because type is timeRange and value is an array'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.multiSelect, true),
+ false,
+ 'Should return false because type is multiSelect and value is not an array'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.multiSelect, []),
+ false,
+ 'Should return false because type is multiSelect and value is an empty array'
+ );
+
+ t.equal(
+ isValidFilterValue(FILTER_TYPES.multiSelect, [1]),
+ true,
+ 'Should return false because type is multiSelect and value is an array'
+ );
+
+ t.end();
+});
+
+test('filterUtils -> isInPolygon', t => {
+ t.equal(
+ isInPolygon(
+ [120.47448, 23.667604],
+ {
+ type: 'Feature',
+ geometry: {
+ type: 'Polygon',
+ coordinates: [
+ [
+ [
+ 120.21949418752885,
+ 23.755486652156186
+ ],
+ [
+ 120.21949418752885,
+ 23.221461105318184
+ ],
+ [
+ 121.05994828909135,
+ 23.221461105318184
+ ],
+ [
+ 121.05994828909135,
+ 23.755486652156186
+ ],
+ [
+ 120.21949418752885,
+ 23.755486652156186
+ ]
+ ]
+ ]
+ },
+ properties: {
+ renderType: 'Rectangle',
+ isClosed: true,
+ bbox: {
+ xmin: 120.21949418752885,
+ xmax: null,
+ ymin: 23.755486652156186,
+ ymax: null
+ },
+ isVisible: true,
+ filterId: 'z1ilfjv6'
+ },
+ id: '036d9e21-af6b-4350-aab9-f1ce37c35cce'
+ }
+ ),
+ true,
+ 'Should return true because the point is within the polygon'
+ );
+
+ t.equal(
+ isInPolygon(
+ [119.47448, 23.667604],
+ {
+ type: 'Feature',
+ geometry: {
+ type: 'Polygon',
+ coordinates: [
+ [
+ [
+ 120.21949418752885,
+ 23.755486652156186
+ ],
+ [
+ 120.21949418752885,
+ 23.221461105318184
+ ],
+ [
+ 121.05994828909135,
+ 23.221461105318184
+ ],
+ [
+ 121.05994828909135,
+ 23.755486652156186
+ ],
+ [
+ 120.21949418752885,
+ 23.755486652156186
+ ]
+ ]
+ ]
+ },
+ properties: {
+ renderType: 'Rectangle',
+ isClosed: true,
+ bbox: {
+ xmin: 120.21949418752885,
+ xmax: null,
+ ymin: 23.755486652156186,
+ ymax: null
+ },
+ isVisible: true,
+ filterId: 'z1ilfjv6'
+ },
+ id: '036d9e21-af6b-4350-aab9-f1ce37c35cce'
+ }
+ ),
+ false,
+ 'Should return false because the point is not within the polygon'
+ );
+
+ t.end();
+});
+
+test('filterUtils -> validatePolygonFilter', t => {
+ const filter = {
+ layerId: ['layer1'],
+ dataId: ['puppy'],
+ value: {
+ id: 'feature_1',
+ geometry: {
+ coordinates: []
+ }
+ },
+ type: 'polygon'
+ };
+
+ const dataset = {
+ id: 'puppy'
+ };
+
+ const layers = [{
+ id: 'layer1'
+ }];
+
+ t.deepEqual(
+ validatePolygonFilter(dataset, filter, layers).filter,
+ {
+ ...filter,
+ fieldIdx: [],
+ freeze: true
+ },
+ 'Should positively validate filter'
+ );
+
+ t.equal(
+ validatePolygonFilter(dataset, filter, [{id: 'layer2'}]).filter,
+ null,
+ 'Should not validate the filter since layers are not matched'
+ );
+
+ t.equal(
+ validatePolygonFilter(dataset, {}, layers).filter,
+ null,
+ 'Should non validate empty filter'
+ );
+
+ t.deepEqual(
+ validatePolygonFilter(dataset, {
+ ...filter,
+ dataId: ['non_valid']
+ }, layers).filter,
+ null,
+ 'Should non validate filter with non existing dataId'
+ );
+
+ t.deepEqual(
+ validatePolygonFilter(dataset, {
+ ...filter,
+ value: {
+ id: 'wrong-value-for-polygon-type'
+ }
+ }, layers).filter,
+ null,
+ 'Should not validate filter given type and value'
+ );
+
+ t.end();
+});
+
+test('filterUtils -> filterData', t => {
+ const dataset = {
+ id: 'dataset-1',
+ allData: [],
+ data: [],
+ fields: []
+ };
+
+ t.deepEqual(
+ filterData(dataset, []),
+ {data: [], filteredIndex: [], filteredIndexForDomain: []}
+ );
+
+ t.end();
+});
+
+test('filterUtils -> Polygon getFilterFunction ', t => {
+
+ const dataset = {
+ id: 'puppy',
+ data: mockPolygonData.data,
+ allData: mockPolygonData.data,
+ fields: mockPolygonData.fields
+ };
+
+ const {layers, data} = mockPolygonData;
+
+ const polygonFilter = generatePolygonFilter(layers, mockPolygonFeature);
+
+ let filterFunction = getFilterFunction(
+ null,
+ dataset.id,
+ polygonFilter,
+ []
+ );
+
+ t.equal(
+ filterFunction(data[0], 0),
+ true,
+ `Should return true because layer list is empty`
+ );
+
+ filterFunction = getFilterFunction(
+ null,
+ 'puppy-2',
+ polygonFilter,
+ layers
+ );
+
+ t.equal(
+ filterFunction(data[0], 0),
+ true,
+ `${data[0][0]} - ${data[0][1]} should be inside the range`
+ );
+
+ t.end();
+});
/* eslint-enable max-statements */
diff --git a/test/node/utils/index.js b/test/node/utils/index.js
index 67fbddd41..c16adce44 100644
--- a/test/node/utils/index.js
+++ b/test/node/utils/index.js
@@ -26,3 +26,6 @@ import './data-scale-utils-test';
import './interaction-utils-test';
import './mapbox-gl-style-editor-test';
import './notifications-utils-test';
+import './aggregate-utils-test';
+import './color-util-test';
+import './utils-test';
diff --git a/test/node/utils/utils-test.js b/test/node/utils/utils-test.js
new file mode 100644
index 000000000..f08637222
--- /dev/null
+++ b/test/node/utils/utils-test.js
@@ -0,0 +1,50 @@
+// Copyright (c) 2020 Uber Technologies, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+import test from 'tape';
+import {toArray} from 'utils/utils';
+
+test('utils -> toArray', t => {
+ t.deepEqual(
+ toArray(),
+ [],
+ 'Should return an empty array for undefined value'
+ );
+
+ t.deepEqual(
+ toArray([1, 2]),
+ [1, 2],
+ 'Should not change an existing array'
+ );
+
+ t.deepEqual(
+ toArray(null),
+ [],
+ 'Should return an empty array for a null value'
+ );
+
+ t.deepEqual(
+ toArray('test'),
+ ['test'],
+ 'Should return an array with one element for a string'
+ );
+
+ t.end();
+});
diff --git a/yarn.lock b/yarn.lock
index e5961fb60..db19d647b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3,17 +3,16 @@
"@babel/cli@^7.0.0":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.6.2.tgz#4ce8b5b4b2e4b4c1b7bd841cec62085e2dfc4465"
- integrity sha512-JDZ+T/br9pPfT2lmAMJypJDTTTHM9ePD/ED10TRjRzJVdEVy+JB3iRlhzYmTt5YkNgHvxWGlUVnLtdv6ruiDrQ==
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.7.5.tgz#25702cc65418efc06989af3727897b9f4c8690b6"
+ integrity sha512-y2YrMGXM3NUyu1Myg0pxg+Lx6g8XhEyvLHYNRwTBV6fDek3H7Io6b7N/LXscLs4HWn4HxMdy7f2rM1rTMp2mFg==
dependencies:
- commander "^2.8.1"
+ commander "^4.0.1"
convert-source-map "^1.1.0"
fs-readdir-recursive "^1.1.0"
glob "^7.0.0"
lodash "^4.17.13"
- mkdirp "^0.5.1"
- output-file-sync "^2.0.0"
+ make-dir "^2.1.0"
slash "^2.0.0"
source-map "^0.5.0"
optionalDependencies:
@@ -27,18 +26,18 @@
"@babel/highlight" "^7.0.0"
"@babel/core@^7.0.0", "@babel/core@^7.1.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.6.2.tgz#069a776e8d5e9eefff76236bc8845566bd31dd91"
- integrity sha512-l8zto/fuoZIbncm+01p8zPSDZu/VuuJhAfA7d/AbzM09WR7iVhavvfNDYCNpo1VvLk6E6xgAoP9P+/EMJHuRkQ==
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.5.tgz#ae1323cd035b5160293307f50647e83f8ba62f7e"
+ integrity sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw==
dependencies:
"@babel/code-frame" "^7.5.5"
- "@babel/generator" "^7.6.2"
- "@babel/helpers" "^7.6.2"
- "@babel/parser" "^7.6.2"
- "@babel/template" "^7.6.0"
- "@babel/traverse" "^7.6.2"
- "@babel/types" "^7.6.0"
- convert-source-map "^1.1.0"
+ "@babel/generator" "^7.7.4"
+ "@babel/helpers" "^7.7.4"
+ "@babel/parser" "^7.7.5"
+ "@babel/template" "^7.7.4"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
+ convert-source-map "^1.7.0"
debug "^4.1.0"
json5 "^2.1.0"
lodash "^4.17.13"
@@ -46,132 +45,140 @@
semver "^5.4.1"
source-map "^0.5.0"
-"@babel/generator@^7.1.3", "@babel/generator@^7.4.0", "@babel/generator@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.6.2.tgz#dac8a3c2df118334c2a29ff3446da1636a8f8c03"
- integrity sha512-j8iHaIW4gGPnViaIHI7e9t/Hl8qLjERI6DcV9kEpAIDJsAOrcnXqRS7t+QbhL76pwbtqP+QCQLL0z1CyVmtjjQ==
+"@babel/generator@^7.1.3", "@babel/generator@^7.4.0", "@babel/generator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.4.tgz#db651e2840ca9aa66f327dcec1dc5f5fa9611369"
+ integrity sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==
dependencies:
- "@babel/types" "^7.6.0"
+ "@babel/types" "^7.7.4"
jsesc "^2.5.1"
lodash "^4.17.13"
source-map "^0.5.0"
-"@babel/helper-annotate-as-pure@^7.0.0":
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32"
- integrity sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==
+"@babel/helper-annotate-as-pure@^7.0.0", "@babel/helper-annotate-as-pure@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz#bb3faf1e74b74bd547e867e48f551fa6b098b6ce"
+ integrity sha512-2BQmQgECKzYKFPpiycoF9tlb5HA4lrVyAmLLVK177EcQAqjVLciUb2/R+n1boQ9y5ENV3uz2ZqiNw7QMBBw1Og==
dependencies:
- "@babel/types" "^7.0.0"
+ "@babel/types" "^7.7.4"
-"@babel/helper-builder-binary-assignment-operator-visitor@^7.1.0":
- version "7.1.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz#6b69628dfe4087798e0c4ed98e3d4a6b2fbd2f5f"
- integrity sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==
+"@babel/helper-builder-binary-assignment-operator-visitor@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.4.tgz#5f73f2b28580e224b5b9bd03146a4015d6217f5f"
+ integrity sha512-Biq/d/WtvfftWZ9Uf39hbPBYDUo986m5Bb4zhkeYDGUllF43D+nUe5M6Vuo6/8JDK/0YX/uBdeoQpyaNhNugZQ==
dependencies:
- "@babel/helper-explode-assignable-expression" "^7.1.0"
- "@babel/types" "^7.0.0"
+ "@babel/helper-explode-assignable-expression" "^7.7.4"
+ "@babel/types" "^7.7.4"
-"@babel/helper-builder-react-jsx@^7.3.0":
- version "7.3.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.3.0.tgz#a1ac95a5d2b3e88ae5e54846bf462eeb81b318a4"
- integrity sha512-MjA9KgwCuPEkQd9ncSXvSyJ5y+j2sICHyrI0M3L+6fnS4wMSNDc1ARXsbTfbb2cXHn17VisSnU/sHFTCxVxSMw==
+"@babel/helper-builder-react-jsx@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.7.4.tgz#da188d247508b65375b2c30cf59de187be6b0c66"
+ integrity sha512-kvbfHJNN9dg4rkEM4xn1s8d1/h6TYNvajy9L1wx4qLn9HFg0IkTsQi4rfBe92nxrPUFcMsHoMV+8rU7MJb3fCA==
dependencies:
- "@babel/types" "^7.3.0"
+ "@babel/types" "^7.7.4"
esutils "^2.0.0"
-"@babel/helper-call-delegate@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.4.4.tgz#87c1f8ca19ad552a736a7a27b1c1fcf8b1ff1f43"
- integrity sha512-l79boDFJ8S1c5hvQvG+rc+wHw6IuH7YldmRKsYtpbawsxURu/paVy57FZMomGK22/JckepaikOkY0MoAmdyOlQ==
+"@babel/helper-call-delegate@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.7.4.tgz#621b83e596722b50c0066f9dc37d3232e461b801"
+ integrity sha512-8JH9/B7J7tCYJ2PpWVpw9JhPuEVHztagNVuQAFBVFYluRMlpG7F1CgKEgGeL6KFqcsIa92ZYVj6DSc0XwmN1ZA==
dependencies:
- "@babel/helper-hoist-variables" "^7.4.4"
- "@babel/traverse" "^7.4.4"
- "@babel/types" "^7.4.4"
+ "@babel/helper-hoist-variables" "^7.7.4"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
-"@babel/helper-create-class-features-plugin@^7.5.5", "@babel/helper-create-class-features-plugin@^7.6.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.6.0.tgz#769711acca889be371e9bc2eb68641d55218021f"
- integrity sha512-O1QWBko4fzGju6VoVvrZg0RROCVifcLxiApnGP3OWfWzvxRZFCoBD81K5ur5e3bVY2Vf/5rIJm8cqPKn8HUJng==
+"@babel/helper-create-class-features-plugin@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.7.4.tgz#fce60939fd50618610942320a8d951b3b639da2d"
+ integrity sha512-l+OnKACG4uiDHQ/aJT8dwpR+LhCJALxL0mJ6nzjB25e5IPwqV1VOsY7ah6UB1DG+VOXAIMtuC54rFJGiHkxjgA==
dependencies:
- "@babel/helper-function-name" "^7.1.0"
- "@babel/helper-member-expression-to-functions" "^7.5.5"
- "@babel/helper-optimise-call-expression" "^7.0.0"
+ "@babel/helper-function-name" "^7.7.4"
+ "@babel/helper-member-expression-to-functions" "^7.7.4"
+ "@babel/helper-optimise-call-expression" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-replace-supers" "^7.5.5"
- "@babel/helper-split-export-declaration" "^7.4.4"
+ "@babel/helper-replace-supers" "^7.7.4"
+ "@babel/helper-split-export-declaration" "^7.7.4"
-"@babel/helper-define-map@^7.5.5":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.5.5.tgz#3dec32c2046f37e09b28c93eb0b103fd2a25d369"
- integrity sha512-fTfxx7i0B5NJqvUOBBGREnrqbTxRh7zinBANpZXAVDlsZxYdclDp467G1sQ8VZYMnAURY3RpBUAgOYT9GfzHBg==
+"@babel/helper-create-regexp-features-plugin@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.4.tgz#6d5762359fd34f4da1500e4cff9955b5299aaf59"
+ integrity sha512-Mt+jBKaxL0zfOIWrfQpnfYCN7/rS6GKx6CCCfuoqVVd+17R8zNDlzVYmIi9qyb2wOk002NsmSTDymkIygDUH7A==
+ dependencies:
+ "@babel/helper-regex" "^7.4.4"
+ regexpu-core "^4.6.0"
+
+"@babel/helper-define-map@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.7.4.tgz#2841bf92eb8bd9c906851546fe6b9d45e162f176"
+ integrity sha512-v5LorqOa0nVQUvAUTUF3KPastvUt/HzByXNamKQ6RdJRTV7j8rLL+WB5C/MzzWAwOomxDhYFb1wLLxHqox86lg==
dependencies:
- "@babel/helper-function-name" "^7.1.0"
- "@babel/types" "^7.5.5"
+ "@babel/helper-function-name" "^7.7.4"
+ "@babel/types" "^7.7.4"
lodash "^4.17.13"
-"@babel/helper-explode-assignable-expression@^7.1.0":
- version "7.1.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz#537fa13f6f1674df745b0c00ec8fe4e99681c8f6"
- integrity sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==
+"@babel/helper-explode-assignable-expression@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.4.tgz#fa700878e008d85dc51ba43e9fb835cddfe05c84"
+ integrity sha512-2/SicuFrNSXsZNBxe5UGdLr+HZg+raWBLE9vC98bdYOKX/U6PY0mdGlYUJdtTDPSU0Lw0PNbKKDpwYHJLn2jLg==
dependencies:
- "@babel/traverse" "^7.1.0"
- "@babel/types" "^7.0.0"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
-"@babel/helper-function-name@^7.1.0":
- version "7.1.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz#a0ceb01685f73355d4360c1247f582bfafc8ff53"
- integrity sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==
+"@babel/helper-function-name@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz#ab6e041e7135d436d8f0a3eca15de5b67a341a2e"
+ integrity sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==
dependencies:
- "@babel/helper-get-function-arity" "^7.0.0"
- "@babel/template" "^7.1.0"
- "@babel/types" "^7.0.0"
+ "@babel/helper-get-function-arity" "^7.7.4"
+ "@babel/template" "^7.7.4"
+ "@babel/types" "^7.7.4"
-"@babel/helper-get-function-arity@^7.0.0":
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3"
- integrity sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==
+"@babel/helper-get-function-arity@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz#cb46348d2f8808e632f0ab048172130e636005f0"
+ integrity sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==
dependencies:
- "@babel/types" "^7.0.0"
+ "@babel/types" "^7.7.4"
-"@babel/helper-hoist-variables@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.4.tgz#0298b5f25c8c09c53102d52ac4a98f773eb2850a"
- integrity sha512-VYk2/H/BnYbZDDg39hr3t2kKyifAm1W6zHRfhx8jGjIHpQEBv9dry7oQ2f3+J703TLu69nYdxsovl0XYfcnK4w==
+"@babel/helper-hoist-variables@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.4.tgz#612384e3d823fdfaaf9fce31550fe5d4db0f3d12"
+ integrity sha512-wQC4xyvc1Jo/FnLirL6CEgPgPCa8M74tOdjWpRhQYapz5JC7u3NYU1zCVoVAGCE3EaIP9T1A3iW0WLJ+reZlpQ==
dependencies:
- "@babel/types" "^7.4.4"
+ "@babel/types" "^7.7.4"
-"@babel/helper-member-expression-to-functions@^7.5.5":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.5.5.tgz#1fb5b8ec4453a93c439ee9fe3aeea4a84b76b590"
- integrity sha512-5qZ3D1uMclSNqYcXqiHoA0meVdv+xUEex9em2fqMnrk/scphGlGgg66zjMrPJESPwrFJ6sbfFQYUSa0Mz7FabA==
+"@babel/helper-member-expression-to-functions@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.4.tgz#356438e2569df7321a8326644d4b790d2122cb74"
+ integrity sha512-9KcA1X2E3OjXl/ykfMMInBK+uVdfIVakVe7W7Lg3wfXUNyS3Q1HWLFRwZIjhqiCGbslummPDnmb7vIekS0C1vw==
dependencies:
- "@babel/types" "^7.5.5"
+ "@babel/types" "^7.7.4"
-"@babel/helper-module-imports@^7.0.0":
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d"
- integrity sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==
+"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz#e5a92529f8888bf319a6376abfbd1cebc491ad91"
+ integrity sha512-dGcrX6K9l8258WFjyDLJwuVKxR4XZfU0/vTUgOQYWEnRD8mgr+p4d6fCUMq/ys0h4CCt/S5JhbvtyErjWouAUQ==
dependencies:
- "@babel/types" "^7.0.0"
+ "@babel/types" "^7.7.4"
-"@babel/helper-module-transforms@^7.1.0", "@babel/helper-module-transforms@^7.4.4":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.5.5.tgz#f84ff8a09038dcbca1fd4355661a500937165b4a"
- integrity sha512-jBeCvETKuJqeiaCdyaheF40aXnnU1+wkSiUs/IQg3tB85up1LyL8x77ClY8qJpuRJUcXQo+ZtdNESmZl4j56Pw==
+"@babel/helper-module-transforms@^7.7.4", "@babel/helper-module-transforms@^7.7.5":
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.7.5.tgz#d044da7ffd91ec967db25cd6748f704b6b244835"
+ integrity sha512-A7pSxyJf1gN5qXVcidwLWydjftUN878VkalhXX5iQDuGyiGK3sOrrKKHF4/A4fwHtnsotv/NipwAeLzY4KQPvw==
dependencies:
- "@babel/helper-module-imports" "^7.0.0"
- "@babel/helper-simple-access" "^7.1.0"
- "@babel/helper-split-export-declaration" "^7.4.4"
- "@babel/template" "^7.4.4"
- "@babel/types" "^7.5.5"
+ "@babel/helper-module-imports" "^7.7.4"
+ "@babel/helper-simple-access" "^7.7.4"
+ "@babel/helper-split-export-declaration" "^7.7.4"
+ "@babel/template" "^7.7.4"
+ "@babel/types" "^7.7.4"
lodash "^4.17.13"
-"@babel/helper-optimise-call-expression@^7.0.0":
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz#a2920c5702b073c15de51106200aa8cad20497d5"
- integrity sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==
+"@babel/helper-optimise-call-expression@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz#034af31370d2995242aa4df402c3b7794b2dcdf2"
+ integrity sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg==
dependencies:
- "@babel/types" "^7.0.0"
+ "@babel/types" "^7.7.4"
"@babel/helper-plugin-utils@^7.0.0":
version "7.0.0"
@@ -185,60 +192,60 @@
dependencies:
lodash "^4.17.13"
-"@babel/helper-remap-async-to-generator@^7.1.0":
- version "7.1.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz#361d80821b6f38da75bd3f0785ece20a88c5fe7f"
- integrity sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==
- dependencies:
- "@babel/helper-annotate-as-pure" "^7.0.0"
- "@babel/helper-wrap-function" "^7.1.0"
- "@babel/template" "^7.1.0"
- "@babel/traverse" "^7.1.0"
- "@babel/types" "^7.0.0"
-
-"@babel/helper-replace-supers@^7.5.5":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.5.5.tgz#f84ce43df031222d2bad068d2626cb5799c34bc2"
- integrity sha512-XvRFWrNnlsow2u7jXDuH4jDDctkxbS7gXssrP4q2nUD606ukXHRvydj346wmNg+zAgpFx4MWf4+usfC93bElJg==
- dependencies:
- "@babel/helper-member-expression-to-functions" "^7.5.5"
- "@babel/helper-optimise-call-expression" "^7.0.0"
- "@babel/traverse" "^7.5.5"
- "@babel/types" "^7.5.5"
-
-"@babel/helper-simple-access@^7.1.0":
- version "7.1.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz#65eeb954c8c245beaa4e859da6188f39d71e585c"
- integrity sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==
- dependencies:
- "@babel/template" "^7.1.0"
- "@babel/types" "^7.0.0"
-
-"@babel/helper-split-export-declaration@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz#ff94894a340be78f53f06af038b205c49d993677"
- integrity sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==
- dependencies:
- "@babel/types" "^7.4.4"
-
-"@babel/helper-wrap-function@^7.1.0", "@babel/helper-wrap-function@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz#c4e0012445769e2815b55296ead43a958549f6fa"
- integrity sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ==
- dependencies:
- "@babel/helper-function-name" "^7.1.0"
- "@babel/template" "^7.1.0"
- "@babel/traverse" "^7.1.0"
- "@babel/types" "^7.2.0"
-
-"@babel/helpers@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.6.2.tgz#681ffe489ea4dcc55f23ce469e58e59c1c045153"
- integrity sha512-3/bAUL8zZxYs1cdX2ilEE0WobqbCmKWr/889lf2SS0PpDcpEIY8pb1CCyz0pEcX3pEb+MCbks1jIokz2xLtGTA==
- dependencies:
- "@babel/template" "^7.6.0"
- "@babel/traverse" "^7.6.2"
- "@babel/types" "^7.6.0"
+"@babel/helper-remap-async-to-generator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.4.tgz#c68c2407350d9af0e061ed6726afb4fff16d0234"
+ integrity sha512-Sk4xmtVdM9sA/jCI80f+KS+Md+ZHIpjuqmYPk1M7F/upHou5e4ReYmExAiu6PVe65BhJPZA2CY9x9k4BqE5klw==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.7.4"
+ "@babel/helper-wrap-function" "^7.7.4"
+ "@babel/template" "^7.7.4"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
+
+"@babel/helper-replace-supers@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.7.4.tgz#3c881a6a6a7571275a72d82e6107126ec9e2cdd2"
+ integrity sha512-pP0tfgg9hsZWo5ZboYGuBn/bbYT/hdLPVSS4NMmiRJdwWhP0IznPwN9AE1JwyGsjSPLC364I0Qh5p+EPkGPNpg==
+ dependencies:
+ "@babel/helper-member-expression-to-functions" "^7.7.4"
+ "@babel/helper-optimise-call-expression" "^7.7.4"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
+
+"@babel/helper-simple-access@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.7.4.tgz#a169a0adb1b5f418cfc19f22586b2ebf58a9a294"
+ integrity sha512-zK7THeEXfan7UlWsG2A6CI/L9jVnI5+xxKZOdej39Y0YtDYKx9raHk5F2EtK9K8DHRTihYwg20ADt9S36GR78A==
+ dependencies:
+ "@babel/template" "^7.7.4"
+ "@babel/types" "^7.7.4"
+
+"@babel/helper-split-export-declaration@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz#57292af60443c4a3622cf74040ddc28e68336fd8"
+ integrity sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==
+ dependencies:
+ "@babel/types" "^7.7.4"
+
+"@babel/helper-wrap-function@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.7.4.tgz#37ab7fed5150e22d9d7266e830072c0cdd8baace"
+ integrity sha512-VsfzZt6wmsocOaVU0OokwrIytHND55yvyT4BPB9AIIgwr8+x7617hetdJTsuGwygN5RC6mxA9EJztTjuwm2ofg==
+ dependencies:
+ "@babel/helper-function-name" "^7.7.4"
+ "@babel/template" "^7.7.4"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
+
+"@babel/helpers@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.7.4.tgz#62c215b9e6c712dadc15a9a0dcab76c92a940302"
+ integrity sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg==
+ dependencies:
+ "@babel/template" "^7.7.4"
+ "@babel/traverse" "^7.7.4"
+ "@babel/types" "^7.7.4"
"@babel/highlight@^7.0.0":
version "7.5.0"
@@ -250,11 +257,11 @@
js-tokens "^4.0.0"
"@babel/node@^7.2.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/node/-/node-7.6.2.tgz#a94479f95ee2008342f4847346c8bb8ff2770f44"
- integrity sha512-59UxvVtRpVpL5i0KTcw41FqLNPT/Jc9k/48Rq00wfN49lAIQeRKGwZ6xX1FWlCfcIGP+5l4rfZajORvmYkhfGg==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/node/-/node-7.7.4.tgz#de1cc9c67b335a19e4f71208554779bc63719f5a"
+ integrity sha512-Vhhq2kK+BpsR2tW35zP8yOJZ7ONMVBwCD9fmNeRTU3MNNpcJDrrtVP5NK8ZX4nQAs0GSq6ky8noyn6MCVgL08g==
dependencies:
- "@babel/register" "^7.6.2"
+ "@babel/register" "^7.7.4"
commander "^2.8.1"
core-js "^3.2.1"
lodash "^4.17.13"
@@ -267,744 +274,742 @@
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.1.3.tgz#2c92469bac2b7fbff810b67fca07bd138b48af77"
integrity sha512-gqmspPZOMW3MIRb9HlrnbZHXI1/KHTOroBwN1NcLL6pWxzqzEKGvRTq0W/PxS45OtQGbaFikSQpkS5zbnsQm2w==
-"@babel/parser@^7.0.0", "@babel/parser@^7.3.3", "@babel/parser@^7.4.3", "@babel/parser@^7.6.0", "@babel/parser@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.6.2.tgz#205e9c95e16ba3b8b96090677a67c9d6075b70a1"
- integrity sha512-mdFqWrSPCmikBoaBYMuBulzTIKuXVPtEISFbRRVNwMWpCms/hmE2kRq0bblUHaNRKrjRlmVbx1sDHmjmRgD2Xg==
+"@babel/parser@^7.0.0", "@babel/parser@^7.3.3", "@babel/parser@^7.4.3", "@babel/parser@^7.7.4", "@babel/parser@^7.7.5":
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.5.tgz#cbf45321619ac12d83363fcf9c94bb67fa646d71"
+ integrity sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==
-"@babel/plugin-proposal-async-generator-functions@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e"
- integrity sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==
+"@babel/plugin-proposal-async-generator-functions@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.4.tgz#0351c5ac0a9e927845fffd5b82af476947b7ce6d"
+ integrity sha512-1ypyZvGRXriY/QP668+s8sFr2mqinhkRDMPSQLNghCQE+GAkFtp+wkHVvg2+Hdki8gwP+NFzJBJ/N1BfzCCDEw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-remap-async-to-generator" "^7.1.0"
- "@babel/plugin-syntax-async-generators" "^7.2.0"
+ "@babel/helper-remap-async-to-generator" "^7.7.4"
+ "@babel/plugin-syntax-async-generators" "^7.7.4"
"@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.3.0":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.5.5.tgz#a974cfae1e37c3110e71f3c6a2e48b8e71958cd4"
- integrity sha512-AF79FsnWFxjlaosgdi421vmYG6/jg79bVD0dpD44QdgobzHKuLZ6S3vl8la9qIeSwGi8i1fS0O1mfuDAAdo1/A==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.7.4.tgz#2f964f0cb18b948450362742e33e15211e77c2ba"
+ integrity sha512-EcuXeV4Hv1X3+Q1TsuOmyyxeTRiSqurGJ26+I/FW1WbymmRRapVORm6x1Zl3iDIHyRxEs+VXWp6qnlcfcJSbbw==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.5.5"
+ "@babel/helper-create-class-features-plugin" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-proposal-decorators@^7.1.2", "@babel/plugin-proposal-decorators@^7.3.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.6.0.tgz#6659d2572a17d70abd68123e89a12a43d90aa30c"
- integrity sha512-ZSyYw9trQI50sES6YxREXKu+4b7MAg6Qx2cvyDDYjP2Hpzd3FleOUwC9cqn1+za8d0A2ZU8SHujxFao956efUg==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.7.4.tgz#58c1e21d21ea12f9f5f0a757e46e687b94a7ab2b"
+ integrity sha512-GftcVDcLCwVdzKmwOBDjATd548+IE+mBo7ttgatqNDR7VG7GqIuZPtRWlMLHbhTXhcnFZiGER8iIYl1n/imtsg==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.6.0"
+ "@babel/helper-create-class-features-plugin" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-decorators" "^7.2.0"
+ "@babel/plugin-syntax-decorators" "^7.7.4"
"@babel/plugin-proposal-do-expressions@^7.0.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.6.0.tgz#192953fed8620d13d12a61f68defd26f41059193"
- integrity sha512-qJDaoBDbLySwU1tG0jbAomOwz8W1PEiiiK0iLQAnHLr4PYIMVX4ltDGkj3uAKx4HDs1WJ0tozGW1zAQjuTIiWg==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.7.4.tgz#5ef927f0426d22ac9319664fef0630b1e96fe730"
+ integrity sha512-CxJW0HmbZlprTIwwEV77hBS8Yc4Jt58fafxXqTQxXg/O6SNtBYvceBIZ091ffmhm/fEnYJPqz8QCGMmZU8bK8g==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-do-expressions" "^7.2.0"
+ "@babel/plugin-syntax-do-expressions" "^7.7.4"
-"@babel/plugin-proposal-dynamic-import@^7.5.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz#e532202db4838723691b10a67b8ce509e397c506"
- integrity sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw==
+"@babel/plugin-proposal-dynamic-import@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.4.tgz#dde64a7f127691758cbfed6cf70de0fa5879d52d"
+ integrity sha512-StH+nGAdO6qDB1l8sZ5UBV8AC3F2VW2I8Vfld73TMKyptMU9DY5YsJAS8U81+vEtxcH3Y/La0wG0btDrhpnhjQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-dynamic-import" "^7.2.0"
+ "@babel/plugin-syntax-dynamic-import" "^7.7.4"
"@babel/plugin-proposal-export-default-from@^7.0.0":
- version "7.5.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.5.2.tgz#2c0ac2dcc36e3b2443fead2c3c5fc796fb1b5145"
- integrity sha512-wr9Itk05L1/wyyZKVEmXWCdcsp/e185WUNl6AfYZeEKYaUPPvHXRDqO5K1VH7/UamYqGJowFRuCv30aDYZawsg==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.7.4.tgz#890de3c0c475374638292df31f6582160b54d639"
+ integrity sha512-1t6dh7BHYUz4zD1m4pozYYEZy/3m8dgOr9owx3r0mPPI3iGKRUKUbIxfYmcJ4hwljs/dhd0qOTr1ZDUp43ix+w==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-export-default-from" "^7.2.0"
+ "@babel/plugin-syntax-export-default-from" "^7.7.4"
"@babel/plugin-proposal-export-namespace-from@^7.0.0", "@babel/plugin-proposal-export-namespace-from@^7.2.0":
- version "7.5.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.5.2.tgz#ccd5ed05b06d700688ff1db01a9dd27155e0d2a0"
- integrity sha512-TKUdOL07anjZEbR1iSxb5WFh810KyObdd29XLFLGo1IDsSuGrjH3ouWSbAxHNmrVKzr9X71UYl2dQ7oGGcRp0g==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.7.4.tgz#9b32a9e3538ba4b0e2fa08942f0a8e5f60899dea"
+ integrity sha512-3whN5U7iZjKdbwRSFwBOjGBgH7apXCzwielljxVH8D/iYcGRqPPw63vlIbG0GqQoT9bO0QYPcIUVkhQG5hcHtg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-export-namespace-from" "^7.2.0"
+ "@babel/plugin-syntax-export-namespace-from" "^7.7.4"
"@babel/plugin-proposal-function-bind@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.2.0.tgz#94dc2cdc505cafc4e225c0014335a01648056bf7"
- integrity sha512-qOFJ/eX1Is78sywwTxDcsntLOdb5ZlHVVqUz5xznq8ldAfOVIyZzp1JE2rzHnaksZIhrqMrwIpQL/qcEprnVbw==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.7.4.tgz#a7a98439722f921ae0000f88750058b45011adbb"
+ integrity sha512-0qJlxfYKHs/JUg+JFISl29YObUCKAOQ0ENHMYoxErBFp58XTXwQEsrVPhs2TGL3cxI21XPs2fpommO6zmCd3/A==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-function-bind" "^7.2.0"
+ "@babel/plugin-syntax-function-bind" "^7.7.4"
"@babel/plugin-proposal-function-sent@^7.0.0", "@babel/plugin-proposal-function-sent@^7.1.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.5.0.tgz#39233aa801145e7d8072077cdb2d25f781c1ffd7"
- integrity sha512-JXdfiQpKoC6UgQliZkp3NX7K3MVec1o1nfTWiCCIORE5ag/QZXhL0aSD8/Y2K+hIHonSTxuJF9rh9zsB6hBi2A==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.7.4.tgz#a1aaa820ed5210da7e31edee42f1a4cdc3ec1ba3"
+ integrity sha512-vCiie58siJZoGJBQT0WIKORMqCe6CFasTf2X1LOfyAiWYfLFcDCVg+Y4HIiDFH8hKwkMDGKJT6nLYHM0VmQZXA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-wrap-function" "^7.2.0"
- "@babel/plugin-syntax-function-sent" "^7.2.0"
+ "@babel/helper-wrap-function" "^7.7.4"
+ "@babel/plugin-syntax-function-sent" "^7.7.4"
-"@babel/plugin-proposal-json-strings@^7.0.0", "@babel/plugin-proposal-json-strings@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz#568ecc446c6148ae6b267f02551130891e29f317"
- integrity sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg==
+"@babel/plugin-proposal-json-strings@^7.0.0", "@babel/plugin-proposal-json-strings@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.7.4.tgz#7700a6bfda771d8dc81973249eac416c6b4c697d"
+ integrity sha512-wQvt3akcBTfLU/wYoqm/ws7YOAQKu8EVJEvHip/mzkNtjaclQoCCIqKXFP5/eyfnfbQCDV3OLRIK3mIVyXuZlw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-json-strings" "^7.2.0"
+ "@babel/plugin-syntax-json-strings" "^7.7.4"
"@babel/plugin-proposal-logical-assignment-operators@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.2.0.tgz#8a5cea6c42a7c87446959e02fff5fad012c56f57"
- integrity sha512-0w797xwdPXKk0m3Js74hDi0mCTZplIu93MOSfb1ZLd/XFe3abWypx1QknVk0J+ohnsjYpvjH4Gwfo2i3RicB6Q==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.7.4.tgz#e972f5d4b446d9a139b299ad275f032710ef783e"
+ integrity sha512-vOHiM06HgN6IUm7cmqvhqnhCmkkVUeFTAP0GWhgTl36+0/r65TG7Bkp21rviL+tWqRKlx4DWr090cwaW8ZU5TA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-logical-assignment-operators" "^7.2.0"
+ "@babel/plugin-syntax-logical-assignment-operators" "^7.7.4"
"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.4.4.tgz#41c360d59481d88e0ce3a3f837df10121a769b39"
- integrity sha512-Amph7Epui1Dh/xxUxS2+K22/MUi6+6JVTvy3P58tja3B6yKTSjwwx0/d83rF7551D6PVSSoplQb8GCwqec7HRw==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.7.4.tgz#7db302c83bc30caa89e38fee935635ef6bd11c28"
+ integrity sha512-TbYHmr1Gl1UC7Vo2HVuj/Naci5BEGNZ0AJhzqD2Vpr6QPFWpUmBRLrIDjedzx7/CShq0bRDS2gI4FIs77VHLVQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-nullish-coalescing-operator" "^7.2.0"
+ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.7.4"
"@babel/plugin-proposal-numeric-separator@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.2.0.tgz#646854daf4cd22fd6733f6076013a936310443ac"
- integrity sha512-DohMOGDrZiMKS7LthjUZNNcWl8TAf5BZDwZAH4wpm55FuJTHgfqPGdibg7rZDmont/8Yg0zA03IgT6XLeP+4sg==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.7.4.tgz#7819a17445f4197bb9575e5750ed349776da858a"
+ integrity sha512-CG605v7lLpVgVldSY6kxsN9ui1DxFOyepBfuX2AzU2TNriMAYApoU55mrGw9Jr4TlrTzPCG10CL8YXyi+E/iPw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-numeric-separator" "^7.2.0"
+ "@babel/plugin-syntax-numeric-separator" "^7.7.4"
-"@babel/plugin-proposal-object-rest-spread@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz#8ffccc8f3a6545e9f78988b6bf4fe881b88e8096"
- integrity sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw==
+"@babel/plugin-proposal-object-rest-spread@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz#cc57849894a5c774214178c8ab64f6334ec8af71"
+ integrity sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-object-rest-spread" "^7.2.0"
+ "@babel/plugin-syntax-object-rest-spread" "^7.7.4"
-"@babel/plugin-proposal-optional-catch-binding@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz#135d81edb68a081e55e56ec48541ece8065c38f5"
- integrity sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g==
+"@babel/plugin-proposal-optional-catch-binding@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.7.4.tgz#ec21e8aeb09ec6711bc0a39ca49520abee1de379"
+ integrity sha512-DyM7U2bnsQerCQ+sejcTNZh8KQEUuC3ufzdnVnSiUv/qoGJp2Z3hanKL18KDhsBT5Wj6a7CMT5mdyCNJsEaA9w==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-optional-catch-binding" "^7.2.0"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.7.4"
"@babel/plugin-proposal-optional-chaining@^7.0.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.6.0.tgz#e9bf1f9b9ba10c77c033082da75f068389041af8"
- integrity sha512-kj4gkZ6qUggkprRq3Uh5KP8XnE1MdIO0J7MhdDX8+rAbB6dJ2UrensGIS+0NPZAaaJ1Vr0PN6oLUgXMU1uMcSg==
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.7.5.tgz#f0835f044cef85b31071a924010a2a390add11d4"
+ integrity sha512-sOwFqT8JSchtJeDD+CjmWCaiFoLxY4Ps7NjvwHC/U7l4e9i5pTRNt8nDMIFSOUL+ncFbYSwruHM8WknYItWdXw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-optional-chaining" "^7.2.0"
+ "@babel/plugin-syntax-optional-chaining" "^7.7.4"
"@babel/plugin-proposal-pipeline-operator@^7.0.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.5.0.tgz#4100ec55ef4f6a4c2490b5f5a4f2a22dfa272c06"
- integrity sha512-HFYuu/yGnkn69ligXxU0ohOVvQDsMNOUJs/c4PYLUVS6ntCYOyGmRQQaSYJARJ9rvc7/ulZKIzxd4wk91hN63A==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.7.4.tgz#d61724b4f207b0a7c08e9182e8e36fda2d93e384"
+ integrity sha512-+ZczeVHN5Ny2R5kHnvxnK0U+tFiarWzX+aMKsw3uugdn4WIrUOsJ7eRX2dIRwBKUT/c8QgzT3rQGsIDlPkchBQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-pipeline-operator" "^7.5.0"
+ "@babel/plugin-syntax-pipeline-operator" "^7.7.4"
"@babel/plugin-proposal-throw-expressions@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.2.0.tgz#2d9e452d370f139000e51db65d0a85dc60c64739"
- integrity sha512-adsydM8DQF4i5DLNO4ySAU5VtHTPewOtNBV3u7F4lNMPADFF9bWQ+iDtUUe8+033cYCUz+bFlQdXQJmJOwoLpw==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.7.4.tgz#0321bd4acb699abef3006f7cd3d1b2c00daf1b82"
+ integrity sha512-yMcK1dM9Rv+Y5n62rKaHfRoRD4eOWIqYn4uy/Xu7C47rJKaR5JpQR905Hc/OL8EEaGNcEyuvjOtYdNAVXZKDZQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-throw-expressions" "^7.2.0"
+ "@babel/plugin-syntax-throw-expressions" "^7.7.4"
-"@babel/plugin-proposal-unicode-property-regex@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.6.2.tgz#05413762894f41bfe42b9a5e80919bd575dcc802"
- integrity sha512-NxHETdmpeSCtiatMRYWVJo7266rrvAC3DTeG5exQBIH/fMIUK7ejDNznBbn3HQl/o9peymRRg7Yqkx6PdUXmMw==
+"@babel/plugin-proposal-unicode-property-regex@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz#7c239ccaf09470dbe1d453d50057460e84517ebb"
+ integrity sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA==
dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-regex" "^7.4.4"
- regexpu-core "^4.6.0"
-"@babel/plugin-syntax-async-generators@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz#69e1f0db34c6f5a0cf7e2b3323bf159a76c8cb7f"
- integrity sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg==
+"@babel/plugin-syntax-async-generators@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.7.4.tgz#331aaf310a10c80c44a66b238b6e49132bd3c889"
+ integrity sha512-Li4+EjSpBgxcsmeEF8IFcfV/+yJGxHXDirDkEoyFjumuwbmfCVHUt0HuowD/iGM7OhIRyXJH9YXxqiH6N815+g==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-decorators@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.2.0.tgz#c50b1b957dcc69e4b1127b65e1c33eef61570c1b"
- integrity sha512-38QdqVoXdHUQfTpZo3rQwqQdWtCn5tMv4uV6r2RMfTqNBuv4ZBhz79SfaQWKTVmxHjeFv/DnXVC/+agHCklYWA==
+"@babel/plugin-syntax-decorators@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.7.4.tgz#3c91cfee2a111663ff3ac21b851140f5a52a4e0b"
+ integrity sha512-0oNLWNH4k5ZbBVfAwiTU53rKFWIeTh6ZlaWOXWJc4ywxs0tjz5fc3uZ6jKAnZSxN98eXVgg7bJIuzjX+3SXY+A==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-do-expressions@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.2.0.tgz#f3d4b01be05ecde2892086d7cfd5f1fa1ead5a2a"
- integrity sha512-/u4rJ+XEmZkIhspVuKRS+7WLvm7Dky9j9TvGK5IgId8B3FKir9MG+nQxDZ9xLn10QMBvW58dZ6ABe2juSmARjg==
+"@babel/plugin-syntax-do-expressions@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.7.4.tgz#023354f9671715fe329032d3b7213e645917c548"
+ integrity sha512-jGOok7z85xzG+vMG13C/POqawE2diUkwiKB7H7IP1UYzZqdxObgJsm3YHZSvh9w0rMR+NIBeIUnDbmyDNN/QGg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-dynamic-import@^7.0.0", "@babel/plugin-syntax-dynamic-import@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz#69c159ffaf4998122161ad8ebc5e6d1f55df8612"
- integrity sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==
+"@babel/plugin-syntax-dynamic-import@^7.0.0", "@babel/plugin-syntax-dynamic-import@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.7.4.tgz#29ca3b4415abfe4a5ec381e903862ad1a54c3aec"
+ integrity sha512-jHQW0vbRGvwQNgyVxwDh4yuXu4bH1f5/EICJLAhl1SblLs2CDhrsmCk+v5XLdE9wxtAFRyxx+P//Iw+a5L/tTg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-export-default-from@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.2.0.tgz#edd83b7adc2e0d059e2467ca96c650ab6d2f3820"
- integrity sha512-c7nqUnNST97BWPtoe+Ssi+fJukc9P9/JMZ71IOMNQWza2E+Psrd46N6AEvtw6pqK+gt7ChjXyrw4SPDO79f3Lw==
+"@babel/plugin-syntax-export-default-from@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.7.4.tgz#897f05808298060b52873fa804ff853540790ea1"
+ integrity sha512-j888jpjATLEzOWhKawq46UrpXnCRDbdhBd5io4jgwjJ3+CHHGCRb6PNAVEgs+BXIb+dNRAmnkv36zfB992PRVw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-export-namespace-from@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.2.0.tgz#8d257838c6b3b779db52c0224443459bd27fb039"
- integrity sha512-1zGA3UNch6A+A11nIzBVEaE3DDJbjfB+eLIcf0GGOh/BJr/8NxL3546MGhV/r0RhH4xADFIEso39TKCfEMlsGA==
+"@babel/plugin-syntax-export-namespace-from@^7.2.0", "@babel/plugin-syntax-export-namespace-from@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.7.4.tgz#116c3e5db0d3e41018665528a468bc0f336044c3"
+ integrity sha512-YTc2djwMzJjiTTUJxJunRAnK0xW6OrmCSrgBc7QbWtpUo44FCkhZQtNcwZUqVf3sc4JFxhreiJ/P7YkmCTw4rg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-flow@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.2.0.tgz#a765f061f803bc48f240c26f8747faf97c26bf7c"
- integrity sha512-r6YMuZDWLtLlu0kqIim5o/3TNRAlWb073HwT3e2nKf9I8IIvOggPrnILYPsrrKilmn/mYEMCf/Z07w3yQJF6dg==
+"@babel/plugin-syntax-flow@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.7.4.tgz#6d91b59e1a0e4c17f36af2e10dd64ef220919d7b"
+ integrity sha512-2AMAWl5PsmM5KPkB22cvOkUyWk6MjUaqhHNU5nSPUl/ns3j5qLfw2SuYP5RbVZ0tfLvePr4zUScbICtDP2CUNw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-function-bind@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.2.0.tgz#68fe85b0c0da67125f87bf239c68051b06c66309"
- integrity sha512-/WzU1lLU2l0wDfB42Wkg6tahrmtBbiD8C4H6EGSX0M4GAjzN6JiOpq/Uh8G6GSoR6lPMvhjM0MNiV6znj6y/zg==
+"@babel/plugin-syntax-function-bind@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.7.4.tgz#625ad69fe4dcb56147fa5b0a68fbaff96fd25864"
+ integrity sha512-dF3QkkaFA3Z7eiD2Cv7Y5x4w2sAKQVHUV2hLqi9iPKexw+/oqpL4crnnalg/Lq31XN33cH3G41kONSCqu06i/Q==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-function-sent@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.2.0.tgz#91474d4d400604e4c6cbd4d77cd6cb3b8565576c"
- integrity sha512-2MOVuJ6IMAifp2cf0RFkHQaOvHpbBYyWCvgtF/WVqXhTd7Bgtov8iXVCadLXp2FN1BrI2EFl+JXuwXy0qr3KoQ==
+"@babel/plugin-syntax-function-sent@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.7.4.tgz#68ce237184d475c97cd9464cc1910078581daa70"
+ integrity sha512-GmU/IB1NfhxuHbYgrFxdo4w+1c9m19rJwJGoF0JD6XsXS7gxCZIL5ID2vmMdGEQbKUsu3eWC2Y2gvI5bKi/dMA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-import-meta@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.2.0.tgz#2333ef4b875553a3bcd1e93f8ebc09f5b9213a40"
- integrity sha512-Hq6kFSZD7+PHkmBN8bCpHR6J8QEoCuEV/B38AIQscYjgMZkGlXB7cHNFzP5jR4RCh5545yP1ujHdmO7hAgKtBA==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.7.4.tgz#3e9e4630780df5885b801f53c5f68d75e99e5261"
+ integrity sha512-hl6aKgm2IbVB+X9Z2xcKvGObOOS//vbohHPpNvd8iaKA3XQi3Sz/3oOyb3GLes6hY871mkbZQYK7lxriVECRAQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-json-strings@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz#72bd13f6ffe1d25938129d2a186b11fd62951470"
- integrity sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg==
+"@babel/plugin-syntax-json-strings@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.7.4.tgz#86e63f7d2e22f9e27129ac4e83ea989a382e86cc"
+ integrity sha512-QpGupahTQW1mHRXddMG5srgpHWqRLwJnJZKXTigB9RPFCCGbDGCgBeM/iC82ICXp414WeYx/tD54w7M2qRqTMg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-jsx@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.2.0.tgz#0b85a3b4bc7cdf4cc4b8bf236335b907ca22e7c7"
- integrity sha512-VyN4QANJkRW6lDBmENzRszvZf3/4AXaj9YR7GwrWeeN9tEBPuXbmDYVU9bYBN0D70zCWVwUy0HWq2553VCb6Hw==
+"@babel/plugin-syntax-jsx@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.7.4.tgz#dab2b56a36fb6c3c222a1fbc71f7bf97f327a9ec"
+ integrity sha512-wuy6fiMe9y7HeZBWXYCGt2RGxZOj0BImZ9EyXJVnVGBKO/Br592rbR3rtIQn0eQhAk9vqaKP5n8tVqEFBQMfLg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-logical-assignment-operators@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.2.0.tgz#fcab7388530e96c6f277ce494c55caa6c141fcfb"
- integrity sha512-l/NKSlrnvd73/EL540t9hZhcSo4TULBrIPs9Palju8Oc/A8DXDO+xQf04whfeuZLpi8AuIvCAdpKmmubLN4EfQ==
+"@babel/plugin-syntax-logical-assignment-operators@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.7.4.tgz#630f17d39b2efccbd7ddebb3844e389d606d884d"
+ integrity sha512-gNtCBpD7ENcpBz8v/ijzs2XsMrw+1eruYvg4/NVIohhDmL/qS1dIs22pcbKe0+DQWoKFuC0rVWo03VFjueafsQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-nullish-coalescing-operator@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.2.0.tgz#f75083dfd5ade73e783db729bbd87e7b9efb7624"
- integrity sha512-lRCEaKE+LTxDQtgbYajI04ddt6WW0WJq57xqkAZ+s11h4YgfRHhVA/Y2VhfPzzFD4qeLHWg32DMp9HooY4Kqlg==
+"@babel/plugin-syntax-nullish-coalescing-operator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.7.4.tgz#e53b751d0c3061b1ba3089242524b65a7a9da12b"
+ integrity sha512-XKh/yIRPiQTOeBg0QJjEus5qiSKucKAiApNtO1psqG7D17xmE+X2i5ZqBEuSvo0HRuyPaKaSN/Gy+Ha9KFQolw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-numeric-separator@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.2.0.tgz#7470fe070c2944469a756752a69a6963135018be"
- integrity sha512-DroeVNkO/BnGpL2R7+ZNZqW+E24aR/4YWxP3Qb15d6lPU8KDzF8HlIUIRCOJRn4X77/oyW4mJY+7FHfY82NLtQ==
+"@babel/plugin-syntax-numeric-separator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.7.4.tgz#39818f8042a09d4c6248d85d82555369da4da5c4"
+ integrity sha512-vmlUUBlLuFnbpaR+1kKIdo62xQEN+THWbtAHSEilo+0rHl2dKKCn6GLUVKpI848wL/T0ZPQgAy8asRJ9yYEjog==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-object-rest-spread@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz#3b7a3e733510c57e820b9142a6579ac8b0dfad2e"
- integrity sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA==
+"@babel/plugin-syntax-object-rest-spread@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz#47cf220d19d6d0d7b154304701f468fc1cc6ff46"
+ integrity sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-optional-catch-binding@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz#a94013d6eda8908dfe6a477e7f9eda85656ecf5c"
- integrity sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w==
+"@babel/plugin-syntax-optional-catch-binding@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.7.4.tgz#a3e38f59f4b6233867b4a92dcb0ee05b2c334aa6"
+ integrity sha512-4ZSuzWgFxqHRE31Glu+fEr/MirNZOMYmD/0BhBWyLyOOQz/gTAl7QmWm2hX1QxEIXsr2vkdlwxIzTyiYRC4xcQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-optional-chaining@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.2.0.tgz#a59d6ae8c167e7608eaa443fda9fa8fa6bf21dff"
- integrity sha512-HtGCtvp5Uq/jH/WNUPkK6b7rufnCPLLlDAFN7cmACoIjaOOiXxUt3SswU5loHqrhtqTsa/WoLQ1OQ1AGuZqaWA==
+"@babel/plugin-syntax-optional-chaining@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.7.4.tgz#c91fdde6de85d2eb8906daea7b21944c3610c901"
+ integrity sha512-2MqYD5WjZSbJdUagnJvIdSfkb/ucOC9/1fRJxm7GAxY6YQLWlUvkfxoNbUPcPLHJyetKUDQ4+yyuUyAoc0HriA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-pipeline-operator@^7.5.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.5.0.tgz#8ea7c2c22847c797748bf07752722a317079dc1e"
- integrity sha512-5FVxPiMTMXWk4R7Kq9pt272nDu8VImJdaIzvXFSTcXFbgKWWaOdbic12TvUvl6cK+AE5EgnhwvxuWik4ZYYdzg==
+"@babel/plugin-syntax-pipeline-operator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.7.4.tgz#8bfe2648196829f1c442ae7087f2ad92083415f8"
+ integrity sha512-llA4gBPpZWeEQLll8q0FYTLQ/PyITMxqlms7c6DnSVCLtzyBr+YsPMDkwWyEzVADszZs+v0HTL3Oftw++Admlg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-syntax-throw-expressions@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.2.0.tgz#79001ee2afe1b174b1733cdc2fc69c9a46a0f1f8"
- integrity sha512-ngwynuqu1Rx0JUS9zxSDuPgW1K8TyVZCi2hHehrL4vyjqE7RGoNHWlZsS7KQT2vw9Yjk4YLa0+KldBXTRdPLRg==
+"@babel/plugin-syntax-throw-expressions@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.7.4.tgz#2e1e91485f9a35f1f71547717ccd8407a900092c"
+ integrity sha512-qtLTzzOJ1Co6tQ8pMqnsfRgeUfzExP90Tc6GISTC34O0lR6IDvymWLfVJFcJaQinz6reciQ4auALV3JM+b3D/Q==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-arrow-functions@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz#9aeafbe4d6ffc6563bf8f8372091628f00779550"
- integrity sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg==
+"@babel/plugin-syntax-top-level-await@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.4.tgz#bd7d8fa7b9fee793a36e4027fd6dd1aa32f946da"
+ integrity sha512-wdsOw0MvkL1UIgiQ/IFr3ETcfv1xb8RMM0H9wbiDyLaJFyiDg5oZvDLCXosIXmFeIlweML5iOBXAkqddkYNizg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-async-to-generator@^7.5.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz#89a3848a0166623b5bc481164b5936ab947e887e"
- integrity sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg==
+"@babel/plugin-transform-arrow-functions@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.7.4.tgz#76309bd578addd8aee3b379d809c802305a98a12"
+ integrity sha512-zUXy3e8jBNPiffmqkHRNDdZM2r8DWhCB7HhcoyZjiK1TxYEluLHAvQuYnTT+ARqRpabWqy/NHkO6e3MsYB5YfA==
dependencies:
- "@babel/helper-module-imports" "^7.0.0"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-remap-async-to-generator" "^7.1.0"
-"@babel/plugin-transform-block-scoped-functions@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz#5d3cc11e8d5ddd752aa64c9148d0db6cb79fd190"
- integrity sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w==
+"@babel/plugin-transform-async-to-generator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.4.tgz#694cbeae6d613a34ef0292713fa42fb45c4470ba"
+ integrity sha512-zpUTZphp5nHokuy8yLlyafxCJ0rSlFoSHypTUWgpdwoDXWQcseaect7cJ8Ppk6nunOM6+5rPMkod4OYKPR5MUg==
+ dependencies:
+ "@babel/helper-module-imports" "^7.7.4"
+ "@babel/helper-plugin-utils" "^7.0.0"
+ "@babel/helper-remap-async-to-generator" "^7.7.4"
+
+"@babel/plugin-transform-block-scoped-functions@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.7.4.tgz#d0d9d5c269c78eaea76227ace214b8d01e4d837b"
+ integrity sha512-kqtQzwtKcpPclHYjLK//3lH8OFsCDuDJBaFhVwf8kqdnF6MN4l618UDlcA7TfRs3FayrHj+svYnSX8MC9zmUyQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-block-scoping@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.2.tgz#96c33ab97a9ae500cc6f5b19e04a7e6553360a79"
- integrity sha512-zZT8ivau9LOQQaOGC7bQLQOT4XPkPXgN2ERfUgk1X8ql+mVkLc4E8eKk+FO3o0154kxzqenWCorfmEXpEZcrSQ==
+"@babel/plugin-transform-block-scoping@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.7.4.tgz#200aad0dcd6bb80372f94d9e628ea062c58bf224"
+ integrity sha512-2VBe9u0G+fDt9B5OV5DQH4KBf5DoiNkwFKOz0TCvBWvdAN2rOykCTkrL+jTLxfCAm76l9Qo5OqL7HBOx2dWggg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
lodash "^4.17.13"
-"@babel/plugin-transform-classes@^7.5.5":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.5.5.tgz#d094299d9bd680a14a2a0edae38305ad60fb4de9"
- integrity sha512-U2htCNK/6e9K7jGyJ++1p5XRU+LJjrwtoiVn9SzRlDT2KubcZ11OOwy3s24TjHxPgxNwonCYP7U2K51uVYCMDg==
+"@babel/plugin-transform-classes@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.4.tgz#c92c14be0a1399e15df72667067a8f510c9400ec"
+ integrity sha512-sK1mjWat7K+buWRuImEzjNf68qrKcrddtpQo3swi9j7dUcG6y6R6+Di039QN2bD1dykeswlagupEmpOatFHHUg==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.0.0"
- "@babel/helper-define-map" "^7.5.5"
- "@babel/helper-function-name" "^7.1.0"
- "@babel/helper-optimise-call-expression" "^7.0.0"
+ "@babel/helper-annotate-as-pure" "^7.7.4"
+ "@babel/helper-define-map" "^7.7.4"
+ "@babel/helper-function-name" "^7.7.4"
+ "@babel/helper-optimise-call-expression" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-replace-supers" "^7.5.5"
- "@babel/helper-split-export-declaration" "^7.4.4"
+ "@babel/helper-replace-supers" "^7.7.4"
+ "@babel/helper-split-export-declaration" "^7.7.4"
globals "^11.1.0"
-"@babel/plugin-transform-computed-properties@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz#83a7df6a658865b1c8f641d510c6f3af220216da"
- integrity sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA==
+"@babel/plugin-transform-computed-properties@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.7.4.tgz#e856c1628d3238ffe12d668eb42559f79a81910d"
+ integrity sha512-bSNsOsZnlpLLyQew35rl4Fma3yKWqK3ImWMSC/Nc+6nGjC9s5NFWAer1YQ899/6s9HxO2zQC1WoFNfkOqRkqRQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-destructuring@^7.6.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.6.0.tgz#44bbe08b57f4480094d57d9ffbcd96d309075ba6"
- integrity sha512-2bGIS5P1v4+sWTCnKNDZDxbGvEqi0ijeqM/YqHtVGrvG2y0ySgnEEhXErvE9dA0bnIzY9bIzdFK0jFA46ASIIQ==
+"@babel/plugin-transform-destructuring@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.7.4.tgz#2b713729e5054a1135097b6a67da1b6fe8789267"
+ integrity sha512-4jFMXI1Cu2aXbcXXl8Lr6YubCn6Oc7k9lLsu8v61TZh+1jny2BWmdtvY9zSUlLdGUvcy9DMAWyZEOqjsbeg/wA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-dotall-regex@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.6.2.tgz#44abb948b88f0199a627024e1508acaf8dc9b2f9"
- integrity sha512-KGKT9aqKV+9YMZSkowzYoYEiHqgaDhGmPNZlZxX6UeHC4z30nC1J9IrZuGqbYFB1jaIGdv91ujpze0exiVK8bA==
+"@babel/plugin-transform-dotall-regex@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz#f7ccda61118c5b7a2599a72d5e3210884a021e96"
+ integrity sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw==
dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-regex" "^7.4.4"
- regexpu-core "^4.6.0"
-"@babel/plugin-transform-duplicate-keys@^7.5.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz#c5dbf5106bf84cdf691222c0974c12b1df931853"
- integrity sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ==
+"@babel/plugin-transform-duplicate-keys@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.7.4.tgz#3d21731a42e3f598a73835299dd0169c3b90ac91"
+ integrity sha512-g1y4/G6xGWMD85Tlft5XedGaZBCIVN+/P0bs6eabmcPP9egFleMAo65OOjlhcz1njpwagyY3t0nsQC9oTFegJA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-exponentiation-operator@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz#a63868289e5b4007f7054d46491af51435766008"
- integrity sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A==
+"@babel/plugin-transform-exponentiation-operator@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.7.4.tgz#dd30c0191e3a1ba19bcc7e389bdfddc0729d5db9"
+ integrity sha512-MCqiLfCKm6KEA1dglf6Uqq1ElDIZwFuzz1WH5mTf8k2uQSxEJMbOIEh7IZv7uichr7PMfi5YVSrr1vz+ipp7AQ==
dependencies:
- "@babel/helper-builder-binary-assignment-operator-visitor" "^7.1.0"
+ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-flow-strip-types@^7.0.0":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.4.4.tgz#d267a081f49a8705fc9146de0768c6b58dccd8f7"
- integrity sha512-WyVedfeEIILYEaWGAUWzVNyqG4sfsNooMhXWsu/YzOvVGcsnPb5PguysjJqI3t3qiaYj0BR8T2f5njdjTGe44Q==
+"@babel/plugin-transform-flow-strip-types@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.7.4.tgz#cc73f85944782df1d77d80977bc097920a8bf31a"
+ integrity sha512-w9dRNlHY5ElNimyMYy0oQowvQpwt/PRHI0QS98ZJCTZU2bvSnKXo5zEiD5u76FBPigTm8TkqzmnUTg16T7qbkA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-flow" "^7.2.0"
+ "@babel/plugin-syntax-flow" "^7.7.4"
-"@babel/plugin-transform-for-of@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz#0267fc735e24c808ba173866c6c4d1440fc3c556"
- integrity sha512-9T/5Dlr14Z9TIEXLXkt8T1DU7F24cbhwhMNUziN3hB1AXoZcdzPcTiKGRn/6iOymDqtTKWnr/BtRKN9JwbKtdQ==
+"@babel/plugin-transform-for-of@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.7.4.tgz#248800e3a5e507b1f103d8b4ca998e77c63932bc"
+ integrity sha512-zZ1fD1B8keYtEcKF+M1TROfeHTKnijcVQm0yO/Yu1f7qoDoxEIc/+GX6Go430Bg84eM/xwPFp0+h4EbZg7epAA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-function-name@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.4.tgz#e1436116abb0610c2259094848754ac5230922ad"
- integrity sha512-iU9pv7U+2jC9ANQkKeNF6DrPy4GBa4NWQtl6dHB4Pb3izX2JOEvDTFarlNsBj/63ZEzNNIAMs3Qw4fNCcSOXJA==
+"@babel/plugin-transform-function-name@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.4.tgz#75a6d3303d50db638ff8b5385d12451c865025b1"
+ integrity sha512-E/x09TvjHNhsULs2IusN+aJNRV5zKwxu1cpirZyRPw+FyyIKEHPXTsadj48bVpc1R5Qq1B5ZkzumuFLytnbT6g==
dependencies:
- "@babel/helper-function-name" "^7.1.0"
+ "@babel/helper-function-name" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-literals@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz#690353e81f9267dad4fd8cfd77eafa86aba53ea1"
- integrity sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg==
+"@babel/plugin-transform-literals@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.7.4.tgz#27fe87d2b5017a2a5a34d1c41a6b9f6a6262643e"
+ integrity sha512-X2MSV7LfJFm4aZfxd0yLVFrEXAgPqYoDG53Br/tCKiKYfX0MjVjQeWPIhPHHsCqzwQANq+FLN786fF5rgLS+gw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-member-expression-literals@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz#fa10aa5c58a2cb6afcf2c9ffa8cb4d8b3d489a2d"
- integrity sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA==
+"@babel/plugin-transform-member-expression-literals@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.7.4.tgz#aee127f2f3339fc34ce5e3055d7ffbf7aa26f19a"
+ integrity sha512-9VMwMO7i69LHTesL0RdGy93JU6a+qOPuvB4F4d0kR0zyVjJRVJRaoaGjhtki6SzQUu8yen/vxPKN6CWnCUw6bA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-modules-amd@^7.5.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz#ef00435d46da0a5961aa728a1d2ecff063e4fb91"
- integrity sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg==
+"@babel/plugin-transform-modules-amd@^7.7.5":
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.5.tgz#39e0fb717224b59475b306402bb8eedab01e729c"
+ integrity sha512-CT57FG4A2ZUNU1v+HdvDSDrjNWBrtCmSH6YbbgN3Lrf0Di/q/lWRxZrE72p3+HCCz9UjfZOEBdphgC0nzOS6DQ==
dependencies:
- "@babel/helper-module-transforms" "^7.1.0"
+ "@babel/helper-module-transforms" "^7.7.5"
"@babel/helper-plugin-utils" "^7.0.0"
babel-plugin-dynamic-import-node "^2.3.0"
-"@babel/plugin-transform-modules-commonjs@^7.2.0", "@babel/plugin-transform-modules-commonjs@^7.6.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.6.0.tgz#39dfe957de4420445f1fcf88b68a2e4aa4515486"
- integrity sha512-Ma93Ix95PNSEngqomy5LSBMAQvYKVe3dy+JlVJSHEXZR5ASL9lQBedMiCyVtmTLraIDVRE3ZjTZvmXXD2Ozw3g==
+"@babel/plugin-transform-modules-commonjs@^7.2.0", "@babel/plugin-transform-modules-commonjs@^7.7.5":
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.5.tgz#1d27f5eb0bcf7543e774950e5b2fa782e637b345"
+ integrity sha512-9Cq4zTFExwFhQI6MT1aFxgqhIsMWQWDVwOgLzl7PTWJHsNaqFvklAU+Oz6AQLAS0dJKTwZSOCo20INwktxpi3Q==
dependencies:
- "@babel/helper-module-transforms" "^7.4.4"
+ "@babel/helper-module-transforms" "^7.7.5"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-simple-access" "^7.1.0"
+ "@babel/helper-simple-access" "^7.7.4"
babel-plugin-dynamic-import-node "^2.3.0"
-"@babel/plugin-transform-modules-systemjs@^7.5.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz#e75266a13ef94202db2a0620977756f51d52d249"
- integrity sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg==
+"@babel/plugin-transform-modules-systemjs@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.4.tgz#cd98152339d3e763dfe838b7d4273edaf520bb30"
+ integrity sha512-y2c96hmcsUi6LrMqvmNDPBBiGCiQu0aYqpHatVVu6kD4mFEXKjyNxd/drc18XXAf9dv7UXjrZwBVmTTGaGP8iw==
dependencies:
- "@babel/helper-hoist-variables" "^7.4.4"
+ "@babel/helper-hoist-variables" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
babel-plugin-dynamic-import-node "^2.3.0"
-"@babel/plugin-transform-modules-umd@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz#7678ce75169f0877b8eb2235538c074268dd01ae"
- integrity sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw==
+"@babel/plugin-transform-modules-umd@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.4.tgz#1027c355a118de0aae9fee00ad7813c584d9061f"
+ integrity sha512-u2B8TIi0qZI4j8q4C51ktfO7E3cQ0qnaXFI1/OXITordD40tt17g/sXqgNNCcMTcBFKrUPcGDx+TBJuZxLx7tw==
dependencies:
- "@babel/helper-module-transforms" "^7.1.0"
+ "@babel/helper-module-transforms" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-named-capturing-groups-regex@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.6.2.tgz#c1ca0bb84b94f385ca302c3932e870b0fb0e522b"
- integrity sha512-xBdB+XOs+lgbZc2/4F5BVDVcDNS4tcSKQc96KmlqLEAwz6tpYPEvPdmDfvVG0Ssn8lAhronaRs6Z6KSexIpK5g==
+"@babel/plugin-transform-named-capturing-groups-regex@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.4.tgz#fb3bcc4ee4198e7385805007373d6b6f42c98220"
+ integrity sha512-jBUkiqLKvUWpv9GLSuHUFYdmHg0ujC1JEYoZUfeOOfNydZXp1sXObgyPatpcwjWgsdBGsagWW0cdJpX/DO2jMw==
dependencies:
- regexpu-core "^4.6.0"
+ "@babel/helper-create-regexp-features-plugin" "^7.7.4"
-"@babel/plugin-transform-new-target@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.4.tgz#18d120438b0cc9ee95a47f2c72bc9768fbed60a5"
- integrity sha512-r1z3T2DNGQwwe2vPGZMBNjioT2scgWzK9BCnDEh+46z8EEwXBq24uRzd65I7pjtugzPSj921aM15RpESgzsSuA==
+"@babel/plugin-transform-new-target@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.7.4.tgz#4a0753d2d60639437be07b592a9e58ee00720167"
+ integrity sha512-CnPRiNtOG1vRodnsyGX37bHQleHE14B9dnnlgSeEs3ek3fHN1A1SScglTCg1sfbe7sRQ2BUcpgpTpWSfMKz3gg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-object-super@^7.5.5":
- version "7.5.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.5.5.tgz#c70021df834073c65eb613b8679cc4a381d1a9f9"
- integrity sha512-un1zJQAhSosGFBduPgN/YFNvWVpRuHKU7IHBglLoLZsGmruJPOo6pbInneflUdmq7YvSVqhpPs5zdBvLnteltQ==
+"@babel/plugin-transform-object-super@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.7.4.tgz#48488937a2d586c0148451bf51af9d7dda567262"
+ integrity sha512-ho+dAEhC2aRnff2JCA0SAK7V2R62zJd/7dmtoe7MHcso4C2mS+vZjn1Pb1pCVZvJs1mgsvv5+7sT+m3Bysb6eg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-replace-supers" "^7.5.5"
+ "@babel/helper-replace-supers" "^7.7.4"
-"@babel/plugin-transform-parameters@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.4.tgz#7556cf03f318bd2719fe4c922d2d808be5571e16"
- integrity sha512-oMh5DUO1V63nZcu/ZVLQFqiihBGo4OpxJxR1otF50GMeCLiRx5nUdtokd+u9SuVJrvvuIh9OosRFPP4pIPnwmw==
+"@babel/plugin-transform-parameters@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz#da4555c97f39b51ac089d31c7380f03bca4075ce"
+ integrity sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw==
dependencies:
- "@babel/helper-call-delegate" "^7.4.4"
- "@babel/helper-get-function-arity" "^7.0.0"
+ "@babel/helper-call-delegate" "^7.7.4"
+ "@babel/helper-get-function-arity" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-property-literals@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz#03e33f653f5b25c4eb572c98b9485055b389e905"
- integrity sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ==
+"@babel/plugin-transform-property-literals@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.7.4.tgz#2388d6505ef89b266103f450f9167e6bd73f98c2"
+ integrity sha512-MatJhlC4iHsIskWYyawl53KuHrt+kALSADLQQ/HkhTjX954fkxIEh4q5slL4oRAnsm/eDoZ4q0CIZpcqBuxhJQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-react-display-name@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.2.0.tgz#ebfaed87834ce8dc4279609a4f0c324c156e3eb0"
- integrity sha512-Htf/tPa5haZvRMiNSQSFifK12gtr/8vwfr+A9y69uF0QcU77AVu4K7MiHEkTxF7lQoHOL0F9ErqgfNEAKgXj7A==
+"@babel/plugin-transform-react-display-name@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.7.4.tgz#9f2b80b14ebc97eef4a9b29b612c58ed9c0d10dd"
+ integrity sha512-sBbIvqYkthai0X0vkD2xsAwluBp+LtNHH+/V4a5ydifmTtb8KOVOlrMIk/MYmIc4uTYDnjZUHQildYNo36SRJw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-react-jsx-self@^7.0.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.2.0.tgz#461e21ad9478f1031dd5e276108d027f1b5240ba"
- integrity sha512-v6S5L/myicZEy+jr6ielB0OR8h+EH/1QFx/YJ7c7Ua+7lqsjj/vW6fD5FR9hB/6y7mGbfT4vAURn3xqBxsUcdg==
+"@babel/plugin-transform-react-jsx-self@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.7.4.tgz#81b8fbfd14b2215e8f1c2c3adfba266127b0231c"
+ integrity sha512-PWYjSfqrO273mc1pKCRTIJXyqfc9vWYBax88yIhQb+bpw3XChVC7VWS4VwRVs63wFHKxizvGSd00XEr+YB9Q2A==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-jsx" "^7.2.0"
+ "@babel/plugin-syntax-jsx" "^7.7.4"
-"@babel/plugin-transform-react-jsx-source@^7.0.0":
- version "7.5.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.5.0.tgz#583b10c49cf057e237085bcbd8cc960bd83bd96b"
- integrity sha512-58Q+Jsy4IDCZx7kqEZuSDdam/1oW8OdDX8f+Loo6xyxdfg1yF0GE2XNJQSTZCaMol93+FBzpWiPEwtbMloAcPg==
+"@babel/plugin-transform-react-jsx-source@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.7.4.tgz#8994b1bf6014b133f5a46d3b7d1ee5f5e3e72c10"
+ integrity sha512-5ZU9FnPhqtHsOXxutRtXZAzoEJwDaP32QcobbMP1/qt7NYcsCNK8XgzJcJfoEr/ZnzVvUNInNjIW22Z6I8p9mg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-jsx" "^7.2.0"
+ "@babel/plugin-syntax-jsx" "^7.7.4"
-"@babel/plugin-transform-react-jsx@^7.0.0":
- version "7.3.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.3.0.tgz#f2cab99026631c767e2745a5368b331cfe8f5290"
- integrity sha512-a/+aRb7R06WcKvQLOu4/TpjKOdvVEKRLWFpKcNuHhiREPgGRB4TQJxq07+EZLS8LFVYpfq1a5lDUnuMdcCpBKg==
+"@babel/plugin-transform-react-jsx@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.7.4.tgz#d91205717fae4e2f84d020cd3057ec02a10f11da"
+ integrity sha512-LixU4BS95ZTEAZdPaIuyg/k8FiiqN9laQ0dMHB4MlpydHY53uQdWCUrwjLr5o6ilS6fAgZey4Q14XBjl5tL6xw==
dependencies:
- "@babel/helper-builder-react-jsx" "^7.3.0"
+ "@babel/helper-builder-react-jsx" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-jsx" "^7.2.0"
+ "@babel/plugin-syntax-jsx" "^7.7.4"
-"@babel/plugin-transform-regenerator@^7.4.5":
- version "7.4.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.5.tgz#629dc82512c55cee01341fb27bdfcb210354680f"
- integrity sha512-gBKRh5qAaCWntnd09S8QC7r3auLCqq5DI6O0DlfoyDjslSBVqBibrMdsqO+Uhmx3+BlOmE/Kw1HFxmGbv0N9dA==
+"@babel/plugin-transform-regenerator@^7.7.5":
+ version "7.7.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.5.tgz#3a8757ee1a2780f390e89f246065ecf59c26fce9"
+ integrity sha512-/8I8tPvX2FkuEyWbjRCt4qTAgZK0DVy8QRguhA524UH48RfGJy94On2ri+dCuwOpcerPRl9O4ebQkRcVzIaGBw==
dependencies:
regenerator-transform "^0.14.0"
-"@babel/plugin-transform-reserved-words@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz#4792af87c998a49367597d07fedf02636d2e1634"
- integrity sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw==
+"@babel/plugin-transform-reserved-words@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.7.4.tgz#6a7cf123ad175bb5c69aec8f6f0770387ed3f1eb"
+ integrity sha512-OrPiUB5s5XvkCO1lS7D8ZtHcswIC57j62acAnJZKqGGnHP+TIc/ljQSrgdX/QyOTdEK5COAhuc820Hi1q2UgLQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-transform-runtime@^7.0.0":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.6.2.tgz#2669f67c1fae0ae8d8bf696e4263ad52cb98b6f8"
- integrity sha512-cqULw/QB4yl73cS5Y0TZlQSjDvNkzDbu0FurTZyHlJpWE5T3PCMdnyV+xXoH1opr1ldyHODe3QAX3OMAii5NxA==
+ version "7.7.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.6.tgz#4f2b548c88922fb98ec1c242afd4733ee3e12f61"
+ integrity sha512-tajQY+YmXR7JjTwRvwL4HePqoL3DYxpYXIHKVvrOIvJmeHe2y1w4tz5qz9ObUDC9m76rCzIMPyn4eERuwA4a4A==
dependencies:
- "@babel/helper-module-imports" "^7.0.0"
+ "@babel/helper-module-imports" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
resolve "^1.8.1"
semver "^5.5.1"
-"@babel/plugin-transform-shorthand-properties@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0"
- integrity sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg==
+"@babel/plugin-transform-shorthand-properties@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.7.4.tgz#74a0a9b2f6d67a684c6fbfd5f0458eb7ba99891e"
+ integrity sha512-q+suddWRfIcnyG5YiDP58sT65AJDZSUhXQDZE3r04AuqD6d/XLaQPPXSBzP2zGerkgBivqtQm9XKGLuHqBID6Q==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-spread@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.6.2.tgz#fc77cf798b24b10c46e1b51b1b88c2bf661bb8dd"
- integrity sha512-DpSvPFryKdK1x+EDJYCy28nmAaIMdxmhot62jAXF/o99iA33Zj2Lmcp3vDmz+MUh0LNYVPvfj5iC3feb3/+PFg==
+"@babel/plugin-transform-spread@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.7.4.tgz#aa673b356fe6b7e70d69b6e33a17fef641008578"
+ integrity sha512-8OSs0FLe5/80cndziPlg4R0K6HcWSM0zyNhHhLsmw/Nc5MaA49cAsnoJ/t/YZf8qkG7fD+UjTRaApVDB526d7Q==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-sticky-regex@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz#a1e454b5995560a9c1e0d537dfc15061fd2687e1"
- integrity sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw==
+"@babel/plugin-transform-sticky-regex@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.7.4.tgz#ffb68c05090c30732076b1285dc1401b404a123c"
+ integrity sha512-Ls2NASyL6qtVe1H1hXts9yuEeONV2TJZmplLONkMPUG158CtmnrzW5Q5teibM5UVOFjG0D3IC5mzXR6pPpUY7A==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/helper-regex" "^7.0.0"
-"@babel/plugin-transform-template-literals@^7.4.4":
- version "7.4.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.4.4.tgz#9d28fea7bbce637fb7612a0750989d8321d4bcb0"
- integrity sha512-mQrEC4TWkhLN0z8ygIvEL9ZEToPhG5K7KDW3pzGqOfIGZ28Jb0POUkeWcoz8HnHvhFy6dwAT1j8OzqN8s804+g==
+"@babel/plugin-transform-template-literals@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.7.4.tgz#1eb6411736dd3fe87dbd20cc6668e5121c17d604"
+ integrity sha512-sA+KxLwF3QwGj5abMHkHgshp9+rRz+oY9uoRil4CyLtgEuE/88dpkeWgNk5qKVsJE9iSfly3nvHapdRiIS2wnQ==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.0.0"
+ "@babel/helper-annotate-as-pure" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-typeof-symbol@^7.2.0":
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz#117d2bcec2fbf64b4b59d1f9819894682d29f2b2"
- integrity sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw==
+"@babel/plugin-transform-typeof-symbol@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.7.4.tgz#3174626214f2d6de322882e498a38e8371b2140e"
+ integrity sha512-KQPUQ/7mqe2m0B8VecdyaW5XcQYaePyl9R7IsKd+irzj6jvbhoGnRE+M0aNkyAzI07VfUQ9266L5xMARitV3wg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
-"@babel/plugin-transform-unicode-regex@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.6.2.tgz#b692aad888a7e8d8b1b214be6b9dc03d5031f698"
- integrity sha512-orZI6cWlR3nk2YmYdb0gImrgCUwb5cBUwjf6Ks6dvNVvXERkwtJWOQaEOjPiu0Gu1Tq6Yq/hruCZZOOi9F34Dw==
+"@babel/plugin-transform-unicode-regex@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.4.tgz#a3c0f65b117c4c81c5b6484f2a5e7b95346b83ae"
+ integrity sha512-N77UUIV+WCvE+5yHw+oks3m18/umd7y392Zv7mYTpFqHtkpcc+QUz+gLJNTWVlWROIWeLqY0f3OjZxV5TcXnRw==
dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-regex" "^7.4.4"
- regexpu-core "^4.6.0"
"@babel/polyfill@^7.0.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.6.0.tgz#6d89203f8b6cd323e8d946e47774ea35dc0619cc"
- integrity sha512-q5BZJI0n/B10VaQQvln1IlDK3BTBJFbADx7tv+oXDPIDZuTo37H5Adb9jhlXm/fEN4Y7/64qD9mnrJJG7rmaTw==
+ version "7.7.0"
+ resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.7.0.tgz#e1066e251e17606ec7908b05617f9b7f8180d8f3"
+ integrity sha512-/TS23MVvo34dFmf8mwCisCbWGrfhbiWZSwBo6HkADTBhUa2Q/jWltyY/tpofz/b6/RIhqaqQcquptCirqIhOaQ==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.2"
"@babel/preset-env@^7.0.0", "@babel/preset-env@^7.1.0":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.6.2.tgz#abbb3ed785c7fe4220d4c82a53621d71fc0c75d3"
- integrity sha512-Ru7+mfzy9M1/YTEtlDS8CD45jd22ngb9tXnn64DvQK3ooyqSw9K4K9DUWmYknTTVk4TqygL9dqCrZgm1HMea/Q==
+ version "7.7.6"
+ resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.6.tgz#39ac600427bbb94eec6b27953f1dfa1d64d457b2"
+ integrity sha512-k5hO17iF/Q7tR9Jv8PdNBZWYW6RofxhnxKjBMc0nG4JTaWvOTiPoO/RLFwAKcA4FpmuBFm6jkoqaRJLGi0zdaQ==
dependencies:
- "@babel/helper-module-imports" "^7.0.0"
+ "@babel/helper-module-imports" "^7.7.4"
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-proposal-async-generator-functions" "^7.2.0"
- "@babel/plugin-proposal-dynamic-import" "^7.5.0"
- "@babel/plugin-proposal-json-strings" "^7.2.0"
- "@babel/plugin-proposal-object-rest-spread" "^7.6.2"
- "@babel/plugin-proposal-optional-catch-binding" "^7.2.0"
- "@babel/plugin-proposal-unicode-property-regex" "^7.6.2"
- "@babel/plugin-syntax-async-generators" "^7.2.0"
- "@babel/plugin-syntax-dynamic-import" "^7.2.0"
- "@babel/plugin-syntax-json-strings" "^7.2.0"
- "@babel/plugin-syntax-object-rest-spread" "^7.2.0"
- "@babel/plugin-syntax-optional-catch-binding" "^7.2.0"
- "@babel/plugin-transform-arrow-functions" "^7.2.0"
- "@babel/plugin-transform-async-to-generator" "^7.5.0"
- "@babel/plugin-transform-block-scoped-functions" "^7.2.0"
- "@babel/plugin-transform-block-scoping" "^7.6.2"
- "@babel/plugin-transform-classes" "^7.5.5"
- "@babel/plugin-transform-computed-properties" "^7.2.0"
- "@babel/plugin-transform-destructuring" "^7.6.0"
- "@babel/plugin-transform-dotall-regex" "^7.6.2"
- "@babel/plugin-transform-duplicate-keys" "^7.5.0"
- "@babel/plugin-transform-exponentiation-operator" "^7.2.0"
- "@babel/plugin-transform-for-of" "^7.4.4"
- "@babel/plugin-transform-function-name" "^7.4.4"
- "@babel/plugin-transform-literals" "^7.2.0"
- "@babel/plugin-transform-member-expression-literals" "^7.2.0"
- "@babel/plugin-transform-modules-amd" "^7.5.0"
- "@babel/plugin-transform-modules-commonjs" "^7.6.0"
- "@babel/plugin-transform-modules-systemjs" "^7.5.0"
- "@babel/plugin-transform-modules-umd" "^7.2.0"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.6.2"
- "@babel/plugin-transform-new-target" "^7.4.4"
- "@babel/plugin-transform-object-super" "^7.5.5"
- "@babel/plugin-transform-parameters" "^7.4.4"
- "@babel/plugin-transform-property-literals" "^7.2.0"
- "@babel/plugin-transform-regenerator" "^7.4.5"
- "@babel/plugin-transform-reserved-words" "^7.2.0"
- "@babel/plugin-transform-shorthand-properties" "^7.2.0"
- "@babel/plugin-transform-spread" "^7.6.2"
- "@babel/plugin-transform-sticky-regex" "^7.2.0"
- "@babel/plugin-transform-template-literals" "^7.4.4"
- "@babel/plugin-transform-typeof-symbol" "^7.2.0"
- "@babel/plugin-transform-unicode-regex" "^7.6.2"
- "@babel/types" "^7.6.0"
+ "@babel/plugin-proposal-async-generator-functions" "^7.7.4"
+ "@babel/plugin-proposal-dynamic-import" "^7.7.4"
+ "@babel/plugin-proposal-json-strings" "^7.7.4"
+ "@babel/plugin-proposal-object-rest-spread" "^7.7.4"
+ "@babel/plugin-proposal-optional-catch-binding" "^7.7.4"
+ "@babel/plugin-proposal-unicode-property-regex" "^7.7.4"
+ "@babel/plugin-syntax-async-generators" "^7.7.4"
+ "@babel/plugin-syntax-dynamic-import" "^7.7.4"
+ "@babel/plugin-syntax-json-strings" "^7.7.4"
+ "@babel/plugin-syntax-object-rest-spread" "^7.7.4"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.7.4"
+ "@babel/plugin-syntax-top-level-await" "^7.7.4"
+ "@babel/plugin-transform-arrow-functions" "^7.7.4"
+ "@babel/plugin-transform-async-to-generator" "^7.7.4"
+ "@babel/plugin-transform-block-scoped-functions" "^7.7.4"
+ "@babel/plugin-transform-block-scoping" "^7.7.4"
+ "@babel/plugin-transform-classes" "^7.7.4"
+ "@babel/plugin-transform-computed-properties" "^7.7.4"
+ "@babel/plugin-transform-destructuring" "^7.7.4"
+ "@babel/plugin-transform-dotall-regex" "^7.7.4"
+ "@babel/plugin-transform-duplicate-keys" "^7.7.4"
+ "@babel/plugin-transform-exponentiation-operator" "^7.7.4"
+ "@babel/plugin-transform-for-of" "^7.7.4"
+ "@babel/plugin-transform-function-name" "^7.7.4"
+ "@babel/plugin-transform-literals" "^7.7.4"
+ "@babel/plugin-transform-member-expression-literals" "^7.7.4"
+ "@babel/plugin-transform-modules-amd" "^7.7.5"
+ "@babel/plugin-transform-modules-commonjs" "^7.7.5"
+ "@babel/plugin-transform-modules-systemjs" "^7.7.4"
+ "@babel/plugin-transform-modules-umd" "^7.7.4"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.7.4"
+ "@babel/plugin-transform-new-target" "^7.7.4"
+ "@babel/plugin-transform-object-super" "^7.7.4"
+ "@babel/plugin-transform-parameters" "^7.7.4"
+ "@babel/plugin-transform-property-literals" "^7.7.4"
+ "@babel/plugin-transform-regenerator" "^7.7.5"
+ "@babel/plugin-transform-reserved-words" "^7.7.4"
+ "@babel/plugin-transform-shorthand-properties" "^7.7.4"
+ "@babel/plugin-transform-spread" "^7.7.4"
+ "@babel/plugin-transform-sticky-regex" "^7.7.4"
+ "@babel/plugin-transform-template-literals" "^7.7.4"
+ "@babel/plugin-transform-typeof-symbol" "^7.7.4"
+ "@babel/plugin-transform-unicode-regex" "^7.7.4"
+ "@babel/types" "^7.7.4"
browserslist "^4.6.0"
- core-js-compat "^3.1.1"
+ core-js-compat "^3.4.7"
invariant "^2.2.2"
js-levenshtein "^1.1.3"
semver "^5.5.0"
"@babel/preset-flow@^7.0.0":
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0.tgz#afd764835d9535ec63d8c7d4caf1c06457263da2"
- integrity sha512-bJOHrYOPqJZCkPVbG1Lot2r5OSsB+iUOaxiHdlOeB1yPWS6evswVHwvkDLZ54WTaTRIk89ds0iHmGZSnxlPejQ==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.7.4.tgz#99c1349b6fd7132783196de181e6b32d0949427e"
+ integrity sha512-6LbUqcHD8BcRtXMOp5bc5nJeU8RlKh6q5U8TgZeCrf9ebBdW8Wyy5ujAUnbJfmzQ56Kkq5XtwErC/5+5RHyFYA==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-transform-flow-strip-types" "^7.0.0"
+ "@babel/plugin-transform-flow-strip-types" "^7.7.4"
"@babel/preset-react@^7.0.0":
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0.tgz#e86b4b3d99433c7b3e9e91747e2653958bc6b3c0"
- integrity sha512-oayxyPS4Zj+hF6Et11BwuBkmpgT/zMxyuZgFrMeZID6Hdh3dGlk4sHCAhdBCpuCKW2ppBfl2uCCetlrUIJRY3w==
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.7.4.tgz#3fe2ea698d8fb536d8e7881a592c3c1ee8bf5707"
+ integrity sha512-j+vZtg0/8pQr1H8wKoaJyGL2IEk3rG/GIvua7Sec7meXVIvGycihlGMx5xcU00kqCJbwzHs18xTu3YfREOqQ+g==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-transform-react-display-name" "^7.0.0"
- "@babel/plugin-transform-react-jsx" "^7.0.0"
- "@babel/plugin-transform-react-jsx-self" "^7.0.0"
- "@babel/plugin-transform-react-jsx-source" "^7.0.0"
+ "@babel/plugin-transform-react-display-name" "^7.7.4"
+ "@babel/plugin-transform-react-jsx" "^7.7.4"
+ "@babel/plugin-transform-react-jsx-self" "^7.7.4"
+ "@babel/plugin-transform-react-jsx-source" "^7.7.4"
"@babel/preset-stage-0@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/preset-stage-0/-/preset-stage-0-7.0.0.tgz#999aaec79ee8f0a763042c68c06539c97c6e0646"
integrity sha512-FBMd0IiARPtH5aaOFUVki6evHiJQiY0pFy7fizyRF7dtwc+el3nwpzvhb9qBNzceG1OIJModG1xpE0DDFjPXwA==
-"@babel/register@^7.0.0", "@babel/register@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.6.2.tgz#25765a922202cb06f8bdac5a3b1e70cd6bf3dd45"
- integrity sha512-xgZk2LRZvt6i2SAUWxc7ellk4+OYRgS3Zpsnr13nMS1Qo25w21Uu8o6vTOAqNaxiqrnv30KTYzh9YWY2k21CeQ==
+"@babel/register@^7.0.0", "@babel/register@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.7.4.tgz#45a4956471a9df3b012b747f5781cc084ee8f128"
+ integrity sha512-/fmONZqL6ZMl9KJUYajetCrID6m0xmL4odX7v+Xvoxcv0DdbP/oO0TWIeLUCHqczQ6L6njDMqmqHFy2cp3FFsA==
dependencies:
find-cache-dir "^2.0.0"
lodash "^4.17.13"
- mkdirp "^0.5.1"
+ make-dir "^2.1.0"
pirates "^4.0.0"
- source-map-support "^0.5.9"
-
-"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.2.0", "@babel/runtime@^7.3.1":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.2.tgz#c3d6e41b304ef10dcf13777a33e7694ec4a9a6dd"
- integrity sha512-EXxN64agfUqqIGeEjI5dL5z0Sw0ZwWo1mLTi4mQowCZ42O59b7DRpZAnTC6OqdF28wMBMFKNb/4uFGrVaigSpg==
- dependencies:
- regenerator-runtime "^0.13.2"
+ source-map-support "^0.5.16"
-"@babel/runtime@^7.5.5":
- version "7.7.2"
- resolved "https://registry.yarnpkg.com/@babel%2fruntime/-/runtime-7.7.2.tgz#111a78002a5c25fc8e3361bedc9529c696b85a6a"
- integrity sha1-ERp4ACpcJfyOM2G+3JUpxpa4Wmo=
+"@babel/runtime@^7.0.0", "@babel/runtime@^7.2.0", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3":
+ version "7.7.6"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.6.tgz#d18c511121aff1b4f2cd1d452f1bac9601dd830f"
+ integrity sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw==
dependencies:
regenerator-runtime "^0.13.2"
-"@babel/template@^7.1.0", "@babel/template@^7.4.0", "@babel/template@^7.4.4", "@babel/template@^7.6.0":
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.6.0.tgz#7f0159c7f5012230dad64cca42ec9bdb5c9536e6"
- integrity sha512-5AEH2EXD8euCk446b7edmgFdub/qfH1SN6Nii3+fyXP807QRx9Q73A2N5hNwRRslC2H9sNzaFhsPubkS4L8oNQ==
+"@babel/template@^7.4.0", "@babel/template@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.4.tgz#428a7d9eecffe27deac0a98e23bf8e3675d2a77b"
+ integrity sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==
dependencies:
"@babel/code-frame" "^7.0.0"
- "@babel/parser" "^7.6.0"
- "@babel/types" "^7.6.0"
+ "@babel/parser" "^7.7.4"
+ "@babel/types" "^7.7.4"
-"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.1.4", "@babel/traverse@^7.2.3", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.5", "@babel/traverse@^7.6.2":
- version "7.6.2"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.6.2.tgz#b0e2bfd401d339ce0e6c05690206d1e11502ce2c"
- integrity sha512-8fRE76xNwNttVEF2TwxJDGBLWthUkHWSldmfuBzVRmEDWOtu4XdINTgN7TDWzuLg4bbeIMLvfMFD9we5YcWkRQ==
+"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.4", "@babel/traverse@^7.2.3", "@babel/traverse@^7.4.3", "@babel/traverse@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.7.4.tgz#9c1e7c60fb679fe4fcfaa42500833333c2058558"
+ integrity sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==
dependencies:
"@babel/code-frame" "^7.5.5"
- "@babel/generator" "^7.6.2"
- "@babel/helper-function-name" "^7.1.0"
- "@babel/helper-split-export-declaration" "^7.4.4"
- "@babel/parser" "^7.6.2"
- "@babel/types" "^7.6.0"
+ "@babel/generator" "^7.7.4"
+ "@babel/helper-function-name" "^7.7.4"
+ "@babel/helper-split-export-declaration" "^7.7.4"
+ "@babel/parser" "^7.7.4"
+ "@babel/types" "^7.7.4"
debug "^4.1.0"
globals "^11.1.0"
lodash "^4.17.13"
-"@babel/types@^7.0.0", "@babel/types@^7.1.3", "@babel/types@^7.2.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.5.5", "@babel/types@^7.6.0":
- version "7.6.1"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.6.1.tgz#53abf3308add3ac2a2884d539151c57c4b3ac648"
- integrity sha512-X7gdiuaCmA0uRjCmRtYJNAVCc/q+5xSgsfKJHqMN4iNLILX39677fJE1O40arPMh0TTtS9ItH67yre6c7k6t0g==
+"@babel/types@^7.0.0", "@babel/types@^7.1.3", "@babel/types@^7.4.0", "@babel/types@^7.7.4":
+ version "7.7.4"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.4.tgz#516570d539e44ddf308c07569c258ff94fde9193"
+ integrity sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==
dependencies:
esutils "^2.0.2"
lodash "^4.17.13"
@@ -1082,14 +1087,14 @@
prop-types "^15.6.0"
"@deck.gl/test-utils@^7.1.5":
- version "7.3.2"
- resolved "https://registry.yarnpkg.com/@deck.gl/test-utils/-/test-utils-7.3.2.tgz#a9e0f62914f1a2a0e21ec15cb4f392899ad7529b"
- integrity sha512-QXea/+u3Xxk4onxh4yxkDGF8JWCF+48Ip4G6+WsBVnN4oro7OhPvAyR1QmerLJyOUMwJTmw+VG+gDo56GdR79w==
+ version "7.3.8"
+ resolved "https://registry.yarnpkg.com/@deck.gl/test-utils/-/test-utils-7.3.8.tgz#20d9b61469b5599c1d2840f94813ecfa0755b038"
+ integrity sha512-oT9aS3Ixrxacj9ufhgiZ+xJQk1WWoZcjpfOZOEoX34VUOdaPOMcQgSQyAkKNGcZmuA6qv3cQDolSlPBP9bnffA==
"@emotion/is-prop-valid@^0.8.1":
- version "0.8.3"
- resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.3.tgz#cbe62ddbea08aa022cdf72da3971570a33190d29"
- integrity sha512-We7VBiltAJ70KQA0dWkdPMXnYoizlxOXpvtjmu5/MBnExd+u0PGgV27WCYanmLAbCwAU30Le/xA0CQs/F/Otig==
+ version "0.8.5"
+ resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.5.tgz#2dda0791f0eafa12b7a0a5b39858405cc7bde983"
+ integrity sha512-6ZODuZSFofbxSbcxwsFz+6ioPjb0ISJRRPLZ+WIbjcU2IMU0Io+RGQjjaTgOvNQl007KICBm7zXQaYQEC1r6Bg==
dependencies:
"@emotion/memoize" "0.7.3"
@@ -1846,97 +1851,97 @@
npmlog "^4.1.2"
write-file-atomic "^2.3.0"
-"@loaders.gl/[email protected]", "@loaders.gl/core@^1.0.3":
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/@loaders.gl/core/-/core-1.3.3.tgz#b7ab8f3ef153f9b928ca05f9890b3acf7b42e595"
- integrity sha512-cy64jNc1E3YYSp4Jt6VQXuscG4/GkaXkdQmmmCA525/LeBzyYBXADAq1ly+WpZNjhiVGs4jU5tJCRaTie7hucw==
+"@loaders.gl/[email protected]", "@loaders.gl/core@^1.0.3":
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@loaders.gl/core/-/core-1.3.5.tgz#e7046b0e75e45db9fa6c4f0816395ef69aa7d9a8"
+ integrity sha512-aCVHgLrFuVvxqEP2soN/nst22mfEzAfhhe9LuFQbLcg2oUKbaW6eh1EW6AeYSkkjCmRkCmXRYLFWNvjbg2R55g==
dependencies:
"@babel/runtime" "^7.3.1"
"@loaders.gl/gltf@^1.3.0":
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/@loaders.gl/gltf/-/gltf-1.3.3.tgz#22d09ddba5529b189e6fc339baab793b200cda91"
- integrity sha512-XO8tgFyOChxVXjtZEixHWXK1WSqf8QLoRNBeQqw82MiFdaaM9aYfqfkG48UKO+kA4sxWoAvnpf0qWU+heMZTPw==
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@loaders.gl/gltf/-/gltf-1.3.5.tgz#bc7500eaad3429d41d071059757723d34ad7037a"
+ integrity sha512-JLsa0Q7h8Nt+FUECIaEewdJ6DusQxycazfiUo3D2gj8Lt15ydsdPtWLwDhyWRhm80i4FtqO5IqZTQIyTNAlOmA==
dependencies:
- "@loaders.gl/core" "1.3.3"
- "@loaders.gl/images" "1.3.3"
- "@loaders.gl/loader-utils" "1.3.3"
+ "@loaders.gl/core" "1.3.5"
+ "@loaders.gl/images" "1.3.5"
+ "@loaders.gl/loader-utils" "1.3.5"
-"@loaders.gl/[email protected]", "@loaders.gl/images@^1.0.3", "@loaders.gl/images@^1.3.0":
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/@loaders.gl/images/-/images-1.3.3.tgz#d64ce0b5502fd8c414bc4a506dbf7f31a9575162"
- integrity sha512-mdlI/ICPSltl6Z0/utU4sAoyvSYZB+WqtjzerBdghcXBiNYtVVKQFmdL8tVhF05o9G8ObvpL+l9Nv6GR0orZZg==
+"@loaders.gl/[email protected]", "@loaders.gl/images@^1.0.3", "@loaders.gl/images@^1.3.0":
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@loaders.gl/images/-/images-1.3.5.tgz#7e34847c66418879e5bad96f7667ab3a34d4825e"
+ integrity sha512-96F9a1+7HsFEr+bnZh04r4pI2J7iXq4CvaQowCd75sFzgiHBvniHjMDNhjpbzHqGskXoKrSCJUeQ/EVUPCxZtw==
-"@loaders.gl/[email protected]":
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/@loaders.gl/loader-utils/-/loader-utils-1.3.3.tgz#6fda6076ac9459a1c2593e16d3efe0a392d93c2d"
- integrity sha512-h1P1KdjPOQccNF8E1sxkGjbFqFjkZPw/wrvnOyHk+3iHEiKcCBoZ1Dnat9mBWJuWgKZgUUHm0SnUlDooskqXtQ==
+"@loaders.gl/[email protected]":
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@loaders.gl/loader-utils/-/loader-utils-1.3.5.tgz#89f2074c2566168bb0f53844d4b4ac493ff85fff"
+ integrity sha512-dml8IP4n49ftX4ew+olTRhWY0pm4A8nZKpXFq2o541vvrJIRaahp6oCbrlJGwcEMCDFfVXEqThsP2dicgDwL3A==
dependencies:
"@babel/runtime" "^7.3.1"
-"@luma.gl/[email protected]":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/addons/-/addons-7.3.1.tgz#d16420c75418d2903321364eee79a68e92ec2fb2"
- integrity sha512-OTW3WpV/Hwm60vmMdeL4HbI4CN+zjS9/phtUK4P7Suc5pErCCKkV+a6+7B8a0Nq4K5iUmUW+NciNTt1hSIfZdA==
+"@luma.gl/[email protected]":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/addons/-/addons-7.3.2.tgz#ace9d6a81121d7edd5776b2c9cb846b6defbf477"
+ integrity sha512-ul/iQnrqnhnmVuYo20zrW1FWokKkcnNlqxpRwPolkxFtMsyg5Z+hpxB0dM8buYpCSE0c5ypIsH2AatwXjIMTJA==
dependencies:
"@loaders.gl/gltf" "^1.3.0"
"@loaders.gl/images" "^1.3.0"
- "@luma.gl/constants" "7.3.1"
+ "@luma.gl/constants" "7.3.2"
math.gl "^3.0.0"
-"@luma.gl/[email protected]":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/constants/-/constants-7.3.1.tgz#af2319c8474f930e8a2f464b8681516883efe806"
- integrity sha512-8i0OgAfI7Efw4NJcogT1LpjuV8eRKU9tFMDy6KiPzdnDtrU+ujAuY0JmYqpH5SRLavUazpZnVrNJxjBzAN8FlA==
+"@luma.gl/[email protected]":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/constants/-/constants-7.3.2.tgz#99c5d665f9e6d21192525038e47ec4acfbbbe0a6"
+ integrity sha512-hr6JOOwsGPjjoHnil4sQ6AWsc8P6XXYtRL10TwNYfFTcNxrhSrjQvutYoCzXHH5U0vfHBfPMMUyLASK9FqiHOA==
-"@luma.gl/[email protected]", "@luma.gl/core@^7.1.0":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/core/-/core-7.3.1.tgz#aaaa3e927f1ff72517a1f37183570167b9a241b1"
- integrity sha512-i6tKz3/EO2/nUDe+GMTI/Gs572GMuUFH++B8lJUjzOPn0o9z5pkIF4ZiOh6b0AxvzfL34yLarH4C48KwyJzm4w==
+"@luma.gl/[email protected]", "@luma.gl/core@^7.1.0":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/core/-/core-7.3.2.tgz#1d006da99ead3f1a7d6323e5c39e1dd6086f1ecf"
+ integrity sha512-XyQPSUJRkZcc//gVX0AgjLLNTkCOO68NRnm7RkIhikRBEUdovb4IOcpmWMCB1/Gyj4hzg/Z1FOAVT4pG1E+agw==
dependencies:
"@babel/runtime" "^7.0.0"
- "@luma.gl/constants" "7.3.1"
- "@luma.gl/shadertools" "7.3.1"
- "@luma.gl/webgl" "7.3.1"
- "@luma.gl/webgl-state-tracker" "7.3.1"
- "@luma.gl/webgl2-polyfill" "7.3.1"
+ "@luma.gl/constants" "7.3.2"
+ "@luma.gl/shadertools" "7.3.2"
+ "@luma.gl/webgl" "7.3.2"
+ "@luma.gl/webgl-state-tracker" "7.3.2"
+ "@luma.gl/webgl2-polyfill" "7.3.2"
math.gl "^3.0.0"
probe.gl "^3.1.1"
seer "^0.2.4"
-"@luma.gl/[email protected]":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/shadertools/-/shadertools-7.3.1.tgz#b61ed4d1276e19095f8936cfbfb6083ba57c4092"
- integrity sha512-5jcHdNp7FOojeS7hkTRY0ICf7qDayKqE2gbghBHoekatTLhUD6/gJ+p7UbRinkGxGRArMI3oAwDcwyn3DvR3CA==
+"@luma.gl/[email protected]":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/shadertools/-/shadertools-7.3.2.tgz#f850aed1b3e1dedfb236ce02b0129cccd018f651"
+ integrity sha512-GiOZTvdEr164zYFy1DNRc7mzduSWLNJ34s+YbkJ/0i07E6tK7gHgM29QNCZ/gROvUDDJ5CHxngZqGkb+XquOMQ==
dependencies:
"@babel/runtime" "^7.0.0"
math.gl "^3.0.0"
-"@luma.gl/[email protected]":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/webgl-state-tracker/-/webgl-state-tracker-7.3.1.tgz#6938d55c7c5250450ab79205464737c633fd1569"
- integrity sha512-d46jXh3R3pzIdmffWmseUFd6+5pjcv9imlpl6XYotrJ6E9sKNQX7WRfNfcgFKYfGVPXE0RHuBcA9gVjim/5xhw==
+"@luma.gl/[email protected]":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/webgl-state-tracker/-/webgl-state-tracker-7.3.2.tgz#b927e1c7689fbc75432197eaf0468fc8f0e18a76"
+ integrity sha512-0LuK3veReSm2UPOiDwC2CRDeE2xk4irqXdhyFO0WSAU1w+YhzbD1hGbjizGczvgfkbz8dFl9h98LbbH75efcKw==
dependencies:
"@babel/runtime" "^7.0.0"
- "@luma.gl/constants" "7.3.1"
+ "@luma.gl/constants" "7.3.2"
-"@luma.gl/[email protected]":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/webgl2-polyfill/-/webgl2-polyfill-7.3.1.tgz#58620345dd9914e691b1ece10f9e23c05e7d07df"
- integrity sha512-/WhpzE6cC2RMUOj+TsJld/BU7QEyFUbG35A6fZ23owy8Cjk8VBOZ+NzopNZ80sYhPJjsJPkwpquv2iHmWSXn8Q==
+"@luma.gl/[email protected]":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/webgl2-polyfill/-/webgl2-polyfill-7.3.2.tgz#266a7a2d2c2c338360e8f766984cf559d2230521"
+ integrity sha512-PMt5xqQ+u7tIqfUaL3s4nuWl604WFNcl1F1ohSUFeEzIIuxFiF6gsdEEvC5VqGoMFxI8T4FOTSeHYIr6uP4+4w==
dependencies:
"@babel/runtime" "^7.0.0"
- "@luma.gl/constants" "7.3.1"
+ "@luma.gl/constants" "7.3.2"
-"@luma.gl/[email protected]":
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/@luma.gl/webgl/-/webgl-7.3.1.tgz#26ce22f02086bb4a0bd952953efeb71d44a112af"
- integrity sha512-6YEarhqzkkn0xc0jSB4oJ9pMKIEwEaK2y5ScO9eWT6/5vzF/GpqZdp7qpOCwVXHHXhFM4vT4nkz2n2AQiErGYA==
+"@luma.gl/[email protected]":
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/@luma.gl/webgl/-/webgl-7.3.2.tgz#57d6ef58d7180cf429a9f98c8389215665b4c3d7"
+ integrity sha512-eWoPPRJOF5xSpqgggdwspsm8exclwxz20c8vqu8D1b3LJTY7cEpq57CMLvITHcJMMJ834TX/r598efTcF76lpw==
dependencies:
"@babel/runtime" "^7.0.0"
- "@luma.gl/constants" "7.3.1"
- "@luma.gl/webgl-state-tracker" "7.3.1"
- "@luma.gl/webgl2-polyfill" "7.3.1"
+ "@luma.gl/constants" "7.3.2"
+ "@luma.gl/webgl-state-tracker" "7.3.2"
+ "@luma.gl/webgl2-polyfill" "7.3.2"
probe.gl "^3.1.1"
"@mapbox/geo-viewport@^0.2.2":
@@ -2023,6 +2028,11 @@
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"
+"@nebula.gl/[email protected]":
+ version "0.14.0"
+ resolved "https://registry.yarnpkg.com/@nebula.gl/edit-modes/-/edit-modes-0.14.0.tgz#2506ac1a17186add17926ba4e20a0d5d250e6b70"
+ integrity sha512-FOogByIYDTzCDT34u/MxFbu3H2/+6uVvm4jblGds9K23HmsxFAmM7dXljjzHIushOZj2idHDEbJ5PMo3lV70pQ==
+
"@nodelib/fs.stat@^1.1.2":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b"
@@ -2100,7 +2110,7 @@
probe.gl "3.1.1"
puppeteer "^1.16.0"
-"@turf/bbox@^6.0.1":
+"@turf/[email protected]", "@turf/bbox@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@turf/bbox/-/bbox-6.0.1.tgz#b966075771475940ee1c16be2a12cf389e6e923a"
integrity sha512-EGgaRLettBG25Iyx7VyUINsPpVj1x3nFQFiGS3ER8KCI1MximzNLsam3eXRabqQDjyAKyAE1bJ4EZEpGvspQxw==
@@ -2108,11 +2118,45 @@
"@turf/helpers" "6.x"
"@turf/meta" "6.x"
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@turf/boolean-point-in-polygon/-/boolean-point-in-polygon-6.0.1.tgz#5836677afd77d2ee391af0056a0c29b660edfa32"
+ integrity sha512-FKLOZ124vkJhjzNSDcqpwp2NvfnsbYoUOt5iAE7uskt4svix5hcjIEgX9sELFTJpbLGsD1mUbKdfns8tZxcMNg==
+ dependencies:
+ "@turf/helpers" "6.x"
+ "@turf/invariant" "6.x"
+
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@turf/boolean-point-on-line/-/boolean-point-on-line-6.0.1.tgz#d943c242a5fdcde03f8ad0221750fd1aacf06223"
+ integrity sha512-Vl724Tzh4CF/13kgblOAQnMcHagromCP1EfyJ9G/8SxpSoTYeY2G6FmmcpbW51GqKxC7xgM9+Pck50dun7oYkg==
+ dependencies:
+ "@turf/helpers" "6.x"
+ "@turf/invariant" "6.x"
+
+"@turf/boolean-within@^6.0.1":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@turf/boolean-within/-/boolean-within-6.0.1.tgz#eac2ebe4962e840dd16f0dc56486469eeb92975f"
+ integrity sha512-fAzDoWzA4UvUE99G8VqQjVg+PSrPBACM9+SLcl0vkbxIhTjoknpTUwSfH86EgKiCkTDttiDIs/q27xZ4H+mgLQ==
+ dependencies:
+ "@turf/bbox" "6.x"
+ "@turf/boolean-point-in-polygon" "6.x"
+ "@turf/boolean-point-on-line" "6.x"
+ "@turf/helpers" "6.x"
+ "@turf/invariant" "6.x"
+
+"@turf/[email protected]", "@turf/helpers@^6.1.4":
version "6.1.4"
resolved "https://registry.yarnpkg.com/@turf/helpers/-/helpers-6.1.4.tgz#d6fd7ebe6782dd9c87dca5559bda5c48ae4c3836"
integrity sha512-vJvrdOZy1ngC7r3MDA7zIGSoIgyrkWcGnNIEaqn/APmw+bVLF2gAW7HIsdTxd12s5wQMqEpqIQrmrbRRZ0xC7g==
+ version "6.1.2"
+ resolved "https://registry.yarnpkg.com/@turf/invariant/-/invariant-6.1.2.tgz#6013ed6219f9ac2edada9b31e1dfa5918eb0a2f7"
+ integrity sha512-WU08Ph8j0J2jVGlQCKChXoCtI50BB3yEH21V++V0T4cR1T27HKCxkehV2sYMwTierfMBgjwSwDIsxnR4/2mWXg==
+ dependencies:
+ "@turf/helpers" "6.x"
+
version "6.0.2"
resolved "https://registry.yarnpkg.com/@turf/meta/-/meta-6.0.2.tgz#eb92951126d24a613ac1b7b99d733fcc20fd30cf"
@@ -2139,15 +2183,10 @@
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
-"@types/node@*":
- version "12.7.11"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.11.tgz#be879b52031cfb5d295b047f5462d8ef1a716446"
- integrity sha512-Otxmr2rrZLKRYIybtdG/sgeO+tHY20GxeDjcGmUnmmlCWyEnv2a2x1ZXBo3BTec4OiTXMQCiazB8NMBf0iRlFw==
-
-"@types/node@>= 8":
- version "12.12.14"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.14.tgz#1c1d6e3c75dba466e0326948d56e8bd72a1903d2"
- integrity sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==
+"@types/node@*", "@types/node@>= 8":
+ version "12.12.17"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.17.tgz#191b71e7f4c325ee0fb23bc4a996477d92b8c39b"
+ integrity sha512-Is+l3mcHvs47sKy+afn2O1rV4ldZFU7W8101cNlOd+MRbjM4Onida8jSZnJdTe/0Pcf25g9BNIUsuugmE6puHA==
"@types/unist@^2.0.2":
version "2.0.3"
@@ -2328,9 +2367,9 @@ JSONStream@^1.0.3, JSONStream@^1.0.4, JSONStream@^1.3.4:
through ">=2.2.7 <3"
abab@^2.0.0:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.2.tgz#a2fba1b122c69a85caa02d10f9270c7219709a9d"
- integrity sha512-2scffjvioEmNz0OyDSLGWDfKCVwaKc6l9Pm9kOIREU13ClXZvHpg/nRL5xyjSSSLhOnXqft2HpsAzNEEA8cFFg==
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a"
+ integrity sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg==
abbrev@1:
version "1.1.1"
@@ -2361,9 +2400,9 @@ acorn-jsx@^3.0.0:
acorn "^3.0.4"
acorn-jsx@^5.0.0:
- version "5.0.2"
- resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.2.tgz#84b68ea44b373c4f8686023a551f61a21b7c4a4f"
- integrity sha512-tiNTrP1MP0QrChmD2DdupCr6HWSFeKVw5d/dHTu4Y7rkAkRhU/Dt7dphAfIUyxtHpl/eBVip5uTNSpQJHylpAw==
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.1.0.tgz#294adb71b57398b0680015f0a38c563ee1db5384"
+ integrity sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==
acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2, acorn-node@^1.6.1:
version "1.8.2"
@@ -2395,9 +2434,9 @@ acorn@^5.2.1, acorn@^5.5.0, acorn@^5.5.3:
integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==
acorn@^6.0.1, acorn@^6.0.7, acorn@^6.2.1:
- version "6.3.0"
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e"
- integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==
+ version "6.4.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.0.tgz#b659d2ffbafa24baf5db1cdbb2c94a983ecd2784"
+ integrity sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==
acorn@^7.0.0:
version "7.1.0"
@@ -2425,7 +2464,7 @@ agentkeepalive@^3.4.1:
dependencies:
humanize-ms "^1.2.1"
-airbnb-prop-types@^2.13.2:
+airbnb-prop-types@^2.15.0:
version "2.15.0"
resolved "https://registry.yarnpkg.com/airbnb-prop-types/-/airbnb-prop-types-2.15.0.tgz#5287820043af1eb469f5b0af0d6f70da6c52aaef"
integrity sha512-jUh2/hfKsRjNFC4XONQrxo/n/3GG4Tn6Hl0WlFQN5PY9OMC9loSCoAYKnZsWaP8wEfd5xcrPloK0Zg6iS1xwVA==
@@ -2652,12 +2691,12 @@ array-ify@^1.0.0:
integrity sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=
array-includes@^3.0.3:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d"
- integrity sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.0.tgz#48a929ef4c6bb1fa6dc4a92c9b023a261b0ca404"
+ integrity sha512-ONOEQoKrvXPKk7Su92Co0YMqYO32FfqJTzkKU9u2UpIXyYZIzLSvpdg4AwvSw4mSUW0czu6inK+zby6Oj6gDjQ==
dependencies:
- define-properties "^1.1.2"
- es-abstract "^1.7.0"
+ define-properties "^1.1.3"
+ es-abstract "^1.17.0-next.0"
array-union@^1.0.1, array-union@^1.0.2:
version "1.0.2"
@@ -2690,13 +2729,12 @@ array.prototype.find@^2.0.1, array.prototype.find@^2.1.0:
es-abstract "^1.13.0"
array.prototype.flat@^1.2.1:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.1.tgz#812db8f02cad24d3fab65dd67eabe3b8903494a4"
- integrity sha512-rVqIs330nLJvfC7JqYvEWwqVr5QjYF1ib02i3YJtR/fICO6527Tjpc/e4Mvmxh3GIePPreRXMdaGyC99YphWEw==
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz#0de82b426b0318dbfdb940089e38b043d37f6c7b"
+ integrity sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==
dependencies:
- define-properties "^1.1.2"
- es-abstract "^1.10.0"
- function-bind "^1.1.1"
+ define-properties "^1.1.3"
+ es-abstract "^1.17.0-next.1"
arrify@^1.0.1:
version "1.0.1"
@@ -2757,12 +2795,7 @@ async-limiter@~1.0.0:
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==
-async@^1.5.2:
- version "1.5.2"
- resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
- integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=
-
-async@^2.5.0:
+async@^2.5.0, async@^2.6.2:
version "2.6.3"
resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff"
integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==
@@ -2790,9 +2823,9 @@ aws-sign2@~0.7.0:
integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=
aws4@^1.8.0:
- version "1.8.0"
- resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f"
- integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==
+ version "1.9.0"
+ resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.0.tgz#24390e6ad61386b0a747265754d2a17219de862c"
+ integrity sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==
babel-code-frame@^6.22.0, babel-code-frame@^6.26.0:
version "6.26.0"
@@ -2875,9 +2908,9 @@ babel-plugin-module-resolver@^3.0.0:
resolve "^1.4.0"
babel-plugin-search-and-replace@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-search-and-replace/-/babel-plugin-search-and-replace-1.0.0.tgz#94467aadb484cebb897645ee7f201bc290378fac"
- integrity sha512-i3HhJ53iDXHFblWiv8buFHo0HxzZkdHtpDOl/h8tDXhUPvax53MJRVwjXoU34Pzqpdjj9G1t1ugEBY9cBlw11A==
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/babel-plugin-search-and-replace/-/babel-plugin-search-and-replace-1.0.1.tgz#04701015116e9223ee183ea014ffd1a1efea70ac"
+ integrity sha512-/DBaV38i2/kj2iQK99zW8Te6XxMntMwV/1wfGSvBOIC0xAv7gc9vLxaCgi2gZbI76dpHsvH0vd6Rx7Bxu04WEw==
"babel-plugin-styled-components@>= 1":
version "1.10.6"
@@ -3060,16 +3093,11 @@ bl@^3.0.0:
dependencies:
readable-stream "^3.0.1"
-bluebird@^3.5.1, bluebird@^3.5.3:
+bluebird@^3.5.1, bluebird@^3.5.3, bluebird@^3.5.5:
version "3.7.2"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
-bluebird@^3.5.5:
- version "3.7.0"
- resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.0.tgz#56a6a886e03f6ae577cffedeb524f8f2450293cf"
- integrity sha512-aBQ1FxIa7kSWCcmKHlcHFlT2jt6J/l4FzC7KcPELkOJOsPOb/bccdhmIrKDfXhwFrmc7vDoDrrepFvGqjyXGJg==
-
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0:
version "4.11.8"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f"
@@ -3308,14 +3336,14 @@ browserify@^16.1.0:
vm-browserify "^1.0.0"
xtend "^4.0.0"
-browserslist@^4.6.0, browserslist@^4.6.6:
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.7.0.tgz#9ee89225ffc07db03409f2fee524dc8227458a17"
- integrity sha512-9rGNDtnj+HaahxiVV38Gn8n8Lr8REKsel68v1sPFfIGEK6uSXTY3h9acgiT1dZVtOOUtifo/Dn8daDQ5dUgVsA==
+browserslist@^4.6.0, browserslist@^4.8.2:
+ version "4.8.2"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.8.2.tgz#b45720ad5fbc8713b7253c20766f701c9a694289"
+ integrity sha512-+M4oeaTplPm/f1pXDw84YohEv7B1i/2Aisei8s4s6k3QsoSHa7i5sz8u/cGQkkatCPxMASKxPualR4wwYgVboA==
dependencies:
- caniuse-lite "^1.0.30000989"
- electron-to-chromium "^1.3.247"
- node-releases "^1.1.29"
+ caniuse-lite "^1.0.30001015"
+ electron-to-chromium "^1.3.322"
+ node-releases "^1.1.42"
btoa-lite@^1.0.0:
version "1.0.0"
@@ -3348,9 +3376,9 @@ buffer-xor@^1.0.3:
integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=
buffer@^4.3.0:
- version "4.9.1"
- resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298"
- integrity sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=
+ version "4.9.2"
+ resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.2.tgz#230ead344002988644841ab0244af8c44bbe3ef8"
+ integrity sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==
dependencies:
base64-js "^1.0.2"
ieee754 "^1.1.4"
@@ -3545,10 +3573,10 @@ camelize@^1.0.0:
resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=
-caniuse-lite@^1.0.30000989:
- version "1.0.30000999"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000999.tgz#427253a69ad7bea4aa8d8345687b8eec51ca0e43"
- integrity sha512-1CUyKyecPeksKwXZvYw0tEoaMCo/RwBlXmEtN5vVnabvO0KPd9RQLcaAuR9/1F+KDMv6esmOFWlsXuzDk+8rxg==
+caniuse-lite@^1.0.30001015:
+ version "1.0.30001015"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001015.tgz#15a7ddf66aba786a71d99626bc8f2b91c6f0f5f0"
+ integrity sha512-/xL2AbW/XWHNu1gnIrO8UitBGoFthcsDgU9VLK1/dpsoxbaD5LscHozKze05R6WLsBvLhqv78dAPozMFQBYLbQ==
capture-stack-trace@^1.0.0:
version "1.0.1"
@@ -3859,16 +3887,21 @@ comma-separated-tokens@^1.0.1:
resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-1.0.7.tgz#419cd7fb3258b1ed838dc0953167a25e152f5b59"
integrity sha512-Jrx3xsP4pPv4AwJUDWY9wOXGtwPXARej6Xd99h4TUGotmf8APuquKMpK+dnD3UgyxK7OEWaisjZz+3b5jtL6xQ==
-commander@2, commander@^2.18.0, commander@^2.19.0, commander@^2.20.0, commander@^2.8.1, commander@~2.20.0:
- version "2.20.1"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.1.tgz#3863ce3ca92d0831dcf2a102f5fb4b5926afd0f9"
- integrity sha512-cCuLsMhJeWQ/ZpsFTbE765kvVfoeSddc4nU3up4fV+fDBcfUXnbITJ+JzhkdjzOqhURjZgujxaioam4RM9yGUg==
+commander@2, commander@^2.18.0, commander@^2.19.0, commander@^2.20.0, commander@^2.8.1, commander@~2.20.3:
+ version "2.20.3"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
version "2.17.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==
+commander@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-4.0.1.tgz#b67622721785993182e807f4883633e6401ba53c"
+ integrity sha512-IPF4ouhCP+qdlcmCedhxX4xiGBPyigb8v5NeUp+0LyhwLgxMqyp3S0vl7TAPfS/hiP7FC3caI/PB9lTmP8r1NA==
+
commander@~2.19.0:
version "2.19.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
@@ -3975,11 +4008,9 @@ connect-history-api-fallback@^1.6.0:
integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
console-browserify@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
- integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=
- dependencies:
- date-now "^0.1.4"
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"
+ integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==
console-control-strings@^1.0.0, console-control-strings@~1.1.0:
version "1.1.0"
@@ -4091,14 +4122,7 @@ conventional-recommended-bump@^5.0.0:
meow "^4.0.0"
q "^1.5.1"
-convert-source-map@^1.1.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20"
- integrity sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==
- dependencies:
- safe-buffer "~5.1.1"
-
-convert-source-map@^1.6.0:
+convert-source-map@^1.1.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==
@@ -4137,12 +4161,12 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
-core-js-compat@^3.1.1:
- version "3.2.1"
- resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.2.1.tgz#0cbdbc2e386e8e00d3b85dc81c848effec5b8150"
- integrity sha512-MwPZle5CF9dEaMYdDeWm73ao/IflDH+FjeJCWEADcEgFSE9TLimFKwJsfmkwzI8eC0Aj0mgvMDjeQjrElkz4/A==
+core-js-compat@^3.4.7:
+ version "3.5.0"
+ resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.5.0.tgz#5a11a619a9e9dd2dcf1c742b2060bc4a2143e5b6"
+ integrity sha512-E7iJB72svRjJTnm9HDvujzNVMCm3ZcDYEedkJ/sDTNsy/0yooCd9Cg7GSzE7b4e0LfIkjijdB1tqg0pGwxWeWg==
dependencies:
- browserslist "^4.6.6"
+ browserslist "^4.8.2"
semver "^6.3.0"
core-js@^1.0.0:
@@ -4151,14 +4175,14 @@ core-js@^1.0.0:
integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=
core-js@^2.4.0, core-js@^2.6.5:
- version "2.6.9"
- resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2"
- integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==
+ version "2.6.11"
+ resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
+ integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==
core-js@^3.2.1:
- version "3.2.1"
- resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.2.1.tgz#cd41f38534da6cc59f7db050fe67307de9868b09"
- integrity sha512-Qa5XSVefSVPRxy2XfUC13WbvqkxhkwB3ve+pgCQveNgYzbM/UxZeu1dcOX/xr4UmfUd+muuvsaxilQzCyUurMw==
+ version "3.5.0"
+ resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.5.0.tgz#66df8e49be4bd775e6f952a9d083b756ad41c1ed"
+ integrity sha512-Ifh3kj78gzQ7NAoJXeTu+XwzDld0QRIwjBLRqAMhuLhP3d2Av5wmgE9ycfnvK6NAEjTkQ1sDPeoEZAWO3Hx1Uw==
[email protected], core-util-is@~1.0.0:
version "1.0.2"
@@ -4176,16 +4200,15 @@ cosmiconfig@^5.1.0:
parse-json "^4.0.0"
coveralls@^3.0.6:
- version "3.0.6"
- resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.6.tgz#5c63b2759b6781118e7439bd870ba5e9ee428b25"
- integrity sha512-Pgh4v3gCI4T/9VijVrm8Ym5v0OgjvGLKj3zTUwkvsCiwqae/p6VLzpsFNjQS2i6ewV7ef+DjFJ5TSKxYt/mCrA==
+ version "3.0.9"
+ resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.9.tgz#8cfc5a5525f84884e2948a0bf0f1c0e90aac0420"
+ integrity sha512-nNBg3B1+4iDox5A5zqHKzUTiwl2ey4k2o0NEcVZYvl+GOSJdKBj4AJGKLv6h3SvWch7tABHePAQOSZWM9E2hMg==
dependencies:
- growl "~> 1.10.0"
js-yaml "^3.13.1"
- lcov-parse "^0.0.10"
+ lcov-parse "^1.0.0"
log-driver "^1.2.7"
minimist "^1.2.0"
- request "^2.86.0"
+ request "^2.88.0"
create-ecdh@^4.0.0:
version "4.0.3"
@@ -4325,6 +4348,11 @@ cssstyle@^1.0.0:
dependencies:
cssom "0.3.x"
+csstype@^2.6.7:
+ version "2.6.7"
+ resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.7.tgz#20b0024c20b6718f4eda3853a1f5a1cce7f5e4a5"
+ integrity sha512-9Mcn9sFbGBAdmimWb2gLVDtFJzeKtDGIr76TUqmjZrw9LFXBMSU70lcs+C0/7fyCd6iBDqmksUcCOUIkisPHsQ==
+
currently-unhandled@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
@@ -4348,9 +4376,9 @@ d3-axis@^1.0.8:
integrity sha512-ejINPfPSNdGFKEOAtnBtdkpr24c4d4jsei6Lg98mxf424ivoDP2956/5HDpIAtmHo85lqT4pruy+zEgvRUBqaQ==
d3-brush@^1.0.4:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/d3-brush/-/d3-brush-1.1.3.tgz#a04900a71fa5390f7f7afe1504b02a382709f380"
- integrity sha512-v8bbYyCFKjyCzFk/tdWqXwDykY8YWqhXYjcYxfILIit085VZOpj4XJKOMccTsvWxgzSLMJQg5SiqHjslsipEDg==
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/d3-brush/-/d3-brush-1.1.5.tgz#066b8e84d17b192986030446c97c0fba7e1bacdc"
+ integrity sha512-rEaJ5gHlgLxXugWjIkolTA0OyMvw8UWU1imYXy1v642XyyswmI1ybKOv05Ft+ewq+TFmdliD3VuK0pRp1VT/5A==
dependencies:
d3-dispatch "1"
d3-drag "1"
@@ -4376,41 +4404,41 @@ d3-contour@^1.1.0:
d3-array "^1.1.1"
d3-dispatch@1:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/d3-dispatch/-/d3-dispatch-1.0.5.tgz#e25c10a186517cd6c82dd19ea018f07e01e39015"
- integrity sha512-vwKx+lAqB1UuCeklr6Jh1bvC4SZgbSqbkGBLClItFBIYH4vqDJCA7qfoy14lXmJdnBOdxndAMxjCbImJYW7e6g==
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/d3-dispatch/-/d3-dispatch-1.0.6.tgz#00d37bcee4dd8cd97729dd893a0ac29caaba5d58"
+ integrity sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA==
d3-drag@1:
- version "1.2.4"
- resolved "https://registry.yarnpkg.com/d3-drag/-/d3-drag-1.2.4.tgz#ba9331d68158ad14cf0b4b28a8afa9e78c7d99ad"
- integrity sha512-ICPurDETFAelF1CTHdIyiUM4PsyZLaM+7oIBhmyP+cuVjze5vDZ8V//LdOFjg0jGnFIZD/Sfmk0r95PSiu78rw==
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/d3-drag/-/d3-drag-1.2.5.tgz#2537f451acd39d31406677b7dc77c82f7d988f70"
+ integrity sha512-rD1ohlkKQwMZYkQlYVCrSFxsWPzI97+W+PaEIBNTMxRuxz9RF0Hi5nJWHGVJ3Om9d2fRTe1yOBINJyy/ahV95w==
dependencies:
d3-dispatch "1"
d3-selection "1"
d3-dsv@1, d3-dsv@^1.0.3, d3-dsv@^1.0.8:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/d3-dsv/-/d3-dsv-1.1.1.tgz#aaa830ecb76c4b5015572c647cc6441e3c7bb701"
- integrity sha512-1EH1oRGSkeDUlDRbhsFytAXU6cAmXFzc52YUe6MRlPClmWb85MP1J5x+YJRzya4ynZWnbELdSAvATFW/MbxaXw==
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/d3-dsv/-/d3-dsv-1.2.0.tgz#9d5f75c3a5f8abd611f74d3f5847b0d4338b885c"
+ integrity sha512-9yVlqvZcSOMhCYzniHE7EVUws7Fa1zgw+/EAV2BxJoG3ME19V6BQFBwI855XQDsxyOuG7NibqRMTtiF/Qup46g==
dependencies:
commander "2"
iconv-lite "0.4"
rw "1"
d3-ease@1:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-1.0.5.tgz#8ce59276d81241b1b72042d6af2d40e76d936ffb"
- integrity sha512-Ct1O//ly5y5lFM9YTdu+ygq7LleSgSE4oj7vUt9tPLHUi8VCV7QoizGpdWRWAwCO9LdYzIrQDg97+hGVdsSGPQ==
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-1.0.6.tgz#ebdb6da22dfac0a22222f2d4da06f66c416a0ec0"
+ integrity sha512-SZ/lVU7LRXafqp7XtIcBdxnWl8yyLpgOmzAk0mWBI9gXNzLDx5ybZgnRbH9dN/yY5tzVBqCQ9avltSnqVwessQ==
d3-format@1, d3-format@^1.2.0:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.4.1.tgz#c45f74b17c5a290c072a4ba7039dd19662cd5ce6"
- integrity sha512-TUswGe6hfguUX1CtKxyG2nymO+1lyThbkS1ifLX0Sr+dOQtAD5gkrffpHnx+yHNKUZ0Bmg5T4AjUQwugPDrm0g==
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.4.2.tgz#2a8c0ebf500f315981c2110eaaf70b82f472cb2b"
+ integrity sha512-gco1Ih54PgMsyIXgttLxEhNy/mXxq8+rLnCb5shQk+P5TsiySrwWU5gpB4zen626J4LIwBxHvDChyA8qDm57ww==
d3-geo@^1.6.4:
- version "1.11.6"
- resolved "https://registry.yarnpkg.com/d3-geo/-/d3-geo-1.11.6.tgz#134f2ef035ff75a448075fafdea92702a2e0e0cf"
- integrity sha512-z0J8InXR9e9wcgNtmVnPTj0TU8nhYT6lD/ak9may2PdKqXIeHUr8UbFLoCtrPYNsjv6YaLvSDQVl578k6nm7GA==
+ version "1.11.9"
+ resolved "https://registry.yarnpkg.com/d3-geo/-/d3-geo-1.11.9.tgz#77eaed14ba62fc2c0aef55cd2943849c866f7ae6"
+ integrity sha512-9edcH6J3s/Aa3KJITWqFJbyB/8q3mMlA9Fi7z6yy+FAYMnRaxmC7jBhUnsINxVWD14GmqX3DK8uk7nV6/Ekt4A==
dependencies:
d3-array "1"
@@ -4420,21 +4448,21 @@ d3-hexbin@^0.2.1, d3-hexbin@^0.2.2:
integrity sha1-nFg32s/UcasFM3qeke8Qv8T5iDE=
d3-hierarchy@^1.1.4:
- version "1.1.8"
- resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.8.tgz#7a6317bd3ed24e324641b6f1e76e978836b008cc"
- integrity sha512-L+GHMSZNwTpiq4rt9GEsNcpLa4M96lXMR8M/nMG9p5hBE0jy6C+3hWtyZMenPQdwla249iJy7Nx0uKt3n+u9+w==
+ version "1.1.9"
+ resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz#2f6bee24caaea43f8dc37545fa01628559647a83"
+ integrity sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ==
d3-interpolate@1, d3-interpolate@^1.1.4:
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.3.2.tgz#417d3ebdeb4bc4efcc8fd4361c55e4040211fd68"
- integrity sha512-NlNKGopqaz9qM1PXh9gBF1KSCVh+jSFErrSlD/4hybwoNX/gt1d8CDbDW+3i+5UOHhjC6s6nMvRxcuoMVNgL2w==
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.4.0.tgz#526e79e2d80daa383f9e0c1c1c7dcc0f0583e987"
+ integrity sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==
dependencies:
d3-color "1"
d3-path@1:
- version "1.0.8"
- resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.8.tgz#4a0606a794d104513ec4a8af43525f374b278719"
- integrity sha512-J6EfUNwcMQ+aM5YPOB8ZbgAZu6wc82f/0WFxrxwV6Ll8wBwLaHLKCqQ5Imub02JriCVVdPjgI+6P3a4EWJCxAg==
+ version "1.0.9"
+ resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.9.tgz#48c050bb1fe8c262493a8caf5524e3e9591701cf"
+ integrity sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==
d3-request@^1.0.6:
version "1.0.6"
@@ -4469,21 +4497,21 @@ d3-scale@^1.0.5, d3-scale@^1.0.6:
d3-time-format "2"
d3-selection@1, d3-selection@^1.1.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-1.4.0.tgz#ab9ac1e664cf967ebf1b479cc07e28ce9908c474"
- integrity sha512-EYVwBxQGEjLCKF2pJ4+yrErskDnz5v403qvAid96cNdCMr8rmCYfY5RGzWz24mdIbxmDf6/4EAH+K9xperD5jg==
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-1.4.1.tgz#98eedbbe085fbda5bafa2f9e3f3a2f4d7d622a98"
+ integrity sha512-BTIbRjv/m5rcVTfBs4AMBLKs4x8XaaLkwm28KWu9S2vKNqXkXt2AH2Qf0sdPZHjFxcWg/YL53zcqAz+3g4/7PA==
d3-shape@^1.1.0, d3-shape@^1.2.0:
- version "1.3.5"
- resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.3.5.tgz#e81aea5940f59f0a79cfccac012232a8987c6033"
- integrity sha512-VKazVR3phgD+MUCldapHD7P9kcrvPcexeX/PkMJmkUov4JM8IxsSg1DvbYoYich9AtdTsa5nNk2++ImPiDiSxg==
+ version "1.3.7"
+ resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.3.7.tgz#df63801be07bc986bc54f63789b4fe502992b5d7"
+ integrity sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==
dependencies:
d3-path "1"
d3-time-format@2:
- version "2.1.3"
- resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.3.tgz#ae06f8e0126a9d60d6364eac5b1533ae1bac826b"
- integrity sha512-6k0a2rZryzGm5Ihx+aFMuO1GgelgIz+7HhB4PH4OEndD5q2zGn1mDfRdNrulspOfR6JXkb2sThhDK41CSK85QA==
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.2.2.tgz#187597ffc6a0f37cb36bb7a1d7167cdc887ecda0"
+ integrity sha512-pweL2Ri2wqMY+wlW/wpkl8T3CUzKAha8S9nmiQlMABab8r5MJN0PD1V4YyRNVaKQfeh4Z0+VO70TLw6ESVOYzw==
dependencies:
d3-time "1"
@@ -4493,14 +4521,14 @@ d3-time@1:
integrity sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==
d3-timer@1:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-1.0.9.tgz#f7bb8c0d597d792ff7131e1c24a36dd471a471ba"
- integrity sha512-rT34J5HnQUHhcLvhSB9GjCkN0Ddd5Y8nCwDBG2u6wQEeYxT/Lf51fTFFkldeib/sE/J0clIe0pnCfs6g/lRbyg==
+ version "1.0.10"
+ resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-1.0.10.tgz#dfe76b8a91748831b13b6d9c793ffbd508dd9de5"
+ integrity sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==
d3-transition@1:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/d3-transition/-/d3-transition-1.2.0.tgz#f538c0e21b2aa1f05f3e965f8567e81284b3b2b8"
- integrity sha512-VJ7cmX/FPIPJYuaL2r1o1EMHLttvoIuZhhuAlRoOxDzogV8iQS6jYulDm3xEU3TqL80IZIhI551/ebmCMrkvhw==
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/d3-transition/-/d3-transition-1.3.2.tgz#a98ef2151be8d8600543434c1ca80140ae23b398"
+ integrity sha512-sc0gRU4PFqZ47lPVHloMn9tlPcv8jxgOQg+0zjhfZXMQuvppjG6YuwdMBE0TuqCZjeJkLecku/l9R0JPcRhaDA==
dependencies:
d3-color "1"
d3-dispatch "1"
@@ -4542,11 +4570,6 @@ data-urls@^1.0.0:
whatwg-mimetype "^2.2.0"
whatwg-url "^7.0.0"
-date-now@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
- integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=
-
dateformat@^3.0.0:
version "3.0.3"
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
@@ -4576,7 +4599,7 @@ [email protected]:
dependencies:
ms "2.0.0"
-debug@^3.0.0, debug@^3.1.0, debug@^3.2.5, debug@^3.2.6:
+debug@^3.0.0, debug@^3.1.0, debug@^3.1.1, debug@^3.2.5, debug@^3.2.6:
version "3.2.6"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==
@@ -4641,9 +4664,9 @@ dedent@^0.7.0:
integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=
deep-equal@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.0.tgz#3103cdf8ab6d32cf4a8df7865458f2b8d33f3745"
- integrity sha512-ZbfWJq/wN1Z273o7mUSjILYqehAktR2NVoSrOukDkU9kg2v/Uv89yU4Cvz8seJeAmtN5oqiefKq8FPuXOboqLw==
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a"
+ integrity sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==
dependencies:
is-arguments "^1.0.4"
is-date-object "^1.0.1"
@@ -4764,19 +4787,19 @@ deprecation@^2.0.0:
integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==
deps-sort@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5"
- integrity sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.1.tgz#9dfdc876d2bcec3386b6829ac52162cda9fa208d"
+ integrity sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==
dependencies:
JSONStream "^1.0.3"
- shasum "^1.0.0"
+ shasum-object "^1.0.0"
subarg "^1.0.0"
through2 "^2.0.0"
des.js@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc"
- integrity sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.1.tgz#5382142e1bdc53f85d86d53e5f4aa7deb91e0843"
+ integrity sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==
dependencies:
inherits "^2.0.1"
minimalistic-assert "^1.0.0"
@@ -4828,7 +4851,7 @@ detective@^4.0.0:
acorn "^5.2.1"
defined "^1.0.0"
-detective@^5.0.2:
+detective@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/detective/-/detective-5.2.0.tgz#feb2a77e85b904ecdea459ad897cc90a99bd2a7b"
integrity sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==
@@ -5011,17 +5034,18 @@ dom-converter@^0.2:
dependencies:
utila "~0.4"
-"dom-helpers@^2.4.0 || ^3.0.0":
- version "3.4.0"
- resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-3.4.0.tgz#e9b369700f959f62ecde5a6babde4bccd9169af8"
- integrity sha512-LnuPJ+dwqKDIyotW1VzmOZ5TONUN7CwkCR5hrgawTUbkBGYdeoNLZo6nNfGkCrjtE1nXXaj7iMMpDa8/d9WoIA==
+dom-helpers@^5.0.0:
+ version "5.1.3"
+ resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-5.1.3.tgz#7233248eb3a2d1f74aafca31e52c5299cc8ce821"
+ integrity sha512-nZD1OtwfWGRBWlpANxacBEZrEuLa16o1nh7YopFWeoF68Zt8GGEmzHu6Xv4F3XaFIC+YXtTLrzgqKxFgLEe4jw==
dependencies:
- "@babel/runtime" "^7.1.2"
+ "@babel/runtime" "^7.6.3"
+ csstype "^2.6.7"
dom-serializer@0, dom-serializer@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.1.tgz#13650c850daffea35d8b626a4cfc4d3a17643fdb"
- integrity sha512-sK3ujri04WyjwQXVoK4PU3y8ula1stq10GJZpqHIUgoGZdsGzAGu65BnU3d08aTVSvO7mGPZUc0wTEDL+qGE0Q==
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51"
+ integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==
dependencies:
domelementtype "^2.0.1"
entities "^2.0.0"
@@ -5155,19 +5179,19 @@ [email protected]:
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
ejs@^2.6.1:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.7.1.tgz#5b5ab57f718b79d4aca9254457afecd36fa80228"
- integrity sha512-kS/gEPzZs3Y1rRsbGX4UOSjtP/CeJP0CxSNZHYxGfVM/VgLcv0ZqM7C45YyTj2DI2g7+P9Dd24C+IMIg6D0nYQ==
+ version "2.7.4"
+ resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba"
+ integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==
-electron-to-chromium@^1.3.247:
- version "1.3.277"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.277.tgz#38b7b297f9b3f67ea900a965c1b11a555de526ec"
- integrity sha512-Czmsrgng89DOgJlIknnw9bn5431QdtnUwGp5YYiPwU1DbZQUxCLF+rc1ZC09VNAdalOPcvH6AE8BaA0H5HjI/w==
+electron-to-chromium@^1.3.322:
+ version "1.3.322"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz#a6f7e1c79025c2b05838e8e344f6e89eb83213a8"
+ integrity sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA==
elliptic@^6.0.0:
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.1.tgz#c380f5f909bf1b9b4428d028cd18d3b0efd6b52b"
- integrity sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==
+ version "6.5.2"
+ resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762"
+ integrity sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==
dependencies:
bn.js "^4.4.0"
brorand "^1.0.1"
@@ -5211,7 +5235,7 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1:
dependencies:
once "^1.4.0"
[email protected], enhanced-resolve@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz#41c7e0bfdfe74ac1ffe1e57ad6a5c6c9f3742a7f"
integrity sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==
@@ -5220,6 +5244,15 @@ [email protected], enhanced-resolve@^4.1.0:
memory-fs "^0.4.0"
tapable "^1.0.0"
+enhanced-resolve@^4.1.0:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.1.tgz#2937e2b8066cd0fe7ce0990a98f0d71a35189f66"
+ integrity sha512-98p2zE+rL7/g/DzMHMTF4zZlCgeVdJ7yr6xzEpJRYwFYrGi9ANdn5DnJURg6RpBkyk60XYDnWIv51VfIhfNGuA==
+ dependencies:
+ graceful-fs "^4.1.2"
+ memory-fs "^0.5.0"
+ tapable "^1.0.0"
+
entities@^1.1.1, entities@~1.1.1:
version "1.1.2"
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56"
@@ -5236,30 +5269,39 @@ env-paths@^1.0.0:
integrity sha1-QWgTO0K7BcOKNbGuQ5fIKYqzaeA=
enzyme-adapter-react-16@^1.10.0:
- version "1.14.0"
- resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.14.0.tgz#204722b769172bcf096cb250d33e6795c1f1858f"
- integrity sha512-7PcOF7pb4hJUvjY7oAuPGpq3BmlCig3kxXGi2kFx0YzJHppqX1K8IIV9skT1IirxXlu8W7bneKi+oQ10QRnhcA==
+ version "1.15.1"
+ resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.15.1.tgz#8ad55332be7091dc53a25d7d38b3485fc2ba50d5"
+ integrity sha512-yMPxrP3vjJP+4wL/qqfkT6JAIctcwKF+zXO6utlGPgUJT2l4tzrdjMDWGd/Pp1BjHBcljhN24OzNEGRteibJhA==
dependencies:
- enzyme-adapter-utils "^1.12.0"
+ enzyme-adapter-utils "^1.12.1"
+ enzyme-shallow-equal "^1.0.0"
has "^1.0.3"
object.assign "^4.1.0"
object.values "^1.1.0"
prop-types "^15.7.2"
- react-is "^16.8.6"
+ react-is "^16.10.2"
react-test-renderer "^16.0.0-0"
semver "^5.7.0"
-enzyme-adapter-utils@^1.12.0:
- version "1.12.0"
- resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.12.0.tgz#96e3730d76b872f593e54ce1c51fa3a451422d93"
- integrity sha512-wkZvE0VxcFx/8ZsBw0iAbk3gR1d9hK447ebnSYBf95+r32ezBq+XDSAvRErkc4LZosgH8J7et7H7/7CtUuQfBA==
+enzyme-adapter-utils@^1.12.1:
+ version "1.12.1"
+ resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.12.1.tgz#e828e0d038e2b1efa4b9619ce896226f85c9dd88"
+ integrity sha512-KWiHzSjZaLEoDCOxY8Z1RAbUResbqKN5bZvenPbfKtWorJFVETUw754ebkuCQ3JKm0adx1kF8JaiR+PHPiP47g==
dependencies:
- airbnb-prop-types "^2.13.2"
- function.prototype.name "^1.1.0"
+ airbnb-prop-types "^2.15.0"
+ function.prototype.name "^1.1.1"
object.assign "^4.1.0"
- object.fromentries "^2.0.0"
+ object.fromentries "^2.0.1"
prop-types "^15.7.2"
- semver "^5.6.0"
+ semver "^5.7.0"
+
+enzyme-shallow-equal@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/enzyme-shallow-equal/-/enzyme-shallow-equal-1.0.0.tgz#d8e4603495e6ea279038eef05a4bf4887b55dc69"
+ integrity sha512-VUf+q5o1EIv2ZaloNQQtWCJM9gpeux6vudGVH6vLmfPXFLRuxl5+Aq3U260wof9nn0b0i+P5OEUXm1vnxkRpXQ==
+ dependencies:
+ has "^1.0.3"
+ object-is "^1.0.1"
enzyme@^3.9.0:
version "3.10.0"
@@ -5315,32 +5357,49 @@ error-stack-parser@^1.3.6:
stackframe "^0.3.1"
error@^7.0.0:
- version "7.2.0"
- resolved "https://registry.yarnpkg.com/error/-/error-7.2.0.tgz#80c989885635b41df9309d145834a4f125ae2245"
- integrity sha512-M6t3j3Vt3uDicrViMP5fLq2AeADNrCVFD8Oj4Qt2MHsX0mPYG7D5XdnEfSdRpaHQzjAJ19wu+I1mw9rQYMTAPg==
+ version "7.2.1"
+ resolved "https://registry.yarnpkg.com/error/-/error-7.2.1.tgz#eab21a4689b5f684fc83da84a0e390de82d94894"
+ integrity sha512-fo9HBvWnx3NGUKMvMwB/CBCMMrfEJgbDTVDEkPygA3Bdd3lM1OyCd+rbQ8BwnpF6GdVeOLDNmyL4N5Bg80ZvdA==
dependencies:
string-template "~0.2.1"
-es-abstract@^1.10.0, es-abstract@^1.12.0, es-abstract@^1.13.0, es-abstract@^1.15.0, es-abstract@^1.5.0, es-abstract@^1.5.1, es-abstract@^1.7.0:
- version "1.15.0"
- resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.15.0.tgz#8884928ec7e40a79e3c9bc812d37d10c8b24cc57"
- integrity sha512-bhkEqWJ2t2lMeaJDuk7okMkJWI/yqgH/EoGwpcvv0XW9RWQsRspI4wt6xuyuvMvvQE3gg/D9HXppgk21w78GyQ==
+es-abstract@^1.13.0, es-abstract@^1.5.0:
+ version "1.16.3"
+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.16.3.tgz#52490d978f96ff9f89ec15b5cf244304a5bca161"
+ integrity sha512-WtY7Fx5LiOnSYgF5eg/1T+GONaGmpvpPdCpSnYij+U2gDTL0UPfWrhDw7b2IYb+9NQJsYpCA0wOQvZfsd6YwRw==
dependencies:
- es-to-primitive "^1.2.0"
+ es-to-primitive "^1.2.1"
function-bind "^1.1.1"
has "^1.0.3"
- has-symbols "^1.0.0"
+ has-symbols "^1.0.1"
is-callable "^1.1.4"
is-regex "^1.0.4"
- object-inspect "^1.6.0"
+ object-inspect "^1.7.0"
object-keys "^1.1.1"
string.prototype.trimleft "^2.1.0"
string.prototype.trimright "^2.1.0"
-es-to-primitive@^1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377"
- integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==
+es-abstract@^1.17.0-next.0, es-abstract@^1.17.0-next.1:
+ version "1.17.0-next.1"
+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.0-next.1.tgz#94acc93e20b05a6e96dacb5ab2f1cb3a81fc2172"
+ integrity sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw==
+ dependencies:
+ es-to-primitive "^1.2.1"
+ function-bind "^1.1.1"
+ has "^1.0.3"
+ has-symbols "^1.0.1"
+ is-callable "^1.1.4"
+ is-regex "^1.0.4"
+ object-inspect "^1.7.0"
+ object-keys "^1.1.1"
+ object.assign "^4.1.0"
+ string.prototype.trimleft "^2.1.0"
+ string.prototype.trimright "^2.1.0"
+
+es-to-primitive@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"
+ integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==
dependencies:
is-callable "^1.1.4"
is-date-object "^1.0.1"
@@ -5426,6 +5485,11 @@ eslint-plugin-babel@^5.3.0:
dependencies:
eslint-rule-composer "^0.3.0"
+eslint-plugin-eslint-plugin@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-2.1.0.tgz#a7a00f15a886957d855feacaafee264f039e62d5"
+ integrity sha512-kT3A/ZJftt28gbl/Cv04qezb/NQ1dwYIbi8lyf806XMxkus7DvOVCLIfTXMrorp322Pnoez7+zabXH29tADIDg==
+
eslint-plugin-prettier@^3.1.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.1.tgz#507b8562410d02a03f0ddc949c616f877852f2ba"
@@ -5445,19 +5509,20 @@ eslint-plugin-react@^6.7.1:
object.assign "^4.0.4"
eslint-plugin-react@^7.13.0:
- version "7.16.0"
- resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.16.0.tgz#9928e4f3e2122ed3ba6a5b56d0303ba3e41d8c09"
- integrity sha512-GacBAATewhhptbK3/vTP09CbFrgUJmBSaaRcWdbQLFvUZy9yVcQxigBNHGPU/KE2AyHpzj3AWXpxoMTsIDiHug==
+ version "7.17.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.17.0.tgz#a31b3e134b76046abe3cd278e7482bd35a1d12d7"
+ integrity sha512-ODB7yg6lxhBVMeiH1c7E95FLD4E/TwmFjltiU+ethv7KPdCwgiFuOZg9zNRHyufStTDLl/dEFqI2Q1VPmCd78A==
dependencies:
array-includes "^3.0.3"
doctrine "^2.1.0"
+ eslint-plugin-eslint-plugin "^2.1.0"
has "^1.0.3"
- jsx-ast-utils "^2.2.1"
+ jsx-ast-utils "^2.2.3"
object.entries "^1.1.0"
- object.fromentries "^2.0.0"
+ object.fromentries "^2.0.1"
object.values "^1.1.0"
prop-types "^15.7.2"
- resolve "^1.12.0"
+ resolve "^1.13.1"
eslint-rule-composer@^0.3.0:
version "0.3.0"
@@ -5489,13 +5554,13 @@ eslint-scope@^4.0.3:
estraverse "^4.1.1"
eslint-utils@^1.3.1:
- version "1.4.2"
- resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.2.tgz#166a5180ef6ab7eb462f162fd0e6f2463d7309ab"
- integrity sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q==
+ version "1.4.3"
+ resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f"
+ integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==
dependencies:
- eslint-visitor-keys "^1.0.0"
+ eslint-visitor-keys "^1.1.0"
-eslint-visitor-keys@^1.0.0:
+eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2"
integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==
@@ -5912,11 +5977,16 @@ fast-json-stable-stringify@^2.0.0:
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I=
-fast-levenshtein@~2.0.4:
+fast-levenshtein@~2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
+fast-safe-stringify@^2.0.7:
+ version "2.0.7"
+ resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz#124aa885899261f68aedb42a7c080de9da608743"
+ integrity sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==
+
faye-websocket@^0.10.0, faye-websocket@~0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4"
@@ -6260,9 +6330,9 @@ fs.realpath@^1.0.0:
integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
fsevents@^1.2.7:
- version "1.2.9"
- resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.9.tgz#3f5ed66583ccd6f400b5a00db6f7e861363e388f"
- integrity sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==
+ version "1.2.10"
+ resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.10.tgz#47252793be8a625a5f96dfaa1c88547f4b20595a"
+ integrity sha512-Dw5DScF/8AWhWzWRbnQrFJfeR/TOJZjRr9Du9kfmd8t234ICcVeDBlauFl/jVcE5ZewhlPoCFvIqp0SE3kAVxA==
dependencies:
nan "^2.12.1"
node-pre-gyp "^0.12.0"
@@ -6288,9 +6358,9 @@ functional-red-black-tree@^1.0.1:
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
functions-have-names@^1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.1.1.tgz#79d35927f07b8e7103d819fed475b64ccf7225ea"
- integrity sha512-U0kNHUoxwPNPWOJaMG7Z00d4a/qZVrFtzWJRaK8V9goaVOCXBSQSJpt3MYGNtkScKEBKovxLjnNdC9MlXwo5Pw==
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.0.tgz#83da7583e4ea0c9ac5ff530f73394b033e0bf77d"
+ integrity sha512-zKXyzksTeaCSw5wIX79iCA40YAa6CJMJgNg9wdkU/ERBrIdPSimPICYiLp65lRbSBqtiHql/HZfS2DyI/AH6tQ==
fuzzy@^0.1.3:
version "0.1.3"
@@ -6553,19 +6623,7 @@ glob@^6.0.1:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^7.0.0, glob@^7.0.3, glob@^7.0.6, glob@^7.1.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@~7.1.2:
- version "7.1.4"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255"
- integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.4"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-glob@~7.1.4:
+glob@^7.0.0, glob@^7.0.3, glob@^7.0.6, glob@^7.1.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@~7.1.2, glob@~7.1.4:
version "7.1.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
@@ -6697,12 +6755,7 @@ got@^5.0.0:
unzip-response "^1.0.2"
url-parse-lax "^1.0.0"
-graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
- version "4.2.2"
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02"
- integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==
-
-graceful-fs@^4.2.0:
+graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
version "4.2.3"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423"
integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==
@@ -6712,11 +6765,6 @@ grid-index@^1.1.0:
resolved "https://registry.yarnpkg.com/grid-index/-/grid-index-1.1.0.tgz#97f8221edec1026c8377b86446a7c71e79522ea7"
integrity sha512-HZRwumpOGUrHyxO5bqKZL0B0GlUpwtCAzZ42sgxUPniu33R1LSFH5yrIcBCHjkctCAh3mtWKcKd9J4vDDdeVHA==
-"growl@~> 1.10.0":
- version "1.10.5"
- resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
- integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
-
gzip-size@^5.0.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-5.1.1.tgz#cb9bee692f87c0612b232840a873904e4c135274"
@@ -6726,9 +6774,9 @@ gzip-size@^5.0.0:
pify "^4.0.1"
h3-js@^3.1.0, h3-js@^3.4.3:
- version "3.6.1"
- resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-3.6.1.tgz#81ee5c2ba2d35889648dfa0b5c92fcf3f7bacd80"
- integrity sha512-KsZzS7ozL4V4AQTit4mBx6KcxsJrV5ffWJtvmpG6crpwIb0iuwkwbMbEm5Ftve94qVx12LcfMWbeHK6LdMTGCw==
+ version "3.6.3"
+ resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-3.6.3.tgz#74807ddafc39f2e34688c6fc4cf225248c891c6c"
+ integrity sha512-sSfUD4WrqKDoGsGjeY/ih2kbl/HqunGzdAr4NL8Q1qHSAyGMvev3jABbsMvK9wJGmnGuGhIzgxX9kCbUsYcnwg==
hammerjs@^2.0.8:
version "2.0.8"
@@ -6740,18 +6788,7 @@ handle-thing@^2.0.0:
resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.0.tgz#0e039695ff50c93fc288557d696f3c1dc6776754"
integrity sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ==
-handlebars@^4.0.3:
- version "4.4.2"
- resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.4.2.tgz#8810a9821a9d6d52cb2f57d326d6ce7c3dfe741d"
- integrity sha512-cIv17+GhL8pHHnRJzGu2wwcthL5sb8uDKBHvZ2Dtu5s1YNt0ljbzKbamnc+gr69y7bzwQiBdr5+hOpRd5pnOdg==
- dependencies:
- neo-async "^2.6.0"
- optimist "^0.6.1"
- source-map "^0.6.1"
- optionalDependencies:
- uglify-js "^3.1.4"
-
-handlebars@^4.1.2, handlebars@^4.4.0:
+handlebars@^4.0.3, handlebars@^4.1.2, handlebars@^4.4.0, handlebars@^4.5.3:
version "4.5.3"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482"
integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==
@@ -6792,10 +6829,10 @@ has-flag@^3.0.0:
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0=
-has-symbols@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44"
- integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=
+has-symbols@^1.0.0, has-symbols@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8"
+ integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==
has-unicode@^2.0.0, has-unicode@^2.0.1:
version "2.0.1"
@@ -6902,9 +6939,11 @@ [email protected], he@^1.1.0:
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
highlight.js@^9.15.5:
- version "9.15.10"
- resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.10.tgz#7b18ed75c90348c045eef9ed08ca1319a2219ad2"
- integrity sha512-RoV7OkQm0T3os3Dd2VHLNMoaoDVx77Wygln3n9l5YV172XonWG6rgQD3XnF/BuFFZw9A0TJgmMSO8FEWQgvcXw==
+ version "9.17.1"
+ resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.17.1.tgz#14a4eded23fd314b05886758bb906e39dd627f9a"
+ integrity sha512-TA2/doAur5Ol8+iM3Ov7qy3jYcr/QiJ2eDTdRF4dfbjG7AaaB99J5G+zSl11ljbl6cIcahgPY6SKb3sC3EJ0fw==
+ dependencies:
+ handlebars "^4.5.3"
hmac-drbg@^1.0.0:
version "1.0.1"
@@ -6923,7 +6962,7 @@ [email protected]:
hoist-non-react-statics@^3.3.0:
version "3.3.1"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#101685d3aff3b23ea213163f6e8e12f4f111e19f"
- integrity sha1-EBaF06/zsj6iExY/bo4S9PER4Z8=
+ integrity sha512-wbg3bpgA/ZqWrZuMOeJi8+SKMhr7X9TesL/rXMjTzh0p0JUBo3II8DHboYbuIXWRlttrUFxwcu/5kygrCw8fJw==
dependencies:
react-is "^16.7.0"
@@ -6939,12 +6978,7 @@ hoopy@^0.1.4:
resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d"
integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==
-hosted-git-info@^2.1.4:
- version "2.8.4"
- resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546"
- integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==
-
-hosted-git-info@^2.7.1:
+hosted-git-info@^2.1.4, hosted-git-info@^2.7.1:
version "2.8.5"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.5.tgz#759cfcf2c4d156ade59b0b2dfabddc42a6b9c70c"
integrity sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==
@@ -6960,9 +6994,9 @@ hpack.js@^2.1.6:
wbuf "^1.1.0"
html-element-map@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.1.0.tgz#e5aab9a834caf883b421f8bd9eaedcaac887d63c"
- integrity sha512-iqiG3dTZmy+uUaTmHarTL+3/A2VW9ox/9uasKEZC+R/wAtUrTcRlXPSaPqsnWPfIu8wqn09jQNwMRqzL54jSYA==
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.2.0.tgz#dfbb09efe882806af63d990cf6db37993f099f22"
+ integrity sha512-0uXq8HsuG1v2TmQ8QkIhzbrqeskE4kn52Q18QJ9iAA/SnHoEKXWiUxHQtclRsCFWEUD2So34X+0+pZZu862nnw==
dependencies:
array-filter "^1.0.0"
@@ -7134,15 +7168,7 @@ https-browserify@^1.0.0:
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=
-https-proxy-agent@^2.2.1:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.2.tgz#271ea8e90f836ac9f119daccd39c19ff7dfb0793"
- integrity sha512-c8Ndjc9Bkpfx/vCJueCPy0jlP4ccCCSNDp8xwCZzPjKJUm+B+u9WX2x98Qx4n1PiMNTWo3D7KK5ifNV/yJyRzg==
- dependencies:
- agent-base "^4.3.0"
- debug "^3.1.0"
-
-https-proxy-agent@^2.2.3:
+https-proxy-agent@^2.2.1, https-proxy-agent@^2.2.3:
version "2.2.4"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b"
integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==
@@ -7175,9 +7201,9 @@ iferr@^0.1.5:
integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE=
ignore-walk@^3.0.1:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.2.tgz#99d83a246c196ea5c93ef9315ad7b0819c35069b"
- integrity sha512-EXyErtpHbn75ZTsOADsfx6J/FPo6/5cjev46PXrcTpd8z3BoRkXgYu9/JVqrI7tusjmwCZutGeRJeU0Wo1e4Cw==
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37"
+ integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==
dependencies:
minimatch "^3.0.4"
@@ -7200,9 +7226,9 @@ import-fresh@^2.0.0:
resolve-from "^3.0.0"
import-fresh@^3.0.0:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.1.0.tgz#6d33fa1dcef6df930fae003446f33415af905118"
- integrity sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66"
+ integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==
dependencies:
parent-module "^1.0.0"
resolve-from "^4.0.0"
@@ -7750,11 +7776,11 @@ is-subset@^0.1.1:
integrity sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY=
is-symbol@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38"
- integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937"
+ integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==
dependencies:
- has-symbols "^1.0.0"
+ has-symbols "^1.0.1"
is-text-path@^1.0.1:
version "1.0.1"
@@ -7786,9 +7812,9 @@ is-valid-glob@^1.0.0:
integrity sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=
is-what@^3.3.1:
- version "3.3.1"
- resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.3.1.tgz#79502181f40226e2d8c09226999db90ef7c1bcbe"
- integrity sha512-seFn10yAXy+yJlTRO+8VfiafC+0QJanGLMPTBWLrJm/QPauuchy0UXh8B6H5o9VA8BAzk0iYievt6mNp6gfaqA==
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.4.0.tgz#a9b3fe0c22f52d49efef977f640da44e65a3f866"
+ integrity sha512-oFdBRuSY9PocqPoUUseDXek4I+A1kWGigZGhuG+7GEkp0tRkek11adc0HbTEVsNvtojV7rp0uhf5LWtGvHzoOQ==
is-whitespace-character@^1.0.0:
version "1.0.3"
@@ -8133,10 +8159,10 @@ jsx-ast-utils@^1.3.4:
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1"
integrity sha1-OGchPo3Xm/Ho8jAMDPwe+xgsDfE=
-jsx-ast-utils@^2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.1.tgz#4d4973ebf8b9d2837ee91a8208cc66f3a2776cfb"
- integrity sha512-v3FxCcAf20DayI+uxnCuw795+oOIkVu6EnJ1+kSzhqqTZHNkTZ7B66ZgLp4oLJ/gbA64cI0B7WRoHZMSRdyVRQ==
+jsx-ast-utils@^2.2.3:
+ version "2.2.3"
+ resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz#8a9364e402448a3ce7f14d357738310d9248054f"
+ integrity sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==
dependencies:
array-includes "^3.0.3"
object.assign "^4.1.0"
@@ -8226,10 +8252,10 @@ lcid@^2.0.0:
dependencies:
invert-kv "^2.0.0"
-lcov-parse@^0.0.10:
- version "0.0.10"
- resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
- integrity sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=
+lcov-parse@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0"
+ integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A=
lead@^1.0.0:
version "1.0.0"
@@ -8274,11 +8300,6 @@ levn@^0.3.0, levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/linear-layout-vector/-/linear-layout-vector-0.0.1.tgz#398114d7303b6ecc7fd6b273af7b8401d8ba9c70"
- integrity sha1-OYEU1zA7bsx/1rJzr3uEAdi6nHA=
-
livereload-js@^2.3.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-2.4.0.tgz#447c31cf1ea9ab52fc20db615c5ddf678f78009c"
@@ -8466,6 +8487,11 @@ lodash.uniq@^4.0.1, lodash.uniq@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
+lodash.uniqby@^4.7.0:
+ version "4.7.0"
+ resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302"
+ integrity sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=
+
lodash@^3.6.0:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
@@ -8482,9 +8508,9 @@ log-driver@^1.2.7:
integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==
loglevel@^1.6.4:
- version "1.6.4"
- resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.4.tgz#f408f4f006db8354d0577dcf6d33485b3cb90d56"
- integrity sha512-p0b6mOGKcGa+7nnmKbpzR6qloPbrgLcnio++E+14Vo/XffOGwZtRpUhr8dTH/x2oCMmEoIU0Zwm3ZauhvYD17g==
+ version "1.6.6"
+ resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.6.tgz#0ee6300cc058db6b3551fa1c4bf73b83bb771312"
+ integrity sha512-Sgr5lbboAUBo3eXCSPL4/KoVz3ROKquOjcctxmHIt+vol2DrqTQe3SwkKKuYhEiWB5kYa13YyopJ69deJ1irzQ==
lolex@^1.6.0:
version "1.6.0"
@@ -8542,13 +8568,13 @@ lru-cache@^5.1.1:
yallist "^3.0.2"
luma.gl@^7.1.1:
- version "7.3.1"
- resolved "https://registry.yarnpkg.com/luma.gl/-/luma.gl-7.3.1.tgz#512bd2488e67de05e6aca0b3ff363205e7cd9de5"
- integrity sha512-Gnfpf5Cry2VrxX5XgW/gVoX3gagYRu9d/oKcdgu6lTioY46Dod7lZRWVTZogYv8J0E3/SzeRRBoepAQ+ydntEA==
+ version "7.3.2"
+ resolved "https://registry.yarnpkg.com/luma.gl/-/luma.gl-7.3.2.tgz#97a416d77fffd3044735ed75d19bdbf5aff00e94"
+ integrity sha512-iBm+G2AlQQcd1xXoltEL9Xkohkk/0oyvQU2vgQY4WRfi92JFiimpWnAUR8/hM9jj7jqT4zdc74vUR+GunvQYAA==
dependencies:
- "@luma.gl/addons" "7.3.1"
- "@luma.gl/constants" "7.3.1"
- "@luma.gl/core" "7.3.1"
+ "@luma.gl/addons" "7.3.2"
+ "@luma.gl/constants" "7.3.2"
+ "@luma.gl/core" "7.3.2"
macos-release@^2.2.0:
version "2.3.0"
@@ -8622,9 +8648,9 @@ map-visit@^1.0.0:
object-visit "^1.0.0"
mapbox-gl@^1.0.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/mapbox-gl/-/mapbox-gl-1.4.0.tgz#6ec3c3a8f07b7ca632e99e2ea6458cef89fa776c"
- integrity sha512-4nXRXanISou8oWLU7DH1ZetKvCJR9XtnMlQQ4Ia80wjghIHc5ljmAV/loNCI2UAGyuKINc7QcTiwUXrjE+Kv4w==
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/mapbox-gl/-/mapbox-gl-1.6.0.tgz#f5f6040476a6514712229d057888dd8c25927672"
+ integrity sha512-eCHiC8mDa/pOxSi7Z4s4qFWYN8h2uV3zXn6Yf8znbjlMNuYeusV8o3NZb/3rkL6m6gh+UJJL7KTUAc3tedMblA==
dependencies:
"@mapbox/geojson-rewind" "^0.4.0"
"@mapbox/geojson-types" "^1.0.2"
@@ -8642,11 +8668,11 @@ mapbox-gl@^1.0.0:
grid-index "^1.1.0"
minimist "0.0.8"
murmurhash-js "^1.0.0"
- pbf "^3.0.5"
+ pbf "^3.2.1"
potpack "^1.0.1"
quickselect "^2.0.0"
rw "^1.3.3"
- supercluster "^6.0.1"
+ supercluster "^7.0.0"
tinyqueue "^2.0.0"
vt-pbf "^3.1.1"
@@ -8715,16 +8741,16 @@ [email protected]:
unist-util-visit-parents "1.1.2"
mdast-util-compact@^1.0.0:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.3.tgz#98a25cc8a7865761a41477b3a87d1dcef0b1e79d"
- integrity sha512-nRiU5GpNy62rZppDKbLwhhtw5DXoFMqw9UNZFmlPsNaQCZ//WLjGKUwWMdJrUH+Se7UvtO2gXtAMe0g/N+eI5w==
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.4.tgz#d531bb7667b5123abf20859be086c4d06c894593"
+ integrity sha512-3YDMQHI5vRiS2uygEFYaqckibpJtKq5Sj2c8JioeOQBU6INpKbdWzfyLqFFnDwEcEnRFIdMsguzs5pC1Jp4Isg==
dependencies:
unist-util-visit "^1.1.0"
mdast-util-definitions@^1.2.0:
- version "1.2.4"
- resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-1.2.4.tgz#2b54ad4eecaff9d9fcb6bf6f9f6b68b232d77ca7"
- integrity sha512-HfUArPog1j4Z78Xlzy9Q4aHLnrF/7fb57cooTHypyGoe2XFNbcx/kWZDoOz+ra8CkUzvg3+VHV434yqEd1DRmA==
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-1.2.5.tgz#3fe622a4171c774ebd06f11e9f8af7ec53ea5c74"
+ integrity sha512-CJXEdoLfiISCDc2JB6QLb79pYfI6+GcIH+W2ox9nMc7od0Pz+bovcHsiq29xAQY6ayqe/9CsK2VzkSJdg1pFYA==
dependencies:
unist-util-visit "^1.0.0"
@@ -8753,9 +8779,9 @@ mdast-util-to-hast@^3.0.0:
xtend "^4.0.1"
mdast-util-to-string@^1.0.0, mdast-util-to-string@^1.0.5:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.0.6.tgz#7d85421021343b33de1552fc71cb8e5b4ae7536d"
- integrity sha512-868pp48gUPmZIhfKrLbaDneuzGiw3OTDjHc5M1kAepR2CWBJ+HpEsm252K4aXdiP5coVZaJPOqGtVU6Po8xnXg==
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.0.7.tgz#62d8e9c6b2113070d8b497c7dc35bf12796f06ee"
+ integrity sha512-P+gdtssCoHOX+eJUrrC30Sixqao86ZPlVjR5NEAoy0U79Pfxb1Y0Gntei0+GrnQD4T04X9xA8tcugp90cSmNow==
mdast-util-toc@^3.0.0:
version "3.1.0"
@@ -8806,6 +8832,14 @@ memory-fs@^0.4.0, memory-fs@^0.4.1:
errno "^0.1.3"
readable-stream "^2.0.1"
+memory-fs@^0.5.0:
+ version "0.5.0"
+ resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.5.0.tgz#324c01288b88652966d161db77838720845a8e3c"
+ integrity sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==
+ dependencies:
+ errno "^0.1.3"
+ readable-stream "^2.0.1"
+
meow@^3.3.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
@@ -8853,9 +8887,9 @@ meow@^5.0.0:
yargs-parser "^10.0.0"
merge-anything@^2.2.4:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/merge-anything/-/merge-anything-2.4.1.tgz#e9bccaec1e49ec6cb5f77ca78c5770d1a35315e6"
- integrity sha512-dYOIAl9GFCJNctSIHWOj9OJtarCjsD16P8ObCl6oxrujAG+kOvlwJuOD9/O9iYZ9aTi1RGpGTG9q9etIvuUikQ==
+ version "2.4.4"
+ resolved "https://registry.yarnpkg.com/merge-anything/-/merge-anything-2.4.4.tgz#6226b2ac3d3d3fc5fb9e8d23aa400df25f98fdf0"
+ integrity sha512-l5XlriUDJKQT12bH+rVhAHjwIuXWdAIecGwsYjv2LJo+dA1AeRTmeQS+3QBpO6lEthBMDi2IUMpLC1yyRvGlwQ==
dependencies:
is-what "^3.3.1"
@@ -8927,22 +8961,17 @@ miller-rabin@^4.0.0:
bn.js "^4.0.0"
brorand "^1.0.1"
- version "1.40.0"
- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32"
- integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==
-
-"mime-db@>= 1.40.0 < 2":
[email protected], "mime-db@>= 1.40.0 < 2":
version "1.42.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.42.0.tgz#3e252907b4c7adb906597b4b65636272cf9e7bac"
integrity sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==
mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24:
- version "2.1.24"
- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81"
- integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==
+ version "2.1.25"
+ resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.25.tgz#39772d46621f93e2a80a856c53b86a62156a6437"
+ integrity sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==
dependencies:
- mime-db "1.40.0"
+ mime-db "1.42.0"
version "1.3.6"
@@ -9070,7 +9099,7 @@ mixin-deep@^1.2.0:
for-in "^1.0.2"
is-extendable "^1.0.1"
-mjolnir.js@^2.1.2, mjolnir.js@^2.2.0:
+mjolnir.js@^2.1.0, mjolnir.js@^2.1.2, mjolnir.js@^2.2.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/mjolnir.js/-/mjolnir.js-2.2.1.tgz#84fc2352ff2ec58b061b0dab1a5ec67f3d2ad966"
integrity sha512-bUTP/NbwOfdrN4TKMjUcarfGmWU5yN6aHFR1ek7BNuFOwHk4PslUZjKzdOp1jwx2m0uCoRa5lG+x82l8Vii7Ng==
@@ -9085,7 +9114,7 @@ mkdirp-promise@^5.0.1:
dependencies:
mkdirp "*"
-mkdirp@*, [email protected], [email protected], mkdirp@^0.5.0, mkdirp@^0.5.1:
+mkdirp@*, [email protected], mkdirp@^0.5.0, mkdirp@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=
@@ -9123,16 +9152,16 @@ [email protected]:
xtend "^4.0.0"
module-deps@^6.0.0:
- version "6.2.1"
- resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.2.1.tgz#cfe558784060e926824f474b4e647287837cda50"
- integrity sha512-UnEn6Ah36Tu4jFiBbJVUtt0h+iXqxpLqDvPS8nllbw5RZFmNJ1+Mz5BjYnM9ieH80zyxHkARGLnMIHlPK5bu6A==
+ version "6.2.2"
+ resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.2.2.tgz#d8a15c2265dfc119153c29bb47386987d0ee423b"
+ integrity sha512-a9y6yDv5u5I4A+IPHTnqFxcaKr4p50/zxTjcQJaX2ws9tN/W6J6YXnEKhqRyPhl494dkcxx951onSKVezmI+3w==
dependencies:
JSONStream "^1.0.3"
browser-resolve "^1.7.0"
cached-path-relative "^1.0.2"
concat-stream "~1.6.0"
defined "^1.0.0"
- detective "^5.0.2"
+ detective "^5.2.0"
duplexer2 "^0.1.2"
inherits "^2.0.1"
parents "^1.0.0"
@@ -9307,9 +9336,9 @@ no-case@^2.2.0:
lower-case "^1.1.1"
node-abi@^2.7.0:
- version "2.11.0"
- resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.11.0.tgz#b7dce18815057544a049be5ae75cd1fdc2e9ea59"
- integrity sha512-kuy/aEg75u40v378WRllQ4ZexaXJiCvB68D2scDXclp/I4cRq6togpbOoKhmN07tns9Zldu51NNERo0wehfX9g==
+ version "2.13.0"
+ resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.13.0.tgz#e2f2ec444d0aca3ea1b3874b6de41d1665828f63"
+ integrity sha512-9HrZGFVTR5SOu3PZAnAY2hLO36aW1wmA+FDsVkr85BTST32TLCA1H/AEcatVRAsWLyXS3bqUDYCAjq5/QGuSTA==
dependencies:
semver "^5.4.1"
@@ -9432,10 +9461,10 @@ node-pre-gyp@^0.12.0:
semver "^5.3.0"
tar "^4"
-node-releases@^1.1.29:
- version "1.1.34"
- resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.34.tgz#ced4655ee1ba9c3a2c5dcbac385e19434155fd40"
- integrity sha512-fNn12JTEfniTuCqo0r9jXgl44+KxRH/huV7zM/KAGOKxDKrHr6EbT7SSs4B+DNxyBE2mks28AD+Jw6PkfY5uwA==
+node-releases@^1.1.42:
+ version "1.1.42"
+ resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.42.tgz#a999f6a62f8746981f6da90627a8d2fc090bbad7"
+ integrity sha512-OQ/ESmUqGawI2PRX+XIRao44qWYBBfN54ImQYdWVTQqUckuejOg76ysSqDBK8NG3zwySRVnX36JwDQ6x+9GxzA==
dependencies:
semver "^6.3.0"
@@ -9509,9 +9538,11 @@ now-and-later@^2.0.0:
once "^1.3.2"
npm-bundled@^1.0.1:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd"
- integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b"
+ integrity sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==
+ dependencies:
+ npm-normalize-package-bin "^1.0.1"
npm-lifecycle@^3.1.2:
version "3.1.4"
@@ -9527,6 +9558,11 @@ npm-lifecycle@^3.1.2:
umask "^1.1.0"
which "^1.3.1"
+npm-normalize-package-bin@^1.0.0, npm-normalize-package-bin@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2"
+ integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==
+
"npm-package-arg@^4.0.0 || ^5.0.0 || ^6.0.0", npm-package-arg@^6.0.0, npm-package-arg@^6.1.0:
version "6.1.1"
resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-6.1.1.tgz#02168cb0a49a2b75bf988a28698de7b529df5cb7"
@@ -9537,18 +9573,10 @@ npm-lifecycle@^3.1.2:
semver "^5.6.0"
validate-npm-package-name "^3.0.0"
-npm-packlist@^1.1.6:
- version "1.4.4"
- resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.4.tgz#866224233850ac534b63d1a6e76050092b5d2f44"
- integrity sha512-zTLo8UcVYtDU3gdeaFu2Xu0n0EvelfHDGuqtNIn5RO7yQj4H1TqNdBc/yZjxnWA0PVB8D3Woyp0i5B43JwQ6Vw==
- dependencies:
- ignore-walk "^3.0.1"
- npm-bundled "^1.0.1"
-
-npm-packlist@^1.4.4:
- version "1.4.6"
- resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.6.tgz#53ba3ed11f8523079f1457376dd379ee4ea42ff4"
- integrity sha512-u65uQdb+qwtGvEJh/DgQgW1Xg7sqeNbmxYyrvlNznaVTjV3E5P6F/EFjM+BVHXl7JJlsdG8A64M0XI8FI/IOlg==
+npm-packlist@^1.1.6, npm-packlist@^1.4.4:
+ version "1.4.7"
+ resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.7.tgz#9e954365a06b80b18111ea900945af4f88ed4848"
+ integrity sha512-vAj7dIkp5NhieaGZxBJB8fF4R0078rqsmhJcAfXZ6O7JJhjhPK96n5Ry1oZcfLXgfun0GWTZPOxaEyqv8GBykQ==
dependencies:
ignore-walk "^3.0.1"
npm-bundled "^1.0.1"
@@ -9592,9 +9620,9 @@ number-is-nan@^1.0.0:
integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=
nwsapi@^2.0.7:
- version "2.1.4"
- resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.1.4.tgz#e006a878db23636f8e8a67d33ca0e4edf61a842f"
- integrity sha512-iGfd9Y6SFdTNldEy2L0GUhcarIutFmk+MPWIn9dmj8NMIup03G08uUF2KGbbmv/Ux4RT0VZJoP/sVbWA6d/VIw==
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7"
+ integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==
nyc@^11.4.1:
version "11.9.0"
@@ -9678,16 +9706,21 @@ object-copy@^0.1.0:
define-property "^0.2.5"
kind-of "^3.0.3"
-object-inspect@^1.6.0, object-inspect@~1.6.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b"
- integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==
+object-inspect@^1.6.0, object-inspect@^1.7.0:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67"
+ integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==
object-inspect@~1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.3.0.tgz#5b1eb8e6742e2ee83342a637034d844928ba2f6d"
integrity sha512-OHHnLgLNXpM++GnJRyyhbr2bwl3pPVm4YvaraHrRvDt/N3r+s/gDVHciA7EJBTkijKXj61ssgSAikq1fb0IBRg==
+object-inspect@~1.6.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b"
+ integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==
+
object-is@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.0.1.tgz#0aa60ec9989a0b3ed795cf4d06f62cf1ad6539b6"
@@ -9716,32 +9749,32 @@ object.assign@^4.0.1, object.assign@^4.0.4, object.assign@^4.1.0:
object-keys "^1.0.11"
object.entries@^1.0.4, object.entries@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.0.tgz#2024fc6d6ba246aee38bdb0ffd5cfbcf371b7519"
- integrity sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA==
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.1.tgz#ee1cf04153de02bb093fec33683900f57ce5399b"
+ integrity sha512-ilqR7BgdyZetJutmDPfXCDffGa0/Yzl2ivVNpbx/g4UeWrCdRnFDUBrKJGLhGieRHDATnyZXWBeCb29k9CJysQ==
dependencies:
define-properties "^1.1.3"
- es-abstract "^1.12.0"
+ es-abstract "^1.17.0-next.1"
function-bind "^1.1.1"
has "^1.0.3"
-object.fromentries@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.1.tgz#050f077855c7af8ae6649f45c80b16ee2d31e704"
- integrity sha512-PUQv8Hbg3j2QX0IQYv3iAGCbGcu4yY4KQ92/dhA4sFSixBmSmp13UpDLs6jGK8rBtbmhNNIK99LD2k293jpiGA==
+object.fromentries@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.2.tgz#4a09c9b9bb3843dd0f89acdb517a794d4f355ac9"
+ integrity sha512-r3ZiBH7MQppDJVLx6fhD618GKNG40CZYH9wgwdhKxBDDbQgjeWGGd4AtkZad84d291YxvWe7bJGuE65Anh0dxQ==
dependencies:
define-properties "^1.1.3"
- es-abstract "^1.15.0"
+ es-abstract "^1.17.0-next.1"
function-bind "^1.1.1"
has "^1.0.3"
object.getownpropertydescriptors@^2.0.3:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16"
- integrity sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649"
+ integrity sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==
dependencies:
- define-properties "^1.1.2"
- es-abstract "^1.5.1"
+ define-properties "^1.1.3"
+ es-abstract "^1.17.0-next.1"
object.omit@^2.0.0:
version "2.0.1"
@@ -9759,12 +9792,12 @@ object.pick@^1.3.0:
isobject "^3.0.1"
object.values@^1.0.4, object.values@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.0.tgz#bf6810ef5da3e5325790eaaa2be213ea84624da9"
- integrity sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg==
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e"
+ integrity sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==
dependencies:
define-properties "^1.1.3"
- es-abstract "^1.12.0"
+ es-abstract "^1.17.0-next.1"
function-bind "^1.1.1"
has "^1.0.3"
@@ -9857,16 +9890,16 @@ optimist@^0.6.1:
wordwrap "~0.0.2"
optionator@^0.8.1, optionator@^0.8.2:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
- integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=
+ version "0.8.3"
+ resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
+ integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==
dependencies:
deep-is "~0.1.3"
- fast-levenshtein "~2.0.4"
+ fast-levenshtein "~2.0.6"
levn "~0.3.0"
prelude-ls "~1.1.2"
type-check "~0.3.2"
- wordwrap "~1.0.0"
+ word-wrap "~1.2.3"
ordered-read-streams@^1.0.0:
version "1.0.1"
@@ -9938,15 +9971,6 @@ outpipe@^1.1.0:
dependencies:
shell-quote "^1.4.2"
-output-file-sync@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-2.0.1.tgz#f53118282f5f553c2799541792b723a4c71430c0"
- integrity sha512-mDho4qm7WgIXIGf4eYU1RHN2UU5tPfVYVSRwDJw0uTmj35DQUt/eNp19N7v6T3SrR0ESTEf2up2CGO73qI35zQ==
- dependencies:
- graceful-fs "^4.1.11"
- is-plain-obj "^1.1.0"
- mkdirp "^0.5.1"
-
p-defer@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c"
@@ -10301,9 +10325,9 @@ [email protected]:
integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=
path-to-regexp@^1.7.0:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d"
- integrity sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=
+ version "1.8.0"
+ resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a"
+ integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==
dependencies:
isarray "0.0.1"
@@ -10323,10 +10347,10 @@ path-type@^3.0.0:
dependencies:
pify "^3.0.0"
-pbf@^3.0.5, pbf@^3.1.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/pbf/-/pbf-3.2.0.tgz#e76f9f5114e395c25077ad6fe463b3507d6877fc"
- integrity sha512-98Eh7rsJNJF/Im6XYMLaOW3cLnNyedlOd6hu3iWMD5I7FZGgpw8yN3vQBrmLbLodu7G784Irb9Qsv2yFrxSAGw==
+pbf@^3.0.5, pbf@^3.1.0, pbf@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/pbf/-/pbf-3.2.1.tgz#b4c1b9e72af966cd82c6531691115cc0409ffe2a"
+ integrity sha512-ClrV7pNOn7rtmoQVF4TS1vyU0WhYRnP92fzbfF75jAIwpnzdJXf8iTd4CMEqO4yUenH6NDqLiwjqlh6QgZzgLQ==
dependencies:
ieee754 "^1.1.12"
resolve-protobuf-schema "^2.1.0"
@@ -10439,14 +10463,14 @@ pngjs@^3.0.0:
resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f"
integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==
-portfinder@^1.0.24:
- version "1.0.24"
- resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.24.tgz#11efbc6865f12f37624b6531ead1d809ed965cfa"
- integrity sha512-ekRl7zD2qxYndYflwiryJwMioBI7LI7rVXg3EnLK3sjkouT5eOuhS3gS255XxBksa30VG8UPZYZCdgfGOfkSUg==
+portfinder@^1.0.25:
+ version "1.0.25"
+ resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.25.tgz#254fd337ffba869f4b9d37edc298059cb4d35eca"
+ integrity sha512-6ElJnHBbxVA1XSLgBp7G1FiCkQdlqGzuF7DswL5tcea+E8UpuvPU7beVAjjRwCioTS9ZluNbu+ZyRvgTsmqEBg==
dependencies:
- async "^1.5.2"
- debug "^2.2.0"
- mkdirp "0.5.x"
+ async "^2.6.2"
+ debug "^3.1.1"
+ mkdirp "^0.5.1"
posix-character-classes@^0.1.0:
version "0.1.1"
@@ -10464,9 +10488,9 @@ potpack@^1.0.1:
integrity sha512-15vItUAbViaYrmaB/Pbw7z6qX2xENbFSTA7Ii4tgbPtasxm5v6ryKhKtL91tpWovDJzTiZqdwzhcFBCwiMVdVw==
prebuild-install@^5.1.0:
- version "5.3.2"
- resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.2.tgz#6392e9541ac0b879ef0f22b3d65037417eb2035e"
- integrity sha512-INDfXzTPnhT+WYQemqnAXlP7SvfiFMopMozSgXCZ+RDLb279gKfIuLk4o7PgEawLp3WrMgIYGBpkxpraROHsSA==
+ version "5.3.3"
+ resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.3.tgz#ef4052baac60d465f5ba6bf003c9c1de79b9da8e"
+ integrity sha512-GV+nsUXuPW2p8Zy7SarF/2W/oiK8bFQgJcncoJ0d7kRpekEA0ftChjfEaF9/Y+QJEc/wFR7RAEa8lYByuUIe2g==
dependencies:
detect-libc "^1.0.3"
expand-template "^2.0.3"
@@ -10519,9 +10543,9 @@ [email protected]:
integrity sha512-qZDVnCrnpsRJJq5nSsiHCE3BYMED2OtsI+cmzIzF1QIfqm5ALf8tEJcO27zV1gKNKRPdhjO0dNWnrzssDQ1tFg==
prettier@^1.7.0:
- version "1.18.2"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
- integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
+ version "1.19.1"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
+ integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
pretty-error@^2.0.2:
version "2.1.1"
@@ -10694,9 +10718,9 @@ pseudomap@^1.0.2:
integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM=
psl@^1.1.24, psl@^1.1.28:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/psl/-/psl-1.4.0.tgz#5dd26156cdb69fa1fdb8ab1991667d3f80ced7c2"
- integrity sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/psl/-/psl-1.6.0.tgz#60557582ee23b6c43719d9890fb4170ecd91e110"
+ integrity sha512-SYKKmVel98NCOYXpkwUqZqh0ahZeeKfmisiLIcEZdsb+WbLv02g/dI5BUmZnIyOe7RzZtLax81nnb2HbvC2tzA==
public-encrypt@^4.0.0:
version "4.0.3"
@@ -10775,9 +10799,9 @@ [email protected]:
integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==
qs@^6.4.0:
- version "6.9.0"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.0.tgz#d1297e2a049c53119cb49cca366adbbacc80b409"
- integrity sha512-27RP4UotQORTpmNQDX8BHPukOnBP3p1uUJY5UnDhaJB+rMt9iMsok724XL+UHU23bEFOHRMQ2ZhI99qOWUMGFA==
+ version "6.9.1"
+ resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.1.tgz#20082c65cb78223635ab1a9eaca8875a29bf8ec9"
+ integrity sha512-Cxm7/SS/y/Z3MHWSxXb8lIFqgqBowP5JMlTUFyJN88y0SGQhVmZnqFK/PeuMX9LzUyWsqqhNxIyg0jlzq946yA==
qs@~6.5.2:
version "6.5.2"
@@ -10922,14 +10946,14 @@ react-deep-force-update@^2.1.1:
integrity sha512-lqD4eHKVuB65RyO/hGbEST53E2/GPbcIPcFYyeW/p4vNngtH4G7jnKGlU6u1OqrFo0uNfIvwuBOg98IbLHlNEA==
react-dom@^16.4.2, react-dom@^16.8.4:
- version "16.10.2"
- resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.10.2.tgz#4840bce5409176bc3a1f2bd8cb10b92db452fda6"
- integrity sha512-kWGDcH3ItJK4+6Pl9DZB16BXYAZyrYQItU4OMy0jAkv5aNqc+mAKb4TpFtAteI6TJZu+9ZlNhaeNQSVQDHJzkw==
+ version "16.12.0"
+ resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.12.0.tgz#0da4b714b8d13c2038c9396b54a92baea633fe11"
+ integrity sha512-LMxFfAGrcS3kETtQaCkTKjMiifahaMySFDn71fZUNpPHZQEzmk/GiAeIT8JSOrHB23fnuCOMruL2a8NYlw+8Gw==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
- scheduler "^0.16.2"
+ scheduler "^0.18.0"
react-hot-loader@^3.0.0-beta.6:
version "3.1.3"
@@ -10942,10 +10966,10 @@ react-hot-loader@^3.0.0-beta.6:
redbox-react "^1.3.6"
source-map "^0.6.1"
-react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.6, react-is@^16.9.0:
- version "16.10.2"
- resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.10.2.tgz#984120fd4d16800e9a738208ab1fba422d23b5ab"
- integrity sha512-INBT1QEgtcCCgvccr5/86CfD71fw9EPmDxgiJX4I2Ddr6ZsV6iFXsuby+qWJPtmNuMY0zByTsG4468P7nHuNWA==
+react-is@^16.10.2, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.6, react-is@^16.9.0:
+ version "16.12.0"
+ resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
+ integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==
react-json-pretty@^1.7.9:
version "1.7.9"
@@ -10959,17 +10983,29 @@ react-lifecycles-compat@^3.0.0, react-lifecycles-compat@^3.0.4:
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
+ version "0.14.8"
+ resolved "https://registry.yarnpkg.com/react-map-gl-draw/-/react-map-gl-draw-0.14.8.tgz#43657ebbe13f39865f4d86e0dab07587040ee4da"
+ integrity sha512-16BW510XbinBTKO5W51RxEnIu6TiRZbxxulJN2HX1l++UWuyiTvf7o0/oboCtjCWSbwNRsHh6GQ+9HDebt2yhQ==
+ dependencies:
+ "@nebula.gl/edit-modes" "0.14.0"
+ "@turf/helpers" "^6.1.4"
+ mjolnir.js "^2.1.0"
+ prop-types "^15.5.7"
+ uuid "^3.3.2"
+ viewport-mercator-project ">=5.0.0"
+
react-map-gl@^5.0.3:
- version "5.0.11"
- resolved "https://registry.yarnpkg.com/react-map-gl/-/react-map-gl-5.0.11.tgz#4a2f6e6052127a40254e4e1f52ac4a118fc0413f"
- integrity sha512-CFhGkgHjyeoNz0z0pEmswc4bWlHGpAkBAXAFKSpipQlxgk0URHB3XIjKtWp9XXpKgqsgjmgMtTlnCFrwSS9B1w==
+ version "5.1.3"
+ resolved "https://registry.yarnpkg.com/react-map-gl/-/react-map-gl-5.1.3.tgz#c91a28f6dc670d4023e79a8cce8b2129974e6677"
+ integrity sha512-Fsj4+yxj/KA7phY5XTGBBi8Ac/PmZGhy1igEJX+IK+kvEbCDJDflhxJQ1NEHDA+9q5CpRpY+mNzb7qIQBUtFZw==
dependencies:
"@babel/runtime" "^7.0.0"
mapbox-gl "^1.0.0"
mjolnir.js "^2.2.0"
prop-types "^15.7.2"
react-virtualized-auto-sizer "^1.0.2"
- viewport-mercator-project "^6.1.0"
+ viewport-mercator-project "^6.2.1"
react-markdown@^4.0.6:
version "4.2.2"
@@ -10986,9 +11022,9 @@ react-markdown@^4.0.6:
xtend "^4.0.1"
react-modal@^3.8.1:
- version "3.10.1"
- resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-3.10.1.tgz#ba37927871830c798f51404aa6bc71ff7a5e4c16"
- integrity sha512-2DKIfdOc8+WY+SYJ/xf/WBwOYMmNAYAyGkYlc4e1TCs9rk1xY4QBz04hB3UHGcrLChh7ce77rHAe6VPNmuLYsQ==
+ version "3.11.1"
+ resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-3.11.1.tgz#2a0d6877c9e98f123939ea92d2bb4ad7fa5a17f9"
+ integrity sha512-8uN744Yq0X2lbfSLxsEEc2UV3RjSRb4yDVxRQ1aGzPo86QjNOwhQSukDb8U8kR+636TRTvfMren10fgOjAy9eA==
dependencies:
exenv "^1.2.0"
prop-types "^15.5.10"
@@ -11039,7 +11075,7 @@ react-reconciler@^0.12.0:
react-redux@^7.1.3:
version "7.1.3"
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.1.3.tgz#717a3d7bbe3a1b2d535c94885ce04cdc5a33fc79"
- integrity sha1-cXo9e746Gy1TXJSIXOBM3Foz/Hk=
+ integrity sha512-uI1wca+ECG9RoVkWQFF4jDMqmaw0/qnvaSvOoL/GA4dNxf6LoV8sUAcNDvE5NWKs4hFpn0t6wswNQnY3f7HT3w==
dependencies:
"@babel/runtime" "^7.5.5"
hoist-non-react-statics "^3.3.0"
@@ -11058,14 +11094,14 @@ react-sortable-hoc@^1.8.3:
prop-types "^15.5.7"
react-test-renderer@^16.0.0-0, react-test-renderer@^16.4.2:
- version "16.10.2"
- resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.10.2.tgz#4d8492f8678c9b43b721a7d79ed0840fdae7c518"
- integrity sha512-k9Qzyev6cTIcIfrhgrFlYQAFxh5EEDO6ALNqYqmKsWVA7Q/rUMTay5nD3nthi6COmYsd4ghVYyi8U86aoeMqYQ==
+ version "16.12.0"
+ resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.12.0.tgz#11417ffda579306d4e841a794d32140f3da1b43f"
+ integrity sha512-Vj/teSqt2oayaWxkbhQ6gKis+t5JrknXfPVo+aIJ8QwYAqMPH77uptOdrlphyxl8eQI/rtkOYg86i/UWkpFu0w==
dependencies:
object-assign "^4.1.1"
prop-types "^15.6.2"
react-is "^16.8.6"
- scheduler "^0.16.2"
+ scheduler "^0.18.0"
react-tooltip@^3.10.0:
version "3.11.1"
@@ -11081,14 +11117,13 @@ react-virtualized-auto-sizer@^1.0.2:
integrity sha512-MYXhTY1BZpdJFjUovvYHVBmkq79szK/k7V3MO+36gJkWGkrXKtyr4vCPtpphaTLRAdDNoYEYFZWE8LjN+PIHNg==
react-virtualized@^9.21.1:
- version "9.21.1"
- resolved "https://registry.yarnpkg.com/react-virtualized/-/react-virtualized-9.21.1.tgz#4dbbf8f0a1420e2de3abf28fbb77120815277b3a"
- integrity sha512-E53vFjRRMCyUTEKuDLuGH1ld/9TFzjf/fFW816PE4HFXWZorESbSTYtiZz1oAjra0MminaUU1EnvUxoGuEFFPA==
+ version "9.21.2"
+ resolved "https://registry.yarnpkg.com/react-virtualized/-/react-virtualized-9.21.2.tgz#02e6df65c1e020c8dbf574ec4ce971652afca84e"
+ integrity sha512-oX7I7KYiUM7lVXQzmhtF4Xg/4UA5duSA+/ZcAvdWlTLFCoFYq1SbauJT5gZK9cZS/wdYR6TPGpX/dqzvTqQeBA==
dependencies:
babel-runtime "^6.26.0"
clsx "^1.0.1"
- dom-helpers "^2.4.0 || ^3.0.0"
- linear-layout-vector "0.0.1"
+ dom-helpers "^5.0.0"
loose-envify "^1.3.0"
prop-types "^15.6.0"
react-lifecycles-compat "^3.0.4"
@@ -11118,9 +11153,9 @@ react-vis@^1.8.0:
react-motion "^0.5.2"
react@^16.8.4:
- version "16.10.2"
- resolved "https://registry.yarnpkg.com/react/-/react-16.10.2.tgz#a5ede5cdd5c536f745173c8da47bda64797a4cf0"
- integrity sha512-MFVIq0DpIhrHFyqLU0S3+4dIcBhhOvBE8bJ/5kHPVOVaGdo0KuiQzpcjCPsf585WvhypqtrMILyoE2th6dT+Lw==
+ version "16.12.0"
+ resolved "https://registry.yarnpkg.com/react/-/react-16.12.0.tgz#0c0a9c6a142429e3614834d5a778e18aa78a0b83"
+ integrity sha512-fglqy3k5E+81pA8s+7K0/T3DBCF0ZDOher1elBFzF7O6arXJgzyu/FW+COxFvAWXJoJN9KIZbT2LXlukwphYTA==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
@@ -11156,14 +11191,14 @@ read-only-stream@^2.0.0:
readable-stream "^2.0.2"
"read-package-json@1 || 2", read-package-json@^2.0.0, read-package-json@^2.0.13:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-2.1.0.tgz#e3d42e6c35ea5ae820d9a03ab0c7291217fc51d5"
- integrity sha512-KLhu8M1ZZNkMcrq1+0UJbR8Dii8KZUqB0Sha4mOx/bknfKI/fyrQVrG/YIt2UOtG667sD8+ee4EXMM91W9dC+A==
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-2.1.1.tgz#16aa66c59e7d4dad6288f179dd9295fd59bb98f1"
+ integrity sha512-dAiqGtVc/q5doFz6096CcnXhpYk0ZN8dEKVkGLU0CsASt8SrgF6SF7OTKAYubfvFhWaqofl+Y8HK19GR8jwW+A==
dependencies:
glob "^7.1.1"
json-parse-better-errors "^1.0.1"
normalize-package-data "^2.0.0"
- slash "^1.0.0"
+ npm-normalize-package-bin "^1.0.0"
optionalDependencies:
graceful-fs "^4.1.2"
@@ -11351,9 +11386,9 @@ redux-actions@^2.2.1:
to-camel-case "^1.0.0"
redux-mock-store@^1.2.1:
- version "1.5.3"
- resolved "https://registry.yarnpkg.com/redux-mock-store/-/redux-mock-store-1.5.3.tgz#1f10528949b7ce8056c2532624f7cafa98576c6d"
- integrity sha512-ryhkkb/4D4CUGpAV2ln1GOY/uh51aczjcRz9k2L2bPx/Xja3c5pSGJJPyR25GNVRXtKIExScdAgFdiXp68GmJA==
+ version "1.5.4"
+ resolved "https://registry.yarnpkg.com/redux-mock-store/-/redux-mock-store-1.5.4.tgz#90d02495fd918ddbaa96b83aef626287c9ab5872"
+ integrity sha512-xmcA0O/tjCLXhh9Fuiq6pMrJCwFRaouA8436zcikdIpYWWCjU76CRk+i2bHx8EeiSiMGnB85/lZdU3wIJVXHTA==
dependencies:
lodash.isplainobject "^4.0.6"
@@ -11461,14 +11496,14 @@ registry-url@^3.0.3:
rc "^1.0.1"
regjsgen@^0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.0.tgz#a7634dc08f89209c2049adda3525711fb97265dd"
- integrity sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==
+ version "0.5.1"
+ resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz#48f0bf1a5ea205196929c0d9798b42d1ed98443c"
+ integrity sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==
regjsparser@^0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.0.tgz#f1e6ae8b7da2bae96c99399b868cd6c933a2ba9c"
- integrity sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.1.tgz#5b6b28c418f312ef42898dc6865ae2d4b9f0f7a2"
+ integrity sha512-7LutE94sz/NKSYegK+/4E77+8DipxF+Qn2Tmu362AcmsF2NYq/wx3+ObvU90TKEhjf7hQoFXo23ajjrXP7eUgg==
dependencies:
jsesc "~0.5.0"
@@ -11630,23 +11665,23 @@ [email protected], replace-ext@^1.0.0:
resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb"
integrity sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.2.tgz#339f6aababcafdb31c799ff158700336301d3346"
- integrity sha512-UHYyq1MO8GsefGEt7EprS8UrXsm1TxEvFUX1IMTuSLU2Rh7fTIdFtl8xD7JiEYiWU2dl+NYAjCTksTehQUxPag==
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz#e9a3c081b51380dfea677336061fea879a829ee9"
+ integrity sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ==
dependencies:
- lodash "^4.17.11"
+ lodash "^4.17.15"
request-promise-native@^1.0.5:
- version "1.0.7"
- resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.7.tgz#a49868a624bdea5069f1251d0a836e0d89aa2c59"
- integrity sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w==
+ version "1.0.8"
+ resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.8.tgz#a455b960b826e44e2bf8999af64dff2bfe58cb36"
+ integrity sha512-dapwLGqkHtwL5AEbfenuzjTYg35Jd6KPytsC2/TLkVMz8rm+tNt72MGUWT1RP/aYawMpN6HqbNGBQaRcBtjQMQ==
dependencies:
- request-promise-core "1.1.2"
+ request-promise-core "1.1.3"
stealthy-require "^1.1.1"
tough-cookie "^2.3.3"
-request@^2.86.0, request@^2.87.0:
+request@^2.87.0, request@^2.88.0:
version "2.88.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==
@@ -11764,10 +11799,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=
-resolve@^1.1.3, resolve@^1.1.4, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.8.1:
- version "1.12.0"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
- integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==
+resolve@^1.1.3, resolve@^1.1.4, resolve@^1.10.0, resolve@^1.13.1, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.8.1:
+ version "1.13.1"
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.13.1.tgz#be0aa4c06acd53083505abb35f4d66932ab35d16"
+ integrity sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==
dependencies:
path-parse "^1.0.6"
@@ -11927,10 +11962,10 @@ sax@^1.2.4:
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
-scheduler@^0.16.2:
- version "0.16.2"
- resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.16.2.tgz#f74cd9d33eff6fc554edfb79864868e4819132c1"
- integrity sha512-BqYVWqwz6s1wZMhjFvLfVR5WXP7ZY32M/wYPo04CcuPM7XZEbV2TBNW7Z0UkguPTl0dWMA59VbNXxK6q+pHItg==
+scheduler@^0.18.0:
+ version "0.18.0"
+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.18.0.tgz#5901ad6659bc1d8f3fdaf36eb7a67b0d6746b1c4"
+ integrity sha512-agTSHR1Nbfi6ulI0kYNK0203joW2Y5W4po4l+v03tOoiJKpTBbxpNhWDvqc/4IcOw+KLmSiQLTasZ4cab2/UWQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
@@ -12002,10 +12037,10 @@ [email protected]:
range-parser "~1.2.1"
statuses "~1.5.0"
-serialize-javascript@^1.7.0:
- version "1.9.1"
- resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.9.1.tgz#cfc200aef77b600c47da9bb8149c943e798c2fdb"
- integrity sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==
+serialize-javascript@^2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61"
+ integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==
serve-index@^1.9.1:
version "1.9.1"
@@ -12084,6 +12119,13 @@ sharkdown@^0.1.0:
minimist "0.0.5"
split "~0.2.10"
+shasum-object@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/shasum-object/-/shasum-object-1.0.0.tgz#0b7b74ff5b66ecf9035475522fa05090ac47e29e"
+ integrity sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==
+ dependencies:
+ fast-safe-stringify "^2.0.7"
+
shasum@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/shasum/-/shasum-1.0.2.tgz#e7012310d8f417f4deb5712150e5678b87ae565f"
@@ -12142,11 +12184,6 @@ sinon@^2.4.1:
text-encoding "0.6.4"
type-detect "^4.0.0"
-slash@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"
- integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=
-
slash@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44"
@@ -12282,10 +12319,10 @@ source-map-resolve@^0.5.0:
source-map-url "^0.4.0"
urix "^0.1.0"
-source-map-support@^0.5.9, source-map-support@~0.5.12:
- version "0.5.13"
- resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932"
- integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==
+source-map-support@^0.5.16, source-map-support@~0.5.12:
+ version "0.5.16"
+ resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042"
+ integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"
@@ -12519,9 +12556,9 @@ stream-http@^3.0.0:
xtend "^4.0.0"
stream-shift@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952"
- integrity sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d"
+ integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==
stream-splicer@^2.0.0:
version "2.0.1"
@@ -12695,9 +12732,9 @@ strong-log-transformer@^2.0.0:
through "^2.3.4"
styled-components@^4.1.3:
- version "4.4.0"
- resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-4.4.0.tgz#4e381e2dab831d0e6ea431c2840a96323e84e21b"
- integrity sha512-xQ6vTI/0zNjZ1BBDRxyjvBddrxhQ3DxjeCdaLM1lSn5FDnkTOQgRkmWvcUiTajqc5nJqKVl+7sUioMqktD0+Zw==
+ version "4.4.1"
+ resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-4.4.1.tgz#e0631e889f01db67df4de576fedaca463f05c2f2"
+ integrity sha512-RNqj14kYzw++6Sr38n7197xG33ipEOktGElty4I70IKzQF1jzaD1U4xQ+Ny/i03UUhHlC5NWEO+d8olRCDji6g==
dependencies:
"@babel/helper-module-imports" "^7.0.0"
"@babel/traverse" "^7.0.0"
@@ -12737,6 +12774,13 @@ supercluster@^6.0.1:
dependencies:
kdbush "^3.0.0"
+supercluster@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/supercluster/-/supercluster-7.0.0.tgz#75d474fafb0a055db552ed7bd7bbda583f6ab321"
+ integrity sha512-8VuHI8ynylYQj7Qf6PBMWy1PdgsnBiIxujOgc9Z83QvJ8ualIYWNx2iMKyKeC4DZI5ntD9tz/CIwwZvIelixsA==
+ dependencies:
+ kdbush "^3.0.0"
+
[email protected], supports-color@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3"
@@ -12928,24 +12972,24 @@ temp-write@^3.4.0:
uuid "^3.0.1"
terser-webpack-plugin@^1.4.1:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz#61b18e40eaee5be97e771cdbb10ed1280888c2b4"
- integrity sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg==
+ version "1.4.3"
+ resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c"
+ integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==
dependencies:
cacache "^12.0.2"
find-cache-dir "^2.1.0"
is-wsl "^1.1.0"
schema-utils "^1.0.0"
- serialize-javascript "^1.7.0"
+ serialize-javascript "^2.1.2"
source-map "^0.6.1"
terser "^4.1.2"
webpack-sources "^1.4.0"
worker-farm "^1.7.0"
terser@^4.1.2:
- version "4.3.8"
- resolved "https://registry.yarnpkg.com/terser/-/terser-4.3.8.tgz#707f05f3f4c1c70c840e626addfdb1c158a17136"
- integrity sha512-otmIRlRVmLChAWsnSFNO0Bfk6YySuBp6G9qrHiJwlLDd4mxe2ta4sjI7TzIR+W1nBMjilzrMcPOz9pSusgx3hQ==
+ version "4.4.2"
+ resolved "https://registry.yarnpkg.com/terser/-/terser-4.4.2.tgz#448fffad0245f4c8a277ce89788b458bfd7706e8"
+ integrity sha512-Uufrsvhj9O1ikwgITGsZ5EZS6qPokUOkCegS7fYOdGTv+OA90vndUbU6PEjr5ePqHfNUbGyMO7xyIZv2MhsALQ==
dependencies:
commander "^2.20.0"
source-map "~0.6.1"
@@ -13038,9 +13082,9 @@ through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6, through@~2.3.4,
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
thunky@^1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.0.3.tgz#f5df732453407b09191dae73e2a8cc73f381a826"
- integrity sha512-YwT8pjmNcAXBZqrubu22P4FYsh2D4dxRmnWBOL8Jk8bUcRUtc5326kx32tuTmFDAZtLOGEVNl8POAR8j896Iow==
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
+ integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==
timed-out@^3.0.0:
version "3.1.3"
@@ -13269,10 +13313,10 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/type-analyzer/-/type-analyzer-0.2.3.tgz#a265b29b33290e465e2c611c3daaaf979c780e71"
- integrity sha512-CwHct29PabC8ze2QIczh82/9r277ljuxctCmriwxx63kIXDObe2BhF2iGU/iOnyjU/c+aiSEdWAVqR27rnp4mw==
+ version "0.2.4"
+ resolved "https://registry.yarnpkg.com/type-analyzer/-/type-analyzer-0.2.4.tgz#bb7150437d96e2d6bcd78bcfdd05a5c73d7309d0"
+ integrity sha512-5ldI2maOK8b4/TUpmyj41LMXyqtUHUnp9I33EALQPbMOLpkepYC97q6jL2ED/w77bkDF4abOPHv9VnZt9BcEcA==
type-check@~0.3.2:
version "0.3.2"
@@ -13328,11 +13372,11 @@ [email protected]:
source-map "~0.6.1"
uglify-js@^3.1.4:
- version "3.6.0"
- resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5"
- integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==
+ version "3.7.2"
+ resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.7.2.tgz#cb1a601e67536e9ed094a92dd1e333459643d3f9"
+ integrity sha512-uhRwZcANNWVLrxLfNFEdltoPNhECUR3lc+UdJoG9CBpMcSnKyWA94tc3eAujB1GcMY5Uwq8ZMp4qWpxWYDQmaA==
dependencies:
- commander "~2.20.0"
+ commander "~2.20.3"
source-map "~0.6.1"
@@ -13449,9 +13493,9 @@ unist-builder@^1.0.1, unist-builder@^1.0.2:
object-assign "^4.1.0"
unist-util-generated@^1.1.0:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/unist-util-generated/-/unist-util-generated-1.1.4.tgz#2261c033d9fc23fae41872cdb7663746e972c1a7"
- integrity sha512-SA7Sys3h3X4AlVnxHdvN/qYdr4R38HzihoEVY2Q2BZu8NHWDnw5OGcC/tXWjQfd4iG+M6qRFNIRGqJmp2ez4Ww==
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/unist-util-generated/-/unist-util-generated-1.1.5.tgz#1e903e68467931ebfaea386dae9ea253628acd42"
+ integrity sha512-1TC+NxQa4N9pNdayCYA1EGUOCAO0Le3fVp7Jzns6lnua/mYgwHo0tz5WUAfrdpNch1RZLHc61VZ1SDgrtNXLSw==
unist-util-is@^2.0.0, unist-util-is@^2.1.2:
version "2.1.3"
@@ -13464,14 +13508,14 @@ unist-util-is@^3.0.0:
integrity sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==
unist-util-position@^3.0.0:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-3.0.3.tgz#fff942b879538b242096c148153826664b1ca373"
- integrity sha512-28EpCBYFvnMeq9y/4w6pbnFmCUfzlsc41NJui5c51hOFjBA1fejcwc+5W4z2+0ECVbScG3dURS3JTVqwenzqZw==
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-3.0.4.tgz#5872be7aec38629b971fdb758051f78817b0040a"
+ integrity sha512-tWvIbV8goayTjobxDIr4zVTyG+Q7ragMSMeKC3xnPl9xzIc0+she8mxXLM3JVNDDsfARPbCd3XdzkyLdo7fF3g==
unist-util-remove-position@^1.0.0:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.3.tgz#d91aa8b89b30cb38bad2924da11072faa64fd972"
- integrity sha512-CtszTlOjP2sBGYc2zcKA/CvNdTdEs3ozbiJ63IPBxh8iZg42SCCb8m04f8z2+V1aSk5a7BxbZKEdoDjadmBkWA==
+ version "1.1.4"
+ resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.4.tgz#ec037348b6102c897703eee6d0294ca4755a2020"
+ integrity sha512-tLqd653ArxJIPnKII6LMZwH+mb5q+n/GtXQZo6S6csPRs5zB0u79Yw8ouR3wTw8wxvdJFhpP6Y7jorWdCgLO0A==
dependencies:
unist-util-visit "^1.1.0"
@@ -13481,9 +13525,9 @@ unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1:
integrity sha512-pNCVrk64LZv1kElr0N1wPiHEUoXNVFERp+mlTg/s9R5Lwg87f9bM/3sQB99w+N9D/qnM9ar3+AKDBwo/gm/iQQ==
unist-util-stringify-position@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-2.0.1.tgz#de2a2bc8d3febfa606652673a91455b6a36fb9f3"
- integrity sha512-Zqlf6+FRI39Bah8Q6ZnNGrEHUhwJOkHde2MHVk96lLyftfJJckaPslKgzhVcviXj8KcE9UJM9F+a4JEiBUTYgA==
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-2.0.2.tgz#5a3866e7138d55974b640ec69a94bc19e0f3fa12"
+ integrity sha512-nK5n8OGhZ7ZgUwoUbL8uiVRwAbZyzBsB/Ddrlbu6jwwubFza4oe15KlyEaLNMXQW1svOQq4xesUeqA85YrIUQA==
dependencies:
"@types/unist" "^2.0.2"
@@ -13716,9 +13760,9 @@ [email protected]:
extsprintf "^1.2.0"
vfile-location@^2.0.0:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-2.0.5.tgz#c83eb02f8040228a8d2b3f10e485be3e3433e0a2"
- integrity sha512-Pa1ey0OzYBkLPxPZI3d9E+S4BmvfVwNAAXrrqGbwTVXWaX2p9kM1zZ+n35UtVM06shmWKH4RPRN8KI80qE3wNQ==
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-2.0.6.tgz#8a274f39411b8719ea5728802e10d9e0dff1519e"
+ integrity sha512-sSFdyCP3G6Ka0CEmN83A2YCMKIieHx0EDaj5IDP4g1pa5ZJ4FJDvpO0WODLxo4LUX4oe52gmSCK7Jw4SBghqxA==
vfile-message@^1.0.0:
version "1.1.1"
@@ -13769,7 +13813,7 @@ vfile@^3.0.0:
unist-util-stringify-position "^1.0.0"
vfile-message "^1.0.0"
-viewport-mercator-project@^6.0.0, viewport-mercator-project@^6.1.0:
+viewport-mercator-project@>=5.0.0, viewport-mercator-project@^6.0.0, viewport-mercator-project@^6.1.0, viewport-mercator-project@^6.2.1:
version "6.2.2"
resolved "https://registry.yarnpkg.com/viewport-mercator-project/-/viewport-mercator-project-6.2.2.tgz#f524819ad53fcc009b46136a59f73461bfcf1604"
integrity sha512-vs9pjDZxDwoiEqr+GgdpRAUogEQRoZ9D9COVLSr4+h/WdcUWhYN36SQr3n5jaTKrl/wlfdRj+TYU8wTk05grbg==
@@ -13826,9 +13870,9 @@ vinyl@^2.0.0, vinyl@^2.1.0:
replace-ext "^1.0.0"
vm-browserify@^1.0.0, vm-browserify@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019"
- integrity sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
+ integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
vt-pbf@^3.1.1:
version "3.1.1"
@@ -13840,9 +13884,9 @@ vt-pbf@^3.1.1:
pbf "^3.0.5"
vue-template-compiler@^2.5.16:
- version "2.6.10"
- resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.10.tgz#323b4f3495f04faa3503337a82f5d6507799c9cc"
- integrity sha512-jVZkw4/I/HT5ZMvRnhv78okGusqe0+qH2A0Em0Cp8aq78+NK9TII263CDVz2QXZsIT+yyV/gZc/j/vlwa+Epyg==
+ version "2.6.11"
+ resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.11.tgz#c04704ef8f498b153130018993e56309d4698080"
+ integrity sha512-KIq15bvQDrcCjpGjrAhx4mUlyyHfdmTaoNfeoATHLAiWB+MU3cx4lOzMwrnUh9cCxy0Lt1T11hAFY6TQgroUAA==
dependencies:
de-indent "^1.0.2"
he "^1.1.0"
@@ -13902,7 +13946,7 @@ webidl-conversions@^4.0.2:
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==
-webpack-bundle-analyzer@^3.0.3:
+webpack-bundle-analyzer@^3.0.3, webpack-bundle-analyzer@^3.3.2:
version "3.6.0"
resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.6.0.tgz#39b3a8f829ca044682bc6f9e011c95deb554aefd"
integrity sha512-orUfvVYEfBMDXgEKAKVvab5iQ2wXneIEorGNsyuOyVYpjYrI7CUOhhXNDd3huMwQ3vNNWWlGP+hzflMFYNzi2g==
@@ -13921,29 +13965,10 @@ webpack-bundle-analyzer@^3.0.3:
opener "^1.5.1"
ws "^6.0.0"
-webpack-bundle-analyzer@^3.3.2:
- version "3.5.2"
- resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.5.2.tgz#ac02834f4b31de8e27d71e6c7a612301ebddb79f"
- integrity sha512-g9spCNe25QYUVqHRDkwG414GTok2m7pTTP0wr6l0J50Z3YLS04+BGodTqqoVBL7QfU/U/9p/oiI5XFOyfZ7S/A==
- dependencies:
- acorn "^6.0.7"
- acorn-walk "^6.1.1"
- bfj "^6.1.1"
- chalk "^2.4.1"
- commander "^2.18.0"
- ejs "^2.6.1"
- express "^4.16.3"
- filesize "^3.6.1"
- gzip-size "^5.0.0"
- lodash "^4.17.15"
- mkdirp "^0.5.1"
- opener "^1.5.1"
- ws "^6.0.0"
-
webpack-cli@^3.2.1:
- version "3.3.9"
- resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.9.tgz#79c27e71f94b7fe324d594ab64a8e396b9daa91a"
- integrity sha512-xwnSxWl8nZtBl/AFJCOn9pG7s5CYUYdZxmmukv+fAHLcBIHM36dImfpQg3WfShZXeArkWlf6QRw24Klcsv8a5A==
+ version "3.3.10"
+ resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.10.tgz#17b279267e9b4fb549023fae170da8e6e766da13"
+ integrity sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg==
dependencies:
chalk "2.4.2"
cross-spawn "6.0.5"
@@ -13969,9 +13994,9 @@ webpack-dev-middleware@^3.5.1, webpack-dev-middleware@^3.7.2:
webpack-log "^2.0.0"
webpack-dev-server@^3.1.14:
- version "3.8.2"
- resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.8.2.tgz#3292427bf6510da9a3ac2d500b924a4197667ff9"
- integrity sha512-0xxogS7n5jHDQWy0WST0q6Ykp7UGj4YvWh+HVN71JoE7BwPxMZrwgraBvmdEMbDVMBzF0u+mEzn8TQzBm5NYJQ==
+ version "3.9.0"
+ resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.9.0.tgz#27c3b5d0f6b6677c4304465ac817623c8b27b89c"
+ integrity sha512-E6uQ4kRrTX9URN9s/lIbqTAztwEPdvzVrcmHE8EQ9YnuT9J8Es5Wrd8n9BKg1a0oZ5EgEke/EQFgUsp18dSTBw==
dependencies:
ansi-html "0.0.7"
bonjour "^3.5.0"
@@ -13991,7 +14016,7 @@ webpack-dev-server@^3.1.14:
loglevel "^1.6.4"
opn "^5.5.0"
p-retry "^3.0.1"
- portfinder "^1.0.24"
+ portfinder "^1.0.25"
schema-utils "^1.0.0"
selfsigned "^1.10.7"
semver "^6.3.0"
@@ -14038,7 +14063,7 @@ webpack-stats-plugin@^0.2.1:
resolved "https://registry.yarnpkg.com/webpack-stats-plugin/-/webpack-stats-plugin-0.2.1.tgz#1f5bac13fc25d62cbb5fd0ff646757dc802b8595"
integrity sha512-OYMZLpZrK/qLA79NE4kC4DCt85h/5ipvWJcsefKe9MMw0qU4/ck/IJg+4OmWA+5EfrZZpHXDq92IptfYDWVfkw==
-webpack@^4.28.4:
+webpack@^4.28.4, webpack@^4.29.0:
version "4.41.2"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.2.tgz#c34ec76daa3a8468c9b61a50336d8e3303dce74e"
integrity sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A==
@@ -14067,35 +14092,6 @@ webpack@^4.28.4:
watchpack "^1.6.0"
webpack-sources "^1.4.1"
-webpack@^4.29.0:
- version "4.41.0"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.0.tgz#db6a254bde671769f7c14e90a1a55e73602fc70b"
- integrity sha512-yNV98U4r7wX1VJAj5kyMsu36T8RPPQntcb5fJLOsMz/pt/WrKC0Vp1bAlqPLkA1LegSwQwf6P+kAbyhRKVQ72g==
- dependencies:
- "@webassemblyjs/ast" "1.8.5"
- "@webassemblyjs/helper-module-context" "1.8.5"
- "@webassemblyjs/wasm-edit" "1.8.5"
- "@webassemblyjs/wasm-parser" "1.8.5"
- acorn "^6.2.1"
- ajv "^6.10.2"
- ajv-keywords "^3.4.1"
- chrome-trace-event "^1.0.2"
- enhanced-resolve "^4.1.0"
- eslint-scope "^4.0.3"
- json-parse-better-errors "^1.0.2"
- loader-runner "^2.4.0"
- loader-utils "^1.2.3"
- memory-fs "^0.4.1"
- micromatch "^3.1.10"
- mkdirp "^0.5.1"
- neo-async "^2.6.1"
- node-libs-browser "^2.2.1"
- schema-utils "^1.0.0"
- tapable "^1.1.3"
- terser-webpack-plugin "^1.4.1"
- watchpack "^1.6.0"
- webpack-sources "^1.4.1"
-
websocket-driver@>=0.5.1:
version "0.7.3"
resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.3.tgz#a2d4e0d4f4f116f1e6297eba58b05d430100e9f9"
@@ -14150,9 +14146,9 @@ whatwg-url@^6.4.1:
webidl-conversions "^4.0.2"
whatwg-url@^7.0.0:
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd"
- integrity sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==
+ version "7.1.0"
+ resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06"
+ integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==
dependencies:
lodash.sortby "^4.7.0"
tr46 "^1.0.1"
@@ -14196,16 +14192,16 @@ windows-release@^3.1.0:
dependencies:
execa "^1.0.0"
+word-wrap@~1.2.3:
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
+ integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
+
wordwrap@~0.0.2:
version "0.0.3"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc=
-wordwrap@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
- integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=
-
worker-farm@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8"