@pie-element/passage 2.15.1-next.0 → 2.15.1-next.16

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,541 @@
1
+ Config Object for @pie-elements/passage-configure
2
+
3
+ The schema defines the following properties:
4
+
5
+ # `settingsPanelDisabled` (boolean)
6
+
7
+ Indicates if the settings panel is not available
8
+
9
+ # `teacherInstructions` (object)
10
+
11
+ Properties of the `teacherInstructions` object:
12
+
13
+ ## `inputConfiguration` (object)
14
+
15
+ Properties of the `inputConfiguration` object:
16
+
17
+ ### `math` (object)
18
+
19
+ Properties of the `math` object:
20
+
21
+ #### `disabled` (boolean)
22
+
23
+ Indicates if the plugin is disabled or not
24
+
25
+ ### `audio` (object)
26
+
27
+ Properties of the `audio` object:
28
+
29
+ #### `disabled` (boolean)
30
+
31
+ Indicates if the plugin is disabled or not
32
+
33
+ ### `video` (object)
34
+
35
+ Properties of the `video` object:
36
+
37
+ #### `disabled` (boolean)
38
+
39
+ Indicates if the plugin is disabled or not
40
+
41
+ ### `image` (object)
42
+
43
+ Properties of the `image` object:
44
+
45
+ #### `disabled` (boolean)
46
+
47
+ Indicates if the plugin is disabled or not
48
+
49
+ ### `customPlugins` (array)
50
+
51
+ An array of objects that determine custom plugins.
52
+ 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).
53
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
54
+
55
+ The object is an array with all elements of the type `object`.
56
+
57
+ The array object has the following properties:
58
+
59
+ #### `event` (string, required)
60
+
61
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
62
+ PIE will emit the event prefixed with "PIE-".
63
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
64
+
65
+ #### `iconAlt` (string, required)
66
+
67
+ The alt for the custom button icon
68
+
69
+ #### `iconType` (string, required)
70
+
71
+ The icon type.
72
+ Currently, only "SVG" is supported.
73
+
74
+ #### `icon` (string, required)
75
+
76
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
77
+
78
+ ### `blockquote` (object)
79
+
80
+ Properties of the `blockquote` object:
81
+
82
+ #### `disabled` (boolean)
83
+
84
+ Indicates if the plugin is disabled or not
85
+
86
+ ### `h3` (object)
87
+
88
+ Properties of the `h3` object:
89
+
90
+ #### `disabled` (boolean)
91
+
92
+ Indicates if the plugin is disabled or not
93
+
94
+ ## `required` (boolean)
95
+
96
+ Indicates if the item is required and the value cannot be empty
97
+
98
+ ## `settings` (boolean)
99
+
100
+ Indicates if the item has to be displayed in the Settings Panel
101
+
102
+ ## `label` (string)
103
+
104
+ Indicates the label for the item that has to be displayed in the Settings Panel
105
+
106
+ # `maxImageWidth` (object)
107
+
108
+ Properties of the `maxImageWidth` object:
109
+
110
+ ## `teacherInstructions` (number)
111
+
112
+ Indicates the max dimension for images in teacher instructions
113
+
114
+ ## `prompt` (number)
115
+
116
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
117
+
118
+ ## `rationale` (number)
119
+
120
+ Indicates the max dimension for images in rationale
121
+
122
+ # `maxImageHeight` (object)
123
+
124
+ Properties of the `maxImageHeight` object:
125
+
126
+ ## `teacherInstructions` (number)
127
+
128
+ Indicates the max dimension for images in teacher instructions
129
+
130
+ ## `prompt` (number)
131
+
132
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
133
+
134
+ ## `rationale` (number)
135
+
136
+ Indicates the max dimension for images in rationale
137
+
138
+ # `mathMlOptions` (object)
139
+
140
+ Properties of the `mathMlOptions` object:
141
+
142
+ ## `mmlOutput` (number)
143
+
144
+ Indicates if model should have mathML output instead of latex
145
+
146
+ ## `mmlEditing` (number)
147
+
148
+ Indicates if mathML that's already in model should be editable
149
+
150
+ # `baseInputConfiguration` (object)
151
+
152
+ Properties of the `baseInputConfiguration` object:
153
+
154
+ ## `math` (object)
155
+
156
+ Properties of the `math` object:
157
+
158
+ ### `disabled` (boolean)
159
+
160
+ Indicates if the plugin is disabled or not
161
+
162
+ ## `audio` (object)
163
+
164
+ Properties of the `audio` object:
165
+
166
+ ### `disabled` (boolean)
167
+
168
+ Indicates if the plugin is disabled or not
169
+
170
+ ## `video` (object)
171
+
172
+ Properties of the `video` object:
173
+
174
+ ### `disabled` (boolean)
175
+
176
+ Indicates if the plugin is disabled or not
177
+
178
+ ## `image` (object)
179
+
180
+ Properties of the `image` object:
181
+
182
+ ### `disabled` (boolean)
183
+
184
+ Indicates if the plugin is disabled or not
185
+
186
+ ## `customPlugins` (array)
187
+
188
+ An array of objects that determine custom plugins.
189
+ 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).
190
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
191
+
192
+ The object is an array with all elements of the type `object`.
193
+
194
+ The array object has the following properties:
195
+
196
+ ### `event` (string, required)
197
+
198
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
199
+ PIE will emit the event prefixed with "PIE-".
200
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
201
+
202
+ ### `iconAlt` (string, required)
203
+
204
+ The alt for the custom button icon
205
+
206
+ ### `iconType` (string, required)
207
+
208
+ The icon type.
209
+ Currently, only "SVG" is supported.
210
+
211
+ ### `icon` (string, required)
212
+
213
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
214
+
215
+ ## `blockquote` (object)
216
+
217
+ Properties of the `blockquote` object:
218
+
219
+ ### `disabled` (boolean)
220
+
221
+ Indicates if the plugin is disabled or not
222
+
223
+ ## `h3` (object)
224
+
225
+ Properties of the `h3` object:
226
+
227
+ ### `disabled` (boolean)
228
+
229
+ Indicates if the plugin is disabled or not
230
+
231
+ # `language` (object)
232
+
233
+ Properties of the `language` object:
234
+
235
+ ## `enabled` (boolean)
236
+
237
+ Indicates the value of the item if it affects config-ui
238
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
239
+
240
+ ## `settings` (boolean)
241
+
242
+ Indicates if the item has to be displayed in the Settings Panel
243
+
244
+ ## `label` (string)
245
+
246
+ Indicates the label for the item that has to be displayed in the Settings Panel
247
+
248
+ # `languageChoices` (object)
249
+
250
+ Language choices configuration
251
+ Only available if language is enabled
252
+
253
+ Properties of the `languageChoices` object:
254
+
255
+ ## `label` (string, required)
256
+
257
+ ## `options` (array, required)
258
+
259
+ The object is an array with all elements of the type `object`.
260
+
261
+ The array object has the following properties:
262
+
263
+ ### `value` (string, required)
264
+
265
+ Value of the language option
266
+
267
+ ### `label` (string, required)
268
+
269
+ Label of the language option
270
+
271
+ ---
272
+
273
+ # Sub Schemas
274
+
275
+ The schema defines the following additional types:
276
+
277
+ ## `EditableHtmlPluginConfigureRequired` (object)
278
+
279
+ Properties of the `EditableHtmlPluginConfigureRequired` object:
280
+
281
+ ### `inputConfiguration` (object)
282
+
283
+ Properties of the `inputConfiguration` object:
284
+
285
+ #### `math` (object)
286
+
287
+ Properties of the `math` object:
288
+
289
+ ##### `disabled` (boolean)
290
+
291
+ Indicates if the plugin is disabled or not
292
+
293
+ #### `audio` (object)
294
+
295
+ Properties of the `audio` object:
296
+
297
+ ##### `disabled` (boolean)
298
+
299
+ Indicates if the plugin is disabled or not
300
+
301
+ #### `video` (object)
302
+
303
+ Properties of the `video` object:
304
+
305
+ ##### `disabled` (boolean)
306
+
307
+ Indicates if the plugin is disabled or not
308
+
309
+ #### `image` (object)
310
+
311
+ Properties of the `image` object:
312
+
313
+ ##### `disabled` (boolean)
314
+
315
+ Indicates if the plugin is disabled or not
316
+
317
+ #### `customPlugins` (array)
318
+
319
+ An array of objects that determine custom plugins.
320
+ 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).
321
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
322
+
323
+ The object is an array with all elements of the type `object`.
324
+
325
+ The array object has the following properties:
326
+
327
+ ##### `event` (string, required)
328
+
329
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
330
+ PIE will emit the event prefixed with "PIE-".
331
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
332
+
333
+ ##### `iconAlt` (string, required)
334
+
335
+ The alt for the custom button icon
336
+
337
+ ##### `iconType` (string, required)
338
+
339
+ The icon type.
340
+ Currently, only "SVG" is supported.
341
+
342
+ ##### `icon` (string, required)
343
+
344
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
345
+
346
+ #### `blockquote` (object)
347
+
348
+ Properties of the `blockquote` object:
349
+
350
+ ##### `disabled` (boolean)
351
+
352
+ Indicates if the plugin is disabled or not
353
+
354
+ #### `h3` (object)
355
+
356
+ Properties of the `h3` object:
357
+
358
+ ##### `disabled` (boolean)
359
+
360
+ Indicates if the plugin is disabled or not
361
+
362
+ ### `required` (boolean)
363
+
364
+ Indicates if the item is required and the value cannot be empty
365
+
366
+ ### `settings` (boolean)
367
+
368
+ Indicates if the item has to be displayed in the Settings Panel
369
+
370
+ ### `label` (string)
371
+
372
+ Indicates the label for the item that has to be displayed in the Settings Panel
373
+
374
+ ## `EditableHtmlConfigureProp` (object)
375
+
376
+ Properties of the `EditableHtmlConfigureProp` object:
377
+
378
+ ### `math` (object)
379
+
380
+ Properties of the `math` object:
381
+
382
+ #### `disabled` (boolean)
383
+
384
+ Indicates if the plugin is disabled or not
385
+
386
+ ### `audio` (object)
387
+
388
+ Properties of the `audio` object:
389
+
390
+ #### `disabled` (boolean)
391
+
392
+ Indicates if the plugin is disabled or not
393
+
394
+ ### `video` (object)
395
+
396
+ Properties of the `video` object:
397
+
398
+ #### `disabled` (boolean)
399
+
400
+ Indicates if the plugin is disabled or not
401
+
402
+ ### `image` (object)
403
+
404
+ Properties of the `image` object:
405
+
406
+ #### `disabled` (boolean)
407
+
408
+ Indicates if the plugin is disabled or not
409
+
410
+ ### `customPlugins` (array)
411
+
412
+ An array of objects that determine custom plugins.
413
+ 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).
414
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
415
+
416
+ The object is an array with all elements of the type `object`.
417
+
418
+ The array object has the following properties:
419
+
420
+ #### `event` (string, required)
421
+
422
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
423
+ PIE will emit the event prefixed with "PIE-".
424
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
425
+
426
+ #### `iconAlt` (string, required)
427
+
428
+ The alt for the custom button icon
429
+
430
+ #### `iconType` (string, required)
431
+
432
+ The icon type.
433
+ Currently, only "SVG" is supported.
434
+
435
+ #### `icon` (string, required)
436
+
437
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
438
+
439
+ ### `blockquote` (object)
440
+
441
+ Properties of the `blockquote` object:
442
+
443
+ #### `disabled` (boolean)
444
+
445
+ Indicates if the plugin is disabled or not
446
+
447
+ ### `h3` (object)
448
+
449
+ Properties of the `h3` object:
450
+
451
+ #### `disabled` (boolean)
452
+
453
+ Indicates if the plugin is disabled or not
454
+
455
+ ## `EditableHtmlButtonConfigure` (object)
456
+
457
+ Properties of the `EditableHtmlButtonConfigure` object:
458
+
459
+ ### `disabled` (boolean)
460
+
461
+ Indicates if the plugin is disabled or not
462
+
463
+ ## `CustomPlugin` (object)
464
+
465
+ Properties of the `CustomPlugin` object:
466
+
467
+ ### `event` (string, required)
468
+
469
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
470
+ PIE will emit the event prefixed with "PIE-".
471
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
472
+
473
+ ### `iconAlt` (string, required)
474
+
475
+ The alt for the custom button icon
476
+
477
+ ### `iconType` (string, required)
478
+
479
+ The icon type.
480
+ Currently, only "SVG" is supported.
481
+
482
+ ### `icon` (string, required)
483
+
484
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
485
+
486
+ ## `ConfigureMaxImageDimensionsProp` (object)
487
+
488
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
489
+
490
+ ### `teacherInstructions` (number)
491
+
492
+ Indicates the max dimension for images in teacher instructions
493
+
494
+ ### `prompt` (number)
495
+
496
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
497
+
498
+ ### `rationale` (number)
499
+
500
+ Indicates the max dimension for images in rationale
501
+
502
+ ## `ConfigureMathMLProp` (object)
503
+
504
+ Properties of the `ConfigureMathMLProp` object:
505
+
506
+ ### `mmlOutput` (number)
507
+
508
+ Indicates if model should have mathML output instead of latex
509
+
510
+ ### `mmlEditing` (number)
511
+
512
+ Indicates if mathML that's already in model should be editable
513
+
514
+ ## `ConfigurePropWithEnabled` (object)
515
+
516
+ Properties of the `ConfigurePropWithEnabled` object:
517
+
518
+ ### `enabled` (boolean)
519
+
520
+ Indicates the value of the item if it affects config-ui
521
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
522
+
523
+ ### `settings` (boolean)
524
+
525
+ Indicates if the item has to be displayed in the Settings Panel
526
+
527
+ ### `label` (string)
528
+
529
+ Indicates the label for the item that has to be displayed in the Settings Panel
530
+
531
+ ## `ConfigureLanguageOptionsProp` (object)
532
+
533
+ Properties of the `ConfigureLanguageOptionsProp` object:
534
+
535
+ ### `value` (string, required)
536
+
537
+ Value of the language option
538
+
539
+ ### `label` (string, required)
540
+
541
+ Label of the language option