@instructure/quiz-core 20.31.0 → 20.31.1-snapshot.2

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 (751) hide show
  1. package/CHANGELOG.md +4724 -0
  2. package/es/banks/components/BankEntryRow/presenter.js +0 -1
  3. package/es/banks/components/SharingModal/presenter.js +0 -1
  4. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +0 -1
  5. package/es/common/components/shared/overlay/index.js +0 -1
  6. package/es/common/records/index.js +16 -32
  7. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +0 -1
  8. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +0 -1
  9. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +46 -55
  10. package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -0
  11. package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +2 -0
  12. package/lib/banks/api/bankEntries.js +13 -24
  13. package/lib/banks/api/banks.js +15 -26
  14. package/lib/banks/api/copyingBanksPoller.js +2 -4
  15. package/lib/banks/api/tagAssociations.js +5 -8
  16. package/lib/banks/components/AddBankEntryModal/index.js +2 -4
  17. package/lib/banks/components/AddBankEntryModal/presenter.js +2 -4
  18. package/lib/banks/components/AddToBankModal/index.js +2 -3
  19. package/lib/banks/components/AddToBankModal/presenter.js +2 -4
  20. package/lib/banks/components/AsyncSearch/index.js +2 -4
  21. package/lib/banks/components/Bank/index.js +3 -5
  22. package/lib/banks/components/Bank/presenter.js +2 -4
  23. package/lib/banks/components/Bank/styles.js +1 -2
  24. package/lib/banks/components/Bank/theme.js +1 -2
  25. package/lib/banks/components/BankEntriesList/index.js +2 -3
  26. package/lib/banks/components/BankEntriesList/presenter.js +2 -4
  27. package/lib/banks/components/BankEntriesList/styles.js +1 -2
  28. package/lib/banks/components/BankEntriesList/theme.js +1 -2
  29. package/lib/banks/components/BankEntry/index.js +2 -4
  30. package/lib/banks/components/BankEntry/presenter.js +2 -4
  31. package/lib/banks/components/BankEntry/styles.js +1 -2
  32. package/lib/banks/components/BankEntry/theme.js +1 -2
  33. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -3
  34. package/lib/banks/components/BankEntryRow/index.js +1 -2
  35. package/lib/banks/components/BankEntryRow/presenter.js +2 -5
  36. package/lib/banks/components/BankEntryRow/styles.js +1 -2
  37. package/lib/banks/components/BankEntryRow/theme.js +1 -2
  38. package/lib/banks/components/BankSearch/BankSearch.stories.js +7 -12
  39. package/lib/banks/components/BankSearch/index.js +1 -2
  40. package/lib/banks/components/BankSearch/presenter.js +2 -4
  41. package/lib/banks/components/BankSearch/styles.js +1 -2
  42. package/lib/banks/components/BankSearch/theme.js +1 -2
  43. package/lib/banks/components/Banks/index.js +2 -4
  44. package/lib/banks/components/Banks/presenter.js +2 -4
  45. package/lib/banks/components/Banks/styles.js +1 -2
  46. package/lib/banks/components/Banks/theme.js +1 -2
  47. package/lib/banks/components/BanksList/index.js +3 -4
  48. package/lib/banks/components/BanksList/presenter.js +2 -4
  49. package/lib/banks/components/BanksList/styles.js +1 -2
  50. package/lib/banks/components/BanksList/theme.js +1 -2
  51. package/lib/banks/components/CopyMoveBankEntryModal/index.js +2 -3
  52. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -4
  53. package/lib/banks/components/CreateBankModal/index.js +1 -2
  54. package/lib/banks/components/CreateBankModal/presenter.js +2 -4
  55. package/lib/banks/components/CreateBankModal/styles.js +1 -2
  56. package/lib/banks/components/CreateBankModal/theme.js +1 -2
  57. package/lib/banks/components/EditBankModal/index.js +1 -2
  58. package/lib/banks/components/EditBankModal/presenter.js +2 -4
  59. package/lib/banks/components/EditBankModal/styles.js +1 -2
  60. package/lib/banks/components/EditBankModal/theme.js +1 -2
  61. package/lib/banks/components/HeaderBreadCrumb/index.js +2 -4
  62. package/lib/banks/components/HeaderMenu/index.js +1 -2
  63. package/lib/banks/components/HeaderMenu/presenter.js +2 -4
  64. package/lib/banks/components/HeaderMenu/styles.js +1 -2
  65. package/lib/banks/components/HeaderMenu/theme.js +1 -2
  66. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +2 -3
  67. package/lib/banks/components/NavWrapper/index.js +1 -2
  68. package/lib/banks/components/NavWrapper/presenter.js +1 -2
  69. package/lib/banks/components/NavWrapper/styles.js +1 -2
  70. package/lib/banks/components/NavWrapper/theme.js +1 -2
  71. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -2
  72. package/lib/banks/components/SharingModal/RootAccountSharing.js +2 -4
  73. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +2 -3
  74. package/lib/banks/components/SharingModal/ShareList/index.js +2 -4
  75. package/lib/banks/components/SharingModal/ShareList/styles.js +1 -2
  76. package/lib/banks/components/SharingModal/index.js +1 -2
  77. package/lib/banks/components/SharingModal/presenter.js +2 -5
  78. package/lib/banks/components/SharingModal/styles.js +1 -2
  79. package/lib/banks/components/SharingModal/theme.js +1 -2
  80. package/lib/building/api/items.js +1 -1
  81. package/lib/building/api/qtiImports.js +5 -9
  82. package/lib/building/api/quizEntries.js +9 -10
  83. package/lib/building/api/quizzes.js +15 -15
  84. package/lib/building/api/stimuli.js +1 -1
  85. package/lib/building/components/QTIImportModal/index.js +5 -9
  86. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +1 -2
  87. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +5 -9
  88. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +2 -4
  89. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -2
  90. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +1 -2
  91. package/lib/building/components/layout/Sidebar/Stimulus/index.js +5 -9
  92. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +2 -4
  93. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -2
  94. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +1 -2
  95. package/lib/building/components/layout/Sidebar/index.js +5 -9
  96. package/lib/building/components/layout/Sidebar/presenter.js +2 -4
  97. package/lib/building/components/layout/Sidebar/styles.js +1 -2
  98. package/lib/building/components/layout/Sidebar/theme.js +1 -2
  99. package/lib/building/components/layout/header/BuildingButtons/index.js +3 -5
  100. package/lib/building/components/layout/header/BuildingButtons/presenter.js +2 -4
  101. package/lib/building/components/layout/header/BuildingButtons/styles.js +1 -2
  102. package/lib/building/components/layout/header/BuildingButtons/theme.js +1 -2
  103. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +2 -4
  104. package/lib/building/components/resources/ActionButtons/index.js +2 -4
  105. package/lib/building/components/resources/ActionButtons/presenter.js +2 -4
  106. package/lib/building/components/resources/ActionButtons/styles.js +1 -2
  107. package/lib/building/components/resources/ActionButtons/theme.js +1 -2
  108. package/lib/building/components/resources/AddToBankOptions/index.js +2 -4
  109. package/lib/building/components/resources/AddToBankOptions/styles.js +1 -2
  110. package/lib/building/components/resources/AddToBankOptions/theme.js +1 -2
  111. package/lib/building/components/resources/BanksTray/index.js +2 -4
  112. package/lib/building/components/resources/BanksTray/presenter.js +2 -4
  113. package/lib/building/components/resources/DeleteStimulusModal/index.js +2 -4
  114. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +2 -4
  115. package/lib/building/components/resources/DeleteStimulusModal/styles.js +1 -2
  116. package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -2
  117. package/lib/building/components/resources/ItemFeedbackModal/index.js +2 -4
  118. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +2 -4
  119. package/lib/building/components/resources/ItemFeedbackModal/styles.js +1 -2
  120. package/lib/building/components/resources/ItemFeedbackModal/theme.js +1 -2
  121. package/lib/building/components/resources/MoveImmutableModal/index.js +2 -4
  122. package/lib/building/components/resources/MoveImmutableModal/presenter.js +2 -4
  123. package/lib/building/components/resources/quiz/editButton/EditButton.js +1 -2
  124. package/lib/building/components/resources/quiz/instructions/Edit/index.js +1 -2
  125. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -2
  126. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +1 -2
  127. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +2 -3
  128. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +2 -4
  129. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +2 -4
  130. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +1 -2
  131. package/lib/building/components/resources/quiz/instructions/Show/index.js +2 -4
  132. package/lib/building/components/resources/quiz/instructions/Show/styles.js +1 -2
  133. package/lib/building/components/resources/quiz/title/Edit/index.js +2 -4
  134. package/lib/building/components/resources/quiz/title/Edit/styles.js +1 -2
  135. package/lib/building/components/resources/quiz/title/Edit/theme.js +1 -2
  136. package/lib/building/components/resources/quiz/title/Show/index.js +2 -4
  137. package/lib/building/components/resources/quiz/title/Show/styles.js +1 -2
  138. package/lib/building/components/resources/quiz/title/Show/theme.js +1 -2
  139. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +2 -3
  140. package/lib/building/components/resources/quiz/title/Title/index.js +2 -4
  141. package/lib/building/components/resources/quiz/title/Title/presenter.js +2 -4
  142. package/lib/building/components/resources/quiz/title/Title/styles.js +1 -2
  143. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +4 -7
  144. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -4
  145. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +1 -2
  146. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +1 -2
  147. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +1 -2
  148. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +3 -4
  149. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +2 -4
  150. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -2
  151. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +1 -2
  152. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +2 -4
  153. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -2
  154. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +1 -2
  155. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -3
  156. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -4
  157. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
  158. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +1 -2
  159. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -2
  160. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -2
  161. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -2
  162. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +1 -2
  163. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +4 -8
  164. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
  165. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +1 -2
  166. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +2 -4
  167. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -7
  168. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +1 -2
  169. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +1 -2
  170. package/lib/common/actions/alerts.js +2 -2
  171. package/lib/common/actions/analyses.js +7 -7
  172. package/lib/common/actions/bankEntries.js +3 -5
  173. package/lib/common/actions/bankSearch.js +6 -10
  174. package/lib/common/actions/banks.js +8 -14
  175. package/lib/common/actions/config.js +1 -1
  176. package/lib/common/actions/editing.js +1 -1
  177. package/lib/common/actions/errorsShowing.js +1 -1
  178. package/lib/common/actions/grading.js +2 -2
  179. package/lib/common/actions/modal.js +3 -3
  180. package/lib/common/actions/modifications.js +29 -29
  181. package/lib/common/actions/printing.js +1 -1
  182. package/lib/common/actions/quizExport.js +2 -3
  183. package/lib/common/actions/quizSessionEvents.js +2 -3
  184. package/lib/common/actions/quizSessionResults.js +2 -3
  185. package/lib/common/actions/quizSessions.js +8 -13
  186. package/lib/common/actions/quizzes.js +8 -14
  187. package/lib/common/actions/rce.js +5 -8
  188. package/lib/common/actions/regrading.js +1 -1
  189. package/lib/common/actions/reporting.js +1 -1
  190. package/lib/common/actions/scrolling.js +1 -1
  191. package/lib/common/actions/sessionItemResults.js +2 -3
  192. package/lib/common/actions/sessionItems.js +2 -3
  193. package/lib/common/actions/sharedBanks.js +5 -8
  194. package/lib/common/actions/sidebar.js +1 -1
  195. package/lib/common/actions/tagAssociations.js +9 -17
  196. package/lib/common/actions/taking.js +20 -38
  197. package/lib/common/actions/ui.js +11 -20
  198. package/lib/common/actions/upload.js +6 -11
  199. package/lib/common/api/callHandlers.js +25 -46
  200. package/lib/common/api/camelizeHelpers.js +2 -4
  201. package/lib/common/api/features.js +2 -3
  202. package/lib/common/api/fileUpload.js +2 -3
  203. package/lib/common/api/getPersistenceActions.js +1 -2
  204. package/lib/common/api/helpers.js +7 -10
  205. package/lib/common/api/interactionTypes.js +2 -3
  206. package/lib/common/api/quizSessions.js +17 -26
  207. package/lib/common/api/quizzes.js +2 -2
  208. package/lib/common/api/schema.js +20 -37
  209. package/lib/common/components/ApiFeatureFlagInitializer/index.js +3 -5
  210. package/lib/common/components/ConfirmationModal/index.js +1 -2
  211. package/lib/common/components/ConfirmationModal/presenter.js +2 -4
  212. package/lib/common/components/ImportModal/ImportFileSelector/index.js +2 -4
  213. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +1 -2
  214. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +1 -2
  215. package/lib/common/components/ImportModal/index.js +5 -7
  216. package/lib/common/components/ImportModal/presenter.js +2 -4
  217. package/lib/common/components/ImportModal/styles.js +1 -2
  218. package/lib/common/components/ImportModal/theme.js +1 -2
  219. package/lib/common/components/LearnosityCalculator/index.js +2 -4
  220. package/lib/common/components/Pin/Pin.examples.js +2 -3
  221. package/lib/common/components/Pin/index.js +2 -4
  222. package/lib/common/components/Pin/presenter.js +2 -4
  223. package/lib/common/components/PreviewFrame/examples.config.js +2 -3
  224. package/lib/common/components/PreviewFrame/index.js +2 -4
  225. package/lib/common/components/PrintFontSizeModal/index.js +1 -2
  226. package/lib/common/components/PrintFontSizeModal/presenter.js +2 -4
  227. package/lib/common/components/PrintFontSizeModal/styles.js +1 -2
  228. package/lib/common/components/PrintFontSizeModal/theme.js +1 -2
  229. package/lib/common/components/RceConfigProvider/index.js +1 -2
  230. package/lib/common/components/RceConfigProvider/presenter.js +1 -2
  231. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +3 -5
  232. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +7 -12
  233. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +2 -3
  234. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +2 -3
  235. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +4 -6
  236. package/lib/common/components/SDKApp/index.js +4 -7
  237. package/lib/common/components/SDKApp/styles.js +1 -2
  238. package/lib/common/components/SDKHeaderCalculator.js +2 -4
  239. package/lib/common/components/SDKMenuButton.js +2 -4
  240. package/lib/common/components/SDKNavBar.js +2 -4
  241. package/lib/common/components/SDKTimer.js +2 -4
  242. package/lib/common/components/alerts/index.js +2 -3
  243. package/lib/common/components/alerts/presenter.js +2 -4
  244. package/lib/common/components/alerts/styles.js +1 -2
  245. package/lib/common/components/alerts/theme.js +1 -2
  246. package/lib/common/components/layout/Page/index.js +2 -4
  247. package/lib/common/components/layout/Page/styles.js +1 -2
  248. package/lib/common/components/layout/Page/theme.js +1 -2
  249. package/lib/common/components/layout/header/Calculator/index.js +2 -4
  250. package/lib/common/components/layout/header/Calculator/presenter.js +2 -4
  251. package/lib/common/components/layout/header/HeaderMenuButton/index.js +5 -7
  252. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +2 -4
  253. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +1 -2
  254. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +1 -2
  255. package/lib/common/components/layout/header/Timer/index.js +1 -2
  256. package/lib/common/components/layout/header/Timer/presenter.js +2 -4
  257. package/lib/common/components/layout/header/Timer/styles.js +1 -2
  258. package/lib/common/components/layout/header/Timer/theme.js +1 -2
  259. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +2 -4
  260. package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -2
  261. package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -2
  262. package/lib/common/components/layout/navbar/index.js +2 -4
  263. package/lib/common/components/layout/navbar/styles.js +1 -2
  264. package/lib/common/components/layout/navbar/theme.js +1 -2
  265. package/lib/common/components/layout/sidebar/PositionSummary/index.js +2 -4
  266. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +1 -2
  267. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +1 -2
  268. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +2 -4
  269. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -3
  270. package/lib/common/components/layout/sidebar/Sidebar/index.js +2 -4
  271. package/lib/common/components/layout/sidebar/Sidebar/styles.js +1 -2
  272. package/lib/common/components/layout/sidebar/Sidebar/theme.js +1 -2
  273. package/lib/common/components/layout/sidebar/SidebarItem/index.js +5 -9
  274. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -4
  275. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +1 -2
  276. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +1 -2
  277. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +2 -3
  278. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +2 -4
  279. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +1 -2
  280. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -2
  281. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +2 -3
  282. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +2 -4
  283. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -2
  284. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +1 -2
  285. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +2 -4
  286. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -2
  287. package/lib/common/components/layout/sidebar/Stimulus/index.js +5 -9
  288. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +3 -6
  289. package/lib/common/components/layout/sidebar/Stimulus/styles.js +1 -2
  290. package/lib/common/components/layout/sidebar/Stimulus/theme.js +1 -2
  291. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +2 -3
  292. package/lib/common/components/resources/BankSelection/index.js +3 -4
  293. package/lib/common/components/resources/BankSelection/presenter.js +2 -4
  294. package/lib/common/components/resources/WarningWrapper/index.js +2 -4
  295. package/lib/common/components/resources/WarningWrapper/styles.js +1 -2
  296. package/lib/common/components/resources/WarningWrapper/theme.js +1 -2
  297. package/lib/common/components/resources/entry/EntrySave/index.js +2 -3
  298. package/lib/common/components/resources/entry/EntrySave/presenter.js +2 -4
  299. package/lib/common/components/resources/item/ItemEdit/index.js +2 -3
  300. package/lib/common/components/resources/item/ItemEdit/presenter.js +2 -4
  301. package/lib/common/components/resources/item/ItemOverride/index.js +1 -2
  302. package/lib/common/components/resources/item/ItemOverride/presenter.js +2 -4
  303. package/lib/common/components/resources/item/ItemShow/index.js +1 -2
  304. package/lib/common/components/resources/positionBox/PositionBox.js +2 -4
  305. package/lib/common/components/resources/positionBox/styles.js +1 -2
  306. package/lib/common/components/resources/positionBox/theme.js +1 -2
  307. package/lib/common/components/resources/quiz/AddContent/Body/index.js +1 -2
  308. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -4
  309. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +1 -2
  310. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +1 -2
  311. package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -4
  312. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +1 -2
  313. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +1 -2
  314. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +2 -4
  315. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +2 -4
  316. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +3 -5
  317. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -4
  318. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +1 -2
  319. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
  320. package/lib/common/components/resources/quiz/info/QuizInfo.js +2 -4
  321. package/lib/common/components/resources/quiz/instructions/Instructions.js +2 -4
  322. package/lib/common/components/resources/quiz/instructions/styles.js +1 -2
  323. package/lib/common/components/resources/quiz/instructions/theme.js +1 -2
  324. package/lib/common/components/resources/quiz/title/Title.js +2 -4
  325. package/lib/common/components/resources/quiz/title/styles.js +1 -2
  326. package/lib/common/components/resources/quiz/title/theme.js +1 -2
  327. package/lib/common/components/resources/quizSessionResult/Header/index.js +2 -4
  328. package/lib/common/components/resources/quizSessionResult/Header/styles.js +1 -2
  329. package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -2
  330. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -3
  331. package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -4
  332. package/lib/common/components/resources/quizSessionResult/Info/styles.js +1 -2
  333. package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -2
  334. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +2 -4
  335. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +1 -2
  336. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +1 -2
  337. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +2 -4
  338. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -4
  339. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +1 -2
  340. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +1 -2
  341. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +2 -4
  342. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -2
  343. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -2
  344. package/lib/common/components/resources/stimulus/Stimulus/index.js +1 -2
  345. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +2 -4
  346. package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -2
  347. package/lib/common/components/resources/stimulus/Stimulus/theme.js +1 -2
  348. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +1 -2
  349. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -4
  350. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -2
  351. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +1 -2
  352. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +1 -2
  353. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -4
  354. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -2
  355. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -2
  356. package/lib/common/components/resources/stimulus/StimulusShow/index.js +2 -4
  357. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +1 -2
  358. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +1 -2
  359. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +2 -3
  360. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -2
  361. package/lib/common/components/shared/Card/CardContent/index.js +2 -4
  362. package/lib/common/components/shared/Card/CardContent/styles.js +1 -2
  363. package/lib/common/components/shared/Card/CardContent/theme.js +1 -2
  364. package/lib/common/components/shared/Card/CardWrapper/index.js +2 -4
  365. package/lib/common/components/shared/Card/CardWrapper/styles.js +1 -2
  366. package/lib/common/components/shared/Card/CardWrapper/theme.js +1 -2
  367. package/lib/common/components/shared/Card/index.js +1 -2
  368. package/lib/common/components/shared/ExpandButton/index.js +2 -4
  369. package/lib/common/components/shared/ExpandButton/styles.js +1 -2
  370. package/lib/common/components/shared/ExpandButton/theme.js +1 -2
  371. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +2 -3
  372. package/lib/common/components/shared/FormattedDuration/index.js +7 -11
  373. package/lib/common/components/shared/IfFeature/index.js +3 -5
  374. package/lib/common/components/shared/IfFeature/presenter.js +2 -4
  375. package/lib/common/components/shared/InteractionTypes/index.js +1 -2
  376. package/lib/common/components/shared/InteractionTypes/presenter.js +2 -4
  377. package/lib/common/components/shared/InteractionTypes/styles.js +1 -2
  378. package/lib/common/components/shared/InteractionTypes/theme.js +1 -2
  379. package/lib/common/components/shared/PaginatedCollection/index.js +3 -4
  380. package/lib/common/components/shared/PaginatedCollection/presenter.js +2 -4
  381. package/lib/common/components/shared/PaginatedCollection/styles.js +1 -2
  382. package/lib/common/components/shared/PaginatedCollection/theme.js +1 -2
  383. package/lib/common/components/shared/Paginator/index.js +2 -4
  384. package/lib/common/components/shared/Paginator/styles.js +1 -2
  385. package/lib/common/components/shared/Paginator/theme.js +1 -2
  386. package/lib/common/components/shared/PrintTrigger/index.js +3 -5
  387. package/lib/common/components/shared/PrintTrigger/presenter.js +2 -4
  388. package/lib/common/components/shared/TagDisplay/index.js +2 -4
  389. package/lib/common/components/shared/TagDisplay/styles.js +1 -2
  390. package/lib/common/components/shared/TagSelect/index.js +1 -2
  391. package/lib/common/components/shared/TagSelect/presenter.js +2 -4
  392. package/lib/common/components/shared/TagSuggestSelect/index.js +1 -2
  393. package/lib/common/components/shared/TagSuggestSelect/presenter.js +2 -4
  394. package/lib/common/components/shared/TagWrapper/index.js +1 -2
  395. package/lib/common/components/shared/TagWrapper/presenter.js +2 -4
  396. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +2 -3
  397. package/lib/common/components/shared/TimeUnitsInput/index.js +2 -4
  398. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +2 -4
  399. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +1 -2
  400. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +1 -2
  401. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +3 -5
  402. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +2 -4
  403. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +17 -19
  404. package/lib/common/components/shared/errors/Errors.js +2 -4
  405. package/lib/common/components/shared/errors/styles.js +1 -2
  406. package/lib/common/components/shared/errors/theme.js +1 -2
  407. package/lib/common/components/shared/file_selector/FileSelector.js +2 -4
  408. package/lib/common/components/shared/file_selector/styles.js +1 -2
  409. package/lib/common/components/shared/file_selector/theme.js +1 -2
  410. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +1 -2
  411. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +1 -2
  412. package/lib/common/components/shared/functionality/disableDraggingOverride.js +2 -3
  413. package/lib/common/components/shared/functionality/makeEditable.js +3 -5
  414. package/lib/common/components/shared/functionality/makeScrollable.js +4 -7
  415. package/lib/common/components/shared/overlay/index.js +1 -3
  416. package/lib/common/components/shared/overlay/styles.js +1 -2
  417. package/lib/common/components/shared/overlay/theme.js +1 -2
  418. package/lib/common/components/shared/return_button/ReturnButton.js +2 -4
  419. package/lib/common/components/shared/spinner/Spinner.js +2 -4
  420. package/lib/common/components/shared/spinner/styles.js +1 -2
  421. package/lib/common/kinesis/QuizEventsLogger.js +4 -7
  422. package/lib/common/kinesis/StreamQueue.js +2 -3
  423. package/lib/common/kinesis/client.js +5 -9
  424. package/lib/common/kinesis/config.js +6 -10
  425. package/lib/common/kinesis/eventTypes.js +8 -15
  426. package/lib/common/middleware/alertTimerMiddleware.js +1 -2
  427. package/lib/common/middleware/crossDomainMessagingMiddleware.js +1 -2
  428. package/lib/common/middleware/eventLoggerMiddleware.js +1 -2
  429. package/lib/common/middleware/persistedStorageMiddleware.js +1 -2
  430. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +8 -14
  431. package/lib/common/react-redux.js +2 -3
  432. package/lib/common/records/Alert.js +2 -4
  433. package/lib/common/records/Bank.js +2 -4
  434. package/lib/common/records/BankEntry.js +2 -4
  435. package/lib/common/records/Item.js +2 -4
  436. package/lib/common/records/ItemAnalysis.js +2 -4
  437. package/lib/common/records/QtiImport.js +2 -4
  438. package/lib/common/records/Quiz.js +2 -4
  439. package/lib/common/records/QuizAnalysis.js +2 -4
  440. package/lib/common/records/QuizEntry.js +2 -4
  441. package/lib/common/records/QuizSession.js +2 -4
  442. package/lib/common/records/QuizSessionEvent.js +2 -4
  443. package/lib/common/records/QuizSessionResult.js +2 -4
  444. package/lib/common/records/Response.js +2 -4
  445. package/lib/common/records/SessionItem.js +2 -4
  446. package/lib/common/records/SessionItemResult.js +2 -4
  447. package/lib/common/records/Stimulus.js +2 -4
  448. package/lib/common/records/baseRecord.js +2 -3
  449. package/lib/common/records/index.js +34 -34
  450. package/lib/common/reducers/alerts.js +2 -3
  451. package/lib/common/reducers/analyses.js +15 -28
  452. package/lib/common/reducers/bankEntries.js +2 -3
  453. package/lib/common/reducers/bankSearch.js +2 -3
  454. package/lib/common/reducers/banks.js +2 -3
  455. package/lib/common/reducers/calls.js +2 -3
  456. package/lib/common/reducers/config.js +2 -3
  457. package/lib/common/reducers/dragAndDrop.js +2 -3
  458. package/lib/common/reducers/editing.js +2 -3
  459. package/lib/common/reducers/errorsShowing.js +2 -3
  460. package/lib/common/reducers/features.js +2 -3
  461. package/lib/common/reducers/grading.js +2 -3
  462. package/lib/common/reducers/interactionTypes.js +2 -3
  463. package/lib/common/reducers/items.js +2 -3
  464. package/lib/common/reducers/modal.js +2 -3
  465. package/lib/common/reducers/moderation.js +2 -3
  466. package/lib/common/reducers/modifications.js +2 -3
  467. package/lib/common/reducers/outcomes.js +2 -3
  468. package/lib/common/reducers/printing.js +2 -3
  469. package/lib/common/reducers/qtiImports.js +2 -3
  470. package/lib/common/reducers/quizEntries.js +2 -3
  471. package/lib/common/reducers/quizExport.js +2 -3
  472. package/lib/common/reducers/quizSessionEvents.js +2 -3
  473. package/lib/common/reducers/quizSessionResults.js +2 -3
  474. package/lib/common/reducers/quizSessions.js +2 -3
  475. package/lib/common/reducers/quizzes.js +2 -3
  476. package/lib/common/reducers/rce.js +2 -3
  477. package/lib/common/reducers/regrading.js +2 -3
  478. package/lib/common/reducers/reporting.js +2 -3
  479. package/lib/common/reducers/scrolling.js +2 -3
  480. package/lib/common/reducers/sessionItemResults.js +2 -3
  481. package/lib/common/reducers/sessionItems.js +2 -3
  482. package/lib/common/reducers/sharedBanks.js +2 -3
  483. package/lib/common/reducers/sidebar.js +2 -3
  484. package/lib/common/reducers/stimuli.js +2 -3
  485. package/lib/common/reducers/tagAssociations.js +2 -3
  486. package/lib/common/reducers/taking.js +2 -3
  487. package/lib/common/reducers/ui.js +2 -3
  488. package/lib/common/reducers/upload.js +2 -3
  489. package/lib/common/selectors/analyses.js +13 -24
  490. package/lib/common/selectors/interactionTypes.js +2 -4
  491. package/lib/common/selectors/qtiImports.js +2 -3
  492. package/lib/common/selectors/quizSessionResults.js +1 -1
  493. package/lib/common/selectors/quizSessions.js +8 -14
  494. package/lib/common/selectors/quizzes.js +13 -25
  495. package/lib/common/selectors/rce.js +4 -6
  496. package/lib/common/selectors/reporting.js +2 -3
  497. package/lib/common/selectors/sessionItemResults.js +3 -4
  498. package/lib/common/selectors/sessionItems.js +3 -4
  499. package/lib/common/selectors/taking.js +8 -11
  500. package/lib/common/selectors/ui.js +2 -3
  501. package/lib/common/util/CustomPropTypes.js +3 -5
  502. package/lib/common/util/ElementsForSelectors.js +2 -3
  503. package/lib/common/util/ExhaustivePaginatedFetcher.js +1 -2
  504. package/lib/common/util/Fetcher.js +2 -4
  505. package/lib/common/util/MultiWeakMap.js +2 -3
  506. package/lib/common/util/PaginatedFetcher.js +2 -4
  507. package/lib/common/util/ThunkQueue.js +2 -3
  508. package/lib/common/util/TimeRecordingService.js +2 -4
  509. package/lib/common/util/TimerService.js +3 -6
  510. package/lib/common/util/cachePreviousArgs.js +2 -3
  511. package/lib/common/util/callHelpers.js +6 -10
  512. package/lib/common/util/componentForItem.js +2 -4
  513. package/lib/common/util/debounceLatestPromise.js +2 -3
  514. package/lib/common/util/formatTimespan.js +2 -3
  515. package/lib/common/util/generateDisplayPositions.js +2 -3
  516. package/lib/common/util/httpHeaders.js +5 -8
  517. package/lib/common/util/immutableHelpers.js +5 -8
  518. package/lib/common/util/instUIMessages.js +2 -3
  519. package/lib/common/util/interactionTypeMetadata.js +4 -6
  520. package/lib/common/util/interactionTypePropsHelper.js +3 -5
  521. package/lib/common/util/interactionTypeRecordForItem.js +1 -2
  522. package/lib/common/util/jsonify.js +3 -4
  523. package/lib/common/util/keyboardClickable.js +1 -2
  524. package/lib/common/util/mathRenderingUtils.js +2 -4
  525. package/lib/common/util/maxContent.js +2 -3
  526. package/lib/common/util/noop.js +2 -3
  527. package/lib/common/util/persistedState.js +1 -2
  528. package/lib/common/util/printUtils.js +4 -6
  529. package/lib/common/util/rceChecker.js +2 -3
  530. package/lib/common/util/renderAlerts.js +2 -3
  531. package/lib/common/util/serializeEvent.js +2 -3
  532. package/lib/common/util/sessionStore.js +2 -4
  533. package/lib/common/util/valMap.js +2 -3
  534. package/lib/common/util/warningHelpers.js +9 -16
  535. package/lib/common/util/windowChecks.js +7 -12
  536. package/lib/common/util/withCachedArguments.js +2 -3
  537. package/lib/common/util/withDynamoPagination.js +2 -3
  538. package/lib/common/util/withStateCache.js +1 -2
  539. package/lib/config.js +3 -5
  540. package/lib/configureStore.js +1 -2
  541. package/lib/grading/api/updateResults.js +2 -3
  542. package/lib/index.js +398 -397
  543. package/lib/messages/LocalStorageAdapter.js +2 -4
  544. package/lib/messages/LocalStorageLimits.js +1 -2
  545. package/lib/messages/StorageExhaustionError.js +2 -3
  546. package/lib/messages/postMessageService.js +2 -3
  547. package/lib/messages/subjectHandlers/forwardMessage.js +1 -2
  548. package/lib/messages/subjectHandlers/lti.capabilities.js +1 -2
  549. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +1 -2
  550. package/lib/messages/subjectHandlers/lti.frameResize.js +1 -2
  551. package/lib/messages/subjectHandlers/lti.get_data.js +1 -2
  552. package/lib/messages/subjectHandlers/lti.put_data.js +1 -2
  553. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +2 -4
  554. package/lib/moderating/api/quizSessions.js +1 -1
  555. package/lib/moderating/components/events/Event.js +2 -4
  556. package/lib/moderating/components/events/PageBlurredEvent.js +2 -4
  557. package/lib/moderating/components/events/PageFocusedEvent.js +2 -4
  558. package/lib/moderating/components/events/RCEEvent.js +2 -4
  559. package/lib/moderating/components/events/ResponseEvent.js +2 -4
  560. package/lib/moderating/components/events/SessionStartEvent.js +2 -4
  561. package/lib/moderating/components/events/styles.js +1 -2
  562. package/lib/moderating/components/events/theme.js +1 -2
  563. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +2 -3
  564. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -2
  565. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +2 -3
  566. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +2 -4
  567. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -2
  568. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +2 -3
  569. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +2 -4
  570. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +2 -4
  571. package/lib/moderating/components/resources/AccommodationsModal/index.js +2 -4
  572. package/lib/moderating/components/resources/ElapsedTime.js +2 -4
  573. package/lib/moderating/components/resources/ModerateTable/index.js +4 -7
  574. package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -4
  575. package/lib/moderating/components/resources/ModerateTable/styles.js +1 -2
  576. package/lib/moderating/components/resources/ModerateTable/theme.js +1 -2
  577. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -3
  578. package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -3
  579. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +2 -4
  580. package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -2
  581. package/lib/moderating/components/resources/ModerateTableRow/styles.js +1 -2
  582. package/lib/moderating/components/resources/ModerateTableRow/theme.js +1 -2
  583. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +2 -3
  584. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +3 -5
  585. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -4
  586. package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +1 -2
  587. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +2 -3
  588. package/lib/moderating/components/sidebar/ModerateTray/index.js +3 -4
  589. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +2 -4
  590. package/lib/moderating/components/sidebar/ResetQuiz/index.js +3 -4
  591. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +2 -4
  592. package/lib/reduxStore.js +4 -5
  593. package/lib/reporting/api/fetchStudentAnalyses.js +2 -3
  594. package/lib/reporting/api/getAnalysesExport.js +2 -3
  595. package/lib/reporting/api/getAnalysesStatus.js +2 -3
  596. package/lib/reporting/api/getItemAnalyses.js +2 -3
  597. package/lib/reporting/api/getQuizAnalysis.js +2 -3
  598. package/lib/reporting/components/Caption/index.js +2 -4
  599. package/lib/reporting/components/Caption/styles.js +1 -2
  600. package/lib/reporting/components/Caption/theme.js +1 -2
  601. package/lib/reporting/components/MetricsListItem/index.js +2 -4
  602. package/lib/reporting/components/MetricsListItem/styles.js +1 -2
  603. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +2 -3
  604. package/lib/reporting/components/charts/CentileDistribution/index.js +1 -2
  605. package/lib/reporting/components/charts/CentileDistribution/presenter.js +2 -4
  606. package/lib/reporting/components/charts/CentileDistribution/styles.js +1 -2
  607. package/lib/reporting/components/charts/CentileDistribution/theme.js +1 -2
  608. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +2 -4
  609. package/lib/reporting/components/charts/Distribution/Distribution.js +1 -2
  610. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +1 -2
  611. package/lib/reporting/components/charts/Distribution/index.js +1 -2
  612. package/lib/reporting/components/charts/Distribution/presenter.js +4 -7
  613. package/lib/reporting/components/charts/Distribution/styles.js +1 -2
  614. package/lib/reporting/components/charts/Distribution/theme.js +1 -2
  615. package/lib/reporting/components/charts/Legend/index.js +2 -4
  616. package/lib/reporting/components/charts/Legend/styles.js +1 -2
  617. package/lib/reporting/components/charts/Legend/theme.js +1 -2
  618. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +2 -3
  619. package/lib/reporting/components/charts/QuintileDistribution/index.js +1 -2
  620. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +2 -4
  621. package/lib/reporting/components/charts/QuintileDistribution/styles.js +1 -2
  622. package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -2
  623. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +2 -3
  624. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +2 -4
  625. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +1 -2
  626. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +1 -2
  627. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +2 -3
  628. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -5
  629. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -4
  630. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +1 -2
  631. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +1 -2
  632. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +2 -4
  633. package/lib/reporting/components/quizAnalysis/styles.js +1 -2
  634. package/lib/reporting/components/quizAnalysis/theme.js +1 -2
  635. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -2
  636. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +2 -3
  637. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -2
  638. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -2
  639. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +2 -3
  640. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -2
  641. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +1 -2
  642. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +1 -2
  643. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +2 -3
  644. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -2
  645. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -2
  646. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +2 -3
  647. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -2
  648. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -2
  649. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -2
  650. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -2
  651. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +2 -3
  652. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -2
  653. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -2
  654. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -2
  655. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +6 -6
  656. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +1 -2
  657. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -2
  658. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -3
  659. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -2
  660. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -2
  661. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -3
  662. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -2
  663. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -2
  664. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +1 -2
  665. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +2 -4
  666. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -2
  667. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
  668. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -4
  669. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +1 -2
  670. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +2 -4
  671. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +1 -2
  672. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -2
  673. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +2 -3
  674. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +2 -3
  675. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -2
  676. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +2 -3
  677. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -2
  678. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -2
  679. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +2 -3
  680. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +1 -2
  681. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
  682. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +2 -3
  683. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -2
  684. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -2
  685. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -4
  686. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -2
  687. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +2 -3
  688. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -2
  689. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -2
  690. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +2 -3
  691. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -2
  692. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -2
  693. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +1 -2
  694. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +4 -7
  695. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -3
  696. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +1 -2
  697. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -2
  698. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -2
  699. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +4 -6
  700. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +2 -3
  701. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -2
  702. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -2
  703. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -4
  704. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +2 -3
  705. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +1 -2
  706. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
  707. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -2
  708. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +2 -3
  709. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -2
  710. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +1 -2
  711. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
  712. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +2 -3
  713. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +2 -3
  714. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -4
  715. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +2 -5
  716. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -2
  717. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -2
  718. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +3 -5
  719. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +2 -3
  720. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +3 -5
  721. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +2 -4
  722. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +2 -3
  723. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +3 -5
  724. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -4
  725. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -2
  726. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -2
  727. package/lib/reporting/components/resources/ReportCard/index.js +2 -4
  728. package/lib/reporting/components/resources/ReportCard/styles.js +1 -2
  729. package/lib/reporting/components/resources/ReportCard/theme.js +1 -2
  730. package/lib/reporting/components/resources/ReportList/index.js +2 -4
  731. package/lib/reporting/components/resources/ReportList/styles.js +1 -2
  732. package/lib/reporting/components/resources/ReportList/theme.js +1 -2
  733. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +1 -2
  734. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +48 -57
  735. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +4 -3
  736. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +4 -3
  737. package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +2 -3
  738. package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +2 -3
  739. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -3
  740. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +2 -3
  741. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -2
  742. package/lib/reporting/components/resources/common/ExportButton/index.js +1 -2
  743. package/lib/reporting/components/resources/common/errorCodes.js +9 -16
  744. package/lib/reporting/components/resources/common/errorMessages.js +10 -18
  745. package/lib/reporting/components/resources/common/exportReports.js +2 -3
  746. package/lib/reporting/components/resources/common/generateReports.js +3 -5
  747. package/lib/reporting/components/resources/common/propTypes.js +18 -34
  748. package/lib/reporting/components/resources/common/utils.js +4 -6
  749. package/lib/taking/api/taking.js +14 -16
  750. package/lib/taking/learnosity/index.js +1 -1
  751. package/package.json +13 -11
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.isEditingQuizEntry = exports.getQuizEntryWithErrorsShowing = exports.isActiveQuizWorkingInstanceOneQuestionAtATime = exports.getTemporaryQuizEntry = exports.getQuizEntryById = exports.getQuizEntriesByIds = exports.getQuizEntriesByQuizId = exports.getTotalPointsPossible = exports.getQuizById = exports.getActiveQuizCaluclatorType = exports.getActiveQuizId = exports.getActiveQuiz = void 0;
7
+ exports.isEditingQuizEntry = exports.isActiveQuizWorkingInstanceOneQuestionAtATime = exports.getTotalPointsPossible = exports.getTemporaryQuizEntry = exports.getQuizEntryWithErrorsShowing = exports.getQuizEntryById = exports.getQuizEntriesByQuizId = exports.getQuizEntriesByIds = exports.getQuizById = exports.getActiveQuizId = exports.getActiveQuizCaluclatorType = exports.getActiveQuiz = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
@@ -17,61 +17,51 @@ var _withStateCache = _interopRequireDefault(require("../util/withStateCache.js"
17
17
  var _reduxStore = _interopRequireDefault(require("../../reduxStore.js"));
18
18
  var _dec, _dec2, _class; // TODO: Use reselect! Create a getQuizzes selector that can be used for reselecting quizzes by id
19
19
  var path = 'quizzes';
20
- var getActiveQuiz = function getActiveQuiz(state) {
20
+ var getActiveQuiz = exports.getActiveQuiz = function getActiveQuiz(state) {
21
21
  return getQuizById(state, getActiveQuizId(state));
22
22
  };
23
- exports.getActiveQuiz = getActiveQuiz;
24
- var getActiveQuizId = function getActiveQuizId(state) {
23
+ var getActiveQuizId = exports.getActiveQuizId = function getActiveQuizId(state) {
25
24
  // For some reason this could be defined in one or the other of these, or neither.
26
25
  return state.getIn([path, 'activeQuizId']) || (0, _quizSessions.getActiveQuizSession)(state) && (0, _quizSessions.getActiveQuizSession)(state).get('quiz');
27
26
  };
28
- exports.getActiveQuizId = getActiveQuizId;
29
- var getActiveQuizCaluclatorType = function getActiveQuizCaluclatorType(state) {
27
+ var getActiveQuizCaluclatorType = exports.getActiveQuizCaluclatorType = function getActiveQuizCaluclatorType(state) {
30
28
  return state.getIn([path, getActiveQuizId(state), 'calculatorType']);
31
29
  };
32
- exports.getActiveQuizCaluclatorType = getActiveQuizCaluclatorType;
33
- var getQuizById = function getQuizById(state, id) {
30
+ var getQuizById = exports.getQuizById = function getQuizById(state, id) {
34
31
  return _Quiz.default.create(state.getIn([path, id]));
35
32
  };
36
- exports.getQuizById = getQuizById;
37
- var getTotalPointsPossible = function getTotalPointsPossible(state, quizId) {
33
+ var getTotalPointsPossible = exports.getTotalPointsPossible = function getTotalPointsPossible(state, quizId) {
38
34
  var quizEntries = getQuizEntriesByQuizId(state, quizId);
39
35
  return quizEntries.reduce(function (total, entry) {
40
36
  return total + (entry.isBank ? entry.bankPointsPossible : entry.pointsPossible);
41
37
  }, 0);
42
38
  };
43
- exports.getTotalPointsPossible = getTotalPointsPossible;
44
- var getQuizEntriesByQuizId = function getQuizEntriesByQuizId(state, quizId) {
39
+ var getQuizEntriesByQuizId = exports.getQuizEntriesByQuizId = function getQuizEntriesByQuizId(state, quizId) {
45
40
  var quiz = getQuizById(state, quizId);
46
41
  return getQuizEntriesByIds(state, quiz.get('quizEntries', (0, _immutable.List)()));
47
42
  };
48
- exports.getQuizEntriesByQuizId = getQuizEntriesByQuizId;
49
- var getQuizEntriesByIds = function getQuizEntriesByIds(state) {
43
+ var getQuizEntriesByIds = exports.getQuizEntriesByIds = function getQuizEntriesByIds(state) {
50
44
  var ids = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
51
45
  return ids.reduce(function (list, id) {
52
46
  var quizEntry = getQuizEntryById(state, id);
53
47
  return quizEntry ? list.push(quizEntry) : list;
54
48
  }, (0, _immutable.List)());
55
49
  };
56
- exports.getQuizEntriesByIds = getQuizEntriesByIds;
57
- var getQuizEntryById = function getQuizEntryById(state, id) {
50
+ var getQuizEntryById = exports.getQuizEntryById = function getQuizEntryById(state, id) {
58
51
  if (id === _quizCommon.TEMPORARY_QUIZ_ENTRY_ID) {
59
52
  return getTemporaryQuizEntry(state);
60
53
  }
61
54
  return _QuizEntry.default.create(state.getIn(['quizEntries', id]));
62
55
  };
63
- exports.getQuizEntryById = getQuizEntryById;
64
- var getTemporaryQuizEntry = function getTemporaryQuizEntry(state) {
56
+ var getTemporaryQuizEntry = exports.getTemporaryQuizEntry = function getTemporaryQuizEntry(state) {
65
57
  var temporaryQuizEntryData = state.getIn(['modifications', 'quizEntries', _quizCommon.TEMPORARY_QUIZ_ENTRY_ID], (0, _immutable.Map)({
66
58
  entry: _quizCommon.TEMPORARY_ITEM_ID
67
59
  }));
68
60
  return _QuizEntry.default.create(temporaryQuizEntryData);
69
61
  };
70
- exports.getTemporaryQuizEntry = getTemporaryQuizEntry;
71
- var isActiveQuizWorkingInstanceOneQuestionAtATime = function isActiveQuizWorkingInstanceOneQuestionAtATime(state) {
62
+ var isActiveQuizWorkingInstanceOneQuestionAtATime = exports.isActiveQuizWorkingInstanceOneQuestionAtATime = function isActiveQuizWorkingInstanceOneQuestionAtATime(state) {
72
63
  return getActiveQuiz(state).getWorkingInstance().isOneQuestionAtATime();
73
64
  };
74
- exports.isActiveQuizWorkingInstanceOneQuestionAtATime = isActiveQuizWorkingInstanceOneQuestionAtATime;
75
65
  var CacheHelper = (_dec = (0, _withStateCache.default)(function () {
76
66
  return [['quizEntries'], ['modifications', 'quizEntries'], ['modifications', 'items'], ['modifications', 'stimuli'], ['editing']];
77
67
  }), _dec2 = (0, _withStateCache.default)(function () {
@@ -121,7 +111,5 @@ var CacheHelper = (_dec = (0, _withStateCache.default)(function () {
121
111
  var cacheHelper = new CacheHelper();
122
112
 
123
113
  // This is a hack to continue using withStateCache until we implement reselect
124
- var getQuizEntryWithErrorsShowing = cacheHelper.quizEntryWithErrorsShowing.bind(cacheHelper);
125
- exports.getQuizEntryWithErrorsShowing = getQuizEntryWithErrorsShowing;
126
- var isEditingQuizEntry = cacheHelper.editingQuizEntry.bind(cacheHelper);
127
- exports.isEditingQuizEntry = isEditingQuizEntry;
114
+ var getQuizEntryWithErrorsShowing = exports.getQuizEntryWithErrorsShowing = cacheHelper.quizEntryWithErrorsShowing.bind(cacheHelper);
115
+ var isEditingQuizEntry = exports.isEditingQuizEntry = cacheHelper.editingQuizEntry.bind(cacheHelper);
@@ -3,12 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getRCEConfig = exports.getRCEError = void 0;
7
- var getRCEError = function getRCEError(state) {
6
+ exports.getRCEError = exports.getRCEConfig = void 0;
7
+ var getRCEError = exports.getRCEError = function getRCEError(state) {
8
8
  return state.getIn(['rce', 'rceError'], null);
9
9
  };
10
- exports.getRCEError = getRCEError;
11
- var getRCEConfig = function getRCEConfig(state) {
10
+ var getRCEConfig = exports.getRCEConfig = function getRCEConfig(state) {
12
11
  return state.getIn(['rce', 'rceConfig'], null);
13
- };
14
- exports.getRCEConfig = getRCEConfig;
12
+ };
@@ -10,11 +10,10 @@ var _ItemAnalysis = _interopRequireDefault(require("../records/ItemAnalysis.js")
10
10
  var getItemAnalysisById = function getItemAnalysisById(state, id) {
11
11
  return new _ItemAnalysis.default(state.getIn(['reporting', 'item_analysis', id]));
12
12
  };
13
- var getItemAnalysesByIds = function getItemAnalysesByIds(state) {
13
+ var getItemAnalysesByIds = exports.getItemAnalysesByIds = function getItemAnalysesByIds(state) {
14
14
  var ids = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
15
15
  return ids.reduce(function (list, id) {
16
16
  var itemAnalysis = getItemAnalysisById(state, id);
17
17
  return itemAnalysis ? list.push(itemAnalysis) : list;
18
18
  }, (0, _immutable.List)());
19
- };
20
- exports.getItemAnalysesByIds = getItemAnalysesByIds;
19
+ };
@@ -4,9 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getSessionItemResultsByIds = getSessionItemResultsByIds;
8
- exports.getSessionItemResultById = getSessionItemResultById;
9
7
  exports.getGradingSessionItemResults = void 0;
8
+ exports.getSessionItemResultById = getSessionItemResultById;
9
+ exports.getSessionItemResultsByIds = getSessionItemResultsByIds;
10
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
11
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
12
  var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
@@ -39,5 +39,4 @@ var CacheHelper = (_class = /*#__PURE__*/function () {
39
39
  var cacheHelper = new CacheHelper();
40
40
 
41
41
  // This is a hack to continue using withCachedArguments until we implement reselect
42
- var getGradingSessionItemResults = cacheHelper.gradingSessionItemResults.bind(cacheHelper);
43
- exports.getGradingSessionItemResults = getGradingSessionItemResults;
42
+ var getGradingSessionItemResults = exports.getGradingSessionItemResults = cacheHelper.gradingSessionItemResults.bind(cacheHelper);
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
+ exports.getGradingSessionItems = void 0;
7
8
  exports.getItemByPosition = getItemByPosition;
8
- exports.getSessionItemsByIds = getSessionItemsByIds;
9
9
  exports.getSessionItemById = getSessionItemById;
10
- exports.getGradingSessionItems = void 0;
10
+ exports.getSessionItemsByIds = getSessionItemsByIds;
11
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
13
  var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
@@ -50,5 +50,4 @@ var CacheHelper = (_class = /*#__PURE__*/function () {
50
50
  var cacheHelper = new CacheHelper();
51
51
 
52
52
  // This is a hack to continue using withCachedArguments until we implement reselect
53
- var getGradingSessionItems = cacheHelper.gradingSessionItems.bind(cacheHelper);
54
- exports.getGradingSessionItems = getGradingSessionItems;
53
+ var getGradingSessionItems = exports.getGradingSessionItems = cacheHelper.gradingSessionItems.bind(cacheHelper);
@@ -4,30 +4,27 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.isTimeUp = isTimeUp;
8
- exports.getResponsesByIds = getResponsesByIds;
7
+ exports.getIsTaking = exports.getCurrentSessionItemPosition = exports.getBrowserSessionId = void 0;
9
8
  exports.getResponseById = getResponseById;
10
9
  exports.getResponseDataByPosition = getResponseDataByPosition;
11
- exports.getIsTaking = exports.getTimerData = exports.getBrowserSessionId = exports.getCurrentSessionItemPosition = void 0;
10
+ exports.getResponsesByIds = getResponsesByIds;
11
+ exports.getTimerData = void 0;
12
+ exports.isTimeUp = isTimeUp;
12
13
  var _immutable = require("immutable");
13
14
  var _Response = _interopRequireDefault(require("../records/Response.js"));
14
15
  var path = 'taking';
15
- var getCurrentSessionItemPosition = function getCurrentSessionItemPosition(state) {
16
+ var getCurrentSessionItemPosition = exports.getCurrentSessionItemPosition = function getCurrentSessionItemPosition(state) {
16
17
  return state.getIn([path, 'currentSessionItemPosition'], 1);
17
18
  };
18
- exports.getCurrentSessionItemPosition = getCurrentSessionItemPosition;
19
- var getBrowserSessionId = function getBrowserSessionId(state) {
19
+ var getBrowserSessionId = exports.getBrowserSessionId = function getBrowserSessionId(state) {
20
20
  return state.getIn([path, 'browserSessionId']);
21
21
  };
22
- exports.getBrowserSessionId = getBrowserSessionId;
23
- var getTimerData = function getTimerData(state) {
22
+ var getTimerData = exports.getTimerData = function getTimerData(state) {
24
23
  return state.getIn([path, 'timerData'], (0, _immutable.Map)());
25
24
  };
26
- exports.getTimerData = getTimerData;
27
- var getIsTaking = function getIsTaking(state) {
25
+ var getIsTaking = exports.getIsTaking = function getIsTaking(state) {
28
26
  return state.getIn([path, 'isTaking']);
29
27
  };
30
- exports.getIsTaking = getIsTaking;
31
28
  function isTimeUp(state) {
32
29
  var timerRunning = state.getIn([path, 'timerData', 'timerRunning']);
33
30
  var noTimeLeft = state.getIn([path, 'timerData', 'timeLeftInSeconds']) <= 0;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getActiveCalculatorId = void 0;
7
- var getActiveCalculatorId = function getActiveCalculatorId(state) {
7
+ var getActiveCalculatorId = exports.getActiveCalculatorId = function getActiveCalculatorId(state) {
8
8
  return state.getIn(['ui', 'activeCalculatorId'], null);
9
- };
10
- exports.getActiveCalculatorId = getActiveCalculatorId;
9
+ };
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.requireable = requireable;
7
6
  exports.default = exports.CustomPropTypes = void 0;
7
+ exports.requireable = requireable;
8
8
  var _propTypes = require("prop-types");
9
9
  var selectors = _propTypes.PropTypes.oneOfType([_propTypes.PropTypes.string, _propTypes.PropTypes.arrayOf(_propTypes.PropTypes.string)]);
10
10
  var attemptHistory = _propTypes.PropTypes.arrayOf(_propTypes.PropTypes.shape({
@@ -58,13 +58,11 @@ function recordId(props, propName, componentName, location) {
58
58
  return new Error("Invalid ".concat(location, " `").concat(propName, "` supplied to `").concat(componentName, "`, must be a positive integer."));
59
59
  }
60
60
  }
61
- var CustomPropTypes = {
61
+ var CustomPropTypes = exports.CustomPropTypes = {
62
62
  attemptHistory: attemptHistory,
63
63
  higherOrderFunction: higherOrderFunction,
64
64
  numberInRange: numberInRange,
65
65
  recordId: recordId,
66
66
  selectors: selectors
67
67
  };
68
- exports.CustomPropTypes = CustomPropTypes;
69
- var _default = CustomPropTypes;
70
- exports.default = _default;
68
+ var _default = exports.default = CustomPropTypes;
@@ -4,8 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.elementsForSelectors = elementsForSelectors;
8
7
  exports.default = void 0;
8
+ exports.elementsForSelectors = elementsForSelectors;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  function elementsForSelectors(appContainer) {
11
11
  var selectors = Array.isArray(appContainer) ? appContainer : [appContainer];
@@ -14,5 +14,4 @@ function elementsForSelectors(appContainer) {
14
14
  }, []);
15
15
  return elements;
16
16
  }
17
- var _default = elementsForSelectors;
18
- exports.default = _default;
17
+ var _default = exports.default = elementsForSelectors;
@@ -98,5 +98,4 @@ var ExhaustivePaginatedFetcher = function ExhaustivePaginatedFetcher() {
98
98
  }(SuperClass);
99
99
  return new ExhaustivePaginatedFetcher(args);
100
100
  };
101
- var _default = ExhaustivePaginatedFetcher;
102
- exports.default = _default;
101
+ var _default = exports.default = ExhaustivePaginatedFetcher;
@@ -31,7 +31,7 @@ function FetcherError(response) {
31
31
  }
32
32
  FetcherError.prototype = Object.create(Error.prototype);
33
33
  FetcherError.prototype.constructor = FetcherError;
34
- var Fetcher = /*#__PURE__*/function () {
34
+ var Fetcher = exports.Fetcher = /*#__PURE__*/function () {
35
35
  function Fetcher() {
36
36
  var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
37
37
  callType = _ref.callType,
@@ -392,6 +392,4 @@ var Fetcher = /*#__PURE__*/function () {
392
392
  }]);
393
393
  return Fetcher;
394
394
  }();
395
- exports.Fetcher = Fetcher;
396
- var _default = Fetcher;
397
- exports.default = _default;
395
+ var _default = exports.default = Fetcher;
@@ -10,7 +10,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
10
10
  // Class that acts like a WeakMap, except the key consists of an
11
11
  // array of multiple objects, instead of being just a single object.
12
12
  // Intended to allow caching of methods which take more than one argument.
13
- var MultiWeakMap = /*#__PURE__*/function () {
13
+ var MultiWeakMap = exports.default = /*#__PURE__*/function () {
14
14
  function MultiWeakMap(numKeys) {
15
15
  (0, _classCallCheck2.default)(this, MultiWeakMap);
16
16
  if (typeof numKeys !== 'number') {
@@ -63,5 +63,4 @@ var MultiWeakMap = /*#__PURE__*/function () {
63
63
  }
64
64
  }]);
65
65
  return MultiWeakMap;
66
- }();
67
- exports.default = MultiWeakMap;
66
+ }();
@@ -18,7 +18,7 @@ var _map = _interopRequireDefault(require("lodash/map"));
18
18
  var _omit = _interopRequireDefault(require("lodash/omit"));
19
19
  var _Fetcher2 = _interopRequireDefault(require("./Fetcher.js"));
20
20
  var _jsonify = _interopRequireDefault(require("./jsonify.js"));
21
- var PaginatedFetcher = /*#__PURE__*/function (_Fetcher) {
21
+ var PaginatedFetcher = exports.PaginatedFetcher = /*#__PURE__*/function (_Fetcher) {
22
22
  (0, _inherits2.default)(PaginatedFetcher, _Fetcher);
23
23
  var _super = (0, _createSuper2.default)(PaginatedFetcher);
24
24
  function PaginatedFetcher() {
@@ -78,6 +78,4 @@ var PaginatedFetcher = /*#__PURE__*/function (_Fetcher) {
78
78
  }]);
79
79
  return PaginatedFetcher;
80
80
  }(_Fetcher2.default);
81
- exports.PaginatedFetcher = PaginatedFetcher;
82
- var _default = PaginatedFetcher;
83
- exports.default = _default;
81
+ var _default = exports.default = PaginatedFetcher;
@@ -35,7 +35,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
35
35
  * processed in sequence with optimistic UI updates, and want to reset the UI
36
36
  * to match backend state if a request fails.
37
37
  */
38
- var ThunkQueue = /*#__PURE__*/function () {
38
+ var ThunkQueue = exports.default = /*#__PURE__*/function () {
39
39
  function ThunkQueue() {
40
40
  var errorHandler = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
41
41
  (0, _classCallCheck2.default)(this, ThunkQueue);
@@ -129,5 +129,4 @@ var ThunkQueue = /*#__PURE__*/function () {
129
129
  }()
130
130
  }]);
131
131
  return ThunkQueue;
132
- }();
133
- exports.default = ThunkQueue;
132
+ }();
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.TimeRecordingService = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var TimeRecordingService = /*#__PURE__*/function () {
10
+ var TimeRecordingService = exports.TimeRecordingService = /*#__PURE__*/function () {
11
11
  function TimeRecordingService(recordQuizTime, updateTimerInfo) {
12
12
  var _this = this;
13
13
  (0, _classCallCheck2.default)(this, TimeRecordingService);
@@ -64,6 +64,4 @@ var TimeRecordingService = /*#__PURE__*/function () {
64
64
  }]);
65
65
  return TimeRecordingService;
66
66
  }();
67
- exports.TimeRecordingService = TimeRecordingService;
68
- var _default = TimeRecordingService;
69
- exports.default = _default;
67
+ var _default = exports.default = TimeRecordingService;
@@ -9,9 +9,8 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
11
11
  var _reduxStore = _interopRequireDefault(require("../../reduxStore.js"));
12
- var MAX_SETTIMEOUT_IN_MILLISECONDS = 20 * 24 * 3600 * 1000; // ms of 20 days
13
- exports.MAX_SETTIMEOUT_IN_MILLISECONDS = MAX_SETTIMEOUT_IN_MILLISECONDS;
14
- var TimerService = /*#__PURE__*/function () {
12
+ var MAX_SETTIMEOUT_IN_MILLISECONDS = exports.MAX_SETTIMEOUT_IN_MILLISECONDS = 20 * 24 * 3600 * 1000; // ms of 20 days
13
+ var TimerService = exports.TimerService = /*#__PURE__*/function () {
15
14
  function TimerService(getTimeRemaining, updateTimeRemaining, getTimerData, submitQuiz, alert, setWsToken) {
16
15
  var _this = this;
17
16
  (0, _classCallCheck2.default)(this, TimerService);
@@ -167,6 +166,4 @@ var TimerService = /*#__PURE__*/function () {
167
166
  }]);
168
167
  return TimerService;
169
168
  }();
170
- exports.TimerService = TimerService;
171
- var _default = TimerService;
172
- exports.default = _default;
169
+ var _default = exports.default = TimerService;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
9
9
  var _this = void 0;
10
- var _default = function _default(fn) {
10
+ var _default = exports.default = function _default(fn) {
11
11
  var prevArgs = null;
12
12
  var cachedValue;
13
13
  return function () {
@@ -21,5 +21,4 @@ var _default = function _default(fn) {
21
21
  cachedValue = fn.apply(_this, args);
22
22
  return cachedValue;
23
23
  };
24
- };
25
- exports.default = _default;
24
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.callbacksCompleteForCall = exports.errorCallFor = exports.successCallFor = exports.startCallFor = void 0;
6
+ exports.successCallFor = exports.startCallFor = exports.errorCallFor = exports.callbacksCompleteForCall = void 0;
7
7
  var _quizCommon = require("@instructure/quiz-common");
8
8
  var callAction = function callAction(callStatus, type) {
9
9
  return {
@@ -14,19 +14,16 @@ var callAction = function callAction(callStatus, type) {
14
14
  }
15
15
  };
16
16
  };
17
- var startCallFor = function startCallFor(type) {
17
+ var startCallFor = exports.startCallFor = function startCallFor(type) {
18
18
  return callAction('calling', type);
19
19
  };
20
- exports.startCallFor = startCallFor;
21
- var successCallFor = function successCallFor(type) {
20
+ var successCallFor = exports.successCallFor = function successCallFor(type) {
22
21
  return callAction('success', type);
23
22
  };
24
- exports.successCallFor = successCallFor;
25
- var errorCallFor = function errorCallFor(type) {
23
+ var errorCallFor = exports.errorCallFor = function errorCallFor(type) {
26
24
  return callAction('error', type);
27
25
  };
28
- exports.errorCallFor = errorCallFor;
29
- var callbacksCompleteForCall = function callbacksCompleteForCall(type) {
26
+ var callbacksCompleteForCall = exports.callbacksCompleteForCall = function callbacksCompleteForCall(type) {
30
27
  return {
31
28
  type: _quizCommon.SET_CALLBACKS_STATUS,
32
29
  payload: {
@@ -34,5 +31,4 @@ var callbacksCompleteForCall = function callbacksCompleteForCall(type) {
34
31
  status: 'complete'
35
32
  }
36
33
  };
37
- };
38
- exports.callbacksCompleteForCall = callbacksCompleteForCall;
34
+ };
@@ -12,7 +12,7 @@ var slugToNameMap = {
12
12
  'multi-answer': 'MultipleAnswer',
13
13
  choice: 'MultipleChoice'
14
14
  };
15
- var componentForItem = function componentForItem(intTypeSlug, usage) {
15
+ var componentForItem = exports.componentForItem = function componentForItem(intTypeSlug, usage) {
16
16
  var componentKey = slugToNameMap[intTypeSlug];
17
17
  if (!componentKey) {
18
18
  componentKey = pascalize(intTypeSlug);
@@ -25,6 +25,4 @@ var componentForItem = function componentForItem(intTypeSlug, usage) {
25
25
  }
26
26
  return component;
27
27
  };
28
- exports.componentForItem = componentForItem;
29
- var _default = componentForItem;
30
- exports.default = _default;
28
+ var _default = exports.default = componentForItem;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
9
- var _default = function _default(f, ms) {
9
+ var _default = exports.default = function _default(f, ms) {
10
10
  var waiting = null;
11
11
  var ready = function ready() {
12
12
  var old = waiting;
@@ -28,5 +28,4 @@ var _default = function _default(f, ms) {
28
28
  debouncedThunk.apply(void 0, arguments);
29
29
  return promise;
30
30
  };
31
- };
32
- exports.default = _default;
31
+ };
@@ -4,9 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
+ exports.displayDateAndTimeInTimezone = displayDateAndTimeInTimezone;
7
8
  exports.formatTime = formatTime;
8
9
  exports.formatTimeToFullNumeric = formatTimeToFullNumeric;
9
- exports.displayDateAndTimeInTimezone = displayDateAndTimeInTimezone;
10
10
  exports.formatTimespan = void 0;
11
11
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
12
12
  var _luxon = require("luxon");
@@ -27,10 +27,9 @@ var formatSeconds = function formatSeconds(seconds) {
27
27
  seconds: seconds
28
28
  });
29
29
  };
30
- var formatTimespan = function formatTimespan(startTime, endTime) {
30
+ var formatTimespan = exports.formatTimespan = function formatTimespan(startTime, endTime) {
31
31
  return formatTime(endTime - startTime, 1000);
32
32
  };
33
- exports.formatTimespan = formatTimespan;
34
33
  function formatTime(time) {
35
34
  var secondDuration = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
36
35
  var totalSeconds = Math.floor(time / secondDuration);
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.generateDisplayPositions = generateDisplayPositions;
7
6
  exports.default = void 0;
7
+ exports.generateDisplayPositions = generateDisplayPositions;
8
8
  function generateDisplayPositions(records) {
9
9
  var asMap = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
10
10
  var positionTuples = [];
@@ -25,5 +25,4 @@ function generateDisplayPositions(records) {
25
25
  }
26
26
  return asMap ? positionMap : positionTuples;
27
27
  }
28
- var _default = generateDisplayPositions;
29
- exports.default = _default;
28
+ var _default = exports.default = generateDisplayPositions;
@@ -3,13 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.httpHeaders = exports.jwtHeader = exports.jsonHeaders = void 0;
7
- var jsonHeaders = {
6
+ exports.jwtHeader = exports.jsonHeaders = exports.httpHeaders = void 0;
7
+ var jsonHeaders = exports.jsonHeaders = {
8
8
  Accept: 'application/json',
9
9
  'Content-Type': 'application/json'
10
10
  };
11
- exports.jsonHeaders = jsonHeaders;
12
- var jwtHeader = function jwtHeader(token) {
11
+ var jwtHeader = exports.jwtHeader = function jwtHeader(token) {
13
12
  if (token) {
14
13
  return {
15
14
  Authorization: token,
@@ -17,8 +16,6 @@ var jwtHeader = function jwtHeader(token) {
17
16
  };
18
17
  }
19
18
  };
20
- exports.jwtHeader = jwtHeader;
21
- var httpHeaders = function httpHeaders(token) {
19
+ var httpHeaders = exports.httpHeaders = function httpHeaders(token) {
22
20
  return Object.assign({}, jsonHeaders, jwtHeader(token));
23
- };
24
- exports.httpHeaders = httpHeaders;
21
+ };
@@ -3,28 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.mergeDeepOnlyMaps = exports.compact = exports.keyBy = void 0;
6
+ exports.mergeDeepOnlyMaps = exports.keyBy = exports.compact = void 0;
7
7
  var _immutable = require("immutable");
8
- var keyBy = function keyBy(immutableList, keyAttr) {
8
+ var keyBy = exports.keyBy = function keyBy(immutableList, keyAttr) {
9
9
  return immutableList.reduce(function (keyedMap, i) {
10
10
  return keyedMap.set(i.get(keyAttr), i);
11
11
  }, (0, _immutable.Map)());
12
12
  };
13
13
 
14
14
  // Remove any undefined values
15
- exports.keyBy = keyBy;
16
- var compact = function compact(immutableList) {
15
+ var compact = exports.compact = function compact(immutableList) {
17
16
  return immutableList.filter(function (i) {
18
17
  return !!i;
19
18
  });
20
19
  };
21
20
 
22
21
  // Deep merge Maps, but not Lists or other Collections
23
- exports.compact = compact;
24
- var mergeDeepOnlyMaps = function mergeDeepOnlyMaps(oldVal, newVal, key) {
22
+ var mergeDeepOnlyMaps = exports.mergeDeepOnlyMaps = function mergeDeepOnlyMaps(oldVal, newVal, key) {
25
23
  if (_immutable.Map.isMap(oldVal) && _immutable.Map.isMap(newVal)) {
26
24
  return oldVal.mergeWith(mergeDeepOnlyMaps, newVal);
27
25
  }
28
26
  return newVal;
29
- };
30
- exports.mergeDeepOnlyMaps = mergeDeepOnlyMaps;
27
+ };
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.toErrors = void 0;
7
- var toErrors = function toErrors(errorMessages) {
7
+ var toErrors = exports.toErrors = function toErrors(errorMessages) {
8
8
  return errorMessages.map(function (e) {
9
9
  return {
10
10
  text: e,
11
11
  type: 'error'
12
12
  };
13
13
  });
14
- };
15
- exports.toErrors = toErrors;
14
+ };
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.interactionTypeMetadata = exports.interactionTypesNameDictionary = void 0;
7
+ exports.interactionTypesNameDictionary = exports.interactionTypeMetadata = void 0;
8
8
  var _uiIcons = require("@instructure/ui-icons");
9
9
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
10
10
  // TODO: Add correct icon file imports when they are in inst icons
@@ -28,7 +28,7 @@ var interactionTypesIconDictionary = function interactionTypesIconDictionary(int
28
28
  // 'essay': EssayIcon
29
29
  }[intType.slug] || _uiIcons.IconPlusLine;
30
30
  };
31
- var interactionTypesNameDictionary = function interactionTypesNameDictionary(intType) {
31
+ var interactionTypesNameDictionary = exports.interactionTypesNameDictionary = function interactionTypesNameDictionary(intType) {
32
32
  return {
33
33
  categorization: (0, _formatMessage.default)('Categorization'),
34
34
  choice: (0, _formatMessage.default)('Multiple Choice'),
@@ -45,11 +45,9 @@ var interactionTypesNameDictionary = function interactionTypesNameDictionary(int
45
45
  'true-false': (0, _formatMessage.default)('True or False')
46
46
  }[intType.slug] || intType.name;
47
47
  };
48
- exports.interactionTypesNameDictionary = interactionTypesNameDictionary;
49
- var interactionTypeMetadata = function interactionTypeMetadata(intType) {
48
+ var interactionTypeMetadata = exports.interactionTypeMetadata = function interactionTypeMetadata(intType) {
50
49
  return {
51
50
  icon: interactionTypesIconDictionary(intType),
52
51
  name: interactionTypesNameDictionary(intType)
53
52
  };
54
- };
55
- exports.interactionTypeMetadata = interactionTypeMetadata;
53
+ };