@instructure/quiz-core 18.8.1-rc.1 → 18.9.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
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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
|
+
# [18.9.0](https://gerrit.instructure.com/quizzes-ui/compare/v18.8.0...v18.9.0) (2023-12-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **customErrorHandlingForItemAnalysis:** support custom addError prop in item analysis ([1ac335e](https://gerrit.instructure.com/quizzes-ui/commits/1ac335e57a2599fb939c6cf88d00177c88893e1b))
|
|
12
|
+
* **optionalRenderAlert:** In SDKApp now we are able to turn off the ([e4e5fa1](https://gerrit.instructure.com/quizzes-ui/commits/e4e5fa16314332272fea0559013ba0a8eb1bdae7))
|
|
13
|
+
* **report-initial-state:** support initial state for NewQuizAndItemAnalysis ([c596efa](https://gerrit.instructure.com/quizzes-ui/commits/c596efaa2a075610a04d584d3a0c9a1c23b3f3df))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# [18.8.0](https://gerrit.instructure.com/quizzes-ui/compare/v18.7.0...v18.8.0) (2023-11-29)
|
|
7
20
|
|
|
8
21
|
|
|
@@ -23,7 +23,7 @@ import { setAPIEndpoint, setCanvasOrigin, setUserToken } from "../../actions/con
|
|
|
23
23
|
import { setContextUuid, setOutcomesEndpoint, setOutcomesToken } from "../../actions/outcomes.js";
|
|
24
24
|
import { addFeatures, removeFeatures } from "../../actions/features.js";
|
|
25
25
|
import { setGradeByQuestionEnabled } from "../../actions/grading.js";
|
|
26
|
-
import renderAlerts from "../../util/renderAlerts.js";
|
|
26
|
+
import { renderAlerts } from "../../util/renderAlerts.js";
|
|
27
27
|
var styles = {
|
|
28
28
|
componentId: 'fzweS',
|
|
29
29
|
template: function template(theme) {
|
|
@@ -101,7 +101,7 @@ export var SDKApp = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
|
|
|
101
101
|
value: function componentDidMount() {
|
|
102
102
|
// inserts the a11y friendly alerts
|
|
103
103
|
// react app hooked up to the store
|
|
104
|
-
renderAlerts(this.store);
|
|
104
|
+
!this.props.disableAlertLiveRegion && renderAlerts(this.store);
|
|
105
105
|
}
|
|
106
106
|
}, {
|
|
107
107
|
key: "componentWillReceiveProps",
|
|
@@ -194,7 +194,8 @@ export var SDKApp = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
|
|
|
194
194
|
translations: PropTypes.objectOf(PropTypes.shape({
|
|
195
195
|
message: PropTypes.string
|
|
196
196
|
})),
|
|
197
|
-
userToken: PropTypes.string.isRequired
|
|
197
|
+
userToken: PropTypes.string.isRequired,
|
|
198
|
+
disableAlertLiveRegion: PropTypes.bool
|
|
198
199
|
}, _class2.contextTypes = {
|
|
199
200
|
locale: PropTypes.string
|
|
200
201
|
}, _class2.defaultProps = {
|
|
@@ -206,7 +207,8 @@ export var SDKApp = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
|
|
|
206
207
|
outcomesToken: null,
|
|
207
208
|
rceConfig: null,
|
|
208
209
|
translations: null,
|
|
209
|
-
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
210
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
211
|
+
disableAlertLiveRegion: false
|
|
210
212
|
}, _temp)) || _class);
|
|
211
213
|
export var DragDroppableSDKApp = DragDropContext(HTML5Backend)(SDKApp);
|
|
212
214
|
export default DragDroppableSDKApp;
|
|
@@ -47,7 +47,7 @@ var _features = require("../../actions/features.js");
|
|
|
47
47
|
|
|
48
48
|
var _grading = require("../../actions/grading.js");
|
|
49
49
|
|
|
50
|
-
var _renderAlerts =
|
|
50
|
+
var _renderAlerts = require("../../util/renderAlerts.js");
|
|
51
51
|
|
|
52
52
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
53
53
|
|
|
@@ -133,7 +133,7 @@ var SDKApp = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_
|
|
|
133
133
|
value: function componentDidMount() {
|
|
134
134
|
// inserts the a11y friendly alerts
|
|
135
135
|
// react app hooked up to the store
|
|
136
|
-
(0, _renderAlerts.
|
|
136
|
+
!this.props.disableAlertLiveRegion && (0, _renderAlerts.renderAlerts)(this.store);
|
|
137
137
|
}
|
|
138
138
|
}, {
|
|
139
139
|
key: "componentWillReceiveProps",
|
|
@@ -225,7 +225,8 @@ var SDKApp = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_
|
|
|
225
225
|
translations: _propTypes.default.objectOf(_propTypes.default.shape({
|
|
226
226
|
message: _propTypes.default.string
|
|
227
227
|
})),
|
|
228
|
-
userToken: _propTypes.default.string.isRequired
|
|
228
|
+
userToken: _propTypes.default.string.isRequired,
|
|
229
|
+
disableAlertLiveRegion: _propTypes.default.bool
|
|
229
230
|
}, _class2.contextTypes = {
|
|
230
231
|
locale: _propTypes.default.string
|
|
231
232
|
}, _class2.defaultProps = {
|
|
@@ -237,7 +238,8 @@ var SDKApp = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_
|
|
|
237
238
|
outcomesToken: null,
|
|
238
239
|
rceConfig: null,
|
|
239
240
|
translations: null,
|
|
240
|
-
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
241
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
242
|
+
disableAlertLiveRegion: false
|
|
241
243
|
}, _temp)) || _class);
|
|
242
244
|
exports.SDKApp = SDKApp;
|
|
243
245
|
var DragDroppableSDKApp = (0, _reactDnd.DragDropContext)(_reactDndHtml5Backend.default)(SDKApp);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@instructure/grading-utils": "^1.0.0",
|
|
45
45
|
"@instructure/outcomes-ui": "^2.1.9",
|
|
46
|
-
"@instructure/quiz-common": "18.
|
|
47
|
-
"@instructure/quiz-i18n": "18.
|
|
48
|
-
"@instructure/quiz-interactions": "18.
|
|
49
|
-
"@instructure/quiz-number-input": "18.
|
|
50
|
-
"@instructure/quiz-rce": "18.
|
|
46
|
+
"@instructure/quiz-common": "^18.9.0",
|
|
47
|
+
"@instructure/quiz-i18n": "^18.9.0",
|
|
48
|
+
"@instructure/quiz-interactions": "^18.9.0",
|
|
49
|
+
"@instructure/quiz-number-input": "^18.9.0",
|
|
50
|
+
"@instructure/quiz-rce": "^18.9.0",
|
|
51
51
|
"@instructure/ui-a11y-content": "^7.22.1",
|
|
52
52
|
"@instructure/ui-alerts": "^7.22.1",
|
|
53
53
|
"@instructure/ui-avatar": "^7.22.1",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"file-saver": "~2.0.5",
|
|
110
110
|
"humps": "^2.0.0",
|
|
111
111
|
"immutable": "^3.8.1",
|
|
112
|
-
"instructure-validations": "18.
|
|
112
|
+
"instructure-validations": "^18.9.0",
|
|
113
113
|
"ipaddr.js": "^1.5.4",
|
|
114
114
|
"isomorphic-fetch": "^2.2.0",
|
|
115
115
|
"isuuid": "^0.1.0",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"uuid": "^3.2.1"
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
144
|
-
"@instructure/quiz-scripts": "18.
|
|
144
|
+
"@instructure/quiz-scripts": "^18.9.0",
|
|
145
145
|
"@instructure/ui-axe-check": "^7.22.1",
|
|
146
146
|
"@instructure/ui-babel-preset": "^7.22.1",
|
|
147
147
|
"@instructure/ui-karma-config": "^7.22.1",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"intl": "^1.2.4",
|
|
161
161
|
"jquery": "^2.2.3",
|
|
162
162
|
"most-subject": "^5.3.0",
|
|
163
|
-
"quiz-presets": "18.
|
|
163
|
+
"quiz-presets": "^18.9.0",
|
|
164
164
|
"react": "^16.8.6",
|
|
165
165
|
"react-addons-test-utils": "^15.6.2",
|
|
166
166
|
"react-dom": "^16.8.6",
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"publishConfig": {
|
|
177
177
|
"access": "public"
|
|
178
178
|
},
|
|
179
|
-
"gitHead": "
|
|
179
|
+
"gitHead": "bb071c18ac5b65f10edcbaac0a447a8cb0f3f793"
|
|
180
180
|
}
|