@khanacademy/perseus 72.4.0 → 72.6.0
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/dist/es/index.js +7 -7
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/util/test-utils.d.ts +1 -15
- package/package.json +13 -13
- package/dist/widgets/numeric-input/numeric-input-question-builder.d.ts +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CategorizerWidget,
|
|
1
|
+
import type { CategorizerWidget, InteractiveGraphWidget, PerseusRenderer, PerseusWidgetTypes, RadioWidget, PerseusScore, UserInputMap, PerseusItem } from "@khanacademy/perseus-core";
|
|
2
2
|
/**
|
|
3
3
|
* Thin wrapper around scorePerseusItem for internal testing
|
|
4
4
|
*/
|
|
@@ -24,20 +24,6 @@ export declare function generateTestInteractiveGraphWidget(): InteractiveGraphWi
|
|
|
24
24
|
* @returns {InteractiveGraphWidget} skeleton InteractiveGraphWidget for testing
|
|
25
25
|
*/
|
|
26
26
|
export declare function generateTestCategorizerWidget(): CategorizerWidget;
|
|
27
|
-
/**
|
|
28
|
-
* Creates an object with the bare amount
|
|
29
|
-
* of data to be a properly typed ExpressionWidget
|
|
30
|
-
*
|
|
31
|
-
* @returns {ExpressionWidget} skeleton ExpressionWidget for testing
|
|
32
|
-
*/
|
|
33
|
-
export declare function generateTestExpressionWidget(): ExpressionWidget;
|
|
34
|
-
/**
|
|
35
|
-
* Creates an object with the bare amount
|
|
36
|
-
* of data to be a properly typed NumericInputWidget
|
|
37
|
-
*
|
|
38
|
-
* @returns {NumericInputWidget} skeleton NumericInputWidget for testing
|
|
39
|
-
*/
|
|
40
|
-
export declare function generateTestNumericInputWidget(): NumericInputWidget;
|
|
41
27
|
/**
|
|
42
28
|
* Creates an object with the minimum amount
|
|
43
29
|
* of data to be a properly typed PerseusItem
|
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": "72.
|
|
6
|
+
"version": "72.6.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"tiny-invariant": "1.3.1",
|
|
43
43
|
"uuid": "^10.0.0",
|
|
44
44
|
"@khanacademy/kas": "2.1.6",
|
|
45
|
-
"@khanacademy/keypad-context": "3.2.
|
|
46
|
-
"@khanacademy/kmath": "2.2.
|
|
47
|
-
"@khanacademy/math-input": "26.
|
|
48
|
-
"@khanacademy/perseus-
|
|
49
|
-
"@khanacademy/perseus-linter": "4.6.2",
|
|
50
|
-
"@khanacademy/perseus-score": "8.0.9",
|
|
45
|
+
"@khanacademy/keypad-context": "3.2.21",
|
|
46
|
+
"@khanacademy/kmath": "2.2.21",
|
|
47
|
+
"@khanacademy/math-input": "26.3.0",
|
|
48
|
+
"@khanacademy/perseus-linter": "4.6.3",
|
|
51
49
|
"@khanacademy/perseus-utils": "2.1.4",
|
|
52
50
|
"@khanacademy/pure-markdown": "2.2.4",
|
|
53
|
-
"@khanacademy/
|
|
51
|
+
"@khanacademy/perseus-score": "8.0.10",
|
|
52
|
+
"@khanacademy/simple-markdown": "2.1.4",
|
|
53
|
+
"@khanacademy/perseus-core": "20.4.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@khanacademy/wonder-blocks-announcer": "1.0.5",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@khanacademy/wonder-blocks-clickable": "8.0.5",
|
|
60
60
|
"@khanacademy/wonder-blocks-core": "12.4.2",
|
|
61
61
|
"@khanacademy/wonder-blocks-data": "14.1.8",
|
|
62
|
-
"@khanacademy/wonder-blocks-dropdown": "10.
|
|
62
|
+
"@khanacademy/wonder-blocks-dropdown": "10.6.0",
|
|
63
63
|
"@khanacademy/wonder-blocks-form": "7.4.6",
|
|
64
64
|
"@khanacademy/wonder-blocks-icon-button": "11.0.1",
|
|
65
65
|
"@khanacademy/wonder-blocks-icon": "5.3.5",
|
|
66
|
-
"@khanacademy/wonder-blocks-labeled-field": "4.0.
|
|
66
|
+
"@khanacademy/wonder-blocks-labeled-field": "4.0.12",
|
|
67
67
|
"@khanacademy/wonder-blocks-layout": "3.1.42",
|
|
68
68
|
"@khanacademy/wonder-blocks-link": "10.0.6",
|
|
69
69
|
"@khanacademy/wonder-blocks-modal": "8.5.9",
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
"@khanacademy/wonder-blocks-clickable": "^8.0.5",
|
|
99
99
|
"@khanacademy/wonder-blocks-core": "^12.4.2",
|
|
100
100
|
"@khanacademy/wonder-blocks-data": "^14.1.8",
|
|
101
|
-
"@khanacademy/wonder-blocks-dropdown": "^10.
|
|
101
|
+
"@khanacademy/wonder-blocks-dropdown": "^10.6.0",
|
|
102
102
|
"@khanacademy/wonder-blocks-form": "^7.4.6",
|
|
103
103
|
"@khanacademy/wonder-blocks-icon": "^5.3.5",
|
|
104
104
|
"@khanacademy/wonder-blocks-icon-button": "^11.0.1",
|
|
105
|
-
"@khanacademy/wonder-blocks-labeled-field": "^4.0.
|
|
105
|
+
"@khanacademy/wonder-blocks-labeled-field": "^4.0.12",
|
|
106
106
|
"@khanacademy/wonder-blocks-layout": "^3.1.42",
|
|
107
107
|
"@khanacademy/wonder-blocks-link": "^10.0.6",
|
|
108
108
|
"@khanacademy/wonder-blocks-modal": "^8.5.9",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"keywords": [],
|
|
132
132
|
"khan": {
|
|
133
|
-
"catalogHash": "
|
|
133
|
+
"catalogHash": "82e5cf16c1a8479c"
|
|
134
134
|
},
|
|
135
135
|
"scripts": {}
|
|
136
136
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PerseusRenderer, PerseusNumericInputAnswer } from "@khanacademy/perseus-core";
|
|
2
|
-
export declare function numericInputQuestionBuilder(): NumericInputQuestionBuilder;
|
|
3
|
-
declare class NumericInputQuestionBuilder {
|
|
4
|
-
private content;
|
|
5
|
-
private static;
|
|
6
|
-
private answers;
|
|
7
|
-
private size;
|
|
8
|
-
private coefficient;
|
|
9
|
-
build(): PerseusRenderer;
|
|
10
|
-
withAnswer(answerInfo: Partial<PerseusNumericInputAnswer>): NumericInputQuestionBuilder;
|
|
11
|
-
withContent(content: string): NumericInputQuestionBuilder;
|
|
12
|
-
withSize(size: "small" | "normal"): NumericInputQuestionBuilder;
|
|
13
|
-
}
|
|
14
|
-
export {};
|