@atlaskit/page-header 11.1.0 → 12.0.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,35 @@
1
1
  # @atlaskit/page-header
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 11.2.0
22
+
23
+ ### Minor Changes
24
+
25
+ - [#116138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116138)
26
+ [`b50c5d5d65ae2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b50c5d5d65ae2) -
27
+ Bump to the latest version of @compiled/react
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 11.1.0
4
34
 
5
35
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  ._11c81p5s{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)}
2
- ._18s87y2j{margin:var(--_1j0v6uy)}
3
2
  ._12ji1r31{outline-color:currentColor}
3
+ ._12l2idpf{margin-inline-end:0}
4
4
  ._12y31o36{outline-width:medium}
5
5
  ._16jlidpf{flex-grow:0}
6
6
  ._16jlkb7n{flex-grow:1}
@@ -12,14 +12,17 @@
12
12
  ._1n261q9c{flex-wrap:nowrap}
13
13
  ._1o9zidpf{flex-shrink:0}
14
14
  ._1o9zkb7n{flex-shrink:1}
15
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
15
16
  ._1pfhidpf{margin-block-start:0}
16
17
  ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
17
18
  ._1qu2glyw{outline-style:none}
18
19
  ._1reo15vq{overflow-x:hidden}
19
20
  ._1ul9idpf{min-width:0}
20
21
  ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
21
23
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
22
24
  ._ahbq1wug{margin-inline-start:auto}
25
+ ._ahbqidpf{margin-inline-start:0}
23
26
  ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
24
27
  ._i0dl1wug{flex-basis:auto}
25
28
  ._o5721q9c{white-space:nowrap}
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
3
  // This rule is here as prop name changes are a major as they are used
4
4
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -37,10 +37,7 @@ var titleContainerTruncateStyles = null;
37
37
  var OuterWrapper = exports.OuterWrapper = function OuterWrapper(_ref) {
38
38
  var children = _ref.children;
39
39
  return /*#__PURE__*/_react.default.createElement("div", {
40
- className: (0, _runtime.ax)(["_18s87y2j"]),
41
- style: {
42
- "--_1j0v6uy": (0, _runtime.ix)("var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"))
43
- }
40
+ className: (0, _runtime.ax)(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
44
41
  }, children);
45
42
  };
46
43
  /**
@@ -1,6 +1,6 @@
1
1
  ._11c81p5s{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)}
2
- ._18s81d9c{margin:var(--ds-space-300,24px) 0 var(--ds-space-200,1pc) 0}
3
2
  ._12ji1r31{outline-color:currentColor}
3
+ ._12l2idpf{margin-inline-end:0}
4
4
  ._12y31o36{outline-width:medium}
5
5
  ._16jlidpf{flex-grow:0}
6
6
  ._16jlkb7n{flex-grow:1}
@@ -12,14 +12,17 @@
12
12
  ._1n261q9c{flex-wrap:nowrap}
13
13
  ._1o9zidpf{flex-shrink:0}
14
14
  ._1o9zkb7n{flex-shrink:1}
15
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
15
16
  ._1pfhidpf{margin-block-start:0}
16
17
  ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
17
18
  ._1qu2glyw{outline-style:none}
18
19
  ._1reo15vq{overflow-x:hidden}
19
20
  ._1ul9idpf{min-width:0}
20
21
  ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
21
23
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
22
24
  ._ahbq1wug{margin-inline-start:auto}
25
+ ._ahbqidpf{margin-inline-start:0}
23
26
  ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
24
27
  ._i0dl1wug{flex-basis:auto}
25
28
  ._o5721q9c{white-space:nowrap}
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
3
  // This rule is here as prop name changes are a major as they are used
4
4
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -31,7 +31,7 @@ export const OuterWrapper = ({
31
31
  children
32
32
  }) => {
33
33
  return /*#__PURE__*/React.createElement("div", {
34
- className: ax(["_18s81d9c"])
34
+ className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
35
35
  }, children);
36
36
  };
37
37
  /**
@@ -1,6 +1,6 @@
1
1
  ._11c81p5s{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)}
2
- ._18s87y2j{margin:var(--_1j0v6uy)}
3
2
  ._12ji1r31{outline-color:currentColor}
3
+ ._12l2idpf{margin-inline-end:0}
4
4
  ._12y31o36{outline-width:medium}
5
5
  ._16jlidpf{flex-grow:0}
6
6
  ._16jlkb7n{flex-grow:1}
@@ -12,14 +12,17 @@
12
12
  ._1n261q9c{flex-wrap:nowrap}
13
13
  ._1o9zidpf{flex-shrink:0}
14
14
  ._1o9zkb7n{flex-shrink:1}
15
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
15
16
  ._1pfhidpf{margin-block-start:0}
16
17
  ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
17
18
  ._1qu2glyw{outline-style:none}
18
19
  ._1reo15vq{overflow-x:hidden}
19
20
  ._1ul9idpf{min-width:0}
20
21
  ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
21
23
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
22
24
  ._ahbq1wug{margin-inline-start:auto}
25
+ ._ahbqidpf{margin-inline-start:0}
23
26
  ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
24
27
  ._i0dl1wug{flex-basis:auto}
25
28
  ._o5721q9c{white-space:nowrap}
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
3
  // This rule is here as prop name changes are a major as they are used
4
4
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -30,10 +30,7 @@ var titleContainerTruncateStyles = null;
30
30
  export var OuterWrapper = function OuterWrapper(_ref) {
31
31
  var children = _ref.children;
32
32
  return /*#__PURE__*/React.createElement("div", {
33
- className: ax(["_18s87y2j"]),
34
- style: {
35
- "--_1j0v6uy": ix("var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"))
36
- }
33
+ className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
37
34
  }, children);
38
35
  };
39
36
  /**
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type ReactNode } from 'react';
1
+ import React, { type ReactElement, type ReactNode } from 'react';
2
2
  export type PageHeaderProps = {
3
3
  /**
4
4
  * Contents of the action bar to be rendered next to the page title.
@@ -47,5 +47,5 @@ export type PageHeaderProps = {
47
47
  * - [Code](https://atlassian.design/components/page-header/code)
48
48
  * - [Usage](https://atlassian.design/components/page-header/usage)
49
49
  */
50
- declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => JSX.Element;
50
+ declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => React.JSX.Element;
51
51
  export default PageHeader;
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type ReactNode } from 'react';
1
+ import React, { type ReactElement, type ReactNode } from 'react';
2
2
  export type PageHeaderProps = {
3
3
  /**
4
4
  * Contents of the action bar to be rendered next to the page title.
@@ -47,5 +47,5 @@ export type PageHeaderProps = {
47
47
  * - [Code](https://atlassian.design/components/page-header/code)
48
48
  * - [Usage](https://atlassian.design/components/page-header/usage)
49
49
  */
50
- declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => JSX.Element;
50
+ declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => React.JSX.Element;
51
51
  export default PageHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "11.1.0",
3
+ "version": "12.0.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/"
@@ -25,25 +25,25 @@
25
25
  "runReact18": true
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/css": "^0.8.0",
29
- "@atlaskit/primitives": "^13.4.0",
30
- "@atlaskit/tokens": "^3.3.0",
28
+ "@atlaskit/css": "^0.10.0",
29
+ "@atlaskit/primitives": "^14.0.0",
30
+ "@atlaskit/tokens": "^4.0.0",
31
31
  "@babel/runtime": "^7.0.0",
32
- "@compiled/react": "^0.18.1"
32
+ "@compiled/react": "^0.18.2"
33
33
  },
34
34
  "peerDependencies": {
35
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
36
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
35
+ "react": "^18.2.0",
36
+ "react-dom": "^18.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@af/accessibility-testing": "*",
40
40
  "@af/integration-testing": "*",
41
41
  "@af/visual-regression": "*",
42
- "@atlaskit/breadcrumbs": "^14.1.0",
43
- "@atlaskit/ds-lib": "^3.5.0",
44
- "@atlaskit/page": "^12.7.0",
42
+ "@atlaskit/breadcrumbs": "^15.0.0",
43
+ "@atlaskit/ds-lib": "^4.0.0",
44
+ "@atlaskit/page": "^13.0.0",
45
45
  "@atlaskit/ssr": "*",
46
- "@atlaskit/textfield": "^6.8.0",
46
+ "@atlaskit/textfield": "^8.0.0",
47
47
  "@atlaskit/visual-regression": "*",
48
48
  "@testing-library/react": "^13.4.0",
49
49
  "react-dom": "^18.2.0",