@pie-element/ebsr 6.5.0 → 6.5.1-beta.587

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 (39) hide show
  1. package/CHANGELOG.md +463 -0
  2. package/configure/CHANGELOG.md +447 -0
  3. package/configure/lib/defaults.js +34 -11
  4. package/configure/lib/defaults.js.map +1 -1
  5. package/configure/lib/index.js +30 -23
  6. package/configure/lib/index.js.map +1 -1
  7. package/configure/lib/main.js +109 -72
  8. package/configure/lib/main.js.map +1 -1
  9. package/configure/package.json +3 -3
  10. package/configure/src/__tests__/__snapshots__/index.test.js.snap +12 -2
  11. package/configure/src/__tests__/index.test.js +164 -211
  12. package/configure/src/defaults.js +49 -27
  13. package/configure/src/index.js +19 -39
  14. package/configure/src/main.jsx +165 -149
  15. package/controller/CHANGELOG.md +67 -0
  16. package/controller/lib/defaults.js.map +1 -1
  17. package/controller/lib/index.js +123 -29
  18. package/controller/lib/index.js.map +1 -1
  19. package/controller/lib/utils.js.map +1 -1
  20. package/controller/package.json +2 -2
  21. package/controller/src/__tests__/index.test.js +113 -141
  22. package/controller/src/__tests__/utils.test.js +6 -9
  23. package/controller/src/defaults.js +1 -1
  24. package/controller/src/index.js +109 -70
  25. package/controller/src/utils.js +6 -4
  26. package/docs/config-schema.json +376 -0
  27. package/docs/config-schema.json.md +289 -1
  28. package/docs/demo/config.js +2 -2
  29. package/docs/demo/generate.js +3 -3
  30. package/docs/pie-schema.json +177 -0
  31. package/docs/pie-schema.json.md +138 -0
  32. package/lib/index.js +12 -9
  33. package/lib/index.js.map +1 -1
  34. package/lib/print.js +243 -0
  35. package/lib/print.js.map +1 -0
  36. package/package.json +8 -4
  37. package/src/__tests__/index.test.js +2 -7
  38. package/src/index.js +7 -5
  39. package/src/print.js +179 -0
@@ -119,6 +119,27 @@
119
119
  }
120
120
  }
121
121
  },
122
+ "settingsPanelDisabled": {
123
+ "description": "Indicates if the settings panel is not available",
124
+ "type": "boolean",
125
+ "title": "settingsPanelDisabled"
126
+ },
127
+ "spellCheck": {
128
+ "title": "ConfigureProp",
129
+ "type": "object",
130
+ "properties": {
131
+ "settings": {
132
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
133
+ "type": "boolean",
134
+ "title": "settings"
135
+ },
136
+ "label": {
137
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
138
+ "type": "string",
139
+ "title": "label"
140
+ }
141
+ }
142
+ },
122
143
  "rationale": {
123
144
  "title": "ConfigureProp",
124
145
  "type": "object",
@@ -166,6 +187,100 @@
166
187
  "title": "label"
167
188
  }
168
189
  }
190
+ },
191
+ "choicesLayout": {
192
+ "title": "ConfigureProp",
193
+ "type": "object",
194
+ "properties": {
195
+ "settings": {
196
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
197
+ "type": "boolean",
198
+ "title": "settings"
199
+ },
200
+ "label": {
201
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
202
+ "type": "string",
203
+ "title": "label"
204
+ }
205
+ }
206
+ },
207
+ "gridColumns": {
208
+ "title": "ConfigureProp",
209
+ "type": "object",
210
+ "properties": {
211
+ "settings": {
212
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
213
+ "type": "boolean",
214
+ "title": "settings"
215
+ },
216
+ "label": {
217
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
218
+ "type": "string",
219
+ "title": "label"
220
+ }
221
+ }
222
+ },
223
+ "minAnswerChoices": {
224
+ "description": "Minimum number of answer choices",
225
+ "type": "number",
226
+ "title": "minAnswerChoices"
227
+ },
228
+ "maxAnswerChoices": {
229
+ "description": "Maximum number of answer choices",
230
+ "type": "number",
231
+ "title": "maxAnswerChoices"
232
+ },
233
+ "maxImageWidth": {
234
+ "title": "ConfigureMaxImageDimensionsProp",
235
+ "type": "object",
236
+ "properties": {
237
+ "teacherInstructions": {
238
+ "description": "Indicates the max dimension for images in teacher instructions",
239
+ "type": "number",
240
+ "title": "teacherInstructions"
241
+ },
242
+ "prompt": {
243
+ "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",
244
+ "type": "number",
245
+ "title": "prompt"
246
+ },
247
+ "rationale": {
248
+ "description": "Indicates the max dimension for images in rationale",
249
+ "type": "number",
250
+ "title": "rationale"
251
+ },
252
+ "choices": {
253
+ "description": "Indicates the max dimension for images in choices",
254
+ "type": "number",
255
+ "title": "choices"
256
+ }
257
+ }
258
+ },
259
+ "maxImageHeight": {
260
+ "title": "ConfigureMaxImageDimensionsProp",
261
+ "type": "object",
262
+ "properties": {
263
+ "teacherInstructions": {
264
+ "description": "Indicates the max dimension for images in teacher instructions",
265
+ "type": "number",
266
+ "title": "teacherInstructions"
267
+ },
268
+ "prompt": {
269
+ "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",
270
+ "type": "number",
271
+ "title": "prompt"
272
+ },
273
+ "rationale": {
274
+ "description": "Indicates the max dimension for images in rationale",
275
+ "type": "number",
276
+ "title": "rationale"
277
+ },
278
+ "choices": {
279
+ "description": "Indicates the max dimension for images in choices",
280
+ "type": "number",
281
+ "title": "choices"
282
+ }
283
+ }
169
284
  }
170
285
  }
171
286
  },
@@ -285,6 +400,27 @@
285
400
  }
286
401
  }
287
402
  },
403
+ "settingsPanelDisabled": {
404
+ "description": "Indicates if the settings panel is not available",
405
+ "type": "boolean",
406
+ "title": "settingsPanelDisabled"
407
+ },
408
+ "spellCheck": {
409
+ "title": "ConfigureProp",
410
+ "type": "object",
411
+ "properties": {
412
+ "settings": {
413
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
414
+ "type": "boolean",
415
+ "title": "settings"
416
+ },
417
+ "label": {
418
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
419
+ "type": "string",
420
+ "title": "label"
421
+ }
422
+ }
423
+ },
288
424
  "rationale": {
289
425
  "title": "ConfigureProp",
290
426
  "type": "object",
@@ -332,6 +468,100 @@
332
468
  "title": "label"
333
469
  }
334
470
  }
471
+ },
472
+ "choicesLayout": {
473
+ "title": "ConfigureProp",
474
+ "type": "object",
475
+ "properties": {
476
+ "settings": {
477
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
478
+ "type": "boolean",
479
+ "title": "settings"
480
+ },
481
+ "label": {
482
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
483
+ "type": "string",
484
+ "title": "label"
485
+ }
486
+ }
487
+ },
488
+ "gridColumns": {
489
+ "title": "ConfigureProp",
490
+ "type": "object",
491
+ "properties": {
492
+ "settings": {
493
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
494
+ "type": "boolean",
495
+ "title": "settings"
496
+ },
497
+ "label": {
498
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
499
+ "type": "string",
500
+ "title": "label"
501
+ }
502
+ }
503
+ },
504
+ "minAnswerChoices": {
505
+ "description": "Minimum number of answer choices",
506
+ "type": "number",
507
+ "title": "minAnswerChoices"
508
+ },
509
+ "maxAnswerChoices": {
510
+ "description": "Maximum number of answer choices",
511
+ "type": "number",
512
+ "title": "maxAnswerChoices"
513
+ },
514
+ "maxImageWidth": {
515
+ "title": "ConfigureMaxImageDimensionsProp",
516
+ "type": "object",
517
+ "properties": {
518
+ "teacherInstructions": {
519
+ "description": "Indicates the max dimension for images in teacher instructions",
520
+ "type": "number",
521
+ "title": "teacherInstructions"
522
+ },
523
+ "prompt": {
524
+ "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",
525
+ "type": "number",
526
+ "title": "prompt"
527
+ },
528
+ "rationale": {
529
+ "description": "Indicates the max dimension for images in rationale",
530
+ "type": "number",
531
+ "title": "rationale"
532
+ },
533
+ "choices": {
534
+ "description": "Indicates the max dimension for images in choices",
535
+ "type": "number",
536
+ "title": "choices"
537
+ }
538
+ }
539
+ },
540
+ "maxImageHeight": {
541
+ "title": "ConfigureMaxImageDimensionsProp",
542
+ "type": "object",
543
+ "properties": {
544
+ "teacherInstructions": {
545
+ "description": "Indicates the max dimension for images in teacher instructions",
546
+ "type": "number",
547
+ "title": "teacherInstructions"
548
+ },
549
+ "prompt": {
550
+ "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",
551
+ "type": "number",
552
+ "title": "prompt"
553
+ },
554
+ "rationale": {
555
+ "description": "Indicates the max dimension for images in rationale",
556
+ "type": "number",
557
+ "title": "rationale"
558
+ },
559
+ "choices": {
560
+ "description": "Indicates the max dimension for images in choices",
561
+ "type": "number",
562
+ "title": "choices"
563
+ }
564
+ }
335
565
  }
336
566
  }
337
567
  },
@@ -367,6 +597,11 @@
367
597
  }
368
598
  }
369
599
  },
600
+ "settingsPanelDisabled": {
601
+ "description": "Indicates if the settings panel is not available",
602
+ "type": "boolean",
603
+ "title": "settingsPanelDisabled"
604
+ },
370
605
  "scoringType": {
371
606
  "title": "ConfigureProp",
372
607
  "type": "object",
@@ -517,6 +752,27 @@
517
752
  }
518
753
  }
519
754
  },
755
+ "settingsPanelDisabled": {
756
+ "description": "Indicates if the settings panel is not available",
757
+ "type": "boolean",
758
+ "title": "settingsPanelDisabled"
759
+ },
760
+ "spellCheck": {
761
+ "title": "ConfigureProp",
762
+ "type": "object",
763
+ "properties": {
764
+ "settings": {
765
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
766
+ "type": "boolean",
767
+ "title": "settings"
768
+ },
769
+ "label": {
770
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
771
+ "type": "string",
772
+ "title": "label"
773
+ }
774
+ }
775
+ },
520
776
  "rationale": {
521
777
  "title": "ConfigureProp",
522
778
  "type": "object",
@@ -564,6 +820,100 @@
564
820
  "title": "label"
565
821
  }
566
822
  }
823
+ },
824
+ "choicesLayout": {
825
+ "title": "ConfigureProp",
826
+ "type": "object",
827
+ "properties": {
828
+ "settings": {
829
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
830
+ "type": "boolean",
831
+ "title": "settings"
832
+ },
833
+ "label": {
834
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
835
+ "type": "string",
836
+ "title": "label"
837
+ }
838
+ }
839
+ },
840
+ "gridColumns": {
841
+ "title": "ConfigureProp",
842
+ "type": "object",
843
+ "properties": {
844
+ "settings": {
845
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
846
+ "type": "boolean",
847
+ "title": "settings"
848
+ },
849
+ "label": {
850
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
851
+ "type": "string",
852
+ "title": "label"
853
+ }
854
+ }
855
+ },
856
+ "minAnswerChoices": {
857
+ "description": "Minimum number of answer choices",
858
+ "type": "number",
859
+ "title": "minAnswerChoices"
860
+ },
861
+ "maxAnswerChoices": {
862
+ "description": "Maximum number of answer choices",
863
+ "type": "number",
864
+ "title": "maxAnswerChoices"
865
+ },
866
+ "maxImageWidth": {
867
+ "title": "ConfigureMaxImageDimensionsProp",
868
+ "type": "object",
869
+ "properties": {
870
+ "teacherInstructions": {
871
+ "description": "Indicates the max dimension for images in teacher instructions",
872
+ "type": "number",
873
+ "title": "teacherInstructions"
874
+ },
875
+ "prompt": {
876
+ "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",
877
+ "type": "number",
878
+ "title": "prompt"
879
+ },
880
+ "rationale": {
881
+ "description": "Indicates the max dimension for images in rationale",
882
+ "type": "number",
883
+ "title": "rationale"
884
+ },
885
+ "choices": {
886
+ "description": "Indicates the max dimension for images in choices",
887
+ "type": "number",
888
+ "title": "choices"
889
+ }
890
+ }
891
+ },
892
+ "maxImageHeight": {
893
+ "title": "ConfigureMaxImageDimensionsProp",
894
+ "type": "object",
895
+ "properties": {
896
+ "teacherInstructions": {
897
+ "description": "Indicates the max dimension for images in teacher instructions",
898
+ "type": "number",
899
+ "title": "teacherInstructions"
900
+ },
901
+ "prompt": {
902
+ "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",
903
+ "type": "number",
904
+ "title": "prompt"
905
+ },
906
+ "rationale": {
907
+ "description": "Indicates the max dimension for images in rationale",
908
+ "type": "number",
909
+ "title": "rationale"
910
+ },
911
+ "choices": {
912
+ "description": "Indicates the max dimension for images in choices",
913
+ "type": "number",
914
+ "title": "choices"
915
+ }
916
+ }
567
917
  }
568
918
  }
569
919
  },
@@ -582,6 +932,32 @@
582
932
  "title": "label"
583
933
  }
584
934
  }
935
+ },
936
+ "ConfigureMaxImageDimensionsProp": {
937
+ "title": "ConfigureMaxImageDimensionsProp",
938
+ "type": "object",
939
+ "properties": {
940
+ "teacherInstructions": {
941
+ "description": "Indicates the max dimension for images in teacher instructions",
942
+ "type": "number",
943
+ "title": "teacherInstructions"
944
+ },
945
+ "prompt": {
946
+ "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",
947
+ "type": "number",
948
+ "title": "prompt"
949
+ },
950
+ "rationale": {
951
+ "description": "Indicates the max dimension for images in rationale",
952
+ "type": "number",
953
+ "title": "rationale"
954
+ },
955
+ "choices": {
956
+ "description": "Indicates the max dimension for images in choices",
957
+ "type": "number",
958
+ "title": "choices"
959
+ }
960
+ }
585
961
  }
586
962
  },
587
963
  "$schema": "http://json-schema.org/draft-07/schema#"