@instructure/quiz-core 21.0.1 → 21.0.2
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/banks/components/BankEntry/presenter.js +2 -2
- package/es/banks/components/SharingModal/presenter.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
- package/es/common/components/PrintFontSizeModal/presenter.js +2 -2
- package/es/common/components/SDKApp/index.js +4 -4
- package/es/common/components/resources/entry/EntrySave/presenter.js +2 -2
- package/es/common/components/shared/PaginatedCollection/presenter.js +2 -2
- package/es/common/components/shared/TimeUnitsInput/index.js +2 -2
- package/es/common/components/shared/functionality/makeEditable.js +2 -2
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -2
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
- package/lib/banks/components/BankEntry/presenter.js +2 -2
- package/lib/banks/components/SharingModal/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
- package/lib/common/components/PrintFontSizeModal/presenter.js +2 -2
- package/lib/common/components/SDKApp/index.js +4 -4
- package/lib/common/components/resources/entry/EntrySave/presenter.js +2 -2
- package/lib/common/components/shared/PaginatedCollection/presenter.js +2 -2
- package/lib/common/components/shared/TimeUnitsInput/index.js +2 -2
- package/lib/common/components/shared/functionality/makeEditable.js +2 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
- package/package.json +8 -8
|
@@ -212,8 +212,8 @@ export var BankEntry = (_dec = withStyleOverrides(generateStyle, generateCompone
|
|
|
212
212
|
this.props.setShouldClone(false);
|
|
213
213
|
}
|
|
214
214
|
}, {
|
|
215
|
-
key: "
|
|
216
|
-
value: function
|
|
215
|
+
key: "UNSAFE_componentWillMount",
|
|
216
|
+
value: function UNSAFE_componentWillMount() {
|
|
217
217
|
this.props.setShouldClone(false);
|
|
218
218
|
}
|
|
219
219
|
}, {
|
|
@@ -329,8 +329,8 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
}, {
|
|
332
|
-
key: "
|
|
333
|
-
value: function
|
|
332
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
333
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
334
334
|
this.setState({
|
|
335
335
|
accountPermission: nextProps.bank.accountPermission,
|
|
336
336
|
shares: nextProps.sharedBanks
|
|
@@ -87,8 +87,8 @@ export var QuizEntryEditFooter = (_dec = withStyleOverrides(generateStyle, gener
|
|
|
87
87
|
return _this;
|
|
88
88
|
}
|
|
89
89
|
_createClass(QuizEntryEditFooter, [{
|
|
90
|
-
key: "
|
|
91
|
-
value: function
|
|
90
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
91
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
92
92
|
var points = this.getPoints(nextProps);
|
|
93
93
|
this.setState({
|
|
94
94
|
points: points,
|
|
@@ -276,8 +276,8 @@ var QuizEntryEdit = (_dec = withStyleOverrides(generateStyle, generateComponentT
|
|
|
276
276
|
this.props.onEditQuizEntryToggle(this.props.quizEntry.id);
|
|
277
277
|
}
|
|
278
278
|
}, {
|
|
279
|
-
key: "
|
|
280
|
-
value: function
|
|
279
|
+
key: "UNSAFE_componentWillMount",
|
|
280
|
+
value: function UNSAFE_componentWillMount() {
|
|
281
281
|
this.props.setUi(SHOULD_CLONE_ITEM, false);
|
|
282
282
|
}
|
|
283
283
|
}, {
|
|
@@ -85,8 +85,8 @@ export var PrintFontSizeModal = (_dec = withStyleOverrides(generateStyle, genera
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
}, {
|
|
88
|
-
key: "
|
|
89
|
-
value: function
|
|
88
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
89
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
90
90
|
this.setState({
|
|
91
91
|
selectedFontSize: nextProps.persistedPrintFontSize || this.state.selectedFontSize,
|
|
92
92
|
rememberTextSizeSetting: !!this.props.persistedPrintFontSize || this.state.rememberTextSizeSetting
|
|
@@ -65,8 +65,8 @@ export var SDKApp = (_dec = withStyleOverrides(generateStyle, null), _dec(_class
|
|
|
65
65
|
return set('appContainer', selectors);
|
|
66
66
|
}
|
|
67
67
|
}, {
|
|
68
|
-
key: "
|
|
69
|
-
value: function
|
|
68
|
+
key: "UNSAFE_componentWillMount",
|
|
69
|
+
value: function UNSAFE_componentWillMount() {
|
|
70
70
|
var _this$props$rceConfig;
|
|
71
71
|
this.store.dispatch([setAPIEndpoint(this.props.apiEndpoint), setCanvasOrigin((_this$props$rceConfig = this.props.rceConfig) === null || _this$props$rceConfig === void 0 ? void 0 : _this$props$rceConfig.canvasOrigin), this.setAppContainer(this.props.appContainer), setUserToken(this.props.userToken), setOutcomesEndpoint(this.props.outcomesEndpoint), setOutcomesToken(this.props.outcomesToken), setContextUuid(this.props.contextUuid), setExternalAccountUuid(this.props.externalAccountUuid)]);
|
|
72
72
|
if (this.props.itemBankSharingEnabled) {
|
|
@@ -84,8 +84,8 @@ export var SDKApp = (_dec = withStyleOverrides(generateStyle, null), _dec(_class
|
|
|
84
84
|
!this.props.disableAlertLiveRegion && renderAlerts(this.store);
|
|
85
85
|
}
|
|
86
86
|
}, {
|
|
87
|
-
key: "
|
|
88
|
-
value: function
|
|
87
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
88
|
+
value: function UNSAFE_componentWillReceiveProps(newProps) {
|
|
89
89
|
var _newProps$rceConfig, _this$props$rceConfig2;
|
|
90
90
|
if (newProps.apiEndpoint !== this.props.apiEndpoint) {
|
|
91
91
|
this.store.dispatch(setAPIEndpoint(newProps.apiEndpoint));
|
|
@@ -85,8 +85,8 @@ export var EntrySave = /*#__PURE__*/function (_Component) {
|
|
|
85
85
|
return _this;
|
|
86
86
|
}
|
|
87
87
|
_createClass(EntrySave, [{
|
|
88
|
-
key: "
|
|
89
|
-
value: function
|
|
88
|
+
key: "UNSAFE_componentWillMount",
|
|
89
|
+
value: function UNSAFE_componentWillMount() {
|
|
90
90
|
this.props.switchOnEditing(this.props.initialFocusId);
|
|
91
91
|
}
|
|
92
92
|
}, {
|
|
@@ -54,8 +54,8 @@ export var PaginatedCollection = (_dec = withStyleOverrides(generateStyle, gener
|
|
|
54
54
|
this.getPage(this.props.stateKey, this.props.currentPage, this.props.params);
|
|
55
55
|
}
|
|
56
56
|
}, {
|
|
57
|
-
key: "
|
|
58
|
-
value: function
|
|
57
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
58
|
+
value: function UNSAFE_componentWillReceiveProps(_ref) {
|
|
59
59
|
var merge = _ref.merge,
|
|
60
60
|
params = _ref.params,
|
|
61
61
|
set = _ref.set,
|
|
@@ -179,8 +179,8 @@ export var TimeUnitsInput = /*#__PURE__*/function (_Component) {
|
|
|
179
179
|
return _this;
|
|
180
180
|
}
|
|
181
181
|
_createClass(TimeUnitsInput, [{
|
|
182
|
-
key: "
|
|
183
|
-
value: function
|
|
182
|
+
key: "UNSAFE_componentWillMount",
|
|
183
|
+
value: function UNSAFE_componentWillMount() {
|
|
184
184
|
var _breakdownSeconds5 = breakdownSeconds(this.props.timeInSeconds, this.props.includeDays),
|
|
185
185
|
days = _breakdownSeconds5.days,
|
|
186
186
|
hours = _breakdownSeconds5.hours,
|
|
@@ -55,8 +55,8 @@ var giveEditProps = function giveEditProps(ComposedComponent) {
|
|
|
55
55
|
return _this;
|
|
56
56
|
}
|
|
57
57
|
_createClass(_Class, [{
|
|
58
|
-
key: "
|
|
59
|
-
value: function
|
|
58
|
+
key: "UNSAFE_componentWillMount",
|
|
59
|
+
value: function UNSAFE_componentWillMount() {
|
|
60
60
|
this._uniqId = uniqueId("".concat(ComposedComponent.displayName, "_"));
|
|
61
61
|
}
|
|
62
62
|
}, {
|
|
@@ -83,8 +83,8 @@ var ExtraTimeMultiplier = /*#__PURE__*/function (_withI18nSupport) {
|
|
|
83
83
|
return _this;
|
|
84
84
|
}
|
|
85
85
|
_createClass(ExtraTimeMultiplier, [{
|
|
86
|
-
key: "
|
|
87
|
-
value: function
|
|
86
|
+
key: "UNSAFE_componentWillMount",
|
|
87
|
+
value: function UNSAFE_componentWillMount() {
|
|
88
88
|
var multiplierValue = Math.max(this.props.timerMultiplierValue, this.props.minMultiplier);
|
|
89
89
|
var multiplierValueString = this.formatDecimal2FractionDigits(multiplierValue);
|
|
90
90
|
this.setState({
|
|
@@ -40,8 +40,8 @@ export var QuizAndItemAnalysis = (_dec = withStyleOverrides(generateStyle, gener
|
|
|
40
40
|
this.getAnalyses(this.props.activeQuizId);
|
|
41
41
|
}
|
|
42
42
|
}, {
|
|
43
|
-
key: "
|
|
44
|
-
value: function
|
|
43
|
+
key: "UNSAFE_componentWillUpdate",
|
|
44
|
+
value: function UNSAFE_componentWillUpdate(nextProps) {
|
|
45
45
|
if (this.props.activeQuizId !== nextProps.activeQuizId) {
|
|
46
46
|
this.getAnalyses(nextProps.activeQuizId);
|
|
47
47
|
}
|
|
@@ -219,8 +219,8 @@ var BankEntry = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _th
|
|
|
219
219
|
this.props.setShouldClone(false);
|
|
220
220
|
}
|
|
221
221
|
}, {
|
|
222
|
-
key: "
|
|
223
|
-
value: function
|
|
222
|
+
key: "UNSAFE_componentWillMount",
|
|
223
|
+
value: function UNSAFE_componentWillMount() {
|
|
224
224
|
this.props.setShouldClone(false);
|
|
225
225
|
}
|
|
226
226
|
}, {
|
|
@@ -337,8 +337,8 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
}, {
|
|
340
|
-
key: "
|
|
341
|
-
value: function
|
|
340
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
341
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
342
342
|
this.setState({
|
|
343
343
|
accountPermission: nextProps.bank.accountPermission,
|
|
344
344
|
shares: nextProps.sharedBanks
|
|
@@ -94,8 +94,8 @@ var QuizEntryEditFooter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
94
94
|
return _this;
|
|
95
95
|
}
|
|
96
96
|
(0, _createClass2.default)(QuizEntryEditFooter, [{
|
|
97
|
-
key: "
|
|
98
|
-
value: function
|
|
97
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
98
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
99
99
|
var points = this.getPoints(nextProps);
|
|
100
100
|
this.setState({
|
|
101
101
|
points: points,
|
|
@@ -284,8 +284,8 @@ var QuizEntryEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
284
284
|
this.props.onEditQuizEntryToggle(this.props.quizEntry.id);
|
|
285
285
|
}
|
|
286
286
|
}, {
|
|
287
|
-
key: "
|
|
288
|
-
value: function
|
|
287
|
+
key: "UNSAFE_componentWillMount",
|
|
288
|
+
value: function UNSAFE_componentWillMount() {
|
|
289
289
|
this.props.setUi(_quizCommon.SHOULD_CLONE_ITEM, false);
|
|
290
290
|
}
|
|
291
291
|
}, {
|
|
@@ -92,8 +92,8 @@ var PrintFontSizeModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.def
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
}, {
|
|
95
|
-
key: "
|
|
96
|
-
value: function
|
|
95
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
96
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
97
97
|
this.setState({
|
|
98
98
|
selectedFontSize: nextProps.persistedPrintFontSize || this.state.selectedFontSize,
|
|
99
99
|
rememberTextSizeSetting: !!this.props.persistedPrintFontSize || this.state.rememberTextSizeSetting
|
|
@@ -72,8 +72,8 @@ var SDKApp = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, null),
|
|
|
72
72
|
return (0, _ui.set)('appContainer', selectors);
|
|
73
73
|
}
|
|
74
74
|
}, {
|
|
75
|
-
key: "
|
|
76
|
-
value: function
|
|
75
|
+
key: "UNSAFE_componentWillMount",
|
|
76
|
+
value: function UNSAFE_componentWillMount() {
|
|
77
77
|
var _this$props$rceConfig;
|
|
78
78
|
this.store.dispatch([(0, _config.setAPIEndpoint)(this.props.apiEndpoint), (0, _config.setCanvasOrigin)((_this$props$rceConfig = this.props.rceConfig) === null || _this$props$rceConfig === void 0 ? void 0 : _this$props$rceConfig.canvasOrigin), this.setAppContainer(this.props.appContainer), (0, _config.setUserToken)(this.props.userToken), (0, _outcomes.setOutcomesEndpoint)(this.props.outcomesEndpoint), (0, _outcomes.setOutcomesToken)(this.props.outcomesToken), (0, _outcomes.setContextUuid)(this.props.contextUuid), (0, _outcomes.setExternalAccountUuid)(this.props.externalAccountUuid)]);
|
|
79
79
|
if (this.props.itemBankSharingEnabled) {
|
|
@@ -91,8 +91,8 @@ var SDKApp = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, null),
|
|
|
91
91
|
!this.props.disableAlertLiveRegion && (0, _renderAlerts.renderAlerts)(this.store);
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
|
-
key: "
|
|
95
|
-
value: function
|
|
94
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
95
|
+
value: function UNSAFE_componentWillReceiveProps(newProps) {
|
|
96
96
|
var _newProps$rceConfig, _this$props$rceConfig2;
|
|
97
97
|
if (newProps.apiEndpoint !== this.props.apiEndpoint) {
|
|
98
98
|
this.store.dispatch((0, _config.setAPIEndpoint)(newProps.apiEndpoint));
|
|
@@ -93,8 +93,8 @@ var EntrySave = /*#__PURE__*/function (_Component) {
|
|
|
93
93
|
return _this;
|
|
94
94
|
}
|
|
95
95
|
(0, _createClass2.default)(EntrySave, [{
|
|
96
|
-
key: "
|
|
97
|
-
value: function
|
|
96
|
+
key: "UNSAFE_componentWillMount",
|
|
97
|
+
value: function UNSAFE_componentWillMount() {
|
|
98
98
|
this.props.switchOnEditing(this.props.initialFocusId);
|
|
99
99
|
}
|
|
100
100
|
}, {
|
|
@@ -62,8 +62,8 @@ var PaginatedCollection = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
62
62
|
this.getPage(this.props.stateKey, this.props.currentPage, this.props.params);
|
|
63
63
|
}
|
|
64
64
|
}, {
|
|
65
|
-
key: "
|
|
66
|
-
value: function
|
|
65
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
66
|
+
value: function UNSAFE_componentWillReceiveProps(_ref) {
|
|
67
67
|
var merge = _ref.merge,
|
|
68
68
|
params = _ref.params,
|
|
69
69
|
set = _ref.set,
|
|
@@ -185,8 +185,8 @@ var TimeUnitsInput = /*#__PURE__*/function (_Component) {
|
|
|
185
185
|
return _this;
|
|
186
186
|
}
|
|
187
187
|
(0, _createClass2.default)(TimeUnitsInput, [{
|
|
188
|
-
key: "
|
|
189
|
-
value: function
|
|
188
|
+
key: "UNSAFE_componentWillMount",
|
|
189
|
+
value: function UNSAFE_componentWillMount() {
|
|
190
190
|
var _breakdownSeconds5 = (0, _index.breakdownSeconds)(this.props.timeInSeconds, this.props.includeDays),
|
|
191
191
|
days = _breakdownSeconds5.days,
|
|
192
192
|
hours = _breakdownSeconds5.hours,
|
|
@@ -68,8 +68,8 @@ var giveEditProps = function giveEditProps(ComposedComponent) {
|
|
|
68
68
|
return _this;
|
|
69
69
|
}
|
|
70
70
|
(0, _createClass2.default)(_Class, [{
|
|
71
|
-
key: "
|
|
72
|
-
value: function
|
|
71
|
+
key: "UNSAFE_componentWillMount",
|
|
72
|
+
value: function UNSAFE_componentWillMount() {
|
|
73
73
|
this._uniqId = (0, _uniqueId.default)("".concat(ComposedComponent.displayName, "_"));
|
|
74
74
|
}
|
|
75
75
|
}, {
|
package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js
CHANGED
|
@@ -91,8 +91,8 @@ var ExtraTimeMultiplier = /*#__PURE__*/function (_withI18nSupport) {
|
|
|
91
91
|
return _this;
|
|
92
92
|
}
|
|
93
93
|
(0, _createClass2.default)(ExtraTimeMultiplier, [{
|
|
94
|
-
key: "
|
|
95
|
-
value: function
|
|
94
|
+
key: "UNSAFE_componentWillMount",
|
|
95
|
+
value: function UNSAFE_componentWillMount() {
|
|
96
96
|
var multiplierValue = Math.max(this.props.timerMultiplierValue, this.props.minMultiplier);
|
|
97
97
|
var multiplierValueString = this.formatDecimal2FractionDigits(multiplierValue);
|
|
98
98
|
this.setState({
|
|
@@ -47,8 +47,8 @@ var QuizAndItemAnalysis = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
47
47
|
this.getAnalyses(this.props.activeQuizId);
|
|
48
48
|
}
|
|
49
49
|
}, {
|
|
50
|
-
key: "
|
|
51
|
-
value: function
|
|
50
|
+
key: "UNSAFE_componentWillUpdate",
|
|
51
|
+
value: function UNSAFE_componentWillUpdate(nextProps) {
|
|
52
52
|
if (this.props.activeQuizId !== nextProps.activeQuizId) {
|
|
53
53
|
this.getAnalyses(nextProps.activeQuizId);
|
|
54
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -111,12 +111,12 @@
|
|
|
111
111
|
"store": "^1.3.20",
|
|
112
112
|
"striptags": "^2.0.0",
|
|
113
113
|
"uuid": "^3.2.1",
|
|
114
|
-
"@instructure/quiz-common": "21.0.
|
|
115
|
-
"@instructure/quiz-i18n": "21.0.
|
|
116
|
-
"@instructure/quiz-
|
|
117
|
-
"@instructure/quiz-
|
|
118
|
-
"@instructure/quiz-
|
|
119
|
-
"instructure-validations": "21.0.
|
|
114
|
+
"@instructure/quiz-common": "21.0.2",
|
|
115
|
+
"@instructure/quiz-i18n": "21.0.2",
|
|
116
|
+
"@instructure/quiz-interactions": "21.0.2",
|
|
117
|
+
"@instructure/quiz-rce": "21.0.2",
|
|
118
|
+
"@instructure/quiz-number-input": "21.0.2",
|
|
119
|
+
"instructure-validations": "21.0.2"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@instructure/ui-axe-check": "^9.11.1",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"sinon": "^6.1.3",
|
|
147
147
|
"sinon-chai": "^3.3.0",
|
|
148
148
|
"@instructure/quiz-scripts": "21.0.0",
|
|
149
|
-
"quiz-presets": "21.0.
|
|
149
|
+
"quiz-presets": "21.0.2"
|
|
150
150
|
},
|
|
151
151
|
"peerDependencies": {
|
|
152
152
|
"react": "^15 || ^16"
|