@khanacademy/math-input 16.4.1 → 16.5.1

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 = "16.4.1";
51
+ const libVersion = "16.5.1";
52
52
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
53
53
 
54
54
  function _extends() {
@@ -380,6 +380,12 @@ function createBaseConfig() {
380
380
  // appropriate symbol. This does not include ln, log, or any of the
381
381
  // trig functions; those are always interpreted as commands.
382
382
  autoCommands: "pi theta phi sqrt nthroot",
383
+ // Most of these autoOperatorNames are simply the MathQuill defaults.
384
+ // We have to list them all in order to add the `sen` operator (see
385
+ // comment below).
386
+ autoOperatorNames: ["arccos", "arcsin", "arctan", "arg", "cos", "cosh", "cot", "coth", "csc", "deg", "det", "dim", "exp", "gcd", "hom", "inf", "ker", "lg", "lim", "liminf", "limsup", "ln", "log", "max", "min", "Pr", "projlim", "sec",
387
+ // sen is used instead of sin in e.g. Portuguese
388
+ "sen", "sin", "sinh", "sup", "tan", "tanh"].join(" "),
383
389
  // Pop the cursor out of super/subscripts on arithmetic operators
384
390
  // or (in)equalities.
385
391
  charsThatBreakOutOfSupSub: "+-*/=<>≠≤≥",