@commercetools-uikit/notifications 19.10.0 → 19.12.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.
|
@@ -38,8 +38,8 @@ function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Objec
|
|
|
38
38
|
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; }
|
|
39
39
|
const warnIfMissingContent = props => {
|
|
40
40
|
const hasContent = Boolean(props.intlMessage) || Boolean(react$1.Children.count(props.children));
|
|
41
|
-
process.env.NODE_ENV !== "production" ? utils.warning(hasContent, ['Warning: Failed prop type:',
|
|
42
|
-
process.env.NODE_ENV !== "production" ? utils.warning(hasContent, ['Warning: Failed prop type:',
|
|
41
|
+
process.env.NODE_ENV !== "production" ? utils.warning(hasContent, ['Warning: Failed prop type:', `The prop \`intlMessage\` is marked as required in \`Link\``, 'but its value is `undefined`'].join(' ')) : void 0;
|
|
42
|
+
process.env.NODE_ENV !== "production" ? utils.warning(hasContent, ['Warning: Failed prop type:', `The prop \`children\` is marked as required in \`Link\``, 'but its value is `undefined`'].join(' ')) : void 0;
|
|
43
43
|
};
|
|
44
44
|
const getIconByType = props => {
|
|
45
45
|
switch (props.type) {
|
|
@@ -148,7 +148,7 @@ ContentNotification.displayName = 'ContentNotification';
|
|
|
148
148
|
var ContentNotification$1 = ContentNotification;
|
|
149
149
|
|
|
150
150
|
// NOTE: This string will be replaced on build time with the package version.
|
|
151
|
-
var version = "19.
|
|
151
|
+
var version = "19.11.0";
|
|
152
152
|
|
|
153
153
|
exports.ContentNotification = ContentNotification$1;
|
|
154
154
|
exports.version = version;
|
|
@@ -131,7 +131,7 @@ ContentNotification.displayName = 'ContentNotification';
|
|
|
131
131
|
var ContentNotification$1 = ContentNotification;
|
|
132
132
|
|
|
133
133
|
// NOTE: This string will be replaced on build time with the package version.
|
|
134
|
-
var version = "19.
|
|
134
|
+
var version = "19.11.0";
|
|
135
135
|
|
|
136
136
|
exports.ContentNotification = ContentNotification$1;
|
|
137
137
|
exports.version = version;
|
|
@@ -21,8 +21,8 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
21
21
|
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; }
|
|
22
22
|
const warnIfMissingContent = props => {
|
|
23
23
|
const hasContent = Boolean(props.intlMessage) || Boolean(Children.count(props.children));
|
|
24
|
-
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:',
|
|
25
|
-
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:',
|
|
24
|
+
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:', `The prop \`intlMessage\` is marked as required in \`Link\``, 'but its value is `undefined`'].join(' ')) : void 0;
|
|
25
|
+
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:', `The prop \`children\` is marked as required in \`Link\``, 'but its value is `undefined`'].join(' ')) : void 0;
|
|
26
26
|
};
|
|
27
27
|
const getIconByType = props => {
|
|
28
28
|
switch (props.type) {
|
|
@@ -131,6 +131,6 @@ ContentNotification.displayName = 'ContentNotification';
|
|
|
131
131
|
var ContentNotification$1 = ContentNotification;
|
|
132
132
|
|
|
133
133
|
// NOTE: This string will be replaced on build time with the package version.
|
|
134
|
-
var version = "19.
|
|
134
|
+
var version = "19.11.0";
|
|
135
135
|
|
|
136
136
|
export { ContentNotification$1 as ContentNotification, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/notifications",
|
|
3
3
|
"description": "Notification components.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.12.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/icons": "19.
|
|
27
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "19.12.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.12.0",
|
|
26
|
+
"@commercetools-uikit/icons": "19.12.0",
|
|
27
|
+
"@commercetools-uikit/utils": "19.12.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"prop-types": "15.8.1"
|
|
30
30
|
},
|