@instructure/quiz-core 18.3.1-rc.1 → 18.3.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/AnalysisMetric/presenter.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +5 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +5 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +4 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -3
- package/package.json +9 -9
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js
CHANGED
|
@@ -8,11 +8,11 @@ var _dec, _class, _class2, _temp;
|
|
|
8
8
|
import { themeable } from '@instructure/ui-themeable';
|
|
9
9
|
import theme from "./theme.js";
|
|
10
10
|
var styles = {
|
|
11
|
-
componentId: '
|
|
11
|
+
componentId: 'ethsC',
|
|
12
12
|
template: function template(theme) {
|
|
13
|
-
return "\n\n.
|
|
13
|
+
return "\n\n.ethsC_eckF{margin:0;max-width:159px;text-transform:capitalize}";
|
|
14
14
|
},
|
|
15
|
-
'metricLabel': '
|
|
15
|
+
'metricLabel': 'ethsC_eckF'
|
|
16
16
|
};
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
18
|
import { getSanitizedMetricValue } from "../utils.js";
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js
CHANGED
|
@@ -9,13 +9,13 @@ import React, { Component } from 'react';
|
|
|
9
9
|
import { Metric } from '@instructure/ui-metric';
|
|
10
10
|
import { getSanitizedMetricValue } from "../utils.js";
|
|
11
11
|
var styles = {
|
|
12
|
-
componentId: '
|
|
12
|
+
componentId: 'dpcwk',
|
|
13
13
|
template: function template(theme) {
|
|
14
|
-
return "\n\n.
|
|
14
|
+
return "\n\n.dpcwk_elNf{max-width:159px}\n\n.dpcwk_eckF{margin:0;padding-right:24px;text-transform:capitalize}\n\n.dpcwk_dqHR{margin-left:-24px;padding-left:5px}";
|
|
15
15
|
},
|
|
16
|
-
'metricLabelContainer': '
|
|
17
|
-
'metricLabel': '
|
|
18
|
-
'popoverContainer': '
|
|
16
|
+
'metricLabelContainer': 'dpcwk_elNf',
|
|
17
|
+
'metricLabel': 'dpcwk_eckF',
|
|
18
|
+
'popoverContainer': 'dpcwk_dqHR'
|
|
19
19
|
};
|
|
20
20
|
import MetricPopover from "../MetricPopover/index.js";
|
|
21
21
|
import { themeable } from '@instructure/ui-themeable';
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js
CHANGED
|
@@ -100,17 +100,17 @@ export var NewQuizAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
100
100
|
className: styles.metricsWrapper
|
|
101
101
|
}, /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
102
102
|
metricKey: "highscore",
|
|
103
|
-
label: t('
|
|
103
|
+
label: t('High Score'),
|
|
104
104
|
value: scores === null || scores === void 0 ? void 0 : scores.max_percentage,
|
|
105
105
|
suffix: "%"
|
|
106
106
|
}), /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
107
107
|
metricKey: "lowscore",
|
|
108
|
-
label: t('
|
|
108
|
+
label: t('Low Score'),
|
|
109
109
|
value: scores === null || scores === void 0 ? void 0 : scores.min_percentage,
|
|
110
110
|
suffix: "%"
|
|
111
111
|
}), /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
112
112
|
metricKey: "meanscore",
|
|
113
|
-
label: t('
|
|
113
|
+
label: t('Mean Score'),
|
|
114
114
|
value: scores === null || scores === void 0 ? void 0 : scores.mean_percentage,
|
|
115
115
|
suffix: "%"
|
|
116
116
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -122,7 +122,7 @@ export var NewQuizAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
122
122
|
suffix: "%"
|
|
123
123
|
}), /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
124
124
|
metricKey: "mean_elapsed_sec",
|
|
125
|
-
label: t('
|
|
125
|
+
label: t('Mean Elapsed Time'),
|
|
126
126
|
value: formatTimeToFullNumeric(attempts === null || attempts === void 0 ? void 0 : attempts.mean_elapsed_sec)
|
|
127
127
|
})), /*#__PURE__*/React.createElement("div", {
|
|
128
128
|
className: styles.expandButtonContainer
|
|
@@ -64,17 +64,17 @@ export var NewQuizAndItemAnalysisReportCardPresenter = (_dec = themeable(theme,
|
|
|
64
64
|
className: styles.metricsContainer
|
|
65
65
|
}, /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
66
66
|
metricKey: "highscore",
|
|
67
|
-
label: t('
|
|
67
|
+
label: t('High Score'),
|
|
68
68
|
value: (_quizAnalysis$scores = quizAnalysis.scores) === null || _quizAnalysis$scores === void 0 ? void 0 : _quizAnalysis$scores.max_percentage,
|
|
69
69
|
suffix: "%"
|
|
70
70
|
}), /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
71
71
|
metricKey: "lowscore",
|
|
72
|
-
label: t('
|
|
72
|
+
label: t('Low Score'),
|
|
73
73
|
value: (_quizAnalysis$scores2 = quizAnalysis.scores) === null || _quizAnalysis$scores2 === void 0 ? void 0 : _quizAnalysis$scores2.min_percentage,
|
|
74
74
|
suffix: "%"
|
|
75
75
|
}), /*#__PURE__*/React.createElement(AnalysisMetric, {
|
|
76
76
|
metricKey: "meanscore",
|
|
77
|
-
label: t('
|
|
77
|
+
label: t('Mean Score'),
|
|
78
78
|
value: (_quizAnalysis$scores3 = quizAnalysis.scores) === null || _quizAnalysis$scores3 === void 0 ? void 0 : _quizAnalysis$scores3.mean_percentage,
|
|
79
79
|
suffix: "%"
|
|
80
80
|
}));
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js
CHANGED
|
@@ -32,11 +32,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
32
32
|
var _dec, _class, _class2, _temp;
|
|
33
33
|
|
|
34
34
|
var styles = {
|
|
35
|
-
componentId: '
|
|
35
|
+
componentId: 'ethsC',
|
|
36
36
|
template: function template(theme) {
|
|
37
|
-
return "\n\n.
|
|
37
|
+
return "\n\n.ethsC_eckF{margin:0;max-width:159px;text-transform:capitalize}";
|
|
38
38
|
},
|
|
39
|
-
'metricLabel': '
|
|
39
|
+
'metricLabel': 'ethsC_eckF'
|
|
40
40
|
};
|
|
41
41
|
var AnalysisMetric = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
42
42
|
(0, _inherits2.default)(AnalysisMetric, _Component);
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js
CHANGED
|
@@ -34,13 +34,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
34
34
|
var _dec, _class, _class2, _temp;
|
|
35
35
|
|
|
36
36
|
var styles = {
|
|
37
|
-
componentId: '
|
|
37
|
+
componentId: 'dpcwk',
|
|
38
38
|
template: function template(theme) {
|
|
39
|
-
return "\n\n.
|
|
39
|
+
return "\n\n.dpcwk_elNf{max-width:159px}\n\n.dpcwk_eckF{margin:0;padding-right:24px;text-transform:capitalize}\n\n.dpcwk_dqHR{margin-left:-24px;padding-left:5px}";
|
|
40
40
|
},
|
|
41
|
-
'metricLabelContainer': '
|
|
42
|
-
'metricLabel': '
|
|
43
|
-
'popoverContainer': '
|
|
41
|
+
'metricLabelContainer': 'dpcwk_elNf',
|
|
42
|
+
'metricLabel': 'dpcwk_eckF',
|
|
43
|
+
'popoverContainer': 'dpcwk_dqHR'
|
|
44
44
|
};
|
|
45
45
|
var AnalysisPopoverMetric = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
46
46
|
(0, _inherits2.default)(AnalysisPopoverMetric, _Component);
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js
CHANGED
|
@@ -129,17 +129,17 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
129
129
|
className: styles.metricsWrapper
|
|
130
130
|
}, /*#__PURE__*/_react.default.createElement(_index4.default, {
|
|
131
131
|
metricKey: "highscore",
|
|
132
|
-
label: (0, _formatMessage.default)('
|
|
132
|
+
label: (0, _formatMessage.default)('High Score'),
|
|
133
133
|
value: scores === null || scores === void 0 ? void 0 : scores.max_percentage,
|
|
134
134
|
suffix: "%"
|
|
135
135
|
}), /*#__PURE__*/_react.default.createElement(_index4.default, {
|
|
136
136
|
metricKey: "lowscore",
|
|
137
|
-
label: (0, _formatMessage.default)('
|
|
137
|
+
label: (0, _formatMessage.default)('Low Score'),
|
|
138
138
|
value: scores === null || scores === void 0 ? void 0 : scores.min_percentage,
|
|
139
139
|
suffix: "%"
|
|
140
140
|
}), /*#__PURE__*/_react.default.createElement(_index4.default, {
|
|
141
141
|
metricKey: "meanscore",
|
|
142
|
-
label: (0, _formatMessage.default)('
|
|
142
|
+
label: (0, _formatMessage.default)('Mean Score'),
|
|
143
143
|
value: scores === null || scores === void 0 ? void 0 : scores.mean_percentage,
|
|
144
144
|
suffix: "%"
|
|
145
145
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -151,7 +151,7 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
151
151
|
suffix: "%"
|
|
152
152
|
}), /*#__PURE__*/_react.default.createElement(_index4.default, {
|
|
153
153
|
metricKey: "mean_elapsed_sec",
|
|
154
|
-
label: (0, _formatMessage.default)('
|
|
154
|
+
label: (0, _formatMessage.default)('Mean Elapsed Time'),
|
|
155
155
|
value: (0, _formatTimespan.formatTimeToFullNumeric)(attempts === null || attempts === void 0 ? void 0 : attempts.mean_elapsed_sec)
|
|
156
156
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
157
157
|
className: styles.expandButtonContainer
|
|
@@ -94,17 +94,17 @@ var NewQuizAndItemAnalysisReportCardPresenter = (_dec = (0, _uiThemeable.themeab
|
|
|
94
94
|
className: styles.metricsContainer
|
|
95
95
|
}, /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
96
96
|
metricKey: "highscore",
|
|
97
|
-
label: (0, _formatMessage.default)('
|
|
97
|
+
label: (0, _formatMessage.default)('High Score'),
|
|
98
98
|
value: (_quizAnalysis$scores = quizAnalysis.scores) === null || _quizAnalysis$scores === void 0 ? void 0 : _quizAnalysis$scores.max_percentage,
|
|
99
99
|
suffix: "%"
|
|
100
100
|
}), /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
101
101
|
metricKey: "lowscore",
|
|
102
|
-
label: (0, _formatMessage.default)('
|
|
102
|
+
label: (0, _formatMessage.default)('Low Score'),
|
|
103
103
|
value: (_quizAnalysis$scores2 = quizAnalysis.scores) === null || _quizAnalysis$scores2 === void 0 ? void 0 : _quizAnalysis$scores2.min_percentage,
|
|
104
104
|
suffix: "%"
|
|
105
105
|
}), /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
106
106
|
metricKey: "meanscore",
|
|
107
|
-
label: (0, _formatMessage.default)('
|
|
107
|
+
label: (0, _formatMessage.default)('Mean Score'),
|
|
108
108
|
value: (_quizAnalysis$scores3 = quizAnalysis.scores) === null || _quizAnalysis$scores3 === void 0 ? void 0 : _quizAnalysis$scores3.mean_percentage,
|
|
109
109
|
suffix: "%"
|
|
110
110
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "18.3.1-rc.
|
|
3
|
+
"version": "18.3.1-rc.2+54c678ce2",
|
|
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": "18.3.1-rc.
|
|
46
|
-
"@instructure/quiz-i18n": "18.3.1-rc.
|
|
47
|
-
"@instructure/quiz-interactions": "18.3.1-rc.
|
|
48
|
-
"@instructure/quiz-number-input": "18.3.1-rc.
|
|
49
|
-
"@instructure/quiz-rce": "18.3.1-rc.
|
|
45
|
+
"@instructure/quiz-common": "18.3.1-rc.2+54c678ce2",
|
|
46
|
+
"@instructure/quiz-i18n": "18.3.1-rc.2+54c678ce2",
|
|
47
|
+
"@instructure/quiz-interactions": "18.3.1-rc.2+54c678ce2",
|
|
48
|
+
"@instructure/quiz-number-input": "18.3.1-rc.2+54c678ce2",
|
|
49
|
+
"@instructure/quiz-rce": "18.3.1-rc.2+54c678ce2",
|
|
50
50
|
"@instructure/ui-a11y-content": "^7.22.1",
|
|
51
51
|
"@instructure/ui-alerts": "^7.22.1",
|
|
52
52
|
"@instructure/ui-avatar": "^7.22.1",
|
|
@@ -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": "18.3.1-rc.
|
|
110
|
+
"instructure-validations": "18.3.1-rc.2+54c678ce2",
|
|
111
111
|
"ipaddr.js": "^1.5.4",
|
|
112
112
|
"isomorphic-fetch": "^2.2.0",
|
|
113
113
|
"isuuid": "^0.1.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": "18.3.1-rc.
|
|
161
|
+
"quiz-presets": "18.3.1-rc.2+54c678ce2",
|
|
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": "54c678ce2b1d278c3489e8b7588d7f0a4034a6ce"
|
|
178
178
|
}
|