@atlaskit/mobile-header 7.0.6 → 7.0.8

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,19 @@
1
1
  # @atlaskit/mobile-header
2
2
 
3
+ ## 7.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#127971](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127971)
14
+ [`b3619e45f49f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3619e45f49f0) -
15
+ removed enzyme dependency
16
+
3
17
  ## 7.0.6
4
18
 
5
19
  ### Patch Changes
@@ -95,7 +95,8 @@ var MobileHeader = /*#__PURE__*/function (_PureComponent) {
95
95
  topOffset: topOffset
96
96
  }, menu, /*#__PURE__*/_react.default.createElement(styles.PageHeading, null, this.props.pageHeading), this.props.secondaryContent)), this.renderSlider(isNavigationOpen, isAnimatingNavigation, this.handleNavSlideFinish, 'left', this.props.navigation, topOffset), this.renderSlider(isSidebarOpen, isAnimatingSidebar, this.handleSidebarSlideFinish, 'right', this.props.sidebar, topOffset), (isNavigationOpen || isSidebarOpen || isAnimatingNavigation || isAnimatingSidebar) && /*#__PURE__*/_react.default.createElement(styles.FakeBlanket, {
97
97
  isOpen: isNavigationOpen || isSidebarOpen,
98
- onClick: this.props.onDrawerClose
98
+ onClick: this.props.onDrawerClose,
99
+ "data-testid": "fake-blanket"
99
100
  }));
100
101
  }
101
102
  }]);
@@ -67,7 +67,8 @@ class MobileHeader extends PureComponent {
67
67
  topOffset: topOffset
68
68
  }, menu, /*#__PURE__*/React.createElement(styles.PageHeading, null, this.props.pageHeading), this.props.secondaryContent)), this.renderSlider(isNavigationOpen, isAnimatingNavigation, this.handleNavSlideFinish, 'left', this.props.navigation, topOffset), this.renderSlider(isSidebarOpen, isAnimatingSidebar, this.handleSidebarSlideFinish, 'right', this.props.sidebar, topOffset), (isNavigationOpen || isSidebarOpen || isAnimatingNavigation || isAnimatingSidebar) && /*#__PURE__*/React.createElement(styles.FakeBlanket, {
69
69
  isOpen: isNavigationOpen || isSidebarOpen,
70
- onClick: this.props.onDrawerClose
70
+ onClick: this.props.onDrawerClose,
71
+ "data-testid": "fake-blanket"
71
72
  }));
72
73
  }
73
74
  }
@@ -85,7 +85,8 @@ var MobileHeader = /*#__PURE__*/function (_PureComponent) {
85
85
  topOffset: topOffset
86
86
  }, menu, /*#__PURE__*/React.createElement(styles.PageHeading, null, this.props.pageHeading), this.props.secondaryContent)), this.renderSlider(isNavigationOpen, isAnimatingNavigation, this.handleNavSlideFinish, 'left', this.props.navigation, topOffset), this.renderSlider(isSidebarOpen, isAnimatingSidebar, this.handleSidebarSlideFinish, 'right', this.props.sidebar, topOffset), (isNavigationOpen || isSidebarOpen || isAnimatingNavigation || isAnimatingSidebar) && /*#__PURE__*/React.createElement(styles.FakeBlanket, {
87
87
  isOpen: isNavigationOpen || isSidebarOpen,
88
- onClick: this.props.onDrawerClose
88
+ onClick: this.props.onDrawerClose,
89
+ "data-testid": "fake-blanket"
89
90
  }));
90
91
  }
91
92
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "7.0.6",
3
+ "version": "7.0.8",
4
4
  "description": "A React component rendering a mobile header",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,10 +32,10 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/button": "^21.1.0",
36
- "@atlaskit/icon": "^25.0.0",
35
+ "@atlaskit/button": "^22.0.0",
36
+ "@atlaskit/icon": "^25.2.0",
37
37
  "@atlaskit/theme": "^18.0.0",
38
- "@atlaskit/tokens": "^4.4.0",
38
+ "@atlaskit/tokens": "^4.5.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "@emotion/styled": "^11.0.0"
41
41
  },
@@ -44,7 +44,8 @@
44
44
  "react": "^18.2.0"
45
45
  },
46
46
  "devDependencies": {
47
- "enzyme": "^3.10.0",
47
+ "@testing-library/react": "^13.4.0",
48
+ "@testing-library/user-event": "^14.4.3",
48
49
  "react-dom": "^18.2.0",
49
50
  "react-test-renderer": "^18.2.0",
50
51
  "typescript": "~5.4.2"