@khanacademy/math-input 0.6.2 → 0.6.4
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/.eslintrc.js +6 -1
- package/CHANGELOG.md +12 -0
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/input/cursor-contexts.js +21 -0
- package/src/consts.js +22 -0
- package/src/data/key-configs.js +1 -0
- package/src/data/keys.js +58 -0
- package/src/index.js +4 -0
package/dist/index.js
CHANGED
|
@@ -273,6 +273,7 @@ const toolbarHeightPx = 60;
|
|
|
273
273
|
/**
|
|
274
274
|
* Constants that are shared between multiple files.
|
|
275
275
|
*/
|
|
276
|
+
// TODO: Retire this in favour of KeypadType (above)
|
|
276
277
|
const KeypadTypes = {
|
|
277
278
|
FRACTION: "FRACTION",
|
|
278
279
|
EXPRESSION: "EXPRESSION"
|
|
@@ -650,6 +651,7 @@ for (const key of Object.keys(KeyConfigs)) {
|
|
|
650
651
|
* now, we show the dismiss button rather than allowing the user to jump out of
|
|
651
652
|
* the radical.
|
|
652
653
|
*/
|
|
654
|
+
// TODO: Get rid of these constants in favour of CursorContext type.
|
|
653
655
|
// The cursor is not in any of the other viable contexts.
|
|
654
656
|
const NONE = "NONE"; // The cursor is within a set of parentheses.
|
|
655
657
|
|