@atlaskit/page-layout 1.2.3 → 1.2.4

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,11 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ef9ecf15b36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef9ecf15b36) - Calling `collapseLeftSidebar` while the sidebar is already collapsed no longer modifies the sidebar state. This prevents an invalid state that could occur if `collapseLeftSidebar` was called while the sidebar was in flyout.
8
+
3
9
  ## 1.2.3
4
10
 
5
11
  ### Patch Changes
@@ -102,9 +102,10 @@ var SidebarResizeController = function SidebarResizeController(_ref) {
102
102
  var leftSidebarWidth = leftSidebarState.leftSidebarWidth,
103
103
  isResizing = leftSidebarState.isResizing,
104
104
  flyoutLockCount = leftSidebarState.flyoutLockCount,
105
- isFixed = leftSidebarState.isFixed;
105
+ isFixed = leftSidebarState.isFixed,
106
+ isLeftSidebarCollapsed = leftSidebarState.isLeftSidebarCollapsed;
106
107
 
107
- if (isResizing) {
108
+ if (isResizing || isLeftSidebarCollapsed) {
108
109
  return;
109
110
  } // data-attribute is used as a CSS selector to sync the hiding/showing
110
111
  // of the nav contents with expand/collapse animation
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -79,10 +79,11 @@ export const SidebarResizeController = ({
79
79
  leftSidebarWidth,
80
80
  isResizing,
81
81
  flyoutLockCount,
82
- isFixed
82
+ isFixed,
83
+ isLeftSidebarCollapsed
83
84
  } = leftSidebarState;
84
85
 
85
- if (isResizing) {
86
+ if (isResizing || isLeftSidebarCollapsed) {
86
87
  return;
87
88
  } // data-attribute is used as a CSS selector to sync the hiding/showing
88
89
  // of the nav contents with expand/collapse animation
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -82,9 +82,10 @@ export var SidebarResizeController = function SidebarResizeController(_ref) {
82
82
  var leftSidebarWidth = leftSidebarState.leftSidebarWidth,
83
83
  isResizing = leftSidebarState.isResizing,
84
84
  flyoutLockCount = leftSidebarState.flyoutLockCount,
85
- isFixed = leftSidebarState.isFixed;
85
+ isFixed = leftSidebarState.isFixed,
86
+ isLeftSidebarCollapsed = leftSidebarState.isLeftSidebarCollapsed;
86
87
 
87
- if (isResizing) {
88
+ if (isResizing || isLeftSidebarCollapsed) {
88
89
  return;
89
90
  } // data-attribute is used as a CSS selector to sync the hiding/showing
90
91
  // of the nav contents with expand/collapse animation
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
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/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "homepage": "https://atlassian.design/components/page-layout/",
26
26
  "dependencies": {
27
27
  "@atlaskit/icon": "^21.10.0",
28
- "@atlaskit/motion": "^1.0.0",
28
+ "@atlaskit/motion": "^1.1.0",
29
29
  "@atlaskit/theme": "^12.1.0",
30
30
  "@atlaskit/tokens": "^0.10.0",
31
31
  "@babel/runtime": "^7.0.0",
@@ -43,11 +43,11 @@
43
43
  "@atlaskit/docs": "*",
44
44
  "@atlaskit/drawer": "^7.1.0",
45
45
  "@atlaskit/icon": "*",
46
- "@atlaskit/logo": "^13.6.0",
46
+ "@atlaskit/logo": "^13.7.0",
47
47
  "@atlaskit/menu": "^1.3.0",
48
48
  "@atlaskit/notification-indicator": "^9.0.0",
49
49
  "@atlaskit/notification-log-client": "^6.0.0",
50
- "@atlaskit/onboarding": "^10.3.0",
50
+ "@atlaskit/onboarding": "^10.4.0",
51
51
  "@atlaskit/popup": "^1.3.0",
52
52
  "@atlaskit/section-message": "^6.0.0",
53
53
  "@atlaskit/side-navigation": "^1.2.0",