@atlaskit/page-layout 1.5.0 → 1.6.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,21 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 1.6.1
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
+ ## 1.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.5.0
4
20
 
5
21
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -91,7 +91,7 @@ export interface LeftSidebarProps extends SlotWidthProps {
91
91
  */
92
92
  width?: number;
93
93
  }
94
- export declare type SidebarResizeControllerProps = {
94
+ export type SidebarResizeControllerProps = {
95
95
  /**
96
96
  * React children!
97
97
  */
@@ -105,8 +105,8 @@ export declare type SidebarResizeControllerProps = {
105
105
  */
106
106
  onLeftSidebarCollapse?: (leftSidebarState: LeftSidebarState) => void;
107
107
  };
108
- export declare type DimensionNames = 'leftPanelWidth' | 'bannerHeight' | 'topNavigationHeight' | 'leftSidebarWidth' | 'leftSidebarFlyoutWidth' | 'rightSidebarWidth' | 'rightPanelWidth';
109
- export declare type Dimensions = Partial<Record<DimensionNames, number>>;
108
+ export type DimensionNames = 'leftPanelWidth' | 'bannerHeight' | 'topNavigationHeight' | 'leftSidebarWidth' | 'leftSidebarFlyoutWidth' | 'rightSidebarWidth' | 'rightPanelWidth';
109
+ export type Dimensions = Partial<Record<DimensionNames, number>>;
110
110
  export interface PageLayoutProps extends SidebarResizeControllerProps {
111
111
  skipLinksLabel?: string;
112
112
  /**
@@ -2,7 +2,7 @@ import { DimensionNames, Dimensions } from './types';
2
2
  declare const emptyGridState: Dimensions;
3
3
  declare const mergeGridStateIntoStorage: (key: string, value: any) => void;
4
4
  declare const getGridStateFromStorage: (key: string) => any;
5
- declare const removeFromGridStateInStorage: (key: string, secondKey?: string | undefined) => void;
5
+ declare const removeFromGridStateInStorage: (key: string, secondKey?: string) => void;
6
6
  declare const resolveDimension: (key: DimensionNames, dimension?: number, shouldPersist?: boolean) => any;
7
7
  declare const getLeftPanelWidth: () => number;
8
8
  declare const getLeftSidebarPercentage: (currentWidth: number, maxWidth: number) => number;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { ComponentProps } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- export declare type GrabAreaProps = {
4
+ export type GrabAreaProps = {
5
5
  testId?: string;
6
6
  isLeftSidebarCollapsed: boolean;
7
7
  } & ComponentProps<'button'>;
@@ -1,11 +1,11 @@
1
1
  import { ButtonHTMLAttributes, ElementType, ReactElement } from 'react';
2
2
  import { LeftSidebarState } from '../../controllers/sidebar-resize-context';
3
- export declare type ResizeButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ export type ResizeButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
4
4
  isLeftSidebarCollapsed: boolean;
5
5
  label: string;
6
6
  testId?: string;
7
7
  };
8
- export declare type ResizeControlProps = {
8
+ export type ResizeControlProps = {
9
9
  testId?: string;
10
10
  overrides?: {
11
11
  ResizeButton?: {
@@ -1,8 +1,8 @@
1
- export declare type SkipLinkData = {
1
+ export type SkipLinkData = {
2
2
  id: string;
3
3
  name: string;
4
4
  ref?: undefined;
5
5
  };
6
- export declare type SkipLinkWrapperProps = {
6
+ export type SkipLinkWrapperProps = {
7
7
  skipLinksLabel?: string;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import type { ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- declare type LeftSidebarInnerProps = {
4
+ type LeftSidebarInnerProps = {
5
5
  children: ReactNode;
6
6
  isFixed?: boolean;
7
7
  isFlyoutOpen?: boolean;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { MouseEventHandler, ReactNode } from 'react';
3
- declare type LeftSidebarOuterProps = {
3
+ type LeftSidebarOuterProps = {
4
4
  children: ReactNode;
5
5
  isFixed?: boolean;
6
6
  isFlyoutOpen?: boolean;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import type { ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- declare type ResizableChildrenWrapperProps = {
4
+ type ResizableChildrenWrapperProps = {
5
5
  children: ReactNode;
6
6
  isFlyoutOpen?: boolean;
7
7
  isLeftSidebarCollapsed?: boolean;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import type { ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- declare type SlotFocusRingProps = {
4
+ type SlotFocusRingProps = {
5
5
  children: (props: {
6
6
  className: string;
7
7
  }) => ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { KeyboardEvent, MouseEvent } from 'react';
2
- export declare type LeftSidebarState = {
2
+ export type LeftSidebarState = {
3
3
  isFlyoutOpen: boolean;
4
4
  isResizing: boolean;
5
5
  isLeftSidebarCollapsed: boolean;
@@ -8,7 +8,7 @@ export declare type LeftSidebarState = {
8
8
  flyoutLockCount: number;
9
9
  isFixed: boolean;
10
10
  };
11
- export declare type SidebarResizeContextValue = {
11
+ export type SidebarResizeContextValue = {
12
12
  isLeftSidebarCollapsed: boolean;
13
13
  expandLeftSidebar: () => void;
14
14
  collapseLeftSidebar: (event?: MouseEvent | KeyboardEvent, collapseWithoutTransition?: boolean) => void;
@@ -19,7 +19,7 @@ export declare const SidebarResizeContext: import("react").Context<SidebarResize
19
19
  export declare const usePageLayoutResize: () => {
20
20
  isLeftSidebarCollapsed: boolean;
21
21
  expandLeftSidebar: () => void;
22
- collapseLeftSidebar: (event?: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element> | undefined, collapseWithoutTransition?: boolean | undefined) => void;
22
+ collapseLeftSidebar: (event?: MouseEvent | KeyboardEvent, collapseWithoutTransition?: boolean) => void;
23
23
  leftSidebarState: LeftSidebarState;
24
24
  };
25
25
  /**
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkipLinkContextProps } from './types';
2
+ import { SkipLinkContextProps, SkipLinkData } from './types';
3
3
  export declare const SkipLinksContext: import("react").Context<SkipLinkContextProps>;
4
4
  export declare const useSkipLinks: () => SkipLinkContextProps;
5
- export declare const useSkipLink: (id?: string | undefined, skipLinkTitle?: string | undefined) => void;
5
+ export declare const useSkipLink: (id?: SkipLinkData['id'], skipLinkTitle?: SkipLinkData['skipLinkTitle']) => void;
@@ -1,9 +1,9 @@
1
- export declare type SkipLinkContextProps = {
1
+ export type SkipLinkContextProps = {
2
2
  skipLinksData: SkipLinkData[];
3
3
  registerSkipLink: (skipLinkDate: SkipLinkData) => void;
4
4
  unregisterSkipLink: (id: string | undefined) => void;
5
5
  };
6
- export declare type SkipLinkData = {
6
+ export type SkipLinkData = {
7
7
  /**
8
8
  * id for the element that will be skipped to
9
9
  */
@@ -17,6 +17,6 @@ export declare type SkipLinkData = {
17
17
  */
18
18
  listIndex?: number;
19
19
  };
20
- export declare type SkipLinkI18n = {
20
+ export type SkipLinkI18n = {
21
21
  title: string;
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "A collection of components which let you compose an application's page layout.",
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.tsx",
17
25
  "atlassian": {
@@ -25,11 +33,11 @@
25
33
  },
26
34
  "homepage": "https://atlassian.design/components/page-layout/",
27
35
  "dependencies": {
28
- "@atlaskit/ds-lib": "^2.1.0",
29
- "@atlaskit/icon": "^21.11.0",
30
- "@atlaskit/motion": "^1.3.0",
31
- "@atlaskit/theme": "^12.4.0",
32
- "@atlaskit/tokens": "^1.2.0",
36
+ "@atlaskit/ds-lib": "^2.2.0",
37
+ "@atlaskit/icon": "^21.12.0",
38
+ "@atlaskit/motion": "^1.4.0",
39
+ "@atlaskit/theme": "^12.5.0",
40
+ "@atlaskit/tokens": "^1.4.0",
33
41
  "@babel/runtime": "^7.0.0",
34
42
  "@emotion/react": "^11.7.1",
35
43
  "bind-event-listener": "^2.1.1",
@@ -40,20 +48,20 @@
40
48
  "react-dom": "^16.8.0"
41
49
  },
42
50
  "devDependencies": {
43
- "@atlaskit/atlassian-navigation": "^2.4.0",
44
- "@atlaskit/atlassian-notifications": "^0.3.0",
45
- "@atlaskit/button": "^16.6.0",
51
+ "@atlaskit/atlassian-navigation": "^2.5.0",
52
+ "@atlaskit/atlassian-notifications": "^0.4.0",
53
+ "@atlaskit/button": "^16.7.0",
46
54
  "@atlaskit/docs": "*",
47
- "@atlaskit/drawer": "^7.4.0",
55
+ "@atlaskit/drawer": "^7.5.0",
48
56
  "@atlaskit/icon": "*",
49
- "@atlaskit/logo": "^13.13.0",
50
- "@atlaskit/menu": "^1.5.0",
51
- "@atlaskit/notification-indicator": "^9.0.0",
52
- "@atlaskit/notification-log-client": "^6.0.0",
53
- "@atlaskit/onboarding": "^10.7.0",
54
- "@atlaskit/popup": "^1.5.0",
55
- "@atlaskit/section-message": "^6.3.0",
56
- "@atlaskit/side-navigation": "^1.6.0",
57
+ "@atlaskit/logo": "^13.14.0",
58
+ "@atlaskit/menu": "^1.6.0",
59
+ "@atlaskit/notification-indicator": "^9.1.0",
60
+ "@atlaskit/notification-log-client": "^6.1.0",
61
+ "@atlaskit/onboarding": "^10.8.0",
62
+ "@atlaskit/popup": "^1.6.0",
63
+ "@atlaskit/section-message": "^6.4.0",
64
+ "@atlaskit/side-navigation": "^1.7.0",
57
65
  "@atlaskit/ssr": "*",
58
66
  "@atlaskit/tooltip": "*",
59
67
  "@atlaskit/visual-regression": "*",
@@ -66,7 +74,7 @@
66
74
  "jest-emotion": "^10.0.32",
67
75
  "raf-stub": "^2.0.1",
68
76
  "storybook-addon-performance": "^0.16.0",
69
- "typescript": "4.5.5"
77
+ "typescript": "~4.9.5"
70
78
  },
71
79
  "keywords": [
72
80
  "atlaskit",