@instructure/quiz-core 20.11.4-rc.5 → 20.11.4-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/banks/api/copyingBanksPoller.js +1 -1
- package/es/banks/components/Banks/index.js +0 -1
- package/es/banks/components/Banks/presenter.js +18 -9
- package/es/banks/components/BanksList/presenter.js +1 -1
- package/lib/banks/api/copyingBanksPoller.js +1 -1
- package/lib/banks/components/Banks/index.js +0 -1
- package/lib/banks/components/Banks/presenter.js +18 -9
- package/lib/banks/components/BanksList/presenter.js +1 -1
- package/package.json +10 -10
|
@@ -62,7 +62,7 @@ var handlePollingBanks = /*#__PURE__*/function () {
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
if ((bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.status) === 'waiting') {
|
|
65
|
-
dispatch(addSuccess(t('Created "{name}" successfully! Duplicate can be seen in \'
|
|
65
|
+
dispatch(addSuccess(t('Created "{name}" successfully! Duplicate can be seen in \'Shared with Me\' filter.', {
|
|
66
66
|
name: bank.title
|
|
67
67
|
})));
|
|
68
68
|
} else if (!bankInfo) {
|
|
@@ -20,7 +20,6 @@ function mapStateToProps(state, props) {
|
|
|
20
20
|
return {
|
|
21
21
|
itemBankSearchTableEnabled: featureOn('item_bank_search_table'),
|
|
22
22
|
improvedBankSharingEnabled: featureOn('improved_bank_sharing'),
|
|
23
|
-
newItemBankFilterNamesEnabled: featureOn('new_item_bank_filter_names'),
|
|
24
23
|
usedByCourseEnabled: featureOn('filter_item_banks_used_by_course'),
|
|
25
24
|
subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
|
|
26
25
|
scopeType: scopeType,
|
|
@@ -224,11 +224,17 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
224
224
|
var message;
|
|
225
225
|
|
|
226
226
|
if (_this.props.scopeType === 'course') {
|
|
227
|
-
message = t("Your filter is set to \"Courses\" which will narrow what you can search for.\n Try adjusting the filter to \"
|
|
227
|
+
message = t("Your filter is set to \"Courses\" which will narrow what you can search for.\n Try adjusting the filter to \"{ topLevelBankFilter }\"", {
|
|
228
|
+
topLevelBankFilter: _this.topLevelBankFilterName()
|
|
229
|
+
});
|
|
228
230
|
} else if (_this.props.scopeType === 'this_account') {
|
|
229
|
-
message = t("Your filter is set to \"This Account\" which will narrow what you can search for.\n Try adjusting the filter to \"
|
|
231
|
+
message = t("Your filter is set to \"This Account\" which will narrow what you can search for.\n Try adjusting the filter to \"{ topLevelBankFilter }\"", {
|
|
232
|
+
topLevelBankFilter: _this.topLevelBankFilterName()
|
|
233
|
+
});
|
|
230
234
|
} else if (_this.props.scopeType === 'account') {
|
|
231
|
-
message = t("Your filter is set to \"Institution\" which will narrow what you can search for.\n Try adjusting the filter to \"
|
|
235
|
+
message = t("Your filter is set to \"Institution\" which will narrow what you can search for.\n Try adjusting the filter to \"{ topLevelBankFilter }\"", {
|
|
236
|
+
topLevelBankFilter: _this.topLevelBankFilterName()
|
|
237
|
+
});
|
|
232
238
|
}
|
|
233
239
|
|
|
234
240
|
return jsx(Billboard, {
|
|
@@ -259,26 +265,31 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
259
265
|
if (prevProps.sortBy !== this.props.sortBy || prevProps.sortOrder !== this.props.sortOrder || prevProps.searchTerms !== this.props.searchTerms || prevProps.scopeType !== this.props.scopeType || !isEqual(prevProps.searchSelection, this.props.searchSelection)) {
|
|
260
266
|
this.props.clear(BANKS_BANK_PAGINATION);
|
|
261
267
|
}
|
|
262
|
-
} // We only care about displaying the account search for the Institution Banks and
|
|
268
|
+
} // We only care about displaying the account search for the Institution Banks and Shared with Me filters
|
|
263
269
|
|
|
270
|
+
}, {
|
|
271
|
+
key: "topLevelBankFilterName",
|
|
272
|
+
value: function topLevelBankFilterName() {
|
|
273
|
+
return this.props.subAccountBankSharingEnabled ? t('Shared with Me') : t('All Banks');
|
|
274
|
+
}
|
|
264
275
|
}, {
|
|
265
276
|
key: "renderFilters",
|
|
266
277
|
value: function renderFilters() {
|
|
267
278
|
var scopeOptions = [{
|
|
268
279
|
slug: 'user',
|
|
269
|
-
translation: this.
|
|
280
|
+
translation: this.topLevelBankFilterName()
|
|
270
281
|
}, {
|
|
271
282
|
slug: 'account',
|
|
272
283
|
translation: t('Institution Banks')
|
|
273
284
|
}, {
|
|
274
285
|
slug: 'courses',
|
|
275
|
-
translation: this.props.
|
|
286
|
+
translation: this.props.subAccountBankSharingEnabled ? t('Shared with Courses') : t('Banks Shared to Course')
|
|
276
287
|
}];
|
|
277
288
|
|
|
278
289
|
if (this.props.scope.uuid) {
|
|
279
290
|
scopeOptions.push({
|
|
280
291
|
slug: 'course',
|
|
281
|
-
translation:
|
|
292
|
+
translation: t('This Course')
|
|
282
293
|
});
|
|
283
294
|
}
|
|
284
295
|
|
|
@@ -505,7 +516,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
505
516
|
// can be from consumer
|
|
506
517
|
navigateToBuild: PropTypes.func,
|
|
507
518
|
// from consumer
|
|
508
|
-
newItemBankFilterNamesEnabled: PropTypes.bool,
|
|
509
519
|
onShare: PropTypes.func,
|
|
510
520
|
// from consumer
|
|
511
521
|
openModal: PropTypes.func.isRequired,
|
|
@@ -558,7 +568,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
558
568
|
sortOrder: 'ascending',
|
|
559
569
|
searchTerms: null,
|
|
560
570
|
searchSelection: [],
|
|
561
|
-
newItemBankFilterNamesEnabled: false,
|
|
562
571
|
usedByCourseEnabled: false,
|
|
563
572
|
itemBankSearchTableEnabled: false,
|
|
564
573
|
subAccountBankSharingEnabled: false,
|
|
@@ -154,7 +154,7 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
154
154
|
name: bank.title
|
|
155
155
|
}));
|
|
156
156
|
|
|
157
|
-
_this.props.addInfo(t('Creating "{name} Copy". Duplicate will appear in \'
|
|
157
|
+
_this.props.addInfo(t('Creating "{name} Copy". Duplicate will appear in \'Shared with Me\' filter.', {
|
|
158
158
|
name: bank.title
|
|
159
159
|
}));
|
|
160
160
|
|
|
@@ -82,7 +82,7 @@ var handlePollingBanks = /*#__PURE__*/function () {
|
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
if ((bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.status) === 'waiting') {
|
|
85
|
-
dispatch((0, _alerts.addSuccess)((0, _formatMessage.default)('Created "{name}" successfully! Duplicate can be seen in \'
|
|
85
|
+
dispatch((0, _alerts.addSuccess)((0, _formatMessage.default)('Created "{name}" successfully! Duplicate can be seen in \'Shared with Me\' filter.', {
|
|
86
86
|
name: bank.title
|
|
87
87
|
})));
|
|
88
88
|
} else if (!bankInfo) {
|
|
@@ -38,7 +38,6 @@ function mapStateToProps(state, props) {
|
|
|
38
38
|
return {
|
|
39
39
|
itemBankSearchTableEnabled: (0, _featureCheck.featureOn)('item_bank_search_table'),
|
|
40
40
|
improvedBankSharingEnabled: (0, _featureCheck.featureOn)('improved_bank_sharing'),
|
|
41
|
-
newItemBankFilterNamesEnabled: (0, _featureCheck.featureOn)('new_item_bank_filter_names'),
|
|
42
41
|
usedByCourseEnabled: (0, _featureCheck.featureOn)('filter_item_banks_used_by_course'),
|
|
43
42
|
subAccountBankSharingEnabled: (0, _featureCheck.featureOn)('sub_account_bank_sharing'),
|
|
44
43
|
scopeType: scopeType,
|
|
@@ -264,11 +264,17 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
264
264
|
var message;
|
|
265
265
|
|
|
266
266
|
if (_this.props.scopeType === 'course') {
|
|
267
|
-
message = (0, _formatMessage.default)("Your filter is set to \"Courses\" which will narrow what you can search for.\n Try adjusting the filter to \"
|
|
267
|
+
message = (0, _formatMessage.default)("Your filter is set to \"Courses\" which will narrow what you can search for.\n Try adjusting the filter to \"{ topLevelBankFilter }\"", {
|
|
268
|
+
topLevelBankFilter: _this.topLevelBankFilterName()
|
|
269
|
+
});
|
|
268
270
|
} else if (_this.props.scopeType === 'this_account') {
|
|
269
|
-
message = (0, _formatMessage.default)("Your filter is set to \"This Account\" which will narrow what you can search for.\n Try adjusting the filter to \"
|
|
271
|
+
message = (0, _formatMessage.default)("Your filter is set to \"This Account\" which will narrow what you can search for.\n Try adjusting the filter to \"{ topLevelBankFilter }\"", {
|
|
272
|
+
topLevelBankFilter: _this.topLevelBankFilterName()
|
|
273
|
+
});
|
|
270
274
|
} else if (_this.props.scopeType === 'account') {
|
|
271
|
-
message = (0, _formatMessage.default)("Your filter is set to \"Institution\" which will narrow what you can search for.\n Try adjusting the filter to \"
|
|
275
|
+
message = (0, _formatMessage.default)("Your filter is set to \"Institution\" which will narrow what you can search for.\n Try adjusting the filter to \"{ topLevelBankFilter }\"", {
|
|
276
|
+
topLevelBankFilter: _this.topLevelBankFilterName()
|
|
277
|
+
});
|
|
272
278
|
}
|
|
273
279
|
|
|
274
280
|
return (0, _emotion.jsx)(_uiBillboard.Billboard, {
|
|
@@ -299,26 +305,31 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
299
305
|
if (prevProps.sortBy !== this.props.sortBy || prevProps.sortOrder !== this.props.sortOrder || prevProps.searchTerms !== this.props.searchTerms || prevProps.scopeType !== this.props.scopeType || !(0, _isEqual.default)(prevProps.searchSelection, this.props.searchSelection)) {
|
|
300
306
|
this.props.clear(_quizCommon.BANKS_BANK_PAGINATION);
|
|
301
307
|
}
|
|
302
|
-
} // We only care about displaying the account search for the Institution Banks and
|
|
308
|
+
} // We only care about displaying the account search for the Institution Banks and Shared with Me filters
|
|
303
309
|
|
|
310
|
+
}, {
|
|
311
|
+
key: "topLevelBankFilterName",
|
|
312
|
+
value: function topLevelBankFilterName() {
|
|
313
|
+
return this.props.subAccountBankSharingEnabled ? (0, _formatMessage.default)('Shared with Me') : (0, _formatMessage.default)('All Banks');
|
|
314
|
+
}
|
|
304
315
|
}, {
|
|
305
316
|
key: "renderFilters",
|
|
306
317
|
value: function renderFilters() {
|
|
307
318
|
var scopeOptions = [{
|
|
308
319
|
slug: 'user',
|
|
309
|
-
translation: this.
|
|
320
|
+
translation: this.topLevelBankFilterName()
|
|
310
321
|
}, {
|
|
311
322
|
slug: 'account',
|
|
312
323
|
translation: (0, _formatMessage.default)('Institution Banks')
|
|
313
324
|
}, {
|
|
314
325
|
slug: 'courses',
|
|
315
|
-
translation: this.props.
|
|
326
|
+
translation: this.props.subAccountBankSharingEnabled ? (0, _formatMessage.default)('Shared with Courses') : (0, _formatMessage.default)('Banks Shared to Course')
|
|
316
327
|
}];
|
|
317
328
|
|
|
318
329
|
if (this.props.scope.uuid) {
|
|
319
330
|
scopeOptions.push({
|
|
320
331
|
slug: 'course',
|
|
321
|
-
translation:
|
|
332
|
+
translation: (0, _formatMessage.default)('This Course')
|
|
322
333
|
});
|
|
323
334
|
}
|
|
324
335
|
|
|
@@ -544,7 +555,6 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
544
555
|
// can be from consumer
|
|
545
556
|
navigateToBuild: _propTypes.default.func,
|
|
546
557
|
// from consumer
|
|
547
|
-
newItemBankFilterNamesEnabled: _propTypes.default.bool,
|
|
548
558
|
onShare: _propTypes.default.func,
|
|
549
559
|
// from consumer
|
|
550
560
|
openModal: _propTypes.default.func.isRequired,
|
|
@@ -597,7 +607,6 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
597
607
|
sortOrder: 'ascending',
|
|
598
608
|
searchTerms: null,
|
|
599
609
|
searchSelection: [],
|
|
600
|
-
newItemBankFilterNamesEnabled: false,
|
|
601
610
|
usedByCourseEnabled: false,
|
|
602
611
|
itemBankSearchTableEnabled: false,
|
|
603
612
|
subAccountBankSharingEnabled: false,
|
|
@@ -189,7 +189,7 @@ var BanksList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
189
189
|
name: bank.title
|
|
190
190
|
}));
|
|
191
191
|
|
|
192
|
-
_this.props.addInfo((0, _formatMessage.default)('Creating "{name} Copy". Duplicate will appear in \'
|
|
192
|
+
_this.props.addInfo((0, _formatMessage.default)('Creating "{name} Copy". Duplicate will appear in \'Shared with Me\' filter.', {
|
|
193
193
|
name: bank.title
|
|
194
194
|
}));
|
|
195
195
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.11.4-rc.
|
|
3
|
+
"version": "20.11.4-rc.7+e68ee0c55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@instructure/emotion": "^8.51.0",
|
|
45
45
|
"@instructure/grading-utils": "^1.0.0",
|
|
46
|
-
"@instructure/outcomes-ui": "^3.2.
|
|
47
|
-
"@instructure/quiz-common": "20.11.4-rc.
|
|
48
|
-
"@instructure/quiz-i18n": "20.11.4-rc.
|
|
49
|
-
"@instructure/quiz-interactions": "20.11.4-rc.
|
|
50
|
-
"@instructure/quiz-number-input": "20.11.4-rc.
|
|
51
|
-
"@instructure/quiz-rce": "20.11.4-rc.
|
|
46
|
+
"@instructure/outcomes-ui": "^3.2.2",
|
|
47
|
+
"@instructure/quiz-common": "20.11.4-rc.7+e68ee0c55",
|
|
48
|
+
"@instructure/quiz-i18n": "20.11.4-rc.7+e68ee0c55",
|
|
49
|
+
"@instructure/quiz-interactions": "20.11.4-rc.7+e68ee0c55",
|
|
50
|
+
"@instructure/quiz-number-input": "20.11.4-rc.7+e68ee0c55",
|
|
51
|
+
"@instructure/quiz-rce": "20.11.4-rc.7+e68ee0c55",
|
|
52
52
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
53
53
|
"@instructure/ui-alerts": "^8.51.0",
|
|
54
54
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"file-saver": "~2.0.5",
|
|
113
113
|
"humps": "^2.0.0",
|
|
114
114
|
"immutable": "^3.8.1",
|
|
115
|
-
"instructure-validations": "20.11.4-rc.
|
|
115
|
+
"instructure-validations": "20.11.4-rc.7+e68ee0c55",
|
|
116
116
|
"ipaddr.js": "^1.5.4",
|
|
117
117
|
"isomorphic-fetch": "^2.2.0",
|
|
118
118
|
"isuuid": "^0.1.0",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"intl": "^1.2.4",
|
|
164
164
|
"jquery": "^2.2.3",
|
|
165
165
|
"most-subject": "^5.3.0",
|
|
166
|
-
"quiz-presets": "20.11.4-rc.
|
|
166
|
+
"quiz-presets": "20.11.4-rc.7+e68ee0c55",
|
|
167
167
|
"react": "^16.8.6",
|
|
168
168
|
"react-addons-test-utils": "^15.6.2",
|
|
169
169
|
"react-dom": "^16.8.6",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"publishConfig": {
|
|
180
180
|
"access": "public"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "e68ee0c55d8510335323fcb5773ab376b4dead07"
|
|
183
183
|
}
|