@khanacademy/perseus 6.0.0 → 6.1.0
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 +20 -0
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/mixins/provide-keypad.tsx +2 -2
- package/src/widgets/__stories__/test-keypad-context-wrapper.tsx +2 -2
- package/tsconfig-build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.1.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@khanacademy/kas": "^0.3.1",
|
|
25
25
|
"@khanacademy/kmath": "^0.1.1",
|
|
26
|
-
"@khanacademy/math-input": "^
|
|
26
|
+
"@khanacademy/math-input": "^3.0.0",
|
|
27
27
|
"@khanacademy/perseus-linter": "^0.3.1",
|
|
28
28
|
"@khanacademy/pure-markdown": "^0.2.3",
|
|
29
29
|
"@khanacademy/simple-markdown": "^0.9.3",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* extend a `ProvideKeypad` component instead of using this mixin.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {LegacyKeypad} from "@khanacademy/math-input";
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import ReactDOM from "react-dom";
|
|
@@ -90,7 +90,7 @@ const ProvideKeypad = {
|
|
|
90
90
|
document.body?.appendChild(_this._keypadContainer);
|
|
91
91
|
|
|
92
92
|
reactRender(
|
|
93
|
-
<
|
|
93
|
+
<LegacyKeypad
|
|
94
94
|
onElementMounted={(element) => {
|
|
95
95
|
// NOTE(kevinb): The reason why this setState works is
|
|
96
96
|
// b/c we're calling it manually from item-renderer.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {LegacyKeypad} from "@khanacademy/math-input";
|
|
2
2
|
import {View} from "@khanacademy/wonder-blocks-core";
|
|
3
3
|
import {StyleSheet} from "aphrodite";
|
|
4
4
|
import * as React from "react";
|
|
@@ -10,7 +10,7 @@ const Footer = (): React.ReactElement => {
|
|
|
10
10
|
<View style={styles.keypadContainer}>
|
|
11
11
|
<KeypadContext.Consumer>
|
|
12
12
|
{({keypadElement, setKeypadElement, renderer}) => (
|
|
13
|
-
<
|
|
13
|
+
<LegacyKeypad
|
|
14
14
|
onElementMounted={setKeypadElement}
|
|
15
15
|
onDismiss={() => renderer && renderer.blur()}
|
|
16
16
|
style={styles.keypad}
|