@atlaskit/help-article 4.1.4 → 4.1.6
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 +36 -24
- package/dist/cjs/components/ArticleBody/index.js +6 -6
- package/dist/cjs/components/ArticleBody/resetCss.js +1 -2
- package/dist/cjs/components/ArticleBody/styled.js +1 -2
- package/dist/cjs/components/HelpArticle.js +1 -2
- package/dist/cjs/components/styled.js +3 -6
- package/dist/cjs/model/HelpArticle.js +2 -3
- package/dist/es2019/components/ArticleBody/index.js +4 -2
- package/dist/esm/components/ArticleBody/index.js +4 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,47 @@
|
|
|
1
1
|
# @atlaskit/help-article
|
|
2
2
|
|
|
3
|
+
## 4.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41087](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41087) [`7d066a73736`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d066a73736) - Fix ts errors by adding type definition and removing unused parameter
|
|
14
|
+
|
|
3
15
|
## 4.1.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
19
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
8
20
|
- Updated dependencies
|
|
9
21
|
|
|
10
22
|
## 4.1.3
|
|
11
23
|
|
|
12
24
|
### Patch Changes
|
|
13
25
|
|
|
14
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
26
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
15
27
|
|
|
16
28
|
## 4.1.2
|
|
17
29
|
|
|
18
30
|
### Patch Changes
|
|
19
31
|
|
|
20
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
32
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
21
33
|
|
|
22
34
|
## 4.1.1
|
|
23
35
|
|
|
24
36
|
### Patch Changes
|
|
25
37
|
|
|
26
|
-
- [`7e051bad115`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e051bad115) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
38
|
+
- [#33218](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33218) [`7e051bad115`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e051bad115) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
27
39
|
|
|
28
40
|
## 4.1.0
|
|
29
41
|
|
|
30
42
|
### Minor Changes
|
|
31
43
|
|
|
32
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
44
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
33
45
|
|
|
34
46
|
### Patch Changes
|
|
35
47
|
|
|
@@ -39,7 +51,7 @@
|
|
|
39
51
|
|
|
40
52
|
### Patch Changes
|
|
41
53
|
|
|
42
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
54
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
43
55
|
|
|
44
56
|
## 4.0.37
|
|
45
57
|
|
|
@@ -57,7 +69,7 @@
|
|
|
57
69
|
|
|
58
70
|
### Patch Changes
|
|
59
71
|
|
|
60
|
-
- [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
|
|
72
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
|
|
61
73
|
|
|
62
74
|
BREAKING for `@atlaskit/renderer`: Previously the `document` prop for the renderer component had the type of `any`. This has now been changed to `DocNode` which comes from `@atlaskit/adf-schema`.
|
|
63
75
|
|
|
@@ -87,7 +99,7 @@
|
|
|
87
99
|
|
|
88
100
|
### Patch Changes
|
|
89
101
|
|
|
90
|
-
- [`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) - Consolidate In Product Help & Self-Help Experiences ownership
|
|
102
|
+
- [#26424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26424) [`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) - Consolidate In Product Help & Self-Help Experiences ownership
|
|
91
103
|
|
|
92
104
|
## 4.0.32
|
|
93
105
|
|
|
@@ -105,13 +117,13 @@
|
|
|
105
117
|
|
|
106
118
|
### Patch Changes
|
|
107
119
|
|
|
108
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
120
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
109
121
|
|
|
110
122
|
## 4.0.29
|
|
111
123
|
|
|
112
124
|
### Patch Changes
|
|
113
125
|
|
|
114
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
126
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
115
127
|
|
|
116
128
|
## 4.0.28
|
|
117
129
|
|
|
@@ -165,7 +177,7 @@
|
|
|
165
177
|
|
|
166
178
|
### Patch Changes
|
|
167
179
|
|
|
168
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
180
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
169
181
|
|
|
170
182
|
## 4.0.19
|
|
171
183
|
|
|
@@ -225,13 +237,13 @@
|
|
|
225
237
|
|
|
226
238
|
### Patch Changes
|
|
227
239
|
|
|
228
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
240
|
+
- [#17475](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17475) [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
229
241
|
|
|
230
242
|
## 4.0.9
|
|
231
243
|
|
|
232
244
|
### Patch Changes
|
|
233
245
|
|
|
234
|
-
- [`360ccde3275`](https://bitbucket.org/atlassian/atlassian-frontend/commits/360ccde3275) - [ux] Open all links in a new tab
|
|
246
|
+
- [#16630](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16630) [`360ccde3275`](https://bitbucket.org/atlassian/atlassian-frontend/commits/360ccde3275) - [ux] Open all links in a new tab
|
|
235
247
|
|
|
236
248
|
## 4.0.8
|
|
237
249
|
|
|
@@ -273,7 +285,7 @@
|
|
|
273
285
|
|
|
274
286
|
### Patch Changes
|
|
275
287
|
|
|
276
|
-
- [`df9dc928897`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9dc928897) - Update the team information in the packages maintained by the In Product Help team
|
|
288
|
+
- [#13328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13328) [`df9dc928897`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9dc928897) - Update the team information in the packages maintained by the In Product Help team
|
|
277
289
|
|
|
278
290
|
## 4.0.1
|
|
279
291
|
|
|
@@ -285,7 +297,7 @@
|
|
|
285
297
|
|
|
286
298
|
### Major Changes
|
|
287
299
|
|
|
288
|
-
- [`bc46b0b34ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc46b0b34ed) - [ux] @atlaskit/help-article: Updated component interfaze and removed unused props onArticleRenderBegin and onArticleRenderDone. @atlaskit/help-artilce: major changes in the component interfaze, added "What's new" articles search and articles view. Moved the search input to the header. Updated navigation logic and unit tests
|
|
300
|
+
- [#11927](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11927) [`bc46b0b34ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc46b0b34ed) - [ux] @atlaskit/help-article: Updated component interfaze and removed unused props onArticleRenderBegin and onArticleRenderDone. @atlaskit/help-artilce: major changes in the component interfaze, added "What's new" articles search and articles view. Moved the search input to the header. Updated navigation logic and unit tests
|
|
289
301
|
|
|
290
302
|
## 3.0.2
|
|
291
303
|
|
|
@@ -303,19 +315,19 @@
|
|
|
303
315
|
|
|
304
316
|
### Major Changes
|
|
305
317
|
|
|
306
|
-
- [`f88acfa4736`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f88acfa4736) - [ux] Add support for ADF documents. The prop "body" now accepts String and ADF object. The prop "bodyType" was added so the developer can specify which type of content the the "body" prop has ("html" or "adf")
|
|
318
|
+
- [#10745](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10745) [`f88acfa4736`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f88acfa4736) - [ux] Add support for ADF documents. The prop "body" now accepts String and ADF object. The prop "bodyType" was added so the developer can specify which type of content the the "body" prop has ("html" or "adf")
|
|
307
319
|
|
|
308
320
|
## 2.0.5
|
|
309
321
|
|
|
310
322
|
### Patch Changes
|
|
311
323
|
|
|
312
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
324
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
313
325
|
|
|
314
326
|
## 2.0.4
|
|
315
327
|
|
|
316
328
|
### Patch Changes
|
|
317
329
|
|
|
318
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
330
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
319
331
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
320
332
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
321
333
|
|
|
@@ -329,7 +341,7 @@
|
|
|
329
341
|
|
|
330
342
|
### Patch Changes
|
|
331
343
|
|
|
332
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
344
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
333
345
|
|
|
334
346
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
335
347
|
to prevent duplicates of tslib being bundled.
|
|
@@ -338,13 +350,13 @@
|
|
|
338
350
|
|
|
339
351
|
### Patch Changes
|
|
340
352
|
|
|
341
|
-
- [`0c532edf6e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c532edf6e) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
353
|
+
- [#3226](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3226) [`0c532edf6e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c532edf6e) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
342
354
|
|
|
343
355
|
## 2.0.0
|
|
344
356
|
|
|
345
357
|
### Major Changes
|
|
346
358
|
|
|
347
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
359
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
348
360
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
349
361
|
|
|
350
362
|
### Patch Changes
|
|
@@ -355,19 +367,19 @@
|
|
|
355
367
|
|
|
356
368
|
### Patch Changes
|
|
357
369
|
|
|
358
|
-
- [`f2a658ac8a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2a658ac8a) - Fixed atlaskit default styles
|
|
370
|
+
- [#2742](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2742) [`f2a658ac8a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2a658ac8a) - Fixed atlaskit default styles
|
|
359
371
|
|
|
360
372
|
## 1.0.7
|
|
361
373
|
|
|
362
374
|
### Patch Changes
|
|
363
375
|
|
|
364
|
-
- [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed es2019 distributable missing a version.json file
|
|
376
|
+
- [#2731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2731) [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed es2019 distributable missing a version.json file
|
|
365
377
|
|
|
366
378
|
## 1.0.6
|
|
367
379
|
|
|
368
380
|
### Patch Changes
|
|
369
381
|
|
|
370
|
-
- [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
382
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099) [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
371
383
|
|
|
372
384
|
## 1.0.5
|
|
373
385
|
|
|
@@ -15,13 +15,15 @@ var _resetCss = _interopRequireDefault(require("./resetCss"));
|
|
|
15
15
|
var _styled = require("./styled");
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
19
|
+
|
|
18
20
|
var IFRAME_CONTAINER_ID = 'help-iframe-container';
|
|
19
21
|
var IFRAME_ID = 'help-iframe';
|
|
20
|
-
var ArticleBody = function ArticleBody(props) {
|
|
22
|
+
var ArticleBody = exports.ArticleBody = function ArticleBody(props) {
|
|
21
23
|
/**
|
|
22
24
|
* Set article height
|
|
23
25
|
*/
|
|
24
|
-
var resizeIframe = function resizeIframe(
|
|
26
|
+
var resizeIframe = function resizeIframe() {
|
|
25
27
|
var currentIframe = document.getElementById(IFRAME_ID);
|
|
26
28
|
if (!currentIframe) {
|
|
27
29
|
return;
|
|
@@ -83,7 +85,7 @@ var ArticleBody = function ArticleBody(props) {
|
|
|
83
85
|
id: IFRAME_ID,
|
|
84
86
|
name: IFRAME_ID,
|
|
85
87
|
onLoad: function onLoad() {
|
|
86
|
-
resizeIframe(
|
|
88
|
+
resizeIframe();
|
|
87
89
|
},
|
|
88
90
|
sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox"
|
|
89
91
|
}), iframeContainer, function () {
|
|
@@ -140,6 +142,4 @@ var ArticleBody = function ArticleBody(props) {
|
|
|
140
142
|
}
|
|
141
143
|
}) : null;
|
|
142
144
|
};
|
|
143
|
-
exports.
|
|
144
|
-
var _default = ArticleBody;
|
|
145
|
-
exports.default = _default;
|
|
145
|
+
var _default = exports.default = ArticleBody;
|
|
@@ -12,5 +12,4 @@ var _tables = _interopRequireDefault(require("@atlaskit/css-reset/tables"));
|
|
|
12
12
|
var _utils = _interopRequireDefault(require("@atlaskit/css-reset/utils"));
|
|
13
13
|
var IFRAME_FIX_CSS = "\n html{\n width: calc(100% - 10px);\n padding: 5px;\n overflow: hidden;\n height: auto;\n }\n\n body {\n margin: 0;\n padding: 0;\n }";
|
|
14
14
|
var DEFAULT_CSS = _reset.default + _base.default + _utils.default + _browserFixes.default + _browserFixes.default + _tables.default + IFRAME_FIX_CSS;
|
|
15
|
-
var _default = DEFAULT_CSS;
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
var _default = exports.default = DEFAULT_CSS;
|
|
@@ -10,5 +10,4 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
10
10
|
var _templateObject;
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
13
|
-
var ArticleFrame = _styled.default.iframe(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n width: calc(100% + 10px);\n margin: -5px;\n border: none;\n"])));
|
|
14
|
-
exports.ArticleFrame = ArticleFrame;
|
|
13
|
+
var ArticleFrame = exports.ArticleFrame = _styled.default.iframe(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n width: calc(100% + 10px);\n margin: -5px;\n border: none;\n"])));
|
|
@@ -9,9 +9,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3;
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
-
var ArticleContentInner = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding-bottom: ", ";\n position: relative;\n"])), "var(--ds-space-200, 16px)");
|
|
13
|
-
exports.
|
|
14
|
-
var
|
|
15
|
-
exports.ArticleContentTitle = ArticleContentTitle;
|
|
16
|
-
var ArticleContentTitleLink = _styled.default.a(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n &:hover {\n text-decoration: none;\n }\n"])));
|
|
17
|
-
exports.ArticleContentTitleLink = ArticleContentTitleLink;
|
|
12
|
+
var ArticleContentInner = exports.ArticleContentInner = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding-bottom: ", ";\n position: relative;\n"])), "var(--ds-space-200, 16px)");
|
|
13
|
+
var ArticleContentTitle = exports.ArticleContentTitle = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding-bottom: ", ";\n"])), "var(--ds-space-200, 16px)");
|
|
14
|
+
var ArticleContentTitleLink = exports.ArticleContentTitleLink = _styled.default.a(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n &:hover {\n text-decoration: none;\n }\n"])));
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BODY_FORMAT_TYPES = void 0;
|
|
7
|
-
var BODY_FORMAT_TYPES = /*#__PURE__*/function (BODY_FORMAT_TYPES) {
|
|
7
|
+
var BODY_FORMAT_TYPES = exports.BODY_FORMAT_TYPES = /*#__PURE__*/function (BODY_FORMAT_TYPES) {
|
|
8
8
|
BODY_FORMAT_TYPES["adf"] = "adf";
|
|
9
9
|
BODY_FORMAT_TYPES["html"] = "html";
|
|
10
10
|
return BODY_FORMAT_TYPES;
|
|
11
|
-
}({});
|
|
12
|
-
exports.BODY_FORMAT_TYPES = BODY_FORMAT_TYPES;
|
|
11
|
+
}({});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
5
|
+
|
|
4
6
|
import { ReactRenderer } from '@atlaskit/renderer';
|
|
5
7
|
import { BODY_FORMAT_TYPES } from '../../model/HelpArticle';
|
|
6
8
|
import resetCSS from './resetCss';
|
|
@@ -11,7 +13,7 @@ export const ArticleBody = props => {
|
|
|
11
13
|
/**
|
|
12
14
|
* Set article height
|
|
13
15
|
*/
|
|
14
|
-
const resizeIframe =
|
|
16
|
+
const resizeIframe = () => {
|
|
15
17
|
const currentIframe = document.getElementById(IFRAME_ID);
|
|
16
18
|
if (!currentIframe) {
|
|
17
19
|
return;
|
|
@@ -71,7 +73,7 @@ export const ArticleBody = props => {
|
|
|
71
73
|
id: IFRAME_ID,
|
|
72
74
|
name: IFRAME_ID,
|
|
73
75
|
onLoad: () => {
|
|
74
|
-
resizeIframe(
|
|
76
|
+
resizeIframe();
|
|
75
77
|
},
|
|
76
78
|
sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox"
|
|
77
79
|
}), iframeContainer, () => {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
5
|
+
|
|
4
6
|
import { ReactRenderer } from '@atlaskit/renderer';
|
|
5
7
|
import { BODY_FORMAT_TYPES } from '../../model/HelpArticle';
|
|
6
8
|
import resetCSS from './resetCss';
|
|
@@ -11,7 +13,7 @@ export var ArticleBody = function ArticleBody(props) {
|
|
|
11
13
|
/**
|
|
12
14
|
* Set article height
|
|
13
15
|
*/
|
|
14
|
-
var resizeIframe = function resizeIframe(
|
|
16
|
+
var resizeIframe = function resizeIframe() {
|
|
15
17
|
var currentIframe = document.getElementById(IFRAME_ID);
|
|
16
18
|
if (!currentIframe) {
|
|
17
19
|
return;
|
|
@@ -73,7 +75,7 @@ export var ArticleBody = function ArticleBody(props) {
|
|
|
73
75
|
id: IFRAME_ID,
|
|
74
76
|
name: IFRAME_ID,
|
|
75
77
|
onLoad: function onLoad() {
|
|
76
|
-
resizeIframe(
|
|
78
|
+
resizeIframe();
|
|
77
79
|
},
|
|
78
80
|
sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox"
|
|
79
81
|
}), iframeContainer, function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help-article",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "A cross-product help-article component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/css-reset": "^6.
|
|
35
|
-
"@atlaskit/icon": "^
|
|
36
|
-
"@atlaskit/renderer": "^108.
|
|
37
|
-
"@atlaskit/tokens": "^1.
|
|
34
|
+
"@atlaskit/css-reset": "^6.6.0",
|
|
35
|
+
"@atlaskit/icon": "^22.0.0",
|
|
36
|
+
"@atlaskit/renderer": "^108.16.0",
|
|
37
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"@emotion/styled": "^10.0.7",
|
|
40
40
|
"lodash": "^4.17.21"
|