@instructure/quiz-core 17.39.1-rc.4 → 17.39.1-rc.5

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.
Files changed (21) hide show
  1. package/es/banks/components/BankEntry/presenter.js +6 -5
  2. package/es/banks/components/BankEntryRow/presenter.js +5 -2
  3. package/es/banks/components/BankSearch/presenter.js +1 -1
  4. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +4 -4
  5. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -4
  6. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +5 -5
  7. package/es/common/components/shared/InteractionTypes/presenter.js +1 -1
  8. package/es/common/util/warningHelpers.js +4 -4
  9. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +3 -3
  10. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  11. package/lib/banks/components/BankEntry/presenter.js +6 -5
  12. package/lib/banks/components/BankEntryRow/presenter.js +6 -2
  13. package/lib/banks/components/BankSearch/presenter.js +1 -1
  14. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +4 -4
  15. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -4
  16. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +5 -5
  17. package/lib/common/components/shared/InteractionTypes/presenter.js +1 -1
  18. package/lib/common/util/warningHelpers.js +4 -4
  19. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +3 -3
  20. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  21. package/package.json +10 -10
@@ -293,9 +293,9 @@ export var BankEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
293
293
  key: "entryLinkName",
294
294
  value: function entryLinkName() {
295
295
  if (this.isTemporary()) {
296
- return this.isItemEntry() ? t('New Item') : t('New Stimulus');
296
+ return this.isItemEntry() ? t('New Question') : t('New Stimulus');
297
297
  } else {
298
- return this.isItemEntry() ? t('Edit Item') : t('Edit Stimulus');
298
+ return this.isItemEntry() ? t('Edit Question') : t('Edit Stimulus');
299
299
  }
300
300
  }
301
301
  }, {
@@ -341,12 +341,12 @@ export var BankEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
341
341
  value: function renderHeader(entry) {
342
342
  if (!entry) return;
343
343
  var props = this.editProps(entry);
344
- var identifier = this.isItemEntry() ? t('Item { id }', {
344
+ var identifier = this.isItemEntry() ? t('Question { id }', {
345
345
  id: entry.id
346
346
  }) : t('Stimulus { id }', {
347
347
  id: entry.id
348
348
  });
349
- var tempIdentifier = this.isItemEntry() ? t('New Item') : t('New Stimulus');
349
+ var tempIdentifier = this.isItemEntry() ? t('New Question') : t('New Stimulus');
350
350
  var itemIdentifier = this.isTemporary() ? tempIdentifier : identifier;
351
351
  var entryName = this.isItemEntry() ? entry.getInteractionType().name : t('Stimulus');
352
352
  var separator = ' | ';
@@ -614,6 +614,7 @@ export var BankEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
614
614
  });
615
615
  };
616
616
 
617
+ var editWarning = this.isItemEntry() ? t('Edits made here will appear on any assessment using this question.') : t('Edits made here will appear on any assessment using this stimulus.');
617
618
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
618
619
  className: styles.entryEdit
619
620
  }, /*#__PURE__*/React.createElement(WarningWrapper, versioningProps, canEdit && /*#__PURE__*/React.createElement(Alert, {
@@ -621,7 +622,7 @@ export var BankEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
621
622
  margin: "0 0 medium 0"
622
623
  }, /*#__PURE__*/React.createElement(Text, {
623
624
  color: "primary"
624
- }, t('Edits made here will appear on any assessment using this item.'))), /*#__PURE__*/React.createElement(EntryComponent, props), useBankTags && tags())), /*#__PURE__*/React.createElement("div", {
625
+ }, editWarning)), /*#__PURE__*/React.createElement(EntryComponent, props), useBankTags && tags())), /*#__PURE__*/React.createElement("div", {
625
626
  className: styles.footer
626
627
  }, /*#__PURE__*/React.createElement("div", {
627
628
  className: styles.leftFooter
@@ -72,6 +72,7 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
72
72
  };
73
73
 
74
74
  _this.deleteBankEntry = function () {
75
+ var deletePreface = _this.isItemEntry() ? t('Deleting this question:') : t('Deleting this stimulus:');
75
76
  var confirmBody = /*#__PURE__*/React.createElement(Alert, {
76
77
  variant: "error",
77
78
  padding: "0"
@@ -79,7 +80,7 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
79
80
  className: styles.deleteAlert
80
81
  }, /*#__PURE__*/React.createElement("div", {
81
82
  className: styles.deletePreface
82
- }, t('Deleting this item:')), /*#__PURE__*/React.createElement(List, null, /*#__PURE__*/React.createElement(List.Item, null, t.rich('will <0>NOT</0> remove it from any assessments', [function (_ref) {
83
+ }, deletePreface), /*#__PURE__*/React.createElement(List, null, /*#__PURE__*/React.createElement(List.Item, null, t.rich('will <0>NOT</0> remove it from any assessments', [function (_ref) {
83
84
  var children = _ref.children;
84
85
  return /*#__PURE__*/React.createElement(Text, {
85
86
  weight: "bold",
@@ -88,7 +89,9 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
88
89
  }])), /*#__PURE__*/React.createElement(List.Item, null, t('will lose its statistical link in reporting')), /*#__PURE__*/React.createElement(List.Item, null, t('will remove access for all users with whom this bank has been shared')))));
89
90
 
90
91
  _this.props.withConfirm(partial(_this.props.removeBankEntry, _this.props.bank.id, _this.props.bankEntry.id), {
91
- title: t('Delete Item'),
92
+ title: t('Delete {type}', {
93
+ type: _this.type()
94
+ }),
92
95
  text: confirmBody,
93
96
  continueText: t('Delete'),
94
97
  continueVariant: 'danger',
@@ -148,7 +148,7 @@ export var BankSearch = (_dec = themeable(theme, styles), _dec(_class = (_temp =
148
148
  }, /*#__PURE__*/React.createElement(Text, {
149
149
  weight: "bold",
150
150
  color: "primary"
151
- }, t('Item Type'))), interactionFilters, toggleButton()));
151
+ }, t('Question Type'))), interactionFilters, toggleButton()));
152
152
  }
153
153
  }
154
154
  }, {
@@ -196,10 +196,10 @@ var QuizEntryHeader = (_dec = themeable(theme, styles), _dec(_class = (_temp = _
196
196
  key: "removalDialogData",
197
197
  value: function removalDialogData() {
198
198
  return {
199
- title: t('Remove Item?'),
200
- text: t('Are you sure you want to remove this item?'),
201
- continueText: t('Remove Item'),
202
- cancelText: t('Keep Item')
199
+ title: t('Remove Question?'),
200
+ text: t('Are you sure you want to remove this question?'),
201
+ continueText: t('Remove Question'),
202
+ cancelText: t('Keep Question')
203
203
  };
204
204
  }
205
205
  }, {
@@ -199,10 +199,10 @@ var QuizEntryShow = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
199
199
  key: "removalDialogData",
200
200
  value: function removalDialogData() {
201
201
  return {
202
- title: t('Remove Item?'),
203
- text: t('Are you sure you want to remove this item?'),
204
- continueText: t('Remove Item'),
205
- cancelText: t('Keep Item')
202
+ title: t('Remove Question?'),
203
+ text: t('Are you sure you want to remove this question?'),
204
+ continueText: t('Remove Question'),
205
+ cancelText: t('Keep Question')
206
206
  };
207
207
  }
208
208
  }, {
@@ -146,23 +146,23 @@ export var SessionItemResult = (_dec = themeable(theme, styles), _dec(_class = (
146
146
  var positionText;
147
147
 
148
148
  if (this.regraded() && this.unscorable()) {
149
- positionText = t('Results for item {position, number}. There was a problem grading this question. This question has been regraded.', {
149
+ positionText = t('Results for question {position, number}. There was a problem grading this question. This question has been regraded.', {
150
150
  position: position
151
151
  });
152
152
  } else if (this.regraded()) {
153
- positionText = t('Results for item {position, number}. This question has been regraded.', {
153
+ positionText = t('Results for question {position, number}. This question has been regraded.', {
154
154
  position: position
155
155
  });
156
156
  } else if (this.unscorable() && this.props.editGraderFeedback) {
157
- positionText = t('Results for item {position, number}. There was a problem grading this question.', {
157
+ positionText = t('Results for question {position, number}. There was a problem grading this question.', {
158
158
  position: position
159
159
  });
160
160
  } else if (this.unscorable()) {
161
- positionText = t('Results for item {position, number}. There was a problem grading this question. Please inform your instructor.', {
161
+ positionText = t('Results for question {position, number}. There was a problem grading this question. Please inform your instructor.', {
162
162
  position: position
163
163
  });
164
164
  } else {
165
- positionText = t('Results for item {position, number}.', {
165
+ positionText = t('Results for question {position, number}.', {
166
166
  position: position
167
167
  });
168
168
  }
@@ -58,7 +58,7 @@ export var InteractionTypes = (_dec = themeable(theme, styles), _dec(_class = (_
58
58
  var metadata = interactionTypeMetadata(intType);
59
59
  Icon = metadata.icon;
60
60
  name = metadata.name;
61
- title = t('Add {name} Item', {
61
+ title = t('Add {name} Question', {
62
62
  name: name
63
63
  });
64
64
  automation = "sdk-interaction-button-".concat(intType.slug);
@@ -43,7 +43,7 @@ export var propsForItemVersioningWrapper = function propsForItemVersioningWrappe
43
43
  color: "primary"
44
44
  }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/React.createElement(Text, {
45
45
  color: "primary"
46
- }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this item!')), "\xA0", t('You can apply your edits to a copy of this item' + ' which will only be seen by students that have not taken the assessment.'))].concat(args));
46
+ }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this question!')), "\xA0", t('You can apply your edits to a copy of this question' + ' which will only be seen by students that have not taken the assessment.'))].concat(args));
47
47
  };
48
48
  export var propsForStimulusVersioningWrapper = function propsForStimulusVersioningWrapper() {
49
49
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
@@ -52,9 +52,9 @@ export var propsForStimulusVersioningWrapper = function propsForStimulusVersioni
52
52
 
53
53
  return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/React.createElement(Text, {
54
54
  color: "primary"
55
- }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Stimulus statistics from this new copy will appear separate from the previous version.')), /*#__PURE__*/React.createElement(Text, {
55
+ }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Statistics from this new copy will appear separate from the previous version.')), /*#__PURE__*/React.createElement(Text, {
56
56
  color: "primary"
57
- }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this stimulus!')), "\xA0", t('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached items will be copied as well.'))].concat(args));
57
+ }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this stimulus!')), "\xA0", t('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached questions will be copied as well.'))].concat(args));
58
58
  };
59
59
  export var propsForBankEntryVersioningWrapper = function propsForBankEntryVersioningWrapper() {
60
60
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
@@ -63,7 +63,7 @@ export var propsForBankEntryVersioningWrapper = function propsForBankEntryVersio
63
63
 
64
64
  return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/React.createElement(Text, {
65
65
  color: "primary"
66
- }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/React.createElement(Text, {
66
+ }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/React.createElement(Text, {
67
67
  color: "primary"
68
68
  }, t('This item has been deleted from the item bank. Students will still see it on future attempts. To edit, make a copy of the item.'))].concat(args));
69
69
  };
@@ -74,7 +74,7 @@ export var ItemAnalysisRow = (_dec = themeable(theme, styles), _dec(_class = (_t
74
74
  var _this$props = _this.props,
75
75
  position = _this$props.position,
76
76
  expanded = _this$props.expanded;
77
- var text = t("{\n expanded, select,\n false {Expanded item {position, number}}\n other {Collapsed item {position, number}}\n }", {
77
+ var text = t("{\n expanded, select,\n false {Expanded question {position, number}}\n other {Collapsed question {position, number}}\n }", {
78
78
  position: position,
79
79
  expanded: expanded
80
80
  });
@@ -91,7 +91,7 @@ export var ItemAnalysisRow = (_dec = themeable(theme, styles), _dec(_class = (_t
91
91
  var _this$props2 = this.props,
92
92
  position = _this$props2.position,
93
93
  expanded = _this$props2.expanded;
94
- var title = t("{\n expanded, select,\n false {Expand item {position, number} details}\n other {Collapse item {position, number} details}\n }", {
94
+ var title = t("{\n expanded, select,\n false {Expand question {position, number} details}\n other {Collapse question {position, number} details}\n }", {
95
95
  position: position,
96
96
  expanded: expanded
97
97
  });
@@ -116,7 +116,7 @@ export var ItemAnalysisRow = (_dec = themeable(theme, styles), _dec(_class = (_t
116
116
  }, /*#__PURE__*/React.createElement(Heading, {
117
117
  level: "reset",
118
118
  as: "h3"
119
- }, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Item {position, number}', {
119
+ }, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Question {position, number}', {
120
120
  position: position
121
121
  })), interactionType, /*#__PURE__*/React.createElement(PresentationContent, null, separator), t('{pointsPossible, number} points possible', {
122
122
  pointsPossible: pointsPossible
@@ -219,7 +219,7 @@ export var QuizAndItemAnalysis = (_dec = themeable(theme, styles), _dec(_class =
219
219
  level: "h3",
220
220
  as: "h2",
221
221
  color: "primary"
222
- }, t('Item Analysis'))), itemAnalyses.toArray().map(function (itemAnalysis, i) {
222
+ }, t('Item??? Analysis'))), itemAnalyses.toArray().map(function (itemAnalysis, i) {
223
223
  var itemMetrics = _this2.generateItemAnalysisMetrics(itemAnalysis);
224
224
 
225
225
  return /*#__PURE__*/React.createElement(ItemAnalysisRow, {
@@ -345,9 +345,9 @@ var BankEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
345
345
  key: "entryLinkName",
346
346
  value: function entryLinkName() {
347
347
  if (this.isTemporary()) {
348
- return this.isItemEntry() ? (0, _formatMessage.default)('New Item') : (0, _formatMessage.default)('New Stimulus');
348
+ return this.isItemEntry() ? (0, _formatMessage.default)('New Question') : (0, _formatMessage.default)('New Stimulus');
349
349
  } else {
350
- return this.isItemEntry() ? (0, _formatMessage.default)('Edit Item') : (0, _formatMessage.default)('Edit Stimulus');
350
+ return this.isItemEntry() ? (0, _formatMessage.default)('Edit Question') : (0, _formatMessage.default)('Edit Stimulus');
351
351
  }
352
352
  }
353
353
  }, {
@@ -393,12 +393,12 @@ var BankEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
393
393
  value: function renderHeader(entry) {
394
394
  if (!entry) return;
395
395
  var props = this.editProps(entry);
396
- var identifier = this.isItemEntry() ? (0, _formatMessage.default)('Item { id }', {
396
+ var identifier = this.isItemEntry() ? (0, _formatMessage.default)('Question { id }', {
397
397
  id: entry.id
398
398
  }) : (0, _formatMessage.default)('Stimulus { id }', {
399
399
  id: entry.id
400
400
  });
401
- var tempIdentifier = this.isItemEntry() ? (0, _formatMessage.default)('New Item') : (0, _formatMessage.default)('New Stimulus');
401
+ var tempIdentifier = this.isItemEntry() ? (0, _formatMessage.default)('New Question') : (0, _formatMessage.default)('New Stimulus');
402
402
  var itemIdentifier = this.isTemporary() ? tempIdentifier : identifier;
403
403
  var entryName = this.isItemEntry() ? entry.getInteractionType().name : (0, _formatMessage.default)('Stimulus');
404
404
  var separator = ' | ';
@@ -666,6 +666,7 @@ var BankEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
666
666
  });
667
667
  };
668
668
 
669
+ var editWarning = this.isItemEntry() ? (0, _formatMessage.default)('Edits made here will appear on any assessment using this question.') : (0, _formatMessage.default)('Edits made here will appear on any assessment using this stimulus.');
669
670
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
670
671
  className: styles.entryEdit
671
672
  }, /*#__PURE__*/_react.default.createElement(_index9.default, versioningProps, canEdit && /*#__PURE__*/_react.default.createElement(_uiAlerts.Alert, {
@@ -673,7 +674,7 @@ var BankEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
673
674
  margin: "0 0 medium 0"
674
675
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
675
676
  color: "primary"
676
- }, (0, _formatMessage.default)('Edits made here will appear on any assessment using this item.'))), /*#__PURE__*/_react.default.createElement(EntryComponent, props), useBankTags && tags())), /*#__PURE__*/_react.default.createElement("div", {
677
+ }, editWarning)), /*#__PURE__*/_react.default.createElement(EntryComponent, props), useBankTags && tags())), /*#__PURE__*/_react.default.createElement("div", {
677
678
  className: styles.footer
678
679
  }, /*#__PURE__*/_react.default.createElement("div", {
679
680
  className: styles.leftFooter
@@ -113,6 +113,8 @@ var BankEntryRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
113
113
  };
114
114
 
115
115
  _this.deleteBankEntry = function () {
116
+ var deletePreface = _this.isItemEntry() ? (0, _formatMessage.default)('Deleting this question:') : (0, _formatMessage.default)('Deleting this stimulus:');
117
+
116
118
  var confirmBody = /*#__PURE__*/_react.default.createElement(_uiAlerts.Alert, {
117
119
  variant: "error",
118
120
  padding: "0"
@@ -120,7 +122,7 @@ var BankEntryRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
120
122
  className: styles.deleteAlert
121
123
  }, /*#__PURE__*/_react.default.createElement("div", {
122
124
  className: styles.deletePreface
123
- }, (0, _formatMessage.default)('Deleting this item:')), /*#__PURE__*/_react.default.createElement(_uiList.List, null, /*#__PURE__*/_react.default.createElement(_uiList.List.Item, null, _formatMessage.default.rich('will <0>NOT</0> remove it from any assessments', [function (_ref) {
125
+ }, deletePreface), /*#__PURE__*/_react.default.createElement(_uiList.List, null, /*#__PURE__*/_react.default.createElement(_uiList.List.Item, null, _formatMessage.default.rich('will <0>NOT</0> remove it from any assessments', [function (_ref) {
124
126
  var children = _ref.children;
125
127
  return /*#__PURE__*/_react.default.createElement(_uiText.Text, {
126
128
  weight: "bold",
@@ -129,7 +131,9 @@ var BankEntryRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
129
131
  }])), /*#__PURE__*/_react.default.createElement(_uiList.List.Item, null, (0, _formatMessage.default)('will lose its statistical link in reporting')), /*#__PURE__*/_react.default.createElement(_uiList.List.Item, null, (0, _formatMessage.default)('will remove access for all users with whom this bank has been shared')))));
130
132
 
131
133
  _this.props.withConfirm((0, _partial.default)(_this.props.removeBankEntry, _this.props.bank.id, _this.props.bankEntry.id), {
132
- title: (0, _formatMessage.default)('Delete Item'),
134
+ title: (0, _formatMessage.default)('Delete {type}', {
135
+ type: _this.type()
136
+ }),
133
137
  text: confirmBody,
134
138
  continueText: (0, _formatMessage.default)('Delete'),
135
139
  continueVariant: 'danger',
@@ -182,7 +182,7 @@ var BankSearch = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _d
182
182
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
183
183
  weight: "bold",
184
184
  color: "primary"
185
- }, (0, _formatMessage.default)('Item Type'))), interactionFilters, toggleButton()));
185
+ }, (0, _formatMessage.default)('Question Type'))), interactionFilters, toggleButton()));
186
186
  }
187
187
  }
188
188
  }, {
@@ -228,10 +228,10 @@ var QuizEntryHeader = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
228
228
  key: "removalDialogData",
229
229
  value: function removalDialogData() {
230
230
  return {
231
- title: (0, _formatMessage.default)('Remove Item?'),
232
- text: (0, _formatMessage.default)('Are you sure you want to remove this item?'),
233
- continueText: (0, _formatMessage.default)('Remove Item'),
234
- cancelText: (0, _formatMessage.default)('Keep Item')
231
+ title: (0, _formatMessage.default)('Remove Question?'),
232
+ text: (0, _formatMessage.default)('Are you sure you want to remove this question?'),
233
+ continueText: (0, _formatMessage.default)('Remove Question'),
234
+ cancelText: (0, _formatMessage.default)('Keep Question')
235
235
  };
236
236
  }
237
237
  }, {
@@ -232,10 +232,10 @@ var QuizEntryShow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
232
232
  key: "removalDialogData",
233
233
  value: function removalDialogData() {
234
234
  return {
235
- title: (0, _formatMessage.default)('Remove Item?'),
236
- text: (0, _formatMessage.default)('Are you sure you want to remove this item?'),
237
- continueText: (0, _formatMessage.default)('Remove Item'),
238
- cancelText: (0, _formatMessage.default)('Keep Item')
235
+ title: (0, _formatMessage.default)('Remove Question?'),
236
+ text: (0, _formatMessage.default)('Are you sure you want to remove this question?'),
237
+ continueText: (0, _formatMessage.default)('Remove Question'),
238
+ cancelText: (0, _formatMessage.default)('Keep Question')
239
239
  };
240
240
  }
241
241
  }, {
@@ -179,23 +179,23 @@ var SessionItemResult = (_dec = (0, _uiThemeable.themeable)(_theme.default, styl
179
179
  var positionText;
180
180
 
181
181
  if (this.regraded() && this.unscorable()) {
182
- positionText = (0, _formatMessage.default)('Results for item {position, number}. There was a problem grading this question. This question has been regraded.', {
182
+ positionText = (0, _formatMessage.default)('Results for question {position, number}. There was a problem grading this question. This question has been regraded.', {
183
183
  position: position
184
184
  });
185
185
  } else if (this.regraded()) {
186
- positionText = (0, _formatMessage.default)('Results for item {position, number}. This question has been regraded.', {
186
+ positionText = (0, _formatMessage.default)('Results for question {position, number}. This question has been regraded.', {
187
187
  position: position
188
188
  });
189
189
  } else if (this.unscorable() && this.props.editGraderFeedback) {
190
- positionText = (0, _formatMessage.default)('Results for item {position, number}. There was a problem grading this question.', {
190
+ positionText = (0, _formatMessage.default)('Results for question {position, number}. There was a problem grading this question.', {
191
191
  position: position
192
192
  });
193
193
  } else if (this.unscorable()) {
194
- positionText = (0, _formatMessage.default)('Results for item {position, number}. There was a problem grading this question. Please inform your instructor.', {
194
+ positionText = (0, _formatMessage.default)('Results for question {position, number}. There was a problem grading this question. Please inform your instructor.', {
195
195
  position: position
196
196
  });
197
197
  } else {
198
- positionText = (0, _formatMessage.default)('Results for item {position, number}.', {
198
+ positionText = (0, _formatMessage.default)('Results for question {position, number}.', {
199
199
  position: position
200
200
  });
201
201
  }
@@ -86,7 +86,7 @@ var InteractionTypes = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
86
86
  var metadata = (0, _interactionTypeMetadata.interactionTypeMetadata)(intType);
87
87
  Icon = metadata.icon;
88
88
  name = metadata.name;
89
- title = (0, _formatMessage.default)('Add {name} Item', {
89
+ title = (0, _formatMessage.default)('Add {name} Question', {
90
90
  name: name
91
91
  });
92
92
  automation = "sdk-interaction-button-".concat(intType.slug);
@@ -55,7 +55,7 @@ var propsForItemVersioningWrapper = function propsForItemVersioningWrapper() {
55
55
  color: "primary"
56
56
  }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
57
57
  color: "primary"
58
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this item!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this item' + ' which will only be seen by students that have not taken the assessment.'))].concat(args));
58
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this question!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this question' + ' which will only be seen by students that have not taken the assessment.'))].concat(args));
59
59
  };
60
60
 
61
61
  exports.propsForItemVersioningWrapper = propsForItemVersioningWrapper;
@@ -67,9 +67,9 @@ var propsForStimulusVersioningWrapper = function propsForStimulusVersioningWrapp
67
67
 
68
68
  return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/_react.default.createElement(_uiText.Text, {
69
69
  color: "primary"
70
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Stimulus statistics from this new copy will appear separate from the previous version.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
70
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Statistics from this new copy will appear separate from the previous version.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
71
71
  color: "primary"
72
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this stimulus!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached items will be copied as well.'))].concat(args));
72
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this stimulus!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached questions will be copied as well.'))].concat(args));
73
73
  };
74
74
 
75
75
  exports.propsForStimulusVersioningWrapper = propsForStimulusVersioningWrapper;
@@ -81,7 +81,7 @@ var propsForBankEntryVersioningWrapper = function propsForBankEntryVersioningWra
81
81
 
82
82
  return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/_react.default.createElement(_uiText.Text, {
83
83
  color: "primary"
84
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
84
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
85
85
  color: "primary"
86
86
  }, (0, _formatMessage.default)('This item has been deleted from the item bank. Students will still see it on future attempts. To edit, make a copy of the item.'))].concat(args));
87
87
  };
@@ -109,7 +109,7 @@ var ItemAnalysisRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
109
109
  var _this$props = _this.props,
110
110
  position = _this$props.position,
111
111
  expanded = _this$props.expanded;
112
- var text = (0, _formatMessage.default)("{\n expanded, select,\n false {Expanded item {position, number}}\n other {Collapsed item {position, number}}\n }", {
112
+ var text = (0, _formatMessage.default)("{\n expanded, select,\n false {Expanded question {position, number}}\n other {Collapsed question {position, number}}\n }", {
113
113
  position: position,
114
114
  expanded: expanded
115
115
  });
@@ -126,7 +126,7 @@ var ItemAnalysisRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
126
126
  var _this$props2 = this.props,
127
127
  position = _this$props2.position,
128
128
  expanded = _this$props2.expanded;
129
- var title = (0, _formatMessage.default)("{\n expanded, select,\n false {Expand item {position, number} details}\n other {Collapse item {position, number} details}\n }", {
129
+ var title = (0, _formatMessage.default)("{\n expanded, select,\n false {Expand question {position, number} details}\n other {Collapse question {position, number} details}\n }", {
130
130
  position: position,
131
131
  expanded: expanded
132
132
  });
@@ -151,7 +151,7 @@ var ItemAnalysisRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
151
151
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
152
152
  level: "reset",
153
153
  as: "h3"
154
- }, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Item {position, number}', {
154
+ }, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Question {position, number}', {
155
155
  position: position
156
156
  })), interactionType, /*#__PURE__*/_react.default.createElement(_uiA11yContent.PresentationContent, null, separator), (0, _formatMessage.default)('{pointsPossible, number} points possible', {
157
157
  pointsPossible: pointsPossible
@@ -250,7 +250,7 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
250
250
  level: "h3",
251
251
  as: "h2",
252
252
  color: "primary"
253
- }, (0, _formatMessage.default)('Item Analysis'))), itemAnalyses.toArray().map(function (itemAnalysis, i) {
253
+ }, (0, _formatMessage.default)('Item??? Analysis'))), itemAnalyses.toArray().map(function (itemAnalysis, i) {
254
254
  var itemMetrics = _this2.generateItemAnalysisMetrics(itemAnalysis);
255
255
 
256
256
  return /*#__PURE__*/_react.default.createElement(_index3.default, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.39.1-rc.4+0fcf6d785",
3
+ "version": "17.39.1-rc.5+930d82ec7",
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": "17.39.1-rc.4+0fcf6d785",
45
- "@instructure/quiz-i18n": "17.39.1-rc.4+0fcf6d785",
46
- "@instructure/quiz-interactions": "17.39.1-rc.4+0fcf6d785",
47
- "@instructure/quiz-number-input": "17.39.1-rc.4+0fcf6d785",
48
- "@instructure/quiz-rce": "17.39.1-rc.4+0fcf6d785",
44
+ "@instructure/quiz-common": "17.39.1-rc.5+930d82ec7",
45
+ "@instructure/quiz-i18n": "17.39.1-rc.5+930d82ec7",
46
+ "@instructure/quiz-interactions": "17.39.1-rc.5+930d82ec7",
47
+ "@instructure/quiz-number-input": "17.39.1-rc.5+930d82ec7",
48
+ "@instructure/quiz-rce": "17.39.1-rc.5+930d82ec7",
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.39.1-rc.4+0fcf6d785",
109
+ "instructure-validations": "17.39.1-rc.5+930d82ec7",
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": "17.39.1-rc.4+0fcf6d785",
140
+ "@instructure/quiz-scripts": "17.39.1-rc.5+930d82ec7",
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": "17.39.1-rc.4+0fcf6d785",
159
+ "quiz-presets": "17.39.1-rc.5+930d82ec7",
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": "0fcf6d78526fac440dc41d5dbe7e34588669d91f"
175
+ "gitHead": "930d82ec723c8420662ecc6c474b7361d272bd63"
176
176
  }