@atlaskit/help 7.2.20 → 7.2.21

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 (48) hide show
  1. package/CHANGELOG.md +6 -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/Article/index.js +2 -2
  10. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
  11. package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +47 -22
  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 -2
  25. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
  26. package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +46 -48
  27. package/dist/es2019/components/HelpContentButton/index.js +1 -1
  28. package/dist/es2019/components/RelatedArticles/index.js +1 -1
  29. package/dist/es2019/components/Search/SearchInput/index.js +1 -1
  30. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
  31. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  32. package/dist/esm/analytics.js +1 -1
  33. package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
  34. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  35. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  36. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  37. package/dist/esm/components/Article/HelpArticle/index.js +1 -1
  38. package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
  39. package/dist/esm/components/Article/index.js +2 -2
  40. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
  41. package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +45 -21
  42. package/dist/esm/components/HelpContentButton/index.js +1 -1
  43. package/dist/esm/components/RelatedArticles/index.js +1 -1
  44. package/dist/esm/components/Search/SearchInput/index.js +1 -1
  45. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
  46. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  47. package/docs/0-intro.tsx +2 -17
  48. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/help
2
2
 
3
+ ## 7.2.21
4
+
5
+ ### Patch Changes
6
+
7
+ - [#77778](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77778) [`7fd2dabb944a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7fd2dabb944a) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
8
+
3
9
  ## 7.2.20
4
10
 
5
11
  ### 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.2.20"
17
+ packageVersion: "7.2.21"
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.20"
18
+ packageVersion: "7.2.21"
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.20"
16
+ packageVersion: "7.2.21"
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.20"
16
+ packageVersion: "7.2.21"
17
17
  };
18
18
  var ArticleWasHelpfulYesButton = exports.ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
19
19
  var _ref$isSelected = _ref.isSelected,
@@ -36,7 +36,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
36
36
  var ANALYTICS_CONTEXT_DATA = {
37
37
  componentName: 'ArticleWasHelpfulForm',
38
38
  packageName: "@atlaskit/help",
39
- packageVersion: "7.2.20"
39
+ packageVersion: "7.2.21"
40
40
  };
41
41
  var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
42
42
  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.20"
67
+ packageVersion: "7.2.21"
68
68
  };
69
69
  if (onRelatedArticlesShowMoreClick) {
70
70
  onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
@@ -22,7 +22,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
22
22
  var analyticsContextData = {
23
23
  componentName: 'ArticlesListItem',
24
24
  packageName: "@atlaskit/help",
25
- packageVersion: "7.2.20"
25
+ packageVersion: "7.2.21"
26
26
  };
27
27
  var WhatsNewArticle = exports.WhatsNewArticle = function WhatsNewArticle(_ref) {
28
28
  var formatMessage = _ref.intl.formatMessage,
@@ -21,7 +21,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
21
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
22
  // Animation
23
23
  var defaultStyle = {
24
- left: "100%"
24
+ left: '100%'
25
25
  };
26
26
  var enableTransition = {
27
27
  enabled: {
@@ -33,7 +33,7 @@ var transitionStyles = {
33
33
  left: 0
34
34
  },
35
35
  exited: {
36
- left: "100%"
36
+ left: '100%'
37
37
  }
38
38
  };
39
39
  var Article = exports.Article = function Article() {
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  var ANALYTICS_CONTEXT_DATA = {
18
18
  componentName: 'ArticlesListItem',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.2.20"
20
+ packageVersion: "7.2.21"
21
21
  };
22
22
  var ArticlesListItem = exports.ArticlesListItem = function ArticlesListItem(_ref) {
23
23
  var styles = _ref.styles,
@@ -6,45 +6,70 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.ArticlesListItemWrapper = exports.ArticlesListItemTypeTitle = exports.ArticlesListItemTitleText = exports.ArticlesListItemLinkIcon = exports.ArticlesListItemDescription = exports.ArticlesListItemContainer = void 0;
9
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
9
  var _styled = _interopRequireDefault(require("@emotion/styled"));
11
10
  var _constants = require("@atlaskit/theme/constants");
12
11
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
13
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
14
- /** @jsx jsx */
15
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ /** @jsx jsx */
15
+
17
16
  var ArticlesListItemWrapper = exports.ArticlesListItemWrapper = _styled.default.a({
18
- position: "relative",
19
- boxSizing: "border-box",
17
+ position: 'relative',
18
+ boxSizing: 'border-box',
20
19
  padding: "var(--ds-space-100, 8px)",
21
- display: "block",
22
- textDecoration: "none",
23
- cursor: "pointer",
24
- color: "".concat("var(--ds-text-subtlest, ".concat(colors.N200, ")")),
25
- borderRadius: "3px",
20
+ display: 'block',
21
+ textDecoration: 'none',
22
+ cursor: 'pointer',
23
+ color: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
24
+ borderRadius: '3px',
26
25
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
27
26
  '&:hover, &:focus, &:visited, &:active': {
28
- textDecoration: "none",
29
- outline: "none",
30
- outlineOffset: "none"
27
+ textDecoration: 'none',
28
+ outline: 'none',
29
+ outlineOffset: 'none'
31
30
  },
32
31
  '&:focus': {
33
32
  boxShadow: "".concat("var(--ds-border-focused, ".concat(colors.B100, ")"), " 0px 0px 0px 2px inset")
34
33
  },
35
34
  '&:hover': {
36
- backgroundColor: "".concat("var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")"))
35
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")")
37
36
  },
38
37
  '&:active': {
39
- backgroundColor: "".concat("var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")"))
38
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")")
40
39
  }
41
40
  }, function (props) {
42
41
  return props.styles;
43
42
  });
44
- var ArticlesListItemContainer = exports.ArticlesListItemContainer = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n white-space: nowrap;\n"])));
45
- var ArticlesListItemTypeTitle = exports.ArticlesListItemTypeTitle = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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)");
46
-
47
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
48
- var ArticlesListItemLinkIcon = exports.ArticlesListItemLinkIcon = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n align-self: auto;\n padding-inline-start: 5px;\n vertical-align: middle;\n"])));
49
- var ArticlesListItemTitleText = exports.ArticlesListItemTitleText = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\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, ")"), (0, _constants.fontSize)(), "var(--ds-font-lineHeight-200, 20px)", "var(--ds-space-100, 8px)");
50
- var ArticlesListItemDescription = exports.ArticlesListItemDescription = _styled.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\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, ")"));
43
+ var ArticlesListItemContainer = exports.ArticlesListItemContainer = _styled.default.div({
44
+ width: '100%',
45
+ whiteSpace: 'nowrap'
46
+ });
47
+ var ArticlesListItemTypeTitle = exports.ArticlesListItemTypeTitle = _styled.default.div({
48
+ fontWeight: 'bold',
49
+ fontSize: '11px',
50
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)",
51
+ color: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
52
+ paddingBottom: "var(--ds-space-050, 4px)"
53
+ });
54
+ var ArticlesListItemLinkIcon = exports.ArticlesListItemLinkIcon = _styled.default.span({
55
+ alignSelf: 'auto',
56
+ paddingInlineStart: "var(--ds-space-050, 4px)",
57
+ verticalAlign: 'middle'
58
+ });
59
+ var ArticlesListItemTitleText = exports.ArticlesListItemTitleText = _styled.default.span({
60
+ textDecoration: 'none',
61
+ color: "var(--ds-text, ".concat(colors.N800, ")"),
62
+ fontSize: "".concat((0, _constants.fontSize)(), "px"),
63
+ fontWeight: 600,
64
+ display: 'inline-block',
65
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)",
66
+ whiteSpace: 'normal',
67
+ overflowX: 'hidden',
68
+ marginBottom: "var(--ds-space-100, 8px)"
69
+ });
70
+ var ArticlesListItemDescription = exports.ArticlesListItemDescription = _styled.default.p({
71
+ display: 'block',
72
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)",
73
+ color: "var(--ds-text-subtle, ".concat(colors.N400, ")"),
74
+ margin: 0
75
+ });
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  var analitycsContextData = {
18
18
  componentName: 'HelpContentButton',
19
19
  packageName: "@atlaskit/help",
20
- packageVersion: "7.2.20"
20
+ packageVersion: "7.2.21"
21
21
  };
22
22
  var HelpContentButton = function HelpContentButton(_ref) {
23
23
  var _ref$id = _ref.id,
@@ -28,7 +28,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
28
28
  /** @jsxFrag */
29
29
 
30
30
  var packageName = "@atlaskit/help";
31
- var packageVersion = "7.2.20";
31
+ var packageVersion = "7.2.21";
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(obj, nodeInterop) { if (!nodeInterop && obj &&
27
27
  var ANALYTICS_CONTEXT_DATA = {
28
28
  componentName: 'searchInput',
29
29
  packageName: "@atlaskit/help",
30
- packageVersion: "7.2.20"
30
+ packageVersion: "7.2.21"
31
31
  };
32
32
  var SearchInput = exports.SearchInput = function SearchInput(_ref) {
33
33
  var formatMessage = _ref.intl.formatMessage;
@@ -21,7 +21,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21
21
  var ANALYTICS_CONTEXT_DATA = {
22
22
  componentName: 'WhatsNewButton',
23
23
  packageName: "@atlaskit/help",
24
- packageVersion: "7.2.20"
24
+ packageVersion: "7.2.21"
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.20"
18
+ packageVersion: "7.2.21"
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.20"
8
+ packageVersion: "7.2.21"
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.20"
11
+ packageVersion: "7.2.21"
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.20"
9
+ packageVersion: "7.2.21"
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.20"
9
+ packageVersion: "7.2.21"
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.20"
28
+ packageVersion: "7.2.21"
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.20"
62
+ packageVersion: "7.2.21"
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.20"
16
+ packageVersion: "7.2.21"
17
17
  };
18
18
  export const WhatsNewArticle = ({
19
19
  intl: {
@@ -7,7 +7,7 @@ import { ArticleContainer } from './styled';
7
7
  import ArticleContent from './ArticleContent';
8
8
  // Animation
9
9
  const defaultStyle = {
10
- left: `100%`
10
+ left: '100%'
11
11
  };
12
12
  const enableTransition = {
13
13
  enabled: {
@@ -19,7 +19,7 @@ const transitionStyles = {
19
19
  left: 0
20
20
  },
21
21
  exited: {
22
- left: `100%`
22
+ left: '100%'
23
23
  }
24
24
  };
25
25
  export const Article = () => {
@@ -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.20"
10
+ packageVersion: "7.2.21"
11
11
  };
12
12
  export const ArticlesListItem = ({
13
13
  styles,
@@ -3,62 +3,60 @@ import styled from '@emotion/styled';
3
3
  import { fontSize } from '@atlaskit/theme/constants';
4
4
  import * as colors from '@atlaskit/theme/colors';
5
5
  export const ArticlesListItemWrapper = styled.a({
6
- position: `relative`,
7
- boxSizing: `border-box`,
6
+ position: 'relative',
7
+ boxSizing: 'border-box',
8
8
  padding: "var(--ds-space-100, 8px)",
9
- display: `block`,
10
- textDecoration: `none`,
11
- cursor: `pointer`,
12
- color: `${`var(--ds-text-subtlest, ${colors.N200})`}`,
13
- borderRadius: `3px`,
14
- backgroundColor: `${"var(--ds-background-neutral-subtle, transparent)"}`,
9
+ display: 'block',
10
+ textDecoration: 'none',
11
+ cursor: 'pointer',
12
+ color: `var(--ds-text-subtlest, ${colors.N200})`,
13
+ borderRadius: '3px',
14
+ backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
15
15
  '&:hover, &:focus, &:visited, &:active': {
16
- textDecoration: `none`,
17
- outline: `none`,
18
- outlineOffset: `none`
16
+ textDecoration: 'none',
17
+ outline: 'none',
18
+ outlineOffset: 'none'
19
19
  },
20
20
  '&:focus': {
21
21
  boxShadow: `${`var(--ds-border-focused, ${colors.B100})`} 0px 0px 0px 2px inset`
22
22
  },
23
23
  '&:hover': {
24
- backgroundColor: `${`var(--ds-background-neutral-subtle-hovered, ${colors.N30})`}`
24
+ backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${colors.N30})`
25
25
  },
26
26
  '&:active': {
27
- backgroundColor: `${`var(--ds-background-neutral-subtle-pressed, ${colors.B50})`}`
27
+ backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${colors.B50})`
28
28
  }
29
29
  }, props => props.styles);
30
- export const ArticlesListItemContainer = styled.div`
31
- width: 100%;
32
- white-space: nowrap;
33
- `;
34
- export const ArticlesListItemTypeTitle = styled.div`
35
- font-weight: bold;
36
- font-size: 11px;
37
- line-height: ${"var(--ds-font-lineHeight-100, 16px)"};
38
- color: ${`var(--ds-text-subtlest, ${colors.N200})`};
39
- padding-bottom: ${"var(--ds-space-050, 4px)"};
40
- `;
41
-
42
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
43
- export const ArticlesListItemLinkIcon = styled.span`
44
- align-self: auto;
45
- padding-inline-start: 5px;
46
- vertical-align: middle;
47
- `;
48
- export const ArticlesListItemTitleText = styled.span`
49
- text-decoration: none;
50
- color: ${`var(--ds-text, ${colors.N800})`};
51
- font-size: ${fontSize()}px;
52
- font-weight: 600;
53
- display: inline-block;
54
- line-height: ${"var(--ds-font-lineHeight-200, 20px)"};
55
- white-space: normal;
56
- overflow-x: hidden;
57
- margin-bottom: ${"var(--ds-space-100, 8px)"};
58
- `;
59
- export const ArticlesListItemDescription = styled.p`
60
- display: block;
61
- line-height: ${"var(--ds-font-lineHeight-200, 20px)"};
62
- color: ${`var(--ds-text-subtle, ${colors.N400})`};
63
- margin: 0;
64
- `;
30
+ export const ArticlesListItemContainer = styled.div({
31
+ width: '100%',
32
+ whiteSpace: 'nowrap'
33
+ });
34
+ export const ArticlesListItemTypeTitle = styled.div({
35
+ fontWeight: 'bold',
36
+ fontSize: '11px',
37
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)",
38
+ color: `var(--ds-text-subtlest, ${colors.N200})`,
39
+ paddingBottom: "var(--ds-space-050, 4px)"
40
+ });
41
+ export const ArticlesListItemLinkIcon = styled.span({
42
+ alignSelf: 'auto',
43
+ paddingInlineStart: "var(--ds-space-050, 4px)",
44
+ verticalAlign: 'middle'
45
+ });
46
+ export const ArticlesListItemTitleText = styled.span({
47
+ textDecoration: 'none',
48
+ color: `var(--ds-text, ${colors.N800})`,
49
+ fontSize: `${fontSize()}px`,
50
+ fontWeight: 600,
51
+ display: 'inline-block',
52
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)",
53
+ whiteSpace: 'normal',
54
+ overflowX: 'hidden',
55
+ marginBottom: "var(--ds-space-100, 8px)"
56
+ });
57
+ export const ArticlesListItemDescription = styled.p({
58
+ display: 'block',
59
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)",
60
+ color: `var(--ds-text-subtle, ${colors.N400})`,
61
+ margin: 0
62
+ });
@@ -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.20"
10
+ packageVersion: "7.2.21"
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.20";
18
+ const packageVersion = "7.2.21";
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.20"
20
+ packageVersion: "7.2.21"
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.20"
14
+ packageVersion: "7.2.21"
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.20"
11
+ packageVersion: "7.2.21"
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.20"
8
+ packageVersion: "7.2.21"
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.20"
11
+ packageVersion: "7.2.21"
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.20"
9
+ packageVersion: "7.2.21"
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.20"
9
+ packageVersion: "7.2.21"
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.20"
29
+ packageVersion: "7.2.21"
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.20"
58
+ packageVersion: "7.2.21"
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.20"
16
+ packageVersion: "7.2.21"
17
17
  };
18
18
  export var WhatsNewArticle = function WhatsNewArticle(_ref) {
19
19
  var formatMessage = _ref.intl.formatMessage,
@@ -11,7 +11,7 @@ import { ArticleContainer } from './styled';
11
11
  import ArticleContent from './ArticleContent';
12
12
  // Animation
13
13
  var defaultStyle = {
14
- left: "100%"
14
+ left: '100%'
15
15
  };
16
16
  var enableTransition = {
17
17
  enabled: {
@@ -23,7 +23,7 @@ var transitionStyles = {
23
23
  left: 0
24
24
  },
25
25
  exited: {
26
- left: "100%"
26
+ left: '100%'
27
27
  }
28
28
  };
29
29
  export var Article = function Article() {
@@ -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.20"
10
+ packageVersion: "7.2.21"
11
11
  };
12
12
  export var ArticlesListItem = function ArticlesListItem(_ref) {
13
13
  var styles = _ref.styles,
@@ -1,40 +1,64 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
3
1
  /** @jsx jsx */
4
2
  import styled from '@emotion/styled';
5
3
  import { fontSize } from '@atlaskit/theme/constants';
6
4
  import * as colors from '@atlaskit/theme/colors';
7
5
  export var ArticlesListItemWrapper = styled.a({
8
- position: "relative",
9
- boxSizing: "border-box",
6
+ position: 'relative',
7
+ boxSizing: 'border-box',
10
8
  padding: "var(--ds-space-100, 8px)",
11
- display: "block",
12
- textDecoration: "none",
13
- cursor: "pointer",
14
- color: "".concat("var(--ds-text-subtlest, ".concat(colors.N200, ")")),
15
- borderRadius: "3px",
9
+ display: 'block',
10
+ textDecoration: 'none',
11
+ cursor: 'pointer',
12
+ color: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
13
+ borderRadius: '3px',
16
14
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
17
15
  '&:hover, &:focus, &:visited, &:active': {
18
- textDecoration: "none",
19
- outline: "none",
20
- outlineOffset: "none"
16
+ textDecoration: 'none',
17
+ outline: 'none',
18
+ outlineOffset: 'none'
21
19
  },
22
20
  '&:focus': {
23
21
  boxShadow: "".concat("var(--ds-border-focused, ".concat(colors.B100, ")"), " 0px 0px 0px 2px inset")
24
22
  },
25
23
  '&:hover': {
26
- backgroundColor: "".concat("var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")"))
24
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")")
27
25
  },
28
26
  '&:active': {
29
- backgroundColor: "".concat("var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")"))
27
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")")
30
28
  }
31
29
  }, function (props) {
32
30
  return props.styles;
33
31
  });
34
- export var ArticlesListItemContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n white-space: nowrap;\n"])));
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
-
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
38
- export var ArticlesListItemLinkIcon = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n align-self: auto;\n padding-inline-start: 5px;\n vertical-align: middle;\n"])));
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
- 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, ")"));
32
+ export var ArticlesListItemContainer = styled.div({
33
+ width: '100%',
34
+ whiteSpace: 'nowrap'
35
+ });
36
+ export var ArticlesListItemTypeTitle = styled.div({
37
+ fontWeight: 'bold',
38
+ fontSize: '11px',
39
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)",
40
+ color: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
41
+ paddingBottom: "var(--ds-space-050, 4px)"
42
+ });
43
+ export var ArticlesListItemLinkIcon = styled.span({
44
+ alignSelf: 'auto',
45
+ paddingInlineStart: "var(--ds-space-050, 4px)",
46
+ verticalAlign: 'middle'
47
+ });
48
+ export var ArticlesListItemTitleText = styled.span({
49
+ textDecoration: 'none',
50
+ color: "var(--ds-text, ".concat(colors.N800, ")"),
51
+ fontSize: "".concat(fontSize(), "px"),
52
+ fontWeight: 600,
53
+ display: 'inline-block',
54
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)",
55
+ whiteSpace: 'normal',
56
+ overflowX: 'hidden',
57
+ marginBottom: "var(--ds-space-100, 8px)"
58
+ });
59
+ export var ArticlesListItemDescription = styled.p({
60
+ display: 'block',
61
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)",
62
+ color: "var(--ds-text-subtle, ".concat(colors.N400, ")"),
63
+ margin: 0
64
+ });
@@ -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.20"
10
+ packageVersion: "7.2.21"
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.20";
21
+ var packageVersion = "7.2.21";
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.20"
20
+ packageVersion: "7.2.21"
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.20"
14
+ packageVersion: "7.2.21"
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.20"
11
+ packageVersion: "7.2.21"
12
12
  };
13
13
  export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
14
14
  var formatMessage = _ref.intl.formatMessage,
package/docs/0-intro.tsx CHANGED
@@ -1,25 +1,10 @@
1
1
  import React from 'react';
2
- import {
3
- md,
4
- code,
5
- Props,
6
- AtlassianInternalWarning,
7
- DevPreviewWarning,
8
- } from '@atlaskit/docs';
2
+ import { md, code, Props, AtlassianInternalWarning } from '@atlaskit/docs';
9
3
 
10
4
  const helpProps = require('!!extract-react-types-loader!../src/components/Help');
11
5
 
12
6
  export default md`
13
- ${(
14
- <>
15
- <div style={{ marginBottom: '0.5rem' }}>
16
- <AtlassianInternalWarning />
17
- </div>
18
- <div style={{ marginTop: '0.5rem' }}>
19
- <DevPreviewWarning />
20
- </div>
21
- </>
22
- )}
7
+ ${(<AtlassianInternalWarning />)}
23
8
 
24
9
  ## Usage
25
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.20",
3
+ "version": "7.2.21",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,22 +42,22 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^9.2.0",
45
- "@atlaskit/button": "^17.3.0",
45
+ "@atlaskit/button": "^17.6.0",
46
46
  "@atlaskit/checkbox": "^13.0.0",
47
47
  "@atlaskit/form": "^9.0.3",
48
- "@atlaskit/help-article": "^4.1.0",
49
- "@atlaskit/help-layout": "^4.2.0",
50
- "@atlaskit/icon": "^22.0.0",
51
- "@atlaskit/notification-indicator": "^9.1.0",
48
+ "@atlaskit/help-article": "^4.1.10",
49
+ "@atlaskit/help-layout": "^4.2.15",
50
+ "@atlaskit/icon": "^22.1.0",
51
+ "@atlaskit/notification-indicator": "^9.2.0",
52
52
  "@atlaskit/notification-log-client": "^6.1.0",
53
53
  "@atlaskit/radio": "^6.0.0",
54
54
  "@atlaskit/section-message": "^6.4.0",
55
- "@atlaskit/select": "^17.0.3",
55
+ "@atlaskit/select": "^17.1.0",
56
56
  "@atlaskit/spinner": "^16.0.0",
57
57
  "@atlaskit/textarea": "^5.0.0",
58
58
  "@atlaskit/textfield": "^6.0.0",
59
59
  "@atlaskit/theme": "^12.6.0",
60
- "@atlaskit/tokens": "^1.36.0",
60
+ "@atlaskit/tokens": "^1.39.0",
61
61
  "@atlaskit/tooltip": "^18.1.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",