@atlaskit/atlassian-navigation 5.3.19 → 5.3.21

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 5.3.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.3.20
10
+
11
+ ### Patch Changes
12
+
13
+ - [`437668dfbdec9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/437668dfbdec9) -
14
+ Add explicit types to a number of DST components
15
+ - Updated dependencies
16
+
3
17
  ## 5.3.19
4
18
 
5
19
  ### Patch Changes
@@ -11,6 +11,8 @@ 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
16
  // Prevent width detector from triggering too many re-renders
15
17
  var THROTTLE_INTERVAL = 16 * 4;
16
18
  // Approx min width of items (based of "More" size)
@@ -1,4 +1,7 @@
1
1
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
2
+
3
+ // eslint-disable-next-line @atlassian/tangerine/import/entry-points
4
+
2
5
  import throttle from 'lodash/throttle';
3
6
  import noop from '@atlaskit/ds-lib/noop';
4
7
  // Prevent width detector from triggering too many re-renders
@@ -1,5 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
3
+
4
+ // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
+
3
6
  import throttle from 'lodash/throttle';
4
7
  import noop from '@atlaskit/ds-lib/noop';
5
8
  // Prevent width detector from triggering too many re-renders
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import noop from '@atlaskit/ds-lib/noop';
2
+ import type { DebouncedFuncLeading } from 'lodash';
3
3
  import { type OverflowProviderProps } from './types';
4
4
  interface OverflowContext {
5
5
  /**
@@ -16,11 +16,7 @@ interface OverflowContext {
16
16
  */
17
17
  closeOverflowMenu: () => void;
18
18
  }
19
- declare const OverflowContext: React.Context<{
20
- isVisible: boolean;
21
- openOverflowMenu: typeof noop;
22
- closeOverflowMenu: typeof noop;
23
- }>;
19
+ declare const OverflowContext: React.Context<OverflowContext>;
24
20
  export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => React.JSX.Element;
25
21
  /**
26
22
  * __useOverFlowStatus__
@@ -29,15 +25,11 @@ export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu,
29
25
  *
30
26
  * - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
31
27
  */
32
- export declare const useOverflowStatus: () => {
33
- isVisible: boolean;
34
- openOverflowMenu: typeof noop;
35
- closeOverflowMenu: typeof noop;
36
- };
28
+ export declare const useOverflowStatus: () => OverflowContext;
37
29
  export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
38
- visibleItems: (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[];
39
- overflowItems: (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[];
40
- updateWidth: import("lodash").DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
30
+ visibleItems: ReactNode[];
31
+ overflowItems: ReactNode[];
32
+ updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
41
33
  };
42
34
  declare const _default: (props: OverflowContext) => void;
43
35
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import noop from '@atlaskit/ds-lib/noop';
2
+ import type { DebouncedFuncLeading } from 'lodash';
3
3
  import { type OverflowProviderProps } from './types';
4
4
  interface OverflowContext {
5
5
  /**
@@ -16,11 +16,7 @@ interface OverflowContext {
16
16
  */
17
17
  closeOverflowMenu: () => void;
18
18
  }
19
- declare const OverflowContext: React.Context<{
20
- isVisible: boolean;
21
- openOverflowMenu: typeof noop;
22
- closeOverflowMenu: typeof noop;
23
- }>;
19
+ declare const OverflowContext: React.Context<OverflowContext>;
24
20
  export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => React.JSX.Element;
25
21
  /**
26
22
  * __useOverFlowStatus__
@@ -29,15 +25,11 @@ export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu,
29
25
  *
30
26
  * - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
31
27
  */
32
- export declare const useOverflowStatus: () => {
33
- isVisible: boolean;
34
- openOverflowMenu: typeof noop;
35
- closeOverflowMenu: typeof noop;
36
- };
28
+ export declare const useOverflowStatus: () => OverflowContext;
37
29
  export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
38
- visibleItems: (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[];
39
- overflowItems: (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[];
40
- updateWidth: import("lodash").DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
30
+ visibleItems: ReactNode[];
31
+ overflowItems: ReactNode[];
32
+ updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
41
33
  };
42
34
  declare const _default: (props: OverflowContext) => void;
43
35
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "5.3.19",
3
+ "version": "5.3.21",
4
4
  "description": "A horizontal navigation component for Atlassian apps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,15 +37,15 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-namespaced-context": "^7.1.0",
40
- "@atlaskit/button": "^23.4.0",
40
+ "@atlaskit/button": "^23.5.0",
41
41
  "@atlaskit/ds-lib": "^5.1.0",
42
- "@atlaskit/icon": "^28.3.0",
43
- "@atlaskit/logo": "^19.7.0",
42
+ "@atlaskit/icon": "^28.5.0",
43
+ "@atlaskit/logo": "^19.9.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/popup": "^4.4.0",
46
- "@atlaskit/primitives": "^14.15.0",
46
+ "@atlaskit/primitives": "^15.0.0",
47
47
  "@atlaskit/theme": "^21.0.0",
48
- "@atlaskit/tokens": "^6.4.0",
48
+ "@atlaskit/tokens": "^6.5.0",
49
49
  "@atlaskit/tooltip": "^20.5.0",
50
50
  "@atlaskit/width-detector": "^5.0.0",
51
51
  "@babel/runtime": "^7.0.0",
@@ -62,8 +62,8 @@
62
62
  "@af/visual-regression": "workspace:^",
63
63
  "@atlaskit/analytics-next": "^11.1.0",
64
64
  "@atlaskit/atlassian-notifications": "^0.7.0",
65
- "@atlaskit/avatar": "^25.2.0",
66
- "@atlaskit/badge": "^18.1.0",
65
+ "@atlaskit/avatar": "^25.4.0",
66
+ "@atlaskit/badge": "^18.2.0",
67
67
  "@atlaskit/docs": "^11.1.0",
68
68
  "@atlaskit/drawer": "^11.0.0",
69
69
  "@atlaskit/dropdown-menu": "^16.3.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/section-message": "^8.7.0",
75
75
  "@atlaskit/spinner": "^19.0.0",
76
76
  "@atlaskit/textfield": "^8.0.0",
77
- "@atlassian/switcher": "^39.4.0",
77
+ "@atlassian/switcher": "^39.6.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",