@commercetools-frontend/actions-global 25.0.0 → 25.1.0
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.
|
@@ -39,7 +39,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
|
|
|
39
39
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
40
40
|
|
|
41
41
|
// NOTE: This string will be replaced on build time with the package version.
|
|
42
|
-
var version = "25.
|
|
42
|
+
var version = "25.1.0";
|
|
43
43
|
|
|
44
44
|
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45
45
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -49,7 +49,7 @@ function showNotification(notification) {
|
|
|
49
49
|
var _context;
|
|
50
50
|
if (!_includesInstanceProperty__default["default"](_context = _Object$values__default["default"](constants.NOTIFICATION_DOMAINS)).call(_context, notification.domain))
|
|
51
51
|
// eslint-disable-next-line no-console
|
|
52
|
-
console.warn(
|
|
52
|
+
console.warn(`Unknown notification domain "${notification.domain}"`, notification);
|
|
53
53
|
}
|
|
54
54
|
// eslint-disable-next-line no-console
|
|
55
55
|
else console.warn('Notification is missing domain', notification);
|
|
@@ -108,7 +108,7 @@ function handleActionError(error) {
|
|
|
108
108
|
|
|
109
109
|
// When unauthorized, log the user out.
|
|
110
110
|
if (error.statusCode === constants.STATUS_CODES.UNAUTHORIZED) {
|
|
111
|
-
history__default["default"].push(
|
|
111
|
+
history__default["default"].push(`/logout?reason=${constants.LOGOUT_REASONS.UNAUTHORIZED}`);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// We need to do the return, because if not we see an error notification
|
|
@@ -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 = "25.
|
|
40
|
+
var version = "25.1.0";
|
|
41
41
|
|
|
42
42
|
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43
43
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -98,7 +98,7 @@ function handleActionError(error) {
|
|
|
98
98
|
|
|
99
99
|
// When unauthorized, log the user out.
|
|
100
100
|
if (error.statusCode === constants.STATUS_CODES.UNAUTHORIZED) {
|
|
101
|
-
history__default["default"].push(
|
|
101
|
+
history__default["default"].push(`/logout?reason=${constants.LOGOUT_REASONS.UNAUTHORIZED}`);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// We need to do the return, because if not we see an error notification
|
|
@@ -19,7 +19,7 @@ import { useCallback } from 'react';
|
|
|
19
19
|
import { useDispatch } from 'react-redux';
|
|
20
20
|
|
|
21
21
|
// NOTE: This string will be replaced on build time with the package version.
|
|
22
|
-
var version = "25.
|
|
22
|
+
var version = "25.1.0";
|
|
23
23
|
|
|
24
24
|
function ownKeys$1(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
25
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -29,7 +29,7 @@ function showNotification(notification) {
|
|
|
29
29
|
var _context;
|
|
30
30
|
if (!_includesInstanceProperty(_context = _Object$values(NOTIFICATION_DOMAINS)).call(_context, notification.domain))
|
|
31
31
|
// eslint-disable-next-line no-console
|
|
32
|
-
console.warn(
|
|
32
|
+
console.warn(`Unknown notification domain "${notification.domain}"`, notification);
|
|
33
33
|
}
|
|
34
34
|
// eslint-disable-next-line no-console
|
|
35
35
|
else console.warn('Notification is missing domain', notification);
|
|
@@ -88,7 +88,7 @@ function handleActionError(error) {
|
|
|
88
88
|
|
|
89
89
|
// When unauthorized, log the user out.
|
|
90
90
|
if (error.statusCode === STATUS_CODES.UNAUTHORIZED) {
|
|
91
|
-
history.push(
|
|
91
|
+
history.push(`/logout?reason=${LOGOUT_REASONS.UNAUTHORIZED}`);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
// We need to do the return, because if not we see an error notification
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/actions-global",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.0",
|
|
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": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.22.15",
|
|
32
32
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
33
|
-
"@commercetools-frontend/browser-history": "25.
|
|
34
|
-
"@commercetools-frontend/constants": "25.
|
|
35
|
-
"@commercetools-frontend/notifications": "25.
|
|
36
|
-
"@commercetools-frontend/sentry": "25.
|
|
33
|
+
"@commercetools-frontend/browser-history": "25.1.0",
|
|
34
|
+
"@commercetools-frontend/constants": "25.1.0",
|
|
35
|
+
"@commercetools-frontend/notifications": "25.1.0",
|
|
36
|
+
"@commercetools-frontend/sentry": "25.1.0",
|
|
37
37
|
"@types/lodash": "^4.14.198",
|
|
38
38
|
"@types/react": "^19.0.3",
|
|
39
39
|
"lodash": "4.17.21",
|