@pie-element/explicit-constructed-response 6.5.0 → 6.5.1-next.48

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.
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_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) {
@@ -16511,13 +16511,8 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16511
16511
  value: function render() {
16512
16512
  var _this2 = this;
16513
16513
  var _this$props7 = this.props, classes = _this$props7.classes, model = _this$props7.model, configuration = _this$props7.configuration, onConfigurationChanged = _this$props7.onConfigurationChanged, imageSupport = _this$props7.imageSupport, uploadSoundSupport = _this$props7.uploadSoundSupport;
16514
- var _ref = configuration || ({}), _ref$contentDimension = _ref.contentDimensions, contentDimensions = _ref$contentDimension === void 0 ? {} : _ref$contentDimension, _ref$maxImageWidth = _ref.maxImageWidth, maxImageWidth = _ref$maxImageWidth === void 0 ? {} : _ref$maxImageWidth, _ref$maxImageHeight = _ref.maxImageHeight, maxImageHeight = _ref$maxImageHeight === void 0 ? {} : _ref$maxImageHeight, _ref$maxLengthPerChoi = _ref.maxLengthPerChoice, maxLengthPerChoice = _ref$maxLengthPerChoi === void 0 ? {} : _ref$maxLengthPerChoi, maxResponseAreas = _ref.maxResponseAreas, _ref$partialScoring = _ref.partialScoring, partialScoring = _ref$partialScoring === void 0 ? {} : _ref$partialScoring, _ref$playerSpellCheck = _ref.playerSpellCheck, playerSpellCheck = _ref$playerSpellCheck === void 0 ? {} : _ref$playerSpellCheck, _ref$prompt = _ref.prompt, prompt = _ref$prompt === void 0 ? {} : _ref$prompt, _ref$rationale = _ref.rationale, rationale = _ref$rationale === void 0 ? {} : _ref$rationale, settingsPanelDisabled = _ref.settingsPanelDisabled, _ref$spellCheck = _ref.spellCheck, spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck, _ref$editSource = _ref.editSource, editSource = _ref$editSource === void 0 ? {} : _ref$editSource, _ref$teacherInstructi = _ref.teacherInstructions, teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi, _ref$withRubric = _ref.withRubric, withRubric = _ref$withRubric === void 0 ? {} : _ref$withRubric, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions, _ref$language = _ref.language, language = _ref$language === void 0 ? {} : _ref$language, _ref$languageChoices = _ref.languageChoices, languageChoices = _ref$languageChoices === void 0 ? {} : _ref$languageChoices;
16514
+ var _ref = configuration || ({}), _ref$baseInputConfigu = _ref.baseInputConfiguration, baseInputConfiguration = _ref$baseInputConfigu === void 0 ? {} : _ref$baseInputConfigu, _ref$contentDimension = _ref.contentDimensions, contentDimensions = _ref$contentDimension === void 0 ? {} : _ref$contentDimension, _ref$maxImageWidth = _ref.maxImageWidth, maxImageWidth = _ref$maxImageWidth === void 0 ? {} : _ref$maxImageWidth, _ref$maxImageHeight = _ref.maxImageHeight, maxImageHeight = _ref$maxImageHeight === void 0 ? {} : _ref$maxImageHeight, _ref$maxLengthPerChoi = _ref.maxLengthPerChoice, maxLengthPerChoice = _ref$maxLengthPerChoi === void 0 ? {} : _ref$maxLengthPerChoi, maxResponseAreas = _ref.maxResponseAreas, _ref$partialScoring = _ref.partialScoring, partialScoring = _ref$partialScoring === void 0 ? {} : _ref$partialScoring, _ref$playerSpellCheck = _ref.playerSpellCheck, playerSpellCheck = _ref$playerSpellCheck === void 0 ? {} : _ref$playerSpellCheck, _ref$prompt = _ref.prompt, prompt = _ref$prompt === void 0 ? {} : _ref$prompt, _ref$rationale = _ref.rationale, rationale = _ref$rationale === void 0 ? {} : _ref$rationale, _ref$template = _ref.template, template = _ref$template === void 0 ? {} : _ref$template, settingsPanelDisabled = _ref.settingsPanelDisabled, _ref$spellCheck = _ref.spellCheck, spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck, _ref$editSource = _ref.editSource, editSource = _ref$editSource === void 0 ? {} : _ref$editSource, _ref$teacherInstructi = _ref.teacherInstructions, teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi, _ref$withRubric = _ref.withRubric, withRubric = _ref$withRubric === void 0 ? {} : _ref$withRubric, _ref$mathMlOptions = _ref.mathMlOptions, mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions, _ref$language = _ref.language, language = _ref$language === void 0 ? {} : _ref$language, _ref$languageChoices = _ref.languageChoices, languageChoices = _ref$languageChoices === void 0 ? {} : _ref$languageChoices;
16515
16515
  var _ref2 = model || ({}), errors = _ref2.errors, maxLengthPerChoiceEnabled = _ref2.maxLengthPerChoiceEnabled, promptEnabled = _ref2.promptEnabled, rationaleEnabled = _ref2.rationaleEnabled, spellCheckEnabled = _ref2.spellCheckEnabled, teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled, toolbarEditorPosition = _ref2.toolbarEditorPosition;
16516
- var choicePlugins = {
16517
- html: {
16518
- disabled: !editSource.enabled
16519
- }
16520
- };
16521
16516
  var _ref3 = errors || ({}), _ref3$choicesErrors = _ref3.choicesErrors, choicesErrors = _ref3$choicesErrors === void 0 ? {} : _ref3$choicesErrors, responseAreasError = _ref3.responseAreasError;
16522
16517
  var validationMessage = (0, _utils.generateValidationMessage)(configuration);
16523
16518
  var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
@@ -16540,6 +16535,10 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16540
16535
  rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label),
16541
16536
  'editSource.enabled': (editSource === null || editSource === void 0 ? void 0 : editSource.settings) && toggle(editSource.label, true)
16542
16537
  };
16538
+ var getPluginProps = function getPluginProps() {
16539
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16540
+ return _objectSpread(_objectSpread({}, baseInputConfiguration), props);
16541
+ };
16543
16542
  return _react["default"].createElement(_configUi.layout.ConfigLayout, {
16544
16543
  dimensions: contentDimensions,
16545
16544
  hideSettings: settingsPanelDisabled,
@@ -16567,6 +16566,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16567
16566
  imageSupport: imageSupport,
16568
16567
  nonEmpty: false,
16569
16568
  toolbarOpts: toolbarOpts,
16569
+ pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration),
16570
16570
  spellCheck: spellCheckEnabled,
16571
16571
  maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
16572
16572
  maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
@@ -16576,8 +16576,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16576
16576
  }, {
16577
16577
  language: 'special'
16578
16578
  }],
16579
- mathMlOptions: mathMlOptions,
16580
- pluginProps: choicePlugins
16579
+ mathMlOptions: mathMlOptions
16581
16580
  })), promptEnabled && _react["default"].createElement(_configUi.InputContainer, {
16582
16581
  label: prompt.label,
16583
16582
  className: classes.promptHolder
@@ -16589,6 +16588,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16589
16588
  nonEmpty: false,
16590
16589
  disableUnderline: true,
16591
16590
  toolbarOpts: toolbarOpts,
16591
+ pluginProps: getPluginProps(prompt === null || prompt === void 0 ? void 0 : prompt.inputConfiguration),
16592
16592
  spellCheck: spellCheckEnabled,
16593
16593
  maxImageWidth: defaultImageMaxWidth,
16594
16594
  maxImageHeight: defaultImageMaxHeight,
@@ -16598,8 +16598,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16598
16598
  }, {
16599
16599
  language: 'special'
16600
16600
  }],
16601
- mathMlOptions: mathMlOptions,
16602
- pluginProps: choicePlugins
16601
+ mathMlOptions: mathMlOptions
16603
16602
  })), _react["default"].createElement("div", {
16604
16603
  className: classes.flexContainer
16605
16604
  }, _react["default"].createElement(_Typography["default"], {
@@ -16624,7 +16623,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16624
16623
  position: 'top'
16625
16624
  },
16626
16625
  spellCheck: spellCheckEnabled,
16627
- pluginProps: choicePlugins,
16626
+ pluginProps: getPluginProps(template === null || template === void 0 ? void 0 : template.inputConfiguration),
16628
16627
  responseAreaProps: {
16629
16628
  type: 'explicit-constructed-response',
16630
16629
  options: {
@@ -16688,6 +16687,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16688
16687
  onChange: this.onRationaleChanged,
16689
16688
  imageSupport: imageSupport,
16690
16689
  toolbarOpts: toolbarOpts,
16690
+ pluginProps: getPluginProps(rationale === null || rationale === void 0 ? void 0 : rationale.inputConfiguration),
16691
16691
  spellCheck: spellCheckEnabled,
16692
16692
  maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
16693
16693
  maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight,
@@ -16697,8 +16697,7 @@ const require$$16 = _dll_pie_lib__pie_toolbox_config_ui;
16697
16697
  }, {
16698
16698
  language: 'special'
16699
16699
  }],
16700
- mathMlOptions: mathMlOptions,
16701
- pluginProps: choicePlugins
16700
+ mathMlOptions: mathMlOptions
16702
16701
  })));
16703
16702
  }
16704
16703
  }]);
@@ -16780,9 +16779,34 @@ var defaults = {};
16780
16779
  studentInstructionsEnabled: true
16781
16780
  },
16782
16781
  configuration: {
16782
+ baseInputConfiguration: {
16783
+ html: {
16784
+ disabled: true
16785
+ },
16786
+ audio: {
16787
+ disabled: false
16788
+ },
16789
+ video: {
16790
+ disabled: false
16791
+ },
16792
+ image: {
16793
+ disabled: false
16794
+ }
16795
+ },
16783
16796
  prompt: {
16784
16797
  settings: true,
16785
- label: 'Prompt'
16798
+ label: 'Prompt',
16799
+ inputConfiguration: {
16800
+ audio: {
16801
+ disabled: false
16802
+ },
16803
+ video: {
16804
+ disabled: false
16805
+ },
16806
+ image: {
16807
+ disabled: false
16808
+ }
16809
+ }
16786
16810
  },
16787
16811
  partialScoring: {
16788
16812
  settings: false,
@@ -16790,7 +16814,18 @@ var defaults = {};
16790
16814
  },
16791
16815
  rationale: {
16792
16816
  settings: true,
16793
- label: 'Rationale'
16817
+ label: 'Rationale',
16818
+ inputConfiguration: {
16819
+ audio: {
16820
+ disabled: false
16821
+ },
16822
+ video: {
16823
+ disabled: false
16824
+ },
16825
+ image: {
16826
+ disabled: false
16827
+ }
16828
+ }
16794
16829
  },
16795
16830
  settingsPanelDisabled: false,
16796
16831
  spellCheck: {
@@ -16810,7 +16845,31 @@ var defaults = {};
16810
16845
  },
16811
16846
  teacherInstructions: {
16812
16847
  settings: true,
16813
- label: 'Teacher Instructions'
16848
+ label: 'Teacher Instructions',
16849
+ inputConfiguration: {
16850
+ audio: {
16851
+ disabled: false
16852
+ },
16853
+ video: {
16854
+ disabled: false
16855
+ },
16856
+ image: {
16857
+ disabled: false
16858
+ }
16859
+ }
16860
+ },
16861
+ template: {
16862
+ inputConfiguration: {
16863
+ audio: {
16864
+ disabled: false
16865
+ },
16866
+ video: {
16867
+ disabled: false
16868
+ },
16869
+ image: {
16870
+ disabled: false
16871
+ }
16872
+ }
16814
16873
  },
16815
16874
  maxLengthPerChoice: {
16816
16875
  settings: true,
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _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) {
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/explicit-constructed-response@6.4.2</title>
5
+ <title>@pie-element/explicit-constructed-response@6.5.0</title>
6
6
  <script
7
7
  type="module"
8
8
  src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pie-element/explicit-constructed-response",
3
- "version": "6.4.2",
3
+ "version": "6.5.0",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.1.6"
7
+ "version": "1.4.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/explicit-constructed-response@6.4.2</title>
5
+ <title>@pie-element/explicit-constructed-response@6.5.0</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.4.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _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) {
package/package.json CHANGED
@@ -4,16 +4,15 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "6.5.0",
7
+ "version": "6.5.1-next.48+a8e4e6ab2",
8
8
  "description": "",
9
9
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1",
11
10
  "postpublish": "../../scripts/postpublish"
12
11
  },
13
12
  "dependencies": {
14
13
  "@material-ui/core": "^3.9.2",
15
14
  "@pie-framework/pie-player-events": "^0.1.0",
16
- "@pie-lib/pie-toolbox": "1.9.0",
15
+ "@pie-lib/pie-toolbox": "1.11.1",
17
16
  "classnames": "^2.2.5",
18
17
  "lodash": "^4.17.10",
19
18
  "prop-types": "^15.6.1",
@@ -22,7 +21,7 @@
22
21
  },
23
22
  "author": "",
24
23
  "license": "ISC",
25
- "gitHead": "3aaaa00aa149439eb0cb72d04d6ff3eecf0ee4b5",
24
+ "gitHead": "a8e4e6ab27584435ce7ac3e964ccac2747402777",
26
25
  "main": "lib/index.js",
27
26
  "module": "src/index.js",
28
27
  "exports": {