@khanacademy/math-input 26.4.28 → 26.4.30

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
@@ -47,7 +47,7 @@ var xBold__default = /*#__PURE__*/_interopDefaultCompat(xBold);
47
47
  var Clickable__default = /*#__PURE__*/_interopDefaultCompat(Clickable);
48
48
  var PropTypes__default = /*#__PURE__*/_interopDefaultCompat(PropTypes);
49
49
 
50
- const libName="@khanacademy/math-input";const libVersion="26.4.28";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
50
+ const libName="@khanacademy/math-input";const libVersion="26.4.30";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
51
51
 
52
52
  function getDefaultExportFromCjs (x) {
53
53
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -1442,7 +1442,7 @@ function requireMathquill_min () {
1442
1442
  var mathquill_minExports = requireMathquill_min();
1443
1443
  var MathQuill = /*@__PURE__*/getDefaultExportFromCjs(mathquill_minExports);
1444
1444
 
1445
- const CDOT_ONLY=["az","cs","da","de","hu","hy","kk","ky","lt","lv","nb","sk","sr","sv","uz"];const TIMES_ONLY=["fr","tr","pt-pt"];function convertDotToTimesByLocale(locale,convertDotToTimes){if(CDOT_ONLY.includes(locale)){return false}if(TIMES_ONLY.includes(locale)){return true}return convertDotToTimes}const inJest=typeof process!=="undefined"&&!!process?.env?.JEST_WORKER_ID;
1445
+ const CDOT_ONLY=["az","bg","cs","da","de","hu","hy","kk","ky","lt","lv","nb","sk","sr","sv","uz"];const TIMES_ONLY=["fr","tr","pt-pt"];function convertDotToTimesByLocale(locale,convertDotToTimes){if(CDOT_ONLY.includes(locale)){return false}if(TIMES_ONLY.includes(locale)){return true}return convertDotToTimes}const inJest=typeof process!=="undefined"&&!!process?.env?.JEST_WORKER_ID;
1446
1446
 
1447
1447
  const mathQuillInstance=MathQuill.getInterface(3);const createBaseConfig=()=>({autoCommands:"pi theta phi sqrt nthroot",autoOperatorNames:["arccos","arcsin","arctan","arctg","arg","cos","cosec","cossec","cosh","cot","cotg","coth","csc","ctg","deg","det","dim","exp","gcd","hom","inf","ker","lg","lim","liminf","limsup","ln","log","max","min","Pr","projlim","sec","sen","sin","sinh","sup","tan","tanh","tg"].join(" "),charsThatBreakOutOfSupSub:"+-*/=<>≠≤≥",supSubsRequireOperand:true,spaceBehavesLikeTab:true});function createMathField(container,locale,strings,configCallback){const baseConfig=createBaseConfig();const config=configCallback?configCallback(baseConfig):baseConfig;const mathField=mathQuillInstance.MathField(container,config).setAriaLabel(strings.mathInputBox).setAriaStringsOverrideMap({before:obj=>strings.before({obj}),after:obj=>strings.after({obj}),"beginning of":obj=>strings["beginning of"]({obj}),"end of":obj=>strings["end of"]({obj}),Baseline:strings.Baseline,Superscript:strings.Superscript,selected:obj=>strings.selected({obj}),"no answer":strings["no answer"],"nothing selected":strings["nothing selected"],"nothing to the right":strings["nothing to the right"],"nothing to the left":strings["nothing to the left"],"block is empty":strings["block is empty"],"nothing above":strings["nothing above"],labelValue:(label,value)=>strings.labelValue({label,value})});!inJest&&mathjaxRenderer.SpeechRuleEngine.setup(locale).then(SRE=>mathField.setMathspeakOverride(SRE.texToSpeech));return mathField}
1448
1448