@khanacademy/math-input 22.3.0 → 23.0.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/dist/components/input/math-wrapper.d.ts +3 -3
- package/dist/components/input/mathquill-types.d.ts +2 -2
- package/dist/components/key-handlers/handle-arrow.d.ts +2 -2
- package/dist/components/key-handlers/handle-exponent.d.ts +2 -2
- package/dist/components/key-handlers/handle-jump-out.d.ts +2 -2
- package/dist/components/key-handlers/key-translator.d.ts +2 -2
- package/dist/components/keypad/button-assets.d.ts +2 -2
- package/dist/components/keypad/keypad-pages/extras-page.d.ts +2 -2
- package/dist/components/keypad/keypad.d.ts +2 -3
- package/dist/components/keypad/mobile-keypad-internals.d.ts +3 -4
- package/dist/data/key-configs.d.ts +2 -2
- package/dist/data/keys.d.ts +0 -3
- package/dist/enums.d.ts +0 -4
- package/dist/es/index.js +2 -24
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -25
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +5 -12
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -12,10 +12,7 @@ export { MobileKeypad } from "./components/keypad";
|
|
|
12
12
|
export { default as DesktopKeypad } from "./components/keypad";
|
|
13
13
|
export { MathInputI18nContextProvider, MathInputI18nContext, useMathInputI18n, } from "./components/i18n-context";
|
|
14
14
|
export { keypadElementPropType } from "./components/prop-types";
|
|
15
|
-
export type { KeypadAPI
|
|
15
|
+
export type { KeypadAPI } from "./types";
|
|
16
16
|
export { convertDotToTimesByLocale } from "./utils";
|
|
17
|
-
export type { default as Keys } from "./data/keys";
|
|
18
|
-
export { KeyArray } from "./data/keys";
|
|
19
17
|
export { default as KeyConfigs } from "./data/key-configs";
|
|
20
|
-
export { type KeyType, KeypadType } from "./enums";
|
|
21
18
|
export { getKeyTranslator } from "./components/key-handlers/key-translator";
|
package/dist/index.js
CHANGED
|
@@ -88,7 +88,7 @@ const addLibraryVersionToPerseusDebug = (libraryName, libraryVersion) => {
|
|
|
88
88
|
|
|
89
89
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
90
90
|
const libName = "@khanacademy/math-input";
|
|
91
|
-
const libVersion = "
|
|
91
|
+
const libVersion = "23.0.0";
|
|
92
92
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
93
93
|
|
|
94
94
|
class View extends React__namespace.Component {
|
|
@@ -6021,34 +6021,10 @@ const keypadElementPropType = PropTypes__default["default"].shape({
|
|
|
6021
6021
|
getDOMNode: PropTypes__default["default"].func.isRequired
|
|
6022
6022
|
});
|
|
6023
6023
|
|
|
6024
|
-
const KeyArray = ["PLUS", "MINUS", "NEGATIVE", "TIMES", "DIVIDE", "DECIMAL", "PERIOD", "PERCENT", "CDOT", "EQUAL", "NEQ", "GT", "LT", "GEQ", "LEQ",
|
|
6025
|
-
// mobile native only
|
|
6026
|
-
"FRAC_INCLUSIVE",
|
|
6027
|
-
// mobile native only
|
|
6028
|
-
"FRAC_EXCLUSIVE",
|
|
6029
|
-
// mobile native only
|
|
6030
|
-
"FRAC", "EXP", "EXP_2", "EXP_3", "SQRT", "CUBE_ROOT", "RADICAL", "LEFT_PAREN", "RIGHT_PAREN", "LN", "LOG", "LOG_N", "SIN", "COS",
|
|
6031
|
-
// TODO(charlie): Add in additional Greek letters.,
|
|
6032
|
-
"TAN", "PI", "THETA", "UP", "RIGHT", "DOWN", "LEFT", "BACKSPACE", "DISMISS", "JUMP_OUT_PARENTHESES", "JUMP_OUT_EXPONENT", "JUMP_OUT_BASE", "JUMP_INTO_NUMERATOR", "JUMP_OUT_NUMERATOR", "JUMP_OUT_DENOMINATOR",
|
|
6033
|
-
// Multi-functional keys.
|
|
6034
|
-
"NUM_0", "NUM_1", "NUM_2", "NUM_3", "NUM_4", "NUM_5", "NUM_6", "NUM_7", "NUM_8", "NUM_9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
|
|
6035
|
-
|
|
6036
|
-
/**
|
|
6037
|
-
* Constants that are shared between multiple files.
|
|
6038
|
-
*/
|
|
6039
|
-
|
|
6040
|
-
let KeypadType = /*#__PURE__*/function (KeypadType) {
|
|
6041
|
-
KeypadType["FRACTION"] = "FRACTION";
|
|
6042
|
-
KeypadType["EXPRESSION"] = "EXPRESSION";
|
|
6043
|
-
return KeypadType;
|
|
6044
|
-
}({});
|
|
6045
|
-
|
|
6046
6024
|
exports.CursorContext = CursorContext;
|
|
6047
6025
|
exports.DesktopKeypad = Keypad;
|
|
6048
|
-
exports.KeyArray = KeyArray;
|
|
6049
6026
|
exports.KeyConfigs = KeyConfigs;
|
|
6050
6027
|
exports.KeypadInput = MathInput;
|
|
6051
|
-
exports.KeypadType = KeypadType;
|
|
6052
6028
|
exports.MathInputI18nContext = MathInputI18nContext;
|
|
6053
6029
|
exports.MathInputI18nContextProvider = MathInputI18nContextProvider;
|
|
6054
6030
|
exports.MobileKeypad = MobileKeypad;
|