@pie-element/select-text 13.1.2-next.5 → 13.1.3

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 (82) hide show
  1. package/CHANGELOG.json +1422 -0
  2. package/CHANGELOG.md +2294 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +5 -0
  5. package/configure/CHANGELOG.json +1032 -0
  6. package/configure/CHANGELOG.md +2029 -0
  7. package/configure/lib/defaultConfiguration.js +177 -0
  8. package/configure/lib/defaultConfiguration.js.map +1 -0
  9. package/configure/lib/design.js +406 -0
  10. package/configure/lib/design.js.map +1 -0
  11. package/configure/lib/index.js +128 -0
  12. package/configure/lib/index.js.map +1 -0
  13. package/configure/lib/utils.js +92 -0
  14. package/configure/lib/utils.js.map +1 -0
  15. package/configure/package.json +25 -0
  16. package/controller/CHANGELOG.json +442 -0
  17. package/controller/CHANGELOG.md +1468 -0
  18. package/controller/lib/defaults.js +25 -0
  19. package/controller/lib/defaults.js.map +1 -0
  20. package/controller/lib/index.js +258 -0
  21. package/controller/lib/index.js.map +1 -0
  22. package/controller/package.json +16 -0
  23. package/docs/config-schema.json +2135 -0
  24. package/docs/config-schema.json.md +1579 -0
  25. package/docs/demo/config.js +8 -0
  26. package/docs/demo/generate.js +823 -0
  27. package/docs/demo/index.html +1 -0
  28. package/docs/demo/session.js +24 -0
  29. package/docs/pie-schema.json +1248 -0
  30. package/docs/pie-schema.json.md +711 -0
  31. package/lib/index.js +103 -0
  32. package/lib/index.js.map +1 -0
  33. package/lib/main.js +191 -0
  34. package/lib/main.js.map +1 -0
  35. package/lib/print.js +87 -0
  36. package/lib/print.js.map +1 -0
  37. package/lib/utils.js +80 -0
  38. package/lib/utils.js.map +1 -0
  39. package/package.json +21 -90
  40. package/configure.js +0 -2
  41. package/controller.js +0 -1
  42. package/dist/author/defaultConfiguration.d.ts +0 -179
  43. package/dist/author/defaultConfiguration.js +0 -141
  44. package/dist/author/design.d.ts +0 -38
  45. package/dist/author/design.js +0 -263
  46. package/dist/author/index.d.ts +0 -27
  47. package/dist/author/index.js +0 -74
  48. package/dist/author/utils.d.ts +0 -10
  49. package/dist/author/utils.js +0 -50
  50. package/dist/browser/Check-hYJSLKBP.js +0 -9261
  51. package/dist/browser/Check-hYJSLKBP.js.map +0 -1
  52. package/dist/browser/author/index.js +0 -47032
  53. package/dist/browser/author/index.js.map +0 -1
  54. package/dist/browser/controller/index.js +0 -194
  55. package/dist/browser/controller/index.js.map +0 -1
  56. package/dist/browser/delivery/index.js +0 -89
  57. package/dist/browser/delivery/index.js.map +0 -1
  58. package/dist/browser/dist-NxgaOEGc.js +0 -323
  59. package/dist/browser/dist-NxgaOEGc.js.map +0 -1
  60. package/dist/browser/main-nEorTqht.js +0 -4804
  61. package/dist/browser/main-nEorTqht.js.map +0 -1
  62. package/dist/browser/print/index.js +0 -41
  63. package/dist/browser/print/index.js.map +0 -1
  64. package/dist/browser/select-text.css +0 -2
  65. package/dist/controller/defaults.d.ts +0 -27
  66. package/dist/controller/defaults.js +0 -21
  67. package/dist/controller/index.d.ts +0 -25
  68. package/dist/controller/index.js +0 -121
  69. package/dist/delivery/index.d.ts +0 -19
  70. package/dist/delivery/index.js +0 -60
  71. package/dist/delivery/main.d.ts +0 -34
  72. package/dist/delivery/main.js +0 -136
  73. package/dist/delivery/utils.d.ts +0 -10
  74. package/dist/delivery/utils.js +0 -47
  75. package/dist/index.d.ts +0 -1
  76. package/dist/index.iife.d.ts +0 -8
  77. package/dist/index.iife.js +0 -167
  78. package/dist/index.js +0 -2
  79. package/dist/print/index.d.ts +0 -15
  80. package/dist/print/index.js +0 -41
  81. package/dist/runtime-support.d.ts +0 -12
  82. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,711 @@
1
+ Pie Model Object for @pie-elements/select-text
2
+
3
+ The schema defines the following properties:
4
+
5
+ # `maxSelections` (number)
6
+
7
+ The maximum number of token selections a user can make when responding
8
+
9
+ # `mode` (string, enum)
10
+
11
+ The selected mode for tokenizing the text.
12
+ This is only used in the config UI to present the mode by which text has been tokenized for selection.
13
+ If importing an item, only set this property it the text tokens are strictly parsed by of these methods.
14
+
15
+ This element must be one of the following enum values:
16
+
17
+ * `paragraph`
18
+ * `sentence`
19
+ * `word`
20
+
21
+ # `partialScoring` (boolean)
22
+
23
+ Indicates if partial scoring should be used
24
+
25
+ # `feedback` (object)
26
+
27
+ Properties of the `feedback` object:
28
+
29
+ ## `correct` (, required)
30
+
31
+ Indicates the configuration for feedback when answer is correct
32
+
33
+ ## `incorrect` (, required)
34
+
35
+ Indicates the configuration for feedback when answer is incorrect
36
+
37
+ ## `partial`
38
+
39
+ Indicates the configuration for feedback when answer is partially correct
40
+
41
+ # `tokens` (array, required)
42
+
43
+ The selectable text tokens in the main text content
44
+
45
+ The object is an array with all elements of the type `object`.
46
+
47
+ The array object has the following properties:
48
+
49
+ ## `text` (string)
50
+
51
+ The token text
52
+
53
+ ## `start` (number, required)
54
+
55
+ The start point in the main text for this token
56
+
57
+ ## `end` (number, required)
58
+
59
+ The end point in the main text for this token
60
+
61
+ ## `correct` (boolean)
62
+
63
+ Is selected does the token represent a correct response
64
+
65
+ # `text` (string, required)
66
+
67
+ The passage of text from which user may select responses
68
+
69
+ # `prompt` (string, required)
70
+
71
+ The user prompt/item stem
72
+
73
+ # `promptEnabled` (boolean)
74
+
75
+ Determines if prompt should show
76
+
77
+ # `highlightChoices` (boolean)
78
+
79
+ Indicates if the parts of text that are choosable, should be highligned when presented to student.
80
+
81
+ Default: `false`
82
+
83
+ # `rationale` (string)
84
+
85
+ Indicates rationale for correct answer
86
+
87
+ # `scoringType` (string, enum)
88
+
89
+ Indicates scoring type
90
+
91
+ This element must be one of the following enum values:
92
+
93
+ * `auto`
94
+ * `rubric`
95
+
96
+ # `studentInstructions` (string)
97
+
98
+ Indicates student instructions
99
+
100
+ # `teacherInstructions` (string)
101
+
102
+ Indicates teacher instructions
103
+
104
+ # `feedbackEnabled` (boolean, required)
105
+
106
+ Indicates if Feedback is enabled
107
+
108
+ # `rationaleEnabled` (boolean, required)
109
+
110
+ Indicates if Rationale are enabled
111
+
112
+ # `studentInstructionsEnabled` (boolean, required)
113
+
114
+ Indicates if Student Instructions are enabled
115
+
116
+ # `teacherInstructionsEnabled` (boolean, required)
117
+
118
+ Indicates if Teacher Instructions are enabled
119
+
120
+ # `spellCheckEnabled` (boolean, required)
121
+
122
+ Indicates if spellcheck is enabled
123
+
124
+ # `toolbarEditorPosition` (string, enum)
125
+
126
+ Indicates the editor's toolbar position which can be 'bottom' or 'top'
127
+
128
+ This element must be one of the following enum values:
129
+
130
+ * `bottom`
131
+ * `top`
132
+
133
+ Default: `": 'bottom'"`
134
+
135
+ # `rubricEnabled` (boolean, required)
136
+
137
+ Indicates if Rubric is enabled
138
+
139
+ # `language` (string)
140
+
141
+ Indicates the language of the component
142
+ Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX
143
+
144
+ # `id` (string, required)
145
+
146
+ Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
147
+
148
+ # `element` (string, required)
149
+
150
+ The html Element tag name
151
+
152
+ ---
153
+
154
+ # Sub Schemas
155
+
156
+ The schema defines the following additional types:
157
+
158
+ ## `EditableHtmlConfigureProp` (object)
159
+
160
+ Properties of the `EditableHtmlConfigureProp` object:
161
+
162
+ ### `math` (object)
163
+
164
+ Properties of the `math` object:
165
+
166
+ #### `disabled` (boolean)
167
+
168
+ Indicates if the plugin is disabled or not
169
+
170
+ ### `audio` (object)
171
+
172
+ Properties of the `audio` object:
173
+
174
+ #### `disabled` (boolean)
175
+
176
+ Indicates if the plugin is disabled or not
177
+
178
+ ### `video` (object)
179
+
180
+ Properties of the `video` object:
181
+
182
+ #### `disabled` (boolean)
183
+
184
+ Indicates if the plugin is disabled or not
185
+
186
+ ### `image` (object)
187
+
188
+ Properties of the `image` object:
189
+
190
+ #### `disabled` (boolean)
191
+
192
+ Indicates if the plugin is disabled or not
193
+
194
+ ### `customPlugins` (array)
195
+
196
+ An array of objects that determine custom plugins.
197
+ 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).
198
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
199
+
200
+ The object is an array with all elements of the type `object`.
201
+
202
+ The array object has the following properties:
203
+
204
+ #### `event` (string, required)
205
+
206
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
207
+ PIE will emit the event prefixed with "PIE-".
208
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
209
+
210
+ #### `iconAlt` (string, required)
211
+
212
+ The alt for the custom button icon
213
+
214
+ #### `iconType` (string, required)
215
+
216
+ The icon type.
217
+ Currently, only "SVG" is supported.
218
+
219
+ #### `icon` (string, required)
220
+
221
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
222
+
223
+ ### `blockquote` (object)
224
+
225
+ Properties of the `blockquote` object:
226
+
227
+ #### `disabled` (boolean)
228
+
229
+ Indicates if the plugin is disabled or not
230
+
231
+ ### `h3` (object)
232
+
233
+ Properties of the `h3` object:
234
+
235
+ #### `disabled` (boolean)
236
+
237
+ Indicates if the plugin is disabled or not
238
+
239
+ ### `characters` (object)
240
+
241
+ Properties of the `characters` object:
242
+
243
+ #### `disabled` (boolean)
244
+
245
+ Indicates if the plugin is disabled or not
246
+
247
+ ### `bold` (object)
248
+
249
+ Properties of the `bold` object:
250
+
251
+ #### `disabled` (boolean)
252
+
253
+ Indicates if the plugin is disabled or not
254
+
255
+ ### `html` (object)
256
+
257
+ Properties of the `html` object:
258
+
259
+ #### `disabled` (boolean)
260
+
261
+ Indicates if the plugin is disabled or not
262
+
263
+ ### `italic` (object)
264
+
265
+ Properties of the `italic` object:
266
+
267
+ #### `disabled` (boolean)
268
+
269
+ Indicates if the plugin is disabled or not
270
+
271
+ ### `ol_list` (object)
272
+
273
+ Properties of the `ol_list` object:
274
+
275
+ #### `disabled` (boolean)
276
+
277
+ Indicates if the plugin is disabled or not
278
+
279
+ ### `redo` (object)
280
+
281
+ Properties of the `redo` object:
282
+
283
+ #### `disabled` (boolean)
284
+
285
+ Indicates if the plugin is disabled or not
286
+
287
+ ### `strikethrough` (object)
288
+
289
+ Properties of the `strikethrough` object:
290
+
291
+ #### `disabled` (boolean)
292
+
293
+ Indicates if the plugin is disabled or not
294
+
295
+ ### `sub` (object)
296
+
297
+ Properties of the `sub` object:
298
+
299
+ #### `disabled` (boolean)
300
+
301
+ Indicates if the plugin is disabled or not
302
+
303
+ ### `sup` (object)
304
+
305
+ Properties of the `sup` object:
306
+
307
+ #### `disabled` (boolean)
308
+
309
+ Indicates if the plugin is disabled or not
310
+
311
+ ### `table` (object)
312
+
313
+ Properties of the `table` object:
314
+
315
+ #### `disabled` (boolean)
316
+
317
+ Indicates if the plugin is disabled or not
318
+
319
+ ### `ul_list` (object)
320
+
321
+ Properties of the `ul_list` object:
322
+
323
+ #### `disabled` (boolean)
324
+
325
+ Indicates if the plugin is disabled or not
326
+
327
+ ### `underline` (object)
328
+
329
+ Properties of the `underline` object:
330
+
331
+ #### `disabled` (boolean)
332
+
333
+ Indicates if the plugin is disabled or not
334
+
335
+ ### `undo` (object)
336
+
337
+ Properties of the `undo` object:
338
+
339
+ #### `disabled` (boolean)
340
+
341
+ Indicates if the plugin is disabled or not
342
+
343
+ ## `EditableHtmlButtonConfigure` (object)
344
+
345
+ Properties of the `EditableHtmlButtonConfigure` object:
346
+
347
+ ### `disabled` (boolean)
348
+
349
+ Indicates if the plugin is disabled or not
350
+
351
+ ## `CustomPlugin` (object)
352
+
353
+ Properties of the `CustomPlugin` object:
354
+
355
+ ### `event` (string, required)
356
+
357
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
358
+ PIE will emit the event prefixed with "PIE-".
359
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
360
+
361
+ ### `iconAlt` (string, required)
362
+
363
+ The alt for the custom button icon
364
+
365
+ ### `iconType` (string, required)
366
+
367
+ The icon type.
368
+ Currently, only "SVG" is supported.
369
+
370
+ ### `icon` (string, required)
371
+
372
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
373
+
374
+ ## `ConfigureProp` (object)
375
+
376
+ Properties of the `ConfigureProp` object:
377
+
378
+ ### `settings` (boolean)
379
+
380
+ Indicates if the item has to be displayed in the Settings Panel
381
+
382
+ ### `label` (string)
383
+
384
+ Indicates the label for the item that has to be displayed in the Settings Panel
385
+
386
+ ## `EditableHtmlPluginConfigureRequired` (object)
387
+
388
+ Properties of the `EditableHtmlPluginConfigureRequired` object:
389
+
390
+ ### `inputConfiguration` (object)
391
+
392
+ Properties of the `inputConfiguration` object:
393
+
394
+ #### `math` (object)
395
+
396
+ Properties of the `math` object:
397
+
398
+ ##### `disabled` (boolean)
399
+
400
+ Indicates if the plugin is disabled or not
401
+
402
+ #### `audio` (object)
403
+
404
+ Properties of the `audio` object:
405
+
406
+ ##### `disabled` (boolean)
407
+
408
+ Indicates if the plugin is disabled or not
409
+
410
+ #### `video` (object)
411
+
412
+ Properties of the `video` object:
413
+
414
+ ##### `disabled` (boolean)
415
+
416
+ Indicates if the plugin is disabled or not
417
+
418
+ #### `image` (object)
419
+
420
+ Properties of the `image` object:
421
+
422
+ ##### `disabled` (boolean)
423
+
424
+ Indicates if the plugin is disabled or not
425
+
426
+ #### `customPlugins` (array)
427
+
428
+ An array of objects that determine custom plugins.
429
+ 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).
430
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
431
+
432
+ The object is an array with all elements of the type `object`.
433
+
434
+ The array object has the following properties:
435
+
436
+ ##### `event` (string, required)
437
+
438
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
439
+ PIE will emit the event prefixed with "PIE-".
440
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
441
+
442
+ ##### `iconAlt` (string, required)
443
+
444
+ The alt for the custom button icon
445
+
446
+ ##### `iconType` (string, required)
447
+
448
+ The icon type.
449
+ Currently, only "SVG" is supported.
450
+
451
+ ##### `icon` (string, required)
452
+
453
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
454
+
455
+ #### `blockquote` (object)
456
+
457
+ Properties of the `blockquote` object:
458
+
459
+ ##### `disabled` (boolean)
460
+
461
+ Indicates if the plugin is disabled or not
462
+
463
+ #### `h3` (object)
464
+
465
+ Properties of the `h3` object:
466
+
467
+ ##### `disabled` (boolean)
468
+
469
+ Indicates if the plugin is disabled or not
470
+
471
+ #### `characters` (object)
472
+
473
+ Properties of the `characters` object:
474
+
475
+ ##### `disabled` (boolean)
476
+
477
+ Indicates if the plugin is disabled or not
478
+
479
+ #### `bold` (object)
480
+
481
+ Properties of the `bold` object:
482
+
483
+ ##### `disabled` (boolean)
484
+
485
+ Indicates if the plugin is disabled or not
486
+
487
+ #### `html` (object)
488
+
489
+ Properties of the `html` object:
490
+
491
+ ##### `disabled` (boolean)
492
+
493
+ Indicates if the plugin is disabled or not
494
+
495
+ #### `italic` (object)
496
+
497
+ Properties of the `italic` object:
498
+
499
+ ##### `disabled` (boolean)
500
+
501
+ Indicates if the plugin is disabled or not
502
+
503
+ #### `ol_list` (object)
504
+
505
+ Properties of the `ol_list` object:
506
+
507
+ ##### `disabled` (boolean)
508
+
509
+ Indicates if the plugin is disabled or not
510
+
511
+ #### `redo` (object)
512
+
513
+ Properties of the `redo` object:
514
+
515
+ ##### `disabled` (boolean)
516
+
517
+ Indicates if the plugin is disabled or not
518
+
519
+ #### `strikethrough` (object)
520
+
521
+ Properties of the `strikethrough` object:
522
+
523
+ ##### `disabled` (boolean)
524
+
525
+ Indicates if the plugin is disabled or not
526
+
527
+ #### `sub` (object)
528
+
529
+ Properties of the `sub` object:
530
+
531
+ ##### `disabled` (boolean)
532
+
533
+ Indicates if the plugin is disabled or not
534
+
535
+ #### `sup` (object)
536
+
537
+ Properties of the `sup` object:
538
+
539
+ ##### `disabled` (boolean)
540
+
541
+ Indicates if the plugin is disabled or not
542
+
543
+ #### `table` (object)
544
+
545
+ Properties of the `table` object:
546
+
547
+ ##### `disabled` (boolean)
548
+
549
+ Indicates if the plugin is disabled or not
550
+
551
+ #### `ul_list` (object)
552
+
553
+ Properties of the `ul_list` object:
554
+
555
+ ##### `disabled` (boolean)
556
+
557
+ Indicates if the plugin is disabled or not
558
+
559
+ #### `underline` (object)
560
+
561
+ Properties of the `underline` object:
562
+
563
+ ##### `disabled` (boolean)
564
+
565
+ Indicates if the plugin is disabled or not
566
+
567
+ #### `undo` (object)
568
+
569
+ Properties of the `undo` object:
570
+
571
+ ##### `disabled` (boolean)
572
+
573
+ Indicates if the plugin is disabled or not
574
+
575
+ ### `required` (boolean)
576
+
577
+ Indicates if the item is required and the value cannot be empty
578
+
579
+ ### `settings` (boolean)
580
+
581
+ Indicates if the item has to be displayed in the Settings Panel
582
+
583
+ ### `label` (string)
584
+
585
+ Indicates the label for the item that has to be displayed in the Settings Panel
586
+
587
+ ## `ConfigureMaxImageDimensionsProp` (object)
588
+
589
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
590
+
591
+ ### `teacherInstructions` (number)
592
+
593
+ Indicates the max dimension for images in teacher instructions
594
+
595
+ ### `prompt` (number)
596
+
597
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
598
+
599
+ ### `rationale` (number)
600
+
601
+ Indicates the max dimension for images in rationale
602
+
603
+ ## `ConfigureMathMLProp` (object)
604
+
605
+ Properties of the `ConfigureMathMLProp` object:
606
+
607
+ ### `mmlOutput` (number)
608
+
609
+ Indicates if model should have mathML output instead of latex
610
+
611
+ ### `mmlEditing` (number)
612
+
613
+ Indicates if mathML that's already in model should be editable
614
+
615
+ ## `ConfigurePropWithEnabled` (object)
616
+
617
+ Properties of the `ConfigurePropWithEnabled` object:
618
+
619
+ ### `enabled` (boolean)
620
+
621
+ Indicates the value of the item if it affects config-ui
622
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
623
+
624
+ ### `settings` (boolean)
625
+
626
+ Indicates if the item has to be displayed in the Settings Panel
627
+
628
+ ### `label` (string)
629
+
630
+ Indicates the label for the item that has to be displayed in the Settings Panel
631
+
632
+ ## `ConfigureLanguageOptionsProp` (object)
633
+
634
+ Properties of the `ConfigureLanguageOptionsProp` object:
635
+
636
+ ### `value` (string, required)
637
+
638
+ Value of the language option
639
+
640
+ ### `label` (string, required)
641
+
642
+ Label of the language option
643
+
644
+ ## `ComplexFeedbackType` (object)
645
+
646
+ Properties of the `ComplexFeedbackType` object:
647
+
648
+ ### `correct` (, required)
649
+
650
+ Indicates the configuration for feedback when answer is correct
651
+
652
+ ### `incorrect` (, required)
653
+
654
+ Indicates the configuration for feedback when answer is incorrect
655
+
656
+ ### `partial`
657
+
658
+ Indicates the configuration for feedback when answer is partially correct
659
+
660
+ ## `DefaultFeedbackType` (object)
661
+
662
+ Properties of the `DefaultFeedbackType` object:
663
+
664
+ ### `type` (string, enum, required)
665
+
666
+ Indicates the feedback type
667
+
668
+ This element must be one of the following enum values:
669
+
670
+ * `default`
671
+ * `none`
672
+
673
+ ### `default` (string)
674
+
675
+ Indicates the feedback value
676
+
677
+ ## `CustomFeedbackType` (object)
678
+
679
+ Properties of the `CustomFeedbackType` object:
680
+
681
+ ### `type` (string, enum, required)
682
+
683
+ Indicates the feedback type
684
+
685
+ This element must be one of the following enum values:
686
+
687
+ * `custom`
688
+
689
+ ### `custom` (string, required)
690
+
691
+ Indicates the feedback custom value
692
+
693
+ ## `TextToken` (object)
694
+
695
+ Properties of the `TextToken` object:
696
+
697
+ ### `text` (string)
698
+
699
+ The token text
700
+
701
+ ### `start` (number, required)
702
+
703
+ The start point in the main text for this token
704
+
705
+ ### `end` (number, required)
706
+
707
+ The end point in the main text for this token
708
+
709
+ ### `correct` (boolean)
710
+
711
+ Is selected does the token represent a correct response