@atlaskit/atlassian-navigation 2.5.0 → 2.5.2
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 +12 -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/dist/types-ts4.5/common/constants.d.ts +9 -0
- package/dist/types-ts4.5/common/styles.d.ts +10 -0
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +14 -0
- package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +2 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +13 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +18 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +107 -0
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +4 -0
- package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +6 -0
- package/dist/types-ts4.5/components/Create/index.d.ts +13 -0
- package/dist/types-ts4.5/components/Create/skeleton.d.ts +2 -0
- package/dist/types-ts4.5/components/Create/styles.d.ts +3 -0
- package/dist/types-ts4.5/components/Create/types.d.ts +35 -0
- package/dist/types-ts4.5/components/Help/index.d.ts +13 -0
- package/dist/types-ts4.5/components/Help/types.d.ts +9 -0
- package/dist/types-ts4.5/components/IconButton/index.d.ts +14 -0
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +4 -0
- package/dist/types-ts4.5/components/IconButton/styles.d.ts +3 -0
- package/dist/types-ts4.5/components/IconButton/types.d.ts +100 -0
- package/dist/types-ts4.5/components/Notifications/index.d.ts +14 -0
- package/dist/types-ts4.5/components/Notifications/types.d.ts +9 -0
- package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +18 -0
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +4 -0
- package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +3 -0
- package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +43 -0
- package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +16 -0
- package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +18 -0
- package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +6 -0
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +10 -0
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +12 -0
- package/dist/types-ts4.5/components/ProductHome/index.d.ts +2 -0
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +15 -0
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +5 -0
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +100 -0
- package/dist/types-ts4.5/components/ProductHome/utils.d.ts +1 -0
- package/dist/types-ts4.5/components/Profile/index.d.ts +17 -0
- package/dist/types-ts4.5/components/Profile/skeleton.d.ts +2 -0
- package/dist/types-ts4.5/components/Profile/types.d.ts +2 -0
- package/dist/types-ts4.5/components/Search/index.d.ts +12 -0
- package/dist/types-ts4.5/components/Search/skeleton.d.ts +2 -0
- package/dist/types-ts4.5/components/Search/types.d.ts +16 -0
- package/dist/types-ts4.5/components/Settings/index.d.ts +11 -0
- package/dist/types-ts4.5/components/Settings/types.d.ts +2 -0
- package/dist/types-ts4.5/components/SignIn/index.d.ts +12 -0
- package/dist/types-ts4.5/components/SignIn/skeleton.d.ts +2 -0
- package/dist/types-ts4.5/components/SignIn/types.d.ts +2 -0
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +14 -0
- package/dist/types-ts4.5/components/SkeletonCreateButton/types.d.ts +12 -0
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +14 -0
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +18 -0
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +14 -0
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +25 -0
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +44 -0
- package/dist/types-ts4.5/controllers/overflow/types.d.ts +7 -0
- package/dist/types-ts4.5/index.d.ts +30 -0
- package/dist/types-ts4.5/skeleton-help-button.d.ts +19 -0
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +19 -0
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +19 -0
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +19 -0
- package/dist/types-ts4.5/skeleton.d.ts +5 -0
- package/dist/types-ts4.5/theme/default-theme.d.ts +6 -0
- package/dist/types-ts4.5/theme/index.d.ts +6 -0
- package/dist/types-ts4.5/theme/theme-generator.d.ts +3 -0
- package/dist/types-ts4.5/theme/theme-helpers.d.ts +5 -0
- package/dist/types-ts4.5/theme/theme-provider.d.ts +8 -0
- package/dist/types-ts4.5/theme/themes.d.ts +3 -0
- package/dist/types-ts4.5/theme/types.d.ts +69 -0
- package/dist/types-ts4.5/theme/use-theme.d.ts +1 -0
- package/package.json +11 -3
- 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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
4
|
+
import { OverflowProviderProps } from './types';
|
|
5
|
+
interface OverflowContext {
|
|
6
|
+
/**
|
|
7
|
+
* Returns `true` when the navigation item is visible,
|
|
8
|
+
* and `false` when the navigation item has been pushed into the overflow menu.
|
|
9
|
+
*/
|
|
10
|
+
isVisible: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Method that can be used to programmatically open the overflow menu
|
|
13
|
+
*/
|
|
14
|
+
openOverflowMenu: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Method that can be used to programmatically close the overflow menu
|
|
17
|
+
*/
|
|
18
|
+
closeOverflowMenu: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const OverflowContext: React.Context<{
|
|
21
|
+
isVisible: boolean;
|
|
22
|
+
openOverflowMenu: typeof noop;
|
|
23
|
+
closeOverflowMenu: typeof noop;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* __useOverFlowStatus__
|
|
28
|
+
*
|
|
29
|
+
* Returns the current context value for the nearest OverflowProvider.
|
|
30
|
+
*
|
|
31
|
+
* - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
|
|
32
|
+
*/
|
|
33
|
+
export declare const useOverflowStatus: () => {
|
|
34
|
+
isVisible: boolean;
|
|
35
|
+
openOverflowMenu: typeof noop;
|
|
36
|
+
closeOverflowMenu: typeof noop;
|
|
37
|
+
};
|
|
38
|
+
export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
|
|
39
|
+
visibleItems: (string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | null | undefined)[];
|
|
40
|
+
overflowItems: (string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | null | undefined)[];
|
|
41
|
+
updateWidth: import("lodash").DebouncedFunc<React.Dispatch<React.SetStateAction<number>>>;
|
|
42
|
+
};
|
|
43
|
+
declare const _default: (props: OverflowContext) => void;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { AtlassianNavigation } from './components/AtlassianNavigation';
|
|
2
|
+
export type { AtlassianNavigationProps } from './components/AtlassianNavigation/types';
|
|
3
|
+
export { AppSwitcher } from './components/AppSwitcher';
|
|
4
|
+
export type { AppSwitcherProps } from './components/AppSwitcher/types';
|
|
5
|
+
export { Create } from './components/Create';
|
|
6
|
+
export type { CreateProps } from './components/Create/types';
|
|
7
|
+
export { Help } from './components/Help';
|
|
8
|
+
export type { HelpProps } from './components/Help/types';
|
|
9
|
+
export { Notifications } from './components/Notifications';
|
|
10
|
+
export type { NotificationsProps } from './components/Notifications/types';
|
|
11
|
+
export { PrimaryButton } from './components/PrimaryButton';
|
|
12
|
+
export type { PrimaryButtonProps } from './components/PrimaryButton/types';
|
|
13
|
+
export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
|
|
14
|
+
export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownButton/types';
|
|
15
|
+
export { IconButton } from './components/IconButton';
|
|
16
|
+
export type { IconButtonProps } from './components/IconButton/types';
|
|
17
|
+
export { CustomProductHome, ProductHome } from './components/ProductHome';
|
|
18
|
+
export type { CustomProductHomeProps, ProductHomeProps, } from './components/ProductHome/types';
|
|
19
|
+
export { Profile } from './components/Profile';
|
|
20
|
+
export type { ProfileProps } from './components/Profile/types';
|
|
21
|
+
export { Search } from './components/Search';
|
|
22
|
+
export type { SearchProps } from './components/Search/types';
|
|
23
|
+
export { Settings } from './components/Settings';
|
|
24
|
+
export type { SettingsProps } from './components/Settings/types';
|
|
25
|
+
export { SignIn } from './components/SignIn';
|
|
26
|
+
export type { SignInProps } from './components/SignIn/types';
|
|
27
|
+
export { useOverflowStatus } from './controllers/overflow';
|
|
28
|
+
export { HORIZONTAL_GLOBAL_NAV_HEIGHT } from './common/constants';
|
|
29
|
+
export { atlassianTheme, generateTheme, ThemeProvider } from './theme';
|
|
30
|
+
export type { Colors, CreateCSS, GenerateThemeArgs, IconButtonCSS, Mode, NavigationCSS, NavigationTheme, PrimaryButtonCSS, SearchCSS, SkeletonCSS, } from './theme';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SkeletonHelpButtonProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
+
* reader. Differentiates from other navigation buttons on a page.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* __Skeleton Notification button__
|
|
11
|
+
*
|
|
12
|
+
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
|
+
* their heavier interactive counterparts, for use when elements of the
|
|
14
|
+
* navigation are loaded dynamically. This one represents the Help button.
|
|
15
|
+
*
|
|
16
|
+
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
|
+
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
|
+
*/
|
|
19
|
+
export declare const SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SkeletonNotificationButtonProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
+
* reader. Differentiates from other navigation buttons on a page.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* __Skeleton Notification button__
|
|
11
|
+
*
|
|
12
|
+
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
|
+
* their heavier interactive counterparts, for use when elements of the
|
|
14
|
+
* navigation are loaded dynamically. This one represents the Notification button.
|
|
15
|
+
*
|
|
16
|
+
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
|
+
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
|
+
*/
|
|
19
|
+
export declare const SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SkeletonSettingsButtonProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
+
* reader. Differentiates from other navigation buttons on a page.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* __Skeleton settings button__
|
|
11
|
+
*
|
|
12
|
+
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
|
+
* their heavier interactive counterparts, for use when elements of the
|
|
14
|
+
* navigation are loaded dynamically. This one represents the Settings button.
|
|
15
|
+
*
|
|
16
|
+
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
|
+
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
|
+
*/
|
|
19
|
+
export declare const SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SkeletonSwitcherButtonProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
+
* reader. Differentiates from other navigation buttons on a page.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* __Skeleton switcher button__
|
|
11
|
+
*
|
|
12
|
+
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
|
+
* their heavier interactive counterparts, for use when elements of the
|
|
14
|
+
* navigation are loaded dynamically. This one represents the AppSwitcher button.
|
|
15
|
+
*
|
|
16
|
+
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
|
+
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
|
+
*/
|
|
19
|
+
export declare const SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { NavigationSkeleton } from './components/AtlassianNavigation/skeleton';
|
|
2
|
+
export type { NavigationSkeletonProps } from './components/AtlassianNavigation/types';
|
|
3
|
+
export { SkeletonCreateButton } from './components/SkeletonCreateButton';
|
|
4
|
+
export { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
|
+
export { SkeletonPrimaryButton } from './components/SkeletonPrimaryButton';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { generateTheme } from './theme-generator';
|
|
2
|
+
export { ThemeProvider } from './theme-provider';
|
|
3
|
+
export { atlassianTheme, defaultTheme } from './themes';
|
|
4
|
+
export type { CreateCSS, IconButtonCSS, Mode, NavigationCSS, NavigationTheme, PrimaryButtonCSS, SearchCSS, ProductHomeCSS, SkeletonCSS, Colors, GenerateThemeArgs, } from './types';
|
|
5
|
+
export { useTheme } from './use-theme';
|
|
6
|
+
export { hexToRGBA } from './theme-helpers';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const hexToRGBA: (hex: string, opacity?: number) => string;
|
|
2
|
+
export declare const getBoxShadow: (color: string) => string;
|
|
3
|
+
export declare const convertHexShorthand: (color: string) => string;
|
|
4
|
+
export declare const generateTextColor: (color: string) => string;
|
|
5
|
+
export declare const getContrastColor: (contrastValue: number, opacityValue: number, color: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ThemeContext: import("react").Context<import("./types").NavigationTheme>;
|
|
3
|
+
/**
|
|
4
|
+
* __Theme provider__
|
|
5
|
+
*
|
|
6
|
+
* A provider for the theme context used by all navigation components.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ThemeProvider: import("react").Provider<import("./types").NavigationTheme>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
export type CSSProperties = CSSObject & {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
6
|
+
export type ButtonCSSProperties = CSSProperties & {
|
|
7
|
+
boxShadow: string;
|
|
8
|
+
};
|
|
9
|
+
export type ButtonCSSContext = {
|
|
10
|
+
default: ButtonCSSProperties;
|
|
11
|
+
hover: ButtonCSSProperties;
|
|
12
|
+
focus: ButtonCSSProperties;
|
|
13
|
+
active: ButtonCSSProperties;
|
|
14
|
+
selected: ButtonCSSProperties;
|
|
15
|
+
selectedHover?: ButtonCSSProperties;
|
|
16
|
+
};
|
|
17
|
+
export type CreateCSS = ButtonCSSContext;
|
|
18
|
+
export type IconButtonCSS = ButtonCSSContext;
|
|
19
|
+
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
20
|
+
export type NavigationCSS = CSSProperties;
|
|
21
|
+
type LogoStyleProps = {
|
|
22
|
+
iconGradientStart?: string;
|
|
23
|
+
iconGradientStop?: string;
|
|
24
|
+
iconColor?: string;
|
|
25
|
+
textColor?: string;
|
|
26
|
+
};
|
|
27
|
+
export type ProductHomeCSS = CSSProperties & LogoStyleProps;
|
|
28
|
+
export type SearchCSS = {
|
|
29
|
+
default: CSSProperties;
|
|
30
|
+
focus: CSSObject;
|
|
31
|
+
hover: CSSObject;
|
|
32
|
+
};
|
|
33
|
+
export type SkeletonCSS = CSSObject & {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
opacity: number;
|
|
36
|
+
};
|
|
37
|
+
export type Mode = {
|
|
38
|
+
create: CreateCSS;
|
|
39
|
+
iconButton: IconButtonCSS;
|
|
40
|
+
navigation: NavigationCSS;
|
|
41
|
+
primaryButton: PrimaryButtonCSS;
|
|
42
|
+
productHome: ProductHomeCSS;
|
|
43
|
+
search: SearchCSS;
|
|
44
|
+
skeleton: SkeletonCSS;
|
|
45
|
+
};
|
|
46
|
+
export type NavigationTheme = {
|
|
47
|
+
mode: Mode;
|
|
48
|
+
};
|
|
49
|
+
export type Colors = {
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
color: string;
|
|
52
|
+
};
|
|
53
|
+
export type GenerateThemeArgs = {
|
|
54
|
+
/**
|
|
55
|
+
* Name of the theme.
|
|
56
|
+
* If you pass in "atlassian" will return the default atlassian theme and not
|
|
57
|
+
* use any of the colors you pass in.
|
|
58
|
+
*/
|
|
59
|
+
name?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Main background color of the horizontal navigation bar.
|
|
62
|
+
*/
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
/**
|
|
65
|
+
* Highlight color for the navigation actions.
|
|
66
|
+
*/
|
|
67
|
+
highlightColor: string;
|
|
68
|
+
};
|
|
69
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTheme: () => import("./types").NavigationTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
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": {
|
|
@@ -31,7 +39,7 @@
|
|
|
31
39
|
"@atlaskit/logo": "*",
|
|
32
40
|
"@atlaskit/popup": "^1.6.0",
|
|
33
41
|
"@atlaskit/theme": "^12.5.0",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
35
43
|
"@atlaskit/tooltip": "^17.8.0",
|
|
36
44
|
"@atlaskit/width-detector": "^4.1.0",
|
|
37
45
|
"@babel/runtime": "^7.0.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
|
}
|