@khanacademy/perseus 72.5.0 → 72.6.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.
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import type { CategorizerWidget, InteractiveGraphWidget, PerseusRenderer, PerseusWidgetTypes,
|
|
1
|
+
import type { CategorizerWidget, InteractiveGraphWidget, PerseusRenderer, PerseusWidgetTypes, PerseusScore, UserInputMap, PerseusItem } from "@khanacademy/perseus-core";
|
|
2
2
|
/**
|
|
3
3
|
* Thin wrapper around scorePerseusItem for internal testing
|
|
4
4
|
*/
|
|
5
5
|
export declare function scorePerseusItemTesting(perseusRenderData: PerseusRenderer, userInputMap: UserInputMap): PerseusScore;
|
|
6
|
-
/**
|
|
7
|
-
* Creates an object with the bare amount
|
|
8
|
-
* of data to be a properly typed RadioWidget
|
|
9
|
-
*
|
|
10
|
-
* @returns {RadioWidget} skeleton RadioWidget for testing
|
|
11
|
-
*/
|
|
12
|
-
export declare function generateTestRadioWidget(): RadioWidget;
|
|
13
6
|
/**
|
|
14
7
|
* Creates an object with the bare amount
|
|
15
8
|
* of data to be a properly typed InteractiveGraphWidget
|
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.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,12 +42,12 @@
|
|
|
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-core": "
|
|
49
|
-
"@khanacademy/perseus-linter": "4.6.
|
|
50
|
-
"@khanacademy/perseus-score": "8.0
|
|
45
|
+
"@khanacademy/keypad-context": "3.2.22",
|
|
46
|
+
"@khanacademy/kmath": "2.2.22",
|
|
47
|
+
"@khanacademy/math-input": "26.3.1",
|
|
48
|
+
"@khanacademy/perseus-core": "21.0.0",
|
|
49
|
+
"@khanacademy/perseus-linter": "4.6.4",
|
|
50
|
+
"@khanacademy/perseus-score": "8.1.0",
|
|
51
51
|
"@khanacademy/perseus-utils": "2.1.4",
|
|
52
52
|
"@khanacademy/pure-markdown": "2.2.4",
|
|
53
53
|
"@khanacademy/simple-markdown": "2.1.4"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { PerseusRenderer } from "@khanacademy/perseus-core";
|
|
2
|
-
export declare function radioQuestionBuilder(): RadioQuestionBuilder;
|
|
3
|
-
declare class RadioQuestionBuilder {
|
|
4
|
-
private content;
|
|
5
|
-
private choices;
|
|
6
|
-
private countChoices?;
|
|
7
|
-
private hasNoneOfTheAbove?;
|
|
8
|
-
private multipleSelect?;
|
|
9
|
-
private randomize?;
|
|
10
|
-
private static?;
|
|
11
|
-
private numCorrect?;
|
|
12
|
-
build(): PerseusRenderer;
|
|
13
|
-
withContent(content: string): RadioQuestionBuilder;
|
|
14
|
-
withCountChoices(countChoices: boolean): RadioQuestionBuilder;
|
|
15
|
-
withHasNoneOfTheAbove(hasNoneOfTheAbove: boolean): RadioQuestionBuilder;
|
|
16
|
-
withMultipleSelect(multipleSelect: boolean): RadioQuestionBuilder;
|
|
17
|
-
withRandomize(randomize: boolean): RadioQuestionBuilder;
|
|
18
|
-
withStatic(isStatic: boolean): RadioQuestionBuilder;
|
|
19
|
-
withNumCorrect(numCorrect: number): RadioQuestionBuilder;
|
|
20
|
-
addChoice(content: string, options?: {
|
|
21
|
-
correct?: boolean;
|
|
22
|
-
rationale?: string;
|
|
23
|
-
isNoneOfTheAbove?: boolean;
|
|
24
|
-
}): RadioQuestionBuilder;
|
|
25
|
-
}
|
|
26
|
-
export {};
|