@atlaskit/help-article 4.1.13 → 4.2.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/help-article
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#144706](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144706)
|
|
8
|
+
[`8b74177bff7a7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b74177bff7a7) -
|
|
9
|
+
Updated to React 18
|
|
10
|
+
|
|
11
|
+
## 4.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#144303](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144303)
|
|
16
|
+
[`de9cfac4c3629`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de9cfac4c3629) -
|
|
17
|
+
[ux] Enable new icons behind a feature flag.
|
|
18
|
+
|
|
3
19
|
## 4.1.13
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
10
10
|
var _HelpArticle = require("../model/HelpArticle");
|
|
11
11
|
var _styled = require("./styled");
|
|
12
12
|
var _ArticleBody = _interopRequireDefault(require("./ArticleBody"));
|
|
@@ -22,9 +22,10 @@ var HelpArticle = function HelpArticle(props) {
|
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement(_styled.ArticleContentInner, null, title && /*#__PURE__*/_react.default.createElement(_styled.ArticleContentTitle, null, titleLinkUrl ? /*#__PURE__*/_react.default.createElement(_styled.ArticleContentTitleLink, {
|
|
23
23
|
href: titleLinkUrl,
|
|
24
24
|
target: "_blank"
|
|
25
|
-
}, /*#__PURE__*/_react.default.createElement("h2", null, title, /*#__PURE__*/_react.default.createElement("span", null, " "), /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement("h2", null, title, /*#__PURE__*/_react.default.createElement("span", null, " "), /*#__PURE__*/_react.default.createElement(_linkExternalShortcut.default, {
|
|
26
|
+
color: "currentColor",
|
|
26
27
|
label: "link icon",
|
|
27
|
-
|
|
28
|
+
LEGACY_size: "small"
|
|
28
29
|
}))) : /*#__PURE__*/_react.default.createElement("h2", null, title)), /*#__PURE__*/_react.default.createElement(_ArticleBody.default, {
|
|
29
30
|
body: body,
|
|
30
31
|
bodyFormat: bodyFormat,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
2
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
3
3
|
import { BODY_FORMAT_TYPES } from '../model/HelpArticle';
|
|
4
4
|
import { ArticleContentInner, ArticleContentTitle, ArticleContentTitleLink } from './styled';
|
|
5
5
|
import ArticleBody from './ArticleBody';
|
|
@@ -16,8 +16,9 @@ const HelpArticle = props => {
|
|
|
16
16
|
href: titleLinkUrl,
|
|
17
17
|
target: "_blank"
|
|
18
18
|
}, /*#__PURE__*/React.createElement("h2", null, title, /*#__PURE__*/React.createElement("span", null, " "), /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
19
|
+
color: "currentColor",
|
|
19
20
|
label: "link icon",
|
|
20
|
-
|
|
21
|
+
LEGACY_size: "small"
|
|
21
22
|
}))) : /*#__PURE__*/React.createElement("h2", null, title)), /*#__PURE__*/React.createElement(ArticleBody, {
|
|
22
23
|
body: body,
|
|
23
24
|
bodyFormat: bodyFormat,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
2
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
3
3
|
import { BODY_FORMAT_TYPES } from '../model/HelpArticle';
|
|
4
4
|
import { ArticleContentInner, ArticleContentTitle, ArticleContentTitleLink } from './styled';
|
|
5
5
|
import ArticleBody from './ArticleBody';
|
|
@@ -16,8 +16,9 @@ var HelpArticle = function HelpArticle(props) {
|
|
|
16
16
|
href: titleLinkUrl,
|
|
17
17
|
target: "_blank"
|
|
18
18
|
}, /*#__PURE__*/React.createElement("h2", null, title, /*#__PURE__*/React.createElement("span", null, " "), /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
19
|
+
color: "currentColor",
|
|
19
20
|
label: "link icon",
|
|
20
|
-
|
|
21
|
+
LEGACY_size: "small"
|
|
21
22
|
}))) : /*#__PURE__*/React.createElement("h2", null, title)), /*#__PURE__*/React.createElement(ArticleBody, {
|
|
22
23
|
body: body,
|
|
23
24
|
bodyFormat: bodyFormat,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help-article",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "A cross-product help-article component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,20 +29,21 @@
|
|
|
29
29
|
"team": "Self-Help Experiences",
|
|
30
30
|
"website": {
|
|
31
31
|
"name": "Help Article"
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"runReact18": true
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@atlaskit/css-reset": "^6.
|
|
36
|
-
"@atlaskit/icon": "^22.
|
|
37
|
-
"@atlaskit/renderer": "^110.
|
|
38
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
+
"@atlaskit/css-reset": "^6.11.0",
|
|
37
|
+
"@atlaskit/icon": "^22.18.0",
|
|
38
|
+
"@atlaskit/renderer": "^110.5.0",
|
|
39
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
39
40
|
"@babel/runtime": "^7.0.0",
|
|
40
41
|
"@emotion/styled": "^11.0.0",
|
|
41
42
|
"lodash": "^4.17.21"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
|
-
"react": "^16.8.0",
|
|
45
|
-
"react-dom": "^16.8.0"
|
|
45
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.2.0",
|
|
46
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"enzyme": "^3.10.0",
|