@atlaskit/side-navigation 3.0.3 → 3.0.5
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/afm-cc/tsconfig.json +46 -0
- package/package.json +7 -6
- package/tmp/api-report-tmp.d.ts +0 -230
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#69022](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69022) [`395c74147990`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/395c74147990) - Migrate packages to use declarative entry points
|
|
14
|
+
|
|
3
15
|
## 3.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"outDir": "../dist",
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../ds-explorations/afm-cc/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../ds-lib/afm-cc/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../icon/afm-cc/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../menu/afm-cc/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../motion/afm-cc/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../primitives/afm-cc/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../theme/afm-cc/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../tokens/afm-cc/tsconfig.json"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"af:exports": {
|
|
18
|
+
".": "./src/index.tsx"
|
|
19
|
+
},
|
|
17
20
|
"atlassian": {
|
|
18
21
|
"team": "Design System Team",
|
|
19
|
-
"deprecatedAutoEntryPoints": true,
|
|
20
22
|
"releaseModel": "continuous",
|
|
21
23
|
"productPushConsumption": [
|
|
22
24
|
"jira"
|
|
@@ -27,14 +29,14 @@
|
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
|
-
"@atlaskit/ds-explorations": "^3.
|
|
32
|
+
"@atlaskit/ds-explorations": "^3.2.0",
|
|
31
33
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
32
34
|
"@atlaskit/icon": "^22.0.0",
|
|
33
35
|
"@atlaskit/menu": "^2.1.0",
|
|
34
36
|
"@atlaskit/motion": "^1.5.0",
|
|
35
|
-
"@atlaskit/primitives": "^
|
|
37
|
+
"@atlaskit/primitives": "^2.0.0",
|
|
36
38
|
"@atlaskit/theme": "^12.6.0",
|
|
37
|
-
"@atlaskit/tokens": "^1.
|
|
39
|
+
"@atlaskit/tokens": "^1.35.0",
|
|
38
40
|
"@babel/runtime": "^7.0.0",
|
|
39
41
|
"@emotion/react": "^11.7.1"
|
|
40
42
|
},
|
|
@@ -46,7 +48,6 @@
|
|
|
46
48
|
"@af/integration-testing": "*",
|
|
47
49
|
"@af/visual-regression": "*",
|
|
48
50
|
"@atlaskit/visual-regression": "*",
|
|
49
|
-
"@atlaskit/webdriver-runner": "*",
|
|
50
51
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
51
52
|
"@atlassian/feature-flags-test-utils": "*",
|
|
52
53
|
"@testing-library/react": "^12.1.5",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/side-navigation"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { ButtonItemProps } from '@atlaskit/menu';
|
|
10
|
-
import { CSSFn } from '@atlaskit/menu';
|
|
11
|
-
import { CustomItemComponentProps } from '@atlaskit/menu';
|
|
12
|
-
import { CustomItemProps } from '@atlaskit/menu';
|
|
13
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
14
|
-
import { HeadingItemProps } from '@atlaskit/menu';
|
|
15
|
-
import { HTMLAttributes } from 'react';
|
|
16
|
-
import { jsx } from '@emotion/react';
|
|
17
|
-
import { LinkItemProps } from '@atlaskit/menu';
|
|
18
|
-
import { Overrides } from '@atlaskit/menu';
|
|
19
|
-
import { default as React_2 } from 'react';
|
|
20
|
-
import { ReactNode } from 'react';
|
|
21
|
-
import { RefAttributes } from 'react';
|
|
22
|
-
import { SkeletonHeadingItemProps } from '@atlaskit/menu';
|
|
23
|
-
import { SkeletonItemProps } from '@atlaskit/menu';
|
|
24
|
-
|
|
25
|
-
// @public
|
|
26
|
-
export const ButtonItem: React_2.ForwardRefExoticComponent<ButtonItemProps & React_2.RefAttributes<HTMLElement>>;
|
|
27
|
-
|
|
28
|
-
export { ButtonItemProps }
|
|
29
|
-
export { ButtonItemProps as GoBackItemProps }
|
|
30
|
-
|
|
31
|
-
// @public
|
|
32
|
-
export const CustomItem: CustomItemPropsHack;
|
|
33
|
-
|
|
34
|
-
export { CustomItemComponentProps }
|
|
35
|
-
|
|
36
|
-
export { CustomItemProps }
|
|
37
|
-
|
|
38
|
-
// @public (undocumented)
|
|
39
|
-
interface CustomItemPropsHack {
|
|
40
|
-
// (undocumented)
|
|
41
|
-
<TComponentProps extends {}>(props: CustomItemProps<TComponentProps> & {
|
|
42
|
-
ref?: any;
|
|
43
|
-
} & Omit<TComponentProps, keyof CustomItemComponentProps>): JSX.Element | null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// @public
|
|
47
|
-
export const Footer: ({ useDeprecatedApi, description, iconBefore, testId, children, component, cssFn, onClick, }: FooterFacadeProps) => JSX.Element;
|
|
48
|
-
|
|
49
|
-
// @public (undocumented)
|
|
50
|
-
type FooterFacadeProps = (HeaderProps & {
|
|
51
|
-
useDeprecatedApi?: true;
|
|
52
|
-
}) | (NewFooterProps & {
|
|
53
|
-
useDeprecatedApi?: false;
|
|
54
|
-
cssFn?: never;
|
|
55
|
-
component?: never;
|
|
56
|
-
onClick?: never;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
export type FooterProps = HeaderProps | NewFooterProps;
|
|
61
|
-
|
|
62
|
-
// @public
|
|
63
|
-
export const GoBackItem: React_2.ForwardRefExoticComponent<ButtonItemProps & React_2.RefAttributes<HTMLElement>>;
|
|
64
|
-
|
|
65
|
-
// @public
|
|
66
|
-
export const Header: ForwardRefExoticComponent<HeaderProps & RefAttributes<HTMLElement>>;
|
|
67
|
-
|
|
68
|
-
// @public (undocumented)
|
|
69
|
-
export type HeaderProps = {
|
|
70
|
-
cssFn?: CSSFn;
|
|
71
|
-
iconBefore?: React.ReactNode;
|
|
72
|
-
onClick?: (event: React.KeyboardEvent | React.MouseEvent) => void;
|
|
73
|
-
description?: JSX.Element | string;
|
|
74
|
-
children?: React.ReactNode;
|
|
75
|
-
testId?: string;
|
|
76
|
-
component?: React.ComponentType<CustomItemComponentProps>;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// @public
|
|
80
|
-
export const HeadingItem: (props: HeadingItemProps) => JSX.Element | null;
|
|
81
|
-
|
|
82
|
-
export { HeadingItemProps }
|
|
83
|
-
|
|
84
|
-
// @public
|
|
85
|
-
export const LinkItem: React_2.ForwardRefExoticComponent<LinkItemProps & React_2.RefAttributes<HTMLElement>>;
|
|
86
|
-
|
|
87
|
-
export { LinkItemProps }
|
|
88
|
-
|
|
89
|
-
// @public
|
|
90
|
-
export const LoadingItems: ({ children, isLoading, fallback, testId, }: LoadingItemsProps) => JSX.Element;
|
|
91
|
-
|
|
92
|
-
// @public (undocumented)
|
|
93
|
-
export interface LoadingItemsProps {
|
|
94
|
-
children: React.ReactNode;
|
|
95
|
-
fallback: React.ReactNode;
|
|
96
|
-
isLoading?: boolean;
|
|
97
|
-
testId?: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// @public
|
|
101
|
-
export const NavigationContent: ForwardRefExoticComponent<NavigationContentProps & HTMLAttributes<HTMLElement> & RefAttributes<HTMLElement>>;
|
|
102
|
-
|
|
103
|
-
// @public (undocumented)
|
|
104
|
-
export interface NavigationContentProps {
|
|
105
|
-
// (undocumented)
|
|
106
|
-
children: React.ReactNode;
|
|
107
|
-
showTopScrollIndicator?: boolean;
|
|
108
|
-
testId?: string;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// @public
|
|
112
|
-
export const NavigationFooter: ({ children }: NavigationFooterProps) => JSX.Element;
|
|
113
|
-
|
|
114
|
-
// @public (undocumented)
|
|
115
|
-
export interface NavigationFooterProps {
|
|
116
|
-
// (undocumented)
|
|
117
|
-
children: ReactNode;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// @public
|
|
121
|
-
export const NavigationHeader: (props: NavigationHeaderProps) => jsx.JSX.Element;
|
|
122
|
-
|
|
123
|
-
// @public (undocumented)
|
|
124
|
-
export interface NavigationHeaderProps {
|
|
125
|
-
// (undocumented)
|
|
126
|
-
children: JSX.Element | JSX.Element[];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// @public
|
|
130
|
-
export const NestableNavigationContent: (props: NestableNavigationContentProps) => jsx.JSX.Element;
|
|
131
|
-
|
|
132
|
-
// @public (undocumented)
|
|
133
|
-
export interface NestableNavigationContentProps {
|
|
134
|
-
children: JSX.Element | JSX.Element[];
|
|
135
|
-
initialStack?: string[];
|
|
136
|
-
onChange?: (stack: string[]) => void;
|
|
137
|
-
onUnknownNest?: (stack: string[]) => void;
|
|
138
|
-
// @deprecated
|
|
139
|
-
overrides?: {
|
|
140
|
-
GoBackItem?: {
|
|
141
|
-
render?: (props: {
|
|
142
|
-
onClick: () => void;
|
|
143
|
-
testId?: string;
|
|
144
|
-
}) => React.ReactNode;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
showTopScrollIndicator?: boolean;
|
|
148
|
-
stack?: string[];
|
|
149
|
-
testId?: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// @public
|
|
153
|
-
export const NestingItem: <TCustomComponentProps extends CustomItemComponentProps>(props: NestingItemProps<TCustomComponentProps> & Omit<TCustomComponentProps, keyof CustomItemComponentProps>) => JSX.Element;
|
|
154
|
-
|
|
155
|
-
// @public (undocumented)
|
|
156
|
-
interface NestingItemOverrides extends Overrides {
|
|
157
|
-
GoBackItem?: {
|
|
158
|
-
render?: (props: {
|
|
159
|
-
onClick: () => void;
|
|
160
|
-
testId?: string;
|
|
161
|
-
}) => React_2.ReactNode;
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// @public (undocumented)
|
|
166
|
-
export interface NestingItemProps<TCustomComponentProps = CustomItemComponentProps> {
|
|
167
|
-
children: React_2.ReactNode;
|
|
168
|
-
component?: React_2.ComponentType<TCustomComponentProps>;
|
|
169
|
-
cssFn?: CSSFn;
|
|
170
|
-
description?: JSX.Element | string;
|
|
171
|
-
iconAfter?: React_2.ReactNode;
|
|
172
|
-
iconBefore?: React_2.ReactNode;
|
|
173
|
-
id: string;
|
|
174
|
-
isDisabled?: boolean;
|
|
175
|
-
isSelected?: boolean;
|
|
176
|
-
onClick?: (event: React_2.KeyboardEvent | React_2.MouseEvent) => void;
|
|
177
|
-
overrides?: NestingItemOverrides;
|
|
178
|
-
testId?: string;
|
|
179
|
-
title: React_2.ReactNode;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// @public (undocumented)
|
|
183
|
-
type NewFooterProps = Omit<HeaderProps, 'component' | 'cssFn' | 'onClick'>;
|
|
184
|
-
|
|
185
|
-
// @public
|
|
186
|
-
export const Section: React_2.ForwardRefExoticComponent<SectionProps & React_2.RefAttributes<HTMLElement>>;
|
|
187
|
-
|
|
188
|
-
// @public (undocumented)
|
|
189
|
-
export interface SectionProps {
|
|
190
|
-
children: React_2.ReactNode;
|
|
191
|
-
hasSeparator?: boolean;
|
|
192
|
-
isList?: boolean;
|
|
193
|
-
testId?: string;
|
|
194
|
-
title?: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// @public
|
|
198
|
-
export const SideNavigation: ForwardRefExoticComponent<SideNavigationProps & RefAttributes<HTMLElement>>;
|
|
199
|
-
|
|
200
|
-
// @public (undocumented)
|
|
201
|
-
export interface SideNavigationProps {
|
|
202
|
-
children: JSX.Element | JSX.Element[];
|
|
203
|
-
label: string;
|
|
204
|
-
testId?: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// @public
|
|
208
|
-
export const SkeletonHeadingItem: (props: SkeletonHeadingItemProps) => JSX.Element | null;
|
|
209
|
-
|
|
210
|
-
export { SkeletonHeadingItemProps }
|
|
211
|
-
|
|
212
|
-
// @public
|
|
213
|
-
export const SkeletonItem: (props: SkeletonItemProps) => JSX.Element | null;
|
|
214
|
-
|
|
215
|
-
export { SkeletonItemProps }
|
|
216
|
-
|
|
217
|
-
// @public
|
|
218
|
-
export const useShouldNestedElementRender: () => {
|
|
219
|
-
shouldRender: boolean;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
// @public (undocumented)
|
|
223
|
-
export const VAR_SCROLL_INDICATOR_COLOR = "--ds-menu-scroll-indicator-color";
|
|
224
|
-
|
|
225
|
-
// @public (undocumented)
|
|
226
|
-
export const VAR_SEPARATOR_COLOR = "--ds-menu-seperator-color";
|
|
227
|
-
|
|
228
|
-
// (No @packageDocumentation comment for this package)
|
|
229
|
-
|
|
230
|
-
```
|