@instructure/quiz-core 20.31.1-snapshot.3 → 20.31.2-rc.28
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/es/banks/components/AddToBankModal/index.js +0 -2
- package/es/banks/components/AddToBankModal/presenter.js +27 -33
- package/es/banks/components/AsyncSearch/index.js +1 -2
- package/es/banks/components/Banks/index.js +0 -1
- package/es/banks/components/Banks/presenter.js +2 -5
- package/es/banks/components/BanksList/index.js +1 -3
- package/es/banks/components/BanksList/presenter.js +16 -19
- package/es/banks/components/SharingModal/ShareList/index.js +2 -3
- package/es/banks/components/SharingModal/index.js +0 -1
- package/es/banks/components/SharingModal/presenter.js +1 -5
- package/es/common/components/layout/Page/index.js +4 -2
- package/es/common/components/layout/sidebar/Sidebar/index.js +2 -1
- package/es/common/components/resources/entry/EntrySave/index.js +0 -2
- package/es/common/components/resources/entry/EntrySave/presenter.js +1 -3
- package/es/common/components/resources/item/ItemEdit/index.js +0 -1
- package/es/common/components/resources/item/ItemEdit/presenter.js +0 -2
- package/es/common/components/shared/PrintTrigger/index.js +0 -2
- package/es/common/components/shared/PrintTrigger/presenter.js +1 -3
- package/es/common/selectors/calculator.js +0 -4
- package/es/common/util/interactionTypePropsHelper.js +0 -3
- package/lib/banks/api/bankEntries.js +24 -13
- package/lib/banks/api/banks.js +26 -15
- package/lib/banks/api/copyingBanksPoller.js +4 -2
- package/lib/banks/api/tagAssociations.js +8 -5
- package/lib/banks/components/AddBankEntryModal/index.js +4 -2
- package/lib/banks/components/AddBankEntryModal/presenter.js +4 -2
- package/lib/banks/components/AddToBankModal/index.js +3 -4
- package/lib/banks/components/AddToBankModal/presenter.js +31 -35
- package/lib/banks/components/AsyncSearch/index.js +5 -4
- package/lib/banks/components/Bank/index.js +5 -3
- package/lib/banks/components/Bank/presenter.js +4 -2
- package/lib/banks/components/Bank/styles.js +2 -1
- package/lib/banks/components/Bank/theme.js +2 -1
- package/lib/banks/components/BankEntriesList/index.js +3 -2
- package/lib/banks/components/BankEntriesList/presenter.js +4 -2
- package/lib/banks/components/BankEntriesList/styles.js +2 -1
- package/lib/banks/components/BankEntriesList/theme.js +2 -1
- package/lib/banks/components/BankEntry/index.js +4 -2
- package/lib/banks/components/BankEntry/presenter.js +4 -2
- package/lib/banks/components/BankEntry/styles.js +2 -1
- package/lib/banks/components/BankEntry/theme.js +2 -1
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +3 -2
- package/lib/banks/components/BankEntryRow/index.js +2 -1
- package/lib/banks/components/BankEntryRow/presenter.js +4 -2
- package/lib/banks/components/BankEntryRow/styles.js +2 -1
- package/lib/banks/components/BankEntryRow/theme.js +2 -1
- package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -7
- package/lib/banks/components/BankSearch/index.js +2 -1
- package/lib/banks/components/BankSearch/presenter.js +4 -2
- package/lib/banks/components/BankSearch/styles.js +2 -1
- package/lib/banks/components/BankSearch/theme.js +2 -1
- package/lib/banks/components/Banks/index.js +4 -3
- package/lib/banks/components/Banks/presenter.js +6 -7
- package/lib/banks/components/Banks/styles.js +2 -1
- package/lib/banks/components/Banks/theme.js +2 -1
- package/lib/banks/components/BanksList/index.js +5 -6
- package/lib/banks/components/BanksList/presenter.js +20 -21
- package/lib/banks/components/BanksList/styles.js +2 -1
- package/lib/banks/components/BanksList/theme.js +2 -1
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +3 -2
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +4 -2
- package/lib/banks/components/CreateBankModal/index.js +2 -1
- package/lib/banks/components/CreateBankModal/presenter.js +4 -2
- package/lib/banks/components/CreateBankModal/styles.js +2 -1
- package/lib/banks/components/CreateBankModal/theme.js +2 -1
- package/lib/banks/components/EditBankModal/index.js +2 -1
- package/lib/banks/components/EditBankModal/presenter.js +4 -2
- package/lib/banks/components/EditBankModal/styles.js +2 -1
- package/lib/banks/components/EditBankModal/theme.js +2 -1
- package/lib/banks/components/HeaderBreadCrumb/index.js +4 -2
- package/lib/banks/components/HeaderMenu/index.js +2 -1
- package/lib/banks/components/HeaderMenu/presenter.js +4 -2
- package/lib/banks/components/HeaderMenu/styles.js +2 -1
- package/lib/banks/components/HeaderMenu/theme.js +2 -1
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +3 -2
- package/lib/banks/components/NavWrapper/index.js +2 -1
- package/lib/banks/components/NavWrapper/presenter.js +2 -1
- package/lib/banks/components/NavWrapper/styles.js +2 -1
- package/lib/banks/components/NavWrapper/theme.js +2 -1
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +2 -1
- package/lib/banks/components/SharingModal/RootAccountSharing.js +4 -2
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +6 -5
- package/lib/banks/components/SharingModal/ShareList/styles.js +2 -1
- package/lib/banks/components/SharingModal/index.js +2 -2
- package/lib/banks/components/SharingModal/presenter.js +5 -7
- package/lib/banks/components/SharingModal/styles.js +2 -1
- package/lib/banks/components/SharingModal/theme.js +2 -1
- package/lib/building/api/items.js +1 -1
- package/lib/building/api/qtiImports.js +9 -5
- package/lib/building/api/quizEntries.js +10 -9
- package/lib/building/api/quizzes.js +15 -15
- package/lib/building/api/stimuli.js +1 -1
- package/lib/building/components/QTIImportModal/index.js +9 -5
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -1
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +9 -5
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +4 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -1
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -1
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +9 -5
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +4 -2
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -1
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -1
- package/lib/building/components/layout/Sidebar/index.js +9 -5
- package/lib/building/components/layout/Sidebar/presenter.js +4 -2
- package/lib/building/components/layout/Sidebar/styles.js +2 -1
- package/lib/building/components/layout/Sidebar/theme.js +2 -1
- package/lib/building/components/layout/header/BuildingButtons/index.js +5 -3
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +4 -2
- package/lib/building/components/layout/header/BuildingButtons/styles.js +2 -1
- package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -1
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +4 -2
- package/lib/building/components/resources/ActionButtons/index.js +4 -2
- package/lib/building/components/resources/ActionButtons/presenter.js +4 -2
- package/lib/building/components/resources/ActionButtons/styles.js +2 -1
- package/lib/building/components/resources/ActionButtons/theme.js +2 -1
- package/lib/building/components/resources/AddToBankOptions/index.js +4 -2
- package/lib/building/components/resources/AddToBankOptions/styles.js +2 -1
- package/lib/building/components/resources/AddToBankOptions/theme.js +2 -1
- package/lib/building/components/resources/BanksTray/index.js +4 -2
- package/lib/building/components/resources/BanksTray/presenter.js +4 -2
- package/lib/building/components/resources/DeleteStimulusModal/index.js +4 -2
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +4 -2
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -1
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -1
- package/lib/building/components/resources/ItemFeedbackModal/index.js +4 -2
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +4 -2
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -1
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -1
- package/lib/building/components/resources/MoveImmutableModal/index.js +4 -2
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -2
- package/lib/building/components/resources/quiz/editButton/EditButton.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +3 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +4 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +4 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Show/index.js +4 -2
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -1
- package/lib/building/components/resources/quiz/title/Edit/index.js +4 -2
- package/lib/building/components/resources/quiz/title/Edit/styles.js +2 -1
- package/lib/building/components/resources/quiz/title/Edit/theme.js +2 -1
- package/lib/building/components/resources/quiz/title/Show/index.js +4 -2
- package/lib/building/components/resources/quiz/title/Show/styles.js +2 -1
- package/lib/building/components/resources/quiz/title/Show/theme.js +2 -1
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +3 -2
- package/lib/building/components/resources/quiz/title/Title/index.js +4 -2
- package/lib/building/components/resources/quiz/title/Title/presenter.js +4 -2
- package/lib/building/components/resources/quiz/title/Title/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +2 -1
- package/lib/common/actions/alerts.js +2 -2
- package/lib/common/actions/analyses.js +7 -7
- package/lib/common/actions/bankEntries.js +5 -3
- package/lib/common/actions/bankSearch.js +10 -6
- package/lib/common/actions/banks.js +14 -8
- 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 +3 -2
- package/lib/common/actions/quizSessionEvents.js +3 -2
- package/lib/common/actions/quizSessionResults.js +3 -2
- package/lib/common/actions/quizSessions.js +13 -8
- package/lib/common/actions/quizzes.js +14 -8
- package/lib/common/actions/rce.js +8 -5
- 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 +3 -2
- package/lib/common/actions/sessionItems.js +3 -2
- package/lib/common/actions/sharedBanks.js +8 -5
- package/lib/common/actions/sidebar.js +1 -1
- package/lib/common/actions/tagAssociations.js +17 -9
- package/lib/common/actions/taking.js +38 -20
- package/lib/common/actions/ui.js +20 -11
- package/lib/common/actions/upload.js +11 -6
- package/lib/common/api/callHandlers.js +46 -25
- package/lib/common/api/camelizeHelpers.js +4 -2
- package/lib/common/api/features.js +3 -2
- package/lib/common/api/fileUpload.js +3 -2
- package/lib/common/api/getPersistenceActions.js +2 -1
- package/lib/common/api/helpers.js +10 -7
- package/lib/common/api/interactionTypes.js +3 -2
- package/lib/common/api/quizSessions.js +26 -17
- package/lib/common/api/quizzes.js +2 -2
- package/lib/common/api/schema.js +37 -20
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +5 -3
- package/lib/common/components/ConfirmationModal/index.js +2 -1
- package/lib/common/components/ConfirmationModal/presenter.js +4 -2
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +4 -2
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -1
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -1
- package/lib/common/components/ImportModal/index.js +7 -5
- package/lib/common/components/ImportModal/presenter.js +4 -2
- package/lib/common/components/ImportModal/styles.js +2 -1
- package/lib/common/components/ImportModal/theme.js +2 -1
- package/lib/common/components/LearnosityCalculator/index.js +4 -2
- package/lib/common/components/Pin/Pin.examples.js +3 -2
- package/lib/common/components/Pin/index.js +4 -2
- package/lib/common/components/Pin/presenter.js +4 -2
- package/lib/common/components/PreviewFrame/examples.config.js +3 -2
- package/lib/common/components/PreviewFrame/index.js +4 -2
- package/lib/common/components/PrintFontSizeModal/index.js +2 -1
- package/lib/common/components/PrintFontSizeModal/presenter.js +4 -2
- package/lib/common/components/PrintFontSizeModal/styles.js +2 -1
- package/lib/common/components/PrintFontSizeModal/theme.js +2 -1
- package/lib/common/components/RceConfigProvider/index.js +2 -1
- package/lib/common/components/RceConfigProvider/presenter.js +2 -1
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -3
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -7
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +3 -2
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -2
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -4
- package/lib/common/components/SDKApp/index.js +7 -4
- package/lib/common/components/SDKApp/styles.js +2 -1
- package/lib/common/components/SDKHeaderCalculator.js +4 -2
- package/lib/common/components/SDKMenuButton.js +4 -2
- package/lib/common/components/SDKNavBar.js +4 -2
- package/lib/common/components/SDKTimer.js +4 -2
- package/lib/common/components/alerts/index.js +3 -2
- package/lib/common/components/alerts/presenter.js +4 -2
- package/lib/common/components/alerts/styles.js +2 -1
- package/lib/common/components/alerts/theme.js +2 -1
- package/lib/common/components/layout/Page/index.js +8 -4
- package/lib/common/components/layout/Page/styles.js +2 -1
- package/lib/common/components/layout/Page/theme.js +2 -1
- package/lib/common/components/layout/header/Calculator/index.js +4 -2
- package/lib/common/components/layout/header/Calculator/presenter.js +4 -2
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +7 -5
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +4 -2
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +2 -1
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -1
- package/lib/common/components/layout/header/Timer/index.js +2 -1
- package/lib/common/components/layout/header/Timer/presenter.js +4 -2
- package/lib/common/components/layout/header/Timer/styles.js +2 -1
- package/lib/common/components/layout/header/Timer/theme.js +2 -1
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +2 -1
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +2 -1
- package/lib/common/components/layout/navbar/index.js +4 -2
- package/lib/common/components/layout/navbar/styles.js +2 -1
- package/lib/common/components/layout/navbar/theme.js +2 -1
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +4 -2
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -1
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +4 -2
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +3 -2
- package/lib/common/components/layout/sidebar/Sidebar/index.js +6 -3
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +2 -1
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +9 -5
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +4 -2
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -1
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +4 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +4 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +4 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/index.js +9 -5
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +2 -1
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -2
- package/lib/common/components/resources/BankSelection/index.js +4 -3
- package/lib/common/components/resources/BankSelection/presenter.js +4 -2
- package/lib/common/components/resources/WarningWrapper/index.js +4 -2
- package/lib/common/components/resources/WarningWrapper/styles.js +2 -1
- package/lib/common/components/resources/WarningWrapper/theme.js +2 -1
- package/lib/common/components/resources/entry/EntrySave/index.js +3 -4
- package/lib/common/components/resources/entry/EntrySave/presenter.js +5 -5
- package/lib/common/components/resources/item/ItemEdit/index.js +3 -3
- package/lib/common/components/resources/item/ItemEdit/presenter.js +4 -4
- package/lib/common/components/resources/item/ItemOverride/index.js +2 -1
- package/lib/common/components/resources/item/ItemOverride/presenter.js +4 -2
- package/lib/common/components/resources/item/ItemShow/index.js +2 -1
- package/lib/common/components/resources/positionBox/PositionBox.js +4 -2
- package/lib/common/components/resources/positionBox/styles.js +2 -1
- package/lib/common/components/resources/positionBox/theme.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +5 -3
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -1
- package/lib/common/components/resources/quiz/info/QuizInfo.js +4 -2
- package/lib/common/components/resources/quiz/instructions/Instructions.js +4 -2
- package/lib/common/components/resources/quiz/instructions/styles.js +2 -1
- package/lib/common/components/resources/quiz/instructions/theme.js +2 -1
- package/lib/common/components/resources/quiz/title/Title.js +4 -2
- package/lib/common/components/resources/quiz/title/styles.js +2 -1
- package/lib/common/components/resources/quiz/title/theme.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Header/index.js +4 -2
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +3 -2
- package/lib/common/components/resources/quizSessionResult/Info/index.js +4 -2
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -1
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -1
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +4 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +2 -1
- package/lib/common/components/resources/stimulus/Stimulus/index.js +2 -1
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +4 -2
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +2 -1
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +4 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +4 -2
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +3 -2
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +2 -1
- package/lib/common/components/shared/Card/CardContent/index.js +4 -2
- package/lib/common/components/shared/Card/CardContent/styles.js +2 -1
- package/lib/common/components/shared/Card/CardContent/theme.js +2 -1
- package/lib/common/components/shared/Card/CardWrapper/index.js +4 -2
- package/lib/common/components/shared/Card/CardWrapper/styles.js +2 -1
- package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -1
- package/lib/common/components/shared/Card/index.js +2 -1
- package/lib/common/components/shared/ExpandButton/index.js +4 -2
- package/lib/common/components/shared/ExpandButton/styles.js +2 -1
- package/lib/common/components/shared/ExpandButton/theme.js +2 -1
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +3 -2
- package/lib/common/components/shared/FormattedDuration/index.js +11 -7
- package/lib/common/components/shared/IfFeature/index.js +5 -3
- package/lib/common/components/shared/IfFeature/presenter.js +4 -2
- package/lib/common/components/shared/InteractionTypes/index.js +2 -1
- package/lib/common/components/shared/InteractionTypes/presenter.js +4 -2
- package/lib/common/components/shared/InteractionTypes/styles.js +2 -1
- package/lib/common/components/shared/InteractionTypes/theme.js +2 -1
- package/lib/common/components/shared/PaginatedCollection/index.js +4 -3
- package/lib/common/components/shared/PaginatedCollection/presenter.js +4 -2
- package/lib/common/components/shared/PaginatedCollection/styles.js +2 -1
- package/lib/common/components/shared/PaginatedCollection/theme.js +2 -1
- package/lib/common/components/shared/Paginator/index.js +4 -2
- package/lib/common/components/shared/Paginator/styles.js +2 -1
- package/lib/common/components/shared/Paginator/theme.js +2 -1
- package/lib/common/components/shared/PrintTrigger/index.js +5 -5
- package/lib/common/components/shared/PrintTrigger/presenter.js +5 -5
- package/lib/common/components/shared/TagDisplay/index.js +4 -2
- package/lib/common/components/shared/TagDisplay/styles.js +2 -1
- package/lib/common/components/shared/TagSelect/index.js +2 -1
- package/lib/common/components/shared/TagSelect/presenter.js +4 -2
- package/lib/common/components/shared/TagSuggestSelect/index.js +2 -1
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +4 -2
- package/lib/common/components/shared/TagWrapper/index.js +2 -1
- package/lib/common/components/shared/TagWrapper/presenter.js +4 -2
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -2
- package/lib/common/components/shared/TimeUnitsInput/index.js +4 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +4 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -1
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -1
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +5 -3
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +4 -2
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +19 -17
- package/lib/common/components/shared/errors/Errors.js +4 -2
- package/lib/common/components/shared/errors/styles.js +2 -1
- package/lib/common/components/shared/errors/theme.js +2 -1
- package/lib/common/components/shared/file_selector/FileSelector.js +4 -2
- package/lib/common/components/shared/file_selector/styles.js +2 -1
- package/lib/common/components/shared/file_selector/theme.js +2 -1
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +2 -1
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +2 -1
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +3 -2
- package/lib/common/components/shared/functionality/makeEditable.js +5 -3
- package/lib/common/components/shared/functionality/makeScrollable.js +7 -4
- package/lib/common/components/shared/overlay/index.js +2 -1
- package/lib/common/components/shared/overlay/styles.js +2 -1
- package/lib/common/components/shared/overlay/theme.js +2 -1
- package/lib/common/components/shared/return_button/ReturnButton.js +4 -2
- package/lib/common/components/shared/spinner/Spinner.js +4 -2
- package/lib/common/components/shared/spinner/styles.js +2 -1
- package/lib/common/kinesis/QuizEventsLogger.js +7 -4
- package/lib/common/kinesis/StreamQueue.js +3 -2
- package/lib/common/kinesis/client.js +9 -5
- package/lib/common/kinesis/config.js +10 -6
- package/lib/common/kinesis/eventTypes.js +15 -8
- package/lib/common/middleware/alertTimerMiddleware.js +2 -1
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +2 -1
- package/lib/common/middleware/eventLoggerMiddleware.js +2 -1
- package/lib/common/middleware/persistedStorageMiddleware.js +2 -1
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +14 -8
- package/lib/common/react-redux.js +3 -2
- package/lib/common/records/Alert.js +4 -2
- package/lib/common/records/Bank.js +4 -2
- package/lib/common/records/BankEntry.js +4 -2
- package/lib/common/records/Item.js +4 -2
- package/lib/common/records/ItemAnalysis.js +4 -2
- package/lib/common/records/QtiImport.js +4 -2
- package/lib/common/records/Quiz.js +4 -2
- package/lib/common/records/QuizAnalysis.js +4 -2
- package/lib/common/records/QuizEntry.js +4 -2
- package/lib/common/records/QuizSession.js +4 -2
- package/lib/common/records/QuizSessionEvent.js +4 -2
- package/lib/common/records/QuizSessionResult.js +4 -2
- package/lib/common/records/Response.js +4 -2
- package/lib/common/records/SessionItem.js +4 -2
- package/lib/common/records/SessionItemResult.js +4 -2
- package/lib/common/records/Stimulus.js +4 -2
- package/lib/common/records/baseRecord.js +3 -2
- package/lib/common/reducers/alerts.js +3 -2
- package/lib/common/reducers/analyses.js +28 -15
- package/lib/common/reducers/bankEntries.js +3 -2
- package/lib/common/reducers/bankSearch.js +3 -2
- package/lib/common/reducers/banks.js +3 -2
- package/lib/common/reducers/calls.js +3 -2
- package/lib/common/reducers/config.js +3 -2
- package/lib/common/reducers/dragAndDrop.js +3 -2
- package/lib/common/reducers/editing.js +3 -2
- package/lib/common/reducers/errorsShowing.js +3 -2
- package/lib/common/reducers/features.js +3 -2
- package/lib/common/reducers/grading.js +3 -2
- package/lib/common/reducers/interactionTypes.js +3 -2
- package/lib/common/reducers/items.js +3 -2
- package/lib/common/reducers/modal.js +3 -2
- package/lib/common/reducers/moderation.js +3 -2
- package/lib/common/reducers/modifications.js +3 -2
- package/lib/common/reducers/outcomes.js +3 -2
- package/lib/common/reducers/printing.js +3 -2
- package/lib/common/reducers/qtiImports.js +3 -2
- package/lib/common/reducers/quizEntries.js +3 -2
- package/lib/common/reducers/quizExport.js +3 -2
- package/lib/common/reducers/quizSessionEvents.js +3 -2
- package/lib/common/reducers/quizSessionResults.js +3 -2
- package/lib/common/reducers/quizSessions.js +3 -2
- package/lib/common/reducers/quizzes.js +3 -2
- package/lib/common/reducers/rce.js +3 -2
- package/lib/common/reducers/regrading.js +3 -2
- package/lib/common/reducers/reporting.js +3 -2
- package/lib/common/reducers/scrolling.js +3 -2
- package/lib/common/reducers/sessionItemResults.js +3 -2
- package/lib/common/reducers/sessionItems.js +3 -2
- package/lib/common/reducers/sharedBanks.js +3 -2
- package/lib/common/reducers/sidebar.js +3 -2
- package/lib/common/reducers/stimuli.js +3 -2
- package/lib/common/reducers/tagAssociations.js +3 -2
- package/lib/common/reducers/taking.js +3 -2
- package/lib/common/reducers/ui.js +3 -2
- package/lib/common/reducers/upload.js +3 -2
- package/lib/common/selectors/analyses.js +24 -13
- package/lib/common/selectors/calculator.js +0 -4
- package/lib/common/selectors/interactionTypes.js +4 -2
- package/lib/common/selectors/qtiImports.js +3 -2
- package/lib/common/selectors/quizSessionResults.js +1 -1
- package/lib/common/selectors/quizSessions.js +14 -8
- package/lib/common/selectors/quizzes.js +25 -13
- package/lib/common/selectors/rce.js +6 -4
- package/lib/common/selectors/reporting.js +3 -2
- package/lib/common/selectors/sessionItemResults.js +4 -3
- package/lib/common/selectors/sessionItems.js +4 -3
- package/lib/common/selectors/taking.js +11 -8
- package/lib/common/selectors/ui.js +3 -2
- package/lib/common/util/CustomPropTypes.js +5 -3
- package/lib/common/util/ElementsForSelectors.js +3 -2
- package/lib/common/util/ExhaustivePaginatedFetcher.js +2 -1
- package/lib/common/util/Fetcher.js +4 -2
- package/lib/common/util/MultiWeakMap.js +3 -2
- package/lib/common/util/PaginatedFetcher.js +4 -2
- package/lib/common/util/ThunkQueue.js +3 -2
- package/lib/common/util/TimeRecordingService.js +4 -2
- package/lib/common/util/TimerService.js +6 -3
- package/lib/common/util/cachePreviousArgs.js +3 -2
- package/lib/common/util/callHelpers.js +10 -6
- package/lib/common/util/componentForItem.js +4 -2
- package/lib/common/util/debounceLatestPromise.js +3 -2
- package/lib/common/util/formatTimespan.js +3 -2
- package/lib/common/util/generateDisplayPositions.js +3 -2
- package/lib/common/util/httpHeaders.js +8 -5
- package/lib/common/util/immutableHelpers.js +8 -5
- package/lib/common/util/instUIMessages.js +3 -2
- package/lib/common/util/interactionTypeMetadata.js +6 -4
- package/lib/common/util/interactionTypePropsHelper.js +5 -6
- package/lib/common/util/interactionTypeRecordForItem.js +2 -1
- package/lib/common/util/jsonify.js +4 -3
- package/lib/common/util/keyboardClickable.js +2 -1
- package/lib/common/util/mathRenderingUtils.js +4 -2
- package/lib/common/util/maxContent.js +3 -2
- package/lib/common/util/noop.js +3 -2
- package/lib/common/util/persistedState.js +2 -1
- package/lib/common/util/printUtils.js +6 -4
- package/lib/common/util/rceChecker.js +3 -2
- package/lib/common/util/renderAlerts.js +3 -2
- package/lib/common/util/serializeEvent.js +3 -2
- package/lib/common/util/sessionStore.js +4 -2
- package/lib/common/util/valMap.js +3 -2
- package/lib/common/util/warningHelpers.js +16 -9
- package/lib/common/util/windowChecks.js +12 -7
- package/lib/common/util/withCachedArguments.js +3 -2
- package/lib/common/util/withDynamoPagination.js +3 -2
- package/lib/common/util/withStateCache.js +2 -1
- package/lib/config.js +5 -3
- package/lib/configureStore.js +2 -1
- package/lib/grading/api/updateResults.js +3 -2
- package/lib/index.js +401 -402
- package/lib/messages/LocalStorageAdapter.js +4 -2
- package/lib/messages/LocalStorageLimits.js +2 -1
- package/lib/messages/StorageExhaustionError.js +3 -2
- package/lib/messages/postMessageService.js +3 -2
- package/lib/messages/subjectHandlers/forwardMessage.js +2 -1
- package/lib/messages/subjectHandlers/lti.capabilities.js +2 -1
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -1
- package/lib/messages/subjectHandlers/lti.frameResize.js +2 -1
- package/lib/messages/subjectHandlers/lti.get_data.js +2 -1
- package/lib/messages/subjectHandlers/lti.put_data.js +2 -1
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +4 -2
- package/lib/moderating/api/quizSessions.js +1 -1
- package/lib/moderating/components/events/Event.js +4 -2
- package/lib/moderating/components/events/PageBlurredEvent.js +4 -2
- package/lib/moderating/components/events/PageFocusedEvent.js +4 -2
- package/lib/moderating/components/events/RCEEvent.js +4 -2
- package/lib/moderating/components/events/ResponseEvent.js +4 -2
- package/lib/moderating/components/events/SessionStartEvent.js +4 -2
- package/lib/moderating/components/events/styles.js +2 -1
- package/lib/moderating/components/events/theme.js +2 -1
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +2 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +4 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +4 -2
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +4 -2
- package/lib/moderating/components/resources/AccommodationsModal/index.js +4 -2
- package/lib/moderating/components/resources/ElapsedTime.js +4 -2
- package/lib/moderating/components/resources/ModerateTable/index.js +7 -4
- package/lib/moderating/components/resources/ModerateTable/presenter.js +4 -2
- package/lib/moderating/components/resources/ModerateTable/styles.js +2 -1
- package/lib/moderating/components/resources/ModerateTable/theme.js +2 -1
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +3 -2
- package/lib/moderating/components/resources/ModerateTableRow/index.js +3 -2
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +4 -2
- package/lib/moderating/components/resources/ModerateTableRow/story.js +2 -1
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +2 -1
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -1
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +5 -3
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +4 -2
- package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +2 -1
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -2
- package/lib/moderating/components/sidebar/ModerateTray/index.js +4 -3
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +4 -2
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +4 -3
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +4 -2
- package/lib/reduxStore.js +5 -4
- package/lib/reporting/api/fetchStudentAnalyses.js +3 -2
- package/lib/reporting/api/getAnalysesExport.js +3 -2
- package/lib/reporting/api/getAnalysesStatus.js +3 -2
- package/lib/reporting/api/getItemAnalyses.js +3 -2
- package/lib/reporting/api/getQuizAnalysis.js +3 -2
- package/lib/reporting/components/Caption/index.js +4 -2
- package/lib/reporting/components/Caption/styles.js +2 -1
- package/lib/reporting/components/Caption/theme.js +2 -1
- package/lib/reporting/components/MetricsListItem/index.js +4 -2
- package/lib/reporting/components/MetricsListItem/styles.js +2 -1
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +2 -1
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +4 -2
- package/lib/reporting/components/charts/CentileDistribution/styles.js +2 -1
- package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -1
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +4 -2
- package/lib/reporting/components/charts/Distribution/Distribution.js +2 -1
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -1
- package/lib/reporting/components/charts/Distribution/index.js +2 -1
- package/lib/reporting/components/charts/Distribution/presenter.js +7 -4
- package/lib/reporting/components/charts/Distribution/styles.js +2 -1
- package/lib/reporting/components/charts/Distribution/theme.js +2 -1
- package/lib/reporting/components/charts/Legend/index.js +4 -2
- package/lib/reporting/components/charts/Legend/styles.js +2 -1
- package/lib/reporting/components/charts/Legend/theme.js +2 -1
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -1
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +4 -2
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -1
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +3 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +2 -1
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +3 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +5 -3
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +2 -1
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +2 -1
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +4 -2
- package/lib/reporting/components/quizAnalysis/styles.js +2 -1
- package/lib/reporting/components/quizAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +6 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +7 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +6 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +5 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +3 -2
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +5 -3
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +4 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +5 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/ReportCard/index.js +4 -2
- package/lib/reporting/components/resources/ReportCard/styles.js +2 -1
- package/lib/reporting/components/resources/ReportCard/theme.js +2 -1
- package/lib/reporting/components/resources/ReportList/index.js +4 -2
- package/lib/reporting/components/resources/ReportList/styles.js +2 -1
- package/lib/reporting/components/resources/ReportList/theme.js +2 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +3 -2
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +2 -1
- package/lib/reporting/components/resources/common/ExportButton/index.js +2 -1
- package/lib/reporting/components/resources/common/errorCodes.js +16 -9
- package/lib/reporting/components/resources/common/errorMessages.js +18 -10
- package/lib/reporting/components/resources/common/exportReports.js +3 -2
- package/lib/reporting/components/resources/common/generateReports.js +5 -3
- package/lib/reporting/components/resources/common/propTypes.js +34 -18
- package/lib/reporting/components/resources/common/utils.js +6 -4
- package/lib/taking/api/taking.js +16 -14
- package/lib/taking/learnosity/index.js +1 -1
- package/package.json +63 -63
- 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 (
|
|
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()) ||
|
|
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
|
-
},
|
|
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
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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() {},
|
|
@@ -153,7 +153,7 @@ export var AsyncSearch = /*#__PURE__*/function (_Component) {
|
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
if (
|
|
156
|
+
if (shouldSearchCourses) {
|
|
157
157
|
_this.props.getShareableCourses(value).then(function (shareableCourses) {
|
|
158
158
|
var filteredCourses = _this.filterOptions(shareableCourses);
|
|
159
159
|
_this.setState({
|
|
@@ -357,7 +357,6 @@ export var AsyncSearch = /*#__PURE__*/function (_Component) {
|
|
|
357
357
|
}(Component);
|
|
358
358
|
AsyncSearch.propTypes = {
|
|
359
359
|
debounceDelay: PropTypes.number,
|
|
360
|
-
improvedBankSharingEnabled: PropTypes.bool.isRequired,
|
|
361
360
|
minChars: PropTypes.number,
|
|
362
361
|
onSelectionChange: PropTypes.func.isRequired,
|
|
363
362
|
getShareableCourses: PropTypes.func,
|
|
@@ -18,7 +18,6 @@ function mapStateToProps(state, props) {
|
|
|
18
18
|
var rootAccountUuid = state.getIn(['outcomes', 'externalAccountUuid']);
|
|
19
19
|
return {
|
|
20
20
|
itemBankSearchTableEnabled: featureOn('item_bank_search_table'),
|
|
21
|
-
improvedBankSharingEnabled: featureOn('improved_bank_sharing'),
|
|
22
21
|
usedByCourseEnabled: featureOn('filter_item_banks_used_by_course'),
|
|
23
22
|
subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
|
|
24
23
|
scopeType: scopeType,
|
|
@@ -308,7 +308,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
308
308
|
width: 4
|
|
309
309
|
}, jsx(AsyncSearch, {
|
|
310
310
|
getShareableSubaccounts: this.props.getShareableSubaccounts,
|
|
311
|
-
improvedBankSharingEnabled: this.props.improvedBankSharingEnabled,
|
|
312
311
|
minChars: this.props.minChars,
|
|
313
312
|
onSelectionChange: this.handleSearchSelectionChange,
|
|
314
313
|
searchType: SHARED_WITH_ACCOUNT,
|
|
@@ -368,7 +367,7 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
368
367
|
key: "renderHeader",
|
|
369
368
|
value: function renderHeader() {
|
|
370
369
|
return jsx("div", {
|
|
371
|
-
css: [this.props.styles.header
|
|
370
|
+
css: [this.props.styles.header]
|
|
372
371
|
}, jsx(Heading, {
|
|
373
372
|
as: this.props.isCompact ? 'h2' : 'h1',
|
|
374
373
|
level: "h1"
|
|
@@ -423,7 +422,7 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
423
422
|
returnToUrl: this.props.returnToUrl,
|
|
424
423
|
scope: this.props.scope,
|
|
425
424
|
navigateToBuild: this.props.navigateToBuild
|
|
426
|
-
})), this.renderHeader(), this.
|
|
425
|
+
})), this.renderHeader(), this.renderFilters(), this.renderBanksSearchResults(), jsx(CreateBankModal, {
|
|
427
426
|
itemBanksScope: this.props.scope
|
|
428
427
|
})));
|
|
429
428
|
}
|
|
@@ -444,7 +443,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
444
443
|
}),
|
|
445
444
|
// from consumer
|
|
446
445
|
clear: PropTypes.func.isRequired,
|
|
447
|
-
improvedBankSharingEnabled: PropTypes.bool,
|
|
448
446
|
getBanks: PropTypes.func.isRequired,
|
|
449
447
|
getCourseInfo: PropTypes.func,
|
|
450
448
|
// from consumer
|
|
@@ -512,7 +510,6 @@ export var Banks = (_dec = withStyle(generateStyle, generateComponentTheme), _de
|
|
|
512
510
|
onShare: function onShare() {},
|
|
513
511
|
scope: {},
|
|
514
512
|
returnToUrl: null,
|
|
515
|
-
improvedBankSharingEnabled: false,
|
|
516
513
|
scopeType: 'user',
|
|
517
514
|
sortBy: 'name',
|
|
518
515
|
sortOrder: 'ascending',
|
|
@@ -4,7 +4,6 @@ import BanksList from "./presenter.js";
|
|
|
4
4
|
import Bank from "../../../common/records/Bank.js";
|
|
5
5
|
import { openModal, withConfirm } from "../../../common/actions/modal.js";
|
|
6
6
|
import { deleteBank, createBankCloneJob } from "../../api/banks.js";
|
|
7
|
-
import { featureOn } from "../../../common/util/featureCheck.js";
|
|
8
7
|
import { addInfo } from "../../../common/actions/alerts.js";
|
|
9
8
|
import { addToPolling } from "../../api/copyingBanksPoller.js";
|
|
10
9
|
export function mapStateToProps(state, props) {
|
|
@@ -12,8 +11,7 @@ export function mapStateToProps(state, props) {
|
|
|
12
11
|
appContainer: state.getIn(['ui', 'appContainer']),
|
|
13
12
|
banks: List(props.recordIds).map(function (id) {
|
|
14
13
|
return Bank.create(state.getIn(['banks', id]));
|
|
15
|
-
})
|
|
16
|
-
duplicateItemBanks: featureOn('duplicate_item_banks')
|
|
14
|
+
})
|
|
17
15
|
};
|
|
18
16
|
}
|
|
19
17
|
export default connect(mapStateToProps, {
|
|
@@ -263,21 +263,6 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
263
263
|
name: bank.title
|
|
264
264
|
})
|
|
265
265
|
}));
|
|
266
|
-
var duplicateBankOption = jsx(IconButton, {
|
|
267
|
-
onClick: _this.openDuplicateBankModal(bank),
|
|
268
|
-
name: "Duplicate",
|
|
269
|
-
size: "small",
|
|
270
|
-
"data-automation": "sdk-duplicate-bank-button",
|
|
271
|
-
renderIcon: IconCopyLine,
|
|
272
|
-
withBackground: false,
|
|
273
|
-
withBorder: false,
|
|
274
|
-
title: t('Duplicate bank {name}', {
|
|
275
|
-
name: bank.title
|
|
276
|
-
}),
|
|
277
|
-
screenReaderLabel: t('Duplicate bank {name}', {
|
|
278
|
-
name: bank.title
|
|
279
|
-
})
|
|
280
|
-
});
|
|
281
266
|
if (bank.status === 'copying') {
|
|
282
267
|
return jsx("div", {
|
|
283
268
|
css: _this.props.styles.bankOptions
|
|
@@ -289,7 +274,21 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
289
274
|
} else {
|
|
290
275
|
return jsx("div", {
|
|
291
276
|
css: _this.props.styles.bankOptions
|
|
292
|
-
},
|
|
277
|
+
}, jsx(IconButton, {
|
|
278
|
+
onClick: _this.openDuplicateBankModal(bank),
|
|
279
|
+
name: "Duplicate",
|
|
280
|
+
size: "small",
|
|
281
|
+
"data-automation": "sdk-duplicate-bank-button",
|
|
282
|
+
renderIcon: IconCopyLine,
|
|
283
|
+
withBackground: false,
|
|
284
|
+
withBorder: false,
|
|
285
|
+
title: t('Duplicate bank {name}', {
|
|
286
|
+
name: bank.title
|
|
287
|
+
}),
|
|
288
|
+
screenReaderLabel: t('Duplicate bank {name}', {
|
|
289
|
+
name: bank.title
|
|
290
|
+
})
|
|
291
|
+
}), jsx(IfFeature, {
|
|
293
292
|
name: "item_bank_sharing"
|
|
294
293
|
}, jsx(IconButton, {
|
|
295
294
|
onClick: _this.openSharingModal(bank),
|
|
@@ -479,7 +478,6 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
479
478
|
}),
|
|
480
479
|
focusCreateBankButton: PropTypes.func.isRequired,
|
|
481
480
|
deleteBank: PropTypes.func.isRequired,
|
|
482
|
-
duplicateItemBanks: PropTypes.bool,
|
|
483
481
|
getCourseInfo: PropTypes.func,
|
|
484
482
|
getUserInfo: PropTypes.func,
|
|
485
483
|
getShareableCourses: PropTypes.func,
|
|
@@ -503,8 +501,7 @@ export var BanksList = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
503
501
|
minChars: void 0,
|
|
504
502
|
locale: null,
|
|
505
503
|
timezone: null,
|
|
506
|
-
onShare: function onShare() {}
|
|
507
|
-
duplicateItemBanks: false
|
|
504
|
+
onShare: function onShare() {}
|
|
508
505
|
}, _BanksList.contextTypes = {
|
|
509
506
|
locale: PropTypes.string,
|
|
510
507
|
timezone: PropTypes.string
|
|
@@ -78,7 +78,7 @@ export var ShareList = (_dec = withStyle(generateStyle, null), _dec(_class = (_S
|
|
|
78
78
|
})), jsx(Grid.Col, null, jsx("span", {
|
|
79
79
|
css: isEntityRemoved ? _this.props.styles.labelRemoved : null,
|
|
80
80
|
"data-automation": isEntityRemoved ? 'sdk-shared-entity-removed' : null
|
|
81
|
-
}, entity.get('title'))),
|
|
81
|
+
}, entity.get('title'))), jsx(Grid.Col, {
|
|
82
82
|
width: "auto"
|
|
83
83
|
}, jsx(SimpleSelect, {
|
|
84
84
|
onChange: _this.handlePermissionChange(entity),
|
|
@@ -95,7 +95,7 @@ export var ShareList = (_dec = withStyle(generateStyle, null), _dec(_class = (_S
|
|
|
95
95
|
value: CAN_EDIT
|
|
96
96
|
}, t('Can edit')))), jsx(Grid.Col, {
|
|
97
97
|
width: "auto"
|
|
98
|
-
}, _this.props.canEdit &&
|
|
98
|
+
}, _this.props.canEdit && _this.renderRemoveButton(entity, isEntityRemoved)));
|
|
99
99
|
};
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
@@ -117,7 +117,6 @@ export var ShareList = (_dec = withStyle(generateStyle, null), _dec(_class = (_S
|
|
|
117
117
|
permission: PropTypes.string.isRequired,
|
|
118
118
|
id: PropTypes.string.isRequired
|
|
119
119
|
})).isRequired,
|
|
120
|
-
improvedBankSharingEnabled: PropTypes.bool.isRequired,
|
|
121
120
|
onPermissionChange: PropTypes.func.isRequired,
|
|
122
121
|
onEntityRemove: PropTypes.func.isRequired,
|
|
123
122
|
sharedBanks: ImmutablePropTypes.list,
|
|
@@ -11,7 +11,6 @@ function mapStateToProps(state, ownProps) {
|
|
|
11
11
|
return sharedBank.get('bankId') === ownProps.bank.id;
|
|
12
12
|
}).toList();
|
|
13
13
|
return {
|
|
14
|
-
improvedBankSharingEnabled: featureOn('improved_bank_sharing'),
|
|
15
14
|
subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
|
|
16
15
|
sharedBanks: sharedBanks
|
|
17
16
|
};
|
|
@@ -325,13 +325,12 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
|
|
|
325
325
|
getShareableCourses: _this.props.getShareableCourses,
|
|
326
326
|
getShareableUsers: _this.props.getShareableUsers,
|
|
327
327
|
getShareableSubaccounts: _this.props.getShareableSubaccounts,
|
|
328
|
-
improvedBankSharingEnabled: _this.props.improvedBankSharingEnabled,
|
|
329
328
|
minChars: _this.props.minChars,
|
|
330
329
|
onSelectionChange: _this.handleSearchSelectionChange,
|
|
331
330
|
searchType: searchType,
|
|
332
331
|
selectedOption: _this.state.searchSelection,
|
|
333
332
|
selectionFilter: _this.handleSearchFilter
|
|
334
|
-
})),
|
|
333
|
+
})), jsx(Grid.Col, {
|
|
335
334
|
width: "auto"
|
|
336
335
|
}, jsx(SimpleSelect, {
|
|
337
336
|
onChange: _this.handleSearchPermissionChange,
|
|
@@ -359,7 +358,6 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
|
|
|
359
358
|
return jsx(ShareList, {
|
|
360
359
|
canEdit: _this.props.bank.canEdit(),
|
|
361
360
|
entities: entities,
|
|
362
|
-
improvedBankSharingEnabled: _this.props.improvedBankSharingEnabled,
|
|
363
361
|
onPermissionChange: _this.handleEntityPermissionChange,
|
|
364
362
|
onEntityRemove: _this.handleEntityRemove,
|
|
365
363
|
sharedBanks: _this.props.sharedBanks
|
|
@@ -574,7 +572,6 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
|
|
|
574
572
|
getUserInfo: PropTypes.func.isRequired,
|
|
575
573
|
getShareableSubaccounts: PropTypes.func.isRequired,
|
|
576
574
|
getSubaccountInfo: PropTypes.func.isRequired,
|
|
577
|
-
improvedBankSharingEnabled: PropTypes.bool,
|
|
578
575
|
isOpen: PropTypes.bool,
|
|
579
576
|
minChars: PropTypes.number,
|
|
580
577
|
modalTrigger: PropTypes.node,
|
|
@@ -593,7 +590,6 @@ export var SharingModalPresenter = (_dec = withStyle(generateStyle, generateComp
|
|
|
593
590
|
}, _SharingModalPresenter.defaultProps = {
|
|
594
591
|
bank: null,
|
|
595
592
|
currentUser: null,
|
|
596
|
-
improvedBankSharingEnabled: false,
|
|
597
593
|
isOpen: false,
|
|
598
594
|
minChars: void 0,
|
|
599
595
|
modalTrigger: null,
|
|
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
10
10
|
import generateStyle from "./styles.js";
|
|
11
11
|
import generateComponentTheme from "./theme.js";
|
|
12
|
+
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
13
|
export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
|
|
13
14
|
_inherits(Page, _Component);
|
|
14
15
|
var _super = _createSuper(Page);
|
|
@@ -50,7 +51,8 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
50
51
|
tabIndex: "-1",
|
|
51
52
|
ref: this.props.childrenWrapperRef,
|
|
52
53
|
role: this.props.contentRole,
|
|
53
|
-
css: this.props.styles.childrenWrapper
|
|
54
|
+
css: this.props.styles.childrenWrapper,
|
|
55
|
+
"aria-label": t('Quiz content')
|
|
54
56
|
}, this.props.children));
|
|
55
57
|
}
|
|
56
58
|
}]);
|
|
@@ -68,7 +70,7 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
68
70
|
makeStyles: PropTypes.func
|
|
69
71
|
}, _Page.defaultProps = {
|
|
70
72
|
childrenWrapperRef: function childrenWrapperRef() {},
|
|
71
|
-
contentRole: '
|
|
73
|
+
contentRole: 'region',
|
|
72
74
|
sidebarComponent: null,
|
|
73
75
|
sidebarOpen: null,
|
|
74
76
|
sidebarRole: 'navigation',
|
|
@@ -290,7 +290,8 @@ export var Sidebar = (_dec = withStyle(generateStyle, generateComponentTheme), _
|
|
|
290
290
|
// take the click and scroll to itself when the nav is clicked by SR
|
|
291
291
|
,
|
|
292
292
|
onClick: noop,
|
|
293
|
-
id: SIDEBAR_NAV_ID
|
|
293
|
+
id: SIDEBAR_NAV_ID,
|
|
294
|
+
"aria-label": t('Question Navigator')
|
|
294
295
|
}, this.renderSidebarHeader(), this.renderTotalPointsPossible(), this.renderPinned(), this.renderTitle(), this.renderInstructions(), this.renderResults(), jsx("div", {
|
|
295
296
|
css: this.props.styles.sidebarContent
|
|
296
297
|
}, this.props.children)))));
|
|
@@ -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.
|
|
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 (
|
|
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.
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|