@atlaskit/help 9.2.1 → 9.2.3
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 +16 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-products/tsconfig.json +0 -3
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/assets/IconWrapper.js +0 -2
- package/dist/cjs/assets/WhatsNewIcoExperiment.js +0 -2
- package/dist/cjs/assets/WhatsNewIconFix.js +0 -2
- package/dist/cjs/assets/WhatsNewIconImprovement.js +0 -2
- package/dist/cjs/assets/WhatsNewIconNew.js +0 -2
- package/dist/cjs/assets/WhatsNewIconRemoved.js +0 -2
- 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 +3 -3
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +4 -4
- package/dist/cjs/components/Article/WhatsNewArticle/styled.compiled.css +4 -13
- package/dist/cjs/components/Article/WhatsNewArticle/styled.js +8 -17
- package/dist/cjs/components/ArticlesList/ArticlesList.js +6 -2
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +18 -12
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +5 -3
- package/dist/cjs/components/ArticlesList/index.js +22 -1
- package/dist/cjs/components/BackButton/index.js +2 -2
- package/dist/cjs/components/HelpContentButton/index.js +4 -4
- package/dist/cjs/components/NeedMoreHelp/index.js +1 -1
- package/dist/cjs/components/RelatedArticles/index.js +1 -1
- package/dist/cjs/components/Search/SearchInput/index.js +3 -3
- package/dist/cjs/components/Search/SearchResults/SearchExternalSite.js +2 -2
- package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +2 -2
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +2 -2
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/contexts/navigationContext.js +57 -25
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/assets/IconWrapper.js +0 -2
- package/dist/es2019/assets/WhatsNewIcoExperiment.js +0 -2
- package/dist/es2019/assets/WhatsNewIconFix.js +0 -2
- package/dist/es2019/assets/WhatsNewIconImprovement.js +0 -2
- package/dist/es2019/assets/WhatsNewIconNew.js +0 -2
- package/dist/es2019/assets/WhatsNewIconRemoved.js +0 -2
- 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 +2 -2
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +2 -2
- package/dist/es2019/components/Article/WhatsNewArticle/styled.compiled.css +4 -12
- package/dist/es2019/components/Article/WhatsNewArticle/styled.js +8 -12
- package/dist/es2019/components/ArticlesList/ArticlesList.js +6 -2
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +17 -11
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +4 -3
- package/dist/es2019/components/ArticlesList/index.js +23 -2
- package/dist/es2019/components/BackButton/index.js +2 -2
- package/dist/es2019/components/HelpContentButton/index.js +3 -3
- package/dist/es2019/components/NeedMoreHelp/index.js +1 -1
- package/dist/es2019/components/RelatedArticles/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/index.js +2 -2
- package/dist/es2019/components/Search/SearchResults/SearchExternalSite.js +1 -1
- package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +2 -2
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/contexts/navigationContext.js +33 -4
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/assets/IconWrapper.js +0 -2
- package/dist/esm/assets/WhatsNewIcoExperiment.js +0 -2
- package/dist/esm/assets/WhatsNewIconFix.js +0 -2
- package/dist/esm/assets/WhatsNewIconImprovement.js +0 -2
- package/dist/esm/assets/WhatsNewIconNew.js +0 -2
- package/dist/esm/assets/WhatsNewIconRemoved.js +0 -2
- 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 +2 -2
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +2 -2
- package/dist/esm/components/Article/WhatsNewArticle/styled.compiled.css +4 -13
- package/dist/esm/components/Article/WhatsNewArticle/styled.js +8 -17
- package/dist/esm/components/ArticlesList/ArticlesList.js +6 -2
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +16 -10
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +5 -3
- package/dist/esm/components/ArticlesList/index.js +23 -2
- package/dist/esm/components/BackButton/index.js +2 -2
- package/dist/esm/components/HelpContentButton/index.js +3 -3
- package/dist/esm/components/NeedMoreHelp/index.js +1 -1
- package/dist/esm/components/RelatedArticles/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/index.js +2 -2
- package/dist/esm/components/Search/SearchResults/SearchExternalSite.js +1 -1
- package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +2 -2
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/contexts/navigationContext.js +57 -25
- package/dist/types/assets/IconWrapper.d.ts +3 -4
- package/dist/types/components/ArticlesList/ArticlesList.d.ts +1 -0
- package/dist/types/components/ArticlesList/ArticlesListItem/index.d.ts +4 -4
- package/dist/types/components/ArticlesList/ArticlesListItem/styled.d.ts +2 -2
- package/dist/types-ts4.5/assets/IconWrapper.d.ts +3 -4
- package/dist/types-ts4.5/components/ArticlesList/ArticlesList.d.ts +1 -0
- package/dist/types-ts4.5/components/ArticlesList/ArticlesListItem/index.d.ts +4 -4
- package/dist/types-ts4.5/components/ArticlesList/ArticlesListItem/styled.d.ts +2 -2
- package/package.json +10 -11
|
@@ -7,7 +7,7 @@ import Textfield from '@atlaskit/textfield';
|
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import Spinner from '@atlaskit/spinner';
|
|
9
9
|
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
10
|
-
import EditorCloseIcon from '@atlaskit/icon/core/
|
|
10
|
+
import EditorCloseIcon from '@atlaskit/icon/core/cross';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import { REQUEST_STATE } from '../../../model/Requests';
|
|
13
13
|
import { useSearchContext } from '../../contexts/searchContext';
|
|
@@ -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: "0.0.0-development"
|
|
22
22
|
};
|
|
23
23
|
var buttonStyles = null;
|
|
24
24
|
export var SearchInput = function SearchInput(_ref) {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
|
-
import ShortcutIcon from '@atlaskit/icon/core/
|
|
5
|
+
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { messages } from '../../../messages';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
|
-
import ShortcutIcon from '@atlaskit/icon/core/
|
|
5
|
+
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import NotFoundImage from '../../../assets/NotFoundImage';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
-
import LightbulbIcon from '@atlaskit/icon/core/
|
|
4
|
+
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
6
|
import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
|
|
7
7
|
import { useNavigationContext } from '../../contexts/navigationContext';
|
|
@@ -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: "0.0.0-development"
|
|
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: "0.0.0-development"
|
|
12
12
|
};
|
|
13
13
|
export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
14
14
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -92,14 +92,14 @@ var getCurrentArticleItemSlim = function getCurrentArticleItemSlim(history) {
|
|
|
92
92
|
if (article) {
|
|
93
93
|
if (type === ARTICLE_TYPE.HELP_ARTICLE) {
|
|
94
94
|
var _ref = article,
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
_body = _ref.body,
|
|
96
|
+
_relatedArticles = _ref.relatedArticles,
|
|
97
97
|
articleItemData = _objectWithoutProperties(_ref, _excluded);
|
|
98
98
|
var currentArticleSlimData = articleItemData;
|
|
99
99
|
return currentArticleSlimData;
|
|
100
100
|
} else if (type === ARTICLE_TYPE.WHATS_NEW) {
|
|
101
101
|
var _ref2 = article,
|
|
102
|
-
|
|
102
|
+
_description = _ref2.description,
|
|
103
103
|
whatsNewArticleItemData = _objectWithoutProperties(_ref2, _excluded2);
|
|
104
104
|
var currentWhatsNewArticleSlimData = whatsNewArticleItemData;
|
|
105
105
|
return currentWhatsNewArticleSlimData;
|
|
@@ -265,6 +265,9 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
265
265
|
var onGetHelpArticleRef = useRef(onGetHelpArticle);
|
|
266
266
|
var onGetWhatsNewArticleRef = useRef(onGetWhatsNewArticle);
|
|
267
267
|
|
|
268
|
+
// Ref to store triggering elements for focus restoration on navigate back
|
|
269
|
+
var triggerElementsRef = useRef([]);
|
|
270
|
+
|
|
268
271
|
// Update refs when functions change
|
|
269
272
|
onGetHelpArticleRef.current = onGetHelpArticle;
|
|
270
273
|
onGetWhatsNewArticleRef.current = onGetWhatsNewArticle;
|
|
@@ -367,7 +370,7 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
367
370
|
};
|
|
368
371
|
}(), []);
|
|
369
372
|
var navigateBack = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
370
|
-
var _searchResult$length;
|
|
373
|
+
var triggerElement, _searchResult$length, timeoutId;
|
|
371
374
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
372
375
|
while (1) switch (_context3.prev = _context3.next) {
|
|
373
376
|
case 0:
|
|
@@ -388,31 +391,48 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
388
391
|
});
|
|
389
392
|
return _context3.abrupt("return");
|
|
390
393
|
case 8:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
394
|
+
if (!(currentHistory.length > 0)) {
|
|
395
|
+
_context3.next = 14;
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
// Pop the trigger element before navigating back
|
|
399
|
+
triggerElement = triggerElementsRef.current.pop(); // the history has more than one article, navigate back through the history
|
|
400
|
+
if (currentHistory.length > 1) {
|
|
401
|
+
// Remove last element
|
|
402
|
+
dispatchNavigationAction({
|
|
403
|
+
type: 'removeLastHistoryItem'
|
|
404
|
+
});
|
|
405
|
+
} else if (currentHistory.length === 1) {
|
|
406
|
+
// If the search value is not empty and search result is not empty, show the search results
|
|
407
|
+
if (searchValue !== '' && ((_searchResult$length = searchResult === null || searchResult === void 0 ? void 0 : searchResult.length) !== null && _searchResult$length !== void 0 ? _searchResult$length : 0) > 0 && onSearch !== undefined) {
|
|
408
|
+
dispatchNavigationAction({
|
|
409
|
+
type: 'updateView',
|
|
410
|
+
payload: VIEW.SEARCH
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
// If the search value is empty, show the default content
|
|
414
|
+
else {
|
|
396
415
|
dispatchNavigationAction({
|
|
397
|
-
type: '
|
|
416
|
+
type: 'removeAllHistoryItems'
|
|
398
417
|
});
|
|
399
|
-
} else if (currentHistory.length === 1) {
|
|
400
|
-
// If the search value is not empty and search result is not empty, show the search results
|
|
401
|
-
if (searchValue !== '' && ((_searchResult$length = searchResult === null || searchResult === void 0 ? void 0 : searchResult.length) !== null && _searchResult$length !== void 0 ? _searchResult$length : 0) > 0 && onSearch !== undefined) {
|
|
402
|
-
dispatchNavigationAction({
|
|
403
|
-
type: 'updateView',
|
|
404
|
-
payload: VIEW.SEARCH
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
// If the search value is empty, show the default content
|
|
408
|
-
else {
|
|
409
|
-
dispatchNavigationAction({
|
|
410
|
-
type: 'removeAllHistoryItems'
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
418
|
}
|
|
414
419
|
}
|
|
415
|
-
|
|
420
|
+
|
|
421
|
+
// Restore focus to the element that triggered the navigation
|
|
422
|
+
if (!triggerElement) {
|
|
423
|
+
_context3.next = 14;
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
// Wait for slide-out animation to complete (300ms) plus a buffer
|
|
427
|
+
timeoutId = setTimeout(function () {
|
|
428
|
+
if (document.body.contains(triggerElement)) {
|
|
429
|
+
triggerElement.focus();
|
|
430
|
+
}
|
|
431
|
+
}, 400); // Increased from 350ms to 400ms
|
|
432
|
+
return _context3.abrupt("return", function () {
|
|
433
|
+
return clearTimeout(timeoutId);
|
|
434
|
+
});
|
|
435
|
+
case 14:
|
|
416
436
|
case "end":
|
|
417
437
|
return _context3.stop();
|
|
418
438
|
}
|
|
@@ -420,6 +440,8 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
420
440
|
})), [currentView, searchValue, currentArticleId, currentHistory, onSearch, searchResult === null || searchResult === void 0 ? void 0 : searchResult.length]);
|
|
421
441
|
var onClose = useCallback(function (event, analyticsEvent) {
|
|
422
442
|
if (onCloseButtonClick) {
|
|
443
|
+
// Clear trigger elements stack when closing
|
|
444
|
+
triggerElementsRef.current = [];
|
|
423
445
|
dispatchNavigationAction({
|
|
424
446
|
type: 'removeAllHistoryItems'
|
|
425
447
|
});
|
|
@@ -427,6 +449,11 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
427
449
|
}
|
|
428
450
|
}, [onCloseButtonClick]);
|
|
429
451
|
var onOpenArticle = useCallback(function (newArticleId) {
|
|
452
|
+
// Capture the currently focused element before opening article
|
|
453
|
+
var triggerElement = document.activeElement;
|
|
454
|
+
if (triggerElement && triggerElement !== document.body) {
|
|
455
|
+
triggerElementsRef.current.push(triggerElement);
|
|
456
|
+
}
|
|
430
457
|
dispatchNavigationAction({
|
|
431
458
|
type: 'addNewHistoryItem',
|
|
432
459
|
payload: newArticleId
|
|
@@ -466,7 +493,12 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
466
493
|
} else {
|
|
467
494
|
/**
|
|
468
495
|
* Otherwise we need to add a new article
|
|
496
|
+
* Capture the focused element for focus restoration when navigating back
|
|
469
497
|
*/
|
|
498
|
+
var triggerElement = document.activeElement;
|
|
499
|
+
if (triggerElement && triggerElement !== document.body && propsArticleId.id !== '') {
|
|
500
|
+
triggerElementsRef.current.push(triggerElement);
|
|
501
|
+
}
|
|
470
502
|
dispatchNavigationAction({
|
|
471
503
|
type: 'newArticle',
|
|
472
504
|
payload: propsArticleId
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type NewCoreIconProps } from '@atlaskit/icon';
|
|
3
3
|
type IconWrapperProps = {
|
|
4
4
|
appearance: string;
|
|
5
|
-
Icon:
|
|
6
|
-
LegacyIcon: ({ label, primaryColor, secondaryColor, size, testId }: IconProps) => JSX.Element;
|
|
5
|
+
Icon: (props: NewCoreIconProps) => JSX.Element;
|
|
7
6
|
};
|
|
8
|
-
export declare const IconWrapper: ({ Icon,
|
|
7
|
+
export declare const IconWrapper: ({ Icon, appearance }: IconWrapperProps) => React.JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ArticlesList as ArticlesListInterface } from './model/ArticlesListItem';
|
|
3
3
|
export interface Props {
|
|
4
|
+
firstExpandedArticleRef?: (element: HTMLAnchorElement | null) => void;
|
|
4
5
|
numberOfArticlesToDisplay?: number;
|
|
5
6
|
}
|
|
6
7
|
declare const articlesList: React.FC<Partial<ArticlesListInterface> & Props>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { type
|
|
3
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { type ArticleItem } from '../../../model/Article';
|
|
5
5
|
interface Props {
|
|
6
6
|
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
7
7
|
styles?: {};
|
|
8
8
|
}
|
|
9
|
-
export declare const ArticlesListItem: React.
|
|
10
|
-
declare const _default_1: React.
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps
|
|
9
|
+
export declare const ArticlesListItem: React.ForwardRefExoticComponent<Props & Partial<ArticleItem> & WrappedComponentProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const _default_1: React.ForwardRefExoticComponent<Omit<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & Partial<ArticleItem> & WrappedComponentProps & React.RefAttributes<HTMLAnchorElement>>>, "ref"> & React.RefAttributes<any>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
};
|
|
13
13
|
export default _default_1;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
export declare const ArticlesListItemWrapper:
|
|
6
|
+
export declare const ArticlesListItemWrapper: React.ForwardRefExoticComponent<Omit<{
|
|
7
7
|
[rest: string]: any;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
styles?: React.CSSProperties;
|
|
10
|
-
}
|
|
10
|
+
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
export declare const ArticlesListItemContainer: ({ children, }: {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
}) => JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type NewCoreIconProps } from '@atlaskit/icon';
|
|
3
3
|
type IconWrapperProps = {
|
|
4
4
|
appearance: string;
|
|
5
|
-
Icon:
|
|
6
|
-
LegacyIcon: ({ label, primaryColor, secondaryColor, size, testId }: IconProps) => JSX.Element;
|
|
5
|
+
Icon: (props: NewCoreIconProps) => JSX.Element;
|
|
7
6
|
};
|
|
8
|
-
export declare const IconWrapper: ({ Icon,
|
|
7
|
+
export declare const IconWrapper: ({ Icon, appearance }: IconWrapperProps) => React.JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ArticlesList as ArticlesListInterface } from './model/ArticlesListItem';
|
|
3
3
|
export interface Props {
|
|
4
|
+
firstExpandedArticleRef?: (element: HTMLAnchorElement | null) => void;
|
|
4
5
|
numberOfArticlesToDisplay?: number;
|
|
5
6
|
}
|
|
6
7
|
declare const articlesList: React.FC<Partial<ArticlesListInterface> & Props>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { type
|
|
3
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { type ArticleItem } from '../../../model/Article';
|
|
5
5
|
interface Props {
|
|
6
6
|
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
7
7
|
styles?: {};
|
|
8
8
|
}
|
|
9
|
-
export declare const ArticlesListItem: React.
|
|
10
|
-
declare const _default_1: React.
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps
|
|
9
|
+
export declare const ArticlesListItem: React.ForwardRefExoticComponent<Props & Partial<ArticleItem> & WrappedComponentProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const _default_1: React.ForwardRefExoticComponent<Omit<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & Partial<ArticleItem> & WrappedComponentProps & React.RefAttributes<HTMLAnchorElement>>>, "ref"> & React.RefAttributes<any>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & Partial<ArticleItem> & WrappedComponentProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
};
|
|
13
13
|
export default _default_1;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
export declare const ArticlesListItemWrapper:
|
|
6
|
+
export declare const ArticlesListItemWrapper: React.ForwardRefExoticComponent<Omit<{
|
|
7
7
|
[rest: string]: any;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
styles?: React.CSSProperties;
|
|
10
|
-
}
|
|
10
|
+
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
export declare const ArticlesListItemContainer: ({ children, }: {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
}) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.3",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,26 +32,25 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
|
-
"@atlaskit/button": "^23.
|
|
35
|
+
"@atlaskit/button": "^23.9.0",
|
|
36
36
|
"@atlaskit/checkbox": "^17.2.0",
|
|
37
|
-
"@atlaskit/form": "^15.
|
|
37
|
+
"@atlaskit/form": "^15.2.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
|
-
"@atlaskit/icon": "^29.
|
|
42
|
-
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
41
|
+
"@atlaskit/icon": "^29.3.0",
|
|
43
42
|
"@atlaskit/notification-indicator": "^10.0.0",
|
|
44
|
-
"@atlaskit/notification-log-client": "^6.
|
|
43
|
+
"@atlaskit/notification-log-client": "^6.4.0",
|
|
45
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/primitives": "^
|
|
45
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
47
46
|
"@atlaskit/radio": "^8.3.0",
|
|
48
|
-
"@atlaskit/section-message": "^8.
|
|
49
|
-
"@atlaskit/select": "^21.
|
|
47
|
+
"@atlaskit/section-message": "^8.11.0",
|
|
48
|
+
"@atlaskit/select": "^21.6.0",
|
|
50
49
|
"@atlaskit/spinner": "^19.0.0",
|
|
51
50
|
"@atlaskit/textarea": "^8.2.0",
|
|
52
51
|
"@atlaskit/textfield": "^8.2.0",
|
|
53
52
|
"@atlaskit/theme": "^21.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^
|
|
53
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
55
54
|
"@atlaskit/tooltip": "^20.11.0",
|
|
56
55
|
"@babel/runtime": "^7.0.0",
|
|
57
56
|
"@compiled/react": "^0.18.6",
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
67
66
|
},
|
|
68
67
|
"devDependencies": {
|
|
69
|
-
"@testing-library/react": "^
|
|
68
|
+
"@testing-library/react": "^16.3.0",
|
|
70
69
|
"@types/react-transition-group": "^2.0.6",
|
|
71
70
|
"algoliasearch": "^3.35.1",
|
|
72
71
|
"enzyme": "^3.10.0",
|