@khanacademy/wonder-blocks-icon 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-icon
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 icon
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
  import type { IconAsset, IconSize } from "../util/icon-assets";
package/dist/es/index.js CHANGED
@@ -30,20 +30,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
30
30
  return target;
31
31
  }
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 viewportPixelsForSize = size => ({
48
34
  small: 16,
49
35
  medium: 24,
@@ -79,13 +65,8 @@ const getPathForIcon = (icon, size) => {
79
65
 
80
66
  const _excluded = ["color", "icon", "size", "style", "testId"];
81
67
  const StyledSVG = addStyle("svg");
82
- let Icon = function (_React$PureComponent) {
83
- _inheritsLoose(Icon, _React$PureComponent);
84
- function Icon() {
85
- return _React$PureComponent.apply(this, arguments) || this;
86
- }
87
- var _proto = Icon.prototype;
88
- _proto.render = function render() {
68
+ class Icon extends React.PureComponent {
69
+ render() {
89
70
  const _this$props = this.props,
90
71
  {
91
72
  color,
@@ -111,9 +92,8 @@ let Icon = function (_React$PureComponent) {
111
92
  fill: color,
112
93
  d: path
113
94
  }));
114
- };
115
- return Icon;
116
- }(React.PureComponent);
95
+ }
96
+ }
117
97
  Icon.defaultProps = {
118
98
  color: "currentColor",
119
99
  size: "small"
package/dist/index.js CHANGED
@@ -54,20 +54,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
54
54
  return target;
55
55
  }
56
56
 
57
- function _setPrototypeOf(o, p) {
58
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
59
- o.__proto__ = p;
60
- return o;
61
- };
62
- return _setPrototypeOf(o, p);
63
- }
64
-
65
- function _inheritsLoose(subClass, superClass) {
66
- subClass.prototype = Object.create(superClass.prototype);
67
- subClass.prototype.constructor = subClass;
68
- _setPrototypeOf(subClass, superClass);
69
- }
70
-
71
57
  const viewportPixelsForSize = size => ({
72
58
  small: 16,
73
59
  medium: 24,
@@ -103,13 +89,8 @@ const getPathForIcon = (icon, size) => {
103
89
 
104
90
  const _excluded = ["color", "icon", "size", "style", "testId"];
105
91
  const StyledSVG = wonderBlocksCore.addStyle("svg");
106
- let Icon = function (_React$PureComponent) {
107
- _inheritsLoose(Icon, _React$PureComponent);
108
- function Icon() {
109
- return _React$PureComponent.apply(this, arguments) || this;
110
- }
111
- var _proto = Icon.prototype;
112
- _proto.render = function render() {
92
+ class Icon extends React__namespace.PureComponent {
93
+ render() {
113
94
  const _this$props = this.props,
114
95
  {
115
96
  color,
@@ -135,9 +116,8 @@ let Icon = function (_React$PureComponent) {
135
116
  fill: color,
136
117
  d: path
137
118
  }));
138
- };
139
- return Icon;
140
- }(React__namespace.PureComponent);
119
+ }
120
+ }
141
121
  Icon.defaultProps = {
142
122
  color: "currentColor",
143
123
  size: "small"
@@ -1,10 +1,9 @@
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 Icon from "./components/icon";
9
8
  import type { IconAsset, IconSize } from "./util/icon-assets";
10
9
  declare export * as icons from "./util/icon-assets";
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Flowtype definitions for icon-assets
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
  /**
9
8
  * The source SVG paths for our icons at various sizes
10
9
  */
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Flowtype definitions for icon-util
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 type { IconAsset, IconSize } from "./icon-assets";
9
8
 
10
9
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-icon",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,11 +16,11 @@
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.18.6",
19
- "@khanacademy/wonder-blocks-core": "^5.0.3"
19
+ "@khanacademy/wonder-blocks-core": "^5.0.4"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@khanacademy/wonder-stuff-core": "^1.2.2",
23
- "wb-dev-build-settings": "^0.9.3"
23
+ "wb-dev-build-settings": "^0.9.5"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "aphrodite": "^1.2.5",