@instructure/quiz-core 17.20.1-rc.2 → 17.22.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 +22 -0
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +1 -0
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +3 -1
- package/es/common/components/resources/item/ItemOverride/index.js +1 -0
- package/es/common/components/resources/item/ItemOverride/presenter.js +3 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +1 -0
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +3 -1
- package/lib/common/components/resources/item/ItemOverride/index.js +1 -0
- package/lib/common/components/resources/item/ItemOverride/presenter.js +3 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
# [17.22.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.21.0...v17.22.0) (2021-12-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **partialMatching:** allow algorithm override when pulling from bank ([925a96b](https://gerrit.instructure.com/quizzes-ui/commits/925a96b9b5dfd5dd25c38beaa685af3701a448f9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [17.21.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.20.0...v17.21.0) (2021-12-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **BanksList:** Delete bank when creator is not set ([1a18809](https://gerrit.instructure.com/quizzes-ui/commits/1a18809aa74a6a107532b7112139bfdbaddece31))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [17.20.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.19.2...v17.20.0) (2021-12-10)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -39,6 +39,7 @@ export var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
39
39
|
// needed for DnD
|
|
40
40
|
guid: guid,
|
|
41
41
|
initialFocusId: initialFocusId,
|
|
42
|
+
partialDeepScoringEnabled: featureOn('partial_deep_scoring'),
|
|
42
43
|
partialScoringEnabled: featureOn('partial_scoring'),
|
|
43
44
|
quizId: quizId,
|
|
44
45
|
// needed for DND
|
|
@@ -57,7 +57,7 @@ export var QuizEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
57
57
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
58
58
|
|
|
59
59
|
_this.itemOverrideTypes = function () {
|
|
60
|
-
return ['choice'].concat(_toConsumableArray(_this.props.partialScoringEnabled ? ['multi-answer'] : []));
|
|
60
|
+
return ['choice'].concat(_toConsumableArray(_this.props.partialScoringEnabled ? ['multi-answer'] : []), _toConsumableArray(_this.props.partialDeepScoringEnabled ? ['matching'] : []));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
_this.openRegradeModal = function () {
|
|
@@ -350,6 +350,7 @@ export var QuizEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
350
350
|
newHoverPosition: PropTypes.func.isRequired,
|
|
351
351
|
// used for DnD
|
|
352
352
|
openModal: PropTypes.func.isRequired,
|
|
353
|
+
partialDeepScoringEnabled: PropTypes.bool,
|
|
353
354
|
partialScoringEnabled: PropTypes.bool,
|
|
354
355
|
propsForQuizEntry: PropTypes.func.isRequired,
|
|
355
356
|
quizEntries: ImmutablePropTypes.listOf(ImmutablePropTypes.record).isRequired,
|
|
@@ -382,6 +383,7 @@ export var QuizEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
382
383
|
draggingOver: false,
|
|
383
384
|
initialFocusId: null,
|
|
384
385
|
isEditing: false,
|
|
386
|
+
partialDeepScoringEnabled: false,
|
|
385
387
|
partialScoringEnabled: false,
|
|
386
388
|
scrollKey: void 0,
|
|
387
389
|
shouldClone: false,
|
|
@@ -16,6 +16,7 @@ function mapStateToProps(state, props) {
|
|
|
16
16
|
entry: props.quizEntry.getWorkingInstance().getItem(),
|
|
17
17
|
errorsAreShowing: errorsAreShowing,
|
|
18
18
|
oneQuestionAtATime: isActiveQuizWorkingInstanceOneQuestionAtATime(state),
|
|
19
|
+
partialDeepScoringEnabled: featureOn('partial_deep_scoring'),
|
|
19
20
|
partialScoringEnabled: featureOn('partial_scoring'),
|
|
20
21
|
quizId: getActiveQuizId(state)
|
|
21
22
|
};
|
|
@@ -72,6 +72,7 @@ ItemOverride.propTypes = {
|
|
|
72
72
|
oneQuestionAtATime: PropTypes.bool.isRequired,
|
|
73
73
|
parentId: PropTypes.string.isRequired,
|
|
74
74
|
parentType: PropTypes.string.isRequired,
|
|
75
|
+
partialDeepScoringEnabled: PropTypes.bool,
|
|
75
76
|
partialScoringEnabled: PropTypes.bool,
|
|
76
77
|
quizId: PropTypes.string.isRequired,
|
|
77
78
|
screenreaderNotification: PropTypes.func.isRequired,
|
|
@@ -79,6 +80,7 @@ ItemOverride.propTypes = {
|
|
|
79
80
|
};
|
|
80
81
|
ItemOverride.defaultProps = {
|
|
81
82
|
errorsAreShowing: false,
|
|
82
|
-
partialScoringEnabled: false
|
|
83
|
+
partialScoringEnabled: false,
|
|
84
|
+
partialDeepScoringEnabled: false
|
|
83
85
|
};
|
|
84
86
|
export default ItemOverride;
|
|
@@ -64,6 +64,7 @@ var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
64
64
|
// needed for DnD
|
|
65
65
|
guid: guid,
|
|
66
66
|
initialFocusId: initialFocusId,
|
|
67
|
+
partialDeepScoringEnabled: (0, _featureCheck.featureOn)('partial_deep_scoring'),
|
|
67
68
|
partialScoringEnabled: (0, _featureCheck.featureOn)('partial_scoring'),
|
|
68
69
|
quizId: quizId,
|
|
69
70
|
// needed for DND
|
|
@@ -97,7 +97,7 @@ var QuizEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
97
97
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
98
98
|
|
|
99
99
|
_this.itemOverrideTypes = function () {
|
|
100
|
-
return ['choice'].concat((0, _toConsumableArray2.default)(_this.props.partialScoringEnabled ? ['multi-answer'] : []));
|
|
100
|
+
return ['choice'].concat((0, _toConsumableArray2.default)(_this.props.partialScoringEnabled ? ['multi-answer'] : []), (0, _toConsumableArray2.default)(_this.props.partialDeepScoringEnabled ? ['matching'] : []));
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
_this.openRegradeModal = function () {
|
|
@@ -390,6 +390,7 @@ var QuizEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
390
390
|
newHoverPosition: _propTypes.default.func.isRequired,
|
|
391
391
|
// used for DnD
|
|
392
392
|
openModal: _propTypes.default.func.isRequired,
|
|
393
|
+
partialDeepScoringEnabled: _propTypes.default.bool,
|
|
393
394
|
partialScoringEnabled: _propTypes.default.bool,
|
|
394
395
|
propsForQuizEntry: _propTypes.default.func.isRequired,
|
|
395
396
|
quizEntries: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.record).isRequired,
|
|
@@ -422,6 +423,7 @@ var QuizEntry = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _de
|
|
|
422
423
|
draggingOver: false,
|
|
423
424
|
initialFocusId: null,
|
|
424
425
|
isEditing: false,
|
|
426
|
+
partialDeepScoringEnabled: false,
|
|
425
427
|
partialScoringEnabled: false,
|
|
426
428
|
scrollKey: void 0,
|
|
427
429
|
shouldClone: false,
|
|
@@ -36,6 +36,7 @@ function mapStateToProps(state, props) {
|
|
|
36
36
|
entry: props.quizEntry.getWorkingInstance().getItem(),
|
|
37
37
|
errorsAreShowing: errorsAreShowing,
|
|
38
38
|
oneQuestionAtATime: (0, _quizzes2.isActiveQuizWorkingInstanceOneQuestionAtATime)(state),
|
|
39
|
+
partialDeepScoringEnabled: (0, _featureCheck.featureOn)('partial_deep_scoring'),
|
|
39
40
|
partialScoringEnabled: (0, _featureCheck.featureOn)('partial_scoring'),
|
|
40
41
|
quizId: (0, _quizzes2.getActiveQuizId)(state)
|
|
41
42
|
};
|
|
@@ -95,6 +95,7 @@ ItemOverride.propTypes = {
|
|
|
95
95
|
oneQuestionAtATime: _propTypes.default.bool.isRequired,
|
|
96
96
|
parentId: _propTypes.default.string.isRequired,
|
|
97
97
|
parentType: _propTypes.default.string.isRequired,
|
|
98
|
+
partialDeepScoringEnabled: _propTypes.default.bool,
|
|
98
99
|
partialScoringEnabled: _propTypes.default.bool,
|
|
99
100
|
quizId: _propTypes.default.string.isRequired,
|
|
100
101
|
screenreaderNotification: _propTypes.default.func.isRequired,
|
|
@@ -102,7 +103,8 @@ ItemOverride.propTypes = {
|
|
|
102
103
|
};
|
|
103
104
|
ItemOverride.defaultProps = {
|
|
104
105
|
errorsAreShowing: false,
|
|
105
|
-
partialScoringEnabled: false
|
|
106
|
+
partialScoringEnabled: false,
|
|
107
|
+
partialDeepScoringEnabled: false
|
|
106
108
|
};
|
|
107
109
|
var _default = ItemOverride;
|
|
108
110
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.22.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/outcomes-ui": "^2.1.2",
|
|
44
|
-
"@instructure/quiz-common": "17.
|
|
45
|
-
"@instructure/quiz-i18n": "17.
|
|
46
|
-
"@instructure/quiz-interactions": "17.
|
|
47
|
-
"@instructure/quiz-number-input": "17.
|
|
48
|
-
"@instructure/quiz-rce": "17.
|
|
44
|
+
"@instructure/quiz-common": "^17.22.0",
|
|
45
|
+
"@instructure/quiz-i18n": "^17.22.0",
|
|
46
|
+
"@instructure/quiz-interactions": "^17.22.0",
|
|
47
|
+
"@instructure/quiz-number-input": "^17.22.0",
|
|
48
|
+
"@instructure/quiz-rce": "^17.22.0",
|
|
49
49
|
"@instructure/ui-a11y-content": "^7.11.0",
|
|
50
50
|
"@instructure/ui-alerts": "^7.11.0",
|
|
51
51
|
"@instructure/ui-avatar": "^7.11.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"eventemitter3": "^3.1.0",
|
|
107
107
|
"humps": "^2.0.0",
|
|
108
108
|
"immutable": "^3.8.1",
|
|
109
|
-
"instructure-validations": "17.
|
|
109
|
+
"instructure-validations": "^17.22.0",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"uuid": "^3.2.1"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
|
-
"@instructure/quiz-scripts": "17.
|
|
140
|
+
"@instructure/quiz-scripts": "^17.22.0",
|
|
141
141
|
"@instructure/ui-axe-check": "^7.11.0",
|
|
142
142
|
"@instructure/ui-babel-preset": "^7.11.0",
|
|
143
143
|
"@instructure/ui-karma-config": "^7.11.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"intl": "^1.2.4",
|
|
157
157
|
"jquery": "^2.2.3",
|
|
158
158
|
"most-subject": "^5.3.0",
|
|
159
|
-
"quiz-presets": "17.
|
|
159
|
+
"quiz-presets": "^17.22.0",
|
|
160
160
|
"react": "^16.8.6",
|
|
161
161
|
"react-addons-test-utils": "^15.6.2",
|
|
162
162
|
"react-dom": "^16.8.6",
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
"publishConfig": {
|
|
173
173
|
"access": "public"
|
|
174
174
|
},
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "b8dc613f678c84a2c665694af9fdcb1e3c2849ef"
|
|
176
176
|
}
|