@instructure/quiz-core 20.20.1-rc.2 → 20.20.1-snapshot.4

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 (1394) hide show
  1. package/es/banks/api/bankEntries.js +5 -14
  2. package/es/banks/api/banks.js +12 -24
  3. package/es/banks/api/copyingBanksPoller.js +6 -14
  4. package/es/banks/api/tagAssociations.js +4 -14
  5. package/es/banks/components/AddBankEntryModal/index.js +0 -3
  6. package/es/banks/components/AddBankEntryModal/presenter.js +0 -17
  7. package/es/banks/components/AddToBankModal/presenter.js +12 -48
  8. package/es/banks/components/AsyncSearch/index.js +8 -62
  9. package/es/banks/components/Bank/presenter.js +18 -69
  10. package/es/banks/components/Bank/styles.js +0 -2
  11. package/es/banks/components/Bank/theme.js +2 -3
  12. package/es/banks/components/BankEntriesList/presenter.js +5 -16
  13. package/es/banks/components/BankEntriesList/styles.js +0 -1
  14. package/es/banks/components/BankEntriesList/theme.js +0 -1
  15. package/es/banks/components/BankEntry/index.js +0 -5
  16. package/es/banks/components/BankEntry/presenter.js +25 -110
  17. package/es/banks/components/BankEntry/styles.js +0 -2
  18. package/es/banks/components/BankEntry/theme.js +3 -4
  19. package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -2
  20. package/es/banks/components/BankEntryRow/index.js +0 -5
  21. package/es/banks/components/BankEntryRow/presenter.js +11 -39
  22. package/es/banks/components/BankEntryRow/styles.js +0 -1
  23. package/es/banks/components/BankEntryRow/theme.js +3 -4
  24. package/es/banks/components/BankSearch/index.js +0 -2
  25. package/es/banks/components/BankSearch/presenter.js +13 -31
  26. package/es/banks/components/BankSearch/styles.js +0 -1
  27. package/es/banks/components/BankSearch/theme.js +0 -1
  28. package/es/banks/components/Banks/index.js +0 -3
  29. package/es/banks/components/Banks/presenter.js +15 -65
  30. package/es/banks/components/Banks/styles.js +0 -1
  31. package/es/banks/components/Banks/theme.js +2 -3
  32. package/es/banks/components/BanksList/presenter.js +10 -63
  33. package/es/banks/components/BanksList/styles.js +0 -1
  34. package/es/banks/components/BanksList/theme.js +3 -4
  35. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +2 -29
  36. package/es/banks/components/CreateBankModal/index.js +0 -3
  37. package/es/banks/components/CreateBankModal/presenter.js +5 -31
  38. package/es/banks/components/CreateBankModal/styles.js +0 -1
  39. package/es/banks/components/CreateBankModal/theme.js +1 -2
  40. package/es/banks/components/EditBankModal/index.js +0 -3
  41. package/es/banks/components/EditBankModal/presenter.js +5 -25
  42. package/es/banks/components/EditBankModal/styles.js +0 -1
  43. package/es/banks/components/EditBankModal/theme.js +1 -2
  44. package/es/banks/components/HeaderBreadCrumb/index.js +9 -19
  45. package/es/banks/components/HeaderMenu/index.js +0 -3
  46. package/es/banks/components/HeaderMenu/presenter.js +5 -15
  47. package/es/banks/components/HeaderMenu/styles.js +0 -1
  48. package/es/banks/components/HeaderMenu/theme.js +1 -2
  49. package/es/banks/components/NavWrapper/index.js +0 -2
  50. package/es/banks/components/NavWrapper/presenter.js +9 -25
  51. package/es/banks/components/NavWrapper/styles.js +0 -2
  52. package/es/banks/components/NavWrapper/theme.js +4 -5
  53. package/es/banks/components/SharingModal/ContextualIconButton/index.js +1 -14
  54. package/es/banks/components/SharingModal/RootAccountSharing.js +5 -18
  55. package/es/banks/components/SharingModal/ShareList/index.js +7 -24
  56. package/es/banks/components/SharingModal/ShareList/styles.js +0 -1
  57. package/es/banks/components/SharingModal/index.js +0 -2
  58. package/es/banks/components/SharingModal/presenter.js +27 -92
  59. package/es/banks/components/SharingModal/styles.js +0 -1
  60. package/es/banks/components/SharingModal/theme.js +2 -3
  61. package/es/building/api/items.js +14 -32
  62. package/es/building/api/qtiImports.js +4 -13
  63. package/es/building/api/quizEntries.js +26 -32
  64. package/es/building/api/quizzes.js +27 -22
  65. package/es/building/api/stimuli.js +6 -3
  66. package/es/building/components/QTIImportModal/index.js +2 -1
  67. package/es/building/components/layout/Sidebar/Sidebar.examples.js +2 -20
  68. package/es/building/components/layout/Sidebar/SidebarItem/index.js +2 -2
  69. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -28
  70. package/es/building/components/layout/Sidebar/SidebarItem/styles.js +1 -4
  71. package/es/building/components/layout/Sidebar/SidebarItem/theme.js +0 -1
  72. package/es/building/components/layout/Sidebar/Stimulus/index.js +2 -3
  73. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +15 -26
  74. package/es/building/components/layout/Sidebar/Stimulus/styles.js +1 -4
  75. package/es/building/components/layout/Sidebar/Stimulus/theme.js +0 -1
  76. package/es/building/components/layout/Sidebar/index.js +3 -3
  77. package/es/building/components/layout/Sidebar/presenter.js +11 -38
  78. package/es/building/components/layout/Sidebar/styles.js +0 -2
  79. package/es/building/components/layout/Sidebar/theme.js +0 -1
  80. package/es/building/components/layout/header/BuildingButtons/index.js +0 -2
  81. package/es/building/components/layout/header/BuildingButtons/presenter.js +7 -52
  82. package/es/building/components/layout/header/BuildingButtons/styles.js +0 -2
  83. package/es/building/components/layout/header/BuildingButtons/theme.js +2 -3
  84. package/es/building/components/resources/ActionButtons/index.js +0 -3
  85. package/es/building/components/resources/ActionButtons/presenter.js +5 -22
  86. package/es/building/components/resources/ActionButtons/styles.js +0 -3
  87. package/es/building/components/resources/ActionButtons/theme.js +1 -2
  88. package/es/building/components/resources/AddToBankOptions/index.js +6 -25
  89. package/es/building/components/resources/AddToBankOptions/styles.js +0 -1
  90. package/es/building/components/resources/AddToBankOptions/theme.js +1 -2
  91. package/es/building/components/resources/BanksTray/index.js +0 -2
  92. package/es/building/components/resources/BanksTray/presenter.js +2 -26
  93. package/es/building/components/resources/DeleteStimulusModal/index.js +3 -7
  94. package/es/building/components/resources/DeleteStimulusModal/presenter.js +13 -44
  95. package/es/building/components/resources/DeleteStimulusModal/styles.js +0 -1
  96. package/es/building/components/resources/DeleteStimulusModal/theme.js +1 -2
  97. package/es/building/components/resources/ItemFeedbackModal/index.js +0 -2
  98. package/es/building/components/resources/ItemFeedbackModal/presenter.js +5 -24
  99. package/es/building/components/resources/ItemFeedbackModal/styles.js +0 -1
  100. package/es/building/components/resources/ItemFeedbackModal/theme.js +0 -1
  101. package/es/building/components/resources/MoveImmutableModal/index.js +5 -8
  102. package/es/building/components/resources/MoveImmutableModal/presenter.js +4 -17
  103. package/es/building/components/resources/quiz/editButton/EditButton.js +0 -12
  104. package/es/building/components/resources/quiz/instructions/Edit/index.js +0 -2
  105. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -13
  106. package/es/building/components/resources/quiz/instructions/Edit/styles.js +0 -1
  107. package/es/building/components/resources/quiz/instructions/Instructions/index.js +0 -2
  108. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +16 -41
  109. package/es/building/components/resources/quiz/instructions/Instructions/styles.js +0 -2
  110. package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
  111. package/es/building/components/resources/quiz/instructions/Show/index.js +10 -17
  112. package/es/building/components/resources/quiz/instructions/Show/styles.js +0 -1
  113. package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
  114. package/es/building/components/resources/quiz/title/Edit/index.js +12 -25
  115. package/es/building/components/resources/quiz/title/Edit/styles.js +0 -2
  116. package/es/building/components/resources/quiz/title/Edit/theme.js +3 -4
  117. package/es/building/components/resources/quiz/title/Show/index.js +5 -17
  118. package/es/building/components/resources/quiz/title/Show/styles.js +0 -1
  119. package/es/building/components/resources/quiz/title/Show/theme.js +0 -1
  120. package/es/building/components/resources/quiz/title/Title/index.js +0 -2
  121. package/es/building/components/resources/quiz/title/Title/presenter.js +16 -34
  122. package/es/building/components/resources/quiz/title/Title/styles.js +0 -2
  123. package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
  124. package/es/building/components/resources/quizEntry/QuizEntry/index.js +0 -2
  125. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +10 -43
  126. package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -9
  127. package/es/building/components/resources/quizEntry/QuizEntry/styles.js +0 -2
  128. package/es/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
  129. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +5 -35
  130. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -1
  131. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -4
  132. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +6 -17
  133. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -1
  134. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -4
  135. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -4
  136. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +17 -44
  137. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -3
  138. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -4
  139. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +12 -60
  140. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -2
  141. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
  142. package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -3
  143. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +27 -91
  144. package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -2
  145. package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -4
  146. package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -2
  147. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +23 -53
  148. package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -2
  149. package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -5
  150. package/es/common/actions/alerts.js +7 -7
  151. package/es/common/actions/modifications.js +37 -16
  152. package/es/common/actions/quizSessions.js +3 -13
  153. package/es/common/actions/rce.js +3 -2
  154. package/es/common/actions/taking.js +6 -4
  155. package/es/common/api/callHandlers.js +9 -13
  156. package/es/common/api/camelizeHelpers.js +6 -6
  157. package/es/common/api/features.js +0 -2
  158. package/es/common/api/fileUpload.js +3 -2
  159. package/es/common/api/getPersistenceActions.js +21 -23
  160. package/es/common/api/helpers.js +10 -29
  161. package/es/common/api/quizSessions.js +21 -26
  162. package/es/common/api/quizzes.js +3 -2
  163. package/es/common/api/schema.js +6 -4
  164. package/es/common/components/ApiFeatureFlagInitializer/index.js +0 -4
  165. package/es/common/components/ConfirmationModal/index.js +0 -3
  166. package/es/common/components/ConfirmationModal/presenter.js +9 -22
  167. package/es/common/components/ImportModal/ImportFileSelector/index.js +7 -18
  168. package/es/common/components/ImportModal/ImportFileSelector/styles.js +0 -1
  169. package/es/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
  170. package/es/common/components/ImportModal/index.js +8 -8
  171. package/es/common/components/ImportModal/presenter.js +12 -59
  172. package/es/common/components/ImportModal/styles.js +0 -1
  173. package/es/common/components/ImportModal/theme.js +0 -1
  174. package/es/common/components/LearnosityCalculator/index.js +1 -20
  175. package/es/common/components/Pin/presenter.js +0 -10
  176. package/es/common/components/PreviewFrame/examples.config.js +0 -2
  177. package/es/common/components/PreviewFrame/index.js +0 -7
  178. package/es/common/components/PrintFontSizeModal/presenter.js +15 -25
  179. package/es/common/components/PrintFontSizeModal/styles.js +0 -1
  180. package/es/common/components/PrintFontSizeModal/theme.js +2 -3
  181. package/es/common/components/RceConfigProvider/index.js +0 -2
  182. package/es/common/components/RceConfigProvider/presenter.js +22 -50
  183. package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -6
  184. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +1 -10
  185. package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -9
  186. package/es/common/components/SDKApp/index.js +12 -39
  187. package/es/common/components/SDKApp/styles.js +0 -1
  188. package/es/common/components/SDKHeaderCalculator.js +1 -1
  189. package/es/common/components/SDKTimer.js +1 -1
  190. package/es/common/components/alerts/index.js +0 -2
  191. package/es/common/components/alerts/presenter.js +5 -21
  192. package/es/common/components/alerts/styles.js +0 -2
  193. package/es/common/components/alerts/theme.js +1 -2
  194. package/es/common/components/layout/Page/index.js +5 -12
  195. package/es/common/components/layout/Page/styles.js +0 -2
  196. package/es/common/components/layout/Page/theme.js +2 -3
  197. package/es/common/components/layout/header/Calculator/index.js +0 -2
  198. package/es/common/components/layout/header/Calculator/presenter.js +2 -12
  199. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +6 -23
  200. package/es/common/components/layout/header/HeaderMenuButton/styles.js +0 -2
  201. package/es/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
  202. package/es/common/components/layout/header/Timer/index.js +0 -3
  203. package/es/common/components/layout/header/Timer/presenter.js +9 -34
  204. package/es/common/components/layout/header/Timer/styles.js +0 -1
  205. package/es/common/components/layout/header/Timer/theme.js +3 -4
  206. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -11
  207. package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -1
  208. package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -1
  209. package/es/common/components/layout/navbar/index.js +5 -25
  210. package/es/common/components/layout/navbar/styles.js +0 -1
  211. package/es/common/components/layout/navbar/theme.js +1 -2
  212. package/es/common/components/layout/sidebar/PositionSummary/index.js +4 -11
  213. package/es/common/components/layout/sidebar/PositionSummary/styles.js +0 -1
  214. package/es/common/components/layout/sidebar/PositionSummary/theme.js +3 -4
  215. package/es/common/components/layout/sidebar/Sidebar/Pin.js +3 -11
  216. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -3
  217. package/es/common/components/layout/sidebar/Sidebar/index.js +16 -53
  218. package/es/common/components/layout/sidebar/Sidebar/styles.js +0 -4
  219. package/es/common/components/layout/sidebar/Sidebar/theme.js +5 -7
  220. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -39
  221. package/es/common/components/layout/sidebar/SidebarItem/styles.js +0 -2
  222. package/es/common/components/layout/sidebar/SidebarItem/theme.js +3 -4
  223. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +12 -27
  224. package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -2
  225. package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
  226. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +10 -32
  227. package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -1
  228. package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
  229. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +4 -13
  230. package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -1
  231. package/es/common/components/layout/sidebar/Stimulus/index.js +0 -2
  232. package/es/common/components/layout/sidebar/Stimulus/presenter.js +16 -33
  233. package/es/common/components/layout/sidebar/Stimulus/styles.js +0 -1
  234. package/es/common/components/layout/sidebar/Stimulus/theme.js +3 -4
  235. package/es/common/components/resources/BankSelection/presenter.js +6 -36
  236. package/es/common/components/resources/WarningWrapper/index.js +5 -16
  237. package/es/common/components/resources/WarningWrapper/styles.js +0 -1
  238. package/es/common/components/resources/WarningWrapper/theme.js +2 -3
  239. package/es/common/components/resources/entry/EntrySave/presenter.js +8 -54
  240. package/es/common/components/resources/item/ItemEdit/index.js +2 -4
  241. package/es/common/components/resources/item/ItemEdit/presenter.js +8 -28
  242. package/es/common/components/resources/item/ItemOverride/index.js +0 -2
  243. package/es/common/components/resources/item/ItemOverride/presenter.js +0 -9
  244. package/es/common/components/resources/item/ItemShow/index.js +0 -7
  245. package/es/common/components/resources/positionBox/PositionBox.js +5 -12
  246. package/es/common/components/resources/positionBox/styles.js +0 -2
  247. package/es/common/components/resources/positionBox/theme.js +2 -3
  248. package/es/common/components/resources/quiz/AddContent/Body/index.js +0 -2
  249. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +15 -33
  250. package/es/common/components/resources/quiz/AddContent/Body/styles.js +0 -4
  251. package/es/common/components/resources/quiz/AddContent/Body/theme.js +4 -5
  252. package/es/common/components/resources/quiz/AddContent/Button/index.js +5 -16
  253. package/es/common/components/resources/quiz/AddContent/Button/styles.js +0 -2
  254. package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -5
  255. package/es/common/components/resources/quiz/AddContent/Modal/index.js +5 -8
  256. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -5
  257. package/es/common/components/resources/quiz/AddContent/Popover/index.js +1 -4
  258. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +5 -23
  259. package/es/common/components/resources/quiz/AddContent/Popover/styles.js +0 -1
  260. package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
  261. package/es/common/components/resources/quiz/info/QuizInfo.js +0 -5
  262. package/es/common/components/resources/quiz/instructions/Instructions.js +4 -13
  263. package/es/common/components/resources/quiz/instructions/styles.js +0 -1
  264. package/es/common/components/resources/quiz/instructions/theme.js +1 -2
  265. package/es/common/components/resources/quiz/title/Title.js +4 -12
  266. package/es/common/components/resources/quiz/title/styles.js +0 -1
  267. package/es/common/components/resources/quiz/title/theme.js +1 -2
  268. package/es/common/components/resources/quizSessionResult/Header/index.js +5 -17
  269. package/es/common/components/resources/quizSessionResult/Header/styles.js +0 -1
  270. package/es/common/components/resources/quizSessionResult/Header/theme.js +1 -2
  271. package/es/common/components/resources/quizSessionResult/Info/index.js +11 -28
  272. package/es/common/components/resources/quizSessionResult/Info/styles.js +0 -2
  273. package/es/common/components/resources/quizSessionResult/Info/theme.js +1 -2
  274. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -13
  275. package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -2
  276. package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -5
  277. package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -2
  278. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +9 -32
  279. package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -2
  280. package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -4
  281. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +5 -18
  282. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -1
  283. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
  284. package/es/common/components/resources/stimulus/Stimulus/index.js +0 -3
  285. package/es/common/components/resources/stimulus/Stimulus/presenter.js +9 -23
  286. package/es/common/components/resources/stimulus/Stimulus/styles.js +1 -5
  287. package/es/common/components/resources/stimulus/Stimulus/theme.js +3 -4
  288. package/es/common/components/resources/stimulus/StimulusEdit/index.js +0 -3
  289. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +18 -90
  290. package/es/common/components/resources/stimulus/StimulusEdit/styles.js +0 -1
  291. package/es/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
  292. package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -3
  293. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +5 -27
  294. package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -1
  295. package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
  296. package/es/common/components/resources/stimulus/StimulusShow/index.js +5 -19
  297. package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -1
  298. package/es/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
  299. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -7
  300. package/es/common/components/shared/Card/CardContent/index.js +5 -12
  301. package/es/common/components/shared/Card/CardContent/styles.js +0 -2
  302. package/es/common/components/shared/Card/CardContent/theme.js +4 -5
  303. package/es/common/components/shared/Card/CardWrapper/index.js +5 -12
  304. package/es/common/components/shared/Card/CardWrapper/styles.js +0 -2
  305. package/es/common/components/shared/Card/CardWrapper/theme.js +2 -3
  306. package/es/common/components/shared/Card/index.js +3 -4
  307. package/es/common/components/shared/ExpandButton/index.js +4 -11
  308. package/es/common/components/shared/ExpandButton/styles.js +0 -2
  309. package/es/common/components/shared/ExpandButton/theme.js +0 -1
  310. package/es/common/components/shared/FormattedDuration/index.js +4 -12
  311. package/es/common/components/shared/IfFeature/presenter.js +0 -6
  312. package/es/common/components/shared/InteractionTypes/index.js +0 -2
  313. package/es/common/components/shared/InteractionTypes/presenter.js +7 -23
  314. package/es/common/components/shared/InteractionTypes/styles.js +0 -1
  315. package/es/common/components/shared/InteractionTypes/theme.js +2 -3
  316. package/es/common/components/shared/PaginatedCollection/presenter.js +11 -36
  317. package/es/common/components/shared/PaginatedCollection/styles.js +0 -1
  318. package/es/common/components/shared/PaginatedCollection/theme.js +2 -3
  319. package/es/common/components/shared/Paginator/index.js +5 -15
  320. package/es/common/components/shared/Paginator/styles.js +0 -1
  321. package/es/common/components/shared/Paginator/theme.js +0 -1
  322. package/es/common/components/shared/PrintTrigger/index.js +0 -2
  323. package/es/common/components/shared/PrintTrigger/presenter.js +3 -25
  324. package/es/common/components/shared/TagDisplay/index.js +5 -13
  325. package/es/common/components/shared/TagDisplay/styles.js +0 -1
  326. package/es/common/components/shared/TagSelect/presenter.js +11 -43
  327. package/es/common/components/shared/TagSuggestSelect/index.js +0 -3
  328. package/es/common/components/shared/TagSuggestSelect/presenter.js +7 -18
  329. package/es/common/components/shared/TagWrapper/presenter.js +3 -13
  330. package/es/common/components/shared/TimeUnitsInput/index.js +23 -52
  331. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +12 -24
  332. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -2
  333. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
  334. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -50
  335. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -63
  336. package/es/common/components/shared/errors/Errors.js +5 -18
  337. package/es/common/components/shared/errors/styles.js +0 -1
  338. package/es/common/components/shared/errors/theme.js +1 -2
  339. package/es/common/components/shared/file_selector/FileSelector.js +5 -13
  340. package/es/common/components/shared/file_selector/styles.js +0 -1
  341. package/es/common/components/shared/file_selector/theme.js +2 -3
  342. package/es/common/components/shared/functionality/componentWithOutsideClick.js +0 -12
  343. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +6 -11
  344. package/es/common/components/shared/functionality/disableDraggingOverride.js +0 -1
  345. package/es/common/components/shared/functionality/makeEditable.js +15 -32
  346. package/es/common/components/shared/functionality/makeScrollable.js +9 -25
  347. package/es/common/components/shared/overlay/index.js +10 -20
  348. package/es/common/components/shared/overlay/styles.js +0 -2
  349. package/es/common/components/shared/overlay/theme.js +2 -3
  350. package/es/common/components/shared/return_button/ReturnButton.js +0 -7
  351. package/es/common/components/shared/spinner/Spinner.js +11 -20
  352. package/es/common/components/shared/spinner/styles.js +0 -1
  353. package/es/common/kinesis/QuizEventsLogger.js +14 -33
  354. package/es/common/kinesis/StreamQueue.js +6 -27
  355. package/es/common/kinesis/client.js +1 -3
  356. package/es/common/kinesis/config.js +2 -2
  357. package/es/common/kinesis/eventTypes.js +4 -4
  358. package/es/common/middleware/alertTimerMiddleware.js +2 -6
  359. package/es/common/middleware/crossDomainMessagingMiddleware.js +0 -3
  360. package/es/common/middleware/eventLoggerMiddleware.js +0 -5
  361. package/es/common/middleware/persistedStorageMiddleware.js +0 -7
  362. package/es/common/middleware/quizTimerWebSocketMiddleware.js +0 -11
  363. package/es/common/react-redux.js +0 -2
  364. package/es/common/records/Alert.js +0 -4
  365. package/es/common/records/Bank.js +0 -5
  366. package/es/common/records/BankEntry.js +0 -8
  367. package/es/common/records/Item.js +2 -9
  368. package/es/common/records/ItemAnalysis.js +0 -5
  369. package/es/common/records/QtiImport.js +0 -7
  370. package/es/common/records/Quiz.js +4 -13
  371. package/es/common/records/QuizAnalysis.js +0 -5
  372. package/es/common/records/QuizEntry.js +10 -57
  373. package/es/common/records/QuizSession.js +0 -10
  374. package/es/common/records/QuizSessionEvent.js +0 -5
  375. package/es/common/records/QuizSessionResult.js +0 -5
  376. package/es/common/records/Response.js +0 -5
  377. package/es/common/records/SessionItem.js +2 -13
  378. package/es/common/records/SessionItemResult.js +0 -5
  379. package/es/common/records/Stimulus.js +0 -5
  380. package/es/common/records/baseRecord.js +0 -11
  381. package/es/common/records/reduxRecord.js +0 -5
  382. package/es/common/reducers/alerts.js +0 -3
  383. package/es/common/reducers/analyses.js +0 -9
  384. package/es/common/reducers/bankEntries.js +0 -5
  385. package/es/common/reducers/bankSearch.js +4 -9
  386. package/es/common/reducers/banks.js +1 -13
  387. package/es/common/reducers/calls.js +0 -3
  388. package/es/common/reducers/config.js +0 -4
  389. package/es/common/reducers/dragAndDrop.js +0 -2
  390. package/es/common/reducers/editing.js +0 -1
  391. package/es/common/reducers/errorsShowing.js +0 -4
  392. package/es/common/reducers/features.js +0 -3
  393. package/es/common/reducers/grading.js +0 -4
  394. package/es/common/reducers/interactionTypes.js +0 -4
  395. package/es/common/reducers/items.js +0 -4
  396. package/es/common/reducers/modal.js +0 -6
  397. package/es/common/reducers/moderation.js +0 -3
  398. package/es/common/reducers/modifications.js +6 -38
  399. package/es/common/reducers/outcomes.js +0 -5
  400. package/es/common/reducers/printing.js +0 -2
  401. package/es/common/reducers/qtiImports.js +0 -5
  402. package/es/common/reducers/quizEntries.js +28 -39
  403. package/es/common/reducers/quizExport.js +0 -2
  404. package/es/common/reducers/quizSessionEvents.js +0 -5
  405. package/es/common/reducers/quizSessionResults.js +0 -4
  406. package/es/common/reducers/quizSessions.js +2 -11
  407. package/es/common/reducers/quizzes.js +0 -13
  408. package/es/common/reducers/rce.js +0 -6
  409. package/es/common/reducers/regrading.js +0 -4
  410. package/es/common/reducers/reporting.js +0 -12
  411. package/es/common/reducers/scrolling.js +0 -3
  412. package/es/common/reducers/sessionItemResults.js +0 -4
  413. package/es/common/reducers/sessionItems.js +0 -4
  414. package/es/common/reducers/sharedBanks.js +1 -8
  415. package/es/common/reducers/sidebar.js +0 -3
  416. package/es/common/reducers/stimuli.js +0 -4
  417. package/es/common/reducers/tagAssociations.js +0 -28
  418. package/es/common/reducers/taking.js +0 -37
  419. package/es/common/reducers/ui.js +0 -11
  420. package/es/common/reducers/upload.js +0 -7
  421. package/es/common/selectors/analyses.js +0 -2
  422. package/es/common/selectors/calculator.js +4 -7
  423. package/es/common/selectors/config.js +0 -2
  424. package/es/common/selectors/interactionTypes.js +3 -4
  425. package/es/common/selectors/items.js +0 -1
  426. package/es/common/selectors/qtiImports.js +2 -5
  427. package/es/common/selectors/quizSessions.js +2 -1
  428. package/es/common/selectors/quizzes.js +3 -9
  429. package/es/common/selectors/reporting.js +0 -2
  430. package/es/common/selectors/sessionItemResults.js +2 -3
  431. package/es/common/selectors/sessionItems.js +2 -3
  432. package/es/common/util/CustomPropTypes.js +0 -12
  433. package/es/common/util/ExhaustivePaginatedFetcher.js +7 -23
  434. package/es/common/util/Fetcher.js +25 -79
  435. package/es/common/util/MultiWeakMap.js +0 -19
  436. package/es/common/util/PaginatedFetcher.js +2 -16
  437. package/es/common/util/ThunkQueue.js +3 -30
  438. package/es/common/util/TimeRecordingService.js +0 -12
  439. package/es/common/util/TimerService.js +3 -42
  440. package/es/common/util/cachePreviousArgs.js +0 -3
  441. package/es/common/util/callHelpers.js +0 -2
  442. package/es/common/util/componentForItem.js +1 -6
  443. package/es/common/util/crossDomainMessaging.js +0 -1
  444. package/es/common/util/debounceLatestPromise.js +0 -2
  445. package/es/common/util/featureCheck.js +3 -3
  446. package/es/common/util/fitbCopyHelper.js +3 -3
  447. package/es/common/util/formatTimespan.js +0 -10
  448. package/es/common/util/generateDisplayPositions.js +2 -5
  449. package/es/common/util/immutableHelpers.js +4 -3
  450. package/es/common/util/interactionTypeMetadata.js +2 -3
  451. package/es/common/util/interactionTypePropsHelper.js +0 -7
  452. package/es/common/util/interactionTypeRecordForItem.js +1 -7
  453. package/es/common/util/jsonify.js +1 -0
  454. package/es/common/util/keyboardClickable.js +0 -1
  455. package/es/common/util/mathRenderingUtils.js +2 -1
  456. package/es/common/util/maxContent.js +0 -1
  457. package/es/common/util/persistedState.js +0 -6
  458. package/es/common/util/printUtils.js +0 -4
  459. package/es/common/util/rceChecker.js +1 -3
  460. package/es/common/util/renderAlerts.js +2 -6
  461. package/es/common/util/serializeEvent.js +0 -2
  462. package/es/common/util/sessionStore.js +4 -11
  463. package/es/common/util/warningHelpers.js +0 -9
  464. package/es/common/util/withCachedArguments.js +0 -6
  465. package/es/common/util/withDynamoPagination.js +14 -34
  466. package/es/common/util/withStateCache.js +0 -9
  467. package/es/config.js +5 -9
  468. package/es/configureStore.js +9 -8
  469. package/es/grading/api/quizEntryRegrades.js +3 -2
  470. package/es/grading/api/updateResults.js +0 -4
  471. package/es/index.js +4 -6
  472. package/es/messages/LocalStorageAdapter.js +0 -12
  473. package/es/messages/LocalStorageLimits.js +2 -23
  474. package/es/messages/StorageExhaustionError.js +1 -8
  475. package/es/messages/postMessageService.js +0 -20
  476. package/es/messages/subjectHandlers/forwardMessage.js +0 -1
  477. package/es/messages/subjectHandlers/lti.capabilities.js +0 -1
  478. package/es/messages/subjectHandlers/lti.fetchWindowSize.js +0 -1
  479. package/es/messages/subjectHandlers/lti.frameResize.js +0 -3
  480. package/es/messages/subjectHandlers/lti.get_data.js +2 -7
  481. package/es/messages/subjectHandlers/lti.put_data.js +3 -8
  482. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +0 -4
  483. package/es/messages/utils.js +0 -1
  484. package/es/moderating/components/events/Event.js +3 -17
  485. package/es/moderating/components/events/PageBlurredEvent.js +0 -5
  486. package/es/moderating/components/events/PageFocusedEvent.js +0 -5
  487. package/es/moderating/components/events/RCEEvent.js +0 -5
  488. package/es/moderating/components/events/ResponseEvent.js +4 -16
  489. package/es/moderating/components/events/SessionStartEvent.js +0 -5
  490. package/es/moderating/components/events/styles.js +0 -1
  491. package/es/moderating/components/events/theme.js +1 -2
  492. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -23
  493. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -21
  494. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -21
  495. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -20
  496. package/es/moderating/components/resources/AccommodationsModal/index.js +7 -25
  497. package/es/moderating/components/resources/ElapsedTime.js +5 -9
  498. package/es/moderating/components/resources/ModerateTable/presenter.js +23 -70
  499. package/es/moderating/components/resources/ModerateTable/styles.js +0 -2
  500. package/es/moderating/components/resources/ModerateTable/theme.js +1 -2
  501. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -2
  502. package/es/moderating/components/resources/ModerateTableRow/index.js +2 -2
  503. package/es/moderating/components/resources/ModerateTableRow/presenter.js +19 -60
  504. package/es/moderating/components/resources/ModerateTableRow/story.js +0 -2
  505. package/es/moderating/components/resources/ModerateTableRow/styles.js +0 -1
  506. package/es/moderating/components/resources/ModerateTableRow/theme.js +0 -1
  507. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -26
  508. package/es/moderating/components/sidebar/ModerateTray/presenter.js +0 -20
  509. package/es/moderating/components/sidebar/ResetQuiz/index.js +0 -2
  510. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -17
  511. package/es/reduxStore.js +0 -4
  512. package/es/reporting/api/getAnalysesExport.js +4 -11
  513. package/es/reporting/api/getAnalysesStatus.js +3 -6
  514. package/es/reporting/api/getItemAnalyses.js +3 -6
  515. package/es/reporting/api/getQuizAnalysis.js +3 -6
  516. package/es/reporting/components/Caption/index.js +5 -12
  517. package/es/reporting/components/Caption/styles.js +0 -1
  518. package/es/reporting/components/Caption/theme.js +2 -3
  519. package/es/reporting/components/MetricsListItem/index.js +8 -15
  520. package/es/reporting/components/MetricsListItem/styles.js +0 -1
  521. package/es/reporting/components/charts/CentileDistribution/presenter.js +10 -32
  522. package/es/reporting/components/charts/CentileDistribution/styles.js +0 -2
  523. package/es/reporting/components/charts/CentileDistribution/theme.js +2 -3
  524. package/es/reporting/components/charts/Distribution/presenter.js +15 -45
  525. package/es/reporting/components/charts/Distribution/styles.js +0 -1
  526. package/es/reporting/components/charts/Distribution/theme.js +1 -2
  527. package/es/reporting/components/charts/Legend/index.js +8 -16
  528. package/es/reporting/components/charts/Legend/styles.js +0 -2
  529. package/es/reporting/components/charts/Legend/theme.js +3 -4
  530. package/es/reporting/components/charts/QuintileDistribution/presenter.js +7 -30
  531. package/es/reporting/components/charts/QuintileDistribution/styles.js +0 -1
  532. package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -2
  533. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -21
  534. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -6
  535. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -6
  536. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +14 -33
  537. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -3
  538. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -4
  539. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +9 -23
  540. package/es/reporting/components/quizAnalysis/styles.js +0 -3
  541. package/es/reporting/components/quizAnalysis/theme.js +3 -4
  542. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +9 -16
  543. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -1
  544. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +8 -15
  545. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -4
  546. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -9
  547. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -10
  548. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -10
  549. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -23
  550. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -2
  551. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -1
  552. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +7 -19
  553. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -1
  554. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -1
  555. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -14
  556. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -10
  557. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +14 -34
  558. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -2
  559. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -1
  560. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -15
  561. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -8
  562. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -15
  563. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +12 -48
  564. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -1
  565. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -1
  566. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +9 -29
  567. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -1
  568. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -1
  569. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -14
  570. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +9 -22
  571. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -1
  572. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
  573. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -10
  574. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -30
  575. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +7 -21
  576. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -2
  577. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -1
  578. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -15
  579. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -1
  580. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -36
  581. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -1
  582. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -1
  583. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +9 -48
  584. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -2
  585. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
  586. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +6 -19
  587. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -1
  588. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -1
  589. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -5
  590. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +5 -20
  591. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -1
  592. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -1
  593. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +4 -11
  594. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -1
  595. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -1
  596. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -2
  597. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +10 -37
  598. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -2
  599. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
  600. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +7 -25
  601. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -1
  602. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -1
  603. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +18 -40
  604. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -2
  605. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
  606. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +5 -20
  607. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -1
  608. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
  609. package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -6
  610. package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -12
  611. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -8
  612. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -7
  613. package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -19
  614. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +18 -53
  615. package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -1
  616. package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -1
  617. package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -5
  618. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -2
  619. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -54
  620. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -16
  621. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -6
  622. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +16 -39
  623. package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -1
  624. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
  625. package/es/reporting/components/resources/ReportCard/index.js +8 -15
  626. package/es/reporting/components/resources/ReportCard/styles.js +0 -2
  627. package/es/reporting/components/resources/ReportCard/theme.js +1 -2
  628. package/es/reporting/components/resources/ReportList/index.js +8 -15
  629. package/es/reporting/components/resources/ReportList/styles.js +0 -1
  630. package/es/reporting/components/resources/ReportList/theme.js +0 -1
  631. package/es/taking/api/taking.js +30 -42
  632. package/es/taking/learnosity/index.js +9 -33
  633. package/lib/banks/api/bankEntries.js +5 -50
  634. package/lib/banks/api/banks.js +12 -66
  635. package/lib/banks/api/copyingBanksPoller.js +6 -25
  636. package/lib/banks/api/tagAssociations.js +4 -26
  637. package/lib/banks/components/AddBankEntryModal/index.js +0 -13
  638. package/lib/banks/components/AddBankEntryModal/presenter.js +0 -34
  639. package/lib/banks/components/AddToBankModal/index.js +0 -19
  640. package/lib/banks/components/AddToBankModal/presenter.js +12 -74
  641. package/lib/banks/components/AsyncSearch/index.js +8 -79
  642. package/lib/banks/components/Bank/index.js +0 -18
  643. package/lib/banks/components/Bank/presenter.js +21 -107
  644. package/lib/banks/components/Bank/styles.js +0 -5
  645. package/lib/banks/components/Bank/theme.js +2 -4
  646. package/lib/banks/components/BankEntriesList/index.js +0 -8
  647. package/lib/banks/components/BankEntriesList/presenter.js +6 -28
  648. package/lib/banks/components/BankEntriesList/styles.js +0 -2
  649. package/lib/banks/components/BankEntriesList/theme.js +0 -2
  650. package/lib/banks/components/BankEntry/index.js +0 -23
  651. package/lib/banks/components/BankEntry/presenter.js +26 -153
  652. package/lib/banks/components/BankEntry/styles.js +0 -4
  653. package/lib/banks/components/BankEntry/theme.js +3 -5
  654. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -7
  655. package/lib/banks/components/BankEntryRow/index.js +0 -19
  656. package/lib/banks/components/BankEntryRow/presenter.js +13 -69
  657. package/lib/banks/components/BankEntryRow/styles.js +0 -2
  658. package/lib/banks/components/BankEntryRow/theme.js +3 -5
  659. package/lib/banks/components/BankSearch/BankSearch.stories.js +0 -13
  660. package/lib/banks/components/BankSearch/index.js +0 -11
  661. package/lib/banks/components/BankSearch/presenter.js +14 -54
  662. package/lib/banks/components/BankSearch/styles.js +0 -2
  663. package/lib/banks/components/BankSearch/theme.js +0 -2
  664. package/lib/banks/components/Banks/index.js +0 -14
  665. package/lib/banks/components/Banks/presenter.js +16 -97
  666. package/lib/banks/components/Banks/styles.js +0 -2
  667. package/lib/banks/components/Banks/theme.js +2 -4
  668. package/lib/banks/components/BanksList/index.js +0 -13
  669. package/lib/banks/components/BanksList/presenter.js +12 -91
  670. package/lib/banks/components/BanksList/styles.js +0 -2
  671. package/lib/banks/components/BanksList/theme.js +3 -5
  672. package/lib/banks/components/CopyMoveBankEntryModal/index.js +0 -16
  673. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -49
  674. package/lib/banks/components/CreateBankModal/index.js +0 -19
  675. package/lib/banks/components/CreateBankModal/presenter.js +6 -49
  676. package/lib/banks/components/CreateBankModal/styles.js +0 -2
  677. package/lib/banks/components/CreateBankModal/theme.js +1 -3
  678. package/lib/banks/components/EditBankModal/index.js +0 -16
  679. package/lib/banks/components/EditBankModal/presenter.js +6 -41
  680. package/lib/banks/components/EditBankModal/styles.js +0 -2
  681. package/lib/banks/components/EditBankModal/theme.js +1 -3
  682. package/lib/banks/components/HeaderBreadCrumb/index.js +9 -34
  683. package/lib/banks/components/HeaderMenu/index.js +0 -11
  684. package/lib/banks/components/HeaderMenu/presenter.js +6 -32
  685. package/lib/banks/components/HeaderMenu/styles.js +0 -2
  686. package/lib/banks/components/HeaderMenu/theme.js +1 -3
  687. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +0 -5
  688. package/lib/banks/components/NavWrapper/index.js +0 -7
  689. package/lib/banks/components/NavWrapper/presenter.js +10 -45
  690. package/lib/banks/components/NavWrapper/styles.js +0 -3
  691. package/lib/banks/components/NavWrapper/theme.js +4 -6
  692. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -26
  693. package/lib/banks/components/SharingModal/RootAccountSharing.js +5 -35
  694. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +0 -2
  695. package/lib/banks/components/SharingModal/ShareList/index.js +8 -43
  696. package/lib/banks/components/SharingModal/ShareList/styles.js +0 -2
  697. package/lib/banks/components/SharingModal/index.js +0 -13
  698. package/lib/banks/components/SharingModal/presenter.js +29 -123
  699. package/lib/banks/components/SharingModal/styles.js +0 -2
  700. package/lib/banks/components/SharingModal/theme.js +2 -4
  701. package/lib/building/api/items.js +12 -45
  702. package/lib/building/api/qtiImports.js +4 -29
  703. package/lib/building/api/quizEntries.js +23 -67
  704. package/lib/building/api/quizzes.js +27 -55
  705. package/lib/building/api/stimuli.js +4 -11
  706. package/lib/building/components/QTIImportModal/index.js +2 -13
  707. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -29
  708. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +2 -25
  709. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +18 -41
  710. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -5
  711. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +0 -2
  712. package/lib/building/components/layout/Sidebar/Stimulus/index.js +2 -24
  713. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +16 -39
  714. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -5
  715. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +0 -2
  716. package/lib/building/components/layout/Sidebar/index.js +3 -22
  717. package/lib/building/components/layout/Sidebar/presenter.js +13 -54
  718. package/lib/building/components/layout/Sidebar/styles.js +0 -4
  719. package/lib/building/components/layout/Sidebar/theme.js +0 -2
  720. package/lib/building/components/layout/header/BuildingButtons/index.js +0 -17
  721. package/lib/building/components/layout/header/BuildingButtons/presenter.js +8 -69
  722. package/lib/building/components/layout/header/BuildingButtons/styles.js +0 -4
  723. package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -4
  724. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +0 -7
  725. package/lib/building/components/resources/ActionButtons/index.js +0 -11
  726. package/lib/building/components/resources/ActionButtons/presenter.js +6 -38
  727. package/lib/building/components/resources/ActionButtons/styles.js +0 -6
  728. package/lib/building/components/resources/ActionButtons/theme.js +1 -3
  729. package/lib/building/components/resources/AddToBankOptions/index.js +7 -40
  730. package/lib/building/components/resources/AddToBankOptions/styles.js +0 -2
  731. package/lib/building/components/resources/AddToBankOptions/theme.js +1 -3
  732. package/lib/building/components/resources/BanksTray/index.js +0 -6
  733. package/lib/building/components/resources/BanksTray/presenter.js +2 -46
  734. package/lib/building/components/resources/DeleteStimulusModal/index.js +3 -15
  735. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +14 -63
  736. package/lib/building/components/resources/DeleteStimulusModal/styles.js +0 -2
  737. package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -3
  738. package/lib/building/components/resources/ItemFeedbackModal/index.js +0 -13
  739. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +6 -38
  740. package/lib/building/components/resources/ItemFeedbackModal/styles.js +0 -2
  741. package/lib/building/components/resources/ItemFeedbackModal/theme.js +0 -2
  742. package/lib/building/components/resources/MoveImmutableModal/index.js +5 -18
  743. package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -32
  744. package/lib/building/components/resources/quiz/editButton/EditButton.js +0 -26
  745. package/lib/building/components/resources/quiz/instructions/Edit/index.js +0 -6
  746. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +5 -29
  747. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +0 -2
  748. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +0 -1
  749. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +0 -4
  750. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +0 -11
  751. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +12 -55
  752. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +0 -4
  753. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -3
  754. package/lib/building/components/resources/quiz/instructions/Show/index.js +6 -31
  755. package/lib/building/components/resources/quiz/instructions/Show/styles.js +0 -2
  756. package/lib/building/components/resources/quiz/instructions/Show/theme.js +2 -3
  757. package/lib/building/components/resources/quiz/title/Edit/index.js +8 -40
  758. package/lib/building/components/resources/quiz/title/Edit/styles.js +0 -4
  759. package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -5
  760. package/lib/building/components/resources/quiz/title/Show/index.js +6 -31
  761. package/lib/building/components/resources/quiz/title/Show/styles.js +0 -2
  762. package/lib/building/components/resources/quiz/title/Show/theme.js +0 -2
  763. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +0 -4
  764. package/lib/building/components/resources/quiz/title/Title/index.js +0 -12
  765. package/lib/building/components/resources/quiz/title/Title/presenter.js +12 -49
  766. package/lib/building/components/resources/quiz/title/Title/styles.js +0 -5
  767. package/lib/building/components/resources/quiz/title/Title/theme.js +3 -4
  768. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +0 -22
  769. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +13 -79
  770. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -13
  771. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +0 -4
  772. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -5
  773. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +0 -8
  774. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -55
  775. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -2
  776. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -5
  777. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +7 -30
  778. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -2
  779. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -5
  780. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -11
  781. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +18 -64
  782. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -5
  783. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -5
  784. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +13 -83
  785. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -3
  786. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -4
  787. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -20
  788. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +29 -118
  789. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -3
  790. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -5
  791. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -12
  792. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +24 -76
  793. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -5
  794. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -6
  795. package/lib/common/actions/addInteractionTypes.js +0 -2
  796. package/lib/common/actions/alerts.js +7 -16
  797. package/lib/common/actions/analyses.js +0 -7
  798. package/lib/common/actions/bankEntries.js +0 -5
  799. package/lib/common/actions/bankSearch.js +0 -9
  800. package/lib/common/actions/banks.js +0 -13
  801. package/lib/common/actions/config.js +0 -4
  802. package/lib/common/actions/dragAndDrop.js +0 -2
  803. package/lib/common/actions/editing.js +0 -4
  804. package/lib/common/actions/errorsShowing.js +0 -4
  805. package/lib/common/actions/features.js +0 -3
  806. package/lib/common/actions/grading.js +0 -4
  807. package/lib/common/actions/items.js +0 -2
  808. package/lib/common/actions/modal.js +0 -7
  809. package/lib/common/actions/moderation.js +0 -3
  810. package/lib/common/actions/modifications.js +35 -57
  811. package/lib/common/actions/outcomes.js +0 -5
  812. package/lib/common/actions/postMessage.js +0 -2
  813. package/lib/common/actions/printing.js +0 -3
  814. package/lib/common/actions/qtiImports.js +0 -3
  815. package/lib/common/actions/quizEntries.js +0 -7
  816. package/lib/common/actions/quizExport.js +0 -3
  817. package/lib/common/actions/quizSessionEvents.js +0 -3
  818. package/lib/common/actions/quizSessionResults.js +0 -3
  819. package/lib/common/actions/quizSessions.js +3 -30
  820. package/lib/common/actions/quizzes.js +0 -13
  821. package/lib/common/actions/rce.js +3 -9
  822. package/lib/common/actions/regrading.js +0 -4
  823. package/lib/common/actions/reporting.js +0 -6
  824. package/lib/common/actions/scrolling.js +0 -3
  825. package/lib/common/actions/sessionItemResults.js +0 -3
  826. package/lib/common/actions/sessionItems.js +0 -3
  827. package/lib/common/actions/sharedBanks.js +0 -7
  828. package/lib/common/actions/sidebar.js +0 -3
  829. package/lib/common/actions/stimuli.js +0 -2
  830. package/lib/common/actions/tagAssociations.js +0 -17
  831. package/lib/common/actions/taking.js +6 -42
  832. package/lib/common/actions/ui.js +0 -19
  833. package/lib/common/actions/upload.js +0 -11
  834. package/lib/common/api/callHandlers.js +10 -62
  835. package/lib/common/api/camelizeHelpers.js +3 -10
  836. package/lib/common/api/features.js +0 -8
  837. package/lib/common/api/fileUpload.js +3 -9
  838. package/lib/common/api/getPersistenceActions.js +22 -43
  839. package/lib/common/api/helpers.js +10 -46
  840. package/lib/common/api/interactionTypes.js +0 -5
  841. package/lib/common/api/quizSessions.js +21 -64
  842. package/lib/common/api/quizzes.js +4 -12
  843. package/lib/common/api/schema.js +6 -7
  844. package/lib/common/components/ApiFeatureFlagInitializer/index.js +0 -12
  845. package/lib/common/components/ConfirmationModal/index.js +0 -11
  846. package/lib/common/components/ConfirmationModal/presenter.js +9 -36
  847. package/lib/common/components/ImportModal/ImportFileSelector/index.js +8 -31
  848. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +0 -2
  849. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -4
  850. package/lib/common/components/ImportModal/index.js +8 -21
  851. package/lib/common/components/ImportModal/presenter.js +13 -80
  852. package/lib/common/components/ImportModal/styles.js +0 -2
  853. package/lib/common/components/ImportModal/theme.js +0 -2
  854. package/lib/common/components/LearnosityCalculator/index.js +1 -32
  855. package/lib/common/components/Pin/index.js +0 -2
  856. package/lib/common/components/Pin/presenter.js +0 -22
  857. package/lib/common/components/PreviewFrame/examples.config.js +0 -4
  858. package/lib/common/components/PreviewFrame/index.js +0 -19
  859. package/lib/common/components/PrintFontSizeModal/index.js +0 -3
  860. package/lib/common/components/PrintFontSizeModal/presenter.js +16 -40
  861. package/lib/common/components/PrintFontSizeModal/styles.js +0 -2
  862. package/lib/common/components/PrintFontSizeModal/theme.js +2 -4
  863. package/lib/common/components/RceConfigProvider/index.js +0 -8
  864. package/lib/common/components/RceConfigProvider/presenter.js +22 -66
  865. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -15
  866. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +0 -13
  867. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +1 -14
  868. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -14
  869. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +0 -4
  870. package/lib/common/components/SDKApp/index.js +16 -62
  871. package/lib/common/components/SDKApp/styles.js +0 -2
  872. package/lib/common/components/SDKHeaderCalculator.js +1 -9
  873. package/lib/common/components/SDKMenuButton.js +0 -7
  874. package/lib/common/components/SDKNavBar.js +0 -7
  875. package/lib/common/components/SDKTimer.js +1 -9
  876. package/lib/common/components/alerts/index.js +0 -9
  877. package/lib/common/components/alerts/presenter.js +6 -35
  878. package/lib/common/components/alerts/styles.js +0 -4
  879. package/lib/common/components/alerts/theme.js +1 -3
  880. package/lib/common/components/layout/Page/index.js +6 -20
  881. package/lib/common/components/layout/Page/styles.js +0 -5
  882. package/lib/common/components/layout/Page/theme.js +2 -4
  883. package/lib/common/components/layout/header/Calculator/index.js +0 -9
  884. package/lib/common/components/layout/header/Calculator/presenter.js +2 -26
  885. package/lib/common/components/layout/header/HeaderMenuButton/index.js +0 -10
  886. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +7 -35
  887. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +0 -4
  888. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -4
  889. package/lib/common/components/layout/header/Timer/index.js +0 -13
  890. package/lib/common/components/layout/header/Timer/presenter.js +10 -53
  891. package/lib/common/components/layout/header/Timer/styles.js +0 -2
  892. package/lib/common/components/layout/header/Timer/theme.js +3 -5
  893. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +5 -21
  894. package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -2
  895. package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -2
  896. package/lib/common/components/layout/navbar/index.js +6 -37
  897. package/lib/common/components/layout/navbar/styles.js +0 -2
  898. package/lib/common/components/layout/navbar/theme.js +1 -3
  899. package/lib/common/components/layout/sidebar/PositionSummary/index.js +5 -21
  900. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +0 -2
  901. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +3 -5
  902. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +0 -20
  903. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -6
  904. package/lib/common/components/layout/sidebar/Sidebar/index.js +18 -76
  905. package/lib/common/components/layout/sidebar/Sidebar/styles.js +0 -7
  906. package/lib/common/components/layout/sidebar/Sidebar/theme.js +5 -8
  907. package/lib/common/components/layout/sidebar/SidebarItem/index.js +0 -12
  908. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +23 -55
  909. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +0 -4
  910. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +3 -5
  911. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +0 -6
  912. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +13 -43
  913. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -5
  914. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -4
  915. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +0 -6
  916. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +11 -44
  917. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -2
  918. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -4
  919. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +5 -23
  920. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -2
  921. package/lib/common/components/layout/sidebar/Stimulus/index.js +0 -9
  922. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +17 -51
  923. package/lib/common/components/layout/sidebar/Stimulus/styles.js +0 -2
  924. package/lib/common/components/layout/sidebar/Stimulus/theme.js +3 -5
  925. package/lib/common/components/resources/BankSelection/index.js +0 -11
  926. package/lib/common/components/resources/BankSelection/presenter.js +6 -51
  927. package/lib/common/components/resources/WarningWrapper/index.js +6 -29
  928. package/lib/common/components/resources/WarningWrapper/styles.js +0 -2
  929. package/lib/common/components/resources/WarningWrapper/theme.js +2 -4
  930. package/lib/common/components/resources/entry/EntrySave/index.js +0 -15
  931. package/lib/common/components/resources/entry/EntrySave/presenter.js +8 -73
  932. package/lib/common/components/resources/item/ItemEdit/index.js +2 -24
  933. package/lib/common/components/resources/item/ItemEdit/presenter.js +8 -50
  934. package/lib/common/components/resources/item/ItemOverride/index.js +0 -16
  935. package/lib/common/components/resources/item/ItemOverride/presenter.js +0 -23
  936. package/lib/common/components/resources/item/ItemShow/index.js +0 -20
  937. package/lib/common/components/resources/positionBox/PositionBox.js +6 -22
  938. package/lib/common/components/resources/positionBox/styles.js +0 -4
  939. package/lib/common/components/resources/positionBox/theme.js +2 -4
  940. package/lib/common/components/resources/quiz/AddContent/Body/index.js +0 -12
  941. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +16 -51
  942. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +0 -6
  943. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +4 -6
  944. package/lib/common/components/resources/quiz/AddContent/Button/index.js +6 -29
  945. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +0 -5
  946. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +4 -6
  947. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +5 -14
  948. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -18
  949. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +1 -12
  950. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +6 -39
  951. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +0 -2
  952. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -3
  953. package/lib/common/components/resources/quiz/info/QuizInfo.js +0 -16
  954. package/lib/common/components/resources/quiz/instructions/Instructions.js +10 -24
  955. package/lib/common/components/resources/quiz/instructions/styles.js +0 -2
  956. package/lib/common/components/resources/quiz/instructions/theme.js +1 -3
  957. package/lib/common/components/resources/quiz/title/Title.js +9 -24
  958. package/lib/common/components/resources/quiz/title/styles.js +0 -2
  959. package/lib/common/components/resources/quiz/title/theme.js +1 -3
  960. package/lib/common/components/resources/quizSessionResult/Header/index.js +6 -30
  961. package/lib/common/components/resources/quizSessionResult/Header/styles.js +0 -2
  962. package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -3
  963. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +0 -5
  964. package/lib/common/components/resources/quizSessionResult/Info/index.js +12 -49
  965. package/lib/common/components/resources/quizSessionResult/Info/styles.js +0 -3
  966. package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -3
  967. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +5 -24
  968. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -5
  969. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -6
  970. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -8
  971. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +11 -53
  972. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -4
  973. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -5
  974. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +6 -34
  975. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -2
  976. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -5
  977. package/lib/common/components/resources/stimulus/Stimulus/index.js +0 -11
  978. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +10 -45
  979. package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -9
  980. package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -5
  981. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +0 -19
  982. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +19 -122
  983. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +0 -2
  984. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -4
  985. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -11
  986. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +6 -47
  987. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -2
  988. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -4
  989. package/lib/common/components/resources/stimulus/StimulusShow/index.js +7 -32
  990. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +0 -2
  991. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -4
  992. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +0 -3
  993. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -19
  994. package/lib/common/components/shared/Card/CardContent/index.js +6 -22
  995. package/lib/common/components/shared/Card/CardContent/styles.js +0 -4
  996. package/lib/common/components/shared/Card/CardContent/theme.js +4 -6
  997. package/lib/common/components/shared/Card/CardWrapper/index.js +6 -22
  998. package/lib/common/components/shared/Card/CardWrapper/styles.js +0 -4
  999. package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -4
  1000. package/lib/common/components/shared/Card/index.js +3 -13
  1001. package/lib/common/components/shared/ExpandButton/index.js +5 -22
  1002. package/lib/common/components/shared/ExpandButton/styles.js +0 -4
  1003. package/lib/common/components/shared/ExpandButton/theme.js +0 -2
  1004. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +0 -4
  1005. package/lib/common/components/shared/FormattedDuration/index.js +4 -28
  1006. package/lib/common/components/shared/IfFeature/index.js +0 -5
  1007. package/lib/common/components/shared/IfFeature/presenter.js +0 -13
  1008. package/lib/common/components/shared/InteractionTypes/index.js +0 -6
  1009. package/lib/common/components/shared/InteractionTypes/presenter.js +8 -42
  1010. package/lib/common/components/shared/InteractionTypes/styles.js +0 -2
  1011. package/lib/common/components/shared/InteractionTypes/theme.js +2 -4
  1012. package/lib/common/components/shared/PaginatedCollection/index.js +0 -8
  1013. package/lib/common/components/shared/PaginatedCollection/presenter.js +25 -51
  1014. package/lib/common/components/shared/PaginatedCollection/styles.js +0 -2
  1015. package/lib/common/components/shared/PaginatedCollection/theme.js +2 -4
  1016. package/lib/common/components/shared/Paginator/index.js +6 -25
  1017. package/lib/common/components/shared/Paginator/styles.js +0 -2
  1018. package/lib/common/components/shared/Paginator/theme.js +0 -2
  1019. package/lib/common/components/shared/PrintTrigger/index.js +0 -14
  1020. package/lib/common/components/shared/PrintTrigger/presenter.js +3 -42
  1021. package/lib/common/components/shared/TagDisplay/index.js +6 -25
  1022. package/lib/common/components/shared/TagDisplay/styles.js +0 -2
  1023. package/lib/common/components/shared/TagSelect/index.js +0 -3
  1024. package/lib/common/components/shared/TagSelect/presenter.js +11 -59
  1025. package/lib/common/components/shared/TagSuggestSelect/index.js +0 -10
  1026. package/lib/common/components/shared/TagSuggestSelect/presenter.js +7 -34
  1027. package/lib/common/components/shared/TagWrapper/index.js +0 -3
  1028. package/lib/common/components/shared/TagWrapper/presenter.js +3 -25
  1029. package/lib/common/components/shared/TimeUnitsInput/index.js +20 -68
  1030. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +13 -34
  1031. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -4
  1032. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -4
  1033. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +0 -15
  1034. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -66
  1035. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -88
  1036. package/lib/common/components/shared/errors/Errors.js +6 -29
  1037. package/lib/common/components/shared/errors/styles.js +0 -2
  1038. package/lib/common/components/shared/errors/theme.js +1 -3
  1039. package/lib/common/components/shared/file_selector/FileSelector.js +6 -24
  1040. package/lib/common/components/shared/file_selector/styles.js +0 -2
  1041. package/lib/common/components/shared/file_selector/theme.js +2 -4
  1042. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +4 -21
  1043. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +4 -19
  1044. package/lib/common/components/shared/functionality/disableDraggingOverride.js +0 -5
  1045. package/lib/common/components/shared/functionality/makeEditable.js +19 -48
  1046. package/lib/common/components/shared/functionality/makeScrollable.js +9 -44
  1047. package/lib/common/components/shared/overlay/index.js +17 -26
  1048. package/lib/common/components/shared/overlay/styles.js +0 -4
  1049. package/lib/common/components/shared/overlay/theme.js +2 -4
  1050. package/lib/common/components/shared/return_button/ReturnButton.js +0 -18
  1051. package/lib/common/components/shared/spinner/Spinner.js +12 -31
  1052. package/lib/common/components/shared/spinner/styles.js +0 -2
  1053. package/lib/common/kinesis/QuizEventsLogger.js +14 -45
  1054. package/lib/common/kinesis/StreamQueue.js +6 -29
  1055. package/lib/common/kinesis/client.js +1 -14
  1056. package/lib/common/kinesis/config.js +2 -11
  1057. package/lib/common/kinesis/eventTypes.js +4 -5
  1058. package/lib/common/middleware/alertTimerMiddleware.js +2 -8
  1059. package/lib/common/middleware/crossDomainMessagingMiddleware.js +0 -5
  1060. package/lib/common/middleware/eventLoggerMiddleware.js +1 -8
  1061. package/lib/common/middleware/persistedStorageMiddleware.js +1 -11
  1062. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +0 -29
  1063. package/lib/common/react-redux.js +1 -4
  1064. package/lib/common/records/Alert.js +0 -10
  1065. package/lib/common/records/Bank.js +0 -17
  1066. package/lib/common/records/BankEntry.js +0 -18
  1067. package/lib/common/records/Item.js +2 -21
  1068. package/lib/common/records/ItemAnalysis.js +0 -15
  1069. package/lib/common/records/QtiImport.js +0 -13
  1070. package/lib/common/records/Quiz.js +4 -28
  1071. package/lib/common/records/QuizAnalysis.js +0 -12
  1072. package/lib/common/records/QuizEntry.js +10 -78
  1073. package/lib/common/records/QuizSession.js +0 -23
  1074. package/lib/common/records/QuizSessionEvent.js +0 -12
  1075. package/lib/common/records/QuizSessionResult.js +0 -14
  1076. package/lib/common/records/Response.js +0 -14
  1077. package/lib/common/records/SessionItem.js +2 -23
  1078. package/lib/common/records/SessionItemResult.js +0 -13
  1079. package/lib/common/records/Stimulus.js +0 -16
  1080. package/lib/common/records/baseRecord.js +0 -21
  1081. package/lib/common/records/index.js +0 -17
  1082. package/lib/common/records/reduxRecord.js +0 -11
  1083. package/lib/common/reducers/alerts.js +0 -7
  1084. package/lib/common/reducers/analyses.js +0 -15
  1085. package/lib/common/reducers/bankEntries.js +0 -11
  1086. package/lib/common/reducers/bankSearch.js +4 -14
  1087. package/lib/common/reducers/banks.js +1 -19
  1088. package/lib/common/reducers/calls.js +0 -7
  1089. package/lib/common/reducers/config.js +0 -9
  1090. package/lib/common/reducers/dragAndDrop.js +0 -6
  1091. package/lib/common/reducers/editing.js +0 -7
  1092. package/lib/common/reducers/errorsShowing.js +0 -8
  1093. package/lib/common/reducers/features.js +0 -7
  1094. package/lib/common/reducers/grading.js +0 -8
  1095. package/lib/common/reducers/interactionTypes.js +0 -9
  1096. package/lib/common/reducers/items.js +0 -10
  1097. package/lib/common/reducers/modal.js +0 -10
  1098. package/lib/common/reducers/moderation.js +0 -8
  1099. package/lib/common/reducers/modifications.js +6 -44
  1100. package/lib/common/reducers/outcomes.js +0 -10
  1101. package/lib/common/reducers/printing.js +0 -6
  1102. package/lib/common/reducers/qtiImports.js +0 -11
  1103. package/lib/common/reducers/quizEntries.js +28 -46
  1104. package/lib/common/reducers/quizExport.js +0 -6
  1105. package/lib/common/reducers/quizSessionEvents.js +0 -9
  1106. package/lib/common/reducers/quizSessionResults.js +0 -9
  1107. package/lib/common/reducers/quizSessions.js +2 -18
  1108. package/lib/common/reducers/quizzes.js +0 -21
  1109. package/lib/common/reducers/rce.js +0 -9
  1110. package/lib/common/reducers/regrading.js +0 -9
  1111. package/lib/common/reducers/reporting.js +0 -18
  1112. package/lib/common/reducers/scrolling.js +0 -7
  1113. package/lib/common/reducers/sessionItemResults.js +0 -9
  1114. package/lib/common/reducers/sessionItems.js +0 -10
  1115. package/lib/common/reducers/sharedBanks.js +1 -13
  1116. package/lib/common/reducers/sidebar.js +0 -7
  1117. package/lib/common/reducers/stimuli.js +0 -10
  1118. package/lib/common/reducers/tagAssociations.js +0 -32
  1119. package/lib/common/reducers/taking.js +0 -40
  1120. package/lib/common/reducers/ui.js +0 -15
  1121. package/lib/common/reducers/upload.js +0 -11
  1122. package/lib/common/selectors/analyses.js +0 -14
  1123. package/lib/common/selectors/calculator.js +4 -11
  1124. package/lib/common/selectors/calls.js +0 -3
  1125. package/lib/common/selectors/config.js +0 -4
  1126. package/lib/common/selectors/interactionTypes.js +5 -13
  1127. package/lib/common/selectors/items.js +0 -7
  1128. package/lib/common/selectors/qtiImports.js +2 -9
  1129. package/lib/common/selectors/quizSessionResults.js +0 -5
  1130. package/lib/common/selectors/quizSessions.js +3 -14
  1131. package/lib/common/selectors/quizzes.js +4 -39
  1132. package/lib/common/selectors/rce.js +0 -4
  1133. package/lib/common/selectors/reporting.js +0 -6
  1134. package/lib/common/selectors/sessionItemResults.js +2 -10
  1135. package/lib/common/selectors/sessionItems.js +2 -11
  1136. package/lib/common/selectors/taking.js +0 -16
  1137. package/lib/common/selectors/ui.js +0 -2
  1138. package/lib/common/util/CustomPropTypes.js +0 -18
  1139. package/lib/common/util/ElementsForSelectors.js +0 -4
  1140. package/lib/common/util/ExhaustivePaginatedFetcher.js +7 -32
  1141. package/lib/common/util/Fetcher.js +24 -95
  1142. package/lib/common/util/MultiWeakMap.js +0 -21
  1143. package/lib/common/util/PaginatedFetcher.js +2 -29
  1144. package/lib/common/util/ThunkQueue.js +3 -33
  1145. package/lib/common/util/TimeRecordingService.js +0 -16
  1146. package/lib/common/util/TimerService.js +3 -50
  1147. package/lib/common/util/cachePreviousArgs.js +0 -7
  1148. package/lib/common/util/callHelpers.js +0 -10
  1149. package/lib/common/util/componentForItem.js +1 -11
  1150. package/lib/common/util/crossDomainMessaging.js +0 -2
  1151. package/lib/common/util/debounceLatestPromise.js +0 -6
  1152. package/lib/common/util/featureCheck.js +3 -13
  1153. package/lib/common/util/fetchHelpers.js +0 -1
  1154. package/lib/common/util/fitbCopyHelper.js +1 -4
  1155. package/lib/common/util/formatTimespan.js +0 -18
  1156. package/lib/common/util/generateDisplayPositions.js +2 -7
  1157. package/lib/common/util/httpHeaders.js +0 -4
  1158. package/lib/common/util/immutableHelpers.js +4 -10
  1159. package/lib/common/util/instUIMessages.js +0 -2
  1160. package/lib/common/util/interactionTypeMetadata.js +3 -9
  1161. package/lib/common/util/interactionTypePropsHelper.js +0 -14
  1162. package/lib/common/util/interactionTypeRecordForItem.js +1 -10
  1163. package/lib/common/util/jsonify.js +1 -5
  1164. package/lib/common/util/keyboardClickable.js +0 -2
  1165. package/lib/common/util/mathRenderingUtils.js +0 -2
  1166. package/lib/common/util/maxContent.js +0 -6
  1167. package/lib/common/util/modalHelpers.js +0 -2
  1168. package/lib/common/util/noop.js +0 -2
  1169. package/lib/common/util/persistedState.js +0 -13
  1170. package/lib/common/util/printUtils.js +0 -7
  1171. package/lib/common/util/rceChecker.js +1 -10
  1172. package/lib/common/util/renderAlerts.js +6 -17
  1173. package/lib/common/util/serializeEvent.js +0 -8
  1174. package/lib/common/util/sessionStore.js +4 -13
  1175. package/lib/common/util/valMap.js +0 -4
  1176. package/lib/common/util/warningHelpers.js +0 -27
  1177. package/lib/common/util/windowChecks.js +0 -10
  1178. package/lib/common/util/withCachedArguments.js +0 -9
  1179. package/lib/common/util/withDynamoPagination.js +14 -43
  1180. package/lib/common/util/withStateCache.js +0 -15
  1181. package/lib/config.js +2 -11
  1182. package/lib/configureStore.js +9 -60
  1183. package/lib/grading/api/quizEntryRegrades.js +3 -9
  1184. package/lib/grading/api/updateResults.js +0 -12
  1185. package/lib/index.js +0 -130
  1186. package/lib/messages/LocalStorageAdapter.js +0 -14
  1187. package/lib/messages/LocalStorageLimits.js +2 -25
  1188. package/lib/messages/StorageExhaustionError.js +1 -12
  1189. package/lib/messages/postMessageService.js +0 -29
  1190. package/lib/messages/subjectHandlers/forwardMessage.js +0 -2
  1191. package/lib/messages/subjectHandlers/lti.capabilities.js +0 -2
  1192. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +0 -2
  1193. package/lib/messages/subjectHandlers/lti.frameResize.js +0 -4
  1194. package/lib/messages/subjectHandlers/lti.get_data.js +2 -9
  1195. package/lib/messages/subjectHandlers/lti.put_data.js +3 -14
  1196. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +0 -7
  1197. package/lib/messages/utils.js +0 -1
  1198. package/lib/moderating/api/quizSessionEvents.js +0 -6
  1199. package/lib/moderating/api/quizSessions.js +0 -8
  1200. package/lib/moderating/components/events/Event.js +3 -33
  1201. package/lib/moderating/components/events/PageBlurredEvent.js +0 -14
  1202. package/lib/moderating/components/events/PageFocusedEvent.js +0 -14
  1203. package/lib/moderating/components/events/RCEEvent.js +0 -14
  1204. package/lib/moderating/components/events/ResponseEvent.js +5 -31
  1205. package/lib/moderating/components/events/SessionStartEvent.js +0 -19
  1206. package/lib/moderating/components/events/styles.js +0 -2
  1207. package/lib/moderating/components/events/theme.js +1 -3
  1208. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -33
  1209. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -32
  1210. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -33
  1211. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -35
  1212. package/lib/moderating/components/resources/AccommodationsModal/index.js +7 -42
  1213. package/lib/moderating/components/resources/ElapsedTime.js +5 -19
  1214. package/lib/moderating/components/resources/ModerateTable/index.js +0 -11
  1215. package/lib/moderating/components/resources/ModerateTable/presenter.js +24 -93
  1216. package/lib/moderating/components/resources/ModerateTable/styles.js +0 -4
  1217. package/lib/moderating/components/resources/ModerateTable/theme.js +1 -3
  1218. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -7
  1219. package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -8
  1220. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +21 -81
  1221. package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -6
  1222. package/lib/moderating/components/resources/ModerateTableRow/styles.js +0 -2
  1223. package/lib/moderating/components/resources/ModerateTableRow/theme.js +0 -2
  1224. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +0 -10
  1225. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -42
  1226. package/lib/moderating/components/sidebar/ModerateTray/index.js +0 -7
  1227. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +0 -39
  1228. package/lib/moderating/components/sidebar/ResetQuiz/index.js +0 -13
  1229. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -31
  1230. package/lib/reduxStore.js +0 -11
  1231. package/lib/reporting/api/getAnalysesExport.js +4 -18
  1232. package/lib/reporting/api/getAnalysesStatus.js +3 -13
  1233. package/lib/reporting/api/getItemAnalyses.js +3 -13
  1234. package/lib/reporting/api/getQuizAnalysis.js +3 -13
  1235. package/lib/reporting/api/itemAnalyses.js +0 -6
  1236. package/lib/reporting/api/quizAnalyses.js +0 -6
  1237. package/lib/reporting/components/Caption/index.js +6 -21
  1238. package/lib/reporting/components/Caption/styles.js +0 -2
  1239. package/lib/reporting/components/Caption/theme.js +2 -4
  1240. package/lib/reporting/components/MetricsListItem/index.js +9 -26
  1241. package/lib/reporting/components/MetricsListItem/styles.js +0 -2
  1242. package/lib/reporting/components/charts/CentileDistribution/index.js +0 -3
  1243. package/lib/reporting/components/charts/CentileDistribution/presenter.js +11 -45
  1244. package/lib/reporting/components/charts/CentileDistribution/styles.js +0 -4
  1245. package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -4
  1246. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +1 -2
  1247. package/lib/reporting/components/charts/Distribution/Distribution.js +0 -3
  1248. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +0 -3
  1249. package/lib/reporting/components/charts/Distribution/index.js +0 -3
  1250. package/lib/reporting/components/charts/Distribution/presenter.js +13 -60
  1251. package/lib/reporting/components/charts/Distribution/styles.js +0 -2
  1252. package/lib/reporting/components/charts/Distribution/theme.js +1 -3
  1253. package/lib/reporting/components/charts/Legend/index.js +9 -26
  1254. package/lib/reporting/components/charts/Legend/styles.js +0 -4
  1255. package/lib/reporting/components/charts/Legend/theme.js +3 -5
  1256. package/lib/reporting/components/charts/QuintileDistribution/index.js +0 -3
  1257. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +9 -42
  1258. package/lib/reporting/components/charts/QuintileDistribution/styles.js +0 -2
  1259. package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -3
  1260. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +0 -4
  1261. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +5 -37
  1262. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -9
  1263. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -7
  1264. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +0 -4
  1265. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +0 -9
  1266. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +15 -59
  1267. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -5
  1268. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -5
  1269. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +10 -42
  1270. package/lib/reporting/components/quizAnalysis/styles.js +0 -5
  1271. package/lib/reporting/components/quizAnalysis/theme.js +3 -5
  1272. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +0 -2
  1273. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +10 -25
  1274. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -2
  1275. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +0 -2
  1276. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +9 -25
  1277. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -5
  1278. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -21
  1279. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +0 -1
  1280. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -23
  1281. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +0 -1
  1282. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -24
  1283. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +0 -1
  1284. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +5 -36
  1285. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -4
  1286. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -2
  1287. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +0 -1
  1288. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +8 -34
  1289. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -2
  1290. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -2
  1291. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -30
  1292. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -25
  1293. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +0 -1
  1294. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +15 -53
  1295. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -4
  1296. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -2
  1297. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -30
  1298. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +0 -3
  1299. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -10
  1300. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +0 -1
  1301. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -29
  1302. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +0 -1
  1303. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +13 -67
  1304. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -2
  1305. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -2
  1306. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +0 -1
  1307. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +10 -45
  1308. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -2
  1309. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -2
  1310. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +0 -1
  1311. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -28
  1312. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +10 -34
  1313. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -2
  1314. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -3
  1315. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -25
  1316. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +0 -1
  1317. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -47
  1318. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +0 -1
  1319. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +9 -30
  1320. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -4
  1321. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -2
  1322. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +0 -1
  1323. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +0 -3
  1324. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +5 -28
  1325. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -2
  1326. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +0 -1
  1327. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +5 -51
  1328. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -2
  1329. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -2
  1330. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +0 -1
  1331. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +10 -67
  1332. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -4
  1333. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -3
  1334. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +0 -1
  1335. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +7 -32
  1336. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -2
  1337. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -2
  1338. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -14
  1339. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +0 -2
  1340. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +6 -35
  1341. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -2
  1342. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -2
  1343. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +0 -1
  1344. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +5 -19
  1345. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -2
  1346. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -2
  1347. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -5
  1348. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +0 -3
  1349. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +11 -62
  1350. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -4
  1351. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -5
  1352. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +0 -2
  1353. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +0 -3
  1354. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +8 -44
  1355. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -2
  1356. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -2
  1357. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +0 -4
  1358. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +19 -61
  1359. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -5
  1360. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -3
  1361. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +0 -2
  1362. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +7 -35
  1363. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -2
  1364. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -4
  1365. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -13
  1366. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +0 -18
  1367. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -19
  1368. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -15
  1369. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -13
  1370. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -28
  1371. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +0 -4
  1372. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +20 -78
  1373. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +0 -38
  1374. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -2
  1375. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -2
  1376. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -10
  1377. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -16
  1378. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -70
  1379. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +0 -5
  1380. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -29
  1381. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -12
  1382. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +0 -10
  1383. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +17 -58
  1384. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -2
  1385. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -4
  1386. package/lib/reporting/components/resources/ReportCard/index.js +9 -28
  1387. package/lib/reporting/components/resources/ReportCard/styles.js +0 -4
  1388. package/lib/reporting/components/resources/ReportCard/theme.js +1 -3
  1389. package/lib/reporting/components/resources/ReportList/index.js +9 -25
  1390. package/lib/reporting/components/resources/ReportList/styles.js +0 -2
  1391. package/lib/reporting/components/resources/ReportList/theme.js +0 -2
  1392. package/lib/taking/api/taking.js +30 -78
  1393. package/lib/taking/learnosity/index.js +9 -40
  1394. package/package.json +11 -12
@@ -1,7 +1,7 @@
1
1
  var generateComponentTheme = function generateComponentTheme(_ref) {
2
2
  var spacing = _ref.spacing,
3
- colors = _ref.colors,
4
- borders = _ref.borders;
3
+ colors = _ref.colors,
4
+ borders = _ref.borders;
5
5
  return {
6
6
  DnDZoneBorderWidth: borders.widthSmall,
7
7
  DnDZoneBorderColor: colors.tiara,
@@ -16,5 +16,4 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
16
16
  sidebarDnDZoneColor: colors.licorice
17
17
  };
18
18
  };
19
-
20
19
  export default generateComponentTheme;
@@ -12,70 +12,45 @@ import { IconArrowDownLine, IconArrowUpLine, IconDragHandleLine, IconMiniArrowDo
12
12
  import t from '@instructure/quiz-i18n/es/format-message';
13
13
  import keyboardClickable from "../../../../../common/util/keyboardClickable.js";
14
14
  import { MOVE_IMMUTABLE_DATA, SIDEBAR_NAV_ID, MOVED_QUIZ_ENTRY, MOVED_IN_SIDEBAR, MOVE } from '@instructure/quiz-common';
15
-
16
15
  var _ref = /*#__PURE__*/React.createElement(IconArrowUpLine, null);
17
-
18
16
  var _ref2 = /*#__PURE__*/React.createElement(IconMiniArrowUpLine, null);
19
-
20
17
  var _ref3 = /*#__PURE__*/React.createElement(IconMiniArrowDownLine, null);
21
-
22
18
  var _ref4 = /*#__PURE__*/React.createElement(IconArrowDownLine, null);
23
-
24
19
  export var DragHandle = /*#__PURE__*/function (_Component) {
25
20
  _inherits(DragHandle, _Component);
26
-
27
21
  var _super = _createSuper(DragHandle);
28
-
29
22
  function DragHandle() {
30
23
  var _this;
31
-
32
24
  _classCallCheck(this, DragHandle);
33
-
34
25
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
35
26
  args[_key] = arguments[_key];
36
27
  }
37
-
38
28
  _this = _super.call.apply(_super, [this].concat(args));
39
-
40
29
  _this.moveUp = function () {
41
30
  _this.moveToPosition(_this.props.quizEntry.position - 1);
42
-
43
31
  var msg = t('Question moved one space up.');
44
-
45
32
  _this.props.screenreaderNotification(msg);
46
33
  };
47
-
48
34
  _this.moveDown = function () {
49
35
  _this.moveToPosition(_this.props.quizEntry.position + 1);
50
-
51
36
  var msg = t('Question moved one space down.');
52
-
53
37
  _this.props.screenreaderNotification(msg);
54
38
  };
55
-
56
39
  _this.moveToTop = function () {
57
40
  _this.moveQuizEntry(1, '');
58
-
59
41
  var msg = t('Question moved to top of assessment.');
60
-
61
42
  _this.props.screenreaderNotification(msg);
62
43
  };
63
-
64
44
  _this.moveToBottom = function () {
65
45
  _this.moveQuizEntry(_this.props.quizEntries.size, '');
66
-
67
46
  var msg = t('Question moved to bottom of assessment.');
68
-
69
47
  _this.props.screenreaderNotification(msg);
70
48
  };
71
-
72
49
  _this.handleTriggerRef = function (node) {
73
50
  _this.triggerRef = node;
74
51
  };
75
-
76
52
  return _this;
77
53
  }
78
-
79
54
  _createClass(DragHandle, [{
80
55
  key: "componentDidMount",
81
56
  value: function componentDidMount() {
@@ -91,7 +66,6 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
91
66
  value: function conditionalFocus() {
92
67
  var matchingQuizEntryId = this.props.movedQuizEntry === this.props.quizEntry.id;
93
68
  var matchingLocation = this.props.onSidebar === this.props.movedInSidebar;
94
-
95
69
  if (matchingQuizEntryId && matchingLocation) {
96
70
  this.triggerRef && this.triggerRef.focus();
97
71
  this.props.clearUI(MOVED_QUIZ_ENTRY);
@@ -107,8 +81,8 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
107
81
  key: "isLastItem",
108
82
  value: function isLastItem() {
109
83
  var _this$props = this.props,
110
- quizEntry = _this$props.quizEntry,
111
- quizEntries = _this$props.quizEntries;
84
+ quizEntry = _this$props.quizEntry,
85
+ quizEntries = _this$props.quizEntries;
112
86
  var numItems = quizEntry.hasStimulus ? quizEntry.getNestedEntries().size : 0;
113
87
  var position = quizEntry.position + numItems;
114
88
  return position === quizEntries.size;
@@ -117,11 +91,10 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
117
91
  key: "handleMove",
118
92
  value: function handleMove(position, stimulusQuizEntryId) {
119
93
  var _this$props2 = this.props,
120
- quizEntry = _this$props2.quizEntry,
121
- quizId = _this$props2.quizId;
94
+ quizEntry = _this$props2.quizEntry,
95
+ quizId = _this$props2.quizId;
122
96
  var stimulusQuizEntryIdChanged = stimulusQuizEntryId !== quizEntry.stimulusQuizEntryId;
123
97
  var isImmutable = quizEntry.isItem ? quizEntry.getEntry().isImmutable() : false;
124
-
125
98
  if (isImmutable && stimulusQuizEntryIdChanged) {
126
99
  var uiData = Map({
127
100
  movedInSidebar: this.props.onSidebar,
@@ -148,27 +121,24 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
148
121
  var quizEntry = this.props.quizEntry;
149
122
  var movingDown = position > quizEntry.position;
150
123
  var newPosition = position;
151
-
152
124
  if (movingDown && quizEntry.hasStimulus) {
153
125
  newPosition = position + quizEntry.getNestedEntries().size;
154
126
  }
155
-
156
127
  var targetQuizEntry = this.props.quizEntries.find(function (qe) {
157
128
  return qe.position === newPosition;
158
129
  });
159
-
160
130
  if (targetQuizEntry === void 0) {
161
131
  var newPos = movingDown ? this.props.quizEntries.size : 1;
162
132
  this.moveQuizEntry(newPos, '');
163
133
  return;
164
134
  }
165
-
166
135
  var inStimulus = quizEntry.isInStimulus;
167
136
  var targetInStimulus = targetQuizEntry.isInStimulus;
168
137
  var losingStimulusQuizEntryId = inStimulus && !targetInStimulus;
169
138
  var receivingStimulusQuizEntryId = !inStimulus && targetInStimulus;
170
- var newStimulusQuizEntryId = quizEntry.stimulusQuizEntryId; // Handling moving of stimulus groups:
139
+ var newStimulusQuizEntryId = quizEntry.stimulusQuizEntryId;
171
140
 
141
+ // Handling moving of stimulus groups:
172
142
  if (quizEntry.hasStimulus) {
173
143
  if (movingDown && targetQuizEntry.hasStimulus) {
174
144
  newPosition += targetQuizEntry.getNestedEntries().size;
@@ -177,12 +147,13 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
177
147
  return qe.id === targetQuizEntry.stimulusQuizEntryId;
178
148
  });
179
149
  newPosition = position - targetStimulusQuizEntry.getNestedEntries().size;
180
- } // This block is for handling moving of items in/out/around stimuli.
150
+ }
151
+
152
+ // This block is for handling moving of items in/out/around stimuli.
181
153
  // For example, when moving down, out of a stimulus group, you don't actually
182
154
  // want the position of the quizEntry to change, you just want to change the
183
155
  // stimulusQuizEntryId, so that it's no longer associated with the stimulus.
184
156
  // There are 4 such cases:
185
-
186
157
  } else if (targetQuizEntry.hasStimulus && !inStimulus) {
187
158
  newPosition = movingDown ? position : position + 1;
188
159
  newStimulusQuizEntryId = targetQuizEntry.id;
@@ -196,13 +167,13 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
196
167
  newPosition = position - 1;
197
168
  newStimulusQuizEntryId = '';
198
169
  }
199
-
200
170
  this.moveQuizEntry(newPosition, newStimulusQuizEntryId);
201
171
  }
202
172
  }, {
203
173
  key: "renderIcon",
204
174
  value: function renderIcon() {
205
- return /*#__PURE__*/React.createElement(IconButton // must be a button when disabled for the screenreader to read it properly
175
+ return /*#__PURE__*/React.createElement(IconButton
176
+ // must be a button when disabled for the screenreader to read it properly
206
177
  // must be a div when enabled to allow dragging in firefox
207
178
  , {
208
179
  as: this.props.disabled ? 'button' : 'div',
@@ -222,36 +193,32 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
222
193
  key: "renderMenuItems",
223
194
  value: function renderMenuItems() {
224
195
  var menuItems = [];
225
-
226
196
  if (!this.isFirstItem()) {
227
- menuItems.push( /*#__PURE__*/React.createElement(Menu.Item, {
197
+ menuItems.push(/*#__PURE__*/React.createElement(Menu.Item, {
228
198
  key: "toTop",
229
199
  onSelect: this.moveToTop
230
200
  }, _ref, t('Move to Top')));
231
- menuItems.push( /*#__PURE__*/React.createElement(Menu.Item, {
201
+ menuItems.push(/*#__PURE__*/React.createElement(Menu.Item, {
232
202
  key: "moveUp",
233
203
  onSelect: this.moveUp
234
204
  }, _ref2, t('Move Up')));
235
205
  }
236
-
237
206
  if (!this.isLastItem() || this.props.quizEntry.isInStimulus) {
238
- menuItems.push( /*#__PURE__*/React.createElement(Menu.Item, {
207
+ menuItems.push(/*#__PURE__*/React.createElement(Menu.Item, {
239
208
  key: "moveDown",
240
209
  onSelect: this.moveDown
241
210
  }, _ref3, t('Move Down')));
242
- menuItems.push( /*#__PURE__*/React.createElement(Menu.Item, {
211
+ menuItems.push(/*#__PURE__*/React.createElement(Menu.Item, {
243
212
  key: "toBottom",
244
213
  onSelect: this.moveToBottom
245
214
  }, _ref4, t('Move to Bottom')));
246
215
  }
247
-
248
216
  return menuItems;
249
217
  }
250
218
  }, {
251
219
  key: "render",
252
220
  value: function render() {
253
221
  var menuItems = this.renderMenuItems();
254
-
255
222
  if (!this.props.disabled && menuItems.length > 0) {
256
223
  return /*#__PURE__*/React.createElement(Menu, {
257
224
  trigger: this.renderIcon(),
@@ -260,7 +227,6 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
260
227
  placement: this.props.onSidebar ? 'start' : void 0
261
228
  }, menuItems);
262
229
  }
263
-
264
230
  return this.renderIcon();
265
231
  }
266
232
  }, {
@@ -269,7 +235,6 @@ export var DragHandle = /*#__PURE__*/function (_Component) {
269
235
  return document.getElementById(SIDEBAR_NAV_ID);
270
236
  }
271
237
  }]);
272
-
273
238
  DragHandle.displayName = "DragHandle";
274
239
  return DragHandle;
275
240
  }(Component);
@@ -11,11 +11,10 @@ export function getBoundsForComponent(component) {
11
11
  }
12
12
  export var posObjFromQuizEntry = cachePreviousArgs(function (quizEntryDragging, quizEntryHovered, mousePos, component, inSidebar) {
13
13
  var _getBoundsForComponen = getBoundsForComponent(component),
14
- top = _getBoundsForComponen.top,
15
- bottom = _getBoundsForComponen.bottom,
16
- left = _getBoundsForComponen.left,
17
- right = _getBoundsForComponen.right;
18
-
14
+ top = _getBoundsForComponen.top,
15
+ bottom = _getBoundsForComponen.bottom,
16
+ left = _getBoundsForComponen.left,
17
+ right = _getBoundsForComponen.right;
19
18
  var midY = top + (bottom - top) / 2;
20
19
  var midX = left + (right - left) / 2;
21
20
  var onRightHalf = mousePos.x > midX;
@@ -26,8 +25,9 @@ export var posObjFromQuizEntry = cachePreviousArgs(function (quizEntryDragging,
26
25
  intoEmptyStimulus: false,
27
26
  aboveHalf: aboveHalf,
28
27
  fromAbove: quizEntryHovered.position > quizEntryDragging.position
29
- }; // handle dragging items over stimulus
28
+ };
30
29
 
30
+ // handle dragging items over stimulus
31
31
  if (!quizEntryDragging.hasStimulus && quizEntryHovered.hasStimulus && (onRightHalf || inSidebar)) {
32
32
  if (deepInsideEntry && quizEntryHovered.getNestedEntries().size === 0) {
33
33
  newPositionObj.intoEmptyStimulus = true;
@@ -39,21 +39,17 @@ export var posObjFromQuizEntry = cachePreviousArgs(function (quizEntryDragging,
39
39
  return null;
40
40
  }
41
41
  }
42
-
43
42
  var draggingStimulusInStimulus = quizEntryDragging.hasStimulus && quizEntryHovered.isInStimulus;
44
43
  var ignoreItemHover = quizEntryHovered.isInStimulus && !deepInsideEntry && !inSidebar;
45
-
46
44
  if (draggingStimulusInStimulus || ignoreItemHover) {
47
45
  return null;
48
46
  }
49
-
50
47
  return newPositionObj;
51
48
  });
52
49
  export function posObjFromNonQuizEntry(quizEntryDragging, startComp, endComp, mousePos, quizEntries) {
53
50
  // check if dropping above all quizEntries
54
51
  var _getBoundsForComponen2 = getBoundsForComponent(startComp),
55
- bottom = _getBoundsForComponen2.bottom;
56
-
52
+ bottom = _getBoundsForComponen2.bottom;
57
53
  if (mousePos.y < bottom) {
58
54
  return {
59
55
  position: 1,
@@ -61,28 +57,24 @@ export function posObjFromNonQuizEntry(quizEntryDragging, startComp, endComp, mo
61
57
  aboveHalf: true,
62
58
  fromAbove: false
63
59
  };
64
- } // check if dropping below all quizEntries
65
-
60
+ }
66
61
 
62
+ // check if dropping below all quizEntries
67
63
  var _getBoundsForComponen3 = getBoundsForComponent(endComp),
68
- top = _getBoundsForComponen3.top;
69
-
64
+ top = _getBoundsForComponen3.top;
70
65
  if (mousePos.y > top) {
71
66
  var lastQuizEntry = quizEntries.maxBy(function (quizEntry) {
72
67
  return quizEntry.position;
73
68
  });
74
69
  var position = lastQuizEntry.position;
75
-
76
70
  if (lastQuizEntry.isInStimulus) {
77
71
  var stimulusQuizEntry = quizEntries.find(function (qe) {
78
72
  return qe.id === lastQuizEntry.stimulusQuizEntryId;
79
73
  });
80
-
81
74
  if (stimulusQuizEntry) {
82
75
  position = stimulusQuizEntry.position;
83
76
  }
84
77
  }
85
-
86
78
  return {
87
79
  position: position,
88
80
  intoEmptyStimulus: false,
@@ -90,54 +82,44 @@ export function posObjFromNonQuizEntry(quizEntryDragging, startComp, endComp, mo
90
82
  fromAbove: position > quizEntryDragging.position
91
83
  };
92
84
  }
93
-
94
85
  return null;
95
86
  }
96
-
97
87
  function createPositionObj(props, monitor, component, inSidebar) {
98
88
  var itemData = monitor.getItem();
99
89
  var mousePos = monitor.getClientOffset() || {};
100
90
  var newPositionObj = null;
101
-
102
91
  if (props.quizEntry) {
103
92
  newPositionObj = posObjFromQuizEntry(itemData.quizEntry, props.quizEntry, mousePos, component, inSidebar);
104
93
  } else {
105
94
  var startQuizEntries = component.startQuizEntries,
106
- endQuizEntries = component.endQuizEntries;
95
+ endQuizEntries = component.endQuizEntries;
107
96
  newPositionObj = posObjFromNonQuizEntry(itemData.quizEntry, startQuizEntries, endQuizEntries, mousePos, props.quizEntries);
108
97
  }
109
-
110
98
  return newPositionObj;
111
- } // createPosition arg is so that tests can stub it
112
-
99
+ }
113
100
 
101
+ // createPosition arg is so that tests can stub it
114
102
  export var onQuizEntryHover = debounce(function (props, monitor, component, refname) {
115
103
  var createPosition = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : createPositionObj;
116
104
  var inSidebar = refname === SIDEBAR_ITEM_REF;
117
-
118
105
  if (inSidebar && !props.sidebarOpen) {
119
106
  return;
120
107
  }
121
-
122
108
  var itemData = monitor.getItem();
123
-
124
109
  if (itemData === null) {
125
110
  return;
126
111
  }
127
-
128
112
  var newPositionObj = createPosition(props, monitor, component, inSidebar);
129
113
  if (newPositionObj === null) return;
130
114
  var samePosition = newPositionObj.position === itemData.position;
131
115
  var sameAboveHalf = newPositionObj.aboveHalf === itemData.aboveHalf;
132
116
  var sameIntoEmptyStimulus = newPositionObj.intoEmptyStimulus === itemData.intoEmptyStimulus;
133
-
134
117
  if (samePosition && sameAboveHalf && sameIntoEmptyStimulus) {
135
118
  return;
136
- } // mutation used here to avoid rerendering on every mouse pixel move
119
+ }
120
+ // mutation used here to avoid rerendering on every mouse pixel move
137
121
  // author of React DnD acknoledges shortcomings of mutations but
138
122
  // recommends it here for performance purposes
139
-
140
-
141
123
  Object.assign(monitor.getItem(), {
142
124
  position: newPositionObj.position,
143
125
  aboveHalf: newPositionObj.aboveHalf,
@@ -145,7 +127,6 @@ export var onQuizEntryHover = debounce(function (props, monitor, component, refn
145
127
  });
146
128
  props.newHoverPosition(newPositionObj);
147
129
  });
148
-
149
130
  function positionOfTempItem(quizEntries) {
150
131
  // TODO: replace the use of chain with lodash/fp functions and flow
151
132
  return chain(quizEntries.toJS()).sortBy(function (qe) {
@@ -154,33 +135,26 @@ function positionOfTempItem(quizEntries) {
154
135
  return qe.id;
155
136
  }).indexOf(TEMPORARY_QUIZ_ENTRY_ID).value() + 1;
156
137
  }
157
-
158
138
  function newPositionFromPositionObj(newPositionObj, originalItemPosition) {
159
139
  if (newPositionObj.intoEmptyStimulus) {
160
140
  var offset = newPositionObj.fromAbove ? 0 : 1;
161
141
  return newPositionObj.position + offset;
162
142
  }
163
-
164
143
  if (newPositionObj.position === originalItemPosition) {
165
144
  return newPositionObj.position;
166
145
  }
167
-
168
146
  if (newPositionObj.fromAbove && newPositionObj.aboveHalf) {
169
147
  return newPositionObj.position - 1;
170
148
  }
171
-
172
149
  if (!newPositionObj.fromAbove && !newPositionObj.aboveHalf) {
173
150
  return newPositionObj.position + 1;
174
151
  }
175
-
176
152
  return newPositionObj.position;
177
153
  }
178
-
179
154
  function handleDrop(props, newPosition, newStimulusQuizEntryId, oldStimulusQuizEntryId, itemData, moveTempItem, inSidebar) {
180
155
  var quizEntry = itemData.quizEntry;
181
156
  var stimulusQuizEntryIdChanged = newStimulusQuizEntryId !== oldStimulusQuizEntryId;
182
157
  var isImmutable = quizEntry.isItem ? quizEntry.getEntry().isImmutable() : false;
183
-
184
158
  if (isImmutable && stimulusQuizEntryIdChanged) {
185
159
  var uiData = Map({
186
160
  movedInSidebar: inSidebar,
@@ -196,7 +170,6 @@ function handleDrop(props, newPosition, newStimulusQuizEntryId, oldStimulusQuizE
196
170
  props.moveQuizEntry(props.quizId, newPosition, newStimulusQuizEntryId, quizEntry.id, moveTempItem);
197
171
  }
198
172
  }
199
-
200
173
  export function onQuizEntryDrop(props, monitor, component, refname) {
201
174
  var inSidebar = refname === SIDEBAR_ITEM_REF;
202
175
  var handledDrop = monitor.getDropResult() && monitor.getDropResult().handledDrop;
@@ -204,29 +177,23 @@ export function onQuizEntryDrop(props, monitor, component, refname) {
204
177
  var movingQuizEntry = itemData.quizEntry;
205
178
  var hoveredQuizEntry = props.quizEntry;
206
179
  var dropStimIntoStim = movingQuizEntry.hasStimulus && hoveredQuizEntry && hoveredQuizEntry.isInStimulus;
207
-
208
180
  if (inSidebar && !props.sidebarOpen || handledDrop || !props.dndPositionObj || dropStimIntoStim) {
209
181
  return {
210
182
  handledDrop: handledDrop || false
211
183
  };
212
184
  }
213
-
214
185
  var quizEntries = props.quizEntries;
215
186
  var originalItemPosition = movingQuizEntry.position;
216
187
  var newStimulusQuizEntryId = '';
217
-
218
188
  var findPositionInList = function findPositionInList(quizEntriesList) {
219
189
  var newPositionObj = props.dndPositionObj.toJS() || itemData;
220
190
  var targetQuizEntry = quizEntriesList.find(function (qe) {
221
191
  return qe.position === newPositionObj.position;
222
192
  });
223
-
224
193
  if (movingQuizEntry.id === targetQuizEntry && targetQuizEntry.id) {
225
194
  return newPositionObj.position;
226
195
  }
227
-
228
196
  var targetIsStimulus = targetQuizEntry && targetQuizEntry.hasStimulus;
229
-
230
197
  if (targetIsStimulus && newPositionObj.intoEmptyStimulus) {
231
198
  // into empty
232
199
  newStimulusQuizEntryId = targetQuizEntry.id;
@@ -236,57 +203,45 @@ export function onQuizEntryDrop(props, monitor, component, refname) {
236
203
  } else {
237
204
  newStimulusQuizEntryId = targetQuizEntry && targetQuizEntry.stimulusQuizEntryId || '';
238
205
  }
239
-
240
206
  return newPositionFromPositionObj(newPositionObj, originalItemPosition);
241
207
  };
242
-
243
208
  if (movingQuizEntry.id === TEMPORARY_QUIZ_ENTRY_ID) {
244
209
  var newPosition = findPositionInList(quizEntries);
245
-
246
210
  if (newPosition === originalItemPosition) {
247
211
  return {
248
212
  handledDrop: true
249
213
  };
250
214
  }
251
-
252
215
  var movingDown = newPosition > originalItemPosition;
253
216
  props.moveTemporaryQuizEntry(newPosition, newStimulusQuizEntryId, movingDown);
254
217
  } else {
255
218
  var quizEntriesWithoutTemp = quizEntries.filterNot(function (qe) {
256
219
  return qe.id === TEMPORARY_QUIZ_ENTRY_ID;
257
220
  });
258
-
259
221
  var _newPosition = findPositionInList(quizEntriesWithoutTemp);
260
-
261
222
  var newPositionIncludingTemp = findPositionInList(quizEntries);
262
223
  var tempItemPosition = positionOfTempItem(quizEntries);
263
224
  var originBelowTemp = originalItemPosition >= tempItemPosition;
264
225
  var originAboveTemp = originalItemPosition < tempItemPosition;
265
226
  var droppedPastTemp = originBelowTemp && newPositionIncludingTemp < tempItemPosition || originAboveTemp && newPositionIncludingTemp > tempItemPosition;
266
227
  var droppedOnTemp = tempItemPosition === newPositionIncludingTemp;
267
-
268
228
  var moveTempItem = function moveTempItem() {
269
229
  if (droppedPastTemp || droppedOnTemp) {
270
230
  var directionToMoveTempItem = originAboveTemp ? 'up' : 'down';
271
-
272
231
  var _movingDown = !originAboveTemp;
273
-
274
232
  props.moveTemporaryQuizEntry(directionToMoveTempItem, newStimulusQuizEntryId, _movingDown);
275
233
  }
276
234
  };
277
-
278
235
  var oldStimulusQuizEntryId = movingQuizEntry.stimulusQuizEntryId || '';
279
236
  var samePosition = _newPosition === originalItemPosition;
280
237
  var sameStimulus = newStimulusQuizEntryId === oldStimulusQuizEntryId;
281
238
  var stimulusBelowItself = movingQuizEntry.hasStimulus && hoveredQuizEntry && hoveredQuizEntry.id === movingQuizEntry.id && _newPosition === originalItemPosition + movingQuizEntry.positionSlots + (movingQuizEntry.positionSlots ? 1 : 0);
282
-
283
239
  if (samePosition && sameStimulus || stimulusBelowItself) {
284
240
  moveTempItem();
285
241
  return {
286
242
  handledDrop: true
287
243
  };
288
244
  }
289
-
290
245
  handleDrop(props, _newPosition, newStimulusQuizEntryId, oldStimulusQuizEntryId, itemData, moveTempItem, inSidebar);
291
246
  return {
292
247
  handledDrop: true
@@ -311,13 +266,16 @@ export var dropTarget = function dropTarget(refname) {
311
266
  onQuizEntryHover(props, monitor, component, refname);
312
267
  }
313
268
  };
314
- }; // - ItemTypes.QUIZ_ENTRY associates this component drop target with a name
269
+ };
270
+
271
+ // - ItemTypes.QUIZ_ENTRY associates this component drop target with a name
315
272
  // - dropTarget specifies functions React DnD will call for events with this component
316
273
  // - collectDrop injects props into component
317
-
318
274
  export var DropTargetCreator = function DropTargetCreator(refname) {
319
275
  return DropTarget(ItemTypes.QUIZ_ENTRY, dropTarget(refname), collectDrop);
320
- }; // ///////////////// //
276
+ };
277
+
278
+ // ///////////////// //
321
279
  // DRAG SOURCE STUFF //
322
280
  // ///////////////// //
323
281
 
@@ -2,9 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
4
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
-
6
- var _dec, _class, _class2, _temp;
7
-
5
+ var _dec, _class, _Errors;
8
6
  /** @jsx jsx */
9
7
  import { Component } from 'react';
10
8
  import { List } from 'immutable';
@@ -13,22 +11,16 @@ import PropTypes from 'prop-types';
13
11
  import { withStyle, jsx } from '@instructure/emotion';
14
12
  import generateStyle from "./styles.js";
15
13
  import generateComponentTheme from "./theme.js";
16
- export var Errors = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
14
+ export var Errors = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Errors = /*#__PURE__*/function (_Component) {
17
15
  _inherits(Errors, _Component);
18
-
19
16
  var _super = _createSuper(Errors);
20
-
21
17
  function Errors() {
22
18
  var _this;
23
-
24
19
  _classCallCheck(this, Errors);
25
-
26
20
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27
21
  args[_key] = arguments[_key];
28
22
  }
29
-
30
23
  _this = _super.call.apply(_super, [this].concat(args));
31
-
32
24
  _this.renderError = function (errorText, i) {
33
25
  var key = "error_for_".concat(i);
34
26
  return jsx("div", {
@@ -37,33 +29,28 @@ export var Errors = (_dec = withStyle(generateStyle, generateComponentTheme), _d
37
29
  "data-automation": "sdk-core-error"
38
30
  }, errorText);
39
31
  };
40
-
41
32
  return _this;
42
33
  }
43
-
44
34
  _createClass(Errors, [{
45
35
  key: "render",
46
36
  value: function render() {
47
37
  var _this$props$errorList;
48
-
49
38
  if (this.props.errorList.size === 0) {
50
39
  return null;
51
40
  }
52
-
53
41
  return jsx("div", {
54
42
  css: this.props.styles.errors,
55
43
  "data-testid": "errors-container"
56
44
  }, (_this$props$errorList = this.props.errorList) === null || _this$props$errorList === void 0 ? void 0 : _this$props$errorList.toArray().map(this.renderError));
57
45
  }
58
46
  }]);
59
-
60
47
  Errors.displayName = "Errors";
61
48
  return Errors;
62
- }(Component), _class2.propTypes = {
49
+ }(Component), _Errors.propTypes = {
63
50
  errorList: ImmutablePropTypes.list,
64
51
  // eslint-disable-next-line react/require-default-props,react/forbid-prop-types
65
52
  styles: PropTypes.object
66
- }, _class2.defaultProps = {
53
+ }, _Errors.defaultProps = {
67
54
  errorList: List()
68
- }, _temp)) || _class);
55
+ }, _Errors)) || _class);
69
56
  export default Errors;
@@ -13,5 +13,4 @@ var generateStyle = function generateStyle(componentTheme) {
13
13
  }
14
14
  };
15
15
  };
16
-
17
16
  export default generateStyle;
@@ -1,11 +1,10 @@
1
1
  var generateComponentTheme = function generateComponentTheme(_ref) {
2
2
  var colors = _ref.colors,
3
- typography = _ref.typography;
3
+ typography = _ref.typography;
4
4
  return {
5
5
  errorFontFamily: typography.fontFamily,
6
6
  errorFontSize: typography.fontSizeSmall,
7
7
  errorColor: colors.crimson
8
8
  };
9
9
  };
10
-
11
10
  export default generateComponentTheme;
@@ -3,9 +3,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
3
  import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
4
4
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
5
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
-
7
- var _dec, _class, _class2, _temp;
8
-
6
+ var _dec, _class, _FileSelector;
9
7
  /** @jsx jsx */
10
8
  import { List } from 'immutable';
11
9
  import { Component } from 'react';
@@ -14,21 +12,16 @@ import Dropzone from 'react-dropzone';
14
12
  import { withStyle, jsx } from '@instructure/emotion';
15
13
  import generateStyle from "./styles.js";
16
14
  import generateComponentTheme from "./theme.js";
17
- export var FileSelector = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
15
+ export var FileSelector = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_FileSelector = /*#__PURE__*/function (_Component) {
18
16
  _inherits(FileSelector, _Component);
19
-
20
17
  var _super = _createSuper(FileSelector);
21
-
22
18
  function FileSelector() {
23
19
  var _this;
24
-
25
20
  _classCallCheck(this, FileSelector);
26
-
27
21
  _this = _super.call(this);
28
22
  _this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this));
29
23
  return _this;
30
24
  }
31
-
32
25
  _createClass(FileSelector, [{
33
26
  key: "onDrop",
34
27
  value: function onDrop(files) {
@@ -51,16 +44,15 @@ export var FileSelector = (_dec = withStyle(generateStyle, generateComponentThem
51
44
  }, this.renderContent()));
52
45
  }
53
46
  }]);
54
-
55
47
  FileSelector.displayName = "FileSelector";
56
48
  return FileSelector;
57
- }(Component), _class2.propTypes = {
49
+ }(Component), _FileSelector.propTypes = {
58
50
  acceptAttribute: PropTypes.string.isRequired,
59
51
  content: PropTypes.node.isRequired,
60
52
  fileHandler: PropTypes.func.isRequired,
61
53
  multiple: PropTypes.bool,
62
54
  styles: PropTypes.object
63
- }, _class2.defaultProps = {
55
+ }, _FileSelector.defaultProps = {
64
56
  multiple: false
65
- }, _temp)) || _class);
57
+ }, _FileSelector)) || _class);
66
58
  export default FileSelector;