@khanacademy/perseus-score 8.1.2 → 8.2.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 +9 -9
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/widgets/deprecated-standin/score-deprecated-standin.d.ts +10 -0
- package/package.json +3 -3
- package/dist/util/score-noop.d.ts +0 -11
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PerseusScore } from "@khanacademy/perseus-core";
|
|
2
|
+
/**
|
|
3
|
+
* Scoring function for deprecated-standin widget.
|
|
4
|
+
*
|
|
5
|
+
* The deprecated-standin widget is used as a placeholder for deprecated widgets
|
|
6
|
+
* to prevent old content from breaking. It always scores as correct (full credit)
|
|
7
|
+
* so that content using deprecated widgets doesn't experience any regressions.
|
|
8
|
+
*/
|
|
9
|
+
declare function scoreDeprecatedStandin(userInput: any, rubric: any, locale: string): PerseusScore;
|
|
10
|
+
export default scoreDeprecatedStandin;
|
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.2.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@khanacademy/kas": "2.1.6",
|
|
26
26
|
"@khanacademy/kmath": "2.2.24",
|
|
27
|
-
"@khanacademy/perseus-
|
|
28
|
-
"@khanacademy/perseus-
|
|
27
|
+
"@khanacademy/perseus-utils": "2.1.4",
|
|
28
|
+
"@khanacademy/perseus-core": "21.0.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"underscore": "1.4.4",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PerseusScore } from "@khanacademy/perseus-core";
|
|
2
|
-
/**
|
|
3
|
-
* Several widgets don't have "right"/"wrong" scoring logic,
|
|
4
|
-
* so this just says to move on past those widgets
|
|
5
|
-
*
|
|
6
|
-
* TODO(LEMS-2543) widgets that use this probably shouldn't have any
|
|
7
|
-
* scoring logic and the thing scoring an exercise
|
|
8
|
-
* should just know to skip these
|
|
9
|
-
*/
|
|
10
|
-
declare function scoreNoop(points?: number): PerseusScore;
|
|
11
|
-
export default scoreNoop;
|