@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,2580 @@
1
+ {
2
+ "description": "Config Object for @pie-elements/drag-in-the-blank",
3
+ "additionalProperties": false,
4
+ "type": "object",
5
+ "properties": {
6
+ "baseInputConfiguration": {
7
+ "title": "EditableHtmlConfigureProp",
8
+ "type": "object",
9
+ "properties": {
10
+ "math": {
11
+ "title": "EditableHtmlButtonConfigure",
12
+ "type": "object",
13
+ "properties": {
14
+ "disabled": {
15
+ "description": "Indicates if the plugin is disabled or not",
16
+ "type": "boolean",
17
+ "title": "disabled"
18
+ }
19
+ }
20
+ },
21
+ "audio": {
22
+ "title": "EditableHtmlButtonConfigure",
23
+ "type": "object",
24
+ "properties": {
25
+ "disabled": {
26
+ "description": "Indicates if the plugin is disabled or not",
27
+ "type": "boolean",
28
+ "title": "disabled"
29
+ }
30
+ }
31
+ },
32
+ "video": {
33
+ "title": "EditableHtmlButtonConfigure",
34
+ "type": "object",
35
+ "properties": {
36
+ "disabled": {
37
+ "description": "Indicates if the plugin is disabled or not",
38
+ "type": "boolean",
39
+ "title": "disabled"
40
+ }
41
+ }
42
+ },
43
+ "image": {
44
+ "title": "EditableHtmlButtonConfigure",
45
+ "type": "object",
46
+ "properties": {
47
+ "disabled": {
48
+ "description": "Indicates if the plugin is disabled or not",
49
+ "type": "boolean",
50
+ "title": "disabled"
51
+ }
52
+ }
53
+ },
54
+ "customPlugins": {
55
+ "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.",
56
+ "type": "array",
57
+ "items": {
58
+ "title": "CustomPlugin",
59
+ "type": "object",
60
+ "properties": {
61
+ "event": {
62
+ "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\"",
63
+ "type": "string",
64
+ "title": "event"
65
+ },
66
+ "iconAlt": {
67
+ "description": "The alt for the custom button icon",
68
+ "type": "string",
69
+ "title": "iconAlt"
70
+ },
71
+ "iconType": {
72
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
73
+ "type": "string",
74
+ "title": "iconType"
75
+ },
76
+ "icon": {
77
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
78
+ "type": "string",
79
+ "title": "icon"
80
+ }
81
+ },
82
+ "required": [
83
+ "event",
84
+ "icon",
85
+ "iconAlt",
86
+ "iconType"
87
+ ]
88
+ },
89
+ "title": "customPlugins"
90
+ },
91
+ "blockquote": {
92
+ "title": "EditableHtmlButtonConfigure",
93
+ "type": "object",
94
+ "properties": {
95
+ "disabled": {
96
+ "description": "Indicates if the plugin is disabled or not",
97
+ "type": "boolean",
98
+ "title": "disabled"
99
+ }
100
+ }
101
+ },
102
+ "h3": {
103
+ "title": "EditableHtmlButtonConfigure",
104
+ "type": "object",
105
+ "properties": {
106
+ "disabled": {
107
+ "description": "Indicates if the plugin is disabled or not",
108
+ "type": "boolean",
109
+ "title": "disabled"
110
+ }
111
+ }
112
+ },
113
+ "characters": {
114
+ "title": "EditableHtmlButtonConfigure",
115
+ "type": "object",
116
+ "properties": {
117
+ "disabled": {
118
+ "description": "Indicates if the plugin is disabled or not",
119
+ "type": "boolean",
120
+ "title": "disabled"
121
+ }
122
+ }
123
+ },
124
+ "bold": {
125
+ "title": "EditableHtmlButtonConfigure",
126
+ "type": "object",
127
+ "properties": {
128
+ "disabled": {
129
+ "description": "Indicates if the plugin is disabled or not",
130
+ "type": "boolean",
131
+ "title": "disabled"
132
+ }
133
+ }
134
+ },
135
+ "html": {
136
+ "title": "EditableHtmlButtonConfigure",
137
+ "type": "object",
138
+ "properties": {
139
+ "disabled": {
140
+ "description": "Indicates if the plugin is disabled or not",
141
+ "type": "boolean",
142
+ "title": "disabled"
143
+ }
144
+ }
145
+ },
146
+ "italic": {
147
+ "title": "EditableHtmlButtonConfigure",
148
+ "type": "object",
149
+ "properties": {
150
+ "disabled": {
151
+ "description": "Indicates if the plugin is disabled or not",
152
+ "type": "boolean",
153
+ "title": "disabled"
154
+ }
155
+ }
156
+ },
157
+ "ol_list": {
158
+ "title": "EditableHtmlButtonConfigure",
159
+ "type": "object",
160
+ "properties": {
161
+ "disabled": {
162
+ "description": "Indicates if the plugin is disabled or not",
163
+ "type": "boolean",
164
+ "title": "disabled"
165
+ }
166
+ }
167
+ },
168
+ "redo": {
169
+ "title": "EditableHtmlButtonConfigure",
170
+ "type": "object",
171
+ "properties": {
172
+ "disabled": {
173
+ "description": "Indicates if the plugin is disabled or not",
174
+ "type": "boolean",
175
+ "title": "disabled"
176
+ }
177
+ }
178
+ },
179
+ "strikethrough": {
180
+ "title": "EditableHtmlButtonConfigure",
181
+ "type": "object",
182
+ "properties": {
183
+ "disabled": {
184
+ "description": "Indicates if the plugin is disabled or not",
185
+ "type": "boolean",
186
+ "title": "disabled"
187
+ }
188
+ }
189
+ },
190
+ "sub": {
191
+ "title": "EditableHtmlButtonConfigure",
192
+ "type": "object",
193
+ "properties": {
194
+ "disabled": {
195
+ "description": "Indicates if the plugin is disabled or not",
196
+ "type": "boolean",
197
+ "title": "disabled"
198
+ }
199
+ }
200
+ },
201
+ "sup": {
202
+ "title": "EditableHtmlButtonConfigure",
203
+ "type": "object",
204
+ "properties": {
205
+ "disabled": {
206
+ "description": "Indicates if the plugin is disabled or not",
207
+ "type": "boolean",
208
+ "title": "disabled"
209
+ }
210
+ }
211
+ },
212
+ "table": {
213
+ "title": "EditableHtmlButtonConfigure",
214
+ "type": "object",
215
+ "properties": {
216
+ "disabled": {
217
+ "description": "Indicates if the plugin is disabled or not",
218
+ "type": "boolean",
219
+ "title": "disabled"
220
+ }
221
+ }
222
+ },
223
+ "ul_list": {
224
+ "title": "EditableHtmlButtonConfigure",
225
+ "type": "object",
226
+ "properties": {
227
+ "disabled": {
228
+ "description": "Indicates if the plugin is disabled or not",
229
+ "type": "boolean",
230
+ "title": "disabled"
231
+ }
232
+ }
233
+ },
234
+ "underline": {
235
+ "title": "EditableHtmlButtonConfigure",
236
+ "type": "object",
237
+ "properties": {
238
+ "disabled": {
239
+ "description": "Indicates if the plugin is disabled or not",
240
+ "type": "boolean",
241
+ "title": "disabled"
242
+ }
243
+ }
244
+ },
245
+ "undo": {
246
+ "title": "EditableHtmlButtonConfigure",
247
+ "type": "object",
248
+ "properties": {
249
+ "disabled": {
250
+ "description": "Indicates if the plugin is disabled or not",
251
+ "type": "boolean",
252
+ "title": "disabled"
253
+ }
254
+ }
255
+ }
256
+ }
257
+ },
258
+ "choices": {
259
+ "title": "ConfigureProp",
260
+ "type": "object",
261
+ "properties": {
262
+ "settings": {
263
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
264
+ "type": "boolean",
265
+ "title": "settings"
266
+ },
267
+ "label": {
268
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
269
+ "type": "string",
270
+ "title": "label"
271
+ }
272
+ }
273
+ },
274
+ "duplicates": {
275
+ "title": "ConfigureProp",
276
+ "type": "object",
277
+ "properties": {
278
+ "settings": {
279
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
280
+ "type": "boolean",
281
+ "title": "settings"
282
+ },
283
+ "label": {
284
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
285
+ "type": "string",
286
+ "title": "label"
287
+ }
288
+ }
289
+ },
290
+ "prompt": {
291
+ "title": "EditableHtmlPluginConfigureRequired",
292
+ "type": "object",
293
+ "properties": {
294
+ "inputConfiguration": {
295
+ "title": "EditableHtmlConfigureProp",
296
+ "type": "object",
297
+ "properties": {
298
+ "math": {
299
+ "title": "EditableHtmlButtonConfigure",
300
+ "type": "object",
301
+ "properties": {
302
+ "disabled": {
303
+ "description": "Indicates if the plugin is disabled or not",
304
+ "type": "boolean",
305
+ "title": "disabled"
306
+ }
307
+ }
308
+ },
309
+ "audio": {
310
+ "title": "EditableHtmlButtonConfigure",
311
+ "type": "object",
312
+ "properties": {
313
+ "disabled": {
314
+ "description": "Indicates if the plugin is disabled or not",
315
+ "type": "boolean",
316
+ "title": "disabled"
317
+ }
318
+ }
319
+ },
320
+ "video": {
321
+ "title": "EditableHtmlButtonConfigure",
322
+ "type": "object",
323
+ "properties": {
324
+ "disabled": {
325
+ "description": "Indicates if the plugin is disabled or not",
326
+ "type": "boolean",
327
+ "title": "disabled"
328
+ }
329
+ }
330
+ },
331
+ "image": {
332
+ "title": "EditableHtmlButtonConfigure",
333
+ "type": "object",
334
+ "properties": {
335
+ "disabled": {
336
+ "description": "Indicates if the plugin is disabled or not",
337
+ "type": "boolean",
338
+ "title": "disabled"
339
+ }
340
+ }
341
+ },
342
+ "customPlugins": {
343
+ "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.",
344
+ "type": "array",
345
+ "items": {
346
+ "title": "CustomPlugin",
347
+ "type": "object",
348
+ "properties": {
349
+ "event": {
350
+ "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\"",
351
+ "type": "string",
352
+ "title": "event"
353
+ },
354
+ "iconAlt": {
355
+ "description": "The alt for the custom button icon",
356
+ "type": "string",
357
+ "title": "iconAlt"
358
+ },
359
+ "iconType": {
360
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
361
+ "type": "string",
362
+ "title": "iconType"
363
+ },
364
+ "icon": {
365
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
366
+ "type": "string",
367
+ "title": "icon"
368
+ }
369
+ },
370
+ "required": [
371
+ "event",
372
+ "icon",
373
+ "iconAlt",
374
+ "iconType"
375
+ ]
376
+ },
377
+ "title": "customPlugins"
378
+ },
379
+ "blockquote": {
380
+ "title": "EditableHtmlButtonConfigure",
381
+ "type": "object",
382
+ "properties": {
383
+ "disabled": {
384
+ "description": "Indicates if the plugin is disabled or not",
385
+ "type": "boolean",
386
+ "title": "disabled"
387
+ }
388
+ }
389
+ },
390
+ "h3": {
391
+ "title": "EditableHtmlButtonConfigure",
392
+ "type": "object",
393
+ "properties": {
394
+ "disabled": {
395
+ "description": "Indicates if the plugin is disabled or not",
396
+ "type": "boolean",
397
+ "title": "disabled"
398
+ }
399
+ }
400
+ },
401
+ "characters": {
402
+ "title": "EditableHtmlButtonConfigure",
403
+ "type": "object",
404
+ "properties": {
405
+ "disabled": {
406
+ "description": "Indicates if the plugin is disabled or not",
407
+ "type": "boolean",
408
+ "title": "disabled"
409
+ }
410
+ }
411
+ },
412
+ "bold": {
413
+ "title": "EditableHtmlButtonConfigure",
414
+ "type": "object",
415
+ "properties": {
416
+ "disabled": {
417
+ "description": "Indicates if the plugin is disabled or not",
418
+ "type": "boolean",
419
+ "title": "disabled"
420
+ }
421
+ }
422
+ },
423
+ "html": {
424
+ "title": "EditableHtmlButtonConfigure",
425
+ "type": "object",
426
+ "properties": {
427
+ "disabled": {
428
+ "description": "Indicates if the plugin is disabled or not",
429
+ "type": "boolean",
430
+ "title": "disabled"
431
+ }
432
+ }
433
+ },
434
+ "italic": {
435
+ "title": "EditableHtmlButtonConfigure",
436
+ "type": "object",
437
+ "properties": {
438
+ "disabled": {
439
+ "description": "Indicates if the plugin is disabled or not",
440
+ "type": "boolean",
441
+ "title": "disabled"
442
+ }
443
+ }
444
+ },
445
+ "ol_list": {
446
+ "title": "EditableHtmlButtonConfigure",
447
+ "type": "object",
448
+ "properties": {
449
+ "disabled": {
450
+ "description": "Indicates if the plugin is disabled or not",
451
+ "type": "boolean",
452
+ "title": "disabled"
453
+ }
454
+ }
455
+ },
456
+ "redo": {
457
+ "title": "EditableHtmlButtonConfigure",
458
+ "type": "object",
459
+ "properties": {
460
+ "disabled": {
461
+ "description": "Indicates if the plugin is disabled or not",
462
+ "type": "boolean",
463
+ "title": "disabled"
464
+ }
465
+ }
466
+ },
467
+ "strikethrough": {
468
+ "title": "EditableHtmlButtonConfigure",
469
+ "type": "object",
470
+ "properties": {
471
+ "disabled": {
472
+ "description": "Indicates if the plugin is disabled or not",
473
+ "type": "boolean",
474
+ "title": "disabled"
475
+ }
476
+ }
477
+ },
478
+ "sub": {
479
+ "title": "EditableHtmlButtonConfigure",
480
+ "type": "object",
481
+ "properties": {
482
+ "disabled": {
483
+ "description": "Indicates if the plugin is disabled or not",
484
+ "type": "boolean",
485
+ "title": "disabled"
486
+ }
487
+ }
488
+ },
489
+ "sup": {
490
+ "title": "EditableHtmlButtonConfigure",
491
+ "type": "object",
492
+ "properties": {
493
+ "disabled": {
494
+ "description": "Indicates if the plugin is disabled or not",
495
+ "type": "boolean",
496
+ "title": "disabled"
497
+ }
498
+ }
499
+ },
500
+ "table": {
501
+ "title": "EditableHtmlButtonConfigure",
502
+ "type": "object",
503
+ "properties": {
504
+ "disabled": {
505
+ "description": "Indicates if the plugin is disabled or not",
506
+ "type": "boolean",
507
+ "title": "disabled"
508
+ }
509
+ }
510
+ },
511
+ "ul_list": {
512
+ "title": "EditableHtmlButtonConfigure",
513
+ "type": "object",
514
+ "properties": {
515
+ "disabled": {
516
+ "description": "Indicates if the plugin is disabled or not",
517
+ "type": "boolean",
518
+ "title": "disabled"
519
+ }
520
+ }
521
+ },
522
+ "underline": {
523
+ "title": "EditableHtmlButtonConfigure",
524
+ "type": "object",
525
+ "properties": {
526
+ "disabled": {
527
+ "description": "Indicates if the plugin is disabled or not",
528
+ "type": "boolean",
529
+ "title": "disabled"
530
+ }
531
+ }
532
+ },
533
+ "undo": {
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
+ }
545
+ },
546
+ "required": {
547
+ "description": "Indicates if the item is required and the value cannot be empty",
548
+ "type": "boolean",
549
+ "title": "required"
550
+ },
551
+ "settings": {
552
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
553
+ "type": "boolean",
554
+ "title": "settings"
555
+ },
556
+ "label": {
557
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
558
+ "type": "string",
559
+ "title": "label"
560
+ }
561
+ }
562
+ },
563
+ "settingsPanelDisabled": {
564
+ "description": "Indicates if the settings panel is not available",
565
+ "type": "boolean",
566
+ "title": "settingsPanelDisabled"
567
+ },
568
+ "spellCheck": {
569
+ "title": "ConfigureProp",
570
+ "type": "object",
571
+ "properties": {
572
+ "settings": {
573
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
574
+ "type": "boolean",
575
+ "title": "settings"
576
+ },
577
+ "label": {
578
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
579
+ "type": "string",
580
+ "title": "label"
581
+ }
582
+ }
583
+ },
584
+ "rationale": {
585
+ "title": "EditableHtmlPluginConfigureRequired",
586
+ "type": "object",
587
+ "properties": {
588
+ "inputConfiguration": {
589
+ "title": "EditableHtmlConfigureProp",
590
+ "type": "object",
591
+ "properties": {
592
+ "math": {
593
+ "title": "EditableHtmlButtonConfigure",
594
+ "type": "object",
595
+ "properties": {
596
+ "disabled": {
597
+ "description": "Indicates if the plugin is disabled or not",
598
+ "type": "boolean",
599
+ "title": "disabled"
600
+ }
601
+ }
602
+ },
603
+ "audio": {
604
+ "title": "EditableHtmlButtonConfigure",
605
+ "type": "object",
606
+ "properties": {
607
+ "disabled": {
608
+ "description": "Indicates if the plugin is disabled or not",
609
+ "type": "boolean",
610
+ "title": "disabled"
611
+ }
612
+ }
613
+ },
614
+ "video": {
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
+ "image": {
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
+ "customPlugins": {
637
+ "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.",
638
+ "type": "array",
639
+ "items": {
640
+ "title": "CustomPlugin",
641
+ "type": "object",
642
+ "properties": {
643
+ "event": {
644
+ "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\"",
645
+ "type": "string",
646
+ "title": "event"
647
+ },
648
+ "iconAlt": {
649
+ "description": "The alt for the custom button icon",
650
+ "type": "string",
651
+ "title": "iconAlt"
652
+ },
653
+ "iconType": {
654
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
655
+ "type": "string",
656
+ "title": "iconType"
657
+ },
658
+ "icon": {
659
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
660
+ "type": "string",
661
+ "title": "icon"
662
+ }
663
+ },
664
+ "required": [
665
+ "event",
666
+ "icon",
667
+ "iconAlt",
668
+ "iconType"
669
+ ]
670
+ },
671
+ "title": "customPlugins"
672
+ },
673
+ "blockquote": {
674
+ "title": "EditableHtmlButtonConfigure",
675
+ "type": "object",
676
+ "properties": {
677
+ "disabled": {
678
+ "description": "Indicates if the plugin is disabled or not",
679
+ "type": "boolean",
680
+ "title": "disabled"
681
+ }
682
+ }
683
+ },
684
+ "h3": {
685
+ "title": "EditableHtmlButtonConfigure",
686
+ "type": "object",
687
+ "properties": {
688
+ "disabled": {
689
+ "description": "Indicates if the plugin is disabled or not",
690
+ "type": "boolean",
691
+ "title": "disabled"
692
+ }
693
+ }
694
+ },
695
+ "characters": {
696
+ "title": "EditableHtmlButtonConfigure",
697
+ "type": "object",
698
+ "properties": {
699
+ "disabled": {
700
+ "description": "Indicates if the plugin is disabled or not",
701
+ "type": "boolean",
702
+ "title": "disabled"
703
+ }
704
+ }
705
+ },
706
+ "bold": {
707
+ "title": "EditableHtmlButtonConfigure",
708
+ "type": "object",
709
+ "properties": {
710
+ "disabled": {
711
+ "description": "Indicates if the plugin is disabled or not",
712
+ "type": "boolean",
713
+ "title": "disabled"
714
+ }
715
+ }
716
+ },
717
+ "html": {
718
+ "title": "EditableHtmlButtonConfigure",
719
+ "type": "object",
720
+ "properties": {
721
+ "disabled": {
722
+ "description": "Indicates if the plugin is disabled or not",
723
+ "type": "boolean",
724
+ "title": "disabled"
725
+ }
726
+ }
727
+ },
728
+ "italic": {
729
+ "title": "EditableHtmlButtonConfigure",
730
+ "type": "object",
731
+ "properties": {
732
+ "disabled": {
733
+ "description": "Indicates if the plugin is disabled or not",
734
+ "type": "boolean",
735
+ "title": "disabled"
736
+ }
737
+ }
738
+ },
739
+ "ol_list": {
740
+ "title": "EditableHtmlButtonConfigure",
741
+ "type": "object",
742
+ "properties": {
743
+ "disabled": {
744
+ "description": "Indicates if the plugin is disabled or not",
745
+ "type": "boolean",
746
+ "title": "disabled"
747
+ }
748
+ }
749
+ },
750
+ "redo": {
751
+ "title": "EditableHtmlButtonConfigure",
752
+ "type": "object",
753
+ "properties": {
754
+ "disabled": {
755
+ "description": "Indicates if the plugin is disabled or not",
756
+ "type": "boolean",
757
+ "title": "disabled"
758
+ }
759
+ }
760
+ },
761
+ "strikethrough": {
762
+ "title": "EditableHtmlButtonConfigure",
763
+ "type": "object",
764
+ "properties": {
765
+ "disabled": {
766
+ "description": "Indicates if the plugin is disabled or not",
767
+ "type": "boolean",
768
+ "title": "disabled"
769
+ }
770
+ }
771
+ },
772
+ "sub": {
773
+ "title": "EditableHtmlButtonConfigure",
774
+ "type": "object",
775
+ "properties": {
776
+ "disabled": {
777
+ "description": "Indicates if the plugin is disabled or not",
778
+ "type": "boolean",
779
+ "title": "disabled"
780
+ }
781
+ }
782
+ },
783
+ "sup": {
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
+ "table": {
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
+ "ul_list": {
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
+ "underline": {
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
+ "undo": {
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
+ }
839
+ },
840
+ "required": {
841
+ "description": "Indicates if the item is required and the value cannot be empty",
842
+ "type": "boolean",
843
+ "title": "required"
844
+ },
845
+ "settings": {
846
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
847
+ "type": "boolean",
848
+ "title": "settings"
849
+ },
850
+ "label": {
851
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
852
+ "type": "string",
853
+ "title": "label"
854
+ }
855
+ }
856
+ },
857
+ "studentInstructions": {
858
+ "title": "ConfigureProp",
859
+ "type": "object",
860
+ "properties": {
861
+ "settings": {
862
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
863
+ "type": "boolean",
864
+ "title": "settings"
865
+ },
866
+ "label": {
867
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
868
+ "type": "string",
869
+ "title": "label"
870
+ }
871
+ }
872
+ },
873
+ "teacherInstructions": {
874
+ "title": "EditableHtmlPluginConfigureRequired",
875
+ "type": "object",
876
+ "properties": {
877
+ "inputConfiguration": {
878
+ "title": "EditableHtmlConfigureProp",
879
+ "type": "object",
880
+ "properties": {
881
+ "math": {
882
+ "title": "EditableHtmlButtonConfigure",
883
+ "type": "object",
884
+ "properties": {
885
+ "disabled": {
886
+ "description": "Indicates if the plugin is disabled or not",
887
+ "type": "boolean",
888
+ "title": "disabled"
889
+ }
890
+ }
891
+ },
892
+ "audio": {
893
+ "title": "EditableHtmlButtonConfigure",
894
+ "type": "object",
895
+ "properties": {
896
+ "disabled": {
897
+ "description": "Indicates if the plugin is disabled or not",
898
+ "type": "boolean",
899
+ "title": "disabled"
900
+ }
901
+ }
902
+ },
903
+ "video": {
904
+ "title": "EditableHtmlButtonConfigure",
905
+ "type": "object",
906
+ "properties": {
907
+ "disabled": {
908
+ "description": "Indicates if the plugin is disabled or not",
909
+ "type": "boolean",
910
+ "title": "disabled"
911
+ }
912
+ }
913
+ },
914
+ "image": {
915
+ "title": "EditableHtmlButtonConfigure",
916
+ "type": "object",
917
+ "properties": {
918
+ "disabled": {
919
+ "description": "Indicates if the plugin is disabled or not",
920
+ "type": "boolean",
921
+ "title": "disabled"
922
+ }
923
+ }
924
+ },
925
+ "customPlugins": {
926
+ "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.",
927
+ "type": "array",
928
+ "items": {
929
+ "title": "CustomPlugin",
930
+ "type": "object",
931
+ "properties": {
932
+ "event": {
933
+ "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\"",
934
+ "type": "string",
935
+ "title": "event"
936
+ },
937
+ "iconAlt": {
938
+ "description": "The alt for the custom button icon",
939
+ "type": "string",
940
+ "title": "iconAlt"
941
+ },
942
+ "iconType": {
943
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
944
+ "type": "string",
945
+ "title": "iconType"
946
+ },
947
+ "icon": {
948
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
949
+ "type": "string",
950
+ "title": "icon"
951
+ }
952
+ },
953
+ "required": [
954
+ "event",
955
+ "icon",
956
+ "iconAlt",
957
+ "iconType"
958
+ ]
959
+ },
960
+ "title": "customPlugins"
961
+ },
962
+ "blockquote": {
963
+ "title": "EditableHtmlButtonConfigure",
964
+ "type": "object",
965
+ "properties": {
966
+ "disabled": {
967
+ "description": "Indicates if the plugin is disabled or not",
968
+ "type": "boolean",
969
+ "title": "disabled"
970
+ }
971
+ }
972
+ },
973
+ "h3": {
974
+ "title": "EditableHtmlButtonConfigure",
975
+ "type": "object",
976
+ "properties": {
977
+ "disabled": {
978
+ "description": "Indicates if the plugin is disabled or not",
979
+ "type": "boolean",
980
+ "title": "disabled"
981
+ }
982
+ }
983
+ },
984
+ "characters": {
985
+ "title": "EditableHtmlButtonConfigure",
986
+ "type": "object",
987
+ "properties": {
988
+ "disabled": {
989
+ "description": "Indicates if the plugin is disabled or not",
990
+ "type": "boolean",
991
+ "title": "disabled"
992
+ }
993
+ }
994
+ },
995
+ "bold": {
996
+ "title": "EditableHtmlButtonConfigure",
997
+ "type": "object",
998
+ "properties": {
999
+ "disabled": {
1000
+ "description": "Indicates if the plugin is disabled or not",
1001
+ "type": "boolean",
1002
+ "title": "disabled"
1003
+ }
1004
+ }
1005
+ },
1006
+ "html": {
1007
+ "title": "EditableHtmlButtonConfigure",
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "disabled": {
1011
+ "description": "Indicates if the plugin is disabled or not",
1012
+ "type": "boolean",
1013
+ "title": "disabled"
1014
+ }
1015
+ }
1016
+ },
1017
+ "italic": {
1018
+ "title": "EditableHtmlButtonConfigure",
1019
+ "type": "object",
1020
+ "properties": {
1021
+ "disabled": {
1022
+ "description": "Indicates if the plugin is disabled or not",
1023
+ "type": "boolean",
1024
+ "title": "disabled"
1025
+ }
1026
+ }
1027
+ },
1028
+ "ol_list": {
1029
+ "title": "EditableHtmlButtonConfigure",
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "disabled": {
1033
+ "description": "Indicates if the plugin is disabled or not",
1034
+ "type": "boolean",
1035
+ "title": "disabled"
1036
+ }
1037
+ }
1038
+ },
1039
+ "redo": {
1040
+ "title": "EditableHtmlButtonConfigure",
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "disabled": {
1044
+ "description": "Indicates if the plugin is disabled or not",
1045
+ "type": "boolean",
1046
+ "title": "disabled"
1047
+ }
1048
+ }
1049
+ },
1050
+ "strikethrough": {
1051
+ "title": "EditableHtmlButtonConfigure",
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "disabled": {
1055
+ "description": "Indicates if the plugin is disabled or not",
1056
+ "type": "boolean",
1057
+ "title": "disabled"
1058
+ }
1059
+ }
1060
+ },
1061
+ "sub": {
1062
+ "title": "EditableHtmlButtonConfigure",
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "disabled": {
1066
+ "description": "Indicates if the plugin is disabled or not",
1067
+ "type": "boolean",
1068
+ "title": "disabled"
1069
+ }
1070
+ }
1071
+ },
1072
+ "sup": {
1073
+ "title": "EditableHtmlButtonConfigure",
1074
+ "type": "object",
1075
+ "properties": {
1076
+ "disabled": {
1077
+ "description": "Indicates if the plugin is disabled or not",
1078
+ "type": "boolean",
1079
+ "title": "disabled"
1080
+ }
1081
+ }
1082
+ },
1083
+ "table": {
1084
+ "title": "EditableHtmlButtonConfigure",
1085
+ "type": "object",
1086
+ "properties": {
1087
+ "disabled": {
1088
+ "description": "Indicates if the plugin is disabled or not",
1089
+ "type": "boolean",
1090
+ "title": "disabled"
1091
+ }
1092
+ }
1093
+ },
1094
+ "ul_list": {
1095
+ "title": "EditableHtmlButtonConfigure",
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "disabled": {
1099
+ "description": "Indicates if the plugin is disabled or not",
1100
+ "type": "boolean",
1101
+ "title": "disabled"
1102
+ }
1103
+ }
1104
+ },
1105
+ "underline": {
1106
+ "title": "EditableHtmlButtonConfigure",
1107
+ "type": "object",
1108
+ "properties": {
1109
+ "disabled": {
1110
+ "description": "Indicates if the plugin is disabled or not",
1111
+ "type": "boolean",
1112
+ "title": "disabled"
1113
+ }
1114
+ }
1115
+ },
1116
+ "undo": {
1117
+ "title": "EditableHtmlButtonConfigure",
1118
+ "type": "object",
1119
+ "properties": {
1120
+ "disabled": {
1121
+ "description": "Indicates if the plugin is disabled or not",
1122
+ "type": "boolean",
1123
+ "title": "disabled"
1124
+ }
1125
+ }
1126
+ }
1127
+ }
1128
+ },
1129
+ "required": {
1130
+ "description": "Indicates if the item is required and the value cannot be empty",
1131
+ "type": "boolean",
1132
+ "title": "required"
1133
+ },
1134
+ "settings": {
1135
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1136
+ "type": "boolean",
1137
+ "title": "settings"
1138
+ },
1139
+ "label": {
1140
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1141
+ "type": "string",
1142
+ "title": "label"
1143
+ }
1144
+ }
1145
+ },
1146
+ "addChoice": {
1147
+ "title": "EditableHtmlPluginConfigure",
1148
+ "type": "object",
1149
+ "properties": {
1150
+ "inputConfiguration": {
1151
+ "title": "EditableHtmlConfigureProp",
1152
+ "type": "object",
1153
+ "properties": {
1154
+ "math": {
1155
+ "title": "EditableHtmlButtonConfigure",
1156
+ "type": "object",
1157
+ "properties": {
1158
+ "disabled": {
1159
+ "description": "Indicates if the plugin is disabled or not",
1160
+ "type": "boolean",
1161
+ "title": "disabled"
1162
+ }
1163
+ }
1164
+ },
1165
+ "audio": {
1166
+ "title": "EditableHtmlButtonConfigure",
1167
+ "type": "object",
1168
+ "properties": {
1169
+ "disabled": {
1170
+ "description": "Indicates if the plugin is disabled or not",
1171
+ "type": "boolean",
1172
+ "title": "disabled"
1173
+ }
1174
+ }
1175
+ },
1176
+ "video": {
1177
+ "title": "EditableHtmlButtonConfigure",
1178
+ "type": "object",
1179
+ "properties": {
1180
+ "disabled": {
1181
+ "description": "Indicates if the plugin is disabled or not",
1182
+ "type": "boolean",
1183
+ "title": "disabled"
1184
+ }
1185
+ }
1186
+ },
1187
+ "image": {
1188
+ "title": "EditableHtmlButtonConfigure",
1189
+ "type": "object",
1190
+ "properties": {
1191
+ "disabled": {
1192
+ "description": "Indicates if the plugin is disabled or not",
1193
+ "type": "boolean",
1194
+ "title": "disabled"
1195
+ }
1196
+ }
1197
+ },
1198
+ "customPlugins": {
1199
+ "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.",
1200
+ "type": "array",
1201
+ "items": {
1202
+ "title": "CustomPlugin",
1203
+ "type": "object",
1204
+ "properties": {
1205
+ "event": {
1206
+ "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\"",
1207
+ "type": "string",
1208
+ "title": "event"
1209
+ },
1210
+ "iconAlt": {
1211
+ "description": "The alt for the custom button icon",
1212
+ "type": "string",
1213
+ "title": "iconAlt"
1214
+ },
1215
+ "iconType": {
1216
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
1217
+ "type": "string",
1218
+ "title": "iconType"
1219
+ },
1220
+ "icon": {
1221
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
1222
+ "type": "string",
1223
+ "title": "icon"
1224
+ }
1225
+ },
1226
+ "required": [
1227
+ "event",
1228
+ "icon",
1229
+ "iconAlt",
1230
+ "iconType"
1231
+ ]
1232
+ },
1233
+ "title": "customPlugins"
1234
+ },
1235
+ "blockquote": {
1236
+ "title": "EditableHtmlButtonConfigure",
1237
+ "type": "object",
1238
+ "properties": {
1239
+ "disabled": {
1240
+ "description": "Indicates if the plugin is disabled or not",
1241
+ "type": "boolean",
1242
+ "title": "disabled"
1243
+ }
1244
+ }
1245
+ },
1246
+ "h3": {
1247
+ "title": "EditableHtmlButtonConfigure",
1248
+ "type": "object",
1249
+ "properties": {
1250
+ "disabled": {
1251
+ "description": "Indicates if the plugin is disabled or not",
1252
+ "type": "boolean",
1253
+ "title": "disabled"
1254
+ }
1255
+ }
1256
+ },
1257
+ "characters": {
1258
+ "title": "EditableHtmlButtonConfigure",
1259
+ "type": "object",
1260
+ "properties": {
1261
+ "disabled": {
1262
+ "description": "Indicates if the plugin is disabled or not",
1263
+ "type": "boolean",
1264
+ "title": "disabled"
1265
+ }
1266
+ }
1267
+ },
1268
+ "bold": {
1269
+ "title": "EditableHtmlButtonConfigure",
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "disabled": {
1273
+ "description": "Indicates if the plugin is disabled or not",
1274
+ "type": "boolean",
1275
+ "title": "disabled"
1276
+ }
1277
+ }
1278
+ },
1279
+ "html": {
1280
+ "title": "EditableHtmlButtonConfigure",
1281
+ "type": "object",
1282
+ "properties": {
1283
+ "disabled": {
1284
+ "description": "Indicates if the plugin is disabled or not",
1285
+ "type": "boolean",
1286
+ "title": "disabled"
1287
+ }
1288
+ }
1289
+ },
1290
+ "italic": {
1291
+ "title": "EditableHtmlButtonConfigure",
1292
+ "type": "object",
1293
+ "properties": {
1294
+ "disabled": {
1295
+ "description": "Indicates if the plugin is disabled or not",
1296
+ "type": "boolean",
1297
+ "title": "disabled"
1298
+ }
1299
+ }
1300
+ },
1301
+ "ol_list": {
1302
+ "title": "EditableHtmlButtonConfigure",
1303
+ "type": "object",
1304
+ "properties": {
1305
+ "disabled": {
1306
+ "description": "Indicates if the plugin is disabled or not",
1307
+ "type": "boolean",
1308
+ "title": "disabled"
1309
+ }
1310
+ }
1311
+ },
1312
+ "redo": {
1313
+ "title": "EditableHtmlButtonConfigure",
1314
+ "type": "object",
1315
+ "properties": {
1316
+ "disabled": {
1317
+ "description": "Indicates if the plugin is disabled or not",
1318
+ "type": "boolean",
1319
+ "title": "disabled"
1320
+ }
1321
+ }
1322
+ },
1323
+ "strikethrough": {
1324
+ "title": "EditableHtmlButtonConfigure",
1325
+ "type": "object",
1326
+ "properties": {
1327
+ "disabled": {
1328
+ "description": "Indicates if the plugin is disabled or not",
1329
+ "type": "boolean",
1330
+ "title": "disabled"
1331
+ }
1332
+ }
1333
+ },
1334
+ "sub": {
1335
+ "title": "EditableHtmlButtonConfigure",
1336
+ "type": "object",
1337
+ "properties": {
1338
+ "disabled": {
1339
+ "description": "Indicates if the plugin is disabled or not",
1340
+ "type": "boolean",
1341
+ "title": "disabled"
1342
+ }
1343
+ }
1344
+ },
1345
+ "sup": {
1346
+ "title": "EditableHtmlButtonConfigure",
1347
+ "type": "object",
1348
+ "properties": {
1349
+ "disabled": {
1350
+ "description": "Indicates if the plugin is disabled or not",
1351
+ "type": "boolean",
1352
+ "title": "disabled"
1353
+ }
1354
+ }
1355
+ },
1356
+ "table": {
1357
+ "title": "EditableHtmlButtonConfigure",
1358
+ "type": "object",
1359
+ "properties": {
1360
+ "disabled": {
1361
+ "description": "Indicates if the plugin is disabled or not",
1362
+ "type": "boolean",
1363
+ "title": "disabled"
1364
+ }
1365
+ }
1366
+ },
1367
+ "ul_list": {
1368
+ "title": "EditableHtmlButtonConfigure",
1369
+ "type": "object",
1370
+ "properties": {
1371
+ "disabled": {
1372
+ "description": "Indicates if the plugin is disabled or not",
1373
+ "type": "boolean",
1374
+ "title": "disabled"
1375
+ }
1376
+ }
1377
+ },
1378
+ "underline": {
1379
+ "title": "EditableHtmlButtonConfigure",
1380
+ "type": "object",
1381
+ "properties": {
1382
+ "disabled": {
1383
+ "description": "Indicates if the plugin is disabled or not",
1384
+ "type": "boolean",
1385
+ "title": "disabled"
1386
+ }
1387
+ }
1388
+ },
1389
+ "undo": {
1390
+ "title": "EditableHtmlButtonConfigure",
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "disabled": {
1394
+ "description": "Indicates if the plugin is disabled or not",
1395
+ "type": "boolean",
1396
+ "title": "disabled"
1397
+ }
1398
+ }
1399
+ }
1400
+ }
1401
+ },
1402
+ "settings": {
1403
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1404
+ "type": "boolean",
1405
+ "title": "settings"
1406
+ },
1407
+ "label": {
1408
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1409
+ "type": "string",
1410
+ "title": "label"
1411
+ }
1412
+ }
1413
+ },
1414
+ "rubric": {
1415
+ "title": "ConfigureProp",
1416
+ "type": "object",
1417
+ "properties": {
1418
+ "settings": {
1419
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1420
+ "type": "boolean",
1421
+ "title": "settings"
1422
+ },
1423
+ "label": {
1424
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1425
+ "type": "string",
1426
+ "title": "label"
1427
+ }
1428
+ }
1429
+ },
1430
+ "mathMlOptions": {
1431
+ "title": "ConfigureMathMLProp",
1432
+ "type": "object",
1433
+ "properties": {
1434
+ "mmlOutput": {
1435
+ "description": "Indicates if model should have mathML output instead of latex",
1436
+ "type": "number",
1437
+ "title": "mmlOutput"
1438
+ },
1439
+ "mmlEditing": {
1440
+ "description": "Indicates if mathML that's already in model should be editable",
1441
+ "type": "number",
1442
+ "title": "mmlEditing"
1443
+ }
1444
+ }
1445
+ },
1446
+ "minChoices": {
1447
+ "description": "Minimum number of choices",
1448
+ "type": "number",
1449
+ "title": "minChoices"
1450
+ },
1451
+ "maxChoices": {
1452
+ "description": "Maximum number of choices",
1453
+ "type": "number",
1454
+ "title": "maxChoices"
1455
+ },
1456
+ "maxResponseAreas": {
1457
+ "description": "Maximum number of response areas",
1458
+ "type": "number",
1459
+ "title": "maxResponseAreas"
1460
+ },
1461
+ "maxImageWidth": {
1462
+ "title": "ConfigureMaxImageDimensionsProp",
1463
+ "type": "object",
1464
+ "properties": {
1465
+ "teacherInstructions": {
1466
+ "description": "Indicates the max dimension for images in teacher instructions",
1467
+ "type": "number",
1468
+ "title": "teacherInstructions"
1469
+ },
1470
+ "prompt": {
1471
+ "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",
1472
+ "type": "number",
1473
+ "title": "prompt"
1474
+ },
1475
+ "rationale": {
1476
+ "description": "Indicates the max dimension for images in rationale",
1477
+ "type": "number",
1478
+ "title": "rationale"
1479
+ }
1480
+ }
1481
+ },
1482
+ "maxImageHeight": {
1483
+ "title": "ConfigureMaxImageDimensionsProp",
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "teacherInstructions": {
1487
+ "description": "Indicates the max dimension for images in teacher instructions",
1488
+ "type": "number",
1489
+ "title": "teacherInstructions"
1490
+ },
1491
+ "prompt": {
1492
+ "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",
1493
+ "type": "number",
1494
+ "title": "prompt"
1495
+ },
1496
+ "rationale": {
1497
+ "description": "Indicates the max dimension for images in rationale",
1498
+ "type": "number",
1499
+ "title": "rationale"
1500
+ }
1501
+ }
1502
+ },
1503
+ "withRubric": {
1504
+ "title": "ConfigureProp",
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "settings": {
1508
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1509
+ "type": "boolean",
1510
+ "title": "settings"
1511
+ },
1512
+ "label": {
1513
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1514
+ "type": "string",
1515
+ "title": "label"
1516
+ }
1517
+ }
1518
+ },
1519
+ "language": {
1520
+ "title": "ConfigurePropWithEnabled",
1521
+ "type": "object",
1522
+ "properties": {
1523
+ "enabled": {
1524
+ "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)",
1525
+ "type": "boolean",
1526
+ "title": "enabled"
1527
+ },
1528
+ "settings": {
1529
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1530
+ "type": "boolean",
1531
+ "title": "settings"
1532
+ },
1533
+ "label": {
1534
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1535
+ "type": "string",
1536
+ "title": "label"
1537
+ }
1538
+ }
1539
+ },
1540
+ "languageChoices": {
1541
+ "description": "Language choices configuration\nOnly available if language is enabled",
1542
+ "type": "object",
1543
+ "properties": {
1544
+ "label": {
1545
+ "type": "string",
1546
+ "title": "label"
1547
+ },
1548
+ "options": {
1549
+ "type": "array",
1550
+ "items": {
1551
+ "title": "ConfigureLanguageOptionsProp",
1552
+ "type": "object",
1553
+ "properties": {
1554
+ "value": {
1555
+ "description": "Value of the language option",
1556
+ "type": "string",
1557
+ "title": "value"
1558
+ },
1559
+ "label": {
1560
+ "description": "Label of the language option",
1561
+ "type": "string",
1562
+ "title": "label"
1563
+ }
1564
+ },
1565
+ "required": [
1566
+ "label",
1567
+ "value"
1568
+ ]
1569
+ },
1570
+ "title": "options"
1571
+ }
1572
+ },
1573
+ "required": [
1574
+ "label",
1575
+ "options"
1576
+ ],
1577
+ "title": "languageChoices"
1578
+ },
1579
+ "maxLength": {
1580
+ "description": "Maximum character limit for each answer choice",
1581
+ "type": "number",
1582
+ "title": "maxLength"
1583
+ },
1584
+ "showPrompt": {
1585
+ "description": "Determines whether prompt field will be displayed or not",
1586
+ "default": true,
1587
+ "type": "boolean",
1588
+ "title": "showPrompt"
1589
+ },
1590
+ "promptLabel": {
1591
+ "description": "The label for the item stem/prompt field",
1592
+ "default": "Item Stemm",
1593
+ "type": "string",
1594
+ "title": "promptLabel"
1595
+ },
1596
+ "contentDimensions": {
1597
+ "description": "Indicates the dimensions configuration for the authoring container\nNote: Some items have a default minimum width because of their content, but if\nthe minWidth is lower than this, the overflow behavior will take care of that",
1598
+ "default": ": {}",
1599
+ "type": "object",
1600
+ "properties": {
1601
+ "maxHeight": {
1602
+ "description": "Indicates the max height of the authoring container",
1603
+ "default": "undefined",
1604
+ "type": [
1605
+ "string",
1606
+ "number"
1607
+ ],
1608
+ "title": "maxHeight"
1609
+ },
1610
+ "maxWidth": {
1611
+ "description": "Indicates the max width of the authoring container",
1612
+ "default": "undefined",
1613
+ "type": [
1614
+ "string",
1615
+ "number"
1616
+ ],
1617
+ "title": "maxWidth"
1618
+ },
1619
+ "minHeight": {
1620
+ "description": "Indicates the min height of the authoring container",
1621
+ "default": "undefined",
1622
+ "type": [
1623
+ "string",
1624
+ "number"
1625
+ ],
1626
+ "title": "minHeight"
1627
+ },
1628
+ "minWidth": {
1629
+ "description": "Indicates the min width of the authoring container",
1630
+ "default": "undefined",
1631
+ "type": [
1632
+ "string",
1633
+ "number"
1634
+ ],
1635
+ "title": "minWidth"
1636
+ }
1637
+ },
1638
+ "title": "contentDimensions"
1639
+ },
1640
+ "settingsPartialScoring": {
1641
+ "description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
1642
+ "default": true,
1643
+ "type": "boolean",
1644
+ "title": "settingsPartialScoring"
1645
+ }
1646
+ },
1647
+ "definitions": {
1648
+ "EditableHtmlConfigureProp": {
1649
+ "title": "EditableHtmlConfigureProp",
1650
+ "type": "object",
1651
+ "properties": {
1652
+ "math": {
1653
+ "title": "EditableHtmlButtonConfigure",
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "disabled": {
1657
+ "description": "Indicates if the plugin is disabled or not",
1658
+ "type": "boolean",
1659
+ "title": "disabled"
1660
+ }
1661
+ }
1662
+ },
1663
+ "audio": {
1664
+ "title": "EditableHtmlButtonConfigure",
1665
+ "type": "object",
1666
+ "properties": {
1667
+ "disabled": {
1668
+ "description": "Indicates if the plugin is disabled or not",
1669
+ "type": "boolean",
1670
+ "title": "disabled"
1671
+ }
1672
+ }
1673
+ },
1674
+ "video": {
1675
+ "title": "EditableHtmlButtonConfigure",
1676
+ "type": "object",
1677
+ "properties": {
1678
+ "disabled": {
1679
+ "description": "Indicates if the plugin is disabled or not",
1680
+ "type": "boolean",
1681
+ "title": "disabled"
1682
+ }
1683
+ }
1684
+ },
1685
+ "image": {
1686
+ "title": "EditableHtmlButtonConfigure",
1687
+ "type": "object",
1688
+ "properties": {
1689
+ "disabled": {
1690
+ "description": "Indicates if the plugin is disabled or not",
1691
+ "type": "boolean",
1692
+ "title": "disabled"
1693
+ }
1694
+ }
1695
+ },
1696
+ "customPlugins": {
1697
+ "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.",
1698
+ "type": "array",
1699
+ "items": {
1700
+ "title": "CustomPlugin",
1701
+ "type": "object",
1702
+ "properties": {
1703
+ "event": {
1704
+ "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\"",
1705
+ "type": "string",
1706
+ "title": "event"
1707
+ },
1708
+ "iconAlt": {
1709
+ "description": "The alt for the custom button icon",
1710
+ "type": "string",
1711
+ "title": "iconAlt"
1712
+ },
1713
+ "iconType": {
1714
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
1715
+ "type": "string",
1716
+ "title": "iconType"
1717
+ },
1718
+ "icon": {
1719
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
1720
+ "type": "string",
1721
+ "title": "icon"
1722
+ }
1723
+ },
1724
+ "required": [
1725
+ "event",
1726
+ "icon",
1727
+ "iconAlt",
1728
+ "iconType"
1729
+ ]
1730
+ },
1731
+ "title": "customPlugins"
1732
+ },
1733
+ "blockquote": {
1734
+ "title": "EditableHtmlButtonConfigure",
1735
+ "type": "object",
1736
+ "properties": {
1737
+ "disabled": {
1738
+ "description": "Indicates if the plugin is disabled or not",
1739
+ "type": "boolean",
1740
+ "title": "disabled"
1741
+ }
1742
+ }
1743
+ },
1744
+ "h3": {
1745
+ "title": "EditableHtmlButtonConfigure",
1746
+ "type": "object",
1747
+ "properties": {
1748
+ "disabled": {
1749
+ "description": "Indicates if the plugin is disabled or not",
1750
+ "type": "boolean",
1751
+ "title": "disabled"
1752
+ }
1753
+ }
1754
+ },
1755
+ "characters": {
1756
+ "title": "EditableHtmlButtonConfigure",
1757
+ "type": "object",
1758
+ "properties": {
1759
+ "disabled": {
1760
+ "description": "Indicates if the plugin is disabled or not",
1761
+ "type": "boolean",
1762
+ "title": "disabled"
1763
+ }
1764
+ }
1765
+ },
1766
+ "bold": {
1767
+ "title": "EditableHtmlButtonConfigure",
1768
+ "type": "object",
1769
+ "properties": {
1770
+ "disabled": {
1771
+ "description": "Indicates if the plugin is disabled or not",
1772
+ "type": "boolean",
1773
+ "title": "disabled"
1774
+ }
1775
+ }
1776
+ },
1777
+ "html": {
1778
+ "title": "EditableHtmlButtonConfigure",
1779
+ "type": "object",
1780
+ "properties": {
1781
+ "disabled": {
1782
+ "description": "Indicates if the plugin is disabled or not",
1783
+ "type": "boolean",
1784
+ "title": "disabled"
1785
+ }
1786
+ }
1787
+ },
1788
+ "italic": {
1789
+ "title": "EditableHtmlButtonConfigure",
1790
+ "type": "object",
1791
+ "properties": {
1792
+ "disabled": {
1793
+ "description": "Indicates if the plugin is disabled or not",
1794
+ "type": "boolean",
1795
+ "title": "disabled"
1796
+ }
1797
+ }
1798
+ },
1799
+ "ol_list": {
1800
+ "title": "EditableHtmlButtonConfigure",
1801
+ "type": "object",
1802
+ "properties": {
1803
+ "disabled": {
1804
+ "description": "Indicates if the plugin is disabled or not",
1805
+ "type": "boolean",
1806
+ "title": "disabled"
1807
+ }
1808
+ }
1809
+ },
1810
+ "redo": {
1811
+ "title": "EditableHtmlButtonConfigure",
1812
+ "type": "object",
1813
+ "properties": {
1814
+ "disabled": {
1815
+ "description": "Indicates if the plugin is disabled or not",
1816
+ "type": "boolean",
1817
+ "title": "disabled"
1818
+ }
1819
+ }
1820
+ },
1821
+ "strikethrough": {
1822
+ "title": "EditableHtmlButtonConfigure",
1823
+ "type": "object",
1824
+ "properties": {
1825
+ "disabled": {
1826
+ "description": "Indicates if the plugin is disabled or not",
1827
+ "type": "boolean",
1828
+ "title": "disabled"
1829
+ }
1830
+ }
1831
+ },
1832
+ "sub": {
1833
+ "title": "EditableHtmlButtonConfigure",
1834
+ "type": "object",
1835
+ "properties": {
1836
+ "disabled": {
1837
+ "description": "Indicates if the plugin is disabled or not",
1838
+ "type": "boolean",
1839
+ "title": "disabled"
1840
+ }
1841
+ }
1842
+ },
1843
+ "sup": {
1844
+ "title": "EditableHtmlButtonConfigure",
1845
+ "type": "object",
1846
+ "properties": {
1847
+ "disabled": {
1848
+ "description": "Indicates if the plugin is disabled or not",
1849
+ "type": "boolean",
1850
+ "title": "disabled"
1851
+ }
1852
+ }
1853
+ },
1854
+ "table": {
1855
+ "title": "EditableHtmlButtonConfigure",
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "disabled": {
1859
+ "description": "Indicates if the plugin is disabled or not",
1860
+ "type": "boolean",
1861
+ "title": "disabled"
1862
+ }
1863
+ }
1864
+ },
1865
+ "ul_list": {
1866
+ "title": "EditableHtmlButtonConfigure",
1867
+ "type": "object",
1868
+ "properties": {
1869
+ "disabled": {
1870
+ "description": "Indicates if the plugin is disabled or not",
1871
+ "type": "boolean",
1872
+ "title": "disabled"
1873
+ }
1874
+ }
1875
+ },
1876
+ "underline": {
1877
+ "title": "EditableHtmlButtonConfigure",
1878
+ "type": "object",
1879
+ "properties": {
1880
+ "disabled": {
1881
+ "description": "Indicates if the plugin is disabled or not",
1882
+ "type": "boolean",
1883
+ "title": "disabled"
1884
+ }
1885
+ }
1886
+ },
1887
+ "undo": {
1888
+ "title": "EditableHtmlButtonConfigure",
1889
+ "type": "object",
1890
+ "properties": {
1891
+ "disabled": {
1892
+ "description": "Indicates if the plugin is disabled or not",
1893
+ "type": "boolean",
1894
+ "title": "disabled"
1895
+ }
1896
+ }
1897
+ }
1898
+ }
1899
+ },
1900
+ "EditableHtmlButtonConfigure": {
1901
+ "title": "EditableHtmlButtonConfigure",
1902
+ "type": "object",
1903
+ "properties": {
1904
+ "disabled": {
1905
+ "description": "Indicates if the plugin is disabled or not",
1906
+ "type": "boolean",
1907
+ "title": "disabled"
1908
+ }
1909
+ }
1910
+ },
1911
+ "CustomPlugin": {
1912
+ "title": "CustomPlugin",
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "event": {
1916
+ "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\"",
1917
+ "type": "string",
1918
+ "title": "event"
1919
+ },
1920
+ "iconAlt": {
1921
+ "description": "The alt for the custom button icon",
1922
+ "type": "string",
1923
+ "title": "iconAlt"
1924
+ },
1925
+ "iconType": {
1926
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
1927
+ "type": "string",
1928
+ "title": "iconType"
1929
+ },
1930
+ "icon": {
1931
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
1932
+ "type": "string",
1933
+ "title": "icon"
1934
+ }
1935
+ },
1936
+ "required": [
1937
+ "event",
1938
+ "icon",
1939
+ "iconAlt",
1940
+ "iconType"
1941
+ ]
1942
+ },
1943
+ "ConfigureProp": {
1944
+ "title": "ConfigureProp",
1945
+ "type": "object",
1946
+ "properties": {
1947
+ "settings": {
1948
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1949
+ "type": "boolean",
1950
+ "title": "settings"
1951
+ },
1952
+ "label": {
1953
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1954
+ "type": "string",
1955
+ "title": "label"
1956
+ }
1957
+ }
1958
+ },
1959
+ "EditableHtmlPluginConfigureRequired": {
1960
+ "title": "EditableHtmlPluginConfigureRequired",
1961
+ "type": "object",
1962
+ "properties": {
1963
+ "inputConfiguration": {
1964
+ "title": "EditableHtmlConfigureProp",
1965
+ "type": "object",
1966
+ "properties": {
1967
+ "math": {
1968
+ "title": "EditableHtmlButtonConfigure",
1969
+ "type": "object",
1970
+ "properties": {
1971
+ "disabled": {
1972
+ "description": "Indicates if the plugin is disabled or not",
1973
+ "type": "boolean",
1974
+ "title": "disabled"
1975
+ }
1976
+ }
1977
+ },
1978
+ "audio": {
1979
+ "title": "EditableHtmlButtonConfigure",
1980
+ "type": "object",
1981
+ "properties": {
1982
+ "disabled": {
1983
+ "description": "Indicates if the plugin is disabled or not",
1984
+ "type": "boolean",
1985
+ "title": "disabled"
1986
+ }
1987
+ }
1988
+ },
1989
+ "video": {
1990
+ "title": "EditableHtmlButtonConfigure",
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "disabled": {
1994
+ "description": "Indicates if the plugin is disabled or not",
1995
+ "type": "boolean",
1996
+ "title": "disabled"
1997
+ }
1998
+ }
1999
+ },
2000
+ "image": {
2001
+ "title": "EditableHtmlButtonConfigure",
2002
+ "type": "object",
2003
+ "properties": {
2004
+ "disabled": {
2005
+ "description": "Indicates if the plugin is disabled or not",
2006
+ "type": "boolean",
2007
+ "title": "disabled"
2008
+ }
2009
+ }
2010
+ },
2011
+ "customPlugins": {
2012
+ "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.",
2013
+ "type": "array",
2014
+ "items": {
2015
+ "title": "CustomPlugin",
2016
+ "type": "object",
2017
+ "properties": {
2018
+ "event": {
2019
+ "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\"",
2020
+ "type": "string",
2021
+ "title": "event"
2022
+ },
2023
+ "iconAlt": {
2024
+ "description": "The alt for the custom button icon",
2025
+ "type": "string",
2026
+ "title": "iconAlt"
2027
+ },
2028
+ "iconType": {
2029
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
2030
+ "type": "string",
2031
+ "title": "iconType"
2032
+ },
2033
+ "icon": {
2034
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
2035
+ "type": "string",
2036
+ "title": "icon"
2037
+ }
2038
+ },
2039
+ "required": [
2040
+ "event",
2041
+ "icon",
2042
+ "iconAlt",
2043
+ "iconType"
2044
+ ]
2045
+ },
2046
+ "title": "customPlugins"
2047
+ },
2048
+ "blockquote": {
2049
+ "title": "EditableHtmlButtonConfigure",
2050
+ "type": "object",
2051
+ "properties": {
2052
+ "disabled": {
2053
+ "description": "Indicates if the plugin is disabled or not",
2054
+ "type": "boolean",
2055
+ "title": "disabled"
2056
+ }
2057
+ }
2058
+ },
2059
+ "h3": {
2060
+ "title": "EditableHtmlButtonConfigure",
2061
+ "type": "object",
2062
+ "properties": {
2063
+ "disabled": {
2064
+ "description": "Indicates if the plugin is disabled or not",
2065
+ "type": "boolean",
2066
+ "title": "disabled"
2067
+ }
2068
+ }
2069
+ },
2070
+ "characters": {
2071
+ "title": "EditableHtmlButtonConfigure",
2072
+ "type": "object",
2073
+ "properties": {
2074
+ "disabled": {
2075
+ "description": "Indicates if the plugin is disabled or not",
2076
+ "type": "boolean",
2077
+ "title": "disabled"
2078
+ }
2079
+ }
2080
+ },
2081
+ "bold": {
2082
+ "title": "EditableHtmlButtonConfigure",
2083
+ "type": "object",
2084
+ "properties": {
2085
+ "disabled": {
2086
+ "description": "Indicates if the plugin is disabled or not",
2087
+ "type": "boolean",
2088
+ "title": "disabled"
2089
+ }
2090
+ }
2091
+ },
2092
+ "html": {
2093
+ "title": "EditableHtmlButtonConfigure",
2094
+ "type": "object",
2095
+ "properties": {
2096
+ "disabled": {
2097
+ "description": "Indicates if the plugin is disabled or not",
2098
+ "type": "boolean",
2099
+ "title": "disabled"
2100
+ }
2101
+ }
2102
+ },
2103
+ "italic": {
2104
+ "title": "EditableHtmlButtonConfigure",
2105
+ "type": "object",
2106
+ "properties": {
2107
+ "disabled": {
2108
+ "description": "Indicates if the plugin is disabled or not",
2109
+ "type": "boolean",
2110
+ "title": "disabled"
2111
+ }
2112
+ }
2113
+ },
2114
+ "ol_list": {
2115
+ "title": "EditableHtmlButtonConfigure",
2116
+ "type": "object",
2117
+ "properties": {
2118
+ "disabled": {
2119
+ "description": "Indicates if the plugin is disabled or not",
2120
+ "type": "boolean",
2121
+ "title": "disabled"
2122
+ }
2123
+ }
2124
+ },
2125
+ "redo": {
2126
+ "title": "EditableHtmlButtonConfigure",
2127
+ "type": "object",
2128
+ "properties": {
2129
+ "disabled": {
2130
+ "description": "Indicates if the plugin is disabled or not",
2131
+ "type": "boolean",
2132
+ "title": "disabled"
2133
+ }
2134
+ }
2135
+ },
2136
+ "strikethrough": {
2137
+ "title": "EditableHtmlButtonConfigure",
2138
+ "type": "object",
2139
+ "properties": {
2140
+ "disabled": {
2141
+ "description": "Indicates if the plugin is disabled or not",
2142
+ "type": "boolean",
2143
+ "title": "disabled"
2144
+ }
2145
+ }
2146
+ },
2147
+ "sub": {
2148
+ "title": "EditableHtmlButtonConfigure",
2149
+ "type": "object",
2150
+ "properties": {
2151
+ "disabled": {
2152
+ "description": "Indicates if the plugin is disabled or not",
2153
+ "type": "boolean",
2154
+ "title": "disabled"
2155
+ }
2156
+ }
2157
+ },
2158
+ "sup": {
2159
+ "title": "EditableHtmlButtonConfigure",
2160
+ "type": "object",
2161
+ "properties": {
2162
+ "disabled": {
2163
+ "description": "Indicates if the plugin is disabled or not",
2164
+ "type": "boolean",
2165
+ "title": "disabled"
2166
+ }
2167
+ }
2168
+ },
2169
+ "table": {
2170
+ "title": "EditableHtmlButtonConfigure",
2171
+ "type": "object",
2172
+ "properties": {
2173
+ "disabled": {
2174
+ "description": "Indicates if the plugin is disabled or not",
2175
+ "type": "boolean",
2176
+ "title": "disabled"
2177
+ }
2178
+ }
2179
+ },
2180
+ "ul_list": {
2181
+ "title": "EditableHtmlButtonConfigure",
2182
+ "type": "object",
2183
+ "properties": {
2184
+ "disabled": {
2185
+ "description": "Indicates if the plugin is disabled or not",
2186
+ "type": "boolean",
2187
+ "title": "disabled"
2188
+ }
2189
+ }
2190
+ },
2191
+ "underline": {
2192
+ "title": "EditableHtmlButtonConfigure",
2193
+ "type": "object",
2194
+ "properties": {
2195
+ "disabled": {
2196
+ "description": "Indicates if the plugin is disabled or not",
2197
+ "type": "boolean",
2198
+ "title": "disabled"
2199
+ }
2200
+ }
2201
+ },
2202
+ "undo": {
2203
+ "title": "EditableHtmlButtonConfigure",
2204
+ "type": "object",
2205
+ "properties": {
2206
+ "disabled": {
2207
+ "description": "Indicates if the plugin is disabled or not",
2208
+ "type": "boolean",
2209
+ "title": "disabled"
2210
+ }
2211
+ }
2212
+ }
2213
+ }
2214
+ },
2215
+ "required": {
2216
+ "description": "Indicates if the item is required and the value cannot be empty",
2217
+ "type": "boolean",
2218
+ "title": "required"
2219
+ },
2220
+ "settings": {
2221
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
2222
+ "type": "boolean",
2223
+ "title": "settings"
2224
+ },
2225
+ "label": {
2226
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
2227
+ "type": "string",
2228
+ "title": "label"
2229
+ }
2230
+ }
2231
+ },
2232
+ "EditableHtmlPluginConfigure": {
2233
+ "title": "EditableHtmlPluginConfigure",
2234
+ "type": "object",
2235
+ "properties": {
2236
+ "inputConfiguration": {
2237
+ "title": "EditableHtmlConfigureProp",
2238
+ "type": "object",
2239
+ "properties": {
2240
+ "math": {
2241
+ "title": "EditableHtmlButtonConfigure",
2242
+ "type": "object",
2243
+ "properties": {
2244
+ "disabled": {
2245
+ "description": "Indicates if the plugin is disabled or not",
2246
+ "type": "boolean",
2247
+ "title": "disabled"
2248
+ }
2249
+ }
2250
+ },
2251
+ "audio": {
2252
+ "title": "EditableHtmlButtonConfigure",
2253
+ "type": "object",
2254
+ "properties": {
2255
+ "disabled": {
2256
+ "description": "Indicates if the plugin is disabled or not",
2257
+ "type": "boolean",
2258
+ "title": "disabled"
2259
+ }
2260
+ }
2261
+ },
2262
+ "video": {
2263
+ "title": "EditableHtmlButtonConfigure",
2264
+ "type": "object",
2265
+ "properties": {
2266
+ "disabled": {
2267
+ "description": "Indicates if the plugin is disabled or not",
2268
+ "type": "boolean",
2269
+ "title": "disabled"
2270
+ }
2271
+ }
2272
+ },
2273
+ "image": {
2274
+ "title": "EditableHtmlButtonConfigure",
2275
+ "type": "object",
2276
+ "properties": {
2277
+ "disabled": {
2278
+ "description": "Indicates if the plugin is disabled or not",
2279
+ "type": "boolean",
2280
+ "title": "disabled"
2281
+ }
2282
+ }
2283
+ },
2284
+ "customPlugins": {
2285
+ "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.",
2286
+ "type": "array",
2287
+ "items": {
2288
+ "title": "CustomPlugin",
2289
+ "type": "object",
2290
+ "properties": {
2291
+ "event": {
2292
+ "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\"",
2293
+ "type": "string",
2294
+ "title": "event"
2295
+ },
2296
+ "iconAlt": {
2297
+ "description": "The alt for the custom button icon",
2298
+ "type": "string",
2299
+ "title": "iconAlt"
2300
+ },
2301
+ "iconType": {
2302
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
2303
+ "type": "string",
2304
+ "title": "iconType"
2305
+ },
2306
+ "icon": {
2307
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
2308
+ "type": "string",
2309
+ "title": "icon"
2310
+ }
2311
+ },
2312
+ "required": [
2313
+ "event",
2314
+ "icon",
2315
+ "iconAlt",
2316
+ "iconType"
2317
+ ]
2318
+ },
2319
+ "title": "customPlugins"
2320
+ },
2321
+ "blockquote": {
2322
+ "title": "EditableHtmlButtonConfigure",
2323
+ "type": "object",
2324
+ "properties": {
2325
+ "disabled": {
2326
+ "description": "Indicates if the plugin is disabled or not",
2327
+ "type": "boolean",
2328
+ "title": "disabled"
2329
+ }
2330
+ }
2331
+ },
2332
+ "h3": {
2333
+ "title": "EditableHtmlButtonConfigure",
2334
+ "type": "object",
2335
+ "properties": {
2336
+ "disabled": {
2337
+ "description": "Indicates if the plugin is disabled or not",
2338
+ "type": "boolean",
2339
+ "title": "disabled"
2340
+ }
2341
+ }
2342
+ },
2343
+ "characters": {
2344
+ "title": "EditableHtmlButtonConfigure",
2345
+ "type": "object",
2346
+ "properties": {
2347
+ "disabled": {
2348
+ "description": "Indicates if the plugin is disabled or not",
2349
+ "type": "boolean",
2350
+ "title": "disabled"
2351
+ }
2352
+ }
2353
+ },
2354
+ "bold": {
2355
+ "title": "EditableHtmlButtonConfigure",
2356
+ "type": "object",
2357
+ "properties": {
2358
+ "disabled": {
2359
+ "description": "Indicates if the plugin is disabled or not",
2360
+ "type": "boolean",
2361
+ "title": "disabled"
2362
+ }
2363
+ }
2364
+ },
2365
+ "html": {
2366
+ "title": "EditableHtmlButtonConfigure",
2367
+ "type": "object",
2368
+ "properties": {
2369
+ "disabled": {
2370
+ "description": "Indicates if the plugin is disabled or not",
2371
+ "type": "boolean",
2372
+ "title": "disabled"
2373
+ }
2374
+ }
2375
+ },
2376
+ "italic": {
2377
+ "title": "EditableHtmlButtonConfigure",
2378
+ "type": "object",
2379
+ "properties": {
2380
+ "disabled": {
2381
+ "description": "Indicates if the plugin is disabled or not",
2382
+ "type": "boolean",
2383
+ "title": "disabled"
2384
+ }
2385
+ }
2386
+ },
2387
+ "ol_list": {
2388
+ "title": "EditableHtmlButtonConfigure",
2389
+ "type": "object",
2390
+ "properties": {
2391
+ "disabled": {
2392
+ "description": "Indicates if the plugin is disabled or not",
2393
+ "type": "boolean",
2394
+ "title": "disabled"
2395
+ }
2396
+ }
2397
+ },
2398
+ "redo": {
2399
+ "title": "EditableHtmlButtonConfigure",
2400
+ "type": "object",
2401
+ "properties": {
2402
+ "disabled": {
2403
+ "description": "Indicates if the plugin is disabled or not",
2404
+ "type": "boolean",
2405
+ "title": "disabled"
2406
+ }
2407
+ }
2408
+ },
2409
+ "strikethrough": {
2410
+ "title": "EditableHtmlButtonConfigure",
2411
+ "type": "object",
2412
+ "properties": {
2413
+ "disabled": {
2414
+ "description": "Indicates if the plugin is disabled or not",
2415
+ "type": "boolean",
2416
+ "title": "disabled"
2417
+ }
2418
+ }
2419
+ },
2420
+ "sub": {
2421
+ "title": "EditableHtmlButtonConfigure",
2422
+ "type": "object",
2423
+ "properties": {
2424
+ "disabled": {
2425
+ "description": "Indicates if the plugin is disabled or not",
2426
+ "type": "boolean",
2427
+ "title": "disabled"
2428
+ }
2429
+ }
2430
+ },
2431
+ "sup": {
2432
+ "title": "EditableHtmlButtonConfigure",
2433
+ "type": "object",
2434
+ "properties": {
2435
+ "disabled": {
2436
+ "description": "Indicates if the plugin is disabled or not",
2437
+ "type": "boolean",
2438
+ "title": "disabled"
2439
+ }
2440
+ }
2441
+ },
2442
+ "table": {
2443
+ "title": "EditableHtmlButtonConfigure",
2444
+ "type": "object",
2445
+ "properties": {
2446
+ "disabled": {
2447
+ "description": "Indicates if the plugin is disabled or not",
2448
+ "type": "boolean",
2449
+ "title": "disabled"
2450
+ }
2451
+ }
2452
+ },
2453
+ "ul_list": {
2454
+ "title": "EditableHtmlButtonConfigure",
2455
+ "type": "object",
2456
+ "properties": {
2457
+ "disabled": {
2458
+ "description": "Indicates if the plugin is disabled or not",
2459
+ "type": "boolean",
2460
+ "title": "disabled"
2461
+ }
2462
+ }
2463
+ },
2464
+ "underline": {
2465
+ "title": "EditableHtmlButtonConfigure",
2466
+ "type": "object",
2467
+ "properties": {
2468
+ "disabled": {
2469
+ "description": "Indicates if the plugin is disabled or not",
2470
+ "type": "boolean",
2471
+ "title": "disabled"
2472
+ }
2473
+ }
2474
+ },
2475
+ "undo": {
2476
+ "title": "EditableHtmlButtonConfigure",
2477
+ "type": "object",
2478
+ "properties": {
2479
+ "disabled": {
2480
+ "description": "Indicates if the plugin is disabled or not",
2481
+ "type": "boolean",
2482
+ "title": "disabled"
2483
+ }
2484
+ }
2485
+ }
2486
+ }
2487
+ },
2488
+ "settings": {
2489
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
2490
+ "type": "boolean",
2491
+ "title": "settings"
2492
+ },
2493
+ "label": {
2494
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
2495
+ "type": "string",
2496
+ "title": "label"
2497
+ }
2498
+ }
2499
+ },
2500
+ "ConfigureMathMLProp": {
2501
+ "title": "ConfigureMathMLProp",
2502
+ "type": "object",
2503
+ "properties": {
2504
+ "mmlOutput": {
2505
+ "description": "Indicates if model should have mathML output instead of latex",
2506
+ "type": "number",
2507
+ "title": "mmlOutput"
2508
+ },
2509
+ "mmlEditing": {
2510
+ "description": "Indicates if mathML that's already in model should be editable",
2511
+ "type": "number",
2512
+ "title": "mmlEditing"
2513
+ }
2514
+ }
2515
+ },
2516
+ "ConfigureMaxImageDimensionsProp": {
2517
+ "title": "ConfigureMaxImageDimensionsProp",
2518
+ "type": "object",
2519
+ "properties": {
2520
+ "teacherInstructions": {
2521
+ "description": "Indicates the max dimension for images in teacher instructions",
2522
+ "type": "number",
2523
+ "title": "teacherInstructions"
2524
+ },
2525
+ "prompt": {
2526
+ "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",
2527
+ "type": "number",
2528
+ "title": "prompt"
2529
+ },
2530
+ "rationale": {
2531
+ "description": "Indicates the max dimension for images in rationale",
2532
+ "type": "number",
2533
+ "title": "rationale"
2534
+ }
2535
+ }
2536
+ },
2537
+ "ConfigurePropWithEnabled": {
2538
+ "title": "ConfigurePropWithEnabled",
2539
+ "type": "object",
2540
+ "properties": {
2541
+ "enabled": {
2542
+ "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)",
2543
+ "type": "boolean",
2544
+ "title": "enabled"
2545
+ },
2546
+ "settings": {
2547
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
2548
+ "type": "boolean",
2549
+ "title": "settings"
2550
+ },
2551
+ "label": {
2552
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
2553
+ "type": "string",
2554
+ "title": "label"
2555
+ }
2556
+ }
2557
+ },
2558
+ "ConfigureLanguageOptionsProp": {
2559
+ "title": "ConfigureLanguageOptionsProp",
2560
+ "type": "object",
2561
+ "properties": {
2562
+ "value": {
2563
+ "description": "Value of the language option",
2564
+ "type": "string",
2565
+ "title": "value"
2566
+ },
2567
+ "label": {
2568
+ "description": "Label of the language option",
2569
+ "type": "string",
2570
+ "title": "label"
2571
+ }
2572
+ },
2573
+ "required": [
2574
+ "label",
2575
+ "value"
2576
+ ]
2577
+ }
2578
+ },
2579
+ "$schema": "http://json-schema.org/draft-07/schema#"
2580
+ }