@instructure/quiz-core 17.43.0 → 17.43.1-rc.1
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 +1 -0
- package/es/common/records/QuizSession.js +1 -0
- package/es/index.js +1 -1
- package/lib/building/api/quizzes.js +7 -0
- package/lib/common/actions/modifications.js +13 -0
- package/lib/common/records/Quiz.js +1 -0
- package/lib/common/records/QuizSession.js +1 -0
- package/lib/index.js +7 -0
- package/package.json +10 -10
|
@@ -2,7 +2,7 @@ import { Map } from 'immutable';
|
|
|
2
2
|
import { DO_NOTHING, NEW_QUIZ_ID, QUIZ_SAVE_CALL, PARENT_TYPE_BANK, PARENT_TYPE_QUIZ, PARENT_TYPE_QUIZ_SESSION } from '@instructure/quiz-common';
|
|
3
3
|
import Fetcher from "../../common/util/Fetcher.js";
|
|
4
4
|
import { getQTIInfo } from "./qtiImports.js";
|
|
5
|
-
import { changeQuizAllowBacktracking, changeQuizHasTimeLimit, changeQuizOneAtATimeType, changeQuizShuffleQuestions, changeQuizShuffleAnswers, changeQuizRequireStudentAccessCode, changeQuizStudentAccessCode, changeSessionTimeLimitInSeconds, changeQuizFilterIpAddress, changeQuizIpFilters, changeQuizCalculatorType } from "../../common/actions/modifications.js";
|
|
5
|
+
import { changeQuizAllowBacktracking, changeQuizAllowClearMCSelection, changeQuizHasTimeLimit, changeQuizOneAtATimeType, changeQuizShuffleQuestions, changeQuizShuffleAnswers, changeQuizRequireStudentAccessCode, changeQuizStudentAccessCode, changeSessionTimeLimitInSeconds, changeQuizFilterIpAddress, changeQuizIpFilters, changeQuizCalculatorType } from "../../common/actions/modifications.js";
|
|
6
6
|
import { handleQuizResponse } from "../../common/api/callHandlers.js";
|
|
7
7
|
import { getUploadUrl, sendFileToS3 } from "../../common/api/fileUpload.js";
|
|
8
8
|
import { interactionTypeFetch } from "../../common/api/interactionTypes.js";
|
|
@@ -157,6 +157,11 @@ function setQuizProperty(quizId, properties, action) {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
export function setAllowClearMCSelection(quizId, value) {
|
|
161
|
+
return setQuizProperty(quizId, {
|
|
162
|
+
allow_clear_mc_selection: Boolean(value)
|
|
163
|
+
}, changeQuizAllowClearMCSelection(quizId, value));
|
|
164
|
+
}
|
|
160
165
|
export function setQuizShuffleQuestions(quizId, value) {
|
|
161
166
|
return setQuizProperty(quizId, {
|
|
162
167
|
shuffle_questions: Boolean(value)
|
|
@@ -38,6 +38,17 @@ export function changeQuizInstructions(quizId, newInstructions) {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
+
export function changeQuizAllowClearMCSelection(quizId, value) {
|
|
42
|
+
return {
|
|
43
|
+
type: QUIZ_MODIFICATION,
|
|
44
|
+
payload: {
|
|
45
|
+
id: quizId,
|
|
46
|
+
modifications: {
|
|
47
|
+
allowClearMcSelection: Boolean(value)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
41
52
|
export function changeQuizShuffleQuestions(quizId, value) {
|
|
42
53
|
return {
|
|
43
54
|
type: QUIZ_MODIFICATION,
|
package/es/index.js
CHANGED
|
@@ -95,7 +95,7 @@ export { isNewRCEEnabled } from "./common/util/rceChecker.js"; // APIs
|
|
|
95
95
|
export { createQuizEntryRegrade } from "./grading/api/quizEntryRegrades.js";
|
|
96
96
|
export { getQuizEntry } from "./building/api/quizEntries.js";
|
|
97
97
|
export { getItem } from "./building/api/items.js";
|
|
98
|
-
export { interactionFileUpload, setOneAtATimeType, quizBuildingSession, saveQuizChange, setBacktracking, setCalculatorType, setFilterIpAddress, setIpFiltersApi, setIpFiltersUi, setQuizShuffleAnswers, setQuizShuffleQuestions, setRequireStudentAccessCode, setStudentAccessCodeApi, setStudentAccessCodeUi, setQuizHasTimeLimit, setSessionTimeLimitInSecondsUi, setSessionTimeLimitInSecondsApi } from "./building/api/quizzes.js";
|
|
98
|
+
export { interactionFileUpload, setOneAtATimeType, quizBuildingSession, saveQuizChange, setBacktracking, setCalculatorType, setAllowClearMCSelection, setFilterIpAddress, setIpFiltersApi, setIpFiltersUi, setQuizShuffleAnswers, setQuizShuffleQuestions, setRequireStudentAccessCode, setStudentAccessCodeApi, setStudentAccessCodeUi, setQuizHasTimeLimit, setSessionTimeLimitInSecondsUi, setSessionTimeLimitInSecondsApi } from "./building/api/quizzes.js";
|
|
99
99
|
export { getExistingQuiz } from "./common/api/quizzes.js";
|
|
100
100
|
export { confirmSessionStartPage, submitStudentAccessCode, nextQuestion, submitQuiz } from "./taking/api/taking.js";
|
|
101
101
|
export { pinSessionItem } from "./common/api/quizSessions.js";
|
|
@@ -10,6 +10,7 @@ exports.saveQuizChange = saveQuizChange;
|
|
|
10
10
|
exports.startNewQuiz = startNewQuiz;
|
|
11
11
|
exports.getExistingQuizAndItemsForBuilding = getExistingQuizAndItemsForBuilding;
|
|
12
12
|
exports.interactionFileUpload = interactionFileUpload;
|
|
13
|
+
exports.setAllowClearMCSelection = setAllowClearMCSelection;
|
|
13
14
|
exports.setQuizShuffleQuestions = setQuizShuffleQuestions;
|
|
14
15
|
exports.setQuizShuffleAnswers = setQuizShuffleAnswers;
|
|
15
16
|
exports.setRequireStudentAccessCode = setRequireStudentAccessCode;
|
|
@@ -197,6 +198,12 @@ function setQuizProperty(quizId, properties, action) {
|
|
|
197
198
|
};
|
|
198
199
|
}
|
|
199
200
|
|
|
201
|
+
function setAllowClearMCSelection(quizId, value) {
|
|
202
|
+
return setQuizProperty(quizId, {
|
|
203
|
+
allow_clear_mc_selection: Boolean(value)
|
|
204
|
+
}, (0, _modifications.changeQuizAllowClearMCSelection)(quizId, value));
|
|
205
|
+
}
|
|
206
|
+
|
|
200
207
|
function setQuizShuffleQuestions(quizId, value) {
|
|
201
208
|
return setQuizProperty(quizId, {
|
|
202
209
|
shuffle_questions: Boolean(value)
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.changeQuizTitle = changeQuizTitle;
|
|
7
7
|
exports.changeQuizInstructions = changeQuizInstructions;
|
|
8
|
+
exports.changeQuizAllowClearMCSelection = changeQuizAllowClearMCSelection;
|
|
8
9
|
exports.changeQuizShuffleQuestions = changeQuizShuffleQuestions;
|
|
9
10
|
exports.changeQuizShuffleAnswers = changeQuizShuffleAnswers;
|
|
10
11
|
exports.changeQuizRequireStudentAccessCode = changeQuizRequireStudentAccessCode;
|
|
@@ -84,6 +85,18 @@ function changeQuizInstructions(quizId, newInstructions) {
|
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
function changeQuizAllowClearMCSelection(quizId, value) {
|
|
89
|
+
return {
|
|
90
|
+
type: _quizCommon.QUIZ_MODIFICATION,
|
|
91
|
+
payload: {
|
|
92
|
+
id: quizId,
|
|
93
|
+
modifications: {
|
|
94
|
+
allowClearMcSelection: Boolean(value)
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
87
100
|
function changeQuizShuffleQuestions(quizId, value) {
|
|
88
101
|
return {
|
|
89
102
|
type: _quizCommon.QUIZ_MODIFICATION,
|
package/lib/index.js
CHANGED
|
@@ -114,6 +114,7 @@ var _exportNames = {
|
|
|
114
114
|
saveQuizChange: true,
|
|
115
115
|
setBacktracking: true,
|
|
116
116
|
setCalculatorType: true,
|
|
117
|
+
setAllowClearMCSelection: true,
|
|
117
118
|
setFilterIpAddress: true,
|
|
118
119
|
setIpFiltersApi: true,
|
|
119
120
|
setIpFiltersUi: true,
|
|
@@ -843,6 +844,12 @@ Object.defineProperty(exports, "setCalculatorType", {
|
|
|
843
844
|
return _quizzes.setCalculatorType;
|
|
844
845
|
}
|
|
845
846
|
});
|
|
847
|
+
Object.defineProperty(exports, "setAllowClearMCSelection", {
|
|
848
|
+
enumerable: true,
|
|
849
|
+
get: function get() {
|
|
850
|
+
return _quizzes.setAllowClearMCSelection;
|
|
851
|
+
}
|
|
852
|
+
});
|
|
846
853
|
Object.defineProperty(exports, "setFilterIpAddress", {
|
|
847
854
|
enumerable: true,
|
|
848
855
|
get: function get() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.43.
|
|
3
|
+
"version": "17.43.1-rc.1+3873ce607",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/outcomes-ui": "^2.1.2",
|
|
44
|
-
"@instructure/quiz-common": "
|
|
45
|
-
"@instructure/quiz-i18n": "
|
|
46
|
-
"@instructure/quiz-interactions": "
|
|
47
|
-
"@instructure/quiz-number-input": "
|
|
48
|
-
"@instructure/quiz-rce": "
|
|
44
|
+
"@instructure/quiz-common": "17.43.1-rc.1+3873ce607",
|
|
45
|
+
"@instructure/quiz-i18n": "17.43.1-rc.1+3873ce607",
|
|
46
|
+
"@instructure/quiz-interactions": "17.43.1-rc.1+3873ce607",
|
|
47
|
+
"@instructure/quiz-number-input": "17.43.1-rc.1+3873ce607",
|
|
48
|
+
"@instructure/quiz-rce": "17.43.1-rc.1+3873ce607",
|
|
49
49
|
"@instructure/ui-a11y-content": "^7.20.0",
|
|
50
50
|
"@instructure/ui-alerts": "^7.20.0",
|
|
51
51
|
"@instructure/ui-avatar": "^7.20.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"eventemitter3": "^3.1.0",
|
|
107
107
|
"humps": "^2.0.0",
|
|
108
108
|
"immutable": "^3.8.1",
|
|
109
|
-
"instructure-validations": "
|
|
109
|
+
"instructure-validations": "17.43.1-rc.1+3873ce607",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"uuid": "^3.2.1"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
|
-
"@instructure/quiz-scripts": "
|
|
140
|
+
"@instructure/quiz-scripts": "17.43.1-rc.1+3873ce607",
|
|
141
141
|
"@instructure/ui-axe-check": "^7.20.0",
|
|
142
142
|
"@instructure/ui-babel-preset": "^7.20.0",
|
|
143
143
|
"@instructure/ui-karma-config": "^7.20.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"intl": "^1.2.4",
|
|
157
157
|
"jquery": "^2.2.3",
|
|
158
158
|
"most-subject": "^5.3.0",
|
|
159
|
-
"quiz-presets": "
|
|
159
|
+
"quiz-presets": "17.43.1-rc.1+3873ce607",
|
|
160
160
|
"react": "^16.8.6",
|
|
161
161
|
"react-addons-test-utils": "^15.6.2",
|
|
162
162
|
"react-dom": "^16.8.6",
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
"publishConfig": {
|
|
173
173
|
"access": "public"
|
|
174
174
|
},
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "3873ce60778f0c8bd3455eafaaac318efeb8ee18"
|
|
176
176
|
}
|