@atlaskit/help 4.2.3 → 6.0.0

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.
Files changed (167) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/Article/ArticleContent/index.js +1 -1
  4. package/dist/cjs/components/Article/ArticleLoadingFail/index.js +2 -2
  5. package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +1 -1
  6. package/dist/cjs/components/Article/HelpArticle/Loading/index.js +2 -2
  7. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -2
  8. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -2
  9. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +2 -2
  10. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
  11. package/dist/cjs/components/Article/WhatsNewArticle/Loading/index.js +2 -2
  12. package/dist/cjs/components/Article/WhatsNewArticle/index.js +2 -2
  13. package/dist/cjs/components/Article/WhatsNewArticle/styled.js +1 -1
  14. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +3 -3
  15. package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -1
  16. package/dist/cjs/components/ArticlesList/constants.js +1 -1
  17. package/dist/cjs/components/ArticlesList/styled.js +1 -1
  18. package/dist/cjs/components/HelpContent.js +7 -9
  19. package/dist/cjs/components/HelpContentButton/styled.js +1 -1
  20. package/dist/cjs/components/MessagesIntlProvider.js +7 -7
  21. package/dist/cjs/components/RelatedArticles/RelatedArticlesLoading.js +2 -2
  22. package/dist/cjs/components/RelatedArticles/index.js +2 -2
  23. package/dist/cjs/components/RelatedArticles/styled.js +1 -1
  24. package/dist/cjs/components/Search/SearchInput/index.js +2 -2
  25. package/dist/cjs/components/Search/SearchInput/styled.js +1 -1
  26. package/dist/cjs/components/Search/SearchResults/SearchExternalSite.js +2 -2
  27. package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +2 -2
  28. package/dist/cjs/components/Search/SearchResults/SearchResultsError.js +2 -2
  29. package/dist/cjs/components/Search/SearchResults/styled.js +1 -1
  30. package/dist/cjs/components/ShowMoreButton/index.js +2 -2
  31. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +2 -2
  32. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.js +52 -0
  33. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +32 -0
  34. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.js +2 -2
  35. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -2
  36. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
  37. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
  38. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +2 -2
  39. package/dist/cjs/components/WhatsNew/WhatsNewResults/index.js +33 -11
  40. package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +1 -1
  41. package/dist/cjs/components/constants.js +1 -1
  42. package/dist/cjs/components/contexts/headerContext.js +1 -1
  43. package/dist/cjs/components/contexts/helpArticleContext.js +1 -1
  44. package/dist/cjs/components/contexts/homeContext.js +1 -1
  45. package/dist/cjs/components/contexts/navigationContext.js +393 -473
  46. package/dist/cjs/components/contexts/relatedArticlesContext.js +1 -1
  47. package/dist/cjs/components/contexts/searchContext.js +1 -1
  48. package/dist/cjs/components/contexts/whatsNewArticleContext.js +2 -3
  49. package/dist/cjs/components/styled.js +2 -2
  50. package/dist/cjs/i18n/index.js +18 -18
  51. package/dist/cjs/index.js +16 -16
  52. package/dist/cjs/messages.js +23 -3
  53. package/dist/cjs/util/hooks/cancellablePromise.js +1 -1
  54. package/dist/cjs/util/styled.js +1 -1
  55. package/dist/cjs/version.json +1 -1
  56. package/dist/es2019/components/Article/ArticleContent/index.js +1 -1
  57. package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
  58. package/dist/es2019/components/Article/HelpArticle/Loading/index.js +1 -1
  59. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  60. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  61. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  62. package/dist/es2019/components/Article/WhatsNewArticle/Loading/index.js +1 -1
  63. package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
  64. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
  65. package/dist/es2019/components/HelpContent.js +7 -8
  66. package/dist/es2019/components/MessagesIntlProvider.js +4 -4
  67. package/dist/es2019/components/RelatedArticles/RelatedArticlesLoading.js +1 -1
  68. package/dist/es2019/components/RelatedArticles/index.js +1 -1
  69. package/dist/es2019/components/Search/SearchInput/index.js +1 -1
  70. package/dist/es2019/components/Search/SearchResults/SearchExternalSite.js +1 -1
  71. package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +1 -1
  72. package/dist/es2019/components/Search/SearchResults/SearchResultsError.js +1 -1
  73. package/dist/es2019/components/ShowMoreButton/index.js +1 -1
  74. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
  75. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.js +35 -0
  76. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +16 -0
  77. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.js +1 -1
  78. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  79. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +1 -1
  80. package/dist/es2019/components/WhatsNew/WhatsNewResults/index.js +32 -10
  81. package/dist/es2019/components/contexts/navigationContext.js +336 -347
  82. package/dist/es2019/components/contexts/whatsNewArticleContext.js +1 -2
  83. package/dist/es2019/components/styled.js +1 -1
  84. package/dist/es2019/messages.js +22 -2
  85. package/dist/es2019/version.json +1 -1
  86. package/dist/esm/components/Article/ArticleContent/index.js +1 -1
  87. package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
  88. package/dist/esm/components/Article/HelpArticle/Loading/index.js +1 -1
  89. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  90. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  91. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  92. package/dist/esm/components/Article/WhatsNewArticle/Loading/index.js +1 -1
  93. package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
  94. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
  95. package/dist/esm/components/HelpContent.js +7 -9
  96. package/dist/esm/components/MessagesIntlProvider.js +5 -4
  97. package/dist/esm/components/RelatedArticles/RelatedArticlesLoading.js +1 -1
  98. package/dist/esm/components/RelatedArticles/index.js +1 -1
  99. package/dist/esm/components/Search/SearchInput/index.js +1 -1
  100. package/dist/esm/components/Search/SearchResults/SearchExternalSite.js +1 -1
  101. package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +1 -1
  102. package/dist/esm/components/Search/SearchResults/SearchResultsError.js +1 -1
  103. package/dist/esm/components/ShowMoreButton/index.js +1 -1
  104. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
  105. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.js +32 -0
  106. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +10 -0
  107. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.js +1 -1
  108. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  109. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +1 -1
  110. package/dist/esm/components/WhatsNew/WhatsNewResults/index.js +31 -10
  111. package/dist/esm/components/contexts/navigationContext.js +395 -474
  112. package/dist/esm/components/contexts/whatsNewArticleContext.js +1 -2
  113. package/dist/esm/components/styled.js +1 -1
  114. package/dist/esm/messages.js +22 -2
  115. package/dist/esm/version.json +1 -1
  116. package/dist/types/analytics.d.ts +1 -1
  117. package/dist/types/assets/ErrorImage.d.ts +1 -0
  118. package/dist/types/assets/NotFoundImage.d.ts +1 -0
  119. package/dist/types/assets/SomethingWrongImage.d.ts +1 -0
  120. package/dist/types/assets/WhatsNewIcoExperiment.d.ts +1 -0
  121. package/dist/types/assets/WhatsNewIconFix.d.ts +1 -0
  122. package/dist/types/assets/WhatsNewIconImprovement.d.ts +1 -0
  123. package/dist/types/assets/WhatsNewIconNew.d.ts +1 -0
  124. package/dist/types/assets/WhatsNewIconRemoved.d.ts +1 -0
  125. package/dist/types/components/Article/ArticleLoadingFail/index.d.ts +4 -4
  126. package/dist/types/components/Article/ArticleLoadingFail/styled.d.ts +2 -2
  127. package/dist/types/components/Article/HelpArticle/Loading/index.d.ts +4 -4
  128. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +4 -4
  129. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +4 -4
  130. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +4 -4
  131. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/styled.d.ts +3 -3
  132. package/dist/types/components/Article/WhatsNewArticle/Loading/index.d.ts +4 -4
  133. package/dist/types/components/Article/WhatsNewArticle/index.d.ts +4 -4
  134. package/dist/types/components/Article/WhatsNewArticle/styled.d.ts +6 -6
  135. package/dist/types/components/Article/styled.d.ts +1 -1
  136. package/dist/types/components/ArticlesList/ArticlesListItem/index.d.ts +4 -4
  137. package/dist/types/components/ArticlesList/ArticlesListItem/styled.d.ts +5 -5
  138. package/dist/types/components/ArticlesList/styled.d.ts +2 -2
  139. package/dist/types/components/Help.d.ts +1 -1
  140. package/dist/types/components/MessagesIntlProvider.d.ts +6 -5
  141. package/dist/types/components/RelatedArticles/RelatedArticlesLoading.d.ts +3 -3
  142. package/dist/types/components/RelatedArticles/index.d.ts +7 -3
  143. package/dist/types/components/RelatedArticles/styled.d.ts +3 -3
  144. package/dist/types/components/Search/SearchInput/index.d.ts +4 -4
  145. package/dist/types/components/Search/SearchInput/styled.d.ts +3 -3
  146. package/dist/types/components/Search/SearchResults/SearchExternalSite.d.ts +4 -4
  147. package/dist/types/components/Search/SearchResults/SearchResultsEmpty.d.ts +4 -4
  148. package/dist/types/components/Search/SearchResults/SearchResultsError.d.ts +4 -4
  149. package/dist/types/components/Search/SearchResults/styled.d.ts +5 -5
  150. package/dist/types/components/ShowMoreButton/index.d.ts +4 -4
  151. package/dist/types/components/WhatsNew/WhatsNewButton/index.d.ts +4 -4
  152. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +10 -0
  153. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.d.ts +3 -0
  154. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +4 -4
  155. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.d.ts +2 -2
  156. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +4 -4
  157. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.d.ts +3 -3
  158. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.d.ts +4 -4
  159. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +4 -4
  160. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts +2 -2
  161. package/dist/types/components/WhatsNew/WhatsNewResults/index.d.ts +4 -4
  162. package/dist/types/components/WhatsNew/WhatsNewResults/styled.d.ts +4 -4
  163. package/dist/types/components/contexts/navigationContext.d.ts +8 -6
  164. package/dist/types/messages.d.ts +20 -0
  165. package/dist/types/util/index.d.ts +1 -0
  166. package/dist/types/util/styled.d.ts +1 -1
  167. package/package.json +5 -5
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.RelatedArticlesContextProvider = exports.CtxProvider = exports.useRelatedArticlesContext = void 0;
8
+ exports.useRelatedArticlesContext = exports.RelatedArticlesContextProvider = exports.CtxProvider = void 0;
9
9
 
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
 
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.SearchContextProvider = exports.CtxProvider = exports.useSearchContext = void 0;
10
+ exports.useSearchContext = exports.SearchContextProvider = exports.CtxProvider = void 0;
11
11
 
12
12
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
13
13
 
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.WhatsNewArticleProvider = exports.CtxProvider = exports.useWhatsNewArticleContext = void 0;
10
+ exports.useWhatsNewArticleContext = exports.WhatsNewArticleProvider = exports.CtxProvider = void 0;
11
11
 
12
12
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
13
13
 
@@ -50,8 +50,7 @@ var WhatsNewArticleProvider = function WhatsNewArticleProvider(_ref) {
50
50
  var _useState = (0, _react.useState)(undefined),
51
51
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
52
52
  whatsNewSearchType = _useState2[0],
53
- setWhatsNewSearchType = _useState2[1]; // const [whatsNewPage, setWhatsNewPage] = useState('');
54
-
53
+ setWhatsNewSearchType = _useState2[1];
55
54
 
56
55
  var _useState3 = (0, _react.useState)(null),
57
56
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Home = exports.HelpBody = exports.HelpBodyContainer = void 0;
8
+ exports.Home = exports.HelpBodyContainer = exports.HelpBody = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
@@ -19,7 +19,7 @@ var HelpBodyContainer = _styled.default.div(_templateObject || (_templateObject
19
19
 
20
20
  exports.HelpBodyContainer = HelpBodyContainer;
21
21
 
22
- var HelpBody = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n box-sizing: border-box;\n order: 0;\n flex: 1 1 auto;\n align-self: auto;\n position: relative;\n overflow-x: hidden;\n overflow-y: scroll;\n"])));
22
+ var HelpBody = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n box-sizing: border-box;\n order: 0;\n flex: 1 1 auto;\n align-self: auto;\n position: relative;\n overflow-x: hidden;\n overflow-y: auto;\n"])));
23
23
 
24
24
  exports.HelpBody = HelpBody;
25
25
 
@@ -5,12 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "zh", {
9
- enumerable: true,
10
- get: function get() {
11
- return _zh.default;
12
- }
13
- });
14
8
  Object.defineProperty(exports, "cs", {
15
9
  enumerable: true,
16
10
  get: function get() {
@@ -23,10 +17,10 @@ Object.defineProperty(exports, "da", {
23
17
  return _da.default;
24
18
  }
25
19
  });
26
- Object.defineProperty(exports, "nl", {
20
+ Object.defineProperty(exports, "de", {
27
21
  enumerable: true,
28
22
  get: function get() {
29
- return _nl.default;
23
+ return _de.default;
30
24
  }
31
25
  });
32
26
  Object.defineProperty(exports, "en", {
@@ -41,6 +35,12 @@ Object.defineProperty(exports, "en_GB", {
41
35
  return _en_GB.default;
42
36
  }
43
37
  });
38
+ Object.defineProperty(exports, "es", {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _es.default;
42
+ }
43
+ });
44
44
  Object.defineProperty(exports, "et", {
45
45
  enumerable: true,
46
46
  get: function get() {
@@ -59,12 +59,6 @@ Object.defineProperty(exports, "fr", {
59
59
  return _fr.default;
60
60
  }
61
61
  });
62
- Object.defineProperty(exports, "de", {
63
- enumerable: true,
64
- get: function get() {
65
- return _de.default;
66
- }
67
- });
68
62
  Object.defineProperty(exports, "hu", {
69
63
  enumerable: true,
70
64
  get: function get() {
@@ -101,6 +95,12 @@ Object.defineProperty(exports, "nb", {
101
95
  return _nb.default;
102
96
  }
103
97
  });
98
+ Object.defineProperty(exports, "nl", {
99
+ enumerable: true,
100
+ get: function get() {
101
+ return _nl.default;
102
+ }
103
+ });
104
104
  Object.defineProperty(exports, "pl", {
105
105
  enumerable: true,
106
106
  get: function get() {
@@ -137,16 +137,16 @@ Object.defineProperty(exports, "sk", {
137
137
  return _sk.default;
138
138
  }
139
139
  });
140
- Object.defineProperty(exports, "es", {
140
+ Object.defineProperty(exports, "sv", {
141
141
  enumerable: true,
142
142
  get: function get() {
143
- return _es.default;
143
+ return _sv.default;
144
144
  }
145
145
  });
146
- Object.defineProperty(exports, "sv", {
146
+ Object.defineProperty(exports, "zh", {
147
147
  enumerable: true,
148
148
  get: function get() {
149
- return _sv.default;
149
+ return _zh.default;
150
150
  }
151
151
  });
152
152
 
package/dist/cjs/index.js CHANGED
@@ -5,28 +5,22 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "default", {
9
- enumerable: true,
10
- get: function get() {
11
- return _Help.default;
12
- }
13
- });
14
- Object.defineProperty(exports, "ArticlesListItem", {
8
+ Object.defineProperty(exports, "ARTICLE_ITEM_TYPES", {
15
9
  enumerable: true,
16
10
  get: function get() {
17
- return _ArticlesListItem.default;
11
+ return _Article.ARTICLE_ITEM_TYPES;
18
12
  }
19
13
  });
20
- Object.defineProperty(exports, "RelatedArticles", {
14
+ Object.defineProperty(exports, "ARTICLE_TYPE", {
21
15
  enumerable: true,
22
16
  get: function get() {
23
- return _RelatedArticles.default;
17
+ return _Help2.ARTICLE_TYPE;
24
18
  }
25
19
  });
26
- Object.defineProperty(exports, "HelpContentButton", {
20
+ Object.defineProperty(exports, "ArticlesListItem", {
27
21
  enumerable: true,
28
22
  get: function get() {
29
- return _HelpContentButton.default;
23
+ return _ArticlesListItem.default;
30
24
  }
31
25
  });
32
26
  Object.defineProperty(exports, "DividerLine", {
@@ -35,16 +29,16 @@ Object.defineProperty(exports, "DividerLine", {
35
29
  return _styled.DividerLine;
36
30
  }
37
31
  });
38
- Object.defineProperty(exports, "ARTICLE_TYPE", {
32
+ Object.defineProperty(exports, "HelpContentButton", {
39
33
  enumerable: true,
40
34
  get: function get() {
41
- return _Help2.ARTICLE_TYPE;
35
+ return _HelpContentButton.default;
42
36
  }
43
37
  });
44
- Object.defineProperty(exports, "ARTICLE_ITEM_TYPES", {
38
+ Object.defineProperty(exports, "RelatedArticles", {
45
39
  enumerable: true,
46
40
  get: function get() {
47
- return _Article.ARTICLE_ITEM_TYPES;
41
+ return _RelatedArticles.default;
48
42
  }
49
43
  });
50
44
  Object.defineProperty(exports, "WHATS_NEW_ITEM_TYPES", {
@@ -53,6 +47,12 @@ Object.defineProperty(exports, "WHATS_NEW_ITEM_TYPES", {
53
47
  return _WhatsNew.WHATS_NEW_ITEM_TYPES;
54
48
  }
55
49
  });
50
+ Object.defineProperty(exports, "default", {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return _Help.default;
54
+ }
55
+ });
56
56
 
57
57
  var _Help = _interopRequireDefault(require("./components/Help"));
58
58
 
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.messages = void 0;
7
7
 
8
- var _reactIntl = require("react-intl");
8
+ var _reactIntlNext = require("react-intl-next");
9
9
 
10
- var messages = (0, _reactIntl.defineMessages)({
10
+ var messages = (0, _reactIntlNext.defineMessages)({
11
11
  help_loading: {
12
12
  id: 'help.loading',
13
13
  defaultMessage: 'Loading',
@@ -185,7 +185,7 @@ var messages = (0, _reactIntl.defineMessages)({
185
185
  },
186
186
  help_whats_new_button_label: {
187
187
  id: 'help.whats_new.button_label',
188
- defaultMessage: "Whats's new",
188
+ defaultMessage: "What's new",
189
189
  description: "text for the \"What's New\" button"
190
190
  },
191
191
  help_whats_new_filter_select_option_all: {
@@ -218,6 +218,26 @@ var messages = (0, _reactIntl.defineMessages)({
218
218
  defaultMessage: "Experiment",
219
219
  description: "text for the \"Release types\" dropdown option \"Experiment\""
220
220
  },
221
+ help_whats_new_no_results: {
222
+ id: 'help.whats.new_no_results',
223
+ defaultMessage: "We can\u2019t find any recent releases of that type.",
224
+ description: "text to display when the \"What's new\" API returns an empty array of articles\""
225
+ },
226
+ help_whats_new_no_results_info: {
227
+ id: 'help.whats.new_no_results_info',
228
+ defaultMessage: "We only display 3 months of recent releases.",
229
+ description: "text to display when the \"What's new\" API returns an empty array of articles\""
230
+ },
231
+ help_whats_new_no_results_clear_filter_button_label: {
232
+ id: 'help.whats.new_no_results_clear_filter_button_label',
233
+ defaultMessage: "Clear the filter",
234
+ description: "text to display when the \"What's new\" API returns an empty array of articles\""
235
+ },
236
+ help_whats_new_no_results_clear_filter_info: {
237
+ id: 'help.whats.new_no_results_clear_filter_button_label',
238
+ defaultMessage: " to try again.",
239
+ description: "text to display when the \"What's new\" API returns an empty array of articles\""
240
+ },
221
241
  help_whats_new_related_link_support: {
222
242
  id: 'help.whats_new.related_links.support',
223
243
  defaultMessage: "Support documentation",
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.makeCancelable = makeCancelable;
7
6
  exports.default = useCancellablePromise;
7
+ exports.makeCancelable = makeCancelable;
8
8
 
9
9
  var _react = require("react");
10
10
 
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.WhatsNewTypeIcon = exports.LoadingCircle = exports.LoadingRectangle = exports.DividerLine = void 0;
10
+ exports.WhatsNewTypeIcon = exports.LoadingRectangle = exports.LoadingCircle = exports.DividerLine = void 0;
11
11
 
12
12
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
13
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "4.2.3",
3
+ "version": "6.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -9,7 +9,7 @@ export const ArticleContent = ({
9
9
  onHelpArticleLoadingFailTryAgainButtonClick,
10
10
  onWhatsNewArticleLoadingFailTryAgainButtonClick
11
11
  }) => {
12
- if (currentArticle) {
12
+ if (currentArticle && currentArticle.id) {
13
13
  if (currentArticle.type === ARTICLE_TYPE.HELP_ARTICLE) {
14
14
  const article = currentArticle.article;
15
15
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Button from '@atlaskit/button/custom-theme-button';
3
- import { injectIntl } from 'react-intl';
3
+ import { injectIntl } from 'react-intl-next';
4
4
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
5
5
  import { name as packageName, version as packageVersion } from '../../../version.json';
6
6
  import { messages } from '../../../messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { messages } from '../../../../messages';
4
4
  import { LoadingRectangle } from '../../../../util/styled';
5
5
  export const Loading = ({
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import { name as packageName, version as packageVersion } from '../../../../version.json';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import { name as packageName, version as packageVersion } from '../../../../version.json';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useState } from 'react';
3
- import { injectIntl } from 'react-intl';
3
+ import { injectIntl } from 'react-intl-next';
4
4
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
5
5
  import SectionMessage from '@atlaskit/section-message';
6
6
  import ButtonGroup from '@atlaskit/button/button-group';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { gridSize } from '@atlaskit/theme/constants';
4
4
  import { messages } from '../../../../messages';
5
5
  import { LoadingRectangle, LoadingCircle } from '../../../../util/styled';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
4
4
  import HelpArticleContent from '@atlaskit/help-article';
5
5
  import { gridSize } from '@atlaskit/theme/constants';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import * as colors from '@atlaskit/theme/colors';
3
3
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
4
4
  import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
5
- import { injectIntl } from 'react-intl';
5
+ import { injectIntl } from 'react-intl-next';
6
6
  import { name as packageName, version as packageVersion } from '../../../version.json';
7
7
  // import { messages } from '../../../messages';
8
8
  import { ArticlesListItemTypeTitle, ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTitleText, ArticlesListItemDescription, ArticlesListItemLinkIcon } from './styled';
@@ -37,8 +37,7 @@ export const HelpContent = ({
37
37
  const {
38
38
  onBackButtonClick
39
39
  } = useHeaderContext();
40
- const isOverlayVisibleValue = isOverlayVisible();
41
- const [isOverlayFullyVisible, setIsOverlayFullyVisible] = useState(isOverlayVisibleValue);
40
+ const [isOverlayFullyVisible, setIsOverlayFullyVisible] = useState(isOverlayVisible);
42
41
  const handleOnBackButtonClick = useCallback((event, analyticsEvent) => {
43
42
  if (onBackButtonClick) {
44
43
  onBackButtonClick(event, analyticsEvent);
@@ -51,12 +50,12 @@ export const HelpContent = ({
51
50
  useEffect(() => {
52
51
  let handler;
53
52
 
54
- if (isOverlayVisibleValue) {
53
+ if (isOverlayVisible) {
55
54
  handler = setTimeout(() => {
56
- setIsOverlayFullyVisible(isOverlayVisibleValue);
55
+ setIsOverlayFullyVisible(isOverlayVisible);
57
56
  }, HIDE_CONTENT_DELAY);
58
57
  } else {
59
- setIsOverlayFullyVisible(isOverlayVisibleValue);
58
+ setIsOverlayFullyVisible(isOverlayVisible);
60
59
  }
61
60
 
62
61
  return () => {
@@ -64,16 +63,16 @@ export const HelpContent = ({
64
63
  clearTimeout(handler);
65
64
  }
66
65
  };
67
- }, [isOverlayVisibleValue]);
66
+ }, [isOverlayVisible]);
68
67
  return /*#__PURE__*/React.createElement(HelpLayout, {
69
68
  onBackButtonClick: handleOnBackButtonClick,
70
69
  onCloseButtonClick: onClose,
71
- isBackbuttonVisible: canNavigateBack(),
70
+ isBackbuttonVisible: canNavigateBack,
72
71
  footer: footer,
73
72
  headerContent: onSearch && /*#__PURE__*/React.createElement(SearchInput, null)
74
73
  }, /*#__PURE__*/React.createElement(HelpBodyContainer, null, /*#__PURE__*/React.createElement(HelpBody, null, /*#__PURE__*/React.createElement(SearchResults, null), /*#__PURE__*/React.createElement(ArticleComponent, null), /*#__PURE__*/React.createElement(Home, {
75
74
  isOverlayFullyVisible: isOverlayFullyVisible,
76
- isOverlayVisible: isOverlayVisibleValue
75
+ isOverlayVisible: isOverlayVisible
77
76
  }, homeContent, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/React.createElement(WhatsNewButton, null), homeOptions && homeOptions.map(defaultOption => {
78
77
  return /*#__PURE__*/React.createElement(HelpContentButton, _extends({
79
78
  key: defaultOption.id
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { IntlProvider, injectIntl } from 'react-intl';
3
- import { getMessagesForLocale } from '../util/i18n-util';
2
+ import { IntlProvider, injectIntl } from 'react-intl-next';
4
3
  export const MessagesIntlProvider = ({
5
- intl,
4
+ locale = 'en',
6
5
  children
7
6
  }) => /*#__PURE__*/React.createElement(IntlProvider, {
8
- messages: getMessagesForLocale(intl.locale)
7
+ key: locale,
8
+ locale: locale
9
9
  }, children);
10
10
  export default injectIntl(MessagesIntlProvider);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { messages } from '../../messages';
4
4
  import { DividerLine, LoadingRectangle } from '../../util/styled';
5
5
  import { LoadignRelatedArticleList, LoadignRelatedArticleListItem } from './styled';
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useCallback } from 'react';
2
2
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
3
3
  import SectionMessage from '@atlaskit/section-message';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
- import { injectIntl } from 'react-intl';
5
+ import { injectIntl } from 'react-intl-next';
6
6
  import { name as packageName, version as packageVersion } from '../../version.json';
7
7
  import { messages } from '../../messages';
8
8
  import ArticlesList from '../ArticlesList';
@@ -6,7 +6,7 @@ import { gridSize } from '@atlaskit/theme/constants';
6
6
  import Spinner from '@atlaskit/spinner';
7
7
  import SearchIcon from '@atlaskit/icon/glyph/search';
8
8
  import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
9
- import { injectIntl } from 'react-intl';
9
+ import { injectIntl } from 'react-intl-next';
10
10
  import { name as packageName, version as packageVersion } from '../../../version.json';
11
11
  import { REQUEST_STATE } from '../../../model/Requests';
12
12
  import { useSearchContext } from '../../contexts/searchContext';
@@ -3,7 +3,7 @@ import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
3
3
  import * as colors from '@atlaskit/theme/colors';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
6
- import { injectIntl } from 'react-intl';
6
+ import { injectIntl } from 'react-intl-next';
7
7
  import { messages } from '../../../messages';
8
8
  import { SearchResultSearchExternalSiteContainer } from './styled';
9
9
  export const SearchExternalSite = ({
@@ -3,7 +3,7 @@ import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
3
3
  import * as colors from '@atlaskit/theme/colors';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
6
- import { injectIntl } from 'react-intl';
6
+ import { injectIntl } from 'react-intl-next';
7
7
  import NotFoundImage from '../../../assets/NotFoundImage';
8
8
  import { messages } from '../../../messages';
9
9
  import { SearchResultEmptyMessageImage, SearchResultEmptyMessageText } from './styled';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Button from '@atlaskit/button/custom-theme-button';
3
- import { injectIntl } from 'react-intl';
3
+ import { injectIntl } from 'react-intl-next';
4
4
  import ErrorImage from '../../../assets/ErrorImage';
5
5
  import { messages } from '../../../messages';
6
6
  import { SearchResultEmptyMessageImage, SearchResultEmptyMessageText } from './styled';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Spinner from '@atlaskit/spinner';
3
- import { injectIntl } from 'react-intl';
3
+ import { injectIntl } from 'react-intl-next';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import { messages } from '../../messages';
6
6
  import { ToggleShowMoreArticlesContainer } from '../ArticlesList/styled';
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react';
2
2
  import { AnalyticsContext } from '@atlaskit/analytics-next';
3
3
  import * as colors from '@atlaskit/theme/colors';
4
4
  import LightbulbIcon from '@atlaskit/icon/glyph/lightbulb';
5
- import { injectIntl } from 'react-intl';
5
+ import { injectIntl } from 'react-intl-next';
6
6
  import { name as packageName, version as packageVersion } from '../../../version.json';
7
7
  import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
8
8
  import { useNavigationContext } from '../../contexts/navigationContext';
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
3
+ import { injectIntl } from 'react-intl-next';
4
+ import NotFoundImage from '../../../../assets/NotFoundImage';
5
+ import { messages } from '../../../../messages';
6
+ import { WhatsNewResultsEmptyMessageImage, WhatsNewResultsEmptyMessageText } from './styled';
7
+ export const WhatsNewResultsEmpty = ({
8
+ onClearFilter,
9
+ intl: {
10
+ formatMessage
11
+ }
12
+ }) => {
13
+ const {
14
+ createAnalyticsEvent
15
+ } = useAnalyticsEvents();
16
+
17
+ const handleClearFilterLinkClick = event => {
18
+ event.preventDefault();
19
+ const analyticsEvent = createAnalyticsEvent({
20
+ action: 'clicked'
21
+ });
22
+ analyticsEvent.fire();
23
+ onClearFilter();
24
+ };
25
+
26
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WhatsNewResultsEmptyMessageImage, null, /*#__PURE__*/React.createElement(NotFoundImage, null)), /*#__PURE__*/React.createElement(WhatsNewResultsEmptyMessageText, null, /*#__PURE__*/React.createElement("strong", null, formatMessage(messages.help_whats_new_no_results))), /*#__PURE__*/React.createElement(WhatsNewResultsEmptyMessageText, null, /*#__PURE__*/React.createElement("p", null, formatMessage(messages.help_whats_new_no_results_info), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(AnalyticsContext, {
27
+ data: {
28
+ componentName: 'WhatsNewResultsEmpty'
29
+ }
30
+ }, /*#__PURE__*/React.createElement("a", {
31
+ href: "#",
32
+ onClick: handleClearFilterLinkClick
33
+ }, formatMessage(messages.help_whats_new_no_results_clear_filter_button_label)), /*#__PURE__*/React.createElement("span", null, formatMessage(messages.help_whats_new_no_results_clear_filter_info))))));
34
+ };
35
+ export default injectIntl(WhatsNewResultsEmpty);
@@ -0,0 +1,16 @@
1
+ /** @jsx jsx */
2
+ import styled from '@emotion/styled';
3
+ import { gridSize } from '@atlaskit/theme/constants';
4
+ import * as colors from '@atlaskit/theme/colors';
5
+ export const WhatsNewResultsEmptyMessageImage = styled.div`
6
+ padding: ${3 * gridSize()}px ${3 * gridSize()}px 0 ${3 * gridSize()}px;
7
+ text-align: center;
8
+ `;
9
+ export const WhatsNewResultsEmptyMessageText = styled.div`
10
+ padding: ${3 * gridSize()}px ${3 * gridSize()}px 0 ${3 * gridSize()}px;
11
+ text-align: center;
12
+
13
+ p {
14
+ color: ${colors.N200};
15
+ }
16
+ `;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Button from '@atlaskit/button/custom-theme-button';
3
- import { injectIntl } from 'react-intl';
3
+ import { injectIntl } from 'react-intl-next';
4
4
  import ErrorImage from '../../../../assets/ErrorImage';
5
5
  import { messages } from '../../../../messages';
6
6
  import { SearchResultEmptyMessageImage, SearchResultEmptyMessageText } from './styled';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
3
- import { injectIntl } from 'react-intl';
3
+ import { injectIntl } from 'react-intl-next';
4
4
  import { name as packageName, version as packageVersion } from '../../../../../version.json';
5
5
  import { WHATS_NEW_ITEM_TYPES } from '../../../../../model/WhatsNew';
6
6
  import { getTypeIcon, getTypeTitle } from '../../../../../util';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl';
2
+ import { injectIntl } from 'react-intl-next';
3
3
  import { gridSize } from '@atlaskit/theme/constants';
4
4
  import { messages } from '../../../../messages';
5
5
  import { LoadingRectangle, LoadingCircle } from '../../../../util/styled';