@instructure/quiz-core 22.11.0 → 22.11.1-rc.88

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 (365) hide show
  1. package/es/banks/api/bankEntries.js +1 -1
  2. package/es/banks/api/banks.js +1 -1
  3. package/es/banks/api/copyingBanksPoller.js +1 -1
  4. package/es/banks/api/tagAssociations.js +1 -1
  5. package/es/banks/components/AddBankEntryModal/presenter.js +1 -1
  6. package/es/banks/components/AddToBankModal/presenter.js +1 -1
  7. package/es/banks/components/AsyncSearch/index.js +1 -1
  8. package/es/banks/components/Bank/presenter.js +1 -1
  9. package/es/banks/components/BankEntry/presenter.js +1 -1
  10. package/es/banks/components/BankEntryRow/presenter.js +1 -1
  11. package/es/banks/components/BankSearch/presenter.js +1 -1
  12. package/es/banks/components/Banks/presenter.js +1 -1
  13. package/es/banks/components/BanksList/presenter.js +1 -1
  14. package/es/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
  15. package/es/banks/components/CreateBankModal/presenter.js +1 -1
  16. package/es/banks/components/EditBankModal/presenter.js +1 -1
  17. package/es/banks/components/HeaderBreadCrumb/index.js +1 -1
  18. package/es/banks/components/HeaderMenu/presenter.js +1 -1
  19. package/es/banks/components/NavWrapper/presenter.js +1 -1
  20. package/es/banks/components/SharingModal/RootAccountSharing.js +1 -1
  21. package/es/banks/components/SharingModal/ShareList/index.js +1 -1
  22. package/es/banks/components/SharingModal/presenter.js +1 -1
  23. package/es/building/api/items.js +1 -1
  24. package/es/building/api/quizEntries.js +3 -3
  25. package/es/building/api/quizzes.js +1 -1
  26. package/es/building/api/stimuli.js +1 -1
  27. package/es/building/components/QTIImportModal/index.js +1 -1
  28. package/es/building/components/layout/Sidebar/presenter.js +1 -1
  29. package/es/building/components/layout/header/BuildingButtons/presenter.js +1 -1
  30. package/es/building/components/resources/AddToBankOptions/index.js +1 -1
  31. package/es/building/components/resources/BanksTray/presenter.js +1 -1
  32. package/es/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
  33. package/es/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
  34. package/es/building/components/resources/MoveImmutableModal/presenter.js +1 -1
  35. package/es/building/components/resources/quiz/editButton/EditButton.js +1 -1
  36. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
  37. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +1 -1
  38. package/es/building/components/resources/quiz/instructions/Show/index.js +1 -1
  39. package/es/building/components/resources/quiz/title/Edit/index.js +1 -1
  40. package/es/building/components/resources/quiz/title/Title/presenter.js +1 -1
  41. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +1 -1
  42. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +1 -1
  43. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +1 -1
  44. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -1
  45. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -1
  46. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +1 -1
  47. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +16 -6
  48. package/es/common/api/helpers.js +1 -1
  49. package/es/common/api/quizSessions.js +1 -1
  50. package/es/common/components/AccessCodeTextInput/index.js +1 -1
  51. package/es/common/components/ConfirmationModal/presenter.js +1 -1
  52. package/es/common/components/ImportModal/ImportFileSelector/index.js +1 -1
  53. package/es/common/components/ImportModal/presenter.js +1 -1
  54. package/es/common/components/Pin/presenter.js +1 -1
  55. package/es/common/components/PreviewFrame/index.js +1 -1
  56. package/es/common/components/PrintFontSizeModal/presenter.js +1 -1
  57. package/es/common/components/RceConfigProvider/rceConfigErrorMessages.js +1 -1
  58. package/es/common/components/SDKApp/index.js +1 -1
  59. package/es/common/components/alerts/presenter.js +1 -1
  60. package/es/common/components/layout/Page/index.js +1 -1
  61. package/es/common/components/layout/header/Calculator/presenter.js +1 -1
  62. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +1 -1
  63. package/es/common/components/layout/header/Timer/presenter.js +1 -1
  64. package/es/common/components/layout/navbar/index.js +1 -1
  65. package/es/common/components/layout/sidebar/PositionSummary/index.js +1 -1
  66. package/es/common/components/layout/sidebar/Sidebar/Pin.js +1 -1
  67. package/es/common/components/layout/sidebar/Sidebar/index.js +1 -1
  68. package/es/common/components/layout/sidebar/SidebarItem/index.js +1 -1
  69. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +1 -1
  70. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +1 -1
  71. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +1 -1
  72. package/es/common/components/layout/sidebar/Stimulus/presenter.js +1 -1
  73. package/es/common/components/resources/BankSelection/presenter.js +1 -1
  74. package/es/common/components/resources/WarningWrapper/index.js +1 -1
  75. package/es/common/components/resources/entry/EntrySave/presenter.js +1 -1
  76. package/es/common/components/resources/item/ItemEdit/presenter.js +1 -1
  77. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +11 -5
  78. package/es/common/components/resources/quiz/AddContent/Button/index.js +1 -1
  79. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +61 -73
  80. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -0
  81. package/es/common/components/resources/quizSessionResult/Header/index.js +1 -1
  82. package/es/common/components/resources/quizSessionResult/Info/index.js +1 -1
  83. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +1 -1
  84. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
  85. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +1 -1
  86. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
  87. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +1 -1
  88. package/es/common/components/resources/stimulus/StimulusShow/index.js +1 -1
  89. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -1
  90. package/es/common/components/shared/FormattedDuration/index.js +1 -1
  91. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -1
  92. package/es/common/components/shared/InteractionTypes/presenter.js +1 -1
  93. package/es/common/components/shared/Paginator/index.js +1 -1
  94. package/es/common/components/shared/PrintTrigger/presenter.js +1 -1
  95. package/es/common/components/shared/TagDisplay/index.js +1 -1
  96. package/es/common/components/shared/TagSelect/presenter.js +1 -1
  97. package/es/common/components/shared/TagWrapper/presenter.js +1 -1
  98. package/es/common/components/shared/TimeUnitsInput/index.js +1 -1
  99. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +1 -1
  100. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +1 -1
  101. package/es/common/components/shared/return_button/ReturnButton.js +1 -1
  102. package/es/common/components/shared/spinner/Spinner.js +1 -1
  103. package/es/common/middleware/sharedBanksMiddleware.js +1 -1
  104. package/es/common/records/Bank.js +1 -1
  105. package/es/common/records/Item.js +1 -1
  106. package/es/common/records/Quiz.js +1 -1
  107. package/es/common/records/QuizAnalysis.js +1 -1
  108. package/es/common/records/QuizEntry.js +1 -1
  109. package/es/common/records/Stimulus.js +1 -1
  110. package/es/common/util/Fetcher.js +1 -1
  111. package/es/common/util/TimerService.js +1 -1
  112. package/es/common/util/formatTimespan.js +1 -1
  113. package/es/common/util/interactionTypeMetadata.js +1 -1
  114. package/es/common/util/interactionTypePropsHelper.js +1 -1
  115. package/es/common/util/maxContent.js +1 -1
  116. package/es/common/util/useRemoteComponent.js +1 -1
  117. package/es/common/util/warningHelpers.js +1 -1
  118. package/es/common/util/withDynamoPagination.js +13 -2
  119. package/es/grading/api/quizEntryRegrades.js +1 -1
  120. package/es/index.js +2 -1
  121. package/es/moderating/api/quizSessionEvents.js +4 -2
  122. package/es/moderating/components/events/PageBlurredEvent.js +1 -1
  123. package/es/moderating/components/events/PageFocusedEvent.js +1 -1
  124. package/es/moderating/components/events/ResponseEvent.js +1 -1
  125. package/es/moderating/components/events/SessionStartEvent.js +1 -1
  126. package/es/moderating/components/events/SessionSubmitEvent.js +1 -1
  127. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -1
  128. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +1 -1
  129. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -1
  130. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +1 -1
  131. package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -1
  132. package/es/moderating/components/resources/AccommodationsModal/index.js +1 -1
  133. package/es/moderating/components/resources/ElapsedTime.js +1 -1
  134. package/es/moderating/components/resources/EventDetails.js +1 -1
  135. package/es/moderating/components/resources/ModerateTable/presenter.js +1 -1
  136. package/es/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
  137. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
  138. package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +1 -1
  139. package/es/moderating/components/resources/util/renderEventSummary.js +1 -1
  140. package/es/moderating/components/sidebar/ModerateTray/presenter.js +1 -1
  141. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -1
  142. package/es/reporting/components/MetricsListItem/index.js +1 -1
  143. package/es/reporting/components/charts/CentileDistribution/presenter.js +1 -1
  144. package/es/reporting/components/charts/Distribution/presenter.js +1 -1
  145. package/es/reporting/components/charts/QuintileDistribution/presenter.js +1 -1
  146. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +1 -1
  147. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
  148. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
  149. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +1 -1
  150. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +1 -1
  151. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -1
  152. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -1
  153. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -1
  154. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -1
  155. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
  156. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -1
  157. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -1
  158. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +1 -1
  159. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +1 -1
  160. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +1 -1
  161. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -1
  162. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -1
  163. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -1
  164. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -1
  165. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  166. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +1 -1
  167. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +1 -1
  168. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -1
  169. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +1 -1
  170. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
  171. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
  172. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +1 -3
  173. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -1
  174. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  175. package/es/reporting/components/resources/ReportCard/index.js +1 -1
  176. package/es/reporting/components/resources/ReportList/index.js +1 -1
  177. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
  178. package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
  179. package/es/reporting/components/resources/common/ExportButton/index.js +1 -1
  180. package/es/reporting/components/resources/common/errorMessages.js +1 -1
  181. package/es/reporting/components/resources/common/utils.js +1 -1
  182. package/es/taking/api/taking.js +1 -1
  183. package/lib/banks/api/bankEntries.js +1 -1
  184. package/lib/banks/api/banks.js +1 -1
  185. package/lib/banks/api/copyingBanksPoller.js +1 -1
  186. package/lib/banks/api/tagAssociations.js +1 -1
  187. package/lib/banks/components/AddBankEntryModal/presenter.js +1 -1
  188. package/lib/banks/components/AddToBankModal/presenter.js +1 -1
  189. package/lib/banks/components/AsyncSearch/index.js +1 -1
  190. package/lib/banks/components/Bank/presenter.js +1 -1
  191. package/lib/banks/components/BankEntry/presenter.js +1 -1
  192. package/lib/banks/components/BankEntryRow/presenter.js +1 -1
  193. package/lib/banks/components/BankSearch/presenter.js +1 -1
  194. package/lib/banks/components/Banks/presenter.js +1 -1
  195. package/lib/banks/components/BanksList/presenter.js +1 -1
  196. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
  197. package/lib/banks/components/CreateBankModal/presenter.js +1 -1
  198. package/lib/banks/components/EditBankModal/presenter.js +1 -1
  199. package/lib/banks/components/HeaderBreadCrumb/index.js +1 -1
  200. package/lib/banks/components/HeaderMenu/presenter.js +1 -1
  201. package/lib/banks/components/NavWrapper/presenter.js +1 -1
  202. package/lib/banks/components/SharingModal/RootAccountSharing.js +1 -1
  203. package/lib/banks/components/SharingModal/ShareList/index.js +1 -1
  204. package/lib/banks/components/SharingModal/presenter.js +1 -1
  205. package/lib/building/api/items.js +1 -1
  206. package/lib/building/api/quizEntries.js +3 -3
  207. package/lib/building/api/quizzes.js +2 -2
  208. package/lib/building/api/stimuli.js +1 -1
  209. package/lib/building/components/QTIImportModal/index.js +1 -1
  210. package/lib/building/components/layout/Sidebar/presenter.js +1 -1
  211. package/lib/building/components/layout/header/BuildingButtons/presenter.js +1 -1
  212. package/lib/building/components/resources/AddToBankOptions/index.js +1 -1
  213. package/lib/building/components/resources/BanksTray/presenter.js +1 -1
  214. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
  215. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
  216. package/lib/building/components/resources/MoveImmutableModal/presenter.js +1 -1
  217. package/lib/building/components/resources/quiz/editButton/EditButton.js +1 -1
  218. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
  219. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +1 -1
  220. package/lib/building/components/resources/quiz/instructions/Show/index.js +1 -1
  221. package/lib/building/components/resources/quiz/title/Edit/index.js +1 -1
  222. package/lib/building/components/resources/quiz/title/Title/presenter.js +1 -1
  223. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +1 -1
  224. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +1 -1
  225. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +1 -1
  226. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -1
  227. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -1
  228. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +1 -1
  229. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +15 -5
  230. package/lib/common/api/helpers.js +1 -1
  231. package/lib/common/api/quizSessions.js +1 -1
  232. package/lib/common/components/AccessCodeTextInput/index.js +1 -1
  233. package/lib/common/components/ConfirmationModal/presenter.js +1 -1
  234. package/lib/common/components/ImportModal/ImportFileSelector/index.js +1 -1
  235. package/lib/common/components/ImportModal/presenter.js +1 -1
  236. package/lib/common/components/Pin/presenter.js +1 -1
  237. package/lib/common/components/PreviewFrame/index.js +1 -1
  238. package/lib/common/components/PrintFontSizeModal/presenter.js +1 -1
  239. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +1 -1
  240. package/lib/common/components/SDKApp/index.js +2 -2
  241. package/lib/common/components/alerts/presenter.js +1 -1
  242. package/lib/common/components/layout/Page/index.js +1 -1
  243. package/lib/common/components/layout/header/Calculator/presenter.js +1 -1
  244. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +1 -1
  245. package/lib/common/components/layout/header/Timer/presenter.js +1 -1
  246. package/lib/common/components/layout/navbar/index.js +1 -1
  247. package/lib/common/components/layout/sidebar/PositionSummary/index.js +1 -1
  248. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +1 -1
  249. package/lib/common/components/layout/sidebar/Sidebar/index.js +1 -1
  250. package/lib/common/components/layout/sidebar/SidebarItem/index.js +1 -1
  251. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +1 -1
  252. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +1 -1
  253. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +1 -1
  254. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +1 -1
  255. package/lib/common/components/resources/BankSelection/presenter.js +1 -1
  256. package/lib/common/components/resources/WarningWrapper/index.js +1 -1
  257. package/lib/common/components/resources/entry/EntrySave/presenter.js +1 -1
  258. package/lib/common/components/resources/item/ItemEdit/presenter.js +1 -1
  259. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +11 -5
  260. package/lib/common/components/resources/quiz/AddContent/Button/index.js +1 -1
  261. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +61 -75
  262. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -0
  263. package/lib/common/components/resources/quizSessionResult/Header/index.js +1 -1
  264. package/lib/common/components/resources/quizSessionResult/Info/index.js +1 -1
  265. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +1 -1
  266. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
  267. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +1 -1
  268. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
  269. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +1 -1
  270. package/lib/common/components/resources/stimulus/StimulusShow/index.js +1 -1
  271. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -1
  272. package/lib/common/components/shared/FormattedDuration/index.js +1 -1
  273. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -1
  274. package/lib/common/components/shared/InteractionTypes/presenter.js +1 -1
  275. package/lib/common/components/shared/Paginator/index.js +1 -1
  276. package/lib/common/components/shared/PrintTrigger/presenter.js +1 -1
  277. package/lib/common/components/shared/TagDisplay/index.js +1 -1
  278. package/lib/common/components/shared/TagSelect/presenter.js +1 -1
  279. package/lib/common/components/shared/TagWrapper/presenter.js +1 -1
  280. package/lib/common/components/shared/TimeUnitsInput/index.js +1 -1
  281. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +1 -1
  282. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +1 -1
  283. package/lib/common/components/shared/return_button/ReturnButton.js +1 -1
  284. package/lib/common/components/shared/spinner/Spinner.js +1 -1
  285. package/lib/common/middleware/sharedBanksMiddleware.js +1 -1
  286. package/lib/common/records/Bank.js +1 -1
  287. package/lib/common/records/Item.js +1 -1
  288. package/lib/common/records/Quiz.js +1 -1
  289. package/lib/common/records/QuizAnalysis.js +1 -1
  290. package/lib/common/records/QuizEntry.js +1 -1
  291. package/lib/common/records/Stimulus.js +1 -1
  292. package/lib/common/util/Fetcher.js +1 -1
  293. package/lib/common/util/TimerService.js +1 -1
  294. package/lib/common/util/formatTimespan.js +1 -1
  295. package/lib/common/util/interactionTypeMetadata.js +1 -1
  296. package/lib/common/util/interactionTypePropsHelper.js +1 -1
  297. package/lib/common/util/maxContent.js +1 -1
  298. package/lib/common/util/useRemoteComponent.js +1 -1
  299. package/lib/common/util/warningHelpers.js +1 -1
  300. package/lib/common/util/withDynamoPagination.js +13 -2
  301. package/lib/grading/api/quizEntryRegrades.js +1 -1
  302. package/lib/index.js +15 -0
  303. package/lib/moderating/api/quizSessionEvents.js +4 -2
  304. package/lib/moderating/components/events/PageBlurredEvent.js +1 -1
  305. package/lib/moderating/components/events/PageFocusedEvent.js +1 -1
  306. package/lib/moderating/components/events/ResponseEvent.js +1 -1
  307. package/lib/moderating/components/events/SessionStartEvent.js +1 -1
  308. package/lib/moderating/components/events/SessionSubmitEvent.js +1 -1
  309. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -1
  310. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +1 -1
  311. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -1
  312. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +1 -1
  313. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -1
  314. package/lib/moderating/components/resources/AccommodationsModal/index.js +1 -1
  315. package/lib/moderating/components/resources/ElapsedTime.js +1 -1
  316. package/lib/moderating/components/resources/EventDetails.js +1 -1
  317. package/lib/moderating/components/resources/ModerateTable/presenter.js +1 -1
  318. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
  319. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
  320. package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +1 -1
  321. package/lib/moderating/components/resources/util/renderEventSummary.js +1 -1
  322. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +1 -1
  323. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -1
  324. package/lib/reporting/components/MetricsListItem/index.js +1 -1
  325. package/lib/reporting/components/charts/CentileDistribution/presenter.js +1 -1
  326. package/lib/reporting/components/charts/Distribution/presenter.js +1 -1
  327. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +1 -1
  328. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +1 -1
  329. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
  330. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
  331. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +1 -1
  332. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +1 -1
  333. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -1
  334. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -1
  335. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -1
  336. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -1
  337. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
  338. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -1
  339. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -1
  340. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +1 -1
  341. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +1 -1
  342. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +1 -1
  343. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -1
  344. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -1
  345. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -1
  346. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -1
  347. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  348. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +1 -1
  349. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +1 -1
  350. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -1
  351. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +1 -1
  352. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
  353. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
  354. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +1 -3
  355. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -1
  356. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  357. package/lib/reporting/components/resources/ReportCard/index.js +1 -1
  358. package/lib/reporting/components/resources/ReportList/index.js +1 -1
  359. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
  360. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
  361. package/lib/reporting/components/resources/common/ExportButton/index.js +1 -1
  362. package/lib/reporting/components/resources/common/errorMessages.js +1 -1
  363. package/lib/reporting/components/resources/common/utils.js +1 -1
  364. package/lib/taking/api/taking.js +1 -1
  365. package/package.json +40 -32
@@ -35,7 +35,7 @@ import { ImportantModal, ModalHeader, ModalBody, ModalFooter, FILE_UPLOAD_SELECT
35
35
  import generateStyle from './styles';
36
36
  import generateComponentTheme from './theme';
37
37
  import ImportFileSelector from './ImportFileSelector';
38
- import t from '@instructure/quiz-i18n/es/format-message';
38
+ import t from '@instructure/quiz-i18n/format-message';
39
39
  export var ImportModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ImportModal = /*#__PURE__*/function (_Component) {
40
40
  function ImportModal() {
41
41
  var _this2;
@@ -22,7 +22,7 @@ import React, { Component } from 'react';
22
22
  import PropTypes from 'prop-types';
23
23
  import { IconButton } from '@instructure/ui-buttons';
24
24
  import { IconPinLine, IconPinSolid } from '@instructure/ui-icons';
25
- import t from '@instructure/quiz-i18n/es/format-message';
25
+ import t from '@instructure/quiz-i18n/format-message';
26
26
  export var Pin = /*#__PURE__*/function (_Component) {
27
27
  function Pin() {
28
28
  var _this2;
@@ -24,7 +24,7 @@ import { BarneyBox } from '@instructure/quiz-common';
24
24
  import { Heading } from '@instructure/ui-heading';
25
25
  import { IconEyeSolid } from '@instructure/ui-icons';
26
26
  import { Button } from '@instructure/ui-buttons';
27
- import t from '@instructure/quiz-i18n/es/format-message';
27
+ import t from '@instructure/quiz-i18n/format-message';
28
28
  export var PreviewFrame = /*#__PURE__*/function (_Component) {
29
29
  function PreviewFrame() {
30
30
  _classCallCheck(this, PreviewFrame);
@@ -28,7 +28,7 @@ import { Button, CloseButton } from '@instructure/ui-buttons';
28
28
  import { jsx } from '@instructure/emotion';
29
29
  import generateStyle from './styles';
30
30
  import generateComponentTheme from './theme';
31
- import t from '@instructure/quiz-i18n/es/format-message';
31
+ import t from '@instructure/quiz-i18n/format-message';
32
32
  import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
33
33
  import { Checkbox } from '@instructure/ui-checkbox';
34
34
  export var PrintFontSizeModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_PrintFontSizeModal = /*#__PURE__*/function (_Component) {
@@ -1,4 +1,4 @@
1
- import t from '@instructure/quiz-i18n/es/format-message';
1
+ import t from '@instructure/quiz-i18n/format-message';
2
2
  import { extractTextFromHtml } from '@instructure/quiz-interactions';
3
3
  export var quizLogMsgErrorDuringTaking = function quizLogMsgErrorDuringTaking(stem) {
4
4
  var normalizedStem = stem !== null && stem !== void 0 ? stem : 'Unknown stem';
@@ -41,7 +41,7 @@ import { renderAlerts } from '../../util/renderAlerts';
41
41
  import generateStyle from './styles';
42
42
  import CustomPropTypes from '../../../common/util/CustomPropTypes';
43
43
  import ConfirmationModal from '../ConfirmationModal';
44
- import setupFormatMessage from '@instructure/quiz-i18n/es/util/setupFormatMessage';
44
+ import { setupFormatMessage } from '@instructure/quiz-i18n';
45
45
  import RceConfigProvider from '../RceConfigProvider';
46
46
  import { ApiFeatureFlagInitializer } from '../ApiFeatureFlagInitializer';
47
47
  export var SDKApp = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_SDKApp = /*#__PURE__*/function (_Component) {
@@ -27,7 +27,7 @@ import partial from 'lodash/partial';
27
27
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
28
28
  import { Alert } from '@instructure/ui-alerts';
29
29
  import { jsx } from '@instructure/emotion';
30
- import t from '@instructure/quiz-i18n/es/format-message';
30
+ import t from '@instructure/quiz-i18n/format-message';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
33
33
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -26,7 +26,7 @@ import { jsx } from '@instructure/emotion';
26
26
  import generateStyle from './styles';
27
27
  import generateComponentTheme from './theme';
28
28
  import { withStyleOverrides } from '@instructure/quiz-common';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  export var Page = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
31
31
  function Page() {
32
32
  _classCallCheck(this, Page);
@@ -20,7 +20,7 @@ function _callSuper(_this, derived, args) {
20
20
  }
21
21
  import React, { Component } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import t from '@instructure/quiz-i18n/es/format-message';
23
+ import t from '@instructure/quiz-i18n/format-message';
24
24
  import { Button } from '@instructure/ui-buttons';
25
25
  import { TopNavBar } from '@instructure/ui-top-nav-bar';
26
26
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
25
25
  import { IconHamburgerLine } from '@instructure/ui-icons';
26
26
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
27
27
  import { jsx } from '@instructure/emotion';
28
- import t from '@instructure/quiz-i18n/es/format-message';
28
+ import t from '@instructure/quiz-i18n/format-message';
29
29
  import generateStyle from './styles';
30
30
  import generateComponentTheme from './theme';
31
31
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -34,7 +34,7 @@ import FormattedDuration from '../../../shared/FormattedDuration';
34
34
  import { formatTime } from '../../../../util/formatTimespan';
35
35
  import generateStyle from './styles';
36
36
  import generateComponentTheme from './theme';
37
- import t from '@instructure/quiz-i18n/es/format-message';
37
+ import t from '@instructure/quiz-i18n/format-message';
38
38
  import { withStyleOverrides } from '@instructure/quiz-common';
39
39
  export var Timer = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Timer = /*#__PURE__*/function (_Component) {
40
40
  function Timer() {
@@ -27,7 +27,7 @@ import { Component } from 'react';
27
27
  import PropTypes from 'prop-types';
28
28
  import { TopNavBar } from '@instructure/ui-top-nav-bar';
29
29
  import { IconQuizLine } from '@instructure/ui-icons';
30
- import t from '@instructure/quiz-i18n/es/format-message';
30
+ import t from '@instructure/quiz-i18n/format-message';
31
31
  import { jsx } from '@instructure/emotion';
32
32
  import generateStyle from './styles';
33
33
  import generateComponentTheme from './theme';
@@ -27,7 +27,7 @@ import PropTypes from 'prop-types';
27
27
  import { jsx } from '@instructure/emotion';
28
28
  import generateStyle from './styles';
29
29
  import generateComponentTheme from './theme';
30
- import t from '@instructure/quiz-i18n/es/format-message';
30
+ import t from '@instructure/quiz-i18n/format-message';
31
31
  import { withStyleOverrides } from '@instructure/quiz-common';
32
32
  export var PositionSummary = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_PositionSummary = /*#__PURE__*/function (_Component) {
33
33
  function PositionSummary() {
@@ -20,7 +20,7 @@ function _callSuper(_this, derived, args) {
20
20
  }
21
21
  import React, { Component } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import t from '@instructure/quiz-i18n/es/format-message';
23
+ import t from '@instructure/quiz-i18n/format-message';
24
24
  import { Link } from '@instructure/ui-link';
25
25
 
26
26
  // Component exists to prevent the recreation of the scroll function with each render,
@@ -35,7 +35,7 @@ import { Text } from '@instructure/ui-text';
35
35
  import { View } from '@instructure/ui-view';
36
36
  import { jsx, Global } from '@instructure/emotion';
37
37
  import { Heading } from '@instructure/ui-heading';
38
- import t from '@instructure/quiz-i18n/es/format-message';
38
+ import t from '@instructure/quiz-i18n/format-message';
39
39
  import { Tooltip } from '@instructure/ui-tooltip';
40
40
  import { INSTRUCTIONS_SCROLL_KEY, RESULTS_SCROLL_KEY, SIDEBAR_NAV_ID, TITLE_SCROLL_KEY, END_EDITING_TRIGGER_CLASSNAME, withStyleOverrides } from '@instructure/quiz-common';
41
41
  import { onPhone } from '../../../../util/windowChecks';
@@ -4,7 +4,7 @@ import { fileUploading } from '../../../../selectors/calls';
4
4
  import { connect } from '../../../../react-redux';
5
5
  import { SidebarItem as SidebarItemPresenter } from './presenter';
6
6
  import { scrollToItem as scrollToItemAction } from '../../../../actions/scrolling';
7
- import t from '@instructure/quiz-i18n/es/format-message';
7
+ import t from '@instructure/quiz-i18n/format-message';
8
8
  export var mapStateToProps = function mapStateToProps(state, props) {
9
9
  var displayPosition = props.quizEntry ? props.quizEntry.positionToDisplay(props.position) : t('{position, number}', {
10
10
  position: props.position
@@ -26,7 +26,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
26
26
  import { Link } from '@instructure/ui-link';
27
27
  import { jsx } from '@instructure/emotion';
28
28
  import PositionSummary from '../PositionSummary';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  import { RichContentRenderer } from '@instructure/quiz-rce';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
@@ -29,7 +29,7 @@ import { IconButton } from '@instructure/ui-buttons';
29
29
  import { jsx } from '@instructure/emotion';
30
30
  import PositionSummary from '../../PositionSummary';
31
31
  import { DISPLAY_AS_SUMMARY_LIMIT } from '../presenter';
32
- import t from '@instructure/quiz-i18n/es/format-message';
32
+ import t from '@instructure/quiz-i18n/format-message';
33
33
  import generateStyle from './styles';
34
34
  import generateComponentTheme from './theme';
35
35
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -27,7 +27,7 @@ import { jsx } from '@instructure/emotion';
27
27
  import { DISPLAY_AS_SUMMARY_LIMIT } from '../presenter';
28
28
  import generateStyle from './styles';
29
29
  import generateComponentTheme from './theme';
30
- import t from '@instructure/quiz-i18n/es/format-message';
30
+ import t from '@instructure/quiz-i18n/format-message';
31
31
  import { withStyleOverrides } from '@instructure/quiz-common';
32
32
  export var Summary = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Summary = /*#__PURE__*/function (_Component) {
33
33
  function Summary() {
@@ -31,7 +31,7 @@ import Title from './Title';
31
31
  import Summary from './Summary';
32
32
  import generateStyle from './styles';
33
33
  import generateComponentTheme from './theme';
34
- import t from '@instructure/quiz-i18n/es/format-message';
34
+ import t from '@instructure/quiz-i18n/format-message';
35
35
  import { Flex, END_EDITING_TRIGGER_CLASSNAME, withStyleOverrides } from '@instructure/quiz-common';
36
36
  import { Tooltip } from '@instructure/ui-tooltip';
37
37
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
@@ -24,7 +24,7 @@ function _callSuper(_this, derived, args) {
24
24
  import React, { Component } from 'react';
25
25
  import PropTypes from 'prop-types';
26
26
  import ImmutablePropTypes from 'react-immutable-proptypes';
27
- import t from '@instructure/quiz-i18n/es/format-message';
27
+ import t from '@instructure/quiz-i18n/format-message';
28
28
  import { toErrors } from '../../../util/instUIMessages';
29
29
  import { simpleFetchBanks } from '../../../../banks/api/banks';
30
30
  import { GenericAsyncSearch } from '../../shared/GenericAsyncSearch/GenericAsyncSearch';
@@ -26,7 +26,7 @@ import { Alert } from '@instructure/ui-alerts';
26
26
  import { Button } from '@instructure/ui-buttons';
27
27
  import { Text } from '@instructure/ui-text';
28
28
  import { jsx } from '@instructure/emotion';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  import generateStyle from './styles';
31
31
  import generateComponentTheme from './theme';
32
32
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -26,7 +26,7 @@ import ReactDOM from 'react-dom';
26
26
  import { Button } from '@instructure/ui-buttons';
27
27
  import { View } from '@instructure/ui-view';
28
28
  import { API_INPUT_VALIDATION_ERROR } from '@instructure/quiz-common';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  import noop from '../../../../util/noop';
31
31
  export var EntrySave = /*#__PURE__*/function (_Component) {
32
32
  function EntrySave() {
@@ -27,7 +27,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
27
27
  import CustomPropTypes from '../../../../../common/util/CustomPropTypes';
28
28
  import componentForItem from '../../../../util/componentForItem';
29
29
  import { liveRegion, COMPONENT_EDIT, FormFieldGroup } from '@instructure/quiz-common';
30
- import t from '@instructure/quiz-i18n/es/format-message';
30
+ import t from '@instructure/quiz-i18n/format-message';
31
31
  import { propsForInteractionEdit } from '../../../../util/interactionTypePropsHelper';
32
32
  import { toErrors } from '../../../../util/instUIMessages';
33
33
  export var ItemEdit = /*#__PURE__*/function (_Component) {
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@instructure/emotion';
3
3
  import { BUILD_TRAY_OPEN, BUILD_TRAY_POSITION, BUILD_TRAY_STIMULUS_ID, withStyleOverrides } from '@instructure/quiz-common';
4
- import t from '@instructure/quiz-i18n/es/format-message';
4
+ import t from '@instructure/quiz-i18n/format-message';
5
5
  import { Button, IconButton } from '@instructure/ui-buttons';
6
6
  import { Grid } from '@instructure/ui-grid';
7
7
  import { IconAiSolid, IconBankLine } from '@instructure/ui-icons';
@@ -36,7 +36,9 @@ function UnstyledAddContentBody(_ref) {
36
36
  stimulusId = _ref.stimulusId,
37
37
  styles = _ref.styles,
38
38
  _ref$slotProps = _ref.slotProps,
39
- slotProps = _ref$slotProps === void 0 ? {} : _ref$slotProps;
39
+ slotProps = _ref$slotProps === void 0 ? {} : _ref$slotProps,
40
+ _ref$containerType = _ref.containerType,
41
+ containerType = _ref$containerType === void 0 ? 'popover' : _ref$containerType;
40
42
  var openBankTray = useCallback(function () {
41
43
  onOpenBankTray();
42
44
  setUi(BUILD_TRAY_OPEN, true);
@@ -100,13 +102,17 @@ function UnstyledAddContentBody(_ref) {
100
102
  width: "auto"
101
103
  }, renderBankButton())))), ((_slotProps$quizGenera = slotProps.quizGenerationButton) === null || _slotProps$quizGenera === void 0 ? void 0 : _slotProps$quizGenera.visible) && jsx(View, {
102
104
  as: "div",
103
- padding: "x-small 0 small"
105
+ maxWidth: containerType === 'modal' ? '100%' : '50%',
106
+ padding: containerType === 'modal' ? 'x-small 0 small' : 'x-small x-small small 0'
104
107
  }, jsx(Button, {
105
- color: "ai-primary",
108
+ size: "small",
106
109
  display: "block",
110
+ color: "ai-primary",
111
+ textAlign: "start",
107
112
  renderIcon: IconAiSolid,
108
113
  onClick: (_slotProps$quizGenera2 = slotProps.quizGenerationButton) === null || _slotProps$quizGenera2 === void 0 ? void 0 : _slotProps$quizGenera2.onClick,
109
- disabled: (_slotProps$quizGenera3 = slotProps.quizGenerationButton) === null || _slotProps$quizGenera3 === void 0 ? void 0 : _slotProps$quizGenera3.disabled
114
+ disabled: (_slotProps$quizGenera3 = slotProps.quizGenerationButton) === null || _slotProps$quizGenera3 === void 0 ? void 0 : _slotProps$quizGenera3.disabled,
115
+ "data-automation": "sdk-interaction-button-ai"
110
116
  }, t('Generate with AI'))));
111
117
  };
112
118
  return jsx("div", {
@@ -26,7 +26,7 @@ import { IconPlusLine } from '@instructure/ui-icons';
26
26
  import { PresentationContent, ScreenReaderContent } from '@instructure/ui-a11y-content';
27
27
  import { Button } from '@instructure/ui-buttons';
28
28
  import { jsx } from '@instructure/emotion';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  import generateStyle from './styles';
31
31
  import generateComponentTheme from './theme';
32
32
  import { END_EDITING_TRIGGER_CLASSNAME, withStyleOverrides } from '@instructure/quiz-common';
@@ -1,88 +1,76 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
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";
5
- import _inherits from "@babel/runtime/helpers/esm/inherits";
6
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
- function _callSuper(_this, derived, args) {
8
- function isNativeReflectConstruct() {
9
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
10
- if (Reflect.construct.sham) return false;
11
- if (typeof Proxy === "function") return true;
12
- try {
13
- return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
14
- } catch (e) {
15
- return false;
16
- }
17
- }
18
- derived = _getPrototypeOf(derived);
19
- return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
20
- }
21
- import React, { Component } from 'react';
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; }
4
+ import React from 'react';
22
5
  import PropTypes from 'prop-types';
23
6
  import { Button, CloseButton } from '@instructure/ui-buttons';
24
7
  import { Heading } from '@instructure/ui-heading';
25
8
  import { Modal, ModalHeader, ModalBody, ModalFooter } from '@instructure/quiz-common';
26
- import t from '@instructure/quiz-i18n/es/format-message';
9
+ import t from '@instructure/quiz-i18n/format-message';
27
10
  import AddContentBody from '../Body';
28
- export var AddContentModal = /*#__PURE__*/function (_Component) {
29
- function AddContentModal() {
30
- _classCallCheck(this, AddContentModal);
31
- return _callSuper(this, AddContentModal, arguments);
32
- }
33
- _inherits(AddContentModal, _Component);
34
- return _createClass(AddContentModal, [{
35
- key: "cancelButton",
36
- value: function cancelButton() {
37
- return /*#__PURE__*/React.createElement(Button, {
38
- onClick: this.props.closeModal
39
- }, t('Cancel'));
40
- }
41
- }, {
42
- key: "renderContent",
43
- value: function renderContent() {
44
- return /*#__PURE__*/React.createElement(AddContentBody, {
45
- allowStimulusCreation: this.props.allowStimulusCreation,
46
- onOpenBankTray: this.props.closeModal,
47
- onAddItem: this.props.closeModal,
48
- parentEntryId: this.props.parentEntryId,
49
- position: this.props.position,
50
- quizId: this.props.quizId,
51
- showHeaderText: false,
52
- stimulusId: this.props.stimulusId
53
- });
11
+ import { quizGenerationButtonPropTypes } from '../Body/presenter';
12
+ export function AddContentModal(_ref) {
13
+ var allowStimulusCreation = _ref.allowStimulusCreation,
14
+ closeModal = _ref.closeModal,
15
+ modalOpen = _ref.modalOpen,
16
+ _ref$parentEntryId = _ref.parentEntryId,
17
+ parentEntryId = _ref$parentEntryId === void 0 ? void 0 : _ref$parentEntryId,
18
+ position = _ref.position,
19
+ quizId = _ref.quizId,
20
+ _ref$stimulusId = _ref.stimulusId,
21
+ stimulusId = _ref$stimulusId === void 0 ? void 0 : _ref$stimulusId,
22
+ _ref$slotProps = _ref.slotProps,
23
+ slotProps = _ref$slotProps === void 0 ? {} : _ref$slotProps;
24
+ var handleGenerateWithAiClick = function handleGenerateWithAiClick() {
25
+ var _slotProps$quizGenera, _slotProps$quizGenera2;
26
+ slotProps === null || slotProps === void 0 || (_slotProps$quizGenera = slotProps.quizGenerationButton) === null || _slotProps$quizGenera === void 0 || (_slotProps$quizGenera2 = _slotProps$quizGenera.onClick) === null || _slotProps$quizGenera2 === void 0 || _slotProps$quizGenera2.call(_slotProps$quizGenera, position);
27
+ closeModal();
28
+ };
29
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
30
+ open: modalOpen,
31
+ onDismiss: closeModal,
32
+ size: "large",
33
+ label: t('Add Content')
34
+ }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Heading, {
35
+ level: "reset",
36
+ as: "h2"
37
+ }, t('Insert Content')), /*#__PURE__*/React.createElement(CloseButton, {
38
+ onClick: closeModal,
39
+ placement: "end",
40
+ offset: "medium",
41
+ screenReaderLabel: t('Close')
42
+ })), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(AddContentBody, {
43
+ allowStimulusCreation: allowStimulusCreation,
44
+ onOpenBankTray: closeModal,
45
+ onAddItem: closeModal,
46
+ parentEntryId: parentEntryId,
47
+ position: position,
48
+ quizId: quizId,
49
+ showHeaderText: false,
50
+ stimulusId: stimulusId,
51
+ containerType: "modal",
52
+ slotProps: {
53
+ quizGenerationButton: _objectSpread(_objectSpread({}, (slotProps === null || slotProps === void 0 ? void 0 : slotProps.quizGenerationButton) || {}), {}, {
54
+ onClick: handleGenerateWithAiClick
55
+ })
54
56
  }
55
- }, {
56
- key: "render",
57
- value: function render() {
58
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
59
- open: this.props.modalOpen,
60
- onDismiss: this.props.closeModal,
61
- size: "large",
62
- label: t('Add Content')
63
- }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Heading, {
64
- level: "reset",
65
- as: "h2"
66
- }, t('Insert Content')), /*#__PURE__*/React.createElement(CloseButton, {
67
- onClick: this.props.closeModal,
68
- placement: "end",
69
- offset: "medium",
70
- screenReaderLabel: t('Close')
71
- })), /*#__PURE__*/React.createElement(ModalBody, null, this.renderContent()), /*#__PURE__*/React.createElement(ModalFooter, null, this.cancelButton())));
72
- }
73
- }]);
74
- }(Component);
75
- _defineProperty(AddContentModal, "propTypes", {
57
+ })), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
58
+ onClick: closeModal
59
+ }, t('Cancel')))));
60
+ }
61
+ AddContentModal.propTypes = {
76
62
  allowStimulusCreation: PropTypes.bool.isRequired,
77
63
  closeModal: PropTypes.func.isRequired,
78
64
  modalOpen: PropTypes.bool.isRequired,
79
65
  parentEntryId: PropTypes.string,
80
66
  position: PropTypes.number.isRequired,
81
67
  quizId: PropTypes.string.isRequired,
82
- stimulusId: PropTypes.string
83
- });
84
- _defineProperty(AddContentModal, "defaultProps", {
68
+ stimulusId: PropTypes.string,
69
+ slotProps: PropTypes.shape({
70
+ quizGenerationButton: quizGenerationButtonPropTypes
71
+ })
72
+ };
73
+ AddContentModal.defaultProps = {
85
74
  parentEntryId: void 0,
86
75
  stimulusId: void 0
87
- });
88
- export default AddContentModal;
76
+ };
@@ -74,8 +74,10 @@ function UnstyledAddContentPopover(_ref) {
74
74
  });
75
75
  };
76
76
  var renderPopoverButton = function renderPopoverButton() {
77
+ var _slotProps$quizGenera3;
77
78
  return jsx(Popover, {
78
79
  on: "click",
80
+ placement: slotProps !== null && slotProps !== void 0 && (_slotProps$quizGenera3 = slotProps.quizGenerationButton) !== null && _slotProps$quizGenera3 !== void 0 && _slotProps$quizGenera3.visible ? 'end center' : 'bottom center',
79
81
  onShowContent: showContent,
80
82
  onHideContent: hideContent,
81
83
  isShowingContent: isEditing,
@@ -26,7 +26,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
26
26
  import { Heading } from '@instructure/ui-heading';
27
27
  import { Alert } from '@instructure/ui-alerts';
28
28
  import { jsx } from '@instructure/emotion';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  import generateStyle from './styles';
31
31
  import generateComponentTheme from './theme';
32
32
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -30,7 +30,7 @@ import { ProgressCircle } from '@instructure/ui-progress';
30
30
  import { Heading } from '@instructure/ui-heading';
31
31
  import { View } from '@instructure/ui-view';
32
32
  import { jsx } from '@instructure/emotion';
33
- import t from '@instructure/quiz-i18n/es/format-message';
33
+ import t from '@instructure/quiz-i18n/format-message';
34
34
  import { scoreToLetterGrade } from '@instructure/grading-utils';
35
35
  import { withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
36
36
  import FormattedDuration from '../../../shared/FormattedDuration';
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
25
25
  import ImmutablePropTypes from 'react-immutable-proptypes';
26
26
  import { jsx } from '@instructure/emotion';
27
27
  import { RichContentRenderer } from '@instructure/quiz-rce';
28
- import t from '@instructure/quiz-i18n/es/format-message';
28
+ import t from '@instructure/quiz-i18n/format-message';
29
29
  import generateStyle from './styles';
30
30
  import generateComponentTheme from './theme';
31
31
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -31,7 +31,7 @@ import { View } from '@instructure/ui-view';
31
31
  import { PresentationContent } from '@instructure/ui-a11y-content';
32
32
  import { jsx } from '@instructure/emotion';
33
33
  import { RichContentRenderer } from '@instructure/quiz-rce';
34
- import t from '@instructure/quiz-i18n/es/format-message';
34
+ import t from '@instructure/quiz-i18n/format-message';
35
35
  import PositionBox from '../../positionBox/PositionBox';
36
36
  import { COMPONENT_RESULT, withStyleOverrides } from '@instructure/quiz-common';
37
37
  import componentForItem from '../../../../util/componentForItem';
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
25
25
  import ImmutablePropTypes from 'react-immutable-proptypes';
26
26
  import { Heading } from '@instructure/ui-heading';
27
27
  import { jsx } from '@instructure/emotion';
28
- import t from '@instructure/quiz-i18n/es/format-message';
28
+ import t from '@instructure/quiz-i18n/format-message';
29
29
  import CustomPropTypes from '../../../../util/CustomPropTypes';
30
30
  import SessionItemResult from '../SessionItemResult';
31
31
  import ResultStimulus from '../ResultStimulus';
@@ -46,7 +46,7 @@ import wrapWithOutsideClickEmotion from '../../../shared/functionality/component
46
46
  import ActionButtons from '../../../../../building/components/resources/ActionButtons';
47
47
  import generateStyle from './styles';
48
48
  import generateComponentTheme from './theme';
49
- import t from '@instructure/quiz-i18n/es/format-message';
49
+ import t from '@instructure/quiz-i18n/format-message';
50
50
  export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_StimulusEdit = /*#__PURE__*/function (_Component) {
51
51
  function StimulusEdit() {
52
52
  var _this2;
@@ -31,7 +31,7 @@ import { toErrors } from '../../../../util/instUIMessages';
31
31
  import { IconUpdownLine } from '@instructure/ui-icons';
32
32
  import { ToggleDetails } from '@instructure/ui-toggle-details';
33
33
  import { SimpleSelect, TextInput, TOP, withStyleOverrides, FormFieldGroup, FormField } from '@instructure/quiz-common';
34
- import t from '@instructure/quiz-i18n/es/format-message';
34
+ import t from '@instructure/quiz-i18n/format-message';
35
35
  import generateStyle from './styles';
36
36
  import generateComponentTheme from './theme';
37
37
  import { Alert } from '@instructure/ui-alerts';
@@ -30,7 +30,7 @@ import { Text } from '@instructure/ui-text';
30
30
  import { Flex, withStyleOverrides } from '@instructure/quiz-common';
31
31
  import StimulusShowInfo from '../StimulusShowInfo';
32
32
  import ActionButtons from '../../../../../building/components/resources/ActionButtons';
33
- import t from '@instructure/quiz-i18n/es/format-message';
33
+ import t from '@instructure/quiz-i18n/format-message';
34
34
  import generateStyle from './styles';
35
35
  import generateComponentTheme from './theme';
36
36
  import Overlay from '../../../shared/overlay';
@@ -24,7 +24,7 @@ import { Heading } from '@instructure/ui-heading';
24
24
  import { Text } from '@instructure/ui-text';
25
25
  import { View } from '@instructure/ui-view';
26
26
  import { RichContentRenderer } from '@instructure/quiz-rce';
27
- import t from '@instructure/quiz-i18n/es/format-message';
27
+ import t from '@instructure/quiz-i18n/format-message';
28
28
  var StimulusShowInfo = /*#__PURE__*/function (_Component) {
29
29
  function StimulusShowInfo() {
30
30
  _classCallCheck(this, StimulusShowInfo);
@@ -22,7 +22,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
22
22
  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; }
23
23
  import React, { Component } from 'react';
24
24
  import PropTypes from 'prop-types';
25
- import t from '@instructure/quiz-i18n/es/format-message';
25
+ import t from '@instructure/quiz-i18n/format-message';
26
26
  import { withI18nSupport } from '@instructure/quiz-common';
27
27
  import { AccessibleContent } from '@instructure/ui-a11y-content';
28
28
  import { formatTime } from '../../../util/formatTimespan';
@@ -22,7 +22,7 @@ import React, { Component } from 'react';
22
22
  import PropTypes from 'prop-types';
23
23
  import debounce from 'lodash/fp/debounce';
24
24
  import { Spinner } from '@instructure/ui-spinner';
25
- import t from '@instructure/quiz-i18n/es/format-message';
25
+ import t from '@instructure/quiz-i18n/format-message';
26
26
  import { SELECT_EMPTY_OPTION, Select } from '@instructure/quiz-common';
27
27
  export var GenericAsyncSearch = /*#__PURE__*/function (_Component) {
28
28
  function GenericAsyncSearch() {
@@ -32,7 +32,7 @@ import { IconPlusLine } from '@instructure/ui-icons';
32
32
  import { Grid } from '@instructure/ui-grid';
33
33
  import { PresentationContent } from '@instructure/ui-a11y-content';
34
34
  import { interactionTypeMetadata } from '../../../util/interactionTypeMetadata';
35
- import t from '@instructure/quiz-i18n/es/format-message';
35
+ import t from '@instructure/quiz-i18n/format-message';
36
36
  import generateStyle from './styles';
37
37
  import generateComponentTheme from './theme';
38
38
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -24,7 +24,7 @@ import { Component } from 'react';
24
24
  import PropTypes from 'prop-types';
25
25
  import { Pagination } from '@instructure/ui-pagination';
26
26
  import { jsx } from '@instructure/emotion';
27
- import t from '@instructure/quiz-i18n/es/format-message';
27
+ import t from '@instructure/quiz-i18n/format-message';
28
28
  import generateStyle from './styles';
29
29
  import generateComponentTheme from './theme';
30
30
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -22,7 +22,7 @@ function _callSuper(_this, derived, args) {
22
22
  import React, { Component } from 'react';
23
23
  import PropTypes from 'prop-types';
24
24
  import { Overlay, Mask } from '@instructure/ui-overlays';
25
- import t from '@instructure/quiz-i18n/es/format-message';
25
+ import t from '@instructure/quiz-i18n/format-message';
26
26
  import { QuizzesSpinner as Spinner } from '../spinner/Spinner';
27
27
  import CustomPropTypes from '../../../util/CustomPropTypes';
28
28
  import { printWithCss, ensureImagesLoaded } from '../../../util/printUtils';