@khanacademy/math-input
Advanced tools
Comparing version 4.2.0 to 4.3.0
# @khanacademy/math-input | ||
## 4.3.0 | ||
### Minor Changes | ||
- cf29ed88: Update layout of MathInput's keypad | ||
## 4.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -37,2 +37,4 @@ import Key from "../../data/keys"; | ||
clearSelection: () => void; | ||
cursorAtRightEnd: () => boolean; | ||
cursorAtLeftEnd: () => boolean; | ||
__controller: any; | ||
@@ -39,0 +41,0 @@ } |
@@ -1,7 +0,4 @@ | ||
import * as React from "react"; | ||
/// <reference types="react" /> | ||
import Key from "../../data/keys"; | ||
import { ClickKeyCallback } from "../../types"; | ||
import { TabbarItemType } from "../tabbar/types"; | ||
import { NumbersPageOptions } from "./numbers-page/types"; | ||
import { OperatorsButtonSets } from "./operators-page/types"; | ||
export type Props = { | ||
@@ -11,14 +8,9 @@ onClickKey: ClickKeyCallback; | ||
extraKeys: ReadonlyArray<Key>; | ||
} & OperatorsButtonSets & NumbersPageOptions; | ||
type State = { | ||
selectedPage: TabbarItemType; | ||
multiplicationDot?: boolean; | ||
divisionKey?: boolean; | ||
preAlgebra?: boolean; | ||
logarithms?: boolean; | ||
basicRelations?: boolean; | ||
advancedRelations?: boolean; | ||
}; | ||
type DefaultProps = { | ||
extraKeys: Props["extraKeys"]; | ||
}; | ||
export default class Keypad extends React.Component<Props, State> { | ||
state: State; | ||
static defaultProps: DefaultProps; | ||
render(): React.ReactNode; | ||
} | ||
export {}; | ||
export default function Keypad(props: Props): JSX.Element; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"publishConfig": { | ||
@@ -23,2 +23,3 @@ "access": "public" | ||
"dependencies": { | ||
"mathquill": "git+https://git@github.com/Khan/mathquill.git#a9ae54e057c5c1acc8244a5627acbff29901d992", | ||
"performance-now": "^0.2.0" | ||
@@ -36,3 +37,2 @@ }, | ||
"katex": "^0.11.1", | ||
"mathquill": "git+https://git@github.com/Khan/mathquill.git#a9ae54e057c5c1acc8244a5627acbff29901d992", | ||
"perseus-build-settings": "^0.1.0", | ||
@@ -57,3 +57,2 @@ "prop-types": "15.6.1", | ||
"katex": "^0.11.1", | ||
"mathquill": "git+https://git@github.com/Khan/mathquill.git#a9ae54e057c5c1acc8244a5627acbff29901d992", | ||
"prop-types": "15.6.1", | ||
@@ -60,0 +59,0 @@ "react": "^16.8.0", |
@@ -1,7 +0,4 @@ | ||
import MathQuill from "mathquill"; | ||
import MathWrapper from "../math-wrapper"; | ||
import {mathQuillInstance} from "../mathquill-instance"; | ||
const MQ = MathQuill.getInterface(2); | ||
export default class TestMathWrapper extends MathWrapper { | ||
@@ -21,3 +18,3 @@ getContent() { | ||
moveToStart() { | ||
this.mathField.moveToDirEnd(MQ.L); | ||
this.mathField.moveToDirEnd(mathQuillInstance.L); | ||
} | ||
@@ -24,0 +21,0 @@ |
@@ -65,2 +65,8 @@ import Key from "../../data/keys"; | ||
clearSelection: () => void; | ||
// Custom helper in our MathQuill fork | ||
// check to see if cursor is on right end | ||
cursorAtRightEnd: () => boolean; | ||
// Custom helper in our MathQuill fork | ||
// check to see if cursor is on left end | ||
cursorAtLeftEnd: () => boolean; | ||
// This isn't part of the MathQuill public API | ||
@@ -67,0 +73,0 @@ // I don't know what it is and it feels wrong using it |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
18
2909958
334
32307
1