@pie-element/likert 4.1.2-next.1 → 4.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 (87) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +1462 -0
  3. package/LICENSE.md +5 -0
  4. package/configure/CHANGELOG.json +1 -0
  5. package/configure/CHANGELOG.md +1379 -0
  6. package/configure/lib/choiceGenerator.js +219 -0
  7. package/configure/lib/choiceGenerator.js.map +1 -0
  8. package/configure/lib/defaults.js +100 -0
  9. package/configure/lib/defaults.js.map +1 -0
  10. package/configure/lib/index.js +106 -0
  11. package/configure/lib/index.js.map +1 -0
  12. package/configure/lib/likertEntities.js +24 -0
  13. package/configure/lib/likertEntities.js.map +1 -0
  14. package/configure/lib/main.js +388 -0
  15. package/configure/lib/main.js.map +1 -0
  16. package/configure/package.json +27 -0
  17. package/controller/CHANGELOG.json +1 -0
  18. package/controller/CHANGELOG.md +90 -0
  19. package/controller/lib/defaults.js +17 -0
  20. package/controller/lib/defaults.js.map +1 -0
  21. package/controller/lib/index.js +81 -0
  22. package/controller/lib/index.js.map +1 -0
  23. package/controller/package.json +17 -0
  24. package/docs/config-schema.json +2011 -0
  25. package/docs/config-schema.json.md +1487 -0
  26. package/docs/demo/config.js +8 -0
  27. package/docs/demo/generate.js +22 -0
  28. package/docs/demo/index.html +1 -0
  29. package/docs/demo/session.js +6 -0
  30. package/docs/pie-schema.json +966 -0
  31. package/docs/pie-schema.json.md +711 -0
  32. package/lib/choice-input.js +90 -0
  33. package/lib/choice-input.js.map +1 -0
  34. package/lib/index.js +64 -0
  35. package/lib/index.js.map +1 -0
  36. package/lib/likert.js +97 -0
  37. package/lib/likert.js.map +1 -0
  38. package/lib/likertEntities.js +11 -0
  39. package/lib/likertEntities.js.map +1 -0
  40. package/lib/main.js +42 -0
  41. package/lib/main.js.map +1 -0
  42. package/lib/session-updater.js +15 -0
  43. package/lib/session-updater.js.map +1 -0
  44. package/package.json +21 -84
  45. package/readme.md +55 -0
  46. package/configure.js +0 -2
  47. package/controller.js +0 -1
  48. package/dist/author/choiceGenerator.d.ts +0 -13
  49. package/dist/author/choiceGenerator.js +0 -255
  50. package/dist/author/defaults.d.ts +0 -102
  51. package/dist/author/defaults.js +0 -60
  52. package/dist/author/index.d.ts +0 -31
  53. package/dist/author/index.js +0 -73
  54. package/dist/author/likertEntities.d.ts +0 -25
  55. package/dist/author/likertEntities.js +0 -18
  56. package/dist/author/main.d.ts +0 -27
  57. package/dist/author/main.js +0 -298
  58. package/dist/browser/Radio-CAjl01LA.js +0 -9447
  59. package/dist/browser/Radio-CAjl01LA.js.map +0 -1
  60. package/dist/browser/author/index.js +0 -39374
  61. package/dist/browser/author/index.js.map +0 -1
  62. package/dist/browser/controller/index.js +0 -51
  63. package/dist/browser/controller/index.js.map +0 -1
  64. package/dist/browser/delivery/index.js +0 -219
  65. package/dist/browser/delivery/index.js.map +0 -1
  66. package/dist/browser/likert.css +0 -2
  67. package/dist/controller/defaults.d.ts +0 -19
  68. package/dist/controller/defaults.js +0 -13
  69. package/dist/controller/index.d.ts +0 -19
  70. package/dist/controller/index.js +0 -41
  71. package/dist/delivery/choice-input.d.ts +0 -27
  72. package/dist/delivery/choice-input.js +0 -59
  73. package/dist/delivery/index.d.ts +0 -19
  74. package/dist/delivery/index.js +0 -44
  75. package/dist/delivery/likert.d.ts +0 -26
  76. package/dist/delivery/likert.js +0 -70
  77. package/dist/delivery/likertEntities.d.ts +0 -12
  78. package/dist/delivery/likertEntities.js +0 -7
  79. package/dist/delivery/main.d.ts +0 -23
  80. package/dist/delivery/main.js +0 -37
  81. package/dist/delivery/session-updater.d.ts +0 -9
  82. package/dist/index.d.ts +0 -1
  83. package/dist/index.iife.d.ts +0 -8
  84. package/dist/index.iife.js +0 -145
  85. package/dist/index.js +0 -2
  86. package/dist/runtime-support.d.ts +0 -12
  87. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,966 @@
1
+ {
2
+ "description": "Model for the Likert Interaction",
3
+ "additionalProperties": false,
4
+ "type": "object",
5
+ "properties": {
6
+ "likertScale": {
7
+ "description": "Indicates the likert scale",
8
+ "enum": [
9
+ "likert3",
10
+ "likert5",
11
+ "likert7"
12
+ ],
13
+ "type": "string",
14
+ "title": "likertScale"
15
+ },
16
+ "likertType": {
17
+ "description": "Indicates the likert type",
18
+ "enum": [
19
+ "agreement",
20
+ "frequency",
21
+ "importance",
22
+ "like",
23
+ "likelihood",
24
+ "yesNo"
25
+ ],
26
+ "type": "string",
27
+ "title": "likertType"
28
+ },
29
+ "likertOrientation": {
30
+ "description": "Indicates the likert type",
31
+ "enum": [
32
+ "horizontal",
33
+ "vertical"
34
+ ],
35
+ "type": "string",
36
+ "title": "likertOrientation"
37
+ },
38
+ "choices": {
39
+ "description": "The choice options for the question",
40
+ "type": "array",
41
+ "items": {
42
+ "title": "LikertChoice",
43
+ "type": "object",
44
+ "properties": {
45
+ "value": {
46
+ "description": "the value that will be stored if this likert choice is selected",
47
+ "type": "string",
48
+ "title": "value"
49
+ },
50
+ "label": {
51
+ "description": "the text label that will be presented to the user for this likert choice",
52
+ "type": "string",
53
+ "title": "label"
54
+ }
55
+ },
56
+ "required": [
57
+ "label",
58
+ "value"
59
+ ]
60
+ },
61
+ "title": "choices"
62
+ },
63
+ "teacherInstructionsEnabled": {
64
+ "description": "Indicates if Teacher Instructions are enabled",
65
+ "type": "boolean",
66
+ "title": "teacherInstructionsEnabled"
67
+ },
68
+ "spellCheckEnabled": {
69
+ "description": "Indicates if spellcheck is enabled for the author. Default value is true",
70
+ "type": "boolean",
71
+ "title": "spellCheckEnabled"
72
+ },
73
+ "id": {
74
+ "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
75
+ "type": "string",
76
+ "title": "id"
77
+ },
78
+ "element": {
79
+ "description": "The html Element tag name",
80
+ "type": "string",
81
+ "title": "element"
82
+ }
83
+ },
84
+ "required": [
85
+ "choices",
86
+ "element",
87
+ "id",
88
+ "spellCheckEnabled",
89
+ "teacherInstructionsEnabled"
90
+ ],
91
+ "definitions": {
92
+ "ConfigureProp": {
93
+ "title": "ConfigureProp",
94
+ "type": "object",
95
+ "properties": {
96
+ "settings": {
97
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
98
+ "type": "boolean",
99
+ "title": "settings"
100
+ },
101
+ "label": {
102
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
103
+ "type": "string",
104
+ "title": "label"
105
+ }
106
+ }
107
+ },
108
+ "EditableHtmlPluginConfigureRequired": {
109
+ "title": "EditableHtmlPluginConfigureRequired",
110
+ "type": "object",
111
+ "properties": {
112
+ "inputConfiguration": {
113
+ "title": "EditableHtmlConfigureProp",
114
+ "type": "object",
115
+ "properties": {
116
+ "math": {
117
+ "title": "EditableHtmlButtonConfigure",
118
+ "type": "object",
119
+ "properties": {
120
+ "disabled": {
121
+ "description": "Indicates if the plugin is disabled or not",
122
+ "type": "boolean",
123
+ "title": "disabled"
124
+ }
125
+ }
126
+ },
127
+ "audio": {
128
+ "title": "EditableHtmlButtonConfigure",
129
+ "type": "object",
130
+ "properties": {
131
+ "disabled": {
132
+ "description": "Indicates if the plugin is disabled or not",
133
+ "type": "boolean",
134
+ "title": "disabled"
135
+ }
136
+ }
137
+ },
138
+ "video": {
139
+ "title": "EditableHtmlButtonConfigure",
140
+ "type": "object",
141
+ "properties": {
142
+ "disabled": {
143
+ "description": "Indicates if the plugin is disabled or not",
144
+ "type": "boolean",
145
+ "title": "disabled"
146
+ }
147
+ }
148
+ },
149
+ "image": {
150
+ "title": "EditableHtmlButtonConfigure",
151
+ "type": "object",
152
+ "properties": {
153
+ "disabled": {
154
+ "description": "Indicates if the plugin is disabled or not",
155
+ "type": "boolean",
156
+ "title": "disabled"
157
+ }
158
+ }
159
+ },
160
+ "customPlugins": {
161
+ "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.",
162
+ "type": "array",
163
+ "items": {
164
+ "title": "CustomPlugin",
165
+ "type": "object",
166
+ "properties": {
167
+ "event": {
168
+ "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\"",
169
+ "type": "string",
170
+ "title": "event"
171
+ },
172
+ "iconAlt": {
173
+ "description": "The alt for the custom button icon",
174
+ "type": "string",
175
+ "title": "iconAlt"
176
+ },
177
+ "iconType": {
178
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
179
+ "type": "string",
180
+ "title": "iconType"
181
+ },
182
+ "icon": {
183
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
184
+ "type": "string",
185
+ "title": "icon"
186
+ }
187
+ },
188
+ "required": [
189
+ "event",
190
+ "icon",
191
+ "iconAlt",
192
+ "iconType"
193
+ ]
194
+ },
195
+ "title": "customPlugins"
196
+ },
197
+ "blockquote": {
198
+ "title": "EditableHtmlButtonConfigure",
199
+ "type": "object",
200
+ "properties": {
201
+ "disabled": {
202
+ "description": "Indicates if the plugin is disabled or not",
203
+ "type": "boolean",
204
+ "title": "disabled"
205
+ }
206
+ }
207
+ },
208
+ "h3": {
209
+ "title": "EditableHtmlButtonConfigure",
210
+ "type": "object",
211
+ "properties": {
212
+ "disabled": {
213
+ "description": "Indicates if the plugin is disabled or not",
214
+ "type": "boolean",
215
+ "title": "disabled"
216
+ }
217
+ }
218
+ },
219
+ "characters": {
220
+ "title": "EditableHtmlButtonConfigure",
221
+ "type": "object",
222
+ "properties": {
223
+ "disabled": {
224
+ "description": "Indicates if the plugin is disabled or not",
225
+ "type": "boolean",
226
+ "title": "disabled"
227
+ }
228
+ }
229
+ },
230
+ "bold": {
231
+ "title": "EditableHtmlButtonConfigure",
232
+ "type": "object",
233
+ "properties": {
234
+ "disabled": {
235
+ "description": "Indicates if the plugin is disabled or not",
236
+ "type": "boolean",
237
+ "title": "disabled"
238
+ }
239
+ }
240
+ },
241
+ "html": {
242
+ "title": "EditableHtmlButtonConfigure",
243
+ "type": "object",
244
+ "properties": {
245
+ "disabled": {
246
+ "description": "Indicates if the plugin is disabled or not",
247
+ "type": "boolean",
248
+ "title": "disabled"
249
+ }
250
+ }
251
+ },
252
+ "italic": {
253
+ "title": "EditableHtmlButtonConfigure",
254
+ "type": "object",
255
+ "properties": {
256
+ "disabled": {
257
+ "description": "Indicates if the plugin is disabled or not",
258
+ "type": "boolean",
259
+ "title": "disabled"
260
+ }
261
+ }
262
+ },
263
+ "ol_list": {
264
+ "title": "EditableHtmlButtonConfigure",
265
+ "type": "object",
266
+ "properties": {
267
+ "disabled": {
268
+ "description": "Indicates if the plugin is disabled or not",
269
+ "type": "boolean",
270
+ "title": "disabled"
271
+ }
272
+ }
273
+ },
274
+ "redo": {
275
+ "title": "EditableHtmlButtonConfigure",
276
+ "type": "object",
277
+ "properties": {
278
+ "disabled": {
279
+ "description": "Indicates if the plugin is disabled or not",
280
+ "type": "boolean",
281
+ "title": "disabled"
282
+ }
283
+ }
284
+ },
285
+ "strikethrough": {
286
+ "title": "EditableHtmlButtonConfigure",
287
+ "type": "object",
288
+ "properties": {
289
+ "disabled": {
290
+ "description": "Indicates if the plugin is disabled or not",
291
+ "type": "boolean",
292
+ "title": "disabled"
293
+ }
294
+ }
295
+ },
296
+ "sub": {
297
+ "title": "EditableHtmlButtonConfigure",
298
+ "type": "object",
299
+ "properties": {
300
+ "disabled": {
301
+ "description": "Indicates if the plugin is disabled or not",
302
+ "type": "boolean",
303
+ "title": "disabled"
304
+ }
305
+ }
306
+ },
307
+ "sup": {
308
+ "title": "EditableHtmlButtonConfigure",
309
+ "type": "object",
310
+ "properties": {
311
+ "disabled": {
312
+ "description": "Indicates if the plugin is disabled or not",
313
+ "type": "boolean",
314
+ "title": "disabled"
315
+ }
316
+ }
317
+ },
318
+ "table": {
319
+ "title": "EditableHtmlButtonConfigure",
320
+ "type": "object",
321
+ "properties": {
322
+ "disabled": {
323
+ "description": "Indicates if the plugin is disabled or not",
324
+ "type": "boolean",
325
+ "title": "disabled"
326
+ }
327
+ }
328
+ },
329
+ "ul_list": {
330
+ "title": "EditableHtmlButtonConfigure",
331
+ "type": "object",
332
+ "properties": {
333
+ "disabled": {
334
+ "description": "Indicates if the plugin is disabled or not",
335
+ "type": "boolean",
336
+ "title": "disabled"
337
+ }
338
+ }
339
+ },
340
+ "underline": {
341
+ "title": "EditableHtmlButtonConfigure",
342
+ "type": "object",
343
+ "properties": {
344
+ "disabled": {
345
+ "description": "Indicates if the plugin is disabled or not",
346
+ "type": "boolean",
347
+ "title": "disabled"
348
+ }
349
+ }
350
+ },
351
+ "undo": {
352
+ "title": "EditableHtmlButtonConfigure",
353
+ "type": "object",
354
+ "properties": {
355
+ "disabled": {
356
+ "description": "Indicates if the plugin is disabled or not",
357
+ "type": "boolean",
358
+ "title": "disabled"
359
+ }
360
+ }
361
+ }
362
+ }
363
+ },
364
+ "required": {
365
+ "description": "Indicates if the item is required and the value cannot be empty",
366
+ "type": "boolean",
367
+ "title": "required"
368
+ },
369
+ "settings": {
370
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
371
+ "type": "boolean",
372
+ "title": "settings"
373
+ },
374
+ "label": {
375
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
376
+ "type": "string",
377
+ "title": "label"
378
+ }
379
+ }
380
+ },
381
+ "EditableHtmlConfigureProp": {
382
+ "title": "EditableHtmlConfigureProp",
383
+ "type": "object",
384
+ "properties": {
385
+ "math": {
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
+ "audio": {
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
+ "video": {
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
+ "image": {
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
+ "customPlugins": {
430
+ "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.",
431
+ "type": "array",
432
+ "items": {
433
+ "title": "CustomPlugin",
434
+ "type": "object",
435
+ "properties": {
436
+ "event": {
437
+ "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\"",
438
+ "type": "string",
439
+ "title": "event"
440
+ },
441
+ "iconAlt": {
442
+ "description": "The alt for the custom button icon",
443
+ "type": "string",
444
+ "title": "iconAlt"
445
+ },
446
+ "iconType": {
447
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
448
+ "type": "string",
449
+ "title": "iconType"
450
+ },
451
+ "icon": {
452
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
453
+ "type": "string",
454
+ "title": "icon"
455
+ }
456
+ },
457
+ "required": [
458
+ "event",
459
+ "icon",
460
+ "iconAlt",
461
+ "iconType"
462
+ ]
463
+ },
464
+ "title": "customPlugins"
465
+ },
466
+ "blockquote": {
467
+ "title": "EditableHtmlButtonConfigure",
468
+ "type": "object",
469
+ "properties": {
470
+ "disabled": {
471
+ "description": "Indicates if the plugin is disabled or not",
472
+ "type": "boolean",
473
+ "title": "disabled"
474
+ }
475
+ }
476
+ },
477
+ "h3": {
478
+ "title": "EditableHtmlButtonConfigure",
479
+ "type": "object",
480
+ "properties": {
481
+ "disabled": {
482
+ "description": "Indicates if the plugin is disabled or not",
483
+ "type": "boolean",
484
+ "title": "disabled"
485
+ }
486
+ }
487
+ },
488
+ "characters": {
489
+ "title": "EditableHtmlButtonConfigure",
490
+ "type": "object",
491
+ "properties": {
492
+ "disabled": {
493
+ "description": "Indicates if the plugin is disabled or not",
494
+ "type": "boolean",
495
+ "title": "disabled"
496
+ }
497
+ }
498
+ },
499
+ "bold": {
500
+ "title": "EditableHtmlButtonConfigure",
501
+ "type": "object",
502
+ "properties": {
503
+ "disabled": {
504
+ "description": "Indicates if the plugin is disabled or not",
505
+ "type": "boolean",
506
+ "title": "disabled"
507
+ }
508
+ }
509
+ },
510
+ "html": {
511
+ "title": "EditableHtmlButtonConfigure",
512
+ "type": "object",
513
+ "properties": {
514
+ "disabled": {
515
+ "description": "Indicates if the plugin is disabled or not",
516
+ "type": "boolean",
517
+ "title": "disabled"
518
+ }
519
+ }
520
+ },
521
+ "italic": {
522
+ "title": "EditableHtmlButtonConfigure",
523
+ "type": "object",
524
+ "properties": {
525
+ "disabled": {
526
+ "description": "Indicates if the plugin is disabled or not",
527
+ "type": "boolean",
528
+ "title": "disabled"
529
+ }
530
+ }
531
+ },
532
+ "ol_list": {
533
+ "title": "EditableHtmlButtonConfigure",
534
+ "type": "object",
535
+ "properties": {
536
+ "disabled": {
537
+ "description": "Indicates if the plugin is disabled or not",
538
+ "type": "boolean",
539
+ "title": "disabled"
540
+ }
541
+ }
542
+ },
543
+ "redo": {
544
+ "title": "EditableHtmlButtonConfigure",
545
+ "type": "object",
546
+ "properties": {
547
+ "disabled": {
548
+ "description": "Indicates if the plugin is disabled or not",
549
+ "type": "boolean",
550
+ "title": "disabled"
551
+ }
552
+ }
553
+ },
554
+ "strikethrough": {
555
+ "title": "EditableHtmlButtonConfigure",
556
+ "type": "object",
557
+ "properties": {
558
+ "disabled": {
559
+ "description": "Indicates if the plugin is disabled or not",
560
+ "type": "boolean",
561
+ "title": "disabled"
562
+ }
563
+ }
564
+ },
565
+ "sub": {
566
+ "title": "EditableHtmlButtonConfigure",
567
+ "type": "object",
568
+ "properties": {
569
+ "disabled": {
570
+ "description": "Indicates if the plugin is disabled or not",
571
+ "type": "boolean",
572
+ "title": "disabled"
573
+ }
574
+ }
575
+ },
576
+ "sup": {
577
+ "title": "EditableHtmlButtonConfigure",
578
+ "type": "object",
579
+ "properties": {
580
+ "disabled": {
581
+ "description": "Indicates if the plugin is disabled or not",
582
+ "type": "boolean",
583
+ "title": "disabled"
584
+ }
585
+ }
586
+ },
587
+ "table": {
588
+ "title": "EditableHtmlButtonConfigure",
589
+ "type": "object",
590
+ "properties": {
591
+ "disabled": {
592
+ "description": "Indicates if the plugin is disabled or not",
593
+ "type": "boolean",
594
+ "title": "disabled"
595
+ }
596
+ }
597
+ },
598
+ "ul_list": {
599
+ "title": "EditableHtmlButtonConfigure",
600
+ "type": "object",
601
+ "properties": {
602
+ "disabled": {
603
+ "description": "Indicates if the plugin is disabled or not",
604
+ "type": "boolean",
605
+ "title": "disabled"
606
+ }
607
+ }
608
+ },
609
+ "underline": {
610
+ "title": "EditableHtmlButtonConfigure",
611
+ "type": "object",
612
+ "properties": {
613
+ "disabled": {
614
+ "description": "Indicates if the plugin is disabled or not",
615
+ "type": "boolean",
616
+ "title": "disabled"
617
+ }
618
+ }
619
+ },
620
+ "undo": {
621
+ "title": "EditableHtmlButtonConfigure",
622
+ "type": "object",
623
+ "properties": {
624
+ "disabled": {
625
+ "description": "Indicates if the plugin is disabled or not",
626
+ "type": "boolean",
627
+ "title": "disabled"
628
+ }
629
+ }
630
+ }
631
+ }
632
+ },
633
+ "EditableHtmlButtonConfigure": {
634
+ "title": "EditableHtmlButtonConfigure",
635
+ "type": "object",
636
+ "properties": {
637
+ "disabled": {
638
+ "description": "Indicates if the plugin is disabled or not",
639
+ "type": "boolean",
640
+ "title": "disabled"
641
+ }
642
+ }
643
+ },
644
+ "CustomPlugin": {
645
+ "title": "CustomPlugin",
646
+ "type": "object",
647
+ "properties": {
648
+ "event": {
649
+ "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\"",
650
+ "type": "string",
651
+ "title": "event"
652
+ },
653
+ "iconAlt": {
654
+ "description": "The alt for the custom button icon",
655
+ "type": "string",
656
+ "title": "iconAlt"
657
+ },
658
+ "iconType": {
659
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
660
+ "type": "string",
661
+ "title": "iconType"
662
+ },
663
+ "icon": {
664
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
665
+ "type": "string",
666
+ "title": "icon"
667
+ }
668
+ },
669
+ "required": [
670
+ "event",
671
+ "icon",
672
+ "iconAlt",
673
+ "iconType"
674
+ ]
675
+ },
676
+ "EditableHtmlPluginConfigure": {
677
+ "title": "EditableHtmlPluginConfigure",
678
+ "type": "object",
679
+ "properties": {
680
+ "inputConfiguration": {
681
+ "title": "EditableHtmlConfigureProp",
682
+ "type": "object",
683
+ "properties": {
684
+ "math": {
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
+ "audio": {
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
+ "video": {
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
+ "image": {
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
+ "customPlugins": {
729
+ "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.",
730
+ "type": "array",
731
+ "items": {
732
+ "title": "CustomPlugin",
733
+ "type": "object",
734
+ "properties": {
735
+ "event": {
736
+ "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\"",
737
+ "type": "string",
738
+ "title": "event"
739
+ },
740
+ "iconAlt": {
741
+ "description": "The alt for the custom button icon",
742
+ "type": "string",
743
+ "title": "iconAlt"
744
+ },
745
+ "iconType": {
746
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
747
+ "type": "string",
748
+ "title": "iconType"
749
+ },
750
+ "icon": {
751
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
752
+ "type": "string",
753
+ "title": "icon"
754
+ }
755
+ },
756
+ "required": [
757
+ "event",
758
+ "icon",
759
+ "iconAlt",
760
+ "iconType"
761
+ ]
762
+ },
763
+ "title": "customPlugins"
764
+ },
765
+ "blockquote": {
766
+ "title": "EditableHtmlButtonConfigure",
767
+ "type": "object",
768
+ "properties": {
769
+ "disabled": {
770
+ "description": "Indicates if the plugin is disabled or not",
771
+ "type": "boolean",
772
+ "title": "disabled"
773
+ }
774
+ }
775
+ },
776
+ "h3": {
777
+ "title": "EditableHtmlButtonConfigure",
778
+ "type": "object",
779
+ "properties": {
780
+ "disabled": {
781
+ "description": "Indicates if the plugin is disabled or not",
782
+ "type": "boolean",
783
+ "title": "disabled"
784
+ }
785
+ }
786
+ },
787
+ "characters": {
788
+ "title": "EditableHtmlButtonConfigure",
789
+ "type": "object",
790
+ "properties": {
791
+ "disabled": {
792
+ "description": "Indicates if the plugin is disabled or not",
793
+ "type": "boolean",
794
+ "title": "disabled"
795
+ }
796
+ }
797
+ },
798
+ "bold": {
799
+ "title": "EditableHtmlButtonConfigure",
800
+ "type": "object",
801
+ "properties": {
802
+ "disabled": {
803
+ "description": "Indicates if the plugin is disabled or not",
804
+ "type": "boolean",
805
+ "title": "disabled"
806
+ }
807
+ }
808
+ },
809
+ "html": {
810
+ "title": "EditableHtmlButtonConfigure",
811
+ "type": "object",
812
+ "properties": {
813
+ "disabled": {
814
+ "description": "Indicates if the plugin is disabled or not",
815
+ "type": "boolean",
816
+ "title": "disabled"
817
+ }
818
+ }
819
+ },
820
+ "italic": {
821
+ "title": "EditableHtmlButtonConfigure",
822
+ "type": "object",
823
+ "properties": {
824
+ "disabled": {
825
+ "description": "Indicates if the plugin is disabled or not",
826
+ "type": "boolean",
827
+ "title": "disabled"
828
+ }
829
+ }
830
+ },
831
+ "ol_list": {
832
+ "title": "EditableHtmlButtonConfigure",
833
+ "type": "object",
834
+ "properties": {
835
+ "disabled": {
836
+ "description": "Indicates if the plugin is disabled or not",
837
+ "type": "boolean",
838
+ "title": "disabled"
839
+ }
840
+ }
841
+ },
842
+ "redo": {
843
+ "title": "EditableHtmlButtonConfigure",
844
+ "type": "object",
845
+ "properties": {
846
+ "disabled": {
847
+ "description": "Indicates if the plugin is disabled or not",
848
+ "type": "boolean",
849
+ "title": "disabled"
850
+ }
851
+ }
852
+ },
853
+ "strikethrough": {
854
+ "title": "EditableHtmlButtonConfigure",
855
+ "type": "object",
856
+ "properties": {
857
+ "disabled": {
858
+ "description": "Indicates if the plugin is disabled or not",
859
+ "type": "boolean",
860
+ "title": "disabled"
861
+ }
862
+ }
863
+ },
864
+ "sub": {
865
+ "title": "EditableHtmlButtonConfigure",
866
+ "type": "object",
867
+ "properties": {
868
+ "disabled": {
869
+ "description": "Indicates if the plugin is disabled or not",
870
+ "type": "boolean",
871
+ "title": "disabled"
872
+ }
873
+ }
874
+ },
875
+ "sup": {
876
+ "title": "EditableHtmlButtonConfigure",
877
+ "type": "object",
878
+ "properties": {
879
+ "disabled": {
880
+ "description": "Indicates if the plugin is disabled or not",
881
+ "type": "boolean",
882
+ "title": "disabled"
883
+ }
884
+ }
885
+ },
886
+ "table": {
887
+ "title": "EditableHtmlButtonConfigure",
888
+ "type": "object",
889
+ "properties": {
890
+ "disabled": {
891
+ "description": "Indicates if the plugin is disabled or not",
892
+ "type": "boolean",
893
+ "title": "disabled"
894
+ }
895
+ }
896
+ },
897
+ "ul_list": {
898
+ "title": "EditableHtmlButtonConfigure",
899
+ "type": "object",
900
+ "properties": {
901
+ "disabled": {
902
+ "description": "Indicates if the plugin is disabled or not",
903
+ "type": "boolean",
904
+ "title": "disabled"
905
+ }
906
+ }
907
+ },
908
+ "underline": {
909
+ "title": "EditableHtmlButtonConfigure",
910
+ "type": "object",
911
+ "properties": {
912
+ "disabled": {
913
+ "description": "Indicates if the plugin is disabled or not",
914
+ "type": "boolean",
915
+ "title": "disabled"
916
+ }
917
+ }
918
+ },
919
+ "undo": {
920
+ "title": "EditableHtmlButtonConfigure",
921
+ "type": "object",
922
+ "properties": {
923
+ "disabled": {
924
+ "description": "Indicates if the plugin is disabled or not",
925
+ "type": "boolean",
926
+ "title": "disabled"
927
+ }
928
+ }
929
+ }
930
+ }
931
+ },
932
+ "settings": {
933
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
934
+ "type": "boolean",
935
+ "title": "settings"
936
+ },
937
+ "label": {
938
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
939
+ "type": "string",
940
+ "title": "label"
941
+ }
942
+ }
943
+ },
944
+ "LikertChoice": {
945
+ "title": "LikertChoice",
946
+ "type": "object",
947
+ "properties": {
948
+ "value": {
949
+ "description": "the value that will be stored if this likert choice is selected",
950
+ "type": "string",
951
+ "title": "value"
952
+ },
953
+ "label": {
954
+ "description": "the text label that will be presented to the user for this likert choice",
955
+ "type": "string",
956
+ "title": "label"
957
+ }
958
+ },
959
+ "required": [
960
+ "label",
961
+ "value"
962
+ ]
963
+ }
964
+ },
965
+ "$schema": "http://json-schema.org/draft-07/schema#"
966
+ }