@instructure/quiz-core 20.30.1-snapshot.4 → 20.31.1-snapshot.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/es/banks/components/BankEntryRow/presenter.js +0 -1
- package/es/banks/components/SharingModal/presenter.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +0 -1
- package/es/common/components/shared/overlay/index.js +0 -1
- package/es/common/records/index.js +16 -32
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +0 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +46 -55
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -0
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +2 -0
- package/lib/banks/api/bankEntries.js +13 -24
- package/lib/banks/api/banks.js +15 -26
- package/lib/banks/api/copyingBanksPoller.js +2 -4
- package/lib/banks/api/tagAssociations.js +5 -8
- package/lib/banks/components/AddBankEntryModal/index.js +2 -4
- package/lib/banks/components/AddBankEntryModal/presenter.js +2 -4
- package/lib/banks/components/AddToBankModal/index.js +2 -3
- package/lib/banks/components/AddToBankModal/presenter.js +2 -4
- package/lib/banks/components/AsyncSearch/index.js +2 -4
- package/lib/banks/components/Bank/index.js +3 -5
- package/lib/banks/components/Bank/presenter.js +2 -4
- package/lib/banks/components/Bank/styles.js +1 -2
- package/lib/banks/components/Bank/theme.js +1 -2
- package/lib/banks/components/BankEntriesList/index.js +2 -3
- package/lib/banks/components/BankEntriesList/presenter.js +2 -4
- package/lib/banks/components/BankEntriesList/styles.js +1 -2
- package/lib/banks/components/BankEntriesList/theme.js +1 -2
- package/lib/banks/components/BankEntry/index.js +2 -4
- package/lib/banks/components/BankEntry/presenter.js +2 -4
- package/lib/banks/components/BankEntry/styles.js +1 -2
- package/lib/banks/components/BankEntry/theme.js +1 -2
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -3
- package/lib/banks/components/BankEntryRow/index.js +1 -2
- package/lib/banks/components/BankEntryRow/presenter.js +2 -5
- package/lib/banks/components/BankEntryRow/styles.js +1 -2
- package/lib/banks/components/BankEntryRow/theme.js +1 -2
- package/lib/banks/components/BankSearch/BankSearch.stories.js +7 -12
- package/lib/banks/components/BankSearch/index.js +1 -2
- package/lib/banks/components/BankSearch/presenter.js +2 -4
- package/lib/banks/components/BankSearch/styles.js +1 -2
- package/lib/banks/components/BankSearch/theme.js +1 -2
- package/lib/banks/components/Banks/index.js +2 -4
- package/lib/banks/components/Banks/presenter.js +2 -4
- package/lib/banks/components/Banks/styles.js +1 -2
- package/lib/banks/components/Banks/theme.js +1 -2
- package/lib/banks/components/BanksList/index.js +3 -4
- package/lib/banks/components/BanksList/presenter.js +2 -4
- package/lib/banks/components/BanksList/styles.js +1 -2
- package/lib/banks/components/BanksList/theme.js +1 -2
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +2 -3
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -4
- package/lib/banks/components/CreateBankModal/index.js +1 -2
- package/lib/banks/components/CreateBankModal/presenter.js +2 -4
- package/lib/banks/components/CreateBankModal/styles.js +1 -2
- package/lib/banks/components/CreateBankModal/theme.js +1 -2
- package/lib/banks/components/EditBankModal/index.js +1 -2
- package/lib/banks/components/EditBankModal/presenter.js +2 -4
- package/lib/banks/components/EditBankModal/styles.js +1 -2
- package/lib/banks/components/EditBankModal/theme.js +1 -2
- package/lib/banks/components/HeaderBreadCrumb/index.js +2 -4
- package/lib/banks/components/HeaderMenu/index.js +1 -2
- package/lib/banks/components/HeaderMenu/presenter.js +2 -4
- package/lib/banks/components/HeaderMenu/styles.js +1 -2
- package/lib/banks/components/HeaderMenu/theme.js +1 -2
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +2 -3
- package/lib/banks/components/NavWrapper/index.js +1 -2
- package/lib/banks/components/NavWrapper/presenter.js +1 -2
- package/lib/banks/components/NavWrapper/styles.js +1 -2
- package/lib/banks/components/NavWrapper/theme.js +1 -2
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -2
- package/lib/banks/components/SharingModal/RootAccountSharing.js +2 -4
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +2 -3
- package/lib/banks/components/SharingModal/ShareList/index.js +2 -4
- package/lib/banks/components/SharingModal/ShareList/styles.js +1 -2
- package/lib/banks/components/SharingModal/index.js +1 -2
- package/lib/banks/components/SharingModal/presenter.js +2 -5
- package/lib/banks/components/SharingModal/styles.js +1 -2
- package/lib/banks/components/SharingModal/theme.js +1 -2
- package/lib/building/api/items.js +1 -1
- package/lib/building/api/qtiImports.js +5 -9
- package/lib/building/api/quizEntries.js +9 -10
- package/lib/building/api/quizzes.js +15 -15
- package/lib/building/api/stimuli.js +1 -1
- package/lib/building/components/QTIImportModal/index.js +5 -9
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +1 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +5 -9
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +2 -4
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +1 -2
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +5 -9
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +2 -4
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -2
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +1 -2
- package/lib/building/components/layout/Sidebar/index.js +5 -9
- package/lib/building/components/layout/Sidebar/presenter.js +2 -4
- package/lib/building/components/layout/Sidebar/styles.js +1 -2
- package/lib/building/components/layout/Sidebar/theme.js +1 -2
- package/lib/building/components/layout/header/BuildingButtons/index.js +3 -5
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +2 -4
- package/lib/building/components/layout/header/BuildingButtons/styles.js +1 -2
- package/lib/building/components/layout/header/BuildingButtons/theme.js +1 -2
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +2 -4
- package/lib/building/components/resources/ActionButtons/index.js +2 -4
- package/lib/building/components/resources/ActionButtons/presenter.js +2 -4
- package/lib/building/components/resources/ActionButtons/styles.js +1 -2
- package/lib/building/components/resources/ActionButtons/theme.js +1 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +2 -4
- package/lib/building/components/resources/AddToBankOptions/styles.js +1 -2
- package/lib/building/components/resources/AddToBankOptions/theme.js +1 -2
- package/lib/building/components/resources/BanksTray/index.js +2 -4
- package/lib/building/components/resources/BanksTray/presenter.js +2 -4
- package/lib/building/components/resources/DeleteStimulusModal/index.js +2 -4
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +2 -4
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +1 -2
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -2
- package/lib/building/components/resources/ItemFeedbackModal/index.js +2 -4
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +2 -4
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +1 -2
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +1 -2
- package/lib/building/components/resources/MoveImmutableModal/index.js +2 -4
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +2 -4
- package/lib/building/components/resources/quiz/editButton/EditButton.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +2 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +2 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +2 -4
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +1 -2
- package/lib/building/components/resources/quiz/title/Edit/index.js +2 -4
- package/lib/building/components/resources/quiz/title/Edit/styles.js +1 -2
- package/lib/building/components/resources/quiz/title/Edit/theme.js +1 -2
- package/lib/building/components/resources/quiz/title/Show/index.js +2 -4
- package/lib/building/components/resources/quiz/title/Show/styles.js +1 -2
- package/lib/building/components/resources/quiz/title/Show/theme.js +1 -2
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +2 -3
- package/lib/building/components/resources/quiz/title/Title/index.js +2 -4
- package/lib/building/components/resources/quiz/title/Title/presenter.js +2 -4
- package/lib/building/components/resources/quiz/title/Title/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +4 -8
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +1 -2
- package/lib/common/actions/alerts.js +2 -2
- package/lib/common/actions/analyses.js +7 -7
- package/lib/common/actions/bankEntries.js +3 -5
- package/lib/common/actions/bankSearch.js +6 -10
- package/lib/common/actions/banks.js +8 -14
- package/lib/common/actions/config.js +1 -1
- package/lib/common/actions/editing.js +1 -1
- package/lib/common/actions/errorsShowing.js +1 -1
- package/lib/common/actions/grading.js +2 -2
- package/lib/common/actions/modal.js +3 -3
- package/lib/common/actions/modifications.js +29 -29
- package/lib/common/actions/printing.js +1 -1
- package/lib/common/actions/quizExport.js +2 -3
- package/lib/common/actions/quizSessionEvents.js +2 -3
- package/lib/common/actions/quizSessionResults.js +2 -3
- package/lib/common/actions/quizSessions.js +8 -13
- package/lib/common/actions/quizzes.js +8 -14
- package/lib/common/actions/rce.js +5 -8
- package/lib/common/actions/regrading.js +1 -1
- package/lib/common/actions/reporting.js +1 -1
- package/lib/common/actions/scrolling.js +1 -1
- package/lib/common/actions/sessionItemResults.js +2 -3
- package/lib/common/actions/sessionItems.js +2 -3
- package/lib/common/actions/sharedBanks.js +5 -8
- package/lib/common/actions/sidebar.js +1 -1
- package/lib/common/actions/tagAssociations.js +9 -17
- package/lib/common/actions/taking.js +20 -38
- package/lib/common/actions/ui.js +11 -20
- package/lib/common/actions/upload.js +6 -11
- package/lib/common/api/callHandlers.js +25 -46
- package/lib/common/api/camelizeHelpers.js +2 -4
- package/lib/common/api/features.js +2 -3
- package/lib/common/api/fileUpload.js +2 -3
- package/lib/common/api/getPersistenceActions.js +1 -2
- package/lib/common/api/helpers.js +7 -10
- package/lib/common/api/interactionTypes.js +2 -3
- package/lib/common/api/quizSessions.js +17 -26
- package/lib/common/api/quizzes.js +2 -2
- package/lib/common/api/schema.js +20 -37
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +3 -5
- package/lib/common/components/ConfirmationModal/index.js +1 -2
- package/lib/common/components/ConfirmationModal/presenter.js +2 -4
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +2 -4
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +1 -2
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +1 -2
- package/lib/common/components/ImportModal/index.js +5 -7
- package/lib/common/components/ImportModal/presenter.js +2 -4
- package/lib/common/components/ImportModal/styles.js +1 -2
- package/lib/common/components/ImportModal/theme.js +1 -2
- package/lib/common/components/LearnosityCalculator/index.js +2 -4
- package/lib/common/components/Pin/Pin.examples.js +2 -3
- package/lib/common/components/Pin/index.js +2 -4
- package/lib/common/components/Pin/presenter.js +2 -4
- package/lib/common/components/PreviewFrame/examples.config.js +2 -3
- package/lib/common/components/PreviewFrame/index.js +2 -4
- package/lib/common/components/PrintFontSizeModal/index.js +1 -2
- package/lib/common/components/PrintFontSizeModal/presenter.js +2 -4
- package/lib/common/components/PrintFontSizeModal/styles.js +1 -2
- package/lib/common/components/PrintFontSizeModal/theme.js +1 -2
- package/lib/common/components/RceConfigProvider/index.js +1 -2
- package/lib/common/components/RceConfigProvider/presenter.js +1 -2
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +3 -5
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +7 -12
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +2 -3
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +2 -3
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +4 -6
- package/lib/common/components/SDKApp/index.js +4 -7
- package/lib/common/components/SDKApp/styles.js +1 -2
- package/lib/common/components/SDKHeaderCalculator.js +2 -4
- package/lib/common/components/SDKMenuButton.js +2 -4
- package/lib/common/components/SDKNavBar.js +2 -4
- package/lib/common/components/SDKTimer.js +2 -4
- package/lib/common/components/alerts/index.js +2 -3
- package/lib/common/components/alerts/presenter.js +2 -4
- package/lib/common/components/alerts/styles.js +1 -2
- package/lib/common/components/alerts/theme.js +1 -2
- package/lib/common/components/layout/Page/index.js +2 -4
- package/lib/common/components/layout/Page/styles.js +1 -2
- package/lib/common/components/layout/Page/theme.js +1 -2
- package/lib/common/components/layout/header/Calculator/index.js +2 -4
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -4
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +5 -7
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +2 -4
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +1 -2
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +1 -2
- package/lib/common/components/layout/header/Timer/index.js +1 -2
- package/lib/common/components/layout/header/Timer/presenter.js +2 -4
- package/lib/common/components/layout/header/Timer/styles.js +1 -2
- package/lib/common/components/layout/header/Timer/theme.js +1 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +2 -4
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -2
- package/lib/common/components/layout/navbar/index.js +2 -4
- package/lib/common/components/layout/navbar/styles.js +1 -2
- package/lib/common/components/layout/navbar/theme.js +1 -2
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +2 -4
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +1 -2
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +2 -4
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -3
- package/lib/common/components/layout/sidebar/Sidebar/index.js +2 -4
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +1 -2
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +5 -9
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -4
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +1 -2
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/index.js +5 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +3 -6
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +1 -2
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +2 -3
- package/lib/common/components/resources/BankSelection/index.js +3 -4
- package/lib/common/components/resources/BankSelection/presenter.js +2 -4
- package/lib/common/components/resources/WarningWrapper/index.js +2 -4
- package/lib/common/components/resources/WarningWrapper/styles.js +1 -2
- package/lib/common/components/resources/WarningWrapper/theme.js +1 -2
- package/lib/common/components/resources/entry/EntrySave/index.js +2 -3
- package/lib/common/components/resources/entry/EntrySave/presenter.js +2 -4
- package/lib/common/components/resources/item/ItemEdit/index.js +2 -3
- package/lib/common/components/resources/item/ItemEdit/presenter.js +2 -4
- package/lib/common/components/resources/item/ItemOverride/index.js +1 -2
- package/lib/common/components/resources/item/ItemOverride/presenter.js +2 -4
- package/lib/common/components/resources/item/ItemShow/index.js +1 -2
- package/lib/common/components/resources/positionBox/PositionBox.js +2 -4
- package/lib/common/components/resources/positionBox/styles.js +1 -2
- package/lib/common/components/resources/positionBox/theme.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +3 -5
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
- package/lib/common/components/resources/quiz/info/QuizInfo.js +2 -4
- package/lib/common/components/resources/quiz/instructions/Instructions.js +2 -4
- package/lib/common/components/resources/quiz/instructions/styles.js +1 -2
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -2
- package/lib/common/components/resources/quiz/title/Title.js +2 -4
- package/lib/common/components/resources/quiz/title/styles.js +1 -2
- package/lib/common/components/resources/quiz/title/theme.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +2 -4
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -4
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +2 -4
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +1 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +2 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +2 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/index.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +2 -4
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -2
- package/lib/common/components/shared/Card/CardContent/index.js +2 -4
- package/lib/common/components/shared/Card/CardContent/styles.js +1 -2
- package/lib/common/components/shared/Card/CardContent/theme.js +1 -2
- package/lib/common/components/shared/Card/CardWrapper/index.js +2 -4
- package/lib/common/components/shared/Card/CardWrapper/styles.js +1 -2
- package/lib/common/components/shared/Card/CardWrapper/theme.js +1 -2
- package/lib/common/components/shared/Card/index.js +1 -2
- package/lib/common/components/shared/ExpandButton/index.js +2 -4
- package/lib/common/components/shared/ExpandButton/styles.js +1 -2
- package/lib/common/components/shared/ExpandButton/theme.js +1 -2
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +2 -3
- package/lib/common/components/shared/FormattedDuration/index.js +7 -11
- package/lib/common/components/shared/IfFeature/index.js +3 -5
- package/lib/common/components/shared/IfFeature/presenter.js +2 -4
- package/lib/common/components/shared/InteractionTypes/index.js +1 -2
- package/lib/common/components/shared/InteractionTypes/presenter.js +2 -4
- package/lib/common/components/shared/InteractionTypes/styles.js +1 -2
- package/lib/common/components/shared/InteractionTypes/theme.js +1 -2
- package/lib/common/components/shared/PaginatedCollection/index.js +3 -4
- package/lib/common/components/shared/PaginatedCollection/presenter.js +2 -4
- package/lib/common/components/shared/PaginatedCollection/styles.js +1 -2
- package/lib/common/components/shared/PaginatedCollection/theme.js +1 -2
- package/lib/common/components/shared/Paginator/index.js +2 -4
- package/lib/common/components/shared/Paginator/styles.js +1 -2
- package/lib/common/components/shared/Paginator/theme.js +1 -2
- package/lib/common/components/shared/PrintTrigger/index.js +3 -5
- package/lib/common/components/shared/PrintTrigger/presenter.js +2 -4
- package/lib/common/components/shared/TagDisplay/index.js +2 -4
- package/lib/common/components/shared/TagDisplay/styles.js +1 -2
- package/lib/common/components/shared/TagSelect/index.js +1 -2
- package/lib/common/components/shared/TagSelect/presenter.js +2 -4
- package/lib/common/components/shared/TagSuggestSelect/index.js +1 -2
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +2 -4
- package/lib/common/components/shared/TagWrapper/index.js +1 -2
- package/lib/common/components/shared/TagWrapper/presenter.js +2 -4
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +2 -3
- package/lib/common/components/shared/TimeUnitsInput/index.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +1 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +1 -2
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +3 -5
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +2 -4
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +17 -19
- package/lib/common/components/shared/errors/Errors.js +2 -4
- package/lib/common/components/shared/errors/styles.js +1 -2
- package/lib/common/components/shared/errors/theme.js +1 -2
- package/lib/common/components/shared/file_selector/FileSelector.js +2 -4
- package/lib/common/components/shared/file_selector/styles.js +1 -2
- package/lib/common/components/shared/file_selector/theme.js +1 -2
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +1 -2
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +1 -2
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +2 -3
- package/lib/common/components/shared/functionality/makeEditable.js +3 -5
- package/lib/common/components/shared/functionality/makeScrollable.js +4 -7
- package/lib/common/components/shared/overlay/index.js +1 -3
- package/lib/common/components/shared/overlay/styles.js +1 -2
- package/lib/common/components/shared/overlay/theme.js +1 -2
- package/lib/common/components/shared/return_button/ReturnButton.js +2 -4
- package/lib/common/components/shared/spinner/Spinner.js +2 -4
- package/lib/common/components/shared/spinner/styles.js +1 -2
- package/lib/common/kinesis/QuizEventsLogger.js +4 -7
- package/lib/common/kinesis/StreamQueue.js +2 -3
- package/lib/common/kinesis/client.js +5 -9
- package/lib/common/kinesis/config.js +6 -10
- package/lib/common/kinesis/eventTypes.js +8 -15
- package/lib/common/middleware/alertTimerMiddleware.js +1 -2
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +1 -2
- package/lib/common/middleware/eventLoggerMiddleware.js +1 -2
- package/lib/common/middleware/persistedStorageMiddleware.js +1 -2
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +8 -14
- package/lib/common/react-redux.js +2 -3
- package/lib/common/records/Alert.js +2 -4
- package/lib/common/records/Bank.js +2 -4
- package/lib/common/records/BankEntry.js +2 -4
- package/lib/common/records/Item.js +2 -4
- package/lib/common/records/ItemAnalysis.js +2 -4
- package/lib/common/records/QtiImport.js +2 -4
- package/lib/common/records/Quiz.js +2 -4
- package/lib/common/records/QuizAnalysis.js +2 -4
- package/lib/common/records/QuizEntry.js +2 -4
- package/lib/common/records/QuizSession.js +2 -4
- package/lib/common/records/QuizSessionEvent.js +2 -4
- package/lib/common/records/QuizSessionResult.js +2 -4
- package/lib/common/records/Response.js +2 -4
- package/lib/common/records/SessionItem.js +2 -4
- package/lib/common/records/SessionItemResult.js +2 -4
- package/lib/common/records/Stimulus.js +2 -4
- package/lib/common/records/baseRecord.js +2 -3
- package/lib/common/records/index.js +34 -34
- package/lib/common/reducers/alerts.js +2 -3
- package/lib/common/reducers/analyses.js +15 -28
- package/lib/common/reducers/bankEntries.js +2 -3
- package/lib/common/reducers/bankSearch.js +2 -3
- package/lib/common/reducers/banks.js +2 -3
- package/lib/common/reducers/calls.js +2 -3
- package/lib/common/reducers/config.js +2 -3
- package/lib/common/reducers/dragAndDrop.js +2 -3
- package/lib/common/reducers/editing.js +2 -3
- package/lib/common/reducers/errorsShowing.js +2 -3
- package/lib/common/reducers/features.js +2 -3
- package/lib/common/reducers/grading.js +2 -3
- package/lib/common/reducers/interactionTypes.js +2 -3
- package/lib/common/reducers/items.js +2 -3
- package/lib/common/reducers/modal.js +2 -3
- package/lib/common/reducers/moderation.js +2 -3
- package/lib/common/reducers/modifications.js +2 -3
- package/lib/common/reducers/outcomes.js +2 -3
- package/lib/common/reducers/printing.js +2 -3
- package/lib/common/reducers/qtiImports.js +2 -3
- package/lib/common/reducers/quizEntries.js +2 -3
- package/lib/common/reducers/quizExport.js +2 -3
- package/lib/common/reducers/quizSessionEvents.js +2 -3
- package/lib/common/reducers/quizSessionResults.js +2 -3
- package/lib/common/reducers/quizSessions.js +2 -3
- package/lib/common/reducers/quizzes.js +2 -3
- package/lib/common/reducers/rce.js +2 -3
- package/lib/common/reducers/regrading.js +2 -3
- package/lib/common/reducers/reporting.js +2 -3
- package/lib/common/reducers/scrolling.js +2 -3
- package/lib/common/reducers/sessionItemResults.js +2 -3
- package/lib/common/reducers/sessionItems.js +2 -3
- package/lib/common/reducers/sharedBanks.js +2 -3
- package/lib/common/reducers/sidebar.js +2 -3
- package/lib/common/reducers/stimuli.js +2 -3
- package/lib/common/reducers/tagAssociations.js +2 -3
- package/lib/common/reducers/taking.js +2 -3
- package/lib/common/reducers/ui.js +2 -3
- package/lib/common/reducers/upload.js +2 -3
- package/lib/common/selectors/analyses.js +13 -24
- package/lib/common/selectors/interactionTypes.js +2 -4
- package/lib/common/selectors/qtiImports.js +2 -3
- package/lib/common/selectors/quizSessionResults.js +1 -1
- package/lib/common/selectors/quizSessions.js +8 -14
- package/lib/common/selectors/quizzes.js +13 -25
- package/lib/common/selectors/rce.js +4 -6
- package/lib/common/selectors/reporting.js +2 -3
- package/lib/common/selectors/sessionItemResults.js +3 -4
- package/lib/common/selectors/sessionItems.js +3 -4
- package/lib/common/selectors/taking.js +8 -11
- package/lib/common/selectors/ui.js +2 -3
- package/lib/common/util/CustomPropTypes.js +3 -5
- package/lib/common/util/ElementsForSelectors.js +2 -3
- package/lib/common/util/ExhaustivePaginatedFetcher.js +1 -2
- package/lib/common/util/Fetcher.js +2 -4
- package/lib/common/util/MultiWeakMap.js +2 -3
- package/lib/common/util/PaginatedFetcher.js +2 -4
- package/lib/common/util/ThunkQueue.js +2 -3
- package/lib/common/util/TimeRecordingService.js +2 -4
- package/lib/common/util/TimerService.js +3 -6
- package/lib/common/util/cachePreviousArgs.js +2 -3
- package/lib/common/util/callHelpers.js +6 -10
- package/lib/common/util/componentForItem.js +2 -4
- package/lib/common/util/debounceLatestPromise.js +2 -3
- package/lib/common/util/formatTimespan.js +2 -3
- package/lib/common/util/generateDisplayPositions.js +2 -3
- package/lib/common/util/httpHeaders.js +5 -8
- package/lib/common/util/immutableHelpers.js +5 -8
- package/lib/common/util/instUIMessages.js +2 -3
- package/lib/common/util/interactionTypeMetadata.js +4 -6
- package/lib/common/util/interactionTypePropsHelper.js +3 -5
- package/lib/common/util/interactionTypeRecordForItem.js +1 -2
- package/lib/common/util/jsonify.js +3 -4
- package/lib/common/util/keyboardClickable.js +1 -2
- package/lib/common/util/mathRenderingUtils.js +2 -4
- package/lib/common/util/maxContent.js +2 -3
- package/lib/common/util/noop.js +2 -3
- package/lib/common/util/persistedState.js +1 -2
- package/lib/common/util/printUtils.js +4 -6
- package/lib/common/util/rceChecker.js +2 -3
- package/lib/common/util/renderAlerts.js +2 -3
- package/lib/common/util/serializeEvent.js +2 -3
- package/lib/common/util/sessionStore.js +2 -4
- package/lib/common/util/valMap.js +2 -3
- package/lib/common/util/warningHelpers.js +9 -16
- package/lib/common/util/windowChecks.js +7 -12
- package/lib/common/util/withCachedArguments.js +2 -3
- package/lib/common/util/withDynamoPagination.js +2 -3
- package/lib/common/util/withStateCache.js +1 -2
- package/lib/config.js +3 -5
- package/lib/configureStore.js +1 -2
- package/lib/grading/api/updateResults.js +2 -3
- package/lib/index.js +398 -397
- package/lib/messages/LocalStorageAdapter.js +2 -4
- package/lib/messages/LocalStorageLimits.js +1 -2
- package/lib/messages/StorageExhaustionError.js +2 -3
- package/lib/messages/postMessageService.js +2 -3
- package/lib/messages/subjectHandlers/forwardMessage.js +1 -2
- package/lib/messages/subjectHandlers/lti.capabilities.js +1 -2
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +1 -2
- package/lib/messages/subjectHandlers/lti.frameResize.js +1 -2
- package/lib/messages/subjectHandlers/lti.get_data.js +1 -2
- package/lib/messages/subjectHandlers/lti.put_data.js +1 -2
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +2 -4
- package/lib/moderating/api/quizSessions.js +1 -1
- package/lib/moderating/components/events/Event.js +2 -4
- package/lib/moderating/components/events/PageBlurredEvent.js +2 -4
- package/lib/moderating/components/events/PageFocusedEvent.js +2 -4
- package/lib/moderating/components/events/RCEEvent.js +2 -4
- package/lib/moderating/components/events/ResponseEvent.js +2 -4
- package/lib/moderating/components/events/SessionStartEvent.js +2 -4
- package/lib/moderating/components/events/styles.js +1 -2
- package/lib/moderating/components/events/theme.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +2 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +2 -4
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +2 -4
- package/lib/moderating/components/resources/AccommodationsModal/index.js +2 -4
- package/lib/moderating/components/resources/ElapsedTime.js +2 -4
- package/lib/moderating/components/resources/ModerateTable/index.js +4 -7
- package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -4
- package/lib/moderating/components/resources/ModerateTable/styles.js +1 -2
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -2
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -3
- package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -3
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +2 -4
- package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -2
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +1 -2
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +1 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +2 -3
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +3 -5
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -4
- package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +1 -2
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +2 -3
- package/lib/moderating/components/sidebar/ModerateTray/index.js +3 -4
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +2 -4
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +3 -4
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +2 -4
- package/lib/reduxStore.js +4 -5
- package/lib/reporting/api/fetchStudentAnalyses.js +2 -3
- package/lib/reporting/api/getAnalysesExport.js +2 -3
- package/lib/reporting/api/getAnalysesStatus.js +2 -3
- package/lib/reporting/api/getItemAnalyses.js +2 -3
- package/lib/reporting/api/getQuizAnalysis.js +2 -3
- package/lib/reporting/components/Caption/index.js +2 -4
- package/lib/reporting/components/Caption/styles.js +1 -2
- package/lib/reporting/components/Caption/theme.js +1 -2
- package/lib/reporting/components/MetricsListItem/index.js +2 -4
- package/lib/reporting/components/MetricsListItem/styles.js +1 -2
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +2 -3
- package/lib/reporting/components/charts/CentileDistribution/index.js +1 -2
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +2 -4
- package/lib/reporting/components/charts/CentileDistribution/styles.js +1 -2
- package/lib/reporting/components/charts/CentileDistribution/theme.js +1 -2
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +2 -4
- package/lib/reporting/components/charts/Distribution/Distribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/index.js +1 -2
- package/lib/reporting/components/charts/Distribution/presenter.js +4 -7
- package/lib/reporting/components/charts/Distribution/styles.js +1 -2
- package/lib/reporting/components/charts/Distribution/theme.js +1 -2
- package/lib/reporting/components/charts/Legend/index.js +2 -4
- package/lib/reporting/components/charts/Legend/styles.js +1 -2
- package/lib/reporting/components/charts/Legend/theme.js +1 -2
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/index.js +1 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +2 -4
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +1 -2
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +2 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +2 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +1 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +1 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +2 -3
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +1 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +1 -2
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +2 -4
- package/lib/reporting/components/quizAnalysis/styles.js +1 -2
- package/lib/reporting/components/quizAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +6 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +4 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +4 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +2 -3
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +3 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +2 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +2 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +3 -5
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/ReportCard/index.js +2 -4
- package/lib/reporting/components/resources/ReportCard/styles.js +1 -2
- package/lib/reporting/components/resources/ReportCard/theme.js +1 -2
- package/lib/reporting/components/resources/ReportList/index.js +2 -4
- package/lib/reporting/components/resources/ReportList/styles.js +1 -2
- package/lib/reporting/components/resources/ReportList/theme.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +48 -57
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +4 -3
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +4 -3
- package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +2 -3
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -2
- package/lib/reporting/components/resources/common/ExportButton/index.js +1 -2
- package/lib/reporting/components/resources/common/errorCodes.js +9 -16
- package/lib/reporting/components/resources/common/errorMessages.js +10 -18
- package/lib/reporting/components/resources/common/exportReports.js +2 -3
- package/lib/reporting/components/resources/common/generateReports.js +3 -5
- package/lib/reporting/components/resources/common/propTypes.js +18 -34
- package/lib/reporting/components/resources/common/utils.js +4 -6
- package/lib/taking/api/taking.js +14 -16
- package/lib/taking/learnosity/index.js +1 -1
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.31.0](https://gerrit.instructure.com/quizzes-ui/compare/v20.30.0...v20.31.0) (2024-12-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **moderate:** ui and functionality updates ([d858814aa](https://gerrit.instructure.com/quizzes-ui/commits/d858814aa865e9bce6c56ee471b36cb2d3059688))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [20.30.0](https://gerrit.instructure.com/quizzes-ui/compare/v20.29.1...v20.30.0) (2024-12-10)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -4,7 +4,6 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
var _dec, _class, _BankEntryRow;
|
|
6
6
|
/** @jsx jsx */
|
|
7
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
8
7
|
import React, { Component } from 'react';
|
|
9
8
|
import PropTypes from 'prop-types';
|
|
10
9
|
import partial from 'lodash/partial';
|
|
@@ -9,7 +9,6 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
9
9
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
10
10
|
var _dec, _class, _SharingModalPresenter;
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
-
/* eslint-disable-next-line no-unused-vars*/
|
|
13
12
|
import React, { Component } from 'react';
|
|
14
13
|
import PropTypes from 'prop-types';
|
|
15
14
|
import { List, Map } from 'immutable';
|
|
@@ -5,7 +5,6 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
7
|
var _dec, _class, _QuizEntryEdit;
|
|
8
|
-
/* eslint-disable no-unused-vars */
|
|
9
8
|
/** @jsx jsx */
|
|
10
9
|
import React, { Component } from 'react';
|
|
11
10
|
import PropTypes from 'prop-types';
|
|
@@ -6,7 +6,6 @@ var _dec, _class, _Overlay;
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
/* eslint "jsx-a11y/click-events-have-key-events": "warn" */
|
|
8
8
|
/* eslint "jsx-a11y/no-static-element-interactions": "warn" */
|
|
9
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
10
9
|
import React, { Component } from 'react';
|
|
11
10
|
import PropTypes from 'prop-types';
|
|
12
11
|
|
|
@@ -1,32 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
import _QuizEntry from "./QuizEntry.js";
|
|
18
|
-
export { _QuizEntry as QuizEntry };
|
|
19
|
-
import _QuizSession from "./QuizSession.js";
|
|
20
|
-
export { _QuizSession as QuizSession };
|
|
21
|
-
import _QuizSessionEvent from "./QuizSessionEvent.js";
|
|
22
|
-
export { _QuizSessionEvent as QuizSessionEvent };
|
|
23
|
-
import _QuizSessionResult from "./QuizSessionResult.js";
|
|
24
|
-
export { _QuizSessionResult as QuizSessionResult };
|
|
25
|
-
import _Response from "./Response.js";
|
|
26
|
-
export { _Response as Response };
|
|
27
|
-
import _SessionItem from "./SessionItem.js";
|
|
28
|
-
export { _SessionItem as SessionItem };
|
|
29
|
-
import _SessionItemResult from "./SessionItemResult.js";
|
|
30
|
-
export { _SessionItemResult as SessionItemResult };
|
|
31
|
-
import _Stimulus from "./Stimulus.js";
|
|
32
|
-
export { _Stimulus as Stimulus };
|
|
1
|
+
export { default as Alert } from "./Alert.js";
|
|
2
|
+
export { default as Bank } from "./Bank.js";
|
|
3
|
+
export { default as BankEntry } from "./BankEntry.js";
|
|
4
|
+
export { default as Item } from "./Item.js";
|
|
5
|
+
export { default as ItemAnalysis } from "./ItemAnalysis.js";
|
|
6
|
+
export { default as QtiImport } from "./QtiImport.js";
|
|
7
|
+
export { default as Quiz } from "./Quiz.js";
|
|
8
|
+
export { default as QuizAnalysis } from "./QuizAnalysis.js";
|
|
9
|
+
export { default as QuizEntry } from "./QuizEntry.js";
|
|
10
|
+
export { default as QuizSession } from "./QuizSession.js";
|
|
11
|
+
export { default as QuizSessionEvent } from "./QuizSessionEvent.js";
|
|
12
|
+
export { default as QuizSessionResult } from "./QuizSessionResult.js";
|
|
13
|
+
export { default as Response } from "./Response.js";
|
|
14
|
+
export { default as SessionItem } from "./SessionItem.js";
|
|
15
|
+
export { default as SessionItemResult } from "./SessionItemResult.js";
|
|
16
|
+
export { default as Stimulus } from "./Stimulus.js";
|
|
@@ -4,7 +4,6 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
var _dec, _class, _AfsPartsContainer;
|
|
6
6
|
/** @jsx jsx */
|
|
7
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
8
7
|
import React, { Component } from 'react';
|
|
9
8
|
import PropTypes from 'prop-types';
|
|
10
9
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
@@ -4,7 +4,6 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
var _dec, _class, _NewQuizAndItemAnalysisPresenter;
|
|
6
6
|
/** @jsx jsx */
|
|
7
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
8
7
|
import React, { Component } from 'react';
|
|
9
8
|
import { Heading } from '@instructure/ui-heading';
|
|
10
9
|
import NewItemAnalysis from "./NewItemAnalysis/index.js";
|
|
@@ -3,14 +3,12 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
var _dec, _class, _StudentAnalysisReportCardPresenter;
|
|
6
|
-
|
|
7
|
-
import { Component } from 'react';
|
|
6
|
+
import React, { Component } from 'react';
|
|
8
7
|
import { Text } from '@instructure/ui-text';
|
|
9
8
|
import { Link } from '@instructure/ui-link';
|
|
10
9
|
import { Flex } from '@instructure/ui-flex';
|
|
11
10
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
12
|
-
import { withStyle
|
|
13
|
-
import PropTypes from 'prop-types';
|
|
11
|
+
import { withStyle } from '@instructure/emotion';
|
|
14
12
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
13
|
import Card from "../../../../../common/components/shared/Card/index.js";
|
|
16
14
|
import { generateStyle } from "./styles.js";
|
|
@@ -18,7 +16,6 @@ import { generateComponentTheme } from "./theme.js";
|
|
|
18
16
|
import { ExportButton } from "../../common/ExportButton/index.js";
|
|
19
17
|
import Spinner from "../../../../../common/components/shared/spinner/Spinner.js";
|
|
20
18
|
import { STUDENT_ANALYSES } from '@instructure/quiz-common';
|
|
21
|
-
import { studentAnalysesPropType } from "../../common/propTypes.js";
|
|
22
19
|
import { AnalysisUpdateDate } from "../../common/AnalysisUpdateDate/index.js";
|
|
23
20
|
export var StudentAnalysisReportCardPresenter = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_StudentAnalysisReportCardPresenter = /*#__PURE__*/function (_Component) {
|
|
24
21
|
_inherits(StudentAnalysisReportCardPresenter, _Component);
|
|
@@ -30,12 +27,13 @@ export var StudentAnalysisReportCardPresenter = (_dec = withStyle(generateStyle,
|
|
|
30
27
|
args[_key] = arguments[_key];
|
|
31
28
|
}
|
|
32
29
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
33
|
-
_this.renderSpinner = function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
_this.renderSpinner = function () {
|
|
31
|
+
var mainText = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '';
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
style: _this.props.styles.emptyCardBodyContainer
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
37
35
|
direction: "row"
|
|
38
|
-
},
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Flex.Item, null, /*#__PURE__*/React.createElement(Spinner, {
|
|
39
37
|
size: "x-small",
|
|
40
38
|
color: "brand",
|
|
41
39
|
minHeight: "0",
|
|
@@ -44,27 +42,27 @@ export var StudentAnalysisReportCardPresenter = (_dec = withStyle(generateStyle,
|
|
|
44
42
|
"data-automation": "sdk-new-sa-report-card-spinner"
|
|
45
43
|
}))));
|
|
46
44
|
};
|
|
47
|
-
_this.handleExport = function (
|
|
45
|
+
_this.handleExport = function () {
|
|
48
46
|
_this.props.exportReport('csv', 'last_attempt', STUDENT_ANALYSES);
|
|
49
47
|
};
|
|
50
|
-
_this.handleGeneration = function (
|
|
48
|
+
_this.handleGeneration = function () {
|
|
51
49
|
_this.props.generateReport('last_attempt', STUDENT_ANALYSES);
|
|
52
50
|
};
|
|
53
51
|
_this.renderExportButton = function () {
|
|
54
52
|
var _this$props = _this.props,
|
|
55
53
|
studentAnalyses = _this$props.studentAnalyses,
|
|
56
54
|
generationInProgress = _this$props.generationInProgress;
|
|
57
|
-
return
|
|
58
|
-
enabled: !generationInProgress && studentAnalyses,
|
|
55
|
+
return /*#__PURE__*/React.createElement(ExportButton, {
|
|
56
|
+
enabled: !generationInProgress && !!studentAnalyses,
|
|
59
57
|
handleExport: _this.handleExport
|
|
60
58
|
});
|
|
61
59
|
};
|
|
62
60
|
_this.renderGenerateReportButton = function () {
|
|
63
|
-
return
|
|
61
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
64
62
|
onClick: _this.handleGeneration,
|
|
65
63
|
role: "button",
|
|
66
64
|
"data-automation": "sdk-new-sa-report-card-generate-report-button"
|
|
67
|
-
},
|
|
65
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Generate Student Analysis Report')), /*#__PURE__*/React.createElement(Text, {
|
|
68
66
|
size: "small",
|
|
69
67
|
"aria-hidden": "true"
|
|
70
68
|
}, t('Generate Report')));
|
|
@@ -74,47 +72,47 @@ export var StudentAnalysisReportCardPresenter = (_dec = withStyle(generateStyle,
|
|
|
74
72
|
name = _this$props2.name,
|
|
75
73
|
exportEnabled = _this$props2.exportEnabled,
|
|
76
74
|
fetchInProgress = _this$props2.fetchInProgress;
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
},
|
|
75
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
style: _this.props.styles.titleContainer
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
80
78
|
direction: "row",
|
|
81
79
|
wrap: "wrap",
|
|
82
80
|
justifyItems: "space-between"
|
|
83
|
-
},
|
|
81
|
+
}, /*#__PURE__*/React.createElement(Flex.Item, null, /*#__PURE__*/React.createElement(Text, {
|
|
84
82
|
size: "medium",
|
|
85
83
|
weight: "bold"
|
|
86
|
-
}, name)), exportEnabled && !fetchInProgress &&
|
|
84
|
+
}, name)), exportEnabled && !fetchInProgress && /*#__PURE__*/React.createElement(Flex.Item, null, _this.renderExportButton())));
|
|
87
85
|
};
|
|
88
86
|
_this.renderReportCardFooter = function () {
|
|
89
87
|
var _this$props3 = _this.props,
|
|
90
88
|
generationInProgress = _this$props3.generationInProgress,
|
|
91
89
|
analysisError = _this$props3.analysisError;
|
|
92
|
-
return
|
|
93
|
-
|
|
94
|
-
},
|
|
90
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
style: _this.props.styles.emptyCardBodyContainer
|
|
92
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
95
93
|
direction: "row",
|
|
96
94
|
justifyItems: "space-between"
|
|
97
|
-
},
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
98
96
|
shouldShrink: true,
|
|
99
|
-
size: analysisError && !generationInProgress ? '40%' :
|
|
100
|
-
}, analysisError && !generationInProgress &&
|
|
97
|
+
size: analysisError && !generationInProgress ? '40%' : void 0
|
|
98
|
+
}, analysisError && !generationInProgress && /*#__PURE__*/React.createElement(Text, {
|
|
101
99
|
size: "x-small",
|
|
102
100
|
weight: "bold",
|
|
103
101
|
color: "danger"
|
|
104
|
-
}, analysisError)),
|
|
105
|
-
shouldShrink: analysisError && !generationInProgress
|
|
102
|
+
}, analysisError)), /*#__PURE__*/React.createElement(Flex.Item, {
|
|
103
|
+
shouldShrink: !!analysisError && !generationInProgress
|
|
106
104
|
}, generationInProgress ? _this.renderSpinner(t('Generation In Progress')) : _this.renderGenerateReportButton())));
|
|
107
105
|
};
|
|
108
106
|
_this.renderDateBlock = function () {
|
|
109
107
|
var studentAnalyses = _this.props.studentAnalyses;
|
|
110
|
-
return
|
|
111
|
-
|
|
112
|
-
},
|
|
108
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
style: _this.props.styles.studentAnalysesSummary
|
|
110
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
113
111
|
direction: "row",
|
|
114
112
|
justifyItems: "space-between"
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
},
|
|
113
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
style: _this.props.styles.dateContainer
|
|
115
|
+
}, /*#__PURE__*/React.createElement(AnalysisUpdateDate, {
|
|
118
116
|
date: studentAnalyses.created_timestamp,
|
|
119
117
|
multiline: true
|
|
120
118
|
}))));
|
|
@@ -124,40 +122,33 @@ export var StudentAnalysisReportCardPresenter = (_dec = withStyle(generateStyle,
|
|
|
124
122
|
_createClass(StudentAnalysisReportCardPresenter, [{
|
|
125
123
|
key: "componentDidMount",
|
|
126
124
|
value: function componentDidMount() {
|
|
127
|
-
|
|
125
|
+
var _this$props$makeStyle, _this$props4;
|
|
126
|
+
(_this$props$makeStyle = (_this$props4 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props4);
|
|
128
127
|
}
|
|
129
128
|
}, {
|
|
130
129
|
key: "componentDidUpdate",
|
|
131
130
|
value: function componentDidUpdate() {
|
|
132
|
-
|
|
131
|
+
var _this$props$makeStyle2, _this$props5;
|
|
132
|
+
(_this$props$makeStyle2 = (_this$props5 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props5);
|
|
133
133
|
}
|
|
134
134
|
}, {
|
|
135
135
|
key: "render",
|
|
136
136
|
value: function render() {
|
|
137
|
-
var _this$
|
|
138
|
-
studentAnalyses = _this$
|
|
139
|
-
fetchInProgress = _this$
|
|
140
|
-
styles = _this$
|
|
141
|
-
return
|
|
137
|
+
var _this$props6 = this.props,
|
|
138
|
+
studentAnalyses = _this$props6.studentAnalyses,
|
|
139
|
+
fetchInProgress = _this$props6.fetchInProgress,
|
|
140
|
+
styles = _this$props6.styles;
|
|
141
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
142
142
|
css: styles.reportCard,
|
|
143
|
-
customStyles: styles.reportCard
|
|
143
|
+
customStyles: styles.reportCard,
|
|
144
|
+
wrapped: void 0,
|
|
145
|
+
wrapperStyles: void 0
|
|
144
146
|
}, this.renderReportCardHeader(), !fetchInProgress && studentAnalyses && this.renderDateBlock(), fetchInProgress && this.renderSpinner(), !fetchInProgress && this.renderReportCardFooter());
|
|
145
147
|
}
|
|
146
148
|
}]);
|
|
147
149
|
StudentAnalysisReportCardPresenter.displayName = "StudentAnalysisReportCardPresenter";
|
|
148
150
|
return StudentAnalysisReportCardPresenter;
|
|
149
|
-
}(Component), _StudentAnalysisReportCardPresenter.
|
|
150
|
-
name: PropTypes.node,
|
|
151
|
-
studentAnalyses: studentAnalysesPropType,
|
|
152
|
-
fetchInProgress: PropTypes.bool.isRequired,
|
|
153
|
-
generationInProgress: PropTypes.bool.isRequired,
|
|
154
|
-
exportEnabled: PropTypes.bool.isRequired,
|
|
155
|
-
analysisError: PropTypes.string,
|
|
156
|
-
generateReport: PropTypes.func.isRequired,
|
|
157
|
-
exportReport: PropTypes.func.isRequired,
|
|
158
|
-
styles: PropTypes.object,
|
|
159
|
-
makeStyles: PropTypes.func
|
|
160
|
-
}, _StudentAnalysisReportCardPresenter.defaultProps = {
|
|
151
|
+
}(Component), _StudentAnalysisReportCardPresenter.defaultProps = {
|
|
161
152
|
studentAnalyses: void 0,
|
|
162
153
|
analysisError: void 0,
|
|
163
154
|
generationInProgress: void 0
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
// this is 'any' temporarily, until we figure out the typing of the @withStyle decorator
|
|
4
|
+
|
|
3
5
|
export var generateStyle = function generateStyle(componentTheme, props) {
|
|
4
6
|
var msMaxWidth = 'max-width: 25rem';
|
|
5
7
|
var mq = "@media only screen and (".concat(msMaxWidth, ")");
|
|
@@ -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.
|
|
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;
|
|
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 = function getBankEntries(bankId, useBankSearch) {
|
|
21
|
+
var getBankEntries = exports.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,8 +66,7 @@ var getBankEntries = function getBankEntries(bankId, useBankSearch) {
|
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
exports.
|
|
70
|
-
var getBankEntry = function getBankEntry(bankId, bankEntryId) {
|
|
69
|
+
var getBankEntry = exports.getBankEntry = function getBankEntry(bankId, bankEntryId) {
|
|
71
70
|
var url = "/api/banks/".concat(bankId, "/bank_entries/").concat(bankEntryId);
|
|
72
71
|
return function (dispatch, getState) {
|
|
73
72
|
var fetcher = new _Fetcher.default({
|
|
@@ -80,8 +79,7 @@ var getBankEntry = function getBankEntry(bankId, bankEntryId) {
|
|
|
80
79
|
});
|
|
81
80
|
};
|
|
82
81
|
};
|
|
83
|
-
exports.
|
|
84
|
-
var cloneBankEntry = function cloneBankEntry(bankEntry, createEntryCb) {
|
|
82
|
+
var cloneBankEntry = exports.cloneBankEntry = function cloneBankEntry(bankEntry, createEntryCb) {
|
|
85
83
|
var updateBankEntryCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : updateBankEntry;
|
|
86
84
|
var entry = bankEntry.getEntry();
|
|
87
85
|
var workingEntry = entry.getWorkingInstance();
|
|
@@ -94,8 +92,7 @@ var cloneBankEntry = function cloneBankEntry(bankEntry, createEntryCb) {
|
|
|
94
92
|
});
|
|
95
93
|
};
|
|
96
94
|
};
|
|
97
|
-
exports.
|
|
98
|
-
var createEntryAndBankEntry = function createEntryAndBankEntry(bankId, entry, bankEntry, createEntryCb) {
|
|
95
|
+
var createEntryAndBankEntry = exports.createEntryAndBankEntry = function createEntryAndBankEntry(bankId, entry, bankEntry, createEntryCb) {
|
|
99
96
|
var createBankEntryCb = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : createBankEntry;
|
|
100
97
|
return function (dispatch, getState) {
|
|
101
98
|
return dispatch(createEntryCb(entry, bankId, 'bank')).then(function (entryData) {
|
|
@@ -103,8 +100,7 @@ var createEntryAndBankEntry = function createEntryAndBankEntry(bankId, entry, ba
|
|
|
103
100
|
});
|
|
104
101
|
};
|
|
105
102
|
};
|
|
106
|
-
exports.
|
|
107
|
-
var moveBankEntryFromQuizEntry = function moveBankEntryFromQuizEntry(sourceQuizId, sourceEntryId, sourceEntryType, destinationBankId) {
|
|
103
|
+
var moveBankEntryFromQuizEntry = exports.moveBankEntryFromQuizEntry = function moveBankEntryFromQuizEntry(sourceQuizId, sourceEntryId, sourceEntryType, destinationBankId) {
|
|
108
104
|
var body = {
|
|
109
105
|
source_entry_id: sourceEntryId,
|
|
110
106
|
source_entry_type: sourceEntryType
|
|
@@ -114,8 +110,7 @@ var moveBankEntryFromQuizEntry = function moveBankEntryFromQuizEntry(sourceQuizI
|
|
|
114
110
|
};
|
|
115
111
|
return copyOrMoveBankEntry(body, destinationBankId, 'move_from_quiz_entry', query_params);
|
|
116
112
|
};
|
|
117
|
-
exports.
|
|
118
|
-
var copyBankEntry = function copyBankEntry(sourceBankId, bankEntryId, destinationBankId) {
|
|
113
|
+
var copyBankEntry = exports.copyBankEntry = function copyBankEntry(sourceBankId, bankEntryId, destinationBankId) {
|
|
119
114
|
var body = {
|
|
120
115
|
source_bank_id: sourceBankId,
|
|
121
116
|
source_bank_entry_id: bankEntryId
|
|
@@ -123,8 +118,7 @@ var copyBankEntry = function copyBankEntry(sourceBankId, bankEntryId, destinatio
|
|
|
123
118
|
var followUpActions = [(0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(destinationBankId))];
|
|
124
119
|
return copyOrMoveBankEntry(body, destinationBankId, 'copy', null, followUpActions);
|
|
125
120
|
};
|
|
126
|
-
exports.
|
|
127
|
-
var moveBankEntry = function moveBankEntry(sourceBankId, bankEntryId, destinationBankId) {
|
|
121
|
+
var moveBankEntry = exports.moveBankEntry = function moveBankEntry(sourceBankId, bankEntryId, destinationBankId) {
|
|
128
122
|
var body = {
|
|
129
123
|
source_bank_id: sourceBankId,
|
|
130
124
|
source_bank_entry_id: bankEntryId
|
|
@@ -132,8 +126,7 @@ var moveBankEntry = function moveBankEntry(sourceBankId, bankEntryId, destinatio
|
|
|
132
126
|
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)];
|
|
133
127
|
return copyOrMoveBankEntry(body, destinationBankId, 'move', null, followUpActions);
|
|
134
128
|
};
|
|
135
|
-
exports.
|
|
136
|
-
var copyOrMoveBankEntry = function copyOrMoveBankEntry(body, destinationBankId, operation, query_params) {
|
|
129
|
+
var copyOrMoveBankEntry = exports.copyOrMoveBankEntry = function copyOrMoveBankEntry(body, destinationBankId, operation, query_params) {
|
|
137
130
|
var followUpActions = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : [];
|
|
138
131
|
var url = "/api/banks/".concat(destinationBankId, "/bank_entries/").concat(operation);
|
|
139
132
|
return function (dispatch, getState) {
|
|
@@ -152,8 +145,7 @@ var copyOrMoveBankEntry = function copyOrMoveBankEntry(body, destinationBankId,
|
|
|
152
145
|
});
|
|
153
146
|
};
|
|
154
147
|
};
|
|
155
|
-
exports.
|
|
156
|
-
var createBankEntry = function createBankEntry(bankId, entryType, entryId) {
|
|
148
|
+
var createBankEntry = exports.createBankEntry = function createBankEntry(bankId, entryType, entryId) {
|
|
157
149
|
var url = "/api/banks/".concat(bankId, "/bank_entries");
|
|
158
150
|
return function (dispatch, getState) {
|
|
159
151
|
var newBankEntryData = JSON.stringify({
|
|
@@ -175,8 +167,7 @@ var createBankEntry = function createBankEntry(bankId, entryType, entryId) {
|
|
|
175
167
|
});
|
|
176
168
|
};
|
|
177
169
|
};
|
|
178
|
-
exports.
|
|
179
|
-
var updateBankEntry = function updateBankEntry(bankId, bankEntryId, params) {
|
|
170
|
+
var updateBankEntry = exports.updateBankEntry = function updateBankEntry(bankId, bankEntryId, params) {
|
|
180
171
|
var url = "/api/banks/".concat(bankId, "/bank_entries/").concat(bankEntryId);
|
|
181
172
|
return function (dispatch, getState) {
|
|
182
173
|
var fetcher = new _Fetcher.default({
|
|
@@ -201,8 +192,7 @@ var updateBankEntry = function updateBankEntry(bankId, bankEntryId, params) {
|
|
|
201
192
|
});
|
|
202
193
|
};
|
|
203
194
|
};
|
|
204
|
-
exports.
|
|
205
|
-
var removeBankEntry = function removeBankEntry(bankId, bankEntryId) {
|
|
195
|
+
var removeBankEntry = exports.removeBankEntry = function removeBankEntry(bankId, bankEntryId) {
|
|
206
196
|
var url = "/api/banks/".concat(bankId, "/bank_entries/").concat(bankEntryId);
|
|
207
197
|
return function (dispatch, getState) {
|
|
208
198
|
var fetcher = new _Fetcher.default({
|
|
@@ -213,5 +203,4 @@ var removeBankEntry = function removeBankEntry(bankId, bankEntryId) {
|
|
|
213
203
|
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)]);
|
|
214
204
|
});
|
|
215
205
|
};
|
|
216
|
-
};
|
|
217
|
-
exports.removeBankEntry = removeBankEntry;
|
|
206
|
+
};
|
package/lib/banks/api/banks.js
CHANGED
|
@@ -4,8 +4,9 @@ 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;
|
|
7
8
|
exports.getExistingBankAndEntries = getExistingBankAndEntries;
|
|
8
|
-
exports.
|
|
9
|
+
exports.updateSharedBankPermission = exports.updateBank = exports.shareBank = exports.getSpecificBanks = exports.getSharedBanks = exports.getSharedBank = void 0;
|
|
9
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _Fetcher = _interopRequireDefault(require("../../common/util/Fetcher.js"));
|
|
@@ -35,7 +36,7 @@ var _fetchBanks = function _fetchBanks(dispatch) {
|
|
|
35
36
|
return pageData;
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
|
-
var getBanks = function getBanks() {
|
|
39
|
+
var getBanks = exports.getBanks = function getBanks() {
|
|
39
40
|
var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
40
41
|
var usedByCourseEnabled = arguments.length > 1 ? arguments[1] : void 0;
|
|
41
42
|
var getCourseAssignments = arguments.length > 2 ? arguments[2] : void 0;
|
|
@@ -53,8 +54,7 @@ var getBanks = function getBanks() {
|
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
};
|
|
56
|
-
exports.
|
|
57
|
-
var getAllBanks = function getAllBanks() {
|
|
57
|
+
var getAllBanks = exports.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,8 +68,7 @@ var getAllBanks = function getAllBanks() {
|
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
|
-
exports.
|
|
72
|
-
var getBank = function getBank(bankId) {
|
|
71
|
+
var getBank = exports.getBank = function getBank(bankId) {
|
|
73
72
|
return function (dispatch, getState) {
|
|
74
73
|
var fetcher = new _Fetcher.default({
|
|
75
74
|
onError: (0, _helpers.handleError)(dispatch, (0, _formatMessage.default)('Failed to fetch bank.'))
|
|
@@ -85,8 +84,7 @@ var getBank = function getBank(bankId) {
|
|
|
85
84
|
});
|
|
86
85
|
};
|
|
87
86
|
};
|
|
88
|
-
exports.
|
|
89
|
-
var getSpecificBanks = function getSpecificBanks() {
|
|
87
|
+
var getSpecificBanks = exports.getSpecificBanks = function getSpecificBanks() {
|
|
90
88
|
var bankIds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
91
89
|
return function (dispatch, getState) {
|
|
92
90
|
var fetcher = new _Fetcher.default({
|
|
@@ -101,8 +99,7 @@ var getSpecificBanks = function getSpecificBanks() {
|
|
|
101
99
|
});
|
|
102
100
|
};
|
|
103
101
|
};
|
|
104
|
-
exports.
|
|
105
|
-
var createBank = function createBank(newBank, shareWithCourseUuid) {
|
|
102
|
+
var createBank = exports.createBank = function createBank(newBank, shareWithCourseUuid) {
|
|
106
103
|
return function (dispatch, getState) {
|
|
107
104
|
var newBankData = JSON.stringify({
|
|
108
105
|
bank: {
|
|
@@ -124,7 +121,6 @@ var createBank = function createBank(newBank, shareWithCourseUuid) {
|
|
|
124
121
|
};
|
|
125
122
|
|
|
126
123
|
// not an action creator
|
|
127
|
-
exports.createBank = createBank;
|
|
128
124
|
var simpleShareWithCourse = function simpleShareWithCourse(dispatch, bankId, courseUuid) {
|
|
129
125
|
var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/shared_banks");
|
|
130
126
|
var shareBankData = JSON.stringify({
|
|
@@ -147,7 +143,7 @@ function getExistingBankAndEntries(bankId) {
|
|
|
147
143
|
return dispatch([(0, _ui.clear)("".concat(_quizCommon.BANKS_BANK_ENTRY_PAGINATION, ":").concat(bankId)), getBank(bankId)]);
|
|
148
144
|
};
|
|
149
145
|
}
|
|
150
|
-
var updateBank = function updateBank(bank) {
|
|
146
|
+
var updateBank = exports.updateBank = function updateBank(bank) {
|
|
151
147
|
var clearPagination = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
152
148
|
var url = "".concat(banksApiEndpoint, "/").concat(bank.id);
|
|
153
149
|
return function (dispatch, getState) {
|
|
@@ -173,8 +169,7 @@ var updateBank = function updateBank(bank) {
|
|
|
173
169
|
});
|
|
174
170
|
};
|
|
175
171
|
};
|
|
176
|
-
exports.
|
|
177
|
-
var deleteBank = function deleteBank(bankId) {
|
|
172
|
+
var deleteBank = exports.deleteBank = function deleteBank(bankId) {
|
|
178
173
|
(0, _copyingBanksPoller.removeFromPolling)([bankId]);
|
|
179
174
|
var url = "".concat(banksApiEndpoint, "/").concat(bankId);
|
|
180
175
|
return function (dispatch, getState) {
|
|
@@ -199,8 +194,7 @@ var deleteBank = function deleteBank(bankId) {
|
|
|
199
194
|
});
|
|
200
195
|
};
|
|
201
196
|
};
|
|
202
|
-
exports.
|
|
203
|
-
var shareBank = function shareBank(_shareBank) {
|
|
197
|
+
var shareBank = exports.shareBank = function shareBank(_shareBank) {
|
|
204
198
|
var getUserInfo = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _lodash.noop;
|
|
205
199
|
var url = "".concat(banksApiEndpoint, "/").concat(_shareBank.bankId, "/shared_banks");
|
|
206
200
|
return function (dispatch, getState) {
|
|
@@ -245,8 +239,7 @@ var shareBank = function shareBank(_shareBank) {
|
|
|
245
239
|
});
|
|
246
240
|
};
|
|
247
241
|
};
|
|
248
|
-
exports.
|
|
249
|
-
var getSharedBank = function getSharedBank(bankId, entityType, entityId) {
|
|
242
|
+
var getSharedBank = exports.getSharedBank = function getSharedBank(bankId, entityType, entityId) {
|
|
250
243
|
var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/shared_banks");
|
|
251
244
|
var params = {
|
|
252
245
|
entity_type: entityType,
|
|
@@ -277,8 +270,7 @@ var getSharedBank = function getSharedBank(bankId, entityType, entityId) {
|
|
|
277
270
|
});
|
|
278
271
|
};
|
|
279
272
|
};
|
|
280
|
-
exports.
|
|
281
|
-
var getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, getAccountInfo) {
|
|
273
|
+
var getSharedBanks = exports.getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, getAccountInfo) {
|
|
282
274
|
var url = "".concat(banksApiEndpoint, "/").concat(bank.id, "/shared_banks");
|
|
283
275
|
return function (dispatch, getState) {
|
|
284
276
|
var fetcher = new _Fetcher.default({
|
|
@@ -377,8 +369,7 @@ var getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, g
|
|
|
377
369
|
});
|
|
378
370
|
};
|
|
379
371
|
};
|
|
380
|
-
exports.
|
|
381
|
-
var updateSharedBankPermission = function updateSharedBankPermission(bankId, sharedBankId, permission) {
|
|
372
|
+
var updateSharedBankPermission = exports.updateSharedBankPermission = function updateSharedBankPermission(bankId, sharedBankId, permission) {
|
|
382
373
|
var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/shared_banks/").concat(sharedBankId);
|
|
383
374
|
return function (dispatch, getState) {
|
|
384
375
|
var shareBankData = JSON.stringify({
|
|
@@ -400,8 +391,7 @@ var updateSharedBankPermission = function updateSharedBankPermission(bankId, sha
|
|
|
400
391
|
});
|
|
401
392
|
};
|
|
402
393
|
};
|
|
403
|
-
exports.
|
|
404
|
-
var createBankCloneJob = function createBankCloneJob(bankId) {
|
|
394
|
+
var createBankCloneJob = exports.createBankCloneJob = function createBankCloneJob(bankId) {
|
|
405
395
|
var userId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _uuid.NIL;
|
|
406
396
|
var url = "".concat(banksApiEndpoint, "/").concat(bankId, "/bank_clone_jobs");
|
|
407
397
|
return function (dispatch, getState) {
|
|
@@ -417,5 +407,4 @@ var createBankCloneJob = function createBankCloneJob(bankId) {
|
|
|
417
407
|
body: field_overrides
|
|
418
408
|
});
|
|
419
409
|
};
|
|
420
|
-
};
|
|
421
|
-
exports.createBankCloneJob = createBankCloneJob;
|
|
410
|
+
};
|
|
@@ -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 = function addToPolling(bankId, bankTitle) {
|
|
15
|
+
var addToPolling = exports.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,13 +25,11 @@ var addToPolling = function addToPolling(bankId, bankTitle) {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var removeFromPolling = function removeFromPolling(removeIds) {
|
|
28
|
+
var removeFromPolling = exports.removeFromPolling = function removeFromPolling(removeIds) {
|
|
30
29
|
pollingBanks = pollingBanks.filter(function (bank) {
|
|
31
30
|
return !removeIds.includes(bank.id);
|
|
32
31
|
});
|
|
33
32
|
};
|
|
34
|
-
exports.removeFromPolling = removeFromPolling;
|
|
35
33
|
var handlePollingBanks = /*#__PURE__*/function () {
|
|
36
34
|
var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(dispatch) {
|
|
37
35
|
var getSpecificBanksFn,
|