@pie-element/extended-text-entry 6.4.6-next.85 → 6.5.1-beta.587

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.
@@ -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); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
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] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
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
+ playerSpellCheckDisabled: 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
- equationEditor: equationEditor
126
+ spanishInput: normalizedQuestion.spanishInput,
127
+ specialInput: normalizedQuestion.specialInput,
128
+ equationEditor: equationEditor,
129
+ spellCheckEnabled: !normalizedQuestion.playerSpellCheckDisabled,
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 outcome() {
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;A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port { 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 ...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 equationEditor\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"}
1
+ {"version":3,"sources":["../src/index.js"],"names":["log","createDefaultModel","model","defaults","normalize","question","feedbackEnabled","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","playerSpellCheckDisabled","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;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,CAACC,QAAD;AAAA,yCACpBF,oBADoB;AAEvBG,IAAAA,eAAe,EAAE,IAFM;AAGvBC,IAAAA,gBAAgB,EAAE,IAHK;AAIvBC,IAAAA,aAAa,EAAE,IAJQ;AAKvBC,IAAAA,0BAA0B,EAAE,IALL;AAMvBC,IAAAA,0BAA0B,EAAE,IANL;AAOvBC,IAAAA,wBAAwB,EAAE;AAPH,KAQpBN,QARoB;AAAA,CAAlB;;;;SAWeH,K;;;;;yFAAf,kBAAqBG,QAArB,EAA+BO,OAA/B,EAAwCC,GAAxC;AAAA;AAAA;AAAA;AAAA;AAAA;AACLb,YAAAA,GAAG,CAAC,YAAD,EAAeK,QAAf,CAAH;AACMS,YAAAA,kBAFD,GAEsBV,SAAS,CAACC,QAAD,CAF/B;AAICU,YAAAA,EAJD,GAKHF,GAAG,CAACG,IAAJ,KAAa,UAAb,IAA2BF,kBAAkB,CAACR,eAA9C,GACI,2BAAYQ,kBAAkB,CAACG,QAA/B,EAAyC,gCAAzC,CADJ,GAEIC,OAAO,CAACC,OAAR,CAAgBC,SAAhB,CAPD;AASDC,YAAAA,mBATC,GASqB,IATrB;;AAUL,gBAAIR,GAAG,CAACS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AkB,CAACiB,YATL;AAU5BR,gBAAAA,cAAc,EAAdA,cAV4B;AAW5BS,gBAAAA,iBAAiB,EAAE,CAAClB,kBAAkB,CAACH,wBAXX;AAY5BsB,gBAAAA,sBAAsB,EAAEnB,kBAAkB,CAACmB,sBAAnB,IAA6C;AAZzC,eAAf;AAAA,aAAR,CAnCF;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,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 playerSpellCheckDisabled: true,\n ...question,\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.playerSpellCheckDisabled,\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"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pie-element/extended-text-entry-controller",
3
3
  "private": true,
4
- "version": "4.1.9",
4
+ "version": "4.3.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
- "@pie-lib/feedback": "^0.4.25"
9
+ "@pie-lib/feedback": "^0.4.42"
10
10
  },
11
11
  "scripts": {
12
12
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -35,6 +35,43 @@
35
35
  }
36
36
  }
37
37
  },
38
+ "settingsPanelDisabled": {
39
+ "description": "Indicates if the settings panel is not available",
40
+ "type": "boolean",
41
+ "title": "settingsPanelDisabled"
42
+ },
43
+ "spanishInput": {
44
+ "title": "ConfigureProp",
45
+ "type": "object",
46
+ "properties": {
47
+ "settings": {
48
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
49
+ "type": "boolean",
50
+ "title": "settings"
51
+ },
52
+ "label": {
53
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
54
+ "type": "string",
55
+ "title": "label"
56
+ }
57
+ }
58
+ },
59
+ "specialInput": {
60
+ "title": "ConfigureProp",
61
+ "type": "object",
62
+ "properties": {
63
+ "settings": {
64
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
65
+ "type": "boolean",
66
+ "title": "settings"
67
+ },
68
+ "label": {
69
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
70
+ "type": "string",
71
+ "title": "label"
72
+ }
73
+ }
74
+ },
38
75
  "multiple": {
39
76
  "title": "ConfigurePropWithEnabled",
40
77
  "type": "object",
@@ -88,6 +125,38 @@
88
125
  }
89
126
  }
90
127
  },
128
+ "spellCheck": {
129
+ "title": "ConfigureProp",
130
+ "type": "object",
131
+ "properties": {
132
+ "settings": {
133
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
134
+ "type": "boolean",
135
+ "title": "settings"
136
+ },
137
+ "label": {
138
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
139
+ "type": "string",
140
+ "title": "label"
141
+ }
142
+ }
143
+ },
144
+ "playerSpellCheck": {
145
+ "title": "ConfigureProp",
146
+ "type": "object",
147
+ "properties": {
148
+ "settings": {
149
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
150
+ "type": "boolean",
151
+ "title": "settings"
152
+ },
153
+ "label": {
154
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
155
+ "type": "string",
156
+ "title": "label"
157
+ }
158
+ }
159
+ },
91
160
  "dimensions": {
92
161
  "title": "ConfigureProp",
93
162
  "type": "object",
@@ -104,6 +173,69 @@
104
173
  }
105
174
  }
106
175
  },
176
+ "maxImageWidth": {
177
+ "title": "ConfigureMaxImageDimensionsProp",
178
+ "type": "object",
179
+ "properties": {
180
+ "teacherInstructions": {
181
+ "description": "Indicates the max dimension for images in teacher instructions",
182
+ "type": "number",
183
+ "title": "teacherInstructions"
184
+ },
185
+ "prompt": {
186
+ "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",
187
+ "type": "number",
188
+ "title": "prompt"
189
+ },
190
+ "rationale": {
191
+ "description": "Indicates the max dimension for images in rationale",
192
+ "type": "number",
193
+ "title": "rationale"
194
+ }
195
+ }
196
+ },
197
+ "maxImageHeight": {
198
+ "title": "ConfigureMaxImageDimensionsProp",
199
+ "type": "object",
200
+ "properties": {
201
+ "teacherInstructions": {
202
+ "description": "Indicates the max dimension for images in teacher instructions",
203
+ "type": "number",
204
+ "title": "teacherInstructions"
205
+ },
206
+ "prompt": {
207
+ "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",
208
+ "type": "number",
209
+ "title": "prompt"
210
+ },
211
+ "rationale": {
212
+ "description": "Indicates the max dimension for images in rationale",
213
+ "type": "number",
214
+ "title": "rationale"
215
+ }
216
+ }
217
+ },
218
+ "withRubric": {
219
+ "title": "ConfigureWithForceProp",
220
+ "type": "object",
221
+ "properties": {
222
+ "settings": {
223
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
224
+ "type": "boolean",
225
+ "title": "settings"
226
+ },
227
+ "label": {
228
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
229
+ "type": "string",
230
+ "title": "label"
231
+ },
232
+ "forceEnabled": {
233
+ "description": "Indicates the value for the toggle; if true, this property will not be visible in Settings Panel",
234
+ "type": "boolean",
235
+ "title": "forceEnabled"
236
+ }
237
+ }
238
+ },
107
239
  "showPrompt": {
108
240
  "description": "Determines whether prompt field will be displayed or not",
109
241
  "default": true,
@@ -160,6 +292,48 @@
160
292
  "title": "enabled"
161
293
  }
162
294
  }
295
+ },
296
+ "ConfigureMaxImageDimensionsProp": {
297
+ "title": "ConfigureMaxImageDimensionsProp",
298
+ "type": "object",
299
+ "properties": {
300
+ "teacherInstructions": {
301
+ "description": "Indicates the max dimension for images in teacher instructions",
302
+ "type": "number",
303
+ "title": "teacherInstructions"
304
+ },
305
+ "prompt": {
306
+ "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",
307
+ "type": "number",
308
+ "title": "prompt"
309
+ },
310
+ "rationale": {
311
+ "description": "Indicates the max dimension for images in rationale",
312
+ "type": "number",
313
+ "title": "rationale"
314
+ }
315
+ }
316
+ },
317
+ "ConfigureWithForceProp": {
318
+ "title": "ConfigureWithForceProp",
319
+ "type": "object",
320
+ "properties": {
321
+ "settings": {
322
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
323
+ "type": "boolean",
324
+ "title": "settings"
325
+ },
326
+ "label": {
327
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
328
+ "type": "string",
329
+ "title": "label"
330
+ },
331
+ "forceEnabled": {
332
+ "description": "Indicates the value for the toggle; if true, this property will not be visible in Settings Panel",
333
+ "type": "boolean",
334
+ "title": "forceEnabled"
335
+ }
336
+ }
163
337
  }
164
338
  },
165
339
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -26,6 +26,34 @@ 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
+ # `settingsPanelDisabled` (boolean)
30
+
31
+ Indicates if the settings panel is not available
32
+
33
+ # `spanishInput` (object)
34
+
35
+ Properties of the `spanishInput` object:
36
+
37
+ ## `settings` (boolean)
38
+
39
+ Indicates if the item has to be displayed in the Settings Panel
40
+
41
+ ## `label` (string)
42
+
43
+ Indicates the label for the item that has to be displayed in the Settings Panel
44
+
45
+ # `specialInput` (object)
46
+
47
+ Properties of the `specialInput` object:
48
+
49
+ ## `settings` (boolean)
50
+
51
+ Indicates if the item has to be displayed in the Settings Panel
52
+
53
+ ## `label` (string)
54
+
55
+ Indicates the label for the item that has to be displayed in the Settings Panel
56
+
29
57
  # `multiple` (object)
30
58
 
31
59
  Properties of the `multiple` object:
@@ -67,6 +95,30 @@ Indicates if the item has to be displayed in the Settings Panel
67
95
 
68
96
  Indicates the label for the item that has to be displayed in the Settings Panel
69
97
 
98
+ # `spellCheck` (object)
99
+
100
+ Properties of the `spellCheck` object:
101
+
102
+ ## `settings` (boolean)
103
+
104
+ Indicates if the item has to be displayed in the Settings Panel
105
+
106
+ ## `label` (string)
107
+
108
+ Indicates the label for the item that has to be displayed in the Settings Panel
109
+
110
+ # `playerSpellCheck` (object)
111
+
112
+ Properties of the `playerSpellCheck` object:
113
+
114
+ ## `settings` (boolean)
115
+
116
+ Indicates if the item has to be displayed in the Settings Panel
117
+
118
+ ## `label` (string)
119
+
120
+ Indicates the label for the item that has to be displayed in the Settings Panel
121
+
70
122
  # `dimensions` (object)
71
123
 
72
124
  Properties of the `dimensions` object:
@@ -79,6 +131,54 @@ Indicates if the item has to be displayed in the Settings Panel
79
131
 
80
132
  Indicates the label for the item that has to be displayed in the Settings Panel
81
133
 
134
+ # `maxImageWidth` (object)
135
+
136
+ Properties of the `maxImageWidth` object:
137
+
138
+ ## `teacherInstructions` (number)
139
+
140
+ Indicates the max dimension for images in teacher instructions
141
+
142
+ ## `prompt` (number)
143
+
144
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
145
+
146
+ ## `rationale` (number)
147
+
148
+ Indicates the max dimension for images in rationale
149
+
150
+ # `maxImageHeight` (object)
151
+
152
+ Properties of the `maxImageHeight` object:
153
+
154
+ ## `teacherInstructions` (number)
155
+
156
+ Indicates the max dimension for images in teacher instructions
157
+
158
+ ## `prompt` (number)
159
+
160
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
161
+
162
+ ## `rationale` (number)
163
+
164
+ Indicates the max dimension for images in rationale
165
+
166
+ # `withRubric` (object)
167
+
168
+ Properties of the `withRubric` object:
169
+
170
+ ## `settings` (boolean)
171
+
172
+ Indicates if the item has to be displayed in the Settings Panel
173
+
174
+ ## `label` (string)
175
+
176
+ Indicates the label for the item that has to be displayed in the Settings Panel
177
+
178
+ ## `forceEnabled` (boolean)
179
+
180
+ Indicates the value for the toggle; if true, this property will not be visible in Settings Panel
181
+
82
182
  # `showPrompt` (boolean)
83
183
 
84
184
  Determines whether prompt field will be displayed or not
@@ -130,4 +230,36 @@ Indicates the label for the item that has to be displayed in the Settings Panel
130
230
  ### `enabled` (boolean)
131
231
 
132
232
  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)
233
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
234
+
235
+ ## `ConfigureMaxImageDimensionsProp` (object)
236
+
237
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
238
+
239
+ ### `teacherInstructions` (number)
240
+
241
+ Indicates the max dimension for images in teacher instructions
242
+
243
+ ### `prompt` (number)
244
+
245
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
246
+
247
+ ### `rationale` (number)
248
+
249
+ Indicates the max dimension for images in rationale
250
+
251
+ ## `ConfigureWithForceProp` (object)
252
+
253
+ Properties of the `ConfigureWithForceProp` object:
254
+
255
+ ### `settings` (boolean)
256
+
257
+ Indicates if the item has to be displayed in the Settings Panel
258
+
259
+ ### `label` (string)
260
+
261
+ Indicates the label for the item that has to be displayed in the Settings Panel
262
+
263
+ ### `forceEnabled` (boolean)
264
+
265
+ Indicates the value for the toggle; if true, this property will not be visible in Settings Panel
@@ -1,7 +1,7 @@
1
1
  const { model } = require('./generate');
2
2
  module.exports = {
3
3
  elements: {
4
- 'extended-text-entry': '../..'
4
+ 'extended-text-entry': '../..',
5
5
  },
6
- models: [model('1', 'extended-text-entry')]
6
+ models: [model('1', 'extended-text-entry')],
7
7
  };
@@ -1,11 +1,13 @@
1
1
  exports.model = (id, element) => ({
2
2
  id,
3
3
  element,
4
- customKeys: [
5
- "\\square"
6
- ],
4
+ customKeys: ['\\square'],
7
5
  feedback: { type: 'default', default: 'this is default feedback' },
8
6
  prompt: 'This is the question prompt',
9
7
  promptEnabled: true,
10
- mathInput: true
8
+ mathInput: true,
9
+ playersToolbarPosition: 'bottom',
10
+ toolbarEditorPosition: 'bottom',
11
+ spellCheckEnabled: true,
12
+ rubricEnabled: false,
11
13
  });
@@ -1,3 +1,3 @@
1
1
  <div class="body">
2
2
  <extended-text-entry pie-id="1"></extended-text-entry>
3
- </div>
3
+ </div>
@@ -3,5 +3,5 @@ module.exports = [
3
3
  id: '1',
4
4
  element: 'extended-text-entry',
5
5
  // value: 'This is test'
6
- }
6
+ },
7
7
  ];
@@ -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
+ "playerSpellCheckDisabled": {
119
+ "description": "Indicates if spellcheck is disabled for the player. Default value is true",
120
+ "type": "boolean",
121
+ "title": "playerSpellCheckDisabled"
122
+ },
101
123
  "studentInstructionsEnabled": {
102
124
  "description": "Indicates if Student Instructions are enabled",
103
125
  "type": "boolean",
@@ -108,6 +130,29 @@
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
+ },
151
+ "rubricEnabled": {
152
+ "description": "Indicates if Rubric is enabled",
153
+ "type": "boolean",
154
+ "title": "rubricEnabled"
155
+ },
111
156
  "id": {
112
157
  "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
113
158
  "type": "string",
@@ -124,7 +169,10 @@
124
169
  "element",
125
170
  "feedbackEnabled",
126
171
  "id",
172
+ "playerSpellCheckDisabled",
127
173
  "rationaleEnabled",
174
+ "rubricEnabled",
175
+ "spellCheckEnabled",
128
176
  "studentInstructionsEnabled",
129
177
  "teacherInstructionsEnabled"
130
178
  ],
@@ -166,6 +214,48 @@
166
214
  }
167
215
  }
168
216
  },
217
+ "ConfigureMaxImageDimensionsProp": {
218
+ "title": "ConfigureMaxImageDimensionsProp",
219
+ "type": "object",
220
+ "properties": {
221
+ "teacherInstructions": {
222
+ "description": "Indicates the max dimension for images in teacher instructions",
223
+ "type": "number",
224
+ "title": "teacherInstructions"
225
+ },
226
+ "prompt": {
227
+ "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",
228
+ "type": "number",
229
+ "title": "prompt"
230
+ },
231
+ "rationale": {
232
+ "description": "Indicates the max dimension for images in rationale",
233
+ "type": "number",
234
+ "title": "rationale"
235
+ }
236
+ }
237
+ },
238
+ "ConfigureWithForceProp": {
239
+ "title": "ConfigureWithForceProp",
240
+ "type": "object",
241
+ "properties": {
242
+ "settings": {
243
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
244
+ "type": "boolean",
245
+ "title": "settings"
246
+ },
247
+ "label": {
248
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
249
+ "type": "string",
250
+ "title": "label"
251
+ },
252
+ "forceEnabled": {
253
+ "description": "Indicates the value for the toggle; if true, this property will not be visible in Settings Panel",
254
+ "type": "boolean",
255
+ "title": "forceEnabled"
256
+ }
257
+ }
258
+ },
169
259
  "Dimensions": {
170
260
  "title": "Dimensions",
171
261
  "type": "object",
@@ -207,4 +297,4 @@
207
297
  }
208
298
  },
209
299
  "$schema": "http://json-schema.org/draft-07/schema#"
210
- }
300
+ }