@instructure/quiz-core 21.0.0 → 21.0.1-rc.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/BanksList/presenter.js +1 -1
- 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/BanksList/presenter.js +1 -1
- 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 +34 -33
|
@@ -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
|
}, {
|
|
@@ -446,7 +446,7 @@ export var BanksList = (_dec = withStyleOverrides(generateStyle, generateCompone
|
|
|
446
446
|
}, jsx(Table.Row, null, this.renderTableSortHeader('name', t('Name')), this.renderTableSortHeader('updated_at', t('Updated')), jsx(Table.ColHeader, {
|
|
447
447
|
id: "header-num-questions",
|
|
448
448
|
width: "1"
|
|
449
|
-
}, t('Questions')), this.renderTableSortHeader('last_used', t('Last Used')), this.renderTableSortHeader('created_at', t('Created')),
|
|
449
|
+
}, t('Questions')), this.renderTableSortHeader('last_used', t('Last Used')), this.renderTableSortHeader('created_at', t('Created')), jsx(Table.ColHeader, {
|
|
450
450
|
id: "header-option-links",
|
|
451
451
|
width: "1"
|
|
452
452
|
}, jsx(ScreenReaderContent, null, t('Bank option links'))))), jsx(Table.Body, null, (this.props.banks.toArray() || []).map(function (bank) {
|
|
@@ -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
|
}, {
|
|
@@ -454,7 +454,7 @@ var BanksList = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _th
|
|
|
454
454
|
}, (0, _emotion.jsx)(_uiTable.Table.Row, null, this.renderTableSortHeader('name', (0, _formatMessage.default)('Name')), this.renderTableSortHeader('updated_at', (0, _formatMessage.default)('Updated')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
455
455
|
id: "header-num-questions",
|
|
456
456
|
width: "1"
|
|
457
|
-
}, (0, _formatMessage.default)('Questions')), this.renderTableSortHeader('last_used', (0, _formatMessage.default)('Last Used')), this.renderTableSortHeader('created_at', (0, _formatMessage.default)('Created')),
|
|
457
|
+
}, (0, _formatMessage.default)('Questions')), this.renderTableSortHeader('last_used', (0, _formatMessage.default)('Last Used')), this.renderTableSortHeader('created_at', (0, _formatMessage.default)('Created')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
458
458
|
id: "header-option-links",
|
|
459
459
|
width: "1"
|
|
460
460
|
}, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Bank option links'))))), (0, _emotion.jsx)(_uiTable.Table.Body, null, (this.props.banks.toArray() || []).map(function (bank) {
|
|
@@ -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.1-rc.2+ea7f5f447",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -10,6 +10,27 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://gerrit.instructure.com/quizzes-ui.git"
|
|
12
12
|
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"clean": "ui-build --clean",
|
|
15
|
+
"build": "build-if-changed",
|
|
16
|
+
"build:all": "ui-build --modules es,cjs",
|
|
17
|
+
"build:watch": "ui-build --watch",
|
|
18
|
+
"extract": "extract-translations",
|
|
19
|
+
"lint": "ui-test --lint",
|
|
20
|
+
"lint:fix": "ui-test --lint --fix",
|
|
21
|
+
"eslint:fix": "eslint --fix .",
|
|
22
|
+
"prelint": "pnpm build",
|
|
23
|
+
"pretest": "pnpm build",
|
|
24
|
+
"test": "pnpm test:karma",
|
|
25
|
+
"test:karma": "ui-test",
|
|
26
|
+
"test:watch": "ui-test --watch",
|
|
27
|
+
"snyk:monitor": "snyk monitor",
|
|
28
|
+
"postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; pnpm postbuild:errorImage",
|
|
29
|
+
"postbuild:all": "pnpm postbuild",
|
|
30
|
+
"postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
|
|
31
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
32
|
+
"typecheck": "tsc --noEmit"
|
|
33
|
+
},
|
|
13
34
|
"keywords": [
|
|
14
35
|
"react",
|
|
15
36
|
"react-component",
|
|
@@ -25,6 +46,11 @@
|
|
|
25
46
|
"@instructure/emotion": "^9.11.1",
|
|
26
47
|
"@instructure/grading-utils": "^1.0.0",
|
|
27
48
|
"@instructure/outcomes-ui": "^3.2.2",
|
|
49
|
+
"@instructure/quiz-common": "21.0.1-rc.2+ea7f5f447",
|
|
50
|
+
"@instructure/quiz-i18n": "21.0.1-rc.2+ea7f5f447",
|
|
51
|
+
"@instructure/quiz-interactions": "21.0.1-rc.2+ea7f5f447",
|
|
52
|
+
"@instructure/quiz-number-input": "21.0.1-rc.2+ea7f5f447",
|
|
53
|
+
"@instructure/quiz-rce": "21.0.1-rc.2+ea7f5f447",
|
|
28
54
|
"@instructure/ui-a11y-content": "^9.11.1",
|
|
29
55
|
"@instructure/ui-alerts": "^9.11.1",
|
|
30
56
|
"@instructure/ui-avatar": "^9.11.1",
|
|
@@ -83,6 +109,7 @@
|
|
|
83
109
|
"file-saver": "~2.0.5",
|
|
84
110
|
"humps": "^2.0.0",
|
|
85
111
|
"immutable": "^3.8.1",
|
|
112
|
+
"instructure-validations": "21.0.1-rc.2+ea7f5f447",
|
|
86
113
|
"ipaddr.js": "^1.5.4",
|
|
87
114
|
"isomorphic-fetch": "^2.2.0",
|
|
88
115
|
"isuuid": "^0.1.0",
|
|
@@ -110,15 +137,10 @@
|
|
|
110
137
|
"scriptjs": "^2.5.8",
|
|
111
138
|
"store": "^1.3.20",
|
|
112
139
|
"striptags": "^2.0.0",
|
|
113
|
-
"uuid": "^3.2.1"
|
|
114
|
-
"@instructure/quiz-common": "21.0.0",
|
|
115
|
-
"@instructure/quiz-interactions": "21.0.0",
|
|
116
|
-
"@instructure/quiz-i18n": "21.0.0",
|
|
117
|
-
"@instructure/quiz-rce": "21.0.0",
|
|
118
|
-
"instructure-validations": "21.0.0",
|
|
119
|
-
"@instructure/quiz-number-input": "21.0.0"
|
|
140
|
+
"uuid": "^3.2.1"
|
|
120
141
|
},
|
|
121
142
|
"devDependencies": {
|
|
143
|
+
"@instructure/quiz-scripts": "21.0.0",
|
|
122
144
|
"@instructure/ui-axe-check": "^9.11.1",
|
|
123
145
|
"@instructure/ui-babel-preset": "^7.22.1",
|
|
124
146
|
"@instructure/ui-test-utils": "^7.22.1",
|
|
@@ -137,6 +159,7 @@
|
|
|
137
159
|
"jquery": "^2.2.3",
|
|
138
160
|
"karma-junit-reporter": "^2.0.1",
|
|
139
161
|
"most-subject": "^5.3.0",
|
|
162
|
+
"quiz-presets": "21.0.1-rc.2+ea7f5f447",
|
|
140
163
|
"react": "^16.8.6",
|
|
141
164
|
"react-addons-test-utils": "^15.6.2",
|
|
142
165
|
"react-dom": "^16.8.6",
|
|
@@ -144,9 +167,7 @@
|
|
|
144
167
|
"redux-mock-store": "^1.3.0",
|
|
145
168
|
"request": "^2.74.0",
|
|
146
169
|
"sinon": "^6.1.3",
|
|
147
|
-
"sinon-chai": "^3.3.0"
|
|
148
|
-
"@instructure/quiz-scripts": "21.0.0",
|
|
149
|
-
"quiz-presets": "21.0.0"
|
|
170
|
+
"sinon-chai": "^3.3.0"
|
|
150
171
|
},
|
|
151
172
|
"peerDependencies": {
|
|
152
173
|
"react": "^15 || ^16"
|
|
@@ -154,25 +175,5 @@
|
|
|
154
175
|
"publishConfig": {
|
|
155
176
|
"access": "public"
|
|
156
177
|
},
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
"build": "build-if-changed",
|
|
160
|
-
"build:all": "ui-build --modules es,cjs",
|
|
161
|
-
"build:watch": "ui-build --watch",
|
|
162
|
-
"extract": "extract-translations",
|
|
163
|
-
"lint": "ui-test --lint",
|
|
164
|
-
"lint:fix": "ui-test --lint --fix",
|
|
165
|
-
"eslint:fix": "eslint --fix .",
|
|
166
|
-
"prelint": "pnpm build",
|
|
167
|
-
"pretest": "pnpm build",
|
|
168
|
-
"test": "pnpm test:karma",
|
|
169
|
-
"test:karma": "ui-test",
|
|
170
|
-
"test:watch": "ui-test --watch",
|
|
171
|
-
"snyk:monitor": "snyk monitor",
|
|
172
|
-
"postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; pnpm postbuild:errorImage",
|
|
173
|
-
"postbuild:all": "pnpm postbuild",
|
|
174
|
-
"postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
|
|
175
|
-
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
176
|
-
"typecheck": "tsc --noEmit"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
178
|
+
"gitHead": "ea7f5f447468891ba1903586059ba55f52bdf9c9"
|
|
179
|
+
}
|