@kepler.gl/reducers 3.3.0-alpha.10 → 3.3.0-alpha.11
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 +1 -1
- package/dist/cjs/layer-utils.js +1 -1
- package/dist/cjs/map-state-updaters.js +1 -1
- package/dist/cjs/map-style-updaters.js +4 -5
- package/dist/cjs/merger-handler.js +2 -2
- package/dist/cjs/middleware.js +4 -6
- package/dist/cjs/provider-state-updaters.js +15 -16
- package/dist/cjs/root.js +2 -2
- package/dist/cjs/vis-state-merger.js +43 -21
- package/dist/cjs/vis-state-selectors.js +26 -8
- package/dist/cjs/vis-state-updaters.js +214 -164
- package/dist/esm/combined-updaters.js +1 -1
- package/dist/esm/layer-utils.js +1 -1
- package/dist/esm/map-state-updaters.js +1 -1
- package/dist/esm/map-style-updaters.js +2 -2
- package/dist/esm/merger-handler.js +2 -2
- package/dist/esm/middleware.js +4 -6
- package/dist/esm/provider-state-updaters.js +4 -4
- package/dist/esm/root.js +2 -2
- package/dist/esm/vis-state-merger.js +39 -18
- package/dist/esm/vis-state-selectors.js +25 -7
- package/dist/esm/vis-state-updaters.js +210 -159
- package/dist/middleware.d.ts +2 -2
- package/dist/root.d.ts +1 -1
- package/dist/vis-state-selectors.d.ts +53 -6
- package/dist/vis-state-updaters.d.ts +4 -3
- package/package.json +16 -17
package/dist/middleware.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Middleware } from 'redux';
|
|
2
2
|
/**
|
|
3
3
|
* This method is used to enhance redux middleware and provide
|
|
4
|
-
* functionality to support
|
|
4
|
+
* functionality to support the kepler.gl task system
|
|
5
5
|
* @param middlewares current redux middlewares
|
|
6
|
-
* @returns {*[]} the original list of middlewares plus the
|
|
6
|
+
* @returns {*[]} the original list of middlewares plus the task middleware
|
|
7
7
|
*/
|
|
8
8
|
export declare function enhanceReduxMiddleware(middlewares?: Middleware[]): Middleware[];
|
package/dist/root.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function provideInitialState(initialState: any, extraReducers?: a
|
|
|
10
10
|
* @example
|
|
11
11
|
* import keplerGlReducer from '@kepler.gl/reducers';
|
|
12
12
|
* import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
|
|
13
|
-
* import {taskMiddleware} from '
|
|
13
|
+
* import {taskMiddleware} from '@kepler.gl/tasks';
|
|
14
14
|
*
|
|
15
15
|
* const initialState = {};
|
|
16
16
|
* const reducers = combineReducers({
|
|
@@ -9,8 +9,8 @@ export declare const getFileFormatNames: ((state: {
|
|
|
9
9
|
resultsCount: () => number;
|
|
10
10
|
resetResultsCount: () => void;
|
|
11
11
|
} & {
|
|
12
|
-
resultFunc: (resultFuncArgs_0: LoaderInfo[]) => string[];
|
|
13
|
-
memoizedResultFunc: ((resultFuncArgs_0: LoaderInfo[]) => string[]) & {
|
|
12
|
+
resultFunc: (resultFuncArgs_0: LoaderInfo[], resultFuncArgs_1: import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null) => string[];
|
|
13
|
+
memoizedResultFunc: ((resultFuncArgs_0: LoaderInfo[], resultFuncArgs_1: import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null) => string[]) & {
|
|
14
14
|
clearCache: () => void;
|
|
15
15
|
resultsCount: () => number;
|
|
16
16
|
resetResultsCount: () => void;
|
|
@@ -18,7 +18,7 @@ export declare const getFileFormatNames: ((state: {
|
|
|
18
18
|
lastResult: () => string[];
|
|
19
19
|
dependencies: [(state: {
|
|
20
20
|
loaders: LoaderInfo[];
|
|
21
|
-
}) => LoaderInfo[]];
|
|
21
|
+
}) => LoaderInfo[], () => import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null];
|
|
22
22
|
recomputations: () => number;
|
|
23
23
|
resetRecomputations: () => void;
|
|
24
24
|
dependencyRecomputations: () => number;
|
|
@@ -34,8 +34,8 @@ export declare const getFileExtensions: ((state: {
|
|
|
34
34
|
resultsCount: () => number;
|
|
35
35
|
resetResultsCount: () => void;
|
|
36
36
|
} & {
|
|
37
|
-
resultFunc: (resultFuncArgs_0: LoaderInfo[]) => string[];
|
|
38
|
-
memoizedResultFunc: ((resultFuncArgs_0: LoaderInfo[]) => string[]) & {
|
|
37
|
+
resultFunc: (resultFuncArgs_0: LoaderInfo[], resultFuncArgs_1: import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null) => string[];
|
|
38
|
+
memoizedResultFunc: ((resultFuncArgs_0: LoaderInfo[], resultFuncArgs_1: import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null) => string[]) & {
|
|
39
39
|
clearCache: () => void;
|
|
40
40
|
resultsCount: () => number;
|
|
41
41
|
resetResultsCount: () => void;
|
|
@@ -43,7 +43,54 @@ export declare const getFileExtensions: ((state: {
|
|
|
43
43
|
lastResult: () => string[];
|
|
44
44
|
dependencies: [(state: {
|
|
45
45
|
loaders: LoaderInfo[];
|
|
46
|
-
}) => LoaderInfo[]];
|
|
46
|
+
}) => LoaderInfo[], () => import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null];
|
|
47
|
+
recomputations: () => number;
|
|
48
|
+
resetRecomputations: () => void;
|
|
49
|
+
dependencyRecomputations: () => number;
|
|
50
|
+
resetDependencyRecomputations: () => void;
|
|
51
|
+
} & {
|
|
52
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
53
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
54
|
+
};
|
|
55
|
+
export declare const getDisplayedFileExtensions: ((state: {
|
|
56
|
+
loaders: LoaderInfo[];
|
|
57
|
+
}) => string[]) & {
|
|
58
|
+
clearCache: () => void;
|
|
59
|
+
resultsCount: () => number;
|
|
60
|
+
resetResultsCount: () => void;
|
|
61
|
+
} & {
|
|
62
|
+
resultFunc: (resultFuncArgs_0: string[]) => string[];
|
|
63
|
+
memoizedResultFunc: ((resultFuncArgs_0: string[]) => string[]) & {
|
|
64
|
+
clearCache: () => void;
|
|
65
|
+
resultsCount: () => number;
|
|
66
|
+
resetResultsCount: () => void;
|
|
67
|
+
};
|
|
68
|
+
lastResult: () => string[];
|
|
69
|
+
dependencies: [((state: {
|
|
70
|
+
loaders: LoaderInfo[];
|
|
71
|
+
}) => string[]) & {
|
|
72
|
+
clearCache: () => void;
|
|
73
|
+
resultsCount: () => number;
|
|
74
|
+
resetResultsCount: () => void;
|
|
75
|
+
} & {
|
|
76
|
+
resultFunc: (resultFuncArgs_0: LoaderInfo[], resultFuncArgs_1: import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null) => string[];
|
|
77
|
+
memoizedResultFunc: ((resultFuncArgs_0: LoaderInfo[], resultFuncArgs_1: import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null) => string[]) & {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
resultsCount: () => number;
|
|
80
|
+
resetResultsCount: () => void;
|
|
81
|
+
};
|
|
82
|
+
lastResult: () => string[];
|
|
83
|
+
dependencies: [(state: {
|
|
84
|
+
loaders: LoaderInfo[];
|
|
85
|
+
}) => LoaderInfo[], () => import("@kepler.gl/utils").KeplerAcceptedFileFormat[] | null];
|
|
86
|
+
recomputations: () => number;
|
|
87
|
+
resetRecomputations: () => void;
|
|
88
|
+
dependencyRecomputations: () => number;
|
|
89
|
+
resetDependencyRecomputations: () => void;
|
|
90
|
+
} & {
|
|
91
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
92
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
93
|
+
}];
|
|
47
94
|
recomputations: () => number;
|
|
48
95
|
resetRecomputations: () => void;
|
|
49
96
|
dependencyRecomputations: () => number;
|
|
@@ -1,3 +1,4 @@
|
|
|
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';
|
|
@@ -15,8 +16,8 @@ export declare const DEFAULT_EDITOR: Editor;
|
|
|
15
16
|
* @public
|
|
16
17
|
*/
|
|
17
18
|
export declare const INITIAL_VIS_STATE: VisState;
|
|
18
|
-
export declare const ACTION_TASK_FIT_BOUNDS:
|
|
19
|
-
export declare const ACTION_TASK_ADD_NOTIFICATION:
|
|
19
|
+
export declare const ACTION_TASK_FIT_BOUNDS: import("@kepler.gl/tasks-core").TaskFactory;
|
|
20
|
+
export declare const ACTION_TASK_ADD_NOTIFICATION: import("@kepler.gl/tasks-core").TaskFactory;
|
|
20
21
|
type UpdateStateWithLayerAndDataType = {
|
|
21
22
|
layers: Layer[];
|
|
22
23
|
layerData: any[];
|
|
@@ -554,7 +555,7 @@ export declare function loadFileStepSuccessUpdater(state: VisState, action: VisS
|
|
|
554
555
|
* @public
|
|
555
556
|
*/
|
|
556
557
|
export declare function loadNextFileUpdater(state: VisState): VisState;
|
|
557
|
-
export declare function makeLoadFileTask(file: any, fileCache: any, loaders?: Loader[], loadOptions?: {}):
|
|
558
|
+
export declare function makeLoadFileTask(file: any, fileCache: any, loaders?: Loader[], loadOptions?: {}): TaskDescriptor;
|
|
558
559
|
/**
|
|
559
560
|
*
|
|
560
561
|
* @memberof visStateUpdaters
|
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.3.0-alpha.
|
|
4
|
+
"version": "3.3.0-alpha.11",
|
|
5
5
|
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@kepler.gl/actions": "3.3.0-alpha.
|
|
32
|
-
"@kepler.gl/cloud-providers": "3.3.0-alpha.
|
|
33
|
-
"@kepler.gl/common-utils": "3.3.0-alpha.
|
|
34
|
-
"@kepler.gl/constants": "3.3.0-alpha.
|
|
35
|
-
"@kepler.gl/deckgl-arrow-layers": "3.3.0-alpha.
|
|
36
|
-
"@kepler.gl/deckgl-layers": "3.3.0-alpha.
|
|
37
|
-
"@kepler.gl/effects": "3.3.0-alpha.
|
|
38
|
-
"@kepler.gl/layers": "3.3.0-alpha.
|
|
39
|
-
"@kepler.gl/localization": "3.3.0-alpha.
|
|
40
|
-
"@kepler.gl/processors": "3.3.0-alpha.
|
|
41
|
-
"@kepler.gl/schemas": "3.3.0-alpha.
|
|
42
|
-
"@kepler.gl/table": "3.3.0-alpha.
|
|
43
|
-
"@kepler.gl/tasks": "3.3.0-alpha.
|
|
44
|
-
"@kepler.gl/types": "3.3.0-alpha.
|
|
45
|
-
"@kepler.gl/utils": "3.3.0-alpha.
|
|
31
|
+
"@kepler.gl/actions": "3.3.0-alpha.11",
|
|
32
|
+
"@kepler.gl/cloud-providers": "3.3.0-alpha.11",
|
|
33
|
+
"@kepler.gl/common-utils": "3.3.0-alpha.11",
|
|
34
|
+
"@kepler.gl/constants": "3.3.0-alpha.11",
|
|
35
|
+
"@kepler.gl/deckgl-arrow-layers": "3.3.0-alpha.11",
|
|
36
|
+
"@kepler.gl/deckgl-layers": "3.3.0-alpha.11",
|
|
37
|
+
"@kepler.gl/effects": "3.3.0-alpha.11",
|
|
38
|
+
"@kepler.gl/layers": "3.3.0-alpha.11",
|
|
39
|
+
"@kepler.gl/localization": "3.3.0-alpha.11",
|
|
40
|
+
"@kepler.gl/processors": "3.3.0-alpha.11",
|
|
41
|
+
"@kepler.gl/schemas": "3.3.0-alpha.11",
|
|
42
|
+
"@kepler.gl/table": "3.3.0-alpha.11",
|
|
43
|
+
"@kepler.gl/tasks": "3.3.0-alpha.11",
|
|
44
|
+
"@kepler.gl/types": "3.3.0-alpha.11",
|
|
45
|
+
"@kepler.gl/utils": "3.3.0-alpha.11",
|
|
46
46
|
"@loaders.gl/loader-utils": "^4.4.1",
|
|
47
47
|
"@mapbox/geo-viewport": "^0.4.1",
|
|
48
48
|
"@math.gl/web-mercator": "^4.1.0",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"deepmerge": "^4.2.2",
|
|
57
57
|
"es-toolkit": "^1.39.10",
|
|
58
58
|
"global": "^4.3.0",
|
|
59
|
-
"react-palm": "^3.3.8",
|
|
60
59
|
"redux": "^5.0.0",
|
|
61
60
|
"redux-actions": "^2.2.1",
|
|
62
61
|
"reselect": "^5.0.0"
|