@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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @khanacademy/perseus
2
2
 
3
+ ## 17.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#863](https://github.com/Khan/perseus/pull/863) [`f910bd72`](https://github.com/Khan/perseus/commit/f910bd72fc5cbf88a1a00d57f8aefa8eea2c755d) Thanks [@handeyeco](https://github.com/handeyeco)! - Localize the multiplication symbol in MathInput
8
+
9
+ ### Patch Changes
10
+
11
+ - [#865](https://github.com/Khan/perseus/pull/865) [`347d6d15`](https://github.com/Khan/perseus/commit/347d6d15ee7989819852067e5916a86725e95def) Thanks [@nedredmond](https://github.com/nedredmond)! - Make label for hide answers switch in Label Image Widget into label tag
12
+
13
+ - Updated dependencies [[`f910bd72`](https://github.com/Khan/perseus/commit/f910bd72fc5cbf88a1a00d57f8aefa8eea2c755d)]:
14
+ - @khanacademy/math-input@16.3.0
15
+
3
16
  ## 17.1.1
4
17
 
5
18
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as KAS from '@khanacademy/kas';
2
- import { keyTranslator, CursorContext, createMathField, mathQuillInstance, getCursorContext, DesktopKeypad, KeypadInput, KeypadType, KeyArray, keypadElementPropType } from '@khanacademy/math-input';
2
+ import { keyTranslator, CursorContext, createMathField, convertDotToTimesByLocale, mathQuillInstance, getCursorContext, DesktopKeypad, KeypadInput, KeypadType, KeyArray, keypadElementPropType } from '@khanacademy/math-input';
3
3
  import * as PerseusLinter from '@khanacademy/perseus-linter';
4
4
  import { linterContextDefault, Rule, linterContextProps } from '@khanacademy/perseus-linter';
5
5
  import { View, RenderStateRoot, useUniqueIdWithMock, Text } from '@khanacademy/wonder-blocks-core';
@@ -130,7 +130,7 @@ class MathInput extends React.Component {
130
130
  // Use the specified symbol to represent multiplication
131
131
  // TODO(alex): Add an option to disallow variables, in
132
132
  // which case 'x' should get converted to '\\times'
133
- if (this.props.convertDotToTimes) {
133
+ if (convertDotToTimesByLocale(this.props.convertDotToTimes)) {
134
134
  value = value.replace(/\\cdot/g, "\\times");
135
135
 
136
136
  // Preserve cursor position in the common case:
@@ -31105,7 +31105,8 @@ const HideAnswersToggle = props => {
31105
31105
  "aria-labelledby": labelId
31106
31106
  }), /*#__PURE__*/React.createElement(LabelMedium, {
31107
31107
  id: labelId,
31108
- htmlFor: switchId
31108
+ htmlFor: switchId,
31109
+ tag: "label"
31109
31110
  }, strings.hideAnswersToggleLabel));
31110
31111
  };
31111
31112
  const styles$h = StyleSheet.create({
@@ -44184,7 +44185,7 @@ const init = function init(options) {
44184
44185
 
44185
44186
  // This file is processed by a Rollup plugin (replace) to inject the production
44186
44187
  const libName = "@khanacademy/perseus";
44187
- const libVersion = "17.1.1";
44188
+ const libVersion = "17.2.0";
44188
44189
  addLibraryVersionToPerseusDebug(libName, libVersion);
44189
44190
 
44190
44191
  const apiVersion = {