@commercetools-frontend/react-notifications 21.23.5 → 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.
@@ -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.5";
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.5";
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.5";
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 declare type TProps = Props;
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 declare type Props = {
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 declare type Props = {
3
+ export type Props = {
4
4
  domain: TAppNotificationDomain;
5
5
  type: TAppNotificationKind;
6
6
  fixed: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { TAppNotificationKind, TAppNotificationDomain } from '@commercetools-frontend/constants';
2
- declare type StyleProps = {
2
+ type StyleProps = {
3
3
  type: TAppNotificationKind;
4
4
  domain: TAppNotificationDomain;
5
5
  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
- declare type Props = {
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;
@@ -1,5 +1,5 @@
1
1
  import type { TAppNotificationApiError } from '@commercetools-frontend/constants';
2
- declare type ExtraErrorFields = {
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
- declare type Props = {
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
- declare type Props = {
3
+ type Props = {
4
4
  notification: TAppNotification<{
5
5
  domain: TAppNotificationDomain;
6
6
  kind: TAppNotificationKindSide;
@@ -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
- declare type Props = {
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,5 +1,5 @@
1
1
  import type { TAppNotificationDomain } from '@commercetools-frontend/constants';
2
- declare type Props = {
2
+ type Props = {
3
3
  domain: TAppNotificationDomain;
4
4
  };
5
5
  declare const NotificationsList: {
@@ -1,5 +1,5 @@
1
1
  import type { TAppNotificationDomain } from '@commercetools-frontend/constants';
2
- declare type StyleProps = {
2
+ type StyleProps = {
3
3
  domain: TAppNotificationDomain;
4
4
  };
5
5
  declare const getStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
@@ -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 declare type TAppState = {
2
+ export type TAppState = {
3
3
  notifications: (TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide)[];
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import type { TAppNotificationDomain, TAppNotificationKind } from '@commercetools-frontend/constants';
2
- declare type Props = {
2
+ type Props = {
3
3
  domain: TAppNotificationDomain;
4
4
  kind: TAppNotificationKind;
5
5
  text?: string;
@@ -1,2 +1,2 @@
1
1
  import type { TProps as MapNotificationToComponentProps } from './components/map-notification-to-component';
2
- export declare type TMapNotificationToComponentProps = MapNotificationToComponentProps;
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.5",
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.19.0",
22
- "@babel/runtime-corejs3": "^7.19.0",
23
- "@commercetools-frontend/actions-global": "21.23.5",
24
- "@commercetools-frontend/constants": "21.23.5",
25
- "@commercetools-frontend/notifications": "21.23.5",
26
- "@commercetools-frontend/sentry": "21.23.5",
27
- "@commercetools-uikit/design-system": "^15.11.0",
28
- "@commercetools-uikit/hooks": "^15.11.0",
29
- "@commercetools-uikit/icon-button": "^15.11.0",
30
- "@commercetools-uikit/icons": "^15.11.0",
31
- "@commercetools-uikit/secondary-icon-button": "^15.11.0",
32
- "@commercetools-uikit/spacings": "^15.11.0",
33
- "@commercetools-uikit/utils": "^15.11.0",
34
- "@emotion/react": "11.10.4",
35
- "@emotion/styled": "11.10.4",
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.185",
37
+ "@types/lodash": "^4.14.191",
38
38
  "@types/prop-types": "^15.7.5",
39
- "@types/react": "^17.0.49",
40
- "@types/react-dom": "^17.0.17",
41
- "@types/react-redux": "^7.1.24",
42
- "@types/react-router": "^5.1.18",
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.37",
46
+ "moment-timezone": "^0.5.40",
47
47
  "prop-types": "15.8.1",
48
- "reselect": "4.1.6"
48
+ "reselect": "4.1.7"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@testing-library/react": "12.1.5",