@atlaskit/page 12.7.0 → 13.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,27 @@
1
1
  # @atlaskit/page
2
2
 
3
+ ## 13.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
+ ## 12.7.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [#114324](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114324)
22
+ [`991ad9cd7e777`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/991ad9cd7e777) -
23
+ Update dependencies and remove unused exports.
24
+
3
25
  ## 12.7.0
4
26
 
5
27
  ### Minor Changes
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.varGridSpacing = exports.varColumnsNum = exports.varColumnSpan = exports.spacingMapping = exports.defaultSpacing = exports.defaultMedium = exports.defaultLayout = exports.defaultGridSize = exports.defaultGridColumns = exports.defaultGridColumnWidth = exports.defaultBannerHeight = void 0;
7
- var defaultGridSize = exports.defaultGridSize = 8;
6
+ exports.varGridSpacing = exports.varColumnsNum = exports.varColumnSpan = exports.spacingMapping = exports.defaultSpacing = exports.defaultMedium = exports.defaultLayout = exports.defaultGridColumns = exports.defaultGridColumnWidth = exports.defaultBannerHeight = void 0;
7
+ var defaultGridSize = 8;
8
8
  var defaultGridColumns = exports.defaultGridColumns = 12;
9
9
  var defaultGridColumnWidth = exports.defaultGridColumnWidth = defaultGridSize * 10;
10
10
  var spacingMapping = exports.spacingMapping = {
@@ -1,4 +1,4 @@
1
- export const defaultGridSize = 8;
1
+ const defaultGridSize = 8;
2
2
  export const defaultGridColumns = 12;
3
3
  export const defaultGridColumnWidth = defaultGridSize * 10;
4
4
  export const spacingMapping = {
@@ -1,4 +1,4 @@
1
- export var defaultGridSize = 8;
1
+ var defaultGridSize = 8;
2
2
  export var defaultGridColumns = 12;
3
3
  export var defaultGridColumnWidth = defaultGridSize * 10;
4
4
  export var spacingMapping = {
@@ -1,4 +1,3 @@
1
- export declare const defaultGridSize = 8;
2
1
  export declare const defaultGridColumns = 12;
3
2
  export declare const defaultGridColumnWidth: number;
4
3
  export declare const spacingMapping: {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type GridSpacing } from './types';
3
- export type GridContextProps = {
3
+ type GridContextProps = {
4
4
  isRoot: boolean;
5
5
  isNested: boolean;
6
6
  spacing: GridSpacing;
@@ -15,3 +15,4 @@ export type GridContextProps = {
15
15
  * @internal
16
16
  */
17
17
  export declare const GridContext: import("react").Context<GridContextProps>;
18
+ export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { GridProps } from './types';
3
3
  /**
4
4
  * __Grid__
@@ -7,5 +7,5 @@ import type { GridProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/page)
9
9
  */
10
- declare const GridWrapper: ({ spacing: spacingProp, columns: columnsProp, layout, testId, children, theme, }: GridProps) => JSX.Element;
10
+ declare const GridWrapper: ({ spacing: spacingProp, columns: columnsProp, layout, testId, children, theme, }: GridProps) => React.JSX.Element;
11
11
  export default GridWrapper;
@@ -1,4 +1,3 @@
1
- export declare const defaultGridSize = 8;
2
1
  export declare const defaultGridColumns = 12;
3
2
  export declare const defaultGridColumnWidth: number;
4
3
  export declare const spacingMapping: {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type GridSpacing } from './types';
3
- export type GridContextProps = {
3
+ type GridContextProps = {
4
4
  isRoot: boolean;
5
5
  isNested: boolean;
6
6
  spacing: GridSpacing;
@@ -15,3 +15,4 @@ export type GridContextProps = {
15
15
  * @internal
16
16
  */
17
17
  export declare const GridContext: import("react").Context<GridContextProps>;
18
+ export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { GridProps } from './types';
3
3
  /**
4
4
  * __Grid__
@@ -7,5 +7,5 @@ import type { GridProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/page)
9
9
  */
10
- declare const GridWrapper: ({ spacing: spacingProp, columns: columnsProp, layout, testId, children, theme, }: GridProps) => JSX.Element;
10
+ declare const GridWrapper: ({ spacing: spacingProp, columns: columnsProp, layout, testId, children, theme, }: GridProps) => React.JSX.Element;
11
11
  export default GridWrapper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page",
3
- "version": "12.7.0",
3
+ "version": "13.0.0",
4
4
  "description": "A page layout organizes sections on a page using a grid and grid columns.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,17 +55,24 @@
55
55
  "@emotion/react": "^11.7.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
58
+ "react": "^18.2.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@af/accessibility-testing": "*",
62
62
  "@af/integration-testing": "*",
63
- "@atlaskit/ds-lib": "^3.5.0",
63
+ "@atlaskit/banner": "^13.0.0",
64
+ "@atlaskit/code": "^16.0.0",
65
+ "@atlaskit/docs": "*",
66
+ "@atlaskit/ds-lib": "^4.0.0",
67
+ "@atlaskit/icon": "^24.0.0",
68
+ "@atlaskit/link": "^3.0.0",
69
+ "@atlaskit/primitives": "^14.0.0",
70
+ "@atlaskit/section-message": "*",
64
71
  "@atlaskit/ssr": "*",
72
+ "@atlaskit/tokens": "^4.0.0",
65
73
  "@atlaskit/visual-regression": "*",
66
74
  "@testing-library/react": "^13.4.0",
67
75
  "react-dom": "^18.2.0",
68
- "react-lorem-component": "^0.13.0",
69
76
  "typescript": "~5.4.2"
70
77
  },
71
78
  "keywords": [