@atlaskit/help 7.2.23 → 7.2.25

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 (89) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/analytics/package.json +1 -1
  3. package/dist/cjs/analytics.js +1 -1
  4. package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
  5. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  6. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  7. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  8. package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
  9. package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
  10. package/dist/cjs/components/Article/index.js +2 -1
  11. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
  12. package/dist/cjs/components/HelpContentButton/index.js +1 -1
  13. package/dist/cjs/components/RelatedArticles/index.js +1 -1
  14. package/dist/cjs/components/Search/SearchInput/index.js +1 -1
  15. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
  16. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  17. package/dist/es2019/analytics.js +1 -1
  18. package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
  19. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  20. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  21. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  22. package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
  23. package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
  24. package/dist/es2019/components/Article/index.js +2 -1
  25. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
  26. package/dist/es2019/components/HelpContentButton/index.js +1 -1
  27. package/dist/es2019/components/RelatedArticles/index.js +1 -1
  28. package/dist/es2019/components/Search/SearchInput/index.js +1 -1
  29. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
  30. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  31. package/dist/esm/analytics.js +1 -1
  32. package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
  33. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  34. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  35. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  36. package/dist/esm/components/Article/HelpArticle/index.js +1 -1
  37. package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
  38. package/dist/esm/components/Article/index.js +2 -1
  39. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
  40. package/dist/esm/components/HelpContentButton/index.js +1 -1
  41. package/dist/esm/components/RelatedArticles/index.js +1 -1
  42. package/dist/esm/components/Search/SearchInput/index.js +1 -1
  43. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
  44. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  45. package/dist/types/components/Article/ArticleLoadingFail/index.d.ts +2 -2
  46. package/dist/types/components/Article/HelpArticle/Loading/index.d.ts +2 -2
  47. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +2 -2
  48. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +2 -2
  49. package/dist/types/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +2 -2
  50. package/dist/types/components/Article/WhatsNewArticle/Loading/index.d.ts +2 -2
  51. package/dist/types/components/Article/WhatsNewArticle/index.d.ts +2 -2
  52. package/dist/types/components/ArticlesList/ArticlesListItem/index.d.ts +2 -2
  53. package/dist/types/components/RelatedArticles/RelatedArticlesLoading.d.ts +2 -2
  54. package/dist/types/components/RelatedArticles/index.d.ts +1 -1
  55. package/dist/types/components/Search/SearchInput/index.d.ts +2 -2
  56. package/dist/types/components/Search/SearchResults/SearchExternalSite.d.ts +2 -2
  57. package/dist/types/components/Search/SearchResults/SearchResultsEmpty.d.ts +2 -2
  58. package/dist/types/components/Search/SearchResults/SearchResultsError.d.ts +2 -2
  59. package/dist/types/components/ShowMoreButton/index.d.ts +2 -2
  60. package/dist/types/components/WhatsNew/WhatsNewButton/index.d.ts +2 -2
  61. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +2 -2
  62. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +2 -2
  63. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +2 -2
  64. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +2 -2
  65. package/dist/types/components/WhatsNew/WhatsNewResults/index.d.ts +2 -2
  66. package/dist/types-ts4.5/components/Article/ArticleLoadingFail/index.d.ts +2 -2
  67. package/dist/types-ts4.5/components/Article/HelpArticle/Loading/index.d.ts +2 -2
  68. package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +2 -2
  69. package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +2 -2
  70. package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +2 -2
  71. package/dist/types-ts4.5/components/Article/WhatsNewArticle/Loading/index.d.ts +2 -2
  72. package/dist/types-ts4.5/components/Article/WhatsNewArticle/index.d.ts +2 -2
  73. package/dist/types-ts4.5/components/ArticlesList/ArticlesListItem/index.d.ts +2 -2
  74. package/dist/types-ts4.5/components/RelatedArticles/RelatedArticlesLoading.d.ts +2 -2
  75. package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +1 -1
  76. package/dist/types-ts4.5/components/Search/SearchInput/index.d.ts +2 -2
  77. package/dist/types-ts4.5/components/Search/SearchResults/SearchExternalSite.d.ts +2 -2
  78. package/dist/types-ts4.5/components/Search/SearchResults/SearchResultsEmpty.d.ts +2 -2
  79. package/dist/types-ts4.5/components/Search/SearchResults/SearchResultsError.d.ts +2 -2
  80. package/dist/types-ts4.5/components/ShowMoreButton/index.d.ts +2 -2
  81. package/dist/types-ts4.5/components/WhatsNew/WhatsNewButton/index.d.ts +2 -2
  82. package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +2 -2
  83. package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +2 -2
  84. package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +2 -2
  85. package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +2 -2
  86. package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/index.d.ts +2 -2
  87. package/docs/0-intro.tsx +2 -2
  88. package/messages/package.json +1 -1
  89. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/help
2
2
 
3
+ ## 7.2.25
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
9
+ ## 7.2.24
10
+
11
+ ### Patch Changes
12
+
13
+ - [#82940](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82940) [`a8bf2f3b71ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a8bf2f3b71ac) - Updating examples to use new Algolia indices
14
+
3
15
  ## 7.2.23
4
16
 
5
17
  ### Patch Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/analytics.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/analytics.d.ts"
12
12
  ]
@@ -14,5 +14,5 @@ var createAndFire = exports.createAndFire = x.createAndFireEvent('atlaskit');
14
14
  var defaultAnalyticsAttributes = exports.defaultAnalyticsAttributes = {
15
15
  componentName: 'help',
16
16
  packageName: "@atlaskit/help",
17
- packageVersion: "7.2.23"
17
+ packageVersion: "7.2.25"
18
18
  };
@@ -15,7 +15,7 @@ var _styled = require("./styled");
15
15
  var ANALYTICS_CONTEXT_DATA = {
16
16
  componentName: 'ArticleLoadingFail',
17
17
  packageName: "@atlaskit/help",
18
- packageVersion: "7.2.23"
18
+ packageVersion: "7.2.25"
19
19
  };
20
20
  var ArticleLoadingFail = exports.ArticleLoadingFail = function ArticleLoadingFail(_ref) {
21
21
  var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
@@ -13,7 +13,7 @@ var _messages = require("../../../../messages");
13
13
  var ANALYTICS_CONTEXT_DATA = {
14
14
  componentName: 'ArticleWasHelpfulNoButton',
15
15
  packageName: "@atlaskit/help",
16
- packageVersion: "7.2.23"
16
+ packageVersion: "7.2.25"
17
17
  };
18
18
  var ArticleWasHelpfulNoButton = exports.ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
19
19
  var _ref$isSelected = _ref.isSelected,
@@ -13,7 +13,7 @@ var _messages = require("../../../../messages");
13
13
  var ANALYTICS_CONTEXT_DATA = {
14
14
  componentName: 'ArticleWasHelpfulYesButton',
15
15
  packageName: "@atlaskit/help",
16
- packageVersion: "7.2.23"
16
+ packageVersion: "7.2.25"
17
17
  };
18
18
  var ArticleWasHelpfulYesButton = exports.ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
19
19
  var _ref$isSelected = _ref.isSelected,
@@ -37,7 +37,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
37
37
  var ANALYTICS_CONTEXT_DATA = {
38
38
  componentName: 'ArticleWasHelpfulForm',
39
39
  packageName: "@atlaskit/help",
40
- packageVersion: "7.2.23"
40
+ packageVersion: "7.2.25"
41
41
  };
42
42
  var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
43
43
  var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
@@ -64,7 +64,7 @@ var HelpArticle = exports.HelpArticle = function HelpArticle(_ref) {
64
64
  analyticsEvent.payload.attributes = {
65
65
  componentName: 'Article',
66
66
  packageName: "@atlaskit/help",
67
- packageVersion: "7.2.23"
67
+ packageVersion: "7.2.25"
68
68
  };
69
69
  if (onRelatedArticlesShowMoreClick) {
70
70
  onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
@@ -22,7 +22,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
22
22
  var analyticsContextData = {
23
23
  componentName: 'ArticlesListItem',
24
24
  packageName: "@atlaskit/help",
25
- packageVersion: "7.2.23"
25
+ packageVersion: "7.2.25"
26
26
  };
27
27
  var WhatsNewArticle = exports.WhatsNewArticle = function WhatsNewArticle(_ref) {
28
28
  var formatMessage = _ref.intl.formatMessage,
@@ -37,6 +37,7 @@ var transitionStyles = {
37
37
  }
38
38
  };
39
39
  var Article = exports.Article = function Article() {
40
+ var _history$length;
40
41
  var _useNavigationContext = (0, _navigationContext.useNavigationContext)(),
41
42
  view = _useNavigationContext.view,
42
43
  articleId = _useNavigationContext.articleId,
@@ -46,7 +47,7 @@ var Article = exports.Article = function Article() {
46
47
  reloadWhatsNewArticle = _useNavigationContext.reloadWhatsNewArticle;
47
48
  var _useHelpArticleContex = (0, _helpArticleContext.useHelpArticleContext)(),
48
49
  onHelpArticleLoadingFailTryAgainButtonClick = _useHelpArticleContex.onHelpArticleLoadingFailTryAgainButtonClick;
49
- var _useState = (0, _react.useState)((articleId === null || articleId === void 0 ? void 0 : articleId.id) !== '' || (history ? history.length : []) > 0),
50
+ var _useState = (0, _react.useState)((articleId === null || articleId === void 0 ? void 0 : articleId.id) !== '' || ((_history$length = history === null || history === void 0 ? void 0 : history.length) !== null && _history$length !== void 0 ? _history$length : 0) > 0),
50
51
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
51
52
  skipArticleSlideInAnimation = _useState2[0],
52
53
  setSkipArticleSlideInAnimation = _useState2[1];
@@ -17,7 +17,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
17
17
  var ANALYTICS_CONTEXT_DATA = {
18
18
  componentName: 'ArticlesListItem',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.2.23"
20
+ packageVersion: "7.2.25"
21
21
  };
22
22
  var ArticlesListItem = exports.ArticlesListItem = function ArticlesListItem(_ref) {
23
23
  var styles = _ref.styles,
@@ -17,7 +17,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
17
17
  var analitycsContextData = {
18
18
  componentName: 'HelpContentButton',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.2.23"
20
+ packageVersion: "7.2.25"
21
21
  };
22
22
  var HelpContentButton = function HelpContentButton(_ref) {
23
23
  var _ref$id = _ref.id,
@@ -28,7 +28,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
28
28
  /** @jsxFrag */
29
29
 
30
30
  var packageName = "@atlaskit/help";
31
- var packageVersion = "7.2.23";
31
+ var packageVersion = "7.2.25";
32
32
  var RelatedArticles = exports.RelatedArticles = function RelatedArticles(_ref) {
33
33
  var _ref$style = _ref.style,
34
34
  style = _ref$style === void 0 ? 'primary' : _ref$style,
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
27
27
  var ANALYTICS_CONTEXT_DATA = {
28
28
  componentName: 'searchInput',
29
29
  packageName: "@atlaskit/help",
30
- packageVersion: "7.2.23"
30
+ packageVersion: "7.2.25"
31
31
  };
32
32
  var SearchInput = exports.SearchInput = function SearchInput(_ref) {
33
33
  var formatMessage = _ref.intl.formatMessage;
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
21
21
  var ANALYTICS_CONTEXT_DATA = {
22
22
  componentName: 'WhatsNewButton',
23
23
  packageName: "@atlaskit/help",
24
- packageVersion: "7.2.23"
24
+ packageVersion: "7.2.25"
25
25
  };
26
26
  var WhatsNewButton = exports.WhatsNewButton = function WhatsNewButton(_ref) {
27
27
  var productName = _ref.productName,
@@ -15,7 +15,7 @@ var _styled2 = require("./styled");
15
15
  var ANALYTICS_CONTEXT_DATA = {
16
16
  componentName: 'ArticlesListItem',
17
17
  packageName: "@atlaskit/help",
18
- packageVersion: "7.2.23"
18
+ packageVersion: "7.2.25"
19
19
  };
20
20
  var WhatsNewResultListItem = exports.WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
21
21
  var formatMessage = _ref.intl.formatMessage,
@@ -5,5 +5,5 @@ export const createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export const defaultAnalyticsAttributes = {
6
6
  componentName: 'help',
7
7
  packageName: "@atlaskit/help",
8
- packageVersion: "7.2.23"
8
+ packageVersion: "7.2.25"
9
9
  };
@@ -8,7 +8,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
8
8
  const ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticleLoadingFail',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.2.23"
11
+ packageVersion: "7.2.25"
12
12
  };
13
13
  export const ArticleLoadingFail = ({
14
14
  onTryAgainButtonClick,
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
6
6
  const ANALYTICS_CONTEXT_DATA = {
7
7
  componentName: 'ArticleWasHelpfulNoButton',
8
8
  packageName: "@atlaskit/help",
9
- packageVersion: "7.2.23"
9
+ packageVersion: "7.2.25"
10
10
  };
11
11
  export const ArticleWasHelpfulNoButton = ({
12
12
  isSelected = false,
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
6
6
  const ANALYTICS_CONTEXT_DATA = {
7
7
  componentName: 'ArticleWasHelpfulYesButton',
8
8
  packageName: "@atlaskit/help",
9
- packageVersion: "7.2.23"
9
+ packageVersion: "7.2.25"
10
10
  };
11
11
  export const ArticleWasHelpfulYesButton = ({
12
12
  isSelected = false,
@@ -25,7 +25,7 @@ const FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
25
25
  const ANALYTICS_CONTEXT_DATA = {
26
26
  componentName: 'ArticleWasHelpfulForm',
27
27
  packageName: "@atlaskit/help",
28
- packageVersion: "7.2.23"
28
+ packageVersion: "7.2.25"
29
29
  };
30
30
  export const ArticleWasHelpfulForm = ({
31
31
  onWasHelpfulSubmit,
@@ -59,7 +59,7 @@ export const HelpArticle = ({
59
59
  analyticsEvent.payload.attributes = {
60
60
  componentName: 'Article',
61
61
  packageName: "@atlaskit/help",
62
- packageVersion: "7.2.23"
62
+ packageVersion: "7.2.25"
63
63
  };
64
64
  if (onRelatedArticlesShowMoreClick) {
65
65
  onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
13
13
  const analyticsContextData = {
14
14
  componentName: 'ArticlesListItem',
15
15
  packageName: "@atlaskit/help",
16
- packageVersion: "7.2.23"
16
+ packageVersion: "7.2.25"
17
17
  };
18
18
  export const WhatsNewArticle = ({
19
19
  intl: {
@@ -23,6 +23,7 @@ const transitionStyles = {
23
23
  }
24
24
  };
25
25
  export const Article = () => {
26
+ var _history$length;
26
27
  const {
27
28
  view,
28
29
  articleId,
@@ -34,7 +35,7 @@ export const Article = () => {
34
35
  const {
35
36
  onHelpArticleLoadingFailTryAgainButtonClick
36
37
  } = useHelpArticleContext();
37
- const [skipArticleSlideInAnimation, setSkipArticleSlideInAnimation] = useState((articleId === null || articleId === void 0 ? void 0 : articleId.id) !== '' || (history ? history.length : []) > 0);
38
+ const [skipArticleSlideInAnimation, setSkipArticleSlideInAnimation] = useState((articleId === null || articleId === void 0 ? void 0 : articleId.id) !== '' || ((_history$length = history === null || history === void 0 ? void 0 : history.length) !== null && _history$length !== void 0 ? _history$length : 0) > 0);
38
39
  const [showArticle, setShowArticle] = useState(skipArticleSlideInAnimation);
39
40
  const currentArticleValue = getCurrentArticle();
40
41
  const [currentArticle, setCurrentArticle] = useState(currentArticleValue);
@@ -7,7 +7,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
7
7
  const ANALYTICS_CONTEXT_DATA = {
8
8
  componentName: 'ArticlesListItem',
9
9
  packageName: "@atlaskit/help",
10
- packageVersion: "7.2.23"
10
+ packageVersion: "7.2.25"
11
11
  };
12
12
  export const ArticlesListItem = ({
13
13
  styles,
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
7
7
  const analitycsContextData = {
8
8
  componentName: 'HelpContentButton',
9
9
  packageName: "@atlaskit/help",
10
- packageVersion: "7.2.23"
10
+ packageVersion: "7.2.25"
11
11
  };
12
12
  const HelpContentButton = ({
13
13
  id = '',
@@ -15,7 +15,7 @@ import useCancellablePromise from '../../util/hooks/cancellablePromise';
15
15
  import { usePrevious } from '../../util/hooks/previous';
16
16
  import { jsx } from '@emotion/react';
17
17
  const packageName = "@atlaskit/help";
18
- const packageVersion = "7.2.23";
18
+ const packageVersion = "7.2.25";
19
19
  export const RelatedArticles = ({
20
20
  style = 'primary',
21
21
  routeGroup,
@@ -17,7 +17,7 @@ import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContain
17
17
  const ANALYTICS_CONTEXT_DATA = {
18
18
  componentName: 'searchInput',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.2.23"
20
+ packageVersion: "7.2.25"
21
21
  };
22
22
  export const SearchInput = ({
23
23
  intl: {
@@ -11,7 +11,7 @@ import { ARTICLE_TYPE } from '../../../model/Help';
11
11
  const ANALYTICS_CONTEXT_DATA = {
12
12
  componentName: 'WhatsNewButton',
13
13
  packageName: "@atlaskit/help",
14
- packageVersion: "7.2.23"
14
+ packageVersion: "7.2.25"
15
15
  };
16
16
  export const WhatsNewButton = ({
17
17
  productName,
@@ -8,7 +8,7 @@ import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, Wh
8
8
  const ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticlesListItem',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.2.23"
11
+ packageVersion: "7.2.25"
12
12
  };
13
13
  export const WhatsNewResultListItem = ({
14
14
  intl: {
@@ -5,5 +5,5 @@ export var createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export var defaultAnalyticsAttributes = {
6
6
  componentName: 'help',
7
7
  packageName: "@atlaskit/help",
8
- packageVersion: "7.2.23"
8
+ packageVersion: "7.2.25"
9
9
  };
@@ -8,7 +8,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
8
8
  var ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticleLoadingFail',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.2.23"
11
+ packageVersion: "7.2.25"
12
12
  };
13
13
  export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
14
14
  var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
6
6
  var ANALYTICS_CONTEXT_DATA = {
7
7
  componentName: 'ArticleWasHelpfulNoButton',
8
8
  packageName: "@atlaskit/help",
9
- packageVersion: "7.2.23"
9
+ packageVersion: "7.2.25"
10
10
  };
11
11
  export var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
12
12
  var _ref$isSelected = _ref.isSelected,
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
6
6
  var ANALYTICS_CONTEXT_DATA = {
7
7
  componentName: 'ArticleWasHelpfulYesButton',
8
8
  packageName: "@atlaskit/help",
9
- packageVersion: "7.2.23"
9
+ packageVersion: "7.2.25"
10
10
  };
11
11
  export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
12
12
  var _ref$isSelected = _ref.isSelected,
@@ -26,7 +26,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
26
26
  var ANALYTICS_CONTEXT_DATA = {
27
27
  componentName: 'ArticleWasHelpfulForm',
28
28
  packageName: "@atlaskit/help",
29
- packageVersion: "7.2.23"
29
+ packageVersion: "7.2.25"
30
30
  };
31
31
  export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
32
32
  var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
@@ -55,7 +55,7 @@ export var HelpArticle = function HelpArticle(_ref) {
55
55
  analyticsEvent.payload.attributes = {
56
56
  componentName: 'Article',
57
57
  packageName: "@atlaskit/help",
58
- packageVersion: "7.2.23"
58
+ packageVersion: "7.2.25"
59
59
  };
60
60
  if (onRelatedArticlesShowMoreClick) {
61
61
  onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
13
13
  var analyticsContextData = {
14
14
  componentName: 'ArticlesListItem',
15
15
  packageName: "@atlaskit/help",
16
- packageVersion: "7.2.23"
16
+ packageVersion: "7.2.25"
17
17
  };
18
18
  export var WhatsNewArticle = function WhatsNewArticle(_ref) {
19
19
  var formatMessage = _ref.intl.formatMessage,
@@ -27,6 +27,7 @@ var transitionStyles = {
27
27
  }
28
28
  };
29
29
  export var Article = function Article() {
30
+ var _history$length;
30
31
  var _useNavigationContext = useNavigationContext(),
31
32
  view = _useNavigationContext.view,
32
33
  articleId = _useNavigationContext.articleId,
@@ -36,7 +37,7 @@ export var Article = function Article() {
36
37
  reloadWhatsNewArticle = _useNavigationContext.reloadWhatsNewArticle;
37
38
  var _useHelpArticleContex = useHelpArticleContext(),
38
39
  onHelpArticleLoadingFailTryAgainButtonClick = _useHelpArticleContex.onHelpArticleLoadingFailTryAgainButtonClick;
39
- var _useState = useState((articleId === null || articleId === void 0 ? void 0 : articleId.id) !== '' || (history ? history.length : []) > 0),
40
+ var _useState = useState((articleId === null || articleId === void 0 ? void 0 : articleId.id) !== '' || ((_history$length = history === null || history === void 0 ? void 0 : history.length) !== null && _history$length !== void 0 ? _history$length : 0) > 0),
40
41
  _useState2 = _slicedToArray(_useState, 2),
41
42
  skipArticleSlideInAnimation = _useState2[0],
42
43
  setSkipArticleSlideInAnimation = _useState2[1];
@@ -7,7 +7,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
7
7
  var ANALYTICS_CONTEXT_DATA = {
8
8
  componentName: 'ArticlesListItem',
9
9
  packageName: "@atlaskit/help",
10
- packageVersion: "7.2.23"
10
+ packageVersion: "7.2.25"
11
11
  };
12
12
  export var ArticlesListItem = function ArticlesListItem(_ref) {
13
13
  var styles = _ref.styles,
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
7
7
  var analitycsContextData = {
8
8
  componentName: 'HelpContentButton',
9
9
  packageName: "@atlaskit/help",
10
- packageVersion: "7.2.23"
10
+ packageVersion: "7.2.25"
11
11
  };
12
12
  var HelpContentButton = function HelpContentButton(_ref) {
13
13
  var _ref$id = _ref.id,
@@ -18,7 +18,7 @@ import useCancellablePromise from '../../util/hooks/cancellablePromise';
18
18
  import { usePrevious } from '../../util/hooks/previous';
19
19
  import { jsx } from '@emotion/react';
20
20
  var packageName = "@atlaskit/help";
21
- var packageVersion = "7.2.23";
21
+ var packageVersion = "7.2.25";
22
22
  export var RelatedArticles = function RelatedArticles(_ref) {
23
23
  var _ref$style = _ref.style,
24
24
  style = _ref$style === void 0 ? 'primary' : _ref$style,
@@ -17,7 +17,7 @@ import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContain
17
17
  var ANALYTICS_CONTEXT_DATA = {
18
18
  componentName: 'searchInput',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.2.23"
20
+ packageVersion: "7.2.25"
21
21
  };
22
22
  export var SearchInput = function SearchInput(_ref) {
23
23
  var formatMessage = _ref.intl.formatMessage;
@@ -11,7 +11,7 @@ import { ARTICLE_TYPE } from '../../../model/Help';
11
11
  var ANALYTICS_CONTEXT_DATA = {
12
12
  componentName: 'WhatsNewButton',
13
13
  packageName: "@atlaskit/help",
14
- packageVersion: "7.2.23"
14
+ packageVersion: "7.2.25"
15
15
  };
16
16
  export var WhatsNewButton = function WhatsNewButton(_ref) {
17
17
  var productName = _ref.productName,
@@ -8,7 +8,7 @@ import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, Wh
8
8
  var ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticlesListItem',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.2.23"
11
+ packageVersion: "7.2.25"
12
12
  };
13
13
  export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
14
14
  var formatMessage = _ref.intl.formatMessage,
@@ -5,7 +5,7 @@ interface Props {
5
5
  onTryAgainButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
6
6
  }
7
7
  export declare const ArticleLoadingFail: React.FC<WrappedComponentProps & Props>;
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
9
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
8
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const Loading: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -6,7 +6,7 @@ interface Props {
6
6
  isSelected?: boolean;
7
7
  }
8
8
  export declare const ArticleWasHelpfulNoButton: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -6,7 +6,7 @@ interface Props {
6
6
  isSelected?: boolean;
7
7
  }
8
8
  export declare const ArticleWasHelpfulYesButton: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -10,7 +10,7 @@ interface Props {
10
10
  onWasHelpfulNoButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
11
11
  }
12
12
  export declare const ArticleWasHelpfulForm: React.FC<Props & WrappedComponentProps>;
13
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
14
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
13
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
14
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
15
15
  };
16
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const Loading: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -6,7 +6,7 @@ interface Props {
6
6
  isLoading?: boolean;
7
7
  }
8
8
  export declare const WhatsNewArticle: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -7,7 +7,7 @@ interface Props {
7
7
  onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
8
8
  }
9
9
  export declare const ArticlesListItem: React.FC<Props & Partial<ArticleItem> & WrappedComponentProps>;
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<ArticleItem> & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps<"intl">>;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<ArticleItem> & WrappedComponentProps>> & {
11
+ WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps>;
12
12
  };
13
13
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
4
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
3
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
4
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
5
5
  };
6
6
  export default _default;
@@ -13,7 +13,7 @@ export interface Props {
13
13
  onRelatedArticlesShowMoreClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent, isCollapsed: boolean) => void;
14
14
  }
15
15
  export declare const RelatedArticles: React.FC<Props & WrappedComponentProps>;
16
- declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps<"intl">, "intl"> & {
16
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
17
17
  forwardedRef?: React.Ref<any> | undefined;
18
18
  } & {
19
19
  children?: React.ReactNode;
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
4
  export declare const SearchInput: React.FC<WrappedComponentProps>;
5
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
6
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
5
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
6
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
7
7
  };
8
8
  export default _default;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const SearchExternalSite: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const SearchResultsEmpty: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  onSearch?(value?: string): void;
5
5
  }
6
6
  export declare const SearchResultsError: React.FC<Props & WrappedComponentProps>;
7
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  export default _default;
@@ -10,7 +10,7 @@ export interface Props {
10
10
  onToggle: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
11
11
  }
12
12
  export declare const ShowMoreButton: React.FC<Props & WrappedComponentProps>;
13
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
14
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
13
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
14
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
15
15
  };
16
16
  export default _default;
@@ -4,7 +4,7 @@ interface WhatsNewButtonProps {
4
4
  productName?: string;
5
5
  }
6
6
  export declare const WhatsNewButton: React.FC<WrappedComponentProps & WhatsNewButtonProps>;
7
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl"> & WhatsNewButtonProps>> & {
8
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl"> & WhatsNewButtonProps>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps & WhatsNewButtonProps>> & {
8
+ WrappedComponent: React.ComponentType<WrappedComponentProps & WhatsNewButtonProps>;
9
9
  };
10
10
  export default _default;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  onClearFilter: () => void;
5
5
  }
6
6
  export declare const WhatsNewResultsEmpty: React.FC<Props & WrappedComponentProps>;
7
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  export default _default;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  onSearch?(filter?: WHATS_NEW_ITEM_TYPES | '', numberOfItems?: number, page?: string): Promise<void>;
6
6
  }
7
7
  export declare const WhatsNewResultsError: React.FC<Props & WrappedComponentProps>;
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
9
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
8
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export default _default;
@@ -7,7 +7,7 @@ interface Props {
7
7
  onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
8
8
  }
9
9
  export declare const WhatsNewResultListItem: React.FC<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>;
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps<"intl">>;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>> & {
11
+ WrappedComponent: React.ComponentType<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>;
12
12
  };
13
13
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const WhatsNewResultsLoading: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const WhatsNewResults: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -5,7 +5,7 @@ interface Props {
5
5
  onTryAgainButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
6
6
  }
7
7
  export declare const ArticleLoadingFail: React.FC<WrappedComponentProps & Props>;
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
9
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
8
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const Loading: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -6,7 +6,7 @@ interface Props {
6
6
  isSelected?: boolean;
7
7
  }
8
8
  export declare const ArticleWasHelpfulNoButton: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -6,7 +6,7 @@ interface Props {
6
6
  isSelected?: boolean;
7
7
  }
8
8
  export declare const ArticleWasHelpfulYesButton: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -10,7 +10,7 @@ interface Props {
10
10
  onWasHelpfulNoButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
11
11
  }
12
12
  export declare const ArticleWasHelpfulForm: React.FC<Props & WrappedComponentProps>;
13
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
14
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
13
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
14
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
15
15
  };
16
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const Loading: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -6,7 +6,7 @@ interface Props {
6
6
  isLoading?: boolean;
7
7
  }
8
8
  export declare const WhatsNewArticle: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -7,7 +7,7 @@ interface Props {
7
7
  onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
8
8
  }
9
9
  export declare const ArticlesListItem: React.FC<Props & Partial<ArticleItem> & WrappedComponentProps>;
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<ArticleItem> & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps<"intl">>;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<ArticleItem> & WrappedComponentProps>> & {
11
+ WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps>;
12
12
  };
13
13
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
4
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
3
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
4
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
5
5
  };
6
6
  export default _default;
@@ -13,7 +13,7 @@ export interface Props {
13
13
  onRelatedArticlesShowMoreClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent, isCollapsed: boolean) => void;
14
14
  }
15
15
  export declare const RelatedArticles: React.FC<Props & WrappedComponentProps>;
16
- declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps<"intl">, "intl"> & {
16
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
17
17
  forwardedRef?: React.Ref<any> | undefined;
18
18
  } & {
19
19
  children?: React.ReactNode;
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
4
  export declare const SearchInput: React.FC<WrappedComponentProps>;
5
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
6
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
5
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
6
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
7
7
  };
8
8
  export default _default;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const SearchExternalSite: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const SearchResultsEmpty: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
10
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export default _default;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  onSearch?(value?: string): void;
5
5
  }
6
6
  export declare const SearchResultsError: React.FC<Props & WrappedComponentProps>;
7
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  export default _default;
@@ -10,7 +10,7 @@ export interface Props {
10
10
  onToggle: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
11
11
  }
12
12
  export declare const ShowMoreButton: React.FC<Props & WrappedComponentProps>;
13
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
14
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
13
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
14
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
15
15
  };
16
16
  export default _default;
@@ -4,7 +4,7 @@ interface WhatsNewButtonProps {
4
4
  productName?: string;
5
5
  }
6
6
  export declare const WhatsNewButton: React.FC<WrappedComponentProps & WhatsNewButtonProps>;
7
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl"> & WhatsNewButtonProps>> & {
8
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl"> & WhatsNewButtonProps>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps & WhatsNewButtonProps>> & {
8
+ WrappedComponent: React.ComponentType<WrappedComponentProps & WhatsNewButtonProps>;
9
9
  };
10
10
  export default _default;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  onClearFilter: () => void;
5
5
  }
6
6
  export declare const WhatsNewResultsEmpty: React.FC<Props & WrappedComponentProps>;
7
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  export default _default;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  onSearch?(filter?: WHATS_NEW_ITEM_TYPES | '', numberOfItems?: number, page?: string): Promise<void>;
6
6
  }
7
7
  export declare const WhatsNewResultsError: React.FC<Props & WrappedComponentProps>;
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
9
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
8
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export default _default;
@@ -7,7 +7,7 @@ interface Props {
7
7
  onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
8
8
  }
9
9
  export declare const WhatsNewResultListItem: React.FC<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>;
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps<"intl">>;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>> & {
11
+ WrappedComponent: React.ComponentType<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>;
12
12
  };
13
13
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const WhatsNewResultsLoading: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const WhatsNewResults: React.FC<WrappedComponentProps>;
4
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
4
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps>> & {
5
+ WrappedComponent: React.ComponentType<WrappedComponentProps>;
6
6
  };
7
7
  export default _default;
package/docs/0-intro.tsx CHANGED
@@ -23,8 +23,8 @@ import {
23
23
  ExampleDefaultContent,
24
24
  } from './utils/styled';
25
25
 
26
- var client = algoliasearch('8K6J5OJIQW', 'c982b4b1a6ca921131d35edb63359b8c');
27
- var index = client.initIndex('product_help_prod');
26
+ const client = algoliasearch(<application-id>, <api-key>);
27
+ const index = client.initIndex(<index-name>);
28
28
 
29
29
  const Example = () => {
30
30
  const onGetArticle = async (articleId: string): Promise<any> => {
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/messages.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/messages.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.23",
3
+ "version": "7.2.25",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -81,7 +81,7 @@
81
81
  "algoliasearch": "^3.35.1",
82
82
  "enzyme": "^3.10.0",
83
83
  "react-test-renderer": "^16.8.0",
84
- "typescript": "~4.9.5"
84
+ "typescript": "~5.4.2"
85
85
  },
86
86
  "keywords": [
87
87
  "atlaskit",