@khanacademy/perseus 72.6.2 → 72.6.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.
|
@@ -6,18 +6,20 @@ interface GetChoiceStatesProps {
|
|
|
6
6
|
isStatic?: boolean | null;
|
|
7
7
|
showSolutions?: ShowSolutions;
|
|
8
8
|
choiceStates?: ReadonlyArray<ChoiceState>;
|
|
9
|
+
reviewMode?: boolean;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* Determine the updated choice states for the Radio widget, based on the
|
|
12
|
-
* widget's static / showSolutions states, and choiceStates.
|
|
13
|
+
* widget's static / showSolutions / reviewMode states, and choiceStates.
|
|
13
14
|
*
|
|
14
15
|
* @param choices - The choices for the Radio widget.
|
|
15
16
|
* @param isStatic - Whether the widget is static.
|
|
16
17
|
* @param showSolutions - Whether the widget is in showSolutions mode.
|
|
18
|
+
* @param reviewMode - Whether the widget is in review mode.
|
|
17
19
|
* @param choiceStates - The choice states for the widget. (The user's current selection states.)
|
|
18
20
|
* @returns The updated choice states for the widget.
|
|
19
21
|
*/
|
|
20
|
-
export declare const getChoiceStates: ({ choices, isStatic, showSolutions, choiceStates, }: GetChoiceStatesProps) => ReadonlyArray<ChoiceState>;
|
|
22
|
+
export declare const getChoiceStates: ({ choices, isStatic, showSolutions, choiceStates, reviewMode, }: GetChoiceStatesProps) => ReadonlyArray<ChoiceState>;
|
|
21
23
|
/**
|
|
22
24
|
* Parse the nested widgets in the content of a Radio widget.
|
|
23
25
|
* Currently this only supports passage-ref widgets, but can
|
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.
|
|
6
|
+
"version": "72.6.3",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@khanacademy/kas": "2.1.6",
|
|
45
45
|
"@khanacademy/keypad-context": "3.2.22",
|
|
46
46
|
"@khanacademy/kmath": "2.2.22",
|
|
47
|
-
"@khanacademy/math-input": "26.3.
|
|
48
|
-
"@khanacademy/perseus-linter": "4.6.4",
|
|
47
|
+
"@khanacademy/math-input": "26.3.2",
|
|
49
48
|
"@khanacademy/perseus-core": "21.0.0",
|
|
49
|
+
"@khanacademy/perseus-linter": "4.6.4",
|
|
50
50
|
"@khanacademy/perseus-score": "8.1.0",
|
|
51
|
-
"@khanacademy/pure-markdown": "2.2.4",
|
|
52
51
|
"@khanacademy/perseus-utils": "2.1.4",
|
|
52
|
+
"@khanacademy/pure-markdown": "2.2.4",
|
|
53
53
|
"@khanacademy/simple-markdown": "2.1.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@khanacademy/wonder-blocks-button": "11.2.10",
|
|
59
59
|
"@khanacademy/wonder-blocks-clickable": "8.0.5",
|
|
60
60
|
"@khanacademy/wonder-blocks-core": "12.4.2",
|
|
61
|
-
"@khanacademy/wonder-blocks-data": "
|
|
61
|
+
"@khanacademy/wonder-blocks-data": "15.0.0",
|
|
62
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",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@khanacademy/wonder-blocks-button": "^11.2.10",
|
|
98
98
|
"@khanacademy/wonder-blocks-clickable": "^8.0.5",
|
|
99
99
|
"@khanacademy/wonder-blocks-core": "^12.4.2",
|
|
100
|
-
"@khanacademy/wonder-blocks-data": "^
|
|
100
|
+
"@khanacademy/wonder-blocks-data": "^15.0.0",
|
|
101
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",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"keywords": [],
|
|
132
132
|
"khan": {
|
|
133
|
-
"catalogHash": "
|
|
133
|
+
"catalogHash": "86251d04b53c7d14"
|
|
134
134
|
},
|
|
135
135
|
"scripts": {}
|
|
136
136
|
}
|