@atlaskit/page-layout 5.3.0 → 5.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 +31 -0
- package/dist/cjs/components/resize-control/grab-area.js +2 -2
- package/dist/cjs/components/skip-links/skip-link-wrapper.js +1 -1
- package/dist/cjs/components/skip-links/skip-link.js +1 -1
- package/dist/cjs/components/slots/internal/left-sidebar-inner.js +1 -1
- package/dist/cjs/components/slots/internal/left-sidebar-outer.js +1 -1
- package/dist/cjs/components/slots/internal/resizable-children-wrapper.js +1 -1
- package/dist/cjs/components/slots/main.js +1 -1
- package/dist/es2019/components/resize-control/grab-area.js +1 -1
- package/dist/es2019/components/skip-links/skip-link-wrapper.js +1 -1
- package/dist/es2019/components/skip-links/skip-link.js +1 -1
- package/dist/es2019/components/slots/internal/left-sidebar-inner.js +1 -1
- package/dist/es2019/components/slots/internal/left-sidebar-outer.js +1 -1
- package/dist/es2019/components/slots/internal/resizable-children-wrapper.js +1 -1
- package/dist/es2019/components/slots/main.js +1 -1
- package/dist/esm/components/resize-control/grab-area.js +1 -1
- package/dist/esm/components/skip-links/skip-link-wrapper.js +1 -1
- package/dist/esm/components/skip-links/skip-link.js +1 -1
- package/dist/esm/components/slots/internal/left-sidebar-inner.js +1 -1
- package/dist/esm/components/slots/internal/left-sidebar-outer.js +1 -1
- package/dist/esm/components/slots/internal/resizable-children-wrapper.js +1 -1
- package/dist/esm/components/slots/main.js +1 -1
- package/package.json +15 -15
- package/report.api.md +0 -227
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 5.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 5.4.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`d82e6f76528ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82e6f76528ab) -
|
|
19
|
+
Add direct subpath package exports as part of the linking-platform, search, media, and
|
|
20
|
+
design-system barrel-removal (de-barrel) migration.
|
|
21
|
+
|
|
22
|
+
These packages now expose their individual modules via explicit `package.json` `exports` subpaths
|
|
23
|
+
so that consumers can import directly from the leaf module (e.g. `@atlaskit/pkg/thing`) instead of
|
|
24
|
+
the package barrel/index. This adds new public entry points without changing or removing any
|
|
25
|
+
existing exports, so it is a backwards-compatible additive change.
|
|
26
|
+
|
|
27
|
+
No runtime behaviour changes; this is an API-surface (entry-point) addition to support
|
|
28
|
+
tree-shaking and to unblock removal of the barrel index files.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
3
34
|
## 5.3.0
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var
|
|
14
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
15
|
var _constants = require("../../common/constants");
|
|
16
16
|
var _excluded = ["testId", "valueTextLabel", "isDisabled", "isLeftSidebarCollapsed", "label", "leftSidebarPercentageExpanded", "onKeyDown", "onMouseDown", "onBlur", "onFocus"];
|
|
17
17
|
/**
|
|
@@ -101,7 +101,7 @@ var GrabArea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
101
101
|
onFocus: onFocus,
|
|
102
102
|
onBlur: onBlur
|
|
103
103
|
}, rest), (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
104
|
-
css: [lineStyles, (0,
|
|
104
|
+
css: [lineStyles, (0, _fg.fg)('platform-dst-motion-uplift-button') && lineMotionStyles]
|
|
105
105
|
}, grabAreaLineSelector)));
|
|
106
106
|
});
|
|
107
107
|
|
|
@@ -9,7 +9,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _curves = require("@atlaskit/motion/curves");
|
|
12
|
-
var _accessibility = require("@atlaskit/motion/accessibility");
|
|
12
|
+
var _accessibility = require("@atlaskit/motion/utils/accessibility");
|
|
13
13
|
var _constants = require("../../common/constants");
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _skipLink = require("./skip-link");
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkipLink = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
9
|
+
var _link = _interopRequireDefault(require("@atlaskit/link/link"));
|
|
10
10
|
/* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
11
11
|
/**
|
|
12
12
|
* @jsxRuntime classic
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _curves = require("@atlaskit/motion/curves");
|
|
11
|
-
var _accessibility = require("@atlaskit/motion/accessibility");
|
|
11
|
+
var _accessibility = require("@atlaskit/motion/utils/accessibility");
|
|
12
12
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
13
13
|
var _constants = require("../../../common/constants");
|
|
14
14
|
var _hooks = require("../../../common/hooks");
|
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _curves = require("@atlaskit/motion/curves");
|
|
13
|
-
var _accessibility = require("@atlaskit/motion/accessibility");
|
|
13
|
+
var _accessibility = require("@atlaskit/motion/utils/accessibility");
|
|
14
14
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
15
15
|
var _constants = require("../../../common/constants");
|
|
16
16
|
var _getPageLayoutSlotSelector = require("../../../common/get-page-layout-slot-selector");
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _accessibility = require("@atlaskit/motion/accessibility");
|
|
8
|
+
var _accessibility = require("@atlaskit/motion/utils/accessibility");
|
|
9
9
|
var _constants = require("../../../common/constants");
|
|
10
10
|
var _hooks = require("../../../common/hooks");
|
|
11
11
|
/**
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
var _accessibility = require("@atlaskit/motion/accessibility");
|
|
11
|
+
var _accessibility = require("@atlaskit/motion/utils/accessibility");
|
|
12
12
|
var _curves = require("@atlaskit/motion/curves");
|
|
13
13
|
var _constants = require("../../common/constants");
|
|
14
14
|
var _getPageLayoutSlotSelector = require("../../common/get-page-layout-slot-selector");
|
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { GRAB_AREA_LINE_SELECTOR, GRAB_AREA_SELECTOR } from '../../common/constants';
|
|
11
11
|
/**
|
|
12
12
|
* Determines the color of the grab line.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
10
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
10
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
11
11
|
import { DEFAULT_I18N_PROPS_SKIP_LINKS, PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
|
|
12
12
|
import { useSkipLinks } from '../../controllers';
|
|
13
13
|
import { SkipLink } from './skip-link';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import Link from '@atlaskit/link';
|
|
9
|
+
import Link from '@atlaskit/link/link';
|
|
10
10
|
const skipLinkListItemStyles = css({
|
|
11
11
|
marginBlockStart: 0
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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/curves';
|
|
9
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
9
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
11
11
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
12
12
|
import { BANNER_HEIGHT, LEFT_PANEL_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, TRANSITION_DURATION } from '../../../common/constants';
|
|
@@ -8,7 +8,7 @@ import { forwardRef, useContext } from 'react';
|
|
|
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
10
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
11
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
11
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
13
13
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
14
14
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TRANSITION_DURATION } from '../../../common/constants';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
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
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
8
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
9
9
|
import { TRANSITION_DURATION } from '../../../common/constants';
|
|
10
10
|
import { useIsSidebarCollapsing } from '../../../common/hooks';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,7 @@ import { useContext } from 'react';
|
|
|
7
7
|
|
|
8
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
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
10
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
11
11
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
12
12
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT } from '../../common/constants';
|
|
13
13
|
import { getPageLayoutSlotSelector } from '../../common/get-page-layout-slot-selector';
|
|
@@ -9,7 +9,7 @@ var _excluded = ["testId", "valueTextLabel", "isDisabled", "isLeftSidebarCollaps
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { GRAB_AREA_LINE_SELECTOR, GRAB_AREA_SELECTOR } from '../../common/constants';
|
|
14
14
|
/**
|
|
15
15
|
* Determines the color of the grab line.
|
|
@@ -11,7 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
14
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
14
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
15
15
|
import { DEFAULT_I18N_PROPS_SKIP_LINKS, PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
|
|
16
16
|
import { useSkipLinks } from '../../controllers';
|
|
17
17
|
import { SkipLink } from './skip-link';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import Link from '@atlaskit/link';
|
|
9
|
+
import Link from '@atlaskit/link/link';
|
|
10
10
|
var skipLinkListItemStyles = css({
|
|
11
11
|
marginBlockStart: 0
|
|
12
12
|
});
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
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 } from '@atlaskit/motion/curves';
|
|
10
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
10
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
12
12
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
13
13
|
import { BANNER_HEIGHT, LEFT_PANEL_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, TRANSITION_DURATION } from '../../../common/constants';
|
|
@@ -9,7 +9,7 @@ import { forwardRef, useContext } 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 { easeOut } from '@atlaskit/motion/curves';
|
|
12
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
12
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
14
14
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
15
15
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TRANSITION_DURATION } from '../../../common/constants';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
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
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
8
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
9
9
|
import { TRANSITION_DURATION } from '../../../common/constants';
|
|
10
10
|
import { useIsSidebarCollapsing } from '../../../common/hooks';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,7 @@ import { useContext } from 'react';
|
|
|
7
7
|
|
|
8
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
|
-
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
10
|
+
import { prefersReducedMotion } from '@atlaskit/motion/utils/accessibility';
|
|
11
11
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
12
12
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT } from '../../common/constants';
|
|
13
13
|
import { getPageLayoutSlotSelector } from '../../common/get-page-layout-slot-selector';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.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/"
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"homepage": "https://atlassian.design/components/page-layout/",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
40
|
-
"@atlaskit/icon": "^37.
|
|
41
|
-
"@atlaskit/link": "^5.
|
|
42
|
-
"@atlaskit/motion": "^8.
|
|
43
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
44
|
-
"@atlaskit/primitives": "^22.
|
|
40
|
+
"@atlaskit/icon": "^37.6.0",
|
|
41
|
+
"@atlaskit/link": "^5.1.0",
|
|
42
|
+
"@atlaskit/motion": "^8.6.0",
|
|
43
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
44
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^16.
|
|
46
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1",
|
|
49
49
|
"bind-event-listener": "^3.0.0",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@af/accessibility-testing": "workspace:^",
|
|
58
58
|
"@af/integration-testing": "workspace:^",
|
|
59
|
-
"@atlaskit/atlassian-navigation": "^6.
|
|
60
|
-
"@atlaskit/button": "^25.
|
|
59
|
+
"@atlaskit/atlassian-navigation": "^6.4.0",
|
|
60
|
+
"@atlaskit/button": "^25.3.0",
|
|
61
61
|
"@atlaskit/docs": "^12.2.0",
|
|
62
|
-
"@atlaskit/logo": "^21.
|
|
63
|
-
"@atlaskit/menu": "^10.
|
|
64
|
-
"@atlaskit/popup": "^6.
|
|
65
|
-
"@atlaskit/section-message": "^10.
|
|
66
|
-
"@atlaskit/side-navigation": "^13.
|
|
67
|
-
"@atlaskit/tooltip": "^24.
|
|
62
|
+
"@atlaskit/logo": "^21.6.0",
|
|
63
|
+
"@atlaskit/menu": "^10.2.0",
|
|
64
|
+
"@atlaskit/popup": "^6.3.0",
|
|
65
|
+
"@atlaskit/section-message": "^10.2.0",
|
|
66
|
+
"@atlaskit/side-navigation": "^13.3.0",
|
|
67
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
68
68
|
"@atlassian/ssr-tests": "workspace:^",
|
|
69
69
|
"@testing-library/react": "^16.3.0",
|
|
70
70
|
"@types/raf-schd": "^4.0.1",
|
package/report.api.md
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/page-layout"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
20
|
-
import { ElementType } from 'react';
|
|
21
|
-
import { jsx } from '@emotion/react';
|
|
22
|
-
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
23
|
-
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
24
|
-
import { ReactElement } from 'react';
|
|
25
|
-
import { ReactNode } from 'react';
|
|
26
|
-
|
|
27
|
-
// @public
|
|
28
|
-
export const Banner: (props: SlotHeightProps) => jsx.JSX.Element;
|
|
29
|
-
|
|
30
|
-
// @public (undocumented)
|
|
31
|
-
export const BANNER_HEIGHT: string;
|
|
32
|
-
|
|
33
|
-
// @public
|
|
34
|
-
export const Content: (props: ContentProps) => jsx.JSX.Element;
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
interface ContentProps {
|
|
38
|
-
children: ReactNode;
|
|
39
|
-
testId?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// @public (undocumented)
|
|
43
|
-
type DimensionNames =
|
|
44
|
-
| 'bannerHeight'
|
|
45
|
-
| 'leftPanelWidth'
|
|
46
|
-
| 'leftSidebarFlyoutWidth'
|
|
47
|
-
| 'leftSidebarWidth'
|
|
48
|
-
| 'rightPanelWidth'
|
|
49
|
-
| 'rightSidebarWidth'
|
|
50
|
-
| 'topNavigationHeight';
|
|
51
|
-
|
|
52
|
-
// @public (undocumented)
|
|
53
|
-
export type Dimensions = Partial<Record<DimensionNames, number>>;
|
|
54
|
-
|
|
55
|
-
// @public (undocumented)
|
|
56
|
-
export const LEFT_PANEL_WIDTH: string;
|
|
57
|
-
|
|
58
|
-
// @public (undocumented)
|
|
59
|
-
export const LEFT_SIDEBAR_WIDTH: string;
|
|
60
|
-
|
|
61
|
-
// @public
|
|
62
|
-
export const LeftPanel: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
63
|
-
|
|
64
|
-
// @public
|
|
65
|
-
export const LeftSidebar: (props: LeftSidebarProps) => jsx.JSX.Element;
|
|
66
|
-
|
|
67
|
-
// @public (undocumented)
|
|
68
|
-
interface LeftSidebarProps extends SlotWidthProps {
|
|
69
|
-
collapsedState?: 'collapsed' | 'expanded';
|
|
70
|
-
onCollapse?: () => void;
|
|
71
|
-
onExpand?: () => void;
|
|
72
|
-
onFlyoutCollapse?: () => void;
|
|
73
|
-
onFlyoutExpand?: () => void;
|
|
74
|
-
onResizeEnd?: (leftSidebarState: LeftSidebarState) => void;
|
|
75
|
-
onResizeStart?: (leftSidebarState: LeftSidebarState) => void;
|
|
76
|
-
overrides?: {
|
|
77
|
-
ResizeButton?: {
|
|
78
|
-
render?: (
|
|
79
|
-
Component: ElementType<ResizeButtonProps>,
|
|
80
|
-
props: ResizeButtonProps,
|
|
81
|
-
) => ReactElement;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
resizeButtonLabel?: string;
|
|
85
|
-
resizeGrabAreaLabel?: string;
|
|
86
|
-
testId?: string;
|
|
87
|
-
valueTextLabel?: string;
|
|
88
|
-
width?: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// @public (undocumented)
|
|
92
|
-
export type LeftSidebarState = {
|
|
93
|
-
isFlyoutOpen: boolean;
|
|
94
|
-
isResizing: boolean;
|
|
95
|
-
isLeftSidebarCollapsed: boolean;
|
|
96
|
-
leftSidebarWidth: number;
|
|
97
|
-
lastLeftSidebarWidth: number;
|
|
98
|
-
flyoutLockCount: number;
|
|
99
|
-
isFixed: boolean;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// @public
|
|
103
|
-
export const LeftSidebarWithoutResize: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
104
|
-
|
|
105
|
-
// @public
|
|
106
|
-
export const Main: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
107
|
-
|
|
108
|
-
// @public
|
|
109
|
-
export const PageLayout: ({
|
|
110
|
-
skipLinksLabel,
|
|
111
|
-
children,
|
|
112
|
-
testId,
|
|
113
|
-
onLeftSidebarExpand,
|
|
114
|
-
onLeftSidebarCollapse,
|
|
115
|
-
}: PageLayoutProps) => jsx.JSX.Element;
|
|
116
|
-
|
|
117
|
-
// @public (undocumented)
|
|
118
|
-
interface PageLayoutProps extends SidebarResizeControllerProps {
|
|
119
|
-
// (undocumented)
|
|
120
|
-
skipLinksLabel?: string;
|
|
121
|
-
testId?: string;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// @public (undocumented)
|
|
125
|
-
type ResizeButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
126
|
-
isLeftSidebarCollapsed: boolean;
|
|
127
|
-
label: string;
|
|
128
|
-
testId?: string;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// @public (undocumented)
|
|
132
|
-
export const RIGHT_PANEL_WIDTH: string;
|
|
133
|
-
|
|
134
|
-
// @public (undocumented)
|
|
135
|
-
export const RIGHT_SIDEBAR_WIDTH: string;
|
|
136
|
-
|
|
137
|
-
// @public
|
|
138
|
-
export const RightPanel: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
139
|
-
|
|
140
|
-
// @public
|
|
141
|
-
export const RightSidebar: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
142
|
-
|
|
143
|
-
// @public (undocumented)
|
|
144
|
-
type SidebarResizeControllerProps = {
|
|
145
|
-
children: ReactNode;
|
|
146
|
-
onLeftSidebarExpand?: (leftSidebarState: LeftSidebarState) => void;
|
|
147
|
-
onLeftSidebarCollapse?: (leftSidebarState: LeftSidebarState) => void;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// @public (undocumented)
|
|
151
|
-
type SkipLinkData = {
|
|
152
|
-
id: string;
|
|
153
|
-
skipLinkTitle: string;
|
|
154
|
-
listIndex?: number;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
// @public (undocumented)
|
|
158
|
-
export interface SlotHeightProps extends SlotProps {
|
|
159
|
-
height?: number;
|
|
160
|
-
shouldPersistHeight?: boolean;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// @public (undocumented)
|
|
164
|
-
interface SlotProps {
|
|
165
|
-
children: ReactNode;
|
|
166
|
-
// (undocumented)
|
|
167
|
-
id?: string;
|
|
168
|
-
isFixed?: boolean;
|
|
169
|
-
// (undocumented)
|
|
170
|
-
skipLinkTitle?: string;
|
|
171
|
-
testId?: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// @public (undocumented)
|
|
175
|
-
export interface SlotWidthProps extends SlotProps {
|
|
176
|
-
shouldPersistWidth?: boolean;
|
|
177
|
-
width?: number;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// @public (undocumented)
|
|
181
|
-
export const TOP_NAVIGATION_HEIGHT: string;
|
|
182
|
-
|
|
183
|
-
// @public
|
|
184
|
-
export const TopNavigation: (props: SlotHeightProps) => jsx.JSX.Element;
|
|
185
|
-
|
|
186
|
-
// @public (undocumented)
|
|
187
|
-
export const useCustomSkipLink: (
|
|
188
|
-
id: SkipLinkData['id'],
|
|
189
|
-
skipLinkTitle: SkipLinkData['skipLinkTitle'],
|
|
190
|
-
listIndex?: SkipLinkData['listIndex'],
|
|
191
|
-
) => void;
|
|
192
|
-
|
|
193
|
-
// @public
|
|
194
|
-
export const useLeftSidebarFlyoutLock: () => void;
|
|
195
|
-
|
|
196
|
-
// @public (undocumented)
|
|
197
|
-
export const usePageLayoutResize: () => {
|
|
198
|
-
isLeftSidebarCollapsed: boolean;
|
|
199
|
-
expandLeftSidebar: () => void;
|
|
200
|
-
collapseLeftSidebar: (
|
|
201
|
-
event?: KeyboardEvent_2 | MouseEvent_2,
|
|
202
|
-
collapseWithoutTransition?: boolean,
|
|
203
|
-
) => void;
|
|
204
|
-
toggleLeftSidebar: (
|
|
205
|
-
event?: KeyboardEvent_2 | MouseEvent_2,
|
|
206
|
-
collapseWithoutTransition?: boolean,
|
|
207
|
-
) => void;
|
|
208
|
-
leftSidebarState: LeftSidebarState;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
// (No @packageDocumentation comment for this package)
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
<!--SECTION END: Main Entry Types-->
|
|
215
|
-
|
|
216
|
-
### Peer Dependencies
|
|
217
|
-
|
|
218
|
-
<!--SECTION START: Peer Dependencies-->
|
|
219
|
-
|
|
220
|
-
```json
|
|
221
|
-
{
|
|
222
|
-
"react": "^16.8.0",
|
|
223
|
-
"react-dom": "^16.8.0"
|
|
224
|
-
}
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
<!--SECTION END: Peer Dependencies-->
|