@atlaskit/atlassian-navigation 5.3.22 → 5.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 (43) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/afm-products/tsconfig.json +63 -0
  3. package/dist/cjs/components/AppSwitcher/index.js +1 -1
  4. package/dist/cjs/components/PrimaryButton/index.js +5 -1
  5. package/dist/cjs/components/PrimaryDropdownButton/index.js +7 -2
  6. package/dist/cjs/components/PrimaryItemsContainer/index.js +0 -1
  7. package/dist/cjs/components/Profile/index.js +1 -1
  8. package/dist/cjs/controllers/overflow/index.js +2 -1
  9. package/dist/cjs/skeleton-switcher-button.js +1 -2
  10. package/dist/cjs/theme/theme-generator.js +1 -1
  11. package/dist/es2019/components/AppSwitcher/index.js +1 -1
  12. package/dist/es2019/components/PrimaryButton/index.js +5 -1
  13. package/dist/es2019/components/PrimaryDropdownButton/index.js +8 -3
  14. package/dist/es2019/components/PrimaryItemsContainer/index.js +0 -1
  15. package/dist/es2019/components/Profile/index.js +1 -1
  16. package/dist/es2019/controllers/overflow/index.js +2 -1
  17. package/dist/es2019/skeleton-switcher-button.js +1 -2
  18. package/dist/es2019/theme/theme-generator.js +1 -1
  19. package/dist/esm/components/AppSwitcher/index.js +1 -1
  20. package/dist/esm/components/PrimaryButton/index.js +5 -1
  21. package/dist/esm/components/PrimaryDropdownButton/index.js +8 -3
  22. package/dist/esm/components/PrimaryItemsContainer/index.js +0 -1
  23. package/dist/esm/components/Profile/index.js +1 -1
  24. package/dist/esm/controllers/overflow/index.js +2 -1
  25. package/dist/esm/skeleton-switcher-button.js +1 -2
  26. package/dist/esm/theme/theme-generator.js +1 -1
  27. package/dist/types/components/AppSwitcher/index.d.ts +1 -1
  28. package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
  29. package/dist/types/components/Profile/index.d.ts +1 -1
  30. package/dist/types/controllers/overflow/index.d.ts +1 -1
  31. package/dist/types/skeleton-switcher-button.d.ts +1 -1
  32. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
  33. package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
  34. package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
  35. package/dist/types-ts4.5/controllers/overflow/index.d.ts +1 -1
  36. package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
  37. package/package.json +8 -8
  38. package/afm-dev-agents/tsconfig.json +0 -63
  39. package/afm-passionfruit/tsconfig.json +0 -63
  40. package/afm-post-office/tsconfig.json +0 -63
  41. package/afm-rovo-extension/tsconfig.json +0 -63
  42. package/afm-townsquare/tsconfig.json +0 -63
  43. package/afm-volt/tsconfig.json +0 -63
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 5.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`211a83504b30b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/211a83504b30b) -
8
+ [ux] GCKO-936 Add switcher support for same tab 1P links
9
+
10
+ ## 5.3.23
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 5.3.22
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,63 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.products.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__atlassian-navigation/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
24
+ ],
25
+ "references": [
26
+ {
27
+ "path": "../../../analytics/analytics-namespaced-context/afm-products/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../button/afm-products/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../ds-lib/afm-products/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../icon/afm-products/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../logo/afm-products/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../platform/feature-flags/afm-products/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../popup/afm-products/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../primitives/afm-products/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../theme/afm-products/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../tokens/afm-products/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../../tooltip/afm-products/tsconfig.json"
58
+ },
59
+ {
60
+ "path": "../../width-detector/afm-products/tsconfig.json"
61
+ }
62
+ ]
63
+ }
@@ -116,4 +116,4 @@ var AppSwitcherNav4 = exports.AppSwitcherNav4 = /*#__PURE__*/(0, _react.forwardR
116
116
 
117
117
  // exists only to extract props
118
118
  // eslint-disable-next-line import/no-anonymous-default-export
119
- var _default = exports.default = function _default(props) {};
119
+ var _default = exports.default = function _default(_props) {};
@@ -30,6 +30,9 @@ var buttonBaseStyles = (0, _react2.css)({
30
30
  justifyContent: 'center',
31
31
  flexDirection: 'column'
32
32
  });
33
+ var buttonNoOpStyle = (0, _react2.css)({
34
+ '--noop': 1
35
+ });
33
36
  var buttonHighlightedStyles = (0, _react2.css)({
34
37
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
35
38
  '&& > *': {
@@ -85,7 +88,8 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
85
88
  testId: testId
86
89
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
87
90
  ,
88
- theme: theme || (0, _styles.getPrimaryButtonTheme)(themeFromContext)
91
+ theme: theme || (0, _styles.getPrimaryButtonTheme)(themeFromContext),
92
+ css: [buttonNoOpStyle] // Typescript working for css mismatch error
89
93
  // These are all explicit, leaving it in just in case
90
94
  }, rest), children));
91
95
  if (tooltip) {
@@ -17,6 +17,10 @@ var _excluded = ["component", "isHighlighted", "isLoading", "onClick", "testId",
17
17
  * @jsx jsx
18
18
  */
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+ var buttonNoOpStyle = (0, _react2.css)({
21
+ '--noop': 1
22
+ });
23
+
20
24
  /**
21
25
  * __Primary dropdown button__
22
26
  *
@@ -51,7 +55,8 @@ var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _re
51
55
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
52
56
  ,
53
57
  theme: theme,
54
- tooltip: tooltip
55
- // These are mostly explicit, leaving it in just in case
58
+ tooltip: tooltip,
59
+ css: [buttonNoOpStyle] // Typescript working for css mismatch error
60
+ // These are all explicit, leaving it in just in case
56
61
  }, rest));
57
62
  });
@@ -52,7 +52,6 @@ var PrimaryItemsContainer = exports.PrimaryItemsContainer = function PrimaryItem
52
52
  var moreLabel = _ref.moreLabel,
53
53
  items = _ref.items,
54
54
  Create = _ref.create,
55
- theme = _ref.theme,
56
55
  testId = _ref.testId;
57
56
  var _useState = (0, _react.useState)(false),
58
57
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -73,4 +73,4 @@ var Profile = exports.Profile = /*#__PURE__*/(0, _react.forwardRef)(function (pr
73
73
 
74
74
  // This exists only to extract props.
75
75
  // eslint-disable-next-line import/no-anonymous-default-export
76
- var _default = exports.default = function _default(props) {};
76
+ var _default = exports.default = function _default(_props) {};
@@ -139,6 +139,7 @@ var useOverflowController = exports.useOverflowController = function useOverflow
139
139
  }
140
140
  return;
141
141
  }
142
+ return;
142
143
  }, [width, hashRef, itemsLimit, itemsWidths, forceEffectValue, items.length]);
143
144
  return {
144
145
  visibleItems: items.slice(0, itemsLimit),
@@ -149,4 +150,4 @@ var useOverflowController = exports.useOverflowController = function useOverflow
149
150
 
150
151
  // Used to extract props for useOverflowStatus();
151
152
  // eslint-disable-next-line import/no-anonymous-default-export
152
- var _default = exports.default = function _default(props) {};
153
+ var _default = exports.default = function _default(_props) {};
@@ -84,8 +84,7 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
84
84
  */
85
85
  var Nav4SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
86
86
  var _ref2$label = _ref2.label,
87
- label = _ref2$label === void 0 ? '' : _ref2$label,
88
- testId = _ref2.testId;
87
+ label = _ref2$label === void 0 ? '' : _ref2$label;
89
88
  return (0, _react.jsx)(_SkeletonIconButton.SkeletonIconButton, null, (0, _react.jsx)(_appSwitcher.default, {
90
89
  label: label,
91
90
  spacing: "spacious",
@@ -59,7 +59,7 @@ var generateButtonCSSStates = function generateButtonCSSStates(colors, buttonTyp
59
59
  }
60
60
  };
61
61
  };
62
- var generateCreateButtonColors = function generateCreateButtonColors(themeBackground, themeHighlight) {
62
+ var generateCreateButtonColors = function generateCreateButtonColors(_themeBackground, themeHighlight) {
63
63
  return {
64
64
  backgroundColor: themeHighlight,
65
65
  color: (0, _themeHelpers.generateTextColor)(themeHighlight),
@@ -108,4 +108,4 @@ export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
108
108
 
109
109
  // exists only to extract props
110
110
  // eslint-disable-next-line import/no-anonymous-default-export
111
- export default (props => {});
111
+ export default (_props => {});
@@ -21,6 +21,9 @@ const buttonBaseStyles = css({
21
21
  justifyContent: 'center',
22
22
  flexDirection: 'column'
23
23
  });
24
+ const buttonNoOpStyle = css({
25
+ '--noop': 1
26
+ });
24
27
  const buttonHighlightedStyles = css({
25
28
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
26
29
  '&& > *': {
@@ -81,7 +84,8 @@ export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
81
84
  testId: testId
82
85
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
83
86
  ,
84
- theme: theme || getPrimaryButtonTheme(themeFromContext)
87
+ theme: theme || getPrimaryButtonTheme(themeFromContext),
88
+ css: [buttonNoOpStyle] // Typescript working for css mismatch error
85
89
  // These are all explicit, leaving it in just in case
86
90
  }, rest), children));
87
91
  if (tooltip) {
@@ -6,9 +6,13 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
9
+ import { css, jsx } from '@emotion/react';
10
10
  import ChevronIconMigration from '@atlaskit/icon/core/migration/chevron-down';
11
11
  import { PrimaryButton } from '../PrimaryButton';
12
+ const buttonNoOpStyle = css({
13
+ '--noop': 1
14
+ });
15
+
12
16
  /**
13
17
  * __Primary dropdown button__
14
18
  *
@@ -45,7 +49,8 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
45
49
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
46
50
  ,
47
51
  theme: theme,
48
- tooltip: tooltip
49
- // These are mostly explicit, leaving it in just in case
52
+ tooltip: tooltip,
53
+ css: [buttonNoOpStyle] // Typescript working for css mismatch error
54
+ // These are all explicit, leaving it in just in case
50
55
  }, rest));
51
56
  });
@@ -43,7 +43,6 @@ export const PrimaryItemsContainer = ({
43
43
  moreLabel,
44
44
  items,
45
45
  create: Create,
46
- theme,
47
46
  testId
48
47
  }) => {
49
48
  const [isMoreOpen, setIsMoreOpen] = useState(false);
@@ -64,4 +64,4 @@ export const Profile = /*#__PURE__*/forwardRef((props, ref) => {
64
64
 
65
65
  // This exists only to extract props.
66
66
  // eslint-disable-next-line import/no-anonymous-default-export
67
- export default (props => {});
67
+ export default (_props => {});
@@ -116,6 +116,7 @@ export const useOverflowController = nodes => {
116
116
  }
117
117
  return;
118
118
  }
119
+ return;
119
120
  }, [width, hashRef, itemsLimit, itemsWidths, forceEffectValue, items.length]);
120
121
  return {
121
122
  visibleItems: items.slice(0, itemsLimit),
@@ -126,4 +127,4 @@ export const useOverflowController = nodes => {
126
127
 
127
128
  // Used to extract props for useOverflowStatus();
128
129
  // eslint-disable-next-line import/no-anonymous-default-export
129
- export default (props => {});
130
+ export default (_props => {});
@@ -75,8 +75,7 @@ export const SkeletonSwitcherButton = ({
75
75
  * A nav 4 skeleton switcher button
76
76
  */
77
77
  export const Nav4SkeletonSwitcherButton = ({
78
- label = '',
79
- testId
78
+ label = ''
80
79
  }) => jsx(SkeletonIconButton, null, jsx(Nav4AppSwitcherIcon, {
81
80
  label: label,
82
81
  spacing: "spacious",
@@ -49,7 +49,7 @@ const generateButtonCSSStates = (colors, buttonType) => {
49
49
  }
50
50
  };
51
51
  };
52
- const generateCreateButtonColors = (themeBackground, themeHighlight) => ({
52
+ const generateCreateButtonColors = (_themeBackground, themeHighlight) => ({
53
53
  backgroundColor: themeHighlight,
54
54
  color: generateTextColor(themeHighlight),
55
55
  highlightColor: themeHighlight
@@ -107,4 +107,4 @@ export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
107
107
 
108
108
  // exists only to extract props
109
109
  // eslint-disable-next-line import/no-anonymous-default-export
110
- export default (function (props) {});
110
+ export default (function (_props) {});
@@ -24,6 +24,9 @@ var buttonBaseStyles = css({
24
24
  justifyContent: 'center',
25
25
  flexDirection: 'column'
26
26
  });
27
+ var buttonNoOpStyle = css({
28
+ '--noop': 1
29
+ });
27
30
  var buttonHighlightedStyles = css({
28
31
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
29
32
  '&& > *': {
@@ -79,7 +82,8 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
79
82
  testId: testId
80
83
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
81
84
  ,
82
- theme: theme || getPrimaryButtonTheme(themeFromContext)
85
+ theme: theme || getPrimaryButtonTheme(themeFromContext),
86
+ css: [buttonNoOpStyle] // Typescript working for css mismatch error
83
87
  // These are all explicit, leaving it in just in case
84
88
  }, rest), children));
85
89
  if (tooltip) {
@@ -8,9 +8,13 @@ var _excluded = ["component", "isHighlighted", "isLoading", "onClick", "testId",
8
8
  import { forwardRef } from 'react';
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
- import { jsx } from '@emotion/react';
11
+ import { css, jsx } from '@emotion/react';
12
12
  import ChevronIconMigration from '@atlaskit/icon/core/migration/chevron-down';
13
13
  import { PrimaryButton } from '../PrimaryButton';
14
+ var buttonNoOpStyle = css({
15
+ '--noop': 1
16
+ });
17
+
14
18
  /**
15
19
  * __Primary dropdown button__
16
20
  *
@@ -45,7 +49,8 @@ export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref)
45
49
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
46
50
  ,
47
51
  theme: theme,
48
- tooltip: tooltip
49
- // These are mostly explicit, leaving it in just in case
52
+ tooltip: tooltip,
53
+ css: [buttonNoOpStyle] // Typescript working for css mismatch error
54
+ // These are all explicit, leaving it in just in case
50
55
  }, rest));
51
56
  });
@@ -44,7 +44,6 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
44
44
  var moreLabel = _ref.moreLabel,
45
45
  items = _ref.items,
46
46
  Create = _ref.create,
47
- theme = _ref.theme,
48
47
  testId = _ref.testId;
49
48
  var _useState = useState(false),
50
49
  _useState2 = _slicedToArray(_useState, 2),
@@ -64,4 +64,4 @@ export var Profile = /*#__PURE__*/forwardRef(function (props, ref) {
64
64
 
65
65
  // This exists only to extract props.
66
66
  // eslint-disable-next-line import/no-anonymous-default-export
67
- export default (function (props) {});
67
+ export default (function (_props) {});
@@ -131,6 +131,7 @@ export var useOverflowController = function useOverflowController(nodes) {
131
131
  }
132
132
  return;
133
133
  }
134
+ return;
134
135
  }, [width, hashRef, itemsLimit, itemsWidths, forceEffectValue, items.length]);
135
136
  return {
136
137
  visibleItems: items.slice(0, itemsLimit),
@@ -141,4 +142,4 @@ export var useOverflowController = function useOverflowController(nodes) {
141
142
 
142
143
  // Used to extract props for useOverflowStatus();
143
144
  // eslint-disable-next-line import/no-anonymous-default-export
144
- export default (function (props) {});
145
+ export default (function (_props) {});
@@ -76,8 +76,7 @@ export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
76
76
  */
77
77
  export var Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
78
78
  var _ref2$label = _ref2.label,
79
- label = _ref2$label === void 0 ? '' : _ref2$label,
80
- testId = _ref2.testId;
79
+ label = _ref2$label === void 0 ? '' : _ref2$label;
81
80
  return jsx(SkeletonIconButton, null, jsx(Nav4AppSwitcherIcon, {
82
81
  label: label,
83
82
  spacing: "spacious",
@@ -52,7 +52,7 @@ var generateButtonCSSStates = function generateButtonCSSStates(colors, buttonTyp
52
52
  }
53
53
  };
54
54
  };
55
- var generateCreateButtonColors = function generateCreateButtonColors(themeBackground, themeHighlight) {
55
+ var generateCreateButtonColors = function generateCreateButtonColors(_themeBackground, themeHighlight) {
56
56
  return {
57
57
  backgroundColor: themeHighlight,
58
58
  color: generateTextColor(themeHighlight),
@@ -11,5 +11,5 @@ import { type AppSwitcherProps } from './types';
11
11
  */
12
12
  export declare const AppSwitcher: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
13
13
  export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
14
- declare const _default: (props: AppSwitcherProps) => void;
14
+ declare const _default: (_props: AppSwitcherProps) => void;
15
15
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { type NavigationTheme } from '../../theme';
3
3
  import { type PrimaryItemsContainerProps } from './types';
4
- export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
5
- theme: NavigationTheme;
4
+ export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, testId, }: PrimaryItemsContainerProps & {
5
+ theme?: NavigationTheme;
6
6
  }) => jsx.JSX.Element;
@@ -10,5 +10,5 @@ import { type ProfileProps } from './types';
10
10
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
11
  */
12
12
  export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
13
- declare const _default: (props: ProfileProps) => void;
13
+ declare const _default: (_props: ProfileProps) => void;
14
14
  export default _default;
@@ -31,5 +31,5 @@ export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) =>
31
31
  overflowItems: ReactNode[];
32
32
  updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
33
33
  };
34
- declare const _default: (props: OverflowContext) => void;
34
+ declare const _default: (_props: OverflowContext) => void;
35
35
  export default _default;
@@ -32,4 +32,4 @@ export declare const SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitche
32
32
  *
33
33
  * A nav 4 skeleton switcher button
34
34
  */
35
- export declare const Nav4SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
35
+ export declare const Nav4SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
@@ -11,5 +11,5 @@ import { type AppSwitcherProps } from './types';
11
11
  */
12
12
  export declare const AppSwitcher: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
13
13
  export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
14
- declare const _default: (props: AppSwitcherProps) => void;
14
+ declare const _default: (_props: AppSwitcherProps) => void;
15
15
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { type NavigationTheme } from '../../theme';
3
3
  import { type PrimaryItemsContainerProps } from './types';
4
- export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
5
- theme: NavigationTheme;
4
+ export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, testId, }: PrimaryItemsContainerProps & {
5
+ theme?: NavigationTheme;
6
6
  }) => jsx.JSX.Element;
@@ -10,5 +10,5 @@ import { type ProfileProps } from './types';
10
10
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
11
  */
12
12
  export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
13
- declare const _default: (props: ProfileProps) => void;
13
+ declare const _default: (_props: ProfileProps) => void;
14
14
  export default _default;
@@ -31,5 +31,5 @@ export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) =>
31
31
  overflowItems: ReactNode[];
32
32
  updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
33
33
  };
34
- declare const _default: (props: OverflowContext) => void;
34
+ declare const _default: (_props: OverflowContext) => void;
35
35
  export default _default;
@@ -32,4 +32,4 @@ export declare const SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitche
32
32
  *
33
33
  * A nav 4 skeleton switcher button
34
34
  */
35
- export declare const Nav4SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
35
+ export declare const Nav4SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "5.3.22",
3
+ "version": "5.4.0",
4
4
  "description": "A horizontal navigation component for Atlassian apps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,11 +42,11 @@
42
42
  "@atlaskit/icon": "^28.5.0",
43
43
  "@atlaskit/logo": "^19.9.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
- "@atlaskit/popup": "^4.4.0",
46
- "@atlaskit/primitives": "^15.0.0",
45
+ "@atlaskit/popup": "^4.6.0",
46
+ "@atlaskit/primitives": "^16.1.0",
47
47
  "@atlaskit/theme": "^21.0.0",
48
- "@atlaskit/tokens": "^7.0.0",
49
- "@atlaskit/tooltip": "^20.5.0",
48
+ "@atlaskit/tokens": "^7.1.0",
49
+ "@atlaskit/tooltip": "^20.7.0",
50
50
  "@atlaskit/width-detector": "^5.0.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
@@ -62,7 +62,7 @@
62
62
  "@af/visual-regression": "workspace:^",
63
63
  "@atlaskit/analytics-next": "^11.1.0",
64
64
  "@atlaskit/atlassian-notifications": "^0.8.0",
65
- "@atlaskit/avatar": "^25.4.0",
65
+ "@atlaskit/avatar": "^25.5.0",
66
66
  "@atlaskit/badge": "^18.2.0",
67
67
  "@atlaskit/docs": "^11.2.0",
68
68
  "@atlaskit/drawer": "^11.0.0",
@@ -71,10 +71,10 @@
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
- "@atlaskit/section-message": "^8.7.0",
74
+ "@atlaskit/section-message": "^8.9.0",
75
75
  "@atlaskit/spinner": "^19.0.0",
76
76
  "@atlaskit/textfield": "^8.0.0",
77
- "@atlassian/switcher": "^39.7.0",
77
+ "@atlassian/switcher": "^39.10.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",
@@ -1,63 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../dev-agents/tsDist/@atlaskit__atlassian-navigation/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-namespaced-context/afm-dev-agents/tsconfig.json"
28
- },
29
- {
30
- "path": "../../button/afm-dev-agents/tsconfig.json"
31
- },
32
- {
33
- "path": "../../ds-lib/afm-dev-agents/tsconfig.json"
34
- },
35
- {
36
- "path": "../../icon/afm-dev-agents/tsconfig.json"
37
- },
38
- {
39
- "path": "../../logo/afm-dev-agents/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
43
- },
44
- {
45
- "path": "../../popup/afm-dev-agents/tsconfig.json"
46
- },
47
- {
48
- "path": "../../primitives/afm-dev-agents/tsconfig.json"
49
- },
50
- {
51
- "path": "../../theme/afm-dev-agents/tsconfig.json"
52
- },
53
- {
54
- "path": "../../tokens/afm-dev-agents/tsconfig.json"
55
- },
56
- {
57
- "path": "../../tooltip/afm-dev-agents/tsconfig.json"
58
- },
59
- {
60
- "path": "../../width-detector/afm-dev-agents/tsconfig.json"
61
- }
62
- ]
63
- }
@@ -1,63 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.passionfruit.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../passionfruit/tsDist/@atlaskit__atlassian-navigation/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-namespaced-context/afm-passionfruit/tsconfig.json"
28
- },
29
- {
30
- "path": "../../button/afm-passionfruit/tsconfig.json"
31
- },
32
- {
33
- "path": "../../ds-lib/afm-passionfruit/tsconfig.json"
34
- },
35
- {
36
- "path": "../../icon/afm-passionfruit/tsconfig.json"
37
- },
38
- {
39
- "path": "../../logo/afm-passionfruit/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
43
- },
44
- {
45
- "path": "../../popup/afm-passionfruit/tsconfig.json"
46
- },
47
- {
48
- "path": "../../primitives/afm-passionfruit/tsconfig.json"
49
- },
50
- {
51
- "path": "../../theme/afm-passionfruit/tsconfig.json"
52
- },
53
- {
54
- "path": "../../tokens/afm-passionfruit/tsconfig.json"
55
- },
56
- {
57
- "path": "../../tooltip/afm-passionfruit/tsconfig.json"
58
- },
59
- {
60
- "path": "../../width-detector/afm-passionfruit/tsconfig.json"
61
- }
62
- ]
63
- }
@@ -1,63 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../post-office/tsDist/@atlaskit__atlassian-navigation/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-namespaced-context/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../button/afm-post-office/tsconfig.json"
31
- },
32
- {
33
- "path": "../../ds-lib/afm-post-office/tsconfig.json"
34
- },
35
- {
36
- "path": "../../icon/afm-post-office/tsconfig.json"
37
- },
38
- {
39
- "path": "../../logo/afm-post-office/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
43
- },
44
- {
45
- "path": "../../popup/afm-post-office/tsconfig.json"
46
- },
47
- {
48
- "path": "../../primitives/afm-post-office/tsconfig.json"
49
- },
50
- {
51
- "path": "../../theme/afm-post-office/tsconfig.json"
52
- },
53
- {
54
- "path": "../../tokens/afm-post-office/tsconfig.json"
55
- },
56
- {
57
- "path": "../../tooltip/afm-post-office/tsconfig.json"
58
- },
59
- {
60
- "path": "../../width-detector/afm-post-office/tsconfig.json"
61
- }
62
- ]
63
- }
@@ -1,63 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.rovo-extension.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../rovo-extension/tsDist/@atlaskit__atlassian-navigation/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-namespaced-context/afm-rovo-extension/tsconfig.json"
28
- },
29
- {
30
- "path": "../../button/afm-rovo-extension/tsconfig.json"
31
- },
32
- {
33
- "path": "../../ds-lib/afm-rovo-extension/tsconfig.json"
34
- },
35
- {
36
- "path": "../../icon/afm-rovo-extension/tsconfig.json"
37
- },
38
- {
39
- "path": "../../logo/afm-rovo-extension/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../platform/feature-flags/afm-rovo-extension/tsconfig.json"
43
- },
44
- {
45
- "path": "../../popup/afm-rovo-extension/tsconfig.json"
46
- },
47
- {
48
- "path": "../../primitives/afm-rovo-extension/tsconfig.json"
49
- },
50
- {
51
- "path": "../../theme/afm-rovo-extension/tsconfig.json"
52
- },
53
- {
54
- "path": "../../tokens/afm-rovo-extension/tsconfig.json"
55
- },
56
- {
57
- "path": "../../tooltip/afm-rovo-extension/tsconfig.json"
58
- },
59
- {
60
- "path": "../../width-detector/afm-rovo-extension/tsconfig.json"
61
- }
62
- ]
63
- }
@@ -1,63 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../townsquare/tsDist/@atlaskit__atlassian-navigation/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-namespaced-context/afm-townsquare/tsconfig.json"
28
- },
29
- {
30
- "path": "../../button/afm-townsquare/tsconfig.json"
31
- },
32
- {
33
- "path": "../../ds-lib/afm-townsquare/tsconfig.json"
34
- },
35
- {
36
- "path": "../../icon/afm-townsquare/tsconfig.json"
37
- },
38
- {
39
- "path": "../../logo/afm-townsquare/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
43
- },
44
- {
45
- "path": "../../popup/afm-townsquare/tsconfig.json"
46
- },
47
- {
48
- "path": "../../primitives/afm-townsquare/tsconfig.json"
49
- },
50
- {
51
- "path": "../../theme/afm-townsquare/tsconfig.json"
52
- },
53
- {
54
- "path": "../../tokens/afm-townsquare/tsconfig.json"
55
- },
56
- {
57
- "path": "../../tooltip/afm-townsquare/tsconfig.json"
58
- },
59
- {
60
- "path": "../../width-detector/afm-townsquare/tsconfig.json"
61
- }
62
- ]
63
- }
@@ -1,63 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.volt.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../volt/tsDist/@atlaskit__atlassian-navigation/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-namespaced-context/afm-volt/tsconfig.json"
28
- },
29
- {
30
- "path": "../../button/afm-volt/tsconfig.json"
31
- },
32
- {
33
- "path": "../../ds-lib/afm-volt/tsconfig.json"
34
- },
35
- {
36
- "path": "../../icon/afm-volt/tsconfig.json"
37
- },
38
- {
39
- "path": "../../logo/afm-volt/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../platform/feature-flags/afm-volt/tsconfig.json"
43
- },
44
- {
45
- "path": "../../popup/afm-volt/tsconfig.json"
46
- },
47
- {
48
- "path": "../../primitives/afm-volt/tsconfig.json"
49
- },
50
- {
51
- "path": "../../theme/afm-volt/tsconfig.json"
52
- },
53
- {
54
- "path": "../../tokens/afm-volt/tsconfig.json"
55
- },
56
- {
57
- "path": "../../tooltip/afm-volt/tsconfig.json"
58
- },
59
- {
60
- "path": "../../width-detector/afm-volt/tsconfig.json"
61
- }
62
- ]
63
- }