@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
|
@@ -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.handleBankEntriesResponse = exports.handleShareBanksResponse = exports.handleBanksResponse = exports.handleQuizSessionsResponse = exports.handleQuizSessionResultsResponse = exports.handleResumeDataResponse = exports.handleSessionItemResultsResponse = exports.handleSessionItemsResponse = exports.handleQuizEntriesResponse = exports.handleInteractionTypesResponse = exports.handleStimuliResponse = exports.handleItemsResponse = exports.handleItemAnalysesResponse = exports.handleQuizSessionEventsResponse = exports.handleQtiImportsResponse = exports.handleQuizEntryResponse = exports.handleBankEntryResponse = exports.handleShareBankResponse = exports.handleBankResponse = exports.handleQuizSessionResponse = exports.handleQuizAnalysisResponse = exports.handleQuizResponse = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
9
|
var _normalizr = require("normalizr");
|
|
10
10
|
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
@@ -67,78 +67,99 @@ var quizEntriesWithInteractionTypes = function quizEntriesWithInteractionTypes(q
|
|
|
67
67
|
|
|
68
68
|
// ========= Single Object Handlers =========
|
|
69
69
|
|
|
70
|
-
var handleQuizResponse =
|
|
70
|
+
var handleQuizResponse = function handleQuizResponse(quizData) {
|
|
71
71
|
return handleSingleObject(quizData, _schema.quizSchema);
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
exports.handleQuizResponse = handleQuizResponse;
|
|
74
|
+
var handleQuizAnalysisResponse = function handleQuizAnalysisResponse(quizAnalysisData) {
|
|
74
75
|
return handleSingleObject(quizAnalysisData, _schema.quizAnalysisSchema);
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
+
exports.handleQuizAnalysisResponse = handleQuizAnalysisResponse;
|
|
78
|
+
var handleQuizSessionResponse = function handleQuizSessionResponse(quizSessionData) {
|
|
77
79
|
return handleSingleObject(omitDeprecatedQSData(quizSessionData), _schema.quizSessionSchema);
|
|
78
80
|
};
|
|
79
|
-
|
|
81
|
+
exports.handleQuizSessionResponse = handleQuizSessionResponse;
|
|
82
|
+
var handleBankResponse = function handleBankResponse(bankData) {
|
|
80
83
|
return handleSingleObject(bankData, _schema.bankSchema);
|
|
81
84
|
};
|
|
82
|
-
|
|
85
|
+
exports.handleBankResponse = handleBankResponse;
|
|
86
|
+
var handleShareBankResponse = function handleShareBankResponse(shareBankData) {
|
|
83
87
|
return handleSingleObject(shareBankData, _schema.shareBankSchema);
|
|
84
88
|
};
|
|
85
|
-
|
|
89
|
+
exports.handleShareBankResponse = handleShareBankResponse;
|
|
90
|
+
var handleBankEntryResponse = function handleBankEntryResponse(bankEntryData) {
|
|
86
91
|
return handleSingleObject(bankEntryData, _schema.bankEntrySchema);
|
|
87
92
|
};
|
|
88
|
-
|
|
93
|
+
exports.handleBankEntryResponse = handleBankEntryResponse;
|
|
94
|
+
var handleQuizEntryResponse = function handleQuizEntryResponse(quizEntryData) {
|
|
89
95
|
return handleSingleObject(quizEntryData, _schema.quizEntrySchema);
|
|
90
96
|
};
|
|
91
97
|
|
|
92
98
|
// ========= Array Handlers =========
|
|
93
|
-
|
|
94
|
-
var handleQtiImportsResponse =
|
|
99
|
+
exports.handleQuizEntryResponse = handleQuizEntryResponse;
|
|
100
|
+
var handleQtiImportsResponse = function handleQtiImportsResponse(importsData) {
|
|
95
101
|
return handleArray(importsData, _schema.qtiImportSchema);
|
|
96
102
|
};
|
|
97
|
-
|
|
103
|
+
exports.handleQtiImportsResponse = handleQtiImportsResponse;
|
|
104
|
+
var handleQuizSessionEventsResponse = function handleQuizSessionEventsResponse(quizSessionEventsData) {
|
|
98
105
|
return handleArray(quizSessionEventsData, _schema.quizSessionEventSchema);
|
|
99
106
|
};
|
|
100
|
-
|
|
107
|
+
exports.handleQuizSessionEventsResponse = handleQuizSessionEventsResponse;
|
|
108
|
+
var handleItemAnalysesResponse = function handleItemAnalysesResponse(itemAnalysisData) {
|
|
101
109
|
return handleArray(itemAnalysisData, _schema.itemAnalysisSchema);
|
|
102
110
|
};
|
|
103
|
-
|
|
111
|
+
exports.handleItemAnalysesResponse = handleItemAnalysesResponse;
|
|
112
|
+
var handleItemsResponse = function handleItemsResponse(itemsData) {
|
|
104
113
|
return handleArray(itemsData, _schema.itemSchema);
|
|
105
114
|
};
|
|
106
|
-
|
|
115
|
+
exports.handleItemsResponse = handleItemsResponse;
|
|
116
|
+
var handleStimuliResponse = function handleStimuliResponse(stimuliData) {
|
|
107
117
|
return handleArray(stimuliData, _schema.stimulusSchema);
|
|
108
118
|
};
|
|
109
|
-
|
|
119
|
+
exports.handleStimuliResponse = handleStimuliResponse;
|
|
120
|
+
var handleInteractionTypesResponse = function handleInteractionTypesResponse(interactionTypesData) {
|
|
110
121
|
return handleArray(interactionTypesData, _schema.interactionTypeSchema);
|
|
111
122
|
};
|
|
112
|
-
|
|
123
|
+
exports.handleInteractionTypesResponse = handleInteractionTypesResponse;
|
|
124
|
+
var handleQuizEntriesResponse = function handleQuizEntriesResponse(quizEntriesData) {
|
|
113
125
|
return handleArray(quizEntriesWithInteractionTypes(quizEntriesData), _schema.quizEntriesSchema);
|
|
114
126
|
};
|
|
115
|
-
|
|
127
|
+
exports.handleQuizEntriesResponse = handleQuizEntriesResponse;
|
|
128
|
+
var handleSessionItemsResponse = function handleSessionItemsResponse(sessionItemsData, quizSessionId) {
|
|
116
129
|
setQuizSessionKeysForList(quizSessionId, sessionItemsData);
|
|
117
130
|
return handleArray(sessionItemsData, _schema.sessionItemSchema);
|
|
118
131
|
};
|
|
119
|
-
|
|
132
|
+
exports.handleSessionItemsResponse = handleSessionItemsResponse;
|
|
133
|
+
var handleSessionItemResultsResponse = function handleSessionItemResultsResponse(sessionItemResultsData, quizSessionId) {
|
|
120
134
|
setQuizSessionKeysForList(quizSessionId, sessionItemResultsData);
|
|
121
135
|
return handleArray(sessionItemResultsData, _schema.sessionItemResultSchema);
|
|
122
136
|
};
|
|
123
|
-
|
|
137
|
+
exports.handleSessionItemResultsResponse = handleSessionItemResultsResponse;
|
|
138
|
+
var handleResumeDataResponse = function handleResumeDataResponse(resumeData, quizSessionId) {
|
|
124
139
|
setQuizSessionKeysForList(quizSessionId, resumeData);
|
|
125
140
|
if (resumeData.length === 0) {
|
|
126
141
|
return (0, _taking.loadResumeData)(resumeData);
|
|
127
142
|
}
|
|
128
143
|
return handleArray(resumeData, _schema.resumeDataSchema);
|
|
129
144
|
};
|
|
130
|
-
|
|
145
|
+
exports.handleResumeDataResponse = handleResumeDataResponse;
|
|
146
|
+
var handleQuizSessionResultsResponse = function handleQuizSessionResultsResponse(quizSessionResultsData) {
|
|
131
147
|
return handleArray(quizSessionResultsData, _schema.quizSessionResultSchema);
|
|
132
148
|
};
|
|
133
|
-
|
|
149
|
+
exports.handleQuizSessionResultsResponse = handleQuizSessionResultsResponse;
|
|
150
|
+
var handleQuizSessionsResponse = function handleQuizSessionsResponse(quizSessionsData) {
|
|
134
151
|
return handleArray(quizSessionsData.map(omitDeprecatedQSData), _schema.quizSessionSchema);
|
|
135
152
|
};
|
|
136
|
-
|
|
153
|
+
exports.handleQuizSessionsResponse = handleQuizSessionsResponse;
|
|
154
|
+
var handleBanksResponse = function handleBanksResponse(banksData) {
|
|
137
155
|
return handleArray(banksData, _schema.bankSchema);
|
|
138
156
|
};
|
|
139
|
-
|
|
157
|
+
exports.handleBanksResponse = handleBanksResponse;
|
|
158
|
+
var handleShareBanksResponse = function handleShareBanksResponse(shareBankData) {
|
|
140
159
|
return handleArray(shareBankData, _schema.shareBankSchema);
|
|
141
160
|
};
|
|
142
|
-
|
|
161
|
+
exports.handleShareBanksResponse = handleShareBanksResponse;
|
|
162
|
+
var handleBankEntriesResponse = function handleBankEntriesResponse(bankEntriesData) {
|
|
143
163
|
return handleArray(bankEntriesData, _schema.bankEntrySchema);
|
|
144
|
-
};
|
|
164
|
+
};
|
|
165
|
+
exports.handleBankEntriesResponse = handleBankEntriesResponse;
|
|
@@ -22,10 +22,12 @@ var maintainUUIDs = function maintainUUIDs(key, convert) {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// convert snake_case to camelCase
|
|
25
|
-
var camelizeNonUuidKeys =
|
|
25
|
+
var camelizeNonUuidKeys = function camelizeNonUuidKeys(listOfObjects) {
|
|
26
26
|
return (0, _humps.camelizeKeys)(listOfObjects, maintainUUIDs);
|
|
27
27
|
};
|
|
28
|
+
exports.camelizeNonUuidKeys = camelizeNonUuidKeys;
|
|
28
29
|
var camelizedVals = function camelizedVals(objectMap) {
|
|
29
30
|
return camelizeNonUuidKeys((0, _values.default)(objectMap));
|
|
30
31
|
};
|
|
31
|
-
var _default =
|
|
32
|
+
var _default = camelizedVals;
|
|
33
|
+
exports.default = _default;
|
|
@@ -8,7 +8,7 @@ exports.getFeatures = void 0;
|
|
|
8
8
|
var _ExhaustivePaginatedFetcher = _interopRequireDefault(require("../util/ExhaustivePaginatedFetcher.js"));
|
|
9
9
|
var _features = require("../actions/features.js");
|
|
10
10
|
var _ui = require("../actions/ui.js");
|
|
11
|
-
var getFeatures =
|
|
11
|
+
var getFeatures = function getFeatures() {
|
|
12
12
|
var url = '/api/features';
|
|
13
13
|
return function (dispatch, getState) {
|
|
14
14
|
var fetcher = new _ExhaustivePaginatedFetcher.default();
|
|
@@ -19,4 +19,5 @@ var getFeatures = exports.getFeatures = function getFeatures() {
|
|
|
19
19
|
return dispatch((0, _ui.loadedApiFeatures)(true));
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
};
|
|
22
|
+
};
|
|
23
|
+
exports.getFeatures = getFeatures;
|
|
@@ -18,7 +18,7 @@ function getUploadUrl(url) {
|
|
|
18
18
|
|
|
19
19
|
// This fxn requires a secondary fxn as an argument.
|
|
20
20
|
// It gets the url to post the file to S3 from the request and returns a promise.
|
|
21
|
-
var sendFileToS3 =
|
|
21
|
+
var sendFileToS3 = function sendFileToS3(file, onSuccess, onError, altText) {
|
|
22
22
|
var fileFetcher = new _Fetcher.default({
|
|
23
23
|
asyncResponseHandler: function asyncResponseHandler() {},
|
|
24
24
|
callType: _quizCommon.FILE_UPLOAD_CALL,
|
|
@@ -38,4 +38,5 @@ var sendFileToS3 = exports.sendFileToS3 = function sendFileToS3(file, onSuccess,
|
|
|
38
38
|
onSuccess(s3url, altText);
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
};
|
|
41
|
+
};
|
|
42
|
+
exports.sendFileToS3 = sendFileToS3;
|
|
@@ -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.processApiError = exports.
|
|
7
|
+
exports.processApiError = exports.errorsAllFromValidation = exports.getOnErrorWithDelayedValidationMessage = exports.handleError = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _ui = require("../actions/ui.js");
|
|
@@ -12,7 +12,7 @@ var _alerts = require("../actions/alerts.js");
|
|
|
12
12
|
var _quizCommon = require("@instructure/quiz-common");
|
|
13
13
|
var _flatten = _interopRequireDefault(require("lodash/flatten"));
|
|
14
14
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
15
|
-
var handleError =
|
|
15
|
+
var handleError = function handleError(dispatch, errorMessage) {
|
|
16
16
|
return function (error) {
|
|
17
17
|
if (error.response && [404, 401].includes(error.response.status)) {
|
|
18
18
|
// need a timeout so focus is not stolen by
|
|
@@ -39,8 +39,9 @@ var handleError = exports.handleError = function handleError(dispatch, errorMess
|
|
|
39
39
|
// We need a long enough delay here for the modal to close, the QuizEntryEdit
|
|
40
40
|
// header to get mounted, the delay to happen and the focus to move to the title.
|
|
41
41
|
// Please forgive me.
|
|
42
|
+
exports.handleError = handleError;
|
|
42
43
|
var UGLY_HARDCODED_TIMEOUT = 800;
|
|
43
|
-
var getOnErrorWithDelayedValidationMessage =
|
|
44
|
+
var getOnErrorWithDelayedValidationMessage = function getOnErrorWithDelayedValidationMessage(dispatch, validationErrorMsg, genericErrorMsg) {
|
|
44
45
|
var timeout = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : UGLY_HARDCODED_TIMEOUT;
|
|
45
46
|
var errMsg = genericErrorMsg;
|
|
46
47
|
var onError = function onError(_ref) {
|
|
@@ -89,14 +90,14 @@ var getOnErrorWithDelayedValidationMessage = exports.getOnErrorWithDelayedValida
|
|
|
89
90
|
// API INPUT VALIDATION HELPERS
|
|
90
91
|
// ==============================
|
|
91
92
|
// ==============================
|
|
92
|
-
|
|
93
|
+
exports.getOnErrorWithDelayedValidationMessage = getOnErrorWithDelayedValidationMessage;
|
|
93
94
|
var validationTextForError = function validationTextForError(errorType) {
|
|
94
95
|
if (errorType === 'regexp') {
|
|
95
96
|
return (0, _formatMessage.default)('Invalid Regular Expression');
|
|
96
97
|
}
|
|
97
98
|
return (0, _formatMessage.default)('Unknown validation error');
|
|
98
99
|
};
|
|
99
|
-
var errorsAllFromValidation =
|
|
100
|
+
var errorsAllFromValidation = function errorsAllFromValidation(errors) {
|
|
100
101
|
var errorArray = (0, _flatten.default)(Object.values(errors));
|
|
101
102
|
// All api errors are just part of input validation flow
|
|
102
103
|
// Don't show the error banner, validation feedback should be shown
|
|
@@ -105,7 +106,8 @@ var errorsAllFromValidation = exports.errorsAllFromValidation = function errorsA
|
|
|
105
106
|
return error.validation_error;
|
|
106
107
|
});
|
|
107
108
|
};
|
|
108
|
-
|
|
109
|
+
exports.errorsAllFromValidation = errorsAllFromValidation;
|
|
110
|
+
var processApiError = /*#__PURE__*/function () {
|
|
109
111
|
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(fetcherError) {
|
|
110
112
|
var response, unprocessableEntityCode, _yield$response$json2, errors, validationErrorsArray, validationErrorsObject, validationError;
|
|
111
113
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -155,4 +157,5 @@ var processApiError = exports.processApiError = /*#__PURE__*/function () {
|
|
|
155
157
|
return function processApiError(_x) {
|
|
156
158
|
return _ref3.apply(this, arguments);
|
|
157
159
|
};
|
|
158
|
-
}();
|
|
160
|
+
}();
|
|
161
|
+
exports.processApiError = processApiError;
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.interactionTypeFetch = void 0;
|
|
8
8
|
var _Fetcher = _interopRequireDefault(require("../util/Fetcher.js"));
|
|
9
9
|
var _callHandlers = require("./callHandlers.js");
|
|
10
|
-
var interactionTypeFetch =
|
|
10
|
+
var interactionTypeFetch = function interactionTypeFetch() {
|
|
11
11
|
var url = '/api/interaction_types';
|
|
12
12
|
var fetcher = new _Fetcher.default();
|
|
13
13
|
return function (dispatch, getState) {
|
|
@@ -15,4 +15,5 @@ var interactionTypeFetch = exports.interactionTypeFetch = function interactionTy
|
|
|
15
15
|
dispatch((0, _callHandlers.handleInteractionTypesResponse)(interactionTypesData));
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
-
};
|
|
18
|
+
};
|
|
19
|
+
exports.interactionTypeFetch = interactionTypeFetch;
|
|
@@ -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.fetchQuizSessionResult = exports.fetchSessionItemResults = exports.submitQuizSession = exports.singleResponseSubmit = exports.recordTime = exports.fetchTime = exports.pinSessionItem = exports.fetchResumeData = exports.takeQuizSession = exports.submitStudentAccessCode = exports.fetchSessionItems = exports.fetchQuizSession = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _Fetcher = _interopRequireDefault(require("../util/Fetcher.js"));
|
|
10
10
|
var _withDynamoPagination = _interopRequireDefault(require("../util/withDynamoPagination.js"));
|
|
@@ -53,12 +53,13 @@ var post = function post(url, params, responseCb) {
|
|
|
53
53
|
// GENERAL
|
|
54
54
|
// /////////////////////
|
|
55
55
|
|
|
56
|
-
var fetchQuizSession =
|
|
56
|
+
var fetchQuizSession = function fetchQuizSession(quizSessionId) {
|
|
57
57
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
58
58
|
var params = arguments.length > 2 ? arguments[2] : void 0;
|
|
59
59
|
return get(generateUrl([quizSessionId]), responseCb, params);
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
exports.fetchQuizSession = fetchQuizSession;
|
|
62
|
+
var fetchSessionItems = function fetchSessionItems(quizSessionId) {
|
|
62
63
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
63
64
|
return dynamoGet(generateUrl([quizSessionId, 'session_items']), responseCb, {
|
|
64
65
|
callType: _quizCommon.SESSION_ITEMS_FETCH_CALL
|
|
@@ -68,7 +69,8 @@ var fetchSessionItems = exports.fetchSessionItems = function fetchSessionItems(q
|
|
|
68
69
|
// //////////////////////
|
|
69
70
|
// BEFORE TAKING
|
|
70
71
|
// //////////////////////
|
|
71
|
-
|
|
72
|
+
exports.fetchSessionItems = fetchSessionItems;
|
|
73
|
+
var submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, accessCode) {
|
|
72
74
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
73
75
|
return post(generateUrl([quizSessionId, 'submit_student_access_code']), {
|
|
74
76
|
body: JSON.stringify({
|
|
@@ -80,8 +82,8 @@ var submitStudentAccessCode = exports.submitStudentAccessCode = function submitS
|
|
|
80
82
|
// //////////////////////
|
|
81
83
|
// TAKING
|
|
82
84
|
// //////////////////////
|
|
83
|
-
|
|
84
|
-
var takeQuizSession =
|
|
85
|
+
exports.submitStudentAccessCode = submitStudentAccessCode;
|
|
86
|
+
var takeQuizSession = function takeQuizSession(quizSessionId) {
|
|
85
87
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
86
88
|
// Avoid generating the error header; errors handled via catch
|
|
87
89
|
return post(generateUrl([quizSessionId, 'take']), {}, responseCb, {
|
|
@@ -92,13 +94,15 @@ var takeQuizSession = exports.takeQuizSession = function takeQuizSession(quizSes
|
|
|
92
94
|
}
|
|
93
95
|
});
|
|
94
96
|
};
|
|
95
|
-
|
|
97
|
+
exports.takeQuizSession = takeQuizSession;
|
|
98
|
+
var fetchResumeData = function fetchResumeData(quizSessionId) {
|
|
96
99
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
97
100
|
return get(generateUrl([quizSessionId, 'session_item_responses', 'resume_data']), responseCb);
|
|
98
101
|
};
|
|
99
102
|
|
|
100
103
|
// This is too widely used to be updated to use the common pattern here, fine as is
|
|
101
|
-
|
|
104
|
+
exports.fetchResumeData = fetchResumeData;
|
|
105
|
+
var pinSessionItem = function pinSessionItem(quizSessionId, sessionItemPosition) {
|
|
102
106
|
return function (dispatch, getState) {
|
|
103
107
|
var responseCb = function responseCb(quizSessionData) {
|
|
104
108
|
return dispatch((0, _callHandlers.handleQuizSessionResponse)(quizSessionData));
|
|
@@ -111,11 +115,13 @@ var pinSessionItem = exports.pinSessionItem = function pinSessionItem(quizSessio
|
|
|
111
115
|
return post(generateUrl([quizSessionId, 'toggle_session_item_pin']), params, responseCb);
|
|
112
116
|
};
|
|
113
117
|
};
|
|
114
|
-
|
|
118
|
+
exports.pinSessionItem = pinSessionItem;
|
|
119
|
+
var fetchTime = function fetchTime(quizSessionId) {
|
|
115
120
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
116
121
|
return get(generateUrl([quizSessionId, 'time']), responseCb);
|
|
117
122
|
};
|
|
118
|
-
|
|
123
|
+
exports.fetchTime = fetchTime;
|
|
124
|
+
var recordTime = function recordTime(quizSessionId) {
|
|
119
125
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
120
126
|
return get(generateUrl([quizSessionId, 'record']), responseCb);
|
|
121
127
|
};
|
|
@@ -123,7 +129,7 @@ var recordTime = exports.recordTime = function recordTime(quizSessionId) {
|
|
|
123
129
|
// /////////////////////
|
|
124
130
|
// TAKING SUBMIT
|
|
125
131
|
// /////////////////////
|
|
126
|
-
|
|
132
|
+
exports.recordTime = recordTime;
|
|
127
133
|
var onSubmitError = function onSubmitError(responseCb, errorCb) {
|
|
128
134
|
return function (error) {
|
|
129
135
|
if (error.response && error.response.status === 422) {
|
|
@@ -143,7 +149,7 @@ var onSingleResponseSubmitError = function onSingleResponseSubmitError(responseC
|
|
|
143
149
|
return onSubmitError(responseCb)(error);
|
|
144
150
|
};
|
|
145
151
|
};
|
|
146
|
-
var singleResponseSubmit =
|
|
152
|
+
var singleResponseSubmit = function singleResponseSubmit(quizSessionId, userResponse) {
|
|
147
153
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
148
154
|
var errorCb = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : _noop.default;
|
|
149
155
|
// if the server returns a 204, don't try to JSON deserialize the
|
|
@@ -159,7 +165,8 @@ var singleResponseSubmit = exports.singleResponseSubmit = function singleRespons
|
|
|
159
165
|
// tests don't like uncaught errors
|
|
160
166
|
});
|
|
161
167
|
};
|
|
162
|
-
|
|
168
|
+
exports.singleResponseSubmit = singleResponseSubmit;
|
|
169
|
+
var submitQuizSession = function submitQuizSession(quizSessionId, userResponses) {
|
|
163
170
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
164
171
|
var errorCb = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : _noop.default;
|
|
165
172
|
return post(generateUrl([quizSessionId, 'submit']), userResponses, responseCb, {
|
|
@@ -172,15 +179,17 @@ var submitQuizSession = exports.submitQuizSession = function submitQuizSession(q
|
|
|
172
179
|
// ///////////////////////////////
|
|
173
180
|
// POST TAKING (RESULTS/GRADING)
|
|
174
181
|
// ///////////////////////////////
|
|
175
|
-
|
|
176
|
-
var fetchSessionItemResults =
|
|
182
|
+
exports.submitQuizSession = submitQuizSession;
|
|
183
|
+
var fetchSessionItemResults = function fetchSessionItemResults(quizSessionId, quizSessionResultId) {
|
|
177
184
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
178
185
|
return dynamoGet(generateUrl([quizSessionId, 'results', quizSessionResultId, 'session_item_results']), responseCb);
|
|
179
186
|
};
|
|
180
|
-
|
|
187
|
+
exports.fetchSessionItemResults = fetchSessionItemResults;
|
|
188
|
+
var fetchQuizSessionResult = function fetchQuizSessionResult(quizSessionId, quizSessionResultId) {
|
|
181
189
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
182
190
|
var fetcherKey = _QuizSessionResult.default.fetcherTag(quizSessionResultId);
|
|
183
191
|
return get(generateUrl([quizSessionId, 'results', quizSessionResultId]), responseCb, {}, {
|
|
184
192
|
callType: fetcherKey
|
|
185
193
|
}, true);
|
|
186
|
-
};
|
|
194
|
+
};
|
|
195
|
+
exports.fetchQuizSessionResult = fetchQuizSessionResult;
|
|
@@ -14,7 +14,7 @@ var _interactionTypes = require("./interactionTypes.js");
|
|
|
14
14
|
var _quizEntries = require("../../building/api/quizEntries.js");
|
|
15
15
|
// ==== CALLBACKS ====
|
|
16
16
|
|
|
17
|
-
var quizFetchHandler =
|
|
17
|
+
var quizFetchHandler = function quizFetchHandler(dispatch, quiz) {
|
|
18
18
|
dispatch([(0, _callHandlers.handleQuizResponse)(quiz), (0, _quizzes.newActiveQuiz)("".concat(quiz.id))]);
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var quizFetchHandler = exports.quizFetchHandler = function quizFetchHandler(disp
|
|
|
22
22
|
// fetch the data for an existing quiz
|
|
23
23
|
// and add it as the active quiz
|
|
24
24
|
// ====================================
|
|
25
|
-
|
|
25
|
+
exports.quizFetchHandler = quizFetchHandler;
|
|
26
26
|
function getExistingQuiz(quizId) {
|
|
27
27
|
var quizUrl = "/api/quizzes/".concat(quizId);
|
|
28
28
|
return function (dispatch, getState) {
|
package/lib/common/api/schema.js
CHANGED
|
@@ -3,37 +3,54 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.stimulusSchema = exports.
|
|
6
|
+
exports.stimulusSchema = exports.sessionItemSchema = exports.sessionItemResultSchema = exports.shareBankSchema = exports.resumeDataSchema = exports.quizSessionSchema = exports.quizSessionResultSchema = exports.quizSessionEventSchema = exports.quizSchema = exports.quizEntrySchema = exports.quizEntriesSchema = exports.quizAnalysisSchema = exports.qtiImportSchema = exports.itemSchema = exports.itemAnalysisSchema = exports.interactionTypeSchema = exports.bankSchema = exports.bankEntrySchema = void 0;
|
|
7
7
|
var _normalizr = require("normalizr");
|
|
8
|
-
var bankSchema =
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
8
|
+
var bankSchema = new _normalizr.schema.Entity('banks');
|
|
9
|
+
exports.bankSchema = bankSchema;
|
|
10
|
+
var bankEntrySchema = new _normalizr.schema.Entity('bankEntries');
|
|
11
|
+
exports.bankEntrySchema = bankEntrySchema;
|
|
12
|
+
var interactionTypeSchema = new _normalizr.schema.Entity('interactionTypes');
|
|
13
|
+
exports.interactionTypeSchema = interactionTypeSchema;
|
|
14
|
+
var itemAnalysisSchema = new _normalizr.schema.Entity('itemAnalyses', {}, {
|
|
12
15
|
idAttribute: 'item_id'
|
|
13
16
|
});
|
|
14
|
-
|
|
17
|
+
exports.itemAnalysisSchema = itemAnalysisSchema;
|
|
18
|
+
var quizAnalysisSchema = new _normalizr.schema.Entity('quizAnalyses', {}, {
|
|
15
19
|
idAttribute: 'quiz_id'
|
|
16
20
|
});
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
+
exports.quizAnalysisSchema = quizAnalysisSchema;
|
|
22
|
+
var itemSchema = new _normalizr.schema.Entity('items');
|
|
23
|
+
exports.itemSchema = itemSchema;
|
|
24
|
+
var qtiImportSchema = new _normalizr.schema.Entity('qtiImports');
|
|
25
|
+
exports.qtiImportSchema = qtiImportSchema;
|
|
26
|
+
var quizSchema = new _normalizr.schema.Entity('quizzes');
|
|
27
|
+
exports.quizSchema = quizSchema;
|
|
28
|
+
var quizSessionEventSchema = new _normalizr.schema.Entity('quizSessionEvents', {}, {
|
|
21
29
|
idAttribute: 'created_at' // indexed by createdAt
|
|
22
30
|
});
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
31
|
+
exports.quizSessionEventSchema = quizSessionEventSchema;
|
|
32
|
+
var shareBankSchema = new _normalizr.schema.Entity('sharedBanks');
|
|
33
|
+
exports.shareBankSchema = shareBankSchema;
|
|
34
|
+
var quizSessionResultSchema = new _normalizr.schema.Entity('quizSessionResults');
|
|
35
|
+
exports.quizSessionResultSchema = quizSessionResultSchema;
|
|
36
|
+
var quizSessionSchema = new _normalizr.schema.Entity('quizSessions');
|
|
37
|
+
exports.quizSessionSchema = quizSessionSchema;
|
|
38
|
+
var quizEntrySchema = new _normalizr.schema.Entity('quizEntry');
|
|
39
|
+
exports.quizEntrySchema = quizEntrySchema;
|
|
40
|
+
var quizEntriesSchema = new _normalizr.schema.Entity('quizEntries');
|
|
41
|
+
exports.quizEntriesSchema = quizEntriesSchema;
|
|
42
|
+
var resumeDataSchema = new _normalizr.schema.Entity('resumeData');
|
|
43
|
+
exports.resumeDataSchema = resumeDataSchema;
|
|
44
|
+
var sessionItemResultSchema = new _normalizr.schema.Entity('sessionItemResults');
|
|
45
|
+
exports.sessionItemResultSchema = sessionItemResultSchema;
|
|
46
|
+
var sessionItemSchema = new _normalizr.schema.Entity('sessionItems');
|
|
47
|
+
exports.sessionItemSchema = sessionItemSchema;
|
|
48
|
+
var stimulusSchema = new _normalizr.schema.Entity('stimuli');
|
|
32
49
|
|
|
33
50
|
// =================
|
|
34
51
|
// relationships
|
|
35
52
|
// =================
|
|
36
|
-
|
|
53
|
+
exports.stimulusSchema = stimulusSchema;
|
|
37
54
|
bankEntrySchema.define({
|
|
38
55
|
entry: new _normalizr.schema.Union({
|
|
39
56
|
Item: itemSchema,
|
|
@@ -4,7 +4,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.ApiFeatureFlagInitializer = exports.ApiFeatureFlagInitializerComponent = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactRedux = require("../../react-redux.js");
|
|
10
10
|
var _propTypes = require("prop-types");
|
|
@@ -14,12 +14,13 @@ var _index = require("../shared/Card/index.js");
|
|
|
14
14
|
var _ref = /*#__PURE__*/_react.default.createElement(_index.Card, {
|
|
15
15
|
wrapped: true
|
|
16
16
|
}, /*#__PURE__*/_react.default.createElement(_Spinner.QuizzesSpinner, null));
|
|
17
|
-
var ApiFeatureFlagInitializerComponent =
|
|
17
|
+
var ApiFeatureFlagInitializerComponent = function ApiFeatureFlagInitializerComponent(props) {
|
|
18
18
|
(0, _react.useEffect)(function () {
|
|
19
19
|
!props.loadedApiFeatures && props.getFeatures();
|
|
20
20
|
}, []);
|
|
21
21
|
return props.loadedApiFeatures ? props.children : _ref;
|
|
22
22
|
};
|
|
23
|
+
exports.ApiFeatureFlagInitializerComponent = ApiFeatureFlagInitializerComponent;
|
|
23
24
|
ApiFeatureFlagInitializerComponent.propTypes = {
|
|
24
25
|
children: _propTypes.node.isRequired,
|
|
25
26
|
getFeatures: _propTypes.func.isRequired,
|
|
@@ -36,4 +37,5 @@ var mapStateToProps = function mapStateToProps(state, ownProps) {
|
|
|
36
37
|
var mapDispatchToProps = {
|
|
37
38
|
getFeatures: _features.getFeatures
|
|
38
39
|
};
|
|
39
|
-
var ApiFeatureFlagInitializer =
|
|
40
|
+
var ApiFeatureFlagInitializer = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ApiFeatureFlagInitializerComponent);
|
|
41
|
+
exports.ApiFeatureFlagInitializer = ApiFeatureFlagInitializer;
|
|
@@ -22,4 +22,5 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
22
22
|
closeModal: (0, _redux.bindActionCreators)(_modal.closeModal, dispatch)
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
var _default =
|
|
25
|
+
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.default);
|
|
26
|
+
exports.default = _default;
|
|
@@ -17,7 +17,7 @@ var _uiText = require("@instructure/ui-text");
|
|
|
17
17
|
var _uiHeading = require("@instructure/ui-heading");
|
|
18
18
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
19
19
|
var _quizCommon = require("@instructure/quiz-common");
|
|
20
|
-
var ConfirmationModal =
|
|
20
|
+
var ConfirmationModal = /*#__PURE__*/function (_Component) {
|
|
21
21
|
(0, _inherits2.default)(ConfirmationModal, _Component);
|
|
22
22
|
var _super = (0, _createSuper2.default)(ConfirmationModal);
|
|
23
23
|
function ConfirmationModal() {
|
|
@@ -100,6 +100,7 @@ var ConfirmationModal = exports.ConfirmationModal = /*#__PURE__*/function (_Comp
|
|
|
100
100
|
ConfirmationModal.displayName = "ConfirmationModal";
|
|
101
101
|
return ConfirmationModal;
|
|
102
102
|
}(_react.Component);
|
|
103
|
+
exports.ConfirmationModal = ConfirmationModal;
|
|
103
104
|
ConfirmationModal.propTypes = {
|
|
104
105
|
closeModal: _propTypes.default.func.isRequired,
|
|
105
106
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
@@ -124,4 +125,5 @@ ConfirmationModal.defaultProps = {
|
|
|
124
125
|
onContinue: null,
|
|
125
126
|
onCancel: null
|
|
126
127
|
};
|
|
127
|
-
var _default =
|
|
128
|
+
var _default = ConfirmationModal;
|
|
129
|
+
exports.default = _default;
|
|
@@ -24,7 +24,7 @@ var _dec, _class, _ImportFileSelector;
|
|
|
24
24
|
/** @jsx jsx */
|
|
25
25
|
var _ref = (0, _emotion.jsx)(_uiIcons.IconUploadLine, null);
|
|
26
26
|
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconCompleteLine, null);
|
|
27
|
-
var ImportFileSelector =
|
|
27
|
+
var ImportFileSelector = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ImportFileSelector = /*#__PURE__*/function (_Component) {
|
|
28
28
|
(0, _inherits2.default)(ImportFileSelector, _Component);
|
|
29
29
|
var _super = (0, _createSuper2.default)(ImportFileSelector);
|
|
30
30
|
function ImportFileSelector() {
|
|
@@ -134,4 +134,6 @@ var ImportFileSelector = exports.ImportFileSelector = (_dec = (0, _emotion.withS
|
|
|
134
134
|
acceptAttribute: _propTypes.default.string.isRequired,
|
|
135
135
|
styles: _propTypes.default.object
|
|
136
136
|
}, _ImportFileSelector)) || _class);
|
|
137
|
-
|
|
137
|
+
exports.ImportFileSelector = ImportFileSelector;
|
|
138
|
+
var _default = ImportFileSelector;
|
|
139
|
+
exports.default = _default;
|