@atlaskit/page-layout 2.0.0 → 2.0.1
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 +6 -0
- package/__perf__/utils/product-integration/atlassian-navigation.tsx +11 -4
- package/dist/cjs/components/resize-control/index.js +5 -2
- package/dist/es2019/components/resize-control/index.js +5 -2
- package/dist/esm/components/resize-control/index.js +5 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#58110](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58110) [`9e7a86f76af4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9e7a86f76af4) - Resizing the Sidebar can now only be triggered via left-click (main button click). This prevents situations where right-clicking the resize button unexpectedly starts resizing the Sidebar.
|
|
8
|
+
|
|
3
9
|
## 2.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -19,6 +19,13 @@ import { HelpPopup } from './help-popup';
|
|
|
19
19
|
import { NotificationsPopup } from './notifications-popup';
|
|
20
20
|
import { ProfilePopup } from './profile-popup';
|
|
21
21
|
|
|
22
|
+
const drawerLabelText = {
|
|
23
|
+
search: 'Search drawer',
|
|
24
|
+
settings: 'Settings drawer',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const { search, settings } = drawerLabelText;
|
|
28
|
+
|
|
22
29
|
const ProductHomeExample = () => (
|
|
23
30
|
<ProductHome icon={JiraIcon} logo={JiraLogo} siteTitle="Extranet" />
|
|
24
31
|
);
|
|
@@ -43,8 +50,8 @@ const SearchDrawer = () => {
|
|
|
43
50
|
tooltip="Search"
|
|
44
51
|
label="Search"
|
|
45
52
|
/>
|
|
46
|
-
<Drawer isOpen={isOpen} onClose={onClose}>
|
|
47
|
-
<div>search
|
|
53
|
+
<Drawer label={search} isOpen={isOpen} onClose={onClose}>
|
|
54
|
+
<div>{search}</div>
|
|
48
55
|
</Drawer>
|
|
49
56
|
</Fragment>
|
|
50
57
|
);
|
|
@@ -64,8 +71,8 @@ const SettingsDrawer = () => {
|
|
|
64
71
|
return (
|
|
65
72
|
<Fragment>
|
|
66
73
|
<Settings isSelected={isOpen} onClick={onClick} tooltip="Settings" />
|
|
67
|
-
<Drawer isOpen={isOpen} onClose={onClose}>
|
|
68
|
-
settings
|
|
74
|
+
<Drawer label={settings} isOpen={isOpen} onClose={onClose}>
|
|
75
|
+
{settings}
|
|
69
76
|
</Drawer>
|
|
70
77
|
</Fragment>
|
|
71
78
|
);
|
|
@@ -104,8 +104,11 @@ var ResizeControl = function ResizeControl(_ref) {
|
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
//
|
|
108
|
-
//
|
|
107
|
+
// Only allow left (primary) clicks to trigger resize as we've received
|
|
108
|
+
// bug reports about right click unexpectedly beginning a resize.
|
|
109
|
+
if (event.button !== 0) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
109
112
|
|
|
110
113
|
// It is possible for a mousedown to fire during a resize
|
|
111
114
|
// Example: the user presses another pointer button while dragging
|
|
@@ -96,8 +96,11 @@ const ResizeControl = ({
|
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
//
|
|
100
|
-
//
|
|
99
|
+
// Only allow left (primary) clicks to trigger resize as we've received
|
|
100
|
+
// bug reports about right click unexpectedly beginning a resize.
|
|
101
|
+
if (event.button !== 0) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
101
104
|
|
|
102
105
|
// It is possible for a mousedown to fire during a resize
|
|
103
106
|
// Example: the user presses another pointer button while dragging
|
|
@@ -100,8 +100,11 @@ var ResizeControl = function ResizeControl(_ref) {
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
//
|
|
104
|
-
//
|
|
103
|
+
// Only allow left (primary) clicks to trigger resize as we've received
|
|
104
|
+
// bug reports about right click unexpectedly beginning a resize.
|
|
105
|
+
if (event.button !== 0) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
105
108
|
|
|
106
109
|
// It is possible for a mousedown to fire during a resize
|
|
107
110
|
// Example: the user presses another pointer button while dragging
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/icon": "^22.0.0",
|
|
41
41
|
"@atlaskit/motion": "^1.5.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
43
|
-
"@atlaskit/primitives": "^1.
|
|
43
|
+
"@atlaskit/primitives": "^1.13.0",
|
|
44
44
|
"@atlaskit/theme": "^12.6.0",
|
|
45
45
|
"@atlaskit/tokens": "^1.29.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@af/accessibility-testing": "*",
|
|
57
|
-
"@
|
|
57
|
+
"@af/integration-testing": "*",
|
|
58
|
+
"@atlaskit/atlassian-navigation": "^2.10.0",
|
|
58
59
|
"@atlaskit/atlassian-notifications": "^0.4.0",
|
|
59
60
|
"@atlaskit/drawer": "^7.6.0",
|
|
60
61
|
"@atlaskit/logo": "^13.14.0",
|