@khanacademy/math-input 17.0.0 → 17.0.2

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,17 @@
1
1
  # @khanacademy/math-input
2
2
 
3
+ ## 17.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#957](https://github.com/Khan/perseus/pull/957) [`19114138`](https://github.com/Khan/perseus/commit/1911413844b59ef87d5b2329f6120e4568be9ae3) Thanks [@nedredmond](https://github.com/nedredmond)! - MathQuill provided a translated label
8
+
9
+ ## 17.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#950](https://github.com/Khan/perseus/pull/950) [`8c8af142`](https://github.com/Khan/perseus/commit/8c8af1425a5cd257ca894b20bdb481f7148ffa7d) Thanks [@nishasy](https://github.com/nishasy)! - Change the focus order so the FRAC key is before the PLUS key
14
+
3
15
  ## 17.0.0
4
16
 
5
17
  ### Major Changes
package/dist/es/index.js CHANGED
@@ -17,7 +17,7 @@ import PropTypes from 'prop-types';
17
17
 
18
18
  // This file is processed by a Rollup plugin (replace) to inject the production
19
19
  const libName = "@khanacademy/math-input";
20
- const libVersion = "17.0.0";
20
+ const libVersion = "17.0.2";
21
21
  addLibraryVersionToPerseusDebug(libName, libVersion);
22
22
 
23
23
  function _extends() {
@@ -387,7 +387,10 @@ const createBaseConfig = () => ({
387
387
  function createMathField(container, configCallback) {
388
388
  const baseConfig = createBaseConfig();
389
389
  const config = configCallback ? configCallback(baseConfig) : baseConfig;
390
- return mathQuillInstance.MathField(container, config);
390
+ const mathField = mathQuillInstance.MathField(container, config)
391
+ // translated in ./math-input.tsx
392
+ .setAriaLabel(i18n._("Math input box"));
393
+ return mathField;
391
394
  }
392
395
 
393
396
  /**
@@ -4936,6 +4939,11 @@ function SharedKeys(props) {
4936
4939
  // Fraction position depends on the page
4937
4940
  const fractionCoord = selectedPage === "Numbers" || selectedPage === "Operators" ? [3, 1] : [3, 0];
4938
4941
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(KeypadButton, {
4942
+ keyConfig: KeyConfigs.FRAC,
4943
+ onClickKey: onClickKey,
4944
+ coord: fractionCoord,
4945
+ secondary: true
4946
+ }), /*#__PURE__*/React.createElement(KeypadButton, {
4939
4947
  keyConfig: KeyConfigs.PLUS,
4940
4948
  onClickKey: onClickKey,
4941
4949
  coord: [4, 0],
@@ -4945,11 +4953,6 @@ function SharedKeys(props) {
4945
4953
  onClickKey: onClickKey,
4946
4954
  coord: [5, 0],
4947
4955
  secondary: true
4948
- }), /*#__PURE__*/React.createElement(KeypadButton, {
4949
- keyConfig: KeyConfigs.FRAC,
4950
- onClickKey: onClickKey,
4951
- coord: fractionCoord,
4952
- secondary: true
4953
4956
  }), /*#__PURE__*/React.createElement(KeypadButton, {
4954
4957
  keyConfig: convertDotToTimesByLocale(!!convertDotToTimes) ? KeyConfigs.TIMES : KeyConfigs.CDOT,
4955
4958
  onClickKey: onClickKey,