@pie-element/math-templated 2.18.0 → 2.19.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/CHANGELOG.md +19 -0
- package/configure/CHANGELOG.md +11 -0
- package/configure/lib/design.js +2 -1
- package/configure/lib/design.js.map +1 -1
- package/configure/lib/response.js +2 -1
- package/configure/lib/response.js.map +1 -1
- package/configure/package.json +1 -1
- package/controller/CHANGELOG.md +16 -0
- package/controller/lib/index.js +2 -4
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +1205 -59
- package/docs/config-schema.json.md +874 -29
- package/docs/pie-schema.json +758 -7
- package/docs/pie-schema.json.md +552 -7
- package/module/controller.js +4 -4
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/package.json +2 -2
package/docs/pie-schema.json
CHANGED
|
@@ -1,35 +1,228 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "
|
|
2
|
+
"description": "Model for the @pie-elements/math-templated",
|
|
3
3
|
"additionalProperties": false,
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"markup": {
|
|
7
|
+
"description": "Indicates markup value",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"title": "markup"
|
|
10
|
+
},
|
|
6
11
|
"prompt": {
|
|
7
|
-
"description": "
|
|
12
|
+
"description": "Indicates prompt value",
|
|
8
13
|
"type": "string",
|
|
9
14
|
"title": "prompt"
|
|
10
15
|
},
|
|
11
16
|
"promptEnabled": {
|
|
12
|
-
"description": "
|
|
17
|
+
"description": "Indicates if Prompt is enabled",
|
|
13
18
|
"type": "boolean",
|
|
14
19
|
"title": "promptEnabled"
|
|
15
20
|
},
|
|
16
|
-
"
|
|
17
|
-
"description": "
|
|
21
|
+
"teacherInstructionsEnabled": {
|
|
22
|
+
"description": "Indicates if Teacher Instructions are enabled",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"title": "teacherInstructionsEnabled"
|
|
25
|
+
},
|
|
26
|
+
"rationale": {
|
|
27
|
+
"description": "Indicates rationale value",
|
|
18
28
|
"type": "string",
|
|
19
|
-
"title": "
|
|
29
|
+
"title": "rationale"
|
|
30
|
+
},
|
|
31
|
+
"rationaleEnabled": {
|
|
32
|
+
"description": "Indicates if Rationale is enabled",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"title": "rationaleEnabled"
|
|
35
|
+
},
|
|
36
|
+
"spellCheckEnabled": {
|
|
37
|
+
"description": "Indicates if Spell Check is enabled",
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"title": "spellCheckEnabled"
|
|
40
|
+
},
|
|
41
|
+
"playerSpellCheckEnabled": {
|
|
42
|
+
"description": "Indicates if Player Spell Check is enabled",
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"title": "playerSpellCheckEnabled"
|
|
45
|
+
},
|
|
46
|
+
"responses": {
|
|
47
|
+
"description": "Array of all responses",
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"title": "Response",
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"allowTrailingZeros": {
|
|
54
|
+
"description": "Indicates the allowance of trailing zeros in expressions",
|
|
55
|
+
"default": "is false",
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"title": "allowTrailingZeros"
|
|
58
|
+
},
|
|
59
|
+
"answer": {
|
|
60
|
+
"description": "The value for the response's answer",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"title": "answer"
|
|
63
|
+
},
|
|
64
|
+
"id": {
|
|
65
|
+
"description": "The id for the response",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"title": "id"
|
|
68
|
+
},
|
|
69
|
+
"validation": {
|
|
70
|
+
"description": "Indicates what type of validation should be applied on the response",
|
|
71
|
+
"default": "is literal",
|
|
72
|
+
"enum": [
|
|
73
|
+
"literal",
|
|
74
|
+
"symbolic"
|
|
75
|
+
],
|
|
76
|
+
"type": "string",
|
|
77
|
+
"title": "validation"
|
|
78
|
+
},
|
|
79
|
+
"ignoreOrder": {
|
|
80
|
+
"description": "Indicates if the order of expression elements in literal validation can be ignore",
|
|
81
|
+
"default": "is false",
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"title": "ignoreOrder"
|
|
84
|
+
},
|
|
85
|
+
"alternates": {
|
|
86
|
+
"description": "For validation type = literal, alternates represents\nan object with some alternatives for the correct answers",
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"patternProperties": {
|
|
90
|
+
"^[0-9]+$": {
|
|
91
|
+
"title": "Alternate",
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"id": {
|
|
95
|
+
"description": "The id for the alternative response",
|
|
96
|
+
"type": "number",
|
|
97
|
+
"title": "id"
|
|
98
|
+
},
|
|
99
|
+
"answer": {
|
|
100
|
+
"description": "The value for the alternative response",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"title": "answer"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"answer",
|
|
107
|
+
"id"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"title": "alternates"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"allowTrailingZeros",
|
|
116
|
+
"alternates",
|
|
117
|
+
"answer",
|
|
118
|
+
"id",
|
|
119
|
+
"ignoreOrder",
|
|
120
|
+
"validation"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"title": "responses"
|
|
20
124
|
},
|
|
21
125
|
"element": {
|
|
22
126
|
"description": "The html Element tag name",
|
|
23
127
|
"type": "string",
|
|
24
128
|
"title": "element"
|
|
129
|
+
},
|
|
130
|
+
"equationEditor": {
|
|
131
|
+
"description": "Indicates what type of editor should be displayed for all the possible responses\n1 for Grade 1 - 2\n3 for Grade 3 - 5\n6 for Grade 6 - 7\n8 for Grade 8 - HS\nnon-negative-integers\nintegers\ndecimals\nfractions\ngeometry\nadvanced-algebra\nstatistics",
|
|
132
|
+
"default": "- item-authoring",
|
|
133
|
+
"enum": [
|
|
134
|
+
1,
|
|
135
|
+
3,
|
|
136
|
+
6,
|
|
137
|
+
8,
|
|
138
|
+
"advanced-algebra",
|
|
139
|
+
"decimals",
|
|
140
|
+
"fractions",
|
|
141
|
+
"geometry",
|
|
142
|
+
"integers",
|
|
143
|
+
"item-authoring",
|
|
144
|
+
"non-negative-integers",
|
|
145
|
+
"statistics"
|
|
146
|
+
],
|
|
147
|
+
"title": "equationEditor"
|
|
148
|
+
},
|
|
149
|
+
"ignoreOrderDefault": {
|
|
150
|
+
"description": "Indicates the default value for ignoreOrder, in case that it's not set",
|
|
151
|
+
"default": "is false",
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"title": "ignoreOrderDefault"
|
|
154
|
+
},
|
|
155
|
+
"allowTrailingZerosDefault": {
|
|
156
|
+
"description": "Indicates the default value for allowTrailingZeros, in case that it's not set",
|
|
157
|
+
"default": "is false",
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"title": "allowTrailingZerosDefault"
|
|
160
|
+
},
|
|
161
|
+
"toolbarEditorPosition": {
|
|
162
|
+
"description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
|
|
163
|
+
"default": ": 'bottom'",
|
|
164
|
+
"enum": [
|
|
165
|
+
"bottom",
|
|
166
|
+
"top"
|
|
167
|
+
],
|
|
168
|
+
"type": "string",
|
|
169
|
+
"title": "toolbarEditorPosition"
|
|
170
|
+
},
|
|
171
|
+
"validationDefault": {
|
|
172
|
+
"description": "Indicates what type of validation should be applied on the response",
|
|
173
|
+
"default": "is literal",
|
|
174
|
+
"enum": [
|
|
175
|
+
"literal",
|
|
176
|
+
"symbolic"
|
|
177
|
+
],
|
|
178
|
+
"type": "string",
|
|
179
|
+
"title": "validationDefault"
|
|
180
|
+
},
|
|
181
|
+
"id": {
|
|
182
|
+
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
|
|
183
|
+
"type": "string",
|
|
184
|
+
"title": "id"
|
|
25
185
|
}
|
|
26
186
|
},
|
|
27
187
|
"required": [
|
|
188
|
+
"allowTrailingZerosDefault",
|
|
28
189
|
"element",
|
|
190
|
+
"equationEditor",
|
|
29
191
|
"id",
|
|
30
|
-
"
|
|
192
|
+
"ignoreOrderDefault",
|
|
193
|
+
"markup",
|
|
194
|
+
"playerSpellCheckEnabled",
|
|
195
|
+
"prompt",
|
|
196
|
+
"promptEnabled",
|
|
197
|
+
"rationale",
|
|
198
|
+
"rationaleEnabled",
|
|
199
|
+
"responses",
|
|
200
|
+
"spellCheckEnabled",
|
|
201
|
+
"teacherInstructionsEnabled",
|
|
202
|
+
"validationDefault"
|
|
31
203
|
],
|
|
32
204
|
"definitions": {
|
|
205
|
+
"ConfigurePropWithEnabled": {
|
|
206
|
+
"title": "ConfigurePropWithEnabled",
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"enabled": {
|
|
210
|
+
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"title": "enabled"
|
|
213
|
+
},
|
|
214
|
+
"settings": {
|
|
215
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"title": "settings"
|
|
218
|
+
},
|
|
219
|
+
"label": {
|
|
220
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
221
|
+
"type": "string",
|
|
222
|
+
"title": "label"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
33
226
|
"ConfigureProp": {
|
|
34
227
|
"title": "ConfigureProp",
|
|
35
228
|
"type": "object",
|
|
@@ -45,6 +238,564 @@
|
|
|
45
238
|
"title": "label"
|
|
46
239
|
}
|
|
47
240
|
}
|
|
241
|
+
},
|
|
242
|
+
"EditableHtmlConfigureProp": {
|
|
243
|
+
"title": "EditableHtmlConfigureProp",
|
|
244
|
+
"type": "object",
|
|
245
|
+
"properties": {
|
|
246
|
+
"math": {
|
|
247
|
+
"title": "EditableHtmlButtonConfigure",
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"disabled": {
|
|
251
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"title": "disabled"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"audio": {
|
|
258
|
+
"title": "EditableHtmlButtonConfigure",
|
|
259
|
+
"type": "object",
|
|
260
|
+
"properties": {
|
|
261
|
+
"disabled": {
|
|
262
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"title": "disabled"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"video": {
|
|
269
|
+
"title": "EditableHtmlButtonConfigure",
|
|
270
|
+
"type": "object",
|
|
271
|
+
"properties": {
|
|
272
|
+
"disabled": {
|
|
273
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
274
|
+
"type": "boolean",
|
|
275
|
+
"title": "disabled"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"image": {
|
|
280
|
+
"title": "EditableHtmlButtonConfigure",
|
|
281
|
+
"type": "object",
|
|
282
|
+
"properties": {
|
|
283
|
+
"disabled": {
|
|
284
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
285
|
+
"type": "boolean",
|
|
286
|
+
"title": "disabled"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"customPlugins": {
|
|
291
|
+
"description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
|
|
292
|
+
"type": "array",
|
|
293
|
+
"items": {
|
|
294
|
+
"title": "CustomPlugin",
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"event": {
|
|
298
|
+
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
299
|
+
"type": "string",
|
|
300
|
+
"title": "event"
|
|
301
|
+
},
|
|
302
|
+
"iconAlt": {
|
|
303
|
+
"description": "The alt for the custom button icon",
|
|
304
|
+
"type": "string",
|
|
305
|
+
"title": "iconAlt"
|
|
306
|
+
},
|
|
307
|
+
"iconType": {
|
|
308
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
309
|
+
"type": "string",
|
|
310
|
+
"title": "iconType"
|
|
311
|
+
},
|
|
312
|
+
"icon": {
|
|
313
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
314
|
+
"type": "string",
|
|
315
|
+
"title": "icon"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"required": [
|
|
319
|
+
"event",
|
|
320
|
+
"icon",
|
|
321
|
+
"iconAlt",
|
|
322
|
+
"iconType"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"title": "customPlugins"
|
|
326
|
+
},
|
|
327
|
+
"blockquote": {
|
|
328
|
+
"title": "EditableHtmlButtonConfigure",
|
|
329
|
+
"type": "object",
|
|
330
|
+
"properties": {
|
|
331
|
+
"disabled": {
|
|
332
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"title": "disabled"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"h3": {
|
|
339
|
+
"title": "EditableHtmlButtonConfigure",
|
|
340
|
+
"type": "object",
|
|
341
|
+
"properties": {
|
|
342
|
+
"disabled": {
|
|
343
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"title": "disabled"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"EditableHtmlButtonConfigure": {
|
|
352
|
+
"title": "EditableHtmlButtonConfigure",
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"disabled": {
|
|
356
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
357
|
+
"type": "boolean",
|
|
358
|
+
"title": "disabled"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"CustomPlugin": {
|
|
363
|
+
"title": "CustomPlugin",
|
|
364
|
+
"type": "object",
|
|
365
|
+
"properties": {
|
|
366
|
+
"event": {
|
|
367
|
+
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
368
|
+
"type": "string",
|
|
369
|
+
"title": "event"
|
|
370
|
+
},
|
|
371
|
+
"iconAlt": {
|
|
372
|
+
"description": "The alt for the custom button icon",
|
|
373
|
+
"type": "string",
|
|
374
|
+
"title": "iconAlt"
|
|
375
|
+
},
|
|
376
|
+
"iconType": {
|
|
377
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
378
|
+
"type": "string",
|
|
379
|
+
"title": "iconType"
|
|
380
|
+
},
|
|
381
|
+
"icon": {
|
|
382
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"title": "icon"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": [
|
|
388
|
+
"event",
|
|
389
|
+
"icon",
|
|
390
|
+
"iconAlt",
|
|
391
|
+
"iconType"
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"EditableHtmlPluginConfigureRequired": {
|
|
395
|
+
"title": "EditableHtmlPluginConfigureRequired",
|
|
396
|
+
"type": "object",
|
|
397
|
+
"properties": {
|
|
398
|
+
"inputConfiguration": {
|
|
399
|
+
"title": "EditableHtmlConfigureProp",
|
|
400
|
+
"type": "object",
|
|
401
|
+
"properties": {
|
|
402
|
+
"math": {
|
|
403
|
+
"title": "EditableHtmlButtonConfigure",
|
|
404
|
+
"type": "object",
|
|
405
|
+
"properties": {
|
|
406
|
+
"disabled": {
|
|
407
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
408
|
+
"type": "boolean",
|
|
409
|
+
"title": "disabled"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"audio": {
|
|
414
|
+
"title": "EditableHtmlButtonConfigure",
|
|
415
|
+
"type": "object",
|
|
416
|
+
"properties": {
|
|
417
|
+
"disabled": {
|
|
418
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
419
|
+
"type": "boolean",
|
|
420
|
+
"title": "disabled"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"video": {
|
|
425
|
+
"title": "EditableHtmlButtonConfigure",
|
|
426
|
+
"type": "object",
|
|
427
|
+
"properties": {
|
|
428
|
+
"disabled": {
|
|
429
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
430
|
+
"type": "boolean",
|
|
431
|
+
"title": "disabled"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"image": {
|
|
436
|
+
"title": "EditableHtmlButtonConfigure",
|
|
437
|
+
"type": "object",
|
|
438
|
+
"properties": {
|
|
439
|
+
"disabled": {
|
|
440
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
441
|
+
"type": "boolean",
|
|
442
|
+
"title": "disabled"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"customPlugins": {
|
|
447
|
+
"description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
|
|
448
|
+
"type": "array",
|
|
449
|
+
"items": {
|
|
450
|
+
"title": "CustomPlugin",
|
|
451
|
+
"type": "object",
|
|
452
|
+
"properties": {
|
|
453
|
+
"event": {
|
|
454
|
+
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
455
|
+
"type": "string",
|
|
456
|
+
"title": "event"
|
|
457
|
+
},
|
|
458
|
+
"iconAlt": {
|
|
459
|
+
"description": "The alt for the custom button icon",
|
|
460
|
+
"type": "string",
|
|
461
|
+
"title": "iconAlt"
|
|
462
|
+
},
|
|
463
|
+
"iconType": {
|
|
464
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
465
|
+
"type": "string",
|
|
466
|
+
"title": "iconType"
|
|
467
|
+
},
|
|
468
|
+
"icon": {
|
|
469
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
470
|
+
"type": "string",
|
|
471
|
+
"title": "icon"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"required": [
|
|
475
|
+
"event",
|
|
476
|
+
"icon",
|
|
477
|
+
"iconAlt",
|
|
478
|
+
"iconType"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"title": "customPlugins"
|
|
482
|
+
},
|
|
483
|
+
"blockquote": {
|
|
484
|
+
"title": "EditableHtmlButtonConfigure",
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"disabled": {
|
|
488
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
489
|
+
"type": "boolean",
|
|
490
|
+
"title": "disabled"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"h3": {
|
|
495
|
+
"title": "EditableHtmlButtonConfigure",
|
|
496
|
+
"type": "object",
|
|
497
|
+
"properties": {
|
|
498
|
+
"disabled": {
|
|
499
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
500
|
+
"type": "boolean",
|
|
501
|
+
"title": "disabled"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"required": {
|
|
508
|
+
"description": "Indicates if the item is required and the value cannot be empty",
|
|
509
|
+
"type": "boolean",
|
|
510
|
+
"title": "required"
|
|
511
|
+
},
|
|
512
|
+
"settings": {
|
|
513
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
514
|
+
"type": "boolean",
|
|
515
|
+
"title": "settings"
|
|
516
|
+
},
|
|
517
|
+
"label": {
|
|
518
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
519
|
+
"type": "string",
|
|
520
|
+
"title": "label"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"EditableHtmlPluginConfigure": {
|
|
525
|
+
"title": "EditableHtmlPluginConfigure",
|
|
526
|
+
"type": "object",
|
|
527
|
+
"properties": {
|
|
528
|
+
"inputConfiguration": {
|
|
529
|
+
"title": "EditableHtmlConfigureProp",
|
|
530
|
+
"type": "object",
|
|
531
|
+
"properties": {
|
|
532
|
+
"math": {
|
|
533
|
+
"title": "EditableHtmlButtonConfigure",
|
|
534
|
+
"type": "object",
|
|
535
|
+
"properties": {
|
|
536
|
+
"disabled": {
|
|
537
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
538
|
+
"type": "boolean",
|
|
539
|
+
"title": "disabled"
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"audio": {
|
|
544
|
+
"title": "EditableHtmlButtonConfigure",
|
|
545
|
+
"type": "object",
|
|
546
|
+
"properties": {
|
|
547
|
+
"disabled": {
|
|
548
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
549
|
+
"type": "boolean",
|
|
550
|
+
"title": "disabled"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"video": {
|
|
555
|
+
"title": "EditableHtmlButtonConfigure",
|
|
556
|
+
"type": "object",
|
|
557
|
+
"properties": {
|
|
558
|
+
"disabled": {
|
|
559
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
560
|
+
"type": "boolean",
|
|
561
|
+
"title": "disabled"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"image": {
|
|
566
|
+
"title": "EditableHtmlButtonConfigure",
|
|
567
|
+
"type": "object",
|
|
568
|
+
"properties": {
|
|
569
|
+
"disabled": {
|
|
570
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
571
|
+
"type": "boolean",
|
|
572
|
+
"title": "disabled"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"customPlugins": {
|
|
577
|
+
"description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
|
|
578
|
+
"type": "array",
|
|
579
|
+
"items": {
|
|
580
|
+
"title": "CustomPlugin",
|
|
581
|
+
"type": "object",
|
|
582
|
+
"properties": {
|
|
583
|
+
"event": {
|
|
584
|
+
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
585
|
+
"type": "string",
|
|
586
|
+
"title": "event"
|
|
587
|
+
},
|
|
588
|
+
"iconAlt": {
|
|
589
|
+
"description": "The alt for the custom button icon",
|
|
590
|
+
"type": "string",
|
|
591
|
+
"title": "iconAlt"
|
|
592
|
+
},
|
|
593
|
+
"iconType": {
|
|
594
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
595
|
+
"type": "string",
|
|
596
|
+
"title": "iconType"
|
|
597
|
+
},
|
|
598
|
+
"icon": {
|
|
599
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
600
|
+
"type": "string",
|
|
601
|
+
"title": "icon"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"event",
|
|
606
|
+
"icon",
|
|
607
|
+
"iconAlt",
|
|
608
|
+
"iconType"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
"title": "customPlugins"
|
|
612
|
+
},
|
|
613
|
+
"blockquote": {
|
|
614
|
+
"title": "EditableHtmlButtonConfigure",
|
|
615
|
+
"type": "object",
|
|
616
|
+
"properties": {
|
|
617
|
+
"disabled": {
|
|
618
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
619
|
+
"type": "boolean",
|
|
620
|
+
"title": "disabled"
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"h3": {
|
|
625
|
+
"title": "EditableHtmlButtonConfigure",
|
|
626
|
+
"type": "object",
|
|
627
|
+
"properties": {
|
|
628
|
+
"disabled": {
|
|
629
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
630
|
+
"type": "boolean",
|
|
631
|
+
"title": "disabled"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"settings": {
|
|
638
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
639
|
+
"type": "boolean",
|
|
640
|
+
"title": "settings"
|
|
641
|
+
},
|
|
642
|
+
"label": {
|
|
643
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
644
|
+
"type": "string",
|
|
645
|
+
"title": "label"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
650
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
651
|
+
"type": "object",
|
|
652
|
+
"properties": {
|
|
653
|
+
"teacherInstructions": {
|
|
654
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
655
|
+
"type": "number",
|
|
656
|
+
"title": "teacherInstructions"
|
|
657
|
+
},
|
|
658
|
+
"prompt": {
|
|
659
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
660
|
+
"type": "number",
|
|
661
|
+
"title": "prompt"
|
|
662
|
+
},
|
|
663
|
+
"rationale": {
|
|
664
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
665
|
+
"type": "number",
|
|
666
|
+
"title": "rationale"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"ConfigureMathMLProp": {
|
|
671
|
+
"title": "ConfigureMathMLProp",
|
|
672
|
+
"type": "object",
|
|
673
|
+
"properties": {
|
|
674
|
+
"mmlOutput": {
|
|
675
|
+
"description": "Indicates if model should have mathML output instead of latex",
|
|
676
|
+
"type": "number",
|
|
677
|
+
"title": "mmlOutput"
|
|
678
|
+
},
|
|
679
|
+
"mmlEditing": {
|
|
680
|
+
"description": "Indicates if mathML that's already in model should be editable",
|
|
681
|
+
"type": "number",
|
|
682
|
+
"title": "mmlEditing"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"ConfigureLanguageOptionsProp": {
|
|
687
|
+
"title": "ConfigureLanguageOptionsProp",
|
|
688
|
+
"type": "object",
|
|
689
|
+
"properties": {
|
|
690
|
+
"value": {
|
|
691
|
+
"description": "Value of the language option",
|
|
692
|
+
"type": "string",
|
|
693
|
+
"title": "value"
|
|
694
|
+
},
|
|
695
|
+
"label": {
|
|
696
|
+
"description": "Label of the language option",
|
|
697
|
+
"type": "string",
|
|
698
|
+
"title": "label"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"required": [
|
|
702
|
+
"label",
|
|
703
|
+
"value"
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
"Response": {
|
|
707
|
+
"title": "Response",
|
|
708
|
+
"type": "object",
|
|
709
|
+
"properties": {
|
|
710
|
+
"allowTrailingZeros": {
|
|
711
|
+
"description": "Indicates the allowance of trailing zeros in expressions",
|
|
712
|
+
"default": "is false",
|
|
713
|
+
"type": "boolean",
|
|
714
|
+
"title": "allowTrailingZeros"
|
|
715
|
+
},
|
|
716
|
+
"answer": {
|
|
717
|
+
"description": "The value for the response's answer",
|
|
718
|
+
"type": "string",
|
|
719
|
+
"title": "answer"
|
|
720
|
+
},
|
|
721
|
+
"id": {
|
|
722
|
+
"description": "The id for the response",
|
|
723
|
+
"type": "string",
|
|
724
|
+
"title": "id"
|
|
725
|
+
},
|
|
726
|
+
"validation": {
|
|
727
|
+
"description": "Indicates what type of validation should be applied on the response",
|
|
728
|
+
"default": "is literal",
|
|
729
|
+
"enum": [
|
|
730
|
+
"literal",
|
|
731
|
+
"symbolic"
|
|
732
|
+
],
|
|
733
|
+
"type": "string",
|
|
734
|
+
"title": "validation"
|
|
735
|
+
},
|
|
736
|
+
"ignoreOrder": {
|
|
737
|
+
"description": "Indicates if the order of expression elements in literal validation can be ignore",
|
|
738
|
+
"default": "is false",
|
|
739
|
+
"type": "boolean",
|
|
740
|
+
"title": "ignoreOrder"
|
|
741
|
+
},
|
|
742
|
+
"alternates": {
|
|
743
|
+
"description": "For validation type = literal, alternates represents\nan object with some alternatives for the correct answers",
|
|
744
|
+
"type": "object",
|
|
745
|
+
"additionalProperties": false,
|
|
746
|
+
"patternProperties": {
|
|
747
|
+
"^[0-9]+$": {
|
|
748
|
+
"title": "Alternate",
|
|
749
|
+
"type": "object",
|
|
750
|
+
"properties": {
|
|
751
|
+
"id": {
|
|
752
|
+
"description": "The id for the alternative response",
|
|
753
|
+
"type": "number",
|
|
754
|
+
"title": "id"
|
|
755
|
+
},
|
|
756
|
+
"answer": {
|
|
757
|
+
"description": "The value for the alternative response",
|
|
758
|
+
"type": "string",
|
|
759
|
+
"title": "answer"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"required": [
|
|
763
|
+
"answer",
|
|
764
|
+
"id"
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"title": "alternates"
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
"required": [
|
|
772
|
+
"allowTrailingZeros",
|
|
773
|
+
"alternates",
|
|
774
|
+
"answer",
|
|
775
|
+
"id",
|
|
776
|
+
"ignoreOrder",
|
|
777
|
+
"validation"
|
|
778
|
+
]
|
|
779
|
+
},
|
|
780
|
+
"Alternate": {
|
|
781
|
+
"title": "Alternate",
|
|
782
|
+
"type": "object",
|
|
783
|
+
"properties": {
|
|
784
|
+
"id": {
|
|
785
|
+
"description": "The id for the alternative response",
|
|
786
|
+
"type": "number",
|
|
787
|
+
"title": "id"
|
|
788
|
+
},
|
|
789
|
+
"answer": {
|
|
790
|
+
"description": "The value for the alternative response",
|
|
791
|
+
"type": "string",
|
|
792
|
+
"title": "answer"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"required": [
|
|
796
|
+
"answer",
|
|
797
|
+
"id"
|
|
798
|
+
]
|
|
48
799
|
}
|
|
49
800
|
},
|
|
50
801
|
"$schema": "http://json-schema.org/draft-07/schema#"
|