@pie-element/drag-in-the-blank 10.1.2-next.2 → 10.1.2

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 (85) hide show
  1. package/CHANGELOG.json +1042 -0
  2. package/CHANGELOG.md +2183 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +652 -0
  6. package/configure/CHANGELOG.md +1883 -0
  7. package/configure/lib/choice.js +137 -0
  8. package/configure/lib/choice.js.map +1 -0
  9. package/configure/lib/choices.js +319 -0
  10. package/configure/lib/choices.js.map +1 -0
  11. package/configure/lib/defaults.js +169 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/index.js +144 -0
  14. package/configure/lib/index.js.map +1 -0
  15. package/configure/lib/main.js +440 -0
  16. package/configure/lib/main.js.map +1 -0
  17. package/configure/lib/markupUtils.js +83 -0
  18. package/configure/lib/markupUtils.js.map +1 -0
  19. package/configure/package.json +25 -0
  20. package/configure/utils.js +17 -0
  21. package/controller/CHANGELOG.json +457 -0
  22. package/controller/CHANGELOG.md +1284 -0
  23. package/controller/lib/defaults.js +24 -0
  24. package/controller/lib/defaults.js.map +1 -0
  25. package/controller/lib/index.js +251 -0
  26. package/controller/lib/index.js.map +1 -0
  27. package/controller/lib/utils.js +39 -0
  28. package/controller/lib/utils.js.map +1 -0
  29. package/controller/package.json +16 -0
  30. package/docs/config-schema.json +2580 -0
  31. package/docs/config-schema.json.md +1905 -0
  32. package/docs/demo/config.js +8 -0
  33. package/docs/demo/generate.js +41 -0
  34. package/docs/demo/index.html +1 -0
  35. package/docs/demo/session.js +10 -0
  36. package/docs/pie-schema.json +1181 -0
  37. package/docs/pie-schema.json.md +853 -0
  38. package/lib/index.js +206 -0
  39. package/lib/index.js.map +1 -0
  40. package/lib/main.js +126 -0
  41. package/lib/main.js.map +1 -0
  42. package/package.json +22 -87
  43. package/configure.js +0 -2
  44. package/controller.js +0 -1
  45. package/dist/author/choice.d.ts +0 -22
  46. package/dist/author/choice.js +0 -88
  47. package/dist/author/choices.d.ts +0 -41
  48. package/dist/author/choices.js +0 -172
  49. package/dist/author/defaults.d.ts +0 -171
  50. package/dist/author/defaults.js +0 -123
  51. package/dist/author/index.d.ts +0 -42
  52. package/dist/author/index.js +0 -92
  53. package/dist/author/main.d.ts +0 -36
  54. package/dist/author/main.js +0 -301
  55. package/dist/author/markupUtils.d.ts +0 -17
  56. package/dist/author/markupUtils.js +0 -38
  57. package/dist/author/utils.d.ts +0 -9
  58. package/dist/author/utils.js +0 -7
  59. package/dist/browser/author/index.js +0 -39603
  60. package/dist/browser/author/index.js.map +0 -1
  61. package/dist/browser/controller/index.js +0 -176
  62. package/dist/browser/controller/index.js.map +0 -1
  63. package/dist/browser/delivery/index.js +0 -3414
  64. package/dist/browser/delivery/index.js.map +0 -1
  65. package/dist/browser/dist-BkH5WSi5.js +0 -121
  66. package/dist/browser/dist-BkH5WSi5.js.map +0 -1
  67. package/dist/browser/drag-in-the-blank.css +0 -2
  68. package/dist/browser/drag-provider-D0fyq5lq.js +0 -10946
  69. package/dist/browser/drag-provider-D0fyq5lq.js.map +0 -1
  70. package/dist/controller/defaults.d.ts +0 -26
  71. package/dist/controller/defaults.js +0 -20
  72. package/dist/controller/index.d.ts +0 -41
  73. package/dist/controller/index.js +0 -104
  74. package/dist/controller/utils.d.ts +0 -16
  75. package/dist/controller/utils.js +0 -14
  76. package/dist/delivery/index.d.ts +0 -21
  77. package/dist/delivery/index.js +0 -105
  78. package/dist/delivery/main.d.ts +0 -28
  79. package/dist/delivery/main.js +0 -83
  80. package/dist/index.d.ts +0 -1
  81. package/dist/index.iife.d.ts +0 -8
  82. package/dist/index.iife.js +0 -152
  83. package/dist/index.js +0 -2
  84. package/dist/runtime-support.d.ts +0 -12
  85. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,1181 @@
1
+ {
2
+ "description": "Model for the @pie-elements/drag-in-the-blank",
3
+ "additionalProperties": false,
4
+ "type": "object",
5
+ "properties": {
6
+ "choices": {
7
+ "description": "Array of all the available choices",
8
+ "type": "array",
9
+ "items": {
10
+ "title": "Choice",
11
+ "type": "object",
12
+ "properties": {
13
+ "value": {
14
+ "description": "The value for the choice",
15
+ "type": "string",
16
+ "title": "value"
17
+ },
18
+ "label": {
19
+ "description": "The label of the choice",
20
+ "type": "string",
21
+ "title": "label"
22
+ },
23
+ "correct": {
24
+ "description": "Indicates if choice is correct",
25
+ "type": "boolean",
26
+ "title": "correct"
27
+ }
28
+ },
29
+ "required": [
30
+ "label",
31
+ "value"
32
+ ]
33
+ },
34
+ "title": "choices"
35
+ },
36
+ "choicesPosition": {
37
+ "title": "ChoicesPosition",
38
+ "enum": [
39
+ "above",
40
+ "below",
41
+ "left",
42
+ "right"
43
+ ],
44
+ "type": "string"
45
+ },
46
+ "correctResponse": {
47
+ "description": "Object containing the correct answer for each response area",
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "patternProperties": {
51
+ "^[0-9]+$": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "title": "correctResponse"
56
+ },
57
+ "alternateResponses": {
58
+ "description": "Array of alternatives correct choices",
59
+ "type": "array",
60
+ "items": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string"
64
+ }
65
+ },
66
+ "title": "alternateResponses"
67
+ },
68
+ "duplicates": {
69
+ "description": "Indicates if duplicates are enabled",
70
+ "type": "boolean",
71
+ "title": "duplicates"
72
+ },
73
+ "markup": {
74
+ "description": "The markup for the pie-ui element",
75
+ "type": "string",
76
+ "title": "markup"
77
+ },
78
+ "lockChoiceOrder": {
79
+ "description": "Indicates if the choices are presented in a fixed order",
80
+ "type": "boolean",
81
+ "title": "lockChoiceOrder"
82
+ },
83
+ "prompt": {
84
+ "description": "The item stem for the question",
85
+ "type": "string",
86
+ "title": "prompt"
87
+ },
88
+ "promptEnabled": {
89
+ "description": "Indicates if the prompt is enabled",
90
+ "type": "boolean",
91
+ "title": "promptEnabled"
92
+ },
93
+ "rationale": {
94
+ "description": "Indicates correct answer rationale",
95
+ "type": "string",
96
+ "title": "rationale"
97
+ },
98
+ "studentInstructions": {
99
+ "description": "Indicates student instructions",
100
+ "type": "string",
101
+ "title": "studentInstructions"
102
+ },
103
+ "teacherInstructions": {
104
+ "description": "Indicates teacher instructions",
105
+ "type": "string",
106
+ "title": "teacherInstructions"
107
+ },
108
+ "rubric": {
109
+ "description": "Indicates value for rubric",
110
+ "type": "string",
111
+ "title": "rubric"
112
+ },
113
+ "rationaleEnabled": {
114
+ "description": "Indicates if Rationale are enabled",
115
+ "type": "boolean",
116
+ "title": "rationaleEnabled"
117
+ },
118
+ "spellCheckEnabled": {
119
+ "description": "Indicates if spellcheck is enabled for the author. Default value is true",
120
+ "type": "boolean",
121
+ "title": "spellCheckEnabled"
122
+ },
123
+ "studentInstructionsEnabled": {
124
+ "description": "Indicates if Student Instructions are enabled",
125
+ "type": "boolean",
126
+ "title": "studentInstructionsEnabled"
127
+ },
128
+ "teacherInstructionsEnabled": {
129
+ "description": "Indicates if Teacher Instructions are enabled",
130
+ "type": "boolean",
131
+ "title": "teacherInstructionsEnabled"
132
+ },
133
+ "toolbarEditorPosition": {
134
+ "description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
135
+ "default": ": 'bottom'",
136
+ "enum": [
137
+ "bottom",
138
+ "top"
139
+ ],
140
+ "type": "string",
141
+ "title": "toolbarEditorPosition"
142
+ },
143
+ "rubricEnabled": {
144
+ "description": "Indicates if Rubric is enabled",
145
+ "type": "boolean",
146
+ "title": "rubricEnabled"
147
+ },
148
+ "language": {
149
+ "description": "Indicates the language of the component\nSupported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX",
150
+ "type": "string",
151
+ "title": "language"
152
+ },
153
+ "fontSizeFactor": {
154
+ "description": "Indicates font size adjustment factor",
155
+ "type": "number",
156
+ "title": "fontSizeFactor"
157
+ },
158
+ "autoplayAudioEnabled": {
159
+ "description": "Indicates if the audio for the prompt should autoplay",
160
+ "type": "boolean",
161
+ "title": "autoplayAudioEnabled"
162
+ },
163
+ "completeAudioEnabled": {
164
+ "description": "Indicates if the audio should reach the end before the item can be marked as 'complete'",
165
+ "type": "boolean",
166
+ "title": "completeAudioEnabled"
167
+ },
168
+ "customAudioButton": {
169
+ "description": "Indicates if the audio should be replaced with a custom audio button\n playImage: image url for the play state\n pauseImage: image url for the pause state",
170
+ "type": "object",
171
+ "properties": {
172
+ "playImage": {
173
+ "type": "string",
174
+ "title": "playImage"
175
+ },
176
+ "pauseImage": {
177
+ "type": "string",
178
+ "title": "pauseImage"
179
+ }
180
+ },
181
+ "required": [
182
+ "pauseImage",
183
+ "playImage"
184
+ ],
185
+ "title": "customAudioButton"
186
+ },
187
+ "id": {
188
+ "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
189
+ "type": "string",
190
+ "title": "id"
191
+ },
192
+ "element": {
193
+ "description": "The html Element tag name",
194
+ "type": "string",
195
+ "title": "element"
196
+ }
197
+ },
198
+ "required": [
199
+ "choices",
200
+ "correctResponse",
201
+ "element",
202
+ "id",
203
+ "lockChoiceOrder",
204
+ "markup",
205
+ "rationale",
206
+ "rationaleEnabled",
207
+ "rubric",
208
+ "rubricEnabled",
209
+ "spellCheckEnabled",
210
+ "studentInstructionsEnabled",
211
+ "teacherInstructionsEnabled"
212
+ ],
213
+ "definitions": {
214
+ "EditableHtmlConfigureProp": {
215
+ "title": "EditableHtmlConfigureProp",
216
+ "type": "object",
217
+ "properties": {
218
+ "math": {
219
+ "title": "EditableHtmlButtonConfigure",
220
+ "type": "object",
221
+ "properties": {
222
+ "disabled": {
223
+ "description": "Indicates if the plugin is disabled or not",
224
+ "type": "boolean",
225
+ "title": "disabled"
226
+ }
227
+ }
228
+ },
229
+ "audio": {
230
+ "title": "EditableHtmlButtonConfigure",
231
+ "type": "object",
232
+ "properties": {
233
+ "disabled": {
234
+ "description": "Indicates if the plugin is disabled or not",
235
+ "type": "boolean",
236
+ "title": "disabled"
237
+ }
238
+ }
239
+ },
240
+ "video": {
241
+ "title": "EditableHtmlButtonConfigure",
242
+ "type": "object",
243
+ "properties": {
244
+ "disabled": {
245
+ "description": "Indicates if the plugin is disabled or not",
246
+ "type": "boolean",
247
+ "title": "disabled"
248
+ }
249
+ }
250
+ },
251
+ "image": {
252
+ "title": "EditableHtmlButtonConfigure",
253
+ "type": "object",
254
+ "properties": {
255
+ "disabled": {
256
+ "description": "Indicates if the plugin is disabled or not",
257
+ "type": "boolean",
258
+ "title": "disabled"
259
+ }
260
+ }
261
+ },
262
+ "customPlugins": {
263
+ "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.",
264
+ "type": "array",
265
+ "items": {
266
+ "title": "CustomPlugin",
267
+ "type": "object",
268
+ "properties": {
269
+ "event": {
270
+ "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\"",
271
+ "type": "string",
272
+ "title": "event"
273
+ },
274
+ "iconAlt": {
275
+ "description": "The alt for the custom button icon",
276
+ "type": "string",
277
+ "title": "iconAlt"
278
+ },
279
+ "iconType": {
280
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
281
+ "type": "string",
282
+ "title": "iconType"
283
+ },
284
+ "icon": {
285
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
286
+ "type": "string",
287
+ "title": "icon"
288
+ }
289
+ },
290
+ "required": [
291
+ "event",
292
+ "icon",
293
+ "iconAlt",
294
+ "iconType"
295
+ ]
296
+ },
297
+ "title": "customPlugins"
298
+ },
299
+ "blockquote": {
300
+ "title": "EditableHtmlButtonConfigure",
301
+ "type": "object",
302
+ "properties": {
303
+ "disabled": {
304
+ "description": "Indicates if the plugin is disabled or not",
305
+ "type": "boolean",
306
+ "title": "disabled"
307
+ }
308
+ }
309
+ },
310
+ "h3": {
311
+ "title": "EditableHtmlButtonConfigure",
312
+ "type": "object",
313
+ "properties": {
314
+ "disabled": {
315
+ "description": "Indicates if the plugin is disabled or not",
316
+ "type": "boolean",
317
+ "title": "disabled"
318
+ }
319
+ }
320
+ },
321
+ "characters": {
322
+ "title": "EditableHtmlButtonConfigure",
323
+ "type": "object",
324
+ "properties": {
325
+ "disabled": {
326
+ "description": "Indicates if the plugin is disabled or not",
327
+ "type": "boolean",
328
+ "title": "disabled"
329
+ }
330
+ }
331
+ },
332
+ "bold": {
333
+ "title": "EditableHtmlButtonConfigure",
334
+ "type": "object",
335
+ "properties": {
336
+ "disabled": {
337
+ "description": "Indicates if the plugin is disabled or not",
338
+ "type": "boolean",
339
+ "title": "disabled"
340
+ }
341
+ }
342
+ },
343
+ "html": {
344
+ "title": "EditableHtmlButtonConfigure",
345
+ "type": "object",
346
+ "properties": {
347
+ "disabled": {
348
+ "description": "Indicates if the plugin is disabled or not",
349
+ "type": "boolean",
350
+ "title": "disabled"
351
+ }
352
+ }
353
+ },
354
+ "italic": {
355
+ "title": "EditableHtmlButtonConfigure",
356
+ "type": "object",
357
+ "properties": {
358
+ "disabled": {
359
+ "description": "Indicates if the plugin is disabled or not",
360
+ "type": "boolean",
361
+ "title": "disabled"
362
+ }
363
+ }
364
+ },
365
+ "ol_list": {
366
+ "title": "EditableHtmlButtonConfigure",
367
+ "type": "object",
368
+ "properties": {
369
+ "disabled": {
370
+ "description": "Indicates if the plugin is disabled or not",
371
+ "type": "boolean",
372
+ "title": "disabled"
373
+ }
374
+ }
375
+ },
376
+ "redo": {
377
+ "title": "EditableHtmlButtonConfigure",
378
+ "type": "object",
379
+ "properties": {
380
+ "disabled": {
381
+ "description": "Indicates if the plugin is disabled or not",
382
+ "type": "boolean",
383
+ "title": "disabled"
384
+ }
385
+ }
386
+ },
387
+ "strikethrough": {
388
+ "title": "EditableHtmlButtonConfigure",
389
+ "type": "object",
390
+ "properties": {
391
+ "disabled": {
392
+ "description": "Indicates if the plugin is disabled or not",
393
+ "type": "boolean",
394
+ "title": "disabled"
395
+ }
396
+ }
397
+ },
398
+ "sub": {
399
+ "title": "EditableHtmlButtonConfigure",
400
+ "type": "object",
401
+ "properties": {
402
+ "disabled": {
403
+ "description": "Indicates if the plugin is disabled or not",
404
+ "type": "boolean",
405
+ "title": "disabled"
406
+ }
407
+ }
408
+ },
409
+ "sup": {
410
+ "title": "EditableHtmlButtonConfigure",
411
+ "type": "object",
412
+ "properties": {
413
+ "disabled": {
414
+ "description": "Indicates if the plugin is disabled or not",
415
+ "type": "boolean",
416
+ "title": "disabled"
417
+ }
418
+ }
419
+ },
420
+ "table": {
421
+ "title": "EditableHtmlButtonConfigure",
422
+ "type": "object",
423
+ "properties": {
424
+ "disabled": {
425
+ "description": "Indicates if the plugin is disabled or not",
426
+ "type": "boolean",
427
+ "title": "disabled"
428
+ }
429
+ }
430
+ },
431
+ "ul_list": {
432
+ "title": "EditableHtmlButtonConfigure",
433
+ "type": "object",
434
+ "properties": {
435
+ "disabled": {
436
+ "description": "Indicates if the plugin is disabled or not",
437
+ "type": "boolean",
438
+ "title": "disabled"
439
+ }
440
+ }
441
+ },
442
+ "underline": {
443
+ "title": "EditableHtmlButtonConfigure",
444
+ "type": "object",
445
+ "properties": {
446
+ "disabled": {
447
+ "description": "Indicates if the plugin is disabled or not",
448
+ "type": "boolean",
449
+ "title": "disabled"
450
+ }
451
+ }
452
+ },
453
+ "undo": {
454
+ "title": "EditableHtmlButtonConfigure",
455
+ "type": "object",
456
+ "properties": {
457
+ "disabled": {
458
+ "description": "Indicates if the plugin is disabled or not",
459
+ "type": "boolean",
460
+ "title": "disabled"
461
+ }
462
+ }
463
+ }
464
+ }
465
+ },
466
+ "EditableHtmlButtonConfigure": {
467
+ "title": "EditableHtmlButtonConfigure",
468
+ "type": "object",
469
+ "properties": {
470
+ "disabled": {
471
+ "description": "Indicates if the plugin is disabled or not",
472
+ "type": "boolean",
473
+ "title": "disabled"
474
+ }
475
+ }
476
+ },
477
+ "CustomPlugin": {
478
+ "title": "CustomPlugin",
479
+ "type": "object",
480
+ "properties": {
481
+ "event": {
482
+ "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\"",
483
+ "type": "string",
484
+ "title": "event"
485
+ },
486
+ "iconAlt": {
487
+ "description": "The alt for the custom button icon",
488
+ "type": "string",
489
+ "title": "iconAlt"
490
+ },
491
+ "iconType": {
492
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
493
+ "type": "string",
494
+ "title": "iconType"
495
+ },
496
+ "icon": {
497
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
498
+ "type": "string",
499
+ "title": "icon"
500
+ }
501
+ },
502
+ "required": [
503
+ "event",
504
+ "icon",
505
+ "iconAlt",
506
+ "iconType"
507
+ ]
508
+ },
509
+ "ConfigureProp": {
510
+ "title": "ConfigureProp",
511
+ "type": "object",
512
+ "properties": {
513
+ "settings": {
514
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
515
+ "type": "boolean",
516
+ "title": "settings"
517
+ },
518
+ "label": {
519
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
520
+ "type": "string",
521
+ "title": "label"
522
+ }
523
+ }
524
+ },
525
+ "EditableHtmlPluginConfigureRequired": {
526
+ "title": "EditableHtmlPluginConfigureRequired",
527
+ "type": "object",
528
+ "properties": {
529
+ "inputConfiguration": {
530
+ "title": "EditableHtmlConfigureProp",
531
+ "type": "object",
532
+ "properties": {
533
+ "math": {
534
+ "title": "EditableHtmlButtonConfigure",
535
+ "type": "object",
536
+ "properties": {
537
+ "disabled": {
538
+ "description": "Indicates if the plugin is disabled or not",
539
+ "type": "boolean",
540
+ "title": "disabled"
541
+ }
542
+ }
543
+ },
544
+ "audio": {
545
+ "title": "EditableHtmlButtonConfigure",
546
+ "type": "object",
547
+ "properties": {
548
+ "disabled": {
549
+ "description": "Indicates if the plugin is disabled or not",
550
+ "type": "boolean",
551
+ "title": "disabled"
552
+ }
553
+ }
554
+ },
555
+ "video": {
556
+ "title": "EditableHtmlButtonConfigure",
557
+ "type": "object",
558
+ "properties": {
559
+ "disabled": {
560
+ "description": "Indicates if the plugin is disabled or not",
561
+ "type": "boolean",
562
+ "title": "disabled"
563
+ }
564
+ }
565
+ },
566
+ "image": {
567
+ "title": "EditableHtmlButtonConfigure",
568
+ "type": "object",
569
+ "properties": {
570
+ "disabled": {
571
+ "description": "Indicates if the plugin is disabled or not",
572
+ "type": "boolean",
573
+ "title": "disabled"
574
+ }
575
+ }
576
+ },
577
+ "customPlugins": {
578
+ "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.",
579
+ "type": "array",
580
+ "items": {
581
+ "title": "CustomPlugin",
582
+ "type": "object",
583
+ "properties": {
584
+ "event": {
585
+ "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\"",
586
+ "type": "string",
587
+ "title": "event"
588
+ },
589
+ "iconAlt": {
590
+ "description": "The alt for the custom button icon",
591
+ "type": "string",
592
+ "title": "iconAlt"
593
+ },
594
+ "iconType": {
595
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
596
+ "type": "string",
597
+ "title": "iconType"
598
+ },
599
+ "icon": {
600
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
601
+ "type": "string",
602
+ "title": "icon"
603
+ }
604
+ },
605
+ "required": [
606
+ "event",
607
+ "icon",
608
+ "iconAlt",
609
+ "iconType"
610
+ ]
611
+ },
612
+ "title": "customPlugins"
613
+ },
614
+ "blockquote": {
615
+ "title": "EditableHtmlButtonConfigure",
616
+ "type": "object",
617
+ "properties": {
618
+ "disabled": {
619
+ "description": "Indicates if the plugin is disabled or not",
620
+ "type": "boolean",
621
+ "title": "disabled"
622
+ }
623
+ }
624
+ },
625
+ "h3": {
626
+ "title": "EditableHtmlButtonConfigure",
627
+ "type": "object",
628
+ "properties": {
629
+ "disabled": {
630
+ "description": "Indicates if the plugin is disabled or not",
631
+ "type": "boolean",
632
+ "title": "disabled"
633
+ }
634
+ }
635
+ },
636
+ "characters": {
637
+ "title": "EditableHtmlButtonConfigure",
638
+ "type": "object",
639
+ "properties": {
640
+ "disabled": {
641
+ "description": "Indicates if the plugin is disabled or not",
642
+ "type": "boolean",
643
+ "title": "disabled"
644
+ }
645
+ }
646
+ },
647
+ "bold": {
648
+ "title": "EditableHtmlButtonConfigure",
649
+ "type": "object",
650
+ "properties": {
651
+ "disabled": {
652
+ "description": "Indicates if the plugin is disabled or not",
653
+ "type": "boolean",
654
+ "title": "disabled"
655
+ }
656
+ }
657
+ },
658
+ "html": {
659
+ "title": "EditableHtmlButtonConfigure",
660
+ "type": "object",
661
+ "properties": {
662
+ "disabled": {
663
+ "description": "Indicates if the plugin is disabled or not",
664
+ "type": "boolean",
665
+ "title": "disabled"
666
+ }
667
+ }
668
+ },
669
+ "italic": {
670
+ "title": "EditableHtmlButtonConfigure",
671
+ "type": "object",
672
+ "properties": {
673
+ "disabled": {
674
+ "description": "Indicates if the plugin is disabled or not",
675
+ "type": "boolean",
676
+ "title": "disabled"
677
+ }
678
+ }
679
+ },
680
+ "ol_list": {
681
+ "title": "EditableHtmlButtonConfigure",
682
+ "type": "object",
683
+ "properties": {
684
+ "disabled": {
685
+ "description": "Indicates if the plugin is disabled or not",
686
+ "type": "boolean",
687
+ "title": "disabled"
688
+ }
689
+ }
690
+ },
691
+ "redo": {
692
+ "title": "EditableHtmlButtonConfigure",
693
+ "type": "object",
694
+ "properties": {
695
+ "disabled": {
696
+ "description": "Indicates if the plugin is disabled or not",
697
+ "type": "boolean",
698
+ "title": "disabled"
699
+ }
700
+ }
701
+ },
702
+ "strikethrough": {
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
+ "sub": {
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
+ "sup": {
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
+ "table": {
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
+ "ul_list": {
747
+ "title": "EditableHtmlButtonConfigure",
748
+ "type": "object",
749
+ "properties": {
750
+ "disabled": {
751
+ "description": "Indicates if the plugin is disabled or not",
752
+ "type": "boolean",
753
+ "title": "disabled"
754
+ }
755
+ }
756
+ },
757
+ "underline": {
758
+ "title": "EditableHtmlButtonConfigure",
759
+ "type": "object",
760
+ "properties": {
761
+ "disabled": {
762
+ "description": "Indicates if the plugin is disabled or not",
763
+ "type": "boolean",
764
+ "title": "disabled"
765
+ }
766
+ }
767
+ },
768
+ "undo": {
769
+ "title": "EditableHtmlButtonConfigure",
770
+ "type": "object",
771
+ "properties": {
772
+ "disabled": {
773
+ "description": "Indicates if the plugin is disabled or not",
774
+ "type": "boolean",
775
+ "title": "disabled"
776
+ }
777
+ }
778
+ }
779
+ }
780
+ },
781
+ "required": {
782
+ "description": "Indicates if the item is required and the value cannot be empty",
783
+ "type": "boolean",
784
+ "title": "required"
785
+ },
786
+ "settings": {
787
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
788
+ "type": "boolean",
789
+ "title": "settings"
790
+ },
791
+ "label": {
792
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
793
+ "type": "string",
794
+ "title": "label"
795
+ }
796
+ }
797
+ },
798
+ "EditableHtmlPluginConfigure": {
799
+ "title": "EditableHtmlPluginConfigure",
800
+ "type": "object",
801
+ "properties": {
802
+ "inputConfiguration": {
803
+ "title": "EditableHtmlConfigureProp",
804
+ "type": "object",
805
+ "properties": {
806
+ "math": {
807
+ "title": "EditableHtmlButtonConfigure",
808
+ "type": "object",
809
+ "properties": {
810
+ "disabled": {
811
+ "description": "Indicates if the plugin is disabled or not",
812
+ "type": "boolean",
813
+ "title": "disabled"
814
+ }
815
+ }
816
+ },
817
+ "audio": {
818
+ "title": "EditableHtmlButtonConfigure",
819
+ "type": "object",
820
+ "properties": {
821
+ "disabled": {
822
+ "description": "Indicates if the plugin is disabled or not",
823
+ "type": "boolean",
824
+ "title": "disabled"
825
+ }
826
+ }
827
+ },
828
+ "video": {
829
+ "title": "EditableHtmlButtonConfigure",
830
+ "type": "object",
831
+ "properties": {
832
+ "disabled": {
833
+ "description": "Indicates if the plugin is disabled or not",
834
+ "type": "boolean",
835
+ "title": "disabled"
836
+ }
837
+ }
838
+ },
839
+ "image": {
840
+ "title": "EditableHtmlButtonConfigure",
841
+ "type": "object",
842
+ "properties": {
843
+ "disabled": {
844
+ "description": "Indicates if the plugin is disabled or not",
845
+ "type": "boolean",
846
+ "title": "disabled"
847
+ }
848
+ }
849
+ },
850
+ "customPlugins": {
851
+ "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.",
852
+ "type": "array",
853
+ "items": {
854
+ "title": "CustomPlugin",
855
+ "type": "object",
856
+ "properties": {
857
+ "event": {
858
+ "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\"",
859
+ "type": "string",
860
+ "title": "event"
861
+ },
862
+ "iconAlt": {
863
+ "description": "The alt for the custom button icon",
864
+ "type": "string",
865
+ "title": "iconAlt"
866
+ },
867
+ "iconType": {
868
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
869
+ "type": "string",
870
+ "title": "iconType"
871
+ },
872
+ "icon": {
873
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
874
+ "type": "string",
875
+ "title": "icon"
876
+ }
877
+ },
878
+ "required": [
879
+ "event",
880
+ "icon",
881
+ "iconAlt",
882
+ "iconType"
883
+ ]
884
+ },
885
+ "title": "customPlugins"
886
+ },
887
+ "blockquote": {
888
+ "title": "EditableHtmlButtonConfigure",
889
+ "type": "object",
890
+ "properties": {
891
+ "disabled": {
892
+ "description": "Indicates if the plugin is disabled or not",
893
+ "type": "boolean",
894
+ "title": "disabled"
895
+ }
896
+ }
897
+ },
898
+ "h3": {
899
+ "title": "EditableHtmlButtonConfigure",
900
+ "type": "object",
901
+ "properties": {
902
+ "disabled": {
903
+ "description": "Indicates if the plugin is disabled or not",
904
+ "type": "boolean",
905
+ "title": "disabled"
906
+ }
907
+ }
908
+ },
909
+ "characters": {
910
+ "title": "EditableHtmlButtonConfigure",
911
+ "type": "object",
912
+ "properties": {
913
+ "disabled": {
914
+ "description": "Indicates if the plugin is disabled or not",
915
+ "type": "boolean",
916
+ "title": "disabled"
917
+ }
918
+ }
919
+ },
920
+ "bold": {
921
+ "title": "EditableHtmlButtonConfigure",
922
+ "type": "object",
923
+ "properties": {
924
+ "disabled": {
925
+ "description": "Indicates if the plugin is disabled or not",
926
+ "type": "boolean",
927
+ "title": "disabled"
928
+ }
929
+ }
930
+ },
931
+ "html": {
932
+ "title": "EditableHtmlButtonConfigure",
933
+ "type": "object",
934
+ "properties": {
935
+ "disabled": {
936
+ "description": "Indicates if the plugin is disabled or not",
937
+ "type": "boolean",
938
+ "title": "disabled"
939
+ }
940
+ }
941
+ },
942
+ "italic": {
943
+ "title": "EditableHtmlButtonConfigure",
944
+ "type": "object",
945
+ "properties": {
946
+ "disabled": {
947
+ "description": "Indicates if the plugin is disabled or not",
948
+ "type": "boolean",
949
+ "title": "disabled"
950
+ }
951
+ }
952
+ },
953
+ "ol_list": {
954
+ "title": "EditableHtmlButtonConfigure",
955
+ "type": "object",
956
+ "properties": {
957
+ "disabled": {
958
+ "description": "Indicates if the plugin is disabled or not",
959
+ "type": "boolean",
960
+ "title": "disabled"
961
+ }
962
+ }
963
+ },
964
+ "redo": {
965
+ "title": "EditableHtmlButtonConfigure",
966
+ "type": "object",
967
+ "properties": {
968
+ "disabled": {
969
+ "description": "Indicates if the plugin is disabled or not",
970
+ "type": "boolean",
971
+ "title": "disabled"
972
+ }
973
+ }
974
+ },
975
+ "strikethrough": {
976
+ "title": "EditableHtmlButtonConfigure",
977
+ "type": "object",
978
+ "properties": {
979
+ "disabled": {
980
+ "description": "Indicates if the plugin is disabled or not",
981
+ "type": "boolean",
982
+ "title": "disabled"
983
+ }
984
+ }
985
+ },
986
+ "sub": {
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
+ "sup": {
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
+ "table": {
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
+ "ul_list": {
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
+ "underline": {
1031
+ "title": "EditableHtmlButtonConfigure",
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "disabled": {
1035
+ "description": "Indicates if the plugin is disabled or not",
1036
+ "type": "boolean",
1037
+ "title": "disabled"
1038
+ }
1039
+ }
1040
+ },
1041
+ "undo": {
1042
+ "title": "EditableHtmlButtonConfigure",
1043
+ "type": "object",
1044
+ "properties": {
1045
+ "disabled": {
1046
+ "description": "Indicates if the plugin is disabled or not",
1047
+ "type": "boolean",
1048
+ "title": "disabled"
1049
+ }
1050
+ }
1051
+ }
1052
+ }
1053
+ },
1054
+ "settings": {
1055
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1056
+ "type": "boolean",
1057
+ "title": "settings"
1058
+ },
1059
+ "label": {
1060
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1061
+ "type": "string",
1062
+ "title": "label"
1063
+ }
1064
+ }
1065
+ },
1066
+ "ConfigureMathMLProp": {
1067
+ "title": "ConfigureMathMLProp",
1068
+ "type": "object",
1069
+ "properties": {
1070
+ "mmlOutput": {
1071
+ "description": "Indicates if model should have mathML output instead of latex",
1072
+ "type": "number",
1073
+ "title": "mmlOutput"
1074
+ },
1075
+ "mmlEditing": {
1076
+ "description": "Indicates if mathML that's already in model should be editable",
1077
+ "type": "number",
1078
+ "title": "mmlEditing"
1079
+ }
1080
+ }
1081
+ },
1082
+ "ConfigureMaxImageDimensionsProp": {
1083
+ "title": "ConfigureMaxImageDimensionsProp",
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "teacherInstructions": {
1087
+ "description": "Indicates the max dimension for images in teacher instructions",
1088
+ "type": "number",
1089
+ "title": "teacherInstructions"
1090
+ },
1091
+ "prompt": {
1092
+ "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",
1093
+ "type": "number",
1094
+ "title": "prompt"
1095
+ },
1096
+ "rationale": {
1097
+ "description": "Indicates the max dimension for images in rationale",
1098
+ "type": "number",
1099
+ "title": "rationale"
1100
+ }
1101
+ }
1102
+ },
1103
+ "ConfigurePropWithEnabled": {
1104
+ "title": "ConfigurePropWithEnabled",
1105
+ "type": "object",
1106
+ "properties": {
1107
+ "enabled": {
1108
+ "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)",
1109
+ "type": "boolean",
1110
+ "title": "enabled"
1111
+ },
1112
+ "settings": {
1113
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1114
+ "type": "boolean",
1115
+ "title": "settings"
1116
+ },
1117
+ "label": {
1118
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1119
+ "type": "string",
1120
+ "title": "label"
1121
+ }
1122
+ }
1123
+ },
1124
+ "ConfigureLanguageOptionsProp": {
1125
+ "title": "ConfigureLanguageOptionsProp",
1126
+ "type": "object",
1127
+ "properties": {
1128
+ "value": {
1129
+ "description": "Value of the language option",
1130
+ "type": "string",
1131
+ "title": "value"
1132
+ },
1133
+ "label": {
1134
+ "description": "Label of the language option",
1135
+ "type": "string",
1136
+ "title": "label"
1137
+ }
1138
+ },
1139
+ "required": [
1140
+ "label",
1141
+ "value"
1142
+ ]
1143
+ },
1144
+ "Choice": {
1145
+ "title": "Choice",
1146
+ "type": "object",
1147
+ "properties": {
1148
+ "value": {
1149
+ "description": "The value for the choice",
1150
+ "type": "string",
1151
+ "title": "value"
1152
+ },
1153
+ "label": {
1154
+ "description": "The label of the choice",
1155
+ "type": "string",
1156
+ "title": "label"
1157
+ },
1158
+ "correct": {
1159
+ "description": "Indicates if choice is correct",
1160
+ "type": "boolean",
1161
+ "title": "correct"
1162
+ }
1163
+ },
1164
+ "required": [
1165
+ "label",
1166
+ "value"
1167
+ ]
1168
+ },
1169
+ "ChoicesPosition": {
1170
+ "title": "ChoicesPosition",
1171
+ "enum": [
1172
+ "above",
1173
+ "below",
1174
+ "left",
1175
+ "right"
1176
+ ],
1177
+ "type": "string"
1178
+ }
1179
+ },
1180
+ "$schema": "http://json-schema.org/draft-07/schema#"
1181
+ }