@khanacademy/math-input 0.5.0 → 0.5.3
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 +19 -1
- package/dist/es/index.js +7797 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +7768 -1
- package/dist/index.js.map +1 -1
- package/less/main.less +4 -4
- package/package.json +60 -50
- package/src/components/keypad/button.stories.js +5 -3
- package/src/components/keypad/keypad-pages.stories.js +3 -3
- package/src/components/keypad/keypad.stories.js +3 -3
- package/src/components/provided-keypad.js +4 -0
- package/src/index.js +5 -0
package/less/main.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import "echo.less";
|
|
2
|
-
@import "overrides.less";
|
|
3
|
-
@import "popover.less";
|
|
1
|
+
@import "./echo.less";
|
|
2
|
+
@import "./overrides.less";
|
|
3
|
+
@import "./popover.less";
|
|
4
4
|
@import "../../../node_modules/mathquill/build/mathquill.css";
|
|
5
|
-
@import "tabbar.less";
|
|
5
|
+
@import "./tabbar.less";
|
package/package.json
CHANGED
|
@@ -1,52 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
2
|
+
"name": "@khanacademy/math-input",
|
|
3
|
+
"description": "Khan Academy's new expression editor for the mobile web.",
|
|
4
|
+
"author": "Khan Academy",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"version": "0.5.3",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/Khan/math-input.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Khan/perseus/issues"
|
|
16
|
+
},
|
|
17
|
+
"module": "dist/es/index.js",
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"source": "src/index.js",
|
|
20
|
+
"scripts": {},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"performance-now": "^0.2.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@khanacademy/wonder-blocks-clickable": "^2.2.0",
|
|
26
|
+
"@khanacademy/wonder-blocks-color": "^1.1.19",
|
|
27
|
+
"@khanacademy/wonder-blocks-core": "^3.2.0",
|
|
28
|
+
"@khanacademy/wonder-blocks-i18n": "^1.2.3",
|
|
29
|
+
"aphrodite": "^1.1.0",
|
|
30
|
+
"jquery": "^2.1.1",
|
|
31
|
+
"katex": "^0.11.1",
|
|
32
|
+
"mathquill": "git+https://git@github.com/Khan/mathquill.git#a9ae54e057c5c1acc8244a5627acbff29901d992",
|
|
33
|
+
"perseus-build-settings": "^0.0.2",
|
|
34
|
+
"prop-types": "15.6.1",
|
|
35
|
+
"react": "^16.8.0",
|
|
36
|
+
"react-dom": "^16.8.0",
|
|
37
|
+
"react-redux": "^7.2.6",
|
|
38
|
+
"react-router": "^5.2.1",
|
|
39
|
+
"react-router-dom": "^5.3.0",
|
|
40
|
+
"react-transition-group": "^4.4.1",
|
|
41
|
+
"redux": "^4.0.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@khanacademy/wonder-blocks-clickable": "^2.2.0",
|
|
45
|
+
"@khanacademy/wonder-blocks-color": "^1.1.19",
|
|
46
|
+
"@khanacademy/wonder-blocks-core": "^3.2.0",
|
|
47
|
+
"@khanacademy/wonder-blocks-i18n": "^1.2.3",
|
|
48
|
+
"aphrodite": "^1.1.0",
|
|
49
|
+
"jquery": "^2.1.1",
|
|
50
|
+
"katex": "^0.11.1",
|
|
51
|
+
"mathquill": "git+https://git@github.com/Khan/mathquill.git#a9ae54e057c5c1acc8244a5627acbff29901d992",
|
|
52
|
+
"prop-types": "15.6.1",
|
|
53
|
+
"react": "^16.8.0",
|
|
54
|
+
"react-dom": "^16.8.0",
|
|
55
|
+
"react-redux": "^7.2.6",
|
|
56
|
+
"react-router": "^5.2.1",
|
|
57
|
+
"react-router-dom": "^5.3.0",
|
|
58
|
+
"react-transition-group": "^4.4.1",
|
|
59
|
+
"redux": "^4.0.0"
|
|
60
|
+
},
|
|
61
|
+
"keywords": []
|
|
52
62
|
}
|
|
@@ -8,9 +8,11 @@ export default {
|
|
|
8
8
|
title: "Keypad Button",
|
|
9
9
|
decorators: [withKnobs],
|
|
10
10
|
parameters: {
|
|
11
|
-
backgrounds:
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
backgrounds: {
|
|
12
|
+
values: [
|
|
13
|
+
{name: "dark background", value: "#DBDCDD", default: true},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
14
16
|
},
|
|
15
17
|
};
|
|
16
18
|
|
|
@@ -12,9 +12,9 @@ export default {
|
|
|
12
12
|
title: "Keypad pages",
|
|
13
13
|
decorators: [withKnobs],
|
|
14
14
|
parameters: {
|
|
15
|
-
backgrounds:
|
|
16
|
-
{name: "light background", value: "white", default: true},
|
|
17
|
-
|
|
15
|
+
backgrounds: {
|
|
16
|
+
values: [{name: "light background", value: "white", default: true}],
|
|
17
|
+
},
|
|
18
18
|
viewport: {defaultViewport: "iphone6"},
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -11,9 +11,9 @@ export default {
|
|
|
11
11
|
title: "Full Keypad",
|
|
12
12
|
decorators: [withKnobs],
|
|
13
13
|
parameters: {
|
|
14
|
-
backgrounds:
|
|
15
|
-
{name: "light background", value: "white", default: true},
|
|
16
|
-
|
|
14
|
+
backgrounds: {
|
|
15
|
+
values: [{name: "light background", value: "white", default: true}],
|
|
16
|
+
},
|
|
17
17
|
viewport: {defaultViewport: "iphone6", viewports: INITIAL_VIEWPORTS},
|
|
18
18
|
},
|
|
19
19
|
};
|
|
@@ -15,8 +15,12 @@ import {createStore} from "../store/index.js";
|
|
|
15
15
|
|
|
16
16
|
import KeypadContainer from "./keypad-container.js";
|
|
17
17
|
|
|
18
|
+
import type {CSSProperties} from "aphrodite";
|
|
19
|
+
|
|
18
20
|
type Props = {|
|
|
19
21
|
onElementMounted?: ($FlowFixMe) => void,
|
|
22
|
+
onDismiss?: () => mixed,
|
|
23
|
+
style?: CSSProperties,
|
|
20
24
|
|};
|
|
21
25
|
|
|
22
26
|
class ProvidedKeypad extends React.Component<Props> {
|
package/src/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @flow
|
|
1
2
|
/**
|
|
2
3
|
* A single entry-point for all of the external-facing functionality.
|
|
3
4
|
*/
|
|
@@ -11,3 +12,7 @@ export {
|
|
|
11
12
|
} from "./components/prop-types.js";
|
|
12
13
|
export {default as Keypad} from "./components/provided-keypad.js";
|
|
13
14
|
export {KeypadTypes} from "./consts.js";
|
|
15
|
+
|
|
16
|
+
import * as CursorContexts from "./components/input/cursor-contexts.js";
|
|
17
|
+
|
|
18
|
+
export {CursorContexts};
|