@atlaskit/page-layout 2.1.0 → 2.1.2
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 +12 -0
- package/dist/types/common/types.d.ts +15 -15
- package/dist/types-ts4.5/common/types.d.ts +15 -15
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 2.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#69022](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69022) [`395c74147990`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/395c74147990) - Migrate packages to use declarative entry points
|
|
14
|
+
|
|
3
15
|
## 2.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -3,15 +3,15 @@ import { ResizeButtonProps } from '../components/resize-control/types';
|
|
|
3
3
|
import { LeftSidebarState } from '../controllers/sidebar-resize-context';
|
|
4
4
|
interface SlotProps {
|
|
5
5
|
/**
|
|
6
|
-
* Sets
|
|
6
|
+
* Sets the position to fixed.
|
|
7
7
|
*/
|
|
8
8
|
isFixed?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
10
|
+
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
|
|
11
11
|
*/
|
|
12
12
|
testId?: string;
|
|
13
13
|
/**
|
|
14
|
-
* React
|
|
14
|
+
* React children!
|
|
15
15
|
*/
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
id?: string;
|
|
@@ -19,21 +19,21 @@ interface SlotProps {
|
|
|
19
19
|
}
|
|
20
20
|
export interface SlotHeightProps extends SlotProps {
|
|
21
21
|
/**
|
|
22
|
-
* It
|
|
22
|
+
* It saves the height in local storage.
|
|
23
23
|
*/
|
|
24
24
|
shouldPersistHeight?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The height of the slot.
|
|
27
27
|
*/
|
|
28
28
|
height?: number;
|
|
29
29
|
}
|
|
30
30
|
export interface SlotWidthProps extends SlotProps {
|
|
31
31
|
/**
|
|
32
|
-
* It
|
|
32
|
+
* It saves the width in local storage.
|
|
33
33
|
*/
|
|
34
34
|
shouldPersistWidth?: boolean;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The width of the slot.
|
|
37
37
|
*/
|
|
38
38
|
width?: number;
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@ export interface LeftSidebarProps extends SlotWidthProps {
|
|
|
43
43
|
*/
|
|
44
44
|
testId?: string;
|
|
45
45
|
/**
|
|
46
|
-
* The `aria-valuetext` allows
|
|
46
|
+
* The `aria-valuetext` allows people relying on assistive technologies,
|
|
47
47
|
* particularly screen readers, to determine the purpose of the slider.
|
|
48
48
|
* The default value is "Width".
|
|
49
49
|
* The aria-valuenow property is automatically appended to the valueTextLabel.
|
|
@@ -63,7 +63,7 @@ export interface LeftSidebarProps extends SlotWidthProps {
|
|
|
63
63
|
*/
|
|
64
64
|
resizeGrabAreaLabel?: string;
|
|
65
65
|
/**
|
|
66
|
-
* Display label for expand/collapse button for the left sidebar.
|
|
66
|
+
* Display label for the expand/collapse button for the left sidebar.
|
|
67
67
|
*/
|
|
68
68
|
resizeButtonLabel?: string;
|
|
69
69
|
/**
|
|
@@ -75,19 +75,19 @@ export interface LeftSidebarProps extends SlotWidthProps {
|
|
|
75
75
|
*/
|
|
76
76
|
onResizeEnd?: (leftSidebarState: LeftSidebarState) => void;
|
|
77
77
|
/**
|
|
78
|
-
* Called when left-sidebar is collapsed and mouse leaves the area.
|
|
78
|
+
* Called when left-sidebar is collapsed and the mouse leaves the area.
|
|
79
79
|
*/
|
|
80
80
|
onFlyoutCollapse?: () => void;
|
|
81
81
|
/**
|
|
82
|
-
* Called after flyout delay when left-sidebar is collapsed and mouse enters the area.
|
|
82
|
+
* Called after flyout delay when left-sidebar is collapsed and the mouse enters the area.
|
|
83
83
|
*/
|
|
84
84
|
onFlyoutExpand?: () => void;
|
|
85
85
|
/**
|
|
86
|
-
* Controls whether the LeftSidebar mounts in a collapsed state, this will override the setting in localStorage
|
|
86
|
+
* Controls whether the LeftSidebar mounts in a collapsed state, this will override the setting in localStorage.
|
|
87
87
|
*/
|
|
88
88
|
collapsedState?: 'collapsed' | 'expanded';
|
|
89
89
|
/**
|
|
90
|
-
* Controls the width when LeftSidebar mounts, this will override the setting in localStorage
|
|
90
|
+
* Controls the width when LeftSidebar mounts, this will override the setting in localStorage.
|
|
91
91
|
*/
|
|
92
92
|
width?: number;
|
|
93
93
|
}
|
|
@@ -97,11 +97,11 @@ export type SidebarResizeControllerProps = {
|
|
|
97
97
|
*/
|
|
98
98
|
children: ReactNode;
|
|
99
99
|
/**
|
|
100
|
-
* Called when left-sidebar expanded.
|
|
100
|
+
* Called when left-sidebar is expanded.
|
|
101
101
|
*/
|
|
102
102
|
onLeftSidebarExpand?: (leftSidebarState: LeftSidebarState) => void;
|
|
103
103
|
/**
|
|
104
|
-
* Called when left-sidebar collapsed.
|
|
104
|
+
* Called when left-sidebar is collapsed.
|
|
105
105
|
*/
|
|
106
106
|
onLeftSidebarCollapse?: (leftSidebarState: LeftSidebarState) => void;
|
|
107
107
|
};
|
|
@@ -3,15 +3,15 @@ import { ResizeButtonProps } from '../components/resize-control/types';
|
|
|
3
3
|
import { LeftSidebarState } from '../controllers/sidebar-resize-context';
|
|
4
4
|
interface SlotProps {
|
|
5
5
|
/**
|
|
6
|
-
* Sets
|
|
6
|
+
* Sets the position to fixed.
|
|
7
7
|
*/
|
|
8
8
|
isFixed?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
10
|
+
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
|
|
11
11
|
*/
|
|
12
12
|
testId?: string;
|
|
13
13
|
/**
|
|
14
|
-
* React
|
|
14
|
+
* React children!
|
|
15
15
|
*/
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
id?: string;
|
|
@@ -19,21 +19,21 @@ interface SlotProps {
|
|
|
19
19
|
}
|
|
20
20
|
export interface SlotHeightProps extends SlotProps {
|
|
21
21
|
/**
|
|
22
|
-
* It
|
|
22
|
+
* It saves the height in local storage.
|
|
23
23
|
*/
|
|
24
24
|
shouldPersistHeight?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The height of the slot.
|
|
27
27
|
*/
|
|
28
28
|
height?: number;
|
|
29
29
|
}
|
|
30
30
|
export interface SlotWidthProps extends SlotProps {
|
|
31
31
|
/**
|
|
32
|
-
* It
|
|
32
|
+
* It saves the width in local storage.
|
|
33
33
|
*/
|
|
34
34
|
shouldPersistWidth?: boolean;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The width of the slot.
|
|
37
37
|
*/
|
|
38
38
|
width?: number;
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@ export interface LeftSidebarProps extends SlotWidthProps {
|
|
|
43
43
|
*/
|
|
44
44
|
testId?: string;
|
|
45
45
|
/**
|
|
46
|
-
* The `aria-valuetext` allows
|
|
46
|
+
* The `aria-valuetext` allows people relying on assistive technologies,
|
|
47
47
|
* particularly screen readers, to determine the purpose of the slider.
|
|
48
48
|
* The default value is "Width".
|
|
49
49
|
* The aria-valuenow property is automatically appended to the valueTextLabel.
|
|
@@ -63,7 +63,7 @@ export interface LeftSidebarProps extends SlotWidthProps {
|
|
|
63
63
|
*/
|
|
64
64
|
resizeGrabAreaLabel?: string;
|
|
65
65
|
/**
|
|
66
|
-
* Display label for expand/collapse button for the left sidebar.
|
|
66
|
+
* Display label for the expand/collapse button for the left sidebar.
|
|
67
67
|
*/
|
|
68
68
|
resizeButtonLabel?: string;
|
|
69
69
|
/**
|
|
@@ -75,19 +75,19 @@ export interface LeftSidebarProps extends SlotWidthProps {
|
|
|
75
75
|
*/
|
|
76
76
|
onResizeEnd?: (leftSidebarState: LeftSidebarState) => void;
|
|
77
77
|
/**
|
|
78
|
-
* Called when left-sidebar is collapsed and mouse leaves the area.
|
|
78
|
+
* Called when left-sidebar is collapsed and the mouse leaves the area.
|
|
79
79
|
*/
|
|
80
80
|
onFlyoutCollapse?: () => void;
|
|
81
81
|
/**
|
|
82
|
-
* Called after flyout delay when left-sidebar is collapsed and mouse enters the area.
|
|
82
|
+
* Called after flyout delay when left-sidebar is collapsed and the mouse enters the area.
|
|
83
83
|
*/
|
|
84
84
|
onFlyoutExpand?: () => void;
|
|
85
85
|
/**
|
|
86
|
-
* Controls whether the LeftSidebar mounts in a collapsed state, this will override the setting in localStorage
|
|
86
|
+
* Controls whether the LeftSidebar mounts in a collapsed state, this will override the setting in localStorage.
|
|
87
87
|
*/
|
|
88
88
|
collapsedState?: 'collapsed' | 'expanded';
|
|
89
89
|
/**
|
|
90
|
-
* Controls the width when LeftSidebar mounts, this will override the setting in localStorage
|
|
90
|
+
* Controls the width when LeftSidebar mounts, this will override the setting in localStorage.
|
|
91
91
|
*/
|
|
92
92
|
width?: number;
|
|
93
93
|
}
|
|
@@ -97,11 +97,11 @@ export type SidebarResizeControllerProps = {
|
|
|
97
97
|
*/
|
|
98
98
|
children: ReactNode;
|
|
99
99
|
/**
|
|
100
|
-
* Called when left-sidebar expanded.
|
|
100
|
+
* Called when left-sidebar is expanded.
|
|
101
101
|
*/
|
|
102
102
|
onLeftSidebarExpand?: (leftSidebarState: LeftSidebarState) => void;
|
|
103
103
|
/**
|
|
104
|
-
* Called when left-sidebar collapsed.
|
|
104
|
+
* Called when left-sidebar is collapsed.
|
|
105
105
|
*/
|
|
106
106
|
onLeftSidebarCollapse?: (leftSidebarState: LeftSidebarState) => void;
|
|
107
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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/"
|
|
@@ -22,9 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.tsx",
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.tsx"
|
|
27
|
+
},
|
|
25
28
|
"atlassian": {
|
|
26
29
|
"team": "Design System Team",
|
|
27
|
-
"deprecatedAutoEntryPoints": true,
|
|
28
30
|
"releaseModel": "continuous",
|
|
29
31
|
"productPushConsumption": [
|
|
30
32
|
"jira"
|
|
@@ -40,9 +42,9 @@
|
|
|
40
42
|
"@atlaskit/icon": "^22.0.0",
|
|
41
43
|
"@atlaskit/motion": "^1.5.0",
|
|
42
44
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
43
|
-
"@atlaskit/primitives": "^
|
|
45
|
+
"@atlaskit/primitives": "^2.0.0",
|
|
44
46
|
"@atlaskit/theme": "^12.6.0",
|
|
45
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.35.0",
|
|
46
48
|
"@babel/runtime": "^7.0.0",
|
|
47
49
|
"@emotion/react": "^11.7.1",
|
|
48
50
|
"bind-event-listener": "^2.1.1",
|
|
@@ -55,10 +57,10 @@
|
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"@af/accessibility-testing": "*",
|
|
57
59
|
"@af/integration-testing": "*",
|
|
58
|
-
"@atlaskit/atlassian-navigation": "^3.
|
|
60
|
+
"@atlaskit/atlassian-navigation": "^3.1.0",
|
|
59
61
|
"@atlaskit/atlassian-notifications": "^0.4.0",
|
|
60
62
|
"@atlaskit/drawer": "^7.6.0",
|
|
61
|
-
"@atlaskit/logo": "^13.
|
|
63
|
+
"@atlaskit/logo": "^13.15.0",
|
|
62
64
|
"@atlaskit/menu": "^2.1.0",
|
|
63
65
|
"@atlaskit/notification-indicator": "^9.1.0",
|
|
64
66
|
"@atlaskit/notification-log-client": "^6.1.0",
|