@instructure/quiz-core 17.52.1-rc.6 → 17.52.1-rc.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/es/building/components/resources/quizEntry/QuizEntry/index.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +3 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +34 -7
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +3 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +34 -6
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +1 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +3 -1
- package/package.json +9 -9
|
@@ -47,7 +47,8 @@ export var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
47
47
|
shouldClone: state.getIn(['ui', SHOULD_CLONE_ITEM]),
|
|
48
48
|
tagAssociations: tagAssociations,
|
|
49
49
|
useBankTags: useBankTags,
|
|
50
|
-
workingEntry: entry.getWorkingInstance()
|
|
50
|
+
workingEntry: entry.getWorkingInstance(),
|
|
51
|
+
workingQuizEntry: props.quizEntry.getWorkingInstance()
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
var dispatchToProps = {
|
|
@@ -203,7 +203,7 @@ export var QuizEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
203
203
|
value: function renderBank() {
|
|
204
204
|
var QuizEntryComponent = this.props.isEditing ? QuizEntryEdit : QuizEntryShow;
|
|
205
205
|
var QuizEntryBankComponent = this.props.isEditing ? QuizEntryBankEdit : QuizEntryBankShow;
|
|
206
|
-
var bank = this.props.
|
|
206
|
+
var bank = this.props.workingQuizEntry.getEntry();
|
|
207
207
|
var bankProps = {
|
|
208
208
|
title: bank.title,
|
|
209
209
|
entry: bank,
|
|
@@ -241,7 +241,7 @@ export var QuizEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
241
241
|
var quizEntryProps = Object.assign({}, this.props, overrideProps);
|
|
242
242
|
var QuizEntryComponent = this.isEditing() ? QuizEntryEdit : QuizEntryShow;
|
|
243
243
|
var itemProps = this.propsForItem();
|
|
244
|
-
var mergedItem = this.isEditing() ? this.props.
|
|
244
|
+
var mergedItem = this.isEditing() ? this.props.workingQuizEntry.getItem() : itemProps.entry;
|
|
245
245
|
var ItemComponent = this.isOverriding() ? ItemOverride : ItemShow;
|
|
246
246
|
return /*#__PURE__*/React.createElement(QuizEntryComponent, quizEntryProps, /*#__PURE__*/React.createElement(WarningWrapper, Object.assign({}, bankEntryWarningWrapperProps, {
|
|
247
247
|
disableChildren: this.isEditing() && !this.isOverridable()
|
|
@@ -369,6 +369,7 @@ export var QuizEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
369
369
|
tagAssociations: ImmutablePropTypes.listOf(ImmutablePropTypes.map),
|
|
370
370
|
useBankTags: PropTypes.bool,
|
|
371
371
|
workingEntry: ImmutablePropTypes.record.isRequired,
|
|
372
|
+
workingQuizEntry: ImmutablePropTypes.record.isRequired,
|
|
372
373
|
editQuizEntryToggle: PropTypes.bool.isRequired,
|
|
373
374
|
onEditQuizEntryToggle: PropTypes.func.isRequired,
|
|
374
375
|
handleValidationErrorsFromApi: PropTypes.func.isRequired,
|
|
@@ -12,6 +12,7 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
13
13
|
import partial from 'lodash/partial';
|
|
14
14
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
15
|
+
import { Button } from '@instructure/ui-buttons';
|
|
15
16
|
import { TextInput } from '@instructure/ui-text-input';
|
|
16
17
|
import { themeable } from '@instructure/ui-themeable';
|
|
17
18
|
import { FillBlankInteractionType } from '@instructure/quiz-interactions';
|
|
@@ -21,7 +22,7 @@ import { convertFITBtoRich } from "../../../../../../common/util/fitbCopyHelper.
|
|
|
21
22
|
import PositionBox from "../../../../../../common/components/resources/positionBox/PositionBox.js";
|
|
22
23
|
import Item from "../../../../../../common/records/Item.js";
|
|
23
24
|
import ActionButtons from "../../../ActionButtons/index.js";
|
|
24
|
-
import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR } from '@instructure/quiz-common';
|
|
25
|
+
import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, BUILD_TRAY_OPEN } from '@instructure/quiz-common';
|
|
25
26
|
var styles = {
|
|
26
27
|
componentId: 'cCKjK',
|
|
27
28
|
template: function template(theme) {
|
|
@@ -178,6 +179,16 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
|
|
|
178
179
|
};
|
|
179
180
|
}();
|
|
180
181
|
|
|
182
|
+
_this.handleBankClick = function () {
|
|
183
|
+
if (_this.props.newActiveBank) {
|
|
184
|
+
var bankId = _this.props.workingQuizEntry.getEntry().id;
|
|
185
|
+
|
|
186
|
+
_this.props.newActiveBank(bankId);
|
|
187
|
+
|
|
188
|
+
_this.props.setUi(BUILD_TRAY_OPEN, true);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
181
192
|
return _this;
|
|
182
193
|
}
|
|
183
194
|
|
|
@@ -220,10 +231,27 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
|
|
|
220
231
|
}, {
|
|
221
232
|
key: "renderBankedContent",
|
|
222
233
|
value: function renderBankedContent() {
|
|
223
|
-
if (this.props.quizEntry.
|
|
234
|
+
if (this.props.quizEntry.isBank || this.props.quizEntry.isBankEntry) {
|
|
224
235
|
return _ref2;
|
|
225
236
|
}
|
|
226
237
|
}
|
|
238
|
+
}, {
|
|
239
|
+
key: "renderName",
|
|
240
|
+
value: function renderName() {
|
|
241
|
+
if (this.props.quizEntry.isBank && this.props.newActiveBank) {
|
|
242
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
243
|
+
variant: "link",
|
|
244
|
+
size: "small",
|
|
245
|
+
onClick: this.handleBankClick,
|
|
246
|
+
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
247
|
+
}, this.props.name);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
251
|
+
className: styles.interactionType,
|
|
252
|
+
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
253
|
+
}, this.props.name);
|
|
254
|
+
}
|
|
227
255
|
}, {
|
|
228
256
|
key: "renderTitleHolder",
|
|
229
257
|
value: function renderTitleHolder() {
|
|
@@ -268,10 +296,7 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
|
|
|
268
296
|
position: position,
|
|
269
297
|
headingText: positionText,
|
|
270
298
|
"data-automation": "sdk-quiz-entry-positionbox"
|
|
271
|
-
}), this.renderBankedContent(), /*#__PURE__*/React.createElement("div", {
|
|
272
|
-
className: styles.interactionType,
|
|
273
|
-
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
274
|
-
}, this.props.name), /*#__PURE__*/React.createElement("div", {
|
|
299
|
+
}), this.renderBankedContent(), this.renderName(), /*#__PURE__*/React.createElement("div", {
|
|
275
300
|
className: styles.dividingLine
|
|
276
301
|
}), this.renderTitleHolder());
|
|
277
302
|
}
|
|
@@ -282,7 +307,7 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
|
|
|
282
307
|
connectDragSource: this.connectDragSource,
|
|
283
308
|
deleteText: this.getVOText('Remove', this.props.displayPosition),
|
|
284
309
|
displayPosition: this.props.displayPosition,
|
|
285
|
-
onCopy: this.props.quizEntry.
|
|
310
|
+
onCopy: this.props.quizEntry.isBank ? null : this.copyItem,
|
|
286
311
|
onDelete: this.removeItem,
|
|
287
312
|
quizEntries: this.props.quizEntries,
|
|
288
313
|
quizEntry: this.props.quizEntry,
|
|
@@ -320,6 +345,7 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
|
|
|
320
345
|
initialFocusId: PropTypes.string,
|
|
321
346
|
isValid: PropTypes.bool.isRequired,
|
|
322
347
|
name: PropTypes.string,
|
|
348
|
+
newActiveBank: PropTypes.func,
|
|
323
349
|
quizEntries: ImmutablePropTypes.listOf(ImmutablePropTypes.record).isRequired,
|
|
324
350
|
quizEntry: ImmutablePropTypes.record.isRequired,
|
|
325
351
|
quizId: PropTypes.string.isRequired,
|
|
@@ -339,6 +365,7 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
|
|
|
339
365
|
disabledForRegrade: false,
|
|
340
366
|
initialFocusId: null,
|
|
341
367
|
name: null,
|
|
368
|
+
newActiveBank: null,
|
|
342
369
|
richFITBEnabled: false,
|
|
343
370
|
richFITBInteractionID: '',
|
|
344
371
|
shouldClone: false
|
|
@@ -6,7 +6,7 @@ import * as alertActions from "../../../../../common/actions/alerts.js";
|
|
|
6
6
|
import * as errorsShowingActions from "../../../../../common/actions/errorsShowing.js";
|
|
7
7
|
import * as itemApiActions from "../../../../api/items.js";
|
|
8
8
|
import * as modalActions from "../../../../../common/actions/modal.js";
|
|
9
|
-
import { set as setUI } from "../../../../../common/actions/ui.js";
|
|
9
|
+
import { set as setUI, newActiveBank } from "../../../../../common/actions/ui.js";
|
|
10
10
|
import * as modificationActions from "../../../../../common/actions/modifications.js";
|
|
11
11
|
import * as quizEntryApiActions from "../../../../api/quizEntries.js";
|
|
12
12
|
import { featureOn } from "../../../../../common/util/featureCheck.js";
|
|
@@ -56,6 +56,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
56
56
|
return {
|
|
57
57
|
screenreaderNotification: bindActionCreators(alertActions, dispatch).screenreaderNotification,
|
|
58
58
|
setUI: bindActionCreators(setUI, dispatch),
|
|
59
|
+
newActiveBank: bindActionCreators(newActiveBank, dispatch),
|
|
59
60
|
changeItemTitle: boundModificationActions.changeItemTitle,
|
|
60
61
|
changeQuizEntryPoints: boundModificationActions.changeQuizEntryPoints,
|
|
61
62
|
clearModifications: boundModificationActions.clearModifications,
|
|
@@ -399,7 +399,7 @@ var QuizEntryEdit = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
|
|
|
399
399
|
}, {
|
|
400
400
|
key: "renderHeader",
|
|
401
401
|
value: function renderHeader() {
|
|
402
|
-
var headerProps = pick(this.props, ['changeItemTitle', 'clearModifications', 'clearTemporaryItem', 'connectDragSource', 'createTempItem', 'disabledForRegrade', 'displayPosition', 'entry', 'guid', 'hideError', 'initialFocusId', 'name', 'quizEntries', 'quizEntry', 'quizId', 'removeQuizEntry', 'richFITBEnabled', 'richFITBInteractionID', 'screenreaderNotification', 'setUi', 'shouldClone', 'showError', 'withConfirm', 'workingEntry', 'workingQuizEntry']);
|
|
402
|
+
var headerProps = pick(this.props, ['changeItemTitle', 'clearModifications', 'clearTemporaryItem', 'connectDragSource', 'createTempItem', 'disabledForRegrade', 'displayPosition', 'entry', 'guid', 'hideError', 'initialFocusId', 'name', 'newActiveBank', 'quizEntries', 'quizEntry', 'quizId', 'removeQuizEntry', 'richFITBEnabled', 'richFITBInteractionID', 'screenreaderNotification', 'setUi', 'shouldClone', 'showError', 'withConfirm', 'workingEntry', 'workingQuizEntry']);
|
|
403
403
|
return /*#__PURE__*/React.createElement(QuizEntryEditHeader, Object.assign({
|
|
404
404
|
isValid: this.isValid(),
|
|
405
405
|
successfulSubmit: this.successfulSubmit,
|
|
@@ -468,6 +468,7 @@ var QuizEntryEdit = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
|
|
|
468
468
|
initialFocusId: PropTypes.string,
|
|
469
469
|
isOccluded: PropTypes.bool,
|
|
470
470
|
name: PropTypes.string,
|
|
471
|
+
newActiveBank: PropTypes.func,
|
|
471
472
|
nextQuizEntry: ImmutablePropTypes.map,
|
|
472
473
|
openRegradeModal: PropTypes.func.isRequired,
|
|
473
474
|
quizEntries: ImmutablePropTypes.listOf(ImmutablePropTypes.record).isRequired,
|
|
@@ -502,6 +503,7 @@ var QuizEntryEdit = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
|
|
|
502
503
|
isOccluded: false,
|
|
503
504
|
name: null,
|
|
504
505
|
nextQuizEntry: null,
|
|
506
|
+
newActiveBank: null,
|
|
505
507
|
onEditQuizEntryToggle: Function.prototype,
|
|
506
508
|
richFITBEnabled: false,
|
|
507
509
|
richFITBInteractionID: '',
|
|
@@ -72,7 +72,8 @@ var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
72
72
|
shouldClone: state.getIn(['ui', _quizCommon.SHOULD_CLONE_ITEM]),
|
|
73
73
|
tagAssociations: tagAssociations,
|
|
74
74
|
useBankTags: useBankTags,
|
|
75
|
-
workingEntry: entry.getWorkingInstance()
|
|
75
|
+
workingEntry: entry.getWorkingInstance(),
|
|
76
|
+
workingQuizEntry: props.quizEntry.getWorkingInstance()
|
|
76
77
|
};
|
|
77
78
|
};
|
|
78
79
|
|
|
@@ -244,7 +244,7 @@ var QuizEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
244
244
|
value: function renderBank() {
|
|
245
245
|
var QuizEntryComponent = this.props.isEditing ? _index10.default : _index9.default;
|
|
246
246
|
var QuizEntryBankComponent = this.props.isEditing ? _index3.default : _index2.default;
|
|
247
|
-
var bank = this.props.
|
|
247
|
+
var bank = this.props.workingQuizEntry.getEntry();
|
|
248
248
|
var bankProps = {
|
|
249
249
|
title: bank.title,
|
|
250
250
|
entry: bank,
|
|
@@ -282,7 +282,7 @@ var QuizEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
282
282
|
var quizEntryProps = Object.assign({}, this.props, overrideProps);
|
|
283
283
|
var QuizEntryComponent = this.isEditing() ? _index10.default : _index9.default;
|
|
284
284
|
var itemProps = this.propsForItem();
|
|
285
|
-
var mergedItem = this.isEditing() ? this.props.
|
|
285
|
+
var mergedItem = this.isEditing() ? this.props.workingQuizEntry.getItem() : itemProps.entry;
|
|
286
286
|
var ItemComponent = this.isOverriding() ? _index6.default : _index5.default;
|
|
287
287
|
return /*#__PURE__*/_react.default.createElement(QuizEntryComponent, quizEntryProps, /*#__PURE__*/_react.default.createElement(_index.default, Object.assign({}, bankEntryWarningWrapperProps, {
|
|
288
288
|
disableChildren: this.isEditing() && !this.isOverridable()
|
|
@@ -409,6 +409,7 @@ var QuizEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
409
409
|
tagAssociations: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.map),
|
|
410
410
|
useBankTags: _propTypes.default.bool,
|
|
411
411
|
workingEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
412
|
+
workingQuizEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
412
413
|
editQuizEntryToggle: _propTypes.default.bool.isRequired,
|
|
413
414
|
onEditQuizEntryToggle: _propTypes.default.func.isRequired,
|
|
414
415
|
handleValidationErrorsFromApi: _propTypes.default.func.isRequired,
|
|
@@ -31,6 +31,8 @@ var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
|
31
31
|
|
|
32
32
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
33
33
|
|
|
34
|
+
var _uiButtons = require("@instructure/ui-buttons");
|
|
35
|
+
|
|
34
36
|
var _uiTextInput = require("@instructure/ui-text-input");
|
|
35
37
|
|
|
36
38
|
var _uiThemeable = require("@instructure/ui-themeable");
|
|
@@ -210,6 +212,16 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
210
212
|
};
|
|
211
213
|
}();
|
|
212
214
|
|
|
215
|
+
_this.handleBankClick = function () {
|
|
216
|
+
if (_this.props.newActiveBank) {
|
|
217
|
+
var bankId = _this.props.workingQuizEntry.getEntry().id;
|
|
218
|
+
|
|
219
|
+
_this.props.newActiveBank(bankId);
|
|
220
|
+
|
|
221
|
+
_this.props.setUi(_quizCommon.BUILD_TRAY_OPEN, true);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
213
225
|
return _this;
|
|
214
226
|
}
|
|
215
227
|
|
|
@@ -252,10 +264,27 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
252
264
|
}, {
|
|
253
265
|
key: "renderBankedContent",
|
|
254
266
|
value: function renderBankedContent() {
|
|
255
|
-
if (this.props.quizEntry.
|
|
267
|
+
if (this.props.quizEntry.isBank || this.props.quizEntry.isBankEntry) {
|
|
256
268
|
return _ref2;
|
|
257
269
|
}
|
|
258
270
|
}
|
|
271
|
+
}, {
|
|
272
|
+
key: "renderName",
|
|
273
|
+
value: function renderName() {
|
|
274
|
+
if (this.props.quizEntry.isBank && this.props.newActiveBank) {
|
|
275
|
+
return /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
276
|
+
variant: "link",
|
|
277
|
+
size: "small",
|
|
278
|
+
onClick: this.handleBankClick,
|
|
279
|
+
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
280
|
+
}, this.props.name);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
284
|
+
className: styles.interactionType,
|
|
285
|
+
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
286
|
+
}, this.props.name);
|
|
287
|
+
}
|
|
259
288
|
}, {
|
|
260
289
|
key: "renderTitleHolder",
|
|
261
290
|
value: function renderTitleHolder() {
|
|
@@ -300,10 +329,7 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
300
329
|
position: position,
|
|
301
330
|
headingText: positionText,
|
|
302
331
|
"data-automation": "sdk-quiz-entry-positionbox"
|
|
303
|
-
}), this.renderBankedContent(), /*#__PURE__*/_react.default.createElement("div", {
|
|
304
|
-
className: styles.interactionType,
|
|
305
|
-
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
306
|
-
}, this.props.name), /*#__PURE__*/_react.default.createElement("div", {
|
|
332
|
+
}), this.renderBankedContent(), this.renderName(), /*#__PURE__*/_react.default.createElement("div", {
|
|
307
333
|
className: styles.dividingLine
|
|
308
334
|
}), this.renderTitleHolder());
|
|
309
335
|
}
|
|
@@ -314,7 +340,7 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
314
340
|
connectDragSource: this.connectDragSource,
|
|
315
341
|
deleteText: this.getVOText('Remove', this.props.displayPosition),
|
|
316
342
|
displayPosition: this.props.displayPosition,
|
|
317
|
-
onCopy: this.props.quizEntry.
|
|
343
|
+
onCopy: this.props.quizEntry.isBank ? null : this.copyItem,
|
|
318
344
|
onDelete: this.removeItem,
|
|
319
345
|
quizEntries: this.props.quizEntries,
|
|
320
346
|
quizEntry: this.props.quizEntry,
|
|
@@ -351,6 +377,7 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
351
377
|
initialFocusId: _propTypes.default.string,
|
|
352
378
|
isValid: _propTypes.default.bool.isRequired,
|
|
353
379
|
name: _propTypes.default.string,
|
|
380
|
+
newActiveBank: _propTypes.default.func,
|
|
354
381
|
quizEntries: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.record).isRequired,
|
|
355
382
|
quizEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
356
383
|
quizId: _propTypes.default.string.isRequired,
|
|
@@ -370,6 +397,7 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
370
397
|
disabledForRegrade: false,
|
|
371
398
|
initialFocusId: null,
|
|
372
399
|
name: null,
|
|
400
|
+
newActiveBank: null,
|
|
373
401
|
richFITBEnabled: false,
|
|
374
402
|
richFITBInteractionID: '',
|
|
375
403
|
shouldClone: false
|
|
@@ -80,6 +80,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
80
80
|
return {
|
|
81
81
|
screenreaderNotification: (0, _redux.bindActionCreators)(alertActions, dispatch).screenreaderNotification,
|
|
82
82
|
setUI: (0, _redux.bindActionCreators)(_ui.set, dispatch),
|
|
83
|
+
newActiveBank: (0, _redux.bindActionCreators)(_ui.newActiveBank, dispatch),
|
|
83
84
|
changeItemTitle: boundModificationActions.changeItemTitle,
|
|
84
85
|
changeQuizEntryPoints: boundModificationActions.changeQuizEntryPoints,
|
|
85
86
|
clearModifications: boundModificationActions.clearModifications,
|
|
@@ -433,7 +433,7 @@ var QuizEntryEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
433
433
|
}, {
|
|
434
434
|
key: "renderHeader",
|
|
435
435
|
value: function renderHeader() {
|
|
436
|
-
var headerProps = (0, _pick.default)(this.props, ['changeItemTitle', 'clearModifications', 'clearTemporaryItem', 'connectDragSource', 'createTempItem', 'disabledForRegrade', 'displayPosition', 'entry', 'guid', 'hideError', 'initialFocusId', 'name', 'quizEntries', 'quizEntry', 'quizId', 'removeQuizEntry', 'richFITBEnabled', 'richFITBInteractionID', 'screenreaderNotification', 'setUi', 'shouldClone', 'showError', 'withConfirm', 'workingEntry', 'workingQuizEntry']);
|
|
436
|
+
var headerProps = (0, _pick.default)(this.props, ['changeItemTitle', 'clearModifications', 'clearTemporaryItem', 'connectDragSource', 'createTempItem', 'disabledForRegrade', 'displayPosition', 'entry', 'guid', 'hideError', 'initialFocusId', 'name', 'newActiveBank', 'quizEntries', 'quizEntry', 'quizId', 'removeQuizEntry', 'richFITBEnabled', 'richFITBInteractionID', 'screenreaderNotification', 'setUi', 'shouldClone', 'showError', 'withConfirm', 'workingEntry', 'workingQuizEntry']);
|
|
437
437
|
return /*#__PURE__*/_react.default.createElement(_index3.default, Object.assign({
|
|
438
438
|
isValid: this.isValid(),
|
|
439
439
|
successfulSubmit: this.successfulSubmit,
|
|
@@ -501,6 +501,7 @@ var QuizEntryEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
501
501
|
initialFocusId: _propTypes.default.string,
|
|
502
502
|
isOccluded: _propTypes.default.bool,
|
|
503
503
|
name: _propTypes.default.string,
|
|
504
|
+
newActiveBank: _propTypes.default.func,
|
|
504
505
|
nextQuizEntry: _reactImmutableProptypes.default.map,
|
|
505
506
|
openRegradeModal: _propTypes.default.func.isRequired,
|
|
506
507
|
quizEntries: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.record).isRequired,
|
|
@@ -535,6 +536,7 @@ var QuizEntryEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
535
536
|
isOccluded: false,
|
|
536
537
|
name: null,
|
|
537
538
|
nextQuizEntry: null,
|
|
539
|
+
newActiveBank: null,
|
|
538
540
|
onEditQuizEntryToggle: Function.prototype,
|
|
539
541
|
richFITBEnabled: false,
|
|
540
542
|
richFITBInteractionID: '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.52.1-rc.
|
|
3
|
+
"version": "17.52.1-rc.7+9833fd26e",
|
|
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.7",
|
|
44
|
-
"@instructure/quiz-common": "17.52.1-rc.
|
|
45
|
-
"@instructure/quiz-i18n": "17.52.1-rc.
|
|
46
|
-
"@instructure/quiz-interactions": "17.52.1-rc.
|
|
47
|
-
"@instructure/quiz-number-input": "17.52.1-rc.
|
|
48
|
-
"@instructure/quiz-rce": "17.52.1-rc.
|
|
44
|
+
"@instructure/quiz-common": "17.52.1-rc.7+9833fd26e",
|
|
45
|
+
"@instructure/quiz-i18n": "17.52.1-rc.7+9833fd26e",
|
|
46
|
+
"@instructure/quiz-interactions": "17.52.1-rc.7+9833fd26e",
|
|
47
|
+
"@instructure/quiz-number-input": "17.52.1-rc.7+9833fd26e",
|
|
48
|
+
"@instructure/quiz-rce": "17.52.1-rc.7+9833fd26e",
|
|
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": "17.52.1-rc.
|
|
109
|
+
"instructure-validations": "17.52.1-rc.7+9833fd26e",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.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": "17.52.1-rc.
|
|
159
|
+
"quiz-presets": "17.52.1-rc.7+9833fd26e",
|
|
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": "9833fd26e4e880996c7512ab0e75a6a9bc9fee00"
|
|
176
176
|
}
|