@instructure/quiz-core 20.31.1 → 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 +3 -4
- 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 +8 -7
- 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 +64 -63
package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js
CHANGED
|
@@ -148,7 +148,7 @@ quiz.getQuizAnalysis = function () {
|
|
|
148
148
|
return quizAnalysis;
|
|
149
149
|
};
|
|
150
150
|
var firstExample = true;
|
|
151
|
-
var _default =
|
|
151
|
+
var _default = {
|
|
152
152
|
propValues: {
|
|
153
153
|
quizMetrics: [[],
|
|
154
154
|
// This value is present to trigger an additional example that's then overridden in getComponentProps below
|
|
@@ -178,4 +178,5 @@ var _default = exports.default = {
|
|
|
178
178
|
toggleItemAnalysisRowExpanded: Function.prototype
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
};
|
|
181
|
+
};
|
|
182
|
+
exports.default = _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.QuizAndItemAnalysis = void 0;
|
|
7
6
|
exports.mapStateToProps = mapStateToProps;
|
|
7
|
+
exports.default = exports.QuizAndItemAnalysis = void 0;
|
|
8
8
|
var _immutable = require("immutable");
|
|
9
9
|
var _presenter = require("./presenter.js");
|
|
10
10
|
var _reactRedux = require("../../../../common/react-redux.js");
|
|
@@ -24,10 +24,12 @@ function mapStateToProps(state, props) {
|
|
|
24
24
|
outcomesToken: state.getIn(['outcomes', 'outcomesToken'])
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
var QuizAndItemAnalysis =
|
|
27
|
+
var QuizAndItemAnalysis = (0, _reactRedux.connect)(mapStateToProps, {
|
|
28
28
|
getExistingQuiz: _quizzes.getExistingQuiz,
|
|
29
29
|
getItemAnalyses: _itemAnalyses.getItemAnalyses,
|
|
30
30
|
getQuizAnalysis: _quizAnalyses.getQuizAnalysis,
|
|
31
31
|
toggleItemAnalysisRowExpanded: _reporting.toggleItemAnalysisRowExpanded
|
|
32
32
|
})(_presenter.QuizAndItemAnalysis);
|
|
33
|
-
|
|
33
|
+
exports.QuizAndItemAnalysis = QuizAndItemAnalysis;
|
|
34
|
+
var _default = QuizAndItemAnalysis;
|
|
35
|
+
exports.default = _default;
|
|
@@ -27,7 +27,7 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
27
27
|
var _dec, _class, _QuizAndItemAnalysis;
|
|
28
28
|
/** @jsx jsx */
|
|
29
29
|
var _ref2 = (0, _emotion.jsx)(_Spinner.default, null);
|
|
30
|
-
var QuizAndItemAnalysis =
|
|
30
|
+
var QuizAndItemAnalysis = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_QuizAndItemAnalysis = /*#__PURE__*/function (_withI18nSupport) {
|
|
31
31
|
(0, _inherits2.default)(QuizAndItemAnalysis, _withI18nSupport);
|
|
32
32
|
var _super = (0, _createSuper2.default)(QuizAndItemAnalysis);
|
|
33
33
|
function QuizAndItemAnalysis() {
|
|
@@ -289,4 +289,6 @@ var QuizAndItemAnalysis = exports.QuizAndItemAnalysis = (_dec = (0, _emotion.wit
|
|
|
289
289
|
}, _QuizAndItemAnalysis.contextTypes = {
|
|
290
290
|
locale: _propTypes.default.string
|
|
291
291
|
}, _QuizAndItemAnalysis)) || _class);
|
|
292
|
-
|
|
292
|
+
exports.QuizAndItemAnalysis = QuizAndItemAnalysis;
|
|
293
|
+
var _default = QuizAndItemAnalysis;
|
|
294
|
+
exports.default = _default;
|
|
@@ -21,7 +21,7 @@ var _uiFlex = require("@instructure/ui-flex");
|
|
|
21
21
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
22
22
|
var _dec, _class, _ReportCard;
|
|
23
23
|
/** @jsx jsx */
|
|
24
|
-
var ReportCard =
|
|
24
|
+
var ReportCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ReportCard = /*#__PURE__*/function (_Component) {
|
|
25
25
|
(0, _inherits2.default)(ReportCard, _Component);
|
|
26
26
|
var _super = (0, _createSuper2.default)(ReportCard);
|
|
27
27
|
function ReportCard() {
|
|
@@ -70,4 +70,6 @@ var ReportCard = exports.ReportCard = (_dec = (0, _emotion.withStyle)(_styles.de
|
|
|
70
70
|
details: void 0,
|
|
71
71
|
href: void 0
|
|
72
72
|
}, _ReportCard)) || _class);
|
|
73
|
-
|
|
73
|
+
exports.ReportCard = ReportCard;
|
|
74
|
+
var _default = ReportCard;
|
|
75
|
+
exports.default = _default;
|
|
@@ -18,7 +18,7 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
18
18
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
19
19
|
var _dec, _class, _ReportList;
|
|
20
20
|
/** @jsx jsx */
|
|
21
|
-
var ReportList =
|
|
21
|
+
var ReportList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ReportList = /*#__PURE__*/function (_Component) {
|
|
22
22
|
(0, _inherits2.default)(ReportList, _Component);
|
|
23
23
|
var _super = (0, _createSuper2.default)(ReportList);
|
|
24
24
|
function ReportList() {
|
|
@@ -55,4 +55,6 @@ var ReportList = exports.ReportList = (_dec = (0, _emotion.withStyle)(_styles.de
|
|
|
55
55
|
headingLevel: 'h2',
|
|
56
56
|
headingAs: 'h1'
|
|
57
57
|
}, _ReportList)) || _class);
|
|
58
|
-
|
|
58
|
+
exports.ReportList = ReportList;
|
|
59
|
+
var _default = ReportList;
|
|
60
|
+
exports.default = _default;
|
|
@@ -7,4 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.StudentAnalysisReportCard = void 0;
|
|
8
8
|
var _presenter = require("./presenter.js");
|
|
9
9
|
var _withStudentAnalysisReportState = _interopRequireDefault(require("../withStudentAnalysisReportState.js"));
|
|
10
|
-
var StudentAnalysisReportCard =
|
|
10
|
+
var StudentAnalysisReportCard = (0, _withStudentAnalysisReportState.default)(_presenter.StudentAnalysisReportCardPresenter);
|
|
11
|
+
exports.StudentAnalysisReportCard = StudentAnalysisReportCard;
|
|
@@ -25,7 +25,7 @@ var _Spinner = _interopRequireDefault(require("../../../../../common/components/
|
|
|
25
25
|
var _quizCommon = require("@instructure/quiz-common");
|
|
26
26
|
var _index3 = require("../../common/AnalysisUpdateDate/index.js");
|
|
27
27
|
var _dec, _class, _StudentAnalysisReportCardPresenter;
|
|
28
|
-
var StudentAnalysisReportCardPresenter =
|
|
28
|
+
var StudentAnalysisReportCardPresenter = (_dec = (0, _emotion.withStyle)(_styles.generateStyle, _theme.generateComponentTheme), _dec(_class = (_StudentAnalysisReportCardPresenter = /*#__PURE__*/function (_Component) {
|
|
29
29
|
(0, _inherits2.default)(StudentAnalysisReportCardPresenter, _Component);
|
|
30
30
|
var _super = (0, _createSuper2.default)(StudentAnalysisReportCardPresenter);
|
|
31
31
|
function StudentAnalysisReportCardPresenter() {
|
|
@@ -160,4 +160,5 @@ var StudentAnalysisReportCardPresenter = exports.StudentAnalysisReportCardPresen
|
|
|
160
160
|
studentAnalyses: void 0,
|
|
161
161
|
analysisError: void 0,
|
|
162
162
|
generationInProgress: void 0
|
|
163
|
-
}, _StudentAnalysisReportCardPresenter)) || _class);
|
|
163
|
+
}, _StudentAnalysisReportCardPresenter)) || _class);
|
|
164
|
+
exports.StudentAnalysisReportCardPresenter = StudentAnalysisReportCardPresenter;
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
// this is 'any' temporarily, until we figure out the typing of the @withStyle decorator
|
|
11
11
|
|
|
12
|
-
var generateStyle =
|
|
12
|
+
var generateStyle = function generateStyle(componentTheme, props) {
|
|
13
13
|
var msMaxWidth = 'max-width: 25rem';
|
|
14
14
|
var mq = "@media only screen and (".concat(msMaxWidth, ")");
|
|
15
15
|
return {
|
|
@@ -47,4 +47,5 @@ var generateStyle = exports.generateStyle = function generateStyle(componentThem
|
|
|
47
47
|
paddingBottom: '15px'
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
};
|
|
50
|
+
};
|
|
51
|
+
exports.generateStyle = generateStyle;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.generateComponentTheme = void 0;
|
|
7
7
|
// this is 'any' temporarily, until we figure out the typing of the @withStyle decorator
|
|
8
8
|
|
|
9
|
-
var generateComponentTheme =
|
|
9
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
10
10
|
var spacing = _ref.spacing,
|
|
11
11
|
colors = _ref.colors;
|
|
12
12
|
return {
|
|
@@ -17,4 +17,5 @@ var generateComponentTheme = exports.generateComponentTheme = function generateC
|
|
|
17
17
|
cardMargin: spacing.xSmall,
|
|
18
18
|
quizSummaryBorderBottomColor: colors.tiara
|
|
19
19
|
};
|
|
20
|
-
};
|
|
20
|
+
};
|
|
21
|
+
exports.generateComponentTheme = generateComponentTheme;
|
|
@@ -8,7 +8,7 @@ exports.fetchReport = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _errorMessages = require("../common/errorMessages.js");
|
|
11
|
-
var fetchReport =
|
|
11
|
+
var fetchReport = /*#__PURE__*/function () {
|
|
12
12
|
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
13
13
|
var activeQuizId, setFetchInProgress, setStudentAnalyses, setStatusPollingInProgress, setAnalysisError, setGenerationInProgress, addError, fetchStudentAnalyses, setAnalysisFetchError, getErrorMessageForCode, studentAnalyses, isAnalysisInProgress, isAnalysisFailed, analysisErrorCode;
|
|
14
14
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -52,4 +52,5 @@ var fetchReport = exports.fetchReport = /*#__PURE__*/function () {
|
|
|
52
52
|
return function fetchReport(_x) {
|
|
53
53
|
return _ref2.apply(this, arguments);
|
|
54
54
|
};
|
|
55
|
-
}();
|
|
55
|
+
}();
|
|
56
|
+
exports.fetchReport = fetchReport;
|
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _errorMessages = require("../common/errorMessages.js");
|
|
11
11
|
var _quizCommon = require("@instructure/quiz-common");
|
|
12
|
-
var fetchReportStatus =
|
|
12
|
+
var fetchReportStatus = /*#__PURE__*/function () {
|
|
13
13
|
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
14
14
|
var activeQuizId, addError, fetchAnalysesStatus, instrumentedFetchReports, setStatusPollingInProgress, setGenerationInProgress, status, isReportGenerationReady;
|
|
15
15
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -46,4 +46,5 @@ var fetchReportStatus = exports.fetchReportStatus = /*#__PURE__*/function () {
|
|
|
46
46
|
return function fetchReportStatus(_x) {
|
|
47
47
|
return _ref2.apply(this, arguments);
|
|
48
48
|
};
|
|
49
|
-
}();
|
|
49
|
+
}();
|
|
50
|
+
exports.fetchReportStatus = fetchReportStatus;
|
package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
7
6
|
exports.mapDispatchToProps = mapDispatchToProps;
|
|
7
|
+
exports.default = void 0;
|
|
8
8
|
var _reactRedux = require("../../../../common/react-redux.js");
|
|
9
9
|
var _featureCheck = require("../../../../common/util/featureCheck.js");
|
|
10
10
|
var _withStudentAnalysisReportStatePresenter = require("./withStudentAnalysisReportStatePresenter.js");
|
|
@@ -43,4 +43,5 @@ function mapDispatchToProps(dispatch, ownProps) {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
var withStudentAnalysisReportState = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), _withStudentAnalysisReportStatePresenter.withStudentAnalysisReportStatePresenter);
|
|
46
|
-
var _default =
|
|
46
|
+
var _default = withStudentAnalysisReportState;
|
|
47
|
+
exports.default = _default;
|
|
@@ -20,7 +20,7 @@ var _fetchReport = require("./fetchReport.js");
|
|
|
20
20
|
var _fetchReportStatus = require("./fetchReportStatus.js");
|
|
21
21
|
var _quizCommon = require("@instructure/quiz-common");
|
|
22
22
|
var _propTypes2 = require("../common/propTypes.js");
|
|
23
|
-
var withStudentAnalysisReportStatePresenter =
|
|
23
|
+
var withStudentAnalysisReportStatePresenter = function withStudentAnalysisReportStatePresenter(OriginalComponent) {
|
|
24
24
|
var StudentAnalysisReportStatePresenter = function StudentAnalysisReportStatePresenter(_ref) {
|
|
25
25
|
var studentAnalyses = _ref.studentAnalyses,
|
|
26
26
|
fetchInProgress = _ref.fetchInProgress,
|
|
@@ -227,4 +227,5 @@ var withStudentAnalysisReportStatePresenter = exports.withStudentAnalysisReportS
|
|
|
227
227
|
disableReportsCache: false
|
|
228
228
|
};
|
|
229
229
|
return StudentAnalysisReportStatePresenter;
|
|
230
|
-
};
|
|
230
|
+
};
|
|
231
|
+
exports.withStudentAnalysisReportStatePresenter = withStudentAnalysisReportStatePresenter;
|
|
@@ -16,7 +16,7 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
16
16
|
var _formatTimespan = require("../../../../../common/util/formatTimespan.js");
|
|
17
17
|
var _uiText = require("@instructure/ui-text");
|
|
18
18
|
var _uiFlex = require("@instructure/ui-flex");
|
|
19
|
-
var AnalysisUpdateDate =
|
|
19
|
+
var AnalysisUpdateDate = /*#__PURE__*/function (_Component) {
|
|
20
20
|
(0, _inherits2.default)(AnalysisUpdateDate, _Component);
|
|
21
21
|
var _super = (0, _createSuper2.default)(AnalysisUpdateDate);
|
|
22
22
|
function AnalysisUpdateDate() {
|
|
@@ -43,6 +43,7 @@ var AnalysisUpdateDate = exports.AnalysisUpdateDate = /*#__PURE__*/function (_Co
|
|
|
43
43
|
AnalysisUpdateDate.displayName = "AnalysisUpdateDate";
|
|
44
44
|
return AnalysisUpdateDate;
|
|
45
45
|
}(_react.Component);
|
|
46
|
+
exports.AnalysisUpdateDate = AnalysisUpdateDate;
|
|
46
47
|
AnalysisUpdateDate.propTypes = {
|
|
47
48
|
date: _propTypes.default.string.isRequired,
|
|
48
49
|
multiline: _propTypes.default.bool
|
|
@@ -10,7 +10,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
11
11
|
var _uiText = require("@instructure/ui-text");
|
|
12
12
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
13
|
-
var ExportButton =
|
|
13
|
+
var ExportButton = function ExportButton(_ref) {
|
|
14
14
|
var enabled = _ref.enabled,
|
|
15
15
|
handleExport = _ref.handleExport;
|
|
16
16
|
return /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
@@ -25,6 +25,7 @@ var ExportButton = exports.ExportButton = function ExportButton(_ref) {
|
|
|
25
25
|
size: "medium"
|
|
26
26
|
}, (0, _formatMessage.default)('Export CSV')));
|
|
27
27
|
};
|
|
28
|
+
exports.ExportButton = ExportButton;
|
|
28
29
|
ExportButton.propTypes = {
|
|
29
30
|
enabled: _propTypes.default.bool.isRequired,
|
|
30
31
|
handleExport: _propTypes.default.func.isRequired
|
|
@@ -3,15 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getAlertTimeoutMsForCode = exports.getErrorMessageForCode = exports.NOT_ENOUGH_FULLY_GRADED_QUESTION = exports.NOT_ENOUGH_FULLY_GRADED_SUBMISSION = exports.GENERAL_ANALYSIS_ERROR = exports.ANALYSIS_GENERATION_IN_PROGRESS = exports.INSUFFICIENT_NUMBER_OF_SESSIONS = void 0;
|
|
7
7
|
var _errorMessages = require("./errorMessages.js");
|
|
8
8
|
var _quizCommon = require("@instructure/quiz-common");
|
|
9
|
-
var INSUFFICIENT_NUMBER_OF_SESSIONS =
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
9
|
+
var INSUFFICIENT_NUMBER_OF_SESSIONS = 'INSUFFICIENT_NUMBER_OF_SESSIONS';
|
|
10
|
+
exports.INSUFFICIENT_NUMBER_OF_SESSIONS = INSUFFICIENT_NUMBER_OF_SESSIONS;
|
|
11
|
+
var ANALYSIS_GENERATION_IN_PROGRESS = 'ANALYSIS_GENERATION_IN_PROGRESS';
|
|
12
|
+
exports.ANALYSIS_GENERATION_IN_PROGRESS = ANALYSIS_GENERATION_IN_PROGRESS;
|
|
13
|
+
var GENERAL_ANALYSIS_ERROR = 'GENERAL_ANALYSIS_ERROR';
|
|
14
|
+
exports.GENERAL_ANALYSIS_ERROR = GENERAL_ANALYSIS_ERROR;
|
|
15
|
+
var NOT_ENOUGH_FULLY_GRADED_SUBMISSION = 'NOT_ENOUGH_FULLY_GRADED_SUBMISSION';
|
|
16
|
+
exports.NOT_ENOUGH_FULLY_GRADED_SUBMISSION = NOT_ENOUGH_FULLY_GRADED_SUBMISSION;
|
|
17
|
+
var NOT_ENOUGH_FULLY_GRADED_QUESTION = 'NOT_ENOUGH_FULLY_GRADED_QUESTION';
|
|
18
|
+
exports.NOT_ENOUGH_FULLY_GRADED_QUESTION = NOT_ENOUGH_FULLY_GRADED_QUESTION;
|
|
19
|
+
var getErrorMessageForCode = function getErrorMessageForCode(code) {
|
|
15
20
|
var defaultMsg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
16
21
|
switch (code) {
|
|
17
22
|
case INSUFFICIENT_NUMBER_OF_SESSIONS:
|
|
@@ -28,6 +33,8 @@ var getErrorMessageForCode = exports.getErrorMessageForCode = function getErrorM
|
|
|
28
33
|
return defaultMsg;
|
|
29
34
|
}
|
|
30
35
|
};
|
|
31
|
-
|
|
36
|
+
exports.getErrorMessageForCode = getErrorMessageForCode;
|
|
37
|
+
var getAlertTimeoutMsForCode = function getAlertTimeoutMsForCode(code) {
|
|
32
38
|
return code === INSUFFICIENT_NUMBER_OF_SESSIONS ? 10000 : _quizCommon.DEFAULT_ALERT_TIME;
|
|
33
|
-
};
|
|
39
|
+
};
|
|
40
|
+
exports.getAlertTimeoutMsForCode = getAlertTimeoutMsForCode;
|
|
@@ -4,29 +4,37 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.getNotEnoughDataAvailableError = exports.getMinimumThreeGradedSubmissionError = exports.getOngoingReportGenerationError = exports.getInsufficientSubmissionNumberError = exports.getReportGenerationFailure = exports.getLastReportGenerationFailed = exports.getFailedToExportReports = exports.getFailedToFetchReports = void 0;
|
|
8
8
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
9
|
-
var getFailedToFetchReports =
|
|
9
|
+
var getFailedToFetchReports = function getFailedToFetchReports() {
|
|
10
10
|
return (0, _formatMessage.default)('An error has occurred while loading this report. Please refresh the page.');
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
exports.getFailedToFetchReports = getFailedToFetchReports;
|
|
13
|
+
var getFailedToExportReports = function getFailedToExportReports() {
|
|
13
14
|
return (0, _formatMessage.default)('An error has occurred while exporting this report. Please try again.');
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
exports.getFailedToExportReports = getFailedToExportReports;
|
|
17
|
+
var getLastReportGenerationFailed = function getLastReportGenerationFailed() {
|
|
16
18
|
return (0, _formatMessage.default)('Report generation failed. Please try again.');
|
|
17
19
|
};
|
|
18
|
-
|
|
20
|
+
exports.getLastReportGenerationFailed = getLastReportGenerationFailed;
|
|
21
|
+
var getReportGenerationFailure = function getReportGenerationFailure() {
|
|
19
22
|
return (0, _formatMessage.default)('An error has occurred while generating this report. Please try again.');
|
|
20
23
|
};
|
|
21
|
-
|
|
24
|
+
exports.getReportGenerationFailure = getReportGenerationFailure;
|
|
25
|
+
var getInsufficientSubmissionNumberError = function getInsufficientSubmissionNumberError() {
|
|
22
26
|
return (0, _formatMessage.default)('There is not enough data available to generate this report. A minimum of 3 submissions is required to generate. Please try again when more submissions are available.');
|
|
23
27
|
};
|
|
24
|
-
|
|
28
|
+
exports.getInsufficientSubmissionNumberError = getInsufficientSubmissionNumberError;
|
|
29
|
+
var getOngoingReportGenerationError = function getOngoingReportGenerationError() {
|
|
25
30
|
return (0, _formatMessage.default)('A report for this quiz is currently being generated by another user. Please try again later.');
|
|
26
31
|
};
|
|
27
|
-
|
|
32
|
+
exports.getOngoingReportGenerationError = getOngoingReportGenerationError;
|
|
33
|
+
var getMinimumThreeGradedSubmissionError = function getMinimumThreeGradedSubmissionError() {
|
|
28
34
|
return (0, _formatMessage.default)('There is not enough data available to generate this report. A minimum of 3 fully graded submissions is required to generate. Please try again when more submissions are graded.');
|
|
29
35
|
};
|
|
30
|
-
|
|
36
|
+
exports.getMinimumThreeGradedSubmissionError = getMinimumThreeGradedSubmissionError;
|
|
37
|
+
var getNotEnoughDataAvailableError = function getNotEnoughDataAvailableError() {
|
|
31
38
|
return (0, _formatMessage.default)('There is not enough data available to generate this report. Please try again when more submissions are graded.');
|
|
32
|
-
};
|
|
39
|
+
};
|
|
40
|
+
exports.getNotEnoughDataAvailableError = getNotEnoughDataAvailableError;
|
|
@@ -10,7 +10,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _errorMessages = require("./errorMessages.js");
|
|
11
11
|
var _contentDisposition = _interopRequireDefault(require("content-disposition"));
|
|
12
12
|
var _quizCommon = require("@instructure/quiz-common");
|
|
13
|
-
var exportReports =
|
|
13
|
+
var exportReports = /*#__PURE__*/function () {
|
|
14
14
|
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
15
15
|
var getAnalysesExport, activeQuizId, filter, format, saveFile, addError, _ref$analysisType, analysisType, response, dispositionHeader, disposition, filename, blob;
|
|
16
16
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -59,4 +59,5 @@ var exportReports = exports.exportReports = /*#__PURE__*/function () {
|
|
|
59
59
|
return function exportReports(_x) {
|
|
60
60
|
return _ref2.apply(this, arguments);
|
|
61
61
|
};
|
|
62
|
-
}();
|
|
62
|
+
}();
|
|
63
|
+
exports.exportReports = exportReports;
|
|
@@ -4,14 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.default = exports.generateReports = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _errorMessages = require("./errorMessages.js");
|
|
11
11
|
var _errorCodes = require("./errorCodes.js");
|
|
12
12
|
var _quizCommon = require("@instructure/quiz-common");
|
|
13
13
|
var DEFAULT_ERROR_MSG = (0, _errorMessages.getReportGenerationFailure)();
|
|
14
|
-
var generateReports =
|
|
14
|
+
var generateReports = /*#__PURE__*/function () {
|
|
15
15
|
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(_ref) {
|
|
16
16
|
var setGenerationInProgress, setStatusPollingInProgress, generateAnalysis, analysisType, filter, addError, onError, _requestResult$respon, requestResult;
|
|
17
17
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -86,4 +86,6 @@ var generateReports = exports.generateReports = /*#__PURE__*/function () {
|
|
|
86
86
|
return _ref2.apply(this, arguments);
|
|
87
87
|
};
|
|
88
88
|
}();
|
|
89
|
-
|
|
89
|
+
exports.generateReports = generateReports;
|
|
90
|
+
var _default = generateReports;
|
|
91
|
+
exports.default = _default;
|
|
@@ -4,16 +4,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.afsFlags = exports.itemAnalysisPropType = exports.answerSummaryPropType = exports.numericTypeAnswerSummaryPropType = exports.richFillBlankTypeAnswerSummaryPropType = exports.matchingTypeAnswerSummaryPropType = exports.scoreDistributionType = exports.scoreDistributionTypeAnswerSummaryPropType = exports.choiceTypeAnswerSummaryPropType = exports.choiceTypeObject = exports.onlyAggregatePropType = exports.aggregatePropType = exports.aggregateDetailPropType = exports.studentAnalysesPropType = exports.quizAnalysisPropType = exports.quizAnalysisMetadata = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var quizAnalysisMetadata =
|
|
9
|
+
var quizAnalysisMetadata = _propTypes.default.shape({
|
|
10
10
|
quiz_title: _propTypes.default.string,
|
|
11
11
|
decile_distribution: _propTypes.default.shape({
|
|
12
12
|
high_extreme_values_count: _propTypes.default.number,
|
|
13
13
|
low_extreme_values_count: _propTypes.default.number
|
|
14
14
|
})
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
exports.quizAnalysisMetadata = quizAnalysisMetadata;
|
|
17
|
+
var quizAnalysisPropType = _propTypes.default.shape({
|
|
17
18
|
created_timestamp: _propTypes.default.string.isRequired,
|
|
18
19
|
metadata: quizAnalysisMetadata.isRequired,
|
|
19
20
|
scores: _propTypes.default.shape({
|
|
@@ -33,45 +34,54 @@ var quizAnalysisPropType = exports.quizAnalysisPropType = _propTypes.default.sha
|
|
|
33
34
|
average_attempts: _propTypes.default.number
|
|
34
35
|
}).isRequired
|
|
35
36
|
});
|
|
36
|
-
|
|
37
|
+
exports.quizAnalysisPropType = quizAnalysisPropType;
|
|
38
|
+
var studentAnalysesPropType = _propTypes.default.shape({
|
|
37
39
|
created_timestamp: _propTypes.default.string.isRequired
|
|
38
40
|
});
|
|
39
|
-
|
|
41
|
+
exports.studentAnalysesPropType = studentAnalysesPropType;
|
|
42
|
+
var aggregateDetailPropType = _propTypes.default.shape({
|
|
40
43
|
count: _propTypes.default.number.isRequired,
|
|
41
44
|
percentage: _propTypes.default.number.isRequired
|
|
42
45
|
});
|
|
43
|
-
|
|
46
|
+
exports.aggregateDetailPropType = aggregateDetailPropType;
|
|
47
|
+
var aggregatePropType = _propTypes.default.shape({
|
|
44
48
|
correct: aggregateDetailPropType.isRequired,
|
|
45
49
|
incorrect: aggregateDetailPropType.isRequired
|
|
46
50
|
});
|
|
47
|
-
|
|
51
|
+
exports.aggregatePropType = aggregatePropType;
|
|
52
|
+
var onlyAggregatePropType = _propTypes.default.shape({
|
|
48
53
|
no_answer: aggregateDetailPropType,
|
|
49
54
|
graded: aggregateDetailPropType,
|
|
50
55
|
aggregate: aggregatePropType
|
|
51
56
|
});
|
|
52
|
-
|
|
57
|
+
exports.onlyAggregatePropType = onlyAggregatePropType;
|
|
58
|
+
var choiceTypeObject = _propTypes.default.shape({
|
|
53
59
|
body: _propTypes.default.string,
|
|
54
60
|
correct: _propTypes.default.bool,
|
|
55
61
|
count: _propTypes.default.number,
|
|
56
62
|
percentage: _propTypes.default.number
|
|
57
63
|
});
|
|
58
|
-
|
|
64
|
+
exports.choiceTypeObject = choiceTypeObject;
|
|
65
|
+
var choiceTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
59
66
|
choices: _propTypes.default.arrayOf(choiceTypeObject),
|
|
60
67
|
no_answer: aggregateDetailPropType,
|
|
61
68
|
aggregate: aggregatePropType
|
|
62
69
|
});
|
|
63
|
-
|
|
70
|
+
exports.choiceTypeAnswerSummaryPropType = choiceTypeAnswerSummaryPropType;
|
|
71
|
+
var scoreDistributionTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
64
72
|
no_answer: aggregateDetailPropType.isRequired,
|
|
65
73
|
aggregate: aggregatePropType.isRequired,
|
|
66
74
|
graded: aggregateDetailPropType.isRequired,
|
|
67
75
|
score_distribution: _propTypes.default.arrayOf(scoreDistributionType).isRequired
|
|
68
76
|
});
|
|
69
|
-
|
|
77
|
+
exports.scoreDistributionTypeAnswerSummaryPropType = scoreDistributionTypeAnswerSummaryPropType;
|
|
78
|
+
var scoreDistributionType = _propTypes.default.shape({
|
|
70
79
|
count: _propTypes.default.number.isRequired,
|
|
71
80
|
score: _propTypes.default.number.isRequired,
|
|
72
81
|
percentage: _propTypes.default.number.isRequired
|
|
73
82
|
});
|
|
74
|
-
|
|
83
|
+
exports.scoreDistributionType = scoreDistributionType;
|
|
84
|
+
var matchingTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
75
85
|
questions: _propTypes.default.objectOf(_propTypes.default.shape({
|
|
76
86
|
body: _propTypes.default.string,
|
|
77
87
|
answers: _propTypes.default.objectOf(_propTypes.default.shape({
|
|
@@ -84,7 +94,8 @@ var matchingTypeAnswerSummaryPropType = exports.matchingTypeAnswerSummaryPropTyp
|
|
|
84
94
|
no_answer: aggregateDetailPropType,
|
|
85
95
|
aggregate: aggregatePropType
|
|
86
96
|
});
|
|
87
|
-
|
|
97
|
+
exports.matchingTypeAnswerSummaryPropType = matchingTypeAnswerSummaryPropType;
|
|
98
|
+
var richFillBlankTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
88
99
|
blanks: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
89
100
|
choices: _propTypes.default.arrayOf(choiceTypeObject),
|
|
90
101
|
blank_text: _propTypes.default.string,
|
|
@@ -98,6 +109,7 @@ var richFillBlankTypeAnswerSummaryPropType = exports.richFillBlankTypeAnswerSumm
|
|
|
98
109
|
no_answer: aggregateDetailPropType,
|
|
99
110
|
aggregate: aggregatePropType
|
|
100
111
|
});
|
|
112
|
+
exports.richFillBlankTypeAnswerSummaryPropType = richFillBlankTypeAnswerSummaryPropType;
|
|
101
113
|
var withinARangeTypeObject = _propTypes.default.shape({
|
|
102
114
|
end: _propTypes.default.string.isRequired,
|
|
103
115
|
start: _propTypes.default.string.isRequired,
|
|
@@ -128,14 +140,16 @@ var uncategorizedTypeObject = _propTypes.default.shape({
|
|
|
128
140
|
choices: _propTypes.default.arrayOf(choiceTypeObject).isRequired
|
|
129
141
|
});
|
|
130
142
|
var numericRequirementTypeObject = _propTypes.default.oneOfType([withinARangeTypeObject, marginOfErrorTypeObject, exactResponseTypeObject, preciseResponseTypeObject, uncategorizedTypeObject]);
|
|
131
|
-
var numericTypeAnswerSummaryPropType =
|
|
143
|
+
var numericTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
132
144
|
requirement: _propTypes.default.shape({
|
|
133
145
|
correct_answers: _propTypes.default.arrayOf(numericRequirementTypeObject).isRequired,
|
|
134
146
|
incorrect_answer_choices: _propTypes.default.arrayOf(choiceTypeObject).isRequired
|
|
135
147
|
})
|
|
136
148
|
});
|
|
137
|
-
|
|
138
|
-
var
|
|
149
|
+
exports.numericTypeAnswerSummaryPropType = numericTypeAnswerSummaryPropType;
|
|
150
|
+
var answerSummaryPropType = _propTypes.default.oneOfType([choiceTypeAnswerSummaryPropType, onlyAggregatePropType, matchingTypeAnswerSummaryPropType, richFillBlankTypeAnswerSummaryPropType, scoreDistributionTypeAnswerSummaryPropType]);
|
|
151
|
+
exports.answerSummaryPropType = answerSummaryPropType;
|
|
152
|
+
var itemAnalysisPropType = _propTypes.default.shape({
|
|
139
153
|
attempts: _propTypes.default.shape({
|
|
140
154
|
students_responded: _propTypes.default.number,
|
|
141
155
|
students_without_response: _propTypes.default.number
|
|
@@ -157,7 +171,8 @@ var itemAnalysisPropType = exports.itemAnalysisPropType = _propTypes.default.sha
|
|
|
157
171
|
}),
|
|
158
172
|
answer_summary: answerSummaryPropType
|
|
159
173
|
});
|
|
160
|
-
|
|
174
|
+
exports.itemAnalysisPropType = itemAnalysisPropType;
|
|
175
|
+
var afsFlags = _propTypes.default.shape({
|
|
161
176
|
formulaEnabled: _propTypes.default.bool.isRequired,
|
|
162
177
|
matchingEnabled: _propTypes.default.bool.isRequired,
|
|
163
178
|
hotSpotEnabled: _propTypes.default.bool.isRequired,
|
|
@@ -170,4 +185,5 @@ var afsFlags = exports.afsFlags = _propTypes.default.shape({
|
|
|
170
185
|
numericEnabled: _propTypes.default.bool.isRequired,
|
|
171
186
|
essayEnabled: _propTypes.default.bool.isRequired,
|
|
172
187
|
fileUploadEnabled: _propTypes.default.bool.isRequired
|
|
173
|
-
});
|
|
188
|
+
});
|
|
189
|
+
exports.afsFlags = afsFlags;
|
|
@@ -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.getSanitizedMetricValue = exports.saveFile = void 0;
|
|
8
8
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
9
9
|
var _fileSaver = require("file-saver");
|
|
10
10
|
var formatNumbers = function formatNumbers(value) {
|
|
@@ -13,13 +13,15 @@ var formatNumbers = function formatNumbers(value) {
|
|
|
13
13
|
}
|
|
14
14
|
return value;
|
|
15
15
|
};
|
|
16
|
-
var getSanitizedMetricValue =
|
|
16
|
+
var getSanitizedMetricValue = function getSanitizedMetricValue(value, suffix) {
|
|
17
17
|
if (value === null || value === void 0) {
|
|
18
18
|
return (0, _formatMessage.default)('N/A');
|
|
19
19
|
}
|
|
20
20
|
var formattedValue = formatNumbers(value);
|
|
21
21
|
return suffix ? formattedValue + suffix : formattedValue;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
exports.getSanitizedMetricValue = getSanitizedMetricValue;
|
|
24
|
+
var saveFile = function saveFile(file, fileName) {
|
|
24
25
|
(0, _fileSaver.saveAs)(file, fileName);
|
|
25
|
-
};
|
|
26
|
+
};
|
|
27
|
+
exports.saveFile = saveFile;
|