@atlaskit/mobile-header 5.0.9 → 5.0.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/mobile-header
2
2
 
3
+ ## 5.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
8
+
3
9
  ## 5.0.9
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "5.0.9"
3
+ "version": "5.0.10"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "5.0.9"
3
+ "version": "5.0.10"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "5.0.9"
3
+ "version": "5.0.10"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "5.0.9",
3
+ "version": "5.0.10",
4
4
  "description": "A React component rendering a mobile header",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,14 +32,14 @@
32
32
  "styled-components": "^3.2.6"
33
33
  },
34
34
  "devDependencies": {
35
- "@atlaskit/banner": "^11.3.0",
35
+ "@atlaskit/banner": "^11.6.0",
36
36
  "@atlaskit/docs": "*",
37
37
  "@atlaskit/navigation": "^37.0.0",
38
38
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
39
39
  "enzyme": "^3.10.0",
40
40
  "react-dom": "^16.8.0",
41
41
  "react-test-renderer": "^16.8.0",
42
- "typescript": "4.2.4"
42
+ "typescript": "4.3.5"
43
43
  },
44
44
  "techstack": {
45
45
  "@atlassian/frontend": {
package/report.api.md ADDED
@@ -0,0 +1,62 @@
1
+ ## API Report File for "@atlaskit/mobile-header".
2
+
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
+
7
+ ```ts
8
+ import { PureComponent } from 'react';
9
+ import { default as React_2 } from 'react';
10
+ import { ReactNode } from 'react';
11
+
12
+ declare class MobileHeader extends PureComponent<
13
+ MobileHeaderProps,
14
+ MobileHeaderState
15
+ > {
16
+ state: {
17
+ isAnimatingNavigation: boolean;
18
+ isAnimatingSidebar: boolean;
19
+ };
20
+ static defaultProps: {
21
+ topOffset: number;
22
+ pageHeading: string;
23
+ menuIconLabel: string;
24
+ drawerState: string;
25
+ };
26
+ UNSAFE_componentWillReceiveProps(nextProps: MobileHeaderProps): void;
27
+ handleNavSlideFinish: () => void;
28
+ handleSidebarSlideFinish: () => void;
29
+ renderSlider: (
30
+ isOpen: boolean,
31
+ isAnimating: boolean,
32
+ onTransitionEnd:
33
+ | ((event: React_2.TransitionEvent<HTMLDivElement>) => void)
34
+ | undefined,
35
+ side: string,
36
+ renderFn?: ((isOpen: boolean) => ReactNode) | undefined,
37
+ topOffset?: number | undefined,
38
+ ) => JSX.Element;
39
+ render(): JSX.Element;
40
+ }
41
+ export default MobileHeader;
42
+
43
+ declare interface MobileHeaderProps {
44
+ navigation?: (isOpen: boolean) => ReactNode;
45
+ sidebar?: (isOpen: boolean) => ReactNode;
46
+ onNavigationOpen?: () => void;
47
+ onDrawerClose?: () => void;
48
+ drawerState: 'navigation' | 'sidebar' | 'none' | string;
49
+ secondaryContent?: ReactNode;
50
+ pageHeading: ReactNode;
51
+ menuIconLabel: string;
52
+ customMenu?: ReactNode;
53
+ topOffset?: number;
54
+ }
55
+
56
+ declare interface MobileHeaderState {
57
+ isAnimatingSidebar: boolean;
58
+ isAnimatingNavigation: boolean;
59
+ }
60
+
61
+ export {};
62
+ ```