@instructure/quiz-core 20.30.1-snapshot.2 → 20.30.1-snapshot.3
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/banks/components/Banks/presenter.js +1 -1
- package/es/banks/components/NavWrapper/presenter.js +1 -1
- package/es/banks/components/SharingModal/ShareList/ShareList.examples.js +10 -10
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
- package/es/common/components/ImportModal/index.js +3 -3
- package/es/common/components/PrintFontSizeModal/presenter.js +1 -1
- package/es/common/components/RceConfigProvider/presenter.js +1 -0
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +1 -1
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -2
- package/es/common/components/shared/overlay/index.js +1 -1
- package/es/common/kinesis/client.js +2 -2
- package/es/common/records/QuizSession.js +1 -0
- package/es/common/util/componentForItem.js +1 -1
- package/es/common/util/interactionTypeRecordForItem.js +1 -1
- package/es/index.js +6 -6
- package/es/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +40 -40
- package/es/reporting/api/getAnalysesExport.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -2
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
- package/lib/banks/components/Banks/presenter.js +1 -1
- package/lib/banks/components/NavWrapper/presenter.js +1 -1
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +10 -10
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
- package/lib/common/components/ImportModal/index.js +3 -3
- package/lib/common/components/PrintFontSizeModal/presenter.js +1 -1
- package/lib/common/components/RceConfigProvider/presenter.js +1 -0
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +1 -1
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -2
- package/lib/common/components/shared/overlay/index.js +1 -1
- package/lib/common/kinesis/client.js +2 -2
- package/lib/common/records/QuizSession.js +1 -0
- package/lib/common/util/componentForItem.js +1 -1
- package/lib/common/util/interactionTypeRecordForItem.js +1 -1
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +40 -40
- package/lib/reporting/api/getAnalysesExport.js +1 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -2
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +3 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +3 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
- package/package.json +9 -9
|
@@ -202,7 +202,7 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
202
202
|
hero: _ref4
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
return t(
|
|
205
|
+
return t("You don't have any banks yet");
|
|
206
206
|
};
|
|
207
207
|
_this.state = {
|
|
208
208
|
searchTerms: _this.props.searchTerms || ''
|
|
@@ -2,17 +2,17 @@ import { fromJS } from 'immutable';
|
|
|
2
2
|
export default {
|
|
3
3
|
propValues: {
|
|
4
4
|
shares: [fromJS([{
|
|
5
|
-
title:
|
|
6
|
-
entity_type:
|
|
7
|
-
entity_id:
|
|
8
|
-
permission:
|
|
9
|
-
id:
|
|
5
|
+
title: 'Test Person',
|
|
6
|
+
entity_type: 'user',
|
|
7
|
+
entity_id: 'banana',
|
|
8
|
+
permission: 'edit',
|
|
9
|
+
id: '5'
|
|
10
10
|
}]), fromJS([{
|
|
11
|
-
title:
|
|
12
|
-
entity_type:
|
|
13
|
-
entity_id:
|
|
14
|
-
permission:
|
|
15
|
-
id:
|
|
11
|
+
title: 'Course X',
|
|
12
|
+
entity_type: 'course',
|
|
13
|
+
entity_id: 'X',
|
|
14
|
+
permission: 'read',
|
|
15
|
+
id: '7'
|
|
16
16
|
}])],
|
|
17
17
|
onPermissionChange: [Function.prototype],
|
|
18
18
|
onPersonRemove: [Function.prototype],
|
|
@@ -15,8 +15,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
15
15
|
marginLeft: componentTheme.feedbackSectionLeftMarg
|
|
16
16
|
}),
|
|
17
17
|
pointsInput: {
|
|
18
|
-
width: '6.1rem'
|
|
19
|
-
/* wide enough to fit 3 decimal places (i.e. 8.888) */
|
|
18
|
+
width: '6.1rem' /* wide enough to fit 3 decimal places (i.e. 8.888) */,
|
|
20
19
|
fontSize: componentTheme.pointsInputFontSize,
|
|
21
20
|
display: 'inline-flex'
|
|
22
21
|
}
|
|
@@ -9,8 +9,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
9
9
|
quizEntryEdit: {
|
|
10
10
|
fontSize: componentTheme.quizEntryEditFontSize,
|
|
11
11
|
position: 'relative',
|
|
12
|
-
transform: 'translate3d(0, 0, 0)'
|
|
13
|
-
/* for drag and drop preview to work */
|
|
12
|
+
transform: 'translate3d(0, 0, 0)' /* for drag and drop preview to work */,
|
|
14
13
|
margin: "".concat(componentTheme.quizEntryEditMargin, " 0"),
|
|
15
14
|
zIndex: '3333'
|
|
16
15
|
}
|
|
@@ -18,11 +18,11 @@ export function progressValue(progressNumber) {
|
|
|
18
18
|
var callsToCheck = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
19
19
|
var callProgressWhenCompleted = 1;
|
|
20
20
|
// We are using 50 because 50 == (100 / 2.0) and import and API calls each contribute 1/2 of the overall progress
|
|
21
|
-
return progressNumber
|
|
21
|
+
return progressNumber ?
|
|
22
22
|
// If importing, then the calls are completed and we skip the calculation
|
|
23
|
-
|
|
23
|
+
(callProgressWhenCompleted + progressNumber) * 50 :
|
|
24
24
|
// If no progressNumber, then the callProgress counts is working on the first 50%
|
|
25
|
-
|
|
25
|
+
callProgress(callsToCheck, callsMade) * 50;
|
|
26
26
|
}
|
|
27
27
|
export var generateImportModalId = function generateImportModalId(id) {
|
|
28
28
|
return "".concat(id, "_").concat(IMPORT_MODAL);
|
|
@@ -114,7 +114,7 @@ export var PrintFontSizeModal = (_dec = withStyle(generateStyle, generateCompone
|
|
|
114
114
|
description: t('Text size'),
|
|
115
115
|
"data-automation": "print-font-size-modal-radio-group"
|
|
116
116
|
}, this.sizes.map(function (size) {
|
|
117
|
-
var label = jsx("div", null, jsx("span", null, size.label),
|
|
117
|
+
var label = jsx("div", null, jsx("span", null, size.label), ' ', jsx("p", {
|
|
118
118
|
"aria-hidden": "true",
|
|
119
119
|
style: {
|
|
120
120
|
fontSize: "".concat(size.size, "rem"),
|
|
@@ -103,6 +103,7 @@ var RceConfigProviderComponent = function RceConfigProviderComponent(_ref2) {
|
|
|
103
103
|
displayOldLinks: displayOldLinks
|
|
104
104
|
};
|
|
105
105
|
useEffect(function () {
|
|
106
|
+
;
|
|
106
107
|
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
107
108
|
var json;
|
|
108
109
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -20,8 +20,8 @@ export var buildKinesisClient = function buildKinesisClient(configuration, crede
|
|
|
20
20
|
return new Kinesis(kinesisConfig);
|
|
21
21
|
};
|
|
22
22
|
export var buildCredentials = function buildCredentials(credentialParams) {
|
|
23
|
-
var creds = new Credentials(credentialParams.access_key_id, credentialParams.secret_access_key, credentialParams.session_token // credentialParams
|
|
24
|
-
|
|
23
|
+
var creds = new Credentials(credentialParams.access_key_id, credentialParams.secret_access_key, credentialParams.session_token) // credentialParams
|
|
24
|
+
;
|
|
25
25
|
creds.expireTime = Date.parse(credentialParams.expiration);
|
|
26
26
|
return creds;
|
|
27
27
|
};
|
|
@@ -141,6 +141,7 @@ export var QuizSession = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
141
141
|
// Still accurate?
|
|
142
142
|
var email, fullName, givenName;
|
|
143
143
|
if (this.user) {
|
|
144
|
+
;
|
|
144
145
|
var _this$user$toJS = this.user.toJS();
|
|
145
146
|
email = _this$user$toJS.email;
|
|
146
147
|
fullName = _this$user$toJS.fullName;
|
|
@@ -3,7 +3,7 @@ var _require = require('humps'),
|
|
|
3
3
|
import * as interactions from '@instructure/quiz-interactions';
|
|
4
4
|
var slugToNameMap = {
|
|
5
5
|
'multi-answer': 'MultipleAnswer',
|
|
6
|
-
|
|
6
|
+
choice: 'MultipleChoice'
|
|
7
7
|
};
|
|
8
8
|
export var componentForItem = function componentForItem(intTypeSlug, usage) {
|
|
9
9
|
var componentKey = slugToNameMap[intTypeSlug];
|
|
@@ -3,7 +3,7 @@ var _require = require('humps'),
|
|
|
3
3
|
import * as interactions from '@instructure/quiz-interactions';
|
|
4
4
|
var slugToNameMap = {
|
|
5
5
|
'multi-answer': 'MultipleAnswer',
|
|
6
|
-
|
|
6
|
+
choice: 'MultipleChoice'
|
|
7
7
|
};
|
|
8
8
|
var interactionTypeRecordForItem = function interactionTypeRecordForItem(intTypeSlug) {
|
|
9
9
|
if (!intTypeSlug) {
|
package/es/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* eslint "import/newline-after-import": "warn" */
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* In g/356542 we tried importing takingApiActions from here, and it caused a weird karma issue.
|
|
5
|
-
* Nothing from this file should be imported from within quiz-core!
|
|
6
|
-
* These exports are for other packages to use.
|
|
7
|
-
* We should look into configuring an import/no-restricted-paths eslint rule to prevent this.
|
|
8
|
-
*/
|
|
3
|
+
*
|
|
4
|
+
* In g/356542 we tried importing takingApiActions from here, and it caused a weird karma issue.
|
|
5
|
+
* Nothing from this file should be imported from within quiz-core!
|
|
6
|
+
* These exports are for other packages to use.
|
|
7
|
+
* We should look into configuring an import/no-restricted-paths eslint rule to prevent this.
|
|
8
|
+
*/
|
|
9
9
|
// Components
|
|
10
10
|
export { DragDroppableSDKApp as SDKApp } from "./common/components/SDKApp/index.js";
|
|
11
11
|
export { ModerateTable } from "./moderating/components/resources/ModerateTable/index.js";
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
propValues: {
|
|
3
3
|
quizSessionIdsAndUsers: [[{
|
|
4
|
-
id:
|
|
5
|
-
name:
|
|
4
|
+
id: '12',
|
|
5
|
+
name: 'Student A'
|
|
6
6
|
}, {
|
|
7
|
-
id:
|
|
8
|
-
name:
|
|
7
|
+
id: '15',
|
|
8
|
+
name: 'Student B'
|
|
9
9
|
}, {
|
|
10
|
-
id:
|
|
11
|
-
name:
|
|
10
|
+
id: '16',
|
|
11
|
+
name: 'Student C'
|
|
12
12
|
}, {
|
|
13
|
-
id:
|
|
14
|
-
name:
|
|
13
|
+
id: '18',
|
|
14
|
+
name: 'Student D'
|
|
15
15
|
}, {
|
|
16
|
-
id:
|
|
17
|
-
name:
|
|
16
|
+
id: '19',
|
|
17
|
+
name: 'Student E'
|
|
18
18
|
}, {
|
|
19
|
-
id:
|
|
20
|
-
name:
|
|
19
|
+
id: '21',
|
|
20
|
+
name: 'Student F'
|
|
21
21
|
}, {
|
|
22
|
-
id:
|
|
23
|
-
name:
|
|
22
|
+
id: '22',
|
|
23
|
+
name: 'Student G'
|
|
24
24
|
}, {
|
|
25
|
-
id:
|
|
26
|
-
name:
|
|
25
|
+
id: '26',
|
|
26
|
+
name: 'Student H'
|
|
27
27
|
}, {
|
|
28
|
-
id:
|
|
29
|
-
name:
|
|
28
|
+
id: '39',
|
|
29
|
+
name: 'Student K'
|
|
30
30
|
}], [{
|
|
31
|
-
id:
|
|
32
|
-
name:
|
|
31
|
+
id: '12',
|
|
32
|
+
name: 'Student A'
|
|
33
33
|
}]],
|
|
34
34
|
quizSessionsData: [[{
|
|
35
|
-
id:
|
|
36
|
-
status:
|
|
35
|
+
id: '12',
|
|
36
|
+
status: 'in_progress'
|
|
37
37
|
}, {
|
|
38
|
-
id:
|
|
39
|
-
status:
|
|
38
|
+
id: '15',
|
|
39
|
+
status: 'in_progress'
|
|
40
40
|
}, {
|
|
41
|
-
id:
|
|
42
|
-
status:
|
|
41
|
+
id: '16',
|
|
42
|
+
status: 'in_progress'
|
|
43
43
|
}, {
|
|
44
|
-
id:
|
|
45
|
-
status:
|
|
44
|
+
id: '18',
|
|
45
|
+
status: 'in_progress'
|
|
46
46
|
}, {
|
|
47
|
-
id:
|
|
48
|
-
status:
|
|
47
|
+
id: '19',
|
|
48
|
+
status: 'in_progress'
|
|
49
49
|
}, {
|
|
50
|
-
id:
|
|
51
|
-
status:
|
|
50
|
+
id: '21',
|
|
51
|
+
status: 'in_progress'
|
|
52
52
|
}, {
|
|
53
|
-
id:
|
|
54
|
-
status:
|
|
53
|
+
id: '22',
|
|
54
|
+
status: 'in_progress'
|
|
55
55
|
}, {
|
|
56
|
-
id:
|
|
57
|
-
status:
|
|
56
|
+
id: '26',
|
|
57
|
+
status: 'in_progress'
|
|
58
58
|
}, {
|
|
59
|
-
id:
|
|
60
|
-
status:
|
|
59
|
+
id: '39',
|
|
60
|
+
status: 'in_progress'
|
|
61
61
|
}], [{
|
|
62
|
-
id:
|
|
63
|
-
name:
|
|
62
|
+
id: '12',
|
|
63
|
+
name: 'Student A'
|
|
64
64
|
}]]
|
|
65
65
|
},
|
|
66
66
|
getComponentProps: function getComponentProps(props) {
|
|
@@ -21,8 +21,8 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
21
21
|
animationName: contentAnimation,
|
|
22
22
|
animationFillMode: 'forwards',
|
|
23
23
|
animationDuration: '0.3s',
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
th: contentCellStyles,
|
|
25
|
+
td: contentCellStyles
|
|
26
26
|
},
|
|
27
27
|
bar: {
|
|
28
28
|
background: componentTheme.barBackgroundColor,
|
|
@@ -84,7 +84,7 @@ export var QuizAnalysisOverview = (_dec = withStyle(generateStyle, generateCompo
|
|
|
84
84
|
isGroupChild: true
|
|
85
85
|
}), jsx(MetricsListItem, {
|
|
86
86
|
key: "cronbachsAlpha",
|
|
87
|
-
renderLabel: t(
|
|
87
|
+
renderLabel: t("Cronbach's Alpha"),
|
|
88
88
|
renderValue: quizAnalysis.cronbachsAlpha(),
|
|
89
89
|
customStyles: this.props.styles.metric,
|
|
90
90
|
isGroupChild: true
|
|
@@ -7,13 +7,13 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
7
7
|
width: '46px',
|
|
8
8
|
justifyContent: 'center',
|
|
9
9
|
alignItems: 'center',
|
|
10
|
-
|
|
10
|
+
svg: {
|
|
11
11
|
fill: 'white'
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
collapsingTable: {
|
|
15
15
|
minWidth: '500px',
|
|
16
|
-
|
|
16
|
+
table: {
|
|
17
17
|
borderCollapse: 'separate',
|
|
18
18
|
borderSpacing: '0 12px'
|
|
19
19
|
},
|
|
@@ -126,7 +126,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
126
126
|
paddingLeft: '45px'
|
|
127
127
|
},
|
|
128
128
|
iconWhite: {
|
|
129
|
-
|
|
129
|
+
svg: {
|
|
130
130
|
fill: 'white'
|
|
131
131
|
}
|
|
132
132
|
},
|
|
@@ -13,7 +13,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
13
13
|
},
|
|
14
14
|
tableWidthMax: {},
|
|
15
15
|
tableContainer: _objectSpread(_objectSpread({}, tableContainerStyles), {}, {
|
|
16
|
-
|
|
16
|
+
table: {
|
|
17
17
|
borderCollapse: 'separate',
|
|
18
18
|
borderSpacing: '0 1px'
|
|
19
19
|
},
|
|
@@ -43,7 +43,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
43
43
|
},
|
|
44
44
|
iconCorrect: {
|
|
45
45
|
backgroundColor: componentTheme.colorGreen,
|
|
46
|
-
|
|
46
|
+
svg: {
|
|
47
47
|
fill: 'white'
|
|
48
48
|
}
|
|
49
49
|
},
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js
CHANGED
|
@@ -5,7 +5,7 @@ export var standardDeviation = {
|
|
|
5
5
|
screenReaderLabel: t('Standard deviation tooltip')
|
|
6
6
|
};
|
|
7
7
|
export var cronbachsAlpha = {
|
|
8
|
-
title: t(
|
|
9
|
-
body: t(
|
|
10
|
-
screenReaderLabel: t(
|
|
8
|
+
title: t("Cronbach's Alpha"),
|
|
9
|
+
body: t("Cronbach's alpha is an internal consistency measure that estimates the reliability of a quiz. Values range from 0 to 1, with higher values indicating greater reliability."),
|
|
10
|
+
screenReaderLabel: t("Cronbach's alpha tooltip")
|
|
11
11
|
};
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js
CHANGED
|
@@ -52,7 +52,7 @@ export var NewQuizAnalysis = (_dec = withStyle(generateStyle, generateComponentT
|
|
|
52
52
|
}), jsx(AnalysisPopoverMetric, {
|
|
53
53
|
metricKey: "cronbachs_alpha",
|
|
54
54
|
value: scores === null || scores === void 0 ? void 0 : scores.cronbachs_alpha,
|
|
55
|
-
label: t(
|
|
55
|
+
label: t("Cronbach's Alpha"),
|
|
56
56
|
popoverDescription: cronbachsAlpha
|
|
57
57
|
})));
|
|
58
58
|
};
|
|
@@ -162,7 +162,7 @@ export var QuizAndItemAnalysis = (_dec = withStyle(generateStyle, generateCompon
|
|
|
162
162
|
case 'cronbachsAlpha':
|
|
163
163
|
metrics.push(jsx(MetricsListItem, {
|
|
164
164
|
key: "cronbachsAlpha",
|
|
165
|
-
renderLabel: t(
|
|
165
|
+
renderLabel: t("Cronbach's Alpha"),
|
|
166
166
|
renderValue: quizAnalysis.cronbachsAlpha(),
|
|
167
167
|
customStyles: _this2.props.styles.metric,
|
|
168
168
|
isGroupChild: true
|
|
@@ -210,7 +210,7 @@ var Banks = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
210
210
|
hero: _ref4
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
return (0, _formatMessage.default)(
|
|
213
|
+
return (0, _formatMessage.default)("You don't have any banks yet");
|
|
214
214
|
};
|
|
215
215
|
_this.state = {
|
|
216
216
|
searchTerms: _this.props.searchTerms || ''
|
|
@@ -114,7 +114,7 @@ var NavWrapper = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
114
114
|
return (0, _emotion.jsx)(_uiView.View, null, (0, _emotion.jsx)(_emotion.Global, {
|
|
115
115
|
styles: {
|
|
116
116
|
'body.tox-fullscreen .nav': {
|
|
117
|
-
|
|
117
|
+
display: 'none'
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}), (0, _emotion.jsx)("div", {
|
|
@@ -8,17 +8,17 @@ var _immutable = require("immutable");
|
|
|
8
8
|
var _default = {
|
|
9
9
|
propValues: {
|
|
10
10
|
shares: [(0, _immutable.fromJS)([{
|
|
11
|
-
title:
|
|
12
|
-
entity_type:
|
|
13
|
-
entity_id:
|
|
14
|
-
permission:
|
|
15
|
-
id:
|
|
11
|
+
title: 'Test Person',
|
|
12
|
+
entity_type: 'user',
|
|
13
|
+
entity_id: 'banana',
|
|
14
|
+
permission: 'edit',
|
|
15
|
+
id: '5'
|
|
16
16
|
}]), (0, _immutable.fromJS)([{
|
|
17
|
-
title:
|
|
18
|
-
entity_type:
|
|
19
|
-
entity_id:
|
|
20
|
-
permission:
|
|
21
|
-
id:
|
|
17
|
+
title: 'Course X',
|
|
18
|
+
entity_type: 'course',
|
|
19
|
+
entity_id: 'X',
|
|
20
|
+
permission: 'read',
|
|
21
|
+
id: '7'
|
|
22
22
|
}])],
|
|
23
23
|
onPermissionChange: [Function.prototype],
|
|
24
24
|
onPersonRemove: [Function.prototype],
|
|
@@ -22,8 +22,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
22
22
|
marginLeft: componentTheme.feedbackSectionLeftMarg
|
|
23
23
|
}),
|
|
24
24
|
pointsInput: {
|
|
25
|
-
width: '6.1rem'
|
|
26
|
-
/* wide enough to fit 3 decimal places (i.e. 8.888) */
|
|
25
|
+
width: '6.1rem' /* wide enough to fit 3 decimal places (i.e. 8.888) */,
|
|
27
26
|
fontSize: componentTheme.pointsInputFontSize,
|
|
28
27
|
display: 'inline-flex'
|
|
29
28
|
}
|
|
@@ -15,8 +15,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
15
15
|
quizEntryEdit: {
|
|
16
16
|
fontSize: componentTheme.quizEntryEditFontSize,
|
|
17
17
|
position: 'relative',
|
|
18
|
-
transform: 'translate3d(0, 0, 0)'
|
|
19
|
-
/* for drag and drop preview to work */
|
|
18
|
+
transform: 'translate3d(0, 0, 0)' /* for drag and drop preview to work */,
|
|
20
19
|
margin: "".concat(componentTheme.quizEntryEditMargin, " 0"),
|
|
21
20
|
zIndex: '3333'
|
|
22
21
|
}
|
|
@@ -26,11 +26,11 @@ function progressValue(progressNumber) {
|
|
|
26
26
|
var callsToCheck = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
27
27
|
var callProgressWhenCompleted = 1;
|
|
28
28
|
// We are using 50 because 50 == (100 / 2.0) and import and API calls each contribute 1/2 of the overall progress
|
|
29
|
-
return progressNumber
|
|
29
|
+
return progressNumber ?
|
|
30
30
|
// If importing, then the calls are completed and we skip the calculation
|
|
31
|
-
|
|
31
|
+
(callProgressWhenCompleted + progressNumber) * 50 :
|
|
32
32
|
// If no progressNumber, then the callProgress counts is working on the first 50%
|
|
33
|
-
|
|
33
|
+
callProgress(callsToCheck, callsMade) * 50;
|
|
34
34
|
}
|
|
35
35
|
var generateImportModalId = function generateImportModalId(id) {
|
|
36
36
|
return "".concat(id, "_").concat(_quizCommon.IMPORT_MODAL);
|
|
@@ -121,7 +121,7 @@ var PrintFontSizeModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme
|
|
|
121
121
|
description: (0, _formatMessage.default)('Text size'),
|
|
122
122
|
"data-automation": "print-font-size-modal-radio-group"
|
|
123
123
|
}, this.sizes.map(function (size) {
|
|
124
|
-
var label = (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("span", null, size.label),
|
|
124
|
+
var label = (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("span", null, size.label), ' ', (0, _emotion.jsx)("p", {
|
|
125
125
|
"aria-hidden": "true",
|
|
126
126
|
style: {
|
|
127
127
|
fontSize: "".concat(size.size, "rem"),
|
|
@@ -111,6 +111,7 @@ var RceConfigProviderComponent = function RceConfigProviderComponent(_ref2) {
|
|
|
111
111
|
displayOldLinks: displayOldLinks
|
|
112
112
|
};
|
|
113
113
|
(0, _react.useEffect)(function () {
|
|
114
|
+
;
|
|
114
115
|
(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
115
116
|
var json;
|
|
116
117
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -58,7 +58,7 @@ var Overlay = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
58
58
|
return (0, _emotion.jsx)(_react.default.Fragment, null, (0, _emotion.jsx)(_emotion.Global, {
|
|
59
59
|
styles: {
|
|
60
60
|
'body.tox-fullscreen .overlay': {
|
|
61
|
-
|
|
61
|
+
zIndex: '0'
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}), (0, _emotion.jsx)("div", {
|
|
@@ -29,8 +29,8 @@ var buildKinesisClient = function buildKinesisClient(configuration, credentials)
|
|
|
29
29
|
};
|
|
30
30
|
exports.buildKinesisClient = buildKinesisClient;
|
|
31
31
|
var buildCredentials = function buildCredentials(credentialParams) {
|
|
32
|
-
var creds = new _global.Credentials(credentialParams.access_key_id, credentialParams.secret_access_key, credentialParams.session_token // credentialParams
|
|
33
|
-
|
|
32
|
+
var creds = new _global.Credentials(credentialParams.access_key_id, credentialParams.secret_access_key, credentialParams.session_token) // credentialParams
|
|
33
|
+
;
|
|
34
34
|
creds.expireTime = Date.parse(credentialParams.expiration);
|
|
35
35
|
return creds;
|
|
36
36
|
};
|
|
@@ -148,6 +148,7 @@ var QuizSession = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
148
148
|
// Still accurate?
|
|
149
149
|
var email, fullName, givenName;
|
|
150
150
|
if (this.user) {
|
|
151
|
+
;
|
|
151
152
|
var _this$user$toJS = this.user.toJS();
|
|
152
153
|
email = _this$user$toJS.email;
|
|
153
154
|
fullName = _this$user$toJS.fullName;
|
|
@@ -10,7 +10,7 @@ var _require = require('humps'),
|
|
|
10
10
|
pascalize = _require.pascalize;
|
|
11
11
|
var slugToNameMap = {
|
|
12
12
|
'multi-answer': 'MultipleAnswer',
|
|
13
|
-
|
|
13
|
+
choice: 'MultipleChoice'
|
|
14
14
|
};
|
|
15
15
|
var componentForItem = function componentForItem(intTypeSlug, usage) {
|
|
16
16
|
var componentKey = slugToNameMap[intTypeSlug];
|
|
@@ -10,7 +10,7 @@ var _require = require('humps'),
|
|
|
10
10
|
pascalize = _require.pascalize;
|
|
11
11
|
var slugToNameMap = {
|
|
12
12
|
'multi-answer': 'MultipleAnswer',
|
|
13
|
-
|
|
13
|
+
choice: 'MultipleChoice'
|
|
14
14
|
};
|
|
15
15
|
var interactionTypeRecordForItem = function interactionTypeRecordForItem(intTypeSlug) {
|
|
16
16
|
if (!intTypeSlug) {
|
|
@@ -7,66 +7,66 @@ exports.default = void 0;
|
|
|
7
7
|
var _default = {
|
|
8
8
|
propValues: {
|
|
9
9
|
quizSessionIdsAndUsers: [[{
|
|
10
|
-
id:
|
|
11
|
-
name:
|
|
10
|
+
id: '12',
|
|
11
|
+
name: 'Student A'
|
|
12
12
|
}, {
|
|
13
|
-
id:
|
|
14
|
-
name:
|
|
13
|
+
id: '15',
|
|
14
|
+
name: 'Student B'
|
|
15
15
|
}, {
|
|
16
|
-
id:
|
|
17
|
-
name:
|
|
16
|
+
id: '16',
|
|
17
|
+
name: 'Student C'
|
|
18
18
|
}, {
|
|
19
|
-
id:
|
|
20
|
-
name:
|
|
19
|
+
id: '18',
|
|
20
|
+
name: 'Student D'
|
|
21
21
|
}, {
|
|
22
|
-
id:
|
|
23
|
-
name:
|
|
22
|
+
id: '19',
|
|
23
|
+
name: 'Student E'
|
|
24
24
|
}, {
|
|
25
|
-
id:
|
|
26
|
-
name:
|
|
25
|
+
id: '21',
|
|
26
|
+
name: 'Student F'
|
|
27
27
|
}, {
|
|
28
|
-
id:
|
|
29
|
-
name:
|
|
28
|
+
id: '22',
|
|
29
|
+
name: 'Student G'
|
|
30
30
|
}, {
|
|
31
|
-
id:
|
|
32
|
-
name:
|
|
31
|
+
id: '26',
|
|
32
|
+
name: 'Student H'
|
|
33
33
|
}, {
|
|
34
|
-
id:
|
|
35
|
-
name:
|
|
34
|
+
id: '39',
|
|
35
|
+
name: 'Student K'
|
|
36
36
|
}], [{
|
|
37
|
-
id:
|
|
38
|
-
name:
|
|
37
|
+
id: '12',
|
|
38
|
+
name: 'Student A'
|
|
39
39
|
}]],
|
|
40
40
|
quizSessionsData: [[{
|
|
41
|
-
id:
|
|
42
|
-
status:
|
|
41
|
+
id: '12',
|
|
42
|
+
status: 'in_progress'
|
|
43
43
|
}, {
|
|
44
|
-
id:
|
|
45
|
-
status:
|
|
44
|
+
id: '15',
|
|
45
|
+
status: 'in_progress'
|
|
46
46
|
}, {
|
|
47
|
-
id:
|
|
48
|
-
status:
|
|
47
|
+
id: '16',
|
|
48
|
+
status: 'in_progress'
|
|
49
49
|
}, {
|
|
50
|
-
id:
|
|
51
|
-
status:
|
|
50
|
+
id: '18',
|
|
51
|
+
status: 'in_progress'
|
|
52
52
|
}, {
|
|
53
|
-
id:
|
|
54
|
-
status:
|
|
53
|
+
id: '19',
|
|
54
|
+
status: 'in_progress'
|
|
55
55
|
}, {
|
|
56
|
-
id:
|
|
57
|
-
status:
|
|
56
|
+
id: '21',
|
|
57
|
+
status: 'in_progress'
|
|
58
58
|
}, {
|
|
59
|
-
id:
|
|
60
|
-
status:
|
|
59
|
+
id: '22',
|
|
60
|
+
status: 'in_progress'
|
|
61
61
|
}, {
|
|
62
|
-
id:
|
|
63
|
-
status:
|
|
62
|
+
id: '26',
|
|
63
|
+
status: 'in_progress'
|
|
64
64
|
}, {
|
|
65
|
-
id:
|
|
66
|
-
status:
|
|
65
|
+
id: '39',
|
|
66
|
+
status: 'in_progress'
|
|
67
67
|
}], [{
|
|
68
|
-
id:
|
|
69
|
-
name:
|
|
68
|
+
id: '12',
|
|
69
|
+
name: 'Student A'
|
|
70
70
|
}]]
|
|
71
71
|
},
|
|
72
72
|
getComponentProps: function getComponentProps(props) {
|
|
@@ -28,8 +28,8 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
28
28
|
animationName: contentAnimation,
|
|
29
29
|
animationFillMode: 'forwards',
|
|
30
30
|
animationDuration: '0.3s',
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
th: contentCellStyles,
|
|
32
|
+
td: contentCellStyles
|
|
33
33
|
},
|
|
34
34
|
bar: {
|
|
35
35
|
background: componentTheme.barBackgroundColor,
|
|
@@ -92,7 +92,7 @@ var QuizAnalysisOverview = (_dec = (0, _emotion.withStyle)(_styles.default, _the
|
|
|
92
92
|
isGroupChild: true
|
|
93
93
|
}), (0, _emotion.jsx)(_index4.default, {
|
|
94
94
|
key: "cronbachsAlpha",
|
|
95
|
-
renderLabel: (0, _formatMessage.default)(
|
|
95
|
+
renderLabel: (0, _formatMessage.default)("Cronbach's Alpha"),
|
|
96
96
|
renderValue: quizAnalysis.cronbachsAlpha(),
|
|
97
97
|
customStyles: this.props.styles.metric,
|
|
98
98
|
isGroupChild: true
|
|
@@ -13,13 +13,13 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
13
13
|
width: '46px',
|
|
14
14
|
justifyContent: 'center',
|
|
15
15
|
alignItems: 'center',
|
|
16
|
-
|
|
16
|
+
svg: {
|
|
17
17
|
fill: 'white'
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
collapsingTable: {
|
|
21
21
|
minWidth: '500px',
|
|
22
|
-
|
|
22
|
+
table: {
|
|
23
23
|
borderCollapse: 'separate',
|
|
24
24
|
borderSpacing: '0 12px'
|
|
25
25
|
},
|
|
@@ -132,7 +132,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
132
132
|
paddingLeft: '45px'
|
|
133
133
|
},
|
|
134
134
|
iconWhite: {
|
|
135
|
-
|
|
135
|
+
svg: {
|
|
136
136
|
fill: 'white'
|
|
137
137
|
}
|
|
138
138
|
},
|
|
@@ -20,7 +20,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
20
20
|
},
|
|
21
21
|
tableWidthMax: {},
|
|
22
22
|
tableContainer: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, tableContainerStyles), {}, {
|
|
23
|
-
|
|
23
|
+
table: {
|
|
24
24
|
borderCollapse: 'separate',
|
|
25
25
|
borderSpacing: '0 1px'
|
|
26
26
|
},
|
|
@@ -50,7 +50,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
50
50
|
},
|
|
51
51
|
iconCorrect: {
|
|
52
52
|
backgroundColor: componentTheme.colorGreen,
|
|
53
|
-
|
|
53
|
+
svg: {
|
|
54
54
|
fill: 'white'
|
|
55
55
|
}
|
|
56
56
|
},
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js
CHANGED
|
@@ -13,8 +13,8 @@ var standardDeviation = {
|
|
|
13
13
|
};
|
|
14
14
|
exports.standardDeviation = standardDeviation;
|
|
15
15
|
var cronbachsAlpha = {
|
|
16
|
-
title: (0, _formatMessage.default)(
|
|
17
|
-
body: (0, _formatMessage.default)(
|
|
18
|
-
screenReaderLabel: (0, _formatMessage.default)(
|
|
16
|
+
title: (0, _formatMessage.default)("Cronbach's Alpha"),
|
|
17
|
+
body: (0, _formatMessage.default)("Cronbach's alpha is an internal consistency measure that estimates the reliability of a quiz. Values range from 0 to 1, with higher values indicating greater reliability."),
|
|
18
|
+
screenReaderLabel: (0, _formatMessage.default)("Cronbach's alpha tooltip")
|
|
19
19
|
};
|
|
20
20
|
exports.cronbachsAlpha = cronbachsAlpha;
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js
CHANGED
|
@@ -59,7 +59,7 @@ var NewQuizAnalysis = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
59
59
|
}), (0, _emotion.jsx)(_index3.default, {
|
|
60
60
|
metricKey: "cronbachs_alpha",
|
|
61
61
|
value: scores === null || scores === void 0 ? void 0 : scores.cronbachs_alpha,
|
|
62
|
-
label: (0, _formatMessage.default)(
|
|
62
|
+
label: (0, _formatMessage.default)("Cronbach's Alpha"),
|
|
63
63
|
popoverDescription: _popoverContent.cronbachsAlpha
|
|
64
64
|
})));
|
|
65
65
|
};
|
|
@@ -169,7 +169,7 @@ var QuizAndItemAnalysis = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
169
169
|
case 'cronbachsAlpha':
|
|
170
170
|
metrics.push((0, _emotion.jsx)(_index4.default, {
|
|
171
171
|
key: "cronbachsAlpha",
|
|
172
|
-
renderLabel: (0, _formatMessage.default)(
|
|
172
|
+
renderLabel: (0, _formatMessage.default)("Cronbach's Alpha"),
|
|
173
173
|
renderValue: quizAnalysis.cronbachsAlpha(),
|
|
174
174
|
customStyles: _this2.props.styles.metric,
|
|
175
175
|
isGroupChild: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.30.1-snapshot.
|
|
3
|
+
"version": "20.30.1-snapshot.3+24f83b00c",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@instructure/emotion": "^8.51.0",
|
|
46
46
|
"@instructure/grading-utils": "^1.0.0",
|
|
47
47
|
"@instructure/outcomes-ui": "^3.2.2",
|
|
48
|
-
"@instructure/quiz-common": "20.30.1-snapshot.
|
|
49
|
-
"@instructure/quiz-i18n": "20.30.1-snapshot.
|
|
50
|
-
"@instructure/quiz-interactions": "20.30.1-snapshot.
|
|
51
|
-
"@instructure/quiz-number-input": "20.30.1-snapshot.
|
|
52
|
-
"@instructure/quiz-rce": "20.30.1-snapshot.
|
|
48
|
+
"@instructure/quiz-common": "20.30.1-snapshot.3+24f83b00c",
|
|
49
|
+
"@instructure/quiz-i18n": "20.30.1-snapshot.3+24f83b00c",
|
|
50
|
+
"@instructure/quiz-interactions": "20.30.1-snapshot.3+24f83b00c",
|
|
51
|
+
"@instructure/quiz-number-input": "20.30.1-snapshot.3+24f83b00c",
|
|
52
|
+
"@instructure/quiz-rce": "20.30.1-snapshot.3+24f83b00c",
|
|
53
53
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
54
54
|
"@instructure/ui-alerts": "^8.51.0",
|
|
55
55
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"file-saver": "~2.0.5",
|
|
114
114
|
"humps": "^2.0.0",
|
|
115
115
|
"immutable": "^3.8.1",
|
|
116
|
-
"instructure-validations": "20.30.1-snapshot.
|
|
116
|
+
"instructure-validations": "20.30.1-snapshot.3+24f83b00c",
|
|
117
117
|
"ipaddr.js": "^1.5.4",
|
|
118
118
|
"isomorphic-fetch": "^2.2.0",
|
|
119
119
|
"isuuid": "^0.1.0",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"jquery": "^2.2.3",
|
|
163
163
|
"karma-junit-reporter": "^2.0.1",
|
|
164
164
|
"most-subject": "^5.3.0",
|
|
165
|
-
"quiz-presets": "20.30.1-snapshot.
|
|
165
|
+
"quiz-presets": "20.30.1-snapshot.3+24f83b00c",
|
|
166
166
|
"react": "^16.8.6",
|
|
167
167
|
"react-addons-test-utils": "^15.6.2",
|
|
168
168
|
"react-dom": "^16.8.6",
|
|
@@ -178,5 +178,5 @@
|
|
|
178
178
|
"publishConfig": {
|
|
179
179
|
"access": "public"
|
|
180
180
|
},
|
|
181
|
-
"gitHead": "
|
|
181
|
+
"gitHead": "24f83b00c3dd8d67458181bc77faed421ea5de91"
|
|
182
182
|
}
|