@atlaskit/help 7.14.0 → 7.14.2
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 +14 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +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/index.js +20 -2
- package/dist/cjs/components/Article/styled.js +20 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/BackButton/index.js +83 -0
- package/dist/cjs/components/Help.js +1 -1
- package/dist/cjs/components/HelpContent.js +30 -9
- 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 +40 -3
- package/dist/cjs/components/Search/SearchInput/styled.js +15 -1
- package/dist/cjs/components/Search/SearchResults/index.js +45 -2
- package/dist/cjs/components/Search/SearchResults/styled.js +17 -1
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/constants.js +4 -2
- package/dist/cjs/components/contexts/navigationContext.js +5 -2
- package/dist/cjs/components/styled.js +34 -1
- package/dist/cjs/messages.js +5 -0
- 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 +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/index.js +29 -3
- package/dist/es2019/components/Article/styled.js +19 -0
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/BackButton/index.js +79 -0
- package/dist/es2019/components/Help.js +1 -1
- package/dist/es2019/components/HelpContent.js +31 -10
- 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 +41 -4
- package/dist/es2019/components/Search/SearchInput/styled.js +14 -0
- package/dist/es2019/components/Search/SearchResults/index.js +49 -3
- package/dist/es2019/components/Search/SearchResults/styled.js +16 -0
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/constants.js +3 -1
- package/dist/es2019/components/contexts/navigationContext.js +6 -2
- package/dist/es2019/components/styled.js +31 -0
- package/dist/es2019/messages.js +5 -0
- 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 +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/index.js +21 -3
- package/dist/esm/components/Article/styled.js +19 -0
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/BackButton/index.js +76 -0
- package/dist/esm/components/Help.js +1 -1
- package/dist/esm/components/HelpContent.js +31 -10
- 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 +41 -4
- package/dist/esm/components/Search/SearchInput/styled.js +14 -0
- package/dist/esm/components/Search/SearchResults/index.js +46 -3
- package/dist/esm/components/Search/SearchResults/styled.js +16 -0
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/constants.js +3 -1
- package/dist/esm/components/contexts/navigationContext.js +5 -2
- package/dist/esm/components/styled.js +33 -0
- package/dist/esm/messages.js +5 -0
- package/dist/types/components/Article/index.d.ts +5 -2
- package/dist/types/components/Article/styled.d.ts +4 -0
- package/dist/types/components/BackButton/index.d.ts +12 -0
- package/dist/types/components/Search/SearchInput/index.d.ts +6 -3
- package/dist/types/components/Search/SearchInput/styled.d.ts +4 -0
- package/dist/types/components/Search/SearchResults/index.d.ts +5 -2
- package/dist/types/components/Search/SearchResults/styled.d.ts +4 -0
- package/dist/types/components/constants.d.ts +1 -0
- package/dist/types/components/styled.d.ts +12 -0
- package/dist/types/messages.d.ts +5 -0
- package/dist/types-ts4.5/components/Article/index.d.ts +5 -2
- package/dist/types-ts4.5/components/Article/styled.d.ts +4 -0
- package/dist/types-ts4.5/components/BackButton/index.d.ts +12 -0
- package/dist/types-ts4.5/components/Search/SearchInput/index.d.ts +6 -3
- package/dist/types-ts4.5/components/Search/SearchInput/styled.d.ts +4 -0
- package/dist/types-ts4.5/components/Search/SearchResults/index.d.ts +5 -2
- package/dist/types-ts4.5/components/Search/SearchResults/styled.d.ts +4 -0
- package/dist/types-ts4.5/components/constants.d.ts +1 -0
- package/dist/types-ts4.5/components/styled.d.ts +12 -0
- package/dist/types-ts4.5/messages.d.ts +5 -0
- package/package.json +3 -3
|
@@ -19,6 +19,7 @@ import { useWhatsNewArticleContext } from './whatsNewArticleContext';
|
|
|
19
19
|
import { useHomeContext } from './homeContext';
|
|
20
20
|
import { useSearchContext } from './searchContext';
|
|
21
21
|
import { useHeaderContext } from './headerContext';
|
|
22
|
+
import { useAiContext } from './aiAgentContext';
|
|
22
23
|
var DEFAULT_ARTICLE_ID = {
|
|
23
24
|
id: '',
|
|
24
25
|
type: ARTICLE_TYPE.HELP_ARTICLE
|
|
@@ -224,6 +225,8 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
224
225
|
onCloseButtonClick = _useHeaderContext.onCloseButtonClick;
|
|
225
226
|
var propsArticleId = navigationData.articleId,
|
|
226
227
|
propsHistory = navigationData.history;
|
|
228
|
+
var _useAiContext = useAiContext(),
|
|
229
|
+
isAiEnabled = _useAiContext.isAiEnabled;
|
|
227
230
|
var _useReducer = useReducer(navigationReducer, {
|
|
228
231
|
articleId: propsArticleId,
|
|
229
232
|
history: !isEqual(propsArticleId, DEFAULT_ARTICLE_ID) && propsHistory.length === 0 ? [getNewHistoryItem(propsArticleId.id, propsArticleId.type, propsArticleId.contentAri)] : propsHistory,
|
|
@@ -246,7 +249,7 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
246
249
|
* - If default content isn't defined and the history only has one article,
|
|
247
250
|
* we should not display the back button
|
|
248
251
|
*/
|
|
249
|
-
if (currentHistory.length === 1 && !isDefaultContentDefined || currentView === VIEW.WHATS_NEW && !isDefaultContentDefined) {
|
|
252
|
+
if (currentHistory.length === 1 && !isDefaultContentDefined || currentView === VIEW.WHATS_NEW && !isDefaultContentDefined || isAiEnabled && currentView === VIEW.SEARCH) {
|
|
250
253
|
return false;
|
|
251
254
|
}
|
|
252
255
|
|
|
@@ -254,7 +257,7 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
254
257
|
* if an overlay is visible return true to display the back buton
|
|
255
258
|
*/
|
|
256
259
|
return isOverlayVisible;
|
|
257
|
-
}, [currentHistory.length, isDefaultContentDefined, isOverlayVisible, currentView]);
|
|
260
|
+
}, [currentHistory.length, isDefaultContentDefined, isOverlayVisible, currentView, isAiEnabled]);
|
|
258
261
|
var fetchArticleData = useCallback( /*#__PURE__*/function () {
|
|
259
262
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(historyItem) {
|
|
260
263
|
var article;
|
|
@@ -32,6 +32,16 @@ export var HelpBody = styled.div({
|
|
|
32
32
|
overflowX: 'hidden',
|
|
33
33
|
overflowY: 'auto'
|
|
34
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
|
+
export var HelpBodyAi = styled.div({
|
|
38
|
+
width: '100%',
|
|
39
|
+
boxSizing: 'border-box',
|
|
40
|
+
order: 0,
|
|
41
|
+
flex: '1 1 auto',
|
|
42
|
+
alignSelf: 'auto',
|
|
43
|
+
position: 'relative'
|
|
44
|
+
});
|
|
35
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
36
46
|
export var Home = styled.div(function (props) {
|
|
37
47
|
return {
|
|
@@ -45,6 +55,21 @@ export var Home = styled.div(function (props) {
|
|
|
45
55
|
};
|
|
46
56
|
});
|
|
47
57
|
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
59
|
+
export var HomeAi = styled.div(function (props) {
|
|
60
|
+
return {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
|
+
display: props.isOverlayFullyVisible ? 'none' : 'block',
|
|
63
|
+
// height: `calc(100% - ${token('space.800', '60px')})`,
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
|
+
overflow: props.isOverlayVisible ? 'hidden' : 'auto',
|
|
66
|
+
paddingLeft: "var(--ds-space-200, 16px)",
|
|
67
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
68
|
+
paddingBottom: "var(--ds-space-200, 16px)",
|
|
69
|
+
boxSizing: 'border-box'
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
|
|
48
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
49
74
|
export var HelpFooter = styled.div({
|
|
50
75
|
padding: "var(--ds-space-100, 8px)".concat(" 0"),
|
|
@@ -55,4 +80,12 @@ export var HelpFooter = styled.div({
|
|
|
55
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
56
81
|
borderTop: "var(--ds-space-025, 2px)".concat(" solid ", "var(--ds-border, ".concat(colors.N30, ")")),
|
|
57
82
|
justifyContent: 'space-between'
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
86
|
+
export var BackButtonContainer = styled.div({
|
|
87
|
+
position: 'absolute',
|
|
88
|
+
marginTop: "var(--ds-space-200, 14px)",
|
|
89
|
+
left: "var(--ds-space-100, 8px)",
|
|
90
|
+
height: "var(--ds-space-400, 32px)"
|
|
58
91
|
});
|
package/dist/esm/messages.js
CHANGED
|
@@ -259,5 +259,10 @@ export var messages = defineMessages({
|
|
|
259
259
|
id: 'help.show_more_button.label_less',
|
|
260
260
|
defaultMessage: 'Show less',
|
|
261
261
|
description: '"Show less" text'
|
|
262
|
+
},
|
|
263
|
+
help_panel_search_back: {
|
|
264
|
+
id: 'helpPanel.search.back',
|
|
265
|
+
defaultMessage: 'Back',
|
|
266
|
+
description: ''
|
|
262
267
|
}
|
|
263
268
|
});
|
|
@@ -7,3 +7,7 @@ export declare const ArticleContainer: import("@emotion/styled").StyledComponent
|
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const ArticleContainerAi: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
interface Props {
|
|
5
|
+
onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
6
|
+
isVisible?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const BackButton: React.FC<Props & WrappedComponentProps>;
|
|
9
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
10
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
interface SearchInputProps extends WrappedComponentProps {
|
|
8
|
+
isAiEnabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
11
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<SearchInputProps>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<SearchInputProps>;
|
|
10
13
|
};
|
|
11
14
|
export default _default;
|
|
@@ -3,6 +3,10 @@ export declare const SearchInputContainer: import("@emotion/styled").StyledCompo
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const SearchInputContainerAi: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
10
|
export declare const SearchIconContainer: import("@emotion/styled").StyledComponent<{
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchResultsProps {
|
|
3
|
+
isAiEnabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const SearchResults: React.FC<SearchResultsProps>;
|
|
3
6
|
export default SearchResults;
|
|
@@ -3,6 +3,10 @@ export declare const SearchResultsContainer: import("@emotion/styled").StyledCom
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const SearchResultsContainerAi: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
10
|
export declare const SearchResultsList: import("@emotion/styled").StyledComponent<{
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -12,3 +12,4 @@ export declare const SLIDEIN_OVERLAY_TRANSITION_DURATION_MS = 300;
|
|
|
12
12
|
export declare const FADEIN_OVERLAY_TRANSITION_DURATION_MS = 440;
|
|
13
13
|
export declare const HIDE_CONTENT_DELAY: number;
|
|
14
14
|
export type TransitionStatus = 'unmounted' | 'exiting' | 'entering' | 'entered' | 'exited';
|
|
15
|
+
export declare const TRANSITION_DURATION_MS = 220;
|
|
@@ -14,6 +14,10 @@ export declare const HelpBody: import("@emotion/styled").StyledComponent<{
|
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
15
|
as?: import("react").ElementType<any> | undefined;
|
|
16
16
|
} & HelpBodyProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
export declare const HelpBodyAi: import("@emotion/styled").StyledComponent<{
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
} & HelpBodyProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
21
|
type HomeProps = {
|
|
18
22
|
isOverlayFullyVisible?: boolean;
|
|
19
23
|
isOverlayVisible?: boolean;
|
|
@@ -22,8 +26,16 @@ export declare const Home: import("@emotion/styled").StyledComponent<{
|
|
|
22
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
27
|
as?: import("react").ElementType<any> | undefined;
|
|
24
28
|
} & HomeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
export declare const HomeAi: import("@emotion/styled").StyledComponent<{
|
|
30
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
31
|
+
as?: import("react").ElementType<any> | undefined;
|
|
32
|
+
} & HomeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
33
|
export declare const HelpFooter: import("@emotion/styled").StyledComponent<{
|
|
26
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
35
|
as?: import("react").ElementType<any> | undefined;
|
|
28
36
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
37
|
+
export declare const BackButtonContainer: import("@emotion/styled").StyledComponent<{
|
|
38
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
+
as?: import("react").ElementType<any> | undefined;
|
|
40
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
41
|
export {};
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -7,3 +7,7 @@ export declare const ArticleContainer: import("@emotion/styled").StyledComponent
|
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const ArticleContainerAi: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
interface Props {
|
|
5
|
+
onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
6
|
+
isVisible?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const BackButton: React.FC<Props & WrappedComponentProps>;
|
|
9
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
10
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
interface SearchInputProps extends WrappedComponentProps {
|
|
8
|
+
isAiEnabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
11
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<SearchInputProps>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<SearchInputProps>;
|
|
10
13
|
};
|
|
11
14
|
export default _default;
|
|
@@ -3,6 +3,10 @@ export declare const SearchInputContainer: import("@emotion/styled").StyledCompo
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const SearchInputContainerAi: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
10
|
export declare const SearchIconContainer: import("@emotion/styled").StyledComponent<{
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchResultsProps {
|
|
3
|
+
isAiEnabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const SearchResults: React.FC<SearchResultsProps>;
|
|
3
6
|
export default SearchResults;
|
|
@@ -3,6 +3,10 @@ export declare const SearchResultsContainer: import("@emotion/styled").StyledCom
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const SearchResultsContainerAi: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
10
|
export declare const SearchResultsList: import("@emotion/styled").StyledComponent<{
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -12,3 +12,4 @@ export declare const SLIDEIN_OVERLAY_TRANSITION_DURATION_MS = 300;
|
|
|
12
12
|
export declare const FADEIN_OVERLAY_TRANSITION_DURATION_MS = 440;
|
|
13
13
|
export declare const HIDE_CONTENT_DELAY: number;
|
|
14
14
|
export type TransitionStatus = 'unmounted' | 'exiting' | 'entering' | 'entered' | 'exited';
|
|
15
|
+
export declare const TRANSITION_DURATION_MS = 220;
|
|
@@ -14,6 +14,10 @@ export declare const HelpBody: import("@emotion/styled").StyledComponent<{
|
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
15
|
as?: import("react").ElementType<any> | undefined;
|
|
16
16
|
} & HelpBodyProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
export declare const HelpBodyAi: import("@emotion/styled").StyledComponent<{
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
} & HelpBodyProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
21
|
type HomeProps = {
|
|
18
22
|
isOverlayFullyVisible?: boolean;
|
|
19
23
|
isOverlayVisible?: boolean;
|
|
@@ -22,8 +26,16 @@ export declare const Home: import("@emotion/styled").StyledComponent<{
|
|
|
22
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
27
|
as?: import("react").ElementType<any> | undefined;
|
|
24
28
|
} & HomeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
export declare const HomeAi: import("@emotion/styled").StyledComponent<{
|
|
30
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
31
|
+
as?: import("react").ElementType<any> | undefined;
|
|
32
|
+
} & HomeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
33
|
export declare const HelpFooter: import("@emotion/styled").StyledComponent<{
|
|
26
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
35
|
as?: import("react").ElementType<any> | undefined;
|
|
28
36
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
37
|
+
export declare const BackButtonContainer: import("@emotion/styled").StyledComponent<{
|
|
38
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
+
as?: import("react").ElementType<any> | undefined;
|
|
40
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
41
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "7.14.
|
|
3
|
+
"version": "7.14.2",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@atlaskit/heading": "^4.1.0",
|
|
43
43
|
"@atlaskit/help-article": "^4.4.0",
|
|
44
44
|
"@atlaskit/help-layout": "^4.5.0",
|
|
45
|
-
"@atlaskit/icon": "^23.
|
|
45
|
+
"@atlaskit/icon": "^23.6.0",
|
|
46
46
|
"@atlaskit/legacy-custom-icons": "^0.21.0",
|
|
47
47
|
"@atlaskit/notification-indicator": "^9.5.0",
|
|
48
48
|
"@atlaskit/notification-log-client": "^6.2.0",
|
|
49
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
49
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
50
50
|
"@atlaskit/primitives": "^13.4.0",
|
|
51
51
|
"@atlaskit/radio": "^7.2.0",
|
|
52
52
|
"@atlaskit/section-message": "^6.9.0",
|