@atlaskit/menu 3.1.1 → 3.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/menu
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#132213](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132213)
8
+ [`df53b836e03ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df53b836e03ce) -
9
+ Adds the className prop to the MenuItem type. Although the className prop was already supported by
10
+ the Menu Item components, this change enables its usage with type safety.
11
+
12
+ ## 3.1.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#127093](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127093)
17
+ [`1378ea7a99ce1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1378ea7a99ce1) -
18
+ Upgrades `jscodeshift` to handle generics properly.
19
+ - Updated dependencies
20
+
3
21
  ## 3.1.1
4
22
 
5
23
  ### Patch Changes
@@ -37,10 +37,6 @@ const ButtonItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
37
37
  onMouseDown,
38
38
  shouldTitleWrap,
39
39
  shouldDescriptionWrap,
40
- // Although this isn't defined on props it is available because we've used
41
- // Spread props below and on the jsx element. To forcibly block usage I've
42
- // picked it out and supressed the expected type error.
43
- // @ts-expect-error
44
40
  className: UNSAFE_className,
45
41
  interactionName,
46
42
  ...rest
@@ -42,10 +42,6 @@ const CustomItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
42
42
  onMouseDown,
43
43
  shouldTitleWrap,
44
44
  shouldDescriptionWrap,
45
- // Although this isn't defined on props it is available because we've used
46
- // Spread props below and on the jsx element. To forcibly block usage I've
47
- // picked it out and supressed the expected type error.
48
- // @ts-expect-error
49
45
  className: UNSAFE_className,
50
46
  UNSAFE_isDraggable,
51
47
  interactionName,
@@ -45,10 +45,6 @@ const LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
45
45
  onMouseDown,
46
46
  shouldTitleWrap,
47
47
  shouldDescriptionWrap,
48
- // Although this isn't defined on props it is available because we've used
49
- // Spread props below and on the jsx element. To forcibly block usage I've
50
- // picked it out and supressed the expected type error.
51
- // @ts-expect-error
52
48
  className: UNSAFE_className,
53
49
  UNSAFE_shouldDisableRouterLink,
54
50
  UNSAFE_isDraggable,
@@ -152,6 +152,10 @@ export interface MenuItemProps {
152
152
  * @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
153
153
  */
154
154
  cssFn?: CSSFn;
155
+ /**
156
+ * Not recommended for general use as it enables unsafe style overrides.
157
+ */
158
+ className?: string;
155
159
  /**
156
160
  * Element to render before the item text.
157
161
  * Usually this is an [icon](https://atlaskit.atlassian.com/packages/design-system/icon) component.
@@ -152,6 +152,10 @@ export interface MenuItemProps {
152
152
  * @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
153
153
  */
154
154
  cssFn?: CSSFn;
155
+ /**
156
+ * Not recommended for general use as it enables unsafe style overrides.
157
+ */
158
+ className?: string;
155
159
  /**
156
160
  * Element to render before the item text.
157
161
  * Usually this is an [icon](https://atlaskit.atlassian.com/packages/design-system/icon) component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "A list of options to help users navigate, or perform actions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,9 +46,9 @@
46
46
  "@atlaskit/focus-ring": "^3.0.0",
47
47
  "@atlaskit/interaction-context": "^3.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
- "@atlaskit/primitives": "^14.1.0",
49
+ "@atlaskit/primitives": "^14.2.0",
50
50
  "@atlaskit/theme": "^18.0.0",
51
- "@atlaskit/tokens": "^4.3.0",
51
+ "@atlaskit/tokens": "^4.5.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1"
54
54
  },
@@ -57,22 +57,22 @@
57
57
  "react-dom": "^18.2.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@af/accessibility-testing": "*",
61
- "@af/integration-testing": "*",
62
- "@af/visual-regression": "*",
63
- "@atlaskit/button": "^21.1.0",
64
- "@atlaskit/docs": "*",
65
- "@atlaskit/icon": "^24.1.0",
60
+ "@af/accessibility-testing": "^2.0.0",
61
+ "@af/integration-testing": "^0.5.0",
62
+ "@af/visual-regression": "^1.3.0",
63
+ "@atlaskit/button": "^22.0.0",
64
+ "@atlaskit/docs": "^10.0.0",
65
+ "@atlaskit/icon": "^25.2.0",
66
66
  "@atlaskit/icon-file-type": "^7.0.0",
67
67
  "@atlaskit/icon-object": "^7.0.0",
68
- "@atlaskit/link": "*",
69
- "@atlaskit/section-message": "*",
70
- "@atlaskit/visual-regression": "*",
71
- "@atlassian/feature-flags-test-utils": "*",
68
+ "@atlaskit/link": "^3.0.0",
69
+ "@atlaskit/section-message": "^8.2.0",
70
+ "@atlaskit/visual-regression": "^0.10.0",
71
+ "@atlassian/feature-flags-test-utils": "^0.3.0",
72
72
  "@emotion/jest": "^11.8.0",
73
73
  "@testing-library/react": "^13.4.0",
74
74
  "ast-types": "^0.13.3",
75
- "jscodeshift": "^0.13.0",
75
+ "jscodeshift": "^17.0.0",
76
76
  "typescript": "~5.4.2"
77
77
  },
78
78
  "keywords": [