@pie-element/extended-text-entry 10.12.4 → 10.13.0

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 (41) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/configure/CHANGELOG.md +8 -0
  3. package/configure/lib/defaults.js +6 -1
  4. package/configure/lib/defaults.js.map +1 -1
  5. package/configure/lib/index.js.map +1 -1
  6. package/configure/lib/main.js +3 -0
  7. package/configure/lib/main.js.map +1 -1
  8. package/configure/package.json +1 -1
  9. package/controller/CHANGELOG.md +11 -0
  10. package/controller/lib/defaults.js +73 -1
  11. package/controller/lib/defaults.js.map +1 -1
  12. package/controller/lib/index.js +9 -11
  13. package/controller/lib/index.js.map +1 -1
  14. package/controller/package.json +1 -1
  15. package/docs/config-schema.json +16 -0
  16. package/docs/config-schema.json.md +12 -0
  17. package/docs/demo/generate.js +1 -0
  18. package/docs/pie-schema.json +70 -0
  19. package/docs/pie-schema.json.md +51 -1
  20. package/lib/annotation/annotation-editor.js +703 -0
  21. package/lib/annotation/annotation-editor.js.map +1 -0
  22. package/lib/annotation/annotation-menu.js +206 -0
  23. package/lib/annotation/annotation-menu.js.map +1 -0
  24. package/lib/annotation/annotation-utils.js +249 -0
  25. package/lib/annotation/annotation-utils.js.map +1 -0
  26. package/lib/annotation/freeform-editor.js +266 -0
  27. package/lib/annotation/freeform-editor.js.map +1 -0
  28. package/lib/index.js +23 -6
  29. package/lib/index.js.map +1 -1
  30. package/lib/main.js +49 -19
  31. package/lib/main.js.map +1 -1
  32. package/module/configure.js +19 -13
  33. package/module/controller.js +33 -14
  34. package/module/demo.js +1 -0
  35. package/module/element.js +7601 -506
  36. package/module/index.html +1 -1
  37. package/module/manifest.json +1 -1
  38. package/module/print-demo.js +1 -0
  39. package/module/print.html +1 -1
  40. package/module/print.js +7585 -503
  41. package/package.json +2 -2
@@ -84,6 +84,10 @@ Indicates student instructions
84
84
 
85
85
  Indicates teacher instructions
86
86
 
87
+ # `annotationsEnabled` (boolean)
88
+
89
+ Indicates if the annotations are enabled
90
+
87
91
  # `feedbackEnabled` (boolean, required)
88
92
 
89
93
  Indicates if Feedback is enabled
@@ -115,6 +119,31 @@ This element must be one of the following enum values:
115
119
  * `bottom`
116
120
  * `top`
117
121
 
122
+ # `predefinedAnnotations` (array)
123
+
124
+ Indicates the predefined annotations for the annotation menu
125
+
126
+ The object is an array with all elements of the type `object`.
127
+
128
+ The array object has the following properties:
129
+
130
+ ## `label` (string, required)
131
+
132
+ Indicates the value displayed in the annotation button
133
+
134
+ ## `text` (string, required)
135
+
136
+ Indicates the annotation value
137
+
138
+ ## `type` (string, enum, required)
139
+
140
+ Indicates the type of the annotation
141
+
142
+ This element must be one of the following enum values:
143
+
144
+ * `negative`
145
+ * `positive`
146
+
118
147
  # `playersToolbarPosition` (string, enum)
119
148
 
120
149
  Indicates the editor's toolbar position for the player, which can be 'bottom' or 'top'
@@ -424,4 +453,25 @@ This element must be one of the following enum values:
424
453
 
425
454
  ### `default` (string)
426
455
 
427
- Indicates the feedback value
456
+ Indicates the feedback value
457
+
458
+ ## `PredefinedAnnotation` (object)
459
+
460
+ Properties of the `PredefinedAnnotation` object:
461
+
462
+ ### `label` (string, required)
463
+
464
+ Indicates the value displayed in the annotation button
465
+
466
+ ### `text` (string, required)
467
+
468
+ Indicates the annotation value
469
+
470
+ ### `type` (string, enum, required)
471
+
472
+ Indicates the type of the annotation
473
+
474
+ This element must be one of the following enum values:
475
+
476
+ * `negative`
477
+ * `positive`