@kepler.gl/reducers 3.2.5 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -213,6 +213,42 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
213
213
  hexagon: typeof import("@kepler.gl/layers/dist/hexagon-layer/hexagon-layer").default;
214
214
  geojson: typeof import("@kepler.gl/layers/dist/geojson-layer/geojson-layer").default;
215
215
  cluster: typeof import("@kepler.gl/layers/dist/cluster-layer/cluster-layer").default;
216
+ /**
217
+ * Updaters for `visState` reducer. Can be used in your root reducer to directly modify kepler.gl's state.
218
+ * Read more about [Using updaters](../advanced-usage/using-updaters.md)
219
+ *
220
+ * @public
221
+ * @example
222
+ *
223
+ * import keplerGlReducer, {visStateUpdaters} from '@kepler.gl/reducers';
224
+ * // Root Reducer
225
+ * const reducers = combineReducers({
226
+ * keplerGl: keplerGlReducer,
227
+ * app: appReducer
228
+ * });
229
+ *
230
+ * const composedReducer = (state, action) => {
231
+ * switch (action.type) {
232
+ * case 'CLICK_BUTTON':
233
+ * return {
234
+ * ...state,
235
+ * keplerGl: {
236
+ * ...state.keplerGl,
237
+ * foo: {
238
+ * ...state.keplerGl.foo,
239
+ * visState: visStateUpdaters.enlargeFilterUpdater(
240
+ * state.keplerGl.foo.visState,
241
+ * {idx: 0}
242
+ * )
243
+ * }
244
+ * }
245
+ * };
246
+ * }
247
+ * return reducers(state, action);
248
+ * };
249
+ *
250
+ * export default composedReducer;
251
+ */
216
252
  icon: typeof import("@kepler.gl/layers/dist/icon-layer/icon-layer").default;
217
253
  heatmap: typeof import("@kepler.gl/layers/dist/heatmap-layer/heatmap-layer").default;
218
254
  hexagonId: typeof import("@kepler.gl/layers/dist/h3-hexagon-layer/h3-hexagon-layer").default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/reducers",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.2.5",
4
+ "version": "3.2.6",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -30,21 +30,21 @@
30
30
  "umd"
31
31
  ],
32
32
  "dependencies": {
33
- "@kepler.gl/actions": "3.2.5",
34
- "@kepler.gl/cloud-providers": "3.2.5",
35
- "@kepler.gl/common-utils": "3.2.5",
36
- "@kepler.gl/constants": "3.2.5",
37
- "@kepler.gl/deckgl-arrow-layers": "3.2.5",
38
- "@kepler.gl/deckgl-layers": "3.2.5",
39
- "@kepler.gl/effects": "3.2.5",
40
- "@kepler.gl/layers": "3.2.5",
41
- "@kepler.gl/localization": "3.2.5",
42
- "@kepler.gl/processors": "3.2.5",
43
- "@kepler.gl/schemas": "3.2.5",
44
- "@kepler.gl/table": "3.2.5",
45
- "@kepler.gl/tasks": "3.2.5",
46
- "@kepler.gl/types": "3.2.5",
47
- "@kepler.gl/utils": "3.2.5",
33
+ "@kepler.gl/actions": "3.2.6",
34
+ "@kepler.gl/cloud-providers": "3.2.6",
35
+ "@kepler.gl/common-utils": "3.2.6",
36
+ "@kepler.gl/constants": "3.2.6",
37
+ "@kepler.gl/deckgl-arrow-layers": "3.2.6",
38
+ "@kepler.gl/deckgl-layers": "3.2.6",
39
+ "@kepler.gl/effects": "3.2.6",
40
+ "@kepler.gl/layers": "3.2.6",
41
+ "@kepler.gl/localization": "3.2.6",
42
+ "@kepler.gl/processors": "3.2.6",
43
+ "@kepler.gl/schemas": "3.2.6",
44
+ "@kepler.gl/table": "3.2.6",
45
+ "@kepler.gl/tasks": "3.2.6",
46
+ "@kepler.gl/types": "3.2.6",
47
+ "@kepler.gl/utils": "3.2.6",
48
48
  "@loaders.gl/loader-utils": "^4.3.2",
49
49
  "@mapbox/geo-viewport": "^0.4.1",
50
50
  "@math.gl/web-mercator": "^3.6.2",