@instructure/quiz-core 20.32.0 → 20.34.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.
@@ -153,7 +153,7 @@ export var AsyncSearch = /*#__PURE__*/function (_Component) {
153
153
  });
154
154
  });
155
155
  }
156
- if (_this.props.improvedBankSharingEnabled && shouldSearchCourses) {
156
+ if (shouldSearchCourses) {
157
157
  _this.props.getShareableCourses(value).then(function (shareableCourses) {
158
158
  var filteredCourses = _this.filterOptions(shareableCourses);
159
159
  _this.setState({
@@ -357,7 +357,6 @@ export var AsyncSearch = /*#__PURE__*/function (_Component) {
357
357
  }(Component);
358
358
  AsyncSearch.propTypes = {
359
359
  debounceDelay: PropTypes.number,
360
- improvedBankSharingEnabled: PropTypes.bool.isRequired,
361
360
  minChars: PropTypes.number,
362
361
  onSelectionChange: PropTypes.func.isRequired,
363
362
  getShareableCourses: PropTypes.func,
@@ -18,7 +18,6 @@ function mapStateToProps(state, props) {
18
18
  var rootAccountUuid = state.getIn(['outcomes', 'externalAccountUuid']);
19
19
  return {
20
20
  itemBankSearchTableEnabled: featureOn('item_bank_search_table'),
21
- improvedBankSharingEnabled: featureOn('improved_bank_sharing'),
22
21
  usedByCourseEnabled: featureOn('filter_item_banks_used_by_course'),
23
22
  subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
24
23
  scopeType: scopeType,
@@ -308,7 +308,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
308
308
  width: 4
309
309
  }, jsx(AsyncSearch, {
310
310
  getShareableSubaccounts: this.props.getShareableSubaccounts,
311
- improvedBankSharingEnabled: this.props.improvedBankSharingEnabled,
312
311
  minChars: this.props.minChars,
313
312
  onSelectionChange: this.handleSearchSelectionChange,
314
313
  searchType: SHARED_WITH_ACCOUNT,
@@ -368,7 +367,7 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
368
367
  key: "renderHeader",
369
368
  value: function renderHeader() {
370
369
  return jsx("div", {
371
- css: [this.props.styles.header, !this.props.improvedBankSharingEnabled ? this.props.styles.borderedBottom : {}]
370
+ css: [this.props.styles.header]
372
371
  }, jsx(Heading, {
373
372
  as: this.props.isCompact ? 'h2' : 'h1',
374
373
  level: "h1"
@@ -423,7 +422,7 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
423
422
  returnToUrl: this.props.returnToUrl,
424
423
  scope: this.props.scope,
425
424
  navigateToBuild: this.props.navigateToBuild
426
- })), this.renderHeader(), this.props.improvedBankSharingEnabled && this.renderFilters(), this.renderBanksSearchResults(), jsx(CreateBankModal, {
425
+ })), this.renderHeader(), this.renderFilters(), this.renderBanksSearchResults(), jsx(CreateBankModal, {
427
426
  itemBanksScope: this.props.scope
428
427
  })));
429
428
  }
@@ -444,7 +443,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
444
443
  }),
445
444
  // from consumer
446
445
  clear: PropTypes.func.isRequired,
447
- improvedBankSharingEnabled: PropTypes.bool,
448
446
  getBanks: PropTypes.func.isRequired,
449
447
  getCourseInfo: PropTypes.func,
450
448
  // from consumer
@@ -512,7 +510,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
512
510
  onShare: function onShare() {},
513
511
  scope: {},
514
512
  returnToUrl: null,
515
- improvedBankSharingEnabled: false,
516
513
  scopeType: 'user',
517
514
  sortBy: 'name',
518
515
  sortOrder: 'ascending',
@@ -4,7 +4,6 @@ import BanksList from "./presenter.js";
4
4
  import Bank from "../../../common/records/Bank.js";
5
5
  import { openModal, withConfirm } from "../../../common/actions/modal.js";
6
6
  import { deleteBank, createBankCloneJob } from "../../api/banks.js";
7
- import { featureOn } from "../../../common/util/featureCheck.js";
8
7
  import { addInfo } from "../../../common/actions/alerts.js";
9
8
  import { addToPolling } from "../../api/copyingBanksPoller.js";
10
9
  export function mapStateToProps(state, props) {
@@ -12,8 +11,7 @@ export function mapStateToProps(state, props) {
12
11
  appContainer: state.getIn(['ui', 'appContainer']),
13
12
  banks: List(props.recordIds).map(function (id) {
14
13
  return Bank.create(state.getIn(['banks', id]));
15
- }),
16
- duplicateItemBanks: featureOn('duplicate_item_banks')
14
+ })
17
15
  };
18
16
  }
19
17
  export default connect(mapStateToProps, {
@@ -263,21 +263,6 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
263
263
  name: bank.title
264
264
  })
265
265
  }));
266
- var duplicateBankOption = jsx(IconButton, {
267
- onClick: _this.openDuplicateBankModal(bank),
268
- name: "Duplicate",
269
- size: "small",
270
- "data-automation": "sdk-duplicate-bank-button",
271
- renderIcon: IconCopyLine,
272
- withBackground: false,
273
- withBorder: false,
274
- title: t('Duplicate bank {name}', {
275
- name: bank.title
276
- }),
277
- screenReaderLabel: t('Duplicate bank {name}', {
278
- name: bank.title
279
- })
280
- });
281
266
  if (bank.status === 'copying') {
282
267
  return jsx("div", {
283
268
  css: _this.props.styles.bankOptions
@@ -289,7 +274,21 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
289
274
  } else {
290
275
  return jsx("div", {
291
276
  css: _this.props.styles.bankOptions
292
- }, _this.props.duplicateItemBanks ? duplicateBankOption : null, jsx(IfFeature, {
277
+ }, jsx(IconButton, {
278
+ onClick: _this.openDuplicateBankModal(bank),
279
+ name: "Duplicate",
280
+ size: "small",
281
+ "data-automation": "sdk-duplicate-bank-button",
282
+ renderIcon: IconCopyLine,
283
+ withBackground: false,
284
+ withBorder: false,
285
+ title: t('Duplicate bank {name}', {
286
+ name: bank.title
287
+ }),
288
+ screenReaderLabel: t('Duplicate bank {name}', {
289
+ name: bank.title
290
+ })
291
+ }), jsx(IfFeature, {
293
292
  name: "item_bank_sharing"
294
293
  }, jsx(IconButton, {
295
294
  onClick: _this.openSharingModal(bank),
@@ -479,7 +478,6 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
479
478
  }),
480
479
  focusCreateBankButton: PropTypes.func.isRequired,
481
480
  deleteBank: PropTypes.func.isRequired,
482
- duplicateItemBanks: PropTypes.bool,
483
481
  getCourseInfo: PropTypes.func,
484
482
  getUserInfo: PropTypes.func,
485
483
  getShareableCourses: PropTypes.func,
@@ -503,8 +501,7 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
503
501
  minChars: void 0,
504
502
  locale: null,
505
503
  timezone: null,
506
- onShare: function onShare() {},
507
- duplicateItemBanks: false
504
+ onShare: function onShare() {}
508
505
  }, _BanksList.contextTypes = {
509
506
  locale: PropTypes.string,
510
507
  timezone: PropTypes.string
@@ -78,7 +78,7 @@ export var ShareList = (_dec = withStyle(generateStyle, null), _dec(_class = (_S
78
78
  })), jsx(Grid.Col, null, jsx("span", {
79
79
  css: isEntityRemoved ? _this.props.styles.labelRemoved : null,
80
80
  "data-automation": isEntityRemoved ? 'sdk-shared-entity-removed' : null
81
- }, entity.get('title'))), _this.props.improvedBankSharingEnabled && jsx(Grid.Col, {
81
+ }, entity.get('title'))), jsx(Grid.Col, {
82
82
  width: "auto"
83
83
  }, jsx(SimpleSelect, {
84
84
  onChange: _this.handlePermissionChange(entity),
@@ -95,7 +95,7 @@ export var ShareList = (_dec = withStyle(generateStyle, null), _dec(_class = (_S
95
95
  value: CAN_EDIT
96
96
  }, t('Can edit')))), jsx(Grid.Col, {
97
97
  width: "auto"
98
- }, _this.props.canEdit && (_this.props.improvedBankSharingEnabled || !isCourse) && _this.renderRemoveButton(entity, isEntityRemoved)));
98
+ }, _this.props.canEdit && _this.renderRemoveButton(entity, isEntityRemoved)));
99
99
  };
100
100
  return _this;
101
101
  }
@@ -117,7 +117,6 @@ export var ShareList = (_dec = withStyle(generateStyle, null), _dec(_class = (_S
117
117
  permission: PropTypes.string.isRequired,
118
118
  id: PropTypes.string.isRequired
119
119
  })).isRequired,
120
- improvedBankSharingEnabled: PropTypes.bool.isRequired,
121
120
  onPermissionChange: PropTypes.func.isRequired,
122
121
  onEntityRemove: PropTypes.func.isRequired,
123
122
  sharedBanks: ImmutablePropTypes.list,
@@ -11,7 +11,6 @@ function mapStateToProps(state, ownProps) {
11
11
  return sharedBank.get('bankId') === ownProps.bank.id;
12
12
  }).toList();
13
13
  return {
14
- improvedBankSharingEnabled: featureOn('improved_bank_sharing'),
15
14
  subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
16
15
  sharedBanks: sharedBanks
17
16
  };
@@ -325,13 +325,12 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
325
325
  getShareableCourses: _this.props.getShareableCourses,
326
326
  getShareableUsers: _this.props.getShareableUsers,
327
327
  getShareableSubaccounts: _this.props.getShareableSubaccounts,
328
- improvedBankSharingEnabled: _this.props.improvedBankSharingEnabled,
329
328
  minChars: _this.props.minChars,
330
329
  onSelectionChange: _this.handleSearchSelectionChange,
331
330
  searchType: searchType,
332
331
  selectedOption: _this.state.searchSelection,
333
332
  selectionFilter: _this.handleSearchFilter
334
- })), _this.props.improvedBankSharingEnabled && jsx(Grid.Col, {
333
+ })), jsx(Grid.Col, {
335
334
  width: "auto"
336
335
  }, jsx(SimpleSelect, {
337
336
  onChange: _this.handleSearchPermissionChange,
@@ -359,7 +358,6 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
359
358
  return jsx(ShareList, {
360
359
  canEdit: _this.props.bank.canEdit(),
361
360
  entities: entities,
362
- improvedBankSharingEnabled: _this.props.improvedBankSharingEnabled,
363
361
  onPermissionChange: _this.handleEntityPermissionChange,
364
362
  onEntityRemove: _this.handleEntityRemove,
365
363
  sharedBanks: _this.props.sharedBanks
@@ -574,7 +572,6 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
574
572
  getUserInfo: PropTypes.func.isRequired,
575
573
  getShareableSubaccounts: PropTypes.func.isRequired,
576
574
  getSubaccountInfo: PropTypes.func.isRequired,
577
- improvedBankSharingEnabled: PropTypes.bool,
578
575
  isOpen: PropTypes.bool,
579
576
  minChars: PropTypes.number,
580
577
  modalTrigger: PropTypes.node,
@@ -593,7 +590,6 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
593
590
  }, _SharingModalPresenter.defaultProps = {
594
591
  bank: null,
595
592
  currentUser: null,
596
- improvedBankSharingEnabled: false,
597
593
  isOpen: false,
598
594
  minChars: void 0,
599
595
  modalTrigger: null,
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
9
9
  import { withStyle, jsx } from '@instructure/emotion';
10
10
  import generateStyle from "./styles.js";
11
11
  import generateComponentTheme from "./theme.js";
12
+ import t from '@instructure/quiz-i18n/es/format-message';
12
13
  export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
13
14
  _inherits(Page, _Component);
14
15
  var _super = _createSuper(Page);
@@ -50,7 +51,8 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
50
51
  tabIndex: "-1",
51
52
  ref: this.props.childrenWrapperRef,
52
53
  role: this.props.contentRole,
53
- css: this.props.styles.childrenWrapper
54
+ css: this.props.styles.childrenWrapper,
55
+ "aria-label": t('Quiz content')
54
56
  }, this.props.children));
55
57
  }
56
58
  }]);
@@ -68,7 +70,7 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
68
70
  makeStyles: PropTypes.func
69
71
  }, _Page.defaultProps = {
70
72
  childrenWrapperRef: function childrenWrapperRef() {},
71
- contentRole: 'main',
73
+ contentRole: 'region',
72
74
  sidebarComponent: null,
73
75
  sidebarOpen: null,
74
76
  sidebarRole: 'navigation',
@@ -290,7 +290,8 @@ export var Sidebar = (_dec = withStyle(generateStyle, generateComponentTheme), _
290
290
  // take the click and scroll to itself when the nav is clicked by SR
291
291
  ,
292
292
  onClick: noop,
293
- id: SIDEBAR_NAV_ID
293
+ id: SIDEBAR_NAV_ID,
294
+ "aria-label": t('Question Navigator')
294
295
  }, this.renderSidebarHeader(), this.renderTotalPointsPossible(), this.renderPinned(), this.renderTitle(), this.renderInstructions(), this.renderResults(), jsx("div", {
295
296
  css: this.props.styles.sidebarContent
296
297
  }, this.props.children)))));
@@ -161,7 +161,7 @@ var AsyncSearch = /*#__PURE__*/function (_Component) {
161
161
  });
162
162
  });
163
163
  }
164
- if (_this.props.improvedBankSharingEnabled && shouldSearchCourses) {
164
+ if (shouldSearchCourses) {
165
165
  _this.props.getShareableCourses(value).then(function (shareableCourses) {
166
166
  var filteredCourses = _this.filterOptions(shareableCourses);
167
167
  _this.setState({
@@ -366,7 +366,6 @@ var AsyncSearch = /*#__PURE__*/function (_Component) {
366
366
  exports.AsyncSearch = AsyncSearch;
367
367
  AsyncSearch.propTypes = {
368
368
  debounceDelay: _propTypes.default.number,
369
- improvedBankSharingEnabled: _propTypes.default.bool.isRequired,
370
369
  minChars: _propTypes.default.number,
371
370
  onSelectionChange: _propTypes.default.func.isRequired,
372
371
  getShareableCourses: _propTypes.default.func,
@@ -25,7 +25,6 @@ function mapStateToProps(state, props) {
25
25
  var rootAccountUuid = state.getIn(['outcomes', 'externalAccountUuid']);
26
26
  return {
27
27
  itemBankSearchTableEnabled: (0, _featureCheck.featureOn)('item_bank_search_table'),
28
- improvedBankSharingEnabled: (0, _featureCheck.featureOn)('improved_bank_sharing'),
29
28
  usedByCourseEnabled: (0, _featureCheck.featureOn)('filter_item_banks_used_by_course'),
30
29
  subAccountBankSharingEnabled: (0, _featureCheck.featureOn)('sub_account_bank_sharing'),
31
30
  scopeType: scopeType,
@@ -316,7 +316,6 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
316
316
  width: 4
317
317
  }, (0, _emotion.jsx)(_index7.default, {
318
318
  getShareableSubaccounts: this.props.getShareableSubaccounts,
319
- improvedBankSharingEnabled: this.props.improvedBankSharingEnabled,
320
319
  minChars: this.props.minChars,
321
320
  onSelectionChange: this.handleSearchSelectionChange,
322
321
  searchType: _quizCommon.SHARED_WITH_ACCOUNT,
@@ -376,7 +375,7 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
376
375
  key: "renderHeader",
377
376
  value: function renderHeader() {
378
377
  return (0, _emotion.jsx)("div", {
379
- css: [this.props.styles.header, !this.props.improvedBankSharingEnabled ? this.props.styles.borderedBottom : {}]
378
+ css: [this.props.styles.header]
380
379
  }, (0, _emotion.jsx)(_uiHeading.Heading, {
381
380
  as: this.props.isCompact ? 'h2' : 'h1',
382
381
  level: "h1"
@@ -431,7 +430,7 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
431
430
  returnToUrl: this.props.returnToUrl,
432
431
  scope: this.props.scope,
433
432
  navigateToBuild: this.props.navigateToBuild
434
- })), this.renderHeader(), this.props.improvedBankSharingEnabled && this.renderFilters(), this.renderBanksSearchResults(), (0, _emotion.jsx)(_index5.default, {
433
+ })), this.renderHeader(), this.renderFilters(), this.renderBanksSearchResults(), (0, _emotion.jsx)(_index5.default, {
435
434
  itemBanksScope: this.props.scope
436
435
  })));
437
436
  }
@@ -452,7 +451,6 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
452
451
  }),
453
452
  // from consumer
454
453
  clear: _propTypes.default.func.isRequired,
455
- improvedBankSharingEnabled: _propTypes.default.bool,
456
454
  getBanks: _propTypes.default.func.isRequired,
457
455
  getCourseInfo: _propTypes.default.func,
458
456
  // from consumer
@@ -520,7 +518,6 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
520
518
  onShare: function onShare() {},
521
519
  scope: {},
522
520
  returnToUrl: null,
523
- improvedBankSharingEnabled: false,
524
521
  scopeType: 'user',
525
522
  sortBy: 'name',
526
523
  sortOrder: 'ascending',
@@ -12,7 +12,6 @@ var _presenter = _interopRequireDefault(require("./presenter.js"));
12
12
  var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
13
13
  var _modal = require("../../../common/actions/modal.js");
14
14
  var _banks = require("../../api/banks.js");
15
- var _featureCheck = require("../../../common/util/featureCheck.js");
16
15
  var _alerts = require("../../../common/actions/alerts.js");
17
16
  var _copyingBanksPoller = require("../../api/copyingBanksPoller.js");
18
17
  function mapStateToProps(state, props) {
@@ -20,8 +19,7 @@ function mapStateToProps(state, props) {
20
19
  appContainer: state.getIn(['ui', 'appContainer']),
21
20
  banks: (0, _immutable.List)(props.recordIds).map(function (id) {
22
21
  return _Bank.default.create(state.getIn(['banks', id]));
23
- }),
24
- duplicateItemBanks: (0, _featureCheck.featureOn)('duplicate_item_banks')
22
+ })
25
23
  };
26
24
  }
27
25
  var _default = (0, _reactRedux.connect)(mapStateToProps, {
@@ -271,21 +271,6 @@ var BanksList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
271
271
  name: bank.title
272
272
  })
273
273
  }));
274
- var duplicateBankOption = (0, _emotion.jsx)(_uiButtons.IconButton, {
275
- onClick: _this.openDuplicateBankModal(bank),
276
- name: "Duplicate",
277
- size: "small",
278
- "data-automation": "sdk-duplicate-bank-button",
279
- renderIcon: _uiIcons.IconCopyLine,
280
- withBackground: false,
281
- withBorder: false,
282
- title: (0, _formatMessage.default)('Duplicate bank {name}', {
283
- name: bank.title
284
- }),
285
- screenReaderLabel: (0, _formatMessage.default)('Duplicate bank {name}', {
286
- name: bank.title
287
- })
288
- });
289
274
  if (bank.status === 'copying') {
290
275
  return (0, _emotion.jsx)("div", {
291
276
  css: _this.props.styles.bankOptions
@@ -297,7 +282,21 @@ var BanksList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
297
282
  } else {
298
283
  return (0, _emotion.jsx)("div", {
299
284
  css: _this.props.styles.bankOptions
300
- }, _this.props.duplicateItemBanks ? duplicateBankOption : null, (0, _emotion.jsx)(_index.default, {
285
+ }, (0, _emotion.jsx)(_uiButtons.IconButton, {
286
+ onClick: _this.openDuplicateBankModal(bank),
287
+ name: "Duplicate",
288
+ size: "small",
289
+ "data-automation": "sdk-duplicate-bank-button",
290
+ renderIcon: _uiIcons.IconCopyLine,
291
+ withBackground: false,
292
+ withBorder: false,
293
+ title: (0, _formatMessage.default)('Duplicate bank {name}', {
294
+ name: bank.title
295
+ }),
296
+ screenReaderLabel: (0, _formatMessage.default)('Duplicate bank {name}', {
297
+ name: bank.title
298
+ })
299
+ }), (0, _emotion.jsx)(_index.default, {
301
300
  name: "item_bank_sharing"
302
301
  }, (0, _emotion.jsx)(_uiButtons.IconButton, {
303
302
  onClick: _this.openSharingModal(bank),
@@ -487,7 +486,6 @@ var BanksList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
487
486
  }),
488
487
  focusCreateBankButton: _propTypes.default.func.isRequired,
489
488
  deleteBank: _propTypes.default.func.isRequired,
490
- duplicateItemBanks: _propTypes.default.bool,
491
489
  getCourseInfo: _propTypes.default.func,
492
490
  getUserInfo: _propTypes.default.func,
493
491
  getShareableCourses: _propTypes.default.func,
@@ -511,8 +509,7 @@ var BanksList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
511
509
  minChars: void 0,
512
510
  locale: null,
513
511
  timezone: null,
514
- onShare: function onShare() {},
515
- duplicateItemBanks: false
512
+ onShare: function onShare() {}
516
513
  }, _BanksList.contextTypes = {
517
514
  locale: _propTypes.default.string,
518
515
  timezone: _propTypes.default.string
@@ -85,7 +85,7 @@ var ShareList = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_cl
85
85
  })), (0, _emotion.jsx)(_uiGrid.Grid.Col, null, (0, _emotion.jsx)("span", {
86
86
  css: isEntityRemoved ? _this.props.styles.labelRemoved : null,
87
87
  "data-automation": isEntityRemoved ? 'sdk-shared-entity-removed' : null
88
- }, entity.get('title'))), _this.props.improvedBankSharingEnabled && (0, _emotion.jsx)(_uiGrid.Grid.Col, {
88
+ }, entity.get('title'))), (0, _emotion.jsx)(_uiGrid.Grid.Col, {
89
89
  width: "auto"
90
90
  }, (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect, {
91
91
  onChange: _this.handlePermissionChange(entity),
@@ -102,7 +102,7 @@ var ShareList = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_cl
102
102
  value: _quizCommon.CAN_EDIT
103
103
  }, (0, _formatMessage.default)('Can edit')))), (0, _emotion.jsx)(_uiGrid.Grid.Col, {
104
104
  width: "auto"
105
- }, _this.props.canEdit && (_this.props.improvedBankSharingEnabled || !isCourse) && _this.renderRemoveButton(entity, isEntityRemoved)));
105
+ }, _this.props.canEdit && _this.renderRemoveButton(entity, isEntityRemoved)));
106
106
  };
107
107
  return _this;
108
108
  }
@@ -124,7 +124,6 @@ var ShareList = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_cl
124
124
  permission: _propTypes.default.string.isRequired,
125
125
  id: _propTypes.default.string.isRequired
126
126
  })).isRequired,
127
- improvedBankSharingEnabled: _propTypes.default.bool.isRequired,
128
127
  onPermissionChange: _propTypes.default.func.isRequired,
129
128
  onEntityRemove: _propTypes.default.func.isRequired,
130
129
  sharedBanks: _reactImmutableProptypes.default.list,
@@ -18,7 +18,6 @@ function mapStateToProps(state, ownProps) {
18
18
  return sharedBank.get('bankId') === ownProps.bank.id;
19
19
  }).toList();
20
20
  return {
21
- improvedBankSharingEnabled: (0, _featureCheck.featureOn)('improved_bank_sharing'),
22
21
  subAccountBankSharingEnabled: (0, _featureCheck.featureOn)('sub_account_bank_sharing'),
23
22
  sharedBanks: sharedBanks
24
23
  };
@@ -333,13 +333,12 @@ var SharingModalPresenter = (_dec = (0, _emotion.withStyle)(_styles.default, _th
333
333
  getShareableCourses: _this.props.getShareableCourses,
334
334
  getShareableUsers: _this.props.getShareableUsers,
335
335
  getShareableSubaccounts: _this.props.getShareableSubaccounts,
336
- improvedBankSharingEnabled: _this.props.improvedBankSharingEnabled,
337
336
  minChars: _this.props.minChars,
338
337
  onSelectionChange: _this.handleSearchSelectionChange,
339
338
  searchType: searchType,
340
339
  selectedOption: _this.state.searchSelection,
341
340
  selectionFilter: _this.handleSearchFilter
342
- })), _this.props.improvedBankSharingEnabled && (0, _emotion.jsx)(_uiGrid.Grid.Col, {
341
+ })), (0, _emotion.jsx)(_uiGrid.Grid.Col, {
343
342
  width: "auto"
344
343
  }, (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect, {
345
344
  onChange: _this.handleSearchPermissionChange,
@@ -367,7 +366,6 @@ var SharingModalPresenter = (_dec = (0, _emotion.withStyle)(_styles.default, _th
367
366
  return (0, _emotion.jsx)(_index.default, {
368
367
  canEdit: _this.props.bank.canEdit(),
369
368
  entities: entities,
370
- improvedBankSharingEnabled: _this.props.improvedBankSharingEnabled,
371
369
  onPermissionChange: _this.handleEntityPermissionChange,
372
370
  onEntityRemove: _this.handleEntityRemove,
373
371
  sharedBanks: _this.props.sharedBanks
@@ -582,7 +580,6 @@ var SharingModalPresenter = (_dec = (0, _emotion.withStyle)(_styles.default, _th
582
580
  getUserInfo: _propTypes.default.func.isRequired,
583
581
  getShareableSubaccounts: _propTypes.default.func.isRequired,
584
582
  getSubaccountInfo: _propTypes.default.func.isRequired,
585
- improvedBankSharingEnabled: _propTypes.default.bool,
586
583
  isOpen: _propTypes.default.bool,
587
584
  minChars: _propTypes.default.number,
588
585
  modalTrigger: _propTypes.default.node,
@@ -601,7 +598,6 @@ var SharingModalPresenter = (_dec = (0, _emotion.withStyle)(_styles.default, _th
601
598
  }, _SharingModalPresenter.defaultProps = {
602
599
  bank: null,
603
600
  currentUser: null,
604
- improvedBankSharingEnabled: false,
605
601
  isOpen: false,
606
602
  minChars: void 0,
607
603
  modalTrigger: null,
@@ -14,6 +14,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _emotion = require("@instructure/emotion");
15
15
  var _styles = _interopRequireDefault(require("./styles.js"));
16
16
  var _theme = _interopRequireDefault(require("./theme.js"));
17
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
17
18
  var _dec, _class, _Page;
18
19
  /** @jsx jsx */
19
20
  var Page = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
@@ -57,7 +58,8 @@ var Page = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
57
58
  tabIndex: "-1",
58
59
  ref: this.props.childrenWrapperRef,
59
60
  role: this.props.contentRole,
60
- css: this.props.styles.childrenWrapper
61
+ css: this.props.styles.childrenWrapper,
62
+ "aria-label": (0, _formatMessage.default)('Quiz content')
61
63
  }, this.props.children));
62
64
  }
63
65
  }]);
@@ -75,7 +77,7 @@ var Page = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
75
77
  makeStyles: _propTypes.default.func
76
78
  }, _Page.defaultProps = {
77
79
  childrenWrapperRef: function childrenWrapperRef() {},
78
- contentRole: 'main',
80
+ contentRole: 'region',
79
81
  sidebarComponent: null,
80
82
  sidebarOpen: null,
81
83
  sidebarRole: 'navigation',
@@ -297,7 +297,8 @@ var Sidebar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
297
297
  // take the click and scroll to itself when the nav is clicked by SR
298
298
  ,
299
299
  onClick: _noop.default,
300
- id: _quizCommon.SIDEBAR_NAV_ID
300
+ id: _quizCommon.SIDEBAR_NAV_ID,
301
+ "aria-label": (0, _formatMessage.default)('Question Navigator')
301
302
  }, this.renderSidebarHeader(), this.renderTotalPointsPossible(), this.renderPinned(), this.renderTitle(), this.renderInstructions(), this.renderResults(), (0, _emotion.jsx)("div", {
302
303
  css: this.props.styles.sidebarContent
303
304
  }, this.props.children)))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.32.0",
3
+ "version": "20.34.1-rc.7+b77ac73b3",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -46,11 +46,11 @@
46
46
  "@instructure/emotion": "^8.56.3",
47
47
  "@instructure/grading-utils": "^1.0.0",
48
48
  "@instructure/outcomes-ui": "^3.2.2",
49
- "@instructure/quiz-common": "workspace:^20.32.0",
50
- "@instructure/quiz-i18n": "workspace:^20.32.0",
51
- "@instructure/quiz-interactions": "workspace:^20.32.0",
52
- "@instructure/quiz-number-input": "workspace:^20.32.0",
53
- "@instructure/quiz-rce": "workspace:^20.32.0",
49
+ "@instructure/quiz-common": "^20.34.1-rc.7+b77ac73b3",
50
+ "@instructure/quiz-i18n": "^20.34.1-rc.7+b77ac73b3",
51
+ "@instructure/quiz-interactions": "^20.34.1-rc.7+b77ac73b3",
52
+ "@instructure/quiz-number-input": "^20.34.1-rc.7+b77ac73b3",
53
+ "@instructure/quiz-rce": "^20.34.1-rc.7+b77ac73b3",
54
54
  "@instructure/ui-a11y-content": "^8.56.3",
55
55
  "@instructure/ui-alerts": "^8.56.3",
56
56
  "@instructure/ui-avatar": "^8.56.3",
@@ -114,7 +114,7 @@
114
114
  "file-saver": "~2.0.5",
115
115
  "humps": "^2.0.0",
116
116
  "immutable": "^3.8.1",
117
- "instructure-validations": "workspace:^20.32.0",
117
+ "instructure-validations": "^20.34.1-rc.7+b77ac73b3",
118
118
  "ipaddr.js": "^1.5.4",
119
119
  "isomorphic-fetch": "^2.2.0",
120
120
  "isuuid": "^0.1.0",
@@ -145,7 +145,7 @@
145
145
  "uuid": "^3.2.1"
146
146
  },
147
147
  "devDependencies": {
148
- "@instructure/quiz-scripts": "workspace:^20.32.0",
148
+ "@instructure/quiz-scripts": "^20.34.0",
149
149
  "@instructure/ui-axe-check": "^8.56.3",
150
150
  "@instructure/ui-babel-preset": "^7.22.1",
151
151
  "@instructure/ui-test-utils": "^7.22.1",
@@ -163,7 +163,7 @@
163
163
  "jquery": "^2.2.3",
164
164
  "karma-junit-reporter": "^2.0.1",
165
165
  "most-subject": "^5.3.0",
166
- "quiz-presets": "workspace:^20.32.0",
166
+ "quiz-presets": "^20.34.1-rc.7+b77ac73b3",
167
167
  "react": "^16.8.6",
168
168
  "react-addons-test-utils": "^15.6.2",
169
169
  "react-dom": "^16.8.6",
@@ -178,5 +178,6 @@
178
178
  },
179
179
  "publishConfig": {
180
180
  "access": "public"
181
- }
181
+ },
182
+ "gitHead": "b77ac73b3f23b1228f415d9ceda08d5fae510187"
182
183
  }