@atlaskit/page-layout 4.1.0 → 4.2.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,27 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#147520](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/147520)
14
+ [`88b9a0365fd5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88b9a0365fd5a) -
15
+ Fixes the Left Sidebar with React 18 concurrent rendering turned on as client-side initialization
16
+ animates the width of the left sidebar causing massive repaints and performance issues due to
17
+ non-concurrent-safe logic. This delays the animation until that initialization has happened.
18
+
19
+ This has no expected breaking changes, only a possible fix with concurrency.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 4.1.0
4
26
 
5
27
  ### Minor Changes
@@ -10,7 +10,6 @@ var _react = require("react");
10
10
  var _react2 = require("@emotion/react");
11
11
  var _useCloseOnEscapePress = _interopRequireDefault(require("@atlaskit/ds-lib/use-close-on-escape-press"));
12
12
  var _motion = require("@atlaskit/motion");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _responsive = require("@atlaskit/primitives/responsive");
15
14
  var _colors = require("@atlaskit/theme/colors");
16
15
  var _constants = require("../../common/constants");
@@ -286,8 +285,10 @@ var LeftSidebar = function LeftSidebar(props) {
286
285
  isDisabled: !isFlyoutOpen
287
286
  });
288
287
 
289
- // We use both the state and our effect-based ref to protect animation until initialized fully
290
- var isReady = (0, _platformFeatureFlags.fg)('platform_dst_concurrent_left_sidebar_width') ? hasInit && notFirstRun.current : notFirstRun.current;
288
+ /**
289
+ * We use both the state and our effect-based ref to protect animation until initialized fully
290
+ */
291
+ var isReady = hasInit && notFirstRun.current;
291
292
  return (0, _react2.jsx)(_react.Fragment, null, (mobileMediaQuery === null || mobileMediaQuery === void 0 ? void 0 : mobileMediaQuery.matches) &&
292
293
  /**
293
294
  * On desktop, the `onClick` handlers controls the temporary flyout behavior.
@@ -9,7 +9,6 @@ import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import useCloseOnEscapePress from '@atlaskit/ds-lib/use-close-on-escape-press';
11
11
  import { easeOut } from '@atlaskit/motion';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
14
13
  import { N100A } from '@atlaskit/theme/colors';
15
14
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, FLYOUT_DELAY, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, RESIZE_BUTTON_SELECTOR, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
@@ -287,8 +286,10 @@ const LeftSidebar = props => {
287
286
  isDisabled: !isFlyoutOpen
288
287
  });
289
288
 
290
- // We use both the state and our effect-based ref to protect animation until initialized fully
291
- const isReady = fg('platform_dst_concurrent_left_sidebar_width') ? hasInit && notFirstRun.current : notFirstRun.current;
289
+ /**
290
+ * We use both the state and our effect-based ref to protect animation until initialized fully
291
+ */
292
+ const isReady = hasInit && notFirstRun.current;
292
293
  return jsx(Fragment, null, (mobileMediaQuery === null || mobileMediaQuery === void 0 ? void 0 : mobileMediaQuery.matches) &&
293
294
  /**
294
295
  * On desktop, the `onClick` handlers controls the temporary flyout behavior.
@@ -12,7 +12,6 @@ import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import useCloseOnEscapePress from '@atlaskit/ds-lib/use-close-on-escape-press';
14
14
  import { easeOut } from '@atlaskit/motion';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
17
16
  import { N100A } from '@atlaskit/theme/colors';
18
17
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, FLYOUT_DELAY, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, RESIZE_BUTTON_SELECTOR, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
@@ -283,8 +282,10 @@ var LeftSidebar = function LeftSidebar(props) {
283
282
  isDisabled: !isFlyoutOpen
284
283
  });
285
284
 
286
- // We use both the state and our effect-based ref to protect animation until initialized fully
287
- var isReady = fg('platform_dst_concurrent_left_sidebar_width') ? hasInit && notFirstRun.current : notFirstRun.current;
285
+ /**
286
+ * We use both the state and our effect-based ref to protect animation until initialized fully
287
+ */
288
+ var isReady = hasInit && notFirstRun.current;
288
289
  return jsx(Fragment, null, (mobileMediaQuery === null || mobileMediaQuery === void 0 ? void 0 : mobileMediaQuery.matches) &&
289
290
  /**
290
291
  * On desktop, the `onClick` handlers controls the temporary flyout behavior.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "A collection of components which let you compose an application's page layout.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "category": "Layout and structure",
35
35
  "status": {
36
36
  "type": "intent-to-deprecate",
37
- "description": "We are in the process of building a new page layout component: [@atlassian/navigation-system](https://staging.atlassian.design/components/navigation-system/page-layout/examples) (For Atlassian employees only at this stage)"
37
+ "description": "We are in the process of building a new page layout component: [@atlassian/navigation-system](/components/navigation-system/page-layout/examples) (For Atlassian employees only at this stage)"
38
38
  }
39
39
  },
40
40
  "runReact18": true
@@ -42,11 +42,11 @@
42
42
  "homepage": "https://atlassian.design/components/page-layout/",
43
43
  "dependencies": {
44
44
  "@atlaskit/ds-lib": "^4.0.0",
45
- "@atlaskit/icon": "^25.6.0",
45
+ "@atlaskit/icon": "^26.0.0",
46
46
  "@atlaskit/link": "^3.1.0",
47
47
  "@atlaskit/motion": "^5.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
- "@atlaskit/primitives": "^14.4.0",
49
+ "@atlaskit/primitives": "^14.7.0",
50
50
  "@atlaskit/theme": "^18.0.0",
51
51
  "@atlaskit/tokens": "^4.8.0",
52
52
  "@babel/runtime": "^7.0.0",
@@ -64,11 +64,11 @@
64
64
  "@atlaskit/atlassian-navigation": "^5.1.0",
65
65
  "@atlaskit/button": "^23.0.0",
66
66
  "@atlaskit/docs": "^10.0.0",
67
- "@atlaskit/logo": "^16.0.0",
68
- "@atlaskit/menu": "^3.2.0",
67
+ "@atlaskit/logo": "^18.0.0",
68
+ "@atlaskit/menu": "^5.0.0",
69
69
  "@atlaskit/popup": "^4.1.0",
70
70
  "@atlaskit/section-message": "^8.2.0",
71
- "@atlaskit/side-navigation": "^8.0.0",
71
+ "@atlaskit/side-navigation": "^9.1.0",
72
72
  "@atlaskit/tooltip": "^20.0.0",
73
73
  "@atlaskit/visual-regression": "workspace:^",
74
74
  "@atlassian/ssr-tests": "^0.2.0",
@@ -81,9 +81,6 @@
81
81
  "platform-feature-flags": {
82
82
  "platform_dst_popup-disable-focuslock": {
83
83
  "type": "boolean"
84
- },
85
- "platform_dst_concurrent_left_sidebar_width": {
86
- "type": "boolean"
87
84
  }
88
85
  },
89
86
  "keywords": [