@opengeoweb/snackbar 12.2.0 → 12.3.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/snackbar",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.0",
|
|
4
4
|
"description": "GeoWeb snackbar library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/theme": "12.
|
|
12
|
-
"@opengeoweb/shared": "12.
|
|
13
|
-
"react-redux": "^
|
|
14
|
-
"@reduxjs/toolkit": "^
|
|
11
|
+
"@opengeoweb/theme": "12.3.0",
|
|
12
|
+
"@opengeoweb/shared": "12.3.0",
|
|
13
|
+
"react-redux": "^9.2.0",
|
|
14
|
+
"@reduxjs/toolkit": "^2.6.1",
|
|
15
15
|
"i18next": "^23.11.5",
|
|
16
|
-
"@mui/material": "^
|
|
16
|
+
"@mui/material": "^7.0.1",
|
|
17
17
|
"react-i18next": "^15.1.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SnackbarModuleStore } from './types';
|
|
2
2
|
export declare const hideTime = 4000;
|
|
3
|
-
export declare const snackbarListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SnackbarModuleStore, import("
|
|
3
|
+
export declare const snackbarListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SnackbarModuleStore, import("redux-thunk").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { OpenSnackbarPayload, SnackbarItem, SnackbarState, TriggerOpenSnackbarByListenerPayload } from './types';
|
|
3
|
-
export declare const snackbarAdapter: import("@reduxjs/toolkit").EntityAdapter<SnackbarItem>;
|
|
3
|
+
export declare const snackbarAdapter: import("@reduxjs/toolkit").EntityAdapter<SnackbarItem, string>;
|
|
4
4
|
export declare const initialState: SnackbarState;
|
|
5
5
|
export declare const snackbarReducer: import("redux").Reducer<SnackbarState>, snackbarActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
6
|
openSnackbar: (draft: Draft<SnackbarState>, action: PayloadAction<OpenSnackbarPayload>) => void;
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { SnackbarModuleStore, SnackbarState } from './types';
|
|
2
2
|
export declare const getSnackbarStore: (store: SnackbarModuleStore) => SnackbarState;
|
|
3
3
|
export declare const getCurrentSnackbarMessages: (state: SnackbarModuleStore) => import("./types").SnackbarItem[];
|
|
4
|
-
export declare const getFirstSnackbarMessage: ((state: SnackbarModuleStore) => import("./types").SnackbarItem | undefined) &
|
|
5
|
-
clearCache: () => void;
|
|
6
|
-
}> & {
|
|
4
|
+
export declare const getFirstSnackbarMessage: ((state: SnackbarModuleStore) => import("./types").SnackbarItem | undefined) & {
|
|
7
5
|
clearCache: () => void;
|
|
6
|
+
resultsCount: () => number;
|
|
7
|
+
resetResultsCount: () => void;
|
|
8
|
+
} & {
|
|
9
|
+
resultFunc: (resultFuncArgs_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem | undefined;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem | undefined) & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
resultsCount: () => number;
|
|
13
|
+
resetResultsCount: () => void;
|
|
14
|
+
};
|
|
15
|
+
lastResult: () => import("./types").SnackbarItem | undefined;
|
|
16
|
+
dependencies: [(state: SnackbarModuleStore) => import("./types").SnackbarItem[]];
|
|
17
|
+
recomputations: () => number;
|
|
18
|
+
resetRecomputations: () => void;
|
|
19
|
+
dependencyRecomputations: () => number;
|
|
20
|
+
resetDependencyRecomputations: () => void;
|
|
21
|
+
} & {
|
|
22
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
23
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
8
24
|
};
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store } from '@reduxjs/toolkit';
|
|
2
2
|
import { SnackbarModuleStore } from './types';
|
|
3
3
|
export declare const snackbarReducersMap: {
|
|
4
4
|
snackbar: import("redux").Reducer<import("./types").SnackbarState>;
|
|
5
5
|
};
|
|
6
|
-
export declare const snackbarMiddlewares: import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("
|
|
7
|
-
export declare const createMockStore: (mockState?: SnackbarModuleStore) =>
|
|
6
|
+
export declare const snackbarMiddlewares: import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("redux-thunk").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>[];
|
|
7
|
+
export declare const createMockStore: (mockState?: SnackbarModuleStore) => Store;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface SnackbarItem {
|
|
|
3
3
|
message: SnackbarMessage;
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
|
-
export type SnackbarState = EntityState<SnackbarItem>;
|
|
6
|
+
export type SnackbarState = EntityState<SnackbarItem, string>;
|
|
7
7
|
export interface SnackbarModuleStore {
|
|
8
8
|
snackbar?: SnackbarState;
|
|
9
9
|
}
|