@atlaskit/help-article 4.0.8 → 4.0.12

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,29 @@
1
1
  # @atlaskit/help-article
2
2
 
3
+ ## 4.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 4.0.10
16
+
17
+ ### Patch Changes
18
+
19
+ - [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
20
+
21
+ ## 4.0.9
22
+
23
+ ### Patch Changes
24
+
25
+ - [`360ccde3275`](https://bitbucket.org/atlassian/atlassian-frontend/commits/360ccde3275) - [ux] Open all links in a new tab
26
+
3
27
  ## 4.0.8
4
28
 
5
29
  ### Patch Changes
@@ -154,7 +154,15 @@ var ArticleBody = function ArticleBody(props) {
154
154
  return props.body ? props.bodyFormat === _HelpArticle.BODY_FORMAT_TYPES.html ? /*#__PURE__*/_react.default.createElement("div", {
155
155
  id: IFRAME_CONTAINER_ID
156
156
  }) : /*#__PURE__*/_react.default.createElement(_renderer.ReactRenderer, {
157
- document: props.body
157
+ document: props.body,
158
+ eventHandlers: {
159
+ link: {
160
+ onClick: function onClick(event, href) {
161
+ event.preventDefault();
162
+ window.open(href, '_blank');
163
+ }
164
+ }
165
+ }
158
166
  }) : null;
159
167
  };
160
168
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help-article",
3
- "version": "4.0.8",
3
+ "version": "4.0.12",
4
4
  "sideEffects": false
5
5
  }
@@ -126,7 +126,15 @@ export const ArticleBody = props => {
126
126
  return props.body ? props.bodyFormat === BODY_FORMAT_TYPES.html ? /*#__PURE__*/React.createElement("div", {
127
127
  id: IFRAME_CONTAINER_ID
128
128
  }) : /*#__PURE__*/React.createElement(ReactRenderer, {
129
- document: props.body
129
+ document: props.body,
130
+ eventHandlers: {
131
+ link: {
132
+ onClick: (event, href) => {
133
+ event.preventDefault();
134
+ window.open(href, '_blank');
135
+ }
136
+ }
137
+ }
130
138
  }) : null;
131
139
  };
132
140
  export default ArticleBody;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help-article",
3
- "version": "4.0.8",
3
+ "version": "4.0.12",
4
4
  "sideEffects": false
5
5
  }
@@ -131,7 +131,15 @@ export var ArticleBody = function ArticleBody(props) {
131
131
  return props.body ? props.bodyFormat === BODY_FORMAT_TYPES.html ? /*#__PURE__*/React.createElement("div", {
132
132
  id: IFRAME_CONTAINER_ID
133
133
  }) : /*#__PURE__*/React.createElement(ReactRenderer, {
134
- document: props.body
134
+ document: props.body,
135
+ eventHandlers: {
136
+ link: {
137
+ onClick: function onClick(event, href) {
138
+ event.preventDefault();
139
+ window.open(href, '_blank');
140
+ }
141
+ }
142
+ }
135
143
  }) : null;
136
144
  };
137
145
  export default ArticleBody;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help-article",
3
- "version": "4.0.8",
3
+ "version": "4.0.12",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help-article",
3
- "version": "4.0.8",
3
+ "version": "4.0.12",
4
4
  "description": "A cross-product help-article component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@atlaskit/css-reset": "^6.3.0",
27
- "@atlaskit/icon": "^21.9.0",
28
- "@atlaskit/renderer": "^84.0.0",
29
- "@atlaskit/theme": "^12.0.0",
27
+ "@atlaskit/icon": "^21.10.0",
28
+ "@atlaskit/renderer": "^86.0.0",
29
+ "@atlaskit/theme": "^12.1.0",
30
30
  "@babel/runtime": "^7.0.0",
31
31
  "@emotion/styled": "^10.0.7",
32
- "lodash": "^4.17.15"
32
+ "lodash": "^4.17.21"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^16.8.0",