@instructure/quiz-core 20.17.3-rc.7 → 20.17.3-rc.9

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 (1471) hide show
  1. package/es/banks/api/bankEntries.js +20 -13
  2. package/es/banks/api/banks.js +34 -22
  3. package/es/banks/api/copyingBanksPoller.js +67 -57
  4. package/es/banks/api/tagAssociations.js +40 -26
  5. package/es/banks/components/AddBankEntryModal/index.js +10 -7
  6. package/es/banks/components/AddBankEntryModal/presenter.js +25 -5
  7. package/es/banks/components/AddToBankModal/index.js +12 -12
  8. package/es/banks/components/AddToBankModal/presenter.js +94 -51
  9. package/es/banks/components/AsyncSearch/index.js +70 -13
  10. package/es/banks/components/Bank/index.js +12 -12
  11. package/es/banks/components/Bank/presenter.js +115 -57
  12. package/es/banks/components/Bank/styles.js +2 -0
  13. package/es/banks/components/Bank/theme.js +3 -2
  14. package/es/banks/components/BankEntriesList/index.js +3 -3
  15. package/es/banks/components/BankEntriesList/presenter.js +27 -13
  16. package/es/banks/components/BankEntriesList/styles.js +1 -0
  17. package/es/banks/components/BankEntriesList/theme.js +1 -0
  18. package/es/banks/components/BankEntry/index.js +19 -14
  19. package/es/banks/components/BankEntry/presenter.js +257 -160
  20. package/es/banks/components/BankEntry/styles.js +2 -0
  21. package/es/banks/components/BankEntry/theme.js +4 -3
  22. package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +4 -2
  23. package/es/banks/components/BankEntryRow/index.js +14 -9
  24. package/es/banks/components/BankEntryRow/presenter.js +59 -27
  25. package/es/banks/components/BankEntryRow/styles.js +1 -0
  26. package/es/banks/components/BankEntryRow/theme.js +4 -3
  27. package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
  28. package/es/banks/components/BankSearch/index.js +6 -4
  29. package/es/banks/components/BankSearch/presenter.js +42 -21
  30. package/es/banks/components/BankSearch/styles.js +1 -0
  31. package/es/banks/components/BankSearch/theme.js +1 -0
  32. package/es/banks/components/Banks/index.js +10 -7
  33. package/es/banks/components/Banks/presenter.js +85 -31
  34. package/es/banks/components/Banks/styles.js +1 -0
  35. package/es/banks/components/Banks/theme.js +3 -2
  36. package/es/banks/components/BanksList/index.js +8 -8
  37. package/es/banks/components/BanksList/presenter.js +143 -79
  38. package/es/banks/components/BanksList/styles.js +1 -0
  39. package/es/banks/components/BanksList/theme.js +4 -3
  40. package/es/banks/components/CopyMoveBankEntryModal/index.js +9 -9
  41. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +39 -10
  42. package/es/banks/components/CreateBankModal/index.js +13 -10
  43. package/es/banks/components/CreateBankModal/presenter.js +42 -13
  44. package/es/banks/components/CreateBankModal/styles.js +1 -0
  45. package/es/banks/components/CreateBankModal/theme.js +2 -1
  46. package/es/banks/components/EditBankModal/index.js +10 -7
  47. package/es/banks/components/EditBankModal/presenter.js +36 -13
  48. package/es/banks/components/EditBankModal/styles.js +1 -0
  49. package/es/banks/components/EditBankModal/theme.js +2 -1
  50. package/es/banks/components/HeaderBreadCrumb/index.js +26 -13
  51. package/es/banks/components/HeaderMenu/index.js +7 -4
  52. package/es/banks/components/HeaderMenu/presenter.js +29 -15
  53. package/es/banks/components/HeaderMenu/styles.js +1 -0
  54. package/es/banks/components/HeaderMenu/theme.js +2 -1
  55. package/es/banks/components/NavWrapper/index.js +4 -2
  56. package/es/banks/components/NavWrapper/presenter.js +38 -19
  57. package/es/banks/components/NavWrapper/styles.js +2 -0
  58. package/es/banks/components/NavWrapper/theme.js +5 -4
  59. package/es/banks/components/SharingModal/ContextualIconButton/index.js +21 -5
  60. package/es/banks/components/SharingModal/RootAccountSharing.js +33 -16
  61. package/es/banks/components/SharingModal/ShareList/index.js +37 -16
  62. package/es/banks/components/SharingModal/ShareList/styles.js +1 -0
  63. package/es/banks/components/SharingModal/index.js +8 -6
  64. package/es/banks/components/SharingModal/presenter.js +126 -56
  65. package/es/banks/components/SharingModal/styles.js +1 -0
  66. package/es/banks/components/SharingModal/theme.js +3 -2
  67. package/es/building/api/items.js +103 -81
  68. package/es/building/api/qtiImports.js +22 -14
  69. package/es/building/api/quizEntries.js +65 -57
  70. package/es/building/api/quizzes.js +29 -34
  71. package/es/building/api/stimuli.js +6 -9
  72. package/es/building/components/QTIImportModal/index.js +5 -6
  73. package/es/building/components/layout/Sidebar/Sidebar.examples.js +38 -17
  74. package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
  75. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +41 -27
  76. package/es/building/components/layout/Sidebar/SidebarItem/styles.js +4 -1
  77. package/es/building/components/layout/Sidebar/SidebarItem/theme.js +1 -0
  78. package/es/building/components/layout/Sidebar/Stimulus/index.js +12 -11
  79. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +39 -25
  80. package/es/building/components/layout/Sidebar/Stimulus/styles.js +4 -1
  81. package/es/building/components/layout/Sidebar/Stimulus/theme.js +1 -0
  82. package/es/building/components/layout/Sidebar/index.js +15 -15
  83. package/es/building/components/layout/Sidebar/presenter.js +51 -21
  84. package/es/building/components/layout/Sidebar/styles.js +2 -0
  85. package/es/building/components/layout/Sidebar/theme.js +1 -0
  86. package/es/building/components/layout/header/BuildingButtons/index.js +11 -9
  87. package/es/building/components/layout/header/BuildingButtons/presenter.js +64 -15
  88. package/es/building/components/layout/header/BuildingButtons/styles.js +2 -0
  89. package/es/building/components/layout/header/BuildingButtons/theme.js +3 -2
  90. package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
  91. package/es/building/components/resources/ActionButtons/index.js +7 -4
  92. package/es/building/components/resources/ActionButtons/presenter.js +34 -14
  93. package/es/building/components/resources/ActionButtons/styles.js +3 -0
  94. package/es/building/components/resources/ActionButtons/theme.js +2 -1
  95. package/es/building/components/resources/AddToBankOptions/index.js +62 -38
  96. package/es/building/components/resources/AddToBankOptions/styles.js +1 -0
  97. package/es/building/components/resources/AddToBankOptions/theme.js +2 -1
  98. package/es/building/components/resources/BanksTray/index.js +5 -3
  99. package/es/building/components/resources/BanksTray/presenter.js +40 -12
  100. package/es/building/components/resources/DeleteStimulusModal/index.js +12 -8
  101. package/es/building/components/resources/DeleteStimulusModal/presenter.js +56 -21
  102. package/es/building/components/resources/DeleteStimulusModal/styles.js +1 -0
  103. package/es/building/components/resources/DeleteStimulusModal/theme.js +2 -1
  104. package/es/building/components/resources/ItemFeedbackModal/index.js +10 -8
  105. package/es/building/components/resources/ItemFeedbackModal/presenter.js +35 -12
  106. package/es/building/components/resources/ItemFeedbackModal/styles.js +1 -0
  107. package/es/building/components/resources/ItemFeedbackModal/theme.js +1 -0
  108. package/es/building/components/resources/MoveImmutableModal/index.js +14 -11
  109. package/es/building/components/resources/MoveImmutableModal/presenter.js +24 -8
  110. package/es/building/components/resources/quiz/editButton/EditButton.js +20 -5
  111. package/es/building/components/resources/quiz/instructions/Edit/index.js +4 -2
  112. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +26 -21
  113. package/es/building/components/resources/quiz/instructions/Edit/styles.js +1 -0
  114. package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
  115. package/es/building/components/resources/quiz/instructions/Instructions/index.js +9 -7
  116. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +55 -31
  117. package/es/building/components/resources/quiz/instructions/Instructions/styles.js +2 -0
  118. package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
  119. package/es/building/components/resources/quiz/instructions/Show/index.js +29 -18
  120. package/es/building/components/resources/quiz/instructions/Show/styles.js +1 -0
  121. package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
  122. package/es/building/components/resources/quiz/title/Edit/index.js +36 -21
  123. package/es/building/components/resources/quiz/title/Edit/styles.js +2 -0
  124. package/es/building/components/resources/quiz/title/Edit/theme.js +4 -3
  125. package/es/building/components/resources/quiz/title/Show/index.js +28 -17
  126. package/es/building/components/resources/quiz/title/Show/styles.js +1 -0
  127. package/es/building/components/resources/quiz/title/Show/theme.js +1 -0
  128. package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
  129. package/es/building/components/resources/quiz/title/Title/index.js +10 -8
  130. package/es/building/components/resources/quiz/title/Title/presenter.js +48 -31
  131. package/es/building/components/resources/quiz/title/Title/styles.js +2 -0
  132. package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
  133. package/es/building/components/resources/quizEntry/QuizEntry/index.js +16 -14
  134. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +66 -30
  135. package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +16 -4
  136. package/es/building/components/resources/quizEntry/QuizEntry/styles.js +2 -0
  137. package/es/building/components/resources/quizEntry/QuizEntry/theme.js +4 -3
  138. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
  139. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +51 -16
  140. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -0
  141. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -3
  142. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +30 -15
  143. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -0
  144. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -3
  145. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +7 -5
  146. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +54 -24
  147. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -0
  148. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -3
  149. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +124 -70
  150. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -0
  151. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +3 -2
  152. package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +14 -11
  153. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +165 -94
  154. package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -0
  155. package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -3
  156. package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +10 -8
  157. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +71 -37
  158. package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -0
  159. package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -4
  160. package/es/common/actions/alerts.js +7 -7
  161. package/es/common/actions/modifications.js +16 -37
  162. package/es/common/actions/quizSessions.js +15 -5
  163. package/es/common/actions/rce.js +2 -3
  164. package/es/common/actions/taking.js +4 -6
  165. package/es/common/api/callHandlers.js +15 -14
  166. package/es/common/api/camelizeHelpers.js +6 -6
  167. package/es/common/api/features.js +5 -3
  168. package/es/common/api/fileUpload.js +3 -4
  169. package/es/common/api/getPersistenceActions.js +40 -41
  170. package/es/common/api/helpers.js +100 -77
  171. package/es/common/api/interactionTypes.js +2 -2
  172. package/es/common/api/quizSessions.js +32 -27
  173. package/es/common/api/quizzes.js +6 -10
  174. package/es/common/api/schema.js +4 -6
  175. package/es/common/components/ApiFeatureFlagInitializer/index.js +12 -8
  176. package/es/common/components/ConfirmationModal/index.js +6 -3
  177. package/es/common/components/ConfirmationModal/presenter.js +29 -13
  178. package/es/common/components/ImportModal/ImportFileSelector/index.js +40 -24
  179. package/es/common/components/ImportModal/ImportFileSelector/styles.js +1 -0
  180. package/es/common/components/ImportModal/ImportFileSelector/theme.js +3 -2
  181. package/es/common/components/ImportModal/index.js +13 -13
  182. package/es/common/components/ImportModal/presenter.js +69 -19
  183. package/es/common/components/ImportModal/styles.js +1 -0
  184. package/es/common/components/ImportModal/theme.js +1 -0
  185. package/es/common/components/LearnosityCalculator/index.js +60 -36
  186. package/es/common/components/Pin/index.js +1 -1
  187. package/es/common/components/Pin/presenter.js +17 -4
  188. package/es/common/components/PreviewFrame/examples.config.js +4 -2
  189. package/es/common/components/PreviewFrame/index.js +18 -8
  190. package/es/common/components/PrintFontSizeModal/index.js +1 -1
  191. package/es/common/components/PrintFontSizeModal/presenter.js +35 -24
  192. package/es/common/components/PrintFontSizeModal/styles.js +1 -0
  193. package/es/common/components/PrintFontSizeModal/theme.js +3 -2
  194. package/es/common/components/RceConfigProvider/index.js +6 -4
  195. package/es/common/components/RceConfigProvider/presenter.js +125 -93
  196. package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +11 -5
  197. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +37 -26
  198. package/es/common/components/RceConfigProvider/rceConfigMapper.js +11 -3
  199. package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
  200. package/es/common/components/SDKApp/index.js +61 -30
  201. package/es/common/components/SDKApp/styles.js +1 -0
  202. package/es/common/components/SDKHeaderCalculator.js +4 -4
  203. package/es/common/components/SDKMenuButton.js +3 -3
  204. package/es/common/components/SDKNavBar.js +3 -3
  205. package/es/common/components/SDKTimer.js +4 -4
  206. package/es/common/components/alerts/index.js +6 -4
  207. package/es/common/components/alerts/presenter.js +30 -11
  208. package/es/common/components/alerts/styles.js +2 -0
  209. package/es/common/components/alerts/theme.js +2 -1
  210. package/es/common/components/layout/Page/index.js +21 -11
  211. package/es/common/components/layout/Page/styles.js +2 -0
  212. package/es/common/components/layout/Page/theme.js +3 -2
  213. package/es/common/components/layout/header/Calculator/index.js +9 -7
  214. package/es/common/components/layout/header/Calculator/presenter.js +22 -9
  215. package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
  216. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +36 -14
  217. package/es/common/components/layout/header/HeaderMenuButton/styles.js +2 -0
  218. package/es/common/components/layout/header/HeaderMenuButton/theme.js +3 -2
  219. package/es/common/components/layout/header/Timer/index.js +9 -6
  220. package/es/common/components/layout/header/Timer/presenter.js +49 -19
  221. package/es/common/components/layout/header/Timer/styles.js +1 -0
  222. package/es/common/components/layout/header/Timer/theme.js +4 -3
  223. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +20 -10
  224. package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -0
  225. package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -0
  226. package/es/common/components/layout/navbar/index.js +39 -15
  227. package/es/common/components/layout/navbar/styles.js +1 -0
  228. package/es/common/components/layout/navbar/theme.js +2 -1
  229. package/es/common/components/layout/sidebar/PositionSummary/index.js +20 -10
  230. package/es/common/components/layout/sidebar/PositionSummary/styles.js +1 -0
  231. package/es/common/components/layout/sidebar/PositionSummary/theme.js +4 -3
  232. package/es/common/components/layout/sidebar/Sidebar/Pin.js +18 -7
  233. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +10 -6
  234. package/es/common/components/layout/sidebar/Sidebar/index.js +81 -39
  235. package/es/common/components/layout/sidebar/Sidebar/styles.js +9 -4
  236. package/es/common/components/layout/sidebar/Sidebar/theme.js +7 -5
  237. package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
  238. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +51 -35
  239. package/es/common/components/layout/sidebar/SidebarItem/styles.js +2 -0
  240. package/es/common/components/layout/sidebar/SidebarItem/theme.js +4 -3
  241. package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
  242. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +39 -23
  243. package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +3 -1
  244. package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -2
  245. package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
  246. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +43 -20
  247. package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -0
  248. package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +3 -2
  249. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +21 -11
  250. package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -0
  251. package/es/common/components/layout/sidebar/Stimulus/index.js +5 -3
  252. package/es/common/components/layout/sidebar/Stimulus/presenter.js +49 -28
  253. package/es/common/components/layout/sidebar/Stimulus/styles.js +1 -0
  254. package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -3
  255. package/es/common/components/resources/BankSelection/index.js +5 -5
  256. package/es/common/components/resources/BankSelection/presenter.js +49 -16
  257. package/es/common/components/resources/WarningWrapper/index.js +25 -11
  258. package/es/common/components/resources/WarningWrapper/styles.js +1 -0
  259. package/es/common/components/resources/WarningWrapper/theme.js +3 -2
  260. package/es/common/components/resources/entry/EntrySave/index.js +10 -10
  261. package/es/common/components/resources/entry/EntrySave/presenter.js +150 -95
  262. package/es/common/components/resources/item/ItemEdit/index.js +18 -16
  263. package/es/common/components/resources/item/ItemEdit/presenter.js +41 -18
  264. package/es/common/components/resources/item/ItemOverride/index.js +11 -9
  265. package/es/common/components/resources/item/ItemOverride/presenter.js +18 -6
  266. package/es/common/components/resources/item/ItemShow/index.js +17 -7
  267. package/es/common/components/resources/positionBox/PositionBox.js +21 -11
  268. package/es/common/components/resources/positionBox/styles.js +2 -0
  269. package/es/common/components/resources/positionBox/theme.js +3 -2
  270. package/es/common/components/resources/quiz/AddContent/Body/index.js +9 -7
  271. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +45 -23
  272. package/es/common/components/resources/quiz/AddContent/Body/styles.js +9 -4
  273. package/es/common/components/resources/quiz/AddContent/Body/theme.js +5 -4
  274. package/es/common/components/resources/quiz/AddContent/Button/index.js +25 -11
  275. package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -0
  276. package/es/common/components/resources/quiz/AddContent/Button/theme.js +5 -4
  277. package/es/common/components/resources/quiz/AddContent/Modal/index.js +11 -8
  278. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +13 -5
  279. package/es/common/components/resources/quiz/AddContent/Popover/index.js +8 -7
  280. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +37 -16
  281. package/es/common/components/resources/quiz/AddContent/Popover/styles.js +1 -0
  282. package/es/common/components/resources/quiz/AddContent/Popover/theme.js +2 -1
  283. package/es/common/components/resources/quiz/info/QuizInfo.js +14 -6
  284. package/es/common/components/resources/quiz/instructions/Instructions.js +22 -13
  285. package/es/common/components/resources/quiz/instructions/styles.js +1 -0
  286. package/es/common/components/resources/quiz/instructions/theme.js +2 -1
  287. package/es/common/components/resources/quiz/title/Title.js +21 -13
  288. package/es/common/components/resources/quiz/title/styles.js +1 -0
  289. package/es/common/components/resources/quiz/title/theme.js +2 -1
  290. package/es/common/components/resources/quizSessionResult/Header/index.js +26 -11
  291. package/es/common/components/resources/quizSessionResult/Header/styles.js +1 -0
  292. package/es/common/components/resources/quizSessionResult/Header/theme.js +2 -1
  293. package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
  294. package/es/common/components/resources/quizSessionResult/Info/index.js +125 -107
  295. package/es/common/components/resources/quizSessionResult/Info/styles.js +2 -0
  296. package/es/common/components/resources/quizSessionResult/Info/theme.js +2 -1
  297. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +22 -10
  298. package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -0
  299. package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +5 -4
  300. package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +6 -4
  301. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +90 -64
  302. package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -0
  303. package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -3
  304. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +31 -15
  305. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -0
  306. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +4 -3
  307. package/es/common/components/resources/stimulus/Stimulus/index.js +8 -5
  308. package/es/common/components/resources/stimulus/Stimulus/presenter.js +39 -22
  309. package/es/common/components/resources/stimulus/Stimulus/styles.js +5 -1
  310. package/es/common/components/resources/stimulus/Stimulus/theme.js +4 -3
  311. package/es/common/components/resources/stimulus/StimulusEdit/index.js +13 -10
  312. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +190 -111
  313. package/es/common/components/resources/stimulus/StimulusEdit/styles.js +1 -0
  314. package/es/common/components/resources/stimulus/StimulusEdit/theme.js +3 -2
  315. package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +7 -4
  316. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +43 -16
  317. package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -0
  318. package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -2
  319. package/es/common/components/resources/stimulus/StimulusShow/index.js +33 -15
  320. package/es/common/components/resources/stimulus/StimulusShow/styles.js +1 -0
  321. package/es/common/components/resources/stimulus/StimulusShow/theme.js +3 -2
  322. package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
  323. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +14 -4
  324. package/es/common/components/shared/Card/CardContent/index.js +21 -11
  325. package/es/common/components/shared/Card/CardContent/styles.js +2 -0
  326. package/es/common/components/shared/Card/CardContent/theme.js +5 -4
  327. package/es/common/components/shared/Card/CardWrapper/index.js +21 -11
  328. package/es/common/components/shared/Card/CardWrapper/styles.js +2 -0
  329. package/es/common/components/shared/Card/CardWrapper/theme.js +3 -2
  330. package/es/common/components/shared/Card/index.js +6 -6
  331. package/es/common/components/shared/ExpandButton/index.js +20 -10
  332. package/es/common/components/shared/ExpandButton/styles.js +2 -0
  333. package/es/common/components/shared/ExpandButton/theme.js +1 -0
  334. package/es/common/components/shared/FormattedDuration/index.js +20 -9
  335. package/es/common/components/shared/IfFeature/index.js +3 -3
  336. package/es/common/components/shared/IfFeature/presenter.js +13 -4
  337. package/es/common/components/shared/InteractionTypes/index.js +4 -2
  338. package/es/common/components/shared/InteractionTypes/presenter.js +33 -14
  339. package/es/common/components/shared/InteractionTypes/styles.js +1 -0
  340. package/es/common/components/shared/InteractionTypes/theme.js +3 -2
  341. package/es/common/components/shared/PaginatedCollection/index.js +3 -3
  342. package/es/common/components/shared/PaginatedCollection/presenter.js +75 -46
  343. package/es/common/components/shared/PaginatedCollection/styles.js +1 -0
  344. package/es/common/components/shared/PaginatedCollection/theme.js +3 -2
  345. package/es/common/components/shared/Paginator/index.js +24 -11
  346. package/es/common/components/shared/Paginator/styles.js +1 -0
  347. package/es/common/components/shared/Paginator/theme.js +1 -0
  348. package/es/common/components/shared/PrintTrigger/index.js +9 -7
  349. package/es/common/components/shared/PrintTrigger/presenter.js +37 -12
  350. package/es/common/components/shared/TagDisplay/index.js +21 -10
  351. package/es/common/components/shared/TagDisplay/styles.js +1 -0
  352. package/es/common/components/shared/TagSelect/index.js +1 -1
  353. package/es/common/components/shared/TagSelect/presenter.js +49 -15
  354. package/es/common/components/shared/TagSuggestSelect/index.js +7 -4
  355. package/es/common/components/shared/TagSuggestSelect/presenter.js +26 -12
  356. package/es/common/components/shared/TagWrapper/index.js +1 -1
  357. package/es/common/components/shared/TagWrapper/presenter.js +20 -7
  358. package/es/common/components/shared/TimeUnitsInput/index.js +61 -29
  359. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +33 -18
  360. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -0
  361. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +3 -2
  362. package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
  363. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +67 -26
  364. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +64 -22
  365. package/es/common/components/shared/errors/Errors.js +27 -11
  366. package/es/common/components/shared/errors/styles.js +1 -0
  367. package/es/common/components/shared/errors/theme.js +2 -1
  368. package/es/common/components/shared/file_selector/FileSelector.js +24 -12
  369. package/es/common/components/shared/file_selector/styles.js +1 -0
  370. package/es/common/components/shared/file_selector/theme.js +3 -2
  371. package/es/common/components/shared/functionality/componentWithOutsideClick.js +27 -17
  372. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +21 -12
  373. package/es/common/components/shared/functionality/disableDraggingOverride.js +3 -2
  374. package/es/common/components/shared/functionality/makeEditable.js +35 -21
  375. package/es/common/components/shared/functionality/makeScrollable.js +46 -27
  376. package/es/common/components/shared/overlay/index.js +29 -16
  377. package/es/common/components/shared/overlay/styles.js +2 -0
  378. package/es/common/components/shared/overlay/theme.js +3 -2
  379. package/es/common/components/shared/return_button/ReturnButton.js +15 -6
  380. package/es/common/components/shared/spinner/Spinner.js +28 -17
  381. package/es/common/components/shared/spinner/styles.js +1 -0
  382. package/es/common/kinesis/QuizEventsLogger.js +69 -47
  383. package/es/common/kinesis/StreamQueue.js +28 -9
  384. package/es/common/kinesis/client.js +5 -3
  385. package/es/common/kinesis/config.js +3 -3
  386. package/es/common/kinesis/eventTypes.js +4 -4
  387. package/es/common/middleware/alertTimerMiddleware.js +7 -3
  388. package/es/common/middleware/crossDomainMessagingMiddleware.js +4 -1
  389. package/es/common/middleware/eventLoggerMiddleware.js +7 -5
  390. package/es/common/middleware/persistedStorageMiddleware.js +7 -2
  391. package/es/common/react-redux.js +2 -0
  392. package/es/common/records/Alert.js +9 -5
  393. package/es/common/records/Bank.js +13 -7
  394. package/es/common/records/BankEntry.js +17 -7
  395. package/es/common/records/Item.js +22 -15
  396. package/es/common/records/ItemAnalysis.js +13 -6
  397. package/es/common/records/QtiImport.js +14 -5
  398. package/es/common/records/Quiz.js +27 -18
  399. package/es/common/records/QuizAnalysis.js +12 -5
  400. package/es/common/records/QuizEntry.js +152 -105
  401. package/es/common/records/QuizSession.js +28 -21
  402. package/es/common/records/QuizSessionEvent.js +13 -6
  403. package/es/common/records/QuizSessionResult.js +13 -6
  404. package/es/common/records/Response.js +13 -6
  405. package/es/common/records/SessionItem.js +23 -10
  406. package/es/common/records/SessionItemResult.js +13 -6
  407. package/es/common/records/Stimulus.js +17 -10
  408. package/es/common/records/baseRecord.js +19 -8
  409. package/es/common/records/index.js +32 -16
  410. package/es/common/records/reduxRecord.js +14 -9
  411. package/es/common/reducers/alerts.js +3 -0
  412. package/es/common/reducers/analyses.js +11 -1
  413. package/es/common/reducers/bankEntries.js +5 -0
  414. package/es/common/reducers/bankSearch.js +9 -4
  415. package/es/common/reducers/banks.js +13 -1
  416. package/es/common/reducers/calls.js +3 -0
  417. package/es/common/reducers/config.js +4 -0
  418. package/es/common/reducers/dragAndDrop.js +2 -0
  419. package/es/common/reducers/editing.js +3 -1
  420. package/es/common/reducers/errorsShowing.js +4 -0
  421. package/es/common/reducers/features.js +3 -0
  422. package/es/common/reducers/grading.js +4 -0
  423. package/es/common/reducers/interactionTypes.js +4 -0
  424. package/es/common/reducers/items.js +4 -0
  425. package/es/common/reducers/modal.js +6 -0
  426. package/es/common/reducers/moderation.js +3 -0
  427. package/es/common/reducers/modifications.js +40 -8
  428. package/es/common/reducers/outcomes.js +5 -0
  429. package/es/common/reducers/printing.js +2 -0
  430. package/es/common/reducers/qtiImports.js +5 -0
  431. package/es/common/reducers/quizEntries.js +39 -28
  432. package/es/common/reducers/quizExport.js +2 -0
  433. package/es/common/reducers/quizSessionEvents.js +5 -2
  434. package/es/common/reducers/quizSessionResults.js +4 -0
  435. package/es/common/reducers/quizSessions.js +11 -2
  436. package/es/common/reducers/quizzes.js +13 -0
  437. package/es/common/reducers/rce.js +6 -0
  438. package/es/common/reducers/regrading.js +4 -0
  439. package/es/common/reducers/reporting.js +12 -0
  440. package/es/common/reducers/scrolling.js +3 -0
  441. package/es/common/reducers/sessionItemResults.js +4 -0
  442. package/es/common/reducers/sessionItems.js +4 -0
  443. package/es/common/reducers/sharedBanks.js +8 -1
  444. package/es/common/reducers/sidebar.js +3 -0
  445. package/es/common/reducers/stimuli.js +4 -0
  446. package/es/common/reducers/tagAssociations.js +28 -0
  447. package/es/common/reducers/taking.js +35 -0
  448. package/es/common/reducers/ui.js +11 -0
  449. package/es/common/reducers/upload.js +7 -0
  450. package/es/common/selectors/analyses.js +2 -0
  451. package/es/common/selectors/calculator.js +10 -9
  452. package/es/common/selectors/config.js +2 -0
  453. package/es/common/selectors/interactionTypes.js +8 -7
  454. package/es/common/selectors/items.js +2 -1
  455. package/es/common/selectors/qtiImports.js +6 -3
  456. package/es/common/selectors/quizSessionResults.js +1 -1
  457. package/es/common/selectors/quizSessions.js +2 -3
  458. package/es/common/selectors/quizzes.js +14 -8
  459. package/es/common/selectors/reporting.js +3 -1
  460. package/es/common/selectors/sessionItemResults.js +5 -4
  461. package/es/common/selectors/sessionItems.js +5 -4
  462. package/es/common/selectors/taking.js +1 -1
  463. package/es/common/util/CustomPropTypes.js +12 -0
  464. package/es/common/util/ExhaustivePaginatedFetcher.js +73 -55
  465. package/es/common/util/Fetcher.js +224 -155
  466. package/es/common/util/MultiWeakMap.js +21 -1
  467. package/es/common/util/PaginatedFetcher.js +39 -21
  468. package/es/common/util/ThunkQueue.js +80 -50
  469. package/es/common/util/TimeRecordingService.js +14 -1
  470. package/es/common/util/TimerService.js +44 -5
  471. package/es/common/util/cachePreviousArgs.js +3 -0
  472. package/es/common/util/callHelpers.js +2 -0
  473. package/es/common/util/componentForItem.js +6 -1
  474. package/es/common/util/crossDomainMessaging.js +1 -0
  475. package/es/common/util/debounceLatestPromise.js +2 -0
  476. package/es/common/util/featureCheck.js +4 -6
  477. package/es/common/util/fitbCopyHelper.js +3 -3
  478. package/es/common/util/formatTimespan.js +10 -0
  479. package/es/common/util/generateDisplayPositions.js +5 -2
  480. package/es/common/util/immutableHelpers.js +6 -8
  481. package/es/common/util/interactionTypeMetadata.js +3 -2
  482. package/es/common/util/interactionTypePropsHelper.js +7 -0
  483. package/es/common/util/interactionTypeRecordForItem.js +7 -1
  484. package/es/common/util/jsonify.js +0 -1
  485. package/es/common/util/keyboardClickable.js +1 -0
  486. package/es/common/util/mathRenderingUtils.js +1 -2
  487. package/es/common/util/maxContent.js +1 -0
  488. package/es/common/util/persistedState.js +10 -4
  489. package/es/common/util/printUtils.js +4 -0
  490. package/es/common/util/rceChecker.js +15 -11
  491. package/es/common/util/renderAlerts.js +13 -11
  492. package/es/common/util/serializeEvent.js +4 -2
  493. package/es/common/util/sessionStore.js +13 -5
  494. package/es/common/util/warningHelpers.js +9 -0
  495. package/es/common/util/withCachedArguments.js +7 -3
  496. package/es/common/util/withDynamoPagination.js +84 -60
  497. package/es/common/util/withStateCache.js +10 -3
  498. package/es/config.js +9 -5
  499. package/es/configureStore.js +49 -52
  500. package/es/grading/api/quizEntryRegrades.js +5 -6
  501. package/es/grading/api/updateResults.js +8 -4
  502. package/es/index.js +135 -141
  503. package/es/messages/LocalStorageAdapter.js +15 -4
  504. package/es/messages/LocalStorageLimits.js +25 -5
  505. package/es/messages/StorageExhaustionError.js +12 -5
  506. package/es/messages/postMessageService.js +24 -5
  507. package/es/messages/subjectHandlers/forwardMessage.js +1 -0
  508. package/es/messages/subjectHandlers/lti.capabilities.js +1 -0
  509. package/es/messages/subjectHandlers/lti.fetchWindowSize.js +1 -0
  510. package/es/messages/subjectHandlers/lti.frameResize.js +4 -1
  511. package/es/messages/subjectHandlers/lti.get_data.js +8 -3
  512. package/es/messages/subjectHandlers/lti.put_data.js +10 -5
  513. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +5 -1
  514. package/es/messages/utils.js +1 -0
  515. package/es/moderating/api/quizSessionEvents.js +3 -3
  516. package/es/moderating/api/quizSessions.js +2 -2
  517. package/es/moderating/components/events/Event.js +34 -16
  518. package/es/moderating/components/events/PageBlurredEvent.js +12 -4
  519. package/es/moderating/components/events/PageFocusedEvent.js +12 -4
  520. package/es/moderating/components/events/RCEEvent.js +12 -4
  521. package/es/moderating/components/events/ResponseEvent.js +30 -15
  522. package/es/moderating/components/events/SessionStartEvent.js +12 -4
  523. package/es/moderating/components/events/styles.js +1 -0
  524. package/es/moderating/components/events/theme.js +2 -1
  525. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +30 -12
  526. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +29 -5
  527. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +29 -5
  528. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +30 -7
  529. package/es/moderating/components/resources/AccommodationsModal/index.js +32 -11
  530. package/es/moderating/components/resources/ElapsedTime.js +16 -9
  531. package/es/moderating/components/resources/ModerateTable/index.js +7 -7
  532. package/es/moderating/components/resources/ModerateTable/presenter.js +96 -44
  533. package/es/moderating/components/resources/ModerateTable/styles.js +2 -0
  534. package/es/moderating/components/resources/ModerateTable/theme.js +2 -1
  535. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +4 -2
  536. package/es/moderating/components/resources/ModerateTableRow/index.js +5 -5
  537. package/es/moderating/components/resources/ModerateTableRow/presenter.js +73 -30
  538. package/es/moderating/components/resources/ModerateTableRow/story.js +2 -3
  539. package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -0
  540. package/es/moderating/components/resources/ModerateTableRow/theme.js +1 -0
  541. package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
  542. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +32 -5
  543. package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
  544. package/es/moderating/components/sidebar/ModerateTray/presenter.js +27 -4
  545. package/es/moderating/components/sidebar/ResetQuiz/index.js +9 -7
  546. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +38 -17
  547. package/es/reduxStore.js +8 -4
  548. package/es/reporting/api/getAnalysesExport.js +29 -20
  549. package/es/reporting/api/getAnalysesStatus.js +22 -17
  550. package/es/reporting/api/getItemAnalyses.js +22 -17
  551. package/es/reporting/api/getQuizAnalysis.js +22 -17
  552. package/es/reporting/api/itemAnalyses.js +4 -4
  553. package/es/reporting/api/quizAnalyses.js +4 -4
  554. package/es/reporting/components/Caption/index.js +21 -11
  555. package/es/reporting/components/Caption/styles.js +1 -0
  556. package/es/reporting/components/Caption/theme.js +3 -2
  557. package/es/reporting/components/MetricsListItem/index.js +23 -13
  558. package/es/reporting/components/MetricsListItem/styles.js +1 -0
  559. package/es/reporting/components/charts/CentileDistribution/presenter.js +42 -17
  560. package/es/reporting/components/charts/CentileDistribution/styles.js +2 -0
  561. package/es/reporting/components/charts/CentileDistribution/theme.js +3 -2
  562. package/es/reporting/components/charts/Distribution/presenter.js +54 -21
  563. package/es/reporting/components/charts/Distribution/styles.js +1 -0
  564. package/es/reporting/components/charts/Distribution/theme.js +2 -1
  565. package/es/reporting/components/charts/Legend/index.js +25 -14
  566. package/es/reporting/components/charts/Legend/styles.js +2 -0
  567. package/es/reporting/components/charts/Legend/theme.js +4 -3
  568. package/es/reporting/components/charts/QuintileDistribution/presenter.js +40 -14
  569. package/es/reporting/components/charts/QuintileDistribution/styles.js +1 -0
  570. package/es/reporting/components/charts/QuintileDistribution/theme.js +2 -1
  571. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
  572. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +33 -11
  573. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +14 -2
  574. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +6 -5
  575. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
  576. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
  577. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +52 -29
  578. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +3 -0
  579. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -3
  580. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +41 -22
  581. package/es/reporting/components/quizAnalysis/styles.js +7 -3
  582. package/es/reporting/components/quizAnalysis/theme.js +4 -3
  583. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
  584. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +25 -15
  585. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -0
  586. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
  587. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +25 -15
  588. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +4 -1
  589. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +17 -9
  590. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  591. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +19 -11
  592. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  593. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +20 -12
  594. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  595. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +34 -11
  596. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -0
  597. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -0
  598. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  599. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +31 -16
  600. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -0
  601. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -0
  602. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +24 -12
  603. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +20 -12
  604. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  605. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +51 -27
  606. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -0
  607. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -0
  608. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +25 -12
  609. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
  610. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +10 -3
  611. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  612. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +22 -12
  613. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  614. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +62 -26
  615. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -0
  616. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -0
  617. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  618. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +40 -20
  619. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -0
  620. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -0
  621. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  622. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +24 -14
  623. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +32 -16
  624. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -0
  625. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -1
  626. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +20 -12
  627. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  628. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +44 -19
  629. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  630. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +29 -13
  631. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -0
  632. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -0
  633. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  634. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +23 -12
  635. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -0
  636. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  637. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +54 -18
  638. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -0
  639. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -0
  640. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  641. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +61 -19
  642. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -0
  643. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -1
  644. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  645. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +28 -15
  646. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -0
  647. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -0
  648. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +6 -3
  649. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
  650. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +32 -14
  651. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -0
  652. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -0
  653. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  654. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +20 -10
  655. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -0
  656. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -0
  657. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -3
  658. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +55 -25
  659. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -0
  660. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -3
  661. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
  662. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +42 -21
  663. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -0
  664. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -0
  665. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
  666. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +56 -31
  667. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -0
  668. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -1
  669. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
  670. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +31 -13
  671. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -0
  672. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +3 -2
  673. package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +7 -1
  674. package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +53 -40
  675. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +50 -41
  676. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +35 -27
  677. package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +85 -64
  678. package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
  679. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +77 -39
  680. package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -0
  681. package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -0
  682. package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +5 -0
  683. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +13 -11
  684. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +133 -104
  685. package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
  686. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +25 -12
  687. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +9 -7
  688. package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
  689. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +56 -29
  690. package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -0
  691. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -2
  692. package/es/reporting/components/resources/ReportCard/index.js +25 -15
  693. package/es/reporting/components/resources/ReportCard/styles.js +2 -0
  694. package/es/reporting/components/resources/ReportCard/theme.js +2 -1
  695. package/es/reporting/components/resources/ReportList/index.js +24 -14
  696. package/es/reporting/components/resources/ReportList/styles.js +1 -0
  697. package/es/reporting/components/resources/ReportList/theme.js +1 -0
  698. package/es/taking/api/taking.js +53 -41
  699. package/es/taking/learnosity/index.js +68 -42
  700. package/lib/banks/api/bankEntries.js +65 -23
  701. package/lib/banks/api/banks.js +103 -38
  702. package/lib/banks/api/copyingBanksPoller.js +83 -60
  703. package/lib/banks/api/tagAssociations.js +61 -32
  704. package/lib/banks/components/AddBankEntryModal/index.js +25 -10
  705. package/lib/banks/components/AddBankEntryModal/presenter.js +49 -10
  706. package/lib/banks/components/AddToBankModal/index.js +36 -16
  707. package/lib/banks/components/AddToBankModal/presenter.js +126 -56
  708. package/lib/banks/components/AsyncSearch/index.js +94 -18
  709. package/lib/banks/components/Bank/index.js +37 -17
  710. package/lib/banks/components/Bank/presenter.js +165 -70
  711. package/lib/banks/components/Bank/styles.js +8 -2
  712. package/lib/banks/components/Bank/theme.js +6 -3
  713. package/lib/banks/components/BankEntriesList/index.js +15 -6
  714. package/lib/banks/components/BankEntriesList/presenter.js +45 -18
  715. package/lib/banks/components/BankEntriesList/styles.js +4 -1
  716. package/lib/banks/components/BankEntriesList/theme.js +4 -1
  717. package/lib/banks/components/BankEntry/index.js +42 -17
  718. package/lib/banks/components/BankEntry/presenter.js +314 -173
  719. package/lib/banks/components/BankEntry/styles.js +7 -2
  720. package/lib/banks/components/BankEntry/theme.js +7 -4
  721. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +13 -5
  722. package/lib/banks/components/BankEntryRow/index.js +32 -12
  723. package/lib/banks/components/BankEntryRow/presenter.js +100 -38
  724. package/lib/banks/components/BankEntryRow/styles.js +4 -1
  725. package/lib/banks/components/BankEntryRow/theme.js +7 -4
  726. package/lib/banks/components/BankSearch/BankSearch.stories.js +27 -9
  727. package/lib/banks/components/BankSearch/index.js +18 -6
  728. package/lib/banks/components/BankSearch/presenter.js +70 -25
  729. package/lib/banks/components/BankSearch/styles.js +4 -1
  730. package/lib/banks/components/BankSearch/theme.js +4 -1
  731. package/lib/banks/components/Banks/index.js +26 -10
  732. package/lib/banks/components/Banks/presenter.js +129 -42
  733. package/lib/banks/components/Banks/styles.js +4 -1
  734. package/lib/banks/components/Banks/theme.js +6 -3
  735. package/lib/banks/components/BanksList/index.js +26 -12
  736. package/lib/banks/components/BanksList/presenter.js +180 -88
  737. package/lib/banks/components/BanksList/styles.js +4 -1
  738. package/lib/banks/components/BanksList/theme.js +7 -4
  739. package/lib/banks/components/CopyMoveBankEntryModal/index.js +30 -13
  740. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +65 -15
  741. package/lib/banks/components/CreateBankModal/index.js +33 -13
  742. package/lib/banks/components/CreateBankModal/presenter.js +64 -16
  743. package/lib/banks/components/CreateBankModal/styles.js +4 -1
  744. package/lib/banks/components/CreateBankModal/theme.js +5 -2
  745. package/lib/banks/components/EditBankModal/index.js +27 -10
  746. package/lib/banks/components/EditBankModal/presenter.js +56 -16
  747. package/lib/banks/components/EditBankModal/styles.js +4 -1
  748. package/lib/banks/components/EditBankModal/theme.js +5 -2
  749. package/lib/banks/components/HeaderBreadCrumb/index.js +47 -17
  750. package/lib/banks/components/HeaderMenu/index.js +20 -8
  751. package/lib/banks/components/HeaderMenu/presenter.js +51 -19
  752. package/lib/banks/components/HeaderMenu/styles.js +4 -1
  753. package/lib/banks/components/HeaderMenu/theme.js +5 -2
  754. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +9 -3
  755. package/lib/banks/components/NavWrapper/index.js +12 -4
  756. package/lib/banks/components/NavWrapper/presenter.js +64 -25
  757. package/lib/banks/components/NavWrapper/styles.js +5 -1
  758. package/lib/banks/components/NavWrapper/theme.js +8 -5
  759. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +37 -8
  760. package/lib/banks/components/SharingModal/RootAccountSharing.js +55 -19
  761. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +5 -2
  762. package/lib/banks/components/SharingModal/ShareList/index.js +61 -20
  763. package/lib/banks/components/SharingModal/ShareList/styles.js +4 -1
  764. package/lib/banks/components/SharingModal/index.js +22 -8
  765. package/lib/banks/components/SharingModal/presenter.js +164 -63
  766. package/lib/banks/components/SharingModal/styles.js +4 -1
  767. package/lib/banks/components/SharingModal/theme.js +6 -3
  768. package/lib/building/api/items.js +118 -81
  769. package/lib/building/api/qtiImports.js +47 -18
  770. package/lib/building/api/quizEntries.js +111 -64
  771. package/lib/building/api/quizzes.js +78 -50
  772. package/lib/building/api/stimuli.js +16 -9
  773. package/lib/building/components/QTIImportModal/index.js +28 -13
  774. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +50 -19
  775. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +46 -19
  776. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +62 -34
  777. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +7 -2
  778. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +4 -1
  779. package/lib/building/components/layout/Sidebar/Stimulus/index.js +43 -17
  780. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +61 -33
  781. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +7 -2
  782. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +4 -1
  783. package/lib/building/components/layout/Sidebar/index.js +44 -21
  784. package/lib/building/components/layout/Sidebar/presenter.js +74 -28
  785. package/lib/building/components/layout/Sidebar/styles.js +7 -2
  786. package/lib/building/components/layout/Sidebar/theme.js +4 -1
  787. package/lib/building/components/layout/header/BuildingButtons/index.js +34 -15
  788. package/lib/building/components/layout/header/BuildingButtons/presenter.js +86 -19
  789. package/lib/building/components/layout/header/BuildingButtons/styles.js +7 -2
  790. package/lib/building/components/layout/header/BuildingButtons/theme.js +6 -3
  791. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +16 -7
  792. package/lib/building/components/resources/ActionButtons/index.js +20 -7
  793. package/lib/building/components/resources/ActionButtons/presenter.js +55 -18
  794. package/lib/building/components/resources/ActionButtons/styles.js +9 -2
  795. package/lib/building/components/resources/ActionButtons/theme.js +5 -2
  796. package/lib/building/components/resources/AddToBankOptions/index.js +81 -41
  797. package/lib/building/components/resources/AddToBankOptions/styles.js +4 -1
  798. package/lib/building/components/resources/AddToBankOptions/theme.js +5 -2
  799. package/lib/building/components/resources/BanksTray/index.js +13 -5
  800. package/lib/building/components/resources/BanksTray/presenter.js +69 -19
  801. package/lib/building/components/resources/DeleteStimulusModal/index.js +24 -10
  802. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +79 -24
  803. package/lib/building/components/resources/DeleteStimulusModal/styles.js +4 -1
  804. package/lib/building/components/resources/DeleteStimulusModal/theme.js +5 -2
  805. package/lib/building/components/resources/ItemFeedbackModal/index.js +27 -12
  806. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +53 -15
  807. package/lib/building/components/resources/ItemFeedbackModal/styles.js +4 -1
  808. package/lib/building/components/resources/ItemFeedbackModal/theme.js +4 -1
  809. package/lib/building/components/resources/MoveImmutableModal/index.js +29 -14
  810. package/lib/building/components/resources/MoveImmutableModal/presenter.js +45 -12
  811. package/lib/building/components/resources/quiz/editButton/EditButton.js +38 -8
  812. package/lib/building/components/resources/quiz/instructions/Edit/index.js +11 -4
  813. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +45 -20
  814. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +4 -1
  815. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -0
  816. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +9 -4
  817. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +23 -10
  818. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +75 -31
  819. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +7 -2
  820. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +3 -2
  821. package/lib/building/components/resources/quiz/instructions/Show/index.js +47 -17
  822. package/lib/building/components/resources/quiz/instructions/Show/styles.js +4 -1
  823. package/lib/building/components/resources/quiz/instructions/Show/theme.js +3 -2
  824. package/lib/building/components/resources/quiz/title/Edit/index.js +55 -19
  825. package/lib/building/components/resources/quiz/title/Edit/styles.js +7 -2
  826. package/lib/building/components/resources/quiz/title/Edit/theme.js +7 -4
  827. package/lib/building/components/resources/quiz/title/Show/index.js +47 -17
  828. package/lib/building/components/resources/quiz/title/Show/styles.js +4 -1
  829. package/lib/building/components/resources/quiz/title/Show/theme.js +4 -1
  830. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +9 -4
  831. package/lib/building/components/resources/quiz/title/Title/index.js +25 -11
  832. package/lib/building/components/resources/quiz/title/Title/presenter.js +69 -31
  833. package/lib/building/components/resources/quiz/title/Title/styles.js +8 -2
  834. package/lib/building/components/resources/quiz/title/Title/theme.js +4 -3
  835. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +44 -19
  836. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +117 -46
  837. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +23 -6
  838. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +7 -2
  839. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +7 -4
  840. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +17 -8
  841. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +77 -21
  842. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +4 -1
  843. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +7 -4
  844. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +47 -18
  845. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +4 -1
  846. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +7 -4
  847. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +18 -8
  848. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +79 -28
  849. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +8 -2
  850. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +7 -4
  851. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +151 -74
  852. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +5 -1
  853. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +6 -3
  854. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +35 -14
  855. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +206 -107
  856. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +5 -1
  857. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +7 -4
  858. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +24 -10
  859. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +106 -47
  860. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +8 -2
  861. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +8 -5
  862. package/lib/common/actions/addInteractionTypes.js +2 -0
  863. package/lib/common/actions/alerts.js +18 -9
  864. package/lib/common/actions/analyses.js +11 -4
  865. package/lib/common/actions/bankEntries.js +10 -3
  866. package/lib/common/actions/bankSearch.js +19 -6
  867. package/lib/common/actions/banks.js +27 -8
  868. package/lib/common/actions/config.js +5 -1
  869. package/lib/common/actions/dragAndDrop.js +2 -0
  870. package/lib/common/actions/editing.js +5 -1
  871. package/lib/common/actions/errorsShowing.js +5 -1
  872. package/lib/common/actions/features.js +3 -0
  873. package/lib/common/actions/grading.js +6 -2
  874. package/lib/common/actions/items.js +2 -0
  875. package/lib/common/actions/modal.js +10 -3
  876. package/lib/common/actions/moderation.js +3 -0
  877. package/lib/common/actions/modifications.js +86 -64
  878. package/lib/common/actions/outcomes.js +5 -0
  879. package/lib/common/actions/postMessage.js +2 -0
  880. package/lib/common/actions/printing.js +4 -1
  881. package/lib/common/actions/qtiImports.js +3 -0
  882. package/lib/common/actions/quizEntries.js +7 -0
  883. package/lib/common/actions/quizExport.js +6 -2
  884. package/lib/common/actions/quizSessionEvents.js +6 -2
  885. package/lib/common/actions/quizSessionResults.js +6 -2
  886. package/lib/common/actions/quizSessions.js +45 -13
  887. package/lib/common/actions/quizzes.js +27 -8
  888. package/lib/common/actions/rce.js +17 -8
  889. package/lib/common/actions/regrading.js +5 -1
  890. package/lib/common/actions/reporting.js +7 -1
  891. package/lib/common/actions/scrolling.js +4 -1
  892. package/lib/common/actions/sessionItemResults.js +6 -2
  893. package/lib/common/actions/sessionItems.js +6 -2
  894. package/lib/common/actions/sharedBanks.js +15 -5
  895. package/lib/common/actions/sidebar.js +4 -1
  896. package/lib/common/actions/stimuli.js +2 -0
  897. package/lib/common/actions/tagAssociations.js +34 -9
  898. package/lib/common/actions/taking.js +76 -25
  899. package/lib/common/actions/ui.js +39 -11
  900. package/lib/common/actions/upload.js +22 -6
  901. package/lib/common/api/callHandlers.js +111 -38
  902. package/lib/common/api/camelizeHelpers.js +15 -6
  903. package/lib/common/api/features.js +15 -6
  904. package/lib/common/api/fileUpload.js +14 -7
  905. package/lib/common/api/getPersistenceActions.js +64 -42
  906. package/lib/common/api/helpers.js +127 -84
  907. package/lib/common/api/interactionTypes.js +11 -5
  908. package/lib/common/api/quizSessions.js +94 -42
  909. package/lib/common/api/quizzes.js +19 -11
  910. package/lib/common/api/schema.js +42 -24
  911. package/lib/common/components/ApiFeatureFlagInitializer/index.js +26 -12
  912. package/lib/common/components/ConfirmationModal/index.js +17 -5
  913. package/lib/common/components/ConfirmationModal/presenter.js +49 -17
  914. package/lib/common/components/ImportModal/ImportFileSelector/index.js +57 -27
  915. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +4 -1
  916. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -3
  917. package/lib/common/components/ImportModal/index.js +33 -18
  918. package/lib/common/components/ImportModal/presenter.js +95 -23
  919. package/lib/common/components/ImportModal/styles.js +4 -1
  920. package/lib/common/components/ImportModal/theme.js +4 -1
  921. package/lib/common/components/LearnosityCalculator/index.js +81 -43
  922. package/lib/common/components/Pin/Pin.examples.js +3 -2
  923. package/lib/common/components/Pin/index.js +7 -3
  924. package/lib/common/components/Pin/presenter.js +35 -8
  925. package/lib/common/components/PreviewFrame/examples.config.js +10 -5
  926. package/lib/common/components/PreviewFrame/index.js +36 -12
  927. package/lib/common/components/PrintFontSizeModal/index.js +7 -3
  928. package/lib/common/components/PrintFontSizeModal/presenter.js +54 -27
  929. package/lib/common/components/PrintFontSizeModal/styles.js +4 -1
  930. package/lib/common/components/PrintFontSizeModal/theme.js +6 -3
  931. package/lib/common/components/RceConfigProvider/index.js +14 -6
  932. package/lib/common/components/RceConfigProvider/presenter.js +145 -96
  933. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +26 -9
  934. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +26 -8
  935. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +45 -29
  936. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +20 -6
  937. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +12 -6
  938. package/lib/common/components/SDKApp/index.js +92 -39
  939. package/lib/common/components/SDKApp/styles.js +4 -1
  940. package/lib/common/components/SDKHeaderCalculator.js +20 -10
  941. package/lib/common/components/SDKMenuButton.js +16 -7
  942. package/lib/common/components/SDKNavBar.js +17 -8
  943. package/lib/common/components/SDKTimer.js +20 -10
  944. package/lib/common/components/alerts/index.js +17 -7
  945. package/lib/common/components/alerts/presenter.js +48 -14
  946. package/lib/common/components/alerts/styles.js +7 -2
  947. package/lib/common/components/alerts/theme.js +5 -2
  948. package/lib/common/components/layout/Page/index.js +33 -14
  949. package/lib/common/components/layout/Page/styles.js +8 -2
  950. package/lib/common/components/layout/Page/theme.js +6 -3
  951. package/lib/common/components/layout/header/Calculator/index.js +20 -9
  952. package/lib/common/components/layout/header/Calculator/presenter.js +43 -14
  953. package/lib/common/components/layout/header/HeaderMenuButton/index.js +22 -10
  954. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +52 -17
  955. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +7 -2
  956. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +6 -3
  957. package/lib/common/components/layout/header/Timer/index.js +22 -8
  958. package/lib/common/components/layout/header/Timer/presenter.js +75 -25
  959. package/lib/common/components/layout/header/Timer/styles.js +4 -1
  960. package/lib/common/components/layout/header/Timer/theme.js +7 -4
  961. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +34 -13
  962. package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +4 -1
  963. package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +4 -1
  964. package/lib/common/components/layout/navbar/index.js +55 -18
  965. package/lib/common/components/layout/navbar/styles.js +4 -1
  966. package/lib/common/components/layout/navbar/theme.js +5 -2
  967. package/lib/common/components/layout/sidebar/PositionSummary/index.js +34 -13
  968. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +4 -1
  969. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +7 -4
  970. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +33 -8
  971. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +17 -9
  972. package/lib/common/components/layout/sidebar/Sidebar/index.js +108 -43
  973. package/lib/common/components/layout/sidebar/Sidebar/styles.js +15 -6
  974. package/lib/common/components/layout/sidebar/Sidebar/theme.js +10 -6
  975. package/lib/common/components/layout/sidebar/SidebarItem/index.js +27 -11
  976. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +72 -39
  977. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -2
  978. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -4
  979. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +13 -6
  980. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +60 -27
  981. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +9 -3
  982. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +6 -3
  983. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +13 -6
  984. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +59 -23
  985. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +4 -1
  986. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +6 -3
  987. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +35 -14
  988. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +4 -1
  989. package/lib/common/components/layout/sidebar/Stimulus/index.js +21 -8
  990. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +76 -35
  991. package/lib/common/components/layout/sidebar/Stimulus/styles.js +4 -1
  992. package/lib/common/components/layout/sidebar/Stimulus/theme.js +7 -4
  993. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -2
  994. package/lib/common/components/resources/BankSelection/index.js +21 -9
  995. package/lib/common/components/resources/BankSelection/presenter.js +70 -20
  996. package/lib/common/components/resources/WarningWrapper/index.js +42 -14
  997. package/lib/common/components/resources/WarningWrapper/styles.js +4 -1
  998. package/lib/common/components/resources/WarningWrapper/theme.js +6 -3
  999. package/lib/common/components/resources/entry/EntrySave/index.js +29 -13
  1000. package/lib/common/components/resources/entry/EntrySave/presenter.js +175 -99
  1001. package/lib/common/components/resources/item/ItemEdit/index.js +44 -21
  1002. package/lib/common/components/resources/item/ItemEdit/presenter.js +69 -22
  1003. package/lib/common/components/resources/item/ItemOverride/index.js +29 -12
  1004. package/lib/common/components/resources/item/ItemOverride/presenter.js +38 -10
  1005. package/lib/common/components/resources/item/ItemShow/index.js +34 -10
  1006. package/lib/common/components/resources/positionBox/PositionBox.js +35 -14
  1007. package/lib/common/components/resources/positionBox/styles.js +7 -2
  1008. package/lib/common/components/resources/positionBox/theme.js +6 -3
  1009. package/lib/common/components/resources/quiz/AddContent/Body/index.js +22 -9
  1010. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +68 -27
  1011. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +14 -6
  1012. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +8 -5
  1013. package/lib/common/components/resources/quiz/AddContent/Button/index.js +42 -14
  1014. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +8 -2
  1015. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +8 -5
  1016. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +21 -10
  1017. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +33 -10
  1018. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +23 -10
  1019. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +59 -21
  1020. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +4 -1
  1021. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +5 -2
  1022. package/lib/common/components/resources/quiz/info/QuizInfo.js +31 -10
  1023. package/lib/common/components/resources/quiz/instructions/Instructions.js +38 -19
  1024. package/lib/common/components/resources/quiz/instructions/styles.js +4 -1
  1025. package/lib/common/components/resources/quiz/instructions/theme.js +5 -2
  1026. package/lib/common/components/resources/quiz/title/Title.js +38 -18
  1027. package/lib/common/components/resources/quiz/title/styles.js +4 -1
  1028. package/lib/common/components/resources/quiz/title/theme.js +5 -2
  1029. package/lib/common/components/resources/quizSessionResult/Header/index.js +43 -14
  1030. package/lib/common/components/resources/quizSessionResult/Header/styles.js +4 -1
  1031. package/lib/common/components/resources/quizSessionResult/Header/theme.js +5 -2
  1032. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +11 -5
  1033. package/lib/common/components/resources/quizSessionResult/Info/index.js +151 -111
  1034. package/lib/common/components/resources/quizSessionResult/Info/styles.js +5 -1
  1035. package/lib/common/components/resources/quizSessionResult/Info/theme.js +5 -2
  1036. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +37 -13
  1037. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +8 -2
  1038. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +8 -5
  1039. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +17 -7
  1040. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +115 -68
  1041. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +7 -2
  1042. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +7 -4
  1043. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +53 -20
  1044. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +4 -1
  1045. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +7 -4
  1046. package/lib/common/components/resources/stimulus/Stimulus/index.js +19 -7
  1047. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +72 -32
  1048. package/lib/common/components/resources/stimulus/Stimulus/styles.js +12 -3
  1049. package/lib/common/components/resources/stimulus/Stimulus/theme.js +7 -4
  1050. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +33 -13
  1051. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +232 -120
  1052. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +4 -1
  1053. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +6 -3
  1054. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +19 -7
  1055. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +67 -19
  1056. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +4 -1
  1057. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +6 -3
  1058. package/lib/common/components/resources/stimulus/StimulusShow/index.js +53 -22
  1059. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +4 -1
  1060. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +6 -3
  1061. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +8 -4
  1062. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +30 -7
  1063. package/lib/common/components/shared/Card/CardContent/index.js +35 -14
  1064. package/lib/common/components/shared/Card/CardContent/styles.js +7 -2
  1065. package/lib/common/components/shared/Card/CardContent/theme.js +8 -5
  1066. package/lib/common/components/shared/Card/CardWrapper/index.js +35 -14
  1067. package/lib/common/components/shared/Card/CardWrapper/styles.js +7 -2
  1068. package/lib/common/components/shared/Card/CardWrapper/theme.js +6 -3
  1069. package/lib/common/components/shared/Card/index.js +20 -10
  1070. package/lib/common/components/shared/ExpandButton/index.js +35 -13
  1071. package/lib/common/components/shared/ExpandButton/styles.js +7 -2
  1072. package/lib/common/components/shared/ExpandButton/theme.js +4 -1
  1073. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +8 -3
  1074. package/lib/common/components/shared/FormattedDuration/index.js +48 -17
  1075. package/lib/common/components/shared/IfFeature/index.js +13 -6
  1076. package/lib/common/components/shared/IfFeature/presenter.js +25 -7
  1077. package/lib/common/components/shared/InteractionTypes/index.js +11 -4
  1078. package/lib/common/components/shared/InteractionTypes/presenter.js +56 -17
  1079. package/lib/common/components/shared/InteractionTypes/styles.js +4 -1
  1080. package/lib/common/components/shared/InteractionTypes/theme.js +6 -3
  1081. package/lib/common/components/shared/PaginatedCollection/index.js +16 -7
  1082. package/lib/common/components/shared/PaginatedCollection/presenter.js +97 -63
  1083. package/lib/common/components/shared/PaginatedCollection/styles.js +4 -1
  1084. package/lib/common/components/shared/PaginatedCollection/theme.js +6 -3
  1085. package/lib/common/components/shared/Paginator/index.js +38 -14
  1086. package/lib/common/components/shared/Paginator/styles.js +4 -1
  1087. package/lib/common/components/shared/Paginator/theme.js +4 -1
  1088. package/lib/common/components/shared/PrintTrigger/index.js +27 -11
  1089. package/lib/common/components/shared/PrintTrigger/presenter.js +61 -17
  1090. package/lib/common/components/shared/TagDisplay/index.js +37 -13
  1091. package/lib/common/components/shared/TagDisplay/styles.js +4 -1
  1092. package/lib/common/components/shared/TagSelect/index.js +7 -3
  1093. package/lib/common/components/shared/TagSelect/presenter.js +72 -20
  1094. package/lib/common/components/shared/TagSuggestSelect/index.js +17 -6
  1095. package/lib/common/components/shared/TagSuggestSelect/presenter.js +49 -17
  1096. package/lib/common/components/shared/TagWrapper/index.js +7 -3
  1097. package/lib/common/components/shared/TagWrapper/presenter.js +38 -11
  1098. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -2
  1099. package/lib/common/components/shared/TimeUnitsInput/index.js +89 -36
  1100. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +47 -21
  1101. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -2
  1102. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +6 -3
  1103. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +30 -13
  1104. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +89 -30
  1105. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +108 -39
  1106. package/lib/common/components/shared/errors/Errors.js +42 -14
  1107. package/lib/common/components/shared/errors/styles.js +4 -1
  1108. package/lib/common/components/shared/errors/theme.js +5 -2
  1109. package/lib/common/components/shared/file_selector/FileSelector.js +39 -15
  1110. package/lib/common/components/shared/file_selector/styles.js +4 -1
  1111. package/lib/common/components/shared/file_selector/theme.js +6 -3
  1112. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +40 -18
  1113. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +32 -12
  1114. package/lib/common/components/shared/functionality/disableDraggingOverride.js +10 -4
  1115. package/lib/common/components/shared/functionality/makeEditable.js +59 -25
  1116. package/lib/common/components/shared/functionality/makeScrollable.js +74 -33
  1117. package/lib/common/components/shared/overlay/index.js +39 -26
  1118. package/lib/common/components/shared/overlay/styles.js +7 -2
  1119. package/lib/common/components/shared/overlay/theme.js +6 -3
  1120. package/lib/common/components/shared/return_button/ReturnButton.js +33 -11
  1121. package/lib/common/components/shared/spinner/Spinner.js +43 -20
  1122. package/lib/common/components/shared/spinner/styles.js +4 -1
  1123. package/lib/common/kinesis/QuizEventsLogger.js +89 -52
  1124. package/lib/common/kinesis/StreamQueue.js +33 -12
  1125. package/lib/common/kinesis/client.js +26 -9
  1126. package/lib/common/kinesis/config.js +22 -9
  1127. package/lib/common/kinesis/eventTypes.js +20 -12
  1128. package/lib/common/middleware/alertTimerMiddleware.js +11 -4
  1129. package/lib/common/middleware/crossDomainMessagingMiddleware.js +8 -2
  1130. package/lib/common/middleware/eventLoggerMiddleware.js +14 -6
  1131. package/lib/common/middleware/persistedStorageMiddleware.js +15 -4
  1132. package/lib/common/react-redux.js +7 -3
  1133. package/lib/common/records/Alert.js +20 -8
  1134. package/lib/common/records/Bank.js +30 -10
  1135. package/lib/common/records/BankEntry.js +32 -10
  1136. package/lib/common/records/Item.js +39 -18
  1137. package/lib/common/records/ItemAnalysis.js +28 -9
  1138. package/lib/common/records/QtiImport.js +25 -8
  1139. package/lib/common/records/Quiz.js +47 -21
  1140. package/lib/common/records/QuizAnalysis.js +24 -8
  1141. package/lib/common/records/QuizEntry.js +179 -109
  1142. package/lib/common/records/QuizSession.js +46 -24
  1143. package/lib/common/records/QuizSessionEvent.js +25 -9
  1144. package/lib/common/records/QuizSessionResult.js +27 -9
  1145. package/lib/common/records/Response.js +27 -9
  1146. package/lib/common/records/SessionItem.js +38 -13
  1147. package/lib/common/records/SessionItemResult.js +26 -9
  1148. package/lib/common/records/Stimulus.js +33 -13
  1149. package/lib/common/records/baseRecord.js +33 -11
  1150. package/lib/common/records/index.js +52 -35
  1151. package/lib/common/records/reduxRecord.js +21 -10
  1152. package/lib/common/reducers/alerts.js +10 -2
  1153. package/lib/common/reducers/analyses.js +35 -11
  1154. package/lib/common/reducers/bankEntries.js +15 -3
  1155. package/lib/common/reducers/bankSearch.js +17 -6
  1156. package/lib/common/reducers/banks.js +23 -4
  1157. package/lib/common/reducers/calls.js +10 -2
  1158. package/lib/common/reducers/config.js +12 -2
  1159. package/lib/common/reducers/dragAndDrop.js +9 -2
  1160. package/lib/common/reducers/editing.js +13 -4
  1161. package/lib/common/reducers/errorsShowing.js +11 -2
  1162. package/lib/common/reducers/features.js +10 -2
  1163. package/lib/common/reducers/grading.js +11 -2
  1164. package/lib/common/reducers/interactionTypes.js +13 -3
  1165. package/lib/common/reducers/items.js +14 -3
  1166. package/lib/common/reducers/modal.js +13 -2
  1167. package/lib/common/reducers/moderation.js +11 -2
  1168. package/lib/common/reducers/modifications.js +50 -11
  1169. package/lib/common/reducers/outcomes.js +13 -2
  1170. package/lib/common/reducers/printing.js +9 -2
  1171. package/lib/common/reducers/qtiImports.js +15 -3
  1172. package/lib/common/reducers/quizEntries.js +50 -31
  1173. package/lib/common/reducers/quizExport.js +9 -2
  1174. package/lib/common/reducers/quizSessionEvents.js +12 -4
  1175. package/lib/common/reducers/quizSessionResults.js +13 -3
  1176. package/lib/common/reducers/quizSessions.js +22 -5
  1177. package/lib/common/reducers/quizzes.js +25 -3
  1178. package/lib/common/reducers/rce.js +12 -2
  1179. package/lib/common/reducers/regrading.js +12 -2
  1180. package/lib/common/reducers/reporting.js +22 -3
  1181. package/lib/common/reducers/scrolling.js +10 -2
  1182. package/lib/common/reducers/sessionItemResults.js +13 -3
  1183. package/lib/common/reducers/sessionItems.js +14 -3
  1184. package/lib/common/reducers/sharedBanks.js +17 -4
  1185. package/lib/common/reducers/sidebar.js +10 -2
  1186. package/lib/common/reducers/stimuli.js +14 -3
  1187. package/lib/common/reducers/tagAssociations.js +35 -2
  1188. package/lib/common/reducers/taking.js +41 -2
  1189. package/lib/common/reducers/ui.js +18 -2
  1190. package/lib/common/reducers/upload.js +14 -2
  1191. package/lib/common/selectors/analyses.js +28 -8
  1192. package/lib/common/selectors/calculator.js +15 -8
  1193. package/lib/common/selectors/calls.js +3 -0
  1194. package/lib/common/selectors/config.js +5 -1
  1195. package/lib/common/selectors/interactionTypes.js +22 -12
  1196. package/lib/common/selectors/items.js +9 -2
  1197. package/lib/common/selectors/qtiImports.js +14 -6
  1198. package/lib/common/selectors/quizSessionResults.js +8 -3
  1199. package/lib/common/selectors/quizSessions.js +30 -13
  1200. package/lib/common/selectors/quizzes.js +70 -23
  1201. package/lib/common/selectors/rce.js +10 -4
  1202. package/lib/common/selectors/reporting.js +11 -4
  1203. package/lib/common/selectors/sessionItemResults.js +17 -8
  1204. package/lib/common/selectors/sessionItems.js +18 -8
  1205. package/lib/common/selectors/taking.js +29 -10
  1206. package/lib/common/selectors/ui.js +5 -2
  1207. package/lib/common/util/CustomPropTypes.js +23 -3
  1208. package/lib/common/util/ElementsForSelectors.js +8 -3
  1209. package/lib/common/util/ExhaustivePaginatedFetcher.js +85 -55
  1210. package/lib/common/util/Fetcher.js +245 -157
  1211. package/lib/common/util/MultiWeakMap.js +27 -4
  1212. package/lib/common/util/PaginatedFetcher.js +57 -24
  1213. package/lib/common/util/ThunkQueue.js +87 -53
  1214. package/lib/common/util/TimeRecordingService.js +23 -4
  1215. package/lib/common/util/TimerService.js +59 -9
  1216. package/lib/common/util/cachePreviousArgs.js +11 -3
  1217. package/lib/common/util/callHelpers.js +20 -6
  1218. package/lib/common/util/componentForItem.js +16 -4
  1219. package/lib/common/util/crossDomainMessaging.js +2 -0
  1220. package/lib/common/util/debounceLatestPromise.js +10 -3
  1221. package/lib/common/util/featureCheck.js +16 -6
  1222. package/lib/common/util/fetchHelpers.js +1 -0
  1223. package/lib/common/util/fitbCopyHelper.js +4 -1
  1224. package/lib/common/util/formatTimespan.js +22 -3
  1225. package/lib/common/util/generateDisplayPositions.js +10 -4
  1226. package/lib/common/util/httpHeaders.js +12 -5
  1227. package/lib/common/util/immutableHelpers.js +19 -10
  1228. package/lib/common/util/instUIMessages.js +5 -2
  1229. package/lib/common/util/interactionTypeMetadata.js +16 -8
  1230. package/lib/common/util/interactionTypePropsHelper.js +20 -4
  1231. package/lib/common/util/interactionTypeRecordForItem.js +13 -3
  1232. package/lib/common/util/jsonify.js +10 -5
  1233. package/lib/common/util/keyboardClickable.js +4 -1
  1234. package/lib/common/util/mathRenderingUtils.js +6 -2
  1235. package/lib/common/util/maxContent.js +10 -3
  1236. package/lib/common/util/modalHelpers.js +2 -0
  1237. package/lib/common/util/noop.js +5 -2
  1238. package/lib/common/util/persistedState.js +20 -6
  1239. package/lib/common/util/printUtils.js +13 -4
  1240. package/lib/common/util/rceChecker.js +26 -14
  1241. package/lib/common/util/renderAlerts.js +25 -13
  1242. package/lib/common/util/serializeEvent.js +13 -4
  1243. package/lib/common/util/sessionStore.js +20 -8
  1244. package/lib/common/util/valMap.js +8 -3
  1245. package/lib/common/util/warningHelpers.js +44 -10
  1246. package/lib/common/util/windowChecks.js +22 -7
  1247. package/lib/common/util/withCachedArguments.js +14 -4
  1248. package/lib/common/util/withDynamoPagination.js +97 -63
  1249. package/lib/common/util/withStateCache.js +19 -3
  1250. package/lib/config.js +17 -6
  1251. package/lib/configureStore.js +104 -53
  1252. package/lib/grading/api/quizEntryRegrades.js +13 -7
  1253. package/lib/grading/api/updateResults.js +20 -7
  1254. package/lib/index.js +646 -517
  1255. package/lib/messages/LocalStorageAdapter.js +21 -6
  1256. package/lib/messages/LocalStorageLimits.js +30 -7
  1257. package/lib/messages/StorageExhaustionError.js +20 -8
  1258. package/lib/messages/postMessageService.js +35 -6
  1259. package/lib/messages/subjectHandlers/forwardMessage.js +4 -1
  1260. package/lib/messages/subjectHandlers/lti.capabilities.js +4 -1
  1261. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +4 -1
  1262. package/lib/messages/subjectHandlers/lti.frameResize.js +7 -2
  1263. package/lib/messages/subjectHandlers/lti.get_data.js +12 -4
  1264. package/lib/messages/subjectHandlers/lti.put_data.js +19 -7
  1265. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +13 -4
  1266. package/lib/messages/utils.js +1 -0
  1267. package/lib/moderating/api/quizSessionEvents.js +10 -4
  1268. package/lib/moderating/api/quizSessions.js +12 -4
  1269. package/lib/moderating/components/events/Event.js +56 -20
  1270. package/lib/moderating/components/events/PageBlurredEvent.js +27 -8
  1271. package/lib/moderating/components/events/PageFocusedEvent.js +27 -8
  1272. package/lib/moderating/components/events/RCEEvent.js +27 -8
  1273. package/lib/moderating/components/events/ResponseEvent.js +49 -18
  1274. package/lib/moderating/components/events/SessionStartEvent.js +32 -8
  1275. package/lib/moderating/components/events/styles.js +4 -1
  1276. package/lib/moderating/components/events/theme.js +5 -2
  1277. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -2
  1278. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +44 -15
  1279. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -2
  1280. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +47 -10
  1281. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +45 -8
  1282. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -2
  1283. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +54 -14
  1284. package/lib/moderating/components/resources/AccommodationsModal/index.js +55 -15
  1285. package/lib/moderating/components/resources/ElapsedTime.js +32 -13
  1286. package/lib/moderating/components/resources/ModerateTable/index.js +26 -12
  1287. package/lib/moderating/components/resources/ModerateTable/presenter.js +128 -52
  1288. package/lib/moderating/components/resources/ModerateTable/styles.js +7 -2
  1289. package/lib/moderating/components/resources/ModerateTable/theme.js +5 -2
  1290. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +13 -5
  1291. package/lib/moderating/components/resources/ModerateTableRow/index.js +15 -8
  1292. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +99 -35
  1293. package/lib/moderating/components/resources/ModerateTableRow/story.js +10 -4
  1294. package/lib/moderating/components/resources/ModerateTableRow/styles.js +4 -1
  1295. package/lib/moderating/components/resources/ModerateTableRow/theme.js +4 -1
  1296. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -2
  1297. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +20 -8
  1298. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +54 -9
  1299. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -2
  1300. package/lib/moderating/components/sidebar/ModerateTray/index.js +15 -7
  1301. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +52 -8
  1302. package/lib/moderating/components/sidebar/ResetQuiz/index.js +25 -11
  1303. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +58 -21
  1304. package/lib/reduxStore.js +21 -9
  1305. package/lib/reporting/api/getAnalysesExport.js +40 -23
  1306. package/lib/reporting/api/getAnalysesStatus.js +33 -20
  1307. package/lib/reporting/api/getItemAnalyses.js +33 -20
  1308. package/lib/reporting/api/getQuizAnalysis.js +33 -20
  1309. package/lib/reporting/api/itemAnalyses.js +11 -5
  1310. package/lib/reporting/api/quizAnalyses.js +11 -5
  1311. package/lib/reporting/components/Caption/index.js +34 -14
  1312. package/lib/reporting/components/Caption/styles.js +4 -1
  1313. package/lib/reporting/components/Caption/theme.js +6 -3
  1314. package/lib/reporting/components/MetricsListItem/index.js +38 -16
  1315. package/lib/reporting/components/MetricsListItem/styles.js +4 -1
  1316. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -2
  1317. package/lib/reporting/components/charts/CentileDistribution/index.js +6 -2
  1318. package/lib/reporting/components/charts/CentileDistribution/presenter.js +60 -21
  1319. package/lib/reporting/components/charts/CentileDistribution/styles.js +7 -2
  1320. package/lib/reporting/components/charts/CentileDistribution/theme.js +6 -3
  1321. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +6 -3
  1322. package/lib/reporting/components/charts/Distribution/Distribution.js +6 -2
  1323. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +6 -2
  1324. package/lib/reporting/components/charts/Distribution/index.js +6 -2
  1325. package/lib/reporting/components/charts/Distribution/presenter.js +76 -23
  1326. package/lib/reporting/components/charts/Distribution/styles.js +4 -1
  1327. package/lib/reporting/components/charts/Distribution/theme.js +5 -2
  1328. package/lib/reporting/components/charts/Legend/index.js +39 -17
  1329. package/lib/reporting/components/charts/Legend/styles.js +7 -2
  1330. package/lib/reporting/components/charts/Legend/theme.js +7 -4
  1331. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -2
  1332. package/lib/reporting/components/charts/QuintileDistribution/index.js +6 -2
  1333. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +57 -19
  1334. package/lib/reporting/components/charts/QuintileDistribution/styles.js +4 -1
  1335. package/lib/reporting/components/charts/QuintileDistribution/theme.js +5 -2
  1336. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +9 -4
  1337. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +53 -14
  1338. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +20 -4
  1339. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +9 -6
  1340. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +9 -4
  1341. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +18 -7
  1342. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +95 -45
  1343. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +8 -2
  1344. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +7 -4
  1345. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +74 -35
  1346. package/lib/reporting/components/quizAnalysis/styles.js +12 -5
  1347. package/lib/reporting/components/quizAnalysis/theme.js +7 -4
  1348. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +5 -2
  1349. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +36 -17
  1350. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +4 -1
  1351. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +5 -2
  1352. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +38 -18
  1353. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +7 -2
  1354. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +33 -12
  1355. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +2 -1
  1356. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +37 -15
  1357. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +2 -1
  1358. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +41 -18
  1359. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +2 -1
  1360. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +49 -13
  1361. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +7 -2
  1362. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +4 -1
  1363. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +2 -1
  1364. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +51 -21
  1365. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +4 -1
  1366. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +4 -1
  1367. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +47 -18
  1368. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +42 -18
  1369. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +2 -1
  1370. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +72 -29
  1371. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +7 -2
  1372. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +4 -1
  1373. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +47 -18
  1374. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +12 -9
  1375. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +15 -5
  1376. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +2 -1
  1377. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +41 -16
  1378. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +2 -1
  1379. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +89 -34
  1380. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +4 -1
  1381. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +4 -1
  1382. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +2 -1
  1383. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +61 -25
  1384. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +4 -1
  1385. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +4 -1
  1386. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +2 -1
  1387. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +45 -20
  1388. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +48 -19
  1389. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +4 -1
  1390. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +5 -2
  1391. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +44 -19
  1392. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +2 -1
  1393. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +80 -37
  1394. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +2 -1
  1395. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +41 -17
  1396. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +7 -2
  1397. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +4 -1
  1398. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +2 -1
  1399. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +7 -3
  1400. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +39 -15
  1401. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +4 -1
  1402. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +2 -1
  1403. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +71 -20
  1404. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +4 -1
  1405. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +4 -1
  1406. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +2 -1
  1407. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +82 -21
  1408. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +7 -2
  1409. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +5 -2
  1410. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +2 -1
  1411. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +45 -19
  1412. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +4 -1
  1413. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +4 -1
  1414. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +20 -6
  1415. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +5 -2
  1416. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +49 -16
  1417. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +4 -1
  1418. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +4 -1
  1419. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +2 -1
  1420. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +30 -12
  1421. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +4 -1
  1422. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +4 -1
  1423. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +10 -4
  1424. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +11 -5
  1425. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +91 -36
  1426. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -2
  1427. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +7 -4
  1428. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +5 -2
  1429. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -5
  1430. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +73 -33
  1431. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +4 -1
  1432. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +4 -1
  1433. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +11 -5
  1434. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +85 -39
  1435. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +8 -2
  1436. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +5 -2
  1437. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +5 -2
  1438. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +51 -19
  1439. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +4 -1
  1440. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +6 -3
  1441. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +30 -10
  1442. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +37 -11
  1443. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +2 -1
  1444. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +64 -43
  1445. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +61 -44
  1446. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +45 -30
  1447. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +100 -68
  1448. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +11 -5
  1449. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +111 -48
  1450. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +71 -18
  1451. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +4 -1
  1452. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +4 -1
  1453. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +17 -5
  1454. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +32 -15
  1455. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +154 -108
  1456. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +13 -6
  1457. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +44 -16
  1458. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +19 -10
  1459. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +22 -10
  1460. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +92 -45
  1461. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +4 -1
  1462. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +6 -3
  1463. package/lib/reporting/components/resources/ReportCard/index.js +43 -19
  1464. package/lib/reporting/components/resources/ReportCard/styles.js +7 -2
  1465. package/lib/reporting/components/resources/ReportCard/theme.js +5 -2
  1466. package/lib/reporting/components/resources/ReportList/index.js +38 -17
  1467. package/lib/reporting/components/resources/ReportList/styles.js +4 -1
  1468. package/lib/reporting/components/resources/ReportList/theme.js +4 -1
  1469. package/lib/taking/api/taking.js +104 -56
  1470. package/lib/taking/learnosity/index.js +77 -44
  1471. package/package.json +10 -9
@@ -3,8 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.successCallFor = exports.startCallFor = exports.errorCallFor = exports.callbacksCompleteForCall = void 0;
6
+ exports.callbacksCompleteForCall = exports.errorCallFor = exports.successCallFor = exports.startCallFor = void 0;
7
+
7
8
  var _quizCommon = require("@instructure/quiz-common");
9
+
8
10
  var callAction = function callAction(callStatus, type) {
9
11
  return {
10
12
  type: _quizCommon.CALL_STATUS,
@@ -14,16 +16,26 @@ var callAction = function callAction(callStatus, type) {
14
16
  }
15
17
  };
16
18
  };
17
- var startCallFor = exports.startCallFor = function startCallFor(type) {
19
+
20
+ var startCallFor = function startCallFor(type) {
18
21
  return callAction('calling', type);
19
22
  };
20
- var successCallFor = exports.successCallFor = function successCallFor(type) {
23
+
24
+ exports.startCallFor = startCallFor;
25
+
26
+ var successCallFor = function successCallFor(type) {
21
27
  return callAction('success', type);
22
28
  };
23
- var errorCallFor = exports.errorCallFor = function errorCallFor(type) {
29
+
30
+ exports.successCallFor = successCallFor;
31
+
32
+ var errorCallFor = function errorCallFor(type) {
24
33
  return callAction('error', type);
25
34
  };
26
- var callbacksCompleteForCall = exports.callbacksCompleteForCall = function callbacksCompleteForCall(type) {
35
+
36
+ exports.errorCallFor = errorCallFor;
37
+
38
+ var callbacksCompleteForCall = function callbacksCompleteForCall(type) {
27
39
  return {
28
40
  type: _quizCommon.SET_CALLBACKS_STATUS,
29
41
  payload: {
@@ -31,4 +43,6 @@ var callbacksCompleteForCall = exports.callbacksCompleteForCall = function callb
31
43
  status: 'complete'
32
44
  }
33
45
  };
34
- };
46
+ };
47
+
48
+ exports.callbacksCompleteForCall = callbacksCompleteForCall;
@@ -1,28 +1,40 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = exports.componentForItem = void 0;
9
+
8
10
  var interactions = _interopRequireWildcard(require("@instructure/quiz-interactions"));
11
+
9
12
  var _require = require('humps'),
10
- pascalize = _require.pascalize;
13
+ pascalize = _require.pascalize;
14
+
11
15
  var slugToNameMap = {
12
16
  'multi-answer': 'MultipleAnswer',
13
17
  'choice': 'MultipleChoice'
14
18
  };
15
- var componentForItem = exports.componentForItem = function componentForItem(intTypeSlug, usage) {
19
+
20
+ var componentForItem = function componentForItem(intTypeSlug, usage) {
16
21
  var componentKey = slugToNameMap[intTypeSlug];
22
+
17
23
  if (!componentKey) {
18
24
  componentKey = pascalize(intTypeSlug);
19
25
  }
26
+
20
27
  var normalizedUsage = pascalize(usage.toLowerCase());
21
28
  var componentName = componentKey + normalizedUsage;
22
29
  var component = interactions[componentName];
30
+
23
31
  if (!component) {
24
32
  throw new Error("Unable to find component: ".concat(componentName));
25
33
  }
34
+
26
35
  return component;
27
36
  };
28
- var _default = exports.default = componentForItem;
37
+
38
+ exports.componentForItem = componentForItem;
39
+ var _default = componentForItem;
40
+ exports.default = _default;
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.postToParent = postToParent;
7
+
7
8
  function postToParent(messageData) {
8
9
  var windowObject = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : window;
10
+
9
11
  if (windowObject.parent) {
10
12
  windowObject.parent.postMessage(messageData, '*');
11
13
  }
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
9
+
8
10
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
9
- var _default = exports.default = function _default(f, ms) {
11
+
12
+ var _default = function _default(f, ms) {
10
13
  var waiting = null;
14
+
11
15
  var ready = function ready() {
12
16
  var old = waiting;
13
17
  f.apply(void 0, arguments).then(function (r) {
@@ -17,6 +21,7 @@ var _default = exports.default = function _default(f, ms) {
17
21
  });
18
22
  waiting = null;
19
23
  };
24
+
20
25
  var debouncedThunk = (0, _debounce.default)(ready, ms);
21
26
  return function () {
22
27
  var promise = new Promise(function (resolve, reject) {
@@ -28,4 +33,6 @@ var _default = exports.default = function _default(f, ms) {
28
33
  debouncedThunk.apply(void 0, arguments);
29
34
  return promise;
30
35
  };
31
- };
36
+ };
37
+
38
+ exports.default = _default;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -9,32 +10,41 @@ exports.ifFeature = ifFeature;
9
10
  exports.setFeatures = setFeatures;
10
11
  exports.unsetFeatures = unsetFeatures;
11
12
  exports.withTestFeatures = withTestFeatures;
13
+
12
14
  var _immutable = require("immutable");
13
- var _reduxStore = _interopRequireDefault(require("../../reduxStore"));
14
- var _features = require("../actions/features");
15
+
16
+ var _reduxStore = _interopRequireDefault(require("../../reduxStore.js"));
17
+
18
+ var _features = require("../actions/features.js");
19
+
15
20
  // Put these in an object so we can stub them in tests
16
21
  var stubbableFunctions = {
17
22
  featureOn: function featureOn(featureName) {
18
23
  var features = _reduxStore.default.getAppState().get('features', (0, _immutable.List)());
24
+
19
25
  return features.includes(featureName);
20
26
  }
21
27
  };
28
+
22
29
  function featureOn(featureName) {
23
30
  return stubbableFunctions.featureOn(featureName);
24
31
  }
32
+
25
33
  function ifFeature(featureName, valueWith, valueWithout) {
26
34
  return featureOn(featureName) ? valueWith : valueWithout;
27
35
  }
36
+
28
37
  function setFeatures(featuresList) {
29
38
  _reduxStore.default.dispatch((0, _features.addFeatures)(featuresList));
30
39
  }
40
+
31
41
  function unsetFeatures(featuresList) {
32
42
  _reduxStore.default.dispatch((0, _features.removeFeatures)(featuresList));
33
- }
34
-
35
- // Usage: withTestFeatures(['feature'])
43
+ } // Usage: withTestFeatures(['feature'])
36
44
  // 2nd argument lets your override the use of global sinon
37
45
  // eslint-disable-next-line no-undef
46
+
47
+
38
48
  function withTestFeatures(featuresList) {
39
49
  var sinonToUse = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : sinon;
40
50
  beforeEach(function () {
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.status = status;
7
+
7
8
  function status(response) {
8
9
  if (response && response.status >= 200 && response.status < 300) {
9
10
  return Promise.resolve(response);
@@ -4,16 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.convertFITBtoRich = convertFITBtoRich;
7
+
7
8
  var _immutable = require("immutable");
9
+
8
10
  // https://stackoverflow.com/questions/18749591/encode-html-entities-in-javascript
9
11
  function htmlEncode(input) {
10
12
  return input.replace(/[\u00A0-\u9999<>&]/g, function (i) {
11
13
  return '&#' + i.charCodeAt(0) + ';';
12
14
  });
13
15
  }
16
+
14
17
  function convertFITBtoRich(interactionTypeData, richFITBInteractionID) {
15
18
  var interactionData = interactionTypeData.interactionData,
16
- scoringData = interactionTypeData.scoringData;
19
+ scoringData = interactionTypeData.scoringData;
17
20
  var sortedStemItems = interactionData.get('stemItems').sort(function (a, b) {
18
21
  return a.get('position') - b.get('position');
19
22
  });
@@ -1,51 +1,68 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
- exports.displayDateAndTimeInTimezone = displayDateAndTimeInTimezone;
8
8
  exports.formatTime = formatTime;
9
9
  exports.formatTimeToFullNumeric = formatTimeToFullNumeric;
10
+ exports.displayDateAndTimeInTimezone = displayDateAndTimeInTimezone;
10
11
  exports.formatTimespan = void 0;
12
+
11
13
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
14
+
12
15
  var _luxon = require("luxon");
16
+
13
17
  var minuteDuration = 60;
14
18
  var hourDuration = 3600;
19
+
15
20
  var formatHours = function formatHours(hours) {
16
21
  return (0, _formatMessage.default)('{ hours, plural, one {# hour} other {# hours} }', {
17
22
  hours: hours
18
23
  });
19
24
  };
25
+
20
26
  var formatMinutes = function formatMinutes(minutes) {
21
27
  return (0, _formatMessage.default)('{ minutes, plural, one {# minute} other {# minutes} }', {
22
28
  minutes: minutes
23
29
  });
24
30
  };
31
+
25
32
  var formatSeconds = function formatSeconds(seconds) {
26
33
  return (0, _formatMessage.default)('{ seconds, plural, one {# second} other {# seconds} }', {
27
34
  seconds: seconds
28
35
  });
29
36
  };
30
- var formatTimespan = exports.formatTimespan = function formatTimespan(startTime, endTime) {
37
+
38
+ var formatTimespan = function formatTimespan(startTime, endTime) {
31
39
  return formatTime(endTime - startTime, 1000);
32
40
  };
41
+
42
+ exports.formatTimespan = formatTimespan;
43
+
33
44
  function formatTime(time) {
34
45
  var secondDuration = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
35
46
  var totalSeconds = Math.floor(time / secondDuration);
36
47
  var parts = [];
37
48
  var hours = Math.floor(totalSeconds / hourDuration);
49
+
38
50
  if (hours !== 0) {
39
51
  parts.push(formatHours(hours));
40
52
  }
53
+
41
54
  var minutes = Math.floor(totalSeconds / minuteDuration) % minuteDuration;
55
+
42
56
  if (minutes !== 0) {
43
57
  parts.push(formatMinutes(minutes));
44
58
  }
59
+
45
60
  var seconds = totalSeconds % minuteDuration;
61
+
46
62
  if (seconds !== 0 || parts.length === 0) {
47
63
  parts.push(formatSeconds(seconds));
48
64
  }
65
+
49
66
  var separator = (0, _formatMessage.default)({
50
67
  id: 'timespan_segment_separator',
51
68
  default: ' ',
@@ -53,6 +70,7 @@ function formatTime(time) {
53
70
  });
54
71
  return parts.join(separator);
55
72
  }
73
+
56
74
  function formatTimeToFullNumeric(seconds) {
57
75
  var hours = Math.floor(seconds / 3600);
58
76
  var minutes = Math.floor(seconds % 3600 / 60);
@@ -62,6 +80,7 @@ function formatTimeToFullNumeric(seconds) {
62
80
  var secsStr = secs < 10 ? '0' + secs : secs;
63
81
  return "".concat(hoursStr, ":").concat(minutesStr, ":").concat(secsStr);
64
82
  }
83
+
65
84
  function displayDateAndTimeInTimezone(utcDateTime, userTimezone, locale) {
66
85
  return _luxon.DateTime.fromISO(utcDateTime, {
67
86
  zone: userTimezone
@@ -3,26 +3,32 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
6
  exports.generateDisplayPositions = generateDisplayPositions;
7
+ exports.default = void 0;
8
+
8
9
  function generateDisplayPositions(records) {
9
10
  var asMap = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
10
11
  var positionTuples = [];
11
12
  var positionMap = {};
12
13
  var displayPosition = 1;
14
+
13
15
  for (var i = 0; i < records.size; i++) {
14
16
  var record = records.get(i);
15
17
  positionTuples.push({
16
18
  displayPosition: displayPosition,
17
19
  record: record
18
20
  });
19
- positionMap[record.id] = displayPosition;
20
- // stimuli or bank_entries that are stimuli
21
+ positionMap[record.id] = displayPosition; // stimuli or bank_entries that are stimuli
22
+
21
23
  if (record.hasNestedRecords) {
22
24
  i += record.positionSlots;
23
25
  }
26
+
24
27
  displayPosition += record.displayPositionSlots;
25
28
  }
29
+
26
30
  return asMap ? positionMap : positionTuples;
27
31
  }
28
- var _default = exports.default = generateDisplayPositions;
32
+
33
+ var _default = generateDisplayPositions;
34
+ exports.default = _default;
@@ -3,12 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.jwtHeader = exports.jsonHeaders = exports.httpHeaders = void 0;
7
- var jsonHeaders = exports.jsonHeaders = {
6
+ exports.httpHeaders = exports.jwtHeader = exports.jsonHeaders = void 0;
7
+ var jsonHeaders = {
8
8
  Accept: 'application/json',
9
9
  'Content-Type': 'application/json'
10
10
  };
11
- var jwtHeader = exports.jwtHeader = function jwtHeader(token) {
11
+ exports.jsonHeaders = jsonHeaders;
12
+
13
+ var jwtHeader = function jwtHeader(token) {
12
14
  if (token) {
13
15
  return {
14
16
  Authorization: token,
@@ -16,6 +18,11 @@ var jwtHeader = exports.jwtHeader = function jwtHeader(token) {
16
18
  };
17
19
  }
18
20
  };
19
- var httpHeaders = exports.httpHeaders = function httpHeaders(token) {
21
+
22
+ exports.jwtHeader = jwtHeader;
23
+
24
+ var httpHeaders = function httpHeaders(token) {
20
25
  return Object.assign({}, jsonHeaders, jwtHeader(token));
21
- };
26
+ };
27
+
28
+ exports.httpHeaders = httpHeaders;
@@ -3,25 +3,34 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.mergeDeepOnlyMaps = exports.keyBy = exports.compact = void 0;
6
+ exports.mergeDeepOnlyMaps = exports.compact = exports.keyBy = void 0;
7
+
7
8
  var _immutable = require("immutable");
8
- var keyBy = exports.keyBy = function keyBy(immutableList, keyAttr) {
9
+
10
+ var keyBy = function keyBy(immutableList, keyAttr) {
9
11
  return immutableList.reduce(function (keyedMap, i) {
10
12
  return keyedMap.set(i.get(keyAttr), i);
11
13
  }, (0, _immutable.Map)());
12
- };
14
+ }; // Remove any undefined values
13
15
 
14
- // Remove any undefined values
15
- var compact = exports.compact = function compact(immutableList) {
16
+
17
+ exports.keyBy = keyBy;
18
+
19
+ var compact = function compact(immutableList) {
16
20
  return immutableList.filter(function (i) {
17
21
  return !!i;
18
22
  });
19
- };
23
+ }; // Deep merge Maps, but not Lists or other Collections
20
24
 
21
- // Deep merge Maps, but not Lists or other Collections
22
- var _mergeDeepOnlyMaps = exports.mergeDeepOnlyMaps = function mergeDeepOnlyMaps(oldVal, newVal, key) {
25
+
26
+ exports.compact = compact;
27
+
28
+ var mergeDeepOnlyMaps = function mergeDeepOnlyMaps(oldVal, newVal, key) {
23
29
  if (_immutable.Map.isMap(oldVal) && _immutable.Map.isMap(newVal)) {
24
- return oldVal.mergeWith(_mergeDeepOnlyMaps, newVal);
30
+ return oldVal.mergeWith(mergeDeepOnlyMaps, newVal);
25
31
  }
32
+
26
33
  return newVal;
27
- };
34
+ };
35
+
36
+ exports.mergeDeepOnlyMaps = mergeDeepOnlyMaps;
@@ -4,11 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.toErrors = void 0;
7
- var toErrors = exports.toErrors = function toErrors(errorMessages) {
7
+
8
+ var toErrors = function toErrors(errorMessages) {
8
9
  return errorMessages.map(function (e) {
9
10
  return {
10
11
  text: e,
11
12
  type: 'error'
12
13
  };
13
14
  });
14
- };
15
+ };
16
+
17
+ exports.toErrors = toErrors;
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
- exports.interactionTypesNameDictionary = exports.interactionTypeMetadata = void 0;
8
+ exports.interactionTypeMetadata = exports.interactionTypesNameDictionary = void 0;
9
+
8
10
  var _uiIcons = require("@instructure/ui-icons");
11
+
9
12
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
13
+
10
14
  // TODO: Add correct icon file imports when they are in inst icons
11
15
  // import { MultipleChoiceIcon } from '@instructure/ui-icons'
12
16
  // import { MultipleAnswerIcon } from '@instructure/ui-icons'
@@ -15,10 +19,8 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
15
19
  // import { OrderingIcon } from '@instructure/ui-icons'
16
20
  // import { FillBlankIcon } from '@instructure/ui-icons'
17
21
  // import { EssayIcon } from '@instructure/ui-icons'
18
-
19
22
  var interactionTypesIconDictionary = function interactionTypesIconDictionary(intType) {
20
- return {
21
- // TODO: Uncomment when we have the icons imported
23
+ return {// TODO: Uncomment when we have the icons imported
22
24
  // 'choice': MultipleChoiceIcon,
23
25
  // 'multi-answer': MultipleAnswerIcon,
24
26
  // 'true-false': TrueOrFalseIcon,
@@ -28,7 +30,8 @@ var interactionTypesIconDictionary = function interactionTypesIconDictionary(int
28
30
  // 'essay': EssayIcon
29
31
  }[intType.slug] || _uiIcons.IconPlusLine;
30
32
  };
31
- var interactionTypesNameDictionary = exports.interactionTypesNameDictionary = function interactionTypesNameDictionary(intType) {
33
+
34
+ var interactionTypesNameDictionary = function interactionTypesNameDictionary(intType) {
32
35
  return {
33
36
  categorization: (0, _formatMessage.default)('Categorization'),
34
37
  choice: (0, _formatMessage.default)('Multiple Choice'),
@@ -45,9 +48,14 @@ var interactionTypesNameDictionary = exports.interactionTypesNameDictionary = fu
45
48
  'true-false': (0, _formatMessage.default)('True or False')
46
49
  }[intType.slug] || intType.name;
47
50
  };
48
- var interactionTypeMetadata = exports.interactionTypeMetadata = function interactionTypeMetadata(intType) {
51
+
52
+ exports.interactionTypesNameDictionary = interactionTypesNameDictionary;
53
+
54
+ var interactionTypeMetadata = function interactionTypeMetadata(intType) {
49
55
  return {
50
56
  icon: interactionTypesIconDictionary(intType),
51
57
  name: interactionTypesNameDictionary(intType)
52
58
  };
53
- };
59
+ };
60
+
61
+ exports.interactionTypeMetadata = interactionTypeMetadata;
@@ -1,33 +1,44 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.propsForInteractionShow = exports.propsForInteractionEdit = void 0;
9
+
8
10
  var _quizRce = require("@instructure/quiz-rce");
11
+
9
12
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
10
- var propsForInteractionEdit = exports.propsForInteractionEdit = function propsForInteractionEdit(props, additionalOptions) {
13
+
14
+ var propsForInteractionEdit = function propsForInteractionEdit(props, additionalOptions) {
11
15
  var item = props.workingItem.toJS();
16
+
12
17
  var changeItemState = function changeItemState(newState, inputId) {
13
18
  props.clearValidationErrorsFromApi && props.clearValidationErrorsFromApi(inputId);
14
19
  props.changeItemState(item.id, newState);
15
20
  };
21
+
16
22
  var mediaUpload = function mediaUpload(file, callback) {
17
23
  var onUploadError = function onUploadError() {
18
24
  props.addError((0, _formatMessage.default)('There was an error uploading your file.'));
19
25
  };
26
+
20
27
  props.interactionFileUpload(props.parentType, props.parentId, file, callback, onUploadError);
21
28
  };
29
+
22
30
  var onModalOpen = function onModalOpen() {
23
31
  props.occludeQuizEntries(true);
24
32
  };
33
+
25
34
  var onModalClose = function onModalClose() {
26
35
  props.occludeQuizEntries(false);
27
36
  };
37
+
28
38
  var setOneQuestionAtATime = function setOneQuestionAtATime(event) {
29
39
  return props.setOneQuestionAtATime(props.quizId, event.target.checked);
30
40
  };
41
+
31
42
  return {
32
43
  additionalOptions: additionalOptions,
33
44
  answerFeedbackEnabled: props.answerFeedbackEnabled,
@@ -71,7 +82,10 @@ var propsForInteractionEdit = exports.propsForInteractionEdit = function propsFo
71
82
  calculatorType: item.calculatorType
72
83
  };
73
84
  };
74
- var propsForInteractionShow = exports.propsForInteractionShow = function propsForInteractionShow(item) {
85
+
86
+ exports.propsForInteractionEdit = propsForInteractionEdit;
87
+
88
+ var propsForInteractionShow = function propsForInteractionShow(item) {
75
89
  return {
76
90
  itemId: item.id,
77
91
  interactionData: item.interactionData,
@@ -83,4 +97,6 @@ var propsForInteractionShow = exports.propsForInteractionShow = function propsFo
83
97
  notifyScreenreader: true,
84
98
  scoringData: item.scoringData
85
99
  };
86
- };
100
+ };
101
+
102
+ exports.propsForInteractionShow = propsForInteractionShow;
@@ -1,26 +1,36 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
9
+
8
10
  var interactions = _interopRequireWildcard(require("@instructure/quiz-interactions"));
11
+
9
12
  var _require = require('humps'),
10
- pascalize = _require.pascalize;
13
+ pascalize = _require.pascalize;
14
+
11
15
  var slugToNameMap = {
12
16
  'multi-answer': 'MultipleAnswer',
13
17
  'choice': 'MultipleChoice'
14
18
  };
19
+
15
20
  var interactionTypeRecordForItem = function interactionTypeRecordForItem(intTypeSlug) {
16
21
  if (!intTypeSlug) {
17
22
  return interactions.InteractionType;
18
23
  }
24
+
19
25
  var componentKey = slugToNameMap[intTypeSlug];
26
+
20
27
  if (!componentKey) {
21
28
  componentKey = pascalize(intTypeSlug);
22
29
  }
30
+
23
31
  var recordName = "".concat(componentKey, "InteractionType");
24
32
  return interactions[recordName] || interactions.InteractionType;
25
33
  };
26
- var _default = exports.default = interactionTypeRecordForItem;
34
+
35
+ var _default = interactionTypeRecordForItem;
36
+ exports.default = _default;
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
- exports.default = void 0;
8
8
  exports.jsoniblePromise = jsoniblePromise;
9
+ exports.default = void 0;
10
+
9
11
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
12
+
10
13
  // used for testing fetch calls that expect a
11
14
  // promise returned by jsonify
12
-
13
15
  function jsoniblePromise(resolutionValue) {
14
16
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
15
17
  var resolvePromise = new Promise(function (resolve, reject) {
@@ -29,6 +31,9 @@ function jsoniblePromise(resolutionValue) {
29
31
  }
30
32
  };
31
33
  }
32
- var _default = exports.default = function _default(res) {
34
+
35
+ var _default = function _default(res) {
33
36
  return res.json();
34
- };
37
+ };
38
+
39
+ exports.default = _default;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+
7
8
  var keyboardClickable = function keyboardClickable(e) {
8
9
  if (e.keyCode === 13 || e.keyCode === 32) {
9
10
  e.preventDefault();
@@ -11,4 +12,6 @@ var keyboardClickable = function keyboardClickable(e) {
11
12
  e.stopPropagation();
12
13
  }
13
14
  };
14
- var _default = exports.default = keyboardClickable;
15
+
16
+ var _default = keyboardClickable;
17
+ exports.default = _default;