@atlaskit/help 9.1.19 → 9.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/styled.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 +2 -2
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -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/Article/WhatsNewArticle/styled.js +1 -1
- package/dist/cjs/components/Article/index.compiled.css +1 -1
- package/dist/cjs/components/Article/index.js +3 -5
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.compiled.css +28 -7
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/cjs/components/ArticlesList/styled.js +1 -1
- package/dist/cjs/components/BackButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.compiled.css +34 -10
- package/dist/cjs/components/HelpContentButton/styled.js +3 -5
- package/dist/cjs/components/NeedMoreHelp/styled.js +1 -1
- package/dist/cjs/components/RelatedArticles/index.js +2 -2
- package/dist/cjs/components/RelatedArticles/styled.js +1 -1
- package/dist/cjs/components/Search/SearchInput/index.js +2 -2
- package/dist/cjs/components/Search/SearchInput/styled.compiled.css +5 -3
- package/dist/cjs/components/Search/SearchInput/styled.js +2 -5
- package/dist/cjs/components/Search/SearchResults/styled.compiled.css +1 -1
- package/dist/cjs/components/Search/SearchResults/styled.js +2 -3
- package/dist/cjs/components/Tabs/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.compiled.css +28 -7
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +1 -1
- package/dist/cjs/components/contexts/navigationContext.js +14 -5
- package/dist/cjs/components/styled.js +1 -1
- package/dist/cjs/util/styled.compiled.css +2 -2
- package/dist/cjs/util/styled.js +4 -5
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/styled.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 +2 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
- 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/WhatsNewArticle/styled.js +1 -1
- package/dist/es2019/components/Article/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.compiled.css +28 -7
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/es2019/components/ArticlesList/styled.js +1 -1
- package/dist/es2019/components/BackButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.compiled.css +33 -9
- package/dist/es2019/components/HelpContentButton/styled.js +1 -1
- package/dist/es2019/components/NeedMoreHelp/styled.js +1 -1
- package/dist/es2019/components/RelatedArticles/index.js +2 -2
- package/dist/es2019/components/RelatedArticles/styled.js +1 -1
- package/dist/es2019/components/Search/SearchInput/index.js +2 -2
- package/dist/es2019/components/Search/SearchInput/styled.compiled.css +4 -2
- package/dist/es2019/components/Search/SearchInput/styled.js +1 -1
- package/dist/es2019/components/Search/SearchResults/styled.js +1 -1
- package/dist/es2019/components/Tabs/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.compiled.css +28 -7
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +1 -1
- package/dist/es2019/components/contexts/navigationContext.js +15 -6
- package/dist/es2019/components/styled.js +1 -1
- package/dist/es2019/util/styled.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/ArticleLoadingFail/styled.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 +2 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
- 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/WhatsNewArticle/styled.js +1 -1
- package/dist/esm/components/Article/index.compiled.css +1 -1
- package/dist/esm/components/Article/index.js +3 -5
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.compiled.css +28 -7
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/esm/components/ArticlesList/styled.js +1 -1
- package/dist/esm/components/BackButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.compiled.css +34 -10
- package/dist/esm/components/HelpContentButton/styled.js +3 -5
- package/dist/esm/components/NeedMoreHelp/styled.js +1 -1
- package/dist/esm/components/RelatedArticles/index.js +2 -2
- package/dist/esm/components/RelatedArticles/styled.js +1 -1
- package/dist/esm/components/Search/SearchInput/index.js +2 -2
- package/dist/esm/components/Search/SearchInput/styled.compiled.css +5 -3
- package/dist/esm/components/Search/SearchInput/styled.js +2 -5
- package/dist/esm/components/Search/SearchResults/styled.compiled.css +1 -1
- package/dist/esm/components/Search/SearchResults/styled.js +2 -3
- package/dist/esm/components/Tabs/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.compiled.css +28 -7
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +1 -1
- package/dist/esm/components/contexts/navigationContext.js +15 -6
- package/dist/esm/components/styled.js +1 -1
- package/dist/esm/util/styled.compiled.css +2 -2
- package/dist/esm/util/styled.js +4 -5
- package/package.json +3 -3
|
@@ -270,6 +270,14 @@ var NavigationContextProvider = exports.NavigationContextProvider = function Nav
|
|
|
270
270
|
*/
|
|
271
271
|
return isOverlayVisible;
|
|
272
272
|
}, [currentHistory.length, isDefaultContentDefined, isOverlayVisible, currentView, isAiEnabled]);
|
|
273
|
+
|
|
274
|
+
// Use refs to store the latest function references without causing re-renders
|
|
275
|
+
var onGetHelpArticleRef = (0, _react.useRef)(onGetHelpArticle);
|
|
276
|
+
var onGetWhatsNewArticleRef = (0, _react.useRef)(onGetWhatsNewArticle);
|
|
277
|
+
|
|
278
|
+
// Update refs when functions change
|
|
279
|
+
onGetHelpArticleRef.current = onGetHelpArticle;
|
|
280
|
+
onGetWhatsNewArticleRef.current = onGetWhatsNewArticle;
|
|
273
281
|
var fetchArticleData = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
274
282
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(historyItem) {
|
|
275
283
|
var article;
|
|
@@ -281,14 +289,14 @@ var NavigationContextProvider = exports.NavigationContextProvider = function Nav
|
|
|
281
289
|
_context.next = _context.t0 === _Help.ARTICLE_TYPE.HELP_ARTICLE ? 4 : _context.t0 === _Help.ARTICLE_TYPE.WHATS_NEW ? 10 : 18;
|
|
282
290
|
break;
|
|
283
291
|
case 4:
|
|
284
|
-
if (
|
|
292
|
+
if (onGetHelpArticleRef.current) {
|
|
285
293
|
_context.next = 6;
|
|
286
294
|
break;
|
|
287
295
|
}
|
|
288
296
|
throw new Error('onGetHelpArticle prop not defined');
|
|
289
297
|
case 6:
|
|
290
298
|
_context.next = 8;
|
|
291
|
-
return
|
|
299
|
+
return onGetHelpArticleRef.current({
|
|
292
300
|
id: historyItem.id,
|
|
293
301
|
type: historyItem.type,
|
|
294
302
|
contentAri: historyItem.contentAri
|
|
@@ -297,7 +305,7 @@ var NavigationContextProvider = exports.NavigationContextProvider = function Nav
|
|
|
297
305
|
article = _context.sent;
|
|
298
306
|
return _context.abrupt("break", 19);
|
|
299
307
|
case 10:
|
|
300
|
-
if (
|
|
308
|
+
if (onGetWhatsNewArticleRef.current) {
|
|
301
309
|
_context.next = 12;
|
|
302
310
|
break;
|
|
303
311
|
}
|
|
@@ -310,7 +318,7 @@ var NavigationContextProvider = exports.NavigationContextProvider = function Nav
|
|
|
310
318
|
return _context.abrupt("break", 19);
|
|
311
319
|
case 14:
|
|
312
320
|
_context.next = 16;
|
|
313
|
-
return
|
|
321
|
+
return onGetWhatsNewArticleRef.current({
|
|
314
322
|
id: historyItem.id,
|
|
315
323
|
type: historyItem.type
|
|
316
324
|
});
|
|
@@ -340,7 +348,8 @@ var NavigationContextProvider = exports.NavigationContextProvider = function Nav
|
|
|
340
348
|
return function (_x) {
|
|
341
349
|
return _ref5.apply(this, arguments);
|
|
342
350
|
};
|
|
343
|
-
}(), [
|
|
351
|
+
}(), [] // Empty dependency array since we use refs
|
|
352
|
+
);
|
|
344
353
|
var reloadArticle = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
345
354
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(historyItem) {
|
|
346
355
|
var historyItemToReload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}.
|
|
2
|
+
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}._100g1wgc>img{height:calc(100% - var(--ds-space-050, 4px))}
|
|
3
3
|
._12vemgnk{background-repeat:no-repeat}
|
|
4
4
|
._15jg1osq>img>svg{height:100%}
|
|
5
5
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
._bfhk17xe{background-color:var(--_kmlon4)}
|
|
20
20
|
._bfhkptpz{background-color:var(--_19g1tth)}
|
|
21
21
|
._ca0qidpf{padding-top:0}
|
|
22
|
-
.
|
|
22
|
+
._iu1x1wgc>img{width:calc(100% - var(--ds-space-050, 4px))}
|
|
23
23
|
._j7hq1en8{animation-name:k6xje6p}
|
|
24
24
|
._kqswh2mm{position:relative}
|
|
25
25
|
._n3tdidpf{padding-bottom:0}
|
package/dist/cjs/util/styled.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -86,10 +86,9 @@ var WhatsNewTypeIcon = exports.WhatsNewTypeIcon = function WhatsNewTypeIcon(_ref
|
|
|
86
86
|
}
|
|
87
87
|
}, [type]);
|
|
88
88
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
-
className: (0, _runtime.ax)(["_2rkolb4i _1e0c1o8l _s7n4nkob _kqswh2mm _4t3ipxbi _1bsbpxbi _syazu67f _iu1xwk75 _100gwk75 _yti7stnw _5s2h1ssb _se2z1ssb _9qcx1ooe _15jg1osq _1jrq1osq"]),
|
|
90
89
|
style: {
|
|
91
|
-
backgroundColor: backgroundColor
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
backgroundColor: backgroundColor
|
|
91
|
+
},
|
|
92
|
+
className: (0, _runtime.ax)(["_2rkolb4i _1e0c1o8l _s7n4nkob _kqswh2mm _4t3ipxbi _1bsbpxbi _syazu67f _iu1x1wgc _100g1wgc _yti7stnw _5s2h1ssb _se2z1ssb _9qcx1ooe _15jg1osq _1jrq1osq"])
|
|
94
93
|
}, children);
|
|
95
94
|
};
|
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.1.20"
|
|
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.1.20"
|
|
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.1.20"
|
|
10
10
|
};
|
|
11
11
|
export const ArticleWasHelpfulYesButton = ({
|
|
12
12
|
isSelected = false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -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.1.20"
|
|
30
30
|
};
|
|
31
31
|
const buttonStyles = null;
|
|
32
32
|
export const ArticleWasHelpfulForm = ({
|
|
@@ -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.1.20"
|
|
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.1.20"
|
|
17
17
|
};
|
|
18
18
|
export const WhatsNewArticle = ({
|
|
19
19
|
intl: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useState, useLayoutEffect, useRef, useEffect, useCallback } from 'react';
|
|
@@ -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.1.20"
|
|
12
12
|
};
|
|
13
13
|
const highlightText = text => {
|
|
14
14
|
if (!text) {
|
|
@@ -48,13 +48,34 @@
|
|
|
48
48
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
49
49
|
._vchhusvi{box-sizing:border-box}
|
|
50
50
|
._vwz4gktf{line-height:20px}
|
|
51
|
+
._12gr1o36:visited{outline-width:medium}
|
|
52
|
+
._1726nqa1:visited{text-decoration-style:solid}
|
|
53
|
+
._1dnaglyw:visited{outline-offset:none}
|
|
54
|
+
._1x28glyw:visited{text-decoration-line:none}
|
|
55
|
+
._1ydc1r31:visited{text-decoration-color:currentColor}
|
|
56
|
+
._9nxe1r31:visited{outline-color:currentColor}
|
|
57
|
+
._tpgfglyw:visited{outline-style:none}
|
|
58
|
+
._1a3b1r31:focus{text-decoration-color:currentColor}
|
|
59
|
+
._1bg4glyw:focus{outline-offset:none}
|
|
60
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
61
|
+
._49pcglyw:focus{outline-style:none}
|
|
62
|
+
._4fprglyw:focus{text-decoration-line:none}
|
|
63
|
+
._5goinqa1:focus{text-decoration-style:solid}
|
|
51
64
|
._7ehi1ssq:focus{box-shadow:var(--ds-border-focused,#4c9aff) 0 0 0 2px inset}
|
|
65
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
66
|
+
._1bnxglyw:hover{text-decoration-line:none}
|
|
67
|
+
._1dit1r31:hover{outline-color:currentColor}
|
|
68
|
+
._1qb1glyw:hover{outline-offset:none}
|
|
69
|
+
._4hz81o36:hover{outline-width:medium}
|
|
70
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
52
71
|
._irr314ae:hover{background-color:var(--ds-background-neutral-subtle-hovered,#ebecf0)}
|
|
53
|
-
.
|
|
72
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
73
|
+
._ksodglyw:hover{outline-style:none}
|
|
74
|
+
._13roglyw:active{outline-offset:none}
|
|
54
75
|
._1di61l7b:active{background-color:var(--ds-background-neutral-subtle-pressed,#deebff)}
|
|
55
|
-
._1iohnqa1:active
|
|
56
|
-
._1nrm1r31:active
|
|
57
|
-
._1ohyglyw:active
|
|
58
|
-
._1q5t1r31:active
|
|
59
|
-
._1r9x1o36:active
|
|
60
|
-
._c2waglyw:active
|
|
76
|
+
._1iohnqa1:active{text-decoration-style:solid}
|
|
77
|
+
._1nrm1r31:active{text-decoration-color:currentColor}
|
|
78
|
+
._1ohyglyw:active{outline-style:none}
|
|
79
|
+
._1q5t1r31:active{outline-color:currentColor}
|
|
80
|
+
._1r9x1o36:active{outline-width:medium}
|
|
81
|
+
._c2waglyw:active{text-decoration-line:none}
|
|
@@ -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.1.20"
|
|
11
11
|
};
|
|
12
12
|
const HelpContentButton = ({
|
|
13
13
|
id = '',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
._11c8376l{font:var(--ds-font-body,inherit)}
|
|
2
3
|
._19itglyw{border:none}
|
|
3
4
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -30,15 +31,38 @@
|
|
|
30
31
|
._syazc8hx{color:var(--ds-text-subtle,#344563)}
|
|
31
32
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
32
33
|
._vchhusvi{box-sizing:border-box}
|
|
33
|
-
._vr2wstnw span{position:absolute}
|
|
34
|
+
._vr2wstnw span{position:absolute}._1053c8hx:visited{color:var(--ds-text-subtle,#344563)}
|
|
35
|
+
._12gr1o36:visited{outline-width:medium}
|
|
36
|
+
._1726nqa1:visited{text-decoration-style:solid}
|
|
37
|
+
._1dnaglyw:visited{outline-offset:none}
|
|
38
|
+
._1x28glyw:visited{text-decoration-line:none}
|
|
39
|
+
._1ydc1r31:visited{text-decoration-color:currentColor}
|
|
40
|
+
._9nxe1r31:visited{outline-color:currentColor}
|
|
41
|
+
._tpgfglyw:visited{outline-style:none}
|
|
42
|
+
._1a3b1r31:focus{text-decoration-color:currentColor}
|
|
43
|
+
._1bg4glyw:focus{outline-offset:none}
|
|
44
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
45
|
+
._49pcglyw:focus{outline-style:none}
|
|
46
|
+
._4fprglyw:focus{text-decoration-line:none}
|
|
47
|
+
._5goinqa1:focus{text-decoration-style:solid}
|
|
34
48
|
._7ehi1ssq:focus{box-shadow:var(--ds-border-focused,#4c9aff) 0 0 0 2px inset}
|
|
49
|
+
._f8pjc8hx:focus{color:var(--ds-text-subtle,#344563)}
|
|
50
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
51
|
+
._1bnxglyw:hover{text-decoration-line:none}
|
|
52
|
+
._1dit1r31:hover{outline-color:currentColor}
|
|
53
|
+
._1qb1glyw:hover{outline-offset:none}
|
|
54
|
+
._30l3c8hx:hover{color:var(--ds-text-subtle,#344563)}
|
|
55
|
+
._4hz81o36:hover{outline-width:medium}
|
|
56
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
35
57
|
._irr314ae:hover{background-color:var(--ds-background-neutral-subtle-hovered,#ebecf0)}
|
|
36
|
-
.
|
|
58
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
59
|
+
._ksodglyw:hover{outline-style:none}
|
|
60
|
+
._13roglyw:active{outline-offset:none}
|
|
37
61
|
._1di61l7b:active{background-color:var(--ds-background-neutral-subtle-pressed,#deebff)}
|
|
38
|
-
._1iohnqa1:active
|
|
39
|
-
._1nrm1r31:active
|
|
40
|
-
._1ohyglyw:active
|
|
41
|
-
._1q5t1r31:active
|
|
42
|
-
._1r9x1o36:active
|
|
43
|
-
._9h8hc8hx:active
|
|
44
|
-
._c2waglyw:active
|
|
62
|
+
._1iohnqa1:active{text-decoration-style:solid}
|
|
63
|
+
._1nrm1r31:active{text-decoration-color:currentColor}
|
|
64
|
+
._1ohyglyw:active{outline-style:none}
|
|
65
|
+
._1q5t1r31:active{outline-color:currentColor}
|
|
66
|
+
._1r9x1o36:active{outline-width:medium}
|
|
67
|
+
._9h8hc8hx:active{color:var(--ds-text-subtle,#344563)}
|
|
68
|
+
._c2waglyw:active{text-decoration-line:none}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
/** @jsxFrag */
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -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.1.20";
|
|
20
20
|
const buttonStyles = null;
|
|
21
21
|
export const RelatedArticles = ({
|
|
22
22
|
style = 'primary',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useRef, useCallback } from 'react';
|
|
@@ -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.1.20"
|
|
22
22
|
};
|
|
23
23
|
const buttonStyles = null;
|
|
24
24
|
export const SearchInput = ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
._1275nkob>button
|
|
1
|
+
._1275nkob>button{vertical-align:middle}
|
|
2
2
|
._16jlidpf{flex-grow:0}
|
|
3
3
|
._18u01ejb{margin-left:var(--ds-space-300,24px)}
|
|
4
4
|
._18u01i6y{margin-left:var(--ds-space-negative-025,-2px)}
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
._1bsb1osq{width:100%}
|
|
10
10
|
._1f021ejb>span{height:var(--ds-space-300,24px)}
|
|
11
11
|
._1f49idpf{order:0}
|
|
12
|
-
._1msb1o8l>button
|
|
12
|
+
._1msb1o8l>button{display:inline-block}
|
|
13
13
|
._1o9zkb7n{flex-shrink:1}
|
|
14
14
|
._1rckusvi>span{box-sizing:border-box}
|
|
15
|
+
._1skznkob>span{vertical-align:middle}
|
|
16
|
+
._1w7e1o8l>span{display:inline-block}
|
|
15
17
|
._1wpz1wug{align-self:auto}
|
|
16
18
|
._1wybidpf{font-size:0}
|
|
17
19
|
._1yg61b66>span{padding-left:var(--ds-space-050,4px)}
|
|
@@ -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.1.20"
|
|
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.1.20"
|
|
12
12
|
};
|
|
13
13
|
export const WhatsNewResultListItem = ({
|
|
14
14
|
intl: {
|
|
@@ -28,13 +28,34 @@
|
|
|
28
28
|
._vchhusvi{box-sizing:border-box}
|
|
29
29
|
._vwz4gktf{line-height:20px}
|
|
30
30
|
._y3gn1e5h{text-align:left}
|
|
31
|
+
._12gr1o36:visited{outline-width:medium}
|
|
32
|
+
._1726nqa1:visited{text-decoration-style:solid}
|
|
33
|
+
._1dnaglyw:visited{outline-offset:none}
|
|
34
|
+
._1x28glyw:visited{text-decoration-line:none}
|
|
35
|
+
._1ydc1r31:visited{text-decoration-color:currentColor}
|
|
36
|
+
._9nxe1r31:visited{outline-color:currentColor}
|
|
37
|
+
._tpgfglyw:visited{outline-style:none}
|
|
38
|
+
._1a3b1r31:focus{text-decoration-color:currentColor}
|
|
39
|
+
._1bg4glyw:focus{outline-offset:none}
|
|
40
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
41
|
+
._49pcglyw:focus{outline-style:none}
|
|
42
|
+
._4fprglyw:focus{text-decoration-line:none}
|
|
43
|
+
._5goinqa1:focus{text-decoration-style:solid}
|
|
31
44
|
._7ehi1ssq:focus{box-shadow:var(--ds-border-focused,#4c9aff) 0 0 0 2px inset}
|
|
45
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
46
|
+
._1bnxglyw:hover{text-decoration-line:none}
|
|
47
|
+
._1dit1r31:hover{outline-color:currentColor}
|
|
48
|
+
._1qb1glyw:hover{outline-offset:none}
|
|
49
|
+
._4hz81o36:hover{outline-width:medium}
|
|
50
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
32
51
|
._irr314ae:hover{background-color:var(--ds-background-neutral-subtle-hovered,#ebecf0)}
|
|
33
|
-
.
|
|
52
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
53
|
+
._ksodglyw:hover{outline-style:none}
|
|
54
|
+
._13roglyw:active{outline-offset:none}
|
|
34
55
|
._1di61l7b:active{background-color:var(--ds-background-neutral-subtle-pressed,#deebff)}
|
|
35
|
-
._1iohnqa1:active
|
|
36
|
-
._1nrm1r31:active
|
|
37
|
-
._1ohyglyw:active
|
|
38
|
-
._1q5t1r31:active
|
|
39
|
-
._1r9x1o36:active
|
|
40
|
-
._c2waglyw:active
|
|
56
|
+
._1iohnqa1:active{text-decoration-style:solid}
|
|
57
|
+
._1nrm1r31:active{text-decoration-color:currentColor}
|
|
58
|
+
._1ohyglyw:active{outline-style:none}
|
|
59
|
+
._1q5t1r31:active{outline-color:currentColor}
|
|
60
|
+
._1r9x1o36:active{outline-width:medium}
|
|
61
|
+
._c2waglyw:active{text-decoration-line:none}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useReducer, useEffect, useCallback, useMemo } from 'react';
|
|
1
|
+
import React, { useReducer, useEffect, useCallback, useMemo, useRef } from 'react';
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
3
|
import { REQUEST_STATE } from '../../model/Requests';
|
|
4
4
|
import { ARTICLE_TYPE } from '../../model/Help';
|
|
@@ -266,28 +266,36 @@ export const NavigationContextProvider = ({
|
|
|
266
266
|
*/
|
|
267
267
|
return isOverlayVisible;
|
|
268
268
|
}, [currentHistory.length, isDefaultContentDefined, isOverlayVisible, currentView, isAiEnabled]);
|
|
269
|
+
|
|
270
|
+
// Use refs to store the latest function references without causing re-renders
|
|
271
|
+
const onGetHelpArticleRef = useRef(onGetHelpArticle);
|
|
272
|
+
const onGetWhatsNewArticleRef = useRef(onGetWhatsNewArticle);
|
|
273
|
+
|
|
274
|
+
// Update refs when functions change
|
|
275
|
+
onGetHelpArticleRef.current = onGetHelpArticle;
|
|
276
|
+
onGetWhatsNewArticleRef.current = onGetWhatsNewArticle;
|
|
269
277
|
const fetchArticleData = useCallback(async historyItem => {
|
|
270
278
|
try {
|
|
271
279
|
let article;
|
|
272
280
|
switch (historyItem.type) {
|
|
273
281
|
case ARTICLE_TYPE.HELP_ARTICLE:
|
|
274
|
-
if (!
|
|
282
|
+
if (!onGetHelpArticleRef.current) {
|
|
275
283
|
throw new Error('onGetHelpArticle prop not defined');
|
|
276
284
|
}
|
|
277
|
-
article = await
|
|
285
|
+
article = await onGetHelpArticleRef.current({
|
|
278
286
|
id: historyItem.id,
|
|
279
287
|
type: historyItem.type,
|
|
280
288
|
contentAri: historyItem.contentAri
|
|
281
289
|
});
|
|
282
290
|
break;
|
|
283
291
|
case ARTICLE_TYPE.WHATS_NEW:
|
|
284
|
-
if (!
|
|
292
|
+
if (!onGetWhatsNewArticleRef.current) {
|
|
285
293
|
throw new Error('onGetWhatsNewArticle prop not defined');
|
|
286
294
|
}
|
|
287
295
|
if (historyItem.id === '') {
|
|
288
296
|
break;
|
|
289
297
|
}
|
|
290
|
-
article = await
|
|
298
|
+
article = await onGetWhatsNewArticleRef.current({
|
|
291
299
|
id: historyItem.id,
|
|
292
300
|
type: historyItem.type
|
|
293
301
|
});
|
|
@@ -308,7 +316,8 @@ export const NavigationContextProvider = ({
|
|
|
308
316
|
state: REQUEST_STATE.error
|
|
309
317
|
};
|
|
310
318
|
}
|
|
311
|
-
}, [
|
|
319
|
+
}, [] // Empty dependency array since we use refs
|
|
320
|
+
);
|
|
312
321
|
const reloadArticle = useCallback(async historyItem => {
|
|
313
322
|
let historyItemToReload = {
|
|
314
323
|
...historyItem
|