@atlaskit/page-layout 4.2.27 → 4.2.29

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/components/resize-control/index.js +15 -1
  3. package/dist/cjs/components/resize-control/resize-button.js +1 -1
  4. package/dist/cjs/components/resize-control/shadow.js +1 -1
  5. package/dist/cjs/components/skip-links/skip-link-components.js +6 -2
  6. package/dist/cjs/components/slots/banner-slot.js +1 -1
  7. package/dist/cjs/components/slots/content.js +1 -1
  8. package/dist/cjs/components/slots/internal/left-sidebar-inner.js +1 -1
  9. package/dist/cjs/components/slots/internal/resizable-children-wrapper.js +1 -1
  10. package/dist/cjs/components/slots/internal/slot-focus-ring.js +1 -1
  11. package/dist/cjs/components/slots/left-panel.js +1 -1
  12. package/dist/cjs/components/slots/left-sidebar-without-resize.js +1 -1
  13. package/dist/cjs/components/slots/left-sidebar.js +10 -2
  14. package/dist/cjs/components/slots/main.js +1 -1
  15. package/dist/cjs/components/slots/page-layout.js +1 -1
  16. package/dist/cjs/components/slots/right-panel.js +1 -1
  17. package/dist/cjs/components/slots/right-sidebar.js +1 -1
  18. package/dist/cjs/components/slots/top-navigation.js +1 -1
  19. package/dist/es2019/components/resize-control/index.js +15 -1
  20. package/dist/es2019/components/resize-control/resize-button.js +1 -1
  21. package/dist/es2019/components/resize-control/shadow.js +1 -1
  22. package/dist/es2019/components/skip-links/skip-link-components.js +7 -2
  23. package/dist/es2019/components/slots/banner-slot.js +1 -1
  24. package/dist/es2019/components/slots/content.js +1 -1
  25. package/dist/es2019/components/slots/internal/left-sidebar-inner.js +1 -1
  26. package/dist/es2019/components/slots/internal/resizable-children-wrapper.js +1 -1
  27. package/dist/es2019/components/slots/internal/slot-focus-ring.js +1 -1
  28. package/dist/es2019/components/slots/left-panel.js +1 -1
  29. package/dist/es2019/components/slots/left-sidebar-without-resize.js +1 -1
  30. package/dist/es2019/components/slots/left-sidebar.js +10 -2
  31. package/dist/es2019/components/slots/main.js +1 -1
  32. package/dist/es2019/components/slots/page-layout.js +1 -1
  33. package/dist/es2019/components/slots/right-panel.js +1 -1
  34. package/dist/es2019/components/slots/right-sidebar.js +1 -1
  35. package/dist/es2019/components/slots/top-navigation.js +1 -1
  36. package/dist/esm/components/resize-control/index.js +15 -1
  37. package/dist/esm/components/resize-control/resize-button.js +1 -1
  38. package/dist/esm/components/resize-control/shadow.js +1 -1
  39. package/dist/esm/components/skip-links/skip-link-components.js +6 -2
  40. package/dist/esm/components/slots/banner-slot.js +1 -1
  41. package/dist/esm/components/slots/content.js +1 -1
  42. package/dist/esm/components/slots/internal/left-sidebar-inner.js +1 -1
  43. package/dist/esm/components/slots/internal/resizable-children-wrapper.js +1 -1
  44. package/dist/esm/components/slots/internal/slot-focus-ring.js +1 -1
  45. package/dist/esm/components/slots/left-panel.js +1 -1
  46. package/dist/esm/components/slots/left-sidebar-without-resize.js +1 -1
  47. package/dist/esm/components/slots/left-sidebar.js +10 -2
  48. package/dist/esm/components/slots/main.js +1 -1
  49. package/dist/esm/components/slots/page-layout.js +1 -1
  50. package/dist/esm/components/slots/right-panel.js +1 -1
  51. package/dist/esm/components/slots/right-sidebar.js +1 -1
  52. package/dist/esm/components/slots/top-navigation.js +1 -1
  53. package/dist/types/common/constants.d.ts +7 -7
  54. package/dist/types/components/resize-control/grab-area.d.ts +1 -1
  55. package/dist/types/components/skip-links/skip-link-components.d.ts +1 -1
  56. package/dist/types/components/slots/internal/left-sidebar-outer.d.ts +2 -2
  57. package/dist/types/controllers/sidebar-resize-context.d.ts +2 -2
  58. package/dist/types/controllers/skip-link-context.d.ts +2 -1
  59. package/dist/types-ts4.5/common/constants.d.ts +7 -7
  60. package/dist/types-ts4.5/components/resize-control/grab-area.d.ts +1 -1
  61. package/dist/types-ts4.5/components/skip-links/skip-link-components.d.ts +1 -1
  62. package/dist/types-ts4.5/components/slots/internal/left-sidebar-outer.d.ts +2 -2
  63. package/dist/types-ts4.5/controllers/sidebar-resize-context.d.ts +2 -2
  64. package/dist/types-ts4.5/controllers/skip-link-context.d.ts +2 -1
  65. package/package.json +3 -3
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  */
6
6
  import { useEffect } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { DEFAULT_RIGHT_PANEL_WIDTH, RIGHT_PANEL, RIGHT_PANEL_WIDTH, VAR_RIGHT_PANEL_WIDTH } from '../../common/constants';
11
11
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  */
6
6
  import { useEffect } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { BANNER_HEIGHT, DEFAULT_RIGHT_SIDEBAR_WIDTH, RIGHT_PANEL_WIDTH, RIGHT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, VAR_RIGHT_SIDEBAR_WIDTH } from '../../common/constants';
11
11
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  */
6
6
  import { useEffect } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { BANNER_HEIGHT, DEFAULT_TOP_NAVIGATION_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT, VAR_TOP_NAVIGATION_HEIGHT } from '../../common/constants';
11
11
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
9
9
  */
10
10
  import { Fragment, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
11
11
 
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled
13
13
  import { css, Global, jsx } from '@emotion/react';
14
14
  import { bindAll } from 'bind-event-listener';
15
15
  import rafSchd from 'raf-schd';
@@ -169,11 +169,14 @@ var ResizeControl = function ResizeControl(_ref) {
169
169
  // Will return sidebar to the same size it was before the resizing started
170
170
  if (event.key === 'Escape') {
171
171
  sidebarWidth.current = Math.max(leftSidebarState.lastLeftSidebarWidth, COLLAPSED_LEFT_SIDEBAR_WIDTH);
172
+
173
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
172
174
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(sidebarWidth.current, "px"));
173
175
  onFinishResizing();
174
176
  }
175
177
  }
176
178
  }]);
179
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
177
180
  document.documentElement.setAttribute(IS_SIDEBAR_DRAGGING, 'true');
178
181
  var newLeftbarState = _objectSpread(_objectSpread({}, leftSidebarState), {}, {
179
182
  isResizing: true
@@ -186,6 +189,7 @@ var ResizeControl = function ResizeControl(_ref) {
186
189
  onUpdateResize.cancel();
187
190
  (_unbindEvents$current = unbindEvents.current) === null || _unbindEvents$current === void 0 || _unbindEvents$current.call(unbindEvents);
188
191
  unbindEvents.current = null;
192
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
189
193
  document.documentElement.removeAttribute(IS_SIDEBAR_DRAGGING);
190
194
  offset.current = 0;
191
195
  collapseLeftSidebar(undefined, true);
@@ -209,6 +213,8 @@ var ResizeControl = function ResizeControl(_ref) {
209
213
  }
210
214
  var delta = Math.max(Math.min(clientX - leftSidebarWidth - leftPanelWidth, maxWidth - leftSidebarWidth - leftPanelWidth), COLLAPSED_LEFT_SIDEBAR_WIDTH - leftSidebarWidth - leftPanelWidth);
211
215
  sidebarWidth.current = Math.max(leftSidebarWidth + delta - offset.current, COLLAPSED_LEFT_SIDEBAR_WIDTH);
216
+
217
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
212
218
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(sidebarWidth.current, "px"));
213
219
  });
214
220
  }),
@@ -219,6 +225,8 @@ var ResizeControl = function ResizeControl(_ref) {
219
225
  if (isLeftSidebarCollapsed) {
220
226
  return;
221
227
  }
228
+
229
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
222
230
  document.documentElement.removeAttribute(IS_SIDEBAR_DRAGGING);
223
231
 
224
232
  // TODO: the control flow is pretty strange as the first codepath which calls `collapseLeftSidebar()`
@@ -229,6 +237,7 @@ var ResizeControl = function ResizeControl(_ref) {
229
237
  // collapse the navigation
230
238
  if (sidebarWidth.current < MIN_LEFT_SIDEBAR_DRAG_THRESHOLD) {
231
239
  // TODO: for this codepath, `onCollapse` occurs before `onResizeEnd` which seems wrong
240
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
232
241
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(COLLAPSED_LEFT_SIDEBAR_WIDTH, "px"));
233
242
  collapseLeftSidebar(undefined, true);
234
243
  }
@@ -236,6 +245,7 @@ var ResizeControl = function ResizeControl(_ref) {
236
245
  // min threshold and default width
237
246
  // expand the nav to the default width
238
247
  else if (sidebarWidth.current > MIN_LEFT_SIDEBAR_DRAG_THRESHOLD && sidebarWidth.current < DEFAULT_LEFT_SIDEBAR_WIDTH) {
248
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
239
249
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(DEFAULT_LEFT_SIDEBAR_WIDTH, "px"));
240
250
  updatedLeftSidebarState = _objectSpread(_objectSpread({}, leftSidebarState), {}, _defineProperty(_defineProperty({
241
251
  isResizing: false
@@ -285,9 +295,11 @@ var ResizeControl = function ResizeControl(_ref) {
285
295
  var width = leftSidebarWidth + stepValue;
286
296
  if (width <= DEFAULT_LEFT_SIDEBAR_WIDTH) {
287
297
  width = DEFAULT_LEFT_SIDEBAR_WIDTH;
298
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
288
299
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(DEFAULT_LEFT_SIDEBAR_WIDTH - 20, "px"));
289
300
  } else if (width > maxWidth) {
290
301
  width = maxWidth;
302
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
291
303
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(maxWidth + 20, "px"));
292
304
  } else if (hasModifierKey) {
293
305
  width = isRightOrBottomArrow ? maxWidth : DEFAULT_LEFT_SIDEBAR_WIDTH;
@@ -298,6 +310,8 @@ var ResizeControl = function ResizeControl(_ref) {
298
310
  requestAnimationFrame(function () {
299
311
  keyboardEventTimeout.current = window.setTimeout(function () {
300
312
  keyboardEventTimeout.current && clearTimeout(keyboardEventTimeout.current);
313
+
314
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
301
315
  document.documentElement.style.setProperty("--".concat(VAR_LEFT_SIDEBAR_WIDTH), "".concat(width, "px"));
302
316
  var updatedLeftSidebarState = _objectSpread(_objectSpread({}, leftSidebarState), {}, _defineProperty(_defineProperty({}, VAR_LEFT_SIDEBAR_WIDTH, width), "lastLeftSidebarWidth", width));
303
317
  setLeftSidebarState(updatedLeftSidebarState);
@@ -10,7 +10,7 @@ var _excluded = ["isLeftSidebarCollapsed", "label", "onClick", "testId"],
10
10
  * @jsx jsx
11
11
  */
12
12
 
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
14
14
  import { css, jsx } from '@emotion/react';
15
15
  import ChevronRight from '@atlaskit/icon/core/chevron-right';
16
16
  import { easeOut } from '@atlaskit/motion/curves';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { easeOut } from '@atlaskit/motion';
9
9
  import { useIsSidebarDragging } from '../../common/hooks';
@@ -8,7 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
  * @jsx jsx
9
9
  */
10
10
 
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import Link from '@atlaskit/link';
14
14
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
@@ -95,7 +95,8 @@ export var SkipLinkWrapper = function SkipLinkWrapper(_ref) {
95
95
  };
96
96
  var escapeHandler = function escapeHandler(event) {
97
97
  if (event.keyCode === 27) {
98
- var container = document.querySelector("[".concat(PAGE_LAYOUT_CONTAINER_SELECTOR, "=\"true\"]"));
98
+ var container = document.querySelector("[".concat(PAGE_LAYOUT_CONTAINER_SELECTOR, "=\"true\"]") // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
99
+ );
99
100
  if (container !== null) {
100
101
  container.focus();
101
102
  }
@@ -139,6 +140,7 @@ var focusTargetRef = function focusTargetRef(href) {
139
140
  event.preventDefault();
140
141
  var targetRef = document.querySelector(href);
141
142
 
143
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
142
144
  // @ts-ignore
143
145
  var key = event.which || event.keycode;
144
146
  // if it is a keypress and the key is not
@@ -153,7 +155,9 @@ var focusTargetRef = function focusTargetRef(href) {
153
155
  // @ts-ignore
154
156
  targetRef.focus();
155
157
  document.activeElement && document.activeElement.scrollIntoView({
158
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
156
159
  behavior: 'smooth'
160
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
157
161
  });
158
162
  window.scrollTo(0, 0);
159
163
  }
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import { useEffect } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { BANNER, BANNER_HEIGHT, DEFAULT_BANNER_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, VAR_BANNER_HEIGHT } from '../../common/constants';
12
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { CONTENT } from '../../common/constants';
9
9
  var contentStyles = css({
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  * @jsx jsx
5
5
  */
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
10
10
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { prefersReducedMotion } from '@atlaskit/motion';
9
9
  import { TRANSITION_DURATION } from '../../../common/constants';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { ClassNames, css, jsx } from '@emotion/react';
8
8
  import { B100 } from '@atlaskit/theme/colors';
9
9
  var focusStyles = css({
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import { useEffect } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { DEFAULT_LEFT_PANEL_WIDTH, LEFT_PANEL, LEFT_PANEL_WIDTH, VAR_LEFT_PANEL_WIDTH } from '../../common/constants';
12
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  */
6
6
  import { useEffect } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { jsx } from '@emotion/react';
10
10
  import { VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
11
11
  import { resolveDimension } from '../../common/utils';
@@ -8,7 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
  */
9
9
  import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
10
10
 
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
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';
@@ -96,6 +96,8 @@ var LeftSidebar = function LeftSidebar(props) {
96
96
  handlerRef.current = function (event) {
97
97
  mouseXRef.current = event.clientX;
98
98
  };
99
+
100
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
99
101
  document.addEventListener('mousemove', handlerRef.current);
100
102
  }
101
103
  if (!isLocked && handlerRef.current) {
@@ -106,11 +108,13 @@ var LeftSidebar = function LeftSidebar(props) {
106
108
  });
107
109
  });
108
110
  }
111
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
109
112
  document.removeEventListener('mousemove', handlerRef.current);
110
113
  handlerRef.current = null;
111
114
  }
112
115
  return function () {
113
116
  if (handlerRef.current) {
117
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
114
118
  document.removeEventListener('mousemove', handlerRef.current);
115
119
  }
116
120
  };
@@ -189,6 +193,8 @@ var LeftSidebar = function LeftSidebar(props) {
189
193
  }
190
194
  };
191
195
  }
196
+
197
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
192
198
  document.addEventListener('mouseover', mouseOverEventRef.current, {
193
199
  capture: true,
194
200
  passive: true
@@ -203,7 +209,9 @@ var LeftSidebar = function LeftSidebar(props) {
203
209
  }, FLYOUT_DELAY);
204
210
  };
205
211
  var removeMouseOverListener = function removeMouseOverListener() {
206
- mouseOverEventRef.current && document.removeEventListener('mouseover', mouseOverEventRef.current, {
212
+ mouseOverEventRef.current &&
213
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
214
+ document.removeEventListener('mouseover', mouseOverEventRef.current, {
207
215
  capture: true,
208
216
  passive: true
209
217
  });
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  */
6
6
  import { useContext } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
11
11
  import { easeOut } from '@atlaskit/motion/curves';
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import { Fragment } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
12
12
  import { BANNER, BANNER_HEIGHT, CONTENT, DEFAULT_I18N_PROPS_SKIP_LINKS, LEFT_PANEL, LEFT_PANEL_WIDTH, PAGE_LAYOUT_CONTAINER_SELECTOR, RIGHT_PANEL, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT } from '../../common/constants';
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import { useEffect } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { DEFAULT_RIGHT_PANEL_WIDTH, RIGHT_PANEL, RIGHT_PANEL_WIDTH, VAR_RIGHT_PANEL_WIDTH } from '../../common/constants';
12
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import { useEffect } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { BANNER_HEIGHT, DEFAULT_RIGHT_SIDEBAR_WIDTH, RIGHT_PANEL_WIDTH, RIGHT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, VAR_RIGHT_SIDEBAR_WIDTH } from '../../common/constants';
12
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import { useEffect } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { BANNER_HEIGHT, DEFAULT_TOP_NAVIGATION_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT, VAR_TOP_NAVIGATION_HEIGHT } from '../../common/constants';
12
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -33,10 +33,10 @@ export declare const RESIZE_CONTROL_SELECTOR = "data-resize-control";
33
33
  export declare const PAGE_LAYOUT_SLOT_SELECTOR = "data-ds--page-layout--slot";
34
34
  export declare const DEFAULT_I18N_PROPS_SKIP_LINKS = "Skip to:";
35
35
  export declare const PAGE_LAYOUT_CONTAINER_SELECTOR = "data-layout-container";
36
- export declare const LEFT_PANEL_WIDTH = "var(--leftPanelWidth, 0px)";
37
- export declare const RIGHT_PANEL_WIDTH = "var(--rightPanelWidth, 0px)";
38
- export declare const LEFT_SIDEBAR_WIDTH = "var(--leftSidebarWidth, 0px)";
39
- export declare const RIGHT_SIDEBAR_WIDTH = "var(--rightSidebarWidth, 0px)";
40
- export declare const TOP_NAVIGATION_HEIGHT = "var(--topNavigationHeight, 0px)";
41
- export declare const BANNER_HEIGHT = "var(--bannerHeight, 0px)";
42
- export declare const LEFT_SIDEBAR_FLYOUT_WIDTH = "var(--leftSidebarFlyoutWidth, 240px)";
36
+ export declare const LEFT_PANEL_WIDTH: 'var(--leftPanelWidth, 0px)';
37
+ export declare const RIGHT_PANEL_WIDTH: 'var(--rightPanelWidth, 0px)';
38
+ export declare const LEFT_SIDEBAR_WIDTH: 'var(--leftSidebarWidth, 0px)';
39
+ export declare const RIGHT_SIDEBAR_WIDTH: 'var(--rightSidebarWidth, 0px)';
40
+ export declare const TOP_NAVIGATION_HEIGHT: 'var(--topNavigationHeight, 0px)';
41
+ export declare const BANNER_HEIGHT: 'var(--bannerHeight, 0px)';
42
+ export declare const LEFT_SIDEBAR_FLYOUT_WIDTH: 'var(--leftSidebarFlyoutWidth, 240px)';
@@ -16,5 +16,5 @@ declare const GrabArea: React.ForwardRefExoticComponent<{
16
16
  onMouseDown: (event: MouseEvent<HTMLButtonElement>) => void;
17
17
  testId?: string;
18
18
  valueTextLabel?: string;
19
- } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Partial<LeftSidebarProps> & React.RefAttributes<HTMLButtonElement>>;
19
+ } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> & Partial<LeftSidebarProps> & React.RefAttributes<HTMLButtonElement>>;
20
20
  export default GrabArea;
@@ -12,7 +12,7 @@ import { type SkipLinkWrapperProps } from './types';
12
12
  * default label will still be used in `title` attribute of the skip links
13
13
  * themselves.
14
14
  */
15
- export declare const SkipLinkWrapper: ({ skipLinksLabel }: SkipLinkWrapperProps) => jsx.JSX.Element | null;
15
+ export declare const SkipLinkWrapper: ({ skipLinksLabel, }: SkipLinkWrapperProps) => jsx.JSX.Element | null;
16
16
  export declare const SkipLink: ({ href, children, isFocusable, }: {
17
17
  href: string;
18
18
  children: ReactNode;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type MouseEventHandler, type ReactNode } from 'react';
5
+ import { type ForwardRefExoticComponent, type MouseEventHandler, type ReactNode, type RefAttributes } from 'react';
6
6
  type LeftSidebarOuterProps = {
7
7
  children: ReactNode;
8
8
  isFixed?: boolean;
@@ -12,5 +12,5 @@ type LeftSidebarOuterProps = {
12
12
  onMouseLeave?: MouseEventHandler;
13
13
  onClick?: MouseEventHandler;
14
14
  };
15
- declare const LeftSidebarOuter: import("react").ForwardRefExoticComponent<LeftSidebarOuterProps & import("react").RefAttributes<HTMLDivElement>>;
15
+ declare const LeftSidebarOuter: ForwardRefExoticComponent<LeftSidebarOuterProps & RefAttributes<HTMLDivElement>>;
16
16
  export default LeftSidebarOuter;
@@ -1,4 +1,4 @@
1
- import { type KeyboardEvent, type MouseEvent } from 'react';
1
+ import { type Context, type KeyboardEvent, type MouseEvent } from 'react';
2
2
  export type LeftSidebarState = {
3
3
  isFlyoutOpen: boolean;
4
4
  isResizing: boolean;
@@ -21,7 +21,7 @@ export type SidebarResizeContextValue = {
21
21
  leftSidebarState: LeftSidebarState;
22
22
  setLeftSidebarState: (value: LeftSidebarState | ((prevState: LeftSidebarState) => LeftSidebarState)) => void;
23
23
  };
24
- export declare const SidebarResizeContext: import("react").Context<SidebarResizeContextValue>;
24
+ export declare const SidebarResizeContext: Context<SidebarResizeContextValue>;
25
25
  export declare const usePageLayoutResize: () => {
26
26
  isLeftSidebarCollapsed: boolean;
27
27
  expandLeftSidebar: () => void;
@@ -1,4 +1,5 @@
1
+ import { type Context } from 'react';
1
2
  import { type SkipLinkContextProps, type SkipLinkData } from './types';
2
- export declare const SkipLinksContext: import("react").Context<SkipLinkContextProps>;
3
+ export declare const SkipLinksContext: Context<SkipLinkContextProps>;
3
4
  export declare const useSkipLinks: () => SkipLinkContextProps;
4
5
  export declare const useSkipLink: (id?: SkipLinkData["id"], skipLinkTitle?: SkipLinkData["skipLinkTitle"]) => void;
@@ -33,10 +33,10 @@ export declare const RESIZE_CONTROL_SELECTOR = "data-resize-control";
33
33
  export declare const PAGE_LAYOUT_SLOT_SELECTOR = "data-ds--page-layout--slot";
34
34
  export declare const DEFAULT_I18N_PROPS_SKIP_LINKS = "Skip to:";
35
35
  export declare const PAGE_LAYOUT_CONTAINER_SELECTOR = "data-layout-container";
36
- export declare const LEFT_PANEL_WIDTH = "var(--leftPanelWidth, 0px)";
37
- export declare const RIGHT_PANEL_WIDTH = "var(--rightPanelWidth, 0px)";
38
- export declare const LEFT_SIDEBAR_WIDTH = "var(--leftSidebarWidth, 0px)";
39
- export declare const RIGHT_SIDEBAR_WIDTH = "var(--rightSidebarWidth, 0px)";
40
- export declare const TOP_NAVIGATION_HEIGHT = "var(--topNavigationHeight, 0px)";
41
- export declare const BANNER_HEIGHT = "var(--bannerHeight, 0px)";
42
- export declare const LEFT_SIDEBAR_FLYOUT_WIDTH = "var(--leftSidebarFlyoutWidth, 240px)";
36
+ export declare const LEFT_PANEL_WIDTH: 'var(--leftPanelWidth, 0px)';
37
+ export declare const RIGHT_PANEL_WIDTH: 'var(--rightPanelWidth, 0px)';
38
+ export declare const LEFT_SIDEBAR_WIDTH: 'var(--leftSidebarWidth, 0px)';
39
+ export declare const RIGHT_SIDEBAR_WIDTH: 'var(--rightSidebarWidth, 0px)';
40
+ export declare const TOP_NAVIGATION_HEIGHT: 'var(--topNavigationHeight, 0px)';
41
+ export declare const BANNER_HEIGHT: 'var(--bannerHeight, 0px)';
42
+ export declare const LEFT_SIDEBAR_FLYOUT_WIDTH: 'var(--leftSidebarFlyoutWidth, 240px)';
@@ -16,5 +16,5 @@ declare const GrabArea: React.ForwardRefExoticComponent<{
16
16
  onMouseDown: (event: MouseEvent<HTMLButtonElement>) => void;
17
17
  testId?: string;
18
18
  valueTextLabel?: string;
19
- } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Partial<LeftSidebarProps> & React.RefAttributes<HTMLButtonElement>>;
19
+ } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> & Partial<LeftSidebarProps> & React.RefAttributes<HTMLButtonElement>>;
20
20
  export default GrabArea;
@@ -12,7 +12,7 @@ import { type SkipLinkWrapperProps } from './types';
12
12
  * default label will still be used in `title` attribute of the skip links
13
13
  * themselves.
14
14
  */
15
- export declare const SkipLinkWrapper: ({ skipLinksLabel }: SkipLinkWrapperProps) => jsx.JSX.Element | null;
15
+ export declare const SkipLinkWrapper: ({ skipLinksLabel, }: SkipLinkWrapperProps) => jsx.JSX.Element | null;
16
16
  export declare const SkipLink: ({ href, children, isFocusable, }: {
17
17
  href: string;
18
18
  children: ReactNode;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type MouseEventHandler, type ReactNode } from 'react';
5
+ import { type ForwardRefExoticComponent, type MouseEventHandler, type ReactNode, type RefAttributes } from 'react';
6
6
  type LeftSidebarOuterProps = {
7
7
  children: ReactNode;
8
8
  isFixed?: boolean;
@@ -12,5 +12,5 @@ type LeftSidebarOuterProps = {
12
12
  onMouseLeave?: MouseEventHandler;
13
13
  onClick?: MouseEventHandler;
14
14
  };
15
- declare const LeftSidebarOuter: import("react").ForwardRefExoticComponent<LeftSidebarOuterProps & import("react").RefAttributes<HTMLDivElement>>;
15
+ declare const LeftSidebarOuter: ForwardRefExoticComponent<LeftSidebarOuterProps & RefAttributes<HTMLDivElement>>;
16
16
  export default LeftSidebarOuter;
@@ -1,4 +1,4 @@
1
- import { type KeyboardEvent, type MouseEvent } from 'react';
1
+ import { type Context, type KeyboardEvent, type MouseEvent } from 'react';
2
2
  export type LeftSidebarState = {
3
3
  isFlyoutOpen: boolean;
4
4
  isResizing: boolean;
@@ -21,7 +21,7 @@ export type SidebarResizeContextValue = {
21
21
  leftSidebarState: LeftSidebarState;
22
22
  setLeftSidebarState: (value: LeftSidebarState | ((prevState: LeftSidebarState) => LeftSidebarState)) => void;
23
23
  };
24
- export declare const SidebarResizeContext: import("react").Context<SidebarResizeContextValue>;
24
+ export declare const SidebarResizeContext: Context<SidebarResizeContextValue>;
25
25
  export declare const usePageLayoutResize: () => {
26
26
  isLeftSidebarCollapsed: boolean;
27
27
  expandLeftSidebar: () => void;
@@ -1,4 +1,5 @@
1
+ import { type Context } from 'react';
1
2
  import { type SkipLinkContextProps, type SkipLinkData } from './types';
2
- export declare const SkipLinksContext: import("react").Context<SkipLinkContextProps>;
3
+ export declare const SkipLinksContext: Context<SkipLinkContextProps>;
3
4
  export declare const useSkipLinks: () => SkipLinkContextProps;
4
5
  export declare const useSkipLink: (id?: SkipLinkData["id"], skipLinkTitle?: SkipLinkData["skipLinkTitle"]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "4.2.27",
3
+ "version": "4.2.29",
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/"
@@ -38,7 +38,7 @@
38
38
  "homepage": "https://atlassian.design/components/page-layout/",
39
39
  "dependencies": {
40
40
  "@atlaskit/ds-lib": "^5.3.0",
41
- "@atlaskit/icon": "^30.0.0",
41
+ "@atlaskit/icon": "^32.0.0",
42
42
  "@atlaskit/link": "^3.3.0",
43
43
  "@atlaskit/motion": "^5.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -59,7 +59,7 @@
59
59
  "@af/integration-testing": "workspace:^",
60
60
  "@atlaskit/atlassian-navigation": "^5.6.0",
61
61
  "@atlaskit/button": "^23.9.0",
62
- "@atlaskit/docs": "^11.3.0",
62
+ "@atlaskit/docs": "^11.4.0",
63
63
  "@atlaskit/logo": "^19.10.0",
64
64
  "@atlaskit/menu": "^8.4.0",
65
65
  "@atlaskit/popup": "^4.13.0",