@atlaskit/help 7.2.0 → 7.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/dist/cjs/components/Article/ArticleLoadingFail/styled.js +2 -3
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +2 -0
- package/dist/cjs/components/Search/SearchResults/styled.js +5 -6
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +2 -3
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +2 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +2 -3
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +2 -0
- package/dist/es2019/components/Search/SearchResults/styled.js +7 -6
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +4 -3
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +4 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/styled.js +2 -3
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +2 -0
- package/dist/esm/components/Search/SearchResults/styled.js +5 -6
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +2 -3
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +2 -3
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/analytics.d.ts +10 -0
- package/dist/types-ts4.0/assets/ErrorImage.d.ts +3 -0
- package/dist/types-ts4.0/assets/NotFoundImage.d.ts +3 -0
- package/dist/types-ts4.0/assets/SomethingWrongImage.d.ts +3 -0
- package/dist/types-ts4.0/assets/WhatsNewIcoExperiment.d.ts +2 -0
- package/dist/types-ts4.0/assets/WhatsNewIcoExperiment.svg +5 -0
- package/dist/types-ts4.0/assets/WhatsNewIconFix.d.ts +2 -0
- package/dist/types-ts4.0/assets/WhatsNewIconFix.svg +5 -0
- package/dist/types-ts4.0/assets/WhatsNewIconImprovement.d.ts +2 -0
- package/dist/types-ts4.0/assets/WhatsNewIconImprovement.svg +3 -0
- package/dist/types-ts4.0/assets/WhatsNewIconNew.d.ts +2 -0
- package/dist/types-ts4.0/assets/WhatsNewIconNew.svg +3 -0
- package/dist/types-ts4.0/assets/WhatsNewIconRemoved.d.ts +2 -0
- package/dist/types-ts4.0/assets/WhatsNewIconRemoved.svg +3 -0
- package/dist/types-ts4.0/components/Article/ArticleContent/index.d.ts +10 -0
- package/dist/types-ts4.0/components/Article/ArticleLoadingFail/index.d.ts +11 -0
- package/dist/types-ts4.0/components/Article/ArticleLoadingFail/styled.d.ts +3 -0
- package/dist/types-ts4.0/components/Article/HelpArticle/Loading/index.d.ts +7 -0
- package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +12 -0
- package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +12 -0
- package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +14 -0
- package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/styled.d.ts +5 -0
- package/dist/types-ts4.0/components/Article/HelpArticle/index.d.ts +8 -0
- package/dist/types-ts4.0/components/Article/WhatsNewArticle/Loading/index.d.ts +7 -0
- package/dist/types-ts4.0/components/Article/WhatsNewArticle/index.d.ts +12 -0
- package/dist/types-ts4.0/components/Article/WhatsNewArticle/styled.d.ts +7 -0
- package/dist/types-ts4.0/components/Article/index.d.ts +3 -0
- package/dist/types-ts4.0/components/Article/styled.d.ts +3 -0
- package/dist/types-ts4.0/components/ArticlesList/ArticlesList.d.ts +7 -0
- package/dist/types-ts4.0/components/ArticlesList/ArticlesListItem/index.d.ts +13 -0
- package/dist/types-ts4.0/components/ArticlesList/ArticlesListItem/styled.d.ts +11 -0
- package/dist/types-ts4.0/components/ArticlesList/constants.d.ts +2 -0
- package/dist/types-ts4.0/components/ArticlesList/index.d.ts +4 -0
- package/dist/types-ts4.0/components/ArticlesList/model/ArticlesListItem.d.ts +11 -0
- package/dist/types-ts4.0/components/ArticlesList/styled.d.ts +5 -0
- package/dist/types-ts4.0/components/Help.d.ts +9 -0
- package/dist/types-ts4.0/components/HelpContent.d.ts +6 -0
- package/dist/types-ts4.0/components/HelpContentButton/index.d.ts +15 -0
- package/dist/types-ts4.0/components/HelpContentButton/styled.d.ts +7 -0
- package/dist/types-ts4.0/components/RelatedArticles/RelatedArticlesLoading.d.ts +6 -0
- package/dist/types-ts4.0/components/RelatedArticles/index.d.ts +19 -0
- package/dist/types-ts4.0/components/RelatedArticles/styled.d.ts +10 -0
- package/dist/types-ts4.0/components/Search/SearchInput/index.d.ts +7 -0
- package/dist/types-ts4.0/components/Search/SearchInput/styled.d.ts +4 -0
- package/dist/types-ts4.0/components/Search/SearchResults/SearchExternalSite.d.ts +12 -0
- package/dist/types-ts4.0/components/Search/SearchResults/SearchResults.d.ts +9 -0
- package/dist/types-ts4.0/components/Search/SearchResults/SearchResultsEmpty.d.ts +12 -0
- package/dist/types-ts4.0/components/Search/SearchResults/SearchResultsError.d.ts +10 -0
- package/dist/types-ts4.0/components/Search/SearchResults/index.d.ts +3 -0
- package/dist/types-ts4.0/components/Search/SearchResults/styled.d.ts +6 -0
- package/dist/types-ts4.0/components/ShowMoreButton/index.d.ts +16 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewButton/index.d.ts +10 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +10 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.d.ts +3 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +11 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.d.ts +3 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +13 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.d.ts +9 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.d.ts +7 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.d.ts +4 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/model/WhatsNewResultsList.d.ts +12 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.d.ts +7 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +7 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts +6 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/index.d.ts +7 -0
- package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/styled.d.ts +5 -0
- package/dist/types-ts4.0/components/constants.d.ts +20 -0
- package/dist/types-ts4.0/components/contexts/headerContext.d.ts +9 -0
- package/dist/types-ts4.0/components/contexts/helpArticleContext.d.ts +13 -0
- package/dist/types-ts4.0/components/contexts/homeContext.d.ts +8 -0
- package/dist/types-ts4.0/components/contexts/navigationContext.d.ts +36 -0
- package/dist/types-ts4.0/components/contexts/relatedArticlesContext.d.ts +12 -0
- package/dist/types-ts4.0/components/contexts/searchContext.d.ts +25 -0
- package/dist/types-ts4.0/components/contexts/whatsNewArticleContext.d.ts +26 -0
- package/dist/types-ts4.0/components/styled.d.ts +13 -0
- package/dist/types-ts4.0/i18n/cs.d.ts +2 -0
- package/dist/types-ts4.0/i18n/da.d.ts +2 -0
- package/dist/types-ts4.0/i18n/de.d.ts +2 -0
- package/dist/types-ts4.0/i18n/en.d.ts +2 -0
- package/dist/types-ts4.0/i18n/en_GB.d.ts +2 -0
- package/dist/types-ts4.0/i18n/es.d.ts +4 -0
- package/dist/types-ts4.0/i18n/et.d.ts +2 -0
- package/dist/types-ts4.0/i18n/fi.d.ts +2 -0
- package/dist/types-ts4.0/i18n/fr.d.ts +2 -0
- package/dist/types-ts4.0/i18n/hu.d.ts +2 -0
- package/dist/types-ts4.0/i18n/index.d.ts +24 -0
- package/dist/types-ts4.0/i18n/is.d.ts +2 -0
- package/dist/types-ts4.0/i18n/it.d.ts +2 -0
- package/dist/types-ts4.0/i18n/ja.d.ts +2 -0
- package/dist/types-ts4.0/i18n/ko.d.ts +2 -0
- package/dist/types-ts4.0/i18n/languages.d.ts +27 -0
- package/dist/types-ts4.0/i18n/nb.d.ts +2 -0
- package/dist/types-ts4.0/i18n/nl.d.ts +2 -0
- package/dist/types-ts4.0/i18n/pl.d.ts +2 -0
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +2 -0
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +2 -0
- package/dist/types-ts4.0/i18n/ro.d.ts +2 -0
- package/dist/types-ts4.0/i18n/ru.d.ts +2 -0
- package/dist/types-ts4.0/i18n/sk.d.ts +2 -0
- package/dist/types-ts4.0/i18n/sv.d.ts +2 -0
- package/dist/types-ts4.0/i18n/zh.d.ts +2 -0
- package/dist/types-ts4.0/index.d.ts +11 -0
- package/dist/types-ts4.0/messages.d.ts +262 -0
- package/dist/types-ts4.0/model/Article.d.ts +30 -0
- package/dist/types-ts4.0/model/Help.d.ts +74 -0
- package/dist/types-ts4.0/model/Requests.d.ts +7 -0
- package/dist/types-ts4.0/model/WhatsNew.d.ts +29 -0
- package/dist/types-ts4.0/util/hooks/cancellablePromise.d.ts +7 -0
- package/dist/types-ts4.0/util/hooks/ctx.d.ts +5 -0
- package/dist/types-ts4.0/util/hooks/previous.d.ts +1 -0
- package/dist/types-ts4.0/util/i18n-util.d.ts +17 -0
- package/dist/types-ts4.0/util/index.d.ts +8 -0
- package/dist/types-ts4.0/util/styled.d.ts +29 -0
- package/dist/types-ts4.0/util/testing/mock.d.ts +8 -0
- package/package.json +3 -2
- package/tmp/api-report-tmp.d.ts +300 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
3
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
export declare type Props = {
|
|
5
|
+
id?: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
notificationMax?: number;
|
|
8
|
+
notificationLogProvider?: Promise<NotificationLogProvider>;
|
|
9
|
+
text: string;
|
|
10
|
+
icon?: React.ReactChild;
|
|
11
|
+
tooltipText?: string;
|
|
12
|
+
onClick?: (id: string, analytics: UIAnalyticsEvent, event: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const HelpContentButton: ({ id, href, notificationMax, notificationLogProvider, text, icon, onClick, tooltipText, }: Props) => JSX.Element;
|
|
15
|
+
export default HelpContentButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
export declare const HelpContentButtonContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement>, any, import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
4
|
+
export declare const HelpContentButtonIcon: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const HelpContentButtonText: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const HelpContentButtonExternalLinkIcon: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const HelpContentButtonExternalNotificationIcon: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
|
|
4
|
+
WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import { ArticleItem } from '../../model/Article';
|
|
5
|
+
export interface Props {
|
|
6
|
+
style?: 'primary' | 'secondary';
|
|
7
|
+
routeGroup?: string;
|
|
8
|
+
routeName?: string;
|
|
9
|
+
onGetRelatedArticles?(routeGroup?: string, routeName?: string): Promise<ArticleItem[]>;
|
|
10
|
+
onRelatedArticlesListItemClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem) => void;
|
|
11
|
+
onRelatedArticlesShowMoreClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent, isCollapsed: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const RelatedArticles: React.FC<Props & WrappedComponentProps>;
|
|
14
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps<"intl">, "intl"> & {
|
|
15
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
export declare const truncate: (width?: string) => import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const RelatedArticlesTitle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
5
|
+
/**
|
|
6
|
+
* Loading styled-components
|
|
7
|
+
*/
|
|
8
|
+
export declare const LoadignRelatedArticleSection: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
9
|
+
export declare const LoadignRelatedArticleList: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, Pick<import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement>, keyof import("react").HTMLAttributes<HTMLUListElement>>, object>;
|
|
10
|
+
export declare const LoadignRelatedArticleListItem: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, Pick<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, keyof import("react").LiHTMLAttributes<HTMLLIElement>>, object>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
export declare const SearchInput: React.FC<WrappedComponentProps>;
|
|
4
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SearchInputContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const SearchIconContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
4
|
+
export declare const CloseButtonAndSpinnerContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
export interface Props {
|
|
5
|
+
searchExternalUrl?: string;
|
|
6
|
+
onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchExternalSite: React.FC<Props & WrappedComponentProps>;
|
|
9
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
10
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { ArticleItem } from '../../../model/Article';
|
|
4
|
+
export interface Props {
|
|
5
|
+
searchResult?: ArticleItem[] | null;
|
|
6
|
+
onSearchResultItemClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchResults: React.FC<Props>;
|
|
9
|
+
export default SearchResults;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
export interface Props {
|
|
5
|
+
searchExternalUrl?: string;
|
|
6
|
+
onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchResultsEmpty: React.FC<Props & WrappedComponentProps>;
|
|
9
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
10
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
export interface Props {
|
|
4
|
+
onSearch?(value?: string): void;
|
|
5
|
+
}
|
|
6
|
+
export declare const SearchResultsError: React.FC<Props & WrappedComponentProps>;
|
|
7
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
8
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SearchResultsContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const SearchResultsList: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
4
|
+
export declare const SearchResultEmptyMessageImage: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
5
|
+
export declare const SearchResultEmptyMessageText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
6
|
+
export declare const SearchResultSearchExternalSiteContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
export interface Props {
|
|
5
|
+
itemsType?: string;
|
|
6
|
+
minItemsToDisplay: number;
|
|
7
|
+
maxItemsToDisplay: number;
|
|
8
|
+
showMoreToggeled: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
onToggle: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ShowMoreButton: React.FC<Props & WrappedComponentProps>;
|
|
13
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
14
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
interface WhatsNewButtonProps {
|
|
4
|
+
productName?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const WhatsNewButton: React.FC<WrappedComponentProps & WhatsNewButtonProps>;
|
|
7
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl"> & WhatsNewButtonProps>> & {
|
|
8
|
+
WrappedComponent: React.ComponentType<WrappedComponentProps<"intl"> & WhatsNewButtonProps>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
export interface Props {
|
|
4
|
+
onClearFilter: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const WhatsNewResultsEmpty: React.FC<Props & WrappedComponentProps>;
|
|
7
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
8
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WhatsNewResultsEmptyMessageImage: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const WhatsNewResultsEmptyMessageText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { WHATS_NEW_ITEM_TYPES } from '../../../../model/WhatsNew';
|
|
4
|
+
export interface Props {
|
|
5
|
+
onSearch?(filter?: WHATS_NEW_ITEM_TYPES | '', numberOfItems?: number, page?: string): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const WhatsNewResultsError: React.FC<Props & WrappedComponentProps>;
|
|
8
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
9
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SearchResultEmptyMessageImage: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const SearchResultEmptyMessageText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import { WhatsNewArticleItem } from '../../../../../model/WhatsNew';
|
|
5
|
+
interface Props {
|
|
6
|
+
styles?: {};
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const WhatsNewResultListItem: React.FC<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps>;
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & Partial<WhatsNewArticleItem> & WrappedComponentProps<"intl">>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type WhatsNewResultListItemWrapperProps = {
|
|
3
|
+
styles: any;
|
|
4
|
+
};
|
|
5
|
+
export declare const WhatsNewResultListItemWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WhatsNewResultListItemWrapperProps, object>;
|
|
6
|
+
export declare const WhatsNewResultListItemTitleContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
7
|
+
export declare const WhatsNewResultListItemTitleText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
8
|
+
export declare const WhatsNewResultListItemDescription: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, Pick<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement>>, object>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WhatsNewResultsList as WhatsNewResultsListInterface } from './model/WhatsNewResultsList';
|
|
3
|
+
export interface Props {
|
|
4
|
+
numberOfWhatsNewArticlesToDisplay?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const WhatsNewResultsList: React.FC<Partial<WhatsNewResultsListInterface> & Props>;
|
|
7
|
+
export default WhatsNewResultsList;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WhatsNewArticleItem } from '../../../../../model/WhatsNew';
|
|
3
|
+
import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
4
|
+
export interface WhatsNewResultsList {
|
|
5
|
+
style?: 'primary' | 'secondary';
|
|
6
|
+
whatsNewArticles?: WhatsNewArticleItem[] | null;
|
|
7
|
+
nextPage?: string;
|
|
8
|
+
hasNextPage?: boolean;
|
|
9
|
+
loadingMore?: boolean;
|
|
10
|
+
onWhatsNewResultItemClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: WhatsNewArticleItem) => void;
|
|
11
|
+
onShowMoreButtonClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
export declare const truncate: (width?: string) => import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const WhatsNewResultsListContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
5
|
+
export declare const WhatsNewResultsListGroupWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
6
|
+
export declare const WhatsNewResultsListGroupTitle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
7
|
+
export declare const ToggleShowWhatsNewResultsContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
export declare const WhatsNewResultsLoading: React.FC<WrappedComponentProps>;
|
|
4
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Loading styled-components
|
|
4
|
+
*/
|
|
5
|
+
export declare const LoadignWhatsNewResultsList: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, Pick<import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement>, keyof import("react").HTMLAttributes<HTMLUListElement>>, object>;
|
|
6
|
+
export declare const LoadignWhatsNewResultsListItem: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, Pick<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, keyof import("react").LiHTMLAttributes<HTMLLIElement>>, object>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
export declare const WhatsNewResults: React.FC<WrappedComponentProps>;
|
|
4
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<WrappedComponentProps<"intl">>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<WrappedComponentProps<"intl">>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WhatsNewResultsContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const SelectContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
4
|
+
export declare const WhatsNewResultsListContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
5
|
+
export declare const WhatsNewResultsListTitleContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const MIN_CHARACTERS_FOR_SEARCH = 3;
|
|
2
|
+
export declare const LOADING_TIMEOUT = 1000;
|
|
3
|
+
export declare const NUMBER_OF_WHATS_NEW_ITEMS_PER_PAGE = 10;
|
|
4
|
+
export declare enum VIEW {
|
|
5
|
+
DEFAULT_CONTENT = "DEFAULT_CONTENT",
|
|
6
|
+
SEARCH = "SEARCH",
|
|
7
|
+
ARTICLE = "ARTICLE",
|
|
8
|
+
WHATS_NEW = "WHATS_NEW",
|
|
9
|
+
WHATS_NEW_ARTICLE = "WHATS_NEW_ARTICLE"
|
|
10
|
+
}
|
|
11
|
+
export declare const SLIDEIN_OVERLAY_TRANSITION_DURATION_MS = 300;
|
|
12
|
+
export declare const FADEIN_OVERLAY_TRANSITION_DURATION_MS = 440;
|
|
13
|
+
export declare const HIDE_CONTENT_DELAY: number;
|
|
14
|
+
export declare enum TRANSITION_STATUS {
|
|
15
|
+
UNMOUNTED = "unmounted",
|
|
16
|
+
EXITED = "exited",
|
|
17
|
+
ENTERING = "entering",
|
|
18
|
+
ENTERED = "entered",
|
|
19
|
+
EXITING = "exiting"
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
interface HeaderSharedInterface {
|
|
4
|
+
onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
5
|
+
onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const useHeaderContext: () => HeaderSharedInterface, CtxProvider: React.Provider<HeaderSharedInterface | undefined>;
|
|
8
|
+
export declare const HeaderContextProvider: React.FC<HeaderSharedInterface>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { Article, ArticleItem, ArticleFeedback } from '../../model/Article';
|
|
4
|
+
import { articleId } from '../../model/Help';
|
|
5
|
+
export interface HelpArticleContextInterface {
|
|
6
|
+
onGetHelpArticle?(articleId: articleId): Promise<Article>;
|
|
7
|
+
onHelpArticleLoadingFailTryAgainButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleId?: articleId): void;
|
|
8
|
+
onWasHelpfulYesButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, ArticleItem: ArticleItem): void;
|
|
9
|
+
onWasHelpfulNoButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, ArticleItem: ArticleItem): void;
|
|
10
|
+
onWasHelpfulSubmit?(analyticsEvent: UIAnalyticsEvent, articleFeedback: ArticleFeedback, articleData: ArticleItem): Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export declare const useHelpArticleContext: () => HelpArticleContextInterface, CtxProvider: React.Provider<HelpArticleContextInterface | undefined>;
|
|
13
|
+
export declare const HelpArticleContextProvider: React.FC<HelpArticleContextInterface>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props as HelpContentButtonProps } from '../HelpContentButton';
|
|
3
|
+
export interface HomeContextInterface {
|
|
4
|
+
homeOptions?: HelpContentButtonProps[];
|
|
5
|
+
homeContent?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const useHomeContext: () => HomeContextInterface, CtxProvider: React.Provider<HomeContextInterface | undefined>;
|
|
8
|
+
export declare const HomeContextProvider: React.FC<HomeContextInterface>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { Article, ArticleItem } from '../../model/Article';
|
|
4
|
+
import { WhatsNewArticleItem, WhatsNewArticle } from '../../model/WhatsNew';
|
|
5
|
+
import { HistoryItem, articleId } from '../../model/Help';
|
|
6
|
+
import { VIEW } from '../constants';
|
|
7
|
+
declare type ViewType = keyof typeof VIEW;
|
|
8
|
+
interface NavigationProviderInterface {
|
|
9
|
+
navigationData?: {
|
|
10
|
+
articleId: articleId;
|
|
11
|
+
history: HistoryItem[];
|
|
12
|
+
};
|
|
13
|
+
setNavigationData?(navigationData: {
|
|
14
|
+
articleId: articleId;
|
|
15
|
+
history: HistoryItem[];
|
|
16
|
+
}): void;
|
|
17
|
+
}
|
|
18
|
+
interface NavigationContextInterface {
|
|
19
|
+
articleId?: articleId;
|
|
20
|
+
history?: HistoryItem[];
|
|
21
|
+
historySetter?(history: HistoryItem[]): void;
|
|
22
|
+
view: ViewType;
|
|
23
|
+
openArticle(id: articleId): void;
|
|
24
|
+
canNavigateBack: boolean;
|
|
25
|
+
navigateBack?(): void;
|
|
26
|
+
onGetArticle?(id: articleId): Promise<Article | WhatsNewArticle>;
|
|
27
|
+
getCurrentArticle(): HistoryItem | undefined;
|
|
28
|
+
getCurrentArticleItemData(): ArticleItem | WhatsNewArticleItem | undefined;
|
|
29
|
+
reloadHelpArticle?(historyItem: HistoryItem): void;
|
|
30
|
+
reloadWhatsNewArticle?(historyItem: HistoryItem): void;
|
|
31
|
+
isOverlayVisible: boolean;
|
|
32
|
+
onClose?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
33
|
+
}
|
|
34
|
+
export declare const useNavigationContext: () => NavigationContextInterface, CtxProvider: React.Provider<NavigationContextInterface | undefined>;
|
|
35
|
+
export declare const NavigationContextProvider: React.FC<NavigationProviderInterface>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { ArticleItem } from '../../model/Article';
|
|
4
|
+
export interface RelatedArticlesContextInterface {
|
|
5
|
+
routeGroup?: string;
|
|
6
|
+
routeName?: string;
|
|
7
|
+
onGetRelatedArticles?(routeGroup?: string, routeName?: string): Promise<ArticleItem[]>;
|
|
8
|
+
onRelatedArticlesShowMoreClick?(event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent, isCollapsed: boolean): void;
|
|
9
|
+
onRelatedArticlesListItemClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useRelatedArticlesContext: () => RelatedArticlesContextInterface, CtxProvider: React.Provider<RelatedArticlesContextInterface | undefined>;
|
|
12
|
+
export declare const RelatedArticlesContextProvider: React.FC<RelatedArticlesContextInterface>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { ArticleItem } from '../../model/Article';
|
|
4
|
+
import { REQUEST_STATE } from '../../model/Requests';
|
|
5
|
+
interface SearchSharedInterface {
|
|
6
|
+
onSearchInputChanged?(event: React.KeyboardEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent, value: string): void;
|
|
7
|
+
onSearchInputCleared?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
8
|
+
onSearchExternalUrlClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
9
|
+
searchExternalUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SearchContextInterface extends SearchSharedInterface {
|
|
12
|
+
onSearch?(value?: string): void;
|
|
13
|
+
onSearchResultItemClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
14
|
+
isSearchResultVisible: boolean;
|
|
15
|
+
searchResult: ArticleItem[] | null;
|
|
16
|
+
searchState: REQUEST_STATE;
|
|
17
|
+
searchValue: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SearchProviderInterface extends SearchSharedInterface {
|
|
20
|
+
onSearch?(value: string): Promise<ArticleItem[]>;
|
|
21
|
+
onSearchResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
22
|
+
}
|
|
23
|
+
export declare const useSearchContext: () => SearchContextInterface, CtxProvider: React.Provider<SearchContextInterface | undefined>;
|
|
24
|
+
export declare const SearchContextProvider: React.FC<SearchProviderInterface>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
4
|
+
import { WhatsNewArticleItem, WhatsNewArticle, whatsNewSearchResult } from '../../model/WhatsNew';
|
|
5
|
+
import { REQUEST_STATE } from '../../model/Requests';
|
|
6
|
+
import { articleId } from '../../model/Help';
|
|
7
|
+
import { WHATS_NEW_ITEM_TYPES } from '../../model/WhatsNew';
|
|
8
|
+
interface WhatsNewArticleSharedInterface {
|
|
9
|
+
whatsNewGetNotificationProvider?: Promise<NotificationLogProvider>;
|
|
10
|
+
productName?: string;
|
|
11
|
+
onWhatsNewButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
12
|
+
onWhatsNewResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, whatsNewArticleData: WhatsNewArticleItem): void;
|
|
13
|
+
onSearchWhatsNewArticlesShowMoreClick?(event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent): void;
|
|
14
|
+
onGetWhatsNewArticle?(id: articleId): Promise<WhatsNewArticle>;
|
|
15
|
+
}
|
|
16
|
+
interface WhatsNewArticleContextInterface extends WhatsNewArticleSharedInterface {
|
|
17
|
+
onSearchWhatsNewArticles?(filter?: WHATS_NEW_ITEM_TYPES | '', numberOfItems?: number, page?: string): Promise<void>;
|
|
18
|
+
searchWhatsNewArticlesState: REQUEST_STATE;
|
|
19
|
+
searchWhatsNewArticlesResult: whatsNewSearchResult | null;
|
|
20
|
+
}
|
|
21
|
+
interface WhatsNewArticleProviderInterface extends WhatsNewArticleSharedInterface {
|
|
22
|
+
onSearchWhatsNewArticles?(filter?: WHATS_NEW_ITEM_TYPES | '', numberOfItems?: number, page?: string): Promise<whatsNewSearchResult>;
|
|
23
|
+
}
|
|
24
|
+
export declare const useWhatsNewArticleContext: () => WhatsNewArticleContextInterface, CtxProvider: React.Provider<WhatsNewArticleContextInterface | undefined>;
|
|
25
|
+
export declare const WhatsNewArticleProvider: React.FC<WhatsNewArticleProviderInterface>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
declare type HelpBodyProps = {
|
|
4
|
+
isOverlayVisible?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const HelpBodyContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HelpBodyProps, object>;
|
|
7
|
+
export declare const HelpBody: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HelpBodyProps, object>;
|
|
8
|
+
declare type HomeProps = {
|
|
9
|
+
isOverlayFullyVisible?: boolean;
|
|
10
|
+
isOverlayVisible?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const Home: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HomeProps, object>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { default as zh } from './zh';
|
|
2
|
+
export { default as cs } from './cs';
|
|
3
|
+
export { default as da } from './da';
|
|
4
|
+
export { default as nl } from './nl';
|
|
5
|
+
export { default as en } from './en';
|
|
6
|
+
export { default as en_GB } from './en_GB';
|
|
7
|
+
export { default as et } from './et';
|
|
8
|
+
export { default as fi } from './fi';
|
|
9
|
+
export { default as fr } from './fr';
|
|
10
|
+
export { default as de } from './de';
|
|
11
|
+
export { default as hu } from './hu';
|
|
12
|
+
export { default as is } from './is';
|
|
13
|
+
export { default as it } from './it';
|
|
14
|
+
export { default as ja } from './ja';
|
|
15
|
+
export { default as ko } from './ko';
|
|
16
|
+
export { default as nb } from './nb';
|
|
17
|
+
export { default as pl } from './pl';
|
|
18
|
+
export { default as pt_BR } from './pt_BR';
|
|
19
|
+
export { default as pt_PT } from './pt_PT';
|
|
20
|
+
export { default as ro } from './ro';
|
|
21
|
+
export { default as ru } from './ru';
|
|
22
|
+
export { default as sk } from './sk';
|
|
23
|
+
export { default as es } from './es';
|
|
24
|
+
export { default as sv } from './sv';
|