@atlaskit/atlassian-navigation 6.3.2 → 6.4.0

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 (3) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +25 -25
  3. package/report.api.md +0 -401
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 6.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 6.3.3
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 6.3.2
4
21
 
5
22
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "6.3.2",
3
+ "version": "6.4.0",
4
4
  "description": "A horizontal navigation component for Atlassian apps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,18 +35,18 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@atlaskit/analytics-namespaced-context": "^8.1.0",
39
- "@atlaskit/button": "^25.2.0",
40
- "@atlaskit/css": "1.1.1",
38
+ "@atlaskit/analytics-namespaced-context": "^8.2.0",
39
+ "@atlaskit/button": "^25.3.0",
40
+ "@atlaskit/css": "1.1.2",
41
41
  "@atlaskit/ds-lib": "^8.0.0",
42
- "@atlaskit/icon": "^37.5.0",
43
- "@atlaskit/logo": "^21.5.0",
44
- "@atlaskit/popup": "^6.2.0",
45
- "@atlaskit/primitives": "^22.4.0",
42
+ "@atlaskit/icon": "^37.6.0",
43
+ "@atlaskit/logo": "^21.6.0",
44
+ "@atlaskit/popup": "^6.3.0",
45
+ "@atlaskit/primitives": "^22.5.0",
46
46
  "@atlaskit/react-compiler-gating": "^0.2.0",
47
- "@atlaskit/tokens": "^16.8.0",
48
- "@atlaskit/tooltip": "^24.2.0",
49
- "@atlaskit/width-detector": "^7.1.0",
47
+ "@atlaskit/tokens": "^16.10.0",
48
+ "@atlaskit/tooltip": "^24.3.0",
49
+ "@atlaskit/width-detector": "^7.2.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "chromatism": "^2.6.0",
@@ -59,22 +59,22 @@
59
59
  "@af/accessibility-testing": "workspace:^",
60
60
  "@af/integration-testing": "workspace:^",
61
61
  "@af/visual-regression": "workspace:^",
62
- "@atlaskit/analytics-next": "^12.4.0",
63
- "@atlaskit/avatar": "^27.2.0",
64
- "@atlaskit/badge": "^21.1.0",
62
+ "@atlaskit/analytics-next": "^12.5.0",
63
+ "@atlaskit/avatar": "^27.3.0",
64
+ "@atlaskit/badge": "^21.2.0",
65
65
  "@atlaskit/docs": "^12.2.0",
66
- "@atlaskit/drawer": "^14.2.0",
67
- "@atlaskit/dropdown-menu": "^18.2.0",
68
- "@atlaskit/form": "^17.1.0",
66
+ "@atlaskit/drawer": "^14.3.0",
67
+ "@atlaskit/dropdown-menu": "^18.3.0",
68
+ "@atlaskit/form": "^17.2.0",
69
69
  "@atlaskit/link": "^5.1.0",
70
- "@atlaskit/menu": "^10.1.0",
71
- "@atlaskit/notification-indicator": "^11.1.0",
72
- "@atlaskit/notification-log-client": "^10.0.0",
73
- "@atlaskit/section-message": "^10.1.0",
74
- "@atlaskit/spinner": "^20.3.0",
75
- "@atlaskit/textfield": "^10.1.0",
76
- "@atlassian/switcher": "^48.22.0",
77
- "@atlassian/switcher-test-utils": "^8.5.0",
70
+ "@atlaskit/menu": "^10.2.0",
71
+ "@atlaskit/notification-indicator": "^11.2.0",
72
+ "@atlaskit/notification-log-client": "^10.1.0",
73
+ "@atlaskit/section-message": "^10.2.0",
74
+ "@atlaskit/spinner": "^20.4.0",
75
+ "@atlaskit/textfield": "^10.2.0",
76
+ "@atlassian/switcher": "^48.23.0",
77
+ "@atlassian/switcher-test-utils": "^8.6.0",
78
78
  "@testing-library/react": "^16.3.0",
79
79
  "@testing-library/user-event": "^14.4.3",
80
80
  "jest-emotion": "^10.0.32",
package/report.api.md DELETED
@@ -1,401 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/atlassian-navigation"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- /// <reference types="lodash" />
20
- /// <reference types="react" />
21
-
22
- import { AllHTMLAttributes } from 'react';
23
- import { ComponentType } from 'react';
24
- import { CSSObject } from '@emotion/react';
25
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
26
- import { CustomThemeButtonProps as CustomThemeButtonProps_2 } from '@atlaskit/button/custom-theme-button';
27
- import { ElementType } from 'react';
28
- import { ForwardRefExoticComponent } from 'react';
29
- import { jsx } from '@emotion/react';
30
- import { LogoProps } from '@atlaskit/logo';
31
- import { MouseEvent as MouseEvent_2 } from 'react';
32
- import noop from '@atlaskit/ds-lib/noop';
33
- import { Provider } from 'react';
34
- import { default as React_2 } from 'react';
35
- import { ReactChild } from 'react';
36
- import { ReactNode } from 'react';
37
- import { ReactNodeArray } from 'react';
38
- import { RefAttributes } from 'react';
39
- import { ThemeProps } from '@atlaskit/button/custom-theme-button';
40
- import { ThemeProps as ThemeProps_2 } from '@atlaskit/button';
41
- import { ThemeTokens } from '@atlaskit/button/custom-theme-button';
42
- import { ThemeTokens as ThemeTokens_2 } from '@atlaskit/button';
43
-
44
- // @public
45
- export const AppSwitcher: React_2.ForwardRefExoticComponent<
46
- BaseIconButtonProps & React_2.RefAttributes<any>
47
- >;
48
-
49
- // @public (undocumented)
50
- export type AppSwitcherProps = BaseIconButtonProps;
51
-
52
- // @public
53
- export const AtlassianNavigation: (props: AtlassianNavigationProps) => jsx.JSX.Element;
54
-
55
- // @public (undocumented)
56
- export interface AtlassianNavigationProps {
57
- label: string;
58
- moreLabel?: ReactNode;
59
- primaryItems: ReactNodeArray;
60
- renderAppSwitcher?: React_2.ComponentType<{}>;
61
- renderCreate?: React_2.ComponentType<{}>;
62
- renderHelp?: React_2.ComponentType<{}>;
63
- renderNotifications?: React_2.ComponentType<{}>;
64
- renderProductHome: React_2.ComponentType<{}>;
65
- renderProfile?: React_2.ComponentType<{}>;
66
- renderSearch?: React_2.ComponentType<{}>;
67
- renderSettings?: React_2.ComponentType<{}>;
68
- renderSignIn?: React_2.ComponentType<{}>;
69
- testId?: string;
70
- theme?: NavigationTheme;
71
- }
72
-
73
- // @public (undocumented)
74
- export const atlassianTheme: NavigationTheme;
75
-
76
- // @public
77
- interface BaseIconButtonProps {
78
- component?: CustomThemeButtonProps['component'];
79
- href?: string;
80
- id?: string;
81
- isDisabled?: boolean;
82
- isSelected?: boolean;
83
- onBlur?: React.FocusEventHandler<HTMLElement>;
84
- onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
85
- onFocus?: React.FocusEventHandler<HTMLElement>;
86
- onMouseDown?: React.MouseEventHandler<HTMLElement>;
87
- onMouseEnter?: React.MouseEventHandler<HTMLElement>;
88
- onMouseLeave?: React.MouseEventHandler<HTMLElement>;
89
- onMouseUp?: React.MouseEventHandler<HTMLElement>;
90
- target?: string;
91
- testId?: string;
92
- tooltip: React.ReactNode;
93
- }
94
-
95
- // @public (undocumented)
96
- type ButtonCSSContext = {
97
- default: ButtonCSSProperties;
98
- hover: ButtonCSSProperties;
99
- focus: ButtonCSSProperties;
100
- active: ButtonCSSProperties;
101
- selected: ButtonCSSProperties;
102
- selectedHover?: ButtonCSSProperties;
103
- };
104
-
105
- // @public (undocumented)
106
- type ButtonCSSProperties = CSSProperties & {
107
- boxShadow: string;
108
- };
109
-
110
- // @public (undocumented)
111
- export type Colors = {
112
- backgroundColor: string;
113
- color: string;
114
- };
115
-
116
- // @public
117
- export const Create: ({
118
- onClick,
119
- href,
120
- text,
121
- buttonTooltip,
122
- iconButtonTooltip,
123
- testId,
124
- }: CreateProps) => jsx.JSX.Element;
125
-
126
- // @public (undocumented)
127
- export type CreateCSS = ButtonCSSContext;
128
-
129
- // @public (undocumented)
130
- export interface CreateProps {
131
- buttonTooltip?: React_2.ReactNode;
132
- href?: string;
133
- iconButtonTooltip?: React_2.ReactNode;
134
- onClick?: (e: React_2.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
135
- testId?: string;
136
- text: string;
137
- }
138
-
139
- // @public (undocumented)
140
- type CSSProperties = CSSObject & {
141
- backgroundColor: string;
142
- color: string;
143
- };
144
-
145
- // @public
146
- export const CustomProductHome: (props: CustomProductHomeProps) => jsx.JSX.Element;
147
-
148
- // @public (undocumented)
149
- export interface CustomProductHomeProps {
150
- href?: string;
151
- iconAlt: string;
152
- iconUrl: string;
153
- logoAlt: string;
154
- logoMaxWidth?: number;
155
- logoUrl: string;
156
- onClick?: (event: MouseEvent_2<HTMLElement>) => void;
157
- onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
158
- siteTitle?: string;
159
- testId?: string;
160
- }
161
-
162
- // @public (undocumented)
163
- export const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
164
-
165
- // @public (undocumented)
166
- export type GenerateThemeArgs = {
167
- name?: string;
168
- backgroundColor: string;
169
- highlightColor: string;
170
- };
171
-
172
- // @public
173
- export const Help: React_2.ForwardRefExoticComponent<
174
- BaseIconButtonProps & {
175
- badge?: React_2.ComponentType<{}> | undefined;
176
- } & React_2.RefAttributes<any>
177
- >;
178
-
179
- // @public (undocumented)
180
- export type HelpProps = BaseIconButtonProps & {
181
- badge?: ComponentType<{}>;
182
- };
183
-
184
- // @public (undocumented)
185
- export const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
186
-
187
- // @public
188
- export const IconButton: React_2.ForwardRefExoticComponent<
189
- BaseIconButtonProps & {
190
- icon: React_2.ReactChild | undefined;
191
- theme?:
192
- | ((current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens)
193
- | undefined;
194
- } & React_2.RefAttributes<HTMLElement>
195
- >;
196
-
197
- // @public (undocumented)
198
- export type IconButtonCSS = ButtonCSSContext;
199
-
200
- // @public (undocumented)
201
- export type IconButtonProps = BaseIconButtonProps & {
202
- icon: CustomThemeButtonProps['iconBefore'];
203
- theme?: CustomThemeButtonProps['theme'];
204
- };
205
-
206
- // @public (undocumented)
207
- type LogoStyleProps = {
208
- iconGradientStart?: string;
209
- iconGradientStop?: string;
210
- iconColor?: string;
211
- textColor?: string;
212
- };
213
-
214
- // @public (undocumented)
215
- export type Mode = {
216
- create: CreateCSS;
217
- iconButton: IconButtonCSS;
218
- navigation: NavigationCSS;
219
- primaryButton: PrimaryButtonCSS;
220
- productHome: ProductHomeCSS;
221
- search: SearchCSS;
222
- skeleton: SkeletonCSS;
223
- };
224
-
225
- // @public (undocumented)
226
- export type NavigationCSS = CSSProperties;
227
-
228
- // @public (undocumented)
229
- export type NavigationTheme = {
230
- mode: Mode;
231
- };
232
-
233
- // @public
234
- export const Notifications: React_2.ForwardRefExoticComponent<
235
- BaseIconButtonProps & {
236
- badge: React_2.ComponentType<{}>;
237
- } & React_2.RefAttributes<any>
238
- >;
239
-
240
- // @public (undocumented)
241
- export type NotificationsProps = BaseIconButtonProps & {
242
- badge: ComponentType<{}>;
243
- };
244
-
245
- // @public
246
- export const PrimaryButton: ForwardRefExoticComponent<
247
- Omit<CustomThemeButtonProps_2, 'appearance' | 'onClick'> & {
248
- component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any> | undefined;
249
- isHighlighted?: boolean | undefined;
250
- testId?: string | undefined;
251
- tooltip?: ReactNode;
252
- onClick?:
253
- | ((event: MouseEvent_2<HTMLElement, MouseEvent>, analyticsEvent: any) => void)
254
- | undefined;
255
- } & RefAttributes<HTMLElement>
256
- >;
257
-
258
- // @public (undocumented)
259
- export type PrimaryButtonCSS = ButtonCSSContext;
260
-
261
- // @public (undocumented)
262
- export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
263
- component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any>;
264
- isHighlighted?: boolean;
265
- testId?: string;
266
- tooltip?: React.ReactNode;
267
- onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
268
- };
269
-
270
- // @public
271
- export const PrimaryDropdownButton: ForwardRefExoticComponent<
272
- Omit<PrimaryButtonProps, 'iconAfter'> & {
273
- isHighlighted?: boolean | undefined;
274
- testId?: string | undefined;
275
- tooltip?: ReactNode;
276
- } & RefAttributes<HTMLElement>
277
- >;
278
-
279
- // @public (undocumented)
280
- export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
281
- isHighlighted?: boolean;
282
- testId?: string;
283
- tooltip?: React.ReactNode;
284
- };
285
-
286
- // @public
287
- export const PrimarySplitButton: ({
288
- children,
289
- isHighlighted,
290
- }: PrimarySplitButtonProps) => jsx.JSX.Element;
291
-
292
- // @public (undocumented)
293
- type PrimarySplitButtonProps = {
294
- children: ReactNode;
295
- isHighlighted?: boolean;
296
- };
297
-
298
- // @public
299
- export const ProductHome: ({
300
- icon: Icon,
301
- logo: Logo,
302
- siteTitle,
303
- onClick,
304
- href,
305
- onMouseDown,
306
- testId,
307
- logoMaxWidth,
308
- ...rest
309
- }: ProductHomeProps) => jsx.JSX.Element;
310
-
311
- // @public (undocumented)
312
- type ProductHomeCSS = CSSProperties & LogoStyleProps;
313
-
314
- // @public (undocumented)
315
- export interface ProductHomeProps {
316
- href?: string;
317
- icon: ComponentType<Partial<LogoProps>>;
318
- logo: ComponentType<Partial<LogoProps>>;
319
- logoMaxWidth?: number;
320
- onClick?: (event: MouseEvent_2<HTMLElement>) => void;
321
- onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
322
- siteTitle?: string;
323
- testId?: string;
324
- }
325
-
326
- // @public
327
- export const Profile: ForwardRefExoticComponent<
328
- BaseIconButtonProps & {
329
- icon: ReactChild | undefined;
330
- theme?:
331
- | ((current: (props: ThemeProps_2) => ThemeTokens_2, props: ThemeProps_2) => ThemeTokens_2)
332
- | undefined;
333
- } & RefAttributes<HTMLElement>
334
- >;
335
-
336
- // @public (undocumented)
337
- export type ProfileProps = IconButtonProps;
338
-
339
- // @public
340
- export const Search: (props: SearchProps) => jsx.JSX.Element;
341
-
342
- // @public (undocumented)
343
- export type SearchCSS = {
344
- default: CSSProperties;
345
- focus: CSSObject;
346
- hover: CSSObject;
347
- };
348
-
349
- // @public (undocumented)
350
- export type SearchProps = BaseIconButtonProps & {
351
- placeholder: string;
352
- label: string;
353
- value?: string;
354
- };
355
-
356
- // @public
357
- export const Settings: React_2.ForwardRefExoticComponent<
358
- BaseIconButtonProps & React_2.RefAttributes<any>
359
- >;
360
-
361
- // @public (undocumented)
362
- export type SettingsProps = BaseIconButtonProps;
363
-
364
- // @public
365
- export const SignIn: (props: SignInProps) => JSX.Element;
366
-
367
- // @public (undocumented)
368
- export type SignInProps = BaseIconButtonProps;
369
-
370
- // @public (undocumented)
371
- export type SkeletonCSS = CSSObject & {
372
- backgroundColor: string;
373
- opacity: number;
374
- };
375
-
376
- // @public
377
- export const ThemeProvider: Provider<NavigationTheme>;
378
-
379
- // @public
380
- export const useOverflowStatus: () => {
381
- isVisible: boolean;
382
- openOverflowMenu: typeof noop;
383
- closeOverflowMenu: typeof noop;
384
- };
385
-
386
- // (No @packageDocumentation comment for this package)
387
- ```
388
-
389
- <!--SECTION END: Main Entry Types-->
390
-
391
- ### Peer Dependencies
392
-
393
- <!--SECTION START: Peer Dependencies-->
394
-
395
- ```json
396
- {
397
- "react": "^16.8.0"
398
- }
399
- ```
400
-
401
- <!--SECTION END: Peer Dependencies-->