@pie-element/select-text 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,410 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@pie-element/select-text@14.0.4/dist/schemas/configuration.schema.json",
4
+ "type": "object",
5
+ "properties": {
6
+ "baseInputConfiguration": {
7
+ "$ref": "#/definitions/EditableHtmlConfigureProp",
8
+ "description": "Base editable html input configuration regarding plugins that are enabled/disabled E.g. audio, video, image"
9
+ },
10
+ "selectionCount": {
11
+ "$ref": "#/definitions/ConfigureProp",
12
+ "description": "Selection Count configuration"
13
+ },
14
+ "correctAnswer": {
15
+ "$ref": "#/definitions/ConfigureProp",
16
+ "description": "Correct answer count configuration"
17
+ },
18
+ "selections": {
19
+ "$ref": "#/definitions/ConfigureProp",
20
+ "description": "Selections configuration"
21
+ },
22
+ "mode": {
23
+ "$ref": "#/definitions/ConfigureProp",
24
+ "description": "Mode configuration"
25
+ },
26
+ "partialScoring": {
27
+ "$ref": "#/definitions/ConfigureProp",
28
+ "description": "Partial Scoring configuration"
29
+ },
30
+ "feedback": {
31
+ "$ref": "#/definitions/ConfigureProp",
32
+ "description": "Feedback configuration"
33
+ },
34
+ "tokens": {
35
+ "$ref": "#/definitions/ConfigureProp",
36
+ "description": "Tokens configuration"
37
+ },
38
+ "text": {
39
+ "$ref": "#/definitions/ConfigureProp",
40
+ "description": "Text Content configuration"
41
+ },
42
+ "prompt": {
43
+ "$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
44
+ "description": "Prompt configuration"
45
+ },
46
+ "highlightChoices": {
47
+ "$ref": "#/definitions/ConfigureProp",
48
+ "description": "Highlight Choices configuration"
49
+ },
50
+ "rationale": {
51
+ "$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
52
+ "description": "Rationale configuration"
53
+ },
54
+ "settingsPanelDisabled": {
55
+ "type": "boolean",
56
+ "description": "Indicates if the settings panel is not available"
57
+ },
58
+ "spellCheck": {
59
+ "$ref": "#/definitions/ConfigurePropWithEnabled",
60
+ "description": "Configuration for the spellcheck; `enabled` is not read"
61
+ },
62
+ "scoringType": {
63
+ "$ref": "#/definitions/ConfigureProp",
64
+ "description": "Scoring Type configuration"
65
+ },
66
+ "studentInstructions": {
67
+ "$ref": "#/definitions/ConfigureProp",
68
+ "description": "Student Instructions configuration"
69
+ },
70
+ "teacherInstructions": {
71
+ "$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
72
+ "description": "Teacher Instructions configuration"
73
+ },
74
+ "maxSelections": {
75
+ "type": "number",
76
+ "description": "Maximum number of selected tokens in correct answer"
77
+ },
78
+ "minTokens": {
79
+ "type": "number",
80
+ "description": "Minimum number of tokens",
81
+ "default": 2
82
+ },
83
+ "maxTokens": {
84
+ "type": "number",
85
+ "description": "Maximum number of tokens"
86
+ },
87
+ "maxImageWidth": {
88
+ "$ref": "#/definitions/ConfigureMaxImageDimensionsProp",
89
+ "description": "Maximum image width for input fields"
90
+ },
91
+ "maxImageHeight": {
92
+ "$ref": "#/definitions/ConfigureMaxImageDimensionsProp",
93
+ "description": "Maximum image height for input fields"
94
+ },
95
+ "withRubric": {
96
+ "$ref": "#/definitions/ConfigureProp",
97
+ "description": "Rubric configuration - only relevant in environments that use pie-player-components"
98
+ },
99
+ "mathMlOptions": {
100
+ "$ref": "#/definitions/ConfigureMathMLProp",
101
+ "description": "Configuration for editable-html"
102
+ },
103
+ "language": {
104
+ "$ref": "#/definitions/ConfigurePropWithEnabled",
105
+ "description": "Language configuration"
106
+ },
107
+ "languageChoices": {
108
+ "$ref": "#/definitions/ConfigureLanguageOptions",
109
+ "description": "Language choices configuration Only available if language is enabled"
110
+ },
111
+ "contentDimensions": {
112
+ "$ref": "#/definitions/ContentDimensions",
113
+ "description": "Dimensions of the authoring container"
114
+ },
115
+ "showPrompt": {
116
+ "type": "boolean",
117
+ "description": "Not read by this element: the model's `promptEnabled` shows the prompt"
118
+ },
119
+ "promptLabel": {
120
+ "type": "string",
121
+ "description": "Not read by this element: `prompt.label` labels the prompt"
122
+ },
123
+ "settingsPartialScoring": {
124
+ "type": "boolean",
125
+ "description": "Not read by this element: `partialScoring.settings` shows the partial scoring control"
126
+ }
127
+ },
128
+ "description": "Config Object for `@pie-element/select-text`",
129
+ "definitions": {
130
+ "EditableHtmlConfigureProp": {
131
+ "type": "object",
132
+ "properties": {
133
+ "math": {
134
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
135
+ },
136
+ "audio": {
137
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
138
+ },
139
+ "video": {
140
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
141
+ },
142
+ "image": {
143
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
144
+ },
145
+ "customPlugins": {
146
+ "type": "array",
147
+ "items": {
148
+ "$ref": "#/definitions/CustomPlugin"
149
+ },
150
+ "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)."
151
+ },
152
+ "blockquote": {
153
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
154
+ },
155
+ "h3": {
156
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
157
+ },
158
+ "characters": {
159
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
160
+ },
161
+ "bold": {
162
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
163
+ },
164
+ "html": {
165
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
166
+ },
167
+ "italic": {
168
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
169
+ },
170
+ "ol_list": {
171
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
172
+ },
173
+ "redo": {
174
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
175
+ },
176
+ "strikethrough": {
177
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
178
+ },
179
+ "sub": {
180
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
181
+ },
182
+ "sup": {
183
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
184
+ },
185
+ "table": {
186
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
187
+ },
188
+ "ul_list": {
189
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
190
+ },
191
+ "underline": {
192
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
193
+ },
194
+ "undo": {
195
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
196
+ },
197
+ "textAlign": {
198
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
199
+ },
200
+ "showParagraphs": {
201
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
202
+ },
203
+ "separateParagraphs": {
204
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
205
+ },
206
+ "pasteFormatting": {
207
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
208
+ },
209
+ "superscript": {
210
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
211
+ },
212
+ "subscript": {
213
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
214
+ },
215
+ "languageCharacters": {
216
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
217
+ },
218
+ "responseArea": {
219
+ "$ref": "#/definitions/EditableHtmlButtonConfigure"
220
+ }
221
+ },
222
+ "description": "Toolbar plugins of an editable-html field, keyed by plugin name."
223
+ },
224
+ "EditableHtmlButtonConfigure": {
225
+ "type": "object",
226
+ "properties": {
227
+ "disabled": {
228
+ "type": "boolean",
229
+ "description": "Indicates if the plugin is disabled or not"
230
+ }
231
+ }
232
+ },
233
+ "CustomPlugin": {
234
+ "type": "object",
235
+ "properties": {
236
+ "event": {
237
+ "type": "string",
238
+ "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."
239
+ },
240
+ "iconAlt": {
241
+ "type": "string",
242
+ "description": "The alt for the custom button icon"
243
+ },
244
+ "iconType": {
245
+ "type": "string",
246
+ "description": "The icon type. Currently, only \"SVG\" is supported."
247
+ },
248
+ "icon": {
249
+ "type": "string",
250
+ "description": "The icon string. Currently, only SVG is supported, so it needs to be a valid svg."
251
+ }
252
+ },
253
+ "required": [
254
+ "event",
255
+ "iconAlt",
256
+ "iconType",
257
+ "icon"
258
+ ]
259
+ },
260
+ "ConfigureProp": {
261
+ "type": "object",
262
+ "properties": {
263
+ "settings": {
264
+ "type": "boolean",
265
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
266
+ },
267
+ "label": {
268
+ "type": "string",
269
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
270
+ }
271
+ },
272
+ "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."
273
+ },
274
+ "EditableHtmlPluginConfigureRequired": {
275
+ "type": "object",
276
+ "properties": {
277
+ "settings": {
278
+ "type": "boolean",
279
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
280
+ },
281
+ "label": {
282
+ "type": "string",
283
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
284
+ },
285
+ "inputConfiguration": {
286
+ "$ref": "#/definitions/EditableHtmlConfigureProp",
287
+ "description": "Configuration for editable-html"
288
+ },
289
+ "required": {
290
+ "type": "boolean",
291
+ "description": "Indicates if the item is required and the value cannot be empty"
292
+ }
293
+ }
294
+ },
295
+ "ConfigurePropWithEnabled": {
296
+ "type": "object",
297
+ "properties": {
298
+ "settings": {
299
+ "type": "boolean",
300
+ "description": "Indicates if the item has to be displayed in the Settings Panel"
301
+ },
302
+ "label": {
303
+ "type": "string",
304
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel"
305
+ },
306
+ "enabled": {
307
+ "type": "boolean",
308
+ "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)"
309
+ }
310
+ }
311
+ },
312
+ "ConfigureMaxImageDimensionsProp": {
313
+ "type": "object",
314
+ "properties": {
315
+ "teacherInstructions": {
316
+ "type": "number",
317
+ "description": "Indicates the max dimension for images in teacher instructions"
318
+ },
319
+ "prompt": {
320
+ "type": "number",
321
+ "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"
322
+ },
323
+ "rationale": {
324
+ "type": "number",
325
+ "description": "Indicates the max dimension for images in rationale"
326
+ }
327
+ },
328
+ "description": "Maximum image dimensions per editable field. Elements extend it with their own fields."
329
+ },
330
+ "ConfigureMathMLProp": {
331
+ "type": "object",
332
+ "properties": {
333
+ "mmlOutput": {
334
+ "type": "boolean",
335
+ "description": "Indicates if model should have mathML output instead of latex"
336
+ },
337
+ "mmlEditing": {
338
+ "type": "boolean",
339
+ "description": "Indicates if mathML that's already in model should be editable"
340
+ }
341
+ }
342
+ },
343
+ "ConfigureLanguageOptions": {
344
+ "type": "object",
345
+ "properties": {
346
+ "label": {
347
+ "type": "string"
348
+ },
349
+ "options": {
350
+ "type": "array",
351
+ "items": {
352
+ "$ref": "#/definitions/ConfigureLanguageOptionsProp"
353
+ }
354
+ }
355
+ },
356
+ "required": [
357
+ "label",
358
+ "options"
359
+ ]
360
+ },
361
+ "ConfigureLanguageOptionsProp": {
362
+ "type": "object",
363
+ "properties": {
364
+ "value": {
365
+ "type": "string",
366
+ "description": "Value of the language option"
367
+ },
368
+ "label": {
369
+ "type": "string",
370
+ "description": "Label of the language option"
371
+ }
372
+ },
373
+ "required": [
374
+ "value",
375
+ "label"
376
+ ]
377
+ },
378
+ "ContentDimensions": {
379
+ "type": "object",
380
+ "properties": {
381
+ "maxHeight": {
382
+ "type": [
383
+ "string",
384
+ "number"
385
+ ]
386
+ },
387
+ "maxWidth": {
388
+ "type": [
389
+ "string",
390
+ "number"
391
+ ]
392
+ },
393
+ "minHeight": {
394
+ "type": [
395
+ "string",
396
+ "number"
397
+ ]
398
+ },
399
+ "minWidth": {
400
+ "type": [
401
+ "string",
402
+ "number"
403
+ ]
404
+ }
405
+ },
406
+ "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."
407
+ }
408
+ },
409
+ "additionalProperties": false
410
+ }