@pie-element/extended-text-entry 10.7.1-next.2 → 10.7.1-next.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure/lib/defaults.js +24 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/main.js +12 -3
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +294 -1
- package/docs/config-schema.json.md +212 -0
- package/docs/pie-schema.json +127 -0
- package/docs/pie-schema.json.md +92 -0
- package/module/configure.js +42 -13
- package/module/element.js +1 -1
- package/module/manifest.json +1 -1
- package/module/print.js +1 -1
- package/package.json +3 -3
|
@@ -86,11 +86,33 @@ var _default = {
|
|
|
86
86
|
},
|
|
87
87
|
prompt: {
|
|
88
88
|
settings: true,
|
|
89
|
-
label: 'Prompt'
|
|
89
|
+
label: 'Prompt',
|
|
90
|
+
inputConfiguration: {
|
|
91
|
+
audio: {
|
|
92
|
+
disabled: false
|
|
93
|
+
},
|
|
94
|
+
video: {
|
|
95
|
+
disabled: false
|
|
96
|
+
},
|
|
97
|
+
image: {
|
|
98
|
+
disabled: false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
90
101
|
},
|
|
91
102
|
teacherInstructions: {
|
|
92
103
|
settings: true,
|
|
93
|
-
label: 'Teacher Instructions'
|
|
104
|
+
label: 'Teacher Instructions',
|
|
105
|
+
inputConfiguration: {
|
|
106
|
+
audio: {
|
|
107
|
+
disabled: false
|
|
108
|
+
},
|
|
109
|
+
video: {
|
|
110
|
+
disabled: false
|
|
111
|
+
},
|
|
112
|
+
image: {
|
|
113
|
+
disabled: false
|
|
114
|
+
}
|
|
115
|
+
}
|
|
94
116
|
},
|
|
95
117
|
maxImageWidth: {
|
|
96
118
|
teacherInstructions: 300,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","dimensions","height","width","prompt","mathInput","spanishInput","specialInput","equationEditor","feedbackEnabled","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","spellCheckEnabled","playerSpellCheckDisabled","toolbarEditorPosition","configuration","baseInputConfiguration","audio","disabled","video","image","settings","label","spellCheck","enabled","playerSpellCheck","feedback","settingsPanelDisabled","multiple","studentInstructions","teacherInstructions","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE;AACVC,MAAAA,MAAM,EAAE,GADE;AAEVC,MAAAA,KAAK,EAAE;AAFG,KADP;AAKLC,IAAAA,MAAM,EAAE,6BALH;AAMLC,IAAAA,SAAS,EAAE,KANN;AAOLC,IAAAA,YAAY,EAAE,KAPT;AAQLC,IAAAA,YAAY,EAAE,KART;AASLC,IAAAA,cAAc,EAAE,cATX;AAULC,IAAAA,eAAe,EAAE,KAVZ;AAWLC,IAAAA,gBAAgB,EAAE,IAXb;AAYLC,IAAAA,aAAa,EAAE,IAZV;AAaLC,IAAAA,0BAA0B,EAAE,IAbvB;AAcLC,IAAAA,0BAA0B,EAAE,IAdvB;AAeLC,IAAAA,iBAAiB,EAAE,IAfd;AAgBLC,IAAAA,wBAAwB,EAAE,IAhBrB;AAiBLC,IAAAA,qBAAqB,EAAE;AAjBlB,GADM;AAoBbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,sBAAsB,EAAE;AACtBC,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ,OADe;AAEtBC,MAAAA,KAAK,EAAE;AAAED,QAAAA,QAAQ,EAAE;AAAZ,OAFe;AAGtBE,MAAAA,KAAK,EAAE;AAAEF,QAAAA,QAAQ,EAAE;AAAZ;AAHe,KADX;AAMbnB,IAAAA,UAAU,EAAE;AACVsB,MAAAA,QAAQ,EAAE,IADA;AAEVC,MAAAA,KAAK,EAAE;AAFG,KANC;AAUbC,IAAAA,UAAU,EAAE;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
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","dimensions","height","width","prompt","mathInput","spanishInput","specialInput","equationEditor","feedbackEnabled","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","spellCheckEnabled","playerSpellCheckDisabled","toolbarEditorPosition","configuration","baseInputConfiguration","audio","disabled","video","image","settings","label","spellCheck","enabled","playerSpellCheck","feedback","settingsPanelDisabled","multiple","studentInstructions","inputConfiguration","teacherInstructions","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE;AACVC,MAAAA,MAAM,EAAE,GADE;AAEVC,MAAAA,KAAK,EAAE;AAFG,KADP;AAKLC,IAAAA,MAAM,EAAE,6BALH;AAMLC,IAAAA,SAAS,EAAE,KANN;AAOLC,IAAAA,YAAY,EAAE,KAPT;AAQLC,IAAAA,YAAY,EAAE,KART;AASLC,IAAAA,cAAc,EAAE,cATX;AAULC,IAAAA,eAAe,EAAE,KAVZ;AAWLC,IAAAA,gBAAgB,EAAE,IAXb;AAYLC,IAAAA,aAAa,EAAE,IAZV;AAaLC,IAAAA,0BAA0B,EAAE,IAbvB;AAcLC,IAAAA,0BAA0B,EAAE,IAdvB;AAeLC,IAAAA,iBAAiB,EAAE,IAfd;AAgBLC,IAAAA,wBAAwB,EAAE,IAhBrB;AAiBLC,IAAAA,qBAAqB,EAAE;AAjBlB,GADM;AAoBbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,sBAAsB,EAAE;AACtBC,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ,OADe;AAEtBC,MAAAA,KAAK,EAAE;AAAED,QAAAA,QAAQ,EAAE;AAAZ,OAFe;AAGtBE,MAAAA,KAAK,EAAE;AAAEF,QAAAA,QAAQ,EAAE;AAAZ;AAHe,KADX;AAMbnB,IAAAA,UAAU,EAAE;AACVsB,MAA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bpB,IAAAA,MAAM,EAAE;AACNmB,MAAAA,QAAQ,EAAE,IADJ;AAENC,MAAAA,KAAK,EAAE,QAFD;AAGNQ,MAAAA,kBAAkB,EAAE;AAClBb,QAAAA,KAAK,EAAE;AAAEC,UAAAA,QAAQ,EAAE;AAAZ,SADW;AAElBC,QAAAA,KAAK,EAAE;AAAED,UAAAA,QAAQ,EAAE;AAAZ,SAFW;AAGlBE,QAAAA,KAAK,EAAE;AAAEF,UAAAA,QAAQ,EAAE;AAAZ;AAHW;AAHd,KAtDK;AA+Dba,IAAAA,mBAAmB,EAAE;AACnBV,MAAAA,QAAQ,EAAE,IADS;AAEnBC,MAAAA,KAAK,EAAE,sBAFY;AAGnBQ,MAAAA,kBAAkB,EAAE;AAClBb,QAAAA,KAAK,EAAE;AAAEC,UAAAA,QAAQ,EAAE;AAAZ,SADW;AAElBC,QAAAA,KAAK,EAAE;AAAED,UAAAA,QAAQ,EAAE;AAAZ,SAFW;AAGlBE,QAAAA,KAAK,EAAE;AAAEF,UAAAA,QAAQ,EAAE;AAAZ;AAHW;AAHD,KA/DR;AAwEbc,IAAAA,aAAa,EAAE;AACbD,MAAAA,mBAAmB,EAAE,GADR;AAEb7B,MAAAA,MAAM,EAAE;AAFK,KAxEF;AA4Eb+B,IAAAA,cAAc,EAAE;AACdF,MAAAA,mBAAmB,EAAE,GADP;AAEd7B,MAAAA,MAAM,EAAE;AAFM,KA5EH;AAgFbgC,IAAAA,UAAU,EAAE;AACVb,MAAAA,QAAQ,EAAE,KADA;AAEVC,MAAAA,KAAK,EAAE;AAFG,KAhFC;AAoFba,IAAAA,aAAa,EAAE;AACbC,MAAAA,SAAS,EAAE,KADE;AAEbC,MAAAA,UAAU,EAAE;AAFC;AApFF;AApBF,C","sourcesContent":["export default {\n model: {\n dimensions: {\n height: 100,\n width: 500,\n },\n prompt: 'This is the question prompt',\n mathInput: false,\n spanishInput: false,\n specialInput: false,\n equationEditor: 'Grade 8 - HS',\n feedbackEnabled: false,\n rationaleEnabled: true,\n promptEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n spellCheckEnabled: true,\n playerSpellCheckDisabled: true,\n toolbarEditorPosition: 'bottom',\n },\n configuration: {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n dimensions: {\n settings: true,\n label: 'Text-Entry Display Size',\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n playerSpellCheck: {\n label: 'Disable Student Spellcheck',\n settings: true,\n enabled: true,\n },\n equationEditor: {\n settings: false,\n label: 'Equation Editor',\n enabled: true,\n },\n feedback: {\n settings: true,\n label: 'Feedback',\n },\n mathInput: {\n settings: true,\n label: 'Student response can include math notation',\n enabled: false,\n },\n settingsPanelDisabled: false,\n spanishInput: {\n settings: true,\n label: 'Students can insert Spanish',\n enabled: false,\n },\n specialInput: {\n settings: true,\n label: 'Students can insert Special Characters',\n enabled: false,\n },\n multiple: {\n settings: false,\n label: 'Multiple Parts',\n enabled: false,\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\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 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 },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/main.js
CHANGED
|
@@ -143,7 +143,9 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
143
143
|
_ref$withRubric = _ref.withRubric,
|
|
144
144
|
withRubric = _ref$withRubric === void 0 ? {} : _ref$withRubric,
|
|
145
145
|
_ref$mathMlOptions = _ref.mathMlOptions,
|
|
146
|
-
mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions
|
|
146
|
+
mathMlOptions = _ref$mathMlOptions === void 0 ? {} : _ref$mathMlOptions,
|
|
147
|
+
_ref$baseInputConfigu = _ref.baseInputConfiguration,
|
|
148
|
+
baseInputConfiguration = _ref$baseInputConfigu === void 0 ? {} : _ref$baseInputConfigu;
|
|
147
149
|
|
|
148
150
|
var _ref2 = model || {},
|
|
149
151
|
feedbackEnabled = _ref2.feedbackEnabled,
|
|
@@ -187,6 +189,11 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
187
189
|
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
188
190
|
rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
|
|
189
191
|
};
|
|
192
|
+
|
|
193
|
+
var getPluginProps = function getPluginProps(props) {
|
|
194
|
+
return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
|
|
195
|
+
};
|
|
196
|
+
|
|
190
197
|
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
191
198
|
dimensions: contentDimensions,
|
|
192
199
|
hideSettings: settingsPanelDisabled,
|
|
@@ -223,7 +230,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
223
230
|
}, {
|
|
224
231
|
language: 'special'
|
|
225
232
|
}],
|
|
226
|
-
mathMlOptions: mathMlOptions
|
|
233
|
+
mathMlOptions: mathMlOptions,
|
|
234
|
+
pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration)
|
|
227
235
|
})), promptEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
228
236
|
label: prompt.label,
|
|
229
237
|
className: classes.promptContainer
|
|
@@ -244,7 +252,8 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
244
252
|
}, {
|
|
245
253
|
language: 'special'
|
|
246
254
|
}],
|
|
247
|
-
mathMlOptions: mathMlOptions
|
|
255
|
+
mathMlOptions: mathMlOptions,
|
|
256
|
+
pluginProps: getPluginProps(prompt === null || prompt === void 0 ? void 0 : prompt.inputConfiguration)
|
|
248
257
|
})), feedbackEnabled && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
249
258
|
className: classes.header,
|
|
250
259
|
variant: "subheading"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","numberFields","dropdown","defaultFeedback","type","Main","props","markup","onModelChanged","model","prompt","feedback","update","teacherInstructions","state","setDimensions","classes","configuration","imageSupport","onConfigurationChanged","uploadSoundSupport","contentDimensions","dimensions","equationEditor","playerSpellCheck","settingsPanelDisabled","spanishInput","specialInput","spellCheck","studentInstructions","mathInput","maxImageWidth","maxImageHeight","multiple","withRubric","mathMlOptions","feedbackEnabled","promptEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","defaultImageMaxWidth","defaultImageMaxHeight","toolbarOpts","position","panelSettings","label","enabled","width","suffix","min","max","height","playerSpellCheckDisabled","panelProperties","studentInstructionsEnabled","rubricEnabled","config","Settings","Properties","promptContainer","changeTeacherInstructions","language","ALL_PLUGINS","onPromptChange","header","changeFeedback","React","Component","PropTypes","func","isRequired","object","theme","paddingBottom","spacing","unit","paddingTop","marginBottom"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAkDC,kBAAlD,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAkDD,kBAAlD,CAAeC,MAAf;AAAA,IAAuBC,YAAvB,GAAkDF,kBAAlD,CAAuBE,YAAvB;AAAA,IAAqCC,QAArC,GAAkDH,k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a,EAAEoD,sBAAUG,MAAV,CAAiBD,UAJf;AAKjBrD,EAAAA,YAAY,EAAEmD,sBAAUG,MAAV,CAAiBD,UALd;AAMjBnD,EAAAA,kBAAkB,EAAEiD,sBAAUG,MAAV,CAAiBD,UANpB;AAOjBvD,EAAAA,OAAO,EAAEqD,sBAAUG,MAAV,CAAiBD;AAPT,C;;eAmLN,wBAAW,UAACE,KAAD;AAAA,SAAY;AACpCR,IAAAA,MAAM,EAAE;AACNS,MAAAA,aAAa,EAAED,KAAK,CAACE,OAAN,CAAcC;AADvB,KAD4B;AAIpChB,IAAAA,eAAe,EAAE;AACfiB,MAAAA,UAAU,EAAEJ,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CADlB;AAEfE,MAAAA,YAAY,EAAEL,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CAFpB;AAGf5B,MAAAA,KAAK,EAAE;AAHQ;AAJmB,GAAZ;AAAA,CAAX,EASX3C,IATW,C","sourcesContent":["import React from 'react';\nimport { FeedbackSelector, InputContainer, settings, layout } from '@pie-lib/pie-toolbox/config-ui';\nimport PropTypes from 'prop-types';\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\nimport { EditableHtml, ALL_PLUGINS } from '@pie-lib/pie-toolbox/editable-html';\n\nconst { Panel, toggle, numberFields, dropdown } = settings;\n\nconst defaultFeedback = {\n type: 'default',\n default: 'Your answer has been submitted',\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n imageSupport: PropTypes.object.isRequired,\n uploadSoundSupport: PropTypes.object.isRequired,\n classes: PropTypes.object.isRequired,\n };\n\n constructor(props) {\n super(props);\n this.state = { setDimensions: true };\n }\n\n onPromptChange = (markup) => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({ ...model, prompt: markup });\n };\n\n changeFeedback = (feedback) => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, feedback };\n\n onModelChanged(update);\n };\n\n changeTeacherInstructions = (teacherInstructions) => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, teacherInstructions };\n\n onModelChanged(update);\n };\n\n render() {\n const { model, classes, configuration, imageSupport, onConfigurationChanged, onModelChanged, uploadSoundSupport } =\n this.props;\n const {\n contentDimensions = {},\n dimensions = {},\n equationEditor = {},\n feedback = {},\n playerSpellCheck = {},\n prompt = {},\n settingsPanelDisabled,\n spanishInput = {},\n specialInput = {},\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n mathInput = {},\n maxImageWidth = {},\n maxImageHeight = {},\n multiple = {},\n withRubric = {},\n mathMlOptions = {},\n } = configuration || {};\n const { feedbackEnabled, promptEnabled, spellCheckEnabled, teacherInstructionsEnabled, 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 mathInput: mathInput.settings && toggle(mathInput.label),\n equationEditor:\n equationEditor.enabled &&\n model.mathInput &&\n dropdown(equationEditor.label, [\n 'non-negative-integers',\n 'integers',\n 'decimals',\n 'fractions',\n 'Grade 1 - 2',\n 'Grade 3 - 5',\n 'Grade 6 - 7',\n 'Grade 8 - HS',\n 'geometry',\n 'advanced-algebra',\n 'statistics',\n 'item-authoring',\n ]),\n spanishInput: spanishInput.settings && toggle(spanishInput.label),\n specialInput: specialInput.settings && toggle(specialInput.label),\n dimensions: numberFields(dimensions.label, {\n width: { label: 'Width (px)', suffix: 'px', min: 100, max: 500 },\n height: { label: 'Height (px)', suffix: 'px', min: 100, max: 500 },\n }),\n 'multiple.enabled': multiple.settings && toggle(multiple.label, true),\n promptEnabled: prompt.settings && toggle(prompt.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n playerSpellCheckDisabled: playerSpellCheck.settings && toggle(playerSpellCheck.label),\n };\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.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 configuration={configuration}\n onChangeModel={(model) => onModelChanged(model)}\n onChangeConfiguration={(config) => onConfigurationChanged(config)}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptContainer}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.changeTeacherInstructions}\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={prompt.label} className={classes.promptContainer}>\n <EditableHtml\n activePlugins={ALL_PLUGINS}\n className={classes.prompt}\n markup={model.prompt || ''}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {feedbackEnabled && (\n <React.Fragment>\n <Typography className={classes.header} variant=\"subheading\">\n Feedback\n </Typography>\n\n <FeedbackSelector\n label=\"When submitted, show\"\n feedback={model.feedback || defaultFeedback}\n onChange={this.changeFeedback}\n toolbarOpts={toolbarOpts}\n />\n </React.Fragment>\n )}\n </layout.ConfigLayout>\n );\n }\n}\nexport default withStyles((theme) => ({\n header: {\n paddingBottom: theme.spacing.unit,\n },\n promptContainer: {\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n width: '100%',\n },\n}))(Main);\n"],"file":"main.js"}
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","numberFields","dropdown","defaultFeedback","type","Main","props","markup","onModelChanged","model","prompt","feedback","update","teacherInstructions","state","setDimensions","classes","configuration","imageSupport","onConfigurationChanged","uploadSoundSupport","contentDimensions","dimensions","equationEditor","playerSpellCheck","settingsPanelDisabled","spanishInput","specialInput","spellCheck","studentInstructions","mathInput","maxImageWidth","maxImageHeight","multiple","withRubric","mathMlOptions","baseInputConfiguration","feedbackEnabled","promptEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","defaultImageMaxWidth","defaultImageMaxHeight","toolbarOpts","position","panelSettings","label","enabled","width","suffix","min","max","height","playerSpellCheckDisabled","panelProperties","studentInstructionsEnabled","rubricEnabled","getPluginProps","Object","assign","config","Settings","Properties","promptContainer","changeTeacherInstructions","language","inputConfiguration","ALL_PLUGINS","onPromptChange","header","changeFeedback","React","Component","PropTypes","func","isRequired","object","theme","paddingBottom","spacing","unit","paddingTop","marginBottom"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAkDC,kBAAlD,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAkDD,kBAAlD,CAAeC,MAAf;AAAA,IAAuBC,YAAvB,GAAkDF,kBAAlD,CAAuBE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;AAA/C,oBADF,eAKE,gCAAC,0BAAD;AACE,QAAA,KAAK,EAAC,sBADR;AAEE,QAAA,QAAQ,EAAE7D,KAAK,CAACE,QAAN,IAAkBR,eAF9B;AAGE,QAAA,QAAQ,EAAE,KAAKoE,cAHjB;AAIE,QAAA,WAAW,EAAE3B;AAJf,QALF,CA1DJ,CADF;AA0ED;;;EA9LuB4B,kBAAMC,S;;;iCAAnBpE,I,eACQ;AACjBG,EAAAA,cAAc,EAAEkE,sBAAUC,IAAV,CAAeC,UADd;AAEjBzD,EAAAA,sBAAsB,EAAEuD,sBAAUC,IAFjB;AAGjBlE,EAAAA,KAAK,EAAEiE,sBAAUG,MAAV,CAAiBD,UAHP;AAIjB3D,EAAAA,aAAa,EAAEyD,sBAAUG,MAAV,CAAiBD,UAJf;AAKjB1D,EAAAA,YAAY,EAAEwD,sBAAUG,MAAV,CAAiBD,UALd;AAMjBxD,EAAAA,kBAAkB,EAAEsD,sBAAUG,MAAV,CAAiBD,UANpB;AAOjB5D,EAAAA,OAAO,EAAE0D,sBAAUG,MAAV,CAAiBD;AAPT,C;;eA+LN,wBAAW,UAACE,KAAD;AAAA,SAAY;AACpCR,IAAAA,MAAM,EAAE;AACNS,MAAAA,aAAa,EAAED,KAAK,CAACE,OAAN,CAAcC;AADvB,KAD4B;AAIpCjB,IAAAA,eAAe,EAAE;AACfkB,MAAAA,UAAU,EAAEJ,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CADlB;AAEfE,MAAAA,YAAY,EAAEL,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CAFpB;AAGfhC,MAAAA,KAAK,EAAE;AAHQ;AAJmB,GAAZ;AAAA,CAAX,EASX5C,IATW,C","sourcesContent":["import React from 'react';\nimport { FeedbackSelector, InputContainer, settings, layout } from '@pie-lib/pie-toolbox/config-ui';\nimport PropTypes from 'prop-types';\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\nimport { EditableHtml, ALL_PLUGINS } from '@pie-lib/pie-toolbox/editable-html';\n\nconst { Panel, toggle, numberFields, dropdown } = settings;\n\nconst defaultFeedback = {\n type: 'default',\n default: 'Your answer has been submitted',\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n imageSupport: PropTypes.object.isRequired,\n uploadSoundSupport: PropTypes.object.isRequired,\n classes: PropTypes.object.isRequired,\n };\n\n constructor(props) {\n super(props);\n this.state = { setDimensions: true };\n }\n\n onPromptChange = (markup) => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({ ...model, prompt: markup });\n };\n\n changeFeedback = (feedback) => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, feedback };\n\n onModelChanged(update);\n };\n\n changeTeacherInstructions = (teacherInstructions) => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, teacherInstructions };\n\n onModelChanged(update);\n };\n\n render() {\n const { model, classes, configuration, imageSupport, onConfigurationChanged, onModelChanged, uploadSoundSupport } =\n this.props;\n const {\n contentDimensions = {},\n dimensions = {},\n equationEditor = {},\n feedback = {},\n playerSpellCheck = {},\n prompt = {},\n settingsPanelDisabled,\n spanishInput = {},\n specialInput = {},\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n mathInput = {},\n maxImageWidth = {},\n maxImageHeight = {},\n multiple = {},\n withRubric = {},\n mathMlOptions = {},\n baseInputConfiguration = {},\n } = configuration || {};\n const { feedbackEnabled, promptEnabled, spellCheckEnabled, teacherInstructionsEnabled, 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 mathInput: mathInput.settings && toggle(mathInput.label),\n equationEditor:\n equationEditor.enabled &&\n model.mathInput &&\n dropdown(equationEditor.label, [\n 'non-negative-integers',\n 'integers',\n 'decimals',\n 'fractions',\n 'Grade 1 - 2',\n 'Grade 3 - 5',\n 'Grade 6 - 7',\n 'Grade 8 - HS',\n 'geometry',\n 'advanced-algebra',\n 'statistics',\n 'item-authoring',\n ]),\n spanishInput: spanishInput.settings && toggle(spanishInput.label),\n specialInput: specialInput.settings && toggle(specialInput.label),\n dimensions: numberFields(dimensions.label, {\n width: { label: 'Width (px)', suffix: 'px', min: 100, max: 500 },\n height: { label: 'Height (px)', suffix: 'px', min: 100, max: 500 },\n }),\n 'multiple.enabled': multiple.settings && toggle(multiple.label, true),\n promptEnabled: prompt.settings && toggle(prompt.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n playerSpellCheckDisabled: playerSpellCheck.settings && toggle(playerSpellCheck.label),\n };\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.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 configuration={configuration}\n onChangeModel={(model) => onModelChanged(model)}\n onChangeConfiguration={(config) => onConfigurationChanged(config)}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptContainer}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.changeTeacherInstructions}\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 pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptContainer}>\n <EditableHtml\n activePlugins={ALL_PLUGINS}\n className={classes.prompt}\n markup={model.prompt || ''}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n />\n </InputContainer>\n )}\n\n {feedbackEnabled && (\n <React.Fragment>\n <Typography className={classes.header} variant=\"subheading\">\n Feedback\n </Typography>\n\n <FeedbackSelector\n label=\"When submitted, show\"\n feedback={model.feedback || defaultFeedback}\n onChange={this.changeFeedback}\n toolbarOpts={toolbarOpts}\n />\n </React.Fragment>\n )}\n </layout.ConfigLayout>\n );\n }\n}\nexport default withStyles((theme) => ({\n header: {\n paddingBottom: theme.spacing.unit,\n },\n promptContainer: {\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n width: '100%',\n },\n}))(Main);\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
package/controller/package.json
CHANGED
package/docs/config-schema.json
CHANGED
|
@@ -110,9 +110,125 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"teacherInstructions": {
|
|
113
|
-
"title": "
|
|
113
|
+
"title": "EditableHtmlPluginConfigure",
|
|
114
114
|
"type": "object",
|
|
115
115
|
"properties": {
|
|
116
|
+
"inputConfiguration": {
|
|
117
|
+
"title": "EditableHtmlConfigureProp",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"math": {
|
|
121
|
+
"title": "EditableHtmlButtonConfigure",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"disabled": {
|
|
125
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"title": "disabled"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"audio": {
|
|
132
|
+
"title": "EditableHtmlButtonConfigure",
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"disabled": {
|
|
136
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"title": "disabled"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"video": {
|
|
143
|
+
"title": "EditableHtmlButtonConfigure",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"disabled": {
|
|
147
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"title": "disabled"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"image": {
|
|
154
|
+
"title": "EditableHtmlButtonConfigure",
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"disabled": {
|
|
158
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"title": "disabled"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"settings": {
|
|
167
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"title": "settings"
|
|
170
|
+
},
|
|
171
|
+
"label": {
|
|
172
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
173
|
+
"type": "string",
|
|
174
|
+
"title": "label"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"prompt": {
|
|
179
|
+
"title": "EditableHtmlPluginConfigure",
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"inputConfiguration": {
|
|
183
|
+
"title": "EditableHtmlConfigureProp",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"math": {
|
|
187
|
+
"title": "EditableHtmlButtonConfigure",
|
|
188
|
+
"type": "object",
|
|
189
|
+
"properties": {
|
|
190
|
+
"disabled": {
|
|
191
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"title": "disabled"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"audio": {
|
|
198
|
+
"title": "EditableHtmlButtonConfigure",
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"disabled": {
|
|
202
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"title": "disabled"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"video": {
|
|
209
|
+
"title": "EditableHtmlButtonConfigure",
|
|
210
|
+
"type": "object",
|
|
211
|
+
"properties": {
|
|
212
|
+
"disabled": {
|
|
213
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"title": "disabled"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"image": {
|
|
220
|
+
"title": "EditableHtmlButtonConfigure",
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"disabled": {
|
|
224
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"title": "disabled"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
116
232
|
"settings": {
|
|
117
233
|
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
118
234
|
"type": "boolean",
|
|
@@ -252,6 +368,56 @@
|
|
|
252
368
|
}
|
|
253
369
|
}
|
|
254
370
|
},
|
|
371
|
+
"baseInputConfiguration": {
|
|
372
|
+
"title": "EditableHtmlConfigureProp",
|
|
373
|
+
"type": "object",
|
|
374
|
+
"properties": {
|
|
375
|
+
"math": {
|
|
376
|
+
"title": "EditableHtmlButtonConfigure",
|
|
377
|
+
"type": "object",
|
|
378
|
+
"properties": {
|
|
379
|
+
"disabled": {
|
|
380
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
381
|
+
"type": "boolean",
|
|
382
|
+
"title": "disabled"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"audio": {
|
|
387
|
+
"title": "EditableHtmlButtonConfigure",
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"disabled": {
|
|
391
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
392
|
+
"type": "boolean",
|
|
393
|
+
"title": "disabled"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"video": {
|
|
398
|
+
"title": "EditableHtmlButtonConfigure",
|
|
399
|
+
"type": "object",
|
|
400
|
+
"properties": {
|
|
401
|
+
"disabled": {
|
|
402
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
403
|
+
"type": "boolean",
|
|
404
|
+
"title": "disabled"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"image": {
|
|
409
|
+
"title": "EditableHtmlButtonConfigure",
|
|
410
|
+
"type": "object",
|
|
411
|
+
"properties": {
|
|
412
|
+
"disabled": {
|
|
413
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
414
|
+
"type": "boolean",
|
|
415
|
+
"title": "disabled"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
255
421
|
"showPrompt": {
|
|
256
422
|
"description": "Determines whether prompt field will be displayed or not",
|
|
257
423
|
"default": true,
|
|
@@ -353,6 +519,133 @@
|
|
|
353
519
|
}
|
|
354
520
|
}
|
|
355
521
|
},
|
|
522
|
+
"EditableHtmlPluginConfigure": {
|
|
523
|
+
"title": "EditableHtmlPluginConfigure",
|
|
524
|
+
"type": "object",
|
|
525
|
+
"properties": {
|
|
526
|
+
"inputConfiguration": {
|
|
527
|
+
"title": "EditableHtmlConfigureProp",
|
|
528
|
+
"type": "object",
|
|
529
|
+
"properties": {
|
|
530
|
+
"math": {
|
|
531
|
+
"title": "EditableHtmlButtonConfigure",
|
|
532
|
+
"type": "object",
|
|
533
|
+
"properties": {
|
|
534
|
+
"disabled": {
|
|
535
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
536
|
+
"type": "boolean",
|
|
537
|
+
"title": "disabled"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"audio": {
|
|
542
|
+
"title": "EditableHtmlButtonConfigure",
|
|
543
|
+
"type": "object",
|
|
544
|
+
"properties": {
|
|
545
|
+
"disabled": {
|
|
546
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
547
|
+
"type": "boolean",
|
|
548
|
+
"title": "disabled"
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"video": {
|
|
553
|
+
"title": "EditableHtmlButtonConfigure",
|
|
554
|
+
"type": "object",
|
|
555
|
+
"properties": {
|
|
556
|
+
"disabled": {
|
|
557
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
558
|
+
"type": "boolean",
|
|
559
|
+
"title": "disabled"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"image": {
|
|
564
|
+
"title": "EditableHtmlButtonConfigure",
|
|
565
|
+
"type": "object",
|
|
566
|
+
"properties": {
|
|
567
|
+
"disabled": {
|
|
568
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
569
|
+
"type": "boolean",
|
|
570
|
+
"title": "disabled"
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"settings": {
|
|
577
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
578
|
+
"type": "boolean",
|
|
579
|
+
"title": "settings"
|
|
580
|
+
},
|
|
581
|
+
"label": {
|
|
582
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
583
|
+
"type": "string",
|
|
584
|
+
"title": "label"
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"EditableHtmlConfigureProp": {
|
|
589
|
+
"title": "EditableHtmlConfigureProp",
|
|
590
|
+
"type": "object",
|
|
591
|
+
"properties": {
|
|
592
|
+
"math": {
|
|
593
|
+
"title": "EditableHtmlButtonConfigure",
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"disabled": {
|
|
597
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
598
|
+
"type": "boolean",
|
|
599
|
+
"title": "disabled"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"audio": {
|
|
604
|
+
"title": "EditableHtmlButtonConfigure",
|
|
605
|
+
"type": "object",
|
|
606
|
+
"properties": {
|
|
607
|
+
"disabled": {
|
|
608
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
609
|
+
"type": "boolean",
|
|
610
|
+
"title": "disabled"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"video": {
|
|
615
|
+
"title": "EditableHtmlButtonConfigure",
|
|
616
|
+
"type": "object",
|
|
617
|
+
"properties": {
|
|
618
|
+
"disabled": {
|
|
619
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
620
|
+
"type": "boolean",
|
|
621
|
+
"title": "disabled"
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"image": {
|
|
626
|
+
"title": "EditableHtmlButtonConfigure",
|
|
627
|
+
"type": "object",
|
|
628
|
+
"properties": {
|
|
629
|
+
"disabled": {
|
|
630
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"title": "disabled"
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"EditableHtmlButtonConfigure": {
|
|
639
|
+
"title": "EditableHtmlButtonConfigure",
|
|
640
|
+
"type": "object",
|
|
641
|
+
"properties": {
|
|
642
|
+
"disabled": {
|
|
643
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
644
|
+
"type": "boolean",
|
|
645
|
+
"title": "disabled"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
356
649
|
"ConfigureMaxImageDimensionsProp": {
|
|
357
650
|
"title": "ConfigureMaxImageDimensionsProp",
|
|
358
651
|
"type": "object",
|
|
@@ -87,6 +87,90 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
87
87
|
|
|
88
88
|
Properties of the `teacherInstructions` object:
|
|
89
89
|
|
|
90
|
+
## `inputConfiguration` (object)
|
|
91
|
+
|
|
92
|
+
Properties of the `inputConfiguration` object:
|
|
93
|
+
|
|
94
|
+
### `math` (object)
|
|
95
|
+
|
|
96
|
+
Properties of the `math` object:
|
|
97
|
+
|
|
98
|
+
#### `disabled` (boolean)
|
|
99
|
+
|
|
100
|
+
Indicates if the plugin is disabled or not
|
|
101
|
+
|
|
102
|
+
### `audio` (object)
|
|
103
|
+
|
|
104
|
+
Properties of the `audio` object:
|
|
105
|
+
|
|
106
|
+
#### `disabled` (boolean)
|
|
107
|
+
|
|
108
|
+
Indicates if the plugin is disabled or not
|
|
109
|
+
|
|
110
|
+
### `video` (object)
|
|
111
|
+
|
|
112
|
+
Properties of the `video` object:
|
|
113
|
+
|
|
114
|
+
#### `disabled` (boolean)
|
|
115
|
+
|
|
116
|
+
Indicates if the plugin is disabled or not
|
|
117
|
+
|
|
118
|
+
### `image` (object)
|
|
119
|
+
|
|
120
|
+
Properties of the `image` object:
|
|
121
|
+
|
|
122
|
+
#### `disabled` (boolean)
|
|
123
|
+
|
|
124
|
+
Indicates if the plugin is disabled or not
|
|
125
|
+
|
|
126
|
+
## `settings` (boolean)
|
|
127
|
+
|
|
128
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
129
|
+
|
|
130
|
+
## `label` (string)
|
|
131
|
+
|
|
132
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
133
|
+
|
|
134
|
+
# `prompt` (object)
|
|
135
|
+
|
|
136
|
+
Properties of the `prompt` object:
|
|
137
|
+
|
|
138
|
+
## `inputConfiguration` (object)
|
|
139
|
+
|
|
140
|
+
Properties of the `inputConfiguration` object:
|
|
141
|
+
|
|
142
|
+
### `math` (object)
|
|
143
|
+
|
|
144
|
+
Properties of the `math` object:
|
|
145
|
+
|
|
146
|
+
#### `disabled` (boolean)
|
|
147
|
+
|
|
148
|
+
Indicates if the plugin is disabled or not
|
|
149
|
+
|
|
150
|
+
### `audio` (object)
|
|
151
|
+
|
|
152
|
+
Properties of the `audio` object:
|
|
153
|
+
|
|
154
|
+
#### `disabled` (boolean)
|
|
155
|
+
|
|
156
|
+
Indicates if the plugin is disabled or not
|
|
157
|
+
|
|
158
|
+
### `video` (object)
|
|
159
|
+
|
|
160
|
+
Properties of the `video` object:
|
|
161
|
+
|
|
162
|
+
#### `disabled` (boolean)
|
|
163
|
+
|
|
164
|
+
Indicates if the plugin is disabled or not
|
|
165
|
+
|
|
166
|
+
### `image` (object)
|
|
167
|
+
|
|
168
|
+
Properties of the `image` object:
|
|
169
|
+
|
|
170
|
+
#### `disabled` (boolean)
|
|
171
|
+
|
|
172
|
+
Indicates if the plugin is disabled or not
|
|
173
|
+
|
|
90
174
|
## `settings` (boolean)
|
|
91
175
|
|
|
92
176
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -194,6 +278,42 @@ Indicates if model should have mathML output instead of latex
|
|
|
194
278
|
|
|
195
279
|
Indicates if mathML that's already in model should be editable
|
|
196
280
|
|
|
281
|
+
# `baseInputConfiguration` (object)
|
|
282
|
+
|
|
283
|
+
Properties of the `baseInputConfiguration` object:
|
|
284
|
+
|
|
285
|
+
## `math` (object)
|
|
286
|
+
|
|
287
|
+
Properties of the `math` object:
|
|
288
|
+
|
|
289
|
+
### `disabled` (boolean)
|
|
290
|
+
|
|
291
|
+
Indicates if the plugin is disabled or not
|
|
292
|
+
|
|
293
|
+
## `audio` (object)
|
|
294
|
+
|
|
295
|
+
Properties of the `audio` object:
|
|
296
|
+
|
|
297
|
+
### `disabled` (boolean)
|
|
298
|
+
|
|
299
|
+
Indicates if the plugin is disabled or not
|
|
300
|
+
|
|
301
|
+
## `video` (object)
|
|
302
|
+
|
|
303
|
+
Properties of the `video` object:
|
|
304
|
+
|
|
305
|
+
### `disabled` (boolean)
|
|
306
|
+
|
|
307
|
+
Indicates if the plugin is disabled or not
|
|
308
|
+
|
|
309
|
+
## `image` (object)
|
|
310
|
+
|
|
311
|
+
Properties of the `image` object:
|
|
312
|
+
|
|
313
|
+
### `disabled` (boolean)
|
|
314
|
+
|
|
315
|
+
Indicates if the plugin is disabled or not
|
|
316
|
+
|
|
197
317
|
# `showPrompt` (boolean)
|
|
198
318
|
|
|
199
319
|
Determines whether prompt field will be displayed or not
|
|
@@ -281,6 +401,98 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
281
401
|
|
|
282
402
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
283
403
|
|
|
404
|
+
## `EditableHtmlPluginConfigure` (object)
|
|
405
|
+
|
|
406
|
+
Properties of the `EditableHtmlPluginConfigure` object:
|
|
407
|
+
|
|
408
|
+
### `inputConfiguration` (object)
|
|
409
|
+
|
|
410
|
+
Properties of the `inputConfiguration` object:
|
|
411
|
+
|
|
412
|
+
#### `math` (object)
|
|
413
|
+
|
|
414
|
+
Properties of the `math` object:
|
|
415
|
+
|
|
416
|
+
##### `disabled` (boolean)
|
|
417
|
+
|
|
418
|
+
Indicates if the plugin is disabled or not
|
|
419
|
+
|
|
420
|
+
#### `audio` (object)
|
|
421
|
+
|
|
422
|
+
Properties of the `audio` object:
|
|
423
|
+
|
|
424
|
+
##### `disabled` (boolean)
|
|
425
|
+
|
|
426
|
+
Indicates if the plugin is disabled or not
|
|
427
|
+
|
|
428
|
+
#### `video` (object)
|
|
429
|
+
|
|
430
|
+
Properties of the `video` object:
|
|
431
|
+
|
|
432
|
+
##### `disabled` (boolean)
|
|
433
|
+
|
|
434
|
+
Indicates if the plugin is disabled or not
|
|
435
|
+
|
|
436
|
+
#### `image` (object)
|
|
437
|
+
|
|
438
|
+
Properties of the `image` object:
|
|
439
|
+
|
|
440
|
+
##### `disabled` (boolean)
|
|
441
|
+
|
|
442
|
+
Indicates if the plugin is disabled or not
|
|
443
|
+
|
|
444
|
+
### `settings` (boolean)
|
|
445
|
+
|
|
446
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
447
|
+
|
|
448
|
+
### `label` (string)
|
|
449
|
+
|
|
450
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
451
|
+
|
|
452
|
+
## `EditableHtmlConfigureProp` (object)
|
|
453
|
+
|
|
454
|
+
Properties of the `EditableHtmlConfigureProp` object:
|
|
455
|
+
|
|
456
|
+
### `math` (object)
|
|
457
|
+
|
|
458
|
+
Properties of the `math` object:
|
|
459
|
+
|
|
460
|
+
#### `disabled` (boolean)
|
|
461
|
+
|
|
462
|
+
Indicates if the plugin is disabled or not
|
|
463
|
+
|
|
464
|
+
### `audio` (object)
|
|
465
|
+
|
|
466
|
+
Properties of the `audio` object:
|
|
467
|
+
|
|
468
|
+
#### `disabled` (boolean)
|
|
469
|
+
|
|
470
|
+
Indicates if the plugin is disabled or not
|
|
471
|
+
|
|
472
|
+
### `video` (object)
|
|
473
|
+
|
|
474
|
+
Properties of the `video` object:
|
|
475
|
+
|
|
476
|
+
#### `disabled` (boolean)
|
|
477
|
+
|
|
478
|
+
Indicates if the plugin is disabled or not
|
|
479
|
+
|
|
480
|
+
### `image` (object)
|
|
481
|
+
|
|
482
|
+
Properties of the `image` object:
|
|
483
|
+
|
|
484
|
+
#### `disabled` (boolean)
|
|
485
|
+
|
|
486
|
+
Indicates if the plugin is disabled or not
|
|
487
|
+
|
|
488
|
+
## `EditableHtmlButtonConfigure` (object)
|
|
489
|
+
|
|
490
|
+
Properties of the `EditableHtmlButtonConfigure` object:
|
|
491
|
+
|
|
492
|
+
### `disabled` (boolean)
|
|
493
|
+
|
|
494
|
+
Indicates if the plugin is disabled or not
|
|
495
|
+
|
|
284
496
|
## `ConfigureMaxImageDimensionsProp` (object)
|
|
285
497
|
|
|
286
498
|
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
package/docs/pie-schema.json
CHANGED
|
@@ -214,6 +214,133 @@
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
+
"EditableHtmlPluginConfigure": {
|
|
218
|
+
"title": "EditableHtmlPluginConfigure",
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"inputConfiguration": {
|
|
222
|
+
"title": "EditableHtmlConfigureProp",
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {
|
|
225
|
+
"math": {
|
|
226
|
+
"title": "EditableHtmlButtonConfigure",
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"disabled": {
|
|
230
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"title": "disabled"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"audio": {
|
|
237
|
+
"title": "EditableHtmlButtonConfigure",
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"disabled": {
|
|
241
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"title": "disabled"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"video": {
|
|
248
|
+
"title": "EditableHtmlButtonConfigure",
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"disabled": {
|
|
252
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
253
|
+
"type": "boolean",
|
|
254
|
+
"title": "disabled"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"image": {
|
|
259
|
+
"title": "EditableHtmlButtonConfigure",
|
|
260
|
+
"type": "object",
|
|
261
|
+
"properties": {
|
|
262
|
+
"disabled": {
|
|
263
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"title": "disabled"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"settings": {
|
|
272
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
273
|
+
"type": "boolean",
|
|
274
|
+
"title": "settings"
|
|
275
|
+
},
|
|
276
|
+
"label": {
|
|
277
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
278
|
+
"type": "string",
|
|
279
|
+
"title": "label"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"EditableHtmlConfigureProp": {
|
|
284
|
+
"title": "EditableHtmlConfigureProp",
|
|
285
|
+
"type": "object",
|
|
286
|
+
"properties": {
|
|
287
|
+
"math": {
|
|
288
|
+
"title": "EditableHtmlButtonConfigure",
|
|
289
|
+
"type": "object",
|
|
290
|
+
"properties": {
|
|
291
|
+
"disabled": {
|
|
292
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
293
|
+
"type": "boolean",
|
|
294
|
+
"title": "disabled"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"audio": {
|
|
299
|
+
"title": "EditableHtmlButtonConfigure",
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"disabled": {
|
|
303
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
304
|
+
"type": "boolean",
|
|
305
|
+
"title": "disabled"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"video": {
|
|
310
|
+
"title": "EditableHtmlButtonConfigure",
|
|
311
|
+
"type": "object",
|
|
312
|
+
"properties": {
|
|
313
|
+
"disabled": {
|
|
314
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"title": "disabled"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"image": {
|
|
321
|
+
"title": "EditableHtmlButtonConfigure",
|
|
322
|
+
"type": "object",
|
|
323
|
+
"properties": {
|
|
324
|
+
"disabled": {
|
|
325
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"title": "disabled"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"EditableHtmlButtonConfigure": {
|
|
334
|
+
"title": "EditableHtmlButtonConfigure",
|
|
335
|
+
"type": "object",
|
|
336
|
+
"properties": {
|
|
337
|
+
"disabled": {
|
|
338
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"title": "disabled"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
217
344
|
"ConfigureMaxImageDimensionsProp": {
|
|
218
345
|
"title": "ConfigureMaxImageDimensionsProp",
|
|
219
346
|
"type": "object",
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -173,6 +173,98 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
173
173
|
|
|
174
174
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
175
175
|
|
|
176
|
+
## `EditableHtmlPluginConfigure` (object)
|
|
177
|
+
|
|
178
|
+
Properties of the `EditableHtmlPluginConfigure` object:
|
|
179
|
+
|
|
180
|
+
### `inputConfiguration` (object)
|
|
181
|
+
|
|
182
|
+
Properties of the `inputConfiguration` object:
|
|
183
|
+
|
|
184
|
+
#### `math` (object)
|
|
185
|
+
|
|
186
|
+
Properties of the `math` object:
|
|
187
|
+
|
|
188
|
+
##### `disabled` (boolean)
|
|
189
|
+
|
|
190
|
+
Indicates if the plugin is disabled or not
|
|
191
|
+
|
|
192
|
+
#### `audio` (object)
|
|
193
|
+
|
|
194
|
+
Properties of the `audio` object:
|
|
195
|
+
|
|
196
|
+
##### `disabled` (boolean)
|
|
197
|
+
|
|
198
|
+
Indicates if the plugin is disabled or not
|
|
199
|
+
|
|
200
|
+
#### `video` (object)
|
|
201
|
+
|
|
202
|
+
Properties of the `video` object:
|
|
203
|
+
|
|
204
|
+
##### `disabled` (boolean)
|
|
205
|
+
|
|
206
|
+
Indicates if the plugin is disabled or not
|
|
207
|
+
|
|
208
|
+
#### `image` (object)
|
|
209
|
+
|
|
210
|
+
Properties of the `image` object:
|
|
211
|
+
|
|
212
|
+
##### `disabled` (boolean)
|
|
213
|
+
|
|
214
|
+
Indicates if the plugin is disabled or not
|
|
215
|
+
|
|
216
|
+
### `settings` (boolean)
|
|
217
|
+
|
|
218
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
219
|
+
|
|
220
|
+
### `label` (string)
|
|
221
|
+
|
|
222
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
223
|
+
|
|
224
|
+
## `EditableHtmlConfigureProp` (object)
|
|
225
|
+
|
|
226
|
+
Properties of the `EditableHtmlConfigureProp` object:
|
|
227
|
+
|
|
228
|
+
### `math` (object)
|
|
229
|
+
|
|
230
|
+
Properties of the `math` object:
|
|
231
|
+
|
|
232
|
+
#### `disabled` (boolean)
|
|
233
|
+
|
|
234
|
+
Indicates if the plugin is disabled or not
|
|
235
|
+
|
|
236
|
+
### `audio` (object)
|
|
237
|
+
|
|
238
|
+
Properties of the `audio` object:
|
|
239
|
+
|
|
240
|
+
#### `disabled` (boolean)
|
|
241
|
+
|
|
242
|
+
Indicates if the plugin is disabled or not
|
|
243
|
+
|
|
244
|
+
### `video` (object)
|
|
245
|
+
|
|
246
|
+
Properties of the `video` object:
|
|
247
|
+
|
|
248
|
+
#### `disabled` (boolean)
|
|
249
|
+
|
|
250
|
+
Indicates if the plugin is disabled or not
|
|
251
|
+
|
|
252
|
+
### `image` (object)
|
|
253
|
+
|
|
254
|
+
Properties of the `image` object:
|
|
255
|
+
|
|
256
|
+
#### `disabled` (boolean)
|
|
257
|
+
|
|
258
|
+
Indicates if the plugin is disabled or not
|
|
259
|
+
|
|
260
|
+
## `EditableHtmlButtonConfigure` (object)
|
|
261
|
+
|
|
262
|
+
Properties of the `EditableHtmlButtonConfigure` object:
|
|
263
|
+
|
|
264
|
+
### `disabled` (boolean)
|
|
265
|
+
|
|
266
|
+
Indicates if the plugin is disabled or not
|
|
267
|
+
|
|
176
268
|
## `ConfigureMaxImageDimensionsProp` (object)
|
|
177
269
|
|
|
178
270
|
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
|
@@ -5840,7 +5840,7 @@ class Main extends React$1.Component {
|
|
|
5840
5840
|
}
|
|
5841
5841
|
render() {
|
|
5842
5842
|
const {model, classes, configuration, imageSupport, onConfigurationChanged, onModelChanged, uploadSoundSupport} = this.props;
|
|
5843
|
-
const {contentDimensions = {}, dimensions = {}, equationEditor = {}, feedback = {}, playerSpellCheck = {}, prompt = {}, settingsPanelDisabled, spanishInput = {}, specialInput = {}, spellCheck = {}, studentInstructions = {}, teacherInstructions = {}, mathInput = {}, maxImageWidth = {}, maxImageHeight = {}, multiple = {}, withRubric = {}, mathMlOptions = {}} = configuration || ({});
|
|
5843
|
+
const {contentDimensions = {}, dimensions = {}, equationEditor = {}, feedback = {}, playerSpellCheck = {}, prompt = {}, settingsPanelDisabled, spanishInput = {}, specialInput = {}, spellCheck = {}, studentInstructions = {}, teacherInstructions = {}, mathInput = {}, maxImageWidth = {}, maxImageHeight = {}, multiple = {}, withRubric = {}, mathMlOptions = {}, baseInputConfiguration = {}} = configuration || ({});
|
|
5844
5844
|
const {feedbackEnabled, promptEnabled, spellCheckEnabled, teacherInstructionsEnabled, toolbarEditorPosition} = model || ({});
|
|
5845
5845
|
const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
5846
5846
|
const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
@@ -5877,6 +5877,11 @@ class Main extends React$1.Component {
|
|
|
5877
5877
|
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
5878
5878
|
rubricEnabled: _optionalChain$1([withRubric, 'optionalAccess', _ => _.settings]) && toggle(_optionalChain$1([withRubric, 'optionalAccess', _2 => _2.label]))
|
|
5879
5879
|
};
|
|
5880
|
+
const getPluginProps = props => {
|
|
5881
|
+
return Object.assign({
|
|
5882
|
+
...baseInputConfiguration
|
|
5883
|
+
}, props || ({}));
|
|
5884
|
+
};
|
|
5880
5885
|
return React$1.createElement(layout.ConfigLayout, {
|
|
5881
5886
|
dimensions: contentDimensions,
|
|
5882
5887
|
hideSettings: settingsPanelDisabled,
|
|
@@ -5892,13 +5897,13 @@ class Main extends React$1.Component {
|
|
|
5892
5897
|
__self: this,
|
|
5893
5898
|
__source: {
|
|
5894
5899
|
fileName: _jsxFileName,
|
|
5895
|
-
lineNumber:
|
|
5900
|
+
lineNumber: 136
|
|
5896
5901
|
}
|
|
5897
5902
|
}),
|
|
5898
5903
|
__self: this,
|
|
5899
5904
|
__source: {
|
|
5900
5905
|
fileName: _jsxFileName,
|
|
5901
|
-
lineNumber:
|
|
5906
|
+
lineNumber: 132
|
|
5902
5907
|
}
|
|
5903
5908
|
}, teacherInstructionsEnabled && React$1.createElement(InputContainer, {
|
|
5904
5909
|
label: teacherInstructions.label,
|
|
@@ -5906,7 +5911,7 @@ class Main extends React$1.Component {
|
|
|
5906
5911
|
__self: this,
|
|
5907
5912
|
__source: {
|
|
5908
5913
|
fileName: _jsxFileName,
|
|
5909
|
-
lineNumber:
|
|
5914
|
+
lineNumber: 149
|
|
5910
5915
|
}
|
|
5911
5916
|
}, React$1.createElement(EditableHtml, {
|
|
5912
5917
|
className: classes.prompt,
|
|
@@ -5925,10 +5930,11 @@ class Main extends React$1.Component {
|
|
|
5925
5930
|
language: 'special'
|
|
5926
5931
|
}],
|
|
5927
5932
|
mathMlOptions: mathMlOptions,
|
|
5933
|
+
pluginProps: getPluginProps(_optionalChain$1([teacherInstructions, 'optionalAccess', _3 => _3.inputConfiguration])),
|
|
5928
5934
|
__self: this,
|
|
5929
5935
|
__source: {
|
|
5930
5936
|
fileName: _jsxFileName,
|
|
5931
|
-
lineNumber:
|
|
5937
|
+
lineNumber: 150
|
|
5932
5938
|
}
|
|
5933
5939
|
})), promptEnabled && React$1.createElement(InputContainer, {
|
|
5934
5940
|
label: prompt.label,
|
|
@@ -5936,7 +5942,7 @@ class Main extends React$1.Component {
|
|
|
5936
5942
|
__self: this,
|
|
5937
5943
|
__source: {
|
|
5938
5944
|
fileName: _jsxFileName,
|
|
5939
|
-
lineNumber:
|
|
5945
|
+
lineNumber: 169
|
|
5940
5946
|
}
|
|
5941
5947
|
}, React$1.createElement(EditableHtml, {
|
|
5942
5948
|
activePlugins: ALL_PLUGINS,
|
|
@@ -5956,16 +5962,17 @@ class Main extends React$1.Component {
|
|
|
5956
5962
|
language: 'special'
|
|
5957
5963
|
}],
|
|
5958
5964
|
mathMlOptions: mathMlOptions,
|
|
5965
|
+
pluginProps: getPluginProps(_optionalChain$1([prompt, 'optionalAccess', _4 => _4.inputConfiguration])),
|
|
5959
5966
|
__self: this,
|
|
5960
5967
|
__source: {
|
|
5961
5968
|
fileName: _jsxFileName,
|
|
5962
|
-
lineNumber:
|
|
5969
|
+
lineNumber: 170
|
|
5963
5970
|
}
|
|
5964
5971
|
})), feedbackEnabled && React$1.createElement(React$1.Fragment, {
|
|
5965
5972
|
__self: this,
|
|
5966
5973
|
__source: {
|
|
5967
5974
|
fileName: _jsxFileName,
|
|
5968
|
-
lineNumber:
|
|
5975
|
+
lineNumber: 190
|
|
5969
5976
|
}
|
|
5970
5977
|
}, React$1.createElement(Typography, {
|
|
5971
5978
|
className: classes.header,
|
|
@@ -5973,7 +5980,7 @@ class Main extends React$1.Component {
|
|
|
5973
5980
|
__self: this,
|
|
5974
5981
|
__source: {
|
|
5975
5982
|
fileName: _jsxFileName,
|
|
5976
|
-
lineNumber:
|
|
5983
|
+
lineNumber: 191
|
|
5977
5984
|
}
|
|
5978
5985
|
}, "Feedback"), React$1.createElement(FeedbackSelector, {
|
|
5979
5986
|
label: "When submitted, show",
|
|
@@ -5983,7 +5990,7 @@ class Main extends React$1.Component {
|
|
|
5983
5990
|
__self: this,
|
|
5984
5991
|
__source: {
|
|
5985
5992
|
fileName: _jsxFileName,
|
|
5986
|
-
lineNumber:
|
|
5993
|
+
lineNumber: 195
|
|
5987
5994
|
}
|
|
5988
5995
|
})));
|
|
5989
5996
|
}
|
|
@@ -6081,11 +6088,33 @@ var defaults = {
|
|
|
6081
6088
|
},
|
|
6082
6089
|
prompt: {
|
|
6083
6090
|
settings: true,
|
|
6084
|
-
label: 'Prompt'
|
|
6091
|
+
label: 'Prompt',
|
|
6092
|
+
inputConfiguration: {
|
|
6093
|
+
audio: {
|
|
6094
|
+
disabled: false
|
|
6095
|
+
},
|
|
6096
|
+
video: {
|
|
6097
|
+
disabled: false
|
|
6098
|
+
},
|
|
6099
|
+
image: {
|
|
6100
|
+
disabled: false
|
|
6101
|
+
}
|
|
6102
|
+
}
|
|
6085
6103
|
},
|
|
6086
6104
|
teacherInstructions: {
|
|
6087
6105
|
settings: true,
|
|
6088
|
-
label: 'Teacher Instructions'
|
|
6106
|
+
label: 'Teacher Instructions',
|
|
6107
|
+
inputConfiguration: {
|
|
6108
|
+
audio: {
|
|
6109
|
+
disabled: false
|
|
6110
|
+
},
|
|
6111
|
+
video: {
|
|
6112
|
+
disabled: false
|
|
6113
|
+
},
|
|
6114
|
+
image: {
|
|
6115
|
+
disabled: false
|
|
6116
|
+
}
|
|
6117
|
+
}
|
|
6089
6118
|
},
|
|
6090
6119
|
maxImageWidth: {
|
|
6091
6120
|
teacherInstructions: 300,
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry",
|
|
3
|
-
"version": "10.7.1-next.
|
|
3
|
+
"version": "10.7.1-next.39+072ef11f3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "pie-framework/pie-elements",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
13
|
"@material-ui/icons": "^3.0.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.12.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.12.2",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"debug": "^4.1.1",
|
|
18
18
|
"lodash.throttle": "^4.1.1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"react": "^16.8.1",
|
|
21
21
|
"react-dom": "^16.8.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "072ef11f320de229433e4373b83fe2828ea7cf06",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"postpublish": "../../scripts/postpublish"
|
|
26
26
|
},
|