@pie-element/drawing-response 7.4.2-next.21 → 7.4.2-next.9
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/configure/lib/defaults.js +2 -35
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/root.js +0 -9
- package/configure/lib/root.js.map +1 -1
- package/configure/src/__tests__/__snapshots__/root.test.jsx.snap +0 -46
- package/configure/src/defaults.js +1 -16
- package/configure/src/root.jsx +1 -13
- package/docs/config-schema.json +1 -239
- package/docs/config-schema.json.md +0 -172
- package/docs/pie-schema.json +0 -105
- package/docs/pie-schema.json.md +0 -76
- package/package.json +2 -2
|
@@ -20,17 +20,6 @@ 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
|
-
},
|
|
34
23
|
spellCheck: {
|
|
35
24
|
label: 'Spellcheck',
|
|
36
25
|
settings: false,
|
|
@@ -42,34 +31,12 @@ var _default = {
|
|
|
42
31
|
},
|
|
43
32
|
prompt: {
|
|
44
33
|
settings: true,
|
|
45
|
-
label: 'Prompt'
|
|
46
|
-
inputConfiguration: {
|
|
47
|
-
audio: {
|
|
48
|
-
disabled: false
|
|
49
|
-
},
|
|
50
|
-
video: {
|
|
51
|
-
disabled: false
|
|
52
|
-
},
|
|
53
|
-
image: {
|
|
54
|
-
disabled: false
|
|
55
|
-
}
|
|
56
|
-
}
|
|
34
|
+
label: 'Prompt'
|
|
57
35
|
},
|
|
58
36
|
settingsPanelDisabled: false,
|
|
59
37
|
teacherInstructions: {
|
|
60
38
|
settings: true,
|
|
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
|
-
}
|
|
39
|
+
label: 'Teacher Instructions'
|
|
73
40
|
},
|
|
74
41
|
maxImageWidth: {
|
|
75
42
|
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","
|
|
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"}
|
package/configure/lib/root.js
CHANGED
|
@@ -113,8 +113,6 @@ 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,
|
|
118
116
|
_ref$backgroundImage = _ref.backgroundImage,
|
|
119
117
|
backgroundImage = _ref$backgroundImage === void 0 ? {} : _ref$backgroundImage,
|
|
120
118
|
_ref$contentDimension = _ref.contentDimensions,
|
|
@@ -162,11 +160,6 @@ var Root = /*#__PURE__*/function (_React$Component) {
|
|
|
162
160
|
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
163
161
|
rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
|
|
164
162
|
};
|
|
165
|
-
|
|
166
|
-
var getPluginProps = function getPluginProps(props) {
|
|
167
|
-
return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
|
|
168
|
-
};
|
|
169
|
-
|
|
170
163
|
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
171
164
|
dimensions: contentDimensions,
|
|
172
165
|
hideSettings: settingsPanelDisabled,
|
|
@@ -189,7 +182,6 @@ var Root = /*#__PURE__*/function (_React$Component) {
|
|
|
189
182
|
imageSupport: imageSupport,
|
|
190
183
|
nonEmpty: false,
|
|
191
184
|
toolbarOpts: toolbarOpts,
|
|
192
|
-
pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration),
|
|
193
185
|
spellCheck: spellCheckEnabled,
|
|
194
186
|
maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
|
|
195
187
|
maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
|
|
@@ -208,7 +200,6 @@ var Root = /*#__PURE__*/function (_React$Component) {
|
|
|
208
200
|
onChange: this.onPromptChanged,
|
|
209
201
|
toolbarOpts: toolbarOpts,
|
|
210
202
|
spellCheck: spellCheckEnabled,
|
|
211
|
-
pluginProps: getPluginProps(prompt === null || prompt === void 0 ? void 0 : prompt.inputConfiguration),
|
|
212
203
|
imageSupport: imageSupport,
|
|
213
204
|
maxImageWidth: defaultImageMaxWidth,
|
|
214
205
|
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","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,KAAR;AAAA,UAAeC,cAAf,eAAeA,cAAf;AACA,UAAMC,MAAM,GAAG,2BAAUF,KAAV,CAAf;AAEAC,MAAAA,cAAc,iCAAMC,MAAN;AAAcJ,QAAAA,MAAM,EAANA;AAAd,SAAd;AACD,K;qHAE8B,UAACK,mBAAD,EAAyB;AACtD,yBAAkC,MAAKJ,KAAvC;AAAA,UAAQC,KAAR,gBAAQA,KAAR;AAAA,UAAeC,cAAf,gBAAeA,cAAf;AAEAA,MAAAA,cAAc,iCAAMD,KAAN;AAAaG,QAAAA,mBAAmB,EAAnBA;AAAb,SAAd;AACD,K;+GAEwB,UAACC,UAAD,EAAgB;AACvC,yBAAkC,MAAKL,KAAvC;AAAA,UAAQC,KAAR,gBAAQA,KAAR;AAAA,UAAeC,cAAf,gBAAeA,cAAf;AAEAA,MAAAA,cAAc,iCAAMD,KAAN;AAAaK,QAAAA,eAAe,EAAED;AAA9B,SAAd;AACD,K;sGAEe,UAACE,QAAD,EAAc;AAC5B,yBAAkC,MAAKP,KAAvC;AAAA,UAAQC,KAAR,gBAAQA,KAAR;AAAA,UAAeC,cAAf,gBAAeA,cAAf;AAEAA,MAAAA,cAAc,iCAAMD,KAAN;AAA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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;;AAQA5D,IAAI,CAAC6D,SAAL,GAAiB;AACfnD,EAAAA,OAAO,EAAEoD,sBAAUC,MAAV,CAAiBC,UADX;AAEfrD,EAAAA,aAAa,EAAEmD,sBAAUC,MAFV;AAGf5D,EAAAA,KAAK,EAAE2D,sBAAUC,MAAV,CAAiBC,UAHT;AAIfpD,EAAAA,YAAY,EAAEkD,sBAAUG,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEJ,sBAAUK,IADa;AAE5B,cAAQL,sBAAUK;AAFU,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
|
+
{"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,MAAM,GAAG,2BAAUF,KAAV,CAAf;AAEAC,MAAAA,cAAc,iCAAMC,MAAN;AAAcJ,QAAAA,MAAM,EAANA;AAAd,SAAd;AAC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K;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"}
|
|
@@ -12,17 +12,6 @@ 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
|
-
},
|
|
26
15
|
"language": Object {
|
|
27
16
|
"enabled": false,
|
|
28
17
|
"label": "Specify Language",
|
|
@@ -45,17 +34,6 @@ exports[`Root snapshot renders 1`] = `
|
|
|
45
34
|
"teacherInstructions": 300,
|
|
46
35
|
},
|
|
47
36
|
"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
|
-
},
|
|
59
37
|
"label": "Prompt",
|
|
60
38
|
"settings": true,
|
|
61
39
|
},
|
|
@@ -66,17 +44,6 @@ exports[`Root snapshot renders 1`] = `
|
|
|
66
44
|
"settings": false,
|
|
67
45
|
},
|
|
68
46
|
"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
|
-
},
|
|
80
47
|
"label": "Teacher Instructions",
|
|
81
48
|
"settings": true,
|
|
82
49
|
},
|
|
@@ -143,19 +110,6 @@ exports[`Root snapshot renders 1`] = `
|
|
|
143
110
|
maxImageWidth={300}
|
|
144
111
|
onChange={[Function]}
|
|
145
112
|
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
|
-
}
|
|
159
113
|
toolbarOpts={
|
|
160
114
|
Object {
|
|
161
115
|
"position": "bottom",
|
|
@@ -14,11 +14,6 @@ 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
|
-
},
|
|
22
17
|
spellCheck: {
|
|
23
18
|
label: 'Spellcheck',
|
|
24
19
|
settings: false,
|
|
@@ -31,21 +26,11 @@ export default {
|
|
|
31
26
|
prompt: {
|
|
32
27
|
settings: true,
|
|
33
28
|
label: 'Prompt',
|
|
34
|
-
inputConfiguration: {
|
|
35
|
-
audio: { disabled: false },
|
|
36
|
-
video: { disabled: false },
|
|
37
|
-
image: { disabled: false },
|
|
38
|
-
},
|
|
39
29
|
},
|
|
40
30
|
settingsPanelDisabled: false,
|
|
41
31
|
teacherInstructions: {
|
|
42
32
|
settings: true,
|
|
43
33
|
label: 'Teacher Instructions',
|
|
44
|
-
inputConfiguration: {
|
|
45
|
-
audio: { disabled: false },
|
|
46
|
-
video: { disabled: false },
|
|
47
|
-
image: { disabled: false },
|
|
48
|
-
},
|
|
49
34
|
},
|
|
50
35
|
maxImageWidth: {
|
|
51
36
|
teacherInstructions: 300,
|
|
@@ -71,6 +56,6 @@ export default {
|
|
|
71
56
|
languageChoices: {
|
|
72
57
|
label: 'Language Choices',
|
|
73
58
|
options: [],
|
|
74
|
-
}
|
|
59
|
+
}
|
|
75
60
|
},
|
|
76
61
|
};
|
package/configure/src/root.jsx
CHANGED
|
@@ -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 {
|
|
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,7 +40,6 @@ 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 = {},
|
|
44
43
|
backgroundImage = {},
|
|
45
44
|
contentDimensions = {},
|
|
46
45
|
maxImageWidth = {},
|
|
@@ -82,15 +81,6 @@ export class Root extends React.Component {
|
|
|
82
81
|
rubricEnabled: withRubric?.settings && toggle(withRubric?.label),
|
|
83
82
|
};
|
|
84
83
|
|
|
85
|
-
const getPluginProps = (props) => {
|
|
86
|
-
return Object.assign(
|
|
87
|
-
{
|
|
88
|
-
...baseInputConfiguration,
|
|
89
|
-
},
|
|
90
|
-
props || {},
|
|
91
|
-
);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
84
|
return (
|
|
95
85
|
<layout.ConfigLayout
|
|
96
86
|
dimensions={contentDimensions}
|
|
@@ -116,7 +106,6 @@ export class Root extends React.Component {
|
|
|
116
106
|
imageSupport={imageSupport}
|
|
117
107
|
nonEmpty={false}
|
|
118
108
|
toolbarOpts={toolbarOpts}
|
|
119
|
-
pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}
|
|
120
109
|
spellCheck={spellCheckEnabled}
|
|
121
110
|
maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}
|
|
122
111
|
maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}
|
|
@@ -134,7 +123,6 @@ export class Root extends React.Component {
|
|
|
134
123
|
onChange={this.onPromptChanged}
|
|
135
124
|
toolbarOpts={toolbarOpts}
|
|
136
125
|
spellCheck={spellCheckEnabled}
|
|
137
|
-
pluginProps={getPluginProps(prompt?.inputConfiguration)}
|
|
138
126
|
imageSupport={imageSupport}
|
|
139
127
|
maxImageWidth={defaultImageMaxWidth}
|
|
140
128
|
maxImageHeight={defaultImageMaxHeight}
|
package/docs/config-schema.json
CHANGED
|
@@ -3,45 +3,6 @@
|
|
|
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
|
-
},
|
|
45
6
|
"backgroundImage": {
|
|
46
7
|
"title": "ConfigurePropWithEnabled",
|
|
47
8
|
"type": "object",
|
|
@@ -117,103 +78,9 @@
|
|
|
117
78
|
}
|
|
118
79
|
},
|
|
119
80
|
"teacherInstructions": {
|
|
120
|
-
"title": "
|
|
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",
|
|
81
|
+
"title": "ConfigureProp",
|
|
176
82
|
"type": "object",
|
|
177
83
|
"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
|
-
},
|
|
217
84
|
"settings": {
|
|
218
85
|
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
219
86
|
"type": "boolean",
|
|
@@ -429,56 +296,6 @@
|
|
|
429
296
|
}
|
|
430
297
|
},
|
|
431
298
|
"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
|
-
},
|
|
482
299
|
"ConfigurePropWithEnabled": {
|
|
483
300
|
"title": "ConfigurePropWithEnabled",
|
|
484
301
|
"type": "object",
|
|
@@ -516,61 +333,6 @@
|
|
|
516
333
|
}
|
|
517
334
|
}
|
|
518
335
|
},
|
|
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
|
-
},
|
|
574
336
|
"ConfigureMaxImageDimensionsProp": {
|
|
575
337
|
"title": "ConfigureMaxImageDimensionsProp",
|
|
576
338
|
"type": "object",
|
|
@@ -2,34 +2,6 @@ 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
|
-
|
|
33
5
|
# `backgroundImage` (object)
|
|
34
6
|
|
|
35
7
|
Properties of the `backgroundImage` object:
|
|
@@ -91,74 +63,6 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
91
63
|
|
|
92
64
|
Properties of the `teacherInstructions` object:
|
|
93
65
|
|
|
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
|
-
|
|
162
66
|
## `settings` (boolean)
|
|
163
67
|
|
|
164
68
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -328,42 +232,6 @@ Default: `true`
|
|
|
328
232
|
|
|
329
233
|
The schema defines the following additional types:
|
|
330
234
|
|
|
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
|
-
|
|
367
235
|
## `ConfigurePropWithEnabled` (object)
|
|
368
236
|
|
|
369
237
|
Properties of the `ConfigurePropWithEnabled` object:
|
|
@@ -393,46 +261,6 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
393
261
|
|
|
394
262
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
395
263
|
|
|
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
|
-
|
|
436
264
|
## `ConfigureMaxImageDimensionsProp` (object)
|
|
437
265
|
|
|
438
266
|
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
package/docs/pie-schema.json
CHANGED
|
@@ -115,56 +115,6 @@
|
|
|
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
|
-
},
|
|
168
118
|
"ConfigurePropWithEnabled": {
|
|
169
119
|
"title": "ConfigurePropWithEnabled",
|
|
170
120
|
"type": "object",
|
|
@@ -202,61 +152,6 @@
|
|
|
202
152
|
}
|
|
203
153
|
}
|
|
204
154
|
},
|
|
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
|
-
},
|
|
260
155
|
"ConfigureMaxImageDimensionsProp": {
|
|
261
156
|
"title": "ConfigureMaxImageDimensionsProp",
|
|
262
157
|
"type": "object",
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -88,42 +88,6 @@ 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
|
-
|
|
127
91
|
## `ConfigurePropWithEnabled` (object)
|
|
128
92
|
|
|
129
93
|
Properties of the `ConfigurePropWithEnabled` object:
|
|
@@ -153,46 +117,6 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
153
117
|
|
|
154
118
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
155
119
|
|
|
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
|
-
|
|
196
120
|
## `ConfigureMaxImageDimensionsProp` (object)
|
|
197
121
|
|
|
198
122
|
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.
|
|
3
|
+
"version": "7.4.2-next.9+6959e2131",
|
|
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": "
|
|
26
|
+
"gitHead": "6959e21314c39dd7d0e0db3589047cb205eb44d5",
|
|
27
27
|
"scripts": {
|
|
28
28
|
"postpublish": "../../scripts/postpublish"
|
|
29
29
|
},
|