@instructure/quiz-core 17.25.2-rc.1 → 17.25.2-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.
@@ -17,6 +17,7 @@ function mapStateToProps(state, props) {
17
17
  var searchTerms = pageData.get('searchTerms', null);
18
18
  return {
19
19
  filtersEnabled: featureOn('improved_bank_sharing'),
20
+ newItemBankFilterNamesEnabled: featureOn('new_item_bank_filter_names'),
20
21
  scopeType: scopeType,
21
22
  sortBy: sortBy,
22
23
  sortOrder: sortOrder,
@@ -223,13 +223,13 @@ export var Banks = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
223
223
  value: function renderFilters() {
224
224
  var scopeOptions = [{
225
225
  slug: 'user',
226
- translation: t('All My Banks')
226
+ translation: this.props.newItemBankFilterNamesEnabled ? t('All Banks') : t('All My Banks')
227
227
  }, {
228
228
  slug: 'account',
229
229
  translation: t('Institution Banks')
230
230
  }, {
231
231
  slug: 'courses',
232
- translation: t('All My Course Banks')
232
+ translation: this.props.newItemBankFilterNamesEnabled ? t('Banks Shared to Course') : t('All My Course Banks')
233
233
  }];
234
234
 
235
235
  if (this.props.scopeType == 'course') {
@@ -414,7 +414,8 @@ export var Banks = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
414
414
  scopeType: PropTypes.string,
415
415
  sortBy: PropTypes.string,
416
416
  sortOrder: PropTypes.string,
417
- searchTerms: PropTypes.string
417
+ searchTerms: PropTypes.string,
418
+ newItemBankFilterNamesEnabled: PropTypes.bool
418
419
  }, _class2.defaultProps = {
419
420
  currentUser: null,
420
421
  getCourseInfo: null,
@@ -433,7 +434,8 @@ export var Banks = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
433
434
  scopeType: 'user',
434
435
  sortBy: 'name',
435
436
  sortOrder: 'ASC',
436
- searchTerms: null
437
+ searchTerms: null,
438
+ newItemBankFilterNamesEnabled: false
437
439
  }, _class2.contextTypes = {
438
440
  locale: PropTypes.string
439
441
  }, _temp)) || _class);
@@ -35,6 +35,7 @@ function mapStateToProps(state, props) {
35
35
  var searchTerms = pageData.get('searchTerms', null);
36
36
  return {
37
37
  filtersEnabled: (0, _featureCheck.featureOn)('improved_bank_sharing'),
38
+ newItemBankFilterNamesEnabled: (0, _featureCheck.featureOn)('new_item_bank_filter_names'),
38
39
  scopeType: scopeType,
39
40
  sortBy: sortBy,
40
41
  sortOrder: sortOrder,
@@ -259,13 +259,13 @@ var Banks = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_c
259
259
  value: function renderFilters() {
260
260
  var scopeOptions = [{
261
261
  slug: 'user',
262
- translation: (0, _formatMessage.default)('All My Banks')
262
+ translation: this.props.newItemBankFilterNamesEnabled ? (0, _formatMessage.default)('All Banks') : (0, _formatMessage.default)('All My Banks')
263
263
  }, {
264
264
  slug: 'account',
265
265
  translation: (0, _formatMessage.default)('Institution Banks')
266
266
  }, {
267
267
  slug: 'courses',
268
- translation: (0, _formatMessage.default)('All My Course Banks')
268
+ translation: this.props.newItemBankFilterNamesEnabled ? (0, _formatMessage.default)('Banks Shared to Course') : (0, _formatMessage.default)('All My Course Banks')
269
269
  }];
270
270
 
271
271
  if (this.props.scopeType == 'course') {
@@ -452,7 +452,8 @@ var Banks = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_c
452
452
  scopeType: _propTypes.default.string,
453
453
  sortBy: _propTypes.default.string,
454
454
  sortOrder: _propTypes.default.string,
455
- searchTerms: _propTypes.default.string
455
+ searchTerms: _propTypes.default.string,
456
+ newItemBankFilterNamesEnabled: _propTypes.default.bool
456
457
  }, _class2.defaultProps = {
457
458
  currentUser: null,
458
459
  getCourseInfo: null,
@@ -471,7 +472,8 @@ var Banks = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_c
471
472
  scopeType: 'user',
472
473
  sortBy: 'name',
473
474
  sortOrder: 'ASC',
474
- searchTerms: null
475
+ searchTerms: null,
476
+ newItemBankFilterNamesEnabled: false
475
477
  }, _class2.contextTypes = {
476
478
  locale: _propTypes.default.string
477
479
  }, _temp)) || _class);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.25.2-rc.1+d227a60b2",
3
+ "version": "17.25.2-rc.5+0b62e8214",
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.25.2-rc.1+d227a60b2",
45
- "@instructure/quiz-i18n": "17.25.2-rc.1+d227a60b2",
46
- "@instructure/quiz-interactions": "17.25.2-rc.1+d227a60b2",
47
- "@instructure/quiz-number-input": "17.25.2-rc.1+d227a60b2",
48
- "@instructure/quiz-rce": "17.25.2-rc.1+d227a60b2",
44
+ "@instructure/quiz-common": "17.25.2-rc.5+0b62e8214",
45
+ "@instructure/quiz-i18n": "17.25.2-rc.5+0b62e8214",
46
+ "@instructure/quiz-interactions": "17.25.2-rc.5+0b62e8214",
47
+ "@instructure/quiz-number-input": "17.25.2-rc.5+0b62e8214",
48
+ "@instructure/quiz-rce": "17.25.2-rc.5+0b62e8214",
49
49
  "@instructure/ui-a11y-content": "^7.11.0",
50
50
  "@instructure/ui-alerts": "^7.11.0",
51
51
  "@instructure/ui-avatar": "^7.11.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.25.2-rc.1+d227a60b2",
109
+ "instructure-validations": "17.25.2-rc.5+0b62e8214",
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.25.2-rc.1+d227a60b2",
140
+ "@instructure/quiz-scripts": "17.25.2-rc.5+0b62e8214",
141
141
  "@instructure/ui-axe-check": "^7.11.0",
142
142
  "@instructure/ui-babel-preset": "^7.11.0",
143
143
  "@instructure/ui-karma-config": "^7.11.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.25.2-rc.1+d227a60b2",
159
+ "quiz-presets": "17.25.2-rc.5+0b62e8214",
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": "d227a60b245f8fc6bacb118ac778521e2dc76c54"
175
+ "gitHead": "0b62e82148e7285b989ce27874b403a47c5f7bd5"
176
176
  }