@pie-element/explicit-constructed-response 11.1.1-next.152 → 11.1.1-next.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure/lib/defaults.js +2 -1
- package/configure/lib/defaults.js.map +1 -1
- package/configure/package.json +2 -2
- package/controller/lib/defaults.js +2 -1
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +3 -1
- package/controller/lib/index.js.map +1 -1
- package/module/configure.js +1 -1
- package/module/controller.js +5 -2
- package/module/element.js +1 -1
- package/module/print.js +1 -1
- package/package.json +3 -3
package/module/controller.js
CHANGED
|
@@ -6122,7 +6122,8 @@ var defaults = {
|
|
|
6122
6122
|
displayType: 'block',
|
|
6123
6123
|
markup: '',
|
|
6124
6124
|
maxLengthPerChoiceEnabled: true,
|
|
6125
|
-
|
|
6125
|
+
// Student-facing spellcheck is off unless the model opts in. See PIE-979.
|
|
6126
|
+
playerSpellCheckEnabled: false,
|
|
6126
6127
|
prompt: '',
|
|
6127
6128
|
promptEnabled: true,
|
|
6128
6129
|
rationale: '',
|
|
@@ -6289,7 +6290,9 @@ async function model(question, session, env) {
|
|
|
6289
6290
|
maxLengthPerChoice,
|
|
6290
6291
|
maxLengthPerChoiceEnabled,
|
|
6291
6292
|
note,
|
|
6292
|
-
|
|
6293
|
+
// normalize's defaults cover a missing key, but a key present as undefined/null overwrites
|
|
6294
|
+
// them and would reach the editor as undefined, which enables spellcheck. See PIE-979.
|
|
6295
|
+
playerSpellCheckEnabled: normalizedQuestion.playerSpellCheckEnabled === true,
|
|
6293
6296
|
prompt: normalizedQuestion.promptEnabled ? normalizedQuestion.prompt : defaults.prompt,
|
|
6294
6297
|
rationale: defaults.rationale,
|
|
6295
6298
|
responseCorrect: env.mode === 'evaluate' ? getScore(normalizedQuestion, session) === 1 : undefined,
|