@instructure/quiz-core 20.31.1-snapshot.3 → 20.31.2-snapshot.14

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 (751) hide show
  1. package/es/banks/components/AddToBankModal/index.js +0 -2
  2. package/es/banks/components/AddToBankModal/presenter.js +27 -33
  3. package/es/common/components/resources/entry/EntrySave/index.js +0 -2
  4. package/es/common/components/resources/entry/EntrySave/presenter.js +1 -3
  5. package/es/common/components/resources/item/ItemEdit/index.js +0 -1
  6. package/es/common/components/resources/item/ItemEdit/presenter.js +0 -2
  7. package/es/common/components/shared/PrintTrigger/index.js +0 -2
  8. package/es/common/components/shared/PrintTrigger/presenter.js +1 -3
  9. package/es/common/selectors/calculator.js +0 -4
  10. package/es/common/util/interactionTypePropsHelper.js +0 -3
  11. package/lib/banks/api/bankEntries.js +24 -13
  12. package/lib/banks/api/banks.js +26 -15
  13. package/lib/banks/api/copyingBanksPoller.js +4 -2
  14. package/lib/banks/api/tagAssociations.js +8 -5
  15. package/lib/banks/components/AddBankEntryModal/index.js +4 -2
  16. package/lib/banks/components/AddBankEntryModal/presenter.js +4 -2
  17. package/lib/banks/components/AddToBankModal/index.js +3 -4
  18. package/lib/banks/components/AddToBankModal/presenter.js +31 -35
  19. package/lib/banks/components/AsyncSearch/index.js +4 -2
  20. package/lib/banks/components/Bank/index.js +5 -3
  21. package/lib/banks/components/Bank/presenter.js +4 -2
  22. package/lib/banks/components/Bank/styles.js +2 -1
  23. package/lib/banks/components/Bank/theme.js +2 -1
  24. package/lib/banks/components/BankEntriesList/index.js +3 -2
  25. package/lib/banks/components/BankEntriesList/presenter.js +4 -2
  26. package/lib/banks/components/BankEntriesList/styles.js +2 -1
  27. package/lib/banks/components/BankEntriesList/theme.js +2 -1
  28. package/lib/banks/components/BankEntry/index.js +4 -2
  29. package/lib/banks/components/BankEntry/presenter.js +4 -2
  30. package/lib/banks/components/BankEntry/styles.js +2 -1
  31. package/lib/banks/components/BankEntry/theme.js +2 -1
  32. package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +3 -2
  33. package/lib/banks/components/BankEntryRow/index.js +2 -1
  34. package/lib/banks/components/BankEntryRow/presenter.js +4 -2
  35. package/lib/banks/components/BankEntryRow/styles.js +2 -1
  36. package/lib/banks/components/BankEntryRow/theme.js +2 -1
  37. package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -7
  38. package/lib/banks/components/BankSearch/index.js +2 -1
  39. package/lib/banks/components/BankSearch/presenter.js +4 -2
  40. package/lib/banks/components/BankSearch/styles.js +2 -1
  41. package/lib/banks/components/BankSearch/theme.js +2 -1
  42. package/lib/banks/components/Banks/index.js +4 -2
  43. package/lib/banks/components/Banks/presenter.js +4 -2
  44. package/lib/banks/components/Banks/styles.js +2 -1
  45. package/lib/banks/components/Banks/theme.js +2 -1
  46. package/lib/banks/components/BanksList/index.js +4 -3
  47. package/lib/banks/components/BanksList/presenter.js +4 -2
  48. package/lib/banks/components/BanksList/styles.js +2 -1
  49. package/lib/banks/components/BanksList/theme.js +2 -1
  50. package/lib/banks/components/CopyMoveBankEntryModal/index.js +3 -2
  51. package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +4 -2
  52. package/lib/banks/components/CreateBankModal/index.js +2 -1
  53. package/lib/banks/components/CreateBankModal/presenter.js +4 -2
  54. package/lib/banks/components/CreateBankModal/styles.js +2 -1
  55. package/lib/banks/components/CreateBankModal/theme.js +2 -1
  56. package/lib/banks/components/EditBankModal/index.js +2 -1
  57. package/lib/banks/components/EditBankModal/presenter.js +4 -2
  58. package/lib/banks/components/EditBankModal/styles.js +2 -1
  59. package/lib/banks/components/EditBankModal/theme.js +2 -1
  60. package/lib/banks/components/HeaderBreadCrumb/index.js +4 -2
  61. package/lib/banks/components/HeaderMenu/index.js +2 -1
  62. package/lib/banks/components/HeaderMenu/presenter.js +4 -2
  63. package/lib/banks/components/HeaderMenu/styles.js +2 -1
  64. package/lib/banks/components/HeaderMenu/theme.js +2 -1
  65. package/lib/banks/components/NavWrapper/NavWrapper.examples.js +3 -2
  66. package/lib/banks/components/NavWrapper/index.js +2 -1
  67. package/lib/banks/components/NavWrapper/presenter.js +2 -1
  68. package/lib/banks/components/NavWrapper/styles.js +2 -1
  69. package/lib/banks/components/NavWrapper/theme.js +2 -1
  70. package/lib/banks/components/SharingModal/ContextualIconButton/index.js +2 -1
  71. package/lib/banks/components/SharingModal/RootAccountSharing.js +4 -2
  72. package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -2
  73. package/lib/banks/components/SharingModal/ShareList/index.js +4 -2
  74. package/lib/banks/components/SharingModal/ShareList/styles.js +2 -1
  75. package/lib/banks/components/SharingModal/index.js +2 -1
  76. package/lib/banks/components/SharingModal/presenter.js +4 -2
  77. package/lib/banks/components/SharingModal/styles.js +2 -1
  78. package/lib/banks/components/SharingModal/theme.js +2 -1
  79. package/lib/building/api/items.js +1 -1
  80. package/lib/building/api/qtiImports.js +9 -5
  81. package/lib/building/api/quizEntries.js +10 -9
  82. package/lib/building/api/quizzes.js +15 -15
  83. package/lib/building/api/stimuli.js +1 -1
  84. package/lib/building/components/QTIImportModal/index.js +9 -5
  85. package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -1
  86. package/lib/building/components/layout/Sidebar/SidebarItem/index.js +9 -5
  87. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +4 -2
  88. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -1
  89. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -1
  90. package/lib/building/components/layout/Sidebar/Stimulus/index.js +9 -5
  91. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +4 -2
  92. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -1
  93. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -1
  94. package/lib/building/components/layout/Sidebar/index.js +9 -5
  95. package/lib/building/components/layout/Sidebar/presenter.js +4 -2
  96. package/lib/building/components/layout/Sidebar/styles.js +2 -1
  97. package/lib/building/components/layout/Sidebar/theme.js +2 -1
  98. package/lib/building/components/layout/header/BuildingButtons/index.js +5 -3
  99. package/lib/building/components/layout/header/BuildingButtons/presenter.js +4 -2
  100. package/lib/building/components/layout/header/BuildingButtons/styles.js +2 -1
  101. package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -1
  102. package/lib/building/components/layout/header/SDKBuildingButtons/index.js +4 -2
  103. package/lib/building/components/resources/ActionButtons/index.js +4 -2
  104. package/lib/building/components/resources/ActionButtons/presenter.js +4 -2
  105. package/lib/building/components/resources/ActionButtons/styles.js +2 -1
  106. package/lib/building/components/resources/ActionButtons/theme.js +2 -1
  107. package/lib/building/components/resources/AddToBankOptions/index.js +4 -2
  108. package/lib/building/components/resources/AddToBankOptions/styles.js +2 -1
  109. package/lib/building/components/resources/AddToBankOptions/theme.js +2 -1
  110. package/lib/building/components/resources/BanksTray/index.js +4 -2
  111. package/lib/building/components/resources/BanksTray/presenter.js +4 -2
  112. package/lib/building/components/resources/DeleteStimulusModal/index.js +4 -2
  113. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +4 -2
  114. package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -1
  115. package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -1
  116. package/lib/building/components/resources/ItemFeedbackModal/index.js +4 -2
  117. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +4 -2
  118. package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -1
  119. package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -1
  120. package/lib/building/components/resources/MoveImmutableModal/index.js +4 -2
  121. package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -2
  122. package/lib/building/components/resources/quiz/editButton/EditButton.js +2 -1
  123. package/lib/building/components/resources/quiz/instructions/Edit/index.js +2 -1
  124. package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +2 -1
  125. package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -1
  126. package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +3 -2
  127. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +4 -2
  128. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +4 -2
  129. package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +2 -1
  130. package/lib/building/components/resources/quiz/instructions/Show/index.js +4 -2
  131. package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -1
  132. package/lib/building/components/resources/quiz/title/Edit/index.js +4 -2
  133. package/lib/building/components/resources/quiz/title/Edit/styles.js +2 -1
  134. package/lib/building/components/resources/quiz/title/Edit/theme.js +2 -1
  135. package/lib/building/components/resources/quiz/title/Show/index.js +4 -2
  136. package/lib/building/components/resources/quiz/title/Show/styles.js +2 -1
  137. package/lib/building/components/resources/quiz/title/Show/theme.js +2 -1
  138. package/lib/building/components/resources/quiz/title/Title/Title.examples.js +3 -2
  139. package/lib/building/components/resources/quiz/title/Title/index.js +4 -2
  140. package/lib/building/components/resources/quiz/title/Title/presenter.js +4 -2
  141. package/lib/building/components/resources/quiz/title/Title/styles.js +2 -1
  142. package/lib/building/components/resources/quizEntry/QuizEntry/index.js +7 -4
  143. package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -2
  144. package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +2 -1
  145. package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +2 -1
  146. package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +2 -1
  147. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -3
  148. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +4 -2
  149. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -1
  150. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +2 -1
  151. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +4 -2
  152. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -1
  153. package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -1
  154. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -2
  155. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +4 -2
  156. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -1
  157. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -1
  158. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -1
  159. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -1
  160. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -1
  161. package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +2 -1
  162. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +7 -4
  163. package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -1
  164. package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -1
  165. package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +4 -2
  166. package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +7 -4
  167. package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
  168. package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +2 -1
  169. package/lib/common/actions/alerts.js +2 -2
  170. package/lib/common/actions/analyses.js +7 -7
  171. package/lib/common/actions/bankEntries.js +5 -3
  172. package/lib/common/actions/bankSearch.js +10 -6
  173. package/lib/common/actions/banks.js +14 -8
  174. package/lib/common/actions/config.js +1 -1
  175. package/lib/common/actions/editing.js +1 -1
  176. package/lib/common/actions/errorsShowing.js +1 -1
  177. package/lib/common/actions/grading.js +2 -2
  178. package/lib/common/actions/modal.js +3 -3
  179. package/lib/common/actions/modifications.js +29 -29
  180. package/lib/common/actions/printing.js +1 -1
  181. package/lib/common/actions/quizExport.js +3 -2
  182. package/lib/common/actions/quizSessionEvents.js +3 -2
  183. package/lib/common/actions/quizSessionResults.js +3 -2
  184. package/lib/common/actions/quizSessions.js +13 -8
  185. package/lib/common/actions/quizzes.js +14 -8
  186. package/lib/common/actions/rce.js +8 -5
  187. package/lib/common/actions/regrading.js +1 -1
  188. package/lib/common/actions/reporting.js +1 -1
  189. package/lib/common/actions/scrolling.js +1 -1
  190. package/lib/common/actions/sessionItemResults.js +3 -2
  191. package/lib/common/actions/sessionItems.js +3 -2
  192. package/lib/common/actions/sharedBanks.js +8 -5
  193. package/lib/common/actions/sidebar.js +1 -1
  194. package/lib/common/actions/tagAssociations.js +17 -9
  195. package/lib/common/actions/taking.js +38 -20
  196. package/lib/common/actions/ui.js +20 -11
  197. package/lib/common/actions/upload.js +11 -6
  198. package/lib/common/api/callHandlers.js +46 -25
  199. package/lib/common/api/camelizeHelpers.js +4 -2
  200. package/lib/common/api/features.js +3 -2
  201. package/lib/common/api/fileUpload.js +3 -2
  202. package/lib/common/api/getPersistenceActions.js +2 -1
  203. package/lib/common/api/helpers.js +10 -7
  204. package/lib/common/api/interactionTypes.js +3 -2
  205. package/lib/common/api/quizSessions.js +26 -17
  206. package/lib/common/api/quizzes.js +2 -2
  207. package/lib/common/api/schema.js +37 -20
  208. package/lib/common/components/ApiFeatureFlagInitializer/index.js +5 -3
  209. package/lib/common/components/ConfirmationModal/index.js +2 -1
  210. package/lib/common/components/ConfirmationModal/presenter.js +4 -2
  211. package/lib/common/components/ImportModal/ImportFileSelector/index.js +4 -2
  212. package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -1
  213. package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -1
  214. package/lib/common/components/ImportModal/index.js +7 -5
  215. package/lib/common/components/ImportModal/presenter.js +4 -2
  216. package/lib/common/components/ImportModal/styles.js +2 -1
  217. package/lib/common/components/ImportModal/theme.js +2 -1
  218. package/lib/common/components/LearnosityCalculator/index.js +4 -2
  219. package/lib/common/components/Pin/Pin.examples.js +3 -2
  220. package/lib/common/components/Pin/index.js +4 -2
  221. package/lib/common/components/Pin/presenter.js +4 -2
  222. package/lib/common/components/PreviewFrame/examples.config.js +3 -2
  223. package/lib/common/components/PreviewFrame/index.js +4 -2
  224. package/lib/common/components/PrintFontSizeModal/index.js +2 -1
  225. package/lib/common/components/PrintFontSizeModal/presenter.js +4 -2
  226. package/lib/common/components/PrintFontSizeModal/styles.js +2 -1
  227. package/lib/common/components/PrintFontSizeModal/theme.js +2 -1
  228. package/lib/common/components/RceConfigProvider/index.js +2 -1
  229. package/lib/common/components/RceConfigProvider/presenter.js +2 -1
  230. package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -3
  231. package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -7
  232. package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +3 -2
  233. package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -2
  234. package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -4
  235. package/lib/common/components/SDKApp/index.js +7 -4
  236. package/lib/common/components/SDKApp/styles.js +2 -1
  237. package/lib/common/components/SDKHeaderCalculator.js +4 -2
  238. package/lib/common/components/SDKMenuButton.js +4 -2
  239. package/lib/common/components/SDKNavBar.js +4 -2
  240. package/lib/common/components/SDKTimer.js +4 -2
  241. package/lib/common/components/alerts/index.js +3 -2
  242. package/lib/common/components/alerts/presenter.js +4 -2
  243. package/lib/common/components/alerts/styles.js +2 -1
  244. package/lib/common/components/alerts/theme.js +2 -1
  245. package/lib/common/components/layout/Page/index.js +4 -2
  246. package/lib/common/components/layout/Page/styles.js +2 -1
  247. package/lib/common/components/layout/Page/theme.js +2 -1
  248. package/lib/common/components/layout/header/Calculator/index.js +4 -2
  249. package/lib/common/components/layout/header/Calculator/presenter.js +4 -2
  250. package/lib/common/components/layout/header/HeaderMenuButton/index.js +7 -5
  251. package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +4 -2
  252. package/lib/common/components/layout/header/HeaderMenuButton/styles.js +2 -1
  253. package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -1
  254. package/lib/common/components/layout/header/Timer/index.js +2 -1
  255. package/lib/common/components/layout/header/Timer/presenter.js +4 -2
  256. package/lib/common/components/layout/header/Timer/styles.js +2 -1
  257. package/lib/common/components/layout/header/Timer/theme.js +2 -1
  258. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -2
  259. package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +2 -1
  260. package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +2 -1
  261. package/lib/common/components/layout/navbar/index.js +4 -2
  262. package/lib/common/components/layout/navbar/styles.js +2 -1
  263. package/lib/common/components/layout/navbar/theme.js +2 -1
  264. package/lib/common/components/layout/sidebar/PositionSummary/index.js +4 -2
  265. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -1
  266. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -1
  267. package/lib/common/components/layout/sidebar/Sidebar/Pin.js +4 -2
  268. package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +3 -2
  269. package/lib/common/components/layout/sidebar/Sidebar/index.js +4 -2
  270. package/lib/common/components/layout/sidebar/Sidebar/styles.js +2 -1
  271. package/lib/common/components/layout/sidebar/Sidebar/theme.js +2 -1
  272. package/lib/common/components/layout/sidebar/SidebarItem/index.js +9 -5
  273. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +4 -2
  274. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -1
  275. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +2 -1
  276. package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -2
  277. package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +4 -2
  278. package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -1
  279. package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -1
  280. package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -2
  281. package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +4 -2
  282. package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -1
  283. package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -1
  284. package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +4 -2
  285. package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -1
  286. package/lib/common/components/layout/sidebar/Stimulus/index.js +9 -5
  287. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +6 -3
  288. package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -1
  289. package/lib/common/components/layout/sidebar/Stimulus/theme.js +2 -1
  290. package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -2
  291. package/lib/common/components/resources/BankSelection/index.js +4 -3
  292. package/lib/common/components/resources/BankSelection/presenter.js +4 -2
  293. package/lib/common/components/resources/WarningWrapper/index.js +4 -2
  294. package/lib/common/components/resources/WarningWrapper/styles.js +2 -1
  295. package/lib/common/components/resources/WarningWrapper/theme.js +2 -1
  296. package/lib/common/components/resources/entry/EntrySave/index.js +3 -4
  297. package/lib/common/components/resources/entry/EntrySave/presenter.js +5 -5
  298. package/lib/common/components/resources/item/ItemEdit/index.js +3 -3
  299. package/lib/common/components/resources/item/ItemEdit/presenter.js +4 -4
  300. package/lib/common/components/resources/item/ItemOverride/index.js +2 -1
  301. package/lib/common/components/resources/item/ItemOverride/presenter.js +4 -2
  302. package/lib/common/components/resources/item/ItemShow/index.js +2 -1
  303. package/lib/common/components/resources/positionBox/PositionBox.js +4 -2
  304. package/lib/common/components/resources/positionBox/styles.js +2 -1
  305. package/lib/common/components/resources/positionBox/theme.js +2 -1
  306. package/lib/common/components/resources/quiz/AddContent/Body/index.js +2 -1
  307. package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +4 -2
  308. package/lib/common/components/resources/quiz/AddContent/Body/styles.js +2 -1
  309. package/lib/common/components/resources/quiz/AddContent/Body/theme.js +2 -1
  310. package/lib/common/components/resources/quiz/AddContent/Button/index.js +4 -2
  311. package/lib/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
  312. package/lib/common/components/resources/quiz/AddContent/Button/theme.js +2 -1
  313. package/lib/common/components/resources/quiz/AddContent/Modal/index.js +4 -2
  314. package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +4 -2
  315. package/lib/common/components/resources/quiz/AddContent/Popover/index.js +5 -3
  316. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +4 -2
  317. package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -1
  318. package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -1
  319. package/lib/common/components/resources/quiz/info/QuizInfo.js +4 -2
  320. package/lib/common/components/resources/quiz/instructions/Instructions.js +4 -2
  321. package/lib/common/components/resources/quiz/instructions/styles.js +2 -1
  322. package/lib/common/components/resources/quiz/instructions/theme.js +2 -1
  323. package/lib/common/components/resources/quiz/title/Title.js +4 -2
  324. package/lib/common/components/resources/quiz/title/styles.js +2 -1
  325. package/lib/common/components/resources/quiz/title/theme.js +2 -1
  326. package/lib/common/components/resources/quizSessionResult/Header/index.js +4 -2
  327. package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -1
  328. package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -1
  329. package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +3 -2
  330. package/lib/common/components/resources/quizSessionResult/Info/index.js +4 -2
  331. package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -1
  332. package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -1
  333. package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -2
  334. package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -1
  335. package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +2 -1
  336. package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -2
  337. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -2
  338. package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -1
  339. package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +2 -1
  340. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +4 -2
  341. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -1
  342. package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +2 -1
  343. package/lib/common/components/resources/stimulus/Stimulus/index.js +2 -1
  344. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +4 -2
  345. package/lib/common/components/resources/stimulus/Stimulus/styles.js +2 -1
  346. package/lib/common/components/resources/stimulus/Stimulus/theme.js +2 -1
  347. package/lib/common/components/resources/stimulus/StimulusEdit/index.js +2 -1
  348. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +4 -2
  349. package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -1
  350. package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -1
  351. package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +2 -1
  352. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -2
  353. package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -1
  354. package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -1
  355. package/lib/common/components/resources/stimulus/StimulusShow/index.js +4 -2
  356. package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -1
  357. package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -1
  358. package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +3 -2
  359. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +2 -1
  360. package/lib/common/components/shared/Card/CardContent/index.js +4 -2
  361. package/lib/common/components/shared/Card/CardContent/styles.js +2 -1
  362. package/lib/common/components/shared/Card/CardContent/theme.js +2 -1
  363. package/lib/common/components/shared/Card/CardWrapper/index.js +4 -2
  364. package/lib/common/components/shared/Card/CardWrapper/styles.js +2 -1
  365. package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -1
  366. package/lib/common/components/shared/Card/index.js +2 -1
  367. package/lib/common/components/shared/ExpandButton/index.js +4 -2
  368. package/lib/common/components/shared/ExpandButton/styles.js +2 -1
  369. package/lib/common/components/shared/ExpandButton/theme.js +2 -1
  370. package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +3 -2
  371. package/lib/common/components/shared/FormattedDuration/index.js +11 -7
  372. package/lib/common/components/shared/IfFeature/index.js +5 -3
  373. package/lib/common/components/shared/IfFeature/presenter.js +4 -2
  374. package/lib/common/components/shared/InteractionTypes/index.js +2 -1
  375. package/lib/common/components/shared/InteractionTypes/presenter.js +4 -2
  376. package/lib/common/components/shared/InteractionTypes/styles.js +2 -1
  377. package/lib/common/components/shared/InteractionTypes/theme.js +2 -1
  378. package/lib/common/components/shared/PaginatedCollection/index.js +4 -3
  379. package/lib/common/components/shared/PaginatedCollection/presenter.js +4 -2
  380. package/lib/common/components/shared/PaginatedCollection/styles.js +2 -1
  381. package/lib/common/components/shared/PaginatedCollection/theme.js +2 -1
  382. package/lib/common/components/shared/Paginator/index.js +4 -2
  383. package/lib/common/components/shared/Paginator/styles.js +2 -1
  384. package/lib/common/components/shared/Paginator/theme.js +2 -1
  385. package/lib/common/components/shared/PrintTrigger/index.js +5 -5
  386. package/lib/common/components/shared/PrintTrigger/presenter.js +5 -5
  387. package/lib/common/components/shared/TagDisplay/index.js +4 -2
  388. package/lib/common/components/shared/TagDisplay/styles.js +2 -1
  389. package/lib/common/components/shared/TagSelect/index.js +2 -1
  390. package/lib/common/components/shared/TagSelect/presenter.js +4 -2
  391. package/lib/common/components/shared/TagSuggestSelect/index.js +2 -1
  392. package/lib/common/components/shared/TagSuggestSelect/presenter.js +4 -2
  393. package/lib/common/components/shared/TagWrapper/index.js +2 -1
  394. package/lib/common/components/shared/TagWrapper/presenter.js +4 -2
  395. package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -2
  396. package/lib/common/components/shared/TimeUnitsInput/index.js +4 -2
  397. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +4 -2
  398. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -1
  399. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -1
  400. package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +5 -3
  401. package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +4 -2
  402. package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +19 -17
  403. package/lib/common/components/shared/errors/Errors.js +4 -2
  404. package/lib/common/components/shared/errors/styles.js +2 -1
  405. package/lib/common/components/shared/errors/theme.js +2 -1
  406. package/lib/common/components/shared/file_selector/FileSelector.js +4 -2
  407. package/lib/common/components/shared/file_selector/styles.js +2 -1
  408. package/lib/common/components/shared/file_selector/theme.js +2 -1
  409. package/lib/common/components/shared/functionality/componentWithOutsideClick.js +2 -1
  410. package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +2 -1
  411. package/lib/common/components/shared/functionality/disableDraggingOverride.js +3 -2
  412. package/lib/common/components/shared/functionality/makeEditable.js +5 -3
  413. package/lib/common/components/shared/functionality/makeScrollable.js +7 -4
  414. package/lib/common/components/shared/overlay/index.js +2 -1
  415. package/lib/common/components/shared/overlay/styles.js +2 -1
  416. package/lib/common/components/shared/overlay/theme.js +2 -1
  417. package/lib/common/components/shared/return_button/ReturnButton.js +4 -2
  418. package/lib/common/components/shared/spinner/Spinner.js +4 -2
  419. package/lib/common/components/shared/spinner/styles.js +2 -1
  420. package/lib/common/kinesis/QuizEventsLogger.js +7 -4
  421. package/lib/common/kinesis/StreamQueue.js +3 -2
  422. package/lib/common/kinesis/client.js +9 -5
  423. package/lib/common/kinesis/config.js +10 -6
  424. package/lib/common/kinesis/eventTypes.js +15 -8
  425. package/lib/common/middleware/alertTimerMiddleware.js +2 -1
  426. package/lib/common/middleware/crossDomainMessagingMiddleware.js +2 -1
  427. package/lib/common/middleware/eventLoggerMiddleware.js +2 -1
  428. package/lib/common/middleware/persistedStorageMiddleware.js +2 -1
  429. package/lib/common/middleware/quizTimerWebSocketMiddleware.js +14 -8
  430. package/lib/common/react-redux.js +3 -2
  431. package/lib/common/records/Alert.js +4 -2
  432. package/lib/common/records/Bank.js +4 -2
  433. package/lib/common/records/BankEntry.js +4 -2
  434. package/lib/common/records/Item.js +4 -2
  435. package/lib/common/records/ItemAnalysis.js +4 -2
  436. package/lib/common/records/QtiImport.js +4 -2
  437. package/lib/common/records/Quiz.js +4 -2
  438. package/lib/common/records/QuizAnalysis.js +4 -2
  439. package/lib/common/records/QuizEntry.js +4 -2
  440. package/lib/common/records/QuizSession.js +4 -2
  441. package/lib/common/records/QuizSessionEvent.js +4 -2
  442. package/lib/common/records/QuizSessionResult.js +4 -2
  443. package/lib/common/records/Response.js +4 -2
  444. package/lib/common/records/SessionItem.js +4 -2
  445. package/lib/common/records/SessionItemResult.js +4 -2
  446. package/lib/common/records/Stimulus.js +4 -2
  447. package/lib/common/records/baseRecord.js +3 -2
  448. package/lib/common/reducers/alerts.js +3 -2
  449. package/lib/common/reducers/analyses.js +28 -15
  450. package/lib/common/reducers/bankEntries.js +3 -2
  451. package/lib/common/reducers/bankSearch.js +3 -2
  452. package/lib/common/reducers/banks.js +3 -2
  453. package/lib/common/reducers/calls.js +3 -2
  454. package/lib/common/reducers/config.js +3 -2
  455. package/lib/common/reducers/dragAndDrop.js +3 -2
  456. package/lib/common/reducers/editing.js +3 -2
  457. package/lib/common/reducers/errorsShowing.js +3 -2
  458. package/lib/common/reducers/features.js +3 -2
  459. package/lib/common/reducers/grading.js +3 -2
  460. package/lib/common/reducers/interactionTypes.js +3 -2
  461. package/lib/common/reducers/items.js +3 -2
  462. package/lib/common/reducers/modal.js +3 -2
  463. package/lib/common/reducers/moderation.js +3 -2
  464. package/lib/common/reducers/modifications.js +3 -2
  465. package/lib/common/reducers/outcomes.js +3 -2
  466. package/lib/common/reducers/printing.js +3 -2
  467. package/lib/common/reducers/qtiImports.js +3 -2
  468. package/lib/common/reducers/quizEntries.js +3 -2
  469. package/lib/common/reducers/quizExport.js +3 -2
  470. package/lib/common/reducers/quizSessionEvents.js +3 -2
  471. package/lib/common/reducers/quizSessionResults.js +3 -2
  472. package/lib/common/reducers/quizSessions.js +3 -2
  473. package/lib/common/reducers/quizzes.js +3 -2
  474. package/lib/common/reducers/rce.js +3 -2
  475. package/lib/common/reducers/regrading.js +3 -2
  476. package/lib/common/reducers/reporting.js +3 -2
  477. package/lib/common/reducers/scrolling.js +3 -2
  478. package/lib/common/reducers/sessionItemResults.js +3 -2
  479. package/lib/common/reducers/sessionItems.js +3 -2
  480. package/lib/common/reducers/sharedBanks.js +3 -2
  481. package/lib/common/reducers/sidebar.js +3 -2
  482. package/lib/common/reducers/stimuli.js +3 -2
  483. package/lib/common/reducers/tagAssociations.js +3 -2
  484. package/lib/common/reducers/taking.js +3 -2
  485. package/lib/common/reducers/ui.js +3 -2
  486. package/lib/common/reducers/upload.js +3 -2
  487. package/lib/common/selectors/analyses.js +24 -13
  488. package/lib/common/selectors/calculator.js +0 -4
  489. package/lib/common/selectors/interactionTypes.js +4 -2
  490. package/lib/common/selectors/qtiImports.js +3 -2
  491. package/lib/common/selectors/quizSessionResults.js +1 -1
  492. package/lib/common/selectors/quizSessions.js +14 -8
  493. package/lib/common/selectors/quizzes.js +25 -13
  494. package/lib/common/selectors/rce.js +6 -4
  495. package/lib/common/selectors/reporting.js +3 -2
  496. package/lib/common/selectors/sessionItemResults.js +4 -3
  497. package/lib/common/selectors/sessionItems.js +4 -3
  498. package/lib/common/selectors/taking.js +11 -8
  499. package/lib/common/selectors/ui.js +3 -2
  500. package/lib/common/util/CustomPropTypes.js +5 -3
  501. package/lib/common/util/ElementsForSelectors.js +3 -2
  502. package/lib/common/util/ExhaustivePaginatedFetcher.js +2 -1
  503. package/lib/common/util/Fetcher.js +4 -2
  504. package/lib/common/util/MultiWeakMap.js +3 -2
  505. package/lib/common/util/PaginatedFetcher.js +4 -2
  506. package/lib/common/util/ThunkQueue.js +3 -2
  507. package/lib/common/util/TimeRecordingService.js +4 -2
  508. package/lib/common/util/TimerService.js +6 -3
  509. package/lib/common/util/cachePreviousArgs.js +3 -2
  510. package/lib/common/util/callHelpers.js +10 -6
  511. package/lib/common/util/componentForItem.js +4 -2
  512. package/lib/common/util/debounceLatestPromise.js +3 -2
  513. package/lib/common/util/formatTimespan.js +3 -2
  514. package/lib/common/util/generateDisplayPositions.js +3 -2
  515. package/lib/common/util/httpHeaders.js +8 -5
  516. package/lib/common/util/immutableHelpers.js +8 -5
  517. package/lib/common/util/instUIMessages.js +3 -2
  518. package/lib/common/util/interactionTypeMetadata.js +6 -4
  519. package/lib/common/util/interactionTypePropsHelper.js +5 -6
  520. package/lib/common/util/interactionTypeRecordForItem.js +2 -1
  521. package/lib/common/util/jsonify.js +4 -3
  522. package/lib/common/util/keyboardClickable.js +2 -1
  523. package/lib/common/util/mathRenderingUtils.js +4 -2
  524. package/lib/common/util/maxContent.js +3 -2
  525. package/lib/common/util/noop.js +3 -2
  526. package/lib/common/util/persistedState.js +2 -1
  527. package/lib/common/util/printUtils.js +6 -4
  528. package/lib/common/util/rceChecker.js +3 -2
  529. package/lib/common/util/renderAlerts.js +3 -2
  530. package/lib/common/util/serializeEvent.js +3 -2
  531. package/lib/common/util/sessionStore.js +4 -2
  532. package/lib/common/util/valMap.js +3 -2
  533. package/lib/common/util/warningHelpers.js +16 -9
  534. package/lib/common/util/windowChecks.js +12 -7
  535. package/lib/common/util/withCachedArguments.js +3 -2
  536. package/lib/common/util/withDynamoPagination.js +3 -2
  537. package/lib/common/util/withStateCache.js +2 -1
  538. package/lib/config.js +5 -3
  539. package/lib/configureStore.js +2 -1
  540. package/lib/grading/api/updateResults.js +3 -2
  541. package/lib/index.js +401 -402
  542. package/lib/messages/LocalStorageAdapter.js +4 -2
  543. package/lib/messages/LocalStorageLimits.js +2 -1
  544. package/lib/messages/StorageExhaustionError.js +3 -2
  545. package/lib/messages/postMessageService.js +3 -2
  546. package/lib/messages/subjectHandlers/forwardMessage.js +2 -1
  547. package/lib/messages/subjectHandlers/lti.capabilities.js +2 -1
  548. package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -1
  549. package/lib/messages/subjectHandlers/lti.frameResize.js +2 -1
  550. package/lib/messages/subjectHandlers/lti.get_data.js +2 -1
  551. package/lib/messages/subjectHandlers/lti.put_data.js +2 -1
  552. package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +4 -2
  553. package/lib/moderating/api/quizSessions.js +1 -1
  554. package/lib/moderating/components/events/Event.js +4 -2
  555. package/lib/moderating/components/events/PageBlurredEvent.js +4 -2
  556. package/lib/moderating/components/events/PageFocusedEvent.js +4 -2
  557. package/lib/moderating/components/events/RCEEvent.js +4 -2
  558. package/lib/moderating/components/events/ResponseEvent.js +4 -2
  559. package/lib/moderating/components/events/SessionStartEvent.js +4 -2
  560. package/lib/moderating/components/events/styles.js +2 -1
  561. package/lib/moderating/components/events/theme.js +2 -1
  562. package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -2
  563. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +2 -1
  564. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -2
  565. package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +4 -2
  566. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -1
  567. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -2
  568. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +4 -2
  569. package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +4 -2
  570. package/lib/moderating/components/resources/AccommodationsModal/index.js +4 -2
  571. package/lib/moderating/components/resources/ElapsedTime.js +4 -2
  572. package/lib/moderating/components/resources/ModerateTable/index.js +7 -4
  573. package/lib/moderating/components/resources/ModerateTable/presenter.js +4 -2
  574. package/lib/moderating/components/resources/ModerateTable/styles.js +2 -1
  575. package/lib/moderating/components/resources/ModerateTable/theme.js +2 -1
  576. package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +3 -2
  577. package/lib/moderating/components/resources/ModerateTableRow/index.js +3 -2
  578. package/lib/moderating/components/resources/ModerateTableRow/presenter.js +4 -2
  579. package/lib/moderating/components/resources/ModerateTableRow/story.js +2 -1
  580. package/lib/moderating/components/resources/ModerateTableRow/styles.js +2 -1
  581. package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -1
  582. package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -2
  583. package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +5 -3
  584. package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +4 -2
  585. package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +2 -1
  586. package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -2
  587. package/lib/moderating/components/sidebar/ModerateTray/index.js +4 -3
  588. package/lib/moderating/components/sidebar/ModerateTray/presenter.js +4 -2
  589. package/lib/moderating/components/sidebar/ResetQuiz/index.js +4 -3
  590. package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +4 -2
  591. package/lib/reduxStore.js +5 -4
  592. package/lib/reporting/api/fetchStudentAnalyses.js +3 -2
  593. package/lib/reporting/api/getAnalysesExport.js +3 -2
  594. package/lib/reporting/api/getAnalysesStatus.js +3 -2
  595. package/lib/reporting/api/getItemAnalyses.js +3 -2
  596. package/lib/reporting/api/getQuizAnalysis.js +3 -2
  597. package/lib/reporting/components/Caption/index.js +4 -2
  598. package/lib/reporting/components/Caption/styles.js +2 -1
  599. package/lib/reporting/components/Caption/theme.js +2 -1
  600. package/lib/reporting/components/MetricsListItem/index.js +4 -2
  601. package/lib/reporting/components/MetricsListItem/styles.js +2 -1
  602. package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -2
  603. package/lib/reporting/components/charts/CentileDistribution/index.js +2 -1
  604. package/lib/reporting/components/charts/CentileDistribution/presenter.js +4 -2
  605. package/lib/reporting/components/charts/CentileDistribution/styles.js +2 -1
  606. package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -1
  607. package/lib/reporting/components/charts/Distribution/CentileDistribution.js +4 -2
  608. package/lib/reporting/components/charts/Distribution/Distribution.js +2 -1
  609. package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -1
  610. package/lib/reporting/components/charts/Distribution/index.js +2 -1
  611. package/lib/reporting/components/charts/Distribution/presenter.js +7 -4
  612. package/lib/reporting/components/charts/Distribution/styles.js +2 -1
  613. package/lib/reporting/components/charts/Distribution/theme.js +2 -1
  614. package/lib/reporting/components/charts/Legend/index.js +4 -2
  615. package/lib/reporting/components/charts/Legend/styles.js +2 -1
  616. package/lib/reporting/components/charts/Legend/theme.js +2 -1
  617. package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -2
  618. package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -1
  619. package/lib/reporting/components/charts/QuintileDistribution/presenter.js +4 -2
  620. package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -1
  621. package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -1
  622. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +3 -2
  623. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -2
  624. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -1
  625. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +2 -1
  626. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +3 -2
  627. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +5 -3
  628. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -2
  629. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +2 -1
  630. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +2 -1
  631. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +4 -2
  632. package/lib/reporting/components/quizAnalysis/styles.js +2 -1
  633. package/lib/reporting/components/quizAnalysis/theme.js +2 -1
  634. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -1
  635. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -2
  636. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -1
  637. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -1
  638. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -2
  639. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -1
  640. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -1
  641. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -1
  642. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -2
  643. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -1
  644. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +2 -1
  645. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -2
  646. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -1
  647. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -1
  648. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -1
  649. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -1
  650. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -2
  651. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -1
  652. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -1
  653. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -1
  654. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +6 -6
  655. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +2 -1
  656. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -1
  657. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -2
  658. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -1
  659. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -1
  660. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -2
  661. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -1
  662. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -1
  663. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +2 -1
  664. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +4 -2
  665. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -1
  666. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -1
  667. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +4 -2
  668. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +2 -1
  669. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -2
  670. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -1
  671. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -1
  672. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +3 -2
  673. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -2
  674. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -1
  675. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -2
  676. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -1
  677. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +2 -1
  678. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -2
  679. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -1
  680. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -1
  681. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -2
  682. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -1
  683. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -1
  684. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +4 -2
  685. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -1
  686. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -2
  687. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -1
  688. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -1
  689. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -2
  690. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -1
  691. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +2 -1
  692. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +2 -1
  693. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +7 -4
  694. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +3 -2
  695. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -1
  696. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +2 -1
  697. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -1
  698. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +6 -4
  699. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -2
  700. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -1
  701. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -1
  702. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +4 -2
  703. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
  704. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
  705. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -1
  706. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +2 -1
  707. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -2
  708. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -1
  709. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -1
  710. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +2 -1
  711. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +3 -2
  712. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +3 -2
  713. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +4 -2
  714. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -2
  715. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -1
  716. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -1
  717. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +5 -3
  718. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +3 -2
  719. package/lib/reporting/components/resources/OutcomeAnalysis/index.js +5 -3
  720. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +4 -2
  721. package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -2
  722. package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +5 -3
  723. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -2
  724. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -1
  725. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -1
  726. package/lib/reporting/components/resources/ReportCard/index.js +4 -2
  727. package/lib/reporting/components/resources/ReportCard/styles.js +2 -1
  728. package/lib/reporting/components/resources/ReportCard/theme.js +2 -1
  729. package/lib/reporting/components/resources/ReportList/index.js +4 -2
  730. package/lib/reporting/components/resources/ReportList/styles.js +2 -1
  731. package/lib/reporting/components/resources/ReportList/theme.js +2 -1
  732. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -1
  733. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +3 -2
  734. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +3 -2
  735. package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -2
  736. package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +3 -2
  737. package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +3 -2
  738. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +3 -2
  739. package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +3 -2
  740. package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +2 -1
  741. package/lib/reporting/components/resources/common/ExportButton/index.js +2 -1
  742. package/lib/reporting/components/resources/common/errorCodes.js +16 -9
  743. package/lib/reporting/components/resources/common/errorMessages.js +18 -10
  744. package/lib/reporting/components/resources/common/exportReports.js +3 -2
  745. package/lib/reporting/components/resources/common/generateReports.js +5 -3
  746. package/lib/reporting/components/resources/common/propTypes.js +34 -18
  747. package/lib/reporting/components/resources/common/utils.js +6 -4
  748. package/lib/taking/api/taking.js +16 -14
  749. package/lib/taking/learnosity/index.js +1 -1
  750. package/package.json +15 -15
  751. package/CHANGELOG.md +0 -4724
@@ -10,13 +10,11 @@ import * as uiActions from "../../../common/actions/ui.js";
10
10
  import Bank from "../../../common/records/Bank.js";
11
11
  import { ADD_TO_BANK_MODAL_BANK_SELECTION, ADD_TO_BANK_MODAL } from '@instructure/quiz-common';
12
12
  import { getModalTrigger } from "../../../common/util/modalHelpers.js";
13
- import { featureOn } from "../../../common/util/featureCheck.js";
14
13
  export function mapStateToProps(state, props) {
15
14
  var selectedBankOption = state.getIn(['ui', ADD_TO_BANK_MODAL_BANK_SELECTION]);
16
15
  var selectedBank = selectedBankOption && new Bank(state.getIn(['banks', selectedBankOption]));
17
16
  return {
18
17
  canvasOrigin: state.getIn(['config', 'canvasOrigin']),
19
- checkBankedContentShareabilityEnabled: featureOn('check_banked_content_shareability'),
20
18
  checkContentShareability: props.entryType === 'Item' ? checkItemShareability : checkStimulusShareability,
21
19
  selectedBank: selectedBank,
22
20
  modalTrigger: getModalTrigger(state),
@@ -107,11 +107,10 @@ export var AddToBankModal = /*#__PURE__*/function (_Component) {
107
107
  var _this2 = this;
108
108
  var _this$props = this.props,
109
109
  canvasOrigin = _this$props.canvasOrigin,
110
- checkBankedContentShareabilityEnabled = _this$props.checkBankedContentShareabilityEnabled,
111
110
  modalOpen = _this$props.modalOpen,
112
111
  checkContentShareability = _this$props.checkContentShareability,
113
112
  workingEntry = _this$props.workingEntry;
114
- if (checkBankedContentShareabilityEnabled && modalOpen && !prevProps.modalOpen) {
113
+ if (modalOpen && !prevProps.modalOpen) {
115
114
  this.setState({
116
115
  contentShareable: 'loading'
117
116
  });
@@ -168,9 +167,8 @@ export var AddToBankModal = /*#__PURE__*/function (_Component) {
168
167
  bankType = _this$state.bankType,
169
168
  newBankTitle = _this$state.newBankTitle,
170
169
  contentShareable = _this$state.contentShareable;
171
- var checkBankedContentShareabilityEnabled = this.props.checkBankedContentShareabilityEnabled;
172
170
  var contentShareableLoading = contentShareable === 'loading';
173
- var disabled = bankType === 'existing' && !this.props.selectedBank || bankType === 'new' && (!newBankTitle || !newBankTitle.trim()) || checkBankedContentShareabilityEnabled && contentShareableLoading;
171
+ var disabled = bankType === 'existing' && !this.props.selectedBank || bankType === 'new' && (!newBankTitle || !newBankTitle.trim()) || contentShareableLoading;
174
172
  return /*#__PURE__*/React.createElement(Button, {
175
173
  type: "button",
176
174
  color: "primary",
@@ -178,7 +176,7 @@ export var AddToBankModal = /*#__PURE__*/function (_Component) {
178
176
  disabled: disabled,
179
177
  margin: XSMALL_SIDE_MARGIN,
180
178
  "data-automation": "sdk-add-to-bank-button"
181
- }, checkBankedContentShareabilityEnabled && !contentShareableLoading && contentShareable !== 'true' ? t('Add anyway') : t('Add'));
179
+ }, !contentShareableLoading && contentShareable !== 'true' ? t('Add anyway') : t('Add'));
182
180
  }
183
181
  }, {
184
182
  key: "renderBankTypeContent",
@@ -200,33 +198,31 @@ export var AddToBankModal = /*#__PURE__*/function (_Component) {
200
198
  }, {
201
199
  key: "renderContentShareabilityMessage",
202
200
  value: function renderContentShareabilityMessage() {
203
- if (this.props.checkBankedContentShareabilityEnabled) {
204
- var content = null;
205
- if (this.state.contentShareable === 'loading') {
206
- content = /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Spinner, {
207
- size: "x-small",
208
- renderTitle: t('Checking content shareability...')
209
- }), "\xA0", t('Validating content...'));
210
- } else if (this.state.contentShareable === 'true') {
211
- // No message needed. The API call to check shareability is very fast in most cases,
212
- // so the user may be distracted by a message here.
213
- content = null;
214
- } else if (this.state.contentShareable === 'false') {
215
- content = /*#__PURE__*/React.createElement(Flex, null, _ref2, /*#__PURE__*/React.createElement(Flex.Item, {
216
- shouldShrink: true
217
- }, /*#__PURE__*/React.createElement(Text, {
218
- color: "danger"
219
- }, t('You are attempting to add content containing course links which may not work when used in other courses.'))));
220
- } else {
221
- content = /*#__PURE__*/React.createElement(Text, {
222
- color: "warning"
223
- }, _ref3, "\xA0", t('There was an error attempting to validate shareability.'));
224
- }
225
- return /*#__PURE__*/React.createElement(View, {
226
- as: "div",
227
- margin: "small 0 0 0"
228
- }, content);
201
+ var content = null;
202
+ if (this.state.contentShareable === 'loading') {
203
+ content = /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Spinner, {
204
+ size: "x-small",
205
+ renderTitle: t('Checking content shareability...')
206
+ }), "\xA0", t('Validating content...'));
207
+ } else if (this.state.contentShareable === 'true') {
208
+ // No message needed. The API call to check shareability is very fast in most cases,
209
+ // so the user may be distracted by a message here.
210
+ content = null;
211
+ } else if (this.state.contentShareable === 'false') {
212
+ content = /*#__PURE__*/React.createElement(Flex, null, _ref2, /*#__PURE__*/React.createElement(Flex.Item, {
213
+ shouldShrink: true
214
+ }, /*#__PURE__*/React.createElement(Text, {
215
+ color: "danger"
216
+ }, t('You are attempting to add content containing course links which may not work when used in other courses.'))));
217
+ } else {
218
+ content = /*#__PURE__*/React.createElement(Text, {
219
+ color: "warning"
220
+ }, _ref3, "\xA0", t('There was an error attempting to validate shareability.'));
229
221
  }
222
+ return /*#__PURE__*/React.createElement(View, {
223
+ as: "div",
224
+ margin: "small 0 0 0"
225
+ }, content);
230
226
  }
231
227
  }, {
232
228
  key: "renderContent",
@@ -269,7 +265,6 @@ export var AddToBankModal = /*#__PURE__*/function (_Component) {
269
265
  }(Component);
270
266
  AddToBankModal.propTypes = {
271
267
  canvasOrigin: PropTypes.string,
272
- checkBankedContentShareabilityEnabled: PropTypes.bool,
273
268
  checkContentShareability: PropTypes.func.isRequired,
274
269
  closeModal: PropTypes.func.isRequired,
275
270
  createBank: PropTypes.func.isRequired,
@@ -295,7 +290,6 @@ AddToBankModal.propTypes = {
295
290
  };
296
291
  AddToBankModal.defaultProps = {
297
292
  canvasOrigin: '',
298
- checkBankedContentShareabilityEnabled: false,
299
293
  handleValidationErrorsFromApi: function handleValidationErrorsFromApi() {},
300
294
  onAdd: function onAdd() {},
301
295
  onContinue: function onContinue() {},
@@ -6,7 +6,6 @@ import { showError, hideError } from "../../../../actions/errorsShowing.js";
6
6
  import { screenreaderNotification } from "../../../../actions/alerts.js";
7
7
  import { clearNextQuizEntry } from "../../../../actions/modifications.js";
8
8
  import { withConfirm } from "../../../../actions/modal.js";
9
- import { featureOn } from "../../../../util/featureCheck.js";
10
9
  import EntrySave from "./presenter.js";
11
10
  export function mapStateToProps(state, props) {
12
11
  // Error Related:
@@ -14,7 +13,6 @@ export function mapStateToProps(state, props) {
14
13
  var isValid = props.isValid !== void 0 ? props.isValid : workingEntry.isValid();
15
14
  return {
16
15
  canvasOrigin: state.getIn(['config', 'canvasOrigin']),
17
- checkBankedContentShareabilityEnabled: featureOn('check_banked_content_shareability'),
18
16
  checkContentShareability: props.entry.isStimulus ? checkStimulusShareability : checkItemShareability,
19
17
  isValid: isValid
20
18
  };
@@ -95,7 +95,7 @@ export var EntrySave = /*#__PURE__*/function (_Component) {
95
95
  _context2.next = 5;
96
96
  break;
97
97
  }
98
- if (_this.props.checkBankedContentShareabilityEnabled && _this.props.shouldValidateShareableContent) {
98
+ if (_this.props.shouldValidateShareableContent) {
99
99
  _this.confirmShareableContent();
100
100
  } else {
101
101
  _this.successfulSubmit();
@@ -228,7 +228,6 @@ export var EntrySave = /*#__PURE__*/function (_Component) {
228
228
  EntrySave.propTypes = {
229
229
  cancelHandler: PropTypes.func,
230
230
  canvasOrigin: PropTypes.string,
231
- checkBankedContentShareabilityEnabled: PropTypes.bool,
232
231
  checkContentShareability: PropTypes.func.isRequired,
233
232
  clearChanges: PropTypes.func.isRequired,
234
233
  // From connected component
@@ -253,7 +252,6 @@ EntrySave.propTypes = {
253
252
  EntrySave.defaultProps = {
254
253
  cancelHandler: noop,
255
254
  canvasOrigin: '',
256
- checkBankedContentShareabilityEnabled: false,
257
255
  displayPosition: null,
258
256
  disableSubmit: false,
259
257
  guid: null,
@@ -38,7 +38,6 @@ export function mapStateToProps(state, props) {
38
38
  partialDeepScoringEnabled: featureOn('partial_deep_scoring'),
39
39
  partialScoringEnabled: featureOn('partial_scoring'),
40
40
  quizId: getActiveQuizId(state),
41
- showCalculator: featureOn('calculator_per_question'),
42
41
  scope: props.scope,
43
42
  rootAccountUuid: state.getIn(['outcomes', 'externalAccountUuid'])
44
43
  };
@@ -173,7 +173,6 @@ ItemEdit.propTypes = {
173
173
  setOneQuestionAtATime: PropTypes.func.isRequired,
174
174
  setUploadStatus: PropTypes.func.isRequired,
175
175
  initialFocusId: PropTypes.string,
176
- showCalculator: PropTypes.bool,
177
176
  clearValidationErrorsFromApi: PropTypes.func.isRequired,
178
177
  validationErrorsFromApi: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.shape({
179
178
  type: PropTypes.string,
@@ -200,7 +199,6 @@ ItemEdit.defaultProps = {
200
199
  partialScoringEnabled: false,
201
200
  quizId: null,
202
201
  initialFocusId: null,
203
- showCalculator: false,
204
202
  validationErrorsFromApi: {},
205
203
  scope: {},
206
204
  rootAccountUuid: null
@@ -6,13 +6,11 @@ import { PRINT_FONT_SIZE_MODAL, QUIZ_SESSION_GRADE_SCOPE } from '@instructure/qu
6
6
  import * as printingActions from "../../../actions/printing.js";
7
7
  import * as modalActions from "../../../actions/modal.js";
8
8
  import * as quizEntriesApiActions from "../../../../building/api/quizEntries.js";
9
- import { featureOn } from "../../../util/featureCheck.js";
10
9
  import { getConfigTokenScope } from "../../../selectors/config.js";
11
10
  export function mapStateToProps(state) {
12
11
  return {
13
12
  activeQuizId: state.getIn(['quizzes', 'activeQuizId']),
14
13
  appContainer: state.getIn(['ui', 'appContainer']),
15
- asyncSampleItemsEnabled: featureOn('async_sample_items'),
16
14
  bankQuizEntryIds: state.get('quizEntries', Map()).filter(function (quizEntry) {
17
15
  return quizEntry.get('entryType') === 'Bank';
18
16
  }).keySeq().toArray(),
@@ -34,7 +34,7 @@ export var PrintTrigger = /*#__PURE__*/function (_Component) {
34
34
  waitingForPrintingToBeReady: true
35
35
  });
36
36
  var sampleItemFetchPromises = [];
37
- if (_this.props.asyncSampleItemsEnabled && !_this.props.isGrading) {
37
+ if (!_this.props.isGrading) {
38
38
  var _this$props = _this.props,
39
39
  activeQuizId = _this$props.activeQuizId,
40
40
  bankQuizEntryIds = _this$props.bankQuizEntryIds,
@@ -108,7 +108,6 @@ export var PrintTrigger = /*#__PURE__*/function (_Component) {
108
108
  PrintTrigger.propTypes = {
109
109
  activeQuizId: PropTypes.string,
110
110
  appContainer: CustomPropTypes.selectors,
111
- asyncSampleItemsEnabled: PropTypes.bool,
112
111
  bankQuizEntryIds: PropTypes.arrayOf(PropTypes.string),
113
112
  closePrintFontSizeModal: PropTypes.func.isRequired,
114
113
  getSampleItemsForQuizEntry: PropTypes.func.isRequired,
@@ -124,7 +123,6 @@ PrintTrigger.propTypes = {
124
123
  PrintTrigger.defaultProps = {
125
124
  activeQuizId: null,
126
125
  appContainer: null,
127
- asyncSampleItemsEnabled: false,
128
126
  bankQuizEntryIds: [],
129
127
  isGrading: false,
130
128
  persistedPrintFontSize: 'medium',
@@ -1,4 +1,3 @@
1
- import { featureOn } from "../util/featureCheck.js";
2
1
  import { getCurrentSessionItemPosition } from "./taking.js";
3
2
  import { getItemByPosition } from "./sessionItems.js";
4
3
  import { isOneQuestionAtATime } from "../selectors/quizSessions.js"; // Helpers
@@ -11,9 +10,6 @@ function anyActiveSessionItemsHaveCalculators(state) {
11
10
 
12
11
  // Exports
13
12
  export function hasVisibleQuestionCalculator(state) {
14
- if (!featureOn('calculator_per_question')) {
15
- return false;
16
- }
17
13
  if (isOneQuestionAtATime(state)) {
18
14
  // If one question at a time, does current question have a calculator?
19
15
  var position = getCurrentSessionItemPosition(state);
@@ -32,9 +32,6 @@ export var propsForInteractionEdit = function propsForInteractionEdit(props, add
32
32
  validationErrorsFromApi: props.validationErrorsFromApi,
33
33
  errorsAreShowing: props.errorsAreShowing,
34
34
  fitbCommonWordbankEnabled: props.fitbCommonWordbankEnabled,
35
- hiddenOptions: {
36
- calculator: !props.showCalculator
37
- },
38
35
  interactionData: item.interactionData,
39
36
  interactionType: props.entry.getInteractionType(),
40
37
  // SHIM: canvas-rce breaks on null values now
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.updateBankEntry = exports.removeBankEntry = exports.moveBankEntryFromQuizEntry = exports.moveBankEntry = exports.getBankEntry = exports.getBankEntries = exports.createEntryAndBankEntry = exports.createBankEntry = exports.copyOrMoveBankEntry = exports.copyBankEntry = exports.cloneBankEntry = void 0;
7
+ exports.removeBankEntry = exports.updateBankEntry = exports.createBankEntry = exports.copyOrMoveBankEntry = exports.moveBankEntry = exports.copyBankEntry = exports.moveBankEntryFromQuizEntry = exports.createEntryAndBankEntry = exports.cloneBankEntry = exports.getBankEntry = exports.getBankEntries = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _ui = require("../../common/actions/ui.js");
@@ -18,7 +18,7 @@ var _helpers = require("../../common/api/helpers.js");
18
18
  var _get = _interopRequireDefault(require("lodash/get"));
19
19
  var _quizCommon = require("@instructure/quiz-common");
20
20
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
21
- var getBankEntries = exports.getBankEntries = function getBankEntries(bankId, useBankSearch) {
21
+ var getBankEntries = function getBankEntries(bankId, useBankSearch) {
22
22
  var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
23
23
  var page = params.page,
24
24
  text = params.text,
@@ -66,7 +66,8 @@ var getBankEntries = exports.getBankEntries = function getBankEntries(bankId, us
66
66
  });
67
67
  };
68
68
  };
69
- var getBankEntry = exports.getBankEntry = function getBankEntry(bankId, bankEntryId) {
69
+ exports.getBankEntries = getBankEntries;
70
+ var getBankEntry = function getBankEntry(bankId, bankEntryId) {
70
71
  var url = "/api/banks/".concat(bankId, "/bank_entries/").concat(bankEntryId);
71
72
  return function (dispatch, getState) {
72
73
  var fetcher = new _Fetcher.default({
@@ -79,7 +80,8 @@ var getBankEntry = exports.getBankEntry = function getBankEntry(bankId, bankEntr
79
80
  });
80
81
  };
81
82
  };
82
- var cloneBankEntry = exports.cloneBankEntry = function cloneBankEntry(bankEntry, createEntryCb) {
83
+ exports.getBankEntry = getBankEntry;
84
+ var cloneBankEntry = function cloneBankEntry(bankEntry, createEntryCb) {
83
85
  var updateBankEntryCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : updateBankEntry;
84
86
  var entry = bankEntry.getEntry();
85
87
  var workingEntry = entry.getWorkingInstance();
@@ -92,7 +94,8 @@ var cloneBankEntry = exports.cloneBankEntry = function cloneBankEntry(bankEntry,
92
94
  });
93
95
  };
94
96
  };
95
- var createEntryAndBankEntry = exports.createEntryAndBankEntry = function createEntryAndBankEntry(bankId, entry, bankEntry, createEntryCb) {
97
+ exports.cloneBankEntry = cloneBankEntry;
98
+ var createEntryAndBankEntry = function createEntryAndBankEntry(bankId, entry, bankEntry, createEntryCb) {
96
99
  var createBankEntryCb = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : createBankEntry;
97
100
  return function (dispatch, getState) {
98
101
  return dispatch(createEntryCb(entry, bankId, 'bank')).then(function (entryData) {
@@ -100,7 +103,8 @@ var createEntryAndBankEntry = exports.createEntryAndBankEntry = function createE
100
103
  });
101
104
  };
102
105
  };
103
- var moveBankEntryFromQuizEntry = exports.moveBankEntryFromQuizEntry = function moveBankEntryFromQuizEntry(sourceQuizId, sourceEntryId, sourceEntryType, destinationBankId) {
106
+ exports.createEntryAndBankEntry = createEntryAndBankEntry;
107
+ var moveBankEntryFromQuizEntry = function moveBankEntryFromQuizEntry(sourceQuizId, sourceEntryId, sourceEntryType, destinationBankId) {
104
108
  var body = {
105
109
  source_entry_id: sourceEntryId,
106
110
  source_entry_type: sourceEntryType
@@ -110,7 +114,8 @@ var moveBankEntryFromQuizEntry = exports.moveBankEntryFromQuizEntry = function m
110
114
  };
111
115
  return copyOrMoveBankEntry(body, destinationBankId, 'move_from_quiz_entry', query_params);
112
116
  };
113
- var copyBankEntry = exports.copyBankEntry = function copyBankEntry(sourceBankId, bankEntryId, destinationBankId) {
117
+ exports.moveBankEntryFromQuizEntry = moveBankEntryFromQuizEntry;
118
+ var copyBankEntry = function copyBankEntry(sourceBankId, bankEntryId, destinationBankId) {
114
119
  var body = {
115
120
  source_bank_id: sourceBankId,
116
121
  source_bank_entry_id: bankEntryId
@@ -118,7 +123,8 @@ var copyBankEntry = exports.copyBankEntry = function copyBankEntry(sourceBankId,
118
123
  var followUpActions = [(0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(destinationBankId))];
119
124
  return copyOrMoveBankEntry(body, destinationBankId, 'copy', null, followUpActions);
120
125
  };
121
- var moveBankEntry = exports.moveBankEntry = function moveBankEntry(sourceBankId, bankEntryId, destinationBankId) {
126
+ exports.copyBankEntry = copyBankEntry;
127
+ var moveBankEntry = function moveBankEntry(sourceBankId, bankEntryId, destinationBankId) {
122
128
  var body = {
123
129
  source_bank_id: sourceBankId,
124
130
  source_bank_entry_id: bankEntryId
@@ -126,7 +132,8 @@ var moveBankEntry = exports.moveBankEntry = function moveBankEntry(sourceBankId,
126
132
  var followUpActions = [(0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(destinationBankId)), (0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(sourceBankId)), (0, _banks2.getBank)(sourceBankId)];
127
133
  return copyOrMoveBankEntry(body, destinationBankId, 'move', null, followUpActions);
128
134
  };
129
- var copyOrMoveBankEntry = exports.copyOrMoveBankEntry = function copyOrMoveBankEntry(body, destinationBankId, operation, query_params) {
135
+ exports.moveBankEntry = moveBankEntry;
136
+ var copyOrMoveBankEntry = function copyOrMoveBankEntry(body, destinationBankId, operation, query_params) {
130
137
  var followUpActions = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : [];
131
138
  var url = "/api/banks/".concat(destinationBankId, "/bank_entries/").concat(operation);
132
139
  return function (dispatch, getState) {
@@ -145,7 +152,8 @@ var copyOrMoveBankEntry = exports.copyOrMoveBankEntry = function copyOrMoveBankE
145
152
  });
146
153
  };
147
154
  };
148
- var createBankEntry = exports.createBankEntry = function createBankEntry(bankId, entryType, entryId) {
155
+ exports.copyOrMoveBankEntry = copyOrMoveBankEntry;
156
+ var createBankEntry = function createBankEntry(bankId, entryType, entryId) {
149
157
  var url = "/api/banks/".concat(bankId, "/bank_entries");
150
158
  return function (dispatch, getState) {
151
159
  var newBankEntryData = JSON.stringify({
@@ -167,7 +175,8 @@ var createBankEntry = exports.createBankEntry = function createBankEntry(bankId,
167
175
  });
168
176
  };
169
177
  };
170
- var updateBankEntry = exports.updateBankEntry = function updateBankEntry(bankId, bankEntryId, params) {
178
+ exports.createBankEntry = createBankEntry;
179
+ var updateBankEntry = function updateBankEntry(bankId, bankEntryId, params) {
171
180
  var url = "/api/banks/".concat(bankId, "/bank_entries/").concat(bankEntryId);
172
181
  return function (dispatch, getState) {
173
182
  var fetcher = new _Fetcher.default({
@@ -192,7 +201,8 @@ var updateBankEntry = exports.updateBankEntry = function updateBankEntry(bankId,
192
201
  });
193
202
  };
194
203
  };
195
- var removeBankEntry = exports.removeBankEntry = function removeBankEntry(bankId, bankEntryId) {
204
+ exports.updateBankEntry = updateBankEntry;
205
+ var removeBankEntry = function removeBankEntry(bankId, bankEntryId) {
196
206
  var url = "/api/banks/".concat(bankId, "/bank_entries/").concat(bankEntryId);
197
207
  return function (dispatch, getState) {
198
208
  var fetcher = new _Fetcher.default({
@@ -203,4 +213,5 @@ var removeBankEntry = exports.removeBankEntry = function removeBankEntry(bankId,
203
213
  return dispatch([(0, _banks.disassociateEntry)(bankId, bankEntryId), (0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(bankId)), (0, _banks2.getBank)(bankId), (0, _bankEntries.archiveBankEntry)(bankEntryId)]);
204
214
  });
205
215
  };
206
- };
216
+ };
217
+ exports.removeBankEntry = removeBankEntry;
@@ -4,9 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getBanks = exports.getBank = exports.getAllBanks = exports.deleteBank = exports.createBankCloneJob = exports.createBank = void 0;
8
7
  exports.getExistingBankAndEntries = getExistingBankAndEntries;
9
- exports.updateSharedBankPermission = exports.updateBank = exports.shareBank = exports.getSpecificBanks = exports.getSharedBanks = exports.getSharedBank = void 0;
8
+ exports.createBankCloneJob = exports.updateSharedBankPermission = exports.getSharedBanks = exports.getSharedBank = exports.shareBank = exports.deleteBank = exports.updateBank = exports.createBank = exports.getSpecificBanks = exports.getBank = exports.getAllBanks = exports.getBanks = void 0;
10
9
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
11
  var _Fetcher = _interopRequireDefault(require("../../common/util/Fetcher.js"));
@@ -36,7 +35,7 @@ var _fetchBanks = function _fetchBanks(dispatch) {
36
35
  return pageData;
37
36
  });
38
37
  };
39
- var getBanks = exports.getBanks = function getBanks() {
38
+ var getBanks = function getBanks() {
40
39
  var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
41
40
  var usedByCourseEnabled = arguments.length > 1 ? arguments[1] : void 0;
42
41
  var getCourseAssignments = arguments.length > 2 ? arguments[2] : void 0;
@@ -54,7 +53,8 @@ var getBanks = exports.getBanks = function getBanks() {
54
53
  }
55
54
  };
56
55
  };
57
- var getAllBanks = exports.getAllBanks = function getAllBanks() {
56
+ exports.getBanks = getBanks;
57
+ var getAllBanks = function getAllBanks() {
58
58
  var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
59
59
  return function (dispatch, getState) {
60
60
  var fetcher = new _ExhaustivePaginatedFetcher.default();
@@ -68,7 +68,8 @@ var getAllBanks = exports.getAllBanks = function getAllBanks() {
68
68
  });
69
69
  };
70
70
  };
71
- var getBank = exports.getBank = function getBank(bankId) {
71
+ exports.getAllBanks = getAllBanks;
72
+ var getBank = function getBank(bankId) {
72
73
  return function (dispatch, getState) {
73
74
  var fetcher = new _Fetcher.default({
74
75
  onError: (0, _helpers.handleError)(dispatch, (0, _formatMessage.default)('Failed to fetch bank.'))
@@ -84,7 +85,8 @@ var getBank = exports.getBank = function getBank(bankId) {
84
85
  });
85
86
  };
86
87
  };
87
- var getSpecificBanks = exports.getSpecificBanks = function getSpecificBanks() {
88
+ exports.getBank = getBank;
89
+ var getSpecificBanks = function getSpecificBanks() {
88
90
  var bankIds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
89
91
  return function (dispatch, getState) {
90
92
  var fetcher = new _Fetcher.default({
@@ -99,7 +101,8 @@ var getSpecificBanks = exports.getSpecificBanks = function getSpecificBanks() {
99
101
  });
100
102
  };
101
103
  };
102
- var createBank = exports.createBank = function createBank(newBank, shareWithCourseUuid) {
104
+ exports.getSpecificBanks = getSpecificBanks;
105
+ var createBank = function createBank(newBank, shareWithCourseUuid) {
103
106
  return function (dispatch, getState) {
104
107
  var newBankData = JSON.stringify({
105
108
  bank: {
@@ -121,6 +124,7 @@ var createBank = exports.createBank = function createBank(newBank, shareWithCour
121
124
  };
122
125
 
123
126
  // not an action creator
127
+ exports.createBank = createBank;
124
128
  var simpleShareWithCourse = function simpleShareWithCourse(dispatch, bankId, courseUuid) {
125
129
  var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/shared_banks");
126
130
  var shareBankData = JSON.stringify({
@@ -143,7 +147,7 @@ function getExistingBankAndEntries(bankId) {
143
147
  return dispatch([(0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(bankId)), getBank(bankId)]);
144
148
  };
145
149
  }
146
- var updateBank = exports.updateBank = function updateBank(bank) {
150
+ var updateBank = function updateBank(bank) {
147
151
  var clearPagination = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
148
152
  var url = "".concat(banksApiEndpoint, "/").concat(bank.id);
149
153
  return function (dispatch, getState) {
@@ -169,7 +173,8 @@ var updateBank = exports.updateBank = function updateBank(bank) {
169
173
  });
170
174
  };
171
175
  };
172
- var deleteBank = exports.deleteBank = function deleteBank(bankId) {
176
+ exports.updateBank = updateBank;
177
+ var deleteBank = function deleteBank(bankId) {
173
178
  (0, _copyingBanksPoller.removeFromPolling)([bankId]);
174
179
  var url = "".concat(banksApiEndpoint, "/").concat(bankId);
175
180
  return function (dispatch, getState) {
@@ -194,7 +199,8 @@ var deleteBank = exports.deleteBank = function deleteBank(bankId) {
194
199
  });
195
200
  };
196
201
  };
197
- var shareBank = exports.shareBank = function shareBank(_shareBank) {
202
+ exports.deleteBank = deleteBank;
203
+ var shareBank = function shareBank(_shareBank) {
198
204
  var getUserInfo = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _lodash.noop;
199
205
  var url = "".concat(banksApiEndpoint, "/").concat(_shareBank.bankId, "/shared_banks");
200
206
  return function (dispatch, getState) {
@@ -239,7 +245,8 @@ var shareBank = exports.shareBank = function shareBank(_shareBank) {
239
245
  });
240
246
  };
241
247
  };
242
- var getSharedBank = exports.getSharedBank = function getSharedBank(bankId, entityType, entityId) {
248
+ exports.shareBank = shareBank;
249
+ var getSharedBank = function getSharedBank(bankId, entityType, entityId) {
243
250
  var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/shared_banks");
244
251
  var params = {
245
252
  entity_type: entityType,
@@ -270,7 +277,8 @@ var getSharedBank = exports.getSharedBank = function getSharedBank(bankId, entit
270
277
  });
271
278
  };
272
279
  };
273
- var getSharedBanks = exports.getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, getAccountInfo) {
280
+ exports.getSharedBank = getSharedBank;
281
+ var getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, getAccountInfo) {
274
282
  var url = "".concat(banksApiEndpoint, "/").concat(bank.id, "/shared_banks");
275
283
  return function (dispatch, getState) {
276
284
  var fetcher = new _Fetcher.default({
@@ -369,7 +377,8 @@ var getSharedBanks = exports.getSharedBanks = function getSharedBanks(bank, getU
369
377
  });
370
378
  };
371
379
  };
372
- var updateSharedBankPermission = exports.updateSharedBankPermission = function updateSharedBankPermission(bankId, sharedBankId, permission) {
380
+ exports.getSharedBanks = getSharedBanks;
381
+ var updateSharedBankPermission = function updateSharedBankPermission(bankId, sharedBankId, permission) {
373
382
  var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/shared_banks/").concat(sharedBankId);
374
383
  return function (dispatch, getState) {
375
384
  var shareBankData = JSON.stringify({
@@ -391,7 +400,8 @@ var updateSharedBankPermission = exports.updateSharedBankPermission = function u
391
400
  });
392
401
  };
393
402
  };
394
- var createBankCloneJob = exports.createBankCloneJob = function createBankCloneJob(bankId) {
403
+ exports.updateSharedBankPermission = updateSharedBankPermission;
404
+ var createBankCloneJob = function createBankCloneJob(bankId) {
395
405
  var userId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _uuid.NIL;
396
406
  var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/bank_clone_jobs");
397
407
  return function (dispatch, getState) {
@@ -407,4 +417,5 @@ var createBankCloneJob = exports.createBankCloneJob = function createBankCloneJo
407
417
  body: field_overrides
408
418
  });
409
419
  };
410
- };
420
+ };
421
+ exports.createBankCloneJob = createBankCloneJob;
@@ -12,7 +12,7 @@ var _alerts = require("../../common/actions/alerts.js");
12
12
  var _banks = require("./banks.js");
13
13
  var pollingBanks = [];
14
14
  var currentlyPolling = false;
15
- var addToPolling = exports.addToPolling = function addToPolling(bankId, bankTitle) {
15
+ var addToPolling = function addToPolling(bankId, bankTitle) {
16
16
  var getSpecificBanksFn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _banks.getSpecificBanks;
17
17
  return function (dispatch) {
18
18
  pollingBanks.push({
@@ -25,11 +25,13 @@ var addToPolling = exports.addToPolling = function addToPolling(bankId, bankTitl
25
25
  }
26
26
  };
27
27
  };
28
- var removeFromPolling = exports.removeFromPolling = function removeFromPolling(removeIds) {
28
+ exports.addToPolling = addToPolling;
29
+ var removeFromPolling = function removeFromPolling(removeIds) {
29
30
  pollingBanks = pollingBanks.filter(function (bank) {
30
31
  return !removeIds.includes(bank.id);
31
32
  });
32
33
  };
34
+ exports.removeFromPolling = removeFromPolling;
33
35
  var handlePollingBanks = /*#__PURE__*/function () {
34
36
  var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(dispatch) {
35
37
  var getSpecificBanksFn,
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getTagSuggestions = exports.deleteTagAssociations = exports.createTagAssociations = void 0;
7
+ exports.deleteTagAssociations = exports.createTagAssociations = exports.getTagSuggestions = void 0;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _Fetcher = _interopRequireDefault(require("../../common/util/Fetcher.js"));
@@ -12,7 +12,7 @@ var _helpers = require("../../common/api/helpers.js");
12
12
  var _tagAssociations = require("../../common/actions/tagAssociations.js");
13
13
  var _quizCommon = require("@instructure/quiz-common");
14
14
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
15
- var getTagSuggestions = exports.getTagSuggestions = function getTagSuggestions(entryType, entryId, text) {
15
+ var getTagSuggestions = function getTagSuggestions(entryType, entryId, text) {
16
16
  return function (dispatch, getState) {
17
17
  var url = '/api/tags';
18
18
  var urlParams = {
@@ -27,6 +27,7 @@ var getTagSuggestions = exports.getTagSuggestions = function getTagSuggestions(e
27
27
  });
28
28
  };
29
29
  };
30
+ exports.getTagSuggestions = getTagSuggestions;
30
31
  var createTagAssociation = function createTagAssociation(dispatch, bankEntryId, entityType, entityId, tagValue) {
31
32
  var url = "/api/bank_entries/".concat(bankEntryId, "/tag_associations");
32
33
  var fetcher = new _Fetcher.default({
@@ -41,7 +42,7 @@ var createTagAssociation = function createTagAssociation(dispatch, bankEntryId,
41
42
  return dispatch((0, _tagAssociations.addTagAssociation)(entityType, entityId, tagAssociation));
42
43
  });
43
44
  };
44
- var createTagAssociations = exports.createTagAssociations = function createTagAssociations(bankEntryId, entityType, entityId, tagValues) {
45
+ var createTagAssociations = function createTagAssociations(bankEntryId, entityType, entityId, tagValues) {
45
46
  return function (dispatch, getState) {
46
47
  return Promise.all(tagValues.map(/*#__PURE__*/function () {
47
48
  var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(tagValue) {
@@ -66,6 +67,7 @@ var createTagAssociations = exports.createTagAssociations = function createTagAs
66
67
  }()));
67
68
  };
68
69
  };
70
+ exports.createTagAssociations = createTagAssociations;
69
71
  var deleteTagAssociation = function deleteTagAssociation(dispatch, bankEntryId, entityType, entityId, tagAssociationId) {
70
72
  var url = "/api/bank_entries/".concat(bankEntryId, "/tag_associations/").concat(tagAssociationId);
71
73
  var fetcher = new _Fetcher.default({
@@ -76,7 +78,7 @@ var deleteTagAssociation = function deleteTagAssociation(dispatch, bankEntryId,
76
78
  return dispatch([(0, _tagAssociations.removeTagAssociation)(entityType, entityId, tagAssociationId)]);
77
79
  });
78
80
  };
79
- var deleteTagAssociations = exports.deleteTagAssociations = function deleteTagAssociations(bankEntryId, entityType, entityId, tagAssociationIds) {
81
+ var deleteTagAssociations = function deleteTagAssociations(bankEntryId, entityType, entityId, tagAssociationIds) {
80
82
  return function (dispatch, getState) {
81
83
  return Promise.all(tagAssociationIds.map(/*#__PURE__*/function () {
82
84
  var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(tagAssociationId) {
@@ -100,4 +102,5 @@ var deleteTagAssociations = exports.deleteTagAssociations = function deleteTagAs
100
102
  };
101
103
  }()));
102
104
  };
103
- };
105
+ };
106
+ exports.deleteTagAssociations = deleteTagAssociations;
@@ -28,5 +28,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
28
28
  getInteractionTypes: (0, _redux.bindActionCreators)(_interactionTypes.interactionTypeFetch, dispatch)
29
29
  };
30
30
  };
31
- var AddBankEntryModal = exports.AddBankEntryModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.AddBankEntryModal);
32
- var _default = exports.default = AddBankEntryModal;
31
+ var AddBankEntryModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.AddBankEntryModal);
32
+ exports.AddBankEntryModal = AddBankEntryModal;
33
+ var _default = AddBankEntryModal;
34
+ exports.default = _default;
@@ -20,7 +20,7 @@ var _uiHeading = require("@instructure/ui-heading");
20
20
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
21
21
  var _index = _interopRequireDefault(require("../../../common/components/shared/InteractionTypes/index.js"));
22
22
  var _quizCommon = require("@instructure/quiz-common");
23
- var AddBankEntryModal = exports.AddBankEntryModal = /*#__PURE__*/function (_Component) {
23
+ var AddBankEntryModal = /*#__PURE__*/function (_Component) {
24
24
  (0, _inherits2.default)(AddBankEntryModal, _Component);
25
25
  var _super = (0, _createSuper2.default)(AddBankEntryModal);
26
26
  function AddBankEntryModal() {
@@ -104,6 +104,7 @@ var AddBankEntryModal = exports.AddBankEntryModal = /*#__PURE__*/function (_Comp
104
104
  AddBankEntryModal.displayName = "AddBankEntryModal";
105
105
  return AddBankEntryModal;
106
106
  }(_react.Component);
107
+ exports.AddBankEntryModal = AddBankEntryModal;
107
108
  AddBankEntryModal.propTypes = {
108
109
  modalOpen: _propTypes.default.bool.isRequired,
109
110
  closeModal: _propTypes.default.func.isRequired,
@@ -117,4 +118,5 @@ AddBankEntryModal.propTypes = {
117
118
  AddBankEntryModal.defaultProps = {
118
119
  modalTrigger: null
119
120
  };
120
- var _default = exports.default = AddBankEntryModal;
121
+ var _default = AddBankEntryModal;
122
+ exports.default = _default;