@khanacademy/math-input 13.0.0 → 13.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 +11 -0
- package/dist/components/keypad/mobile-keypad.d.ts +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/__tests__/integration.test.tsx +287 -0
- package/src/components/keypad/keypad-button.stories.tsx +2 -1
- package/src/components/keypad/keypad-mathquill.stories.tsx +1 -1
- package/src/components/keypad/keypad-pages/fractions-page.tsx +1 -1
- package/src/components/keypad/keypad-pages/keypad-pages.stories.tsx +1 -1
- package/src/components/keypad/mobile-keypad.tsx +1 -1
- package/src/components/keypad/navigation-pad.stories.tsx +1 -1
- package/src/components/tabbar/tabbar.stories.tsx +4 -1
- package/src/{components/keypad/keypad.stories.tsx → full-keypad.stories.tsx} +4 -4
- package/src/{full-math-input.stories.tsx → full-mobile-input.stories.tsx} +1 -1
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @khanacademy/math-input
|
|
2
2
|
|
|
3
|
+
## 13.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3b19a1bf: Ensured that we're properly calling componentWillUnmount
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 7e2ae0ef: Bugfix for fraction button in v2 fraction keypad
|
|
12
|
+
- 1dc460c7: Add tests for mobile MathInput
|
|
13
|
+
|
|
3
14
|
## 13.0.0
|
|
4
15
|
|
|
5
16
|
### Major Changes
|
|
@@ -35,7 +35,7 @@ declare class MobileKeypad extends React.Component<Props, State> implements Keyp
|
|
|
35
35
|
hasMounted: boolean;
|
|
36
36
|
state: State;
|
|
37
37
|
componentDidMount(): void;
|
|
38
|
-
|
|
38
|
+
componentWillUnmount(): void;
|
|
39
39
|
_resize: () => void;
|
|
40
40
|
_throttleResizeHandler: () => void;
|
|
41
41
|
activate: () => void;
|
package/dist/es/index.js
CHANGED
|
@@ -4562,7 +4562,7 @@ function FractionsPage(props) {
|
|
|
4562
4562
|
coord: [3, 1],
|
|
4563
4563
|
secondary: true
|
|
4564
4564
|
}), /*#__PURE__*/React.createElement(KeypadButton$2, {
|
|
4565
|
-
keyConfig: KeyConfigs.
|
|
4565
|
+
keyConfig: KeyConfigs.FRAC,
|
|
4566
4566
|
onClickKey: onClickKey,
|
|
4567
4567
|
coord: [3, 2],
|
|
4568
4568
|
secondary: true
|
|
@@ -5183,7 +5183,7 @@ class MobileKeypad extends React.Component {
|
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
|
-
|
|
5186
|
+
componentWillUnmount() {
|
|
5187
5187
|
var _this$_containerResiz;
|
|
5188
5188
|
window.removeEventListener("resize", this._throttleResizeHandler);
|
|
5189
5189
|
window.removeEventListener("orientationchange", this._throttleResizeHandler);
|