@instructure/quiz-core 21.0.1-rc.2 → 21.0.1-rc.22

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 (1369) hide show
  1. package/es/banks/api/bankEntries.js +13 -13
  2. package/es/banks/api/banks.js +26 -24
  3. package/es/banks/api/copyingBanksPoller.js +51 -53
  4. package/es/banks/api/tagAssociations.js +23 -27
  5. package/es/banks/components/AddBankEntryModal/index.js +7 -7
  6. package/es/banks/components/AddBankEntryModal/presenter.js +42 -29
  7. package/es/banks/components/AddToBankModal/index.js +8 -8
  8. package/es/banks/components/AddToBankModal/presenter.js +67 -55
  9. package/es/banks/components/AsyncSearch/index.js +102 -88
  10. package/es/banks/components/Bank/index.js +12 -12
  11. package/es/banks/components/Bank/presenter.js +138 -130
  12. package/es/banks/components/Bank/styles.js +2 -1
  13. package/es/banks/components/Bank/theme.js +1 -1
  14. package/es/banks/components/BankEntriesList/index.js +3 -3
  15. package/es/banks/components/BankEntriesList/presenter.js +36 -23
  16. package/es/banks/components/BankEntry/index.js +14 -14
  17. package/es/banks/components/BankEntry/presenter.js +228 -224
  18. package/es/banks/components/BankEntry/styles.js +3 -1
  19. package/es/banks/components/BankEntry/theme.js +5 -5
  20. package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -2
  21. package/es/banks/components/BankEntryRow/index.js +9 -9
  22. package/es/banks/components/BankEntryRow/presenter.js +79 -67
  23. package/es/banks/components/BankEntryRow/styles.js +0 -1
  24. package/es/banks/components/BankEntryRow/theme.js +4 -4
  25. package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
  26. package/es/banks/components/BankSearch/index.js +4 -4
  27. package/es/banks/components/BankSearch/presenter.js +40 -27
  28. package/es/banks/components/Banks/index.js +7 -7
  29. package/es/banks/components/Banks/presenter.js +141 -128
  30. package/es/banks/components/Banks/theme.js +2 -2
  31. package/es/banks/components/BanksList/index.js +7 -7
  32. package/es/banks/components/BanksList/presenter.js +153 -148
  33. package/es/banks/components/BanksList/theme.js +4 -4
  34. package/es/banks/components/CopyMoveBankEntryModal/index.js +8 -8
  35. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +165 -85
  36. package/es/banks/components/CreateBankModal/index.js +10 -10
  37. package/es/banks/components/CreateBankModal/presenter.js +62 -49
  38. package/es/banks/components/EditBankModal/index.js +7 -7
  39. package/es/banks/components/EditBankModal/presenter.js +54 -41
  40. package/es/banks/components/HeaderBreadCrumb/index.js +29 -16
  41. package/es/banks/components/HeaderMenu/index.js +4 -4
  42. package/es/banks/components/HeaderMenu/presenter.js +29 -17
  43. package/es/banks/components/NavWrapper/index.js +2 -2
  44. package/es/banks/components/NavWrapper/presenter.js +37 -24
  45. package/es/banks/components/NavWrapper/styles.js +4 -2
  46. package/es/banks/components/NavWrapper/theme.js +3 -3
  47. package/es/banks/components/SharingModal/ContextualIconButton/index.js +32 -18
  48. package/es/banks/components/SharingModal/RootAccountSharing.js +35 -23
  49. package/es/banks/components/SharingModal/ShareList/index.js +45 -33
  50. package/es/banks/components/SharingModal/index.js +5 -5
  51. package/es/banks/components/SharingModal/presenter.js +177 -166
  52. package/es/banks/components/SharingModal/theme.js +1 -1
  53. package/es/building/api/items.js +68 -72
  54. package/es/building/api/qtiImports.js +13 -12
  55. package/es/building/api/quizEntries.js +46 -46
  56. package/es/building/api/quizzes.js +10 -10
  57. package/es/building/api/stimuli.js +4 -4
  58. package/es/building/components/QTIImportModal/index.js +4 -4
  59. package/es/building/components/layout/Sidebar/Sidebar.examples.js +38 -24
  60. package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
  61. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +29 -16
  62. package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -11
  63. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +29 -16
  64. package/es/building/components/layout/Sidebar/index.js +12 -12
  65. package/es/building/components/layout/Sidebar/presenter.js +59 -46
  66. package/es/building/components/layout/Sidebar/styles.js +3 -1
  67. package/es/building/components/layout/header/BuildingButtons/index.js +9 -9
  68. package/es/building/components/layout/header/BuildingButtons/presenter.js +51 -39
  69. package/es/building/components/layout/header/BuildingButtons/styles.js +3 -1
  70. package/es/building/components/layout/header/BuildingButtons/theme.js +1 -1
  71. package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
  72. package/es/building/components/resources/ActionButtons/index.js +4 -4
  73. package/es/building/components/resources/ActionButtons/presenter.js +45 -32
  74. package/es/building/components/resources/ActionButtons/styles.js +2 -1
  75. package/es/building/components/resources/ActionButtons/theme.js +1 -1
  76. package/es/building/components/resources/AddToBankOptions/index.js +57 -46
  77. package/es/building/components/resources/AddToBankOptions/theme.js +2 -2
  78. package/es/building/components/resources/BanksTray/index.js +3 -3
  79. package/es/building/components/resources/BanksTray/presenter.js +51 -40
  80. package/es/building/components/resources/DeleteStimulusModal/index.js +5 -5
  81. package/es/building/components/resources/DeleteStimulusModal/presenter.js +101 -67
  82. package/es/building/components/resources/ItemFeedbackModal/index.js +8 -8
  83. package/es/building/components/resources/ItemFeedbackModal/presenter.js +43 -31
  84. package/es/building/components/resources/MoveImmutableModal/index.js +6 -6
  85. package/es/building/components/resources/MoveImmutableModal/presenter.js +39 -26
  86. package/es/building/components/resources/quiz/editButton/EditButton.js +33 -20
  87. package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -2
  88. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +36 -16
  89. package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
  90. package/es/building/components/resources/quiz/instructions/Instructions/index.js +7 -7
  91. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +62 -45
  92. package/es/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
  93. package/es/building/components/resources/quiz/instructions/Show/index.js +32 -19
  94. package/es/building/components/resources/quiz/title/Edit/index.js +53 -39
  95. package/es/building/components/resources/quiz/title/Edit/styles.js +3 -1
  96. package/es/building/components/resources/quiz/title/Edit/theme.js +1 -1
  97. package/es/building/components/resources/quiz/title/Show/index.js +32 -19
  98. package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
  99. package/es/building/components/resources/quiz/title/Title/index.js +8 -8
  100. package/es/building/components/resources/quiz/title/Title/presenter.js +63 -46
  101. package/es/building/components/resources/quiz/title/Title/styles.js +2 -1
  102. package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
  103. package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -14
  104. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +93 -79
  105. package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +19 -7
  106. package/es/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
  107. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
  108. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +81 -70
  109. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
  110. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +27 -15
  111. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
  112. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -3
  113. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +60 -47
  114. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -1
  115. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +169 -141
  116. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
  117. package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -11
  118. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +188 -179
  119. package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -8
  120. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +72 -60
  121. package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
  122. package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
  123. package/es/common/actions/alerts.js +1 -1
  124. package/es/common/actions/editing.js +1 -1
  125. package/es/common/actions/modal.js +2 -2
  126. package/es/common/actions/modifications.js +7 -7
  127. package/es/common/actions/quizSessions.js +9 -9
  128. package/es/common/actions/scrolling.js +1 -1
  129. package/es/common/actions/taking.js +5 -4
  130. package/es/common/api/callHandlers.js +9 -4
  131. package/es/common/api/features.js +3 -3
  132. package/es/common/api/fileUpload.js +1 -1
  133. package/es/common/api/getPersistenceActions.js +21 -18
  134. package/es/common/api/helpers.js +66 -70
  135. package/es/common/api/interactionTypes.js +2 -2
  136. package/es/common/api/quizSessions.js +28 -28
  137. package/es/common/api/quizzes.js +8 -5
  138. package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +4 -5
  139. package/es/common/components/AccessCodeTextInput/index.js +28 -15
  140. package/es/common/components/ApiFeatureFlagInitializer/index.js +7 -8
  141. package/es/common/components/ConfirmationModal/index.js +6 -4
  142. package/es/common/components/ConfirmationModal/presenter.js +53 -40
  143. package/es/common/components/ImportModal/ImportFileSelector/index.js +35 -24
  144. package/es/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
  145. package/es/common/components/ImportModal/index.js +8 -8
  146. package/es/common/components/ImportModal/presenter.js +79 -65
  147. package/es/common/components/LearnosityCalculator/index.js +63 -52
  148. package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +1 -1
  149. package/es/common/components/MaskedTextInput/index.js +25 -11
  150. package/es/common/components/Pin/index.js +1 -1
  151. package/es/common/components/Pin/presenter.js +27 -14
  152. package/es/common/components/PreviewFrame/examples.config.js +1 -2
  153. package/es/common/components/PreviewFrame/index.js +25 -13
  154. package/es/common/components/PrintFontSizeModal/index.js +1 -1
  155. package/es/common/components/PrintFontSizeModal/presenter.js +45 -30
  156. package/es/common/components/PrintFontSizeModal/theme.js +1 -1
  157. package/es/common/components/RceConfigProvider/index.js +6 -6
  158. package/es/common/components/RceConfigProvider/presenter.js +74 -77
  159. package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -5
  160. package/es/common/components/RceConfigProvider/rceConfigFetcher.js +24 -26
  161. package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -5
  162. package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
  163. package/es/common/components/SDKApp/index.js +46 -34
  164. package/es/common/components/SDKHeaderCalculator.js +3 -3
  165. package/es/common/components/SDKMenuButton.js +3 -3
  166. package/es/common/components/SDKNavBar.js +3 -3
  167. package/es/common/components/SDKTimer.js +3 -3
  168. package/es/common/components/alerts/index.js +4 -4
  169. package/es/common/components/alerts/presenter.js +33 -20
  170. package/es/common/components/layout/Page/index.js +25 -12
  171. package/es/common/components/layout/Page/styles.js +2 -1
  172. package/es/common/components/layout/header/Calculator/index.js +7 -7
  173. package/es/common/components/layout/header/Calculator/presenter.js +26 -14
  174. package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
  175. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +32 -21
  176. package/es/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
  177. package/es/common/components/layout/header/Timer/index.js +6 -6
  178. package/es/common/components/layout/header/Timer/presenter.js +48 -37
  179. package/es/common/components/layout/header/Timer/theme.js +3 -3
  180. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +24 -11
  181. package/es/common/components/layout/navbar/index.js +60 -47
  182. package/es/common/components/layout/navbar/styles.js +4 -2
  183. package/es/common/components/layout/navbar/theme.js +1 -1
  184. package/es/common/components/layout/sidebar/PositionSummary/index.js +26 -12
  185. package/es/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
  186. package/es/common/components/layout/sidebar/Sidebar/Pin.js +27 -14
  187. package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +5 -7
  188. package/es/common/components/layout/sidebar/Sidebar/index.js +69 -57
  189. package/es/common/components/layout/sidebar/Sidebar/styles.js +7 -7
  190. package/es/common/components/layout/sidebar/Sidebar/theme.js +10 -10
  191. package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
  192. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +38 -21
  193. package/es/common/components/layout/sidebar/SidebarItem/styles.js +3 -1
  194. package/es/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
  195. package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
  196. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +43 -28
  197. package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +4 -2
  198. package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
  199. package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
  200. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +38 -23
  201. package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
  202. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +27 -12
  203. package/es/common/components/layout/sidebar/Stimulus/index.js +3 -3
  204. package/es/common/components/layout/sidebar/Stimulus/presenter.js +36 -24
  205. package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -4
  206. package/es/common/components/resources/BankSelection/index.js +5 -5
  207. package/es/common/components/resources/BankSelection/presenter.js +65 -29
  208. package/es/common/components/resources/WarningWrapper/index.js +31 -18
  209. package/es/common/components/resources/WarningWrapper/theme.js +1 -1
  210. package/es/common/components/resources/entry/EntrySave/index.js +6 -6
  211. package/es/common/components/resources/entry/EntrySave/presenter.js +100 -91
  212. package/es/common/components/resources/item/ItemEdit/index.js +14 -14
  213. package/es/common/components/resources/item/ItemEdit/presenter.js +44 -31
  214. package/es/common/components/resources/item/ItemOverride/index.js +9 -9
  215. package/es/common/components/resources/item/ItemOverride/presenter.js +33 -19
  216. package/es/common/components/resources/item/ItemShow/index.js +27 -14
  217. package/es/common/components/resources/positionBox/PositionBox.js +25 -12
  218. package/es/common/components/resources/positionBox/theme.js +2 -2
  219. package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -7
  220. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +64 -52
  221. package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -5
  222. package/es/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
  223. package/es/common/components/resources/quiz/AddContent/Button/index.js +30 -17
  224. package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
  225. package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
  226. package/es/common/components/resources/quiz/AddContent/Modal/index.js +3 -3
  227. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +25 -12
  228. package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -5
  229. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +65 -52
  230. package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
  231. package/es/common/components/resources/quiz/info/QuizInfo.js +26 -13
  232. package/es/common/components/resources/quiz/instructions/Instructions.js +28 -12
  233. package/es/common/components/resources/quiz/title/Title.js +28 -12
  234. package/es/common/components/resources/quizSessionResult/Header/index.js +32 -19
  235. package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
  236. package/es/common/components/resources/quizSessionResult/Info/index.js +124 -109
  237. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +30 -17
  238. package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +4 -5
  239. package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
  240. package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -4
  241. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +78 -65
  242. package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +3 -1
  243. package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
  244. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +39 -26
  245. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
  246. package/es/common/components/resources/stimulus/Stimulus/index.js +5 -5
  247. package/es/common/components/resources/stimulus/Stimulus/presenter.js +50 -37
  248. package/es/common/components/resources/stimulus/Stimulus/styles.js +2 -1
  249. package/es/common/components/resources/stimulus/Stimulus/theme.js +1 -1
  250. package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -10
  251. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +192 -183
  252. package/es/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
  253. package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +9 -5
  254. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +64 -40
  255. package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
  256. package/es/common/components/resources/stimulus/StimulusShow/index.js +35 -23
  257. package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
  258. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +22 -9
  259. package/es/common/components/shared/Card/CardContent/index.js +27 -13
  260. package/es/common/components/shared/Card/CardContent/theme.js +2 -2
  261. package/es/common/components/shared/Card/CardWrapper/index.js +27 -13
  262. package/es/common/components/shared/Card/CardWrapper/theme.js +1 -1
  263. package/es/common/components/shared/Card/index.js +4 -3
  264. package/es/common/components/shared/ExpandButton/index.js +24 -11
  265. package/es/common/components/shared/ExpandButton/styles.js +3 -1
  266. package/es/common/components/shared/FormattedDuration/index.js +30 -16
  267. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +91 -71
  268. package/es/common/components/shared/IfFeature/index.js +3 -3
  269. package/es/common/components/shared/IfFeature/presenter.js +24 -11
  270. package/es/common/components/shared/InteractionTypes/index.js +3 -3
  271. package/es/common/components/shared/InteractionTypes/presenter.js +52 -39
  272. package/es/common/components/shared/InteractionTypes/theme.js +1 -1
  273. package/es/common/components/shared/PaginatedCollection/index.js +3 -3
  274. package/es/common/components/shared/PaginatedCollection/presenter.js +60 -49
  275. package/es/common/components/shared/PaginatedCollection/theme.js +1 -1
  276. package/es/common/components/shared/Paginator/index.js +27 -14
  277. package/es/common/components/shared/PrintTrigger/index.js +6 -6
  278. package/es/common/components/shared/PrintTrigger/presenter.js +61 -48
  279. package/es/common/components/shared/TagDisplay/index.js +24 -11
  280. package/es/common/components/shared/TagDisplay/styles.js +1 -1
  281. package/es/common/components/shared/TagSelect/index.js +1 -1
  282. package/es/common/components/shared/TagSelect/presenter.js +77 -63
  283. package/es/common/components/shared/TagSuggestSelect/index.js +4 -4
  284. package/es/common/components/shared/TagSuggestSelect/presenter.js +42 -29
  285. package/es/common/components/shared/TagWrapper/index.js +1 -1
  286. package/es/common/components/shared/TagWrapper/presenter.js +29 -16
  287. package/es/common/components/shared/TimeUnitsInput/index.js +72 -59
  288. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +29 -16
  289. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +3 -1
  290. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
  291. package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
  292. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +55 -46
  293. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +4 -4
  294. package/es/common/components/shared/errors/Errors.js +30 -17
  295. package/es/common/components/shared/errors/theme.js +1 -1
  296. package/es/common/components/shared/file_selector/FileSelector.js +28 -16
  297. package/es/common/components/shared/file_selector/theme.js +2 -2
  298. package/es/common/components/shared/functionality/componentWithOutsideClick.js +28 -11
  299. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +24 -13
  300. package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -2
  301. package/es/common/components/shared/functionality/makeEditable.js +43 -24
  302. package/es/common/components/shared/functionality/makeScrollable.js +46 -33
  303. package/es/common/components/shared/overlay/index.js +25 -12
  304. package/es/common/components/shared/overlay/theme.js +1 -1
  305. package/es/common/components/shared/return_button/ReturnButton.js +26 -12
  306. package/es/common/components/shared/spinner/Spinner.js +31 -17
  307. package/es/common/kinesis/QuizEventsLogger.js +37 -40
  308. package/es/common/kinesis/StreamQueue.js +7 -4
  309. package/es/common/kinesis/client.js +3 -3
  310. package/es/common/kinesis/config.js +1 -1
  311. package/es/common/kinesis/eventTypes.js +1 -1
  312. package/es/common/middleware/alertTimerMiddleware.js +2 -2
  313. package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -1
  314. package/es/common/middleware/eventLoggerMiddleware.js +8 -5
  315. package/es/common/middleware/persistedStorageMiddleware.js +5 -3
  316. package/es/common/middleware/quizTimerWebSocketMiddleware.js +7 -7
  317. package/es/common/react-redux.js +1 -1
  318. package/es/common/records/Alert.js +20 -5
  319. package/es/common/records/Bank.js +22 -8
  320. package/es/common/records/BankEntry.js +25 -12
  321. package/es/common/records/Item.js +29 -14
  322. package/es/common/records/ItemAnalysis.js +21 -8
  323. package/es/common/records/QtiImport.js +20 -7
  324. package/es/common/records/Quiz.js +34 -19
  325. package/es/common/records/QuizAnalysis.js +20 -7
  326. package/es/common/records/QuizEntry.js +130 -117
  327. package/es/common/records/QuizSession.js +38 -20
  328. package/es/common/records/QuizSessionEvent.js +21 -8
  329. package/es/common/records/QuizSessionResult.js +21 -8
  330. package/es/common/records/Response.js +21 -8
  331. package/es/common/records/SessionItem.js +27 -14
  332. package/es/common/records/SessionItemResult.js +21 -8
  333. package/es/common/records/Stimulus.js +30 -12
  334. package/es/common/records/baseRecord.js +29 -12
  335. package/es/common/records/index.js +16 -16
  336. package/es/common/records/reduxRecord.js +24 -9
  337. package/es/common/reducers/alerts.js +3 -3
  338. package/es/common/reducers/analyses.js +3 -3
  339. package/es/common/reducers/bankEntries.js +2 -2
  340. package/es/common/reducers/bankSearch.js +2 -2
  341. package/es/common/reducers/banks.js +2 -2
  342. package/es/common/reducers/calls.js +2 -2
  343. package/es/common/reducers/config.js +2 -2
  344. package/es/common/reducers/dragAndDrop.js +2 -2
  345. package/es/common/reducers/editing.js +3 -4
  346. package/es/common/reducers/errorsShowing.js +2 -2
  347. package/es/common/reducers/features.js +2 -2
  348. package/es/common/reducers/grading.js +2 -2
  349. package/es/common/reducers/interactionTypes.js +2 -2
  350. package/es/common/reducers/items.js +2 -2
  351. package/es/common/reducers/modal.js +2 -2
  352. package/es/common/reducers/moderation.js +2 -2
  353. package/es/common/reducers/modifications.js +9 -8
  354. package/es/common/reducers/outcomes.js +2 -2
  355. package/es/common/reducers/printing.js +2 -2
  356. package/es/common/reducers/qtiImports.js +2 -2
  357. package/es/common/reducers/quizEntries.js +5 -5
  358. package/es/common/reducers/quizExport.js +2 -2
  359. package/es/common/reducers/quizSessionEvents.js +5 -3
  360. package/es/common/reducers/quizSessionResults.js +2 -2
  361. package/es/common/reducers/quizSessions.js +2 -2
  362. package/es/common/reducers/quizzes.js +2 -2
  363. package/es/common/reducers/rce.js +2 -2
  364. package/es/common/reducers/regrading.js +2 -2
  365. package/es/common/reducers/reporting.js +2 -2
  366. package/es/common/reducers/scrolling.js +2 -2
  367. package/es/common/reducers/sessionItemResults.js +2 -2
  368. package/es/common/reducers/sessionItems.js +2 -2
  369. package/es/common/reducers/sharedBanks.js +2 -2
  370. package/es/common/reducers/sidebar.js +2 -2
  371. package/es/common/reducers/stimuli.js +2 -2
  372. package/es/common/reducers/tagAssociations.js +2 -2
  373. package/es/common/reducers/taking.js +7 -3
  374. package/es/common/reducers/ui.js +3 -3
  375. package/es/common/reducers/upload.js +4 -4
  376. package/es/common/selectors/calculator.js +5 -3
  377. package/es/common/selectors/interactionTypes.js +7 -7
  378. package/es/common/selectors/items.js +1 -1
  379. package/es/common/selectors/qtiImports.js +1 -1
  380. package/es/common/selectors/quizSessionResults.js +2 -2
  381. package/es/common/selectors/quizSessions.js +2 -2
  382. package/es/common/selectors/quizzes.js +9 -9
  383. package/es/common/selectors/reporting.js +2 -2
  384. package/es/common/selectors/sessionItemResults.js +4 -5
  385. package/es/common/selectors/sessionItems.js +4 -5
  386. package/es/common/selectors/taking.js +5 -2
  387. package/es/common/util/ExhaustivePaginatedFetcher.js +64 -49
  388. package/es/common/util/Fetcher.js +128 -141
  389. package/es/common/util/MultiWeakMap.js +1 -2
  390. package/es/common/util/PaginatedFetcher.js +37 -26
  391. package/es/common/util/ThunkQueue.js +50 -51
  392. package/es/common/util/TimeRecordingService.js +5 -5
  393. package/es/common/util/TimerService.js +7 -7
  394. package/es/common/util/clickHandlers.js +1 -1
  395. package/es/common/util/crossDomainMessaging.js +1 -1
  396. package/es/common/util/debounceLatestPromise.js +1 -1
  397. package/es/common/util/featureCheck.js +5 -3
  398. package/es/common/util/formatTimespan.js +2 -2
  399. package/es/common/util/generateDisplayPositions.js +1 -1
  400. package/es/common/util/getClientIpAddress.js +33 -0
  401. package/es/common/util/immutableHelpers.js +4 -3
  402. package/es/common/util/interactionTypePropsHelper.js +1 -1
  403. package/es/common/util/jsonify.js +4 -2
  404. package/es/common/util/persistedState.js +4 -4
  405. package/es/common/util/printUtils.js +1 -1
  406. package/es/common/util/rceChecker.js +9 -11
  407. package/es/common/util/renderAlerts.js +11 -10
  408. package/es/common/util/serializeEvent.js +5 -3
  409. package/es/common/util/sessionStore.js +1 -2
  410. package/es/common/util/warningHelpers.js +2 -2
  411. package/es/common/util/windowChecks.js +2 -2
  412. package/es/common/util/withCachedArguments.js +3 -1
  413. package/es/common/util/withDynamoPagination.js +67 -56
  414. package/es/common/util/withStateCache.js +3 -1
  415. package/es/configureStore.js +45 -43
  416. package/es/grading/api/quizEntryRegrades.js +4 -4
  417. package/es/grading/api/updateResults.js +6 -6
  418. package/es/index.js +146 -139
  419. package/es/messages/LocalStorageAdapter.js +15 -13
  420. package/es/messages/LocalStorageLimits.js +22 -20
  421. package/es/messages/StorageExhaustionError.js +23 -8
  422. package/es/messages/postMessageService.js +34 -31
  423. package/es/messages/subjectHandlers/lti.frameResize.js +2 -2
  424. package/es/messages/subjectHandlers/lti.get_data.js +1 -1
  425. package/es/messages/subjectHandlers/lti.put_data.js +2 -2
  426. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +3 -3
  427. package/es/moderating/api/quizSessionEvents.js +3 -3
  428. package/es/moderating/api/quizSessions.js +3 -3
  429. package/es/moderating/components/events/Event.js +61 -33
  430. package/es/moderating/components/events/PageBlurredEvent.js +19 -7
  431. package/es/moderating/components/events/PageFocusedEvent.js +19 -7
  432. package/es/moderating/components/events/RCEEvent.js +22 -9
  433. package/es/moderating/components/events/ResponseEvent.js +56 -26
  434. package/es/moderating/components/events/SessionStartEvent.js +38 -24
  435. package/es/moderating/components/events/SessionSubmitEvent.js +55 -0
  436. package/es/moderating/components/events/theme.js +1 -1
  437. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +34 -21
  438. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +45 -32
  439. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +47 -34
  440. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +42 -28
  441. package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +35 -21
  442. package/es/moderating/components/resources/AccommodationsModal/index.js +62 -49
  443. package/es/moderating/components/resources/ElapsedTime.js +26 -13
  444. package/es/moderating/components/resources/EventDetails.js +42 -0
  445. package/es/moderating/components/resources/ModerateTable/index.js +7 -7
  446. package/es/moderating/components/resources/ModerateTable/presenter.js +115 -102
  447. package/es/moderating/components/resources/ModerateTable/styles.js +3 -1
  448. package/es/moderating/components/resources/ModerateTable/theme.js +1 -1
  449. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -2
  450. package/es/moderating/components/resources/ModerateTableRow/index.js +3 -3
  451. package/es/moderating/components/resources/ModerateTableRow/presenter.js +65 -51
  452. package/es/moderating/components/resources/ModerateTableRow/story.js +4 -1
  453. package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -1
  454. package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
  455. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +58 -43
  456. package/es/moderating/components/resources/RetryGradePassbackButton/index.js +3 -3
  457. package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +40 -42
  458. package/es/moderating/components/resources/SessionBreachAlert.js +9 -0
  459. package/es/moderating/components/resources/util/checkIsBreach.js +28 -0
  460. package/es/moderating/components/resources/util/extractSessionData.js +20 -0
  461. package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
  462. package/es/moderating/components/sidebar/ModerateTray/presenter.js +76 -63
  463. package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -7
  464. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +45 -34
  465. package/es/reduxStore.js +5 -5
  466. package/es/reporting/api/fetchStudentAnalyses.js +16 -18
  467. package/es/reporting/api/getAnalysesExport.js +20 -22
  468. package/es/reporting/api/getAnalysesStatus.js +18 -20
  469. package/es/reporting/api/getItemAnalyses.js +13 -15
  470. package/es/reporting/api/getQuizAnalysis.js +13 -15
  471. package/es/reporting/api/itemAnalyses.js +4 -4
  472. package/es/reporting/api/quizAnalyses.js +4 -4
  473. package/es/reporting/components/Caption/index.js +25 -12
  474. package/es/reporting/components/MetricsListItem/index.js +26 -12
  475. package/es/reporting/components/charts/CentileDistribution/presenter.js +43 -30
  476. package/es/reporting/components/charts/Distribution/presenter.js +49 -36
  477. package/es/reporting/components/charts/Distribution/theme.js +4 -4
  478. package/es/reporting/components/charts/Legend/index.js +29 -15
  479. package/es/reporting/components/charts/Legend/styles.js +3 -1
  480. package/es/reporting/components/charts/Legend/theme.js +3 -3
  481. package/es/reporting/components/charts/QuintileDistribution/presenter.js +46 -33
  482. package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -1
  483. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
  484. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +32 -21
  485. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -8
  486. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
  487. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
  488. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
  489. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +54 -42
  490. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
  491. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +38 -27
  492. package/es/reporting/components/quizAnalysis/styles.js +3 -4
  493. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
  494. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +25 -12
  495. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
  496. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +26 -13
  497. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  498. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +34 -18
  499. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  500. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +35 -19
  501. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  502. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +51 -39
  503. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +3 -1
  504. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
  505. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  506. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +33 -20
  507. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +40 -23
  508. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +35 -19
  509. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  510. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +69 -57
  511. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +3 -1
  512. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +43 -26
  513. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
  514. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +8 -6
  515. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  516. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +41 -25
  517. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  518. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +91 -75
  519. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  520. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +66 -50
  521. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  522. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +44 -28
  523. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +38 -25
  524. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +35 -19
  525. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  526. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +60 -44
  527. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  528. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +40 -26
  529. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +3 -1
  530. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  531. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +36 -20
  532. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  533. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +78 -66
  534. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
  535. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  536. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +94 -80
  537. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +3 -1
  538. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
  539. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  540. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +51 -35
  541. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  542. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
  543. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +51 -38
  544. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  545. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +24 -11
  546. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
  547. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -3
  548. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +95 -82
  549. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +3 -1
  550. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
  551. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
  552. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +58 -45
  553. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
  554. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +87 -74
  555. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
  556. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
  557. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
  558. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +34 -21
  559. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
  560. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +39 -41
  561. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +25 -27
  562. package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
  563. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +121 -108
  564. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -11
  565. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +69 -76
  566. package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
  567. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +25 -12
  568. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -3
  569. package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
  570. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +53 -41
  571. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
  572. package/es/reporting/components/resources/ReportCard/index.js +26 -13
  573. package/es/reporting/components/resources/ReportList/index.js +25 -12
  574. package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -2
  575. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +83 -70
  576. package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -1
  577. package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
  578. package/es/reporting/components/resources/StudentAnalysis/fetchReport.js +34 -36
  579. package/es/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +25 -27
  580. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +10 -10
  581. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +79 -86
  582. package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +27 -14
  583. package/es/reporting/components/resources/common/errorCodes.js +2 -2
  584. package/es/reporting/components/resources/common/exportReports.js +38 -40
  585. package/es/reporting/components/resources/common/generateReports.js +62 -66
  586. package/es/reporting/components/resources/common/propTypes.js +14 -0
  587. package/es/reporting/components/resources/common/utils.js +1 -1
  588. package/es/taking/api/taking.js +48 -27
  589. package/es/taking/learnosity/index.js +36 -38
  590. package/lib/banks/api/bankEntries.js +43 -54
  591. package/lib/banks/api/banks.js +68 -78
  592. package/lib/banks/api/copyingBanksPoller.js +54 -58
  593. package/lib/banks/api/tagAssociations.js +37 -44
  594. package/lib/banks/components/AddBankEntryModal/index.js +12 -13
  595. package/lib/banks/components/AddBankEntryModal/presenter.js +66 -54
  596. package/lib/banks/components/AddToBankModal/index.js +12 -12
  597. package/lib/banks/components/AddToBankModal/presenter.js +109 -98
  598. package/lib/banks/components/AsyncSearch/index.js +150 -137
  599. package/lib/banks/components/Bank/index.js +18 -19
  600. package/lib/banks/components/Bank/presenter.js +201 -194
  601. package/lib/banks/components/Bank/styles.js +7 -7
  602. package/lib/banks/components/Bank/theme.js +3 -4
  603. package/lib/banks/components/BankEntriesList/index.js +6 -7
  604. package/lib/banks/components/BankEntriesList/presenter.js +48 -37
  605. package/lib/banks/components/BankEntriesList/styles.js +2 -3
  606. package/lib/banks/components/BankEntriesList/theme.js +2 -3
  607. package/lib/banks/components/BankEntry/index.js +21 -23
  608. package/lib/banks/components/BankEntry/presenter.js +311 -309
  609. package/lib/banks/components/BankEntry/styles.js +7 -6
  610. package/lib/banks/components/BankEntry/theme.js +7 -8
  611. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +7 -8
  612. package/lib/banks/components/BankEntryRow/index.js +13 -13
  613. package/lib/banks/components/BankEntryRow/presenter.js +135 -124
  614. package/lib/banks/components/BankEntryRow/styles.js +2 -4
  615. package/lib/banks/components/BankEntryRow/theme.js +6 -7
  616. package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -17
  617. package/lib/banks/components/BankSearch/index.js +6 -7
  618. package/lib/banks/components/BankSearch/presenter.js +74 -63
  619. package/lib/banks/components/BankSearch/styles.js +2 -3
  620. package/lib/banks/components/BankSearch/theme.js +2 -3
  621. package/lib/banks/components/Banks/index.js +12 -13
  622. package/lib/banks/components/Banks/presenter.js +230 -218
  623. package/lib/banks/components/Banks/styles.js +2 -3
  624. package/lib/banks/components/Banks/theme.js +4 -5
  625. package/lib/banks/components/BanksList/index.js +11 -12
  626. package/lib/banks/components/BanksList/presenter.js +219 -215
  627. package/lib/banks/components/BanksList/styles.js +2 -3
  628. package/lib/banks/components/BanksList/theme.js +6 -7
  629. package/lib/banks/components/CopyMoveBankEntryModal/index.js +12 -12
  630. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +209 -130
  631. package/lib/banks/components/CreateBankModal/index.js +15 -15
  632. package/lib/banks/components/CreateBankModal/presenter.js +96 -84
  633. package/lib/banks/components/EditBankModal/index.js +11 -11
  634. package/lib/banks/components/EditBankModal/presenter.js +78 -66
  635. package/lib/banks/components/HeaderBreadCrumb/index.js +52 -40
  636. package/lib/banks/components/HeaderMenu/index.js +9 -9
  637. package/lib/banks/components/HeaderMenu/presenter.js +44 -34
  638. package/lib/banks/components/HeaderMenu/styles.js +2 -3
  639. package/lib/banks/components/HeaderMenu/theme.js +2 -3
  640. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +5 -6
  641. package/lib/banks/components/NavWrapper/externalStyles.js +2 -3
  642. package/lib/banks/components/NavWrapper/index.js +4 -5
  643. package/lib/banks/components/NavWrapper/presenter.js +63 -51
  644. package/lib/banks/components/NavWrapper/styles.js +7 -6
  645. package/lib/banks/components/NavWrapper/theme.js +5 -6
  646. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +38 -24
  647. package/lib/banks/components/SharingModal/RootAccountSharing.js +56 -45
  648. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -4
  649. package/lib/banks/components/SharingModal/ShareList/index.js +65 -55
  650. package/lib/banks/components/SharingModal/ShareList/styles.js +2 -3
  651. package/lib/banks/components/SharingModal/index.js +7 -8
  652. package/lib/banks/components/SharingModal/presenter.js +242 -232
  653. package/lib/banks/components/SharingModal/styles.js +2 -3
  654. package/lib/banks/components/SharingModal/theme.js +3 -4
  655. package/lib/building/api/items.js +78 -82
  656. package/lib/building/api/qtiImports.js +19 -23
  657. package/lib/building/api/quizEntries.js +75 -76
  658. package/lib/building/api/quizzes.js +28 -28
  659. package/lib/building/api/stimuli.js +8 -8
  660. package/lib/building/components/QTIImportModal/index.js +11 -15
  661. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +48 -35
  662. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +18 -22
  663. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +54 -43
  664. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -3
  665. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -3
  666. package/lib/building/components/layout/Sidebar/Stimulus/index.js +16 -20
  667. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +54 -43
  668. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -3
  669. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -3
  670. package/lib/building/components/layout/Sidebar/index.js +17 -21
  671. package/lib/building/components/layout/Sidebar/presenter.js +79 -68
  672. package/lib/building/components/layout/Sidebar/styles.js +8 -7
  673. package/lib/building/components/layout/Sidebar/theme.js +2 -3
  674. package/lib/building/components/layout/header/BuildingButtons/index.js +16 -17
  675. package/lib/building/components/layout/header/BuildingButtons/presenter.js +91 -81
  676. package/lib/building/components/layout/header/BuildingButtons/styles.js +6 -5
  677. package/lib/building/components/layout/header/BuildingButtons/theme.js +3 -4
  678. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +9 -11
  679. package/lib/building/components/resources/ActionButtons/index.js +7 -9
  680. package/lib/building/components/resources/ActionButtons/presenter.js +70 -59
  681. package/lib/building/components/resources/ActionButtons/styles.js +6 -6
  682. package/lib/building/components/resources/ActionButtons/theme.js +3 -4
  683. package/lib/building/components/resources/AddToBankOptions/index.js +71 -62
  684. package/lib/building/components/resources/AddToBankOptions/styles.js +2 -3
  685. package/lib/building/components/resources/AddToBankOptions/theme.js +4 -5
  686. package/lib/building/components/resources/BanksTray/index.js +6 -8
  687. package/lib/building/components/resources/BanksTray/presenter.js +103 -93
  688. package/lib/building/components/resources/DeleteStimulusModal/index.js +8 -10
  689. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +132 -98
  690. package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -3
  691. package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -3
  692. package/lib/building/components/resources/ItemFeedbackModal/index.js +13 -15
  693. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +62 -52
  694. package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -3
  695. package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -3
  696. package/lib/building/components/resources/MoveImmutableModal/index.js +10 -12
  697. package/lib/building/components/resources/MoveImmutableModal/presenter.js +66 -54
  698. package/lib/building/components/resources/quiz/editButton/EditButton.js +42 -29
  699. package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -5
  700. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +44 -29
  701. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -3
  702. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -1
  703. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +5 -6
  704. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -12
  705. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +84 -69
  706. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +3 -4
  707. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
  708. package/lib/building/components/resources/quiz/instructions/Show/index.js +42 -31
  709. package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -3
  710. package/lib/building/components/resources/quiz/instructions/Show/theme.js +1 -1
  711. package/lib/building/components/resources/quiz/title/Edit/index.js +73 -61
  712. package/lib/building/components/resources/quiz/title/Edit/styles.js +6 -5
  713. package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -4
  714. package/lib/building/components/resources/quiz/title/Show/index.js +41 -30
  715. package/lib/building/components/resources/quiz/title/Show/styles.js +2 -3
  716. package/lib/building/components/resources/quiz/title/Show/theme.js +2 -3
  717. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +5 -6
  718. package/lib/building/components/resources/quiz/title/Title/index.js +11 -13
  719. package/lib/building/components/resources/quiz/title/Title/presenter.js +90 -75
  720. package/lib/building/components/resources/quiz/title/Title/styles.js +5 -5
  721. package/lib/building/components/resources/quiz/title/Title/theme.js +4 -4
  722. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +18 -21
  723. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +154 -142
  724. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +24 -13
  725. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +4 -5
  726. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
  727. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +7 -8
  728. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +113 -104
  729. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -3
  730. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +5 -6
  731. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +37 -27
  732. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -3
  733. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -5
  734. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -6
  735. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +90 -79
  736. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +6 -5
  737. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -3
  738. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +215 -188
  739. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -3
  740. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +4 -5
  741. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +15 -15
  742. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +260 -253
  743. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -3
  744. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -3
  745. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +11 -13
  746. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +122 -113
  747. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +6 -6
  748. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +7 -8
  749. package/lib/common/actions/alerts.js +3 -3
  750. package/lib/common/actions/analyses.js +7 -7
  751. package/lib/common/actions/bankEntries.js +3 -5
  752. package/lib/common/actions/bankSearch.js +6 -10
  753. package/lib/common/actions/banks.js +8 -14
  754. package/lib/common/actions/config.js +1 -1
  755. package/lib/common/actions/editing.js +2 -2
  756. package/lib/common/actions/errorsShowing.js +1 -1
  757. package/lib/common/actions/grading.js +2 -2
  758. package/lib/common/actions/modal.js +5 -5
  759. package/lib/common/actions/modifications.js +36 -36
  760. package/lib/common/actions/printing.js +1 -1
  761. package/lib/common/actions/quizExport.js +2 -3
  762. package/lib/common/actions/quizSessionEvents.js +2 -3
  763. package/lib/common/actions/quizSessionResults.js +2 -3
  764. package/lib/common/actions/quizSessions.js +17 -22
  765. package/lib/common/actions/quizzes.js +8 -14
  766. package/lib/common/actions/rce.js +5 -8
  767. package/lib/common/actions/regrading.js +1 -1
  768. package/lib/common/actions/reporting.js +1 -1
  769. package/lib/common/actions/scrolling.js +2 -2
  770. package/lib/common/actions/sessionItemResults.js +2 -3
  771. package/lib/common/actions/sessionItems.js +2 -3
  772. package/lib/common/actions/sharedBanks.js +5 -8
  773. package/lib/common/actions/sidebar.js +1 -1
  774. package/lib/common/actions/tagAssociations.js +9 -17
  775. package/lib/common/actions/taking.js +24 -41
  776. package/lib/common/actions/ui.js +11 -20
  777. package/lib/common/actions/upload.js +6 -11
  778. package/lib/common/api/callHandlers.js +35 -56
  779. package/lib/common/api/camelizeHelpers.js +5 -7
  780. package/lib/common/api/features.js +6 -7
  781. package/lib/common/api/fileUpload.js +6 -7
  782. package/lib/common/api/getPersistenceActions.js +22 -23
  783. package/lib/common/api/helpers.js +81 -88
  784. package/lib/common/api/interactionTypes.js +5 -6
  785. package/lib/common/api/quizSessions.js +53 -62
  786. package/lib/common/api/quizzes.js +9 -9
  787. package/lib/common/api/schema.js +20 -37
  788. package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +8 -11
  789. package/lib/common/components/AccessCodeTextInput/index.js +37 -25
  790. package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -14
  791. package/lib/common/components/ConfirmationModal/index.js +9 -8
  792. package/lib/common/components/ConfirmationModal/presenter.js +80 -68
  793. package/lib/common/components/ImportModal/ImportFileSelector/index.js +45 -36
  794. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -3
  795. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -7
  796. package/lib/common/components/ImportModal/index.js +13 -15
  797. package/lib/common/components/ImportModal/presenter.js +121 -109
  798. package/lib/common/components/ImportModal/styles.js +2 -3
  799. package/lib/common/components/ImportModal/theme.js +2 -3
  800. package/lib/common/components/LearnosityCalculator/index.js +87 -77
  801. package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +8 -11
  802. package/lib/common/components/MaskedTextInput/index.js +38 -25
  803. package/lib/common/components/Pin/Pin.examples.js +3 -4
  804. package/lib/common/components/Pin/index.js +4 -6
  805. package/lib/common/components/Pin/presenter.js +39 -27
  806. package/lib/common/components/PreviewFrame/examples.config.js +4 -6
  807. package/lib/common/components/PreviewFrame/index.js +37 -26
  808. package/lib/common/components/PrintFontSizeModal/index.js +3 -4
  809. package/lib/common/components/PrintFontSizeModal/presenter.js +65 -52
  810. package/lib/common/components/PrintFontSizeModal/styles.js +2 -3
  811. package/lib/common/components/PrintFontSizeModal/theme.js +3 -4
  812. package/lib/common/components/RceConfigProvider/index.js +9 -10
  813. package/lib/common/components/RceConfigProvider/presenter.js +110 -113
  814. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +10 -12
  815. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -17
  816. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +27 -30
  817. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +7 -10
  818. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -8
  819. package/lib/common/components/SDKApp/index.js +80 -71
  820. package/lib/common/components/SDKApp/styles.js +2 -3
  821. package/lib/common/components/SDKHeaderCalculator.js +12 -14
  822. package/lib/common/components/SDKMenuButton.js +9 -11
  823. package/lib/common/components/SDKNavBar.js +10 -12
  824. package/lib/common/components/SDKTimer.js +12 -14
  825. package/lib/common/components/alerts/index.js +8 -9
  826. package/lib/common/components/alerts/presenter.js +42 -31
  827. package/lib/common/components/alerts/styles.js +3 -4
  828. package/lib/common/components/alerts/theme.js +2 -3
  829. package/lib/common/components/layout/Page/index.js +39 -28
  830. package/lib/common/components/layout/Page/styles.js +6 -6
  831. package/lib/common/components/layout/Page/theme.js +2 -3
  832. package/lib/common/components/layout/header/Calculator/index.js +10 -12
  833. package/lib/common/components/layout/header/Calculator/presenter.js +47 -36
  834. package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -12
  835. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +41 -32
  836. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +3 -4
  837. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +3 -4
  838. package/lib/common/components/layout/header/Timer/index.js +8 -9
  839. package/lib/common/components/layout/header/Timer/presenter.js +79 -69
  840. package/lib/common/components/layout/header/Timer/styles.js +2 -3
  841. package/lib/common/components/layout/header/Timer/theme.js +5 -6
  842. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +30 -19
  843. package/lib/common/components/layout/navbar/externalStyles.js +2 -3
  844. package/lib/common/components/layout/navbar/index.js +79 -68
  845. package/lib/common/components/layout/navbar/styles.js +7 -6
  846. package/lib/common/components/layout/navbar/theme.js +3 -4
  847. package/lib/common/components/layout/sidebar/PositionSummary/index.js +37 -25
  848. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -3
  849. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +4 -5
  850. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +38 -26
  851. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +8 -11
  852. package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +2 -3
  853. package/lib/common/components/layout/sidebar/Sidebar/index.js +107 -97
  854. package/lib/common/components/layout/sidebar/Sidebar/styles.js +17 -18
  855. package/lib/common/components/layout/sidebar/Sidebar/theme.js +12 -13
  856. package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -15
  857. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +61 -46
  858. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -6
  859. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -8
  860. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -7
  861. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +60 -47
  862. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +11 -10
  863. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -4
  864. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -7
  865. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +54 -41
  866. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -3
  867. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +4 -5
  868. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +33 -20
  869. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -3
  870. package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -12
  871. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +59 -50
  872. package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -3
  873. package/lib/common/components/layout/sidebar/Stimulus/theme.js +6 -7
  874. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -4
  875. package/lib/common/components/resources/BankSelection/index.js +9 -10
  876. package/lib/common/components/resources/BankSelection/presenter.js +78 -43
  877. package/lib/common/components/resources/WarningWrapper/index.js +48 -37
  878. package/lib/common/components/resources/WarningWrapper/styles.js +2 -3
  879. package/lib/common/components/resources/WarningWrapper/theme.js +3 -4
  880. package/lib/common/components/resources/entry/EntrySave/index.js +8 -9
  881. package/lib/common/components/resources/entry/EntrySave/presenter.js +133 -125
  882. package/lib/common/components/resources/item/ItemEdit/index.js +19 -19
  883. package/lib/common/components/resources/item/ItemEdit/presenter.js +98 -86
  884. package/lib/common/components/resources/item/ItemOverride/index.js +13 -13
  885. package/lib/common/components/resources/item/ItemOverride/presenter.js +59 -46
  886. package/lib/common/components/resources/item/ItemShow/index.js +37 -24
  887. package/lib/common/components/resources/positionBox/PositionBox.js +33 -22
  888. package/lib/common/components/resources/positionBox/styles.js +3 -4
  889. package/lib/common/components/resources/positionBox/theme.js +4 -5
  890. package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -10
  891. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +89 -79
  892. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -8
  893. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +3 -4
  894. package/lib/common/components/resources/quiz/AddContent/Button/index.js +43 -32
  895. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +7 -7
  896. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +6 -7
  897. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +6 -8
  898. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +47 -35
  899. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +8 -10
  900. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +86 -75
  901. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -3
  902. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +3 -4
  903. package/lib/common/components/resources/quiz/info/QuizInfo.js +35 -23
  904. package/lib/common/components/resources/quiz/instructions/Instructions.js +31 -20
  905. package/lib/common/components/resources/quiz/instructions/styles.js +2 -3
  906. package/lib/common/components/resources/quiz/instructions/theme.js +2 -3
  907. package/lib/common/components/resources/quiz/title/Title.js +31 -20
  908. package/lib/common/components/resources/quiz/title/styles.js +2 -3
  909. package/lib/common/components/resources/quiz/title/theme.js +2 -3
  910. package/lib/common/components/resources/quizSessionResult/Header/index.js +42 -31
  911. package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -3
  912. package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -3
  913. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +10 -11
  914. package/lib/common/components/resources/quizSessionResult/Info/index.js +147 -134
  915. package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -3
  916. package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -3
  917. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +39 -28
  918. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +15 -17
  919. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +6 -7
  920. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -9
  921. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +112 -101
  922. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +6 -5
  923. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +6 -7
  924. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +50 -39
  925. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -3
  926. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
  927. package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -8
  928. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +90 -79
  929. package/lib/common/components/resources/stimulus/Stimulus/styles.js +9 -9
  930. package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -4
  931. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +14 -14
  932. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +257 -250
  933. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -3
  934. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +3 -4
  935. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +13 -9
  936. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +86 -64
  937. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -3
  938. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -4
  939. package/lib/common/components/resources/stimulus/StimulusShow/index.js +56 -46
  940. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -3
  941. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
  942. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +5 -6
  943. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +38 -25
  944. package/lib/common/components/shared/Card/CardContent/index.js +36 -24
  945. package/lib/common/components/shared/Card/CardContent/styles.js +3 -4
  946. package/lib/common/components/shared/Card/CardContent/theme.js +4 -5
  947. package/lib/common/components/shared/Card/CardWrapper/index.js +35 -23
  948. package/lib/common/components/shared/Card/CardWrapper/styles.js +3 -4
  949. package/lib/common/components/shared/Card/CardWrapper/theme.js +3 -4
  950. package/lib/common/components/shared/Card/index.js +12 -12
  951. package/lib/common/components/shared/ExpandButton/index.js +33 -22
  952. package/lib/common/components/shared/ExpandButton/styles.js +6 -5
  953. package/lib/common/components/shared/ExpandButton/theme.js +2 -3
  954. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +7 -8
  955. package/lib/common/components/shared/FormattedDuration/index.js +48 -37
  956. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +112 -93
  957. package/lib/common/components/shared/IfFeature/index.js +6 -8
  958. package/lib/common/components/shared/IfFeature/presenter.js +30 -19
  959. package/lib/common/components/shared/InteractionTypes/index.js +5 -6
  960. package/lib/common/components/shared/InteractionTypes/presenter.js +68 -57
  961. package/lib/common/components/shared/InteractionTypes/styles.js +2 -3
  962. package/lib/common/components/shared/InteractionTypes/theme.js +3 -4
  963. package/lib/common/components/shared/PaginatedCollection/index.js +6 -7
  964. package/lib/common/components/shared/PaginatedCollection/presenter.js +77 -69
  965. package/lib/common/components/shared/PaginatedCollection/styles.js +2 -3
  966. package/lib/common/components/shared/PaginatedCollection/theme.js +3 -4
  967. package/lib/common/components/shared/Paginator/index.js +38 -27
  968. package/lib/common/components/shared/Paginator/styles.js +2 -3
  969. package/lib/common/components/shared/Paginator/theme.js +2 -3
  970. package/lib/common/components/shared/PrintTrigger/index.js +11 -12
  971. package/lib/common/components/shared/PrintTrigger/presenter.js +86 -74
  972. package/lib/common/components/shared/TagDisplay/index.js +34 -23
  973. package/lib/common/components/shared/TagDisplay/styles.js +3 -4
  974. package/lib/common/components/shared/TagSelect/index.js +3 -4
  975. package/lib/common/components/shared/TagSelect/presenter.js +101 -88
  976. package/lib/common/components/shared/TagSuggestSelect/index.js +6 -7
  977. package/lib/common/components/shared/TagSuggestSelect/presenter.js +66 -54
  978. package/lib/common/components/shared/TagWrapper/index.js +3 -4
  979. package/lib/common/components/shared/TagWrapper/presenter.js +43 -31
  980. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -4
  981. package/lib/common/components/shared/TimeUnitsInput/index.js +110 -98
  982. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +43 -32
  983. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -6
  984. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +7 -8
  985. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +12 -14
  986. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +86 -78
  987. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -24
  988. package/lib/common/components/shared/errors/Errors.js +36 -25
  989. package/lib/common/components/shared/errors/styles.js +2 -3
  990. package/lib/common/components/shared/errors/theme.js +3 -4
  991. package/lib/common/components/shared/file_selector/FileSelector.js +38 -28
  992. package/lib/common/components/shared/file_selector/styles.js +2 -3
  993. package/lib/common/components/shared/file_selector/theme.js +4 -5
  994. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +33 -23
  995. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +32 -22
  996. package/lib/common/components/shared/functionality/disableDraggingOverride.js +5 -6
  997. package/lib/common/components/shared/functionality/makeEditable.js +52 -40
  998. package/lib/common/components/shared/functionality/makeScrollable.js +56 -45
  999. package/lib/common/components/shared/overlay/index.js +39 -26
  1000. package/lib/common/components/shared/overlay/styles.js +3 -4
  1001. package/lib/common/components/shared/overlay/theme.js +3 -4
  1002. package/lib/common/components/shared/return_button/ReturnButton.js +39 -26
  1003. package/lib/common/components/shared/spinner/Spinner.js +43 -31
  1004. package/lib/common/components/shared/spinner/styles.js +2 -3
  1005. package/lib/common/kinesis/QuizEventsLogger.js +43 -49
  1006. package/lib/common/kinesis/StreamQueue.js +13 -11
  1007. package/lib/common/kinesis/client.js +9 -13
  1008. package/lib/common/kinesis/config.js +7 -11
  1009. package/lib/common/kinesis/eventTypes.js +9 -16
  1010. package/lib/common/middleware/alertTimerMiddleware.js +4 -5
  1011. package/lib/common/middleware/crossDomainMessagingMiddleware.js +3 -4
  1012. package/lib/common/middleware/eventLoggerMiddleware.js +7 -8
  1013. package/lib/common/middleware/persistedStorageMiddleware.js +5 -6
  1014. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +15 -21
  1015. package/lib/common/react-redux.js +3 -4
  1016. package/lib/common/records/Alert.js +24 -11
  1017. package/lib/common/records/Bank.js +28 -16
  1018. package/lib/common/records/BankEntry.js +32 -21
  1019. package/lib/common/records/Item.js +37 -24
  1020. package/lib/common/records/ItemAnalysis.js +26 -15
  1021. package/lib/common/records/QtiImport.js +25 -14
  1022. package/lib/common/records/Quiz.js +46 -33
  1023. package/lib/common/records/QuizAnalysis.js +28 -17
  1024. package/lib/common/records/QuizEntry.js +147 -135
  1025. package/lib/common/records/QuizSession.js +44 -28
  1026. package/lib/common/records/QuizSessionEvent.js +26 -15
  1027. package/lib/common/records/QuizSessionResult.js +26 -15
  1028. package/lib/common/records/Response.js +26 -15
  1029. package/lib/common/records/SessionItem.js +36 -25
  1030. package/lib/common/records/SessionItemResult.js +26 -15
  1031. package/lib/common/records/Stimulus.js +37 -21
  1032. package/lib/common/records/baseRecord.js +34 -18
  1033. package/lib/common/records/index.js +34 -34
  1034. package/lib/common/records/reduxRecord.js +28 -13
  1035. package/lib/common/reducers/alerts.js +6 -7
  1036. package/lib/common/reducers/analyses.js +17 -30
  1037. package/lib/common/reducers/bankEntries.js +6 -7
  1038. package/lib/common/reducers/bankSearch.js +5 -6
  1039. package/lib/common/reducers/banks.js +6 -7
  1040. package/lib/common/reducers/calls.js +5 -6
  1041. package/lib/common/reducers/config.js +5 -6
  1042. package/lib/common/reducers/dragAndDrop.js +5 -6
  1043. package/lib/common/reducers/editing.js +6 -8
  1044. package/lib/common/reducers/errorsShowing.js +5 -6
  1045. package/lib/common/reducers/features.js +5 -6
  1046. package/lib/common/reducers/grading.js +5 -6
  1047. package/lib/common/reducers/interactionTypes.js +6 -7
  1048. package/lib/common/reducers/items.js +6 -7
  1049. package/lib/common/reducers/modal.js +5 -6
  1050. package/lib/common/reducers/moderation.js +5 -6
  1051. package/lib/common/reducers/modifications.js +16 -16
  1052. package/lib/common/reducers/outcomes.js +5 -6
  1053. package/lib/common/reducers/printing.js +5 -6
  1054. package/lib/common/reducers/qtiImports.js +6 -7
  1055. package/lib/common/reducers/quizEntries.js +10 -11
  1056. package/lib/common/reducers/quizExport.js +5 -6
  1057. package/lib/common/reducers/quizSessionEvents.js +8 -7
  1058. package/lib/common/reducers/quizSessionResults.js +6 -7
  1059. package/lib/common/reducers/quizSessions.js +7 -8
  1060. package/lib/common/reducers/quizzes.js +8 -9
  1061. package/lib/common/reducers/rce.js +5 -6
  1062. package/lib/common/reducers/regrading.js +5 -6
  1063. package/lib/common/reducers/reporting.js +6 -7
  1064. package/lib/common/reducers/scrolling.js +5 -6
  1065. package/lib/common/reducers/sessionItemResults.js +6 -7
  1066. package/lib/common/reducers/sessionItems.js +6 -7
  1067. package/lib/common/reducers/sharedBanks.js +6 -7
  1068. package/lib/common/reducers/sidebar.js +5 -6
  1069. package/lib/common/reducers/stimuli.js +6 -7
  1070. package/lib/common/reducers/tagAssociations.js +5 -6
  1071. package/lib/common/reducers/taking.js +10 -7
  1072. package/lib/common/reducers/ui.js +6 -7
  1073. package/lib/common/reducers/upload.js +7 -8
  1074. package/lib/common/selectors/analyses.js +13 -24
  1075. package/lib/common/selectors/calculator.js +3 -3
  1076. package/lib/common/selectors/config.js +1 -1
  1077. package/lib/common/selectors/interactionTypes.js +14 -16
  1078. package/lib/common/selectors/items.js +3 -3
  1079. package/lib/common/selectors/qtiImports.js +4 -5
  1080. package/lib/common/selectors/quizSessionResults.js +4 -4
  1081. package/lib/common/selectors/quizSessions.js +11 -17
  1082. package/lib/common/selectors/quizzes.js +31 -43
  1083. package/lib/common/selectors/rce.js +4 -6
  1084. package/lib/common/selectors/reporting.js +5 -6
  1085. package/lib/common/selectors/sessionItemResults.js +10 -12
  1086. package/lib/common/selectors/sessionItems.js +11 -13
  1087. package/lib/common/selectors/taking.js +14 -14
  1088. package/lib/common/selectors/ui.js +2 -3
  1089. package/lib/common/util/CustomPropTypes.js +3 -5
  1090. package/lib/common/util/ElementsForSelectors.js +3 -4
  1091. package/lib/common/util/ExhaustivePaginatedFetcher.js +68 -56
  1092. package/lib/common/util/Fetcher.js +151 -166
  1093. package/lib/common/util/MultiWeakMap.js +5 -7
  1094. package/lib/common/util/PaginatedFetcher.js +46 -37
  1095. package/lib/common/util/ThunkQueue.js +55 -57
  1096. package/lib/common/util/TimeRecordingService.js +9 -11
  1097. package/lib/common/util/TimerService.js +16 -19
  1098. package/lib/common/util/cachePreviousArgs.js +4 -5
  1099. package/lib/common/util/callHelpers.js +6 -10
  1100. package/lib/common/util/clickHandlers.js +3 -3
  1101. package/lib/common/util/componentForItem.js +5 -6
  1102. package/lib/common/util/crossDomainMessaging.js +1 -1
  1103. package/lib/common/util/debounceLatestPromise.js +5 -6
  1104. package/lib/common/util/featureCheck.js +6 -6
  1105. package/lib/common/util/formatTimespan.js +8 -9
  1106. package/lib/common/util/generateDisplayPositions.js +3 -4
  1107. package/lib/common/util/getClientIpAddress.js +40 -0
  1108. package/lib/common/util/httpHeaders.js +5 -8
  1109. package/lib/common/util/immutableHelpers.js +6 -9
  1110. package/lib/common/util/instUIMessages.js +2 -3
  1111. package/lib/common/util/interactionTypeMetadata.js +17 -19
  1112. package/lib/common/util/interactionTypePropsHelper.js +5 -7
  1113. package/lib/common/util/interactionTypeRecordForItem.js +4 -4
  1114. package/lib/common/util/jsonify.js +8 -7
  1115. package/lib/common/util/keyboardClickable.js +2 -3
  1116. package/lib/common/util/mathRenderingUtils.js +2 -4
  1117. package/lib/common/util/maxContent.js +4 -5
  1118. package/lib/common/util/noop.js +2 -3
  1119. package/lib/common/util/persistedState.js +10 -11
  1120. package/lib/common/util/printUtils.js +5 -7
  1121. package/lib/common/util/rceChecker.js +12 -15
  1122. package/lib/common/util/renderAlerts.js +13 -15
  1123. package/lib/common/util/serializeEvent.js +7 -6
  1124. package/lib/common/util/sessionStore.js +4 -7
  1125. package/lib/common/util/valMap.js +4 -5
  1126. package/lib/common/util/warningHelpers.js +33 -40
  1127. package/lib/common/util/windowChecks.js +9 -14
  1128. package/lib/common/util/withCachedArguments.js +5 -6
  1129. package/lib/common/util/withDynamoPagination.js +71 -61
  1130. package/lib/common/util/withStateCache.js +5 -6
  1131. package/lib/config.js +6 -8
  1132. package/lib/configureStore.js +90 -91
  1133. package/lib/grading/api/quizEntryRegrades.js +6 -6
  1134. package/lib/grading/api/updateResults.js +10 -11
  1135. package/lib/index.js +567 -550
  1136. package/lib/messages/LocalStorageAdapter.js +18 -18
  1137. package/lib/messages/LocalStorageLimits.js +26 -25
  1138. package/lib/messages/StorageExhaustionError.js +27 -13
  1139. package/lib/messages/postMessageService.js +47 -45
  1140. package/lib/messages/subjectHandlers/forwardMessage.js +2 -3
  1141. package/lib/messages/subjectHandlers/lti.capabilities.js +2 -3
  1142. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -3
  1143. package/lib/messages/subjectHandlers/lti.frameResize.js +4 -5
  1144. package/lib/messages/subjectHandlers/lti.get_data.js +3 -4
  1145. package/lib/messages/subjectHandlers/lti.put_data.js +5 -6
  1146. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +7 -9
  1147. package/lib/moderating/api/quizSessionEvents.js +4 -4
  1148. package/lib/moderating/api/quizSessions.js +8 -8
  1149. package/lib/moderating/components/events/Event.js +72 -45
  1150. package/lib/moderating/components/events/PageBlurredEvent.js +26 -15
  1151. package/lib/moderating/components/events/PageFocusedEvent.js +26 -15
  1152. package/lib/moderating/components/events/RCEEvent.js +30 -18
  1153. package/lib/moderating/components/events/ResponseEvent.js +65 -35
  1154. package/lib/moderating/components/events/SessionStartEvent.js +45 -32
  1155. package/lib/moderating/components/events/SessionSubmitEvent.js +64 -0
  1156. package/lib/moderating/components/events/styles.js +2 -3
  1157. package/lib/moderating/components/events/theme.js +3 -4
  1158. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -4
  1159. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +53 -40
  1160. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -4
  1161. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +57 -45
  1162. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +64 -51
  1163. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -4
  1164. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +73 -60
  1165. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +49 -36
  1166. package/lib/moderating/components/resources/AccommodationsModal/index.js +87 -75
  1167. package/lib/moderating/components/resources/ElapsedTime.js +39 -27
  1168. package/lib/moderating/components/resources/EventDetails.js +49 -0
  1169. package/lib/moderating/components/resources/ModerateTable/index.js +11 -14
  1170. package/lib/moderating/components/resources/ModerateTable/presenter.js +182 -171
  1171. package/lib/moderating/components/resources/ModerateTable/styles.js +6 -5
  1172. package/lib/moderating/components/resources/ModerateTable/theme.js +3 -4
  1173. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +9 -10
  1174. package/lib/moderating/components/resources/ModerateTableRow/index.js +6 -7
  1175. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +107 -95
  1176. package/lib/moderating/components/resources/ModerateTableRow/story.js +6 -7
  1177. package/lib/moderating/components/resources/ModerateTableRow/styles.js +3 -4
  1178. package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -3
  1179. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -4
  1180. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +7 -9
  1181. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +86 -72
  1182. package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +6 -7
  1183. package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +48 -50
  1184. package/lib/moderating/components/resources/SessionBreachAlert.js +16 -0
  1185. package/lib/moderating/components/resources/util/checkIsBreach.js +35 -0
  1186. package/lib/moderating/components/resources/util/extractSessionData.js +27 -0
  1187. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -4
  1188. package/lib/moderating/components/sidebar/ModerateTray/index.js +6 -7
  1189. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +109 -97
  1190. package/lib/moderating/components/sidebar/ResetQuiz/index.js +10 -11
  1191. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +69 -59
  1192. package/lib/reduxStore.js +13 -14
  1193. package/lib/reporting/api/fetchStudentAnalyses.js +20 -23
  1194. package/lib/reporting/api/getAnalysesExport.js +24 -27
  1195. package/lib/reporting/api/getAnalysesStatus.js +22 -25
  1196. package/lib/reporting/api/getItemAnalyses.js +17 -20
  1197. package/lib/reporting/api/getQuizAnalysis.js +17 -20
  1198. package/lib/reporting/api/itemAnalyses.js +5 -5
  1199. package/lib/reporting/api/quizAnalyses.js +5 -5
  1200. package/lib/reporting/components/Caption/index.js +32 -21
  1201. package/lib/reporting/components/Caption/styles.js +2 -3
  1202. package/lib/reporting/components/Caption/theme.js +2 -3
  1203. package/lib/reporting/components/MetricsListItem/index.js +33 -21
  1204. package/lib/reporting/components/MetricsListItem/styles.js +2 -3
  1205. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -4
  1206. package/lib/reporting/components/charts/CentileDistribution/index.js +2 -3
  1207. package/lib/reporting/components/charts/CentileDistribution/presenter.js +53 -42
  1208. package/lib/reporting/components/charts/CentileDistribution/styles.js +3 -4
  1209. package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -3
  1210. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -5
  1211. package/lib/reporting/components/charts/Distribution/Distribution.js +2 -3
  1212. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -3
  1213. package/lib/reporting/components/charts/Distribution/index.js +2 -3
  1214. package/lib/reporting/components/charts/Distribution/presenter.js +58 -48
  1215. package/lib/reporting/components/charts/Distribution/styles.js +2 -3
  1216. package/lib/reporting/components/charts/Distribution/theme.js +6 -7
  1217. package/lib/reporting/components/charts/Legend/index.js +40 -28
  1218. package/lib/reporting/components/charts/Legend/styles.js +6 -5
  1219. package/lib/reporting/components/charts/Legend/theme.js +5 -6
  1220. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -4
  1221. package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -3
  1222. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +54 -43
  1223. package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -3
  1224. package/lib/reporting/components/charts/QuintileDistribution/theme.js +3 -4
  1225. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +5 -6
  1226. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +47 -38
  1227. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -11
  1228. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +10 -11
  1229. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +5 -6
  1230. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +6 -8
  1231. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +103 -92
  1232. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +4 -5
  1233. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +6 -7
  1234. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +66 -56
  1235. package/lib/reporting/components/quizAnalysis/styles.js +5 -7
  1236. package/lib/reporting/components/quizAnalysis/theme.js +2 -3
  1237. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +3 -4
  1238. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +32 -20
  1239. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -3
  1240. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +3 -4
  1241. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +38 -26
  1242. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -3
  1243. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  1244. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +41 -25
  1245. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  1246. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +43 -27
  1247. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  1248. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +62 -51
  1249. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +9 -8
  1250. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +3 -4
  1251. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  1252. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +46 -34
  1253. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -3
  1254. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -3
  1255. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +53 -36
  1256. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +44 -28
  1257. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  1258. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +80 -69
  1259. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +6 -5
  1260. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -3
  1261. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +55 -38
  1262. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -9
  1263. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +12 -11
  1264. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  1265. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +59 -43
  1266. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  1267. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +123 -108
  1268. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -3
  1269. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -3
  1270. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  1271. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +85 -70
  1272. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -3
  1273. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -3
  1274. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  1275. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +52 -36
  1276. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +50 -39
  1277. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -3
  1278. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -3
  1279. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +47 -32
  1280. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  1281. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +66 -50
  1282. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  1283. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +48 -34
  1284. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +6 -5
  1285. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -3
  1286. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  1287. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +5 -6
  1288. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +43 -28
  1289. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -3
  1290. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  1291. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +86 -75
  1292. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -3
  1293. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +7 -8
  1294. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  1295. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +105 -92
  1296. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +6 -5
  1297. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +4 -5
  1298. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  1299. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +58 -43
  1300. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -3
  1301. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -3
  1302. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +9 -11
  1303. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +3 -4
  1304. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +60 -48
  1305. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -3
  1306. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -3
  1307. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  1308. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +28 -16
  1309. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -3
  1310. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +3 -4
  1311. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -6
  1312. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +13 -16
  1313. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +115 -103
  1314. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -6
  1315. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
  1316. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +3 -4
  1317. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -12
  1318. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +82 -70
  1319. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -3
  1320. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -3
  1321. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -7
  1322. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +114 -102
  1323. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +7 -7
  1324. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +3 -4
  1325. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +3 -4
  1326. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +48 -35
  1327. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -3
  1328. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +4 -5
  1329. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
  1330. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +42 -45
  1331. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +28 -31
  1332. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -7
  1333. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +147 -135
  1334. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -3
  1335. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -3
  1336. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +14 -16
  1337. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +102 -109
  1338. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -8
  1339. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +40 -28
  1340. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -11
  1341. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -12
  1342. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +102 -92
  1343. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -3
  1344. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -4
  1345. package/lib/reporting/components/resources/ReportCard/index.js +36 -25
  1346. package/lib/reporting/components/resources/ReportCard/styles.js +3 -4
  1347. package/lib/reporting/components/resources/ReportCard/theme.js +2 -3
  1348. package/lib/reporting/components/resources/ReportList/index.js +34 -23
  1349. package/lib/reporting/components/resources/ReportList/styles.js +2 -3
  1350. package/lib/reporting/components/resources/ReportList/theme.js +2 -3
  1351. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +3 -4
  1352. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +107 -94
  1353. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +6 -6
  1354. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -4
  1355. package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +37 -40
  1356. package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +28 -31
  1357. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +12 -13
  1358. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +109 -116
  1359. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +38 -25
  1360. package/lib/reporting/components/resources/common/ExportButton/index.js +6 -7
  1361. package/lib/reporting/components/resources/common/errorCodes.js +11 -18
  1362. package/lib/reporting/components/resources/common/errorMessages.js +18 -26
  1363. package/lib/reporting/components/resources/common/exportReports.js +41 -44
  1364. package/lib/reporting/components/resources/common/generateReports.js +66 -72
  1365. package/lib/reporting/components/resources/common/propTypes.js +141 -143
  1366. package/lib/reporting/components/resources/common/utils.js +7 -9
  1367. package/lib/taking/api/taking.js +80 -60
  1368. package/lib/taking/learnosity/index.js +39 -41
  1369. package/package.json +56 -57
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateStyle = function generateStyle(componentTheme, props) {
8
8
  return {
9
9
  stimulus: {
@@ -44,5 +44,4 @@ var generateStyle = function generateStyle(componentTheme, props) {
44
44
  }
45
45
  };
46
46
  };
47
- var _default = generateStyle;
48
- exports.default = _default;
47
+ var _default = exports["default"] = generateStyle;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateComponentTheme = function generateComponentTheme(_ref) {
8
8
  var spacing = _ref.spacing,
9
9
  typography = _ref.typography,
@@ -15,9 +15,8 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
15
15
  optionPadding: spacing.small,
16
16
  stimulusContentPadding: spacing.small,
17
17
  stimulusContentPaddingBottom: spacing.small,
18
- stimulusButtonsColor: colors.oxford,
18
+ stimulusButtonsColor: colors.contrasts.grey100100,
19
19
  stimulusButtonsZIndex: '3333'
20
20
  };
21
21
  };
22
- var _default = generateComponentTheme;
23
- exports.default = _default;
22
+ var _default = exports["default"] = generateComponentTheme;
@@ -1,21 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.default = void 0;
7
+ exports["default"] = void 0;
9
8
  var _redux = require("redux");
10
- var _reactRedux = require("../../../../react-redux.js");
11
- var modificationActions = _interopRequireWildcard(require("../../../../actions/modifications.js"));
12
- var _featureCheck = require("../../../../../common/util/featureCheck.js");
13
- var _presenter = _interopRequireDefault(require("./presenter.js"));
9
+ var _reactRedux = require("../../../../react-redux");
10
+ var modificationActions = _interopRequireWildcard(require("../../../../actions/modifications"));
11
+ var _featureCheck = require("../../../../../common/util/featureCheck");
12
+ var _quizzes = require("../../../../../common/selectors/quizzes");
13
+ var _presenter = _interopRequireDefault(require("./presenter"));
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
16
  function mapStateToProps(state, props) {
17
+ var quizId = (0, _quizzes.getActiveQuizId)(state);
18
+ var quiz = (0, _quizzes.getQuizById)(state, quizId);
15
19
  return {
16
20
  workingStimulus: props.stimulus.getWorkingInstance(),
17
21
  errorsShowing: state.getIn(['errorsShowing', props.guid], props.errorsShowing || false),
18
- stimulusOrientationEnabled: (0, _featureCheck.featureOn)('customizable_stimulus_orientation')
22
+ stimulusOrientationEnabled: (0, _featureCheck.featureOn)('customizable_stimulus_orientation'),
23
+ shuffleQuestionsEnabled: quiz.shuffleQuestions
19
24
  };
20
25
  }
21
26
  function mapDispatchToProps(dispatch) {
@@ -24,5 +29,4 @@ function mapDispatchToProps(dispatch) {
24
29
  modifyStimulus: modActions.modifyStimulus
25
30
  };
26
31
  }
27
- var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.default);
28
- exports.default = _default;
32
+ var _default = exports["default"] = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter["default"]);
@@ -4,11 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.StimulusEditInfo = void 0;
7
+ exports["default"] = exports.StimulusEditInfo = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
10
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
14
  var _react = require("react");
13
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
16
  var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
@@ -16,66 +18,76 @@ var _uiA11yContent = require("@instructure/ui-a11y-content");
16
18
  var _emotion = require("@instructure/emotion");
17
19
  var _uiHeading = require("@instructure/ui-heading");
18
20
  var _quizRce = require("@instructure/quiz-rce");
19
- var _instUIMessages = require("../../../../util/instUIMessages.js");
21
+ var _instUIMessages = require("../../../../util/instUIMessages");
20
22
  var _uiIcons = require("@instructure/ui-icons");
21
23
  var _uiToggleDetails = require("@instructure/ui-toggle-details");
22
24
  var _quizCommon = require("@instructure/quiz-common");
23
25
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
24
- var _styles = _interopRequireDefault(require("./styles.js"));
25
- var _theme = _interopRequireDefault(require("./theme.js"));
26
+ var _styles = _interopRequireDefault(require("./styles"));
27
+ var _theme = _interopRequireDefault(require("./theme"));
28
+ var _uiAlerts = require("@instructure/ui-alerts");
26
29
  var _dec, _class, _StimulusEditInfo;
27
30
  /** @jsx jsx */
28
- var _ref3 = (0, _emotion.jsx)(_uiIcons.IconUpdownLine, {
29
- rotate: "90"
30
- });
31
- var _ref4 = (0, _emotion.jsx)(_uiIcons.IconUpdownLine, null);
32
- var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme.default), _dec(_class = (_StimulusEditInfo = /*#__PURE__*/function (_Component) {
33
- (0, _inherits2.default)(StimulusEditInfo, _Component);
34
- var _super = (0, _createSuper2.default)(StimulusEditInfo);
31
+ function _callSuper(_this, derived, args) {
32
+ function isNativeReflectConstruct() {
33
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
34
+ if (Reflect.construct.sham) return false;
35
+ if (typeof Proxy === "function") return true;
36
+ try {
37
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
38
+ } catch (e) {
39
+ return false;
40
+ }
41
+ }
42
+ derived = (0, _getPrototypeOf2["default"])(derived);
43
+ return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
44
+ }
45
+ var StimulusEditInfo = exports.StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_StimulusEditInfo = /*#__PURE__*/function (_Component) {
35
46
  function StimulusEditInfo() {
36
- var _this;
37
- (0, _classCallCheck2.default)(this, StimulusEditInfo);
47
+ var _this2;
48
+ (0, _classCallCheck2["default"])(this, StimulusEditInfo);
38
49
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
39
50
  args[_key] = arguments[_key];
40
51
  }
41
- _this = _super.call.apply(_super, [this].concat(args));
42
- _this.inputErrors = function (field) {
43
- if (_this.props.errorsShowing) {
44
- var errorMap = _this.props.workingStimulus.getErrors().toJS() || {};
52
+ _this2 = _callSuper(this, StimulusEditInfo, [].concat(args));
53
+ (0, _defineProperty2["default"])(_this2, "inputErrors", function (field) {
54
+ if (_this2.props.errorsShowing) {
55
+ var errorMap = _this2.props.workingStimulus.getErrors().toJS() || {};
45
56
  return (0, _instUIMessages.toErrors)(errorMap[field] || []);
46
57
  }
47
- };
48
- _this.onOrientationChange = function (e, _ref) {
58
+ });
59
+ (0, _defineProperty2["default"])(_this2, "onOrientationChange", function (e, _ref) {
49
60
  var value = _ref.value;
50
- var newData = _this.props.workingStimulus.set('orientation', value);
51
- _this.props.modifyStimulus(newData);
52
- };
53
- _this.onTextInputChange = function (field) {
61
+ var newData = _this2.props.workingStimulus.set('orientation', value);
62
+ _this2.props.modifyStimulus(newData);
63
+ });
64
+ (0, _defineProperty2["default"])(_this2, "onTextInputChange", function (field) {
54
65
  return function (e) {
55
- var newData = _this.props.workingStimulus.set(field, e.target.value);
56
- _this.props.modifyStimulus(newData);
66
+ var newData = _this2.props.workingStimulus.set(field, e.target.value);
67
+ _this2.props.modifyStimulus(newData);
57
68
  };
58
- };
59
- _this.onBodyChange = function (e, _ref2) {
69
+ });
70
+ (0, _defineProperty2["default"])(_this2, "onBodyChange", function (e, _ref2) {
60
71
  var editorContent = _ref2.editorContent;
61
- var newData = _this.props.workingStimulus.set('body', editorContent);
62
- _this.props.modifyStimulus(newData);
63
- };
64
- return _this;
72
+ var newData = _this2.props.workingStimulus.set('body', editorContent);
73
+ _this2.props.modifyStimulus(newData);
74
+ });
75
+ return _this2;
65
76
  }
66
- (0, _createClass2.default)(StimulusEditInfo, [{
77
+ (0, _inherits2["default"])(StimulusEditInfo, _Component);
78
+ return (0, _createClass2["default"])(StimulusEditInfo, [{
67
79
  key: "headerText",
68
80
  value: function headerText(stimulus) {
69
81
  if (stimulus.isTemporary()) {
70
- return stimulus.passage ? (0, _formatMessage.default)('Add Passage') : (0, _formatMessage.default)('Add Stimulus');
82
+ return stimulus.passage ? (0, _formatMessage["default"])('Add Passage') : (0, _formatMessage["default"])('Add Stimulus');
71
83
  } else {
72
- return stimulus.passage ? (0, _formatMessage.default)('Edit Passage') : (0, _formatMessage.default)('Edit Stimulus');
84
+ return stimulus.passage ? (0, _formatMessage["default"])('Edit Passage') : (0, _formatMessage["default"])('Edit Stimulus');
73
85
  }
74
86
  }
75
87
  }, {
76
88
  key: "renderOptionalLabel",
77
89
  value: function renderOptionalLabel(labelName) {
78
- var optionalText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (0, _formatMessage.default)('(optional)');
90
+ var optionalText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _formatMessage["default"])('(optional)');
79
91
  return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("span", null, labelName), (0, _emotion.jsx)("span", {
80
92
  css: this.props.styles.optionalLabel
81
93
  }, optionalText));
@@ -87,21 +99,33 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
87
99
  return (0, _emotion.jsx)("div", {
88
100
  css: this.props.styles.section
89
101
  }, (0, _emotion.jsx)(_quizCommon.SimpleSelect, {
90
- renderLabel: (0, _formatMessage.default)('Orientation'),
102
+ renderLabel: (0, _formatMessage["default"])('Orientation'),
91
103
  onChange: this.onOrientationChange,
92
104
  value: stimulusOrientation,
93
105
  renderBeforeInput: (0, _emotion.jsx)(_uiIcons.IconUpdownLine, {
94
106
  rotate: stimulusOrientation === _quizCommon.TOP ? '0' : '90'
95
107
  })
96
108
  }, (0, _emotion.jsx)(_quizCommon.SimpleSelect.Option, {
97
- renderBeforeLabel: _ref3,
109
+ renderBeforeLabel: (0, _emotion.jsx)(_uiIcons.IconUpdownLine, {
110
+ rotate: "90"
111
+ }),
98
112
  id: "stimulus-orientation-select-option-left",
99
113
  value: "left"
100
- }, (0, _formatMessage.default)('Questions to the right')), (0, _emotion.jsx)(_quizCommon.SimpleSelect.Option, {
101
- renderBeforeLabel: _ref4,
114
+ }, (0, _formatMessage["default"])('Questions to the right')), (0, _emotion.jsx)(_quizCommon.SimpleSelect.Option, {
115
+ renderBeforeLabel: (0, _emotion.jsx)(_uiIcons.IconUpdownLine, null),
102
116
  id: "stimulus-orientation-select-option-top",
103
117
  value: "top"
104
- }, (0, _formatMessage.default)('Questions below'))));
118
+ }, (0, _formatMessage["default"])('Questions below'))));
119
+ }
120
+ }, {
121
+ key: "renderPassageAlert",
122
+ value: function renderPassageAlert(stimulus) {
123
+ if (!stimulus.passage || !this.props.shuffleQuestionsEnabled) {
124
+ return null;
125
+ }
126
+ return (0, _emotion.jsx)(_uiAlerts.Alert, {
127
+ variant: "warning"
128
+ }, (0, _formatMessage["default"])('The passage sections may not appear in their original order due to the shuffle setting.'));
105
129
  }
106
130
  }, {
107
131
  key: "renderInstructions",
@@ -112,7 +136,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
112
136
  return (0, _emotion.jsx)("div", {
113
137
  css: this.props.styles.section
114
138
  }, (0, _emotion.jsx)(_quizCommon.TextInput, {
115
- renderLabel: this.renderOptionalLabel((0, _formatMessage.default)('Instructions')),
139
+ renderLabel: this.renderOptionalLabel((0, _formatMessage["default"])('Instructions')),
116
140
  onChange: this.onTextInputChange('instructions'),
117
141
  value: stimulus.get('instructions'),
118
142
  "data-automation": "sdk-stimulus-instructions-input"
@@ -130,11 +154,11 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
130
154
  defaultExpanded: true,
131
155
  variant: "filled",
132
156
  key: "options",
133
- summary: (0, _formatMessage.default)('Options')
157
+ summary: (0, _formatMessage["default"])('Options')
134
158
  }, this.props.stimulusOrientationEnabled ? this.renderStimulusOrientationSelect() : null, (0, _emotion.jsx)("div", {
135
159
  css: this.props.styles.section
136
160
  }, (0, _emotion.jsx)(_quizCommon.TextInput, {
137
- renderLabel: this.renderOptionalLabel((0, _formatMessage.default)('Source URL'), (0, _formatMessage.default)('(optional - not visible to students)')),
161
+ renderLabel: this.renderOptionalLabel((0, _formatMessage["default"])('Source URL'), (0, _formatMessage["default"])('(optional - not visible to students)')),
138
162
  onChange: this.onTextInputChange('sourceUrl'),
139
163
  value: stimulus.get('sourceUrl'),
140
164
  "data-automation": "sdk-source-url-input"
@@ -149,15 +173,15 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
149
173
  var automationPrefix = stimulus.passage ? 'passage' : 'stimulus';
150
174
  return (0, _emotion.jsx)(_quizCommon.FormFieldGroup, {
151
175
  messages: this.inputErrors('onSelf'),
152
- description: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Edit Stimulus'))
176
+ description: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('Edit Stimulus'))
153
177
  }, (0, _emotion.jsx)(_uiHeading.Heading, {
154
178
  level: "h3",
155
179
  as: "h2"
156
- }, this.headerText(stimulus)), (0, _emotion.jsx)("div", {
180
+ }, this.headerText(stimulus)), this.renderPassageAlert(stimulus), (0, _emotion.jsx)("div", {
157
181
  css: this.props.styles.section
158
182
  }, (0, _emotion.jsx)(_quizCommon.TextInput, {
159
183
  messages: this.inputErrors('title'),
160
- renderLabel: (0, _formatMessage.default)('Title'),
184
+ renderLabel: (0, _formatMessage["default"])('Title'),
161
185
  isRequired: true,
162
186
  ref: this.props.setTitleRef,
163
187
  onChange: this.onTextInputChange('title'),
@@ -169,7 +193,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
169
193
  id: stimulusBodyId
170
194
  }, (0, _emotion.jsx)(_quizRce.RichContentInput, {
171
195
  actsAsInput: true,
172
- label: (0, _formatMessage.default)('Content'),
196
+ label: (0, _formatMessage["default"])('Content'),
173
197
  isRequired: true,
174
198
  messages: this.inputErrors('body'),
175
199
  textareaId: textAreaId,
@@ -181,21 +205,19 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
181
205
  }))), this.renderOptions(stimulus));
182
206
  }
183
207
  }]);
184
- StimulusEditInfo.displayName = "StimulusEditInfo";
185
- return StimulusEditInfo;
186
- }(_react.Component), _StimulusEditInfo.displayName = 'StimulusEditInfo', _StimulusEditInfo.componentId = "Quizzes".concat(_StimulusEditInfo.displayName), _StimulusEditInfo.propTypes = {
187
- isBankedContent: _propTypes.default.bool,
188
- stimulus: _reactImmutableProptypes.default.record.isRequired,
189
- workingStimulus: _reactImmutableProptypes.default.record.isRequired,
190
- errorsShowing: _propTypes.default.bool.isRequired,
191
- modifyStimulus: _propTypes.default.func.isRequired,
192
- setTitleRef: _propTypes.default.func,
193
- stimulusOrientationEnabled: _propTypes.default.bool.isRequired,
194
- styles: _propTypes.default.object
195
- }, _StimulusEditInfo.defaultProps = {
208
+ }(_react.Component), (0, _defineProperty2["default"])(_StimulusEditInfo, "displayName", 'StimulusEditInfo'), (0, _defineProperty2["default"])(_StimulusEditInfo, "componentId", "Quizzes".concat(_StimulusEditInfo.displayName)), (0, _defineProperty2["default"])(_StimulusEditInfo, "propTypes", {
209
+ isBankedContent: _propTypes["default"].bool,
210
+ stimulus: _reactImmutableProptypes["default"].record.isRequired,
211
+ workingStimulus: _reactImmutableProptypes["default"].record.isRequired,
212
+ errorsShowing: _propTypes["default"].bool.isRequired,
213
+ modifyStimulus: _propTypes["default"].func.isRequired,
214
+ setTitleRef: _propTypes["default"].func,
215
+ stimulusOrientationEnabled: _propTypes["default"].bool.isRequired,
216
+ styles: _propTypes["default"].object,
217
+ shuffleQuestionsEnabled: _propTypes["default"].bool
218
+ }), (0, _defineProperty2["default"])(_StimulusEditInfo, "defaultProps", {
196
219
  isBankedContent: false,
220
+ shuffleQuestionsEnabled: false,
197
221
  setTitleRef: function setTitleRef() {}
198
- }, _StimulusEditInfo)) || _class);
199
- exports.StimulusEditInfo = StimulusEditInfo;
200
- var _default = StimulusEditInfo;
201
- exports.default = _default;
222
+ }), _StimulusEditInfo)) || _class);
223
+ var _default = exports["default"] = StimulusEditInfo;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateStyle = function generateStyle(componentTheme) {
8
8
  return {
9
9
  section: {
@@ -16,5 +16,4 @@ var generateStyle = function generateStyle(componentTheme) {
16
16
  }
17
17
  };
18
18
  };
19
- var _default = generateStyle;
20
- exports.default = _default;
19
+ var _default = exports["default"] = generateStyle;
@@ -3,17 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateComponentTheme = function generateComponentTheme(_ref) {
8
8
  var spacing = _ref.spacing,
9
9
  typography = _ref.typography,
10
10
  colors = _ref.colors;
11
11
  return {
12
12
  sectionPadding: spacing.small,
13
- optionalLabelColor: colors.ash,
13
+ optionalLabelColor: colors.contrasts.grey4570,
14
14
  optionalLabelFontSize: typography.fontSizeXSmall,
15
15
  urlLabelMargin: spacing.xSmall
16
16
  };
17
17
  };
18
- var _default = generateComponentTheme;
19
- exports.default = _default;
18
+ var _default = exports["default"] = generateComponentTheme;
@@ -4,55 +4,69 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.StimulusShow = void 0;
7
+ exports["default"] = exports.StimulusShow = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
10
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
14
  var _react = require("react");
13
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
16
  var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
15
17
  var _uiIcons = require("@instructure/ui-icons");
16
18
  var _emotion = require("@instructure/emotion");
17
19
  var _uiText = require("@instructure/ui-text");
18
- var _index = _interopRequireDefault(require("../StimulusShowInfo/index.js"));
19
- var _index2 = _interopRequireDefault(require("../../../../../building/components/resources/ActionButtons/index.js"));
20
- var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
21
- var _styles = _interopRequireDefault(require("./styles.js"));
22
- var _theme = _interopRequireDefault(require("./theme.js"));
23
- var _index3 = _interopRequireDefault(require("../../../shared/overlay/index.js"));
24
20
  var _quizCommon = require("@instructure/quiz-common");
21
+ var _StimulusShowInfo = _interopRequireDefault(require("../StimulusShowInfo"));
22
+ var _ActionButtons = _interopRequireDefault(require("../../../../../building/components/resources/ActionButtons"));
23
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
24
+ var _styles = _interopRequireDefault(require("./styles"));
25
+ var _theme = _interopRequireDefault(require("./theme"));
26
+ var _overlay = _interopRequireDefault(require("../../../shared/overlay"));
25
27
  var _dec, _class, _StimulusShow;
26
28
  /** @jsx jsx */
27
29
  /* eslint "jsx-a11y/click-events-have-key-events": "warn" */
28
- var _ref = (0, _emotion.jsx)(_uiIcons.IconBankLine, null);
29
- var StimulusShow = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme.default), _dec(_class = (_StimulusShow = /*#__PURE__*/function (_Component) {
30
- (0, _inherits2.default)(StimulusShow, _Component);
31
- var _super = (0, _createSuper2.default)(StimulusShow);
30
+ function _callSuper(_this, derived, args) {
31
+ function isNativeReflectConstruct() {
32
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
33
+ if (Reflect.construct.sham) return false;
34
+ if (typeof Proxy === "function") return true;
35
+ try {
36
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
37
+ } catch (e) {
38
+ return false;
39
+ }
40
+ }
41
+ derived = (0, _getPrototypeOf2["default"])(derived);
42
+ return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
43
+ }
44
+ var StimulusShow = exports.StimulusShow = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_StimulusShow = /*#__PURE__*/function (_Component) {
32
45
  function StimulusShow() {
33
- var _this;
34
- (0, _classCallCheck2.default)(this, StimulusShow);
46
+ var _this2;
47
+ (0, _classCallCheck2["default"])(this, StimulusShow);
35
48
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
36
49
  args[_key] = arguments[_key];
37
50
  }
38
- _this = _super.call.apply(_super, [this].concat(args));
39
- _this.switchOnEditing = function () {
40
- _this.props.switchOnEditing();
41
- };
42
- return _this;
51
+ _this2 = _callSuper(this, StimulusShow, [].concat(args));
52
+ (0, _defineProperty2["default"])(_this2, "switchOnEditing", function () {
53
+ _this2.props.switchOnEditing();
54
+ });
55
+ return _this2;
43
56
  }
44
- (0, _createClass2.default)(StimulusShow, [{
57
+ (0, _inherits2["default"])(StimulusShow, _Component);
58
+ return (0, _createClass2["default"])(StimulusShow, [{
45
59
  key: "renderBankIcon",
46
60
  value: function renderBankIcon() {
47
61
  if (this.props.isBankedContent || this.props.quizEntry.isArchivedBankEntry) {
48
- return _ref;
62
+ return (0, _emotion.jsx)(_uiIcons.IconBankLine, null);
49
63
  }
50
64
  }
51
65
  }, {
52
66
  key: "render",
53
67
  value: function render() {
54
- var stimulusLabel = this.props.stimulus.passage ? (0, _formatMessage.default)('Passage') : (0, _formatMessage.default)('Stimulus');
55
- return (0, _emotion.jsx)(_index3.default, {
68
+ var stimulusLabel = this.props.stimulus.passage ? (0, _formatMessage["default"])('Passage') : (0, _formatMessage["default"])('Stimulus');
69
+ return (0, _emotion.jsx)(_overlay["default"], {
56
70
  onClick: this.switchOnEditing,
57
71
  wrapperStyles: this.props.styles.stimulusWrapper,
58
72
  tabIndex: "-1",
@@ -69,7 +83,7 @@ var StimulusShow = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
69
83
  size: "small",
70
84
  color: "secondary",
71
85
  margin: "0 x-small"
72
- }, stimulusLabel))), (0, _emotion.jsx)(_index2.default, {
86
+ }, stimulusLabel))), (0, _emotion.jsx)(_ActionButtons["default"], {
73
87
  connectDragSource: this.props.connectDragSource,
74
88
  displayPosition: this.props.displayPosition,
75
89
  onDelete: this.props.openDeleteStimulusModal,
@@ -87,34 +101,30 @@ var StimulusShow = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
87
101
  onClick: this.props.isQuizContentLocked ? null : this.switchOnEditing,
88
102
  css: this.props.styles.stimulusContent,
89
103
  "data-testid": "stimulus-content"
90
- }, (0, _emotion.jsx)(_index.default, {
104
+ }, (0, _emotion.jsx)(_StimulusShowInfo["default"], {
91
105
  stimulus: this.props.stimulus
92
106
  }))));
93
107
  }
94
108
  }]);
95
- StimulusShow.displayName = "StimulusShow";
96
- return StimulusShow;
97
- }(_react.Component), _StimulusShow.displayName = 'StimulusShow', _StimulusShow.componentId = "Quizzes".concat(_StimulusShow.displayName), _StimulusShow.propTypes = {
98
- connectDragSource: _propTypes.default.func.isRequired,
99
- displayPosition: _propTypes.default.number.isRequired,
100
- isBankedContent: _propTypes.default.bool,
101
- isQuizContentLocked: _propTypes.default.bool.isRequired,
102
- openDeleteStimulusModal: _propTypes.default.func.isRequired,
103
- quizEntries: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.record).isRequired,
104
- quizEntry: _reactImmutableProptypes.default.record.isRequired,
105
- scrollKey: _propTypes.default.string,
106
- shouldDisableDragHandle: _propTypes.default.bool,
107
- stimulus: _reactImmutableProptypes.default.record.isRequired,
108
- switchOnEditing: _propTypes.default.func.isRequired,
109
- shouldFocusOnMount: _propTypes.default.bool.isRequired,
110
- styles: _propTypes.default.object
111
- }, _StimulusShow.defaultProps = {
109
+ }(_react.Component), (0, _defineProperty2["default"])(_StimulusShow, "displayName", 'StimulusShow'), (0, _defineProperty2["default"])(_StimulusShow, "componentId", "Quizzes".concat(_StimulusShow.displayName)), (0, _defineProperty2["default"])(_StimulusShow, "propTypes", {
110
+ connectDragSource: _propTypes["default"].func.isRequired,
111
+ displayPosition: _propTypes["default"].number.isRequired,
112
+ isBankedContent: _propTypes["default"].bool,
113
+ isQuizContentLocked: _propTypes["default"].bool.isRequired,
114
+ openDeleteStimulusModal: _propTypes["default"].func.isRequired,
115
+ quizEntries: _reactImmutableProptypes["default"].listOf(_reactImmutableProptypes["default"].record).isRequired,
116
+ quizEntry: _reactImmutableProptypes["default"].record.isRequired,
117
+ scrollKey: _propTypes["default"].string,
118
+ shouldDisableDragHandle: _propTypes["default"].bool,
119
+ stimulus: _reactImmutableProptypes["default"].record.isRequired,
120
+ switchOnEditing: _propTypes["default"].func.isRequired,
121
+ shouldFocusOnMount: _propTypes["default"].bool.isRequired,
122
+ styles: _propTypes["default"].object
123
+ }), (0, _defineProperty2["default"])(_StimulusShow, "defaultProps", {
112
124
  isBankedContent: false,
113
125
  isQuizContentLocked: false,
114
126
  scrollKey: '',
115
127
  shouldDisableDragHandle: false,
116
128
  shouldFocusOnMount: false
117
- }, _StimulusShow)) || _class);
118
- exports.StimulusShow = StimulusShow;
119
- var _default = StimulusShow;
120
- exports.default = _default;
129
+ }), _StimulusShow)) || _class);
130
+ var _default = exports["default"] = StimulusShow;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateStyle = function generateStyle(componentTheme) {
8
8
  return {
9
9
  stimulus: {
@@ -28,5 +28,4 @@ var generateStyle = function generateStyle(componentTheme) {
28
28
  }
29
29
  };
30
30
  };
31
- var _default = generateStyle;
32
- exports.default = _default;
31
+ var _default = exports["default"] = generateStyle;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var generateComponentTheme = function generateComponentTheme(_ref) {
8
8
  var spacing = _ref.spacing,
9
9
  typography = _ref.typography,
@@ -16,5 +16,4 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
16
16
  stimulusContentPaddingLeftRight: spacing.small
17
17
  };
18
18
  };
19
- var _default = generateComponentTheme;
20
- exports.default = _default;
19
+ var _default = exports["default"] = generateComponentTheme;
@@ -4,16 +4,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
8
- var _Stimulus = _interopRequireDefault(require("../../../../../common/records/Stimulus.js"));
9
- var stimulus = new _Stimulus.default({
7
+ exports["default"] = void 0;
8
+ var _Stimulus = _interopRequireDefault(require("../../../../../common/records/Stimulus"));
9
+ var stimulus = new _Stimulus["default"]({
10
10
  instructions: 'Instructions can be useful, but people tend not to read them.',
11
11
  title: 'A Stimulus',
12
12
  body: 'Nothing to see here, move along...'
13
13
  });
14
- var _default = {
14
+ var _default = exports["default"] = {
15
15
  propValues: {
16
16
  stimulus: [stimulus]
17
17
  }
18
- };
19
- exports.default = _default;
18
+ };