@khanacademy/perseus-core 28.2.0 → 29.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 +4 -2
- package/dist/es/index.item-splitting.js +4 -4
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +9 -9
- package/dist/es/index.js.map +1 -1
- package/dist/feature-flags.d.ts +1 -1
- package/dist/index.item-splitting.js +4 -4
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/numeric-input-widget.d.ts +1 -1
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-locked-label-with-missing-color-size-text.d.ts +63 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-center-aligned.d.ts +41 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-right-aligned.d.ts +41 -0
- package/dist/widgets/numeric-input/index.d.ts +1 -1
- package/dist/widgets/numeric-input/numeric-input-util.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
question: {
|
|
3
|
+
content: string;
|
|
4
|
+
images: {};
|
|
5
|
+
widgets: {
|
|
6
|
+
"interactive-graph 1": {
|
|
7
|
+
type: string;
|
|
8
|
+
alignment: string;
|
|
9
|
+
static: boolean;
|
|
10
|
+
graded: boolean;
|
|
11
|
+
options: {
|
|
12
|
+
step: number[];
|
|
13
|
+
backgroundImage: {
|
|
14
|
+
url: null;
|
|
15
|
+
};
|
|
16
|
+
markings: string;
|
|
17
|
+
labels: string[];
|
|
18
|
+
labelLocation: string;
|
|
19
|
+
showProtractor: boolean;
|
|
20
|
+
showTooltips: boolean;
|
|
21
|
+
range: number[][];
|
|
22
|
+
showAxisArrows: {
|
|
23
|
+
xMin: boolean;
|
|
24
|
+
xMax: boolean;
|
|
25
|
+
yMin: boolean;
|
|
26
|
+
yMax: boolean;
|
|
27
|
+
};
|
|
28
|
+
showAxisTicks: {
|
|
29
|
+
x: boolean;
|
|
30
|
+
y: boolean;
|
|
31
|
+
};
|
|
32
|
+
lockedFigures: {
|
|
33
|
+
type: string;
|
|
34
|
+
coord: number[];
|
|
35
|
+
text: undefined;
|
|
36
|
+
color: undefined;
|
|
37
|
+
size: undefined;
|
|
38
|
+
}[];
|
|
39
|
+
graph: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
correct: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
version: {
|
|
47
|
+
major: number;
|
|
48
|
+
minor: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
answerArea: {
|
|
54
|
+
calculator: boolean;
|
|
55
|
+
financialCalculatorMonthlyPayment: boolean;
|
|
56
|
+
financialCalculatorTotalAmount: boolean;
|
|
57
|
+
financialCalculatorTimeToPayOff: boolean;
|
|
58
|
+
periodicTable: boolean;
|
|
59
|
+
periodicTableWithKey: boolean;
|
|
60
|
+
};
|
|
61
|
+
hints: never[];
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
answerArea: {
|
|
3
|
+
calculator: boolean;
|
|
4
|
+
};
|
|
5
|
+
hints: {
|
|
6
|
+
content: string;
|
|
7
|
+
}[];
|
|
8
|
+
itemDataVersion: {
|
|
9
|
+
major: number;
|
|
10
|
+
minor: number;
|
|
11
|
+
};
|
|
12
|
+
question: {
|
|
13
|
+
content: string;
|
|
14
|
+
widgets: {
|
|
15
|
+
"numeric-input 1": {
|
|
16
|
+
alignment: string;
|
|
17
|
+
graded: boolean;
|
|
18
|
+
options: {
|
|
19
|
+
answers: {
|
|
20
|
+
maxError: number;
|
|
21
|
+
message: string;
|
|
22
|
+
simplify: boolean;
|
|
23
|
+
status: string;
|
|
24
|
+
strict: boolean;
|
|
25
|
+
value: number;
|
|
26
|
+
}[];
|
|
27
|
+
coefficient: boolean;
|
|
28
|
+
labelText: string;
|
|
29
|
+
size: string;
|
|
30
|
+
textAlign: string;
|
|
31
|
+
};
|
|
32
|
+
type: string;
|
|
33
|
+
version: {
|
|
34
|
+
major: number;
|
|
35
|
+
minor: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
answerArea: {
|
|
3
|
+
calculator: boolean;
|
|
4
|
+
};
|
|
5
|
+
hints: {
|
|
6
|
+
content: string;
|
|
7
|
+
}[];
|
|
8
|
+
itemDataVersion: {
|
|
9
|
+
major: number;
|
|
10
|
+
minor: number;
|
|
11
|
+
};
|
|
12
|
+
question: {
|
|
13
|
+
content: string;
|
|
14
|
+
widgets: {
|
|
15
|
+
"numeric-input 1": {
|
|
16
|
+
alignment: string;
|
|
17
|
+
graded: boolean;
|
|
18
|
+
options: {
|
|
19
|
+
answers: {
|
|
20
|
+
maxError: number;
|
|
21
|
+
message: string;
|
|
22
|
+
simplify: boolean;
|
|
23
|
+
status: string;
|
|
24
|
+
strict: boolean;
|
|
25
|
+
value: number;
|
|
26
|
+
}[];
|
|
27
|
+
coefficient: boolean;
|
|
28
|
+
labelText: string;
|
|
29
|
+
size: string;
|
|
30
|
+
rightAlign: boolean;
|
|
31
|
+
};
|
|
32
|
+
type: string;
|
|
33
|
+
version: {
|
|
34
|
+
major: number;
|
|
35
|
+
minor: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NumericInputPublicWidgetOptions } from "./numeric-input-util";
|
|
2
2
|
import type { PerseusNumericInputWidgetOptions } from "../../data-schema";
|
|
3
3
|
import type { WidgetLogic } from "../logic-export.types";
|
|
4
|
-
export type NumericInputDefaultWidgetOptions = Pick<PerseusNumericInputWidgetOptions, "answers" | "size" | "coefficient" | "labelText" | "
|
|
4
|
+
export type NumericInputDefaultWidgetOptions = Pick<PerseusNumericInputWidgetOptions, "answers" | "size" | "coefficient" | "labelText" | "textAlign">;
|
|
5
5
|
declare const numericInputWidgetLogic: WidgetLogic<PerseusNumericInputWidgetOptions, NumericInputPublicWidgetOptions>;
|
|
6
6
|
export default numericInputWidgetLogic;
|
|
@@ -8,7 +8,7 @@ export type NumericInputPublicWidgetOptions = {
|
|
|
8
8
|
labelText?: PerseusNumericInputWidgetOptions["labelText"];
|
|
9
9
|
size: PerseusNumericInputWidgetOptions["size"];
|
|
10
10
|
coefficient: PerseusNumericInputWidgetOptions["coefficient"];
|
|
11
|
-
|
|
11
|
+
textAlign: PerseusNumericInputWidgetOptions["textAlign"];
|
|
12
12
|
answers: ReadonlyArray<NumericInputAnswerPublicData>;
|
|
13
13
|
};
|
|
14
14
|
/**
|
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": "29.0.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"tiny-invariant": "1.3.1",
|
|
40
40
|
"@khanacademy/kas": "2.2.3",
|
|
41
41
|
"@khanacademy/perseus-utils": "2.1.5",
|
|
42
|
-
"@khanacademy/pure-markdown": "2.
|
|
42
|
+
"@khanacademy/pure-markdown": "2.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@khanacademy/wonder-stuff-core": "3.0.0",
|