@commercetools-frontend/react-notifications 22.7.0 → 22.8.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.
|
@@ -62,7 +62,7 @@ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanc
|
|
|
62
62
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
63
63
|
|
|
64
64
|
// NOTE: This string will be replaced on build time with the package version.
|
|
65
|
-
var version = "22.
|
|
65
|
+
var version = "22.8.0";
|
|
66
66
|
|
|
67
67
|
const Context = /*#__PURE__*/react.createContext(() => null);
|
|
68
68
|
function NotificationProviderForCustomComponent(props) {
|
|
@@ -146,8 +146,8 @@ const getStylesForNotification = props => {
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
function ownKeys$4(
|
|
150
|
-
function _objectSpread$4(
|
|
149
|
+
function ownKeys$4(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; }
|
|
150
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
151
151
|
const sequentialId = utils.createSequentialId('notification-');
|
|
152
152
|
const NotificationIcon = props => {
|
|
153
153
|
if (props.type === constants.NOTIFICATION_KINDS_SIDE.error) {
|
|
@@ -357,8 +357,8 @@ var apiErrorMessages = reactIntl.defineMessages({
|
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
|
|
360
|
-
function ownKeys$3(
|
|
361
|
-
function _objectSpread$3(
|
|
360
|
+
function ownKeys$3(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; }
|
|
361
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$3(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$3(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
362
362
|
const regexInvalidOperationRequiredAttribute = /Required attribute '(.*)' cannot be removed/;
|
|
363
363
|
|
|
364
364
|
// `error` fields for REST errors
|
|
@@ -546,8 +546,8 @@ GenericNotification.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
546
546
|
} : {};
|
|
547
547
|
GenericNotification.displayName = 'GenericNotification';
|
|
548
548
|
|
|
549
|
-
function ownKeys$2(
|
|
550
|
-
function _objectSpread$2(
|
|
549
|
+
function ownKeys$2(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; }
|
|
550
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
551
551
|
const UnexpectedErrorNotification = props => jsxRuntime.jsx(Notification, {
|
|
552
552
|
type: "error",
|
|
553
553
|
domain: props.notification.domain,
|
|
@@ -597,8 +597,8 @@ const _excluded = ["values"],
|
|
|
597
597
|
_excluded3 = ["values"],
|
|
598
598
|
_excluded4 = ["text"],
|
|
599
599
|
_excluded5 = ["text"];
|
|
600
|
-
function ownKeys$1(
|
|
601
|
-
function _objectSpread$1(
|
|
600
|
+
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; }
|
|
601
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
602
602
|
const NotificationsListGlobal = props => {
|
|
603
603
|
const dispatch = reactRedux.useDispatch();
|
|
604
604
|
const mapCustomNotificationToComponent = useCustomNotificationComponent();
|
|
@@ -771,8 +771,8 @@ const NotificationsList = props => {
|
|
|
771
771
|
};
|
|
772
772
|
NotificationsList.displayName = 'NotificationsList';
|
|
773
773
|
|
|
774
|
-
function ownKeys(
|
|
775
|
-
function _objectSpread(
|
|
774
|
+
function ownKeys(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; }
|
|
775
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
776
776
|
const defaultProps = {
|
|
777
777
|
domain: constants.NOTIFICATION_DOMAINS.SIDE,
|
|
778
778
|
kind: constants.NOTIFICATION_KINDS_SIDE.success
|
|
@@ -62,7 +62,7 @@ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanc
|
|
|
62
62
|
var isNumber__default = /*#__PURE__*/_interopDefault(isNumber);
|
|
63
63
|
|
|
64
64
|
// NOTE: This string will be replaced on build time with the package version.
|
|
65
|
-
var version = "22.
|
|
65
|
+
var version = "22.8.0";
|
|
66
66
|
|
|
67
67
|
const Context = /*#__PURE__*/react.createContext(() => null);
|
|
68
68
|
function NotificationProviderForCustomComponent(props) {
|
|
@@ -143,8 +143,8 @@ const getStylesForNotification = props => {
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
function ownKeys$4(
|
|
147
|
-
function _objectSpread$4(
|
|
146
|
+
function ownKeys$4(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; }
|
|
147
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
148
148
|
const sequentialId = utils.createSequentialId('notification-');
|
|
149
149
|
const NotificationIcon = props => {
|
|
150
150
|
if (props.type === constants.NOTIFICATION_KINDS_SIDE.error) {
|
|
@@ -345,8 +345,8 @@ var apiErrorMessages = reactIntl.defineMessages({
|
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
|
|
348
|
-
function ownKeys$3(
|
|
349
|
-
function _objectSpread$3(
|
|
348
|
+
function ownKeys$3(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; }
|
|
349
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$3(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$3(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
350
350
|
const regexInvalidOperationRequiredAttribute = /Required attribute '(.*)' cannot be removed/;
|
|
351
351
|
|
|
352
352
|
// `error` fields for REST errors
|
|
@@ -526,8 +526,8 @@ const GenericNotification = props => jsxRuntime.jsx(Notification, {
|
|
|
526
526
|
GenericNotification.propTypes = {};
|
|
527
527
|
GenericNotification.displayName = 'GenericNotification';
|
|
528
528
|
|
|
529
|
-
function ownKeys$2(
|
|
530
|
-
function _objectSpread$2(
|
|
529
|
+
function ownKeys$2(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; }
|
|
530
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
531
531
|
const UnexpectedErrorNotification = props => jsxRuntime.jsx(Notification, {
|
|
532
532
|
type: "error",
|
|
533
533
|
domain: props.notification.domain,
|
|
@@ -574,8 +574,8 @@ const _excluded = ["values"],
|
|
|
574
574
|
_excluded3 = ["values"],
|
|
575
575
|
_excluded4 = ["text"],
|
|
576
576
|
_excluded5 = ["text"];
|
|
577
|
-
function ownKeys$1(
|
|
578
|
-
function _objectSpread$1(
|
|
577
|
+
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; }
|
|
578
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
579
579
|
const NotificationsListGlobal = props => {
|
|
580
580
|
const dispatch = reactRedux.useDispatch();
|
|
581
581
|
const mapCustomNotificationToComponent = useCustomNotificationComponent();
|
|
@@ -742,8 +742,8 @@ const NotificationsList = props => {
|
|
|
742
742
|
};
|
|
743
743
|
NotificationsList.displayName = 'NotificationsList';
|
|
744
744
|
|
|
745
|
-
function ownKeys(
|
|
746
|
-
function _objectSpread(
|
|
745
|
+
function ownKeys(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; }
|
|
746
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
747
747
|
const defaultProps = {
|
|
748
748
|
domain: constants.NOTIFICATION_DOMAINS.SIDE,
|
|
749
749
|
kind: constants.NOTIFICATION_KINDS_SIDE.success
|
|
@@ -36,7 +36,7 @@ import isNumber from 'lodash/isNumber';
|
|
|
36
36
|
import { useShowNotification } from '@commercetools-frontend/actions-global';
|
|
37
37
|
|
|
38
38
|
// NOTE: This string will be replaced on build time with the package version.
|
|
39
|
-
var version = "22.
|
|
39
|
+
var version = "22.8.0";
|
|
40
40
|
|
|
41
41
|
const Context = /*#__PURE__*/createContext(() => null);
|
|
42
42
|
function NotificationProviderForCustomComponent(props) {
|
|
@@ -120,8 +120,8 @@ const getStylesForNotification = props => {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
function ownKeys$4(
|
|
124
|
-
function _objectSpread$4(
|
|
123
|
+
function ownKeys$4(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; }
|
|
124
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
125
125
|
const sequentialId = createSequentialId('notification-');
|
|
126
126
|
const NotificationIcon = props => {
|
|
127
127
|
if (props.type === NOTIFICATION_KINDS_SIDE.error) {
|
|
@@ -331,8 +331,8 @@ var apiErrorMessages = defineMessages({
|
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
|
|
334
|
-
function ownKeys$3(
|
|
335
|
-
function _objectSpread$3(
|
|
334
|
+
function ownKeys$3(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; }
|
|
335
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = ownKeys$3(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = ownKeys$3(Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
336
336
|
const regexInvalidOperationRequiredAttribute = /Required attribute '(.*)' cannot be removed/;
|
|
337
337
|
|
|
338
338
|
// `error` fields for REST errors
|
|
@@ -520,8 +520,8 @@ GenericNotification.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
520
520
|
} : {};
|
|
521
521
|
GenericNotification.displayName = 'GenericNotification';
|
|
522
522
|
|
|
523
|
-
function ownKeys$2(
|
|
524
|
-
function _objectSpread$2(
|
|
523
|
+
function ownKeys$2(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; }
|
|
524
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
525
525
|
const UnexpectedErrorNotification = props => jsx(Notification, {
|
|
526
526
|
type: "error",
|
|
527
527
|
domain: props.notification.domain,
|
|
@@ -571,8 +571,8 @@ const _excluded = ["values"],
|
|
|
571
571
|
_excluded3 = ["values"],
|
|
572
572
|
_excluded4 = ["text"],
|
|
573
573
|
_excluded5 = ["text"];
|
|
574
|
-
function ownKeys$1(
|
|
575
|
-
function _objectSpread$1(
|
|
574
|
+
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; }
|
|
575
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
576
576
|
const NotificationsListGlobal = props => {
|
|
577
577
|
const dispatch = useDispatch();
|
|
578
578
|
const mapCustomNotificationToComponent = useCustomNotificationComponent();
|
|
@@ -745,8 +745,8 @@ const NotificationsList = props => {
|
|
|
745
745
|
};
|
|
746
746
|
NotificationsList.displayName = 'NotificationsList';
|
|
747
747
|
|
|
748
|
-
function ownKeys(
|
|
749
|
-
function _objectSpread(
|
|
748
|
+
function ownKeys(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; }
|
|
749
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
750
750
|
const defaultProps = {
|
|
751
751
|
domain: NOTIFICATION_DOMAINS.SIDE,
|
|
752
752
|
kind: NOTIFICATION_KINDS_SIDE.success
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/react-notifications",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.8.0",
|
|
4
4
|
"description": "React bindings for @commercetools-frontend/notifications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/runtime": "^7.
|
|
32
|
-
"@babel/runtime-corejs3": "^7.
|
|
33
|
-
"@commercetools-frontend/actions-global": "22.
|
|
34
|
-
"@commercetools-frontend/constants": "22.
|
|
35
|
-
"@commercetools-frontend/notifications": "22.
|
|
36
|
-
"@commercetools-frontend/sentry": "22.
|
|
37
|
-
"@commercetools-uikit/design-system": "^16.7.
|
|
38
|
-
"@commercetools-uikit/hooks": "^16.7.
|
|
39
|
-
"@commercetools-uikit/icon-button": "^16.7.
|
|
40
|
-
"@commercetools-uikit/icons": "^16.7.
|
|
41
|
-
"@commercetools-uikit/secondary-icon-button": "^16.7.
|
|
42
|
-
"@commercetools-uikit/spacings": "^16.7.
|
|
43
|
-
"@commercetools-uikit/utils": "^16.7.
|
|
31
|
+
"@babel/runtime": "^7.22.15",
|
|
32
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
33
|
+
"@commercetools-frontend/actions-global": "22.8.0",
|
|
34
|
+
"@commercetools-frontend/constants": "22.8.0",
|
|
35
|
+
"@commercetools-frontend/notifications": "22.8.0",
|
|
36
|
+
"@commercetools-frontend/sentry": "22.8.0",
|
|
37
|
+
"@commercetools-uikit/design-system": "^16.7.3",
|
|
38
|
+
"@commercetools-uikit/hooks": "^16.7.3",
|
|
39
|
+
"@commercetools-uikit/icon-button": "^16.7.3",
|
|
40
|
+
"@commercetools-uikit/icons": "^16.7.3",
|
|
41
|
+
"@commercetools-uikit/secondary-icon-button": "^16.7.3",
|
|
42
|
+
"@commercetools-uikit/spacings": "^16.7.3",
|
|
43
|
+
"@commercetools-uikit/utils": "^16.7.3",
|
|
44
44
|
"@emotion/react": "11.11.0",
|
|
45
45
|
"@emotion/styled": "11.11.0",
|
|
46
46
|
"@types/history": "^4.7.11",
|
|
47
|
-
"@types/lodash": "^4.14.
|
|
47
|
+
"@types/lodash": "^4.14.198",
|
|
48
48
|
"@types/prop-types": "^15.7.5",
|
|
49
|
-
"@types/react": "^17.0.
|
|
49
|
+
"@types/react": "^17.0.56",
|
|
50
50
|
"@types/react-dom": "^17.0.19",
|
|
51
|
-
"@types/react-redux": "^7.1.
|
|
51
|
+
"@types/react-redux": "^7.1.26",
|
|
52
52
|
"@types/react-router": "^5.1.20",
|
|
53
53
|
"@types/react-router-dom": "^5.3.3",
|
|
54
54
|
"lodash": "4.17.21",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"reselect": "4.1.8"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@types/jest": "^29.5.
|
|
62
|
-
"@types/testing-library__jest-dom": "^5.14.
|
|
61
|
+
"@types/jest": "^29.5.4",
|
|
62
|
+
"@types/testing-library__jest-dom": "^5.14.9",
|
|
63
63
|
"jest": "29.5.0",
|
|
64
64
|
"jest-mock": "29.5.0",
|
|
65
65
|
"react": "17.0.2",
|
|
66
66
|
"react-dom": "17.0.2",
|
|
67
|
-
"react-intl": "^6.4.
|
|
67
|
+
"react-intl": "^6.4.5",
|
|
68
68
|
"react-redux": "7.2.9",
|
|
69
69
|
"react-router-dom": "5.3.4"
|
|
70
70
|
},
|