@pie-element/math-inline 5.6.0 → 5.6.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 +509 -0
  2. package/configure/CHANGELOG.md +471 -0
  3. package/configure/lib/configure.js +73 -31
  4. package/configure/lib/configure.js.map +1 -1
  5. package/configure/lib/defaults.js +37 -2
  6. package/configure/lib/defaults.js.map +1 -1
  7. package/configure/lib/general-config-block.js +123 -29
  8. package/configure/lib/general-config-block.js.map +1 -1
  9. package/configure/lib/index.js +31 -3
  10. package/configure/lib/index.js.map +1 -1
  11. package/configure/lib/response.js +90 -37
  12. package/configure/lib/response.js.map +1 -1
  13. package/configure/lib/utils.js +18 -1
  14. package/configure/lib/utils.js.map +1 -1
  15. package/configure/package.json +7 -8
  16. package/controller/CHANGELOG.md +145 -0
  17. package/controller/lib/defaults.js +2 -1
  18. package/controller/lib/defaults.js.map +1 -1
  19. package/controller/lib/index.js +148 -131
  20. package/controller/lib/index.js.map +1 -1
  21. package/controller/lib/utils.js.map +1 -1
  22. package/controller/package.json +4 -4
  23. package/docs/config-schema.json +168 -0
  24. package/docs/config-schema.json.md +132 -1
  25. package/docs/demo/config.js +2 -2
  26. package/docs/demo/generate.js +20 -16
  27. package/docs/demo/session.js +1 -1
  28. package/docs/pie-schema.json +128 -3
  29. package/docs/pie-schema.json.md +107 -3
  30. package/lib/index.js +7 -4
  31. package/lib/index.js.map +1 -1
  32. package/lib/main.js +230 -55
  33. package/lib/main.js.map +1 -1
  34. package/lib/print.js +133 -0
  35. package/lib/print.js.map +1 -0
  36. package/lib/simple-question-block.js +50 -38
  37. package/lib/simple-question-block.js.map +1 -1
  38. package/lib/utils.js.map +1 -1
  39. package/package.json +13 -8
@@ -3,6 +3,477 @@
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
+ # [6.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.3.0...@pie-element/math-inline-configure@6.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
+ # [6.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.6...@pie-element/math-inline-configure@6.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
+ * **math-inline:** added configuration prop to hide the settings panel PD-1999 ([bd9d932](https://github.com/pie-framework/pie-elements/commit/bd9d932ad24db60e53ebb2b988977afcaf7ef668))
26
+
27
+
28
+
29
+
30
+
31
+ ## [6.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.5...@pie-element/math-inline-configure@6.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
+ ## [6.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.4...@pie-element/math-inline-configure@6.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
+ ## [6.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.3...@pie-element/math-inline-configure@6.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
+ ## [6.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.2...@pie-element/math-inline-configure@6.2.3) (2022-11-15)
70
+
71
+ **Note:** Version bump only for package @pie-element/math-inline-configure
72
+
73
+
74
+
75
+
76
+
77
+ ## [6.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.1...@pie-element/math-inline-configure@6.2.2) (2022-11-11)
78
+
79
+
80
+ ### Bug Fixes
81
+
82
+ * **math-inline:** add sanity checks for withRubric ([ede846e](https://github.com/pie-framework/pie-elements/commit/ede846ededcb531df4f68a35e007420051f1992d))
83
+
84
+
85
+
86
+
87
+
88
+ ## [6.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.0...@pie-element/math-inline-configure@6.2.1) (2022-10-31)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * **math-inline:** fix validation ui for alternate responses PD-2055 ([ac0273d](https://github.com/pie-framework/pie-elements/commit/ac0273d975b44c558e2ea3555c6787bcac04ec71))
94
+
95
+
96
+
97
+
98
+
99
+ # [6.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.9...@pie-element/math-inline-configure@6.2.0) (2022-10-17)
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
105
+
106
+
107
+ ### Features
108
+
109
+ * 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))
110
+ * update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
111
+ * **math-inline:** add pie-api config PD-23 ([1a61ee3](https://github.com/pie-framework/pie-elements/commit/1a61ee39c184b4252446adf67b3ad38e40a0e39f))
112
+ * **math-inline:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2104 ([543e355](https://github.com/pie-framework/pie-elements/commit/543e3551cc43477edb153c6d97cea7c8c6588235))
113
+ * **math-inline:** updated snapshot PD-2104 ([d1e9c23](https://github.com/pie-framework/pie-elements/commit/d1e9c2307dc108427bacfc106c00b3a5c624e930))
114
+ * enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
115
+ * **math-inline:** add uploadSoundSupport property PD-23-updated ([85f07b0](https://github.com/pie-framework/pie-elements/commit/85f07b0eb5128019d83668783ea8990d0cfb16cd))
116
+
117
+
118
+
119
+
120
+
121
+ ## [6.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.8...@pie-element/math-inline-configure@6.1.9) (2022-09-29)
122
+
123
+ **Note:** Version bump only for package @pie-element/math-inline-configure
124
+
125
+
126
+
127
+
128
+
129
+ ## [6.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.7...@pie-element/math-inline-configure@6.1.8) (2022-09-14)
130
+
131
+ **Note:** Version bump only for package @pie-element/math-inline-configure
132
+
133
+
134
+
135
+
136
+
137
+ ## [6.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.6...@pie-element/math-inline-configure@6.1.7) (2022-08-31)
138
+
139
+ **Note:** Version bump only for package @pie-element/math-inline-configure
140
+
141
+
142
+
143
+
144
+
145
+ ## [6.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.5...@pie-element/math-inline-configure@6.1.6) (2022-08-16)
146
+
147
+ **Note:** Version bump only for package @pie-element/math-inline-configure
148
+
149
+
150
+
151
+
152
+
153
+ ## [6.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.4...@pie-element/math-inline-configure@6.1.5) (2022-08-08)
154
+
155
+ **Note:** Version bump only for package @pie-element/math-inline-configure
156
+
157
+
158
+
159
+
160
+
161
+ ## [6.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.3...@pie-element/math-inline-configure@6.1.4) (2022-08-02)
162
+
163
+
164
+ ### Bug Fixes
165
+
166
+ * **math-inline:** fix validation message tooltip style PD-1897 ([27c0d50](https://github.com/pie-framework/pie-elements/commit/27c0d504a37fee6e0005f217b38b512491e7f307))
167
+
168
+
169
+
170
+
171
+
172
+ ## [6.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.2...@pie-element/math-inline-configure@6.1.3) (2022-07-22)
173
+
174
+ **Note:** Version bump only for package @pie-element/math-inline-configure
175
+
176
+
177
+
178
+
179
+
180
+ ## [6.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.1...@pie-element/math-inline-configure@6.1.2) (2022-07-20)
181
+
182
+ **Note:** Version bump only for package @pie-element/math-inline-configure
183
+
184
+
185
+
186
+
187
+
188
+ ## [6.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.0...@pie-element/math-inline-configure@6.1.1) (2022-07-19)
189
+
190
+ **Note:** Version bump only for package @pie-element/math-inline-configure
191
+
192
+
193
+
194
+
195
+
196
+ # [6.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.0.0...@pie-element/math-inline-configure@6.1.0) (2022-06-28)
197
+
198
+
199
+ ### Bug Fixes
200
+
201
+ * tests ([671b33f](https://github.com/pie-framework/pie-elements/commit/671b33f0abe95d6de6f31851245fc8255981a262))
202
+
203
+
204
+ ### Features
205
+
206
+ * **math-inline:** add maxImageWidth and maxImageHeight props PD-1801 ([24e60e2](https://github.com/pie-framework/pie-elements/commit/24e60e2d5e1bdc90530662f5c11528d67c2545ce))
207
+ * **math-inline:** implement ui/ux for validation PD-1705 ([74b9682](https://github.com/pie-framework/pie-elements/commit/74b968278cbe07fffd6979889bae91d137d334c3))
208
+
209
+
210
+
211
+
212
+
213
+ # [6.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.21...@pie-element/math-inline-configure@6.0.0) (2022-06-28)
214
+
215
+
216
+ ### chore
217
+
218
+ * Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
219
+
220
+
221
+ ### BREAKING CHANGES
222
+
223
+ * Image percent buttons were removed from toolbar.
224
+ New properties maxImageWidth and maxImageHeight were added.
225
+
226
+
227
+
228
+
229
+
230
+ ## [5.6.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.20...@pie-element/math-inline-configure@5.6.21) (2022-06-13)
231
+
232
+ **Note:** Version bump only for package @pie-element/math-inline-configure
233
+
234
+
235
+
236
+
237
+
238
+ ## [5.6.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.19...@pie-element/math-inline-configure@5.6.20) (2022-05-30)
239
+
240
+ **Note:** Version bump only for package @pie-element/math-inline-configure
241
+
242
+
243
+
244
+
245
+
246
+ ## [5.6.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.18...@pie-element/math-inline-configure@5.6.19) (2022-05-16)
247
+
248
+ **Note:** Version bump only for package @pie-element/math-inline-configure
249
+
250
+
251
+
252
+
253
+
254
+ ## [5.6.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.17...@pie-element/math-inline-configure@5.6.18) (2022-05-09)
255
+
256
+ **Note:** Version bump only for package @pie-element/math-inline-configure
257
+
258
+
259
+
260
+
261
+
262
+ ## [5.6.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.16...@pie-element/math-inline-configure@5.6.17) (2022-05-03)
263
+
264
+ **Note:** Version bump only for package @pie-element/math-inline-configure
265
+
266
+
267
+
268
+
269
+
270
+ ## [5.6.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.15...@pie-element/math-inline-configure@5.6.16) (2022-04-12)
271
+
272
+ **Note:** Version bump only for package @pie-element/math-inline-configure
273
+
274
+
275
+
276
+
277
+
278
+ ## [5.6.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.14...@pie-element/math-inline-configure@5.6.15) (2022-03-28)
279
+
280
+ **Note:** Version bump only for package @pie-element/math-inline-configure
281
+
282
+
283
+
284
+
285
+
286
+ ## [5.6.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.13...@pie-element/math-inline-configure@5.6.14) (2022-03-22)
287
+
288
+ **Note:** Version bump only for package @pie-element/math-inline-configure
289
+
290
+
291
+
292
+
293
+
294
+ ## [5.6.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.12...@pie-element/math-inline-configure@5.6.13) (2022-03-08)
295
+
296
+ **Note:** Version bump only for package @pie-element/math-inline-configure
297
+
298
+
299
+
300
+
301
+
302
+ ## [5.6.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.11...@pie-element/math-inline-configure@5.6.12) (2022-03-08)
303
+
304
+ **Note:** Version bump only for package @pie-element/math-inline-configure
305
+
306
+
307
+
308
+
309
+
310
+ ## [5.6.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.10...@pie-element/math-inline-configure@5.6.11) (2022-02-21)
311
+
312
+ **Note:** Version bump only for package @pie-element/math-inline-configure
313
+
314
+
315
+
316
+
317
+
318
+ ## [5.6.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.9...@pie-element/math-inline-configure@5.6.10) (2022-02-04)
319
+
320
+ **Note:** Version bump only for package @pie-element/math-inline-configure
321
+
322
+
323
+
324
+
325
+
326
+ ## [5.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.8...@pie-element/math-inline-configure@5.6.9) (2022-01-24)
327
+
328
+
329
+ ### Bug Fixes
330
+
331
+ * **math-inline:** default editors to grade 8-HS PD-1385 ([54dc77a](https://github.com/pie-framework/pie-elements/commit/54dc77afbbb8c9e3413cb1cb303d5defd72f32d2))
332
+ * **math-inline:** do not hide math editor when focus is still on response template ([ef07786](https://github.com/pie-framework/pie-elements/commit/ef07786306c1d287b648000b0a2a0223cec3760c))
333
+ * **math-inline:** make response area button to fit in response template area ([efaa45d](https://github.com/pie-framework/pie-elements/commit/efaa45d2dc936c8d3dec6158e1e2e22392025e31))
334
+ * **math-inline, extended-text-entry:** use new editors ([2123b8a](https://github.com/pie-framework/pie-elements/commit/2123b8a6d930852a629140053a8459dbc75f281f))
335
+
336
+
337
+
338
+
339
+
340
+ ## [5.6.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.7...@pie-element/math-inline-configure@5.6.8) (2022-01-10)
341
+
342
+ **Note:** Version bump only for package @pie-element/math-inline-configure
343
+
344
+
345
+
346
+
347
+
348
+ ## [5.6.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.6...@pie-element/math-inline-configure@5.6.7) (2021-12-23)
349
+
350
+ **Note:** Version bump only for package @pie-element/math-inline-configure
351
+
352
+
353
+
354
+
355
+
356
+ ## [5.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.4...@pie-element/math-inline-configure@5.6.5) (2021-12-13)
357
+
358
+ **Note:** Version bump only for package @pie-element/math-inline-configure
359
+
360
+
361
+
362
+
363
+
364
+ ## [5.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.1...@pie-element/math-inline-configure@5.6.2) (2021-11-29)
365
+
366
+ **Note:** Version bump only for package @pie-element/math-inline-configure
367
+
368
+
369
+
370
+
371
+
372
+ ## [5.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.4...@pie-element/math-inline-configure@5.6.1) (2021-11-11)
373
+
374
+ **Note:** Version bump only for package @pie-element/math-inline-configure
375
+
376
+
377
+
378
+
379
+
380
+ # [5.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.3...@pie-element/math-inline-configure@5.6.0) (2021-11-11)
381
+
382
+
383
+ ### Bug Fixes
384
+
385
+ * **math-inline:** do not hide math editor when focus is still on response template ([ef07786](https://github.com/pie-framework/pie-elements/commit/ef07786306c1d287b648000b0a2a0223cec3760c))
386
+ * **math-inline:** make response area button to fit in response template area ([efaa45d](https://github.com/pie-framework/pie-elements/commit/efaa45d2dc936c8d3dec6158e1e2e22392025e31))
387
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
388
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
389
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
390
+ * **math-inline:** show add alternate button for both literal and symbolic validation PD-333 ([0cf44c8](https://github.com/pie-framework/pie-elements/commit/0cf44c8bae938eae9d4cf92b341f1cb3085cffd2))
391
+
392
+
393
+ ### Features
394
+
395
+ * **math-inline:** added option to set toolbar editor position ([01282e4](https://github.com/pie-framework/pie-elements/commit/01282e4a07d200f7b81c684a11b51aa1f226ddeb))
396
+ * **math-inline:** Displayed a message when the item has additional correct responses PD-198 - BREAKING CHANGE: Added note property to the model ([7fce264](https://github.com/pie-framework/pie-elements/commit/7fce2649a9c8ddae2eb6643e5d5e9d307233a23b))
397
+ * **math-inline:** toolbar editor position - change double quotes into single quotes ([9a1edfa](https://github.com/pie-framework/pie-elements/commit/9a1edfa965187230b70c915075ab23d33738ea15))
398
+
399
+
400
+
401
+
402
+
403
+
404
+ ## [5.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.3...@pie-element/math-inline-configure@5.5.4) (2021-10-18)
405
+
406
+ **Note:** Version bump only for package @pie-element/math-inline-configure
407
+
408
+
409
+
410
+
411
+
412
+ ## [5.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.2...@pie-element/math-inline-configure@5.5.3) (2021-10-04)
413
+
414
+ **Note:** Version bump only for package @pie-element/math-inline-configure
415
+
416
+
417
+
418
+
419
+
420
+ ## [5.5.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.1...@pie-element/math-inline-configure@5.5.2) (2021-09-20)
421
+
422
+
423
+ ### Bug Fixes
424
+
425
+ * pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
426
+ * Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
427
+ * Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
428
+ * **math-inline:** show add alternate button for both literal and symbolic validation PD-333 ([0cf44c8](https://github.com/pie-framework/pie-elements/commit/0cf44c8bae938eae9d4cf92b341f1cb3085cffd2))
429
+
430
+
431
+
432
+
433
+
434
+ ## [5.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.0...@pie-element/math-inline-configure@5.5.1) (2021-09-01)
435
+
436
+ **Note:** Version bump only for package @pie-element/math-inline-configure
437
+
438
+
439
+
440
+
441
+
442
+ # [5.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.3...@pie-element/math-inline-configure@5.5.0) (2021-08-05)
443
+
444
+
445
+ ### Features
446
+
447
+ * **math-inline:** added option to set toolbar editor position ([01282e4](https://github.com/pie-framework/pie-elements/commit/01282e4a07d200f7b81c684a11b51aa1f226ddeb))
448
+ * **math-inline:** Displayed a message when the item has additional correct responses PD-198 - BREAKING CHANGE: Added note property to the model ([7fce264](https://github.com/pie-framework/pie-elements/commit/7fce2649a9c8ddae2eb6643e5d5e9d307233a23b))
449
+ * **math-inline:** toolbar editor position - change double quotes into single quotes ([9a1edfa](https://github.com/pie-framework/pie-elements/commit/9a1edfa965187230b70c915075ab23d33738ea15))
450
+
451
+
452
+
453
+
454
+
455
+ ## [5.4.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.1...@pie-element/math-inline-configure@5.4.3) (2021-08-05)
456
+
457
+
458
+ ### Bug Fixes
459
+
460
+ * force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
461
+
462
+
463
+
464
+
465
+
466
+ ## [5.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.0...@pie-element/math-inline-configure@5.4.1) (2021-06-29)
467
+
468
+
469
+ ### Bug Fixes
470
+
471
+ * **math-inline:** remove +response button from authoring PD-334 ([#598](https://github.com/pie-framework/pie-elements/issues/598)) ([88ce52b](https://github.com/pie-framework/pie-elements/commit/88ce52b12b2e2d34b51b1a05927a26251b30832f))
472
+
473
+
474
+
475
+
476
+
6
477
  # [5.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.3.5...@pie-element/math-inline-configure@5.4.0) (2021-04-07)
7
478
 
8
479
 
@@ -37,13 +37,13 @@ var _generalConfigBlock = _interopRequireDefault(require("./general-config-block
37
37
 
38
38
  var _utils = require("./utils");
39
39
 
40
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
40
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41
41
 
42
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
42
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
43
43
 
44
44
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
45
45
 
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
46
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
47
 
48
48
  var log = (0, _debug["default"])('@pie-element:math-inline:configure');
49
49
  var Panel = _configUi.settings.Panel,
@@ -114,33 +114,69 @@ var Configure = /*#__PURE__*/function (_React$Component) {
114
114
  imageSupport = _this$props2.imageSupport,
115
115
  onModelChanged = _this$props2.onModelChanged,
116
116
  configuration = _this$props2.configuration,
117
- onConfigurationChanged = _this$props2.onConfigurationChanged;
117
+ onConfigurationChanged = _this$props2.onConfigurationChanged,
118
+ uploadSoundSupport = _this$props2.uploadSoundSupport;
118
119
 
119
120
  var _ref = configuration || {},
121
+ _ref$allowTrailingZer = _ref.allowTrailingZeros,
122
+ allowTrailingZeros = _ref$allowTrailingZer === void 0 ? {} : _ref$allowTrailingZer,
120
123
  _ref$feedback = _ref.feedback,
121
124
  feedback = _ref$feedback === void 0 ? {} : _ref$feedback,
125
+ _ref$ignoreOrder = _ref.ignoreOrder,
126
+ ignoreOrder = _ref$ignoreOrder === void 0 ? {} : _ref$ignoreOrder,
127
+ _ref$maxImageWidth = _ref.maxImageWidth,
128
+ maxImageWidth = _ref$maxImageWidth === void 0 ? {} : _ref$maxImageWidth,
129
+ _ref$maxImageHeight = _ref.maxImageHeight,
130
+ maxImageHeight = _ref$maxImageHeight === void 0 ? {} : _ref$maxImageHeight,
131
+ _ref$prompt = _ref.prompt,
132
+ prompt = _ref$prompt === void 0 ? {} : _ref$prompt,
133
+ _ref$rationale = _ref.rationale,
134
+ rationale = _ref$rationale === void 0 ? {} : _ref$rationale,
122
135
  _ref$responseType = _ref.responseType,
123
136
  responseType = _ref$responseType === void 0 ? {} : _ref$responseType,
124
- _ref$teacherInstructi = _ref.teacherInstructions,
125
- teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi,
137
+ _ref$scoringType = _ref.scoringType,
138
+ scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType,
139
+ settingsPanelDisabled = _ref.settingsPanelDisabled,
140
+ _ref$spellCheck = _ref.spellCheck,
141
+ spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck,
126
142
  _ref$studentInstructi = _ref.studentInstructions,
127
143
  studentInstructions = _ref$studentInstructi === void 0 ? {} : _ref$studentInstructi,
128
- _ref$rationale = _ref.rationale,
129
- rationale = _ref$rationale === void 0 ? {} : _ref$rationale,
130
- _ref$prompt = _ref.prompt,
131
- prompt = _ref$prompt === void 0 ? {} : _ref$prompt,
132
- _ref$scoringType = _ref.scoringType,
133
- scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType;
134
-
135
- log('[render] model', model);
144
+ _ref$teacherInstructi = _ref.teacherInstructions,
145
+ teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi,
146
+ _ref$withRubric = _ref.withRubric,
147
+ withRubric = _ref$withRubric === void 0 ? {} : _ref$withRubric;
136
148
 
137
149
  var _ref2 = model || {},
138
- rationaleEnabled = _ref2.rationaleEnabled,
150
+ feedbackEnabled = _ref2.feedbackEnabled,
139
151
  promptEnabled = _ref2.promptEnabled,
152
+ rationaleEnabled = _ref2.rationaleEnabled,
153
+ spellCheckEnabled = _ref2.spellCheckEnabled,
140
154
  teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled,
141
- feedbackEnabled = _ref2.feedbackEnabled;
155
+ toolbarEditorPosition = _ref2.toolbarEditorPosition;
142
156
 
157
+ log('[render] model', model);
158
+ var toolbarOpts = {
159
+ position: toolbarEditorPosition === 'top' ? 'top' : 'bottom'
160
+ };
161
+ var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
162
+ var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
163
+ var panelSettings = {
164
+ responseType: responseType.settings && radio(responseType.label, [_utils.ResponseTypes.simple, _utils.ResponseTypes.advanced]),
165
+ feedbackEnabled: feedback.settings && toggle(feedback.label),
166
+ promptEnabled: prompt.settings && toggle(prompt.label)
167
+ };
168
+ var panelProperties = {
169
+ teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
170
+ studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
171
+ rationaleEnabled: rationale.settings && toggle(rationale.label),
172
+ spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
173
+ scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),
174
+ 'ignoreOrder.enabled': ignoreOrder.settings && toggle(ignoreOrder.label),
175
+ 'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label),
176
+ rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
177
+ };
143
178
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
179
+ hideSettings: settingsPanelDisabled,
144
180
  settings: /*#__PURE__*/_react["default"].createElement(Panel, {
145
181
  model: model,
146
182
  configuration: configuration,
@@ -151,17 +187,8 @@ var Configure = /*#__PURE__*/function (_React$Component) {
151
187
  return onConfigurationChanged(config);
152
188
  },
153
189
  groups: {
154
- 'Settings': {
155
- responseType: responseType.settings && radio(responseType.label, [_utils.ResponseTypes.simple, _utils.ResponseTypes.advanced]),
156
- feedbackEnabled: feedback.settings && toggle(feedback.label),
157
- 'promptEnabled': prompt.settings && toggle(prompt.label)
158
- },
159
- 'Properties': {
160
- teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
161
- studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
162
- rationaleEnabled: rationale.settings && toggle(rationale.label),
163
- scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
164
- }
190
+ Settings: panelSettings,
191
+ Properties: panelProperties
165
192
  }
166
193
  })
167
194
  }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
@@ -174,17 +201,31 @@ var Configure = /*#__PURE__*/function (_React$Component) {
174
201
  markup: model.teacherInstructions || '',
175
202
  onChange: this.changeTeacherInstructions,
176
203
  imageSupport: imageSupport,
177
- nonEmpty: false
204
+ nonEmpty: false,
205
+ toolbarOpts: toolbarOpts,
206
+ spellCheck: spellCheckEnabled,
207
+ maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
208
+ maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
209
+ uploadSoundSupport: uploadSoundSupport,
210
+ languageCharactersProps: [{
211
+ language: 'spanish'
212
+ }, {
213
+ language: 'special'
214
+ }]
178
215
  })), /*#__PURE__*/_react["default"].createElement(_generalConfigBlock["default"], {
179
216
  imageSupport: imageSupport,
217
+ uploadSoundSupport: uploadSoundSupport,
180
218
  model: model,
181
219
  configuration: configuration,
182
220
  onChange: this.onChange,
183
221
  rationaleEnabled: rationaleEnabled,
184
- promptEnabled: promptEnabled
222
+ promptEnabled: promptEnabled,
223
+ toolbarOpts: toolbarOpts,
224
+ spellCheck: spellCheckEnabled
185
225
  }), feedbackEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.FeedbackConfig, {
186
226
  feedback: model.feedback,
187
- onChange: this.onFeedbackChange
227
+ onChange: this.onFeedbackChange,
228
+ toolbarOpts: toolbarOpts
188
229
  })))));
189
230
  }
190
231
  }]);
@@ -198,7 +239,8 @@ exports.Configure = Configure;
198
239
  classes: _propTypes["default"].object,
199
240
  model: _propTypes["default"].object.isRequired,
200
241
  configuration: _propTypes["default"].object.isRequired,
201
- imageSupport: _propTypes["default"].object
242
+ imageSupport: _propTypes["default"].object,
243
+ uploadSoundSupport: _propTypes["default"].object
202
244
  });
203
245
 
204
246
  var _default = (0, _styles.withStyles)(styles)(Configure);