@atlaskit/panel 0.4.9 → 0.4.10

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,11 @@
1
1
  # @atlaskit/panel
2
2
 
3
+ ## 0.4.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
3
9
  ## 0.4.9
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.9"
3
+ "version": "0.4.10"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.9"
3
+ "version": "0.4.10"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.9"
3
+ "version": "0.4.10"
4
4
  }
@@ -0,0 +1,20 @@
1
+ import { PureComponent } from 'react';
2
+ import { BasePanelProps } from './PanelStateless';
3
+ declare type Props = BasePanelProps & {
4
+ /** Defines whether the panel is expanded by default. */
5
+ isDefaultExpanded?: boolean;
6
+ };
7
+ declare type State = {
8
+ isExpanded: boolean;
9
+ };
10
+ export default class Panel extends PureComponent<Props, State> {
11
+ static defaultProps: {
12
+ isDefaultExpanded: boolean;
13
+ };
14
+ state: {
15
+ isExpanded: boolean;
16
+ };
17
+ handleChange: () => void;
18
+ render(): JSX.Element;
19
+ }
20
+ export {};
@@ -0,0 +1,19 @@
1
+ import { PureComponent, ReactNode } from 'react';
2
+ export declare type BasePanelProps = {
3
+ /** Content to be shown inside the panel. */
4
+ children?: ReactNode;
5
+ /** Header to render on the panel. Clicking the header expands and collapses the panel */
6
+ header?: ReactNode;
7
+ };
8
+ export declare type Props = BasePanelProps & {
9
+ /** Defines whether the panel is expanded by default. */
10
+ isExpanded: boolean;
11
+ /** This callback is called when panel is expanded/collapsed */
12
+ onChange: (isExpanded: boolean) => void;
13
+ };
14
+ export default class PanelStateless extends PureComponent<Props> {
15
+ static defaultProps: {
16
+ isExpanded: boolean;
17
+ };
18
+ render(): JSX.Element;
19
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './Panel';
2
+ export { default as PanelStateless } from './PanelStateless';
@@ -0,0 +1,10 @@
1
+ import type { FC, HTMLProps } from 'react';
2
+ export declare const PanelWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
3
+ export declare const ButtonWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
4
+ isHidden: boolean;
5
+ }, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
6
+ isHidden: boolean;
7
+ }>;
8
+ export declare const PanelHeader: FC<HTMLProps<HTMLDivElement> & {
9
+ isFocused?: boolean;
10
+ }>;
@@ -0,0 +1 @@
1
+ export { default, PanelStateless } from './components/Panel';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "A React component rendering a collapsible panel",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,13 @@
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.0 <4.5": {
17
+ "*": [
18
+ "dist/types-ts4.0/*"
19
+ ]
20
+ }
21
+ },
15
22
  "atlaskit:src": "src/index.ts",
16
23
  "atlassian": {
17
24
  "team": "Bitbucket: CoreX",
@@ -24,7 +31,7 @@
24
31
  "dependencies": {
25
32
  "@atlaskit/button": "^16.3.0",
26
33
  "@atlaskit/icon": "^21.10.0",
27
- "@atlaskit/theme": "^12.1.0",
34
+ "@atlaskit/theme": "^12.2.0",
28
35
  "@babel/runtime": "^7.0.0",
29
36
  "react-animate-height": "^2.0.5",
30
37
  "react-focus-within": "^2.0.1"
@@ -35,10 +42,10 @@
35
42
  },
36
43
  "devDependencies": {
37
44
  "@atlaskit/docs": "*",
38
- "@atlaskit/page": "^12.1.0",
45
+ "@atlaskit/page": "^12.2.0",
39
46
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
40
47
  "enzyme": "^3.10.0",
41
- "typescript": "4.3.5"
48
+ "typescript": "4.5.5"
42
49
  },
43
50
  "techstack": {
44
51
  "@atlassian/frontend": {
package/report.api.md CHANGED
@@ -1,6 +1,10 @@
1
- ## API Report File for "@atlaskit/panel".
1
+ ## API Report File for "@atlaskit/panel"
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
4
8
 
5
9
  [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
10
 
@@ -8,47 +12,54 @@
8
12
  import { PureComponent } from 'react';
9
13
  import { ReactNode } from 'react';
10
14
 
11
- declare type BasePanelProps = {
12
- /** Content to be shown inside the panel. */
15
+ // @public (undocumented)
16
+ type BasePanelProps = {
13
17
  children?: ReactNode;
14
- /** Header to render on the panel. Clicking the header expands and collapses the panel */
15
18
  header?: ReactNode;
16
19
  };
17
20
 
18
- declare class Panel extends PureComponent<Props, State> {
21
+ // @public (undocumented)
22
+ class Panel extends PureComponent<Props, State> {
23
+ // (undocumented)
19
24
  static defaultProps: {
20
25
  isDefaultExpanded: boolean;
21
26
  };
27
+ // (undocumented)
28
+ handleChange: () => void;
29
+ // (undocumented)
30
+ render(): JSX.Element;
31
+ // (undocumented)
22
32
  state: {
23
33
  isExpanded: boolean;
24
34
  };
25
- handleChange: () => void;
26
- render(): JSX.Element;
27
35
  }
28
36
  export default Panel;
29
37
 
30
- export declare class PanelStateless extends PureComponent<Props_2> {
38
+ // @public (undocumented)
39
+ export class PanelStateless extends PureComponent<Props_2> {
40
+ // (undocumented)
31
41
  static defaultProps: {
32
42
  isExpanded: boolean;
33
43
  };
44
+ // (undocumented)
34
45
  render(): JSX.Element;
35
46
  }
36
47
 
37
- declare type Props = BasePanelProps & {
38
- /** Defines whether the panel is expanded by default. */
48
+ // @public (undocumented)
49
+ type Props = BasePanelProps & {
39
50
  isDefaultExpanded?: boolean;
40
51
  };
41
52
 
42
- declare type Props_2 = BasePanelProps & {
43
- /** Defines whether the panel is expanded by default. */
53
+ // @public (undocumented)
54
+ type Props_2 = BasePanelProps & {
44
55
  isExpanded: boolean;
45
- /** This callback is called when panel is expanded/collapsed */
46
56
  onChange: (isExpanded: boolean) => void;
47
57
  };
48
58
 
49
- declare type State = {
59
+ // @public (undocumented)
60
+ type State = {
50
61
  isExpanded: boolean;
51
62
  };
52
63
 
53
- export {};
64
+ // (No @packageDocumentation comment for this package)
54
65
  ```