@pie-element/multiple-choice 8.9.1-next.2 → 8.9.1-next.39

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.
@@ -207,7 +207,7 @@
207
207
  }
208
208
  },
209
209
  "prompt": {
210
- "title": "EditableHtmlPluginConfigure",
210
+ "title": "EditableHtmlPluginConfigureRequired",
211
211
  "type": "object",
212
212
  "properties": {
213
213
  "inputConfiguration": {
@@ -260,6 +260,11 @@
260
260
  }
261
261
  }
262
262
  },
263
+ "required": {
264
+ "description": "Indicates if the item is required and the value cannot be empty",
265
+ "type": "boolean",
266
+ "title": "required"
267
+ },
263
268
  "settings": {
264
269
  "description": "Indicates if the item has to be displayed in the Settings Panel",
265
270
  "type": "boolean",
@@ -353,7 +358,7 @@
353
358
  }
354
359
  },
355
360
  "rationale": {
356
- "title": "EditableHtmlPluginConfigure",
361
+ "title": "EditableHtmlPluginConfigureRequired",
357
362
  "type": "object",
358
363
  "properties": {
359
364
  "inputConfiguration": {
@@ -406,6 +411,11 @@
406
411
  }
407
412
  }
408
413
  },
414
+ "required": {
415
+ "description": "Indicates if the item is required and the value cannot be empty",
416
+ "type": "boolean",
417
+ "title": "required"
418
+ },
409
419
  "settings": {
410
420
  "description": "Indicates if the item has to be displayed in the Settings Panel",
411
421
  "type": "boolean",
@@ -456,7 +466,7 @@
456
466
  }
457
467
  },
458
468
  "teacherInstructions": {
459
- "title": "EditableHtmlPluginConfigure",
469
+ "title": "EditableHtmlPluginConfigureRequired",
460
470
  "type": "object",
461
471
  "properties": {
462
472
  "inputConfiguration": {
@@ -509,6 +519,11 @@
509
519
  }
510
520
  }
511
521
  },
522
+ "required": {
523
+ "description": "Indicates if the item is required and the value cannot be empty",
524
+ "type": "boolean",
525
+ "title": "required"
526
+ },
512
527
  "settings": {
513
528
  "description": "Indicates if the item has to be displayed in the Settings Panel",
514
529
  "type": "boolean",
@@ -969,6 +984,77 @@
969
984
  }
970
985
  }
971
986
  },
987
+ "EditableHtmlPluginConfigureRequired": {
988
+ "title": "EditableHtmlPluginConfigureRequired",
989
+ "type": "object",
990
+ "properties": {
991
+ "inputConfiguration": {
992
+ "title": "EditableHtmlConfigureProp",
993
+ "type": "object",
994
+ "properties": {
995
+ "math": {
996
+ "title": "EditableHtmlButtonConfigure",
997
+ "type": "object",
998
+ "properties": {
999
+ "disabled": {
1000
+ "description": "Indicates if the plugin is disabled or not",
1001
+ "type": "boolean",
1002
+ "title": "disabled"
1003
+ }
1004
+ }
1005
+ },
1006
+ "audio": {
1007
+ "title": "EditableHtmlButtonConfigure",
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "disabled": {
1011
+ "description": "Indicates if the plugin is disabled or not",
1012
+ "type": "boolean",
1013
+ "title": "disabled"
1014
+ }
1015
+ }
1016
+ },
1017
+ "video": {
1018
+ "title": "EditableHtmlButtonConfigure",
1019
+ "type": "object",
1020
+ "properties": {
1021
+ "disabled": {
1022
+ "description": "Indicates if the plugin is disabled or not",
1023
+ "type": "boolean",
1024
+ "title": "disabled"
1025
+ }
1026
+ }
1027
+ },
1028
+ "image": {
1029
+ "title": "EditableHtmlButtonConfigure",
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "disabled": {
1033
+ "description": "Indicates if the plugin is disabled or not",
1034
+ "type": "boolean",
1035
+ "title": "disabled"
1036
+ }
1037
+ }
1038
+ }
1039
+ }
1040
+ },
1041
+ "required": {
1042
+ "description": "Indicates if the item is required and the value cannot be empty",
1043
+ "type": "boolean",
1044
+ "title": "required"
1045
+ },
1046
+ "settings": {
1047
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1048
+ "type": "boolean",
1049
+ "title": "settings"
1050
+ },
1051
+ "label": {
1052
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1053
+ "type": "string",
1054
+ "title": "label"
1055
+ }
1056
+ }
1057
+ },
972
1058
  "ConfigurePropWithEnabled": {
973
1059
  "title": "ConfigurePropWithEnabled",
974
1060
  "type": "object",
@@ -196,6 +196,10 @@ Properties of the `image` object:
196
196
 
197
197
  Indicates if the plugin is disabled or not
198
198
 
199
+ ## `required` (boolean)
200
+
201
+ Indicates if the item is required and the value cannot be empty
202
+
199
203
  ## `settings` (boolean)
200
204
 
201
205
  Indicates if the item has to be displayed in the Settings Panel
@@ -304,6 +308,10 @@ Properties of the `image` object:
304
308
 
305
309
  Indicates if the plugin is disabled or not
306
310
 
311
+ ## `required` (boolean)
312
+
313
+ Indicates if the item is required and the value cannot be empty
314
+
307
315
  ## `settings` (boolean)
308
316
 
309
317
  Indicates if the item has to be displayed in the Settings Panel
@@ -380,6 +388,10 @@ Properties of the `image` object:
380
388
 
381
389
  Indicates if the plugin is disabled or not
382
390
 
391
+ ## `required` (boolean)
392
+
393
+ Indicates if the item is required and the value cannot be empty
394
+
383
395
  ## `settings` (boolean)
384
396
 
385
397
  Indicates if the item has to be displayed in the Settings Panel
@@ -727,6 +739,58 @@ Indicates if the item has to be displayed in the Settings Panel
727
739
 
728
740
  Indicates the label for the item that has to be displayed in the Settings Panel
729
741
 
742
+ ## `EditableHtmlPluginConfigureRequired` (object)
743
+
744
+ Properties of the `EditableHtmlPluginConfigureRequired` object:
745
+
746
+ ### `inputConfiguration` (object)
747
+
748
+ Properties of the `inputConfiguration` object:
749
+
750
+ #### `math` (object)
751
+
752
+ Properties of the `math` object:
753
+
754
+ ##### `disabled` (boolean)
755
+
756
+ Indicates if the plugin is disabled or not
757
+
758
+ #### `audio` (object)
759
+
760
+ Properties of the `audio` object:
761
+
762
+ ##### `disabled` (boolean)
763
+
764
+ Indicates if the plugin is disabled or not
765
+
766
+ #### `video` (object)
767
+
768
+ Properties of the `video` object:
769
+
770
+ ##### `disabled` (boolean)
771
+
772
+ Indicates if the plugin is disabled or not
773
+
774
+ #### `image` (object)
775
+
776
+ Properties of the `image` object:
777
+
778
+ ##### `disabled` (boolean)
779
+
780
+ Indicates if the plugin is disabled or not
781
+
782
+ ### `required` (boolean)
783
+
784
+ Indicates if the item is required and the value cannot be empty
785
+
786
+ ### `settings` (boolean)
787
+
788
+ Indicates if the item has to be displayed in the Settings Panel
789
+
790
+ ### `label` (string)
791
+
792
+ Indicates the label for the item that has to be displayed in the Settings Panel
793
+
730
794
  ## `ConfigurePropWithEnabled` (object)
731
795
 
732
796
  Properties of the `ConfigurePropWithEnabled` object:
@@ -360,6 +360,77 @@
360
360
  }
361
361
  }
362
362
  },
363
+ "EditableHtmlPluginConfigureRequired": {
364
+ "title": "EditableHtmlPluginConfigureRequired",
365
+ "type": "object",
366
+ "properties": {
367
+ "inputConfiguration": {
368
+ "title": "EditableHtmlConfigureProp",
369
+ "type": "object",
370
+ "properties": {
371
+ "math": {
372
+ "title": "EditableHtmlButtonConfigure",
373
+ "type": "object",
374
+ "properties": {
375
+ "disabled": {
376
+ "description": "Indicates if the plugin is disabled or not",
377
+ "type": "boolean",
378
+ "title": "disabled"
379
+ }
380
+ }
381
+ },
382
+ "audio": {
383
+ "title": "EditableHtmlButtonConfigure",
384
+ "type": "object",
385
+ "properties": {
386
+ "disabled": {
387
+ "description": "Indicates if the plugin is disabled or not",
388
+ "type": "boolean",
389
+ "title": "disabled"
390
+ }
391
+ }
392
+ },
393
+ "video": {
394
+ "title": "EditableHtmlButtonConfigure",
395
+ "type": "object",
396
+ "properties": {
397
+ "disabled": {
398
+ "description": "Indicates if the plugin is disabled or not",
399
+ "type": "boolean",
400
+ "title": "disabled"
401
+ }
402
+ }
403
+ },
404
+ "image": {
405
+ "title": "EditableHtmlButtonConfigure",
406
+ "type": "object",
407
+ "properties": {
408
+ "disabled": {
409
+ "description": "Indicates if the plugin is disabled or not",
410
+ "type": "boolean",
411
+ "title": "disabled"
412
+ }
413
+ }
414
+ }
415
+ }
416
+ },
417
+ "required": {
418
+ "description": "Indicates if the item is required and the value cannot be empty",
419
+ "type": "boolean",
420
+ "title": "required"
421
+ },
422
+ "settings": {
423
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
424
+ "type": "boolean",
425
+ "title": "settings"
426
+ },
427
+ "label": {
428
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
429
+ "type": "string",
430
+ "title": "label"
431
+ }
432
+ }
433
+ },
363
434
  "ConfigurePropWithEnabled": {
364
435
  "title": "ConfigurePropWithEnabled",
365
436
  "type": "object",
@@ -287,6 +287,58 @@ Indicates if the item has to be displayed in the Settings Panel
287
287
 
288
288
  Indicates the label for the item that has to be displayed in the Settings Panel
289
289
 
290
+ ## `EditableHtmlPluginConfigureRequired` (object)
291
+
292
+ Properties of the `EditableHtmlPluginConfigureRequired` object:
293
+
294
+ ### `inputConfiguration` (object)
295
+
296
+ Properties of the `inputConfiguration` object:
297
+
298
+ #### `math` (object)
299
+
300
+ Properties of the `math` object:
301
+
302
+ ##### `disabled` (boolean)
303
+
304
+ Indicates if the plugin is disabled or not
305
+
306
+ #### `audio` (object)
307
+
308
+ Properties of the `audio` object:
309
+
310
+ ##### `disabled` (boolean)
311
+
312
+ Indicates if the plugin is disabled or not
313
+
314
+ #### `video` (object)
315
+
316
+ Properties of the `video` object:
317
+
318
+ ##### `disabled` (boolean)
319
+
320
+ Indicates if the plugin is disabled or not
321
+
322
+ #### `image` (object)
323
+
324
+ Properties of the `image` object:
325
+
326
+ ##### `disabled` (boolean)
327
+
328
+ Indicates if the plugin is disabled or not
329
+
330
+ ### `required` (boolean)
331
+
332
+ Indicates if the item is required and the value cannot be empty
333
+
334
+ ### `settings` (boolean)
335
+
336
+ Indicates if the item has to be displayed in the Settings Panel
337
+
338
+ ### `label` (string)
339
+
340
+ Indicates the label for the item that has to be displayed in the Settings Panel
341
+
290
342
  ## `ConfigurePropWithEnabled` (object)
291
343
 
292
344
  Properties of the `ConfigurePropWithEnabled` object:
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.0/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.1/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -10268,7 +10268,7 @@ const Design = styles$8.withStyles(styles)(props => {
10268
10268
  const {addChoiceButton = {}, contentDimensions = {}, feedback = {}, deleteChoice = {}, choiceMode = {}, choicePrefix = {}, partialScoring = {}, lockChoiceOrder = {}, teacherInstructions = {}, studentInstructions = {}, rationale = {}, accessibility = {}, scoringType = {}, sequentialChoiceLabels = {}, settingsPanelDisabled, choicesLayout, spellCheck = {}, gridColumns, maxImageWidth = {}, maxImageHeight = {}, prompt = {}, withRubric = {}, mathMlOptions = {}, language = {}, languageChoices = {}} = configuration || ({});
10269
10269
  let {maxAnswerChoices} = configuration || ({});
10270
10270
  const {limitChoicesNumber, teacherInstructionsEnabled, rationaleEnabled, accessibilityLabelsEnabled, feedbackEnabled, promptEnabled, spellCheckEnabled, choices, errors, toolbarEditorPosition} = model || ({});
10271
- const {choicesErrors, correctResponseError, answerChoicesError} = errors || ({});
10271
+ const {answerChoices: answerChoicesError, choices: choicesErrors, correctResponse: correctResponseError, prompt: promptError, rationale: rationaleErrors, teacherInstructions: teacherInstructionsError} = errors || ({});
10272
10272
  const nrOfColumnsAvailable = _optionalChain$1([choices, 'optionalAccess', _2 => _2.length]) ? Array.from({
10273
10273
  length: choices.length
10274
10274
  }, (_, i) => `${i + 1}`) : [];
@@ -10324,13 +10324,13 @@ const Design = styles$8.withStyles(styles)(props => {
10324
10324
  __self: undefined,
10325
10325
  __source: {
10326
10326
  fileName: _jsxFileName,
10327
- lineNumber: 204
10327
+ lineNumber: 211
10328
10328
  }
10329
10329
  }),
10330
10330
  __self: undefined,
10331
10331
  __source: {
10332
10332
  fileName: _jsxFileName,
10333
- lineNumber: 200
10333
+ lineNumber: 207
10334
10334
  }
10335
10335
  }, teacherInstructionsEnabled && React$1.createElement(InputContainer, {
10336
10336
  label: teacherInstructions.label,
@@ -10338,7 +10338,7 @@ const Design = styles$8.withStyles(styles)(props => {
10338
10338
  __self: undefined,
10339
10339
  __source: {
10340
10340
  fileName: _jsxFileName,
10341
- lineNumber: 217
10341
+ lineNumber: 224
10342
10342
  }
10343
10343
  }, React$1.createElement(EditableHtml, {
10344
10344
  className: classes.prompt,
@@ -10346,6 +10346,7 @@ const Design = styles$8.withStyles(styles)(props => {
10346
10346
  onChange: onTeacherInstructionsChanged,
10347
10347
  imageSupport: imageSupport,
10348
10348
  nonEmpty: false,
10349
+ error: teacherInstructionsError,
10349
10350
  toolbarOpts: toolbarOpts,
10350
10351
  pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _6 => _6.teacherInstructions, 'optionalAccess', _7 => _7.inputConfiguration])),
10351
10352
  spellCheck: spellCheckEnabled,
@@ -10361,15 +10362,22 @@ const Design = styles$8.withStyles(styles)(props => {
10361
10362
  __self: undefined,
10362
10363
  __source: {
10363
10364
  fileName: _jsxFileName,
10364
- lineNumber: 218
10365
+ lineNumber: 225
10365
10366
  }
10366
- })), promptEnabled && React$1.createElement(InputContainer, {
10367
+ }), teacherInstructionsError && React$1.createElement('div', {
10368
+ className: classes.errorText,
10369
+ __self: undefined,
10370
+ __source: {
10371
+ fileName: _jsxFileName,
10372
+ lineNumber: 241
10373
+ }
10374
+ }, teacherInstructionsError)), promptEnabled && React$1.createElement(InputContainer, {
10367
10375
  label: prompt.label,
10368
10376
  className: classes.promptHolder,
10369
10377
  __self: undefined,
10370
10378
  __source: {
10371
10379
  fileName: _jsxFileName,
10372
- lineNumber: 237
10380
+ lineNumber: 246
10373
10381
  }
10374
10382
  }, React$1.createElement(EditableHtml, {
10375
10383
  className: classes.prompt,
@@ -10378,6 +10386,7 @@ const Design = styles$8.withStyles(styles)(props => {
10378
10386
  imageSupport: imageSupport,
10379
10387
  nonEmpty: false,
10380
10388
  disableUnderline: true,
10389
+ error: promptError,
10381
10390
  toolbarOpts: toolbarOpts,
10382
10391
  pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _8 => _8.prompt, 'optionalAccess', _9 => _9.inputConfiguration])),
10383
10392
  spellCheck: spellCheckEnabled,
@@ -10393,21 +10402,28 @@ const Design = styles$8.withStyles(styles)(props => {
10393
10402
  __self: undefined,
10394
10403
  __source: {
10395
10404
  fileName: _jsxFileName,
10396
- lineNumber: 238
10405
+ lineNumber: 247
10397
10406
  }
10398
- })), React$1.createElement('div', {
10407
+ }), promptError && React$1.createElement('div', {
10408
+ className: classes.errorText,
10409
+ __self: undefined,
10410
+ __source: {
10411
+ fileName: _jsxFileName,
10412
+ lineNumber: 264
10413
+ }
10414
+ }, promptError)), React$1.createElement('div', {
10399
10415
  className: classes.flexContainer,
10400
10416
  __self: undefined,
10401
10417
  __source: {
10402
10418
  fileName: _jsxFileName,
10403
- lineNumber: 257
10419
+ lineNumber: 268
10404
10420
  }
10405
10421
  }, React$1.createElement(Typography, {
10406
10422
  className: classes.titleText,
10407
10423
  __self: undefined,
10408
10424
  __source: {
10409
10425
  fileName: _jsxFileName,
10410
- lineNumber: 258
10426
+ lineNumber: 269
10411
10427
  }
10412
10428
  }, "Choices"), React$1.createElement(Tooltip, {
10413
10429
  classes: {
@@ -10420,7 +10436,7 @@ const Design = styles$8.withStyles(styles)(props => {
10420
10436
  __self: undefined,
10421
10437
  __source: {
10422
10438
  fileName: _jsxFileName,
10423
- lineNumber: 259
10439
+ lineNumber: 270
10424
10440
  }
10425
10441
  }, React$1.createElement(default_1, {
10426
10442
  fontSize: 'small',
@@ -10428,7 +10444,7 @@ const Design = styles$8.withStyles(styles)(props => {
10428
10444
  __self: undefined,
10429
10445
  __source: {
10430
10446
  fileName: _jsxFileName,
10431
- lineNumber: 266
10447
+ lineNumber: 277
10432
10448
  }
10433
10449
  }))), choices.map((choice, index) => React$1.createElement('div', {
10434
10450
  key: `choice-${index}`,
@@ -10436,7 +10452,7 @@ const Design = styles$8.withStyles(styles)(props => {
10436
10452
  __self: undefined,
10437
10453
  __source: {
10438
10454
  fileName: _jsxFileName,
10439
- lineNumber: 271
10455
+ lineNumber: 282
10440
10456
  }
10441
10457
  }, React$1.createElement(ChoiceConfiguration, {
10442
10458
  key: index,
@@ -10465,7 +10481,7 @@ const Design = styles$8.withStyles(styles)(props => {
10465
10481
  __self: undefined,
10466
10482
  __source: {
10467
10483
  fileName: _jsxFileName,
10468
- lineNumber: 272
10484
+ lineNumber: 283
10469
10485
  }
10470
10486
  }), rationaleEnabled && React$1.createElement(InputContainer, {
10471
10487
  key: `rationale-${index}`,
@@ -10474,7 +10490,7 @@ const Design = styles$8.withStyles(styles)(props => {
10474
10490
  __self: undefined,
10475
10491
  __source: {
10476
10492
  fileName: _jsxFileName,
10477
- lineNumber: 299
10493
+ lineNumber: 310
10478
10494
  }
10479
10495
  }, React$1.createElement(EditableHtml, {
10480
10496
  className: classes.rationale,
@@ -10484,8 +10500,9 @@ const Design = styles$8.withStyles(styles)(props => {
10484
10500
  rationale: c
10485
10501
  }),
10486
10502
  imageSupport: imageSupport,
10503
+ error: _optionalChain$1([rationaleErrors, 'optionalAccess', _13 => _13[choice.value]]) || null,
10487
10504
  toolbarOpts: toolbarOpts,
10488
- pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _13 => _13.rationale, 'optionalAccess', _14 => _14.inputConfiguration])),
10505
+ pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _14 => _14.rationale, 'optionalAccess', _15 => _15.inputConfiguration])),
10489
10506
  spellCheck: spellCheckEnabled,
10490
10507
  maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
10491
10508
  maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight,
@@ -10499,16 +10516,23 @@ const Design = styles$8.withStyles(styles)(props => {
10499
10516
  __self: undefined,
10500
10517
  __source: {
10501
10518
  fileName: _jsxFileName,
10502
- lineNumber: 300
10519
+ lineNumber: 311
10503
10520
  }
10504
- })), accessibilityLabelsEnabled && React$1.createElement(InputContainer, {
10521
+ }), _optionalChain$1([rationaleErrors, 'optionalAccess', _16 => _16[choice.value]]) && React$1.createElement('div', {
10522
+ className: classes.errorText,
10523
+ __self: undefined,
10524
+ __source: {
10525
+ fileName: _jsxFileName,
10526
+ lineNumber: 327
10527
+ }
10528
+ }, _optionalChain$1([rationaleErrors, 'optionalAccess', _17 => _17[choice.value]]))), accessibilityLabelsEnabled && React$1.createElement(InputContainer, {
10505
10529
  key: `accessibility-${index}`,
10506
10530
  label: accessibility.label,
10507
10531
  className: classes.accessibilityHolder,
10508
10532
  __self: undefined,
10509
10533
  __source: {
10510
10534
  fileName: _jsxFileName,
10511
- lineNumber: 318
10535
+ lineNumber: 333
10512
10536
  }
10513
10537
  }, React$1.createElement(EditableHtml, {
10514
10538
  className: classes.accessibility,
@@ -10518,7 +10542,7 @@ const Design = styles$8.withStyles(styles)(props => {
10518
10542
  accessibility: c
10519
10543
  }),
10520
10544
  imageSupport: imageSupport,
10521
- pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _15 => _15.accessibility, 'optionalAccess', _16 => _16.inputConfiguration])),
10545
+ pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _18 => _18.accessibility, 'optionalAccess', _19 => _19.inputConfiguration])),
10522
10546
  spellCheck: spellCheckEnabled,
10523
10547
  maxImageWidth: maxImageWidth && maxImageWidth.choices || defaultImageMaxWidth,
10524
10548
  maxImageHeight: maxImageHeight && maxImageHeight.choices || defaultImageMaxHeight,
@@ -10532,21 +10556,21 @@ const Design = styles$8.withStyles(styles)(props => {
10532
10556
  __self: undefined,
10533
10557
  __source: {
10534
10558
  fileName: _jsxFileName,
10535
- lineNumber: 323
10559
+ lineNumber: 338
10536
10560
  }
10537
10561
  })))), correctResponseError && React$1.createElement('div', {
10538
10562
  className: classes.errorText,
10539
10563
  __self: undefined,
10540
10564
  __source: {
10541
10565
  fileName: _jsxFileName,
10542
- lineNumber: 341
10566
+ lineNumber: 356
10543
10567
  }
10544
10568
  }, correctResponseError), answerChoicesError && React$1.createElement('div', {
10545
10569
  className: classes.errorText,
10546
10570
  __self: undefined,
10547
10571
  __source: {
10548
10572
  fileName: _jsxFileName,
10549
- lineNumber: 342
10573
+ lineNumber: 357
10550
10574
  }
10551
10575
  }, answerChoicesError), addChoiceButton.settings && React$1.createElement(Tooltip, {
10552
10576
  title: addChoiceButtonTooltip,
@@ -10556,11 +10580,11 @@ const Design = styles$8.withStyles(styles)(props => {
10556
10580
  __self: undefined,
10557
10581
  __source: {
10558
10582
  fileName: _jsxFileName,
10559
- lineNumber: 345
10583
+ lineNumber: 360
10560
10584
  }
10561
10585
  }, React$1.createElement(Button, {
10562
10586
  classes: {
10563
- root: maxAnswerChoices && _optionalChain$1([choices, 'optionalAccess', _17 => _17.length]) >= maxAnswerChoices && classes.disableButton
10587
+ root: maxAnswerChoices && _optionalChain$1([choices, 'optionalAccess', _20 => _20.length]) >= maxAnswerChoices && classes.disableButton
10564
10588
  },
10565
10589
  className: classes.addButton,
10566
10590
  variant: "contained",
@@ -10569,7 +10593,7 @@ const Design = styles$8.withStyles(styles)(props => {
10569
10593
  __self: undefined,
10570
10594
  __source: {
10571
10595
  fileName: _jsxFileName,
10572
- lineNumber: 346
10596
+ lineNumber: 361
10573
10597
  }
10574
10598
  }, addChoiceButton.label)));
10575
10599
  });
@@ -10702,7 +10726,7 @@ class Main extends React$1.Component {
10702
10726
  __self: this,
10703
10727
  __source: {
10704
10728
  fileName: _jsxFileName,
10705
- lineNumber: 482
10729
+ lineNumber: 497
10706
10730
  }
10707
10731
  }, React$1.createElement(AlertDialog, {
10708
10732
  open: showWarning,
@@ -10714,7 +10738,7 @@ class Main extends React$1.Component {
10714
10738
  __self: this,
10715
10739
  __source: {
10716
10740
  fileName: _jsxFileName,
10717
- lineNumber: 483
10741
+ lineNumber: 498
10718
10742
  }
10719
10743
  }), React$1.createElement(Design, {
10720
10744
  ...this.props,
@@ -10727,7 +10751,7 @@ class Main extends React$1.Component {
10727
10751
  __self: this,
10728
10752
  __source: {
10729
10753
  fileName: _jsxFileName,
10730
- lineNumber: 489
10754
+ lineNumber: 504
10731
10755
  }
10732
10756
  }));
10733
10757
  }
@@ -10822,7 +10846,8 @@ var sensibleDefaults = {
10822
10846
  image: {
10823
10847
  disabled: false
10824
10848
  }
10825
- }
10849
+ },
10850
+ required: false
10826
10851
  },
10827
10852
  lockChoiceOrder: {
10828
10853
  settings: true,
@@ -10845,7 +10870,8 @@ var sensibleDefaults = {
10845
10870
  image: {
10846
10871
  disabled: false
10847
10872
  }
10848
- }
10873
+ },
10874
+ required: false
10849
10875
  },
10850
10876
  accessibility: {
10851
10877
  settings: false,
@@ -10883,7 +10909,8 @@ var sensibleDefaults = {
10883
10909
  image: {
10884
10910
  disabled: false
10885
10911
  }
10886
- }
10912
+ },
10913
+ required: false
10887
10914
  },
10888
10915
  toolbarEditorPosition: {
10889
10916
  settings: false,