@commercetools-uikit/link 19.11.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.
|
@@ -39,8 +39,8 @@ function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Objec
|
|
|
39
39
|
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; }
|
|
40
40
|
const warnIfMissingContent = props => {
|
|
41
41
|
const hasContent = Boolean(props.intlMessage) || Boolean(react$1.Children.count(props.children));
|
|
42
|
-
process.env.NODE_ENV !== "production" ? utils.warning(hasContent, ['Warning: Failed prop type:',
|
|
43
|
-
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:', `The prop \`intlMessage\` is marked as required in \`Link\``, 'but its value is `undefined`'].join(' ')) : void 0;
|
|
43
|
+
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;
|
|
44
44
|
};
|
|
45
45
|
const defaultProps = {
|
|
46
46
|
tone: 'primary',
|
|
@@ -22,8 +22,8 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
22
22
|
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; }
|
|
23
23
|
const warnIfMissingContent = props => {
|
|
24
24
|
const hasContent = Boolean(props.intlMessage) || Boolean(Children.count(props.children));
|
|
25
|
-
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:',
|
|
26
|
-
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:',
|
|
25
|
+
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;
|
|
26
|
+
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;
|
|
27
27
|
};
|
|
28
28
|
const defaultProps = {
|
|
29
29
|
tone: 'primary',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/link",
|
|
3
3
|
"description": "Links are used either to link to other UI routes, or to link to external pages. This component is a very thin wrapper over either a React Router Link, or a normal HTML <a> tag.",
|
|
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/design-system": "19.
|
|
25
|
-
"@commercetools-uikit/icons": "19.
|
|
26
|
-
"@commercetools-uikit/spacings-inline": "19.
|
|
27
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/design-system": "19.12.0",
|
|
25
|
+
"@commercetools-uikit/icons": "19.12.0",
|
|
26
|
+
"@commercetools-uikit/spacings-inline": "19.12.0",
|
|
27
|
+
"@commercetools-uikit/utils": "19.12.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"@emotion/styled": "^11.10.5",
|
|
30
30
|
"@types/history": "^4.7.11",
|