@cloudflare/component-page 9.1.5 → 9.2.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,18 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4902daa763: make documentation open in new tab in mobile even if its intended to be rendered in the side drawer on screen sizes larger than mobile
8
+
9
+ ## 9.1.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [35b41fdd48]
14
+ - @cloudflare/component-link@8.0.13
15
+
3
16
  ## 9.1.5
4
17
 
5
18
  ### Patch Changes
package/es/Page.js CHANGED
@@ -72,7 +72,7 @@ var PageHeader = _ref => {
72
72
  mb: documentationHref ? 2 : 3,
73
73
  lineHeight: 1.25,
74
74
  fontWeight: 400
75
- }, description), documentationAsButton ? /*#__PURE__*/React.createElement(Button, {
75
+ }, description), documentationAsButton && !isMobile ? /*#__PURE__*/React.createElement(Button, {
76
76
  type: "primary",
77
77
  borderRadius: '20vh',
78
78
  inverted: true,
package/lib/Page.js CHANGED
@@ -94,7 +94,7 @@ var PageHeader = function PageHeader(_ref) {
94
94
  mb: documentationHref ? 2 : 3,
95
95
  lineHeight: 1.25,
96
96
  fontWeight: 400
97
- }, description), documentationAsButton ? /*#__PURE__*/_react.default.createElement(_componentButton.Button, {
97
+ }, description), documentationAsButton && !isMobile ? /*#__PURE__*/_react.default.createElement(_componentButton.Button, {
98
98
  type: "primary",
99
99
  borderRadius: '20vh',
100
100
  inverted: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-page",
3
3
  "description": "Cloudflare Page Component",
4
- "version": "9.1.5",
4
+ "version": "9.2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@cloudflare/component-label": "^5.0.5",
17
- "@cloudflare/component-link": "^8.0.12",
17
+ "@cloudflare/component-link": "^8.0.13",
18
18
  "@cloudflare/elements": "^3.0.5",
19
19
  "@cloudflare/intl-react": "^1.9.80"
20
20
  },
package/src/Page.tsx CHANGED
@@ -112,7 +112,7 @@ const PageHeader = ({
112
112
  {description}
113
113
  </P>
114
114
  )}
115
- {documentationAsButton ? (
115
+ {documentationAsButton && !isMobile ? (
116
116
  <Button
117
117
  type="primary"
118
118
  borderRadius={'20vh'}