@instructure/quiz-core 20.17.3-rc.0 → 20.17.3-rc.10

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 +119 -59
  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 +44 -22
  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 +87 -32
  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 +154 -80
  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 +35 -17
  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 +39 -14
  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 +57 -32
  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 +17 -1
  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 +19 -5
  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 +83 -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 +84 -48
  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 +6 -4
  386. package/es/common/kinesis/eventTypes.js +7 -5
  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 +47 -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 +6 -4
  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 +37 -12
  518. package/es/moderating/components/events/PageBlurredEvent.js +29 -0
  519. package/es/moderating/components/events/PageFocusedEvent.js +29 -0
  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 +13 -5
  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 +101 -46
  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 +101 -60
  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 +81 -32
  545. package/es/moderating/components/sidebar/ResetQuiz/index.js +9 -7
  546. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +40 -18
  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 +169 -72
  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 +72 -26
  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 +131 -43
  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 +191 -89
  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 +57 -20
  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 +57 -17
  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 +77 -32
  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 +86 -17
  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 +37 -9
  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 +110 -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 +104 -53
  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 +25 -10
  1127. package/lib/common/kinesis/eventTypes.js +20 -10
  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 +62 -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 +14 -5
  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 +58 -15
  1270. package/lib/moderating/components/events/PageBlurredEvent.js +48 -0
  1271. package/lib/moderating/components/events/PageFocusedEvent.js +48 -0
  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 +33 -9
  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 +133 -54
  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 +126 -64
  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 +105 -35
  1302. package/lib/moderating/components/sidebar/ResetQuiz/index.js +25 -11
  1303. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +60 -22
  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
@@ -1,4 +1,5 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+
2
3
  var generateStyle = function generateStyle(componentTheme) {
3
4
  var footerStyles = {
4
5
  display: 'flex',
@@ -63,4 +64,5 @@ var generateStyle = function generateStyle(componentTheme) {
63
64
  }
64
65
  };
65
66
  };
67
+
66
68
  export default generateStyle;
@@ -1,8 +1,8 @@
1
1
  var generateComponentTheme = function generateComponentTheme(_ref) {
2
2
  var spacing = _ref.spacing,
3
- colors = _ref.colors,
4
- typography = _ref.typography,
5
- borders = _ref.borders;
3
+ colors = _ref.colors,
4
+ typography = _ref.typography,
5
+ borders = _ref.borders;
6
6
  return {
7
7
  contentBackgroundColor: colors.white,
8
8
  contentPaddingTopBottom: 0,
@@ -25,4 +25,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
25
25
  entryEditBorderColor: colors.tiara
26
26
  };
27
27
  };
28
+
28
29
  export default generateComponentTheme;
@@ -1,6 +1,6 @@
1
1
  import { fromJS } from 'immutable';
2
- import BankEntry from '../../../common/records/BankEntry';
3
- import Item from '../../../common/records/Item';
2
+ import BankEntry from "../../../common/records/BankEntry.js";
3
+ import Item from "../../../common/records/Item.js";
4
4
  export default {
5
5
  propsValues: {
6
6
  addEntryToQuiz: [null, Function.prototype],
@@ -9,9 +9,11 @@ export default {
9
9
  getComponentProps: function getComponentProps(props) {
10
10
  var bankEntry = new BankEntry();
11
11
  var item = new Item();
12
+
12
13
  bankEntry.getEntry = function () {
13
14
  return item;
14
15
  };
16
+
15
17
  return {
16
18
  bankEntry: bankEntry,
17
19
  bankId: '1',
@@ -1,18 +1,21 @@
1
1
  var _this = this;
2
+
2
3
  import { bindActionCreators } from 'redux';
3
- import { connect } from '../../../common/react-redux';
4
- import { createItem } from '../../../building/api/items';
5
- import { createStimulus } from '../../../building/api/stimuli';
6
- import { toggle, set, clear } from '../../../common/actions/ui';
7
- import * as modalActions from '../../../common/actions/modal';
8
- import BankEntryRow from './presenter';
9
- import * as bankEntryApiActions from '../../api/bankEntries';
10
- import { screenreaderNotification } from '../../../common/actions/alerts';
11
- import { featureOn } from '../../../common/util/featureCheck';
4
+ import { connect } from "../../../common/react-redux.js";
5
+ import { createItem } from "../../../building/api/items.js";
6
+ import { createStimulus } from "../../../building/api/stimuli.js";
7
+ import { toggle, set, clear } from "../../../common/actions/ui.js";
8
+ import * as modalActions from "../../../common/actions/modal.js";
9
+ import BankEntryRow from "./presenter.js";
10
+ import * as bankEntryApiActions from "../../api/bankEntries.js";
11
+ import { screenreaderNotification } from "../../../common/actions/alerts.js";
12
+ import { featureOn } from "../../../common/util/featureCheck.js";
12
13
  import { BUILD_TRAY_POSITION, BUILD_TRAY_STIMULUS_ID, SET_EDIT_BUTTON_FOCUS } from '@instructure/quiz-common';
14
+
13
15
  var rowKey = function rowKey(props) {
14
16
  return "BANK_ENTRY_".concat(props.bankEntry.get('id'), "_EXPANDED");
15
17
  };
18
+
16
19
  var mapStateToProps = function mapStateToProps(state, props) {
17
20
  return {
18
21
  activeQuizId: state.getIn(['quizzes', 'activeQuizId']),
@@ -24,6 +27,7 @@ var mapStateToProps = function mapStateToProps(state, props) {
24
27
  useBankTags: featureOn('item_bank_tagging')
25
28
  };
26
29
  };
30
+
27
31
  var mapDispatchToProps = function mapDispatchToProps(dispatch, props) {
28
32
  return {
29
33
  clearUi: bindActionCreators(clear, dispatch),
@@ -37,4 +41,5 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, props) {
37
41
  withConfirm: bindActionCreators(modalActions.withConfirm, dispatch)
38
42
  };
39
43
  };
44
+
40
45
  export default connect(mapStateToProps, mapDispatchToProps)(BankEntryRow);
@@ -1,9 +1,12 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
4
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- var _dec, _class, _BankEntryRow, _div;
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
+
6
+ var _dec, _class, _class2, _temp;
7
+
6
8
  /** @jsx jsx */
9
+
7
10
  /* eslint-disable-next-line no-unused-vars */
8
11
  import React, { Component } from 'react';
9
12
  import PropTypes from 'prop-types';
@@ -22,26 +25,38 @@ import { BUILD_TRAY_POSITION, COPY_MOVE_BANK_ENTRY_MODAL, SET_EDIT_BUTTON_FOCUS,
22
25
  import { RichContentRenderer } from '@instructure/quiz-rce';
23
26
  import { extractTextFromHtml } from '@instructure/quiz-interactions';
24
27
  import t from '@instructure/quiz-i18n/es/format-message';
25
- import CopyMoveBankEntryModal from '../CopyMoveBankEntryModal';
26
- import ExpandButton from '../../../common/components/shared/ExpandButton';
27
- import QuizEntry from '../../../common/records/QuizEntry';
28
- import ItemShow from '../../../common/components/resources/item/ItemShow';
29
- import StimulusShowInfo from '../../../common/components/resources/stimulus/StimulusShowInfo';
30
- import TagDisplay from '../../../common/components/shared/TagDisplay';
31
- import generateStyle from './styles';
32
- import generateComponentTheme from './theme';
33
- import Overlay from '../../../common/components/shared/overlay';
34
- export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_BankEntryRow = /*#__PURE__*/function (_withI18nSupport) {
28
+ import CopyMoveBankEntryModal from "../CopyMoveBankEntryModal/index.js";
29
+ import ExpandButton from "../../../common/components/shared/ExpandButton/index.js";
30
+ import QuizEntry from "../../../common/records/QuizEntry.js";
31
+ import ItemShow from "../../../common/components/resources/item/ItemShow/index.js";
32
+ import StimulusShowInfo from "../../../common/components/resources/stimulus/StimulusShowInfo/index.js";
33
+ import TagDisplay from "../../../common/components/shared/TagDisplay/index.js";
34
+ import generateStyle from "./styles.js";
35
+ import generateComponentTheme from "./theme.js";
36
+ import Overlay from "../../../common/components/shared/overlay/index.js";
37
+
38
+ var _ref2 = jsx("div", null);
39
+
40
+ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_withI18nSupport) {
41
+ _inherits(BankEntryRow, _withI18nSupport);
42
+
43
+ var _super = _createSuper(BankEntryRow);
44
+
35
45
  function BankEntryRow() {
36
46
  var _this;
47
+
37
48
  _classCallCheck(this, BankEntryRow);
49
+
38
50
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
39
51
  args[_key] = arguments[_key];
40
52
  }
41
- _this = _callSuper(this, BankEntryRow, [].concat(args));
53
+
54
+ _this = _super.call.apply(_super, [this].concat(args));
55
+
42
56
  _this.incrementPosition = function () {
43
57
  _this.props.setUi(BUILD_TRAY_POSITION, _this.props.position + 1);
44
58
  };
59
+
45
60
  _this.deleteBankEntry = function () {
46
61
  var deletePreface = _this.isItemEntry() ? t('Deleting this question:') : t('Deleting this stimulus:');
47
62
  var confirmBody = jsx(Alert, {
@@ -58,6 +73,7 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
58
73
  key: "0"
59
74
  }, children);
60
75
  }])), jsx(List.Item, null, t('will lose its statistical link in reporting')), jsx(List.Item, null, t('will remove access for all users with whom this bank has been shared')))));
76
+
61
77
  _this.props.withConfirm(partial(_this.props.removeBankEntry, _this.props.bank.id, _this.props.bankEntry.id), {
62
78
  title: t('Delete {type}', {
63
79
  type: _this.type()
@@ -68,6 +84,7 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
68
84
  size: 'medium'
69
85
  });
70
86
  };
87
+
71
88
  _this.addToQuiz = function () {
72
89
  if (_this.props.activeQuizId) {
73
90
  var newEntry = QuizEntry.create({
@@ -76,27 +93,34 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
76
93
  position: _this.props.position,
77
94
  stimulusQuizEntryId: _this.props.stimulusId
78
95
  });
96
+
79
97
  _this.props.addEntryToQuiz(_this.props.activeQuizId, newEntry.entryId, newEntry.entryType, newEntry.getProperties(), false).then(function () {
80
98
  _this.props.screenreaderNotification(t('Bank Entry was successfully added to the quiz'));
81
99
  });
100
+
82
101
  if (_this.props.position) _this.incrementPosition();
83
102
  }
84
103
  };
104
+
85
105
  _this.openCopyMoveBankEntryModal = function () {
86
106
  _this.props.openModal([COPY_MOVE_BANK_ENTRY_MODAL, _this.props.bankEntry.entryType, _this.props.bankEntry.entry.toJS().id].join(':'), {
87
107
  modalTrigger: _this.copyMoveBankEntryButton
88
108
  });
89
109
  };
110
+
90
111
  _this.createEntryForBank = function () {
91
112
  var createEntry = _this.isItemEntry() ? _this.props.createItem : _this.props.createStimulus;
92
113
  return createEntry(_this.getEntry(), _this.props.bank.id, 'bank');
93
114
  };
115
+
94
116
  _this.storeCopyMoveBankEntryButtonRef = function (c) {
95
117
  _this.copyMoveBankEntryButton = c;
96
118
  };
119
+
97
120
  _this.storeEditButtonRef = function (c) {
98
121
  _this.editButton = c;
99
122
  };
123
+
100
124
  _this.renderTrashButton = function () {
101
125
  var title = t('Delete {type}', {
102
126
  type: _this.type()
@@ -112,14 +136,17 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
112
136
  screenReaderLabel: title
113
137
  });
114
138
  };
139
+
115
140
  _this.navigateToBankEntry = function () {
116
141
  _this.props.setUi(SET_EDIT_BUTTON_FOCUS, _this.props.bankEntry.id);
142
+
117
143
  _this.props.navigateToBankEntry(_this.props.bankEntry.id, _this.props.bank.id);
118
144
  };
145
+
119
146
  return _this;
120
147
  }
121
- _inherits(BankEntryRow, _withI18nSupport);
122
- return _createClass(BankEntryRow, [{
148
+
149
+ _createClass(BankEntryRow, [{
123
150
  key: "componentDidMount",
124
151
  value: function componentDidMount() {
125
152
  if (this.props.bankEntry.id === this.props.setEditButtonFocus) {
@@ -196,9 +223,10 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
196
223
  title: title,
197
224
  screenReaderLabel: title
198
225
  }));
199
- }
200
- // This empty div is necessary for spacing
201
- return _div || (_div = jsx("div", null));
226
+ } // This empty div is necessary for spacing
227
+
228
+
229
+ return _ref2;
202
230
  }
203
231
  }, {
204
232
  key: "renderMoveButton",
@@ -239,10 +267,9 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
239
267
  }, {
240
268
  key: "renderEntryCollapsed",
241
269
  value: function renderEntryCollapsed() {
242
- var itemOrStimulus = this.getEntry();
243
-
244
- // render item's body as html
270
+ var itemOrStimulus = this.getEntry(); // render item's body as html
245
271
  // or title plain text
272
+
246
273
  if (itemOrStimulus.itemBody) {
247
274
  return jsx(RichContentRenderer, {
248
275
  customStyles: this.props.styles.stem,
@@ -258,6 +285,7 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
258
285
  key: "renderEntryExpanded",
259
286
  value: function renderEntryExpanded() {
260
287
  var entry = this.getEntry();
288
+
261
289
  if (this.isItemEntry()) {
262
290
  return jsx(ItemShow, {
263
291
  entry: entry,
@@ -293,6 +321,7 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
293
321
  if (!this.props.useBankTags) {
294
322
  return null;
295
323
  }
324
+
296
325
  return jsx(TagDisplay, {
297
326
  tagAssociations: this.props.tagAssociations
298
327
  });
@@ -301,8 +330,8 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
301
330
  key: "renderFooter",
302
331
  value: function renderFooter() {
303
332
  var lastUpdate = t.rich('<0>Last Update</0> { updatedAt }', {
304
- 0: function _(_ref2) {
305
- var children = _ref2.children;
333
+ 0: function _(_ref3) {
334
+ var children = _ref3.children;
306
335
  return jsx(Text, {
307
336
  key: "lastUpdate",
308
337
  weight: "bold",
@@ -338,7 +367,10 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
338
367
  }));
339
368
  }
340
369
  }]);
341
- }(withI18nSupport(Component)), _BankEntryRow.propTypes = {
370
+
371
+ BankEntryRow.displayName = "BankEntryRow";
372
+ return BankEntryRow;
373
+ }(withI18nSupport(Component)), _class2.propTypes = {
342
374
  activeQuizId: PropTypes.string,
343
375
  addEntryToQuiz: PropTypes.func,
344
376
  bankEntry: ImmutablePropTypes.record.isRequired,
@@ -364,7 +396,7 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
364
396
  timezone: PropTypes.string,
365
397
  // eslint-disable-next-line react/require-default-props,react/forbid-prop-types
366
398
  styles: PropTypes.object
367
- }, _BankEntryRow.defaultProps = {
399
+ }, _class2.defaultProps = {
368
400
  activeQuizId: null,
369
401
  addEntryToQuiz: null,
370
402
  stimulusId: null,
@@ -375,8 +407,8 @@ export var BankEntryRow = (_dec = withStyle(generateStyle, generateComponentThem
375
407
  tagAssociations: Immutable.List(),
376
408
  locale: null,
377
409
  timezone: null
378
- }, _BankEntryRow.contextTypes = {
410
+ }, _class2.contextTypes = {
379
411
  locale: PropTypes.string,
380
412
  timezone: PropTypes.string
381
- }, _BankEntryRow)) || _class);
413
+ }, _temp)) || _class);
382
414
  export default BankEntryRow;
@@ -46,4 +46,5 @@ var generateStyle = function generateStyle(componentTheme) {
46
46
  }
47
47
  };
48
48
  };
49
+
49
50
  export default generateStyle;
@@ -1,8 +1,8 @@
1
1
  var generateComponentTheme = function generateComponentTheme(_ref) {
2
2
  var spacing = _ref.spacing,
3
- colors = _ref.colors,
4
- borders = _ref.borders,
5
- typography = _ref.typography;
3
+ colors = _ref.colors,
4
+ borders = _ref.borders,
5
+ typography = _ref.typography;
6
6
  return {
7
7
  entryDetailPadding: spacing.small,
8
8
  headerRowColor: colors.ash,
@@ -21,4 +21,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
21
21
  deletePrefaceMargin: spacing.xxSmall
22
22
  };
23
23
  };
24
+
24
25
  export default generateComponentTheme;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Map } from 'immutable';
3
- import BankSearch from './presenter';
3
+ import BankSearch from "./presenter.js";
4
4
  var props = {
5
5
  allInteractions: false,
6
6
  showFilters: true,
@@ -1,9 +1,10 @@
1
1
  import { Map } from 'immutable';
2
- import BankSearch from './presenter';
3
- import { connect } from '../../../common/react-redux';
4
- import { update, setFilter, toggle } from '../../../common/actions/bankSearch';
5
- import { toggle as toggleUI } from '../../../common/actions/ui';
2
+ import BankSearch from "./presenter.js";
3
+ import { connect } from "../../../common/react-redux.js";
4
+ import { update, setFilter, toggle } from "../../../common/actions/bankSearch.js";
5
+ import { toggle as toggleUI } from "../../../common/actions/ui.js";
6
6
  import { BANKS_SEARCH_FILTER_KEY, BANKS_TOGGLE_INTERACTIONS_KEY } from '@instructure/quiz-common';
7
+
7
8
  function mapStateToProps(state, props) {
8
9
  var searching = state.getIn(['ui', 'searching'], false);
9
10
  var search = state.get('bankSearch', Map());
@@ -16,6 +17,7 @@ function mapStateToProps(state, props) {
16
17
  showFilters: showFilters
17
18
  };
18
19
  }
20
+
19
21
  var mapDispatchToProps = {
20
22
  toggle: toggle,
21
23
  toggleFilters: function toggleFilters() {
@@ -1,8 +1,10 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
4
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- var _dec, _class, _BankSearch;
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
+
6
+ var _dec, _class, _class2, _temp;
7
+
6
8
  /** @jsx jsx */
7
9
  import { Component } from 'react';
8
10
  import memoize from 'lodash/memoize';
@@ -18,10 +20,10 @@ import { Text } from '@instructure/ui-text';
18
20
  import { AccessibleContent, ScreenReaderContent } from '@instructure/ui-a11y-content';
19
21
  import { withStyle, jsx } from '@instructure/emotion';
20
22
  import t from '@instructure/quiz-i18n/es/format-message';
21
- import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
22
- import { interactionTypesNameDictionary } from '../../../common/util/interactionTypeMetadata';
23
- import generateStyle from './styles';
24
- import generateComponentTheme from './theme';
23
+ import TagSuggestSelect from "../../../common/components/shared/TagSuggestSelect/index.js";
24
+ import { interactionTypesNameDictionary } from "../../../common/util/interactionTypeMetadata.js";
25
+ import generateStyle from "./styles.js";
26
+ import generateComponentTheme from "./theme.js";
25
27
  var tagShape = PropTypes.shape({
26
28
  tag: PropTypes.shape({
27
29
  id: PropTypes.string,
@@ -29,46 +31,58 @@ var tagShape = PropTypes.shape({
29
31
  }).isRequired,
30
32
  count: PropTypes.number.isRequired
31
33
  });
32
- export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_BankSearch = /*#__PURE__*/function (_Component) {
34
+ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
35
+ _inherits(BankSearch, _Component);
36
+
37
+ var _super = _createSuper(BankSearch);
38
+
33
39
  function BankSearch() {
34
40
  var _this;
41
+
35
42
  _classCallCheck(this, BankSearch);
43
+
36
44
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
45
  args[_key] = arguments[_key];
38
46
  }
39
- _this = _callSuper(this, BankSearch, [].concat(args));
47
+
48
+ _this = _super.call.apply(_super, [this].concat(args));
40
49
  _this.toggleInteraction = memoize(function (it) {
41
50
  return function () {
42
51
  return _this.props.toggle('interactionTypes', it);
43
52
  };
44
53
  });
54
+
45
55
  _this.setTags = function (tags) {
46
56
  return _this.props.setFilter('tags', tags);
47
57
  };
58
+
48
59
  _this.updateSearch = function (_ref) {
49
60
  var value = _ref.target.value;
50
61
  return _this.props.update(value);
51
62
  };
63
+
52
64
  return _this;
53
65
  }
54
- _inherits(BankSearch, _Component);
55
- return _createClass(BankSearch, [{
66
+
67
+ _createClass(BankSearch, [{
56
68
  key: "renderFilters",
57
69
  value: function renderFilters() {
58
70
  var _this2 = this;
71
+
59
72
  var _this$props = this.props,
60
- allInteractions = _this$props.allInteractions,
61
- search = _this$props.search,
62
- showFilters = _this$props.showFilters,
63
- toggleAllInteractions = _this$props.toggleAllInteractions,
64
- interactionTypes = _this$props.interactionTypes;
73
+ allInteractions = _this$props.allInteractions,
74
+ search = _this$props.search,
75
+ showFilters = _this$props.showFilters,
76
+ toggleAllInteractions = _this$props.toggleAllInteractions,
77
+ interactionTypes = _this$props.interactionTypes;
78
+
65
79
  if (showFilters) {
66
80
  var its = interactionTypes;
67
81
  var shown = allInteractions ? its : its.slice(0, 5);
68
82
  var active = search.get('interactionTypes');
69
83
  var interactionFilters = shown.map(function (_ref2) {
70
84
  var count = _ref2.count,
71
- it = _ref2.interaction_type;
85
+ it = _ref2.interaction_type;
72
86
  var interactionName = interactionTypesNameDictionary(it);
73
87
  var label = "".concat(interactionName, " (").concat(count, ")");
74
88
  return jsx("div", {
@@ -94,14 +108,17 @@ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme)
94
108
  tags: activeTags,
95
109
  defaultSuggestions: suggestions
96
110
  });
111
+
97
112
  var toggleButton = function toggleButton() {
98
113
  if (shown.length < its.length || allInteractions) {
99
114
  var hide = function hide() {
100
115
  return t('Show Less');
101
116
  };
117
+
102
118
  var show = function show() {
103
119
  return t('Show More');
104
120
  };
121
+
105
122
  var text = allInteractions ? hide() : show();
106
123
  return jsx(CondensedButton, {
107
124
  onClick: toggleAllInteractions,
@@ -111,6 +128,7 @@ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme)
111
128
  }, text));
112
129
  }
113
130
  };
131
+
114
132
  return jsx("div", {
115
133
  css: this.props.styles.filterContainer
116
134
  }, jsx("div", {
@@ -129,8 +147,8 @@ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme)
129
147
  key: "render",
130
148
  value: function render() {
131
149
  var _this$props2 = this.props,
132
- showFilters = _this$props2.showFilters,
133
- toggleFilters = _this$props2.toggleFilters;
150
+ showFilters = _this$props2.showFilters,
151
+ toggleFilters = _this$props2.toggleFilters;
134
152
  return jsx("div", null, jsx(Flex, {
135
153
  as: "div"
136
154
  }, jsx(Flex.Item, {
@@ -141,7 +159,8 @@ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme)
141
159
  type: "search",
142
160
  placeholder: t('Search'),
143
161
  onChange: this.updateSearch,
144
- value: this.props.search.get('text', '') || ''
162
+ value: this.props.search.get('text', '') || '',
163
+ "data-automation": "sdk-bank-search-input"
145
164
  })), jsx(Flex.Item, null, jsx(Button, {
146
165
  onClick: toggleFilters,
147
166
  margin: "none none none small",
@@ -152,7 +171,10 @@ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme)
152
171
  }, t('Filters'))))), this.renderFilters());
153
172
  }
154
173
  }]);
155
- }(Component), _BankSearch.propTypes = {
174
+
175
+ BankSearch.displayName = "BankSearch";
176
+ return BankSearch;
177
+ }(Component), _class2.propTypes = {
156
178
  allInteractions: PropTypes.bool,
157
179
  interactionTypes: PropTypes.arrayOf(PropTypes.shape({
158
180
  count: PropTypes.number,
@@ -172,10 +194,10 @@ export var BankSearch = (_dec = withStyle(generateStyle, generateComponentTheme)
172
194
  update: PropTypes.func.isRequired,
173
195
  // eslint-disable-next-line react/require-default-props,react/forbid-prop-types
174
196
  styles: PropTypes.object
175
- }, _BankSearch.defaultProps = {
197
+ }, _class2.defaultProps = {
176
198
  allInteractions: false,
177
199
  interactionTypes: [],
178
200
  showFilters: false,
179
201
  tags: []
180
- }, _BankSearch)) || _class);
202
+ }, _temp)) || _class);
181
203
  export default BankSearch;
@@ -13,4 +13,5 @@ var generateStyle = function generateStyle(componentTheme) {
13
13
  }
14
14
  };
15
15
  };
16
+
16
17
  export default generateStyle;
@@ -5,4 +5,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
5
5
  searchInteractionsPaddingLeftRight: spacing.small
6
6
  };
7
7
  };
8
+
8
9
  export default generateComponentTheme;
@@ -1,13 +1,14 @@
1
1
  import { bindActionCreators } from 'redux';
2
2
  import { Map } from 'immutable';
3
- import { Banks as BanksPresenter } from './presenter';
4
- import { set as setUI, clear, merge } from '../../../common/actions/ui';
5
- import { connect } from '../../../common/react-redux';
6
- import { getBanks } from '../../../banks/api/banks';
7
- import * as modalActions from '../../../common/actions/modal';
8
- import { createBank } from '../../../common/actions/modifications';
9
- import { featureOn } from '../../../common/util/featureCheck';
3
+ import { Banks as BanksPresenter } from "./presenter.js";
4
+ import { set as setUI, clear, merge } from "../../../common/actions/ui.js";
5
+ import { connect } from "../../../common/react-redux.js";
6
+ import { getBanks } from "../../../banks/api/banks.js";
7
+ import * as modalActions from "../../../common/actions/modal.js";
8
+ import { createBank } from "../../../common/actions/modifications.js";
9
+ import { featureOn } from "../../../common/util/featureCheck.js";
10
10
  import { BANKS_BANK_FILTERS } from '@instructure/quiz-common';
11
+
11
12
  function mapStateToProps(state, props) {
12
13
  var pageData = state.getIn(['ui', BANKS_BANK_FILTERS], Map());
13
14
  var scopeType = pageData.get('scopeType', (props.scope || {}).type || 'user');
@@ -29,6 +30,7 @@ function mapStateToProps(state, props) {
29
30
  rootAccountUuid: rootAccountUuid
30
31
  };
31
32
  }
33
+
32
34
  function mapDispatchToProps(dispatch) {
33
35
  return {
34
36
  createBank: bindActionCreators(createBank, dispatch),
@@ -39,5 +41,6 @@ function mapDispatchToProps(dispatch) {
39
41
  setUI: bindActionCreators(setUI, dispatch)
40
42
  };
41
43
  }
44
+
42
45
  export var Banks = connect(mapStateToProps, mapDispatchToProps)(BanksPresenter);
43
46
  export default Banks;