@khanacademy/math-input 17.0.6 → 17.0.8

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/types.d.ts CHANGED
@@ -25,7 +25,7 @@ export type KeypadConfiguration = {
25
25
  };
26
26
  export type KeyHandler = (key: Key) => Cursor;
27
27
  export type Cursor = {
28
- context: typeof CursorContext[keyof typeof CursorContext];
28
+ context: (typeof CursorContext)[keyof typeof CursorContext];
29
29
  };
30
30
  export type ClickKeyCallback = (key: Key, event?: React.SyntheticEvent) => void;
31
31
  export type KeypadPageType = "Geometry" | "Operators" | "Numbers" | "Fractions" | "Extras" | "Dismiss";
package/dist/utils.d.ts CHANGED
@@ -15,3 +15,7 @@ export declare const decimalSeparator: string;
15
15
  * @returns {boolean} - true to convert to × (TIMES), false to use · (CDOT)
16
16
  */
17
17
  export declare function convertDotToTimesByLocale(convertDotToTimes: boolean): boolean;
18
+ /**
19
+ * Use this to avoid running code that should not run in Jest.
20
+ **/
21
+ export declare const inJest: boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Khan Academy's new expression editor for the mobile web.",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "17.0.6",
6
+ "version": "17.0.8",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -24,9 +24,10 @@
24
24
  "scripts": {},
25
25
  "dependencies": {
26
26
  "@khanacademy/perseus-core": "1.4.2",
27
- "mathquill": "git+https://git@github.com/Khan/mathquill.git#b936eba46aa77fe4c6dcb4e6a1f0efeb051d302f"
27
+ "mathquill": "git+https://git@github.com/Khan/mathquill.git#9c8ebec00c735c9f32270774f52208bf99aa164a"
28
28
  },
29
29
  "devDependencies": {
30
+ "@khanacademy/mathjax-renderer": "git+ssh://git@github.com:Khan/mathjax-renderer.git#v1.6.2",
30
31
  "@khanacademy/wonder-blocks-clickable": "^4.0.12",
31
32
  "@khanacademy/wonder-blocks-color": "^3.0.0",
32
33
  "@khanacademy/wonder-blocks-core": "^6.3.1",
@@ -47,6 +48,7 @@
47
48
  "react-transition-group": "^4.4.1"
48
49
  },
49
50
  "peerDependencies": {
51
+ "@khanacademy/mathjax-renderer": "git+ssh://git@github.com:Khan/mathjax-renderer.git#v1.6.2",
50
52
  "@khanacademy/wonder-blocks-clickable": "^4.0.12",
51
53
  "@khanacademy/wonder-blocks-color": "^3.0.0",
52
54
  "@khanacademy/wonder-blocks-core": "^6.3.1",