@instructure/quiz-core 20.37.1 → 21.0.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/BankSearch/presenter.js +1 -2
- package/es/banks/components/CreateBankModal/presenter.js +22 -24
- package/es/banks/components/EditBankModal/presenter.js +24 -22
- package/es/banks/components/SharingModal/presenter.js +0 -4
- package/es/building/api/stimuli.js +2 -1
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +14 -7
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +11 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -2
- package/es/common/actions/modifications.js +3 -2
- package/es/common/components/ConfirmationModal/presenter.js +10 -7
- package/es/common/components/layout/Page/styles.js +13 -1
- package/es/common/components/layout/Page/theme.js +1 -2
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
- package/es/common/components/layout/navbar/index.js +0 -3
- package/es/common/components/layout/sidebar/Sidebar/index.js +26 -4
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +13 -7
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +14 -7
- package/es/common/components/resources/item/ItemEdit/presenter.js +0 -5
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/es/common/components/resources/quiz/instructions/styles.js +5 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +11 -4
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +28 -10
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +1 -5
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +0 -2
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +48 -30
- package/es/common/components/resources/stimulus/StimulusShow/index.js +10 -4
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -7
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +0 -3
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
- package/es/common/components/shared/InteractionTypes/index.js +4 -1
- package/es/common/components/shared/InteractionTypes/presenter.js +38 -15
- package/es/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/es/common/components/shared/TimeUnitsInput/index.js +9 -8
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +3 -0
- package/es/common/records/QuizEntry.js +5 -0
- package/es/common/reducers/modifications.js +6 -3
- package/es/common/util/warningHelpers.js +15 -5
- package/es/moderating/components/resources/ModerateTable/presenter.js +1 -2
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -2
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/es/reporting/components/resources/ReportCard/index.js +1 -2
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -2
- package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
- package/es/taking/api/taking.js +4 -0
- package/lib/banks/components/BankSearch/presenter.js +3 -4
- package/lib/banks/components/CreateBankModal/presenter.js +23 -24
- package/lib/banks/components/EditBankModal/presenter.js +25 -22
- package/lib/banks/components/SharingModal/presenter.js +0 -4
- package/lib/building/api/stimuli.js +2 -1
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +14 -7
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +11 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +3 -4
- package/lib/common/actions/modifications.js +3 -2
- package/lib/common/components/ConfirmationModal/presenter.js +10 -7
- package/lib/common/components/layout/Page/styles.js +13 -1
- package/lib/common/components/layout/Page/theme.js +1 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
- package/lib/common/components/layout/navbar/index.js +0 -3
- package/lib/common/components/layout/sidebar/Sidebar/index.js +25 -3
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +15 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +16 -9
- package/lib/common/components/resources/item/ItemEdit/presenter.js +0 -5
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/lib/common/components/resources/quiz/instructions/styles.js +5 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +11 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +28 -10
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -5
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +48 -30
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +9 -3
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +0 -7
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +0 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
- package/lib/common/components/shared/InteractionTypes/index.js +4 -1
- package/lib/common/components/shared/InteractionTypes/presenter.js +38 -15
- package/lib/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/lib/common/components/shared/TimeUnitsInput/index.js +10 -9
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +3 -0
- package/lib/common/records/QuizEntry.js +5 -0
- package/lib/common/reducers/modifications.js +6 -3
- package/lib/common/util/warningHelpers.js +15 -5
- package/lib/moderating/components/resources/ModerateTable/presenter.js +3 -4
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +5 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +6 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +9 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +5 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +8 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +20 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +9 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +20 -21
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/lib/reporting/components/resources/ReportCard/index.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +9 -10
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +2 -2
- package/lib/taking/api/taking.js +4 -0
- package/package.json +57 -62
- package/es/banks/components/CreateBankModal/styles.js +0 -15
- package/es/banks/components/CreateBankModal/theme.js +0 -10
- package/es/banks/components/EditBankModal/styles.js +0 -12
- package/es/banks/components/EditBankModal/theme.js +0 -9
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -9
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -10
- package/lib/banks/components/CreateBankModal/styles.js +0 -22
- package/lib/banks/components/CreateBankModal/theme.js +0 -17
- package/lib/banks/components/EditBankModal/styles.js +0 -19
- package/lib/banks/components/EditBankModal/theme.js +0 -16
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -16
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -17
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -9,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
15
16
|
var _uiCheckbox = require("@instructure/ui-checkbox");
|
|
@@ -20,20 +21,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
20
21
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
21
22
|
var _instUIMessages = require("../../../common/util/instUIMessages.js");
|
|
22
23
|
var _quizCommon = require("@instructure/quiz-common");
|
|
23
|
-
var
|
|
24
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
25
|
-
var _dec, _class, _CreateBankModal;
|
|
24
|
+
var _CreateBankModal;
|
|
26
25
|
/** @jsx jsx */
|
|
27
|
-
var CreateBankModal =
|
|
26
|
+
var CreateBankModal = /*#__PURE__*/function (_Component) {
|
|
28
27
|
(0, _inherits2.default)(CreateBankModal, _Component);
|
|
29
28
|
var _super = (0, _createSuper2.default)(CreateBankModal);
|
|
30
|
-
function CreateBankModal() {
|
|
29
|
+
function CreateBankModal(props) {
|
|
31
30
|
var _this;
|
|
32
31
|
(0, _classCallCheck2.default)(this, CreateBankModal);
|
|
33
|
-
|
|
34
|
-
args[_key] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
32
|
+
_this = _super.call(this, props);
|
|
37
33
|
_this.state = {
|
|
38
34
|
shareWithCourse: false
|
|
39
35
|
};
|
|
@@ -45,7 +41,8 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
45
41
|
_this.props.onCreateBank();
|
|
46
42
|
_this.closeAction();
|
|
47
43
|
} else {
|
|
48
|
-
_this
|
|
44
|
+
var _this$bankNameInput$c;
|
|
45
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
49
46
|
}
|
|
50
47
|
};
|
|
51
48
|
_this.closeAction = function () {
|
|
@@ -75,6 +72,7 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
75
72
|
shareWithCourse: event.target.checked
|
|
76
73
|
});
|
|
77
74
|
};
|
|
75
|
+
_this.bankNameInput = /*#__PURE__*/_react.default.createRef();
|
|
78
76
|
return _this;
|
|
79
77
|
}
|
|
80
78
|
(0, _createClass2.default)(CreateBankModal, [{
|
|
@@ -99,17 +97,14 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
99
97
|
}, {
|
|
100
98
|
key: "renderContent",
|
|
101
99
|
value: function renderContent() {
|
|
102
|
-
return (0, _emotion.jsx)("div", {
|
|
103
|
-
css: this.props.styles.bankNameInput
|
|
104
|
-
}, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
100
|
+
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
105
101
|
messages: this.getErrors(),
|
|
106
102
|
onChange: this.onNameChange,
|
|
107
|
-
renderLabel: (0,
|
|
108
|
-
|
|
109
|
-
}, (0, _formatMessage.default)('Bank Name')),
|
|
103
|
+
renderLabel: (0, _formatMessage.default)('Bank Name'),
|
|
104
|
+
isRequired: true,
|
|
110
105
|
type: "text",
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
"data-automation": "sdk-create-bank-name-textinput",
|
|
107
|
+
ref: this.bankNameInput
|
|
113
108
|
}), this.renderCheckbox());
|
|
114
109
|
}
|
|
115
110
|
}, {
|
|
@@ -141,7 +136,6 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
141
136
|
label: (0, _formatMessage.default)('Item Bank'),
|
|
142
137
|
"data-automation": "sdk-create-bank-modal"
|
|
143
138
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
144
|
-
level: "reset",
|
|
145
139
|
as: "h2"
|
|
146
140
|
}, (0, _formatMessage.default)('New Item Bank')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
147
141
|
onClick: this.closeAction,
|
|
@@ -153,7 +147,12 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
153
147
|
}]);
|
|
154
148
|
CreateBankModal.displayName = "CreateBankModal";
|
|
155
149
|
return CreateBankModal;
|
|
156
|
-
}(_react.Component)
|
|
150
|
+
}(_react.Component);
|
|
151
|
+
exports.CreateBankModal = CreateBankModal;
|
|
152
|
+
_CreateBankModal = CreateBankModal;
|
|
153
|
+
CreateBankModal.displayName = 'CreateBankModal';
|
|
154
|
+
CreateBankModal.componentId = "Quizzes".concat(_CreateBankModal.displayName);
|
|
155
|
+
CreateBankModal.propTypes = {
|
|
157
156
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
158
157
|
modalTrigger: _propTypes.default.instanceOf(_react.Component),
|
|
159
158
|
temporaryBank: _propTypes.default.instanceOf(_Bank.default).isRequired,
|
|
@@ -176,13 +175,13 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
176
175
|
root_account_name: _propTypes.default.string
|
|
177
176
|
}),
|
|
178
177
|
styles: _propTypes.default.object
|
|
179
|
-
}
|
|
178
|
+
};
|
|
179
|
+
CreateBankModal.defaultProps = {
|
|
180
180
|
displayError: false,
|
|
181
181
|
modalTrigger: null,
|
|
182
182
|
showShareBankOnCreate: false,
|
|
183
183
|
itemBanksScope: {},
|
|
184
184
|
onCreateBank: function onCreateBank() {}
|
|
185
|
-
}
|
|
186
|
-
exports.CreateBankModal = CreateBankModal;
|
|
185
|
+
};
|
|
187
186
|
var _default = CreateBankModal;
|
|
188
187
|
exports.default = _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -9,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
15
16
|
var _uiHeading = require("@instructure/ui-heading");
|
|
@@ -18,25 +19,23 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
18
19
|
var _instUIMessages = require("../../../common/util/instUIMessages.js");
|
|
19
20
|
var _quizCommon = require("@instructure/quiz-common");
|
|
20
21
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
21
|
-
var
|
|
22
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
23
|
-
var _dec, _class, _EditBankModal;
|
|
22
|
+
var _EditBankModal;
|
|
24
23
|
/** @jsx jsx */
|
|
25
|
-
var EditBankModal =
|
|
24
|
+
var EditBankModal = /*#__PURE__*/function (_Component) {
|
|
26
25
|
(0, _inherits2.default)(EditBankModal, _Component);
|
|
27
26
|
var _super = (0, _createSuper2.default)(EditBankModal);
|
|
28
|
-
function EditBankModal() {
|
|
27
|
+
function EditBankModal(props) {
|
|
29
28
|
var _this;
|
|
30
29
|
(0, _classCallCheck2.default)(this, EditBankModal);
|
|
31
|
-
|
|
32
|
-
args[_key] = arguments[_key];
|
|
33
|
-
}
|
|
34
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
30
|
+
_this = _super.call(this, props);
|
|
35
31
|
_this.continueAction = function () {
|
|
36
32
|
_this.props.showError(_this.props.errorKey);
|
|
37
33
|
if (_this.props.workingBank.isValid()) {
|
|
38
34
|
_this.props.updateBank(_this.props.workingBank);
|
|
39
35
|
_this.closeAction();
|
|
36
|
+
} else {
|
|
37
|
+
var _this$bankNameInput$c;
|
|
38
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
_this.closeAction = function () {
|
|
@@ -58,6 +57,7 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
58
57
|
return (0, _instUIMessages.toErrors)(_this.props.workingBank.errorsFor('title').toJS());
|
|
59
58
|
}
|
|
60
59
|
};
|
|
60
|
+
_this.bankNameInput = /*#__PURE__*/_react.default.createRef();
|
|
61
61
|
return _this;
|
|
62
62
|
}
|
|
63
63
|
(0, _createClass2.default)(EditBankModal, [{
|
|
@@ -82,17 +82,16 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
82
82
|
}, {
|
|
83
83
|
key: "renderContent",
|
|
84
84
|
value: function renderContent() {
|
|
85
|
-
return (0, _emotion.jsx)(
|
|
86
|
-
css: this.props.styles.bankNameInput
|
|
87
|
-
}, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
85
|
+
return (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
88
86
|
value: this.props.workingBank.title,
|
|
89
87
|
messages: this.getErrors(),
|
|
90
88
|
onChange: this.onNameChange,
|
|
91
|
-
renderLabel: (0,
|
|
89
|
+
renderLabel: (0, _formatMessage.default)('Bank Name'),
|
|
92
90
|
type: "text",
|
|
93
|
-
|
|
94
|
-
"data-automation": "sdk-edit-bank-name-textinput"
|
|
95
|
-
|
|
91
|
+
isRequired: true,
|
|
92
|
+
"data-automation": "sdk-edit-bank-name-textinput",
|
|
93
|
+
ref: this.bankNameInput
|
|
94
|
+
});
|
|
96
95
|
}
|
|
97
96
|
}, {
|
|
98
97
|
key: "render",
|
|
@@ -104,7 +103,6 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
104
103
|
label: (0, _formatMessage.default)('Item Bank'),
|
|
105
104
|
"data-automation": "sdk-edit-bank-modal"
|
|
106
105
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
107
|
-
level: "reset",
|
|
108
106
|
as: "h2"
|
|
109
107
|
}, (0, _formatMessage.default)('Edit Item Bank')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
110
108
|
onClick: this.closeAction,
|
|
@@ -116,7 +114,12 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
116
114
|
}]);
|
|
117
115
|
EditBankModal.displayName = "EditBankModal";
|
|
118
116
|
return EditBankModal;
|
|
119
|
-
}(_react.Component)
|
|
117
|
+
}(_react.Component);
|
|
118
|
+
exports.EditBankModal = EditBankModal;
|
|
119
|
+
_EditBankModal = EditBankModal;
|
|
120
|
+
EditBankModal.displayName = 'EditBankModal';
|
|
121
|
+
EditBankModal.componentId = "Quizzes".concat(_EditBankModal.displayName);
|
|
122
|
+
EditBankModal.propTypes = {
|
|
120
123
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
121
124
|
modalTrigger: _propTypes.default.instanceOf(_react.Component),
|
|
122
125
|
workingBank: _propTypes.default.instanceOf(_Bank.default).isRequired,
|
|
@@ -129,10 +132,10 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
129
132
|
hideError: _propTypes.default.func.isRequired,
|
|
130
133
|
closeModal: _propTypes.default.func.isRequired,
|
|
131
134
|
styles: _propTypes.default.object
|
|
132
|
-
}
|
|
135
|
+
};
|
|
136
|
+
EditBankModal.defaultProps = {
|
|
133
137
|
displayError: false,
|
|
134
138
|
modalTrigger: null
|
|
135
|
-
}
|
|
136
|
-
exports.EditBankModal = EditBankModal;
|
|
139
|
+
};
|
|
137
140
|
var _default = EditBankModal;
|
|
138
141
|
exports.default = _default;
|
|
@@ -28,7 +28,6 @@ var _uiGrid = require("@instructure/ui-grid");
|
|
|
28
28
|
var _uiTabs = require("@instructure/ui-tabs");
|
|
29
29
|
var _uiText = require("@instructure/ui-text");
|
|
30
30
|
var _emotion = require("@instructure/emotion");
|
|
31
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../common/util/ElementsForSelectors.js"));
|
|
32
31
|
var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes.js"));
|
|
33
32
|
var _index = _interopRequireDefault(require("./ShareList/index.js"));
|
|
34
33
|
var _index2 = _interopRequireDefault(require("../AsyncSearch/index.js"));
|
|
@@ -62,9 +61,6 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
62
61
|
};
|
|
63
62
|
_this.shareListRef = null;
|
|
64
63
|
_this.shareButtonRef = null;
|
|
65
|
-
_this.applicationElement = function () {
|
|
66
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
67
|
-
};
|
|
68
64
|
// =============
|
|
69
65
|
// LIFECYCLE
|
|
70
66
|
// =============
|
|
@@ -28,7 +28,8 @@ function createStimulus(stimulus, parentId, parentType) {
|
|
|
28
28
|
parent_stimulus_id: parentStimulusId,
|
|
29
29
|
source_url: stimulus.sourceUrl,
|
|
30
30
|
stimulus_type: stimulus.stimulusType,
|
|
31
|
-
title: stimulus.title
|
|
31
|
+
title: stimulus.title,
|
|
32
|
+
passage: stimulus.passage
|
|
32
33
|
};
|
|
33
34
|
var requestBody = JSON.stringify({
|
|
34
35
|
stimulus: stimulusParams
|
|
@@ -121,6 +121,12 @@ var DeleteStimulusModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
121
121
|
cancelText: (0, _formatMessage.default)('Cancel')
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
+
}, {
|
|
125
|
+
key: "isPassage",
|
|
126
|
+
value: function isPassage() {
|
|
127
|
+
var _this$props$stimulusE;
|
|
128
|
+
return (_this$props$stimulusE = this.props.stimulusEntry) === null || _this$props$stimulusE === void 0 ? void 0 : _this$props$stimulusE.getEntry().passage;
|
|
129
|
+
}
|
|
124
130
|
}, {
|
|
125
131
|
key: "anyImmutableKeepers",
|
|
126
132
|
value: function anyImmutableKeepers() {
|
|
@@ -149,8 +155,8 @@ var DeleteStimulusModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
149
155
|
return (0, _emotion.jsx)(_uiButtons.Button, {
|
|
150
156
|
onClick: this.closeAction,
|
|
151
157
|
margin: _quizCommon.XSMALL_SIDE_MARGIN,
|
|
152
|
-
"data-automation": "sdk-keep-stimulus-button"
|
|
153
|
-
}, (0, _formatMessage.default)('Keep Stimulus'));
|
|
158
|
+
"data-automation": "sdk-keep-".concat(this.isPassage() ? 'passage' : 'stimulus', "-button")
|
|
159
|
+
}, this.isPassage() ? (0, _formatMessage.default)('Keep Passage') : (0, _formatMessage.default)('Keep Stimulus'));
|
|
154
160
|
}
|
|
155
161
|
}, {
|
|
156
162
|
key: "doneButton",
|
|
@@ -164,8 +170,8 @@ var DeleteStimulusModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
164
170
|
color: "primary",
|
|
165
171
|
onClick: this.handleSubmit,
|
|
166
172
|
margin: _quizCommon.XSMALL_SIDE_MARGIN,
|
|
167
|
-
"data-automation": "sdk-remove-stimulus-button"
|
|
168
|
-
}, (0, _formatMessage.default)('Remove Stimulus'));
|
|
173
|
+
"data-automation": "sdk-remove-".concat(this.isPassage() ? 'passage' : 'stimulus', "-button")
|
|
174
|
+
}, this.isPassage() ? (0, _formatMessage.default)('Remove Passage') : (0, _formatMessage.default)('Remove Stimulus'));
|
|
169
175
|
}
|
|
170
176
|
}, {
|
|
171
177
|
key: "renderChooseWhich",
|
|
@@ -206,7 +212,8 @@ var DeleteStimulusModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
206
212
|
}, {
|
|
207
213
|
key: "renderContent",
|
|
208
214
|
value: function renderContent() {
|
|
209
|
-
var
|
|
215
|
+
var message = this.isPassage() ? (0, _formatMessage.default)('Are you sure you want to remove this passage?') : (0, _formatMessage.default)('Are you sure you want to remove this stimulus?');
|
|
216
|
+
var content = this.props.childEntries.size === 0 ? (0, _emotion.jsx)("span", null, message) : this.renderMainMenu();
|
|
210
217
|
var stimulusTitle = this.props.stimulusEntry && this.props.stimulusEntry.getEntry().title;
|
|
211
218
|
return (0, _emotion.jsx)("div", {
|
|
212
219
|
className: "deleteStimulusModal",
|
|
@@ -222,11 +229,11 @@ var DeleteStimulusModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
222
229
|
open: this.props.modalOpen,
|
|
223
230
|
onDismiss: this.closeAction,
|
|
224
231
|
size: "small",
|
|
225
|
-
label: (0, _formatMessage.default)('Confirm Stimulus Removal')
|
|
232
|
+
label: this.isPassage() ? (0, _formatMessage.default)('Confirm Passage Removal') : (0, _formatMessage.default)('Confirm Stimulus Removal')
|
|
226
233
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
227
234
|
level: "reset",
|
|
228
235
|
as: "h2"
|
|
229
|
-
}, (0, _formatMessage.default)('Confirm Stimulus Removal')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
236
|
+
}, this.isPassage() ? (0, _formatMessage.default)('Confirm Passage Removal') : (0, _formatMessage.default)('Confirm Stimulus Removal')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
230
237
|
onClick: this.closeAction,
|
|
231
238
|
placement: "end",
|
|
232
239
|
offset: "medium",
|
|
@@ -45,10 +45,10 @@ var QuizEntry = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _th
|
|
|
45
45
|
function QuizEntry() {
|
|
46
46
|
var _this;
|
|
47
47
|
(0, _classCallCheck2.default)(this, QuizEntry);
|
|
48
|
-
for (var _len = arguments.length,
|
|
49
|
-
|
|
48
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
|
+
_args[_key] = arguments[_key];
|
|
50
50
|
}
|
|
51
|
-
_this = _super.call.apply(_super, [this].concat(
|
|
51
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
52
52
|
_this.itemOverrideTypes = function () {
|
|
53
53
|
return ['choice'].concat((0, _toConsumableArray2.default)(_this.props.partialScoringEnabled ? ['multi-answer'] : []), (0, _toConsumableArray2.default)(_this.props.partialDeepScoringEnabled ? ['matching'] : []));
|
|
54
54
|
};
|
|
@@ -103,7 +103,14 @@ var QuizEntry = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _th
|
|
|
103
103
|
};
|
|
104
104
|
_this.bankEntryWarningWrapperProps = function () {
|
|
105
105
|
if (_this.props.quizEntry.entryEditable) {
|
|
106
|
-
var
|
|
106
|
+
var _this$props$entry;
|
|
107
|
+
var isPassage = (_this$props$entry = _this.props.entry) === null || _this$props$entry === void 0 ? void 0 : _this$props$entry.passage;
|
|
108
|
+
var propsFunc = _this.props.quizEntry.hasStimulus ? function () {
|
|
109
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
110
|
+
args[_key2] = arguments[_key2];
|
|
111
|
+
}
|
|
112
|
+
return _warningHelpers.propsForStimulusBankEntryEditPrompt.apply(void 0, [isPassage].concat(args));
|
|
113
|
+
} : _warningHelpers.propsForItemBankEntryEditPrompt;
|
|
107
114
|
return propsFunc(_this.isEditing(), _this.props.switchOffEditing, function () {
|
|
108
115
|
var bankEntry = _this.props.quizEntry.getEntry();
|
|
109
116
|
_this.props.setUi(_quizCommon.BUILD_TRAY_OPEN, true);
|
|
@@ -14,7 +14,6 @@ var _react = require("react");
|
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
16
16
|
var _uiView = require("@instructure/ui-view");
|
|
17
|
-
var _uiFlex = require("@instructure/ui-flex");
|
|
18
17
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
19
18
|
var _uiText = require("@instructure/ui-text");
|
|
20
19
|
var _quizNumberInput = _interopRequireDefault(require("@instructure/quiz-number-input"));
|
|
@@ -205,13 +204,13 @@ var QuizEntryEditFooter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
205
204
|
as: "div",
|
|
206
205
|
background: "secondary",
|
|
207
206
|
padding: "xx-small none"
|
|
208
|
-
}, (0, _emotion.jsx)(
|
|
207
|
+
}, (0, _emotion.jsx)(_quizCommon.Flex, {
|
|
209
208
|
wrap: "wrap",
|
|
210
209
|
justifyItems: "space-between",
|
|
211
210
|
alignItems: "center"
|
|
212
|
-
}, (0, _emotion.jsx)(
|
|
211
|
+
}, (0, _emotion.jsx)(_quizCommon.Flex.Item, {
|
|
213
212
|
padding: "xx-small small"
|
|
214
|
-
}, this.renderLeftFooter()), (0, _emotion.jsx)(
|
|
213
|
+
}, this.renderLeftFooter()), (0, _emotion.jsx)(_quizCommon.Flex.Item, {
|
|
215
214
|
padding: "xx-small small"
|
|
216
215
|
}, this.renderRightFooter())));
|
|
217
216
|
}
|
|
@@ -520,13 +520,14 @@ function clearTemporaryBankItem(bankId) {
|
|
|
520
520
|
// =====================
|
|
521
521
|
// =====================
|
|
522
522
|
|
|
523
|
-
function createStimulus(quizId, position) {
|
|
523
|
+
function createStimulus(quizId, position, isPassage) {
|
|
524
524
|
return function (dispatch, getState) {
|
|
525
525
|
dispatch({
|
|
526
526
|
type: _quizCommon.CREATE_TEMPORARY_STIMULUS,
|
|
527
527
|
payload: {
|
|
528
528
|
quizId: quizId,
|
|
529
|
-
position: position
|
|
529
|
+
position: position,
|
|
530
|
+
isPassage: isPassage
|
|
530
531
|
}
|
|
531
532
|
});
|
|
532
533
|
};
|
|
@@ -65,19 +65,20 @@ var ConfirmationModal = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
continueText = _this$props2.continueText,
|
|
66
66
|
size = _this$props2.size,
|
|
67
67
|
shouldReturnFocus = _this$props2.shouldReturnFocus,
|
|
68
|
-
continueVariant = _this$props2.continueVariant
|
|
68
|
+
continueVariant = _this$props2.continueVariant,
|
|
69
|
+
automationPrefix = _this$props2.automationPrefix;
|
|
69
70
|
return /*#__PURE__*/_react.default.createElement(_quizCommon.ImportantModal, {
|
|
70
71
|
open: this.props.modalOpen,
|
|
71
72
|
size: size || 'small',
|
|
72
73
|
label: title || (0, _formatMessage.default)('Confirm'),
|
|
73
74
|
onDismiss: this.cancelAction,
|
|
74
|
-
"data-automation": "sdk-confirmation-modal",
|
|
75
|
+
"data-automation": automationPrefix ? "sdk-".concat(automationPrefix, "-confirmation-modal") : 'sdk-confirmation-modal',
|
|
75
76
|
shouldReturnFocus: shouldReturnFocus,
|
|
76
77
|
onClose: this.doAction
|
|
77
78
|
}, /*#__PURE__*/_react.default.createElement(_quizCommon.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
|
|
78
79
|
level: "reset",
|
|
79
80
|
as: "h2",
|
|
80
|
-
"data-automation": "sdk-confirmation-modal-heading"
|
|
81
|
+
"data-automation": automationPrefix ? "sdk-".concat(automationPrefix, "-confirmation-modal-heading") : 'sdk-confirmation-modal-heading'
|
|
81
82
|
}, title || (0, _formatMessage.default)('Confirm')), /*#__PURE__*/_react.default.createElement(_uiButtons.CloseButton, {
|
|
82
83
|
onClick: this.cancelAction,
|
|
83
84
|
placement: "end",
|
|
@@ -88,12 +89,12 @@ var ConfirmationModal = /*#__PURE__*/function (_Component) {
|
|
|
88
89
|
}, text || (0, _formatMessage.default)('Are you sure?'))), /*#__PURE__*/_react.default.createElement(_quizCommon.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
89
90
|
onClick: this.cancelAction,
|
|
90
91
|
margin: _quizCommon.XSMALL_SIDE_MARGIN,
|
|
91
|
-
"data-automation": "sdk-confirmation-modal-cancel"
|
|
92
|
+
"data-automation": automationPrefix ? "sdk-".concat(automationPrefix, "-confirmation-modal-cancel") : 'sdk-confirmation-modal-cancel'
|
|
92
93
|
}, cancelText || (0, _formatMessage.default)('Cancel')), /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
93
94
|
color: continueVariant || 'primary',
|
|
94
95
|
onClick: this.continueAction,
|
|
95
96
|
margin: _quizCommon.XSMALL_SIDE_MARGIN,
|
|
96
|
-
"data-automation": "sdk-confirmation-modal-confirm"
|
|
97
|
+
"data-automation": automationPrefix ? "sdk-".concat(automationPrefix, "-confirmation-modal-confirm") : 'sdk-confirmation-modal-confirm'
|
|
97
98
|
}, continueText || (0, _formatMessage.default)('Confirm'))));
|
|
98
99
|
}
|
|
99
100
|
}]);
|
|
@@ -112,7 +113,8 @@ ConfirmationModal.propTypes = {
|
|
|
112
113
|
size: _propTypes.default.string,
|
|
113
114
|
shouldReturnFocus: _propTypes.default.bool,
|
|
114
115
|
onContinue: _propTypes.default.func,
|
|
115
|
-
onCancel: _propTypes.default.func
|
|
116
|
+
onCancel: _propTypes.default.func,
|
|
117
|
+
automationPrefix: _propTypes.default.string
|
|
116
118
|
};
|
|
117
119
|
ConfirmationModal.defaultProps = {
|
|
118
120
|
title: null,
|
|
@@ -123,7 +125,8 @@ ConfirmationModal.defaultProps = {
|
|
|
123
125
|
size: null,
|
|
124
126
|
shouldReturnFocus: true,
|
|
125
127
|
onContinue: null,
|
|
126
|
-
onCancel: null
|
|
128
|
+
onCancel: null,
|
|
129
|
+
automationPrefix: null
|
|
127
130
|
};
|
|
128
131
|
var _default = ConfirmationModal;
|
|
129
132
|
exports.default = _default;
|
|
@@ -24,7 +24,19 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
24
24
|
overflowY: 'auto'
|
|
25
25
|
}), {}, {
|
|
26
26
|
transition: componentTheme.contentTransition,
|
|
27
|
-
width: '100%'
|
|
27
|
+
width: '100%',
|
|
28
|
+
'.user_content p': {
|
|
29
|
+
margin: "".concat(componentTheme.userContentMargin, " 0"),
|
|
30
|
+
'&:first-of-type': {
|
|
31
|
+
margin: "0 0 ".concat(componentTheme.userContentMargin)
|
|
32
|
+
},
|
|
33
|
+
'&:last-of-type': {
|
|
34
|
+
margin: "".concat(componentTheme.userContentMargin, " 0 0")
|
|
35
|
+
},
|
|
36
|
+
'&:only-child': {
|
|
37
|
+
margin: 0
|
|
38
|
+
}
|
|
39
|
+
}
|
|
28
40
|
})
|
|
29
41
|
};
|
|
30
42
|
};
|
|
@@ -12,8 +12,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
return {
|
|
13
13
|
fontFamily: typography.fontFamily,
|
|
14
14
|
contentTransition: "transform ".concat(transitions.duration),
|
|
15
|
-
userContentMargin: spacing.mediumSmall
|
|
16
|
-
userContentZeroMargin: 0
|
|
15
|
+
userContentMargin: spacing.mediumSmall
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
var _default = generateComponentTheme;
|
|
@@ -14,12 +14,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _uiTopNavBar = require("@instructure/ui-top-nav-bar");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
16
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
17
|
-
var
|
|
18
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
19
|
-
var _quizCommon = require("@instructure/quiz-common");
|
|
20
|
-
var _dec, _class, _SecondaryNavBarButton;
|
|
17
|
+
var _SecondaryNavBarButton;
|
|
21
18
|
/** @jsx jsx */
|
|
22
|
-
var SecondaryNavBarButton =
|
|
19
|
+
var SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
|
|
23
20
|
(0, _inherits2.default)(SecondaryNavBarButton, _Component);
|
|
24
21
|
var _super = (0, _createSuper2.default)(SecondaryNavBarButton);
|
|
25
22
|
function SecondaryNavBarButton() {
|
|
@@ -27,39 +24,23 @@ var SecondaryNavBarButton = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
27
24
|
return _super.apply(this, arguments);
|
|
28
25
|
}
|
|
29
26
|
(0, _createClass2.default)(SecondaryNavBarButton, [{
|
|
30
|
-
key: "componentDidMount",
|
|
31
|
-
value: function componentDidMount() {
|
|
32
|
-
this.props.makeStyles();
|
|
33
|
-
}
|
|
34
|
-
}, {
|
|
35
|
-
key: "componentDidUpdate",
|
|
36
|
-
value: function componentDidUpdate() {
|
|
37
|
-
this.props.makeStyles();
|
|
38
|
-
}
|
|
39
|
-
}, {
|
|
40
27
|
key: "render",
|
|
41
28
|
value: function render() {
|
|
42
|
-
return (0, _emotion.jsx)(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
BaseButton: {
|
|
46
|
-
primaryColor: this.props.styles.textColor,
|
|
47
|
-
primaryBackground: this.props.styles.backgroundColor,
|
|
48
|
-
primaryHoverBackground: this.props.styles.backgroundHoverColor,
|
|
49
|
-
primaryBorderColor: this.props.styles.borderColor
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, (0, _emotion.jsx)(_uiTopNavBar.TopNavBar.Item, (0, _uiReactUtils.omitProps)(this.props, this.constructor.propTypes), this.props.children));
|
|
29
|
+
return (0, _emotion.jsx)(_uiTopNavBar.TopNavBar.Item, Object.assign({
|
|
30
|
+
color: "secondary"
|
|
31
|
+
}, (0, _uiReactUtils.omitProps)(this.props, this.constructor.propTypes)), this.props.children);
|
|
54
32
|
}
|
|
55
33
|
}]);
|
|
56
34
|
SecondaryNavBarButton.displayName = "SecondaryNavBarButton";
|
|
57
35
|
return SecondaryNavBarButton;
|
|
58
|
-
}(_react.Component)
|
|
59
|
-
children: _propTypes.default.string.isRequired,
|
|
60
|
-
styles: _propTypes.default.object,
|
|
61
|
-
makeStyles: _propTypes.default.func
|
|
62
|
-
}, _SecondaryNavBarButton)) || _class);
|
|
36
|
+
}(_react.Component);
|
|
63
37
|
exports.SecondaryNavBarButton = SecondaryNavBarButton;
|
|
38
|
+
_SecondaryNavBarButton = SecondaryNavBarButton;
|
|
39
|
+
SecondaryNavBarButton.displayName = 'TopNavBarItem';
|
|
40
|
+
SecondaryNavBarButton.componentId = "Quizzes".concat(_SecondaryNavBarButton.displayName);
|
|
41
|
+
SecondaryNavBarButton.propTypes = {
|
|
42
|
+
children: _propTypes.default.string.isRequired,
|
|
43
|
+
styles: _propTypes.default.object
|
|
44
|
+
};
|
|
64
45
|
var _default = SecondaryNavBarButton;
|
|
65
46
|
exports.default = _default;
|
|
@@ -100,9 +100,6 @@ var NavBar = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme
|
|
|
100
100
|
desktopBottomBorderInverse: false
|
|
101
101
|
} : {}),
|
|
102
102
|
navLabel: (0, _formatMessage.default)('Quizzes navigation bar'),
|
|
103
|
-
desktopConfig: {
|
|
104
|
-
hideActionsUserSeparator: true
|
|
105
|
-
},
|
|
106
103
|
smallViewportConfig: {
|
|
107
104
|
dropdownMenuToggleButtonLabel: (0, _formatMessage.default)('Toggle Menu'),
|
|
108
105
|
dropdownMenuLabel: (0, _formatMessage.default)('Main Menu')
|