@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.
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../types/aphrodite.d.ts" />
1
2
  import * as React from "react";
2
3
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
3
4
  import type { CSSProperties } from "aphrodite";
@@ -17,7 +18,7 @@ type Props = {
17
18
  forwardRef?: React.RefObject<HTMLDivElement>;
18
19
  };
19
20
  declare class View extends React.Component<Props> {
20
- static styles: any;
21
+ static styles: import("aphrodite").StyleDeclaration;
21
22
  render(): React.ReactNode;
22
23
  }
23
24
  export default View;
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.0.0";
51
+ const libVersion = "16.1.0";
52
52
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
53
53
 
54
54
  function _extends() {
@@ -1519,6 +1519,8 @@ class MathInput extends React__namespace.Component {
1519
1519
  window.addEventListener("resize", this._clearKeypadBoundsCache);
1520
1520
  window.addEventListener("orientationchange", this._clearKeypadBoundsCache);
1521
1521
  }
1522
+
1523
+ // eslint-disable-next-line react/no-unsafe
1522
1524
  UNSAFE_componentWillReceiveProps(props) {
1523
1525
  if (this.props.keypadElement !== props.keypadElement) {
1524
1526
  this._clearKeypadBoundsCache();