@pie-element/multiple-choice 14.0.4-next.20261011174919 → 14.0.4

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.
@@ -0,0 +1,447 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.4/dist/schemas/configuration.schema.json",
4
+ "type": "object",
5
+ "properties": {
6
+ "answerChoiceCount": {
7
+ "type": "number",
8
+ "description": "The number of empty choices to show in config view if no choice model is provided",
9
+ "minimum": 0,
10
+ "default": 0
11
+ },
12
+ "addChoiceButton": {
13
+ "$ref": "#/definitions/ConfigureProp",
14
+ "description": "Configuration for the button that adds a choice"
15
+ },
16
+ "baseInputConfiguration": {
17
+ "$ref": "#/definitions/EditableHtmlConfigureProp",
18
+ "description": "Toolbar plugins every editable field starts from; a field's own `inputConfiguration` overrides it"
19
+ },
20
+ "choices": {
21
+ "$ref": "#/definitions/EditableHtmlPluginConfigure",
22
+ "description": "Configuration for the choice editors"
23
+ },
24
+ "choiceMode": {
25
+ "$ref": "#/definitions/ConfigureProp",
26
+ "description": "Settings Panel control for the choice mode (radio / checkboxes)"
27
+ },
28
+ "choicePrefix": {
29
+ "$ref": "#/definitions/ConfigureProp",
30
+ "description": "Settings Panel control for the choice prefix"
31
+ },
32
+ "deleteChoice": {
33
+ "$ref": "#/definitions/ConfigureProp",
34
+ "description": "Whether the author can delete choices"
35
+ },
36
+ "feedback": {
37
+ "$ref": "#/definitions/ConfigureProp",
38
+ "description": "Settings Panel control for feedback"
39
+ },
40
+ "prompt": {
41
+ "$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
42
+ "description": "Configuration for the prompt"
43
+ },
44
+ "spellCheck": {
45
+ "$ref": "#/definitions/ConfigurePropWithEnabled",
46
+ "description": "Settings Panel control for spellcheck; `enabled` is the default for new items"
47
+ },
48
+ "choicesLayout": {
49
+ "$ref": "#/definitions/ConfigureProp",
50
+ "description": "Settings Panel control for the choices layout"
51
+ },
52
+ "gridColumns": {
53
+ "$ref": "#/definitions/ConfigureProp",
54
+ "description": "Settings Panel control for the number of grid columns"
55
+ },
56
+ "lockChoiceOrder": {
57
+ "$ref": "#/definitions/ConfigureProp",
58
+ "description": "Settings Panel control for locking the choice order"
59
+ },
60
+ "partialScoring": {
61
+ "$ref": "#/definitions/ConfigureProp",
62
+ "description": "Settings Panel control for partial scoring"
63
+ },
64
+ "rationale": {
65
+ "$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
66
+ "description": "Configuration for the choice rationales"
67
+ },
68
+ "scoringType": {
69
+ "$ref": "#/definitions/ConfigureProp",
70
+ "description": "Settings Panel control for the scoring type"
71
+ },
72
+ "settingsPanelDisabled": {
73
+ "type": "boolean",
74
+ "description": "Indicates if the settings panel is not available"
75
+ },
76
+ "studentInstructions": {
77
+ "$ref": "#/definitions/ConfigureProp",
78
+ "description": "Settings Panel control for student instructions"
79
+ },
80
+ "teacherInstructions": {
81
+ "$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
82
+ "description": "Configuration for the teacher instructions"
83
+ },
84
+ "toolbarEditorPosition": {
85
+ "$ref": "#/definitions/ConfigureProp",
86
+ "description": "Not read by the authoring surface; the model's `toolbarEditorPosition` sets the position"
87
+ },
88
+ "sequentialChoiceLabels": {
89
+ "$ref": "#/definitions/ConfigurePropWithEnabled",
90
+ "description": "Settings Panel control that toggles sequential choice labels"
91
+ },
92
+ "accessibility": {
93
+ "$ref": "#/definitions/EditableHtmlPluginConfigure",
94
+ "description": "Not read by this element"
95
+ },
96
+ "minAnswerChoices": {
97
+ "type": "number",
98
+ "description": "Minimum number of answer choices"
99
+ },
100
+ "maxAnswerChoices": {
101
+ "type": "number",
102
+ "description": "Maximum number of answer choices"
103
+ },
104
+ "maxImageWidth": {
105
+ "$ref": "#/definitions/MaxImageDimensions",
106
+ "description": "Maximum image width per field"
107
+ },
108
+ "maxImageHeight": {
109
+ "$ref": "#/definitions/MaxImageDimensions",
110
+ "description": "Maximum image height per field"
111
+ },
112
+ "withRubric": {
113
+ "$ref": "#/definitions/ConfigureProp",
114
+ "description": "Settings Panel control for the rubric"
115
+ },
116
+ "mathMlOptions": {
117
+ "$ref": "#/definitions/ConfigureMathMLProp",
118
+ "description": "MathML output and editing"
119
+ },
120
+ "language": {
121
+ "$ref": "#/definitions/ConfigurePropWithEnabled",
122
+ "description": "Settings Panel control for the language; `enabled` shows the language choices"
123
+ },
124
+ "languageChoices": {
125
+ "$ref": "#/definitions/ConfigureLanguageOptions",
126
+ "description": "Language choices configuration Only available if language is enabled"
127
+ },
128
+ "showPrompt": {
129
+ "type": "boolean",
130
+ "description": "Not read by this element: the model's `promptEnabled` shows the prompt"
131
+ },
132
+ "promptLabel": {
133
+ "type": "string",
134
+ "description": "Not read by this element: `prompt.label` labels the prompt"
135
+ },
136
+ "contentDimensions": {
137
+ "$ref": "#/definitions/ContentDimensions",
138
+ "description": "Dimensions of the authoring container"
139
+ },
140
+ "settingsPartialScoring": {
141
+ "type": "boolean",
142
+ "description": "Not read by this element: `partialScoring.settings` shows the partial scoring control"
143
+ }
144
+ },
145
+ "description": "Config Object for `@pie-element/multiple-choice`",
146
+ "definitions": {
147
+ "ConfigureProp": {
148
+ "type": "object",
149
+ "properties": {
150
+ "settings": {
151
+ "type": "boolean",
152
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
153
+ },
154
+ "label": {
155
+ "type": "string",
156
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
157
+ }
158
+ },
159
+ "description": "Building blocks of an element's authoring configuration: the object a host passes to the `<tag>-config` custom element to decide which settings the author sees and how editors behave.\n\nEach element declares its own `<Name>Configuration` interface from these, and its JSON Schema is generated from that interface. Descriptions are carried over from the legacy `pie-elements` config schemas, so they appear in the generated schemas unchanged."
160
+ },
161
+ "EditableHtmlConfigureProp": {
162
+ "type": "object",
163
+ "properties": {
164
+ "math": {
165
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
166
+ },
167
+ "audio": {
168
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
169
+ },
170
+ "video": {
171
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
172
+ },
173
+ "image": {
174
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
175
+ },
176
+ "customPlugins": {
177
+ "type": "array",
178
+ "items": {
179
+ "$ref": "#/definitions/CustomPlugin"
180
+ },
181
+ "description": "An array of objects that determine custom plugins. A custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when the button gets pressed (event)."
182
+ },
183
+ "blockquote": {
184
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
185
+ },
186
+ "h3": {
187
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
188
+ },
189
+ "characters": {
190
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
191
+ },
192
+ "bold": {
193
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
194
+ },
195
+ "html": {
196
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
197
+ },
198
+ "italic": {
199
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
200
+ },
201
+ "ol_list": {
202
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
203
+ },
204
+ "redo": {
205
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
206
+ },
207
+ "strikethrough": {
208
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
209
+ },
210
+ "sub": {
211
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
212
+ },
213
+ "sup": {
214
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
215
+ },
216
+ "table": {
217
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
218
+ },
219
+ "ul_list": {
220
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
221
+ },
222
+ "underline": {
223
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
224
+ },
225
+ "undo": {
226
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
227
+ },
228
+ "textAlign": {
229
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
230
+ },
231
+ "showParagraphs": {
232
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
233
+ },
234
+ "separateParagraphs": {
235
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
236
+ },
237
+ "pasteFormatting": {
238
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
239
+ },
240
+ "superscript": {
241
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
242
+ },
243
+ "subscript": {
244
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
245
+ },
246
+ "languageCharacters": {
247
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
248
+ },
249
+ "responseArea": {
250
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
251
+ }
252
+ },
253
+ "description": "Toolbar plugins of an editable-html field, keyed by plugin name."
254
+ },
255
+ "EditableHtmlButtonConfigure": {
256
+ "type": "object",
257
+ "properties": {
258
+ "disabled": {
259
+ "type": "boolean",
260
+ "description": "Indicates if the plugin is disabled or not"
261
+ }
262
+ }
263
+ },
264
+ "CustomPlugin": {
265
+ "type": "object",
266
+ "properties": {
267
+ "event": {
268
+ "type": "string",
269
+ "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used). The event is emitted with the \"PIE-\" prefix."
270
+ },
271
+ "iconAlt": {
272
+ "type": "string",
273
+ "description": "The alt for the custom button icon"
274
+ },
275
+ "iconType": {
276
+ "type": "string",
277
+ "description": "The icon type. Currently, only \"SVG\" is supported."
278
+ },
279
+ "icon": {
280
+ "type": "string",
281
+ "description": "The icon string. Currently, only SVG is supported, so it needs to be a valid svg."
282
+ }
283
+ },
284
+ "required": [
285
+ "event",
286
+ "iconAlt",
287
+ "iconType",
288
+ "icon"
289
+ ]
290
+ },
291
+ "EditableHtmlPluginConfigure": {
292
+ "type": "object",
293
+ "properties": {
294
+ "settings": {
295
+ "type": "boolean",
296
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
297
+ },
298
+ "label": {
299
+ "type": "string",
300
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
301
+ },
302
+ "inputConfiguration": {
303
+ "$ref": "#/definitions/EditableHtmlConfigureProp",
304
+ "description": "Configuration for editable-html"
305
+ }
306
+ }
307
+ },
308
+ "EditableHtmlPluginConfigureRequired": {
309
+ "type": "object",
310
+ "properties": {
311
+ "settings": {
312
+ "type": "boolean",
313
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
314
+ },
315
+ "label": {
316
+ "type": "string",
317
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
318
+ },
319
+ "inputConfiguration": {
320
+ "$ref": "#/definitions/EditableHtmlConfigureProp",
321
+ "description": "Configuration for editable-html"
322
+ },
323
+ "required": {
324
+ "type": "boolean",
325
+ "description": "Indicates if the item is required and the value cannot be empty"
326
+ }
327
+ }
328
+ },
329
+ "ConfigurePropWithEnabled": {
330
+ "type": "object",
331
+ "properties": {
332
+ "settings": {
333
+ "type": "boolean",
334
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
335
+ },
336
+ "label": {
337
+ "type": "string",
338
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
339
+ },
340
+ "enabled": {
341
+ "type": "boolean",
342
+ "description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
343
+ }
344
+ }
345
+ },
346
+ "MaxImageDimensions": {
347
+ "type": "object",
348
+ "properties": {
349
+ "teacherInstructions": {
350
+ "type": "number",
351
+ "description": "Indicates the max dimension for images in teacher instructions"
352
+ },
353
+ "prompt": {
354
+ "type": "number",
355
+ "description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified"
356
+ },
357
+ "rationale": {
358
+ "type": "number",
359
+ "description": "Indicates the max dimension for images in rationale"
360
+ },
361
+ "choices": {
362
+ "type": "number",
363
+ "description": "Indicates the max dimension for images in choices"
364
+ }
365
+ }
366
+ },
367
+ "ConfigureMathMLProp": {
368
+ "type": "object",
369
+ "properties": {
370
+ "mmlOutput": {
371
+ "type": "boolean",
372
+ "description": "Indicates if model should have mathML output instead of latex"
373
+ },
374
+ "mmlEditing": {
375
+ "type": "boolean",
376
+ "description": "Indicates if mathML that's already in model should be editable"
377
+ }
378
+ }
379
+ },
380
+ "ConfigureLanguageOptions": {
381
+ "type": "object",
382
+ "properties": {
383
+ "label": {
384
+ "type": "string"
385
+ },
386
+ "options": {
387
+ "type": "array",
388
+ "items": {
389
+ "$ref": "#/definitions/ConfigureLanguageOptionsProp"
390
+ }
391
+ }
392
+ },
393
+ "required": [
394
+ "label",
395
+ "options"
396
+ ]
397
+ },
398
+ "ConfigureLanguageOptionsProp": {
399
+ "type": "object",
400
+ "properties": {
401
+ "value": {
402
+ "type": "string",
403
+ "description": "Value of the language option"
404
+ },
405
+ "label": {
406
+ "type": "string",
407
+ "description": "Label of the language option"
408
+ }
409
+ },
410
+ "required": [
411
+ "value",
412
+ "label"
413
+ ]
414
+ },
415
+ "ContentDimensions": {
416
+ "type": "object",
417
+ "properties": {
418
+ "maxHeight": {
419
+ "type": [
420
+ "string",
421
+ "number"
422
+ ]
423
+ },
424
+ "maxWidth": {
425
+ "type": [
426
+ "string",
427
+ "number"
428
+ ]
429
+ },
430
+ "minHeight": {
431
+ "type": [
432
+ "string",
433
+ "number"
434
+ ]
435
+ },
436
+ "minWidth": {
437
+ "type": [
438
+ "string",
439
+ "number"
440
+ ]
441
+ }
442
+ },
443
+ "description": "Indicates the dimensions configuration for the authoring container. Note: Some items have a default minimum width because of their content, but if a lower minWidth is provided, it will be used."
444
+ }
445
+ },
446
+ "additionalProperties": false
447
+ }