@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/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/es/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { TransitionGroup } from 'react-transition-group';
|
|
|
17
17
|
import { withActionScheduler } from '@khanacademy/wonder-blocks-timing';
|
|
18
18
|
import PropTypes from 'prop-types';
|
|
19
19
|
|
|
20
|
-
const libName="@khanacademy/math-input";const libVersion="26.4.
|
|
20
|
+
const libName="@khanacademy/math-input";const libVersion="26.4.30";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
21
21
|
|
|
22
22
|
function getDefaultExportFromCjs (x) {
|
|
23
23
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1412,7 +1412,7 @@ function requireMathquill_min () {
|
|
|
1412
1412
|
var mathquill_minExports = requireMathquill_min();
|
|
1413
1413
|
var MathQuill = /*@__PURE__*/getDefaultExportFromCjs(mathquill_minExports);
|
|
1414
1414
|
|
|
1415
|
-
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;
|
|
1415
|
+
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;
|
|
1416
1416
|
|
|
1417
1417
|
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&&SpeechRuleEngine.setup(locale).then(SRE=>mathField.setMathspeakOverride(SRE.texToSpeech));return mathField}
|
|
1418
1418
|
|