@atlaskit/side-navigation 3.4.0 → 3.4.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,21 @@
1
1
  # @atlaskit/side-navigation
2
2
 
3
+ ## 3.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#129726](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129726)
8
+ [`778c15c1d279a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/778c15c1d279a) -
9
+ [ux] Removed feature flag
10
+ `platform.design-system-team.side-navigation-tokenised-typography-styles` resulting in minor
11
+ visual changes to typography.
12
+
13
+ ## 3.4.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 3.4.0
4
20
 
5
21
  ### Minor Changes
@@ -30,9 +30,6 @@
30
30
  {
31
31
  "path": "../../motion/afm-cc/tsconfig.json"
32
32
  },
33
- {
34
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
35
- },
36
33
  {
37
34
  "path": "../../primitives/afm-cc/tsconfig.json"
38
35
  },
@@ -29,9 +29,6 @@
29
29
  {
30
30
  "path": "../../motion/afm-post-office/tsconfig.json"
31
31
  },
32
- {
33
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
34
- },
35
32
  {
36
33
  "path": "../../primitives/afm-post-office/tsconfig.json"
37
34
  },
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _colors = require("@atlaskit/theme/colors");
15
14
  var _styles = require("../../common/styles");
16
15
  var _Item = require("../Item");
@@ -21,8 +20,6 @@ var _excluded = ["children", "data-testid"],
21
20
  * @jsx jsx
22
21
  */
23
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26
23
  var containerStyles = (0, _react2.css)({
27
24
  display: 'block',
28
25
  position: 'relative'
@@ -74,15 +71,10 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
74
71
  var _ref3;
75
72
  return _ref3 = {
76
73
  userSelect: 'auto'
77
- }, (0, _defineProperty2.default)(_ref3, '[data-item-title]', _objectSpread(_objectSpread({}, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
78
- font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
79
- } : {
80
- fontSize: '0.875rem',
81
- letterSpacing: '-0.003em',
82
- fontWeight: "var(--ds-font-weight-semibold, 600)"
83
- }), {}, {
74
+ }, (0, _defineProperty2.default)(_ref3, '[data-item-title]', {
75
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
84
76
  color: "var(--ds-text, ".concat(_colors.N500, ")")
85
- })), (0, _defineProperty2.default)(_ref3, 'div&:hover', {
77
+ }), (0, _defineProperty2.default)(_ref3, 'div&:hover', {
86
78
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
87
79
  cursor: 'default'
88
80
  }), (0, _defineProperty2.default)(_ref3, 'div&:active', {
@@ -7,7 +7,6 @@ import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
10
  import { N500 } from '@atlaskit/theme/colors';
12
11
  import { overrideStyleFunction } from '../../common/styles';
13
12
  import { CustomItem } from '../Item';
@@ -61,13 +60,7 @@ const Header = /*#__PURE__*/forwardRef((props, ref) => {
61
60
  const cssFn = overrideStyleFunction(() => ({
62
61
  userSelect: 'auto',
63
62
  ['[data-item-title]']: {
64
- ...(getBooleanFF('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
65
- font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
66
- } : {
67
- fontSize: '0.875rem',
68
- letterSpacing: '-0.003em',
69
- fontWeight: "var(--ds-font-weight-semibold, 600)"
70
- }),
63
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
71
64
  color: `var(--ds-text, ${N500})`
72
65
  },
73
66
  // Will look interactive if the `component` is anything other than a div.
@@ -3,8 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["children", "data-testid"],
5
5
  _excluded2 = ["children"];
6
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
6
  /**
9
7
  * @jsxRuntime classic
10
8
  * @jsx jsx
@@ -13,7 +11,6 @@ import { forwardRef } from 'react';
13
11
 
14
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
13
  import { css, jsx } from '@emotion/react';
16
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
17
14
  import { N500 } from '@atlaskit/theme/colors';
18
15
  import { overrideStyleFunction } from '../../common/styles';
19
16
  import { CustomItem } from '../Item';
@@ -68,15 +65,10 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
68
65
  var _ref3;
69
66
  return _ref3 = {
70
67
  userSelect: 'auto'
71
- }, _defineProperty(_ref3, '[data-item-title]', _objectSpread(_objectSpread({}, getBooleanFF('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
72
- font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
73
- } : {
74
- fontSize: '0.875rem',
75
- letterSpacing: '-0.003em',
76
- fontWeight: "var(--ds-font-weight-semibold, 600)"
77
- }), {}, {
68
+ }, _defineProperty(_ref3, '[data-item-title]', {
69
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
78
70
  color: "var(--ds-text, ".concat(N500, ")")
79
- })), _defineProperty(_ref3, 'div&:hover', {
71
+ }), _defineProperty(_ref3, 'div&:hover', {
80
72
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
81
73
  cursor: 'default'
82
74
  }), _defineProperty(_ref3, 'div&:active', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "A highly composable side navigation component that supports nested views.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,11 +32,10 @@
32
32
  "dependencies": {
33
33
  "@atlaskit/ds-lib": "^2.4.0",
34
34
  "@atlaskit/icon": "^22.12.0",
35
- "@atlaskit/menu": "^2.11.0",
35
+ "@atlaskit/menu": "^2.12.0",
36
36
  "@atlaskit/motion": "^1.9.0",
37
- "@atlaskit/platform-feature-flags": "^0.3.0",
38
37
  "@atlaskit/primitives": "^12.0.0",
39
- "@atlaskit/theme": "^12.12.0",
38
+ "@atlaskit/theme": "^13.0.0",
40
39
  "@atlaskit/tokens": "^1.58.0",
41
40
  "@babel/runtime": "^7.0.0",
42
41
  "@emotion/react": "^11.7.1"
@@ -89,10 +88,5 @@
89
88
  ]
90
89
  }
91
90
  },
92
- "homepage": "https://atlassian.design/components/side-navigation/",
93
- "platform-feature-flags": {
94
- "platform.design-system-team.side-navigation-tokenised-typography-styles": {
95
- "type": "boolean"
96
- }
97
- }
91
+ "homepage": "https://atlassian.design/components/side-navigation/"
98
92
  }