@pie-element/complex-rubric 6.0.0-beta.1 → 6.0.0-next.42

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 (116) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/configure/CHANGELOG.md +0 -11
  3. package/configure/package.json +6 -6
  4. package/configure/src/__tests__/index.test.js +15 -0
  5. package/configure/src/__tests__/main.test.jsx +7 -0
  6. package/module/configure.js +1 -0
  7. package/module/controller.js +262 -0
  8. package/module/demo.js +221 -0
  9. package/module/element.js +1 -0
  10. package/module/index.html +21 -0
  11. package/module/manifest.json +22 -0
  12. package/module/print-demo.js +259 -0
  13. package/module/print.html +18 -0
  14. package/package.json +5 -5
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +0 -1
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +0 -2491
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +0 -55
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +0 -1
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +0 -2333
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +0 -429
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +0 -1
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +0 -181
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +0 -1
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +0 -157
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +0 -1
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +0 -455
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +0 -1
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +0 -206
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +0 -1
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +0 -451
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +0 -1
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +0 -275
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +0 -1
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +0 -233
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +0 -1
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +0 -87
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +0 -1
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +0 -24
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +0 -1
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +0 -1571
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +0 -18
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +0 -1
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +0 -158
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +0 -1
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +0 -11
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +0 -1
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +0 -14
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +0 -1628
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +0 -1202
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +0 -8
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +0 -117
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +0 -1
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +0 -6
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +0 -861
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +0 -614
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +0 -54
  57. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +0 -1
  58. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +0 -123
  59. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +0 -1
  60. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +0 -248
  61. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +0 -1
  62. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +0 -83
  63. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +0 -1
  64. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +0 -32
  65. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +0 -257
  66. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +0 -2774
  67. package/configure/node_modules/@pie-element/rubric/README.md +0 -3
  68. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +0 -197
  69. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +0 -2541
  70. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +0 -67
  71. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +0 -1
  72. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +0 -135
  73. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +0 -1
  74. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +0 -103
  75. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +0 -1
  76. package/configure/node_modules/@pie-element/rubric/configure/package.json +0 -24
  77. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +0 -178
  78. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +0 -42
  79. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +0 -139
  80. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +0 -87
  81. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +0 -17
  82. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +0 -1564
  83. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +0 -15
  84. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +0 -1
  85. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +0 -46
  86. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +0 -1
  87. package/configure/node_modules/@pie-element/rubric/controller/package.json +0 -12
  88. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +0 -33
  89. package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +0 -8
  90. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +0 -41
  91. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +0 -712
  92. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +0 -532
  93. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +0 -8
  94. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +0 -8
  95. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +0 -2
  96. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +0 -391
  97. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +0 -281
  98. package/configure/node_modules/@pie-element/rubric/lib/index.js +0 -52
  99. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +0 -1
  100. package/configure/node_modules/@pie-element/rubric/lib/main.js +0 -210
  101. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +0 -1
  102. package/configure/node_modules/@pie-element/rubric/lib/print.js +0 -71
  103. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +0 -1
  104. package/configure/node_modules/@pie-element/rubric/package.json +0 -30
  105. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -2641
  106. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +0 -49
  107. package/configure/node_modules/@pie-element/rubric/src/index.js +0 -48
  108. package/configure/node_modules/@pie-element/rubric/src/main.jsx +0 -226
  109. package/configure/node_modules/@pie-element/rubric/src/print.js +0 -74
  110. package/configure/node_modules/clsx/clsx.d.ts +0 -6
  111. package/configure/node_modules/clsx/dist/clsx.js +0 -1
  112. package/configure/node_modules/clsx/dist/clsx.m.js +0 -1
  113. package/configure/node_modules/clsx/dist/clsx.min.js +0 -1
  114. package/configure/node_modules/clsx/license +0 -9
  115. package/configure/node_modules/clsx/package.json +0 -37
  116. package/configure/node_modules/clsx/readme.md +0 -88
@@ -1,861 +0,0 @@
1
- {
2
- "description": "Model for the MultiTraitRubric Interaction",
3
- "additionalProperties": false,
4
- "type": "object",
5
- "properties": {
6
- "halfScoring": {
7
- "description": "Indicates if half scoring is enabled",
8
- "type": "boolean",
9
- "title": "halfScoring"
10
- },
11
- "pointLabels": {
12
- "description": "Indicates if point labels should be shown",
13
- "type": "boolean",
14
- "title": "pointLabels"
15
- },
16
- "visibleToStudent": {
17
- "description": "Indicates if should be visible to student",
18
- "type": "boolean",
19
- "title": "visibleToStudent"
20
- },
21
- "description": {
22
- "description": "Indicates if description should be shown",
23
- "type": "boolean",
24
- "title": "description"
25
- },
26
- "standards": {
27
- "description": "Indicates if standards should be shown",
28
- "type": "boolean",
29
- "title": "standards"
30
- },
31
- "excludeZero": {
32
- "description": "Indicates if scoring should start at 0 or 1",
33
- "type": "boolean",
34
- "title": "excludeZero"
35
- },
36
- "spellCheckEnabled": {
37
- "description": "Indicates if spellcheck is enabled for the author. Default value is true",
38
- "type": "boolean",
39
- "title": "spellCheckEnabled"
40
- },
41
- "scales": {
42
- "description": "scales",
43
- "type": "array",
44
- "items": {
45
- "title": "Scale",
46
- "type": "object",
47
- "properties": {
48
- "maxPoints": {
49
- "description": "Indicates max limit for scoring points",
50
- "type": "number",
51
- "title": "maxPoints"
52
- },
53
- "scorePointsLabels": {
54
- "description": "Score labels. Starting from 0 to max.",
55
- "type": "array",
56
- "items": {
57
- "type": "string"
58
- },
59
- "title": "scorePointsLabels"
60
- },
61
- "traitLabel": {
62
- "description": "Trait label",
63
- "type": "string",
64
- "title": "traitLabel"
65
- },
66
- "traits": {
67
- "description": "Traits",
68
- "type": "array",
69
- "items": {
70
- "title": "Trait",
71
- "type": "object",
72
- "properties": {
73
- "name": {
74
- "description": "Trait name",
75
- "type": "string",
76
- "title": "name"
77
- },
78
- "standards": {
79
- "description": "Trait standards",
80
- "type": "array",
81
- "items": {
82
- "type": "string"
83
- },
84
- "title": "standards"
85
- },
86
- "description": {
87
- "description": "Trait description",
88
- "type": "string",
89
- "title": "description"
90
- },
91
- "scorePointsDescriptors": {
92
- "description": "Score point descriptors. Starting from 0 to max.",
93
- "type": "array",
94
- "items": {
95
- "type": "string"
96
- },
97
- "title": "scorePointsDescriptors"
98
- }
99
- },
100
- "required": [
101
- "description",
102
- "name",
103
- "scorePointsDescriptors",
104
- "standards"
105
- ]
106
- },
107
- "title": "traits"
108
- }
109
- },
110
- "required": [
111
- "maxPoints",
112
- "scorePointsLabels",
113
- "traitLabel",
114
- "traits"
115
- ]
116
- },
117
- "title": "scales"
118
- },
119
- "id": {
120
- "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
121
- "type": "string",
122
- "title": "id"
123
- },
124
- "element": {
125
- "description": "The html Element tag name",
126
- "type": "string",
127
- "title": "element"
128
- }
129
- },
130
- "required": [
131
- "element",
132
- "id",
133
- "scales",
134
- "spellCheckEnabled"
135
- ],
136
- "definitions": {
137
- "EditableHtmlConfigureProp": {
138
- "title": "EditableHtmlConfigureProp",
139
- "type": "object",
140
- "properties": {
141
- "math": {
142
- "title": "EditableHtmlButtonConfigure",
143
- "type": "object",
144
- "properties": {
145
- "disabled": {
146
- "description": "Indicates if the plugin is disabled or not",
147
- "type": "boolean",
148
- "title": "disabled"
149
- }
150
- }
151
- },
152
- "audio": {
153
- "title": "EditableHtmlButtonConfigure",
154
- "type": "object",
155
- "properties": {
156
- "disabled": {
157
- "description": "Indicates if the plugin is disabled or not",
158
- "type": "boolean",
159
- "title": "disabled"
160
- }
161
- }
162
- },
163
- "video": {
164
- "title": "EditableHtmlButtonConfigure",
165
- "type": "object",
166
- "properties": {
167
- "disabled": {
168
- "description": "Indicates if the plugin is disabled or not",
169
- "type": "boolean",
170
- "title": "disabled"
171
- }
172
- }
173
- },
174
- "image": {
175
- "title": "EditableHtmlButtonConfigure",
176
- "type": "object",
177
- "properties": {
178
- "disabled": {
179
- "description": "Indicates if the plugin is disabled or not",
180
- "type": "boolean",
181
- "title": "disabled"
182
- }
183
- }
184
- },
185
- "customPlugins": {
186
- "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.",
187
- "type": "array",
188
- "items": {
189
- "title": "CustomPlugin",
190
- "type": "object",
191
- "properties": {
192
- "event": {
193
- "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\"",
194
- "type": "string",
195
- "title": "event"
196
- },
197
- "iconAlt": {
198
- "description": "The alt for the custom button icon",
199
- "type": "string",
200
- "title": "iconAlt"
201
- },
202
- "iconType": {
203
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
204
- "type": "string",
205
- "title": "iconType"
206
- },
207
- "icon": {
208
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
209
- "type": "string",
210
- "title": "icon"
211
- }
212
- },
213
- "required": [
214
- "event",
215
- "icon",
216
- "iconAlt",
217
- "iconType"
218
- ]
219
- },
220
- "title": "customPlugins"
221
- },
222
- "blockquote": {
223
- "title": "EditableHtmlButtonConfigure",
224
- "type": "object",
225
- "properties": {
226
- "disabled": {
227
- "description": "Indicates if the plugin is disabled or not",
228
- "type": "boolean",
229
- "title": "disabled"
230
- }
231
- }
232
- },
233
- "h3": {
234
- "title": "EditableHtmlButtonConfigure",
235
- "type": "object",
236
- "properties": {
237
- "disabled": {
238
- "description": "Indicates if the plugin is disabled or not",
239
- "type": "boolean",
240
- "title": "disabled"
241
- }
242
- }
243
- },
244
- "characters": {
245
- "title": "EditableHtmlButtonConfigure",
246
- "type": "object",
247
- "properties": {
248
- "disabled": {
249
- "description": "Indicates if the plugin is disabled or not",
250
- "type": "boolean",
251
- "title": "disabled"
252
- }
253
- }
254
- },
255
- "bold": {
256
- "title": "EditableHtmlButtonConfigure",
257
- "type": "object",
258
- "properties": {
259
- "disabled": {
260
- "description": "Indicates if the plugin is disabled or not",
261
- "type": "boolean",
262
- "title": "disabled"
263
- }
264
- }
265
- },
266
- "html": {
267
- "title": "EditableHtmlButtonConfigure",
268
- "type": "object",
269
- "properties": {
270
- "disabled": {
271
- "description": "Indicates if the plugin is disabled or not",
272
- "type": "boolean",
273
- "title": "disabled"
274
- }
275
- }
276
- },
277
- "italic": {
278
- "title": "EditableHtmlButtonConfigure",
279
- "type": "object",
280
- "properties": {
281
- "disabled": {
282
- "description": "Indicates if the plugin is disabled or not",
283
- "type": "boolean",
284
- "title": "disabled"
285
- }
286
- }
287
- },
288
- "ol_list": {
289
- "title": "EditableHtmlButtonConfigure",
290
- "type": "object",
291
- "properties": {
292
- "disabled": {
293
- "description": "Indicates if the plugin is disabled or not",
294
- "type": "boolean",
295
- "title": "disabled"
296
- }
297
- }
298
- },
299
- "redo": {
300
- "title": "EditableHtmlButtonConfigure",
301
- "type": "object",
302
- "properties": {
303
- "disabled": {
304
- "description": "Indicates if the plugin is disabled or not",
305
- "type": "boolean",
306
- "title": "disabled"
307
- }
308
- }
309
- },
310
- "strikethrough": {
311
- "title": "EditableHtmlButtonConfigure",
312
- "type": "object",
313
- "properties": {
314
- "disabled": {
315
- "description": "Indicates if the plugin is disabled or not",
316
- "type": "boolean",
317
- "title": "disabled"
318
- }
319
- }
320
- },
321
- "sub": {
322
- "title": "EditableHtmlButtonConfigure",
323
- "type": "object",
324
- "properties": {
325
- "disabled": {
326
- "description": "Indicates if the plugin is disabled or not",
327
- "type": "boolean",
328
- "title": "disabled"
329
- }
330
- }
331
- },
332
- "sup": {
333
- "title": "EditableHtmlButtonConfigure",
334
- "type": "object",
335
- "properties": {
336
- "disabled": {
337
- "description": "Indicates if the plugin is disabled or not",
338
- "type": "boolean",
339
- "title": "disabled"
340
- }
341
- }
342
- },
343
- "table": {
344
- "title": "EditableHtmlButtonConfigure",
345
- "type": "object",
346
- "properties": {
347
- "disabled": {
348
- "description": "Indicates if the plugin is disabled or not",
349
- "type": "boolean",
350
- "title": "disabled"
351
- }
352
- }
353
- },
354
- "ul_list": {
355
- "title": "EditableHtmlButtonConfigure",
356
- "type": "object",
357
- "properties": {
358
- "disabled": {
359
- "description": "Indicates if the plugin is disabled or not",
360
- "type": "boolean",
361
- "title": "disabled"
362
- }
363
- }
364
- },
365
- "underline": {
366
- "title": "EditableHtmlButtonConfigure",
367
- "type": "object",
368
- "properties": {
369
- "disabled": {
370
- "description": "Indicates if the plugin is disabled or not",
371
- "type": "boolean",
372
- "title": "disabled"
373
- }
374
- }
375
- },
376
- "undo": {
377
- "title": "EditableHtmlButtonConfigure",
378
- "type": "object",
379
- "properties": {
380
- "disabled": {
381
- "description": "Indicates if the plugin is disabled or not",
382
- "type": "boolean",
383
- "title": "disabled"
384
- }
385
- }
386
- }
387
- }
388
- },
389
- "EditableHtmlButtonConfigure": {
390
- "title": "EditableHtmlButtonConfigure",
391
- "type": "object",
392
- "properties": {
393
- "disabled": {
394
- "description": "Indicates if the plugin is disabled or not",
395
- "type": "boolean",
396
- "title": "disabled"
397
- }
398
- }
399
- },
400
- "CustomPlugin": {
401
- "title": "CustomPlugin",
402
- "type": "object",
403
- "properties": {
404
- "event": {
405
- "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\"",
406
- "type": "string",
407
- "title": "event"
408
- },
409
- "iconAlt": {
410
- "description": "The alt for the custom button icon",
411
- "type": "string",
412
- "title": "iconAlt"
413
- },
414
- "iconType": {
415
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
416
- "type": "string",
417
- "title": "iconType"
418
- },
419
- "icon": {
420
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
421
- "type": "string",
422
- "title": "icon"
423
- }
424
- },
425
- "required": [
426
- "event",
427
- "icon",
428
- "iconAlt",
429
- "iconType"
430
- ]
431
- },
432
- "EditableHtmlPluginConfigure": {
433
- "title": "EditableHtmlPluginConfigure",
434
- "type": "object",
435
- "properties": {
436
- "inputConfiguration": {
437
- "title": "EditableHtmlConfigureProp",
438
- "type": "object",
439
- "properties": {
440
- "math": {
441
- "title": "EditableHtmlButtonConfigure",
442
- "type": "object",
443
- "properties": {
444
- "disabled": {
445
- "description": "Indicates if the plugin is disabled or not",
446
- "type": "boolean",
447
- "title": "disabled"
448
- }
449
- }
450
- },
451
- "audio": {
452
- "title": "EditableHtmlButtonConfigure",
453
- "type": "object",
454
- "properties": {
455
- "disabled": {
456
- "description": "Indicates if the plugin is disabled or not",
457
- "type": "boolean",
458
- "title": "disabled"
459
- }
460
- }
461
- },
462
- "video": {
463
- "title": "EditableHtmlButtonConfigure",
464
- "type": "object",
465
- "properties": {
466
- "disabled": {
467
- "description": "Indicates if the plugin is disabled or not",
468
- "type": "boolean",
469
- "title": "disabled"
470
- }
471
- }
472
- },
473
- "image": {
474
- "title": "EditableHtmlButtonConfigure",
475
- "type": "object",
476
- "properties": {
477
- "disabled": {
478
- "description": "Indicates if the plugin is disabled or not",
479
- "type": "boolean",
480
- "title": "disabled"
481
- }
482
- }
483
- },
484
- "customPlugins": {
485
- "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.",
486
- "type": "array",
487
- "items": {
488
- "title": "CustomPlugin",
489
- "type": "object",
490
- "properties": {
491
- "event": {
492
- "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\"",
493
- "type": "string",
494
- "title": "event"
495
- },
496
- "iconAlt": {
497
- "description": "The alt for the custom button icon",
498
- "type": "string",
499
- "title": "iconAlt"
500
- },
501
- "iconType": {
502
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
503
- "type": "string",
504
- "title": "iconType"
505
- },
506
- "icon": {
507
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
508
- "type": "string",
509
- "title": "icon"
510
- }
511
- },
512
- "required": [
513
- "event",
514
- "icon",
515
- "iconAlt",
516
- "iconType"
517
- ]
518
- },
519
- "title": "customPlugins"
520
- },
521
- "blockquote": {
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
- "h3": {
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
- "characters": {
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
- "bold": {
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
- "html": {
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
- "italic": {
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
- "ol_list": {
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
- "redo": {
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
- "strikethrough": {
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
- "sub": {
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
- "sup": {
632
- "title": "EditableHtmlButtonConfigure",
633
- "type": "object",
634
- "properties": {
635
- "disabled": {
636
- "description": "Indicates if the plugin is disabled or not",
637
- "type": "boolean",
638
- "title": "disabled"
639
- }
640
- }
641
- },
642
- "table": {
643
- "title": "EditableHtmlButtonConfigure",
644
- "type": "object",
645
- "properties": {
646
- "disabled": {
647
- "description": "Indicates if the plugin is disabled or not",
648
- "type": "boolean",
649
- "title": "disabled"
650
- }
651
- }
652
- },
653
- "ul_list": {
654
- "title": "EditableHtmlButtonConfigure",
655
- "type": "object",
656
- "properties": {
657
- "disabled": {
658
- "description": "Indicates if the plugin is disabled or not",
659
- "type": "boolean",
660
- "title": "disabled"
661
- }
662
- }
663
- },
664
- "underline": {
665
- "title": "EditableHtmlButtonConfigure",
666
- "type": "object",
667
- "properties": {
668
- "disabled": {
669
- "description": "Indicates if the plugin is disabled or not",
670
- "type": "boolean",
671
- "title": "disabled"
672
- }
673
- }
674
- },
675
- "undo": {
676
- "title": "EditableHtmlButtonConfigure",
677
- "type": "object",
678
- "properties": {
679
- "disabled": {
680
- "description": "Indicates if the plugin is disabled or not",
681
- "type": "boolean",
682
- "title": "disabled"
683
- }
684
- }
685
- }
686
- }
687
- },
688
- "settings": {
689
- "description": "Indicates if the item has to be displayed in the Settings Panel",
690
- "type": "boolean",
691
- "title": "settings"
692
- },
693
- "label": {
694
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
695
- "type": "string",
696
- "title": "label"
697
- }
698
- }
699
- },
700
- "DialogContent": {
701
- "title": "DialogContent",
702
- "type": "object",
703
- "properties": {
704
- "title": {
705
- "description": "Dialog box title",
706
- "type": "string",
707
- "title": "title"
708
- },
709
- "text": {
710
- "description": "Dialog box text",
711
- "type": "string",
712
- "title": "text"
713
- }
714
- }
715
- },
716
- "ConfigureProp": {
717
- "title": "ConfigureProp",
718
- "type": "object",
719
- "properties": {
720
- "settings": {
721
- "description": "Indicates if the item has to be displayed in the Settings Panel",
722
- "type": "boolean",
723
- "title": "settings"
724
- },
725
- "label": {
726
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
727
- "type": "string",
728
- "title": "label"
729
- }
730
- }
731
- },
732
- "ConfigureMathMLProp": {
733
- "title": "ConfigureMathMLProp",
734
- "type": "object",
735
- "properties": {
736
- "mmlOutput": {
737
- "description": "Indicates if model should have mathML output instead of latex",
738
- "type": "number",
739
- "title": "mmlOutput"
740
- },
741
- "mmlEditing": {
742
- "description": "Indicates if mathML that's already in model should be editable",
743
- "type": "number",
744
- "title": "mmlEditing"
745
- }
746
- }
747
- },
748
- "Scale": {
749
- "title": "Scale",
750
- "type": "object",
751
- "properties": {
752
- "maxPoints": {
753
- "description": "Indicates max limit for scoring points",
754
- "type": "number",
755
- "title": "maxPoints"
756
- },
757
- "scorePointsLabels": {
758
- "description": "Score labels. Starting from 0 to max.",
759
- "type": "array",
760
- "items": {
761
- "type": "string"
762
- },
763
- "title": "scorePointsLabels"
764
- },
765
- "traitLabel": {
766
- "description": "Trait label",
767
- "type": "string",
768
- "title": "traitLabel"
769
- },
770
- "traits": {
771
- "description": "Traits",
772
- "type": "array",
773
- "items": {
774
- "title": "Trait",
775
- "type": "object",
776
- "properties": {
777
- "name": {
778
- "description": "Trait name",
779
- "type": "string",
780
- "title": "name"
781
- },
782
- "standards": {
783
- "description": "Trait standards",
784
- "type": "array",
785
- "items": {
786
- "type": "string"
787
- },
788
- "title": "standards"
789
- },
790
- "description": {
791
- "description": "Trait description",
792
- "type": "string",
793
- "title": "description"
794
- },
795
- "scorePointsDescriptors": {
796
- "description": "Score point descriptors. Starting from 0 to max.",
797
- "type": "array",
798
- "items": {
799
- "type": "string"
800
- },
801
- "title": "scorePointsDescriptors"
802
- }
803
- },
804
- "required": [
805
- "description",
806
- "name",
807
- "scorePointsDescriptors",
808
- "standards"
809
- ]
810
- },
811
- "title": "traits"
812
- }
813
- },
814
- "required": [
815
- "maxPoints",
816
- "scorePointsLabels",
817
- "traitLabel",
818
- "traits"
819
- ]
820
- },
821
- "Trait": {
822
- "title": "Trait",
823
- "type": "object",
824
- "properties": {
825
- "name": {
826
- "description": "Trait name",
827
- "type": "string",
828
- "title": "name"
829
- },
830
- "standards": {
831
- "description": "Trait standards",
832
- "type": "array",
833
- "items": {
834
- "type": "string"
835
- },
836
- "title": "standards"
837
- },
838
- "description": {
839
- "description": "Trait description",
840
- "type": "string",
841
- "title": "description"
842
- },
843
- "scorePointsDescriptors": {
844
- "description": "Score point descriptors. Starting from 0 to max.",
845
- "type": "array",
846
- "items": {
847
- "type": "string"
848
- },
849
- "title": "scorePointsDescriptors"
850
- }
851
- },
852
- "required": [
853
- "description",
854
- "name",
855
- "scorePointsDescriptors",
856
- "standards"
857
- ]
858
- }
859
- },
860
- "$schema": "http://json-schema.org/draft-07/schema#"
861
- }