@khanacademy/math-input 16.0.0 → 16.1.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,18 @@
1
1
  # @khanacademy/math-input
2
2
 
3
+ ## 16.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#794](https://github.com/Khan/perseus/pull/794) [`a91c84fe`](https://github.com/Khan/perseus/commit/a91c84fe53827ff4333220777a9918882b7fe9f0) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Removing the useV2Keypad apiOption as the V1 keypad is no longer in use.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#814](https://github.com/Khan/perseus/pull/814) [`105d2060`](https://github.com/Khan/perseus/commit/105d20603d935d35cff237b17f0bfb57ca751e4c) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Minor build change to how we provide Typescript type definitions (should be no change to build output).
12
+
13
+ - Updated dependencies [[`a91c84fe`](https://github.com/Khan/perseus/commit/a91c84fe53827ff4333220777a9918882b7fe9f0), [`105d2060`](https://github.com/Khan/perseus/commit/105d20603d935d35cff237b17f0bfb57ca751e4c)]:
14
+ - @khanacademy/perseus-core@1.4.0
15
+
3
16
  ## 16.0.0
4
17
 
5
18
  ### Major Changes
@@ -1,7 +1,8 @@
1
+ /// <reference path="../../../types/aphrodite.d.ts" />
1
2
  import type { InAnimationStyles } from "./types";
2
3
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
3
4
  export declare function processStyleType(style?: StyleType): {
4
5
  className: string;
5
6
  style: Record<any, any>;
6
7
  };
7
- export declare const createTransition: (styles: InAnimationStyles) => any;
8
+ export declare const createTransition: (styles: InAnimationStyles) => import("aphrodite").StyleDeclaration;
@@ -1,6 +1,6 @@
1
+ import type { MathFieldInterface } from "./mathquill-types";
1
2
  import type Key from "../../data/keys";
2
3
  import type { Cursor } from "../../types";
3
- import type { MathFieldInterface } from "./mathquill-types";
4
4
  /**
5
5
  * This file contains a wrapper around MathQuill so that we can provide a
6
6
  * more regular interface for the functionality we need while insulating us
@@ -1,5 +1,5 @@
1
- import type { KeyConfig } from "../types";
2
1
  import type Key from "./keys";
2
+ import type { KeyConfig } from "../types";
3
3
  declare const KeyConfigs: {
4
4
  [key in Key]: KeyConfig;
5
5
  };
package/dist/es/index.js CHANGED
@@ -17,24 +17,21 @@ 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.0.0";
20
+ const libVersion = "16.1.0";
21
21
  addLibraryVersionToPerseusDebug(libName, libVersion);
22
22
 
23
23
  function _extends() {
24
- _extends = Object.assign || function (target) {
24
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
25
25
  for (var i = 1; i < arguments.length; i++) {
26
26
  var source = arguments[i];
27
-
28
27
  for (var key in source) {
29
28
  if (Object.prototype.hasOwnProperty.call(source, key)) {
30
29
  target[key] = source[key];
31
30
  }
32
31
  }
33
32
  }
34
-
35
33
  return target;
36
34
  };
37
-
38
35
  return _extends.apply(this, arguments);
39
36
  }
40
37
 
@@ -2003,6 +2000,8 @@ class MathInput extends React.Component {
2003
2000
  window.addEventListener("resize", this._clearKeypadBoundsCache);
2004
2001
  window.addEventListener("orientationchange", this._clearKeypadBoundsCache);
2005
2002
  }
2003
+
2004
+ // eslint-disable-next-line react/no-unsafe
2006
2005
  UNSAFE_componentWillReceiveProps(props) {
2007
2006
  if (this.props.keypadElement !== props.keypadElement) {
2008
2007
  this._clearKeypadBoundsCache();