@kepler.gl/reducers 3.3.0-alpha.0 → 3.3.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/combined-updaters.js +491 -0
- package/dist/cjs/composer-helpers.js +101 -0
- package/dist/cjs/composers.js +22 -0
- package/dist/cjs/core.js +105 -0
- package/dist/cjs/data-utils.js +53 -0
- package/dist/cjs/export-utils.js +91 -0
- package/dist/{index.js → cjs/index.js} +2 -3
- package/dist/cjs/interaction-utils.js +115 -0
- package/dist/cjs/layer-utils.js +635 -0
- package/dist/cjs/map-state-updaters.js +658 -0
- package/dist/cjs/map-state.js +35 -0
- package/dist/cjs/map-style-updaters.js +660 -0
- package/dist/cjs/map-style.js +33 -0
- package/dist/cjs/merger-handler.js +105 -0
- package/dist/cjs/middleware.js +27 -0
- package/dist/cjs/provider-state-updaters.js +465 -0
- package/dist/cjs/provider-state.js +34 -0
- package/dist/cjs/root.js +207 -0
- package/dist/cjs/ui-state-updaters.js +922 -0
- package/dist/cjs/ui-state.js +36 -0
- package/dist/cjs/vis-state-merger.js +1193 -0
- package/dist/cjs/vis-state-selectors.js +30 -0
- package/dist/cjs/vis-state-updaters.js +5100 -0
- package/dist/cjs/vis-state.js +35 -0
- package/dist/combined-updaters.d.ts +19 -2
- package/dist/composers.d.ts +2 -0
- package/dist/esm/combined-updaters.js +484 -0
- package/dist/esm/composer-helpers.js +85 -0
- package/dist/esm/composers.js +14 -0
- package/dist/esm/core.js +101 -0
- package/dist/esm/data-utils.js +47 -0
- package/dist/esm/export-utils.js +86 -0
- package/dist/esm/index.js +62 -0
- package/dist/esm/interaction-utils.js +106 -0
- package/dist/esm/layer-utils.js +602 -0
- package/dist/esm/map-state-updaters.js +650 -0
- package/dist/esm/map-state.js +29 -0
- package/dist/esm/map-style-updaters.js +652 -0
- package/dist/esm/map-style.js +27 -0
- package/dist/esm/merger-handler.js +96 -0
- package/dist/esm/middleware.js +19 -0
- package/dist/esm/provider-state-updaters.js +458 -0
- package/dist/esm/provider-state.js +28 -0
- package/dist/esm/root.js +201 -0
- package/dist/esm/ui-state-updaters.js +917 -0
- package/dist/esm/ui-state.js +30 -0
- package/dist/esm/vis-state-merger.js +1161 -0
- package/dist/esm/vis-state-selectors.js +24 -0
- package/dist/esm/vis-state-updaters.js +5006 -0
- package/dist/esm/vis-state.js +29 -0
- package/dist/interaction-utils.d.ts +1 -1
- package/dist/layer-utils.d.ts +30 -5
- package/dist/map-state-updaters.d.ts +27 -20
- package/dist/map-state.d.ts +2 -74
- package/dist/map-style-updaters.d.ts +1 -3
- package/dist/ui-state-updaters.d.ts +53 -3
- package/dist/vis-state-merger.d.ts +11 -0
- package/dist/vis-state-selectors.d.ts +42 -6
- package/dist/vis-state-updaters.d.ts +163 -2
- package/dist/vis-state.d.ts +24 -4
- package/package.json +43 -35
- package/dist/combined-updaters.js +0 -366
- package/dist/composer-helpers.js +0 -101
- package/dist/composers.js +0 -23
- package/dist/core.js +0 -105
- package/dist/data-utils.js +0 -53
- package/dist/export-utils.js +0 -91
- package/dist/interaction-utils.js +0 -105
- package/dist/layer-utils.js +0 -335
- package/dist/map-state-updaters.js +0 -436
- package/dist/map-state.js +0 -35
- package/dist/map-style-updaters.js +0 -661
- package/dist/map-style.js +0 -34
- package/dist/merger-handler.js +0 -105
- package/dist/middleware.js +0 -27
- package/dist/provider-state-updaters.js +0 -466
- package/dist/provider-state.js +0 -35
- package/dist/root.js +0 -207
- package/dist/ui-state-updaters.js +0 -803
- package/dist/ui-state.js +0 -37
- package/dist/vis-state-merger.js +0 -990
- package/dist/vis-state-selectors.js +0 -30
- package/dist/vis-state-updaters.js +0 -3611
- package/dist/vis-state.js +0 -36
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionTypes, CreateNewDatasetSuccessPayload, MapStateActions, ReceiveMapConfigPayload, VisStateActions, SetLoadingIndicatorPayload } from '@kepler.gl/actions';
|
|
2
2
|
import { Layer } from '@kepler.gl/layers';
|
|
3
3
|
import KeplerGLSchema, { Merger, PostMergerPayload, VisState } from '@kepler.gl/schemas';
|
|
4
|
-
import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor } from '@kepler.gl/types';
|
|
4
|
+
import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor, Annotation } from '@kepler.gl/types';
|
|
5
5
|
import { Loader } from '@loaders.gl/loader-utils';
|
|
6
6
|
import { Datasets } from '@kepler.gl/table';
|
|
7
7
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
@@ -191,9 +191,14 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
|
|
|
191
191
|
layers: Layer[];
|
|
192
192
|
layerData: any[];
|
|
193
193
|
layerToBeMerged: any[];
|
|
194
|
-
layerOrder:
|
|
194
|
+
layerOrder: import("@kepler.gl/types").LayerOrder;
|
|
195
|
+
layerOrderToBeMerged: any[] | null;
|
|
195
196
|
effects: import("@kepler.gl/types").Effect[];
|
|
196
197
|
effectOrder: string[];
|
|
198
|
+
annotations: Annotation[];
|
|
199
|
+
annotationsToBeMerged: any[];
|
|
200
|
+
selectedAnnotationId: string | null;
|
|
201
|
+
isEditingAnnotationText: boolean;
|
|
197
202
|
filterToBeMerged: any[];
|
|
198
203
|
datasets: Datasets;
|
|
199
204
|
editingDataset: string | undefined;
|
|
@@ -254,6 +259,42 @@ export declare function removeLayerUpdater<T extends VisState>(state: T, { id }:
|
|
|
254
259
|
* @public
|
|
255
260
|
*/
|
|
256
261
|
export declare const reorderLayerUpdater: (state: VisState, { order }: VisStateActions.ReorderLayerUpdaterAction) => VisState;
|
|
262
|
+
/**
|
|
263
|
+
* Add a new layer group
|
|
264
|
+
* @memberof visStateUpdaters
|
|
265
|
+
* @public
|
|
266
|
+
*/
|
|
267
|
+
export declare const addLayerGroupUpdater: (state: VisState, action: VisStateActions.AddLayerGroupUpdaterAction) => VisState;
|
|
268
|
+
/**
|
|
269
|
+
* Remove a layer group and all layers within it
|
|
270
|
+
* @memberof visStateUpdaters
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
export declare const removeLayerGroupUpdater: (state: VisState, action: VisStateActions.RemoveLayerGroupUpdaterAction) => VisState;
|
|
274
|
+
/**
|
|
275
|
+
* Update a layer group (label, visibility, layer membership)
|
|
276
|
+
* @memberof visStateUpdaters
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export declare const updateLayerGroupUpdater: (state: VisState, action: VisStateActions.UpdateLayerGroupUpdaterAction) => VisState;
|
|
280
|
+
/**
|
|
281
|
+
* Add a layer to a layer group
|
|
282
|
+
* @memberof visStateUpdaters
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
export declare const addLayerToLayerGroupUpdater: (state: VisState, action: VisStateActions.AddLayerToLayerGroupUpdaterAction) => VisState;
|
|
286
|
+
/**
|
|
287
|
+
* Remove a layer from a layer group
|
|
288
|
+
* @memberof visStateUpdaters
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
export declare const removeLayerFromLayerGroupUpdater: (state: VisState, action: VisStateActions.RemoveLayerFromLayerGroupUpdaterAction) => VisState;
|
|
292
|
+
/**
|
|
293
|
+
* Swap layer order entries between root and groups
|
|
294
|
+
* @memberof visStateUpdaters
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
297
|
+
export declare const swapLayerOrderEntriesUpdater: (state: VisState, action: VisStateActions.SwapLayerOrderEntriesUpdaterAction) => VisState;
|
|
257
298
|
/**
|
|
258
299
|
* duplicate layer
|
|
259
300
|
* @memberof visStateUpdaters
|
|
@@ -284,6 +325,36 @@ export declare const reorderEffectUpdater: (state: VisState, { order }: VisState
|
|
|
284
325
|
* @public
|
|
285
326
|
*/
|
|
286
327
|
export declare const updateEffectUpdater: (state: VisState, { id, props }: VisStateActions.UpdateEffectUpdaterAction) => VisState;
|
|
328
|
+
/**
|
|
329
|
+
* Add a new annotation
|
|
330
|
+
* @memberof visStateUpdaters
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
export declare const addAnnotationUpdater: (state: VisState, action: VisStateActions.AddAnnotationUpdaterAction) => VisState;
|
|
334
|
+
/**
|
|
335
|
+
* Remove an annotation
|
|
336
|
+
* @memberof visStateUpdaters
|
|
337
|
+
* @public
|
|
338
|
+
*/
|
|
339
|
+
export declare const removeAnnotationUpdater: (state: VisState, { id }: VisStateActions.RemoveAnnotationUpdaterAction) => VisState;
|
|
340
|
+
/**
|
|
341
|
+
* Update an annotation
|
|
342
|
+
* @memberof visStateUpdaters
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
345
|
+
export declare const updateAnnotationUpdater: (state: VisState, { id, config }: VisStateActions.UpdateAnnotationUpdaterAction) => VisState;
|
|
346
|
+
/**
|
|
347
|
+
* Duplicate an annotation
|
|
348
|
+
* @memberof visStateUpdaters
|
|
349
|
+
* @public
|
|
350
|
+
*/
|
|
351
|
+
export declare const duplicateAnnotationUpdater: (state: VisState, { id }: VisStateActions.DuplicateAnnotationUpdaterAction) => VisState;
|
|
352
|
+
/**
|
|
353
|
+
* Set selected annotation
|
|
354
|
+
* @memberof visStateUpdaters
|
|
355
|
+
* @public
|
|
356
|
+
*/
|
|
357
|
+
export declare const setSelectedAnnotationUpdater: (state: VisState, { id, isEditingText }: VisStateActions.SetSelectedAnnotationUpdaterAction) => VisState;
|
|
287
358
|
/**
|
|
288
359
|
* Remove a dataset and all layers, filters, tooltip configs that based on it
|
|
289
360
|
* @memberof visStateUpdaters
|
|
@@ -371,6 +442,45 @@ export declare const toggleSplitMapUpdater: (state: VisState, action: MapStateAc
|
|
|
371
442
|
* @public
|
|
372
443
|
*/
|
|
373
444
|
export declare const toggleLayerForMapUpdater: (state: VisState, { mapIndex, layerId }: VisStateActions.ToggleLayerForMapUpdaterAction) => VisState;
|
|
445
|
+
/**
|
|
446
|
+
* Re-fetch an externally hosted dataset and replace its table contents in place.
|
|
447
|
+
* Layers and filters are kept when field names match.
|
|
448
|
+
* @memberof visStateUpdaters
|
|
449
|
+
* @public
|
|
450
|
+
*/
|
|
451
|
+
export declare function refreshDatasetUpdater(state: VisState, { dataId }: VisStateActions.RefreshDatasetUpdaterAction): VisState;
|
|
452
|
+
/**
|
|
453
|
+
* Record download progress for an in-flight remote dataset refresh.
|
|
454
|
+
* @memberof visStateUpdaters
|
|
455
|
+
* @public
|
|
456
|
+
*/
|
|
457
|
+
export declare function refreshDatasetProgressUpdater(state: VisState, { dataId, percent }: VisStateActions.RefreshDatasetProgressUpdaterAction): VisState;
|
|
458
|
+
/**
|
|
459
|
+
* Apply a finished remote refresh: keep layers, re-run filters and layer data.
|
|
460
|
+
* @memberof visStateUpdaters
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
export declare function refreshDatasetSuccessUpdater(state: VisState, { dataId, result }: VisStateActions.RefreshDatasetSuccessUpdaterAction): VisState;
|
|
464
|
+
/**
|
|
465
|
+
* Append or upsert rows on an existing in-memory row dataset. Keeps layers and re-runs filters.
|
|
466
|
+
* Arrow/DuckDB tables warn and are left unchanged (INSERT / concat not implemented).
|
|
467
|
+
* @memberof visStateUpdaters
|
|
468
|
+
* @public
|
|
469
|
+
*/
|
|
470
|
+
export declare function addToDatasetUpdater(state: VisState, { dataId, rows, options }: VisStateActions.AddToDatasetUpdaterAction): VisState;
|
|
471
|
+
/**
|
|
472
|
+
* Delete rows by index or by field values from an existing in-memory row dataset.
|
|
473
|
+
* Keeps layers. Arrow/DuckDB tables warn and are left unchanged.
|
|
474
|
+
* @memberof visStateUpdaters
|
|
475
|
+
* @public
|
|
476
|
+
*/
|
|
477
|
+
export declare function removeFromDatasetUpdater(state: VisState, { dataId, rowIndexes, byField }: VisStateActions.RemoveFromDatasetUpdaterAction): VisState;
|
|
478
|
+
/**
|
|
479
|
+
* Record a failed remote dataset refresh without dropping existing rows.
|
|
480
|
+
* @memberof visStateUpdaters
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
483
|
+
export declare function refreshDatasetErrorUpdater(state: VisState, { dataId, error }: VisStateActions.RefreshDatasetErrorUpdaterAction): VisState;
|
|
374
484
|
/**
|
|
375
485
|
* Add new dataset to `visState`, with option to load a map config along with the datasets
|
|
376
486
|
* @memberof visStateUpdaters
|
|
@@ -397,6 +507,25 @@ export declare function renameDatasetUpdater(state: VisState, action: VisStateAc
|
|
|
397
507
|
* @public
|
|
398
508
|
*/
|
|
399
509
|
export declare function updateDatasetPropsUpdater(state: VisState, action: VisStateActions.UpdateDatasetPropsUpdaterAction): VisState;
|
|
510
|
+
/**
|
|
511
|
+
* Update an existing dataset's schema (columns/fields) in place and reconcile
|
|
512
|
+
* everything that referenced the old columns: filters, layers, tooltip fields,
|
|
513
|
+
* pinned columns and sort state. The dataset keeps its id/label/color/metadata.
|
|
514
|
+
*
|
|
515
|
+
* `action.data` is the same shape `KeplerTable.importData` accepts (`{cols,
|
|
516
|
+
* fields, arrowTable}` when replacing columns). `action.renames` is an optional
|
|
517
|
+
* old → new column-name map so layers/filters/tooltips follow a rename instead
|
|
518
|
+
* of treating the old column as removed.
|
|
519
|
+
*
|
|
520
|
+
* Reconciliation is name-based — the same way kepler.gl loads a saved config
|
|
521
|
+
* against changed data. A layer whose required column is gone is removed; a
|
|
522
|
+
* filter on a gone column is dropped (or the dataset is spliced out of a synced
|
|
523
|
+
* filter); tooltip fields are remapped / dropped.
|
|
524
|
+
*
|
|
525
|
+
* @memberof visStateUpdaters
|
|
526
|
+
* @public
|
|
527
|
+
*/
|
|
528
|
+
export declare function updateDatasetUpdater(state: VisState, action: VisStateActions.UpdateDatasetUpdaterAction): VisState;
|
|
400
529
|
/**
|
|
401
530
|
* When a user clicks on the specific map closing icon
|
|
402
531
|
* the application will close the selected map
|
|
@@ -502,6 +631,11 @@ export declare const setEditorModeUpdater: (state: VisState, { mode }: VisStateA
|
|
|
502
631
|
* @memberof visStateUpdaters
|
|
503
632
|
*/
|
|
504
633
|
export declare function setFeaturesUpdater(state: VisState, { features }: VisStateActions.SetFeaturesUpdaterAction): VisState;
|
|
634
|
+
/**
|
|
635
|
+
* Set user-facing GeoJSON properties on a sketch or polygon-filter feature.
|
|
636
|
+
* @memberof visStateUpdaters
|
|
637
|
+
*/
|
|
638
|
+
export declare function setEditorFeaturePropertiesUpdater(state: VisState, { feature, properties }: VisStateActions.SetEditorFeaturePropertiesUpdaterAction): VisState;
|
|
505
639
|
/**
|
|
506
640
|
* Set the current selected feature
|
|
507
641
|
* @memberof uiStateUpdaters
|
|
@@ -517,6 +651,11 @@ export declare function deleteFeatureUpdater(state: VisState, { feature }: VisSt
|
|
|
517
651
|
* @memberof visStateUpdaters
|
|
518
652
|
*/
|
|
519
653
|
export declare function setPolygonFilterLayerUpdater(state: VisState, payload: VisStateActions.SetPolygonFilterLayerUpdaterAction): VisState;
|
|
654
|
+
/**
|
|
655
|
+
* Apply polygon filter to all visible layers
|
|
656
|
+
* @memberof visStateUpdaters
|
|
657
|
+
*/
|
|
658
|
+
export declare function setPolygonFilterAllLayersUpdater(state: VisState, payload: VisStateActions.SetPolygonFilterAllLayersUpdaterAction): VisState;
|
|
520
659
|
/**
|
|
521
660
|
* @memberof visStateUpdaters
|
|
522
661
|
* @public
|
|
@@ -539,10 +678,32 @@ export declare function copyTableColumnUpdater(state: VisState, { dataId, column
|
|
|
539
678
|
* @public
|
|
540
679
|
*/
|
|
541
680
|
export declare function setColumnDisplayFormatUpdater(state: VisState, { dataId, formats }: VisStateActions.SetColumnDisplayFormatUpdaterAction): VisState;
|
|
681
|
+
/**
|
|
682
|
+
* Start loading column statistics for one or more fields.
|
|
683
|
+
* @memberof visStateUpdaters
|
|
684
|
+
* @public
|
|
685
|
+
*/
|
|
686
|
+
export declare function loadColumnStatsUpdater(state: VisState, { dataId, fieldName }: VisStateActions.LoadColumnStatsUpdaterAction): VisState;
|
|
687
|
+
/**
|
|
688
|
+
* Persist loaded column statistics on the field.
|
|
689
|
+
* @memberof visStateUpdaters
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
export declare function loadColumnStatsSuccessUpdater(state: VisState, { result, filterProps, dataId, fieldName }: VisStateActions.LoadColumnStatsSuccessUpdaterAction): VisState;
|
|
693
|
+
/**
|
|
694
|
+
* Clear loading flag when column statistics fail.
|
|
695
|
+
* @memberof visStateUpdaters
|
|
696
|
+
* @public
|
|
697
|
+
*/
|
|
698
|
+
export declare function loadColumnStatsErrorUpdater(state: VisState, { error, dataId, fieldName }: VisStateActions.LoadColumnStatsErrorUpdaterAction): VisState;
|
|
542
699
|
/**
|
|
543
700
|
* Update editor
|
|
544
701
|
*/
|
|
545
702
|
export declare function toggleEditorVisibilityUpdater(state: VisState, action: VisStateActions.ToggleEditorVisibilityUpdaterAction): VisState;
|
|
703
|
+
/**
|
|
704
|
+
* Convert editor sketch features into a GeoJSON dataset/layer and clear the sketches.
|
|
705
|
+
*/
|
|
706
|
+
export declare function convertEditorFeaturesToLayerUpdater(state: VisState, _action: VisStateActions.ConvertEditorFeaturesToLayerUpdaterAction): VisState;
|
|
546
707
|
export declare function setFilterAnimationTimeConfigUpdater(state: VisState, { idx, config }: VisStateActions.SetFilterAnimationTimeConfigAction): VisState;
|
|
547
708
|
/**
|
|
548
709
|
* Update editor
|
package/dist/vis-state.d.ts
CHANGED
|
@@ -4,9 +4,14 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
4
4
|
layers: import("@kepler.gl/layers").Layer[];
|
|
5
5
|
layerData: any[];
|
|
6
6
|
layerToBeMerged: any[];
|
|
7
|
-
layerOrder:
|
|
7
|
+
layerOrder: import("@kepler.gl/types").LayerOrder;
|
|
8
|
+
layerOrderToBeMerged: any[] | null;
|
|
8
9
|
effects: import("@kepler.gl/types").Effect[];
|
|
9
10
|
effectOrder: string[];
|
|
11
|
+
annotations: import("@kepler.gl/types").Annotation[];
|
|
12
|
+
annotationsToBeMerged: any[];
|
|
13
|
+
selectedAnnotationId: string | null;
|
|
14
|
+
isEditingAnnotationText: boolean;
|
|
10
15
|
filterToBeMerged: any[];
|
|
11
16
|
datasets: import("@kepler.gl/table").Datasets;
|
|
12
17
|
editingDataset: string | undefined;
|
|
@@ -43,9 +48,14 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
43
48
|
layers: import("@kepler.gl/layers").Layer[];
|
|
44
49
|
layerData: any[];
|
|
45
50
|
layerToBeMerged: any[];
|
|
46
|
-
layerOrder:
|
|
51
|
+
layerOrder: import("@kepler.gl/types").LayerOrder;
|
|
52
|
+
layerOrderToBeMerged: any[] | null;
|
|
47
53
|
effects: import("@kepler.gl/types").Effect[];
|
|
48
54
|
effectOrder: string[];
|
|
55
|
+
annotations: import("@kepler.gl/types").Annotation[];
|
|
56
|
+
annotationsToBeMerged: any[];
|
|
57
|
+
selectedAnnotationId: string | null;
|
|
58
|
+
isEditingAnnotationText: boolean;
|
|
49
59
|
filterToBeMerged: any[];
|
|
50
60
|
datasets: import("@kepler.gl/table").Datasets;
|
|
51
61
|
editingDataset: string | undefined;
|
|
@@ -83,9 +93,14 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
83
93
|
layers: import("@kepler.gl/layers").Layer[];
|
|
84
94
|
layerData: any[];
|
|
85
95
|
layerToBeMerged: any[];
|
|
86
|
-
layerOrder:
|
|
96
|
+
layerOrder: import("@kepler.gl/types").LayerOrder;
|
|
97
|
+
layerOrderToBeMerged: any[] | null;
|
|
87
98
|
effects: import("@kepler.gl/types").Effect[];
|
|
88
99
|
effectOrder: string[];
|
|
100
|
+
annotations: import("@kepler.gl/types").Annotation[];
|
|
101
|
+
annotationsToBeMerged: any[];
|
|
102
|
+
selectedAnnotationId: string | null;
|
|
103
|
+
isEditingAnnotationText: boolean;
|
|
89
104
|
filterToBeMerged: any[];
|
|
90
105
|
datasets: import("@kepler.gl/table").Datasets;
|
|
91
106
|
editingDataset: string | undefined;
|
|
@@ -122,9 +137,14 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
122
137
|
layers: import("@kepler.gl/layers").Layer[];
|
|
123
138
|
layerData: any[];
|
|
124
139
|
layerToBeMerged: any[];
|
|
125
|
-
layerOrder:
|
|
140
|
+
layerOrder: import("@kepler.gl/types").LayerOrder;
|
|
141
|
+
layerOrderToBeMerged: any[] | null;
|
|
126
142
|
effects: import("@kepler.gl/types").Effect[];
|
|
127
143
|
effectOrder: string[];
|
|
144
|
+
annotations: import("@kepler.gl/types").Annotation[];
|
|
145
|
+
annotationsToBeMerged: any[];
|
|
146
|
+
selectedAnnotationId: string | null;
|
|
147
|
+
isEditingAnnotationText: boolean;
|
|
128
148
|
filterToBeMerged: any[];
|
|
129
149
|
datasets: import("@kepler.gl/table").Datasets;
|
|
130
150
|
editingDataset: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kepler.gl/reducers",
|
|
3
3
|
"author": "Shan He <shan@uber.com>",
|
|
4
|
-
"version": "3.3.0-alpha.
|
|
4
|
+
"version": "3.3.0-alpha.10",
|
|
5
5
|
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "dist/index.js",
|
|
7
|
+
"main": "dist/cjs/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"babel",
|
|
@@ -19,50 +19,47 @@
|
|
|
19
19
|
"url": "https://github.com/keplergl/kepler.gl.git"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "rm -fr dist && babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
|
|
23
|
-
"build:umd": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/umd.js --progress --env.prod",
|
|
22
|
+
"build": "rm -fr dist && babel src --out-dir dist/cjs --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts' && BABEL_ENV=esm babel src --out-dir dist/esm --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
|
|
24
23
|
"build:types": "tsc --project ./tsconfig.production.json",
|
|
25
24
|
"prepublishOnly": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
|
|
26
|
-
"stab": "mkdir -p dist && touch dist/index.js"
|
|
25
|
+
"stab": "mkdir -p dist/cjs dist/esm && touch dist/cjs/index.js dist/esm/index.js"
|
|
27
26
|
},
|
|
28
27
|
"files": [
|
|
29
|
-
"dist"
|
|
30
|
-
"umd"
|
|
28
|
+
"dist"
|
|
31
29
|
],
|
|
32
30
|
"dependencies": {
|
|
33
|
-
"@kepler.gl/actions": "3.3.0-alpha.
|
|
34
|
-
"@kepler.gl/cloud-providers": "3.3.0-alpha.
|
|
35
|
-
"@kepler.gl/common-utils": "3.3.0-alpha.
|
|
36
|
-
"@kepler.gl/constants": "3.3.0-alpha.
|
|
37
|
-
"@kepler.gl/deckgl-arrow-layers": "3.3.0-alpha.
|
|
38
|
-
"@kepler.gl/deckgl-layers": "3.3.0-alpha.
|
|
39
|
-
"@kepler.gl/effects": "3.3.0-alpha.
|
|
40
|
-
"@kepler.gl/layers": "3.3.0-alpha.
|
|
41
|
-
"@kepler.gl/localization": "3.3.0-alpha.
|
|
42
|
-
"@kepler.gl/processors": "3.3.0-alpha.
|
|
43
|
-
"@kepler.gl/schemas": "3.3.0-alpha.
|
|
44
|
-
"@kepler.gl/table": "3.3.0-alpha.
|
|
45
|
-
"@kepler.gl/tasks": "3.3.0-alpha.
|
|
46
|
-
"@kepler.gl/types": "3.3.0-alpha.
|
|
47
|
-
"@kepler.gl/utils": "3.3.0-alpha.
|
|
48
|
-
"@loaders.gl/loader-utils": "^4.
|
|
31
|
+
"@kepler.gl/actions": "3.3.0-alpha.10",
|
|
32
|
+
"@kepler.gl/cloud-providers": "3.3.0-alpha.10",
|
|
33
|
+
"@kepler.gl/common-utils": "3.3.0-alpha.10",
|
|
34
|
+
"@kepler.gl/constants": "3.3.0-alpha.10",
|
|
35
|
+
"@kepler.gl/deckgl-arrow-layers": "3.3.0-alpha.10",
|
|
36
|
+
"@kepler.gl/deckgl-layers": "3.3.0-alpha.10",
|
|
37
|
+
"@kepler.gl/effects": "3.3.0-alpha.10",
|
|
38
|
+
"@kepler.gl/layers": "3.3.0-alpha.10",
|
|
39
|
+
"@kepler.gl/localization": "3.3.0-alpha.10",
|
|
40
|
+
"@kepler.gl/processors": "3.3.0-alpha.10",
|
|
41
|
+
"@kepler.gl/schemas": "3.3.0-alpha.10",
|
|
42
|
+
"@kepler.gl/table": "3.3.0-alpha.10",
|
|
43
|
+
"@kepler.gl/tasks": "3.3.0-alpha.10",
|
|
44
|
+
"@kepler.gl/types": "3.3.0-alpha.10",
|
|
45
|
+
"@kepler.gl/utils": "3.3.0-alpha.10",
|
|
46
|
+
"@loaders.gl/loader-utils": "^4.4.1",
|
|
49
47
|
"@mapbox/geo-viewport": "^0.4.1",
|
|
50
48
|
"@math.gl/web-mercator": "^4.1.0",
|
|
51
|
-
"@turf/bbox": "^
|
|
52
|
-
"@turf/bbox-polygon": "^
|
|
53
|
-
"@turf/boolean-within": "^
|
|
54
|
-
"@types/lodash": "4.17.5",
|
|
49
|
+
"@turf/bbox": "^7.2.0",
|
|
50
|
+
"@turf/bbox-polygon": "^7.2.0",
|
|
51
|
+
"@turf/boolean-within": "^7.2.0",
|
|
55
52
|
"@types/redux-actions": "^2.6.2",
|
|
56
53
|
"copy-to-clipboard": "^3.3.1",
|
|
57
|
-
"d3-color": "^
|
|
54
|
+
"d3-color": "^3.1.0",
|
|
58
55
|
"d3-dsv": "^2.0.0",
|
|
59
56
|
"deepmerge": "^4.2.2",
|
|
57
|
+
"es-toolkit": "^1.39.10",
|
|
60
58
|
"global": "^4.3.0",
|
|
61
|
-
"lodash": "4.17.21",
|
|
62
59
|
"react-palm": "^3.3.8",
|
|
63
|
-
"redux": "^
|
|
60
|
+
"redux": "^5.0.0",
|
|
64
61
|
"redux-actions": "^2.2.1",
|
|
65
|
-
"reselect": "^
|
|
62
|
+
"reselect": "^5.0.0"
|
|
66
63
|
},
|
|
67
64
|
"nyc": {
|
|
68
65
|
"sourceMap": false,
|
|
@@ -70,14 +67,25 @@
|
|
|
70
67
|
},
|
|
71
68
|
"maintainers": [
|
|
72
69
|
"Shan He <heshan0131@gmail.com>",
|
|
73
|
-
"Giuseppe Macri <gmacri@uber.com>"
|
|
70
|
+
"Giuseppe Macri <gmacri@uber.com>",
|
|
71
|
+
"Igor Dykhta <dikhta.igor@gmail.com>",
|
|
72
|
+
"Xun Li <lixun910@gmail.com>"
|
|
74
73
|
],
|
|
75
74
|
"engines": {
|
|
76
|
-
"node": ">=
|
|
75
|
+
"node": ">=20"
|
|
77
76
|
},
|
|
78
77
|
"volta": {
|
|
79
|
-
"node": "
|
|
78
|
+
"node": "20.19.3",
|
|
80
79
|
"yarn": "4.4.0"
|
|
81
80
|
},
|
|
82
|
-
"packageManager": "yarn@4.4.0"
|
|
81
|
+
"packageManager": "yarn@4.4.0",
|
|
82
|
+
"module": "dist/esm/index.js",
|
|
83
|
+
"exports": {
|
|
84
|
+
".": {
|
|
85
|
+
"types": "./dist/index.d.ts",
|
|
86
|
+
"import": "./dist/esm/index.js",
|
|
87
|
+
"require": "./dist/cjs/index.js",
|
|
88
|
+
"default": "./dist/cjs/index.js"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
83
91
|
}
|