@khanacademy/perseus 17.1.1 → 17.2.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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core Perseus API (includes renderers and widgets)",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "17.1.1",
6
+ "version": "17.2.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@khanacademy/kas": "^0.3.7",
26
26
  "@khanacademy/kmath": "^0.1.8",
27
- "@khanacademy/math-input": "^16.2.0",
27
+ "@khanacademy/math-input": "^16.3.0",
28
28
  "@khanacademy/perseus-core": "1.4.1",
29
29
  "@khanacademy/perseus-linter": "^0.3.10",
30
30
  "@khanacademy/pure-markdown": "^0.2.13",
@@ -6,6 +6,7 @@ import {
6
6
  mathQuillInstance,
7
7
  CursorContext,
8
8
  getCursorContext,
9
+ convertDotToTimesByLocale,
9
10
  } from "@khanacademy/math-input";
10
11
  import Clickable from "@khanacademy/wonder-blocks-clickable";
11
12
  import Color, {fade} from "@khanacademy/wonder-blocks-color";
@@ -170,7 +171,11 @@ class MathInput extends React.Component<Props, State> {
170
171
  // Use the specified symbol to represent multiplication
171
172
  // TODO(alex): Add an option to disallow variables, in
172
173
  // which case 'x' should get converted to '\\times'
173
- if (this.props.convertDotToTimes) {
174
+ if (
175
+ convertDotToTimesByLocale(
176
+ this.props.convertDotToTimes,
177
+ )
178
+ ) {
174
179
  value = value.replace(/\\cdot/g, "\\times");
175
180
 
176
181
  // Preserve cursor position in the common case:
@@ -21,7 +21,7 @@ export const HideAnswersToggle = (props: {
21
21
  onChange={props.onChange}
22
22
  aria-labelledby={labelId}
23
23
  />
24
- <LabelMedium id={labelId} htmlFor={switchId}>
24
+ <LabelMedium id={labelId} htmlFor={switchId} tag="label">
25
25
  {strings.hideAnswersToggleLabel}
26
26
  </LabelMedium>
27
27
  </View>