@khanacademy/perseus-core 3.7.0 → 4.0.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/LICENSE +18 -0
- package/dist/data-schema.d.ts +15 -4
- package/dist/es/index.js +92 -2100
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +115 -2104
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/interactive-graph-widget.d.ts +1 -0
- package/dist/widgets/dropdown/dropdown-util.d.ts +1 -1
- package/dist/widgets/interactive-graph/interactive-graph-util.d.ts +1 -2
- package/dist/widgets/numeric-input/numeric-input-util.d.ts +3 -2
- package/package.json +33 -32
- /package/dist/{utils → shared-utils}/add-library-version-to-perseus-debug.d.ts +0 -0
|
@@ -3,7 +3,7 @@ import type { PerseusDropdownWidgetOptions } from "@khanacademy/perseus-core";
|
|
|
3
3
|
* For details on the individual options, see the
|
|
4
4
|
* PerseusDropdownWidgetOptions type
|
|
5
5
|
*/
|
|
6
|
-
type DropdownPublicWidgetOptions = {
|
|
6
|
+
export type DropdownPublicWidgetOptions = {
|
|
7
7
|
choices: ReadonlyArray<{
|
|
8
8
|
content: string;
|
|
9
9
|
}>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { PerseusInteractiveGraphWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
|
-
type InteractiveGraphPublicWidgetOptions = Pick<PerseusInteractiveGraphWidgetOptions, "step" | "gridStep" | "snapStep" | "backgroundImage" | "markings" | "labels" | "showProtractor" | "showRuler" | "showTooltips" | "rulerLabel" | "rulerTicks" | "range" | "graph" | "lockedFigures" | "fullGraphAriaLabel" | "fullGraphAriaDescription">;
|
|
2
|
+
export type InteractiveGraphPublicWidgetOptions = Pick<PerseusInteractiveGraphWidgetOptions, "step" | "gridStep" | "snapStep" | "backgroundImage" | "markings" | "labels" | "showProtractor" | "showRuler" | "showTooltips" | "rulerLabel" | "rulerTicks" | "range" | "graph" | "lockedFigures" | "fullGraphAriaLabel" | "fullGraphAriaDescription">;
|
|
3
3
|
export default function getInteractiveGraphPublicWidgetOptions(options: PerseusInteractiveGraphWidgetOptions): InteractiveGraphPublicWidgetOptions;
|
|
4
|
-
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { PerseusNumericInputWidgetOptions } from "@khanacademy/perseus-core";
|
|
1
|
+
import type { PerseusNumericInputAnswer, PerseusNumericInputWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
|
+
type NumericInputAnswerPublicData = Pick<PerseusNumericInputAnswer, "answerForms" | "simplify" | "status">;
|
|
2
3
|
/**
|
|
3
4
|
* For details on the individual options, see the
|
|
4
5
|
* PerseusNumericInputWidgetOptions type
|
|
@@ -9,7 +10,7 @@ type NumericInputPublicWidgetOptions = {
|
|
|
9
10
|
coefficient: PerseusNumericInputWidgetOptions["coefficient"];
|
|
10
11
|
rightAlign?: PerseusNumericInputWidgetOptions["rightAlign"];
|
|
11
12
|
static: PerseusNumericInputWidgetOptions["static"];
|
|
12
|
-
|
|
13
|
+
answers: ReadonlyArray<NumericInputAnswerPublicData>;
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
15
16
|
* Given a PerseusNumericInputWidgetOptions object, return a new object with only
|
package/package.json
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
"name": "@khanacademy/perseus-core",
|
|
3
|
+
"description": "Shared Perseus infrastructure",
|
|
4
|
+
"author": "Khan Academy",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"version": "4.0.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/Khan/perseus.git",
|
|
13
|
+
"directory": "packages/perseus-core"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/Khan/perseus/issues"
|
|
17
|
+
},
|
|
18
|
+
"module": "dist/es/index.js",
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"source": "src/index.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@khanacademy/wonder-stuff-core": "1.5.4",
|
|
27
|
+
"underscore": "^1.4.4"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@khanacademy/wonder-stuff-core": "1.5.4",
|
|
31
|
+
"underscore": "^1.4.4"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [],
|
|
34
|
+
"scripts": {}
|
|
34
35
|
}
|
|
File without changes
|