@pie-element/inline-dropdown 10.1.1 → 10.1.2-next.1

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