@atlaskit/atlassian-navigation 5.3.18 → 5.3.20
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/controllers/overflow/index.js +2 -0
- package/dist/es2019/controllers/overflow/index.js +3 -0
- package/dist/esm/controllers/overflow/index.js +3 -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/controllers/overflow/index.d.ts +6 -14
- 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/dist/types-ts4.5/controllers/overflow/index.d.ts +6 -14
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 5.3.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`437668dfbdec9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/437668dfbdec9) -
|
|
8
|
+
Add explicit types to a number of DST components
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.3.19
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`39e543109ec09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39e543109ec09) -
|
|
16
|
+
add type info to forwardRef components
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 5.3.18
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
12
12
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
13
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
15
|
+
|
|
14
16
|
// Prevent width detector from triggering too many re-renders
|
|
15
17
|
var THROTTLE_INTERVAL = 16 * 4;
|
|
16
18
|
// Approx min width of items (based of "More" size)
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
4
|
+
|
|
2
5
|
import throttle from 'lodash/throttle';
|
|
3
6
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
7
|
// Prevent width detector from triggering too many re-renders
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
+
|
|
3
6
|
import throttle from 'lodash/throttle';
|
|
4
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
8
|
// Prevent width detector from triggering too many re-renders
|
|
@@ -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>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { DebouncedFuncLeading } from 'lodash';
|
|
3
3
|
import { type OverflowProviderProps } from './types';
|
|
4
4
|
interface OverflowContext {
|
|
5
5
|
/**
|
|
@@ -16,11 +16,7 @@ interface OverflowContext {
|
|
|
16
16
|
*/
|
|
17
17
|
closeOverflowMenu: () => void;
|
|
18
18
|
}
|
|
19
|
-
declare const OverflowContext: React.Context<
|
|
20
|
-
isVisible: boolean;
|
|
21
|
-
openOverflowMenu: typeof noop;
|
|
22
|
-
closeOverflowMenu: typeof noop;
|
|
23
|
-
}>;
|
|
19
|
+
declare const OverflowContext: React.Context<OverflowContext>;
|
|
24
20
|
export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => React.JSX.Element;
|
|
25
21
|
/**
|
|
26
22
|
* __useOverFlowStatus__
|
|
@@ -29,15 +25,11 @@ export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu,
|
|
|
29
25
|
*
|
|
30
26
|
* - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
|
|
31
27
|
*/
|
|
32
|
-
export declare const useOverflowStatus: () =>
|
|
33
|
-
isVisible: boolean;
|
|
34
|
-
openOverflowMenu: typeof noop;
|
|
35
|
-
closeOverflowMenu: typeof noop;
|
|
36
|
-
};
|
|
28
|
+
export declare const useOverflowStatus: () => OverflowContext;
|
|
37
29
|
export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
|
|
38
|
-
visibleItems:
|
|
39
|
-
overflowItems:
|
|
40
|
-
updateWidth:
|
|
30
|
+
visibleItems: ReactNode[];
|
|
31
|
+
overflowItems: ReactNode[];
|
|
32
|
+
updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
|
|
41
33
|
};
|
|
42
34
|
declare const _default: (props: OverflowContext) => void;
|
|
43
35
|
export default _default;
|
|
@@ -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>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { DebouncedFuncLeading } from 'lodash';
|
|
3
3
|
import { type OverflowProviderProps } from './types';
|
|
4
4
|
interface OverflowContext {
|
|
5
5
|
/**
|
|
@@ -16,11 +16,7 @@ interface OverflowContext {
|
|
|
16
16
|
*/
|
|
17
17
|
closeOverflowMenu: () => void;
|
|
18
18
|
}
|
|
19
|
-
declare const OverflowContext: React.Context<
|
|
20
|
-
isVisible: boolean;
|
|
21
|
-
openOverflowMenu: typeof noop;
|
|
22
|
-
closeOverflowMenu: typeof noop;
|
|
23
|
-
}>;
|
|
19
|
+
declare const OverflowContext: React.Context<OverflowContext>;
|
|
24
20
|
export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => React.JSX.Element;
|
|
25
21
|
/**
|
|
26
22
|
* __useOverFlowStatus__
|
|
@@ -29,15 +25,11 @@ export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu,
|
|
|
29
25
|
*
|
|
30
26
|
* - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
|
|
31
27
|
*/
|
|
32
|
-
export declare const useOverflowStatus: () =>
|
|
33
|
-
isVisible: boolean;
|
|
34
|
-
openOverflowMenu: typeof noop;
|
|
35
|
-
closeOverflowMenu: typeof noop;
|
|
36
|
-
};
|
|
28
|
+
export declare const useOverflowStatus: () => OverflowContext;
|
|
37
29
|
export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
|
|
38
|
-
visibleItems:
|
|
39
|
-
overflowItems:
|
|
40
|
-
updateWidth:
|
|
30
|
+
visibleItems: ReactNode[];
|
|
31
|
+
overflowItems: ReactNode[];
|
|
32
|
+
updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
|
|
41
33
|
};
|
|
42
34
|
declare const _default: (props: OverflowContext) => void;
|
|
43
35
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.20",
|
|
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.
|
|
43
|
-
"@atlaskit/logo": "^19.
|
|
41
|
+
"@atlaskit/ds-lib": "^5.1.0",
|
|
42
|
+
"@atlaskit/icon": "^28.3.0",
|
|
43
|
+
"@atlaskit/logo": "^19.8.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.
|
|
66
|
-
"@atlaskit/badge": "^18.
|
|
65
|
+
"@atlaskit/avatar": "^25.2.0",
|
|
66
|
+
"@atlaskit/badge": "^18.2.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.5.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",
|