@khanacademy/wonder-blocks-progress-spinner 2.0.4 → 2.0.6

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,15 @@
1
1
  # @khanacademy/wonder-blocks-progress-spinner
2
2
 
3
+ ## 2.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - c20f48f3: Don't transpile classes when building bundles
8
+ - Updated dependencies [c20f48f3]
9
+ - @khanacademy/wonder-blocks-core@5.0.4
10
+
11
+ ## 2.0.5
12
+
3
13
  ## 2.0.4
4
14
 
5
15
  ## 2.0.3
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Flowtype definitions for circular-spinner
2
+ * Flowtype definitions for data
3
3
  * Generated by Flowgen from a Typescript Definition
4
4
  * Flowgen v1.21.0
5
5
  * @flow
6
6
  */
7
-
8
7
  import * as React from "react";
9
8
  import type { AriaProps, StyleType } from "@khanacademy/wonder-blocks-core";
10
9
  declare type Props = {|
package/dist/es/index.js CHANGED
@@ -3,20 +3,6 @@ import { StyleSheet } from 'aphrodite';
3
3
  import { addStyle, View } from '@khanacademy/wonder-blocks-core';
4
4
  import Color from '@khanacademy/wonder-blocks-color';
5
5
 
6
- function _setPrototypeOf(o, p) {
7
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
8
- o.__proto__ = p;
9
- return o;
10
- };
11
- return _setPrototypeOf(o, p);
12
- }
13
-
14
- function _inheritsLoose(subClass, superClass) {
15
- subClass.prototype = Object.create(superClass.prototype);
16
- subClass.prototype.constructor = subClass;
17
- _setPrototypeOf(subClass, superClass);
18
- }
19
-
20
6
  const heights = {
21
7
  xsmall: 16,
22
8
  small: 24,
@@ -34,13 +20,8 @@ const colors = {
34
20
  dark: Color.offBlack16
35
21
  };
36
22
  const StyledPath = addStyle("path");
37
- let CircularSpinner = function (_React$Component) {
38
- _inheritsLoose(CircularSpinner, _React$Component);
39
- function CircularSpinner() {
40
- return _React$Component.apply(this, arguments) || this;
41
- }
42
- var _proto = CircularSpinner.prototype;
43
- _proto.render = function render() {
23
+ class CircularSpinner extends React.Component {
24
+ render() {
44
25
  const {
45
26
  size,
46
27
  light,
@@ -66,9 +47,8 @@ let CircularSpinner = function (_React$Component) {
66
47
  return React.createElement(View, {
67
48
  style: [styles.spinnerContainer, style]
68
49
  }, svg);
69
- };
70
- return CircularSpinner;
71
- }(React.Component);
50
+ }
51
+ }
72
52
  CircularSpinner.defaultProps = {
73
53
  size: "large",
74
54
  light: false
package/dist/index.js CHANGED
@@ -10,40 +10,26 @@ var Color = require('@khanacademy/wonder-blocks-color');
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
12
12
  function _interopNamespace(e) {
13
- if (e && e.__esModule) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
13
+ if (e && e.__esModule) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
22
+ });
23
+ }
22
24
  });
23
- }
24
- });
25
- }
26
- n["default"] = e;
27
- return Object.freeze(n);
25
+ }
26
+ n["default"] = e;
27
+ return Object.freeze(n);
28
28
  }
29
29
 
30
30
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
31
31
  var Color__default = /*#__PURE__*/_interopDefaultLegacy(Color);
32
32
 
33
- function _setPrototypeOf(o, p) {
34
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
35
- o.__proto__ = p;
36
- return o;
37
- };
38
- return _setPrototypeOf(o, p);
39
- }
40
-
41
- function _inheritsLoose(subClass, superClass) {
42
- subClass.prototype = Object.create(superClass.prototype);
43
- subClass.prototype.constructor = subClass;
44
- _setPrototypeOf(subClass, superClass);
45
- }
46
-
47
33
  const heights = {
48
34
  xsmall: 16,
49
35
  small: 24,
@@ -61,13 +47,8 @@ const colors = {
61
47
  dark: Color__default["default"].offBlack16
62
48
  };
63
49
  const StyledPath = wonderBlocksCore.addStyle("path");
64
- let CircularSpinner = function (_React$Component) {
65
- _inheritsLoose(CircularSpinner, _React$Component);
66
- function CircularSpinner() {
67
- return _React$Component.apply(this, arguments) || this;
68
- }
69
- var _proto = CircularSpinner.prototype;
70
- _proto.render = function render() {
50
+ class CircularSpinner extends React__namespace.Component {
51
+ render() {
71
52
  const {
72
53
  size,
73
54
  light,
@@ -93,9 +74,8 @@ let CircularSpinner = function (_React$Component) {
93
74
  return React__namespace.createElement(wonderBlocksCore.View, {
94
75
  style: [styles.spinnerContainer, style]
95
76
  }, svg);
96
- };
97
- return CircularSpinner;
98
- }(React__namespace.Component);
77
+ }
78
+ }
99
79
  CircularSpinner.defaultProps = {
100
80
  size: "large",
101
81
  light: false
@@ -1,8 +1,7 @@
1
1
  /**
2
- * Flowtype definitions for index
2
+ * Flowtype definitions for data
3
3
  * Generated by Flowgen from a Typescript Definition
4
4
  * Flowgen v1.21.0
5
5
  * @flow
6
6
  */
7
-
8
7
  declare export { default as CircularSpinner } from "./components/circular-spinner";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-progress-spinner",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,13 +17,13 @@
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.18.6",
19
19
  "@khanacademy/wonder-blocks-color": "^2.0.1",
20
- "@khanacademy/wonder-blocks-core": "^5.0.3"
20
+ "@khanacademy/wonder-blocks-core": "^5.0.4"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "aphrodite": "^1.2.5",
24
24
  "react": "16.14.0"
25
25
  },
26
26
  "devDependencies": {
27
- "wb-dev-build-settings": "^0.9.3"
27
+ "wb-dev-build-settings": "^0.9.5"
28
28
  }
29
29
  }