@atlaskit/help-article 4.1.3 → 4.1.5
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 -23
- package/dist/cjs/components/ArticleBody/index.js +4 -6
- package/dist/cjs/components/ArticleBody/resetCss.js +1 -2
- package/dist/cjs/components/ArticleBody/styled.js +2 -3
- 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 +2 -2
- package/dist/es2019/components/ArticleBody/styled.js +1 -1
- package/dist/esm/components/ArticleBody/index.js +2 -2
- package/dist/esm/components/ArticleBody/styled.js +1 -1
- package/package.json +3 -5
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,41 @@
|
|
|
1
1
|
# @atlaskit/help-article
|
|
2
2
|
|
|
3
|
+
## 4.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
## 4.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 4.1.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
20
|
+
- [#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
|
|
8
21
|
|
|
9
22
|
## 4.1.2
|
|
10
23
|
|
|
11
24
|
### Patch Changes
|
|
12
25
|
|
|
13
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
26
|
+
- [#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`
|
|
14
27
|
|
|
15
28
|
## 4.1.1
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
- [`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.
|
|
32
|
+
- [#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.
|
|
20
33
|
|
|
21
34
|
## 4.1.0
|
|
22
35
|
|
|
23
36
|
### Minor Changes
|
|
24
37
|
|
|
25
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
38
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
26
39
|
|
|
27
40
|
### Patch Changes
|
|
28
41
|
|
|
@@ -32,7 +45,7 @@
|
|
|
32
45
|
|
|
33
46
|
### Patch Changes
|
|
34
47
|
|
|
35
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
48
|
+
- [#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
|
|
36
49
|
|
|
37
50
|
## 4.0.37
|
|
38
51
|
|
|
@@ -50,7 +63,7 @@
|
|
|
50
63
|
|
|
51
64
|
### Patch Changes
|
|
52
65
|
|
|
53
|
-
- [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
|
|
66
|
+
- [#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
|
|
54
67
|
|
|
55
68
|
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`.
|
|
56
69
|
|
|
@@ -80,7 +93,7 @@
|
|
|
80
93
|
|
|
81
94
|
### Patch Changes
|
|
82
95
|
|
|
83
|
-
- [`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) - Consolidate In Product Help & Self-Help Experiences ownership
|
|
96
|
+
- [#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
|
|
84
97
|
|
|
85
98
|
## 4.0.32
|
|
86
99
|
|
|
@@ -98,13 +111,13 @@
|
|
|
98
111
|
|
|
99
112
|
### Patch Changes
|
|
100
113
|
|
|
101
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
114
|
+
- [#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`
|
|
102
115
|
|
|
103
116
|
## 4.0.29
|
|
104
117
|
|
|
105
118
|
### Patch Changes
|
|
106
119
|
|
|
107
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
120
|
+
- [#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`.
|
|
108
121
|
|
|
109
122
|
## 4.0.28
|
|
110
123
|
|
|
@@ -158,7 +171,7 @@
|
|
|
158
171
|
|
|
159
172
|
### Patch Changes
|
|
160
173
|
|
|
161
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
174
|
+
- [#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
|
|
162
175
|
|
|
163
176
|
## 4.0.19
|
|
164
177
|
|
|
@@ -218,13 +231,13 @@
|
|
|
218
231
|
|
|
219
232
|
### Patch Changes
|
|
220
233
|
|
|
221
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
234
|
+
- [#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
|
|
222
235
|
|
|
223
236
|
## 4.0.9
|
|
224
237
|
|
|
225
238
|
### Patch Changes
|
|
226
239
|
|
|
227
|
-
- [`360ccde3275`](https://bitbucket.org/atlassian/atlassian-frontend/commits/360ccde3275) - [ux] Open all links in a new tab
|
|
240
|
+
- [#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
|
|
228
241
|
|
|
229
242
|
## 4.0.8
|
|
230
243
|
|
|
@@ -266,7 +279,7 @@
|
|
|
266
279
|
|
|
267
280
|
### Patch Changes
|
|
268
281
|
|
|
269
|
-
- [`df9dc928897`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9dc928897) - Update the team information in the packages maintained by the In Product Help team
|
|
282
|
+
- [#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
|
|
270
283
|
|
|
271
284
|
## 4.0.1
|
|
272
285
|
|
|
@@ -278,7 +291,7 @@
|
|
|
278
291
|
|
|
279
292
|
### Major Changes
|
|
280
293
|
|
|
281
|
-
- [`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
|
|
294
|
+
- [#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
|
|
282
295
|
|
|
283
296
|
## 3.0.2
|
|
284
297
|
|
|
@@ -296,19 +309,19 @@
|
|
|
296
309
|
|
|
297
310
|
### Major Changes
|
|
298
311
|
|
|
299
|
-
- [`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")
|
|
312
|
+
- [#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")
|
|
300
313
|
|
|
301
314
|
## 2.0.5
|
|
302
315
|
|
|
303
316
|
### Patch Changes
|
|
304
317
|
|
|
305
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
318
|
+
- [#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
|
|
306
319
|
|
|
307
320
|
## 2.0.4
|
|
308
321
|
|
|
309
322
|
### Patch Changes
|
|
310
323
|
|
|
311
|
-
- [`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.
|
|
324
|
+
- [#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.
|
|
312
325
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
313
326
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
314
327
|
|
|
@@ -322,7 +335,7 @@
|
|
|
322
335
|
|
|
323
336
|
### Patch Changes
|
|
324
337
|
|
|
325
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
338
|
+
- [#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
|
|
326
339
|
|
|
327
340
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
328
341
|
to prevent duplicates of tslib being bundled.
|
|
@@ -331,13 +344,13 @@
|
|
|
331
344
|
|
|
332
345
|
### Patch Changes
|
|
333
346
|
|
|
334
|
-
- [`0c532edf6e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c532edf6e) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
347
|
+
- [#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
|
|
335
348
|
|
|
336
349
|
## 2.0.0
|
|
337
350
|
|
|
338
351
|
### Major Changes
|
|
339
352
|
|
|
340
|
-
- [`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.
|
|
353
|
+
- [#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.
|
|
341
354
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
342
355
|
|
|
343
356
|
### Patch Changes
|
|
@@ -348,19 +361,19 @@
|
|
|
348
361
|
|
|
349
362
|
### Patch Changes
|
|
350
363
|
|
|
351
|
-
- [`f2a658ac8a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2a658ac8a) - Fixed atlaskit default styles
|
|
364
|
+
- [#2742](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2742) [`f2a658ac8a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2a658ac8a) - Fixed atlaskit default styles
|
|
352
365
|
|
|
353
366
|
## 1.0.7
|
|
354
367
|
|
|
355
368
|
### Patch Changes
|
|
356
369
|
|
|
357
|
-
- [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed es2019 distributable missing a version.json file
|
|
370
|
+
- [#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
|
|
358
371
|
|
|
359
372
|
## 1.0.6
|
|
360
373
|
|
|
361
374
|
### Patch Changes
|
|
362
375
|
|
|
363
|
-
- [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
376
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099) [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
364
377
|
|
|
365
378
|
## 1.0.5
|
|
366
379
|
|
|
@@ -17,11 +17,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
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
18
|
var IFRAME_CONTAINER_ID = 'help-iframe-container';
|
|
19
19
|
var IFRAME_ID = 'help-iframe';
|
|
20
|
-
var ArticleBody = function ArticleBody(props) {
|
|
20
|
+
var ArticleBody = exports.ArticleBody = function ArticleBody(props) {
|
|
21
21
|
/**
|
|
22
22
|
* Set article height
|
|
23
23
|
*/
|
|
24
|
-
var resizeIframe = function resizeIframe(
|
|
24
|
+
var resizeIframe = function resizeIframe() {
|
|
25
25
|
var currentIframe = document.getElementById(IFRAME_ID);
|
|
26
26
|
if (!currentIframe) {
|
|
27
27
|
return;
|
|
@@ -83,7 +83,7 @@ var ArticleBody = function ArticleBody(props) {
|
|
|
83
83
|
id: IFRAME_ID,
|
|
84
84
|
name: IFRAME_ID,
|
|
85
85
|
onLoad: function onLoad() {
|
|
86
|
-
resizeIframe(
|
|
86
|
+
resizeIframe();
|
|
87
87
|
},
|
|
88
88
|
sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox"
|
|
89
89
|
}), iframeContainer, function () {
|
|
@@ -140,6 +140,4 @@ var ArticleBody = function ArticleBody(props) {
|
|
|
140
140
|
}
|
|
141
141
|
}) : null;
|
|
142
142
|
};
|
|
143
|
-
exports.
|
|
144
|
-
var _default = ArticleBody;
|
|
145
|
-
exports.default = _default;
|
|
143
|
+
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;
|
|
@@ -9,6 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _templateObject;
|
|
11
11
|
/** @jsx jsx */
|
|
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;
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
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
|
+
}({});
|
|
@@ -11,7 +11,7 @@ export const ArticleBody = props => {
|
|
|
11
11
|
/**
|
|
12
12
|
* Set article height
|
|
13
13
|
*/
|
|
14
|
-
const resizeIframe =
|
|
14
|
+
const resizeIframe = () => {
|
|
15
15
|
const currentIframe = document.getElementById(IFRAME_ID);
|
|
16
16
|
if (!currentIframe) {
|
|
17
17
|
return;
|
|
@@ -71,7 +71,7 @@ export const ArticleBody = props => {
|
|
|
71
71
|
id: IFRAME_ID,
|
|
72
72
|
name: IFRAME_ID,
|
|
73
73
|
onLoad: () => {
|
|
74
|
-
resizeIframe(
|
|
74
|
+
resizeIframe();
|
|
75
75
|
},
|
|
76
76
|
sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox"
|
|
77
77
|
}), iframeContainer, () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
4
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
5
5
|
export const ArticleFrame = styled.iframe`
|
|
6
6
|
display: block;
|
|
7
7
|
width: calc(100% + 10px);
|
|
@@ -11,7 +11,7 @@ export var ArticleBody = function ArticleBody(props) {
|
|
|
11
11
|
/**
|
|
12
12
|
* Set article height
|
|
13
13
|
*/
|
|
14
|
-
var resizeIframe = function resizeIframe(
|
|
14
|
+
var resizeIframe = function resizeIframe() {
|
|
15
15
|
var currentIframe = document.getElementById(IFRAME_ID);
|
|
16
16
|
if (!currentIframe) {
|
|
17
17
|
return;
|
|
@@ -73,7 +73,7 @@ export var ArticleBody = function ArticleBody(props) {
|
|
|
73
73
|
id: IFRAME_ID,
|
|
74
74
|
name: IFRAME_ID,
|
|
75
75
|
onLoad: function onLoad() {
|
|
76
|
-
resizeIframe(
|
|
76
|
+
resizeIframe();
|
|
77
77
|
},
|
|
78
78
|
sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox"
|
|
79
79
|
}), iframeContainer, function () {
|
|
@@ -3,5 +3,5 @@ var _templateObject;
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
7
7
|
export var ArticleFrame = styled.iframe(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n width: calc(100% + 10px);\n margin: -5px;\n border: none;\n"])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help-article",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "A cross-product help-article component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/css-reset": "^6.5.0",
|
|
35
35
|
"@atlaskit/icon": "^21.12.0",
|
|
36
|
-
"@atlaskit/renderer": "^108.
|
|
37
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
+
"@atlaskit/renderer": "^108.15.0",
|
|
37
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"@emotion/styled": "^10.0.7",
|
|
40
40
|
"lodash": "^4.17.21"
|
|
@@ -44,8 +44,6 @@
|
|
|
44
44
|
"react-dom": "^16.8.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@atlaskit/button": "^16.7.0",
|
|
48
|
-
"@atlaskit/docs": "*",
|
|
49
47
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
50
48
|
"enzyme": "^3.10.0",
|
|
51
49
|
"react-test-renderer": "^16.8.0",
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED