@commercetools-uikit/link 20.5.0 → 20.6.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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -->
2
- <!-- This file is created by the `yarn generate-readme` script. -->
2
+ <!-- This file is created by the `pnpm generate-readme` script. -->
3
3
 
4
4
  # Link
5
5
 
@@ -10,7 +10,7 @@ Links are used either to link to other UI routes, or to link to external pages.
10
10
  ## Installation
11
11
 
12
12
  ```
13
- yarn add @commercetools-uikit/link
13
+ pnpm add @commercetools-uikit/link
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/link
20
20
  Additionally install the peer dependencies (if not present)
21
21
 
22
22
  ```
23
- yarn add react react-intl react-router-dom
23
+ pnpm add react react-intl react-router-dom
24
24
  ```
25
25
 
26
26
  ```
@@ -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:', "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;
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.5.0";
118
+ var version = "20.6.1";
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.5.0";
113
+ var version = "20.6.1";
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:', "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;
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.5.0";
102
+ var version = "20.6.1";
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.5.0",
4
+ "version": "20.6.1",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,7 +9,13 @@
9
9
  "directory": "packages/components/link"
10
10
  },
11
11
  "homepage": "https://uikit.commercetools.com",
12
- "keywords": ["javascript", "typescript", "design-system", "react", "uikit"],
12
+ "keywords": [
13
+ "javascript",
14
+ "typescript",
15
+ "design-system",
16
+ "react",
17
+ "uikit"
18
+ ],
13
19
  "license": "MIT",
14
20
  "publishConfig": {
15
21
  "access": "public"
@@ -17,22 +23,24 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-link.cjs.js",
19
25
  "module": "dist/commercetools-uikit-link.esm.js",
20
- "files": ["dist"],
26
+ "files": [
27
+ "dist"
28
+ ],
21
29
  "dependencies": {
22
30
  "@babel/runtime": "^7.20.13",
23
31
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/design-system": "20.5.0",
25
- "@commercetools-uikit/icons": "20.5.0",
26
- "@commercetools-uikit/spacings-inline": "20.5.0",
27
- "@commercetools-uikit/utils": "20.5.0",
28
32
  "@emotion/react": "^11.10.5",
29
33
  "@emotion/styled": "^11.10.5",
30
34
  "@types/history": "^4.7.11",
31
35
  "@types/react-router-dom": "^5.3.3",
32
- "history": "4.10.1"
36
+ "history": "4.10.1",
37
+ "@commercetools-uikit/design-system": "^20.6.1",
38
+ "@commercetools-uikit/icons": "^20.6.1",
39
+ "@commercetools-uikit/spacings-inline": "^20.6.1",
40
+ "@commercetools-uikit/utils": "^20.6.1"
33
41
  },
34
42
  "devDependencies": {
35
- "react": "19.2.0",
43
+ "react": "19.2.6",
36
44
  "react-intl": "^7.1.4",
37
45
  "react-router-dom": "5.3.4"
38
46
  },
@@ -41,4 +49,4 @@
41
49
  "react-intl": "7.x",
42
50
  "react-router-dom": "5.x"
43
51
  }
44
- }
52
+ }