New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@khanacademy/math-input

Package Overview
Dependencies
Maintainers
1
Versions
2109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/math-input - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

dist/components/keypad/keypad-button.d.ts

6

CHANGELOG.md
# @khanacademy/math-input
## 4.3.0
### Minor Changes
- cf29ed88: Update layout of MathInput's keypad
## 4.2.0

@@ -4,0 +10,0 @@

2

dist/components/input/mathquill-types.d.ts

@@ -37,2 +37,4 @@ import Key from "../../data/keys";

clearSelection: () => void;
cursorAtRightEnd: () => boolean;
cursorAtLeftEnd: () => boolean;
__controller: any;

@@ -39,0 +41,0 @@ }

24

dist/components/keypad/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc