@instructure/quiz-core 17.64.1-rc.0 → 17.64.1-rc.2
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/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +15 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +15 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -5
- package/package.json +9 -9
package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js
CHANGED
|
@@ -9,18 +9,19 @@ var _dec, _class, _class2, _temp;
|
|
|
9
9
|
import { Heading } from '@instructure/ui-heading';
|
|
10
10
|
import React, { Component } from 'react';
|
|
11
11
|
var styles = {
|
|
12
|
-
componentId: '
|
|
12
|
+
componentId: 'bIeGi',
|
|
13
13
|
template: function template(theme) {
|
|
14
|
-
return "\n\n.
|
|
14
|
+
return "\n\n.bIeGi_eKXQ{padding:".concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.bIeGi_bwlc{align-items:flex-start;gap:24px;justify-content:space-between;row-gap:32px}\n\n.bIeGi_bwlc,.bIeGi_bqdH{display:flex;flex-direction:row;flex-wrap:wrap}\n\n.bIeGi_bqdH{align-items:center;row-gap:24px}\n\n.bIeGi_NpIG{position:absolute;right:").concat(theme.viewPaddingRight || 'inherit', ";top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.bIeGi_eoBe{font-size:").concat(theme.metricNumberContextFontSize || 'inherit', ";font-weight:").concat(theme.metricNumberContextFontWeight || 'inherit', "}\n\n.bIeGi_fFDJ{display:none}\n\n.bIeGi_esVF{min-height:48px}\n\n.bIeGi_eTZq{position:relative}\n\n.bIeGi_eTZq:after{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);content:\"\";height:48px;left:0;position:absolute;top:0;width:100%}\n\n.bIeGi_fkgx{max-width:100%;width:calc(25% + 350px)}");
|
|
15
15
|
},
|
|
16
|
-
'cardWrapper': '
|
|
17
|
-
'itemCardInnerContainer': '
|
|
18
|
-
'metricsContainer': '
|
|
19
|
-
'itemCardToggleButtonWrapper': '
|
|
20
|
-
'metricNumberContext': '
|
|
21
|
-
'hiddenMetrics': '
|
|
22
|
-
'itemBody': '
|
|
23
|
-
'hiddenItemBody': '
|
|
16
|
+
'cardWrapper': 'bIeGi_eKXQ',
|
|
17
|
+
'itemCardInnerContainer': 'bIeGi_bwlc',
|
|
18
|
+
'metricsContainer': 'bIeGi_bqdH',
|
|
19
|
+
'itemCardToggleButtonWrapper': 'bIeGi_NpIG',
|
|
20
|
+
'metricNumberContext': 'bIeGi_eoBe',
|
|
21
|
+
'hiddenMetrics': 'bIeGi_fFDJ',
|
|
22
|
+
'itemBody': 'bIeGi_esVF',
|
|
23
|
+
'hiddenItemBody': 'bIeGi_eTZq',
|
|
24
|
+
'answerSummaryTableContainer': 'bIeGi_fkgx'
|
|
24
25
|
};
|
|
25
26
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
26
27
|
import ExpandButton from "../../../../../common/components/shared/ExpandButton/index.js";
|
|
@@ -183,14 +184,16 @@ export var NewItemAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
183
184
|
_this.renderAnswerSummaryTable = function (itemId, answer_summary, isSupportedTable, metricsClass) {
|
|
184
185
|
return /*#__PURE__*/React.createElement("div", {
|
|
185
186
|
className: metricsClass
|
|
187
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
188
|
+
className: styles.answerSummaryTableContainer
|
|
186
189
|
}, isSupportedTable && /*#__PURE__*/React.createElement(Flex, {
|
|
187
190
|
direction: "row"
|
|
188
191
|
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
189
|
-
|
|
192
|
+
shouldGrow: true
|
|
190
193
|
}, /*#__PURE__*/React.createElement(AnswerSummaryTable, {
|
|
191
194
|
itemId: itemId,
|
|
192
195
|
answerSummary: answer_summary
|
|
193
|
-
}))));
|
|
196
|
+
})))));
|
|
194
197
|
};
|
|
195
198
|
|
|
196
199
|
return _this;
|
|
@@ -27,11 +27,7 @@ export var fetchReports = /*#__PURE__*/function () {
|
|
|
27
27
|
setStatusPollingInProgress(areAnalysesInProgress);
|
|
28
28
|
setQuizAnalysis(quizAnalysis.last_successful_analysis);
|
|
29
29
|
setItemAnalyses(itemAnalyses.last_successful_analysis);
|
|
30
|
-
|
|
31
|
-
if (areAnalysesFailed) {
|
|
32
|
-
setAnalysisError(getLastReportGenerationFailed());
|
|
33
|
-
}
|
|
34
|
-
|
|
30
|
+
setAnalysisError(areAnalysesFailed ? getLastReportGenerationFailed() : null);
|
|
35
31
|
_context.next = 21;
|
|
36
32
|
break;
|
|
37
33
|
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js
CHANGED
|
@@ -56,18 +56,19 @@ var _uiFlex = require("@instructure/ui-flex");
|
|
|
56
56
|
var _dec, _class, _class2, _temp;
|
|
57
57
|
|
|
58
58
|
var styles = {
|
|
59
|
-
componentId: '
|
|
59
|
+
componentId: 'bIeGi',
|
|
60
60
|
template: function template(theme) {
|
|
61
|
-
return "\n\n.
|
|
61
|
+
return "\n\n.bIeGi_eKXQ{padding:".concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.bIeGi_bwlc{align-items:flex-start;gap:24px;justify-content:space-between;row-gap:32px}\n\n.bIeGi_bwlc,.bIeGi_bqdH{display:flex;flex-direction:row;flex-wrap:wrap}\n\n.bIeGi_bqdH{align-items:center;row-gap:24px}\n\n.bIeGi_NpIG{position:absolute;right:").concat(theme.viewPaddingRight || 'inherit', ";top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.bIeGi_eoBe{font-size:").concat(theme.metricNumberContextFontSize || 'inherit', ";font-weight:").concat(theme.metricNumberContextFontWeight || 'inherit', "}\n\n.bIeGi_fFDJ{display:none}\n\n.bIeGi_esVF{min-height:48px}\n\n.bIeGi_eTZq{position:relative}\n\n.bIeGi_eTZq:after{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);content:\"\";height:48px;left:0;position:absolute;top:0;width:100%}\n\n.bIeGi_fkgx{max-width:100%;width:calc(25% + 350px)}");
|
|
62
62
|
},
|
|
63
|
-
'cardWrapper': '
|
|
64
|
-
'itemCardInnerContainer': '
|
|
65
|
-
'metricsContainer': '
|
|
66
|
-
'itemCardToggleButtonWrapper': '
|
|
67
|
-
'metricNumberContext': '
|
|
68
|
-
'hiddenMetrics': '
|
|
69
|
-
'itemBody': '
|
|
70
|
-
'hiddenItemBody': '
|
|
63
|
+
'cardWrapper': 'bIeGi_eKXQ',
|
|
64
|
+
'itemCardInnerContainer': 'bIeGi_bwlc',
|
|
65
|
+
'metricsContainer': 'bIeGi_bqdH',
|
|
66
|
+
'itemCardToggleButtonWrapper': 'bIeGi_NpIG',
|
|
67
|
+
'metricNumberContext': 'bIeGi_eoBe',
|
|
68
|
+
'hiddenMetrics': 'bIeGi_fFDJ',
|
|
69
|
+
'itemBody': 'bIeGi_esVF',
|
|
70
|
+
'hiddenItemBody': 'bIeGi_eTZq',
|
|
71
|
+
'answerSummaryTableContainer': 'bIeGi_fkgx'
|
|
71
72
|
};
|
|
72
73
|
var supportedTables = ['choice', 'true-false', 'multi-answer'];
|
|
73
74
|
var NewItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
@@ -215,14 +216,16 @@ var NewItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
215
216
|
_this.renderAnswerSummaryTable = function (itemId, answer_summary, isSupportedTable, metricsClass) {
|
|
216
217
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
217
218
|
className: metricsClass
|
|
219
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
220
|
+
className: styles.answerSummaryTableContainer
|
|
218
221
|
}, isSupportedTable && /*#__PURE__*/_react.default.createElement(_uiFlex.Flex, {
|
|
219
222
|
direction: "row"
|
|
220
223
|
}, /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, {
|
|
221
|
-
|
|
224
|
+
shouldGrow: true
|
|
222
225
|
}, /*#__PURE__*/_react.default.createElement(_index5.default, {
|
|
223
226
|
itemId: itemId,
|
|
224
227
|
answerSummary: answer_summary
|
|
225
|
-
}))));
|
|
228
|
+
})))));
|
|
226
229
|
};
|
|
227
230
|
|
|
228
231
|
return _this;
|
|
@@ -40,11 +40,7 @@ var fetchReports = /*#__PURE__*/function () {
|
|
|
40
40
|
setStatusPollingInProgress(areAnalysesInProgress);
|
|
41
41
|
setQuizAnalysis(quizAnalysis.last_successful_analysis);
|
|
42
42
|
setItemAnalyses(itemAnalyses.last_successful_analysis);
|
|
43
|
-
|
|
44
|
-
if (areAnalysesFailed) {
|
|
45
|
-
setAnalysisError((0, _errorMessages.getLastReportGenerationFailed)());
|
|
46
|
-
}
|
|
47
|
-
|
|
43
|
+
setAnalysisError(areAnalysesFailed ? (0, _errorMessages.getLastReportGenerationFailed)() : null);
|
|
48
44
|
_context.next = 21;
|
|
49
45
|
break;
|
|
50
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.64.1-rc.
|
|
3
|
+
"version": "17.64.1-rc.2+819871daa",
|
|
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.9",
|
|
44
|
-
"@instructure/quiz-common": "17.64.1-rc.
|
|
45
|
-
"@instructure/quiz-i18n": "17.64.1-rc.
|
|
46
|
-
"@instructure/quiz-interactions": "17.64.1-rc.
|
|
47
|
-
"@instructure/quiz-number-input": "17.64.1-rc.
|
|
48
|
-
"@instructure/quiz-rce": "17.64.1-rc.
|
|
44
|
+
"@instructure/quiz-common": "17.64.1-rc.2+819871daa",
|
|
45
|
+
"@instructure/quiz-i18n": "17.64.1-rc.2+819871daa",
|
|
46
|
+
"@instructure/quiz-interactions": "17.64.1-rc.2+819871daa",
|
|
47
|
+
"@instructure/quiz-number-input": "17.64.1-rc.2+819871daa",
|
|
48
|
+
"@instructure/quiz-rce": "17.64.1-rc.2+819871daa",
|
|
49
49
|
"@instructure/ui-a11y-content": "^7.20.0",
|
|
50
50
|
"@instructure/ui-alerts": "^7.20.0",
|
|
51
51
|
"@instructure/ui-avatar": "^7.20.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.64.1-rc.
|
|
109
|
+
"instructure-validations": "17.64.1-rc.2+819871daa",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"intl": "^1.2.4",
|
|
158
158
|
"jquery": "^2.2.3",
|
|
159
159
|
"most-subject": "^5.3.0",
|
|
160
|
-
"quiz-presets": "17.64.1-rc.
|
|
160
|
+
"quiz-presets": "17.64.1-rc.2+819871daa",
|
|
161
161
|
"react": "^16.8.6",
|
|
162
162
|
"react-addons-test-utils": "^15.6.2",
|
|
163
163
|
"react-dom": "^16.8.6",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"publishConfig": {
|
|
174
174
|
"access": "public"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "819871daafc1c68e4691ee2efbdfe6108144329e"
|
|
177
177
|
}
|