@khanacademy/perseus-score 9.0.10 → 9.0.12
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.
|
@@ -18,6 +18,11 @@ type PredicateValidatorOptions = {
|
|
|
18
18
|
fallback?: string;
|
|
19
19
|
message?: string;
|
|
20
20
|
};
|
|
21
|
+
export declare const fractionMultipleOfPi: RegExp;
|
|
22
|
+
export declare const mixedNumberMultipleOfPi: RegExp;
|
|
23
|
+
export declare const piInNumerator: RegExp;
|
|
24
|
+
export declare const piAsNumerator: RegExp;
|
|
25
|
+
export declare const multipleOfPi: RegExp;
|
|
21
26
|
/**
|
|
22
27
|
* Answer types
|
|
23
28
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type DropdownWidget, type ExpressionWidget } from "@khanacademy/perseus-core";
|
|
2
|
+
export declare function getTestDropdownWidget(): DropdownWidget;
|
|
3
|
+
export declare function getExpressionWidget(): ExpressionWidget;
|
|
4
|
+
export declare function getLegacyExpressionWidget(): {
|
|
5
|
+
type: string;
|
|
6
|
+
options: {
|
|
7
|
+
times: boolean;
|
|
8
|
+
buttonSets: string[];
|
|
9
|
+
functions: never[];
|
|
10
|
+
form: boolean;
|
|
11
|
+
simplify: boolean;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus score",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "9.0.
|
|
6
|
+
"version": "9.0.12",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@khanacademy/kas": "3.1.
|
|
27
|
-
"@khanacademy/kmath": "3.1.
|
|
28
|
-
"@khanacademy/perseus-core": "42.
|
|
26
|
+
"@khanacademy/kas": "3.1.1",
|
|
27
|
+
"@khanacademy/kmath": "3.1.4",
|
|
28
|
+
"@khanacademy/perseus-core": "42.1.1",
|
|
29
29
|
"@khanacademy/perseus-utils": "3.0.2",
|
|
30
30
|
"tiny-invariant": "^1.3.3"
|
|
31
31
|
},
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PerseusBlankUserInput, type ValidationResult } from "@khanacademy/perseus-core";
|
|
2
|
-
/**
|
|
3
|
-
* Checks userInput from the blank widget to see if the user has placed an
|
|
4
|
-
* answer tile on the blank. A blank with no tile on it isn't ready to score.
|
|
5
|
-
*/
|
|
6
|
-
declare function validateBlank(userInput: PerseusBlankUserInput | undefined): ValidationResult;
|
|
7
|
-
export default validateBlank;
|