@pie-element/hotspot 4.7.18-next.85 → 4.8.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 (95) hide show
  1. package/CHANGELOG.md +485 -0
  2. package/configure/CHANGELOG.md +425 -0
  3. package/configure/lib/button.js.map +1 -1
  4. package/configure/lib/defaults.js +24 -2
  5. package/configure/lib/defaults.js.map +1 -1
  6. package/configure/lib/hotspot-container.js +44 -23
  7. package/configure/lib/hotspot-container.js.map +1 -1
  8. package/configure/lib/hotspot-drawable.js +11 -5
  9. package/configure/lib/hotspot-drawable.js.map +1 -1
  10. package/configure/lib/hotspot-palette.js +1 -1
  11. package/configure/lib/hotspot-palette.js.map +1 -1
  12. package/configure/lib/hotspot-polygon.js +1 -1
  13. package/configure/lib/hotspot-polygon.js.map +1 -1
  14. package/configure/lib/hotspot-rectangle.js +1 -1
  15. package/configure/lib/hotspot-rectangle.js.map +1 -1
  16. package/configure/lib/index.js +17 -3
  17. package/configure/lib/index.js.map +1 -1
  18. package/configure/lib/root.js +133 -27
  19. package/configure/lib/root.js.map +1 -1
  20. package/configure/lib/upload-control.js.map +1 -1
  21. package/configure/lib/utils.js +18 -4
  22. package/configure/lib/utils.js.map +1 -1
  23. package/configure/package.json +4 -4
  24. package/configure/src/__tests__/__snapshots__/hotspot-container.test.js.snap +2 -1
  25. package/configure/src/__tests__/__snapshots__/root.test.js.snap +56 -4
  26. package/configure/src/__tests__/hotspot-container.test.js +98 -71
  27. package/configure/src/__tests__/hotspot-drawable.test.js +48 -49
  28. package/configure/src/__tests__/index.test.js +28 -51
  29. package/configure/src/__tests__/root.test.js +162 -82
  30. package/configure/src/__tests__/utils.test.js +112 -98
  31. package/configure/src/button.jsx +4 -4
  32. package/configure/src/defaults.js +36 -18
  33. package/configure/src/hotspot-container.jsx +107 -97
  34. package/configure/src/hotspot-drawable.jsx +59 -53
  35. package/configure/src/hotspot-palette.jsx +12 -25
  36. package/configure/src/hotspot-polygon.jsx +20 -22
  37. package/configure/src/hotspot-rectangle.jsx +5 -15
  38. package/configure/src/index.js +32 -18
  39. package/configure/src/root.jsx +120 -51
  40. package/configure/src/upload-control.jsx +9 -20
  41. package/configure/src/utils.js +51 -22
  42. package/controller/CHANGELOG.md +72 -0
  43. package/controller/lib/defaults.js +2 -2
  44. package/controller/lib/defaults.js.map +1 -1
  45. package/controller/lib/index.js +57 -9
  46. package/controller/lib/index.js.map +1 -1
  47. package/controller/lib/utils.js.map +1 -1
  48. package/controller/package.json +2 -2
  49. package/controller/src/__tests__/index.test.js +99 -55
  50. package/controller/src/defaults.js +5 -9
  51. package/controller/src/index.js +58 -34
  52. package/controller/src/utils.js +9 -6
  53. package/docs/config-schema.json +217 -0
  54. package/docs/config-schema.json.md +169 -0
  55. package/docs/demo/config.js +2 -2
  56. package/docs/demo/generate.js +54 -35
  57. package/docs/demo/session.js +2 -2
  58. package/docs/pie-schema.json +59 -0
  59. package/docs/pie-schema.json.md +47 -0
  60. package/lib/hotspot/container.js +44 -7
  61. package/lib/hotspot/container.js.map +1 -1
  62. package/lib/hotspot/icons.js.map +1 -1
  63. package/lib/hotspot/image.js +35 -8
  64. package/lib/hotspot/image.js.map +1 -1
  65. package/lib/hotspot/index.js +72 -18
  66. package/lib/hotspot/index.js.map +1 -1
  67. package/lib/hotspot/polygon.js +51 -32
  68. package/lib/hotspot/polygon.js.map +1 -1
  69. package/lib/hotspot/rectangle.js +51 -32
  70. package/lib/hotspot/rectangle.js.map +1 -1
  71. package/lib/index.js +4 -1
  72. package/lib/index.js.map +1 -1
  73. package/lib/session-updater.js.map +1 -1
  74. package/package.json +7 -4
  75. package/src/__tests__/__snapshots__/{container-test.jsx.snap → container.test.jsx.snap} +8 -0
  76. package/src/__tests__/__snapshots__/image.test.jsx.snap +43 -0
  77. package/src/__tests__/__snapshots__/{polygon-test.jsx.snap → polygon.test.jsx.snap} +11 -0
  78. package/src/__tests__/__snapshots__/{rectangle-test.jsx.snap → rectangle.test.jsx.snap} +11 -0
  79. package/src/__tests__/container.test.jsx +214 -0
  80. package/src/__tests__/{image-test.jsx → image.test.jsx} +10 -2
  81. package/src/__tests__/polygon.test.jsx +235 -0
  82. package/src/__tests__/rectangle.test.jsx +237 -0
  83. package/src/__tests__/{session-updater-test.jsx → session-updater.test.jsx} +22 -31
  84. package/src/hotspot/container.jsx +60 -23
  85. package/src/hotspot/icons.js +4 -2
  86. package/src/hotspot/image.jsx +26 -13
  87. package/src/hotspot/index.jsx +73 -33
  88. package/src/hotspot/polygon.jsx +51 -40
  89. package/src/hotspot/rectangle.jsx +51 -40
  90. package/src/index.js +10 -18
  91. package/src/session-updater.js +1 -1
  92. package/src/__tests__/__snapshots__/image-test.jsx.snap +0 -21
  93. package/src/__tests__/container-test.jsx +0 -143
  94. package/src/__tests__/polygon-test.jsx +0 -76
  95. package/src/__tests__/rectangle-test.jsx +0 -77
@@ -3,6 +3,431 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.3.0...@pie-element/hotspot-configure@5.4.0) (2023-01-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
12
+
13
+
14
+
15
+
16
+
17
+ # [5.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.6...@pie-element/hotspot-configure@5.3.0) (2023-01-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * update pie-libs ([b174476](https://github.com/pie-framework/pie-elements/commit/b174476729119a0689f1f8adfc8c235246676cab))
23
+ * update pie-libs ([f72c3c8](https://github.com/pie-framework/pie-elements/commit/f72c3c8d8bc9bbf061bb81502317157a63c22972))
24
+ * update pie-libs ([8490729](https://github.com/pie-framework/pie-elements/commit/8490729a2389d36fd3968f0806119fde96577842))
25
+ * **hotspot:** added configuration prop to hide the settings panel PD-1999 ([55f4f86](https://github.com/pie-framework/pie-elements/commit/55f4f868be0321e944d3b4c9d9ed6c96adfa2886))
26
+
27
+
28
+
29
+
30
+
31
+ ## [5.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.5...@pie-element/hotspot-configure@5.2.6) (2022-12-21)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * updated pie-libs ([8cb5b90](https://github.com/pie-framework/pie-elements/commit/8cb5b90d501ccbdf5ffd764e6555faa48b8f54d6))
37
+
38
+
39
+
40
+
41
+
42
+ ## [5.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.4...@pie-element/hotspot-configure@5.2.5) (2022-12-20)
43
+
44
+
45
+ ### Bug Fixes
46
+
47
+ * updated pie-libs ([6549302](https://github.com/pie-framework/pie-elements/commit/65493026fbf356c5ab752ae6a14d961d4b256368))
48
+
49
+
50
+
51
+
52
+
53
+ ## [5.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.3...@pie-element/hotspot-configure@5.2.4) (2022-12-07)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
59
+ * update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
60
+ * updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
61
+ * updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
62
+ * updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
63
+ * updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
64
+
65
+
66
+
67
+
68
+
69
+ ## [5.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.2...@pie-element/hotspot-configure@5.2.3) (2022-11-15)
70
+
71
+ **Note:** Version bump only for package @pie-element/hotspot-configure
72
+
73
+
74
+
75
+
76
+
77
+ ## [5.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.1...@pie-element/hotspot-configure@5.2.2) (2022-11-11)
78
+
79
+
80
+ ### Bug Fixes
81
+
82
+ * **hotspot:** add sanity checks for withRubric ([b4d1fb8](https://github.com/pie-framework/pie-elements/commit/b4d1fb8089b87ff64759cea4add7ab870e702e0e))
83
+
84
+
85
+
86
+
87
+
88
+ ## [5.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.2.0...@pie-element/hotspot-configure@5.2.1) (2022-10-31)
89
+
90
+ **Note:** Version bump only for package @pie-element/hotspot-configure
91
+
92
+
93
+
94
+
95
+
96
+ # [5.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.9...@pie-element/hotspot-configure@5.2.0) (2022-10-17)
97
+
98
+
99
+ ### Bug Fixes
100
+
101
+ * update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
102
+
103
+
104
+ ### Features
105
+
106
+ * set withRubric to false in item default configurations. Set rubricEnabled to true if it's enabled for drawing-response and extended-text-entry ([a209057](https://github.com/pie-framework/pie-elements/commit/a209057f5a3fa5438efc8595453c89c11959a8f5))
107
+ * update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
108
+ * **hotspot:** add pie-api config PD-23 ([0791093](https://github.com/pie-framework/pie-elements/commit/0791093b9f36ab922de1af69e781d1856d3477be))
109
+ * **hotspot:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2100 ([fbddb7a](https://github.com/pie-framework/pie-elements/commit/fbddb7a0c11841ffd1fd4f93b77dc5331ac225fb))
110
+ * **hotspot:** updated snapshot PD-2100 ([1af1e2a](https://github.com/pie-framework/pie-elements/commit/1af1e2af10b591bd61c02c8cc651035587a418ca))
111
+ * enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
112
+ * **hotspot:** add uploadSoundSupport property PD-23-updated ([b438dfb](https://github.com/pie-framework/pie-elements/commit/b438dfbd5840081f0931bb50badf218b0385d62b))
113
+
114
+
115
+
116
+
117
+
118
+ ## [5.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.8...@pie-element/hotspot-configure@5.1.9) (2022-09-29)
119
+
120
+ **Note:** Version bump only for package @pie-element/hotspot-configure
121
+
122
+
123
+
124
+
125
+
126
+ ## [5.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.7...@pie-element/hotspot-configure@5.1.8) (2022-09-14)
127
+
128
+ **Note:** Version bump only for package @pie-element/hotspot-configure
129
+
130
+
131
+
132
+
133
+
134
+ ## [5.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.6...@pie-element/hotspot-configure@5.1.7) (2022-08-31)
135
+
136
+ **Note:** Version bump only for package @pie-element/hotspot-configure
137
+
138
+
139
+
140
+
141
+
142
+ ## [5.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.5...@pie-element/hotspot-configure@5.1.6) (2022-08-16)
143
+
144
+ **Note:** Version bump only for package @pie-element/hotspot-configure
145
+
146
+
147
+
148
+
149
+
150
+ ## [5.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.4...@pie-element/hotspot-configure@5.1.5) (2022-08-08)
151
+
152
+ **Note:** Version bump only for package @pie-element/hotspot-configure
153
+
154
+
155
+
156
+
157
+
158
+ ## [5.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.3...@pie-element/hotspot-configure@5.1.4) (2022-08-02)
159
+
160
+ **Note:** Version bump only for package @pie-element/hotspot-configure
161
+
162
+
163
+
164
+
165
+
166
+ ## [5.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.2...@pie-element/hotspot-configure@5.1.3) (2022-07-22)
167
+
168
+ **Note:** Version bump only for package @pie-element/hotspot-configure
169
+
170
+
171
+
172
+
173
+
174
+ ## [5.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.1...@pie-element/hotspot-configure@5.1.2) (2022-07-20)
175
+
176
+ **Note:** Version bump only for package @pie-element/hotspot-configure
177
+
178
+
179
+
180
+
181
+
182
+ ## [5.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.1.0...@pie-element/hotspot-configure@5.1.1) (2022-07-19)
183
+
184
+ **Note:** Version bump only for package @pie-element/hotspot-configure
185
+
186
+
187
+
188
+
189
+
190
+ # [5.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@5.0.0...@pie-element/hotspot-configure@5.1.0) (2022-06-28)
191
+
192
+
193
+ ### Features
194
+
195
+ * **hotspot:** add maxImageWidth and maxImageHeight props PD-1801 ([8325bc1](https://github.com/pie-framework/pie-elements/commit/8325bc1bb9014027349bfab863b56bb1d519e5ca))
196
+
197
+
198
+
199
+
200
+
201
+ # [5.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.7.4...@pie-element/hotspot-configure@5.0.0) (2022-06-28)
202
+
203
+
204
+ ### chore
205
+
206
+ * Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
207
+
208
+
209
+ ### BREAKING CHANGES
210
+
211
+ * Image percent buttons were removed from toolbar.
212
+ New properties maxImageWidth and maxImageHeight were added.
213
+
214
+
215
+
216
+
217
+
218
+ ## [4.7.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.7.3...@pie-element/hotspot-configure@4.7.4) (2022-06-13)
219
+
220
+ **Note:** Version bump only for package @pie-element/hotspot-configure
221
+
222
+
223
+
224
+
225
+
226
+ ## [4.7.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.7.2...@pie-element/hotspot-configure@4.7.3) (2022-05-30)
227
+
228
+ **Note:** Version bump only for package @pie-element/hotspot-configure
229
+
230
+
231
+
232
+
233
+
234
+ ## [4.7.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.7.1...@pie-element/hotspot-configure@4.7.2) (2022-05-16)
235
+
236
+ **Note:** Version bump only for package @pie-element/hotspot-configure
237
+
238
+
239
+
240
+
241
+
242
+ ## [4.7.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.7.0...@pie-element/hotspot-configure@4.7.1) (2022-05-09)
243
+
244
+ **Note:** Version bump only for package @pie-element/hotspot-configure
245
+
246
+
247
+
248
+
249
+
250
+ # [4.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.16...@pie-element/hotspot-configure@4.7.0) (2022-05-03)
251
+
252
+
253
+ ### Features
254
+
255
+ * **hotspot:** PD-1703 implement ui/ux for item validation ([a962183](https://github.com/pie-framework/pie-elements/commit/a962183d0941936b69a95b32002135507d769170))
256
+
257
+
258
+
259
+
260
+
261
+ ## [4.6.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.15...@pie-element/hotspot-configure@4.6.16) (2022-04-12)
262
+
263
+ **Note:** Version bump only for package @pie-element/hotspot-configure
264
+
265
+
266
+
267
+
268
+
269
+ ## [4.6.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.14...@pie-element/hotspot-configure@4.6.15) (2022-03-28)
270
+
271
+ **Note:** Version bump only for package @pie-element/hotspot-configure
272
+
273
+
274
+
275
+
276
+
277
+ ## [4.6.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.13...@pie-element/hotspot-configure@4.6.14) (2022-03-22)
278
+
279
+ **Note:** Version bump only for package @pie-element/hotspot-configure
280
+
281
+
282
+
283
+
284
+
285
+ ## [4.6.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.12...@pie-element/hotspot-configure@4.6.13) (2022-03-08)
286
+
287
+ **Note:** Version bump only for package @pie-element/hotspot-configure
288
+
289
+
290
+
291
+
292
+
293
+ ## [4.6.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.11...@pie-element/hotspot-configure@4.6.12) (2022-03-08)
294
+
295
+ **Note:** Version bump only for package @pie-element/hotspot-configure
296
+
297
+
298
+
299
+
300
+
301
+ ## [4.6.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.10...@pie-element/hotspot-configure@4.6.11) (2022-02-21)
302
+
303
+ **Note:** Version bump only for package @pie-element/hotspot-configure
304
+
305
+
306
+
307
+
308
+
309
+ ## [4.6.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.9...@pie-element/hotspot-configure@4.6.10) (2022-02-04)
310
+
311
+ **Note:** Version bump only for package @pie-element/hotspot-configure
312
+
313
+
314
+
315
+
316
+
317
+ ## [4.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.8...@pie-element/hotspot-configure@4.6.9) (2022-01-24)
318
+
319
+ **Note:** Version bump only for package @pie-element/hotspot-configure
320
+
321
+
322
+
323
+
324
+
325
+ ## [4.6.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.7...@pie-element/hotspot-configure@4.6.8) (2022-01-10)
326
+
327
+ **Note:** Version bump only for package @pie-element/hotspot-configure
328
+
329
+
330
+
331
+
332
+
333
+ ## [4.6.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.6...@pie-element/hotspot-configure@4.6.7) (2021-12-23)
334
+
335
+ **Note:** Version bump only for package @pie-element/hotspot-configure
336
+
337
+
338
+
339
+
340
+
341
+ ## [4.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.4...@pie-element/hotspot-configure@4.6.5) (2021-12-13)
342
+
343
+ **Note:** Version bump only for package @pie-element/hotspot-configure
344
+
345
+
346
+
347
+
348
+
349
+ ## [4.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.1...@pie-element/hotspot-configure@4.6.2) (2021-11-29)
350
+
351
+ **Note:** Version bump only for package @pie-element/hotspot-configure
352
+
353
+
354
+
355
+
356
+
357
+ ## [4.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.6.0...@pie-element/hotspot-configure@4.6.1) (2021-10-04)
358
+
359
+ **Note:** Version bump only for package @pie-element/hotspot-configure
360
+
361
+
362
+
363
+
364
+
365
+ # [4.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.5.1...@pie-element/hotspot-configure@4.6.0) (2021-09-20)
366
+
367
+
368
+ ### Bug Fixes
369
+
370
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
371
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
372
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
373
+ * **hotspot:** Added a max width when loading a new image PD-261 ([7fcbb8a](https://github.com/pie-framework/pie-elements/commit/7fcbb8a896f73024053a97075d8cb368b8bb6b71))
374
+
375
+
376
+ ### Features
377
+
378
+ * **hotspot:** add the possibility to paste image in authoring PD-478 ([16f1198](https://github.com/pie-framework/pie-elements/commit/16f1198ea5a839759f626927f1b65b5483a9aa85))
379
+
380
+
381
+
382
+
383
+
384
+ ## [4.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.5.0...@pie-element/hotspot-configure@4.5.1) (2021-09-01)
385
+
386
+ **Note:** Version bump only for package @pie-element/hotspot-configure
387
+
388
+
389
+
390
+
391
+
392
+ # [4.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.4.25...@pie-element/hotspot-configure@4.5.0) (2021-08-05)
393
+
394
+
395
+ ### Features
396
+
397
+ * **hotspot:** Added option to set toolbar editor position ([a36faea](https://github.com/pie-framework/pie-elements/commit/a36faea1cc0cb9ed5574fcb860941eea298b1cd3))
398
+ * **hotspot:** toolbar editor position - change double quotes into single quotes ([722ec64](https://github.com/pie-framework/pie-elements/commit/722ec64c1f87f69f2c086e80923d0c137b4aad39))
399
+
400
+
401
+
402
+
403
+
404
+ ## [4.4.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.4.23...@pie-element/hotspot-configure@4.4.25) (2021-08-05)
405
+
406
+
407
+ ### Bug Fixes
408
+
409
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
410
+
411
+
412
+
413
+
414
+
415
+ ## [4.4.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.4.22...@pie-element/hotspot-configure@4.4.23) (2021-06-29)
416
+
417
+ **Note:** Version bump only for package @pie-element/hotspot-configure
418
+
419
+
420
+
421
+
422
+
423
+ ## [4.4.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.4.21...@pie-element/hotspot-configure@4.4.22) (2021-04-07)
424
+
425
+ **Note:** Version bump only for package @pie-element/hotspot-configure
426
+
427
+
428
+
429
+
430
+
6
431
  ## [4.4.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-configure@4.4.18...@pie-element/hotspot-configure@4.4.21) (2021-03-03)
7
432
 
8
433
  **Note:** Version bump only for package @pie-element/hotspot-configure
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/button.jsx"],"names":["RawButton","classes","className","label","onClick","disabled","addButton","propTypes","PropTypes","object","isRequired","string","bool","func","defaultProps","styles","marginLeft","ButtonStyled"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,MAAYC,SAAZ,QAAYA,SAAZ;AAAA,MAAuBC,KAAvB,QAAuBA,KAAvB;AAAA,MAA8BC,OAA9B,QAA8BA,OAA9B;AAAA,MAAuCC,QAAvC,QAAuCA,QAAvC;AAAA,sBAChB,gCAAC,kBAAD;AACE,IAAA,OAAO,EAAED,OADX;AAEE,IAAA,QAAQ,EAAEC,QAFZ;AAGE,IAAA,SAAS,EAAE,4BAAWJ,OAAO,CAACK,SAAnB,EAA8BJ,SAA9B,CAHb;AAIE,IAAA,IAAI,EAAC,OAJP;AAKE,IAAA,OAAO,EAAC,WALV;AAME,IAAA,KAAK,EAAC;AANR,KAQGC,KARH,CADgB;AAAA,CAAlB;;AAaAH,SAAS,CAACO,SAAV,GAAsB;AACpBN,EAAAA,OAAO,EAAEO,sBAAUC,MAAV,CAAiBC,UADN;AAEpBR,EAAAA,SAAS,EAAEM,sBAAUG,MAFD;AAGpBN,EAAAA,QAAQ,EAAEG,sBAAUI,IAHA;AAIpBT,EAAAA,KAAK,EAAEK,sBAAUG,MAJG;AAKpBP,EAAAA,OAAO,EAAEI,sBAAUK;AALC,CAAtB;AAQAb,SAAS,CAACc,YAAV,GAAyB;AACvBZ,EAAAA,SAAS,EAAE,EADY;AAEvBG,EAAAA,QAAQ,EAAE,KAFa;AAGvBF,EAAAA,KAAK,EAAE,KAHgB;AAIvBC,EAAAA,OAAO,EAAE,mBAAM,CAAE;AAJM,CAAzB;;AAOA,IAAMW,MAAM,GAAG,SAATA,MAAS;AAAA,SAAO;AACpBT,IAAAA,SAAS,EAAE;AACTU,MAAAA,UAAU,EAAE;AADH;AADS,GAAP;AAAA,CAAf;;AAMA,IAAMC,YAAY,GAAG,wBAAWF,MAAX,EAAmBf,SAAnB,CAArB;eAEeiB,Y","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport Button from '@material-ui/core/Button';\n\nconst RawButton = ({ classes, className, label, onClick, disabled }) => (\n <Button\n onClick={onClick}\n disabled={disabled}\n className={classNames(classes.addButton, className)}\n size=\"small\"\n variant=\"contained\"\n color=\"default\"\n >\n {label}\n </Button>\n);\n\nRawButton.propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n label: PropTypes.string,\n onClick: PropTypes.func\n};\n\nRawButton.defaultProps = {\n className: '',\n disabled: false,\n label: 'Add',\n onClick: () => {}\n};\n\nconst styles = () => ({\n addButton: {\n marginLeft: 8\n }\n});\n\nconst ButtonStyled = withStyles(styles)(RawButton);\n\nexport default ButtonStyled;\n"],"file":"button.js"}
1
+ {"version":3,"sources":["../src/button.jsx"],"names":["RawButton","classes","className","label","onClick","disabled","addButton","propTypes","PropTypes","object","isRequired","string","bool","func","defaultProps","styles","marginLeft","ButtonStyled"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,MAAYC,SAAZ,QAAYA,SAAZ;AAAA,MAAuBC,KAAvB,QAAuBA,KAAvB;AAAA,MAA8BC,OAA9B,QAA8BA,OAA9B;AAAA,MAAuCC,QAAvC,QAAuCA,QAAvC;AAAA,sBAChB,gCAAC,kBAAD;AACE,IAAA,OAAO,EAAED,OADX;AAEE,IAAA,QAAQ,EAAEC,QAFZ;AAGE,IAAA,SAAS,EAAE,4BAAWJ,OAAO,CAACK,SAAnB,EAA8BJ,SAA9B,CAHb;AAIE,IAAA,IAAI,EAAC,OAJP;AAKE,IAAA,OAAO,EAAC,WALV;AAME,IAAA,KAAK,EAAC;AANR,KAQGC,KARH,CADgB;AAAA,CAAlB;;AAaAH,SAAS,CAACO,SAAV,GAAsB;AACpBN,EAAAA,OAAO,EAAEO,sBAAUC,MAAV,CAAiBC,UADN;AAEpBR,EAAAA,SAAS,EAAEM,sBAAUG,MAFD;AAGpBN,EAAAA,QAAQ,EAAEG,sBAAUI,IAHA;AAIpBT,EAAAA,KAAK,EAAEK,sBAAUG,MAJG;AAKpBP,EAAAA,OAAO,EAAEI,sBAAUK;AALC,CAAtB;AAQAb,SAAS,CAACc,YAAV,GAAyB;AACvBZ,EAAAA,SAAS,EAAE,EADY;AAEvBG,EAAAA,QAAQ,EAAE,KAFa;AAGvBF,EAAAA,KAAK,EAAE,KAHgB;AAIvBC,EAAAA,OAAO,EAAE,mBAAM,CAAE;AAJM,CAAzB;;AAOA,IAAMW,MAAM,GAAG,SAATA,MAAS;AAAA,SAAO;AACpBT,IAAAA,SAAS,EAAE;AACTU,MAAAA,UAAU,EAAE;AADH;AADS,GAAP;AAAA,CAAf;;AAMA,IAAMC,YAAY,GAAG,wBAAWF,MAAX,EAAmBf,SAAnB,CAArB;eAEeiB,Y","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport Button from '@material-ui/core/Button';\n\nconst RawButton = ({ classes, className, label, onClick, disabled }) => (\n <Button\n onClick={onClick}\n disabled={disabled}\n className={classNames(classes.addButton, className)}\n size=\"small\"\n variant=\"contained\"\n color=\"default\"\n >\n {label}\n </Button>\n);\n\nRawButton.propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n label: PropTypes.string,\n onClick: PropTypes.func,\n};\n\nRawButton.defaultProps = {\n className: '',\n disabled: false,\n label: 'Add',\n onClick: () => {},\n};\n\nconst styles = () => ({\n addButton: {\n marginLeft: 8,\n },\n});\n\nconst ButtonStyled = withStyles(styles)(RawButton);\n\nexport default ButtonStyled;\n"],"file":"button.js"}
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _default = {
8
8
  model: {
9
9
  prompt: 'This is the question prompt',
10
+ toolbarEditorPosition: 'bottom',
10
11
  promptEnabled: true,
11
12
  imageUrl: '',
12
13
  shapes: {
@@ -19,8 +20,8 @@ var _default = {
19
20
  height: 0,
20
21
  width: 0
21
22
  },
22
- hotspotColor: 'rgba(137, 183, 244, 0.65)',
23
- hotspotList: ['rgba(137, 183, 244, 0.65)'],
23
+ hotspotColor: 'rgba(137, 183, 244, 0.25)',
24
+ hotspotList: ['rgba(137, 183, 244, 0.25)'],
24
25
  outlineColor: 'blue',
25
26
  outlineList: ['blue'],
26
27
  rationaleEnabled: true,
@@ -45,6 +46,12 @@ var _default = {
45
46
  settings: true,
46
47
  label: 'Prompt'
47
48
  },
49
+ settingsPanelDisabled: false,
50
+ spellCheck: {
51
+ label: 'Spellcheck',
52
+ settings: false,
53
+ enabled: true
54
+ },
48
55
  teacherInstructions: {
49
56
  settings: true,
50
57
  label: 'Teacher Instructions'
@@ -53,6 +60,21 @@ var _default = {
53
60
  settings: false,
54
61
  enabled: true,
55
62
  label: 'Preserve aspect ratio'
63
+ },
64
+ minShapes: 2,
65
+ maxImageWidth: {
66
+ teacherInstructions: 300,
67
+ prompt: 300,
68
+ rationale: 300
69
+ },
70
+ maxImageHeight: {
71
+ teacherInstructions: 300,
72
+ prompt: 300,
73
+ rationale: 300
74
+ },
75
+ withRubric: {
76
+ settings: false,
77
+ label: 'Add Rubric'
56
78
  }
57
79
  }
58
80
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/defaults.js"],"names":["model","prompt","promptEnabled","imageUrl","shapes","rectangles","polygons","multipleCorrect","partialScoring","dimensions","height","width","hotspotColor","hotspotList","outlineColor","outlineList","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","strokeWidth","configuration","settings","label","rationale","teacherInstructions","preserveAspectRatio","enabled"],"mappings":";;;;;;eAAe;AACbA,EAAAA,K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,EAAE,KADS;AAEnBK,MAAAA,OAAO,EAAE,IAFU;AAGnBJ,MAAAA,KAAK,EAAE;AAHY;AArBR;AA5BF,C","sourcesContent":["export default {\n model: {\n prompt: 'This is the question prompt',\n promptEnabled: true,\n imageUrl: '',\n shapes: {\n rectangles: [],\n polygons: []\n },\n multipleCorrect: true,\n partialScoring: false,\n dimensions: {\n height: 0,\n width: 0\n },\n hotspotColor: 'rgba(137, 183, 244, 0.65)',\n hotspotList: [\n 'rgba(137, 183, 244, 0.65)'\n ],\n outlineColor: 'blue',\n outlineList: [\n 'blue'\n ],\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n strokeWidth: 5\n },\n configuration: {\n multipleCorrect: {\n settings: true,\n label: 'Multiple Correct Responses'\n },\n partialScoring: {\n settings: false,\n label: 'Allow Partial Scoring'\n },\n rationale: {\n settings: true,\n label: 'Rationale'\n },\n prompt: {\n settings: true,\n label: 'Prompt'\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions'\n },\n preserveAspectRatio: {\n settings: false,\n enabled: true,\n label: 'Preserve aspect ratio'\n }\n }\n};\n"],"file":"defaults.js"}
1
+ {"version":3,"sources":["../src/defaults.js"],"names":["model","prompt","toolbarEditorPosition","promptEnabled","imageUrl","shapes","rectangles","polygons","multipleCorrect","partialScoring","dimensions","height","width","hotspotColor","hotspotList","outlineColor","outlineList","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","strokeWidth","configuration","settings","label","rationale","settingsPanelDisabled","spellCheck","enabled","teacherInstructions","preserveAspectRatio","minShapes","maxImageWidth","maxImageHeight","withRubric"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,6BADH;AAELC,IAAAA,qBAAqB,EAAE,QAFlB;AAGLC,IAAAA,aAAa,EAAE,IAHV;AAILC,IAAAA,QAAQ,EAAE,EAJL;AAKLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,UA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AE;AACnBP,MAAAA,QAAQ,EAAE,KADS;AAEnBK,MAAAA,OAAO,EAAE,IAFU;AAGnBJ,MAAAA,KAAK,EAAE;AAHY,KA3BR;AAgCbO,IAAAA,SAAS,EAAE,CAhCE;AAiCbC,IAAAA,aAAa,EAAE;AACbH,MAAAA,mBAAmB,EAAE,GADR;AAEb3B,MAAAA,MAAM,EAAE,GAFK;AAGbuB,MAAAA,SAAS,EAAE;AAHE,KAjCF;AAsCbQ,IAAAA,cAAc,EAAE;AACdJ,MAAAA,mBAAmB,EAAE,GADP;AAEd3B,MAAAA,MAAM,EAAE,GAFM;AAGduB,MAAAA,SAAS,EAAE;AAHG,KAtCH;AA2CbS,IAAAA,UAAU,EAAE;AACVX,MAAAA,QAAQ,EAAE,KADA;AAEVC,MAAAA,KAAK,EAAE;AAFG;AA3CC;AAzBF,C","sourcesContent":["export default {\n model: {\n prompt: 'This is the question prompt',\n toolbarEditorPosition: 'bottom',\n promptEnabled: true,\n imageUrl: '',\n shapes: {\n rectangles: [],\n polygons: [],\n },\n multipleCorrect: true,\n partialScoring: false,\n dimensions: {\n height: 0,\n width: 0,\n },\n hotspotColor: 'rgba(137, 183, 244, 0.25)',\n hotspotList: ['rgba(137, 183, 244, 0.25)'],\n outlineColor: 'blue',\n outlineList: ['blue'],\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n strokeWidth: 5,\n },\n configuration: {\n multipleCorrect: {\n settings: true,\n label: 'Multiple Correct Responses',\n },\n partialScoring: {\n settings: false,\n label: 'Allow Partial Scoring',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n preserveAspectRatio: {\n settings: false,\n enabled: true,\n label: 'Preserve aspect ratio',\n },\n minShapes: 2,\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n },\n};\n"],"file":"defaults.js"}