@cloudflare/component-callout 3.3.153 → 4.0.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/es/Callout.js CHANGED
@@ -3,11 +3,12 @@ import PropTypes from 'prop-types';
3
3
  import { isDarkMode } from '@cloudflare/style-const';
4
4
  import { createComponent, createStyledComponent } from '@cloudflare/style-container';
5
5
 
6
- const styles = ({
7
- theme,
8
- type = 'default'
9
- }) => {
10
- const darkMode = isDarkMode();
6
+ var styles = _ref => {
7
+ var {
8
+ theme,
9
+ type = 'default'
10
+ } = _ref;
11
+ var darkMode = isDarkMode();
11
12
  return {
12
13
  m: 3,
13
14
  p: 3,
@@ -19,7 +20,7 @@ const styles = ({
19
20
  };
20
21
  };
21
22
 
22
- const Content = createComponent(() => ({
23
+ var Content = createComponent(() => ({
23
24
  marginTop: 0
24
25
  }), 'p');
25
26
 
package/lib/Callout.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -21,17 +21,21 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
21
21
 
22
22
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
23
 
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
+
30
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
31
 
30
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
31
33
 
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
35
 
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
36
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
+
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
39
 
36
40
  var styles = function styles(_ref) {
37
41
  var theme = _ref.theme,
@@ -58,10 +62,12 @@ var Content = (0, _styleContainer.createComponent)(function () {
58
62
  var Callout = /*#__PURE__*/function (_React$Component) {
59
63
  _inherits(Callout, _React$Component);
60
64
 
65
+ var _super = _createSuper(Callout);
66
+
61
67
  function Callout() {
62
68
  _classCallCheck(this, Callout);
63
69
 
64
- return _possibleConstructorReturn(this, _getPrototypeOf(Callout).apply(this, arguments));
70
+ return _super.apply(this, arguments);
65
71
  }
66
72
 
67
73
  _createClass(Callout, [{
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@cloudflare/component-callout",
3
3
  "description": "Cloudflare Callout Component",
4
- "version": "3.3.153",
4
+ "version": "4.0.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
8
8
  "license": "BSD-3-Clause",
9
9
  "publishConfig": {
10
- "registry": "https://registry.npmjs.org/",
11
- "access": "public"
10
+ "access": "public",
11
+ "main": "lib/index.js",
12
+ "module": "es/index.js"
12
13
  },
13
14
  "dependencies": {
14
- "@cloudflare/style-const": "^5.3.6",
15
- "@cloudflare/style-container": "^7.8.38",
16
15
  "prop-types": "^15.6.0"
17
16
  },
18
17
  "peerDependencies": {
18
+ "@cloudflare/style-const": "^5.3.9",
19
+ "@cloudflare/style-container": "^7.9.0",
19
20
  "react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
20
21
  },
21
22
  "stratus": {
@@ -28,6 +29,5 @@
28
29
  "test": "stratus test",
29
30
  "test-coverage": "stratus test --coverage",
30
31
  "test-watch": "stratus test --watch"
31
- },
32
- "gitHead": "fd568260124f90e08ef5706d924418b4bd9e4a1d"
33
- }
32
+ }
33
+ }