@commercetools-frontend/react-notifications 20.9.4 → 20.10.6

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.
Files changed (30) hide show
  1. package/dist/commercetools-frontend-react-notifications.cjs.dev.js +66 -76
  2. package/dist/commercetools-frontend-react-notifications.cjs.prod.js +50 -60
  3. package/dist/commercetools-frontend-react-notifications.esm.js +14 -24
  4. package/dist/declarations/src/components/map-notification-to-component/index.d.ts +4 -4
  5. package/dist/declarations/src/components/map-notification-to-component/map-notification-to-component.d.ts +12 -12
  6. package/dist/declarations/src/components/notification/index.d.ts +1 -1
  7. package/dist/declarations/src/components/notification/messages.d.ts +8 -8
  8. package/dist/declarations/src/components/notification/notification.d.ts +15 -15
  9. package/dist/declarations/src/components/notification/notification.styles.d.ts +10 -10
  10. package/dist/declarations/src/components/notification-kinds/api-error/api-error.d.ts +16 -16
  11. package/dist/declarations/src/components/notification-kinds/api-error/index.d.ts +1 -1
  12. package/dist/declarations/src/components/notification-kinds/api-error-message/api-error-message.d.ts +31 -31
  13. package/dist/declarations/src/components/notification-kinds/api-error-message/index.d.ts +1 -1
  14. package/dist/declarations/src/components/notification-kinds/api-error-message/messages.d.ts +138 -138
  15. package/dist/declarations/src/components/notification-kinds/generic/generic.d.ts +15 -15
  16. package/dist/declarations/src/components/notification-kinds/generic/index.d.ts +1 -1
  17. package/dist/declarations/src/components/notification-kinds/unexpected-error/index.d.ts +1 -1
  18. package/dist/declarations/src/components/notification-kinds/unexpected-error/unexpected-error.d.ts +16 -16
  19. package/dist/declarations/src/components/notifications-list/index.d.ts +2 -2
  20. package/dist/declarations/src/components/notifications-list/notifications-list.d.ts +9 -9
  21. package/dist/declarations/src/components/notifications-list/notifications-list.styles.d.ts +6 -6
  22. package/dist/declarations/src/components/notifications-list/selectors.d.ts +12 -6
  23. package/dist/declarations/src/components/notifications-list/types.d.ts +4 -4
  24. package/dist/declarations/src/components/notifier/index.d.ts +1 -1
  25. package/dist/declarations/src/components/notifier/notifier.d.ts +16 -16
  26. package/dist/declarations/src/export-types.d.ts +2 -2
  27. package/dist/declarations/src/index.d.ts +7 -7
  28. package/dist/declarations/src/utils/filter-data-attributes.d.ts +1 -1
  29. package/dist/declarations/src/version.d.ts +2 -2
  30. package/package.json +13 -17
@@ -1,138 +1,138 @@
1
- declare const _default: {
2
- General: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- OverlappingPrices: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- ConcurrentModificationBulkEdit: {
13
- id: string;
14
- description: string;
15
- defaultMessage: string;
16
- };
17
- ConcurrentModification: {
18
- id: string;
19
- description: string;
20
- defaultMessage: string;
21
- };
22
- DuplicateAttributeValue: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- DuplicateAttributeValues: {
28
- id: string;
29
- description: string;
30
- defaultMessage: string;
31
- };
32
- DuplicateField: {
33
- id: string;
34
- description: string;
35
- defaultMessage: string;
36
- };
37
- DuplicateSlug: {
38
- id: string;
39
- description: string;
40
- defaultMessage: string;
41
- };
42
- DuplicatePriceScope: {
43
- id: string;
44
- description: string;
45
- defaultMessage: string;
46
- };
47
- DuplicateVariantValues: {
48
- id: string;
49
- description: string;
50
- defaultMessage: string;
51
- };
52
- InvalidDateRange: {
53
- id: string;
54
- description: string;
55
- defaultMessage: string;
56
- };
57
- InvalidField: {
58
- id: string;
59
- description: string;
60
- defaultMessage: string;
61
- };
62
- InvalidSlug: {
63
- id: string;
64
- description: string;
65
- defaultMessage: string;
66
- };
67
- PendingOperation: {
68
- id: string;
69
- description: string;
70
- defaultMessage: string;
71
- };
72
- ResourceNotFound: {
73
- id: string;
74
- description: string;
75
- defaultMessage: string;
76
- };
77
- ReferenceExists: {
78
- id: string;
79
- description: string;
80
- defaultMessage: string;
81
- };
82
- RequiredField: {
83
- id: string;
84
- description: string;
85
- defaultMessage: string;
86
- };
87
- RequiredFields: {
88
- id: string;
89
- description: string;
90
- defaultMessage: string;
91
- };
92
- SemanticError: {
93
- id: string;
94
- description: string;
95
- defaultMessage: string;
96
- };
97
- SyntaxError: {
98
- id: string;
99
- description: string;
100
- defaultMessage: string;
101
- };
102
- Unauthorized: {
103
- id: string;
104
- description: string;
105
- defaultMessage: string;
106
- };
107
- Forbidden: {
108
- id: string;
109
- description: string;
110
- defaultMessage: string;
111
- };
112
- ExtensionNoResponse: {
113
- id: string;
114
- description: string;
115
- defaultMessage: string;
116
- };
117
- ExtensionBadResponse: {
118
- id: string;
119
- description: string;
120
- defaultMessage: string;
121
- };
122
- ExtensionUpdateActionsFailed: {
123
- id: string;
124
- description: string;
125
- defaultMessage: string;
126
- };
127
- TaxCategoryDuplicateCountry: {
128
- id: string;
129
- description: string;
130
- defaultMessage: string;
131
- };
132
- MaxResourceLimitExceeded: {
133
- id: string;
134
- description: string;
135
- defaultMessage: string;
136
- };
137
- };
138
- export default _default;
1
+ declare const _default: {
2
+ General: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ OverlappingPrices: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ ConcurrentModificationBulkEdit: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ ConcurrentModification: {
18
+ id: string;
19
+ description: string;
20
+ defaultMessage: string;
21
+ };
22
+ DuplicateAttributeValue: {
23
+ id: string;
24
+ description: string;
25
+ defaultMessage: string;
26
+ };
27
+ DuplicateAttributeValues: {
28
+ id: string;
29
+ description: string;
30
+ defaultMessage: string;
31
+ };
32
+ DuplicateField: {
33
+ id: string;
34
+ description: string;
35
+ defaultMessage: string;
36
+ };
37
+ DuplicateSlug: {
38
+ id: string;
39
+ description: string;
40
+ defaultMessage: string;
41
+ };
42
+ DuplicatePriceScope: {
43
+ id: string;
44
+ description: string;
45
+ defaultMessage: string;
46
+ };
47
+ DuplicateVariantValues: {
48
+ id: string;
49
+ description: string;
50
+ defaultMessage: string;
51
+ };
52
+ InvalidDateRange: {
53
+ id: string;
54
+ description: string;
55
+ defaultMessage: string;
56
+ };
57
+ InvalidField: {
58
+ id: string;
59
+ description: string;
60
+ defaultMessage: string;
61
+ };
62
+ InvalidSlug: {
63
+ id: string;
64
+ description: string;
65
+ defaultMessage: string;
66
+ };
67
+ PendingOperation: {
68
+ id: string;
69
+ description: string;
70
+ defaultMessage: string;
71
+ };
72
+ ResourceNotFound: {
73
+ id: string;
74
+ description: string;
75
+ defaultMessage: string;
76
+ };
77
+ ReferenceExists: {
78
+ id: string;
79
+ description: string;
80
+ defaultMessage: string;
81
+ };
82
+ RequiredField: {
83
+ id: string;
84
+ description: string;
85
+ defaultMessage: string;
86
+ };
87
+ RequiredFields: {
88
+ id: string;
89
+ description: string;
90
+ defaultMessage: string;
91
+ };
92
+ SemanticError: {
93
+ id: string;
94
+ description: string;
95
+ defaultMessage: string;
96
+ };
97
+ SyntaxError: {
98
+ id: string;
99
+ description: string;
100
+ defaultMessage: string;
101
+ };
102
+ Unauthorized: {
103
+ id: string;
104
+ description: string;
105
+ defaultMessage: string;
106
+ };
107
+ Forbidden: {
108
+ id: string;
109
+ description: string;
110
+ defaultMessage: string;
111
+ };
112
+ ExtensionNoResponse: {
113
+ id: string;
114
+ description: string;
115
+ defaultMessage: string;
116
+ };
117
+ ExtensionBadResponse: {
118
+ id: string;
119
+ description: string;
120
+ defaultMessage: string;
121
+ };
122
+ ExtensionUpdateActionsFailed: {
123
+ id: string;
124
+ description: string;
125
+ defaultMessage: string;
126
+ };
127
+ TaxCategoryDuplicateCountry: {
128
+ id: string;
129
+ description: string;
130
+ defaultMessage: string;
131
+ };
132
+ MaxResourceLimitExceeded: {
133
+ id: string;
134
+ description: string;
135
+ defaultMessage: string;
136
+ };
137
+ };
138
+ export default _default;
@@ -1,15 +1,15 @@
1
- import type { TAppNotification, TAppNotificationDomain, TAppNotificationKindSide } from '@commercetools-frontend/constants';
2
- import { SyntheticEvent } from 'react';
3
- declare type Props = {
4
- notification: TAppNotification<{
5
- domain: TAppNotificationDomain;
6
- kind: TAppNotificationKindSide;
7
- text: string;
8
- }>;
9
- dismiss: (event: SyntheticEvent) => void;
10
- };
11
- declare const GenericNotification: {
12
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
13
- displayName: string;
14
- };
15
- export default GenericNotification;
1
+ import type { TAppNotification, TAppNotificationDomain, TAppNotificationKindSide } from '@commercetools-frontend/constants';
2
+ import { SyntheticEvent } from 'react';
3
+ declare type Props = {
4
+ notification: TAppNotification<{
5
+ domain: TAppNotificationDomain;
6
+ kind: TAppNotificationKindSide;
7
+ text: string;
8
+ }>;
9
+ dismiss: (event: SyntheticEvent) => void;
10
+ };
11
+ declare const GenericNotification: {
12
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export default GenericNotification;
@@ -1 +1 @@
1
- export { default } from './generic';
1
+ export { default } from './generic';
@@ -1 +1 @@
1
- export { default } from './unexpected-error';
1
+ export { default } from './unexpected-error';
@@ -1,16 +1,16 @@
1
- import type { TAppNotification, TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
- import { SyntheticEvent } from 'react';
3
- import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_PAGE } from '@commercetools-frontend/constants';
4
- declare type Props = {
5
- notification: TAppNotification<{
6
- domain: typeof NOTIFICATION_DOMAINS.PAGE;
7
- kind: typeof NOTIFICATION_KINDS_PAGE['unexpected-error'];
8
- values: TAppNotificationValuesUnexpectedError;
9
- }>;
10
- dismiss: (event: SyntheticEvent) => void;
11
- };
12
- declare const UnexpectedErrorNotification: {
13
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- export default UnexpectedErrorNotification;
1
+ import type { TAppNotification, TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
+ import { SyntheticEvent } from 'react';
3
+ import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_PAGE } from '@commercetools-frontend/constants';
4
+ declare type Props = {
5
+ notification: TAppNotification<{
6
+ domain: typeof NOTIFICATION_DOMAINS.PAGE;
7
+ kind: typeof NOTIFICATION_KINDS_PAGE['unexpected-error'];
8
+ values: TAppNotificationValuesUnexpectedError;
9
+ }>;
10
+ dismiss: (event: SyntheticEvent) => void;
11
+ };
12
+ declare const UnexpectedErrorNotification: {
13
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export default UnexpectedErrorNotification;
@@ -1,2 +1,2 @@
1
- export { default } from './notifications-list';
2
- export { selectPageNotifications } from './selectors';
1
+ export { default } from './notifications-list';
2
+ export { selectPageNotifications } from './selectors';
@@ -1,9 +1,9 @@
1
- import type { TAppNotificationDomain } from '@commercetools-frontend/constants';
2
- declare type Props = {
3
- domain: TAppNotificationDomain;
4
- };
5
- declare const NotificationsList: {
6
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
7
- displayName: string;
8
- };
9
- export default NotificationsList;
1
+ import type { TAppNotificationDomain } from '@commercetools-frontend/constants';
2
+ declare type Props = {
3
+ domain: TAppNotificationDomain;
4
+ };
5
+ declare const NotificationsList: {
6
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
7
+ displayName: string;
8
+ };
9
+ export default NotificationsList;
@@ -1,6 +1,6 @@
1
- import type { TAppNotificationDomain } from '@commercetools-frontend/constants';
2
- declare type StyleProps = {
3
- domain: TAppNotificationDomain;
4
- };
5
- declare const getStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
6
- export { getStyles };
1
+ import type { TAppNotificationDomain } from '@commercetools-frontend/constants';
2
+ declare type StyleProps = {
3
+ domain: TAppNotificationDomain;
4
+ };
5
+ declare const getStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
6
+ export { getStyles };
@@ -1,6 +1,12 @@
1
- import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
2
- import type { TAppState } from './types';
3
- export declare const selectNotifications: (state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
4
- export declare const selectGlobalNotifications: import("reselect").OutputSelector<TAppState, TAppNotificationGlobal[], (res: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationGlobal[]>;
5
- export declare const selectPageNotifications: import("reselect").OutputSelector<TAppState, TAppNotificationPage[], (res: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationPage[]>;
6
- export declare const selectSideNotifications: import("reselect").OutputSelector<TAppState, TAppNotificationSide[], (res: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]) => TAppNotificationSide[]>;
1
+ import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
2
+ import type { TAppState } from './types';
3
+ export declare const selectNotifications: (state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
4
+ export declare const selectGlobalNotifications: import("reselect").OutputSelector<[(state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]], TAppNotificationGlobal[], never, ((args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[], ...args_1: unknown[]) => TAppNotificationGlobal[]) & ((...args: any[]) => any) & {
5
+ clearCache: () => void;
6
+ }>;
7
+ export declare const selectPageNotifications: import("reselect").OutputSelector<[(state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]], TAppNotificationPage[], never, ((args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[], ...args_1: unknown[]) => TAppNotificationPage[]) & ((...args: any[]) => any) & {
8
+ clearCache: () => void;
9
+ }>;
10
+ export declare const selectSideNotifications: import("reselect").OutputSelector<[(state: TAppState) => (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[]], TAppNotificationSide[], never, ((args_0: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[], ...args_1: unknown[]) => TAppNotificationSide[]) & ((...args: any[]) => any) & {
11
+ clearCache: () => void;
12
+ }>;
@@ -1,4 +1,4 @@
1
- import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
2
- export declare type TAppState = {
3
- notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
4
- };
1
+ import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants';
2
+ export declare type TAppState = {
3
+ notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
4
+ };
@@ -1 +1 @@
1
- export { default } from './notifier';
1
+ export { default } from './notifier';
@@ -1,16 +1,16 @@
1
- import type { TAppNotificationDomain, TAppNotificationKind } from '@commercetools-frontend/constants';
2
- declare type Props = {
3
- domain: TAppNotificationDomain;
4
- kind: TAppNotificationKind;
5
- text?: string;
6
- meta?: {
7
- [key: string]: unknown;
8
- };
9
- dismissAfter?: number;
10
- };
11
- declare const Notifier: {
12
- (props: Props): null;
13
- displayName: string;
14
- defaultProps: Pick<Props, "domain" | "kind">;
15
- };
16
- export default Notifier;
1
+ import type { TAppNotificationDomain, TAppNotificationKind } from '@commercetools-frontend/constants';
2
+ declare type Props = {
3
+ domain: TAppNotificationDomain;
4
+ kind: TAppNotificationKind;
5
+ text?: string;
6
+ meta?: {
7
+ [key: string]: unknown;
8
+ };
9
+ dismissAfter?: number;
10
+ };
11
+ declare const Notifier: {
12
+ (props: Props): null;
13
+ displayName: string;
14
+ defaultProps: Pick<Props, "domain" | "kind">;
15
+ };
16
+ export default Notifier;
@@ -1,2 +1,2 @@
1
- import type { TProps as MapNotificationToComponentProps } from './components/map-notification-to-component';
2
- export declare type TMapNotificationToComponentProps = MapNotificationToComponentProps;
1
+ import type { TProps as MapNotificationToComponentProps } from './components/map-notification-to-component';
2
+ export declare type TMapNotificationToComponentProps = MapNotificationToComponentProps;
@@ -1,7 +1,7 @@
1
- export { default as version } from './version';
2
- export * from './export-types';
3
- export { default as NotificationProviderForCustomComponent } from './components/map-notification-to-component';
4
- export { default as Notification } from './components/notification';
5
- export { default as NotificationsList, selectPageNotifications, } from './components/notifications-list';
6
- export { default as Notifier } from './components/notifier';
7
- export { default as ApiErrorMessage } from './components/notification-kinds/api-error-message';
1
+ export { default as version } from './version';
2
+ export * from './export-types';
3
+ export { default as NotificationProviderForCustomComponent } from './components/map-notification-to-component';
4
+ export { default as Notification } from './components/notification';
5
+ export { default as NotificationsList, selectPageNotifications, } from './components/notifications-list';
6
+ export { default as Notifier } from './components/notifier';
7
+ export { default as ApiErrorMessage } from './components/notification-kinds/api-error-message';
@@ -1 +1 @@
1
- export default function filterDataAttributes<T extends object>(obj: T): Partial<T>;
1
+ export default function filterDataAttributes<T extends object>(obj: T): Partial<T>;
@@ -1,2 +1,2 @@
1
- declare const _default: "20.9.4";
2
- export default _default;
1
+ declare const _default: "__@APPLICATION_KIT_PACKAGE/VERSION_OF_RELEASE__";
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/react-notifications",
3
- "version": "20.9.4",
3
+ "version": "20.10.6",
4
4
  "description": "React bindings for @commercetools-frontend/notifications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -11,28 +11,24 @@
11
11
  "homepage": "https://docs.commercetools.com/custom-applications",
12
12
  "keywords": ["javascript", "frontend", "react", "toolkit"],
13
13
  "license": "MIT",
14
- "private": false,
15
14
  "publishConfig": {
16
15
  "access": "public"
17
16
  },
18
17
  "main": "dist/commercetools-frontend-react-notifications.cjs.js",
19
18
  "module": "dist/commercetools-frontend-react-notifications.esm.js",
20
19
  "files": ["dist", "package.json", "LICENSE", "README.md"],
21
- "scripts": {
22
- "prepare": "./../../scripts/version.js replace"
23
- },
24
20
  "dependencies": {
25
- "@babel/runtime": "7.14.8",
26
- "@babel/runtime-corejs3": "7.14.9",
27
- "@commercetools-frontend/actions-global": "20.9.4",
28
- "@commercetools-frontend/constants": "20.9.3",
29
- "@commercetools-frontend/notifications": "20.9.3",
30
- "@commercetools-frontend/sentry": "20.9.4",
21
+ "@babel/runtime": "7.15.4",
22
+ "@babel/runtime-corejs3": "7.15.4",
23
+ "@commercetools-frontend/actions-global": "20.10.6",
24
+ "@commercetools-frontend/constants": "20.10.6",
25
+ "@commercetools-frontend/notifications": "20.10.6",
26
+ "@commercetools-frontend/sentry": "20.10.6",
31
27
  "@commercetools-uikit/design-system": "^12.2.2",
32
28
  "@commercetools-uikit/icon-button": "^12.2.2",
33
29
  "@commercetools-uikit/icons": "^12.2.2",
34
30
  "@commercetools-uikit/spacings": "^12.2.2",
35
- "@emotion/react": "11.4.1",
31
+ "@emotion/react": "11.5.0",
36
32
  "@emotion/styled": "11.3.0",
37
33
  "@types/history": "4.7.9",
38
34
  "@types/lodash": "^4.14.167",
@@ -46,15 +42,15 @@
46
42
  "moment": "^2.29.1",
47
43
  "moment-timezone": "^0.5.32",
48
44
  "prop-types": "15.7.2",
49
- "reselect": "4.0.0"
45
+ "reselect": "4.1.0"
50
46
  },
51
47
  "devDependencies": {
52
- "@testing-library/react": "12.0.0",
48
+ "@testing-library/react": "12.1.2",
53
49
  "react": "17.0.2",
54
50
  "react-dom": "17.0.2",
55
- "react-intl": "5.20.7",
56
- "react-redux": "7.2.4",
57
- "react-router-dom": "5.2.0"
51
+ "react-intl": "5.21.0",
52
+ "react-redux": "7.2.6",
53
+ "react-router-dom": "5.3.0"
58
54
  },
59
55
  "peerDependencies": {
60
56
  "react": "17.x",