@atlaskit/mobile-header 7.0.39 → 8.0.1

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,37 @@
1
1
  # @atlaskit/mobile-header
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
14
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
15
+
16
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
17
+
18
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
19
+
20
+ ```diff
21
+ - "typesVersions": {
22
+ - ">=4.5 <4.9": {
23
+ - "*": [
24
+ - "dist/types-ts4.5/*",
25
+ - "dist/types-ts4.5/index.d.ts"
26
+ - ]
27
+ - }
28
+ - },
29
+ ```
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 7.0.39
4
36
 
5
37
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "7.0.39",
3
+ "version": "8.0.1",
4
4
  "description": "A React component rendering a mobile header",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,14 +12,6 @@
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
- },
23
15
  "atlaskit:src": "src/index.ts",
24
16
  "atlassian": {
25
17
  "team": "Bitbucket: CoreX",
@@ -28,10 +20,10 @@
28
20
  }
29
21
  },
30
22
  "dependencies": {
31
- "@atlaskit/button": "^23.11.0",
32
- "@atlaskit/icon": "^35.1.0",
33
- "@atlaskit/theme": "^25.0.0",
34
- "@atlaskit/tokens": "^13.0.0",
23
+ "@atlaskit/button": "^24.1.0",
24
+ "@atlaskit/icon": "^36.0.0",
25
+ "@atlaskit/theme": "^26.0.0",
26
+ "@atlaskit/tokens": "^15.0.0",
35
27
  "@babel/runtime": "^7.0.0",
36
28
  "@emotion/styled": "^11.0.0"
37
29
  },
@@ -40,7 +32,7 @@
40
32
  "react": "^18.2.0"
41
33
  },
42
34
  "devDependencies": {
43
- "@atlassian/a11y-jest-testing": "^0.11.0",
35
+ "@atlassian/a11y-jest-testing": "^0.12.0",
44
36
  "@testing-library/react": "^16.3.0",
45
37
  "@testing-library/user-event": "^14.4.3",
46
38
  "react": "^18.2.0",
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/styled.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/styled.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/styled.d.ts"
17
10
  }
@@ -1,35 +0,0 @@
1
- import React, { PureComponent, type ReactNode } from 'react';
2
- interface MobileHeaderProps {
3
- customMenu?: ReactNode;
4
- drawerState: 'navigation' | 'sidebar' | 'none' | string;
5
- menuIconLabel: string;
6
- navigation?: (isOpen: boolean) => ReactNode;
7
- onDrawerClose?: () => void;
8
- onNavigationOpen?: () => void;
9
- pageHeading: ReactNode;
10
- secondaryContent?: ReactNode;
11
- sidebar?: (isOpen: boolean) => ReactNode;
12
- topOffset?: number;
13
- }
14
- interface MobileHeaderState {
15
- isAnimatingNavigation: boolean;
16
- isAnimatingSidebar: boolean;
17
- }
18
- declare class MobileHeader extends PureComponent<MobileHeaderProps, MobileHeaderState> {
19
- state: {
20
- isAnimatingNavigation: boolean;
21
- isAnimatingSidebar: boolean;
22
- };
23
- static defaultProps: {
24
- topOffset: number;
25
- pageHeading: string;
26
- menuIconLabel: string;
27
- drawerState: string;
28
- };
29
- UNSAFE_componentWillReceiveProps(nextProps: MobileHeaderProps): void;
30
- handleNavSlideFinish: () => void;
31
- handleSidebarSlideFinish: () => void;
32
- renderSlider: (isOpen: boolean, isAnimating: boolean, onTransitionEnd: ((event: React.TransitionEvent<HTMLDivElement>) => void) | undefined, side: string, renderFn?: (isOpen: boolean) => ReactNode, topOffset?: number) => React.JSX.Element;
33
- render(): React.JSX.Element;
34
- }
35
- export default MobileHeader;
@@ -1 +0,0 @@
1
- export { default } from './components/MobileHeader';
@@ -1,37 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import { type Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- type StyledMobileNavSlider = StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- } & {
8
- isOpen: boolean;
9
- side: string;
10
- topOffset: number | undefined;
11
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
- export declare const MobileNavSlider: StyledMobileNavSlider;
13
- type StyledMobilePageHeader = StyledComponent<{
14
- as?: React.ElementType;
15
- theme?: Theme;
16
- }, DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
17
- export declare const MobilePageHeader: StyledMobilePageHeader;
18
- type StyledMobilePageHeaderContent = StyledComponent<{
19
- as?: React.ElementType;
20
- theme?: Theme;
21
- } & {
22
- topOffset: number | undefined;
23
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
24
- export declare const MobilePageHeaderContent: StyledMobilePageHeaderContent;
25
- type StyledFakeBlanket = StyledComponent<{
26
- as?: React.ElementType;
27
- theme?: Theme;
28
- } & {
29
- isOpen: boolean;
30
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
31
- export declare const FakeBlanket: StyledFakeBlanket;
32
- type StyledPageHeading = StyledComponent<{
33
- as?: React.ElementType;
34
- theme?: Theme;
35
- }, DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
36
- export declare const PageHeading: StyledPageHeading;
37
- export {};