@atlaskit/help-layout 4.2.0 → 4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/help-layout
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
8
+
9
+ ## 4.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`7e051bad115`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e051bad115) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
14
+
3
15
  ## 4.2.0
4
16
 
5
17
  ### Minor 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-layout",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help-layout",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help-layout",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  import { HelpLayout as HelpLayoutProps } from '../model/HelpLayout';
4
- export declare type Props = HelpLayoutProps & WithAnalyticsEventsProps;
4
+ export type Props = HelpLayoutProps & WithAnalyticsEventsProps;
5
5
  export declare class HelpLayout extends React.PureComponent<Props> {
6
6
  render(): JSX.Element;
7
7
  }
@@ -8,7 +8,7 @@ export declare const HelpFooter: import("@emotion/styled-base").StyledComponent<
8
8
  * Loading
9
9
  */
10
10
  export declare const LoadingContainer: 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>;
11
- declare type LoadingRectangleProps = {
11
+ type LoadingRectangleProps = {
12
12
  contentWidth?: string;
13
13
  contentHeight?: string;
14
14
  marginTop?: string;
@@ -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
  /**
@@ -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-layout",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Layout for the atlaskit/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": {
@@ -28,7 +36,7 @@
28
36
  "@atlaskit/button": "^16.7.0",
29
37
  "@atlaskit/icon": "^21.12.0",
30
38
  "@atlaskit/theme": "^12.5.0",
31
- "@atlaskit/tokens": "^1.3.0",
39
+ "@atlaskit/tokens": "^1.4.0",
32
40
  "@atlaskit/tooltip": "^17.8.0",
33
41
  "@babel/runtime": "^7.0.0",
34
42
  "@emotion/core": "^10.0.9",
@@ -50,7 +58,7 @@
50
58
  "algoliasearch": "^3.35.1",
51
59
  "enzyme": "^3.10.0",
52
60
  "react-test-renderer": "^16.8.0",
53
- "typescript": "4.5.5"
61
+ "typescript": "~4.9.5"
54
62
  },
55
63
  "keywords": [
56
64
  "atlaskit",
@@ -62,7 +70,8 @@
62
70
  "techstack": {
63
71
  "@repo/internal": {
64
72
  "design-tokens": [
65
- "color"
73
+ "color",
74
+ "spacing"
66
75
  ]
67
76
  }
68
77
  }
@@ -0,0 +1,47 @@
1
+ ## API Report File for "@atlaskit/help-layout"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { default as React_2 } from 'react';
10
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
11
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
12
+ import { WithContextProps } from '@atlaskit/analytics-next';
13
+
14
+ // @public (undocumented)
15
+ const _default: React_2.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "key" | keyof HelpLayout> & React_2.RefAttributes<any>>;
16
+ export default _default;
17
+
18
+ // @public (undocumented)
19
+ interface HelpLayout extends HelpPanelHeader {
20
+ // (undocumented)
21
+ children?: React.ReactNode;
22
+ // (undocumented)
23
+ footer?: React.ReactNode;
24
+ // (undocumented)
25
+ isLoading?: boolean;
26
+ }
27
+
28
+ // @public (undocumented)
29
+ interface HelpPanelHeader {
30
+ // (undocumented)
31
+ headerContent?: React.ReactNode;
32
+ // (undocumented)
33
+ headerTitle?: string;
34
+ // (undocumented)
35
+ isBackbuttonVisible?: boolean;
36
+ // (undocumented)
37
+ onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
38
+ // (undocumented)
39
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
40
+ }
41
+
42
+ // @public (undocumented)
43
+ type Props = HelpLayout & WithAnalyticsEventsProps;
44
+
45
+ // (No @packageDocumentation comment for this package)
46
+
47
+ ```