@atlaskit/help 7.2.30 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +735 -475
  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/ArticleLoadingFail/styled.js +9 -4
  5. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  6. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  7. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  8. package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
  9. package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
  10. package/dist/cjs/components/Article/styled.js +16 -3
  11. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
  12. package/dist/cjs/components/ArticlesList/styled.js +16 -5
  13. package/dist/cjs/components/HelpContentButton/index.js +1 -1
  14. package/dist/cjs/components/HelpContentButton/styled.js +9 -0
  15. package/dist/cjs/components/RelatedArticles/index.js +1 -1
  16. package/dist/cjs/components/RelatedArticles/styled.js +30 -8
  17. package/dist/cjs/components/Search/SearchInput/index.js +1 -1
  18. package/dist/cjs/components/Search/SearchInput/styled.js +32 -5
  19. package/dist/cjs/components/Search/SearchResults/index.js +11 -6
  20. package/dist/cjs/components/Search/SearchResults/styled.js +38 -8
  21. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
  22. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +13 -5
  23. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +13 -5
  24. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  25. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +23 -6
  26. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +27 -8
  27. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +15 -4
  28. package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +24 -6
  29. package/dist/cjs/components/contexts/searchContext.js +4 -2
  30. package/dist/cjs/components/styled.js +33 -9
  31. package/dist/cjs/model/Help.js +0 -1
  32. package/dist/cjs/util/styled.js +57 -18
  33. package/dist/es2019/analytics.js +1 -1
  34. package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
  35. package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +8 -8
  36. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  37. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  38. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  39. package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
  40. package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
  41. package/dist/es2019/components/Article/styled.js +15 -15
  42. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
  43. package/dist/es2019/components/ArticlesList/styled.js +14 -14
  44. package/dist/es2019/components/HelpContentButton/index.js +1 -1
  45. package/dist/es2019/components/HelpContentButton/styled.js +9 -0
  46. package/dist/es2019/components/RelatedArticles/index.js +1 -1
  47. package/dist/es2019/components/RelatedArticles/styled.js +28 -29
  48. package/dist/es2019/components/Search/SearchInput/index.js +1 -1
  49. package/dist/es2019/components/Search/SearchInput/styled.js +29 -33
  50. package/dist/es2019/components/Search/SearchResults/index.js +11 -6
  51. package/dist/es2019/components/Search/SearchResults/styled.js +34 -38
  52. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
  53. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +10 -13
  54. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +10 -13
  55. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  56. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -21
  57. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +24 -25
  58. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -14
  59. package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +23 -23
  60. package/dist/es2019/components/contexts/searchContext.js +4 -2
  61. package/dist/es2019/components/styled.js +30 -30
  62. package/dist/es2019/model/Help.js +0 -1
  63. package/dist/es2019/util/styled.js +51 -60
  64. package/dist/esm/analytics.js +1 -1
  65. package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
  66. package/dist/esm/components/Article/ArticleLoadingFail/styled.js +8 -4
  67. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  68. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  69. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  70. package/dist/esm/components/Article/HelpArticle/index.js +1 -1
  71. package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
  72. package/dist/esm/components/Article/styled.js +15 -3
  73. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
  74. package/dist/esm/components/ArticlesList/styled.js +15 -5
  75. package/dist/esm/components/HelpContentButton/index.js +1 -1
  76. package/dist/esm/components/HelpContentButton/styled.js +9 -0
  77. package/dist/esm/components/RelatedArticles/index.js +1 -1
  78. package/dist/esm/components/RelatedArticles/styled.js +28 -7
  79. package/dist/esm/components/Search/SearchInput/index.js +1 -1
  80. package/dist/esm/components/Search/SearchInput/styled.js +31 -5
  81. package/dist/esm/components/Search/SearchResults/index.js +11 -6
  82. package/dist/esm/components/Search/SearchResults/styled.js +36 -7
  83. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
  84. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +11 -4
  85. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +11 -4
  86. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  87. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -5
  88. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +25 -7
  89. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -4
  90. package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +23 -6
  91. package/dist/esm/components/contexts/searchContext.js +4 -2
  92. package/dist/esm/components/styled.js +32 -9
  93. package/dist/esm/model/Help.js +0 -1
  94. package/dist/esm/util/styled.js +57 -18
  95. package/dist/types/analytics.d.ts +2 -2
  96. package/dist/types/components/RelatedArticles/index.d.ts +0 -2
  97. package/dist/types/components/contexts/searchContext.d.ts +5 -4
  98. package/dist/types/model/Help.d.ts +6 -5
  99. package/dist/types-ts4.5/analytics.d.ts +2 -2
  100. package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +0 -2
  101. package/dist/types-ts4.5/components/contexts/searchContext.d.ts +5 -4
  102. package/dist/types-ts4.5/model/Help.d.ts +6 -5
  103. package/package.json +13 -13
@@ -5,12 +5,30 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.WhatsNewResultsListTitleContainer = exports.WhatsNewResultsListContainer = exports.WhatsNewResultsContainer = exports.SelectContainer = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
10
9
  var _constants = require("@atlaskit/theme/constants");
11
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
12
10
  /** @jsx jsx */
13
- var WhatsNewResultsContainer = exports.WhatsNewResultsContainer = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n background-color: ", ";\n flex: 1;\n flex-direction: column;\n box-sizing: border-box;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1;\n padding: ", ";\n"])), "var(--ds-surface, #FFFFFF)", "var(--ds-space-200, 16px)");
14
- var SelectContainer = exports.SelectContainer = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n"])), 19 * (0, _constants.gridSize)());
15
- var WhatsNewResultsListContainer = exports.WhatsNewResultsListContainer = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding-top: ", ";\n"])), "var(--ds-space-100, 8px)");
16
- var WhatsNewResultsListTitleContainer = exports.WhatsNewResultsListTitleContainer = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", ";\n"])), "var(--ds-space-100, 8px)");
11
+
12
+ var WhatsNewResultsContainer = exports.WhatsNewResultsContainer = _styled.default.div({
13
+ position: 'absolute',
14
+ height: '100%',
15
+ width: '100%',
16
+ top: 0,
17
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
18
+ flex: 1,
19
+ flexDirection: 'column',
20
+ boxSizing: 'border-box',
21
+ overflowX: 'hidden',
22
+ overflowY: 'auto',
23
+ zIndex: 1,
24
+ padding: "var(--ds-space-200, 16px)"
25
+ });
26
+ var SelectContainer = exports.SelectContainer = _styled.default.div({
27
+ width: "".concat(19 * (0, _constants.gridSize)(), "px")
28
+ });
29
+ var WhatsNewResultsListContainer = exports.WhatsNewResultsListContainer = _styled.default.div({
30
+ paddingTop: "var(--ds-space-100, 8px)"
31
+ });
32
+ var WhatsNewResultsListTitleContainer = exports.WhatsNewResultsListTitleContainer = _styled.default.div({
33
+ padding: "0 ".concat("var(--ds-space-100, 8px)")
34
+ });
@@ -27,7 +27,8 @@ var SearchContextProvider = exports.SearchContextProvider = function SearchConte
27
27
  onSearchResultItemClick = _ref.onSearchResultItemClick,
28
28
  onSearchExternalUrlClick = _ref.onSearchExternalUrlClick,
29
29
  searchExternalUrl = _ref.searchExternalUrl,
30
- children = _ref.children;
30
+ children = _ref.children,
31
+ openExternalSearchUrlInNewTab = _ref.openExternalSearchUrlInNewTab;
31
32
  // Search
32
33
  var _useState = (0, _react.useState)(''),
33
34
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -124,7 +125,8 @@ var SearchContextProvider = exports.SearchContextProvider = function SearchConte
124
125
  searchExternalUrl: searchExternalUrl,
125
126
  searchResult: searchResult,
126
127
  searchState: searchState,
127
- searchValue: searchValue
128
+ searchValue: searchValue,
129
+ openExternalSearchUrlInNewTab: openExternalSearchUrlInNewTab
128
130
  }
129
131
  }, children);
130
132
  };
@@ -5,14 +5,38 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.Home = exports.HelpBodyContainer = exports.HelpBody = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
10
- var _templateObject, _templateObject2, _templateObject3;
11
9
  /** @jsx jsx */
12
- var HelpBodyContainer = exports.HelpBodyContainer = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n min-height: 0;\n position: relative;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: flex-start;\n"])));
13
- var HelpBody = exports.HelpBody = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n box-sizing: border-box;\n order: 0;\n flex: 1 1 auto;\n align-self: auto;\n position: relative;\n overflow-x: hidden;\n overflow-y: auto;\n"])));
14
- var Home = exports.Home = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: ", ";\n height: 100%;\n overflow: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), function (props) {
15
- return props.isOverlayFullyVisible ? 'none' : 'block';
16
- }, function (props) {
17
- return props.isOverlayVisible ? 'hidden' : 'auto';
18
- }, "var(--ds-space-200, 16px)");
10
+
11
+ var HelpBodyContainer = exports.HelpBodyContainer = _styled.default.div({
12
+ flexGrow: 1,
13
+ minHeight: 0,
14
+ position: 'relative',
15
+ overflowY: 'auto',
16
+ overflowX: 'hidden',
17
+ display: 'flex',
18
+ flexDirection: 'column',
19
+ flexWrap: 'nowrap',
20
+ justifyContent: 'flex-start',
21
+ alignContent: 'stretch',
22
+ alignItems: 'flex-start'
23
+ });
24
+ var HelpBody = exports.HelpBody = _styled.default.div({
25
+ width: '100%',
26
+ boxSizing: 'border-box',
27
+ order: 0,
28
+ flex: '1 1 auto',
29
+ alignSelf: 'auto',
30
+ position: 'relative',
31
+ overflowX: 'hidden',
32
+ overflowY: 'auto'
33
+ });
34
+ var Home = exports.Home = _styled.default.div(function (props) {
35
+ return {
36
+ display: props.isOverlayFullyVisible ? 'none' : 'block',
37
+ height: '100%',
38
+ overflow: props.isOverlayVisible ? 'hidden' : 'auto',
39
+ padding: "var(--ds-space-200, 16px)",
40
+ boxSizing: 'border-box'
41
+ };
42
+ });
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ARTICLE_TYPE = void 0;
7
- var _Article = require("./Article");
8
7
  var ARTICLE_TYPE = exports.ARTICLE_TYPE = /*#__PURE__*/function (ARTICLE_TYPE) {
9
8
  ARTICLE_TYPE["HELP_ARTICLE"] = "HELP_ARTICLE";
10
9
  ARTICLE_TYPE["WHATS_NEW"] = "WHATS_NEW";
@@ -12,42 +12,81 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
12
12
  var _constants = require("@atlaskit/theme/constants");
13
13
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
14
14
  var _WhatsNew = require("../model/WhatsNew");
15
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
15
+ var _templateObject;
16
16
  /** @jsx jsx */
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- var DividerLine = exports.DividerLine = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n height: 2px;\n width: 100%;\n padding: 0 ", ";\n margin-top: ", ";\n box-sizing: border-box;\n"])), "var(--ds-border, ".concat(colors.N30A, ")"), "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)");
19
+ var DividerLine = exports.DividerLine = _styled.default.div({
20
+ backgroundColor: "var(--ds-border, ".concat(colors.N30A, ")"),
21
+ height: '2px',
22
+ width: '100%',
23
+ padding: "0 ".concat("var(--ds-space-200, 16px)"),
24
+ marginTop: "var(--ds-space-200, 16px)",
25
+ boxSizing: 'border-box'
26
+ });
20
27
 
21
28
  /**
22
29
  * Loading container
23
30
  */
24
31
 
25
- var shimmer = (0, _react.keyframes)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n background-position: -300px 0;\n }\n 100% {\n background-position: 1000px 0;\n }\n"])));
26
- var LoadingRectangle = exports.LoadingRectangle = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: middle;\n position: relative;\n height: ", ";\n margin-top: ", ";\n width: ", ";\n border-radius: 2px;\n animation-duration: 1.2s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n background-color: ", ";\n background-image: linear-gradient(\n to right,\n ", " 10%,\n ", " 20%,\n ", " 30%\n );\n background-repeat: no-repeat;\n"])), function (props) {
27
- return props.contentHeight ? props.contentHeight : '1rem';
28
- }, function (props) {
29
- return props.marginTop ? props.marginTop : (0, _constants.gridSize)() + 'px';
30
- }, function (props) {
31
- return props.contentWidth ? props.contentWidth : '100%';
32
- }, shimmer, "var(--ds-background-neutral, ".concat(colors.N30, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), "var(--ds-background-neutral, ".concat(colors.N40, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"));
32
+ var shimmer = (0, _react.keyframes)({
33
+ '0%': {
34
+ backgroundPosition: '-300px 0'
35
+ },
36
+ '100%': {
37
+ backgroundPosition: '1000px 0'
38
+ }
39
+ });
40
+ var LoadingRectangle = exports.LoadingRectangle = _styled.default.div(function (props) {
41
+ return {
42
+ display: 'inline-block',
43
+ verticalAlign: 'middle',
44
+ position: 'relative',
45
+ height: props.contentHeight ? props.contentHeight : '1rem',
46
+ marginTop: props.marginTop ? props.marginTop : (0, _constants.gridSize)() + 'px',
47
+ width: props.contentWidth ? props.contentWidth : '100%',
48
+ borderRadius: '2px',
49
+ animationDuration: '1.2s',
50
+ animationFillMode: 'forwards',
51
+ animationIterationCount: 'infinite',
52
+ animationName: shimmer,
53
+ animationTimingFunction: 'linear',
54
+ backgroundColor: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
55
+ backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 10%, ", "var(--ds-background-neutral, ".concat(colors.N40, ")"), " 20%, ", "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 30% )"),
56
+ backgroundRepeat: 'no-repeat'
57
+ };
58
+ });
33
59
 
34
60
  /**
35
61
  * Loading Circle
36
62
  */
37
63
 
38
- var LoadingCircle = exports.LoadingCircle = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: middle;\n position: relative;\n height: ", ";\n margin-top: ", ";\n width: ", ";\n border-radius: 50%;\n animation-duration: 1.2s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n background-color: ", ";\n background-image: linear-gradient(\n to right,\n ", " 10%,\n ", " 20%,\n ", " 30%\n );\n background-repeat: no-repeat;\n"])), function (props) {
39
- return props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px");
40
- }, function (props) {
41
- return props.marginTop ? props.marginTop : '';
42
- }, function (props) {
43
- return props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px");
44
- }, shimmer, "var(--ds-background-neutral, ".concat(colors.N30, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), "var(--ds-background-neutral, ".concat(colors.N40, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"));
64
+ var LoadingCircle = exports.LoadingCircle = _styled.default.div(function (props) {
65
+ return {
66
+ display: 'inline-block',
67
+ verticalAlign: 'middle',
68
+ position: 'relative',
69
+ height: props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px"),
70
+ marginTop: props.marginTop ? props.marginTop : '',
71
+ width: props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px"),
72
+ borderRadius: '50%',
73
+ animationDuration: '1.2s',
74
+ animationFillMode: 'forwards',
75
+ animationIterationCount: 'infinite',
76
+ animationName: shimmer,
77
+ animationTimingFunction: 'linear',
78
+ backgroundColor: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
79
+ backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 10%, ", "var(--ds-background-neutral, ".concat(colors.N40, ")"), " 20%, ", "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 30% )"),
80
+ backgroundRepeat: 'no-repeat'
81
+ };
82
+ });
45
83
 
46
84
  /**
47
85
  * What's new icon
48
86
  */
49
87
 
50
- var WhatsNewTypeIcon = exports.WhatsNewTypeIcon = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: middle;\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: 2px;\n background-color: ", ";\n\n & > img {\n width: calc(100% - ", "px);\n height: calc(100% - ", "px);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n & > svg {\n height: 100%;\n width: 100%;\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", function (_ref) {
88
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation
89
+ var WhatsNewTypeIcon = exports.WhatsNewTypeIcon = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: middle;\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: 2px;\n background-color: ", ";\n\n & > img {\n width: calc(100% - ", "px);\n height: calc(100% - ", "px);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n & > svg {\n height: 100%;\n width: 100%;\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", function (_ref) {
51
90
  var type = _ref.type;
52
91
  switch (type) {
53
92
  case _WhatsNew.WHATS_NEW_ITEM_TYPES.IMPROVEMENT:
@@ -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.30"
8
+ packageVersion: "7.3.0"
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.30"
11
+ packageVersion: "7.3.0"
12
12
  };
13
13
  export const ArticleLoadingFail = ({
14
14
  onTryAgainButtonClick,
@@ -1,10 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import styled from '@emotion/styled';
3
- export const LoadingErrorMessage = styled.div`
4
- padding-top: ${"var(--ds-space-300, 24px)"};
5
- text-align: center;
6
- `;
7
- export const LoadingErrorButtonContainer = styled.div`
8
- padding-top: ${"var(--ds-space-300, 24px)"};
9
- text-align: center;
10
- `;
3
+ export const LoadingErrorMessage = styled.div({
4
+ paddingTop: "var(--ds-space-300, 24px)",
5
+ textAlign: 'center'
6
+ });
7
+ export const LoadingErrorButtonContainer = styled.div({
8
+ paddingTop: "var(--ds-space-300, 24px)",
9
+ textAlign: 'center'
10
+ });
@@ -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.30"
9
+ packageVersion: "7.3.0"
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.30"
9
+ packageVersion: "7.3.0"
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.30"
28
+ packageVersion: "7.3.0"
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.30"
62
+ packageVersion: "7.3.0"
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.30"
16
+ packageVersion: "7.3.0"
17
17
  };
18
18
  export const WhatsNewArticle = ({
19
19
  intl: {
@@ -1,18 +1,18 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import styled from '@emotion/styled';
4
- export const ArticleContainer = styled.div`
5
- padding: ${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"};
6
- position: absolute;
7
- height: 100%;
8
- width: 100%;
9
- top: 0;
10
- background-color: ${"var(--ds-surface, #FFFFFF)"};
11
- left: 100%;
12
- flex: 1;
13
- flex-direction: column;
14
- box-sizing: border-box;
15
- overflow-x: hidden;
16
- overflow-y: auto;
17
- z-index: 2;
18
- `;
4
+ export const ArticleContainer = styled.div({
5
+ padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"}`,
6
+ position: 'absolute',
7
+ height: '100%',
8
+ width: '100%',
9
+ top: 0,
10
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
11
+ left: '100%',
12
+ flex: 1,
13
+ flexDirection: 'column',
14
+ boxSizing: 'border-box',
15
+ overflowX: 'hidden',
16
+ overflowY: 'auto',
17
+ zIndex: 2
18
+ });
@@ -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.30"
10
+ packageVersion: "7.3.0"
11
11
  };
12
12
  export const ArticlesListItem = ({
13
13
  styles,
@@ -2,18 +2,18 @@
2
2
 
3
3
  import { css } from '@emotion/react';
4
4
  import styled from '@emotion/styled';
5
- export const truncate = (width = '100%') => css`
6
- overflow-x: hidden;
7
- text-overflow: ellipsis;
8
- white-space: nowrap;
9
- width: ${width};
10
- `;
11
- export const ArticlesListContainer = styled.div`
12
- position: relative;
13
- `;
14
- export const ToggleShowMoreArticlesContainer = styled.div`
15
- padding: ${"var(--ds-space-100, 8px)"} 0;
16
- span {
17
- margin: 0;
5
+ export const truncate = (width = '100%') => css({
6
+ overflowX: 'hidden',
7
+ textOverflow: 'ellipsis',
8
+ whiteSpace: 'nowrap',
9
+ width: width
10
+ });
11
+ export const ArticlesListContainer = styled.div({
12
+ position: 'relative'
13
+ });
14
+ export const ToggleShowMoreArticlesContainer = styled.div({
15
+ padding: `${"var(--ds-space-100, 8px)"} 0`,
16
+ span: {
17
+ margin: 0
18
18
  }
19
- `;
19
+ });
@@ -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.30"
10
+ packageVersion: "7.3.0"
11
11
  };
12
12
  const HelpContentButton = ({
13
13
  id = '',
@@ -2,6 +2,7 @@
2
2
 
3
3
  import styled from 'styled-components';
4
4
  import * as colors from '@atlaskit/theme/colors';
5
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation (styled components used)
5
6
  export const HelpContentButtonContainer = styled.a`
6
7
  display: block;
7
8
  cursor: pointer;
@@ -32,6 +33,8 @@ export const HelpContentButtonContainer = styled.a`
32
33
  background-color: ${`var(--ds-background-neutral-subtle-pressed, ${colors.B50})`};
33
34
  }
34
35
  `;
36
+
37
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation (styled components used)
35
38
  export const HelpContentButtonIcon = styled.div`
36
39
  display: inline-block;
37
40
  vertical-align: middle;
@@ -47,6 +50,8 @@ export const HelpContentButtonIcon = styled.div`
47
50
  transform: translate(-50%, -50%);
48
51
  }
49
52
  `;
53
+
54
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation (styled components used)
50
55
  export const HelpContentButtonText = styled.div`
51
56
  width: calc(100% - 20px);
52
57
  display: inline-block;
@@ -54,11 +59,15 @@ export const HelpContentButtonText = styled.div`
54
59
  padding: 0 ${"var(--ds-space-100, 8px)"};
55
60
  box-sizing: border-box;
56
61
  `;
62
+
63
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation (styled components used)
57
64
  export const HelpContentButtonExternalLinkIcon = styled.div`
58
65
  display: inline-block;
59
66
  vertical-align: middle;
60
67
  padding-left: ${"var(--ds-space-050, 4px)"};
61
68
  `;
69
+
70
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation (styled components used)
62
71
  export const HelpContentButtonExternalNotificationIcon = styled.div`
63
72
  display: inline-block;
64
73
  vertical-align: middle;
@@ -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.30";
18
+ const packageVersion = "7.3.0";
19
19
  export const RelatedArticles = ({
20
20
  style = 'primary',
21
21
  routeGroup,
@@ -9,36 +9,35 @@ const baseHeading = (size, lineHeight) => `
9
9
  font-style: inherit;
10
10
  line-height: ${lineHeight / size};
11
11
  `;
12
- export const truncate = (width = '100%') => css`
13
- overflow-x: hidden;
14
- text-overflow: ellipsis;
15
- white-space: nowrap;
16
- width: ${width};
17
- `;
18
- export const RelatedArticlesTitle = styled.div`
19
- ${baseHeading(16, 20)}
20
- color: ${`var(--ds-text, ${colors.N800})`};
21
- font-weight: 600;
22
- letter-spacing: -0.006em;
23
- padding: ${"var(--ds-space-200, 16px)"} 0;
24
- `;
12
+ export const truncate = (width = '100%') => css({
13
+ overflowX: 'hidden',
14
+ textOverflow: 'ellipsis',
15
+ whiteSpace: 'nowrap',
16
+ width: width
17
+ });
18
+ export const RelatedArticlesTitle = styled.div(baseHeading(16, 20), {
19
+ color: `var(--ds-text, ${colors.N800})`,
20
+ fontWeight: 600,
21
+ letterSpacing: '-0.006em',
22
+ padding: `${"var(--ds-space-200, 16px)"} 0`
23
+ });
25
24
 
26
25
  /**
27
26
  * Loading styled-components
28
27
  */
29
- export const LoadignRelatedArticleSection = styled.div`
30
- margin-top: ${"var(--ds-space-100, 8px)"};
31
- `;
32
- export const LoadignRelatedArticleList = styled.ul`
33
- width: 100%;
34
- margin: 0;
35
- padding: 0;
36
- box-sizing: border-box;
37
- `;
38
- export const LoadignRelatedArticleListItem = styled.li`
39
- display: block;
40
- width: 100%;
41
- padding: ${"var(--ds-space-100, 8px)"};
42
- margin-bottom: ${"var(--ds-space-200, 16px)"};
43
- box-sizing: border-box;
44
- `;
28
+ export const LoadignRelatedArticleSection = styled.div({
29
+ marginTop: "var(--ds-space-100, 8px)"
30
+ });
31
+ export const LoadignRelatedArticleList = styled.ul({
32
+ width: '100%',
33
+ margin: 0,
34
+ padding: 0,
35
+ boxSizing: 'border-box'
36
+ });
37
+ export const LoadignRelatedArticleListItem = styled.li({
38
+ display: 'block',
39
+ width: '100%',
40
+ padding: "var(--ds-space-100, 8px)",
41
+ marginBottom: "var(--ds-space-200, 16px)",
42
+ boxSizing: 'border-box'
43
+ });
@@ -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.30"
20
+ packageVersion: "7.3.0"
21
21
  };
22
22
  export const SearchInput = ({
23
23
  intl: {
@@ -1,37 +1,33 @@
1
1
  /** @jsx jsx */
2
2
  import styled from '@emotion/styled';
3
- export const SearchInputContainer = styled.div`
4
- order: 0;
5
- flex: 0 1 auto;
6
- align-self: auto;
7
- width: 100%;
8
- box-sizing: border-box;
9
- `;
10
- export const SearchIconContainer = styled.div`
11
- width: ${"var(--ds-space-300, 24px)"};
12
- height: ${"var(--ds-space-300, 24px)"};
13
- padding-left: ${"var(--ds-space-050, 4px)"};
14
-
15
- & > span {
16
- padding-left: ${"var(--ds-space-050, 4px)"};
17
- height: ${"var(--ds-space-300, 24px)"};
18
- width: ${"var(--ds-space-300, 24px)"};
19
- box-sizing: border-box;
3
+ export const SearchInputContainer = styled.div({
4
+ order: 0,
5
+ flex: '0 1 auto',
6
+ alignSelf: 'auto',
7
+ width: '100%',
8
+ boxSizing: 'border-box'
9
+ });
10
+ export const SearchIconContainer = styled.div({
11
+ width: "var(--ds-space-300, 24px)",
12
+ height: "var(--ds-space-300, 24px)",
13
+ paddingLeft: "var(--ds-space-050, 4px)",
14
+ '& > span': {
15
+ paddingLeft: "var(--ds-space-050, 4px)",
16
+ height: "var(--ds-space-300, 24px)",
17
+ width: "var(--ds-space-300, 24px)",
18
+ boxSizing: 'border-box'
20
19
  }
21
- `;
22
- export const CloseButtonAndSpinnerContainer = styled.div`
23
- font-size: 0;
24
- padding-right: ${"var(--ds-space-100, 8px)"};
25
- position: relative;
26
- white-space: nowrap;
27
-
28
- & > span {
29
- padding-right: ${"var(--ds-space-050, 4px)"};
20
+ });
21
+ export const CloseButtonAndSpinnerContainer = styled.div({
22
+ fontSize: 0,
23
+ paddingRight: "var(--ds-space-100, 8px)",
24
+ position: 'relative',
25
+ whiteSpace: 'nowrap',
26
+ '& > span': {
27
+ paddingRight: "var(--ds-space-050, 4px)"
28
+ },
29
+ '& > button, & > span': {
30
+ display: 'inline-block',
31
+ verticalAlign: 'middle'
30
32
  }
31
-
32
- & > button,
33
- & > span {
34
- display: inline-block;
35
- vertical-align: middle;
36
- }
37
- `;
33
+ });
@@ -41,19 +41,24 @@ export const SearchResults = () => {
41
41
  isSearchResultVisible,
42
42
  onSearch,
43
43
  onSearchResultItemClick,
44
- onSearchExternalUrlClick
44
+ onSearchExternalUrlClick,
45
+ openExternalSearchUrlInNewTab
45
46
  } = useSearchContext();
46
47
  const {
47
48
  openArticle,
48
49
  view
49
50
  } = useNavigationContext();
50
51
  const handleOnSearchResultItemClick = useCallback((event, analyticsEvent, articleData) => {
51
- openArticle({
52
- id: articleData.id,
53
- type: ARTICLE_TYPE.HELP_ARTICLE
54
- });
52
+ if (!openExternalSearchUrlInNewTab || articleData.href == null) {
53
+ openArticle({
54
+ id: articleData.id,
55
+ type: ARTICLE_TYPE.HELP_ARTICLE
56
+ });
57
+ } else {
58
+ window.open(articleData.href, '_blank');
59
+ }
55
60
  onSearchResultItemClick(event, analyticsEvent, articleData);
56
- }, [onSearchResultItemClick, openArticle]);
61
+ }, [onSearchResultItemClick, openArticle, openExternalSearchUrlInNewTab]);
57
62
  return /*#__PURE__*/React.createElement(Transition, {
58
63
  in: view === VIEW.SEARCH && isSearchResultVisible,
59
64
  timeout: FADEIN_OVERLAY_TRANSITION_DURATION_MS