@instructure/quiz-core 20.17.2-rc.1 → 20.17.2-rc.11

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 (1467) hide show
  1. package/es/banks/api/bankEntries.js +13 -20
  2. package/es/banks/api/banks.js +22 -34
  3. package/es/banks/api/copyingBanksPoller.js +57 -67
  4. package/es/banks/api/tagAssociations.js +26 -40
  5. package/es/banks/components/AddBankEntryModal/index.js +7 -10
  6. package/es/banks/components/AddBankEntryModal/presenter.js +5 -25
  7. package/es/banks/components/AddToBankModal/index.js +12 -12
  8. package/es/banks/components/AddToBankModal/presenter.js +51 -94
  9. package/es/banks/components/AsyncSearch/index.js +13 -70
  10. package/es/banks/components/Bank/index.js +12 -12
  11. package/es/banks/components/Bank/presenter.js +57 -115
  12. package/es/banks/components/Bank/styles.js +0 -2
  13. package/es/banks/components/Bank/theme.js +2 -3
  14. package/es/banks/components/BankEntriesList/index.js +3 -3
  15. package/es/banks/components/BankEntriesList/presenter.js +13 -27
  16. package/es/banks/components/BankEntriesList/styles.js +0 -1
  17. package/es/banks/components/BankEntriesList/theme.js +0 -1
  18. package/es/banks/components/BankEntry/index.js +14 -19
  19. package/es/banks/components/BankEntry/presenter.js +160 -257
  20. package/es/banks/components/BankEntry/styles.js +0 -2
  21. package/es/banks/components/BankEntry/theme.js +3 -4
  22. package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -4
  23. package/es/banks/components/BankEntryRow/index.js +9 -14
  24. package/es/banks/components/BankEntryRow/presenter.js +27 -59
  25. package/es/banks/components/BankEntryRow/styles.js +0 -1
  26. package/es/banks/components/BankEntryRow/theme.js +3 -4
  27. package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
  28. package/es/banks/components/BankSearch/index.js +4 -6
  29. package/es/banks/components/BankSearch/presenter.js +21 -42
  30. package/es/banks/components/BankSearch/styles.js +0 -1
  31. package/es/banks/components/BankSearch/theme.js +0 -1
  32. package/es/banks/components/Banks/index.js +7 -10
  33. package/es/banks/components/Banks/presenter.js +31 -85
  34. package/es/banks/components/Banks/styles.js +0 -1
  35. package/es/banks/components/Banks/theme.js +2 -3
  36. package/es/banks/components/BanksList/index.js +8 -8
  37. package/es/banks/components/BanksList/presenter.js +79 -141
  38. package/es/banks/components/BanksList/styles.js +0 -1
  39. package/es/banks/components/BanksList/theme.js +3 -4
  40. package/es/banks/components/CopyMoveBankEntryModal/index.js +9 -9
  41. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +10 -39
  42. package/es/banks/components/CreateBankModal/index.js +10 -13
  43. package/es/banks/components/CreateBankModal/presenter.js +13 -42
  44. package/es/banks/components/CreateBankModal/styles.js +0 -1
  45. package/es/banks/components/CreateBankModal/theme.js +1 -2
  46. package/es/banks/components/EditBankModal/index.js +7 -10
  47. package/es/banks/components/EditBankModal/presenter.js +13 -36
  48. package/es/banks/components/EditBankModal/styles.js +0 -1
  49. package/es/banks/components/EditBankModal/theme.js +1 -2
  50. package/es/banks/components/HeaderBreadCrumb/index.js +13 -26
  51. package/es/banks/components/HeaderMenu/index.js +4 -7
  52. package/es/banks/components/HeaderMenu/presenter.js +15 -29
  53. package/es/banks/components/HeaderMenu/styles.js +0 -1
  54. package/es/banks/components/HeaderMenu/theme.js +1 -2
  55. package/es/banks/components/NavWrapper/index.js +2 -4
  56. package/es/banks/components/NavWrapper/presenter.js +19 -38
  57. package/es/banks/components/NavWrapper/styles.js +0 -2
  58. package/es/banks/components/NavWrapper/theme.js +4 -5
  59. package/es/banks/components/SharingModal/ContextualIconButton/index.js +5 -21
  60. package/es/banks/components/SharingModal/RootAccountSharing.js +16 -33
  61. package/es/banks/components/SharingModal/ShareList/index.js +16 -37
  62. package/es/banks/components/SharingModal/ShareList/styles.js +0 -1
  63. package/es/banks/components/SharingModal/index.js +6 -8
  64. package/es/banks/components/SharingModal/presenter.js +56 -126
  65. package/es/banks/components/SharingModal/styles.js +0 -1
  66. package/es/banks/components/SharingModal/theme.js +2 -3
  67. package/es/building/api/items.js +81 -103
  68. package/es/building/api/qtiImports.js +14 -22
  69. package/es/building/api/quizEntries.js +57 -65
  70. package/es/building/api/quizzes.js +34 -29
  71. package/es/building/api/stimuli.js +9 -6
  72. package/es/building/components/QTIImportModal/index.js +6 -5
  73. package/es/building/components/layout/Sidebar/Sidebar.examples.js +17 -38
  74. package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
  75. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +27 -41
  76. package/es/building/components/layout/Sidebar/SidebarItem/styles.js +1 -4
  77. package/es/building/components/layout/Sidebar/SidebarItem/theme.js +0 -1
  78. package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -12
  79. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +25 -39
  80. package/es/building/components/layout/Sidebar/Stimulus/styles.js +1 -4
  81. package/es/building/components/layout/Sidebar/Stimulus/theme.js +0 -1
  82. package/es/building/components/layout/Sidebar/index.js +15 -15
  83. package/es/building/components/layout/Sidebar/presenter.js +21 -51
  84. package/es/building/components/layout/Sidebar/styles.js +0 -2
  85. package/es/building/components/layout/Sidebar/theme.js +0 -1
  86. package/es/building/components/layout/header/BuildingButtons/index.js +9 -11
  87. package/es/building/components/layout/header/BuildingButtons/presenter.js +15 -64
  88. package/es/building/components/layout/header/BuildingButtons/styles.js +0 -2
  89. package/es/building/components/layout/header/BuildingButtons/theme.js +2 -3
  90. package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
  91. package/es/building/components/resources/ActionButtons/index.js +4 -7
  92. package/es/building/components/resources/ActionButtons/presenter.js +14 -34
  93. package/es/building/components/resources/ActionButtons/styles.js +0 -3
  94. package/es/building/components/resources/ActionButtons/theme.js +1 -2
  95. package/es/building/components/resources/AddToBankOptions/index.js +38 -62
  96. package/es/building/components/resources/AddToBankOptions/styles.js +0 -1
  97. package/es/building/components/resources/AddToBankOptions/theme.js +1 -2
  98. package/es/building/components/resources/BanksTray/index.js +3 -5
  99. package/es/building/components/resources/BanksTray/presenter.js +12 -40
  100. package/es/building/components/resources/DeleteStimulusModal/index.js +8 -12
  101. package/es/building/components/resources/DeleteStimulusModal/presenter.js +21 -56
  102. package/es/building/components/resources/DeleteStimulusModal/styles.js +0 -1
  103. package/es/building/components/resources/DeleteStimulusModal/theme.js +1 -2
  104. package/es/building/components/resources/ItemFeedbackModal/index.js +8 -10
  105. package/es/building/components/resources/ItemFeedbackModal/presenter.js +12 -35
  106. package/es/building/components/resources/ItemFeedbackModal/styles.js +0 -1
  107. package/es/building/components/resources/ItemFeedbackModal/theme.js +0 -1
  108. package/es/building/components/resources/MoveImmutableModal/index.js +11 -14
  109. package/es/building/components/resources/MoveImmutableModal/presenter.js +8 -24
  110. package/es/building/components/resources/quiz/editButton/EditButton.js +5 -20
  111. package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -4
  112. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +21 -26
  113. package/es/building/components/resources/quiz/instructions/Edit/styles.js +0 -1
  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 +7 -9
  116. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +31 -55
  117. package/es/building/components/resources/quiz/instructions/Instructions/styles.js +0 -2
  118. package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
  119. package/es/building/components/resources/quiz/instructions/Show/index.js +18 -29
  120. package/es/building/components/resources/quiz/instructions/Show/styles.js +10 -2
  121. package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
  122. package/es/building/components/resources/quiz/title/Edit/index.js +21 -36
  123. package/es/building/components/resources/quiz/title/Edit/styles.js +0 -2
  124. package/es/building/components/resources/quiz/title/Edit/theme.js +3 -4
  125. package/es/building/components/resources/quiz/title/Show/index.js +17 -28
  126. package/es/building/components/resources/quiz/title/Show/styles.js +0 -1
  127. package/es/building/components/resources/quiz/title/Show/theme.js +0 -1
  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 +8 -10
  130. package/es/building/components/resources/quiz/title/Title/presenter.js +31 -48
  131. package/es/building/components/resources/quiz/title/Title/styles.js +0 -2
  132. package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
  133. package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -16
  134. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +30 -66
  135. package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +4 -16
  136. package/es/building/components/resources/quizEntry/QuizEntry/styles.js +0 -2
  137. package/es/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
  138. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
  139. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +16 -51
  140. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -1
  141. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -4
  142. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +15 -30
  143. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -1
  144. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -4
  145. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -7
  146. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +24 -54
  147. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -3
  148. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -4
  149. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +70 -124
  150. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -2
  151. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
  152. package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -14
  153. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +93 -160
  154. package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -2
  155. package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -4
  156. package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -10
  157. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +37 -71
  158. package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -2
  159. package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -5
  160. package/es/common/actions/alerts.js +7 -7
  161. package/es/common/actions/modifications.js +37 -16
  162. package/es/common/actions/quizSessions.js +5 -15
  163. package/es/common/actions/rce.js +3 -2
  164. package/es/common/actions/taking.js +9 -1
  165. package/es/common/api/callHandlers.js +14 -15
  166. package/es/common/api/camelizeHelpers.js +6 -6
  167. package/es/common/api/features.js +3 -5
  168. package/es/common/api/fileUpload.js +4 -3
  169. package/es/common/api/getPersistenceActions.js +41 -40
  170. package/es/common/api/helpers.js +77 -100
  171. package/es/common/api/interactionTypes.js +2 -2
  172. package/es/common/api/quizSessions.js +27 -32
  173. package/es/common/api/quizzes.js +10 -6
  174. package/es/common/api/schema.js +6 -4
  175. package/es/common/components/ApiFeatureFlagInitializer/index.js +8 -12
  176. package/es/common/components/ConfirmationModal/index.js +3 -6
  177. package/es/common/components/ConfirmationModal/presenter.js +13 -29
  178. package/es/common/components/ImportModal/ImportFileSelector/index.js +24 -40
  179. package/es/common/components/ImportModal/ImportFileSelector/styles.js +0 -1
  180. package/es/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
  181. package/es/common/components/ImportModal/index.js +13 -13
  182. package/es/common/components/ImportModal/presenter.js +19 -69
  183. package/es/common/components/ImportModal/styles.js +0 -1
  184. package/es/common/components/ImportModal/theme.js +0 -1
  185. package/es/common/components/LearnosityCalculator/index.js +36 -60
  186. package/es/common/components/Pin/index.js +1 -1
  187. package/es/common/components/Pin/presenter.js +4 -17
  188. package/es/common/components/PreviewFrame/examples.config.js +2 -4
  189. package/es/common/components/PreviewFrame/index.js +8 -18
  190. package/es/common/components/PrintFontSizeModal/index.js +1 -1
  191. package/es/common/components/PrintFontSizeModal/presenter.js +24 -35
  192. package/es/common/components/PrintFontSizeModal/styles.js +0 -1
  193. package/es/common/components/PrintFontSizeModal/theme.js +2 -3
  194. package/es/common/components/RceConfigProvider/index.js +4 -6
  195. package/es/common/components/RceConfigProvider/presenter.js +93 -125
  196. package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -11
  197. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +26 -37
  198. package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -11
  199. package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
  200. package/es/common/components/SDKApp/index.js +30 -61
  201. package/es/common/components/SDKApp/styles.js +0 -1
  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 +4 -6
  207. package/es/common/components/alerts/presenter.js +11 -30
  208. package/es/common/components/alerts/styles.js +0 -2
  209. package/es/common/components/alerts/theme.js +1 -2
  210. package/es/common/components/layout/Page/index.js +11 -21
  211. package/es/common/components/layout/Page/styles.js +0 -2
  212. package/es/common/components/layout/Page/theme.js +2 -3
  213. package/es/common/components/layout/header/Calculator/index.js +7 -9
  214. package/es/common/components/layout/header/Calculator/presenter.js +9 -22
  215. package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
  216. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +14 -36
  217. package/es/common/components/layout/header/HeaderMenuButton/styles.js +0 -2
  218. package/es/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
  219. package/es/common/components/layout/header/Timer/index.js +6 -9
  220. package/es/common/components/layout/header/Timer/presenter.js +19 -49
  221. package/es/common/components/layout/header/Timer/styles.js +0 -1
  222. package/es/common/components/layout/header/Timer/theme.js +3 -4
  223. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +10 -20
  224. package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -1
  225. package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -1
  226. package/es/common/components/layout/navbar/index.js +15 -39
  227. package/es/common/components/layout/navbar/styles.js +0 -1
  228. package/es/common/components/layout/navbar/theme.js +1 -2
  229. package/es/common/components/layout/sidebar/PositionSummary/index.js +10 -20
  230. package/es/common/components/layout/sidebar/PositionSummary/styles.js +0 -1
  231. package/es/common/components/layout/sidebar/PositionSummary/theme.js +3 -4
  232. package/es/common/components/layout/sidebar/Sidebar/Pin.js +7 -18
  233. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +6 -10
  234. package/es/common/components/layout/sidebar/Sidebar/index.js +39 -81
  235. package/es/common/components/layout/sidebar/Sidebar/styles.js +4 -9
  236. package/es/common/components/layout/sidebar/Sidebar/theme.js +5 -7
  237. package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
  238. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +35 -51
  239. package/es/common/components/layout/sidebar/SidebarItem/styles.js +0 -2
  240. package/es/common/components/layout/sidebar/SidebarItem/theme.js +3 -4
  241. package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
  242. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +23 -39
  243. package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +1 -3
  244. package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
  245. package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
  246. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +20 -43
  247. package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -1
  248. package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
  249. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +11 -21
  250. package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -1
  251. package/es/common/components/layout/sidebar/Stimulus/index.js +3 -5
  252. package/es/common/components/layout/sidebar/Stimulus/presenter.js +28 -49
  253. package/es/common/components/layout/sidebar/Stimulus/styles.js +0 -1
  254. package/es/common/components/layout/sidebar/Stimulus/theme.js +3 -4
  255. package/es/common/components/resources/BankSelection/index.js +5 -5
  256. package/es/common/components/resources/BankSelection/presenter.js +16 -49
  257. package/es/common/components/resources/WarningWrapper/index.js +11 -25
  258. package/es/common/components/resources/WarningWrapper/styles.js +0 -1
  259. package/es/common/components/resources/WarningWrapper/theme.js +2 -3
  260. package/es/common/components/resources/entry/EntrySave/index.js +10 -10
  261. package/es/common/components/resources/entry/EntrySave/presenter.js +95 -150
  262. package/es/common/components/resources/item/ItemEdit/index.js +16 -18
  263. package/es/common/components/resources/item/ItemEdit/presenter.js +18 -41
  264. package/es/common/components/resources/item/ItemOverride/index.js +9 -11
  265. package/es/common/components/resources/item/ItemOverride/presenter.js +6 -18
  266. package/es/common/components/resources/item/ItemShow/index.js +7 -17
  267. package/es/common/components/resources/positionBox/PositionBox.js +11 -21
  268. package/es/common/components/resources/positionBox/styles.js +0 -2
  269. package/es/common/components/resources/positionBox/theme.js +2 -3
  270. package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -9
  271. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +23 -45
  272. package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -9
  273. package/es/common/components/resources/quiz/AddContent/Body/theme.js +4 -5
  274. package/es/common/components/resources/quiz/AddContent/Button/index.js +11 -25
  275. package/es/common/components/resources/quiz/AddContent/Button/styles.js +0 -2
  276. package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -5
  277. package/es/common/components/resources/quiz/AddContent/Modal/index.js +8 -11
  278. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +5 -13
  279. package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -8
  280. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +16 -37
  281. package/es/common/components/resources/quiz/AddContent/Popover/styles.js +0 -1
  282. package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
  283. package/es/common/components/resources/quiz/info/QuizInfo.js +6 -14
  284. package/es/common/components/resources/quiz/instructions/Instructions.js +13 -22
  285. package/es/common/components/resources/quiz/instructions/styles.js +0 -1
  286. package/es/common/components/resources/quiz/instructions/theme.js +1 -2
  287. package/es/common/components/resources/quiz/title/Title.js +13 -21
  288. package/es/common/components/resources/quiz/title/styles.js +0 -1
  289. package/es/common/components/resources/quiz/title/theme.js +1 -2
  290. package/es/common/components/resources/quizSessionResult/Header/index.js +11 -26
  291. package/es/common/components/resources/quizSessionResult/Header/styles.js +0 -1
  292. package/es/common/components/resources/quizSessionResult/Header/theme.js +1 -2
  293. package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
  294. package/es/common/components/resources/quizSessionResult/Info/index.js +107 -125
  295. package/es/common/components/resources/quizSessionResult/Info/styles.js +0 -2
  296. package/es/common/components/resources/quizSessionResult/Info/theme.js +1 -2
  297. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +10 -22
  298. package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -2
  299. package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -5
  300. package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -6
  301. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +64 -90
  302. package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -2
  303. package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -4
  304. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +15 -31
  305. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -1
  306. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
  307. package/es/common/components/resources/stimulus/Stimulus/index.js +5 -8
  308. package/es/common/components/resources/stimulus/Stimulus/presenter.js +22 -39
  309. package/es/common/components/resources/stimulus/Stimulus/styles.js +1 -5
  310. package/es/common/components/resources/stimulus/Stimulus/theme.js +3 -4
  311. package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -13
  312. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +111 -190
  313. package/es/common/components/resources/stimulus/StimulusEdit/styles.js +0 -1
  314. package/es/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
  315. package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +4 -7
  316. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +16 -43
  317. package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -1
  318. package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
  319. package/es/common/components/resources/stimulus/StimulusShow/index.js +15 -33
  320. package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -1
  321. package/es/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
  322. package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
  323. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +4 -14
  324. package/es/common/components/shared/Card/CardContent/index.js +11 -21
  325. package/es/common/components/shared/Card/CardContent/styles.js +0 -2
  326. package/es/common/components/shared/Card/CardContent/theme.js +4 -5
  327. package/es/common/components/shared/Card/CardWrapper/index.js +11 -21
  328. package/es/common/components/shared/Card/CardWrapper/styles.js +0 -2
  329. package/es/common/components/shared/Card/CardWrapper/theme.js +2 -3
  330. package/es/common/components/shared/Card/index.js +6 -6
  331. package/es/common/components/shared/ExpandButton/index.js +10 -20
  332. package/es/common/components/shared/ExpandButton/styles.js +0 -2
  333. package/es/common/components/shared/ExpandButton/theme.js +0 -1
  334. package/es/common/components/shared/FormattedDuration/index.js +9 -20
  335. package/es/common/components/shared/IfFeature/index.js +3 -3
  336. package/es/common/components/shared/IfFeature/presenter.js +4 -13
  337. package/es/common/components/shared/InteractionTypes/index.js +2 -4
  338. package/es/common/components/shared/InteractionTypes/presenter.js +14 -33
  339. package/es/common/components/shared/InteractionTypes/styles.js +0 -1
  340. package/es/common/components/shared/InteractionTypes/theme.js +2 -3
  341. package/es/common/components/shared/PaginatedCollection/index.js +3 -3
  342. package/es/common/components/shared/PaginatedCollection/presenter.js +46 -75
  343. package/es/common/components/shared/PaginatedCollection/styles.js +0 -1
  344. package/es/common/components/shared/PaginatedCollection/theme.js +2 -3
  345. package/es/common/components/shared/Paginator/index.js +11 -24
  346. package/es/common/components/shared/Paginator/styles.js +0 -1
  347. package/es/common/components/shared/Paginator/theme.js +0 -1
  348. package/es/common/components/shared/PrintTrigger/index.js +7 -9
  349. package/es/common/components/shared/PrintTrigger/presenter.js +12 -37
  350. package/es/common/components/shared/TagDisplay/index.js +10 -21
  351. package/es/common/components/shared/TagDisplay/styles.js +0 -1
  352. package/es/common/components/shared/TagSelect/index.js +1 -1
  353. package/es/common/components/shared/TagSelect/presenter.js +15 -49
  354. package/es/common/components/shared/TagSuggestSelect/index.js +4 -7
  355. package/es/common/components/shared/TagSuggestSelect/presenter.js +12 -26
  356. package/es/common/components/shared/TagWrapper/index.js +1 -1
  357. package/es/common/components/shared/TagWrapper/presenter.js +7 -20
  358. package/es/common/components/shared/TimeUnitsInput/index.js +29 -61
  359. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +18 -33
  360. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -2
  361. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
  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 +26 -67
  364. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -64
  365. package/es/common/components/shared/errors/Errors.js +11 -27
  366. package/es/common/components/shared/errors/styles.js +0 -1
  367. package/es/common/components/shared/errors/theme.js +1 -2
  368. package/es/common/components/shared/file_selector/FileSelector.js +12 -24
  369. package/es/common/components/shared/file_selector/styles.js +0 -1
  370. package/es/common/components/shared/file_selector/theme.js +2 -3
  371. package/es/common/components/shared/functionality/componentWithOutsideClick.js +17 -27
  372. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +12 -21
  373. package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -3
  374. package/es/common/components/shared/functionality/makeEditable.js +21 -35
  375. package/es/common/components/shared/functionality/makeScrollable.js +27 -46
  376. package/es/common/components/shared/overlay/index.js +16 -29
  377. package/es/common/components/shared/overlay/styles.js +0 -2
  378. package/es/common/components/shared/overlay/theme.js +2 -3
  379. package/es/common/components/shared/return_button/ReturnButton.js +6 -15
  380. package/es/common/components/shared/spinner/Spinner.js +17 -28
  381. package/es/common/components/shared/spinner/styles.js +0 -1
  382. package/es/common/kinesis/QuizEventsLogger.js +47 -66
  383. package/es/common/kinesis/StreamQueue.js +9 -28
  384. package/es/common/kinesis/client.js +3 -5
  385. package/es/common/kinesis/config.js +3 -3
  386. package/es/common/kinesis/eventTypes.js +4 -4
  387. package/es/common/middleware/alertTimerMiddleware.js +3 -7
  388. package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -4
  389. package/es/common/middleware/eventLoggerMiddleware.js +5 -7
  390. package/es/common/middleware/persistedStorageMiddleware.js +2 -7
  391. package/es/common/react-redux.js +0 -2
  392. package/es/common/records/Alert.js +5 -9
  393. package/es/common/records/Bank.js +7 -13
  394. package/es/common/records/BankEntry.js +7 -17
  395. package/es/common/records/Item.js +15 -22
  396. package/es/common/records/ItemAnalysis.js +6 -13
  397. package/es/common/records/QtiImport.js +5 -14
  398. package/es/common/records/Quiz.js +18 -27
  399. package/es/common/records/QuizAnalysis.js +5 -12
  400. package/es/common/records/QuizEntry.js +105 -152
  401. package/es/common/records/QuizSession.js +21 -28
  402. package/es/common/records/QuizSessionEvent.js +6 -13
  403. package/es/common/records/QuizSessionResult.js +6 -13
  404. package/es/common/records/Response.js +6 -13
  405. package/es/common/records/SessionItem.js +10 -23
  406. package/es/common/records/SessionItemResult.js +6 -13
  407. package/es/common/records/Stimulus.js +10 -17
  408. package/es/common/records/baseRecord.js +8 -19
  409. package/es/common/records/index.js +16 -32
  410. package/es/common/records/reduxRecord.js +9 -14
  411. package/es/common/reducers/alerts.js +0 -3
  412. package/es/common/reducers/analyses.js +1 -11
  413. package/es/common/reducers/bankEntries.js +0 -5
  414. package/es/common/reducers/bankSearch.js +4 -9
  415. package/es/common/reducers/banks.js +1 -13
  416. package/es/common/reducers/calls.js +0 -3
  417. package/es/common/reducers/config.js +0 -4
  418. package/es/common/reducers/dragAndDrop.js +0 -2
  419. package/es/common/reducers/editing.js +1 -3
  420. package/es/common/reducers/errorsShowing.js +0 -4
  421. package/es/common/reducers/features.js +0 -3
  422. package/es/common/reducers/grading.js +0 -4
  423. package/es/common/reducers/interactionTypes.js +0 -4
  424. package/es/common/reducers/items.js +0 -4
  425. package/es/common/reducers/modal.js +0 -6
  426. package/es/common/reducers/moderation.js +0 -3
  427. package/es/common/reducers/modifications.js +8 -40
  428. package/es/common/reducers/outcomes.js +0 -5
  429. package/es/common/reducers/printing.js +0 -2
  430. package/es/common/reducers/qtiImports.js +0 -5
  431. package/es/common/reducers/quizEntries.js +28 -39
  432. package/es/common/reducers/quizExport.js +0 -2
  433. package/es/common/reducers/quizSessionEvents.js +2 -5
  434. package/es/common/reducers/quizSessionResults.js +0 -4
  435. package/es/common/reducers/quizSessions.js +2 -11
  436. package/es/common/reducers/quizzes.js +0 -13
  437. package/es/common/reducers/rce.js +0 -6
  438. package/es/common/reducers/regrading.js +0 -4
  439. package/es/common/reducers/reporting.js +0 -12
  440. package/es/common/reducers/scrolling.js +0 -3
  441. package/es/common/reducers/sessionItemResults.js +0 -4
  442. package/es/common/reducers/sessionItems.js +0 -4
  443. package/es/common/reducers/sharedBanks.js +1 -8
  444. package/es/common/reducers/sidebar.js +0 -3
  445. package/es/common/reducers/stimuli.js +0 -4
  446. package/es/common/reducers/tagAssociations.js +0 -28
  447. package/es/common/reducers/taking.js +6 -34
  448. package/es/common/reducers/ui.js +0 -11
  449. package/es/common/reducers/upload.js +0 -7
  450. package/es/common/selectors/analyses.js +0 -2
  451. package/es/common/selectors/calculator.js +9 -10
  452. package/es/common/selectors/config.js +0 -2
  453. package/es/common/selectors/interactionTypes.js +7 -8
  454. package/es/common/selectors/items.js +1 -2
  455. package/es/common/selectors/qtiImports.js +3 -6
  456. package/es/common/selectors/quizSessionResults.js +1 -1
  457. package/es/common/selectors/quizSessions.js +3 -2
  458. package/es/common/selectors/quizzes.js +8 -14
  459. package/es/common/selectors/reporting.js +1 -3
  460. package/es/common/selectors/sessionItemResults.js +4 -5
  461. package/es/common/selectors/sessionItems.js +4 -5
  462. package/es/common/selectors/taking.js +1 -1
  463. package/es/common/util/CustomPropTypes.js +0 -12
  464. package/es/common/util/ExhaustivePaginatedFetcher.js +55 -73
  465. package/es/common/util/Fetcher.js +155 -224
  466. package/es/common/util/MultiWeakMap.js +1 -21
  467. package/es/common/util/PaginatedFetcher.js +21 -39
  468. package/es/common/util/ThunkQueue.js +50 -80
  469. package/es/common/util/TimeRecordingService.js +1 -14
  470. package/es/common/util/TimerService.js +5 -43
  471. package/es/common/util/cachePreviousArgs.js +0 -3
  472. package/es/common/util/callHelpers.js +0 -2
  473. package/es/common/util/componentForItem.js +1 -6
  474. package/es/common/util/crossDomainMessaging.js +0 -1
  475. package/es/common/util/debounceLatestPromise.js +0 -2
  476. package/es/common/util/featureCheck.js +6 -4
  477. package/es/common/util/fitbCopyHelper.js +3 -3
  478. package/es/common/util/formatTimespan.js +0 -10
  479. package/es/common/util/generateDisplayPositions.js +2 -5
  480. package/es/common/util/immutableHelpers.js +8 -6
  481. package/es/common/util/interactionTypeMetadata.js +2 -3
  482. package/es/common/util/interactionTypePropsHelper.js +0 -7
  483. package/es/common/util/interactionTypeRecordForItem.js +1 -7
  484. package/es/common/util/jsonify.js +1 -0
  485. package/es/common/util/keyboardClickable.js +0 -1
  486. package/es/common/util/mathRenderingUtils.js +2 -1
  487. package/es/common/util/maxContent.js +0 -1
  488. package/es/common/util/persistedState.js +4 -10
  489. package/es/common/util/printUtils.js +0 -4
  490. package/es/common/util/rceChecker.js +11 -15
  491. package/es/common/util/renderAlerts.js +11 -13
  492. package/es/common/util/serializeEvent.js +2 -4
  493. package/es/common/util/sessionStore.js +5 -13
  494. package/es/common/util/warningHelpers.js +0 -9
  495. package/es/common/util/withCachedArguments.js +3 -7
  496. package/es/common/util/withDynamoPagination.js +60 -84
  497. package/es/common/util/withStateCache.js +3 -10
  498. package/es/config.js +5 -9
  499. package/es/configureStore.js +52 -49
  500. package/es/grading/api/quizEntryRegrades.js +6 -5
  501. package/es/grading/api/updateResults.js +4 -8
  502. package/es/index.js +141 -135
  503. package/es/messages/LocalStorageAdapter.js +4 -15
  504. package/es/messages/LocalStorageLimits.js +5 -25
  505. package/es/messages/StorageExhaustionError.js +5 -12
  506. package/es/messages/postMessageService.js +5 -24
  507. package/es/messages/subjectHandlers/forwardMessage.js +0 -1
  508. package/es/messages/subjectHandlers/lti.capabilities.js +0 -1
  509. package/es/messages/subjectHandlers/lti.fetchWindowSize.js +0 -1
  510. package/es/messages/subjectHandlers/lti.frameResize.js +1 -4
  511. package/es/messages/subjectHandlers/lti.get_data.js +3 -8
  512. package/es/messages/subjectHandlers/lti.put_data.js +5 -10
  513. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +1 -5
  514. package/es/messages/utils.js +0 -1
  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 +11 -23
  518. package/es/moderating/components/events/RCEEvent.js +4 -12
  519. package/es/moderating/components/events/ResponseEvent.js +15 -30
  520. package/es/moderating/components/events/SessionStartEvent.js +4 -12
  521. package/es/moderating/components/events/styles.js +0 -1
  522. package/es/moderating/components/events/theme.js +1 -2
  523. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +12 -30
  524. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +5 -29
  525. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +5 -29
  526. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +7 -30
  527. package/es/moderating/components/resources/AccommodationsModal/index.js +11 -32
  528. package/es/moderating/components/resources/ElapsedTime.js +9 -16
  529. package/es/moderating/components/resources/ModerateTable/index.js +7 -7
  530. package/es/moderating/components/resources/ModerateTable/presenter.js +44 -96
  531. package/es/moderating/components/resources/ModerateTable/styles.js +0 -2
  532. package/es/moderating/components/resources/ModerateTable/theme.js +1 -2
  533. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -4
  534. package/es/moderating/components/resources/ModerateTableRow/index.js +5 -5
  535. package/es/moderating/components/resources/ModerateTableRow/presenter.js +29 -68
  536. package/es/moderating/components/resources/ModerateTableRow/story.js +3 -2
  537. package/es/moderating/components/resources/ModerateTableRow/styles.js +0 -1
  538. package/es/moderating/components/resources/ModerateTableRow/theme.js +0 -1
  539. package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
  540. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +5 -32
  541. package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
  542. package/es/moderating/components/sidebar/ModerateTray/presenter.js +4 -24
  543. package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -9
  544. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +17 -38
  545. package/es/reduxStore.js +4 -8
  546. package/es/reporting/api/getAnalysesExport.js +20 -29
  547. package/es/reporting/api/getAnalysesStatus.js +17 -22
  548. package/es/reporting/api/getItemAnalyses.js +17 -22
  549. package/es/reporting/api/getQuizAnalysis.js +17 -22
  550. package/es/reporting/api/itemAnalyses.js +4 -4
  551. package/es/reporting/api/quizAnalyses.js +4 -4
  552. package/es/reporting/components/Caption/index.js +11 -21
  553. package/es/reporting/components/Caption/styles.js +0 -1
  554. package/es/reporting/components/Caption/theme.js +2 -3
  555. package/es/reporting/components/MetricsListItem/index.js +13 -23
  556. package/es/reporting/components/MetricsListItem/styles.js +0 -1
  557. package/es/reporting/components/charts/CentileDistribution/presenter.js +17 -42
  558. package/es/reporting/components/charts/CentileDistribution/styles.js +0 -2
  559. package/es/reporting/components/charts/CentileDistribution/theme.js +2 -3
  560. package/es/reporting/components/charts/Distribution/presenter.js +21 -54
  561. package/es/reporting/components/charts/Distribution/styles.js +0 -1
  562. package/es/reporting/components/charts/Distribution/theme.js +1 -2
  563. package/es/reporting/components/charts/Legend/index.js +14 -25
  564. package/es/reporting/components/charts/Legend/styles.js +0 -2
  565. package/es/reporting/components/charts/Legend/theme.js +3 -4
  566. package/es/reporting/components/charts/QuintileDistribution/presenter.js +14 -40
  567. package/es/reporting/components/charts/QuintileDistribution/styles.js +0 -1
  568. package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -2
  569. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
  570. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +11 -33
  571. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -14
  572. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -6
  573. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
  574. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
  575. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +29 -52
  576. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -3
  577. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -4
  578. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +22 -41
  579. package/es/reporting/components/quizAnalysis/styles.js +3 -7
  580. package/es/reporting/components/quizAnalysis/theme.js +3 -4
  581. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
  582. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +15 -25
  583. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -1
  584. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
  585. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +15 -25
  586. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -4
  587. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +9 -17
  588. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  589. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +11 -19
  590. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  591. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +12 -20
  592. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  593. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +11 -34
  594. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -2
  595. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -1
  596. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  597. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +16 -31
  598. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -1
  599. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -1
  600. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +12 -24
  601. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +12 -20
  602. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  603. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +27 -51
  604. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -2
  605. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -1
  606. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +12 -25
  607. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
  608. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +3 -10
  609. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  610. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +12 -22
  611. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  612. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +26 -62
  613. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -1
  614. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -1
  615. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  616. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +20 -40
  617. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -1
  618. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -1
  619. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  620. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +14 -24
  621. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +16 -32
  622. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -1
  623. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
  624. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +12 -20
  625. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  626. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +19 -44
  627. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  628. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +13 -29
  629. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -2
  630. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -1
  631. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  632. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +12 -23
  633. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -1
  634. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  635. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +18 -54
  636. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -1
  637. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -1
  638. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  639. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +19 -61
  640. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -2
  641. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
  642. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  643. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +15 -28
  644. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -1
  645. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -1
  646. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +3 -6
  647. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
  648. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +14 -32
  649. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -1
  650. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -1
  651. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  652. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +10 -20
  653. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -1
  654. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -1
  655. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -5
  656. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +25 -55
  657. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -2
  658. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
  659. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
  660. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +21 -42
  661. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -1
  662. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -1
  663. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
  664. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +31 -56
  665. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -2
  666. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
  667. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
  668. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +13 -31
  669. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -1
  670. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
  671. package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +1 -7
  672. package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +40 -53
  673. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +41 -50
  674. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +27 -35
  675. package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +64 -85
  676. package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
  677. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +39 -77
  678. package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -1
  679. package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -1
  680. package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -5
  681. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -13
  682. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +104 -133
  683. package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
  684. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +12 -25
  685. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +7 -9
  686. package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
  687. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +29 -56
  688. package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -1
  689. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
  690. package/es/reporting/components/resources/ReportCard/index.js +15 -25
  691. package/es/reporting/components/resources/ReportCard/styles.js +0 -2
  692. package/es/reporting/components/resources/ReportCard/theme.js +1 -2
  693. package/es/reporting/components/resources/ReportList/index.js +14 -24
  694. package/es/reporting/components/resources/ReportList/styles.js +0 -1
  695. package/es/reporting/components/resources/ReportList/theme.js +0 -1
  696. package/es/taking/api/taking.js +41 -53
  697. package/es/taking/learnosity/index.js +42 -68
  698. package/lib/banks/api/bankEntries.js +23 -65
  699. package/lib/banks/api/banks.js +38 -103
  700. package/lib/banks/api/copyingBanksPoller.js +60 -83
  701. package/lib/banks/api/tagAssociations.js +32 -61
  702. package/lib/banks/components/AddBankEntryModal/index.js +10 -25
  703. package/lib/banks/components/AddBankEntryModal/presenter.js +10 -49
  704. package/lib/banks/components/AddToBankModal/index.js +16 -36
  705. package/lib/banks/components/AddToBankModal/presenter.js +56 -126
  706. package/lib/banks/components/AsyncSearch/index.js +18 -94
  707. package/lib/banks/components/Bank/index.js +17 -37
  708. package/lib/banks/components/Bank/presenter.js +70 -165
  709. package/lib/banks/components/Bank/styles.js +2 -8
  710. package/lib/banks/components/Bank/theme.js +3 -6
  711. package/lib/banks/components/BankEntriesList/index.js +6 -15
  712. package/lib/banks/components/BankEntriesList/presenter.js +18 -45
  713. package/lib/banks/components/BankEntriesList/styles.js +1 -4
  714. package/lib/banks/components/BankEntriesList/theme.js +1 -4
  715. package/lib/banks/components/BankEntry/index.js +17 -42
  716. package/lib/banks/components/BankEntry/presenter.js +173 -314
  717. package/lib/banks/components/BankEntry/styles.js +2 -7
  718. package/lib/banks/components/BankEntry/theme.js +4 -7
  719. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +5 -13
  720. package/lib/banks/components/BankEntryRow/index.js +12 -32
  721. package/lib/banks/components/BankEntryRow/presenter.js +38 -100
  722. package/lib/banks/components/BankEntryRow/styles.js +1 -4
  723. package/lib/banks/components/BankEntryRow/theme.js +4 -7
  724. package/lib/banks/components/BankSearch/BankSearch.stories.js +9 -27
  725. package/lib/banks/components/BankSearch/index.js +6 -18
  726. package/lib/banks/components/BankSearch/presenter.js +25 -70
  727. package/lib/banks/components/BankSearch/styles.js +1 -4
  728. package/lib/banks/components/BankSearch/theme.js +1 -4
  729. package/lib/banks/components/Banks/index.js +10 -26
  730. package/lib/banks/components/Banks/presenter.js +42 -129
  731. package/lib/banks/components/Banks/styles.js +1 -4
  732. package/lib/banks/components/Banks/theme.js +3 -6
  733. package/lib/banks/components/BanksList/index.js +12 -26
  734. package/lib/banks/components/BanksList/presenter.js +88 -178
  735. package/lib/banks/components/BanksList/styles.js +1 -4
  736. package/lib/banks/components/BanksList/theme.js +4 -7
  737. package/lib/banks/components/CopyMoveBankEntryModal/index.js +13 -30
  738. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +15 -65
  739. package/lib/banks/components/CreateBankModal/index.js +13 -33
  740. package/lib/banks/components/CreateBankModal/presenter.js +16 -64
  741. package/lib/banks/components/CreateBankModal/styles.js +1 -4
  742. package/lib/banks/components/CreateBankModal/theme.js +2 -5
  743. package/lib/banks/components/EditBankModal/index.js +10 -27
  744. package/lib/banks/components/EditBankModal/presenter.js +16 -56
  745. package/lib/banks/components/EditBankModal/styles.js +1 -4
  746. package/lib/banks/components/EditBankModal/theme.js +2 -5
  747. package/lib/banks/components/HeaderBreadCrumb/index.js +17 -47
  748. package/lib/banks/components/HeaderMenu/index.js +8 -20
  749. package/lib/banks/components/HeaderMenu/presenter.js +19 -51
  750. package/lib/banks/components/HeaderMenu/styles.js +1 -4
  751. package/lib/banks/components/HeaderMenu/theme.js +2 -5
  752. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +3 -9
  753. package/lib/banks/components/NavWrapper/index.js +4 -12
  754. package/lib/banks/components/NavWrapper/presenter.js +25 -64
  755. package/lib/banks/components/NavWrapper/styles.js +1 -5
  756. package/lib/banks/components/NavWrapper/theme.js +5 -8
  757. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +8 -37
  758. package/lib/banks/components/SharingModal/RootAccountSharing.js +19 -55
  759. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +2 -5
  760. package/lib/banks/components/SharingModal/ShareList/index.js +20 -61
  761. package/lib/banks/components/SharingModal/ShareList/styles.js +1 -4
  762. package/lib/banks/components/SharingModal/index.js +8 -22
  763. package/lib/banks/components/SharingModal/presenter.js +63 -164
  764. package/lib/banks/components/SharingModal/styles.js +1 -4
  765. package/lib/banks/components/SharingModal/theme.js +3 -6
  766. package/lib/building/api/items.js +81 -118
  767. package/lib/building/api/qtiImports.js +18 -47
  768. package/lib/building/api/quizEntries.js +64 -111
  769. package/lib/building/api/quizzes.js +50 -78
  770. package/lib/building/api/stimuli.js +9 -16
  771. package/lib/building/components/QTIImportModal/index.js +13 -28
  772. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +19 -50
  773. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +19 -46
  774. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +34 -62
  775. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -7
  776. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +1 -4
  777. package/lib/building/components/layout/Sidebar/Stimulus/index.js +17 -43
  778. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +33 -61
  779. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -7
  780. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +1 -4
  781. package/lib/building/components/layout/Sidebar/index.js +21 -44
  782. package/lib/building/components/layout/Sidebar/presenter.js +28 -74
  783. package/lib/building/components/layout/Sidebar/styles.js +2 -7
  784. package/lib/building/components/layout/Sidebar/theme.js +1 -4
  785. package/lib/building/components/layout/header/BuildingButtons/index.js +15 -34
  786. package/lib/building/components/layout/header/BuildingButtons/presenter.js +19 -86
  787. package/lib/building/components/layout/header/BuildingButtons/styles.js +2 -7
  788. package/lib/building/components/layout/header/BuildingButtons/theme.js +3 -6
  789. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +7 -16
  790. package/lib/building/components/resources/ActionButtons/index.js +7 -20
  791. package/lib/building/components/resources/ActionButtons/presenter.js +18 -55
  792. package/lib/building/components/resources/ActionButtons/styles.js +2 -9
  793. package/lib/building/components/resources/ActionButtons/theme.js +2 -5
  794. package/lib/building/components/resources/AddToBankOptions/index.js +41 -81
  795. package/lib/building/components/resources/AddToBankOptions/styles.js +1 -4
  796. package/lib/building/components/resources/AddToBankOptions/theme.js +2 -5
  797. package/lib/building/components/resources/BanksTray/index.js +5 -13
  798. package/lib/building/components/resources/BanksTray/presenter.js +19 -69
  799. package/lib/building/components/resources/DeleteStimulusModal/index.js +10 -24
  800. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +24 -79
  801. package/lib/building/components/resources/DeleteStimulusModal/styles.js +1 -4
  802. package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -5
  803. package/lib/building/components/resources/ItemFeedbackModal/index.js +12 -27
  804. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +15 -53
  805. package/lib/building/components/resources/ItemFeedbackModal/styles.js +1 -4
  806. package/lib/building/components/resources/ItemFeedbackModal/theme.js +1 -4
  807. package/lib/building/components/resources/MoveImmutableModal/index.js +14 -29
  808. package/lib/building/components/resources/MoveImmutableModal/presenter.js +12 -45
  809. package/lib/building/components/resources/quiz/editButton/EditButton.js +8 -38
  810. package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -11
  811. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +20 -45
  812. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +1 -4
  813. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +0 -1
  814. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +4 -9
  815. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -23
  816. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +31 -75
  817. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +2 -7
  818. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -3
  819. package/lib/building/components/resources/quiz/instructions/Show/index.js +17 -47
  820. package/lib/building/components/resources/quiz/instructions/Show/styles.js +11 -5
  821. package/lib/building/components/resources/quiz/instructions/Show/theme.js +2 -3
  822. package/lib/building/components/resources/quiz/title/Edit/index.js +19 -55
  823. package/lib/building/components/resources/quiz/title/Edit/styles.js +2 -7
  824. package/lib/building/components/resources/quiz/title/Edit/theme.js +4 -7
  825. package/lib/building/components/resources/quiz/title/Show/index.js +17 -47
  826. package/lib/building/components/resources/quiz/title/Show/styles.js +1 -4
  827. package/lib/building/components/resources/quiz/title/Show/theme.js +1 -4
  828. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +4 -9
  829. package/lib/building/components/resources/quiz/title/Title/index.js +11 -25
  830. package/lib/building/components/resources/quiz/title/Title/presenter.js +31 -69
  831. package/lib/building/components/resources/quiz/title/Title/styles.js +2 -8
  832. package/lib/building/components/resources/quiz/title/Title/theme.js +3 -4
  833. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +19 -44
  834. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +46 -117
  835. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +6 -23
  836. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +2 -7
  837. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +4 -7
  838. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +8 -17
  839. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +21 -77
  840. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -4
  841. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -7
  842. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +18 -47
  843. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -4
  844. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -7
  845. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +8 -18
  846. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +28 -79
  847. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -8
  848. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -7
  849. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +74 -151
  850. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -5
  851. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +3 -6
  852. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +14 -35
  853. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +106 -201
  854. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -5
  855. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -7
  856. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +10 -24
  857. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +47 -106
  858. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -8
  859. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -8
  860. package/lib/common/actions/addInteractionTypes.js +0 -2
  861. package/lib/common/actions/alerts.js +9 -18
  862. package/lib/common/actions/analyses.js +4 -11
  863. package/lib/common/actions/bankEntries.js +3 -10
  864. package/lib/common/actions/bankSearch.js +6 -19
  865. package/lib/common/actions/banks.js +8 -27
  866. package/lib/common/actions/config.js +1 -5
  867. package/lib/common/actions/dragAndDrop.js +0 -2
  868. package/lib/common/actions/editing.js +1 -5
  869. package/lib/common/actions/errorsShowing.js +1 -5
  870. package/lib/common/actions/features.js +0 -3
  871. package/lib/common/actions/grading.js +2 -6
  872. package/lib/common/actions/items.js +0 -2
  873. package/lib/common/actions/modal.js +3 -10
  874. package/lib/common/actions/moderation.js +0 -3
  875. package/lib/common/actions/modifications.js +64 -86
  876. package/lib/common/actions/outcomes.js +0 -5
  877. package/lib/common/actions/postMessage.js +0 -2
  878. package/lib/common/actions/printing.js +1 -4
  879. package/lib/common/actions/qtiImports.js +0 -3
  880. package/lib/common/actions/quizEntries.js +0 -7
  881. package/lib/common/actions/quizExport.js +2 -6
  882. package/lib/common/actions/quizSessionEvents.js +2 -6
  883. package/lib/common/actions/quizSessionResults.js +2 -6
  884. package/lib/common/actions/quizSessions.js +13 -45
  885. package/lib/common/actions/quizzes.js +8 -27
  886. package/lib/common/actions/rce.js +8 -17
  887. package/lib/common/actions/regrading.js +1 -5
  888. package/lib/common/actions/reporting.js +1 -7
  889. package/lib/common/actions/scrolling.js +1 -4
  890. package/lib/common/actions/sessionItemResults.js +2 -6
  891. package/lib/common/actions/sessionItems.js +2 -6
  892. package/lib/common/actions/sharedBanks.js +5 -15
  893. package/lib/common/actions/sidebar.js +1 -4
  894. package/lib/common/actions/stimuli.js +0 -2
  895. package/lib/common/actions/tagAssociations.js +9 -34
  896. package/lib/common/actions/taking.js +24 -60
  897. package/lib/common/actions/ui.js +11 -39
  898. package/lib/common/actions/upload.js +6 -22
  899. package/lib/common/api/callHandlers.js +38 -111
  900. package/lib/common/api/camelizeHelpers.js +6 -15
  901. package/lib/common/api/features.js +6 -15
  902. package/lib/common/api/fileUpload.js +7 -14
  903. package/lib/common/api/getPersistenceActions.js +42 -64
  904. package/lib/common/api/helpers.js +84 -127
  905. package/lib/common/api/interactionTypes.js +5 -11
  906. package/lib/common/api/quizSessions.js +42 -94
  907. package/lib/common/api/quizzes.js +11 -19
  908. package/lib/common/api/schema.js +24 -42
  909. package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -26
  910. package/lib/common/components/ConfirmationModal/index.js +5 -17
  911. package/lib/common/components/ConfirmationModal/presenter.js +17 -49
  912. package/lib/common/components/ImportModal/ImportFileSelector/index.js +27 -57
  913. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +1 -4
  914. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +3 -6
  915. package/lib/common/components/ImportModal/index.js +18 -33
  916. package/lib/common/components/ImportModal/presenter.js +23 -95
  917. package/lib/common/components/ImportModal/styles.js +1 -4
  918. package/lib/common/components/ImportModal/theme.js +1 -4
  919. package/lib/common/components/LearnosityCalculator/index.js +43 -81
  920. package/lib/common/components/Pin/Pin.examples.js +2 -3
  921. package/lib/common/components/Pin/index.js +3 -7
  922. package/lib/common/components/Pin/presenter.js +8 -35
  923. package/lib/common/components/PreviewFrame/examples.config.js +5 -10
  924. package/lib/common/components/PreviewFrame/index.js +12 -36
  925. package/lib/common/components/PrintFontSizeModal/index.js +3 -7
  926. package/lib/common/components/PrintFontSizeModal/presenter.js +27 -54
  927. package/lib/common/components/PrintFontSizeModal/styles.js +1 -4
  928. package/lib/common/components/PrintFontSizeModal/theme.js +3 -6
  929. package/lib/common/components/RceConfigProvider/index.js +6 -14
  930. package/lib/common/components/RceConfigProvider/presenter.js +96 -145
  931. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +9 -26
  932. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +8 -26
  933. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +29 -45
  934. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +6 -20
  935. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -12
  936. package/lib/common/components/SDKApp/index.js +39 -92
  937. package/lib/common/components/SDKApp/styles.js +1 -4
  938. package/lib/common/components/SDKHeaderCalculator.js +10 -20
  939. package/lib/common/components/SDKMenuButton.js +7 -16
  940. package/lib/common/components/SDKNavBar.js +8 -17
  941. package/lib/common/components/SDKTimer.js +10 -20
  942. package/lib/common/components/alerts/index.js +7 -17
  943. package/lib/common/components/alerts/presenter.js +14 -48
  944. package/lib/common/components/alerts/styles.js +2 -7
  945. package/lib/common/components/alerts/theme.js +2 -5
  946. package/lib/common/components/layout/Page/index.js +14 -33
  947. package/lib/common/components/layout/Page/styles.js +2 -8
  948. package/lib/common/components/layout/Page/theme.js +3 -6
  949. package/lib/common/components/layout/header/Calculator/index.js +9 -20
  950. package/lib/common/components/layout/header/Calculator/presenter.js +14 -43
  951. package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -22
  952. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +17 -52
  953. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +2 -7
  954. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +3 -6
  955. package/lib/common/components/layout/header/Timer/index.js +8 -22
  956. package/lib/common/components/layout/header/Timer/presenter.js +25 -75
  957. package/lib/common/components/layout/header/Timer/styles.js +1 -4
  958. package/lib/common/components/layout/header/Timer/theme.js +4 -7
  959. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -34
  960. package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -4
  961. package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -4
  962. package/lib/common/components/layout/navbar/index.js +18 -55
  963. package/lib/common/components/layout/navbar/styles.js +1 -4
  964. package/lib/common/components/layout/navbar/theme.js +2 -5
  965. package/lib/common/components/layout/sidebar/PositionSummary/index.js +13 -34
  966. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +1 -4
  967. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +4 -7
  968. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +8 -33
  969. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +9 -17
  970. package/lib/common/components/layout/sidebar/Sidebar/index.js +43 -108
  971. package/lib/common/components/layout/sidebar/Sidebar/styles.js +6 -15
  972. package/lib/common/components/layout/sidebar/Sidebar/theme.js +6 -10
  973. package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -27
  974. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +39 -72
  975. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -7
  976. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +4 -7
  977. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -13
  978. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +27 -60
  979. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +3 -9
  980. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -6
  981. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -13
  982. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +23 -59
  983. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -4
  984. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +3 -6
  985. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +14 -35
  986. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -4
  987. package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -21
  988. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +35 -76
  989. package/lib/common/components/layout/sidebar/Stimulus/styles.js +1 -4
  990. package/lib/common/components/layout/sidebar/Stimulus/theme.js +4 -7
  991. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +2 -3
  992. package/lib/common/components/resources/BankSelection/index.js +9 -21
  993. package/lib/common/components/resources/BankSelection/presenter.js +20 -70
  994. package/lib/common/components/resources/WarningWrapper/index.js +14 -42
  995. package/lib/common/components/resources/WarningWrapper/styles.js +1 -4
  996. package/lib/common/components/resources/WarningWrapper/theme.js +3 -6
  997. package/lib/common/components/resources/entry/EntrySave/index.js +13 -29
  998. package/lib/common/components/resources/entry/EntrySave/presenter.js +99 -175
  999. package/lib/common/components/resources/item/ItemEdit/index.js +21 -44
  1000. package/lib/common/components/resources/item/ItemEdit/presenter.js +22 -69
  1001. package/lib/common/components/resources/item/ItemOverride/index.js +12 -29
  1002. package/lib/common/components/resources/item/ItemOverride/presenter.js +10 -38
  1003. package/lib/common/components/resources/item/ItemShow/index.js +10 -34
  1004. package/lib/common/components/resources/positionBox/PositionBox.js +14 -35
  1005. package/lib/common/components/resources/positionBox/styles.js +2 -7
  1006. package/lib/common/components/resources/positionBox/theme.js +3 -6
  1007. package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -22
  1008. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +27 -68
  1009. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -14
  1010. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +5 -8
  1011. package/lib/common/components/resources/quiz/AddContent/Button/index.js +14 -42
  1012. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +2 -8
  1013. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +5 -8
  1014. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +10 -21
  1015. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +10 -33
  1016. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +10 -23
  1017. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +21 -59
  1018. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +1 -4
  1019. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -5
  1020. package/lib/common/components/resources/quiz/info/QuizInfo.js +10 -31
  1021. package/lib/common/components/resources/quiz/instructions/Instructions.js +19 -38
  1022. package/lib/common/components/resources/quiz/instructions/styles.js +1 -4
  1023. package/lib/common/components/resources/quiz/instructions/theme.js +2 -5
  1024. package/lib/common/components/resources/quiz/title/Title.js +18 -38
  1025. package/lib/common/components/resources/quiz/title/styles.js +1 -4
  1026. package/lib/common/components/resources/quiz/title/theme.js +2 -5
  1027. package/lib/common/components/resources/quizSessionResult/Header/index.js +14 -43
  1028. package/lib/common/components/resources/quizSessionResult/Header/styles.js +1 -4
  1029. package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -5
  1030. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +5 -11
  1031. package/lib/common/components/resources/quizSessionResult/Info/index.js +111 -151
  1032. package/lib/common/components/resources/quizSessionResult/Info/styles.js +1 -5
  1033. package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -5
  1034. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +13 -37
  1035. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -8
  1036. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +5 -8
  1037. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -17
  1038. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +68 -115
  1039. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -7
  1040. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -7
  1041. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +20 -53
  1042. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -4
  1043. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +4 -7
  1044. package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -19
  1045. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +32 -72
  1046. package/lib/common/components/resources/stimulus/Stimulus/styles.js +3 -12
  1047. package/lib/common/components/resources/stimulus/Stimulus/theme.js +4 -7
  1048. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +13 -33
  1049. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +120 -232
  1050. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -4
  1051. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +3 -6
  1052. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +7 -19
  1053. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +19 -67
  1054. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -4
  1055. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -6
  1056. package/lib/common/components/resources/stimulus/StimulusShow/index.js +22 -53
  1057. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +1 -4
  1058. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +3 -6
  1059. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +4 -8
  1060. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -30
  1061. package/lib/common/components/shared/Card/CardContent/index.js +14 -35
  1062. package/lib/common/components/shared/Card/CardContent/styles.js +2 -7
  1063. package/lib/common/components/shared/Card/CardContent/theme.js +5 -8
  1064. package/lib/common/components/shared/Card/CardWrapper/index.js +14 -35
  1065. package/lib/common/components/shared/Card/CardWrapper/styles.js +2 -7
  1066. package/lib/common/components/shared/Card/CardWrapper/theme.js +3 -6
  1067. package/lib/common/components/shared/Card/index.js +10 -20
  1068. package/lib/common/components/shared/ExpandButton/index.js +13 -35
  1069. package/lib/common/components/shared/ExpandButton/styles.js +2 -7
  1070. package/lib/common/components/shared/ExpandButton/theme.js +1 -4
  1071. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +3 -8
  1072. package/lib/common/components/shared/FormattedDuration/index.js +17 -48
  1073. package/lib/common/components/shared/IfFeature/index.js +6 -13
  1074. package/lib/common/components/shared/IfFeature/presenter.js +7 -25
  1075. package/lib/common/components/shared/InteractionTypes/index.js +4 -11
  1076. package/lib/common/components/shared/InteractionTypes/presenter.js +17 -56
  1077. package/lib/common/components/shared/InteractionTypes/styles.js +1 -4
  1078. package/lib/common/components/shared/InteractionTypes/theme.js +3 -6
  1079. package/lib/common/components/shared/PaginatedCollection/index.js +7 -16
  1080. package/lib/common/components/shared/PaginatedCollection/presenter.js +63 -97
  1081. package/lib/common/components/shared/PaginatedCollection/styles.js +1 -4
  1082. package/lib/common/components/shared/PaginatedCollection/theme.js +3 -6
  1083. package/lib/common/components/shared/Paginator/index.js +14 -38
  1084. package/lib/common/components/shared/Paginator/styles.js +1 -4
  1085. package/lib/common/components/shared/Paginator/theme.js +1 -4
  1086. package/lib/common/components/shared/PrintTrigger/index.js +11 -27
  1087. package/lib/common/components/shared/PrintTrigger/presenter.js +17 -61
  1088. package/lib/common/components/shared/TagDisplay/index.js +13 -37
  1089. package/lib/common/components/shared/TagDisplay/styles.js +1 -4
  1090. package/lib/common/components/shared/TagSelect/index.js +3 -7
  1091. package/lib/common/components/shared/TagSelect/presenter.js +20 -72
  1092. package/lib/common/components/shared/TagSuggestSelect/index.js +6 -17
  1093. package/lib/common/components/shared/TagSuggestSelect/presenter.js +17 -49
  1094. package/lib/common/components/shared/TagWrapper/index.js +3 -7
  1095. package/lib/common/components/shared/TagWrapper/presenter.js +11 -38
  1096. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +2 -3
  1097. package/lib/common/components/shared/TimeUnitsInput/index.js +36 -89
  1098. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +21 -47
  1099. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -7
  1100. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +3 -6
  1101. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +13 -30
  1102. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +30 -89
  1103. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +39 -108
  1104. package/lib/common/components/shared/errors/Errors.js +14 -42
  1105. package/lib/common/components/shared/errors/styles.js +1 -4
  1106. package/lib/common/components/shared/errors/theme.js +2 -5
  1107. package/lib/common/components/shared/file_selector/FileSelector.js +15 -39
  1108. package/lib/common/components/shared/file_selector/styles.js +1 -4
  1109. package/lib/common/components/shared/file_selector/theme.js +3 -6
  1110. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +18 -40
  1111. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +12 -32
  1112. package/lib/common/components/shared/functionality/disableDraggingOverride.js +4 -10
  1113. package/lib/common/components/shared/functionality/makeEditable.js +25 -59
  1114. package/lib/common/components/shared/functionality/makeScrollable.js +33 -74
  1115. package/lib/common/components/shared/overlay/index.js +26 -39
  1116. package/lib/common/components/shared/overlay/styles.js +2 -7
  1117. package/lib/common/components/shared/overlay/theme.js +3 -6
  1118. package/lib/common/components/shared/return_button/ReturnButton.js +11 -33
  1119. package/lib/common/components/shared/spinner/Spinner.js +20 -43
  1120. package/lib/common/components/shared/spinner/styles.js +1 -4
  1121. package/lib/common/kinesis/QuizEventsLogger.js +52 -85
  1122. package/lib/common/kinesis/StreamQueue.js +12 -33
  1123. package/lib/common/kinesis/client.js +9 -26
  1124. package/lib/common/kinesis/config.js +9 -22
  1125. package/lib/common/kinesis/eventTypes.js +10 -16
  1126. package/lib/common/middleware/alertTimerMiddleware.js +4 -11
  1127. package/lib/common/middleware/crossDomainMessagingMiddleware.js +2 -8
  1128. package/lib/common/middleware/eventLoggerMiddleware.js +6 -14
  1129. package/lib/common/middleware/persistedStorageMiddleware.js +4 -15
  1130. package/lib/common/react-redux.js +3 -7
  1131. package/lib/common/records/Alert.js +8 -20
  1132. package/lib/common/records/Bank.js +10 -30
  1133. package/lib/common/records/BankEntry.js +10 -32
  1134. package/lib/common/records/Item.js +18 -39
  1135. package/lib/common/records/ItemAnalysis.js +9 -28
  1136. package/lib/common/records/QtiImport.js +8 -25
  1137. package/lib/common/records/Quiz.js +21 -47
  1138. package/lib/common/records/QuizAnalysis.js +8 -24
  1139. package/lib/common/records/QuizEntry.js +109 -179
  1140. package/lib/common/records/QuizSession.js +24 -46
  1141. package/lib/common/records/QuizSessionEvent.js +9 -25
  1142. package/lib/common/records/QuizSessionResult.js +9 -27
  1143. package/lib/common/records/Response.js +9 -27
  1144. package/lib/common/records/SessionItem.js +13 -38
  1145. package/lib/common/records/SessionItemResult.js +9 -26
  1146. package/lib/common/records/Stimulus.js +13 -33
  1147. package/lib/common/records/baseRecord.js +11 -33
  1148. package/lib/common/records/index.js +35 -52
  1149. package/lib/common/records/reduxRecord.js +10 -21
  1150. package/lib/common/reducers/alerts.js +2 -10
  1151. package/lib/common/reducers/analyses.js +11 -35
  1152. package/lib/common/reducers/bankEntries.js +3 -15
  1153. package/lib/common/reducers/bankSearch.js +6 -17
  1154. package/lib/common/reducers/banks.js +4 -23
  1155. package/lib/common/reducers/calls.js +2 -10
  1156. package/lib/common/reducers/config.js +2 -12
  1157. package/lib/common/reducers/dragAndDrop.js +2 -9
  1158. package/lib/common/reducers/editing.js +4 -13
  1159. package/lib/common/reducers/errorsShowing.js +2 -11
  1160. package/lib/common/reducers/features.js +2 -10
  1161. package/lib/common/reducers/grading.js +2 -11
  1162. package/lib/common/reducers/interactionTypes.js +3 -13
  1163. package/lib/common/reducers/items.js +3 -14
  1164. package/lib/common/reducers/modal.js +2 -13
  1165. package/lib/common/reducers/moderation.js +2 -11
  1166. package/lib/common/reducers/modifications.js +11 -50
  1167. package/lib/common/reducers/outcomes.js +2 -13
  1168. package/lib/common/reducers/printing.js +2 -9
  1169. package/lib/common/reducers/qtiImports.js +3 -15
  1170. package/lib/common/reducers/quizEntries.js +31 -50
  1171. package/lib/common/reducers/quizExport.js +2 -9
  1172. package/lib/common/reducers/quizSessionEvents.js +4 -12
  1173. package/lib/common/reducers/quizSessionResults.js +3 -13
  1174. package/lib/common/reducers/quizSessions.js +5 -22
  1175. package/lib/common/reducers/quizzes.js +3 -25
  1176. package/lib/common/reducers/rce.js +2 -12
  1177. package/lib/common/reducers/regrading.js +2 -12
  1178. package/lib/common/reducers/reporting.js +3 -22
  1179. package/lib/common/reducers/scrolling.js +2 -10
  1180. package/lib/common/reducers/sessionItemResults.js +3 -13
  1181. package/lib/common/reducers/sessionItems.js +3 -14
  1182. package/lib/common/reducers/sharedBanks.js +4 -17
  1183. package/lib/common/reducers/sidebar.js +2 -10
  1184. package/lib/common/reducers/stimuli.js +3 -14
  1185. package/lib/common/reducers/tagAssociations.js +2 -35
  1186. package/lib/common/reducers/taking.js +7 -39
  1187. package/lib/common/reducers/ui.js +2 -18
  1188. package/lib/common/reducers/upload.js +2 -14
  1189. package/lib/common/selectors/analyses.js +8 -28
  1190. package/lib/common/selectors/calculator.js +8 -15
  1191. package/lib/common/selectors/calls.js +0 -3
  1192. package/lib/common/selectors/config.js +1 -5
  1193. package/lib/common/selectors/interactionTypes.js +12 -22
  1194. package/lib/common/selectors/items.js +2 -9
  1195. package/lib/common/selectors/qtiImports.js +6 -14
  1196. package/lib/common/selectors/quizSessionResults.js +3 -8
  1197. package/lib/common/selectors/quizSessions.js +13 -30
  1198. package/lib/common/selectors/quizzes.js +23 -70
  1199. package/lib/common/selectors/rce.js +4 -10
  1200. package/lib/common/selectors/reporting.js +4 -11
  1201. package/lib/common/selectors/sessionItemResults.js +8 -17
  1202. package/lib/common/selectors/sessionItems.js +8 -18
  1203. package/lib/common/selectors/taking.js +10 -29
  1204. package/lib/common/selectors/ui.js +2 -5
  1205. package/lib/common/util/CustomPropTypes.js +3 -23
  1206. package/lib/common/util/ElementsForSelectors.js +3 -8
  1207. package/lib/common/util/ExhaustivePaginatedFetcher.js +55 -85
  1208. package/lib/common/util/Fetcher.js +157 -245
  1209. package/lib/common/util/MultiWeakMap.js +4 -27
  1210. package/lib/common/util/PaginatedFetcher.js +24 -57
  1211. package/lib/common/util/ThunkQueue.js +53 -87
  1212. package/lib/common/util/TimeRecordingService.js +4 -23
  1213. package/lib/common/util/TimerService.js +9 -58
  1214. package/lib/common/util/cachePreviousArgs.js +3 -11
  1215. package/lib/common/util/callHelpers.js +6 -20
  1216. package/lib/common/util/componentForItem.js +4 -16
  1217. package/lib/common/util/crossDomainMessaging.js +0 -2
  1218. package/lib/common/util/debounceLatestPromise.js +3 -10
  1219. package/lib/common/util/featureCheck.js +6 -16
  1220. package/lib/common/util/fetchHelpers.js +0 -1
  1221. package/lib/common/util/fitbCopyHelper.js +1 -4
  1222. package/lib/common/util/formatTimespan.js +3 -22
  1223. package/lib/common/util/generateDisplayPositions.js +4 -10
  1224. package/lib/common/util/httpHeaders.js +5 -12
  1225. package/lib/common/util/immutableHelpers.js +10 -19
  1226. package/lib/common/util/instUIMessages.js +2 -5
  1227. package/lib/common/util/interactionTypeMetadata.js +8 -16
  1228. package/lib/common/util/interactionTypePropsHelper.js +4 -20
  1229. package/lib/common/util/interactionTypeRecordForItem.js +3 -13
  1230. package/lib/common/util/jsonify.js +5 -10
  1231. package/lib/common/util/keyboardClickable.js +1 -4
  1232. package/lib/common/util/mathRenderingUtils.js +2 -6
  1233. package/lib/common/util/maxContent.js +3 -10
  1234. package/lib/common/util/modalHelpers.js +0 -2
  1235. package/lib/common/util/noop.js +2 -5
  1236. package/lib/common/util/persistedState.js +6 -20
  1237. package/lib/common/util/printUtils.js +4 -13
  1238. package/lib/common/util/rceChecker.js +14 -26
  1239. package/lib/common/util/renderAlerts.js +13 -25
  1240. package/lib/common/util/serializeEvent.js +4 -13
  1241. package/lib/common/util/sessionStore.js +8 -20
  1242. package/lib/common/util/valMap.js +3 -8
  1243. package/lib/common/util/warningHelpers.js +10 -44
  1244. package/lib/common/util/windowChecks.js +7 -22
  1245. package/lib/common/util/withCachedArguments.js +4 -14
  1246. package/lib/common/util/withDynamoPagination.js +63 -97
  1247. package/lib/common/util/withStateCache.js +3 -19
  1248. package/lib/config.js +6 -17
  1249. package/lib/configureStore.js +53 -104
  1250. package/lib/grading/api/quizEntryRegrades.js +7 -13
  1251. package/lib/grading/api/updateResults.js +7 -20
  1252. package/lib/index.js +526 -648
  1253. package/lib/messages/LocalStorageAdapter.js +6 -21
  1254. package/lib/messages/LocalStorageLimits.js +7 -30
  1255. package/lib/messages/StorageExhaustionError.js +8 -20
  1256. package/lib/messages/postMessageService.js +6 -35
  1257. package/lib/messages/subjectHandlers/forwardMessage.js +1 -4
  1258. package/lib/messages/subjectHandlers/lti.capabilities.js +1 -4
  1259. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +1 -4
  1260. package/lib/messages/subjectHandlers/lti.frameResize.js +2 -7
  1261. package/lib/messages/subjectHandlers/lti.get_data.js +4 -12
  1262. package/lib/messages/subjectHandlers/lti.put_data.js +7 -19
  1263. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +4 -13
  1264. package/lib/messages/utils.js +0 -1
  1265. package/lib/moderating/api/quizSessionEvents.js +4 -10
  1266. package/lib/moderating/api/quizSessions.js +4 -12
  1267. package/lib/moderating/components/events/Event.js +15 -44
  1268. package/lib/moderating/components/events/RCEEvent.js +8 -27
  1269. package/lib/moderating/components/events/ResponseEvent.js +18 -49
  1270. package/lib/moderating/components/events/SessionStartEvent.js +8 -32
  1271. package/lib/moderating/components/events/styles.js +1 -4
  1272. package/lib/moderating/components/events/theme.js +2 -5
  1273. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +2 -3
  1274. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +15 -44
  1275. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +2 -3
  1276. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +10 -47
  1277. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +8 -45
  1278. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +2 -3
  1279. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +14 -54
  1280. package/lib/moderating/components/resources/AccommodationsModal/index.js +15 -55
  1281. package/lib/moderating/components/resources/ElapsedTime.js +13 -32
  1282. package/lib/moderating/components/resources/ModerateTable/index.js +12 -26
  1283. package/lib/moderating/components/resources/ModerateTable/presenter.js +52 -128
  1284. package/lib/moderating/components/resources/ModerateTable/styles.js +2 -7
  1285. package/lib/moderating/components/resources/ModerateTable/theme.js +2 -5
  1286. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +5 -13
  1287. package/lib/moderating/components/resources/ModerateTableRow/index.js +8 -15
  1288. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +34 -95
  1289. package/lib/moderating/components/resources/ModerateTableRow/story.js +4 -10
  1290. package/lib/moderating/components/resources/ModerateTableRow/styles.js +1 -4
  1291. package/lib/moderating/components/resources/ModerateTableRow/theme.js +1 -4
  1292. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +2 -3
  1293. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +8 -20
  1294. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +9 -54
  1295. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +2 -3
  1296. package/lib/moderating/components/sidebar/ModerateTray/index.js +7 -15
  1297. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +8 -47
  1298. package/lib/moderating/components/sidebar/ResetQuiz/index.js +11 -25
  1299. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +21 -58
  1300. package/lib/reduxStore.js +9 -21
  1301. package/lib/reporting/api/getAnalysesExport.js +23 -40
  1302. package/lib/reporting/api/getAnalysesStatus.js +20 -33
  1303. package/lib/reporting/api/getItemAnalyses.js +20 -33
  1304. package/lib/reporting/api/getQuizAnalysis.js +20 -33
  1305. package/lib/reporting/api/itemAnalyses.js +5 -11
  1306. package/lib/reporting/api/quizAnalyses.js +5 -11
  1307. package/lib/reporting/components/Caption/index.js +14 -34
  1308. package/lib/reporting/components/Caption/styles.js +1 -4
  1309. package/lib/reporting/components/Caption/theme.js +3 -6
  1310. package/lib/reporting/components/MetricsListItem/index.js +16 -38
  1311. package/lib/reporting/components/MetricsListItem/styles.js +1 -4
  1312. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +2 -3
  1313. package/lib/reporting/components/charts/CentileDistribution/index.js +2 -6
  1314. package/lib/reporting/components/charts/CentileDistribution/presenter.js +21 -60
  1315. package/lib/reporting/components/charts/CentileDistribution/styles.js +2 -7
  1316. package/lib/reporting/components/charts/CentileDistribution/theme.js +3 -6
  1317. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -6
  1318. package/lib/reporting/components/charts/Distribution/Distribution.js +2 -6
  1319. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -6
  1320. package/lib/reporting/components/charts/Distribution/index.js +2 -6
  1321. package/lib/reporting/components/charts/Distribution/presenter.js +23 -76
  1322. package/lib/reporting/components/charts/Distribution/styles.js +1 -4
  1323. package/lib/reporting/components/charts/Distribution/theme.js +2 -5
  1324. package/lib/reporting/components/charts/Legend/index.js +17 -39
  1325. package/lib/reporting/components/charts/Legend/styles.js +2 -7
  1326. package/lib/reporting/components/charts/Legend/theme.js +4 -7
  1327. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +2 -3
  1328. package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -6
  1329. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +19 -57
  1330. package/lib/reporting/components/charts/QuintileDistribution/styles.js +1 -4
  1331. package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -5
  1332. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +4 -9
  1333. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +14 -53
  1334. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -20
  1335. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +6 -9
  1336. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +4 -9
  1337. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +7 -18
  1338. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +45 -95
  1339. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +2 -8
  1340. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -7
  1341. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +35 -74
  1342. package/lib/reporting/components/quizAnalysis/styles.js +5 -12
  1343. package/lib/reporting/components/quizAnalysis/theme.js +4 -7
  1344. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -5
  1345. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +17 -36
  1346. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -4
  1347. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -5
  1348. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +18 -38
  1349. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -7
  1350. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +12 -33
  1351. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -2
  1352. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +15 -37
  1353. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -2
  1354. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +18 -41
  1355. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -2
  1356. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +13 -49
  1357. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -7
  1358. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -4
  1359. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -2
  1360. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +21 -51
  1361. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -4
  1362. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -4
  1363. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +18 -47
  1364. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +18 -42
  1365. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -2
  1366. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +29 -72
  1367. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -7
  1368. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -4
  1369. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +18 -47
  1370. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -12
  1371. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +5 -15
  1372. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -2
  1373. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +16 -41
  1374. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -2
  1375. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +34 -89
  1376. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -4
  1377. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -4
  1378. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -2
  1379. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +25 -61
  1380. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -4
  1381. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -4
  1382. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -2
  1383. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +20 -45
  1384. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +19 -48
  1385. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -4
  1386. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -5
  1387. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +19 -44
  1388. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -2
  1389. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +37 -80
  1390. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -2
  1391. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +17 -41
  1392. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -7
  1393. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -4
  1394. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -2
  1395. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +3 -7
  1396. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +15 -39
  1397. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -4
  1398. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -2
  1399. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +20 -71
  1400. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -4
  1401. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -4
  1402. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -2
  1403. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +21 -82
  1404. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -7
  1405. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -5
  1406. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -2
  1407. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +19 -45
  1408. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -4
  1409. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -4
  1410. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +6 -20
  1411. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -5
  1412. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +16 -49
  1413. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -4
  1414. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -4
  1415. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -2
  1416. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +12 -30
  1417. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -4
  1418. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -4
  1419. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +4 -10
  1420. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +5 -11
  1421. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +36 -91
  1422. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -7
  1423. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -7
  1424. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -5
  1425. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +5 -10
  1426. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +33 -73
  1427. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -4
  1428. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -4
  1429. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -11
  1430. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +39 -85
  1431. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -8
  1432. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -5
  1433. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +2 -5
  1434. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +19 -51
  1435. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -4
  1436. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +3 -6
  1437. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +10 -30
  1438. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +11 -37
  1439. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
  1440. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +43 -64
  1441. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +44 -61
  1442. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +30 -45
  1443. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +68 -100
  1444. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -11
  1445. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +48 -111
  1446. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +18 -71
  1447. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -4
  1448. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -4
  1449. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +5 -17
  1450. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +15 -32
  1451. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +108 -154
  1452. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -13
  1453. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +16 -44
  1454. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -19
  1455. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -22
  1456. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +45 -92
  1457. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -4
  1458. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -6
  1459. package/lib/reporting/components/resources/ReportCard/index.js +19 -43
  1460. package/lib/reporting/components/resources/ReportCard/styles.js +2 -7
  1461. package/lib/reporting/components/resources/ReportCard/theme.js +2 -5
  1462. package/lib/reporting/components/resources/ReportList/index.js +17 -38
  1463. package/lib/reporting/components/resources/ReportList/styles.js +1 -4
  1464. package/lib/reporting/components/resources/ReportList/theme.js +1 -4
  1465. package/lib/taking/api/taking.js +56 -104
  1466. package/lib/taking/learnosity/index.js +44 -77
  1467. package/package.json +9 -11
@@ -1,52 +1,35 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.setEventToQuizLog = exports.handleError = void 0;
9
-
10
- var _reduxStore = _interopRequireDefault(require("../../../reduxStore.js"));
11
-
12
- var _alerts = require("../../actions/alerts.js");
13
-
14
- var _rce = require("../../actions/rce.js");
15
-
16
- var _windowChecks = require("../../util/windowChecks.js");
17
-
18
- var _rceConfigErrorMessages = require("./rceConfigErrorMessages.js");
19
-
8
+ var _reduxStore = _interopRequireDefault(require("../../../reduxStore"));
9
+ var _alerts = require("../../actions/alerts");
10
+ var _rce = require("../../actions/rce");
11
+ var _windowChecks = require("../../util/windowChecks");
12
+ var _rceConfigErrorMessages = require("./rceConfigErrorMessages");
20
13
  var alertTheUser = function alertTheUser(message) {
21
14
  _reduxStore.default.dispatch((0, _alerts.addStickyError)(message));
22
15
  };
23
-
24
16
  var getAlertMessage = function getAlertMessage() {
25
17
  return (0, _windowChecks.isQuizTaking)() ? (0, _rceConfigErrorMessages.userAlertMsgTaking)() : (0, _rceConfigErrorMessages.userAlertMsgBuilding)();
26
18
  };
27
-
28
19
  var shouldAlertUser = function shouldAlertUser() {
29
20
  return (0, _windowChecks.isQuizTaking)() || (0, _windowChecks.isQuizBuilding)();
30
21
  };
31
-
32
22
  var shouldSetEventToQuizLog = function shouldSetEventToQuizLog() {
33
23
  return (0, _windowChecks.isQuizTaking)();
34
24
  };
35
-
36
- var handleError = function handleError(quizLogMessage) {
25
+ var handleError = exports.handleError = function handleError(quizLogMessage) {
37
26
  if (shouldAlertUser()) {
38
27
  alertTheUser(getAlertMessage());
39
28
  }
40
-
41
29
  if (shouldSetEventToQuizLog()) {
42
30
  setEventToQuizLog(quizLogMessage);
43
31
  }
44
32
  };
45
-
46
- exports.handleError = handleError;
47
-
48
- var setEventToQuizLog = function setEventToQuizLog(message) {
33
+ var setEventToQuizLog = exports.setEventToQuizLog = function setEventToQuizLog(message) {
49
34
  _reduxStore.default.dispatch((0, _rce.setRCEError)(message));
50
- };
51
-
52
- exports.setEventToQuizLog = setEventToQuizLog;
35
+ };
@@ -1,46 +1,28 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.userAlertMsgBuilding = exports.userAlertMsgTaking = exports.quizLogMsgFailedConfigFetch = exports.quizLogMsgInvalidParams = exports.quizLogMsgErrorDuringTaking = void 0;
9
-
7
+ exports.userAlertMsgTaking = exports.userAlertMsgBuilding = exports.quizLogMsgInvalidParams = exports.quizLogMsgFailedConfigFetch = exports.quizLogMsgErrorDuringTaking = void 0;
10
8
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
11
-
12
9
  var _quizInteractions = require("@instructure/quiz-interactions");
13
-
14
- var quizLogMsgErrorDuringTaking = function quizLogMsgErrorDuringTaking(stem) {
10
+ var quizLogMsgErrorDuringTaking = exports.quizLogMsgErrorDuringTaking = function quizLogMsgErrorDuringTaking(stem) {
15
11
  var normalizedStem = stem !== null && stem !== void 0 ? stem : 'Unknown stem';
16
12
  var extractedText = (0, _quizInteractions.extractTextFromHtml)(normalizedStem);
17
13
  return (0, _formatMessage.default)('Error while answering "{stem}": Full functionality of the Rich Content Editor may not have been available to the user.', {
18
14
  stem: extractedText
19
15
  });
20
16
  };
21
-
22
- exports.quizLogMsgErrorDuringTaking = quizLogMsgErrorDuringTaking;
23
-
24
- var quizLogMsgInvalidParams = function quizLogMsgInvalidParams() {
17
+ var quizLogMsgInvalidParams = exports.quizLogMsgInvalidParams = function quizLogMsgInvalidParams() {
25
18
  return (0, _formatMessage.default)('Error: Full functionality of the Rich Content Editor may not have been available to the user.');
26
19
  };
27
-
28
- exports.quizLogMsgInvalidParams = quizLogMsgInvalidParams;
29
-
30
- var quizLogMsgFailedConfigFetch = function quizLogMsgFailedConfigFetch() {
20
+ var quizLogMsgFailedConfigFetch = exports.quizLogMsgFailedConfigFetch = function quizLogMsgFailedConfigFetch() {
31
21
  return (0, _formatMessage.default)('Error: Full functionality of the Rich Content Editor including accessibility features may not have been available to the user.');
32
22
  };
33
-
34
- exports.quizLogMsgFailedConfigFetch = quizLogMsgFailedConfigFetch;
35
-
36
- var userAlertMsgTaking = function userAlertMsgTaking() {
23
+ var userAlertMsgTaking = exports.userAlertMsgTaking = function userAlertMsgTaking() {
37
24
  return (0, _formatMessage.default)('The Rich Content Editor has encountered an issue. It has been logged for your instructor to review. Please refresh and try again.');
38
25
  };
39
-
40
- exports.userAlertMsgTaking = userAlertMsgTaking;
41
-
42
- var userAlertMsgBuilding = function userAlertMsgBuilding() {
26
+ var userAlertMsgBuilding = exports.userAlertMsgBuilding = function userAlertMsgBuilding() {
43
27
  return (0, _formatMessage.default)('The Rich Content Editor has encountered an issue. Please refresh and try again.');
44
- };
45
-
46
- exports.userAlertMsgBuilding = userAlertMsgBuilding;
28
+ };
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.fetchRceConfig = void 0;
9
-
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
-
8
+ var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
12
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
-
14
10
  var buildRceConfigUrl = function buildRceConfigUrl(host, contextType, contextId) {
15
11
  var base = host.match(/^https?:\/\//) ? host : "".concat(window.location.protocol, "//").concat(host);
16
12
  var url = new URL('/api/rceConfig', base);
@@ -18,50 +14,38 @@ var buildRceConfigUrl = function buildRceConfigUrl(host, contextType, contextId)
18
14
  contextId && url.searchParams.append('contextId', contextId);
19
15
  return url;
20
16
  };
21
-
22
- var fetchRceConfig = /*#__PURE__*/function () {
23
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(rcsHost, contextType, contextId, jwt) {
17
+ var fetchRceConfig = exports.fetchRceConfig = /*#__PURE__*/function () {
18
+ var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(rcsHost, contextType, contextId, jwt) {
24
19
  var rceConfigUrl, response;
25
- return _regenerator.default.wrap(function _callee$(_context) {
26
- while (1) {
27
- switch (_context.prev = _context.next) {
28
- case 0:
29
- rceConfigUrl = buildRceConfigUrl(rcsHost, contextType, contextId);
30
- _context.next = 3;
31
- return fetch(rceConfigUrl.href, {
32
- headers: {
33
- 'Authorization': "Bearer ".concat(jwt)
34
- }
35
- });
36
-
37
- case 3:
38
- response = _context.sent;
39
-
40
- if (response.ok) {
41
- _context.next = 6;
42
- break;
20
+ return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
21
+ while (1) switch (_context.prev = _context.next) {
22
+ case 0:
23
+ rceConfigUrl = buildRceConfigUrl(rcsHost, contextType, contextId);
24
+ _context.next = 3;
25
+ return fetch(rceConfigUrl.href, {
26
+ headers: {
27
+ 'Authorization': "Bearer ".concat(jwt)
43
28
  }
44
-
45
- throw "Failed to fetch, response status: ".concat(response.status);
46
-
47
- case 6:
48
- _context.next = 8;
49
- return response.json();
50
-
51
- case 8:
52
- return _context.abrupt("return", _context.sent);
53
-
54
- case 9:
55
- case "end":
56
- return _context.stop();
57
- }
29
+ });
30
+ case 3:
31
+ response = _context.sent;
32
+ if (response.ok) {
33
+ _context.next = 6;
34
+ break;
35
+ }
36
+ throw "Failed to fetch, response status: ".concat(response.status);
37
+ case 6:
38
+ _context.next = 8;
39
+ return response.json();
40
+ case 8:
41
+ return _context.abrupt("return", _context.sent);
42
+ case 9:
43
+ case "end":
44
+ return _context.stop();
58
45
  }
59
46
  }, _callee);
60
47
  }));
61
-
62
48
  return function fetchRceConfig(_x, _x2, _x3, _x4) {
63
49
  return _ref.apply(this, arguments);
64
50
  };
65
- }();
66
-
67
- exports.fetchRceConfig = fetchRceConfig;
51
+ }();
@@ -1,45 +1,31 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.mapParamsToRceConfigContext = void 0;
9
-
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
9
  var _quizCommon = require("@instructure/quiz-common");
13
-
14
- var _rceConfigUtils = require("./rceConfigUtils.js");
15
-
10
+ var _rceConfigUtils = require("./rceConfigUtils");
16
11
  var mapRcs = function mapRcs(rcsParams, canvasConfig) {
17
12
  if (rcsParams && (0, _rceConfigUtils.hasAllPropsForRcs)(rcsParams) && canvasConfig) {
18
- var _ref;
19
-
20
- return _ref = {}, (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.canvasUserId, rcsParams.canvasUserId), (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.contextId, rcsParams.contextId), (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.contextType, rcsParams.contextType), (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.rcsHost, rcsParams.rcsHost), (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.rcsJwt, rcsParams.jwt), (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.rcsJwtRefreshFn, rcsParams.refreshToken), (0, _defineProperty2.default)(_ref, _quizCommon.RceConfigKeys.canvasConfig, canvasConfig), _ref;
13
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _quizCommon.RceConfigKeys.canvasUserId, rcsParams.canvasUserId), _quizCommon.RceConfigKeys.contextId, rcsParams.contextId), _quizCommon.RceConfigKeys.contextType, rcsParams.contextType), _quizCommon.RceConfigKeys.rcsHost, rcsParams.rcsHost), _quizCommon.RceConfigKeys.rcsJwt, rcsParams.jwt), _quizCommon.RceConfigKeys.rcsJwtRefreshFn, rcsParams.refreshToken), _quizCommon.RceConfigKeys.canvasConfig, canvasConfig);
21
14
  } else {
22
15
  return null;
23
16
  }
24
17
  };
25
-
26
18
  var mapLtiApps = function mapLtiApps(canvasConfig, ltiAppParams) {
27
- var _ref2;
28
-
29
19
  if (!(0, _rceConfigUtils.areLtiAppsConfigured)(canvasConfig, ltiAppParams)) return null;
30
- return _ref2 = {}, (0, _defineProperty2.default)(_ref2, _quizCommon.RceConfigKeys.canvasToolId, ltiAppParams.canvasToolId), (0, _defineProperty2.default)(_ref2, _quizCommon.RceConfigKeys.ltiIframeAllowances, canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES), (0, _defineProperty2.default)(_ref2, _quizCommon.RceConfigKeys.editorButtons, canvasConfig.editorButtons), _ref2;
20
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _quizCommon.RceConfigKeys.canvasToolId, ltiAppParams.canvasToolId), _quizCommon.RceConfigKeys.ltiIframeAllowances, canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES), _quizCommon.RceConfigKeys.editorButtons, canvasConfig.editorButtons);
31
21
  };
32
-
33
22
  var rendererEnhancement = function rendererEnhancement(rendererParams) {
34
23
  return (0, _defineProperty2.default)({}, _quizCommon.RceConfigKeys.canvasOrigin, (rendererParams === null || rendererParams === void 0 ? void 0 : rendererParams.canvasOrigin) || null);
35
24
  };
36
-
37
- var mapParamsToRceConfigContext = function mapParamsToRceConfigContext(rcsParams, rendererParams, canvasConfig, ltiAppParams) {
25
+ var mapParamsToRceConfigContext = exports.mapParamsToRceConfigContext = function mapParamsToRceConfigContext(rcsParams, rendererParams, canvasConfig, ltiAppParams) {
38
26
  return {
39
27
  rcs: mapRcs(rcsParams, canvasConfig),
40
28
  rendererEnhancement: rendererEnhancement(rendererParams),
41
29
  ltiApps: mapLtiApps(canvasConfig, ltiAppParams)
42
30
  };
43
- };
44
-
45
- exports.mapParamsToRceConfigContext = mapParamsToRceConfigContext;
31
+ };
@@ -3,16 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.areLtiAppsConfigured = exports.hasAllPropsForRcs = void 0;
7
-
8
- var hasAllPropsForRcs = function hasAllPropsForRcs(rcsParams) {
9
- return !!((rcsParams === null || rcsParams === void 0 ? void 0 : rcsParams.contextId) && (rcsParams === null || rcsParams === void 0 ? void 0 : rcsParams.contextType) && (rcsParams === null || rcsParams === void 0 ? void 0 : rcsParams.canvasUserId) && (rcsParams === null || rcsParams === void 0 ? void 0 : rcsParams.rcsHost) && (rcsParams === null || rcsParams === void 0 ? void 0 : rcsParams.refreshToken) && (rcsParams === null || rcsParams === void 0 ? void 0 : rcsParams.jwt));
6
+ exports.hasAllPropsForRcs = exports.areLtiAppsConfigured = void 0;
7
+ var hasAllPropsForRcs = exports.hasAllPropsForRcs = function hasAllPropsForRcs(rcsParams) {
8
+ return !!(rcsParams !== null && rcsParams !== void 0 && rcsParams.contextId && rcsParams !== null && rcsParams !== void 0 && rcsParams.contextType && rcsParams !== null && rcsParams !== void 0 && rcsParams.canvasUserId && rcsParams !== null && rcsParams !== void 0 && rcsParams.rcsHost && rcsParams !== null && rcsParams !== void 0 && rcsParams.refreshToken && rcsParams !== null && rcsParams !== void 0 && rcsParams.jwt);
10
9
  };
11
-
12
- exports.hasAllPropsForRcs = hasAllPropsForRcs;
13
-
14
- var areLtiAppsConfigured = function areLtiAppsConfigured(canvasConfig, ltiAppParams) {
15
- return !!((ltiAppParams === null || ltiAppParams === void 0 ? void 0 : ltiAppParams.canvasToolId) && (canvasConfig === null || canvasConfig === void 0 ? void 0 : canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES) && Array.isArray(canvasConfig === null || canvasConfig === void 0 ? void 0 : canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES) && canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES.length > 0 && (canvasConfig === null || canvasConfig === void 0 ? void 0 : canvasConfig.editorButtons) && Array.isArray(canvasConfig.editorButtons) && canvasConfig.editorButtons.length > 0);
16
- };
17
-
18
- exports.areLtiAppsConfigured = areLtiAppsConfigured;
10
+ var areLtiAppsConfigured = exports.areLtiAppsConfigured = function areLtiAppsConfigured(canvasConfig, ltiAppParams) {
11
+ return !!(ltiAppParams !== null && ltiAppParams !== void 0 && ltiAppParams.canvasToolId && canvasConfig !== null && canvasConfig !== void 0 && canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES && Array.isArray(canvasConfig === null || canvasConfig === void 0 ? void 0 : canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES) && canvasConfig.LTI_LAUNCH_FRAME_ALLOWANCES.length > 0 && canvasConfig !== null && canvasConfig !== void 0 && canvasConfig.editorButtons && Array.isArray(canvasConfig.editorButtons) && canvasConfig.editorButtons.length > 0);
12
+ };
@@ -1,97 +1,63 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.default = exports.DragDroppableSDKApp = exports.SDKApp = void 0;
9
-
7
+ exports.default = exports.SDKApp = exports.DragDroppableSDKApp = void 0;
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
10
+ var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
14
11
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
-
16
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
17
-
18
12
  var _react = require("react");
19
-
20
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
21
-
22
14
  var _reactDndHtml5Backend = _interopRequireDefault(require("react-dnd-html5-backend"));
23
-
24
15
  var _reactDnd = require("react-dnd");
25
-
26
16
  var _emotion = require("@instructure/emotion");
27
-
28
17
  var _uiI18n = require("@instructure/ui-i18n");
29
-
30
- var _reactRedux = require("../../react-redux.js");
31
-
32
- var _reduxStore = _interopRequireDefault(require("../../../reduxStore.js"));
33
-
18
+ var _reactRedux = require("../../react-redux");
19
+ var _reduxStore = _interopRequireDefault(require("../../../reduxStore"));
34
20
  var _quizCommon = require("@instructure/quiz-common");
35
-
36
- var _ui = require("../../actions/ui.js");
37
-
38
- var _alerts = require("../../actions/alerts.js");
39
-
40
- var _config = require("../../actions/config.js");
41
-
42
- var _outcomes = require("../../actions/outcomes.js");
43
-
44
- var _features = require("../../actions/features.js");
45
-
46
- var _grading = require("../../actions/grading.js");
47
-
48
- var _renderAlerts = require("../../util/renderAlerts.js");
49
-
50
- var _styles = _interopRequireDefault(require("./styles.js"));
51
-
52
- var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes.js"));
53
-
54
- var _index = _interopRequireDefault(require("../ConfirmationModal/index.js"));
55
-
21
+ var _ui = require("../../actions/ui");
22
+ var _alerts = require("../../actions/alerts");
23
+ var _config = require("../../actions/config");
24
+ var _outcomes = require("../../actions/outcomes");
25
+ var _features = require("../../actions/features");
26
+ var _grading = require("../../actions/grading");
27
+ var _renderAlerts = require("../../util/renderAlerts");
28
+ var _styles = _interopRequireDefault(require("./styles"));
29
+ var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes"));
30
+ var _ConfirmationModal2 = _interopRequireDefault(require("../ConfirmationModal"));
56
31
  var _setupFormatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/util/setupFormatMessage"));
57
-
58
- var _index2 = _interopRequireDefault(require("../RceConfigProvider/index.js"));
59
-
60
- var _index3 = require("../ApiFeatureFlagInitializer/index.js");
61
-
62
- var _dec, _class, _class2, _temp;
63
-
64
- var _ref = (0, _emotion.jsx)(_index.default, null);
65
-
66
- var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
67
- (0, _inherits2.default)(SDKApp, _Component);
68
-
69
- var _super = (0, _createSuper2.default)(SDKApp);
70
-
32
+ var _RceConfigProvider = _interopRequireDefault(require("../RceConfigProvider"));
33
+ var _ApiFeatureFlagInitializer = require("../ApiFeatureFlagInitializer");
34
+ var _dec, _class, _SDKApp, _ConfirmationModal;
35
+ /** @jsx jsx */
36
+ /* eslint "import/no-webpack-loader-syntax": "warn" */
37
+ /* eslint "import/no-unresolved": "warn" */
38
+ var SDKApp = exports.SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_SDKApp = /*#__PURE__*/function (_Component) {
71
39
  function SDKApp(props) {
72
40
  var _this;
73
-
74
41
  (0, _classCallCheck2.default)(this, SDKApp);
75
- _this = _super.call(this, props); // TODO: move to something like this down the line
42
+ _this = (0, _callSuper2.default)(this, SDKApp, [props]);
43
+
44
+ // TODO: move to something like this down the line
76
45
  // so we dont implicitly share state
77
46
  // this.store = this.configureStore()
78
-
79
47
  _this.addAlert = function (opts) {
80
48
  _this.store.dispatch((0, _alerts.addAlert)(opts));
81
49
  };
82
-
83
50
  _this.store = _reduxStore.default;
84
-
85
51
  _this.setLocale();
86
-
87
52
  return _this;
88
53
  }
89
-
90
- (0, _createClass2.default)(SDKApp, [{
54
+ (0, _inherits2.default)(SDKApp, _Component);
55
+ return (0, _createClass2.default)(SDKApp, [{
91
56
  key: "setLocale",
92
57
  value: function setLocale() {
93
- var locale = (0, _quizCommon.getLocale)(this.props, this.context); // TODO: Move away from using built-in format-message formats so we can kill this setup call
58
+ var locale = (0, _quizCommon.getLocale)(this.props, this.context);
94
59
 
60
+ // TODO: Move away from using built-in format-message formats so we can kill this setup call
95
61
  (0, _setupFormatMessage.default)(locale, {
96
62
  logMissingTranslations: true,
97
63
  translations: this.props.translations
@@ -107,13 +73,10 @@ var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class
107
73
  key: "componentWillMount",
108
74
  value: function componentWillMount() {
109
75
  var _this$props$rceConfig;
110
-
111
76
  this.store.dispatch([(0, _config.setAPIEndpoint)(this.props.apiEndpoint), (0, _config.setCanvasOrigin)((_this$props$rceConfig = this.props.rceConfig) === null || _this$props$rceConfig === void 0 ? void 0 : _this$props$rceConfig.canvasOrigin), this.setAppContainer(this.props.appContainer), (0, _config.setUserToken)(this.props.userToken), (0, _outcomes.setOutcomesEndpoint)(this.props.outcomesEndpoint), (0, _outcomes.setOutcomesToken)(this.props.outcomesToken), (0, _outcomes.setContextUuid)(this.props.contextUuid), (0, _outcomes.setExternalAccountUuid)(this.props.externalAccountUuid)]);
112
-
113
77
  if (this.props.itemBankSharingEnabled) {
114
78
  this.store.dispatch((0, _features.addFeatures)('item_bank_sharing'));
115
79
  }
116
-
117
80
  if (this.props.gradeByQuestionEnabled !== null) {
118
81
  this.store.dispatch((0, _grading.setGradeByQuestionEnabled)(this.props.gradeByQuestionEnabled));
119
82
  }
@@ -129,44 +92,34 @@ var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class
129
92
  key: "componentWillReceiveProps",
130
93
  value: function componentWillReceiveProps(newProps) {
131
94
  var _newProps$rceConfig, _this$props$rceConfig2;
132
-
133
95
  if (newProps.apiEndpoint !== this.props.apiEndpoint) {
134
96
  this.store.dispatch((0, _config.setAPIEndpoint)(newProps.apiEndpoint));
135
97
  }
136
-
137
98
  if (((_newProps$rceConfig = newProps.rceConfig) === null || _newProps$rceConfig === void 0 ? void 0 : _newProps$rceConfig.canvasOrigin) !== ((_this$props$rceConfig2 = this.props.rceConfig) === null || _this$props$rceConfig2 === void 0 ? void 0 : _this$props$rceConfig2.canvasOrigin)) {
138
99
  this.store.dispatch((0, _config.setCanvasOrigin)(newProps.rceConfig.canvasOrigin));
139
100
  }
140
-
141
101
  if (newProps.appContainer !== this.props.appContainer) {
142
102
  this.store.dispatch(this.setAppContainer(newProps.appContainer));
143
103
  }
144
-
145
104
  if (newProps.userToken !== this.props.userToken) {
146
105
  this.store.dispatch((0, _config.setUserToken)(newProps.userToken));
147
106
  }
148
-
149
107
  if (newProps.outcomesEndpoint !== this.props.outcomesEndpoint) {
150
108
  this.store.dispatch((0, _outcomes.setOutcomesEndpoint)(newProps.outcomesEndpoint));
151
109
  }
152
-
153
110
  if (newProps.outcomesToken !== this.props.outcomesToken) {
154
111
  this.store.dispatch((0, _outcomes.setOutcomesToken)(newProps.outcomesToken));
155
112
  }
156
-
157
113
  if (newProps.contextUuid !== this.props.contextUuid) {
158
114
  this.store.dispatch((0, _outcomes.setContextUuid)(newProps.contextUuid));
159
115
  }
160
-
161
116
  if (newProps.itemBankSharingEnabled !== this.props.itemBankSharingEnabled) {
162
117
  var toggleFeature = newProps.itemBankSharingEnabled ? _features.addFeatures : _features.removeFeatures;
163
118
  this.store.dispatch(toggleFeature('item_bank_sharing'));
164
119
  }
165
-
166
120
  if (newProps.gradeByQuestionEnabled !== this.props.gradeByQuestionEnabled && this.props.gradeByQuestionEnabled !== null) {
167
121
  this.store.dispatch((0, _grading.setGradeByQuestionEnabled)(newProps.gradeByQuestionEnabled));
168
122
  }
169
-
170
123
  if (newProps.externalAccountUuid !== this.props.externalAccountUuid) {
171
124
  this.store.dispatch((0, _outcomes.setExternalAccountUuid)(newProps.externalAccountUuid));
172
125
  }
@@ -175,24 +128,22 @@ var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class
175
128
  key: "render",
176
129
  value: function render() {
177
130
  var store = this.store,
178
- props = this.props,
179
- context = this.context;
131
+ props = this.props,
132
+ context = this.context;
180
133
  return (0, _emotion.jsx)(_reactRedux.Provider, {
181
134
  store: store
182
- }, (0, _emotion.jsx)(_index3.ApiFeatureFlagInitializer, null, (0, _emotion.jsx)(_index2.default, this.props.rceConfig, (0, _emotion.jsx)(_uiI18n.ApplyLocale, {
135
+ }, (0, _emotion.jsx)(_ApiFeatureFlagInitializer.ApiFeatureFlagInitializer, null, (0, _emotion.jsx)(_RceConfigProvider.default, this.props.rceConfig, (0, _emotion.jsx)(_uiI18n.ApplyLocale, {
183
136
  locale: (0, _quizCommon.getLocale)(props, context),
184
137
  timezone: props.timeZone
185
138
  }, (0, _emotion.jsx)("div", {
186
139
  css: this.props.styles.sdk,
187
140
  "data-automation": "sdk-app"
188
- }, _ref, typeof props.children === 'function' ? props.children({
141
+ }, _ConfirmationModal || (_ConfirmationModal = (0, _emotion.jsx)(_ConfirmationModal2.default, null)), typeof props.children === 'function' ? props.children({
189
142
  addAlert: this.addAlert
190
143
  }) : props.children)))));
191
144
  }
192
145
  }]);
193
- SDKApp.displayName = "SDKApp";
194
- return SDKApp;
195
- }(_react.Component), _class2.propTypes = {
146
+ }(_react.Component), _SDKApp.propTypes = {
196
147
  apiEndpoint: _propTypes.default.string.isRequired,
197
148
  appContainer: _CustomPropTypes.default.selectors.isRequired,
198
149
  children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
@@ -202,7 +153,6 @@ var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class
202
153
  itemBankSharingEnabled: _propTypes.default.bool,
203
154
  // ESLint seems to this the "locale" prop is unused even though it definitely is
204
155
  locale: _propTypes.default.string,
205
-
206
156
  /* eslint-disable-line react/no-unused-prop-types */
207
157
  outcomesEndpoint: _propTypes.default.string,
208
158
  outcomesToken: _propTypes.default.string,
@@ -223,9 +173,9 @@ var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class
223
173
  userToken: _propTypes.default.string.isRequired,
224
174
  disableAlertLiveRegion: _propTypes.default.bool,
225
175
  styles: _propTypes.default.object
226
- }, _class2.contextTypes = {
176
+ }, _SDKApp.contextTypes = {
227
177
  locale: _propTypes.default.string
228
- }, _class2.defaultProps = {
178
+ }, _SDKApp.defaultProps = {
229
179
  contextUuid: '',
230
180
  externalAccountUuid: '',
231
181
  gradeByQuestionEnabled: null,
@@ -237,9 +187,6 @@ var SDKApp = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class
237
187
  translations: null,
238
188
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
239
189
  disableAlertLiveRegion: false
240
- }, _temp)) || _class);
241
- exports.SDKApp = SDKApp;
242
- var DragDroppableSDKApp = (0, _reactDnd.DragDropContext)(_reactDndHtml5Backend.default)(SDKApp);
243
- exports.DragDroppableSDKApp = DragDroppableSDKApp;
244
- var _default = DragDroppableSDKApp;
245
- exports.default = _default;
190
+ }, _SDKApp)) || _class);
191
+ var DragDroppableSDKApp = exports.DragDroppableSDKApp = (0, _reactDnd.DragDropContext)(_reactDndHtml5Backend.default)(SDKApp);
192
+ var _default = exports.default = DragDroppableSDKApp;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var generateStyle = function generateStyle() {
9
8
  return {
10
9
  sdk: {
@@ -12,6 +11,4 @@ var generateStyle = function generateStyle() {
12
11
  }
13
12
  };
14
13
  };
15
-
16
- var _default = generateStyle;
17
- exports.default = _default;
14
+ var _default = exports.default = generateStyle;
@@ -1,40 +1,30 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = exports.SDKHeaderCalculator = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
- var _reactRedux = require("../react-redux.js");
13
-
14
- var _reduxStore = _interopRequireDefault(require("../../reduxStore.js"));
15
-
16
- var _index = _interopRequireDefault(require("./layout/header/Calculator/index.js"));
17
-
9
+ var _reactRedux = require("../react-redux");
10
+ var _reduxStore = _interopRequireDefault(require("../../reduxStore"));
11
+ var _Calculator = _interopRequireDefault(require("./layout/header/Calculator"));
18
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
19
-
20
- var SDKHeaderCalculator = function SDKHeaderCalculator(_ref) {
13
+ var SDKHeaderCalculator = exports.SDKHeaderCalculator = function SDKHeaderCalculator(_ref) {
21
14
  var iceTopNavBarEnabled = _ref.iceTopNavBarEnabled,
22
- setCalculatorEnabled = _ref.setCalculatorEnabled;
15
+ setCalculatorEnabled = _ref.setCalculatorEnabled;
23
16
  return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
24
17
  store: _reduxStore.default
25
- }, /*#__PURE__*/_react.default.createElement(_index.default, {
18
+ }, /*#__PURE__*/_react.default.createElement(_Calculator.default, {
26
19
  iceTopNavBarEnabled: iceTopNavBarEnabled,
27
20
  setCalculatorEnabled: setCalculatorEnabled
28
21
  }));
29
22
  };
30
-
31
- exports.SDKHeaderCalculator = SDKHeaderCalculator;
32
- _index.default.propTypes = {
23
+ _Calculator.default.propTypes = {
33
24
  iceTopNavBarEnabled: _propTypes.default.bool
34
25
  };
35
- _index.default.defaultProps = {
26
+ _Calculator.default.defaultProps = {
36
27
  iceTopNavBarEnabled: false
37
28
  };
38
29
  SDKHeaderCalculator.displayName = 'SDKHeaderCalculator';
39
- var _default = SDKHeaderCalculator;
40
- exports.default = _default;
30
+ var _default = exports.default = SDKHeaderCalculator;
@@ -1,27 +1,18 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = exports.SDKMenuButton = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
- var _reactRedux = require("../react-redux.js");
13
-
14
- var _reduxStore = _interopRequireDefault(require("../../reduxStore.js"));
15
-
16
- var _index = _interopRequireDefault(require("./layout/header/HeaderMenuButton/index.js"));
17
-
18
- var SDKMenuButton = function SDKMenuButton(props) {
9
+ var _reactRedux = require("../react-redux");
10
+ var _reduxStore = _interopRequireDefault(require("../../reduxStore"));
11
+ var _HeaderMenuButton = _interopRequireDefault(require("./layout/header/HeaderMenuButton"));
12
+ var SDKMenuButton = exports.SDKMenuButton = function SDKMenuButton(props) {
19
13
  return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
20
14
  store: _reduxStore.default
21
- }, /*#__PURE__*/_react.default.createElement(_index.default, props));
15
+ }, /*#__PURE__*/_react.default.createElement(_HeaderMenuButton.default, props));
22
16
  };
23
-
24
- exports.SDKMenuButton = SDKMenuButton;
25
17
  SDKMenuButton.displayName = 'SDKMenuButton';
26
- var _default = SDKMenuButton;
27
- exports.default = _default;
18
+ var _default = exports.default = SDKMenuButton;