@khanacademy/math-input 8.0.0 → 8.1.1
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 +19 -0
- package/dist/components/keypad/keypad.d.ts +1 -1
- package/dist/components/keypad/keypad.js.flow +1 -1
- package/dist/es/index.js +3 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/dist/index.js.flow +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/keypad/keypad.tsx +3 -3
- package/src/full-math-input.stories.tsx +2 -2
- package/src/index.ts +4 -2
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @khanacademy/math-input
|
|
2
2
|
|
|
3
|
+
## 8.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [57f75510]
|
|
8
|
+
- @khanacademy/perseus-core@0.1.1
|
|
9
|
+
|
|
10
|
+
## 8.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 5611204a: Adds back the export of the unwrapped keypad for Khanmigo
|
|
15
|
+
- b4430dce: Make sendEvent in the Keypad an optional param
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [b4c06409]
|
|
20
|
+
- @khanacademy/perseus-core@0.1.0
|
|
21
|
+
|
|
3
22
|
## 8.0.0
|
|
4
23
|
|
|
5
24
|
### Major Changes
|
|
@@ -15,7 +15,7 @@ export type Props = {
|
|
|
15
15
|
basicRelations?: boolean;
|
|
16
16
|
advancedRelations?: boolean;
|
|
17
17
|
onClickKey: ClickKeyCallback;
|
|
18
|
-
sendEvent
|
|
18
|
+
sendEvent?: SendEventFn;
|
|
19
19
|
};
|
|
20
20
|
declare function Keypad(props: Props): JSX.Element;
|
|
21
21
|
declare namespace Keypad {
|
package/dist/es/index.js
CHANGED
|
@@ -4159,7 +4159,7 @@ function Keypad$2(props) {
|
|
|
4159
4159
|
} = props;
|
|
4160
4160
|
useEffect(() => {
|
|
4161
4161
|
if (!isMounted) {
|
|
4162
|
-
sendEvent({
|
|
4162
|
+
sendEvent == null ? void 0 : sendEvent({
|
|
4163
4163
|
type: "math-input:keypad-opened",
|
|
4164
4164
|
payload: {
|
|
4165
4165
|
virtualKeypadVersion: "MATH_INPUT_KEYPAD_V2"
|
|
@@ -4169,7 +4169,7 @@ function Keypad$2(props) {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
return () => {
|
|
4171
4171
|
if (isMounted) {
|
|
4172
|
-
sendEvent({
|
|
4172
|
+
sendEvent == null ? void 0 : sendEvent({
|
|
4173
4173
|
type: "math-input:keypad-closed",
|
|
4174
4174
|
payload: {
|
|
4175
4175
|
virtualKeypadVersion: "MATH_INPUT_KEYPAD_V2"
|
|
@@ -8845,5 +8845,5 @@ const keypadElementPropType = PropTypes.shape({
|
|
|
8845
8845
|
getDOMNode: PropTypes.func.isRequired
|
|
8846
8846
|
});
|
|
8847
8847
|
|
|
8848
|
-
export { CursorContext,
|
|
8848
|
+
export { CursorContext, Keypad$2 as DesktopKeypad, KeyConfigs, context as KeypadContext, MathInput as KeypadInput, KeypadType, KeypadSwitch as MobileKeypad, createMathField, getCursorContext, keyToMathquillMap as keyTranslator, keypadElementPropType, mathQuillInstance };
|
|
8849
8849
|
//# sourceMappingURL=index.js.map
|