@commercetools-uikit/link 19.11.0 → 19.12.1
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',
|
|
@@ -121,7 +121,7 @@ Link.defaultProps = defaultProps;
|
|
|
121
121
|
var Link$1 = Link;
|
|
122
122
|
|
|
123
123
|
// NOTE: This string will be replaced on build time with the package version.
|
|
124
|
-
var version = "19.
|
|
124
|
+
var version = "19.12.1";
|
|
125
125
|
|
|
126
126
|
exports["default"] = Link$1;
|
|
127
127
|
exports.version = version;
|
|
@@ -106,7 +106,7 @@ Link.defaultProps = defaultProps;
|
|
|
106
106
|
var Link$1 = Link;
|
|
107
107
|
|
|
108
108
|
// NOTE: This string will be replaced on build time with the package version.
|
|
109
|
-
var version = "19.
|
|
109
|
+
var version = "19.12.1";
|
|
110
110
|
|
|
111
111
|
exports["default"] = Link$1;
|
|
112
112
|
exports.version = version;
|
|
@@ -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',
|
|
@@ -104,6 +104,6 @@ Link.defaultProps = defaultProps;
|
|
|
104
104
|
var Link$1 = Link;
|
|
105
105
|
|
|
106
106
|
// NOTE: This string will be replaced on build time with the package version.
|
|
107
|
-
var version = "19.
|
|
107
|
+
var version = "19.12.1";
|
|
108
108
|
|
|
109
109
|
export { Link$1 as default, version };
|
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.1",
|
|
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.1",
|
|
25
|
+
"@commercetools-uikit/icons": "19.12.1",
|
|
26
|
+
"@commercetools-uikit/spacings-inline": "19.12.1",
|
|
27
|
+
"@commercetools-uikit/utils": "19.12.1",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"@emotion/styled": "^11.10.5",
|
|
30
30
|
"@types/history": "^4.7.11",
|