@pie-element/explicit-constructed-response 6.12.6 → 6.12.7
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 +11 -0
- package/configure/CHANGELOG.md +11 -0
- package/configure/lib/defaults.js +9 -43
- package/configure/lib/defaults.js.map +1 -1
- package/configure/package.json +1 -1
- package/controller/CHANGELOG.md +11 -0
- package/controller/lib/defaults.js +2 -2
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +44 -70
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/lib/index.js +13 -13
- package/lib/index.js.map +1 -1
- package/lib/main.js +27 -35
- package/lib/main.js.map +1 -1
- package/lib/print.js +5 -5
- package/lib/print.js.map +1 -1
- package/module/configure.js +10 -44
- package/module/controller.js +16389 -18257
- package/module/element.js +39 -40
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +31 -32
- package/package.json +2 -2
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.11.0/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.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) {
|
|
@@ -128123,26 +128123,26 @@ class Main extends React$1.Component {
|
|
|
128123
128123
|
}
|
|
128124
128124
|
static __initStatic() {
|
|
128125
128125
|
this.propTypes = {
|
|
128126
|
+
alwaysShowCorrect: PropTypes.bool,
|
|
128127
|
+
animationsDisabled: PropTypes.bool,
|
|
128126
128128
|
classes: PropTypes.object.isRequired,
|
|
128127
|
-
prompt: PropTypes.string,
|
|
128128
|
-
note: PropTypes.string,
|
|
128129
|
-
showNote: PropTypes.bool,
|
|
128130
|
-
env: PropTypes.object,
|
|
128131
|
-
rationale: PropTypes.string,
|
|
128132
128129
|
disabled: PropTypes.bool,
|
|
128133
128130
|
displayType: PropTypes.string,
|
|
128134
|
-
markup: PropTypes.string,
|
|
128135
|
-
mode: PropTypes.string,
|
|
128136
|
-
teacherInstructions: PropTypes.string,
|
|
128137
|
-
value: PropTypes.object,
|
|
128138
128131
|
feedback: PropTypes.object,
|
|
128139
|
-
|
|
128140
|
-
|
|
128141
|
-
animationsDisabled: PropTypes.bool,
|
|
128132
|
+
language: PropTypes.string,
|
|
128133
|
+
markup: PropTypes.string,
|
|
128142
128134
|
maxLengthPerChoice: PropTypes.array,
|
|
128143
128135
|
maxLengthPerChoiceEnabled: PropTypes.bool,
|
|
128136
|
+
mode: PropTypes.string,
|
|
128137
|
+
note: PropTypes.string,
|
|
128138
|
+
onChange: PropTypes.func,
|
|
128144
128139
|
playerSpellCheckEnabled: PropTypes.bool,
|
|
128145
|
-
|
|
128140
|
+
prompt: PropTypes.string,
|
|
128141
|
+
rationale: PropTypes.string,
|
|
128142
|
+
role: PropTypes.string,
|
|
128143
|
+
showNote: PropTypes.bool,
|
|
128144
|
+
teacherInstructions: PropTypes.string,
|
|
128145
|
+
value: PropTypes.object
|
|
128146
128146
|
};
|
|
128147
128147
|
}
|
|
128148
128148
|
static __initStatic2() {
|
|
@@ -128205,8 +128205,7 @@ class Main extends React$1.Component {
|
|
|
128205
128205
|
}
|
|
128206
128206
|
render() {
|
|
128207
128207
|
const {showCorrectAnswer, value} = this.state;
|
|
128208
|
-
const {
|
|
128209
|
-
const {role} = env || ({});
|
|
128208
|
+
const {alwaysShowCorrect, animationsDisabled, classes, mode, displayType, role, language, maxLengthPerChoice, maxLengthPerChoiceEnabled, note, playerSpellCheckEnabled, prompt, rationale, showNote, teacherInstructions} = this.props;
|
|
128210
128209
|
const displayNote = (showCorrectAnswer || mode === 'view' && role === 'instructor') && showNote && note;
|
|
128211
128210
|
const mainClasses = classNames([classes.mainContainer, {
|
|
128212
128211
|
[classes.noBorderColor]: alwaysShowCorrect
|
|
@@ -128217,7 +128216,7 @@ class Main extends React$1.Component {
|
|
|
128217
128216
|
__self: this,
|
|
128218
128217
|
__source: {
|
|
128219
128218
|
fileName: _jsxFileName,
|
|
128220
|
-
lineNumber:
|
|
128219
|
+
lineNumber: 122
|
|
128221
128220
|
}
|
|
128222
128221
|
});
|
|
128223
128222
|
const rationaleDiv = React$1.createElement(PreviewPrompt, {
|
|
@@ -128225,7 +128224,7 @@ class Main extends React$1.Component {
|
|
|
128225
128224
|
__self: this,
|
|
128226
128225
|
__source: {
|
|
128227
128226
|
fileName: _jsxFileName,
|
|
128228
|
-
lineNumber:
|
|
128227
|
+
lineNumber: 125
|
|
128229
128228
|
}
|
|
128230
128229
|
});
|
|
128231
128230
|
return React$1.createElement('div', {
|
|
@@ -128236,21 +128235,21 @@ class Main extends React$1.Component {
|
|
|
128236
128235
|
__self: this,
|
|
128237
128236
|
__source: {
|
|
128238
128237
|
fileName: _jsxFileName,
|
|
128239
|
-
lineNumber:
|
|
128238
|
+
lineNumber: 128
|
|
128240
128239
|
}
|
|
128241
128240
|
}, mode === 'gather' && React$1.createElement('h2', {
|
|
128242
128241
|
className: classes.srOnly,
|
|
128243
128242
|
__self: this,
|
|
128244
128243
|
__source: {
|
|
128245
128244
|
fileName: _jsxFileName,
|
|
128246
|
-
lineNumber:
|
|
128245
|
+
lineNumber: 129
|
|
128247
128246
|
}
|
|
128248
128247
|
}, "Fill in the Blank Question"), teacherInstructions && hasText(teacherInstructions) && React$1.createElement('div', {
|
|
128249
128248
|
className: classes.collapsible,
|
|
128250
128249
|
__self: this,
|
|
128251
128250
|
__source: {
|
|
128252
128251
|
fileName: _jsxFileName,
|
|
128253
|
-
lineNumber:
|
|
128252
|
+
lineNumber: 132
|
|
128254
128253
|
}
|
|
128255
128254
|
}, !animationsDisabled ? React$1.createElement(Collapsible, {
|
|
128256
128255
|
labels: {
|
|
@@ -128260,14 +128259,14 @@ class Main extends React$1.Component {
|
|
|
128260
128259
|
__self: this,
|
|
128261
128260
|
__source: {
|
|
128262
128261
|
fileName: _jsxFileName,
|
|
128263
|
-
lineNumber:
|
|
128262
|
+
lineNumber: 134
|
|
128264
128263
|
}
|
|
128265
128264
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), prompt && React$1.createElement(PreviewPrompt, {
|
|
128266
128265
|
prompt: prompt,
|
|
128267
128266
|
__self: this,
|
|
128268
128267
|
__source: {
|
|
128269
128268
|
fileName: _jsxFileName,
|
|
128270
|
-
lineNumber:
|
|
128269
|
+
lineNumber: 143
|
|
128271
128270
|
}
|
|
128272
128271
|
}), !alwaysShowCorrect && React$1.createElement(CorrectAnswerToggle, {
|
|
128273
128272
|
show: mode === 'evaluate',
|
|
@@ -128277,7 +128276,7 @@ class Main extends React$1.Component {
|
|
|
128277
128276
|
__self: this,
|
|
128278
128277
|
__source: {
|
|
128279
128278
|
fileName: _jsxFileName,
|
|
128280
|
-
lineNumber:
|
|
128279
|
+
lineNumber: 146
|
|
128281
128280
|
}
|
|
128282
128281
|
}), React$1.createElement(maskMarkup$1.ConstructedResponse, {
|
|
128283
128282
|
...this.props,
|
|
@@ -128290,7 +128289,7 @@ class Main extends React$1.Component {
|
|
|
128290
128289
|
__self: this,
|
|
128291
128290
|
__source: {
|
|
128292
128291
|
fileName: _jsxFileName,
|
|
128293
|
-
lineNumber:
|
|
128292
|
+
lineNumber: 154
|
|
128294
128293
|
}
|
|
128295
128294
|
}), displayNote && React$1.createElement('div', {
|
|
128296
128295
|
className: classNames(classes.note, 'note'),
|
|
@@ -128307,7 +128306,7 @@ class Main extends React$1.Component {
|
|
|
128307
128306
|
__self: this,
|
|
128308
128307
|
__source: {
|
|
128309
128308
|
fileName: _jsxFileName,
|
|
128310
|
-
lineNumber:
|
|
128309
|
+
lineNumber: 167
|
|
128311
128310
|
}
|
|
128312
128311
|
}, !animationsDisabled ? React$1.createElement(Collapsible, {
|
|
128313
128312
|
labels: {
|
|
@@ -128317,7 +128316,7 @@ class Main extends React$1.Component {
|
|
|
128317
128316
|
__self: this,
|
|
128318
128317
|
__source: {
|
|
128319
128318
|
fileName: _jsxFileName,
|
|
128320
|
-
lineNumber:
|
|
128319
|
+
lineNumber: 169
|
|
128321
128320
|
}
|
|
128322
128321
|
}, rationaleDiv) : rationaleDiv));
|
|
128323
128322
|
}
|
|
@@ -128384,24 +128383,24 @@ class InlineDropdown extends HTMLElement {
|
|
|
128384
128383
|
this._render = () => {
|
|
128385
128384
|
if (this._model && this._session) {
|
|
128386
128385
|
let elem = React.createElement(Main$1, {
|
|
128387
|
-
teacherInstructions: this._model.teacherInstructions,
|
|
128388
|
-
prompt: this._model.prompt,
|
|
128389
|
-
note: this._model.note,
|
|
128390
|
-
showNote: this._model.showNote,
|
|
128391
|
-
env: this._model.env,
|
|
128392
|
-
rationale: this._model.rationale,
|
|
128393
|
-
disabled: this._model.disabled,
|
|
128394
128386
|
choices: this._model.choices,
|
|
128387
|
+
disabled: this._model.disabled,
|
|
128388
|
+
displayType: this._model.displayType,
|
|
128389
|
+
feedback: this._model.feedback,
|
|
128390
|
+
language: this._model.language,
|
|
128395
128391
|
markup: this._model.markup,
|
|
128396
|
-
mode: this._model.mode,
|
|
128397
128392
|
maxLengthPerChoice: this._model.maxLengthPerChoice,
|
|
128398
128393
|
maxLengthPerChoiceEnabled: this._model.maxLengthPerChoiceEnabled,
|
|
128394
|
+
mode: this._model.mode,
|
|
128395
|
+
note: this._model.note,
|
|
128396
|
+
onChange: this.changeSession,
|
|
128399
128397
|
playerSpellCheckEnabled: this._model.playerSpellCheckEnabled,
|
|
128400
|
-
|
|
128401
|
-
|
|
128402
|
-
|
|
128403
|
-
|
|
128404
|
-
|
|
128398
|
+
prompt: this._model.prompt,
|
|
128399
|
+
rationale: this._model.rationale,
|
|
128400
|
+
role: this._model.role,
|
|
128401
|
+
showNote: this._model.showNote,
|
|
128402
|
+
teacherInstructions: this._model.teacherInstructions,
|
|
128403
|
+
value: this._session.value
|
|
128405
128404
|
});
|
|
128406
128405
|
ReactDOM.render(elem, this, () => {
|
|
128407
128406
|
renderMath(this);
|
package/module/index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!doctype html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
5
|
-
<title>@pie-element/explicit-constructed-response@6.12.
|
|
5
|
+
<title>@pie-element/explicit-constructed-response@6.12.6</title>
|
|
6
6
|
<script
|
|
7
7
|
type="module"
|
|
8
8
|
src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
|
package/module/manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/explicit-constructed-response",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.6",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.11.0"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.11.0/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.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) {
|
|
@@ -128086,26 +128086,26 @@ class Main extends React$1.Component {
|
|
|
128086
128086
|
}
|
|
128087
128087
|
static __initStatic() {
|
|
128088
128088
|
this.propTypes = {
|
|
128089
|
+
alwaysShowCorrect: PropTypes.bool,
|
|
128090
|
+
animationsDisabled: PropTypes.bool,
|
|
128089
128091
|
classes: PropTypes.object.isRequired,
|
|
128090
|
-
prompt: PropTypes.string,
|
|
128091
|
-
note: PropTypes.string,
|
|
128092
|
-
showNote: PropTypes.bool,
|
|
128093
|
-
env: PropTypes.object,
|
|
128094
|
-
rationale: PropTypes.string,
|
|
128095
128092
|
disabled: PropTypes.bool,
|
|
128096
128093
|
displayType: PropTypes.string,
|
|
128097
|
-
markup: PropTypes.string,
|
|
128098
|
-
mode: PropTypes.string,
|
|
128099
|
-
teacherInstructions: PropTypes.string,
|
|
128100
|
-
value: PropTypes.object,
|
|
128101
128094
|
feedback: PropTypes.object,
|
|
128102
|
-
|
|
128103
|
-
|
|
128104
|
-
animationsDisabled: PropTypes.bool,
|
|
128095
|
+
language: PropTypes.string,
|
|
128096
|
+
markup: PropTypes.string,
|
|
128105
128097
|
maxLengthPerChoice: PropTypes.array,
|
|
128106
128098
|
maxLengthPerChoiceEnabled: PropTypes.bool,
|
|
128099
|
+
mode: PropTypes.string,
|
|
128100
|
+
note: PropTypes.string,
|
|
128101
|
+
onChange: PropTypes.func,
|
|
128107
128102
|
playerSpellCheckEnabled: PropTypes.bool,
|
|
128108
|
-
|
|
128103
|
+
prompt: PropTypes.string,
|
|
128104
|
+
rationale: PropTypes.string,
|
|
128105
|
+
role: PropTypes.string,
|
|
128106
|
+
showNote: PropTypes.bool,
|
|
128107
|
+
teacherInstructions: PropTypes.string,
|
|
128108
|
+
value: PropTypes.object
|
|
128109
128109
|
};
|
|
128110
128110
|
}
|
|
128111
128111
|
static __initStatic2() {
|
|
@@ -128168,8 +128168,7 @@ class Main extends React$1.Component {
|
|
|
128168
128168
|
}
|
|
128169
128169
|
render() {
|
|
128170
128170
|
const {showCorrectAnswer, value} = this.state;
|
|
128171
|
-
const {
|
|
128172
|
-
const {role} = env || ({});
|
|
128171
|
+
const {alwaysShowCorrect, animationsDisabled, classes, mode, displayType, role, language, maxLengthPerChoice, maxLengthPerChoiceEnabled, note, playerSpellCheckEnabled, prompt, rationale, showNote, teacherInstructions} = this.props;
|
|
128173
128172
|
const displayNote = (showCorrectAnswer || mode === 'view' && role === 'instructor') && showNote && note;
|
|
128174
128173
|
const mainClasses = classNames([classes.mainContainer, {
|
|
128175
128174
|
[classes.noBorderColor]: alwaysShowCorrect
|
|
@@ -128180,7 +128179,7 @@ class Main extends React$1.Component {
|
|
|
128180
128179
|
__self: this,
|
|
128181
128180
|
__source: {
|
|
128182
128181
|
fileName: _jsxFileName,
|
|
128183
|
-
lineNumber:
|
|
128182
|
+
lineNumber: 122
|
|
128184
128183
|
}
|
|
128185
128184
|
});
|
|
128186
128185
|
const rationaleDiv = React$1.createElement(PreviewPrompt, {
|
|
@@ -128188,7 +128187,7 @@ class Main extends React$1.Component {
|
|
|
128188
128187
|
__self: this,
|
|
128189
128188
|
__source: {
|
|
128190
128189
|
fileName: _jsxFileName,
|
|
128191
|
-
lineNumber:
|
|
128190
|
+
lineNumber: 125
|
|
128192
128191
|
}
|
|
128193
128192
|
});
|
|
128194
128193
|
return React$1.createElement('div', {
|
|
@@ -128199,21 +128198,21 @@ class Main extends React$1.Component {
|
|
|
128199
128198
|
__self: this,
|
|
128200
128199
|
__source: {
|
|
128201
128200
|
fileName: _jsxFileName,
|
|
128202
|
-
lineNumber:
|
|
128201
|
+
lineNumber: 128
|
|
128203
128202
|
}
|
|
128204
128203
|
}, mode === 'gather' && React$1.createElement('h2', {
|
|
128205
128204
|
className: classes.srOnly,
|
|
128206
128205
|
__self: this,
|
|
128207
128206
|
__source: {
|
|
128208
128207
|
fileName: _jsxFileName,
|
|
128209
|
-
lineNumber:
|
|
128208
|
+
lineNumber: 129
|
|
128210
128209
|
}
|
|
128211
128210
|
}, "Fill in the Blank Question"), teacherInstructions && hasText(teacherInstructions) && React$1.createElement('div', {
|
|
128212
128211
|
className: classes.collapsible,
|
|
128213
128212
|
__self: this,
|
|
128214
128213
|
__source: {
|
|
128215
128214
|
fileName: _jsxFileName,
|
|
128216
|
-
lineNumber:
|
|
128215
|
+
lineNumber: 132
|
|
128217
128216
|
}
|
|
128218
128217
|
}, !animationsDisabled ? React$1.createElement(Collapsible, {
|
|
128219
128218
|
labels: {
|
|
@@ -128223,14 +128222,14 @@ class Main extends React$1.Component {
|
|
|
128223
128222
|
__self: this,
|
|
128224
128223
|
__source: {
|
|
128225
128224
|
fileName: _jsxFileName,
|
|
128226
|
-
lineNumber:
|
|
128225
|
+
lineNumber: 134
|
|
128227
128226
|
}
|
|
128228
128227
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), prompt && React$1.createElement(PreviewPrompt, {
|
|
128229
128228
|
prompt: prompt,
|
|
128230
128229
|
__self: this,
|
|
128231
128230
|
__source: {
|
|
128232
128231
|
fileName: _jsxFileName,
|
|
128233
|
-
lineNumber:
|
|
128232
|
+
lineNumber: 143
|
|
128234
128233
|
}
|
|
128235
128234
|
}), !alwaysShowCorrect && React$1.createElement(CorrectAnswerToggle, {
|
|
128236
128235
|
show: mode === 'evaluate',
|
|
@@ -128240,7 +128239,7 @@ class Main extends React$1.Component {
|
|
|
128240
128239
|
__self: this,
|
|
128241
128240
|
__source: {
|
|
128242
128241
|
fileName: _jsxFileName,
|
|
128243
|
-
lineNumber:
|
|
128242
|
+
lineNumber: 146
|
|
128244
128243
|
}
|
|
128245
128244
|
}), React$1.createElement(maskMarkup$1.ConstructedResponse, {
|
|
128246
128245
|
...this.props,
|
|
@@ -128253,7 +128252,7 @@ class Main extends React$1.Component {
|
|
|
128253
128252
|
__self: this,
|
|
128254
128253
|
__source: {
|
|
128255
128254
|
fileName: _jsxFileName,
|
|
128256
|
-
lineNumber:
|
|
128255
|
+
lineNumber: 154
|
|
128257
128256
|
}
|
|
128258
128257
|
}), displayNote && React$1.createElement('div', {
|
|
128259
128258
|
className: classNames(classes.note, 'note'),
|
|
@@ -128270,7 +128269,7 @@ class Main extends React$1.Component {
|
|
|
128270
128269
|
__self: this,
|
|
128271
128270
|
__source: {
|
|
128272
128271
|
fileName: _jsxFileName,
|
|
128273
|
-
lineNumber:
|
|
128272
|
+
lineNumber: 167
|
|
128274
128273
|
}
|
|
128275
128274
|
}, !animationsDisabled ? React$1.createElement(Collapsible, {
|
|
128276
128275
|
labels: {
|
|
@@ -128280,7 +128279,7 @@ class Main extends React$1.Component {
|
|
|
128280
128279
|
__self: this,
|
|
128281
128280
|
__source: {
|
|
128282
128281
|
fileName: _jsxFileName,
|
|
128283
|
-
lineNumber:
|
|
128282
|
+
lineNumber: 169
|
|
128284
128283
|
}
|
|
128285
128284
|
}, rationaleDiv) : rationaleDiv));
|
|
128286
128285
|
}
|
|
@@ -128326,12 +128325,12 @@ const {renderMath: renderMath} = _dll_pie_lib__pie_toolbox_math_rendering_access
|
|
|
128326
128325
|
const debug = _dll_debug;
|
|
128327
128326
|
const log = debug('pie-element:explicit-constructed-response:print');
|
|
128328
128327
|
const preparePrintModel = (model, opts) => {
|
|
128329
|
-
const
|
|
128328
|
+
const isInstructor = opts.role === 'instructor';
|
|
128330
128329
|
model.prompt = model.promptEnabled !== false ? model.prompt : undefined;
|
|
128331
|
-
model.teacherInstructions =
|
|
128332
|
-
model.rationale =
|
|
128333
|
-
model.alwaysShowCorrect =
|
|
128334
|
-
model.mode =
|
|
128330
|
+
model.teacherInstructions = isInstructor && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;
|
|
128331
|
+
model.rationale = isInstructor && model.rationaleEnabled !== false ? model.rationale : undefined;
|
|
128332
|
+
model.alwaysShowCorrect = isInstructor;
|
|
128333
|
+
model.mode = isInstructor ? 'evaluate' : model.mode;
|
|
128335
128334
|
model.disabled = true;
|
|
128336
128335
|
model.animationsDisabled = true;
|
|
128337
128336
|
return model;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "6.12.
|
|
7
|
+
"version": "6.12.7",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postpublish": "../../scripts/postpublish"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "ISC",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "4feb4fe19aa0c24f7794607424333317575c0079",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|