@atlaskit/atlassian-navigation 5.3.18 → 5.3.19
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 +8 -0
- package/dist/types/components/AppSwitcher/index.d.ts +2 -2
- package/dist/types/components/Help/index.d.ts +2 -3
- package/dist/types/components/IconButton/index.d.ts +2 -5
- package/dist/types/components/Notifications/index.d.ts +2 -3
- package/dist/types/components/PrimaryButton/index.d.ts +2 -7
- package/dist/types/components/PrimaryDropdownButton/index.d.ts +2 -5
- package/dist/types/components/Profile/index.d.ts +1 -5
- package/dist/types/components/Settings/index.d.ts +2 -1
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +2 -2
- package/dist/types-ts4.5/components/Help/index.d.ts +2 -3
- package/dist/types-ts4.5/components/IconButton/index.d.ts +2 -5
- package/dist/types-ts4.5/components/Notifications/index.d.ts +2 -3
- package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +2 -7
- package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +2 -5
- package/dist/types-ts4.5/components/Profile/index.d.ts +1 -5
- package/dist/types-ts4.5/components/Settings/index.d.ts +2 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 5.3.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`39e543109ec09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39e543109ec09) -
|
|
8
|
+
add type info to forwardRef components
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 5.3.18
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ import { type AppSwitcherProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const AppSwitcher: React.ForwardRefExoticComponent<
|
|
13
|
-
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const AppSwitcher: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
|
|
13
|
+
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
|
|
14
14
|
declare const _default: (props: AppSwitcherProps) => void;
|
|
15
15
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type HelpProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Help__
|
|
4
5
|
*
|
|
@@ -7,6 +8,4 @@ import React from 'react';
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#help)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const Help: React.ForwardRefExoticComponent<
|
|
11
|
-
badge?: React.ComponentType<{}>;
|
|
12
|
-
} & React.RefAttributes<any>>;
|
|
11
|
+
export declare const Help: React.ForwardRefExoticComponent<React.PropsWithoutRef<HelpProps> & React.RefAttributes<any>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type IconButtonProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Icon button__
|
|
4
5
|
*
|
|
@@ -8,8 +9,4 @@ import React from 'react';
|
|
|
8
9
|
* rely on the defaults.
|
|
9
10
|
*
|
|
10
11
|
*/
|
|
11
|
-
export declare const IconButton: React.ForwardRefExoticComponent<
|
|
12
|
-
icon: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["iconBefore"];
|
|
13
|
-
theme?: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["theme"];
|
|
14
|
-
isTooltipAnnouncementDisabled?: boolean;
|
|
15
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
export declare const IconButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<IconButtonProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type NotificationsProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Notifications__
|
|
4
5
|
*
|
|
@@ -8,6 +9,4 @@ import React from 'react';
|
|
|
8
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#notifications)
|
|
9
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
10
11
|
*/
|
|
11
|
-
export declare const Notifications: React.ForwardRefExoticComponent<
|
|
12
|
-
badge: React.ComponentType<{}>;
|
|
13
|
-
} & React.RefAttributes<any>>;
|
|
12
|
+
export declare const Notifications: React.ForwardRefExoticComponent<React.PropsWithoutRef<NotificationsProps> & React.RefAttributes<any>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PrimaryButtonProps } from './types';
|
|
1
2
|
/**
|
|
2
3
|
* __Primary button__
|
|
3
4
|
*
|
|
@@ -7,10 +8,4 @@
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#dropdown-menu)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const PrimaryButton:
|
|
11
|
-
component?: import("react").ComponentType<import("react").AllHTMLAttributes<HTMLElement>> | import("react").ElementType<any>;
|
|
12
|
-
isHighlighted?: boolean;
|
|
13
|
-
testId?: string;
|
|
14
|
-
tooltip?: React.ReactNode;
|
|
15
|
-
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
16
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
export declare const PrimaryButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryButtonProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PrimaryDropdownButtonProps } from './types';
|
|
1
2
|
/**
|
|
2
3
|
* __Primary dropdown button__
|
|
3
4
|
*
|
|
@@ -7,8 +8,4 @@
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#button)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const PrimaryDropdownButton:
|
|
11
|
-
isHighlighted?: boolean;
|
|
12
|
-
testId?: string;
|
|
13
|
-
tooltip?: React.ReactNode;
|
|
14
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
export declare const PrimaryDropdownButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryDropdownButtonProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -9,10 +9,6 @@ import { type ProfileProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#profile)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Profile: React.ForwardRefExoticComponent<
|
|
13
|
-
icon: import("@atlaskit/button").CustomThemeButtonProps["iconBefore"];
|
|
14
|
-
theme?: import("@atlaskit/button").CustomThemeButtonProps["theme"];
|
|
15
|
-
isTooltipAnnouncementDisabled?: boolean;
|
|
16
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
|
|
17
13
|
declare const _default: (props: ProfileProps) => void;
|
|
18
14
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type SettingsProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Settings__
|
|
4
5
|
*
|
|
@@ -7,4 +8,4 @@ import React from 'react';
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#settings)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const Settings: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const Settings: React.ForwardRefExoticComponent<React.PropsWithoutRef<SettingsProps> & React.RefAttributes<any>>;
|
|
@@ -9,7 +9,7 @@ import { type AppSwitcherProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const AppSwitcher: React.ForwardRefExoticComponent<
|
|
13
|
-
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const AppSwitcher: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
|
|
13
|
+
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
|
|
14
14
|
declare const _default: (props: AppSwitcherProps) => void;
|
|
15
15
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type HelpProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Help__
|
|
4
5
|
*
|
|
@@ -7,6 +8,4 @@ import React from 'react';
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#help)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const Help: React.ForwardRefExoticComponent<
|
|
11
|
-
badge?: React.ComponentType<{}>;
|
|
12
|
-
} & React.RefAttributes<any>>;
|
|
11
|
+
export declare const Help: React.ForwardRefExoticComponent<React.PropsWithoutRef<HelpProps> & React.RefAttributes<any>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type IconButtonProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Icon button__
|
|
4
5
|
*
|
|
@@ -8,8 +9,4 @@ import React from 'react';
|
|
|
8
9
|
* rely on the defaults.
|
|
9
10
|
*
|
|
10
11
|
*/
|
|
11
|
-
export declare const IconButton: React.ForwardRefExoticComponent<
|
|
12
|
-
icon: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["iconBefore"];
|
|
13
|
-
theme?: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["theme"];
|
|
14
|
-
isTooltipAnnouncementDisabled?: boolean;
|
|
15
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
export declare const IconButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<IconButtonProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type NotificationsProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Notifications__
|
|
4
5
|
*
|
|
@@ -8,6 +9,4 @@ import React from 'react';
|
|
|
8
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#notifications)
|
|
9
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
10
11
|
*/
|
|
11
|
-
export declare const Notifications: React.ForwardRefExoticComponent<
|
|
12
|
-
badge: React.ComponentType<{}>;
|
|
13
|
-
} & React.RefAttributes<any>>;
|
|
12
|
+
export declare const Notifications: React.ForwardRefExoticComponent<React.PropsWithoutRef<NotificationsProps> & React.RefAttributes<any>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PrimaryButtonProps } from './types';
|
|
1
2
|
/**
|
|
2
3
|
* __Primary button__
|
|
3
4
|
*
|
|
@@ -7,10 +8,4 @@
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#dropdown-menu)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const PrimaryButton:
|
|
11
|
-
component?: import("react").ComponentType<import("react").AllHTMLAttributes<HTMLElement>> | import("react").ElementType<any>;
|
|
12
|
-
isHighlighted?: boolean;
|
|
13
|
-
testId?: string;
|
|
14
|
-
tooltip?: React.ReactNode;
|
|
15
|
-
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
16
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
export declare const PrimaryButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryButtonProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PrimaryDropdownButtonProps } from './types';
|
|
1
2
|
/**
|
|
2
3
|
* __Primary dropdown button__
|
|
3
4
|
*
|
|
@@ -7,8 +8,4 @@
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#button)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const PrimaryDropdownButton:
|
|
11
|
-
isHighlighted?: boolean;
|
|
12
|
-
testId?: string;
|
|
13
|
-
tooltip?: React.ReactNode;
|
|
14
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
export declare const PrimaryDropdownButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryDropdownButtonProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -9,10 +9,6 @@ import { type ProfileProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#profile)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Profile: React.ForwardRefExoticComponent<
|
|
13
|
-
icon: import("@atlaskit/button").CustomThemeButtonProps["iconBefore"];
|
|
14
|
-
theme?: import("@atlaskit/button").CustomThemeButtonProps["theme"];
|
|
15
|
-
isTooltipAnnouncementDisabled?: boolean;
|
|
16
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
|
|
17
13
|
declare const _default: (props: ProfileProps) => void;
|
|
18
14
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type SettingsProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* __Settings__
|
|
4
5
|
*
|
|
@@ -7,4 +8,4 @@ import React from 'react';
|
|
|
7
8
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#settings)
|
|
8
9
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
10
|
*/
|
|
10
|
-
export declare const Settings: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const Settings: React.ForwardRefExoticComponent<React.PropsWithoutRef<SettingsProps> & React.RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.19",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian apps.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/analytics-namespaced-context": "^7.
|
|
39
|
+
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
40
40
|
"@atlaskit/button": "^23.4.0",
|
|
41
|
-
"@atlaskit/ds-lib": "^5.
|
|
42
|
-
"@atlaskit/icon": "^28.
|
|
41
|
+
"@atlaskit/ds-lib": "^5.1.0",
|
|
42
|
+
"@atlaskit/icon": "^28.3.0",
|
|
43
43
|
"@atlaskit/logo": "^19.7.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/popup": "^4.4.0",
|
|
46
|
-
"@atlaskit/primitives": "^14.
|
|
46
|
+
"@atlaskit/primitives": "^14.15.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tokens": "^6.
|
|
49
|
-
"@atlaskit/tooltip": "^20.
|
|
48
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
49
|
+
"@atlaskit/tooltip": "^20.5.0",
|
|
50
50
|
"@atlaskit/width-detector": "^5.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"@af/visual-regression": "workspace:^",
|
|
63
63
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
64
64
|
"@atlaskit/atlassian-notifications": "^0.7.0",
|
|
65
|
-
"@atlaskit/avatar": "^25.
|
|
65
|
+
"@atlaskit/avatar": "^25.2.0",
|
|
66
66
|
"@atlaskit/badge": "^18.1.0",
|
|
67
67
|
"@atlaskit/docs": "^11.1.0",
|
|
68
68
|
"@atlaskit/drawer": "^11.0.0",
|
|
69
69
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
70
|
-
"@atlaskit/form": "^
|
|
70
|
+
"@atlaskit/form": "^14.2.0",
|
|
71
71
|
"@atlaskit/menu": "^8.4.0",
|
|
72
72
|
"@atlaskit/notification-indicator": "^10.0.0",
|
|
73
73
|
"@atlaskit/notification-log-client": "^6.2.0",
|
|
74
74
|
"@atlaskit/section-message": "^8.7.0",
|
|
75
75
|
"@atlaskit/spinner": "^19.0.0",
|
|
76
76
|
"@atlaskit/textfield": "^8.0.0",
|
|
77
|
-
"@atlassian/switcher": "^
|
|
77
|
+
"@atlassian/switcher": "^39.4.0",
|
|
78
78
|
"@atlassian/switcher-test-utils": "^7.2.0",
|
|
79
79
|
"@testing-library/react": "^13.4.0",
|
|
80
80
|
"@testing-library/react-hooks": "^8.0.1",
|