@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @khanacademy/math-input
|
|
2
2
|
|
|
3
|
+
## 14.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [22a9c408]
|
|
8
|
+
- @khanacademy/perseus-core@1.1.2
|
|
9
|
+
|
|
10
|
+
## 14.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 5bcf118c: Desktop Expression Widget now uses v2 keypad
|
|
15
|
+
|
|
3
16
|
## 14.0.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/data/keys.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export declare const KeyArray: readonly ["PLUS", "MINUS", "NEGATIVE", "TIMES", "DIVIDE", "DECIMAL", "PERIOD", "PERCENT", "CDOT", "EQUAL", "NEQ", "GT", "LT", "GEQ", "LEQ", "FRAC_INCLUSIVE", "FRAC_EXCLUSIVE", "FRAC", "EXP", "EXP_2", "EXP_3", "SQRT", "CUBE_ROOT", "RADICAL", "LEFT_PAREN", "RIGHT_PAREN", "LN", "LOG", "LOG_N", "SIN", "COS", "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", "NOOP", "MANY", "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", "PHI", "NTHROOT3", "POW", "LOG_B"];
|
|
2
|
+
type Key = typeof KeyArray[number];
|
|
2
3
|
export default Key;
|
package/dist/es/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import * as Redux from 'redux';
|
|
|
19
19
|
|
|
20
20
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
21
21
|
const libName = "@khanacademy/math-input";
|
|
22
|
-
const libVersion = "14.
|
|
22
|
+
const libVersion = "14.1.1";
|
|
23
23
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
@@ -9838,5 +9838,24 @@ const keypadElementPropType = PropTypes.shape({
|
|
|
9838
9838
|
getDOMNode: PropTypes.func.isRequired
|
|
9839
9839
|
});
|
|
9840
9840
|
|
|
9841
|
-
|
|
9841
|
+
const KeyArray = ["PLUS", "MINUS", "NEGATIVE", "TIMES", "DIVIDE", "DECIMAL", "PERIOD", "PERCENT", "CDOT", "EQUAL", "NEQ", "GT", "LT", "GEQ", "LEQ",
|
|
9842
|
+
// mobile native only
|
|
9843
|
+
"FRAC_INCLUSIVE",
|
|
9844
|
+
// mobile native only
|
|
9845
|
+
"FRAC_EXCLUSIVE",
|
|
9846
|
+
// mobile native only
|
|
9847
|
+
"FRAC", "EXP", "EXP_2", "EXP_3", "SQRT", "CUBE_ROOT", "RADICAL", "LEFT_PAREN", "RIGHT_PAREN", "LN", "LOG", "LOG_N", "SIN", "COS",
|
|
9848
|
+
// TODO(charlie): Add in additional Greek letters.,
|
|
9849
|
+
"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",
|
|
9850
|
+
// Multi-functional keys.
|
|
9851
|
+
"NOOP",
|
|
9852
|
+
// mobile native only
|
|
9853
|
+
"MANY",
|
|
9854
|
+
// A custom key that captures an arbitrary number of symbols but has no 'default' symbol or action.
|
|
9855
|
+
"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",
|
|
9856
|
+
// Currently only used by
|
|
9857
|
+
// Perseus' Expression MathInput
|
|
9858
|
+
"PHI", "NTHROOT3", "POW", "LOG_B"];
|
|
9859
|
+
|
|
9860
|
+
export { CursorContext, Keypad$2 as DesktopKeypad, KeyArray, KeyConfigs, KeypadContext, MathInput as KeypadInput, KeypadType, KeypadSwitch as MobileKeypad, StatefulKeypadContextProvider, createMathField, getCursorContext, keyToMathquillMap as keyTranslator, keypadElementPropType, libVersion, mathQuillInstance };
|
|
9842
9861
|
//# sourceMappingURL=index.js.map
|