@commercetools-frontend/actions-global 21.23.7 → 21.23.9
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var history = require('@commercetools-frontend/browser-history');
|
|
5
6
|
var constants = require('@commercetools-frontend/constants');
|
|
6
7
|
var sentry = require('@commercetools-frontend/sentry');
|
|
7
8
|
var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
@@ -23,6 +24,7 @@ var reactRedux = require('react-redux');
|
|
|
23
24
|
|
|
24
25
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
25
26
|
|
|
27
|
+
var history__default = /*#__PURE__*/_interopDefault(history);
|
|
26
28
|
var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
|
|
27
29
|
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
28
30
|
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
@@ -37,7 +39,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
|
|
|
37
39
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
38
40
|
|
|
39
41
|
// NOTE: This string will be replaced on build time with the package version.
|
|
40
|
-
var version = "21.23.
|
|
42
|
+
var version = "21.23.9";
|
|
41
43
|
|
|
42
44
|
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
45
|
|
|
@@ -109,11 +111,7 @@ function handleActionError(error) {
|
|
|
109
111
|
|
|
110
112
|
|
|
111
113
|
if (error.statusCode === constants.STATUS_CODES.UNAUTHORIZED) {
|
|
112
|
-
|
|
113
|
-
var _require = require('@commercetools-frontend/browser-history'),
|
|
114
|
-
browserHistory = _require.default;
|
|
115
|
-
|
|
116
|
-
browserHistory.push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
|
|
114
|
+
history__default["default"].push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
|
|
117
115
|
} // We need to do the return, because if not we see an error notification
|
|
118
116
|
// The error is handled with the handleUnavailableResource HoC to show the PageNotFound component
|
|
119
117
|
// when the api returns 404
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var history = require('@commercetools-frontend/browser-history');
|
|
5
6
|
var constants = require('@commercetools-frontend/constants');
|
|
6
7
|
var sentry = require('@commercetools-frontend/sentry');
|
|
7
8
|
var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
@@ -23,6 +24,7 @@ var reactRedux = require('react-redux');
|
|
|
23
24
|
|
|
24
25
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
25
26
|
|
|
27
|
+
var history__default = /*#__PURE__*/_interopDefault(history);
|
|
26
28
|
var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
|
|
27
29
|
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
28
30
|
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
@@ -35,7 +37,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
|
|
|
35
37
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
36
38
|
|
|
37
39
|
// NOTE: This string will be replaced on build time with the package version.
|
|
38
|
-
var version = "21.23.
|
|
40
|
+
var version = "21.23.9";
|
|
39
41
|
|
|
40
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; }
|
|
41
43
|
|
|
@@ -100,11 +102,7 @@ function handleActionError(error) {
|
|
|
100
102
|
|
|
101
103
|
|
|
102
104
|
if (error.statusCode === constants.STATUS_CODES.UNAUTHORIZED) {
|
|
103
|
-
|
|
104
|
-
var _require = require('@commercetools-frontend/browser-history'),
|
|
105
|
-
browserHistory = _require.default;
|
|
106
|
-
|
|
107
|
-
browserHistory.push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
|
|
105
|
+
history__default["default"].push("/logout?reason=".concat(constants.LOGOUT_REASONS.UNAUTHORIZED));
|
|
108
106
|
} // We need to do the return, because if not we see an error notification
|
|
109
107
|
// The error is handled with the handleUnavailableResource HoC to show the PageNotFound component
|
|
110
108
|
// when the api returns 404
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import history from '@commercetools-frontend/browser-history';
|
|
1
2
|
import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_SIDE, DOMAINS, STATUS_CODES, LOGOUT_REASONS, HIDE_ALL_PAGE_NOTIFICATIONS } from '@commercetools-frontend/constants';
|
|
2
3
|
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
|
|
3
4
|
import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
@@ -18,7 +19,7 @@ import { useCallback } from 'react';
|
|
|
18
19
|
import { useDispatch } from 'react-redux';
|
|
19
20
|
|
|
20
21
|
// NOTE: This string will be replaced on build time with the package version.
|
|
21
|
-
var version = "21.23.
|
|
22
|
+
var version = "21.23.9";
|
|
22
23
|
|
|
23
24
|
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
25
|
|
|
@@ -90,11 +91,7 @@ function handleActionError(error) {
|
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
if (error.statusCode === STATUS_CODES.UNAUTHORIZED) {
|
|
93
|
-
|
|
94
|
-
var _require = require('@commercetools-frontend/browser-history'),
|
|
95
|
-
browserHistory = _require.default;
|
|
96
|
-
|
|
97
|
-
browserHistory.push("/logout?reason=".concat(LOGOUT_REASONS.UNAUTHORIZED));
|
|
94
|
+
history.push("/logout?reason=".concat(LOGOUT_REASONS.UNAUTHORIZED));
|
|
98
95
|
} // We need to do the return, because if not we see an error notification
|
|
99
96
|
// The error is handled with the handleUnavailableResource HoC to show the PageNotFound component
|
|
100
97
|
// when the api returns 404
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/actions-global",
|
|
3
|
-
"version": "21.23.
|
|
3
|
+
"version": "21.23.9",
|
|
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": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/runtime": "^7.20.13",
|
|
22
22
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
23
|
-
"@commercetools-frontend/browser-history": "21.23.
|
|
24
|
-
"@commercetools-frontend/constants": "21.23.
|
|
25
|
-
"@commercetools-frontend/notifications": "21.23.
|
|
26
|
-
"@commercetools-frontend/sentry": "21.23.
|
|
23
|
+
"@commercetools-frontend/browser-history": "21.23.9",
|
|
24
|
+
"@commercetools-frontend/constants": "21.23.9",
|
|
25
|
+
"@commercetools-frontend/notifications": "21.23.9",
|
|
26
|
+
"@commercetools-frontend/sentry": "21.23.9",
|
|
27
27
|
"@types/lodash": "^4.14.191",
|
|
28
28
|
"@types/react": "^17.0.53",
|
|
29
29
|
"@types/react-redux": "^7.1.25",
|