@pie-element/placement-ordering 14.1.2-next.5 → 14.1.3

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.
Files changed (108) hide show
  1. package/CHANGELOG.json +1312 -0
  2. package/CHANGELOG.md +2444 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +57 -0
  5. package/configure/CHANGELOG.json +952 -0
  6. package/configure/CHANGELOG.md +2139 -0
  7. package/configure/lib/choice-editor.js +252 -0
  8. package/configure/lib/choice-editor.js.map +1 -0
  9. package/configure/lib/choice-tile.js +205 -0
  10. package/configure/lib/choice-tile.js.map +1 -0
  11. package/configure/lib/defaults.js +211 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/design.js +427 -0
  14. package/configure/lib/design.js.map +1 -0
  15. package/configure/lib/help.js +14 -0
  16. package/configure/lib/help.js.map +1 -0
  17. package/configure/lib/index.js +155 -0
  18. package/configure/lib/index.js.map +1 -0
  19. package/configure/lib/utils.js +108 -0
  20. package/configure/lib/utils.js.map +1 -0
  21. package/configure/package.json +26 -0
  22. package/controller/CHANGELOG.json +517 -0
  23. package/controller/CHANGELOG.md +1518 -0
  24. package/controller/lib/defaults.js +29 -0
  25. package/controller/lib/defaults.js.map +1 -0
  26. package/controller/lib/index.js +285 -0
  27. package/controller/lib/index.js.map +1 -0
  28. package/controller/lib/scoring.js +109 -0
  29. package/controller/lib/scoring.js.map +1 -0
  30. package/controller/package.json +15 -0
  31. package/docs/config-schema.json +2964 -0
  32. package/docs/config-schema.json.md +2190 -0
  33. package/docs/demo/config.js +8 -0
  34. package/docs/demo/generate.js +50 -0
  35. package/docs/demo/index.html +1 -0
  36. package/docs/demo/session.js +7 -0
  37. package/docs/pie-schema.json +1613 -0
  38. package/docs/pie-schema.json.md +973 -0
  39. package/icon.png +0 -0
  40. package/lib/index.js +122 -0
  41. package/lib/index.js.map +1 -0
  42. package/lib/main.js +32 -0
  43. package/lib/main.js.map +1 -0
  44. package/lib/ordering.js +165 -0
  45. package/lib/ordering.js.map +1 -0
  46. package/lib/placement-ordering.js +419 -0
  47. package/lib/placement-ordering.js.map +1 -0
  48. package/lib/tile.js +259 -0
  49. package/lib/tile.js.map +1 -0
  50. package/lib/tiler.js +165 -0
  51. package/lib/tiler.js.map +1 -0
  52. package/lib/utils.js +18 -0
  53. package/lib/utils.js.map +1 -0
  54. package/package.json +21 -88
  55. package/configure.js +0 -2
  56. package/controller.js +0 -1
  57. package/dist/author/choice-editor.d.ts +0 -39
  58. package/dist/author/choice-editor.js +0 -156
  59. package/dist/author/choice-tile.d.ts +0 -40
  60. package/dist/author/choice-tile.js +0 -132
  61. package/dist/author/defaults.d.ts +0 -213
  62. package/dist/author/defaults.js +0 -159
  63. package/dist/author/design.d.ts +0 -21
  64. package/dist/author/design.js +0 -273
  65. package/dist/author/help.d.ts +0 -11
  66. package/dist/author/index.d.ts +0 -45
  67. package/dist/author/index.js +0 -85
  68. package/dist/author/utils.d.ts +0 -15
  69. package/dist/author/utils.js +0 -62
  70. package/dist/browser/author/index.js +0 -46600
  71. package/dist/browser/author/index.js.map +0 -1
  72. package/dist/browser/browser-DHPggtaA.js +0 -376
  73. package/dist/browser/browser-DHPggtaA.js.map +0 -1
  74. package/dist/browser/controller/index.js +0 -242
  75. package/dist/browser/controller/index.js.map +0 -1
  76. package/dist/browser/delivery/index.js +0 -1035
  77. package/dist/browser/delivery/index.js.map +0 -1
  78. package/dist/browser/dist-D9ARZhQk.js +0 -1426
  79. package/dist/browser/dist-D9ARZhQk.js.map +0 -1
  80. package/dist/browser/drag-provider-C1slTlsc.js +0 -10555
  81. package/dist/browser/drag-provider-C1slTlsc.js.map +0 -1
  82. package/dist/browser/placement-ordering.css +0 -2
  83. package/dist/controller/defaults.d.ts +0 -31
  84. package/dist/controller/defaults.js +0 -25
  85. package/dist/controller/index.d.ts +0 -29
  86. package/dist/controller/index.js +0 -123
  87. package/dist/controller/scoring.d.ts +0 -27
  88. package/dist/controller/scoring.js +0 -30
  89. package/dist/delivery/index.d.ts +0 -26
  90. package/dist/delivery/index.js +0 -70
  91. package/dist/delivery/main.d.ts +0 -19
  92. package/dist/delivery/main.js +0 -22
  93. package/dist/delivery/ordering.d.ts +0 -18
  94. package/dist/delivery/ordering.js +0 -93
  95. package/dist/delivery/placement-ordering.d.ts +0 -28
  96. package/dist/delivery/placement-ordering.js +0 -213
  97. package/dist/delivery/tile.d.ts +0 -28
  98. package/dist/delivery/tile.js +0 -165
  99. package/dist/delivery/tiler.d.ts +0 -42
  100. package/dist/delivery/tiler.js +0 -89
  101. package/dist/delivery/utils.d.ts +0 -9
  102. package/dist/delivery/utils.js +0 -8
  103. package/dist/index.d.ts +0 -1
  104. package/dist/index.iife.d.ts +0 -8
  105. package/dist/index.iife.js +0 -152
  106. package/dist/index.js +0 -2
  107. package/dist/runtime-support.d.ts +0 -12
  108. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,1613 @@
1
+ {
2
+ "description": "Model for the @pie-elements/placement-ordering",
3
+ "additionalProperties": false,
4
+ "type": "object",
5
+ "properties": {
6
+ "choiceLabel": {
7
+ "description": "The label for possible choices",
8
+ "type": "string",
9
+ "title": "choiceLabel"
10
+ },
11
+ "choices": {
12
+ "description": "Array of all the available choices",
13
+ "type": "array",
14
+ "items": {
15
+ "title": "Choice",
16
+ "type": "object",
17
+ "properties": {
18
+ "id": {
19
+ "description": "The id of the choice",
20
+ "type": "string",
21
+ "title": "id"
22
+ },
23
+ "label": {
24
+ "description": "The label of the choice",
25
+ "type": "string",
26
+ "title": "label"
27
+ }
28
+ },
29
+ "required": [
30
+ "id"
31
+ ]
32
+ },
33
+ "title": "choices"
34
+ },
35
+ "correctResponse": {
36
+ "description": "Array of the correct responses in the correct order",
37
+ "type": "array",
38
+ "items": {
39
+ "title": "CorrectResponse",
40
+ "type": "object",
41
+ "properties": {
42
+ "id": {
43
+ "description": "The id of the correct response",
44
+ "type": "string",
45
+ "title": "id"
46
+ },
47
+ "weight": {
48
+ "description": "The weight of the correct response\nNote: weights are not configurable in the existing component so we'll ignore it for now",
49
+ "type": "number",
50
+ "title": "weight"
51
+ }
52
+ },
53
+ "required": [
54
+ "id"
55
+ ]
56
+ },
57
+ "title": "correctResponse"
58
+ },
59
+ "alternateResponses": {
60
+ "description": "Array that contains the correct alternate responses",
61
+ "type": "array",
62
+ "items": {
63
+ "title": "AlternateResponse",
64
+ "type": "object",
65
+ "properties": {
66
+ "response": {
67
+ "description": "Array that contains the alternate response ids",
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ },
72
+ "title": "response"
73
+ }
74
+ },
75
+ "required": [
76
+ "response"
77
+ ]
78
+ },
79
+ "title": "alternateResponses"
80
+ },
81
+ "feedback": {
82
+ "title": "ComplexFeedbackType",
83
+ "type": "object",
84
+ "properties": {
85
+ "correct": {
86
+ "description": "Indicates the configuration for feedback when answer is correct",
87
+ "anyOf": [
88
+ {
89
+ "title": "DefaultFeedbackType",
90
+ "type": "object",
91
+ "properties": {
92
+ "type": {
93
+ "description": "Indicates the feedback type",
94
+ "enum": [
95
+ "default",
96
+ "none"
97
+ ],
98
+ "type": "string",
99
+ "title": "type"
100
+ },
101
+ "default": {
102
+ "description": "Indicates the feedback value",
103
+ "type": "string",
104
+ "title": "default"
105
+ }
106
+ },
107
+ "required": [
108
+ "type"
109
+ ]
110
+ },
111
+ {
112
+ "title": "CustomFeedbackType",
113
+ "type": "object",
114
+ "properties": {
115
+ "type": {
116
+ "description": "Indicates the feedback type",
117
+ "type": "string",
118
+ "enum": [
119
+ "custom"
120
+ ],
121
+ "title": "type"
122
+ },
123
+ "custom": {
124
+ "description": "Indicates the feedback custom value",
125
+ "type": "string",
126
+ "title": "custom"
127
+ }
128
+ },
129
+ "required": [
130
+ "custom",
131
+ "type"
132
+ ]
133
+ }
134
+ ],
135
+ "title": "correct"
136
+ },
137
+ "incorrect": {
138
+ "description": "Indicates the configuration for feedback when answer is incorrect",
139
+ "anyOf": [
140
+ {
141
+ "title": "DefaultFeedbackType",
142
+ "type": "object",
143
+ "properties": {
144
+ "type": {
145
+ "description": "Indicates the feedback type",
146
+ "enum": [
147
+ "default",
148
+ "none"
149
+ ],
150
+ "type": "string",
151
+ "title": "type"
152
+ },
153
+ "default": {
154
+ "description": "Indicates the feedback value",
155
+ "type": "string",
156
+ "title": "default"
157
+ }
158
+ },
159
+ "required": [
160
+ "type"
161
+ ]
162
+ },
163
+ {
164
+ "title": "CustomFeedbackType",
165
+ "type": "object",
166
+ "properties": {
167
+ "type": {
168
+ "description": "Indicates the feedback type",
169
+ "type": "string",
170
+ "enum": [
171
+ "custom"
172
+ ],
173
+ "title": "type"
174
+ },
175
+ "custom": {
176
+ "description": "Indicates the feedback custom value",
177
+ "type": "string",
178
+ "title": "custom"
179
+ }
180
+ },
181
+ "required": [
182
+ "custom",
183
+ "type"
184
+ ]
185
+ }
186
+ ],
187
+ "title": "incorrect"
188
+ },
189
+ "partial": {
190
+ "description": "Indicates the configuration for feedback when answer is partially correct",
191
+ "anyOf": [
192
+ {
193
+ "title": "DefaultFeedbackType",
194
+ "type": "object",
195
+ "properties": {
196
+ "type": {
197
+ "description": "Indicates the feedback type",
198
+ "enum": [
199
+ "default",
200
+ "none"
201
+ ],
202
+ "type": "string",
203
+ "title": "type"
204
+ },
205
+ "default": {
206
+ "description": "Indicates the feedback value",
207
+ "type": "string",
208
+ "title": "default"
209
+ }
210
+ },
211
+ "required": [
212
+ "type"
213
+ ]
214
+ },
215
+ {
216
+ "title": "CustomFeedbackType",
217
+ "type": "object",
218
+ "properties": {
219
+ "type": {
220
+ "description": "Indicates the feedback type",
221
+ "type": "string",
222
+ "enum": [
223
+ "custom"
224
+ ],
225
+ "title": "type"
226
+ },
227
+ "custom": {
228
+ "description": "Indicates the feedback custom value",
229
+ "type": "string",
230
+ "title": "custom"
231
+ }
232
+ },
233
+ "required": [
234
+ "custom",
235
+ "type"
236
+ ]
237
+ }
238
+ ],
239
+ "title": "partial"
240
+ }
241
+ },
242
+ "required": [
243
+ "correct",
244
+ "incorrect"
245
+ ]
246
+ },
247
+ "prompt": {
248
+ "description": "The item stem for the question",
249
+ "type": "string",
250
+ "title": "prompt"
251
+ },
252
+ "promptEnabled": {
253
+ "description": "Determines if prompt should show",
254
+ "type": "boolean",
255
+ "title": "promptEnabled"
256
+ },
257
+ "lockChoiceOrder": {
258
+ "description": "Indicates if the choices can lockChoiceOrder",
259
+ "type": "boolean",
260
+ "title": "lockChoiceOrder"
261
+ },
262
+ "numberedGuides": {
263
+ "description": "If placement type is placement; show ordering indicates if the boxes are numbered",
264
+ "type": "boolean",
265
+ "title": "numberedGuides"
266
+ },
267
+ "orientation": {
268
+ "description": "The layout for displaying the choices",
269
+ "enum": [
270
+ "horizontal",
271
+ "vertical"
272
+ ],
273
+ "type": "string",
274
+ "title": "orientation"
275
+ },
276
+ "partialScoring": {
277
+ "description": "Indicates if partialScoring is enabled",
278
+ "type": "boolean",
279
+ "title": "partialScoring"
280
+ },
281
+ "placementArea": {
282
+ "description": "Indicates if the items can be replaced with each other or if they can be placed inside other boxes",
283
+ "type": "boolean",
284
+ "title": "placementArea"
285
+ },
286
+ "rationale": {
287
+ "description": "Indicates correct answer rationale",
288
+ "type": "string",
289
+ "title": "rationale"
290
+ },
291
+ "removeTilesAfterPlacing": {
292
+ "description": "Indicates if each choice will be removed from choices after becoming a target",
293
+ "type": "boolean",
294
+ "title": "removeTilesAfterPlacing"
295
+ },
296
+ "scoringType": {
297
+ "description": "Indicates scoring type",
298
+ "enum": [
299
+ "auto",
300
+ "rubric"
301
+ ],
302
+ "type": "string",
303
+ "title": "scoringType"
304
+ },
305
+ "studentInstructions": {
306
+ "description": "Indicates student instructions",
307
+ "type": "string",
308
+ "title": "studentInstructions"
309
+ },
310
+ "targetLabel": {
311
+ "description": "The label for answer area if placement area is enabled",
312
+ "type": "string",
313
+ "title": "targetLabel"
314
+ },
315
+ "feedbackEnabled": {
316
+ "description": "Indicates if Feedback is enabled",
317
+ "type": "boolean",
318
+ "title": "feedbackEnabled"
319
+ },
320
+ "teacherInstructions": {
321
+ "description": "Indicates teacher instructions",
322
+ "type": "string",
323
+ "title": "teacherInstructions"
324
+ },
325
+ "rationaleEnabled": {
326
+ "description": "Indicates if Rationale are enabled",
327
+ "type": "boolean",
328
+ "title": "rationaleEnabled"
329
+ },
330
+ "studentInstructionsEnabled": {
331
+ "description": "Indicates if Student Instructions are enabled",
332
+ "type": "boolean",
333
+ "title": "studentInstructionsEnabled"
334
+ },
335
+ "teacherInstructionsEnabled": {
336
+ "description": "Indicates if Teacher Instructions are enabled",
337
+ "type": "boolean",
338
+ "title": "teacherInstructionsEnabled"
339
+ },
340
+ "choiceLabelEnabled": {
341
+ "description": "Indicates if Choice Label is enabled",
342
+ "type": "boolean",
343
+ "title": "choiceLabelEnabled"
344
+ },
345
+ "spellCheckEnabled": {
346
+ "description": "Indicates if spellcheck is enabled for the author. Default value is true",
347
+ "type": "boolean",
348
+ "title": "spellCheckEnabled"
349
+ },
350
+ "note": {
351
+ "description": "Indicates the note for the answer",
352
+ "type": "string",
353
+ "title": "note"
354
+ },
355
+ "toolbarEditorPosition": {
356
+ "description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
357
+ "default": ": 'bottom'",
358
+ "enum": [
359
+ "bottom",
360
+ "top"
361
+ ],
362
+ "type": "string",
363
+ "title": "toolbarEditorPosition"
364
+ },
365
+ "rubricEnabled": {
366
+ "description": "Indicates if Rubric is enabled",
367
+ "type": "boolean",
368
+ "title": "rubricEnabled"
369
+ },
370
+ "language": {
371
+ "description": "Indicates the language of the component\nSupported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX",
372
+ "type": "string",
373
+ "title": "language"
374
+ },
375
+ "id": {
376
+ "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
377
+ "type": "string",
378
+ "title": "id"
379
+ },
380
+ "element": {
381
+ "description": "The html Element tag name",
382
+ "type": "string",
383
+ "title": "element"
384
+ }
385
+ },
386
+ "required": [
387
+ "alternateResponses",
388
+ "choices",
389
+ "element",
390
+ "feedbackEnabled",
391
+ "id",
392
+ "rationaleEnabled",
393
+ "rubricEnabled",
394
+ "spellCheckEnabled",
395
+ "studentInstructionsEnabled",
396
+ "teacherInstructionsEnabled"
397
+ ],
398
+ "definitions": {
399
+ "EditableHtmlConfigureProp": {
400
+ "title": "EditableHtmlConfigureProp",
401
+ "type": "object",
402
+ "properties": {
403
+ "math": {
404
+ "title": "EditableHtmlButtonConfigure",
405
+ "type": "object",
406
+ "properties": {
407
+ "disabled": {
408
+ "description": "Indicates if the plugin is disabled or not",
409
+ "type": "boolean",
410
+ "title": "disabled"
411
+ }
412
+ }
413
+ },
414
+ "audio": {
415
+ "title": "EditableHtmlButtonConfigure",
416
+ "type": "object",
417
+ "properties": {
418
+ "disabled": {
419
+ "description": "Indicates if the plugin is disabled or not",
420
+ "type": "boolean",
421
+ "title": "disabled"
422
+ }
423
+ }
424
+ },
425
+ "video": {
426
+ "title": "EditableHtmlButtonConfigure",
427
+ "type": "object",
428
+ "properties": {
429
+ "disabled": {
430
+ "description": "Indicates if the plugin is disabled or not",
431
+ "type": "boolean",
432
+ "title": "disabled"
433
+ }
434
+ }
435
+ },
436
+ "image": {
437
+ "title": "EditableHtmlButtonConfigure",
438
+ "type": "object",
439
+ "properties": {
440
+ "disabled": {
441
+ "description": "Indicates if the plugin is disabled or not",
442
+ "type": "boolean",
443
+ "title": "disabled"
444
+ }
445
+ }
446
+ },
447
+ "customPlugins": {
448
+ "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.",
449
+ "type": "array",
450
+ "items": {
451
+ "title": "CustomPlugin",
452
+ "type": "object",
453
+ "properties": {
454
+ "event": {
455
+ "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\"",
456
+ "type": "string",
457
+ "title": "event"
458
+ },
459
+ "iconAlt": {
460
+ "description": "The alt for the custom button icon",
461
+ "type": "string",
462
+ "title": "iconAlt"
463
+ },
464
+ "iconType": {
465
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
466
+ "type": "string",
467
+ "title": "iconType"
468
+ },
469
+ "icon": {
470
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
471
+ "type": "string",
472
+ "title": "icon"
473
+ }
474
+ },
475
+ "required": [
476
+ "event",
477
+ "icon",
478
+ "iconAlt",
479
+ "iconType"
480
+ ]
481
+ },
482
+ "title": "customPlugins"
483
+ },
484
+ "blockquote": {
485
+ "title": "EditableHtmlButtonConfigure",
486
+ "type": "object",
487
+ "properties": {
488
+ "disabled": {
489
+ "description": "Indicates if the plugin is disabled or not",
490
+ "type": "boolean",
491
+ "title": "disabled"
492
+ }
493
+ }
494
+ },
495
+ "h3": {
496
+ "title": "EditableHtmlButtonConfigure",
497
+ "type": "object",
498
+ "properties": {
499
+ "disabled": {
500
+ "description": "Indicates if the plugin is disabled or not",
501
+ "type": "boolean",
502
+ "title": "disabled"
503
+ }
504
+ }
505
+ },
506
+ "characters": {
507
+ "title": "EditableHtmlButtonConfigure",
508
+ "type": "object",
509
+ "properties": {
510
+ "disabled": {
511
+ "description": "Indicates if the plugin is disabled or not",
512
+ "type": "boolean",
513
+ "title": "disabled"
514
+ }
515
+ }
516
+ },
517
+ "bold": {
518
+ "title": "EditableHtmlButtonConfigure",
519
+ "type": "object",
520
+ "properties": {
521
+ "disabled": {
522
+ "description": "Indicates if the plugin is disabled or not",
523
+ "type": "boolean",
524
+ "title": "disabled"
525
+ }
526
+ }
527
+ },
528
+ "html": {
529
+ "title": "EditableHtmlButtonConfigure",
530
+ "type": "object",
531
+ "properties": {
532
+ "disabled": {
533
+ "description": "Indicates if the plugin is disabled or not",
534
+ "type": "boolean",
535
+ "title": "disabled"
536
+ }
537
+ }
538
+ },
539
+ "italic": {
540
+ "title": "EditableHtmlButtonConfigure",
541
+ "type": "object",
542
+ "properties": {
543
+ "disabled": {
544
+ "description": "Indicates if the plugin is disabled or not",
545
+ "type": "boolean",
546
+ "title": "disabled"
547
+ }
548
+ }
549
+ },
550
+ "ol_list": {
551
+ "title": "EditableHtmlButtonConfigure",
552
+ "type": "object",
553
+ "properties": {
554
+ "disabled": {
555
+ "description": "Indicates if the plugin is disabled or not",
556
+ "type": "boolean",
557
+ "title": "disabled"
558
+ }
559
+ }
560
+ },
561
+ "redo": {
562
+ "title": "EditableHtmlButtonConfigure",
563
+ "type": "object",
564
+ "properties": {
565
+ "disabled": {
566
+ "description": "Indicates if the plugin is disabled or not",
567
+ "type": "boolean",
568
+ "title": "disabled"
569
+ }
570
+ }
571
+ },
572
+ "strikethrough": {
573
+ "title": "EditableHtmlButtonConfigure",
574
+ "type": "object",
575
+ "properties": {
576
+ "disabled": {
577
+ "description": "Indicates if the plugin is disabled or not",
578
+ "type": "boolean",
579
+ "title": "disabled"
580
+ }
581
+ }
582
+ },
583
+ "sub": {
584
+ "title": "EditableHtmlButtonConfigure",
585
+ "type": "object",
586
+ "properties": {
587
+ "disabled": {
588
+ "description": "Indicates if the plugin is disabled or not",
589
+ "type": "boolean",
590
+ "title": "disabled"
591
+ }
592
+ }
593
+ },
594
+ "sup": {
595
+ "title": "EditableHtmlButtonConfigure",
596
+ "type": "object",
597
+ "properties": {
598
+ "disabled": {
599
+ "description": "Indicates if the plugin is disabled or not",
600
+ "type": "boolean",
601
+ "title": "disabled"
602
+ }
603
+ }
604
+ },
605
+ "table": {
606
+ "title": "EditableHtmlButtonConfigure",
607
+ "type": "object",
608
+ "properties": {
609
+ "disabled": {
610
+ "description": "Indicates if the plugin is disabled or not",
611
+ "type": "boolean",
612
+ "title": "disabled"
613
+ }
614
+ }
615
+ },
616
+ "ul_list": {
617
+ "title": "EditableHtmlButtonConfigure",
618
+ "type": "object",
619
+ "properties": {
620
+ "disabled": {
621
+ "description": "Indicates if the plugin is disabled or not",
622
+ "type": "boolean",
623
+ "title": "disabled"
624
+ }
625
+ }
626
+ },
627
+ "underline": {
628
+ "title": "EditableHtmlButtonConfigure",
629
+ "type": "object",
630
+ "properties": {
631
+ "disabled": {
632
+ "description": "Indicates if the plugin is disabled or not",
633
+ "type": "boolean",
634
+ "title": "disabled"
635
+ }
636
+ }
637
+ },
638
+ "undo": {
639
+ "title": "EditableHtmlButtonConfigure",
640
+ "type": "object",
641
+ "properties": {
642
+ "disabled": {
643
+ "description": "Indicates if the plugin is disabled or not",
644
+ "type": "boolean",
645
+ "title": "disabled"
646
+ }
647
+ }
648
+ }
649
+ }
650
+ },
651
+ "EditableHtmlButtonConfigure": {
652
+ "title": "EditableHtmlButtonConfigure",
653
+ "type": "object",
654
+ "properties": {
655
+ "disabled": {
656
+ "description": "Indicates if the plugin is disabled or not",
657
+ "type": "boolean",
658
+ "title": "disabled"
659
+ }
660
+ }
661
+ },
662
+ "CustomPlugin": {
663
+ "title": "CustomPlugin",
664
+ "type": "object",
665
+ "properties": {
666
+ "event": {
667
+ "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\"",
668
+ "type": "string",
669
+ "title": "event"
670
+ },
671
+ "iconAlt": {
672
+ "description": "The alt for the custom button icon",
673
+ "type": "string",
674
+ "title": "iconAlt"
675
+ },
676
+ "iconType": {
677
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
678
+ "type": "string",
679
+ "title": "iconType"
680
+ },
681
+ "icon": {
682
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
683
+ "type": "string",
684
+ "title": "icon"
685
+ }
686
+ },
687
+ "required": [
688
+ "event",
689
+ "icon",
690
+ "iconAlt",
691
+ "iconType"
692
+ ]
693
+ },
694
+ "EditableHtmlPluginConfigure": {
695
+ "title": "EditableHtmlPluginConfigure",
696
+ "type": "object",
697
+ "properties": {
698
+ "inputConfiguration": {
699
+ "title": "EditableHtmlConfigureProp",
700
+ "type": "object",
701
+ "properties": {
702
+ "math": {
703
+ "title": "EditableHtmlButtonConfigure",
704
+ "type": "object",
705
+ "properties": {
706
+ "disabled": {
707
+ "description": "Indicates if the plugin is disabled or not",
708
+ "type": "boolean",
709
+ "title": "disabled"
710
+ }
711
+ }
712
+ },
713
+ "audio": {
714
+ "title": "EditableHtmlButtonConfigure",
715
+ "type": "object",
716
+ "properties": {
717
+ "disabled": {
718
+ "description": "Indicates if the plugin is disabled or not",
719
+ "type": "boolean",
720
+ "title": "disabled"
721
+ }
722
+ }
723
+ },
724
+ "video": {
725
+ "title": "EditableHtmlButtonConfigure",
726
+ "type": "object",
727
+ "properties": {
728
+ "disabled": {
729
+ "description": "Indicates if the plugin is disabled or not",
730
+ "type": "boolean",
731
+ "title": "disabled"
732
+ }
733
+ }
734
+ },
735
+ "image": {
736
+ "title": "EditableHtmlButtonConfigure",
737
+ "type": "object",
738
+ "properties": {
739
+ "disabled": {
740
+ "description": "Indicates if the plugin is disabled or not",
741
+ "type": "boolean",
742
+ "title": "disabled"
743
+ }
744
+ }
745
+ },
746
+ "customPlugins": {
747
+ "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.",
748
+ "type": "array",
749
+ "items": {
750
+ "title": "CustomPlugin",
751
+ "type": "object",
752
+ "properties": {
753
+ "event": {
754
+ "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\"",
755
+ "type": "string",
756
+ "title": "event"
757
+ },
758
+ "iconAlt": {
759
+ "description": "The alt for the custom button icon",
760
+ "type": "string",
761
+ "title": "iconAlt"
762
+ },
763
+ "iconType": {
764
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
765
+ "type": "string",
766
+ "title": "iconType"
767
+ },
768
+ "icon": {
769
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
770
+ "type": "string",
771
+ "title": "icon"
772
+ }
773
+ },
774
+ "required": [
775
+ "event",
776
+ "icon",
777
+ "iconAlt",
778
+ "iconType"
779
+ ]
780
+ },
781
+ "title": "customPlugins"
782
+ },
783
+ "blockquote": {
784
+ "title": "EditableHtmlButtonConfigure",
785
+ "type": "object",
786
+ "properties": {
787
+ "disabled": {
788
+ "description": "Indicates if the plugin is disabled or not",
789
+ "type": "boolean",
790
+ "title": "disabled"
791
+ }
792
+ }
793
+ },
794
+ "h3": {
795
+ "title": "EditableHtmlButtonConfigure",
796
+ "type": "object",
797
+ "properties": {
798
+ "disabled": {
799
+ "description": "Indicates if the plugin is disabled or not",
800
+ "type": "boolean",
801
+ "title": "disabled"
802
+ }
803
+ }
804
+ },
805
+ "characters": {
806
+ "title": "EditableHtmlButtonConfigure",
807
+ "type": "object",
808
+ "properties": {
809
+ "disabled": {
810
+ "description": "Indicates if the plugin is disabled or not",
811
+ "type": "boolean",
812
+ "title": "disabled"
813
+ }
814
+ }
815
+ },
816
+ "bold": {
817
+ "title": "EditableHtmlButtonConfigure",
818
+ "type": "object",
819
+ "properties": {
820
+ "disabled": {
821
+ "description": "Indicates if the plugin is disabled or not",
822
+ "type": "boolean",
823
+ "title": "disabled"
824
+ }
825
+ }
826
+ },
827
+ "html": {
828
+ "title": "EditableHtmlButtonConfigure",
829
+ "type": "object",
830
+ "properties": {
831
+ "disabled": {
832
+ "description": "Indicates if the plugin is disabled or not",
833
+ "type": "boolean",
834
+ "title": "disabled"
835
+ }
836
+ }
837
+ },
838
+ "italic": {
839
+ "title": "EditableHtmlButtonConfigure",
840
+ "type": "object",
841
+ "properties": {
842
+ "disabled": {
843
+ "description": "Indicates if the plugin is disabled or not",
844
+ "type": "boolean",
845
+ "title": "disabled"
846
+ }
847
+ }
848
+ },
849
+ "ol_list": {
850
+ "title": "EditableHtmlButtonConfigure",
851
+ "type": "object",
852
+ "properties": {
853
+ "disabled": {
854
+ "description": "Indicates if the plugin is disabled or not",
855
+ "type": "boolean",
856
+ "title": "disabled"
857
+ }
858
+ }
859
+ },
860
+ "redo": {
861
+ "title": "EditableHtmlButtonConfigure",
862
+ "type": "object",
863
+ "properties": {
864
+ "disabled": {
865
+ "description": "Indicates if the plugin is disabled or not",
866
+ "type": "boolean",
867
+ "title": "disabled"
868
+ }
869
+ }
870
+ },
871
+ "strikethrough": {
872
+ "title": "EditableHtmlButtonConfigure",
873
+ "type": "object",
874
+ "properties": {
875
+ "disabled": {
876
+ "description": "Indicates if the plugin is disabled or not",
877
+ "type": "boolean",
878
+ "title": "disabled"
879
+ }
880
+ }
881
+ },
882
+ "sub": {
883
+ "title": "EditableHtmlButtonConfigure",
884
+ "type": "object",
885
+ "properties": {
886
+ "disabled": {
887
+ "description": "Indicates if the plugin is disabled or not",
888
+ "type": "boolean",
889
+ "title": "disabled"
890
+ }
891
+ }
892
+ },
893
+ "sup": {
894
+ "title": "EditableHtmlButtonConfigure",
895
+ "type": "object",
896
+ "properties": {
897
+ "disabled": {
898
+ "description": "Indicates if the plugin is disabled or not",
899
+ "type": "boolean",
900
+ "title": "disabled"
901
+ }
902
+ }
903
+ },
904
+ "table": {
905
+ "title": "EditableHtmlButtonConfigure",
906
+ "type": "object",
907
+ "properties": {
908
+ "disabled": {
909
+ "description": "Indicates if the plugin is disabled or not",
910
+ "type": "boolean",
911
+ "title": "disabled"
912
+ }
913
+ }
914
+ },
915
+ "ul_list": {
916
+ "title": "EditableHtmlButtonConfigure",
917
+ "type": "object",
918
+ "properties": {
919
+ "disabled": {
920
+ "description": "Indicates if the plugin is disabled or not",
921
+ "type": "boolean",
922
+ "title": "disabled"
923
+ }
924
+ }
925
+ },
926
+ "underline": {
927
+ "title": "EditableHtmlButtonConfigure",
928
+ "type": "object",
929
+ "properties": {
930
+ "disabled": {
931
+ "description": "Indicates if the plugin is disabled or not",
932
+ "type": "boolean",
933
+ "title": "disabled"
934
+ }
935
+ }
936
+ },
937
+ "undo": {
938
+ "title": "EditableHtmlButtonConfigure",
939
+ "type": "object",
940
+ "properties": {
941
+ "disabled": {
942
+ "description": "Indicates if the plugin is disabled or not",
943
+ "type": "boolean",
944
+ "title": "disabled"
945
+ }
946
+ }
947
+ }
948
+ }
949
+ },
950
+ "settings": {
951
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
952
+ "type": "boolean",
953
+ "title": "settings"
954
+ },
955
+ "label": {
956
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
957
+ "type": "string",
958
+ "title": "label"
959
+ }
960
+ }
961
+ },
962
+ "ConfigureProp": {
963
+ "title": "ConfigureProp",
964
+ "type": "object",
965
+ "properties": {
966
+ "settings": {
967
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
968
+ "type": "boolean",
969
+ "title": "settings"
970
+ },
971
+ "label": {
972
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
973
+ "type": "string",
974
+ "title": "label"
975
+ }
976
+ }
977
+ },
978
+ "EditableHtmlPluginConfigureRequired": {
979
+ "title": "EditableHtmlPluginConfigureRequired",
980
+ "type": "object",
981
+ "properties": {
982
+ "inputConfiguration": {
983
+ "title": "EditableHtmlConfigureProp",
984
+ "type": "object",
985
+ "properties": {
986
+ "math": {
987
+ "title": "EditableHtmlButtonConfigure",
988
+ "type": "object",
989
+ "properties": {
990
+ "disabled": {
991
+ "description": "Indicates if the plugin is disabled or not",
992
+ "type": "boolean",
993
+ "title": "disabled"
994
+ }
995
+ }
996
+ },
997
+ "audio": {
998
+ "title": "EditableHtmlButtonConfigure",
999
+ "type": "object",
1000
+ "properties": {
1001
+ "disabled": {
1002
+ "description": "Indicates if the plugin is disabled or not",
1003
+ "type": "boolean",
1004
+ "title": "disabled"
1005
+ }
1006
+ }
1007
+ },
1008
+ "video": {
1009
+ "title": "EditableHtmlButtonConfigure",
1010
+ "type": "object",
1011
+ "properties": {
1012
+ "disabled": {
1013
+ "description": "Indicates if the plugin is disabled or not",
1014
+ "type": "boolean",
1015
+ "title": "disabled"
1016
+ }
1017
+ }
1018
+ },
1019
+ "image": {
1020
+ "title": "EditableHtmlButtonConfigure",
1021
+ "type": "object",
1022
+ "properties": {
1023
+ "disabled": {
1024
+ "description": "Indicates if the plugin is disabled or not",
1025
+ "type": "boolean",
1026
+ "title": "disabled"
1027
+ }
1028
+ }
1029
+ },
1030
+ "customPlugins": {
1031
+ "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.",
1032
+ "type": "array",
1033
+ "items": {
1034
+ "title": "CustomPlugin",
1035
+ "type": "object",
1036
+ "properties": {
1037
+ "event": {
1038
+ "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\"",
1039
+ "type": "string",
1040
+ "title": "event"
1041
+ },
1042
+ "iconAlt": {
1043
+ "description": "The alt for the custom button icon",
1044
+ "type": "string",
1045
+ "title": "iconAlt"
1046
+ },
1047
+ "iconType": {
1048
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
1049
+ "type": "string",
1050
+ "title": "iconType"
1051
+ },
1052
+ "icon": {
1053
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
1054
+ "type": "string",
1055
+ "title": "icon"
1056
+ }
1057
+ },
1058
+ "required": [
1059
+ "event",
1060
+ "icon",
1061
+ "iconAlt",
1062
+ "iconType"
1063
+ ]
1064
+ },
1065
+ "title": "customPlugins"
1066
+ },
1067
+ "blockquote": {
1068
+ "title": "EditableHtmlButtonConfigure",
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "disabled": {
1072
+ "description": "Indicates if the plugin is disabled or not",
1073
+ "type": "boolean",
1074
+ "title": "disabled"
1075
+ }
1076
+ }
1077
+ },
1078
+ "h3": {
1079
+ "title": "EditableHtmlButtonConfigure",
1080
+ "type": "object",
1081
+ "properties": {
1082
+ "disabled": {
1083
+ "description": "Indicates if the plugin is disabled or not",
1084
+ "type": "boolean",
1085
+ "title": "disabled"
1086
+ }
1087
+ }
1088
+ },
1089
+ "characters": {
1090
+ "title": "EditableHtmlButtonConfigure",
1091
+ "type": "object",
1092
+ "properties": {
1093
+ "disabled": {
1094
+ "description": "Indicates if the plugin is disabled or not",
1095
+ "type": "boolean",
1096
+ "title": "disabled"
1097
+ }
1098
+ }
1099
+ },
1100
+ "bold": {
1101
+ "title": "EditableHtmlButtonConfigure",
1102
+ "type": "object",
1103
+ "properties": {
1104
+ "disabled": {
1105
+ "description": "Indicates if the plugin is disabled or not",
1106
+ "type": "boolean",
1107
+ "title": "disabled"
1108
+ }
1109
+ }
1110
+ },
1111
+ "html": {
1112
+ "title": "EditableHtmlButtonConfigure",
1113
+ "type": "object",
1114
+ "properties": {
1115
+ "disabled": {
1116
+ "description": "Indicates if the plugin is disabled or not",
1117
+ "type": "boolean",
1118
+ "title": "disabled"
1119
+ }
1120
+ }
1121
+ },
1122
+ "italic": {
1123
+ "title": "EditableHtmlButtonConfigure",
1124
+ "type": "object",
1125
+ "properties": {
1126
+ "disabled": {
1127
+ "description": "Indicates if the plugin is disabled or not",
1128
+ "type": "boolean",
1129
+ "title": "disabled"
1130
+ }
1131
+ }
1132
+ },
1133
+ "ol_list": {
1134
+ "title": "EditableHtmlButtonConfigure",
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "disabled": {
1138
+ "description": "Indicates if the plugin is disabled or not",
1139
+ "type": "boolean",
1140
+ "title": "disabled"
1141
+ }
1142
+ }
1143
+ },
1144
+ "redo": {
1145
+ "title": "EditableHtmlButtonConfigure",
1146
+ "type": "object",
1147
+ "properties": {
1148
+ "disabled": {
1149
+ "description": "Indicates if the plugin is disabled or not",
1150
+ "type": "boolean",
1151
+ "title": "disabled"
1152
+ }
1153
+ }
1154
+ },
1155
+ "strikethrough": {
1156
+ "title": "EditableHtmlButtonConfigure",
1157
+ "type": "object",
1158
+ "properties": {
1159
+ "disabled": {
1160
+ "description": "Indicates if the plugin is disabled or not",
1161
+ "type": "boolean",
1162
+ "title": "disabled"
1163
+ }
1164
+ }
1165
+ },
1166
+ "sub": {
1167
+ "title": "EditableHtmlButtonConfigure",
1168
+ "type": "object",
1169
+ "properties": {
1170
+ "disabled": {
1171
+ "description": "Indicates if the plugin is disabled or not",
1172
+ "type": "boolean",
1173
+ "title": "disabled"
1174
+ }
1175
+ }
1176
+ },
1177
+ "sup": {
1178
+ "title": "EditableHtmlButtonConfigure",
1179
+ "type": "object",
1180
+ "properties": {
1181
+ "disabled": {
1182
+ "description": "Indicates if the plugin is disabled or not",
1183
+ "type": "boolean",
1184
+ "title": "disabled"
1185
+ }
1186
+ }
1187
+ },
1188
+ "table": {
1189
+ "title": "EditableHtmlButtonConfigure",
1190
+ "type": "object",
1191
+ "properties": {
1192
+ "disabled": {
1193
+ "description": "Indicates if the plugin is disabled or not",
1194
+ "type": "boolean",
1195
+ "title": "disabled"
1196
+ }
1197
+ }
1198
+ },
1199
+ "ul_list": {
1200
+ "title": "EditableHtmlButtonConfigure",
1201
+ "type": "object",
1202
+ "properties": {
1203
+ "disabled": {
1204
+ "description": "Indicates if the plugin is disabled or not",
1205
+ "type": "boolean",
1206
+ "title": "disabled"
1207
+ }
1208
+ }
1209
+ },
1210
+ "underline": {
1211
+ "title": "EditableHtmlButtonConfigure",
1212
+ "type": "object",
1213
+ "properties": {
1214
+ "disabled": {
1215
+ "description": "Indicates if the plugin is disabled or not",
1216
+ "type": "boolean",
1217
+ "title": "disabled"
1218
+ }
1219
+ }
1220
+ },
1221
+ "undo": {
1222
+ "title": "EditableHtmlButtonConfigure",
1223
+ "type": "object",
1224
+ "properties": {
1225
+ "disabled": {
1226
+ "description": "Indicates if the plugin is disabled or not",
1227
+ "type": "boolean",
1228
+ "title": "disabled"
1229
+ }
1230
+ }
1231
+ }
1232
+ }
1233
+ },
1234
+ "required": {
1235
+ "description": "Indicates if the item is required and the value cannot be empty",
1236
+ "type": "boolean",
1237
+ "title": "required"
1238
+ },
1239
+ "settings": {
1240
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1241
+ "type": "boolean",
1242
+ "title": "settings"
1243
+ },
1244
+ "label": {
1245
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1246
+ "type": "string",
1247
+ "title": "label"
1248
+ }
1249
+ }
1250
+ },
1251
+ "ConfigureMaxImageDimensionsProp": {
1252
+ "title": "ConfigureMaxImageDimensionsProp",
1253
+ "type": "object",
1254
+ "properties": {
1255
+ "teacherInstructions": {
1256
+ "description": "Indicates the max dimension for images in teacher instructions",
1257
+ "type": "number",
1258
+ "title": "teacherInstructions"
1259
+ },
1260
+ "prompt": {
1261
+ "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",
1262
+ "type": "number",
1263
+ "title": "prompt"
1264
+ },
1265
+ "rationale": {
1266
+ "description": "Indicates the max dimension for images in rationale",
1267
+ "type": "number",
1268
+ "title": "rationale"
1269
+ },
1270
+ "choicesWithPlacementArea": {
1271
+ "description": "Only available for the width prop: indicates the max width for images in choices and choices labels when placement area is enabled",
1272
+ "type": "number",
1273
+ "title": "choicesWithPlacementArea"
1274
+ },
1275
+ "choicesWithoutPlacementArea": {
1276
+ "description": "Only available for the width prop: indicates the max width for images in choices and choices labels when placement area is disabled",
1277
+ "type": "number",
1278
+ "title": "choicesWithoutPlacementArea"
1279
+ },
1280
+ "choices": {
1281
+ "description": "Only available for the height prop: indicates the max height for images in choices and choices labels",
1282
+ "type": "number",
1283
+ "title": "choices"
1284
+ }
1285
+ }
1286
+ },
1287
+ "ConfigureMathMLProp": {
1288
+ "title": "ConfigureMathMLProp",
1289
+ "type": "object",
1290
+ "properties": {
1291
+ "mmlOutput": {
1292
+ "description": "Indicates if model should have mathML output instead of latex",
1293
+ "type": "number",
1294
+ "title": "mmlOutput"
1295
+ },
1296
+ "mmlEditing": {
1297
+ "description": "Indicates if mathML that's already in model should be editable",
1298
+ "type": "number",
1299
+ "title": "mmlEditing"
1300
+ }
1301
+ }
1302
+ },
1303
+ "ConfigurePropWithEnabled": {
1304
+ "title": "ConfigurePropWithEnabled",
1305
+ "type": "object",
1306
+ "properties": {
1307
+ "enabled": {
1308
+ "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)",
1309
+ "type": "boolean",
1310
+ "title": "enabled"
1311
+ },
1312
+ "settings": {
1313
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1314
+ "type": "boolean",
1315
+ "title": "settings"
1316
+ },
1317
+ "label": {
1318
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1319
+ "type": "string",
1320
+ "title": "label"
1321
+ }
1322
+ }
1323
+ },
1324
+ "ConfigureLanguageOptionsProp": {
1325
+ "title": "ConfigureLanguageOptionsProp",
1326
+ "type": "object",
1327
+ "properties": {
1328
+ "value": {
1329
+ "description": "Value of the language option",
1330
+ "type": "string",
1331
+ "title": "value"
1332
+ },
1333
+ "label": {
1334
+ "description": "Label of the language option",
1335
+ "type": "string",
1336
+ "title": "label"
1337
+ }
1338
+ },
1339
+ "required": [
1340
+ "label",
1341
+ "value"
1342
+ ]
1343
+ },
1344
+ "Choice": {
1345
+ "title": "Choice",
1346
+ "type": "object",
1347
+ "properties": {
1348
+ "id": {
1349
+ "description": "The id of the choice",
1350
+ "type": "string",
1351
+ "title": "id"
1352
+ },
1353
+ "label": {
1354
+ "description": "The label of the choice",
1355
+ "type": "string",
1356
+ "title": "label"
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "id"
1361
+ ]
1362
+ },
1363
+ "CorrectResponse": {
1364
+ "title": "CorrectResponse",
1365
+ "type": "object",
1366
+ "properties": {
1367
+ "id": {
1368
+ "description": "The id of the correct response",
1369
+ "type": "string",
1370
+ "title": "id"
1371
+ },
1372
+ "weight": {
1373
+ "description": "The weight of the correct response\nNote: weights are not configurable in the existing component so we'll ignore it for now",
1374
+ "type": "number",
1375
+ "title": "weight"
1376
+ }
1377
+ },
1378
+ "required": [
1379
+ "id"
1380
+ ]
1381
+ },
1382
+ "AlternateResponse": {
1383
+ "title": "AlternateResponse",
1384
+ "type": "object",
1385
+ "properties": {
1386
+ "response": {
1387
+ "description": "Array that contains the alternate response ids",
1388
+ "type": "array",
1389
+ "items": {
1390
+ "type": "string"
1391
+ },
1392
+ "title": "response"
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "response"
1397
+ ]
1398
+ },
1399
+ "ComplexFeedbackType": {
1400
+ "title": "ComplexFeedbackType",
1401
+ "type": "object",
1402
+ "properties": {
1403
+ "correct": {
1404
+ "description": "Indicates the configuration for feedback when answer is correct",
1405
+ "anyOf": [
1406
+ {
1407
+ "title": "DefaultFeedbackType",
1408
+ "type": "object",
1409
+ "properties": {
1410
+ "type": {
1411
+ "description": "Indicates the feedback type",
1412
+ "enum": [
1413
+ "default",
1414
+ "none"
1415
+ ],
1416
+ "type": "string",
1417
+ "title": "type"
1418
+ },
1419
+ "default": {
1420
+ "description": "Indicates the feedback value",
1421
+ "type": "string",
1422
+ "title": "default"
1423
+ }
1424
+ },
1425
+ "required": [
1426
+ "type"
1427
+ ]
1428
+ },
1429
+ {
1430
+ "title": "CustomFeedbackType",
1431
+ "type": "object",
1432
+ "properties": {
1433
+ "type": {
1434
+ "description": "Indicates the feedback type",
1435
+ "type": "string",
1436
+ "enum": [
1437
+ "custom"
1438
+ ],
1439
+ "title": "type"
1440
+ },
1441
+ "custom": {
1442
+ "description": "Indicates the feedback custom value",
1443
+ "type": "string",
1444
+ "title": "custom"
1445
+ }
1446
+ },
1447
+ "required": [
1448
+ "custom",
1449
+ "type"
1450
+ ]
1451
+ }
1452
+ ],
1453
+ "title": "correct"
1454
+ },
1455
+ "incorrect": {
1456
+ "description": "Indicates the configuration for feedback when answer is incorrect",
1457
+ "anyOf": [
1458
+ {
1459
+ "title": "DefaultFeedbackType",
1460
+ "type": "object",
1461
+ "properties": {
1462
+ "type": {
1463
+ "description": "Indicates the feedback type",
1464
+ "enum": [
1465
+ "default",
1466
+ "none"
1467
+ ],
1468
+ "type": "string",
1469
+ "title": "type"
1470
+ },
1471
+ "default": {
1472
+ "description": "Indicates the feedback value",
1473
+ "type": "string",
1474
+ "title": "default"
1475
+ }
1476
+ },
1477
+ "required": [
1478
+ "type"
1479
+ ]
1480
+ },
1481
+ {
1482
+ "title": "CustomFeedbackType",
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "type": {
1486
+ "description": "Indicates the feedback type",
1487
+ "type": "string",
1488
+ "enum": [
1489
+ "custom"
1490
+ ],
1491
+ "title": "type"
1492
+ },
1493
+ "custom": {
1494
+ "description": "Indicates the feedback custom value",
1495
+ "type": "string",
1496
+ "title": "custom"
1497
+ }
1498
+ },
1499
+ "required": [
1500
+ "custom",
1501
+ "type"
1502
+ ]
1503
+ }
1504
+ ],
1505
+ "title": "incorrect"
1506
+ },
1507
+ "partial": {
1508
+ "description": "Indicates the configuration for feedback when answer is partially correct",
1509
+ "anyOf": [
1510
+ {
1511
+ "title": "DefaultFeedbackType",
1512
+ "type": "object",
1513
+ "properties": {
1514
+ "type": {
1515
+ "description": "Indicates the feedback type",
1516
+ "enum": [
1517
+ "default",
1518
+ "none"
1519
+ ],
1520
+ "type": "string",
1521
+ "title": "type"
1522
+ },
1523
+ "default": {
1524
+ "description": "Indicates the feedback value",
1525
+ "type": "string",
1526
+ "title": "default"
1527
+ }
1528
+ },
1529
+ "required": [
1530
+ "type"
1531
+ ]
1532
+ },
1533
+ {
1534
+ "title": "CustomFeedbackType",
1535
+ "type": "object",
1536
+ "properties": {
1537
+ "type": {
1538
+ "description": "Indicates the feedback type",
1539
+ "type": "string",
1540
+ "enum": [
1541
+ "custom"
1542
+ ],
1543
+ "title": "type"
1544
+ },
1545
+ "custom": {
1546
+ "description": "Indicates the feedback custom value",
1547
+ "type": "string",
1548
+ "title": "custom"
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "custom",
1553
+ "type"
1554
+ ]
1555
+ }
1556
+ ],
1557
+ "title": "partial"
1558
+ }
1559
+ },
1560
+ "required": [
1561
+ "correct",
1562
+ "incorrect"
1563
+ ]
1564
+ },
1565
+ "DefaultFeedbackType": {
1566
+ "title": "DefaultFeedbackType",
1567
+ "type": "object",
1568
+ "properties": {
1569
+ "type": {
1570
+ "description": "Indicates the feedback type",
1571
+ "enum": [
1572
+ "default",
1573
+ "none"
1574
+ ],
1575
+ "type": "string",
1576
+ "title": "type"
1577
+ },
1578
+ "default": {
1579
+ "description": "Indicates the feedback value",
1580
+ "type": "string",
1581
+ "title": "default"
1582
+ }
1583
+ },
1584
+ "required": [
1585
+ "type"
1586
+ ]
1587
+ },
1588
+ "CustomFeedbackType": {
1589
+ "title": "CustomFeedbackType",
1590
+ "type": "object",
1591
+ "properties": {
1592
+ "type": {
1593
+ "description": "Indicates the feedback type",
1594
+ "type": "string",
1595
+ "enum": [
1596
+ "custom"
1597
+ ],
1598
+ "title": "type"
1599
+ },
1600
+ "custom": {
1601
+ "description": "Indicates the feedback custom value",
1602
+ "type": "string",
1603
+ "title": "custom"
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "custom",
1608
+ "type"
1609
+ ]
1610
+ }
1611
+ },
1612
+ "$schema": "http://json-schema.org/draft-07/schema#"
1613
+ }