@atlaskit/dropdown-menu 12.25.0 → 12.25.2

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/dropdown-menu
2
2
 
3
+ ## 12.25.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107064](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107064)
8
+ [`1e639192c3c7f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1e639192c3c7f) -
9
+ Update dev dependencies and remove unused files.
10
+
11
+ ## 12.25.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 12.25.0
4
18
 
5
19
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "12.25.0",
3
+ "version": "12.25.2",
4
4
  "description": "A dropdown menu displays a list of actions or options to a user.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/platform-feature-flags": "^0.3.0",
35
35
  "@atlaskit/popup": "^1.30.0",
36
36
  "@atlaskit/primitives": "^13.3.0",
37
- "@atlaskit/spinner": "^16.3.0",
37
+ "@atlaskit/spinner": "^17.0.0",
38
38
  "@atlaskit/theme": "^14.0.0",
39
39
  "@atlaskit/tokens": "^3.2.0",
40
40
  "@babel/runtime": "^7.0.0",
@@ -49,21 +49,26 @@
49
49
  "@af/accessibility-testing": "*",
50
50
  "@af/integration-testing": "*",
51
51
  "@af/visual-regression": "*",
52
- "@atlaskit/app-provider": "^1.6.0",
52
+ "@atlaskit/app-provider": "^1.7.0",
53
+ "@atlaskit/atlassian-navigation": "^4.10.3",
54
+ "@atlaskit/avatar": "^21.17.9",
55
+ "@atlaskit/checkbox": "^15.2.5",
56
+ "@atlaskit/docs": "*",
57
+ "@atlaskit/form": "^11.0.2",
58
+ "@atlaskit/heading": "^4.0.1",
59
+ "@atlaskit/link": "*",
60
+ "@atlaskit/lozenge": "^11.12.7",
53
61
  "@atlaskit/modal-dialog": "^12.19.0",
62
+ "@atlaskit/section-message": "*",
63
+ "@atlaskit/textfield": "^6.7.2",
54
64
  "@atlaskit/toggle": "^14.0.0",
55
65
  "@atlaskit/visual-regression": "*",
56
- "@atlassian/feature-flags-test-utils": "*",
57
- "@testing-library/dom": "^10.1.0",
58
66
  "@testing-library/react": "^12.1.5",
59
67
  "@testing-library/react-hooks": "^8.0.1",
60
- "@testing-library/user-event": "^14.4.3",
61
68
  "jest-in-case": "^1.0.2",
62
69
  "jscodeshift": "^0.13.0",
63
70
  "raf-stub": "^2.0.1",
64
71
  "react-dom": "^16.8.0",
65
- "storybook-addon-performance": "^0.17.3",
66
- "tiny-invariant": "^1.2.0",
67
72
  "typescript": "~5.4.2"
68
73
  },
69
74
  "keywords": [
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- var _typeof = require("@babel/runtime/helpers/typeof");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.TrackMaxLevelContext = exports.TrackLevelProvider = exports.NestedLevelContext = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
- /**
12
- *
13
- * @internal
14
- * Context which maintains the current level of dropdown menu if it is nested
15
- * Default is 0
16
- *
17
- */
18
- var NestedLevelContext = exports.NestedLevelContext = /*#__PURE__*/(0, _react.createContext)(0);
19
-
20
- /**
21
- *
22
- * @internal
23
- * Context which maintains the maximun level of dropdown menu if it is nested
24
- * Default is 0
25
- *
26
- */
27
- var TrackMaxLevelContext = exports.TrackMaxLevelContext = /*#__PURE__*/(0, _react.createContext)({
28
- maxLevelRef: {
29
- current: 0
30
- },
31
- setMaxLevel: function setMaxLevel() {}
32
- });
33
-
34
- /**
35
- *
36
- * @internal
37
- * Context provider which maintains the maximun level of dropdown menu if it is nested
38
- *
39
- */
40
- var TrackLevelProvider = exports.TrackLevelProvider = function TrackLevelProvider(_ref) {
41
- var children = _ref.children;
42
- var maxLevelRef = (0, _react.useRef)(0);
43
- var value = (0, _react.useMemo)(function () {
44
- return {
45
- maxLevelRef: maxLevelRef,
46
- setMaxLevel: function setMaxLevel(level) {
47
- var isMin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
48
- maxLevelRef.current = isMin ? Math.min(maxLevelRef.current, level) : level;
49
- }
50
- };
51
- }, [maxLevelRef]);
52
- return /*#__PURE__*/_react.default.createElement(TrackMaxLevelContext.Provider, {
53
- value: value
54
- }, children);
55
- };
@@ -1,45 +0,0 @@
1
- import React, { createContext, useMemo, useRef } from 'react';
2
-
3
- /**
4
- *
5
- * @internal
6
- * Context which maintains the current level of dropdown menu if it is nested
7
- * Default is 0
8
- *
9
- */
10
- export const NestedLevelContext = /*#__PURE__*/createContext(0);
11
-
12
- /**
13
- *
14
- * @internal
15
- * Context which maintains the maximun level of dropdown menu if it is nested
16
- * Default is 0
17
- *
18
- */
19
- export const TrackMaxLevelContext = /*#__PURE__*/createContext({
20
- maxLevelRef: {
21
- current: 0
22
- },
23
- setMaxLevel: () => {}
24
- });
25
-
26
- /**
27
- *
28
- * @internal
29
- * Context provider which maintains the maximun level of dropdown menu if it is nested
30
- *
31
- */
32
- export const TrackLevelProvider = ({
33
- children
34
- }) => {
35
- const maxLevelRef = useRef(0);
36
- const value = useMemo(() => ({
37
- maxLevelRef,
38
- setMaxLevel: (level, isMin = false) => {
39
- maxLevelRef.current = isMin ? Math.min(maxLevelRef.current, level) : level;
40
- }
41
- }), [maxLevelRef]);
42
- return /*#__PURE__*/React.createElement(TrackMaxLevelContext.Provider, {
43
- value: value
44
- }, children);
45
- };
@@ -1,47 +0,0 @@
1
- import React, { createContext, useMemo, useRef } from 'react';
2
-
3
- /**
4
- *
5
- * @internal
6
- * Context which maintains the current level of dropdown menu if it is nested
7
- * Default is 0
8
- *
9
- */
10
- export var NestedLevelContext = /*#__PURE__*/createContext(0);
11
-
12
- /**
13
- *
14
- * @internal
15
- * Context which maintains the maximun level of dropdown menu if it is nested
16
- * Default is 0
17
- *
18
- */
19
- export var TrackMaxLevelContext = /*#__PURE__*/createContext({
20
- maxLevelRef: {
21
- current: 0
22
- },
23
- setMaxLevel: function setMaxLevel() {}
24
- });
25
-
26
- /**
27
- *
28
- * @internal
29
- * Context provider which maintains the maximun level of dropdown menu if it is nested
30
- *
31
- */
32
- export var TrackLevelProvider = function TrackLevelProvider(_ref) {
33
- var children = _ref.children;
34
- var maxLevelRef = useRef(0);
35
- var value = useMemo(function () {
36
- return {
37
- maxLevelRef: maxLevelRef,
38
- setMaxLevel: function setMaxLevel(level) {
39
- var isMin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
40
- maxLevelRef.current = isMin ? Math.min(maxLevelRef.current, level) : level;
41
- }
42
- };
43
- }, [maxLevelRef]);
44
- return /*#__PURE__*/React.createElement(TrackMaxLevelContext.Provider, {
45
- value: value
46
- }, children);
47
- };
@@ -1,27 +0,0 @@
1
- import React, { type MutableRefObject, type PropsWithChildren } from 'react';
2
- /**
3
- *
4
- * @internal
5
- * Context which maintains the current level of dropdown menu if it is nested
6
- * Default is 0
7
- *
8
- */
9
- export declare const NestedLevelContext: React.Context<number>;
10
- /**
11
- *
12
- * @internal
13
- * Context which maintains the maximun level of dropdown menu if it is nested
14
- * Default is 0
15
- *
16
- */
17
- export declare const TrackMaxLevelContext: React.Context<{
18
- maxLevelRef: MutableRefObject<number>;
19
- setMaxLevel: (level: number, isMin?: boolean) => void;
20
- }>;
21
- /**
22
- *
23
- * @internal
24
- * Context provider which maintains the maximun level of dropdown menu if it is nested
25
- *
26
- */
27
- export declare const TrackLevelProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
@@ -1,27 +0,0 @@
1
- import React, { type MutableRefObject, type PropsWithChildren } from 'react';
2
- /**
3
- *
4
- * @internal
5
- * Context which maintains the current level of dropdown menu if it is nested
6
- * Default is 0
7
- *
8
- */
9
- export declare const NestedLevelContext: React.Context<number>;
10
- /**
11
- *
12
- * @internal
13
- * Context which maintains the maximun level of dropdown menu if it is nested
14
- * Default is 0
15
- *
16
- */
17
- export declare const TrackMaxLevelContext: React.Context<{
18
- maxLevelRef: MutableRefObject<number>;
19
- setMaxLevel: (level: number, isMin?: boolean) => void;
20
- }>;
21
- /**
22
- *
23
- * @internal
24
- * Context provider which maintains the maximun level of dropdown menu if it is nested
25
- *
26
- */
27
- export declare const TrackLevelProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;