@instructure/quiz-core 20.34.0 → 20.34.1-snapshot.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/es/banks/api/banks.js +6 -2
  2. package/es/banks/components/AddToBankModal/index.js +1 -5
  3. package/es/banks/components/AddToBankModal/presenter.js +11 -10
  4. package/es/banks/components/AsyncSearch/index.js +1 -2
  5. package/es/banks/components/Bank/presenter.js +4 -4
  6. package/es/banks/components/BankEntriesList/presenter.js +4 -3
  7. package/es/banks/components/BankEntry/presenter.js +4 -4
  8. package/es/banks/components/BankEntryRow/presenter.js +4 -4
  9. package/es/banks/components/BankSearch/presenter.js +4 -3
  10. package/es/banks/components/Banks/index.js +0 -1
  11. package/es/banks/components/Banks/presenter.js +6 -9
  12. package/es/banks/components/BanksList/index.js +1 -3
  13. package/es/banks/components/BanksList/presenter.js +20 -23
  14. package/es/banks/components/CopyMoveBankEntryModal/index.js +1 -5
  15. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +11 -11
  16. package/es/banks/components/CreateBankModal/presenter.js +4 -4
  17. package/es/banks/components/EditBankModal/presenter.js +4 -4
  18. package/es/banks/components/HeaderMenu/presenter.js +4 -4
  19. package/es/banks/components/NavWrapper/presenter.js +4 -3
  20. package/es/banks/components/SharingModal/RootAccountSharing.js +3 -4
  21. package/es/banks/components/SharingModal/ShareList/index.js +6 -7
  22. package/es/banks/components/SharingModal/index.js +0 -1
  23. package/es/banks/components/SharingModal/presenter.js +5 -9
  24. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +4 -3
  25. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +4 -3
  26. package/es/building/components/layout/Sidebar/presenter.js +4 -4
  27. package/es/building/components/layout/header/BuildingButtons/presenter.js +4 -4
  28. package/es/building/components/resources/ActionButtons/presenter.js +4 -4
  29. package/es/building/components/resources/AddToBankOptions/index.js +4 -4
  30. package/es/building/components/resources/DeleteStimulusModal/presenter.js +4 -4
  31. package/es/building/components/resources/ItemFeedbackModal/presenter.js +4 -4
  32. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -4
  33. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +4 -3
  34. package/es/building/components/resources/quiz/instructions/Show/index.js +4 -3
  35. package/es/building/components/resources/quiz/title/Edit/index.js +4 -3
  36. package/es/building/components/resources/quiz/title/Show/index.js +9 -4
  37. package/es/building/components/resources/quiz/title/Title/presenter.js +4 -3
  38. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -4
  39. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -5
  40. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +4 -3
  41. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +4 -4
  42. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +4 -4
  43. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +4 -4
  44. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -4
  45. package/es/common/components/ImportModal/ImportFileSelector/index.js +4 -3
  46. package/es/common/components/ImportModal/presenter.js +4 -4
  47. package/es/common/components/PrintFontSizeModal/presenter.js +4 -4
  48. package/es/common/components/SDKApp/index.js +4 -4
  49. package/es/common/components/alerts/presenter.js +4 -3
  50. package/es/common/components/layout/Page/index.js +8 -5
  51. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +4 -3
  52. package/es/common/components/layout/header/Timer/presenter.js +4 -3
  53. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -3
  54. package/es/common/components/layout/navbar/index.js +4 -3
  55. package/es/common/components/layout/sidebar/PositionSummary/index.js +4 -3
  56. package/es/common/components/layout/sidebar/Sidebar/index.js +6 -5
  57. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +4 -4
  58. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +4 -3
  59. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +4 -3
  60. package/es/common/components/layout/sidebar/Stimulus/Title/index.js +4 -3
  61. package/es/common/components/layout/sidebar/Stimulus/presenter.js +4 -4
  62. package/es/common/components/resources/BankSelection/presenter.js +40 -142
  63. package/es/common/components/resources/WarningWrapper/index.js +4 -3
  64. package/es/common/components/resources/positionBox/PositionBox.js +4 -3
  65. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +4 -4
  66. package/es/common/components/resources/quiz/AddContent/Button/index.js +4 -4
  67. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +4 -4
  68. package/es/common/components/resources/quiz/instructions/Instructions.js +4 -3
  69. package/es/common/components/resources/quiz/title/Title.js +4 -3
  70. package/es/common/components/resources/quizSessionResult/Header/index.js +4 -3
  71. package/es/common/components/resources/quizSessionResult/Info/index.js +4 -4
  72. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -3
  73. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -4
  74. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +4 -3
  75. package/es/common/components/resources/stimulus/Stimulus/presenter.js +4 -4
  76. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +4 -4
  77. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -4
  78. package/es/common/components/resources/stimulus/StimulusShow/index.js +4 -3
  79. package/es/common/components/shared/Card/CardContent/index.js +4 -3
  80. package/es/common/components/shared/Card/CardWrapper/index.js +4 -3
  81. package/es/common/components/shared/ExpandButton/index.js +4 -3
  82. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +178 -0
  83. package/es/common/components/shared/InteractionTypes/presenter.js +4 -3
  84. package/es/common/components/shared/PaginatedCollection/presenter.js +4 -3
  85. package/es/common/components/shared/Paginator/index.js +4 -3
  86. package/es/common/components/shared/TagDisplay/index.js +4 -3
  87. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +4 -3
  88. package/es/common/components/shared/errors/Errors.js +4 -3
  89. package/es/common/components/shared/file_selector/FileSelector.js +4 -3
  90. package/es/common/components/shared/overlay/index.js +4 -4
  91. package/es/common/components/shared/spinner/Spinner.js +4 -3
  92. package/es/index.js +6 -2
  93. package/es/moderating/components/events/Event.js +3 -0
  94. package/es/moderating/components/events/ResponseEvent.js +4 -3
  95. package/es/moderating/components/resources/ModerateTable/presenter.js +4 -4
  96. package/es/moderating/components/resources/ModerateTableRow/presenter.js +4 -4
  97. package/es/reporting/api/fetchStudentAnalyses.js +9 -4
  98. package/es/reporting/api/getAnalysesExport.js +11 -4
  99. package/es/reporting/api/getAnalysesStatus.js +11 -4
  100. package/es/reporting/components/Caption/index.js +4 -3
  101. package/es/reporting/components/MetricsListItem/index.js +4 -3
  102. package/es/reporting/components/charts/CentileDistribution/presenter.js +4 -3
  103. package/es/reporting/components/charts/Distribution/presenter.js +4 -3
  104. package/es/reporting/components/charts/Legend/index.js +4 -3
  105. package/es/reporting/components/charts/QuintileDistribution/presenter.js +4 -3
  106. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -3
  107. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -4
  108. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +4 -3
  109. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +4 -3
  110. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +4 -3
  111. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -3
  112. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +4 -3
  113. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +4 -3
  114. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +4 -3
  115. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +4 -3
  116. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +4 -3
  117. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +4 -3
  118. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -3
  119. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -3
  120. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +4 -3
  121. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +4 -3
  122. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +4 -3
  123. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +4 -3
  124. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +4 -4
  125. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +4 -3
  126. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +4 -3
  127. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +4 -3
  128. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -3
  129. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -4
  130. package/es/reporting/components/resources/ReportCard/index.js +4 -3
  131. package/es/reporting/components/resources/ReportList/index.js +4 -3
  132. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +8 -6
  133. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -1
  134. package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +19 -6
  135. package/lib/banks/api/banks.js +8 -3
  136. package/lib/banks/components/AddToBankModal/index.js +0 -4
  137. package/lib/banks/components/AddToBankModal/presenter.js +11 -10
  138. package/lib/banks/components/AsyncSearch/index.js +1 -2
  139. package/lib/banks/components/Bank/presenter.js +2 -2
  140. package/lib/banks/components/BankEntriesList/presenter.js +3 -2
  141. package/lib/banks/components/BankEntry/presenter.js +2 -2
  142. package/lib/banks/components/BankEntryRow/presenter.js +2 -2
  143. package/lib/banks/components/BankSearch/presenter.js +3 -2
  144. package/lib/banks/components/Banks/index.js +0 -1
  145. package/lib/banks/components/Banks/presenter.js +4 -7
  146. package/lib/banks/components/BanksList/index.js +1 -3
  147. package/lib/banks/components/BanksList/presenter.js +18 -21
  148. package/lib/banks/components/CopyMoveBankEntryModal/index.js +0 -4
  149. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +11 -11
  150. package/lib/banks/components/CreateBankModal/presenter.js +2 -2
  151. package/lib/banks/components/EditBankModal/presenter.js +2 -2
  152. package/lib/banks/components/HeaderMenu/presenter.js +2 -2
  153. package/lib/banks/components/NavWrapper/presenter.js +3 -2
  154. package/lib/banks/components/SharingModal/RootAccountSharing.js +2 -3
  155. package/lib/banks/components/SharingModal/ShareList/index.js +4 -5
  156. package/lib/banks/components/SharingModal/index.js +0 -1
  157. package/lib/banks/components/SharingModal/presenter.js +3 -7
  158. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +3 -2
  159. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +3 -2
  160. package/lib/building/components/layout/Sidebar/presenter.js +2 -2
  161. package/lib/building/components/layout/header/BuildingButtons/presenter.js +2 -2
  162. package/lib/building/components/resources/ActionButtons/presenter.js +2 -2
  163. package/lib/building/components/resources/AddToBankOptions/index.js +2 -2
  164. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +2 -2
  165. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +2 -2
  166. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +2 -2
  167. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +3 -2
  168. package/lib/building/components/resources/quiz/instructions/Show/index.js +3 -2
  169. package/lib/building/components/resources/quiz/title/Edit/index.js +3 -2
  170. package/lib/building/components/resources/quiz/title/Show/index.js +3 -2
  171. package/lib/building/components/resources/quiz/title/Title/presenter.js +3 -2
  172. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -2
  173. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -5
  174. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +3 -2
  175. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
  176. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -2
  177. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
  178. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +2 -2
  179. package/lib/common/components/ImportModal/ImportFileSelector/index.js +3 -2
  180. package/lib/common/components/ImportModal/presenter.js +2 -2
  181. package/lib/common/components/PrintFontSizeModal/presenter.js +2 -2
  182. package/lib/common/components/SDKApp/index.js +2 -2
  183. package/lib/common/components/alerts/presenter.js +3 -2
  184. package/lib/common/components/layout/Page/index.js +7 -4
  185. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +3 -2
  186. package/lib/common/components/layout/header/Timer/presenter.js +3 -2
  187. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +3 -2
  188. package/lib/common/components/layout/navbar/index.js +3 -2
  189. package/lib/common/components/layout/sidebar/PositionSummary/index.js +3 -2
  190. package/lib/common/components/layout/sidebar/Sidebar/index.js +4 -3
  191. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -2
  192. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +3 -2
  193. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +3 -2
  194. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +3 -2
  195. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +2 -2
  196. package/lib/common/components/resources/BankSelection/presenter.js +40 -142
  197. package/lib/common/components/resources/WarningWrapper/index.js +3 -2
  198. package/lib/common/components/resources/positionBox/PositionBox.js +3 -2
  199. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
  200. package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -2
  201. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -2
  202. package/lib/common/components/resources/quiz/instructions/Instructions.js +3 -2
  203. package/lib/common/components/resources/quiz/title/Title.js +3 -2
  204. package/lib/common/components/resources/quizSessionResult/Header/index.js +3 -2
  205. package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -2
  206. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +3 -2
  207. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -2
  208. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +3 -2
  209. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +2 -2
  210. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -2
  211. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -2
  212. package/lib/common/components/resources/stimulus/StimulusShow/index.js +3 -2
  213. package/lib/common/components/shared/Card/CardContent/index.js +3 -2
  214. package/lib/common/components/shared/Card/CardWrapper/index.js +3 -2
  215. package/lib/common/components/shared/ExpandButton/index.js +3 -2
  216. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +188 -0
  217. package/lib/common/components/shared/InteractionTypes/presenter.js +3 -2
  218. package/lib/common/components/shared/PaginatedCollection/presenter.js +3 -2
  219. package/lib/common/components/shared/Paginator/index.js +3 -2
  220. package/lib/common/components/shared/TagDisplay/index.js +3 -2
  221. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +3 -2
  222. package/lib/common/components/shared/errors/Errors.js +3 -2
  223. package/lib/common/components/shared/file_selector/FileSelector.js +3 -2
  224. package/lib/common/components/shared/overlay/index.js +2 -2
  225. package/lib/common/components/shared/spinner/Spinner.js +3 -2
  226. package/lib/index.js +51 -0
  227. package/lib/moderating/components/events/Event.js +4 -1
  228. package/lib/moderating/components/events/ResponseEvent.js +3 -2
  229. package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -2
  230. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +2 -2
  231. package/lib/reporting/api/fetchStudentAnalyses.js +9 -4
  232. package/lib/reporting/api/getAnalysesExport.js +11 -4
  233. package/lib/reporting/api/getAnalysesStatus.js +11 -4
  234. package/lib/reporting/components/Caption/index.js +3 -2
  235. package/lib/reporting/components/MetricsListItem/index.js +3 -2
  236. package/lib/reporting/components/charts/CentileDistribution/presenter.js +3 -2
  237. package/lib/reporting/components/charts/Distribution/presenter.js +3 -2
  238. package/lib/reporting/components/charts/Legend/index.js +3 -2
  239. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +3 -2
  240. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +3 -2
  241. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -2
  242. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +3 -2
  243. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -2
  244. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -2
  245. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -2
  246. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -2
  247. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -2
  248. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -2
  249. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -2
  250. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +3 -2
  251. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -2
  252. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -2
  253. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -2
  254. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -2
  255. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -2
  256. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -2
  257. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -2
  258. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -2
  259. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -2
  260. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
  261. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -2
  262. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +3 -2
  263. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
  264. package/lib/reporting/components/resources/ReportCard/index.js +3 -2
  265. package/lib/reporting/components/resources/ReportList/index.js +3 -2
  266. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +7 -5
  267. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -1
  268. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +19 -6
  269. package/package.json +31 -30
@@ -9,13 +9,14 @@ import PropTypes from 'prop-types';
9
9
  import ImmutablePropTypes from 'react-immutable-proptypes';
10
10
  import partial from 'lodash/partial';
11
11
  import { Heading } from '@instructure/ui-heading';
12
- import { withStyle, jsx } from '@instructure/emotion';
12
+ import { jsx } from '@instructure/emotion';
13
13
  import EditButton from "../../editButton/EditButton.js";
14
14
  import QuizTitleEdit from "../Edit/index.js";
15
15
  import QuizTitleShow from "../Show/index.js";
16
16
  import generateStyle from "./styles.js";
17
17
  import generateComponentTheme from "./theme.js";
18
18
  import t from '@instructure/quiz-i18n/es/format-message';
19
+ import { withStyleOverrides } from '@instructure/quiz-common';
19
20
 
20
21
  // ================================
21
22
 
@@ -24,7 +25,7 @@ import t from '@instructure/quiz-i18n/es/format-message';
24
25
 
25
26
  // ================================
26
27
 
27
- export var QuizTitlePresenter = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizTitlePresenter = /*#__PURE__*/function (_Component) {
28
+ export var QuizTitlePresenter = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizTitlePresenter = /*#__PURE__*/function (_Component) {
28
29
  _inherits(QuizTitlePresenter, _Component);
29
30
  var _super = _createSuper(QuizTitlePresenter);
30
31
  function QuizTitlePresenter() {
@@ -164,7 +165,7 @@ export var QuizTitlePresenter = (_dec = withStyle(generateStyle, generateCompone
164
165
  }]);
165
166
  QuizTitlePresenter.displayName = "QuizTitlePresenter";
166
167
  return QuizTitlePresenter;
167
- }(Component), _QuizTitlePresenter.propTypes = {
168
+ }(Component), _QuizTitlePresenter.displayName = 'QuizTitle', _QuizTitlePresenter.componentId = "Quizzes".concat(_QuizTitlePresenter.displayName), _QuizTitlePresenter.propTypes = {
168
169
  changeQuizTitle: PropTypes.func.isRequired,
169
170
  errorsShowing: ImmutablePropTypes.map.isRequired,
170
171
  hideError: PropTypes.func.isRequired,
@@ -13,7 +13,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
13
13
  import pick from 'lodash/pick';
14
14
  import partial from 'lodash/partial';
15
15
  import ReactDOM from 'react-dom';
16
- import { withStyle, jsx } from '@instructure/emotion';
16
+ import { jsx } from '@instructure/emotion';
17
17
  import t from '@instructure/quiz-i18n/es/format-message';
18
18
  import WarningWrapper from "../../../../../common/components/resources/WarningWrapper/index.js";
19
19
  import { propsForItemBankEntryEditPrompt, propsForStimulusBankEntryEditPrompt, propsForBankEntryUnauthorizedEdit, propsForItemVersioningWrapper, propsForBankEntryVersioningWrapper } from "../../../../../common/util/warningHelpers.js";
@@ -26,13 +26,13 @@ import ItemOverride from "../../../../../common/components/resources/item/ItemOv
26
26
  import AddToBankOptions from "../../AddToBankOptions/index.js";
27
27
  import TagDisplay from "../../../../../common/components/shared/TagDisplay/index.js";
28
28
  import Item from "../../../../../common/records/Item.js";
29
- import { BUILD_TRAY_OPEN, PARENT_TYPE_QUIZ, REGRADE_MODAL, SHOULD_CLONE_ITEM } from '@instructure/quiz-common';
29
+ import { BUILD_TRAY_OPEN, PARENT_TYPE_QUIZ, REGRADE_MODAL, SHOULD_CLONE_ITEM, withStyleOverrides } from '@instructure/quiz-common';
30
30
  import QuizEntryShow from "../QuizEntryShow/index.js";
31
31
  import QuizEntryEdit from "../QuizEntryEdit/index.js";
32
32
  import Stimulus from "../../../../../common/components/resources/stimulus/Stimulus/index.js";
33
33
  import generateStyle from "./styles.js";
34
34
  import generateComponentTheme from "./theme.js";
35
- export var QuizEntry = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntry = /*#__PURE__*/function (_Component) {
35
+ export var QuizEntry = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntry = /*#__PURE__*/function (_Component) {
36
36
  _inherits(QuizEntry, _Component);
37
37
  var _super = _createSuper(QuizEntry);
38
38
  function QuizEntry() {
@@ -311,7 +311,7 @@ export var QuizEntry = (_dec = withStyle(generateStyle, generateComponentTheme),
311
311
  }]);
312
312
  QuizEntry.displayName = "QuizEntry";
313
313
  return QuizEntry;
314
- }(Component), _QuizEntry.propTypes = {
314
+ }(Component), _QuizEntry.displayName = 'QuizEntry', _QuizEntry.componentId = "Quizzes".concat(_QuizEntry.displayName), _QuizEntry.propTypes = {
315
315
  changeQuizEntryPoints: PropTypes.func.isRequired,
316
316
  childEntries: ImmutablePropTypes.listOf(ImmutablePropTypes.record),
317
317
  connectDropTarget: PropTypes.func.isRequired,
@@ -13,17 +13,18 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
13
13
  import NumberInput from '@instructure/quiz-number-input';
14
14
  import { Text } from '@instructure/ui-text';
15
15
  import { Alert } from '@instructure/ui-alerts';
16
- import { withStyle, jsx } from '@instructure/emotion';
16
+ import { jsx } from '@instructure/emotion';
17
17
  import EntrySave from "../../../../../../common/components/resources/entry/EntrySave/index.js";
18
- import BankSelection from "../../../../../../common/components/resources/BankSelection/index.js";
18
+ import BankSelection from "../../../../../../common/components/resources/BankSelection/presenter.js";
19
19
  import QuizEntry from "../../../../../../common/records/QuizEntry.js";
20
20
  import Bank from "../../../../../../common/records/Bank.js";
21
21
  import generateStyle from "./styles.js";
22
22
  import generateComponentTheme from "./theme.js";
23
23
  import t from '@instructure/quiz-i18n/es/format-message';
24
+ import { withStyleOverrides } from '@instructure/quiz-common';
24
25
  var _ref = jsx("br", null);
25
26
  var _ref2 = jsx("br", null);
26
- export var QuizEntryBankEdit = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryBankEdit = /*#__PURE__*/function (_Component) {
27
+ export var QuizEntryBankEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryBankEdit = /*#__PURE__*/function (_Component) {
27
28
  _inherits(QuizEntryBankEdit, _Component);
28
29
  var _super = _createSuper(QuizEntryBankEdit);
29
30
  function QuizEntryBankEdit() {
@@ -57,7 +58,7 @@ export var QuizEntryBankEdit = (_dec = withStyle(generateStyle, generateComponen
57
58
  _this.props.changeQuizEntryProperties(_this.props.quizEntry.id, properties);
58
59
  };
59
60
  _this.onBankSelection = function (event, option) {
60
- _this.props.changeQuizEntryEntry(_this.props.quizEntry.id, option.value);
61
+ _this.props.changeQuizEntryEntry(_this.props.quizEntry.id, option.id);
61
62
  };
62
63
  _this.handleQuestionChange = function (event, selection) {
63
64
  _this.onPropertiesChange({
@@ -201,7 +202,7 @@ export var QuizEntryBankEdit = (_dec = withStyle(generateStyle, generateComponen
201
202
  }]);
202
203
  QuizEntryBankEdit.displayName = "QuizEntryBankEdit";
203
204
  return QuizEntryBankEdit;
204
- }(Component), _QuizEntryBankEdit.propTypes = {
205
+ }(Component), _QuizEntryBankEdit.displayName = 'QuizEntryBankEdit', _QuizEntryBankEdit.componentId = "Quizzes".concat(_QuizEntryBankEdit.displayName), _QuizEntryBankEdit.propTypes = {
205
206
  changeQuizEntryPoints: PropTypes.func.isRequired,
206
207
  changeQuizEntryProperties: PropTypes.func.isRequired,
207
208
  changeQuizEntryEntry: PropTypes.func.isRequired,
@@ -9,14 +9,15 @@ import PropTypes from 'prop-types';
9
9
  import { View } from '@instructure/ui-view';
10
10
  import { Alert } from '@instructure/ui-alerts';
11
11
  import { Text } from '@instructure/ui-text';
12
- import { withStyle, jsx } from '@instructure/emotion';
12
+ import { jsx } from '@instructure/emotion';
13
13
  import Bank from "../../../../../../common/records/Bank.js";
14
14
  import QuizEntry from "../../../../../../common/records/QuizEntry.js";
15
15
  import generateStyle from "./styles.js";
16
16
  import generateComponentTheme from "./theme.js";
17
17
  import t from '@instructure/quiz-i18n/es/format-message';
18
+ import { withStyleOverrides } from '@instructure/quiz-common';
18
19
  var _ref = jsx("br", null);
19
- export var QuizEntryBank = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryBank = /*#__PURE__*/function (_Component) {
20
+ export var QuizEntryBank = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryBank = /*#__PURE__*/function (_Component) {
20
21
  _inherits(QuizEntryBank, _Component);
21
22
  var _super = _createSuper(QuizEntryBank);
22
23
  function QuizEntryBank() {
@@ -90,7 +91,7 @@ export var QuizEntryBank = (_dec = withStyle(generateStyle, generateComponentThe
90
91
  }]);
91
92
  QuizEntryBank.displayName = "QuizEntryBank";
92
93
  return QuizEntryBank;
93
- }(Component), _QuizEntryBank.propTypes = {
94
+ }(Component), _QuizEntryBank.displayName = 'QuizEntryBank', _QuizEntryBank.componentId = "Quizzes".concat(_QuizEntryBank.displayName), _QuizEntryBank.propTypes = {
94
95
  entry: PropTypes.instanceOf(Bank).isRequired,
95
96
  quizEntry: PropTypes.instanceOf(QuizEntry).isRequired,
96
97
  styles: PropTypes.object
@@ -14,12 +14,12 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
14
14
  import { Text } from '@instructure/ui-text';
15
15
  import NumberInput from '@instructure/quiz-number-input';
16
16
  import { IconButton } from '@instructure/ui-buttons';
17
- import { withStyle, jsx } from '@instructure/emotion';
17
+ import { jsx } from '@instructure/emotion';
18
18
  import { IconDiscussionLine, IconDiscussionSolid } from '@instructure/ui-icons';
19
19
  import { interactionPoints } from '@instructure/quiz-interactions';
20
20
  import t from '@instructure/quiz-i18n/es/format-message';
21
21
  import EntrySave from "../../../../../../common/components/resources/entry/EntrySave/index.js";
22
- import { ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_ITEM, ITEM_FEEDBACK_MODAL_FEEDBACK } from '@instructure/quiz-common';
22
+ import { ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_ITEM, ITEM_FEEDBACK_MODAL_FEEDBACK, withStyleOverrides } from '@instructure/quiz-common';
23
23
  import generateStyle from "./styles.js";
24
24
  import generateComponentTheme from "./theme.js";
25
25
  function pointsAsFloat(pointsString) {
@@ -34,7 +34,7 @@ function countDecimals(normalizedPointsString) {
34
34
  decimals = _normalizedPointsStri2[1];
35
35
  return decimals ? decimals.length : 0;
36
36
  }
37
- export var QuizEntryEditFooter = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryEditFooter = /*#__PURE__*/function (_Component) {
37
+ export var QuizEntryEditFooter = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryEditFooter = /*#__PURE__*/function (_Component) {
38
38
  _inherits(QuizEntryEditFooter, _Component);
39
39
  var _super = _createSuper(QuizEntryEditFooter);
40
40
  function QuizEntryEditFooter() {
@@ -209,7 +209,7 @@ export var QuizEntryEditFooter = (_dec = withStyle(generateStyle, generateCompon
209
209
  }]);
210
210
  QuizEntryEditFooter.displayName = "QuizEntryEditFooter";
211
211
  return QuizEntryEditFooter;
212
- }(Component), _QuizEntryEditFooter.propTypes = {
212
+ }(Component), _QuizEntryEditFooter.displayName = 'QuizEntryEditFooter', _QuizEntryEditFooter.componentId = "Quizzes".concat(_QuizEntryEditFooter.displayName), _QuizEntryEditFooter.propTypes = {
213
213
  alternativeRightFooter: PropTypes.func,
214
214
  changeQuizEntryPoints: PropTypes.func.isRequired,
215
215
  clearChanges: PropTypes.func.isRequired,
@@ -13,7 +13,7 @@ import partial from 'lodash/partial';
13
13
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
14
14
  import { CondensedButton } from '@instructure/ui-buttons';
15
15
  import { TextInput } from '@instructure/ui-text-input';
16
- import { withStyle, jsx, Global } from '@instructure/emotion';
16
+ import { jsx, Global } from '@instructure/emotion';
17
17
  import { FillBlankInteractionType } from '@instructure/quiz-interactions';
18
18
  import { IconBankLine } from '@instructure/ui-icons';
19
19
  import t from '@instructure/quiz-i18n/es/format-message';
@@ -21,11 +21,11 @@ import { convertFITBtoRich } from "../../../../../../common/util/fitbCopyHelper.
21
21
  import PositionBox from "../../../../../../common/components/resources/positionBox/PositionBox.js";
22
22
  import Item from "../../../../../../common/records/Item.js";
23
23
  import ActionButtons from "../../../ActionButtons/index.js";
24
- import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, BUILD_TRAY_OPEN } from '@instructure/quiz-common';
24
+ import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, BUILD_TRAY_OPEN, withStyleOverrides } from '@instructure/quiz-common';
25
25
  import generateStyle from "./styles.js";
26
26
  import generateComponentTheme from "./theme.js";
27
27
  var _ref2 = jsx(IconBankLine, null);
28
- var QuizEntryHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryHeader = /*#__PURE__*/function (_Component) {
28
+ var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryHeader = /*#__PURE__*/function (_Component) {
29
29
  _inherits(QuizEntryHeader, _Component);
30
30
  var _super = _createSuper(QuizEntryHeader);
31
31
  function QuizEntryHeader() {
@@ -270,7 +270,7 @@ var QuizEntryHeader = (_dec = withStyle(generateStyle, generateComponentTheme),
270
270
  }]);
271
271
  QuizEntryHeader.displayName = "QuizEntryHeader";
272
272
  return QuizEntryHeader;
273
- }(Component), _QuizEntryHeader.propTypes = {
273
+ }(Component), _QuizEntryHeader.displayName = 'QuizEntryHeader', _QuizEntryHeader.componentId = "Quizzes".concat(_QuizEntryHeader.displayName), _QuizEntryHeader.propTypes = {
274
274
  changeItemTitle: PropTypes.func.isRequired,
275
275
  // from connected component
276
276
  clearModifications: PropTypes.func.isRequired,
@@ -12,7 +12,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
12
12
  import { DragSource } from 'react-dnd';
13
13
  import pick from 'lodash/pick';
14
14
  import first from 'lodash/first';
15
- import { withStyle, jsx, Global } from '@instructure/emotion';
15
+ import { jsx, Global } from '@instructure/emotion';
16
16
  import t from '@instructure/quiz-i18n/es/format-message';
17
17
  import CustomPropTypes from "../../../../../common/util/CustomPropTypes.js";
18
18
  import AddToBankModal from "../../../../../banks/components/AddToBankModal/index.js";
@@ -21,11 +21,11 @@ import wrapWithOutsideClickEmotion from "../../../../../common/components/shared
21
21
  import { checkClickedNode } from "../../../../../common/util/clickHandlers.js";
22
22
  import QuizEntryEditHeader from "./Header/index.js";
23
23
  import QuizEntryEditFooter from "./Footer/index.js";
24
- import { SHOULD_CLONE_ITEM, TEMPORARY_ITEM_ID, DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, CLEAR_ALL_INPUT_VALIDATION_ERRORS, PARENT_TYPE_ADDING_TO_BANK } from '@instructure/quiz-common';
24
+ import { SHOULD_CLONE_ITEM, TEMPORARY_ITEM_ID, DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, CLEAR_ALL_INPUT_VALIDATION_ERRORS, PARENT_TYPE_ADDING_TO_BANK, withStyleOverrides } from '@instructure/quiz-common';
25
25
  import { ItemTypes, dragSource, collectDrag } from "../../../../../common/components/shared/drag_and_drop/dragAndDropUtils.js";
26
26
  import generateStyle from "./styles.js";
27
27
  import generateComponentTheme from "./theme.js";
28
- var QuizEntryEdit = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryEdit = /*#__PURE__*/function (_Component) {
28
+ var QuizEntryEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryEdit = /*#__PURE__*/function (_Component) {
29
29
  _inherits(QuizEntryEdit, _Component);
30
30
  var _super = _createSuper(QuizEntryEdit);
31
31
  function QuizEntryEdit() {
@@ -362,7 +362,7 @@ var QuizEntryEdit = (_dec = withStyle(generateStyle, generateComponentTheme), _d
362
362
  }]);
363
363
  QuizEntryEdit.displayName = "QuizEntryEdit";
364
364
  return QuizEntryEdit;
365
- }(Component), _QuizEntryEdit.propTypes = {
365
+ }(Component), _QuizEntryEdit.displayName = 'QuizEntryEdit', _QuizEntryEdit.componentId = "Quizzes".concat(_QuizEntryEdit.displayName), _QuizEntryEdit.propTypes = {
366
366
  addContentPopoverOpen: PropTypes.bool.isRequired,
367
367
  alternativeRightFooter: PropTypes.func,
368
368
  appContainer: CustomPropTypes.selectors.isRequired,
@@ -11,9 +11,9 @@ import partial from 'lodash/partial';
11
11
  import { DragSource } from 'react-dnd';
12
12
  import { IconBankLine } from '@instructure/ui-icons';
13
13
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
14
- import { withStyle, jsx } from '@instructure/emotion';
14
+ import { jsx } from '@instructure/emotion';
15
15
  import { FillBlankInteractionType } from '@instructure/quiz-interactions';
16
- import { TOP } from '@instructure/quiz-common';
16
+ import { TOP, withStyleOverrides } from '@instructure/quiz-common';
17
17
  import t from '@instructure/quiz-i18n/es/format-message';
18
18
  import { convertFITBtoRich } from "../../../../../common/util/fitbCopyHelper.js";
19
19
  import Item from "../../../../../common/records/Item.js";
@@ -25,7 +25,7 @@ import DragAndDropZone from "../../../../../common/components/shared/drag_and_dr
25
25
  import generateStyle from "./styles.js";
26
26
  import generateComponentTheme from "./theme.js";
27
27
  var _ref = jsx(IconBankLine, null);
28
- var QuizEntryShow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryShow = /*#__PURE__*/function (_Component) {
28
+ var QuizEntryShow = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryShow = /*#__PURE__*/function (_Component) {
29
29
  _inherits(QuizEntryShow, _Component);
30
30
  var _super = _createSuper(QuizEntryShow);
31
31
  function QuizEntryShow() {
@@ -278,7 +278,7 @@ var QuizEntryShow = (_dec = withStyle(generateStyle, generateComponentTheme), _d
278
278
  }]);
279
279
  QuizEntryShow.displayName = "QuizEntryShow";
280
280
  return QuizEntryShow;
281
- }(Component), _QuizEntryShow.propTypes = {
281
+ }(Component), _QuizEntryShow.displayName = 'QuizEntryShow', _QuizEntryShow.componentId = "Quizzes".concat(_QuizEntryShow.displayName), _QuizEntryShow.propTypes = {
282
282
  children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
283
283
  connectDragPreview: PropTypes.func.isRequired,
284
284
  connectDragSource: PropTypes.func.isRequired,
@@ -9,15 +9,16 @@ import PropTypes from 'prop-types';
9
9
  import ImmutablePropTypes from 'react-immutable-proptypes';
10
10
  import { Button } from '@instructure/ui-buttons';
11
11
  import { Grid } from '@instructure/ui-grid';
12
- import { withStyle, jsx } from '@instructure/emotion';
12
+ import { jsx } from '@instructure/emotion';
13
13
  import { IconUploadLine, IconCompleteLine } from '@instructure/ui-icons';
14
14
  import t from '@instructure/quiz-i18n/es/format-message';
15
15
  import FileSelector from "../../../../common/components/shared/file_selector/FileSelector.js";
16
16
  import generateStyle from "./styles.js";
17
17
  import generateComponentTheme from "./theme.js";
18
+ import { withStyleOverrides } from '@instructure/quiz-common';
18
19
  var _ref = jsx(IconUploadLine, null);
19
20
  var _ref2 = jsx(IconCompleteLine, null);
20
- export var ImportFileSelector = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ImportFileSelector = /*#__PURE__*/function (_Component) {
21
+ export var ImportFileSelector = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ImportFileSelector = /*#__PURE__*/function (_Component) {
21
22
  _inherits(ImportFileSelector, _Component);
22
23
  var _super = _createSuper(ImportFileSelector);
23
24
  function ImportFileSelector() {
@@ -121,7 +122,7 @@ export var ImportFileSelector = (_dec = withStyle(generateStyle, generateCompone
121
122
  }]);
122
123
  ImportFileSelector.displayName = "ImportFileSelector";
123
124
  return ImportFileSelector;
124
- }(Component), _ImportFileSelector.propTypes = {
125
+ }(Component), _ImportFileSelector.displayName = 'ImportFileSelector', _ImportFileSelector.componentId = "Quizzes".concat(_ImportFileSelector.displayName), _ImportFileSelector.propTypes = {
125
126
  files: ImmutablePropTypes.list.isRequired,
126
127
  receiveFile: PropTypes.func.isRequired,
127
128
  acceptAttribute: PropTypes.string.isRequired,
@@ -15,13 +15,13 @@ import { Heading } from '@instructure/ui-heading';
15
15
  import { Tabs } from '@instructure/ui-tabs';
16
16
  import { ToggleDetails } from '@instructure/ui-toggle-details';
17
17
  import { TextInput } from '@instructure/ui-text-input';
18
- import { withStyle, jsx } from '@instructure/emotion';
19
- import { ImportantModal, ModalHeader, ModalBody, ModalFooter, FILE_UPLOAD_SELECT, FILE_UPLOAD_IMPORTING, FILE_UPLOAD_SUCCESS, FILE_UPLOAD_FAILURE, FILE_UPLOAD_ERROR, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
18
+ import { jsx } from '@instructure/emotion';
19
+ import { ImportantModal, ModalHeader, ModalBody, ModalFooter, FILE_UPLOAD_SELECT, FILE_UPLOAD_IMPORTING, FILE_UPLOAD_SUCCESS, FILE_UPLOAD_FAILURE, FILE_UPLOAD_ERROR, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
20
20
  import generateStyle from "./styles.js";
21
21
  import generateComponentTheme from "./theme.js";
22
22
  import ImportFileSelector from "./ImportFileSelector/index.js";
23
23
  import t from '@instructure/quiz-i18n/es/format-message';
24
- export var ImportModal = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ImportModal = /*#__PURE__*/function (_Component) {
24
+ export var ImportModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ImportModal = /*#__PURE__*/function (_Component) {
25
25
  _inherits(ImportModal, _Component);
26
26
  var _super = _createSuper(ImportModal);
27
27
  function ImportModal() {
@@ -319,7 +319,7 @@ export var ImportModal = (_dec = withStyle(generateStyle, generateComponentTheme
319
319
  }]);
320
320
  ImportModal.displayName = "ImportModal";
321
321
  return ImportModal;
322
- }(Component), _ImportModal.propTypes = {
322
+ }(Component), _ImportModal.displayName = 'ImportModal', _ImportModal.componentId = "Quizzes".concat(_ImportModal.displayName), _ImportModal.propTypes = {
323
323
  acceptFileType: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.shape({
324
324
  fileType: PropTypes.string,
325
325
  title: PropTypes.string
@@ -6,16 +6,16 @@ var _dec, _class, _PrintFontSizeModal;
6
6
  /** @jsx jsx */
7
7
  import { Component } from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { Modal, ModalHeader, ModalBody, ModalFooter } from '@instructure/quiz-common';
9
+ import { Modal, ModalHeader, ModalBody, ModalFooter, withStyleOverrides } from '@instructure/quiz-common';
10
10
  import { Heading } from '@instructure/ui-heading';
11
11
  import { Button, CloseButton } from '@instructure/ui-buttons';
12
- import { withStyle, jsx } from '@instructure/emotion';
12
+ import { jsx } from '@instructure/emotion';
13
13
  import generateStyle from "./styles.js";
14
14
  import generateComponentTheme from "./theme.js";
15
15
  import t from '@instructure/quiz-i18n/es/format-message';
16
16
  import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
17
17
  import { Checkbox } from '@instructure/ui-checkbox';
18
- export var PrintFontSizeModal = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_PrintFontSizeModal = /*#__PURE__*/function (_Component) {
18
+ export var PrintFontSizeModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_PrintFontSizeModal = /*#__PURE__*/function (_Component) {
19
19
  _inherits(PrintFontSizeModal, _Component);
20
20
  var _super = _createSuper(PrintFontSizeModal);
21
21
  function PrintFontSizeModal() {
@@ -152,7 +152,7 @@ export var PrintFontSizeModal = (_dec = withStyle(generateStyle, generateCompone
152
152
  }]);
153
153
  PrintFontSizeModal.displayName = "PrintFontSizeModal";
154
154
  return PrintFontSizeModal;
155
- }(Component), _PrintFontSizeModal.propTypes = {
155
+ }(Component), _PrintFontSizeModal.displayName = 'PrintFontSizeModal', _PrintFontSizeModal.componentId = "Quizzes".concat(_PrintFontSizeModal.displayName), _PrintFontSizeModal.propTypes = {
156
156
  isOpen: PropTypes.bool,
157
157
  persistedPrintFontSize: PropTypes.string,
158
158
  onSubmit: PropTypes.func.isRequired,
@@ -10,11 +10,11 @@ import { Component } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import HTML5Backend from 'react-dnd-html5-backend';
12
12
  import { DragDropContext } from 'react-dnd';
13
- import { withStyle, jsx } from '@instructure/emotion';
13
+ import { jsx } from '@instructure/emotion';
14
14
  import { ApplyLocale } from '@instructure/ui-i18n';
15
15
  import { Provider } from "../../react-redux.js";
16
16
  import store from "../../../reduxStore.js";
17
- import { getLocale } from '@instructure/quiz-common';
17
+ import { getLocale, withStyleOverrides } from '@instructure/quiz-common';
18
18
  import { set } from "../../actions/ui.js";
19
19
  import { addAlert } from "../../actions/alerts.js";
20
20
  import { setAPIEndpoint, setCanvasOrigin, setUserToken } from "../../actions/config.js";
@@ -29,7 +29,7 @@ import setupFormatMessage from '@instructure/quiz-i18n/es/util/setupFormatMessag
29
29
  import RceConfigProvider from "../RceConfigProvider/index.js";
30
30
  import { ApiFeatureFlagInitializer } from "../ApiFeatureFlagInitializer/index.js";
31
31
  var _ref = jsx(ConfirmationModal, null);
32
- export var SDKApp = (_dec = withStyle(generateStyle, null), _dec(_class = (_SDKApp = /*#__PURE__*/function (_Component) {
32
+ export var SDKApp = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_SDKApp = /*#__PURE__*/function (_Component) {
33
33
  _inherits(SDKApp, _Component);
34
34
  var _super = _createSuper(SDKApp);
35
35
  function SDKApp(props) {
@@ -140,7 +140,7 @@ export var SDKApp = (_dec = withStyle(generateStyle, null), _dec(_class = (_SDKA
140
140
  }]);
141
141
  SDKApp.displayName = "SDKApp";
142
142
  return SDKApp;
143
- }(Component), _SDKApp.propTypes = {
143
+ }(Component), _SDKApp.displayName = 'SDKApp', _SDKApp.componentId = "Quizzes".concat(_SDKApp.displayName), _SDKApp.propTypes = {
144
144
  apiEndpoint: PropTypes.string.isRequired,
145
145
  appContainer: CustomPropTypes.selectors.isRequired,
146
146
  children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
@@ -10,11 +10,12 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
10
10
  import partial from 'lodash/partial';
11
11
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
12
12
  import { Alert } from '@instructure/ui-alerts';
13
- import { withStyle, jsx } from '@instructure/emotion';
13
+ import { jsx } from '@instructure/emotion';
14
14
  import t from '@instructure/quiz-i18n/es/format-message';
15
15
  import generateStyle from "./styles.js";
16
16
  import generateComponentTheme from "./theme.js";
17
- export var Alerts = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Alerts = /*#__PURE__*/function (_Component) {
17
+ import { withStyleOverrides } from '@instructure/quiz-common';
18
+ export var Alerts = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Alerts = /*#__PURE__*/function (_Component) {
18
19
  _inherits(Alerts, _Component);
19
20
  var _super = _createSuper(Alerts);
20
21
  function Alerts() {
@@ -85,7 +86,7 @@ export var Alerts = (_dec = withStyle(generateStyle, generateComponentTheme), _d
85
86
  }]);
86
87
  Alerts.displayName = "Alerts";
87
88
  return Alerts;
88
- }(Component), _Alerts.propTypes = {
89
+ }(Component), _Alerts.displayName = 'Alerts', _Alerts.componentId = "Quizzes".concat(_Alerts.displayName), _Alerts.propTypes = {
89
90
  removeAlert: PropTypes.func.isRequired,
90
91
  alerts: ImmutablePropTypes.list.isRequired,
91
92
  styles: PropTypes.object
@@ -6,10 +6,12 @@ var _dec, _class, _Page;
6
6
  /** @jsx jsx */
7
7
  import { Component } from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { withStyle, jsx } from '@instructure/emotion';
9
+ import { jsx } from '@instructure/emotion';
10
10
  import generateStyle from "./styles.js";
11
11
  import generateComponentTheme from "./theme.js";
12
- export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
12
+ import { withStyleOverrides } from '@instructure/quiz-common';
13
+ import t from '@instructure/quiz-i18n/es/format-message';
14
+ export var Page = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
13
15
  _inherits(Page, _Component);
14
16
  var _super = _createSuper(Page);
15
17
  function Page() {
@@ -50,13 +52,14 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
50
52
  tabIndex: "-1",
51
53
  ref: this.props.childrenWrapperRef,
52
54
  role: this.props.contentRole,
53
- css: this.props.styles.childrenWrapper
55
+ css: this.props.styles.childrenWrapper,
56
+ "aria-label": t('Quiz content')
54
57
  }, this.props.children));
55
58
  }
56
59
  }]);
57
60
  Page.displayName = "Page";
58
61
  return Page;
59
- }(Component), _Page.propTypes = {
62
+ }(Component), _Page.displayName = 'Page', _Page.componentId = "Quizzes".concat(_Page.displayName), _Page.propTypes = {
60
63
  children: PropTypes.node.isRequired,
61
64
  childrenWrapperRef: PropTypes.func,
62
65
  contentRole: PropTypes.string,
@@ -68,7 +71,7 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
68
71
  makeStyles: PropTypes.func
69
72
  }, _Page.defaultProps = {
70
73
  childrenWrapperRef: function childrenWrapperRef() {},
71
- contentRole: 'main',
74
+ contentRole: 'region',
72
75
  sidebarComponent: null,
73
76
  sidebarOpen: null,
74
77
  sidebarRole: 'navigation',
@@ -9,12 +9,13 @@ import { Component } from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
  import { IconHamburgerLine } from '@instructure/ui-icons';
11
11
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
12
- import { withStyle, jsx } from '@instructure/emotion';
12
+ import { jsx } from '@instructure/emotion';
13
13
  import t from '@instructure/quiz-i18n/es/format-message';
14
14
  import generateStyle from "./styles.js";
15
15
  import generateComponentTheme from "./theme.js";
16
+ import { withStyleOverrides } from '@instructure/quiz-common';
16
17
  var _ref = jsx(IconHamburgerLine, null);
17
- export var HeaderMenuButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_HeaderMenuButton = /*#__PURE__*/function (_Component) {
18
+ export var HeaderMenuButton = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_HeaderMenuButton = /*#__PURE__*/function (_Component) {
18
19
  _inherits(HeaderMenuButton, _Component);
19
20
  var _super = _createSuper(HeaderMenuButton);
20
21
  function HeaderMenuButton() {
@@ -52,7 +53,7 @@ export var HeaderMenuButton = (_dec = withStyle(generateStyle, generateComponent
52
53
  }]);
53
54
  HeaderMenuButton.displayName = "HeaderMenuButton";
54
55
  return HeaderMenuButton;
55
- }(Component), _HeaderMenuButton.propTypes = {
56
+ }(Component), _HeaderMenuButton.displayName = 'HeaderMenuButton', _HeaderMenuButton.componentId = "Quizzes".concat(_HeaderMenuButton.displayName), _HeaderMenuButton.propTypes = {
56
57
  sidebarMenuClick: PropTypes.func.isRequired,
57
58
  hidden: PropTypes.bool.isRequired,
58
59
  sidebarOpen: PropTypes.bool.isRequired,
@@ -13,15 +13,16 @@ import * as platform from 'platform';
13
13
  import { Button } from '@instructure/ui-buttons';
14
14
  import { TopNavBar } from '@instructure/ui-top-nav-bar';
15
15
  import { View } from '@instructure/ui-view';
16
- import { withStyle, jsx } from '@instructure/emotion';
16
+ import { jsx } from '@instructure/emotion';
17
17
  import FormattedDuration from "../../../shared/FormattedDuration/index.js";
18
18
  import { formatTime } from "../../../../util/formatTimespan.js";
19
19
  import generateStyle from "./styles.js";
20
20
  import generateComponentTheme from "./theme.js";
21
21
  import t from '@instructure/quiz-i18n/es/format-message';
22
+ import { withStyleOverrides } from '@instructure/quiz-common';
22
23
  var _ref = jsx(IconClockLine, null);
23
24
  var _ref2 = jsx(IconClockSolid, null);
24
- export var Timer = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Timer = /*#__PURE__*/function (_Component) {
25
+ export var Timer = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Timer = /*#__PURE__*/function (_Component) {
25
26
  _inherits(Timer, _Component);
26
27
  var _super = _createSuper(Timer);
27
28
  function Timer() {
@@ -168,7 +169,7 @@ export var Timer = (_dec = withStyle(generateStyle, generateComponentTheme), _de
168
169
  }]);
169
170
  Timer.displayName = "Timer";
170
171
  return Timer;
171
- }(Component), _Timer.propTypes = {
172
+ }(Component), _Timer.displayName = 'Timer', _Timer.componentId = "Quizzes".concat(_Timer.displayName), _Timer.propTypes = {
172
173
  screenreaderNotification: PropTypes.func.isRequired,
173
174
  showTimer: PropTypes.bool.isRequired,
174
175
  timeLeftInSeconds: PropTypes.number,
@@ -7,11 +7,12 @@ var _dec, _class, _SecondaryNavBarButton;
7
7
  import { Component } from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import { TopNavBar } from '@instructure/ui-top-nav-bar';
10
- import { InstUISettingsProvider, withStyle, jsx } from '@instructure/emotion';
10
+ import { InstUISettingsProvider, jsx } from '@instructure/emotion';
11
11
  import { omitProps } from '@instructure/ui-react-utils';
12
12
  import generateStyle from "./styles.js";
13
13
  import generateComponentTheme from "./theme.js";
14
- export var SecondaryNavBarButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
14
+ import { withStyleOverrides } from '@instructure/quiz-common';
15
+ export var SecondaryNavBarButton = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
15
16
  _inherits(SecondaryNavBarButton, _Component);
16
17
  var _super = _createSuper(SecondaryNavBarButton);
17
18
  function SecondaryNavBarButton() {
@@ -47,7 +48,7 @@ export var SecondaryNavBarButton = (_dec = withStyle(generateStyle, generateComp
47
48
  }]);
48
49
  SecondaryNavBarButton.displayName = "SecondaryNavBarButton";
49
50
  return SecondaryNavBarButton;
50
- }(Component), _SecondaryNavBarButton.displayName = 'TopNavBarItem', _SecondaryNavBarButton.propTypes = {
51
+ }(Component), _SecondaryNavBarButton.displayName = 'TopNavBarItem', _SecondaryNavBarButton.componentId = "Quizzes".concat(_SecondaryNavBarButton.displayName), _SecondaryNavBarButton.propTypes = {
51
52
  children: PropTypes.string.isRequired,
52
53
  styles: PropTypes.object,
53
54
  makeStyles: PropTypes.func
@@ -10,14 +10,15 @@ import PropTypes from 'prop-types';
10
10
  import { TopNavBar } from '@instructure/ui-top-nav-bar';
11
11
  import { IconQuizLine } from '@instructure/ui-icons';
12
12
  import t from '@instructure/quiz-i18n/es/format-message';
13
- import { withStyle, jsx } from '@instructure/emotion';
13
+ import { jsx } from '@instructure/emotion';
14
14
  import generateStyle from "./styles.js";
15
15
  import generateComponentTheme from "./theme.js";
16
+ import { withStyleOverrides } from '@instructure/quiz-common';
16
17
  var _ref = jsx(IconQuizLine, {
17
18
  color: "primary",
18
19
  size: "small"
19
20
  });
20
- export var NavBar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_NavBar = /*#__PURE__*/function (_Component) {
21
+ export var NavBar = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_NavBar = /*#__PURE__*/function (_Component) {
21
22
  _inherits(NavBar, _Component);
22
23
  var _super = _createSuper(NavBar);
23
24
  function NavBar() {
@@ -100,7 +101,7 @@ export var NavBar = (_dec = withStyle(generateStyle, generateComponentTheme), _d
100
101
  }]);
101
102
  NavBar.displayName = "NavBar";
102
103
  return NavBar;
103
- }(Component), _NavBar.propTypes = {
104
+ }(Component), _NavBar.displayName = 'NavBar', _NavBar.componentId = "Quizzes".concat(_NavBar.displayName), _NavBar.propTypes = {
104
105
  menuItems: PropTypes.arrayOf(PropTypes.shape({
105
106
  path: PropTypes.string.isRequired,
106
107
  text: PropTypes.string.isRequired
@@ -7,11 +7,12 @@ var _dec, _class, _PositionSummary;
7
7
  /** @jsx jsx */
8
8
  import { Component } from 'react';
9
9
  import PropTypes from 'prop-types';
10
- import { withStyle, jsx } from '@instructure/emotion';
10
+ import { jsx } from '@instructure/emotion';
11
11
  import generateStyle from "./styles.js";
12
12
  import generateComponentTheme from "./theme.js";
13
13
  import t from '@instructure/quiz-i18n/es/format-message';
14
- export var PositionSummary = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_PositionSummary = /*#__PURE__*/function (_Component) {
14
+ import { withStyleOverrides } from '@instructure/quiz-common';
15
+ export var PositionSummary = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_PositionSummary = /*#__PURE__*/function (_Component) {
15
16
  _inherits(PositionSummary, _Component);
16
17
  var _super = _createSuper(PositionSummary);
17
18
  function PositionSummary() {
@@ -38,7 +39,7 @@ export var PositionSummary = (_dec = withStyle(generateStyle, generateComponentT
38
39
  }]);
39
40
  PositionSummary.displayName = "PositionSummary";
40
41
  return PositionSummary;
41
- }(Component), _PositionSummary.propTypes = {
42
+ }(Component), _PositionSummary.displayName = 'PositionSummary', _PositionSummary.componentId = "Quizzes".concat(_PositionSummary.displayName), _PositionSummary.propTypes = {
42
43
  firstPosition: PropTypes.number.isRequired,
43
44
  lastPosition: PropTypes.number.isRequired,
44
45
  styles: PropTypes.object