@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
@@ -4,51 +4,53 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.QuintileDistribution = void 0;
7
+ exports["default"] = exports.QuintileDistribution = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
10
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
14
  var _react = require("react");
13
15
  var _propTypes = require("prop-types");
14
16
  var _emotion = require("@instructure/emotion");
15
17
  var _uiA11yContent = require("@instructure/ui-a11y-content");
16
18
  var _uiTable = require("@instructure/ui-table");
17
19
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
18
- var _index = _interopRequireDefault(require("../Distribution/index.js"));
19
- var _styles = _interopRequireDefault(require("./styles.js"));
20
- var _theme = _interopRequireDefault(require("./theme.js"));
20
+ var _Distribution = _interopRequireDefault(require("../Distribution"));
21
+ var _styles = _interopRequireDefault(require("./styles"));
22
+ var _theme = _interopRequireDefault(require("./theme"));
21
23
  var _quizCommon = require("@instructure/quiz-common");
22
24
  var _dec, _class, _QuintileDistribution;
23
25
  /** @jsx jsx */
24
26
  /* eslint "no-mixed-operators": "warn" */
25
- var QuintileDistribution = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme.default), _dec(_class = (_QuintileDistribution = /*#__PURE__*/function (_Component) {
26
- (0, _inherits2.default)(QuintileDistribution, _Component);
27
- var _super = (0, _createSuper2.default)(QuintileDistribution);
27
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
28
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
+ var QuintileDistribution = exports.QuintileDistribution = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_QuintileDistribution = /*#__PURE__*/function (_Component) {
28
30
  function QuintileDistribution() {
29
31
  var _this;
30
- (0, _classCallCheck2.default)(this, QuintileDistribution);
32
+ (0, _classCallCheck2["default"])(this, QuintileDistribution);
31
33
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
32
34
  args[_key] = arguments[_key];
33
35
  }
34
- _this = _super.call.apply(_super, [this].concat(args));
35
- _this._calculateAxis = function (_, _2, xAxis) {
36
+ _this = _callSuper(this, QuintileDistribution, [].concat(args));
37
+ (0, _defineProperty2["default"])(_this, "_calculateAxis", function (_, _2, xAxis) {
36
38
  xAxis.tickFormat(_this.calculateLabelForIndex);
37
- };
38
- _this.calculateLabelForIndex = function (d) {
39
+ });
40
+ (0, _defineProperty2["default"])(_this, "calculateLabelForIndex", function (d) {
39
41
  var numBars = _this.props.visualDistribution.length;
40
42
  if (_this.props.calculateLabelForColumn) {
41
43
  return _this.props.calculateLabelForColumn(d, numBars);
42
44
  }
43
45
  var lower = Math.floor(d * 100 / numBars);
44
46
  var upper = Math.floor((d + 1) * 100 / numBars - (d < numBars - 1 ? 1 : 0));
45
- return (0, _formatMessage.default)('{lower, number}-{upper, number}%', {
47
+ return (0, _formatMessage["default"])('{lower, number}-{upper, number}%', {
46
48
  lower: lower,
47
49
  upper: upper
48
50
  });
49
- };
51
+ });
50
52
  // updateChart
51
- _this._renderNumbers = function (svg, x, y, applyTransition, barContainer, height) {
53
+ (0, _defineProperty2["default"])(_this, "_renderNumbers", function (svg, x, y, applyTransition, barContainer, height) {
52
54
  var chartData = _this.props.visualDistribution;
53
55
  var numbers = barContainer.selectAll('text').data(chartData);
54
56
  var texts = numbers.enter().insert('text', 'rect').attr('style', (0, _emotion.css)(_this.props.styles.barLabel).styles).text(function (d) {
@@ -68,19 +70,20 @@ var QuintileDistribution = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.d
68
70
  });
69
71
  });
70
72
  numbers.exit().remove();
71
- };
72
- _this._renderTable = function () {
73
+ });
74
+ (0, _defineProperty2["default"])(_this, "_renderTable", function () {
73
75
  return (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _emotion.jsx)(_uiTable.Table, {
74
- caption: (0, _formatMessage.default)('Score percentiles chart data')
76
+ caption: (0, _formatMessage["default"])('Score percentiles chart data')
75
77
  }, (0, _emotion.jsx)(_uiTable.Table.Head, null, (0, _emotion.jsx)(_uiTable.Table.Row, null, (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
76
78
  id: "score-percentiles-chart-data-score-percentile-range"
77
- }, (0, _formatMessage.default)('Score Percentile Range')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
79
+ }, (0, _formatMessage["default"])('Score Percentile Range')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
78
80
  id: "score-percentiles-chart-data-count"
79
- }, (0, _formatMessage.default)('Count')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, _this.renderTableRows())));
80
- };
81
+ }, (0, _formatMessage["default"])('Count')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, _this.renderTableRows())));
82
+ });
81
83
  return _this;
82
84
  }
83
- (0, _createClass2.default)(QuintileDistribution, [{
85
+ (0, _inherits2["default"])(QuintileDistribution, _Component);
86
+ return (0, _createClass2["default"])(QuintileDistribution, [{
84
87
  key: "renderTableRows",
85
88
  value: function renderTableRows() {
86
89
  var _this2 = this;
@@ -100,12 +103,10 @@ var QuintileDistribution = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.d
100
103
  renderTable: this._renderTable,
101
104
  updateChart: this._renderNumbers
102
105
  });
103
- return (0, _emotion.jsx)(_index.default, props);
106
+ return (0, _emotion.jsx)(_Distribution["default"], props);
104
107
  }
105
108
  }]);
106
- QuintileDistribution.displayName = "QuintileDistribution";
107
- return QuintileDistribution;
108
- }(_react.Component), _QuintileDistribution.displayName = 'QuintileDistribution', _QuintileDistribution.componentId = "Quizzes".concat(_QuintileDistribution.displayName), _QuintileDistribution.propTypes = {
109
+ }(_react.Component), (0, _defineProperty2["default"])(_QuintileDistribution, "displayName", 'QuintileDistribution'), (0, _defineProperty2["default"])(_QuintileDistribution, "componentId", "Quizzes".concat(_QuintileDistribution.displayName)), (0, _defineProperty2["default"])(_QuintileDistribution, "propTypes", {
109
110
  animateDelay: _propTypes.PropTypes.number,
110
111
  animateDuration: _propTypes.PropTypes.number,
111
112
  barPaddingInner: _propTypes.PropTypes.number,
@@ -132,7 +133,7 @@ var QuintileDistribution = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.d
132
133
  * */
133
134
  calculateLabelForColumn: _propTypes.PropTypes.func,
134
135
  styles: _propTypes.PropTypes.object
135
- }, _QuintileDistribution.defaultProps = {
136
+ }), (0, _defineProperty2["default"])(_QuintileDistribution, "defaultProps", {
136
137
  animateDelay: 200,
137
138
  animateDuration: 900,
138
139
  barPaddingInner: 0.375,
@@ -144,7 +145,5 @@ var QuintileDistribution = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.d
144
145
  summaryDistribution: void 0,
145
146
  visualDistribution: [],
146
147
  calculateLabelForColumn: null
147
- }, _QuintileDistribution)) || _class);
148
- exports.QuintileDistribution = QuintileDistribution;
149
- var _default = QuintileDistribution;
150
- exports.default = _default;
148
+ }), _QuintileDistribution)) || _class);
149
+ var _default = exports["default"] = QuintileDistribution;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateStyle = function generateStyle(componentTheme) {
8
8
  return {
9
9
  barLabel: {
@@ -14,5 +14,4 @@ var generateStyle = function generateStyle(componentTheme) {
14
14
  }
15
15
  };
16
16
  };
17
- var _default = generateStyle;
18
- exports.default = _default;
17
+ var _default = exports["default"] = generateStyle;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateComponentTheme = function generateComponentTheme(_ref) {
8
8
  var colors = _ref.colors,
9
9
  typography = _ref.typography;
@@ -13,5 +13,4 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
13
13
  barLabelFontSize: typography.fontSizeSmall
14
14
  };
15
15
  };
16
- var _default = generateComponentTheme;
17
- exports.default = _default;
16
+ var _default = exports["default"] = generateComponentTheme;
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
7
+ exports["default"] = void 0;
8
8
  var _immutable = require("immutable");
9
- var _ItemAnalysis = _interopRequireDefault(require("../../../../common/records/ItemAnalysis.js"));
10
- var standardItemAnalysis = new _ItemAnalysis.default((0, _immutable.fromJS)({
9
+ var _ItemAnalysis = _interopRequireDefault(require("../../../../common/records/ItemAnalysis"));
10
+ var standardItemAnalysis = new _ItemAnalysis["default"]((0, _immutable.fromJS)({
11
11
  itemId: '3',
12
12
  itemAnalysis: {
13
13
  scoreInfo: {
@@ -33,9 +33,8 @@ var standardItemAnalysis = new _ItemAnalysis.default((0, _immutable.fromJS)({
33
33
  }]
34
34
  }
35
35
  }));
36
- var _default = {
36
+ var _default = exports["default"] = {
37
37
  propValues: {
38
38
  itemAnalysis: [standardItemAnalysis]
39
39
  }
40
- };
41
- exports.default = _default;
40
+ };
@@ -4,11 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.AnswerFrequencySummary = void 0;
7
+ exports["default"] = exports.AnswerFrequencySummary = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
10
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
14
  var _react = require("react");
13
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
16
  var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
@@ -20,38 +22,37 @@ var _uiTable = require("@instructure/ui-table");
20
22
  var _emotion = require("@instructure/emotion");
21
23
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
22
24
  var _quizInteractions = require("@instructure/quiz-interactions");
23
- var _theme = _interopRequireDefault(require("./theme.js"));
24
- var _styles = _interopRequireDefault(require("./styles.js"));
25
+ var _theme = _interopRequireDefault(require("./theme"));
26
+ var _styles = _interopRequireDefault(require("./styles"));
25
27
  var _quizCommon = require("@instructure/quiz-common");
26
28
  var _dec, _class, _AnswerFrequencySummary;
27
29
  /** @jsx jsx */
28
- var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
29
- var _ref2 = (0, _emotion.jsx)(_uiIcons.IconXSolid, null);
30
- var AnswerFrequencySummary = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme.default), _dec(_class = (_AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
31
- (0, _inherits2.default)(AnswerFrequencySummary, _Component);
32
- var _super = (0, _createSuper2.default)(AnswerFrequencySummary);
30
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
31
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
+ var AnswerFrequencySummary = exports.AnswerFrequencySummary = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
33
33
  function AnswerFrequencySummary() {
34
34
  var _this;
35
- (0, _classCallCheck2.default)(this, AnswerFrequencySummary);
35
+ (0, _classCallCheck2["default"])(this, AnswerFrequencySummary);
36
36
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
37
  args[_key] = arguments[_key];
38
38
  }
39
- _this = _super.call.apply(_super, [this].concat(args));
40
- _this.renderAnswerTableRow = function (choiceInfo, choiceIndex) {
39
+ _this = _callSuper(this, AnswerFrequencySummary, [].concat(args));
40
+ (0, _defineProperty2["default"])(_this, "renderAnswerTableRow", function (choiceInfo, choiceIndex) {
41
41
  var choiceSum = _this.props.itemAnalysis.choiceCountSum();
42
42
  var choiceBody = _this.renderChoiceBody(choiceInfo);
43
43
  return (0, _emotion.jsx)(_uiTable.Table.Row, {
44
44
  key: choiceIndex
45
- }, (0, _emotion.jsx)(_uiTable.Table.Cell, null, _this.isCorrect(choiceInfo) ? _ref : _ref2, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, _this.getBarTitle(choiceInfo))), (0, _emotion.jsx)(_uiTable.Table.RowHeader, null, (0, _emotion.jsx)("span", {
45
+ }, (0, _emotion.jsx)(_uiTable.Table.Cell, null, _this.isCorrect(choiceInfo) ? (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null) : (0, _emotion.jsx)(_uiIcons.IconXSolid, null), (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, _this.getBarTitle(choiceInfo))), (0, _emotion.jsx)(_uiTable.Table.RowHeader, null, (0, _emotion.jsx)("span", {
46
46
  "data-testid": "answer-textfield",
47
47
  title: choiceBody
48
- }, choiceBody)), (0, _emotion.jsx)(_uiTable.Table.Cell, null, _formatMessage.default.number(Math.floor(choiceInfo.get('choiceCount')))), (0, _emotion.jsx)(_uiTable.Table.Cell, null, choiceSum > 0 ? _formatMessage.default.number(choiceInfo.get('choiceCount') / choiceSum, 'percent') : 0), (0, _emotion.jsx)(_uiTable.Table.Cell, {
48
+ }, choiceBody)), (0, _emotion.jsx)(_uiTable.Table.Cell, null, _formatMessage["default"].number(Math.floor(choiceInfo.get('choiceCount')))), (0, _emotion.jsx)(_uiTable.Table.Cell, null, choiceSum > 0 ? _formatMessage["default"].number(choiceInfo.get('choiceCount') / choiceSum, 'percent') : 0), (0, _emotion.jsx)(_uiTable.Table.Cell, {
49
49
  "aria-hidden": "true"
50
50
  }, _this.renderBarPlot(choiceInfo)));
51
- };
51
+ });
52
52
  return _this;
53
53
  }
54
- (0, _createClass2.default)(AnswerFrequencySummary, [{
54
+ (0, _inherits2["default"])(AnswerFrequencySummary, _Component);
55
+ return (0, _createClass2["default"])(AnswerFrequencySummary, [{
55
56
  key: "getBarStyles",
56
57
  value: function getBarStyles(choiceInfo) {
57
58
  var highest = this.props.itemAnalysis.choiceCountMax();
@@ -70,7 +71,7 @@ var AnswerFrequencySummary = (_dec = (0, _quizCommon.withStyleOverrides)(_styles
70
71
  }, {
71
72
  key: "getBarTitle",
72
73
  value: function getBarTitle(choiceInfo) {
73
- return this.isCorrect(choiceInfo) ? (0, _formatMessage.default)('Correct Answer') : (0, _formatMessage.default)('Incorrect Answer');
74
+ return this.isCorrect(choiceInfo) ? (0, _formatMessage["default"])('Correct Answer') : (0, _formatMessage["default"])('Incorrect Answer');
74
75
  }
75
76
  }, {
76
77
  key: "renderBarPlot",
@@ -80,7 +81,7 @@ var AnswerFrequencySummary = (_dec = (0, _quizCommon.withStyleOverrides)(_styles
80
81
  "data-testid": "bar",
81
82
  css: barStyles,
82
83
  style: this.getBarStyles(choiceInfo),
83
- alt: (0, _formatMessage.default)('Graph bar'),
84
+ alt: (0, _formatMessage["default"])('Graph bar'),
84
85
  title: this.getBarTitle(choiceInfo)
85
86
  });
86
87
  }
@@ -96,31 +97,27 @@ var AnswerFrequencySummary = (_dec = (0, _quizCommon.withStyleOverrides)(_styles
96
97
  value: function render() {
97
98
  var choiceInfo = this.props.itemAnalysis.choiceInfo();
98
99
  this.unansweredChoiceInfo = (0, _immutable.fromJS)({
99
- itemBody: (0, _formatMessage.default)('(No answer)'),
100
+ itemBody: (0, _formatMessage["default"])('(No answer)'),
100
101
  choiceCount: this.props.itemAnalysis.unansweredInfo()
101
102
  });
102
103
  return (0, _emotion.jsx)("div", {
103
104
  css: this.props.styles.content,
104
105
  "data-automation": "sdk-reporting-frequency-summary"
105
106
  }, (0, _emotion.jsx)(_uiTable.Table, {
106
- caption: (0, _formatMessage.default)('Answer Frequency Summary')
107
+ caption: (0, _formatMessage["default"])('Answer Frequency Summary')
107
108
  }, (0, _emotion.jsx)(_uiTable.Table.Head, null, (0, _emotion.jsx)(_uiTable.Table.Row, null, (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
108
109
  id: "answer-frequency-summary-is-correct"
109
- }, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Is Correct?'))), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
110
+ }, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('Is Correct?'))), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
110
111
  id: "answer-frequency-sumary-answer"
111
- }, (0, _formatMessage.default)('Answer')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
112
+ }, (0, _formatMessage["default"])('Answer')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
112
113
  id: "answer-frequency-summary-respondents"
113
- }, (0, _formatMessage.default)('Respondents')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
114
+ }, (0, _formatMessage["default"])('Respondents')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
114
115
  id: "answer-frequency-summary-answer-ratio"
115
- }, (0, _formatMessage.default)('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choiceInfo.toArray().map(this.renderAnswerTableRow), this.renderAnswerTableRow(this.unansweredChoiceInfo, choiceInfo.size))));
116
+ }, (0, _formatMessage["default"])('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choiceInfo.toArray().map(this.renderAnswerTableRow), this.renderAnswerTableRow(this.unansweredChoiceInfo, choiceInfo.size))));
116
117
  }
117
118
  }]);
118
- AnswerFrequencySummary.displayName = "AnswerFrequencySummary";
119
- return AnswerFrequencySummary;
120
- }(_react.Component), _AnswerFrequencySummary.displayName = 'AnswerFrequencySummary', _AnswerFrequencySummary.componentId = "Quizzes".concat(_AnswerFrequencySummary.displayName), _AnswerFrequencySummary.propTypes = {
121
- itemAnalysis: _reactImmutableProptypes.default.record.isRequired,
122
- styles: _propTypes.default.object
123
- }, _AnswerFrequencySummary)) || _class);
124
- exports.AnswerFrequencySummary = AnswerFrequencySummary;
125
- var _default = AnswerFrequencySummary;
126
- exports.default = _default;
119
+ }(_react.Component), (0, _defineProperty2["default"])(_AnswerFrequencySummary, "displayName", 'AnswerFrequencySummary'), (0, _defineProperty2["default"])(_AnswerFrequencySummary, "componentId", "Quizzes".concat(_AnswerFrequencySummary.displayName)), (0, _defineProperty2["default"])(_AnswerFrequencySummary, "propTypes", {
120
+ itemAnalysis: _reactImmutableProptypes["default"].record.isRequired,
121
+ styles: _propTypes["default"].object
122
+ }), _AnswerFrequencySummary)) || _class);
123
+ var _default = exports["default"] = AnswerFrequencySummary;
@@ -4,17 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
7
+ exports["default"] = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _emotion = require("@instructure/emotion");
10
- function _templateObject() {
11
- var data = (0, _taggedTemplateLiteral2.default)(["\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }"]);
12
- _templateObject = function _templateObject() {
13
- return data;
14
- };
15
- return data;
16
- }
17
- var contentAnimation = (0, _emotion.keyframes)(_templateObject());
10
+ var _templateObject;
11
+ var contentAnimation = (0, _emotion.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }"])));
18
12
  var generateStyle = function generateStyle(componentTheme, props) {
19
13
  var contentCellStyles = {
20
14
  borderBottomColor: componentTheme.contentCellBorderColor,
@@ -43,5 +37,4 @@ var generateStyle = function generateStyle(componentTheme, props) {
43
37
  }
44
38
  };
45
39
  };
46
- var _default = generateStyle;
47
- exports.default = _default;
40
+ var _default = exports["default"] = generateStyle;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateComponentTheme = function generateComponentTheme(_ref) {
8
8
  var breakpoints = _ref.breakpoints,
9
9
  colors = _ref.colors,
@@ -30,5 +30,4 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
30
30
  barTransition: "width ".concat(transitions.duration)
31
31
  };
32
32
  };
33
- var _default = generateComponentTheme;
34
- exports.default = _default;
33
+ var _default = exports["default"] = generateComponentTheme;
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
7
+ exports["default"] = void 0;
8
8
  var _immutable = require("immutable");
9
- var _ItemAnalysis = _interopRequireDefault(require("../../../../common/records/ItemAnalysis.js"));
10
- var standardItemAnalysis = new _ItemAnalysis.default((0, _immutable.fromJS)({
9
+ var _ItemAnalysis = _interopRequireDefault(require("../../../../common/records/ItemAnalysis"));
10
+ var standardItemAnalysis = new _ItemAnalysis["default"]((0, _immutable.fromJS)({
11
11
  itemId: '3',
12
12
  itemBody: 'This is the item body',
13
13
  itemAnalysis: {
@@ -39,7 +39,7 @@ var standardItemAnalysis = new _ItemAnalysis.default((0, _immutable.fromJS)({
39
39
  quintile: [1, 2, 3, 4, 5]
40
40
  }
41
41
  }));
42
- var _default = {
42
+ var _default = exports["default"] = {
43
43
  propValues: {
44
44
  animateDelay: [0],
45
45
  animateDuration: [0],
@@ -52,5 +52,4 @@ var _default = {
52
52
  outcomesToken: [''],
53
53
  screenreaderNotification: [Function.prototype]
54
54
  }
55
- };
56
- exports.default = _default;
55
+ };
@@ -4,16 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.mapDispatchToProps = void 0;
7
+ exports.mapDispatchToProps = exports["default"] = void 0;
8
8
  var _redux = require("redux");
9
- var _reactRedux = require("../../../../common/react-redux.js");
10
- var _alerts = require("../../../../common/actions/alerts.js");
11
- var _presenter = _interopRequireDefault(require("./presenter.js"));
12
- var mapDispatchToProps = function mapDispatchToProps(dispatch) {
9
+ var _reactRedux = require("../../../../common/react-redux");
10
+ var _alerts = require("../../../../common/actions/alerts");
11
+ var _presenter = _interopRequireDefault(require("./presenter"));
12
+ var mapDispatchToProps = exports.mapDispatchToProps = function mapDispatchToProps(dispatch) {
13
13
  return {
14
14
  screenreaderNotification: (0, _redux.bindActionCreators)(_alerts.screenreaderNotification, dispatch)
15
15
  };
16
16
  };
17
- exports.mapDispatchToProps = mapDispatchToProps;
18
- var _default = (0, _reactRedux.connect)(null, mapDispatchToProps)(_presenter.default);
19
- exports.default = _default;
17
+ var _default = exports["default"] = (0, _reactRedux.connect)(null, mapDispatchToProps)(_presenter["default"]);