@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/dist/index.js CHANGED
@@ -48,7 +48,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
48
48
 
49
49
  // This file is processed by a Rollup plugin (replace) to inject the production
50
50
  const libName = "@khanacademy/math-input";
51
- const libVersion = "17.0.0";
51
+ const libVersion = "17.0.2";
52
52
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
53
53
 
54
54
  function _extends() {
@@ -419,7 +419,10 @@ const createBaseConfig = () => ({
419
419
  function createMathField(container, configCallback) {
420
420
  const baseConfig = createBaseConfig();
421
421
  const config = configCallback ? configCallback(baseConfig) : baseConfig;
422
- return mathQuillInstance.MathField(container, config);
422
+ const mathField = mathQuillInstance.MathField(container, config)
423
+ // translated in ./math-input.tsx
424
+ .setAriaLabel(i18n__namespace._("Math input box"));
425
+ return mathField;
423
426
  }
424
427
 
425
428
  /**
@@ -5222,6 +5225,11 @@ function SharedKeys(props) {
5222
5225
  // Fraction position depends on the page
5223
5226
  const fractionCoord = selectedPage === "Numbers" || selectedPage === "Operators" ? [3, 1] : [3, 0];
5224
5227
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(KeypadButton, {
5228
+ keyConfig: KeyConfigs.FRAC,
5229
+ onClickKey: onClickKey,
5230
+ coord: fractionCoord,
5231
+ secondary: true
5232
+ }), /*#__PURE__*/React__namespace.createElement(KeypadButton, {
5225
5233
  keyConfig: KeyConfigs.PLUS,
5226
5234
  onClickKey: onClickKey,
5227
5235
  coord: [4, 0],
@@ -5231,11 +5239,6 @@ function SharedKeys(props) {
5231
5239
  onClickKey: onClickKey,
5232
5240
  coord: [5, 0],
5233
5241
  secondary: true
5234
- }), /*#__PURE__*/React__namespace.createElement(KeypadButton, {
5235
- keyConfig: KeyConfigs.FRAC,
5236
- onClickKey: onClickKey,
5237
- coord: fractionCoord,
5238
- secondary: true
5239
5242
  }), /*#__PURE__*/React__namespace.createElement(KeypadButton, {
5240
5243
  keyConfig: convertDotToTimesByLocale(!!convertDotToTimes) ? KeyConfigs.TIMES : KeyConfigs.CDOT,
5241
5244
  onClickKey: onClickKey,