@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 +7 -0
- package/dist/components/keypad/button.d.ts +1 -2
- package/dist/components/keypad/button.js.flow +1 -2
- package/dist/components/keypad/keypad-page-items.d.ts +1 -2
- package/dist/components/keypad/keypad-page-items.js.flow +1 -2
- package/dist/es/index.js +1 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/gesture-state-machine.js +1 -1
- package/src/components/keypad/button.tsx +1 -3
- package/src/components/keypad/keypad-page-items.tsx +1 -3
- package/src/fake-react-native-web/view.tsx +0 -1
- package/tsconfig.tsbuildinfo +1 -1
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:
|
|
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:
|
|
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):
|
|
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;
|