@atlaskit/atlassian-navigation 2.4.1 → 2.5.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 +16 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types/components/Help/types.d.ts +1 -1
- package/dist/types/components/IconButton/types.d.ts +1 -1
- package/dist/types/components/Notifications/types.d.ts +1 -1
- package/dist/types/components/PrimaryButton/types.d.ts +2 -2
- package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/types.d.ts +2 -2
- package/dist/types/components/ProductHome/utils.d.ts +1 -1
- package/dist/types/components/Profile/types.d.ts +1 -1
- package/dist/types/components/Search/types.d.ts +1 -1
- package/dist/types/components/Settings/types.d.ts +1 -1
- package/dist/types/components/SignIn/types.d.ts +1 -1
- package/dist/types/components/SkeletonCreateButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types/controllers/overflow/types.d.ts +1 -1
- package/dist/types/skeleton-help-button.d.ts +1 -1
- package/dist/types/skeleton-notification-button.d.ts +1 -1
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types/theme/types.d.ts +15 -15
- package/package.json +19 -11
- package/skeleton/package.json +2 -2
- package/skeleton-help-button/package.json +2 -2
- package/skeleton-notification-button/package.json +2 -2
- package/skeleton-settings-button/package.json +2 -2
- package/skeleton-switcher-button/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 2.5.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
|
+
## 2.5.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
|
## 2.4.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BaseIconButtonProps } from '../IconButton/types';
|
|
2
|
-
export
|
|
2
|
+
export type AppSwitcherProps = BaseIconButtonProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { BaseIconButtonProps } from '../IconButton/types';
|
|
3
|
-
export
|
|
3
|
+
export type HelpProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
6
6
|
* Generally you'll want to use `NotificationIndicator` from [`@atlaskit/notification-indicator`](/packages/notifications/notification-indicator).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { BaseIconButtonProps } from '../IconButton/types';
|
|
3
|
-
export
|
|
3
|
+
export type NotificationsProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
6
6
|
* Generally you'll want to use `NotificationIndicator` from [`@atlaskit/notification-indicator`](/packages/notifications/notification-indicator).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AllHTMLAttributes, ComponentType, ElementType } from 'react';
|
|
2
2
|
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
|
-
export
|
|
3
|
+
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Allows for overriding the component used to render the button.
|
|
6
6
|
*
|
|
@@ -38,6 +38,6 @@ export declare type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearanc
|
|
|
38
38
|
*/
|
|
39
39
|
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type PrimaryButtonSkeletonProps = {
|
|
42
42
|
className?: string;
|
|
43
43
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PrimaryButtonProps } from '../PrimaryButton/types';
|
|
3
|
-
export
|
|
3
|
+
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Will set the appearance of the button to look highlighted.
|
|
6
6
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentType, ReactNode, ReactNodeArray } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type PrimaryItemsContainerProps = {
|
|
3
3
|
moreLabel: ReactNode;
|
|
4
4
|
items: ReactNodeArray;
|
|
5
5
|
create?: ComponentType<{}>;
|
|
6
6
|
testId?: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type PrimaryItemsContainerSkeletonProps = {
|
|
9
9
|
count: number;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getTag: (onClick?: ((arg: any) => void) | undefined, href?: string
|
|
1
|
+
export declare const getTag: (onClick?: ((arg: any) => void) | undefined, href?: string) => "button" | "a" | "div";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IconButtonProps } from '../IconButton/types';
|
|
2
|
-
export
|
|
2
|
+
export type ProfileProps = IconButtonProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BaseIconButtonProps } from '../IconButton/types';
|
|
2
|
-
export
|
|
2
|
+
export type SettingsProps = BaseIconButtonProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BaseIconButtonProps } from '../IconButton/types';
|
|
2
|
-
export
|
|
2
|
+
export type SignInProps = BaseIconButtonProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type SkeletonHelpButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
5
|
* reader. Differentiates from other navigation buttons on a page.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type SkeletonNotificationButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
5
|
* reader. Differentiates from other navigation buttons on a page.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type SkeletonSettingsButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
5
|
* reader. Differentiates from other navigation buttons on a page.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type SkeletonSwitcherButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
5
|
* reader. Differentiates from other navigation buttons on a page.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
|
-
export
|
|
2
|
+
export type CSSProperties = CSSObject & {
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
color: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ButtonCSSProperties = CSSProperties & {
|
|
7
7
|
boxShadow: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ButtonCSSContext = {
|
|
10
10
|
default: ButtonCSSProperties;
|
|
11
11
|
hover: ButtonCSSProperties;
|
|
12
12
|
focus: ButtonCSSProperties;
|
|
@@ -14,27 +14,27 @@ export declare type ButtonCSSContext = {
|
|
|
14
14
|
selected: ButtonCSSProperties;
|
|
15
15
|
selectedHover?: ButtonCSSProperties;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
|
|
17
|
+
export type CreateCSS = ButtonCSSContext;
|
|
18
|
+
export type IconButtonCSS = ButtonCSSContext;
|
|
19
|
+
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
20
|
+
export type NavigationCSS = CSSProperties;
|
|
21
|
+
type LogoStyleProps = {
|
|
22
22
|
iconGradientStart?: string;
|
|
23
23
|
iconGradientStop?: string;
|
|
24
24
|
iconColor?: string;
|
|
25
25
|
textColor?: string;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
28
|
-
export
|
|
27
|
+
export type ProductHomeCSS = CSSProperties & LogoStyleProps;
|
|
28
|
+
export type SearchCSS = {
|
|
29
29
|
default: CSSProperties;
|
|
30
30
|
focus: CSSObject;
|
|
31
31
|
hover: CSSObject;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type SkeletonCSS = CSSObject & {
|
|
34
34
|
backgroundColor: string;
|
|
35
35
|
opacity: number;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type Mode = {
|
|
38
38
|
create: CreateCSS;
|
|
39
39
|
iconButton: IconButtonCSS;
|
|
40
40
|
navigation: NavigationCSS;
|
|
@@ -43,14 +43,14 @@ export declare type Mode = {
|
|
|
43
43
|
search: SearchCSS;
|
|
44
44
|
skeleton: SkeletonCSS;
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type NavigationTheme = {
|
|
47
47
|
mode: Mode;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type Colors = {
|
|
50
50
|
backgroundColor: string;
|
|
51
51
|
color: string;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type GenerateThemeArgs = {
|
|
54
54
|
/**
|
|
55
55
|
* Name of the theme.
|
|
56
56
|
* If you pass in "atlassian" will return the default atlassian theme and not
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
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": {
|
|
@@ -24,16 +32,16 @@
|
|
|
24
32
|
}
|
|
25
33
|
},
|
|
26
34
|
"dependencies": {
|
|
27
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
28
|
-
"@atlaskit/button": "^16.
|
|
29
|
-
"@atlaskit/ds-lib": "^2.
|
|
30
|
-
"@atlaskit/icon": "^21.
|
|
35
|
+
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
36
|
+
"@atlaskit/button": "^16.7.0",
|
|
37
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
38
|
+
"@atlaskit/icon": "^21.12.0",
|
|
31
39
|
"@atlaskit/logo": "*",
|
|
32
|
-
"@atlaskit/popup": "^1.
|
|
33
|
-
"@atlaskit/theme": "^12.
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
-
"@atlaskit/tooltip": "^17.
|
|
36
|
-
"@atlaskit/width-detector": "^4.
|
|
40
|
+
"@atlaskit/popup": "^1.6.0",
|
|
41
|
+
"@atlaskit/theme": "^12.5.0",
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
43
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
44
|
+
"@atlaskit/width-detector": "^4.1.0",
|
|
37
45
|
"@babel/runtime": "^7.0.0",
|
|
38
46
|
"@emotion/react": "^11.7.1",
|
|
39
47
|
"chromatism": "^2.6.0",
|
|
@@ -63,7 +71,7 @@
|
|
|
63
71
|
"jest-emotion": "^10.0.32",
|
|
64
72
|
"react": "^16.8.0",
|
|
65
73
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
66
|
-
"typescript": "4.
|
|
74
|
+
"typescript": "~4.9.5"
|
|
67
75
|
},
|
|
68
76
|
"techstack": {
|
|
69
77
|
"@atlassian/frontend": {
|
package/skeleton/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/skeleton-help-button.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/skeleton-help-button.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/skeleton-notification-button.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/skeleton-notification-button.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/skeleton-settings-button.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/skeleton-settings-button.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/skeleton-switcher-button.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/skeleton-switcher-button.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|