@pie-element/drawing-response 7.4.2-next.9 → 7.5.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
+ # [7.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@7.4.1...@pie-element/drawing-response@7.5.0) (2024-03-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add configuration for custom buttons PD-3518 ([992f573](https://github.com/pie-framework/pie-elements/commit/992f5736c5d34f0d05b071c6b5be3c11c1301fae))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@7.4.0...@pie-element/drawing-response@7.4.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
+ # [7.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@7.4.1...@pie-element/drawing-response-configure@7.5.0) (2024-03-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add configuration for custom buttons PD-3518 ([992f573](https://github.com/pie-framework/pie-elements/commit/992f5736c5d34f0d05b071c6b5be3c11c1301fae))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@7.4.0...@pie-element/drawing-response-configure@7.4.1) (2024-03-12)
7
18
 
8
19
 
@@ -20,6 +20,17 @@ var _default = {
20
20
  toolbarEditorPosition: 'bottom'
21
21
  },
22
22
  configuration: {
23
+ baseInputConfiguration: {
24
+ audio: {
25
+ disabled: false
26
+ },
27
+ video: {
28
+ disabled: false
29
+ },
30
+ image: {
31
+ disabled: false
32
+ }
33
+ },
23
34
  spellCheck: {
24
35
  label: 'Spellcheck',
25
36
  settings: false,
@@ -31,12 +42,34 @@ var _default = {
31
42
  },
32
43
  prompt: {
33
44
  settings: true,
34
- label: 'Prompt'
45
+ label: 'Prompt',
46
+ inputConfiguration: {
47
+ audio: {
48
+ disabled: false
49
+ },
50
+ video: {
51
+ disabled: false
52
+ },
53
+ image: {
54
+ disabled: false
55
+ }
56
+ }
35
57
  },
36
58
  settingsPanelDisabled: false,
37
59
  teacherInstructions: {
38
60
  settings: true,
39
- label: 'Teacher Instructions'
61
+ label: 'Teacher Instructions',
62
+ inputConfiguration: {
63
+ audio: {
64
+ disabled: false
65
+ },
66
+ video: {
67
+ disabled: false
68
+ },
69
+ image: {
70
+ disabled: false
71
+ }
72
+ }
40
73
  },
41
74
  maxImageWidth: {
42
75
  teacherInstructions: 300,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/defaults.js"],"names":["model","prompt","imageUrl","imageDimensions","height","width","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","backgroundImageEnabled","spellCheckEnabled","toolbarEditorPosition","configuration","spellCheck","label","settings","enabled","backgroundImage","settingsPanelDisabled","teacherInstructions","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,6BADH;AAELC,IAAAA,QAAQ,EAAE,EAFL;AAGLC,IAAAA,eAAe,EAAE;AACfC,MAAAA,MAAM,EAAE,CADO;AAEfC,MAAAA,KAAK,EAAE;AAFQ,KAHZ;AAOLC,IAAAA,aAAa,EAAE,IAPV;AAQLC,IAAAA,0BAA0B,EAAE,IARvB;AASLC,IAAAA,0BAA0B,EAAE,IATvB;AAULC,IAAAA,sBAAsB,EAAE,IAVnB;AAWLC,IAAAA,iBAAiB,EAAE,IAXd;AAYLC,IAAAA,qBAAqB,EAAE;AAZlB,GADM;AAebC,EAAAA,aAAa,EAAE;AACbC,IAAAA,UAAU,EAAE;AACVC,MAAAA,KAAK,EAAE,YADG;AAEVC,MAAAA,QAAQ,EAAE,KAFA;AAGVC,MAAAA,OAAO,EAAE;AAHC,KADC;AAMbC,IAAAA,eAAe,EAAE;AACfF,MAAAA,QAAQ,EAAE,IADK;AAEfD,MAAAA,KAAK,EAAE;AAFQ,KANJ;AAUbb,IAAAA,MAAM,EAAE;AACNc,MAAAA,QAAQ,EAAE,IADJ;AAEND,MAAAA,KAAK,EAAE;AAFD,KAVK;AAcbI,IAAAA,qBAAqB,EAAE,KAdV;AAebC,IAAAA,mBAAmB,EAAE;AACnBJ,MAAAA,QAAQ,EAAE,IADS;AAEnBD,MAAAA,KAAK,EAAE;AAFY,KAfR;AAmBbM,IAAAA,aAAa,EAAE;AACbD,MAAAA,mBAAmB,EAAE,GADR;AAEblB,MAAAA,MAAM,EAAE;AAFK,KAnBF;AAuBboB,IAAAA,cAAc,EAAE;AACdF,MAAAA,mBAAmB,EAAE,GADP;AAEdlB,MAAAA,MAAM,EAAE;AAFM,KAvBH;AA2BbqB,IAAAA,UAAU,EAAE;AACVP,MAAAA,QAAQ,EAAE,KADA;AAEVD,MAAAA,KAAK,EAAE;AAFG,KA3BC;AA+BbS,IAAAA,aAAa,EAAE;AACbC,MAAAA,SAAS,EAAE,KADE;AAEbC,MAAAA,UAAU,EAAE;AAFC,KA/BF;AAmCbC,IAAAA,QAAQ,EAAE;AACRX,MAAAA,QAAQ,EAAE,KADF;AAERD,MAAAA,KAAK,EAAE,kBAFC;AAGRE,MAAAA,OAAO,EAAE;AAHD,KAnCG;AAwCbW,IAAAA,eAAe,EAAE;AACfb,MAAAA,KAAK,EAAE,kBADQ;AAEfc,MAAAA,OAAO,EAAE;AAFM;AAxCJ;AAfF,C","sourcesContent":["export default {\n model: {\n prompt: 'This is the question prompt',\n imageUrl: '',\n imageDimensions: {\n height: 0,\n width: 0,\n },\n promptEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n backgroundImageEnabled: true,\n spellCheckEnabled: true,\n toolbarEditorPosition: 'bottom',\n },\n configuration: {\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n backgroundImage: {\n settings: true,\n label: 'Background Image',\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n },\n settingsPanelDisabled: false,\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\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","prompt","imageUrl","imageDimensions","height","width","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","backgroundImageEnabled","spellCheckEnabled","toolbarEditorPosition","configuration","baseInputConfiguration","audio","disabled","video","image","spellCheck","label","settings","enabled","backgroundImage","inputConfiguration","settingsPanelDisabled","teacherInstructions","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,6BADH;AAELC,IAAAA,QAAQ,EAAE,EAFL;AAGLC,IAAAA,eAAe,EAAE;AACfC,MAAAA,MAAM,EAAE,CADO;AAEfC,MAAAA,KAAK,EAAE;AAFQ,KAHZ;AAOLC,IAAAA,aAAa,EAAE,IAPV;AAQLC,IAAAA,0BAA0B,EAAE,IARvB;AASLC,IAAAA,0BAA0B,EAAE,IATvB;AAULC,IAAAA,sBAAsB,EAAE,IAVnB;AAWLC,IAAAA,iBAAiB,EAAE,IAXd;AAYLC,IAAAA,qBAAqB,EAAE;AAZlB,GAD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D,MAAAA,mBAAmB,EAAE,GADR;AAEbxB,MAAAA,MAAM,EAAE;AAFK,KAlCF;AAsCb0B,IAAAA,cAAc,EAAE;AACdF,MAAAA,mBAAmB,EAAE,GADP;AAEdxB,MAAAA,MAAM,EAAE;AAFM,KAtCH;AA0Cb2B,IAAAA,UAAU,EAAE;AACVR,MAAAA,QAAQ,EAAE,KADA;AAEVD,MAAAA,KAAK,EAAE;AAFG,KA1CC;AA8CbU,IAAAA,aAAa,EAAE;AACbC,MAAAA,SAAS,EAAE,KADE;AAEbC,MAAAA,UAAU,EAAE;AAFC,KA9CF;AAkDbC,IAAAA,QAAQ,EAAE;AACRZ,MAAAA,QAAQ,EAAE,KADF;AAERD,MAAAA,KAAK,EAAE,kBAFC;AAGRE,MAAAA,OAAO,EAAE;AAHD,KAlDG;AAuDbY,IAAAA,eAAe,EAAE;AACfd,MAAAA,KAAK,EAAE,kBADQ;AAEfe,MAAAA,OAAO,EAAE;AAFM;AAvDJ;AAfF,C","sourcesContent":["export default {\n model: {\n prompt: 'This is the question prompt',\n imageUrl: '',\n imageDimensions: {\n height: 0,\n width: 0,\n },\n promptEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n backgroundImageEnabled: true,\n spellCheckEnabled: true,\n toolbarEditorPosition: 'bottom',\n },\n configuration: {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n backgroundImage: {\n settings: true,\n label: 'Background Image',\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n },\n settingsPanelDisabled: false,\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 maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\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"}
@@ -113,6 +113,8 @@ var Root = /*#__PURE__*/function (_React$Component) {
113
113
  uploadSoundSupport = _this$props5.uploadSoundSupport;
114
114
 
115
115
  var _ref = configuration || {},
116
+ _ref$baseInputConfigu = _ref.baseInputConfiguration,
117
+ baseInputConfiguration = _ref$baseInputConfigu === void 0 ? {} : _ref$baseInputConfigu,
116
118
  _ref$backgroundImage = _ref.backgroundImage,
117
119
  backgroundImage = _ref$backgroundImage === void 0 ? {} : _ref$backgroundImage,
118
120
  _ref$contentDimension = _ref.contentDimensions,
@@ -160,6 +162,11 @@ var Root = /*#__PURE__*/function (_React$Component) {
160
162
  spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
161
163
  rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
162
164
  };
165
+
166
+ var getPluginProps = function getPluginProps(props) {
167
+ return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
168
+ };
169
+
163
170
  return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
164
171
  dimensions: contentDimensions,
165
172
  hideSettings: settingsPanelDisabled,
@@ -182,6 +189,7 @@ var Root = /*#__PURE__*/function (_React$Component) {
182
189
  imageSupport: imageSupport,
183
190
  nonEmpty: false,
184
191
  toolbarOpts: toolbarOpts,
192
+ pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration),
185
193
  spellCheck: spellCheckEnabled,
186
194
  maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
187
195
  maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
@@ -200,6 +208,7 @@ var Root = /*#__PURE__*/function (_React$Component) {
200
208
  onChange: this.onPromptChanged,
201
209
  toolbarOpts: toolbarOpts,
202
210
  spellCheck: spellCheckEnabled,
211
+ pluginProps: getPluginProps(prompt === null || prompt === void 0 ? void 0 : prompt.inputConfiguration),
203
212
  imageSupport: imageSupport,
204
213
  maxImageWidth: defaultImageMaxWidth,
205
214
  maxImageHeight: defaultImageMaxHeight,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/root.jsx"],"names":["Panel","settings","toggle","dropdown","Root","prompt","props","model","onModelChanged","update","teacherInstructions","dimensions","imageDimensions","imageUrl","classes","configuration","imageSupport","onConfigurationChanged","uploadSoundSupport","backgroundImage","contentDimensions","maxImageWidth","maxImageHeight","settingsPanelDisabled","spellCheck","withRubric","language","languageChoices","mathMlOptions","backgroundImageEnabled","promptEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","defaultImageMaxWidth","defaultImageMaxHeight","toolbarOpts","position","panelSettings","label","enabled","options","panelProperties","rubricEnabled","Settings","Properties","promptHolder","onTeacherInstructionsChanged","onPromptChanged","onUpdateImageDimension","onImageUpload","React","Component","styles","theme","paddingTop","spacing","unit","marginBottom","width","propTypes","PropTypes","object","isRequired","shape","add","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAoCC,kBAApC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAoCD,kBAApC,CAAeC,MAAf;AAAA,IAAuBC,QAAvB,GAAoCF,kBAApC,CAAuBE,QAAvB;;IAEaC,I;;;;;;;;;;;;;;;wGACO,UAACC,MAAD,EAAY;AAC5B,wBAAkC,MAAKC,KAAvC;AAAA,UAAQC,KAAR,eAAQA,KAAR;AAAA,UAAeC,cAAf,eAAeA,cAAf;AACA,UAAMC,MA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,sBAAsB,EAAE,KAAKoC,sBAF/B;AAGE,QAAA,aAAa,EAAE,KAAKC,aAHtB;AAIE,QAAA,eAAe,EAAE3C,KAAK,CAACK;AAJzB,QAHF,CApDJ,CADF;AAkED;;;EAzIuBuC,kBAAMC,S;;;;AA4IhC,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBR,IAAAA,YAAY,EAAE;AACZS,MAAAA,UAAU,EAAED,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CADrB;AAEZC,MAAAA,YAAY,EAAEJ,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CAFvB;AAGZE,MAAAA,KAAK,EAAE;AAHK;AADW,GAAZ;AAAA,CAAf;;AAQAvD,IAAI,CAACwD,SAAL,GAAiB;AACf9C,EAAAA,OAAO,EAAE+C,sBAAUC,MAAV,CAAiBC,UADX;AAEfhD,EAAAA,aAAa,EAAE8C,sBAAUC,MAFV;AAGfvD,EAAAA,KAAK,EAAEsD,sBAAUC,MAAV,CAAiBC,UAHT;AAIf/C,EAAAA,YAAY,EAAE6C,sBAAUG,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEJ,sBAAUK,IADa;AAE5B,cAAQL,sBAAUK;AAFU,GAAhB,CAJC;AAQfhD,EAAAA,kBAAkB,EAAE2C,sBAAUG,KAAV,CAAgB;AAClCC,IAAAA,GAAG,EAAEJ,sBAAUK,IADmB;AAElC,cAAQL,sBAAUK;AAFgB,GAAhB,CARL;AAYf1D,EAAAA,cAAc,EAAEqD,sBAAUK,IAAV,CAAeH,UAZhB;AAaf9C,EAAAA,sBAAsB,EAAE4C,sBAAUK,IAAV,CAAeH;AAbxB,CAAjB;;eAgBe,wBAAWV,MAAX,EAAmBjD,IAAnB,C","sourcesContent":["import React from 'react';\nimport { settings, layout, InputContainer } from '@pie-lib/pie-toolbox/config-ui';\nimport PropTypes from 'prop-types';\nimport {EditableHtml} from '@pie-lib/pie-toolbox/editable-html';\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport ImageContainer from './image-container';\nimport cloneDeep from 'lodash/cloneDeep';\n\nconst { Panel, toggle, dropdown } = settings;\n\nexport class Root extends React.Component {\n onPromptChanged = (prompt) => {\n const { model, onModelChanged } = this.props;\n const update = cloneDeep(model);\n\n onModelChanged({ ...update, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n const { model, onModelChanged } = this.props;\n\n onModelChanged({ ...model, teacherInstructions });\n };\n\n onUpdateImageDimension = (dimensions) => {\n const { model, onModelChanged } = this.props;\n\n onModelChanged({ ...model, imageDimensions: dimensions });\n };\n\n onImageUpload = (imageUrl) => {\n const { model, onModelChanged } = this.props;\n\n onModelChanged({ ...model, imageUrl });\n };\n\n render() {\n const { classes, configuration, imageSupport, model, onConfigurationChanged, onModelChanged, uploadSoundSupport } =\n this.props;\n const {\n backgroundImage = {},\n contentDimensions = {},\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n withRubric = {},\n language = {},\n languageChoices = {},\n mathMlOptions = {},\n } = configuration || {};\n const {\n backgroundImageEnabled,\n promptEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n toolbarEditorPosition,\n } = model || {};\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n const panelSettings = {\n backgroundImageEnabled: backgroundImage.settings && toggle(backgroundImage.label),\n promptEnabled: prompt.settings && toggle(prompt.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 panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onModelChanged}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label=\"Item Stem\" className={classes.promptHolder}>\n <EditableHtml\n markup={model.prompt}\n onChange={this.onPromptChanged}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n imageSupport={imageSupport}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {backgroundImageEnabled && (\n <React.Fragment>\n <Typography variant=\"subheading\">Define Background Image</Typography>\n\n <ImageContainer\n imageUrl={model.imageUrl}\n onUpdateImageDimension={this.onUpdateImageDimension}\n onImageUpload={this.onImageUpload}\n imageDimensions={model.imageDimensions}\n />\n </React.Fragment>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nconst styles = (theme) => ({\n promptHolder: {\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n width: '100%',\n },\n});\n\nRoot.propTypes = {\n classes: PropTypes.object.isRequired,\n configuration: PropTypes.object,\n model: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n};\n\nexport default withStyles(styles)(Root);\n"],"file":"root.js"}
1
+ {"version":3,"sources":["../src/root.jsx"],"names":["Panel","settings","toggle","dropdown","Root","prompt","props","model","onModelChanged","update","teacherInstructions","dimensions","imageDimensions","imageUrl","classes","configuration","imageSupport","onConfigurationChanged","uploadSoundSupport","baseInputConfiguration","backgroundImage","contentDimensions","maxImageWidth","maxImageHeight","settingsPanelDisabled","spellCheck","withRubric","language","languageChoices","mathMlOptions","backgroundImageEnabled","promptEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","defaultImageMaxWidth","defaultImageMaxHeight","toolbarOpts","position","panelSettings","label","enabled","options","panelProperties","rubricEnabled","getPluginProps","Object","assign","Settings","Properties","promptHolder","onTeacherInstructionsChanged","inputConfiguration","onPromptChanged","onUpdateImageDimension","onImageUpload","React","Component","styles","theme","paddingTop","spacing","unit","marginBottom","width","propTypes","PropTypes","object","isRequired","shape","add","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAoCC,kBAApC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAoCD,kBAApC,CAAeC,MAAf;AAAA,IAAuBC,QAAvB,GAAoCF,kBAApC,CAAuBE,QAAvB;;IAEaC,I;;;;;;;;;;;;;;;wGACO,UAACC,MAAD,EAAY;AAC5B,wBAAkC,MAAKC,KAAvC;AAAA,UAAQC,KAAR,eAAQA,K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,GAAhB,CAJC;AAQfrD,EAAAA,kBAAkB,EAAEgD,sBAAUG,KAAV,CAAgB;AAClCC,IAAAA,GAAG,EAAEJ,sBAAUK,IADmB;AAElC,cAAQL,sBAAUK;AAFgB,GAAhB,CARL;AAYf/D,EAAAA,cAAc,EAAE0D,sBAAUK,IAAV,CAAeH,UAZhB;AAafnD,EAAAA,sBAAsB,EAAEiD,sBAAUK,IAAV,CAAeH;AAbxB,CAAjB;;eAgBe,wBAAWV,MAAX,EAAmBtD,IAAnB,C","sourcesContent":["import React from 'react';\nimport { settings, layout, InputContainer } from '@pie-lib/pie-toolbox/config-ui';\nimport PropTypes from 'prop-types';\nimport { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport ImageContainer from './image-container';\nimport cloneDeep from 'lodash/cloneDeep';\n\nconst { Panel, toggle, dropdown } = settings;\n\nexport class Root extends React.Component {\n onPromptChanged = (prompt) => {\n const { model, onModelChanged } = this.props;\n const update = cloneDeep(model);\n\n onModelChanged({ ...update, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n const { model, onModelChanged } = this.props;\n\n onModelChanged({ ...model, teacherInstructions });\n };\n\n onUpdateImageDimension = (dimensions) => {\n const { model, onModelChanged } = this.props;\n\n onModelChanged({ ...model, imageDimensions: dimensions });\n };\n\n onImageUpload = (imageUrl) => {\n const { model, onModelChanged } = this.props;\n\n onModelChanged({ ...model, imageUrl });\n };\n\n render() {\n const { classes, configuration, imageSupport, model, onConfigurationChanged, onModelChanged, uploadSoundSupport } =\n this.props;\n const {\n baseInputConfiguration = {},\n backgroundImage = {},\n contentDimensions = {},\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n withRubric = {},\n language = {},\n languageChoices = {},\n mathMlOptions = {},\n } = configuration || {};\n const {\n backgroundImageEnabled,\n promptEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n toolbarEditorPosition,\n } = model || {};\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n const panelSettings = {\n backgroundImageEnabled: backgroundImage.settings && toggle(backgroundImage.label),\n promptEnabled: prompt.settings && toggle(prompt.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 panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\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 onChangeModel={onModelChanged}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label=\"Item Stem\" className={classes.promptHolder}>\n <EditableHtml\n markup={model.prompt}\n onChange={this.onPromptChanged}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n imageSupport={imageSupport}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {backgroundImageEnabled && (\n <React.Fragment>\n <Typography variant=\"subheading\">Define Background Image</Typography>\n\n <ImageContainer\n imageUrl={model.imageUrl}\n onUpdateImageDimension={this.onUpdateImageDimension}\n onImageUpload={this.onImageUpload}\n imageDimensions={model.imageDimensions}\n />\n </React.Fragment>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nconst styles = (theme) => ({\n promptHolder: {\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n width: '100%',\n },\n});\n\nRoot.propTypes = {\n classes: PropTypes.object.isRequired,\n configuration: PropTypes.object,\n model: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n};\n\nexport default withStyles(styles)(Root);\n"],"file":"root.js"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/drawing-response-configure",
3
3
  "private": true,
4
- "version": "7.4.1",
4
+ "version": "7.5.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -12,6 +12,17 @@ exports[`Root snapshot renders 1`] = `
12
12
  "label": "Background Image",
13
13
  "settings": true,
14
14
  },
15
+ "baseInputConfiguration": Object {
16
+ "audio": Object {
17
+ "disabled": false,
18
+ },
19
+ "image": Object {
20
+ "disabled": false,
21
+ },
22
+ "video": Object {
23
+ "disabled": false,
24
+ },
25
+ },
15
26
  "language": Object {
16
27
  "enabled": false,
17
28
  "label": "Specify Language",
@@ -34,6 +45,17 @@ exports[`Root snapshot renders 1`] = `
34
45
  "teacherInstructions": 300,
35
46
  },
36
47
  "prompt": Object {
48
+ "inputConfiguration": Object {
49
+ "audio": Object {
50
+ "disabled": false,
51
+ },
52
+ "image": Object {
53
+ "disabled": false,
54
+ },
55
+ "video": Object {
56
+ "disabled": false,
57
+ },
58
+ },
37
59
  "label": "Prompt",
38
60
  "settings": true,
39
61
  },
@@ -44,6 +66,17 @@ exports[`Root snapshot renders 1`] = `
44
66
  "settings": false,
45
67
  },
46
68
  "teacherInstructions": Object {
69
+ "inputConfiguration": Object {
70
+ "audio": Object {
71
+ "disabled": false,
72
+ },
73
+ "image": Object {
74
+ "disabled": false,
75
+ },
76
+ "video": Object {
77
+ "disabled": false,
78
+ },
79
+ },
47
80
  "label": "Teacher Instructions",
48
81
  "settings": true,
49
82
  },
@@ -110,6 +143,19 @@ exports[`Root snapshot renders 1`] = `
110
143
  maxImageWidth={300}
111
144
  onChange={[Function]}
112
145
  onDone={[Function]}
146
+ pluginProps={
147
+ Object {
148
+ "audio": Object {
149
+ "disabled": false,
150
+ },
151
+ "image": Object {
152
+ "disabled": false,
153
+ },
154
+ "video": Object {
155
+ "disabled": false,
156
+ },
157
+ }
158
+ }
113
159
  toolbarOpts={
114
160
  Object {
115
161
  "position": "bottom",
@@ -14,6 +14,11 @@ export default {
14
14
  toolbarEditorPosition: 'bottom',
15
15
  },
16
16
  configuration: {
17
+ baseInputConfiguration: {
18
+ audio: { disabled: false },
19
+ video: { disabled: false },
20
+ image: { disabled: false },
21
+ },
17
22
  spellCheck: {
18
23
  label: 'Spellcheck',
19
24
  settings: false,
@@ -26,11 +31,21 @@ export default {
26
31
  prompt: {
27
32
  settings: true,
28
33
  label: 'Prompt',
34
+ inputConfiguration: {
35
+ audio: { disabled: false },
36
+ video: { disabled: false },
37
+ image: { disabled: false },
38
+ },
29
39
  },
30
40
  settingsPanelDisabled: false,
31
41
  teacherInstructions: {
32
42
  settings: true,
33
43
  label: 'Teacher Instructions',
44
+ inputConfiguration: {
45
+ audio: { disabled: false },
46
+ video: { disabled: false },
47
+ image: { disabled: false },
48
+ },
34
49
  },
35
50
  maxImageWidth: {
36
51
  teacherInstructions: 300,
@@ -56,6 +71,6 @@ export default {
56
71
  languageChoices: {
57
72
  label: 'Language Choices',
58
73
  options: [],
59
- }
74
+ },
60
75
  },
61
76
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { settings, layout, InputContainer } from '@pie-lib/pie-toolbox/config-ui';
3
3
  import PropTypes from 'prop-types';
4
- import {EditableHtml} from '@pie-lib/pie-toolbox/editable-html';
4
+ import { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';
5
5
  import Typography from '@material-ui/core/Typography';
6
6
  import { withStyles } from '@material-ui/core/styles';
7
7
 
@@ -40,6 +40,7 @@ export class Root extends React.Component {
40
40
  const { classes, configuration, imageSupport, model, onConfigurationChanged, onModelChanged, uploadSoundSupport } =
41
41
  this.props;
42
42
  const {
43
+ baseInputConfiguration = {},
43
44
  backgroundImage = {},
44
45
  contentDimensions = {},
45
46
  maxImageWidth = {},
@@ -81,6 +82,15 @@ export class Root extends React.Component {
81
82
  rubricEnabled: withRubric?.settings && toggle(withRubric?.label),
82
83
  };
83
84
 
85
+ const getPluginProps = (props) => {
86
+ return Object.assign(
87
+ {
88
+ ...baseInputConfiguration,
89
+ },
90
+ props || {},
91
+ );
92
+ };
93
+
84
94
  return (
85
95
  <layout.ConfigLayout
86
96
  dimensions={contentDimensions}
@@ -106,6 +116,7 @@ export class Root extends React.Component {
106
116
  imageSupport={imageSupport}
107
117
  nonEmpty={false}
108
118
  toolbarOpts={toolbarOpts}
119
+ pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}
109
120
  spellCheck={spellCheckEnabled}
110
121
  maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}
111
122
  maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}
@@ -123,6 +134,7 @@ export class Root extends React.Component {
123
134
  onChange={this.onPromptChanged}
124
135
  toolbarOpts={toolbarOpts}
125
136
  spellCheck={spellCheckEnabled}
137
+ pluginProps={getPluginProps(prompt?.inputConfiguration)}
126
138
  imageSupport={imageSupport}
127
139
  maxImageWidth={defaultImageMaxWidth}
128
140
  maxImageHeight={defaultImageMaxHeight}
@@ -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
  "backgroundImage": {
7
46
  "title": "ConfigurePropWithEnabled",
8
47
  "type": "object",
@@ -78,9 +117,103 @@
78
117
  }
79
118
  },
80
119
  "teacherInstructions": {
81
- "title": "ConfigureProp",
120
+ "title": "EditableHtmlPluginConfigure",
121
+ "type": "object",
122
+ "properties": {
123
+ "inputConfiguration": {
124
+ "title": "EditableHtmlConfigureProp",
125
+ "type": "object",
126
+ "properties": {
127
+ "audio": {
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
+ "video": {
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
+ "image": {
150
+ "title": "EditableHtmlButtonConfigure",
151
+ "type": "object",
152
+ "properties": {
153
+ "disabled": {
154
+ "description": "Indicates if the plugin is disabled or not",
155
+ "type": "boolean",
156
+ "title": "disabled"
157
+ }
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "settings": {
163
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
164
+ "type": "boolean",
165
+ "title": "settings"
166
+ },
167
+ "label": {
168
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
169
+ "type": "string",
170
+ "title": "label"
171
+ }
172
+ }
173
+ },
174
+ "prompt": {
175
+ "title": "EditableHtmlPluginConfigure",
82
176
  "type": "object",
83
177
  "properties": {
178
+ "inputConfiguration": {
179
+ "title": "EditableHtmlConfigureProp",
180
+ "type": "object",
181
+ "properties": {
182
+ "audio": {
183
+ "title": "EditableHtmlButtonConfigure",
184
+ "type": "object",
185
+ "properties": {
186
+ "disabled": {
187
+ "description": "Indicates if the plugin is disabled or not",
188
+ "type": "boolean",
189
+ "title": "disabled"
190
+ }
191
+ }
192
+ },
193
+ "video": {
194
+ "title": "EditableHtmlButtonConfigure",
195
+ "type": "object",
196
+ "properties": {
197
+ "disabled": {
198
+ "description": "Indicates if the plugin is disabled or not",
199
+ "type": "boolean",
200
+ "title": "disabled"
201
+ }
202
+ }
203
+ },
204
+ "image": {
205
+ "title": "EditableHtmlButtonConfigure",
206
+ "type": "object",
207
+ "properties": {
208
+ "disabled": {
209
+ "description": "Indicates if the plugin is disabled or not",
210
+ "type": "boolean",
211
+ "title": "disabled"
212
+ }
213
+ }
214
+ }
215
+ }
216
+ },
84
217
  "settings": {
85
218
  "description": "Indicates if the item has to be displayed in the Settings Panel",
86
219
  "type": "boolean",
@@ -296,6 +429,56 @@
296
429
  }
297
430
  },
298
431
  "definitions": {
432
+ "EditableHtmlConfigureProp": {
433
+ "title": "EditableHtmlConfigureProp",
434
+ "type": "object",
435
+ "properties": {
436
+ "audio": {
437
+ "title": "EditableHtmlButtonConfigure",
438
+ "type": "object",
439
+ "properties": {
440
+ "disabled": {
441
+ "description": "Indicates if the plugin is disabled or not",
442
+ "type": "boolean",
443
+ "title": "disabled"
444
+ }
445
+ }
446
+ },
447
+ "video": {
448
+ "title": "EditableHtmlButtonConfigure",
449
+ "type": "object",
450
+ "properties": {
451
+ "disabled": {
452
+ "description": "Indicates if the plugin is disabled or not",
453
+ "type": "boolean",
454
+ "title": "disabled"
455
+ }
456
+ }
457
+ },
458
+ "image": {
459
+ "title": "EditableHtmlButtonConfigure",
460
+ "type": "object",
461
+ "properties": {
462
+ "disabled": {
463
+ "description": "Indicates if the plugin is disabled or not",
464
+ "type": "boolean",
465
+ "title": "disabled"
466
+ }
467
+ }
468
+ }
469
+ }
470
+ },
471
+ "EditableHtmlButtonConfigure": {
472
+ "title": "EditableHtmlButtonConfigure",
473
+ "type": "object",
474
+ "properties": {
475
+ "disabled": {
476
+ "description": "Indicates if the plugin is disabled or not",
477
+ "type": "boolean",
478
+ "title": "disabled"
479
+ }
480
+ }
481
+ },
299
482
  "ConfigurePropWithEnabled": {
300
483
  "title": "ConfigurePropWithEnabled",
301
484
  "type": "object",
@@ -333,6 +516,61 @@
333
516
  }
334
517
  }
335
518
  },
519
+ "EditableHtmlPluginConfigure": {
520
+ "title": "EditableHtmlPluginConfigure",
521
+ "type": "object",
522
+ "properties": {
523
+ "inputConfiguration": {
524
+ "title": "EditableHtmlConfigureProp",
525
+ "type": "object",
526
+ "properties": {
527
+ "audio": {
528
+ "title": "EditableHtmlButtonConfigure",
529
+ "type": "object",
530
+ "properties": {
531
+ "disabled": {
532
+ "description": "Indicates if the plugin is disabled or not",
533
+ "type": "boolean",
534
+ "title": "disabled"
535
+ }
536
+ }
537
+ },
538
+ "video": {
539
+ "title": "EditableHtmlButtonConfigure",
540
+ "type": "object",
541
+ "properties": {
542
+ "disabled": {
543
+ "description": "Indicates if the plugin is disabled or not",
544
+ "type": "boolean",
545
+ "title": "disabled"
546
+ }
547
+ }
548
+ },
549
+ "image": {
550
+ "title": "EditableHtmlButtonConfigure",
551
+ "type": "object",
552
+ "properties": {
553
+ "disabled": {
554
+ "description": "Indicates if the plugin is disabled or not",
555
+ "type": "boolean",
556
+ "title": "disabled"
557
+ }
558
+ }
559
+ }
560
+ }
561
+ },
562
+ "settings": {
563
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
564
+ "type": "boolean",
565
+ "title": "settings"
566
+ },
567
+ "label": {
568
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
569
+ "type": "string",
570
+ "title": "label"
571
+ }
572
+ }
573
+ },
336
574
  "ConfigureMaxImageDimensionsProp": {
337
575
  "title": "ConfigureMaxImageDimensionsProp",
338
576
  "type": "object",
@@ -2,6 +2,34 @@ Config Object for @pie-elements/drawing-response
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
  # `backgroundImage` (object)
6
34
 
7
35
  Properties of the `backgroundImage` object:
@@ -63,6 +91,74 @@ Indicates the label for the item that has to be displayed in the Settings Panel
63
91
 
64
92
  Properties of the `teacherInstructions` object:
65
93
 
94
+ ## `inputConfiguration` (object)
95
+
96
+ Properties of the `inputConfiguration` object:
97
+
98
+ ### `audio` (object)
99
+
100
+ Properties of the `audio` object:
101
+
102
+ #### `disabled` (boolean)
103
+
104
+ Indicates if the plugin is disabled or not
105
+
106
+ ### `video` (object)
107
+
108
+ Properties of the `video` object:
109
+
110
+ #### `disabled` (boolean)
111
+
112
+ Indicates if the plugin is disabled or not
113
+
114
+ ### `image` (object)
115
+
116
+ Properties of the `image` object:
117
+
118
+ #### `disabled` (boolean)
119
+
120
+ Indicates if the plugin is disabled or not
121
+
122
+ ## `settings` (boolean)
123
+
124
+ Indicates if the item has to be displayed in the Settings Panel
125
+
126
+ ## `label` (string)
127
+
128
+ Indicates the label for the item that has to be displayed in the Settings Panel
129
+
130
+ # `prompt` (object)
131
+
132
+ Properties of the `prompt` object:
133
+
134
+ ## `inputConfiguration` (object)
135
+
136
+ Properties of the `inputConfiguration` object:
137
+
138
+ ### `audio` (object)
139
+
140
+ Properties of the `audio` object:
141
+
142
+ #### `disabled` (boolean)
143
+
144
+ Indicates if the plugin is disabled or not
145
+
146
+ ### `video` (object)
147
+
148
+ Properties of the `video` object:
149
+
150
+ #### `disabled` (boolean)
151
+
152
+ Indicates if the plugin is disabled or not
153
+
154
+ ### `image` (object)
155
+
156
+ Properties of the `image` object:
157
+
158
+ #### `disabled` (boolean)
159
+
160
+ Indicates if the plugin is disabled or not
161
+
66
162
  ## `settings` (boolean)
67
163
 
68
164
  Indicates if the item has to be displayed in the Settings Panel
@@ -232,6 +328,42 @@ Default: `true`
232
328
 
233
329
  The schema defines the following additional types:
234
330
 
331
+ ## `EditableHtmlConfigureProp` (object)
332
+
333
+ Properties of the `EditableHtmlConfigureProp` object:
334
+
335
+ ### `audio` (object)
336
+
337
+ Properties of the `audio` object:
338
+
339
+ #### `disabled` (boolean)
340
+
341
+ Indicates if the plugin is disabled or not
342
+
343
+ ### `video` (object)
344
+
345
+ Properties of the `video` object:
346
+
347
+ #### `disabled` (boolean)
348
+
349
+ Indicates if the plugin is disabled or not
350
+
351
+ ### `image` (object)
352
+
353
+ Properties of the `image` object:
354
+
355
+ #### `disabled` (boolean)
356
+
357
+ Indicates if the plugin is disabled or not
358
+
359
+ ## `EditableHtmlButtonConfigure` (object)
360
+
361
+ Properties of the `EditableHtmlButtonConfigure` object:
362
+
363
+ ### `disabled` (boolean)
364
+
365
+ Indicates if the plugin is disabled or not
366
+
235
367
  ## `ConfigurePropWithEnabled` (object)
236
368
 
237
369
  Properties of the `ConfigurePropWithEnabled` object:
@@ -261,6 +393,46 @@ Indicates if the item has to be displayed in the Settings Panel
261
393
 
262
394
  Indicates the label for the item that has to be displayed in the Settings Panel
263
395
 
396
+ ## `EditableHtmlPluginConfigure` (object)
397
+
398
+ Properties of the `EditableHtmlPluginConfigure` object:
399
+
400
+ ### `inputConfiguration` (object)
401
+
402
+ Properties of the `inputConfiguration` object:
403
+
404
+ #### `audio` (object)
405
+
406
+ Properties of the `audio` object:
407
+
408
+ ##### `disabled` (boolean)
409
+
410
+ Indicates if the plugin is disabled or not
411
+
412
+ #### `video` (object)
413
+
414
+ Properties of the `video` object:
415
+
416
+ ##### `disabled` (boolean)
417
+
418
+ Indicates if the plugin is disabled or not
419
+
420
+ #### `image` (object)
421
+
422
+ Properties of the `image` object:
423
+
424
+ ##### `disabled` (boolean)
425
+
426
+ Indicates if the plugin is disabled or not
427
+
428
+ ### `settings` (boolean)
429
+
430
+ Indicates if the item has to be displayed in the Settings Panel
431
+
432
+ ### `label` (string)
433
+
434
+ Indicates the label for the item that has to be displayed in the Settings Panel
435
+
264
436
  ## `ConfigureMaxImageDimensionsProp` (object)
265
437
 
266
438
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -115,6 +115,56 @@
115
115
  "teacherInstructionsEnabled"
116
116
  ],
117
117
  "definitions": {
118
+ "EditableHtmlConfigureProp": {
119
+ "title": "EditableHtmlConfigureProp",
120
+ "type": "object",
121
+ "properties": {
122
+ "audio": {
123
+ "title": "EditableHtmlButtonConfigure",
124
+ "type": "object",
125
+ "properties": {
126
+ "disabled": {
127
+ "description": "Indicates if the plugin is disabled or not",
128
+ "type": "boolean",
129
+ "title": "disabled"
130
+ }
131
+ }
132
+ },
133
+ "video": {
134
+ "title": "EditableHtmlButtonConfigure",
135
+ "type": "object",
136
+ "properties": {
137
+ "disabled": {
138
+ "description": "Indicates if the plugin is disabled or not",
139
+ "type": "boolean",
140
+ "title": "disabled"
141
+ }
142
+ }
143
+ },
144
+ "image": {
145
+ "title": "EditableHtmlButtonConfigure",
146
+ "type": "object",
147
+ "properties": {
148
+ "disabled": {
149
+ "description": "Indicates if the plugin is disabled or not",
150
+ "type": "boolean",
151
+ "title": "disabled"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ },
157
+ "EditableHtmlButtonConfigure": {
158
+ "title": "EditableHtmlButtonConfigure",
159
+ "type": "object",
160
+ "properties": {
161
+ "disabled": {
162
+ "description": "Indicates if the plugin is disabled or not",
163
+ "type": "boolean",
164
+ "title": "disabled"
165
+ }
166
+ }
167
+ },
118
168
  "ConfigurePropWithEnabled": {
119
169
  "title": "ConfigurePropWithEnabled",
120
170
  "type": "object",
@@ -152,6 +202,61 @@
152
202
  }
153
203
  }
154
204
  },
205
+ "EditableHtmlPluginConfigure": {
206
+ "title": "EditableHtmlPluginConfigure",
207
+ "type": "object",
208
+ "properties": {
209
+ "inputConfiguration": {
210
+ "title": "EditableHtmlConfigureProp",
211
+ "type": "object",
212
+ "properties": {
213
+ "audio": {
214
+ "title": "EditableHtmlButtonConfigure",
215
+ "type": "object",
216
+ "properties": {
217
+ "disabled": {
218
+ "description": "Indicates if the plugin is disabled or not",
219
+ "type": "boolean",
220
+ "title": "disabled"
221
+ }
222
+ }
223
+ },
224
+ "video": {
225
+ "title": "EditableHtmlButtonConfigure",
226
+ "type": "object",
227
+ "properties": {
228
+ "disabled": {
229
+ "description": "Indicates if the plugin is disabled or not",
230
+ "type": "boolean",
231
+ "title": "disabled"
232
+ }
233
+ }
234
+ },
235
+ "image": {
236
+ "title": "EditableHtmlButtonConfigure",
237
+ "type": "object",
238
+ "properties": {
239
+ "disabled": {
240
+ "description": "Indicates if the plugin is disabled or not",
241
+ "type": "boolean",
242
+ "title": "disabled"
243
+ }
244
+ }
245
+ }
246
+ }
247
+ },
248
+ "settings": {
249
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
250
+ "type": "boolean",
251
+ "title": "settings"
252
+ },
253
+ "label": {
254
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
255
+ "type": "string",
256
+ "title": "label"
257
+ }
258
+ }
259
+ },
155
260
  "ConfigureMaxImageDimensionsProp": {
156
261
  "title": "ConfigureMaxImageDimensionsProp",
157
262
  "type": "object",
@@ -88,6 +88,42 @@ The html Element tag name
88
88
 
89
89
  The schema defines the following additional types:
90
90
 
91
+ ## `EditableHtmlConfigureProp` (object)
92
+
93
+ Properties of the `EditableHtmlConfigureProp` object:
94
+
95
+ ### `audio` (object)
96
+
97
+ Properties of the `audio` object:
98
+
99
+ #### `disabled` (boolean)
100
+
101
+ Indicates if the plugin is disabled or not
102
+
103
+ ### `video` (object)
104
+
105
+ Properties of the `video` object:
106
+
107
+ #### `disabled` (boolean)
108
+
109
+ Indicates if the plugin is disabled or not
110
+
111
+ ### `image` (object)
112
+
113
+ Properties of the `image` object:
114
+
115
+ #### `disabled` (boolean)
116
+
117
+ Indicates if the plugin is disabled or not
118
+
119
+ ## `EditableHtmlButtonConfigure` (object)
120
+
121
+ Properties of the `EditableHtmlButtonConfigure` object:
122
+
123
+ ### `disabled` (boolean)
124
+
125
+ Indicates if the plugin is disabled or not
126
+
91
127
  ## `ConfigurePropWithEnabled` (object)
92
128
 
93
129
  Properties of the `ConfigurePropWithEnabled` object:
@@ -117,6 +153,46 @@ Indicates if the item has to be displayed in the Settings Panel
117
153
 
118
154
  Indicates the label for the item that has to be displayed in the Settings Panel
119
155
 
156
+ ## `EditableHtmlPluginConfigure` (object)
157
+
158
+ Properties of the `EditableHtmlPluginConfigure` object:
159
+
160
+ ### `inputConfiguration` (object)
161
+
162
+ Properties of the `inputConfiguration` object:
163
+
164
+ #### `audio` (object)
165
+
166
+ Properties of the `audio` object:
167
+
168
+ ##### `disabled` (boolean)
169
+
170
+ Indicates if the plugin is disabled or not
171
+
172
+ #### `video` (object)
173
+
174
+ Properties of the `video` object:
175
+
176
+ ##### `disabled` (boolean)
177
+
178
+ Indicates if the plugin is disabled or not
179
+
180
+ #### `image` (object)
181
+
182
+ Properties of the `image` object:
183
+
184
+ ##### `disabled` (boolean)
185
+
186
+ Indicates if the plugin is disabled or not
187
+
188
+ ### `settings` (boolean)
189
+
190
+ Indicates if the item has to be displayed in the Settings Panel
191
+
192
+ ### `label` (string)
193
+
194
+ Indicates the label for the item that has to be displayed in the Settings Panel
195
+
120
196
  ## `ConfigureMaxImageDimensionsProp` (object)
121
197
 
122
198
  Properties of the `ConfigureMaxImageDimensionsProp` object:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/drawing-response",
3
- "version": "7.4.2-next.9+6959e2131",
3
+ "version": "7.5.0",
4
4
  "description": "",
5
5
  "repository": "pie-framework/pie-elements",
6
6
  "publishConfig": {
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "author": "pie framework developers",
25
25
  "license": "ISC",
26
- "gitHead": "6959e21314c39dd7d0e0db3589047cb205eb44d5",
26
+ "gitHead": "9830d061505c85ff915033bbaf09dd57e75ceebc",
27
27
  "scripts": {
28
28
  "postpublish": "../../scripts/postpublish"
29
29
  },