@atlaskit/side-navigation 1.6.6 → 1.6.7

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/side-navigation
2
2
 
3
+ ## 1.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
8
+
3
9
  ## 1.6.6
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "A highly composable side navigation component that supports nested views.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/menu": "^1.5.0",
31
31
  "@atlaskit/motion": "^1.3.0",
32
32
  "@atlaskit/primitives": "^0.8.0",
33
- "@atlaskit/theme": "^12.3.0",
33
+ "@atlaskit/theme": "^12.4.0",
34
34
  "@atlaskit/tokens": "^1.2.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/react": "^11.7.1"
package/report.api.md CHANGED
@@ -59,7 +59,31 @@ interface CustomItemPropsHack {
59
59
  }
60
60
 
61
61
  // @public
62
- export const Footer: (props: HeaderProps) => JSX.Element;
62
+ export const Footer: ({
63
+ useDeprecatedApi,
64
+ description,
65
+ iconBefore,
66
+ testId,
67
+ children,
68
+ component,
69
+ cssFn,
70
+ onClick,
71
+ }: FooterFacadeProps) => JSX.Element;
72
+
73
+ // @public (undocumented)
74
+ type FooterFacadeProps =
75
+ | (HeaderProps & {
76
+ useDeprecatedApi?: true;
77
+ })
78
+ | (NewFooterProps & {
79
+ useDeprecatedApi?: false;
80
+ cssFn?: never;
81
+ component?: never;
82
+ onClick?: never;
83
+ });
84
+
85
+ // @public (undocumented)
86
+ export type FooterProps = HeaderProps | NewFooterProps;
63
87
 
64
88
  // @public
65
89
  export const GoBackItem: React_2.ForwardRefExoticComponent<
@@ -72,18 +96,15 @@ export const Header: React_2.ForwardRefExoticComponent<
72
96
  >;
73
97
 
74
98
  // @public (undocumented)
75
- interface HeaderProps {
76
- children?: React_2.ReactNode;
77
- component?: React_2.ComponentType<CustomItemComponentProps>;
78
- // @deprecated
99
+ export type HeaderProps = {
79
100
  cssFn?: CSSFn;
80
- description?: JSX.Element | string;
81
101
  iconBefore?: React_2.ReactNode;
82
102
  onClick?: (event: React_2.KeyboardEvent | React_2.MouseEvent) => void;
103
+ description?: JSX.Element | string;
104
+ children?: React_2.ReactNode;
83
105
  testId?: string;
84
- }
85
- export { HeaderProps as FooterProps };
86
- export { HeaderProps };
106
+ component?: React_2.ComponentType<CustomItemComponentProps>;
107
+ };
87
108
 
88
109
  // @public
89
110
  export const HeadingItem: (props: HeadingItemProps) => JSX.Element | null;
@@ -211,6 +232,9 @@ export interface NestingItemProps<
211
232
  title: React_2.ReactNode;
212
233
  }
213
234
 
235
+ // @public (undocumented)
236
+ type NewFooterProps = Omit<HeaderProps, 'component' | 'cssFn' | 'onClick'>;
237
+
214
238
  // @public
215
239
  export const Section: React_2.ForwardRefExoticComponent<
216
240
  SectionProps & React_2.RefAttributes<HTMLElement>