@pie-element/extended-text-entry 6.5.3 → 6.5.4-next.1016
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +184 -0
- package/configure/CHANGELOG.md +150 -0
- package/configure/lib/defaults.js +35 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/index.js +3 -3
- package/configure/lib/main.js +58 -14
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +40 -0
- package/controller/lib/index.js +13 -6
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +127 -0
- package/docs/config-schema.json.md +97 -1
- package/docs/demo/generate.js +5 -2
- package/docs/pie-schema.json +65 -2
- package/docs/pie-schema.json.md +56 -2
- package/lib/index.js +13 -4
- package/lib/index.js.map +1 -1
- package/lib/main.js +51 -22
- package/lib/main.js.map +1 -1
- package/lib/print.js +122 -0
- package/lib/print.js.map +1 -0
- package/package.json +11 -6
- package/module/configure.js +0 -330
- package/module/controller.js +0 -95
- package/module/demo.js +0 -34
- package/module/element.js +0 -562
- package/module/index.html +0 -16
- package/module/manifest.json +0 -14
|
@@ -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","onConfigurationChanged","imageSupport","multiple","studentInstructions","mathInput","dimensions","equationEditor","teacherInstructionsEnabled","promptEnabled","feedbackEnabled","config","label","enabled","width","suffix","min","max","height","studentInstructionsEnabled","promptContainer","changeTeacherInstructions","ALL_PLUGINS","onPromptChange","header","changeFeedback","React","Component","PropTypes","func","isRequired","object","theme","paddingBottom","spacing","unit","paddingTop","marginBottom","promptInput","field"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAMA;;AACA;;AACA;;AACA;;;;;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AHP;AAIjB9B,EAAAA,aAAa,EAAE4B,sBAAUG,MAAV,CAAiBD,UAJf;AAKjB5B,EAAAA,YAAY,EAAE0B,sBAAUG,MAAV,CAAiBD,UALd;AAMjB/B,EAAAA,OAAO,EAAE6B,sBAAUG,MAAV,CAAiBD;AANT,C;;eAuJN,wBAAW,UAAAE,KAAK;AAAA,SAAK;AAClCR,IAAAA,MAAM,EAAE;AACNS,MAAAA,aAAa,EAAED,KAAK,CAACE,OAAN,CAAcC;AADvB,KAD0B;AAIlCf,IAAAA,eAAe,EAAE;AACfgB,MAAAA,UAAU,EAAEJ,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CADlB;AAEfE,MAAAA,YAAY,EAAEL,KAAK,CAACE,OAAN,CAAcC,IAAd,GAAqB,CAFpB;AAGfrB,MAAAA,KAAK,EAAE;AAHQ,KAJiB;AASlCwB,IAAAA,WAAW,EAAE;AACXxB,MAAAA,KAAK,EAAE,MADI;AAEXuB,MAAAA,YAAY,EAAEL,KAAK,CAACE,OAAN,CAAcC;AAFjB,KATqB;AAalCI,IAAAA,KAAK,EAAE;AACLzB,MAAAA,KAAK,EAAE;AADF;AAb2B,GAAL;AAAA,CAAhB,EAgBX1B,IAhBW,C","sourcesContent":["import React from 'react';\nimport {\n FeedbackSelector,\n InputContainer,\n settings,\n layout\n} from '@pie-lib/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/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 classes: PropTypes.object.isRequired\n };\n\n constructor(props) {\n super(props);\n this.state = {\n setDimensions: true\n };\n }\n\n onPromptChange = markup => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({\n ...model,\n prompt: markup\n });\n };\n\n changeFeedback = feedback => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, feedback };\n onModelChanged(update);\n };\n\n changeTeacherInstructions = teacherInstructions => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, teacherInstructions };\n onModelChanged(update);\n };\n\n render() {\n const { model, classes, onModelChanged, configuration, onConfigurationChanged, imageSupport } = this.props;\n const {\n multiple = {},\n feedback = {},\n teacherInstructions = {},\n prompt = {},\n studentInstructions = {},\n mathInput = {},\n dimensions = {},\n equationEditor = {}\n } = configuration || {};\n const { teacherInstructionsEnabled, promptEnabled, feedbackEnabled } = model || {};\n\n return (\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={model => onModelChanged(model)}\n onChangeConfiguration={config => onConfigurationChanged(config)}\n groups={{\n 'Settings': {\n mathInput: mathInput.settings && toggle(mathInput.label),\n equationEditor: equationEditor.enabled && model.mathInput && dropdown(equationEditor.label, [\n 'Grade 1 - 2',\n 'Grade 3 - 5',\n 'Grade 6 - 7',\n 'Grade 8 - HS',\n 'geometry',\n 'advanced-algebra',\n 'statistics',\n 'miscellaneous'\n ]),\n dimensions: numberFields(dimensions.label, {\n width: {\n label: 'Width (px)',\n suffix: 'px',\n min: 100,\n max: 500\n },\n height: {\n label: 'Height (px)',\n suffix: 'px',\n min: 100,\n max: 500\n }\n }),\n 'multiple.enabled': multiple.settings &&\n toggle(multiple.label, true),\n promptEnabled: prompt.settings &&\n toggle(prompt.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n },\n 'Properties': {\n teacherInstructionsEnabled: teacherInstructions.settings &&\n toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings &&\n toggle(studentInstructions.label)\n },\n }}\n />\n }\n >\n <div>\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 />\n </InputContainer>\n )}\n\n <br />\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 />\n </InputContainer>\n )}\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 />\n </React.Fragment>\n )\n }\n </div>\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 promptInput: {\n width: '100%',\n marginBottom: theme.spacing.unit\n },\n field: {\n width: '200px'\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","onConfigurationChanged","imageSupport","multiple","studentInstructions","mathInput","spanishInput","specialInput","dimensions","equationEditor","spellCheck","playerSpellCheck","maxImageWidth","maxImageHeight","teacherInstructionsEnabled","promptEnabled","feedbackEnabled","spellCheckEnabled","toolbarOpts","defaultImageMaxWidth","defaultImageMaxHeight","toolbarEditorPosition","position","config","Settings","label","enabled","width","suffix","min","max","height","playerSpellCheckEnabled","Properties","studentInstructionsEnabled","promptContainer","changeTeacherInstructions","ALL_PLUGINS","onPromptChange","header","changeFeedback","React","Component","PropTypes","func","isRequired","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MAAAA,KAAK,EAAE;AADF;AAb6B,GAAZ;AAAA,CAAX,EAgBXvC,IAhBW,C","sourcesContent":["import React from 'react';\nimport {\n FeedbackSelector,\n InputContainer,\n settings,\n layout,\n} from '@pie-lib/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/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 classes: PropTypes.object.isRequired,\n };\n\n constructor(props) {\n super(props);\n this.state = {\n setDimensions: true,\n };\n }\n\n onPromptChange = (markup) => {\n const { onModelChanged, model } = this.props;\n\n onModelChanged({\n ...model,\n prompt: markup,\n });\n };\n\n changeFeedback = (feedback) => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, feedback };\n onModelChanged(update);\n };\n\n changeTeacherInstructions = (teacherInstructions) => {\n const { model, onModelChanged } = this.props;\n const update = { ...model, teacherInstructions };\n onModelChanged(update);\n };\n\n render() {\n const {\n model,\n classes,\n onModelChanged,\n configuration,\n onConfigurationChanged,\n imageSupport,\n } = this.props;\n const {\n multiple = {},\n feedback = {},\n teacherInstructions = {},\n prompt = {},\n studentInstructions = {},\n mathInput = {},\n spanishInput = {},\n specialInput = {},\n dimensions = {},\n equationEditor = {},\n spellCheck = {},\n playerSpellCheck = {},\n maxImageWidth = {},\n maxImageHeight = {}\n } = configuration || {};\n const { teacherInstructionsEnabled, promptEnabled, feedbackEnabled, spellCheckEnabled } =\n model || {};\n const toolbarOpts = {};\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n switch (model.toolbarEditorPosition) {\n case 'top':\n toolbarOpts.position = 'top';\n break;\n default:\n toolbarOpts.position = 'bottom';\n break;\n }\n return (\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={(model) => onModelChanged(model)}\n onChangeConfiguration={(config) => onConfigurationChanged(config)}\n groups={{\n Settings: {\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: {\n label: 'Width (px)',\n suffix: 'px',\n min: 100,\n max: 500,\n },\n height: {\n label: 'Height (px)',\n suffix: 'px',\n min: 100,\n max: 500,\n },\n }),\n 'multiple.enabled':\n multiple.settings && toggle(multiple.label, true),\n promptEnabled: prompt.settings && toggle(prompt.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n spellCheckEnabled:\n spellCheck.settings && toggle(spellCheck.label),\n playerSpellCheckEnabled:\n playerSpellCheck.settings && toggle(playerSpellCheck.label),\n },\n Properties: {\n teacherInstructionsEnabled:\n teacherInstructions.settings &&\n toggle(teacherInstructions.label),\n studentInstructionsEnabled:\n studentInstructions.settings &&\n toggle(studentInstructions.label),\n },\n }}\n />\n }\n >\n <div>\n {teacherInstructionsEnabled && (\n <InputContainer\n label={teacherInstructions.label}\n className={classes.promptContainer}\n >\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 />\n </InputContainer>\n )}\n\n <br />\n\n {promptEnabled && (\n <InputContainer\n label={prompt.label}\n className={classes.promptContainer}\n >\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 />\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 </div>\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 promptInput: {\n width: '100%',\n marginBottom: theme.spacing.unit,\n },\n field: {\n width: '200px',\n },\n}))(Main);\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.4.15",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@material-ui/core": "^3.9.2",
|
|
12
12
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
13
|
-
"@pie-lib/config-ui": "^10.
|
|
14
|
-
"@pie-lib/editable-html": "^7.
|
|
13
|
+
"@pie-lib/config-ui": "^10.13.3",
|
|
14
|
+
"@pie-lib/editable-html": "^7.22.6",
|
|
15
15
|
"lodash": "^4.17.15",
|
|
16
16
|
"prop-types": "^15.6.2",
|
|
17
17
|
"react": "^16.8.1",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.1.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@4.1.20...@pie-element/extended-text-entry-controller@4.1.21) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry-controller
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.1.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@4.1.19...@pie-element/extended-text-entry-controller@4.1.20) (2022-03-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry-controller
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [4.1.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@4.1.18...@pie-element/extended-text-entry-controller@4.1.19) (2022-02-04)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry-controller
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [4.1.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@4.1.13...@pie-element/extended-text-entry-controller@4.1.15) (2021-11-11)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry-controller
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [4.1.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@4.1.13...@pie-element/extended-text-entry-controller@4.1.14) (2021-11-11)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry-controller
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
6
46
|
## [4.1.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@4.1.11...@pie-element/extended-text-entry-controller@4.1.13) (2021-08-05)
|
|
7
47
|
|
|
8
48
|
|
package/controller/lib/index.js
CHANGED
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.createDefaultModel = createDefaultModel;
|
|
9
9
|
exports.model = model;
|
|
10
|
-
exports.outcome = outcome;
|
|
11
10
|
exports.normalize = void 0;
|
|
11
|
+
exports.outcome = outcome;
|
|
12
12
|
|
|
13
13
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
14
14
|
|
|
@@ -22,9 +22,9 @@ var _feedback = require("@pie-lib/feedback");
|
|
|
22
22
|
|
|
23
23
|
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
24
24
|
|
|
25
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
25
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26
26
|
|
|
27
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28
28
|
|
|
29
29
|
var log = (0, _debug["default"])('@pie-element:extended-text-entry:controller');
|
|
30
30
|
|
|
@@ -60,7 +60,8 @@ var normalize = function normalize(question) {
|
|
|
60
60
|
rationaleEnabled: true,
|
|
61
61
|
promptEnabled: true,
|
|
62
62
|
teacherInstructionsEnabled: true,
|
|
63
|
-
studentInstructionsEnabled: true
|
|
63
|
+
studentInstructionsEnabled: true,
|
|
64
|
+
playerSpellCheckEnabled: true
|
|
64
65
|
}, question);
|
|
65
66
|
};
|
|
66
67
|
|
|
@@ -122,7 +123,11 @@ function _model() {
|
|
|
122
123
|
feedback: feedback,
|
|
123
124
|
teacherInstructions: teacherInstructions,
|
|
124
125
|
mathInput: normalizedQuestion.mathInput,
|
|
125
|
-
|
|
126
|
+
spanishInput: normalizedQuestion.spanishInput,
|
|
127
|
+
specialInput: normalizedQuestion.specialInput,
|
|
128
|
+
equationEditor: equationEditor,
|
|
129
|
+
spellCheckEnabled: normalizedQuestion.playerSpellCheckEnabled,
|
|
130
|
+
playersToolbarPosition: normalizedQuestion.playersToolbarPosition || 'bottom'
|
|
126
131
|
};
|
|
127
132
|
}));
|
|
128
133
|
|
|
@@ -136,7 +141,9 @@ function _model() {
|
|
|
136
141
|
return _model.apply(this, arguments);
|
|
137
142
|
}
|
|
138
143
|
|
|
139
|
-
function
|
|
144
|
+
function
|
|
145
|
+
/*question, session, env*/
|
|
146
|
+
outcome() {
|
|
140
147
|
return _outcome.apply(this, arguments);
|
|
141
148
|
}
|
|
142
149
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["log","createDefaultModel","model","defaults","normalize","question","feedbackEnabled","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","session","env","normalizedQuestion","fb","mode","feedback","Promise","resolve","undefined","teacherInstructions","role","equationEditor","then","prompt","dimensions","customKeys","disabled","mathInput","outcome","score","completed","note"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAGA;;AAEA;;;;;;AAHA,IAAMA,GAAG,GAAG,uBAAM,6CAAN,CAAZ;;SAKsBC,kB;;;;;sGAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkCC,YAAAA,KAAlC,2DAA0C,EAA1C;AACLF,YAAAA,GAAG,CAAC,sBAAD,EAAyBE,KAAzB,CAAH;AADK,6EAIAC,oBAJA,GAKAD,KALA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G;;;;AASA,IAAME,SAAS,GAAG,SAAZA,SAAY,CAAAC,QAAQ;AAAA,yCAC5BF,oBAD4B;AAE/BG,IAAAA,eAAe,EAAE,IAFc;AAG/BC,IAAAA,gBAAgB,EAAE,IAHa;AAI/BC,IAAAA,aAAa,EAAE,IAJgB;AAK/BC,IAAAA,0BAA0B,EAAE,IALG;AAM/BC,IAAAA,0BAA0B,EAAE;
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["log","createDefaultModel","model","defaults","normalize","question","feedbackEnabled","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","playerSpellCheckEnabled","session","env","normalizedQuestion","fb","mode","feedback","Promise","resolve","undefined","teacherInstructions","role","equationEditor","then","prompt","dimensions","customKeys","disabled","mathInput","spanishInput","specialInput","spellCheckEnabled","playersToolbarPosition","outcome","score","completed","note"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAGA;;AAEA;;;;;;AAHA,IAAMA,GAAG,GAAG,uBAAM,6CAAN,CAAZ;;SAKsBC,kB;;;;;sGAAf;AAAA;AA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G;;;;;AAmDuB;AAARC,O;;;;;2FAAf;AAAA;AAAA;AAAA;AAAA;AAAA,8CACE;AACLC,cAAAA,KAAK,EAAE,CADF;AAELC,cAAAA,SAAS,EAAE,KAFN;AAGLC,cAAAA,IAAI,EAAE;AAHD,aADF;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G","sourcesContent":["import debug from 'debug';\n\nconst log = debug('@pie-element:extended-text-entry:controller');\nimport { getFeedback } from '@pie-lib/feedback';\n\nimport defaults from './defaults';\n\nexport async function createDefaultModel(model = {}) {\n log('[createDefaultModel]', model);\n\n return {\n ...defaults,\n ...model,\n };\n}\n\nexport const normalize = question => ({\n ...defaults,\n feedbackEnabled: true,\n rationaleEnabled: true,\n promptEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n playerSpellCheckEnabled: true,\n ...question,\n});\n\n\nexport async function model(question, session, env) {\n log('[question]', question);\n const normalizedQuestion = normalize(question);\n\n const fb =\n env.mode === 'evaluate' && normalizedQuestion.feedbackEnabled\n ? getFeedback(normalizedQuestion.feedback, 'Your answer has been submitted')\n : Promise.resolve(undefined);\n\n let teacherInstructions = null;\n if (env.role === 'instructor' && (env.mode === 'view' || env.mode === 'evaluate')) {\n teacherInstructions = normalizedQuestion.teacherInstructionsEnabled ? normalizedQuestion.teacherInstructions : null;\n } else {\n teacherInstructions = null;\n }\n\n let equationEditor = normalizedQuestion.equationEditor || 'miscellaneous';\n\n switch (normalizedQuestion.equationEditor) {\n case 'Grade 1 - 2':\n equationEditor = 1;\n break;\n case 'Grade 3 - 5':\n equationEditor = 3;\n break;\n case 'Grade 6 - 7':\n equationEditor = 6;\n break;\n case 'Grade 8 - HS':\n equationEditor = 8;\n break;\n default:\n break;\n }\n\n return fb.then(feedback => ({\n prompt: normalizedQuestion.promptEnabled ? normalizedQuestion.prompt : null,\n dimensions: normalizedQuestion.dimensions,\n customKeys: normalizedQuestion.customKeys || [],\n disabled: env.mode !== 'gather',\n feedback,\n teacherInstructions,\n mathInput: normalizedQuestion.mathInput,\n spanishInput: normalizedQuestion.spanishInput,\n specialInput: normalizedQuestion.specialInput,\n equationEditor,\n spellCheckEnabled: normalizedQuestion.playerSpellCheckEnabled,\n playersToolbarPosition: normalizedQuestion.playersToolbarPosition || 'bottom'\n }));\n}\n\nexport async function outcome(/*question, session, env*/) {\n return {\n score: 0,\n completed: 'n/a',\n note: 'Requires manual scoring'\n };\n}\n"],"file":"index.js"}
|
package/controller/package.json
CHANGED
package/docs/config-schema.json
CHANGED
|
@@ -35,6 +35,38 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
+
"spanishInput": {
|
|
39
|
+
"title": "ConfigureProp",
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"settings": {
|
|
43
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"title": "settings"
|
|
46
|
+
},
|
|
47
|
+
"label": {
|
|
48
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"title": "label"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"specialInput": {
|
|
55
|
+
"title": "ConfigureProp",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"settings": {
|
|
59
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"title": "settings"
|
|
62
|
+
},
|
|
63
|
+
"label": {
|
|
64
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"title": "label"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
38
70
|
"multiple": {
|
|
39
71
|
"title": "ConfigurePropWithEnabled",
|
|
40
72
|
"type": "object",
|
|
@@ -88,6 +120,38 @@
|
|
|
88
120
|
}
|
|
89
121
|
}
|
|
90
122
|
},
|
|
123
|
+
"spellCheck": {
|
|
124
|
+
"title": "ConfigureProp",
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"settings": {
|
|
128
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"title": "settings"
|
|
131
|
+
},
|
|
132
|
+
"label": {
|
|
133
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
134
|
+
"type": "string",
|
|
135
|
+
"title": "label"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"playerSpellCheck": {
|
|
140
|
+
"title": "ConfigureProp",
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"settings": {
|
|
144
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"title": "settings"
|
|
147
|
+
},
|
|
148
|
+
"label": {
|
|
149
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"title": "label"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
91
155
|
"dimensions": {
|
|
92
156
|
"title": "ConfigureProp",
|
|
93
157
|
"type": "object",
|
|
@@ -104,6 +168,48 @@
|
|
|
104
168
|
}
|
|
105
169
|
}
|
|
106
170
|
},
|
|
171
|
+
"maxImageWidth": {
|
|
172
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"teacherInstructions": {
|
|
176
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
177
|
+
"type": "number",
|
|
178
|
+
"title": "teacherInstructions"
|
|
179
|
+
},
|
|
180
|
+
"prompt": {
|
|
181
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
182
|
+
"type": "number",
|
|
183
|
+
"title": "prompt"
|
|
184
|
+
},
|
|
185
|
+
"rationale": {
|
|
186
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
187
|
+
"type": "number",
|
|
188
|
+
"title": "rationale"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"maxImageHeight": {
|
|
193
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"teacherInstructions": {
|
|
197
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
198
|
+
"type": "number",
|
|
199
|
+
"title": "teacherInstructions"
|
|
200
|
+
},
|
|
201
|
+
"prompt": {
|
|
202
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
203
|
+
"type": "number",
|
|
204
|
+
"title": "prompt"
|
|
205
|
+
},
|
|
206
|
+
"rationale": {
|
|
207
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
208
|
+
"type": "number",
|
|
209
|
+
"title": "rationale"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
107
213
|
"showPrompt": {
|
|
108
214
|
"description": "Determines whether prompt field will be displayed or not",
|
|
109
215
|
"default": true,
|
|
@@ -160,6 +266,27 @@
|
|
|
160
266
|
"title": "enabled"
|
|
161
267
|
}
|
|
162
268
|
}
|
|
269
|
+
},
|
|
270
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
271
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
272
|
+
"type": "object",
|
|
273
|
+
"properties": {
|
|
274
|
+
"teacherInstructions": {
|
|
275
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
276
|
+
"type": "number",
|
|
277
|
+
"title": "teacherInstructions"
|
|
278
|
+
},
|
|
279
|
+
"prompt": {
|
|
280
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
281
|
+
"type": "number",
|
|
282
|
+
"title": "prompt"
|
|
283
|
+
},
|
|
284
|
+
"rationale": {
|
|
285
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
286
|
+
"type": "number",
|
|
287
|
+
"title": "rationale"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
163
290
|
}
|
|
164
291
|
},
|
|
165
292
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -26,6 +26,30 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
26
26
|
|
|
27
27
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
28
28
|
|
|
29
|
+
# `spanishInput` (object)
|
|
30
|
+
|
|
31
|
+
Properties of the `spanishInput` object:
|
|
32
|
+
|
|
33
|
+
## `settings` (boolean)
|
|
34
|
+
|
|
35
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
36
|
+
|
|
37
|
+
## `label` (string)
|
|
38
|
+
|
|
39
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
40
|
+
|
|
41
|
+
# `specialInput` (object)
|
|
42
|
+
|
|
43
|
+
Properties of the `specialInput` object:
|
|
44
|
+
|
|
45
|
+
## `settings` (boolean)
|
|
46
|
+
|
|
47
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
48
|
+
|
|
49
|
+
## `label` (string)
|
|
50
|
+
|
|
51
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
52
|
+
|
|
29
53
|
# `multiple` (object)
|
|
30
54
|
|
|
31
55
|
Properties of the `multiple` object:
|
|
@@ -67,6 +91,30 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
67
91
|
|
|
68
92
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
69
93
|
|
|
94
|
+
# `spellCheck` (object)
|
|
95
|
+
|
|
96
|
+
Properties of the `spellCheck` object:
|
|
97
|
+
|
|
98
|
+
## `settings` (boolean)
|
|
99
|
+
|
|
100
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
101
|
+
|
|
102
|
+
## `label` (string)
|
|
103
|
+
|
|
104
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
105
|
+
|
|
106
|
+
# `playerSpellCheck` (object)
|
|
107
|
+
|
|
108
|
+
Properties of the `playerSpellCheck` object:
|
|
109
|
+
|
|
110
|
+
## `settings` (boolean)
|
|
111
|
+
|
|
112
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
113
|
+
|
|
114
|
+
## `label` (string)
|
|
115
|
+
|
|
116
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
117
|
+
|
|
70
118
|
# `dimensions` (object)
|
|
71
119
|
|
|
72
120
|
Properties of the `dimensions` object:
|
|
@@ -79,6 +127,38 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
79
127
|
|
|
80
128
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
81
129
|
|
|
130
|
+
# `maxImageWidth` (object)
|
|
131
|
+
|
|
132
|
+
Properties of the `maxImageWidth` object:
|
|
133
|
+
|
|
134
|
+
## `teacherInstructions` (number)
|
|
135
|
+
|
|
136
|
+
Indicates the max dimension for images in teacher instructions
|
|
137
|
+
|
|
138
|
+
## `prompt` (number)
|
|
139
|
+
|
|
140
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
141
|
+
|
|
142
|
+
## `rationale` (number)
|
|
143
|
+
|
|
144
|
+
Indicates the max dimension for images in rationale
|
|
145
|
+
|
|
146
|
+
# `maxImageHeight` (object)
|
|
147
|
+
|
|
148
|
+
Properties of the `maxImageHeight` object:
|
|
149
|
+
|
|
150
|
+
## `teacherInstructions` (number)
|
|
151
|
+
|
|
152
|
+
Indicates the max dimension for images in teacher instructions
|
|
153
|
+
|
|
154
|
+
## `prompt` (number)
|
|
155
|
+
|
|
156
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
157
|
+
|
|
158
|
+
## `rationale` (number)
|
|
159
|
+
|
|
160
|
+
Indicates the max dimension for images in rationale
|
|
161
|
+
|
|
82
162
|
# `showPrompt` (boolean)
|
|
83
163
|
|
|
84
164
|
Determines whether prompt field will be displayed or not
|
|
@@ -130,4 +210,20 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
130
210
|
### `enabled` (boolean)
|
|
131
211
|
|
|
132
212
|
Indicates the value of the item if it affects config-ui
|
|
133
|
-
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
213
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
214
|
+
|
|
215
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
216
|
+
|
|
217
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
218
|
+
|
|
219
|
+
### `teacherInstructions` (number)
|
|
220
|
+
|
|
221
|
+
Indicates the max dimension for images in teacher instructions
|
|
222
|
+
|
|
223
|
+
### `prompt` (number)
|
|
224
|
+
|
|
225
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
226
|
+
|
|
227
|
+
### `rationale` (number)
|
|
228
|
+
|
|
229
|
+
Indicates the max dimension for images in rationale
|
package/docs/demo/generate.js
CHANGED
|
@@ -2,10 +2,13 @@ exports.model = (id, element) => ({
|
|
|
2
2
|
id,
|
|
3
3
|
element,
|
|
4
4
|
customKeys: [
|
|
5
|
-
|
|
5
|
+
'\\square'
|
|
6
6
|
],
|
|
7
7
|
feedback: { type: 'default', default: 'this is default feedback' },
|
|
8
8
|
prompt: 'This is the question prompt',
|
|
9
9
|
promptEnabled: true,
|
|
10
|
-
mathInput: true
|
|
10
|
+
mathInput: true,
|
|
11
|
+
playersToolbarPosition: 'bottom',
|
|
12
|
+
toolbarEditorPosition: 'bottom',
|
|
13
|
+
spellCheckEnabled: true
|
|
11
14
|
});
|
package/docs/pie-schema.json
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"Grade 6 - 7",
|
|
28
28
|
"Grade 8 - HS",
|
|
29
29
|
"advanced-algebra",
|
|
30
|
-
"miscellaneous",
|
|
31
30
|
"geometry",
|
|
31
|
+
"miscellaneous",
|
|
32
32
|
"statistics"
|
|
33
33
|
],
|
|
34
34
|
"type": "string",
|
|
@@ -63,6 +63,18 @@
|
|
|
63
63
|
"type": "boolean",
|
|
64
64
|
"title": "mathInput"
|
|
65
65
|
},
|
|
66
|
+
"spanishInput": {
|
|
67
|
+
"description": "Whether a control to allow insertion of spanish characters should be displayed",
|
|
68
|
+
"default": false,
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"title": "spanishInput"
|
|
71
|
+
},
|
|
72
|
+
"specialInput": {
|
|
73
|
+
"description": "Whether a control to allow insertion of special characters should be displayed",
|
|
74
|
+
"default": false,
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"title": "specialInput"
|
|
77
|
+
},
|
|
66
78
|
"multiple": {
|
|
67
79
|
"description": "Indicates if multiple parts are enabled",
|
|
68
80
|
"type": "boolean",
|
|
@@ -98,6 +110,16 @@
|
|
|
98
110
|
"type": "boolean",
|
|
99
111
|
"title": "rationaleEnabled"
|
|
100
112
|
},
|
|
113
|
+
"spellCheckEnabled": {
|
|
114
|
+
"description": "Indicates if spellcheck is enabled for the author. Default value is true",
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"title": "spellCheckEnabled"
|
|
117
|
+
},
|
|
118
|
+
"playerSpellCheckEnabled": {
|
|
119
|
+
"description": "Indicates if spellcheck is enabled for the player. Default value is true",
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"title": "playerSpellCheckEnabled"
|
|
122
|
+
},
|
|
101
123
|
"studentInstructionsEnabled": {
|
|
102
124
|
"description": "Indicates if Student Instructions are enabled",
|
|
103
125
|
"type": "boolean",
|
|
@@ -108,6 +130,24 @@
|
|
|
108
130
|
"type": "boolean",
|
|
109
131
|
"title": "teacherInstructionsEnabled"
|
|
110
132
|
},
|
|
133
|
+
"toolbarEditorPosition": {
|
|
134
|
+
"enum": [
|
|
135
|
+
"bottom",
|
|
136
|
+
"top"
|
|
137
|
+
],
|
|
138
|
+
"type": "string",
|
|
139
|
+
"title": "toolbarEditorPosition"
|
|
140
|
+
},
|
|
141
|
+
"playersToolbarPosition": {
|
|
142
|
+
"description": "Indicates the editor's toolbar position for the player, which can be 'bottom' or 'top'",
|
|
143
|
+
"default": ": 'bottom'",
|
|
144
|
+
"enum": [
|
|
145
|
+
"bottom",
|
|
146
|
+
"top"
|
|
147
|
+
],
|
|
148
|
+
"type": "string",
|
|
149
|
+
"title": "playersToolbarPosition"
|
|
150
|
+
},
|
|
111
151
|
"id": {
|
|
112
152
|
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
|
|
113
153
|
"type": "string",
|
|
@@ -124,7 +164,9 @@
|
|
|
124
164
|
"element",
|
|
125
165
|
"feedbackEnabled",
|
|
126
166
|
"id",
|
|
167
|
+
"playerSpellCheckEnabled",
|
|
127
168
|
"rationaleEnabled",
|
|
169
|
+
"spellCheckEnabled",
|
|
128
170
|
"studentInstructionsEnabled",
|
|
129
171
|
"teacherInstructionsEnabled"
|
|
130
172
|
],
|
|
@@ -166,6 +208,27 @@
|
|
|
166
208
|
}
|
|
167
209
|
}
|
|
168
210
|
},
|
|
211
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
212
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"teacherInstructions": {
|
|
216
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
217
|
+
"type": "number",
|
|
218
|
+
"title": "teacherInstructions"
|
|
219
|
+
},
|
|
220
|
+
"prompt": {
|
|
221
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
222
|
+
"type": "number",
|
|
223
|
+
"title": "prompt"
|
|
224
|
+
},
|
|
225
|
+
"rationale": {
|
|
226
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
227
|
+
"type": "number",
|
|
228
|
+
"title": "rationale"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
169
232
|
"Dimensions": {
|
|
170
233
|
"title": "Dimensions",
|
|
171
234
|
"type": "object",
|
|
@@ -207,4 +270,4 @@
|
|
|
207
270
|
}
|
|
208
271
|
},
|
|
209
272
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
210
|
-
}
|
|
273
|
+
}
|