@khanacademy/perseus-score 8.11.10 → 8.12.1
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 +5 -7
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/score.d.ts +0 -5
- package/dist/widgets/input-number/score-input-number.d.ts +2 -37
- package/package.json +3 -3
package/dist/score.d.ts
CHANGED
|
@@ -36,11 +36,6 @@ export declare function combineScoreWithWidgetScores(score: PerseusScore, widget
|
|
|
36
36
|
* scores are included in `widgetScores`.
|
|
37
37
|
*/
|
|
38
38
|
export declare function scorePerseusItem(perseusRenderData: PerseusRenderer, userInputMap: UserInputMap, locale: string): PerseusScoreWithWidgetScores;
|
|
39
|
-
/**
|
|
40
|
-
* @experimental - this is a temporary function for use by the Input Number to
|
|
41
|
-
* Numeric Input project. It will be removed in a future minor version.
|
|
42
|
-
*/
|
|
43
|
-
export declare function scorePerseusItemWithInputNumberAsNumericInput(perseusRenderData: PerseusRenderer, userInputMap: UserInputMap, locale: string): PerseusScoreWithWidgetScores;
|
|
44
39
|
export declare function scoreWidgetsFunctional(widgets: PerseusWidgetsMap, widgetIds: ReadonlyArray<string>, userInputMap: UserInputMap, locale: string): {
|
|
45
40
|
[widgetId: string]: PerseusScore;
|
|
46
41
|
};
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
readonly number: {
|
|
4
|
-
readonly name: "Numbers";
|
|
5
|
-
readonly forms: "integer, decimal, proper, improper, mixed";
|
|
6
|
-
};
|
|
7
|
-
readonly decimal: {
|
|
8
|
-
readonly name: "Decimals";
|
|
9
|
-
readonly forms: "decimal";
|
|
10
|
-
};
|
|
11
|
-
readonly integer: {
|
|
12
|
-
readonly name: "Integers";
|
|
13
|
-
readonly forms: "integer";
|
|
14
|
-
};
|
|
15
|
-
readonly rational: {
|
|
16
|
-
readonly name: "Fractions and mixed numbers";
|
|
17
|
-
readonly forms: "integer, proper, improper, mixed";
|
|
18
|
-
};
|
|
19
|
-
readonly improper: {
|
|
20
|
-
readonly name: "Improper numbers (no mixed)";
|
|
21
|
-
readonly forms: "integer, proper, improper";
|
|
22
|
-
};
|
|
23
|
-
readonly mixed: {
|
|
24
|
-
readonly name: "Mixed numbers (no improper)";
|
|
25
|
-
readonly forms: "integer, proper, mixed";
|
|
26
|
-
};
|
|
27
|
-
readonly percent: {
|
|
28
|
-
readonly name: "Numbers or percents";
|
|
29
|
-
readonly forms: "integer, decimal, proper, improper, mixed, percent";
|
|
30
|
-
};
|
|
31
|
-
readonly pi: {
|
|
32
|
-
readonly name: "Numbers with pi";
|
|
33
|
-
readonly forms: "pi";
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
declare function scoreInputNumber(userInput: PerseusInputNumberUserInput | undefined, rubric: PerseusInputNumberWidgetOptions, locale?: string): PerseusScore;
|
|
37
|
-
export default scoreInputNumber;
|
|
1
|
+
import scoreNumericInput from "../numeric-input/score-numeric-input";
|
|
2
|
+
export default scoreNumericInput;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus score",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "8.
|
|
6
|
+
"version": "8.12.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@khanacademy/kas": "2.2.3",
|
|
26
|
-
"@khanacademy/kmath": "2.4.
|
|
27
|
-
"@khanacademy/perseus-core": "
|
|
26
|
+
"@khanacademy/kmath": "2.4.28",
|
|
27
|
+
"@khanacademy/perseus-core": "30.0.1",
|
|
28
28
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|