@atlaskit/page-layout 3.4.6 → 3.5.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,27 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#121452](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121452)
8
+ [`b49735b1f1e69`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b49735b1f1e69) -
9
+ Fix zindex for content container in page-layout behind FF
10
+ 'ally-jira-team.issue-sideview.inaccurate-reading-order_yna0p'. If successful will remove flag in
11
+ a cleanup PR.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 3.4.7
18
+
19
+ ### Patch Changes
20
+
21
+ - [#120049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120049)
22
+ [`77504ff274f72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77504ff274f72) -
23
+ DSP-19576: Assign names to anonymous default exports
24
+
3
25
  ## 3.4.6
4
26
 
5
27
  ### Patch Changes
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _constants = require("../../common/constants");
8
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
+ var _constants = require("@atlaskit/theme/constants");
10
+ var _constants2 = require("../../common/constants");
9
11
  /**
10
12
  * @jsxRuntime classic
11
13
  */
@@ -13,12 +15,15 @@ var _constants = require("../../common/constants");
13
15
 
14
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
17
 
18
+ var zIndexStyle = (0, _react.css)({
19
+ zIndex: _constants.layers.navigation()
20
+ });
16
21
  var contentStyles = (0, _react.css)({
17
22
  display: 'flex',
18
23
  height: '100%',
19
24
  position: 'relative',
20
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
21
- gridArea: _constants.CONTENT
26
+ gridArea: _constants2.CONTENT
22
27
  });
23
28
 
24
29
  /**
@@ -34,7 +39,7 @@ var Content = function Content(props) {
34
39
  testId = props.testId;
35
40
  return (0, _react.jsx)("div", {
36
41
  "data-testid": testId,
37
- css: contentStyles
42
+ css: [contentStyles, (0, _platformFeatureFlags.fg)('ally-jira-team.issue-sideview.inaccurate-reading-order_yna0p') && zIndexStyle]
38
43
  }, children);
39
44
  };
40
45
  var _default = exports.default = Content;
@@ -84,7 +84,7 @@ var flyoutFixedStyles = (0, _react2.css)({
84
84
  width: _constants.COLLAPSED_LEFT_SIDEBAR_WIDTH
85
85
  });
86
86
  var selector = (0, _utils.getPageLayoutSlotSelector)('left-sidebar');
87
- var LeftSidebarOuter = function LeftSidebarOuter(_ref, ref) {
87
+ var LeftSidebarOuterComponent = function LeftSidebarOuterComponent(_ref, ref) {
88
88
  var children = _ref.children,
89
89
  _ref$isFixed = _ref.isFixed,
90
90
  isFixed = _ref$isFixed === void 0 ? false : _ref$isFixed,
@@ -132,4 +132,7 @@ var LeftSidebarOuter = function LeftSidebarOuter(_ref, ref) {
132
132
  );
133
133
  });
134
134
  };
135
- var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(LeftSidebarOuter);
135
+ var LeftSidebarOuter = /*#__PURE__*/(0, _react.forwardRef)(LeftSidebarOuterComponent);
136
+
137
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
138
+ var _default = exports.default = LeftSidebarOuter;
@@ -7,7 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _responsive = require("@atlaskit/primitives/responsive");
10
- var _default = exports.default = function _default(_ref) {
10
+ /**
11
+ * Hoists slot dimension styles to the root element.
12
+ */
13
+ var SlotDimensions = function SlotDimensions(_ref) {
11
14
  var variableName = _ref.variableName,
12
15
  value = _ref.value,
13
16
  mobileValue = _ref.mobileValue;
@@ -31,4 +34,5 @@ var _default = exports.default = function _default(_ref) {
31
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
32
35
  _react.default.createElement("style", null, style)
33
36
  );
34
- };
37
+ };
38
+ var _default = exports.default = SlotDimensions;
@@ -3,9 +3,16 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
6
  import { css, jsx } from '@emotion/react';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { layers } from '@atlaskit/theme/constants';
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+
8
12
  import { CONTENT } from '../../common/constants';
13
+ const zIndexStyle = css({
14
+ zIndex: layers.navigation()
15
+ });
9
16
  const contentStyles = css({
10
17
  display: 'flex',
11
18
  height: '100%',
@@ -29,7 +36,7 @@ const Content = props => {
29
36
  } = props;
30
37
  return jsx("div", {
31
38
  "data-testid": testId,
32
- css: contentStyles
39
+ css: [contentStyles, fg('ally-jira-team.issue-sideview.inaccurate-reading-order_yna0p') && zIndexStyle]
33
40
  }, children);
34
41
  };
35
42
  export default Content;
@@ -81,7 +81,7 @@ const flyoutFixedStyles = css({
81
81
  width: COLLAPSED_LEFT_SIDEBAR_WIDTH
82
82
  });
83
83
  const selector = getPageLayoutSlotSelector('left-sidebar');
84
- const LeftSidebarOuter = ({
84
+ const LeftSidebarOuterComponent = ({
85
85
  children,
86
86
  isFixed = false,
87
87
  // NOTE: We explicitly require this via props because of `LeftSidebarWithoutResize`
@@ -131,4 +131,7 @@ const LeftSidebarOuter = ({
131
131
  ref: ref
132
132
  }, selector), children));
133
133
  };
134
- export default /*#__PURE__*/forwardRef(LeftSidebarOuter);
134
+ const LeftSidebarOuter = /*#__PURE__*/forwardRef(LeftSidebarOuterComponent);
135
+
136
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
137
+ export default LeftSidebarOuter;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
3
- export default (({
3
+ /**
4
+ * Hoists slot dimension styles to the root element.
5
+ */
6
+ const SlotDimensions = ({
4
7
  variableName,
5
8
  value,
6
9
  mobileValue
@@ -25,4 +28,5 @@ export default (({
25
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
26
29
  React.createElement("style", null, style)
27
30
  );
28
- });
31
+ };
32
+ export default SlotDimensions;
@@ -3,9 +3,16 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
6
  import { css, jsx } from '@emotion/react';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { layers } from '@atlaskit/theme/constants';
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+
8
12
  import { CONTENT } from '../../common/constants';
13
+ var zIndexStyle = css({
14
+ zIndex: layers.navigation()
15
+ });
9
16
  var contentStyles = css({
10
17
  display: 'flex',
11
18
  height: '100%',
@@ -27,7 +34,7 @@ var Content = function Content(props) {
27
34
  testId = props.testId;
28
35
  return jsx("div", {
29
36
  "data-testid": testId,
30
- css: contentStyles
37
+ css: [contentStyles, fg('ally-jira-team.issue-sideview.inaccurate-reading-order_yna0p') && zIndexStyle]
31
38
  }, children);
32
39
  };
33
40
  export default Content;
@@ -76,7 +76,7 @@ var flyoutFixedStyles = css({
76
76
  width: COLLAPSED_LEFT_SIDEBAR_WIDTH
77
77
  });
78
78
  var selector = getPageLayoutSlotSelector('left-sidebar');
79
- var LeftSidebarOuter = function LeftSidebarOuter(_ref, ref) {
79
+ var LeftSidebarOuterComponent = function LeftSidebarOuterComponent(_ref, ref) {
80
80
  var children = _ref.children,
81
81
  _ref$isFixed = _ref.isFixed,
82
82
  isFixed = _ref$isFixed === void 0 ? false : _ref$isFixed,
@@ -124,4 +124,7 @@ var LeftSidebarOuter = function LeftSidebarOuter(_ref, ref) {
124
124
  );
125
125
  });
126
126
  };
127
- export default /*#__PURE__*/forwardRef(LeftSidebarOuter);
127
+ var LeftSidebarOuter = /*#__PURE__*/forwardRef(LeftSidebarOuterComponent);
128
+
129
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
130
+ export default LeftSidebarOuter;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
3
- export default (function (_ref) {
3
+ /**
4
+ * Hoists slot dimension styles to the root element.
5
+ */
6
+ var SlotDimensions = function SlotDimensions(_ref) {
4
7
  var variableName = _ref.variableName,
5
8
  value = _ref.value,
6
9
  mobileValue = _ref.mobileValue;
@@ -24,4 +27,5 @@ export default (function (_ref) {
24
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
25
28
  React.createElement("style", null, style)
26
29
  );
27
- });
30
+ };
31
+ export default SlotDimensions;
@@ -12,5 +12,5 @@ type LeftSidebarOuterProps = {
12
12
  onMouseLeave?: MouseEventHandler;
13
13
  onClick?: MouseEventHandler;
14
14
  };
15
- declare const _default: import("react").ForwardRefExoticComponent<LeftSidebarOuterProps & import("react").RefAttributes<HTMLDivElement>>;
16
- export default _default;
15
+ declare const LeftSidebarOuter: import("react").ForwardRefExoticComponent<LeftSidebarOuterProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ export default LeftSidebarOuter;
@@ -4,5 +4,8 @@ interface SlotDimensionsProps {
4
4
  value?: number;
5
5
  mobileValue?: number;
6
6
  }
7
- declare const _default: ({ variableName, value, mobileValue }: SlotDimensionsProps) => JSX.Element;
8
- export default _default;
7
+ /**
8
+ * Hoists slot dimension styles to the root element.
9
+ */
10
+ declare const SlotDimensions: ({ variableName, value, mobileValue }: SlotDimensionsProps) => JSX.Element;
11
+ export default SlotDimensions;
@@ -12,5 +12,5 @@ type LeftSidebarOuterProps = {
12
12
  onMouseLeave?: MouseEventHandler;
13
13
  onClick?: MouseEventHandler;
14
14
  };
15
- declare const _default: import("react").ForwardRefExoticComponent<LeftSidebarOuterProps & import("react").RefAttributes<HTMLDivElement>>;
16
- export default _default;
15
+ declare const LeftSidebarOuter: import("react").ForwardRefExoticComponent<LeftSidebarOuterProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ export default LeftSidebarOuter;
@@ -4,5 +4,8 @@ interface SlotDimensionsProps {
4
4
  value?: number;
5
5
  mobileValue?: number;
6
6
  }
7
- declare const _default: ({ variableName, value, mobileValue }: SlotDimensionsProps) => JSX.Element;
8
- export default _default;
7
+ /**
8
+ * Hoists slot dimension styles to the root element.
9
+ */
10
+ declare const SlotDimensions: ({ variableName, value, mobileValue }: SlotDimensionsProps) => JSX.Element;
11
+ export default SlotDimensions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "3.4.6",
3
+ "version": "3.5.0",
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/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
47
  "@atlaskit/primitives": "^11.0.0",
48
48
  "@atlaskit/theme": "^12.11.0",
49
- "@atlaskit/tokens": "^1.53.0",
49
+ "@atlaskit/tokens": "^1.56.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "bind-event-listener": "^3.0.0",
@@ -59,11 +59,11 @@
59
59
  "devDependencies": {
60
60
  "@af/accessibility-testing": "*",
61
61
  "@af/integration-testing": "*",
62
- "@atlaskit/atlassian-navigation": "^4.2.0",
62
+ "@atlaskit/atlassian-navigation": "^4.3.0",
63
63
  "@atlaskit/atlassian-notifications": "^0.4.0",
64
64
  "@atlaskit/drawer": "^7.13.0",
65
65
  "@atlaskit/logo": "^14.1.0",
66
- "@atlaskit/menu": "^2.7.0",
66
+ "@atlaskit/menu": "^2.8.0",
67
67
  "@atlaskit/notification-indicator": "^9.2.0",
68
68
  "@atlaskit/notification-log-client": "^6.1.0",
69
69
  "@atlaskit/popup": "^1.20.0",
@@ -119,6 +119,9 @@
119
119
  },
120
120
  "platform.atlassian.griffin-navigation-redesign": {
121
121
  "type": "boolean"
122
+ },
123
+ "ally-jira-team.issue-sideview.inaccurate-reading-order_yna0p": {
124
+ "type": "boolean"
122
125
  }
123
126
  }
124
127
  }