@commercetools-frontend/react-notifications 21.23.6 → 21.23.7
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/map-notification-to-component/index.d.ts +1 -1
- package/dist/declarations/src/components/map-notification-to-component/map-notification-to-component.d.ts +1 -1
- package/dist/declarations/src/components/notification/notification.d.ts +1 -1
- package/dist/declarations/src/components/notification/notification.styles.d.ts +1 -1
- package/dist/declarations/src/components/notification-kinds/api-error/api-error.d.ts +2 -2
- package/dist/declarations/src/components/notification-kinds/api-error-message/api-error-message.d.ts +2 -2
- package/dist/declarations/src/components/notification-kinds/generic/generic.d.ts +1 -1
- package/dist/declarations/src/components/notification-kinds/unexpected-error/unexpected-error.d.ts +2 -2
- package/dist/declarations/src/components/notifications-list/notifications-list.d.ts +1 -1
- package/dist/declarations/src/components/notifications-list/notifications-list.styles.d.ts +1 -1
- package/dist/declarations/src/components/notifications-list/selectors.d.ts +3 -9
- package/dist/declarations/src/components/notifications-list/types.d.ts +1 -1
- package/dist/declarations/src/components/notifier/notifier.d.ts +1 -1
- package/dist/declarations/src/export-types.d.ts +1 -1
- package/package.json +23 -23
|
@@ -64,7 +64,7 @@ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanc
|
|
|
64
64
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
65
65
|
|
|
66
66
|
// NOTE: This string will be replaced on build time with the package version.
|
|
67
|
-
var version = "21.23.
|
|
67
|
+
var version = "21.23.7";
|
|
68
68
|
|
|
69
69
|
var Context = /*#__PURE__*/react.createContext(function () {
|
|
70
70
|
return null;
|
|
@@ -64,7 +64,7 @@ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanc
|
|
|
64
64
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
65
65
|
|
|
66
66
|
// NOTE: This string will be replaced on build time with the package version.
|
|
67
|
-
var version = "21.23.
|
|
67
|
+
var version = "21.23.7";
|
|
68
68
|
|
|
69
69
|
var Context = /*#__PURE__*/react.createContext(function () {
|
|
70
70
|
return null;
|
|
@@ -37,7 +37,7 @@ import isNumber from 'lodash/isNumber';
|
|
|
37
37
|
import { useShowNotification } from '@commercetools-frontend/actions-global';
|
|
38
38
|
|
|
39
39
|
// NOTE: This string will be replaced on build time with the package version.
|
|
40
|
-
var version = "21.23.
|
|
40
|
+
var version = "21.23.7";
|
|
41
41
|
|
|
42
42
|
var Context = /*#__PURE__*/createContext(function () {
|
|
43
43
|
return null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Props } from './map-notification-to-component';
|
|
2
|
-
export
|
|
2
|
+
export type TProps = Props;
|
|
3
3
|
export { default } from './map-notification-to-component';
|
|
4
4
|
export { useCustomNotificationComponent } from './map-notification-to-component';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type Props = {
|
|
4
4
|
mapNotificationToComponent: (notification: TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide) => ElementType | null;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TAppNotificationKind, TAppNotificationDomain } from '@commercetools-frontend/constants';
|
|
2
2
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type Props = {
|
|
4
4
|
domain: TAppNotificationDomain;
|
|
5
5
|
type: TAppNotificationKind;
|
|
6
6
|
fixed: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { TAppNotification, TAppNotificationValuesApiError } from '@commercetools-frontend/constants';
|
|
2
2
|
import { SyntheticEvent } from 'react';
|
|
3
3
|
import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_PAGE } from '@commercetools-frontend/constants';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
notification: TAppNotification<{
|
|
6
6
|
domain: typeof NOTIFICATION_DOMAINS.PAGE;
|
|
7
|
-
kind: typeof NOTIFICATION_KINDS_PAGE['api-error'];
|
|
7
|
+
kind: (typeof NOTIFICATION_KINDS_PAGE)['api-error'];
|
|
8
8
|
values: TAppNotificationValuesApiError;
|
|
9
9
|
}>;
|
|
10
10
|
dismiss: (event: SyntheticEvent) => void;
|
package/dist/declarations/src/components/notification-kinds/api-error-message/api-error-message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TAppNotificationApiError } from '@commercetools-frontend/constants';
|
|
2
|
-
|
|
2
|
+
type ExtraErrorFields = {
|
|
3
3
|
errorByExtension?: {
|
|
4
4
|
id: string;
|
|
5
5
|
key?: string;
|
|
@@ -21,7 +21,7 @@ declare type ExtraErrorFields = {
|
|
|
21
21
|
};
|
|
22
22
|
referencedBy?: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type Props = {
|
|
25
25
|
error: TAppNotificationApiError<ExtraErrorFields>;
|
|
26
26
|
};
|
|
27
27
|
declare const ApiErrorMessage: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TAppNotification, TAppNotificationDomain, TAppNotificationKindSide } from '@commercetools-frontend/constants';
|
|
2
2
|
import { SyntheticEvent } from 'react';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
notification: TAppNotification<{
|
|
5
5
|
domain: TAppNotificationDomain;
|
|
6
6
|
kind: TAppNotificationKindSide;
|
package/dist/declarations/src/components/notification-kinds/unexpected-error/unexpected-error.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { TAppNotification, TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
|
|
2
2
|
import { SyntheticEvent } from 'react';
|
|
3
3
|
import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_PAGE } from '@commercetools-frontend/constants';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
notification: TAppNotification<{
|
|
6
6
|
domain: typeof NOTIFICATION_DOMAINS.PAGE;
|
|
7
|
-
kind: typeof NOTIFICATION_KINDS_PAGE['unexpected-error'];
|
|
7
|
+
kind: (typeof NOTIFICATION_KINDS_PAGE)['unexpected-error'];
|
|
8
8
|
values: TAppNotificationValuesUnexpectedError;
|
|
9
9
|
}>;
|
|
10
10
|
dismiss: (event: SyntheticEvent) => void;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
|
|
2
2
|
import type { TAppState } from './types';
|
|
3
3
|
export declare const selectNotifications: (state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
|
|
4
|
-
export declare const selectGlobalNotifications: ((state: {
|
|
5
|
-
notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
|
|
6
|
-
}) => TAppNotificationGlobal[]) & import("reselect").OutputSelectorFields<(args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationGlobal[] & {
|
|
4
|
+
export declare const selectGlobalNotifications: ((state: TAppState) => TAppNotificationGlobal[]) & import("reselect").OutputSelectorFields<(args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationGlobal[] & {
|
|
7
5
|
clearCache: () => void;
|
|
8
6
|
}> & {
|
|
9
7
|
clearCache: () => void;
|
|
10
8
|
};
|
|
11
|
-
export declare const selectPageNotifications: ((state: {
|
|
12
|
-
notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
|
|
13
|
-
}) => TAppNotificationPage[]) & import("reselect").OutputSelectorFields<(args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationPage[] & {
|
|
9
|
+
export declare const selectPageNotifications: ((state: TAppState) => TAppNotificationPage[]) & import("reselect").OutputSelectorFields<(args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationPage[] & {
|
|
14
10
|
clearCache: () => void;
|
|
15
11
|
}> & {
|
|
16
12
|
clearCache: () => void;
|
|
17
13
|
};
|
|
18
|
-
export declare const selectSideNotifications: ((state: {
|
|
19
|
-
notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
|
|
20
|
-
}) => TAppNotificationSide[]) & import("reselect").OutputSelectorFields<(args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationSide[] & {
|
|
14
|
+
export declare const selectSideNotifications: ((state: TAppState) => TAppNotificationSide[]) & import("reselect").OutputSelectorFields<(args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationSide[] & {
|
|
21
15
|
clearCache: () => void;
|
|
22
16
|
}> & {
|
|
23
17
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
|
|
2
|
-
export
|
|
2
|
+
export type TAppState = {
|
|
3
3
|
notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
|
|
4
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { TProps as MapNotificationToComponentProps } from './components/map-notification-to-component';
|
|
2
|
-
export
|
|
2
|
+
export type TMapNotificationToComponentProps = MapNotificationToComponentProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/react-notifications",
|
|
3
|
-
"version": "21.23.
|
|
3
|
+
"version": "21.23.7",
|
|
4
4
|
"description": "React bindings for @commercetools-frontend/notifications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
"module": "dist/commercetools-frontend-react-notifications.esm.js",
|
|
19
19
|
"files": ["dist", "package.json", "LICENSE", "README.md"],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@babel/runtime": "^7.
|
|
22
|
-
"@babel/runtime-corejs3": "^7.
|
|
23
|
-
"@commercetools-frontend/actions-global": "21.23.
|
|
24
|
-
"@commercetools-frontend/constants": "21.23.
|
|
25
|
-
"@commercetools-frontend/notifications": "21.23.
|
|
26
|
-
"@commercetools-frontend/sentry": "21.23.
|
|
27
|
-
"@commercetools-uikit/design-system": "^15.11.
|
|
28
|
-
"@commercetools-uikit/hooks": "^15.11.
|
|
29
|
-
"@commercetools-uikit/icon-button": "^15.11.
|
|
30
|
-
"@commercetools-uikit/icons": "^15.11.
|
|
31
|
-
"@commercetools-uikit/secondary-icon-button": "^15.11.
|
|
32
|
-
"@commercetools-uikit/spacings": "^15.11.
|
|
33
|
-
"@commercetools-uikit/utils": "^15.11.
|
|
34
|
-
"@emotion/react": "11.10.
|
|
35
|
-
"@emotion/styled": "11.10.
|
|
21
|
+
"@babel/runtime": "^7.20.13",
|
|
22
|
+
"@babel/runtime-corejs3": "^7.20.13",
|
|
23
|
+
"@commercetools-frontend/actions-global": "21.23.7",
|
|
24
|
+
"@commercetools-frontend/constants": "21.23.7",
|
|
25
|
+
"@commercetools-frontend/notifications": "21.23.7",
|
|
26
|
+
"@commercetools-frontend/sentry": "21.23.7",
|
|
27
|
+
"@commercetools-uikit/design-system": "^15.11.2",
|
|
28
|
+
"@commercetools-uikit/hooks": "^15.11.2",
|
|
29
|
+
"@commercetools-uikit/icon-button": "^15.11.2",
|
|
30
|
+
"@commercetools-uikit/icons": "^15.11.2",
|
|
31
|
+
"@commercetools-uikit/secondary-icon-button": "^15.11.2",
|
|
32
|
+
"@commercetools-uikit/spacings": "^15.11.2",
|
|
33
|
+
"@commercetools-uikit/utils": "^15.11.2",
|
|
34
|
+
"@emotion/react": "11.10.5",
|
|
35
|
+
"@emotion/styled": "11.10.5",
|
|
36
36
|
"@types/history": "^4.7.11",
|
|
37
|
-
"@types/lodash": "^4.14.
|
|
37
|
+
"@types/lodash": "^4.14.191",
|
|
38
38
|
"@types/prop-types": "^15.7.5",
|
|
39
|
-
"@types/react": "^17.0.
|
|
40
|
-
"@types/react-dom": "^17.0.
|
|
41
|
-
"@types/react-redux": "^7.1.
|
|
42
|
-
"@types/react-router": "^5.1.
|
|
39
|
+
"@types/react": "^17.0.53",
|
|
40
|
+
"@types/react-dom": "^17.0.19",
|
|
41
|
+
"@types/react-redux": "^7.1.25",
|
|
42
|
+
"@types/react-router": "^5.1.20",
|
|
43
43
|
"@types/react-router-dom": "^5.3.3",
|
|
44
44
|
"lodash": "4.17.21",
|
|
45
45
|
"moment": "^2.29.4",
|
|
46
|
-
"moment-timezone": "^0.5.
|
|
46
|
+
"moment-timezone": "^0.5.40",
|
|
47
47
|
"prop-types": "15.8.1",
|
|
48
|
-
"reselect": "4.1.
|
|
48
|
+
"reselect": "4.1.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/react": "12.1.5",
|