@atlaskit/help 7.2.4 → 7.2.6

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 (68) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/analytics.js +2 -3
  3. package/dist/cjs/components/Article/ArticleLoadingFail/index.js +2 -3
  4. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -3
  5. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -3
  6. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +4 -6
  7. package/dist/cjs/components/Article/HelpArticle/index.js +2 -3
  8. package/dist/cjs/components/Article/WhatsNewArticle/Loading/index.js +1 -2
  9. package/dist/cjs/components/Article/WhatsNewArticle/index.js +3 -5
  10. package/dist/cjs/components/ArticlesList/ArticlesList.js +7 -8
  11. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +2 -3
  12. package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -1
  13. package/dist/cjs/components/HelpContentButton/index.js +2 -3
  14. package/dist/cjs/components/RelatedArticles/index.js +6 -5
  15. package/dist/cjs/components/Search/SearchInput/index.js +2 -3
  16. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +2 -3
  17. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -3
  18. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +4 -4
  19. package/dist/cjs/version.json +1 -1
  20. package/dist/es2019/analytics.js +2 -3
  21. package/dist/es2019/components/Article/ArticleLoadingFail/index.js +2 -3
  22. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -3
  23. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -3
  24. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +4 -6
  25. package/dist/es2019/components/Article/HelpArticle/index.js +2 -3
  26. package/dist/es2019/components/Article/WhatsNewArticle/Loading/index.js +1 -2
  27. package/dist/es2019/components/Article/WhatsNewArticle/index.js +3 -5
  28. package/dist/es2019/components/ArticlesList/ArticlesList.js +3 -4
  29. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +2 -3
  30. package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +1 -1
  31. package/dist/es2019/components/HelpContentButton/index.js +2 -3
  32. package/dist/es2019/components/RelatedArticles/index.js +2 -1
  33. package/dist/es2019/components/Search/SearchInput/index.js +2 -3
  34. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +2 -3
  35. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -3
  36. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +4 -4
  37. package/dist/es2019/version.json +1 -1
  38. package/dist/esm/analytics.js +2 -3
  39. package/dist/esm/components/Article/ArticleLoadingFail/index.js +2 -3
  40. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -3
  41. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -3
  42. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +4 -6
  43. package/dist/esm/components/Article/HelpArticle/index.js +2 -3
  44. package/dist/esm/components/Article/WhatsNewArticle/Loading/index.js +1 -2
  45. package/dist/esm/components/Article/WhatsNewArticle/index.js +3 -5
  46. package/dist/esm/components/ArticlesList/ArticlesList.js +3 -4
  47. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +2 -3
  48. package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +1 -1
  49. package/dist/esm/components/HelpContentButton/index.js +2 -3
  50. package/dist/esm/components/RelatedArticles/index.js +2 -1
  51. package/dist/esm/components/Search/SearchInput/index.js +2 -3
  52. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +2 -3
  53. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -3
  54. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +4 -4
  55. package/dist/esm/version.json +1 -1
  56. package/dist/types/analytics.d.ts +2 -2
  57. package/dist/types-ts4.5/analytics.d.ts +2 -2
  58. package/package.json +4 -6
  59. package/dist/types/assets/WhatsNewIcoExperiment.svg +0 -5
  60. package/dist/types/assets/WhatsNewIconFix.svg +0 -5
  61. package/dist/types/assets/WhatsNewIconImprovement.svg +0 -3
  62. package/dist/types/assets/WhatsNewIconNew.svg +0 -3
  63. package/dist/types/assets/WhatsNewIconRemoved.svg +0 -3
  64. package/dist/types-ts4.5/assets/WhatsNewIcoExperiment.svg +0 -5
  65. package/dist/types-ts4.5/assets/WhatsNewIconFix.svg +0 -5
  66. package/dist/types-ts4.5/assets/WhatsNewIconImprovement.svg +0 -3
  67. package/dist/types-ts4.5/assets/WhatsNewIconNew.svg +0 -3
  68. package/dist/types-ts4.5/assets/WhatsNewIconRemoved.svg +0 -3
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { gridSize } from '@atlaskit/theme/constants';
3
2
  import { N30 } from '@atlaskit/theme/colors';
4
3
  import AnimateHeight from 'react-animate-height';
5
4
  import ArticlesListItem from './ArticlesListItem';
@@ -8,13 +7,13 @@ const getStyles = style => {
8
7
  if (style === 'secondary') {
9
8
  return {
10
9
  border: `2px solid ${`var(--ds-border, ${N30})`}`,
11
- padding: `${gridSize() * 2}px`,
12
- marginBottom: `${gridSize() * 1.5}px`
10
+ padding: "var(--ds-space-200, 16px)",
11
+ marginBottom: "var(--ds-space-150, 12px)"
13
12
  };
14
13
  }
15
14
  return {
16
15
  border: 0,
17
- padding: `${gridSize()}px`,
16
+ padding: "var(--ds-space-100, 8px)",
18
17
  marginBottom: 0
19
18
  };
20
19
  };
@@ -3,12 +3,11 @@ 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
5
  import { injectIntl } from 'react-intl-next';
6
- import { name as packageName, version as packageVersion } from '../../../version.json';
7
6
  import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTitleText, ArticlesListItemDescription, ArticlesListItemLinkIcon } from './styled';
8
7
  const ANALYTICS_CONTEXT_DATA = {
9
8
  componentName: 'ArticlesListItem',
10
- packageName,
11
- packageVersion
9
+ packageName: "@atlaskit/help",
10
+ packageVersion: "7.2.6"
12
11
  };
13
12
  export const ArticlesListItem = ({
14
13
  styles,
@@ -39,7 +39,7 @@ export const ArticlesListItemTypeTitle = styled.div`
39
39
  padding-bottom: ${"var(--ds-space-050, 4px)"};
40
40
  `;
41
41
 
42
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
42
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
43
43
  export const ArticlesListItemLinkIcon = styled.span`
44
44
  align-self: auto;
45
45
  padding-inline-start: 5px;
@@ -3,12 +3,11 @@ import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
3
3
  import Tooltip from '@atlaskit/tooltip';
4
4
  import { NotificationIndicator } from '@atlaskit/notification-indicator';
5
5
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
6
- import { name as packageName, version as packageVersion } from '../../version.json';
7
6
  import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonText, HelpContentButtonExternalLinkIcon, HelpContentButtonExternalNotificationIcon } from './styled';
8
7
  const analitycsContextData = {
9
8
  componentName: 'HelpContentButton',
10
- packageName,
11
- packageVersion
9
+ packageName: "@atlaskit/help",
10
+ packageVersion: "7.2.6"
12
11
  };
13
12
  const HelpContentButton = ({
14
13
  id = '',
@@ -3,7 +3,6 @@ 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
5
  import { injectIntl } from 'react-intl-next';
6
- import { name as packageName, version as packageVersion } from '../../version.json';
7
6
  import { messages } from '../../messages';
8
7
  import ArticlesList from '../ArticlesList';
9
8
  import RelatedArticlesLoading from './RelatedArticlesLoading';
@@ -11,6 +10,8 @@ import { DividerLine } from '../../util/styled';
11
10
  import { RelatedArticlesTitle } from './styled';
12
11
  import useCancellablePromise from '../../util/hooks/cancellablePromise';
13
12
  import { usePrevious } from '../../util/hooks/previous';
13
+ const packageName = "@atlaskit/help";
14
+ const packageVersion = "7.2.6";
14
15
  export const RelatedArticles = ({
15
16
  style = 'primary',
16
17
  routeGroup,
@@ -7,15 +7,14 @@ 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
9
  import { injectIntl } from 'react-intl-next';
10
- import { name as packageName, version as packageVersion } from '../../../version.json';
11
10
  import { REQUEST_STATE } from '../../../model/Requests';
12
11
  import { useSearchContext } from '../../contexts/searchContext';
13
12
  import { messages } from '../../../messages';
14
13
  import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContainer } from './styled';
15
14
  const ANALYTICS_CONTEXT_DATA = {
16
15
  componentName: 'searchInput',
17
- packageName,
18
- packageVersion
16
+ packageName: "@atlaskit/help",
17
+ packageVersion: "7.2.6"
19
18
  };
20
19
  export const SearchInput = ({
21
20
  intl: {
@@ -3,7 +3,6 @@ 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
5
  import { injectIntl } from 'react-intl-next';
6
- import { name as packageName, version as packageVersion } from '../../../version.json';
7
6
  import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
8
7
  import { useNavigationContext } from '../../contexts/navigationContext';
9
8
  import { messages } from '../../../messages';
@@ -11,8 +10,8 @@ import HelpContentButton from '../../HelpContentButton';
11
10
  import { ARTICLE_TYPE } from '../../../model/Help';
12
11
  const ANALYTICS_CONTEXT_DATA = {
13
12
  componentName: 'WhatsNewButton',
14
- packageName,
15
- packageVersion
13
+ packageName: "@atlaskit/help",
14
+ packageVersion: "7.2.6"
16
15
  };
17
16
  export const WhatsNewButton = ({
18
17
  productName,
@@ -1,15 +1,14 @@
1
1
  import React from 'react';
2
2
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
3
3
  import { injectIntl } from 'react-intl-next';
4
- import { name as packageName, version as packageVersion } from '../../../../../version.json';
5
4
  import { WHATS_NEW_ITEM_TYPES } from '../../../../../model/WhatsNew';
6
5
  import { getTypeIcon, getTypeTitle } from '../../../../../util';
7
6
  import { WhatsNewTypeIcon } from '../../../../../util/styled';
8
7
  import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, WhatsNewResultListItemTitleText, WhatsNewResultListItemDescription } from './styled';
9
8
  const ANALYTICS_CONTEXT_DATA = {
10
9
  componentName: 'ArticlesListItem',
11
- packageName,
12
- packageVersion
10
+ packageName: "@atlaskit/help",
11
+ packageVersion: "7.2.6"
13
12
  };
14
13
  export const WhatsNewResultListItem = ({
15
14
  intl: {
@@ -32,7 +32,7 @@ export const WhatsNewResultsLoading = ({
32
32
  marginTop: "4px"
33
33
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
34
34
  style: {
35
- marginLeft: `${gridSize()}px`
35
+ marginLeft: "var(--ds-space-100, 8px)"
36
36
  },
37
37
  contentHeight: "11px",
38
38
  contentWidth: "60px",
@@ -54,7 +54,7 @@ export const WhatsNewResultsLoading = ({
54
54
  marginTop: "4px"
55
55
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
56
56
  style: {
57
- marginLeft: `${gridSize()}px`
57
+ marginLeft: "var(--ds-space-100, 8px)"
58
58
  },
59
59
  contentHeight: "11px",
60
60
  contentWidth: "60px",
@@ -80,7 +80,7 @@ export const WhatsNewResultsLoading = ({
80
80
  marginTop: "4px"
81
81
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
82
82
  style: {
83
- marginLeft: `${gridSize()}px`
83
+ marginLeft: "var(--ds-space-100, 8px)"
84
84
  },
85
85
  contentHeight: "11px",
86
86
  contentWidth: "60px",
@@ -102,7 +102,7 @@ export const WhatsNewResultsLoading = ({
102
102
  marginTop: "4px"
103
103
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
104
104
  style: {
105
- marginLeft: `${gridSize()}px`
105
+ marginLeft: "var(--ds-space-100, 8px)"
106
106
  },
107
107
  contentHeight: "11px",
108
108
  contentWidth: "60px",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.4",
3
+ "version": "7.2.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,10 +1,9 @@
1
1
  import * as x from '@atlaskit/analytics-next';
2
- import { name as packageName, version as packageVersion } from './version.json';
3
2
  export var withAnalyticsEvents = x.withAnalyticsEvents;
4
3
  export var withAnalyticsContext = x.withAnalyticsContext;
5
4
  export var createAndFire = x.createAndFireEvent('atlaskit');
6
5
  export var defaultAnalyticsAttributes = {
7
6
  componentName: 'help',
8
- packageName: packageName,
9
- packageVersion: packageVersion
7
+ packageName: "@atlaskit/help",
8
+ packageVersion: "7.2.6"
10
9
  };
@@ -2,14 +2,13 @@ import React from 'react';
2
2
  import Button from '@atlaskit/button/custom-theme-button';
3
3
  import { injectIntl } from 'react-intl-next';
4
4
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
5
- import { name as packageName, version as packageVersion } from '../../../version.json';
6
5
  import { messages } from '../../../messages';
7
6
  import SomethingWrongImage from '../../../assets/SomethingWrongImage';
8
7
  import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
9
8
  var ANALYTICS_CONTEXT_DATA = {
10
9
  componentName: 'ArticleLoadingFail',
11
- packageName: packageName,
12
- packageVersion: packageVersion
10
+ packageName: "@atlaskit/help",
11
+ packageVersion: "7.2.6"
13
12
  };
14
13
  export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
15
14
  var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
@@ -2,12 +2,11 @@ import React from 'react';
2
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
- import { name as packageName, version as packageVersion } from '../../../../version.json';
6
5
  import { messages } from '../../../../messages';
7
6
  var ANALYTICS_CONTEXT_DATA = {
8
7
  componentName: 'ArticleWasHelpfulNoButton',
9
- packageName: packageName,
10
- packageVersion: packageVersion
8
+ packageName: "@atlaskit/help",
9
+ packageVersion: "7.2.6"
11
10
  };
12
11
  export var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
13
12
  var _ref$isSelected = _ref.isSelected,
@@ -2,12 +2,11 @@ import React from 'react';
2
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
- import { name as packageName, version as packageVersion } from '../../../../version.json';
6
5
  import { messages } from '../../../../messages';
7
6
  var ANALYTICS_CONTEXT_DATA = {
8
7
  componentName: 'ArticleWasHelpfulYesButton',
9
- packageName: packageName,
10
- packageVersion: packageVersion
8
+ packageName: "@atlaskit/help",
9
+ packageVersion: "7.2.6"
11
10
  };
12
11
  export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
13
12
  var _ref$isSelected = _ref.isSelected,
@@ -10,12 +10,10 @@ import Form, { Field, CheckboxField, FormFooter } from '@atlaskit/form';
10
10
  import { RadioGroup } from '@atlaskit/radio';
11
11
  import { Checkbox } from '@atlaskit/checkbox';
12
12
  import TextArea from '@atlaskit/textarea';
13
- import { gridSize } from '@atlaskit/theme/constants';
14
13
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
15
14
  // AFP-2532 TODO: Fix automatic suppressions below
16
15
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
17
16
  import { colors } from '@atlaskit/theme';
18
- import { name as packageName, version as packageVersion } from '../../../../version.json';
19
17
  import { messages } from '../../../../messages';
20
18
  import ArticleWasHelpfulYesButton from './WasHelpfulYesButton';
21
19
  import ArticleWasHelpfulNoButton from './WasHelpfulNoButton';
@@ -23,8 +21,8 @@ import { ArticleFeedbackContainer, ArticleFeedbackText, ArticleFeedbackAnswerWra
23
21
  var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
24
22
  var ANALYTICS_CONTEXT_DATA = {
25
23
  componentName: 'ArticleWasHelpfulForm',
26
- packageName: packageName,
27
- packageVersion: packageVersion
24
+ packageName: "@atlaskit/help",
25
+ packageVersion: "7.2.6"
28
26
  };
29
27
  export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
30
28
  var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
@@ -141,7 +139,7 @@ export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
141
139
  if ((handleArticleWasHelpfulYesButtonClick || handleArticleWasHelpfulNoButtonClick) && !wasHelpfulFormSubmited) {
142
140
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArticleFeedbackContainer, null, /*#__PURE__*/React.createElement(ArticleFeedbackText, {
143
141
  style: {
144
- paddingRight: "".concat(gridSize(), "px")
142
+ paddingRight: "var(--ds-space-100, 8px)"
145
143
  }
146
144
  }, formatMessage(messages.help_article_rating_title)), /*#__PURE__*/React.createElement(ButtonGroup, null, handleArticleWasHelpfulYesButtonClick && /*#__PURE__*/React.createElement(ArticleWasHelpfulYesButton, {
147
145
  onClick: handleArticleWasHelpfulYesButtonClick,
@@ -196,7 +194,7 @@ export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
196
194
  } else if (wasHelpfulFormSubmited && wasHelpful === null) {
197
195
  return /*#__PURE__*/React.createElement(ArticleFeedbackContainer, null, /*#__PURE__*/React.createElement("span", {
198
196
  style: {
199
- paddingRight: "".concat(gridSize(), "px"),
197
+ paddingRight: "var(--ds-space-100, 8px)",
200
198
  verticalAlign: 'middle'
201
199
  }
202
200
  }, /*#__PURE__*/React.createElement(CheckCircleIcon, {
@@ -2,7 +2,6 @@ import React, { useCallback } from 'react';
2
2
  import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
3
3
  import RelatedArticles from '../../RelatedArticles';
4
4
  import { ARTICLE_TYPE } from '../../../model/Help';
5
- import { name as packageName, version as packageVersion } from '../../../version.json';
6
5
  import { useNavigationContext } from '../../contexts/navigationContext';
7
6
  import { useHelpArticleContext } from '../../contexts/helpArticleContext';
8
7
  import { useRelatedArticlesContext } from '../../contexts/relatedArticlesContext';
@@ -55,8 +54,8 @@ export var HelpArticle = function HelpArticle(_ref) {
55
54
  var handleOnRelatedArticlesShowMoreClick = useCallback(function (event, analyticsEvent, isCollapsed) {
56
55
  analyticsEvent.payload.attributes = {
57
56
  componentName: 'Article',
58
- packageName: packageName,
59
- packageVersion: packageVersion
57
+ packageName: "@atlaskit/help",
58
+ packageVersion: "7.2.6"
60
59
  };
61
60
  if (onRelatedArticlesShowMoreClick) {
62
61
  onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { injectIntl } from 'react-intl-next';
3
- import { gridSize } from '@atlaskit/theme/constants';
4
3
  import { messages } from '../../../../messages';
5
4
  import { LoadingRectangle } from '../../../../util/styled';
6
5
  export var Loading = function Loading(_ref) {
@@ -19,7 +18,7 @@ export var Loading = function Loading(_ref) {
19
18
  marginTop: "4px"
20
19
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
21
20
  style: {
22
- marginLeft: "".concat(gridSize(), "px")
21
+ marginLeft: "var(--ds-space-100, 8px)"
23
22
  },
24
23
  contentHeight: "11px",
25
24
  contentWidth: "60px",
@@ -2,11 +2,9 @@ import React from 'react';
2
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
- import { gridSize } from '@atlaskit/theme/constants';
6
5
  import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
7
6
  import { AnalyticsContext } from '@atlaskit/analytics-next';
8
7
  import Button from '@atlaskit/button/custom-theme-button';
9
- import { name as packageName, version as packageVersion } from '../../../version.json';
10
8
  import { messages } from '../../../messages';
11
9
  import { getTypeIcon, getTypeTitle } from '../../../util';
12
10
  import { WhatsNewTypeIcon, DividerLine } from '../../../util/styled';
@@ -14,8 +12,8 @@ import Loading from './Loading';
14
12
  import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLinkContainer, ExternalLinkIconContainer } from './styled';
15
13
  var analyticsContextData = {
16
14
  componentName: 'ArticlesListItem',
17
- packageName: packageName,
18
- packageVersion: packageVersion
15
+ packageName: "@atlaskit/help",
16
+ packageVersion: "7.2.6"
19
17
  };
20
18
  export var WhatsNewArticle = function WhatsNewArticle(_ref) {
21
19
  var formatMessage = _ref.intl.formatMessage,
@@ -34,7 +32,7 @@ export var WhatsNewArticle = function WhatsNewArticle(_ref) {
34
32
  }), (article.relatedExternalLinks || article.communityUrl) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DividerLine, {
35
33
  style: {
36
34
  marginTop: 0,
37
- marginBottom: gridSize() * 2
35
+ marginBottom: "var(--ds-space-200, 16px)"
38
36
  }
39
37
  }), /*#__PURE__*/React.createElement(WhatsNewTitleText, null, "RELATED LINKS"), /*#__PURE__*/React.createElement(AnalyticsContext, {
40
38
  data: {
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { gridSize } from '@atlaskit/theme/constants';
3
2
  import { N30 } from '@atlaskit/theme/colors';
4
3
  import AnimateHeight from 'react-animate-height';
5
4
  import ArticlesListItem from './ArticlesListItem';
@@ -8,13 +7,13 @@ var getStyles = function getStyles(style) {
8
7
  if (style === 'secondary') {
9
8
  return {
10
9
  border: "2px solid ".concat("var(--ds-border, ".concat(N30, ")")),
11
- padding: "".concat(gridSize() * 2, "px"),
12
- marginBottom: "".concat(gridSize() * 1.5, "px")
10
+ padding: "var(--ds-space-200, 16px)",
11
+ marginBottom: "var(--ds-space-150, 12px)"
13
12
  };
14
13
  }
15
14
  return {
16
15
  border: 0,
17
- padding: "".concat(gridSize(), "px"),
16
+ padding: "var(--ds-space-100, 8px)",
18
17
  marginBottom: 0
19
18
  };
20
19
  };
@@ -3,12 +3,11 @@ 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
5
  import { injectIntl } from 'react-intl-next';
6
- import { name as packageName, version as packageVersion } from '../../../version.json';
7
6
  import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTitleText, ArticlesListItemDescription, ArticlesListItemLinkIcon } from './styled';
8
7
  var ANALYTICS_CONTEXT_DATA = {
9
8
  componentName: 'ArticlesListItem',
10
- packageName: packageName,
11
- packageVersion: packageVersion
9
+ packageName: "@atlaskit/help",
10
+ packageVersion: "7.2.6"
12
11
  };
13
12
  export var ArticlesListItem = function ArticlesListItem(_ref) {
14
13
  var styles = _ref.styles,
@@ -34,7 +34,7 @@ export var ArticlesListItemWrapper = styled.a({
34
34
  export var ArticlesListItemContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n white-space: nowrap;\n"])));
35
35
  export var ArticlesListItemTypeTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-weight: bold;\n font-size: 11px;\n line-height: ", ";\n color: ", ";\n padding-bottom: ", ";\n"])), "var(--ds-font-lineHeight-100, 16px)", "var(--ds-text-subtlest, ".concat(colors.N200, ")"), "var(--ds-space-050, 4px)");
36
36
 
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
37
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
38
38
  export var ArticlesListItemLinkIcon = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n align-self: auto;\n padding-inline-start: 5px;\n vertical-align: middle;\n"])));
39
39
  export var ArticlesListItemTitleText = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-decoration: none;\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n display: inline-block;\n line-height: ", ";\n white-space: normal;\n overflow-x: hidden;\n margin-bottom: ", ";\n"])), "var(--ds-text, ".concat(colors.N800, ")"), fontSize(), "var(--ds-font-lineHeight-200, 20px)", "var(--ds-space-100, 8px)");
40
40
  export var ArticlesListItemDescription = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n line-height: ", ";\n color: ", ";\n margin: 0;\n"])), "var(--ds-font-lineHeight-200, 20px)", "var(--ds-text-subtle, ".concat(colors.N400, ")"));
@@ -3,12 +3,11 @@ import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
3
3
  import Tooltip from '@atlaskit/tooltip';
4
4
  import { NotificationIndicator } from '@atlaskit/notification-indicator';
5
5
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
6
- import { name as packageName, version as packageVersion } from '../../version.json';
7
6
  import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonText, HelpContentButtonExternalLinkIcon, HelpContentButtonExternalNotificationIcon } from './styled';
8
7
  var analitycsContextData = {
9
8
  componentName: 'HelpContentButton',
10
- packageName: packageName,
11
- packageVersion: packageVersion
9
+ packageName: "@atlaskit/help",
10
+ packageVersion: "7.2.6"
12
11
  };
13
12
  var HelpContentButton = function HelpContentButton(_ref) {
14
13
  var _ref$id = _ref.id,
@@ -6,7 +6,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
6
6
  import SectionMessage from '@atlaskit/section-message';
7
7
  import Button from '@atlaskit/button/custom-theme-button';
8
8
  import { injectIntl } from 'react-intl-next';
9
- import { name as packageName, version as packageVersion } from '../../version.json';
10
9
  import { messages } from '../../messages';
11
10
  import ArticlesList from '../ArticlesList';
12
11
  import RelatedArticlesLoading from './RelatedArticlesLoading';
@@ -14,6 +13,8 @@ import { DividerLine } from '../../util/styled';
14
13
  import { RelatedArticlesTitle } from './styled';
15
14
  import useCancellablePromise from '../../util/hooks/cancellablePromise';
16
15
  import { usePrevious } from '../../util/hooks/previous';
16
+ var packageName = "@atlaskit/help";
17
+ var packageVersion = "7.2.6";
17
18
  export var RelatedArticles = function RelatedArticles(_ref) {
18
19
  var _ref$style = _ref.style,
19
20
  style = _ref$style === void 0 ? 'primary' : _ref$style,
@@ -7,15 +7,14 @@ 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
9
  import { injectIntl } from 'react-intl-next';
10
- import { name as packageName, version as packageVersion } from '../../../version.json';
11
10
  import { REQUEST_STATE } from '../../../model/Requests';
12
11
  import { useSearchContext } from '../../contexts/searchContext';
13
12
  import { messages } from '../../../messages';
14
13
  import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContainer } from './styled';
15
14
  var ANALYTICS_CONTEXT_DATA = {
16
15
  componentName: 'searchInput',
17
- packageName: packageName,
18
- packageVersion: packageVersion
16
+ packageName: "@atlaskit/help",
17
+ packageVersion: "7.2.6"
19
18
  };
20
19
  export var SearchInput = function SearchInput(_ref) {
21
20
  var formatMessage = _ref.intl.formatMessage;
@@ -3,7 +3,6 @@ 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
5
  import { injectIntl } from 'react-intl-next';
6
- import { name as packageName, version as packageVersion } from '../../../version.json';
7
6
  import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
8
7
  import { useNavigationContext } from '../../contexts/navigationContext';
9
8
  import { messages } from '../../../messages';
@@ -11,8 +10,8 @@ import HelpContentButton from '../../HelpContentButton';
11
10
  import { ARTICLE_TYPE } from '../../../model/Help';
12
11
  var ANALYTICS_CONTEXT_DATA = {
13
12
  componentName: 'WhatsNewButton',
14
- packageName: packageName,
15
- packageVersion: packageVersion
13
+ packageName: "@atlaskit/help",
14
+ packageVersion: "7.2.6"
16
15
  };
17
16
  export var WhatsNewButton = function WhatsNewButton(_ref) {
18
17
  var productName = _ref.productName,
@@ -1,15 +1,14 @@
1
1
  import React from 'react';
2
2
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
3
3
  import { injectIntl } from 'react-intl-next';
4
- import { name as packageName, version as packageVersion } from '../../../../../version.json';
5
4
  import { WHATS_NEW_ITEM_TYPES } from '../../../../../model/WhatsNew';
6
5
  import { getTypeIcon, getTypeTitle } from '../../../../../util';
7
6
  import { WhatsNewTypeIcon } from '../../../../../util/styled';
8
7
  import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, WhatsNewResultListItemTitleText, WhatsNewResultListItemDescription } from './styled';
9
8
  var ANALYTICS_CONTEXT_DATA = {
10
9
  componentName: 'ArticlesListItem',
11
- packageName: packageName,
12
- packageVersion: packageVersion
10
+ packageName: "@atlaskit/help",
11
+ packageVersion: "7.2.6"
13
12
  };
14
13
  export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
15
14
  var formatMessage = _ref.intl.formatMessage,
@@ -29,7 +29,7 @@ export var WhatsNewResultsLoading = function WhatsNewResultsLoading(_ref) {
29
29
  marginTop: "4px"
30
30
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
31
31
  style: {
32
- marginLeft: "".concat(gridSize(), "px")
32
+ marginLeft: "var(--ds-space-100, 8px)"
33
33
  },
34
34
  contentHeight: "11px",
35
35
  contentWidth: "60px",
@@ -51,7 +51,7 @@ export var WhatsNewResultsLoading = function WhatsNewResultsLoading(_ref) {
51
51
  marginTop: "4px"
52
52
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
53
53
  style: {
54
- marginLeft: "".concat(gridSize(), "px")
54
+ marginLeft: "var(--ds-space-100, 8px)"
55
55
  },
56
56
  contentHeight: "11px",
57
57
  contentWidth: "60px",
@@ -77,7 +77,7 @@ export var WhatsNewResultsLoading = function WhatsNewResultsLoading(_ref) {
77
77
  marginTop: "4px"
78
78
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
79
79
  style: {
80
- marginLeft: "".concat(gridSize(), "px")
80
+ marginLeft: "var(--ds-space-100, 8px)"
81
81
  },
82
82
  contentHeight: "11px",
83
83
  contentWidth: "60px",
@@ -99,7 +99,7 @@ export var WhatsNewResultsLoading = function WhatsNewResultsLoading(_ref) {
99
99
  marginTop: "4px"
100
100
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
101
101
  style: {
102
- marginLeft: "".concat(gridSize(), "px")
102
+ marginLeft: "var(--ds-space-100, 8px)"
103
103
  },
104
104
  contentHeight: "11px",
105
105
  contentWidth: "60px",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.4",
3
+ "version": "7.2.6",
4
4
  "sideEffects": false
5
5
  }
@@ -5,6 +5,6 @@ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Compon
5
5
  export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
6
6
  export declare const defaultAnalyticsAttributes: {
7
7
  componentName: string;
8
- packageName: any;
9
- packageVersion: any;
8
+ packageName: string;
9
+ packageVersion: string;
10
10
  };
@@ -5,6 +5,6 @@ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Compon
5
5
  export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
6
6
  export declare const defaultAnalyticsAttributes: {
7
7
  componentName: string;
8
- packageName: any;
9
- packageVersion: any;
8
+ packageName: string;
9
+ packageVersion: string;
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.4",
3
+ "version": "7.2.6",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
- "@atlaskit/button": "^16.7.0",
38
+ "@atlaskit/button": "^16.9.0",
39
39
  "@atlaskit/checkbox": "^12.6.0",
40
40
  "@atlaskit/form": "^8.11.0",
41
41
  "@atlaskit/help-article": "^4.1.0",
@@ -48,9 +48,9 @@
48
48
  "@atlaskit/select": "^16.5.0",
49
49
  "@atlaskit/spinner": "^15.5.0",
50
50
  "@atlaskit/textarea": "^4.7.0",
51
- "@atlaskit/textfield": "^5.5.0",
51
+ "@atlaskit/textfield": "^5.6.0",
52
52
  "@atlaskit/theme": "^12.5.0",
53
- "@atlaskit/tokens": "^1.5.0",
53
+ "@atlaskit/tokens": "^1.14.0",
54
54
  "@atlaskit/tooltip": "^17.8.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/core": "^10.0.9",
@@ -67,9 +67,7 @@
67
67
  "styled-components": "^3.2.6"
68
68
  },
69
69
  "devDependencies": {
70
- "@atlaskit/docs": "*",
71
70
  "@atlaskit/navigation": "^37.0.0",
72
- "@atlaskit/page": "^12.3.0",
73
71
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
74
72
  "@testing-library/react": "^12.1.5",
75
73
  "algoliasearch": "^3.35.1",
@@ -1,5 +0,0 @@
1
- <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M5.4675 3V5.369L3.4985 9.5H8.501L6.532 5.369V3H5.4675ZM9.404 9.07C9.47661 9.22244 9.50943 9.39079 9.49941 9.55934C9.48939 9.72789 9.43686 9.89116 9.3467 10.0339C9.25655 10.1767 9.13171 10.2943 8.98384 10.3758C8.83596 10.4573 8.66985 10.5 8.501 10.5H3.4985C3.32969 10.4999 3.16365 10.4572 3.01584 10.3756C2.86803 10.2941 2.74326 10.1765 2.65316 10.0337C2.56307 9.89096 2.51058 9.72772 2.50058 9.55921C2.49059 9.3907 2.52341 9.2224 2.596 9.07L4.4675 5.143V2H7.5325V5.143L9.404 9.07Z" fill="white"/>
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 6.5H7.5L9 10H3L4.5 6.5Z" fill="white"/>
4
- <path d="M7.5 1.5H4.5C4.22386 1.5 4 1.72386 4 2C4 2.27614 4.22386 2.5 4.5 2.5H7.5C7.77614 2.5 8 2.27614 8 2C8 1.72386 7.77614 1.5 7.5 1.5Z" fill="white"/>
5
- </svg>