@pie-element/graphing 3.7.9 → 3.7.10-beta.1443

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.
@@ -3,6 +3,365 @@
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
+ # [4.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.7.0...@pie-element/graphing-configure@4.8.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
+ # [4.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.6.1...@pie-element/graphing-configure@4.7.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
+ * **graphing:** added configuration prop to hide the settings panel PD-1999 ([eb98b1c](https://github.com/pie-framework/pie-elements/commit/eb98b1c63db463d0d4a62dbfea2041e7b30825eb))
26
+
27
+
28
+
29
+
30
+
31
+ ## [4.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.6.0...@pie-element/graphing-configure@4.6.1) (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
+ # [4.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.5.0...@pie-element/graphing-configure@4.6.0) (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
+ ### Features
51
+
52
+ * **graphing:** added support for ungraphable object PD-1687 ([841e018](https://github.com/pie-framework/pie-elements/commit/841e0181d9c2a9034df024ad662904c869b5a312))
53
+
54
+
55
+
56
+
57
+
58
+ # [4.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.4.3...@pie-element/graphing-configure@4.5.0) (2022-12-07)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
64
+ * updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
65
+ * **graphing:** validation PD-1746 ([ef7f03a](https://github.com/pie-framework/pie-elements/commit/ef7f03ae4ce492adbd5144b21b96e7a0ea733658))
66
+ * update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
67
+ * update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
68
+ * updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
69
+ * updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
70
+
71
+
72
+ ### Features
73
+
74
+ * **graphing:** implemented graph validation PD-1746 ([77624af](https://github.com/pie-framework/pie-elements/commit/77624af4fe42732a16123890d4cf0ff1bb6c712d))
75
+
76
+
77
+
78
+
79
+
80
+ ## [4.4.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.4.2...@pie-element/graphing-configure@4.4.3) (2022-11-15)
81
+
82
+ **Note:** Version bump only for package @pie-element/graphing-configure
83
+
84
+
85
+
86
+
87
+
88
+ ## [4.4.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.4.1...@pie-element/graphing-configure@4.4.2) (2022-11-11)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * **graphing:** add sanity checks for withRubric ([607322c](https://github.com/pie-framework/pie-elements/commit/607322cd29b8218c00644040221e9534a817d06e))
94
+
95
+
96
+
97
+
98
+
99
+ ## [4.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.4.0...@pie-element/graphing-configure@4.4.1) (2022-10-31)
100
+
101
+ **Note:** Version bump only for package @pie-element/graphing-configure
102
+
103
+
104
+
105
+
106
+
107
+ # [4.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.3.3...@pie-element/graphing-configure@4.4.0) (2022-10-17)
108
+
109
+
110
+ ### Bug Fixes
111
+
112
+ * render math content in configure part PD-2082 ([1609019](https://github.com/pie-framework/pie-elements/commit/1609019e82d4116b7dddfe3d9f701e4f1268c331))
113
+ * update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
114
+
115
+
116
+ ### Features
117
+
118
+ * 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))
119
+ * update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
120
+ * **graphing:** add pie-api config PD-23 ([885d882](https://github.com/pie-framework/pie-elements/commit/885d8826032476ac660bc20e7a44cd4f6f26f35d))
121
+ * **graphing:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2099 ([a7b78d8](https://github.com/pie-framework/pie-elements/commit/a7b78d8ff0263390723ce21f8547611b3dd1052f))
122
+ * **graphing:** add uploadSoundSupport property PD-23-updated ([e96ca79](https://github.com/pie-framework/pie-elements/commit/e96ca794b8ed1eb4aab47b583caed0e6196d803f))
123
+ * **graphing:** fixed the missing panel due to vars in wrong place PD-2099 ([82d1d0b](https://github.com/pie-framework/pie-elements/commit/82d1d0b403bcc8757399868e1f82e67fefc7d35c))
124
+ * **graphing:** updated snapshot PD-2099 ([9cbcb88](https://github.com/pie-framework/pie-elements/commit/9cbcb88cbce3ba82569cafc74a98f0c843fe291f))
125
+ * enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
126
+
127
+
128
+
129
+
130
+
131
+ ## [4.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.3.2...@pie-element/graphing-configure@4.3.3) (2022-09-29)
132
+
133
+ **Note:** Version bump only for package @pie-element/graphing-configure
134
+
135
+
136
+
137
+
138
+
139
+ ## [4.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.3.1...@pie-element/graphing-configure@4.3.2) (2022-09-14)
140
+
141
+ **Note:** Version bump only for package @pie-element/graphing-configure
142
+
143
+
144
+
145
+
146
+
147
+ ## [4.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.3.0...@pie-element/graphing-configure@4.3.1) (2022-08-31)
148
+
149
+ **Note:** Version bump only for package @pie-element/graphing-configure
150
+
151
+
152
+
153
+
154
+
155
+ # [4.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.2.1...@pie-element/graphing-configure@4.3.0) (2022-08-16)
156
+
157
+
158
+ ### Features
159
+
160
+ * **graphing:** added pixel grid lines support PD-1719 ([d189bbf](https://github.com/pie-framework/pie-elements/commit/d189bbfa7e36fcc2f9a2aeb9dc6b8bb791e378f3))
161
+ * **graphing:** added support for default grid configurations PD-1678 ([4132ebf](https://github.com/pie-framework/pie-elements/commit/4132ebfa1d70da4bdbd35e1cd2ca204483bfa429))
162
+
163
+
164
+
165
+
166
+
167
+ ## [4.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.2.0...@pie-element/graphing-configure@4.2.1) (2022-08-08)
168
+
169
+ **Note:** Version bump only for package @pie-element/graphing-configure
170
+
171
+
172
+
173
+
174
+
175
+ # [4.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.1.3...@pie-element/graphing-configure@4.2.0) (2022-08-02)
176
+
177
+
178
+ ### Features
179
+
180
+ * **graphing:** Added the ability to edit title and labels PD-1605 ([7aac4a0](https://github.com/pie-framework/pie-elements/commit/7aac4a0a2cdd06209912a9edbed6cd1d911c5773))
181
+
182
+
183
+
184
+
185
+
186
+ ## [4.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.1.2...@pie-element/graphing-configure@4.1.3) (2022-07-22)
187
+
188
+ **Note:** Version bump only for package @pie-element/graphing-configure
189
+
190
+
191
+
192
+
193
+
194
+ ## [4.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.1.1...@pie-element/graphing-configure@4.1.2) (2022-07-20)
195
+
196
+ **Note:** Version bump only for package @pie-element/graphing-configure
197
+
198
+
199
+
200
+
201
+
202
+ ## [4.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.1.0...@pie-element/graphing-configure@4.1.1) (2022-07-19)
203
+
204
+ **Note:** Version bump only for package @pie-element/graphing-configure
205
+
206
+
207
+
208
+
209
+
210
+ # [4.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@4.0.0...@pie-element/graphing-configure@4.1.0) (2022-06-28)
211
+
212
+
213
+ ### Bug Fixes
214
+
215
+ * **graphing:** fixed horizontal/vertical gridlines when includeAxes is false PD-1842 ([df43a3b](https://github.com/pie-framework/pie-elements/commit/df43a3b3cf413468be1e98863c1b3f21e0c0b17c))
216
+
217
+
218
+ ### Features
219
+
220
+ * **graphing:** add maxImageWidth and maxImageHeight props PD-1801 ([5d01857](https://github.com/pie-framework/pie-elements/commit/5d0185752ab1f1f9c3cf88232c522c0f742c3cb1))
221
+ * **graphing:** Added default selected graphing tool property for gather PD-1689 ([57b4e4f](https://github.com/pie-framework/pie-elements/commit/57b4e4f75f0addf9f305e30304b0ba5f95de4571))
222
+ * **graphing:** Added delete button for alternates + UI improvements PD-1606 ([1b56013](https://github.com/pie-framework/pie-elements/commit/1b56013ed6b1cd99951821f24b0ccbee3e5758de))
223
+ * **graphing:** added grid setup pannel + refactoring PD-1679 PD-1692 PD-1685 ([54fae9e](https://github.com/pie-framework/pie-elements/commit/54fae9e83521c1f3ef50e75e1f7e2097e6312cd6))
224
+ * **graphing:** added the ability to customize the Grid Setup Panel PD-1688 ([6353019](https://github.com/pie-framework/pie-elements/commit/63530198694f740e70e126884e1512d4c373dd64))
225
+ * **graphing:** added the ability to predefine the available tools PD-1688 ([28b1c96](https://github.com/pie-framework/pie-elements/commit/28b1c96b11476003db261ddb7d2706017c3ffcaa))
226
+ * **graphing:** Changed the consequences of toggling tools on or off PD-1608 ([ff6e28b](https://github.com/pie-framework/pie-elements/commit/ff6e28b9b73b1a1d68c1d741cf6d3ce5f4a45eed))
227
+ * **graphing:** put background shapes tools into a collapsible pannel PD-1693 ([8ce35a5](https://github.com/pie-framework/pie-elements/commit/8ce35a59e999decfda58f09397b5f8005e3249e1))
228
+
229
+
230
+
231
+
232
+
233
+ # [4.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.23...@pie-element/graphing-configure@4.0.0) (2022-06-28)
234
+
235
+
236
+ ### chore
237
+
238
+ * Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
239
+
240
+
241
+ ### BREAKING CHANGES
242
+
243
+ * Image percent buttons were removed from toolbar.
244
+ New properties maxImageWidth and maxImageHeight were added.
245
+
246
+
247
+
248
+
249
+
250
+ ## [3.3.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.22...@pie-element/graphing-configure@3.3.23) (2022-06-13)
251
+
252
+
253
+ ### Bug Fixes
254
+
255
+ * **graphing:** fixed horizontal/vertical gridlines when includeAxes is false PD-1842 (merged with develop) ([52f38ea](https://github.com/pie-framework/pie-elements/commit/52f38ea44fb9be0e438537abb0ecf1e1308a8834))
256
+
257
+
258
+
259
+
260
+
261
+ ## [3.3.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.21...@pie-element/graphing-configure@3.3.22) (2022-06-13)
262
+
263
+ **Note:** Version bump only for package @pie-element/graphing-configure
264
+
265
+
266
+
267
+
268
+
269
+ ## [3.3.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.20...@pie-element/graphing-configure@3.3.21) (2022-05-30)
270
+
271
+ **Note:** Version bump only for package @pie-element/graphing-configure
272
+
273
+
274
+
275
+
276
+
277
+ ## [3.3.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.19...@pie-element/graphing-configure@3.3.20) (2022-05-16)
278
+
279
+ **Note:** Version bump only for package @pie-element/graphing-configure
280
+
281
+
282
+
283
+
284
+
285
+ ## [3.3.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.18...@pie-element/graphing-configure@3.3.19) (2022-05-09)
286
+
287
+ **Note:** Version bump only for package @pie-element/graphing-configure
288
+
289
+
290
+
291
+
292
+
293
+ ## [3.3.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.17...@pie-element/graphing-configure@3.3.18) (2022-05-04)
294
+
295
+ **Note:** Version bump only for package @pie-element/graphing-configure
296
+
297
+
298
+
299
+
300
+
301
+ ## [3.3.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.16...@pie-element/graphing-configure@3.3.17) (2022-05-03)
302
+
303
+ **Note:** Version bump only for package @pie-element/graphing-configure
304
+
305
+
306
+
307
+
308
+
309
+ ## [3.3.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.15...@pie-element/graphing-configure@3.3.16) (2022-04-12)
310
+
311
+ **Note:** Version bump only for package @pie-element/graphing-configure
312
+
313
+
314
+
315
+
316
+
317
+ ## [3.3.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.14...@pie-element/graphing-configure@3.3.15) (2022-03-28)
318
+
319
+ **Note:** Version bump only for package @pie-element/graphing-configure
320
+
321
+
322
+
323
+
324
+
325
+ ## [3.3.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.13...@pie-element/graphing-configure@3.3.14) (2022-03-22)
326
+
327
+ **Note:** Version bump only for package @pie-element/graphing-configure
328
+
329
+
330
+
331
+
332
+
333
+ ## [3.3.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.12...@pie-element/graphing-configure@3.3.13) (2022-03-08)
334
+
335
+ **Note:** Version bump only for package @pie-element/graphing-configure
336
+
337
+
338
+
339
+
340
+
341
+ ## [3.3.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.11...@pie-element/graphing-configure@3.3.12) (2022-03-08)
342
+
343
+ **Note:** Version bump only for package @pie-element/graphing-configure
344
+
345
+
346
+
347
+
348
+
349
+ ## [3.3.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.10...@pie-element/graphing-configure@3.3.11) (2022-02-21)
350
+
351
+ **Note:** Version bump only for package @pie-element/graphing-configure
352
+
353
+
354
+
355
+
356
+
357
+ ## [3.3.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.9...@pie-element/graphing-configure@3.3.10) (2022-02-04)
358
+
359
+ **Note:** Version bump only for package @pie-element/graphing-configure
360
+
361
+
362
+
363
+
364
+
6
365
  ## [3.3.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/graphing-configure@3.3.8...@pie-element/graphing-configure@3.3.9) (2022-01-24)
7
366
 
8
367
 
@@ -39,9 +39,11 @@ var _graphingConfig = _interopRequireDefault(require("./graphing-config"));
39
39
 
40
40
  var _correctResponse = _interopRequireDefault(require("./correct-response"));
41
41
 
42
- 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; }
42
+ var _intersection = _interopRequireDefault(require("lodash/intersection"));
43
43
 
44
- 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; }
44
+ 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; }
45
+
46
+ 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; }
45
47
 
46
48
  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); }; }
47
49
 
@@ -122,14 +124,18 @@ var Configure = /*#__PURE__*/function (_React$Component) {
122
124
  (0, _createClass2["default"])(Configure, [{
123
125
  key: "componentDidMount",
124
126
  value: function componentDidMount() {
125
- // This is used for offering support for old models which have the property arrows: boolean
126
- // Same thing is set in the controller: packages/graphing/controller/src/index.js - model
127
127
  var _this$props4 = this.props,
128
+ configuration = _this$props4.configuration,
128
129
  onModelChanged = _this$props4.onModelChanged,
129
130
  model = _this$props4.model;
130
131
 
131
- var _ref = model || {},
132
- arrows = _ref.arrows;
132
+ var _ref = configuration || {},
133
+ availableTools = _ref.availableTools;
134
+
135
+ var _ref2 = model || {},
136
+ arrows = _ref2.arrows; // This is used for offering support for old models which have the property arrows: boolean
137
+ // Same thing is set in the controller: packages/graphing/controller/src/index.js - model
138
+
133
139
 
134
140
  if (typeof arrows === 'boolean') {
135
141
  if (arrows) {
@@ -147,11 +153,13 @@ var Configure = /*#__PURE__*/function (_React$Component) {
147
153
  down: false
148
154
  };
149
155
  }
150
-
151
- onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
152
- arrows: arrows
153
- }));
154
156
  }
157
+
158
+ var toolbarTools = (0, _intersection["default"])(availableTools || [], model.toolbarTools || []);
159
+ onModelChanged && onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
160
+ arrows: arrows,
161
+ toolbarTools: toolbarTools
162
+ }));
155
163
  }
156
164
  }, {
157
165
  key: "render",
@@ -162,67 +170,99 @@ var Configure = /*#__PURE__*/function (_React$Component) {
162
170
  configuration = _this$props5.configuration,
163
171
  onConfigurationChanged = _this$props5.onConfigurationChanged,
164
172
  onModelChanged = _this$props5.onModelChanged,
165
- imageSupport = _this$props5.imageSupport;
166
- var config = model.graph;
167
-
168
- var _ref2 = configuration || {},
169
- _ref2$arrows = _ref2.arrows,
170
- arrows = _ref2$arrows === void 0 ? {} : _ref2$arrows,
171
- _ref2$title = _ref2.title,
172
- title = _ref2$title === void 0 ? {} : _ref2$title,
173
- _ref2$padding = _ref2.padding,
174
- padding = _ref2$padding === void 0 ? {} : _ref2$padding,
175
- _ref2$labels = _ref2.labels,
176
- labels = _ref2$labels === void 0 ? {} : _ref2$labels,
177
- _ref2$rationale = _ref2.rationale,
178
- rationale = _ref2$rationale === void 0 ? {} : _ref2$rationale,
179
- _ref2$scoringType = _ref2.scoringType,
180
- scoringType = _ref2$scoringType === void 0 ? {} : _ref2$scoringType,
181
- _ref2$studentInstruct = _ref2.studentInstructions,
182
- studentInstructions = _ref2$studentInstruct === void 0 ? {} : _ref2$studentInstruct,
183
- _ref2$teacherInstruct = _ref2.teacherInstructions,
184
- teacherInstructions = _ref2$teacherInstruct === void 0 ? {} : _ref2$teacherInstruct,
185
- _ref2$coordinatesOnHo = _ref2.coordinatesOnHover,
186
- coordinatesOnHover = _ref2$coordinatesOnHo === void 0 ? {} : _ref2$coordinatesOnHo,
187
- _ref2$prompt = _ref2.prompt,
188
- prompt = _ref2$prompt === void 0 ? {} : _ref2$prompt,
189
- _ref2$authoring = _ref2.authoring,
190
- authoring = _ref2$authoring === void 0 ? {} : _ref2$authoring;
173
+ imageSupport = _this$props5.imageSupport,
174
+ uploadSoundSupport = _this$props5.uploadSoundSupport;
175
+
176
+ var _ref3 = configuration || {},
177
+ _ref3$arrows = _ref3.arrows,
178
+ arrows = _ref3$arrows === void 0 ? {} : _ref3$arrows,
179
+ _ref3$authoring = _ref3.authoring,
180
+ authoring = _ref3$authoring === void 0 ? {} : _ref3$authoring,
181
+ _ref3$availableTools = _ref3.availableTools,
182
+ availableTools = _ref3$availableTools === void 0 ? [] : _ref3$availableTools,
183
+ _ref3$coordinatesOnHo = _ref3.coordinatesOnHover,
184
+ coordinatesOnHover = _ref3$coordinatesOnHo === void 0 ? {} : _ref3$coordinatesOnHo,
185
+ _ref3$gridConfigurati = _ref3.gridConfigurations,
186
+ gridConfigurations = _ref3$gridConfigurati === void 0 ? [] : _ref3$gridConfigurati,
187
+ _ref3$graphDimensions = _ref3.graphDimensions,
188
+ graphDimensions = _ref3$graphDimensions === void 0 ? {} : _ref3$graphDimensions,
189
+ _ref3$labels = _ref3.labels,
190
+ labels = _ref3$labels === void 0 ? {} : _ref3$labels,
191
+ _ref3$padding = _ref3.padding,
192
+ padding = _ref3$padding === void 0 ? {} : _ref3$padding,
193
+ _ref3$prompt = _ref3.prompt,
194
+ prompt = _ref3$prompt === void 0 ? {} : _ref3$prompt,
195
+ _ref3$rationale = _ref3.rationale,
196
+ rationale = _ref3$rationale === void 0 ? {} : _ref3$rationale,
197
+ _ref3$scoringType = _ref3.scoringType,
198
+ scoringType = _ref3$scoringType === void 0 ? {} : _ref3$scoringType,
199
+ settingsPanelDisabled = _ref3.settingsPanelDisabled,
200
+ _ref3$spellCheck = _ref3.spellCheck,
201
+ spellCheck = _ref3$spellCheck === void 0 ? {} : _ref3$spellCheck,
202
+ _ref3$studentInstruct = _ref3.studentInstructions,
203
+ studentInstructions = _ref3$studentInstruct === void 0 ? {} : _ref3$studentInstruct,
204
+ _ref3$teacherInstruct = _ref3.teacherInstructions,
205
+ teacherInstructions = _ref3$teacherInstruct === void 0 ? {} : _ref3$teacherInstruct,
206
+ _ref3$title = _ref3.title,
207
+ title = _ref3$title === void 0 ? {} : _ref3$title,
208
+ _ref3$maxImageWidth = _ref3.maxImageWidth,
209
+ maxImageWidth = _ref3$maxImageWidth === void 0 ? {} : _ref3$maxImageWidth,
210
+ _ref3$maxImageHeight = _ref3.maxImageHeight,
211
+ maxImageHeight = _ref3$maxImageHeight === void 0 ? {} : _ref3$maxImageHeight,
212
+ _ref3$withRubric = _ref3.withRubric,
213
+ withRubric = _ref3$withRubric === void 0 ? {} : _ref3$withRubric;
214
+
215
+ var _ref4 = model || {},
216
+ _ref4$errors = _ref4.errors,
217
+ errors = _ref4$errors === void 0 ? {} : _ref4$errors,
218
+ labelsEnabled = _ref4.labelsEnabled,
219
+ promptEnabled = _ref4.promptEnabled,
220
+ rationaleEnabled = _ref4.rationaleEnabled,
221
+ spellCheckEnabled = _ref4.spellCheckEnabled,
222
+ teacherInstructionsEnabled = _ref4.teacherInstructionsEnabled,
223
+ titleEnabled = _ref4.titleEnabled;
191
224
 
192
225
  log('[render] model', model);
193
-
194
- var _ref3 = model || {},
195
- teacherInstructionsEnabled = _ref3.teacherInstructionsEnabled,
196
- promptEnabled = _ref3.promptEnabled,
197
- rationaleEnabled = _ref3.rationaleEnabled;
198
-
226
+ var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
227
+ var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
228
+ var labelsPlaceholders = {
229
+ top: labels.top,
230
+ right: labels.right,
231
+ bottom: labels.bottom,
232
+ left: labels.left
233
+ };
234
+ var panelItemType = {
235
+ arrows: arrows.settings && checkboxes(arrows.label, {
236
+ left: arrows.left,
237
+ right: arrows.right,
238
+ up: arrows.up,
239
+ down: arrows.down
240
+ }),
241
+ titleEnabled: title.settings && toggle(title.label),
242
+ padding: padding.settings && toggle(padding.label),
243
+ labelsEnabled: labels.settings && toggle(labels.label),
244
+ coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label)
245
+ };
246
+ var panelProperties = {
247
+ 'authoring.enabled': authoring.settings && toggle(authoring.label, true),
248
+ teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
249
+ studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
250
+ promptEnabled: prompt.settings && toggle(prompt.label),
251
+ rationaleEnabled: rationale.settings && toggle(rationale.label),
252
+ spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
253
+ scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),
254
+ rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
255
+ };
199
256
  return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
257
+ hideSettings: settingsPanelDisabled,
200
258
  settings: /*#__PURE__*/_react["default"].createElement(Panel, {
201
259
  model: model,
202
260
  configuration: configuration,
203
261
  onChangeModel: onModelChanged,
204
262
  onChangeConfiguration: onConfigurationChanged,
205
263
  groups: {
206
- 'Item Type': {
207
- arrows: arrows.settings && checkboxes(arrows.label, {
208
- left: arrows.left,
209
- right: arrows.right,
210
- up: arrows.up,
211
- down: arrows.down
212
- }),
213
- 'title.enabled': title.settings && toggle(title.label, true),
214
- padding: padding.settings && toggle(padding.label),
215
- labels: labels.settings && toggle(labels.label),
216
- coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label)
217
- },
218
- Properties: {
219
- 'authoring.enabled': authoring.settings && toggle(authoring.label, true),
220
- teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
221
- studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
222
- promptEnabled: prompt.settings && toggle(prompt.label),
223
- rationaleEnabled: rationale.settings && toggle(rationale.label),
224
- scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring'])
225
- }
264
+ 'Item Type': panelItemType,
265
+ Properties: panelProperties
226
266
  }
227
267
  })
228
268
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -238,7 +278,16 @@ var Configure = /*#__PURE__*/function (_React$Component) {
238
278
  markup: model.teacherInstructions || '',
239
279
  onChange: this.onTeacherInstructionsChange,
240
280
  imageSupport: imageSupport,
241
- nonEmpty: false
281
+ nonEmpty: false,
282
+ spellCheck: spellCheckEnabled,
283
+ maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
284
+ maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
285
+ uploadSoundSupport: uploadSoundSupport,
286
+ languageCharactersProps: [{
287
+ language: 'spanish'
288
+ }, {
289
+ language: 'special'
290
+ }]
242
291
  })), promptEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
243
292
  label: prompt.label,
244
293
  className: classes.promptHolder
@@ -248,7 +297,16 @@ var Configure = /*#__PURE__*/function (_React$Component) {
248
297
  onChange: this.onPromptChange,
249
298
  imageSupport: imageSupport,
250
299
  nonEmpty: false,
251
- disableUnderline: true
300
+ spellCheck: spellCheckEnabled,
301
+ disableUnderline: true,
302
+ maxImageWidth: defaultImageMaxWidth,
303
+ maxImageHeight: defaultImageMaxHeight,
304
+ uploadSoundSupport: uploadSoundSupport,
305
+ languageCharactersProps: [{
306
+ language: 'spanish'
307
+ }, {
308
+ language: 'special'
309
+ }]
252
310
  })), rationaleEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
253
311
  label: rationale.label || 'Rationale',
254
312
  className: classes.promptHolder
@@ -256,14 +314,30 @@ var Configure = /*#__PURE__*/function (_React$Component) {
256
314
  className: classes.prompt,
257
315
  markup: model.rationale || '',
258
316
  onChange: this.onRationaleChange,
259
- imageSupport: imageSupport
317
+ imageSupport: imageSupport,
318
+ spellCheck: spellCheckEnabled,
319
+ maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
320
+ maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight,
321
+ uploadSoundSupport: uploadSoundSupport,
322
+ languageCharactersProps: [{
323
+ language: 'spanish'
324
+ }, {
325
+ language: 'special'
326
+ }]
260
327
  })), /*#__PURE__*/_react["default"].createElement(_graphingConfig["default"], {
261
- authoringEnabled: authoring && authoring.enabled,
262
- config: config,
328
+ authoring: authoring,
329
+ availableTools: availableTools,
330
+ gridConfigurations: gridConfigurations,
331
+ graphDimensions: graphDimensions,
332
+ labelsPlaceholders: labelsPlaceholders,
263
333
  model: model,
334
+ showLabels: labelsEnabled,
335
+ showTitle: titleEnabled,
336
+ titlePlaceholder: title.placeholder,
264
337
  onChange: this.props.onModelChanged
265
338
  }), /*#__PURE__*/_react["default"].createElement(_correctResponse["default"], {
266
- config: config,
339
+ availableTools: availableTools,
340
+ errors: errors,
267
341
  model: model,
268
342
  onChange: this.props.onModelChanged
269
343
  })));
@@ -278,6 +352,7 @@ exports.Configure = Configure;
278
352
  onConfigurationChanged: _propTypes["default"].func,
279
353
  classes: _propTypes["default"].object,
280
354
  imageSupport: _propTypes["default"].object,
355
+ uploadSoundSupport: _propTypes["default"].object,
281
356
  model: _propTypes["default"].object.isRequired,
282
357
  configuration: _propTypes["default"].object.isRequired
283
358
  });