@atlaskit/menu 2.12.7 → 2.13.1

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,20 @@
1
1
  # @atlaskit/menu
2
2
 
3
+ ## 2.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.13.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#151342](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151342)
14
+ [`2518d31182356`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2518d31182356) -
15
+ Removed feature flag platform.design-system-team.section-1px-seperator-borders, changing the
16
+ border for menu sections from 2px to 1px.
17
+
3
18
  ## 2.12.7
4
19
 
5
20
  ### Patch Changes
@@ -10,7 +10,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
12
  var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _colors = require("@atlaskit/theme/colors");
15
14
  var _constants = require("@atlaskit/theme/constants");
16
15
  var _typography = require("@atlaskit/theme/typography");
@@ -83,9 +82,6 @@ var scrollableStyles = (0, _react2.css)({
83
82
  var unscrollableStyles = (0, _react2.css)({
84
83
  flexShrink: 0
85
84
  });
86
- var thickSeparatorStyles = (0, _react2.css)({
87
- borderBlockStart: "2px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(_colors.N30A, ")"), ")")
88
- });
89
85
  var thinSeparatorStyles = (0, _react2.css)({
90
86
  borderBlockStart: "1px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(_colors.N30A, ")"), ")")
91
87
  });
@@ -155,7 +151,7 @@ var Section = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
155
151
  ,
156
152
  css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
157
153
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
158
- (0, _platformFeatureFlags.fg)('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
154
+ thinSeparatorStyles : noSeparatorStyles],
159
155
  "aria-label": title,
160
156
  "aria-labelledby": titleId,
161
157
  "data-testid": testId,
@@ -9,7 +9,6 @@ import { Children, forwardRef, Fragment } from 'react';
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { N30A } from '@atlaskit/theme/colors';
14
13
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
15
14
  import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
@@ -75,9 +74,6 @@ const scrollableStyles = css({
75
74
  const unscrollableStyles = css({
76
75
  flexShrink: 0
77
76
  });
78
- const thickSeparatorStyles = css({
79
- borderBlockStart: `2px solid var(${VAR_SEPARATOR_COLOR}, ${`var(--ds-border, ${N30A})`})`
80
- });
81
77
  const thinSeparatorStyles = css({
82
78
  borderBlockStart: `1px solid var(${VAR_SEPARATOR_COLOR}, ${`var(--ds-border, ${N30A})`})`
83
79
  });
@@ -149,7 +145,7 @@ const Section = /*#__PURE__*/forwardRef(({
149
145
  ,
150
146
  css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
151
147
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
152
- fg('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
148
+ thinSeparatorStyles : noSeparatorStyles],
153
149
  "aria-label": title,
154
150
  "aria-labelledby": titleId,
155
151
  "data-testid": testId,
@@ -11,7 +11,6 @@ import { Children, forwardRef, Fragment } from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { N30A } from '@atlaskit/theme/colors';
16
15
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
17
16
  import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
@@ -77,9 +76,6 @@ var scrollableStyles = css({
77
76
  var unscrollableStyles = css({
78
77
  flexShrink: 0
79
78
  });
80
- var thickSeparatorStyles = css({
81
- borderBlockStart: "2px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(N30A, ")"), ")")
82
- });
83
79
  var thinSeparatorStyles = css({
84
80
  borderBlockStart: "1px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(N30A, ")"), ")")
85
81
  });
@@ -149,7 +145,7 @@ var Section = /*#__PURE__*/forwardRef(function (_ref, ref) {
149
145
  ,
150
146
  css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
151
147
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
152
- fg('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
148
+ thinSeparatorStyles : noSeparatorStyles],
153
149
  "aria-label": title,
154
150
  "aria-labelledby": titleId,
155
151
  "data-testid": testId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "2.12.7",
3
+ "version": "2.13.1",
4
4
  "description": "A list of options to help users navigate, or perform actions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,12 +40,12 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/app-provider": "^1.4.0",
43
- "@atlaskit/ds-lib": "^3.0.0",
43
+ "@atlaskit/ds-lib": "^3.1.0",
44
44
  "@atlaskit/focus-ring": "^1.6.0",
45
45
  "@atlaskit/interaction-context": "^2.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
47
  "@atlaskit/primitives": "^12.2.0",
48
- "@atlaskit/theme": "^13.0.0",
48
+ "@atlaskit/theme": "^14.0.0",
49
49
  "@atlaskit/tokens": "^2.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
@@ -118,9 +118,6 @@
118
118
  ".": "./src/index.tsx"
119
119
  },
120
120
  "platform-feature-flags": {
121
- "platform.design-system-team.section-1px-seperator-borders": {
122
- "type": "boolean"
123
- },
124
121
  "platform_button_item-add-ufo-metrics": {
125
122
  "type": "boolean"
126
123
  }