@khanacademy/wonder-blocks-toolbar 3.0.4 → 3.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,20 @@
1
1
  # @khanacademy/wonder-blocks-toolbar
2
2
 
3
+ ## 3.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
+ - @khanacademy/wonder-blocks-typography@2.0.6
11
+
12
+ ## 3.0.5
13
+
14
+ ### Patch Changes
15
+
16
+ - @khanacademy/wonder-blocks-typography@2.0.5
17
+
3
18
  ## 3.0.4
4
19
 
5
20
  ### Patch Changes
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Flowtype definitions for toolbar
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 } from "@khanacademy/wonder-blocks-core";
10
9
  declare type Props = {|
package/dist/es/index.js CHANGED
@@ -5,27 +5,8 @@ import { View } from '@khanacademy/wonder-blocks-core';
5
5
  import Spacing from '@khanacademy/wonder-blocks-spacing';
6
6
  import { LabelSmall, LabelLarge, HeadingSmall } from '@khanacademy/wonder-blocks-typography';
7
7
 
8
- function _setPrototypeOf(o, p) {
9
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
10
- o.__proto__ = p;
11
- return o;
12
- };
13
- return _setPrototypeOf(o, p);
14
- }
15
-
16
- function _inheritsLoose(subClass, superClass) {
17
- subClass.prototype = Object.create(superClass.prototype);
18
- subClass.prototype.constructor = subClass;
19
- _setPrototypeOf(subClass, superClass);
20
- }
21
-
22
- let Toolbar = function (_React$Component) {
23
- _inheritsLoose(Toolbar, _React$Component);
24
- function Toolbar() {
25
- return _React$Component.apply(this, arguments) || this;
26
- }
27
- var _proto = Toolbar.prototype;
28
- _proto.render = function render() {
8
+ class Toolbar extends React.Component {
9
+ render() {
29
10
  const {
30
11
  color,
31
12
  leftContent,
@@ -50,9 +31,8 @@ let Toolbar = function (_React$Component) {
50
31
  }, subtitle))), React.createElement(View, {
51
32
  style: [sharedStyles.column, sharedStyles.rightColumn, title ? sharedStyles.withTitle : null]
52
33
  }, rightContent));
53
- };
54
- return Toolbar;
55
- }(React.Component);
34
+ }
35
+ }
56
36
  Toolbar.defaultProps = {
57
37
  color: "light",
58
38
  leftContent: null,
package/dist/index.js CHANGED
@@ -10,48 +10,29 @@ var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
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
  var Spacing__default = /*#__PURE__*/_interopDefaultLegacy(Spacing);
33
33
 
34
- function _setPrototypeOf(o, p) {
35
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
36
- o.__proto__ = p;
37
- return o;
38
- };
39
- return _setPrototypeOf(o, p);
40
- }
41
-
42
- function _inheritsLoose(subClass, superClass) {
43
- subClass.prototype = Object.create(superClass.prototype);
44
- subClass.prototype.constructor = subClass;
45
- _setPrototypeOf(subClass, superClass);
46
- }
47
-
48
- let Toolbar = function (_React$Component) {
49
- _inheritsLoose(Toolbar, _React$Component);
50
- function Toolbar() {
51
- return _React$Component.apply(this, arguments) || this;
52
- }
53
- var _proto = Toolbar.prototype;
54
- _proto.render = function render() {
34
+ class Toolbar extends React__namespace.Component {
35
+ render() {
55
36
  const {
56
37
  color,
57
38
  leftContent,
@@ -76,9 +57,8 @@ let Toolbar = function (_React$Component) {
76
57
  }, subtitle))), React__namespace.createElement(wonderBlocksCore.View, {
77
58
  style: [sharedStyles.column, sharedStyles.rightColumn, title ? sharedStyles.withTitle : null]
78
59
  }, rightContent));
79
- };
80
- return Toolbar;
81
- }(React__namespace.Component);
60
+ }
61
+ }
82
62
  Toolbar.defaultProps = {
83
63
  color: "light",
84
64
  leftContent: null,
@@ -1,9 +1,8 @@
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
  import Toolbar from "./components/toolbar";
9
8
  declare export { Toolbar as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-toolbar",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,15 +17,15 @@
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
  "@khanacademy/wonder-blocks-spacing": "^4.0.1",
22
- "@khanacademy/wonder-blocks-typography": "^2.0.4"
22
+ "@khanacademy/wonder-blocks-typography": "^2.0.6"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "aphrodite": "^1.2.5",
26
26
  "react": "16.14.0"
27
27
  },
28
28
  "devDependencies": {
29
- "wb-dev-build-settings": "^0.9.3"
29
+ "wb-dev-build-settings": "^0.9.5"
30
30
  }
31
31
  }