@instructure/quiz-core 21.1.1 → 21.2.1

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