@kepler.gl/reducers 3.3.0-alpha.2 → 3.3.0-alpha.21
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/column-edit-reconcile.js +100 -0
- package/dist/cjs/column-edit-reconcile.js.map +1 -0
- package/dist/cjs/combined-updaters.js +676 -0
- package/dist/cjs/combined-updaters.js.map +1 -0
- package/dist/cjs/composer-helpers.js +101 -0
- package/dist/cjs/composer-helpers.js.map +1 -0
- package/dist/cjs/composers.js +21 -0
- package/dist/cjs/composers.js.map +1 -0
- package/dist/cjs/core.js +105 -0
- package/dist/cjs/core.js.map +1 -0
- package/dist/cjs/data-utils.js +53 -0
- package/dist/cjs/data-utils.js.map +1 -0
- package/dist/cjs/dataset-ops-updaters.js +375 -0
- package/dist/cjs/dataset-ops-updaters.js.map +1 -0
- package/dist/cjs/export-utils.js +163 -0
- package/dist/cjs/export-utils.js.map +1 -0
- package/dist/cjs/index.js +348 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interaction-utils.js +275 -0
- package/dist/cjs/interaction-utils.js.map +1 -0
- package/dist/cjs/layer-utils.js +797 -0
- package/dist/cjs/layer-utils.js.map +1 -0
- package/dist/cjs/map-state-updaters.js +709 -0
- package/dist/cjs/map-state-updaters.js.map +1 -0
- package/dist/cjs/map-state.js +35 -0
- package/dist/cjs/map-state.js.map +1 -0
- package/dist/cjs/map-style-updaters.js +659 -0
- package/dist/cjs/map-style-updaters.js.map +1 -0
- package/dist/cjs/map-style.js +33 -0
- package/dist/cjs/map-style.js.map +1 -0
- package/dist/cjs/merger-handler.js +105 -0
- package/dist/cjs/merger-handler.js.map +1 -0
- package/dist/cjs/middleware.js +25 -0
- package/dist/cjs/middleware.js.map +1 -0
- package/dist/cjs/provider-state-updaters.js +464 -0
- package/dist/cjs/provider-state-updaters.js.map +1 -0
- package/dist/cjs/provider-state.js +34 -0
- package/dist/cjs/provider-state.js.map +1 -0
- package/dist/cjs/root.js +207 -0
- package/dist/cjs/root.js.map +1 -0
- package/dist/cjs/ui-state-updaters.js +1096 -0
- package/dist/cjs/ui-state-updaters.js.map +1 -0
- package/dist/cjs/ui-state.js +36 -0
- package/dist/cjs/ui-state.js.map +1 -0
- package/dist/cjs/vis-state-merger.js +1439 -0
- package/dist/cjs/vis-state-merger.js.map +1 -0
- package/dist/cjs/vis-state-selectors.js +50 -0
- package/dist/cjs/vis-state-selectors.js.map +1 -0
- package/dist/cjs/vis-state-updaters.js +6749 -0
- package/dist/cjs/vis-state-updaters.js.map +1 -0
- package/dist/cjs/vis-state.js +35 -0
- package/dist/cjs/vis-state.js.map +1 -0
- package/dist/column-edit-reconcile.d.ts +4 -0
- package/dist/combined-updaters.d.ts +61 -15
- package/dist/composers.d.ts +17 -2
- package/dist/dataset-ops-updaters.d.ts +21 -0
- package/dist/esm/column-edit-reconcile.js +95 -0
- package/dist/esm/column-edit-reconcile.js.map +1 -0
- package/dist/esm/combined-updaters.js +669 -0
- package/dist/esm/combined-updaters.js.map +1 -0
- package/dist/esm/composer-helpers.js +85 -0
- package/dist/esm/composer-helpers.js.map +1 -0
- package/dist/esm/composers.js +15 -0
- package/dist/esm/composers.js.map +1 -0
- package/dist/esm/core.js +101 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/data-utils.js +47 -0
- package/dist/esm/data-utils.js.map +1 -0
- package/dist/esm/dataset-ops-updaters.js +357 -0
- package/dist/esm/dataset-ops-updaters.js.map +1 -0
- package/dist/esm/export-utils.js +158 -0
- package/dist/esm/export-utils.js.map +1 -0
- package/dist/esm/index.js +62 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interaction-utils.js +262 -0
- package/dist/esm/interaction-utils.js.map +1 -0
- package/dist/esm/layer-utils.js +762 -0
- package/dist/esm/layer-utils.js.map +1 -0
- package/dist/esm/map-state-updaters.js +701 -0
- package/dist/esm/map-state-updaters.js.map +1 -0
- package/dist/esm/map-state.js +29 -0
- package/dist/esm/map-state.js.map +1 -0
- package/dist/esm/map-style-updaters.js +652 -0
- package/dist/esm/map-style-updaters.js.map +1 -0
- package/dist/esm/map-style.js +27 -0
- package/dist/esm/map-style.js.map +1 -0
- package/dist/esm/merger-handler.js +96 -0
- package/dist/esm/merger-handler.js.map +1 -0
- package/dist/esm/middleware.js +17 -0
- package/dist/esm/middleware.js.map +1 -0
- package/dist/esm/provider-state-updaters.js +458 -0
- package/dist/esm/provider-state-updaters.js.map +1 -0
- package/dist/esm/provider-state.js +28 -0
- package/dist/esm/provider-state.js.map +1 -0
- package/dist/esm/root.js +201 -0
- package/dist/esm/root.js.map +1 -0
- package/dist/esm/ui-state-updaters.js +1091 -0
- package/dist/esm/ui-state-updaters.js.map +1 -0
- package/dist/esm/ui-state.js +30 -0
- package/dist/esm/ui-state.js.map +1 -0
- package/dist/esm/vis-state-merger.js +1403 -0
- package/dist/esm/vis-state-merger.js.map +1 -0
- package/dist/esm/vis-state-selectors.js +44 -0
- package/dist/esm/vis-state-selectors.js.map +1 -0
- package/dist/esm/vis-state-updaters.js +6586 -0
- package/dist/esm/vis-state-updaters.js.map +1 -0
- package/dist/esm/vis-state.js +29 -0
- package/dist/esm/vis-state.js.map +1 -0
- package/dist/export-utils.d.ts +2 -2
- package/dist/interaction-utils.d.ts +26 -3
- package/dist/layer-utils.d.ts +18 -0
- package/dist/map-state-updaters.d.ts +13 -0
- package/dist/map-style-updaters.d.ts +1 -3
- package/dist/middleware.d.ts +2 -2
- package/dist/root.d.ts +1 -1
- package/dist/ui-state-updaters.d.ts +62 -2
- package/dist/vis-state-merger.d.ts +23 -5
- package/dist/vis-state-selectors.d.ts +53 -6
- package/dist/vis-state-updaters.d.ts +196 -15
- package/dist/vis-state.d.ts +56 -0
- package/package.json +37 -32
- package/dist/combined-updaters.js +0 -412
- 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/index.js +0 -349
- package/dist/interaction-utils.js +0 -105
- package/dist/layer-utils.js +0 -633
- package/dist/map-state-updaters.js +0 -516
- 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 -890
- package/dist/ui-state.js +0 -37
- package/dist/vis-state-merger.js +0 -1193
- package/dist/vis-state-selectors.js +0 -30
- package/dist/vis-state-updaters.js +0 -4115
- package/dist/vis-state.js +0 -36
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { TaskDescriptor } from '@kepler.gl/tasks';
|
|
1
2
|
import { ActionTypes, CreateNewDatasetSuccessPayload, MapStateActions, ReceiveMapConfigPayload, VisStateActions, SetLoadingIndicatorPayload } from '@kepler.gl/actions';
|
|
2
3
|
import { Layer } from '@kepler.gl/layers';
|
|
3
4
|
import KeplerGLSchema, { Merger, PostMergerPayload, VisState } from '@kepler.gl/schemas';
|
|
4
|
-
import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor, Annotation } from '@kepler.gl/types';
|
|
5
|
+
import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor, Annotation, ChartConfig } from '@kepler.gl/types';
|
|
5
6
|
import { Loader } from '@loaders.gl/loader-utils';
|
|
6
7
|
import { Datasets } from '@kepler.gl/table';
|
|
8
|
+
import { addGroupByUpdater, addJoinUpdater, addSpatialJoinUpdater, addSuitabilityUpdater, removeDatasetOpUpdater, setGroupByConfigUpdater, setJoinConfigUpdater, setSpatialJoinConfigUpdater, setSuitabilityConfigUpdater } from './dataset-ops-updaters';
|
|
7
9
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
8
10
|
export declare const defaultInteractionConfig: InteractionConfig;
|
|
9
11
|
export declare const DEFAULT_ANIMATION_CONFIG: AnimationConfig;
|
|
@@ -15,8 +17,8 @@ export declare const DEFAULT_EDITOR: Editor;
|
|
|
15
17
|
* @public
|
|
16
18
|
*/
|
|
17
19
|
export declare const INITIAL_VIS_STATE: VisState;
|
|
18
|
-
export declare const ACTION_TASK_FIT_BOUNDS:
|
|
19
|
-
export declare const ACTION_TASK_ADD_NOTIFICATION:
|
|
20
|
+
export declare const ACTION_TASK_FIT_BOUNDS: import("@kepler.gl/tasks-core").TaskFactory;
|
|
21
|
+
export declare const ACTION_TASK_ADD_NOTIFICATION: import("@kepler.gl/tasks-core").TaskFactory;
|
|
20
22
|
type UpdateStateWithLayerAndDataType = {
|
|
21
23
|
layers: Layer[];
|
|
22
24
|
layerData: any[];
|
|
@@ -187,6 +189,8 @@ export declare const updateLayerAnimationSpeedUpdater: (state: VisState, { speed
|
|
|
187
189
|
*/
|
|
188
190
|
export declare const setFilterViewUpdater: (state: VisState, action: VisStateActions.SetFilterViewUpdaterAction) => {
|
|
189
191
|
filters: Filter[];
|
|
192
|
+
cameraTour: import("@kepler.gl/types").CameraTour | null;
|
|
193
|
+
cameraBookmarks: import("@kepler.gl/types").CameraBookmark[];
|
|
190
194
|
mapInfo: import("@kepler.gl/types").MapInfo;
|
|
191
195
|
layers: Layer[];
|
|
192
196
|
layerData: any[];
|
|
@@ -195,6 +199,8 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
|
|
|
195
199
|
layerOrderToBeMerged: any[] | null;
|
|
196
200
|
effects: import("@kepler.gl/types").Effect[];
|
|
197
201
|
effectOrder: string[];
|
|
202
|
+
charts: ChartConfig[];
|
|
203
|
+
chartsToBeMerged: ChartConfig[];
|
|
198
204
|
annotations: Annotation[];
|
|
199
205
|
annotationsToBeMerged: any[];
|
|
200
206
|
selectedAnnotationId: string | null;
|
|
@@ -202,6 +208,9 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
|
|
|
202
208
|
filterToBeMerged: any[];
|
|
203
209
|
datasets: Datasets;
|
|
204
210
|
editingDataset: string | undefined;
|
|
211
|
+
groupBys: import("@kepler.gl/table").GroupByOp[];
|
|
212
|
+
joins: import("@kepler.gl/table").JoinOp[];
|
|
213
|
+
suitabilities: import("@kepler.gl/table").SuitabilityOp[];
|
|
205
214
|
interactionConfig: InteractionConfig;
|
|
206
215
|
interactionToBeMerged: any;
|
|
207
216
|
layerBlending: string;
|
|
@@ -217,7 +226,14 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
|
|
|
217
226
|
splitMapsToBeMerged: import("@kepler.gl/types").SplitMap[];
|
|
218
227
|
fileLoading: import("@kepler.gl/types").FileLoading | false;
|
|
219
228
|
fileLoadingProgress: import("@kepler.gl/types").FileLoadingProgress;
|
|
229
|
+
stagedToAdd: any[] | null;
|
|
220
230
|
loadingIndicatorValue: number;
|
|
231
|
+
loadingProgress: Record<string, number>;
|
|
232
|
+
loadingProcessing?: Record<string, boolean>;
|
|
233
|
+
pendingDatasetReplacements?: Record<string, {
|
|
234
|
+
requestId: string;
|
|
235
|
+
targetId?: string;
|
|
236
|
+
}>;
|
|
221
237
|
loaders: Loader[];
|
|
222
238
|
loadOptions: object;
|
|
223
239
|
initialState?: Partial<VisState>;
|
|
@@ -325,6 +341,24 @@ export declare const reorderEffectUpdater: (state: VisState, { order }: VisState
|
|
|
325
341
|
* @public
|
|
326
342
|
*/
|
|
327
343
|
export declare const updateEffectUpdater: (state: VisState, { id, props }: VisStateActions.UpdateEffectUpdaterAction) => VisState;
|
|
344
|
+
/**
|
|
345
|
+
* Add a chart
|
|
346
|
+
* @memberof visStateUpdaters
|
|
347
|
+
* @public
|
|
348
|
+
*/
|
|
349
|
+
export declare const addChartUpdater: (state: VisState, { chart }: VisStateActions.AddChartUpdaterAction) => VisState;
|
|
350
|
+
/**
|
|
351
|
+
* Update a chart
|
|
352
|
+
* @memberof visStateUpdaters
|
|
353
|
+
* @public
|
|
354
|
+
*/
|
|
355
|
+
export declare const updateChartUpdater: (state: VisState, { id, props }: VisStateActions.UpdateChartUpdaterAction) => VisState;
|
|
356
|
+
/**
|
|
357
|
+
* Remove a chart and any cross-filter it owns
|
|
358
|
+
* @memberof visStateUpdaters
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
361
|
+
export declare const removeChartUpdater: (state: VisState, { id }: VisStateActions.RemoveChartUpdaterAction) => VisState;
|
|
328
362
|
/**
|
|
329
363
|
* Add a new annotation
|
|
330
364
|
* @memberof visStateUpdaters
|
|
@@ -391,6 +425,8 @@ export declare const updateTableColorUpdater: (state: VisState, action: VisState
|
|
|
391
425
|
* @public
|
|
392
426
|
*/
|
|
393
427
|
export declare const resetMapConfigUpdater: (state: VisState) => VisState;
|
|
428
|
+
export declare const setCameraBookmarksUpdater: (state: VisState, action: ReturnType<typeof VisStateActions.setCameraBookmarks>) => VisState;
|
|
429
|
+
export declare const setCameraTourUpdater: (state: VisState, action: ReturnType<typeof VisStateActions.setCameraTour>) => VisState;
|
|
394
430
|
/**
|
|
395
431
|
* Propagate `visState` reducer with a new configuration. Current config will be override.
|
|
396
432
|
* @memberof visStateUpdaters
|
|
@@ -443,10 +479,44 @@ export declare const toggleSplitMapUpdater: (state: VisState, action: MapStateAc
|
|
|
443
479
|
*/
|
|
444
480
|
export declare const toggleLayerForMapUpdater: (state: VisState, { mapIndex, layerId }: VisStateActions.ToggleLayerForMapUpdaterAction) => VisState;
|
|
445
481
|
/**
|
|
446
|
-
*
|
|
482
|
+
* Re-fetch an externally hosted dataset and replace its table contents in place.
|
|
483
|
+
* Layers and filters are kept when field names match.
|
|
484
|
+
* @memberof visStateUpdaters
|
|
485
|
+
* @public
|
|
486
|
+
*/
|
|
487
|
+
export declare function refreshDatasetUpdater(state: VisState, { dataId }: VisStateActions.RefreshDatasetUpdaterAction): VisState;
|
|
488
|
+
/**
|
|
489
|
+
* Record download progress for an in-flight remote dataset refresh.
|
|
490
|
+
* @memberof visStateUpdaters
|
|
491
|
+
* @public
|
|
492
|
+
*/
|
|
493
|
+
export declare function refreshDatasetProgressUpdater(state: VisState, { dataId, percent }: VisStateActions.RefreshDatasetProgressUpdaterAction): VisState;
|
|
494
|
+
/**
|
|
495
|
+
* Apply a finished remote refresh: keep layers, re-run filters and layer data.
|
|
496
|
+
* @memberof visStateUpdaters
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
499
|
+
export declare function refreshDatasetSuccessUpdater(state: VisState, { dataId, result }: VisStateActions.RefreshDatasetSuccessUpdaterAction): VisState;
|
|
500
|
+
/**
|
|
501
|
+
* Append or upsert rows on an existing in-memory row or Arrow dataset. Keeps layers and re-runs filters.
|
|
502
|
+
* DuckDB tables warn and are left unchanged (INSERT not implemented). Nested, binary, and geoarrow Arrow columns are rejected.
|
|
503
|
+
* @memberof visStateUpdaters
|
|
504
|
+
* @public
|
|
505
|
+
*/
|
|
506
|
+
export declare function addToDatasetUpdater(state: VisState, { dataId, rows, options }: VisStateActions.AddToDatasetUpdaterAction): VisState;
|
|
507
|
+
/**
|
|
508
|
+
* Delete rows by index or by field values from an existing in-memory row or Arrow dataset.
|
|
509
|
+
* Keeps layers. DuckDB tables warn and are left unchanged.
|
|
447
510
|
* @memberof visStateUpdaters
|
|
448
511
|
* @public
|
|
449
512
|
*/
|
|
513
|
+
export declare function removeFromDatasetUpdater(state: VisState, { dataId, rowIndexes, byField }: VisStateActions.RemoveFromDatasetUpdaterAction): VisState;
|
|
514
|
+
/**
|
|
515
|
+
* Record a failed remote dataset refresh without dropping existing rows.
|
|
516
|
+
* @memberof visStateUpdaters
|
|
517
|
+
* @public
|
|
518
|
+
*/
|
|
519
|
+
export declare function refreshDatasetErrorUpdater(state: VisState, { dataId, error }: VisStateActions.RefreshDatasetErrorUpdaterAction): VisState;
|
|
450
520
|
export declare const updateVisDataUpdater: (state: VisState, action: VisStateActions.UpdateVisDataUpdaterAction) => VisState;
|
|
451
521
|
export declare const createNewDatasetSuccessUpdater: (state: VisState, action: PayloadAction<CreateNewDatasetSuccessPayload>) => VisState;
|
|
452
522
|
/**
|
|
@@ -468,6 +538,40 @@ export declare function renameDatasetUpdater(state: VisState, action: VisStateAc
|
|
|
468
538
|
* @public
|
|
469
539
|
*/
|
|
470
540
|
export declare function updateDatasetPropsUpdater(state: VisState, action: VisStateActions.UpdateDatasetPropsUpdaterAction): VisState;
|
|
541
|
+
/**
|
|
542
|
+
* Update an existing dataset's schema (columns/fields) in place and reconcile
|
|
543
|
+
* everything that referenced the old columns: filters, layers, tooltip fields,
|
|
544
|
+
* pinned columns and sort state. The dataset keeps its id/label/color/metadata.
|
|
545
|
+
*
|
|
546
|
+
* `action.data` is the same shape `KeplerTable.importData` accepts (`{cols,
|
|
547
|
+
* fields, arrowTable}` when replacing columns). `action.renames` is an optional
|
|
548
|
+
* old → new column-name map so layers/filters/tooltips follow a rename instead
|
|
549
|
+
* of treating the old column as removed.
|
|
550
|
+
*
|
|
551
|
+
* Reconciliation is name-based — the same way kepler.gl loads a saved config
|
|
552
|
+
* against changed data. A layer whose required column is gone is removed; a
|
|
553
|
+
* filter on a gone column is dropped (or the dataset is spliced out of a synced
|
|
554
|
+
* filter); tooltip fields are remapped / dropped.
|
|
555
|
+
*
|
|
556
|
+
* @memberof visStateUpdaters
|
|
557
|
+
* @public
|
|
558
|
+
*/
|
|
559
|
+
export declare function updateDatasetUpdater(state: VisState, action: VisStateActions.UpdateDatasetUpdaterAction): VisState;
|
|
560
|
+
/**
|
|
561
|
+
* Rename a column's stored identity (`field.name`) and every layer, filter,
|
|
562
|
+
* tooltip, and chart reference that used the old name.
|
|
563
|
+
*/
|
|
564
|
+
export declare function renameTableColumnUpdater(state: VisState, action: VisStateActions.RenameTableColumnUpdaterAction): VisState;
|
|
565
|
+
/**
|
|
566
|
+
* Convert a complete column before committing its new type. A failed value
|
|
567
|
+
* leaves the table and every reference unchanged.
|
|
568
|
+
*/
|
|
569
|
+
export declare function changeTableColumnTypeUpdater(state: VisState, action: VisStateActions.ChangeTableColumnTypeUpdaterAction): VisState;
|
|
570
|
+
/**
|
|
571
|
+
* Drop a column and the layers, filters, and other references that required it.
|
|
572
|
+
* The last remaining column is kept.
|
|
573
|
+
*/
|
|
574
|
+
export declare function deleteTableColumnUpdater(state: VisState, action: VisStateActions.DeleteTableColumnUpdaterAction): VisState;
|
|
471
575
|
/**
|
|
472
576
|
* When a user clicks on the specific map closing icon
|
|
473
577
|
* the application will close the selected map
|
|
@@ -478,11 +582,6 @@ export declare function updateDatasetPropsUpdater(state: VisState, action: VisSt
|
|
|
478
582
|
* @returns {Object} nextState
|
|
479
583
|
*/
|
|
480
584
|
export declare function closeSpecificMapAtIndex<S extends VisState>(state: S, action: MapStateActions.ToggleSplitMapUpdaterAction): S;
|
|
481
|
-
/**
|
|
482
|
-
* Trigger file loading dispatch `addDataToMap` if succeed, or `loadFilesErr` if failed
|
|
483
|
-
* @memberof visStateUpdaters
|
|
484
|
-
* @public
|
|
485
|
-
*/
|
|
486
585
|
export declare const loadFilesUpdater: (state: VisState, action: VisStateActions.LoadFilesUpdaterAction) => VisState;
|
|
487
586
|
/**
|
|
488
587
|
* Sucessfully loaded one file, move on to the next one
|
|
@@ -495,8 +594,15 @@ export declare function loadFileStepSuccessUpdater(state: VisState, action: VisS
|
|
|
495
594
|
* @memberof visStateUpdaters
|
|
496
595
|
* @public
|
|
497
596
|
*/
|
|
498
|
-
export declare function loadNextFileUpdater(state: VisState
|
|
499
|
-
|
|
597
|
+
export declare function loadNextFileUpdater(state: VisState, action?: {
|
|
598
|
+
loadId?: number;
|
|
599
|
+
}): VisState;
|
|
600
|
+
/**
|
|
601
|
+
* Apply an unpacked zip. One shapefile keeps the archive name. Any other
|
|
602
|
+
* mix is queued as one dataset per supported member.
|
|
603
|
+
*/
|
|
604
|
+
export declare function expandZipArchiveSuccessUpdater(state: VisState, action: VisStateActions.ExpandZipArchiveSuccessAction): VisState;
|
|
605
|
+
export declare function makeLoadFileTask(file: any, fileCache: any, loaders?: Loader[], loadOptions?: {}, companionFiles?: File[], addDataOptions?: VisStateActions.LoadFilesOptions, fileName?: string): TaskDescriptor;
|
|
500
606
|
/**
|
|
501
607
|
*
|
|
502
608
|
* @memberof visStateUpdaters
|
|
@@ -513,13 +619,19 @@ export declare function parseProgress(prevProgress: {} | undefined, progress: an
|
|
|
513
619
|
* @memberof visStateUpdaters
|
|
514
620
|
* @public
|
|
515
621
|
*/
|
|
516
|
-
export declare const nextFileBatchUpdater: (state: VisState, { payload: { gen, fileName, progress, accumulated, onFinish } }: VisStateActions.NextFileBatchUpdaterAction) => VisState;
|
|
622
|
+
export declare const nextFileBatchUpdater: (state: VisState, { payload: { gen, fileName, progress, accumulated, onFinish, options } }: VisStateActions.NextFileBatchUpdaterAction) => VisState;
|
|
517
623
|
/**
|
|
518
624
|
* Trigger loading file error
|
|
519
625
|
* @memberof visStateUpdaters
|
|
520
626
|
* @public
|
|
521
627
|
*/
|
|
522
|
-
|
|
628
|
+
/**
|
|
629
|
+
* Drop files waiting on the Add Data button and abort an in-progress modal load.
|
|
630
|
+
* @memberof visStateUpdaters
|
|
631
|
+
* @public
|
|
632
|
+
*/
|
|
633
|
+
export declare const clearStagedLoadedFilesUpdater: (state: VisState) => VisState;
|
|
634
|
+
export declare const loadFilesErrUpdater: (state: VisState, { error, fileName, loadId: errorLoadId }: VisStateActions.LoadFilesErrUpdaterAction) => VisState;
|
|
523
635
|
/**
|
|
524
636
|
* When select dataset for export, apply cpu filter to selected dataset
|
|
525
637
|
* @memberof visStateUpdaters
|
|
@@ -573,6 +685,11 @@ export declare const setEditorModeUpdater: (state: VisState, { mode }: VisStateA
|
|
|
573
685
|
* @memberof visStateUpdaters
|
|
574
686
|
*/
|
|
575
687
|
export declare function setFeaturesUpdater(state: VisState, { features }: VisStateActions.SetFeaturesUpdaterAction): VisState;
|
|
688
|
+
/**
|
|
689
|
+
* Set user-facing GeoJSON properties on a sketch or polygon-filter feature.
|
|
690
|
+
* @memberof visStateUpdaters
|
|
691
|
+
*/
|
|
692
|
+
export declare function setEditorFeaturePropertiesUpdater(state: VisState, { feature, properties }: VisStateActions.SetEditorFeaturePropertiesUpdaterAction): VisState;
|
|
576
693
|
/**
|
|
577
694
|
* Set the current selected feature
|
|
578
695
|
* @memberof uiStateUpdaters
|
|
@@ -603,6 +720,16 @@ export declare function sortTableColumnUpdater(state: VisState, { dataId, column
|
|
|
603
720
|
* @public
|
|
604
721
|
*/
|
|
605
722
|
export declare function pinTableColumnUpdater(state: VisState, { dataId, column }: VisStateActions.PinTableColumnUpdaterAction): VisState;
|
|
723
|
+
/**
|
|
724
|
+
* @memberof visStateUpdaters
|
|
725
|
+
* @public
|
|
726
|
+
*/
|
|
727
|
+
export declare function toggleTableColumnHiddenUpdater(state: VisState, { dataId, column }: VisStateActions.ToggleTableColumnHiddenUpdaterAction): VisState;
|
|
728
|
+
/**
|
|
729
|
+
* @memberof visStateUpdaters
|
|
730
|
+
* @public
|
|
731
|
+
*/
|
|
732
|
+
export declare function showAllTableColumnsUpdater(state: VisState, { dataId }: VisStateActions.ShowAllTableColumnsUpdaterAction): VisState;
|
|
606
733
|
/**
|
|
607
734
|
* Copy column content as strings
|
|
608
735
|
* @memberof visStateUpdaters
|
|
@@ -615,10 +742,38 @@ export declare function copyTableColumnUpdater(state: VisState, { dataId, column
|
|
|
615
742
|
* @public
|
|
616
743
|
*/
|
|
617
744
|
export declare function setColumnDisplayFormatUpdater(state: VisState, { dataId, formats }: VisStateActions.SetColumnDisplayFormatUpdaterAction): VisState;
|
|
745
|
+
/**
|
|
746
|
+
* Start loading column statistics for one or more fields.
|
|
747
|
+
* @memberof visStateUpdaters
|
|
748
|
+
* @public
|
|
749
|
+
*/
|
|
750
|
+
export declare function loadColumnStatsUpdater(state: VisState, { dataId, fieldName }: VisStateActions.LoadColumnStatsUpdaterAction): VisState;
|
|
751
|
+
/**
|
|
752
|
+
* Persist loaded column statistics on the field.
|
|
753
|
+
* @memberof visStateUpdaters
|
|
754
|
+
* @public
|
|
755
|
+
*/
|
|
756
|
+
export declare function loadColumnStatsSuccessUpdater(state: VisState, { result, filterProps, dataId, fieldName, fieldType }: VisStateActions.LoadColumnStatsSuccessUpdaterAction): VisState;
|
|
757
|
+
/**
|
|
758
|
+
* Clear loading flag when column statistics fail.
|
|
759
|
+
* @memberof visStateUpdaters
|
|
760
|
+
* @public
|
|
761
|
+
*/
|
|
762
|
+
export declare function loadColumnStatsErrorUpdater(state: VisState, { error, dataId, fieldName, fieldType }: VisStateActions.LoadColumnStatsErrorUpdaterAction): VisState;
|
|
618
763
|
/**
|
|
619
764
|
* Update editor
|
|
620
765
|
*/
|
|
621
766
|
export declare function toggleEditorVisibilityUpdater(state: VisState, action: VisStateActions.ToggleEditorVisibilityUpdaterAction): VisState;
|
|
767
|
+
/**
|
|
768
|
+
* Convert editor sketch features into a GeoJSON dataset/layer and clear the sketches.
|
|
769
|
+
*/
|
|
770
|
+
export declare function convertEditorFeaturesToLayerUpdater(state: VisState, _action: VisStateActions.ConvertEditorFeaturesToLayerUpdaterAction): VisState;
|
|
771
|
+
/**
|
|
772
|
+
* Copy in-memory rows (or loaded vector-tile features) inside the selected
|
|
773
|
+
* Draw on Map polygon into a new dataset. Raster tiles download a PNG clip and a
|
|
774
|
+
* GeoJSON sidecar (bbox rectangle + stats) instead of creating a dataset.
|
|
775
|
+
*/
|
|
776
|
+
export declare function extractDataFromFeatureUpdater(state: VisState, { layerId }: VisStateActions.ExtractDataFromFeatureUpdaterAction): VisState;
|
|
622
777
|
export declare function setFilterAnimationTimeConfigUpdater(state: VisState, { idx, config }: VisStateActions.SetFilterAnimationTimeConfigAction): VisState;
|
|
623
778
|
/**
|
|
624
779
|
* Update editor
|
|
@@ -646,9 +801,35 @@ export declare function setTimeFilterTimelineModeUpdater<S extends VisState>(sta
|
|
|
646
801
|
export declare const setLoadingIndicatorUpdater: (state: VisState, { payload: { change } }: {
|
|
647
802
|
payload: SetLoadingIndicatorPayload;
|
|
648
803
|
}) => VisState;
|
|
649
|
-
|
|
804
|
+
/**
|
|
805
|
+
* Record download progress for an in-flight remote dataset hydrate.
|
|
806
|
+
* @memberof visStateUpdaters
|
|
807
|
+
* @public
|
|
808
|
+
*/
|
|
809
|
+
export declare function setLoadingProgressUpdater(state: VisState, { id, percent, phase }: VisStateActions.SetLoadingProgressUpdaterAction): VisState;
|
|
810
|
+
export declare function prepareStateForDatasetReplace<T extends VisState>(state: T, dataId: string, dataIdToUse: string, options?: {
|
|
811
|
+
deleteOriginalDataset?: boolean;
|
|
812
|
+
}): T;
|
|
813
|
+
/**
|
|
814
|
+
* The order to preserve for the items that will be merged back.
|
|
815
|
+
*
|
|
816
|
+
* `ids` comes from the serialized state, so it lists everything but the items
|
|
817
|
+
* another dataset's replacement parked a moment ago: an app refreshing several
|
|
818
|
+
* datasets in a row prepares the second replacement before the first one's
|
|
819
|
+
* items have merged back. Writing `ids` as it is would drop those, and
|
|
820
|
+
* `insertItemBasedOnPreservedOrder` puts an item it cannot place at the front —
|
|
821
|
+
* so they would come back reversed. Where they belong is what the order written
|
|
822
|
+
* when they were parked already says, so that order is kept for them.
|
|
823
|
+
*/
|
|
824
|
+
export declare function preservedOrderWithParked(previousOrder: string[] | undefined, ids: string[], parked: {
|
|
825
|
+
id?: string;
|
|
826
|
+
}[]): string[];
|
|
650
827
|
export declare function replaceDatasetDepsInState<T extends VisState>(state: T, { dataId, dataIdToUse }: {
|
|
651
828
|
dataId: string;
|
|
652
829
|
dataIdToUse: string;
|
|
653
830
|
}): T;
|
|
654
|
-
export
|
|
831
|
+
export declare function runGroupByUpdater(state: VisState, action: VisStateActions.RunGroupByUpdaterAction): VisState;
|
|
832
|
+
export declare function runJoinUpdater(state: VisState, action: VisStateActions.RunJoinUpdaterAction): VisState;
|
|
833
|
+
export declare function runSpatialJoinUpdater(state: VisState, action: VisStateActions.RunSpatialJoinUpdaterAction): VisState;
|
|
834
|
+
export declare function runSuitabilityUpdater(state: VisState, action: VisStateActions.RunSuitabilityUpdaterAction): VisState;
|
|
835
|
+
export { addGroupByUpdater, addJoinUpdater, addSpatialJoinUpdater, addSuitabilityUpdater, removeDatasetOpUpdater, setGroupByConfigUpdater, setJoinConfigUpdater, setSpatialJoinConfigUpdater, setSuitabilityConfigUpdater };
|
package/dist/vis-state.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const visStateReducerFactory: (initialState?: {}) => import("redux-actions").ReduxCompatibleReducer<{
|
|
2
2
|
filters: import("@kepler.gl/types").Filter[];
|
|
3
|
+
cameraTour: import("@kepler.gl/types").CameraTour | null;
|
|
4
|
+
cameraBookmarks: import("@kepler.gl/types").CameraBookmark[];
|
|
3
5
|
mapInfo: import("@kepler.gl/types").MapInfo;
|
|
4
6
|
layers: import("@kepler.gl/layers").Layer[];
|
|
5
7
|
layerData: any[];
|
|
@@ -8,6 +10,8 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
8
10
|
layerOrderToBeMerged: any[] | null;
|
|
9
11
|
effects: import("@kepler.gl/types").Effect[];
|
|
10
12
|
effectOrder: string[];
|
|
13
|
+
charts: import("@kepler.gl/types").ChartConfig[];
|
|
14
|
+
chartsToBeMerged: import("@kepler.gl/types").ChartConfig[];
|
|
11
15
|
annotations: import("@kepler.gl/types").Annotation[];
|
|
12
16
|
annotationsToBeMerged: any[];
|
|
13
17
|
selectedAnnotationId: string | null;
|
|
@@ -15,6 +19,9 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
15
19
|
filterToBeMerged: any[];
|
|
16
20
|
datasets: import("@kepler.gl/table").Datasets;
|
|
17
21
|
editingDataset: string | undefined;
|
|
22
|
+
groupBys: import("@kepler.gl/table").GroupByOp[];
|
|
23
|
+
joins: import("@kepler.gl/table").JoinOp[];
|
|
24
|
+
suitabilities: import("@kepler.gl/table").SuitabilityOp[];
|
|
18
25
|
interactionConfig: import("@kepler.gl/types").InteractionConfig;
|
|
19
26
|
interactionToBeMerged: any;
|
|
20
27
|
layerBlending: string;
|
|
@@ -30,7 +37,14 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
30
37
|
splitMapsToBeMerged: import("@kepler.gl/types").SplitMap[];
|
|
31
38
|
fileLoading: import("@kepler.gl/types").FileLoading | false;
|
|
32
39
|
fileLoadingProgress: import("@kepler.gl/types").FileLoadingProgress;
|
|
40
|
+
stagedToAdd: any[] | null;
|
|
33
41
|
loadingIndicatorValue: number;
|
|
42
|
+
loadingProgress: Record<string, number>;
|
|
43
|
+
loadingProcessing?: Record<string, boolean>;
|
|
44
|
+
pendingDatasetReplacements?: Record<string, {
|
|
45
|
+
requestId: string;
|
|
46
|
+
targetId?: string;
|
|
47
|
+
}>;
|
|
34
48
|
loaders: import("@loaders.gl/loader-utils").Loader[];
|
|
35
49
|
loadOptions: object;
|
|
36
50
|
initialState?: Partial<import("@kepler.gl/schemas").VisState>;
|
|
@@ -44,6 +58,8 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
44
58
|
};
|
|
45
59
|
}, {
|
|
46
60
|
filters: import("@kepler.gl/types").Filter[];
|
|
61
|
+
cameraTour: import("@kepler.gl/types").CameraTour | null;
|
|
62
|
+
cameraBookmarks: import("@kepler.gl/types").CameraBookmark[];
|
|
47
63
|
mapInfo: import("@kepler.gl/types").MapInfo;
|
|
48
64
|
layers: import("@kepler.gl/layers").Layer[];
|
|
49
65
|
layerData: any[];
|
|
@@ -52,6 +68,8 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
52
68
|
layerOrderToBeMerged: any[] | null;
|
|
53
69
|
effects: import("@kepler.gl/types").Effect[];
|
|
54
70
|
effectOrder: string[];
|
|
71
|
+
charts: import("@kepler.gl/types").ChartConfig[];
|
|
72
|
+
chartsToBeMerged: import("@kepler.gl/types").ChartConfig[];
|
|
55
73
|
annotations: import("@kepler.gl/types").Annotation[];
|
|
56
74
|
annotationsToBeMerged: any[];
|
|
57
75
|
selectedAnnotationId: string | null;
|
|
@@ -59,6 +77,9 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
59
77
|
filterToBeMerged: any[];
|
|
60
78
|
datasets: import("@kepler.gl/table").Datasets;
|
|
61
79
|
editingDataset: string | undefined;
|
|
80
|
+
groupBys: import("@kepler.gl/table").GroupByOp[];
|
|
81
|
+
joins: import("@kepler.gl/table").JoinOp[];
|
|
82
|
+
suitabilities: import("@kepler.gl/table").SuitabilityOp[];
|
|
62
83
|
interactionConfig: import("@kepler.gl/types").InteractionConfig;
|
|
63
84
|
interactionToBeMerged: any;
|
|
64
85
|
layerBlending: string;
|
|
@@ -74,7 +95,14 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
74
95
|
splitMapsToBeMerged: import("@kepler.gl/types").SplitMap[];
|
|
75
96
|
fileLoading: import("@kepler.gl/types").FileLoading | false;
|
|
76
97
|
fileLoadingProgress: import("@kepler.gl/types").FileLoadingProgress;
|
|
98
|
+
stagedToAdd: any[] | null;
|
|
77
99
|
loadingIndicatorValue: number;
|
|
100
|
+
loadingProgress: Record<string, number>;
|
|
101
|
+
loadingProcessing?: Record<string, boolean>;
|
|
102
|
+
pendingDatasetReplacements?: Record<string, {
|
|
103
|
+
requestId: string;
|
|
104
|
+
targetId?: string;
|
|
105
|
+
}>;
|
|
78
106
|
loaders: import("@loaders.gl/loader-utils").Loader[];
|
|
79
107
|
loadOptions: object;
|
|
80
108
|
initialState?: Partial<import("@kepler.gl/schemas").VisState>;
|
|
@@ -89,6 +117,8 @@ export declare const visStateReducerFactory: (initialState?: {}) => import("redu
|
|
|
89
117
|
}>;
|
|
90
118
|
declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
91
119
|
filters: import("@kepler.gl/types").Filter[];
|
|
120
|
+
cameraTour: import("@kepler.gl/types").CameraTour | null;
|
|
121
|
+
cameraBookmarks: import("@kepler.gl/types").CameraBookmark[];
|
|
92
122
|
mapInfo: import("@kepler.gl/types").MapInfo;
|
|
93
123
|
layers: import("@kepler.gl/layers").Layer[];
|
|
94
124
|
layerData: any[];
|
|
@@ -97,6 +127,8 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
97
127
|
layerOrderToBeMerged: any[] | null;
|
|
98
128
|
effects: import("@kepler.gl/types").Effect[];
|
|
99
129
|
effectOrder: string[];
|
|
130
|
+
charts: import("@kepler.gl/types").ChartConfig[];
|
|
131
|
+
chartsToBeMerged: import("@kepler.gl/types").ChartConfig[];
|
|
100
132
|
annotations: import("@kepler.gl/types").Annotation[];
|
|
101
133
|
annotationsToBeMerged: any[];
|
|
102
134
|
selectedAnnotationId: string | null;
|
|
@@ -104,6 +136,9 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
104
136
|
filterToBeMerged: any[];
|
|
105
137
|
datasets: import("@kepler.gl/table").Datasets;
|
|
106
138
|
editingDataset: string | undefined;
|
|
139
|
+
groupBys: import("@kepler.gl/table").GroupByOp[];
|
|
140
|
+
joins: import("@kepler.gl/table").JoinOp[];
|
|
141
|
+
suitabilities: import("@kepler.gl/table").SuitabilityOp[];
|
|
107
142
|
interactionConfig: import("@kepler.gl/types").InteractionConfig;
|
|
108
143
|
interactionToBeMerged: any;
|
|
109
144
|
layerBlending: string;
|
|
@@ -119,7 +154,14 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
119
154
|
splitMapsToBeMerged: import("@kepler.gl/types").SplitMap[];
|
|
120
155
|
fileLoading: import("@kepler.gl/types").FileLoading | false;
|
|
121
156
|
fileLoadingProgress: import("@kepler.gl/types").FileLoadingProgress;
|
|
157
|
+
stagedToAdd: any[] | null;
|
|
122
158
|
loadingIndicatorValue: number;
|
|
159
|
+
loadingProgress: Record<string, number>;
|
|
160
|
+
loadingProcessing?: Record<string, boolean>;
|
|
161
|
+
pendingDatasetReplacements?: Record<string, {
|
|
162
|
+
requestId: string;
|
|
163
|
+
targetId?: string;
|
|
164
|
+
}>;
|
|
123
165
|
loaders: import("@loaders.gl/loader-utils").Loader[];
|
|
124
166
|
loadOptions: object;
|
|
125
167
|
initialState?: Partial<import("@kepler.gl/schemas").VisState>;
|
|
@@ -133,6 +175,8 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
133
175
|
};
|
|
134
176
|
}, {
|
|
135
177
|
filters: import("@kepler.gl/types").Filter[];
|
|
178
|
+
cameraTour: import("@kepler.gl/types").CameraTour | null;
|
|
179
|
+
cameraBookmarks: import("@kepler.gl/types").CameraBookmark[];
|
|
136
180
|
mapInfo: import("@kepler.gl/types").MapInfo;
|
|
137
181
|
layers: import("@kepler.gl/layers").Layer[];
|
|
138
182
|
layerData: any[];
|
|
@@ -141,6 +185,8 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
141
185
|
layerOrderToBeMerged: any[] | null;
|
|
142
186
|
effects: import("@kepler.gl/types").Effect[];
|
|
143
187
|
effectOrder: string[];
|
|
188
|
+
charts: import("@kepler.gl/types").ChartConfig[];
|
|
189
|
+
chartsToBeMerged: import("@kepler.gl/types").ChartConfig[];
|
|
144
190
|
annotations: import("@kepler.gl/types").Annotation[];
|
|
145
191
|
annotationsToBeMerged: any[];
|
|
146
192
|
selectedAnnotationId: string | null;
|
|
@@ -148,6 +194,9 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
148
194
|
filterToBeMerged: any[];
|
|
149
195
|
datasets: import("@kepler.gl/table").Datasets;
|
|
150
196
|
editingDataset: string | undefined;
|
|
197
|
+
groupBys: import("@kepler.gl/table").GroupByOp[];
|
|
198
|
+
joins: import("@kepler.gl/table").JoinOp[];
|
|
199
|
+
suitabilities: import("@kepler.gl/table").SuitabilityOp[];
|
|
151
200
|
interactionConfig: import("@kepler.gl/types").InteractionConfig;
|
|
152
201
|
interactionToBeMerged: any;
|
|
153
202
|
layerBlending: string;
|
|
@@ -163,7 +212,14 @@ declare const _default: import("redux-actions").ReduxCompatibleReducer<{
|
|
|
163
212
|
splitMapsToBeMerged: import("@kepler.gl/types").SplitMap[];
|
|
164
213
|
fileLoading: import("@kepler.gl/types").FileLoading | false;
|
|
165
214
|
fileLoadingProgress: import("@kepler.gl/types").FileLoadingProgress;
|
|
215
|
+
stagedToAdd: any[] | null;
|
|
166
216
|
loadingIndicatorValue: number;
|
|
217
|
+
loadingProgress: Record<string, number>;
|
|
218
|
+
loadingProcessing?: Record<string, boolean>;
|
|
219
|
+
pendingDatasetReplacements?: Record<string, {
|
|
220
|
+
requestId: string;
|
|
221
|
+
targetId?: string;
|
|
222
|
+
}>;
|
|
167
223
|
loaders: import("@loaders.gl/loader-utils").Loader[];
|
|
168
224
|
loadOptions: object;
|
|
169
225
|
initialState?: Partial<import("@kepler.gl/schemas").VisState>;
|
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.21",
|
|
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,47 +19,43 @@
|
|
|
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
|
|
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 true --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts,**/*.spec.ts,**/*.spec.tsx,**/*.spec.js,**/*.spec.jsx,**/*.test.ts,**/*.test.tsx,**/*.test.js,**/*.test.jsx' && BABEL_ENV=esm babel src --out-dir dist/esm --source-maps true --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts,**/*.spec.ts,**/*.spec.tsx,**/*.spec.js,**/*.spec.jsx,**/*.test.ts,**/*.test.tsx,**/*.test.js,**/*.test.jsx'",
|
|
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.4.
|
|
31
|
+
"@kepler.gl/actions": "3.3.0-alpha.21",
|
|
32
|
+
"@kepler.gl/cloud-providers": "3.3.0-alpha.21",
|
|
33
|
+
"@kepler.gl/common-utils": "3.3.0-alpha.21",
|
|
34
|
+
"@kepler.gl/constants": "3.3.0-alpha.21",
|
|
35
|
+
"@kepler.gl/deckgl-arrow-layers": "3.3.0-alpha.21",
|
|
36
|
+
"@kepler.gl/deckgl-layers": "3.3.0-alpha.21",
|
|
37
|
+
"@kepler.gl/effects": "3.3.0-alpha.21",
|
|
38
|
+
"@kepler.gl/layers": "3.3.0-alpha.21",
|
|
39
|
+
"@kepler.gl/localization": "3.3.0-alpha.21",
|
|
40
|
+
"@kepler.gl/processors": "3.3.0-alpha.21",
|
|
41
|
+
"@kepler.gl/schemas": "3.3.0-alpha.21",
|
|
42
|
+
"@kepler.gl/table": "3.3.0-alpha.21",
|
|
43
|
+
"@kepler.gl/tasks": "3.3.0-alpha.21",
|
|
44
|
+
"@kepler.gl/types": "3.3.0-alpha.21",
|
|
45
|
+
"@kepler.gl/utils": "3.3.0-alpha.21",
|
|
46
|
+
"@loaders.gl/loader-utils": "^4.4.5",
|
|
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.23",
|
|
62
|
-
"react-palm": "^3.3.8",
|
|
63
59
|
"redux": "^5.0.0",
|
|
64
60
|
"redux-actions": "^2.2.1",
|
|
65
61
|
"reselect": "^5.0.0"
|
|
@@ -78,8 +74,17 @@
|
|
|
78
74
|
"node": ">=20"
|
|
79
75
|
},
|
|
80
76
|
"volta": {
|
|
81
|
-
"node": "
|
|
77
|
+
"node": "24.21.0",
|
|
82
78
|
"yarn": "4.4.0"
|
|
83
79
|
},
|
|
84
|
-
"packageManager": "yarn@4.4.0"
|
|
80
|
+
"packageManager": "yarn@4.4.0",
|
|
81
|
+
"module": "dist/esm/index.js",
|
|
82
|
+
"exports": {
|
|
83
|
+
".": {
|
|
84
|
+
"types": "./dist/index.d.ts",
|
|
85
|
+
"import": "./dist/esm/index.js",
|
|
86
|
+
"require": "./dist/cjs/index.js",
|
|
87
|
+
"default": "./dist/cjs/index.js"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
85
90
|
}
|