@instructure/quiz-core 21.0.1-rc.11 → 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 (1301) 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/BankEntriesList/index.js +3 -3
  14. package/es/banks/components/BankEntriesList/presenter.js +17 -16
  15. package/es/banks/components/BankEntry/index.js +14 -14
  16. package/es/banks/components/BankEntry/presenter.js +170 -178
  17. package/es/banks/components/BankEntry/styles.js +3 -1
  18. package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -2
  19. package/es/banks/components/BankEntryRow/index.js +9 -9
  20. package/es/banks/components/BankEntryRow/presenter.js +42 -42
  21. package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
  22. package/es/banks/components/BankSearch/index.js +4 -4
  23. package/es/banks/components/BankSearch/presenter.js +21 -20
  24. package/es/banks/components/Banks/index.js +7 -7
  25. package/es/banks/components/Banks/presenter.js +62 -61
  26. package/es/banks/components/BanksList/index.js +7 -7
  27. package/es/banks/components/BanksList/presenter.js +104 -111
  28. package/es/banks/components/CopyMoveBankEntryModal/index.js +8 -8
  29. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +42 -43
  30. package/es/banks/components/CreateBankModal/index.js +10 -10
  31. package/es/banks/components/CreateBankModal/presenter.js +30 -29
  32. package/es/banks/components/EditBankModal/index.js +7 -7
  33. package/es/banks/components/EditBankModal/presenter.js +26 -25
  34. package/es/banks/components/HeaderBreadCrumb/index.js +14 -13
  35. package/es/banks/components/HeaderMenu/index.js +4 -4
  36. package/es/banks/components/HeaderMenu/presenter.js +17 -17
  37. package/es/banks/components/NavWrapper/index.js +2 -2
  38. package/es/banks/components/NavWrapper/presenter.js +21 -20
  39. package/es/banks/components/NavWrapper/styles.js +4 -2
  40. package/es/banks/components/SharingModal/ContextualIconButton/index.js +16 -14
  41. package/es/banks/components/SharingModal/RootAccountSharing.js +20 -20
  42. package/es/banks/components/SharingModal/ShareList/index.js +23 -23
  43. package/es/banks/components/SharingModal/index.js +5 -5
  44. package/es/banks/components/SharingModal/presenter.js +92 -93
  45. package/es/building/api/items.js +68 -72
  46. package/es/building/api/qtiImports.js +13 -12
  47. package/es/building/api/quizEntries.js +46 -46
  48. package/es/building/api/quizzes.js +10 -10
  49. package/es/building/api/stimuli.js +4 -4
  50. package/es/building/components/QTIImportModal/index.js +4 -4
  51. package/es/building/components/layout/Sidebar/Sidebar.examples.js +22 -20
  52. package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
  53. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -16
  54. package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -11
  55. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +17 -16
  56. package/es/building/components/layout/Sidebar/index.js +12 -12
  57. package/es/building/components/layout/Sidebar/presenter.js +28 -27
  58. package/es/building/components/layout/Sidebar/styles.js +3 -1
  59. package/es/building/components/layout/header/BuildingButtons/index.js +9 -9
  60. package/es/building/components/layout/header/BuildingButtons/presenter.js +23 -23
  61. package/es/building/components/layout/header/BuildingButtons/styles.js +3 -1
  62. package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
  63. package/es/building/components/resources/ActionButtons/index.js +4 -4
  64. package/es/building/components/resources/ActionButtons/presenter.js +25 -24
  65. package/es/building/components/resources/ActionButtons/styles.js +2 -1
  66. package/es/building/components/resources/AddToBankOptions/index.js +42 -43
  67. package/es/building/components/resources/BanksTray/index.js +3 -3
  68. package/es/building/components/resources/BanksTray/presenter.js +25 -26
  69. package/es/building/components/resources/DeleteStimulusModal/index.js +5 -5
  70. package/es/building/components/resources/DeleteStimulusModal/presenter.js +27 -27
  71. package/es/building/components/resources/ItemFeedbackModal/index.js +8 -8
  72. package/es/building/components/resources/ItemFeedbackModal/presenter.js +22 -22
  73. package/es/building/components/resources/MoveImmutableModal/index.js +6 -6
  74. package/es/building/components/resources/MoveImmutableModal/presenter.js +16 -15
  75. package/es/building/components/resources/quiz/editButton/EditButton.js +17 -16
  76. package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -2
  77. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +24 -16
  78. package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
  79. package/es/building/components/resources/quiz/instructions/Instructions/index.js +7 -7
  80. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +33 -28
  81. package/es/building/components/resources/quiz/instructions/Show/index.js +17 -16
  82. package/es/building/components/resources/quiz/title/Edit/index.js +27 -25
  83. package/es/building/components/resources/quiz/title/Edit/styles.js +3 -1
  84. package/es/building/components/resources/quiz/title/Show/index.js +17 -16
  85. package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
  86. package/es/building/components/resources/quiz/title/Title/index.js +8 -8
  87. package/es/building/components/resources/quiz/title/Title/presenter.js +34 -29
  88. package/es/building/components/resources/quiz/title/Title/styles.js +2 -1
  89. package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -14
  90. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +48 -46
  91. package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +7 -7
  92. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
  93. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +42 -43
  94. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +15 -15
  95. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -3
  96. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +25 -24
  97. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -1
  98. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +82 -84
  99. package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -11
  100. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +107 -110
  101. package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -8
  102. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +29 -29
  103. package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
  104. package/es/common/actions/alerts.js +1 -1
  105. package/es/common/actions/editing.js +1 -1
  106. package/es/common/actions/modal.js +2 -2
  107. package/es/common/actions/modifications.js +7 -7
  108. package/es/common/actions/quizSessions.js +9 -9
  109. package/es/common/actions/scrolling.js +1 -1
  110. package/es/common/actions/taking.js +2 -2
  111. package/es/common/api/callHandlers.js +9 -4
  112. package/es/common/api/features.js +3 -3
  113. package/es/common/api/fileUpload.js +1 -1
  114. package/es/common/api/getPersistenceActions.js +21 -18
  115. package/es/common/api/helpers.js +66 -70
  116. package/es/common/api/interactionTypes.js +2 -2
  117. package/es/common/api/quizSessions.js +28 -28
  118. package/es/common/api/quizzes.js +8 -5
  119. package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +4 -5
  120. package/es/common/components/AccessCodeTextInput/index.js +13 -12
  121. package/es/common/components/ApiFeatureFlagInitializer/index.js +7 -8
  122. package/es/common/components/ConfirmationModal/index.js +6 -4
  123. package/es/common/components/ConfirmationModal/presenter.js +20 -19
  124. package/es/common/components/ImportModal/ImportFileSelector/index.js +23 -24
  125. package/es/common/components/ImportModal/index.js +8 -8
  126. package/es/common/components/ImportModal/presenter.js +32 -30
  127. package/es/common/components/LearnosityCalculator/index.js +46 -47
  128. package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +1 -1
  129. package/es/common/components/MaskedTextInput/index.js +13 -11
  130. package/es/common/components/Pin/index.js +1 -1
  131. package/es/common/components/Pin/presenter.js +12 -11
  132. package/es/common/components/PreviewFrame/examples.config.js +1 -2
  133. package/es/common/components/PreviewFrame/index.js +13 -13
  134. package/es/common/components/PrintFontSizeModal/index.js +1 -1
  135. package/es/common/components/PrintFontSizeModal/presenter.js +28 -25
  136. package/es/common/components/RceConfigProvider/index.js +6 -6
  137. package/es/common/components/RceConfigProvider/presenter.js +74 -77
  138. package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -5
  139. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +24 -26
  140. package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -5
  141. package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
  142. package/es/common/components/SDKApp/index.js +29 -29
  143. package/es/common/components/SDKHeaderCalculator.js +3 -3
  144. package/es/common/components/SDKMenuButton.js +3 -3
  145. package/es/common/components/SDKNavBar.js +3 -3
  146. package/es/common/components/SDKTimer.js +3 -3
  147. package/es/common/components/alerts/index.js +4 -4
  148. package/es/common/components/alerts/presenter.js +15 -14
  149. package/es/common/components/layout/Page/index.js +13 -12
  150. package/es/common/components/layout/Page/styles.js +2 -1
  151. package/es/common/components/layout/header/Calculator/index.js +7 -7
  152. package/es/common/components/layout/header/Calculator/presenter.js +14 -14
  153. package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
  154. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +15 -16
  155. package/es/common/components/layout/header/Timer/index.js +6 -6
  156. package/es/common/components/layout/header/Timer/presenter.js +27 -28
  157. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +12 -11
  158. package/es/common/components/layout/navbar/index.js +31 -30
  159. package/es/common/components/layout/navbar/styles.js +4 -2
  160. package/es/common/components/layout/sidebar/PositionSummary/index.js +14 -12
  161. package/es/common/components/layout/sidebar/Sidebar/Pin.js +12 -11
  162. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +5 -7
  163. package/es/common/components/layout/sidebar/Sidebar/index.js +44 -44
  164. package/es/common/components/layout/sidebar/Sidebar/styles.js +7 -7
  165. package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
  166. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -17
  167. package/es/common/components/layout/sidebar/SidebarItem/styles.js +3 -1
  168. package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
  169. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +24 -21
  170. package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +4 -2
  171. package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
  172. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +21 -18
  173. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +15 -12
  174. package/es/common/components/layout/sidebar/Stimulus/index.js +3 -3
  175. package/es/common/components/layout/sidebar/Stimulus/presenter.js +21 -21
  176. package/es/common/components/resources/BankSelection/index.js +5 -5
  177. package/es/common/components/resources/BankSelection/presenter.js +19 -18
  178. package/es/common/components/resources/WarningWrapper/index.js +16 -15
  179. package/es/common/components/resources/entry/EntrySave/index.js +6 -6
  180. package/es/common/components/resources/entry/EntrySave/presenter.js +78 -81
  181. package/es/common/components/resources/item/ItemEdit/index.js +14 -14
  182. package/es/common/components/resources/item/ItemEdit/presenter.js +24 -23
  183. package/es/common/components/resources/item/ItemOverride/index.js +9 -9
  184. package/es/common/components/resources/item/ItemOverride/presenter.js +18 -16
  185. package/es/common/components/resources/item/ItemShow/index.js +15 -14
  186. package/es/common/components/resources/positionBox/PositionBox.js +13 -12
  187. package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -7
  188. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +25 -25
  189. package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -5
  190. package/es/common/components/resources/quiz/AddContent/Button/index.js +15 -14
  191. package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
  192. package/es/common/components/resources/quiz/AddContent/Modal/index.js +3 -3
  193. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +13 -12
  194. package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -5
  195. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +28 -27
  196. package/es/common/components/resources/quiz/info/QuizInfo.js +14 -13
  197. package/es/common/components/resources/quiz/instructions/Instructions.js +16 -12
  198. package/es/common/components/resources/quiz/title/Title.js +16 -12
  199. package/es/common/components/resources/quizSessionResult/Header/index.js +15 -14
  200. package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
  201. package/es/common/components/resources/quizSessionResult/Info/index.js +110 -107
  202. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +12 -11
  203. package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -1
  204. package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -4
  205. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +64 -63
  206. package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +3 -1
  207. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +21 -20
  208. package/es/common/components/resources/stimulus/Stimulus/index.js +5 -5
  209. package/es/common/components/resources/stimulus/Stimulus/presenter.js +22 -21
  210. package/es/common/components/resources/stimulus/Stimulus/styles.js +2 -1
  211. package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -10
  212. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +128 -131
  213. package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +5 -5
  214. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +27 -28
  215. package/es/common/components/resources/stimulus/StimulusShow/index.js +19 -19
  216. package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
  217. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +10 -9
  218. package/es/common/components/shared/Card/CardContent/index.js +15 -13
  219. package/es/common/components/shared/Card/CardWrapper/index.js +15 -13
  220. package/es/common/components/shared/Card/index.js +4 -3
  221. package/es/common/components/shared/ExpandButton/index.js +12 -11
  222. package/es/common/components/shared/ExpandButton/styles.js +3 -1
  223. package/es/common/components/shared/FormattedDuration/index.js +18 -16
  224. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +38 -37
  225. package/es/common/components/shared/IfFeature/index.js +3 -3
  226. package/es/common/components/shared/IfFeature/presenter.js +12 -11
  227. package/es/common/components/shared/InteractionTypes/index.js +3 -3
  228. package/es/common/components/shared/InteractionTypes/presenter.js +20 -19
  229. package/es/common/components/shared/PaginatedCollection/index.js +3 -3
  230. package/es/common/components/shared/PaginatedCollection/presenter.js +45 -46
  231. package/es/common/components/shared/Paginator/index.js +12 -11
  232. package/es/common/components/shared/PrintTrigger/index.js +6 -6
  233. package/es/common/components/shared/PrintTrigger/presenter.js +26 -25
  234. package/es/common/components/shared/TagDisplay/index.js +12 -11
  235. package/es/common/components/shared/TagDisplay/styles.js +1 -1
  236. package/es/common/components/shared/TagSelect/index.js +1 -1
  237. package/es/common/components/shared/TagSelect/presenter.js +35 -33
  238. package/es/common/components/shared/TagSuggestSelect/index.js +4 -4
  239. package/es/common/components/shared/TagSuggestSelect/presenter.js +17 -16
  240. package/es/common/components/shared/TagWrapper/index.js +1 -1
  241. package/es/common/components/shared/TagWrapper/presenter.js +14 -13
  242. package/es/common/components/shared/TimeUnitsInput/index.js +30 -29
  243. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +15 -14
  244. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +3 -1
  245. package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
  246. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +32 -35
  247. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +4 -4
  248. package/es/common/components/shared/errors/Errors.js +15 -14
  249. package/es/common/components/shared/file_selector/FileSelector.js +14 -14
  250. package/es/common/components/shared/functionality/componentWithOutsideClick.js +21 -15
  251. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +10 -11
  252. package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -2
  253. package/es/common/components/shared/functionality/makeEditable.js +26 -19
  254. package/es/common/components/shared/functionality/makeScrollable.js +30 -29
  255. package/es/common/components/shared/overlay/index.js +13 -12
  256. package/es/common/components/shared/return_button/ReturnButton.js +14 -12
  257. package/es/common/components/shared/spinner/Spinner.js +13 -11
  258. package/es/common/kinesis/QuizEventsLogger.js +37 -40
  259. package/es/common/kinesis/StreamQueue.js +7 -4
  260. package/es/common/kinesis/client.js +3 -3
  261. package/es/common/kinesis/config.js +1 -1
  262. package/es/common/kinesis/eventTypes.js +1 -1
  263. package/es/common/middleware/alertTimerMiddleware.js +2 -2
  264. package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -1
  265. package/es/common/middleware/eventLoggerMiddleware.js +8 -5
  266. package/es/common/middleware/persistedStorageMiddleware.js +5 -3
  267. package/es/common/middleware/quizTimerWebSocketMiddleware.js +7 -7
  268. package/es/common/react-redux.js +1 -1
  269. package/es/common/records/Alert.js +8 -5
  270. package/es/common/records/Bank.js +10 -8
  271. package/es/common/records/BankEntry.js +10 -9
  272. package/es/common/records/Item.js +17 -14
  273. package/es/common/records/ItemAnalysis.js +9 -8
  274. package/es/common/records/QtiImport.js +8 -7
  275. package/es/common/records/Quiz.js +17 -14
  276. package/es/common/records/QuizAnalysis.js +8 -7
  277. package/es/common/records/QuizEntry.js +105 -103
  278. package/es/common/records/QuizSession.js +26 -20
  279. package/es/common/records/QuizSessionEvent.js +9 -8
  280. package/es/common/records/QuizSessionResult.js +9 -8
  281. package/es/common/records/Response.js +9 -8
  282. package/es/common/records/SessionItem.js +12 -11
  283. package/es/common/records/SessionItemResult.js +9 -8
  284. package/es/common/records/Stimulus.js +13 -12
  285. package/es/common/records/baseRecord.js +17 -12
  286. package/es/common/records/index.js +16 -16
  287. package/es/common/records/reduxRecord.js +12 -9
  288. package/es/common/reducers/alerts.js +3 -3
  289. package/es/common/reducers/analyses.js +3 -3
  290. package/es/common/reducers/bankEntries.js +2 -2
  291. package/es/common/reducers/bankSearch.js +2 -2
  292. package/es/common/reducers/banks.js +2 -2
  293. package/es/common/reducers/calls.js +2 -2
  294. package/es/common/reducers/config.js +2 -2
  295. package/es/common/reducers/dragAndDrop.js +2 -2
  296. package/es/common/reducers/editing.js +3 -4
  297. package/es/common/reducers/errorsShowing.js +2 -2
  298. package/es/common/reducers/features.js +2 -2
  299. package/es/common/reducers/grading.js +2 -2
  300. package/es/common/reducers/interactionTypes.js +2 -2
  301. package/es/common/reducers/items.js +2 -2
  302. package/es/common/reducers/modal.js +2 -2
  303. package/es/common/reducers/moderation.js +2 -2
  304. package/es/common/reducers/modifications.js +9 -8
  305. package/es/common/reducers/outcomes.js +2 -2
  306. package/es/common/reducers/printing.js +2 -2
  307. package/es/common/reducers/qtiImports.js +2 -2
  308. package/es/common/reducers/quizEntries.js +5 -5
  309. package/es/common/reducers/quizExport.js +2 -2
  310. package/es/common/reducers/quizSessionEvents.js +5 -3
  311. package/es/common/reducers/quizSessionResults.js +2 -2
  312. package/es/common/reducers/quizSessions.js +2 -2
  313. package/es/common/reducers/quizzes.js +2 -2
  314. package/es/common/reducers/rce.js +2 -2
  315. package/es/common/reducers/regrading.js +2 -2
  316. package/es/common/reducers/reporting.js +2 -2
  317. package/es/common/reducers/scrolling.js +2 -2
  318. package/es/common/reducers/sessionItemResults.js +2 -2
  319. package/es/common/reducers/sessionItems.js +2 -2
  320. package/es/common/reducers/sharedBanks.js +2 -2
  321. package/es/common/reducers/sidebar.js +2 -2
  322. package/es/common/reducers/stimuli.js +2 -2
  323. package/es/common/reducers/tagAssociations.js +2 -2
  324. package/es/common/reducers/taking.js +2 -2
  325. package/es/common/reducers/ui.js +3 -3
  326. package/es/common/reducers/upload.js +4 -4
  327. package/es/common/selectors/calculator.js +5 -3
  328. package/es/common/selectors/interactionTypes.js +7 -7
  329. package/es/common/selectors/items.js +1 -1
  330. package/es/common/selectors/qtiImports.js +1 -1
  331. package/es/common/selectors/quizSessionResults.js +2 -2
  332. package/es/common/selectors/quizSessions.js +2 -2
  333. package/es/common/selectors/quizzes.js +9 -9
  334. package/es/common/selectors/reporting.js +2 -2
  335. package/es/common/selectors/sessionItemResults.js +4 -5
  336. package/es/common/selectors/sessionItems.js +4 -5
  337. package/es/common/selectors/taking.js +2 -2
  338. package/es/common/util/ExhaustivePaginatedFetcher.js +53 -49
  339. package/es/common/util/Fetcher.js +128 -141
  340. package/es/common/util/MultiWeakMap.js +1 -2
  341. package/es/common/util/PaginatedFetcher.js +22 -22
  342. package/es/common/util/ThunkQueue.js +50 -51
  343. package/es/common/util/TimeRecordingService.js +5 -5
  344. package/es/common/util/TimerService.js +7 -7
  345. package/es/common/util/clickHandlers.js +1 -1
  346. package/es/common/util/crossDomainMessaging.js +1 -1
  347. package/es/common/util/debounceLatestPromise.js +1 -1
  348. package/es/common/util/featureCheck.js +5 -3
  349. package/es/common/util/formatTimespan.js +2 -2
  350. package/es/common/util/generateDisplayPositions.js +1 -1
  351. package/es/common/util/getClientIpAddress.js +21 -23
  352. package/es/common/util/immutableHelpers.js +4 -3
  353. package/es/common/util/interactionTypePropsHelper.js +1 -1
  354. package/es/common/util/jsonify.js +4 -2
  355. package/es/common/util/persistedState.js +4 -4
  356. package/es/common/util/printUtils.js +1 -1
  357. package/es/common/util/rceChecker.js +9 -11
  358. package/es/common/util/renderAlerts.js +11 -10
  359. package/es/common/util/serializeEvent.js +2 -2
  360. package/es/common/util/sessionStore.js +1 -2
  361. package/es/common/util/warningHelpers.js +2 -2
  362. package/es/common/util/windowChecks.js +2 -2
  363. package/es/common/util/withCachedArguments.js +3 -1
  364. package/es/common/util/withDynamoPagination.js +51 -52
  365. package/es/common/util/withStateCache.js +3 -1
  366. package/es/configureStore.js +45 -43
  367. package/es/grading/api/quizEntryRegrades.js +4 -4
  368. package/es/grading/api/updateResults.js +6 -6
  369. package/es/index.js +148 -140
  370. package/es/messages/LocalStorageAdapter.js +15 -13
  371. package/es/messages/LocalStorageLimits.js +22 -20
  372. package/es/messages/StorageExhaustionError.js +8 -5
  373. package/es/messages/postMessageService.js +34 -31
  374. package/es/messages/subjectHandlers/lti.frameResize.js +2 -2
  375. package/es/messages/subjectHandlers/lti.get_data.js +1 -1
  376. package/es/messages/subjectHandlers/lti.put_data.js +2 -2
  377. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +3 -3
  378. package/es/moderating/api/quizSessionEvents.js +3 -3
  379. package/es/moderating/api/quizSessions.js +3 -3
  380. package/es/moderating/components/events/Event.js +25 -26
  381. package/es/moderating/components/events/PageBlurredEvent.js +7 -7
  382. package/es/moderating/components/events/PageFocusedEvent.js +7 -7
  383. package/es/moderating/components/events/RCEEvent.js +10 -9
  384. package/es/moderating/components/events/ResponseEvent.js +20 -19
  385. package/es/moderating/components/events/SessionStartEvent.js +12 -11
  386. package/es/moderating/components/events/SessionSubmitEvent.js +12 -11
  387. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +19 -18
  388. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +23 -22
  389. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +19 -18
  390. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +23 -21
  391. package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +18 -16
  392. package/es/moderating/components/resources/AccommodationsModal/index.js +26 -25
  393. package/es/moderating/components/resources/ElapsedTime.js +14 -13
  394. package/es/moderating/components/resources/EventDetails.js +2 -3
  395. package/es/moderating/components/resources/ModerateTable/index.js +7 -7
  396. package/es/moderating/components/resources/ModerateTable/presenter.js +54 -53
  397. package/es/moderating/components/resources/ModerateTable/styles.js +3 -1
  398. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -2
  399. package/es/moderating/components/resources/ModerateTableRow/index.js +3 -3
  400. package/es/moderating/components/resources/ModerateTableRow/presenter.js +29 -27
  401. package/es/moderating/components/resources/ModerateTableRow/story.js +4 -1
  402. package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -1
  403. package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
  404. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +29 -26
  405. package/es/moderating/components/resources/RetryGradePassbackButton/index.js +3 -3
  406. package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +40 -42
  407. package/es/moderating/components/resources/SessionBreachAlert.js +1 -2
  408. package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
  409. package/es/moderating/components/sidebar/ModerateTray/presenter.js +39 -38
  410. package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -7
  411. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +27 -28
  412. package/es/reduxStore.js +5 -5
  413. package/es/reporting/api/fetchStudentAnalyses.js +16 -18
  414. package/es/reporting/api/getAnalysesExport.js +20 -22
  415. package/es/reporting/api/getAnalysesStatus.js +18 -20
  416. package/es/reporting/api/getItemAnalyses.js +13 -15
  417. package/es/reporting/api/getQuizAnalysis.js +13 -15
  418. package/es/reporting/api/itemAnalyses.js +4 -4
  419. package/es/reporting/api/quizAnalyses.js +4 -4
  420. package/es/reporting/components/Caption/index.js +13 -12
  421. package/es/reporting/components/MetricsListItem/index.js +14 -12
  422. package/es/reporting/components/charts/CentileDistribution/presenter.js +22 -21
  423. package/es/reporting/components/charts/Distribution/presenter.js +21 -20
  424. package/es/reporting/components/charts/Legend/index.js +15 -13
  425. package/es/reporting/components/charts/Legend/styles.js +3 -1
  426. package/es/reporting/components/charts/QuintileDistribution/presenter.js +22 -21
  427. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
  428. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +15 -16
  429. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -8
  430. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
  431. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
  432. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +25 -25
  433. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +22 -23
  434. package/es/reporting/components/quizAnalysis/styles.js +3 -4
  435. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
  436. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +13 -12
  437. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
  438. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +14 -13
  439. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  440. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +17 -13
  441. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  442. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +18 -14
  443. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  444. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +25 -25
  445. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +3 -1
  446. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  447. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -18
  448. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +22 -17
  449. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +18 -14
  450. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  451. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +33 -33
  452. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +3 -1
  453. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +24 -19
  454. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
  455. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +8 -6
  456. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  457. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +19 -15
  458. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  459. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +50 -46
  460. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  461. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +37 -33
  462. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  463. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +22 -18
  464. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +19 -18
  465. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +18 -14
  466. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  467. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +24 -20
  468. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  469. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +19 -17
  470. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +3 -1
  471. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  472. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +18 -14
  473. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  474. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +45 -45
  475. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  476. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +49 -47
  477. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +3 -1
  478. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  479. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +25 -21
  480. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  481. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
  482. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +24 -23
  483. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  484. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +12 -11
  485. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -3
  486. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +48 -47
  487. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +3 -1
  488. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
  489. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +29 -28
  490. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
  491. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +41 -40
  492. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
  493. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
  494. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +19 -18
  495. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +39 -41
  496. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +25 -27
  497. package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
  498. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +69 -68
  499. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -11
  500. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +69 -76
  501. package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
  502. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +13 -12
  503. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -3
  504. package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
  505. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +21 -21
  506. package/es/reporting/components/resources/ReportCard/index.js +14 -13
  507. package/es/reporting/components/resources/ReportList/index.js +13 -12
  508. package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -2
  509. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +40 -39
  510. package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -1
  511. package/es/reporting/components/resources/StudentAnalysis/fetchReport.js +34 -36
  512. package/es/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +25 -27
  513. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +10 -10
  514. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +79 -86
  515. package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +15 -14
  516. package/es/reporting/components/resources/common/errorCodes.js +2 -2
  517. package/es/reporting/components/resources/common/exportReports.js +38 -40
  518. package/es/reporting/components/resources/common/generateReports.js +62 -66
  519. package/es/reporting/components/resources/common/utils.js +1 -1
  520. package/es/taking/api/taking.js +36 -38
  521. package/es/taking/learnosity/index.js +36 -38
  522. package/lib/banks/api/bankEntries.js +43 -54
  523. package/lib/banks/api/banks.js +68 -78
  524. package/lib/banks/api/copyingBanksPoller.js +54 -58
  525. package/lib/banks/api/tagAssociations.js +37 -44
  526. package/lib/banks/components/AddBankEntryModal/index.js +12 -13
  527. package/lib/banks/components/AddBankEntryModal/presenter.js +43 -43
  528. package/lib/banks/components/AddToBankModal/index.js +12 -12
  529. package/lib/banks/components/AddToBankModal/presenter.js +77 -78
  530. package/lib/banks/components/AsyncSearch/index.js +91 -90
  531. package/lib/banks/components/Bank/index.js +18 -19
  532. package/lib/banks/components/Bank/presenter.js +147 -152
  533. package/lib/banks/components/Bank/styles.js +7 -7
  534. package/lib/banks/components/Bank/theme.js +2 -3
  535. package/lib/banks/components/BankEntriesList/index.js +6 -7
  536. package/lib/banks/components/BankEntriesList/presenter.js +29 -30
  537. package/lib/banks/components/BankEntriesList/styles.js +2 -3
  538. package/lib/banks/components/BankEntriesList/theme.js +2 -3
  539. package/lib/banks/components/BankEntry/index.js +21 -23
  540. package/lib/banks/components/BankEntry/presenter.js +257 -267
  541. package/lib/banks/components/BankEntry/styles.js +7 -6
  542. package/lib/banks/components/BankEntry/theme.js +2 -3
  543. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +7 -8
  544. package/lib/banks/components/BankEntryRow/index.js +13 -13
  545. package/lib/banks/components/BankEntryRow/presenter.js +101 -102
  546. package/lib/banks/components/BankEntryRow/styles.js +2 -3
  547. package/lib/banks/components/BankEntryRow/theme.js +2 -3
  548. package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -17
  549. package/lib/banks/components/BankSearch/index.js +6 -7
  550. package/lib/banks/components/BankSearch/presenter.js +55 -56
  551. package/lib/banks/components/BankSearch/styles.js +2 -3
  552. package/lib/banks/components/BankSearch/theme.js +2 -3
  553. package/lib/banks/components/Banks/index.js +12 -13
  554. package/lib/banks/components/Banks/presenter.js +154 -154
  555. package/lib/banks/components/Banks/styles.js +2 -3
  556. package/lib/banks/components/Banks/theme.js +2 -3
  557. package/lib/banks/components/BanksList/index.js +11 -12
  558. package/lib/banks/components/BanksList/presenter.js +171 -179
  559. package/lib/banks/components/BanksList/styles.js +2 -3
  560. package/lib/banks/components/BanksList/theme.js +2 -3
  561. package/lib/banks/components/CopyMoveBankEntryModal/index.js +12 -12
  562. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +89 -91
  563. package/lib/banks/components/CreateBankModal/index.js +15 -15
  564. package/lib/banks/components/CreateBankModal/presenter.js +64 -64
  565. package/lib/banks/components/EditBankModal/index.js +11 -11
  566. package/lib/banks/components/EditBankModal/presenter.js +50 -50
  567. package/lib/banks/components/HeaderBreadCrumb/index.js +37 -37
  568. package/lib/banks/components/HeaderMenu/index.js +9 -9
  569. package/lib/banks/components/HeaderMenu/presenter.js +32 -34
  570. package/lib/banks/components/HeaderMenu/styles.js +2 -3
  571. package/lib/banks/components/HeaderMenu/theme.js +2 -3
  572. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +5 -6
  573. package/lib/banks/components/NavWrapper/externalStyles.js +2 -3
  574. package/lib/banks/components/NavWrapper/index.js +4 -5
  575. package/lib/banks/components/NavWrapper/presenter.js +47 -47
  576. package/lib/banks/components/NavWrapper/styles.js +7 -6
  577. package/lib/banks/components/NavWrapper/theme.js +2 -3
  578. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +22 -20
  579. package/lib/banks/components/SharingModal/RootAccountSharing.js +41 -42
  580. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -4
  581. package/lib/banks/components/SharingModal/ShareList/index.js +43 -45
  582. package/lib/banks/components/SharingModal/ShareList/styles.js +2 -3
  583. package/lib/banks/components/SharingModal/index.js +7 -8
  584. package/lib/banks/components/SharingModal/presenter.js +158 -160
  585. package/lib/banks/components/SharingModal/styles.js +2 -3
  586. package/lib/banks/components/SharingModal/theme.js +2 -3
  587. package/lib/building/api/items.js +78 -82
  588. package/lib/building/api/qtiImports.js +19 -23
  589. package/lib/building/api/quizEntries.js +75 -76
  590. package/lib/building/api/quizzes.js +28 -28
  591. package/lib/building/api/stimuli.js +8 -8
  592. package/lib/building/components/QTIImportModal/index.js +11 -15
  593. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +32 -31
  594. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +18 -22
  595. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +42 -43
  596. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -3
  597. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -3
  598. package/lib/building/components/layout/Sidebar/Stimulus/index.js +16 -20
  599. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +42 -43
  600. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -3
  601. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -3
  602. package/lib/building/components/layout/Sidebar/index.js +17 -21
  603. package/lib/building/components/layout/Sidebar/presenter.js +48 -49
  604. package/lib/building/components/layout/Sidebar/styles.js +8 -7
  605. package/lib/building/components/layout/Sidebar/theme.js +2 -3
  606. package/lib/building/components/layout/header/BuildingButtons/index.js +16 -17
  607. package/lib/building/components/layout/header/BuildingButtons/presenter.js +64 -66
  608. package/lib/building/components/layout/header/BuildingButtons/styles.js +6 -5
  609. package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -3
  610. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +9 -11
  611. package/lib/building/components/resources/ActionButtons/index.js +7 -9
  612. package/lib/building/components/resources/ActionButtons/presenter.js +50 -51
  613. package/lib/building/components/resources/ActionButtons/styles.js +6 -6
  614. package/lib/building/components/resources/ActionButtons/theme.js +2 -3
  615. package/lib/building/components/resources/AddToBankOptions/index.js +56 -59
  616. package/lib/building/components/resources/AddToBankOptions/styles.js +2 -3
  617. package/lib/building/components/resources/AddToBankOptions/theme.js +2 -3
  618. package/lib/building/components/resources/BanksTray/index.js +6 -8
  619. package/lib/building/components/resources/BanksTray/presenter.js +77 -79
  620. package/lib/building/components/resources/DeleteStimulusModal/index.js +8 -10
  621. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +58 -60
  622. package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -3
  623. package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -3
  624. package/lib/building/components/resources/ItemFeedbackModal/index.js +13 -15
  625. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +41 -43
  626. package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -3
  627. package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -3
  628. package/lib/building/components/resources/MoveImmutableModal/index.js +10 -12
  629. package/lib/building/components/resources/MoveImmutableModal/presenter.js +43 -43
  630. package/lib/building/components/resources/quiz/editButton/EditButton.js +26 -25
  631. package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -5
  632. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +32 -29
  633. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -3
  634. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -1
  635. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +5 -6
  636. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -12
  637. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +55 -52
  638. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +3 -4
  639. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
  640. package/lib/building/components/resources/quiz/instructions/Show/index.js +27 -28
  641. package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -3
  642. package/lib/building/components/resources/quiz/instructions/Show/theme.js +1 -1
  643. package/lib/building/components/resources/quiz/title/Edit/index.js +48 -48
  644. package/lib/building/components/resources/quiz/title/Edit/styles.js +6 -5
  645. package/lib/building/components/resources/quiz/title/Edit/theme.js +2 -3
  646. package/lib/building/components/resources/quiz/title/Show/index.js +26 -27
  647. package/lib/building/components/resources/quiz/title/Show/styles.js +2 -3
  648. package/lib/building/components/resources/quiz/title/Show/theme.js +2 -3
  649. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +5 -6
  650. package/lib/building/components/resources/quiz/title/Title/index.js +11 -13
  651. package/lib/building/components/resources/quiz/title/Title/presenter.js +63 -60
  652. package/lib/building/components/resources/quiz/title/Title/styles.js +5 -5
  653. package/lib/building/components/resources/quiz/title/Title/theme.js +1 -1
  654. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +18 -21
  655. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +113 -113
  656. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +12 -13
  657. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +4 -5
  658. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +2 -3
  659. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +7 -8
  660. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +74 -77
  661. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -3
  662. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +2 -3
  663. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +25 -27
  664. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -3
  665. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -3
  666. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -6
  667. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +55 -56
  668. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +6 -5
  669. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -3
  670. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +130 -133
  671. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -3
  672. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
  673. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +15 -15
  674. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +180 -185
  675. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -3
  676. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -3
  677. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +11 -13
  678. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +81 -84
  679. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +6 -6
  680. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +2 -3
  681. package/lib/common/actions/alerts.js +3 -3
  682. package/lib/common/actions/analyses.js +7 -7
  683. package/lib/common/actions/bankEntries.js +3 -5
  684. package/lib/common/actions/bankSearch.js +6 -10
  685. package/lib/common/actions/banks.js +8 -14
  686. package/lib/common/actions/config.js +1 -1
  687. package/lib/common/actions/editing.js +2 -2
  688. package/lib/common/actions/errorsShowing.js +1 -1
  689. package/lib/common/actions/grading.js +2 -2
  690. package/lib/common/actions/modal.js +5 -5
  691. package/lib/common/actions/modifications.js +36 -36
  692. package/lib/common/actions/printing.js +1 -1
  693. package/lib/common/actions/quizExport.js +2 -3
  694. package/lib/common/actions/quizSessionEvents.js +2 -3
  695. package/lib/common/actions/quizSessionResults.js +2 -3
  696. package/lib/common/actions/quizSessions.js +17 -22
  697. package/lib/common/actions/quizzes.js +8 -14
  698. package/lib/common/actions/rce.js +5 -8
  699. package/lib/common/actions/regrading.js +1 -1
  700. package/lib/common/actions/reporting.js +1 -1
  701. package/lib/common/actions/scrolling.js +2 -2
  702. package/lib/common/actions/sessionItemResults.js +2 -3
  703. package/lib/common/actions/sessionItems.js +2 -3
  704. package/lib/common/actions/sharedBanks.js +5 -8
  705. package/lib/common/actions/sidebar.js +1 -1
  706. package/lib/common/actions/tagAssociations.js +9 -17
  707. package/lib/common/actions/taking.js +22 -40
  708. package/lib/common/actions/ui.js +11 -20
  709. package/lib/common/actions/upload.js +6 -11
  710. package/lib/common/api/callHandlers.js +35 -56
  711. package/lib/common/api/camelizeHelpers.js +5 -7
  712. package/lib/common/api/features.js +6 -7
  713. package/lib/common/api/fileUpload.js +6 -7
  714. package/lib/common/api/getPersistenceActions.js +22 -23
  715. package/lib/common/api/helpers.js +81 -88
  716. package/lib/common/api/interactionTypes.js +5 -6
  717. package/lib/common/api/quizSessions.js +53 -62
  718. package/lib/common/api/quizzes.js +9 -9
  719. package/lib/common/api/schema.js +20 -37
  720. package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +8 -11
  721. package/lib/common/components/AccessCodeTextInput/index.js +22 -22
  722. package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -14
  723. package/lib/common/components/ConfirmationModal/index.js +9 -8
  724. package/lib/common/components/ConfirmationModal/presenter.js +47 -47
  725. package/lib/common/components/ImportModal/ImportFileSelector/index.js +33 -36
  726. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -3
  727. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
  728. package/lib/common/components/ImportModal/index.js +13 -15
  729. package/lib/common/components/ImportModal/presenter.js +74 -74
  730. package/lib/common/components/ImportModal/styles.js +2 -3
  731. package/lib/common/components/ImportModal/theme.js +2 -3
  732. package/lib/common/components/LearnosityCalculator/index.js +70 -72
  733. package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +8 -11
  734. package/lib/common/components/MaskedTextInput/index.js +26 -25
  735. package/lib/common/components/Pin/Pin.examples.js +3 -4
  736. package/lib/common/components/Pin/index.js +4 -6
  737. package/lib/common/components/Pin/presenter.js +24 -24
  738. package/lib/common/components/PreviewFrame/examples.config.js +4 -6
  739. package/lib/common/components/PreviewFrame/index.js +25 -26
  740. package/lib/common/components/PrintFontSizeModal/index.js +3 -4
  741. package/lib/common/components/PrintFontSizeModal/presenter.js +48 -47
  742. package/lib/common/components/PrintFontSizeModal/styles.js +2 -3
  743. package/lib/common/components/PrintFontSizeModal/theme.js +2 -3
  744. package/lib/common/components/RceConfigProvider/index.js +9 -10
  745. package/lib/common/components/RceConfigProvider/presenter.js +110 -113
  746. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +10 -12
  747. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -17
  748. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +27 -30
  749. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +7 -10
  750. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -8
  751. package/lib/common/components/SDKApp/index.js +64 -67
  752. package/lib/common/components/SDKApp/styles.js +2 -3
  753. package/lib/common/components/SDKHeaderCalculator.js +12 -14
  754. package/lib/common/components/SDKMenuButton.js +9 -11
  755. package/lib/common/components/SDKNavBar.js +10 -12
  756. package/lib/common/components/SDKTimer.js +12 -14
  757. package/lib/common/components/alerts/index.js +8 -9
  758. package/lib/common/components/alerts/presenter.js +25 -26
  759. package/lib/common/components/alerts/styles.js +3 -4
  760. package/lib/common/components/alerts/theme.js +2 -3
  761. package/lib/common/components/layout/Page/index.js +27 -28
  762. package/lib/common/components/layout/Page/styles.js +6 -6
  763. package/lib/common/components/layout/Page/theme.js +2 -3
  764. package/lib/common/components/layout/header/Calculator/index.js +10 -12
  765. package/lib/common/components/layout/header/Calculator/presenter.js +35 -36
  766. package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -12
  767. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +25 -28
  768. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +3 -4
  769. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
  770. package/lib/common/components/layout/header/Timer/index.js +8 -9
  771. package/lib/common/components/layout/header/Timer/presenter.js +58 -60
  772. package/lib/common/components/layout/header/Timer/styles.js +2 -3
  773. package/lib/common/components/layout/header/Timer/theme.js +2 -3
  774. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +18 -19
  775. package/lib/common/components/layout/navbar/externalStyles.js +2 -3
  776. package/lib/common/components/layout/navbar/index.js +51 -52
  777. package/lib/common/components/layout/navbar/styles.js +7 -6
  778. package/lib/common/components/layout/navbar/theme.js +2 -3
  779. package/lib/common/components/layout/sidebar/PositionSummary/index.js +25 -25
  780. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -3
  781. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -3
  782. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +23 -23
  783. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +8 -11
  784. package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +2 -3
  785. package/lib/common/components/layout/sidebar/Sidebar/index.js +83 -85
  786. package/lib/common/components/layout/sidebar/Sidebar/styles.js +17 -18
  787. package/lib/common/components/layout/sidebar/Sidebar/theme.js +2 -3
  788. package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -15
  789. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +45 -42
  790. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -6
  791. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +2 -3
  792. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -7
  793. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +41 -40
  794. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +11 -10
  795. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
  796. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -7
  797. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +37 -36
  798. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -3
  799. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
  800. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +21 -20
  801. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -3
  802. package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -12
  803. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +44 -47
  804. package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -3
  805. package/lib/common/components/layout/sidebar/Stimulus/theme.js +2 -3
  806. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -4
  807. package/lib/common/components/resources/BankSelection/index.js +9 -10
  808. package/lib/common/components/resources/BankSelection/presenter.js +34 -34
  809. package/lib/common/components/resources/WarningWrapper/index.js +33 -34
  810. package/lib/common/components/resources/WarningWrapper/styles.js +2 -3
  811. package/lib/common/components/resources/WarningWrapper/theme.js +2 -3
  812. package/lib/common/components/resources/entry/EntrySave/index.js +8 -9
  813. package/lib/common/components/resources/entry/EntrySave/presenter.js +111 -115
  814. package/lib/common/components/resources/item/ItemEdit/index.js +19 -19
  815. package/lib/common/components/resources/item/ItemEdit/presenter.js +78 -78
  816. package/lib/common/components/resources/item/ItemOverride/index.js +13 -13
  817. package/lib/common/components/resources/item/ItemOverride/presenter.js +44 -43
  818. package/lib/common/components/resources/item/ItemShow/index.js +25 -24
  819. package/lib/common/components/resources/positionBox/PositionBox.js +21 -22
  820. package/lib/common/components/resources/positionBox/styles.js +3 -4
  821. package/lib/common/components/resources/positionBox/theme.js +2 -3
  822. package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -10
  823. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +52 -54
  824. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -8
  825. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +2 -3
  826. package/lib/common/components/resources/quiz/AddContent/Button/index.js +28 -29
  827. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +7 -7
  828. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +2 -3
  829. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +6 -8
  830. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +35 -35
  831. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +8 -10
  832. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +49 -50
  833. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -3
  834. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -3
  835. package/lib/common/components/resources/quiz/info/QuizInfo.js +23 -23
  836. package/lib/common/components/resources/quiz/instructions/Instructions.js +19 -20
  837. package/lib/common/components/resources/quiz/instructions/styles.js +2 -3
  838. package/lib/common/components/resources/quiz/instructions/theme.js +2 -3
  839. package/lib/common/components/resources/quiz/title/Title.js +19 -20
  840. package/lib/common/components/resources/quiz/title/styles.js +2 -3
  841. package/lib/common/components/resources/quiz/title/theme.js +2 -3
  842. package/lib/common/components/resources/quizSessionResult/Header/index.js +25 -26
  843. package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -3
  844. package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -3
  845. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +10 -11
  846. package/lib/common/components/resources/quizSessionResult/Info/index.js +133 -132
  847. package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -3
  848. package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -3
  849. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +21 -22
  850. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +13 -13
  851. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +2 -3
  852. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -9
  853. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +98 -99
  854. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +6 -5
  855. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +2 -3
  856. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +33 -34
  857. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -3
  858. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +2 -3
  859. package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -8
  860. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +64 -65
  861. package/lib/common/components/resources/stimulus/Stimulus/styles.js +9 -9
  862. package/lib/common/components/resources/stimulus/Stimulus/theme.js +2 -3
  863. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +14 -14
  864. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +194 -199
  865. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -3
  866. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
  867. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +9 -9
  868. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +52 -55
  869. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -3
  870. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
  871. package/lib/common/components/resources/stimulus/StimulusShow/index.js +40 -42
  872. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -3
  873. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
  874. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +5 -6
  875. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +26 -25
  876. package/lib/common/components/shared/Card/CardContent/index.js +24 -24
  877. package/lib/common/components/shared/Card/CardContent/styles.js +3 -4
  878. package/lib/common/components/shared/Card/CardContent/theme.js +2 -3
  879. package/lib/common/components/shared/Card/CardWrapper/index.js +23 -23
  880. package/lib/common/components/shared/Card/CardWrapper/styles.js +3 -4
  881. package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -3
  882. package/lib/common/components/shared/Card/index.js +12 -12
  883. package/lib/common/components/shared/ExpandButton/index.js +21 -22
  884. package/lib/common/components/shared/ExpandButton/styles.js +6 -5
  885. package/lib/common/components/shared/ExpandButton/theme.js +2 -3
  886. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +7 -8
  887. package/lib/common/components/shared/FormattedDuration/index.js +36 -37
  888. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +63 -63
  889. package/lib/common/components/shared/IfFeature/index.js +6 -8
  890. package/lib/common/components/shared/IfFeature/presenter.js +18 -19
  891. package/lib/common/components/shared/InteractionTypes/index.js +5 -6
  892. package/lib/common/components/shared/InteractionTypes/presenter.js +37 -38
  893. package/lib/common/components/shared/InteractionTypes/styles.js +2 -3
  894. package/lib/common/components/shared/InteractionTypes/theme.js +2 -3
  895. package/lib/common/components/shared/PaginatedCollection/index.js +6 -7
  896. package/lib/common/components/shared/PaginatedCollection/presenter.js +62 -66
  897. package/lib/common/components/shared/PaginatedCollection/styles.js +2 -3
  898. package/lib/common/components/shared/PaginatedCollection/theme.js +2 -3
  899. package/lib/common/components/shared/Paginator/index.js +23 -24
  900. package/lib/common/components/shared/Paginator/styles.js +2 -3
  901. package/lib/common/components/shared/Paginator/theme.js +2 -3
  902. package/lib/common/components/shared/PrintTrigger/index.js +11 -12
  903. package/lib/common/components/shared/PrintTrigger/presenter.js +51 -51
  904. package/lib/common/components/shared/TagDisplay/index.js +22 -23
  905. package/lib/common/components/shared/TagDisplay/styles.js +3 -4
  906. package/lib/common/components/shared/TagSelect/index.js +3 -4
  907. package/lib/common/components/shared/TagSelect/presenter.js +60 -59
  908. package/lib/common/components/shared/TagSuggestSelect/index.js +6 -7
  909. package/lib/common/components/shared/TagSuggestSelect/presenter.js +41 -41
  910. package/lib/common/components/shared/TagWrapper/index.js +3 -4
  911. package/lib/common/components/shared/TagWrapper/presenter.js +28 -28
  912. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -4
  913. package/lib/common/components/shared/TimeUnitsInput/index.js +72 -72
  914. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +29 -30
  915. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -6
  916. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
  917. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +12 -14
  918. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +63 -67
  919. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -24
  920. package/lib/common/components/shared/errors/Errors.js +21 -22
  921. package/lib/common/components/shared/errors/styles.js +2 -3
  922. package/lib/common/components/shared/errors/theme.js +2 -3
  923. package/lib/common/components/shared/file_selector/FileSelector.js +24 -26
  924. package/lib/common/components/shared/file_selector/styles.js +2 -3
  925. package/lib/common/components/shared/file_selector/theme.js +2 -3
  926. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +21 -22
  927. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +18 -20
  928. package/lib/common/components/shared/functionality/disableDraggingOverride.js +5 -6
  929. package/lib/common/components/shared/functionality/makeEditable.js +35 -35
  930. package/lib/common/components/shared/functionality/makeScrollable.js +40 -41
  931. package/lib/common/components/shared/overlay/index.js +27 -26
  932. package/lib/common/components/shared/overlay/styles.js +3 -4
  933. package/lib/common/components/shared/overlay/theme.js +2 -3
  934. package/lib/common/components/shared/return_button/ReturnButton.js +27 -26
  935. package/lib/common/components/shared/spinner/Spinner.js +25 -25
  936. package/lib/common/components/shared/spinner/styles.js +2 -3
  937. package/lib/common/kinesis/QuizEventsLogger.js +43 -49
  938. package/lib/common/kinesis/StreamQueue.js +13 -11
  939. package/lib/common/kinesis/client.js +9 -13
  940. package/lib/common/kinesis/config.js +7 -11
  941. package/lib/common/kinesis/eventTypes.js +9 -16
  942. package/lib/common/middleware/alertTimerMiddleware.js +4 -5
  943. package/lib/common/middleware/crossDomainMessagingMiddleware.js +3 -4
  944. package/lib/common/middleware/eventLoggerMiddleware.js +7 -8
  945. package/lib/common/middleware/persistedStorageMiddleware.js +5 -6
  946. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +15 -21
  947. package/lib/common/react-redux.js +3 -4
  948. package/lib/common/records/Alert.js +12 -11
  949. package/lib/common/records/Bank.js +16 -16
  950. package/lib/common/records/BankEntry.js +19 -20
  951. package/lib/common/records/Item.js +25 -24
  952. package/lib/common/records/ItemAnalysis.js +14 -15
  953. package/lib/common/records/QtiImport.js +13 -14
  954. package/lib/common/records/Quiz.js +29 -28
  955. package/lib/common/records/QuizAnalysis.js +16 -17
  956. package/lib/common/records/QuizEntry.js +125 -124
  957. package/lib/common/records/QuizSession.js +32 -28
  958. package/lib/common/records/QuizSessionEvent.js +14 -15
  959. package/lib/common/records/QuizSessionResult.js +14 -15
  960. package/lib/common/records/Response.js +14 -15
  961. package/lib/common/records/SessionItem.js +21 -22
  962. package/lib/common/records/SessionItemResult.js +14 -15
  963. package/lib/common/records/Stimulus.js +20 -21
  964. package/lib/common/records/baseRecord.js +22 -18
  965. package/lib/common/records/index.js +34 -34
  966. package/lib/common/records/reduxRecord.js +16 -13
  967. package/lib/common/reducers/alerts.js +6 -7
  968. package/lib/common/reducers/analyses.js +17 -30
  969. package/lib/common/reducers/bankEntries.js +6 -7
  970. package/lib/common/reducers/bankSearch.js +5 -6
  971. package/lib/common/reducers/banks.js +6 -7
  972. package/lib/common/reducers/calls.js +5 -6
  973. package/lib/common/reducers/config.js +5 -6
  974. package/lib/common/reducers/dragAndDrop.js +5 -6
  975. package/lib/common/reducers/editing.js +6 -8
  976. package/lib/common/reducers/errorsShowing.js +5 -6
  977. package/lib/common/reducers/features.js +5 -6
  978. package/lib/common/reducers/grading.js +5 -6
  979. package/lib/common/reducers/interactionTypes.js +6 -7
  980. package/lib/common/reducers/items.js +6 -7
  981. package/lib/common/reducers/modal.js +5 -6
  982. package/lib/common/reducers/moderation.js +5 -6
  983. package/lib/common/reducers/modifications.js +16 -16
  984. package/lib/common/reducers/outcomes.js +5 -6
  985. package/lib/common/reducers/printing.js +5 -6
  986. package/lib/common/reducers/qtiImports.js +6 -7
  987. package/lib/common/reducers/quizEntries.js +10 -11
  988. package/lib/common/reducers/quizExport.js +5 -6
  989. package/lib/common/reducers/quizSessionEvents.js +8 -7
  990. package/lib/common/reducers/quizSessionResults.js +6 -7
  991. package/lib/common/reducers/quizSessions.js +7 -8
  992. package/lib/common/reducers/quizzes.js +8 -9
  993. package/lib/common/reducers/rce.js +5 -6
  994. package/lib/common/reducers/regrading.js +5 -6
  995. package/lib/common/reducers/reporting.js +6 -7
  996. package/lib/common/reducers/scrolling.js +5 -6
  997. package/lib/common/reducers/sessionItemResults.js +6 -7
  998. package/lib/common/reducers/sessionItems.js +6 -7
  999. package/lib/common/reducers/sharedBanks.js +6 -7
  1000. package/lib/common/reducers/sidebar.js +5 -6
  1001. package/lib/common/reducers/stimuli.js +6 -7
  1002. package/lib/common/reducers/tagAssociations.js +5 -6
  1003. package/lib/common/reducers/taking.js +5 -6
  1004. package/lib/common/reducers/ui.js +6 -7
  1005. package/lib/common/reducers/upload.js +7 -8
  1006. package/lib/common/selectors/analyses.js +13 -24
  1007. package/lib/common/selectors/calculator.js +3 -3
  1008. package/lib/common/selectors/config.js +1 -1
  1009. package/lib/common/selectors/interactionTypes.js +14 -16
  1010. package/lib/common/selectors/items.js +3 -3
  1011. package/lib/common/selectors/qtiImports.js +4 -5
  1012. package/lib/common/selectors/quizSessionResults.js +4 -4
  1013. package/lib/common/selectors/quizSessions.js +11 -17
  1014. package/lib/common/selectors/quizzes.js +31 -43
  1015. package/lib/common/selectors/rce.js +4 -6
  1016. package/lib/common/selectors/reporting.js +5 -6
  1017. package/lib/common/selectors/sessionItemResults.js +10 -12
  1018. package/lib/common/selectors/sessionItems.js +11 -13
  1019. package/lib/common/selectors/taking.js +12 -16
  1020. package/lib/common/selectors/ui.js +2 -3
  1021. package/lib/common/util/CustomPropTypes.js +3 -5
  1022. package/lib/common/util/ElementsForSelectors.js +3 -4
  1023. package/lib/common/util/ExhaustivePaginatedFetcher.js +57 -56
  1024. package/lib/common/util/Fetcher.js +151 -166
  1025. package/lib/common/util/MultiWeakMap.js +5 -7
  1026. package/lib/common/util/PaginatedFetcher.js +30 -32
  1027. package/lib/common/util/ThunkQueue.js +55 -57
  1028. package/lib/common/util/TimeRecordingService.js +9 -11
  1029. package/lib/common/util/TimerService.js +16 -19
  1030. package/lib/common/util/cachePreviousArgs.js +4 -5
  1031. package/lib/common/util/callHelpers.js +6 -10
  1032. package/lib/common/util/clickHandlers.js +3 -3
  1033. package/lib/common/util/componentForItem.js +5 -6
  1034. package/lib/common/util/crossDomainMessaging.js +1 -1
  1035. package/lib/common/util/debounceLatestPromise.js +5 -6
  1036. package/lib/common/util/featureCheck.js +6 -6
  1037. package/lib/common/util/formatTimespan.js +8 -9
  1038. package/lib/common/util/generateDisplayPositions.js +3 -4
  1039. package/lib/common/util/getClientIpAddress.js +24 -27
  1040. package/lib/common/util/httpHeaders.js +5 -8
  1041. package/lib/common/util/immutableHelpers.js +6 -9
  1042. package/lib/common/util/instUIMessages.js +2 -3
  1043. package/lib/common/util/interactionTypeMetadata.js +17 -19
  1044. package/lib/common/util/interactionTypePropsHelper.js +5 -7
  1045. package/lib/common/util/interactionTypeRecordForItem.js +4 -4
  1046. package/lib/common/util/jsonify.js +8 -7
  1047. package/lib/common/util/keyboardClickable.js +2 -3
  1048. package/lib/common/util/mathRenderingUtils.js +2 -4
  1049. package/lib/common/util/maxContent.js +4 -5
  1050. package/lib/common/util/noop.js +2 -3
  1051. package/lib/common/util/persistedState.js +10 -11
  1052. package/lib/common/util/printUtils.js +5 -7
  1053. package/lib/common/util/rceChecker.js +12 -15
  1054. package/lib/common/util/renderAlerts.js +13 -15
  1055. package/lib/common/util/serializeEvent.js +4 -5
  1056. package/lib/common/util/sessionStore.js +4 -7
  1057. package/lib/common/util/valMap.js +4 -5
  1058. package/lib/common/util/warningHelpers.js +33 -40
  1059. package/lib/common/util/windowChecks.js +9 -14
  1060. package/lib/common/util/withCachedArguments.js +5 -6
  1061. package/lib/common/util/withDynamoPagination.js +55 -57
  1062. package/lib/common/util/withStateCache.js +5 -6
  1063. package/lib/config.js +6 -8
  1064. package/lib/configureStore.js +90 -91
  1065. package/lib/grading/api/quizEntryRegrades.js +6 -6
  1066. package/lib/grading/api/updateResults.js +10 -11
  1067. package/lib/index.js +559 -557
  1068. package/lib/messages/LocalStorageAdapter.js +18 -18
  1069. package/lib/messages/LocalStorageLimits.js +26 -25
  1070. package/lib/messages/StorageExhaustionError.js +12 -10
  1071. package/lib/messages/postMessageService.js +47 -45
  1072. package/lib/messages/subjectHandlers/forwardMessage.js +2 -3
  1073. package/lib/messages/subjectHandlers/lti.capabilities.js +2 -3
  1074. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -3
  1075. package/lib/messages/subjectHandlers/lti.frameResize.js +4 -5
  1076. package/lib/messages/subjectHandlers/lti.get_data.js +3 -4
  1077. package/lib/messages/subjectHandlers/lti.put_data.js +5 -6
  1078. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +7 -9
  1079. package/lib/moderating/api/quizSessionEvents.js +4 -4
  1080. package/lib/moderating/api/quizSessions.js +8 -8
  1081. package/lib/moderating/components/events/Event.js +40 -42
  1082. package/lib/moderating/components/events/PageBlurredEvent.js +14 -15
  1083. package/lib/moderating/components/events/PageFocusedEvent.js +14 -15
  1084. package/lib/moderating/components/events/RCEEvent.js +18 -18
  1085. package/lib/moderating/components/events/ResponseEvent.js +31 -31
  1086. package/lib/moderating/components/events/SessionStartEvent.js +22 -22
  1087. package/lib/moderating/components/events/SessionSubmitEvent.js +22 -22
  1088. package/lib/moderating/components/events/styles.js +2 -3
  1089. package/lib/moderating/components/events/theme.js +2 -3
  1090. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -4
  1091. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +38 -37
  1092. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -4
  1093. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +35 -35
  1094. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +36 -35
  1095. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -4
  1096. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +57 -56
  1097. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +33 -32
  1098. package/lib/moderating/components/resources/AccommodationsModal/index.js +52 -52
  1099. package/lib/moderating/components/resources/ElapsedTime.js +27 -27
  1100. package/lib/moderating/components/resources/EventDetails.js +15 -17
  1101. package/lib/moderating/components/resources/ModerateTable/index.js +11 -14
  1102. package/lib/moderating/components/resources/ModerateTable/presenter.js +125 -126
  1103. package/lib/moderating/components/resources/ModerateTable/styles.js +6 -5
  1104. package/lib/moderating/components/resources/ModerateTable/theme.js +2 -3
  1105. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +9 -10
  1106. package/lib/moderating/components/resources/ModerateTableRow/index.js +6 -7
  1107. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +71 -71
  1108. package/lib/moderating/components/resources/ModerateTableRow/story.js +6 -7
  1109. package/lib/moderating/components/resources/ModerateTableRow/styles.js +3 -4
  1110. package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -3
  1111. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -4
  1112. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +7 -9
  1113. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +58 -56
  1114. package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +6 -7
  1115. package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +48 -50
  1116. package/lib/moderating/components/resources/SessionBreachAlert.js +4 -6
  1117. package/lib/moderating/components/resources/util/checkIsBreach.js +6 -7
  1118. package/lib/moderating/components/resources/util/extractSessionData.js +3 -4
  1119. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -4
  1120. package/lib/moderating/components/sidebar/ModerateTray/index.js +6 -7
  1121. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +75 -75
  1122. package/lib/moderating/components/sidebar/ResetQuiz/index.js +10 -11
  1123. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +52 -54
  1124. package/lib/reduxStore.js +13 -14
  1125. package/lib/reporting/api/fetchStudentAnalyses.js +20 -23
  1126. package/lib/reporting/api/getAnalysesExport.js +24 -27
  1127. package/lib/reporting/api/getAnalysesStatus.js +22 -25
  1128. package/lib/reporting/api/getItemAnalyses.js +17 -20
  1129. package/lib/reporting/api/getQuizAnalysis.js +17 -20
  1130. package/lib/reporting/api/itemAnalyses.js +5 -5
  1131. package/lib/reporting/api/quizAnalyses.js +5 -5
  1132. package/lib/reporting/components/Caption/index.js +20 -21
  1133. package/lib/reporting/components/Caption/styles.js +2 -3
  1134. package/lib/reporting/components/Caption/theme.js +2 -3
  1135. package/lib/reporting/components/MetricsListItem/index.js +21 -21
  1136. package/lib/reporting/components/MetricsListItem/styles.js +2 -3
  1137. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -4
  1138. package/lib/reporting/components/charts/CentileDistribution/index.js +2 -3
  1139. package/lib/reporting/components/charts/CentileDistribution/presenter.js +33 -34
  1140. package/lib/reporting/components/charts/CentileDistribution/styles.js +3 -4
  1141. package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -3
  1142. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -5
  1143. package/lib/reporting/components/charts/Distribution/Distribution.js +2 -3
  1144. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -3
  1145. package/lib/reporting/components/charts/Distribution/index.js +2 -3
  1146. package/lib/reporting/components/charts/Distribution/presenter.js +30 -32
  1147. package/lib/reporting/components/charts/Distribution/styles.js +2 -3
  1148. package/lib/reporting/components/charts/Distribution/theme.js +2 -3
  1149. package/lib/reporting/components/charts/Legend/index.js +26 -26
  1150. package/lib/reporting/components/charts/Legend/styles.js +6 -5
  1151. package/lib/reporting/components/charts/Legend/theme.js +2 -3
  1152. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -4
  1153. package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -3
  1154. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +31 -32
  1155. package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -3
  1156. package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -3
  1157. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +5 -6
  1158. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +30 -33
  1159. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -11
  1160. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +2 -3
  1161. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +5 -6
  1162. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +6 -8
  1163. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +74 -75
  1164. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +4 -5
  1165. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +2 -3
  1166. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +50 -52
  1167. package/lib/reporting/components/quizAnalysis/styles.js +5 -7
  1168. package/lib/reporting/components/quizAnalysis/theme.js +2 -3
  1169. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +3 -4
  1170. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +20 -20
  1171. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -3
  1172. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +3 -4
  1173. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +26 -26
  1174. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -3
  1175. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  1176. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +24 -20
  1177. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  1178. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +26 -22
  1179. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  1180. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +36 -37
  1181. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +9 -8
  1182. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +2 -3
  1183. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  1184. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +32 -32
  1185. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -3
  1186. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -3
  1187. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +35 -30
  1188. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +27 -23
  1189. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  1190. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +44 -45
  1191. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +6 -5
  1192. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -3
  1193. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +36 -31
  1194. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -9
  1195. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +12 -11
  1196. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  1197. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +37 -33
  1198. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  1199. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +82 -79
  1200. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -3
  1201. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -3
  1202. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  1203. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +56 -53
  1204. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -3
  1205. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -3
  1206. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  1207. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +30 -26
  1208. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +31 -32
  1209. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -3
  1210. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -3
  1211. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +30 -27
  1212. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  1213. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +45 -41
  1214. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  1215. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +28 -26
  1216. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +6 -5
  1217. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -3
  1218. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  1219. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +5 -6
  1220. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +26 -23
  1221. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -3
  1222. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  1223. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +53 -54
  1224. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -3
  1225. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +2 -3
  1226. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  1227. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +62 -61
  1228. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +6 -5
  1229. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -3
  1230. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  1231. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +33 -30
  1232. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -3
  1233. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -3
  1234. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +9 -11
  1235. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +3 -4
  1236. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +33 -33
  1237. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -3
  1238. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -3
  1239. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  1240. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +16 -16
  1241. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -3
  1242. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +2 -3
  1243. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -6
  1244. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +13 -16
  1245. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +71 -71
  1246. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -6
  1247. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +2 -3
  1248. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +3 -4
  1249. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -12
  1250. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +53 -53
  1251. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -3
  1252. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -3
  1253. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -7
  1254. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +69 -69
  1255. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +7 -7
  1256. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -3
  1257. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +3 -4
  1258. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +33 -32
  1259. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -3
  1260. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
  1261. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
  1262. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +42 -45
  1263. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +28 -31
  1264. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -7
  1265. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +95 -95
  1266. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -3
  1267. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -3
  1268. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +14 -16
  1269. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +102 -109
  1270. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -8
  1271. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +28 -28
  1272. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -11
  1273. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -12
  1274. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +70 -72
  1275. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -3
  1276. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
  1277. package/lib/reporting/components/resources/ReportCard/index.js +24 -25
  1278. package/lib/reporting/components/resources/ReportCard/styles.js +3 -4
  1279. package/lib/reporting/components/resources/ReportCard/theme.js +2 -3
  1280. package/lib/reporting/components/resources/ReportList/index.js +22 -23
  1281. package/lib/reporting/components/resources/ReportList/styles.js +2 -3
  1282. package/lib/reporting/components/resources/ReportList/theme.js +2 -3
  1283. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +3 -4
  1284. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +66 -65
  1285. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +6 -6
  1286. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +2 -3
  1287. package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +37 -40
  1288. package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +28 -31
  1289. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +12 -13
  1290. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +109 -116
  1291. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +26 -25
  1292. package/lib/reporting/components/resources/common/ExportButton/index.js +6 -7
  1293. package/lib/reporting/components/resources/common/errorCodes.js +11 -18
  1294. package/lib/reporting/components/resources/common/errorMessages.js +18 -26
  1295. package/lib/reporting/components/resources/common/exportReports.js +41 -44
  1296. package/lib/reporting/components/resources/common/generateReports.js +66 -72
  1297. package/lib/reporting/components/resources/common/propTypes.js +141 -159
  1298. package/lib/reporting/components/resources/common/utils.js +7 -9
  1299. package/lib/taking/api/taking.js +69 -72
  1300. package/lib/taking/learnosity/index.js +39 -41
  1301. package/package.json +9 -10
@@ -1,8 +1,14 @@
1
- import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
2
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
+ 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; } } }; }
8
+ 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; } }
9
+ 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; }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
6
12
  import React, { Component } from 'react';
7
13
  import PropTypes from 'prop-types';
8
14
  import ImmutablePropTypes from 'react-immutable-proptypes';
@@ -13,13 +19,11 @@ import { Button, CloseButton } from '@instructure/ui-buttons';
13
19
  import { OUTSTANDING_QUIZZES_MODAL } from '@instructure/quiz-common';
14
20
  import t from '@instructure/quiz-i18n/es/format-message';
15
21
  export var OutstandingQuizzesModal = /*#__PURE__*/function (_Component) {
16
- _inherits(OutstandingQuizzesModal, _Component);
17
- var _super = _createSuper(OutstandingQuizzesModal);
18
22
  function OutstandingQuizzesModal(props) {
19
23
  var _this;
20
24
  _classCallCheck(this, OutstandingQuizzesModal);
21
- _this = _super.call(this, props);
22
- _this.saveAction = function () {
25
+ _this = _callSuper(this, OutstandingQuizzesModal, [props]);
26
+ _defineProperty(_this, "saveAction", function () {
23
27
  var _iterator = _createForOfIteratorHelper(_this.state.quizzesSelectedAndReadyToSubmit),
24
28
  _step;
25
29
  try {
@@ -35,17 +39,17 @@ export var OutstandingQuizzesModal = /*#__PURE__*/function (_Component) {
35
39
  _this.props.closeModal();
36
40
  _this.props.handleSubmissionAndPoll(_this.state.quizzesSelectedAndReadyToSubmit);
37
41
  _this.props.afterSubmit();
38
- };
39
- _this.cancelAction = function () {
42
+ });
43
+ _defineProperty(_this, "cancelAction", function () {
40
44
  _this.props.onDismiss && _this.props.onDismiss();
41
45
  _this.props.closeModal();
42
- };
43
- _this.sortByName = function (arr) {
46
+ });
47
+ _defineProperty(_this, "sortByName", function (arr) {
44
48
  return arr.sort(function (a, b) {
45
49
  return a.name.localeCompare(b.name);
46
50
  });
47
- };
48
- _this.generateCheckboxesForOutstandingQuizzes = function () {
51
+ });
52
+ _defineProperty(_this, "generateCheckboxesForOutstandingQuizzes", function () {
49
53
  var checkboxes = [];
50
54
  var quizValues = [];
51
55
  var sortedQuizSessionIdsAndUsers = _this.sortByName(_this.props.quizSessionIdsAndUsers);
@@ -67,29 +71,30 @@ export var OutstandingQuizzesModal = /*#__PURE__*/function (_Component) {
67
71
  checkboxes: checkboxes,
68
72
  quizValues: quizValues
69
73
  };
70
- };
71
- _this.updateListOfQuizzesToSubmit = function (value) {
74
+ });
75
+ _defineProperty(_this, "updateListOfQuizzesToSubmit", function (value) {
72
76
  _this.setState({
73
77
  quizzesSelectedAndReadyToSubmit: value
74
78
  });
75
- };
76
- _this.closeModalOnClick = function () {
79
+ });
80
+ _defineProperty(_this, "closeModalOnClick", function () {
77
81
  _this.props.closeModal(OUTSTANDING_QUIZZES_MODAL);
78
- };
79
- _this.populateCheckboxesOnOpen = function () {
82
+ });
83
+ _defineProperty(_this, "populateCheckboxesOnOpen", function () {
80
84
  var checkboxData = _this.generateCheckboxesForOutstandingQuizzes();
81
85
  _this.setState({
82
86
  quizzesSelectedAndReadyToSubmit: checkboxData.quizValues,
83
87
  checkboxes: checkboxData.checkboxes
84
88
  });
85
- };
89
+ });
86
90
  _this.state = {
87
91
  quizzesSelectedAndReadyToSubmit: [],
88
92
  checkboxes: []
89
93
  };
90
94
  return _this;
91
95
  }
92
- _createClass(OutstandingQuizzesModal, [{
96
+ _inherits(OutstandingQuizzesModal, _Component);
97
+ return _createClass(OutstandingQuizzesModal, [{
93
98
  key: "render",
94
99
  value: function render() {
95
100
  return /*#__PURE__*/React.createElement(Modal, {
@@ -123,10 +128,8 @@ export var OutstandingQuizzesModal = /*#__PURE__*/function (_Component) {
123
128
  }, t('Submit Manually'))));
124
129
  }
125
130
  }]);
126
- OutstandingQuizzesModal.displayName = "OutstandingQuizzesModal";
127
- return OutstandingQuizzesModal;
128
131
  }(Component);
129
- OutstandingQuizzesModal.propTypes = {
132
+ _defineProperty(OutstandingQuizzesModal, "propTypes", {
130
133
  closeModal: PropTypes.func.isRequired,
131
134
  submitOutstandingQuizSession: PropTypes.func,
132
135
  open: PropTypes.bool,
@@ -139,13 +142,13 @@ OutstandingQuizzesModal.propTypes = {
139
142
  quizSessionsData: ImmutablePropTypes.listOf(ImmutablePropTypes.record).isRequired,
140
143
  handleSubmissionAndPoll: PropTypes.func.isRequired,
141
144
  afterSubmit: PropTypes.func
142
- };
143
- OutstandingQuizzesModal.defaultProps = {
145
+ });
146
+ _defineProperty(OutstandingQuizzesModal, "defaultProps", {
144
147
  submitOutstandingQuizSession: void 0,
145
148
  open: void 0,
146
149
  mountNode: null,
147
150
  onDismiss: null,
148
151
  closeModal: null,
149
152
  afterSubmit: Function.prototype
150
- };
153
+ });
151
154
  export default OutstandingQuizzesModal;
@@ -1,7 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
- import { addAlert } from "../../../../common/actions/alerts.js";
3
- import { connect } from "../../../../common/react-redux.js";
4
- import { RetryGradePassbackButton as RetryGradePassbackButtonPresenter } from "./presenter.js";
2
+ import { addAlert } from '../../../../common/actions/alerts';
3
+ import { connect } from '../../../../common/react-redux';
4
+ import { RetryGradePassbackButton as RetryGradePassbackButtonPresenter } from './presenter';
5
5
  var mapStateToProps = function mapStateToProps(state) {
6
6
  return {};
7
7
  };
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import React from 'react';
5
5
  import { Button } from '@instructure/ui-buttons';
6
6
  import { IconRefreshLine } from '@instructure/ui-icons';
@@ -21,48 +21,46 @@ export function RetryGradePassbackButton(_ref) {
21
21
  _handleClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
22
22
  var response;
23
23
  return _regeneratorRuntime.wrap(function _callee$(_context) {
24
- while (1) {
25
- switch (_context.prev = _context.next) {
26
- case 0:
27
- if (!(retryGradePassbackStatus === 'pending')) {
28
- _context.next = 2;
29
- break;
30
- }
31
- return _context.abrupt("return");
32
- case 2:
33
- _context.prev = 2;
34
- setRetryGradePassbackStatus('pending');
35
- _context.next = 6;
36
- return onClick();
37
- case 6:
38
- response = _context.sent;
39
- if (!(response == null)) {
40
- _context.next = 9;
41
- break;
42
- }
43
- throw new Error('Failed to retry grade passback');
44
- case 9:
45
- addAlert({
46
- message: t('Grade passback has been retried. This may take a while.'),
47
- variant: 'info',
48
- removeIn: 5000
49
- });
50
- setRetryGradePassbackStatus('success');
51
- _context.next = 17;
24
+ while (1) switch (_context.prev = _context.next) {
25
+ case 0:
26
+ if (!(retryGradePassbackStatus === 'pending')) {
27
+ _context.next = 2;
28
+ break;
29
+ }
30
+ return _context.abrupt("return");
31
+ case 2:
32
+ _context.prev = 2;
33
+ setRetryGradePassbackStatus('pending');
34
+ _context.next = 6;
35
+ return onClick();
36
+ case 6:
37
+ response = _context.sent;
38
+ if (!(response == null)) {
39
+ _context.next = 9;
52
40
  break;
53
- case 13:
54
- _context.prev = 13;
55
- _context.t0 = _context["catch"](2);
56
- addAlert({
57
- message: t('Failed to retry grade passback. Please try again.'),
58
- variant: 'error',
59
- removeIn: 5000
60
- });
61
- setRetryGradePassbackStatus('error');
62
- case 17:
63
- case "end":
64
- return _context.stop();
65
- }
41
+ }
42
+ throw new Error('Failed to retry grade passback');
43
+ case 9:
44
+ addAlert({
45
+ message: t('Grade passback has been retried. This may take a while.'),
46
+ variant: 'info',
47
+ removeIn: 5000
48
+ });
49
+ setRetryGradePassbackStatus('success');
50
+ _context.next = 17;
51
+ break;
52
+ case 13:
53
+ _context.prev = 13;
54
+ _context.t0 = _context["catch"](2);
55
+ addAlert({
56
+ message: t('Failed to retry grade passback. Please try again.'),
57
+ variant: 'error',
58
+ removeIn: 5000
59
+ });
60
+ setRetryGradePassbackStatus('error');
61
+ case 17:
62
+ case "end":
63
+ return _context.stop();
66
64
  }
67
65
  }, _callee, null, [[2, 13]]);
68
66
  }));
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Alert } from '@instructure/ui-alerts';
3
3
  import t from '@instructure/quiz-i18n/es/format-message';
4
- var _ref = /*#__PURE__*/React.createElement("br", null);
5
4
  export var SessionBreachAlert = function SessionBreachAlert() {
6
5
  return /*#__PURE__*/React.createElement(Alert, {
7
6
  variant: "warning",
8
7
  margin: "small"
9
- }, t('Potential breach: This Quiz appears to have been accessed from multiple devices or browsers.'), _ref, t('Review the activity log and take appropriate action.'));
8
+ }, t('Potential breach: This Quiz appears to have been accessed from multiple devices or browsers.'), /*#__PURE__*/React.createElement("br", null), t('Review the activity log and take appropriate action.'));
10
9
  };
@@ -1,6 +1,6 @@
1
- import { connect } from "../../../../common/react-redux.js";
2
- import { closeTray } from "../../../../common/actions/moderation.js";
3
- import ModerateTrayPresenter from "./presenter.js";
1
+ import { connect } from '../../../../common/react-redux';
2
+ import { closeTray } from '../../../../common/actions/moderation';
3
+ import ModerateTrayPresenter from './presenter';
4
4
  export function mapStateToProps(state) {
5
5
  return {
6
6
  isOpen: state.getIn(['moderation', 'trayOpen']) || false,
@@ -1,7 +1,11 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
3
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
5
9
  import React, { Component } from 'react';
6
10
  import PropTypes from 'prop-types';
7
11
  import t from '@instructure/quiz-i18n/es/format-message';
@@ -16,56 +20,54 @@ import { Modal } from '@instructure/ui-modal';
16
20
  import { Flex, liveRegion } from '@instructure/quiz-common';
17
21
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
18
22
  export var ModerateTray = /*#__PURE__*/function (_Component) {
19
- _inherits(ModerateTray, _Component);
20
- var _super = _createSuper(ModerateTray);
21
23
  function ModerateTray() {
22
24
  var _this;
23
25
  _classCallCheck(this, ModerateTray);
24
26
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
25
27
  args[_key] = arguments[_key];
26
28
  }
27
- _this = _super.call.apply(_super, [this].concat(args));
28
- _this.state = {
29
+ _this = _callSuper(this, ModerateTray, [].concat(args));
30
+ _defineProperty(_this, "state", {
29
31
  titleIsTruncated: false,
30
32
  participantNameIsTruncated: false
31
- };
32
- _this.handleTitleUpdate = function (titleIsTruncated) {
33
+ });
34
+ _defineProperty(_this, "handleTitleUpdate", function (titleIsTruncated) {
33
35
  if (_this.state.titleIsTruncated !== titleIsTruncated) {
34
36
  _this.setState({
35
37
  titleIsTruncated: titleIsTruncated
36
38
  });
37
39
  }
38
- };
39
- _this.handleParticipantNameUpdate = function (participantNameIsTruncated) {
40
+ });
41
+ _defineProperty(_this, "handleParticipantNameUpdate", function (participantNameIsTruncated) {
40
42
  if (_this.state.participantNameIsTruncated !== participantNameIsTruncated) {
41
43
  _this.setState({
42
44
  participantNameIsTruncated: participantNameIsTruncated
43
45
  });
44
46
  }
45
- };
46
- _this.onClose = function () {
47
+ });
48
+ _defineProperty(_this, "onClose", function () {
47
49
  _this.props.onClose();
48
- };
49
- _this.handleTrayExited = function () {
50
+ });
51
+ _defineProperty(_this, "handleTrayExited", function () {
50
52
  _this.setState({
51
53
  titleIsTruncated: false,
52
54
  participantNameIsTruncated: false
53
55
  });
54
- };
55
- _this.setCloseRef = function (el) {
56
+ });
57
+ _defineProperty(_this, "setCloseRef", function (el) {
56
58
  return _this.closeRef = el;
57
- };
58
- _this.setTrayRef = function (el) {
59
+ });
60
+ _defineProperty(_this, "setTrayRef", function (el) {
59
61
  return _this.trayRef = el;
60
- };
61
- _this.getTrayRef = function () {
62
+ });
63
+ _defineProperty(_this, "getTrayRef", function () {
62
64
  return _this.trayRef;
63
- };
64
- _this.handleSave = function () {
65
+ });
66
+ _defineProperty(_this, "handleSave", function () {
65
67
  _this.props.onSave();
66
68
  _this.props.closeTray();
67
- };
68
- _this.renderTitleAndCloseButton = function () {
69
+ });
70
+ _defineProperty(_this, "renderTitleAndCloseButton", function () {
69
71
  return /*#__PURE__*/React.createElement(Modal.Header, null, /*#__PURE__*/React.createElement(CloseButton, {
70
72
  onClick: _this.props.closeTray,
71
73
  elementRef: _this.setCloseRef,
@@ -75,18 +77,18 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
75
77
  }), _this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? /*#__PURE__*/React.createElement(Heading, {
76
78
  level: "h3"
77
79
  }, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('In Progress Accommodation')), t('In Progress Accommodation')) : _this.renderHeading());
78
- };
79
- _this.renderChildren = function () {
80
+ });
81
+ _defineProperty(_this, "renderChildren", function () {
80
82
  return React.Children.map(_this.props.children, function (child) {
81
83
  if (!child) return null;
82
- return /*#__PURE__*/React.cloneElement(child, {
84
+ return React.cloneElement(child, {
83
85
  trayResetFocus: function trayResetFocus() {
84
86
  return _this.closeRef.focus();
85
87
  }
86
88
  });
87
89
  });
88
- };
89
- _this.renderFooter = function () {
90
+ });
91
+ _defineProperty(_this, "renderFooter", function () {
90
92
  return /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement(Button, {
91
93
  onClick: _this.props.closeTray,
92
94
  margin: "0 x-small 0 0"
@@ -95,10 +97,11 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
95
97
  type: "submit",
96
98
  onClick: _this.handleSave
97
99
  }, t('Apply')));
98
- };
100
+ });
99
101
  return _this;
100
102
  }
101
- _createClass(ModerateTray, [{
103
+ _inherits(ModerateTray, _Component);
104
+ return _createClass(ModerateTray, [{
102
105
  key: "renderHeading",
103
106
  value: function renderHeading() {
104
107
  var _this2 = this;
@@ -116,7 +119,7 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
116
119
  }, {
117
120
  key: "renderHeadingName",
118
121
  value: function renderHeadingName() {
119
- var _ref2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
122
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
120
123
  focused = _ref2.focused;
121
124
  return (
122
125
  /*#__PURE__*/
@@ -198,7 +201,7 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
198
201
  onExited: this.handleTrayExited,
199
202
  open: this.props.isOpen,
200
203
  placement: "end",
201
- size: this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? 'regular' : void 0,
204
+ size: this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? 'regular' : undefined,
202
205
  shouldCloseOnDocumentClick: true,
203
206
  ref: this.setTrayRef
204
207
  }, /*#__PURE__*/React.createElement(Flex, {
@@ -215,10 +218,8 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
215
218
  }, this.renderChildren()), this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled && /*#__PURE__*/React.createElement(Flex.Item, null, this.renderFooter())));
216
219
  }
217
220
  }]);
218
- ModerateTray.displayName = "ModerateTray";
219
- return ModerateTray;
220
221
  }(Component);
221
- ModerateTray.propTypes = {
222
+ _defineProperty(ModerateTray, "propTypes", {
222
223
  children: PropTypes.node.isRequired,
223
224
  closeTray: PropTypes.func.isRequired,
224
225
  isOpen: PropTypes.bool.isRequired,
@@ -226,9 +227,9 @@ ModerateTray.propTypes = {
226
227
  onSave: PropTypes.func.isRequired,
227
228
  participantName: PropTypes.string,
228
229
  atteqApplyChangesToCurrentQuizAttemptsEnabled: PropTypes.bool.isRequired
229
- };
230
- ModerateTray.defaultProps = {
230
+ });
231
+ _defineProperty(ModerateTray, "defaultProps", {
231
232
  onClose: void 0,
232
233
  participantName: null
233
- };
234
+ });
234
235
  export default ModerateTray;
@@ -1,10 +1,10 @@
1
- import { connect } from "../../../../common/react-redux.js";
2
- import ResetQuizPresenter from "./presenter.js";
3
- import { withConfirm } from "../../../../common/actions/modal.js";
4
- import { screenreaderNotification } from "../../../../common/actions/alerts.js";
5
- import { featureOn } from "../../../../common/util/featureCheck.js";
6
- import { reopenQuizSession } from "../../../api/quizSessions.js";
7
- import { getQuizSessionsByIds } from "../../../../common/selectors/quizSessions.js";
1
+ import { connect } from '../../../../common/react-redux';
2
+ import ResetQuizPresenter from './presenter';
3
+ import { withConfirm } from '../../../../common/actions/modal';
4
+ import { screenreaderNotification } from '../../../../common/actions/alerts';
5
+ import { featureOn } from '../../../../common/util/featureCheck';
6
+ import { reopenQuizSession } from '../../../api/quizSessions';
7
+ import { getQuizSessionsByIds } from '../../../../common/selectors/quizSessions';
8
8
  export function mapStateToProps(state) {
9
9
  var quizSessionIds = state.getIn(['moderation', 'selectedSessions']);
10
10
  var quizSessions = getQuizSessionsByIds(state, quizSessionIds).filter(function (qs) {
@@ -1,9 +1,13 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
5
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
6
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
8
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
7
11
  import React, { Component } from 'react';
8
12
  import PropTypes from 'prop-types';
9
13
  import t from '@instructure/quiz-i18n/es/format-message';
@@ -12,33 +16,29 @@ import { Heading } from '@instructure/ui-heading';
12
16
  import { Tooltip } from '@instructure/ui-tooltip';
13
17
  import { AccessibleContent } from '@instructure/ui-a11y-content';
14
18
  export var ResetQuiz = /*#__PURE__*/function (_Component) {
15
- _inherits(ResetQuiz, _Component);
16
- var _super = _createSuper(ResetQuiz);
17
19
  function ResetQuiz() {
18
20
  var _this;
19
21
  _classCallCheck(this, ResetQuiz);
20
22
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21
23
  args[_key] = arguments[_key];
22
24
  }
23
- _this = _super.call.apply(_super, [this].concat(args));
24
- _this.focusReopenButton = function () {
25
+ _this = _callSuper(this, ResetQuiz, [].concat(args));
26
+ _defineProperty(_this, "focusReopenButton", function () {
25
27
  _this.reopenButtonRef && _this.reopenButtonRef.focus();
26
- };
27
- _this.reopenQuizSession = function () {
28
+ });
29
+ _defineProperty(_this, "reopenQuizSession", function () {
28
30
  _this.props.withConfirm(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
29
31
  return _regeneratorRuntime.wrap(function _callee$(_context) {
30
- while (1) {
31
- switch (_context.prev = _context.next) {
32
- case 0:
33
- _context.next = 2;
34
- return _this.props.reopenQuizSession(_this.props.sessionId);
35
- case 2:
36
- _this.props.trayResetFocus();
37
- _this.props.screenreaderNotification(t("The student's attempt has been reopened"));
38
- case 4:
39
- case "end":
40
- return _context.stop();
41
- }
32
+ while (1) switch (_context.prev = _context.next) {
33
+ case 0:
34
+ _context.next = 2;
35
+ return _this.props.reopenQuizSession(_this.props.sessionId);
36
+ case 2:
37
+ _this.props.trayResetFocus();
38
+ _this.props.screenreaderNotification(t("The student's attempt has been reopened"));
39
+ case 4:
40
+ case "end":
41
+ return _context.stop();
42
42
  }
43
43
  }, _callee);
44
44
  })), {
@@ -49,13 +49,14 @@ export var ResetQuiz = /*#__PURE__*/function (_Component) {
49
49
  continueText: t('Reopen'),
50
50
  text: t("Reopening the most recent attempt allows the student to resume their assessment.\n Previously recorded responses will be retained and the timer,\n if applicable, will continue with the remaining time.")
51
51
  });
52
- };
53
- _this.reopenButtonRef = function (node) {
52
+ });
53
+ _defineProperty(_this, "reopenButtonRef", function (node) {
54
54
  _this.reopenButtonRef = node;
55
- };
55
+ });
56
56
  return _this;
57
57
  }
58
- _createClass(ResetQuiz, [{
58
+ _inherits(ResetQuiz, _Component);
59
+ return _createClass(ResetQuiz, [{
59
60
  key: "render",
60
61
  value: function render() {
61
62
  if (!this.props.reopenOn) return null;
@@ -86,10 +87,8 @@ export var ResetQuiz = /*#__PURE__*/function (_Component) {
86
87
  return reOpen;
87
88
  }
88
89
  }]);
89
- ResetQuiz.displayName = "ResetQuiz";
90
- return ResetQuiz;
91
90
  }(Component);
92
- ResetQuiz.propTypes = {
91
+ _defineProperty(ResetQuiz, "propTypes", {
93
92
  sessionId: PropTypes.string.isRequired,
94
93
  isComplete: PropTypes.bool.isRequired,
95
94
  trayResetFocus: PropTypes.func.isRequired,
@@ -98,5 +97,5 @@ ResetQuiz.propTypes = {
98
97
  screenreaderNotification: PropTypes.func.isRequired,
99
98
  withConfirm: PropTypes.func.isRequired,
100
99
  reopenOverride: PropTypes.bool.isRequired
101
- };
100
+ });
102
101
  export default ResetQuiz;
package/es/reduxStore.js CHANGED
@@ -1,7 +1,7 @@
1
- import config from "./config.js";
2
- import persistedState from "./common/util/persistedState.js";
3
- import persistedStorageMiddleware from "./common/middleware/persistedStorageMiddleware.js";
4
- import configureStore from "./configureStore.js";
1
+ import config from './config';
2
+ import persistedState from './common/util/persistedState';
3
+ import persistedStorageMiddleware from './common/middleware/persistedStorageMiddleware';
4
+ import configureStore from './configureStore';
5
5
  export var store = configureStore({
6
6
  extraMiddleware: [persistedStorageMiddleware()],
7
7
  inDevelopment: config.inDevelopment(),
@@ -21,7 +21,7 @@ export function unsetFakeStore(fakeState) {
21
21
  store.fakeState = null;
22
22
  }
23
23
  store.getAppState = function () {
24
- var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
24
+ var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
25
25
  return store.useFakeState || opts.useFakeState ? store.fakeState : store.getState();
26
26
  };
27
27
  export default store;
@@ -1,7 +1,7 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
- import Fetcher from "../../common/util/Fetcher.js";
4
- import { featureOn } from "../../common/util/featureCheck.js";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ import Fetcher from '../../common/util/Fetcher';
4
+ import { featureOn } from '../../common/util/featureCheck';
5
5
  var fetcher = new Fetcher();
6
6
  export var fetchStudentAnalyses = /*#__PURE__*/function () {
7
7
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(quizId) {
@@ -11,21 +11,19 @@ export var fetchStudentAnalyses = /*#__PURE__*/function () {
11
11
  url,
12
12
  _args = arguments;
13
13
  return _regeneratorRuntime.wrap(function _callee$(_context) {
14
- while (1) {
15
- switch (_context.prev = _context.next) {
16
- case 0:
17
- filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
18
- isMultiAttemptEnabled = featureOn('student_analysis_multiple_attempts');
19
- selectedFilter = isMultiAttemptEnabled ? 'all_attempts' : filter;
20
- url = "/api/quizzes/".concat(quizId, "/analyses/student_analyses?filter=").concat(selectedFilter);
21
- _context.next = 6;
22
- return fetcher.get(url);
23
- case 6:
24
- return _context.abrupt("return", _context.sent);
25
- case 7:
26
- case "end":
27
- return _context.stop();
28
- }
14
+ while (1) switch (_context.prev = _context.next) {
15
+ case 0:
16
+ filter = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'last_attempt';
17
+ isMultiAttemptEnabled = featureOn('student_analysis_multiple_attempts');
18
+ selectedFilter = isMultiAttemptEnabled ? 'all_attempts' : filter;
19
+ url = "/api/quizzes/".concat(quizId, "/analyses/student_analyses?filter=").concat(selectedFilter);
20
+ _context.next = 6;
21
+ return fetcher.get(url);
22
+ case 6:
23
+ return _context.abrupt("return", _context.sent);
24
+ case 7:
25
+ case "end":
26
+ return _context.stop();
29
27
  }
30
28
  }, _callee);
31
29
  }));