@atlaskit/atlassian-navigation 6.2.1 → 6.3.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 (35) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/components/AtlassianNavigation/index.js +2 -2
  3. package/dist/cjs/components/Create/index.js +2 -2
  4. package/dist/cjs/components/Create/styles.js +0 -1
  5. package/dist/cjs/components/IconButton/index.js +2 -2
  6. package/dist/cjs/components/IconButton/styles.js +0 -1
  7. package/dist/cjs/components/PrimaryButton/index.js +2 -2
  8. package/dist/cjs/components/PrimaryButton/styles.js +0 -1
  9. package/dist/cjs/components/PrimaryItemsContainer/index.js +4 -4
  10. package/dist/cjs/controllers/overflow/index.js +0 -1
  11. package/dist/cjs/controllers/overflow/use-overflow-controller.js +0 -2
  12. package/dist/es2019/components/AtlassianNavigation/index.js +1 -1
  13. package/dist/es2019/components/Create/index.js +1 -1
  14. package/dist/es2019/components/Create/styles.js +0 -1
  15. package/dist/es2019/components/IconButton/index.js +1 -1
  16. package/dist/es2019/components/IconButton/styles.js +0 -1
  17. package/dist/es2019/components/PrimaryButton/index.js +1 -1
  18. package/dist/es2019/components/PrimaryButton/styles.js +0 -1
  19. package/dist/es2019/components/PrimaryItemsContainer/index.js +2 -2
  20. package/dist/es2019/controllers/overflow/index.js +0 -1
  21. package/dist/es2019/controllers/overflow/use-overflow-controller.js +0 -3
  22. package/dist/esm/components/AtlassianNavigation/index.js +1 -1
  23. package/dist/esm/components/Create/index.js +1 -1
  24. package/dist/esm/components/Create/styles.js +0 -1
  25. package/dist/esm/components/IconButton/index.js +1 -1
  26. package/dist/esm/components/IconButton/styles.js +0 -1
  27. package/dist/esm/components/PrimaryButton/index.js +1 -1
  28. package/dist/esm/components/PrimaryButton/styles.js +0 -1
  29. package/dist/esm/components/PrimaryItemsContainer/index.js +2 -2
  30. package/dist/esm/controllers/overflow/index.js +0 -1
  31. package/dist/esm/controllers/overflow/use-overflow-controller.js +0 -3
  32. package/dist/types/components/PrimaryButton/types.d.ts +1 -1
  33. package/dist/types/components/ProductHome/types.d.ts +1 -1
  34. package/package.json +20 -40
  35. package/atlassian-navigation.docs.tsx +0 -136
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 6.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d82e6f76528ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82e6f76528ab) -
8
+ Add direct subpath package exports as part of the linking-platform, search, media, and
9
+ design-system barrel-removal (de-barrel) migration.
10
+
11
+ These packages now expose their individual modules via explicit `package.json` `exports` subpaths
12
+ so that consumers can import directly from the leaf module (e.g. `@atlaskit/pkg/thing`) instead of
13
+ the package barrel/index. This adds new public entry points without changing or removing any
14
+ existing exports, so it is a backwards-compatible additive change.
15
+
16
+ No runtime behaviour changes; this is an API-surface (entry-point) addition to support
17
+ tree-shaking and to unblock removal of the barrel index files.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 6.2.1
4
24
 
5
25
  ### Patch Changes
@@ -8,7 +8,7 @@ exports.AtlassianNavigation = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
- var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
11
+ var _NavigationAnalyticsContext = require("@atlaskit/analytics-namespaced-context/NavigationAnalyticsContext");
12
12
  var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
13
13
  var _constants = require("../../common/constants");
14
14
  var _theme = require("../../theme");
@@ -101,7 +101,7 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
101
101
  isSSRPlaceholderEnabled = _props$isSSRPlacehold === void 0 ? false : _props$isSSRPlacehold;
102
102
  return (0, _react2.jsx)(_theme.ThemeProvider, {
103
103
  value: theme
104
- }, (0, _react2.jsx)(_analyticsNamespacedContext.NavigationAnalyticsContext, {
104
+ }, (0, _react2.jsx)(_NavigationAnalyticsContext.NavigationAnalyticsContext, {
105
105
  data: analyticsData
106
106
  }, (0, _react2.jsx)("header", (0, _extends2.default)({
107
107
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
12
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
13
13
  var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
14
- var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
14
+ var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
15
15
  var _constants = require("../../common/constants");
16
16
  var _theme = require("../../theme");
17
17
  var _IconButton = require("../IconButton");
@@ -45,7 +45,7 @@ var wrapperStyles = (0, _react2.css)({
45
45
  var TooltipSwitch = function TooltipSwitch(_ref) {
46
46
  var buttonTooltip = _ref.buttonTooltip,
47
47
  children = _ref.children;
48
- return buttonTooltip ? (0, _react2.jsx)(_tooltip.default, {
48
+ return buttonTooltip ? (0, _react2.jsx)(_Tooltip.default, {
49
49
  content: buttonTooltip,
50
50
  hideTooltipOnClick: true
51
51
  }, children) : (0, _react2.jsx)(_react.Fragment, null, children);
@@ -24,7 +24,6 @@ var getCreateButtonTheme = exports.getCreateButtonTheme = function getCreateButt
24
24
  // e.preventDefault() on mouse down in Button.
25
25
  // '&&' is required to add more CSS specificity
26
26
  // && it not a valid CSSObject property
27
- // @ts-ignore
28
27
  '&&': _objectSpread({}, props.state === 'active' && create.active)
29
28
  }),
30
29
  spinnerStyles: spinnerStyles
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
13
- var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
13
+ var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
14
14
  var _theme = require("../../theme");
15
15
  var _styles = require("./styles");
16
16
  var _excluded = ["icon", "label", "testId", "tooltip", "component", "href", "id", "isDisabled", "isSelected", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "theme", "isTooltipAnnouncementDisabled"];
@@ -73,7 +73,7 @@ var IconButton = exports.IconButton = /*#__PURE__*/(0, _react.forwardRef)(functi
73
73
  // These are all explicit, leaving it in just in case
74
74
  }, rest));
75
75
  if (tooltip) {
76
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
76
+ return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
77
77
  content: tooltip,
78
78
  hideTooltipOnClick: true,
79
79
  isScreenReaderAnnouncementDisabled: isTooltipAnnouncementDisabled
@@ -29,7 +29,6 @@ var getIconButtonTheme = exports.getIconButtonTheme = function getIconButtonThem
29
29
  // e.preventDefault() on mouse down in Button.
30
30
  // '&&' is required to add more CSS specificity
31
31
  // && it not a valid CSSObject property
32
- // @ts-ignore
33
32
  '&&': _objectSpread({}, props.state === 'active' && iconButton.active)
34
33
  }, props.state === 'selected' && iconButton.selected), {}, {
35
34
  '> span': {
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
14
- var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
14
+ var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
15
15
  var _theme = require("../../theme");
16
16
  var _styles = require("./styles");
17
17
  var _excluded = ["children", "component", "isHighlighted", "isLoading", "isSelected", "onClick", "testId", "theme", "tooltip", "shortcut"];
@@ -96,7 +96,7 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
96
96
  // These are all explicit, leaving it in just in case
97
97
  }, rest), children));
98
98
  if (tooltip) {
99
- return (0, _react2.jsx)(_tooltip.default, {
99
+ return (0, _react2.jsx)(_Tooltip.default, {
100
100
  content: tooltip,
101
101
  hideTooltipOnClick: true,
102
102
  shortcut: shortcut
@@ -26,7 +26,6 @@ var getPrimaryButtonTheme = exports.getPrimaryButtonTheme = function getPrimaryB
26
26
  // e.preventDefault() on mouse down in Button.
27
27
  // '&&' is required to add more CSS specificity
28
28
  // && it not a valid CSSObject property
29
- // @ts-ignore
30
29
  '&&': _objectSpread({}, props.state === 'active' && primaryButton.active)
31
30
  }),
32
31
  spinnerStyles: spinnerStyles
@@ -10,8 +10,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _react2 = require("@emotion/react");
13
- var _popup = _interopRequireDefault(require("@atlaskit/popup"));
14
- var _widthDetector = require("@atlaskit/width-detector");
13
+ var _popup = require("@atlaskit/popup/popup");
14
+ var _widthObserver = require("@atlaskit/width-detector/width-observer");
15
15
  var _overflowProvider = require("../../controllers/overflow/overflow-provider");
16
16
  var _useOverflowController = require("../../controllers/overflow/use-overflow-controller");
17
17
  var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
@@ -101,7 +101,7 @@ var PrimaryItemsContainer = exports.PrimaryItemsContainer = function PrimaryItem
101
101
  isVisible: true,
102
102
  openOverflowMenu: openOverflowMenu,
103
103
  closeOverflowMenu: onMoreClose
104
- }, visibleItems), overflowItems.length > 0 && (0, _react2.jsx)(_popup.default, {
104
+ }, visibleItems), overflowItems.length > 0 && (0, _react2.jsx)(_popup.Popup, {
105
105
  shouldRenderToParent: true,
106
106
  placement: "bottom-start",
107
107
  content: content,
@@ -111,7 +111,7 @@ var PrimaryItemsContainer = exports.PrimaryItemsContainer = function PrimaryItem
111
111
  testId: testId ? "".concat(testId, "-overflow-menu-popup") : 'overflow-menu-popup'
112
112
  }), Create && (0, _react2.jsx)(Create, null), (0, _react2.jsx)("div", {
113
113
  css: widthObserverContainerStyles
114
- }, (0, _react2.jsx)(_widthDetector.WidthObserver, {
114
+ }, (0, _react2.jsx)(_widthObserver.WidthObserver, {
115
115
  offscreen: true,
116
116
  setWidth: updateWidth
117
117
  })));
@@ -11,7 +11,6 @@ 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
  // oxlint-disable-next-line @atlassian/no-restricted-imports
16
15
 
17
16
  // Prevent width detector from triggering too many re-renders
@@ -10,8 +10,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _throttle = _interopRequireDefault(require("lodash/throttle"));
12
12
  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); }
13
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
14
-
15
13
  var THROTTLE_INTERVAL = 16 * 4;
16
14
  var ITEM_APPROX_MINWIDTH = 70;
17
15
  var calculateHash = function calculateHash(w, n) {
@@ -7,7 +7,7 @@ import React from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
10
+ import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context/NavigationAnalyticsContext';
11
11
  import warnOnce from '@atlaskit/ds-lib/warn-once';
12
12
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
13
13
  import { defaultTheme, ThemeProvider } from '../../theme';
@@ -8,7 +8,7 @@ import React, { Fragment } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import Button from '@atlaskit/button/custom-theme-button';
10
10
  import AddIcon from '@atlaskit/icon/core/add';
11
- import Tooltip from '@atlaskit/tooltip';
11
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
12
12
  import { CREATE_BREAKPOINT } from '../../common/constants';
13
13
  import { useTheme } from '../../theme';
14
14
  import { IconButton } from '../IconButton';
@@ -19,7 +19,6 @@ export const getCreateButtonTheme = ({
19
19
  // e.preventDefault() on mouse down in Button.
20
20
  // '&&' is required to add more CSS specificity
21
21
  // && it not a valid CSSObject property
22
- // @ts-ignore
23
22
  '&&': {
24
23
  ...(props.state === 'active' && create.active)
25
24
  }
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef } from 'react';
3
3
  import Button from '@atlaskit/button/custom-theme-button';
4
- import Tooltip from '@atlaskit/tooltip';
4
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
5
5
  import { useTheme } from '../../theme';
6
6
  import { getIconButtonTheme } from './styles';
7
7
  /**
@@ -23,7 +23,6 @@ export const getIconButtonTheme = ({
23
23
  // e.preventDefault() on mouse down in Button.
24
24
  // '&&' is required to add more CSS specificity
25
25
  // && it not a valid CSSObject property
26
- // @ts-ignore
27
26
  '&&': {
28
27
  ...(props.state === 'active' && iconButton.active)
29
28
  },
@@ -8,7 +8,7 @@ import { forwardRef } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import Button from '@atlaskit/button/custom-theme-button';
11
- import Tooltip from '@atlaskit/tooltip';
11
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
12
12
  import { useTheme } from '../../theme';
13
13
  import { getPrimaryButtonTheme } from './styles';
14
14
  const VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
@@ -22,7 +22,6 @@ export const getPrimaryButtonTheme = ({
22
22
  // e.preventDefault() on mouse down in Button.
23
23
  // '&&' is required to add more CSS specificity
24
24
  // && it not a valid CSSObject property
25
- // @ts-ignore
26
25
  '&&': {
27
26
  ...(props.state === 'active' && primaryButton.active)
28
27
  }
@@ -7,8 +7,8 @@ import React, { useCallback, useState } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import Popup from '@atlaskit/popup';
11
- import { WidthObserver } from '@atlaskit/width-detector';
10
+ import { Popup } from '@atlaskit/popup/popup';
11
+ import { WidthObserver } from '@atlaskit/width-detector/width-observer';
12
12
  import { OverflowProvider } from '../../controllers/overflow/overflow-provider';
13
13
  import { useOverflowController } from '../../controllers/overflow/use-overflow-controller';
14
14
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
@@ -1,6 +1,5 @@
1
1
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
2
2
 
3
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
4
3
  // oxlint-disable-next-line @atlassian/no-restricted-imports
5
4
 
6
5
  import throttle from 'lodash/throttle';
@@ -1,7 +1,4 @@
1
1
  import React, { useCallback, useEffect, useRef, useState } from 'react';
2
-
3
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
4
-
5
2
  import throttle from 'lodash/throttle';
6
3
  const THROTTLE_INTERVAL = 16 * 4;
7
4
  const ITEM_APPROX_MINWIDTH = 70;
@@ -7,7 +7,7 @@ import React from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
10
+ import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context/NavigationAnalyticsContext';
11
11
  import warnOnce from '@atlaskit/ds-lib/warn-once';
12
12
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
13
13
  import { defaultTheme, ThemeProvider } from '../../theme';
@@ -9,7 +9,7 @@ import React, { Fragment } from 'react';
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import Button from '@atlaskit/button/custom-theme-button';
11
11
  import AddIcon from '@atlaskit/icon/core/add';
12
- import Tooltip from '@atlaskit/tooltip';
12
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
13
13
  import { CREATE_BREAKPOINT } from '../../common/constants';
14
14
  import { useTheme } from '../../theme';
15
15
  import { IconButton } from '../IconButton';
@@ -17,7 +17,6 @@ export var getCreateButtonTheme = function getCreateButtonTheme(_ref) {
17
17
  // e.preventDefault() on mouse down in Button.
18
18
  // '&&' is required to add more CSS specificity
19
19
  // && it not a valid CSSObject property
20
- // @ts-ignore
21
20
  '&&': _objectSpread({}, props.state === 'active' && create.active)
22
21
  }),
23
22
  spinnerStyles: spinnerStyles
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["icon", "label", "testId", "tooltip", "component", "href", "id", "isDisabled", "isSelected", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "theme", "isTooltipAnnouncementDisabled"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import Button from '@atlaskit/button/custom-theme-button';
6
- import Tooltip from '@atlaskit/tooltip';
6
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
7
7
  import { useTheme } from '../../theme';
8
8
  import { getIconButtonTheme } from './styles';
9
9
  /**
@@ -22,7 +22,6 @@ export var getIconButtonTheme = function getIconButtonTheme(_ref) {
22
22
  // e.preventDefault() on mouse down in Button.
23
23
  // '&&' is required to add more CSS specificity
24
24
  // && it not a valid CSSObject property
25
- // @ts-ignore
26
25
  '&&': _objectSpread({}, props.state === 'active' && iconButton.active)
27
26
  }, props.state === 'selected' && iconButton.selected), {}, {
28
27
  '> span': {
@@ -11,7 +11,7 @@ import { forwardRef } from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import Button from '@atlaskit/button/custom-theme-button';
14
- import Tooltip from '@atlaskit/tooltip';
14
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
15
15
  import { useTheme } from '../../theme';
16
16
  import { getPrimaryButtonTheme } from './styles';
17
17
  var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
@@ -19,7 +19,6 @@ export var getPrimaryButtonTheme = function getPrimaryButtonTheme(_ref) {
19
19
  // e.preventDefault() on mouse down in Button.
20
20
  // '&&' is required to add more CSS specificity
21
21
  // && it not a valid CSSObject property
22
- // @ts-ignore
23
22
  '&&': _objectSpread({}, props.state === 'active' && primaryButton.active)
24
23
  }),
25
24
  spinnerStyles: spinnerStyles
@@ -8,8 +8,8 @@ import React, { useCallback, useState } from 'react';
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
11
- import Popup from '@atlaskit/popup';
12
- import { WidthObserver } from '@atlaskit/width-detector';
11
+ import { Popup } from '@atlaskit/popup/popup';
12
+ import { WidthObserver } from '@atlaskit/width-detector/width-observer';
13
13
  import { OverflowProvider } from '../../controllers/overflow/overflow-provider';
14
14
  import { useOverflowController } from '../../controllers/overflow/use-overflow-controller';
15
15
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
@@ -1,7 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
3
3
 
4
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
4
  // oxlint-disable-next-line @atlassian/no-restricted-imports
6
5
 
7
6
  import throttle from 'lodash/throttle';
@@ -1,8 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useCallback, useEffect, useRef, useState } from 'react';
3
-
4
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
-
6
3
  import throttle from 'lodash/throttle';
7
4
  var THROTTLE_INTERVAL = 16 * 4;
8
5
  var ITEM_APPROX_MINWIDTH = 70;
@@ -1,6 +1,6 @@
1
1
  import { type AllHTMLAttributes, type ComponentType, type ElementType } from 'react';
2
2
  import { type CustomThemeButtonProps } from '@atlaskit/button/types';
3
- import type { TooltipProps } from '@atlaskit/tooltip';
3
+ import type { TooltipProps } from '@atlaskit/tooltip/types';
4
4
  export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
5
5
  /**
6
6
  * Allows for overriding the component used to render the button.
@@ -1,5 +1,5 @@
1
1
  import { type ComponentType, type MouseEvent } from 'react';
2
- import { type LogoProps } from '@atlaskit/logo';
2
+ import type { LogoProps } from '@atlaskit/logo/types';
3
3
  export interface ProductHomeProps {
4
4
  /**
5
5
  * The product icon.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "6.2.1",
3
+ "version": "6.3.0",
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
  "dependencies": {
38
38
  "@atlaskit/analytics-namespaced-context": "^8.1.0",
39
- "@atlaskit/button": "^25.0.0",
39
+ "@atlaskit/button": "^25.2.0",
40
40
  "@atlaskit/css": "1.0.2",
41
41
  "@atlaskit/ds-lib": "^8.0.0",
42
- "@atlaskit/icon": "^37.3.0",
43
- "@atlaskit/logo": "^21.4.0",
44
- "@atlaskit/popup": "^6.0.0",
45
- "@atlaskit/primitives": "^22.2.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",
46
46
  "@atlaskit/react-compiler-gating": "^0.2.0",
47
- "@atlaskit/tokens": "^16.4.0",
48
- "@atlaskit/tooltip": "^24.0.0",
49
- "@atlaskit/width-detector": "^7.0.0",
47
+ "@atlaskit/tokens": "^16.8.0",
48
+ "@atlaskit/tooltip": "^24.2.0",
49
+ "@atlaskit/width-detector": "^7.1.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "chromatism": "^2.6.0",
@@ -60,19 +60,19 @@
60
60
  "@af/integration-testing": "workspace:^",
61
61
  "@af/visual-regression": "workspace:^",
62
62
  "@atlaskit/analytics-next": "^12.3.0",
63
- "@atlaskit/avatar": "^26.4.0",
64
- "@atlaskit/badge": "^21.0.0",
65
- "@atlaskit/docs": "^12.1.0",
66
- "@atlaskit/drawer": "^14.0.0",
67
- "@atlaskit/dropdown-menu": "^18.0.0",
68
- "@atlaskit/form": "^16.1.0",
69
- "@atlaskit/menu": "^10.0.0",
63
+ "@atlaskit/avatar": "^27.2.0",
64
+ "@atlaskit/badge": "^21.1.0",
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",
69
+ "@atlaskit/menu": "^10.1.0",
70
70
  "@atlaskit/notification-indicator": "^11.1.0",
71
71
  "@atlaskit/notification-log-client": "^10.0.0",
72
- "@atlaskit/section-message": "^10.0.0",
73
- "@atlaskit/spinner": "^20.1.0",
74
- "@atlaskit/textfield": "^10.0.0",
75
- "@atlassian/switcher": "^48.15.0",
72
+ "@atlaskit/section-message": "^10.1.0",
73
+ "@atlaskit/spinner": "^20.3.0",
74
+ "@atlaskit/textfield": "^10.1.0",
75
+ "@atlassian/switcher": "^48.22.0",
76
76
  "@atlassian/switcher-test-utils": "^8.5.0",
77
77
  "@testing-library/react": "^16.3.0",
78
78
  "@testing-library/user-event": "^14.4.3",
@@ -81,26 +81,6 @@
81
81
  "react-dom": "^18.2.0",
82
82
  "react-intl": "^7.0.0"
83
83
  },
84
- "techstack": {
85
- "@atlassian/frontend": {
86
- "import-structure": "atlassian-conventions"
87
- },
88
- "@repo/internal": {
89
- "design-system": "v1",
90
- "dom-events": "use-bind-event-listener",
91
- "ui-components": "lite-mode",
92
- "analytics": "analytics-next",
93
- "styling": [
94
- "emotion",
95
- "static"
96
- ],
97
- "design-tokens": [
98
- "color",
99
- "spacing"
100
- ],
101
- "deprecation": "no-deprecated-imports"
102
- }
103
- },
104
84
  "homepage": "https://atlassian.design/components/atlassian-navigation/",
105
85
  "platform-feature-flags": {
106
86
  "platform-team25-app-icon-tiles": {
@@ -1,136 +0,0 @@
1
- /**
2
- * Structured MCP docs for `@atlaskit/atlassian-navigation`.
3
- */
4
-
5
- import path from 'path';
6
-
7
- import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
8
-
9
- import packageJson from './package.json';
10
-
11
- const packagePath = path.resolve(__dirname);
12
-
13
- const documentation: StructuredContentSource = {
14
- package: {
15
- package: '@atlaskit/atlassian-navigation',
16
- packagePath,
17
- packageJson,
18
- overview:
19
- 'A horizontal navigation component for Atlassian apps. It provides a consistent navigation experience across Atlassian products, including support for product home, primary navigation items, search, notifications, and user profile.',
20
- },
21
- components: [
22
- {
23
- name: 'AtlassianNavigation',
24
- description:
25
- 'The main container for horizontal navigation. It coordinates the layout of various navigation elements like product home, primary items, and global actions.',
26
- status: 'deprecated',
27
- import: {
28
- name: 'AtlassianNavigation',
29
- package: '@atlaskit/atlassian-navigation/atlassian-navigation',
30
- type: 'named',
31
- packagePath,
32
- packageJson,
33
- },
34
- usageGuidelines: [
35
- 'This package is deprecated. Use the new navigation system instead.',
36
- 'Provide `renderProductHome`, `primaryItems`, and other render props to customize the navigation content.',
37
- ],
38
- keywords: ['navigation', 'atlassian', 'horizontal-nav'],
39
- categories: ['navigation'],
40
- examples: [
41
- {
42
- name: 'Default navigation',
43
- description: 'Basic usage of AtlassianNavigation.',
44
- source: path.resolve(
45
- packagePath,
46
- './examples/constellation/atlassian-navigation-default.tsx',
47
- ),
48
- },
49
- {
50
- name: 'Jira integration',
51
- description: 'Example of AtlassianNavigation integrated with Jira-like items.',
52
- source: path.resolve(packagePath, './examples/00-jira-integration-example.tsx'),
53
- },
54
- {
55
- name: 'Anonymous example',
56
- description: 'Navigation for unauthenticated users.',
57
- source: path.resolve(packagePath, './examples/20-anonymous-example.tsx'),
58
- },
59
- ],
60
- },
61
- {
62
- name: 'ProductHome',
63
- description:
64
- 'A component to display the product logo and name, typically used as the first item in the navigation.',
65
- status: 'deprecated',
66
- import: {
67
- name: 'ProductHome',
68
- package: '@atlaskit/atlassian-navigation/product-home',
69
- type: 'named',
70
- packagePath,
71
- packageJson,
72
- },
73
- usageGuidelines: [
74
- 'Use `ProductHome` for standard Atlassian product logos.',
75
- 'Use `CustomProductHome` if you need to provide a custom logo or icon.',
76
- ],
77
- keywords: ['navigation', 'logo', 'product-home'],
78
- categories: ['navigation'],
79
- examples: [
80
- {
81
- name: 'Product home',
82
- description: 'Basic usage of ProductHome.',
83
- source: path.resolve(packagePath, './examples/product-home.tsx'),
84
- },
85
- ],
86
- },
87
- {
88
- name: 'PrimaryButton',
89
- description: 'A button component used for primary navigation items.',
90
- status: 'deprecated',
91
- import: {
92
- name: 'PrimaryButton',
93
- package: '@atlaskit/atlassian-navigation/primary-button',
94
- type: 'named',
95
- packagePath,
96
- packageJson,
97
- },
98
- usageGuidelines: [
99
- 'Use `PrimaryButton` for top-level navigation items that do not have sub-menus.',
100
- ],
101
- keywords: ['navigation', 'button', 'primary'],
102
- categories: ['navigation'],
103
- examples: [
104
- {
105
- name: 'Primary button',
106
- description: 'Basic usage of PrimaryButton.',
107
- source: path.resolve(packagePath, './examples/primary-button.tsx'),
108
- },
109
- ],
110
- },
111
- {
112
- name: 'Search',
113
- description: 'A search component integrated into the navigation bar.',
114
- status: 'deprecated',
115
- import: {
116
- name: 'Search',
117
- package: '@atlaskit/atlassian-navigation/search',
118
- type: 'named',
119
- packagePath,
120
- packageJson,
121
- },
122
- usageGuidelines: ['Use `Search` to provide a search input in the navigation.'],
123
- keywords: ['navigation', 'search'],
124
- categories: ['navigation'],
125
- examples: [
126
- {
127
- name: 'Search',
128
- description: 'Basic usage of Search.',
129
- source: path.resolve(packagePath, './examples/search.tsx'),
130
- },
131
- ],
132
- },
133
- ],
134
- };
135
-
136
- export default documentation;