@atlaskit/help 7.2.1 → 7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/CHANGELOG.md +12 -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/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/ArticlesListItem/styled.d.ts +1 -1
  18. package/dist/{types-ts4.0 → types-ts4.5}/components/Help.d.ts +1 -1
  19. package/dist/{types-ts4.0 → types-ts4.5}/components/HelpContentButton/index.d.ts +1 -1
  20. package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.d.ts +1 -1
  21. package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/navigationContext.d.ts +1 -1
  22. package/dist/{types-ts4.0 → types-ts4.5}/components/styled.d.ts +2 -2
  23. package/dist/{types-ts4.0 → types-ts4.5}/util/hooks/ctx.d.ts +1 -1
  24. package/dist/{types-ts4.0 → types-ts4.5}/util/i18n-util.d.ts +3 -3
  25. package/dist/{types-ts4.0 → types-ts4.5}/util/index.d.ts +1 -1
  26. package/dist/{types-ts4.0 → types-ts4.5}/util/styled.d.ts +3 -3
  27. package/dist/{types-ts4.0 → types-ts4.5}/util/testing/mock.d.ts +1 -1
  28. package/messages/package.json +2 -2
  29. package/package.json +12 -4
  30. /package/dist/{types-ts4.0 → types-ts4.5}/analytics.d.ts +0 -0
  31. /package/dist/{types-ts4.0 → types-ts4.5}/assets/ErrorImage.d.ts +0 -0
  32. /package/dist/{types-ts4.0 → types-ts4.5}/assets/NotFoundImage.d.ts +0 -0
  33. /package/dist/{types-ts4.0 → types-ts4.5}/assets/SomethingWrongImage.d.ts +0 -0
  34. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIcoExperiment.d.ts +0 -0
  35. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIcoExperiment.svg +0 -0
  36. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconFix.d.ts +0 -0
  37. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconFix.svg +0 -0
  38. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconImprovement.d.ts +0 -0
  39. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconImprovement.svg +0 -0
  40. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconNew.d.ts +0 -0
  41. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconNew.svg +0 -0
  42. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconRemoved.d.ts +0 -0
  43. /package/dist/{types-ts4.0 → types-ts4.5}/assets/WhatsNewIconRemoved.svg +0 -0
  44. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/ArticleContent/index.d.ts +0 -0
  45. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/ArticleLoadingFail/index.d.ts +0 -0
  46. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/ArticleLoadingFail/styled.d.ts +0 -0
  47. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/HelpArticle/Loading/index.d.ts +0 -0
  48. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +0 -0
  49. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +0 -0
  50. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +0 -0
  51. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/HelpArticle/WasHelpfulForm/styled.d.ts +0 -0
  52. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/HelpArticle/index.d.ts +0 -0
  53. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/WhatsNewArticle/Loading/index.d.ts +0 -0
  54. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/WhatsNewArticle/index.d.ts +0 -0
  55. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/WhatsNewArticle/styled.d.ts +0 -0
  56. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/index.d.ts +0 -0
  57. /package/dist/{types-ts4.0 → types-ts4.5}/components/Article/styled.d.ts +0 -0
  58. /package/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/ArticlesList.d.ts +0 -0
  59. /package/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/ArticlesListItem/index.d.ts +0 -0
  60. /package/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/constants.d.ts +0 -0
  61. /package/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/index.d.ts +0 -0
  62. /package/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/model/ArticlesListItem.d.ts +0 -0
  63. /package/dist/{types-ts4.0 → types-ts4.5}/components/ArticlesList/styled.d.ts +0 -0
  64. /package/dist/{types-ts4.0 → types-ts4.5}/components/HelpContent.d.ts +0 -0
  65. /package/dist/{types-ts4.0 → types-ts4.5}/components/HelpContentButton/styled.d.ts +0 -0
  66. /package/dist/{types-ts4.0 → types-ts4.5}/components/RelatedArticles/RelatedArticlesLoading.d.ts +0 -0
  67. /package/dist/{types-ts4.0 → types-ts4.5}/components/RelatedArticles/index.d.ts +0 -0
  68. /package/dist/{types-ts4.0 → types-ts4.5}/components/RelatedArticles/styled.d.ts +0 -0
  69. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchInput/index.d.ts +0 -0
  70. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchInput/styled.d.ts +0 -0
  71. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchResults/SearchExternalSite.d.ts +0 -0
  72. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchResults/SearchResults.d.ts +0 -0
  73. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchResults/SearchResultsEmpty.d.ts +0 -0
  74. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchResults/SearchResultsError.d.ts +0 -0
  75. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchResults/index.d.ts +0 -0
  76. /package/dist/{types-ts4.0 → types-ts4.5}/components/Search/SearchResults/styled.d.ts +0 -0
  77. /package/dist/{types-ts4.0 → types-ts4.5}/components/ShowMoreButton/index.d.ts +0 -0
  78. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewButton/index.d.ts +0 -0
  79. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +0 -0
  80. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.d.ts +0 -0
  81. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +0 -0
  82. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.d.ts +0 -0
  83. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +0 -0
  84. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.d.ts +0 -0
  85. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.d.ts +0 -0
  86. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/model/WhatsNewResultsList.d.ts +0 -0
  87. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.d.ts +0 -0
  88. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +0 -0
  89. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts +0 -0
  90. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/index.d.ts +0 -0
  91. /package/dist/{types-ts4.0 → types-ts4.5}/components/WhatsNew/WhatsNewResults/styled.d.ts +0 -0
  92. /package/dist/{types-ts4.0 → types-ts4.5}/components/constants.d.ts +0 -0
  93. /package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/headerContext.d.ts +0 -0
  94. /package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/helpArticleContext.d.ts +0 -0
  95. /package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/homeContext.d.ts +0 -0
  96. /package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/relatedArticlesContext.d.ts +0 -0
  97. /package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/searchContext.d.ts +0 -0
  98. /package/dist/{types-ts4.0 → types-ts4.5}/components/contexts/whatsNewArticleContext.d.ts +0 -0
  99. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/cs.d.ts +0 -0
  100. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/da.d.ts +0 -0
  101. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/de.d.ts +0 -0
  102. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/en.d.ts +0 -0
  103. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/en_GB.d.ts +0 -0
  104. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/es.d.ts +0 -0
  105. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/et.d.ts +0 -0
  106. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/fi.d.ts +0 -0
  107. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/fr.d.ts +0 -0
  108. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/hu.d.ts +0 -0
  109. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/index.d.ts +0 -0
  110. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/is.d.ts +0 -0
  111. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/it.d.ts +0 -0
  112. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/ja.d.ts +0 -0
  113. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/ko.d.ts +0 -0
  114. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/languages.d.ts +0 -0
  115. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/nb.d.ts +0 -0
  116. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/nl.d.ts +0 -0
  117. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/pl.d.ts +0 -0
  118. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/pt_BR.d.ts +0 -0
  119. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/pt_PT.d.ts +0 -0
  120. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/ro.d.ts +0 -0
  121. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/ru.d.ts +0 -0
  122. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/sk.d.ts +0 -0
  123. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/sv.d.ts +0 -0
  124. /package/dist/{types-ts4.0 → types-ts4.5}/i18n/zh.d.ts +0 -0
  125. /package/dist/{types-ts4.0 → types-ts4.5}/index.d.ts +0 -0
  126. /package/dist/{types-ts4.0 → types-ts4.5}/messages.d.ts +0 -0
  127. /package/dist/{types-ts4.0 → types-ts4.5}/model/Article.d.ts +0 -0
  128. /package/dist/{types-ts4.0 → types-ts4.5}/model/Help.d.ts +0 -0
  129. /package/dist/{types-ts4.0 → types-ts4.5}/model/Requests.d.ts +0 -0
  130. /package/dist/{types-ts4.0 → types-ts4.5}/model/WhatsNew.d.ts +0 -0
  131. /package/dist/{types-ts4.0 → types-ts4.5}/util/hooks/cancellablePromise.d.ts +0 -0
  132. /package/dist/{types-ts4.0 → types-ts4.5}/util/hooks/previous.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/help
2
2
 
3
+ ## 7.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 7.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 7.2.1
4
16
 
5
17
  ### Patch Changes
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/analytics.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/analytics.d.ts"
11
+ "../dist/types-ts4.5/analytics.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.1",
3
+ "version": "7.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.1",
3
+ "version": "7.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.1",
3
+ "version": "7.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type ArticlesListItemWrapperProps = {
2
+ type ArticlesListItemWrapperProps = {
3
3
  styles: any;
4
4
  };
5
5
  export declare const ArticlesListItemWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, ArticlesListItemWrapperProps, object>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  import { Help as HelpInterface } from '../model/Help';
4
- export declare type Props = HelpInterface & WithAnalyticsEventsProps;
4
+ export type Props = HelpInterface & WithAnalyticsEventsProps;
5
5
  export declare class Help extends React.PureComponent<Props> {
6
6
  render(): JSX.Element;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NotificationLogProvider } from '@atlaskit/notification-log-client';
3
3
  import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- export declare type Props = {
4
+ export type Props = {
5
5
  id?: string;
6
6
  href?: string;
7
7
  notificationMax?: number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type WhatsNewResultListItemWrapperProps = {
2
+ type WhatsNewResultListItemWrapperProps = {
3
3
  styles: any;
4
4
  };
5
5
  export declare const WhatsNewResultListItemWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WhatsNewResultListItemWrapperProps, object>;
@@ -4,7 +4,7 @@ import { Article, ArticleItem } from '../../model/Article';
4
4
  import { WhatsNewArticleItem, WhatsNewArticle } from '../../model/WhatsNew';
5
5
  import { HistoryItem, articleId } from '../../model/Help';
6
6
  import { VIEW } from '../constants';
7
- declare type ViewType = keyof typeof VIEW;
7
+ type ViewType = keyof typeof VIEW;
8
8
  interface NavigationProviderInterface {
9
9
  navigationData?: {
10
10
  articleId: articleId;
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  /// <reference types="react" />
3
- declare type HelpBodyProps = {
3
+ type HelpBodyProps = {
4
4
  isOverlayVisible?: boolean;
5
5
  };
6
6
  export declare const HelpBodyContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HelpBodyProps, object>;
7
7
  export declare const HelpBody: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HelpBodyProps, object>;
8
- declare type HomeProps = {
8
+ type HomeProps = {
9
9
  isOverlayFullyVisible?: boolean;
10
10
  isOverlayVisible?: boolean;
11
11
  };
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare function createCtx<ContextType>(): readonly [() => ContextType, import("react").Provider<ContextType | undefined>];
2
+ export declare function createCtx<ContextType>(): readonly [() => NonNullable<ContextType>, import("react").Provider<ContextType | undefined>];
@@ -1,6 +1,6 @@
1
- declare type LanguageCode = 'zh' | 'cs' | 'da' | 'nl' | 'en' | 'en_GB' | 'et' | 'fi' | 'fr' | 'de' | 'hu' | 'is' | 'it' | 'ja' | 'ko' | 'nb' | 'pl' | 'pt_BR' | 'pt_PT' | 'ro' | 'ru' | 'sk' | 'es' | 'sv';
2
- export declare type LangCode = LanguageCode | 'pt-BR' | 'pt-PT';
3
- declare type LocaleMessages = {
1
+ type LanguageCode = 'zh' | 'cs' | 'da' | 'nl' | 'en' | 'en_GB' | 'et' | 'fi' | 'fr' | 'de' | 'hu' | 'is' | 'it' | 'ja' | 'ko' | 'nb' | 'pl' | 'pt_BR' | 'pt_PT' | 'ro' | 'ru' | 'sk' | 'es' | 'sv';
2
+ export type LangCode = LanguageCode | 'pt-BR' | 'pt-PT';
3
+ type LocaleMessages = {
4
4
  [key: string]: string;
5
5
  };
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
3
- export declare const getTypeIcon: (itemType?: WHATS_NEW_ITEM_TYPES | undefined) => "" | JSX.Element;
3
+ export declare const getTypeIcon: (itemType?: WHATS_NEW_ITEM_TYPES) => "" | JSX.Element;
4
4
  export declare const getTypeTitle: (itemType: WHATS_NEW_ITEM_TYPES) => {
5
5
  id: string;
6
6
  defaultMessage: string;
@@ -5,7 +5,7 @@ export declare const DividerLine: import("@emotion/styled-base").StyledComponent
5
5
  /**
6
6
  * Loading container
7
7
  */
8
- declare type LoadingRectangleProps = {
8
+ type LoadingRectangleProps = {
9
9
  contentWidth?: string;
10
10
  contentHeight?: string;
11
11
  marginTop?: string;
@@ -14,7 +14,7 @@ export declare const LoadingRectangle: import("@emotion/styled-base").StyledComp
14
14
  /**
15
15
  * Loading Circle
16
16
  */
17
- declare type LoadingCircleProps = {
17
+ type LoadingCircleProps = {
18
18
  radius?: string;
19
19
  marginTop?: string;
20
20
  };
@@ -22,7 +22,7 @@ export declare const LoadingCircle: import("@emotion/styled-base").StyledCompone
22
22
  /**
23
23
  * What's new icon
24
24
  */
25
- declare type WhatsNewTypeIconProps = {
25
+ type WhatsNewTypeIconProps = {
26
26
  type?: WHATS_NEW_ITEM_TYPES;
27
27
  };
28
28
  export declare const WhatsNewTypeIcon: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WhatsNewTypeIconProps, object>;
@@ -4,5 +4,5 @@ export declare const getMockArticle: (id: string, routeName?: string, routeGroup
4
4
  export declare const getMockArticleItem: (id: string, routeName?: string, routeGroup?: string, productName?: string, href?: string) => ArticleItem;
5
5
  export declare const getMockArticleItemList: (numberOfItems: number) => ArticleItem[];
6
6
  export declare const getMockWhatsNewArticle: (id: string, routeName?: string, routeGroup?: string, productName?: string, href?: string) => Article;
7
- export declare const getMockWhatsNewArticleItem: (id: string, type?: WHATS_NEW_ITEM_TYPES | undefined, title?: string, description?: string, changeTargetSchedule?: string, status?: string, featureRolloutDate?: string, href?: string) => WhatsNewArticleItem;
7
+ export declare const getMockWhatsNewArticleItem: (id: string, type?: WHATS_NEW_ITEM_TYPES, title?: string, description?: string, changeTargetSchedule?: string, status?: string, featureRolloutDate?: string, href?: string) => WhatsNewArticleItem;
8
8
  export declare const getMockWhatsNewArticleItemList: (numberOfItems: number) => WhatsNewArticleItem[];
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type ArticlesListItemWrapperProps = {
2
+ type ArticlesListItemWrapperProps = {
3
3
  styles: any;
4
4
  };
5
5
  export declare const ArticlesListItemWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, ArticlesListItemWrapperProps, object>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  import { Help as HelpInterface } from '../model/Help';
4
- export declare type Props = HelpInterface & WithAnalyticsEventsProps;
4
+ export type Props = HelpInterface & WithAnalyticsEventsProps;
5
5
  export declare class Help extends React.PureComponent<Props> {
6
6
  render(): JSX.Element;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NotificationLogProvider } from '@atlaskit/notification-log-client';
3
3
  import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- export declare type Props = {
4
+ export type Props = {
5
5
  id?: string;
6
6
  href?: string;
7
7
  notificationMax?: number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type WhatsNewResultListItemWrapperProps = {
2
+ type WhatsNewResultListItemWrapperProps = {
3
3
  styles: any;
4
4
  };
5
5
  export declare const WhatsNewResultListItemWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WhatsNewResultListItemWrapperProps, object>;
@@ -4,7 +4,7 @@ import { Article, ArticleItem } from '../../model/Article';
4
4
  import { WhatsNewArticleItem, WhatsNewArticle } from '../../model/WhatsNew';
5
5
  import { HistoryItem, articleId } from '../../model/Help';
6
6
  import { VIEW } from '../constants';
7
- declare type ViewType = keyof typeof VIEW;
7
+ type ViewType = keyof typeof VIEW;
8
8
  interface NavigationProviderInterface {
9
9
  navigationData?: {
10
10
  articleId: articleId;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  /** @jsx jsx */
3
- declare type HelpBodyProps = {
3
+ type HelpBodyProps = {
4
4
  isOverlayVisible?: boolean;
5
5
  };
6
6
  export declare const HelpBodyContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HelpBodyProps, object>;
7
7
  export declare const HelpBody: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HelpBodyProps, object>;
8
- declare type HomeProps = {
8
+ type HomeProps = {
9
9
  isOverlayFullyVisible?: boolean;
10
10
  isOverlayVisible?: boolean;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare function createCtx<ContextType>(): readonly [
3
- () => ContextType,
3
+ () => NonNullable<ContextType>,
4
4
  import("react").Provider<ContextType | undefined>
5
5
  ];
@@ -1,6 +1,6 @@
1
- declare type LanguageCode = 'zh' | 'cs' | 'da' | 'nl' | 'en' | 'en_GB' | 'et' | 'fi' | 'fr' | 'de' | 'hu' | 'is' | 'it' | 'ja' | 'ko' | 'nb' | 'pl' | 'pt_BR' | 'pt_PT' | 'ro' | 'ru' | 'sk' | 'es' | 'sv';
2
- export declare type LangCode = LanguageCode | 'pt-BR' | 'pt-PT';
3
- declare type LocaleMessages = {
1
+ type LanguageCode = 'zh' | 'cs' | 'da' | 'nl' | 'en' | 'en_GB' | 'et' | 'fi' | 'fr' | 'de' | 'hu' | 'is' | 'it' | 'ja' | 'ko' | 'nb' | 'pl' | 'pt_BR' | 'pt_PT' | 'ro' | 'ru' | 'sk' | 'es' | 'sv';
2
+ export type LangCode = LanguageCode | 'pt-BR' | 'pt-PT';
3
+ type LocaleMessages = {
4
4
  [key: string]: string;
5
5
  };
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
3
- export declare const getTypeIcon: (itemType?: WHATS_NEW_ITEM_TYPES | undefined) => "" | JSX.Element;
3
+ export declare const getTypeIcon: (itemType?: WHATS_NEW_ITEM_TYPES) => "" | JSX.Element;
4
4
  export declare const getTypeTitle: (itemType: WHATS_NEW_ITEM_TYPES) => {
5
5
  id: string;
6
6
  defaultMessage: string;
@@ -5,7 +5,7 @@ export declare const DividerLine: import("@emotion/styled-base").StyledComponent
5
5
  /**
6
6
  * Loading container
7
7
  */
8
- declare type LoadingRectangleProps = {
8
+ type LoadingRectangleProps = {
9
9
  contentWidth?: string;
10
10
  contentHeight?: string;
11
11
  marginTop?: string;
@@ -14,7 +14,7 @@ export declare const LoadingRectangle: import("@emotion/styled-base").StyledComp
14
14
  /**
15
15
  * Loading Circle
16
16
  */
17
- declare type LoadingCircleProps = {
17
+ type LoadingCircleProps = {
18
18
  radius?: string;
19
19
  marginTop?: string;
20
20
  };
@@ -22,7 +22,7 @@ export declare const LoadingCircle: import("@emotion/styled-base").StyledCompone
22
22
  /**
23
23
  * What's new icon
24
24
  */
25
- declare type WhatsNewTypeIconProps = {
25
+ type WhatsNewTypeIconProps = {
26
26
  type?: WHATS_NEW_ITEM_TYPES;
27
27
  };
28
28
  export declare const WhatsNewTypeIcon: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WhatsNewTypeIconProps, object>;
@@ -4,5 +4,5 @@ export declare const getMockArticle: (id: string, routeName?: string, routeGroup
4
4
  export declare const getMockArticleItem: (id: string, routeName?: string, routeGroup?: string, productName?: string, href?: string) => ArticleItem;
5
5
  export declare const getMockArticleItemList: (numberOfItems: number) => ArticleItem[];
6
6
  export declare const getMockWhatsNewArticle: (id: string, routeName?: string, routeGroup?: string, productName?: string, href?: string) => Article;
7
- export declare const getMockWhatsNewArticleItem: (id: string, type?: WHATS_NEW_ITEM_TYPES | undefined, title?: string, description?: string, changeTargetSchedule?: string, status?: string, featureRolloutDate?: string, href?: string) => WhatsNewArticleItem;
7
+ export declare const getMockWhatsNewArticleItem: (id: string, type?: WHATS_NEW_ITEM_TYPES, title?: string, description?: string, changeTargetSchedule?: string, status?: string, featureRolloutDate?: string, href?: string) => WhatsNewArticleItem;
8
8
  export declare const getMockWhatsNewArticleItemList: (numberOfItems: number) => WhatsNewArticleItem[];
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/messages.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/messages.d.ts"
11
+ "../dist/types-ts4.5/messages.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.2.1",
3
+ "version": "7.2.3",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.ts",
17
25
  "atlassian": {
@@ -29,7 +37,7 @@
29
37
  "@atlaskit/analytics": "^8.1.0",
30
38
  "@atlaskit/analytics-next": "^9.1.0",
31
39
  "@atlaskit/button": "^16.7.0",
32
- "@atlaskit/checkbox": "^12.5.0",
40
+ "@atlaskit/checkbox": "^12.6.0",
33
41
  "@atlaskit/form": "^8.11.0",
34
42
  "@atlaskit/help-article": "^4.1.0",
35
43
  "@atlaskit/help-layout": "^4.2.0",
@@ -43,7 +51,7 @@
43
51
  "@atlaskit/textarea": "^4.6.0",
44
52
  "@atlaskit/textfield": "^5.4.0",
45
53
  "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.3.0",
54
+ "@atlaskit/tokens": "^1.4.0",
47
55
  "@atlaskit/tooltip": "^17.8.0",
48
56
  "@babel/runtime": "^7.0.0",
49
57
  "@emotion/core": "^10.0.9",
@@ -68,7 +76,7 @@
68
76
  "algoliasearch": "^3.35.1",
69
77
  "enzyme": "^3.10.0",
70
78
  "react-test-renderer": "^16.8.0",
71
- "typescript": "4.5.5"
79
+ "typescript": "~4.9.5"
72
80
  },
73
81
  "keywords": [
74
82
  "atlaskit",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes