@khanacademy/perseus-core 19.3.0 → 19.4.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 +1 -0
- package/dist/es/index.item-splitting.js +1 -1
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.item-splitting.js +1 -1
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/image-widget.d.ts +1 -0
- package/dist/parse-perseus-json/regression-tests/article-data/image-with-id-0.d.ts +201 -0
- package/dist/parse-perseus-json/regression-tests/item-data/categorizer-missing-randomizeItems.d.ts +36 -0
- package/dist/parse-perseus-json/regression-tests/item-data/categorizer-missing-static.d.ts +37 -0
- package/dist/parse-perseus-json/regression-tests/item-data/categorizer-with-null-value.d.ts +44 -0
- package/dist/parse-perseus-json/regression-tests/item-data/cs-program-missing-static.d.ts +71 -0
- package/dist/parse-perseus-json/regression-tests/item-data/cs-program-with-null-width.d.ts +21 -0
- package/dist/parse-perseus-json/regression-tests/item-data/definition-missing-static.d.ts +55 -0
- package/dist/parse-perseus-json/regression-tests/item-data/dropdown-missing-placeholder.d.ts +38 -0
- package/dist/parse-perseus-json/regression-tests/item-data/dropdown-missing-version.d.ts +34 -0
- package/dist/parse-perseus-json/regression-tests/item-data/explanation-missing-widgets-map.d.ts +69 -0
- package/dist/parse-perseus-json/regression-tests/item-data/expression-answerForm-missing-form.d.ts +41 -0
- package/dist/parse-perseus-json/regression-tests/item-data/expression-missing-buttonSets.d.ts +35 -0
- package/dist/parse-perseus-json/regression-tests/item-data/expression-option-missing-value.d.ts +44 -0
- package/dist/parse-perseus-json/regression-tests/item-data/expression-with-null-answer-key.d.ts +124 -0
- package/dist/parse-perseus-json/regression-tests/item-data/expression-with-scientific-notation.d.ts +115 -0
- package/dist/parse-perseus-json/regression-tests/item-data/graded-group-with-false-hint.d.ts +133 -0
- package/dist/parse-perseus-json/regression-tests/item-data/grapher-with-empty-coords.d.ts +111 -0
- package/dist/parse-perseus-json/regression-tests/item-data/grapher-with-null-coords.d.ts +59 -0
- package/dist/parse-perseus-json/regression-tests/item-data/hint-missing-images.d.ts +175 -0
- package/dist/parse-perseus-json/regression-tests/item-data/hint-with-null-replace.d.ts +72 -0
- package/dist/parse-perseus-json/regression-tests/item-data/iframe-missing-allowFullScreen.d.ts +63 -0
- package/dist/parse-perseus-json/regression-tests/item-data/iframe-missing-settings.d.ts +18 -0
- package/dist/parse-perseus-json/regression-tests/item-data/iframe-missing-static.d.ts +46 -0
- package/dist/parse-perseus-json/regression-tests/item-data/image-with-null-dimensions.d.ts +181 -0
- package/dist/parse-perseus-json/regression-tests/item-data/input-number-with-boolean-value.d.ts +84 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interaction-element-missing-constraints.d.ts +115 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interaction-element-missing-key.d.ts +353 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-backgroundImage-with-empty-string-coordinates.d.ts +77 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-locked-figures-missing-weights.d.ts +213 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-locked-function-with-null-domain-element.d.ts +62 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-locked-line-missing-showPoint1.d.ts +294 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-missing-graph.d.ts +167 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-missing-gridStep.d.ts +121 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-missing-labels.d.ts +49 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-polygon-with-exact-match.d.ts +96 -0
- package/dist/parse-perseus-json/regression-tests/item-data/interactive-graph-with-string-backgroundImage-left.d.ts +86 -0
- package/dist/parse-perseus-json/regression-tests/item-data/item-with-null-itemDataVersion.d.ts +100 -0
- package/dist/parse-perseus-json/regression-tests/item-data/label-image-missing-static.d.ts +110 -0
- package/dist/parse-perseus-json/regression-tests/item-data/lights-puzzle.d.ts +27 -0
- package/dist/parse-perseus-json/regression-tests/item-data/matcher-with-null-options.d.ts +14 -0
- package/dist/parse-perseus-json/regression-tests/item-data/matrix-missing-version.d.ts +24 -0
- package/dist/parse-perseus-json/regression-tests/item-data/matrix-with-nulls-in-answer.d.ts +39 -0
- package/dist/parse-perseus-json/regression-tests/item-data/matrix-with-string-answer-element.d.ts +69 -0
- package/dist/parse-perseus-json/regression-tests/item-data/measurer-missing-image.d.ts +49 -0
- package/dist/parse-perseus-json/regression-tests/item-data/measurer-missing-static.d.ts +41 -0
- package/dist/parse-perseus-json/regression-tests/item-data/number-line-missing-snapDivisions.d.ts +133 -0
- package/dist/parse-perseus-json/regression-tests/item-data/number-line-missing-static.d.ts +46 -0
- package/dist/parse-perseus-json/regression-tests/item-data/number-line-with-empty-strings-in-label-range.d.ts +92 -0
- package/dist/parse-perseus-json/regression-tests/item-data/number-line-with-null-correctX.d.ts +68 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-answer-with-null-value.d.ts +44 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-answer-with-simplify-true.d.ts +40 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-answer-without-value.d.ts +89 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-missing-coefficient.d.ts +43 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-missing-labelText.d.ts +210 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-with-null-answerForms.d.ts +228 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-with-simplify-accepted.d.ts +108 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-with-simplify-false.d.ts +52 -0
- package/dist/parse-perseus-json/regression-tests/item-data/numeric-input-with-simplify-true-string.d.ts +75 -0
- package/dist/parse-perseus-json/regression-tests/item-data/orderer-option-missing-images.d.ts +539 -0
- package/dist/parse-perseus-json/regression-tests/item-data/orderer-option-missing-widgets.d.ts +80 -0
- package/dist/parse-perseus-json/regression-tests/item-data/orderer-with-invalid-height.d.ts +33 -0
- package/dist/parse-perseus-json/regression-tests/item-data/orderer-with-undefined-options.d.ts +135 -0
- package/dist/parse-perseus-json/regression-tests/item-data/passage-missing-footnotes-and-title.d.ts +47 -0
- package/dist/parse-perseus-json/regression-tests/item-data/passage-ref-missing-summaryText.d.ts +147 -0
- package/dist/parse-perseus-json/regression-tests/item-data/plotter-missing-scaleY-and-snapsPerLine.d.ts +64 -0
- package/dist/parse-perseus-json/regression-tests/item-data/plotter-with-undefined-plotDimensions.d.ts +76 -0
- package/dist/parse-perseus-json/regression-tests/item-data/question-missing-content.d.ts +8 -0
- package/dist/parse-perseus-json/regression-tests/item-data/radio-choice-ids-set-to-empty-string.d.ts +49 -0
- package/dist/parse-perseus-json/regression-tests/item-data/radio-choice-missing-content.d.ts +147 -0
- package/dist/parse-perseus-json/regression-tests/item-data/radio-missing-noneOfTheAbove.d.ts +43 -0
- package/dist/parse-perseus-json/regression-tests/item-data/radio-with-extra-fields-from-go-schema.d.ts +169 -0
- package/dist/parse-perseus-json/regression-tests/item-data/radio-with-null-options.d.ts +78 -0
- package/dist/parse-perseus-json/regression-tests/item-data/radio-with-null-widgets.d.ts +115 -0
- package/dist/parse-perseus-json/regression-tests/item-data/simulator-widget.d.ts +51 -0
- package/dist/parse-perseus-json/regression-tests/item-data/transformer-widget.d.ts +99 -0
- package/package.json +1 -1
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
answerArea: {
|
|
3
|
+
calculator: boolean;
|
|
4
|
+
chi2Table: boolean;
|
|
5
|
+
periodicTable: boolean;
|
|
6
|
+
tTable: boolean;
|
|
7
|
+
zTable: boolean;
|
|
8
|
+
};
|
|
9
|
+
hints: ({
|
|
10
|
+
content: string;
|
|
11
|
+
images: {
|
|
12
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/a65a2cd2728b1fa6a12775cdfd353559f99d6582"?: undefined;
|
|
13
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/36325871333a2a9bdd2918c6b87d9104758c95e3"?: undefined;
|
|
14
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7165c486a581fb615a85de15378d40b81b266a20"?: undefined;
|
|
15
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7ebb22693e18c660e133351a0f6e4acd6678e871"?: undefined;
|
|
16
|
+
};
|
|
17
|
+
replace: boolean;
|
|
18
|
+
widgets: {
|
|
19
|
+
"explanation 1": {
|
|
20
|
+
alignment: string;
|
|
21
|
+
graded: boolean;
|
|
22
|
+
options: {
|
|
23
|
+
explanation: string;
|
|
24
|
+
hidePrompt: string;
|
|
25
|
+
showPrompt: string;
|
|
26
|
+
static: boolean;
|
|
27
|
+
widgets: {};
|
|
28
|
+
};
|
|
29
|
+
static: boolean;
|
|
30
|
+
type: string;
|
|
31
|
+
version: {
|
|
32
|
+
major: number;
|
|
33
|
+
minor: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
"explanation 2": {
|
|
37
|
+
alignment: string;
|
|
38
|
+
graded: boolean;
|
|
39
|
+
options: {
|
|
40
|
+
explanation: string;
|
|
41
|
+
hidePrompt: string;
|
|
42
|
+
showPrompt: string;
|
|
43
|
+
static: boolean;
|
|
44
|
+
widgets: {};
|
|
45
|
+
};
|
|
46
|
+
static: boolean;
|
|
47
|
+
type: string;
|
|
48
|
+
version: {
|
|
49
|
+
major: number;
|
|
50
|
+
minor: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
"graded-group 1"?: undefined;
|
|
54
|
+
"explanation 3"?: undefined;
|
|
55
|
+
"explanation 4"?: undefined;
|
|
56
|
+
"graded-group 2"?: undefined;
|
|
57
|
+
"graded-group 3"?: undefined;
|
|
58
|
+
"graded-group 4"?: undefined;
|
|
59
|
+
};
|
|
60
|
+
} | {
|
|
61
|
+
content: string;
|
|
62
|
+
images: {
|
|
63
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/a65a2cd2728b1fa6a12775cdfd353559f99d6582": {
|
|
64
|
+
height: number;
|
|
65
|
+
width: number;
|
|
66
|
+
};
|
|
67
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/36325871333a2a9bdd2918c6b87d9104758c95e3"?: undefined;
|
|
68
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7165c486a581fb615a85de15378d40b81b266a20"?: undefined;
|
|
69
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7ebb22693e18c660e133351a0f6e4acd6678e871"?: undefined;
|
|
70
|
+
};
|
|
71
|
+
replace: boolean;
|
|
72
|
+
widgets: {
|
|
73
|
+
"explanation 1": {
|
|
74
|
+
alignment: string;
|
|
75
|
+
graded: boolean;
|
|
76
|
+
options: {
|
|
77
|
+
explanation: string;
|
|
78
|
+
hidePrompt: string;
|
|
79
|
+
showPrompt: string;
|
|
80
|
+
static: boolean;
|
|
81
|
+
widgets: {};
|
|
82
|
+
};
|
|
83
|
+
static: boolean;
|
|
84
|
+
type: string;
|
|
85
|
+
version: {
|
|
86
|
+
major: number;
|
|
87
|
+
minor: number;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
"graded-group 1": {
|
|
91
|
+
alignment: string;
|
|
92
|
+
graded: boolean;
|
|
93
|
+
options: {
|
|
94
|
+
content: string;
|
|
95
|
+
images: {};
|
|
96
|
+
widgets: {
|
|
97
|
+
"orderer 1": {
|
|
98
|
+
alignment: string;
|
|
99
|
+
graded: boolean;
|
|
100
|
+
options: {
|
|
101
|
+
correctOptions: {
|
|
102
|
+
content: string;
|
|
103
|
+
}[];
|
|
104
|
+
height: string;
|
|
105
|
+
layout: string;
|
|
106
|
+
options: {
|
|
107
|
+
content: string;
|
|
108
|
+
}[];
|
|
109
|
+
otherOptions: never[];
|
|
110
|
+
};
|
|
111
|
+
static: boolean;
|
|
112
|
+
type: string;
|
|
113
|
+
version: {
|
|
114
|
+
major: number;
|
|
115
|
+
minor: number;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
"expression 1"?: undefined;
|
|
119
|
+
"radio 1"?: undefined;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
static: boolean;
|
|
123
|
+
type: string;
|
|
124
|
+
version: {
|
|
125
|
+
major: number;
|
|
126
|
+
minor: number;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
"explanation 2"?: undefined;
|
|
130
|
+
"explanation 3"?: undefined;
|
|
131
|
+
"explanation 4"?: undefined;
|
|
132
|
+
"graded-group 2"?: undefined;
|
|
133
|
+
"graded-group 3"?: undefined;
|
|
134
|
+
"graded-group 4"?: undefined;
|
|
135
|
+
};
|
|
136
|
+
} | {
|
|
137
|
+
content: string;
|
|
138
|
+
images: {
|
|
139
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/36325871333a2a9bdd2918c6b87d9104758c95e3": {
|
|
140
|
+
height: number;
|
|
141
|
+
width: number;
|
|
142
|
+
};
|
|
143
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7165c486a581fb615a85de15378d40b81b266a20": {
|
|
144
|
+
height: number;
|
|
145
|
+
width: number;
|
|
146
|
+
};
|
|
147
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/a65a2cd2728b1fa6a12775cdfd353559f99d6582"?: undefined;
|
|
148
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7ebb22693e18c660e133351a0f6e4acd6678e871"?: undefined;
|
|
149
|
+
};
|
|
150
|
+
replace: boolean;
|
|
151
|
+
widgets: {
|
|
152
|
+
"explanation 1": {
|
|
153
|
+
alignment: string;
|
|
154
|
+
graded: boolean;
|
|
155
|
+
options: {
|
|
156
|
+
explanation: string;
|
|
157
|
+
hidePrompt: string;
|
|
158
|
+
showPrompt: string;
|
|
159
|
+
static: boolean;
|
|
160
|
+
widgets: {};
|
|
161
|
+
};
|
|
162
|
+
static: boolean;
|
|
163
|
+
type: string;
|
|
164
|
+
version: {
|
|
165
|
+
major: number;
|
|
166
|
+
minor: number;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
"graded-group 1": {
|
|
170
|
+
alignment: string;
|
|
171
|
+
graded: boolean;
|
|
172
|
+
options: {
|
|
173
|
+
content: string;
|
|
174
|
+
images: {};
|
|
175
|
+
widgets: {
|
|
176
|
+
"expression 1": {
|
|
177
|
+
alignment: string;
|
|
178
|
+
graded: boolean;
|
|
179
|
+
options: {
|
|
180
|
+
answerForms: {
|
|
181
|
+
considered: string;
|
|
182
|
+
form: boolean;
|
|
183
|
+
key: number;
|
|
184
|
+
simplify: boolean;
|
|
185
|
+
value: string;
|
|
186
|
+
}[];
|
|
187
|
+
buttonSets: string[];
|
|
188
|
+
functions: string[];
|
|
189
|
+
times: boolean;
|
|
190
|
+
};
|
|
191
|
+
static: boolean;
|
|
192
|
+
type: string;
|
|
193
|
+
version: {
|
|
194
|
+
major: number;
|
|
195
|
+
minor: number;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
"orderer 1"?: undefined;
|
|
199
|
+
"radio 1"?: undefined;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
static: boolean;
|
|
203
|
+
type: string;
|
|
204
|
+
version: {
|
|
205
|
+
major: number;
|
|
206
|
+
minor: number;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
"explanation 2"?: undefined;
|
|
210
|
+
"explanation 3"?: undefined;
|
|
211
|
+
"explanation 4"?: undefined;
|
|
212
|
+
"graded-group 2"?: undefined;
|
|
213
|
+
"graded-group 3"?: undefined;
|
|
214
|
+
"graded-group 4"?: undefined;
|
|
215
|
+
};
|
|
216
|
+
} | {
|
|
217
|
+
content: string;
|
|
218
|
+
images: {
|
|
219
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7ebb22693e18c660e133351a0f6e4acd6678e871": {
|
|
220
|
+
height: number;
|
|
221
|
+
width: number;
|
|
222
|
+
};
|
|
223
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/a65a2cd2728b1fa6a12775cdfd353559f99d6582"?: undefined;
|
|
224
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/36325871333a2a9bdd2918c6b87d9104758c95e3"?: undefined;
|
|
225
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7165c486a581fb615a85de15378d40b81b266a20"?: undefined;
|
|
226
|
+
};
|
|
227
|
+
replace: boolean;
|
|
228
|
+
widgets: {
|
|
229
|
+
"explanation 1": {
|
|
230
|
+
alignment: string;
|
|
231
|
+
graded: boolean;
|
|
232
|
+
options: {
|
|
233
|
+
explanation: string;
|
|
234
|
+
hidePrompt: string;
|
|
235
|
+
showPrompt: string;
|
|
236
|
+
static: boolean;
|
|
237
|
+
widgets: {};
|
|
238
|
+
};
|
|
239
|
+
static: boolean;
|
|
240
|
+
type: string;
|
|
241
|
+
version: {
|
|
242
|
+
major: number;
|
|
243
|
+
minor: number;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
"graded-group 1": {
|
|
247
|
+
alignment: string;
|
|
248
|
+
graded: boolean;
|
|
249
|
+
options: {
|
|
250
|
+
content: string;
|
|
251
|
+
images: {};
|
|
252
|
+
widgets: {
|
|
253
|
+
"orderer 1": {
|
|
254
|
+
alignment: string;
|
|
255
|
+
graded: boolean;
|
|
256
|
+
options: {
|
|
257
|
+
correctOptions: {
|
|
258
|
+
content: string;
|
|
259
|
+
}[];
|
|
260
|
+
height: string;
|
|
261
|
+
layout: string;
|
|
262
|
+
options: {
|
|
263
|
+
content: string;
|
|
264
|
+
}[];
|
|
265
|
+
otherOptions: never[];
|
|
266
|
+
};
|
|
267
|
+
static: boolean;
|
|
268
|
+
type: string;
|
|
269
|
+
version: {
|
|
270
|
+
major: number;
|
|
271
|
+
minor: number;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
"expression 1"?: undefined;
|
|
275
|
+
"radio 1"?: undefined;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
static: boolean;
|
|
279
|
+
type: string;
|
|
280
|
+
version: {
|
|
281
|
+
major: number;
|
|
282
|
+
minor: number;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
"explanation 2"?: undefined;
|
|
286
|
+
"explanation 3"?: undefined;
|
|
287
|
+
"explanation 4"?: undefined;
|
|
288
|
+
"graded-group 2"?: undefined;
|
|
289
|
+
"graded-group 3"?: undefined;
|
|
290
|
+
"graded-group 4"?: undefined;
|
|
291
|
+
};
|
|
292
|
+
} | {
|
|
293
|
+
content: string;
|
|
294
|
+
images: {
|
|
295
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/a65a2cd2728b1fa6a12775cdfd353559f99d6582"?: undefined;
|
|
296
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/36325871333a2a9bdd2918c6b87d9104758c95e3"?: undefined;
|
|
297
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7165c486a581fb615a85de15378d40b81b266a20"?: undefined;
|
|
298
|
+
"web+graphie://ka-perseus-graphie.s3.amazonaws.com/7ebb22693e18c660e133351a0f6e4acd6678e871"?: undefined;
|
|
299
|
+
};
|
|
300
|
+
replace: boolean;
|
|
301
|
+
widgets: {
|
|
302
|
+
"explanation 1": {
|
|
303
|
+
alignment: string;
|
|
304
|
+
graded: boolean;
|
|
305
|
+
options: {
|
|
306
|
+
explanation: string;
|
|
307
|
+
hidePrompt: string;
|
|
308
|
+
showPrompt: string;
|
|
309
|
+
static: boolean;
|
|
310
|
+
widgets: {};
|
|
311
|
+
};
|
|
312
|
+
static: boolean;
|
|
313
|
+
type: string;
|
|
314
|
+
version: {
|
|
315
|
+
major: number;
|
|
316
|
+
minor: number;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
"explanation 2": {
|
|
320
|
+
alignment: string;
|
|
321
|
+
graded: boolean;
|
|
322
|
+
options: {
|
|
323
|
+
explanation: string;
|
|
324
|
+
hidePrompt: string;
|
|
325
|
+
showPrompt: string;
|
|
326
|
+
static: boolean;
|
|
327
|
+
widgets: {};
|
|
328
|
+
};
|
|
329
|
+
static: boolean;
|
|
330
|
+
type: string;
|
|
331
|
+
version: {
|
|
332
|
+
major: number;
|
|
333
|
+
minor: number;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
"explanation 3": {
|
|
337
|
+
alignment: string;
|
|
338
|
+
graded: boolean;
|
|
339
|
+
options: {
|
|
340
|
+
explanation: string;
|
|
341
|
+
hidePrompt: string;
|
|
342
|
+
showPrompt: string;
|
|
343
|
+
static: boolean;
|
|
344
|
+
widgets: {};
|
|
345
|
+
};
|
|
346
|
+
static: boolean;
|
|
347
|
+
type: string;
|
|
348
|
+
version: {
|
|
349
|
+
major: number;
|
|
350
|
+
minor: number;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
"explanation 4": {
|
|
354
|
+
alignment: string;
|
|
355
|
+
graded: boolean;
|
|
356
|
+
options: {
|
|
357
|
+
explanation: string;
|
|
358
|
+
hidePrompt: string;
|
|
359
|
+
showPrompt: string;
|
|
360
|
+
static: boolean;
|
|
361
|
+
widgets: {};
|
|
362
|
+
};
|
|
363
|
+
static: boolean;
|
|
364
|
+
type: string;
|
|
365
|
+
version: {
|
|
366
|
+
major: number;
|
|
367
|
+
minor: number;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
"graded-group 1": {
|
|
371
|
+
alignment: string;
|
|
372
|
+
graded: boolean;
|
|
373
|
+
options: {
|
|
374
|
+
content: string;
|
|
375
|
+
images: {};
|
|
376
|
+
widgets: {
|
|
377
|
+
"radio 1": {
|
|
378
|
+
alignment: string;
|
|
379
|
+
graded: boolean;
|
|
380
|
+
options: {
|
|
381
|
+
choices: ({
|
|
382
|
+
content: string;
|
|
383
|
+
correct: boolean;
|
|
384
|
+
isNoneOfTheAbove?: undefined;
|
|
385
|
+
} | {
|
|
386
|
+
content: string;
|
|
387
|
+
correct: boolean;
|
|
388
|
+
isNoneOfTheAbove: boolean;
|
|
389
|
+
})[];
|
|
390
|
+
deselectEnabled: boolean;
|
|
391
|
+
displayCount: null;
|
|
392
|
+
hasNoneOfTheAbove: boolean;
|
|
393
|
+
multipleSelect: boolean;
|
|
394
|
+
onePerLine: boolean;
|
|
395
|
+
randomize: boolean;
|
|
396
|
+
};
|
|
397
|
+
static: boolean;
|
|
398
|
+
type: string;
|
|
399
|
+
version: {
|
|
400
|
+
major: number;
|
|
401
|
+
minor: number;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
"orderer 1"?: undefined;
|
|
405
|
+
"expression 1"?: undefined;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
static: boolean;
|
|
409
|
+
type: string;
|
|
410
|
+
version: {
|
|
411
|
+
major: number;
|
|
412
|
+
minor: number;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
"graded-group 2": {
|
|
416
|
+
alignment: string;
|
|
417
|
+
graded: boolean;
|
|
418
|
+
options: {
|
|
419
|
+
content: string;
|
|
420
|
+
images: {};
|
|
421
|
+
widgets: {
|
|
422
|
+
"expression 1": {
|
|
423
|
+
alignment: string;
|
|
424
|
+
graded: boolean;
|
|
425
|
+
options: {
|
|
426
|
+
answerForms: {
|
|
427
|
+
considered: string;
|
|
428
|
+
form: boolean;
|
|
429
|
+
key: number;
|
|
430
|
+
simplify: boolean;
|
|
431
|
+
value: string;
|
|
432
|
+
}[];
|
|
433
|
+
buttonSets: string[];
|
|
434
|
+
functions: string[];
|
|
435
|
+
times: boolean;
|
|
436
|
+
};
|
|
437
|
+
static: boolean;
|
|
438
|
+
type: string;
|
|
439
|
+
version: {
|
|
440
|
+
major: number;
|
|
441
|
+
minor: number;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
static: boolean;
|
|
447
|
+
type: string;
|
|
448
|
+
version: {
|
|
449
|
+
major: number;
|
|
450
|
+
minor: number;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
"graded-group 3": {
|
|
454
|
+
alignment: string;
|
|
455
|
+
graded: boolean;
|
|
456
|
+
options: {
|
|
457
|
+
content: string;
|
|
458
|
+
images: {};
|
|
459
|
+
widgets: {
|
|
460
|
+
"numeric-input 1": {
|
|
461
|
+
alignment: string;
|
|
462
|
+
graded: boolean;
|
|
463
|
+
options: {
|
|
464
|
+
answers: {
|
|
465
|
+
answerForms: string[];
|
|
466
|
+
maxError: null;
|
|
467
|
+
message: string;
|
|
468
|
+
simplify: string;
|
|
469
|
+
status: string;
|
|
470
|
+
strict: boolean;
|
|
471
|
+
value: number;
|
|
472
|
+
}[];
|
|
473
|
+
coefficient: boolean;
|
|
474
|
+
labelText: string;
|
|
475
|
+
size: string;
|
|
476
|
+
static: boolean;
|
|
477
|
+
};
|
|
478
|
+
static: boolean;
|
|
479
|
+
type: string;
|
|
480
|
+
version: {
|
|
481
|
+
major: number;
|
|
482
|
+
minor: number;
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
static: boolean;
|
|
488
|
+
type: string;
|
|
489
|
+
version: {
|
|
490
|
+
major: number;
|
|
491
|
+
minor: number;
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
"graded-group 4": {
|
|
495
|
+
alignment: string;
|
|
496
|
+
graded: boolean;
|
|
497
|
+
options: {
|
|
498
|
+
content: string;
|
|
499
|
+
images: {};
|
|
500
|
+
widgets: {
|
|
501
|
+
"matcher 1": {
|
|
502
|
+
alignment: string;
|
|
503
|
+
graded: boolean;
|
|
504
|
+
options: {
|
|
505
|
+
labels: string[];
|
|
506
|
+
left: string[];
|
|
507
|
+
orderMatters: boolean;
|
|
508
|
+
padding: boolean;
|
|
509
|
+
right: string[];
|
|
510
|
+
};
|
|
511
|
+
static: boolean;
|
|
512
|
+
type: string;
|
|
513
|
+
version: {
|
|
514
|
+
major: number;
|
|
515
|
+
minor: number;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
static: boolean;
|
|
521
|
+
type: string;
|
|
522
|
+
version: {
|
|
523
|
+
major: number;
|
|
524
|
+
minor: number;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
})[];
|
|
529
|
+
itemDataVersion: {
|
|
530
|
+
major: number;
|
|
531
|
+
minor: number;
|
|
532
|
+
};
|
|
533
|
+
question: {
|
|
534
|
+
content: string;
|
|
535
|
+
images: {};
|
|
536
|
+
widgets: {};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
export default _default;
|
package/dist/parse-perseus-json/regression-tests/item-data/orderer-option-missing-widgets.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
answerArea: {
|
|
3
|
+
calculator: boolean;
|
|
4
|
+
options: {
|
|
5
|
+
content: string;
|
|
6
|
+
images: {};
|
|
7
|
+
widgets: {};
|
|
8
|
+
};
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
hints: ({
|
|
12
|
+
content: string;
|
|
13
|
+
images: {};
|
|
14
|
+
widgets: {
|
|
15
|
+
"orderer 1": {
|
|
16
|
+
graded: boolean;
|
|
17
|
+
options: {
|
|
18
|
+
correctOptions: {
|
|
19
|
+
content: string;
|
|
20
|
+
}[];
|
|
21
|
+
height: string;
|
|
22
|
+
layout: string;
|
|
23
|
+
options: {
|
|
24
|
+
content: string;
|
|
25
|
+
}[];
|
|
26
|
+
otherOptions: {
|
|
27
|
+
content: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
type: string;
|
|
31
|
+
version: {
|
|
32
|
+
major: number;
|
|
33
|
+
minor: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
content: string;
|
|
39
|
+
images: {};
|
|
40
|
+
widgets: {
|
|
41
|
+
"orderer 1"?: undefined;
|
|
42
|
+
};
|
|
43
|
+
})[];
|
|
44
|
+
itemDataVersion: {
|
|
45
|
+
major: number;
|
|
46
|
+
minor: number;
|
|
47
|
+
};
|
|
48
|
+
question: {
|
|
49
|
+
content: string;
|
|
50
|
+
images: {
|
|
51
|
+
"https://ka-perseus-images.s3.amazonaws.com/1f68a48ffbc7b137e99fbcbb11e9747ae799fe01.jpg": {
|
|
52
|
+
height: number;
|
|
53
|
+
width: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
widgets: {
|
|
57
|
+
"radio 1": {
|
|
58
|
+
graded: boolean;
|
|
59
|
+
options: {
|
|
60
|
+
choices: {
|
|
61
|
+
content: string;
|
|
62
|
+
correct: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
deselectEnabled: boolean;
|
|
65
|
+
displayCount: null;
|
|
66
|
+
multipleSelect: boolean;
|
|
67
|
+
noneOfTheAbove: boolean;
|
|
68
|
+
onePerLine: boolean;
|
|
69
|
+
randomize: boolean;
|
|
70
|
+
};
|
|
71
|
+
type: string;
|
|
72
|
+
version: {
|
|
73
|
+
major: number;
|
|
74
|
+
minor: number;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
answerArea: {
|
|
3
|
+
calculator: boolean;
|
|
4
|
+
options: {
|
|
5
|
+
content: string;
|
|
6
|
+
widgets: {};
|
|
7
|
+
};
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
hints: {
|
|
11
|
+
content: string;
|
|
12
|
+
widgets: {};
|
|
13
|
+
}[];
|
|
14
|
+
question: {
|
|
15
|
+
content: string;
|
|
16
|
+
widgets: {
|
|
17
|
+
"orderer 1": {
|
|
18
|
+
options: {
|
|
19
|
+
correctOptions: {
|
|
20
|
+
content: string;
|
|
21
|
+
}[];
|
|
22
|
+
height: string;
|
|
23
|
+
options: {
|
|
24
|
+
content: string;
|
|
25
|
+
}[];
|
|
26
|
+
otherOptions: never[];
|
|
27
|
+
};
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|