@khanacademy/math-input 21.1.7 → 22.0.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.
@@ -8,7 +8,7 @@ declare const _default: {
8
8
  enterTimeout?: number | undefined;
9
9
  leaveTimeout?: number | undefined;
10
10
  in?: boolean | undefined;
11
- }): JSX.Element;
11
+ }): React.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  export default _default;
package/dist/es/index.js CHANGED
@@ -16,17 +16,25 @@ import PropTypes from 'prop-types';
16
16
 
17
17
  // This file is processed by a Rollup plugin (replace) to inject the production
18
18
  const libName = "@khanacademy/math-input";
19
- const libVersion = "21.1.7";
19
+ const libVersion = "22.0.0";
20
20
  addLibraryVersionToPerseusDebug(libName, libVersion);
21
21
 
22
22
  function _extends() {
23
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
24
- for (var e = 1; e < arguments.length; e++) {
25
- var t = arguments[e];
26
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
23
+ _extends = Object.assign || function (target) {
24
+ for (var i = 1; i < arguments.length; i++) {
25
+ var source = arguments[i];
26
+
27
+ for (var key in source) {
28
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
29
+ target[key] = source[key];
30
+ }
31
+ }
27
32
  }
28
- return n;
29
- }, _extends.apply(null, arguments);
33
+
34
+ return target;
35
+ };
36
+
37
+ return _extends.apply(this, arguments);
30
38
  }
31
39
 
32
40
  class View extends React.Component {
@@ -2347,14 +2355,19 @@ const inlineStyles = {
2347
2355
  }
2348
2356
  };
2349
2357
 
2350
- function _objectWithoutPropertiesLoose(r, e) {
2351
- if (null == r) return {};
2352
- var t = {};
2353
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2354
- if (e.includes(n)) continue;
2355
- t[n] = r[n];
2358
+ function _objectWithoutPropertiesLoose(source, excluded) {
2359
+ if (source == null) return {};
2360
+ var target = {};
2361
+ var sourceKeys = Object.keys(source);
2362
+ var key, i;
2363
+
2364
+ for (i = 0; i < sourceKeys.length; i++) {
2365
+ key = sourceKeys[i];
2366
+ if (excluded.indexOf(key) >= 0) continue;
2367
+ target[key] = source[key];
2356
2368
  }
2357
- return t;
2369
+
2370
+ return target;
2358
2371
  }
2359
2372
 
2360
2373
  const IconAsset = function IconAsset({