@instructure/quiz-core 22.10.2 → 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 (379) hide show
  1. package/es/banks/api/bankEntries.js +1 -1
  2. package/es/banks/api/banks.js +19 -98
  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/index.js +6 -3
  23. package/es/banks/components/SharingModal/presenter.js +208 -132
  24. package/es/building/api/items.js +121 -25
  25. package/es/building/api/quizEntries.js +79 -16
  26. package/es/building/api/quizzes.js +1 -1
  27. package/es/building/api/stimuli.js +1 -1
  28. package/es/building/components/QTIImportModal/index.js +1 -1
  29. package/es/building/components/layout/Sidebar/presenter.js +1 -1
  30. package/es/building/components/layout/header/BuildingButtons/presenter.js +1 -1
  31. package/es/building/components/resources/AddToBankOptions/index.js +1 -1
  32. package/es/building/components/resources/BanksTray/presenter.js +1 -1
  33. package/es/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
  34. package/es/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
  35. package/es/building/components/resources/MoveImmutableModal/presenter.js +1 -1
  36. package/es/building/components/resources/quiz/editButton/EditButton.js +1 -1
  37. package/es/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
  38. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +1 -1
  39. package/es/building/components/resources/quiz/instructions/Show/index.js +1 -1
  40. package/es/building/components/resources/quiz/title/Edit/index.js +1 -1
  41. package/es/building/components/resources/quiz/title/Title/presenter.js +1 -1
  42. package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +1 -1
  43. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +1 -1
  44. package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +1 -1
  45. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -1
  46. package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -1
  47. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +1 -1
  48. package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +22 -3
  49. package/es/common/actions/sharedBanks.js +13 -1
  50. package/es/common/actions/sharingModal.js +7 -0
  51. package/es/common/api/helpers.js +1 -1
  52. package/es/common/api/quizSessions.js +1 -1
  53. package/es/common/components/AccessCodeTextInput/index.js +1 -1
  54. package/es/common/components/ConfirmationModal/presenter.js +1 -1
  55. package/es/common/components/ImportModal/ImportFileSelector/index.js +1 -1
  56. package/es/common/components/ImportModal/presenter.js +1 -1
  57. package/es/common/components/Pin/presenter.js +1 -1
  58. package/es/common/components/PreviewFrame/index.js +1 -1
  59. package/es/common/components/PrintFontSizeModal/presenter.js +1 -1
  60. package/es/common/components/RceConfigProvider/rceConfigErrorMessages.js +1 -1
  61. package/es/common/components/SDKApp/index.js +1 -1
  62. package/es/common/components/alerts/presenter.js +1 -1
  63. package/es/common/components/layout/Page/index.js +1 -1
  64. package/es/common/components/layout/header/Calculator/presenter.js +1 -1
  65. package/es/common/components/layout/header/HeaderMenuButton/presenter.js +1 -1
  66. package/es/common/components/layout/header/Timer/presenter.js +1 -1
  67. package/es/common/components/layout/navbar/index.js +1 -1
  68. package/es/common/components/layout/sidebar/PositionSummary/index.js +1 -1
  69. package/es/common/components/layout/sidebar/Sidebar/Pin.js +1 -1
  70. package/es/common/components/layout/sidebar/Sidebar/index.js +1 -1
  71. package/es/common/components/layout/sidebar/SidebarItem/index.js +1 -1
  72. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +1 -1
  73. package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +1 -1
  74. package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +1 -1
  75. package/es/common/components/layout/sidebar/Stimulus/presenter.js +1 -1
  76. package/es/common/components/resources/BankSelection/presenter.js +1 -1
  77. package/es/common/components/resources/WarningWrapper/index.js +1 -1
  78. package/es/common/components/resources/entry/EntrySave/presenter.js +1 -1
  79. package/es/common/components/resources/item/ItemEdit/presenter.js +1 -1
  80. package/es/common/components/resources/quiz/AddContent/Body/index.js +1 -1
  81. package/es/common/components/resources/quiz/AddContent/Body/presenter.js +135 -141
  82. package/es/common/components/resources/quiz/AddContent/Button/index.js +1 -1
  83. package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +61 -73
  84. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +128 -119
  85. package/es/common/components/resources/quizSessionResult/Header/index.js +1 -1
  86. package/es/common/components/resources/quizSessionResult/Info/index.js +1 -1
  87. package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +1 -1
  88. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
  89. package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +1 -1
  90. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
  91. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +1 -1
  92. package/es/common/components/resources/stimulus/StimulusShow/index.js +1 -1
  93. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -1
  94. package/es/common/components/shared/FormattedDuration/index.js +1 -1
  95. package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -1
  96. package/es/common/components/shared/InteractionTypes/index.js +1 -4
  97. package/es/common/components/shared/InteractionTypes/presenter.js +2 -4
  98. package/es/common/components/shared/Paginator/index.js +1 -1
  99. package/es/common/components/shared/PrintTrigger/presenter.js +1 -1
  100. package/es/common/components/shared/TagDisplay/index.js +1 -1
  101. package/es/common/components/shared/TagSelect/presenter.js +1 -1
  102. package/es/common/components/shared/TagWrapper/presenter.js +1 -1
  103. package/es/common/components/shared/TimeUnitsInput/index.js +1 -1
  104. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +1 -1
  105. package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +1 -1
  106. package/es/common/components/shared/return_button/ReturnButton.js +1 -1
  107. package/es/common/components/shared/spinner/Spinner.js +1 -1
  108. package/es/common/middleware/sharedBanksMiddleware.js +243 -0
  109. package/es/common/records/Bank.js +1 -1
  110. package/es/common/records/Item.js +3 -2
  111. package/es/common/records/Quiz.js +1 -1
  112. package/es/common/records/QuizAnalysis.js +1 -1
  113. package/es/common/records/QuizEntry.js +8 -1
  114. package/es/common/records/Stimulus.js +1 -1
  115. package/es/common/reducers/sharingModal.js +17 -0
  116. package/es/common/util/Fetcher.js +1 -1
  117. package/es/common/util/TimerService.js +1 -1
  118. package/es/common/util/formatTimespan.js +1 -1
  119. package/es/common/util/interactionTypeMetadata.js +1 -1
  120. package/es/common/util/interactionTypePropsHelper.js +1 -1
  121. package/es/common/util/maxContent.js +1 -1
  122. package/es/common/util/useRemoteComponent.js +127 -0
  123. package/es/common/util/warningHelpers.js +1 -1
  124. package/es/common/util/withDynamoPagination.js +13 -2
  125. package/es/configureStore.js +4 -1
  126. package/es/grading/api/quizEntryRegrades.js +1 -1
  127. package/es/index.js +5 -3
  128. package/es/moderating/api/quizSessionEvents.js +4 -2
  129. package/es/moderating/components/events/PageBlurredEvent.js +1 -1
  130. package/es/moderating/components/events/PageFocusedEvent.js +1 -1
  131. package/es/moderating/components/events/ResponseEvent.js +1 -1
  132. package/es/moderating/components/events/SessionStartEvent.js +1 -1
  133. package/es/moderating/components/events/SessionSubmitEvent.js +1 -1
  134. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -1
  135. package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +1 -1
  136. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -1
  137. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +1 -1
  138. package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -1
  139. package/es/moderating/components/resources/AccommodationsModal/index.js +1 -1
  140. package/es/moderating/components/resources/ElapsedTime.js +1 -1
  141. package/es/moderating/components/resources/EventDetails.js +1 -1
  142. package/es/moderating/components/resources/ModerateTable/presenter.js +1 -1
  143. package/es/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
  144. package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
  145. package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +1 -1
  146. package/es/moderating/components/resources/util/renderEventSummary.js +1 -1
  147. package/es/moderating/components/sidebar/ModerateTray/presenter.js +1 -1
  148. package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -1
  149. package/es/reporting/components/MetricsListItem/index.js +1 -1
  150. package/es/reporting/components/charts/CentileDistribution/presenter.js +1 -1
  151. package/es/reporting/components/charts/Distribution/presenter.js +1 -1
  152. package/es/reporting/components/charts/QuintileDistribution/presenter.js +1 -1
  153. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +1 -1
  154. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
  155. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
  156. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +1 -1
  157. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +1 -1
  158. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -1
  159. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -1
  160. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -1
  161. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -1
  162. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
  163. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -1
  164. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -1
  165. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +1 -1
  166. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +1 -1
  167. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +1 -1
  168. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -1
  169. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -1
  170. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -1
  171. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -1
  172. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  173. package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +1 -1
  174. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +1 -1
  175. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -1
  176. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +1 -1
  177. package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
  178. package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
  179. package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +1 -3
  180. package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -1
  181. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  182. package/es/reporting/components/resources/ReportCard/index.js +1 -1
  183. package/es/reporting/components/resources/ReportList/index.js +1 -1
  184. package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
  185. package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
  186. package/es/reporting/components/resources/common/ExportButton/index.js +1 -1
  187. package/es/reporting/components/resources/common/errorMessages.js +1 -1
  188. package/es/reporting/components/resources/common/utils.js +1 -1
  189. package/es/taking/api/taking.js +1 -1
  190. package/lib/banks/api/bankEntries.js +1 -1
  191. package/lib/banks/api/banks.js +18 -97
  192. package/lib/banks/api/copyingBanksPoller.js +1 -1
  193. package/lib/banks/api/tagAssociations.js +1 -1
  194. package/lib/banks/components/AddBankEntryModal/presenter.js +1 -1
  195. package/lib/banks/components/AddToBankModal/presenter.js +1 -1
  196. package/lib/banks/components/AsyncSearch/index.js +1 -1
  197. package/lib/banks/components/Bank/presenter.js +1 -1
  198. package/lib/banks/components/BankEntry/presenter.js +1 -1
  199. package/lib/banks/components/BankEntryRow/presenter.js +1 -1
  200. package/lib/banks/components/BankSearch/presenter.js +1 -1
  201. package/lib/banks/components/Banks/presenter.js +1 -1
  202. package/lib/banks/components/BanksList/presenter.js +1 -1
  203. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
  204. package/lib/banks/components/CreateBankModal/presenter.js +1 -1
  205. package/lib/banks/components/EditBankModal/presenter.js +1 -1
  206. package/lib/banks/components/HeaderBreadCrumb/index.js +1 -1
  207. package/lib/banks/components/HeaderMenu/presenter.js +1 -1
  208. package/lib/banks/components/NavWrapper/presenter.js +1 -1
  209. package/lib/banks/components/SharingModal/RootAccountSharing.js +1 -1
  210. package/lib/banks/components/SharingModal/ShareList/index.js +1 -1
  211. package/lib/banks/components/SharingModal/index.js +5 -2
  212. package/lib/banks/components/SharingModal/presenter.js +206 -130
  213. package/lib/building/api/items.js +121 -24
  214. package/lib/building/api/quizEntries.js +79 -15
  215. package/lib/building/api/quizzes.js +2 -2
  216. package/lib/building/api/stimuli.js +1 -1
  217. package/lib/building/components/QTIImportModal/index.js +1 -1
  218. package/lib/building/components/layout/Sidebar/presenter.js +1 -1
  219. package/lib/building/components/layout/header/BuildingButtons/presenter.js +1 -1
  220. package/lib/building/components/resources/AddToBankOptions/index.js +1 -1
  221. package/lib/building/components/resources/BanksTray/presenter.js +1 -1
  222. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
  223. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
  224. package/lib/building/components/resources/MoveImmutableModal/presenter.js +1 -1
  225. package/lib/building/components/resources/quiz/editButton/EditButton.js +1 -1
  226. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
  227. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +1 -1
  228. package/lib/building/components/resources/quiz/instructions/Show/index.js +1 -1
  229. package/lib/building/components/resources/quiz/title/Edit/index.js +1 -1
  230. package/lib/building/components/resources/quiz/title/Title/presenter.js +1 -1
  231. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +1 -1
  232. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +1 -1
  233. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +1 -1
  234. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -1
  235. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -1
  236. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +1 -1
  237. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +21 -2
  238. package/lib/common/actions/sharedBanks.js +13 -1
  239. package/lib/common/actions/sharingModal.js +13 -0
  240. package/lib/common/api/helpers.js +1 -1
  241. package/lib/common/api/quizSessions.js +1 -1
  242. package/lib/common/components/AccessCodeTextInput/index.js +1 -1
  243. package/lib/common/components/ConfirmationModal/presenter.js +1 -1
  244. package/lib/common/components/ImportModal/ImportFileSelector/index.js +1 -1
  245. package/lib/common/components/ImportModal/presenter.js +1 -1
  246. package/lib/common/components/Pin/presenter.js +1 -1
  247. package/lib/common/components/PreviewFrame/index.js +1 -1
  248. package/lib/common/components/PrintFontSizeModal/presenter.js +1 -1
  249. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +1 -1
  250. package/lib/common/components/SDKApp/index.js +2 -2
  251. package/lib/common/components/alerts/presenter.js +1 -1
  252. package/lib/common/components/layout/Page/index.js +1 -1
  253. package/lib/common/components/layout/header/Calculator/presenter.js +1 -1
  254. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +1 -1
  255. package/lib/common/components/layout/header/Timer/presenter.js +1 -1
  256. package/lib/common/components/layout/navbar/index.js +1 -1
  257. package/lib/common/components/layout/sidebar/PositionSummary/index.js +1 -1
  258. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +1 -1
  259. package/lib/common/components/layout/sidebar/Sidebar/index.js +1 -1
  260. package/lib/common/components/layout/sidebar/SidebarItem/index.js +1 -1
  261. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +1 -1
  262. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +1 -1
  263. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +1 -1
  264. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +1 -1
  265. package/lib/common/components/resources/BankSelection/presenter.js +1 -1
  266. package/lib/common/components/resources/WarningWrapper/index.js +1 -1
  267. package/lib/common/components/resources/entry/EntrySave/presenter.js +1 -1
  268. package/lib/common/components/resources/item/ItemEdit/presenter.js +1 -1
  269. package/lib/common/components/resources/quiz/AddContent/Body/index.js +1 -1
  270. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +138 -141
  271. package/lib/common/components/resources/quiz/AddContent/Button/index.js +1 -1
  272. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +61 -75
  273. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +129 -119
  274. package/lib/common/components/resources/quizSessionResult/Header/index.js +1 -1
  275. package/lib/common/components/resources/quizSessionResult/Info/index.js +1 -1
  276. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +1 -1
  277. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
  278. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +1 -1
  279. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
  280. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +1 -1
  281. package/lib/common/components/resources/stimulus/StimulusShow/index.js +1 -1
  282. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -1
  283. package/lib/common/components/shared/FormattedDuration/index.js +1 -1
  284. package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -1
  285. package/lib/common/components/shared/InteractionTypes/index.js +1 -4
  286. package/lib/common/components/shared/InteractionTypes/presenter.js +2 -4
  287. package/lib/common/components/shared/Paginator/index.js +1 -1
  288. package/lib/common/components/shared/PrintTrigger/presenter.js +1 -1
  289. package/lib/common/components/shared/TagDisplay/index.js +1 -1
  290. package/lib/common/components/shared/TagSelect/presenter.js +1 -1
  291. package/lib/common/components/shared/TagWrapper/presenter.js +1 -1
  292. package/lib/common/components/shared/TimeUnitsInput/index.js +1 -1
  293. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +1 -1
  294. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +1 -1
  295. package/lib/common/components/shared/return_button/ReturnButton.js +1 -1
  296. package/lib/common/components/shared/spinner/Spinner.js +1 -1
  297. package/lib/common/middleware/sharedBanksMiddleware.js +250 -0
  298. package/lib/common/records/Bank.js +1 -1
  299. package/lib/common/records/Item.js +3 -2
  300. package/lib/common/records/Quiz.js +1 -1
  301. package/lib/common/records/QuizAnalysis.js +1 -1
  302. package/lib/common/records/QuizEntry.js +8 -1
  303. package/lib/common/records/Stimulus.js +1 -1
  304. package/lib/common/reducers/sharingModal.js +23 -0
  305. package/lib/common/util/Fetcher.js +1 -1
  306. package/lib/common/util/TimerService.js +1 -1
  307. package/lib/common/util/formatTimespan.js +1 -1
  308. package/lib/common/util/interactionTypeMetadata.js +1 -1
  309. package/lib/common/util/interactionTypePropsHelper.js +1 -1
  310. package/lib/common/util/maxContent.js +1 -1
  311. package/lib/common/util/useRemoteComponent.js +134 -0
  312. package/lib/common/util/warningHelpers.js +1 -1
  313. package/lib/common/util/withDynamoPagination.js +13 -2
  314. package/lib/configureStore.js +4 -1
  315. package/lib/grading/api/quizEntryRegrades.js +1 -1
  316. package/lib/index.js +37 -0
  317. package/lib/moderating/api/quizSessionEvents.js +4 -2
  318. package/lib/moderating/components/events/PageBlurredEvent.js +1 -1
  319. package/lib/moderating/components/events/PageFocusedEvent.js +1 -1
  320. package/lib/moderating/components/events/ResponseEvent.js +1 -1
  321. package/lib/moderating/components/events/SessionStartEvent.js +1 -1
  322. package/lib/moderating/components/events/SessionSubmitEvent.js +1 -1
  323. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -1
  324. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +1 -1
  325. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -1
  326. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +1 -1
  327. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -1
  328. package/lib/moderating/components/resources/AccommodationsModal/index.js +1 -1
  329. package/lib/moderating/components/resources/ElapsedTime.js +1 -1
  330. package/lib/moderating/components/resources/EventDetails.js +1 -1
  331. package/lib/moderating/components/resources/ModerateTable/presenter.js +1 -1
  332. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
  333. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
  334. package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +1 -1
  335. package/lib/moderating/components/resources/util/renderEventSummary.js +1 -1
  336. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +1 -1
  337. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -1
  338. package/lib/reporting/components/MetricsListItem/index.js +1 -1
  339. package/lib/reporting/components/charts/CentileDistribution/presenter.js +1 -1
  340. package/lib/reporting/components/charts/Distribution/presenter.js +1 -1
  341. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +1 -1
  342. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +1 -1
  343. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
  344. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
  345. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +1 -1
  346. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +1 -1
  347. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -1
  348. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -1
  349. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -1
  350. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -1
  351. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
  352. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -1
  353. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -1
  354. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +1 -1
  355. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +1 -1
  356. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +1 -1
  357. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -1
  358. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -1
  359. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -1
  360. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -1
  361. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
  362. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +1 -1
  363. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +1 -1
  364. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -1
  365. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +1 -1
  366. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
  367. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
  368. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +1 -3
  369. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -1
  370. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
  371. package/lib/reporting/components/resources/ReportCard/index.js +1 -1
  372. package/lib/reporting/components/resources/ReportList/index.js +1 -1
  373. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
  374. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
  375. package/lib/reporting/components/resources/common/ExportButton/index.js +1 -1
  376. package/lib/reporting/components/resources/common/errorMessages.js +1 -1
  377. package/lib/reporting/components/resources/common/utils.js +1 -1
  378. package/lib/taking/api/taking.js +1 -1
  379. package/package.json +40 -32
@@ -10,7 +10,7 @@ import { getBank } from './banks';
10
10
  import { handleError } from '../../common/api/helpers';
11
11
  import get from 'lodash/get';
12
12
  import { BANKS_BANK_ENTRY_PAGINATION, GET_BANK_ENTRIES_CALL, GET_BANK_ENTRY_CALL, UPDATE_BANK_ENTRY_CALL, CREATE_BANK_ENTRY_CALL, COPY_BANK_ENTRY_CALL, REMOVE_BANK_ENTRY_CALL } from '@instructure/quiz-common';
13
- import t from '@instructure/quiz-i18n/es/format-message';
13
+ import t from '@instructure/quiz-i18n/format-message';
14
14
  export var getBankEntries = function getBankEntries(bankId, useBankSearch) {
15
15
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
16
16
  var page = params.page,
@@ -8,12 +8,13 @@ import ExhaustivePaginatedFetcher from '../../common/util/ExhaustivePaginatedFet
8
8
  import { handleBanksResponse, handleBankResponse, handleShareBankResponse, handleShareBanksResponse } from '../../common/api/callHandlers';
9
9
  import { archiveBankEntry } from '../../common/actions/bankEntries';
10
10
  import { archiveBank } from '../../common/actions/banks';
11
- import { removeSharedBank, updateSharedBankPermission as updateSharedBankPermissionAction } from '../../common/actions/sharedBanks';
11
+ import { removeSharedBank, updateSharedBankPermission as updateSharedBankPermissionAction, getSharedBanksAction } from '../../common/actions/sharedBanks';
12
+ import { sharedBankLoadingAction } from '../../common/actions/sharingModal';
12
13
  import { clear, newActiveBankEntry, newActiveBank } from '../../common/actions/ui';
13
- import t from '@instructure/quiz-i18n/es/format-message';
14
+ import t from '@instructure/quiz-i18n/format-message';
14
15
  import { handleError } from '../../common/api/helpers';
15
16
  import { removeFromPolling } from './copyingBanksPoller';
16
- import { BANKS_BANK_PAGINATION, BANKS_BANK_ENTRY_PAGINATION, DELETE_BANK_CALL, UPDATE_BANK_CALL, CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT } from '@instructure/quiz-common';
17
+ import { BANKS_BANK_PAGINATION, BANKS_BANK_ENTRY_PAGINATION, DELETE_BANK_CALL, UPDATE_BANK_CALL, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_USER, SHARED_WITH_COURSE } from '@instructure/quiz-common';
17
18
  import { noop } from 'lodash';
18
19
  import { NIL } from 'uuid';
19
20
  var banksApiEndpoint = '/api/banks';
@@ -268,102 +269,22 @@ export var getSharedBank = function getSharedBank(bankId, entityType, entityId)
268
269
  };
269
270
  };
270
271
  export var getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, getAccountInfo) {
271
- var url = "".concat(banksApiEndpoint, "/").concat(bank.id, "/shared_banks");
272
272
  return function (dispatch, getState) {
273
- var fetcher = new Fetcher({
274
- onError: handleError(dispatch, t('Failed to fetch shared banks.'))
275
- });
276
- return fetcher.get(url).then(function (sharedBanksInfo) {
277
- // if the API returns no data, we manually add the bank's creator to the response
278
- if (sharedBanksInfo.length === 0) {
279
- sharedBanksInfo.push({
280
- id: '-1',
281
- entity_type: SHARED_WITH_USER,
282
- entity_id: bank.creator,
283
- permission: CAN_EDIT,
284
- bank_id: bank.id
285
- });
286
- }
287
-
288
- // USERS
289
- var userSharedBanks = [];
290
- var userUuids = sharedBanksInfo.filter(function (sb) {
291
- return sb.entity_type === SHARED_WITH_USER;
292
- }).map(function (sb) {
293
- return sb.entity_id;
294
- });
295
- getUserInfo(userUuids).then(function (usersInfo) {
296
- usersInfo.forEach(function (userInfo) {
297
- var sharedBankInfo = sharedBanksInfo.find(function (sb) {
298
- return sb.entity_type === SHARED_WITH_USER && sb.entity_id === userInfo.uuid;
299
- });
300
- if (sharedBankInfo) {
301
- userSharedBanks.push({
302
- id: sharedBankInfo.id,
303
- entityType: sharedBankInfo.entity_type,
304
- entityId: sharedBankInfo.entity_id,
305
- title: userInfo.fullName,
306
- avatar: userInfo.avatar,
307
- permission: sharedBankInfo.permission,
308
- bankId: sharedBankInfo.bank_id
309
- });
310
- }
311
- });
312
- dispatch(handleShareBanksResponse(userSharedBanks));
313
- });
314
-
315
- // COURSES
316
- var courseSharedBanks = [];
317
- var courseUuids = sharedBanksInfo.filter(function (sb) {
318
- return sb.entity_type === SHARED_WITH_COURSE;
319
- }).map(function (sb) {
320
- return sb.entity_id;
321
- });
322
- getCourseInfo(courseUuids).then(function (coursesInfo) {
323
- coursesInfo.forEach(function (courseInfo) {
324
- var sharedBankInfo = sharedBanksInfo.find(function (sb) {
325
- return sb.entity_type === SHARED_WITH_COURSE && sb.entity_id === courseInfo.uuid;
326
- });
327
- if (sharedBankInfo) {
328
- courseSharedBanks.push({
329
- id: sharedBankInfo.id,
330
- entityType: sharedBankInfo.entity_type,
331
- entityId: sharedBankInfo.entity_id,
332
- title: courseInfo.title,
333
- permission: sharedBankInfo.permission,
334
- bankId: sharedBankInfo.bank_id
335
- });
336
- }
337
- });
338
- dispatch(handleShareBanksResponse(courseSharedBanks));
339
- });
340
-
341
- // ACCOUNTS
342
- var accountSharedBanks = [];
343
- var accountUuids = sharedBanksInfo.filter(function (sb) {
344
- return sb.entity_type === SHARED_WITH_ACCOUNT;
345
- }).map(function (sb) {
346
- return sb.entity_id;
347
- });
348
- getAccountInfo(accountUuids).then(function (accountsInfo) {
349
- accountsInfo.forEach(function (accountInfo) {
350
- var sharedBankInfo = sharedBanksInfo.find(function (sb) {
351
- return sb.entity_type === SHARED_WITH_ACCOUNT && sb.entity_id === accountInfo.uuid;
352
- });
353
- if (sharedBankInfo) {
354
- accountSharedBanks.push({
355
- id: sharedBankInfo.id,
356
- entityType: sharedBankInfo.entity_type,
357
- entityId: sharedBankInfo.entity_id,
358
- title: accountInfo.name,
359
- permission: sharedBankInfo.permission,
360
- bankId: sharedBankInfo.bank_id
361
- });
362
- }
363
- });
364
- dispatch(handleShareBanksResponse(accountSharedBanks));
365
- });
366
- });
273
+ var payload = {
274
+ bank: bank,
275
+ getUserInfo: getUserInfo,
276
+ getCourseInfo: getCourseInfo,
277
+ getAccountInfo: getAccountInfo
278
+ };
279
+ dispatch(getSharedBanksAction(payload));
280
+ };
281
+ };
282
+ export var changeSharedBankLoading = function changeSharedBankLoading(isLoading) {
283
+ return function (dispatch, getState) {
284
+ var payload = {
285
+ loading: isLoading
286
+ };
287
+ dispatch(sharedBankLoadingAction(payload));
367
288
  };
368
289
  };
369
290
  export var updateSharedBankPermission = function updateSharedBankPermission(bankId, sharedBankId, permission) {
@@ -1,6 +1,6 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import t from '@instructure/quiz-i18n/es/format-message';
3
+ import t from '@instructure/quiz-i18n/format-message';
4
4
  import { addError, addSuccess } from '../../common/actions/alerts';
5
5
  import { getSpecificBanks } from './banks';
6
6
  var pollingBanks = [];
@@ -4,7 +4,7 @@ import Fetcher from '../../common/util/Fetcher';
4
4
  import { handleError } from '../../common/api/helpers';
5
5
  import { addTagAssociation, removePendingAdditionTagAssociation, removePendingDeletionTagAssociation, removeTagAssociation, setTagSuggestions } from '../../common/actions/tagAssociations';
6
6
  import { GET_TAG_SUGGESTIONS, CREATE_TAG_ASSOCIATION, DELETE_TAG_ASSOCIATION } from '@instructure/quiz-common';
7
- import t from '@instructure/quiz-i18n/es/format-message';
7
+ import t from '@instructure/quiz-i18n/format-message';
8
8
  export var getTagSuggestions = function getTagSuggestions(entryType, entryId, text) {
9
9
  return function (dispatch, getState) {
10
10
  var url = '/api/tags';
@@ -25,7 +25,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
25
25
  import first from 'lodash/first';
26
26
  import { Button, CloseButton } from '@instructure/ui-buttons';
27
27
  import { Heading } from '@instructure/ui-heading';
28
- import t from '@instructure/quiz-i18n/es/format-message';
28
+ import t from '@instructure/quiz-i18n/format-message';
29
29
  import InteractionTypes from '../../../common/components/shared/InteractionTypes';
30
30
  import { XSMALL_SIDE_MARGIN, Modal, ModalHeader, ModalBody, ModalFooter } from '@instructure/quiz-common';
31
31
  export var AddBankEntryModal = /*#__PURE__*/function (_Component) {
@@ -26,7 +26,7 @@ import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
26
26
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
27
27
  import Bank from '../../../common/records/Bank';
28
28
  import BankSelection from '../../../common/components/resources/BankSelection/presenter';
29
- import t from '@instructure/quiz-i18n/es/format-message';
29
+ import t from '@instructure/quiz-i18n/format-message';
30
30
  import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
31
31
  import { featureOn } from '../../../common/util/featureCheck';
32
32
  export var AddToBankModal = /*#__PURE__*/function (_Component) {
@@ -25,7 +25,7 @@ import React, { Component } from 'react';
25
25
  import PropTypes from 'prop-types';
26
26
  import debounce from 'lodash/fp/debounce';
27
27
  import find from 'lodash/fp/find';
28
- import t from '@instructure/quiz-i18n/es/format-message';
28
+ import t from '@instructure/quiz-i18n/format-message';
29
29
  import { Spinner } from '@instructure/ui-spinner';
30
30
  import TagWrapper from '../../../common/components/shared/TagWrapper';
31
31
  import { SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT, SELECT_EMPTY_OPTION, Select } from '@instructure/quiz-common';
@@ -41,7 +41,7 @@ import BankRecord from '../../../common/records/Bank';
41
41
  import Page from '../../../common/components/layout/Page';
42
42
  import PaginatedCollection from '../../../common/components/shared/PaginatedCollection';
43
43
  import QuizEntry from '../../../common/records/QuizEntry';
44
- import t from '@instructure/quiz-i18n/es/format-message';
44
+ import t from '@instructure/quiz-i18n/format-message';
45
45
  import debounceLatestPromise from '../../../common/util/debounceLatestPromise';
46
46
  import AddBankEntryModal from '../../../banks/components/AddBankEntryModal';
47
47
  import BankEntriesList from '../../../banks/components/BankEntriesList';
@@ -51,7 +51,7 @@ import StimulusEditInfo from '../../../common/components/resources/stimulus/Stim
51
51
  import StimulusShowInfo from '../../../common/components/resources/stimulus/StimulusShowInfo';
52
52
  import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
53
53
  import WarningWrapper from '../../../common/components/resources/WarningWrapper';
54
- import t from '@instructure/quiz-i18n/es/format-message';
54
+ import t from '@instructure/quiz-i18n/format-message';
55
55
  import { createItem } from '../../../building/api/items';
56
56
  import { createStimulus } from '../../../building/api/stimuli';
57
57
  import { propsForItemVersioningWrapper, propsForStimulusVersioningWrapper } from '../../../common/util/warningHelpers';
@@ -35,7 +35,7 @@ import { jsx } from '@instructure/emotion';
35
35
  import { BUILD_TRAY_POSITION, COPY_MOVE_BANK_ENTRY_MODAL, SET_EDIT_BUTTON_FOCUS, withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
36
36
  import { RichContentRenderer } from '@instructure/quiz-rce';
37
37
  import { extractTextFromHtml } from '@instructure/quiz-interactions';
38
- import t from '@instructure/quiz-i18n/es/format-message';
38
+ import t from '@instructure/quiz-i18n/format-message';
39
39
  import CopyMoveBankEntryModal from '../CopyMoveBankEntryModal';
40
40
  import ExpandButton from '../../../common/components/shared/ExpandButton';
41
41
  import QuizEntry from '../../../common/records/QuizEntry';
@@ -31,7 +31,7 @@ import { View } from '@instructure/ui-view';
31
31
  import { Text } from '@instructure/ui-text';
32
32
  import { AccessibleContent, ScreenReaderContent } from '@instructure/ui-a11y-content';
33
33
  import { jsx } from '@instructure/emotion';
34
- import t from '@instructure/quiz-i18n/es/format-message';
34
+ import t from '@instructure/quiz-i18n/format-message';
35
35
  import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
36
36
  import { interactionTypesNameDictionary } from '../../../common/util/interactionTypeMetadata';
37
37
  import generateStyle from './styles';
@@ -38,7 +38,7 @@ import debounce from 'lodash/fp/debounce';
38
38
  import Page from '../../../common/components/layout/Page';
39
39
  import { HeaderBreadCrumb } from '../HeaderBreadCrumb';
40
40
  import PaginatedCollection from '../../../common/components/shared/PaginatedCollection';
41
- import t from '@instructure/quiz-i18n/es/format-message';
41
+ import t from '@instructure/quiz-i18n/format-message';
42
42
  import { BANKS_BANK_FILTERS, BANKS_BANK_PAGINATION, CREATE_BANK_MODAL, SHARED_WITH_ACCOUNT, withStyleOverrides, SimpleSelect, TextInput } from '@instructure/quiz-common';
43
43
  import BanksList from '../../../banks/components/BanksList';
44
44
  import CreateBankModal from '../../../banks/components/CreateBankModal';
@@ -42,7 +42,7 @@ import CustomPropTypes from '../../../common/util/CustomPropTypes';
42
42
  import IfFeature from '../../../common/components/shared/IfFeature';
43
43
  import EditBankModal from '../EditBankModal';
44
44
  import SharingModal from '../SharingModal';
45
- import t from '@instructure/quiz-i18n/es/format-message';
45
+ import t from '@instructure/quiz-i18n/format-message';
46
46
  import generateStyle from './styles';
47
47
  import generateComponentTheme from './theme';
48
48
  export var BanksList = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_BanksList = /*#__PURE__*/function (_withI18nSupport) {
@@ -25,7 +25,7 @@ import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
25
25
  import { Checkbox } from '@instructure/ui-checkbox';
26
26
  import { Heading } from '@instructure/ui-heading';
27
27
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
28
- import t from '@instructure/quiz-i18n/es/format-message';
28
+ import t from '@instructure/quiz-i18n/format-message';
29
29
  import Bank from '../../../common/records/Bank';
30
30
  import BankSelection from '../../../common/components/resources/BankSelection/presenter';
31
31
  import { Modal, ModalHeader, ModalBody, ModalFooter, COPY_MOVE_BANK_ENTRY_MODAL_KEEP_COPY, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
@@ -27,7 +27,7 @@ import { Checkbox } from '@instructure/ui-checkbox';
27
27
  import { View } from '@instructure/ui-view';
28
28
  import { Heading } from '@instructure/ui-heading';
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 Bank from '../../../common/records/Bank';
32
32
  import { toErrors } from '../../../common/util/instUIMessages';
33
33
  import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
25
25
  import { Button, CloseButton } from '@instructure/ui-buttons';
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 { toErrors } from '../../../common/util/instUIMessages';
30
30
  import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
31
31
  import Bank from '../../../common/records/Bank';
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
2
  import ReactDOM from 'react-dom';
3
3
  import PropTypes from 'prop-types';
4
- import t from '@instructure/quiz-i18n/es/format-message';
4
+ import t from '@instructure/quiz-i18n/format-message';
5
5
  import { Breadcrumb, BreadcrumbLink } from '@instructure/ui-breadcrumb';
6
6
  export function HeaderBreadCrumb(_ref) {
7
7
  var _ref$returnToUrl = _ref.returnToUrl,
@@ -34,7 +34,7 @@ import QTIImportModal from '../../../building/components/QTIImportModal';
34
34
  import { PARENT_TYPE_BANK, withStyleOverrides } from '@instructure/quiz-common';
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
  export var HeaderMenu = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_HeaderMenu = /*#__PURE__*/function (_Component) {
39
39
  function HeaderMenu() {
40
40
  _classCallCheck(this, HeaderMenu);
@@ -33,7 +33,7 @@ import { BreadcrumbLink } from '@instructure/ui-breadcrumb';
33
33
  import { IconBankLine } from '@instructure/ui-icons';
34
34
  import { View } from '@instructure/ui-view';
35
35
  import { jsx, Global } from '@instructure/emotion';
36
- import t from '@instructure/quiz-i18n/es/format-message';
36
+ import t from '@instructure/quiz-i18n/format-message';
37
37
  import generateStyle from './styles';
38
38
  import generateComponentTheme from './theme';
39
39
  import { withStyleOverrides } from '@instructure/quiz-common';
@@ -29,7 +29,7 @@ import { Grid } from '@instructure/ui-grid';
29
29
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
30
30
  import generateStyle from './styles';
31
31
  import generateComponentTheme from './theme';
32
- import t from '@instructure/quiz-i18n/es/format-message';
32
+ import t from '@instructure/quiz-i18n/format-message';
33
33
  export var RootAccountSharing = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_RootAccountSharing = /*#__PURE__*/function (_Component) {
34
34
  function RootAccountSharing() {
35
35
  var _this2;
@@ -30,7 +30,7 @@ import { Avatar } from '@instructure/ui-avatar';
30
30
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
31
31
  import { jsx } from '@instructure/emotion';
32
32
  import { CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_COURSE, SimpleSelect, withStyleOverrides } from '@instructure/quiz-common';
33
- import t from '@instructure/quiz-i18n/es/format-message';
33
+ import t from '@instructure/quiz-i18n/format-message';
34
34
  import { ContextualIconButton } from '../ContextualIconButton';
35
35
  import generateStyle from './styles';
36
36
  export var ShareList = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_ShareList = /*#__PURE__*/function (_Component) {
@@ -1,7 +1,7 @@
1
1
  import { compose } from 'redux';
2
2
  import { Map } from 'immutable';
3
3
  import { connect } from '../../../common/react-redux';
4
- import { shareBank, getSharedBanks, updateSharedBankPermission, getBank, updateBank } from '../../api/banks';
4
+ import { shareBank, getSharedBanks, updateSharedBankPermission, getBank, updateBank, changeSharedBankLoading } from '../../api/banks';
5
5
  import { removeSharedBank } from '../../../common/actions/sharedBanks';
6
6
  import { withConfirm } from '../../../common/actions/modal';
7
7
  import SharingModal from './presenter';
@@ -9,8 +9,10 @@ function mapStateToProps(state, ownProps) {
9
9
  var sharedBanks = state.get('sharedBanks', Map()).filter(function (sharedBank) {
10
10
  return sharedBank.get('bankId') === ownProps.bank.id;
11
11
  }).toList();
12
+ var loading = state.getIn(['sharingModal', 'loading']);
12
13
  return {
13
- sharedBanks: sharedBanks
14
+ sharedBanks: sharedBanks,
15
+ loading: loading
14
16
  };
15
17
  }
16
18
  var mapDispatchToProps = {
@@ -20,6 +22,7 @@ var mapDispatchToProps = {
20
22
  getBank: getBank,
21
23
  removeSharedBank: removeSharedBank,
22
24
  updateBank: updateBank,
23
- withConfirm: withConfirm
25
+ withConfirm: withConfirm,
26
+ changeSharedBankLoading: changeSharedBankLoading
24
27
  };
25
28
  export default compose(connect(mapStateToProps, mapDispatchToProps))(SharingModal);