@commercetools-frontend/actions-global 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.
@@ -37,7 +37,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
37
37
  var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
38
38
 
39
39
  // NOTE: This string will be replaced on build time with the package version.
40
- var version = "21.23.6";
40
+ var version = "21.23.7";
41
41
 
42
42
  function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
43
43
 
@@ -35,7 +35,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
35
35
  var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
36
36
 
37
37
  // NOTE: This string will be replaced on build time with the package version.
38
- var version = "21.23.6";
38
+ var version = "21.23.7";
39
39
 
40
40
  function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41
41
 
@@ -18,7 +18,7 @@ import { useCallback } from 'react';
18
18
  import { useDispatch } from 'react-redux';
19
19
 
20
20
  // NOTE: This string will be replaced on build time with the package version.
21
- var version = "21.23.6";
21
+ var version = "21.23.7";
22
22
 
23
23
  function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24
24
 
@@ -2,15 +2,15 @@ import type { ThunkDispatch } from 'redux-thunk';
2
2
  import type { TAppNotificationApiError, TStatusCode } from '@commercetools-frontend/constants';
3
3
  import showApiErrorNotification from './show-api-error-notification';
4
4
  import showUnexpectedErrorNotification from './show-unexpected-error-notification';
5
- declare type ApiError = {
5
+ type ApiError = {
6
6
  statusCode: TStatusCode;
7
7
  body: {
8
8
  message: string;
9
9
  errors?: TAppNotificationApiError | TAppNotificationApiError[];
10
10
  };
11
11
  };
12
- export declare type ActionError = Error | ApiError;
13
- export declare type DispatchActionError = ThunkDispatch<null, null, ReturnType<typeof showApiErrorNotification> | ReturnType<typeof showUnexpectedErrorNotification>>;
12
+ export type ActionError = Error | ApiError;
13
+ export type DispatchActionError = ThunkDispatch<null, null, ReturnType<typeof showApiErrorNotification> | ReturnType<typeof showUnexpectedErrorNotification>>;
14
14
  export default function handleActionError(error: ActionError): (dispatch: DispatchActionError) => import("@commercetools-frontend/notifications").TAddNotificationAction<import("@commercetools-frontend/constants").TAppNotificationOfDomain & {
15
15
  kind: import("@commercetools-frontend/constants").TAppNotificationKindPage;
16
16
  } & {
@@ -1,5 +1,5 @@
1
1
  import { HIDE_ALL_PAGE_NOTIFICATIONS } from '@commercetools-frontend/constants';
2
- declare type HideAllPageNotificationAction = {
2
+ type HideAllPageNotificationAction = {
3
3
  type: typeof HIDE_ALL_PAGE_NOTIFICATIONS;
4
4
  };
5
5
  export default function hideAllPageNotifications(): HideAllPageNotificationAction;
@@ -1,2 +1,2 @@
1
1
  import type { DispatchActionError } from './actions/handle-action-error';
2
- export declare type TDispatchActionError = DispatchActionError;
2
+ export type TDispatchActionError = DispatchActionError;
@@ -1,6 +1,6 @@
1
1
  import type { TNotificationMetaOptions, TAddNotificationAction, TNotification } from '@commercetools-frontend/notifications';
2
2
  import type { TShowNotification } from '../types';
3
- declare type TNotificationHook<Notification extends TShowNotification> = (content: Notification, meta?: TNotificationMetaOptions) => TAddNotificationAction<Notification & TNotification>;
3
+ type TNotificationHook<Notification extends TShowNotification> = (content: Notification, meta?: TNotificationMetaOptions) => TAddNotificationAction<Notification & TNotification>;
4
4
  declare function useShowNotification<Notification extends TShowNotification>(): TNotificationHook<Notification>;
5
5
  declare function useShowNotification<Notification extends TShowNotification>(notificationFragment: Partial<Notification>): TNotificationHook<Notification>;
6
6
  export default useShowNotification;
@@ -1,19 +1,19 @@
1
1
  import type { TAppNotification, TAppNotificationDomain, TAppNotificationKind, TAppNotificationApiError, TAppNotificationValuesApiError, TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
- export declare type TShowNotification = {
2
+ export type TShowNotification = {
3
3
  domain: TAppNotificationDomain;
4
4
  kind: TAppNotificationKind;
5
5
  text?: string;
6
6
  };
7
- export declare type TApiErrorNotification = TAppNotification<{
7
+ export type TApiErrorNotification = TAppNotification<{
8
8
  domain: 'page';
9
9
  kind: 'api-error';
10
10
  values: TAppNotificationValuesApiError;
11
11
  }>;
12
- export declare type TUnexpectedErrorNotification = TAppNotification<{
12
+ export type TUnexpectedErrorNotification = TAppNotification<{
13
13
  domain: 'page';
14
14
  kind: 'unexpected-error';
15
15
  values: TAppNotificationValuesUnexpectedError;
16
16
  }>;
17
- export declare type TApiErrorNotificationOptions = {
17
+ export type TApiErrorNotificationOptions = {
18
18
  errors: TAppNotificationApiError | TAppNotificationApiError[];
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/actions-global",
3
- "version": "21.23.6",
3
+ "version": "21.23.7",
4
4
  "description": "Global redux actions for a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -18,22 +18,22 @@
18
18
  "module": "dist/commercetools-frontend-actions-global.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/browser-history": "21.23.6",
24
- "@commercetools-frontend/constants": "21.23.6",
25
- "@commercetools-frontend/notifications": "21.23.6",
26
- "@commercetools-frontend/sentry": "21.23.6",
27
- "@types/lodash": "^4.14.185",
28
- "@types/react": "^17.0.49",
29
- "@types/react-redux": "^7.1.24",
21
+ "@babel/runtime": "^7.20.13",
22
+ "@babel/runtime-corejs3": "^7.20.13",
23
+ "@commercetools-frontend/browser-history": "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
+ "@types/lodash": "^4.14.191",
28
+ "@types/react": "^17.0.53",
29
+ "@types/react-redux": "^7.1.25",
30
30
  "lodash": "4.17.21",
31
- "redux-thunk": "2.4.1"
31
+ "redux-thunk": "2.4.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "react": "17.0.2",
35
35
  "react-redux": "7.2.9",
36
- "redux": "4.2.0"
36
+ "redux": "4.2.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "17.x",