@atlaskit/help 7.2.1 → 7.2.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/analytics/package.json +2 -2
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/version.json +1 -1
  5. package/dist/esm/version.json +1 -1
  6. package/dist/types/components/ArticlesList/ArticlesListItem/styled.d.ts +1 -1
  7. package/dist/types/components/Help.d.ts +1 -1
  8. package/dist/types/components/HelpContentButton/index.d.ts +1 -1
  9. package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.d.ts +1 -1
  10. package/dist/types/components/contexts/navigationContext.d.ts +1 -1
  11. package/dist/types/components/styled.d.ts +2 -2
  12. package/dist/types/util/hooks/ctx.d.ts +1 -1
  13. package/dist/types/util/i18n-util.d.ts +3 -3
  14. package/dist/types/util/index.d.ts +1 -1
  15. package/dist/types/util/styled.d.ts +3 -3
  16. package/dist/types/util/testing/mock.d.ts +1 -1
  17. package/messages/package.json +2 -2
  18. package/package.json +12 -4
  19. package/dist/types-ts4.0/analytics.d.ts +0 -10
  20. package/dist/types-ts4.0/assets/ErrorImage.d.ts +0 -3
  21. package/dist/types-ts4.0/assets/NotFoundImage.d.ts +0 -3
  22. package/dist/types-ts4.0/assets/SomethingWrongImage.d.ts +0 -3
  23. package/dist/types-ts4.0/assets/WhatsNewIcoExperiment.d.ts +0 -2
  24. package/dist/types-ts4.0/assets/WhatsNewIcoExperiment.svg +0 -5
  25. package/dist/types-ts4.0/assets/WhatsNewIconFix.d.ts +0 -2
  26. package/dist/types-ts4.0/assets/WhatsNewIconFix.svg +0 -5
  27. package/dist/types-ts4.0/assets/WhatsNewIconImprovement.d.ts +0 -2
  28. package/dist/types-ts4.0/assets/WhatsNewIconImprovement.svg +0 -3
  29. package/dist/types-ts4.0/assets/WhatsNewIconNew.d.ts +0 -2
  30. package/dist/types-ts4.0/assets/WhatsNewIconNew.svg +0 -3
  31. package/dist/types-ts4.0/assets/WhatsNewIconRemoved.d.ts +0 -2
  32. package/dist/types-ts4.0/assets/WhatsNewIconRemoved.svg +0 -3
  33. package/dist/types-ts4.0/components/Article/ArticleContent/index.d.ts +0 -10
  34. package/dist/types-ts4.0/components/Article/ArticleLoadingFail/index.d.ts +0 -11
  35. package/dist/types-ts4.0/components/Article/ArticleLoadingFail/styled.d.ts +0 -3
  36. package/dist/types-ts4.0/components/Article/HelpArticle/Loading/index.d.ts +0 -7
  37. package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +0 -12
  38. package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +0 -12
  39. package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +0 -14
  40. package/dist/types-ts4.0/components/Article/HelpArticle/WasHelpfulForm/styled.d.ts +0 -5
  41. package/dist/types-ts4.0/components/Article/HelpArticle/index.d.ts +0 -8
  42. package/dist/types-ts4.0/components/Article/WhatsNewArticle/Loading/index.d.ts +0 -7
  43. package/dist/types-ts4.0/components/Article/WhatsNewArticle/index.d.ts +0 -12
  44. package/dist/types-ts4.0/components/Article/WhatsNewArticle/styled.d.ts +0 -7
  45. package/dist/types-ts4.0/components/Article/index.d.ts +0 -3
  46. package/dist/types-ts4.0/components/Article/styled.d.ts +0 -3
  47. package/dist/types-ts4.0/components/ArticlesList/ArticlesList.d.ts +0 -7
  48. package/dist/types-ts4.0/components/ArticlesList/ArticlesListItem/index.d.ts +0 -13
  49. package/dist/types-ts4.0/components/ArticlesList/ArticlesListItem/styled.d.ts +0 -11
  50. package/dist/types-ts4.0/components/ArticlesList/constants.d.ts +0 -2
  51. package/dist/types-ts4.0/components/ArticlesList/index.d.ts +0 -4
  52. package/dist/types-ts4.0/components/ArticlesList/model/ArticlesListItem.d.ts +0 -11
  53. package/dist/types-ts4.0/components/ArticlesList/styled.d.ts +0 -5
  54. package/dist/types-ts4.0/components/Help.d.ts +0 -9
  55. package/dist/types-ts4.0/components/HelpContent.d.ts +0 -6
  56. package/dist/types-ts4.0/components/HelpContentButton/index.d.ts +0 -15
  57. package/dist/types-ts4.0/components/HelpContentButton/styled.d.ts +0 -7
  58. package/dist/types-ts4.0/components/RelatedArticles/RelatedArticlesLoading.d.ts +0 -6
  59. package/dist/types-ts4.0/components/RelatedArticles/index.d.ts +0 -19
  60. package/dist/types-ts4.0/components/RelatedArticles/styled.d.ts +0 -10
  61. package/dist/types-ts4.0/components/Search/SearchInput/index.d.ts +0 -7
  62. package/dist/types-ts4.0/components/Search/SearchInput/styled.d.ts +0 -4
  63. package/dist/types-ts4.0/components/Search/SearchResults/SearchExternalSite.d.ts +0 -12
  64. package/dist/types-ts4.0/components/Search/SearchResults/SearchResults.d.ts +0 -9
  65. package/dist/types-ts4.0/components/Search/SearchResults/SearchResultsEmpty.d.ts +0 -12
  66. package/dist/types-ts4.0/components/Search/SearchResults/SearchResultsError.d.ts +0 -10
  67. package/dist/types-ts4.0/components/Search/SearchResults/index.d.ts +0 -3
  68. package/dist/types-ts4.0/components/Search/SearchResults/styled.d.ts +0 -6
  69. package/dist/types-ts4.0/components/ShowMoreButton/index.d.ts +0 -16
  70. package/dist/types-ts4.0/components/WhatsNew/WhatsNewButton/index.d.ts +0 -10
  71. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +0 -10
  72. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.d.ts +0 -3
  73. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +0 -11
  74. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.d.ts +0 -3
  75. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +0 -13
  76. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.d.ts +0 -9
  77. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.d.ts +0 -7
  78. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.d.ts +0 -4
  79. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/model/WhatsNewResultsList.d.ts +0 -12
  80. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.d.ts +0 -7
  81. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +0 -7
  82. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts +0 -6
  83. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/index.d.ts +0 -7
  84. package/dist/types-ts4.0/components/WhatsNew/WhatsNewResults/styled.d.ts +0 -5
  85. package/dist/types-ts4.0/components/constants.d.ts +0 -20
  86. package/dist/types-ts4.0/components/contexts/headerContext.d.ts +0 -9
  87. package/dist/types-ts4.0/components/contexts/helpArticleContext.d.ts +0 -13
  88. package/dist/types-ts4.0/components/contexts/homeContext.d.ts +0 -8
  89. package/dist/types-ts4.0/components/contexts/navigationContext.d.ts +0 -36
  90. package/dist/types-ts4.0/components/contexts/relatedArticlesContext.d.ts +0 -12
  91. package/dist/types-ts4.0/components/contexts/searchContext.d.ts +0 -25
  92. package/dist/types-ts4.0/components/contexts/whatsNewArticleContext.d.ts +0 -26
  93. package/dist/types-ts4.0/components/styled.d.ts +0 -13
  94. package/dist/types-ts4.0/i18n/cs.d.ts +0 -2
  95. package/dist/types-ts4.0/i18n/da.d.ts +0 -2
  96. package/dist/types-ts4.0/i18n/de.d.ts +0 -2
  97. package/dist/types-ts4.0/i18n/en.d.ts +0 -2
  98. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -2
  99. package/dist/types-ts4.0/i18n/es.d.ts +0 -4
  100. package/dist/types-ts4.0/i18n/et.d.ts +0 -2
  101. package/dist/types-ts4.0/i18n/fi.d.ts +0 -2
  102. package/dist/types-ts4.0/i18n/fr.d.ts +0 -2
  103. package/dist/types-ts4.0/i18n/hu.d.ts +0 -2
  104. package/dist/types-ts4.0/i18n/index.d.ts +0 -24
  105. package/dist/types-ts4.0/i18n/is.d.ts +0 -2
  106. package/dist/types-ts4.0/i18n/it.d.ts +0 -2
  107. package/dist/types-ts4.0/i18n/ja.d.ts +0 -2
  108. package/dist/types-ts4.0/i18n/ko.d.ts +0 -2
  109. package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
  110. package/dist/types-ts4.0/i18n/nb.d.ts +0 -2
  111. package/dist/types-ts4.0/i18n/nl.d.ts +0 -2
  112. package/dist/types-ts4.0/i18n/pl.d.ts +0 -2
  113. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -2
  114. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -2
  115. package/dist/types-ts4.0/i18n/ro.d.ts +0 -2
  116. package/dist/types-ts4.0/i18n/ru.d.ts +0 -2
  117. package/dist/types-ts4.0/i18n/sk.d.ts +0 -2
  118. package/dist/types-ts4.0/i18n/sv.d.ts +0 -2
  119. package/dist/types-ts4.0/i18n/zh.d.ts +0 -2
  120. package/dist/types-ts4.0/index.d.ts +0 -11
  121. package/dist/types-ts4.0/messages.d.ts +0 -262
  122. package/dist/types-ts4.0/model/Article.d.ts +0 -30
  123. package/dist/types-ts4.0/model/Help.d.ts +0 -74
  124. package/dist/types-ts4.0/model/Requests.d.ts +0 -7
  125. package/dist/types-ts4.0/model/WhatsNew.d.ts +0 -29
  126. package/dist/types-ts4.0/util/hooks/cancellablePromise.d.ts +0 -7
  127. package/dist/types-ts4.0/util/hooks/ctx.d.ts +0 -5
  128. package/dist/types-ts4.0/util/hooks/previous.d.ts +0 -1
  129. package/dist/types-ts4.0/util/i18n-util.d.ts +0 -17
  130. package/dist/types-ts4.0/util/index.d.ts +0 -8
  131. package/dist/types-ts4.0/util/styled.d.ts +0 -29
  132. package/dist/types-ts4.0/util/testing/mock.d.ts +0 -8
@@ -1,7 +0,0 @@
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;
@@ -1,6 +0,0 @@
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>;
@@ -1,7 +0,0 @@
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;
@@ -1,5 +0,0 @@
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>;
@@ -1,20 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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>;
@@ -1,8 +0,0 @@
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>;
@@ -1,36 +0,0 @@
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 {};
@@ -1,12 +0,0 @@
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>;
@@ -1,25 +0,0 @@
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 {};
@@ -1,26 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- 'global_help.header': string;
3
- };
4
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,24 +0,0 @@
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';
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,27 +0,0 @@
1
- declare const _default: {
2
- zh: string;
3
- cs: string;
4
- da: string;
5
- nl: string;
6
- en: string;
7
- en_GB: string;
8
- et: string;
9
- fi: string;
10
- fr: string;
11
- de: string;
12
- hu: string;
13
- is: string;
14
- it: string;
15
- ja: string;
16
- ko: string;
17
- nb: string;
18
- pl: string;
19
- pt_BR: string;
20
- pt_PT: string;
21
- ro: string;
22
- ru: string;
23
- sk: string;
24
- es: string;
25
- sv: string;
26
- };
27
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,11 +0,0 @@
1
- export { default } from './components/Help';
2
- export { default as ArticlesListItem } from './components/ArticlesList/ArticlesListItem';
3
- export { default as RelatedArticles } from './components/RelatedArticles';
4
- export { default as HelpContentButton } from './components/HelpContentButton';
5
- export { DividerLine } from './util/styled';
6
- export { ARTICLE_TYPE } from './model/Help';
7
- export { ARTICLE_ITEM_TYPES } from './model/Article';
8
- export type { Help, HistoryItem, articleId } from './model/Help';
9
- export type { Article, ArticleItem, ArticleFeedback } from './model/Article';
10
- export { WHATS_NEW_ITEM_TYPES } from './model/WhatsNew';
11
- export type { WhatsNewArticle, WhatsNewArticleItem } from './model/WhatsNew';
@@ -1,262 +0,0 @@
1
- export declare const messages: {
2
- help_loading: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- help_header: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- help_header_whats_new: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- help_close: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- help_navigation_back: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- help_search_placeholder: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- help_article_rating_title: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- help_article_rating_option_yes: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- help_article_rating_option_no: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
- help_article_rating_form_title: {
48
- id: string;
49
- defaultMessage: string;
50
- description: string;
51
- };
52
- help_article_rating_accurate: {
53
- id: string;
54
- defaultMessage: string;
55
- description: string;
56
- };
57
- help_article_rating_clear: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- help_article_rating_relevant: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
- help_article_rating_form_submit: {
68
- id: string;
69
- defaultMessage: string;
70
- description: string;
71
- };
72
- help_article_rating_form_Success: {
73
- id: string;
74
- defaultMessage: string;
75
- description: string;
76
- };
77
- help_article_rating_form_failed: {
78
- id: string;
79
- defaultMessage: string;
80
- description: string;
81
- };
82
- help_article_rating_form_failed_try_again: {
83
- id: string;
84
- defaultMessage: string;
85
- description: string;
86
- };
87
- help_article_rating_form_cancel: {
88
- id: string;
89
- defaultMessage: string;
90
- description: string;
91
- };
92
- help_article_rating_form_contact_me: {
93
- id: string;
94
- defaultMessage: string;
95
- description: string;
96
- };
97
- help_article_list_item_type_whats_new: {
98
- id: string;
99
- defaultMessage: string;
100
- description: string;
101
- };
102
- help_article_list_item_type_help_article: {
103
- id: string;
104
- defaultMessage: string;
105
- description: string;
106
- };
107
- help_related_article_title: {
108
- id: string;
109
- defaultMessage: string;
110
- description: string;
111
- };
112
- help_related_article_endpoint_error_title: {
113
- id: string;
114
- defaultMessage: string;
115
- description: string;
116
- };
117
- help_related_article_endpoint_error_description: {
118
- id: string;
119
- defaultMessage: string;
120
- description: string;
121
- };
122
- help_related_article_endpoint_error_button_label: {
123
- id: string;
124
- defaultMessage: string;
125
- description: string;
126
- };
127
- help_search_results_search_external_site: {
128
- id: string;
129
- defaultMessage: string;
130
- description: string;
131
- };
132
- help_search_results_no_results: {
133
- id: string;
134
- defaultMessage: string;
135
- description: string;
136
- };
137
- help_search_results_no_results_line_two: {
138
- id: string;
139
- defaultMessage: string;
140
- description: string;
141
- };
142
- help_search_results_external_site_link: {
143
- id: string;
144
- defaultMessage: string;
145
- description: string;
146
- };
147
- help_article_error_title: {
148
- id: string;
149
- defaultMessage: string;
150
- description: string;
151
- };
152
- help_article_error_text: {
153
- id: string;
154
- defaultMessage: string;
155
- description: string;
156
- };
157
- help_article_error_button_label: {
158
- id: string;
159
- defaultMessage: string;
160
- description: string;
161
- };
162
- help_search_error: {
163
- id: string;
164
- defaultMessage: string;
165
- description: string;
166
- };
167
- help_search_error_line_two: {
168
- id: string;
169
- defaultMessage: string;
170
- description: string;
171
- };
172
- help_search_error_button_label: {
173
- id: string;
174
- defaultMessage: string;
175
- description: string;
176
- };
177
- help_whats_new_button_label: {
178
- id: string;
179
- defaultMessage: string;
180
- description: string;
181
- };
182
- help_whats_new_button_label_without_product_name: {
183
- id: string;
184
- defaultMessage: string;
185
- description: string;
186
- };
187
- help_whats_new_button_tooltip: {
188
- id: string;
189
- defaultMessage: string;
190
- description: string;
191
- };
192
- help_whats_new_filter_select_option_all: {
193
- id: string;
194
- defaultMessage: string;
195
- description: string;
196
- };
197
- help_whats_new_filter_select_option_new: {
198
- id: string;
199
- defaultMessage: string;
200
- description: string;
201
- };
202
- help_whats_new_filter_select_option_improvement: {
203
- id: string;
204
- defaultMessage: string;
205
- description: string;
206
- };
207
- help_whats_new_filter_select_option_fix: {
208
- id: string;
209
- defaultMessage: string;
210
- description: string;
211
- };
212
- help_whats_new_filter_select_option_removed: {
213
- id: string;
214
- defaultMessage: string;
215
- description: string;
216
- };
217
- help_whats_new_filter_select_option_experiment: {
218
- id: string;
219
- defaultMessage: string;
220
- description: string;
221
- };
222
- help_whats_new_no_results: {
223
- id: string;
224
- defaultMessage: string;
225
- description: string;
226
- };
227
- help_whats_new_no_results_info: {
228
- id: string;
229
- defaultMessage: string;
230
- description: string;
231
- };
232
- help_whats_new_no_results_clear_filter_button_label: {
233
- id: string;
234
- defaultMessage: string;
235
- description: string;
236
- };
237
- help_whats_new_no_results_clear_filter_info: {
238
- id: string;
239
- defaultMessage: string;
240
- description: string;
241
- };
242
- help_whats_new_related_link_support: {
243
- id: string;
244
- defaultMessage: string;
245
- description: string;
246
- };
247
- help_whats_new_related_link_community: {
248
- id: string;
249
- defaultMessage: string;
250
- description: string;
251
- };
252
- help_show_more_button_label_more: {
253
- id: string;
254
- defaultMessage: string;
255
- description: string;
256
- };
257
- help_show_more_button_label_less: {
258
- id: string;
259
- defaultMessage: string;
260
- description: string;
261
- };
262
- };