@atlaskit/page-layout 5.2.7 → 5.4.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 +3 -3
- package/dist/cjs/components/skip-links/skip-link.js +1 -1
- package/dist/es2019/components/resize-control/grab-area.js +2 -2
- package/dist/es2019/components/skip-links/skip-link.js +1 -1
- package/dist/esm/components/resize-control/grab-area.js +2 -2
- package/dist/esm/components/skip-links/skip-link.js +1 -1
- package/package.json +16 -43
- package/page-layout.docs.tsx +0 -50
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d82e6f76528ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82e6f76528ab) -
|
|
8
|
+
Add direct subpath package exports as part of the linking-platform, search, media, and
|
|
9
|
+
design-system barrel-removal (de-barrel) migration.
|
|
10
|
+
|
|
11
|
+
These packages now expose their individual modules via explicit `package.json` `exports` subpaths
|
|
12
|
+
so that consumers can import directly from the leaf module (e.g. `@atlaskit/pkg/thing`) instead of
|
|
13
|
+
the package barrel/index. This adds new public entry points without changing or removing any
|
|
14
|
+
existing exports, so it is a backwards-compatible additive change.
|
|
15
|
+
|
|
16
|
+
No runtime behaviour changes; this is an API-surface (entry-point) addition to support
|
|
17
|
+
tree-shaking and to unblock removal of the barrel index files.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
23
|
+
## 5.3.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [`0075efb228821`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0075efb228821) -
|
|
28
|
+
Autofix: barrel removal (imports + exports)
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
3
34
|
## 5.2.7
|
|
4
35
|
|
|
5
36
|
### Patch 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
|
/**
|
|
@@ -59,7 +59,7 @@ var lineStyles = (0, _react2.css)({
|
|
|
59
59
|
transition: 'background-color 200ms'
|
|
60
60
|
});
|
|
61
61
|
var lineMotionStyles = (0, _react2.css)({
|
|
62
|
-
transition: "var(--ds-button-hovered, background-color 150ms cubic-bezier(0.4, 1, 0.6, 1))"
|
|
62
|
+
transition: "var(--ds-button-hovered, background-color border-color 150ms cubic-bezier(0.4, 1, 0.6, 1))"
|
|
63
63
|
});
|
|
64
64
|
var grabAreaLineSelector = (0, _defineProperty2.default)({}, _constants.GRAB_AREA_LINE_SELECTOR, true);
|
|
65
65
|
var grabAreaSelector = (0, _defineProperty2.default)({}, _constants.GRAB_AREA_SELECTOR, true);
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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.
|
|
@@ -49,7 +49,7 @@ const lineStyles = css({
|
|
|
49
49
|
transition: 'background-color 200ms'
|
|
50
50
|
});
|
|
51
51
|
const lineMotionStyles = css({
|
|
52
|
-
transition: "var(--ds-button-hovered, background-color 150ms cubic-bezier(0.4, 1, 0.6, 1))"
|
|
52
|
+
transition: "var(--ds-button-hovered, background-color border-color 150ms cubic-bezier(0.4, 1, 0.6, 1))"
|
|
53
53
|
});
|
|
54
54
|
const grabAreaLineSelector = {
|
|
55
55
|
[GRAB_AREA_LINE_SELECTOR]: true
|
|
@@ -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
|
});
|
|
@@ -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.
|
|
@@ -50,7 +50,7 @@ var lineStyles = css({
|
|
|
50
50
|
transition: 'background-color 200ms'
|
|
51
51
|
});
|
|
52
52
|
var lineMotionStyles = css({
|
|
53
|
-
transition: "var(--ds-button-hovered, background-color 150ms cubic-bezier(0.4, 1, 0.6, 1))"
|
|
53
|
+
transition: "var(--ds-button-hovered, background-color border-color 150ms cubic-bezier(0.4, 1, 0.6, 1))"
|
|
54
54
|
});
|
|
55
55
|
var grabAreaLineSelector = _defineProperty({}, GRAB_AREA_LINE_SELECTOR, true);
|
|
56
56
|
var grabAreaSelector = _defineProperty({}, GRAB_AREA_SELECTOR, true);
|
|
@@ -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
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.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.
|
|
40
|
+
"@atlaskit/icon": "^37.5.0",
|
|
41
|
+
"@atlaskit/link": "^5.1.0",
|
|
42
|
+
"@atlaskit/motion": "^8.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
44
|
-
"@atlaskit/primitives": "^22.
|
|
44
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^16.
|
|
46
|
+
"@atlaskit/tokens": "^16.8.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.
|
|
61
|
-
"@atlaskit/docs": "^12.
|
|
62
|
-
"@atlaskit/logo": "^21.
|
|
63
|
-
"@atlaskit/menu": "^10.
|
|
64
|
-
"@atlaskit/popup": "^6.
|
|
65
|
-
"@atlaskit/section-message": "^10.
|
|
66
|
-
"@atlaskit/side-navigation": "^
|
|
67
|
-
"@atlaskit/tooltip": "^24.
|
|
59
|
+
"@atlaskit/atlassian-navigation": "^6.3.0",
|
|
60
|
+
"@atlaskit/button": "^25.2.0",
|
|
61
|
+
"@atlaskit/docs": "^12.2.0",
|
|
62
|
+
"@atlaskit/logo": "^21.5.0",
|
|
63
|
+
"@atlaskit/menu": "^10.1.0",
|
|
64
|
+
"@atlaskit/popup": "^6.2.0",
|
|
65
|
+
"@atlaskit/section-message": "^10.1.0",
|
|
66
|
+
"@atlaskit/side-navigation": "^13.2.0",
|
|
67
|
+
"@atlaskit/tooltip": "^24.2.0",
|
|
68
68
|
"@atlassian/ssr-tests": "workspace:^",
|
|
69
69
|
"@testing-library/react": "^16.3.0",
|
|
70
70
|
"@types/raf-schd": "^4.0.1",
|
|
@@ -86,32 +86,5 @@
|
|
|
86
86
|
"atlaskit",
|
|
87
87
|
"react",
|
|
88
88
|
"ui"
|
|
89
|
-
]
|
|
90
|
-
"techstack": {
|
|
91
|
-
"@atlassian/frontend": {
|
|
92
|
-
"import-structure": "atlassian-conventions"
|
|
93
|
-
},
|
|
94
|
-
"@repo/internal": {
|
|
95
|
-
"dom-events": "use-bind-event-listener",
|
|
96
|
-
"design-system": "v1",
|
|
97
|
-
"ui-components": [
|
|
98
|
-
"lite-mode"
|
|
99
|
-
],
|
|
100
|
-
"analytics": [
|
|
101
|
-
"analytics-next"
|
|
102
|
-
],
|
|
103
|
-
"design-tokens": [
|
|
104
|
-
"color",
|
|
105
|
-
"spacing"
|
|
106
|
-
],
|
|
107
|
-
"theming": [
|
|
108
|
-
"react-context"
|
|
109
|
-
],
|
|
110
|
-
"deprecation": "no-deprecated-imports",
|
|
111
|
-
"styling": [
|
|
112
|
-
"emotion",
|
|
113
|
-
"static"
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
}
|
|
89
|
+
]
|
|
117
90
|
}
|
package/page-layout.docs.tsx
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structured MCP docs for `@atlaskit/page-layout`.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import path from 'path';
|
|
6
|
-
|
|
7
|
-
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
8
|
-
|
|
9
|
-
import packageJson from './package.json';
|
|
10
|
-
|
|
11
|
-
const packagePath = path.resolve(__dirname);
|
|
12
|
-
|
|
13
|
-
const documentation: StructuredContentSource = {
|
|
14
|
-
package: {
|
|
15
|
-
package: '@atlaskit/page-layout',
|
|
16
|
-
packagePath,
|
|
17
|
-
packageJson,
|
|
18
|
-
overview:
|
|
19
|
-
"A collection of components which let you compose an application's page layout. Note that this package is deprecated in favor of the new navigation system.",
|
|
20
|
-
},
|
|
21
|
-
components: [
|
|
22
|
-
{
|
|
23
|
-
name: 'PageLayout',
|
|
24
|
-
description: 'The main container for composing a page layout.',
|
|
25
|
-
status: 'deprecated',
|
|
26
|
-
import: {
|
|
27
|
-
name: 'PageLayout',
|
|
28
|
-
package: '@atlaskit/page-layout/page-layout',
|
|
29
|
-
type: 'named',
|
|
30
|
-
packagePath,
|
|
31
|
-
packageJson,
|
|
32
|
-
},
|
|
33
|
-
usageGuidelines: [
|
|
34
|
-
'Use `PageLayout` to define the overall structure of your page.',
|
|
35
|
-
'Consider migrating to the new navigation system for new implementations.',
|
|
36
|
-
],
|
|
37
|
-
keywords: ['layout', 'page', 'structure'],
|
|
38
|
-
categories: ['layout'],
|
|
39
|
-
examples: [
|
|
40
|
-
{
|
|
41
|
-
name: 'Basic page layout',
|
|
42
|
-
description: 'Basic usage of PageLayout.',
|
|
43
|
-
source: path.resolve(packagePath, './examples/01-basic-page-layout.tsx'),
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default documentation;
|