@instructure/quiz-core 20.30.1-snapshot.2 → 20.30.1-snapshot.4

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.
Files changed (54) hide show
  1. package/es/banks/components/Banks/presenter.js +1 -1
  2. package/es/banks/components/NavWrapper/presenter.js +1 -1
  3. package/es/banks/components/SharingModal/ShareList/ShareList.examples.js +10 -10
  4. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
  5. package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
  6. package/es/common/components/ImportModal/index.js +3 -3
  7. package/es/common/components/PrintFontSizeModal/presenter.js +1 -1
  8. package/es/common/components/RceConfigProvider/presenter.js +1 -0
  9. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +1 -1
  10. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -2
  11. package/es/common/components/shared/overlay/index.js +1 -1
  12. package/es/common/kinesis/client.js +2 -2
  13. package/es/common/records/QuizSession.js +1 -0
  14. package/es/common/util/componentForItem.js +1 -1
  15. package/es/common/util/interactionTypeRecordForItem.js +1 -1
  16. package/es/index.js +6 -6
  17. package/es/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +40 -40
  18. package/es/reporting/api/getAnalysesExport.js +1 -1
  19. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -2
  20. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
  21. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -1
  22. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -1
  23. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +3 -3
  24. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -2
  25. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +3 -3
  26. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
  27. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  28. package/lib/banks/components/Banks/presenter.js +1 -1
  29. package/lib/banks/components/NavWrapper/presenter.js +1 -1
  30. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +10 -10
  31. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
  32. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
  33. package/lib/common/components/ImportModal/index.js +3 -3
  34. package/lib/common/components/PrintFontSizeModal/presenter.js +1 -1
  35. package/lib/common/components/RceConfigProvider/presenter.js +1 -0
  36. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +1 -1
  37. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -2
  38. package/lib/common/components/shared/overlay/index.js +1 -1
  39. package/lib/common/kinesis/client.js +2 -2
  40. package/lib/common/records/QuizSession.js +1 -0
  41. package/lib/common/util/componentForItem.js +1 -1
  42. package/lib/common/util/interactionTypeRecordForItem.js +1 -1
  43. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +40 -40
  44. package/lib/reporting/api/getAnalysesExport.js +1 -1
  45. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -2
  46. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
  47. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -1
  48. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -1
  49. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +3 -3
  50. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -2
  51. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +3 -3
  52. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
  53. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  54. 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('You don\'t have any banks yet');
205
+ return t("You don't have any banks yet");
206
206
  };
207
207
  _this.state = {
208
208
  searchTerms: _this.props.searchTerms || ''
@@ -107,7 +107,7 @@ var NavWrapper = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(
107
107
  return jsx(View, null, jsx(Global, {
108
108
  styles: {
109
109
  'body.tox-fullscreen .nav': {
110
- 'display': 'none'
110
+ display: 'none'
111
111
  }
112
112
  }
113
113
  }), jsx("div", {
@@ -2,17 +2,17 @@ import { fromJS } from 'immutable';
2
2
  export default {
3
3
  propValues: {
4
4
  shares: [fromJS([{
5
- title: "Test Person",
6
- entity_type: "user",
7
- entity_id: "banana",
8
- permission: "edit",
9
- id: "5"
5
+ title: 'Test Person',
6
+ entity_type: 'user',
7
+ entity_id: 'banana',
8
+ permission: 'edit',
9
+ id: '5'
10
10
  }]), fromJS([{
11
- title: "Course X",
12
- entity_type: "course",
13
- entity_id: "X",
14
- permission: "read",
15
- id: "7"
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
- ? (callProgressWhenCompleted + progressNumber) * 50
23
+ (callProgressWhenCompleted + progressNumber) * 50 :
24
24
  // If no progressNumber, then the callProgress counts is working on the first 50%
25
- : callProgress(callsToCheck, callsMade) * 50;
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), " ", jsx("p", {
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) {
@@ -18,7 +18,7 @@ export var fetchRceConfig = /*#__PURE__*/function () {
18
18
  _context.next = 3;
19
19
  return fetch(rceConfigUrl.href, {
20
20
  headers: {
21
- 'Authorization': "Bearer ".concat(jwt)
21
+ Authorization: "Bearer ".concat(jwt)
22
22
  }
23
23
  });
24
24
  case 3:
@@ -22,8 +22,8 @@ export default {
22
22
  sessionItemId: '11',
23
23
  position: 1
24
24
  }]),
25
- role: "Wat",
26
- title: "Temp",
25
+ role: 'Wat',
26
+ title: 'Temp',
27
27
  toggleSidebar: Function.prototype,
28
28
  screenreaderNotification: Function.prototype,
29
29
  shouldCloseOnBlur: false
@@ -52,7 +52,7 @@ var Overlay = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
52
52
  return jsx(React.Fragment, null, jsx(Global, {
53
53
  styles: {
54
54
  'body.tox-fullscreen .overlay': {
55
- 'zIndex': '0'
55
+ zIndex: '0'
56
56
  }
57
57
  }
58
58
  }), jsx("div", {
@@ -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
- 'choice': 'MultipleChoice'
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
- 'choice': 'MultipleChoice'
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: "12",
5
- name: "Student A"
4
+ id: '12',
5
+ name: 'Student A'
6
6
  }, {
7
- id: "15",
8
- name: "Student B"
7
+ id: '15',
8
+ name: 'Student B'
9
9
  }, {
10
- id: "16",
11
- name: "Student C"
10
+ id: '16',
11
+ name: 'Student C'
12
12
  }, {
13
- id: "18",
14
- name: "Student D"
13
+ id: '18',
14
+ name: 'Student D'
15
15
  }, {
16
- id: "19",
17
- name: "Student E"
16
+ id: '19',
17
+ name: 'Student E'
18
18
  }, {
19
- id: "21",
20
- name: "Student F"
19
+ id: '21',
20
+ name: 'Student F'
21
21
  }, {
22
- id: "22",
23
- name: "Student G"
22
+ id: '22',
23
+ name: 'Student G'
24
24
  }, {
25
- id: "26",
26
- name: "Student H"
25
+ id: '26',
26
+ name: 'Student H'
27
27
  }, {
28
- id: "39",
29
- name: "Student K"
28
+ id: '39',
29
+ name: 'Student K'
30
30
  }], [{
31
- id: "12",
32
- name: "Student A"
31
+ id: '12',
32
+ name: 'Student A'
33
33
  }]],
34
34
  quizSessionsData: [[{
35
- id: "12",
36
- status: "in_progress"
35
+ id: '12',
36
+ status: 'in_progress'
37
37
  }, {
38
- id: "15",
39
- status: "in_progress"
38
+ id: '15',
39
+ status: 'in_progress'
40
40
  }, {
41
- id: "16",
42
- status: "in_progress"
41
+ id: '16',
42
+ status: 'in_progress'
43
43
  }, {
44
- id: "18",
45
- status: "in_progress"
44
+ id: '18',
45
+ status: 'in_progress'
46
46
  }, {
47
- id: "19",
48
- status: "in_progress"
47
+ id: '19',
48
+ status: 'in_progress'
49
49
  }, {
50
- id: "21",
51
- status: "in_progress"
50
+ id: '21',
51
+ status: 'in_progress'
52
52
  }, {
53
- id: "22",
54
- status: "in_progress"
53
+ id: '22',
54
+ status: 'in_progress'
55
55
  }, {
56
- id: "26",
57
- status: "in_progress"
56
+ id: '26',
57
+ status: 'in_progress'
58
58
  }, {
59
- id: "39",
60
- status: "in_progress"
59
+ id: '39',
60
+ status: 'in_progress'
61
61
  }], [{
62
- id: "12",
63
- name: "Student A"
62
+ id: '12',
63
+ name: 'Student A'
64
64
  }]]
65
65
  },
66
66
  getComponentProps: function getComponentProps(props) {
@@ -10,7 +10,7 @@ var getFetcher = function getFetcher(format) {
10
10
  }
11
11
  return new Fetcher({
12
12
  headers: {
13
- 'Accept': mimeType
13
+ Accept: mimeType
14
14
  },
15
15
  injectMissingUserToken: true,
16
16
  asyncResponseHandler: function asyncResponseHandler(response) {
@@ -21,8 +21,8 @@ var generateStyle = function generateStyle(componentTheme, props) {
21
21
  animationName: contentAnimation,
22
22
  animationFillMode: 'forwards',
23
23
  animationDuration: '0.3s',
24
- 'th': contentCellStyles,
25
- 'td': contentCellStyles
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('Cronbach\'s Alpha'),
87
+ renderLabel: t("Cronbach's Alpha"),
88
88
  renderValue: quizAnalysis.cronbachsAlpha(),
89
89
  customStyles: this.props.styles.metric,
90
90
  isGroupChild: true
@@ -16,7 +16,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
16
16
  }, props.choice.correct && {
17
17
  backgroundColor: componentTheme.colorGreen,
18
18
  borderRadius: '4px 0 0 4px',
19
- 'svg': {
19
+ svg: {
20
20
  fill: 'white'
21
21
  }
22
22
  }),
@@ -23,7 +23,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
23
23
  },
24
24
  iconCorrect: {
25
25
  backgroundColor: componentTheme.colorGreen,
26
- 'svg': {
26
+ svg: {
27
27
  fill: 'white'
28
28
  }
29
29
  },
@@ -7,13 +7,13 @@ var generateStyle = function generateStyle(componentTheme) {
7
7
  width: '46px',
8
8
  justifyContent: 'center',
9
9
  alignItems: 'center',
10
- 'svg': {
10
+ svg: {
11
11
  fill: 'white'
12
12
  }
13
13
  },
14
14
  collapsingTable: {
15
15
  minWidth: '500px',
16
- 'table': {
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
- 'svg': {
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
- 'table': {
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
- 'svg': {
46
+ svg: {
47
47
  fill: 'white'
48
48
  }
49
49
  },
@@ -5,7 +5,7 @@ export var standardDeviation = {
5
5
  screenReaderLabel: t('Standard deviation tooltip')
6
6
  };
7
7
  export var cronbachsAlpha = {
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')
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
  };
@@ -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('Cronbach\'s Alpha'),
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('Cronbach\'s Alpha'),
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)('You don\'t have any banks yet');
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
- 'display': 'none'
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: "Test Person",
12
- entity_type: "user",
13
- entity_id: "banana",
14
- permission: "edit",
15
- id: "5"
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: "Course X",
18
- entity_type: "course",
19
- entity_id: "X",
20
- permission: "read",
21
- id: "7"
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
- ? (callProgressWhenCompleted + progressNumber) * 50
31
+ (callProgressWhenCompleted + progressNumber) * 50 :
32
32
  // If no progressNumber, then the callProgress counts is working on the first 50%
33
- : callProgress(callsToCheck, callsMade) * 50;
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), " ", (0, _emotion.jsx)("p", {
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) {
@@ -25,7 +25,7 @@ var fetchRceConfig = /*#__PURE__*/function () {
25
25
  _context.next = 3;
26
26
  return fetch(rceConfigUrl.href, {
27
27
  headers: {
28
- 'Authorization': "Bearer ".concat(jwt)
28
+ Authorization: "Bearer ".concat(jwt)
29
29
  }
30
30
  });
31
31
  case 3:
@@ -29,8 +29,8 @@ var _default = {
29
29
  sessionItemId: '11',
30
30
  position: 1
31
31
  }]),
32
- role: "Wat",
33
- title: "Temp",
32
+ role: 'Wat',
33
+ title: 'Temp',
34
34
  toggleSidebar: Function.prototype,
35
35
  screenreaderNotification: Function.prototype,
36
36
  shouldCloseOnBlur: false
@@ -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
- 'zIndex': '0'
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
- 'choice': 'MultipleChoice'
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
- 'choice': 'MultipleChoice'
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: "12",
11
- name: "Student A"
10
+ id: '12',
11
+ name: 'Student A'
12
12
  }, {
13
- id: "15",
14
- name: "Student B"
13
+ id: '15',
14
+ name: 'Student B'
15
15
  }, {
16
- id: "16",
17
- name: "Student C"
16
+ id: '16',
17
+ name: 'Student C'
18
18
  }, {
19
- id: "18",
20
- name: "Student D"
19
+ id: '18',
20
+ name: 'Student D'
21
21
  }, {
22
- id: "19",
23
- name: "Student E"
22
+ id: '19',
23
+ name: 'Student E'
24
24
  }, {
25
- id: "21",
26
- name: "Student F"
25
+ id: '21',
26
+ name: 'Student F'
27
27
  }, {
28
- id: "22",
29
- name: "Student G"
28
+ id: '22',
29
+ name: 'Student G'
30
30
  }, {
31
- id: "26",
32
- name: "Student H"
31
+ id: '26',
32
+ name: 'Student H'
33
33
  }, {
34
- id: "39",
35
- name: "Student K"
34
+ id: '39',
35
+ name: 'Student K'
36
36
  }], [{
37
- id: "12",
38
- name: "Student A"
37
+ id: '12',
38
+ name: 'Student A'
39
39
  }]],
40
40
  quizSessionsData: [[{
41
- id: "12",
42
- status: "in_progress"
41
+ id: '12',
42
+ status: 'in_progress'
43
43
  }, {
44
- id: "15",
45
- status: "in_progress"
44
+ id: '15',
45
+ status: 'in_progress'
46
46
  }, {
47
- id: "16",
48
- status: "in_progress"
47
+ id: '16',
48
+ status: 'in_progress'
49
49
  }, {
50
- id: "18",
51
- status: "in_progress"
50
+ id: '18',
51
+ status: 'in_progress'
52
52
  }, {
53
- id: "19",
54
- status: "in_progress"
53
+ id: '19',
54
+ status: 'in_progress'
55
55
  }, {
56
- id: "21",
57
- status: "in_progress"
56
+ id: '21',
57
+ status: 'in_progress'
58
58
  }, {
59
- id: "22",
60
- status: "in_progress"
59
+ id: '22',
60
+ status: 'in_progress'
61
61
  }, {
62
- id: "26",
63
- status: "in_progress"
62
+ id: '26',
63
+ status: 'in_progress'
64
64
  }, {
65
- id: "39",
66
- status: "in_progress"
65
+ id: '39',
66
+ status: 'in_progress'
67
67
  }], [{
68
- id: "12",
69
- name: "Student A"
68
+ id: '12',
69
+ name: 'Student A'
70
70
  }]]
71
71
  },
72
72
  getComponentProps: function getComponentProps(props) {
@@ -17,7 +17,7 @@ var getFetcher = function getFetcher(format) {
17
17
  }
18
18
  return new _Fetcher.default({
19
19
  headers: {
20
- 'Accept': mimeType
20
+ Accept: mimeType
21
21
  },
22
22
  injectMissingUserToken: true,
23
23
  asyncResponseHandler: function asyncResponseHandler(response) {
@@ -28,8 +28,8 @@ var generateStyle = function generateStyle(componentTheme, props) {
28
28
  animationName: contentAnimation,
29
29
  animationFillMode: 'forwards',
30
30
  animationDuration: '0.3s',
31
- 'th': contentCellStyles,
32
- 'td': contentCellStyles
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)('Cronbach\'s Alpha'),
95
+ renderLabel: (0, _formatMessage.default)("Cronbach's Alpha"),
96
96
  renderValue: quizAnalysis.cronbachsAlpha(),
97
97
  customStyles: this.props.styles.metric,
98
98
  isGroupChild: true
@@ -23,7 +23,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
23
23
  }, props.choice.correct && {
24
24
  backgroundColor: componentTheme.colorGreen,
25
25
  borderRadius: '4px 0 0 4px',
26
- 'svg': {
26
+ svg: {
27
27
  fill: 'white'
28
28
  }
29
29
  }),
@@ -30,7 +30,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
30
30
  },
31
31
  iconCorrect: {
32
32
  backgroundColor: componentTheme.colorGreen,
33
- 'svg': {
33
+ svg: {
34
34
  fill: 'white'
35
35
  }
36
36
  },
@@ -13,13 +13,13 @@ var generateStyle = function generateStyle(componentTheme) {
13
13
  width: '46px',
14
14
  justifyContent: 'center',
15
15
  alignItems: 'center',
16
- 'svg': {
16
+ svg: {
17
17
  fill: 'white'
18
18
  }
19
19
  },
20
20
  collapsingTable: {
21
21
  minWidth: '500px',
22
- 'table': {
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
- 'svg': {
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
- 'table': {
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
- 'svg': {
53
+ svg: {
54
54
  fill: 'white'
55
55
  }
56
56
  },
@@ -13,8 +13,8 @@ var standardDeviation = {
13
13
  };
14
14
  exports.standardDeviation = standardDeviation;
15
15
  var cronbachsAlpha = {
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')
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;
@@ -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)('Cronbach\'s Alpha'),
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)('Cronbach\'s Alpha'),
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.2+d858814aa",
3
+ "version": "20.30.1-snapshot.4+4c3e8edba",
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.2+d858814aa",
49
- "@instructure/quiz-i18n": "20.30.1-snapshot.2+d858814aa",
50
- "@instructure/quiz-interactions": "20.30.1-snapshot.2+d858814aa",
51
- "@instructure/quiz-number-input": "20.30.1-snapshot.2+d858814aa",
52
- "@instructure/quiz-rce": "20.30.1-snapshot.2+d858814aa",
48
+ "@instructure/quiz-common": "20.30.1-snapshot.4+4c3e8edba",
49
+ "@instructure/quiz-i18n": "20.30.1-snapshot.4+4c3e8edba",
50
+ "@instructure/quiz-interactions": "20.30.1-snapshot.4+4c3e8edba",
51
+ "@instructure/quiz-number-input": "20.30.1-snapshot.4+4c3e8edba",
52
+ "@instructure/quiz-rce": "20.30.1-snapshot.4+4c3e8edba",
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.2+d858814aa",
116
+ "instructure-validations": "20.30.1-snapshot.4+4c3e8edba",
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.2+d858814aa",
165
+ "quiz-presets": "20.30.1-snapshot.4+4c3e8edba",
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": "d858814aa865e9bce6c56ee471b36cb2d3059688"
181
+ "gitHead": "4c3e8edba03d2c8ecdb2ad956304119845ca0509"
182
182
  }