@instructure/quiz-core 17.65.1-rc.1 → 17.66.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/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/AnswerSummaryTableRow/index.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/{Row → AnswerSummaryTableRow}/presenter.js +15 -17
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/AnswerSummaryTableRow/theme.js +6 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/ChoiceInfo/presenter.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/presenter.js +3 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/{Row → AnswerSummaryTableRow}/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/{Row → AnswerSummaryTableRow}/presenter.js +17 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/AnswerSummaryTableRow/theme.js +13 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/ChoiceInfo/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/presenter.js +3 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/theme.js +0 -2
- package/package.json +10 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/Row/index.js +0 -2
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
|
+
# [17.66.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.65.0...v17.66.0) (2023-08-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **AnswerSummaryTable:** Fix AnswerSummaryTable on prod environment ([d8ebd65](https://gerrit.instructure.com/quizzes-ui/commits/d8ebd659e53614f004039e774fa67d7bd901e88e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [17.65.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.64.0...v17.65.0) (2023-08-16)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -8,17 +8,16 @@ var _dec, _class, _class2, _temp;
|
|
|
8
8
|
import React, { Component } from 'react';
|
|
9
9
|
import { Table } from '@instructure/ui-table';
|
|
10
10
|
import { themeable } from '@instructure/ui-themeable';
|
|
11
|
-
import theme from "
|
|
11
|
+
import theme from "./theme.js";
|
|
12
12
|
var styles = {
|
|
13
|
-
componentId: '
|
|
13
|
+
componentId: 'cInnW',
|
|
14
14
|
template: function template(theme) {
|
|
15
|
-
return "\n\n.
|
|
15
|
+
return "\n\n.cInnW_cvRx{align-items:center;display:flex;height:48px;justify-content:center;width:46px}\n\n.cInnW_EKAb{background-color:".concat(theme.colorGreen || 'inherit', ";border-radius:4px 0 0 4px}\n\n.cInnW_EKAb svg{fill:#fff}\n\n.cInnW_tnta{border-color:").concat(theme.colorGreen || 'inherit', ";border-style:solid;border-width:2px 0;padding:").concat(theme.cellPadding || 'inherit', "}\n\n.cInnW_fvqY{border-radius:0 4px 4px 0;border-width:2px 2px 2px 0}");
|
|
16
16
|
},
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'correctRowBorderRadius': 'bmrdF_fvqY'
|
|
17
|
+
'iconWrapper': 'cInnW_cvRx',
|
|
18
|
+
'iconCorrect': 'cInnW_EKAb',
|
|
19
|
+
'correctRowBorder': 'cInnW_tnta',
|
|
20
|
+
'correctRowBorderRadius': 'cInnW_fvqY'
|
|
22
21
|
};
|
|
23
22
|
import PropTypes from 'prop-types';
|
|
24
23
|
import { IconXSolid, IconCheckSolid } from '@instructure/ui-icons';
|
|
@@ -29,15 +28,15 @@ var _ref = /*#__PURE__*/React.createElement(IconCheckSolid, null);
|
|
|
29
28
|
|
|
30
29
|
var _ref2 = /*#__PURE__*/React.createElement(IconXSolid, null);
|
|
31
30
|
|
|
32
|
-
export var
|
|
33
|
-
_inherits(
|
|
31
|
+
export var AnswerSummaryTableRow = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
32
|
+
_inherits(AnswerSummaryTableRow, _Component);
|
|
34
33
|
|
|
35
|
-
var _super = _createSuper(
|
|
34
|
+
var _super = _createSuper(AnswerSummaryTableRow);
|
|
36
35
|
|
|
37
|
-
function
|
|
36
|
+
function AnswerSummaryTableRow() {
|
|
38
37
|
var _this;
|
|
39
38
|
|
|
40
|
-
_classCallCheck(this,
|
|
39
|
+
_classCallCheck(this, AnswerSummaryTableRow);
|
|
41
40
|
|
|
42
41
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43
42
|
args[_key] = arguments[_key];
|
|
@@ -82,8 +81,7 @@ export var Row = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class
|
|
|
82
81
|
theme: {
|
|
83
82
|
padding: cellPadding,
|
|
84
83
|
fontWeight: 'bold'
|
|
85
|
-
}
|
|
86
|
-
className: styles.tableBody
|
|
84
|
+
}
|
|
87
85
|
}, _this.renderMiddleCell(correct, extractTextFromHtml(_this.props.choice.body))), /*#__PURE__*/React.createElement(Table.Cell, {
|
|
88
86
|
theme: {
|
|
89
87
|
padding: cellPadding,
|
|
@@ -101,8 +99,8 @@ export var Row = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class
|
|
|
101
99
|
return _this;
|
|
102
100
|
}
|
|
103
101
|
|
|
104
|
-
return
|
|
105
|
-
}(Component), _class2.propTypes = {
|
|
102
|
+
return AnswerSummaryTableRow;
|
|
103
|
+
}(Component), _class2.displayName = 'Row', _class2.propTypes = {
|
|
106
104
|
choice: PropTypes.shape({
|
|
107
105
|
body: PropTypes.string,
|
|
108
106
|
correct: PropTypes.bool,
|
|
@@ -5,7 +5,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
7
7
|
import { Table } from '@instructure/ui-table';
|
|
8
|
-
import
|
|
8
|
+
import AnswerSummaryTableRow from "../AnswerSummaryTableRow/index.js";
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
export var ChoiceInfo = /*#__PURE__*/function (_Component) {
|
|
11
11
|
_inherits(ChoiceInfo, _Component);
|
|
@@ -24,7 +24,7 @@ export var ChoiceInfo = /*#__PURE__*/function (_Component) {
|
|
|
24
24
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
25
25
|
|
|
26
26
|
_this.renderRow = function (choice, choiceIndex) {
|
|
27
|
-
return /*#__PURE__*/React.createElement(
|
|
27
|
+
return /*#__PURE__*/React.createElement(AnswerSummaryTableRow, {
|
|
28
28
|
key: choiceIndex,
|
|
29
29
|
choice: choice,
|
|
30
30
|
choiceIndex: choiceIndex
|
|
@@ -38,7 +38,7 @@ export var ChoiceInfo = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
correct: false,
|
|
39
39
|
count: payload.count
|
|
40
40
|
};
|
|
41
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
+
return /*#__PURE__*/React.createElement(AnswerSummaryTableRow, {
|
|
42
42
|
key: choiceIndex,
|
|
43
43
|
choice: asChoice,
|
|
44
44
|
choiceIndex: choiceIndex
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/presenter.js
CHANGED
|
@@ -9,15 +9,11 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
9
9
|
import { themeable } from '@instructure/ui-themeable';
|
|
10
10
|
import theme from "./theme.js";
|
|
11
11
|
var styles = {
|
|
12
|
-
componentId: '
|
|
12
|
+
componentId: 'ZuPLN',
|
|
13
13
|
template: function template(theme) {
|
|
14
|
-
return "\n\n.
|
|
14
|
+
return "\n\n.ZuPLN_rMrG{display:flex;flex-basis:100%;flex-direction:column;padding-bottom:".concat(theme.tableBottomPadding || 'inherit', "}");
|
|
15
15
|
},
|
|
16
|
-
'tableWrapper': '
|
|
17
|
-
'iconWrapper': 'bmrdF_cvRx',
|
|
18
|
-
'iconCorrect': 'bmrdF_EKAb',
|
|
19
|
-
'correctRowBorder': 'bmrdF_tnta',
|
|
20
|
-
'correctRowBorderRadius': 'bmrdF_fvqY'
|
|
16
|
+
'tableWrapper': 'ZuPLN_rMrG'
|
|
21
17
|
};
|
|
22
18
|
import { ChoiceInfo } from "./ChoiceInfo/presenter.js";
|
|
23
19
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
@@ -7,7 +7,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.AnswerSummaryTableRow = void 0;
|
|
11
11
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ var _uiTable = require("@instructure/ui-table");
|
|
|
23
23
|
|
|
24
24
|
var _uiThemeable = require("@instructure/ui-themeable");
|
|
25
25
|
|
|
26
|
-
var _theme = _interopRequireDefault(require("
|
|
26
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
27
27
|
|
|
28
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
29
|
|
|
@@ -36,30 +36,29 @@ var _quizInteractions = require("@instructure/quiz-interactions");
|
|
|
36
36
|
var _dec, _class, _class2, _temp;
|
|
37
37
|
|
|
38
38
|
var styles = {
|
|
39
|
-
componentId: '
|
|
39
|
+
componentId: 'cInnW',
|
|
40
40
|
template: function template(theme) {
|
|
41
|
-
return "\n\n.
|
|
41
|
+
return "\n\n.cInnW_cvRx{align-items:center;display:flex;height:48px;justify-content:center;width:46px}\n\n.cInnW_EKAb{background-color:".concat(theme.colorGreen || 'inherit', ";border-radius:4px 0 0 4px}\n\n.cInnW_EKAb svg{fill:#fff}\n\n.cInnW_tnta{border-color:").concat(theme.colorGreen || 'inherit', ";border-style:solid;border-width:2px 0;padding:").concat(theme.cellPadding || 'inherit', "}\n\n.cInnW_fvqY{border-radius:0 4px 4px 0;border-width:2px 2px 2px 0}");
|
|
42
42
|
},
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'correctRowBorderRadius': 'bmrdF_fvqY'
|
|
43
|
+
'iconWrapper': 'cInnW_cvRx',
|
|
44
|
+
'iconCorrect': 'cInnW_EKAb',
|
|
45
|
+
'correctRowBorder': 'cInnW_tnta',
|
|
46
|
+
'correctRowBorderRadius': 'cInnW_fvqY'
|
|
48
47
|
};
|
|
49
48
|
|
|
50
49
|
var _ref = /*#__PURE__*/_react.default.createElement(_uiIcons.IconCheckSolid, null);
|
|
51
50
|
|
|
52
51
|
var _ref2 = /*#__PURE__*/_react.default.createElement(_uiIcons.IconXSolid, null);
|
|
53
52
|
|
|
54
|
-
var
|
|
55
|
-
(0, _inherits2.default)(
|
|
53
|
+
var AnswerSummaryTableRow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
54
|
+
(0, _inherits2.default)(AnswerSummaryTableRow, _Component);
|
|
56
55
|
|
|
57
|
-
var _super = (0, _createSuper2.default)(
|
|
56
|
+
var _super = (0, _createSuper2.default)(AnswerSummaryTableRow);
|
|
58
57
|
|
|
59
|
-
function
|
|
58
|
+
function AnswerSummaryTableRow() {
|
|
60
59
|
var _this;
|
|
61
60
|
|
|
62
|
-
(0, _classCallCheck2.default)(this,
|
|
61
|
+
(0, _classCallCheck2.default)(this, AnswerSummaryTableRow);
|
|
63
62
|
|
|
64
63
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
65
64
|
args[_key] = arguments[_key];
|
|
@@ -104,8 +103,7 @@ var Row = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_cla
|
|
|
104
103
|
theme: {
|
|
105
104
|
padding: cellPadding,
|
|
106
105
|
fontWeight: 'bold'
|
|
107
|
-
}
|
|
108
|
-
className: styles.tableBody
|
|
106
|
+
}
|
|
109
107
|
}, _this.renderMiddleCell(correct, (0, _quizInteractions.extractTextFromHtml)(_this.props.choice.body))), /*#__PURE__*/_react.default.createElement(_uiTable.Table.Cell, {
|
|
110
108
|
theme: {
|
|
111
109
|
padding: cellPadding,
|
|
@@ -123,8 +121,8 @@ var Row = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_cla
|
|
|
123
121
|
return _this;
|
|
124
122
|
}
|
|
125
123
|
|
|
126
|
-
return
|
|
127
|
-
}(_react.Component), _class2.propTypes = {
|
|
124
|
+
return AnswerSummaryTableRow;
|
|
125
|
+
}(_react.Component), _class2.displayName = 'Row', _class2.propTypes = {
|
|
128
126
|
choice: _propTypes.default.shape({
|
|
129
127
|
body: _propTypes.default.string,
|
|
130
128
|
correct: _propTypes.default.bool,
|
|
@@ -133,4 +131,4 @@ var Row = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_cla
|
|
|
133
131
|
}),
|
|
134
132
|
choiceIndex: _propTypes.default.number
|
|
135
133
|
}.isRequired, _temp)) || _class);
|
|
136
|
-
exports.
|
|
134
|
+
exports.AnswerSummaryTableRow = AnswerSummaryTableRow;
|
|
@@ -23,7 +23,7 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
23
23
|
|
|
24
24
|
var _uiTable = require("@instructure/ui-table");
|
|
25
25
|
|
|
26
|
-
var _index = _interopRequireDefault(require("../
|
|
26
|
+
var _index = _interopRequireDefault(require("../AnswerSummaryTableRow/index.js"));
|
|
27
27
|
|
|
28
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
29
|
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/presenter.js
CHANGED
|
@@ -34,15 +34,11 @@ var _quizInteractions = require("@instructure/quiz-interactions");
|
|
|
34
34
|
var _dec, _class, _class2, _temp;
|
|
35
35
|
|
|
36
36
|
var styles = {
|
|
37
|
-
componentId: '
|
|
37
|
+
componentId: 'ZuPLN',
|
|
38
38
|
template: function template(theme) {
|
|
39
|
-
return "\n\n.
|
|
39
|
+
return "\n\n.ZuPLN_rMrG{display:flex;flex-basis:100%;flex-direction:column;padding-bottom:".concat(theme.tableBottomPadding || 'inherit', "}");
|
|
40
40
|
},
|
|
41
|
-
'tableWrapper': '
|
|
42
|
-
'iconWrapper': 'bmrdF_cvRx',
|
|
43
|
-
'iconCorrect': 'bmrdF_EKAb',
|
|
44
|
-
'correctRowBorder': 'bmrdF_tnta',
|
|
45
|
-
'correctRowBorderRadius': 'bmrdF_fvqY'
|
|
41
|
+
'tableWrapper': 'ZuPLN_rMrG'
|
|
46
42
|
};
|
|
47
43
|
var AnswerSummaryTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
48
44
|
(0, _inherits2.default)(AnswerSummaryTable, _Component);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.66.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/grading-utils": "^1.0.0",
|
|
44
44
|
"@instructure/outcomes-ui": "^2.1.9",
|
|
45
|
-
"@instructure/quiz-common": "17.
|
|
46
|
-
"@instructure/quiz-i18n": "17.
|
|
47
|
-
"@instructure/quiz-interactions": "17.
|
|
48
|
-
"@instructure/quiz-number-input": "17.
|
|
49
|
-
"@instructure/quiz-rce": "17.
|
|
45
|
+
"@instructure/quiz-common": "^17.66.0",
|
|
46
|
+
"@instructure/quiz-i18n": "^17.66.0",
|
|
47
|
+
"@instructure/quiz-interactions": "^17.66.0",
|
|
48
|
+
"@instructure/quiz-number-input": "^17.66.0",
|
|
49
|
+
"@instructure/quiz-rce": "^17.66.0",
|
|
50
50
|
"@instructure/ui-a11y-content": "^7.20.0",
|
|
51
51
|
"@instructure/ui-alerts": "^7.20.0",
|
|
52
52
|
"@instructure/ui-avatar": "^7.20.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"eventemitter3": "^3.1.0",
|
|
108
108
|
"humps": "^2.0.0",
|
|
109
109
|
"immutable": "^3.8.1",
|
|
110
|
-
"instructure-validations": "17.
|
|
110
|
+
"instructure-validations": "^17.66.0",
|
|
111
111
|
"ipaddr.js": "^1.5.4",
|
|
112
112
|
"isomorphic-fetch": "^2.2.0",
|
|
113
113
|
"isuuid": "^0.1.0",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"uuid": "^3.2.1"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@instructure/quiz-scripts": "17.
|
|
142
|
+
"@instructure/quiz-scripts": "^17.66.0",
|
|
143
143
|
"@instructure/ui-axe-check": "^7.20.0",
|
|
144
144
|
"@instructure/ui-babel-preset": "^7.20.0",
|
|
145
145
|
"@instructure/ui-karma-config": "^7.20.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"intl": "^1.2.4",
|
|
159
159
|
"jquery": "^2.2.3",
|
|
160
160
|
"most-subject": "^5.3.0",
|
|
161
|
-
"quiz-presets": "17.
|
|
161
|
+
"quiz-presets": "^17.66.0",
|
|
162
162
|
"react": "^16.8.6",
|
|
163
163
|
"react-addons-test-utils": "^15.6.2",
|
|
164
164
|
"react-dom": "^16.8.6",
|
|
@@ -174,5 +174,5 @@
|
|
|
174
174
|
"publishConfig": {
|
|
175
175
|
"access": "public"
|
|
176
176
|
},
|
|
177
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "6803828422b3668548d9f85bf8959cca46ec3b3f"
|
|
178
178
|
}
|