@atlaskit/help 9.2.0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/afm-cc/tsconfig.json +2 -1
- package/afm-jira/tsconfig.json +3 -2
- package/afm-products/tsconfig.json +2 -1
- 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 +4 -2
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/cjs/components/Article/index.compiled.css +4 -1
- package/dist/cjs/components/Article/index.js +7 -2
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +9 -3
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -0
- package/dist/cjs/components/BackButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/RelatedArticles/index.js +1 -1
- package/dist/cjs/components/Search/SearchInput/index.js +4 -2
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- 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 +4 -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/Article/index.compiled.css +4 -1
- package/dist/es2019/components/Article/index.js +7 -2
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +9 -3
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +1 -0
- package/dist/es2019/components/BackButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/RelatedArticles/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/index.js +4 -2
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- 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 +4 -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/Article/index.compiled.css +4 -1
- package/dist/esm/components/Article/index.js +7 -2
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +9 -3
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +1 -0
- package/dist/esm/components/BackButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/RelatedArticles/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/index.js +4 -2
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
6
|
-
"outDir": "../../../../../tsDist/@atlaskit__help/app",
|
|
6
|
+
"outDir": "../../../../../jira/tsDist/@atlaskit__help/app",
|
|
7
7
|
"rootDir": "../",
|
|
8
|
-
"composite": true
|
|
8
|
+
"composite": true,
|
|
9
|
+
"noCheck": true
|
|
9
10
|
},
|
|
10
11
|
"include": [
|
|
11
12
|
"../src/**/*.ts",
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -13,5 +13,5 @@ var createAndFire = exports.createAndFire = x.createAndFireEvent('atlaskit');
|
|
|
13
13
|
var defaultAnalyticsAttributes = exports.defaultAnalyticsAttributes = {
|
|
14
14
|
componentName: 'help',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "9.2.0"
|
|
17
17
|
};
|
|
@@ -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: "
|
|
20
|
+
packageVersion: "9.2.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: "
|
|
16
|
+
packageVersion: "9.2.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: "
|
|
16
|
+
packageVersion: "9.2.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: "
|
|
38
|
+
packageVersion: "9.2.0"
|
|
39
39
|
};
|
|
40
40
|
var buttonStyles = null;
|
|
41
41
|
var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
@@ -243,7 +243,9 @@ var ArticleWasHelpfulForm = exports.ArticleWasHelpfulForm = function ArticleWasH
|
|
|
243
243
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
244
244
|
verticalAlign: 'middle'
|
|
245
245
|
},
|
|
246
|
-
role: "img"
|
|
246
|
+
role: "img"
|
|
247
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
248
|
+
,
|
|
247
249
|
"aria-label": "Success"
|
|
248
250
|
}, /*#__PURE__*/_react.default.createElement(_statusSuccessCheckCircle.default, {
|
|
249
251
|
spacing: "spacious",
|
|
@@ -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: "
|
|
67
|
+
packageVersion: "9.2.0"
|
|
68
68
|
};
|
|
69
69
|
if (onRelatedArticlesShowMoreClick) {
|
|
70
70
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
21
21
|
var analyticsContextData = {
|
|
22
22
|
componentName: 'ArticlesListItem',
|
|
23
23
|
packageName: "@atlaskit/help",
|
|
24
|
-
packageVersion: "
|
|
24
|
+
packageVersion: "9.2.0"
|
|
25
25
|
};
|
|
26
26
|
var WhatsNewArticle = exports.WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
27
27
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -17,4 +17,7 @@
|
|
|
17
17
|
._kqswstnw{position:absolute}
|
|
18
18
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
19
19
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
20
|
-
._vchhusvi{box-sizing:border-box}
|
|
20
|
+
._vchhusvi{box-sizing:border-box}
|
|
21
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
22
|
+
._49pcglyw:focus{outline-style:none}
|
|
23
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
@@ -72,12 +72,15 @@ var Article = exports.Article = function Article(_ref) {
|
|
|
72
72
|
}, [history]);
|
|
73
73
|
var onArticleEntered = function onArticleEntered() {
|
|
74
74
|
onArticleEnteredTimeout.current = window.setTimeout(function () {
|
|
75
|
+
var _articleContainerRef$;
|
|
75
76
|
// if skipArticleSlideInAnimation is true, set to false after the
|
|
76
77
|
// first slide-in animation
|
|
77
78
|
// NOTE: skipArticleSlideInAnimation could be true only after the mounting
|
|
78
79
|
if (skipArticleSlideInAnimation) {
|
|
79
80
|
setSkipArticleSlideInAnimation(false);
|
|
80
81
|
}
|
|
82
|
+
// Move focus to the article container for accessibility
|
|
83
|
+
(_articleContainerRef$ = articleContainerRef.current) === null || _articleContainerRef$ === void 0 || _articleContainerRef$.focus();
|
|
81
84
|
}, _constants.SLIDEIN_OVERLAY_TRANSITION_DURATION_MS);
|
|
82
85
|
};
|
|
83
86
|
var onArticleExit = function onArticleExit() {
|
|
@@ -127,8 +130,9 @@ var Article = exports.Article = function Article(_ref) {
|
|
|
127
130
|
}, function (state) {
|
|
128
131
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
129
132
|
ref: articleContainerRef,
|
|
133
|
+
tabIndex: -1,
|
|
130
134
|
style: _objectSpread(_objectSpread({}, transitionStyles[state]), enableTransition[!skipArticleSlideInAnimation ? 'enabled' : 'disabled']),
|
|
131
|
-
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _19bv1ejb _u5f31ejb _n3tdpxbi _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v"])
|
|
135
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _19bv1ejb _u5f31ejb _n3tdpxbi _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v _nt751r31 _49pcglyw _1hvw1o36"])
|
|
132
136
|
}, /*#__PURE__*/_react.default.createElement(_ArticleContent.default, {
|
|
133
137
|
currentArticle: currentArticle,
|
|
134
138
|
onHelpArticleLoadingFailTryAgainButtonClick: reloadHelpArticle && handleOnHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -145,8 +149,9 @@ var Article = exports.Article = function Article(_ref) {
|
|
|
145
149
|
}, function (state) {
|
|
146
150
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
147
151
|
ref: articleContainerRef,
|
|
152
|
+
tabIndex: -1,
|
|
148
153
|
style: _objectSpread(_objectSpread({}, transitionStyles[state]), enableTransition[!skipArticleSlideInAnimation ? 'enabled' : 'disabled']),
|
|
149
|
-
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v"])
|
|
154
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v _nt751r31 _49pcglyw _1hvw1o36"])
|
|
150
155
|
}, /*#__PURE__*/_react.default.createElement(_ArticleContent.default, {
|
|
151
156
|
currentArticle: currentArticle,
|
|
152
157
|
onHelpArticleLoadingFailTryAgainButtonClick: reloadHelpArticle && handleOnHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -17,7 +17,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
17
17
|
var ANALYTICS_CONTEXT_DATA = {
|
|
18
18
|
componentName: 'ArticlesListItem',
|
|
19
19
|
packageName: "@atlaskit/help",
|
|
20
|
-
packageVersion: "
|
|
20
|
+
packageVersion: "9.2.0"
|
|
21
21
|
};
|
|
22
22
|
var highlightText = function highlightText(text) {
|
|
23
23
|
if (!text) {
|
|
@@ -71,12 +71,18 @@ var ArticlesListItem = exports.ArticlesListItem = function ArticlesListItem(_ref
|
|
|
71
71
|
role: "button",
|
|
72
72
|
href: href,
|
|
73
73
|
onClick: handleOnClick
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemContainer, null, /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemTitleSection, null, /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemTitleText, null, title), isLastPublishedVisible &&
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemContainer, null, /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemTitleSection, null, /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemTitleText, null, title), isLastPublishedVisible &&
|
|
75
|
+
/*#__PURE__*/
|
|
76
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
77
|
+
_react.default.createElement(_styled.ArticlesListItemLastModified, null, "Last modified: ", lastPublished)), href && /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemLinkIcon, null, /*#__PURE__*/_react.default.createElement(_linkExternalShortcut.default, {
|
|
75
78
|
LEGACY_size: "small",
|
|
76
79
|
label: "Opens in a new window",
|
|
77
80
|
color: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
|
|
78
81
|
LEGACY_secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
|
|
79
|
-
}))), /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemTrustFactor, null, isNumViewsVisible &&
|
|
82
|
+
}))), /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemTrustFactor, null, isNumViewsVisible &&
|
|
83
|
+
/*#__PURE__*/
|
|
84
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
85
|
+
_react.default.createElement(_styled.ArticlesListItemViewCount, null, trustFactors.numViews, " views"), isHelpfulCountVisible && /*#__PURE__*/_react.default.createElement(_styled.ArticlesListItemHelpfulCount, null, /*#__PURE__*/_react.default.createElement(_thumbsUpLike.default, {
|
|
80
86
|
LEGACY_margin: "0 -0.25px 0 0",
|
|
81
87
|
color: "currentColor",
|
|
82
88
|
label: "Like",
|
|
@@ -53,6 +53,7 @@ var articlesListItemLinkIconStyles = null;
|
|
|
53
53
|
var ArticlesListItemLinkIcon = exports.ArticlesListItemLinkIcon = function ArticlesListItemLinkIcon(_ref4) {
|
|
54
54
|
var children = _ref4.children;
|
|
55
55
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
56
|
+
"aria-label": "Opens in a new window",
|
|
56
57
|
className: (0, _runtime.ax)(["_1wpz1wug _bozg1b66 _s7n4nkob"])
|
|
57
58
|
}, children);
|
|
58
59
|
};
|
|
@@ -56,7 +56,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
|
|
|
56
56
|
data: {
|
|
57
57
|
componentName: 'backButton',
|
|
58
58
|
packageName: "@atlaskit/help",
|
|
59
|
-
packageVersion: "
|
|
59
|
+
packageVersion: "9.2.0"
|
|
60
60
|
}
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement(BackButton, props));
|
|
62
62
|
};
|
|
@@ -16,7 +16,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
16
|
var analitycsContextData = {
|
|
17
17
|
componentName: 'HelpContentButton',
|
|
18
18
|
packageName: "@atlaskit/help",
|
|
19
|
-
packageVersion: "
|
|
19
|
+
packageVersion: "9.2.0"
|
|
20
20
|
};
|
|
21
21
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
22
22
|
var _ref$id = _ref.id,
|
|
@@ -28,7 +28,7 @@ var _previous = require("../../util/hooks/previous");
|
|
|
28
28
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
29
29
|
/** @jsxFrag */
|
|
30
30
|
var packageName = "@atlaskit/help";
|
|
31
|
-
var packageVersion = "
|
|
31
|
+
var packageVersion = "9.2.0";
|
|
32
32
|
var buttonStyles = null;
|
|
33
33
|
var RelatedArticles = exports.RelatedArticles = function RelatedArticles(_ref) {
|
|
34
34
|
var _ref$style = _ref.style,
|
|
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
27
27
|
var ANALYTICS_CONTEXT_DATA = {
|
|
28
28
|
componentName: 'searchInput',
|
|
29
29
|
packageName: "@atlaskit/help",
|
|
30
|
-
packageVersion: "
|
|
30
|
+
packageVersion: "9.2.0"
|
|
31
31
|
};
|
|
32
32
|
var buttonStyles = null;
|
|
33
33
|
var SearchInput = exports.SearchInput = function SearchInput(_ref) {
|
|
@@ -102,7 +102,9 @@ var SearchInput = exports.SearchInput = function SearchInput(_ref) {
|
|
|
102
102
|
}), searchValue !== '' && /*#__PURE__*/_react.default.createElement(_customThemeButton.default, {
|
|
103
103
|
appearance: "subtle",
|
|
104
104
|
onClick: handleOnClearButtonClick,
|
|
105
|
-
spacing: "none"
|
|
105
|
+
spacing: "none"
|
|
106
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
107
|
+
,
|
|
106
108
|
"aria-label": "Clear",
|
|
107
109
|
className: (0, _runtime.ax)(["_1bsb1tcg _4t3i1tcg"])
|
|
108
110
|
}, /*#__PURE__*/_react.default.createElement(_crossEditorClose.default, {
|
|
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
20
20
|
var ANALYTICS_CONTEXT_DATA = {
|
|
21
21
|
componentName: 'WhatsNewButton',
|
|
22
22
|
packageName: "@atlaskit/help",
|
|
23
|
-
packageVersion: "
|
|
23
|
+
packageVersion: "9.2.0"
|
|
24
24
|
};
|
|
25
25
|
var WhatsNewButton = exports.WhatsNewButton = function WhatsNewButton(_ref) {
|
|
26
26
|
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: "
|
|
18
|
+
packageVersion: "9.2.0"
|
|
19
19
|
};
|
|
20
20
|
var WhatsNewResultListItem = exports.WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
21
21
|
var formatMessage = _ref.intl.formatMessage,
|
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: "
|
|
13
|
+
packageVersion: "9.2.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
|
+
packageVersion: "9.2.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
|
+
packageVersion: "9.2.0"
|
|
10
10
|
};
|
|
11
11
|
export const ArticleWasHelpfulYesButton = ({
|
|
12
12
|
isSelected = false,
|
|
@@ -26,7 +26,7 @@ const FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
|
26
26
|
const ANALYTICS_CONTEXT_DATA = {
|
|
27
27
|
componentName: 'ArticleWasHelpfulForm',
|
|
28
28
|
packageName: "@atlaskit/help",
|
|
29
|
-
packageVersion: "
|
|
29
|
+
packageVersion: "9.2.0"
|
|
30
30
|
};
|
|
31
31
|
const buttonStyles = null;
|
|
32
32
|
export const ArticleWasHelpfulForm = ({
|
|
@@ -215,7 +215,9 @@ export const ArticleWasHelpfulForm = ({
|
|
|
215
215
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
216
216
|
verticalAlign: 'middle'
|
|
217
217
|
},
|
|
218
|
-
role: "img"
|
|
218
|
+
role: "img"
|
|
219
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
220
|
+
,
|
|
219
221
|
"aria-label": "Success"
|
|
220
222
|
}, /*#__PURE__*/React.createElement(CheckCircleIcon, {
|
|
221
223
|
spacing: "spacious",
|
|
@@ -60,7 +60,7 @@ export const HelpArticle = ({
|
|
|
60
60
|
analyticsEvent.payload.attributes = {
|
|
61
61
|
componentName: 'Article',
|
|
62
62
|
packageName: "@atlaskit/help",
|
|
63
|
-
packageVersion: "
|
|
63
|
+
packageVersion: "9.2.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: "
|
|
16
|
+
packageVersion: "9.2.0"
|
|
17
17
|
};
|
|
18
18
|
export const WhatsNewArticle = ({
|
|
19
19
|
intl: {
|
|
@@ -17,4 +17,7 @@
|
|
|
17
17
|
._kqswstnw{position:absolute}
|
|
18
18
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
19
19
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
20
|
-
._vchhusvi{box-sizing:border-box}
|
|
20
|
+
._vchhusvi{box-sizing:border-box}
|
|
21
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
22
|
+
._49pcglyw:focus{outline-style:none}
|
|
23
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
@@ -53,12 +53,15 @@ export const Article = ({
|
|
|
53
53
|
}, [history]);
|
|
54
54
|
const onArticleEntered = () => {
|
|
55
55
|
onArticleEnteredTimeout.current = window.setTimeout(() => {
|
|
56
|
+
var _articleContainerRef$;
|
|
56
57
|
// if skipArticleSlideInAnimation is true, set to false after the
|
|
57
58
|
// first slide-in animation
|
|
58
59
|
// NOTE: skipArticleSlideInAnimation could be true only after the mounting
|
|
59
60
|
if (skipArticleSlideInAnimation) {
|
|
60
61
|
setSkipArticleSlideInAnimation(false);
|
|
61
62
|
}
|
|
63
|
+
// Move focus to the article container for accessibility
|
|
64
|
+
(_articleContainerRef$ = articleContainerRef.current) === null || _articleContainerRef$ === void 0 ? void 0 : _articleContainerRef$.focus();
|
|
62
65
|
}, SLIDEIN_OVERLAY_TRANSITION_DURATION_MS);
|
|
63
66
|
};
|
|
64
67
|
const onArticleExit = () => {
|
|
@@ -108,13 +111,14 @@ export const Article = ({
|
|
|
108
111
|
}, state => {
|
|
109
112
|
return /*#__PURE__*/React.createElement("div", {
|
|
110
113
|
ref: articleContainerRef,
|
|
114
|
+
tabIndex: -1,
|
|
111
115
|
style: {
|
|
112
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
113
117
|
...transitionStyles[state],
|
|
114
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
115
119
|
...enableTransition[!skipArticleSlideInAnimation ? 'enabled' : 'disabled']
|
|
116
120
|
},
|
|
117
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _19bv1ejb _u5f31ejb _n3tdpxbi _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v"])
|
|
121
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _19bv1ejb _u5f31ejb _n3tdpxbi _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v _nt751r31 _49pcglyw _1hvw1o36"])
|
|
118
122
|
}, /*#__PURE__*/React.createElement(ArticleContent, {
|
|
119
123
|
currentArticle: currentArticle,
|
|
120
124
|
onHelpArticleLoadingFailTryAgainButtonClick: reloadHelpArticle && handleOnHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -131,13 +135,14 @@ export const Article = ({
|
|
|
131
135
|
}, state => {
|
|
132
136
|
return /*#__PURE__*/React.createElement("div", {
|
|
133
137
|
ref: articleContainerRef,
|
|
138
|
+
tabIndex: -1,
|
|
134
139
|
style: {
|
|
135
140
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
136
141
|
...transitionStyles[state],
|
|
137
142
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
138
143
|
...enableTransition[!skipArticleSlideInAnimation ? 'enabled' : 'disabled']
|
|
139
144
|
},
|
|
140
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v"])
|
|
145
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v _nt751r31 _49pcglyw _1hvw1o36"])
|
|
141
146
|
}, /*#__PURE__*/React.createElement(ArticleContent, {
|
|
142
147
|
currentArticle: currentArticle,
|
|
143
148
|
onHelpArticleLoadingFailTryAgainButtonClick: reloadHelpArticle && handleOnHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -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: "
|
|
11
|
+
packageVersion: "9.2.0"
|
|
12
12
|
};
|
|
13
13
|
const highlightText = text => {
|
|
14
14
|
if (!text) {
|
|
@@ -63,12 +63,18 @@ export const ArticlesListItem = ({
|
|
|
63
63
|
role: "button",
|
|
64
64
|
href: href,
|
|
65
65
|
onClick: handleOnClick
|
|
66
|
-
}, /*#__PURE__*/React.createElement(ArticlesListItemContainer, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleSection, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleText, null, title), isLastPublishedVisible &&
|
|
66
|
+
}, /*#__PURE__*/React.createElement(ArticlesListItemContainer, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleSection, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleText, null, title), isLastPublishedVisible &&
|
|
67
|
+
/*#__PURE__*/
|
|
68
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
69
|
+
React.createElement(ArticlesListItemLastModified, null, "Last modified: ", lastPublished)), href && /*#__PURE__*/React.createElement(ArticlesListItemLinkIcon, null, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
67
70
|
LEGACY_size: "small",
|
|
68
71
|
label: "Opens in a new window",
|
|
69
72
|
color: `var(--ds-icon-subtle, ${colors.N90})`,
|
|
70
73
|
LEGACY_secondaryColor: `var(--ds-icon-subtle, ${colors.N90})`
|
|
71
|
-
}))), /*#__PURE__*/React.createElement(ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/React.createElement(ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/React.createElement(ArticlesListItemTrustFactor, null, isNumViewsVisible &&
|
|
74
|
+
}))), /*#__PURE__*/React.createElement(ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/React.createElement(ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/React.createElement(ArticlesListItemTrustFactor, null, isNumViewsVisible &&
|
|
75
|
+
/*#__PURE__*/
|
|
76
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
77
|
+
React.createElement(ArticlesListItemViewCount, null, trustFactors.numViews, " views"), isHelpfulCountVisible && /*#__PURE__*/React.createElement(ArticlesListItemHelpfulCount, null, /*#__PURE__*/React.createElement(LikeIcon, {
|
|
72
78
|
LEGACY_margin: "0 -0.25px 0 0",
|
|
73
79
|
color: "currentColor",
|
|
74
80
|
label: "Like",
|
|
@@ -36,6 +36,7 @@ const articlesListItemLinkIconStyles = null;
|
|
|
36
36
|
export const ArticlesListItemLinkIcon = ({
|
|
37
37
|
children
|
|
38
38
|
}) => /*#__PURE__*/React.createElement("span", {
|
|
39
|
+
"aria-label": "Opens in a new window",
|
|
39
40
|
className: ax(["_1wpz1wug _bozg1b66 _s7n4nkob"])
|
|
40
41
|
}, children);
|
|
41
42
|
const articlesListItemTitleTextStyles = null;
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
const analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "9.2.0"
|
|
11
11
|
};
|
|
12
12
|
const HelpContentButton = ({
|
|
13
13
|
id = '',
|
|
@@ -16,7 +16,7 @@ import { RelatedArticlesTitle } from './styled';
|
|
|
16
16
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
17
17
|
import { usePrevious } from '../../util/hooks/previous';
|
|
18
18
|
const packageName = "@atlaskit/help";
|
|
19
|
-
const packageVersion = "
|
|
19
|
+
const packageVersion = "9.2.0";
|
|
20
20
|
const buttonStyles = null;
|
|
21
21
|
export const RelatedArticles = ({
|
|
22
22
|
style = 'primary',
|
|
@@ -18,7 +18,7 @@ import { useNavigationContext } from '../../contexts/navigationContext';
|
|
|
18
18
|
const ANALYTICS_CONTEXT_DATA = {
|
|
19
19
|
componentName: 'searchInput',
|
|
20
20
|
packageName: "@atlaskit/help",
|
|
21
|
-
packageVersion: "
|
|
21
|
+
packageVersion: "9.2.0"
|
|
22
22
|
};
|
|
23
23
|
const buttonStyles = null;
|
|
24
24
|
export const SearchInput = ({
|
|
@@ -98,7 +98,9 @@ export const SearchInput = ({
|
|
|
98
98
|
}), searchValue !== '' && /*#__PURE__*/React.createElement(Button, {
|
|
99
99
|
appearance: "subtle",
|
|
100
100
|
onClick: handleOnClearButtonClick,
|
|
101
|
-
spacing: "none"
|
|
101
|
+
spacing: "none"
|
|
102
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
103
|
+
,
|
|
102
104
|
"aria-label": "Clear",
|
|
103
105
|
className: ax(["_1bsb1tcg _4t3i1tcg"])
|
|
104
106
|
}, /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
@@ -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: "
|
|
14
|
+
packageVersion: "9.2.0"
|
|
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: "
|
|
11
|
+
packageVersion: "9.2.0"
|
|
12
12
|
};
|
|
13
13
|
export const WhatsNewResultListItem = ({
|
|
14
14
|
intl: {
|
package/dist/esm/analytics.js
CHANGED
|
@@ -10,7 +10,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer, LoadingErrorHeading }
|
|
|
10
10
|
var ANALYTICS_CONTEXT_DATA = {
|
|
11
11
|
componentName: 'ArticleLoadingFail',
|
|
12
12
|
packageName: "@atlaskit/help",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "9.2.0"
|
|
14
14
|
};
|
|
15
15
|
export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
|
|
16
16
|
var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
|
|
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
|
|
|
6
6
|
var ANALYTICS_CONTEXT_DATA = {
|
|
7
7
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
8
8
|
packageName: "@atlaskit/help",
|
|
9
|
-
packageVersion: "
|
|
9
|
+
packageVersion: "9.2.0"
|
|
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: "
|
|
9
|
+
packageVersion: "9.2.0"
|
|
10
10
|
};
|
|
11
11
|
export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
12
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -27,7 +27,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
|
27
27
|
var ANALYTICS_CONTEXT_DATA = {
|
|
28
28
|
componentName: 'ArticleWasHelpfulForm',
|
|
29
29
|
packageName: "@atlaskit/help",
|
|
30
|
-
packageVersion: "
|
|
30
|
+
packageVersion: "9.2.0"
|
|
31
31
|
};
|
|
32
32
|
var buttonStyles = null;
|
|
33
33
|
export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
@@ -235,7 +235,9 @@ export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
|
235
235
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
236
236
|
verticalAlign: 'middle'
|
|
237
237
|
},
|
|
238
|
-
role: "img"
|
|
238
|
+
role: "img"
|
|
239
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
240
|
+
,
|
|
239
241
|
"aria-label": "Success"
|
|
240
242
|
}, /*#__PURE__*/React.createElement(CheckCircleIcon, {
|
|
241
243
|
spacing: "spacious",
|
|
@@ -56,7 +56,7 @@ export var HelpArticle = function HelpArticle(_ref) {
|
|
|
56
56
|
analyticsEvent.payload.attributes = {
|
|
57
57
|
componentName: 'Article',
|
|
58
58
|
packageName: "@atlaskit/help",
|
|
59
|
-
packageVersion: "
|
|
59
|
+
packageVersion: "9.2.0"
|
|
60
60
|
};
|
|
61
61
|
if (onRelatedArticlesShowMoreClick) {
|
|
62
62
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
|
|
|
13
13
|
var analyticsContextData = {
|
|
14
14
|
componentName: 'ArticlesListItem',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "9.2.0"
|
|
17
17
|
};
|
|
18
18
|
export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
19
19
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -17,4 +17,7 @@
|
|
|
17
17
|
._kqswstnw{position:absolute}
|
|
18
18
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
19
19
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
20
|
-
._vchhusvi{box-sizing:border-box}
|
|
20
|
+
._vchhusvi{box-sizing:border-box}
|
|
21
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
22
|
+
._49pcglyw:focus{outline-style:none}
|
|
23
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
@@ -63,12 +63,15 @@ export var Article = function Article(_ref) {
|
|
|
63
63
|
}, [history]);
|
|
64
64
|
var onArticleEntered = function onArticleEntered() {
|
|
65
65
|
onArticleEnteredTimeout.current = window.setTimeout(function () {
|
|
66
|
+
var _articleContainerRef$;
|
|
66
67
|
// if skipArticleSlideInAnimation is true, set to false after the
|
|
67
68
|
// first slide-in animation
|
|
68
69
|
// NOTE: skipArticleSlideInAnimation could be true only after the mounting
|
|
69
70
|
if (skipArticleSlideInAnimation) {
|
|
70
71
|
setSkipArticleSlideInAnimation(false);
|
|
71
72
|
}
|
|
73
|
+
// Move focus to the article container for accessibility
|
|
74
|
+
(_articleContainerRef$ = articleContainerRef.current) === null || _articleContainerRef$ === void 0 || _articleContainerRef$.focus();
|
|
72
75
|
}, SLIDEIN_OVERLAY_TRANSITION_DURATION_MS);
|
|
73
76
|
};
|
|
74
77
|
var onArticleExit = function onArticleExit() {
|
|
@@ -118,8 +121,9 @@ export var Article = function Article(_ref) {
|
|
|
118
121
|
}, function (state) {
|
|
119
122
|
return /*#__PURE__*/React.createElement("div", {
|
|
120
123
|
ref: articleContainerRef,
|
|
124
|
+
tabIndex: -1,
|
|
121
125
|
style: _objectSpread(_objectSpread({}, transitionStyles[state]), enableTransition[!skipArticleSlideInAnimation ? 'enabled' : 'disabled']),
|
|
122
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _19bv1ejb _u5f31ejb _n3tdpxbi _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v"])
|
|
126
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _19bv1ejb _u5f31ejb _n3tdpxbi _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v _nt751r31 _49pcglyw _1hvw1o36"])
|
|
123
127
|
}, /*#__PURE__*/React.createElement(ArticleContent, {
|
|
124
128
|
currentArticle: currentArticle,
|
|
125
129
|
onHelpArticleLoadingFailTryAgainButtonClick: reloadHelpArticle && handleOnHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -136,8 +140,9 @@ export var Article = function Article(_ref) {
|
|
|
136
140
|
}, function (state) {
|
|
137
141
|
return /*#__PURE__*/React.createElement("div", {
|
|
138
142
|
ref: articleContainerRef,
|
|
143
|
+
tabIndex: -1,
|
|
139
144
|
style: _objectSpread(_objectSpread({}, transitionStyles[state]), enableTransition[!skipArticleSlideInAnimation ? 'enabled' : 'disabled']),
|
|
140
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v"])
|
|
145
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _1ltv1osq _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbycs5v _nt751r31 _49pcglyw _1hvw1o36"])
|
|
141
146
|
}, /*#__PURE__*/React.createElement(ArticleContent, {
|
|
142
147
|
currentArticle: currentArticle,
|
|
143
148
|
onHelpArticleLoadingFailTryAgainButtonClick: reloadHelpArticle && handleOnHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -8,7 +8,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
|
|
|
8
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "
|
|
11
|
+
packageVersion: "9.2.0"
|
|
12
12
|
};
|
|
13
13
|
var highlightText = function highlightText(text) {
|
|
14
14
|
if (!text) {
|
|
@@ -62,12 +62,18 @@ export var ArticlesListItem = function ArticlesListItem(_ref) {
|
|
|
62
62
|
role: "button",
|
|
63
63
|
href: href,
|
|
64
64
|
onClick: handleOnClick
|
|
65
|
-
}, /*#__PURE__*/React.createElement(ArticlesListItemContainer, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleSection, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleText, null, title), isLastPublishedVisible &&
|
|
65
|
+
}, /*#__PURE__*/React.createElement(ArticlesListItemContainer, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleSection, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleText, null, title), isLastPublishedVisible &&
|
|
66
|
+
/*#__PURE__*/
|
|
67
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
68
|
+
React.createElement(ArticlesListItemLastModified, null, "Last modified: ", lastPublished)), href && /*#__PURE__*/React.createElement(ArticlesListItemLinkIcon, null, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
66
69
|
LEGACY_size: "small",
|
|
67
70
|
label: "Opens in a new window",
|
|
68
71
|
color: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
|
|
69
72
|
LEGACY_secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
|
|
70
|
-
}))), /*#__PURE__*/React.createElement(ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/React.createElement(ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/React.createElement(ArticlesListItemTrustFactor, null, isNumViewsVisible &&
|
|
73
|
+
}))), /*#__PURE__*/React.createElement(ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/React.createElement(ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/React.createElement(ArticlesListItemTrustFactor, null, isNumViewsVisible &&
|
|
74
|
+
/*#__PURE__*/
|
|
75
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
76
|
+
React.createElement(ArticlesListItemViewCount, null, trustFactors.numViews, " views"), isHelpfulCountVisible && /*#__PURE__*/React.createElement(ArticlesListItemHelpfulCount, null, /*#__PURE__*/React.createElement(LikeIcon, {
|
|
71
77
|
LEGACY_margin: "0 -0.25px 0 0",
|
|
72
78
|
color: "currentColor",
|
|
73
79
|
label: "Like",
|
|
@@ -46,6 +46,7 @@ var articlesListItemLinkIconStyles = null;
|
|
|
46
46
|
export var ArticlesListItemLinkIcon = function ArticlesListItemLinkIcon(_ref4) {
|
|
47
47
|
var children = _ref4.children;
|
|
48
48
|
return /*#__PURE__*/React.createElement("span", {
|
|
49
|
+
"aria-label": "Opens in a new window",
|
|
49
50
|
className: ax(["_1wpz1wug _bozg1b66 _s7n4nkob"])
|
|
50
51
|
}, children);
|
|
51
52
|
};
|
|
@@ -49,7 +49,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
|
|
|
49
49
|
data: {
|
|
50
50
|
componentName: 'backButton',
|
|
51
51
|
packageName: "@atlaskit/help",
|
|
52
|
-
packageVersion: "
|
|
52
|
+
packageVersion: "9.2.0"
|
|
53
53
|
}
|
|
54
54
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
55
55
|
};
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
var analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "9.2.0"
|
|
11
11
|
};
|
|
12
12
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
13
13
|
var _ref$id = _ref.id,
|
|
@@ -20,7 +20,7 @@ import { RelatedArticlesTitle } from './styled';
|
|
|
20
20
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
21
21
|
import { usePrevious } from '../../util/hooks/previous';
|
|
22
22
|
var packageName = "@atlaskit/help";
|
|
23
|
-
var packageVersion = "
|
|
23
|
+
var packageVersion = "9.2.0";
|
|
24
24
|
var buttonStyles = null;
|
|
25
25
|
export var RelatedArticles = function RelatedArticles(_ref) {
|
|
26
26
|
var _ref$style = _ref.style,
|
|
@@ -18,7 +18,7 @@ import { useNavigationContext } from '../../contexts/navigationContext';
|
|
|
18
18
|
var ANALYTICS_CONTEXT_DATA = {
|
|
19
19
|
componentName: 'searchInput',
|
|
20
20
|
packageName: "@atlaskit/help",
|
|
21
|
-
packageVersion: "
|
|
21
|
+
packageVersion: "9.2.0"
|
|
22
22
|
};
|
|
23
23
|
var buttonStyles = null;
|
|
24
24
|
export var SearchInput = function SearchInput(_ref) {
|
|
@@ -93,7 +93,9 @@ export var SearchInput = function SearchInput(_ref) {
|
|
|
93
93
|
}), searchValue !== '' && /*#__PURE__*/React.createElement(Button, {
|
|
94
94
|
appearance: "subtle",
|
|
95
95
|
onClick: handleOnClearButtonClick,
|
|
96
|
-
spacing: "none"
|
|
96
|
+
spacing: "none"
|
|
97
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
98
|
+
,
|
|
97
99
|
"aria-label": "Clear",
|
|
98
100
|
className: ax(["_1bsb1tcg _4t3i1tcg"])
|
|
99
101
|
}, /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
@@ -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: "
|
|
14
|
+
packageVersion: "9.2.0"
|
|
15
15
|
};
|
|
16
16
|
export var WhatsNewButton = function WhatsNewButton(_ref) {
|
|
17
17
|
var productName = _ref.productName,
|
package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js
CHANGED
|
@@ -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: "
|
|
11
|
+
packageVersion: "9.2.0"
|
|
12
12
|
};
|
|
13
13
|
export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
14
14
|
var formatMessage = _ref.intl.formatMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
|
-
"@atlaskit/button": "^23.
|
|
36
|
-
"@atlaskit/checkbox": "^17.
|
|
37
|
-
"@atlaskit/form": "^
|
|
35
|
+
"@atlaskit/button": "^23.7.0",
|
|
36
|
+
"@atlaskit/checkbox": "^17.2.0",
|
|
37
|
+
"@atlaskit/form": "^15.0.0",
|
|
38
38
|
"@atlaskit/heading": "^5.2.0",
|
|
39
39
|
"@atlaskit/help-article": "^6.0.0",
|
|
40
40
|
"@atlaskit/help-layout": "^6.3.0",
|
|
41
41
|
"@atlaskit/icon": "^29.0.0",
|
|
42
42
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
43
43
|
"@atlaskit/notification-indicator": "^10.0.0",
|
|
44
|
-
"@atlaskit/notification-log-client": "^6.
|
|
44
|
+
"@atlaskit/notification-log-client": "^6.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/primitives": "^16.
|
|
46
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
47
47
|
"@atlaskit/radio": "^8.3.0",
|
|
48
|
-
"@atlaskit/section-message": "^8.
|
|
49
|
-
"@atlaskit/select": "^21.
|
|
48
|
+
"@atlaskit/section-message": "^8.10.0",
|
|
49
|
+
"@atlaskit/select": "^21.5.0",
|
|
50
50
|
"@atlaskit/spinner": "^19.0.0",
|
|
51
|
-
"@atlaskit/textarea": "^8.
|
|
52
|
-
"@atlaskit/textfield": "^8.
|
|
51
|
+
"@atlaskit/textarea": "^8.2.0",
|
|
52
|
+
"@atlaskit/textfield": "^8.2.0",
|
|
53
53
|
"@atlaskit/theme": "^21.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^8.
|
|
55
|
-
"@atlaskit/tooltip": "^20.
|
|
54
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
55
|
+
"@atlaskit/tooltip": "^20.11.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@compiled/react": "^0.18.6",
|
|
58
58
|
"date-fns": "^2.17.0",
|