@commercetools-frontend/actions-global 20.8.0 → 20.10.1

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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var constants = require('@commercetools-frontend/constants');
6
6
  var sentry = require('@commercetools-frontend/sentry');
7
- var browserHistory = require('@commercetools-frontend/browser-history');
8
7
  var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
9
8
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
10
9
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -24,7 +23,6 @@ var reactRedux = require('react-redux');
24
23
 
25
24
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
26
25
 
27
- var browserHistory__default = /*#__PURE__*/_interopDefault(browserHistory);
28
26
  var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
29
27
  var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
30
28
  var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
@@ -38,6 +36,9 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
38
36
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
39
37
  var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
40
38
 
39
+ // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
40
+ var version = '20.10.1';
41
+
41
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); if (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; }
42
43
 
43
44
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context2; _forEachInstanceProperty__default['default'](_context2 = ownKeys$1(Object(source), true)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context3; _forEachInstanceProperty__default['default'](_context3 = ownKeys$1(Object(source))).call(_context3, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
@@ -104,11 +105,15 @@ function handleActionError(error) {
104
105
  return dispatch(showUnexpectedErrorNotification({
105
106
  errorId: errorId
106
107
  }));
107
- } // logout when unauthorized
108
+ } // When unauthorized, log the user out.
108
109
 
109
110
 
110
111
  if (error.statusCode === constants.STATUS_CODES.UNAUTHORIZED) {
111
- browserHistory__default['default'].push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
112
+ // Require the browser history on runtime. This allows the package to be used on SSR.
113
+ var _require = require('@commercetools-frontend/browser-history'),
114
+ browserHistory = _require.default;
115
+
116
+ browserHistory.push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
112
117
  } // We need to do the return, because if not we see an error notification
113
118
  // The error is handled with the handleUnavailableResource HoC to show the PageNotFound component
114
119
  // when the api returns 404
@@ -185,9 +190,6 @@ function useOnActionError() {
185
190
  }, [dispatch]);
186
191
  }
187
192
 
188
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
189
- var version = '20.8.0';
190
-
191
193
  exports.handleActionError = handleActionError;
192
194
  exports.hideAllPageNotifications = hideAllPageNotifications;
193
195
  exports.showApiErrorNotification = showApiErrorNotification;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var constants = require('@commercetools-frontend/constants');
6
6
  var sentry = require('@commercetools-frontend/sentry');
7
- var browserHistory = require('@commercetools-frontend/browser-history');
8
7
  var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
9
8
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
10
9
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -24,7 +23,6 @@ var reactRedux = require('react-redux');
24
23
 
25
24
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
26
25
 
27
- var browserHistory__default = /*#__PURE__*/_interopDefault(browserHistory);
28
26
  var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
29
27
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
30
28
  var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
@@ -36,6 +34,9 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
36
34
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
37
35
  var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
38
36
 
37
+ // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
38
+ var version = '20.10.1';
39
+
39
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); if (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; }
40
41
 
41
42
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context2; _forEachInstanceProperty__default['default'](_context2 = ownKeys$1(Object(source), true)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context3; _forEachInstanceProperty__default['default'](_context3 = ownKeys$1(Object(source))).call(_context3, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
@@ -95,11 +96,15 @@ function handleActionError(error) {
95
96
  return dispatch(showUnexpectedErrorNotification({
96
97
  errorId: errorId
97
98
  }));
98
- } // logout when unauthorized
99
+ } // When unauthorized, log the user out.
99
100
 
100
101
 
101
102
  if (error.statusCode === constants.STATUS_CODES.UNAUTHORIZED) {
102
- browserHistory__default['default'].push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
103
+ // Require the browser history on runtime. This allows the package to be used on SSR.
104
+ var _require = require('@commercetools-frontend/browser-history'),
105
+ browserHistory = _require.default;
106
+
107
+ browserHistory.push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
103
108
  } // We need to do the return, because if not we see an error notification
104
109
  // The error is handled with the handleUnavailableResource HoC to show the PageNotFound component
105
110
  // when the api returns 404
@@ -176,9 +181,6 @@ function useOnActionError() {
176
181
  }, [dispatch]);
177
182
  }
178
183
 
179
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
180
- var version = '20.8.0';
181
-
182
184
  exports.handleActionError = handleActionError;
183
185
  exports.hideAllPageNotifications = hideAllPageNotifications;
184
186
  exports.showApiErrorNotification = showApiErrorNotification;
@@ -1,6 +1,5 @@
1
1
  import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_SIDE, DOMAINS, STATUS_CODES, LOGOUT_REASONS, HIDE_ALL_PAGE_NOTIFICATIONS } from '@commercetools-frontend/constants';
2
2
  import { reportErrorToSentry } from '@commercetools-frontend/sentry';
3
- import browserHistory from '@commercetools-frontend/browser-history';
4
3
  import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
5
4
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
6
5
  import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
@@ -18,6 +17,9 @@ import { addNotification } from '@commercetools-frontend/notifications';
18
17
  import { useCallback } from 'react';
19
18
  import { useDispatch } from 'react-redux';
20
19
 
20
+ // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
21
+ var version = '20.10.1';
22
+
21
23
  function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
22
24
 
23
25
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context2; _forEachInstanceProperty(_context2 = ownKeys$1(Object(source), true)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context3; _forEachInstanceProperty(_context3 = ownKeys$1(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -84,10 +86,14 @@ function handleActionError(error) {
84
86
  return dispatch(showUnexpectedErrorNotification({
85
87
  errorId: errorId
86
88
  }));
87
- } // logout when unauthorized
89
+ } // When unauthorized, log the user out.
88
90
 
89
91
 
90
92
  if (error.statusCode === STATUS_CODES.UNAUTHORIZED) {
93
+ // Require the browser history on runtime. This allows the package to be used on SSR.
94
+ var _require = require('@commercetools-frontend/browser-history'),
95
+ browserHistory = _require.default;
96
+
91
97
  browserHistory.push("/logout?reason=".concat(LOGOUT_REASONS.UNAUTHORIZED));
92
98
  } // We need to do the return, because if not we see an error notification
93
99
  // The error is handled with the handleUnavailableResource HoC to show the PageNotFound component
@@ -165,7 +171,4 @@ function useOnActionError() {
165
171
  }, [dispatch]);
166
172
  }
167
173
 
168
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
169
- var version = '20.8.0';
170
-
171
174
  export { handleActionError, hideAllPageNotifications, showApiErrorNotification, showNotification, showUnexpectedErrorNotification, useHideAllPageNotifications, useOnActionError, useShowApiErrorNotification, useShowNotification, useShowUnexpectedErrorNotification, version };
@@ -1,15 +1,15 @@
1
- import type { ThunkDispatch } from 'redux-thunk';
2
- import type { TAppNotificationApiError, TStatusCode } from '@commercetools-frontend/constants';
3
- import showApiErrorNotification from './show-api-error-notification';
4
- import showUnexpectedErrorNotification from './show-unexpected-error-notification';
5
- declare type ApiError = {
6
- statusCode: TStatusCode;
7
- body: {
8
- message: string;
9
- errors?: TAppNotificationApiError | TAppNotificationApiError[];
10
- };
11
- };
12
- export declare type ActionError = Error | ApiError;
13
- export declare type DispatchActionError = ThunkDispatch<null, null, ReturnType<typeof showApiErrorNotification> | ReturnType<typeof showUnexpectedErrorNotification>>;
14
- export default function handleActionError(error: ActionError): (dispatch: DispatchActionError) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("..").TApiErrorNotification, "id">> | null;
15
- export {};
1
+ import type { ThunkDispatch } from 'redux-thunk';
2
+ import type { TAppNotificationApiError, TStatusCode } from '@commercetools-frontend/constants';
3
+ import showApiErrorNotification from './show-api-error-notification';
4
+ import showUnexpectedErrorNotification from './show-unexpected-error-notification';
5
+ declare type ApiError = {
6
+ statusCode: TStatusCode;
7
+ body: {
8
+ message: string;
9
+ errors?: TAppNotificationApiError | TAppNotificationApiError[];
10
+ };
11
+ };
12
+ export declare type ActionError = Error | ApiError;
13
+ export declare type DispatchActionError = ThunkDispatch<null, null, ReturnType<typeof showApiErrorNotification> | ReturnType<typeof showUnexpectedErrorNotification>>;
14
+ export default function handleActionError(error: ActionError): (dispatch: DispatchActionError) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("..").TApiErrorNotification, "id">> | null;
15
+ export {};
@@ -1,6 +1,6 @@
1
- import { HIDE_ALL_PAGE_NOTIFICATIONS } from '@commercetools-frontend/constants';
2
- declare type HideAllPageNotificationAction = {
3
- type: typeof HIDE_ALL_PAGE_NOTIFICATIONS;
4
- };
5
- export default function hideAllPageNotifications(): HideAllPageNotificationAction;
6
- export {};
1
+ import { HIDE_ALL_PAGE_NOTIFICATIONS } from '@commercetools-frontend/constants';
2
+ declare type HideAllPageNotificationAction = {
3
+ type: typeof HIDE_ALL_PAGE_NOTIFICATIONS;
4
+ };
5
+ export default function hideAllPageNotifications(): HideAllPageNotificationAction;
6
+ export {};
@@ -1,5 +1,5 @@
1
- export { default as handleActionError } from './handle-action-error';
2
- export { default as hideAllPageNotifications } from './hide-all-page-notifications';
3
- export { default as showApiErrorNotification } from './show-api-error-notification';
4
- export { default as showNotification } from './show-notification';
5
- export { default as showUnexpectedErrorNotification } from './show-unexpected-error-notification';
1
+ export { default as handleActionError } from './handle-action-error';
2
+ export { default as hideAllPageNotifications } from './hide-all-page-notifications';
3
+ export { default as showApiErrorNotification } from './show-api-error-notification';
4
+ export { default as showNotification } from './show-notification';
5
+ export { default as showUnexpectedErrorNotification } from './show-unexpected-error-notification';
@@ -1,2 +1,2 @@
1
- import type { TApiErrorNotification, TApiErrorNotificationOptions } from '../types';
2
- export default function showApiErrorNotification({ errors, }: TApiErrorNotificationOptions): import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<TApiErrorNotification, "id">>;
1
+ import type { TApiErrorNotification, TApiErrorNotificationOptions } from '../types';
2
+ export default function showApiErrorNotification({ errors, }: TApiErrorNotificationOptions): import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<TApiErrorNotification, "id">>;
@@ -1,3 +1,3 @@
1
- import type { TNotificationMetaOptions } from '@commercetools-frontend/notifications';
2
- import type { TShowNotification } from '../types';
3
- export default function showNotification<Notification extends TShowNotification>(notification: Notification, meta?: TNotificationMetaOptions): import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<Notification, "id">>;
1
+ import type { TNotificationMetaOptions } from '@commercetools-frontend/notifications';
2
+ import type { TShowNotification } from '../types';
3
+ export default function showNotification<Notification extends TShowNotification>(notification: Notification, meta?: TNotificationMetaOptions): import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<Notification, "id">>;
@@ -1,3 +1,3 @@
1
- import type { TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
- import type { TUnexpectedErrorNotification } from '../types';
3
- export default function showUnexpectedErrorNotification({ errorId, }?: TAppNotificationValuesUnexpectedError): import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<TUnexpectedErrorNotification, "id">>;
1
+ import type { TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
+ import type { TUnexpectedErrorNotification } from '../types';
3
+ export default function showUnexpectedErrorNotification({ errorId, }?: TAppNotificationValuesUnexpectedError): import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<TUnexpectedErrorNotification, "id">>;
@@ -0,0 +1,2 @@
1
+ import type { DispatchActionError } from './actions/handle-action-error';
2
+ export declare type TDispatchActionError = DispatchActionError;
@@ -1,5 +1,5 @@
1
- export { default as useShowNotification } from './use-show-notification';
2
- export { default as useShowApiErrorNotification } from './use-show-api-error-notification';
3
- export { default as useShowUnexpectedErrorNotification } from './use-show-unexpected-error-notification';
4
- export { default as useHideAllPageNotifications } from './use-hide-all-page-notifications';
5
- export { default as useOnActionError } from './use-on-action-error';
1
+ export { default as useShowNotification } from './use-show-notification';
2
+ export { default as useShowApiErrorNotification } from './use-show-api-error-notification';
3
+ export { default as useShowUnexpectedErrorNotification } from './use-show-unexpected-error-notification';
4
+ export { default as useHideAllPageNotifications } from './use-hide-all-page-notifications';
5
+ export { default as useOnActionError } from './use-on-action-error';
@@ -1,3 +1,3 @@
1
- export default function useHideAllPageNotifications(): () => {
2
- type: "HIDE_ALL_PAGE_NOTIFICATIONS";
3
- };
1
+ export default function useHideAllPageNotifications(): () => {
2
+ type: "HIDE_ALL_PAGE_NOTIFICATIONS";
3
+ };
@@ -1,2 +1,2 @@
1
- import type { ActionError } from '../actions/handle-action-error';
2
- export default function useOnActionError(): (error: ActionError) => (dispatch: import("../actions/handle-action-error").DispatchActionError) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("..").TApiErrorNotification, "id">> | null;
1
+ import type { ActionError } from '../actions/handle-action-error';
2
+ export default function useOnActionError(): (error: ActionError) => (dispatch: import("../actions/handle-action-error").DispatchActionError) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("..").TApiErrorNotification, "id">> | null;
@@ -1,2 +1,2 @@
1
- import type { TApiErrorNotificationOptions } from '../types';
2
- export default function useShowApiErrorNotification(): (options: TApiErrorNotificationOptions) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("../types").TApiErrorNotification, "id">>;
1
+ import type { TApiErrorNotificationOptions } from '../types';
2
+ export default function useShowApiErrorNotification(): (options: TApiErrorNotificationOptions) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("../types").TApiErrorNotification, "id">>;
@@ -1,3 +1,3 @@
1
- import type { TNotificationMetaOptions } from '@commercetools-frontend/notifications';
2
- import type { TShowNotification } from '../types';
3
- export default function useShowNotification<Notification extends TShowNotification>(notificationFragment?: Partial<Notification>): (content: Notification, meta?: TNotificationMetaOptions | undefined) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<Notification, "id">>;
1
+ import type { TNotificationMetaOptions } from '@commercetools-frontend/notifications';
2
+ import type { TShowNotification } from '../types';
3
+ export default function useShowNotification<Notification extends TShowNotification>(notificationFragment?: Partial<Notification>): (content: Notification, meta?: TNotificationMetaOptions | undefined) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<Notification, "id">>;
@@ -1,2 +1,2 @@
1
- import type { TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
- export default function useShowUnexpectedErrorNotification(): (options: TAppNotificationValuesUnexpectedError) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("..").TUnexpectedErrorNotification, "id">>;
1
+ import type { TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
2
+ export default function useShowUnexpectedErrorNotification(): (options: TAppNotificationValuesUnexpectedError) => import("@commercetools-frontend/notifications").TAddNotificationAction<Pick<import("..").TUnexpectedErrorNotification, "id">>;
@@ -1,6 +1,5 @@
1
- import type { DispatchActionError } from './actions/handle-action-error';
2
- export declare type TDispatchActionError = DispatchActionError;
3
- export * from './actions';
4
- export * from './hooks';
5
- export * from './types';
6
- export { default as version } from './version';
1
+ export { default as version } from './version';
2
+ export * from './actions';
3
+ export * from './hooks';
4
+ export * from './types';
5
+ export * from './export-types';
@@ -1,20 +1,20 @@
1
- import type { TNotification } from '@commercetools-frontend/notifications';
2
- import type { TAppNotification, TAppNotificationDomain, TAppNotificationKind, TAppNotificationApiError, TAppNotificationValuesApiError, TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
3
- export declare type TShowNotification = TNotification & {
4
- domain: TAppNotificationDomain;
5
- kind: TAppNotificationKind;
6
- text?: string;
7
- };
8
- export declare type TApiErrorNotification = TNotification & TAppNotification<{
9
- domain: 'page';
10
- kind: 'api-error';
11
- values: TAppNotificationValuesApiError;
12
- }>;
13
- export declare type TUnexpectedErrorNotification = TNotification & TAppNotification<{
14
- domain: 'page';
15
- kind: 'unexpected-error';
16
- values: TAppNotificationValuesUnexpectedError;
17
- }>;
18
- export declare type TApiErrorNotificationOptions = {
19
- errors: TAppNotificationApiError | TAppNotificationApiError[];
20
- };
1
+ import type { TNotification } from '@commercetools-frontend/notifications';
2
+ import type { TAppNotification, TAppNotificationDomain, TAppNotificationKind, TAppNotificationApiError, TAppNotificationValuesApiError, TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants';
3
+ export declare type TShowNotification = TNotification & {
4
+ domain: TAppNotificationDomain;
5
+ kind: TAppNotificationKind;
6
+ text?: string;
7
+ };
8
+ export declare type TApiErrorNotification = TNotification & TAppNotification<{
9
+ domain: 'page';
10
+ kind: 'api-error';
11
+ values: TAppNotificationValuesApiError;
12
+ }>;
13
+ export declare type TUnexpectedErrorNotification = TNotification & TAppNotification<{
14
+ domain: 'page';
15
+ kind: 'unexpected-error';
16
+ values: TAppNotificationValuesUnexpectedError;
17
+ }>;
18
+ export declare type TApiErrorNotificationOptions = {
19
+ errors: TAppNotificationApiError | TAppNotificationApiError[];
20
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: "20.8.0";
2
- export default _default;
1
+ declare const _default: "20.10.1";
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/actions-global",
3
- "version": "20.8.0",
3
+ "version": "20.10.1",
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": {
@@ -22,22 +22,22 @@
22
22
  "prepare": "./../../scripts/version.js replace"
23
23
  },
24
24
  "dependencies": {
25
- "@babel/runtime": "7.14.8",
26
- "@babel/runtime-corejs3": "7.14.8",
27
- "@commercetools-frontend/browser-history": "20.8.0",
28
- "@commercetools-frontend/constants": "20.8.0",
29
- "@commercetools-frontend/notifications": "20.8.0",
30
- "@commercetools-frontend/sentry": "20.8.0",
25
+ "@babel/runtime": "7.15.4",
26
+ "@babel/runtime-corejs3": "7.15.4",
27
+ "@commercetools-frontend/browser-history": "20.10.1",
28
+ "@commercetools-frontend/constants": "20.10.1",
29
+ "@commercetools-frontend/notifications": "20.10.1",
30
+ "@commercetools-frontend/sentry": "20.10.1",
31
31
  "@types/lodash": "^4.14.167",
32
- "@types/react": "^17.0.7",
32
+ "@types/react": "^17.0.16",
33
33
  "@types/react-redux": "^7.1.16",
34
34
  "lodash": "4.17.21",
35
35
  "redux-thunk": "2.3.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "react": "17.0.2",
39
- "react-redux": "7.2.4",
40
- "redux": "4.1.0"
39
+ "react-redux": "7.2.5",
40
+ "redux": "4.1.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": "17.x",