@atlaskit/help 7.1.9 → 7.1.10
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 +6 -0
- package/dist/cjs/components/Article/HelpArticle/index.js +6 -2
- package/dist/cjs/util/testing/mock.js +12 -6
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Article/HelpArticle/index.js +6 -2
- package/dist/es2019/util/testing/mock.js +12 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Article/HelpArticle/index.js +6 -2
- package/dist/esm/util/testing/mock.js +12 -6
- package/dist/esm/version.json +1 -1
- package/dist/types/model/Article.d.ts +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -102,6 +102,10 @@ var HelpArticle = function HelpArticle(_ref) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (article) {
|
|
105
|
+
var _article$routes, _article$routes2;
|
|
106
|
+
|
|
107
|
+
var routeGroup = article.routes && ((_article$routes = article.routes) === null || _article$routes === void 0 ? void 0 : _article$routes.length) > 0 ? article.routes[0].routeGroup : '';
|
|
108
|
+
var routeName = article.routes && ((_article$routes2 = article.routes) === null || _article$routes2 === void 0 ? void 0 : _article$routes2.length) > 0 ? article.routes[0].routeGroup : '';
|
|
105
109
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_helpArticle.default, {
|
|
106
110
|
title: article.title,
|
|
107
111
|
body: article.body,
|
|
@@ -115,8 +119,8 @@ var HelpArticle = function HelpArticle(_ref) {
|
|
|
115
119
|
style: "secondary",
|
|
116
120
|
onRelatedArticlesListItemClick: handleOnRelatedArticlesListItemClick,
|
|
117
121
|
onGetRelatedArticles: onGetRelatedArticles,
|
|
118
|
-
routeGroup:
|
|
119
|
-
routeName:
|
|
122
|
+
routeGroup: routeGroup,
|
|
123
|
+
routeName: routeName,
|
|
120
124
|
onRelatedArticlesShowMoreClick: handleOnRelatedArticlesShowMoreClick
|
|
121
125
|
}));
|
|
122
126
|
}
|
|
@@ -19,8 +19,10 @@ var getMockArticle = function getMockArticle(id) {
|
|
|
19
19
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
20
20
|
title: 'mockArticle title',
|
|
21
21
|
type: _Article.ARTICLE_ITEM_TYPES.topicInProduct,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
routes: [{
|
|
23
|
+
routeName: routeName,
|
|
24
|
+
routeGroup: routeGroup
|
|
25
|
+
}],
|
|
24
26
|
topicId: 'mock-topic',
|
|
25
27
|
productName: productName,
|
|
26
28
|
href: href,
|
|
@@ -42,8 +44,10 @@ var getMockArticleItem = function getMockArticleItem(id) {
|
|
|
42
44
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
43
45
|
title: 'mockArticle title',
|
|
44
46
|
type: _Article.ARTICLE_ITEM_TYPES.topicInProduct,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
routes: [{
|
|
48
|
+
routeName: routeName,
|
|
49
|
+
routeGroup: routeGroup
|
|
50
|
+
}],
|
|
47
51
|
topicId: 'mock-topic',
|
|
48
52
|
productName: productName,
|
|
49
53
|
href: href
|
|
@@ -76,8 +80,10 @@ var getMockWhatsNewArticle = function getMockWhatsNewArticle(id) {
|
|
|
76
80
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
77
81
|
title: 'mock article title',
|
|
78
82
|
type: _Article.ARTICLE_ITEM_TYPES.topicInProduct,
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
routes: [{
|
|
84
|
+
routeName: routeName,
|
|
85
|
+
routeGroup: routeGroup
|
|
86
|
+
}],
|
|
81
87
|
topicId: 'mock-topic',
|
|
82
88
|
productName: productName,
|
|
83
89
|
href: href,
|
package/dist/cjs/version.json
CHANGED
|
@@ -78,6 +78,10 @@ export const HelpArticle = ({
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (article) {
|
|
81
|
+
var _article$routes, _article$routes2;
|
|
82
|
+
|
|
83
|
+
const routeGroup = article.routes && ((_article$routes = article.routes) === null || _article$routes === void 0 ? void 0 : _article$routes.length) > 0 ? article.routes[0].routeGroup : '';
|
|
84
|
+
const routeName = article.routes && ((_article$routes2 = article.routes) === null || _article$routes2 === void 0 ? void 0 : _article$routes2.length) > 0 ? article.routes[0].routeGroup : '';
|
|
81
85
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HelpArticleContent, {
|
|
82
86
|
title: article.title,
|
|
83
87
|
body: article.body,
|
|
@@ -91,8 +95,8 @@ export const HelpArticle = ({
|
|
|
91
95
|
style: "secondary",
|
|
92
96
|
onRelatedArticlesListItemClick: handleOnRelatedArticlesListItemClick,
|
|
93
97
|
onGetRelatedArticles: onGetRelatedArticles,
|
|
94
|
-
routeGroup:
|
|
95
|
-
routeName:
|
|
98
|
+
routeGroup: routeGroup,
|
|
99
|
+
routeName: routeName,
|
|
96
100
|
onRelatedArticlesShowMoreClick: handleOnRelatedArticlesShowMoreClick
|
|
97
101
|
}));
|
|
98
102
|
}
|
|
@@ -7,8 +7,10 @@ export const getMockArticle = (id, routeName = '', routeGroup = '', productName
|
|
|
7
7
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
8
8
|
title: 'mockArticle title',
|
|
9
9
|
type: ARTICLE_ITEM_TYPES.topicInProduct,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
routes: [{
|
|
11
|
+
routeName,
|
|
12
|
+
routeGroup
|
|
13
|
+
}],
|
|
12
14
|
topicId: 'mock-topic',
|
|
13
15
|
productName,
|
|
14
16
|
href,
|
|
@@ -23,8 +25,10 @@ export const getMockArticleItem = (id, routeName = '', routeGroup = '', productN
|
|
|
23
25
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
24
26
|
title: 'mockArticle title',
|
|
25
27
|
type: ARTICLE_ITEM_TYPES.topicInProduct,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
routes: [{
|
|
29
|
+
routeName,
|
|
30
|
+
routeGroup
|
|
31
|
+
}],
|
|
28
32
|
topicId: 'mock-topic',
|
|
29
33
|
productName,
|
|
30
34
|
href
|
|
@@ -47,8 +51,10 @@ export const getMockWhatsNewArticle = (id, routeName = '', routeGroup = '', prod
|
|
|
47
51
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
48
52
|
title: 'mock article title',
|
|
49
53
|
type: ARTICLE_ITEM_TYPES.topicInProduct,
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
routes: [{
|
|
55
|
+
routeName,
|
|
56
|
+
routeGroup
|
|
57
|
+
}],
|
|
52
58
|
topicId: 'mock-topic',
|
|
53
59
|
productName,
|
|
54
60
|
href,
|
package/dist/es2019/version.json
CHANGED
|
@@ -78,6 +78,10 @@ export var HelpArticle = function HelpArticle(_ref) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (article) {
|
|
81
|
+
var _article$routes, _article$routes2;
|
|
82
|
+
|
|
83
|
+
var routeGroup = article.routes && ((_article$routes = article.routes) === null || _article$routes === void 0 ? void 0 : _article$routes.length) > 0 ? article.routes[0].routeGroup : '';
|
|
84
|
+
var routeName = article.routes && ((_article$routes2 = article.routes) === null || _article$routes2 === void 0 ? void 0 : _article$routes2.length) > 0 ? article.routes[0].routeGroup : '';
|
|
81
85
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HelpArticleContent, {
|
|
82
86
|
title: article.title,
|
|
83
87
|
body: article.body,
|
|
@@ -91,8 +95,8 @@ export var HelpArticle = function HelpArticle(_ref) {
|
|
|
91
95
|
style: "secondary",
|
|
92
96
|
onRelatedArticlesListItemClick: handleOnRelatedArticlesListItemClick,
|
|
93
97
|
onGetRelatedArticles: onGetRelatedArticles,
|
|
94
|
-
routeGroup:
|
|
95
|
-
routeName:
|
|
98
|
+
routeGroup: routeGroup,
|
|
99
|
+
routeName: routeName,
|
|
96
100
|
onRelatedArticlesShowMoreClick: handleOnRelatedArticlesShowMoreClick
|
|
97
101
|
}));
|
|
98
102
|
}
|
|
@@ -11,8 +11,10 @@ export var getMockArticle = function getMockArticle(id) {
|
|
|
11
11
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
12
12
|
title: 'mockArticle title',
|
|
13
13
|
type: ARTICLE_ITEM_TYPES.topicInProduct,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
routes: [{
|
|
15
|
+
routeName: routeName,
|
|
16
|
+
routeGroup: routeGroup
|
|
17
|
+
}],
|
|
16
18
|
topicId: 'mock-topic',
|
|
17
19
|
productName: productName,
|
|
18
20
|
href: href,
|
|
@@ -31,8 +33,10 @@ export var getMockArticleItem = function getMockArticleItem(id) {
|
|
|
31
33
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
32
34
|
title: 'mockArticle title',
|
|
33
35
|
type: ARTICLE_ITEM_TYPES.topicInProduct,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
routes: [{
|
|
37
|
+
routeName: routeName,
|
|
38
|
+
routeGroup: routeGroup
|
|
39
|
+
}],
|
|
36
40
|
topicId: 'mock-topic',
|
|
37
41
|
productName: productName,
|
|
38
42
|
href: href
|
|
@@ -59,8 +63,10 @@ export var getMockWhatsNewArticle = function getMockWhatsNewArticle(id) {
|
|
|
59
63
|
lastPublished: '2020-04-29T06:05:02.426Z',
|
|
60
64
|
title: 'mock article title',
|
|
61
65
|
type: ARTICLE_ITEM_TYPES.topicInProduct,
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
routes: [{
|
|
67
|
+
routeName: routeName,
|
|
68
|
+
routeGroup: routeGroup
|
|
69
|
+
}],
|
|
64
70
|
topicId: 'mock-topic',
|
|
65
71
|
productName: productName,
|
|
66
72
|
href: href,
|
package/dist/esm/version.json
CHANGED
|
@@ -14,8 +14,10 @@ export interface ArticleItem {
|
|
|
14
14
|
lastPublished: string;
|
|
15
15
|
title: string;
|
|
16
16
|
type: ARTICLE_ITEM_TYPES;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
routes?: {
|
|
18
|
+
routeName: string;
|
|
19
|
+
routeGroup: string;
|
|
20
|
+
}[];
|
|
19
21
|
topicId?: string;
|
|
20
22
|
productName?: string;
|
|
21
23
|
href?: string;
|