@commercetools-frontend/react-notifications 27.9.0 → 27.9.2
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/commercetools-frontend-react-notifications.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-react-notifications.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-react-notifications.esm.js +1 -1
- package/dist/declarations/src/components/notifications-list/selectors.d.ts +57 -9
- package/package.json +18 -18
|
@@ -59,7 +59,7 @@ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanc
|
|
|
59
59
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
60
60
|
|
|
61
61
|
// NOTE: This string will be replaced on build time with the package version.
|
|
62
|
-
var version = "27.9.
|
|
62
|
+
var version = "27.9.2";
|
|
63
63
|
|
|
64
64
|
const Context = /*#__PURE__*/react.createContext(() => null);
|
|
65
65
|
function NotificationProviderForCustomComponent(props) {
|
|
@@ -59,7 +59,7 @@ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanc
|
|
|
59
59
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
60
60
|
|
|
61
61
|
// NOTE: This string will be replaced on build time with the package version.
|
|
62
|
-
var version = "27.9.
|
|
62
|
+
var version = "27.9.2";
|
|
63
63
|
|
|
64
64
|
const Context = /*#__PURE__*/react.createContext(() => null);
|
|
65
65
|
function NotificationProviderForCustomComponent(props) {
|
|
@@ -34,7 +34,7 @@ import isNumber from 'lodash/isNumber';
|
|
|
34
34
|
import { useShowNotification } from '@commercetools-frontend/actions-global';
|
|
35
35
|
|
|
36
36
|
// NOTE: This string will be replaced on build time with the package version.
|
|
37
|
-
var version = "27.9.
|
|
37
|
+
var version = "27.9.2";
|
|
38
38
|
|
|
39
39
|
const Context = /*#__PURE__*/createContext(() => null);
|
|
40
40
|
function NotificationProviderForCustomComponent(props) {
|
|
@@ -1,18 +1,66 @@
|
|
|
1
1
|
import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
|
|
2
2
|
import type { TAppState } from "./types.js";
|
|
3
3
|
export declare const selectNotifications: (state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
|
|
4
|
-
export declare const selectGlobalNotifications: ((state: TAppState) => TAppNotificationGlobal[]) &
|
|
5
|
-
clearCache: () => void;
|
|
6
|
-
}> & {
|
|
4
|
+
export declare const selectGlobalNotifications: ((state: TAppState) => TAppNotificationGlobal[]) & {
|
|
7
5
|
clearCache: () => void;
|
|
6
|
+
resultsCount: () => number;
|
|
7
|
+
resetResultsCount: () => void;
|
|
8
|
+
} & {
|
|
9
|
+
resultFunc: (resultFuncArgs_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationGlobal[];
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationGlobal[]) & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
resultsCount: () => number;
|
|
13
|
+
resetResultsCount: () => void;
|
|
14
|
+
};
|
|
15
|
+
lastResult: () => TAppNotificationGlobal[];
|
|
16
|
+
dependencies: [(state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]];
|
|
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
|
};
|
|
9
|
-
export declare const selectPageNotifications: ((state: TAppState) => TAppNotificationPage[]) &
|
|
10
|
-
clearCache: () => void;
|
|
11
|
-
}> & {
|
|
25
|
+
export declare const selectPageNotifications: ((state: TAppState) => TAppNotificationPage[]) & {
|
|
12
26
|
clearCache: () => void;
|
|
27
|
+
resultsCount: () => number;
|
|
28
|
+
resetResultsCount: () => void;
|
|
29
|
+
} & {
|
|
30
|
+
resultFunc: (resultFuncArgs_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationPage[];
|
|
31
|
+
memoizedResultFunc: ((resultFuncArgs_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationPage[]) & {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
resultsCount: () => number;
|
|
34
|
+
resetResultsCount: () => void;
|
|
35
|
+
};
|
|
36
|
+
lastResult: () => TAppNotificationPage[];
|
|
37
|
+
dependencies: [(state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]];
|
|
38
|
+
recomputations: () => number;
|
|
39
|
+
resetRecomputations: () => void;
|
|
40
|
+
dependencyRecomputations: () => number;
|
|
41
|
+
resetDependencyRecomputations: () => void;
|
|
42
|
+
} & {
|
|
43
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
44
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
13
45
|
};
|
|
14
|
-
export declare const selectSideNotifications: ((state: TAppState) => TAppNotificationSide[]) &
|
|
15
|
-
clearCache: () => void;
|
|
16
|
-
}> & {
|
|
46
|
+
export declare const selectSideNotifications: ((state: TAppState) => TAppNotificationSide[]) & {
|
|
17
47
|
clearCache: () => void;
|
|
48
|
+
resultsCount: () => number;
|
|
49
|
+
resetResultsCount: () => void;
|
|
50
|
+
} & {
|
|
51
|
+
resultFunc: (resultFuncArgs_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationSide[];
|
|
52
|
+
memoizedResultFunc: ((resultFuncArgs_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationSide[]) & {
|
|
53
|
+
clearCache: () => void;
|
|
54
|
+
resultsCount: () => number;
|
|
55
|
+
resetResultsCount: () => void;
|
|
56
|
+
};
|
|
57
|
+
lastResult: () => TAppNotificationSide[];
|
|
58
|
+
dependencies: [(state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]];
|
|
59
|
+
recomputations: () => number;
|
|
60
|
+
resetRecomputations: () => void;
|
|
61
|
+
dependencyRecomputations: () => number;
|
|
62
|
+
resetDependencyRecomputations: () => void;
|
|
63
|
+
} & {
|
|
64
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
65
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
18
66
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/react-notifications",
|
|
3
|
-
"version": "27.9.
|
|
3
|
+
"version": "27.9.2",
|
|
4
4
|
"description": "React bindings for @commercetools-frontend/notifications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -30,42 +30,42 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.22.15",
|
|
32
32
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
33
|
-
"@commercetools-uikit/design-system": "^20.
|
|
34
|
-
"@commercetools-uikit/hooks": "^20.
|
|
35
|
-
"@commercetools-uikit/icon-button": "^20.
|
|
36
|
-
"@commercetools-uikit/icons": "^20.
|
|
37
|
-
"@commercetools-uikit/secondary-icon-button": "^20.
|
|
38
|
-
"@commercetools-uikit/spacings": "^20.
|
|
39
|
-
"@commercetools-uikit/utils": "^20.
|
|
33
|
+
"@commercetools-uikit/design-system": "^20.6.7",
|
|
34
|
+
"@commercetools-uikit/hooks": "^20.6.7",
|
|
35
|
+
"@commercetools-uikit/icon-button": "^20.6.7",
|
|
36
|
+
"@commercetools-uikit/icons": "^20.6.7",
|
|
37
|
+
"@commercetools-uikit/secondary-icon-button": "^20.6.7",
|
|
38
|
+
"@commercetools-uikit/spacings": "^20.6.7",
|
|
39
|
+
"@commercetools-uikit/utils": "^20.6.7",
|
|
40
40
|
"@emotion/react": "^11.14.0",
|
|
41
41
|
"@emotion/styled": "^11.14.0",
|
|
42
42
|
"@types/history": "^4.7.11",
|
|
43
43
|
"@types/lodash": "^4.14.198",
|
|
44
44
|
"@types/prop-types": "^15.7.5",
|
|
45
45
|
"@types/react": "^19.0.3",
|
|
46
|
-
"@types/react-dom": "^19.
|
|
46
|
+
"@types/react-dom": "^19.2.4",
|
|
47
47
|
"@types/react-router": "^5.1.20",
|
|
48
48
|
"@types/react-router-dom": "^5.3.3",
|
|
49
49
|
"lodash": "4.18.1",
|
|
50
50
|
"moment": "^2.29.4",
|
|
51
51
|
"moment-timezone": "^0.6.0",
|
|
52
52
|
"prop-types": "15.8.1",
|
|
53
|
-
"reselect": "
|
|
54
|
-
"@commercetools-frontend/actions-global": "^27.9.
|
|
55
|
-
"@commercetools-frontend/application-components": "^27.9.
|
|
56
|
-
"@commercetools-frontend/constants": "^27.9.
|
|
57
|
-
"@commercetools-frontend/notifications": "^27.9.
|
|
58
|
-
"@commercetools-frontend/sentry": "^27.9.
|
|
53
|
+
"reselect": "5.2.0",
|
|
54
|
+
"@commercetools-frontend/actions-global": "^27.9.2",
|
|
55
|
+
"@commercetools-frontend/application-components": "^27.9.2",
|
|
56
|
+
"@commercetools-frontend/constants": "^27.9.2",
|
|
57
|
+
"@commercetools-frontend/notifications": "^27.9.2",
|
|
58
|
+
"@commercetools-frontend/sentry": "^27.9.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/jest": "^29.5.14",
|
|
62
62
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
63
63
|
"jest": "30.2.0",
|
|
64
64
|
"jest-mock": "30.2.0",
|
|
65
|
-
"react": "19.
|
|
66
|
-
"react-dom": "19.
|
|
65
|
+
"react": "19.2.8",
|
|
66
|
+
"react-dom": "19.2.8",
|
|
67
67
|
"react-intl": "^7.1.4",
|
|
68
|
-
"react-redux": "9.
|
|
68
|
+
"react-redux": "9.3.0",
|
|
69
69
|
"react-router-dom": "5.3.4"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|