@khanacademy/math-input 0.7.1 → 0.7.2

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,9 +1,16 @@
1
1
  # @khanacademy/math-input
2
2
 
3
+ ## 0.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e8d85cd: Fix imported React types in a couple of files
8
+
3
9
  ## 0.7.1
4
10
 
5
11
  ### Patch Changes
6
12
 
13
+ - 1f062e98: Bump all package versions since the build settings have been updated
7
14
  - 406edf6b: Extract strings to dist/string.js instead of dist/strings.
8
15
 
9
16
  ## 0.7.0
@@ -1,9 +1,8 @@
1
1
  import * as React from "react";
2
2
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
3
- import type { Node } from "React";
4
3
  type Props = {
5
4
  onPress: () => void;
6
- children: Node;
5
+ children: React.ReactNode;
7
6
  style?: StyleType;
8
7
  tintColor?: string;
9
8
  };
@@ -6,10 +6,9 @@
6
6
  */
7
7
  import * as React from "react";
8
8
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
9
- import type { Node } from "React";
10
9
  declare type Props = {|
11
10
  onPress: () => void,
12
- children: Node,
11
+ children: React.Node,
13
12
  style?: StyleType,
14
13
  tintColor?: string,
15
14
  |};
@@ -1,9 +1,8 @@
1
1
  import * as React from "react";
2
2
  import type { KeyConfig } from "../../data/key-configs";
3
3
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
4
- import type { Node } from "React";
5
4
  export declare const KeypadPageContainer: React.FC<{
6
- children: Node;
5
+ children: React.ReactNode;
7
6
  }>;
8
7
  export declare const KeypadButton: React.FC<{
9
8
  keyConfig: KeyConfig;
@@ -7,9 +7,8 @@
7
7
  import * as React from "react";
8
8
  import type { KeyConfig } from "../../data/key-configs";
9
9
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
10
- import type { Node } from "React";
11
10
  declare export var KeypadPageContainer: React.StatelessFunctionalComponent<{|
12
- children: Node,
11
+ children: React.Node,
13
12
  |}>;
14
13
  declare export var KeypadButton: React.StatelessFunctionalComponent<{|
15
14
  keyConfig: KeyConfig,
package/dist/es/index.js CHANGED
@@ -136,8 +136,6 @@ const styles$f = StyleSheet.create({
136
136
  });
137
137
 
138
138
  class View extends React.Component {
139
- // $FlowFixMe[signature-verification-failure]
140
-
141
139
  render() {
142
140
  const className = css(View.styles.initial, ...(Array.isArray(this.props.style) ? this.props.style : [this.props.style])) + (this.props.extraClassName ? ` ${this.props.extraClassName}` : "");
143
141
  return /*#__PURE__*/React.createElement("div", {
@@ -2698,7 +2696,7 @@ class GestureStateMachine {
2698
2696
  this.swipeDisabledNodeIds = swipeDisabledNodeIds || [];
2699
2697
  this.multiPressableKeys = multiPressableKeys || [];
2700
2698
 
2701
- // TODO(charlie): Flow-type this file. It's not great that we're now
2699
+ // TODO(charlie): Add types for this file. It's not great that we're now
2702
2700
  // passing around these opaque state objects.
2703
2701
  this.touchState = {};
2704
2702
  this.swipeState = null;