@instructure/quiz-core 17.60.0 → 17.60.1-rc.0
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/Banks/presenter.js +1 -0
- package/es/banks/components/BanksList/presenter.js +1 -0
- package/es/banks/components/SharingModal/presenter.js +2 -2
- package/es/building/components/resources/BanksTray/presenter.js +1 -0
- package/lib/banks/components/Banks/presenter.js +1 -0
- package/lib/banks/components/BanksList/presenter.js +1 -0
- package/lib/banks/components/SharingModal/presenter.js +2 -2
- package/lib/building/components/resources/BanksTray/presenter.js +1 -0
- package/package.json +10 -10
|
@@ -377,6 +377,7 @@ export var Banks = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
|
|
|
377
377
|
closeTray: PropTypes.func,
|
|
378
378
|
createBank: PropTypes.func.isRequired,
|
|
379
379
|
currentUser: PropTypes.shape({
|
|
380
|
+
bank_admin: PropTypes.bool,
|
|
380
381
|
email: PropTypes.string,
|
|
381
382
|
enrollment_names: PropTypes.arrayOf(PropTypes.string),
|
|
382
383
|
full_name: PropTypes.string,
|
|
@@ -328,6 +328,7 @@ export var BanksList = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
328
328
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
329
329
|
banks: ImmutablePropTypes.list.isRequired,
|
|
330
330
|
currentUser: PropTypes.shape({
|
|
331
|
+
bank_admin: PropTypes.bool,
|
|
331
332
|
email: PropTypes.string,
|
|
332
333
|
enrollment_names: PropTypes.arrayOf(PropTypes.string),
|
|
333
334
|
full_name: PropTypes.string,
|
|
@@ -453,9 +453,8 @@ export var SharingModalPresenter = (_dec = themeable(theme, styles), _dec(_class
|
|
|
453
453
|
var _this$props2 = this.props,
|
|
454
454
|
currentUser = _this$props2.currentUser,
|
|
455
455
|
improvedBankSharingEnabled = _this$props2.improvedBankSharingEnabled;
|
|
456
|
-
var roles = currentUser && currentUser.enrollment_names || [];
|
|
457
456
|
|
|
458
|
-
if (improvedBankSharingEnabled &&
|
|
457
|
+
if (improvedBankSharingEnabled && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.bank_admin)) {
|
|
459
458
|
return /*#__PURE__*/React.createElement(View, {
|
|
460
459
|
as: "div",
|
|
461
460
|
margin: "0 0 medium 0"
|
|
@@ -555,6 +554,7 @@ export var SharingModalPresenter = (_dec = themeable(theme, styles), _dec(_class
|
|
|
555
554
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
556
555
|
bank: ImmutablePropTypes.record.isRequired,
|
|
557
556
|
currentUser: PropTypes.shape({
|
|
557
|
+
bank_admin: PropTypes.bool,
|
|
558
558
|
email: PropTypes.string,
|
|
559
559
|
enrollment_names: PropTypes.arrayOf(PropTypes.string),
|
|
560
560
|
full_name: PropTypes.string,
|
|
@@ -170,6 +170,7 @@ BanksTray.propTypes = {
|
|
|
170
170
|
activeBankEntryId: PropTypes.string,
|
|
171
171
|
clear: PropTypes.func.isRequired,
|
|
172
172
|
currentUser: PropTypes.shape({
|
|
173
|
+
bank_admin: PropTypes.bool,
|
|
173
174
|
email: PropTypes.string,
|
|
174
175
|
enrollment_names: PropTypes.arrayOf(PropTypes.string),
|
|
175
176
|
full_name: PropTypes.string,
|
|
@@ -416,6 +416,7 @@ var Banks = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_c
|
|
|
416
416
|
closeTray: _propTypes.default.func,
|
|
417
417
|
createBank: _propTypes.default.func.isRequired,
|
|
418
418
|
currentUser: _propTypes.default.shape({
|
|
419
|
+
bank_admin: _propTypes.default.bool,
|
|
419
420
|
email: _propTypes.default.string,
|
|
420
421
|
enrollment_names: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
421
422
|
full_name: _propTypes.default.string,
|
|
@@ -365,6 +365,7 @@ var BanksList = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
365
365
|
appContainer: _CustomPropTypes.default.selectors.isRequired,
|
|
366
366
|
banks: _reactImmutableProptypes.default.list.isRequired,
|
|
367
367
|
currentUser: _propTypes.default.shape({
|
|
368
|
+
bank_admin: _propTypes.default.bool,
|
|
368
369
|
email: _propTypes.default.string,
|
|
369
370
|
enrollment_names: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
370
371
|
full_name: _propTypes.default.string,
|
|
@@ -494,9 +494,8 @@ var SharingModalPresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default,
|
|
|
494
494
|
var _this$props2 = this.props,
|
|
495
495
|
currentUser = _this$props2.currentUser,
|
|
496
496
|
improvedBankSharingEnabled = _this$props2.improvedBankSharingEnabled;
|
|
497
|
-
var roles = currentUser && currentUser.enrollment_names || [];
|
|
498
497
|
|
|
499
|
-
if (improvedBankSharingEnabled &&
|
|
498
|
+
if (improvedBankSharingEnabled && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.bank_admin)) {
|
|
500
499
|
return /*#__PURE__*/_react.default.createElement(_uiView.View, {
|
|
501
500
|
as: "div",
|
|
502
501
|
margin: "0 0 medium 0"
|
|
@@ -595,6 +594,7 @@ var SharingModalPresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default,
|
|
|
595
594
|
appContainer: _CustomPropTypes.default.selectors.isRequired,
|
|
596
595
|
bank: _reactImmutableProptypes.default.record.isRequired,
|
|
597
596
|
currentUser: _propTypes.default.shape({
|
|
597
|
+
bank_admin: _propTypes.default.bool,
|
|
598
598
|
email: _propTypes.default.string,
|
|
599
599
|
enrollment_names: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
600
600
|
full_name: _propTypes.default.string,
|
|
@@ -199,6 +199,7 @@ BanksTray.propTypes = {
|
|
|
199
199
|
activeBankEntryId: _propTypes.default.string,
|
|
200
200
|
clear: _propTypes.default.func.isRequired,
|
|
201
201
|
currentUser: _propTypes.default.shape({
|
|
202
|
+
bank_admin: _propTypes.default.bool,
|
|
202
203
|
email: _propTypes.default.string,
|
|
203
204
|
enrollment_names: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
204
205
|
full_name: _propTypes.default.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.60.0",
|
|
3
|
+
"version": "17.60.1-rc.0+e62c7066f",
|
|
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.8",
|
|
44
|
-
"@instructure/quiz-common": "
|
|
45
|
-
"@instructure/quiz-i18n": "
|
|
46
|
-
"@instructure/quiz-interactions": "
|
|
47
|
-
"@instructure/quiz-number-input": "
|
|
48
|
-
"@instructure/quiz-rce": "
|
|
44
|
+
"@instructure/quiz-common": "17.60.1-rc.0+e62c7066f",
|
|
45
|
+
"@instructure/quiz-i18n": "17.60.1-rc.0+e62c7066f",
|
|
46
|
+
"@instructure/quiz-interactions": "17.60.1-rc.0+e62c7066f",
|
|
47
|
+
"@instructure/quiz-number-input": "17.60.1-rc.0+e62c7066f",
|
|
48
|
+
"@instructure/quiz-rce": "17.60.1-rc.0+e62c7066f",
|
|
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": "
|
|
109
|
+
"instructure-validations": "17.60.1-rc.0+e62c7066f",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"uuid": "^3.2.1"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
|
-
"@instructure/quiz-scripts": "
|
|
141
|
+
"@instructure/quiz-scripts": "17.60.0",
|
|
142
142
|
"@instructure/ui-axe-check": "^7.20.0",
|
|
143
143
|
"@instructure/ui-babel-preset": "^7.20.0",
|
|
144
144
|
"@instructure/ui-karma-config": "^7.20.0",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"intl": "^1.2.4",
|
|
158
158
|
"jquery": "^2.2.3",
|
|
159
159
|
"most-subject": "^5.3.0",
|
|
160
|
-
"quiz-presets": "
|
|
160
|
+
"quiz-presets": "17.60.1-rc.0+e62c7066f",
|
|
161
161
|
"react": "^16.8.6",
|
|
162
162
|
"react-addons-test-utils": "^15.6.2",
|
|
163
163
|
"react-dom": "^16.8.6",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"publishConfig": {
|
|
174
174
|
"access": "public"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "e62c7066fff45755442bc69d5d792f30a6be5e58"
|
|
177
177
|
}
|