@instructure/quiz-core 21.1.1 → 22.0.0

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 (1365) 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 +82 -71
  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 +2 -2
  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 +2 -2
  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 +35 -22
  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 +5 -5
  254. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +49 -38
  255. package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
  256. package/es/common/components/resources/stimulus/StimulusShow/index.js +34 -22
  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/index.js +4 -3
  263. package/es/common/components/shared/ExpandButton/index.js +24 -11
  264. package/es/common/components/shared/ExpandButton/styles.js +3 -1
  265. package/es/common/components/shared/FormattedDuration/index.js +30 -16
  266. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +81 -68
  267. package/es/common/components/shared/IfFeature/index.js +3 -3
  268. package/es/common/components/shared/IfFeature/presenter.js +24 -11
  269. package/es/common/components/shared/InteractionTypes/index.js +3 -3
  270. package/es/common/components/shared/InteractionTypes/presenter.js +52 -39
  271. package/es/common/components/shared/InteractionTypes/theme.js +1 -1
  272. package/es/common/components/shared/PaginatedCollection/index.js +3 -3
  273. package/es/common/components/shared/PaginatedCollection/presenter.js +60 -49
  274. package/es/common/components/shared/PaginatedCollection/theme.js +1 -1
  275. package/es/common/components/shared/Paginator/index.js +27 -14
  276. package/es/common/components/shared/PrintTrigger/index.js +6 -6
  277. package/es/common/components/shared/PrintTrigger/presenter.js +61 -48
  278. package/es/common/components/shared/TagDisplay/index.js +24 -11
  279. package/es/common/components/shared/TagDisplay/styles.js +1 -1
  280. package/es/common/components/shared/TagSelect/index.js +1 -1
  281. package/es/common/components/shared/TagSelect/presenter.js +77 -63
  282. package/es/common/components/shared/TagSuggestSelect/index.js +4 -4
  283. package/es/common/components/shared/TagSuggestSelect/presenter.js +42 -29
  284. package/es/common/components/shared/TagWrapper/index.js +1 -1
  285. package/es/common/components/shared/TagWrapper/presenter.js +29 -16
  286. package/es/common/components/shared/TimeUnitsInput/index.js +72 -59
  287. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +29 -16
  288. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +3 -1
  289. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
  290. package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
  291. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +55 -46
  292. package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +4 -4
  293. package/es/common/components/shared/errors/Errors.js +30 -17
  294. package/es/common/components/shared/errors/theme.js +1 -1
  295. package/es/common/components/shared/file_selector/FileSelector.js +28 -16
  296. package/es/common/components/shared/file_selector/theme.js +2 -2
  297. package/es/common/components/shared/functionality/componentWithOutsideClick.js +28 -11
  298. package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +24 -13
  299. package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -2
  300. package/es/common/components/shared/functionality/makeEditable.js +43 -24
  301. package/es/common/components/shared/functionality/makeScrollable.js +46 -33
  302. package/es/common/components/shared/overlay/index.js +25 -12
  303. package/es/common/components/shared/overlay/theme.js +1 -1
  304. package/es/common/components/shared/return_button/ReturnButton.js +26 -12
  305. package/es/common/components/shared/spinner/Spinner.js +31 -17
  306. package/es/common/kinesis/QuizEventsLogger.js +37 -40
  307. package/es/common/kinesis/StreamQueue.js +7 -4
  308. package/es/common/kinesis/client.js +3 -3
  309. package/es/common/kinesis/config.js +1 -1
  310. package/es/common/kinesis/eventTypes.js +1 -1
  311. package/es/common/middleware/alertTimerMiddleware.js +2 -2
  312. package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -1
  313. package/es/common/middleware/eventLoggerMiddleware.js +8 -5
  314. package/es/common/middleware/persistedStorageMiddleware.js +5 -3
  315. package/es/common/middleware/quizTimerWebSocketMiddleware.js +7 -7
  316. package/es/common/react-redux.js +1 -1
  317. package/es/common/records/Alert.js +20 -5
  318. package/es/common/records/Bank.js +22 -8
  319. package/es/common/records/BankEntry.js +25 -12
  320. package/es/common/records/Item.js +29 -14
  321. package/es/common/records/ItemAnalysis.js +21 -8
  322. package/es/common/records/QtiImport.js +20 -7
  323. package/es/common/records/Quiz.js +34 -19
  324. package/es/common/records/QuizAnalysis.js +20 -7
  325. package/es/common/records/QuizEntry.js +130 -117
  326. package/es/common/records/QuizSession.js +38 -20
  327. package/es/common/records/QuizSessionEvent.js +21 -8
  328. package/es/common/records/QuizSessionResult.js +21 -8
  329. package/es/common/records/Response.js +21 -8
  330. package/es/common/records/SessionItem.js +27 -14
  331. package/es/common/records/SessionItemResult.js +21 -8
  332. package/es/common/records/Stimulus.js +30 -12
  333. package/es/common/records/baseRecord.js +29 -12
  334. package/es/common/records/index.js +16 -16
  335. package/es/common/records/reduxRecord.js +24 -9
  336. package/es/common/reducers/alerts.js +3 -3
  337. package/es/common/reducers/analyses.js +3 -3
  338. package/es/common/reducers/bankEntries.js +2 -2
  339. package/es/common/reducers/bankSearch.js +2 -2
  340. package/es/common/reducers/banks.js +2 -2
  341. package/es/common/reducers/calls.js +2 -2
  342. package/es/common/reducers/config.js +2 -2
  343. package/es/common/reducers/dragAndDrop.js +2 -2
  344. package/es/common/reducers/editing.js +3 -4
  345. package/es/common/reducers/errorsShowing.js +2 -2
  346. package/es/common/reducers/features.js +2 -2
  347. package/es/common/reducers/grading.js +2 -2
  348. package/es/common/reducers/interactionTypes.js +2 -2
  349. package/es/common/reducers/items.js +2 -2
  350. package/es/common/reducers/modal.js +2 -2
  351. package/es/common/reducers/moderation.js +2 -2
  352. package/es/common/reducers/modifications.js +9 -8
  353. package/es/common/reducers/outcomes.js +2 -2
  354. package/es/common/reducers/printing.js +2 -2
  355. package/es/common/reducers/qtiImports.js +2 -2
  356. package/es/common/reducers/quizEntries.js +5 -5
  357. package/es/common/reducers/quizExport.js +2 -2
  358. package/es/common/reducers/quizSessionEvents.js +5 -3
  359. package/es/common/reducers/quizSessionResults.js +2 -2
  360. package/es/common/reducers/quizSessions.js +2 -2
  361. package/es/common/reducers/quizzes.js +2 -2
  362. package/es/common/reducers/rce.js +2 -2
  363. package/es/common/reducers/regrading.js +2 -2
  364. package/es/common/reducers/reporting.js +2 -2
  365. package/es/common/reducers/scrolling.js +2 -2
  366. package/es/common/reducers/sessionItemResults.js +2 -2
  367. package/es/common/reducers/sessionItems.js +2 -2
  368. package/es/common/reducers/sharedBanks.js +2 -2
  369. package/es/common/reducers/sidebar.js +2 -2
  370. package/es/common/reducers/stimuli.js +2 -2
  371. package/es/common/reducers/tagAssociations.js +2 -2
  372. package/es/common/reducers/taking.js +2 -2
  373. package/es/common/reducers/ui.js +3 -3
  374. package/es/common/reducers/upload.js +4 -4
  375. package/es/common/selectors/calculator.js +5 -3
  376. package/es/common/selectors/interactionTypes.js +7 -7
  377. package/es/common/selectors/items.js +1 -1
  378. package/es/common/selectors/qtiImports.js +1 -1
  379. package/es/common/selectors/quizSessionResults.js +2 -2
  380. package/es/common/selectors/quizSessions.js +2 -2
  381. package/es/common/selectors/quizzes.js +9 -9
  382. package/es/common/selectors/reporting.js +2 -2
  383. package/es/common/selectors/sessionItemResults.js +4 -5
  384. package/es/common/selectors/sessionItems.js +4 -5
  385. package/es/common/selectors/taking.js +2 -2
  386. package/es/common/util/ExhaustivePaginatedFetcher.js +64 -49
  387. package/es/common/util/Fetcher.js +128 -141
  388. package/es/common/util/MultiWeakMap.js +1 -2
  389. package/es/common/util/PaginatedFetcher.js +37 -26
  390. package/es/common/util/ThunkQueue.js +50 -51
  391. package/es/common/util/TimeRecordingService.js +5 -5
  392. package/es/common/util/TimerService.js +7 -7
  393. package/es/common/util/clickHandlers.js +1 -1
  394. package/es/common/util/crossDomainMessaging.js +1 -1
  395. package/es/common/util/debounceLatestPromise.js +1 -1
  396. package/es/common/util/featureCheck.js +5 -3
  397. package/es/common/util/formatTimespan.js +2 -2
  398. package/es/common/util/generateDisplayPositions.js +1 -1
  399. package/es/common/util/getClientIpAddress.js +21 -23
  400. package/es/common/util/immutableHelpers.js +4 -3
  401. package/es/common/util/interactionTypePropsHelper.js +1 -1
  402. package/es/common/util/jsonify.js +4 -2
  403. package/es/common/util/persistedState.js +4 -4
  404. package/es/common/util/printUtils.js +1 -1
  405. package/es/common/util/rceChecker.js +9 -11
  406. package/es/common/util/renderAlerts.js +11 -10
  407. package/es/common/util/serializeEvent.js +2 -2
  408. package/es/common/util/sessionStore.js +1 -2
  409. package/es/common/util/warningHelpers.js +2 -2
  410. package/es/common/util/windowChecks.js +2 -2
  411. package/es/common/util/withCachedArguments.js +3 -1
  412. package/es/common/util/withDynamoPagination.js +67 -56
  413. package/es/common/util/withStateCache.js +3 -1
  414. package/es/configureStore.js +45 -43
  415. package/es/grading/api/quizEntryRegrades.js +4 -4
  416. package/es/grading/api/updateResults.js +6 -6
  417. package/es/index.js +148 -140
  418. package/es/messages/LocalStorageAdapter.js +15 -13
  419. package/es/messages/LocalStorageLimits.js +22 -20
  420. package/es/messages/StorageExhaustionError.js +23 -8
  421. package/es/messages/postMessageService.js +34 -31
  422. package/es/messages/subjectHandlers/lti.frameResize.js +2 -2
  423. package/es/messages/subjectHandlers/lti.get_data.js +1 -1
  424. package/es/messages/subjectHandlers/lti.put_data.js +2 -2
  425. package/es/messages/subjectHandlers/requestFullWindowLaunch.js +3 -3
  426. package/es/moderating/api/quizSessionEvents.js +3 -3
  427. package/es/moderating/api/quizSessions.js +3 -3
  428. package/es/moderating/components/events/Event.js +37 -26
  429. package/es/moderating/components/events/PageBlurredEvent.js +19 -7
  430. package/es/moderating/components/events/PageFocusedEvent.js +19 -7
  431. package/es/moderating/components/events/RCEEvent.js +22 -9
  432. package/es/moderating/components/events/ResponseEvent.js +35 -22
  433. package/es/moderating/components/events/SessionStartEvent.js +24 -11
  434. package/es/moderating/components/events/SessionSubmitEvent.js +24 -11
  435. package/es/moderating/components/events/theme.js +1 -1
  436. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +34 -21
  437. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +45 -32
  438. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +47 -34
  439. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +42 -28
  440. package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +35 -21
  441. package/es/moderating/components/resources/AccommodationsModal/index.js +62 -49
  442. package/es/moderating/components/resources/ElapsedTime.js +26 -13
  443. package/es/moderating/components/resources/EventDetails.js +2 -3
  444. package/es/moderating/components/resources/ModerateTable/index.js +7 -7
  445. package/es/moderating/components/resources/ModerateTable/presenter.js +115 -102
  446. package/es/moderating/components/resources/ModerateTable/styles.js +3 -1
  447. package/es/moderating/components/resources/ModerateTable/theme.js +1 -1
  448. package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -2
  449. package/es/moderating/components/resources/ModerateTableRow/index.js +3 -3
  450. package/es/moderating/components/resources/ModerateTableRow/presenter.js +65 -51
  451. package/es/moderating/components/resources/ModerateTableRow/story.js +4 -1
  452. package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -1
  453. package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
  454. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +58 -43
  455. package/es/moderating/components/resources/RetryGradePassbackButton/index.js +3 -3
  456. package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +40 -42
  457. package/es/moderating/components/resources/SessionBreachAlert.js +1 -2
  458. package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
  459. package/es/moderating/components/sidebar/ModerateTray/presenter.js +76 -63
  460. package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -7
  461. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +45 -34
  462. package/es/reduxStore.js +5 -5
  463. package/es/reporting/api/fetchStudentAnalyses.js +16 -18
  464. package/es/reporting/api/getAnalysesExport.js +20 -22
  465. package/es/reporting/api/getAnalysesStatus.js +18 -20
  466. package/es/reporting/api/getItemAnalyses.js +13 -15
  467. package/es/reporting/api/getQuizAnalysis.js +13 -15
  468. package/es/reporting/api/itemAnalyses.js +4 -4
  469. package/es/reporting/api/quizAnalyses.js +4 -4
  470. package/es/reporting/components/Caption/index.js +25 -12
  471. package/es/reporting/components/MetricsListItem/index.js +26 -12
  472. package/es/reporting/components/charts/CentileDistribution/presenter.js +43 -30
  473. package/es/reporting/components/charts/Distribution/presenter.js +49 -36
  474. package/es/reporting/components/charts/Distribution/theme.js +4 -4
  475. package/es/reporting/components/charts/Legend/index.js +29 -15
  476. package/es/reporting/components/charts/Legend/styles.js +3 -1
  477. package/es/reporting/components/charts/Legend/theme.js +3 -3
  478. package/es/reporting/components/charts/QuintileDistribution/presenter.js +46 -33
  479. package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -1
  480. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
  481. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +32 -21
  482. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -8
  483. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
  484. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
  485. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
  486. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +54 -42
  487. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
  488. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +38 -27
  489. package/es/reporting/components/quizAnalysis/styles.js +3 -4
  490. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
  491. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +25 -12
  492. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
  493. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +26 -13
  494. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  495. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +34 -18
  496. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  497. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +35 -19
  498. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  499. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +51 -39
  500. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +3 -1
  501. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
  502. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  503. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +33 -20
  504. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +40 -23
  505. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +35 -19
  506. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  507. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +69 -57
  508. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +3 -1
  509. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +43 -26
  510. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
  511. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +8 -6
  512. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  513. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +41 -25
  514. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  515. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +91 -75
  516. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  517. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +66 -50
  518. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  519. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +44 -28
  520. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +38 -25
  521. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +35 -19
  522. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  523. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +60 -44
  524. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  525. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +40 -26
  526. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +3 -1
  527. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  528. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +36 -20
  529. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  530. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +78 -66
  531. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
  532. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  533. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +94 -80
  534. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +3 -1
  535. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
  536. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  537. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +51 -35
  538. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  539. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
  540. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +51 -38
  541. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  542. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +24 -11
  543. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
  544. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -3
  545. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +95 -82
  546. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +3 -1
  547. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
  548. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
  549. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +58 -45
  550. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
  551. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +87 -74
  552. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
  553. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
  554. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
  555. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +34 -21
  556. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
  557. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +39 -41
  558. package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +25 -27
  559. package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
  560. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +121 -108
  561. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -11
  562. package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +69 -76
  563. package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
  564. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +25 -12
  565. package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -3
  566. package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
  567. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +53 -41
  568. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
  569. package/es/reporting/components/resources/ReportCard/index.js +26 -13
  570. package/es/reporting/components/resources/ReportList/index.js +25 -12
  571. package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -2
  572. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +83 -70
  573. package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -1
  574. package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
  575. package/es/reporting/components/resources/StudentAnalysis/fetchReport.js +34 -36
  576. package/es/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +25 -27
  577. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +10 -10
  578. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +79 -86
  579. package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +27 -14
  580. package/es/reporting/components/resources/common/errorCodes.js +2 -2
  581. package/es/reporting/components/resources/common/exportReports.js +38 -40
  582. package/es/reporting/components/resources/common/generateReports.js +62 -66
  583. package/es/reporting/components/resources/common/utils.js +1 -1
  584. package/es/taking/api/taking.js +36 -38
  585. package/es/taking/learnosity/index.js +36 -38
  586. package/lib/banks/api/bankEntries.js +43 -54
  587. package/lib/banks/api/banks.js +68 -78
  588. package/lib/banks/api/copyingBanksPoller.js +54 -58
  589. package/lib/banks/api/tagAssociations.js +37 -44
  590. package/lib/banks/components/AddBankEntryModal/index.js +12 -13
  591. package/lib/banks/components/AddBankEntryModal/presenter.js +66 -54
  592. package/lib/banks/components/AddToBankModal/index.js +12 -12
  593. package/lib/banks/components/AddToBankModal/presenter.js +109 -98
  594. package/lib/banks/components/AsyncSearch/index.js +150 -137
  595. package/lib/banks/components/Bank/index.js +18 -19
  596. package/lib/banks/components/Bank/presenter.js +201 -194
  597. package/lib/banks/components/Bank/styles.js +7 -7
  598. package/lib/banks/components/Bank/theme.js +3 -4
  599. package/lib/banks/components/BankEntriesList/index.js +6 -7
  600. package/lib/banks/components/BankEntriesList/presenter.js +48 -37
  601. package/lib/banks/components/BankEntriesList/styles.js +2 -3
  602. package/lib/banks/components/BankEntriesList/theme.js +2 -3
  603. package/lib/banks/components/BankEntry/index.js +21 -23
  604. package/lib/banks/components/BankEntry/presenter.js +311 -309
  605. package/lib/banks/components/BankEntry/styles.js +7 -6
  606. package/lib/banks/components/BankEntry/theme.js +7 -8
  607. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +7 -8
  608. package/lib/banks/components/BankEntryRow/index.js +13 -13
  609. package/lib/banks/components/BankEntryRow/presenter.js +135 -124
  610. package/lib/banks/components/BankEntryRow/styles.js +2 -4
  611. package/lib/banks/components/BankEntryRow/theme.js +6 -7
  612. package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -17
  613. package/lib/banks/components/BankSearch/index.js +6 -7
  614. package/lib/banks/components/BankSearch/presenter.js +74 -63
  615. package/lib/banks/components/BankSearch/styles.js +2 -3
  616. package/lib/banks/components/BankSearch/theme.js +2 -3
  617. package/lib/banks/components/Banks/index.js +12 -13
  618. package/lib/banks/components/Banks/presenter.js +230 -218
  619. package/lib/banks/components/Banks/styles.js +2 -3
  620. package/lib/banks/components/Banks/theme.js +4 -5
  621. package/lib/banks/components/BanksList/index.js +11 -12
  622. package/lib/banks/components/BanksList/presenter.js +219 -215
  623. package/lib/banks/components/BanksList/styles.js +2 -3
  624. package/lib/banks/components/BanksList/theme.js +6 -7
  625. package/lib/banks/components/CopyMoveBankEntryModal/index.js +12 -12
  626. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +129 -119
  627. package/lib/banks/components/CreateBankModal/index.js +15 -15
  628. package/lib/banks/components/CreateBankModal/presenter.js +96 -84
  629. package/lib/banks/components/EditBankModal/index.js +11 -11
  630. package/lib/banks/components/EditBankModal/presenter.js +78 -66
  631. package/lib/banks/components/HeaderBreadCrumb/index.js +52 -40
  632. package/lib/banks/components/HeaderMenu/index.js +9 -9
  633. package/lib/banks/components/HeaderMenu/presenter.js +44 -34
  634. package/lib/banks/components/HeaderMenu/styles.js +2 -3
  635. package/lib/banks/components/HeaderMenu/theme.js +2 -3
  636. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +5 -6
  637. package/lib/banks/components/NavWrapper/externalStyles.js +2 -3
  638. package/lib/banks/components/NavWrapper/index.js +4 -5
  639. package/lib/banks/components/NavWrapper/presenter.js +63 -51
  640. package/lib/banks/components/NavWrapper/styles.js +7 -6
  641. package/lib/banks/components/NavWrapper/theme.js +5 -6
  642. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +38 -24
  643. package/lib/banks/components/SharingModal/RootAccountSharing.js +56 -45
  644. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -4
  645. package/lib/banks/components/SharingModal/ShareList/index.js +65 -55
  646. package/lib/banks/components/SharingModal/ShareList/styles.js +2 -3
  647. package/lib/banks/components/SharingModal/index.js +7 -8
  648. package/lib/banks/components/SharingModal/presenter.js +242 -232
  649. package/lib/banks/components/SharingModal/styles.js +2 -3
  650. package/lib/banks/components/SharingModal/theme.js +3 -4
  651. package/lib/building/api/items.js +78 -82
  652. package/lib/building/api/qtiImports.js +19 -23
  653. package/lib/building/api/quizEntries.js +75 -76
  654. package/lib/building/api/quizzes.js +28 -28
  655. package/lib/building/api/stimuli.js +8 -8
  656. package/lib/building/components/QTIImportModal/index.js +11 -15
  657. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +48 -35
  658. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +18 -22
  659. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +54 -43
  660. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -3
  661. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -3
  662. package/lib/building/components/layout/Sidebar/Stimulus/index.js +16 -20
  663. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +54 -43
  664. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -3
  665. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -3
  666. package/lib/building/components/layout/Sidebar/index.js +17 -21
  667. package/lib/building/components/layout/Sidebar/presenter.js +79 -68
  668. package/lib/building/components/layout/Sidebar/styles.js +8 -7
  669. package/lib/building/components/layout/Sidebar/theme.js +2 -3
  670. package/lib/building/components/layout/header/BuildingButtons/index.js +16 -17
  671. package/lib/building/components/layout/header/BuildingButtons/presenter.js +91 -81
  672. package/lib/building/components/layout/header/BuildingButtons/styles.js +6 -5
  673. package/lib/building/components/layout/header/BuildingButtons/theme.js +4 -5
  674. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +9 -11
  675. package/lib/building/components/resources/ActionButtons/index.js +7 -9
  676. package/lib/building/components/resources/ActionButtons/presenter.js +70 -59
  677. package/lib/building/components/resources/ActionButtons/styles.js +6 -6
  678. package/lib/building/components/resources/ActionButtons/theme.js +3 -4
  679. package/lib/building/components/resources/AddToBankOptions/index.js +71 -62
  680. package/lib/building/components/resources/AddToBankOptions/styles.js +2 -3
  681. package/lib/building/components/resources/AddToBankOptions/theme.js +4 -5
  682. package/lib/building/components/resources/BanksTray/index.js +6 -8
  683. package/lib/building/components/resources/BanksTray/presenter.js +103 -93
  684. package/lib/building/components/resources/DeleteStimulusModal/index.js +8 -10
  685. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +132 -98
  686. package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -3
  687. package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -3
  688. package/lib/building/components/resources/ItemFeedbackModal/index.js +13 -15
  689. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +62 -52
  690. package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -3
  691. package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -3
  692. package/lib/building/components/resources/MoveImmutableModal/index.js +10 -12
  693. package/lib/building/components/resources/MoveImmutableModal/presenter.js +66 -54
  694. package/lib/building/components/resources/quiz/editButton/EditButton.js +42 -29
  695. package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -5
  696. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +44 -29
  697. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -3
  698. package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -1
  699. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +5 -6
  700. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -12
  701. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +84 -69
  702. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +3 -4
  703. package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
  704. package/lib/building/components/resources/quiz/instructions/Show/index.js +42 -31
  705. package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -3
  706. package/lib/building/components/resources/quiz/instructions/Show/theme.js +1 -1
  707. package/lib/building/components/resources/quiz/title/Edit/index.js +73 -61
  708. package/lib/building/components/resources/quiz/title/Edit/styles.js +6 -5
  709. package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -4
  710. package/lib/building/components/resources/quiz/title/Show/index.js +41 -30
  711. package/lib/building/components/resources/quiz/title/Show/styles.js +2 -3
  712. package/lib/building/components/resources/quiz/title/Show/theme.js +2 -3
  713. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +5 -6
  714. package/lib/building/components/resources/quiz/title/Title/index.js +11 -13
  715. package/lib/building/components/resources/quiz/title/Title/presenter.js +90 -75
  716. package/lib/building/components/resources/quiz/title/Title/styles.js +5 -5
  717. package/lib/building/components/resources/quiz/title/Title/theme.js +4 -4
  718. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +18 -21
  719. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +154 -142
  720. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +24 -13
  721. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +4 -5
  722. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
  723. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +7 -8
  724. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +113 -104
  725. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -3
  726. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +5 -6
  727. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +37 -27
  728. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -3
  729. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -5
  730. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -6
  731. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +90 -79
  732. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +6 -5
  733. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -3
  734. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +215 -188
  735. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -3
  736. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +4 -5
  737. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +15 -15
  738. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +260 -253
  739. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -3
  740. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -3
  741. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +11 -13
  742. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +122 -113
  743. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +6 -6
  744. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +7 -8
  745. package/lib/common/actions/alerts.js +3 -3
  746. package/lib/common/actions/analyses.js +7 -7
  747. package/lib/common/actions/bankEntries.js +3 -5
  748. package/lib/common/actions/bankSearch.js +6 -10
  749. package/lib/common/actions/banks.js +8 -14
  750. package/lib/common/actions/config.js +1 -1
  751. package/lib/common/actions/editing.js +2 -2
  752. package/lib/common/actions/errorsShowing.js +1 -1
  753. package/lib/common/actions/grading.js +2 -2
  754. package/lib/common/actions/modal.js +5 -5
  755. package/lib/common/actions/modifications.js +36 -36
  756. package/lib/common/actions/printing.js +1 -1
  757. package/lib/common/actions/quizExport.js +2 -3
  758. package/lib/common/actions/quizSessionEvents.js +2 -3
  759. package/lib/common/actions/quizSessionResults.js +2 -3
  760. package/lib/common/actions/quizSessions.js +17 -22
  761. package/lib/common/actions/quizzes.js +8 -14
  762. package/lib/common/actions/rce.js +5 -8
  763. package/lib/common/actions/regrading.js +1 -1
  764. package/lib/common/actions/reporting.js +1 -1
  765. package/lib/common/actions/scrolling.js +2 -2
  766. package/lib/common/actions/sessionItemResults.js +2 -3
  767. package/lib/common/actions/sessionItems.js +2 -3
  768. package/lib/common/actions/sharedBanks.js +5 -8
  769. package/lib/common/actions/sidebar.js +1 -1
  770. package/lib/common/actions/tagAssociations.js +9 -17
  771. package/lib/common/actions/taking.js +22 -40
  772. package/lib/common/actions/ui.js +11 -20
  773. package/lib/common/actions/upload.js +6 -11
  774. package/lib/common/api/callHandlers.js +35 -56
  775. package/lib/common/api/camelizeHelpers.js +5 -7
  776. package/lib/common/api/features.js +6 -7
  777. package/lib/common/api/fileUpload.js +6 -7
  778. package/lib/common/api/getPersistenceActions.js +22 -23
  779. package/lib/common/api/helpers.js +81 -88
  780. package/lib/common/api/interactionTypes.js +5 -6
  781. package/lib/common/api/quizSessions.js +53 -62
  782. package/lib/common/api/quizzes.js +9 -9
  783. package/lib/common/api/schema.js +20 -37
  784. package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +8 -11
  785. package/lib/common/components/AccessCodeTextInput/index.js +37 -25
  786. package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -14
  787. package/lib/common/components/ConfirmationModal/index.js +9 -8
  788. package/lib/common/components/ConfirmationModal/presenter.js +80 -68
  789. package/lib/common/components/ImportModal/ImportFileSelector/index.js +45 -36
  790. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -3
  791. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -7
  792. package/lib/common/components/ImportModal/index.js +13 -15
  793. package/lib/common/components/ImportModal/presenter.js +121 -109
  794. package/lib/common/components/ImportModal/styles.js +2 -3
  795. package/lib/common/components/ImportModal/theme.js +2 -3
  796. package/lib/common/components/LearnosityCalculator/index.js +87 -77
  797. package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +8 -11
  798. package/lib/common/components/MaskedTextInput/index.js +38 -25
  799. package/lib/common/components/Pin/Pin.examples.js +3 -4
  800. package/lib/common/components/Pin/index.js +4 -6
  801. package/lib/common/components/Pin/presenter.js +39 -27
  802. package/lib/common/components/PreviewFrame/examples.config.js +4 -6
  803. package/lib/common/components/PreviewFrame/index.js +37 -26
  804. package/lib/common/components/PrintFontSizeModal/index.js +3 -4
  805. package/lib/common/components/PrintFontSizeModal/presenter.js +65 -52
  806. package/lib/common/components/PrintFontSizeModal/styles.js +2 -3
  807. package/lib/common/components/PrintFontSizeModal/theme.js +3 -4
  808. package/lib/common/components/RceConfigProvider/index.js +9 -10
  809. package/lib/common/components/RceConfigProvider/presenter.js +110 -113
  810. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +10 -12
  811. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -17
  812. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +27 -30
  813. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +7 -10
  814. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -8
  815. package/lib/common/components/SDKApp/index.js +80 -71
  816. package/lib/common/components/SDKApp/styles.js +2 -3
  817. package/lib/common/components/SDKHeaderCalculator.js +12 -14
  818. package/lib/common/components/SDKMenuButton.js +9 -11
  819. package/lib/common/components/SDKNavBar.js +10 -12
  820. package/lib/common/components/SDKTimer.js +12 -14
  821. package/lib/common/components/alerts/index.js +8 -9
  822. package/lib/common/components/alerts/presenter.js +42 -31
  823. package/lib/common/components/alerts/styles.js +3 -4
  824. package/lib/common/components/alerts/theme.js +2 -3
  825. package/lib/common/components/layout/Page/index.js +39 -28
  826. package/lib/common/components/layout/Page/styles.js +6 -6
  827. package/lib/common/components/layout/Page/theme.js +2 -3
  828. package/lib/common/components/layout/header/Calculator/index.js +10 -12
  829. package/lib/common/components/layout/header/Calculator/presenter.js +47 -36
  830. package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -12
  831. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +41 -32
  832. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +3 -4
  833. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +3 -4
  834. package/lib/common/components/layout/header/Timer/index.js +8 -9
  835. package/lib/common/components/layout/header/Timer/presenter.js +79 -69
  836. package/lib/common/components/layout/header/Timer/styles.js +2 -3
  837. package/lib/common/components/layout/header/Timer/theme.js +5 -6
  838. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +30 -19
  839. package/lib/common/components/layout/navbar/externalStyles.js +2 -3
  840. package/lib/common/components/layout/navbar/index.js +79 -68
  841. package/lib/common/components/layout/navbar/styles.js +7 -6
  842. package/lib/common/components/layout/navbar/theme.js +3 -4
  843. package/lib/common/components/layout/sidebar/PositionSummary/index.js +37 -25
  844. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -3
  845. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +4 -5
  846. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +38 -26
  847. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +8 -11
  848. package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +2 -3
  849. package/lib/common/components/layout/sidebar/Sidebar/index.js +107 -97
  850. package/lib/common/components/layout/sidebar/Sidebar/styles.js +17 -18
  851. package/lib/common/components/layout/sidebar/Sidebar/theme.js +12 -13
  852. package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -15
  853. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +61 -46
  854. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -6
  855. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -8
  856. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -7
  857. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +60 -47
  858. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +11 -10
  859. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -4
  860. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -7
  861. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +54 -41
  862. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -3
  863. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +4 -5
  864. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +33 -20
  865. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -3
  866. package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -12
  867. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +59 -50
  868. package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -3
  869. package/lib/common/components/layout/sidebar/Stimulus/theme.js +6 -7
  870. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -4
  871. package/lib/common/components/resources/BankSelection/index.js +9 -10
  872. package/lib/common/components/resources/BankSelection/presenter.js +50 -38
  873. package/lib/common/components/resources/WarningWrapper/index.js +48 -37
  874. package/lib/common/components/resources/WarningWrapper/styles.js +2 -3
  875. package/lib/common/components/resources/WarningWrapper/theme.js +3 -4
  876. package/lib/common/components/resources/entry/EntrySave/index.js +8 -9
  877. package/lib/common/components/resources/entry/EntrySave/presenter.js +133 -125
  878. package/lib/common/components/resources/item/ItemEdit/index.js +19 -19
  879. package/lib/common/components/resources/item/ItemEdit/presenter.js +98 -86
  880. package/lib/common/components/resources/item/ItemOverride/index.js +13 -13
  881. package/lib/common/components/resources/item/ItemOverride/presenter.js +59 -46
  882. package/lib/common/components/resources/item/ItemShow/index.js +37 -24
  883. package/lib/common/components/resources/positionBox/PositionBox.js +33 -22
  884. package/lib/common/components/resources/positionBox/styles.js +3 -4
  885. package/lib/common/components/resources/positionBox/theme.js +4 -5
  886. package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -10
  887. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +89 -79
  888. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -8
  889. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +3 -4
  890. package/lib/common/components/resources/quiz/AddContent/Button/index.js +43 -32
  891. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +7 -7
  892. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +6 -7
  893. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +6 -8
  894. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +47 -35
  895. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +8 -10
  896. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +86 -75
  897. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -3
  898. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +3 -4
  899. package/lib/common/components/resources/quiz/info/QuizInfo.js +35 -23
  900. package/lib/common/components/resources/quiz/instructions/Instructions.js +31 -20
  901. package/lib/common/components/resources/quiz/instructions/styles.js +2 -3
  902. package/lib/common/components/resources/quiz/instructions/theme.js +2 -3
  903. package/lib/common/components/resources/quiz/title/Title.js +31 -20
  904. package/lib/common/components/resources/quiz/title/styles.js +2 -3
  905. package/lib/common/components/resources/quiz/title/theme.js +2 -3
  906. package/lib/common/components/resources/quizSessionResult/Header/index.js +42 -31
  907. package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -3
  908. package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -3
  909. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +10 -11
  910. package/lib/common/components/resources/quizSessionResult/Info/index.js +147 -134
  911. package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -3
  912. package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -3
  913. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +39 -28
  914. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +15 -17
  915. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +6 -7
  916. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -9
  917. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +112 -101
  918. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +6 -5
  919. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +6 -7
  920. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +50 -39
  921. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -3
  922. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
  923. package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -8
  924. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +90 -79
  925. package/lib/common/components/resources/stimulus/Stimulus/styles.js +9 -9
  926. package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -4
  927. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +14 -14
  928. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +257 -250
  929. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -3
  930. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +3 -4
  931. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +9 -9
  932. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +74 -65
  933. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -3
  934. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -4
  935. package/lib/common/components/resources/stimulus/StimulusShow/index.js +55 -45
  936. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -3
  937. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
  938. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +5 -6
  939. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +38 -25
  940. package/lib/common/components/shared/Card/CardContent/index.js +36 -24
  941. package/lib/common/components/shared/Card/CardContent/styles.js +3 -4
  942. package/lib/common/components/shared/Card/CardContent/theme.js +4 -5
  943. package/lib/common/components/shared/Card/CardWrapper/index.js +35 -23
  944. package/lib/common/components/shared/Card/CardWrapper/styles.js +3 -4
  945. package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -3
  946. package/lib/common/components/shared/Card/index.js +12 -12
  947. package/lib/common/components/shared/ExpandButton/index.js +33 -22
  948. package/lib/common/components/shared/ExpandButton/styles.js +6 -5
  949. package/lib/common/components/shared/ExpandButton/theme.js +2 -3
  950. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +7 -8
  951. package/lib/common/components/shared/FormattedDuration/index.js +48 -37
  952. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +103 -91
  953. package/lib/common/components/shared/IfFeature/index.js +6 -8
  954. package/lib/common/components/shared/IfFeature/presenter.js +30 -19
  955. package/lib/common/components/shared/InteractionTypes/index.js +5 -6
  956. package/lib/common/components/shared/InteractionTypes/presenter.js +68 -57
  957. package/lib/common/components/shared/InteractionTypes/styles.js +2 -3
  958. package/lib/common/components/shared/InteractionTypes/theme.js +3 -4
  959. package/lib/common/components/shared/PaginatedCollection/index.js +6 -7
  960. package/lib/common/components/shared/PaginatedCollection/presenter.js +77 -69
  961. package/lib/common/components/shared/PaginatedCollection/styles.js +2 -3
  962. package/lib/common/components/shared/PaginatedCollection/theme.js +3 -4
  963. package/lib/common/components/shared/Paginator/index.js +38 -27
  964. package/lib/common/components/shared/Paginator/styles.js +2 -3
  965. package/lib/common/components/shared/Paginator/theme.js +2 -3
  966. package/lib/common/components/shared/PrintTrigger/index.js +11 -12
  967. package/lib/common/components/shared/PrintTrigger/presenter.js +86 -74
  968. package/lib/common/components/shared/TagDisplay/index.js +34 -23
  969. package/lib/common/components/shared/TagDisplay/styles.js +3 -4
  970. package/lib/common/components/shared/TagSelect/index.js +3 -4
  971. package/lib/common/components/shared/TagSelect/presenter.js +101 -88
  972. package/lib/common/components/shared/TagSuggestSelect/index.js +6 -7
  973. package/lib/common/components/shared/TagSuggestSelect/presenter.js +66 -54
  974. package/lib/common/components/shared/TagWrapper/index.js +3 -4
  975. package/lib/common/components/shared/TagWrapper/presenter.js +43 -31
  976. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -4
  977. package/lib/common/components/shared/TimeUnitsInput/index.js +110 -98
  978. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +43 -32
  979. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -6
  980. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +7 -8
  981. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +12 -14
  982. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +86 -78
  983. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -24
  984. package/lib/common/components/shared/errors/Errors.js +36 -25
  985. package/lib/common/components/shared/errors/styles.js +2 -3
  986. package/lib/common/components/shared/errors/theme.js +3 -4
  987. package/lib/common/components/shared/file_selector/FileSelector.js +38 -28
  988. package/lib/common/components/shared/file_selector/styles.js +2 -3
  989. package/lib/common/components/shared/file_selector/theme.js +4 -5
  990. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +33 -23
  991. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +32 -22
  992. package/lib/common/components/shared/functionality/disableDraggingOverride.js +5 -6
  993. package/lib/common/components/shared/functionality/makeEditable.js +52 -40
  994. package/lib/common/components/shared/functionality/makeScrollable.js +56 -45
  995. package/lib/common/components/shared/overlay/index.js +39 -26
  996. package/lib/common/components/shared/overlay/styles.js +3 -4
  997. package/lib/common/components/shared/overlay/theme.js +3 -4
  998. package/lib/common/components/shared/return_button/ReturnButton.js +39 -26
  999. package/lib/common/components/shared/spinner/Spinner.js +43 -31
  1000. package/lib/common/components/shared/spinner/styles.js +2 -3
  1001. package/lib/common/kinesis/QuizEventsLogger.js +43 -49
  1002. package/lib/common/kinesis/StreamQueue.js +13 -11
  1003. package/lib/common/kinesis/client.js +9 -13
  1004. package/lib/common/kinesis/config.js +7 -11
  1005. package/lib/common/kinesis/eventTypes.js +9 -16
  1006. package/lib/common/middleware/alertTimerMiddleware.js +4 -5
  1007. package/lib/common/middleware/crossDomainMessagingMiddleware.js +3 -4
  1008. package/lib/common/middleware/eventLoggerMiddleware.js +7 -8
  1009. package/lib/common/middleware/persistedStorageMiddleware.js +5 -6
  1010. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +15 -21
  1011. package/lib/common/react-redux.js +3 -4
  1012. package/lib/common/records/Alert.js +24 -11
  1013. package/lib/common/records/Bank.js +28 -16
  1014. package/lib/common/records/BankEntry.js +32 -21
  1015. package/lib/common/records/Item.js +37 -24
  1016. package/lib/common/records/ItemAnalysis.js +26 -15
  1017. package/lib/common/records/QtiImport.js +25 -14
  1018. package/lib/common/records/Quiz.js +46 -33
  1019. package/lib/common/records/QuizAnalysis.js +28 -17
  1020. package/lib/common/records/QuizEntry.js +147 -135
  1021. package/lib/common/records/QuizSession.js +44 -28
  1022. package/lib/common/records/QuizSessionEvent.js +26 -15
  1023. package/lib/common/records/QuizSessionResult.js +26 -15
  1024. package/lib/common/records/Response.js +26 -15
  1025. package/lib/common/records/SessionItem.js +36 -25
  1026. package/lib/common/records/SessionItemResult.js +26 -15
  1027. package/lib/common/records/Stimulus.js +37 -21
  1028. package/lib/common/records/baseRecord.js +34 -18
  1029. package/lib/common/records/index.js +34 -34
  1030. package/lib/common/records/reduxRecord.js +28 -13
  1031. package/lib/common/reducers/alerts.js +6 -7
  1032. package/lib/common/reducers/analyses.js +17 -30
  1033. package/lib/common/reducers/bankEntries.js +6 -7
  1034. package/lib/common/reducers/bankSearch.js +5 -6
  1035. package/lib/common/reducers/banks.js +6 -7
  1036. package/lib/common/reducers/calls.js +5 -6
  1037. package/lib/common/reducers/config.js +5 -6
  1038. package/lib/common/reducers/dragAndDrop.js +5 -6
  1039. package/lib/common/reducers/editing.js +6 -8
  1040. package/lib/common/reducers/errorsShowing.js +5 -6
  1041. package/lib/common/reducers/features.js +5 -6
  1042. package/lib/common/reducers/grading.js +5 -6
  1043. package/lib/common/reducers/interactionTypes.js +6 -7
  1044. package/lib/common/reducers/items.js +6 -7
  1045. package/lib/common/reducers/modal.js +5 -6
  1046. package/lib/common/reducers/moderation.js +5 -6
  1047. package/lib/common/reducers/modifications.js +16 -16
  1048. package/lib/common/reducers/outcomes.js +5 -6
  1049. package/lib/common/reducers/printing.js +5 -6
  1050. package/lib/common/reducers/qtiImports.js +6 -7
  1051. package/lib/common/reducers/quizEntries.js +10 -11
  1052. package/lib/common/reducers/quizExport.js +5 -6
  1053. package/lib/common/reducers/quizSessionEvents.js +8 -7
  1054. package/lib/common/reducers/quizSessionResults.js +6 -7
  1055. package/lib/common/reducers/quizSessions.js +7 -8
  1056. package/lib/common/reducers/quizzes.js +8 -9
  1057. package/lib/common/reducers/rce.js +5 -6
  1058. package/lib/common/reducers/regrading.js +5 -6
  1059. package/lib/common/reducers/reporting.js +6 -7
  1060. package/lib/common/reducers/scrolling.js +5 -6
  1061. package/lib/common/reducers/sessionItemResults.js +6 -7
  1062. package/lib/common/reducers/sessionItems.js +6 -7
  1063. package/lib/common/reducers/sharedBanks.js +6 -7
  1064. package/lib/common/reducers/sidebar.js +5 -6
  1065. package/lib/common/reducers/stimuli.js +6 -7
  1066. package/lib/common/reducers/tagAssociations.js +5 -6
  1067. package/lib/common/reducers/taking.js +5 -6
  1068. package/lib/common/reducers/ui.js +6 -7
  1069. package/lib/common/reducers/upload.js +7 -8
  1070. package/lib/common/selectors/analyses.js +13 -24
  1071. package/lib/common/selectors/calculator.js +3 -3
  1072. package/lib/common/selectors/config.js +1 -1
  1073. package/lib/common/selectors/interactionTypes.js +14 -16
  1074. package/lib/common/selectors/items.js +3 -3
  1075. package/lib/common/selectors/qtiImports.js +4 -5
  1076. package/lib/common/selectors/quizSessionResults.js +4 -4
  1077. package/lib/common/selectors/quizSessions.js +11 -17
  1078. package/lib/common/selectors/quizzes.js +31 -43
  1079. package/lib/common/selectors/rce.js +4 -6
  1080. package/lib/common/selectors/reporting.js +5 -6
  1081. package/lib/common/selectors/sessionItemResults.js +10 -12
  1082. package/lib/common/selectors/sessionItems.js +11 -13
  1083. package/lib/common/selectors/taking.js +12 -16
  1084. package/lib/common/selectors/ui.js +2 -3
  1085. package/lib/common/util/CustomPropTypes.js +3 -5
  1086. package/lib/common/util/ElementsForSelectors.js +3 -4
  1087. package/lib/common/util/ExhaustivePaginatedFetcher.js +68 -56
  1088. package/lib/common/util/Fetcher.js +151 -166
  1089. package/lib/common/util/MultiWeakMap.js +5 -7
  1090. package/lib/common/util/PaginatedFetcher.js +46 -37
  1091. package/lib/common/util/ThunkQueue.js +55 -57
  1092. package/lib/common/util/TimeRecordingService.js +9 -11
  1093. package/lib/common/util/TimerService.js +16 -19
  1094. package/lib/common/util/cachePreviousArgs.js +4 -5
  1095. package/lib/common/util/callHelpers.js +6 -10
  1096. package/lib/common/util/clickHandlers.js +3 -3
  1097. package/lib/common/util/componentForItem.js +5 -6
  1098. package/lib/common/util/crossDomainMessaging.js +1 -1
  1099. package/lib/common/util/debounceLatestPromise.js +5 -6
  1100. package/lib/common/util/featureCheck.js +6 -6
  1101. package/lib/common/util/formatTimespan.js +8 -9
  1102. package/lib/common/util/generateDisplayPositions.js +3 -4
  1103. package/lib/common/util/getClientIpAddress.js +24 -27
  1104. package/lib/common/util/httpHeaders.js +5 -8
  1105. package/lib/common/util/immutableHelpers.js +6 -9
  1106. package/lib/common/util/instUIMessages.js +2 -3
  1107. package/lib/common/util/interactionTypeMetadata.js +17 -19
  1108. package/lib/common/util/interactionTypePropsHelper.js +5 -7
  1109. package/lib/common/util/interactionTypeRecordForItem.js +4 -4
  1110. package/lib/common/util/jsonify.js +8 -7
  1111. package/lib/common/util/keyboardClickable.js +2 -3
  1112. package/lib/common/util/mathRenderingUtils.js +2 -4
  1113. package/lib/common/util/maxContent.js +4 -5
  1114. package/lib/common/util/noop.js +2 -3
  1115. package/lib/common/util/persistedState.js +10 -11
  1116. package/lib/common/util/printUtils.js +5 -7
  1117. package/lib/common/util/rceChecker.js +12 -15
  1118. package/lib/common/util/renderAlerts.js +13 -15
  1119. package/lib/common/util/serializeEvent.js +4 -5
  1120. package/lib/common/util/sessionStore.js +4 -7
  1121. package/lib/common/util/valMap.js +4 -5
  1122. package/lib/common/util/warningHelpers.js +33 -40
  1123. package/lib/common/util/windowChecks.js +9 -14
  1124. package/lib/common/util/withCachedArguments.js +5 -6
  1125. package/lib/common/util/withDynamoPagination.js +71 -61
  1126. package/lib/common/util/withStateCache.js +5 -6
  1127. package/lib/config.js +6 -8
  1128. package/lib/configureStore.js +90 -91
  1129. package/lib/grading/api/quizEntryRegrades.js +6 -6
  1130. package/lib/grading/api/updateResults.js +10 -11
  1131. package/lib/index.js +559 -557
  1132. package/lib/messages/LocalStorageAdapter.js +18 -18
  1133. package/lib/messages/LocalStorageLimits.js +26 -25
  1134. package/lib/messages/StorageExhaustionError.js +27 -13
  1135. package/lib/messages/postMessageService.js +47 -45
  1136. package/lib/messages/subjectHandlers/forwardMessage.js +2 -3
  1137. package/lib/messages/subjectHandlers/lti.capabilities.js +2 -3
  1138. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -3
  1139. package/lib/messages/subjectHandlers/lti.frameResize.js +4 -5
  1140. package/lib/messages/subjectHandlers/lti.get_data.js +3 -4
  1141. package/lib/messages/subjectHandlers/lti.put_data.js +5 -6
  1142. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +7 -9
  1143. package/lib/moderating/api/quizSessionEvents.js +4 -4
  1144. package/lib/moderating/api/quizSessions.js +8 -8
  1145. package/lib/moderating/components/events/Event.js +52 -42
  1146. package/lib/moderating/components/events/PageBlurredEvent.js +26 -15
  1147. package/lib/moderating/components/events/PageFocusedEvent.js +26 -15
  1148. package/lib/moderating/components/events/RCEEvent.js +30 -18
  1149. package/lib/moderating/components/events/ResponseEvent.js +46 -34
  1150. package/lib/moderating/components/events/SessionStartEvent.js +34 -22
  1151. package/lib/moderating/components/events/SessionSubmitEvent.js +34 -22
  1152. package/lib/moderating/components/events/styles.js +2 -3
  1153. package/lib/moderating/components/events/theme.js +3 -4
  1154. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -4
  1155. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +53 -40
  1156. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -4
  1157. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +57 -45
  1158. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +64 -51
  1159. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -4
  1160. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +73 -60
  1161. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +49 -36
  1162. package/lib/moderating/components/resources/AccommodationsModal/index.js +87 -75
  1163. package/lib/moderating/components/resources/ElapsedTime.js +39 -27
  1164. package/lib/moderating/components/resources/EventDetails.js +15 -17
  1165. package/lib/moderating/components/resources/ModerateTable/index.js +11 -14
  1166. package/lib/moderating/components/resources/ModerateTable/presenter.js +182 -171
  1167. package/lib/moderating/components/resources/ModerateTable/styles.js +6 -5
  1168. package/lib/moderating/components/resources/ModerateTable/theme.js +3 -4
  1169. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +9 -10
  1170. package/lib/moderating/components/resources/ModerateTableRow/index.js +6 -7
  1171. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +107 -95
  1172. package/lib/moderating/components/resources/ModerateTableRow/story.js +6 -7
  1173. package/lib/moderating/components/resources/ModerateTableRow/styles.js +3 -4
  1174. package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -3
  1175. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -4
  1176. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +7 -9
  1177. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +86 -72
  1178. package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +6 -7
  1179. package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +48 -50
  1180. package/lib/moderating/components/resources/SessionBreachAlert.js +4 -6
  1181. package/lib/moderating/components/resources/util/checkIsBreach.js +6 -7
  1182. package/lib/moderating/components/resources/util/extractSessionData.js +3 -4
  1183. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -4
  1184. package/lib/moderating/components/sidebar/ModerateTray/index.js +6 -7
  1185. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +109 -97
  1186. package/lib/moderating/components/sidebar/ResetQuiz/index.js +10 -11
  1187. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +69 -59
  1188. package/lib/reduxStore.js +13 -14
  1189. package/lib/reporting/api/fetchStudentAnalyses.js +20 -23
  1190. package/lib/reporting/api/getAnalysesExport.js +24 -27
  1191. package/lib/reporting/api/getAnalysesStatus.js +22 -25
  1192. package/lib/reporting/api/getItemAnalyses.js +17 -20
  1193. package/lib/reporting/api/getQuizAnalysis.js +17 -20
  1194. package/lib/reporting/api/itemAnalyses.js +5 -5
  1195. package/lib/reporting/api/quizAnalyses.js +5 -5
  1196. package/lib/reporting/components/Caption/index.js +32 -21
  1197. package/lib/reporting/components/Caption/styles.js +2 -3
  1198. package/lib/reporting/components/Caption/theme.js +2 -3
  1199. package/lib/reporting/components/MetricsListItem/index.js +33 -21
  1200. package/lib/reporting/components/MetricsListItem/styles.js +2 -3
  1201. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -4
  1202. package/lib/reporting/components/charts/CentileDistribution/index.js +2 -3
  1203. package/lib/reporting/components/charts/CentileDistribution/presenter.js +53 -42
  1204. package/lib/reporting/components/charts/CentileDistribution/styles.js +3 -4
  1205. package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -3
  1206. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -5
  1207. package/lib/reporting/components/charts/Distribution/Distribution.js +2 -3
  1208. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -3
  1209. package/lib/reporting/components/charts/Distribution/index.js +2 -3
  1210. package/lib/reporting/components/charts/Distribution/presenter.js +58 -48
  1211. package/lib/reporting/components/charts/Distribution/styles.js +2 -3
  1212. package/lib/reporting/components/charts/Distribution/theme.js +6 -7
  1213. package/lib/reporting/components/charts/Legend/index.js +40 -28
  1214. package/lib/reporting/components/charts/Legend/styles.js +6 -5
  1215. package/lib/reporting/components/charts/Legend/theme.js +5 -6
  1216. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -4
  1217. package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -3
  1218. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +54 -43
  1219. package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -3
  1220. package/lib/reporting/components/charts/QuintileDistribution/theme.js +3 -4
  1221. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +5 -6
  1222. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +47 -38
  1223. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -11
  1224. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +10 -11
  1225. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +5 -6
  1226. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +6 -8
  1227. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +103 -92
  1228. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +4 -5
  1229. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +6 -7
  1230. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +66 -56
  1231. package/lib/reporting/components/quizAnalysis/styles.js +5 -7
  1232. package/lib/reporting/components/quizAnalysis/theme.js +2 -3
  1233. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +3 -4
  1234. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +32 -20
  1235. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -3
  1236. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +3 -4
  1237. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +38 -26
  1238. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -3
  1239. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
  1240. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +41 -25
  1241. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
  1242. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +43 -27
  1243. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
  1244. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +62 -51
  1245. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +9 -8
  1246. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +3 -4
  1247. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
  1248. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +46 -34
  1249. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -3
  1250. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -3
  1251. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +53 -36
  1252. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +44 -28
  1253. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
  1254. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +80 -69
  1255. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +6 -5
  1256. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -3
  1257. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +55 -38
  1258. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -9
  1259. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +12 -11
  1260. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
  1261. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +59 -43
  1262. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
  1263. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +123 -108
  1264. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -3
  1265. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -3
  1266. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
  1267. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +85 -70
  1268. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -3
  1269. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -3
  1270. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
  1271. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +52 -36
  1272. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +50 -39
  1273. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -3
  1274. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -3
  1275. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +47 -32
  1276. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
  1277. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +66 -50
  1278. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
  1279. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +48 -34
  1280. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +6 -5
  1281. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -3
  1282. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
  1283. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +5 -6
  1284. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +43 -28
  1285. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -3
  1286. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
  1287. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +86 -75
  1288. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -3
  1289. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +7 -8
  1290. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
  1291. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +105 -92
  1292. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +6 -5
  1293. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +4 -5
  1294. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
  1295. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +58 -43
  1296. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -3
  1297. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -3
  1298. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +9 -11
  1299. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +3 -4
  1300. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +60 -48
  1301. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -3
  1302. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -3
  1303. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
  1304. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +28 -16
  1305. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -3
  1306. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +3 -4
  1307. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -6
  1308. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +13 -16
  1309. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +115 -103
  1310. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -6
  1311. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
  1312. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +3 -4
  1313. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -12
  1314. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +82 -70
  1315. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -3
  1316. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -3
  1317. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -7
  1318. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +114 -102
  1319. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +7 -7
  1320. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +3 -4
  1321. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +3 -4
  1322. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +48 -35
  1323. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -3
  1324. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +4 -5
  1325. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
  1326. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +42 -45
  1327. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +28 -31
  1328. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -7
  1329. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +147 -135
  1330. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -3
  1331. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -3
  1332. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +14 -16
  1333. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +102 -109
  1334. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -8
  1335. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +40 -28
  1336. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -11
  1337. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -12
  1338. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +102 -92
  1339. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -3
  1340. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -4
  1341. package/lib/reporting/components/resources/ReportCard/index.js +36 -25
  1342. package/lib/reporting/components/resources/ReportCard/styles.js +3 -4
  1343. package/lib/reporting/components/resources/ReportCard/theme.js +2 -3
  1344. package/lib/reporting/components/resources/ReportList/index.js +34 -23
  1345. package/lib/reporting/components/resources/ReportList/styles.js +2 -3
  1346. package/lib/reporting/components/resources/ReportList/theme.js +2 -3
  1347. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +3 -4
  1348. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +107 -94
  1349. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +6 -6
  1350. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -4
  1351. package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +37 -40
  1352. package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +28 -31
  1353. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +12 -13
  1354. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +109 -116
  1355. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +38 -25
  1356. package/lib/reporting/components/resources/common/ExportButton/index.js +6 -7
  1357. package/lib/reporting/components/resources/common/errorCodes.js +11 -18
  1358. package/lib/reporting/components/resources/common/errorMessages.js +18 -26
  1359. package/lib/reporting/components/resources/common/exportReports.js +41 -44
  1360. package/lib/reporting/components/resources/common/generateReports.js +66 -72
  1361. package/lib/reporting/components/resources/common/propTypes.js +141 -159
  1362. package/lib/reporting/components/resources/common/utils.js +7 -9
  1363. package/lib/taking/api/taking.js +69 -72
  1364. package/lib/taking/learnosity/index.js +39 -41
  1365. package/package.json +55 -56
@@ -1,7 +1,7 @@
1
- import Fetcher from "../../common/util/Fetcher.js";
2
- import { handleItemAnalysesResponse } from "../../common/api/callHandlers.js";
3
- import { associateItemAnalyses } from "../../common/actions/quizzes.js";
4
- import withDynamoPagination from "../../common/util/withDynamoPagination.js";
1
+ import Fetcher from '../../common/util/Fetcher';
2
+ import { handleItemAnalysesResponse } from '../../common/api/callHandlers';
3
+ import { associateItemAnalyses } from '../../common/actions/quizzes';
4
+ import withDynamoPagination from '../../common/util/withDynamoPagination';
5
5
  export function getItemAnalyses(quizId) {
6
6
  var url = "/api/quizzes/".concat(quizId, "/stats/item_analyses/");
7
7
  return function (dispatch, getState) {
@@ -1,7 +1,7 @@
1
- import Fetcher from "../../common/util/Fetcher.js";
2
- import { handleQuizAnalysisResponse } from "../../common/api/callHandlers.js";
3
- import { markQuizAnalysisNotFound } from "../../common/actions/reporting.js";
4
- import { associateQuizAnalysis } from "../../common/actions/quizzes.js";
1
+ import Fetcher from '../../common/util/Fetcher';
2
+ import { handleQuizAnalysisResponse } from '../../common/api/callHandlers';
3
+ import { markQuizAnalysisNotFound } from '../../common/actions/reporting';
4
+ import { associateQuizAnalysis } from '../../common/actions/quizzes';
5
5
  export function getQuizAnalysis(quizId) {
6
6
  var url = "/api/quizzes/".concat(quizId, "/stats/quiz_analysis");
7
7
  return function (dispatch, getState) {
@@ -1,24 +1,39 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
3
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
7
  var _dec, _class, _Caption;
8
+ function _callSuper(_this, derived, args) {
9
+ function isNativeReflectConstruct() {
10
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
11
+ if (Reflect.construct.sham) return false;
12
+ if (typeof Proxy === "function") return true;
13
+ try {
14
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
15
+ } catch (e) {
16
+ return false;
17
+ }
18
+ }
19
+ derived = _getPrototypeOf(derived);
20
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
21
+ }
6
22
  /** @jsx jsx */
7
23
  import { Component } from 'react';
8
24
  import PropTypes from 'prop-types';
9
25
  import { Heading } from '@instructure/ui-heading';
10
26
  import { jsx } from '@instructure/emotion';
11
- import generateStyle from "./styles.js";
12
- import generateComponentTheme from "./theme.js";
27
+ import generateStyle from './styles';
28
+ import generateComponentTheme from './theme';
13
29
  import { withStyleOverrides } from '@instructure/quiz-common';
14
30
  export var Caption = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Caption = /*#__PURE__*/function (_Component) {
15
- _inherits(Caption, _Component);
16
- var _super = _createSuper(Caption);
17
31
  function Caption() {
18
32
  _classCallCheck(this, Caption);
19
- return _super.apply(this, arguments);
33
+ return _callSuper(this, Caption, arguments);
20
34
  }
21
- _createClass(Caption, [{
35
+ _inherits(Caption, _Component);
36
+ return _createClass(Caption, [{
22
37
  key: "render",
23
38
  value: function render() {
24
39
  return jsx("div", {
@@ -33,14 +48,12 @@ export var Caption = (_dec = withStyleOverrides(generateStyle, generateComponent
33
48
  }, this.props.children));
34
49
  }
35
50
  }]);
36
- Caption.displayName = "Caption";
37
- return Caption;
38
- }(Component), _Caption.displayName = 'Caption', _Caption.componentId = "Quizzes".concat(_Caption.displayName), _Caption.propTypes = {
51
+ }(Component), _defineProperty(_Caption, "displayName", 'Caption'), _defineProperty(_Caption, "componentId", "Quizzes".concat(_Caption.displayName)), _defineProperty(_Caption, "propTypes", {
39
52
  text: PropTypes.string,
40
53
  children: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
41
54
  styles: PropTypes.object
42
- }, _Caption.defaultProps = {
55
+ }), _defineProperty(_Caption, "defaultProps", {
43
56
  text: void 0,
44
57
  children: void 0
45
- }, _Caption)) || _class);
58
+ }), _Caption)) || _class);
46
59
  export default Caption;
@@ -1,9 +1,26 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
7
  var _dec, _class, _MetricsListItem;
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
10
+ function _callSuper(_this, derived, args) {
11
+ function isNativeReflectConstruct() {
12
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
13
+ if (Reflect.construct.sham) return false;
14
+ if (typeof Proxy === "function") return true;
15
+ try {
16
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
17
+ } catch (e) {
18
+ return false;
19
+ }
20
+ }
21
+ derived = _getPrototypeOf(derived);
22
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
23
+ }
7
24
  /** @jsx jsx */
8
25
  import { Component } from 'react';
9
26
  import PropTypes from 'prop-types';
@@ -11,16 +28,15 @@ import { Metric } from '@instructure/ui-metric';
11
28
  import { ScreenReaderContent, PresentationContent } from '@instructure/ui-a11y-content';
12
29
  import { jsx } from '@instructure/emotion';
13
30
  import t from '@instructure/quiz-i18n/es/format-message';
14
- import generateStyle from "./styles.js";
31
+ import generateStyle from './styles';
15
32
  import { withStyleOverrides } from '@instructure/quiz-common';
16
33
  export var MetricsListItem = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_MetricsListItem = /*#__PURE__*/function (_Component) {
17
- _inherits(MetricsListItem, _Component);
18
- var _super = _createSuper(MetricsListItem);
19
34
  function MetricsListItem() {
20
35
  _classCallCheck(this, MetricsListItem);
21
- return _super.apply(this, arguments);
36
+ return _callSuper(this, MetricsListItem, arguments);
22
37
  }
23
- _createClass(MetricsListItem, [{
38
+ _inherits(MetricsListItem, _Component);
39
+ return _createClass(MetricsListItem, [{
24
40
  key: "renderNoValue",
25
41
  value: function renderNoValue() {
26
42
  return jsx("span", null, jsx(ScreenReaderContent, null, t('No value')), jsx(PresentationContent, null, t('--')));
@@ -42,12 +58,10 @@ export var MetricsListItem = (_dec = withStyleOverrides(generateStyle, null), _d
42
58
  }));
43
59
  }
44
60
  }]);
45
- MetricsListItem.displayName = "MetricsListItem";
46
- return MetricsListItem;
47
- }(Component), _MetricsListItem.displayName = 'MetricsListItem', _MetricsListItem.componentId = "Quizzes".concat(_MetricsListItem.displayName), _MetricsListItem.propTypes = _objectSpread(_objectSpread({}, Metric.propTypes), {}, {
61
+ }(Component), _defineProperty(_MetricsListItem, "displayName", 'MetricsListItem'), _defineProperty(_MetricsListItem, "componentId", "Quizzes".concat(_MetricsListItem.displayName)), _defineProperty(_MetricsListItem, "propTypes", _objectSpread(_objectSpread({}, Metric.propTypes), {}, {
48
62
  customStyles: PropTypes.object,
49
63
  styles: PropTypes.object
50
- }), _MetricsListItem.defaultProps = {
64
+ })), _defineProperty(_MetricsListItem, "defaultProps", {
51
65
  customStyles: {}
52
- }, _MetricsListItem)) || _class);
66
+ }), _MetricsListItem)) || _class);
53
67
  export default MetricsListItem;
@@ -1,8 +1,24 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
3
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
7
  var _dec, _class, _CentileDistribution;
8
+ function _callSuper(_this, derived, args) {
9
+ function isNativeReflectConstruct() {
10
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
11
+ if (Reflect.construct.sham) return false;
12
+ if (typeof Proxy === "function") return true;
13
+ try {
14
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
15
+ } catch (e) {
16
+ return false;
17
+ }
18
+ }
19
+ derived = _getPrototypeOf(derived);
20
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
21
+ }
6
22
  /** @jsx jsx */
7
23
  import { Component } from 'react';
8
24
  import { PropTypes } from 'prop-types';
@@ -10,10 +26,10 @@ import { range } from 'd3-array';
10
26
  import { jsx } from '@instructure/emotion';
11
27
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
12
28
  import { Table } from '@instructure/ui-table';
13
- import Distribution from "../Distribution/index.js";
29
+ import Distribution from '../Distribution';
14
30
  import t from '@instructure/quiz-i18n/es/format-message';
15
- import generateStyle from "./styles.js";
16
- import generateComponentTheme from "./theme.js";
31
+ import generateStyle from './styles';
32
+ import generateComponentTheme from './theme';
17
33
  import { withStyleOverrides } from '@instructure/quiz-common';
18
34
  var starBin = function starBin(props) {
19
35
  if (typeof props.starScore !== 'number') return;
@@ -22,54 +38,53 @@ var starBin = function starBin(props) {
22
38
  return Math.min(Math.floor(starScore * props.visualDistribution.length), props.visualDistribution.length - 1);
23
39
  };
24
40
  export var CentileDistribution = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_CentileDistribution = /*#__PURE__*/function (_Component) {
25
- _inherits(CentileDistribution, _Component);
26
- var _super = _createSuper(CentileDistribution);
27
41
  function CentileDistribution() {
28
- var _this;
42
+ var _this2;
29
43
  _classCallCheck(this, CentileDistribution);
30
44
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
31
45
  args[_key] = arguments[_key];
32
46
  }
33
- _this = _super.call.apply(_super, [this].concat(args));
34
- _this._calculateAxis = function (x, y, xAxis, height) {
47
+ _this2 = _callSuper(this, CentileDistribution, [].concat(args));
48
+ _defineProperty(_this2, "_calculateAxis", function (x, y, xAxis, height) {
35
49
  x.domain(range(101));
36
- if (typeof _this.props.starScore === 'number') {
37
- var starIndex = starBin(_this.props);
50
+ if (typeof _this2.props.starScore === 'number') {
51
+ var starIndex = starBin(_this2.props);
38
52
  // Determine if star above bar will overflow height, and reduce range to
39
53
  // account for 18 star height + 12 star bottom padding
40
- var starTop = y(_this.props.visualDistribution[starIndex]) - 30;
41
- y.rangeRound([height, _this.props.barPaddingTop - Math.min(0, starTop)]);
54
+ var starTop = y(_this2.props.visualDistribution[starIndex]) - 30;
55
+ y.rangeRound([height, _this2.props.barPaddingTop - Math.min(0, starTop)]);
42
56
  }
43
57
  xAxis.tickValues(range(0, 101, 10)).tickFormat(function (d) {
44
58
  return t('{percent, number}%', {
45
59
  percent: d
46
60
  });
47
61
  });
48
- };
49
- _this._createChart = function (svg, width) {
62
+ });
63
+ _defineProperty(_this2, "_createChart", function (svg, width) {
50
64
  // Manually redraw x axis to extend beyond container
51
65
  var axisPadding = 2000;
52
66
  svg.select('g[data-role=xAxis] path').attr('d', "M".concat(-1 * axisPadding, ",0H").concat(width + axisPadding));
53
67
  return svg;
54
- };
55
- _this._summarizeChart = function (summary) {
56
- if (typeof _this.props.starScore !== 'number') return summary;
68
+ });
69
+ _defineProperty(_this2, "_summarizeChart", function (summary) {
70
+ if (typeof _this2.props.starScore !== 'number') return summary;
57
71
  return t('You scored {score, number, percent}. ', {
58
- score: _this.props.starScore
72
+ score: _this2.props.starScore
59
73
  }) + summary;
60
- };
61
- _this._renderTable = function () {
74
+ });
75
+ _defineProperty(_this2, "_renderTable", function () {
62
76
  return jsx(ScreenReaderContent, null, jsx(Table, {
63
77
  caption: t('Score percentiles chart data')
64
78
  }, jsx(Table.Head, null, jsx(Table.Row, null, jsx(Table.ColHeader, {
65
79
  id: "score-percentiles-chart-data-score-percentile"
66
80
  }, t('Score Percentile')), jsx(Table.ColHeader, {
67
81
  id: "score-percentiles-chart-data-count"
68
- }, t('Count')))), jsx(Table.Body, null, _this._renderTableRows())));
69
- };
70
- return _this;
82
+ }, t('Count')))), jsx(Table.Body, null, _this2._renderTableRows())));
83
+ });
84
+ return _this2;
71
85
  }
72
- _createClass(CentileDistribution, [{
86
+ _inherits(CentileDistribution, _Component);
87
+ return _createClass(CentileDistribution, [{
73
88
  key: "_renderTableRows",
74
89
  value: function _renderTableRows() {
75
90
  var chartData = this.props.visualDistribution;
@@ -98,9 +113,7 @@ export var CentileDistribution = (_dec = withStyleOverrides(generateStyle, gener
98
113
  }, jsx(Distribution, props));
99
114
  }
100
115
  }]);
101
- CentileDistribution.displayName = "CentileDistribution";
102
- return CentileDistribution;
103
- }(Component), _CentileDistribution.displayName = 'CentileDistribution', _CentileDistribution.componentId = "Quizzes".concat(_CentileDistribution.displayName), _CentileDistribution.propTypes = {
116
+ }(Component), _defineProperty(_CentileDistribution, "displayName", 'CentileDistribution'), _defineProperty(_CentileDistribution, "componentId", "Quizzes".concat(_CentileDistribution.displayName)), _defineProperty(_CentileDistribution, "propTypes", {
104
117
  animateDelay: PropTypes.number,
105
118
  animateDuration: PropTypes.number,
106
119
  barPaddingInner: PropTypes.number,
@@ -122,7 +135,7 @@ export var CentileDistribution = (_dec = withStyleOverrides(generateStyle, gener
122
135
  visualDistribution: PropTypes.arrayOf(PropTypes.node).isRequired,
123
136
  starScore: PropTypes.number,
124
137
  styles: PropTypes.object
125
- }, _CentileDistribution.defaultProps = {
138
+ }), _defineProperty(_CentileDistribution, "defaultProps", {
126
139
  animateDelay: 200,
127
140
  animateDuration: 900,
128
141
  barPaddingInner: 0.25,
@@ -137,5 +150,5 @@ export var CentileDistribution = (_dec = withStyleOverrides(generateStyle, gener
137
150
  summaryDistribution: void 0,
138
151
  visualDistribution: [],
139
152
  starScore: null
140
- }, _CentileDistribution)) || _class);
153
+ }), _CentileDistribution)) || _class);
141
154
  export default CentileDistribution;
@@ -1,8 +1,24 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
3
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
7
  var _dec, _class, _Distribution;
8
+ function _callSuper(_this, derived, args) {
9
+ function isNativeReflectConstruct() {
10
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
11
+ if (Reflect.construct.sham) return false;
12
+ if (typeof Proxy === "function") return true;
13
+ try {
14
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
15
+ } catch (e) {
16
+ return false;
17
+ }
18
+ }
19
+ derived = _getPrototypeOf(derived);
20
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
21
+ }
6
22
  /** @jsx jsx */
7
23
  import { Component } from 'react';
8
24
  import { PropTypes } from 'prop-types';
@@ -12,8 +28,8 @@ import { scaleBand, scaleLinear } from 'd3-scale';
12
28
  import { select } from 'd3-selection';
13
29
  import { jsx, css } from '@instructure/emotion';
14
30
  import t from '@instructure/quiz-i18n/es/format-message';
15
- import generateStyle from "./styles.js";
16
- import generateComponentTheme from "./theme.js";
31
+ import generateStyle from './styles';
32
+ import generateComponentTheme from './theme';
17
33
  import { ScreenReaderContent, PresentationContent } from '@instructure/ui-a11y-content';
18
34
  import { transition } from 'd3-transition';
19
35
  import flow from 'lodash/flow';
@@ -24,54 +40,53 @@ export var starPathData = 'M1915.918 737.475c-10.955-33.543-42.014-56.131-77.364
24
40
  var MARGIN_T = 0;
25
41
  var MARGIN_B = 28;
26
42
  export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Distribution = /*#__PURE__*/function (_Component) {
27
- _inherits(Distribution, _Component);
28
- var _super = _createSuper(Distribution);
29
43
  function Distribution() {
30
- var _this;
44
+ var _this2;
31
45
  _classCallCheck(this, Distribution);
32
46
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
33
47
  args[_key] = arguments[_key];
34
48
  }
35
- _this = _super.call.apply(_super, [this].concat(args));
36
- _this._isStarred = function (d, i) {
37
- return typeof _this.props.starIndex === 'number' && i === _this.props.starIndex;
38
- };
39
- _this._renderStar = function (svg) {
40
- if (typeof _this.props.starIndex !== 'number') return;
41
- var star = svg.append('path').attr('d', starPathData).attr('style', css(_this.props.styles.barStar).styles);
42
- var starIndex = _this.props.starIndex;
43
- var starX = _this.x(starIndex) + _this.x.bandwidth() / 2;
44
- var starY = _this.y(_this.props.visualDistribution[starIndex]) - 30;
49
+ _this2 = _callSuper(this, Distribution, [].concat(args));
50
+ _defineProperty(_this2, "_isStarred", function (d, i) {
51
+ return typeof _this2.props.starIndex === 'number' && i === _this2.props.starIndex;
52
+ });
53
+ _defineProperty(_this2, "_renderStar", function (svg) {
54
+ if (typeof _this2.props.starIndex !== 'number') return;
55
+ var star = svg.append('path').attr('d', starPathData).attr('style', css(_this2.props.styles.barStar).styles);
56
+ var starIndex = _this2.props.starIndex;
57
+ var starX = _this2.x(starIndex) + _this2.x.bandwidth() / 2;
58
+ var starY = _this2.y(_this2.props.visualDistribution[starIndex]) - 30;
45
59
  // scale the star down and position it on the x axis - y axis will be applied by animation
46
60
  var xTransform = "translate(".concat(starX, " 0) scale(0.011) translate(-960 0)");
47
- _this.applyTransition(star, function (rects) {
61
+ _this2.applyTransition(star, function (rects) {
48
62
  return rects.attr('opacity', 0).attr('transform', "translate(0 ".concat(starY + 20, ") ").concat(xTransform));
49
63
  }, function (rects) {
50
64
  return rects.attr('opacity', 1).attr('transform', "translate(0 ".concat(starY, ") ").concat(xTransform));
51
65
  }, function (transition) {
52
- return transition.delay(_this.props.animateDuration).duration(600);
66
+ return transition.delay(_this2.props.animateDuration).duration(600);
53
67
  });
54
- };
55
- _this.applyTransition = function (selection, initialFunc, finalFunc, transitionFunc) {
68
+ });
69
+ _defineProperty(_this2, "applyTransition", function (selection, initialFunc, finalFunc, transitionFunc) {
56
70
  var identity = function identity(s) {
57
71
  return s;
58
72
  };
59
73
  var transition = function transition(s) {
60
- return s.transition(_this.getTransition());
74
+ return s.transition(_this2.getTransition());
61
75
  };
62
76
  var applicators = [];
63
- if (_this.isAnimated()) {
77
+ if (_this2.isAnimated()) {
64
78
  applicators.push(initialFunc || identity, transition, transitionFunc || identity);
65
79
  }
66
80
  applicators.push(finalFunc || identity);
67
81
  return flow(applicators)(selection);
68
- };
69
- _this.setChartRef = function (ref) {
70
- _this.chart = ref;
71
- };
72
- return _this;
82
+ });
83
+ _defineProperty(_this2, "setChartRef", function (ref) {
84
+ _this2.chart = ref;
85
+ });
86
+ return _this2;
73
87
  }
74
- _createClass(Distribution, [{
88
+ _inherits(Distribution, _Component);
89
+ return _createClass(Distribution, [{
75
90
  key: "componentDidMount",
76
91
  value: function componentDidMount() {
77
92
  this.__svg = this.createChart(this.chart, this.props);
@@ -184,16 +199,16 @@ export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComp
184
199
  }, {
185
200
  key: "renderBars",
186
201
  value: function renderBars(node, props) {
187
- var _this2 = this;
202
+ var _this3 = this;
188
203
  this.chartData = props.visualDistribution;
189
204
  var height = this.height;
190
205
  var x = this.x;
191
206
  var y = this.y;
192
207
  var bars = node.selectAll('rect').data(this.chartData);
193
208
  var rects = bars.enter().append('rect').attr('style', function (d, i) {
194
- return _this2._isStarred(d, i) ? css(_this2.props.styles.barStar).styles : css(_this2.props.styles.bar).styles;
209
+ return _this3._isStarred(d, i) ? css(_this3.props.styles.barStar).styles : css(_this3.props.styles.bar).styles;
195
210
  }).attr('class', function (d, i) {
196
- return _this2._isStarred(d, i) ? 'barStar' : 'bar';
211
+ return _this3._isStarred(d, i) ? 'barStar' : 'bar';
197
212
  }).attr('x', function (d, i) {
198
213
  return x(i);
199
214
  }).attr('width', x.bandwidth());
@@ -255,9 +270,7 @@ export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComp
255
270
  return svg.append('title').text(title);
256
271
  }
257
272
  }]);
258
- Distribution.displayName = "Distribution";
259
- return Distribution;
260
- }(Component), _Distribution.displayName = 'Distribution', _Distribution.componentId = "Quizzes".concat(_Distribution.displayName), _Distribution.propTypes = {
273
+ }(Component), _defineProperty(_Distribution, "displayName", 'Distribution'), _defineProperty(_Distribution, "componentId", "Quizzes".concat(_Distribution.displayName)), _defineProperty(_Distribution, "propTypes", {
261
274
  animateDelay: PropTypes.number,
262
275
  animateDuration: PropTypes.number,
263
276
  // ESLint thinks these props aren't used but they are via a call chain in componentDidMount
@@ -285,7 +298,7 @@ export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComp
285
298
  updateChart: PropTypes.func,
286
299
  starIndex: PropTypes.number,
287
300
  styles: PropTypes.object
288
- }, _Distribution.defaultProps = {
301
+ }), _defineProperty(_Distribution, "defaultProps", {
289
302
  animateDelay: 200,
290
303
  animateDuration: 900,
291
304
  barPaddingInner: 0.25,
@@ -307,7 +320,7 @@ export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComp
307
320
  },
308
321
  updateChart: Function.prototype,
309
322
  starIndex: null
310
- }, _Distribution)) || _class);
323
+ }), _Distribution)) || _class);
311
324
  /**
312
325
  * A component to render an a11y friendly distribution of scores across users.
313
326
  * Underneath the chart is two accessible features:
@@ -2,12 +2,12 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
2
2
  var colors = _ref.colors,
3
3
  typography = _ref.typography;
4
4
  return {
5
- barFillColor: colors.electric,
6
- barStarFillColor: colors.fire,
7
- barLabelColor: colors.textDarkest,
5
+ barFillColor: colors.contrasts.blue4570,
6
+ barStarFillColor: colors.contrasts.orange4570,
7
+ barLabelColor: colors.contrasts.grey125125,
8
8
  barLabelFontFamily: typography.fontFamily,
9
9
  barLabelFontSize: typography.fontSizeSmall,
10
- xAxisColor: colors.textDarkest
10
+ xAxisColor: colors.contrasts.grey125125
11
11
  };
12
12
  };
13
13
  export default generateComponentTheme;
@@ -1,25 +1,41 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
7
  var _dec, _class, _Legend;
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
10
+ function _callSuper(_this, derived, args) {
11
+ function isNativeReflectConstruct() {
12
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
13
+ if (Reflect.construct.sham) return false;
14
+ if (typeof Proxy === "function") return true;
15
+ try {
16
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
17
+ } catch (e) {
18
+ return false;
19
+ }
20
+ }
21
+ derived = _getPrototypeOf(derived);
22
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
23
+ }
7
24
  /** @jsx jsx */
8
25
  import { Component } from 'react';
9
26
  import PropTypes from 'prop-types';
10
27
  import { PresentationContent } from '@instructure/ui-a11y-content';
11
28
  import { jsx } from '@instructure/emotion';
12
- import generateStyle from "./styles.js";
13
- import generateComponentTheme from "./theme.js";
29
+ import generateStyle from './styles';
30
+ import generateComponentTheme from './theme';
14
31
  import { withStyleOverrides } from '@instructure/quiz-common';
15
32
  export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Legend = /*#__PURE__*/function (_Component) {
16
- _inherits(Legend, _Component);
17
- var _super = _createSuper(Legend);
18
33
  function Legend() {
19
34
  _classCallCheck(this, Legend);
20
- return _super.apply(this, arguments);
35
+ return _callSuper(this, Legend, arguments);
21
36
  }
22
- _createClass(Legend, [{
37
+ _inherits(Legend, _Component);
38
+ return _createClass(Legend, [{
23
39
  key: "componentDidMount",
24
40
  value: function componentDidMount() {
25
41
  this.props.makeStyles();
@@ -48,7 +64,7 @@ export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentT
48
64
  }, {
49
65
  key: "render",
50
66
  value: function render() {
51
- var _this = this;
67
+ var _this2 = this;
52
68
  var _this$props = this.props,
53
69
  variant = _this$props.variant,
54
70
  series = _this$props.series,
@@ -58,13 +74,11 @@ export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentT
58
74
  className: containerClass,
59
75
  css: styles.containerStyle
60
76
  }, series.map(function (s, i) {
61
- return _this.renderSeries(s, i, styles);
77
+ return _this2.renderSeries(s, i, styles);
62
78
  })));
63
79
  }
64
80
  }]);
65
- Legend.displayName = "Legend";
66
- return Legend;
67
- }(Component), _Legend.displayName = 'Legend', _Legend.componentId = "Quizzes".concat(_Legend.displayName), _Legend.propTypes = {
81
+ }(Component), _defineProperty(_Legend, "displayName", 'Legend'), _defineProperty(_Legend, "componentId", "Quizzes".concat(_Legend.displayName)), _defineProperty(_Legend, "propTypes", {
68
82
  series: PropTypes.arrayOf(PropTypes.shape({
69
83
  label: PropTypes.string.isRequired,
70
84
  customStyles: PropTypes.object.isRequired
@@ -72,8 +86,8 @@ export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentT
72
86
  variant: PropTypes.oneOf(['column', 'row']),
73
87
  makeStyles: PropTypes.func,
74
88
  styles: PropTypes.object
75
- }, _Legend.defaultProps = {
89
+ }), _defineProperty(_Legend, "defaultProps", {
76
90
  series: [],
77
91
  variant: 'column'
78
- }, _Legend)) || _class);
92
+ }), _Legend)) || _class);
79
93
  export default Legend;
@@ -1,4 +1,6 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2
4
  var generateStyle = function generateStyle(componentTheme, props) {
3
5
  var containerVariant = {
4
6
  row: {
@@ -5,14 +5,14 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
5
5
  typography = _ref.typography;
6
6
  return {
7
7
  containerBorderWidth: borders.widthSmall,
8
- containerBorderColor: colors.tiara,
8
+ containerBorderColor: colors.contrasts.grey1214,
9
9
  seriesContainerMargin: spacing.small,
10
10
  seriesContainerRowMargin: spacing.medium,
11
11
  seriesSwatchMargin: spacing.small,
12
- seriesSwatchBackgroundColor: colors.electric,
12
+ seriesSwatchBackgroundColor: colors.contrasts.blue4570,
13
13
  seriesLabelFontFamily: typography.fontFamily,
14
14
  seriesLabelFontSize: typography.fontSizeXSmall,
15
- seriesLabelColor: colors.textDarkest
15
+ seriesLabelColor: colors.contrasts.grey125125
16
16
  };
17
17
  };
18
18
  export default generateComponentTheme;