@atlaskit/menu 3.1.2 → 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,14 @@
|
|
|
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
|
+
|
|
3
12
|
## 3.1.2
|
|
4
13
|
|
|
5
14
|
### 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,
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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.
|
|
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/"
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@af/accessibility-testing": "^2.0.0",
|
|
61
61
|
"@af/integration-testing": "^0.5.0",
|
|
62
62
|
"@af/visual-regression": "^1.3.0",
|
|
63
|
-
"@atlaskit/button": "^
|
|
63
|
+
"@atlaskit/button": "^22.0.0",
|
|
64
64
|
"@atlaskit/docs": "^10.0.0",
|
|
65
|
-
"@atlaskit/icon": "^25.
|
|
65
|
+
"@atlaskit/icon": "^25.2.0",
|
|
66
66
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
67
67
|
"@atlaskit/icon-object": "^7.0.0",
|
|
68
68
|
"@atlaskit/link": "^3.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
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.
|
|
75
|
+
"jscodeshift": "^17.0.0",
|
|
76
76
|
"typescript": "~5.4.2"
|
|
77
77
|
},
|
|
78
78
|
"keywords": [
|