@atlaskit/page-header 10.4.10 → 10.6.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,22 @@
|
|
|
1
1
|
# @atlaskit/page-header
|
|
2
2
|
|
|
3
|
+
## 10.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#100748](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100748)
|
|
8
|
+
[`ff76f4c7a63d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ff76f4c7a63d) -
|
|
9
|
+
Add support for React 18.
|
|
10
|
+
|
|
11
|
+
## 10.5.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#100633](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100633)
|
|
16
|
+
[`9aeb04ba9d17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9aeb04ba9d17) -
|
|
17
|
+
[ux] We are testing a visual change behind a feature flag. The line height of the title changes.
|
|
18
|
+
If this change is successful it will be available in a later release.
|
|
19
|
+
|
|
3
20
|
## 10.4.10
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -5,8 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TitleWrapper = exports.TitleContainer = exports.StyledTitleWrapper = exports.OuterWrapper = exports.BottomBarWrapper = exports.ActionsWrapper = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _react2 = require("@emotion/react");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
12
|
var _primitives = require("@atlaskit/primitives");
|
|
11
13
|
var _typography = require("@atlaskit/theme/typography");
|
|
12
14
|
// TODO: Remove this eslint-disable when prop names have been renamed.
|
|
@@ -24,6 +26,13 @@ var truncateStyles = (0, _react2.css)({
|
|
|
24
26
|
var outerStyles = (0, _react2.css)({
|
|
25
27
|
margin: "var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0")
|
|
26
28
|
});
|
|
29
|
+
var titleStyles = (0, _react2.css)({
|
|
30
|
+
color: "var(--ds-text, #172B4D)",
|
|
31
|
+
font: "var(--ds-font-heading-large, normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
32
|
+
letterSpacing: 'normal',
|
|
33
|
+
marginBlockStart: 0,
|
|
34
|
+
outline: 'none'
|
|
35
|
+
});
|
|
27
36
|
var styledTitleStyles = (0, _react2.css)({
|
|
28
37
|
lineHeight: "var(--ds-font-lineHeight-500, 32px)",
|
|
29
38
|
marginBlockStart: 0,
|
|
@@ -90,7 +99,7 @@ var StyledTitleWrapper = exports.StyledTitleWrapper = /*#__PURE__*/_react.defaul
|
|
|
90
99
|
id = _ref2.id,
|
|
91
100
|
truncateTitle = _ref2.truncateTitle;
|
|
92
101
|
return (0, _react2.jsx)("h1", {
|
|
93
|
-
css: [h700Styles, styledTitleStyles, truncateTitle && truncateStyles],
|
|
102
|
+
css: [].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.page-header-tokenised-typography-styles_lj1ix') ? [titleStyles] : [h700Styles, styledTitleStyles]), [truncateTitle && truncateStyles]),
|
|
94
103
|
ref: ref,
|
|
95
104
|
tabIndex: -1,
|
|
96
105
|
id: id
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
11
12
|
import { h700 } from '@atlaskit/theme/typography';
|
|
12
13
|
const truncateStyles = css({
|
|
@@ -17,6 +18,13 @@ const truncateStyles = css({
|
|
|
17
18
|
const outerStyles = css({
|
|
18
19
|
margin: `${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-200, 16px)"} 0`
|
|
19
20
|
});
|
|
21
|
+
const titleStyles = css({
|
|
22
|
+
color: "var(--ds-text, #172B4D)",
|
|
23
|
+
font: "var(--ds-font-heading-large, normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
24
|
+
letterSpacing: 'normal',
|
|
25
|
+
marginBlockStart: 0,
|
|
26
|
+
outline: 'none'
|
|
27
|
+
});
|
|
20
28
|
const styledTitleStyles = css({
|
|
21
29
|
lineHeight: "var(--ds-font-lineHeight-500, 32px)",
|
|
22
30
|
marginBlockStart: 0,
|
|
@@ -85,7 +93,7 @@ export const StyledTitleWrapper = /*#__PURE__*/React.forwardRef(({
|
|
|
85
93
|
truncateTitle
|
|
86
94
|
}, ref) => {
|
|
87
95
|
return jsx("h1", {
|
|
88
|
-
css: [h700Styles, styledTitleStyles, truncateTitle && truncateStyles],
|
|
96
|
+
css: [...(getBooleanFF('platform.design-system-team.page-header-tokenised-typography-styles_lj1ix') ? [titleStyles] : [h700Styles, styledTitleStyles]), truncateTitle && truncateStyles],
|
|
89
97
|
ref: ref,
|
|
90
98
|
tabIndex: -1,
|
|
91
99
|
id: id
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
1
2
|
// TODO: Remove this eslint-disable when prop names have been renamed.
|
|
2
3
|
// This rule is here as prop name changes are a major as they are used
|
|
3
4
|
// by our consumers. The prop name concerned here is truncateTitle.
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
|
|
8
9
|
import React from 'react';
|
|
9
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
11
13
|
import { h700 } from '@atlaskit/theme/typography';
|
|
12
14
|
var truncateStyles = css({
|
|
@@ -17,6 +19,13 @@ var truncateStyles = css({
|
|
|
17
19
|
var outerStyles = css({
|
|
18
20
|
margin: "var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0")
|
|
19
21
|
});
|
|
22
|
+
var titleStyles = css({
|
|
23
|
+
color: "var(--ds-text, #172B4D)",
|
|
24
|
+
font: "var(--ds-font-heading-large, normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
25
|
+
letterSpacing: 'normal',
|
|
26
|
+
marginBlockStart: 0,
|
|
27
|
+
outline: 'none'
|
|
28
|
+
});
|
|
20
29
|
var styledTitleStyles = css({
|
|
21
30
|
lineHeight: "var(--ds-font-lineHeight-500, 32px)",
|
|
22
31
|
marginBlockStart: 0,
|
|
@@ -83,7 +92,7 @@ export var StyledTitleWrapper = /*#__PURE__*/React.forwardRef(function (_ref2, r
|
|
|
83
92
|
id = _ref2.id,
|
|
84
93
|
truncateTitle = _ref2.truncateTitle;
|
|
85
94
|
return jsx("h1", {
|
|
86
|
-
css: [h700Styles, styledTitleStyles, truncateTitle && truncateStyles],
|
|
95
|
+
css: [].concat(_toConsumableArray(getBooleanFF('platform.design-system-team.page-header-tokenised-typography-styles_lj1ix') ? [titleStyles] : [h700Styles, styledTitleStyles]), [truncateTitle && truncateStyles]),
|
|
87
96
|
ref: ref,
|
|
88
97
|
tabIndex: -1,
|
|
89
98
|
id: id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-header",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "A page header defines the top of a page. It contains a title and can be optionally combined with breadcrumbs buttons, search, and filters.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,26 +23,29 @@
|
|
|
23
23
|
"website": {
|
|
24
24
|
"name": "Page header",
|
|
25
25
|
"category": "Components"
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"runReact18": true
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@atlaskit/
|
|
30
|
-
"@atlaskit/
|
|
31
|
-
"@atlaskit/
|
|
30
|
+
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
31
|
+
"@atlaskit/primitives": "^6.2.0",
|
|
32
|
+
"@atlaskit/theme": "^12.8.0",
|
|
33
|
+
"@atlaskit/tokens": "^1.48.0",
|
|
32
34
|
"@babel/runtime": "^7.0.0",
|
|
33
35
|
"@emotion/react": "^11.7.1"
|
|
34
36
|
},
|
|
35
37
|
"peerDependencies": {
|
|
36
|
-
"react": "^16.8.0",
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
37
39
|
"react-dom": "^16.8.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
42
|
"@af/accessibility-testing": "*",
|
|
41
43
|
"@af/visual-regression": "*",
|
|
42
|
-
"@atlaskit/breadcrumbs": "^12.
|
|
44
|
+
"@atlaskit/breadcrumbs": "^12.1.0",
|
|
43
45
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
44
|
-
"@atlaskit/page": "^12.
|
|
46
|
+
"@atlaskit/page": "^12.4.0",
|
|
45
47
|
"@atlaskit/ssr": "*",
|
|
48
|
+
"@atlaskit/textfield": "^6.3.0",
|
|
46
49
|
"@atlaskit/visual-regression": "*",
|
|
47
50
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
48
51
|
"@testing-library/react": "^12.1.5",
|
|
@@ -89,5 +92,10 @@
|
|
|
89
92
|
"af:exports": {
|
|
90
93
|
".": "./src/index.tsx"
|
|
91
94
|
},
|
|
92
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
95
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
96
|
+
"platform-feature-flags": {
|
|
97
|
+
"platform.design-system-team.page-header-tokenised-typography-styles_lj1ix": {
|
|
98
|
+
"type": "boolean"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
93
101
|
}
|