@atlaskit/menu 2.12.2 → 2.12.3

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,13 @@
1
1
  # @atlaskit/menu
2
2
 
3
+ ## 2.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#144779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144779)
8
+ [`de2f4742e3595`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de2f4742e3595) -
9
+ [ux] Removed menu section header capitalisation.
10
+
3
11
  ## 2.12.2
4
12
 
5
13
  ### Patch Changes
@@ -22,8 +22,7 @@ var headingStyles = (0, _react2.css)({
22
22
  color: "var(--ds-text-subtle, ".concat(_colors.N300, ")"),
23
23
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
24
24
  paddingBlock: "var(--ds-space-0, 0px)",
25
- paddingInline: "var(--ds-space-200, 16px)",
26
- textTransform: 'uppercase'
25
+ paddingInline: "var(--ds-space-200, 16px)"
27
26
  });
28
27
 
29
28
  /**
@@ -12,7 +12,6 @@ var _react2 = require("@emotion/react");
12
12
  var _appProvider = require("@atlaskit/app-provider");
13
13
  var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
14
14
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/menu-item-primitive"));
17
16
  var _excluded = ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_shouldDisableRouterLink", "UNSAFE_isDraggable"];
18
17
  /**
@@ -76,7 +75,7 @@ function (props, ref) {
76
75
  * - it doesn't have an empty href (e.g. href="" or href={undefined})
77
76
  */
78
77
  var isRouterLink = !UNSAFE_shouldDisableRouterLink && RouterLink && !isExternal && !isNonHttpBased && !isEmptyHref;
79
- var Component = isRouterLink && (0, _platformFeatureFlags.fg)('platform.wanjel.use-router-links-for-the-linkitem-component') ? RouterLink : 'a';
78
+ var Component = isRouterLink ? RouterLink : 'a';
80
79
  (0, _deprecationWarning.propDeprecationWarning)("@atlaskit/menu" || '', 'cssFn', cssFn !== _noop.default, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
81
80
  );
82
81
  return (0, _react2.jsx)(_menuItemPrimitive.default, (0, _extends2.default)({}, rest, {
@@ -14,8 +14,7 @@ const headingStyles = css({
14
14
  color: `var(--ds-text-subtle, ${N300})`,
15
15
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
16
16
  paddingBlock: "var(--ds-space-0, 0px)",
17
- paddingInline: "var(--ds-space-200, 16px)",
18
- textTransform: 'uppercase'
17
+ paddingInline: "var(--ds-space-200, 16px)"
19
18
  });
20
19
 
21
20
  /**
@@ -10,7 +10,6 @@ import { jsx } from '@emotion/react';
10
10
  import { useRouterLink } from '@atlaskit/app-provider';
11
11
  import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
12
12
  import noop from '@atlaskit/ds-lib/noop';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import MenuItemPrimitive from '../internal/components/menu-item-primitive';
15
14
  const IS_EXTERNAL_LINK_REGEX = /^(?:(http|https):\/\/)/;
16
15
  const IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/;
@@ -71,7 +70,7 @@ const LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
71
70
  * - it doesn't have an empty href (e.g. href="" or href={undefined})
72
71
  */
73
72
  const isRouterLink = !UNSAFE_shouldDisableRouterLink && RouterLink && !isExternal && !isNonHttpBased && !isEmptyHref;
74
- const Component = isRouterLink && fg('platform.wanjel.use-router-links-for-the-linkitem-component') ? RouterLink : 'a';
73
+ const Component = isRouterLink ? RouterLink : 'a';
75
74
  propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
76
75
  );
77
76
  return jsx(MenuItemPrimitive, _extends({}, rest, {
@@ -16,8 +16,7 @@ var headingStyles = css({
16
16
  color: "var(--ds-text-subtle, ".concat(N300, ")"),
17
17
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
18
18
  paddingBlock: "var(--ds-space-0, 0px)",
19
- paddingInline: "var(--ds-space-200, 16px)",
20
- textTransform: 'uppercase'
19
+ paddingInline: "var(--ds-space-200, 16px)"
21
20
  });
22
21
 
23
22
  /**
@@ -12,7 +12,6 @@ import { jsx } from '@emotion/react';
12
12
  import { useRouterLink } from '@atlaskit/app-provider';
13
13
  import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
14
14
  import noop from '@atlaskit/ds-lib/noop';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import MenuItemPrimitive from '../internal/components/menu-item-primitive';
17
16
  var IS_EXTERNAL_LINK_REGEX = /^(?:(http|https):\/\/)/;
18
17
  var IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/;
@@ -70,7 +69,7 @@ function (props, ref) {
70
69
  * - it doesn't have an empty href (e.g. href="" or href={undefined})
71
70
  */
72
71
  var isRouterLink = !UNSAFE_shouldDisableRouterLink && RouterLink && !isExternal && !isNonHttpBased && !isEmptyHref;
73
- var Component = isRouterLink && fg('platform.wanjel.use-router-links-for-the-linkitem-component') ? RouterLink : 'a';
72
+ var Component = isRouterLink ? RouterLink : 'a';
74
73
  propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
75
74
  );
76
75
  return jsx(MenuItemPrimitive, _extends({}, rest, {
@@ -165,7 +165,7 @@ export interface MenuItemProps {
165
165
  /**
166
166
  * Event that's triggered when the element is clicked.
167
167
  */
168
- onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
168
+ onClick?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
169
169
  /**
170
170
  * Event that's triggered when the element has been pressed.
171
171
  */
@@ -165,7 +165,7 @@ export interface MenuItemProps {
165
165
  /**
166
166
  * Event that's triggered when the element is clicked.
167
167
  */
168
- onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
168
+ onClick?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
169
169
  /**
170
170
  * Event that's triggered when the element has been pressed.
171
171
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "2.12.2",
3
+ "version": "2.12.3",
4
4
  "description": "A list of options to help users navigate, or perform actions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -17,10 +17,6 @@
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
19
  "runReact18": true,
20
- "productPushConsumption": [
21
- "jira"
22
- ],
23
- "releaseModel": "continuous",
24
20
  "website": {
25
21
  "name": "Menu",
26
22
  "subPages": [
@@ -44,12 +40,12 @@
44
40
  },
45
41
  "dependencies": {
46
42
  "@atlaskit/app-provider": "^1.4.0",
47
- "@atlaskit/ds-lib": "^2.4.0",
43
+ "@atlaskit/ds-lib": "^2.6.0",
48
44
  "@atlaskit/focus-ring": "^1.6.0",
49
45
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
- "@atlaskit/primitives": "^12.0.0",
46
+ "@atlaskit/primitives": "^12.2.0",
51
47
  "@atlaskit/theme": "^13.0.0",
52
- "@atlaskit/tokens": "^1.58.0",
48
+ "@atlaskit/tokens": "^1.61.0",
53
49
  "@babel/runtime": "^7.0.0",
54
50
  "@emotion/react": "^11.7.1"
55
51
  },
@@ -123,9 +119,6 @@
123
119
  "platform-feature-flags": {
124
120
  "platform.design-system-team.section-1px-seperator-borders": {
125
121
  "type": "boolean"
126
- },
127
- "platform.wanjel.use-router-links-for-the-linkitem-component": {
128
- "type": "boolean"
129
122
  }
130
123
  },
131
124
  "homepage": "https://atlassian.design/components/menu/"