@pie-element/hotspot 11.2.0-beta.0 → 11.2.0-next.18

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 (236) hide show
  1. package/author.js +2 -0
  2. package/configure.js +2 -0
  3. package/controller.js +1 -0
  4. package/dist/author/DeleteWidget.d.ts +38 -0
  5. package/dist/author/DeleteWidget.js +46 -0
  6. package/dist/author/button.d.ts +31 -0
  7. package/dist/author/button.js +27 -0
  8. package/dist/author/buttons/circle.d.ts +18 -0
  9. package/dist/author/buttons/circle.js +25 -0
  10. package/dist/author/buttons/polygon.d.ts +18 -0
  11. package/dist/author/buttons/polygon.js +36 -0
  12. package/dist/author/buttons/rectangle.d.ts +18 -0
  13. package/dist/author/buttons/rectangle.js +36 -0
  14. package/dist/author/defaults.d.ts +157 -0
  15. package/dist/author/defaults.js +119 -0
  16. package/dist/author/hotspot-circle.d.ts +21 -0
  17. package/dist/author/hotspot-circle.js +124 -0
  18. package/dist/author/hotspot-container.d.ts +29 -0
  19. package/dist/author/hotspot-container.js +210 -0
  20. package/dist/author/hotspot-drawable.d.ts +31 -0
  21. package/dist/author/hotspot-drawable.js +312 -0
  22. package/dist/author/hotspot-palette.d.ts +14 -0
  23. package/dist/author/hotspot-palette.js +72 -0
  24. package/dist/author/hotspot-polygon.d.ts +38 -0
  25. package/dist/author/hotspot-polygon.js +200 -0
  26. package/dist/author/hotspot-rectangle.d.ts +20 -0
  27. package/dist/author/hotspot-rectangle.js +119 -0
  28. package/dist/author/icons.d.ts +9 -0
  29. package/dist/author/icons.js +4 -0
  30. package/dist/author/image-konva.d.ts +19 -0
  31. package/dist/author/image-konva.js +49 -0
  32. package/dist/author/index.d.ts +53 -0
  33. package/dist/author/index.js +146 -0
  34. package/dist/author/root.d.ts +15 -0
  35. package/dist/author/root.js +215 -0
  36. package/dist/author/shapes/circle.d.ts +18 -0
  37. package/dist/author/shapes/circle.js +47 -0
  38. package/dist/author/shapes/index.d.ts +12 -0
  39. package/dist/author/shapes/polygon.d.ts +19 -0
  40. package/dist/author/shapes/polygon.js +51 -0
  41. package/dist/author/shapes/rectagle.d.ts +18 -0
  42. package/dist/author/shapes/rectagle.js +57 -0
  43. package/dist/author/shapes/utils.d.ts +19 -0
  44. package/dist/author/shapes/utils.js +16 -0
  45. package/dist/author/upload-control.d.ts +29 -0
  46. package/dist/author/upload-control.js +28 -0
  47. package/dist/author/utils.d.ts +24 -0
  48. package/dist/author/utils.js +83 -0
  49. package/dist/browser/ReactKonva-e9jPRlPL.js +19304 -0
  50. package/dist/browser/ReactKonva-e9jPRlPL.js.map +1 -0
  51. package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
  52. package/dist/browser/author/index.js +37002 -0
  53. package/dist/browser/author/index.js.map +1 -0
  54. package/dist/browser/browser-D4gLESxz.js +226 -0
  55. package/dist/browser/browser-D4gLESxz.js.map +1 -0
  56. package/dist/browser/controller/index.js +198 -0
  57. package/dist/browser/controller/index.js.map +1 -0
  58. package/dist/browser/delivery/index.js +2673 -0
  59. package/dist/browser/delivery/index.js.map +1 -0
  60. package/dist/browser/dist-CJeYAWp3.js +100 -0
  61. package/dist/browser/dist-CJeYAWp3.js.map +1 -0
  62. package/dist/controller/defaults.d.ts +35 -0
  63. package/dist/controller/defaults.js +29 -0
  64. package/dist/controller/index.d.ts +22 -0
  65. package/dist/controller/index.js +154 -0
  66. package/dist/controller/utils.d.ts +10 -0
  67. package/dist/controller/utils.js +12 -0
  68. package/dist/delivery/hotspot/circle.d.ts +22 -0
  69. package/dist/delivery/hotspot/circle.js +113 -0
  70. package/dist/delivery/hotspot/container.d.ts +21 -0
  71. package/dist/delivery/hotspot/container.js +217 -0
  72. package/dist/delivery/hotspot/icons.d.ts +10 -0
  73. package/dist/delivery/hotspot/icons.js +4 -0
  74. package/dist/delivery/hotspot/image-konva-tooltip.d.ts +19 -0
  75. package/dist/delivery/hotspot/image-konva-tooltip.js +66 -0
  76. package/dist/delivery/hotspot/index.d.ts +18 -0
  77. package/dist/delivery/hotspot/index.js +119 -0
  78. package/dist/delivery/hotspot/polygon.d.ts +24 -0
  79. package/dist/delivery/hotspot/polygon.js +121 -0
  80. package/dist/delivery/hotspot/rectangle.d.ts +22 -0
  81. package/dist/delivery/hotspot/rectangle.js +116 -0
  82. package/dist/delivery/index.d.ts +20 -0
  83. package/dist/delivery/index.js +109 -0
  84. package/dist/delivery/session-updater.d.ts +10 -0
  85. package/dist/delivery/session-updater.js +14 -0
  86. package/dist/index.d.ts +1 -0
  87. package/dist/index.iife.d.ts +8 -0
  88. package/dist/index.iife.js +169 -0
  89. package/dist/index.js +2 -0
  90. package/dist/runtime-support.d.ts +12 -0
  91. package/dist/runtime-support.js +12 -0
  92. package/package.json +84 -19
  93. package/CHANGELOG.json +0 -997
  94. package/CHANGELOG.md +0 -2230
  95. package/LICENSE.md +0 -5
  96. package/README.md +0 -1
  97. package/configure/CHANGELOG.json +0 -682
  98. package/configure/CHANGELOG.md +0 -1964
  99. package/configure/lib/DeleteWidget.js +0 -64
  100. package/configure/lib/DeleteWidget.js.map +0 -1
  101. package/configure/lib/button.js +0 -42
  102. package/configure/lib/button.js.map +0 -1
  103. package/configure/lib/buttons/circle.js +0 -33
  104. package/configure/lib/buttons/circle.js.map +0 -1
  105. package/configure/lib/buttons/polygon.js +0 -39
  106. package/configure/lib/buttons/polygon.js.map +0 -1
  107. package/configure/lib/buttons/rectangle.js +0 -39
  108. package/configure/lib/buttons/rectangle.js.map +0 -1
  109. package/configure/lib/defaults.js +0 -155
  110. package/configure/lib/defaults.js.map +0 -1
  111. package/configure/lib/hotspot-circle.js +0 -192
  112. package/configure/lib/hotspot-circle.js.map +0 -1
  113. package/configure/lib/hotspot-container.js +0 -320
  114. package/configure/lib/hotspot-container.js.map +0 -1
  115. package/configure/lib/hotspot-drawable.js +0 -519
  116. package/configure/lib/hotspot-drawable.js.map +0 -1
  117. package/configure/lib/hotspot-palette.js +0 -107
  118. package/configure/lib/hotspot-palette.js.map +0 -1
  119. package/configure/lib/hotspot-polygon.js +0 -293
  120. package/configure/lib/hotspot-polygon.js.map +0 -1
  121. package/configure/lib/hotspot-rectangle.js +0 -190
  122. package/configure/lib/hotspot-rectangle.js.map +0 -1
  123. package/configure/lib/icons.js +0 -7
  124. package/configure/lib/icons.js.map +0 -1
  125. package/configure/lib/image-konva.js +0 -66
  126. package/configure/lib/image-konva.js.map +0 -1
  127. package/configure/lib/index.js +0 -198
  128. package/configure/lib/index.js.map +0 -1
  129. package/configure/lib/root.js +0 -331
  130. package/configure/lib/root.js.map +0 -1
  131. package/configure/lib/shapes/circle.js +0 -84
  132. package/configure/lib/shapes/circle.js.map +0 -1
  133. package/configure/lib/shapes/index.js +0 -50
  134. package/configure/lib/shapes/index.js.map +0 -1
  135. package/configure/lib/shapes/polygon.js +0 -82
  136. package/configure/lib/shapes/polygon.js.map +0 -1
  137. package/configure/lib/shapes/rectagle.js +0 -84
  138. package/configure/lib/shapes/rectagle.js.map +0 -1
  139. package/configure/lib/shapes/utils.js +0 -21
  140. package/configure/lib/shapes/utils.js.map +0 -1
  141. package/configure/lib/upload-control.js +0 -41
  142. package/configure/lib/upload-control.js.map +0 -1
  143. package/configure/lib/utils.js +0 -185
  144. package/configure/lib/utils.js.map +0 -1
  145. package/configure/package.json +0 -26
  146. package/configure/src/DeleteWidget.jsx +0 -51
  147. package/configure/src/__tests__/DeleteWidget.test.jsx +0 -366
  148. package/configure/src/__tests__/button.test.jsx +0 -198
  149. package/configure/src/__tests__/hotspot-circle.test.jsx +0 -259
  150. package/configure/src/__tests__/hotspot-container.test.js +0 -366
  151. package/configure/src/__tests__/hotspot-drawable.test.js +0 -271
  152. package/configure/src/__tests__/hotspot-palette.test.jsx +0 -71
  153. package/configure/src/__tests__/image-konva.test.jsx +0 -226
  154. package/configure/src/__tests__/index.test.js +0 -329
  155. package/configure/src/__tests__/root.test.js +0 -400
  156. package/configure/src/__tests__/utils.test.js +0 -241
  157. package/configure/src/button.jsx +0 -35
  158. package/configure/src/buttons/circle.jsx +0 -18
  159. package/configure/src/buttons/polygon.jsx +0 -29
  160. package/configure/src/buttons/rectangle.jsx +0 -29
  161. package/configure/src/defaults.js +0 -109
  162. package/configure/src/hotspot-circle.jsx +0 -183
  163. package/configure/src/hotspot-container.jsx +0 -330
  164. package/configure/src/hotspot-drawable.jsx +0 -527
  165. package/configure/src/hotspot-palette.jsx +0 -90
  166. package/configure/src/hotspot-polygon.jsx +0 -294
  167. package/configure/src/hotspot-rectangle.jsx +0 -169
  168. package/configure/src/icons.js +0 -5
  169. package/configure/src/image-konva.jsx +0 -63
  170. package/configure/src/index.js +0 -213
  171. package/configure/src/root.jsx +0 -342
  172. package/configure/src/shapes/circle.js +0 -81
  173. package/configure/src/shapes/index.js +0 -4
  174. package/configure/src/shapes/polygon.js +0 -81
  175. package/configure/src/shapes/rectagle.js +0 -82
  176. package/configure/src/shapes/utils.js +0 -16
  177. package/configure/src/upload-control.jsx +0 -33
  178. package/configure/src/utils.js +0 -210
  179. package/controller/CHANGELOG.json +0 -362
  180. package/controller/CHANGELOG.md +0 -1310
  181. package/controller/lib/defaults.js +0 -33
  182. package/controller/lib/defaults.js.map +0 -1
  183. package/controller/lib/index.js +0 -342
  184. package/controller/lib/index.js.map +0 -1
  185. package/controller/lib/utils.js +0 -32
  186. package/controller/lib/utils.js.map +0 -1
  187. package/controller/package.json +0 -18
  188. package/controller/src/__tests__/index.test.js +0 -419
  189. package/controller/src/__tests__/utils.test.js +0 -5
  190. package/controller/src/defaults.js +0 -19
  191. package/controller/src/index.js +0 -330
  192. package/controller/src/utils.js +0 -29
  193. package/docs/config-schema.json +0 -2023
  194. package/docs/config-schema.json.md +0 -1495
  195. package/docs/demo/config.js +0 -8
  196. package/docs/demo/generate.js +0 -122
  197. package/docs/demo/index.html +0 -1
  198. package/docs/demo/session.js +0 -11
  199. package/docs/pie-schema.json +0 -1204
  200. package/docs/pie-schema.json.md +0 -851
  201. package/lib/hotspot/circle.js +0 -160
  202. package/lib/hotspot/circle.js.map +0 -1
  203. package/lib/hotspot/container.js +0 -291
  204. package/lib/hotspot/container.js.map +0 -1
  205. package/lib/hotspot/icons.js +0 -8
  206. package/lib/hotspot/icons.js.map +0 -1
  207. package/lib/hotspot/image-konva-tooltip.js +0 -86
  208. package/lib/hotspot/image-konva-tooltip.js.map +0 -1
  209. package/lib/hotspot/index.js +0 -174
  210. package/lib/hotspot/index.js.map +0 -1
  211. package/lib/hotspot/polygon.js +0 -207
  212. package/lib/hotspot/polygon.js.map +0 -1
  213. package/lib/hotspot/rectangle.js +0 -178
  214. package/lib/hotspot/rectangle.js.map +0 -1
  215. package/lib/index.js +0 -214
  216. package/lib/index.js.map +0 -1
  217. package/lib/session-updater.js +0 -42
  218. package/lib/session-updater.js.map +0 -1
  219. package/src/__tests__/container.test.jsx +0 -58
  220. package/src/__tests__/index.test.js +0 -123
  221. package/src/__tests__/session-updater.test.jsx +0 -69
  222. package/src/hotspot/__tests__/circle.test.jsx +0 -464
  223. package/src/hotspot/__tests__/container.test.jsx +0 -546
  224. package/src/hotspot/__tests__/image-konva-tooltip.test.jsx +0 -510
  225. package/src/hotspot/__tests__/index.test.jsx +0 -64
  226. package/src/hotspot/__tests__/polygon.test.jsx +0 -502
  227. package/src/hotspot/__tests__/rectangle.test.jsx +0 -418
  228. package/src/hotspot/circle.jsx +0 -154
  229. package/src/hotspot/container.jsx +0 -297
  230. package/src/hotspot/icons.js +0 -7
  231. package/src/hotspot/image-konva-tooltip.jsx +0 -76
  232. package/src/hotspot/index.jsx +0 -179
  233. package/src/hotspot/polygon.jsx +0 -197
  234. package/src/hotspot/rectangle.jsx +0 -172
  235. package/src/index.js +0 -227
  236. package/src/session-updater.js +0 -29
@@ -1,1204 +0,0 @@
1
- {
2
- "description": "Model for the @pie-elements/hotspot Interaction",
3
- "additionalProperties": false,
4
- "type": "object",
5
- "properties": {
6
- "prompt": {
7
- "description": "The question prompt or item stem",
8
- "type": "string",
9
- "title": "prompt"
10
- },
11
- "promptEnabled": {
12
- "description": "Indicates if the prompt is enabled",
13
- "type": "boolean",
14
- "title": "promptEnabled"
15
- },
16
- "imageUrl": {
17
- "description": "The image over which hotspots will be drawn",
18
- "type": "string",
19
- "title": "imageUrl"
20
- },
21
- "shapes": {
22
- "title": "Shape",
23
- "type": "object",
24
- "properties": {
25
- "rectangles": {
26
- "description": "the rectangles of the shape",
27
- "type": "array",
28
- "items": {
29
- "title": "Rectangle",
30
- "type": "object",
31
- "properties": {
32
- "id": {
33
- "description": "the id of the rectangle",
34
- "type": "string",
35
- "title": "id"
36
- },
37
- "correct": {
38
- "description": "indicates if the rectangle is correct",
39
- "type": "boolean",
40
- "title": "correct"
41
- },
42
- "height": {
43
- "description": "the height of the rectangle",
44
- "type": "number",
45
- "title": "height"
46
- },
47
- "width": {
48
- "description": "the width of the rectangle",
49
- "type": "number",
50
- "title": "width"
51
- },
52
- "x": {
53
- "description": "the x position of the rectangle",
54
- "type": "number",
55
- "title": "x"
56
- },
57
- "y": {
58
- "description": "the y position of the rectangle",
59
- "type": "number",
60
- "title": "y"
61
- }
62
- },
63
- "required": [
64
- "height",
65
- "width",
66
- "x",
67
- "y"
68
- ]
69
- },
70
- "title": "rectangles"
71
- },
72
- "polygons": {
73
- "description": "the polygons of the shape",
74
- "type": "array",
75
- "items": {
76
- "title": "Polygon",
77
- "type": "object",
78
- "properties": {
79
- "id": {
80
- "description": "the id of the polygon",
81
- "type": "string",
82
- "title": "id"
83
- },
84
- "correct": {
85
- "description": "indicates if the polygon is correct",
86
- "type": "boolean",
87
- "title": "correct"
88
- },
89
- "points": {
90
- "description": "the points of the polygon",
91
- "type": "array",
92
- "items": {
93
- "title": "Point",
94
- "type": "object",
95
- "properties": {
96
- "x": {
97
- "description": "the x position",
98
- "type": "number",
99
- "title": "x"
100
- },
101
- "y": {
102
- "description": "the y position",
103
- "type": "number",
104
- "title": "y"
105
- }
106
- },
107
- "required": [
108
- "x",
109
- "y"
110
- ]
111
- },
112
- "title": "points"
113
- }
114
- },
115
- "required": [
116
- "points"
117
- ]
118
- },
119
- "title": "polygons"
120
- }
121
- },
122
- "required": [
123
- "polygons",
124
- "rectangles"
125
- ]
126
- },
127
- "multipleCorrect": {
128
- "description": "Indicates if the item supports multiple correct answers",
129
- "type": "boolean",
130
- "title": "multipleCorrect"
131
- },
132
- "partialScoring": {
133
- "description": "Indicates if the item should use partial scoring",
134
- "type": "boolean",
135
- "title": "partialScoring"
136
- },
137
- "dimensions": {
138
- "description": "The dimensions of the drawable section",
139
- "type": "array",
140
- "items": {
141
- "title": "Dimension",
142
- "type": "object",
143
- "properties": {
144
- "height": {
145
- "description": "the height of the section",
146
- "type": "number",
147
- "title": "height"
148
- },
149
- "width": {
150
- "description": "the width of the section",
151
- "type": "number",
152
- "title": "width"
153
- }
154
- },
155
- "required": [
156
- "height",
157
- "width"
158
- ]
159
- },
160
- "title": "dimensions"
161
- },
162
- "hotspotColor": {
163
- "description": "The color that fills the hotspot",
164
- "type": "string",
165
- "title": "hotspotColor"
166
- },
167
- "selectedHotspotColor": {
168
- "description": "The color that fills the hotspot",
169
- "type": "string",
170
- "title": "selectedHotspotColor"
171
- },
172
- "hoverOutlineColor": {
173
- "description": "The color of the rectangular outline",
174
- "type": "string",
175
- "title": "hoverOutlineColor"
176
- },
177
- "hotspotList": {
178
- "description": "The filling hotspot color options",
179
- "type": "array",
180
- "items": {
181
- "type": "string"
182
- },
183
- "title": "hotspotList"
184
- },
185
- "outlineColor": {
186
- "description": "The outline color of the hotspot",
187
- "type": "string",
188
- "title": "outlineColor"
189
- },
190
- "outlineList": {
191
- "description": "The outline hotspot color options",
192
- "type": "array",
193
- "items": {
194
- "type": "string"
195
- },
196
- "title": "outlineList"
197
- },
198
- "rationale": {
199
- "description": "Indicates the value for rationale",
200
- "type": "string",
201
- "title": "rationale"
202
- },
203
- "rationaleEnabled": {
204
- "description": "Indicates if Rationale are enabled",
205
- "type": "boolean",
206
- "title": "rationaleEnabled"
207
- },
208
- "studentInstructionsEnabled": {
209
- "description": "Indicates if Student Instructions are enabled",
210
- "type": "boolean",
211
- "title": "studentInstructionsEnabled"
212
- },
213
- "spellCheckEnabled": {
214
- "description": "Indicates if spellcheck is enabled for the author. Default value is true",
215
- "type": "boolean",
216
- "title": "spellCheckEnabled"
217
- },
218
- "strokeWidth": {
219
- "description": "Indicates the width of the outline for a selection",
220
- "type": "number",
221
- "title": "strokeWidth"
222
- },
223
- "teacherInstructionsEnabled": {
224
- "description": "Indicates if Teacher Instructions are enabled",
225
- "type": "boolean",
226
- "title": "teacherInstructionsEnabled"
227
- },
228
- "toolbarEditorPosition": {
229
- "description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
230
- "default": ": 'bottom'",
231
- "enum": [
232
- "bottom",
233
- "top"
234
- ],
235
- "type": "string",
236
- "title": "toolbarEditorPosition"
237
- },
238
- "rubricEnabled": {
239
- "description": "Indicates if Rubric is enabled",
240
- "type": "boolean",
241
- "title": "rubricEnabled"
242
- },
243
- "language": {
244
- "description": "Indicates the language of the component\nSupported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX",
245
- "type": "string",
246
- "title": "language"
247
- },
248
- "fontSizeFactor": {
249
- "description": "Indicates font size adjustment factor",
250
- "type": "number",
251
- "title": "fontSizeFactor"
252
- },
253
- "autoplayAudioEnabled": {
254
- "description": "Indicates if the audio for the prompt should autoplay",
255
- "type": "boolean",
256
- "title": "autoplayAudioEnabled"
257
- },
258
- "completeAudioEnabled": {
259
- "description": "Indicates if the audio should reach the end before the item can be marked as 'complete'",
260
- "type": "boolean",
261
- "title": "completeAudioEnabled"
262
- },
263
- "customAudioButton": {
264
- "description": "Indicates if the audio should be replaced with a custom audio button\n playImage: image url for the play state\n pauseImage: image url for the pause state",
265
- "type": "object",
266
- "properties": {
267
- "playImage": {
268
- "type": "string",
269
- "title": "playImage"
270
- },
271
- "pauseImage": {
272
- "type": "string",
273
- "title": "pauseImage"
274
- }
275
- },
276
- "required": [
277
- "pauseImage",
278
- "playImage"
279
- ],
280
- "title": "customAudioButton"
281
- },
282
- "id": {
283
- "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
284
- "type": "string",
285
- "title": "id"
286
- },
287
- "element": {
288
- "description": "The html Element tag name",
289
- "type": "string",
290
- "title": "element"
291
- }
292
- },
293
- "required": [
294
- "dimensions",
295
- "element",
296
- "id",
297
- "multipleCorrect",
298
- "partialScoring",
299
- "rationaleEnabled",
300
- "rubricEnabled",
301
- "shapes",
302
- "spellCheckEnabled",
303
- "strokeWidth",
304
- "studentInstructionsEnabled",
305
- "teacherInstructionsEnabled"
306
- ],
307
- "definitions": {
308
- "EditableHtmlConfigureProp": {
309
- "title": "EditableHtmlConfigureProp",
310
- "type": "object",
311
- "properties": {
312
- "math": {
313
- "title": "EditableHtmlButtonConfigure",
314
- "type": "object",
315
- "properties": {
316
- "disabled": {
317
- "description": "Indicates if the plugin is disabled or not",
318
- "type": "boolean",
319
- "title": "disabled"
320
- }
321
- }
322
- },
323
- "audio": {
324
- "title": "EditableHtmlButtonConfigure",
325
- "type": "object",
326
- "properties": {
327
- "disabled": {
328
- "description": "Indicates if the plugin is disabled or not",
329
- "type": "boolean",
330
- "title": "disabled"
331
- }
332
- }
333
- },
334
- "video": {
335
- "title": "EditableHtmlButtonConfigure",
336
- "type": "object",
337
- "properties": {
338
- "disabled": {
339
- "description": "Indicates if the plugin is disabled or not",
340
- "type": "boolean",
341
- "title": "disabled"
342
- }
343
- }
344
- },
345
- "image": {
346
- "title": "EditableHtmlButtonConfigure",
347
- "type": "object",
348
- "properties": {
349
- "disabled": {
350
- "description": "Indicates if the plugin is disabled or not",
351
- "type": "boolean",
352
- "title": "disabled"
353
- }
354
- }
355
- },
356
- "customPlugins": {
357
- "description": "An array of objects that determine custom plugins.\nA 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).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
358
- "type": "array",
359
- "items": {
360
- "title": "CustomPlugin",
361
- "type": "object",
362
- "properties": {
363
- "event": {
364
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
365
- "type": "string",
366
- "title": "event"
367
- },
368
- "iconAlt": {
369
- "description": "The alt for the custom button icon",
370
- "type": "string",
371
- "title": "iconAlt"
372
- },
373
- "iconType": {
374
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
375
- "type": "string",
376
- "title": "iconType"
377
- },
378
- "icon": {
379
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
380
- "type": "string",
381
- "title": "icon"
382
- }
383
- },
384
- "required": [
385
- "event",
386
- "icon",
387
- "iconAlt",
388
- "iconType"
389
- ]
390
- },
391
- "title": "customPlugins"
392
- },
393
- "blockquote": {
394
- "title": "EditableHtmlButtonConfigure",
395
- "type": "object",
396
- "properties": {
397
- "disabled": {
398
- "description": "Indicates if the plugin is disabled or not",
399
- "type": "boolean",
400
- "title": "disabled"
401
- }
402
- }
403
- },
404
- "h3": {
405
- "title": "EditableHtmlButtonConfigure",
406
- "type": "object",
407
- "properties": {
408
- "disabled": {
409
- "description": "Indicates if the plugin is disabled or not",
410
- "type": "boolean",
411
- "title": "disabled"
412
- }
413
- }
414
- },
415
- "characters": {
416
- "title": "EditableHtmlButtonConfigure",
417
- "type": "object",
418
- "properties": {
419
- "disabled": {
420
- "description": "Indicates if the plugin is disabled or not",
421
- "type": "boolean",
422
- "title": "disabled"
423
- }
424
- }
425
- },
426
- "bold": {
427
- "title": "EditableHtmlButtonConfigure",
428
- "type": "object",
429
- "properties": {
430
- "disabled": {
431
- "description": "Indicates if the plugin is disabled or not",
432
- "type": "boolean",
433
- "title": "disabled"
434
- }
435
- }
436
- },
437
- "html": {
438
- "title": "EditableHtmlButtonConfigure",
439
- "type": "object",
440
- "properties": {
441
- "disabled": {
442
- "description": "Indicates if the plugin is disabled or not",
443
- "type": "boolean",
444
- "title": "disabled"
445
- }
446
- }
447
- },
448
- "italic": {
449
- "title": "EditableHtmlButtonConfigure",
450
- "type": "object",
451
- "properties": {
452
- "disabled": {
453
- "description": "Indicates if the plugin is disabled or not",
454
- "type": "boolean",
455
- "title": "disabled"
456
- }
457
- }
458
- },
459
- "ol_list": {
460
- "title": "EditableHtmlButtonConfigure",
461
- "type": "object",
462
- "properties": {
463
- "disabled": {
464
- "description": "Indicates if the plugin is disabled or not",
465
- "type": "boolean",
466
- "title": "disabled"
467
- }
468
- }
469
- },
470
- "redo": {
471
- "title": "EditableHtmlButtonConfigure",
472
- "type": "object",
473
- "properties": {
474
- "disabled": {
475
- "description": "Indicates if the plugin is disabled or not",
476
- "type": "boolean",
477
- "title": "disabled"
478
- }
479
- }
480
- },
481
- "strikethrough": {
482
- "title": "EditableHtmlButtonConfigure",
483
- "type": "object",
484
- "properties": {
485
- "disabled": {
486
- "description": "Indicates if the plugin is disabled or not",
487
- "type": "boolean",
488
- "title": "disabled"
489
- }
490
- }
491
- },
492
- "sub": {
493
- "title": "EditableHtmlButtonConfigure",
494
- "type": "object",
495
- "properties": {
496
- "disabled": {
497
- "description": "Indicates if the plugin is disabled or not",
498
- "type": "boolean",
499
- "title": "disabled"
500
- }
501
- }
502
- },
503
- "sup": {
504
- "title": "EditableHtmlButtonConfigure",
505
- "type": "object",
506
- "properties": {
507
- "disabled": {
508
- "description": "Indicates if the plugin is disabled or not",
509
- "type": "boolean",
510
- "title": "disabled"
511
- }
512
- }
513
- },
514
- "table": {
515
- "title": "EditableHtmlButtonConfigure",
516
- "type": "object",
517
- "properties": {
518
- "disabled": {
519
- "description": "Indicates if the plugin is disabled or not",
520
- "type": "boolean",
521
- "title": "disabled"
522
- }
523
- }
524
- },
525
- "ul_list": {
526
- "title": "EditableHtmlButtonConfigure",
527
- "type": "object",
528
- "properties": {
529
- "disabled": {
530
- "description": "Indicates if the plugin is disabled or not",
531
- "type": "boolean",
532
- "title": "disabled"
533
- }
534
- }
535
- },
536
- "underline": {
537
- "title": "EditableHtmlButtonConfigure",
538
- "type": "object",
539
- "properties": {
540
- "disabled": {
541
- "description": "Indicates if the plugin is disabled or not",
542
- "type": "boolean",
543
- "title": "disabled"
544
- }
545
- }
546
- },
547
- "undo": {
548
- "title": "EditableHtmlButtonConfigure",
549
- "type": "object",
550
- "properties": {
551
- "disabled": {
552
- "description": "Indicates if the plugin is disabled or not",
553
- "type": "boolean",
554
- "title": "disabled"
555
- }
556
- }
557
- }
558
- }
559
- },
560
- "EditableHtmlButtonConfigure": {
561
- "title": "EditableHtmlButtonConfigure",
562
- "type": "object",
563
- "properties": {
564
- "disabled": {
565
- "description": "Indicates if the plugin is disabled or not",
566
- "type": "boolean",
567
- "title": "disabled"
568
- }
569
- }
570
- },
571
- "CustomPlugin": {
572
- "title": "CustomPlugin",
573
- "type": "object",
574
- "properties": {
575
- "event": {
576
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
577
- "type": "string",
578
- "title": "event"
579
- },
580
- "iconAlt": {
581
- "description": "The alt for the custom button icon",
582
- "type": "string",
583
- "title": "iconAlt"
584
- },
585
- "iconType": {
586
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
587
- "type": "string",
588
- "title": "iconType"
589
- },
590
- "icon": {
591
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
592
- "type": "string",
593
- "title": "icon"
594
- }
595
- },
596
- "required": [
597
- "event",
598
- "icon",
599
- "iconAlt",
600
- "iconType"
601
- ]
602
- },
603
- "ConfigureProp": {
604
- "title": "ConfigureProp",
605
- "type": "object",
606
- "properties": {
607
- "settings": {
608
- "description": "Indicates if the item has to be displayed in the Settings Panel",
609
- "type": "boolean",
610
- "title": "settings"
611
- },
612
- "label": {
613
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
614
- "type": "string",
615
- "title": "label"
616
- }
617
- }
618
- },
619
- "EditableHtmlPluginConfigureRequired": {
620
- "title": "EditableHtmlPluginConfigureRequired",
621
- "type": "object",
622
- "properties": {
623
- "inputConfiguration": {
624
- "title": "EditableHtmlConfigureProp",
625
- "type": "object",
626
- "properties": {
627
- "math": {
628
- "title": "EditableHtmlButtonConfigure",
629
- "type": "object",
630
- "properties": {
631
- "disabled": {
632
- "description": "Indicates if the plugin is disabled or not",
633
- "type": "boolean",
634
- "title": "disabled"
635
- }
636
- }
637
- },
638
- "audio": {
639
- "title": "EditableHtmlButtonConfigure",
640
- "type": "object",
641
- "properties": {
642
- "disabled": {
643
- "description": "Indicates if the plugin is disabled or not",
644
- "type": "boolean",
645
- "title": "disabled"
646
- }
647
- }
648
- },
649
- "video": {
650
- "title": "EditableHtmlButtonConfigure",
651
- "type": "object",
652
- "properties": {
653
- "disabled": {
654
- "description": "Indicates if the plugin is disabled or not",
655
- "type": "boolean",
656
- "title": "disabled"
657
- }
658
- }
659
- },
660
- "image": {
661
- "title": "EditableHtmlButtonConfigure",
662
- "type": "object",
663
- "properties": {
664
- "disabled": {
665
- "description": "Indicates if the plugin is disabled or not",
666
- "type": "boolean",
667
- "title": "disabled"
668
- }
669
- }
670
- },
671
- "customPlugins": {
672
- "description": "An array of objects that determine custom plugins.\nA 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).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
673
- "type": "array",
674
- "items": {
675
- "title": "CustomPlugin",
676
- "type": "object",
677
- "properties": {
678
- "event": {
679
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
680
- "type": "string",
681
- "title": "event"
682
- },
683
- "iconAlt": {
684
- "description": "The alt for the custom button icon",
685
- "type": "string",
686
- "title": "iconAlt"
687
- },
688
- "iconType": {
689
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
690
- "type": "string",
691
- "title": "iconType"
692
- },
693
- "icon": {
694
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
695
- "type": "string",
696
- "title": "icon"
697
- }
698
- },
699
- "required": [
700
- "event",
701
- "icon",
702
- "iconAlt",
703
- "iconType"
704
- ]
705
- },
706
- "title": "customPlugins"
707
- },
708
- "blockquote": {
709
- "title": "EditableHtmlButtonConfigure",
710
- "type": "object",
711
- "properties": {
712
- "disabled": {
713
- "description": "Indicates if the plugin is disabled or not",
714
- "type": "boolean",
715
- "title": "disabled"
716
- }
717
- }
718
- },
719
- "h3": {
720
- "title": "EditableHtmlButtonConfigure",
721
- "type": "object",
722
- "properties": {
723
- "disabled": {
724
- "description": "Indicates if the plugin is disabled or not",
725
- "type": "boolean",
726
- "title": "disabled"
727
- }
728
- }
729
- },
730
- "characters": {
731
- "title": "EditableHtmlButtonConfigure",
732
- "type": "object",
733
- "properties": {
734
- "disabled": {
735
- "description": "Indicates if the plugin is disabled or not",
736
- "type": "boolean",
737
- "title": "disabled"
738
- }
739
- }
740
- },
741
- "bold": {
742
- "title": "EditableHtmlButtonConfigure",
743
- "type": "object",
744
- "properties": {
745
- "disabled": {
746
- "description": "Indicates if the plugin is disabled or not",
747
- "type": "boolean",
748
- "title": "disabled"
749
- }
750
- }
751
- },
752
- "html": {
753
- "title": "EditableHtmlButtonConfigure",
754
- "type": "object",
755
- "properties": {
756
- "disabled": {
757
- "description": "Indicates if the plugin is disabled or not",
758
- "type": "boolean",
759
- "title": "disabled"
760
- }
761
- }
762
- },
763
- "italic": {
764
- "title": "EditableHtmlButtonConfigure",
765
- "type": "object",
766
- "properties": {
767
- "disabled": {
768
- "description": "Indicates if the plugin is disabled or not",
769
- "type": "boolean",
770
- "title": "disabled"
771
- }
772
- }
773
- },
774
- "ol_list": {
775
- "title": "EditableHtmlButtonConfigure",
776
- "type": "object",
777
- "properties": {
778
- "disabled": {
779
- "description": "Indicates if the plugin is disabled or not",
780
- "type": "boolean",
781
- "title": "disabled"
782
- }
783
- }
784
- },
785
- "redo": {
786
- "title": "EditableHtmlButtonConfigure",
787
- "type": "object",
788
- "properties": {
789
- "disabled": {
790
- "description": "Indicates if the plugin is disabled or not",
791
- "type": "boolean",
792
- "title": "disabled"
793
- }
794
- }
795
- },
796
- "strikethrough": {
797
- "title": "EditableHtmlButtonConfigure",
798
- "type": "object",
799
- "properties": {
800
- "disabled": {
801
- "description": "Indicates if the plugin is disabled or not",
802
- "type": "boolean",
803
- "title": "disabled"
804
- }
805
- }
806
- },
807
- "sub": {
808
- "title": "EditableHtmlButtonConfigure",
809
- "type": "object",
810
- "properties": {
811
- "disabled": {
812
- "description": "Indicates if the plugin is disabled or not",
813
- "type": "boolean",
814
- "title": "disabled"
815
- }
816
- }
817
- },
818
- "sup": {
819
- "title": "EditableHtmlButtonConfigure",
820
- "type": "object",
821
- "properties": {
822
- "disabled": {
823
- "description": "Indicates if the plugin is disabled or not",
824
- "type": "boolean",
825
- "title": "disabled"
826
- }
827
- }
828
- },
829
- "table": {
830
- "title": "EditableHtmlButtonConfigure",
831
- "type": "object",
832
- "properties": {
833
- "disabled": {
834
- "description": "Indicates if the plugin is disabled or not",
835
- "type": "boolean",
836
- "title": "disabled"
837
- }
838
- }
839
- },
840
- "ul_list": {
841
- "title": "EditableHtmlButtonConfigure",
842
- "type": "object",
843
- "properties": {
844
- "disabled": {
845
- "description": "Indicates if the plugin is disabled or not",
846
- "type": "boolean",
847
- "title": "disabled"
848
- }
849
- }
850
- },
851
- "underline": {
852
- "title": "EditableHtmlButtonConfigure",
853
- "type": "object",
854
- "properties": {
855
- "disabled": {
856
- "description": "Indicates if the plugin is disabled or not",
857
- "type": "boolean",
858
- "title": "disabled"
859
- }
860
- }
861
- },
862
- "undo": {
863
- "title": "EditableHtmlButtonConfigure",
864
- "type": "object",
865
- "properties": {
866
- "disabled": {
867
- "description": "Indicates if the plugin is disabled or not",
868
- "type": "boolean",
869
- "title": "disabled"
870
- }
871
- }
872
- }
873
- }
874
- },
875
- "required": {
876
- "description": "Indicates if the item is required and the value cannot be empty",
877
- "type": "boolean",
878
- "title": "required"
879
- },
880
- "settings": {
881
- "description": "Indicates if the item has to be displayed in the Settings Panel",
882
- "type": "boolean",
883
- "title": "settings"
884
- },
885
- "label": {
886
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
887
- "type": "string",
888
- "title": "label"
889
- }
890
- }
891
- },
892
- "ConfigureMaxImageDimensionsProp": {
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
- }
912
- },
913
- "ConfigureMathMLProp": {
914
- "title": "ConfigureMathMLProp",
915
- "type": "object",
916
- "properties": {
917
- "mmlOutput": {
918
- "description": "Indicates if model should have mathML output instead of latex",
919
- "type": "number",
920
- "title": "mmlOutput"
921
- },
922
- "mmlEditing": {
923
- "description": "Indicates if mathML that's already in model should be editable",
924
- "type": "number",
925
- "title": "mmlEditing"
926
- }
927
- }
928
- },
929
- "ConfigurePropWithEnabled": {
930
- "title": "ConfigurePropWithEnabled",
931
- "type": "object",
932
- "properties": {
933
- "enabled": {
934
- "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
935
- "type": "boolean",
936
- "title": "enabled"
937
- },
938
- "settings": {
939
- "description": "Indicates if the item has to be displayed in the Settings Panel",
940
- "type": "boolean",
941
- "title": "settings"
942
- },
943
- "label": {
944
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
945
- "type": "string",
946
- "title": "label"
947
- }
948
- }
949
- },
950
- "ConfigureLanguageOptionsProp": {
951
- "title": "ConfigureLanguageOptionsProp",
952
- "type": "object",
953
- "properties": {
954
- "value": {
955
- "description": "Value of the language option",
956
- "type": "string",
957
- "title": "value"
958
- },
959
- "label": {
960
- "description": "Label of the language option",
961
- "type": "string",
962
- "title": "label"
963
- }
964
- },
965
- "required": [
966
- "label",
967
- "value"
968
- ]
969
- },
970
- "Shape": {
971
- "title": "Shape",
972
- "type": "object",
973
- "properties": {
974
- "rectangles": {
975
- "description": "the rectangles of the shape",
976
- "type": "array",
977
- "items": {
978
- "title": "Rectangle",
979
- "type": "object",
980
- "properties": {
981
- "id": {
982
- "description": "the id of the rectangle",
983
- "type": "string",
984
- "title": "id"
985
- },
986
- "correct": {
987
- "description": "indicates if the rectangle is correct",
988
- "type": "boolean",
989
- "title": "correct"
990
- },
991
- "height": {
992
- "description": "the height of the rectangle",
993
- "type": "number",
994
- "title": "height"
995
- },
996
- "width": {
997
- "description": "the width of the rectangle",
998
- "type": "number",
999
- "title": "width"
1000
- },
1001
- "x": {
1002
- "description": "the x position of the rectangle",
1003
- "type": "number",
1004
- "title": "x"
1005
- },
1006
- "y": {
1007
- "description": "the y position of the rectangle",
1008
- "type": "number",
1009
- "title": "y"
1010
- }
1011
- },
1012
- "required": [
1013
- "height",
1014
- "width",
1015
- "x",
1016
- "y"
1017
- ]
1018
- },
1019
- "title": "rectangles"
1020
- },
1021
- "polygons": {
1022
- "description": "the polygons of the shape",
1023
- "type": "array",
1024
- "items": {
1025
- "title": "Polygon",
1026
- "type": "object",
1027
- "properties": {
1028
- "id": {
1029
- "description": "the id of the polygon",
1030
- "type": "string",
1031
- "title": "id"
1032
- },
1033
- "correct": {
1034
- "description": "indicates if the polygon is correct",
1035
- "type": "boolean",
1036
- "title": "correct"
1037
- },
1038
- "points": {
1039
- "description": "the points of the polygon",
1040
- "type": "array",
1041
- "items": {
1042
- "title": "Point",
1043
- "type": "object",
1044
- "properties": {
1045
- "x": {
1046
- "description": "the x position",
1047
- "type": "number",
1048
- "title": "x"
1049
- },
1050
- "y": {
1051
- "description": "the y position",
1052
- "type": "number",
1053
- "title": "y"
1054
- }
1055
- },
1056
- "required": [
1057
- "x",
1058
- "y"
1059
- ]
1060
- },
1061
- "title": "points"
1062
- }
1063
- },
1064
- "required": [
1065
- "points"
1066
- ]
1067
- },
1068
- "title": "polygons"
1069
- }
1070
- },
1071
- "required": [
1072
- "polygons",
1073
- "rectangles"
1074
- ]
1075
- },
1076
- "Rectangle": {
1077
- "title": "Rectangle",
1078
- "type": "object",
1079
- "properties": {
1080
- "id": {
1081
- "description": "the id of the rectangle",
1082
- "type": "string",
1083
- "title": "id"
1084
- },
1085
- "correct": {
1086
- "description": "indicates if the rectangle is correct",
1087
- "type": "boolean",
1088
- "title": "correct"
1089
- },
1090
- "height": {
1091
- "description": "the height of the rectangle",
1092
- "type": "number",
1093
- "title": "height"
1094
- },
1095
- "width": {
1096
- "description": "the width of the rectangle",
1097
- "type": "number",
1098
- "title": "width"
1099
- },
1100
- "x": {
1101
- "description": "the x position of the rectangle",
1102
- "type": "number",
1103
- "title": "x"
1104
- },
1105
- "y": {
1106
- "description": "the y position of the rectangle",
1107
- "type": "number",
1108
- "title": "y"
1109
- }
1110
- },
1111
- "required": [
1112
- "height",
1113
- "width",
1114
- "x",
1115
- "y"
1116
- ]
1117
- },
1118
- "Polygon": {
1119
- "title": "Polygon",
1120
- "type": "object",
1121
- "properties": {
1122
- "id": {
1123
- "description": "the id of the polygon",
1124
- "type": "string",
1125
- "title": "id"
1126
- },
1127
- "correct": {
1128
- "description": "indicates if the polygon is correct",
1129
- "type": "boolean",
1130
- "title": "correct"
1131
- },
1132
- "points": {
1133
- "description": "the points of the polygon",
1134
- "type": "array",
1135
- "items": {
1136
- "title": "Point",
1137
- "type": "object",
1138
- "properties": {
1139
- "x": {
1140
- "description": "the x position",
1141
- "type": "number",
1142
- "title": "x"
1143
- },
1144
- "y": {
1145
- "description": "the y position",
1146
- "type": "number",
1147
- "title": "y"
1148
- }
1149
- },
1150
- "required": [
1151
- "x",
1152
- "y"
1153
- ]
1154
- },
1155
- "title": "points"
1156
- }
1157
- },
1158
- "required": [
1159
- "points"
1160
- ]
1161
- },
1162
- "Point": {
1163
- "title": "Point",
1164
- "type": "object",
1165
- "properties": {
1166
- "x": {
1167
- "description": "the x position",
1168
- "type": "number",
1169
- "title": "x"
1170
- },
1171
- "y": {
1172
- "description": "the y position",
1173
- "type": "number",
1174
- "title": "y"
1175
- }
1176
- },
1177
- "required": [
1178
- "x",
1179
- "y"
1180
- ]
1181
- },
1182
- "Dimension": {
1183
- "title": "Dimension",
1184
- "type": "object",
1185
- "properties": {
1186
- "height": {
1187
- "description": "the height of the section",
1188
- "type": "number",
1189
- "title": "height"
1190
- },
1191
- "width": {
1192
- "description": "the width of the section",
1193
- "type": "number",
1194
- "title": "width"
1195
- }
1196
- },
1197
- "required": [
1198
- "height",
1199
- "width"
1200
- ]
1201
- }
1202
- },
1203
- "$schema": "http://json-schema.org/draft-07/schema#"
1204
- }