@instructure/quiz-core 21.0.1-rc.0 → 21.0.1-rc.13

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 (1368) hide show
  1. package/es/banks/api/bankEntries.js +13 -13
  2. package/es/banks/api/banks.js +26 -24
  3. package/es/banks/api/copyingBanksPoller.js +51 -53
  4. package/es/banks/api/tagAssociations.js +23 -27
  5. package/es/banks/components/AddBankEntryModal/index.js +7 -7
  6. package/es/banks/components/AddBankEntryModal/presenter.js +19 -18
  7. package/es/banks/components/AddToBankModal/index.js +8 -8
  8. package/es/banks/components/AddToBankModal/presenter.js +35 -35
  9. package/es/banks/components/AsyncSearch/index.js +37 -35
  10. package/es/banks/components/Bank/index.js +12 -12
  11. package/es/banks/components/Bank/presenter.js +82 -86
  12. package/es/banks/components/Bank/styles.js +2 -1
  13. package/es/banks/components/Bank/theme.js +1 -1
  14. package/es/banks/components/BankEntriesList/index.js +3 -3
  15. package/es/banks/components/BankEntriesList/presenter.js +17 -16
  16. package/es/banks/components/BankEntry/index.js +14 -14
  17. package/es/banks/components/BankEntry/presenter.js +172 -180
  18. package/es/banks/components/BankEntry/styles.js +3 -1
  19. package/es/banks/components/BankEntry/theme.js +5 -5
  20. package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -2
  21. package/es/banks/components/BankEntryRow/index.js +9 -9
  22. package/es/banks/components/BankEntryRow/presenter.js +42 -42
  23. package/es/banks/components/BankEntryRow/styles.js +1 -0
  24. package/es/banks/components/BankEntryRow/theme.js +4 -4
  25. package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
  26. package/es/banks/components/BankSearch/index.js +4 -4
  27. package/es/banks/components/BankSearch/presenter.js +21 -20
  28. package/es/banks/components/Banks/index.js +7 -7
  29. package/es/banks/components/Banks/presenter.js +62 -61
  30. package/es/banks/components/Banks/theme.js +2 -2
  31. package/es/banks/components/BanksList/index.js +7 -7
  32. package/es/banks/components/BanksList/presenter.js +105 -112
  33. package/es/banks/components/BanksList/theme.js +4 -4
  34. package/es/banks/components/CopyMoveBankEntryModal/index.js +8 -8
  35. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +42 -43
  36. package/es/banks/components/CreateBankModal/index.js +10 -10
  37. package/es/banks/components/CreateBankModal/presenter.js +30 -29
  38. package/es/banks/components/EditBankModal/index.js +7 -7
  39. package/es/banks/components/EditBankModal/presenter.js +26 -25
  40. package/es/banks/components/HeaderBreadCrumb/index.js +14 -13
  41. package/es/banks/components/HeaderMenu/index.js +4 -4
  42. package/es/banks/components/HeaderMenu/presenter.js +17 -17
  43. package/es/banks/components/NavWrapper/index.js +2 -2
  44. package/es/banks/components/NavWrapper/presenter.js +21 -20
  45. package/es/banks/components/NavWrapper/styles.js +4 -2
  46. package/es/banks/components/NavWrapper/theme.js +3 -3
  47. package/es/banks/components/SharingModal/ContextualIconButton/index.js +16 -14
  48. package/es/banks/components/SharingModal/RootAccountSharing.js +20 -20
  49. package/es/banks/components/SharingModal/ShareList/index.js +23 -23
  50. package/es/banks/components/SharingModal/index.js +5 -5
  51. package/es/banks/components/SharingModal/presenter.js +94 -95
  52. package/es/banks/components/SharingModal/theme.js +1 -1
  53. package/es/building/api/items.js +68 -72
  54. package/es/building/api/qtiImports.js +13 -12
  55. package/es/building/api/quizEntries.js +46 -46
  56. package/es/building/api/quizzes.js +10 -10
  57. package/es/building/api/stimuli.js +4 -4
  58. package/es/building/components/QTIImportModal/index.js +4 -4
  59. package/es/building/components/layout/Sidebar/Sidebar.examples.js +22 -20
  60. package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
  61. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -16
  62. package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -11
  63. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +17 -16
  64. package/es/building/components/layout/Sidebar/index.js +12 -12
  65. package/es/building/components/layout/Sidebar/presenter.js +28 -27
  66. package/es/building/components/layout/Sidebar/styles.js +3 -1
  67. package/es/building/components/layout/header/BuildingButtons/index.js +9 -9
  68. package/es/building/components/layout/header/BuildingButtons/presenter.js +23 -23
  69. package/es/building/components/layout/header/BuildingButtons/styles.js +3 -1
  70. package/es/building/components/layout/header/BuildingButtons/theme.js +1 -1
  71. package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
  72. package/es/building/components/resources/ActionButtons/index.js +4 -4
  73. package/es/building/components/resources/ActionButtons/presenter.js +25 -24
  74. package/es/building/components/resources/ActionButtons/styles.js +2 -1
  75. package/es/building/components/resources/ActionButtons/theme.js +1 -1
  76. package/es/building/components/resources/AddToBankOptions/index.js +42 -43
  77. package/es/building/components/resources/AddToBankOptions/theme.js +2 -2
  78. package/es/building/components/resources/BanksTray/index.js +3 -3
  79. package/es/building/components/resources/BanksTray/presenter.js +25 -26
  80. package/es/building/components/resources/DeleteStimulusModal/index.js +5 -5
  81. package/es/building/components/resources/DeleteStimulusModal/presenter.js +27 -27
  82. package/es/building/components/resources/ItemFeedbackModal/index.js +8 -8
  83. package/es/building/components/resources/ItemFeedbackModal/presenter.js +22 -22
  84. package/es/building/components/resources/MoveImmutableModal/index.js +6 -6
  85. package/es/building/components/resources/MoveImmutableModal/presenter.js +16 -15
  86. package/es/building/components/resources/quiz/editButton/EditButton.js +17 -16
  87. package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -2
  88. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +24 -16
  89. package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
  90. package/es/building/components/resources/quiz/instructions/Instructions/index.js +7 -7
  91. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +33 -28
  92. package/es/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
  93. package/es/building/components/resources/quiz/instructions/Show/index.js +17 -16
  94. package/es/building/components/resources/quiz/title/Edit/index.js +27 -25
  95. package/es/building/components/resources/quiz/title/Edit/styles.js +3 -1
  96. package/es/building/components/resources/quiz/title/Edit/theme.js +1 -1
  97. package/es/building/components/resources/quiz/title/Show/index.js +17 -16
  98. package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
  99. package/es/building/components/resources/quiz/title/Title/index.js +8 -8
  100. package/es/building/components/resources/quiz/title/Title/presenter.js +34 -29
  101. package/es/building/components/resources/quiz/title/Title/styles.js +2 -1
  102. package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
  103. package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -14
  104. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +48 -46
  105. package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +7 -7
  106. package/es/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
  107. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
  108. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +42 -43
  109. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
  110. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +15 -15
  111. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
  112. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -3
  113. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +27 -26
  114. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -1
  115. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +82 -84
  116. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
  117. package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -11
  118. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +109 -112
  119. package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -8
  120. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +29 -29
  121. package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
  122. package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
  123. package/es/common/actions/alerts.js +1 -1
  124. package/es/common/actions/editing.js +1 -1
  125. package/es/common/actions/modal.js +2 -2
  126. package/es/common/actions/modifications.js +7 -7
  127. package/es/common/actions/quizSessions.js +9 -9
  128. package/es/common/actions/scrolling.js +1 -1
  129. package/es/common/actions/taking.js +5 -4
  130. package/es/common/api/callHandlers.js +9 -4
  131. package/es/common/api/features.js +3 -3
  132. package/es/common/api/fileUpload.js +1 -1
  133. package/es/common/api/getPersistenceActions.js +21 -18
  134. package/es/common/api/helpers.js +66 -70
  135. package/es/common/api/interactionTypes.js +2 -2
  136. package/es/common/api/quizSessions.js +28 -28
  137. package/es/common/api/quizzes.js +8 -5
  138. package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +4 -5
  139. package/es/common/components/AccessCodeTextInput/index.js +13 -12
  140. package/es/common/components/ApiFeatureFlagInitializer/index.js +7 -8
  141. package/es/common/components/ConfirmationModal/index.js +6 -4
  142. package/es/common/components/ConfirmationModal/presenter.js +20 -19
  143. package/es/common/components/ImportModal/ImportFileSelector/index.js +23 -24
  144. package/es/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
  145. package/es/common/components/ImportModal/index.js +8 -8
  146. package/es/common/components/ImportModal/presenter.js +32 -30
  147. package/es/common/components/LearnosityCalculator/index.js +46 -47
  148. package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +1 -1
  149. package/es/common/components/MaskedTextInput/index.js +13 -11
  150. package/es/common/components/Pin/index.js +1 -1
  151. package/es/common/components/Pin/presenter.js +12 -11
  152. package/es/common/components/PreviewFrame/examples.config.js +1 -2
  153. package/es/common/components/PreviewFrame/index.js +13 -13
  154. package/es/common/components/PrintFontSizeModal/index.js +1 -1
  155. package/es/common/components/PrintFontSizeModal/presenter.js +30 -27
  156. package/es/common/components/PrintFontSizeModal/theme.js +1 -1
  157. package/es/common/components/RceConfigProvider/index.js +6 -6
  158. package/es/common/components/RceConfigProvider/presenter.js +74 -77
  159. package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -5
  160. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +24 -26
  161. package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -5
  162. package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
  163. package/es/common/components/SDKApp/index.js +33 -33
  164. package/es/common/components/SDKHeaderCalculator.js +3 -3
  165. package/es/common/components/SDKMenuButton.js +3 -3
  166. package/es/common/components/SDKNavBar.js +3 -3
  167. package/es/common/components/SDKTimer.js +3 -3
  168. package/es/common/components/alerts/index.js +4 -4
  169. package/es/common/components/alerts/presenter.js +15 -14
  170. package/es/common/components/layout/Page/index.js +13 -12
  171. package/es/common/components/layout/Page/styles.js +2 -1
  172. package/es/common/components/layout/header/Calculator/index.js +7 -7
  173. package/es/common/components/layout/header/Calculator/presenter.js +14 -14
  174. package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
  175. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +15 -16
  176. package/es/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
  177. package/es/common/components/layout/header/Timer/index.js +6 -6
  178. package/es/common/components/layout/header/Timer/presenter.js +27 -28
  179. package/es/common/components/layout/header/Timer/theme.js +3 -3
  180. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +12 -11
  181. package/es/common/components/layout/navbar/index.js +31 -30
  182. package/es/common/components/layout/navbar/styles.js +4 -2
  183. package/es/common/components/layout/navbar/theme.js +1 -1
  184. package/es/common/components/layout/sidebar/PositionSummary/index.js +14 -12
  185. package/es/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
  186. package/es/common/components/layout/sidebar/Sidebar/Pin.js +12 -11
  187. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +5 -7
  188. package/es/common/components/layout/sidebar/Sidebar/index.js +44 -44
  189. package/es/common/components/layout/sidebar/Sidebar/styles.js +7 -7
  190. package/es/common/components/layout/sidebar/Sidebar/theme.js +10 -10
  191. package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
  192. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -17
  193. package/es/common/components/layout/sidebar/SidebarItem/styles.js +3 -1
  194. package/es/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
  195. package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
  196. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +24 -21
  197. package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +4 -2
  198. package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
  199. package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
  200. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +21 -18
  201. package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
  202. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +15 -12
  203. package/es/common/components/layout/sidebar/Stimulus/index.js +3 -3
  204. package/es/common/components/layout/sidebar/Stimulus/presenter.js +21 -21
  205. package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -4
  206. package/es/common/components/resources/BankSelection/index.js +5 -5
  207. package/es/common/components/resources/BankSelection/presenter.js +19 -18
  208. package/es/common/components/resources/WarningWrapper/index.js +16 -15
  209. package/es/common/components/resources/WarningWrapper/theme.js +1 -1
  210. package/es/common/components/resources/entry/EntrySave/index.js +6 -6
  211. package/es/common/components/resources/entry/EntrySave/presenter.js +80 -83
  212. package/es/common/components/resources/item/ItemEdit/index.js +14 -14
  213. package/es/common/components/resources/item/ItemEdit/presenter.js +24 -23
  214. package/es/common/components/resources/item/ItemOverride/index.js +9 -9
  215. package/es/common/components/resources/item/ItemOverride/presenter.js +18 -16
  216. package/es/common/components/resources/item/ItemShow/index.js +15 -14
  217. package/es/common/components/resources/positionBox/PositionBox.js +13 -12
  218. package/es/common/components/resources/positionBox/theme.js +2 -2
  219. package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -7
  220. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +25 -25
  221. package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -5
  222. package/es/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
  223. package/es/common/components/resources/quiz/AddContent/Button/index.js +15 -14
  224. package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
  225. package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
  226. package/es/common/components/resources/quiz/AddContent/Modal/index.js +3 -3
  227. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +13 -12
  228. package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -5
  229. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +28 -27
  230. package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
  231. package/es/common/components/resources/quiz/info/QuizInfo.js +14 -13
  232. package/es/common/components/resources/quiz/instructions/Instructions.js +16 -12
  233. package/es/common/components/resources/quiz/title/Title.js +16 -12
  234. package/es/common/components/resources/quizSessionResult/Header/index.js +15 -14
  235. package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
  236. package/es/common/components/resources/quizSessionResult/Info/index.js +110 -107
  237. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +12 -11
  238. package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -1
  239. package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
  240. package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -4
  241. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +64 -63
  242. package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +3 -1
  243. package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
  244. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +21 -20
  245. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
  246. package/es/common/components/resources/stimulus/Stimulus/index.js +5 -5
  247. package/es/common/components/resources/stimulus/Stimulus/presenter.js +22 -21
  248. package/es/common/components/resources/stimulus/Stimulus/styles.js +2 -1
  249. package/es/common/components/resources/stimulus/Stimulus/theme.js +1 -1
  250. package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -10
  251. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +128 -131
  252. package/es/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
  253. package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +9 -5
  254. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +42 -30
  255. package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
  256. package/es/common/components/resources/stimulus/StimulusShow/index.js +20 -20
  257. package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
  258. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +10 -9
  259. package/es/common/components/shared/Card/CardContent/index.js +15 -13
  260. package/es/common/components/shared/Card/CardContent/theme.js +2 -2
  261. package/es/common/components/shared/Card/CardWrapper/index.js +15 -13
  262. package/es/common/components/shared/Card/CardWrapper/theme.js +1 -1
  263. package/es/common/components/shared/Card/index.js +4 -3
  264. package/es/common/components/shared/ExpandButton/index.js +12 -11
  265. package/es/common/components/shared/ExpandButton/styles.js +3 -1
  266. package/es/common/components/shared/FormattedDuration/index.js +18 -16
  267. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +38 -37
  268. package/es/common/components/shared/IfFeature/index.js +3 -3
  269. package/es/common/components/shared/IfFeature/presenter.js +12 -11
  270. package/es/common/components/shared/InteractionTypes/index.js +3 -3
  271. package/es/common/components/shared/InteractionTypes/presenter.js +20 -19
  272. package/es/common/components/shared/InteractionTypes/theme.js +1 -1
  273. package/es/common/components/shared/PaginatedCollection/index.js +3 -3
  274. package/es/common/components/shared/PaginatedCollection/presenter.js +47 -48
  275. package/es/common/components/shared/PaginatedCollection/theme.js +1 -1
  276. package/es/common/components/shared/Paginator/index.js +12 -11
  277. package/es/common/components/shared/PrintTrigger/index.js +6 -6
  278. package/es/common/components/shared/PrintTrigger/presenter.js +26 -25
  279. package/es/common/components/shared/TagDisplay/index.js +12 -11
  280. package/es/common/components/shared/TagDisplay/styles.js +1 -1
  281. package/es/common/components/shared/TagSelect/index.js +1 -1
  282. package/es/common/components/shared/TagSelect/presenter.js +35 -33
  283. package/es/common/components/shared/TagSuggestSelect/index.js +4 -4
  284. package/es/common/components/shared/TagSuggestSelect/presenter.js +17 -16
  285. package/es/common/components/shared/TagWrapper/index.js +1 -1
  286. package/es/common/components/shared/TagWrapper/presenter.js +14 -13
  287. package/es/common/components/shared/TimeUnitsInput/index.js +32 -31
  288. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +15 -14
  289. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +3 -1
  290. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
  291. package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
  292. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +32 -35
  293. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +4 -4
  294. package/es/common/components/shared/errors/Errors.js +15 -14
  295. package/es/common/components/shared/errors/theme.js +1 -1
  296. package/es/common/components/shared/file_selector/FileSelector.js +14 -14
  297. package/es/common/components/shared/file_selector/theme.js +2 -2
  298. package/es/common/components/shared/functionality/componentWithOutsideClick.js +21 -15
  299. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +10 -11
  300. package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -2
  301. package/es/common/components/shared/functionality/makeEditable.js +28 -21
  302. package/es/common/components/shared/functionality/makeScrollable.js +30 -29
  303. package/es/common/components/shared/overlay/index.js +13 -12
  304. package/es/common/components/shared/overlay/theme.js +1 -1
  305. package/es/common/components/shared/return_button/ReturnButton.js +14 -12
  306. package/es/common/components/shared/spinner/Spinner.js +13 -11
  307. package/es/common/kinesis/QuizEventsLogger.js +37 -40
  308. package/es/common/kinesis/StreamQueue.js +7 -4
  309. package/es/common/kinesis/client.js +3 -3
  310. package/es/common/kinesis/config.js +1 -1
  311. package/es/common/kinesis/eventTypes.js +1 -1
  312. package/es/common/middleware/alertTimerMiddleware.js +2 -2
  313. package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -1
  314. package/es/common/middleware/eventLoggerMiddleware.js +8 -5
  315. package/es/common/middleware/persistedStorageMiddleware.js +5 -3
  316. package/es/common/middleware/quizTimerWebSocketMiddleware.js +7 -7
  317. package/es/common/react-redux.js +1 -1
  318. package/es/common/records/Alert.js +8 -5
  319. package/es/common/records/Bank.js +10 -8
  320. package/es/common/records/BankEntry.js +10 -9
  321. package/es/common/records/Item.js +17 -14
  322. package/es/common/records/ItemAnalysis.js +9 -8
  323. package/es/common/records/QtiImport.js +8 -7
  324. package/es/common/records/Quiz.js +17 -14
  325. package/es/common/records/QuizAnalysis.js +8 -7
  326. package/es/common/records/QuizEntry.js +105 -103
  327. package/es/common/records/QuizSession.js +26 -20
  328. package/es/common/records/QuizSessionEvent.js +9 -8
  329. package/es/common/records/QuizSessionResult.js +9 -8
  330. package/es/common/records/Response.js +9 -8
  331. package/es/common/records/SessionItem.js +12 -11
  332. package/es/common/records/SessionItemResult.js +9 -8
  333. package/es/common/records/Stimulus.js +13 -12
  334. package/es/common/records/baseRecord.js +17 -12
  335. package/es/common/records/index.js +16 -16
  336. package/es/common/records/reduxRecord.js +12 -9
  337. package/es/common/reducers/alerts.js +3 -3
  338. package/es/common/reducers/analyses.js +3 -3
  339. package/es/common/reducers/bankEntries.js +2 -2
  340. package/es/common/reducers/bankSearch.js +2 -2
  341. package/es/common/reducers/banks.js +2 -2
  342. package/es/common/reducers/calls.js +2 -2
  343. package/es/common/reducers/config.js +2 -2
  344. package/es/common/reducers/dragAndDrop.js +2 -2
  345. package/es/common/reducers/editing.js +3 -4
  346. package/es/common/reducers/errorsShowing.js +2 -2
  347. package/es/common/reducers/features.js +2 -2
  348. package/es/common/reducers/grading.js +2 -2
  349. package/es/common/reducers/interactionTypes.js +2 -2
  350. package/es/common/reducers/items.js +2 -2
  351. package/es/common/reducers/modal.js +2 -2
  352. package/es/common/reducers/moderation.js +2 -2
  353. package/es/common/reducers/modifications.js +9 -8
  354. package/es/common/reducers/outcomes.js +2 -2
  355. package/es/common/reducers/printing.js +2 -2
  356. package/es/common/reducers/qtiImports.js +2 -2
  357. package/es/common/reducers/quizEntries.js +5 -5
  358. package/es/common/reducers/quizExport.js +2 -2
  359. package/es/common/reducers/quizSessionEvents.js +5 -3
  360. package/es/common/reducers/quizSessionResults.js +2 -2
  361. package/es/common/reducers/quizSessions.js +2 -2
  362. package/es/common/reducers/quizzes.js +2 -2
  363. package/es/common/reducers/rce.js +2 -2
  364. package/es/common/reducers/regrading.js +2 -2
  365. package/es/common/reducers/reporting.js +2 -2
  366. package/es/common/reducers/scrolling.js +2 -2
  367. package/es/common/reducers/sessionItemResults.js +2 -2
  368. package/es/common/reducers/sessionItems.js +2 -2
  369. package/es/common/reducers/sharedBanks.js +2 -2
  370. package/es/common/reducers/sidebar.js +2 -2
  371. package/es/common/reducers/stimuli.js +2 -2
  372. package/es/common/reducers/tagAssociations.js +2 -2
  373. package/es/common/reducers/taking.js +7 -3
  374. package/es/common/reducers/ui.js +3 -3
  375. package/es/common/reducers/upload.js +4 -4
  376. package/es/common/selectors/calculator.js +5 -3
  377. package/es/common/selectors/interactionTypes.js +7 -7
  378. package/es/common/selectors/items.js +1 -1
  379. package/es/common/selectors/qtiImports.js +1 -1
  380. package/es/common/selectors/quizSessionResults.js +2 -2
  381. package/es/common/selectors/quizSessions.js +2 -2
  382. package/es/common/selectors/quizzes.js +9 -9
  383. package/es/common/selectors/reporting.js +2 -2
  384. package/es/common/selectors/sessionItemResults.js +4 -5
  385. package/es/common/selectors/sessionItems.js +4 -5
  386. package/es/common/selectors/taking.js +5 -2
  387. package/es/common/util/ExhaustivePaginatedFetcher.js +53 -49
  388. package/es/common/util/Fetcher.js +128 -141
  389. package/es/common/util/MultiWeakMap.js +1 -2
  390. package/es/common/util/PaginatedFetcher.js +22 -22
  391. package/es/common/util/ThunkQueue.js +50 -51
  392. package/es/common/util/TimeRecordingService.js +5 -5
  393. package/es/common/util/TimerService.js +7 -7
  394. package/es/common/util/clickHandlers.js +1 -1
  395. package/es/common/util/crossDomainMessaging.js +1 -1
  396. package/es/common/util/debounceLatestPromise.js +1 -1
  397. package/es/common/util/featureCheck.js +5 -3
  398. package/es/common/util/formatTimespan.js +2 -2
  399. package/es/common/util/generateDisplayPositions.js +1 -1
  400. package/es/common/util/getClientIpAddress.js +33 -0
  401. package/es/common/util/immutableHelpers.js +4 -3
  402. package/es/common/util/interactionTypePropsHelper.js +1 -1
  403. package/es/common/util/jsonify.js +4 -2
  404. package/es/common/util/persistedState.js +4 -4
  405. package/es/common/util/printUtils.js +1 -1
  406. package/es/common/util/rceChecker.js +9 -11
  407. package/es/common/util/renderAlerts.js +11 -10
  408. package/es/common/util/serializeEvent.js +5 -3
  409. package/es/common/util/sessionStore.js +1 -2
  410. package/es/common/util/warningHelpers.js +2 -2
  411. package/es/common/util/windowChecks.js +2 -2
  412. package/es/common/util/withCachedArguments.js +3 -1
  413. package/es/common/util/withDynamoPagination.js +51 -52
  414. package/es/common/util/withStateCache.js +3 -1
  415. package/es/configureStore.js +45 -43
  416. package/es/grading/api/quizEntryRegrades.js +4 -4
  417. package/es/grading/api/updateResults.js +6 -6
  418. package/es/index.js +146 -139
  419. package/es/messages/LocalStorageAdapter.js +15 -13
  420. package/es/messages/LocalStorageLimits.js +22 -20
  421. package/es/messages/StorageExhaustionError.js +8 -5
  422. package/es/messages/postMessageService.js +34 -31
  423. package/es/messages/subjectHandlers/lti.frameResize.js +2 -2
  424. package/es/messages/subjectHandlers/lti.get_data.js +1 -1
  425. package/es/messages/subjectHandlers/lti.put_data.js +2 -2
  426. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +3 -3
  427. package/es/moderating/api/quizSessionEvents.js +3 -3
  428. package/es/moderating/api/quizSessions.js +3 -3
  429. package/es/moderating/components/events/Event.js +49 -33
  430. package/es/moderating/components/events/PageBlurredEvent.js +7 -7
  431. package/es/moderating/components/events/PageFocusedEvent.js +7 -7
  432. package/es/moderating/components/events/RCEEvent.js +10 -9
  433. package/es/moderating/components/events/ResponseEvent.js +41 -23
  434. package/es/moderating/components/events/SessionStartEvent.js +26 -24
  435. package/es/moderating/components/events/SessionSubmitEvent.js +43 -0
  436. package/es/moderating/components/events/theme.js +1 -1
  437. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +19 -18
  438. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +23 -22
  439. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +21 -20
  440. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +23 -21
  441. package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +18 -16
  442. package/es/moderating/components/resources/AccommodationsModal/index.js +26 -25
  443. package/es/moderating/components/resources/ElapsedTime.js +14 -13
  444. package/es/moderating/components/resources/EventDetails.js +42 -0
  445. package/es/moderating/components/resources/ModerateTable/index.js +7 -7
  446. package/es/moderating/components/resources/ModerateTable/presenter.js +54 -53
  447. package/es/moderating/components/resources/ModerateTable/styles.js +3 -1
  448. package/es/moderating/components/resources/ModerateTable/theme.js +1 -1
  449. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -2
  450. package/es/moderating/components/resources/ModerateTableRow/index.js +3 -3
  451. package/es/moderating/components/resources/ModerateTableRow/presenter.js +29 -27
  452. package/es/moderating/components/resources/ModerateTableRow/story.js +4 -1
  453. package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -1
  454. package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
  455. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +29 -26
  456. package/es/moderating/components/resources/RetryGradePassbackButton/index.js +3 -3
  457. package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +40 -42
  458. package/es/moderating/components/resources/SessionBreachAlert.js +9 -0
  459. package/es/moderating/components/resources/util/checkIsBreach.js +28 -0
  460. package/es/moderating/components/resources/util/extractSessionData.js +20 -0
  461. package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
  462. package/es/moderating/components/sidebar/ModerateTray/presenter.js +39 -38
  463. package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -7
  464. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +27 -28
  465. package/es/reduxStore.js +5 -5
  466. package/es/reporting/api/fetchStudentAnalyses.js +16 -18
  467. package/es/reporting/api/getAnalysesExport.js +20 -22
  468. package/es/reporting/api/getAnalysesStatus.js +18 -20
  469. package/es/reporting/api/getItemAnalyses.js +13 -15
  470. package/es/reporting/api/getQuizAnalysis.js +13 -15
  471. package/es/reporting/api/itemAnalyses.js +4 -4
  472. package/es/reporting/api/quizAnalyses.js +4 -4
  473. package/es/reporting/components/Caption/index.js +13 -12
  474. package/es/reporting/components/MetricsListItem/index.js +14 -12
  475. package/es/reporting/components/charts/CentileDistribution/presenter.js +22 -21
  476. package/es/reporting/components/charts/Distribution/presenter.js +21 -20
  477. package/es/reporting/components/charts/Distribution/theme.js +2 -2
  478. package/es/reporting/components/charts/Legend/index.js +15 -13
  479. package/es/reporting/components/charts/Legend/styles.js +3 -1
  480. package/es/reporting/components/charts/Legend/theme.js +2 -2
  481. package/es/reporting/components/charts/QuintileDistribution/presenter.js +22 -21
  482. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
  483. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +15 -16
  484. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -8
  485. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
  486. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
  487. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
  488. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +25 -25
  489. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
  490. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +22 -23
  491. package/es/reporting/components/quizAnalysis/styles.js +3 -4
  492. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
  493. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +13 -12
  494. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
  495. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +14 -13
  496. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  497. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +17 -13
  498. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  499. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +18 -14
  500. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  501. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +25 -25
  502. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +3 -1
  503. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
  504. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  505. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -18
  506. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +22 -17
  507. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +18 -14
  508. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  509. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +33 -33
  510. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +3 -1
  511. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +24 -19
  512. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
  513. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +8 -6
  514. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  515. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +19 -15
  516. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  517. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +50 -46
  518. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  519. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +37 -33
  520. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  521. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +22 -18
  522. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +19 -18
  523. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +18 -14
  524. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  525. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +24 -20
  526. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  527. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +19 -17
  528. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +3 -1
  529. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  530. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +18 -14
  531. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  532. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +45 -45
  533. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
  534. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  535. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +49 -47
  536. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +3 -1
  537. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
  538. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  539. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +25 -21
  540. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  541. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
  542. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +24 -23
  543. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  544. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +12 -11
  545. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
  546. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -3
  547. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +48 -47
  548. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +3 -1
  549. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
  550. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
  551. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +29 -28
  552. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
  553. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +41 -40
  554. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
  555. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
  556. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
  557. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +19 -18
  558. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
  559. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +39 -41
  560. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +25 -27
  561. package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
  562. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +69 -68
  563. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -11
  564. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +69 -76
  565. package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
  566. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +13 -12
  567. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -3
  568. package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
  569. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +23 -23
  570. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
  571. package/es/reporting/components/resources/ReportCard/index.js +14 -13
  572. package/es/reporting/components/resources/ReportList/index.js +13 -12
  573. package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -2
  574. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +40 -39
  575. package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -1
  576. package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
  577. package/es/reporting/components/resources/StudentAnalysis/fetchReport.js +34 -36
  578. package/es/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +25 -27
  579. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +10 -10
  580. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +79 -86
  581. package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +15 -14
  582. package/es/reporting/components/resources/common/errorCodes.js +2 -2
  583. package/es/reporting/components/resources/common/exportReports.js +38 -40
  584. package/es/reporting/components/resources/common/generateReports.js +62 -66
  585. package/es/reporting/components/resources/common/propTypes.js +14 -0
  586. package/es/reporting/components/resources/common/utils.js +1 -1
  587. package/es/taking/api/taking.js +48 -27
  588. package/es/taking/learnosity/index.js +36 -38
  589. package/lib/banks/api/bankEntries.js +43 -54
  590. package/lib/banks/api/banks.js +68 -78
  591. package/lib/banks/api/copyingBanksPoller.js +54 -58
  592. package/lib/banks/api/tagAssociations.js +37 -44
  593. package/lib/banks/components/AddBankEntryModal/index.js +12 -13
  594. package/lib/banks/components/AddBankEntryModal/presenter.js +43 -43
  595. package/lib/banks/components/AddToBankModal/index.js +12 -12
  596. package/lib/banks/components/AddToBankModal/presenter.js +77 -78
  597. package/lib/banks/components/AsyncSearch/index.js +91 -90
  598. package/lib/banks/components/Bank/index.js +18 -19
  599. package/lib/banks/components/Bank/presenter.js +147 -152
  600. package/lib/banks/components/Bank/styles.js +7 -7
  601. package/lib/banks/components/Bank/theme.js +3 -4
  602. package/lib/banks/components/BankEntriesList/index.js +6 -7
  603. package/lib/banks/components/BankEntriesList/presenter.js +29 -30
  604. package/lib/banks/components/BankEntriesList/styles.js +2 -3
  605. package/lib/banks/components/BankEntriesList/theme.js +2 -3
  606. package/lib/banks/components/BankEntry/index.js +21 -23
  607. package/lib/banks/components/BankEntry/presenter.js +259 -269
  608. package/lib/banks/components/BankEntry/styles.js +7 -6
  609. package/lib/banks/components/BankEntry/theme.js +7 -8
  610. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +7 -8
  611. package/lib/banks/components/BankEntryRow/index.js +13 -13
  612. package/lib/banks/components/BankEntryRow/presenter.js +101 -102
  613. package/lib/banks/components/BankEntryRow/styles.js +3 -3
  614. package/lib/banks/components/BankEntryRow/theme.js +6 -7
  615. package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -17
  616. package/lib/banks/components/BankSearch/index.js +6 -7
  617. package/lib/banks/components/BankSearch/presenter.js +55 -56
  618. package/lib/banks/components/BankSearch/styles.js +2 -3
  619. package/lib/banks/components/BankSearch/theme.js +2 -3
  620. package/lib/banks/components/Banks/index.js +12 -13
  621. package/lib/banks/components/Banks/presenter.js +154 -154
  622. package/lib/banks/components/Banks/styles.js +2 -3
  623. package/lib/banks/components/Banks/theme.js +4 -5
  624. package/lib/banks/components/BanksList/index.js +11 -12
  625. package/lib/banks/components/BanksList/presenter.js +171 -179
  626. package/lib/banks/components/BanksList/styles.js +2 -3
  627. package/lib/banks/components/BanksList/theme.js +6 -7
  628. package/lib/banks/components/CopyMoveBankEntryModal/index.js +12 -12
  629. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +89 -91
  630. package/lib/banks/components/CreateBankModal/index.js +15 -15
  631. package/lib/banks/components/CreateBankModal/presenter.js +64 -64
  632. package/lib/banks/components/EditBankModal/index.js +11 -11
  633. package/lib/banks/components/EditBankModal/presenter.js +50 -50
  634. package/lib/banks/components/HeaderBreadCrumb/index.js +37 -37
  635. package/lib/banks/components/HeaderMenu/index.js +9 -9
  636. package/lib/banks/components/HeaderMenu/presenter.js +32 -34
  637. package/lib/banks/components/HeaderMenu/styles.js +2 -3
  638. package/lib/banks/components/HeaderMenu/theme.js +2 -3
  639. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +5 -6
  640. package/lib/banks/components/NavWrapper/externalStyles.js +2 -3
  641. package/lib/banks/components/NavWrapper/index.js +4 -5
  642. package/lib/banks/components/NavWrapper/presenter.js +47 -47
  643. package/lib/banks/components/NavWrapper/styles.js +7 -6
  644. package/lib/banks/components/NavWrapper/theme.js +5 -6
  645. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +22 -20
  646. package/lib/banks/components/SharingModal/RootAccountSharing.js +41 -42
  647. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -4
  648. package/lib/banks/components/SharingModal/ShareList/index.js +43 -45
  649. package/lib/banks/components/SharingModal/ShareList/styles.js +2 -3
  650. package/lib/banks/components/SharingModal/index.js +7 -8
  651. package/lib/banks/components/SharingModal/presenter.js +160 -162
  652. package/lib/banks/components/SharingModal/styles.js +2 -3
  653. package/lib/banks/components/SharingModal/theme.js +3 -4
  654. package/lib/building/api/items.js +78 -82
  655. package/lib/building/api/qtiImports.js +19 -23
  656. package/lib/building/api/quizEntries.js +75 -76
  657. package/lib/building/api/quizzes.js +28 -28
  658. package/lib/building/api/stimuli.js +8 -8
  659. package/lib/building/components/QTIImportModal/index.js +11 -15
  660. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +32 -31
  661. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +18 -22
  662. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +42 -43
  663. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -3
  664. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -3
  665. package/lib/building/components/layout/Sidebar/Stimulus/index.js +16 -20
  666. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +42 -43
  667. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -3
  668. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -3
  669. package/lib/building/components/layout/Sidebar/index.js +17 -21
  670. package/lib/building/components/layout/Sidebar/presenter.js +48 -49
  671. package/lib/building/components/layout/Sidebar/styles.js +8 -7
  672. package/lib/building/components/layout/Sidebar/theme.js +2 -3
  673. package/lib/building/components/layout/header/BuildingButtons/index.js +16 -17
  674. package/lib/building/components/layout/header/BuildingButtons/presenter.js +64 -66
  675. package/lib/building/components/layout/header/BuildingButtons/styles.js +6 -5
  676. package/lib/building/components/layout/header/BuildingButtons/theme.js +3 -4
  677. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +9 -11
  678. package/lib/building/components/resources/ActionButtons/index.js +7 -9
  679. package/lib/building/components/resources/ActionButtons/presenter.js +50 -51
  680. package/lib/building/components/resources/ActionButtons/styles.js +6 -6
  681. package/lib/building/components/resources/ActionButtons/theme.js +3 -4
  682. package/lib/building/components/resources/AddToBankOptions/index.js +56 -59
  683. package/lib/building/components/resources/AddToBankOptions/styles.js +2 -3
  684. package/lib/building/components/resources/AddToBankOptions/theme.js +4 -5
  685. package/lib/building/components/resources/BanksTray/index.js +6 -8
  686. package/lib/building/components/resources/BanksTray/presenter.js +77 -79
  687. package/lib/building/components/resources/DeleteStimulusModal/index.js +8 -10
  688. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +58 -60
  689. package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -3
  690. package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -3
  691. package/lib/building/components/resources/ItemFeedbackModal/index.js +13 -15
  692. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +41 -43
  693. package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -3
  694. package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -3
  695. package/lib/building/components/resources/MoveImmutableModal/index.js +10 -12
  696. package/lib/building/components/resources/MoveImmutableModal/presenter.js +43 -43
  697. package/lib/building/components/resources/quiz/editButton/EditButton.js +26 -25
  698. package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -5
  699. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +32 -29
  700. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -3
  701. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -1
  702. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +5 -6
  703. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -12
  704. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +55 -52
  705. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +3 -4
  706. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
  707. package/lib/building/components/resources/quiz/instructions/Show/index.js +27 -28
  708. package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -3
  709. package/lib/building/components/resources/quiz/instructions/Show/theme.js +1 -1
  710. package/lib/building/components/resources/quiz/title/Edit/index.js +48 -48
  711. package/lib/building/components/resources/quiz/title/Edit/styles.js +6 -5
  712. package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -4
  713. package/lib/building/components/resources/quiz/title/Show/index.js +26 -27
  714. package/lib/building/components/resources/quiz/title/Show/styles.js +2 -3
  715. package/lib/building/components/resources/quiz/title/Show/theme.js +2 -3
  716. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +5 -6
  717. package/lib/building/components/resources/quiz/title/Title/index.js +11 -13
  718. package/lib/building/components/resources/quiz/title/Title/presenter.js +63 -60
  719. package/lib/building/components/resources/quiz/title/Title/styles.js +5 -5
  720. package/lib/building/components/resources/quiz/title/Title/theme.js +4 -4
  721. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +18 -21
  722. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +113 -113
  723. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +12 -13
  724. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +4 -5
  725. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
  726. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +7 -8
  727. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +74 -77
  728. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -3
  729. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +5 -6
  730. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +25 -27
  731. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -3
  732. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -5
  733. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -6
  734. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +57 -58
  735. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +6 -5
  736. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -3
  737. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +130 -133
  738. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -3
  739. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +4 -5
  740. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +15 -15
  741. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +182 -187
  742. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -3
  743. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -3
  744. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +11 -13
  745. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +81 -84
  746. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +6 -6
  747. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +7 -8
  748. package/lib/common/actions/alerts.js +3 -3
  749. package/lib/common/actions/analyses.js +7 -7
  750. package/lib/common/actions/bankEntries.js +3 -5
  751. package/lib/common/actions/bankSearch.js +6 -10
  752. package/lib/common/actions/banks.js +8 -14
  753. package/lib/common/actions/config.js +1 -1
  754. package/lib/common/actions/editing.js +2 -2
  755. package/lib/common/actions/errorsShowing.js +1 -1
  756. package/lib/common/actions/grading.js +2 -2
  757. package/lib/common/actions/modal.js +5 -5
  758. package/lib/common/actions/modifications.js +36 -36
  759. package/lib/common/actions/printing.js +1 -1
  760. package/lib/common/actions/quizExport.js +2 -3
  761. package/lib/common/actions/quizSessionEvents.js +2 -3
  762. package/lib/common/actions/quizSessionResults.js +2 -3
  763. package/lib/common/actions/quizSessions.js +17 -22
  764. package/lib/common/actions/quizzes.js +8 -14
  765. package/lib/common/actions/rce.js +5 -8
  766. package/lib/common/actions/regrading.js +1 -1
  767. package/lib/common/actions/reporting.js +1 -1
  768. package/lib/common/actions/scrolling.js +2 -2
  769. package/lib/common/actions/sessionItemResults.js +2 -3
  770. package/lib/common/actions/sessionItems.js +2 -3
  771. package/lib/common/actions/sharedBanks.js +5 -8
  772. package/lib/common/actions/sidebar.js +1 -1
  773. package/lib/common/actions/tagAssociations.js +9 -17
  774. package/lib/common/actions/taking.js +24 -41
  775. package/lib/common/actions/ui.js +11 -20
  776. package/lib/common/actions/upload.js +6 -11
  777. package/lib/common/api/callHandlers.js +35 -56
  778. package/lib/common/api/camelizeHelpers.js +5 -7
  779. package/lib/common/api/features.js +6 -7
  780. package/lib/common/api/fileUpload.js +6 -7
  781. package/lib/common/api/getPersistenceActions.js +22 -23
  782. package/lib/common/api/helpers.js +81 -88
  783. package/lib/common/api/interactionTypes.js +5 -6
  784. package/lib/common/api/quizSessions.js +53 -62
  785. package/lib/common/api/quizzes.js +9 -9
  786. package/lib/common/api/schema.js +20 -37
  787. package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +8 -11
  788. package/lib/common/components/AccessCodeTextInput/index.js +22 -22
  789. package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -14
  790. package/lib/common/components/ConfirmationModal/index.js +9 -8
  791. package/lib/common/components/ConfirmationModal/presenter.js +47 -47
  792. package/lib/common/components/ImportModal/ImportFileSelector/index.js +33 -36
  793. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -3
  794. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -7
  795. package/lib/common/components/ImportModal/index.js +13 -15
  796. package/lib/common/components/ImportModal/presenter.js +74 -74
  797. package/lib/common/components/ImportModal/styles.js +2 -3
  798. package/lib/common/components/ImportModal/theme.js +2 -3
  799. package/lib/common/components/LearnosityCalculator/index.js +70 -72
  800. package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +8 -11
  801. package/lib/common/components/MaskedTextInput/index.js +26 -25
  802. package/lib/common/components/Pin/Pin.examples.js +3 -4
  803. package/lib/common/components/Pin/index.js +4 -6
  804. package/lib/common/components/Pin/presenter.js +24 -24
  805. package/lib/common/components/PreviewFrame/examples.config.js +4 -6
  806. package/lib/common/components/PreviewFrame/index.js +25 -26
  807. package/lib/common/components/PrintFontSizeModal/index.js +3 -4
  808. package/lib/common/components/PrintFontSizeModal/presenter.js +50 -49
  809. package/lib/common/components/PrintFontSizeModal/styles.js +2 -3
  810. package/lib/common/components/PrintFontSizeModal/theme.js +3 -4
  811. package/lib/common/components/RceConfigProvider/index.js +9 -10
  812. package/lib/common/components/RceConfigProvider/presenter.js +110 -113
  813. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +10 -12
  814. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -17
  815. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +27 -30
  816. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +7 -10
  817. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -8
  818. package/lib/common/components/SDKApp/index.js +68 -71
  819. package/lib/common/components/SDKApp/styles.js +2 -3
  820. package/lib/common/components/SDKHeaderCalculator.js +12 -14
  821. package/lib/common/components/SDKMenuButton.js +9 -11
  822. package/lib/common/components/SDKNavBar.js +10 -12
  823. package/lib/common/components/SDKTimer.js +12 -14
  824. package/lib/common/components/alerts/index.js +8 -9
  825. package/lib/common/components/alerts/presenter.js +25 -26
  826. package/lib/common/components/alerts/styles.js +3 -4
  827. package/lib/common/components/alerts/theme.js +2 -3
  828. package/lib/common/components/layout/Page/index.js +27 -28
  829. package/lib/common/components/layout/Page/styles.js +6 -6
  830. package/lib/common/components/layout/Page/theme.js +2 -3
  831. package/lib/common/components/layout/header/Calculator/index.js +10 -12
  832. package/lib/common/components/layout/header/Calculator/presenter.js +35 -36
  833. package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -12
  834. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +25 -28
  835. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +3 -4
  836. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +3 -4
  837. package/lib/common/components/layout/header/Timer/index.js +8 -9
  838. package/lib/common/components/layout/header/Timer/presenter.js +58 -60
  839. package/lib/common/components/layout/header/Timer/styles.js +2 -3
  840. package/lib/common/components/layout/header/Timer/theme.js +5 -6
  841. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +18 -19
  842. package/lib/common/components/layout/navbar/externalStyles.js +2 -3
  843. package/lib/common/components/layout/navbar/index.js +51 -52
  844. package/lib/common/components/layout/navbar/styles.js +7 -6
  845. package/lib/common/components/layout/navbar/theme.js +3 -4
  846. package/lib/common/components/layout/sidebar/PositionSummary/index.js +25 -25
  847. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -3
  848. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +4 -5
  849. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +23 -23
  850. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +8 -11
  851. package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +2 -3
  852. package/lib/common/components/layout/sidebar/Sidebar/index.js +83 -85
  853. package/lib/common/components/layout/sidebar/Sidebar/styles.js +17 -18
  854. package/lib/common/components/layout/sidebar/Sidebar/theme.js +12 -13
  855. package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -15
  856. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +45 -42
  857. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -6
  858. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -8
  859. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -7
  860. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +41 -40
  861. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +11 -10
  862. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -4
  863. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -7
  864. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +37 -36
  865. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -3
  866. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +4 -5
  867. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +21 -20
  868. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -3
  869. package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -12
  870. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +44 -47
  871. package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -3
  872. package/lib/common/components/layout/sidebar/Stimulus/theme.js +6 -7
  873. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -4
  874. package/lib/common/components/resources/BankSelection/index.js +9 -10
  875. package/lib/common/components/resources/BankSelection/presenter.js +34 -34
  876. package/lib/common/components/resources/WarningWrapper/index.js +33 -34
  877. package/lib/common/components/resources/WarningWrapper/styles.js +2 -3
  878. package/lib/common/components/resources/WarningWrapper/theme.js +3 -4
  879. package/lib/common/components/resources/entry/EntrySave/index.js +8 -9
  880. package/lib/common/components/resources/entry/EntrySave/presenter.js +113 -117
  881. package/lib/common/components/resources/item/ItemEdit/index.js +19 -19
  882. package/lib/common/components/resources/item/ItemEdit/presenter.js +78 -78
  883. package/lib/common/components/resources/item/ItemOverride/index.js +13 -13
  884. package/lib/common/components/resources/item/ItemOverride/presenter.js +44 -43
  885. package/lib/common/components/resources/item/ItemShow/index.js +25 -24
  886. package/lib/common/components/resources/positionBox/PositionBox.js +21 -22
  887. package/lib/common/components/resources/positionBox/styles.js +3 -4
  888. package/lib/common/components/resources/positionBox/theme.js +4 -5
  889. package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -10
  890. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +52 -54
  891. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -8
  892. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +3 -4
  893. package/lib/common/components/resources/quiz/AddContent/Button/index.js +28 -29
  894. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +7 -7
  895. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +6 -7
  896. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +6 -8
  897. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +35 -35
  898. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +8 -10
  899. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +49 -50
  900. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -3
  901. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +3 -4
  902. package/lib/common/components/resources/quiz/info/QuizInfo.js +23 -23
  903. package/lib/common/components/resources/quiz/instructions/Instructions.js +19 -20
  904. package/lib/common/components/resources/quiz/instructions/styles.js +2 -3
  905. package/lib/common/components/resources/quiz/instructions/theme.js +2 -3
  906. package/lib/common/components/resources/quiz/title/Title.js +19 -20
  907. package/lib/common/components/resources/quiz/title/styles.js +2 -3
  908. package/lib/common/components/resources/quiz/title/theme.js +2 -3
  909. package/lib/common/components/resources/quizSessionResult/Header/index.js +25 -26
  910. package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -3
  911. package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -3
  912. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +10 -11
  913. package/lib/common/components/resources/quizSessionResult/Info/index.js +133 -132
  914. package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -3
  915. package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -3
  916. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +21 -22
  917. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +13 -13
  918. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +6 -7
  919. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -9
  920. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +98 -99
  921. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +6 -5
  922. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +6 -7
  923. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +33 -34
  924. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -3
  925. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
  926. package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -8
  927. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +64 -65
  928. package/lib/common/components/resources/stimulus/Stimulus/styles.js +9 -9
  929. package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -4
  930. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +14 -14
  931. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +194 -199
  932. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -3
  933. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +3 -4
  934. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +13 -9
  935. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +64 -54
  936. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -3
  937. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -4
  938. package/lib/common/components/resources/stimulus/StimulusShow/index.js +41 -43
  939. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -3
  940. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
  941. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +5 -6
  942. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +26 -25
  943. package/lib/common/components/shared/Card/CardContent/index.js +24 -24
  944. package/lib/common/components/shared/Card/CardContent/styles.js +3 -4
  945. package/lib/common/components/shared/Card/CardContent/theme.js +4 -5
  946. package/lib/common/components/shared/Card/CardWrapper/index.js +23 -23
  947. package/lib/common/components/shared/Card/CardWrapper/styles.js +3 -4
  948. package/lib/common/components/shared/Card/CardWrapper/theme.js +3 -4
  949. package/lib/common/components/shared/Card/index.js +12 -12
  950. package/lib/common/components/shared/ExpandButton/index.js +21 -22
  951. package/lib/common/components/shared/ExpandButton/styles.js +6 -5
  952. package/lib/common/components/shared/ExpandButton/theme.js +2 -3
  953. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +7 -8
  954. package/lib/common/components/shared/FormattedDuration/index.js +36 -37
  955. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +63 -63
  956. package/lib/common/components/shared/IfFeature/index.js +6 -8
  957. package/lib/common/components/shared/IfFeature/presenter.js +18 -19
  958. package/lib/common/components/shared/InteractionTypes/index.js +5 -6
  959. package/lib/common/components/shared/InteractionTypes/presenter.js +37 -38
  960. package/lib/common/components/shared/InteractionTypes/styles.js +2 -3
  961. package/lib/common/components/shared/InteractionTypes/theme.js +3 -4
  962. package/lib/common/components/shared/PaginatedCollection/index.js +6 -7
  963. package/lib/common/components/shared/PaginatedCollection/presenter.js +64 -68
  964. package/lib/common/components/shared/PaginatedCollection/styles.js +2 -3
  965. package/lib/common/components/shared/PaginatedCollection/theme.js +3 -4
  966. package/lib/common/components/shared/Paginator/index.js +23 -24
  967. package/lib/common/components/shared/Paginator/styles.js +2 -3
  968. package/lib/common/components/shared/Paginator/theme.js +2 -3
  969. package/lib/common/components/shared/PrintTrigger/index.js +11 -12
  970. package/lib/common/components/shared/PrintTrigger/presenter.js +51 -51
  971. package/lib/common/components/shared/TagDisplay/index.js +22 -23
  972. package/lib/common/components/shared/TagDisplay/styles.js +3 -4
  973. package/lib/common/components/shared/TagSelect/index.js +3 -4
  974. package/lib/common/components/shared/TagSelect/presenter.js +60 -59
  975. package/lib/common/components/shared/TagSuggestSelect/index.js +6 -7
  976. package/lib/common/components/shared/TagSuggestSelect/presenter.js +41 -41
  977. package/lib/common/components/shared/TagWrapper/index.js +3 -4
  978. package/lib/common/components/shared/TagWrapper/presenter.js +28 -28
  979. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -4
  980. package/lib/common/components/shared/TimeUnitsInput/index.js +74 -74
  981. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +29 -30
  982. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -6
  983. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +7 -8
  984. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +12 -14
  985. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +63 -67
  986. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -24
  987. package/lib/common/components/shared/errors/Errors.js +21 -22
  988. package/lib/common/components/shared/errors/styles.js +2 -3
  989. package/lib/common/components/shared/errors/theme.js +3 -4
  990. package/lib/common/components/shared/file_selector/FileSelector.js +24 -26
  991. package/lib/common/components/shared/file_selector/styles.js +2 -3
  992. package/lib/common/components/shared/file_selector/theme.js +4 -5
  993. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +21 -22
  994. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +18 -20
  995. package/lib/common/components/shared/functionality/disableDraggingOverride.js +5 -6
  996. package/lib/common/components/shared/functionality/makeEditable.js +37 -37
  997. package/lib/common/components/shared/functionality/makeScrollable.js +40 -41
  998. package/lib/common/components/shared/overlay/index.js +27 -26
  999. package/lib/common/components/shared/overlay/styles.js +3 -4
  1000. package/lib/common/components/shared/overlay/theme.js +3 -4
  1001. package/lib/common/components/shared/return_button/ReturnButton.js +27 -26
  1002. package/lib/common/components/shared/spinner/Spinner.js +25 -25
  1003. package/lib/common/components/shared/spinner/styles.js +2 -3
  1004. package/lib/common/kinesis/QuizEventsLogger.js +43 -49
  1005. package/lib/common/kinesis/StreamQueue.js +13 -11
  1006. package/lib/common/kinesis/client.js +9 -13
  1007. package/lib/common/kinesis/config.js +7 -11
  1008. package/lib/common/kinesis/eventTypes.js +9 -16
  1009. package/lib/common/middleware/alertTimerMiddleware.js +4 -5
  1010. package/lib/common/middleware/crossDomainMessagingMiddleware.js +3 -4
  1011. package/lib/common/middleware/eventLoggerMiddleware.js +7 -8
  1012. package/lib/common/middleware/persistedStorageMiddleware.js +5 -6
  1013. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +15 -21
  1014. package/lib/common/react-redux.js +3 -4
  1015. package/lib/common/records/Alert.js +12 -11
  1016. package/lib/common/records/Bank.js +16 -16
  1017. package/lib/common/records/BankEntry.js +19 -20
  1018. package/lib/common/records/Item.js +25 -24
  1019. package/lib/common/records/ItemAnalysis.js +14 -15
  1020. package/lib/common/records/QtiImport.js +13 -14
  1021. package/lib/common/records/Quiz.js +29 -28
  1022. package/lib/common/records/QuizAnalysis.js +16 -17
  1023. package/lib/common/records/QuizEntry.js +125 -124
  1024. package/lib/common/records/QuizSession.js +32 -28
  1025. package/lib/common/records/QuizSessionEvent.js +14 -15
  1026. package/lib/common/records/QuizSessionResult.js +14 -15
  1027. package/lib/common/records/Response.js +14 -15
  1028. package/lib/common/records/SessionItem.js +21 -22
  1029. package/lib/common/records/SessionItemResult.js +14 -15
  1030. package/lib/common/records/Stimulus.js +20 -21
  1031. package/lib/common/records/baseRecord.js +22 -18
  1032. package/lib/common/records/index.js +34 -34
  1033. package/lib/common/records/reduxRecord.js +16 -13
  1034. package/lib/common/reducers/alerts.js +6 -7
  1035. package/lib/common/reducers/analyses.js +17 -30
  1036. package/lib/common/reducers/bankEntries.js +6 -7
  1037. package/lib/common/reducers/bankSearch.js +5 -6
  1038. package/lib/common/reducers/banks.js +6 -7
  1039. package/lib/common/reducers/calls.js +5 -6
  1040. package/lib/common/reducers/config.js +5 -6
  1041. package/lib/common/reducers/dragAndDrop.js +5 -6
  1042. package/lib/common/reducers/editing.js +6 -8
  1043. package/lib/common/reducers/errorsShowing.js +5 -6
  1044. package/lib/common/reducers/features.js +5 -6
  1045. package/lib/common/reducers/grading.js +5 -6
  1046. package/lib/common/reducers/interactionTypes.js +6 -7
  1047. package/lib/common/reducers/items.js +6 -7
  1048. package/lib/common/reducers/modal.js +5 -6
  1049. package/lib/common/reducers/moderation.js +5 -6
  1050. package/lib/common/reducers/modifications.js +16 -16
  1051. package/lib/common/reducers/outcomes.js +5 -6
  1052. package/lib/common/reducers/printing.js +5 -6
  1053. package/lib/common/reducers/qtiImports.js +6 -7
  1054. package/lib/common/reducers/quizEntries.js +10 -11
  1055. package/lib/common/reducers/quizExport.js +5 -6
  1056. package/lib/common/reducers/quizSessionEvents.js +8 -7
  1057. package/lib/common/reducers/quizSessionResults.js +6 -7
  1058. package/lib/common/reducers/quizSessions.js +7 -8
  1059. package/lib/common/reducers/quizzes.js +8 -9
  1060. package/lib/common/reducers/rce.js +5 -6
  1061. package/lib/common/reducers/regrading.js +5 -6
  1062. package/lib/common/reducers/reporting.js +6 -7
  1063. package/lib/common/reducers/scrolling.js +5 -6
  1064. package/lib/common/reducers/sessionItemResults.js +6 -7
  1065. package/lib/common/reducers/sessionItems.js +6 -7
  1066. package/lib/common/reducers/sharedBanks.js +6 -7
  1067. package/lib/common/reducers/sidebar.js +5 -6
  1068. package/lib/common/reducers/stimuli.js +6 -7
  1069. package/lib/common/reducers/tagAssociations.js +5 -6
  1070. package/lib/common/reducers/taking.js +10 -7
  1071. package/lib/common/reducers/ui.js +6 -7
  1072. package/lib/common/reducers/upload.js +7 -8
  1073. package/lib/common/selectors/analyses.js +13 -24
  1074. package/lib/common/selectors/calculator.js +3 -3
  1075. package/lib/common/selectors/config.js +1 -1
  1076. package/lib/common/selectors/interactionTypes.js +14 -16
  1077. package/lib/common/selectors/items.js +3 -3
  1078. package/lib/common/selectors/qtiImports.js +4 -5
  1079. package/lib/common/selectors/quizSessionResults.js +4 -4
  1080. package/lib/common/selectors/quizSessions.js +11 -17
  1081. package/lib/common/selectors/quizzes.js +31 -43
  1082. package/lib/common/selectors/rce.js +4 -6
  1083. package/lib/common/selectors/reporting.js +5 -6
  1084. package/lib/common/selectors/sessionItemResults.js +10 -12
  1085. package/lib/common/selectors/sessionItems.js +11 -13
  1086. package/lib/common/selectors/taking.js +14 -14
  1087. package/lib/common/selectors/ui.js +2 -3
  1088. package/lib/common/util/CustomPropTypes.js +3 -5
  1089. package/lib/common/util/ElementsForSelectors.js +3 -4
  1090. package/lib/common/util/ExhaustivePaginatedFetcher.js +57 -56
  1091. package/lib/common/util/Fetcher.js +151 -166
  1092. package/lib/common/util/MultiWeakMap.js +5 -7
  1093. package/lib/common/util/PaginatedFetcher.js +30 -32
  1094. package/lib/common/util/ThunkQueue.js +55 -57
  1095. package/lib/common/util/TimeRecordingService.js +9 -11
  1096. package/lib/common/util/TimerService.js +16 -19
  1097. package/lib/common/util/cachePreviousArgs.js +4 -5
  1098. package/lib/common/util/callHelpers.js +6 -10
  1099. package/lib/common/util/clickHandlers.js +3 -3
  1100. package/lib/common/util/componentForItem.js +5 -6
  1101. package/lib/common/util/crossDomainMessaging.js +1 -1
  1102. package/lib/common/util/debounceLatestPromise.js +5 -6
  1103. package/lib/common/util/featureCheck.js +6 -6
  1104. package/lib/common/util/formatTimespan.js +8 -9
  1105. package/lib/common/util/generateDisplayPositions.js +3 -4
  1106. package/lib/common/util/getClientIpAddress.js +40 -0
  1107. package/lib/common/util/httpHeaders.js +5 -8
  1108. package/lib/common/util/immutableHelpers.js +6 -9
  1109. package/lib/common/util/instUIMessages.js +2 -3
  1110. package/lib/common/util/interactionTypeMetadata.js +17 -19
  1111. package/lib/common/util/interactionTypePropsHelper.js +5 -7
  1112. package/lib/common/util/interactionTypeRecordForItem.js +4 -4
  1113. package/lib/common/util/jsonify.js +8 -7
  1114. package/lib/common/util/keyboardClickable.js +2 -3
  1115. package/lib/common/util/mathRenderingUtils.js +2 -4
  1116. package/lib/common/util/maxContent.js +4 -5
  1117. package/lib/common/util/noop.js +2 -3
  1118. package/lib/common/util/persistedState.js +10 -11
  1119. package/lib/common/util/printUtils.js +5 -7
  1120. package/lib/common/util/rceChecker.js +12 -15
  1121. package/lib/common/util/renderAlerts.js +13 -15
  1122. package/lib/common/util/serializeEvent.js +7 -6
  1123. package/lib/common/util/sessionStore.js +4 -7
  1124. package/lib/common/util/valMap.js +4 -5
  1125. package/lib/common/util/warningHelpers.js +33 -40
  1126. package/lib/common/util/windowChecks.js +9 -14
  1127. package/lib/common/util/withCachedArguments.js +5 -6
  1128. package/lib/common/util/withDynamoPagination.js +55 -57
  1129. package/lib/common/util/withStateCache.js +5 -6
  1130. package/lib/config.js +6 -8
  1131. package/lib/configureStore.js +90 -91
  1132. package/lib/grading/api/quizEntryRegrades.js +6 -6
  1133. package/lib/grading/api/updateResults.js +10 -11
  1134. package/lib/index.js +567 -550
  1135. package/lib/messages/LocalStorageAdapter.js +18 -18
  1136. package/lib/messages/LocalStorageLimits.js +26 -25
  1137. package/lib/messages/StorageExhaustionError.js +12 -10
  1138. package/lib/messages/postMessageService.js +47 -45
  1139. package/lib/messages/subjectHandlers/forwardMessage.js +2 -3
  1140. package/lib/messages/subjectHandlers/lti.capabilities.js +2 -3
  1141. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -3
  1142. package/lib/messages/subjectHandlers/lti.frameResize.js +4 -5
  1143. package/lib/messages/subjectHandlers/lti.get_data.js +3 -4
  1144. package/lib/messages/subjectHandlers/lti.put_data.js +5 -6
  1145. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +7 -9
  1146. package/lib/moderating/api/quizSessionEvents.js +4 -4
  1147. package/lib/moderating/api/quizSessions.js +8 -8
  1148. package/lib/moderating/components/events/Event.js +60 -45
  1149. package/lib/moderating/components/events/PageBlurredEvent.js +14 -15
  1150. package/lib/moderating/components/events/PageFocusedEvent.js +14 -15
  1151. package/lib/moderating/components/events/RCEEvent.js +18 -18
  1152. package/lib/moderating/components/events/ResponseEvent.js +50 -32
  1153. package/lib/moderating/components/events/SessionStartEvent.js +33 -32
  1154. package/lib/moderating/components/events/SessionSubmitEvent.js +52 -0
  1155. package/lib/moderating/components/events/styles.js +2 -3
  1156. package/lib/moderating/components/events/theme.js +3 -4
  1157. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -4
  1158. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +38 -37
  1159. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -4
  1160. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +35 -35
  1161. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +38 -37
  1162. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -4
  1163. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +57 -56
  1164. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +33 -32
  1165. package/lib/moderating/components/resources/AccommodationsModal/index.js +52 -52
  1166. package/lib/moderating/components/resources/ElapsedTime.js +27 -27
  1167. package/lib/moderating/components/resources/EventDetails.js +49 -0
  1168. package/lib/moderating/components/resources/ModerateTable/index.js +11 -14
  1169. package/lib/moderating/components/resources/ModerateTable/presenter.js +125 -126
  1170. package/lib/moderating/components/resources/ModerateTable/styles.js +6 -5
  1171. package/lib/moderating/components/resources/ModerateTable/theme.js +3 -4
  1172. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +9 -10
  1173. package/lib/moderating/components/resources/ModerateTableRow/index.js +6 -7
  1174. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +71 -71
  1175. package/lib/moderating/components/resources/ModerateTableRow/story.js +6 -7
  1176. package/lib/moderating/components/resources/ModerateTableRow/styles.js +3 -4
  1177. package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -3
  1178. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -4
  1179. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +7 -9
  1180. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +58 -56
  1181. package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +6 -7
  1182. package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +48 -50
  1183. package/lib/moderating/components/resources/SessionBreachAlert.js +16 -0
  1184. package/lib/moderating/components/resources/util/checkIsBreach.js +35 -0
  1185. package/lib/moderating/components/resources/util/extractSessionData.js +27 -0
  1186. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -4
  1187. package/lib/moderating/components/sidebar/ModerateTray/index.js +6 -7
  1188. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +75 -75
  1189. package/lib/moderating/components/sidebar/ResetQuiz/index.js +10 -11
  1190. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +52 -54
  1191. package/lib/reduxStore.js +13 -14
  1192. package/lib/reporting/api/fetchStudentAnalyses.js +20 -23
  1193. package/lib/reporting/api/getAnalysesExport.js +24 -27
  1194. package/lib/reporting/api/getAnalysesStatus.js +22 -25
  1195. package/lib/reporting/api/getItemAnalyses.js +17 -20
  1196. package/lib/reporting/api/getQuizAnalysis.js +17 -20
  1197. package/lib/reporting/api/itemAnalyses.js +5 -5
  1198. package/lib/reporting/api/quizAnalyses.js +5 -5
  1199. package/lib/reporting/components/Caption/index.js +20 -21
  1200. package/lib/reporting/components/Caption/styles.js +2 -3
  1201. package/lib/reporting/components/Caption/theme.js +2 -3
  1202. package/lib/reporting/components/MetricsListItem/index.js +21 -21
  1203. package/lib/reporting/components/MetricsListItem/styles.js +2 -3
  1204. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -4
  1205. package/lib/reporting/components/charts/CentileDistribution/index.js +2 -3
  1206. package/lib/reporting/components/charts/CentileDistribution/presenter.js +33 -34
  1207. package/lib/reporting/components/charts/CentileDistribution/styles.js +3 -4
  1208. package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -3
  1209. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -5
  1210. package/lib/reporting/components/charts/Distribution/Distribution.js +2 -3
  1211. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -3
  1212. package/lib/reporting/components/charts/Distribution/index.js +2 -3
  1213. package/lib/reporting/components/charts/Distribution/presenter.js +30 -32
  1214. package/lib/reporting/components/charts/Distribution/styles.js +2 -3
  1215. package/lib/reporting/components/charts/Distribution/theme.js +4 -5
  1216. package/lib/reporting/components/charts/Legend/index.js +26 -26
  1217. package/lib/reporting/components/charts/Legend/styles.js +6 -5
  1218. package/lib/reporting/components/charts/Legend/theme.js +4 -5
  1219. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -4
  1220. package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -3
  1221. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +31 -32
  1222. package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -3
  1223. package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -3
  1224. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +5 -6
  1225. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +30 -33
  1226. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -11
  1227. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +10 -11
  1228. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +5 -6
  1229. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +6 -8
  1230. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +74 -75
  1231. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +4 -5
  1232. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +6 -7
  1233. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +50 -52
  1234. package/lib/reporting/components/quizAnalysis/styles.js +5 -7
  1235. package/lib/reporting/components/quizAnalysis/theme.js +2 -3
  1236. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +3 -4
  1237. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +20 -20
  1238. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -3
  1239. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +3 -4
  1240. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +26 -26
  1241. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -3
  1242. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  1243. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +24 -20
  1244. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  1245. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +26 -22
  1246. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  1247. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +36 -37
  1248. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +9 -8
  1249. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +3 -4
  1250. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  1251. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +32 -32
  1252. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -3
  1253. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -3
  1254. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +35 -30
  1255. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +27 -23
  1256. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  1257. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +44 -45
  1258. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +6 -5
  1259. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -3
  1260. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +36 -31
  1261. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -9
  1262. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +12 -11
  1263. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  1264. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +37 -33
  1265. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  1266. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +82 -79
  1267. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -3
  1268. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -3
  1269. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  1270. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +56 -53
  1271. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -3
  1272. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -3
  1273. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  1274. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +30 -26
  1275. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +31 -32
  1276. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -3
  1277. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -3
  1278. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +30 -27
  1279. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  1280. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +45 -41
  1281. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  1282. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +28 -26
  1283. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +6 -5
  1284. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -3
  1285. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  1286. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +5 -6
  1287. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +26 -23
  1288. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -3
  1289. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  1290. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +53 -54
  1291. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -3
  1292. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +7 -8
  1293. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  1294. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +62 -61
  1295. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +6 -5
  1296. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +4 -5
  1297. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  1298. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +33 -30
  1299. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -3
  1300. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -3
  1301. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +9 -11
  1302. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +3 -4
  1303. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +33 -33
  1304. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -3
  1305. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -3
  1306. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  1307. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +16 -16
  1308. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -3
  1309. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +3 -4
  1310. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -6
  1311. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +13 -16
  1312. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +71 -71
  1313. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -6
  1314. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
  1315. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +3 -4
  1316. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -12
  1317. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +53 -53
  1318. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -3
  1319. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -3
  1320. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -7
  1321. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +69 -69
  1322. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +7 -7
  1323. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +3 -4
  1324. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +3 -4
  1325. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +33 -32
  1326. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -3
  1327. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +4 -5
  1328. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
  1329. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +42 -45
  1330. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +28 -31
  1331. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -7
  1332. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +95 -95
  1333. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -3
  1334. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -3
  1335. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +14 -16
  1336. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +102 -109
  1337. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -8
  1338. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +28 -28
  1339. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -11
  1340. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -12
  1341. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +72 -74
  1342. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -3
  1343. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -4
  1344. package/lib/reporting/components/resources/ReportCard/index.js +24 -25
  1345. package/lib/reporting/components/resources/ReportCard/styles.js +3 -4
  1346. package/lib/reporting/components/resources/ReportCard/theme.js +2 -3
  1347. package/lib/reporting/components/resources/ReportList/index.js +22 -23
  1348. package/lib/reporting/components/resources/ReportList/styles.js +2 -3
  1349. package/lib/reporting/components/resources/ReportList/theme.js +2 -3
  1350. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +3 -4
  1351. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +66 -65
  1352. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +6 -6
  1353. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -4
  1354. package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +37 -40
  1355. package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +28 -31
  1356. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +12 -13
  1357. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +109 -116
  1358. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +26 -25
  1359. package/lib/reporting/components/resources/common/ExportButton/index.js +6 -7
  1360. package/lib/reporting/components/resources/common/errorCodes.js +11 -18
  1361. package/lib/reporting/components/resources/common/errorMessages.js +18 -26
  1362. package/lib/reporting/components/resources/common/exportReports.js +41 -44
  1363. package/lib/reporting/components/resources/common/generateReports.js +66 -72
  1364. package/lib/reporting/components/resources/common/propTypes.js +141 -143
  1365. package/lib/reporting/components/resources/common/utils.js +7 -9
  1366. package/lib/taking/api/taking.js +80 -60
  1367. package/lib/taking/learnosity/index.js +39 -41
  1368. package/package.json +55 -56
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.EventDetails = void 0;
8
+ var _uiTable = require("@instructure/ui-table");
9
+ var _uiText = require("@instructure/ui-text");
10
+ var _uiButtons = require("@instructure/ui-buttons");
11
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
12
+ var _react = _interopRequireDefault(require("react"));
13
+ var _SessionBreachAlert = require("./SessionBreachAlert");
14
+ var _uiIcons = require("@instructure/ui-icons");
15
+ var _uiTooltip = require("@instructure/ui-tooltip");
16
+ var EventDetails = exports.EventDetails = function EventDetails(_ref) {
17
+ var currentEventData = _ref.currentEventData,
18
+ validationErrors = _ref.validationErrors,
19
+ _ref$answerValue = _ref.answerValue,
20
+ answerValue = _ref$answerValue === void 0 ? null : _ref$answerValue;
21
+ var eventTimeString = "".concat((0, _formatMessage["default"])('Event time'), ": ").concat(currentEventData.eventDate);
22
+ var renderTooltip = function renderTooltip(message) {
23
+ return /*#__PURE__*/_react["default"].createElement(_uiTooltip.Tooltip, {
24
+ renderTip: message,
25
+ placement: "end",
26
+ on: ['click', 'hover', 'focus']
27
+ }, /*#__PURE__*/_react["default"].createElement(_uiButtons.IconButton, {
28
+ screenReaderLabel: message,
29
+ renderIcon: _uiIcons.IconInfoLine,
30
+ withBackground: false,
31
+ withBorder: false
32
+ }));
33
+ };
34
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, validationErrors.isBreach && /*#__PURE__*/_react["default"].createElement(_SessionBreachAlert.SessionBreachAlert, null), /*#__PURE__*/_react["default"].createElement("h4", null, eventTimeString), /*#__PURE__*/_react["default"].createElement(_uiTable.Table, {
35
+ caption: (0, _formatMessage["default"])('System details')
36
+ }, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Head, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.ColHeader, {
37
+ id: "system-details-attribute"
38
+ }, (0, _formatMessage["default"])('Attribute')), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.ColHeader, {
39
+ id: "system-details-value"
40
+ }, (0, _formatMessage["default"])('Value')))), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Body, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, (0, _formatMessage["default"])('Client IP address')), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, /*#__PURE__*/_react["default"].createElement(_uiText.Text, {
41
+ color: validationErrors.ipAddress ? 'danger' : 'primary'
42
+ }, currentEventData.ipAddress), validationErrors.ipAddress && renderTooltip(validationErrors.ipAddress))), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, (0, _formatMessage["default"])('Browser session ID')), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, /*#__PURE__*/_react["default"].createElement(_uiText.Text, {
43
+ color: validationErrors.browserSessionID ? 'danger' : 'primary'
44
+ }, currentEventData.browserSessionID), validationErrors.browserSessionID && renderTooltip(validationErrors.browserSessionID))), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, (0, _formatMessage["default"])('Browser')), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, /*#__PURE__*/_react["default"].createElement(_uiText.Text, {
45
+ color: validationErrors.browserString ? 'danger' : 'primary'
46
+ }, currentEventData.browserString), validationErrors.browserString && renderTooltip(validationErrors.browserString))), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, (0, _formatMessage["default"])('Operating System')), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, /*#__PURE__*/_react["default"].createElement(_uiText.Text, {
47
+ color: validationErrors.userPlatform ? 'danger' : 'primary'
48
+ }, currentEventData.userPlatform), validationErrors.userPlatform && renderTooltip(validationErrors.userPlatform))), answerValue && /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, (0, _formatMessage["default"])('Answer value')), /*#__PURE__*/_react["default"].createElement(_uiTable.Table.Cell, null, answerValue)))));
49
+ };
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
+ exports.mapDispatchToProps = exports["default"] = exports.ModerateTable = void 0;
7
8
  exports.mapStateToProps = mapStateToProps;
8
- exports.default = exports.ModerateTable = exports.mapDispatchToProps = void 0;
9
- var _reactRedux = require("../../../../common/react-redux.js");
9
+ var _reactRedux = require("../../../../common/react-redux");
10
10
  var _quizCommon = require("@instructure/quiz-common");
11
- var _quizSessions = require("../../../api/quizSessions.js");
12
- var _moderation = require("../../../../common/actions/moderation.js");
13
- var _presenter = _interopRequireDefault(require("./presenter.js"));
14
- var _modal = require("../../../../common/actions/modal.js");
15
- var _alerts = require("../../../../common/actions/alerts.js");
16
- var _quizSessions2 = require("../../../../common/selectors/quizSessions.js");
11
+ var _quizSessions = require("../../../api/quizSessions");
12
+ var _moderation = require("../../../../common/actions/moderation");
13
+ var _presenter = _interopRequireDefault(require("./presenter"));
14
+ var _modal = require("../../../../common/actions/modal");
15
+ var _alerts = require("../../../../common/actions/alerts");
16
+ var _quizSessions2 = require("../../../../common/selectors/quizSessions");
17
17
  function mapStateToProps(state, ownProps) {
18
18
  var isFetching = state.getIn(['calls', _quizCommon.QUIZ_SESSIONS_FETCH_CALL, 'requestStatus']) === 'calling';
19
19
  var quiz_ids = ownProps.inProgressData.flatMap(function (user) {
@@ -38,14 +38,11 @@ function mapStateToProps(state, ownProps) {
38
38
  sessionTimeLimitInSeconds: state.getIn(['quizzes', ownProps.quizId, 'sessionTimeLimitInSeconds'])
39
39
  };
40
40
  }
41
- var mapDispatchToProps = {
41
+ var mapDispatchToProps = exports.mapDispatchToProps = {
42
42
  getQuizSessions: _quizSessions.getQuizSessions,
43
43
  openTray: _moderation.openTray,
44
44
  openModal: _modal.openModal,
45
45
  addSuccess: _alerts.addSuccess
46
46
  };
47
- exports.mapDispatchToProps = mapDispatchToProps;
48
- var ModerateTable = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.default);
49
- exports.ModerateTable = ModerateTable;
50
- var _default = ModerateTable;
51
- exports.default = _default;
47
+ var ModerateTable = exports.ModerateTable = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter["default"]);
48
+ var _default = exports["default"] = ModerateTable;
@@ -4,13 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.ModerateTable = void 0;
8
- var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
7
+ exports["default"] = exports.ModerateTable = void 0;
9
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
14
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
15
  var _react = require("react");
15
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
17
  var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
@@ -22,47 +23,46 @@ var _uiButtons = require("@instructure/ui-buttons");
22
23
  var _uiIcons = require("@instructure/ui-icons");
23
24
  var _emotion = require("@instructure/emotion");
24
25
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
25
- var _index = _interopRequireDefault(require("../ModerateTableRow/index.js"));
26
- var _index2 = _interopRequireDefault(require("../../../../common/components/shared/IfFeature/index.js"));
27
- var _index3 = _interopRequireDefault(require("../OutstandingQuizzesModal/index.js"));
28
- var _index4 = _interopRequireDefault(require("../../sidebar/ModerateTray/index.js"));
29
- var _Spinner = _interopRequireDefault(require("../../../../common/components/shared/spinner/Spinner.js"));
30
- var _styles = _interopRequireDefault(require("./styles.js"));
31
- var _theme = _interopRequireDefault(require("./theme.js"));
32
- var _index5 = _interopRequireDefault(require("../../sidebar/ResetQuiz/index.js"));
26
+ var _ModerateTableRow = _interopRequireDefault(require("../ModerateTableRow"));
27
+ var _IfFeature = _interopRequireDefault(require("../../../../common/components/shared/IfFeature"));
28
+ var _OutstandingQuizzesModal = _interopRequireDefault(require("../OutstandingQuizzesModal"));
29
+ var _ModerateTray = _interopRequireDefault(require("../../sidebar/ModerateTray"));
30
+ var _Spinner = _interopRequireDefault(require("../../../../common/components/shared/spinner/Spinner"));
31
+ var _styles = _interopRequireDefault(require("./styles"));
32
+ var _theme = _interopRequireDefault(require("./theme"));
33
+ var _ResetQuiz = _interopRequireDefault(require("../../sidebar/ResetQuiz"));
33
34
  var _quizCommon = require("@instructure/quiz-common");
34
35
  var _lodash = require("lodash");
35
36
  var _dec, _class, _ModerateTable;
36
37
  /** @jsx jsx */
37
- var _ref2 = (0, _emotion.jsx)(_quizCommon.Flex.Item, null, (0, _emotion.jsx)(_uiIcons.IconInfoLine, null));
38
- var _ref4 = (0, _emotion.jsx)(_uiIcons.IconConfigureLine, null);
39
- var _ref5 = (0, _emotion.jsx)(_Spinner.default, null);
40
- var _ref6 = (0, _emotion.jsx)(_index5.default, null);
41
- var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme.default), _dec(_class = (_ModerateTable = /*#__PURE__*/function (_Component) {
42
- (0, _inherits2.default)(ModerateTable, _Component);
43
- var _super = (0, _createSuper2.default)(ModerateTable);
38
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
39
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
40
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
41
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
42
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
43
+ var ModerateTable = exports.ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_ModerateTable = /*#__PURE__*/function (_Component) {
44
44
  function ModerateTable() {
45
45
  var _this;
46
- (0, _classCallCheck2.default)(this, ModerateTable);
46
+ (0, _classCallCheck2["default"])(this, ModerateTable);
47
47
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48
48
  args[_key] = arguments[_key];
49
49
  }
50
- _this = _super.call.apply(_super, [this].concat(args));
51
- _this.state = {
50
+ _this = _callSuper(this, ModerateTable, [].concat(args));
51
+ (0, _defineProperty2["default"])(_this, "state", {
52
52
  displayScoreAsPercentage: true,
53
53
  // To support voiceover when the table changes
54
54
  moderatePanelIterations: 0,
55
55
  selectedStudent: null,
56
56
  // To display the spinner while manually submitted quiz sessions are being graded
57
57
  isWaiting: false
58
- };
59
- _this.fetchData = function () {
58
+ });
59
+ (0, _defineProperty2["default"])(_this, "fetchData", function () {
60
60
  var _this$props = _this.props,
61
61
  getQuizSessions = _this$props.getQuizSessions,
62
62
  quizId = _this$props.quizId,
63
63
  inProgressData = _this$props.inProgressData,
64
64
  tableData = _this$props.tableData;
65
- var quizSessionIds = (0, _toConsumableArray2.default)(new Set([].concat((0, _toConsumableArray2.default)(_this.quizSessionIds(inProgressData)), (0, _toConsumableArray2.default)(_this.quizSessionIds(tableData)))));
65
+ var quizSessionIds = (0, _toConsumableArray2["default"])(new Set([].concat((0, _toConsumableArray2["default"])(_this.quizSessionIds(inProgressData)), (0, _toConsumableArray2["default"])(_this.quizSessionIds(tableData)))));
66
66
 
67
67
  // NOTE: The consumer provided no quizSessionIds. Don't fetch
68
68
  if (!quizSessionIds.length) return;
@@ -71,22 +71,22 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
71
71
  ids: chunkedIds
72
72
  });
73
73
  });
74
- };
75
- _this.onModerateButtonClick = function (data) {
74
+ });
75
+ (0, _defineProperty2["default"])(_this, "onModerateButtonClick", function (data) {
76
76
  _this.setState({
77
77
  selectedStudent: data.id
78
78
  });
79
79
  _this.props.onOpenTray(data);
80
80
  _this.props.openTray(data);
81
- };
82
- _this.onCloseTray = function () {
81
+ });
82
+ (0, _defineProperty2["default"])(_this, "onCloseTray", function () {
83
83
  _this.props.onCloseTray();
84
84
  _this.setState({
85
85
  moderatePanelIterations: _this.state.moderatePanelIterations + 1
86
86
  });
87
- };
88
- _this.sessionsStillAutograding = function (quizzesToSubmit) {
89
- var _iterator = (0, _createForOfIteratorHelper2.default)(_this.props.quizSessionsData),
87
+ });
88
+ (0, _defineProperty2["default"])(_this, "sessionsStillAutograding", function (quizzesToSubmit) {
89
+ var _iterator = _createForOfIteratorHelper(_this.props.quizSessionsData),
90
90
  _step;
91
91
  try {
92
92
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -101,45 +101,46 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
101
101
  _iterator.f();
102
102
  }
103
103
  return false;
104
- };
105
- _this.checkAutogradingStatus = function (submittedQuizSessions) {
104
+ });
105
+ (0, _defineProperty2["default"])(_this, "checkAutogradingStatus", function (submittedQuizSessions) {
106
106
  if (_this.sessionsStillAutograding(submittedQuizSessions)) {
107
107
  _this.pollAutogradingStatus(submittedQuizSessions);
108
108
  } else {
109
109
  _this.setState({
110
110
  isWaiting: false
111
111
  });
112
- _this.props.addSuccess((0, _formatMessage.default)('Manual submission was successful.'));
112
+ _this.props.addSuccess((0, _formatMessage["default"])('Manual submission was successful.'));
113
113
  }
114
- };
115
- _this.pollAutogradingStatus = function (submittedQuizSessions) {
114
+ });
115
+ (0, _defineProperty2["default"])(_this, "pollAutogradingStatus", function (submittedQuizSessions) {
116
116
  _this.fetchData();
117
117
  setTimeout(function () {
118
118
  _this.checkAutogradingStatus(submittedQuizSessions);
119
119
  }, 1000);
120
- };
121
- _this.handleSubmissionAndPoll = function (submittedQuizSessions) {
120
+ });
121
+ (0, _defineProperty2["default"])(_this, "handleSubmissionAndPoll", function (submittedQuizSessions) {
122
122
  _this.setState({
123
123
  isWaiting: true
124
124
  });
125
125
  _this.pollAutogradingStatus(submittedQuizSessions);
126
- };
127
- _this.handleScoreToggle = function () {
126
+ });
127
+ (0, _defineProperty2["default"])(_this, "handleScoreToggle", function () {
128
128
  _this.setState(function (prevState) {
129
129
  return {
130
130
  displayScoreAsPercentage: !prevState.displayScoreAsPercentage
131
131
  };
132
132
  });
133
- };
134
- _this.scoreToggleScreenreaderMessage = function () {
135
- return _this.state.displayScoreAsPercentage ? (0, _formatMessage.default)('Toggle scores to raw points') : (0, _formatMessage.default)('Toggle scores to percentages');
136
- };
137
- _this.openModalOnClick = function () {
133
+ });
134
+ (0, _defineProperty2["default"])(_this, "scoreToggleScreenreaderMessage", function () {
135
+ return _this.state.displayScoreAsPercentage ? (0, _formatMessage["default"])('Toggle scores to raw points') : (0, _formatMessage["default"])('Toggle scores to percentages');
136
+ });
137
+ (0, _defineProperty2["default"])(_this, "openModalOnClick", function () {
138
138
  _this.props.openModal(_quizCommon.OUTSTANDING_QUIZZES_MODAL);
139
- };
139
+ });
140
140
  return _this;
141
141
  }
142
- (0, _createClass2.default)(ModerateTable, [{
142
+ (0, _inherits2["default"])(ModerateTable, _Component);
143
+ return (0, _createClass2["default"])(ModerateTable, [{
143
144
  key: "componentDidMount",
144
145
  value: function componentDidMount() {
145
146
  this.props.makeStyles({
@@ -174,8 +175,8 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
174
175
  selectedStudent: null
175
176
  });
176
177
  }
177
- var quizSessionIds = (0, _toConsumableArray2.default)(new Set([].concat((0, _toConsumableArray2.default)(this.quizSessionIds(this.props.inProgressData)), (0, _toConsumableArray2.default)(this.quizSessionIds(this.props.tableData)))));
178
- var prevQuizSessionIds = (0, _toConsumableArray2.default)(new Set([].concat((0, _toConsumableArray2.default)(this.quizSessionIds(prevProps.inProgressData)), (0, _toConsumableArray2.default)(this.quizSessionIds(prevProps.tableData)))));
178
+ var quizSessionIds = (0, _toConsumableArray2["default"])(new Set([].concat((0, _toConsumableArray2["default"])(this.quizSessionIds(this.props.inProgressData)), (0, _toConsumableArray2["default"])(this.quizSessionIds(this.props.tableData)))));
179
+ var prevQuizSessionIds = (0, _toConsumableArray2["default"])(new Set([].concat((0, _toConsumableArray2["default"])(this.quizSessionIds(prevProps.inProgressData)), (0, _toConsumableArray2["default"])(this.quizSessionIds(prevProps.tableData)))));
179
180
  var skipFetchData = quizSessionIds.every(function (id, index) {
180
181
  return id === prevQuizSessionIds[index];
181
182
  });
@@ -192,10 +193,12 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
192
193
  }
193
194
  }, {
194
195
  key: "renderTableRows",
196
+ value:
195
197
  // =============
196
198
  // RENDERING
197
199
  // =============
198
- value: function renderTableRows() {
200
+
201
+ function renderTableRows() {
199
202
  var _this2 = this;
200
203
  var _this$props4 = this.props,
201
204
  onModerateLogClick = _this$props4.onModerateLogClick,
@@ -203,7 +206,7 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
203
206
  shouldRenderModerateButton = _this$props4.shouldRenderModerateButton;
204
207
  return this.props.tableData.map(function (rowData) {
205
208
  var id = rowData.id;
206
- return (0, _emotion.jsx)(_index.default, {
209
+ return (0, _emotion.jsx)(_ModerateTableRow["default"], {
207
210
  anonymousGrading: _this2.props.anonymousGrading,
208
211
  onResultsLinkClick: onResultsLinkClick,
209
212
  onAccommodationsClick: _this2.props.onAccommodationsClick,
@@ -224,7 +227,7 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
224
227
  if (!this.props.quizSessionsData) {
225
228
  return 0;
226
229
  }
227
- var _iterator2 = (0, _createForOfIteratorHelper2.default)(this.props.quizSessionsData),
230
+ var _iterator2 = _createForOfIteratorHelper(this.props.quizSessionsData),
228
231
  _step2;
229
232
  try {
230
233
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -244,23 +247,23 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
244
247
  key: "renderAlertContent",
245
248
  value: function renderAlertContent(outstandingAttemptsCount) {
246
249
  var _this3 = this;
247
- return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_index2.default, {
250
+ return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_IfFeature["default"], {
248
251
  name: "manual_submission"
249
- }, (0, _emotion.jsx)(_quizCommon.Flex, null, _ref2, (0, _emotion.jsx)(_quizCommon.Flex.Item, {
252
+ }, (0, _emotion.jsx)(_quizCommon.Flex, null, (0, _emotion.jsx)(_quizCommon.Flex.Item, null, (0, _emotion.jsx)(_uiIcons.IconInfoLine, null)), (0, _emotion.jsx)(_quizCommon.Flex.Item, {
250
253
  padding: "xx-small"
251
- }, _formatMessage.default.rich('This assessment has <0>{count, plural, one {# attempt} other {# attempts}}</0> in progress.', {
254
+ }, _formatMessage["default"].rich('This assessment has <0>{count, plural, one {# attempt} other {# attempts}}</0> in progress.', {
252
255
  count: outstandingAttemptsCount,
253
- 0: function _(_ref3) {
254
- var children = _ref3.children;
256
+ 0: function _(_ref2) {
257
+ var children = _ref2.children;
255
258
  return (0, _emotion.jsx)(_uiLink.Link, {
256
259
  key: "0",
257
260
  onClick: _this3.openModalOnClick,
258
261
  "data-automation": "sdk-outstanding-quizzes-modal-open"
259
262
  }, children);
260
263
  }
261
- })))), (0, _emotion.jsx)(_index2.default, {
264
+ })))), (0, _emotion.jsx)(_IfFeature["default"], {
262
265
  name: "manual_submission"
263
- }, (0, _emotion.jsx)(_index3.default, {
266
+ }, (0, _emotion.jsx)(_OutstandingQuizzesModal["default"], {
264
267
  quizSessionsData: this.props.quizSessionsData,
265
268
  quizSessionIdsAndUsers: this.props.quizSessionIdsAndUsers,
266
269
  handleSubmissionAndPoll: this.handleSubmissionAndPoll,
@@ -280,7 +283,7 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
280
283
  screenReaderLabel: this.scoreToggleScreenreaderMessage(),
281
284
  onClick: this.handleScoreToggle,
282
285
  "data-automation": "moderation-table-score-toggle"
283
- }, _ref4));
286
+ }, (0, _emotion.jsx)(_uiIcons.IconConfigureLine, null)));
284
287
  }
285
288
  }, {
286
289
  key: "renderTable",
@@ -289,25 +292,25 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
289
292
  return (0, _emotion.jsx)("div", {
290
293
  className: "fs-mask"
291
294
  }, outstandingAttemptsCount ? this.renderAlertContent(outstandingAttemptsCount) : null, (0, _emotion.jsx)(_uiTable.Table, {
292
- caption: (0, _formatMessage.default)('Moderation Table')
295
+ caption: (0, _formatMessage["default"])('Moderation Table')
293
296
  }, (0, _emotion.jsx)(_uiTable.Table.Head, null, (0, _emotion.jsx)(_uiTable.Table.Row, null, (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
294
297
  id: "moderation-table-student"
295
- }, (0, _formatMessage.default)('Student')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
298
+ }, (0, _formatMessage["default"])('Student')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
296
299
  id: "moderation-table-attempts"
297
- }, (0, _formatMessage.default)('Attempts')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
300
+ }, (0, _formatMessage["default"])('Attempts')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
298
301
  id: "moderation-table-score"
299
- }, (0, _formatMessage.default)('Score'), this.renderScoreToggle()), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
302
+ }, (0, _formatMessage["default"])('Score'), this.renderScoreToggle()), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
300
303
  id: "moderation-table-time"
301
- }, (0, _formatMessage.default)('Time')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
304
+ }, (0, _formatMessage["default"])('Time')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
302
305
  id: "moderation-table-log"
303
- }, (0, _formatMessage.default)('Log')), this.props.onAccommodationsClick && !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
306
+ }, (0, _formatMessage["default"])('Log')), this.props.onAccommodationsClick && !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
304
307
  id: "moderation-table-accommodations"
305
- }, (0, _formatMessage.default)({
306
- default: 'Accommodations',
308
+ }, (0, _formatMessage["default"])({
309
+ "default": 'Accommodations',
307
310
  description: 'Support for students with who need extra time or attempts.'
308
311
  })), this.props.shouldRenderModerateButton && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
309
312
  id: "moderation-table-moderate"
310
- }, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Moderate'))))), (0, _emotion.jsx)(_uiTable.Table.Body, null, this.renderTableRows())));
313
+ }, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('Moderate'))))), (0, _emotion.jsx)(_uiTable.Table.Body, null, this.renderTableRows())));
311
314
  }
312
315
  }, {
313
316
  key: "renderContent",
@@ -316,7 +319,7 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
316
319
  isFetching = _this$props5.isFetching,
317
320
  tableData = _this$props5.tableData,
318
321
  emptyMessage = _this$props5.emptyMessage;
319
- if (isFetching || this.state.isWaiting) return _ref5;
322
+ if (isFetching || this.state.isWaiting) return (0, _emotion.jsx)(_Spinner["default"], null);
320
323
  if (tableData.length) return this.renderTable();
321
324
  return (0, _emotion.jsx)("span", {
322
325
  css: this.props.styles.emptyText
@@ -329,70 +332,68 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
329
332
  value: function render() {
330
333
  return (0, _emotion.jsx)("div", {
331
334
  css: this.props.styles.page
332
- }, (0, _emotion.jsx)(_index4.default, {
335
+ }, (0, _emotion.jsx)(_ModerateTray["default"], {
333
336
  onClose: this.onCloseTray,
334
337
  onSave: this.props.onSaveTray,
335
338
  atteqApplyChangesToCurrentQuizAttemptsEnabled: this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled
336
- }, (0, _emotion.jsx)(_quizCommon.Flex.Item, null, !this.props.anonymousGrading && _ref6), this.props.children), this.renderContent());
339
+ }, (0, _emotion.jsx)(_quizCommon.Flex.Item, null, !this.props.anonymousGrading && (0, _emotion.jsx)(_ResetQuiz["default"], null)), this.props.children), this.renderContent());
337
340
  }
338
341
  }]);
339
- ModerateTable.displayName = "ModerateTable";
340
- return ModerateTable;
341
- }(_react.Component), _ModerateTable.displayName = 'ModerateTable', _ModerateTable.componentId = "Quizzes".concat(_ModerateTable.displayName), _ModerateTable.propTypes = {
342
- anonymousGrading: _propTypes.default.bool,
343
- children: _propTypes.default.node,
344
- emptyMessage: _propTypes.default.string,
345
- isFetching: _propTypes.default.bool.isRequired,
346
- onCloseTray: _propTypes.default.func,
347
- onModerateLogClick: _propTypes.default.func.isRequired,
348
- onAccommodationsClick: _propTypes.default.func,
349
- onOpenTray: _propTypes.default.func,
350
- onResultsLinkClick: _propTypes.default.func,
351
- openTray: _propTypes.default.func.isRequired,
352
- onSaveTray: _propTypes.default.func.isRequired,
353
- sessionTimeLimitInSeconds: _propTypes.default.number,
354
- hasSessionTimeLimit: _propTypes.default.bool,
355
- sendSessionTimeLimit: _propTypes.default.func,
356
- shouldRenderModerateButton: _propTypes.default.bool,
357
- openModal: _propTypes.default.func.isRequired,
358
- quizSessionIdsAndUsers: _propTypes.default.arrayOf(_propTypes.default.shape({
359
- id: _propTypes.default.string,
360
- name: _propTypes.default.string
342
+ }(_react.Component), (0, _defineProperty2["default"])(_ModerateTable, "displayName", 'ModerateTable'), (0, _defineProperty2["default"])(_ModerateTable, "componentId", "Quizzes".concat(_ModerateTable.displayName)), (0, _defineProperty2["default"])(_ModerateTable, "propTypes", {
343
+ anonymousGrading: _propTypes["default"].bool,
344
+ children: _propTypes["default"].node,
345
+ emptyMessage: _propTypes["default"].string,
346
+ isFetching: _propTypes["default"].bool.isRequired,
347
+ onCloseTray: _propTypes["default"].func,
348
+ onModerateLogClick: _propTypes["default"].func.isRequired,
349
+ onAccommodationsClick: _propTypes["default"].func,
350
+ onOpenTray: _propTypes["default"].func,
351
+ onResultsLinkClick: _propTypes["default"].func,
352
+ openTray: _propTypes["default"].func.isRequired,
353
+ onSaveTray: _propTypes["default"].func.isRequired,
354
+ sessionTimeLimitInSeconds: _propTypes["default"].number,
355
+ hasSessionTimeLimit: _propTypes["default"].bool,
356
+ sendSessionTimeLimit: _propTypes["default"].func,
357
+ shouldRenderModerateButton: _propTypes["default"].bool,
358
+ openModal: _propTypes["default"].func.isRequired,
359
+ quizSessionIdsAndUsers: _propTypes["default"].arrayOf(_propTypes["default"].shape({
360
+ id: _propTypes["default"].string,
361
+ name: _propTypes["default"].string
361
362
  })),
362
- quizSessionsData: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.record).isRequired,
363
- afterManualSubmit: _propTypes.default.func,
364
- inProgressData: _propTypes.default.arrayOf(_propTypes.default.shape({
365
- avatar: _propTypes.default.string,
366
- id: _propTypes.default.string.isRequired,
367
- name: _propTypes.default.string.isRequired,
368
- quizSessionIds: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
369
- maxAttempts: _propTypes.default.number,
370
- accommodations: _propTypes.default.arrayOf(_propTypes.default.shape({
371
- name: _propTypes.default.string.isRequired,
372
- value: _propTypes.default.string.isRequired
363
+ quizSessionsData: _reactImmutableProptypes["default"].listOf(_reactImmutableProptypes["default"].record).isRequired,
364
+ afterManualSubmit: _propTypes["default"].func,
365
+ inProgressData: _propTypes["default"].arrayOf(_propTypes["default"].shape({
366
+ avatar: _propTypes["default"].string,
367
+ id: _propTypes["default"].string.isRequired,
368
+ name: _propTypes["default"].string.isRequired,
369
+ quizSessionIds: _propTypes["default"].arrayOf(_propTypes["default"].string).isRequired,
370
+ maxAttempts: _propTypes["default"].number,
371
+ accommodations: _propTypes["default"].arrayOf(_propTypes["default"].shape({
372
+ name: _propTypes["default"].string.isRequired,
373
+ value: _propTypes["default"].string.isRequired
373
374
  }))
374
375
  })).isRequired,
375
- tableData: _propTypes.default.arrayOf(_propTypes.default.shape({
376
- avatar: _propTypes.default.string,
377
- id: _propTypes.default.string.isRequired,
378
- name: _propTypes.default.string.isRequired,
379
- quizSessionIds: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
380
- maxAttempts: _propTypes.default.number,
381
- accommodations: _propTypes.default.arrayOf(_propTypes.default.shape({
382
- name: _propTypes.default.string.isRequired,
383
- value: _propTypes.default.string.isRequired
376
+ tableData: _propTypes["default"].arrayOf(_propTypes["default"].shape({
377
+ avatar: _propTypes["default"].string,
378
+ id: _propTypes["default"].string.isRequired,
379
+ name: _propTypes["default"].string.isRequired,
380
+ quizSessionIds: _propTypes["default"].arrayOf(_propTypes["default"].string).isRequired,
381
+ maxAttempts: _propTypes["default"].number,
382
+ accommodations: _propTypes["default"].arrayOf(_propTypes["default"].shape({
383
+ name: _propTypes["default"].string.isRequired,
384
+ value: _propTypes["default"].string.isRequired
384
385
  }))
385
386
  })).isRequired,
386
- quizId: _propTypes.default.string.isRequired,
387
- getQuizSessions: _propTypes.default.func.isRequired,
388
- addSuccess: _propTypes.default.func.isRequired,
389
- styles: _propTypes.default.object,
390
- makeStyles: _propTypes.default.func,
391
- atteqApplyChangesToCurrentQuizAttemptsEnabled: _propTypes.default.bool.isRequired
392
- }, _ModerateTable.defaultProps = {
387
+ quizId: _propTypes["default"].string.isRequired,
388
+ getQuizSessions: _propTypes["default"].func.isRequired,
389
+ addSuccess: _propTypes["default"].func.isRequired,
390
+ styles: _propTypes["default"].object,
391
+ makeStyles: _propTypes["default"].func,
392
+ atteqApplyChangesToCurrentQuizAttemptsEnabled: _propTypes["default"].bool.isRequired
393
+ }), (0, _defineProperty2["default"])(_ModerateTable, "defaultProps", {
393
394
  anonymousGrading: false,
394
395
  children: void 0,
395
- emptyMessage: (0, _formatMessage.default)('There is no moderation information to display yet.'),
396
+ emptyMessage: (0, _formatMessage["default"])('There is no moderation information to display yet.'),
396
397
  onCloseTray: Function.prototype,
397
398
  onOpenTray: Function.prototype,
398
399
  sendSessionTimeLimit: Function.prototype,
@@ -404,7 +405,5 @@ var ModerateTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
404
405
  onResultsLinkClick: void 0,
405
406
  quizSessionIdsAndUsers: [],
406
407
  afterManualSubmit: Function.prototype
407
- }, _ModerateTable)) || _class);
408
- exports.ModerateTable = ModerateTable;
409
- var _default = ModerateTable;
410
- exports.default = _default;
408
+ }), _ModerateTable)) || _class);
409
+ var _default = exports["default"] = ModerateTable;
@@ -4,8 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
7
+ exports["default"] = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
11
  var generateStyle = function generateStyle(componentTheme, props, state) {
10
12
  return {
11
13
  emptyText: {
@@ -17,7 +19,7 @@ var generateStyle = function generateStyle(componentTheme, props, state) {
17
19
  flex: '1',
18
20
  backgroundColor: componentTheme.pageBackgroundColor
19
21
  },
20
- scoreToggleWrapper: (0, _objectSpread2.default)({
22
+ scoreToggleWrapper: _objectSpread({
21
23
  display: 'inline-block',
22
24
  transition: 'transform 0.3s'
23
25
  }, !state.displayScoreAsPercentage && {
@@ -25,5 +27,4 @@ var generateStyle = function generateStyle(componentTheme, props, state) {
25
27
  })
26
28
  };
27
29
  };
28
- var _default = generateStyle;
29
- exports.default = _default;
30
+ var _default = exports["default"] = generateStyle;
@@ -3,14 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateComponentTheme = function generateComponentTheme(_ref) {
8
8
  var spacing = _ref.spacing,
9
9
  colors = _ref.colors;
10
10
  return {
11
11
  emptyTextMargin: spacing.small,
12
- pageBackgroundColor: colors.contrasts.white1010
12
+ pageBackgroundColor: colors.white
13
13
  };
14
14
  };
15
- var _default = generateComponentTheme;
16
- exports.default = _default;
15
+ var _default = exports["default"] = generateComponentTheme;