@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/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export { createMathField, mathQuillInstance, } from "./components/input/mathquil
|
|
|
7
7
|
export { type MathFieldInterface } from "./components/input/mathquill-types";
|
|
8
8
|
export { CursorContext } from "./components/input/cursor-contexts";
|
|
9
9
|
export { getCursorContext } from "./components/input/mathquill-helpers";
|
|
10
|
-
export { default as
|
|
10
|
+
export { default as MobileKeypad } from "./components/keypad-switch";
|
|
11
|
+
export { default as DesktopKeypad } from "./components/keypad";
|
|
11
12
|
export { default as KeypadContext } from "./components/keypad-context";
|
|
12
13
|
export { keypadElementPropType } from "./components/prop-types";
|
|
13
14
|
export type { default as Keys } from "./data/keys";
|
package/dist/index.js
CHANGED
|
@@ -4454,7 +4454,7 @@ function Keypad$2(props) {
|
|
|
4454
4454
|
} = props;
|
|
4455
4455
|
React.useEffect(() => {
|
|
4456
4456
|
if (!isMounted) {
|
|
4457
|
-
sendEvent({
|
|
4457
|
+
sendEvent === null || sendEvent === void 0 ? void 0 : sendEvent({
|
|
4458
4458
|
type: "math-input:keypad-opened",
|
|
4459
4459
|
payload: {
|
|
4460
4460
|
virtualKeypadVersion: "MATH_INPUT_KEYPAD_V2"
|
|
@@ -4464,7 +4464,7 @@ function Keypad$2(props) {
|
|
|
4464
4464
|
}
|
|
4465
4465
|
return () => {
|
|
4466
4466
|
if (isMounted) {
|
|
4467
|
-
sendEvent({
|
|
4467
|
+
sendEvent === null || sendEvent === void 0 ? void 0 : sendEvent({
|
|
4468
4468
|
type: "math-input:keypad-closed",
|
|
4469
4469
|
payload: {
|
|
4470
4470
|
virtualKeypadVersion: "MATH_INPUT_KEYPAD_V2"
|
|
@@ -9044,11 +9044,12 @@ const keypadElementPropType = PropTypes__default["default"].shape({
|
|
|
9044
9044
|
});
|
|
9045
9045
|
|
|
9046
9046
|
exports.CursorContext = CursorContext;
|
|
9047
|
+
exports.DesktopKeypad = Keypad$2;
|
|
9047
9048
|
exports.KeyConfigs = KeyConfigs;
|
|
9048
|
-
exports.Keypad = KeypadSwitch;
|
|
9049
9049
|
exports.KeypadContext = context;
|
|
9050
9050
|
exports.KeypadInput = MathInput;
|
|
9051
9051
|
exports.KeypadType = KeypadType;
|
|
9052
|
+
exports.MobileKeypad = KeypadSwitch;
|
|
9052
9053
|
exports.createMathField = createMathField;
|
|
9053
9054
|
exports.getCursorContext = getCursorContext;
|
|
9054
9055
|
exports.keyTranslator = keyToMathquillMap;
|
package/dist/index.js.flow
CHANGED
|
@@ -13,7 +13,8 @@ declare export {
|
|
|
13
13
|
export type { MathFieldInterface } from "./components/input/mathquill-types";
|
|
14
14
|
declare export { CursorContext } from "./components/input/cursor-contexts";
|
|
15
15
|
declare export { getCursorContext } from "./components/input/mathquill-helpers";
|
|
16
|
-
declare export { default as
|
|
16
|
+
declare export { default as MobileKeypad } from "./components/keypad-switch";
|
|
17
|
+
declare export { default as DesktopKeypad } from "./components/keypad";
|
|
17
18
|
declare export { default as KeypadContext } from "./components/keypad-context";
|
|
18
19
|
declare export { keypadElementPropType } from "./components/prop-types";
|
|
19
20
|
export type { default as Keys } from "./data/keys";
|