@khanacademy/math-input 16.4.1 → 16.5.0

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,12 @@
1
1
  # @khanacademy/math-input
2
2
 
3
+ ## 16.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#921](https://github.com/Khan/perseus/pull/921) [`81b9a562`](https://github.com/Khan/perseus/commit/81b9a562d0fb8ff2cd82e708781432bff8437116) Thanks [@benchristel](https://github.com/benchristel)! - Make the Expression widget treat `sen` as equivalent to `sin`. The spelling
8
+ `sen` is used in Portuguese.
9
+
3
10
  ## 16.4.1
4
11
 
5
12
  ### Patch 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 = "16.4.1";
20
+ const libVersion = "16.5.0";
21
21
  addLibraryVersionToPerseusDebug(libName, libVersion);
22
22
 
23
23
  function _extends() {
@@ -348,6 +348,12 @@ function createBaseConfig() {
348
348
  // appropriate symbol. This does not include ln, log, or any of the
349
349
  // trig functions; those are always interpreted as commands.
350
350
  autoCommands: "pi theta phi sqrt nthroot",
351
+ // Most of these autoOperatorNames are simply the MathQuill defaults.
352
+ // We have to list them all in order to add the `sen` operator (see
353
+ // comment below).
354
+ 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",
355
+ // sen is used instead of sin in e.g. Portuguese
356
+ "sen", "sin", "sinh", "sup", "tan", "tanh"].join(" "),
351
357
  // Pop the cursor out of super/subscripts on arithmetic operators
352
358
  // or (in)equalities.
353
359
  charsThatBreakOutOfSupSub: "+-*/=<>≠≤≥",