@instructure/quiz-core 20.31.2-snapshot.22 → 20.31.2-snapshot.24
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/components/AsyncSearch/index.js +1 -2
- package/es/banks/components/Banks/index.js +0 -1
- package/es/banks/components/Banks/presenter.js +2 -5
- package/es/banks/components/SharingModal/ShareList/index.js +2 -3
- package/es/banks/components/SharingModal/index.js +0 -1
- package/es/banks/components/SharingModal/presenter.js +1 -5
- package/es/common/components/layout/Page/index.js +4 -2
- package/es/common/components/layout/sidebar/Sidebar/index.js +2 -1
- package/lib/banks/components/AsyncSearch/index.js +1 -2
- package/lib/banks/components/Banks/index.js +0 -1
- package/lib/banks/components/Banks/presenter.js +2 -5
- package/lib/banks/components/SharingModal/ShareList/index.js +2 -3
- package/lib/banks/components/SharingModal/index.js +0 -1
- package/lib/banks/components/SharingModal/presenter.js +1 -5
- package/lib/common/components/layout/Page/index.js +4 -2
- package/lib/common/components/layout/sidebar/Sidebar/index.js +2 -1
- package/package.json +9 -9
|
@@ -153,7 +153,7 @@ export var AsyncSearch = /*#__PURE__*/function (_Component) {
|
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
if (
|
|
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
|
|
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.
|
|
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',
|
|
@@ -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'))),
|
|
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 &&
|
|
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
|
-
})),
|
|
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: '
|
|
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 (
|
|
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
|
|
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.
|
|
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',
|
|
@@ -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'))),
|
|
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 &&
|
|
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
|
-
})),
|
|
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: '
|
|
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.31.2-snapshot.
|
|
3
|
+
"version": "20.31.2-snapshot.24+407ff7c27",
|
|
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": "^20.31.2-snapshot.
|
|
50
|
-
"@instructure/quiz-i18n": "^20.31.2-snapshot.
|
|
51
|
-
"@instructure/quiz-interactions": "^20.31.2-snapshot.
|
|
52
|
-
"@instructure/quiz-number-input": "^20.31.2-snapshot.
|
|
53
|
-
"@instructure/quiz-rce": "^20.31.2-snapshot.
|
|
49
|
+
"@instructure/quiz-common": "^20.31.2-snapshot.24+407ff7c27",
|
|
50
|
+
"@instructure/quiz-i18n": "^20.31.2-snapshot.24+407ff7c27",
|
|
51
|
+
"@instructure/quiz-interactions": "^20.31.2-snapshot.24+407ff7c27",
|
|
52
|
+
"@instructure/quiz-number-input": "^20.31.2-snapshot.24+407ff7c27",
|
|
53
|
+
"@instructure/quiz-rce": "^20.31.2-snapshot.24+407ff7c27",
|
|
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": "^20.31.2-snapshot.
|
|
117
|
+
"instructure-validations": "^20.31.2-snapshot.24+407ff7c27",
|
|
118
118
|
"ipaddr.js": "^1.5.4",
|
|
119
119
|
"isomorphic-fetch": "^2.2.0",
|
|
120
120
|
"isuuid": "^0.1.0",
|
|
@@ -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": "^20.31.2-snapshot.
|
|
166
|
+
"quiz-presets": "^20.31.2-snapshot.24+407ff7c27",
|
|
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": "407ff7c277ee01cdfc1d9615b051418a1eb63be6"
|
|
183
183
|
}
|