@khanacademy/perseus-core 16.1.1 → 18.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/dist/data-schema.d.ts +5 -1
- package/dist/es/index.js +8 -8
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/interactive-graph-widget.d.ts +4 -0
- package/dist/parse-perseus-json/perseus-parsers/perseus-answer-area.d.ts +0 -3
- package/dist/widgets/radio/derive-num-correct.d.ts +1 -1
- package/dist/widgets/radio/radio-util.d.ts +1 -1
- package/package.json +3 -3
|
@@ -255,6 +255,7 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
255
255
|
lineStyle: "solid" | "dashed";
|
|
256
256
|
showPoint1: boolean;
|
|
257
257
|
showPoint2: boolean;
|
|
258
|
+
weight: "thin" | "medium" | "thick";
|
|
258
259
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
259
260
|
type: "label";
|
|
260
261
|
coord: [number, number];
|
|
@@ -267,6 +268,7 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
267
268
|
type: "vector";
|
|
268
269
|
points: [[number, number], [number, number]];
|
|
269
270
|
color: "blue" | "green" | "grayH" | "purple" | "pink" | "orange" | "red";
|
|
271
|
+
weight: "thin" | "medium" | "thick";
|
|
270
272
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
271
273
|
type: "label";
|
|
272
274
|
coord: [number, number];
|
|
@@ -283,6 +285,7 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
283
285
|
color: "blue" | "green" | "grayH" | "purple" | "pink" | "orange" | "red";
|
|
284
286
|
fillStyle: "none" | "solid" | "white" | "translucent";
|
|
285
287
|
strokeStyle: "solid" | "dashed";
|
|
288
|
+
weight: "thin" | "medium" | "thick";
|
|
286
289
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
287
290
|
type: "label";
|
|
288
291
|
coord: [number, number];
|
|
@@ -311,6 +314,7 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
311
314
|
type: "function";
|
|
312
315
|
color: "blue" | "green" | "grayH" | "purple" | "pink" | "orange" | "red";
|
|
313
316
|
strokeStyle: "solid" | "dashed";
|
|
317
|
+
weight: "thin" | "medium" | "thick";
|
|
314
318
|
equation: string;
|
|
315
319
|
directionalAxis: "x" | "y";
|
|
316
320
|
domain: [number, number];
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export declare const parsePerseusAnswerArea: import("../parser-types").Parser<{
|
|
2
|
-
zTable: boolean;
|
|
3
2
|
calculator: boolean;
|
|
4
|
-
chi2Table: boolean;
|
|
5
3
|
financialCalculatorMonthlyPayment: boolean;
|
|
6
4
|
financialCalculatorTotalAmount: boolean;
|
|
7
5
|
financialCalculatorTimeToPayOff: boolean;
|
|
8
6
|
periodicTable: boolean;
|
|
9
7
|
periodicTableWithKey: boolean;
|
|
10
|
-
tTable: boolean;
|
|
11
8
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PerseusRadioWidgetOptions } from "../../data-schema";
|
|
2
|
-
export declare function deriveNumCorrect(
|
|
2
|
+
export declare function deriveNumCorrect(choices: PerseusRadioWidgetOptions["choices"]): number;
|
|
@@ -3,7 +3,7 @@ import type { PerseusRadioChoice, PerseusRadioWidgetOptions } from "../../data-s
|
|
|
3
3
|
* For details on the individual options, see the
|
|
4
4
|
* PerseusRadioWidgetOptions type
|
|
5
5
|
*/
|
|
6
|
-
type RadioPublicWidgetOptions = {
|
|
6
|
+
export type RadioPublicWidgetOptions = {
|
|
7
7
|
choices: ReadonlyArray<RadioChoicePublicData>;
|
|
8
8
|
hasNoneOfTheAbove?: PerseusRadioWidgetOptions["hasNoneOfTheAbove"];
|
|
9
9
|
countChoices?: PerseusRadioWidgetOptions["countChoices"];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared Perseus infrastructure",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "18.0.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"@khanacademy/perseus-utils": "2.0.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@khanacademy/wonder-stuff-core": "1.5.
|
|
30
|
+
"@khanacademy/wonder-stuff-core": "1.5.5",
|
|
31
31
|
"underscore": "1.4.4",
|
|
32
32
|
"perseus-build-settings": "0.9.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@khanacademy/wonder-stuff-core": "^1.5.
|
|
35
|
+
"@khanacademy/wonder-stuff-core": "^1.5.5",
|
|
36
36
|
"underscore": "^1.4.4"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [],
|