@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.
Files changed (32) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/version.json +1 -1
  3. package/dist/es2019/version.json +1 -1
  4. package/dist/esm/version.json +1 -1
  5. package/dist/types/components/AppSwitcher/types.d.ts +1 -1
  6. package/dist/types/components/BadgeContainer/types.d.ts +1 -1
  7. package/dist/types/components/Help/types.d.ts +1 -1
  8. package/dist/types/components/IconButton/types.d.ts +1 -1
  9. package/dist/types/components/Notifications/types.d.ts +1 -1
  10. package/dist/types/components/PrimaryButton/types.d.ts +2 -2
  11. package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
  12. package/dist/types/components/PrimaryItemsContainer/types.d.ts +2 -2
  13. package/dist/types/components/ProductHome/utils.d.ts +1 -1
  14. package/dist/types/components/Profile/types.d.ts +1 -1
  15. package/dist/types/components/Search/types.d.ts +1 -1
  16. package/dist/types/components/Settings/types.d.ts +1 -1
  17. package/dist/types/components/SignIn/types.d.ts +1 -1
  18. package/dist/types/components/SkeletonCreateButton/types.d.ts +1 -1
  19. package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
  20. package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
  21. package/dist/types/controllers/overflow/types.d.ts +1 -1
  22. package/dist/types/skeleton-help-button.d.ts +1 -1
  23. package/dist/types/skeleton-notification-button.d.ts +1 -1
  24. package/dist/types/skeleton-settings-button.d.ts +1 -1
  25. package/dist/types/skeleton-switcher-button.d.ts +1 -1
  26. package/dist/types/theme/types.d.ts +15 -15
  27. package/package.json +19 -11
  28. package/skeleton/package.json +2 -2
  29. package/skeleton-help-button/package.json +2 -2
  30. package/skeleton-notification-button/package.json +2 -2
  31. package/skeleton-settings-button/package.json +2 -2
  32. 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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.4.1",
3
+ "version": "2.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.4.1",
3
+ "version": "2.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.4.1",
3
+ "version": "2.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,2 +1,2 @@
1
1
  import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type AppSwitcherProps = BaseIconButtonProps;
2
+ export type AppSwitcherProps = BaseIconButtonProps;
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, ReactNode } from 'react';
2
- export declare type BadgeProps = {
2
+ export type BadgeProps = {
3
3
  id: string;
4
4
  badge: ComponentType<{}>;
5
5
  children: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { ComponentType } from 'react';
2
2
  import { BaseIconButtonProps } from '../IconButton/types';
3
- export declare type HelpProps = BaseIconButtonProps & {
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
  /// <reference types="react" />
2
2
  import { CustomThemeButtonProps } from '@atlaskit/button/types';
3
- export declare type IconButtonProps = BaseIconButtonProps & {
3
+ export type IconButtonProps = BaseIconButtonProps & {
4
4
  /**
5
5
  * Icon for the button.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { ComponentType } from 'react';
2
2
  import { BaseIconButtonProps } from '../IconButton/types';
3
- export declare type NotificationsProps = BaseIconButtonProps & {
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 declare type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
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 declare type PrimaryButtonSkeletonProps = {
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 declare type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
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 declare type PrimaryItemsContainerProps = {
2
+ export type PrimaryItemsContainerProps = {
3
3
  moreLabel: ReactNode;
4
4
  items: ReactNodeArray;
5
5
  create?: ComponentType<{}>;
6
6
  testId?: string;
7
7
  };
8
- export declare type PrimaryItemsContainerSkeletonProps = {
8
+ export type PrimaryItemsContainerSkeletonProps = {
9
9
  count: number;
10
10
  };
@@ -1 +1 @@
1
- export declare const getTag: (onClick?: ((arg: any) => void) | undefined, href?: string | undefined) => "button" | "a" | "div";
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 declare type ProfileProps = IconButtonProps;
2
+ export type ProfileProps = IconButtonProps;
@@ -1,5 +1,5 @@
1
1
  import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type SearchProps = BaseIconButtonProps & {
2
+ export type SearchProps = BaseIconButtonProps & {
3
3
  /**
4
4
  * Placeholder text for the search textbox.
5
5
  */
@@ -1,2 +1,2 @@
1
1
  import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type SettingsProps = BaseIconButtonProps;
2
+ export type SettingsProps = BaseIconButtonProps;
@@ -1,2 +1,2 @@
1
1
  import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type SignInProps = BaseIconButtonProps;
2
+ export type SignInProps = BaseIconButtonProps;
@@ -1,4 +1,4 @@
1
- export declare type SkeletonCreateButtonProps = {
1
+ export type SkeletonCreateButtonProps = {
2
2
  /**
3
3
  * Text to be displayed inside the skeleton create button.
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type SkeletonIconButtonProps = {
2
+ export type SkeletonIconButtonProps = {
3
3
  /**
4
4
  * Content to be placed inside the skeleton.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type SkeletonPrimaryButtonProps = {
2
+ export type SkeletonPrimaryButtonProps = {
3
3
  /**
4
4
  * Text content to be displayed inside the skeleton button.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type OverflowProviderProps = {
2
+ export type OverflowProviderProps = {
3
3
  children: ReactNode;
4
4
  isVisible: boolean;
5
5
  openOverflowMenu: () => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type SkeletonHelpButtonProps = {
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 declare type SkeletonNotificationButtonProps = {
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 declare type SkeletonSettingsButtonProps = {
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 declare type SkeletonSwitcherButtonProps = {
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 declare type CSSProperties = CSSObject & {
2
+ export type CSSProperties = CSSObject & {
3
3
  backgroundColor: string;
4
4
  color: string;
5
5
  };
6
- export declare type ButtonCSSProperties = CSSProperties & {
6
+ export type ButtonCSSProperties = CSSProperties & {
7
7
  boxShadow: string;
8
8
  };
9
- export declare type ButtonCSSContext = {
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 declare type CreateCSS = ButtonCSSContext;
18
- export declare type IconButtonCSS = ButtonCSSContext;
19
- export declare type PrimaryButtonCSS = ButtonCSSContext;
20
- export declare type NavigationCSS = CSSProperties;
21
- declare type LogoStyleProps = {
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 declare type ProductHomeCSS = CSSProperties & LogoStyleProps;
28
- export declare type SearchCSS = {
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 declare type SkeletonCSS = CSSObject & {
33
+ export type SkeletonCSS = CSSObject & {
34
34
  backgroundColor: string;
35
35
  opacity: number;
36
36
  };
37
- export declare type Mode = {
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 declare type NavigationTheme = {
46
+ export type NavigationTheme = {
47
47
  mode: Mode;
48
48
  };
49
- export declare type Colors = {
49
+ export type Colors = {
50
50
  backgroundColor: string;
51
51
  color: string;
52
52
  };
53
- export declare type GenerateThemeArgs = {
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.4.1",
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.6.0",
28
- "@atlaskit/button": "^16.6.0",
29
- "@atlaskit/ds-lib": "^2.1.0",
30
- "@atlaskit/icon": "^21.11.0",
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.5.0",
33
- "@atlaskit/theme": "^12.3.0",
34
- "@atlaskit/tokens": "^1.2.0",
35
- "@atlaskit/tooltip": "^17.7.0",
36
- "@atlaskit/width-detector": "^4.0.0",
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.5.5"
74
+ "typescript": "~4.9.5"
67
75
  },
68
76
  "techstack": {
69
77
  "@atlassian/frontend": {
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/skeleton.d.ts"
11
+ "../dist/types-ts4.5/skeleton.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton-help-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/skeleton-help-button.d.ts"
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.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/skeleton-notification-button.d.ts"
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.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/skeleton-settings-button.d.ts"
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.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/skeleton-switcher-button.d.ts"
11
+ "../dist/types-ts4.5/skeleton-switcher-button.d.ts"
12
12
  ]
13
13
  }
14
14
  }