@instructure/quiz-core 20.38.0 → 21.0.1
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/BanksList/presenter.js +1 -1
- 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/common/components/ConfirmationModal/presenter.js +10 -7
- 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/resources/item/ItemEdit/presenter.js +0 -5
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +11 -5
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +17 -9
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
- package/es/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/lib/banks/components/BanksList/presenter.js +1 -1
- 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/common/components/ConfirmationModal/presenter.js +10 -7
- 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/resources/item/ItemEdit/presenter.js +0 -5
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +11 -5
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +17 -9
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
- package/lib/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/package.json +57 -58
- 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
|
@@ -7,21 +7,12 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import OutcomesPerStudentReport from '@instructure/outcomes-ui/es/containers/OutcomesPerStudentReport';
|
|
8
8
|
import { liveRegion } from '@instructure/quiz-common';
|
|
9
9
|
import CustomPropTypes from "../../../../common/util/CustomPropTypes.js";
|
|
10
|
-
import elementsForSelectors from "../../../../common/util/ElementsForSelectors.js";
|
|
11
10
|
export var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
12
11
|
_inherits(OutcomeAnalysis, _Component);
|
|
13
12
|
var _super = _createSuper(OutcomeAnalysis);
|
|
14
13
|
function OutcomeAnalysis() {
|
|
15
|
-
var _this;
|
|
16
14
|
_classCallCheck(this, OutcomeAnalysis);
|
|
17
|
-
|
|
18
|
-
args[_key] = arguments[_key];
|
|
19
|
-
}
|
|
20
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
21
|
-
_this.applicationElement = function () {
|
|
22
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
23
|
-
};
|
|
24
|
-
return _this;
|
|
15
|
+
return _super.apply(this, arguments);
|
|
25
16
|
}
|
|
26
17
|
_createClass(OutcomeAnalysis, [{
|
|
27
18
|
key: "render",
|
|
@@ -34,7 +25,6 @@ export var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
|
34
25
|
loadUsersOverride = _this$props.loadUsersOverride,
|
|
35
26
|
showRollups = _this$props.showRollups;
|
|
36
27
|
return /*#__PURE__*/React.createElement(OutcomesPerStudentReport, {
|
|
37
|
-
applicationElement: this.applicationElement,
|
|
38
28
|
artifactType: "quizzes.quiz",
|
|
39
29
|
artifactId: quizId,
|
|
40
30
|
contextUuid: contextUuid,
|
|
@@ -454,7 +454,7 @@ var BanksList = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _th
|
|
|
454
454
|
}, (0, _emotion.jsx)(_uiTable.Table.Row, null, this.renderTableSortHeader('name', (0, _formatMessage.default)('Name')), this.renderTableSortHeader('updated_at', (0, _formatMessage.default)('Updated')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
455
455
|
id: "header-num-questions",
|
|
456
456
|
width: "1"
|
|
457
|
-
}, (0, _formatMessage.default)('Questions')), this.renderTableSortHeader('last_used', (0, _formatMessage.default)('Last Used')), this.renderTableSortHeader('created_at', (0, _formatMessage.default)('Created')),
|
|
457
|
+
}, (0, _formatMessage.default)('Questions')), this.renderTableSortHeader('last_used', (0, _formatMessage.default)('Last Used')), this.renderTableSortHeader('created_at', (0, _formatMessage.default)('Created')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
458
458
|
id: "header-option-links",
|
|
459
459
|
width: "1"
|
|
460
460
|
}, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Bank option links'))))), (0, _emotion.jsx)(_uiTable.Table.Body, null, (this.props.banks.toArray() || []).map(function (bank) {
|
|
@@ -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
|
// =============
|
|
@@ -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;
|
|
@@ -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')
|
|
@@ -21,7 +21,6 @@ var _componentForItem = _interopRequireDefault(require("../../../../util/compone
|
|
|
21
21
|
var _quizCommon = require("@instructure/quiz-common");
|
|
22
22
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
23
23
|
var _interactionTypePropsHelper = require("../../../../util/interactionTypePropsHelper.js");
|
|
24
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../common/util/ElementsForSelectors.js"));
|
|
25
24
|
var _instUIMessages = require("../../../../util/instUIMessages.js");
|
|
26
25
|
var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
27
26
|
(0, _inherits2.default)(ItemEdit, _Component);
|
|
@@ -40,9 +39,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
40
39
|
}
|
|
41
40
|
return null;
|
|
42
41
|
};
|
|
43
|
-
_this.applicationElement = function () {
|
|
44
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
45
|
-
};
|
|
46
42
|
_this.onModalOpen = function () {
|
|
47
43
|
_this.props.occludeQuizEntries(true);
|
|
48
44
|
};
|
|
@@ -105,7 +101,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
105
101
|
component: /*#__PURE__*/_react.default.createElement(_OutcomeAlignments.default, Object.assign({
|
|
106
102
|
artifactType: "quizEntry",
|
|
107
103
|
artifactId: itemId,
|
|
108
|
-
applicationElement: this.applicationElement,
|
|
109
104
|
alignmentSetId: outcomeAlignmentSetGuid,
|
|
110
105
|
contextUuid: this.props.contextUuid
|
|
111
106
|
}, launchContexts.length > 0 && {
|
|
@@ -14,7 +14,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _uiPopover = require("@instructure/ui-popover");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
16
|
var _CustomPropTypes = _interopRequireDefault(require("../../../../../util/CustomPropTypes.js"));
|
|
17
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../util/ElementsForSelectors.js"));
|
|
18
17
|
var _windowChecks = require("../../../../../util/windowChecks.js");
|
|
19
18
|
var _index = _interopRequireDefault(require("../Button/index.js"));
|
|
20
19
|
var _index2 = _interopRequireDefault(require("../Body/index.js"));
|
|
@@ -33,9 +32,6 @@ var AddContentPopover = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defa
|
|
|
33
32
|
args[_key] = arguments[_key];
|
|
34
33
|
}
|
|
35
34
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36
|
-
_this.applicationElement = function () {
|
|
37
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
38
|
-
};
|
|
39
35
|
_this.showContent = function () {
|
|
40
36
|
_this.props.switchOnEditing();
|
|
41
37
|
};
|
|
@@ -115,7 +115,7 @@ var SessionItemResult = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defa
|
|
|
115
115
|
size: "small",
|
|
116
116
|
margin: "small"
|
|
117
117
|
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
118
|
-
color: "
|
|
118
|
+
color: "alert"
|
|
119
119
|
}, (0, _formatMessage.default)("Regrade score { possible, plural,\n one {{points, number} / # point}\n other {{points, number} / # points}\n }", {
|
|
120
120
|
points: this.props.sessionItemResult.regradeInfo.get('newScore') || 0,
|
|
121
121
|
possible: this.props.sessionItemResult.regradeInfo.get('newPointsPossible')
|
|
@@ -74,6 +74,11 @@ var Stimulus = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _the
|
|
|
74
74
|
lockBlueprintContentEnabled = _this$props2.lockBlueprintContentEnabled;
|
|
75
75
|
return lockBlueprintContentEnabled && isContentLockedByBlueprint;
|
|
76
76
|
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "isPassage",
|
|
79
|
+
value: function isPassage() {
|
|
80
|
+
return this.props.stimulus.passage;
|
|
81
|
+
}
|
|
77
82
|
}, {
|
|
78
83
|
key: "renderChildQuizEntries",
|
|
79
84
|
value: function renderChildQuizEntries() {
|
|
@@ -101,9 +106,10 @@ var Stimulus = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _the
|
|
|
101
106
|
key: "renderStimulusPanel",
|
|
102
107
|
value: function renderStimulusPanel() {
|
|
103
108
|
var StimulusComponent = this.props.isEditing ? _index2.default : _index3.default;
|
|
109
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
104
110
|
var connectDragPreview = this.props.connectDragPreview;
|
|
105
111
|
return connectDragPreview((0, _emotion.jsx)("div", {
|
|
106
|
-
"data-automation": "sdk-
|
|
112
|
+
"data-automation": "sdk-".concat(automationPrefix, "-LeftPanelShow")
|
|
107
113
|
}, (0, _emotion.jsx)(StimulusComponent, {
|
|
108
114
|
bankEntryWarningWrapperProps: this.props.bankEntryWarningWrapperProps,
|
|
109
115
|
connectDragSource: this.props.connectDragSource,
|
|
@@ -128,18 +134,18 @@ var Stimulus = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _the
|
|
|
128
134
|
}, {
|
|
129
135
|
key: "renderPanels",
|
|
130
136
|
value: function renderPanels(propsForDnDZone) {
|
|
131
|
-
var
|
|
137
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
132
138
|
return (0, _emotion.jsx)("div", {
|
|
133
139
|
css: this.props.styles.stimulus,
|
|
134
140
|
ref: this.props.dndRef,
|
|
135
|
-
"data-automation": "sdk-
|
|
141
|
+
"data-automation": "sdk-".concat(automationPrefix)
|
|
136
142
|
}, (0, _emotion.jsx)("div", {
|
|
137
143
|
css: this.props.styles.leftPanel
|
|
138
144
|
}, this.renderStimulusPanel()), (0, _emotion.jsx)("div", {
|
|
139
145
|
css: this.props.styles.itemPanel
|
|
140
|
-
}, (0, _emotion.jsx)("div", null), this.renderChildQuizEntries(), !isPassage && (0, _emotion.jsx)(_index4.default, Object.assign({}, propsForDnDZone, {
|
|
146
|
+
}, (0, _emotion.jsx)("div", null), this.renderChildQuizEntries(), !this.isPassage() && (0, _emotion.jsx)(_index4.default, Object.assign({}, propsForDnDZone, {
|
|
141
147
|
location: "in"
|
|
142
|
-
})), this.props.childEntries.size === 0 && !this.isQuizContentLocked() && !isPassage && (0, _emotion.jsx)(_index.default, {
|
|
148
|
+
})), this.props.childEntries.size === 0 && !this.isQuizContentLocked() && !this.isPassage() && (0, _emotion.jsx)(_index.default, {
|
|
143
149
|
allowStimulusCreation: false,
|
|
144
150
|
stimulusId: this.props.stimulus.id,
|
|
145
151
|
parentEntryId: this.props.quizEntry.id,
|
|
@@ -65,6 +65,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
65
65
|
_this.props.setUi(_quizCommon.SHOULD_CLONE_ITEM, false);
|
|
66
66
|
};
|
|
67
67
|
_this.handleDeleteTemporary = function () {
|
|
68
|
+
var isPassage = _this.isPassage();
|
|
68
69
|
_this.props.withConfirm(function () {
|
|
69
70
|
_this.onCancel();
|
|
70
71
|
_this.props.setUi(_quizCommon.DELETED_QUIZ_ENTRY, {
|
|
@@ -72,10 +73,11 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
72
73
|
inStimulus: false
|
|
73
74
|
});
|
|
74
75
|
}, {
|
|
75
|
-
title: (0, _formatMessage.default)('Confirm Stimulus Removal'),
|
|
76
|
-
text: (0, _formatMessage.default)('Are you sure you want to remove this stimulus?'),
|
|
77
|
-
continueText: (0, _formatMessage.default)('Remove Stimulus'),
|
|
78
|
-
cancelText: (0, _formatMessage.default)('Keep Stimulus')
|
|
76
|
+
title: isPassage ? (0, _formatMessage.default)('Confirm Passage Removal') : (0, _formatMessage.default)('Confirm Stimulus Removal'),
|
|
77
|
+
text: 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?'),
|
|
78
|
+
continueText: isPassage ? (0, _formatMessage.default)('Remove Passage') : (0, _formatMessage.default)('Remove Stimulus'),
|
|
79
|
+
cancelText: isPassage ? (0, _formatMessage.default)('Keep Passage ') : (0, _formatMessage.default)('Keep Stimulus'),
|
|
80
|
+
automationPrefix: isPassage ? 'passage' : 'stimulus'
|
|
79
81
|
});
|
|
80
82
|
};
|
|
81
83
|
_this.handleDeleteStimulus = function () {
|
|
@@ -300,6 +302,12 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
300
302
|
outsideApp = _checkClickedNode.outsideApp;
|
|
301
303
|
return outsideApp || !isEndEditingTrigger;
|
|
302
304
|
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "isPassage",
|
|
307
|
+
value: function isPassage() {
|
|
308
|
+
var _this$props$stimulus;
|
|
309
|
+
return (_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.passage;
|
|
310
|
+
}
|
|
303
311
|
}, {
|
|
304
312
|
key: "afterSubmit",
|
|
305
313
|
value: function afterSubmit() {
|
|
@@ -327,8 +335,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
327
335
|
}, {
|
|
328
336
|
key: "renderAddToBankOptions",
|
|
329
337
|
value: function renderAddToBankOptions() {
|
|
330
|
-
var
|
|
331
|
-
var paddingTopStyle = ((_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.passage) ? {
|
|
338
|
+
var paddingTopStyle = this.isPassage() ? {
|
|
332
339
|
padding: 'small 0 0'
|
|
333
340
|
} : {};
|
|
334
341
|
return (0, _emotion.jsx)(_uiView.View, Object.assign({
|
|
@@ -353,7 +360,8 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
353
360
|
}, {
|
|
354
361
|
key: "renderStimulusEdit",
|
|
355
362
|
value: function renderStimulusEdit() {
|
|
356
|
-
var stimulusLabel = this.
|
|
363
|
+
var stimulusLabel = this.isPassage() ? (0, _formatMessage.default)('Passage') : (0, _formatMessage.default)('Stimulus');
|
|
364
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
357
365
|
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("div", {
|
|
358
366
|
css: this.props.styles.stimulus,
|
|
359
367
|
ref: this.handleRef
|
|
@@ -387,7 +395,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
387
395
|
}, (0, _emotion.jsx)(_uiButtons.Button, {
|
|
388
396
|
type: "button",
|
|
389
397
|
onClick: this.onCancel,
|
|
390
|
-
"data-automation": "sdk-
|
|
398
|
+
"data-automation": "sdk-".concat(automationPrefix, "-discardButton")
|
|
391
399
|
}, (0, _formatMessage.default)('Cancel'))), (0, _emotion.jsx)("div", {
|
|
392
400
|
className: "submitButtonWrapper",
|
|
393
401
|
css: this.props.styles.buttonWrapper
|
|
@@ -396,7 +404,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
396
404
|
color: "primary",
|
|
397
405
|
disabled: !this.state.canSubmit,
|
|
398
406
|
onClick: this.onSubmit,
|
|
399
|
-
"data-automation": "sdk-
|
|
407
|
+
"data-automation": "sdk-".concat(automationPrefix, "-done-button")
|
|
400
408
|
}, (0, _formatMessage.default)('Done')))));
|
|
401
409
|
}
|
|
402
410
|
}, {
|
|
@@ -146,6 +146,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
146
146
|
var stimulus = this.props.workingStimulus;
|
|
147
147
|
var textAreaId = "stimulusBodyEdit_".concat(stimulus.id, "_").concat(this.props.isBankedContent);
|
|
148
148
|
var stimulusBodyId = "stimulusBodyEdit_".concat(stimulus.id, "_body");
|
|
149
|
+
var automationPrefix = stimulus.passage ? 'passage' : 'stimulus';
|
|
149
150
|
return (0, _emotion.jsx)(_quizCommon.FormFieldGroup, {
|
|
150
151
|
messages: this.inputErrors('onSelf'),
|
|
151
152
|
description: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Edit Stimulus'))
|
|
@@ -161,7 +162,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
161
162
|
ref: this.props.setTitleRef,
|
|
162
163
|
onChange: this.onTextInputChange('title'),
|
|
163
164
|
value: stimulus.get('title'),
|
|
164
|
-
"data-automation": "sdk-
|
|
165
|
+
"data-automation": "sdk-".concat(automationPrefix, "-title-input")
|
|
165
166
|
})), this.renderInstructions(stimulus), (0, _emotion.jsx)("div", {
|
|
166
167
|
css: this.props.styles.section
|
|
167
168
|
}, (0, _emotion.jsx)(_quizCommon.FormField, {
|