@pie-element/image-cloze-association 5.6.2-next.21 → 5.7.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/image-cloze-association@5.6.1...@pie-element/image-cloze-association@5.7.0) (2024-03-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add configuration for custom buttons PD-3524 ([94d3fc9](https://github.com/pie-framework/pie-elements/commit/94d3fc9aa56ddaa41b3dbaa8bc6c2a01514b9202))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/image-cloze-association@5.6.0...@pie-element/image-cloze-association@5.6.1) (2024-03-12)
7
18
 
8
19
 
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/image-cloze-association-configure@5.4.1...@pie-element/image-cloze-association-configure@5.5.0) (2024-03-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add configuration for custom buttons PD-3524 ([94d3fc9](https://github.com/pie-framework/pie-elements/commit/94d3fc9aa56ddaa41b3dbaa8bc6c2a01514b9202))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/image-cloze-association-configure@5.4.0...@pie-element/image-cloze-association-configure@5.4.1) (2024-03-12)
7
18
 
8
19
 
@@ -11,6 +11,17 @@ var _default = {
11
11
  studentInstructionsEnabled: true
12
12
  },
13
13
  configuration: {
14
+ baseInputConfiguration: {
15
+ audio: {
16
+ disabled: false
17
+ },
18
+ video: {
19
+ disabled: false
20
+ },
21
+ image: {
22
+ disabled: false
23
+ }
24
+ },
14
25
  maxImageWidth: {
15
26
  teacherInstructions: 300
16
27
  },
@@ -25,7 +36,18 @@ var _default = {
25
36
  },
26
37
  teacherInstructions: {
27
38
  settings: true,
28
- label: 'Teacher Instructions'
39
+ label: 'Teacher Instructions',
40
+ inputConfiguration: {
41
+ audio: {
42
+ disabled: false
43
+ },
44
+ video: {
45
+ disabled: false
46
+ },
47
+ image: {
48
+ disabled: false
49
+ }
50
+ }
29
51
  },
30
52
  withRubric: {
31
53
  settings: false,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/defaults.js"],"names":["model","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","configuration","maxImageWidth","teacherInstructions","maxImageHeight","settingsPanelDisabled","spellCheck","label","settings","enabled","withRubric","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,gBAAgB,EAAE,IADb;AAELC,IAAAA,0BAA0B,EAAE,IAFvB;AAGLC,IAAAA,0BAA0B,EAAE;AAHvB,GADM;AAMbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,aAAa,EAAE;AACbC,MAAAA,mBAAmB,EAAE;AADR,KADF;AAIbC,IAAAA,cAAc,EAAE;AACdD,MAAAA,mBAAmB,EAAE;AADP,KAJH;AAObE,IAAAA,qBAAqB,EAAE,KAPV;AAQbC,IAAAA,UAAU,EAAE;AACVC,MAAAA,KAAK,EAAE,YADG;AAEVC,MAAAA,QAAQ,EAAE,KAFA;AAGVC,MAAAA,OAAO,EAAE;AAHC,KARC;AAabN,IAAAA,mBAAmB,EAAE;AACnBK,MAAAA,QAAQ,EAAE,IADS;AAEnBD,MAAAA,KAAK,EAAE;AAFY,KAbR;AAiBbG,IAAAA,UAAU,EAAE;AACVF,MAAAA,QAAQ,EAAE,KADA;AAEVD,MAAAA,KAAK,EAAE;AAFG,KAjBC;AAqBbI,IAAAA,aAAa,EAAE;AACbC,MAAAA,SAAS,EAAE,KADE;AAEbC,MAAAA,UAAU,EAAE;AAFC,KArBF;AAyBbC,IAAAA,QAAQ,EAAE;AACRN,MAAAA,QAAQ,EAAE,KADF;AAERD,MAAAA,KAAK,EAAE,kBAFC;AAGRE,MAAAA,OAAO,EAAE;AAHD,KAzBG;AA8BbM,IAAAA,eAAe,EAAE;AACfR,MAAAA,KAAK,EAAE,kBADQ;AAEfS,MAAAA,OAAO,EAAE;AAFM;AA9BJ;AANF,C","sourcesContent":["export default {\n model: {\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n },\n configuration: {\n maxImageWidth: {\n teacherInstructions: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n }\n },\n};\n"],"file":"defaults.js"}
1
+ {"version":3,"sources":["../src/defaults.js"],"names":["model","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","configuration","baseInputConfiguration","audio","disabled","video","image","maxImageWidth","teacherInstructions","maxImageHeight","settingsPanelDisabled","spellCheck","label","settings","enabled","inputConfiguration","withRubric","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,gBAAgB,EAAE,IADb;AAELC,IAAAA,0BAA0B,EAAE,IAFvB;AAGLC,IAAAA,0BAA0B,EAAE;AAHvB,GADM;AAMbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,sBAAsB,EAAE;AACtBC,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QA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sourcesContent":["export default {\n model: {\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n },\n configuration: {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n maxImageWidth: {\n teacherInstructions: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n },\n },\n};\n"],"file":"defaults.js"}
@@ -79,6 +79,8 @@ var Root = /*#__PURE__*/function (_React$Component) {
79
79
  uploadSoundSupport = _this$props.uploadSoundSupport;
80
80
 
81
81
  var _ref = configuration || {},
82
+ _ref$baseInputConfigu = _ref.baseInputConfiguration,
83
+ baseInputConfiguration = _ref$baseInputConfigu === void 0 ? {} : _ref$baseInputConfigu,
82
84
  _ref$contentDimension = _ref.contentDimensions,
83
85
  contentDimensions = _ref$contentDimension === void 0 ? {} : _ref$contentDimension,
84
86
  _ref$maxImageWidth = _ref.maxImageWidth,
@@ -109,6 +111,11 @@ var Root = /*#__PURE__*/function (_React$Component) {
109
111
  'language.enabled': language.settings && toggle(language.label, true),
110
112
  language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options)
111
113
  };
114
+
115
+ var getPluginProps = function getPluginProps(props) {
116
+ return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
117
+ };
118
+
112
119
  return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
113
120
  dimensions: contentDimensions,
114
121
  hideSettings: settingsPanelDisabled,
@@ -135,6 +142,7 @@ var Root = /*#__PURE__*/function (_React$Component) {
135
142
  imageSupport: imageSupport,
136
143
  nonEmpty: false,
137
144
  spellCheck: spellCheckEnabled,
145
+ pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration),
138
146
  maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions,
139
147
  maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions,
140
148
  uploadSoundSupport: uploadSoundSupport,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/root.jsx"],"names":["Panel","settings","toggle","dropdown","Root","teacherInstructions","props","onModelChanged","model","classes","configuration","onConfigurationChanged","imageSupport","uploadSoundSupport","contentDimensions","maxImageWidth","maxImageHeight","settingsPanelDisabled","spellCheck","withRubric","mathMlOptions","language","languageChoices","spellCheckEnabled","panelProperties","teacherInstructionsEnabled","label","rubricEnabled","enabled","options","config","Properties","promptHolder","prompt","onTeacherInstructionsChanged","React","Component","styles","theme","width","paddingTop","spacing","unit","marginBottom","propTypes","PropTypes","object","isRequired","func","shape","add"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAoCC,kBAApC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAoCD,kBAApC,CAAeC,MAAf;AAAA,IAAuBC,QAAvB,GAAoCF,kBAApC,CAAuBE,QAAvB;;IAEaC,I;;;;;;;;;;;;;;;qHACoB,UAACC,mBAAD,EAAyB;AACtD,YAAKC,KAAL,CAAWC,cAAX,iCAA+B,MAAKD,KAAL,CAAWE,KAA1C;AAAiDH,QAAAA,mBAAmB,EAAnBA;AAAjD;AACD,K;;;;;;WAED,kBAAS;AACP,wBACE,KAAKC,KADP;AAAA,UAAQG,OAAR,eAAQA,OAAR;AAAA,UAAiBD,KAAjB,eAAiBA,KAAjB;AAAA,UAAwBE,aAAxB,eAAwBA,aAAxB;AAAA,UAAuCH,cAA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'@pie-lib/pie-toolbox/config-ui';\nimport {EditableHtml} from '@pie-lib/pie-toolbox/editable-html';\nimport { withStyles } from '@material-ui/core/styles';\n\nconst { Panel, toggle, dropdown } = settings;\n\nexport class Root extends React.Component {\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n const { classes, model, configuration, onModelChanged, onConfigurationChanged, imageSupport, uploadSoundSupport } =\n this.props;\n const {\n contentDimensions = {},\n maxImageWidth = {},\n maxImageHeight = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n const { spellCheckEnabled } = model || {};\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={(model) => onModelChanged(model)}\n onChangeConfiguration={(config) => onConfigurationChanged(config)}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n {model && model.teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={maxImageWidth && maxImageWidth.teacherInstructions}\n maxImageHeight={maxImageHeight && maxImageHeight.teacherInstructions}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n <div>Image cloze association</div>\n </layout.ConfigLayout>\n );\n }\n}\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n});\n\nRoot.propTypes = {\n classes: PropTypes.object.isRequired,\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n};\n\nexport default withStyles(styles)(Root);\n"],"file":"root.js"}
1
+ {"version":3,"sources":["../src/root.jsx"],"names":["Panel","settings","toggle","dropdown","Root","teacherInstructions","props","onModelChanged","model","classes","configuration","onConfigurationChanged","imageSupport","uploadSoundSupport","baseInputConfiguration","contentDimensions","maxImageWidth","maxImageHeight","settingsPanelDisabled","spellCheck","withRubric","mathMlOptions","language","languageChoices","spellCheckEnabled","panelProperties","teacherInstructionsEnabled","label","rubricEnabled","enabled","options","getPluginProps","Object","assign","config","Properties","promptHolder","prompt","onTeacherInstructionsChanged","inputConfiguration","React","Component","styles","theme","width","paddingTop","spacing","unit","marginBottom","propTypes","PropTypes","object","isRequired","func","shape","add"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAoCC,kBAApC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAoCD,kBAApC,CAAeC,MAAf;AAAA,IAAuBC,QAAvB,GAAoCF,kBAApC,CAAuBE,QAAvB;;IAEaC,I;;;;;;;;;;;;;;;qHACoB,UAACC,mBAAD,EAAyB;AACtD,YAAKC,KAAL,CAAWC,cAAX,iCAA+B,MAAKD,KAAL,CAAWE,KAA1C;AAAiDH,QAAAA,mBAAmB,EAA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CAAiBC,UAJT;AAKf1C,EAAAA,aAAa,EAAEwC,sBAAUC,MAAV,CAAiBC,UALjB;AAMfxC,EAAAA,YAAY,EAAEsC,sBAAUI,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEL,sBAAUG,IAAV,CAAeD,UADQ;AAE5B,cAAQF,sBAAUG,IAAV,CAAeD;AAFK,GAAhB,CANC;AAUfvC,EAAAA,kBAAkB,EAAEqC,sBAAUI,KAAV,CAAgB;AAClCC,IAAAA,GAAG,EAAEL,sBAAUG,IAAV,CAAeD,UADc;AAElC,cAAQF,sBAAUG,IAAV,CAAeD;AAFW,GAAhB;AAVL,CAAjB;;eAgBe,wBAAWV,MAAX,EAAmBtC,IAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { settings, layout, InputContainer } from '@pie-lib/pie-toolbox/config-ui';\nimport { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';\nimport { withStyles } from '@material-ui/core/styles';\n\nconst { Panel, toggle, dropdown } = settings;\n\nexport class Root extends React.Component {\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n const { classes, model, configuration, onModelChanged, onConfigurationChanged, imageSupport, uploadSoundSupport } =\n this.props;\n const {\n baseInputConfiguration = {},\n contentDimensions = {},\n maxImageWidth = {},\n maxImageHeight = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n const { spellCheckEnabled } = model || {};\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n\n const getPluginProps = (props) => {\n return Object.assign(\n {\n ...baseInputConfiguration,\n },\n props || {},\n );\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={(model) => onModelChanged(model)}\n onChangeConfiguration={(config) => onConfigurationChanged(config)}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n {model && model.teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n maxImageWidth={maxImageWidth && maxImageWidth.teacherInstructions}\n maxImageHeight={maxImageHeight && maxImageHeight.teacherInstructions}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n <div>Image cloze association</div>\n </layout.ConfigLayout>\n );\n }\n}\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n});\n\nRoot.propTypes = {\n classes: PropTypes.object.isRequired,\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n};\n\nexport default withStyles(styles)(Root);\n"],"file":"root.js"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/image-cloze-association-configure",
3
3
  "private": true,
4
- "version": "5.4.1",
4
+ "version": "5.5.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -5,6 +5,11 @@ export default {
5
5
  studentInstructionsEnabled: true,
6
6
  },
7
7
  configuration: {
8
+ baseInputConfiguration: {
9
+ audio: { disabled: false },
10
+ video: { disabled: false },
11
+ image: { disabled: false },
12
+ },
8
13
  maxImageWidth: {
9
14
  teacherInstructions: 300,
10
15
  },
@@ -20,6 +25,11 @@ export default {
20
25
  teacherInstructions: {
21
26
  settings: true,
22
27
  label: 'Teacher Instructions',
28
+ inputConfiguration: {
29
+ audio: { disabled: false },
30
+ video: { disabled: false },
31
+ image: { disabled: false },
32
+ },
23
33
  },
24
34
  withRubric: {
25
35
  settings: false,
@@ -37,6 +47,6 @@ export default {
37
47
  languageChoices: {
38
48
  label: 'Language Choices',
39
49
  options: [],
40
- }
50
+ },
41
51
  },
42
52
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { settings, layout, InputContainer } from '@pie-lib/pie-toolbox/config-ui';
4
- import {EditableHtml} from '@pie-lib/pie-toolbox/editable-html';
4
+ import { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';
5
5
  import { withStyles } from '@material-ui/core/styles';
6
6
 
7
7
  const { Panel, toggle, dropdown } = settings;
@@ -15,6 +15,7 @@ export class Root extends React.Component {
15
15
  const { classes, model, configuration, onModelChanged, onConfigurationChanged, imageSupport, uploadSoundSupport } =
16
16
  this.props;
17
17
  const {
18
+ baseInputConfiguration = {},
18
19
  contentDimensions = {},
19
20
  maxImageWidth = {},
20
21
  maxImageHeight = {},
@@ -36,6 +37,15 @@ export class Root extends React.Component {
36
37
  language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),
37
38
  };
38
39
 
40
+ const getPluginProps = (props) => {
41
+ return Object.assign(
42
+ {
43
+ ...baseInputConfiguration,
44
+ },
45
+ props || {},
46
+ );
47
+ };
48
+
39
49
  return (
40
50
  <layout.ConfigLayout
41
51
  dimensions={contentDimensions}
@@ -61,6 +71,7 @@ export class Root extends React.Component {
61
71
  imageSupport={imageSupport}
62
72
  nonEmpty={false}
63
73
  spellCheck={spellCheckEnabled}
74
+ pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}
64
75
  maxImageWidth={maxImageWidth && maxImageWidth.teacherInstructions}
65
76
  maxImageHeight={maxImageHeight && maxImageHeight.teacherInstructions}
66
77
  uploadSoundSupport={uploadSoundSupport}
@@ -3,6 +3,45 @@
3
3
  "additionalProperties": false,
4
4
  "type": "object",
5
5
  "properties": {
6
+ "baseInputConfiguration": {
7
+ "title": "EditableHtmlConfigureProp",
8
+ "type": "object",
9
+ "properties": {
10
+ "audio": {
11
+ "title": "EditableHtmlButtonConfigure",
12
+ "type": "object",
13
+ "properties": {
14
+ "disabled": {
15
+ "description": "Indicates if the plugin is disabled or not",
16
+ "type": "boolean",
17
+ "title": "disabled"
18
+ }
19
+ }
20
+ },
21
+ "video": {
22
+ "title": "EditableHtmlButtonConfigure",
23
+ "type": "object",
24
+ "properties": {
25
+ "disabled": {
26
+ "description": "Indicates if the plugin is disabled or not",
27
+ "type": "boolean",
28
+ "title": "disabled"
29
+ }
30
+ }
31
+ },
32
+ "image": {
33
+ "title": "EditableHtmlButtonConfigure",
34
+ "type": "object",
35
+ "properties": {
36
+ "disabled": {
37
+ "description": "Indicates if the plugin is disabled or not",
38
+ "type": "boolean",
39
+ "title": "disabled"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ },
6
45
  "maxImageWidth": {
7
46
  "title": "ConfigureMaxImageDimensionsProp",
8
47
  "type": "object",
@@ -67,9 +106,48 @@
67
106
  }
68
107
  },
69
108
  "teacherInstructions": {
70
- "title": "ConfigureProp",
109
+ "title": "EditableHtmlPluginConfigure",
71
110
  "type": "object",
72
111
  "properties": {
112
+ "inputConfiguration": {
113
+ "title": "EditableHtmlConfigureProp",
114
+ "type": "object",
115
+ "properties": {
116
+ "audio": {
117
+ "title": "EditableHtmlButtonConfigure",
118
+ "type": "object",
119
+ "properties": {
120
+ "disabled": {
121
+ "description": "Indicates if the plugin is disabled or not",
122
+ "type": "boolean",
123
+ "title": "disabled"
124
+ }
125
+ }
126
+ },
127
+ "video": {
128
+ "title": "EditableHtmlButtonConfigure",
129
+ "type": "object",
130
+ "properties": {
131
+ "disabled": {
132
+ "description": "Indicates if the plugin is disabled or not",
133
+ "type": "boolean",
134
+ "title": "disabled"
135
+ }
136
+ }
137
+ },
138
+ "image": {
139
+ "title": "EditableHtmlButtonConfigure",
140
+ "type": "object",
141
+ "properties": {
142
+ "disabled": {
143
+ "description": "Indicates if the plugin is disabled or not",
144
+ "type": "boolean",
145
+ "title": "disabled"
146
+ }
147
+ }
148
+ }
149
+ }
150
+ },
73
151
  "settings": {
74
152
  "description": "Indicates if the item has to be displayed in the Settings Panel",
75
153
  "type": "boolean",
@@ -222,6 +300,56 @@
222
300
  }
223
301
  },
224
302
  "definitions": {
303
+ "EditableHtmlConfigureProp": {
304
+ "title": "EditableHtmlConfigureProp",
305
+ "type": "object",
306
+ "properties": {
307
+ "audio": {
308
+ "title": "EditableHtmlButtonConfigure",
309
+ "type": "object",
310
+ "properties": {
311
+ "disabled": {
312
+ "description": "Indicates if the plugin is disabled or not",
313
+ "type": "boolean",
314
+ "title": "disabled"
315
+ }
316
+ }
317
+ },
318
+ "video": {
319
+ "title": "EditableHtmlButtonConfigure",
320
+ "type": "object",
321
+ "properties": {
322
+ "disabled": {
323
+ "description": "Indicates if the plugin is disabled or not",
324
+ "type": "boolean",
325
+ "title": "disabled"
326
+ }
327
+ }
328
+ },
329
+ "image": {
330
+ "title": "EditableHtmlButtonConfigure",
331
+ "type": "object",
332
+ "properties": {
333
+ "disabled": {
334
+ "description": "Indicates if the plugin is disabled or not",
335
+ "type": "boolean",
336
+ "title": "disabled"
337
+ }
338
+ }
339
+ }
340
+ }
341
+ },
342
+ "EditableHtmlButtonConfigure": {
343
+ "title": "EditableHtmlButtonConfigure",
344
+ "type": "object",
345
+ "properties": {
346
+ "disabled": {
347
+ "description": "Indicates if the plugin is disabled or not",
348
+ "type": "boolean",
349
+ "title": "disabled"
350
+ }
351
+ }
352
+ },
225
353
  "ConfigureMaxImageDimensionsProp": {
226
354
  "title": "ConfigureMaxImageDimensionsProp",
227
355
  "type": "object",
@@ -259,6 +387,61 @@
259
387
  }
260
388
  }
261
389
  },
390
+ "EditableHtmlPluginConfigure": {
391
+ "title": "EditableHtmlPluginConfigure",
392
+ "type": "object",
393
+ "properties": {
394
+ "inputConfiguration": {
395
+ "title": "EditableHtmlConfigureProp",
396
+ "type": "object",
397
+ "properties": {
398
+ "audio": {
399
+ "title": "EditableHtmlButtonConfigure",
400
+ "type": "object",
401
+ "properties": {
402
+ "disabled": {
403
+ "description": "Indicates if the plugin is disabled or not",
404
+ "type": "boolean",
405
+ "title": "disabled"
406
+ }
407
+ }
408
+ },
409
+ "video": {
410
+ "title": "EditableHtmlButtonConfigure",
411
+ "type": "object",
412
+ "properties": {
413
+ "disabled": {
414
+ "description": "Indicates if the plugin is disabled or not",
415
+ "type": "boolean",
416
+ "title": "disabled"
417
+ }
418
+ }
419
+ },
420
+ "image": {
421
+ "title": "EditableHtmlButtonConfigure",
422
+ "type": "object",
423
+ "properties": {
424
+ "disabled": {
425
+ "description": "Indicates if the plugin is disabled or not",
426
+ "type": "boolean",
427
+ "title": "disabled"
428
+ }
429
+ }
430
+ }
431
+ }
432
+ },
433
+ "settings": {
434
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
435
+ "type": "boolean",
436
+ "title": "settings"
437
+ },
438
+ "label": {
439
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
440
+ "type": "string",
441
+ "title": "label"
442
+ }
443
+ }
444
+ },
262
445
  "ConfigurePropWithEnabled": {
263
446
  "title": "ConfigurePropWithEnabled",
264
447
  "type": "object",
@@ -2,6 +2,34 @@ Config Object for @pie-elements/image-cloze-association
2
2
 
3
3
  The schema defines the following properties:
4
4
 
5
+ # `baseInputConfiguration` (object)
6
+
7
+ Properties of the `baseInputConfiguration` object:
8
+
9
+ ## `audio` (object)
10
+
11
+ Properties of the `audio` object:
12
+
13
+ ### `disabled` (boolean)
14
+
15
+ Indicates if the plugin is disabled or not
16
+
17
+ ## `video` (object)
18
+
19
+ Properties of the `video` object:
20
+
21
+ ### `disabled` (boolean)
22
+
23
+ Indicates if the plugin is disabled or not
24
+
25
+ ## `image` (object)
26
+
27
+ Properties of the `image` object:
28
+
29
+ ### `disabled` (boolean)
30
+
31
+ Indicates if the plugin is disabled or not
32
+
5
33
  # `maxImageWidth` (object)
6
34
 
7
35
  Properties of the `maxImageWidth` object:
@@ -54,6 +82,34 @@ Indicates the label for the item that has to be displayed in the Settings Panel
54
82
 
55
83
  Properties of the `teacherInstructions` object:
56
84
 
85
+ ## `inputConfiguration` (object)
86
+
87
+ Properties of the `inputConfiguration` object:
88
+
89
+ ### `audio` (object)
90
+
91
+ Properties of the `audio` object:
92
+
93
+ #### `disabled` (boolean)
94
+
95
+ Indicates if the plugin is disabled or not
96
+
97
+ ### `video` (object)
98
+
99
+ Properties of the `video` object:
100
+
101
+ #### `disabled` (boolean)
102
+
103
+ Indicates if the plugin is disabled or not
104
+
105
+ ### `image` (object)
106
+
107
+ Properties of the `image` object:
108
+
109
+ #### `disabled` (boolean)
110
+
111
+ Indicates if the plugin is disabled or not
112
+
57
113
  ## `settings` (boolean)
58
114
 
59
115
  Indicates if the item has to be displayed in the Settings Panel
@@ -172,6 +228,42 @@ Default: `true`
172
228
 
173
229
  The schema defines the following additional types:
174
230
 
231
+ ## `EditableHtmlConfigureProp` (object)
232
+
233
+ Properties of the `EditableHtmlConfigureProp` object:
234
+
235
+ ### `audio` (object)
236
+
237
+ Properties of the `audio` object:
238
+
239
+ #### `disabled` (boolean)
240
+
241
+ Indicates if the plugin is disabled or not
242
+
243
+ ### `video` (object)
244
+
245
+ Properties of the `video` object:
246
+
247
+ #### `disabled` (boolean)
248
+
249
+ Indicates if the plugin is disabled or not
250
+
251
+ ### `image` (object)
252
+
253
+ Properties of the `image` object:
254
+
255
+ #### `disabled` (boolean)
256
+
257
+ Indicates if the plugin is disabled or not
258
+
259
+ ## `EditableHtmlButtonConfigure` (object)
260
+
261
+ Properties of the `EditableHtmlButtonConfigure` object:
262
+
263
+ ### `disabled` (boolean)
264
+
265
+ Indicates if the plugin is disabled or not
266
+
175
267
  ## `ConfigureMaxImageDimensionsProp` (object)
176
268
 
177
269
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -200,6 +292,46 @@ Indicates if the item has to be displayed in the Settings Panel
200
292
 
201
293
  Indicates the label for the item that has to be displayed in the Settings Panel
202
294
 
295
+ ## `EditableHtmlPluginConfigure` (object)
296
+
297
+ Properties of the `EditableHtmlPluginConfigure` object:
298
+
299
+ ### `inputConfiguration` (object)
300
+
301
+ Properties of the `inputConfiguration` object:
302
+
303
+ #### `audio` (object)
304
+
305
+ Properties of the `audio` object:
306
+
307
+ ##### `disabled` (boolean)
308
+
309
+ Indicates if the plugin is disabled or not
310
+
311
+ #### `video` (object)
312
+
313
+ Properties of the `video` object:
314
+
315
+ ##### `disabled` (boolean)
316
+
317
+ Indicates if the plugin is disabled or not
318
+
319
+ #### `image` (object)
320
+
321
+ Properties of the `image` object:
322
+
323
+ ##### `disabled` (boolean)
324
+
325
+ Indicates if the plugin is disabled or not
326
+
327
+ ### `settings` (boolean)
328
+
329
+ Indicates if the item has to be displayed in the Settings Panel
330
+
331
+ ### `label` (string)
332
+
333
+ Indicates the label for the item that has to be displayed in the Settings Panel
334
+
203
335
  ## `ConfigurePropWithEnabled` (object)
204
336
 
205
337
  Properties of the `ConfigurePropWithEnabled` object:
@@ -234,6 +234,56 @@
234
234
  "spellCheckEnabled"
235
235
  ],
236
236
  "definitions": {
237
+ "EditableHtmlConfigureProp": {
238
+ "title": "EditableHtmlConfigureProp",
239
+ "type": "object",
240
+ "properties": {
241
+ "audio": {
242
+ "title": "EditableHtmlButtonConfigure",
243
+ "type": "object",
244
+ "properties": {
245
+ "disabled": {
246
+ "description": "Indicates if the plugin is disabled or not",
247
+ "type": "boolean",
248
+ "title": "disabled"
249
+ }
250
+ }
251
+ },
252
+ "video": {
253
+ "title": "EditableHtmlButtonConfigure",
254
+ "type": "object",
255
+ "properties": {
256
+ "disabled": {
257
+ "description": "Indicates if the plugin is disabled or not",
258
+ "type": "boolean",
259
+ "title": "disabled"
260
+ }
261
+ }
262
+ },
263
+ "image": {
264
+ "title": "EditableHtmlButtonConfigure",
265
+ "type": "object",
266
+ "properties": {
267
+ "disabled": {
268
+ "description": "Indicates if the plugin is disabled or not",
269
+ "type": "boolean",
270
+ "title": "disabled"
271
+ }
272
+ }
273
+ }
274
+ }
275
+ },
276
+ "EditableHtmlButtonConfigure": {
277
+ "title": "EditableHtmlButtonConfigure",
278
+ "type": "object",
279
+ "properties": {
280
+ "disabled": {
281
+ "description": "Indicates if the plugin is disabled or not",
282
+ "type": "boolean",
283
+ "title": "disabled"
284
+ }
285
+ }
286
+ },
237
287
  "ConfigureMaxImageDimensionsProp": {
238
288
  "title": "ConfigureMaxImageDimensionsProp",
239
289
  "type": "object",
@@ -271,6 +321,61 @@
271
321
  }
272
322
  }
273
323
  },
324
+ "EditableHtmlPluginConfigure": {
325
+ "title": "EditableHtmlPluginConfigure",
326
+ "type": "object",
327
+ "properties": {
328
+ "inputConfiguration": {
329
+ "title": "EditableHtmlConfigureProp",
330
+ "type": "object",
331
+ "properties": {
332
+ "audio": {
333
+ "title": "EditableHtmlButtonConfigure",
334
+ "type": "object",
335
+ "properties": {
336
+ "disabled": {
337
+ "description": "Indicates if the plugin is disabled or not",
338
+ "type": "boolean",
339
+ "title": "disabled"
340
+ }
341
+ }
342
+ },
343
+ "video": {
344
+ "title": "EditableHtmlButtonConfigure",
345
+ "type": "object",
346
+ "properties": {
347
+ "disabled": {
348
+ "description": "Indicates if the plugin is disabled or not",
349
+ "type": "boolean",
350
+ "title": "disabled"
351
+ }
352
+ }
353
+ },
354
+ "image": {
355
+ "title": "EditableHtmlButtonConfigure",
356
+ "type": "object",
357
+ "properties": {
358
+ "disabled": {
359
+ "description": "Indicates if the plugin is disabled or not",
360
+ "type": "boolean",
361
+ "title": "disabled"
362
+ }
363
+ }
364
+ }
365
+ }
366
+ },
367
+ "settings": {
368
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
369
+ "type": "boolean",
370
+ "title": "settings"
371
+ },
372
+ "label": {
373
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
374
+ "type": "string",
375
+ "title": "label"
376
+ }
377
+ }
378
+ },
274
379
  "ConfigurePropWithEnabled": {
275
380
  "title": "ConfigurePropWithEnabled",
276
381
  "type": "object",
@@ -186,6 +186,42 @@ The html Element tag name
186
186
 
187
187
  The schema defines the following additional types:
188
188
 
189
+ ## `EditableHtmlConfigureProp` (object)
190
+
191
+ Properties of the `EditableHtmlConfigureProp` object:
192
+
193
+ ### `audio` (object)
194
+
195
+ Properties of the `audio` object:
196
+
197
+ #### `disabled` (boolean)
198
+
199
+ Indicates if the plugin is disabled or not
200
+
201
+ ### `video` (object)
202
+
203
+ Properties of the `video` object:
204
+
205
+ #### `disabled` (boolean)
206
+
207
+ Indicates if the plugin is disabled or not
208
+
209
+ ### `image` (object)
210
+
211
+ Properties of the `image` object:
212
+
213
+ #### `disabled` (boolean)
214
+
215
+ Indicates if the plugin is disabled or not
216
+
217
+ ## `EditableHtmlButtonConfigure` (object)
218
+
219
+ Properties of the `EditableHtmlButtonConfigure` object:
220
+
221
+ ### `disabled` (boolean)
222
+
223
+ Indicates if the plugin is disabled or not
224
+
189
225
  ## `ConfigureMaxImageDimensionsProp` (object)
190
226
 
191
227
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -214,6 +250,46 @@ Indicates if the item has to be displayed in the Settings Panel
214
250
 
215
251
  Indicates the label for the item that has to be displayed in the Settings Panel
216
252
 
253
+ ## `EditableHtmlPluginConfigure` (object)
254
+
255
+ Properties of the `EditableHtmlPluginConfigure` object:
256
+
257
+ ### `inputConfiguration` (object)
258
+
259
+ Properties of the `inputConfiguration` object:
260
+
261
+ #### `audio` (object)
262
+
263
+ Properties of the `audio` object:
264
+
265
+ ##### `disabled` (boolean)
266
+
267
+ Indicates if the plugin is disabled or not
268
+
269
+ #### `video` (object)
270
+
271
+ Properties of the `video` object:
272
+
273
+ ##### `disabled` (boolean)
274
+
275
+ Indicates if the plugin is disabled or not
276
+
277
+ #### `image` (object)
278
+
279
+ Properties of the `image` object:
280
+
281
+ ##### `disabled` (boolean)
282
+
283
+ Indicates if the plugin is disabled or not
284
+
285
+ ### `settings` (boolean)
286
+
287
+ Indicates if the item has to be displayed in the Settings Panel
288
+
289
+ ### `label` (string)
290
+
291
+ Indicates the label for the item that has to be displayed in the Settings Panel
292
+
217
293
  ## `ConfigurePropWithEnabled` (object)
218
294
 
219
295
  Properties of the `ConfigurePropWithEnabled` object:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/image-cloze-association",
3
- "version": "5.6.2-next.21+5a7b90230",
3
+ "version": "5.7.0",
4
4
  "description": "",
5
5
  "repository": "pie-framework/pie-elements",
6
6
  "publishConfig": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "author": "pie framework developers",
20
20
  "license": "ISC",
21
- "gitHead": "5a7b9023075075b7487c9d9b6b473818f1387d0c",
21
+ "gitHead": "9830d061505c85ff915033bbaf09dd57e75ceebc",
22
22
  "scripts": {
23
23
  "postpublish": "../../scripts/postpublish"
24
24
  },