@instructure/quiz-core 20.31.0 → 20.31.1-snapshot.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4724 -0
- package/es/banks/components/BankEntryRow/presenter.js +0 -1
- package/es/banks/components/SharingModal/presenter.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +0 -1
- package/es/common/components/shared/overlay/index.js +0 -1
- package/es/common/records/index.js +16 -32
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +0 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +46 -55
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -0
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +2 -0
- package/lib/banks/api/bankEntries.js +13 -24
- package/lib/banks/api/banks.js +15 -26
- package/lib/banks/api/copyingBanksPoller.js +2 -4
- package/lib/banks/api/tagAssociations.js +5 -8
- package/lib/banks/components/AddBankEntryModal/index.js +2 -4
- package/lib/banks/components/AddBankEntryModal/presenter.js +2 -4
- package/lib/banks/components/AddToBankModal/index.js +2 -3
- package/lib/banks/components/AddToBankModal/presenter.js +2 -4
- package/lib/banks/components/AsyncSearch/index.js +2 -4
- package/lib/banks/components/Bank/index.js +3 -5
- package/lib/banks/components/Bank/presenter.js +2 -4
- package/lib/banks/components/Bank/styles.js +1 -2
- package/lib/banks/components/Bank/theme.js +1 -2
- package/lib/banks/components/BankEntriesList/index.js +2 -3
- package/lib/banks/components/BankEntriesList/presenter.js +2 -4
- package/lib/banks/components/BankEntriesList/styles.js +1 -2
- package/lib/banks/components/BankEntriesList/theme.js +1 -2
- package/lib/banks/components/BankEntry/index.js +2 -4
- package/lib/banks/components/BankEntry/presenter.js +2 -4
- package/lib/banks/components/BankEntry/styles.js +1 -2
- package/lib/banks/components/BankEntry/theme.js +1 -2
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -3
- package/lib/banks/components/BankEntryRow/index.js +1 -2
- package/lib/banks/components/BankEntryRow/presenter.js +2 -5
- package/lib/banks/components/BankEntryRow/styles.js +1 -2
- package/lib/banks/components/BankEntryRow/theme.js +1 -2
- package/lib/banks/components/BankSearch/BankSearch.stories.js +7 -12
- package/lib/banks/components/BankSearch/index.js +1 -2
- package/lib/banks/components/BankSearch/presenter.js +2 -4
- package/lib/banks/components/BankSearch/styles.js +1 -2
- package/lib/banks/components/BankSearch/theme.js +1 -2
- package/lib/banks/components/Banks/index.js +2 -4
- package/lib/banks/components/Banks/presenter.js +2 -4
- package/lib/banks/components/Banks/styles.js +1 -2
- package/lib/banks/components/Banks/theme.js +1 -2
- package/lib/banks/components/BanksList/index.js +3 -4
- package/lib/banks/components/BanksList/presenter.js +2 -4
- package/lib/banks/components/BanksList/styles.js +1 -2
- package/lib/banks/components/BanksList/theme.js +1 -2
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +2 -3
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -4
- package/lib/banks/components/CreateBankModal/index.js +1 -2
- package/lib/banks/components/CreateBankModal/presenter.js +2 -4
- package/lib/banks/components/CreateBankModal/styles.js +1 -2
- package/lib/banks/components/CreateBankModal/theme.js +1 -2
- package/lib/banks/components/EditBankModal/index.js +1 -2
- package/lib/banks/components/EditBankModal/presenter.js +2 -4
- package/lib/banks/components/EditBankModal/styles.js +1 -2
- package/lib/banks/components/EditBankModal/theme.js +1 -2
- package/lib/banks/components/HeaderBreadCrumb/index.js +2 -4
- package/lib/banks/components/HeaderMenu/index.js +1 -2
- package/lib/banks/components/HeaderMenu/presenter.js +2 -4
- package/lib/banks/components/HeaderMenu/styles.js +1 -2
- package/lib/banks/components/HeaderMenu/theme.js +1 -2
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +2 -3
- package/lib/banks/components/NavWrapper/index.js +1 -2
- package/lib/banks/components/NavWrapper/presenter.js +1 -2
- package/lib/banks/components/NavWrapper/styles.js +1 -2
- package/lib/banks/components/NavWrapper/theme.js +1 -2
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -2
- package/lib/banks/components/SharingModal/RootAccountSharing.js +2 -4
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +2 -3
- package/lib/banks/components/SharingModal/ShareList/index.js +2 -4
- package/lib/banks/components/SharingModal/ShareList/styles.js +1 -2
- package/lib/banks/components/SharingModal/index.js +1 -2
- package/lib/banks/components/SharingModal/presenter.js +2 -5
- package/lib/banks/components/SharingModal/styles.js +1 -2
- package/lib/banks/components/SharingModal/theme.js +1 -2
- package/lib/building/api/items.js +1 -1
- package/lib/building/api/qtiImports.js +5 -9
- package/lib/building/api/quizEntries.js +9 -10
- package/lib/building/api/quizzes.js +15 -15
- package/lib/building/api/stimuli.js +1 -1
- package/lib/building/components/QTIImportModal/index.js +5 -9
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +1 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +5 -9
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +2 -4
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +1 -2
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +5 -9
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +2 -4
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -2
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +1 -2
- package/lib/building/components/layout/Sidebar/index.js +5 -9
- package/lib/building/components/layout/Sidebar/presenter.js +2 -4
- package/lib/building/components/layout/Sidebar/styles.js +1 -2
- package/lib/building/components/layout/Sidebar/theme.js +1 -2
- package/lib/building/components/layout/header/BuildingButtons/index.js +3 -5
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +2 -4
- package/lib/building/components/layout/header/BuildingButtons/styles.js +1 -2
- package/lib/building/components/layout/header/BuildingButtons/theme.js +1 -2
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +2 -4
- package/lib/building/components/resources/ActionButtons/index.js +2 -4
- package/lib/building/components/resources/ActionButtons/presenter.js +2 -4
- package/lib/building/components/resources/ActionButtons/styles.js +1 -2
- package/lib/building/components/resources/ActionButtons/theme.js +1 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +2 -4
- package/lib/building/components/resources/AddToBankOptions/styles.js +1 -2
- package/lib/building/components/resources/AddToBankOptions/theme.js +1 -2
- package/lib/building/components/resources/BanksTray/index.js +2 -4
- package/lib/building/components/resources/BanksTray/presenter.js +2 -4
- package/lib/building/components/resources/DeleteStimulusModal/index.js +2 -4
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +2 -4
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +1 -2
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -2
- package/lib/building/components/resources/ItemFeedbackModal/index.js +2 -4
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +2 -4
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +1 -2
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +1 -2
- package/lib/building/components/resources/MoveImmutableModal/index.js +2 -4
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +2 -4
- package/lib/building/components/resources/quiz/editButton/EditButton.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +2 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +2 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +1 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +2 -4
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +1 -2
- package/lib/building/components/resources/quiz/title/Edit/index.js +2 -4
- package/lib/building/components/resources/quiz/title/Edit/styles.js +1 -2
- package/lib/building/components/resources/quiz/title/Edit/theme.js +1 -2
- package/lib/building/components/resources/quiz/title/Show/index.js +2 -4
- package/lib/building/components/resources/quiz/title/Show/styles.js +1 -2
- package/lib/building/components/resources/quiz/title/Show/theme.js +1 -2
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +2 -3
- package/lib/building/components/resources/quiz/title/Title/index.js +2 -4
- package/lib/building/components/resources/quiz/title/Title/presenter.js +2 -4
- package/lib/building/components/resources/quiz/title/Title/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +4 -8
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +1 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +1 -2
- package/lib/common/actions/alerts.js +2 -2
- package/lib/common/actions/analyses.js +7 -7
- package/lib/common/actions/bankEntries.js +3 -5
- package/lib/common/actions/bankSearch.js +6 -10
- package/lib/common/actions/banks.js +8 -14
- package/lib/common/actions/config.js +1 -1
- package/lib/common/actions/editing.js +1 -1
- package/lib/common/actions/errorsShowing.js +1 -1
- package/lib/common/actions/grading.js +2 -2
- package/lib/common/actions/modal.js +3 -3
- package/lib/common/actions/modifications.js +29 -29
- package/lib/common/actions/printing.js +1 -1
- package/lib/common/actions/quizExport.js +2 -3
- package/lib/common/actions/quizSessionEvents.js +2 -3
- package/lib/common/actions/quizSessionResults.js +2 -3
- package/lib/common/actions/quizSessions.js +8 -13
- package/lib/common/actions/quizzes.js +8 -14
- package/lib/common/actions/rce.js +5 -8
- package/lib/common/actions/regrading.js +1 -1
- package/lib/common/actions/reporting.js +1 -1
- package/lib/common/actions/scrolling.js +1 -1
- package/lib/common/actions/sessionItemResults.js +2 -3
- package/lib/common/actions/sessionItems.js +2 -3
- package/lib/common/actions/sharedBanks.js +5 -8
- package/lib/common/actions/sidebar.js +1 -1
- package/lib/common/actions/tagAssociations.js +9 -17
- package/lib/common/actions/taking.js +20 -38
- package/lib/common/actions/ui.js +11 -20
- package/lib/common/actions/upload.js +6 -11
- package/lib/common/api/callHandlers.js +25 -46
- package/lib/common/api/camelizeHelpers.js +2 -4
- package/lib/common/api/features.js +2 -3
- package/lib/common/api/fileUpload.js +2 -3
- package/lib/common/api/getPersistenceActions.js +1 -2
- package/lib/common/api/helpers.js +7 -10
- package/lib/common/api/interactionTypes.js +2 -3
- package/lib/common/api/quizSessions.js +17 -26
- package/lib/common/api/quizzes.js +2 -2
- package/lib/common/api/schema.js +20 -37
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +3 -5
- package/lib/common/components/ConfirmationModal/index.js +1 -2
- package/lib/common/components/ConfirmationModal/presenter.js +2 -4
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +2 -4
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +1 -2
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +1 -2
- package/lib/common/components/ImportModal/index.js +5 -7
- package/lib/common/components/ImportModal/presenter.js +2 -4
- package/lib/common/components/ImportModal/styles.js +1 -2
- package/lib/common/components/ImportModal/theme.js +1 -2
- package/lib/common/components/LearnosityCalculator/index.js +2 -4
- package/lib/common/components/Pin/Pin.examples.js +2 -3
- package/lib/common/components/Pin/index.js +2 -4
- package/lib/common/components/Pin/presenter.js +2 -4
- package/lib/common/components/PreviewFrame/examples.config.js +2 -3
- package/lib/common/components/PreviewFrame/index.js +2 -4
- package/lib/common/components/PrintFontSizeModal/index.js +1 -2
- package/lib/common/components/PrintFontSizeModal/presenter.js +2 -4
- package/lib/common/components/PrintFontSizeModal/styles.js +1 -2
- package/lib/common/components/PrintFontSizeModal/theme.js +1 -2
- package/lib/common/components/RceConfigProvider/index.js +1 -2
- package/lib/common/components/RceConfigProvider/presenter.js +1 -2
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +3 -5
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +7 -12
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +2 -3
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +2 -3
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +4 -6
- package/lib/common/components/SDKApp/index.js +4 -7
- package/lib/common/components/SDKApp/styles.js +1 -2
- package/lib/common/components/SDKHeaderCalculator.js +2 -4
- package/lib/common/components/SDKMenuButton.js +2 -4
- package/lib/common/components/SDKNavBar.js +2 -4
- package/lib/common/components/SDKTimer.js +2 -4
- package/lib/common/components/alerts/index.js +2 -3
- package/lib/common/components/alerts/presenter.js +2 -4
- package/lib/common/components/alerts/styles.js +1 -2
- package/lib/common/components/alerts/theme.js +1 -2
- package/lib/common/components/layout/Page/index.js +2 -4
- package/lib/common/components/layout/Page/styles.js +1 -2
- package/lib/common/components/layout/Page/theme.js +1 -2
- package/lib/common/components/layout/header/Calculator/index.js +2 -4
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -4
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +5 -7
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +2 -4
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +1 -2
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +1 -2
- package/lib/common/components/layout/header/Timer/index.js +1 -2
- package/lib/common/components/layout/header/Timer/presenter.js +2 -4
- package/lib/common/components/layout/header/Timer/styles.js +1 -2
- package/lib/common/components/layout/header/Timer/theme.js +1 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +2 -4
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -2
- package/lib/common/components/layout/navbar/index.js +2 -4
- package/lib/common/components/layout/navbar/styles.js +1 -2
- package/lib/common/components/layout/navbar/theme.js +1 -2
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +2 -4
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +1 -2
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +2 -4
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +2 -3
- package/lib/common/components/layout/sidebar/Sidebar/index.js +2 -4
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +1 -2
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +5 -9
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -4
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +1 -2
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/index.js +5 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +3 -6
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +1 -2
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +1 -2
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +2 -3
- package/lib/common/components/resources/BankSelection/index.js +3 -4
- package/lib/common/components/resources/BankSelection/presenter.js +2 -4
- package/lib/common/components/resources/WarningWrapper/index.js +2 -4
- package/lib/common/components/resources/WarningWrapper/styles.js +1 -2
- package/lib/common/components/resources/WarningWrapper/theme.js +1 -2
- package/lib/common/components/resources/entry/EntrySave/index.js +2 -3
- package/lib/common/components/resources/entry/EntrySave/presenter.js +2 -4
- package/lib/common/components/resources/item/ItemEdit/index.js +2 -3
- package/lib/common/components/resources/item/ItemEdit/presenter.js +2 -4
- package/lib/common/components/resources/item/ItemOverride/index.js +1 -2
- package/lib/common/components/resources/item/ItemOverride/presenter.js +2 -4
- package/lib/common/components/resources/item/ItemShow/index.js +1 -2
- package/lib/common/components/resources/positionBox/PositionBox.js +2 -4
- package/lib/common/components/resources/positionBox/styles.js +1 -2
- package/lib/common/components/resources/positionBox/theme.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +3 -5
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +1 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
- package/lib/common/components/resources/quiz/info/QuizInfo.js +2 -4
- package/lib/common/components/resources/quiz/instructions/Instructions.js +2 -4
- package/lib/common/components/resources/quiz/instructions/styles.js +1 -2
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -2
- package/lib/common/components/resources/quiz/title/Title.js +2 -4
- package/lib/common/components/resources/quiz/title/styles.js +1 -2
- package/lib/common/components/resources/quiz/title/theme.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +2 -4
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -4
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +1 -2
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +2 -4
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +1 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +2 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +2 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/index.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +2 -4
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -2
- package/lib/common/components/shared/Card/CardContent/index.js +2 -4
- package/lib/common/components/shared/Card/CardContent/styles.js +1 -2
- package/lib/common/components/shared/Card/CardContent/theme.js +1 -2
- package/lib/common/components/shared/Card/CardWrapper/index.js +2 -4
- package/lib/common/components/shared/Card/CardWrapper/styles.js +1 -2
- package/lib/common/components/shared/Card/CardWrapper/theme.js +1 -2
- package/lib/common/components/shared/Card/index.js +1 -2
- package/lib/common/components/shared/ExpandButton/index.js +2 -4
- package/lib/common/components/shared/ExpandButton/styles.js +1 -2
- package/lib/common/components/shared/ExpandButton/theme.js +1 -2
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +2 -3
- package/lib/common/components/shared/FormattedDuration/index.js +7 -11
- package/lib/common/components/shared/IfFeature/index.js +3 -5
- package/lib/common/components/shared/IfFeature/presenter.js +2 -4
- package/lib/common/components/shared/InteractionTypes/index.js +1 -2
- package/lib/common/components/shared/InteractionTypes/presenter.js +2 -4
- package/lib/common/components/shared/InteractionTypes/styles.js +1 -2
- package/lib/common/components/shared/InteractionTypes/theme.js +1 -2
- package/lib/common/components/shared/PaginatedCollection/index.js +3 -4
- package/lib/common/components/shared/PaginatedCollection/presenter.js +2 -4
- package/lib/common/components/shared/PaginatedCollection/styles.js +1 -2
- package/lib/common/components/shared/PaginatedCollection/theme.js +1 -2
- package/lib/common/components/shared/Paginator/index.js +2 -4
- package/lib/common/components/shared/Paginator/styles.js +1 -2
- package/lib/common/components/shared/Paginator/theme.js +1 -2
- package/lib/common/components/shared/PrintTrigger/index.js +3 -5
- package/lib/common/components/shared/PrintTrigger/presenter.js +2 -4
- package/lib/common/components/shared/TagDisplay/index.js +2 -4
- package/lib/common/components/shared/TagDisplay/styles.js +1 -2
- package/lib/common/components/shared/TagSelect/index.js +1 -2
- package/lib/common/components/shared/TagSelect/presenter.js +2 -4
- package/lib/common/components/shared/TagSuggestSelect/index.js +1 -2
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +2 -4
- package/lib/common/components/shared/TagWrapper/index.js +1 -2
- package/lib/common/components/shared/TagWrapper/presenter.js +2 -4
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +2 -3
- package/lib/common/components/shared/TimeUnitsInput/index.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +1 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +1 -2
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +3 -5
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +2 -4
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +17 -19
- package/lib/common/components/shared/errors/Errors.js +2 -4
- package/lib/common/components/shared/errors/styles.js +1 -2
- package/lib/common/components/shared/errors/theme.js +1 -2
- package/lib/common/components/shared/file_selector/FileSelector.js +2 -4
- package/lib/common/components/shared/file_selector/styles.js +1 -2
- package/lib/common/components/shared/file_selector/theme.js +1 -2
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +1 -2
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +1 -2
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +2 -3
- package/lib/common/components/shared/functionality/makeEditable.js +3 -5
- package/lib/common/components/shared/functionality/makeScrollable.js +4 -7
- package/lib/common/components/shared/overlay/index.js +1 -3
- package/lib/common/components/shared/overlay/styles.js +1 -2
- package/lib/common/components/shared/overlay/theme.js +1 -2
- package/lib/common/components/shared/return_button/ReturnButton.js +2 -4
- package/lib/common/components/shared/spinner/Spinner.js +2 -4
- package/lib/common/components/shared/spinner/styles.js +1 -2
- package/lib/common/kinesis/QuizEventsLogger.js +4 -7
- package/lib/common/kinesis/StreamQueue.js +2 -3
- package/lib/common/kinesis/client.js +5 -9
- package/lib/common/kinesis/config.js +6 -10
- package/lib/common/kinesis/eventTypes.js +8 -15
- package/lib/common/middleware/alertTimerMiddleware.js +1 -2
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +1 -2
- package/lib/common/middleware/eventLoggerMiddleware.js +1 -2
- package/lib/common/middleware/persistedStorageMiddleware.js +1 -2
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +8 -14
- package/lib/common/react-redux.js +2 -3
- package/lib/common/records/Alert.js +2 -4
- package/lib/common/records/Bank.js +2 -4
- package/lib/common/records/BankEntry.js +2 -4
- package/lib/common/records/Item.js +2 -4
- package/lib/common/records/ItemAnalysis.js +2 -4
- package/lib/common/records/QtiImport.js +2 -4
- package/lib/common/records/Quiz.js +2 -4
- package/lib/common/records/QuizAnalysis.js +2 -4
- package/lib/common/records/QuizEntry.js +2 -4
- package/lib/common/records/QuizSession.js +2 -4
- package/lib/common/records/QuizSessionEvent.js +2 -4
- package/lib/common/records/QuizSessionResult.js +2 -4
- package/lib/common/records/Response.js +2 -4
- package/lib/common/records/SessionItem.js +2 -4
- package/lib/common/records/SessionItemResult.js +2 -4
- package/lib/common/records/Stimulus.js +2 -4
- package/lib/common/records/baseRecord.js +2 -3
- package/lib/common/records/index.js +34 -34
- package/lib/common/reducers/alerts.js +2 -3
- package/lib/common/reducers/analyses.js +15 -28
- package/lib/common/reducers/bankEntries.js +2 -3
- package/lib/common/reducers/bankSearch.js +2 -3
- package/lib/common/reducers/banks.js +2 -3
- package/lib/common/reducers/calls.js +2 -3
- package/lib/common/reducers/config.js +2 -3
- package/lib/common/reducers/dragAndDrop.js +2 -3
- package/lib/common/reducers/editing.js +2 -3
- package/lib/common/reducers/errorsShowing.js +2 -3
- package/lib/common/reducers/features.js +2 -3
- package/lib/common/reducers/grading.js +2 -3
- package/lib/common/reducers/interactionTypes.js +2 -3
- package/lib/common/reducers/items.js +2 -3
- package/lib/common/reducers/modal.js +2 -3
- package/lib/common/reducers/moderation.js +2 -3
- package/lib/common/reducers/modifications.js +2 -3
- package/lib/common/reducers/outcomes.js +2 -3
- package/lib/common/reducers/printing.js +2 -3
- package/lib/common/reducers/qtiImports.js +2 -3
- package/lib/common/reducers/quizEntries.js +2 -3
- package/lib/common/reducers/quizExport.js +2 -3
- package/lib/common/reducers/quizSessionEvents.js +2 -3
- package/lib/common/reducers/quizSessionResults.js +2 -3
- package/lib/common/reducers/quizSessions.js +2 -3
- package/lib/common/reducers/quizzes.js +2 -3
- package/lib/common/reducers/rce.js +2 -3
- package/lib/common/reducers/regrading.js +2 -3
- package/lib/common/reducers/reporting.js +2 -3
- package/lib/common/reducers/scrolling.js +2 -3
- package/lib/common/reducers/sessionItemResults.js +2 -3
- package/lib/common/reducers/sessionItems.js +2 -3
- package/lib/common/reducers/sharedBanks.js +2 -3
- package/lib/common/reducers/sidebar.js +2 -3
- package/lib/common/reducers/stimuli.js +2 -3
- package/lib/common/reducers/tagAssociations.js +2 -3
- package/lib/common/reducers/taking.js +2 -3
- package/lib/common/reducers/ui.js +2 -3
- package/lib/common/reducers/upload.js +2 -3
- package/lib/common/selectors/analyses.js +13 -24
- package/lib/common/selectors/interactionTypes.js +2 -4
- package/lib/common/selectors/qtiImports.js +2 -3
- package/lib/common/selectors/quizSessionResults.js +1 -1
- package/lib/common/selectors/quizSessions.js +8 -14
- package/lib/common/selectors/quizzes.js +13 -25
- package/lib/common/selectors/rce.js +4 -6
- package/lib/common/selectors/reporting.js +2 -3
- package/lib/common/selectors/sessionItemResults.js +3 -4
- package/lib/common/selectors/sessionItems.js +3 -4
- package/lib/common/selectors/taking.js +8 -11
- package/lib/common/selectors/ui.js +2 -3
- package/lib/common/util/CustomPropTypes.js +3 -5
- package/lib/common/util/ElementsForSelectors.js +2 -3
- package/lib/common/util/ExhaustivePaginatedFetcher.js +1 -2
- package/lib/common/util/Fetcher.js +2 -4
- package/lib/common/util/MultiWeakMap.js +2 -3
- package/lib/common/util/PaginatedFetcher.js +2 -4
- package/lib/common/util/ThunkQueue.js +2 -3
- package/lib/common/util/TimeRecordingService.js +2 -4
- package/lib/common/util/TimerService.js +3 -6
- package/lib/common/util/cachePreviousArgs.js +2 -3
- package/lib/common/util/callHelpers.js +6 -10
- package/lib/common/util/componentForItem.js +2 -4
- package/lib/common/util/debounceLatestPromise.js +2 -3
- package/lib/common/util/formatTimespan.js +2 -3
- package/lib/common/util/generateDisplayPositions.js +2 -3
- package/lib/common/util/httpHeaders.js +5 -8
- package/lib/common/util/immutableHelpers.js +5 -8
- package/lib/common/util/instUIMessages.js +2 -3
- package/lib/common/util/interactionTypeMetadata.js +4 -6
- package/lib/common/util/interactionTypePropsHelper.js +3 -5
- package/lib/common/util/interactionTypeRecordForItem.js +1 -2
- package/lib/common/util/jsonify.js +3 -4
- package/lib/common/util/keyboardClickable.js +1 -2
- package/lib/common/util/mathRenderingUtils.js +2 -4
- package/lib/common/util/maxContent.js +2 -3
- package/lib/common/util/noop.js +2 -3
- package/lib/common/util/persistedState.js +1 -2
- package/lib/common/util/printUtils.js +4 -6
- package/lib/common/util/rceChecker.js +2 -3
- package/lib/common/util/renderAlerts.js +2 -3
- package/lib/common/util/serializeEvent.js +2 -3
- package/lib/common/util/sessionStore.js +2 -4
- package/lib/common/util/valMap.js +2 -3
- package/lib/common/util/warningHelpers.js +9 -16
- package/lib/common/util/windowChecks.js +7 -12
- package/lib/common/util/withCachedArguments.js +2 -3
- package/lib/common/util/withDynamoPagination.js +2 -3
- package/lib/common/util/withStateCache.js +1 -2
- package/lib/config.js +3 -5
- package/lib/configureStore.js +1 -2
- package/lib/grading/api/updateResults.js +2 -3
- package/lib/index.js +398 -397
- package/lib/messages/LocalStorageAdapter.js +2 -4
- package/lib/messages/LocalStorageLimits.js +1 -2
- package/lib/messages/StorageExhaustionError.js +2 -3
- package/lib/messages/postMessageService.js +2 -3
- package/lib/messages/subjectHandlers/forwardMessage.js +1 -2
- package/lib/messages/subjectHandlers/lti.capabilities.js +1 -2
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +1 -2
- package/lib/messages/subjectHandlers/lti.frameResize.js +1 -2
- package/lib/messages/subjectHandlers/lti.get_data.js +1 -2
- package/lib/messages/subjectHandlers/lti.put_data.js +1 -2
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +2 -4
- package/lib/moderating/api/quizSessions.js +1 -1
- package/lib/moderating/components/events/Event.js +2 -4
- package/lib/moderating/components/events/PageBlurredEvent.js +2 -4
- package/lib/moderating/components/events/PageFocusedEvent.js +2 -4
- package/lib/moderating/components/events/RCEEvent.js +2 -4
- package/lib/moderating/components/events/ResponseEvent.js +2 -4
- package/lib/moderating/components/events/SessionStartEvent.js +2 -4
- package/lib/moderating/components/events/styles.js +1 -2
- package/lib/moderating/components/events/theme.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +2 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +2 -4
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +2 -4
- package/lib/moderating/components/resources/AccommodationsModal/index.js +2 -4
- package/lib/moderating/components/resources/ElapsedTime.js +2 -4
- package/lib/moderating/components/resources/ModerateTable/index.js +4 -7
- package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -4
- package/lib/moderating/components/resources/ModerateTable/styles.js +1 -2
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -2
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -3
- package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -3
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +2 -4
- package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -2
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +1 -2
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +1 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +2 -3
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +3 -5
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -4
- package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +1 -2
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +2 -3
- package/lib/moderating/components/sidebar/ModerateTray/index.js +3 -4
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +2 -4
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +3 -4
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +2 -4
- package/lib/reduxStore.js +4 -5
- package/lib/reporting/api/fetchStudentAnalyses.js +2 -3
- package/lib/reporting/api/getAnalysesExport.js +2 -3
- package/lib/reporting/api/getAnalysesStatus.js +2 -3
- package/lib/reporting/api/getItemAnalyses.js +2 -3
- package/lib/reporting/api/getQuizAnalysis.js +2 -3
- package/lib/reporting/components/Caption/index.js +2 -4
- package/lib/reporting/components/Caption/styles.js +1 -2
- package/lib/reporting/components/Caption/theme.js +1 -2
- package/lib/reporting/components/MetricsListItem/index.js +2 -4
- package/lib/reporting/components/MetricsListItem/styles.js +1 -2
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +2 -3
- package/lib/reporting/components/charts/CentileDistribution/index.js +1 -2
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +2 -4
- package/lib/reporting/components/charts/CentileDistribution/styles.js +1 -2
- package/lib/reporting/components/charts/CentileDistribution/theme.js +1 -2
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +2 -4
- package/lib/reporting/components/charts/Distribution/Distribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/index.js +1 -2
- package/lib/reporting/components/charts/Distribution/presenter.js +4 -7
- package/lib/reporting/components/charts/Distribution/styles.js +1 -2
- package/lib/reporting/components/charts/Distribution/theme.js +1 -2
- package/lib/reporting/components/charts/Legend/index.js +2 -4
- package/lib/reporting/components/charts/Legend/styles.js +1 -2
- package/lib/reporting/components/charts/Legend/theme.js +1 -2
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/index.js +1 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +2 -4
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +1 -2
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +2 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +2 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +1 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +1 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +2 -3
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +1 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +1 -2
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +2 -4
- package/lib/reporting/components/quizAnalysis/styles.js +1 -2
- package/lib/reporting/components/quizAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +6 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +4 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +4 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +2 -3
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +3 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +2 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +2 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +3 -5
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -2
- package/lib/reporting/components/resources/ReportCard/index.js +2 -4
- package/lib/reporting/components/resources/ReportCard/styles.js +1 -2
- package/lib/reporting/components/resources/ReportCard/theme.js +1 -2
- package/lib/reporting/components/resources/ReportList/index.js +2 -4
- package/lib/reporting/components/resources/ReportList/styles.js +1 -2
- package/lib/reporting/components/resources/ReportList/theme.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +48 -57
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +4 -3
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +4 -3
- package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +2 -3
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -2
- package/lib/reporting/components/resources/common/ExportButton/index.js +1 -2
- package/lib/reporting/components/resources/common/errorCodes.js +9 -16
- package/lib/reporting/components/resources/common/errorMessages.js +10 -18
- package/lib/reporting/components/resources/common/exportReports.js +2 -3
- package/lib/reporting/components/resources/common/generateReports.js +3 -5
- package/lib/reporting/components/resources/common/propTypes.js +18 -34
- package/lib/reporting/components/resources/common/utils.js +4 -6
- package/lib/taking/api/taking.js +14 -16
- package/lib/taking/learnosity/index.js +1 -1
- package/package.json +13 -11
|
@@ -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 = /*#__PURE__*/function () {
|
|
13
|
+
var exportReports = exports.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,5 +59,4 @@ var exportReports = /*#__PURE__*/function () {
|
|
|
59
59
|
return function exportReports(_x) {
|
|
60
60
|
return _ref2.apply(this, arguments);
|
|
61
61
|
};
|
|
62
|
-
}();
|
|
63
|
-
exports.exportReports = exportReports;
|
|
62
|
+
}();
|
|
@@ -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.generateReports = exports.default = 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 = /*#__PURE__*/function () {
|
|
14
|
+
var generateReports = exports.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,6 +86,4 @@ var generateReports = /*#__PURE__*/function () {
|
|
|
86
86
|
return _ref2.apply(this, arguments);
|
|
87
87
|
};
|
|
88
88
|
}();
|
|
89
|
-
exports.
|
|
90
|
-
var _default = generateReports;
|
|
91
|
-
exports.default = _default;
|
|
89
|
+
var _default = exports.default = generateReports;
|
|
@@ -4,17 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.studentAnalysesPropType = exports.scoreDistributionTypeAnswerSummaryPropType = exports.scoreDistributionType = exports.richFillBlankTypeAnswerSummaryPropType = exports.quizAnalysisPropType = exports.quizAnalysisMetadata = exports.onlyAggregatePropType = exports.numericTypeAnswerSummaryPropType = exports.matchingTypeAnswerSummaryPropType = exports.itemAnalysisPropType = exports.choiceTypeObject = exports.choiceTypeAnswerSummaryPropType = exports.answerSummaryPropType = exports.aggregatePropType = exports.aggregateDetailPropType = exports.afsFlags = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var quizAnalysisMetadata = _propTypes.default.shape({
|
|
9
|
+
var quizAnalysisMetadata = exports.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
|
-
exports.
|
|
17
|
-
var quizAnalysisPropType = _propTypes.default.shape({
|
|
16
|
+
var quizAnalysisPropType = exports.quizAnalysisPropType = _propTypes.default.shape({
|
|
18
17
|
created_timestamp: _propTypes.default.string.isRequired,
|
|
19
18
|
metadata: quizAnalysisMetadata.isRequired,
|
|
20
19
|
scores: _propTypes.default.shape({
|
|
@@ -34,54 +33,45 @@ var quizAnalysisPropType = _propTypes.default.shape({
|
|
|
34
33
|
average_attempts: _propTypes.default.number
|
|
35
34
|
}).isRequired
|
|
36
35
|
});
|
|
37
|
-
exports.
|
|
38
|
-
var studentAnalysesPropType = _propTypes.default.shape({
|
|
36
|
+
var studentAnalysesPropType = exports.studentAnalysesPropType = _propTypes.default.shape({
|
|
39
37
|
created_timestamp: _propTypes.default.string.isRequired
|
|
40
38
|
});
|
|
41
|
-
exports.
|
|
42
|
-
var aggregateDetailPropType = _propTypes.default.shape({
|
|
39
|
+
var aggregateDetailPropType = exports.aggregateDetailPropType = _propTypes.default.shape({
|
|
43
40
|
count: _propTypes.default.number.isRequired,
|
|
44
41
|
percentage: _propTypes.default.number.isRequired
|
|
45
42
|
});
|
|
46
|
-
exports.
|
|
47
|
-
var aggregatePropType = _propTypes.default.shape({
|
|
43
|
+
var aggregatePropType = exports.aggregatePropType = _propTypes.default.shape({
|
|
48
44
|
correct: aggregateDetailPropType.isRequired,
|
|
49
45
|
incorrect: aggregateDetailPropType.isRequired
|
|
50
46
|
});
|
|
51
|
-
exports.
|
|
52
|
-
var onlyAggregatePropType = _propTypes.default.shape({
|
|
47
|
+
var onlyAggregatePropType = exports.onlyAggregatePropType = _propTypes.default.shape({
|
|
53
48
|
no_answer: aggregateDetailPropType,
|
|
54
49
|
graded: aggregateDetailPropType,
|
|
55
50
|
aggregate: aggregatePropType
|
|
56
51
|
});
|
|
57
|
-
exports.
|
|
58
|
-
var choiceTypeObject = _propTypes.default.shape({
|
|
52
|
+
var choiceTypeObject = exports.choiceTypeObject = _propTypes.default.shape({
|
|
59
53
|
body: _propTypes.default.string,
|
|
60
54
|
correct: _propTypes.default.bool,
|
|
61
55
|
count: _propTypes.default.number,
|
|
62
56
|
percentage: _propTypes.default.number
|
|
63
57
|
});
|
|
64
|
-
exports.
|
|
65
|
-
var choiceTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
58
|
+
var choiceTypeAnswerSummaryPropType = exports.choiceTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
66
59
|
choices: _propTypes.default.arrayOf(choiceTypeObject),
|
|
67
60
|
no_answer: aggregateDetailPropType,
|
|
68
61
|
aggregate: aggregatePropType
|
|
69
62
|
});
|
|
70
|
-
exports.
|
|
71
|
-
var scoreDistributionTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
63
|
+
var scoreDistributionTypeAnswerSummaryPropType = exports.scoreDistributionTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
72
64
|
no_answer: aggregateDetailPropType.isRequired,
|
|
73
65
|
aggregate: aggregatePropType.isRequired,
|
|
74
66
|
graded: aggregateDetailPropType.isRequired,
|
|
75
67
|
score_distribution: _propTypes.default.arrayOf(scoreDistributionType).isRequired
|
|
76
68
|
});
|
|
77
|
-
exports.
|
|
78
|
-
var scoreDistributionType = _propTypes.default.shape({
|
|
69
|
+
var scoreDistributionType = exports.scoreDistributionType = _propTypes.default.shape({
|
|
79
70
|
count: _propTypes.default.number.isRequired,
|
|
80
71
|
score: _propTypes.default.number.isRequired,
|
|
81
72
|
percentage: _propTypes.default.number.isRequired
|
|
82
73
|
});
|
|
83
|
-
exports.
|
|
84
|
-
var matchingTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
74
|
+
var matchingTypeAnswerSummaryPropType = exports.matchingTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
85
75
|
questions: _propTypes.default.objectOf(_propTypes.default.shape({
|
|
86
76
|
body: _propTypes.default.string,
|
|
87
77
|
answers: _propTypes.default.objectOf(_propTypes.default.shape({
|
|
@@ -94,8 +84,7 @@ var matchingTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
|
94
84
|
no_answer: aggregateDetailPropType,
|
|
95
85
|
aggregate: aggregatePropType
|
|
96
86
|
});
|
|
97
|
-
exports.
|
|
98
|
-
var richFillBlankTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
87
|
+
var richFillBlankTypeAnswerSummaryPropType = exports.richFillBlankTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
99
88
|
blanks: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
100
89
|
choices: _propTypes.default.arrayOf(choiceTypeObject),
|
|
101
90
|
blank_text: _propTypes.default.string,
|
|
@@ -109,7 +98,6 @@ var richFillBlankTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
|
109
98
|
no_answer: aggregateDetailPropType,
|
|
110
99
|
aggregate: aggregatePropType
|
|
111
100
|
});
|
|
112
|
-
exports.richFillBlankTypeAnswerSummaryPropType = richFillBlankTypeAnswerSummaryPropType;
|
|
113
101
|
var withinARangeTypeObject = _propTypes.default.shape({
|
|
114
102
|
end: _propTypes.default.string.isRequired,
|
|
115
103
|
start: _propTypes.default.string.isRequired,
|
|
@@ -140,16 +128,14 @@ var uncategorizedTypeObject = _propTypes.default.shape({
|
|
|
140
128
|
choices: _propTypes.default.arrayOf(choiceTypeObject).isRequired
|
|
141
129
|
});
|
|
142
130
|
var numericRequirementTypeObject = _propTypes.default.oneOfType([withinARangeTypeObject, marginOfErrorTypeObject, exactResponseTypeObject, preciseResponseTypeObject, uncategorizedTypeObject]);
|
|
143
|
-
var numericTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
131
|
+
var numericTypeAnswerSummaryPropType = exports.numericTypeAnswerSummaryPropType = _propTypes.default.shape({
|
|
144
132
|
requirement: _propTypes.default.shape({
|
|
145
133
|
correct_answers: _propTypes.default.arrayOf(numericRequirementTypeObject).isRequired,
|
|
146
134
|
incorrect_answer_choices: _propTypes.default.arrayOf(choiceTypeObject).isRequired
|
|
147
135
|
})
|
|
148
136
|
});
|
|
149
|
-
exports.
|
|
150
|
-
var
|
|
151
|
-
exports.answerSummaryPropType = answerSummaryPropType;
|
|
152
|
-
var itemAnalysisPropType = _propTypes.default.shape({
|
|
137
|
+
var answerSummaryPropType = exports.answerSummaryPropType = _propTypes.default.oneOfType([choiceTypeAnswerSummaryPropType, onlyAggregatePropType, matchingTypeAnswerSummaryPropType, richFillBlankTypeAnswerSummaryPropType, scoreDistributionTypeAnswerSummaryPropType]);
|
|
138
|
+
var itemAnalysisPropType = exports.itemAnalysisPropType = _propTypes.default.shape({
|
|
153
139
|
attempts: _propTypes.default.shape({
|
|
154
140
|
students_responded: _propTypes.default.number,
|
|
155
141
|
students_without_response: _propTypes.default.number
|
|
@@ -171,8 +157,7 @@ var itemAnalysisPropType = _propTypes.default.shape({
|
|
|
171
157
|
}),
|
|
172
158
|
answer_summary: answerSummaryPropType
|
|
173
159
|
});
|
|
174
|
-
exports.
|
|
175
|
-
var afsFlags = _propTypes.default.shape({
|
|
160
|
+
var afsFlags = exports.afsFlags = _propTypes.default.shape({
|
|
176
161
|
formulaEnabled: _propTypes.default.bool.isRequired,
|
|
177
162
|
matchingEnabled: _propTypes.default.bool.isRequired,
|
|
178
163
|
hotSpotEnabled: _propTypes.default.bool.isRequired,
|
|
@@ -185,5 +170,4 @@ var afsFlags = _propTypes.default.shape({
|
|
|
185
170
|
numericEnabled: _propTypes.default.bool.isRequired,
|
|
186
171
|
essayEnabled: _propTypes.default.bool.isRequired,
|
|
187
172
|
fileUploadEnabled: _propTypes.default.bool.isRequired
|
|
188
|
-
});
|
|
189
|
-
exports.afsFlags = afsFlags;
|
|
173
|
+
});
|
|
@@ -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.saveFile = exports.getSanitizedMetricValue = 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,15 +13,13 @@ var formatNumbers = function formatNumbers(value) {
|
|
|
13
13
|
}
|
|
14
14
|
return value;
|
|
15
15
|
};
|
|
16
|
-
var getSanitizedMetricValue = function getSanitizedMetricValue(value, suffix) {
|
|
16
|
+
var getSanitizedMetricValue = exports.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
|
-
exports.
|
|
24
|
-
var saveFile = function saveFile(file, fileName) {
|
|
23
|
+
var saveFile = exports.saveFile = function saveFile(file, fileName) {
|
|
25
24
|
(0, _fileSaver.saveAs)(file, fileName);
|
|
26
|
-
};
|
|
27
|
-
exports.saveFile = saveFile;
|
|
25
|
+
};
|
package/lib/taking/api/taking.js
CHANGED
|
@@ -5,18 +5,21 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.closeSubmitConfirmModal = closeSubmitConfirmModal;
|
|
8
9
|
exports.confirmSessionStartPage = confirmSessionStartPage;
|
|
10
|
+
exports.getResumeData = void 0;
|
|
11
|
+
exports.getTimeRemaining = getTimeRemaining;
|
|
12
|
+
exports.messageForSubmitModal = exports.makeSessionItemCall = void 0;
|
|
9
13
|
exports.newQuizTakingSession = newQuizTakingSession;
|
|
14
|
+
exports.nextQuestion = void 0;
|
|
15
|
+
exports.notifyTimeAdded = notifyTimeAdded;
|
|
10
16
|
exports.onQuizSessionReadyForTaking = onQuizSessionReadyForTaking;
|
|
17
|
+
exports.postQuizSession = postQuizSession;
|
|
18
|
+
exports.recordQuizTime = recordQuizTime;
|
|
11
19
|
exports.showSubmitConfirmModal = showSubmitConfirmModal;
|
|
12
|
-
exports.closeSubmitConfirmModal = closeSubmitConfirmModal;
|
|
13
20
|
exports.submitQuiz = submitQuiz;
|
|
14
|
-
exports.
|
|
21
|
+
exports.submitStudentAccessCode = void 0;
|
|
15
22
|
exports.updateTime = updateTime;
|
|
16
|
-
exports.postQuizSession = postQuizSession;
|
|
17
|
-
exports.getTimeRemaining = getTimeRemaining;
|
|
18
|
-
exports.recordQuizTime = recordQuizTime;
|
|
19
|
-
exports.messageForSubmitModal = exports.nextQuestion = exports.submitStudentAccessCode = exports.makeSessionItemCall = exports.getResumeData = void 0;
|
|
20
23
|
var _react = _interopRequireDefault(require("react"));
|
|
21
24
|
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
22
25
|
var _immutable = require("immutable");
|
|
@@ -55,7 +58,7 @@ var getQuizSessionConfig = function getQuizSessionConfig(quizSession) {
|
|
|
55
58
|
useSessionItemIndex: useSessionItemIndex
|
|
56
59
|
};
|
|
57
60
|
};
|
|
58
|
-
var getResumeData = function getResumeData(quizSessionId) {
|
|
61
|
+
var getResumeData = exports.getResumeData = function getResumeData(quizSessionId) {
|
|
59
62
|
return function (dispatch) {
|
|
60
63
|
var responseCb = function responseCb(resumeData) {
|
|
61
64
|
return dispatch((0, _callHandlers.handleResumeDataResponse)(resumeData, quizSessionId));
|
|
@@ -63,8 +66,7 @@ var getResumeData = function getResumeData(quizSessionId) {
|
|
|
63
66
|
return (0, _quizSessions.fetchResumeData)(quizSessionId, responseCb);
|
|
64
67
|
};
|
|
65
68
|
};
|
|
66
|
-
exports.
|
|
67
|
-
var makeSessionItemCall = function makeSessionItemCall(quizSession) {
|
|
69
|
+
var makeSessionItemCall = exports.makeSessionItemCall = function makeSessionItemCall(quizSession) {
|
|
68
70
|
var index = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _quizSessions2.getSessionItems;
|
|
69
71
|
var next = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : nextQuestion;
|
|
70
72
|
return function (dispatch) {
|
|
@@ -72,8 +74,7 @@ var makeSessionItemCall = function makeSessionItemCall(quizSession) {
|
|
|
72
74
|
return dispatch(action);
|
|
73
75
|
};
|
|
74
76
|
};
|
|
75
|
-
exports.
|
|
76
|
-
var submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, accessCode) {
|
|
77
|
+
var submitStudentAccessCode = exports.submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, accessCode) {
|
|
77
78
|
return function (dispatch) {
|
|
78
79
|
var responseCb = function responseCb(sessionData) {
|
|
79
80
|
dispatch(uiActions.set(_quizCommon.STUDENT_ACCESS_CODE_STATUS, sessionData.accepted_student_access_code));
|
|
@@ -91,7 +92,6 @@ var submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, ac
|
|
|
91
92
|
// ====================================
|
|
92
93
|
// OQAAT no backtracking call
|
|
93
94
|
// ====================================
|
|
94
|
-
exports.submitStudentAccessCode = submitStudentAccessCode;
|
|
95
95
|
var noBacktrackingNextQuestion = function noBacktrackingNextQuestion(quizSessionId, itemId, position, userResponse, largeFormatResponse, submit) {
|
|
96
96
|
return function (dispatch) {
|
|
97
97
|
var params = {};
|
|
@@ -124,7 +124,7 @@ var noBacktrackingNextQuestion = function noBacktrackingNextQuestion(quizSession
|
|
|
124
124
|
// ====================================
|
|
125
125
|
// OQAAT no backtracking call
|
|
126
126
|
// ====================================
|
|
127
|
-
var nextQuestion = function nextQuestion(quizSessionId, allowBacktracking, currentQuestionIsLast, position, itemId, userResponse, largeFormatResponse) {
|
|
127
|
+
var nextQuestion = exports.nextQuestion = function nextQuestion(quizSessionId, allowBacktracking, currentQuestionIsLast, position, itemId, userResponse, largeFormatResponse) {
|
|
128
128
|
var submit = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : submitQuiz;
|
|
129
129
|
if (allowBacktracking) {
|
|
130
130
|
return function (dispatch) {
|
|
@@ -139,7 +139,6 @@ var nextQuestion = function nextQuestion(quizSessionId, allowBacktracking, curre
|
|
|
139
139
|
// ====================================
|
|
140
140
|
// load up the quiz session for the taking page
|
|
141
141
|
// ====================================
|
|
142
|
-
exports.nextQuestion = nextQuestion;
|
|
143
142
|
function confirmSessionStartPage(quizSessionId) {
|
|
144
143
|
var cb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
145
144
|
var authRedirectCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
@@ -176,7 +175,7 @@ function onQuizSessionReadyForTaking(quizSession) {
|
|
|
176
175
|
// show submit confirmation modal
|
|
177
176
|
// ====================================
|
|
178
177
|
|
|
179
|
-
var messageForSubmitModal = function messageForSubmitModal(positions) {
|
|
178
|
+
var messageForSubmitModal = exports.messageForSubmitModal = function messageForSubmitModal(positions) {
|
|
180
179
|
if (!positions || positions.length === 0) {
|
|
181
180
|
return (0, _formatMessage.default)('Upon submission you will not be able to change your answers. Are you ready to submit?');
|
|
182
181
|
}
|
|
@@ -192,7 +191,6 @@ var messageForSubmitModal = function messageForSubmitModal(positions) {
|
|
|
192
191
|
}));
|
|
193
192
|
})), /*#__PURE__*/_react.default.createElement("p", null, (0, _formatMessage.default)('Upon submission you will not be able to change your answers. Are you ready to submit?')));
|
|
194
193
|
};
|
|
195
|
-
exports.messageForSubmitModal = messageForSubmitModal;
|
|
196
194
|
var __getResponseForSessionItem = function __getResponseForSessionItem(sessionItem, responses) {
|
|
197
195
|
var resp = responses.find(function (r) {
|
|
198
196
|
return r.get('position') === sessionItem.get('position');
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.appendFeature = appendFeature;
|
|
8
8
|
exports.destroyFeature = destroyFeature;
|
|
9
|
-
exports.toggleFeature = toggleFeature;
|
|
10
9
|
exports.reset = reset;
|
|
10
|
+
exports.toggleFeature = toggleFeature;
|
|
11
11
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
var _Fetcher = _interopRequireDefault(require("../../common/util/Fetcher.js"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.31.
|
|
3
|
+
"version": "20.31.1-snapshot.2+8aee04eec",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; yarn postbuild:errorImage",
|
|
29
29
|
"postbuild:all": "yarn postbuild",
|
|
30
30
|
"postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
|
|
31
|
-
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\""
|
|
31
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
32
|
+
"typecheck": "tsc --noEmit"
|
|
32
33
|
},
|
|
33
34
|
"keywords": [
|
|
34
35
|
"react",
|
|
@@ -45,11 +46,11 @@
|
|
|
45
46
|
"@instructure/emotion": "^8.51.0",
|
|
46
47
|
"@instructure/grading-utils": "^1.0.0",
|
|
47
48
|
"@instructure/outcomes-ui": "^3.2.2",
|
|
48
|
-
"@instructure/quiz-common": "
|
|
49
|
-
"@instructure/quiz-i18n": "
|
|
50
|
-
"@instructure/quiz-interactions": "
|
|
51
|
-
"@instructure/quiz-number-input": "
|
|
52
|
-
"@instructure/quiz-rce": "
|
|
49
|
+
"@instructure/quiz-common": "20.31.1-snapshot.2+8aee04eec",
|
|
50
|
+
"@instructure/quiz-i18n": "20.31.1-snapshot.2+8aee04eec",
|
|
51
|
+
"@instructure/quiz-interactions": "20.31.1-snapshot.2+8aee04eec",
|
|
52
|
+
"@instructure/quiz-number-input": "20.31.1-snapshot.2+8aee04eec",
|
|
53
|
+
"@instructure/quiz-rce": "20.31.1-snapshot.2+8aee04eec",
|
|
53
54
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
54
55
|
"@instructure/ui-alerts": "^8.51.0",
|
|
55
56
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"file-saver": "~2.0.5",
|
|
114
115
|
"humps": "^2.0.0",
|
|
115
116
|
"immutable": "^3.8.1",
|
|
116
|
-
"instructure-validations": "
|
|
117
|
+
"instructure-validations": "20.31.1-snapshot.2+8aee04eec",
|
|
117
118
|
"ipaddr.js": "^1.5.4",
|
|
118
119
|
"isomorphic-fetch": "^2.2.0",
|
|
119
120
|
"isuuid": "^0.1.0",
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
"uuid": "^3.2.1"
|
|
145
146
|
},
|
|
146
147
|
"devDependencies": {
|
|
147
|
-
"@instructure/quiz-scripts": "
|
|
148
|
+
"@instructure/quiz-scripts": "20.31.1",
|
|
148
149
|
"@instructure/ui-axe-check": "^8.51.0",
|
|
149
150
|
"@instructure/ui-babel-preset": "^7.22.1",
|
|
150
151
|
"@instructure/ui-test-utils": "^7.22.1",
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
"jquery": "^2.2.3",
|
|
163
164
|
"karma-junit-reporter": "^2.0.1",
|
|
164
165
|
"most-subject": "^5.3.0",
|
|
165
|
-
"quiz-presets": "
|
|
166
|
+
"quiz-presets": "20.31.1-snapshot.2+8aee04eec",
|
|
166
167
|
"react": "^16.8.6",
|
|
167
168
|
"react-addons-test-utils": "^15.6.2",
|
|
168
169
|
"react-dom": "^16.8.6",
|
|
@@ -177,5 +178,6 @@
|
|
|
177
178
|
},
|
|
178
179
|
"publishConfig": {
|
|
179
180
|
"access": "public"
|
|
180
|
-
}
|
|
181
|
+
},
|
|
182
|
+
"gitHead": "8aee04eec10da5ec120b3b01559921735a543e31"
|
|
181
183
|
}
|