@khanacademy/perseus 0.2.1 → 0.2.4
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 +20 -0
- package/dist/es/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -6
- package/src/index.js +1 -0
- package/src/mixins/provide-keypad.jsx +3 -1
- package/src/types.js +1 -13
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "@khanacademy/perseus",
|
|
3
|
+
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
|
+
"author": "Khan Academy",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"version": "0.2.4",
|
|
2
7
|
"publishConfig": {
|
|
3
8
|
"access": "public"
|
|
4
9
|
},
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/Khan/perseus.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Khan/perseus/issues"
|
|
16
|
+
},
|
|
8
17
|
"module": "dist/es/index.js",
|
|
9
18
|
"main": "dist/index.js",
|
|
10
19
|
"source": "src/index.js",
|
|
@@ -13,7 +22,7 @@
|
|
|
13
22
|
},
|
|
14
23
|
"dependencies": {
|
|
15
24
|
"@khanacademy/kmath": "0.0.5",
|
|
16
|
-
"@khanacademy/math-input": "^0.5.
|
|
25
|
+
"@khanacademy/math-input": "^0.5.1",
|
|
17
26
|
"@khanacademy/kas": "^0.2.3",
|
|
18
27
|
"@khanacademy/simple-markdown": "^0.8.1",
|
|
19
28
|
"mathquill": "git+https://git@github.com/Khan/mathquill.git#a9ae54e057c5c1acc8244a5627acbff29901d992"
|
|
@@ -73,6 +82,5 @@
|
|
|
73
82
|
"react-dom": "16.14.0",
|
|
74
83
|
"underscore": "^1.4.4"
|
|
75
84
|
},
|
|
76
|
-
"
|
|
77
|
-
"license": "MIT"
|
|
85
|
+
"keywords": []
|
|
78
86
|
}
|
package/src/index.js
CHANGED
|
@@ -16,12 +16,14 @@ import PropTypes from "prop-types";
|
|
|
16
16
|
import * as React from "react";
|
|
17
17
|
import ReactDOM from "react-dom";
|
|
18
18
|
|
|
19
|
+
import type {CSSProperties} from "aphrodite";
|
|
20
|
+
|
|
19
21
|
export type KeypadProps = {|
|
|
20
22
|
// An Aphrodite style object, to be applied to the keypad container.
|
|
21
23
|
// Note that, given our awkward structure of injecting the keypad, this
|
|
22
24
|
// style won't be applied or updated dynamically. Rather, it will only
|
|
23
25
|
// be applied in `componentDidMount`.
|
|
24
|
-
keypadStyle?:
|
|
26
|
+
keypadStyle?: CSSProperties,
|
|
25
27
|
|};
|
|
26
28
|
|
|
27
29
|
export type KeypadApiOptions = {|
|
package/src/types.js
CHANGED
|
@@ -333,7 +333,7 @@ export type JiptTranslationComponents = {|
|
|
|
333
333
|
removeComponentAtIndex: (index: number) => void,
|
|
334
334
|
|};
|
|
335
335
|
|
|
336
|
-
type VideoData = {|
|
|
336
|
+
export type VideoData = {|
|
|
337
337
|
__typename: "Video",
|
|
338
338
|
id: string,
|
|
339
339
|
title: ?string,
|
|
@@ -356,19 +356,7 @@ interface StaticUrlFn {
|
|
|
356
356
|
type InitialRequestUrlInterface = {|
|
|
357
357
|
origin: string,
|
|
358
358
|
host: string,
|
|
359
|
-
hostname: string,
|
|
360
359
|
protocol: string,
|
|
361
|
-
port: string,
|
|
362
|
-
configParams: {|
|
|
363
|
-
curriculum: string,
|
|
364
|
-
country: string,
|
|
365
|
-
embedded: string,
|
|
366
|
-
lang: string,
|
|
367
|
-
preview: string,
|
|
368
|
-
publish_commit: string,
|
|
369
|
-
region: string,
|
|
370
|
-
schemaMode: ?any,
|
|
371
|
-
|},
|
|
372
360
|
|};
|
|
373
361
|
|
|
374
362
|
// An object for dependency injection, to allow different clients
|