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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.json +1312 -0
  2. package/CHANGELOG.md +2444 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +57 -0
  5. package/configure/CHANGELOG.json +952 -0
  6. package/configure/CHANGELOG.md +2139 -0
  7. package/configure/lib/choice-editor.js +252 -0
  8. package/configure/lib/choice-editor.js.map +1 -0
  9. package/configure/lib/choice-tile.js +205 -0
  10. package/configure/lib/choice-tile.js.map +1 -0
  11. package/configure/lib/defaults.js +211 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/design.js +427 -0
  14. package/configure/lib/design.js.map +1 -0
  15. package/configure/lib/help.js +14 -0
  16. package/configure/lib/help.js.map +1 -0
  17. package/configure/lib/index.js +155 -0
  18. package/configure/lib/index.js.map +1 -0
  19. package/configure/lib/utils.js +108 -0
  20. package/configure/lib/utils.js.map +1 -0
  21. package/configure/package.json +26 -0
  22. package/controller/CHANGELOG.json +517 -0
  23. package/controller/CHANGELOG.md +1518 -0
  24. package/controller/lib/defaults.js +29 -0
  25. package/controller/lib/defaults.js.map +1 -0
  26. package/controller/lib/index.js +285 -0
  27. package/controller/lib/index.js.map +1 -0
  28. package/controller/lib/scoring.js +109 -0
  29. package/controller/lib/scoring.js.map +1 -0
  30. package/controller/package.json +15 -0
  31. package/docs/config-schema.json +2964 -0
  32. package/docs/config-schema.json.md +2190 -0
  33. package/docs/demo/config.js +8 -0
  34. package/docs/demo/generate.js +50 -0
  35. package/docs/demo/index.html +1 -0
  36. package/docs/demo/session.js +7 -0
  37. package/docs/pie-schema.json +1613 -0
  38. package/docs/pie-schema.json.md +973 -0
  39. package/icon.png +0 -0
  40. package/lib/index.js +122 -0
  41. package/lib/index.js.map +1 -0
  42. package/lib/main.js +32 -0
  43. package/lib/main.js.map +1 -0
  44. package/lib/ordering.js +165 -0
  45. package/lib/ordering.js.map +1 -0
  46. package/lib/placement-ordering.js +419 -0
  47. package/lib/placement-ordering.js.map +1 -0
  48. package/lib/tile.js +259 -0
  49. package/lib/tile.js.map +1 -0
  50. package/lib/tiler.js +165 -0
  51. package/lib/tiler.js.map +1 -0
  52. package/lib/utils.js +18 -0
  53. package/lib/utils.js.map +1 -0
  54. package/package.json +21 -88
  55. package/configure.js +0 -2
  56. package/controller.js +0 -1
  57. package/dist/author/choice-editor.d.ts +0 -39
  58. package/dist/author/choice-editor.js +0 -156
  59. package/dist/author/choice-tile.d.ts +0 -40
  60. package/dist/author/choice-tile.js +0 -132
  61. package/dist/author/defaults.d.ts +0 -213
  62. package/dist/author/defaults.js +0 -159
  63. package/dist/author/design.d.ts +0 -21
  64. package/dist/author/design.js +0 -273
  65. package/dist/author/help.d.ts +0 -11
  66. package/dist/author/index.d.ts +0 -45
  67. package/dist/author/index.js +0 -85
  68. package/dist/author/utils.d.ts +0 -15
  69. package/dist/author/utils.js +0 -62
  70. package/dist/browser/author/index.js +0 -46600
  71. package/dist/browser/author/index.js.map +0 -1
  72. package/dist/browser/browser-DHPggtaA.js +0 -376
  73. package/dist/browser/browser-DHPggtaA.js.map +0 -1
  74. package/dist/browser/controller/index.js +0 -242
  75. package/dist/browser/controller/index.js.map +0 -1
  76. package/dist/browser/delivery/index.js +0 -1035
  77. package/dist/browser/delivery/index.js.map +0 -1
  78. package/dist/browser/dist-D9ARZhQk.js +0 -1426
  79. package/dist/browser/dist-D9ARZhQk.js.map +0 -1
  80. package/dist/browser/drag-provider-C1slTlsc.js +0 -10555
  81. package/dist/browser/drag-provider-C1slTlsc.js.map +0 -1
  82. package/dist/browser/placement-ordering.css +0 -2
  83. package/dist/controller/defaults.d.ts +0 -31
  84. package/dist/controller/defaults.js +0 -25
  85. package/dist/controller/index.d.ts +0 -29
  86. package/dist/controller/index.js +0 -123
  87. package/dist/controller/scoring.d.ts +0 -27
  88. package/dist/controller/scoring.js +0 -30
  89. package/dist/delivery/index.d.ts +0 -26
  90. package/dist/delivery/index.js +0 -70
  91. package/dist/delivery/main.d.ts +0 -19
  92. package/dist/delivery/main.js +0 -22
  93. package/dist/delivery/ordering.d.ts +0 -18
  94. package/dist/delivery/ordering.js +0 -93
  95. package/dist/delivery/placement-ordering.d.ts +0 -28
  96. package/dist/delivery/placement-ordering.js +0 -213
  97. package/dist/delivery/tile.d.ts +0 -28
  98. package/dist/delivery/tile.js +0 -165
  99. package/dist/delivery/tiler.d.ts +0 -42
  100. package/dist/delivery/tiler.js +0 -89
  101. package/dist/delivery/utils.d.ts +0 -9
  102. package/dist/delivery/utils.js +0 -8
  103. package/dist/index.d.ts +0 -1
  104. package/dist/index.iife.d.ts +0 -8
  105. package/dist/index.iife.js +0 -152
  106. package/dist/index.js +0 -2
  107. package/dist/runtime-support.d.ts +0 -12
  108. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,973 @@
1
+ Model for the @pie-elements/placement-ordering
2
+
3
+ The schema defines the following properties:
4
+
5
+ # `choiceLabel` (string)
6
+
7
+ The label for possible choices
8
+
9
+ # `choices` (array, required)
10
+
11
+ Array of all the available choices
12
+
13
+ The object is an array with all elements of the type `object`.
14
+
15
+ The array object has the following properties:
16
+
17
+ ## `id` (string, required)
18
+
19
+ The id of the choice
20
+
21
+ ## `label` (string)
22
+
23
+ The label of the choice
24
+
25
+ # `correctResponse` (array)
26
+
27
+ Array of the correct responses in the correct order
28
+
29
+ The object is an array with all elements of the type `object`.
30
+
31
+ The array object has the following properties:
32
+
33
+ ## `id` (string, required)
34
+
35
+ The id of the correct response
36
+
37
+ ## `weight` (number)
38
+
39
+ The weight of the correct response
40
+ Note: weights are not configurable in the existing component so we'll ignore it for now
41
+
42
+ # `alternateResponses` (array, required)
43
+
44
+ Array that contains the correct alternate responses
45
+
46
+ The object is an array with all elements of the type `object`.
47
+
48
+ The array object has the following properties:
49
+
50
+ ## `response` (array, required)
51
+
52
+ Array that contains the alternate response ids
53
+
54
+ The object is an array with all elements of the type `string`.
55
+
56
+ # `feedback` (object)
57
+
58
+ Properties of the `feedback` object:
59
+
60
+ ## `correct` (, required)
61
+
62
+ Indicates the configuration for feedback when answer is correct
63
+
64
+ ## `incorrect` (, required)
65
+
66
+ Indicates the configuration for feedback when answer is incorrect
67
+
68
+ ## `partial`
69
+
70
+ Indicates the configuration for feedback when answer is partially correct
71
+
72
+ # `prompt` (string)
73
+
74
+ The item stem for the question
75
+
76
+ # `promptEnabled` (boolean)
77
+
78
+ Determines if prompt should show
79
+
80
+ # `lockChoiceOrder` (boolean)
81
+
82
+ Indicates if the choices can lockChoiceOrder
83
+
84
+ # `numberedGuides` (boolean)
85
+
86
+ If placement type is placement; show ordering indicates if the boxes are numbered
87
+
88
+ # `orientation` (string, enum)
89
+
90
+ The layout for displaying the choices
91
+
92
+ This element must be one of the following enum values:
93
+
94
+ * `horizontal`
95
+ * `vertical`
96
+
97
+ # `partialScoring` (boolean)
98
+
99
+ Indicates if partialScoring is enabled
100
+
101
+ # `placementArea` (boolean)
102
+
103
+ Indicates if the items can be replaced with each other or if they can be placed inside other boxes
104
+
105
+ # `rationale` (string)
106
+
107
+ Indicates correct answer rationale
108
+
109
+ # `removeTilesAfterPlacing` (boolean)
110
+
111
+ Indicates if each choice will be removed from choices after becoming a target
112
+
113
+ # `scoringType` (string, enum)
114
+
115
+ Indicates scoring type
116
+
117
+ This element must be one of the following enum values:
118
+
119
+ * `auto`
120
+ * `rubric`
121
+
122
+ # `studentInstructions` (string)
123
+
124
+ Indicates student instructions
125
+
126
+ # `targetLabel` (string)
127
+
128
+ The label for answer area if placement area is enabled
129
+
130
+ # `feedbackEnabled` (boolean, required)
131
+
132
+ Indicates if Feedback is enabled
133
+
134
+ # `teacherInstructions` (string)
135
+
136
+ Indicates teacher instructions
137
+
138
+ # `rationaleEnabled` (boolean, required)
139
+
140
+ Indicates if Rationale are enabled
141
+
142
+ # `studentInstructionsEnabled` (boolean, required)
143
+
144
+ Indicates if Student Instructions are enabled
145
+
146
+ # `teacherInstructionsEnabled` (boolean, required)
147
+
148
+ Indicates if Teacher Instructions are enabled
149
+
150
+ # `choiceLabelEnabled` (boolean)
151
+
152
+ Indicates if Choice Label is enabled
153
+
154
+ # `spellCheckEnabled` (boolean, required)
155
+
156
+ Indicates if spellcheck is enabled for the author. Default value is true
157
+
158
+ # `note` (string)
159
+
160
+ Indicates the note for the answer
161
+
162
+ # `toolbarEditorPosition` (string, enum)
163
+
164
+ Indicates the editor's toolbar position which can be 'bottom' or 'top'
165
+
166
+ This element must be one of the following enum values:
167
+
168
+ * `bottom`
169
+ * `top`
170
+
171
+ Default: `": 'bottom'"`
172
+
173
+ # `rubricEnabled` (boolean, required)
174
+
175
+ Indicates if Rubric is enabled
176
+
177
+ # `language` (string)
178
+
179
+ Indicates the language of the component
180
+ Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX
181
+
182
+ # `id` (string, required)
183
+
184
+ Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
185
+
186
+ # `element` (string, required)
187
+
188
+ The html Element tag name
189
+
190
+ ---
191
+
192
+ # Sub Schemas
193
+
194
+ The schema defines the following additional types:
195
+
196
+ ## `EditableHtmlConfigureProp` (object)
197
+
198
+ Properties of the `EditableHtmlConfigureProp` object:
199
+
200
+ ### `math` (object)
201
+
202
+ Properties of the `math` object:
203
+
204
+ #### `disabled` (boolean)
205
+
206
+ Indicates if the plugin is disabled or not
207
+
208
+ ### `audio` (object)
209
+
210
+ Properties of the `audio` object:
211
+
212
+ #### `disabled` (boolean)
213
+
214
+ Indicates if the plugin is disabled or not
215
+
216
+ ### `video` (object)
217
+
218
+ Properties of the `video` object:
219
+
220
+ #### `disabled` (boolean)
221
+
222
+ Indicates if the plugin is disabled or not
223
+
224
+ ### `image` (object)
225
+
226
+ Properties of the `image` object:
227
+
228
+ #### `disabled` (boolean)
229
+
230
+ Indicates if the plugin is disabled or not
231
+
232
+ ### `customPlugins` (array)
233
+
234
+ An array of objects that determine custom plugins.
235
+ A 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).
236
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
237
+
238
+ The object is an array with all elements of the type `object`.
239
+
240
+ The array object has the following properties:
241
+
242
+ #### `event` (string, required)
243
+
244
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
245
+ PIE will emit the event prefixed with "PIE-".
246
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
247
+
248
+ #### `iconAlt` (string, required)
249
+
250
+ The alt for the custom button icon
251
+
252
+ #### `iconType` (string, required)
253
+
254
+ The icon type.
255
+ Currently, only "SVG" is supported.
256
+
257
+ #### `icon` (string, required)
258
+
259
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
260
+
261
+ ### `blockquote` (object)
262
+
263
+ Properties of the `blockquote` object:
264
+
265
+ #### `disabled` (boolean)
266
+
267
+ Indicates if the plugin is disabled or not
268
+
269
+ ### `h3` (object)
270
+
271
+ Properties of the `h3` object:
272
+
273
+ #### `disabled` (boolean)
274
+
275
+ Indicates if the plugin is disabled or not
276
+
277
+ ### `characters` (object)
278
+
279
+ Properties of the `characters` object:
280
+
281
+ #### `disabled` (boolean)
282
+
283
+ Indicates if the plugin is disabled or not
284
+
285
+ ### `bold` (object)
286
+
287
+ Properties of the `bold` object:
288
+
289
+ #### `disabled` (boolean)
290
+
291
+ Indicates if the plugin is disabled or not
292
+
293
+ ### `html` (object)
294
+
295
+ Properties of the `html` object:
296
+
297
+ #### `disabled` (boolean)
298
+
299
+ Indicates if the plugin is disabled or not
300
+
301
+ ### `italic` (object)
302
+
303
+ Properties of the `italic` object:
304
+
305
+ #### `disabled` (boolean)
306
+
307
+ Indicates if the plugin is disabled or not
308
+
309
+ ### `ol_list` (object)
310
+
311
+ Properties of the `ol_list` object:
312
+
313
+ #### `disabled` (boolean)
314
+
315
+ Indicates if the plugin is disabled or not
316
+
317
+ ### `redo` (object)
318
+
319
+ Properties of the `redo` object:
320
+
321
+ #### `disabled` (boolean)
322
+
323
+ Indicates if the plugin is disabled or not
324
+
325
+ ### `strikethrough` (object)
326
+
327
+ Properties of the `strikethrough` object:
328
+
329
+ #### `disabled` (boolean)
330
+
331
+ Indicates if the plugin is disabled or not
332
+
333
+ ### `sub` (object)
334
+
335
+ Properties of the `sub` object:
336
+
337
+ #### `disabled` (boolean)
338
+
339
+ Indicates if the plugin is disabled or not
340
+
341
+ ### `sup` (object)
342
+
343
+ Properties of the `sup` object:
344
+
345
+ #### `disabled` (boolean)
346
+
347
+ Indicates if the plugin is disabled or not
348
+
349
+ ### `table` (object)
350
+
351
+ Properties of the `table` object:
352
+
353
+ #### `disabled` (boolean)
354
+
355
+ Indicates if the plugin is disabled or not
356
+
357
+ ### `ul_list` (object)
358
+
359
+ Properties of the `ul_list` object:
360
+
361
+ #### `disabled` (boolean)
362
+
363
+ Indicates if the plugin is disabled or not
364
+
365
+ ### `underline` (object)
366
+
367
+ Properties of the `underline` object:
368
+
369
+ #### `disabled` (boolean)
370
+
371
+ Indicates if the plugin is disabled or not
372
+
373
+ ### `undo` (object)
374
+
375
+ Properties of the `undo` object:
376
+
377
+ #### `disabled` (boolean)
378
+
379
+ Indicates if the plugin is disabled or not
380
+
381
+ ## `EditableHtmlButtonConfigure` (object)
382
+
383
+ Properties of the `EditableHtmlButtonConfigure` object:
384
+
385
+ ### `disabled` (boolean)
386
+
387
+ Indicates if the plugin is disabled or not
388
+
389
+ ## `CustomPlugin` (object)
390
+
391
+ Properties of the `CustomPlugin` object:
392
+
393
+ ### `event` (string, required)
394
+
395
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
396
+ PIE will emit the event prefixed with "PIE-".
397
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
398
+
399
+ ### `iconAlt` (string, required)
400
+
401
+ The alt for the custom button icon
402
+
403
+ ### `iconType` (string, required)
404
+
405
+ The icon type.
406
+ Currently, only "SVG" is supported.
407
+
408
+ ### `icon` (string, required)
409
+
410
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
411
+
412
+ ## `EditableHtmlPluginConfigure` (object)
413
+
414
+ Properties of the `EditableHtmlPluginConfigure` object:
415
+
416
+ ### `inputConfiguration` (object)
417
+
418
+ Properties of the `inputConfiguration` object:
419
+
420
+ #### `math` (object)
421
+
422
+ Properties of the `math` object:
423
+
424
+ ##### `disabled` (boolean)
425
+
426
+ Indicates if the plugin is disabled or not
427
+
428
+ #### `audio` (object)
429
+
430
+ Properties of the `audio` object:
431
+
432
+ ##### `disabled` (boolean)
433
+
434
+ Indicates if the plugin is disabled or not
435
+
436
+ #### `video` (object)
437
+
438
+ Properties of the `video` object:
439
+
440
+ ##### `disabled` (boolean)
441
+
442
+ Indicates if the plugin is disabled or not
443
+
444
+ #### `image` (object)
445
+
446
+ Properties of the `image` object:
447
+
448
+ ##### `disabled` (boolean)
449
+
450
+ Indicates if the plugin is disabled or not
451
+
452
+ #### `customPlugins` (array)
453
+
454
+ An array of objects that determine custom plugins.
455
+ A 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).
456
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
457
+
458
+ The object is an array with all elements of the type `object`.
459
+
460
+ The array object has the following properties:
461
+
462
+ ##### `event` (string, required)
463
+
464
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
465
+ PIE will emit the event prefixed with "PIE-".
466
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
467
+
468
+ ##### `iconAlt` (string, required)
469
+
470
+ The alt for the custom button icon
471
+
472
+ ##### `iconType` (string, required)
473
+
474
+ The icon type.
475
+ Currently, only "SVG" is supported.
476
+
477
+ ##### `icon` (string, required)
478
+
479
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
480
+
481
+ #### `blockquote` (object)
482
+
483
+ Properties of the `blockquote` object:
484
+
485
+ ##### `disabled` (boolean)
486
+
487
+ Indicates if the plugin is disabled or not
488
+
489
+ #### `h3` (object)
490
+
491
+ Properties of the `h3` object:
492
+
493
+ ##### `disabled` (boolean)
494
+
495
+ Indicates if the plugin is disabled or not
496
+
497
+ #### `characters` (object)
498
+
499
+ Properties of the `characters` object:
500
+
501
+ ##### `disabled` (boolean)
502
+
503
+ Indicates if the plugin is disabled or not
504
+
505
+ #### `bold` (object)
506
+
507
+ Properties of the `bold` object:
508
+
509
+ ##### `disabled` (boolean)
510
+
511
+ Indicates if the plugin is disabled or not
512
+
513
+ #### `html` (object)
514
+
515
+ Properties of the `html` object:
516
+
517
+ ##### `disabled` (boolean)
518
+
519
+ Indicates if the plugin is disabled or not
520
+
521
+ #### `italic` (object)
522
+
523
+ Properties of the `italic` object:
524
+
525
+ ##### `disabled` (boolean)
526
+
527
+ Indicates if the plugin is disabled or not
528
+
529
+ #### `ol_list` (object)
530
+
531
+ Properties of the `ol_list` object:
532
+
533
+ ##### `disabled` (boolean)
534
+
535
+ Indicates if the plugin is disabled or not
536
+
537
+ #### `redo` (object)
538
+
539
+ Properties of the `redo` object:
540
+
541
+ ##### `disabled` (boolean)
542
+
543
+ Indicates if the plugin is disabled or not
544
+
545
+ #### `strikethrough` (object)
546
+
547
+ Properties of the `strikethrough` object:
548
+
549
+ ##### `disabled` (boolean)
550
+
551
+ Indicates if the plugin is disabled or not
552
+
553
+ #### `sub` (object)
554
+
555
+ Properties of the `sub` object:
556
+
557
+ ##### `disabled` (boolean)
558
+
559
+ Indicates if the plugin is disabled or not
560
+
561
+ #### `sup` (object)
562
+
563
+ Properties of the `sup` object:
564
+
565
+ ##### `disabled` (boolean)
566
+
567
+ Indicates if the plugin is disabled or not
568
+
569
+ #### `table` (object)
570
+
571
+ Properties of the `table` object:
572
+
573
+ ##### `disabled` (boolean)
574
+
575
+ Indicates if the plugin is disabled or not
576
+
577
+ #### `ul_list` (object)
578
+
579
+ Properties of the `ul_list` object:
580
+
581
+ ##### `disabled` (boolean)
582
+
583
+ Indicates if the plugin is disabled or not
584
+
585
+ #### `underline` (object)
586
+
587
+ Properties of the `underline` object:
588
+
589
+ ##### `disabled` (boolean)
590
+
591
+ Indicates if the plugin is disabled or not
592
+
593
+ #### `undo` (object)
594
+
595
+ Properties of the `undo` object:
596
+
597
+ ##### `disabled` (boolean)
598
+
599
+ Indicates if the plugin is disabled or not
600
+
601
+ ### `settings` (boolean)
602
+
603
+ Indicates if the item has to be displayed in the Settings Panel
604
+
605
+ ### `label` (string)
606
+
607
+ Indicates the label for the item that has to be displayed in the Settings Panel
608
+
609
+ ## `ConfigureProp` (object)
610
+
611
+ Properties of the `ConfigureProp` object:
612
+
613
+ ### `settings` (boolean)
614
+
615
+ Indicates if the item has to be displayed in the Settings Panel
616
+
617
+ ### `label` (string)
618
+
619
+ Indicates the label for the item that has to be displayed in the Settings Panel
620
+
621
+ ## `EditableHtmlPluginConfigureRequired` (object)
622
+
623
+ Properties of the `EditableHtmlPluginConfigureRequired` object:
624
+
625
+ ### `inputConfiguration` (object)
626
+
627
+ Properties of the `inputConfiguration` object:
628
+
629
+ #### `math` (object)
630
+
631
+ Properties of the `math` object:
632
+
633
+ ##### `disabled` (boolean)
634
+
635
+ Indicates if the plugin is disabled or not
636
+
637
+ #### `audio` (object)
638
+
639
+ Properties of the `audio` object:
640
+
641
+ ##### `disabled` (boolean)
642
+
643
+ Indicates if the plugin is disabled or not
644
+
645
+ #### `video` (object)
646
+
647
+ Properties of the `video` object:
648
+
649
+ ##### `disabled` (boolean)
650
+
651
+ Indicates if the plugin is disabled or not
652
+
653
+ #### `image` (object)
654
+
655
+ Properties of the `image` object:
656
+
657
+ ##### `disabled` (boolean)
658
+
659
+ Indicates if the plugin is disabled or not
660
+
661
+ #### `customPlugins` (array)
662
+
663
+ An array of objects that determine custom plugins.
664
+ A 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).
665
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
666
+
667
+ The object is an array with all elements of the type `object`.
668
+
669
+ The array object has the following properties:
670
+
671
+ ##### `event` (string, required)
672
+
673
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
674
+ PIE will emit the event prefixed with "PIE-".
675
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
676
+
677
+ ##### `iconAlt` (string, required)
678
+
679
+ The alt for the custom button icon
680
+
681
+ ##### `iconType` (string, required)
682
+
683
+ The icon type.
684
+ Currently, only "SVG" is supported.
685
+
686
+ ##### `icon` (string, required)
687
+
688
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
689
+
690
+ #### `blockquote` (object)
691
+
692
+ Properties of the `blockquote` object:
693
+
694
+ ##### `disabled` (boolean)
695
+
696
+ Indicates if the plugin is disabled or not
697
+
698
+ #### `h3` (object)
699
+
700
+ Properties of the `h3` object:
701
+
702
+ ##### `disabled` (boolean)
703
+
704
+ Indicates if the plugin is disabled or not
705
+
706
+ #### `characters` (object)
707
+
708
+ Properties of the `characters` object:
709
+
710
+ ##### `disabled` (boolean)
711
+
712
+ Indicates if the plugin is disabled or not
713
+
714
+ #### `bold` (object)
715
+
716
+ Properties of the `bold` object:
717
+
718
+ ##### `disabled` (boolean)
719
+
720
+ Indicates if the plugin is disabled or not
721
+
722
+ #### `html` (object)
723
+
724
+ Properties of the `html` object:
725
+
726
+ ##### `disabled` (boolean)
727
+
728
+ Indicates if the plugin is disabled or not
729
+
730
+ #### `italic` (object)
731
+
732
+ Properties of the `italic` object:
733
+
734
+ ##### `disabled` (boolean)
735
+
736
+ Indicates if the plugin is disabled or not
737
+
738
+ #### `ol_list` (object)
739
+
740
+ Properties of the `ol_list` object:
741
+
742
+ ##### `disabled` (boolean)
743
+
744
+ Indicates if the plugin is disabled or not
745
+
746
+ #### `redo` (object)
747
+
748
+ Properties of the `redo` object:
749
+
750
+ ##### `disabled` (boolean)
751
+
752
+ Indicates if the plugin is disabled or not
753
+
754
+ #### `strikethrough` (object)
755
+
756
+ Properties of the `strikethrough` object:
757
+
758
+ ##### `disabled` (boolean)
759
+
760
+ Indicates if the plugin is disabled or not
761
+
762
+ #### `sub` (object)
763
+
764
+ Properties of the `sub` object:
765
+
766
+ ##### `disabled` (boolean)
767
+
768
+ Indicates if the plugin is disabled or not
769
+
770
+ #### `sup` (object)
771
+
772
+ Properties of the `sup` object:
773
+
774
+ ##### `disabled` (boolean)
775
+
776
+ Indicates if the plugin is disabled or not
777
+
778
+ #### `table` (object)
779
+
780
+ Properties of the `table` object:
781
+
782
+ ##### `disabled` (boolean)
783
+
784
+ Indicates if the plugin is disabled or not
785
+
786
+ #### `ul_list` (object)
787
+
788
+ Properties of the `ul_list` object:
789
+
790
+ ##### `disabled` (boolean)
791
+
792
+ Indicates if the plugin is disabled or not
793
+
794
+ #### `underline` (object)
795
+
796
+ Properties of the `underline` object:
797
+
798
+ ##### `disabled` (boolean)
799
+
800
+ Indicates if the plugin is disabled or not
801
+
802
+ #### `undo` (object)
803
+
804
+ Properties of the `undo` object:
805
+
806
+ ##### `disabled` (boolean)
807
+
808
+ Indicates if the plugin is disabled or not
809
+
810
+ ### `required` (boolean)
811
+
812
+ Indicates if the item is required and the value cannot be empty
813
+
814
+ ### `settings` (boolean)
815
+
816
+ Indicates if the item has to be displayed in the Settings Panel
817
+
818
+ ### `label` (string)
819
+
820
+ Indicates the label for the item that has to be displayed in the Settings Panel
821
+
822
+ ## `ConfigureMaxImageDimensionsProp` (object)
823
+
824
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
825
+
826
+ ### `teacherInstructions` (number)
827
+
828
+ Indicates the max dimension for images in teacher instructions
829
+
830
+ ### `prompt` (number)
831
+
832
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
833
+
834
+ ### `rationale` (number)
835
+
836
+ Indicates the max dimension for images in rationale
837
+
838
+ ### `choicesWithPlacementArea` (number)
839
+
840
+ Only available for the width prop: indicates the max width for images in choices and choices labels when placement area is enabled
841
+
842
+ ### `choicesWithoutPlacementArea` (number)
843
+
844
+ Only available for the width prop: indicates the max width for images in choices and choices labels when placement area is disabled
845
+
846
+ ### `choices` (number)
847
+
848
+ Only available for the height prop: indicates the max height for images in choices and choices labels
849
+
850
+ ## `ConfigureMathMLProp` (object)
851
+
852
+ Properties of the `ConfigureMathMLProp` object:
853
+
854
+ ### `mmlOutput` (number)
855
+
856
+ Indicates if model should have mathML output instead of latex
857
+
858
+ ### `mmlEditing` (number)
859
+
860
+ Indicates if mathML that's already in model should be editable
861
+
862
+ ## `ConfigurePropWithEnabled` (object)
863
+
864
+ Properties of the `ConfigurePropWithEnabled` object:
865
+
866
+ ### `enabled` (boolean)
867
+
868
+ Indicates the value of the item if it affects config-ui
869
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
870
+
871
+ ### `settings` (boolean)
872
+
873
+ Indicates if the item has to be displayed in the Settings Panel
874
+
875
+ ### `label` (string)
876
+
877
+ Indicates the label for the item that has to be displayed in the Settings Panel
878
+
879
+ ## `ConfigureLanguageOptionsProp` (object)
880
+
881
+ Properties of the `ConfigureLanguageOptionsProp` object:
882
+
883
+ ### `value` (string, required)
884
+
885
+ Value of the language option
886
+
887
+ ### `label` (string, required)
888
+
889
+ Label of the language option
890
+
891
+ ## `Choice` (object)
892
+
893
+ Properties of the `Choice` object:
894
+
895
+ ### `id` (string, required)
896
+
897
+ The id of the choice
898
+
899
+ ### `label` (string)
900
+
901
+ The label of the choice
902
+
903
+ ## `CorrectResponse` (object)
904
+
905
+ Properties of the `CorrectResponse` object:
906
+
907
+ ### `id` (string, required)
908
+
909
+ The id of the correct response
910
+
911
+ ### `weight` (number)
912
+
913
+ The weight of the correct response
914
+ Note: weights are not configurable in the existing component so we'll ignore it for now
915
+
916
+ ## `AlternateResponse` (object)
917
+
918
+ Properties of the `AlternateResponse` object:
919
+
920
+ ### `response` (array, required)
921
+
922
+ Array that contains the alternate response ids
923
+
924
+ The object is an array with all elements of the type `string`.
925
+
926
+ ## `ComplexFeedbackType` (object)
927
+
928
+ Properties of the `ComplexFeedbackType` object:
929
+
930
+ ### `correct` (, required)
931
+
932
+ Indicates the configuration for feedback when answer is correct
933
+
934
+ ### `incorrect` (, required)
935
+
936
+ Indicates the configuration for feedback when answer is incorrect
937
+
938
+ ### `partial`
939
+
940
+ Indicates the configuration for feedback when answer is partially correct
941
+
942
+ ## `DefaultFeedbackType` (object)
943
+
944
+ Properties of the `DefaultFeedbackType` object:
945
+
946
+ ### `type` (string, enum, required)
947
+
948
+ Indicates the feedback type
949
+
950
+ This element must be one of the following enum values:
951
+
952
+ * `default`
953
+ * `none`
954
+
955
+ ### `default` (string)
956
+
957
+ Indicates the feedback value
958
+
959
+ ## `CustomFeedbackType` (object)
960
+
961
+ Properties of the `CustomFeedbackType` object:
962
+
963
+ ### `type` (string, enum, required)
964
+
965
+ Indicates the feedback type
966
+
967
+ This element must be one of the following enum values:
968
+
969
+ * `custom`
970
+
971
+ ### `custom` (string, required)
972
+
973
+ Indicates the feedback custom value