@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 +13 -0
- package/dist/components/aphrodite-css-transition-group/util.d.ts +2 -1
- package/dist/components/input/math-wrapper.d.ts +1 -1
- package/dist/data/key-configs.d.ts +1 -1
- package/dist/es/index.js +4 -5
- package/dist/es/index.js.map +1 -1
- package/dist/fake-react-native-web/view.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/input/math-input.tsx +1 -0
- package/src/components/input/math-wrapper.ts +2 -2
- package/src/data/key-configs.ts +1 -1
- package/tsconfig-build.tsbuildinfo +1 -1
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) =>
|
|
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
|
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.
|
|
20
|
+
const libVersion = "16.1.0";
|
|
21
21
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
22
22
|
|
|
23
23
|
function _extends() {
|
|
24
|
-
_extends = Object.assign
|
|
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();
|