@instructure/quiz-core 20.19.1-rc.1 → 20.20.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/CHANGELOG.md +11 -0
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +3 -2
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +6 -3
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +3 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +6 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.20.0](https://gerrit.instructure.com/quizzes-ui/compare/v20.19.0...v20.20.0) (2024-10-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **rce:** Allow old links to be displayed instead of new instfs links ([6d1ffd8](https://gerrit.instructure.com/quizzes-ui/commits/6d1ffd88d2ef44c0f7ca548b11cbd717b8e0774b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [20.19.0](https://gerrit.instructure.com/quizzes-ui/compare/v20.18.0...v20.19.0) (2024-10-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -170,7 +170,8 @@ export var DeleteStimulusModal = (_dec = withStyle(generateStyle, generateCompon
|
|
|
170
170
|
value: function cancelButton() {
|
|
171
171
|
return jsx(Button, {
|
|
172
172
|
onClick: this.closeAction,
|
|
173
|
-
margin: XSMALL_SIDE_MARGIN
|
|
173
|
+
margin: XSMALL_SIDE_MARGIN,
|
|
174
|
+
"data-automation": "sdk-keep-stimulus-button"
|
|
174
175
|
}, t('Keep Stimulus'));
|
|
175
176
|
}
|
|
176
177
|
}, {
|
|
@@ -185,7 +186,7 @@ export var DeleteStimulusModal = (_dec = withStyle(generateStyle, generateCompon
|
|
|
185
186
|
color: "primary",
|
|
186
187
|
onClick: this.handleSubmit,
|
|
187
188
|
margin: XSMALL_SIDE_MARGIN,
|
|
188
|
-
"data-automation": "sdk-stimulus-
|
|
189
|
+
"data-automation": "sdk-remove-stimulus-button"
|
|
189
190
|
}, t('Remove Stimulus'));
|
|
190
191
|
}
|
|
191
192
|
}, {
|
|
@@ -450,7 +450,8 @@ export var StimulusEdit = (_dec = withStyle(generateStyle, generateComponentThem
|
|
|
450
450
|
type: "button",
|
|
451
451
|
color: "primary",
|
|
452
452
|
disabled: !this.state.canSubmit,
|
|
453
|
-
onClick: this.onSubmit
|
|
453
|
+
onClick: this.onSubmit,
|
|
454
|
+
"data-automation": "sdk-stimulus-done-button"
|
|
454
455
|
}, t('Done')))));
|
|
455
456
|
}
|
|
456
457
|
}, {
|
|
@@ -136,14 +136,16 @@ export var StimulusEditInfo = (_dec = withStyle(generateStyle, generateComponent
|
|
|
136
136
|
type: "text",
|
|
137
137
|
ref: this.props.setTitleRef,
|
|
138
138
|
onChange: this.onTextInputChange('title'),
|
|
139
|
-
value: stimulus.get('title')
|
|
139
|
+
value: stimulus.get('title'),
|
|
140
|
+
"data-automation": "sdk-stimulus-title-input"
|
|
140
141
|
})), jsx("div", {
|
|
141
142
|
css: this.props.styles.section
|
|
142
143
|
}, jsx(TextInput, {
|
|
143
144
|
renderLabel: this.renderOptionalLabel(t('Instructions')),
|
|
144
145
|
type: "text",
|
|
145
146
|
onChange: this.onTextInputChange('instructions'),
|
|
146
|
-
value: stimulus.get('instructions')
|
|
147
|
+
value: stimulus.get('instructions'),
|
|
148
|
+
"data-automation": "sdk-stimulus-instructions-input"
|
|
147
149
|
})), jsx("div", {
|
|
148
150
|
css: this.props.styles.section
|
|
149
151
|
}, jsx(FormField, {
|
|
@@ -173,7 +175,8 @@ export var StimulusEditInfo = (_dec = withStyle(generateStyle, generateComponent
|
|
|
173
175
|
renderLabel: this.renderOptionalLabel(t('Source URL'), t('(optional - not visible to students)')),
|
|
174
176
|
type: "text",
|
|
175
177
|
onChange: this.onTextInputChange('sourceUrl'),
|
|
176
|
-
value: stimulus.get('sourceUrl')
|
|
178
|
+
value: stimulus.get('sourceUrl'),
|
|
179
|
+
"data-automation": "sdk-source-url-input"
|
|
177
180
|
})))));
|
|
178
181
|
}
|
|
179
182
|
}]);
|
|
@@ -196,7 +196,8 @@ var DeleteStimulusModal = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
196
196
|
value: function cancelButton() {
|
|
197
197
|
return (0, _emotion.jsx)(_uiButtons.Button, {
|
|
198
198
|
onClick: this.closeAction,
|
|
199
|
-
margin: _quizCommon.XSMALL_SIDE_MARGIN
|
|
199
|
+
margin: _quizCommon.XSMALL_SIDE_MARGIN,
|
|
200
|
+
"data-automation": "sdk-keep-stimulus-button"
|
|
200
201
|
}, (0, _formatMessage.default)('Keep Stimulus'));
|
|
201
202
|
}
|
|
202
203
|
}, {
|
|
@@ -211,7 +212,7 @@ var DeleteStimulusModal = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
211
212
|
color: "primary",
|
|
212
213
|
onClick: this.handleSubmit,
|
|
213
214
|
margin: _quizCommon.XSMALL_SIDE_MARGIN,
|
|
214
|
-
"data-automation": "sdk-stimulus-
|
|
215
|
+
"data-automation": "sdk-remove-stimulus-button"
|
|
215
216
|
}, (0, _formatMessage.default)('Remove Stimulus'));
|
|
216
217
|
}
|
|
217
218
|
}, {
|
|
@@ -487,7 +487,8 @@ var StimulusEdit = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defau
|
|
|
487
487
|
type: "button",
|
|
488
488
|
color: "primary",
|
|
489
489
|
disabled: !this.state.canSubmit,
|
|
490
|
-
onClick: this.onSubmit
|
|
490
|
+
onClick: this.onSubmit,
|
|
491
|
+
"data-automation": "sdk-stimulus-done-button"
|
|
491
492
|
}, (0, _formatMessage.default)('Done')))));
|
|
492
493
|
}
|
|
493
494
|
}, {
|
|
@@ -163,14 +163,16 @@ var StimulusEditInfo = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
163
163
|
type: "text",
|
|
164
164
|
ref: this.props.setTitleRef,
|
|
165
165
|
onChange: this.onTextInputChange('title'),
|
|
166
|
-
value: stimulus.get('title')
|
|
166
|
+
value: stimulus.get('title'),
|
|
167
|
+
"data-automation": "sdk-stimulus-title-input"
|
|
167
168
|
})), (0, _emotion.jsx)("div", {
|
|
168
169
|
css: this.props.styles.section
|
|
169
170
|
}, (0, _emotion.jsx)(_uiTextInput.TextInput, {
|
|
170
171
|
renderLabel: this.renderOptionalLabel((0, _formatMessage.default)('Instructions')),
|
|
171
172
|
type: "text",
|
|
172
173
|
onChange: this.onTextInputChange('instructions'),
|
|
173
|
-
value: stimulus.get('instructions')
|
|
174
|
+
value: stimulus.get('instructions'),
|
|
175
|
+
"data-automation": "sdk-stimulus-instructions-input"
|
|
174
176
|
})), (0, _emotion.jsx)("div", {
|
|
175
177
|
css: this.props.styles.section
|
|
176
178
|
}, (0, _emotion.jsx)(_uiFormField.FormField, {
|
|
@@ -200,7 +202,8 @@ var StimulusEditInfo = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
200
202
|
renderLabel: this.renderOptionalLabel((0, _formatMessage.default)('Source URL'), (0, _formatMessage.default)('(optional - not visible to students)')),
|
|
201
203
|
type: "text",
|
|
202
204
|
onChange: this.onTextInputChange('sourceUrl'),
|
|
203
|
-
value: stimulus.get('sourceUrl')
|
|
205
|
+
value: stimulus.get('sourceUrl'),
|
|
206
|
+
"data-automation": "sdk-source-url-input"
|
|
204
207
|
})))));
|
|
205
208
|
}
|
|
206
209
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.20.1-rc.0+b6241e0c4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@instructure/emotion": "^8.51.0",
|
|
45
45
|
"@instructure/grading-utils": "^1.0.0",
|
|
46
46
|
"@instructure/outcomes-ui": "^3.2.2",
|
|
47
|
-
"@instructure/quiz-common": "20.
|
|
48
|
-
"@instructure/quiz-i18n": "20.
|
|
49
|
-
"@instructure/quiz-interactions": "20.
|
|
50
|
-
"@instructure/quiz-number-input": "20.
|
|
51
|
-
"@instructure/quiz-rce": "20.
|
|
47
|
+
"@instructure/quiz-common": "20.20.1-rc.0+b6241e0c4",
|
|
48
|
+
"@instructure/quiz-i18n": "20.20.1-rc.0+b6241e0c4",
|
|
49
|
+
"@instructure/quiz-interactions": "20.20.1-rc.0+b6241e0c4",
|
|
50
|
+
"@instructure/quiz-number-input": "20.20.1-rc.0+b6241e0c4",
|
|
51
|
+
"@instructure/quiz-rce": "20.20.1-rc.0+b6241e0c4",
|
|
52
52
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
53
53
|
"@instructure/ui-alerts": "^8.51.0",
|
|
54
54
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"file-saver": "~2.0.5",
|
|
112
112
|
"humps": "^2.0.0",
|
|
113
113
|
"immutable": "^3.8.1",
|
|
114
|
-
"instructure-validations": "20.
|
|
114
|
+
"instructure-validations": "20.20.1-rc.0+b6241e0c4",
|
|
115
115
|
"ipaddr.js": "^1.5.4",
|
|
116
116
|
"isomorphic-fetch": "^2.2.0",
|
|
117
117
|
"isuuid": "^0.1.0",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"uuid": "^3.2.1"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
145
|
-
"@instructure/quiz-scripts": "20.
|
|
145
|
+
"@instructure/quiz-scripts": "20.20.0",
|
|
146
146
|
"@instructure/ui-axe-check": "^8.51.0",
|
|
147
147
|
"@instructure/ui-babel-preset": "^7.22.1",
|
|
148
148
|
"@instructure/ui-scripts": "^7.22.1",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"jquery": "^2.2.3",
|
|
162
162
|
"karma-junit-reporter": "^2.0.1",
|
|
163
163
|
"most-subject": "^5.3.0",
|
|
164
|
-
"quiz-presets": "20.
|
|
164
|
+
"quiz-presets": "20.20.1-rc.0+b6241e0c4",
|
|
165
165
|
"react": "^16.8.6",
|
|
166
166
|
"react-addons-test-utils": "^15.6.2",
|
|
167
167
|
"react-dom": "^16.8.6",
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
"publishConfig": {
|
|
178
178
|
"access": "public"
|
|
179
179
|
},
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "b6241e0c4fd7c4129804a1db7f56c1a1f819bb37"
|
|
181
181
|
}
|