@open-kingdom/shared-frontend-data-access-notifications 0.0.2-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/README.md +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1170 -0
- package/dist/lib/notification.actions.d.ts +19 -0
- package/dist/lib/notification.actions.d.ts.map +1 -0
- package/dist/lib/notification.selectors.d.ts +348 -0
- package/dist/lib/notification.selectors.d.ts.map +1 -0
- package/dist/lib/notification.slice.d.ts +17 -0
- package/dist/lib/notification.slice.d.ts.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { addNotification, dismissNotification, removeNotification, clearNotifications, updateConfig } from './notification.slice';
|
|
2
|
+
export { addNotification, dismissNotification, removeNotification, clearNotifications, updateConfig, };
|
|
3
|
+
export declare const showSuccessNotification: (message: string) => {
|
|
4
|
+
payload: Omit<import('@open-kingdom/shared-poly-util-types').NotificationEntry, "id" | "timestamp">;
|
|
5
|
+
type: "notifications/addNotification";
|
|
6
|
+
};
|
|
7
|
+
export declare const showWarningNotification: (message: string) => {
|
|
8
|
+
payload: Omit<import('@open-kingdom/shared-poly-util-types').NotificationEntry, "id" | "timestamp">;
|
|
9
|
+
type: "notifications/addNotification";
|
|
10
|
+
};
|
|
11
|
+
export declare const showErrorNotification: (message: string) => {
|
|
12
|
+
payload: Omit<import('@open-kingdom/shared-poly-util-types').NotificationEntry, "id" | "timestamp">;
|
|
13
|
+
type: "notifications/addNotification";
|
|
14
|
+
};
|
|
15
|
+
export declare const showNotification: (message: string, type: "success" | "warning" | "error") => {
|
|
16
|
+
payload: Omit<import('@open-kingdom/shared-poly-util-types').NotificationEntry, "id" | "timestamp">;
|
|
17
|
+
type: "notifications/addNotification";
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=notification.actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.actions.d.ts","sourceRoot":"","sources":["../../src/lib/notification.actions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,GACb,CAAC;AAGF,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM;;;CACR,CAAC;AAEhD,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM;;;CACR,CAAC;AAEhD,eAAO,MAAM,qBAAqB,GAAI,SAAS,MAAM;;;CACR,CAAC;AAG9C,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO;;;CACA,CAAC"}
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { NotificationState, RootStateContaining } from '@open-kingdom/shared-poly-util-types';
|
|
2
|
+
export declare const NotificationKey = "notifications";
|
|
3
|
+
export type RootStateContainingNotifications = RootStateContaining<typeof NotificationKey, NotificationState>;
|
|
4
|
+
export declare const selectNotificationsState: (state: RootStateContainingNotifications) => NotificationState;
|
|
5
|
+
export declare const selectAllNotifications: ((state: {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
} & {
|
|
8
|
+
notifications: NotificationState;
|
|
9
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
10
|
+
clearCache: () => void;
|
|
11
|
+
resultsCount: () => number;
|
|
12
|
+
resetResultsCount: () => void;
|
|
13
|
+
} & {
|
|
14
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
15
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
16
|
+
clearCache: () => void;
|
|
17
|
+
resultsCount: () => number;
|
|
18
|
+
resetResultsCount: () => void;
|
|
19
|
+
};
|
|
20
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
21
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
22
|
+
recomputations: () => number;
|
|
23
|
+
resetRecomputations: () => void;
|
|
24
|
+
dependencyRecomputations: () => number;
|
|
25
|
+
resetDependencyRecomputations: () => void;
|
|
26
|
+
} & {
|
|
27
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
28
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
29
|
+
};
|
|
30
|
+
export declare const selectActiveNotifications: ((state: {
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
} & {
|
|
33
|
+
notifications: NotificationState;
|
|
34
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
resultsCount: () => number;
|
|
37
|
+
resetResultsCount: () => void;
|
|
38
|
+
} & {
|
|
39
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
40
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
resultsCount: () => number;
|
|
43
|
+
resetResultsCount: () => void;
|
|
44
|
+
};
|
|
45
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
46
|
+
dependencies: [((state: {
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
} & {
|
|
49
|
+
notifications: NotificationState;
|
|
50
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
resultsCount: () => number;
|
|
53
|
+
resetResultsCount: () => void;
|
|
54
|
+
} & {
|
|
55
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
56
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
57
|
+
clearCache: () => void;
|
|
58
|
+
resultsCount: () => number;
|
|
59
|
+
resetResultsCount: () => void;
|
|
60
|
+
};
|
|
61
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
62
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
63
|
+
recomputations: () => number;
|
|
64
|
+
resetRecomputations: () => void;
|
|
65
|
+
dependencyRecomputations: () => number;
|
|
66
|
+
resetDependencyRecomputations: () => void;
|
|
67
|
+
} & {
|
|
68
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
69
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
70
|
+
}];
|
|
71
|
+
recomputations: () => number;
|
|
72
|
+
resetRecomputations: () => void;
|
|
73
|
+
dependencyRecomputations: () => number;
|
|
74
|
+
resetDependencyRecomputations: () => void;
|
|
75
|
+
} & {
|
|
76
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
77
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
78
|
+
};
|
|
79
|
+
export declare const selectNotificationsByType: (type: "success" | "warning" | "error") => ((state: {
|
|
80
|
+
[key: string]: unknown;
|
|
81
|
+
} & {
|
|
82
|
+
notifications: NotificationState;
|
|
83
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
84
|
+
clearCache: () => void;
|
|
85
|
+
resultsCount: () => number;
|
|
86
|
+
resetResultsCount: () => void;
|
|
87
|
+
} & {
|
|
88
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
89
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
90
|
+
clearCache: () => void;
|
|
91
|
+
resultsCount: () => number;
|
|
92
|
+
resetResultsCount: () => void;
|
|
93
|
+
};
|
|
94
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
95
|
+
dependencies: [((state: {
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
} & {
|
|
98
|
+
notifications: NotificationState;
|
|
99
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
100
|
+
clearCache: () => void;
|
|
101
|
+
resultsCount: () => number;
|
|
102
|
+
resetResultsCount: () => void;
|
|
103
|
+
} & {
|
|
104
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
105
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
106
|
+
clearCache: () => void;
|
|
107
|
+
resultsCount: () => number;
|
|
108
|
+
resetResultsCount: () => void;
|
|
109
|
+
};
|
|
110
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
111
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
112
|
+
recomputations: () => number;
|
|
113
|
+
resetRecomputations: () => void;
|
|
114
|
+
dependencyRecomputations: () => number;
|
|
115
|
+
resetDependencyRecomputations: () => void;
|
|
116
|
+
} & {
|
|
117
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
118
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
119
|
+
}];
|
|
120
|
+
recomputations: () => number;
|
|
121
|
+
resetRecomputations: () => void;
|
|
122
|
+
dependencyRecomputations: () => number;
|
|
123
|
+
resetDependencyRecomputations: () => void;
|
|
124
|
+
} & {
|
|
125
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
126
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
127
|
+
};
|
|
128
|
+
export declare const selectActiveNotificationsByType: (type: "success" | "warning" | "error") => ((state: {
|
|
129
|
+
[key: string]: unknown;
|
|
130
|
+
} & {
|
|
131
|
+
notifications: NotificationState;
|
|
132
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
133
|
+
clearCache: () => void;
|
|
134
|
+
resultsCount: () => number;
|
|
135
|
+
resetResultsCount: () => void;
|
|
136
|
+
} & {
|
|
137
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
138
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
139
|
+
clearCache: () => void;
|
|
140
|
+
resultsCount: () => number;
|
|
141
|
+
resetResultsCount: () => void;
|
|
142
|
+
};
|
|
143
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
144
|
+
dependencies: [((state: {
|
|
145
|
+
[key: string]: unknown;
|
|
146
|
+
} & {
|
|
147
|
+
notifications: NotificationState;
|
|
148
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
149
|
+
clearCache: () => void;
|
|
150
|
+
resultsCount: () => number;
|
|
151
|
+
resetResultsCount: () => void;
|
|
152
|
+
} & {
|
|
153
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
154
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
155
|
+
clearCache: () => void;
|
|
156
|
+
resultsCount: () => number;
|
|
157
|
+
resetResultsCount: () => void;
|
|
158
|
+
};
|
|
159
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
160
|
+
dependencies: [((state: {
|
|
161
|
+
[key: string]: unknown;
|
|
162
|
+
} & {
|
|
163
|
+
notifications: NotificationState;
|
|
164
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
165
|
+
clearCache: () => void;
|
|
166
|
+
resultsCount: () => number;
|
|
167
|
+
resetResultsCount: () => void;
|
|
168
|
+
} & {
|
|
169
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
170
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
171
|
+
clearCache: () => void;
|
|
172
|
+
resultsCount: () => number;
|
|
173
|
+
resetResultsCount: () => void;
|
|
174
|
+
};
|
|
175
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
176
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
177
|
+
recomputations: () => number;
|
|
178
|
+
resetRecomputations: () => void;
|
|
179
|
+
dependencyRecomputations: () => number;
|
|
180
|
+
resetDependencyRecomputations: () => void;
|
|
181
|
+
} & {
|
|
182
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
183
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
184
|
+
}];
|
|
185
|
+
recomputations: () => number;
|
|
186
|
+
resetRecomputations: () => void;
|
|
187
|
+
dependencyRecomputations: () => number;
|
|
188
|
+
resetDependencyRecomputations: () => void;
|
|
189
|
+
} & {
|
|
190
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
191
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
192
|
+
}];
|
|
193
|
+
recomputations: () => number;
|
|
194
|
+
resetRecomputations: () => void;
|
|
195
|
+
dependencyRecomputations: () => number;
|
|
196
|
+
resetDependencyRecomputations: () => void;
|
|
197
|
+
} & {
|
|
198
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
199
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
200
|
+
};
|
|
201
|
+
export declare const selectNotificationCount: ((state: {
|
|
202
|
+
[key: string]: unknown;
|
|
203
|
+
} & {
|
|
204
|
+
notifications: NotificationState;
|
|
205
|
+
}) => number) & {
|
|
206
|
+
clearCache: () => void;
|
|
207
|
+
resultsCount: () => number;
|
|
208
|
+
resetResultsCount: () => void;
|
|
209
|
+
} & {
|
|
210
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => number;
|
|
211
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => number) & {
|
|
212
|
+
clearCache: () => void;
|
|
213
|
+
resultsCount: () => number;
|
|
214
|
+
resetResultsCount: () => void;
|
|
215
|
+
};
|
|
216
|
+
lastResult: () => number;
|
|
217
|
+
dependencies: [((state: {
|
|
218
|
+
[key: string]: unknown;
|
|
219
|
+
} & {
|
|
220
|
+
notifications: NotificationState;
|
|
221
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
222
|
+
clearCache: () => void;
|
|
223
|
+
resultsCount: () => number;
|
|
224
|
+
resetResultsCount: () => void;
|
|
225
|
+
} & {
|
|
226
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
227
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
228
|
+
clearCache: () => void;
|
|
229
|
+
resultsCount: () => number;
|
|
230
|
+
resetResultsCount: () => void;
|
|
231
|
+
};
|
|
232
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
233
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
234
|
+
recomputations: () => number;
|
|
235
|
+
resetRecomputations: () => void;
|
|
236
|
+
dependencyRecomputations: () => number;
|
|
237
|
+
resetDependencyRecomputations: () => void;
|
|
238
|
+
} & {
|
|
239
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
240
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
241
|
+
}];
|
|
242
|
+
recomputations: () => number;
|
|
243
|
+
resetRecomputations: () => void;
|
|
244
|
+
dependencyRecomputations: () => number;
|
|
245
|
+
resetDependencyRecomputations: () => void;
|
|
246
|
+
} & {
|
|
247
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
248
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
249
|
+
};
|
|
250
|
+
export declare const selectActiveNotificationCount: ((state: {
|
|
251
|
+
[key: string]: unknown;
|
|
252
|
+
} & {
|
|
253
|
+
notifications: NotificationState;
|
|
254
|
+
}) => number) & {
|
|
255
|
+
clearCache: () => void;
|
|
256
|
+
resultsCount: () => number;
|
|
257
|
+
resetResultsCount: () => void;
|
|
258
|
+
} & {
|
|
259
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => number;
|
|
260
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => number) & {
|
|
261
|
+
clearCache: () => void;
|
|
262
|
+
resultsCount: () => number;
|
|
263
|
+
resetResultsCount: () => void;
|
|
264
|
+
};
|
|
265
|
+
lastResult: () => number;
|
|
266
|
+
dependencies: [((state: {
|
|
267
|
+
[key: string]: unknown;
|
|
268
|
+
} & {
|
|
269
|
+
notifications: NotificationState;
|
|
270
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
271
|
+
clearCache: () => void;
|
|
272
|
+
resultsCount: () => number;
|
|
273
|
+
resetResultsCount: () => void;
|
|
274
|
+
} & {
|
|
275
|
+
resultFunc: (resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
276
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
277
|
+
clearCache: () => void;
|
|
278
|
+
resultsCount: () => number;
|
|
279
|
+
resetResultsCount: () => void;
|
|
280
|
+
};
|
|
281
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
282
|
+
dependencies: [((state: {
|
|
283
|
+
[key: string]: unknown;
|
|
284
|
+
} & {
|
|
285
|
+
notifications: NotificationState;
|
|
286
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
287
|
+
clearCache: () => void;
|
|
288
|
+
resultsCount: () => number;
|
|
289
|
+
resetResultsCount: () => void;
|
|
290
|
+
} & {
|
|
291
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
292
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationEntry[]) & {
|
|
293
|
+
clearCache: () => void;
|
|
294
|
+
resultsCount: () => number;
|
|
295
|
+
resetResultsCount: () => void;
|
|
296
|
+
};
|
|
297
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationEntry[];
|
|
298
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
299
|
+
recomputations: () => number;
|
|
300
|
+
resetRecomputations: () => void;
|
|
301
|
+
dependencyRecomputations: () => number;
|
|
302
|
+
resetDependencyRecomputations: () => void;
|
|
303
|
+
} & {
|
|
304
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
305
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
306
|
+
}];
|
|
307
|
+
recomputations: () => number;
|
|
308
|
+
resetRecomputations: () => void;
|
|
309
|
+
dependencyRecomputations: () => number;
|
|
310
|
+
resetDependencyRecomputations: () => void;
|
|
311
|
+
} & {
|
|
312
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
313
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
314
|
+
}];
|
|
315
|
+
recomputations: () => number;
|
|
316
|
+
resetRecomputations: () => void;
|
|
317
|
+
dependencyRecomputations: () => number;
|
|
318
|
+
resetDependencyRecomputations: () => void;
|
|
319
|
+
} & {
|
|
320
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
321
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
322
|
+
};
|
|
323
|
+
export declare const selectNotificationConfig: ((state: {
|
|
324
|
+
[key: string]: unknown;
|
|
325
|
+
} & {
|
|
326
|
+
notifications: NotificationState;
|
|
327
|
+
}) => import('@open-kingdom/shared-poly-util-types').NotificationConfig) & {
|
|
328
|
+
clearCache: () => void;
|
|
329
|
+
resultsCount: () => number;
|
|
330
|
+
resetResultsCount: () => void;
|
|
331
|
+
} & {
|
|
332
|
+
resultFunc: (resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationConfig;
|
|
333
|
+
memoizedResultFunc: ((resultFuncArgs_0: NotificationState) => import('@open-kingdom/shared-poly-util-types').NotificationConfig) & {
|
|
334
|
+
clearCache: () => void;
|
|
335
|
+
resultsCount: () => number;
|
|
336
|
+
resetResultsCount: () => void;
|
|
337
|
+
};
|
|
338
|
+
lastResult: () => import('@open-kingdom/shared-poly-util-types').NotificationConfig;
|
|
339
|
+
dependencies: [(state: RootStateContainingNotifications) => NotificationState];
|
|
340
|
+
recomputations: () => number;
|
|
341
|
+
resetRecomputations: () => void;
|
|
342
|
+
dependencyRecomputations: () => number;
|
|
343
|
+
resetDependencyRecomputations: () => void;
|
|
344
|
+
} & {
|
|
345
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
346
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
347
|
+
};
|
|
348
|
+
//# sourceMappingURL=notification.selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.selectors.d.ts","sourceRoot":"","sources":["../../src/lib/notification.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,MAAM,MAAM,gCAAgC,GAAG,mBAAmB,CAChE,OAAO,eAAe,EACtB,iBAAiB,CAClB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,OAAO,gCAAgC,sBACd,CAAC;AAG5B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;2BAJ1B,gCAAgC;;;;;;;;CAOxC,CAAC;AAGF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAV7B,gCAAgC;;;;;;;;;;;;;;;;CAaxC,CAAC;AAGF,eAAO,MAAM,yBAAyB,GACpC,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAjB9B,gCAAgC;;;;;;;;;;;;;;;;CAqBtC,CAAC;AAGJ,eAAO,MAAM,+BAA+B,GAC1C,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAzB9B,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;CA6BtC,CAAC;AAGJ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAhC3B,gCAAgC;;;;;;;;;;;;;;;;CAmCxC,CAAC;AAGF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAtCjC,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;CAyCxC,CAAC;AAGF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;2BA5C5B,gCAAgC;;;;;;;;CA+CxC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { NotificationState, NotificationEntry, NotificationConfig } from '@open-kingdom/shared-poly-util-types';
|
|
3
|
+
export declare const addNotificationReducer: (state: NotificationState, action: PayloadAction<Omit<NotificationEntry, "id" | "timestamp">>) => void;
|
|
4
|
+
export declare const dismissNotificationReducer: (state: NotificationState, action: PayloadAction<string>) => void;
|
|
5
|
+
export declare const removeNotificationReducer: (state: NotificationState, action: PayloadAction<string>) => void;
|
|
6
|
+
export declare const clearNotificationsReducer: (state: NotificationState) => void;
|
|
7
|
+
export declare const updateConfigReducer: (state: NotificationState, action: PayloadAction<Partial<NotificationConfig>>) => void;
|
|
8
|
+
export declare const notificationSlice: import('@reduxjs/toolkit').Slice<NotificationState, {
|
|
9
|
+
addNotification: (state: NotificationState, action: PayloadAction<Omit<NotificationEntry, "id" | "timestamp">>) => void;
|
|
10
|
+
dismissNotification: (state: NotificationState, action: PayloadAction<string>) => void;
|
|
11
|
+
removeNotification: (state: NotificationState, action: PayloadAction<string>) => void;
|
|
12
|
+
clearNotifications: (state: NotificationState) => void;
|
|
13
|
+
updateConfig: (state: NotificationState, action: PayloadAction<Partial<NotificationConfig>>) => void;
|
|
14
|
+
}, "notifications", "notifications", import('@reduxjs/toolkit').SliceSelectors<NotificationState>>;
|
|
15
|
+
export declare const addNotification: import('@reduxjs/toolkit').ActionCreatorWithPayload<Omit<NotificationEntry, "id" | "timestamp">, "notifications/addNotification">, dismissNotification: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "notifications/dismissNotification">, removeNotification: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "notifications/removeNotification">, clearNotifications: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"notifications/clearNotifications">, updateConfig: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<NotificationConfig>, "notifications/updateConfig">;
|
|
16
|
+
export declare const notificationReducer: import('redux').Reducer<NotificationState>;
|
|
17
|
+
//# sourceMappingURL=notification.slice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.slice.d.ts","sourceRoot":"","sources":["../../src/lib/notification.slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAa9C,eAAO,MAAM,sBAAsB,GACjC,OAAO,iBAAiB,EACxB,QAAQ,aAAa,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,WAAW,CAAC,CAAC,SAsBnE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,OAAO,iBAAiB,EACxB,QAAQ,aAAa,CAAC,MAAM,CAAC,SAM9B,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,OAAO,iBAAiB,EACxB,QAAQ,aAAa,CAAC,MAAM,CAAC,SAK9B,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,OAAO,iBAAiB,SAEjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,iBAAiB,EACxB,QAAQ,aAAa,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,SAGnD,CAAC;AAEF,eAAO,MAAM,iBAAiB;6BAvDrB,iBAAiB,UAChB,aAAa,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,WAAW,CAAC,CAAC;iCAyB3D,iBAAiB,UAChB,aAAa,CAAC,MAAM,CAAC;gCAStB,iBAAiB,UAChB,aAAa,CAAC,MAAM,CAAC;gCAOkB,iBAAiB;0BAKzD,iBAAiB,UAChB,aAAa,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;kGAelD,CAAC;AAEH,eAAO,MACL,eAAe,qIACf,mBAAmB,oGACnB,kBAAkB,mGAClB,kBAAkB,8FAClB,YAAY,gHACe,CAAC;AAE9B,eAAO,MAAM,mBAAmB,4CAA4B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@open-kingdom/shared-frontend-data-access-notifications",
|
|
3
|
+
"version": "0.0.2-0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"development": "./src/index.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"!**/*.tsbuildinfo"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"nx": {
|
|
26
|
+
"name": "@open-kingdom/shared-frontend-data-access-notifications",
|
|
27
|
+
"tags": [
|
|
28
|
+
"type:data-access",
|
|
29
|
+
"scope:shared",
|
|
30
|
+
"environment:frontend"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|