@khanacademy/math-input 14.0.1 → 14.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 +13 -0
- package/dist/data/keys.d.ts +2 -1
- package/dist/es/index.js +21 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/data/keys.ts +118 -115
- package/src/index.ts +1 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { KeypadContext, StatefulKeypadContextProvider, } from "./components/keyp
|
|
|
14
14
|
export { keypadElementPropType } from "./components/prop-types";
|
|
15
15
|
export type { KeypadAPI, KeypadConfiguration } from "./types";
|
|
16
16
|
export type { default as Keys } from "./data/keys";
|
|
17
|
+
export { KeyArray } from "./data/keys";
|
|
17
18
|
export { default as KeyConfigs } from "./data/key-configs";
|
|
18
19
|
export { type KeyType, KeypadType } from "./enums";
|
|
19
20
|
export { default as keyTranslator } from "./components/key-handlers/key-translator";
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var Redux__namespace = /*#__PURE__*/_interopNamespace(Redux);
|
|
|
52
52
|
|
|
53
53
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
54
54
|
const libName = "@khanacademy/math-input";
|
|
55
|
-
const libVersion = "14.
|
|
55
|
+
const libVersion = "14.1.1";
|
|
56
56
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
57
57
|
|
|
58
58
|
function _defineProperty(obj, key, value) {
|
|
@@ -10037,8 +10037,28 @@ const keypadElementPropType = PropTypes__default["default"].shape({
|
|
|
10037
10037
|
getDOMNode: PropTypes__default["default"].func.isRequired
|
|
10038
10038
|
});
|
|
10039
10039
|
|
|
10040
|
+
const KeyArray = ["PLUS", "MINUS", "NEGATIVE", "TIMES", "DIVIDE", "DECIMAL", "PERIOD", "PERCENT", "CDOT", "EQUAL", "NEQ", "GT", "LT", "GEQ", "LEQ",
|
|
10041
|
+
// mobile native only
|
|
10042
|
+
"FRAC_INCLUSIVE",
|
|
10043
|
+
// mobile native only
|
|
10044
|
+
"FRAC_EXCLUSIVE",
|
|
10045
|
+
// mobile native only
|
|
10046
|
+
"FRAC", "EXP", "EXP_2", "EXP_3", "SQRT", "CUBE_ROOT", "RADICAL", "LEFT_PAREN", "RIGHT_PAREN", "LN", "LOG", "LOG_N", "SIN", "COS",
|
|
10047
|
+
// TODO(charlie): Add in additional Greek letters.,
|
|
10048
|
+
"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",
|
|
10049
|
+
// Multi-functional keys.
|
|
10050
|
+
"NOOP",
|
|
10051
|
+
// mobile native only
|
|
10052
|
+
"MANY",
|
|
10053
|
+
// A custom key that captures an arbitrary number of symbols but has no 'default' symbol or action.
|
|
10054
|
+
"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",
|
|
10055
|
+
// Currently only used by
|
|
10056
|
+
// Perseus' Expression MathInput
|
|
10057
|
+
"PHI", "NTHROOT3", "POW", "LOG_B"];
|
|
10058
|
+
|
|
10040
10059
|
exports.CursorContext = CursorContext;
|
|
10041
10060
|
exports.DesktopKeypad = Keypad$2;
|
|
10061
|
+
exports.KeyArray = KeyArray;
|
|
10042
10062
|
exports.KeyConfigs = KeyConfigs;
|
|
10043
10063
|
exports.KeypadContext = KeypadContext;
|
|
10044
10064
|
exports.KeypadInput = MathInput;
|