@khanacademy/perseus 0.3.0 → 0.3.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 +20 -0
- package/dist/es/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.js +1 -0
- package/src/types.js +3 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.3",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@khanacademy/kmath": "^0.0.5",
|
|
25
25
|
"@khanacademy/kas": "^0.2.4",
|
|
26
|
-
"@khanacademy/math-input": "^0.5.
|
|
26
|
+
"@khanacademy/math-input": "^0.5.4",
|
|
27
27
|
"@khanacademy/perseus-linter": "^0.2.0",
|
|
28
28
|
"@khanacademy/pure-markdown": "^0.1.0",
|
|
29
29
|
"@khanacademy/simple-markdown": "^0.8.3",
|
package/src/index.js
CHANGED
package/src/types.js
CHANGED
|
@@ -359,6 +359,8 @@ type InitialRequestUrlInterface = {|
|
|
|
359
359
|
protocol: string,
|
|
360
360
|
|};
|
|
361
361
|
|
|
362
|
+
export type VideoKind = "YOUTUBE_ID" | "READABLE_ID";
|
|
363
|
+
|
|
362
364
|
// An object for dependency injection, to allow different clients
|
|
363
365
|
// to provide different methods for logging, translation, network
|
|
364
366
|
// requests, etc.
|
|
@@ -392,7 +394,7 @@ export type PerseusDependencies = {|
|
|
|
392
394
|
// framework.
|
|
393
395
|
useVideo(
|
|
394
396
|
id: string,
|
|
395
|
-
kind:
|
|
397
|
+
kind: VideoKind,
|
|
396
398
|
): Result<{|
|
|
397
399
|
video: ?VideoData,
|
|
398
400
|
|}>,
|