@atlaskit/help 9.0.2 → 9.1.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.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +6 -1
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +6 -2
- package/dist/cjs/components/BackButton/index.js +1 -1
- package/dist/cjs/components/HelpContent.js +4 -4
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.compiled.css +10 -2
- package/dist/cjs/components/HelpContentButton/styled.js +31 -5
- package/dist/cjs/components/RelatedArticles/index.js +1 -1
- package/dist/cjs/components/Search/SearchInput/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/styled.compiled.css +7 -0
- package/dist/cjs/components/styled.js +10 -3
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +7 -2
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +6 -2
- package/dist/es2019/components/BackButton/index.js +1 -1
- package/dist/es2019/components/HelpContent.js +5 -5
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.compiled.css +10 -2
- package/dist/es2019/components/HelpContentButton/styled.js +30 -9
- package/dist/es2019/components/RelatedArticles/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/styled.compiled.css +7 -0
- package/dist/es2019/components/styled.js +8 -2
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +7 -2
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +6 -2
- package/dist/esm/components/BackButton/index.js +1 -1
- package/dist/esm/components/HelpContent.js +5 -5
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.compiled.css +10 -2
- package/dist/esm/components/HelpContentButton/styled.js +31 -5
- package/dist/esm/components/RelatedArticles/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/styled.compiled.css +7 -0
- package/dist/esm/components/styled.js +9 -2
- package/dist/types/components/Search/SearchResults/styled.d.ts +1 -1
- package/dist/types/components/styled.d.ts +4 -1
- package/dist/types-ts4.5/components/Search/SearchResults/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/styled.d.ts +4 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/help
|
|
2
2
|
|
|
3
|
+
## 9.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157102](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157102)
|
|
8
|
+
[`54e0ae5ff0553`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54e0ae5ff0553) -
|
|
9
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
|
|
12
|
+
## 9.0.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#153058](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153058)
|
|
17
|
+
[`e4f9b9ad1122c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e4f9b9ad1122c) -
|
|
18
|
+
Change help panel article title to be a heading element instead of paragraph
|
|
19
|
+
|
|
3
20
|
## 9.0.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -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: "9.0
|
|
17
|
+
packageVersion: "9.1.0"
|
|
18
18
|
};
|
|
@@ -17,7 +17,7 @@ var _styled = require("./styled");
|
|
|
17
17
|
var ANALYTICS_CONTEXT_DATA = {
|
|
18
18
|
componentName: 'ArticleLoadingFail',
|
|
19
19
|
packageName: "@atlaskit/help",
|
|
20
|
-
packageVersion: "9.0
|
|
20
|
+
packageVersion: "9.1.0"
|
|
21
21
|
};
|
|
22
22
|
var ArticleLoadingFail = exports.ArticleLoadingFail = function ArticleLoadingFail(_ref) {
|
|
23
23
|
var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
|
|
@@ -13,7 +13,7 @@ var _messages = require("../../../../messages");
|
|
|
13
13
|
var ANALYTICS_CONTEXT_DATA = {
|
|
14
14
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "9.0
|
|
16
|
+
packageVersion: "9.1.0"
|
|
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: "9.0
|
|
16
|
+
packageVersion: "9.1.0"
|
|
17
17
|
};
|
|
18
18
|
var ArticleWasHelpfulYesButton = exports.ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
19
19
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -35,7 +35,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
|
35
35
|
var ANALYTICS_CONTEXT_DATA = {
|
|
36
36
|
componentName: 'ArticleWasHelpfulForm',
|
|
37
37
|
packageName: "@atlaskit/help",
|
|
38
|
-
packageVersion: "9.0
|
|
38
|
+
packageVersion: "9.1.0"
|
|
39
39
|
};
|
|
40
40
|
var buttonStyles = null;
|
|
41
41
|
var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
@@ -73,6 +73,7 @@ var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasH
|
|
|
73
73
|
setWasHelpfulFormSubmitedFailed = _useState14[1];
|
|
74
74
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
75
75
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
76
|
+
var wasHelpfulFormClickedButtonRef = (0, _react.useRef)(null);
|
|
76
77
|
var negativeFeedbackReason = [{
|
|
77
78
|
name: 'negativeFeedbackReason',
|
|
78
79
|
value: 'noAccurate',
|
|
@@ -91,12 +92,14 @@ var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasH
|
|
|
91
92
|
onWasHelpfulYesButtonClick(event, analyticsEvent);
|
|
92
93
|
}
|
|
93
94
|
setWasHelpful(true);
|
|
95
|
+
wasHelpfulFormClickedButtonRef.current = event.currentTarget;
|
|
94
96
|
};
|
|
95
97
|
var handleArticleWasHelpfulNoButtonClick = (onWasHelpfulNoButtonClick || onWasHelpfulSubmit) && function (event, analyticsEvent) {
|
|
96
98
|
if (onWasHelpfulNoButtonClick) {
|
|
97
99
|
onWasHelpfulNoButtonClick(event, analyticsEvent);
|
|
98
100
|
}
|
|
99
101
|
setWasHelpful(false);
|
|
102
|
+
wasHelpfulFormClickedButtonRef.current = event.currentTarget;
|
|
100
103
|
};
|
|
101
104
|
var radioGroupReasonOnChange = function radioGroupReasonOnChange(event) {
|
|
102
105
|
setFeedbackReason(event.currentTarget.value);
|
|
@@ -138,7 +141,9 @@ var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasH
|
|
|
138
141
|
}
|
|
139
142
|
};
|
|
140
143
|
var onFeedbackSubmitCancel = function onFeedbackSubmitCancel() {
|
|
144
|
+
var _wasHelpfulFormClicke, _wasHelpfulFormClicke2;
|
|
141
145
|
setWasHelpful(null);
|
|
146
|
+
(_wasHelpfulFormClicke = wasHelpfulFormClickedButtonRef.current) === null || _wasHelpfulFormClicke === void 0 || (_wasHelpfulFormClicke2 = _wasHelpfulFormClicke.focus) === null || _wasHelpfulFormClicke2 === void 0 || _wasHelpfulFormClicke2.call(_wasHelpfulFormClicke);
|
|
142
147
|
};
|
|
143
148
|
var handleTryAgainOnClick = function handleTryAgainOnClick() {
|
|
144
149
|
var feedback = {
|
|
@@ -65,7 +65,7 @@ var HelpArticle = exports.HelpArticle = function HelpArticle(_ref) {
|
|
|
65
65
|
analyticsEvent.payload.attributes = {
|
|
66
66
|
componentName: 'Article',
|
|
67
67
|
packageName: "@atlaskit/help",
|
|
68
|
-
packageVersion: "9.0
|
|
68
|
+
packageVersion: "9.1.0"
|
|
69
69
|
};
|
|
70
70
|
if (onRelatedArticlesShowMoreClick) {
|
|
71
71
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -22,7 +22,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
22
22
|
var analyticsContextData = {
|
|
23
23
|
componentName: 'ArticlesListItem',
|
|
24
24
|
packageName: "@atlaskit/help",
|
|
25
|
-
packageVersion: "9.0
|
|
25
|
+
packageVersion: "9.1.0"
|
|
26
26
|
};
|
|
27
27
|
var WhatsNewArticle = exports.WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
28
28
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -18,7 +18,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
18
18
|
var ANALYTICS_CONTEXT_DATA = {
|
|
19
19
|
componentName: 'ArticlesListItem',
|
|
20
20
|
packageName: "@atlaskit/help",
|
|
21
|
-
packageVersion: "9.0
|
|
21
|
+
packageVersion: "9.1.0"
|
|
22
22
|
};
|
|
23
23
|
var highlightText = function highlightText(text) {
|
|
24
24
|
if (!text) {
|
|
@@ -12,6 +12,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
16
|
var _typography = require("@atlaskit/theme/typography");
|
|
16
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
18
|
var _excluded = ["styles", "children"];
|
|
@@ -58,13 +59,16 @@ var ArticlesListItemLinkIcon = exports.ArticlesListItemLinkIcon = function Artic
|
|
|
58
59
|
var articlesListItemTitleTextStyles = null;
|
|
59
60
|
var ArticlesListItemTitleText = exports.ArticlesListItemTitleText = function ArticlesListItemTitleText(_ref5) {
|
|
60
61
|
var children = _ref5.children;
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
62
63
|
className: (0, _runtime.ax)(["_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81ysy _1reo15vq _18m915vq _syaz1o8f _1e0c1o8l _o5724jg8 _otyrh9hh"]),
|
|
63
64
|
style: {
|
|
64
65
|
"--_ggxzyp": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N800, ")")),
|
|
65
66
|
"--_9taizs": (0, _runtime.ix)("var(--ds-font-heading-xsmall, ".concat(heading.xsmall, ")"))
|
|
66
67
|
}
|
|
67
|
-
},
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
69
|
+
size: "xsmall",
|
|
70
|
+
as: "h3"
|
|
71
|
+
}, children));
|
|
68
72
|
};
|
|
69
73
|
var articlesListItemDescriptionStyles = null;
|
|
70
74
|
var ArticlesListItemDescription = exports.ArticlesListItemDescription = function ArticlesListItemDescription(_ref6) {
|
|
@@ -56,7 +56,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
|
|
|
56
56
|
data: {
|
|
57
57
|
componentName: 'backButton',
|
|
58
58
|
packageName: "@atlaskit/help",
|
|
59
|
-
packageVersion: "9.0
|
|
59
|
+
packageVersion: "9.1.0"
|
|
60
60
|
}
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement(BackButton, props));
|
|
62
62
|
};
|
|
@@ -125,13 +125,13 @@ var HelpContent = exports.HelpContent = function HelpContent(_ref) {
|
|
|
125
125
|
}), /*#__PURE__*/_react.default.createElement(_styled.HomeAi, {
|
|
126
126
|
isOverlayFullyVisible: isOverlayFullyVisible,
|
|
127
127
|
isOverlayVisible: isOverlayVisible
|
|
128
|
-
}, homeContent, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/_react.default.createElement(_WhatsNewButton.default, {
|
|
128
|
+
}, homeContent, /*#__PURE__*/_react.default.createElement(_styled.StyledUl, null, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/_react.default.createElement(_WhatsNewButton.default, {
|
|
129
129
|
productName: productName
|
|
130
130
|
}), homeOptions && homeOptions.map(function (defaultOption) {
|
|
131
131
|
return /*#__PURE__*/_react.default.createElement(_HelpContentButton.default, (0, _extends2.default)({
|
|
132
132
|
key: defaultOption.id
|
|
133
133
|
}, defaultOption));
|
|
134
|
-
}))), /*#__PURE__*/_react.default.createElement(_WhatsNewResults.default, null)), /*#__PURE__*/_react.default.createElement(_NeedMoreHelp.NeedMoreHelp, {
|
|
134
|
+
})))), /*#__PURE__*/_react.default.createElement(_WhatsNewResults.default, null)), /*#__PURE__*/_react.default.createElement(_NeedMoreHelp.NeedMoreHelp, {
|
|
135
135
|
label: formatMessage(_messages.messages.help_need_more_help_label),
|
|
136
136
|
onNeedMoreHelpClick: handleNeedMoreHelpClick
|
|
137
137
|
}), footer && /*#__PURE__*/_react.default.createElement(_styled.HelpFooter, {
|
|
@@ -146,13 +146,13 @@ var HelpContent = exports.HelpContent = function HelpContent(_ref) {
|
|
|
146
146
|
}, /*#__PURE__*/_react.default.createElement(_styled.HelpBodyContainer, null, /*#__PURE__*/_react.default.createElement(_styled.HelpBody, null, /*#__PURE__*/_react.default.createElement(_SearchResults.default, null), /*#__PURE__*/_react.default.createElement(_Article.default, null), /*#__PURE__*/_react.default.createElement(_styled.Home, {
|
|
147
147
|
isOverlayFullyVisible: isOverlayFullyVisible,
|
|
148
148
|
isOverlayVisible: isOverlayVisible
|
|
149
|
-
}, homeContent, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/_react.default.createElement(_WhatsNewButton.default, {
|
|
149
|
+
}, homeContent, /*#__PURE__*/_react.default.createElement(_styled.StyledUl, null, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/_react.default.createElement(_WhatsNewButton.default, {
|
|
150
150
|
productName: productName
|
|
151
151
|
}), homeOptions && homeOptions.map(function (defaultOption) {
|
|
152
152
|
return /*#__PURE__*/_react.default.createElement(_HelpContentButton.default, (0, _extends2.default)({
|
|
153
153
|
key: defaultOption.id
|
|
154
154
|
}, defaultOption));
|
|
155
|
-
}))), /*#__PURE__*/_react.default.createElement(_WhatsNewResults.default, null)));
|
|
155
|
+
})))), /*#__PURE__*/_react.default.createElement(_WhatsNewResults.default, null)));
|
|
156
156
|
return isAiEnabled ? HelpLayoutWithAi : HelpLayoutWithoutAi;
|
|
157
157
|
};
|
|
158
158
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(HelpContent);
|
|
@@ -17,7 +17,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
17
17
|
var analitycsContextData = {
|
|
18
18
|
componentName: 'HelpContentButton',
|
|
19
19
|
packageName: "@atlaskit/help",
|
|
20
|
-
packageVersion: "9.0
|
|
20
|
+
packageVersion: "9.1.0"
|
|
21
21
|
};
|
|
22
22
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
23
23
|
var _ref$id = _ref.id,
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
._11c8376l{font:var(--ds-font-body,inherit)}
|
|
2
|
+
._19itglyw{border:none}
|
|
2
3
|
._2rko1l7b{border-radius:3px}
|
|
3
4
|
._2rko1y44{border-radius:4px}
|
|
5
|
+
._18u0idpf{margin-left:0}
|
|
4
6
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
5
7
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
8
|
+
._19pkidpf{margin-top:0}
|
|
6
9
|
._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
|
|
7
10
|
._1bsbb8xr{width:var(--_2br7en)}
|
|
8
11
|
._1bsbgktf{width:20px}
|
|
9
12
|
._1bsbwgn3{width:calc(100% - 20px)}
|
|
10
13
|
._1e0c1o8l{display:inline-block}
|
|
11
14
|
._1e0c1ule{display:block}
|
|
15
|
+
._1e0c5mfb{display:table}
|
|
12
16
|
._1eab1ooe span{transform:translate(-50%,-50%)}
|
|
13
17
|
._1t181ssb span{top:50%}
|
|
14
18
|
._1t981ssb span{left:50%}
|
|
19
|
+
._2hwxidpf{margin-right:0}
|
|
15
20
|
._4t3igktf{height:20px}
|
|
16
21
|
._80omtlke{cursor:pointer}
|
|
22
|
+
._bfhk1j28{background-color:transparent}
|
|
17
23
|
._ca0qidpf{padding-top:0}
|
|
18
24
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
19
25
|
._kqswh2mm{position:relative}
|
|
20
26
|
._n3tdidpf{padding-bottom:0}
|
|
21
27
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
28
|
+
._otyridpf{margin-bottom:0}
|
|
22
29
|
._s7n4nkob{vertical-align:middle}
|
|
23
30
|
._syaz1a5u{color:var(--_1oh641w)}
|
|
24
31
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
25
32
|
._vchhusvi{box-sizing:border-box}
|
|
26
33
|
._vr2wstnw span{position:absolute}
|
|
27
34
|
._7ehiu5t6:focus{box-shadow:var(--_ow3z6t)}
|
|
28
|
-
._irr32tgk:hover{background-color:var(--_1y60f1n)}
|
|
35
|
+
._irr32tgk:hover{background-color:var(--_1y60f1n)}
|
|
36
|
+
._13roglyw:active, ._1bg4glyw:focus, ._1qb1glyw:hover, ._1dnaglyw:visited{outline-offset:none}
|
|
29
37
|
._1di618xb:active{background-color:var(--_18th9fi)}
|
|
30
38
|
._1iohnqa1:active, ._5goinqa1:focus, ._jf4cnqa1:hover, ._1726nqa1:visited{text-decoration-style:solid}
|
|
31
39
|
._1nrm1r31:active, ._1a3b1r31:focus, ._9oik1r31:hover, ._1ydc1r31:visited{text-decoration-color:currentColor}
|
|
@@ -10,6 +10,8 @@ require("./styled.compiled.css");
|
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
+
var wrappedSpanStyles = null;
|
|
14
|
+
var parentListItemHelpContentButtonContainerStyles = null;
|
|
13
15
|
var helpContentButtonContainerStyles = null;
|
|
14
16
|
var HelpContentButtonContainer = exports.HelpContentButtonContainer = function HelpContentButtonContainer(_ref) {
|
|
15
17
|
var onClick = _ref.onClick,
|
|
@@ -19,14 +21,36 @@ var HelpContentButtonContainer = exports.HelpContentButtonContainer = function H
|
|
|
19
21
|
tabIndex = _ref.tabIndex,
|
|
20
22
|
target = _ref.target,
|
|
21
23
|
children = _ref.children;
|
|
22
|
-
|
|
24
|
+
if (href) {
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
26
|
+
className: (0, _runtime.ax)(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf"])
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
28
|
+
onClick: onClick,
|
|
29
|
+
onKeyDown: onKeyDown,
|
|
30
|
+
href: href,
|
|
31
|
+
id: id,
|
|
32
|
+
tabIndex: tabIndex,
|
|
33
|
+
target: target,
|
|
34
|
+
className: (0, _runtime.ax)(["_2rko1l7b _19itglyw _bfhk1j28 _11c8376l _1e0c1ule _80omtlke _1bsbb8xr _syaz1a5u _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _7ehiu5t6 _1nrm1r31 _1a3b1r31 _9oik1r31 _1ydc1r31 _c2waglyw _4fprglyw _1bnxglyw _1x28glyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1726nqa1 _1q5t1r31 _nt751r31 _1dit1r31 _9nxe1r31 _1ohyglyw _49pcglyw _ksodglyw _tpgfglyw _1r9x1o36 _1hvw1o36 _4hz81o36 _12gr1o36 _13roglyw _1bg4glyw _1qb1glyw _1dnaglyw _9h8h1a5u _f8pj1a5u _30l31a5u _10531a5u _irr32tgk _1di618xb"]),
|
|
35
|
+
style: {
|
|
36
|
+
"--_2br7en": (0, _runtime.ix)("calc(100% - ".concat("var(--ds-space-200, 16px)", ")")),
|
|
37
|
+
"--_1oh641w": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N600, ")")),
|
|
38
|
+
"--_ow3z6t": (0, _runtime.ix)("".concat("var(--ds-border-focused, ".concat(_colors.B100, ")"), " 0 0 0 2px inset")),
|
|
39
|
+
"--_1y60f1n": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")")),
|
|
40
|
+
"--_18th9fi": (0, _runtime.ix)("var(--ds-background-neutral-subtle-pressed, ".concat(_colors.B50, ")"))
|
|
41
|
+
}
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
43
|
+
className: (0, _runtime.ax)(["_1e0c5mfb"])
|
|
44
|
+
}, children)));
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
47
|
+
className: (0, _runtime.ax)(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf"])
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
23
49
|
onClick: onClick,
|
|
24
50
|
onKeyDown: onKeyDown,
|
|
25
|
-
href: href,
|
|
26
51
|
id: id,
|
|
27
52
|
tabIndex: tabIndex,
|
|
28
|
-
|
|
29
|
-
className: (0, _runtime.ax)(["_2rko1l7b _1e0c1ule _80omtlke _1bsbb8xr _syaz1a5u _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _7ehiu5t6 _1nrm1r31 _1a3b1r31 _9oik1r31 _1ydc1r31 _c2waglyw _4fprglyw _1bnxglyw _1x28glyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1726nqa1 _1q5t1r31 _nt751r31 _1dit1r31 _9nxe1r31 _1ohyglyw _49pcglyw _ksodglyw _tpgfglyw _1r9x1o36 _1hvw1o36 _4hz81o36 _12gr1o36 _13roglyw _1bg4glyw _1qb1glyw _1dnaglyw _9h8h1a5u _f8pj1a5u _30l31a5u _10531a5u _irr32tgk _1di618xb"]),
|
|
53
|
+
className: (0, _runtime.ax)(["_2rko1l7b _19itglyw _bfhk1j28 _11c8376l _1e0c1ule _80omtlke _1bsbb8xr _syaz1a5u _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _7ehiu5t6 _1nrm1r31 _1a3b1r31 _9oik1r31 _1ydc1r31 _c2waglyw _4fprglyw _1bnxglyw _1x28glyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1726nqa1 _1q5t1r31 _nt751r31 _1dit1r31 _9nxe1r31 _1ohyglyw _49pcglyw _ksodglyw _tpgfglyw _1r9x1o36 _1hvw1o36 _4hz81o36 _12gr1o36 _13roglyw _1bg4glyw _1qb1glyw _1dnaglyw _9h8h1a5u _f8pj1a5u _30l31a5u _10531a5u _irr32tgk _1di618xb"]),
|
|
30
54
|
style: {
|
|
31
55
|
"--_2br7en": (0, _runtime.ix)("calc(100% - ".concat("var(--ds-space-200, 16px)", ")")),
|
|
32
56
|
"--_1oh641w": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N600, ")")),
|
|
@@ -34,7 +58,9 @@ var HelpContentButtonContainer = exports.HelpContentButtonContainer = function H
|
|
|
34
58
|
"--_1y60f1n": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")")),
|
|
35
59
|
"--_18th9fi": (0, _runtime.ix)("var(--ds-background-neutral-subtle-pressed, ".concat(_colors.B50, ")"))
|
|
36
60
|
}
|
|
37
|
-
},
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
62
|
+
className: (0, _runtime.ax)(["_1e0c5mfb"])
|
|
63
|
+
}, children)));
|
|
38
64
|
};
|
|
39
65
|
var helpContentButtonIconStyles = null;
|
|
40
66
|
var HelpContentButtonIcon = exports.HelpContentButtonIcon = function HelpContentButtonIcon(_ref2) {
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
29
29
|
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 && {}.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; }
|
|
30
30
|
/** @jsxFrag */
|
|
31
31
|
var packageName = "@atlaskit/help";
|
|
32
|
-
var packageVersion = "9.0
|
|
32
|
+
var packageVersion = "9.1.0";
|
|
33
33
|
var buttonStyles = null;
|
|
34
34
|
var RelatedArticles = exports.RelatedArticles = function RelatedArticles(_ref) {
|
|
35
35
|
var _ref$style = _ref.style,
|
|
@@ -29,7 +29,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
29
29
|
var ANALYTICS_CONTEXT_DATA = {
|
|
30
30
|
componentName: 'searchInput',
|
|
31
31
|
packageName: "@atlaskit/help",
|
|
32
|
-
packageVersion: "9.0
|
|
32
|
+
packageVersion: "9.1.0"
|
|
33
33
|
};
|
|
34
34
|
var buttonStyles = null;
|
|
35
35
|
var SearchInput = exports.SearchInput = function SearchInput(_ref) {
|
|
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
21
21
|
var ANALYTICS_CONTEXT_DATA = {
|
|
22
22
|
componentName: 'WhatsNewButton',
|
|
23
23
|
packageName: "@atlaskit/help",
|
|
24
|
-
packageVersion: "9.0
|
|
24
|
+
packageVersion: "9.1.0"
|
|
25
25
|
};
|
|
26
26
|
var WhatsNewButton = exports.WhatsNewButton = function WhatsNewButton(_ref) {
|
|
27
27
|
var productName = _ref.productName,
|
package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js
CHANGED
|
@@ -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: "9.0
|
|
18
|
+
packageVersion: "9.1.0"
|
|
19
19
|
};
|
|
20
20
|
var WhatsNewResultListItem = exports.WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
21
21
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
._qtt8glyw{list-style:none}
|
|
2
3
|
._v5641tic{transition:var(--_m9bkgq)}
|
|
3
4
|
._x3do3yx5{border-top:var(--_1it2dty)}._16jlkb7n{flex-grow:1}
|
|
4
5
|
._18m91wug{overflow-y:auto}
|
|
6
|
+
._18u0idpf{margin-left:0}
|
|
5
7
|
._19bvidpf{padding-left:0}
|
|
6
8
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
9
|
+
._19pkidpf{margin-top:0}
|
|
7
10
|
._19pkou31{margin-top:var(--ds-space-200,14px)}
|
|
8
11
|
._1bah1yb4{justify-content:space-between}
|
|
9
12
|
._1bsb1osq{width:100%}
|
|
@@ -17,19 +20,23 @@
|
|
|
17
20
|
._1reo1wug{overflow-x:auto}
|
|
18
21
|
._1tkeidpf{min-height:0}
|
|
19
22
|
._1wpz1wug{align-self:auto}
|
|
23
|
+
._2hwxidpf{margin-right:0}
|
|
20
24
|
._2lx21bp4{flex-direction:column}
|
|
21
25
|
._4cvr1y6m{align-items:flex-start}
|
|
22
26
|
._4t3i1osq{height:100%}
|
|
23
27
|
._4t3ixy5q{height:var(--ds-space-400,2pc)}
|
|
24
28
|
._ae4v1fhb{align-content:stretch}
|
|
25
29
|
._bfhk1v7z{background-color:var(--_1xglsrh)}
|
|
30
|
+
._ca0qidpf{padding-top:0}
|
|
26
31
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
27
32
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
28
33
|
._i0dl1wug{flex-basis:auto}
|
|
29
34
|
._kqswh2mm{position:relative}
|
|
30
35
|
._kqswstnw{position:absolute}
|
|
36
|
+
._n3tdidpf{padding-bottom:0}
|
|
31
37
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
32
38
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
39
|
+
._otyridpf{margin-bottom:0}
|
|
33
40
|
._tzy4idpf{opacity:0}
|
|
34
41
|
._u5f3idpf{padding-right:0}
|
|
35
42
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.HomeAi = exports.Home = exports.HelpFooter = exports.HelpBodyContainer = exports.HelpBodyAi = exports.HelpBody = exports.BackButtonContainer = exports.BACK_BUTTON_CONTAINER_TRANSITION_DURATION_MS = void 0;
|
|
8
|
+
exports.StyledUl = exports.HomeAi = exports.Home = exports.HelpFooter = exports.HelpBodyContainer = exports.HelpBodyAi = exports.HelpBody = exports.BackButtonContainer = exports.BACK_BUTTON_CONTAINER_TRANSITION_DURATION_MS = void 0;
|
|
9
9
|
require("./styled.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -47,7 +47,7 @@ var Home = exports.Home = function Home(_ref4) {
|
|
|
47
47
|
display: isOverlayFullyVisible ? 'none' : 'block',
|
|
48
48
|
overflow: isOverlayVisible ? 'hidden' : 'auto'
|
|
49
49
|
},
|
|
50
|
-
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _1e0c1ule _4t3i1osq _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _vchhusvi"])
|
|
50
|
+
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _1e0c1ule _4t3i1osq _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _vchhusvi _19pkidpf"])
|
|
51
51
|
}, children);
|
|
52
52
|
};
|
|
53
53
|
var homeAiStyles = null;
|
|
@@ -60,7 +60,7 @@ var HomeAi = exports.HomeAi = function HomeAi(_ref5) {
|
|
|
60
60
|
display: isOverlayFullyVisible ? 'none' : 'block',
|
|
61
61
|
overflow: isOverlayVisible ? 'hidden' : 'auto'
|
|
62
62
|
},
|
|
63
|
-
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _1e0c1ule _19bvpxbi _u5f3pxbi _n3tdpxbi _vchhusvi"])
|
|
63
|
+
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _1e0c1ule _19bvpxbi _u5f3pxbi _n3tdpxbi _vchhusvi _19pkidpf"])
|
|
64
64
|
}, children);
|
|
65
65
|
};
|
|
66
66
|
var helpFooterStyles = null;
|
|
@@ -96,4 +96,11 @@ var BackButtonContainer = exports.BackButtonContainer = function BackButtonConta
|
|
|
96
96
|
"--_m9bkgq": (0, _runtime.ix)("left ".concat(BACK_BUTTON_CONTAINER_TRANSITION_DURATION_MS, "ms, opacity ").concat(BACK_BUTTON_CONTAINER_TRANSITION_DURATION_MS, "ms"))
|
|
97
97
|
})
|
|
98
98
|
}, children);
|
|
99
|
+
};
|
|
100
|
+
var ulStyles = null;
|
|
101
|
+
var StyledUl = exports.StyledUl = function StyledUl(_ref8) {
|
|
102
|
+
var children = _ref8.children;
|
|
103
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
104
|
+
className: (0, _runtime.ax)(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf"])
|
|
105
|
+
}, children);
|
|
99
106
|
};
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -10,7 +10,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer, LoadingErrorHeading }
|
|
|
10
10
|
const ANALYTICS_CONTEXT_DATA = {
|
|
11
11
|
componentName: 'ArticleLoadingFail',
|
|
12
12
|
packageName: "@atlaskit/help",
|
|
13
|
-
packageVersion: "9.0
|
|
13
|
+
packageVersion: "9.1.0"
|
|
14
14
|
};
|
|
15
15
|
export const ArticleLoadingFail = ({
|
|
16
16
|
onTryAgainButtonClick,
|
|
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
|
|
|
6
6
|
const ANALYTICS_CONTEXT_DATA = {
|
|
7
7
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
8
8
|
packageName: "@atlaskit/help",
|
|
9
|
-
packageVersion: "9.0
|
|
9
|
+
packageVersion: "9.1.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: "9.0
|
|
9
|
+
packageVersion: "9.1.0"
|
|
10
10
|
};
|
|
11
11
|
export const ArticleWasHelpfulYesButton = ({
|
|
12
12
|
isSelected = false,
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/** @jsxFrag */
|
|
6
6
|
|
|
7
|
-
import React, { useState } from 'react';
|
|
7
|
+
import React, { useRef, useState } from 'react';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
9
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
10
10
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -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: "9.0
|
|
28
|
+
packageVersion: "9.1.0"
|
|
29
29
|
};
|
|
30
30
|
const buttonStyles = null;
|
|
31
31
|
export const ArticleWasHelpfulForm = ({
|
|
@@ -46,6 +46,7 @@ export const ArticleWasHelpfulForm = ({
|
|
|
46
46
|
const {
|
|
47
47
|
createAnalyticsEvent
|
|
48
48
|
} = useAnalyticsEvents();
|
|
49
|
+
const wasHelpfulFormClickedButtonRef = useRef(null);
|
|
49
50
|
const negativeFeedbackReason = [{
|
|
50
51
|
name: 'negativeFeedbackReason',
|
|
51
52
|
value: 'noAccurate',
|
|
@@ -64,12 +65,14 @@ export const ArticleWasHelpfulForm = ({
|
|
|
64
65
|
onWasHelpfulYesButtonClick(event, analyticsEvent);
|
|
65
66
|
}
|
|
66
67
|
setWasHelpful(true);
|
|
68
|
+
wasHelpfulFormClickedButtonRef.current = event.currentTarget;
|
|
67
69
|
});
|
|
68
70
|
const handleArticleWasHelpfulNoButtonClick = (onWasHelpfulNoButtonClick || onWasHelpfulSubmit) && ((event, analyticsEvent) => {
|
|
69
71
|
if (onWasHelpfulNoButtonClick) {
|
|
70
72
|
onWasHelpfulNoButtonClick(event, analyticsEvent);
|
|
71
73
|
}
|
|
72
74
|
setWasHelpful(false);
|
|
75
|
+
wasHelpfulFormClickedButtonRef.current = event.currentTarget;
|
|
73
76
|
});
|
|
74
77
|
const radioGroupReasonOnChange = event => {
|
|
75
78
|
setFeedbackReason(event.currentTarget.value);
|
|
@@ -111,7 +114,9 @@ export const ArticleWasHelpfulForm = ({
|
|
|
111
114
|
}
|
|
112
115
|
};
|
|
113
116
|
const onFeedbackSubmitCancel = () => {
|
|
117
|
+
var _wasHelpfulFormClicke, _wasHelpfulFormClicke2;
|
|
114
118
|
setWasHelpful(null);
|
|
119
|
+
(_wasHelpfulFormClicke = wasHelpfulFormClickedButtonRef.current) === null || _wasHelpfulFormClicke === void 0 ? void 0 : (_wasHelpfulFormClicke2 = _wasHelpfulFormClicke.focus) === null || _wasHelpfulFormClicke2 === void 0 ? void 0 : _wasHelpfulFormClicke2.call(_wasHelpfulFormClicke);
|
|
115
120
|
};
|
|
116
121
|
const handleTryAgainOnClick = () => {
|
|
117
122
|
const feedback = {
|
|
@@ -60,7 +60,7 @@ export const HelpArticle = ({
|
|
|
60
60
|
analyticsEvent.payload.attributes = {
|
|
61
61
|
componentName: 'Article',
|
|
62
62
|
packageName: "@atlaskit/help",
|
|
63
|
-
packageVersion: "9.0
|
|
63
|
+
packageVersion: "9.1.0"
|
|
64
64
|
};
|
|
65
65
|
if (onRelatedArticlesShowMoreClick) {
|
|
66
66
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
|
|
|
13
13
|
const analyticsContextData = {
|
|
14
14
|
componentName: 'ArticlesListItem',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "9.0
|
|
16
|
+
packageVersion: "9.1.0"
|
|
17
17
|
};
|
|
18
18
|
export const WhatsNewArticle = ({
|
|
19
19
|
intl: {
|
|
@@ -8,7 +8,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
|
|
|
8
8
|
const ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "9.0
|
|
11
|
+
packageVersion: "9.1.0"
|
|
12
12
|
};
|
|
13
13
|
const highlightText = text => {
|
|
14
14
|
if (!text) {
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./styled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import Heading from '@atlaskit/heading';
|
|
6
7
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
7
8
|
import { B100, B50, N200, N30, N400, N400A, N800, Y100 } from '@atlaskit/theme/colors';
|
|
8
9
|
const {
|
|
@@ -40,9 +41,12 @@ export const ArticlesListItemLinkIcon = ({
|
|
|
40
41
|
const articlesListItemTitleTextStyles = null;
|
|
41
42
|
export const ArticlesListItemTitleText = ({
|
|
42
43
|
children
|
|
43
|
-
}) => /*#__PURE__*/React.createElement("
|
|
44
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
44
45
|
className: ax(["_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c8140y _1reo15vq _18m915vq _syaz1fxt _1e0c1o8l _o5724jg8 _otyrh9hh"])
|
|
45
|
-
},
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
47
|
+
size: "xsmall",
|
|
48
|
+
as: "h3"
|
|
49
|
+
}, children));
|
|
46
50
|
const articlesListItemDescriptionStyles = null;
|
|
47
51
|
export const ArticlesListItemDescription = ({
|
|
48
52
|
children
|
|
@@ -16,7 +16,7 @@ import WhatsNewResults from './WhatsNew/WhatsNewResults';
|
|
|
16
16
|
import HelpContentButton from './HelpContentButton';
|
|
17
17
|
import BackButton from './BackButton';
|
|
18
18
|
import { NeedMoreHelp } from './NeedMoreHelp';
|
|
19
|
-
import { HelpBodyContainer, HelpBody, Home, HomeAi, HelpBodyAi } from './styled';
|
|
19
|
+
import { HelpBodyContainer, HelpBody, Home, HomeAi, HelpBodyAi, StyledUl } from './styled';
|
|
20
20
|
import { HelpFooter } from './styled';
|
|
21
21
|
import { Tabs } from './Tabs';
|
|
22
22
|
import AiChatIcon from '@atlaskit/icon/core/ai-chat';
|
|
@@ -118,13 +118,13 @@ export const HelpContent = ({
|
|
|
118
118
|
}), /*#__PURE__*/React.createElement(HomeAi, {
|
|
119
119
|
isOverlayFullyVisible: isOverlayFullyVisible,
|
|
120
120
|
isOverlayVisible: isOverlayVisible
|
|
121
|
-
}, homeContent, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/React.createElement(WhatsNewButton, {
|
|
121
|
+
}, homeContent, /*#__PURE__*/React.createElement(StyledUl, null, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/React.createElement(WhatsNewButton, {
|
|
122
122
|
productName: productName
|
|
123
123
|
}), homeOptions && homeOptions.map(defaultOption => {
|
|
124
124
|
return /*#__PURE__*/React.createElement(HelpContentButton, _extends({
|
|
125
125
|
key: defaultOption.id
|
|
126
126
|
}, defaultOption));
|
|
127
|
-
}))), /*#__PURE__*/React.createElement(WhatsNewResults, null)), /*#__PURE__*/React.createElement(NeedMoreHelp, {
|
|
127
|
+
})))), /*#__PURE__*/React.createElement(WhatsNewResults, null)), /*#__PURE__*/React.createElement(NeedMoreHelp, {
|
|
128
128
|
label: formatMessage(messages.help_need_more_help_label),
|
|
129
129
|
onNeedMoreHelpClick: handleNeedMoreHelpClick
|
|
130
130
|
}), footer && /*#__PURE__*/React.createElement(HelpFooter, {
|
|
@@ -139,13 +139,13 @@ export const HelpContent = ({
|
|
|
139
139
|
}, /*#__PURE__*/React.createElement(HelpBodyContainer, null, /*#__PURE__*/React.createElement(HelpBody, null, /*#__PURE__*/React.createElement(SearchResults, null), /*#__PURE__*/React.createElement(ArticleComponent, null), /*#__PURE__*/React.createElement(Home, {
|
|
140
140
|
isOverlayFullyVisible: isOverlayFullyVisible,
|
|
141
141
|
isOverlayVisible: isOverlayVisible
|
|
142
|
-
}, homeContent, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/React.createElement(WhatsNewButton, {
|
|
142
|
+
}, homeContent, /*#__PURE__*/React.createElement(StyledUl, null, onSearchWhatsNewArticles && onGetWhatsNewArticle && /*#__PURE__*/React.createElement(WhatsNewButton, {
|
|
143
143
|
productName: productName
|
|
144
144
|
}), homeOptions && homeOptions.map(defaultOption => {
|
|
145
145
|
return /*#__PURE__*/React.createElement(HelpContentButton, _extends({
|
|
146
146
|
key: defaultOption.id
|
|
147
147
|
}, defaultOption));
|
|
148
|
-
}))), /*#__PURE__*/React.createElement(WhatsNewResults, null)));
|
|
148
|
+
})))), /*#__PURE__*/React.createElement(WhatsNewResults, null)));
|
|
149
149
|
return isAiEnabled ? HelpLayoutWithAi : HelpLayoutWithoutAi;
|
|
150
150
|
};
|
|
151
151
|
export default injectIntl(HelpContent);
|