@atlaskit/help 7.14.11 → 8.0.1

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 (44) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
  4. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  5. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  6. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  7. package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
  8. package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
  9. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
  10. package/dist/cjs/components/BackButton/index.js +1 -1
  11. package/dist/cjs/components/HelpContentButton/index.js +1 -1
  12. package/dist/cjs/components/RelatedArticles/index.js +1 -1
  13. package/dist/cjs/components/Search/SearchInput/index.js +4 -31
  14. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
  15. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  16. package/dist/es2019/analytics.js +1 -1
  17. package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
  18. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  19. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  20. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  21. package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
  22. package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
  23. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
  24. package/dist/es2019/components/BackButton/index.js +1 -1
  25. package/dist/es2019/components/HelpContentButton/index.js +1 -1
  26. package/dist/es2019/components/RelatedArticles/index.js +1 -1
  27. package/dist/es2019/components/Search/SearchInput/index.js +4 -31
  28. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
  29. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  30. package/dist/esm/analytics.js +1 -1
  31. package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
  32. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  33. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  34. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  35. package/dist/esm/components/Article/HelpArticle/index.js +1 -1
  36. package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
  37. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
  38. package/dist/esm/components/BackButton/index.js +1 -1
  39. package/dist/esm/components/HelpContentButton/index.js +1 -1
  40. package/dist/esm/components/RelatedArticles/index.js +1 -1
  41. package/dist/esm/components/Search/SearchInput/index.js +4 -31
  42. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
  43. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  44. package/package.json +23 -23
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @atlaskit/help
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#117884](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/117884)
8
+ [`bdf26bc4d0489`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bdf26bc4d0489) -
9
+ Set an aria-label instead of a title on the serch input for better a11y
10
+
11
+ ## 8.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
16
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
17
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
18
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
19
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
20
+ React 17 may come via non-major semver releases.
21
+
22
+ Please refer this community post for more details:
23
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 7.14.11
4
30
 
5
31
  ### Patch Changes
@@ -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.14.11"
17
+ packageVersion: "8.0.1"
18
18
  };
@@ -17,7 +17,7 @@ var _styled = require("./styled");
17
17
  var ANALYTICS_CONTEXT_DATA = {
18
18
  componentName: 'ArticleLoadingFail',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.14.11"
20
+ packageVersion: "8.0.1"
21
21
  };
22
22
  var ArticleLoadingFail = exports.ArticleLoadingFail = function ArticleLoadingFail(_ref) {
23
23
  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.14.11"
16
+ packageVersion: "8.0.1"
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.14.11"
16
+ packageVersion: "8.0.1"
17
17
  };
18
18
  var ArticleWasHelpfulYesButton = exports.ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
19
19
  var _ref$isSelected = _ref.isSelected,
@@ -43,7 +43,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
43
43
  var ANALYTICS_CONTEXT_DATA = {
44
44
  componentName: 'ArticleWasHelpfulForm',
45
45
  packageName: "@atlaskit/help",
46
- packageVersion: "7.14.11"
46
+ packageVersion: "8.0.1"
47
47
  };
48
48
  var buttonStyles = (0, _react2.css)({
49
49
  padding: '0',
@@ -65,7 +65,7 @@ var HelpArticle = exports.HelpArticle = function HelpArticle(_ref) {
65
65
  analyticsEvent.payload.attributes = {
66
66
  componentName: 'Article',
67
67
  packageName: "@atlaskit/help",
68
- packageVersion: "7.14.11"
68
+ packageVersion: "8.0.1"
69
69
  };
70
70
  if (onRelatedArticlesShowMoreClick) {
71
71
  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.14.11"
25
+ packageVersion: "8.0.1"
26
26
  };
27
27
  var WhatsNewArticle = exports.WhatsNewArticle = function WhatsNewArticle(_ref) {
28
28
  var formatMessage = _ref.intl.formatMessage,
@@ -18,7 +18,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
18
18
  var ANALYTICS_CONTEXT_DATA = {
19
19
  componentName: 'ArticlesListItem',
20
20
  packageName: "@atlaskit/help",
21
- packageVersion: "7.14.11"
21
+ packageVersion: "8.0.1"
22
22
  };
23
23
  var highlightText = function highlightText(text) {
24
24
  if (!text) {
@@ -76,7 +76,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
76
76
  data: {
77
77
  componentName: 'backButton',
78
78
  packageName: "@atlaskit/help",
79
- packageVersion: "7.14.11"
79
+ packageVersion: "8.0.1"
80
80
  }
81
81
  }, /*#__PURE__*/_react.default.createElement(BackButton, props));
82
82
  };
@@ -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.14.11"
20
+ packageVersion: "8.0.1"
21
21
  };
22
22
  var HelpContentButton = function HelpContentButton(_ref) {
23
23
  var _ref$id = _ref.id,
@@ -34,7 +34,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
34
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
35
35
 
36
36
  var packageName = "@atlaskit/help";
37
- var packageVersion = "7.14.11";
37
+ var packageVersion = "8.0.1";
38
38
  var buttonStyles = (0, _react2.css)({
39
39
  padding: '0',
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -34,7 +34,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
34
34
  var ANALYTICS_CONTEXT_DATA = {
35
35
  componentName: 'searchInput',
36
36
  packageName: "@atlaskit/help",
37
- packageVersion: "7.14.11"
37
+ packageVersion: "8.0.1"
38
38
  };
39
39
  var buttonStyles = (0, _react2.css)({
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -97,36 +97,9 @@ var SearchInput = exports.SearchInput = function SearchInput(_ref) {
97
97
  if (view === _constants2.VIEW.ARTICLE || view === _constants2.VIEW.WHATS_NEW_ARTICLE || view === _constants2.VIEW.WHATS_NEW) {
98
98
  return null;
99
99
  }
100
- return isAiEnabled ? (0, _react2.jsx)(_styled.SearchInputContainerAi, null, (0, _react2.jsx)(_textfield.default, {
101
- title: "Help articles search input",
102
- autoComplete: "off",
103
- ref: inputRef,
104
- name: "help-search-input",
105
- elemBeforeInput: (0, _react2.jsx)(_styled.SearchIconContainer, null, (0, _react2.jsx)(_search.default, {
106
- LEGACY_margin: "0 2px",
107
- color: "currentColor",
108
- spacing: "spacious",
109
- label: ""
110
- })),
111
- elemAfterInput: (0, _react2.jsx)(_styled.CloseButtonAndSpinnerContainer, null, searchState === _Requests.REQUEST_STATE.loading && (0, _react2.jsx)(_spinner.default, {
112
- size: "small"
113
- }), searchValue !== '' && (0, _react2.jsx)(_customThemeButton.default, {
114
- css: buttonStyles,
115
- appearance: "subtle",
116
- onClick: handleOnClearButtonClick,
117
- spacing: "none",
118
- "aria-label": "Clear field"
119
- }, (0, _react2.jsx)(_closeEditorClose.default, {
120
- color: "currentColor",
121
- spacing: "spacious",
122
- label: ""
123
- }))),
124
- placeholder: formatMessage(_messages.messages.help_search_placeholder),
125
- onChange: handleOnInputChange,
126
- onKeyPress: handleOnKeyPress,
127
- value: searchValue
128
- })) : (0, _react2.jsx)(_styled.SearchInputContainer, null, (0, _react2.jsx)(_textfield.default, {
129
- title: "Help articles search input",
100
+ var WrapperComponent = isAiEnabled ? _styled.SearchInputContainerAi : _styled.SearchInputContainer;
101
+ return (0, _react2.jsx)(WrapperComponent, null, (0, _react2.jsx)(_textfield.default, {
102
+ "aria-label": formatMessage(_messages.messages.help_search_placeholder),
130
103
  autoComplete: "off",
131
104
  ref: inputRef,
132
105
  name: "help-search-input",
@@ -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.14.11"
24
+ packageVersion: "8.0.1"
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.14.11"
18
+ packageVersion: "8.0.1"
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.14.11"
8
+ packageVersion: "8.0.1"
9
9
  };
@@ -10,7 +10,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer, LoadingErrorHeading }
10
10
  const ANALYTICS_CONTEXT_DATA = {
11
11
  componentName: 'ArticleLoadingFail',
12
12
  packageName: "@atlaskit/help",
13
- packageVersion: "7.14.11"
13
+ packageVersion: "8.0.1"
14
14
  };
15
15
  export const ArticleLoadingFail = ({
16
16
  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.14.11"
9
+ packageVersion: "8.0.1"
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.14.11"
9
+ packageVersion: "8.0.1"
10
10
  };
11
11
  export const ArticleWasHelpfulYesButton = ({
12
12
  isSelected = false,
@@ -30,7 +30,7 @@ const FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
30
30
  const ANALYTICS_CONTEXT_DATA = {
31
31
  componentName: 'ArticleWasHelpfulForm',
32
32
  packageName: "@atlaskit/help",
33
- packageVersion: "7.14.11"
33
+ packageVersion: "8.0.1"
34
34
  };
35
35
  const buttonStyles = css({
36
36
  padding: '0',
@@ -60,7 +60,7 @@ export const HelpArticle = ({
60
60
  analyticsEvent.payload.attributes = {
61
61
  componentName: 'Article',
62
62
  packageName: "@atlaskit/help",
63
- packageVersion: "7.14.11"
63
+ packageVersion: "8.0.1"
64
64
  };
65
65
  if (onRelatedArticlesShowMoreClick) {
66
66
  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.14.11"
16
+ packageVersion: "8.0.1"
17
17
  };
18
18
  export const WhatsNewArticle = ({
19
19
  intl: {
@@ -8,7 +8,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
8
8
  const ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticlesListItem',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.14.11"
11
+ packageVersion: "8.0.1"
12
12
  };
13
13
  const highlightText = text => {
14
14
  if (!text) {
@@ -72,7 +72,7 @@ const BackButtonWithContext = props => {
72
72
  data: {
73
73
  componentName: 'backButton',
74
74
  packageName: "@atlaskit/help",
75
- packageVersion: "7.14.11"
75
+ packageVersion: "8.0.1"
76
76
  }
77
77
  }, /*#__PURE__*/React.createElement(BackButton, props));
78
78
  };
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
7
7
  const analitycsContextData = {
8
8
  componentName: 'HelpContentButton',
9
9
  packageName: "@atlaskit/help",
10
- packageVersion: "7.14.11"
10
+ packageVersion: "8.0.1"
11
11
  };
12
12
  const HelpContentButton = ({
13
13
  id = '',
@@ -21,7 +21,7 @@ import { Text } from '@atlaskit/primitives';
21
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  import { css, jsx } from '@emotion/react';
23
23
  const packageName = "@atlaskit/help";
24
- const packageVersion = "7.14.11";
24
+ const packageVersion = "8.0.1";
25
25
  const buttonStyles = css({
26
26
  padding: '0',
27
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -23,7 +23,7 @@ import { useNavigationContext } from '../../contexts/navigationContext';
23
23
  const ANALYTICS_CONTEXT_DATA = {
24
24
  componentName: 'searchInput',
25
25
  packageName: "@atlaskit/help",
26
- packageVersion: "7.14.11"
26
+ packageVersion: "8.0.1"
27
27
  };
28
28
  const buttonStyles = css({
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -91,36 +91,9 @@ export const SearchInput = ({
91
91
  if (view === VIEW.ARTICLE || view === VIEW.WHATS_NEW_ARTICLE || view === VIEW.WHATS_NEW) {
92
92
  return null;
93
93
  }
94
- return isAiEnabled ? jsx(SearchInputContainerAi, null, jsx(Textfield, {
95
- title: "Help articles search input",
96
- autoComplete: "off",
97
- ref: inputRef,
98
- name: "help-search-input",
99
- elemBeforeInput: jsx(SearchIconContainer, null, jsx(SearchIcon, {
100
- LEGACY_margin: "0 2px",
101
- color: "currentColor",
102
- spacing: "spacious",
103
- label: ""
104
- })),
105
- elemAfterInput: jsx(CloseButtonAndSpinnerContainer, null, searchState === REQUEST_STATE.loading && jsx(Spinner, {
106
- size: "small"
107
- }), searchValue !== '' && jsx(Button, {
108
- css: buttonStyles,
109
- appearance: "subtle",
110
- onClick: handleOnClearButtonClick,
111
- spacing: "none",
112
- "aria-label": "Clear field"
113
- }, jsx(EditorCloseIcon, {
114
- color: "currentColor",
115
- spacing: "spacious",
116
- label: ""
117
- }))),
118
- placeholder: formatMessage(messages.help_search_placeholder),
119
- onChange: handleOnInputChange,
120
- onKeyPress: handleOnKeyPress,
121
- value: searchValue
122
- })) : jsx(SearchInputContainer, null, jsx(Textfield, {
123
- title: "Help articles search input",
94
+ const WrapperComponent = isAiEnabled ? SearchInputContainerAi : SearchInputContainer;
95
+ return jsx(WrapperComponent, null, jsx(Textfield, {
96
+ "aria-label": formatMessage(messages.help_search_placeholder),
124
97
  autoComplete: "off",
125
98
  ref: inputRef,
126
99
  name: "help-search-input",
@@ -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.14.11"
14
+ packageVersion: "8.0.1"
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.14.11"
11
+ packageVersion: "8.0.1"
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.14.11"
8
+ packageVersion: "8.0.1"
9
9
  };
@@ -10,7 +10,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer, LoadingErrorHeading }
10
10
  var ANALYTICS_CONTEXT_DATA = {
11
11
  componentName: 'ArticleLoadingFail',
12
12
  packageName: "@atlaskit/help",
13
- packageVersion: "7.14.11"
13
+ packageVersion: "8.0.1"
14
14
  };
15
15
  export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
16
16
  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.14.11"
9
+ packageVersion: "8.0.1"
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.14.11"
9
+ packageVersion: "8.0.1"
10
10
  };
11
11
  export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
12
12
  var _ref$isSelected = _ref.isSelected,
@@ -31,7 +31,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
31
31
  var ANALYTICS_CONTEXT_DATA = {
32
32
  componentName: 'ArticleWasHelpfulForm',
33
33
  packageName: "@atlaskit/help",
34
- packageVersion: "7.14.11"
34
+ packageVersion: "8.0.1"
35
35
  };
36
36
  var buttonStyles = css({
37
37
  padding: '0',
@@ -56,7 +56,7 @@ export var HelpArticle = function HelpArticle(_ref) {
56
56
  analyticsEvent.payload.attributes = {
57
57
  componentName: 'Article',
58
58
  packageName: "@atlaskit/help",
59
- packageVersion: "7.14.11"
59
+ packageVersion: "8.0.1"
60
60
  };
61
61
  if (onRelatedArticlesShowMoreClick) {
62
62
  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.14.11"
16
+ packageVersion: "8.0.1"
17
17
  };
18
18
  export var WhatsNewArticle = function WhatsNewArticle(_ref) {
19
19
  var formatMessage = _ref.intl.formatMessage,
@@ -8,7 +8,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
8
8
  var ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticlesListItem',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.14.11"
11
+ packageVersion: "8.0.1"
12
12
  };
13
13
  var highlightText = function highlightText(text) {
14
14
  if (!text) {
@@ -69,7 +69,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
69
69
  data: {
70
70
  componentName: 'backButton',
71
71
  packageName: "@atlaskit/help",
72
- packageVersion: "7.14.11"
72
+ packageVersion: "8.0.1"
73
73
  }
74
74
  }, /*#__PURE__*/React.createElement(BackButton, props));
75
75
  };
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
7
7
  var analitycsContextData = {
8
8
  componentName: 'HelpContentButton',
9
9
  packageName: "@atlaskit/help",
10
- packageVersion: "7.14.11"
10
+ packageVersion: "8.0.1"
11
11
  };
12
12
  var HelpContentButton = function HelpContentButton(_ref) {
13
13
  var _ref$id = _ref.id,
@@ -24,7 +24,7 @@ import { Text } from '@atlaskit/primitives';
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  import { css, jsx } from '@emotion/react';
26
26
  var packageName = "@atlaskit/help";
27
- var packageVersion = "7.14.11";
27
+ var packageVersion = "8.0.1";
28
28
  var buttonStyles = css({
29
29
  padding: '0',
30
30
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -23,7 +23,7 @@ import { useNavigationContext } from '../../contexts/navigationContext';
23
23
  var ANALYTICS_CONTEXT_DATA = {
24
24
  componentName: 'searchInput',
25
25
  packageName: "@atlaskit/help",
26
- packageVersion: "7.14.11"
26
+ packageVersion: "8.0.1"
27
27
  };
28
28
  var buttonStyles = css({
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -86,36 +86,9 @@ export var SearchInput = function SearchInput(_ref) {
86
86
  if (view === VIEW.ARTICLE || view === VIEW.WHATS_NEW_ARTICLE || view === VIEW.WHATS_NEW) {
87
87
  return null;
88
88
  }
89
- return isAiEnabled ? jsx(SearchInputContainerAi, null, jsx(Textfield, {
90
- title: "Help articles search input",
91
- autoComplete: "off",
92
- ref: inputRef,
93
- name: "help-search-input",
94
- elemBeforeInput: jsx(SearchIconContainer, null, jsx(SearchIcon, {
95
- LEGACY_margin: "0 2px",
96
- color: "currentColor",
97
- spacing: "spacious",
98
- label: ""
99
- })),
100
- elemAfterInput: jsx(CloseButtonAndSpinnerContainer, null, searchState === REQUEST_STATE.loading && jsx(Spinner, {
101
- size: "small"
102
- }), searchValue !== '' && jsx(Button, {
103
- css: buttonStyles,
104
- appearance: "subtle",
105
- onClick: handleOnClearButtonClick,
106
- spacing: "none",
107
- "aria-label": "Clear field"
108
- }, jsx(EditorCloseIcon, {
109
- color: "currentColor",
110
- spacing: "spacious",
111
- label: ""
112
- }))),
113
- placeholder: formatMessage(messages.help_search_placeholder),
114
- onChange: handleOnInputChange,
115
- onKeyPress: handleOnKeyPress,
116
- value: searchValue
117
- })) : jsx(SearchInputContainer, null, jsx(Textfield, {
118
- title: "Help articles search input",
89
+ var WrapperComponent = isAiEnabled ? SearchInputContainerAi : SearchInputContainer;
90
+ return jsx(WrapperComponent, null, jsx(Textfield, {
91
+ "aria-label": formatMessage(messages.help_search_placeholder),
119
92
  autoComplete: "off",
120
93
  ref: inputRef,
121
94
  name: "help-search-input",
@@ -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.14.11"
14
+ packageVersion: "8.0.1"
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.14.11"
11
+ packageVersion: "8.0.1"
12
12
  };
13
13
  export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
14
14
  var formatMessage = _ref.intl.formatMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.14.11",
3
+ "version": "8.0.1",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,28 +35,28 @@
35
35
  "runReact18": true
36
36
  },
37
37
  "dependencies": {
38
- "@atlaskit/analytics-next": "^10.3.0",
39
- "@atlaskit/button": "^20.5.0",
40
- "@atlaskit/checkbox": "^15.4.0",
41
- "@atlaskit/form": "^11.2.0",
42
- "@atlaskit/heading": "^4.3.0",
43
- "@atlaskit/help-article": "^4.4.0",
44
- "@atlaskit/help-layout": "^4.5.0",
45
- "@atlaskit/icon": "^23.11.0",
46
- "@atlaskit/legacy-custom-icons": "^0.21.0",
47
- "@atlaskit/notification-indicator": "^9.5.0",
38
+ "@atlaskit/analytics-next": "^11.0.0",
39
+ "@atlaskit/button": "^21.1.0",
40
+ "@atlaskit/checkbox": "^16.0.0",
41
+ "@atlaskit/form": "^12.0.0",
42
+ "@atlaskit/heading": "^5.0.0",
43
+ "@atlaskit/help-article": "^5.0.0",
44
+ "@atlaskit/help-layout": "^5.0.0",
45
+ "@atlaskit/icon": "^24.0.0",
46
+ "@atlaskit/legacy-custom-icons": "^0.22.0",
47
+ "@atlaskit/notification-indicator": "^10.0.0",
48
48
  "@atlaskit/notification-log-client": "^6.2.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/primitives": "^13.6.0",
51
- "@atlaskit/radio": "^7.3.0",
52
- "@atlaskit/section-message": "^7.0.0",
53
- "@atlaskit/select": "^18.10.0",
54
- "@atlaskit/spinner": "^17.2.0",
55
- "@atlaskit/textarea": "^7.1.0",
56
- "@atlaskit/textfield": "^7.0.0",
57
- "@atlaskit/theme": "^16.0.0",
58
- "@atlaskit/tokens": "^3.3.0",
59
- "@atlaskit/tooltip": "^19.2.0",
50
+ "@atlaskit/primitives": "^14.0.0",
51
+ "@atlaskit/radio": "^8.0.0",
52
+ "@atlaskit/section-message": "^8.0.0",
53
+ "@atlaskit/select": "^19.0.0",
54
+ "@atlaskit/spinner": "^18.0.0",
55
+ "@atlaskit/textarea": "^8.0.0",
56
+ "@atlaskit/textfield": "^8.0.0",
57
+ "@atlaskit/theme": "^17.0.0",
58
+ "@atlaskit/tokens": "^4.1.0",
59
+ "@atlaskit/tooltip": "^20.0.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@emotion/react": "^11.7.1",
62
62
  "@emotion/styled": "^11.0.0",
@@ -66,8 +66,8 @@
66
66
  "react-transition-group": "^4.4.1"
67
67
  },
68
68
  "peerDependencies": {
69
- "react": "^16.8.0 || ^17.0.0 || ^18.2.0",
70
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0",
69
+ "react": "^18.2.0",
70
+ "react-dom": "^18.2.0",
71
71
  "react-intl-next": "npm:react-intl@^5.18.1",
72
72
  "styled-components": "^3.2.6"
73
73
  },