@commercetools-uikit/link 20.2.3 → 20.3.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 getTextColorValue = function () {
|
|
46
46
|
let tone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'primary';
|
|
@@ -115,7 +115,7 @@ Link.displayName = 'Link';
|
|
|
115
115
|
var Link$1 = Link;
|
|
116
116
|
|
|
117
117
|
// NOTE: This string will be replaced on build time with the package version.
|
|
118
|
-
var version = "20.
|
|
118
|
+
var version = "20.3.0";
|
|
119
119
|
|
|
120
120
|
exports["default"] = Link$1;
|
|
121
121
|
exports.version = version;
|
|
@@ -110,7 +110,7 @@ Link.displayName = 'Link';
|
|
|
110
110
|
var Link$1 = Link;
|
|
111
111
|
|
|
112
112
|
// NOTE: This string will be replaced on build time with the package version.
|
|
113
|
-
var version = "20.
|
|
113
|
+
var version = "20.3.0";
|
|
114
114
|
|
|
115
115
|
exports["default"] = Link$1;
|
|
116
116
|
exports.version = version;
|
|
@@ -23,8 +23,8 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
23
23
|
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; }
|
|
24
24
|
const warnIfMissingContent = props => {
|
|
25
25
|
const hasContent = Boolean(props.intlMessage) || Boolean(Children.count(props.children));
|
|
26
|
-
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:',
|
|
27
|
-
process.env.NODE_ENV !== "production" ? warning(hasContent, ['Warning: Failed prop type:',
|
|
26
|
+
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;
|
|
27
|
+
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;
|
|
28
28
|
};
|
|
29
29
|
const getTextColorValue = function () {
|
|
30
30
|
let tone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'primary';
|
|
@@ -99,6 +99,6 @@ Link.displayName = 'Link';
|
|
|
99
99
|
var Link$1 = Link;
|
|
100
100
|
|
|
101
101
|
// NOTE: This string will be replaced on build time with the package version.
|
|
102
|
-
var version = "20.
|
|
102
|
+
var version = "20.3.0";
|
|
103
103
|
|
|
104
104
|
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": "20.
|
|
4
|
+
"version": "20.3.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": "20.
|
|
25
|
-
"@commercetools-uikit/icons": "20.
|
|
26
|
-
"@commercetools-uikit/spacings-inline": "20.
|
|
27
|
-
"@commercetools-uikit/utils": "20.
|
|
24
|
+
"@commercetools-uikit/design-system": "20.3.0",
|
|
25
|
+
"@commercetools-uikit/icons": "20.3.0",
|
|
26
|
+
"@commercetools-uikit/spacings-inline": "20.3.0",
|
|
27
|
+
"@commercetools-uikit/utils": "20.3.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"@emotion/styled": "^11.10.5",
|
|
30
30
|
"@types/history": "^4.7.11",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"history": "4.10.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"react": "19.
|
|
35
|
+
"react": "19.2.0",
|
|
36
36
|
"react-intl": "^7.1.4",
|
|
37
37
|
"react-router-dom": "5.3.4"
|
|
38
38
|
},
|