@instructure/quiz-core 22.7.1-rc.1 → 22.7.1-rc.3
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/es/building/api/quizzes.js +6 -1
- package/es/common/actions/modifications.js +11 -0
- package/es/common/records/Quiz.js +2 -2
- package/es/index.js +1 -1
- package/lib/building/api/quizzes.js +6 -0
- package/lib/common/actions/modifications.js +12 -0
- package/lib/common/records/Quiz.js +2 -2
- package/lib/index.js +7 -0
- package/package.json +9 -9
|
@@ -3,7 +3,7 @@ import { noop } from 'lodash';
|
|
|
3
3
|
import { DO_NOTHING, NEW_QUIZ_ID, QUIZ_SAVE_CALL, PARENT_TYPE_BANK, PARENT_TYPE_QUIZ, PARENT_TYPE_QUIZ_SESSION } from '@instructure/quiz-common';
|
|
4
4
|
import Fetcher from '../../common/util/Fetcher';
|
|
5
5
|
import { getQTIInfo } from './qtiImports';
|
|
6
|
-
import { changeQuizAllowBacktracking, changeQuizAllowClearMCSelection, changeQuizChoiceElimination, changeQuizHasTimeLimit, changeQuizOneAtATimeType, changeQuizDefaultRceSettings, changeQuizShuffleQuestions, changeQuizShuffleAnswers, changeQuizRequireStudentAccessCode, changeQuizStudentAccessCode, changeSessionTimeLimitInSeconds, changeQuizFilterIpAddress, changeQuizIpFilters, changeQuizCalculatorType, changeResultsFeedback, changeResultsFeedbackEnabled, changeQuizDisableDocumentAccess } from '../../common/actions/modifications';
|
|
6
|
+
import { changeQuizAllowBacktracking, changeQuizAllowClearMCSelection, changeQuizChoiceElimination, changeQuizHasTimeLimit, changeQuizOneAtATimeType, changeQuizDefaultRceSettings, changeQuizShuffleQuestions, changeQuizShuffleAnswers, changeQuizRequireStudentAccessCode, changeQuizStudentAccessCode, changeSessionTimeLimitInSeconds, changeQuizFilterIpAddress, changeQuizIpFilters, changeQuizCalculatorType, changeResultsFeedback, changeResultsFeedbackEnabled, changeQuizDisableDocumentAccess, changeQuizDetectMultipleSessions } from '../../common/actions/modifications';
|
|
7
7
|
import { handleQuizResponse } from '../../common/api/callHandlers';
|
|
8
8
|
import { getUploadUrl, sendFileToS3 } from '../../common/api/fileUpload';
|
|
9
9
|
import { interactionTypeFetch } from '../../common/api/interactionTypes';
|
|
@@ -268,4 +268,9 @@ export function setResultsFeedbackEnabled(quizId, value, completeCb) {
|
|
|
268
268
|
return setQuizProperty(quizId, {
|
|
269
269
|
results_feedback_enabled: value
|
|
270
270
|
}, changeResultsFeedbackEnabled(quizId, value), completeCb);
|
|
271
|
+
}
|
|
272
|
+
export function setQuizDetectMultipleSessions(quizId, value, completeCb) {
|
|
273
|
+
return setQuizProperty(quizId, {
|
|
274
|
+
detect_multiple_sessions: Boolean(value)
|
|
275
|
+
}, changeQuizDetectMultipleSessions(quizId, value), completeCb);
|
|
271
276
|
}
|
|
@@ -220,6 +220,17 @@ export function changeResultsFeedbackEnabled(quizId, value) {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
+
export function changeQuizDetectMultipleSessions(quizId, value) {
|
|
224
|
+
return {
|
|
225
|
+
type: QUIZ_MODIFICATION,
|
|
226
|
+
payload: {
|
|
227
|
+
id: quizId,
|
|
228
|
+
modifications: {
|
|
229
|
+
detectMultipleSessions: Boolean(value)
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
223
234
|
|
|
224
235
|
// ==================
|
|
225
236
|
// ==================
|
|
@@ -153,6 +153,7 @@ export var Quiz = (_dec = withStateCache(function (quiz) {
|
|
|
153
153
|
choiceElimination: false,
|
|
154
154
|
contextId: null,
|
|
155
155
|
defaultRceSettings: null,
|
|
156
|
+
detectMultipleSessions: false,
|
|
156
157
|
disableDocumentAccess: false,
|
|
157
158
|
hasTimeLimit: false,
|
|
158
159
|
id: '0',
|
|
@@ -177,7 +178,6 @@ export var Quiz = (_dec = withStateCache(function (quiz) {
|
|
|
177
178
|
title: t('Add Title...'),
|
|
178
179
|
filterIpAddress: false,
|
|
179
180
|
filters: Map(),
|
|
180
|
-
valid: true
|
|
181
|
-
detectMultipleSessions: false
|
|
181
|
+
valid: true
|
|
182
182
|
})), _applyDecoratedDescriptor(_class.prototype, "getQuizEntries", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "getQuizEntries"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getWorkingQuizEntries", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "getWorkingQuizEntries"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getWorkingInstance", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, "getWorkingInstance"), _class.prototype), _class);
|
|
183
183
|
export default Quiz;
|
package/es/index.js
CHANGED
|
@@ -117,7 +117,7 @@ export { getClientIpAddress } from './common/util/getClientIpAddress';
|
|
|
117
117
|
export { createQuizEntryRegrade } from './grading/api/quizEntryRegrades';
|
|
118
118
|
export { getQuizEntry } from './building/api/quizEntries';
|
|
119
119
|
export { getItem } from './building/api/items';
|
|
120
|
-
export { interactionFileUpload, setOneAtATimeType, quizBuildingSession, saveQuizChange, setBacktracking, setCalculatorType, setAllowClearMCSelection, setChoiceElimination, setFilterIpAddress, setIpFiltersApi, setIpFiltersUi, setQuizDefaultRceSettings, setQuizShuffleAnswers, setQuizDisableDocumentAccess, setQuizShuffleQuestions, setRequireStudentAccessCode, setStudentAccessCodeApi, setStudentAccessCodeUi, setQuizHasTimeLimit, setSessionTimeLimitInSecondsUi, setSessionTimeLimitInSecondsApi, setResultsFeedback, setResultsFeedbackEnabled } from './building/api/quizzes';
|
|
120
|
+
export { interactionFileUpload, setOneAtATimeType, quizBuildingSession, saveQuizChange, setBacktracking, setCalculatorType, setAllowClearMCSelection, setChoiceElimination, setFilterIpAddress, setIpFiltersApi, setIpFiltersUi, setQuizDefaultRceSettings, setQuizShuffleAnswers, setQuizDisableDocumentAccess, setQuizShuffleQuestions, setRequireStudentAccessCode, setStudentAccessCodeApi, setStudentAccessCodeUi, setQuizHasTimeLimit, setSessionTimeLimitInSecondsUi, setSessionTimeLimitInSecondsApi, setResultsFeedback, setResultsFeedbackEnabled, setQuizDetectMultipleSessions } from './building/api/quizzes';
|
|
121
121
|
export { getExistingQuiz } from './common/api/quizzes';
|
|
122
122
|
export { confirmSessionStartPage, submitStudentAccessCode, nextQuestion, submitQuiz } from './taking/api/taking';
|
|
123
123
|
export { pinSessionItem } from './common/api/quizSessions';
|
|
@@ -17,6 +17,7 @@ exports.setIpFiltersApi = setIpFiltersApi;
|
|
|
17
17
|
exports.setIpFiltersUi = setIpFiltersUi;
|
|
18
18
|
exports.setOneAtATimeType = setOneAtATimeType;
|
|
19
19
|
exports.setQuizDefaultRceSettings = setQuizDefaultRceSettings;
|
|
20
|
+
exports.setQuizDetectMultipleSessions = setQuizDetectMultipleSessions;
|
|
20
21
|
exports.setQuizDisableDocumentAccess = setQuizDisableDocumentAccess;
|
|
21
22
|
exports.setQuizHasTimeLimit = setQuizHasTimeLimit;
|
|
22
23
|
exports.setQuizShuffleAnswers = setQuizShuffleAnswers;
|
|
@@ -299,4 +300,9 @@ function setResultsFeedbackEnabled(quizId, value, completeCb) {
|
|
|
299
300
|
return setQuizProperty(quizId, {
|
|
300
301
|
results_feedback_enabled: value
|
|
301
302
|
}, (0, _modifications.changeResultsFeedbackEnabled)(quizId, value), completeCb);
|
|
303
|
+
}
|
|
304
|
+
function setQuizDetectMultipleSessions(quizId, value, completeCb) {
|
|
305
|
+
return setQuizProperty(quizId, {
|
|
306
|
+
detect_multiple_sessions: Boolean(value)
|
|
307
|
+
}, (0, _modifications.changeQuizDetectMultipleSessions)(quizId, value), completeCb);
|
|
302
308
|
}
|
|
@@ -15,6 +15,7 @@ exports.changeQuizAllowClearMCSelection = changeQuizAllowClearMCSelection;
|
|
|
15
15
|
exports.changeQuizCalculatorType = changeQuizCalculatorType;
|
|
16
16
|
exports.changeQuizChoiceElimination = changeQuizChoiceElimination;
|
|
17
17
|
exports.changeQuizDefaultRceSettings = changeQuizDefaultRceSettings;
|
|
18
|
+
exports.changeQuizDetectMultipleSessions = changeQuizDetectMultipleSessions;
|
|
18
19
|
exports.changeQuizDisableDocumentAccess = changeQuizDisableDocumentAccess;
|
|
19
20
|
exports.changeQuizEntryEntry = changeQuizEntryEntry;
|
|
20
21
|
exports.changeQuizEntryPoints = changeQuizEntryPoints;
|
|
@@ -267,6 +268,17 @@ function changeResultsFeedbackEnabled(quizId, value) {
|
|
|
267
268
|
}
|
|
268
269
|
};
|
|
269
270
|
}
|
|
271
|
+
function changeQuizDetectMultipleSessions(quizId, value) {
|
|
272
|
+
return {
|
|
273
|
+
type: _quizCommon.QUIZ_MODIFICATION,
|
|
274
|
+
payload: {
|
|
275
|
+
id: quizId,
|
|
276
|
+
modifications: {
|
|
277
|
+
detectMultipleSessions: Boolean(value)
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
270
282
|
|
|
271
283
|
// ==================
|
|
272
284
|
// ==================
|
|
@@ -160,6 +160,7 @@ var Quiz = exports.Quiz = (_dec = (0, _withStateCache["default"])(function (quiz
|
|
|
160
160
|
choiceElimination: false,
|
|
161
161
|
contextId: null,
|
|
162
162
|
defaultRceSettings: null,
|
|
163
|
+
detectMultipleSessions: false,
|
|
163
164
|
disableDocumentAccess: false,
|
|
164
165
|
hasTimeLimit: false,
|
|
165
166
|
id: '0',
|
|
@@ -184,7 +185,6 @@ var Quiz = exports.Quiz = (_dec = (0, _withStateCache["default"])(function (quiz
|
|
|
184
185
|
title: (0, _formatMessage["default"])('Add Title...'),
|
|
185
186
|
filterIpAddress: false,
|
|
186
187
|
filters: (0, _immutable.Map)(),
|
|
187
|
-
valid: true
|
|
188
|
-
detectMultipleSessions: false
|
|
188
|
+
valid: true
|
|
189
189
|
})), (0, _applyDecoratedDescriptor2["default"])(_class.prototype, "getQuizEntries", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "getQuizEntries"), _class.prototype), (0, _applyDecoratedDescriptor2["default"])(_class.prototype, "getWorkingQuizEntries", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "getWorkingQuizEntries"), _class.prototype), (0, _applyDecoratedDescriptor2["default"])(_class.prototype, "getWorkingInstance", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, "getWorkingInstance"), _class.prototype), _class);
|
|
190
190
|
var _default = exports["default"] = Quiz;
|
package/lib/index.js
CHANGED
|
@@ -145,6 +145,7 @@ var _exportNames = {
|
|
|
145
145
|
setSessionTimeLimitInSecondsApi: true,
|
|
146
146
|
setResultsFeedback: true,
|
|
147
147
|
setResultsFeedbackEnabled: true,
|
|
148
|
+
setQuizDetectMultipleSessions: true,
|
|
148
149
|
getExistingQuiz: true,
|
|
149
150
|
confirmSessionStartPage: true,
|
|
150
151
|
submitStudentAccessCode: true,
|
|
@@ -1332,6 +1333,12 @@ Object.defineProperty(exports, "setQuizDefaultRceSettings", {
|
|
|
1332
1333
|
return _quizzes.setQuizDefaultRceSettings;
|
|
1333
1334
|
}
|
|
1334
1335
|
});
|
|
1336
|
+
Object.defineProperty(exports, "setQuizDetectMultipleSessions", {
|
|
1337
|
+
enumerable: true,
|
|
1338
|
+
get: function get() {
|
|
1339
|
+
return _quizzes.setQuizDetectMultipleSessions;
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1335
1342
|
Object.defineProperty(exports, "setQuizDisableDocumentAccess", {
|
|
1336
1343
|
enumerable: true,
|
|
1337
1344
|
get: function get() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "22.7.1-rc.
|
|
3
|
+
"version": "22.7.1-rc.3+f3c524e6e",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@instructure/emotion": "10.14.0",
|
|
47
47
|
"@instructure/grading-utils": "^1.0.0",
|
|
48
48
|
"@instructure/outcomes-ui": "3.2.3",
|
|
49
|
-
"@instructure/quiz-common": "22.7.1-rc.
|
|
50
|
-
"@instructure/quiz-i18n": "22.7.1-rc.
|
|
51
|
-
"@instructure/quiz-interactions": "22.7.1-rc.
|
|
52
|
-
"@instructure/quiz-number-input": "22.7.1-rc.
|
|
53
|
-
"@instructure/quiz-rce": "22.7.1-rc.
|
|
49
|
+
"@instructure/quiz-common": "22.7.1-rc.3+f3c524e6e",
|
|
50
|
+
"@instructure/quiz-i18n": "22.7.1-rc.3+f3c524e6e",
|
|
51
|
+
"@instructure/quiz-interactions": "22.7.1-rc.3+f3c524e6e",
|
|
52
|
+
"@instructure/quiz-number-input": "22.7.1-rc.3+f3c524e6e",
|
|
53
|
+
"@instructure/quiz-rce": "22.7.1-rc.3+f3c524e6e",
|
|
54
54
|
"@instructure/ui-a11y-content": "10.14.0",
|
|
55
55
|
"@instructure/ui-alerts": "10.14.0",
|
|
56
56
|
"@instructure/ui-avatar": "10.14.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"file-saver": "~2.0.5",
|
|
110
110
|
"humps": "^2.0.0",
|
|
111
111
|
"immutable": "^3.8.1",
|
|
112
|
-
"instructure-validations": "22.7.1-rc.
|
|
112
|
+
"instructure-validations": "22.7.1-rc.3+f3c524e6e",
|
|
113
113
|
"ipaddr.js": "^1.5.4",
|
|
114
114
|
"isomorphic-fetch": "^2.2.0",
|
|
115
115
|
"isuuid": "^0.1.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"jquery": "^2.2.3",
|
|
159
159
|
"karma-junit-reporter": "^2.0.1",
|
|
160
160
|
"most-subject": "^5.3.0",
|
|
161
|
-
"quiz-presets": "22.7.1-rc.
|
|
161
|
+
"quiz-presets": "22.7.1-rc.3+f3c524e6e",
|
|
162
162
|
"react": "^16.8.6",
|
|
163
163
|
"react-addons-test-utils": "^15.6.2",
|
|
164
164
|
"react-dom": "^16.8.6",
|
|
@@ -174,5 +174,5 @@
|
|
|
174
174
|
"publishConfig": {
|
|
175
175
|
"access": "public"
|
|
176
176
|
},
|
|
177
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "f3c524e6e4a075cb601255ee8ad651efb993c72a"
|
|
178
178
|
}
|