@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
|
@@ -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.takeQuizSession = exports.submitStudentAccessCode = exports.submitQuizSession = exports.singleResponseSubmit = exports.recordTime = exports.pinSessionItem = exports.fetchTime = exports.fetchSessionItems = exports.fetchSessionItemResults = exports.fetchResumeData = exports.fetchQuizSessionResult = exports.fetchQuizSession = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _Fetcher = _interopRequireDefault(require("../util/Fetcher.js"));
|
|
10
10
|
var _withDynamoPagination = _interopRequireDefault(require("../util/withDynamoPagination.js"));
|
|
@@ -53,13 +53,12 @@ var post = function post(url, params, responseCb) {
|
|
|
53
53
|
// GENERAL
|
|
54
54
|
// /////////////////////
|
|
55
55
|
|
|
56
|
-
var fetchQuizSession = function fetchQuizSession(quizSessionId) {
|
|
56
|
+
var fetchQuizSession = exports.fetchQuizSession = function fetchQuizSession(quizSessionId) {
|
|
57
57
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
58
58
|
var params = arguments.length > 2 ? arguments[2] : void 0;
|
|
59
59
|
return get(generateUrl([quizSessionId]), responseCb, params);
|
|
60
60
|
};
|
|
61
|
-
exports.
|
|
62
|
-
var fetchSessionItems = function fetchSessionItems(quizSessionId) {
|
|
61
|
+
var fetchSessionItems = exports.fetchSessionItems = function fetchSessionItems(quizSessionId) {
|
|
63
62
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
64
63
|
return dynamoGet(generateUrl([quizSessionId, 'session_items']), responseCb, {
|
|
65
64
|
callType: _quizCommon.SESSION_ITEMS_FETCH_CALL
|
|
@@ -69,8 +68,7 @@ var fetchSessionItems = function fetchSessionItems(quizSessionId) {
|
|
|
69
68
|
// //////////////////////
|
|
70
69
|
// BEFORE TAKING
|
|
71
70
|
// //////////////////////
|
|
72
|
-
exports.
|
|
73
|
-
var submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, accessCode) {
|
|
71
|
+
var submitStudentAccessCode = exports.submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, accessCode) {
|
|
74
72
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
75
73
|
return post(generateUrl([quizSessionId, 'submit_student_access_code']), {
|
|
76
74
|
body: JSON.stringify({
|
|
@@ -82,8 +80,8 @@ var submitStudentAccessCode = function submitStudentAccessCode(quizSessionId, ac
|
|
|
82
80
|
// //////////////////////
|
|
83
81
|
// TAKING
|
|
84
82
|
// //////////////////////
|
|
85
|
-
|
|
86
|
-
var takeQuizSession = function takeQuizSession(quizSessionId) {
|
|
83
|
+
|
|
84
|
+
var takeQuizSession = exports.takeQuizSession = function takeQuizSession(quizSessionId) {
|
|
87
85
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
88
86
|
// Avoid generating the error header; errors handled via catch
|
|
89
87
|
return post(generateUrl([quizSessionId, 'take']), {}, responseCb, {
|
|
@@ -94,15 +92,13 @@ var takeQuizSession = function takeQuizSession(quizSessionId) {
|
|
|
94
92
|
}
|
|
95
93
|
});
|
|
96
94
|
};
|
|
97
|
-
exports.
|
|
98
|
-
var fetchResumeData = function fetchResumeData(quizSessionId) {
|
|
95
|
+
var fetchResumeData = exports.fetchResumeData = function fetchResumeData(quizSessionId) {
|
|
99
96
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
100
97
|
return get(generateUrl([quizSessionId, 'session_item_responses', 'resume_data']), responseCb);
|
|
101
98
|
};
|
|
102
99
|
|
|
103
100
|
// This is too widely used to be updated to use the common pattern here, fine as is
|
|
104
|
-
exports.
|
|
105
|
-
var pinSessionItem = function pinSessionItem(quizSessionId, sessionItemPosition) {
|
|
101
|
+
var pinSessionItem = exports.pinSessionItem = function pinSessionItem(quizSessionId, sessionItemPosition) {
|
|
106
102
|
return function (dispatch, getState) {
|
|
107
103
|
var responseCb = function responseCb(quizSessionData) {
|
|
108
104
|
return dispatch((0, _callHandlers.handleQuizSessionResponse)(quizSessionData));
|
|
@@ -115,13 +111,11 @@ var pinSessionItem = function pinSessionItem(quizSessionId, sessionItemPosition)
|
|
|
115
111
|
return post(generateUrl([quizSessionId, 'toggle_session_item_pin']), params, responseCb);
|
|
116
112
|
};
|
|
117
113
|
};
|
|
118
|
-
exports.
|
|
119
|
-
var fetchTime = function fetchTime(quizSessionId) {
|
|
114
|
+
var fetchTime = exports.fetchTime = function fetchTime(quizSessionId) {
|
|
120
115
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
121
116
|
return get(generateUrl([quizSessionId, 'time']), responseCb);
|
|
122
117
|
};
|
|
123
|
-
exports.
|
|
124
|
-
var recordTime = function recordTime(quizSessionId) {
|
|
118
|
+
var recordTime = exports.recordTime = function recordTime(quizSessionId) {
|
|
125
119
|
var responseCb = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _noop.default;
|
|
126
120
|
return get(generateUrl([quizSessionId, 'record']), responseCb);
|
|
127
121
|
};
|
|
@@ -129,7 +123,7 @@ var recordTime = function recordTime(quizSessionId) {
|
|
|
129
123
|
// /////////////////////
|
|
130
124
|
// TAKING SUBMIT
|
|
131
125
|
// /////////////////////
|
|
132
|
-
|
|
126
|
+
|
|
133
127
|
var onSubmitError = function onSubmitError(responseCb, errorCb) {
|
|
134
128
|
return function (error) {
|
|
135
129
|
if (error.response && error.response.status === 422) {
|
|
@@ -149,7 +143,7 @@ var onSingleResponseSubmitError = function onSingleResponseSubmitError(responseC
|
|
|
149
143
|
return onSubmitError(responseCb)(error);
|
|
150
144
|
};
|
|
151
145
|
};
|
|
152
|
-
var singleResponseSubmit = function singleResponseSubmit(quizSessionId, userResponse) {
|
|
146
|
+
var singleResponseSubmit = exports.singleResponseSubmit = function singleResponseSubmit(quizSessionId, userResponse) {
|
|
153
147
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
154
148
|
var errorCb = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : _noop.default;
|
|
155
149
|
// if the server returns a 204, don't try to JSON deserialize the
|
|
@@ -165,8 +159,7 @@ var singleResponseSubmit = function singleResponseSubmit(quizSessionId, userResp
|
|
|
165
159
|
// tests don't like uncaught errors
|
|
166
160
|
});
|
|
167
161
|
};
|
|
168
|
-
exports.
|
|
169
|
-
var submitQuizSession = function submitQuizSession(quizSessionId, userResponses) {
|
|
162
|
+
var submitQuizSession = exports.submitQuizSession = function submitQuizSession(quizSessionId, userResponses) {
|
|
170
163
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
171
164
|
var errorCb = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : _noop.default;
|
|
172
165
|
return post(generateUrl([quizSessionId, 'submit']), userResponses, responseCb, {
|
|
@@ -179,17 +172,15 @@ var submitQuizSession = function submitQuizSession(quizSessionId, userResponses)
|
|
|
179
172
|
// ///////////////////////////////
|
|
180
173
|
// POST TAKING (RESULTS/GRADING)
|
|
181
174
|
// ///////////////////////////////
|
|
182
|
-
|
|
183
|
-
var fetchSessionItemResults = function fetchSessionItemResults(quizSessionId, quizSessionResultId) {
|
|
175
|
+
|
|
176
|
+
var fetchSessionItemResults = exports.fetchSessionItemResults = function fetchSessionItemResults(quizSessionId, quizSessionResultId) {
|
|
184
177
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
185
178
|
return dynamoGet(generateUrl([quizSessionId, 'results', quizSessionResultId, 'session_item_results']), responseCb);
|
|
186
179
|
};
|
|
187
|
-
exports.
|
|
188
|
-
var fetchQuizSessionResult = function fetchQuizSessionResult(quizSessionId, quizSessionResultId) {
|
|
180
|
+
var fetchQuizSessionResult = exports.fetchQuizSessionResult = function fetchQuizSessionResult(quizSessionId, quizSessionResultId) {
|
|
189
181
|
var responseCb = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _noop.default;
|
|
190
182
|
var fetcherKey = _QuizSessionResult.default.fetcherTag(quizSessionResultId);
|
|
191
183
|
return get(generateUrl([quizSessionId, 'results', quizSessionResultId]), responseCb, {}, {
|
|
192
184
|
callType: fetcherKey
|
|
193
185
|
}, true);
|
|
194
|
-
};
|
|
195
|
-
exports.fetchQuizSessionResult = fetchQuizSessionResult;
|
|
186
|
+
};
|
|
@@ -14,7 +14,7 @@ var _interactionTypes = require("./interactionTypes.js");
|
|
|
14
14
|
var _quizEntries = require("../../building/api/quizEntries.js");
|
|
15
15
|
// ==== CALLBACKS ====
|
|
16
16
|
|
|
17
|
-
var quizFetchHandler = function quizFetchHandler(dispatch, quiz) {
|
|
17
|
+
var quizFetchHandler = exports.quizFetchHandler = function quizFetchHandler(dispatch, quiz) {
|
|
18
18
|
dispatch([(0, _callHandlers.handleQuizResponse)(quiz), (0, _quizzes.newActiveQuiz)("".concat(quiz.id))]);
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var quizFetchHandler = function quizFetchHandler(dispatch, quiz) {
|
|
|
22
22
|
// fetch the data for an existing quiz
|
|
23
23
|
// and add it as the active quiz
|
|
24
24
|
// ====================================
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
function getExistingQuiz(quizId) {
|
|
27
27
|
var quizUrl = "/api/quizzes/".concat(quizId);
|
|
28
28
|
return function (dispatch, getState) {
|
package/lib/common/api/schema.js
CHANGED
|
@@ -3,54 +3,37 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.stimulusSchema = exports.
|
|
6
|
+
exports.stimulusSchema = exports.shareBankSchema = exports.sessionItemSchema = exports.sessionItemResultSchema = exports.resumeDataSchema = exports.quizSessionSchema = exports.quizSessionResultSchema = exports.quizSessionEventSchema = exports.quizSchema = exports.quizEntrySchema = exports.quizEntriesSchema = exports.quizAnalysisSchema = exports.qtiImportSchema = exports.itemSchema = exports.itemAnalysisSchema = exports.interactionTypeSchema = exports.bankSchema = exports.bankEntrySchema = void 0;
|
|
7
7
|
var _normalizr = require("normalizr");
|
|
8
|
-
var bankSchema = new _normalizr.schema.Entity('banks');
|
|
9
|
-
exports.
|
|
10
|
-
var
|
|
11
|
-
exports.
|
|
12
|
-
var interactionTypeSchema = new _normalizr.schema.Entity('interactionTypes');
|
|
13
|
-
exports.interactionTypeSchema = interactionTypeSchema;
|
|
14
|
-
var itemAnalysisSchema = new _normalizr.schema.Entity('itemAnalyses', {}, {
|
|
8
|
+
var bankSchema = exports.bankSchema = new _normalizr.schema.Entity('banks');
|
|
9
|
+
var bankEntrySchema = exports.bankEntrySchema = new _normalizr.schema.Entity('bankEntries');
|
|
10
|
+
var interactionTypeSchema = exports.interactionTypeSchema = new _normalizr.schema.Entity('interactionTypes');
|
|
11
|
+
var itemAnalysisSchema = exports.itemAnalysisSchema = new _normalizr.schema.Entity('itemAnalyses', {}, {
|
|
15
12
|
idAttribute: 'item_id'
|
|
16
13
|
});
|
|
17
|
-
exports.
|
|
18
|
-
var quizAnalysisSchema = new _normalizr.schema.Entity('quizAnalyses', {}, {
|
|
14
|
+
var quizAnalysisSchema = exports.quizAnalysisSchema = new _normalizr.schema.Entity('quizAnalyses', {}, {
|
|
19
15
|
idAttribute: 'quiz_id'
|
|
20
16
|
});
|
|
21
|
-
exports.
|
|
22
|
-
var
|
|
23
|
-
exports.
|
|
24
|
-
var
|
|
25
|
-
exports.qtiImportSchema = qtiImportSchema;
|
|
26
|
-
var quizSchema = new _normalizr.schema.Entity('quizzes');
|
|
27
|
-
exports.quizSchema = quizSchema;
|
|
28
|
-
var quizSessionEventSchema = new _normalizr.schema.Entity('quizSessionEvents', {}, {
|
|
17
|
+
var itemSchema = exports.itemSchema = new _normalizr.schema.Entity('items');
|
|
18
|
+
var qtiImportSchema = exports.qtiImportSchema = new _normalizr.schema.Entity('qtiImports');
|
|
19
|
+
var quizSchema = exports.quizSchema = new _normalizr.schema.Entity('quizzes');
|
|
20
|
+
var quizSessionEventSchema = exports.quizSessionEventSchema = new _normalizr.schema.Entity('quizSessionEvents', {}, {
|
|
29
21
|
idAttribute: 'created_at' // indexed by createdAt
|
|
30
22
|
});
|
|
31
|
-
exports.
|
|
32
|
-
var
|
|
33
|
-
exports.
|
|
34
|
-
var
|
|
35
|
-
exports.
|
|
36
|
-
var
|
|
37
|
-
exports.
|
|
38
|
-
var
|
|
39
|
-
exports.
|
|
40
|
-
var quizEntriesSchema = new _normalizr.schema.Entity('quizEntries');
|
|
41
|
-
exports.quizEntriesSchema = quizEntriesSchema;
|
|
42
|
-
var resumeDataSchema = new _normalizr.schema.Entity('resumeData');
|
|
43
|
-
exports.resumeDataSchema = resumeDataSchema;
|
|
44
|
-
var sessionItemResultSchema = new _normalizr.schema.Entity('sessionItemResults');
|
|
45
|
-
exports.sessionItemResultSchema = sessionItemResultSchema;
|
|
46
|
-
var sessionItemSchema = new _normalizr.schema.Entity('sessionItems');
|
|
47
|
-
exports.sessionItemSchema = sessionItemSchema;
|
|
48
|
-
var stimulusSchema = new _normalizr.schema.Entity('stimuli');
|
|
23
|
+
var shareBankSchema = exports.shareBankSchema = new _normalizr.schema.Entity('sharedBanks');
|
|
24
|
+
var quizSessionResultSchema = exports.quizSessionResultSchema = new _normalizr.schema.Entity('quizSessionResults');
|
|
25
|
+
var quizSessionSchema = exports.quizSessionSchema = new _normalizr.schema.Entity('quizSessions');
|
|
26
|
+
var quizEntrySchema = exports.quizEntrySchema = new _normalizr.schema.Entity('quizEntry');
|
|
27
|
+
var quizEntriesSchema = exports.quizEntriesSchema = new _normalizr.schema.Entity('quizEntries');
|
|
28
|
+
var resumeDataSchema = exports.resumeDataSchema = new _normalizr.schema.Entity('resumeData');
|
|
29
|
+
var sessionItemResultSchema = exports.sessionItemResultSchema = new _normalizr.schema.Entity('sessionItemResults');
|
|
30
|
+
var sessionItemSchema = exports.sessionItemSchema = new _normalizr.schema.Entity('sessionItems');
|
|
31
|
+
var stimulusSchema = exports.stimulusSchema = new _normalizr.schema.Entity('stimuli');
|
|
49
32
|
|
|
50
33
|
// =================
|
|
51
34
|
// relationships
|
|
52
35
|
// =================
|
|
53
|
-
|
|
36
|
+
|
|
54
37
|
bankEntrySchema.define({
|
|
55
38
|
entry: new _normalizr.schema.Union({
|
|
56
39
|
Item: itemSchema,
|
|
@@ -4,7 +4,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.ApiFeatureFlagInitializerComponent = exports.ApiFeatureFlagInitializer = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactRedux = require("../../react-redux.js");
|
|
10
10
|
var _propTypes = require("prop-types");
|
|
@@ -14,13 +14,12 @@ var _index = require("../shared/Card/index.js");
|
|
|
14
14
|
var _ref = /*#__PURE__*/_react.default.createElement(_index.Card, {
|
|
15
15
|
wrapped: true
|
|
16
16
|
}, /*#__PURE__*/_react.default.createElement(_Spinner.QuizzesSpinner, null));
|
|
17
|
-
var ApiFeatureFlagInitializerComponent = function ApiFeatureFlagInitializerComponent(props) {
|
|
17
|
+
var ApiFeatureFlagInitializerComponent = exports.ApiFeatureFlagInitializerComponent = function ApiFeatureFlagInitializerComponent(props) {
|
|
18
18
|
(0, _react.useEffect)(function () {
|
|
19
19
|
!props.loadedApiFeatures && props.getFeatures();
|
|
20
20
|
}, []);
|
|
21
21
|
return props.loadedApiFeatures ? props.children : _ref;
|
|
22
22
|
};
|
|
23
|
-
exports.ApiFeatureFlagInitializerComponent = ApiFeatureFlagInitializerComponent;
|
|
24
23
|
ApiFeatureFlagInitializerComponent.propTypes = {
|
|
25
24
|
children: _propTypes.node.isRequired,
|
|
26
25
|
getFeatures: _propTypes.func.isRequired,
|
|
@@ -37,5 +36,4 @@ var mapStateToProps = function mapStateToProps(state, ownProps) {
|
|
|
37
36
|
var mapDispatchToProps = {
|
|
38
37
|
getFeatures: _features.getFeatures
|
|
39
38
|
};
|
|
40
|
-
var ApiFeatureFlagInitializer = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ApiFeatureFlagInitializerComponent);
|
|
41
|
-
exports.ApiFeatureFlagInitializer = ApiFeatureFlagInitializer;
|
|
39
|
+
var ApiFeatureFlagInitializer = exports.ApiFeatureFlagInitializer = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ApiFeatureFlagInitializerComponent);
|
|
@@ -22,5 +22,4 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
22
22
|
closeModal: (0, _redux.bindActionCreators)(_modal.closeModal, dispatch)
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.default);
|
|
26
|
-
exports.default = _default;
|
|
25
|
+
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.default);
|
|
@@ -17,7 +17,7 @@ var _uiText = require("@instructure/ui-text");
|
|
|
17
17
|
var _uiHeading = require("@instructure/ui-heading");
|
|
18
18
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
19
19
|
var _quizCommon = require("@instructure/quiz-common");
|
|
20
|
-
var ConfirmationModal = /*#__PURE__*/function (_Component) {
|
|
20
|
+
var ConfirmationModal = exports.ConfirmationModal = /*#__PURE__*/function (_Component) {
|
|
21
21
|
(0, _inherits2.default)(ConfirmationModal, _Component);
|
|
22
22
|
var _super = (0, _createSuper2.default)(ConfirmationModal);
|
|
23
23
|
function ConfirmationModal() {
|
|
@@ -100,7 +100,6 @@ var ConfirmationModal = /*#__PURE__*/function (_Component) {
|
|
|
100
100
|
ConfirmationModal.displayName = "ConfirmationModal";
|
|
101
101
|
return ConfirmationModal;
|
|
102
102
|
}(_react.Component);
|
|
103
|
-
exports.ConfirmationModal = ConfirmationModal;
|
|
104
103
|
ConfirmationModal.propTypes = {
|
|
105
104
|
closeModal: _propTypes.default.func.isRequired,
|
|
106
105
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
@@ -125,5 +124,4 @@ ConfirmationModal.defaultProps = {
|
|
|
125
124
|
onContinue: null,
|
|
126
125
|
onCancel: null
|
|
127
126
|
};
|
|
128
|
-
var _default = ConfirmationModal;
|
|
129
|
-
exports.default = _default;
|
|
127
|
+
var _default = exports.default = ConfirmationModal;
|
|
@@ -24,7 +24,7 @@ var _dec, _class, _ImportFileSelector;
|
|
|
24
24
|
/** @jsx jsx */
|
|
25
25
|
var _ref = (0, _emotion.jsx)(_uiIcons.IconUploadLine, null);
|
|
26
26
|
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconCompleteLine, null);
|
|
27
|
-
var ImportFileSelector = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ImportFileSelector = /*#__PURE__*/function (_Component) {
|
|
27
|
+
var ImportFileSelector = exports.ImportFileSelector = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ImportFileSelector = /*#__PURE__*/function (_Component) {
|
|
28
28
|
(0, _inherits2.default)(ImportFileSelector, _Component);
|
|
29
29
|
var _super = (0, _createSuper2.default)(ImportFileSelector);
|
|
30
30
|
function ImportFileSelector() {
|
|
@@ -134,6 +134,4 @@ var ImportFileSelector = (_dec = (0, _emotion.withStyle)(_styles.default, _theme
|
|
|
134
134
|
acceptAttribute: _propTypes.default.string.isRequired,
|
|
135
135
|
styles: _propTypes.default.object
|
|
136
136
|
}, _ImportFileSelector)) || _class);
|
|
137
|
-
exports.
|
|
138
|
-
var _default = ImportFileSelector;
|
|
139
|
-
exports.default = _default;
|
|
137
|
+
var _default = exports.default = ImportFileSelector;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.ImportModal = void 0;
|
|
6
7
|
exports.callProgress = callProgress;
|
|
8
|
+
exports.generateImportModalId = exports.default = void 0;
|
|
7
9
|
exports.progressValue = progressValue;
|
|
8
|
-
exports.default = exports.ImportModal = exports.generateImportModalId = void 0;
|
|
9
10
|
var _immutable = require("immutable");
|
|
10
11
|
var _reactRedux = require("../../react-redux.js");
|
|
11
12
|
var _modal = require("../../../common/actions/modal.js");
|
|
@@ -32,12 +33,11 @@ function progressValue(progressNumber) {
|
|
|
32
33
|
// If no progressNumber, then the callProgress counts is working on the first 50%
|
|
33
34
|
callProgress(callsToCheck, callsMade) * 50;
|
|
34
35
|
}
|
|
35
|
-
var generateImportModalId = function generateImportModalId(id) {
|
|
36
|
+
var generateImportModalId = exports.generateImportModalId = function generateImportModalId(id) {
|
|
36
37
|
return "".concat(id, "_").concat(_quizCommon.IMPORT_MODAL);
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
// Every component ought to pass in the importModalId to help keep track of which importModal is supposed to be open
|
|
40
|
-
exports.generateImportModalId = generateImportModalId;
|
|
41
41
|
var mapStateToProps = function mapStateToProps(state, props) {
|
|
42
42
|
return {
|
|
43
43
|
altText: state.getIn(['upload', 'altText'], ''),
|
|
@@ -59,7 +59,5 @@ var mapDispatchToProps = {
|
|
|
59
59
|
var mergeProps = function mergeProps(stateProps, dispatchProps, ownProps) {
|
|
60
60
|
return Object.assign({}, stateProps, dispatchProps, ownProps);
|
|
61
61
|
};
|
|
62
|
-
var ImportModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps, mergeProps)(_presenter.ImportModal);
|
|
63
|
-
exports.
|
|
64
|
-
var _default = ImportModal;
|
|
65
|
-
exports.default = _default;
|
|
62
|
+
var ImportModal = exports.ImportModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps, mergeProps)(_presenter.ImportModal);
|
|
63
|
+
var _default = exports.default = ImportModal;
|
|
@@ -28,7 +28,7 @@ var _index = _interopRequireDefault(require("./ImportFileSelector/index.js"));
|
|
|
28
28
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
29
29
|
var _dec, _class, _ImportModal;
|
|
30
30
|
/** @jsx jsx */
|
|
31
|
-
var ImportModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ImportModal = /*#__PURE__*/function (_Component) {
|
|
31
|
+
var ImportModal = exports.ImportModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ImportModal = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(ImportModal, _Component);
|
|
33
33
|
var _super = (0, _createSuper2.default)(ImportModal);
|
|
34
34
|
function ImportModal() {
|
|
@@ -367,6 +367,4 @@ var ImportModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
|
|
|
367
367
|
disableConfirm: false,
|
|
368
368
|
onClose: function onClose() {}
|
|
369
369
|
}, _ImportModal)) || _class);
|
|
370
|
-
exports.
|
|
371
|
-
var _default = ImportModal;
|
|
372
|
-
exports.default = _default;
|
|
370
|
+
var _default = exports.default = ImportModal;
|
|
@@ -15,7 +15,7 @@ var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
17
|
var _index = require("../../../taking/learnosity/index.js");
|
|
18
|
-
var LearnosityCalculator = /*#__PURE__*/function (_Component) {
|
|
18
|
+
var LearnosityCalculator = exports.LearnosityCalculator = /*#__PURE__*/function (_Component) {
|
|
19
19
|
(0, _inherits2.default)(LearnosityCalculator, _Component);
|
|
20
20
|
var _super = (0, _createSuper2.default)(LearnosityCalculator);
|
|
21
21
|
function LearnosityCalculator() {
|
|
@@ -136,7 +136,6 @@ var LearnosityCalculator = /*#__PURE__*/function (_Component) {
|
|
|
136
136
|
LearnosityCalculator.displayName = "LearnosityCalculator";
|
|
137
137
|
return LearnosityCalculator;
|
|
138
138
|
}(_react.Component);
|
|
139
|
-
exports.LearnosityCalculator = LearnosityCalculator;
|
|
140
139
|
LearnosityCalculator.propTypes = {
|
|
141
140
|
activeCalculatorId: _propTypes.default.string,
|
|
142
141
|
appendFeature: _propTypes.default.func.isRequired,
|
|
@@ -162,5 +161,4 @@ LearnosityCalculator.defaultProps = {
|
|
|
162
161
|
iceTopNavBarEnabled: false,
|
|
163
162
|
setCalculatorEnabled: function setCalculatorEnabled() {}
|
|
164
163
|
};
|
|
165
|
-
var _default = LearnosityCalculator;
|
|
166
|
-
exports.default = _default;
|
|
164
|
+
var _default = exports.default = LearnosityCalculator;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _default = {
|
|
7
|
+
var _default = exports.default = {
|
|
8
8
|
maxExamplesPerPage: 1,
|
|
9
9
|
propValues: {
|
|
10
10
|
isPinned: [true, false]
|
|
@@ -16,5 +16,4 @@ var _default = {
|
|
|
16
16
|
variant: 'icon'
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
19
|
+
};
|
|
@@ -5,7 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Pin = void 0;
|
|
7
7
|
var _presenter = require("./presenter.js");
|
|
8
|
-
var Pin = _presenter.Pin;
|
|
9
|
-
exports.
|
|
10
|
-
var _default = Pin;
|
|
11
|
-
exports.default = _default;
|
|
8
|
+
var Pin = exports.Pin = _presenter.Pin;
|
|
9
|
+
var _default = exports.default = Pin;
|
|
@@ -15,7 +15,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
16
16
|
var _uiIcons = require("@instructure/ui-icons");
|
|
17
17
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
18
|
-
var Pin = /*#__PURE__*/function (_Component) {
|
|
18
|
+
var Pin = exports.Pin = /*#__PURE__*/function (_Component) {
|
|
19
19
|
(0, _inherits2.default)(Pin, _Component);
|
|
20
20
|
var _super = (0, _createSuper2.default)(Pin);
|
|
21
21
|
function Pin() {
|
|
@@ -53,11 +53,9 @@ var Pin = /*#__PURE__*/function (_Component) {
|
|
|
53
53
|
Pin.displayName = "Pin";
|
|
54
54
|
return Pin;
|
|
55
55
|
}(_react.Component);
|
|
56
|
-
exports.Pin = Pin;
|
|
57
56
|
Pin.propTypes = {
|
|
58
57
|
isPinned: _propTypes.default.bool.isRequired,
|
|
59
58
|
pinSessionItem: _propTypes.default.func.isRequired,
|
|
60
59
|
position: _propTypes.default.number.isRequired
|
|
61
60
|
};
|
|
62
|
-
var _default = Pin;
|
|
63
|
-
exports.default = _default;
|
|
61
|
+
var _default = exports.default = Pin;
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _ref = /*#__PURE__*/_react.default.createElement("p", null, " This is a child element ");
|
|
10
|
-
var _default = {
|
|
10
|
+
var _default = exports.default = {
|
|
11
11
|
renderProps: function renderProps(props) {
|
|
12
12
|
return {
|
|
13
13
|
componentProps: {
|
|
@@ -16,5 +16,4 @@ var _default = {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
19
|
+
};
|
|
@@ -20,7 +20,7 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
20
20
|
var _ref = /*#__PURE__*/_react.default.createElement(_uiIcons.IconEyeSolid, {
|
|
21
21
|
variant: "icon-inverse"
|
|
22
22
|
});
|
|
23
|
-
var PreviewFrame = /*#__PURE__*/function (_Component) {
|
|
23
|
+
var PreviewFrame = exports.PreviewFrame = /*#__PURE__*/function (_Component) {
|
|
24
24
|
(0, _inherits2.default)(PreviewFrame, _Component);
|
|
25
25
|
var _super = (0, _createSuper2.default)(PreviewFrame);
|
|
26
26
|
function PreviewFrame() {
|
|
@@ -43,10 +43,8 @@ var PreviewFrame = /*#__PURE__*/function (_Component) {
|
|
|
43
43
|
PreviewFrame.displayName = "PreviewFrame";
|
|
44
44
|
return PreviewFrame;
|
|
45
45
|
}(_react.Component);
|
|
46
|
-
exports.PreviewFrame = PreviewFrame;
|
|
47
46
|
PreviewFrame.propTypes = {
|
|
48
47
|
children: _propTypes.default.element.isRequired,
|
|
49
48
|
onPreviewClose: _propTypes.default.func.isRequired
|
|
50
49
|
};
|
|
51
|
-
var _default = PreviewFrame;
|
|
52
|
-
exports.default = _default;
|
|
50
|
+
var _default = exports.default = PreviewFrame;
|
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _presenter = _interopRequireDefault(require("./presenter.js"));
|
|
9
|
-
var _default = _presenter.default;
|
|
10
|
-
exports.default = _default;
|
|
9
|
+
var _default = exports.default = _presenter.default;
|
|
@@ -22,7 +22,7 @@ var _uiRadioInput = require("@instructure/ui-radio-input");
|
|
|
22
22
|
var _uiCheckbox = require("@instructure/ui-checkbox");
|
|
23
23
|
var _dec, _class, _PrintFontSizeModal;
|
|
24
24
|
/** @jsx jsx */
|
|
25
|
-
var PrintFontSizeModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_PrintFontSizeModal = /*#__PURE__*/function (_Component) {
|
|
25
|
+
var PrintFontSizeModal = exports.PrintFontSizeModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_PrintFontSizeModal = /*#__PURE__*/function (_Component) {
|
|
26
26
|
(0, _inherits2.default)(PrintFontSizeModal, _Component);
|
|
27
27
|
var _super = (0, _createSuper2.default)(PrintFontSizeModal);
|
|
28
28
|
function PrintFontSizeModal() {
|
|
@@ -170,6 +170,4 @@ var PrintFontSizeModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme
|
|
|
170
170
|
isOpen: false,
|
|
171
171
|
persistedPrintFontSize: 'medium'
|
|
172
172
|
}, _PrintFontSizeModal)) || _class);
|
|
173
|
-
exports.
|
|
174
|
-
var _default = PrintFontSizeModal;
|
|
175
|
-
exports.default = _default;
|
|
173
|
+
var _default = exports.default = PrintFontSizeModal;
|
|
@@ -22,5 +22,4 @@ var mapDispatchToProps = {
|
|
|
22
22
|
setStoredRCEConfig: _rce2.setStoredRCEConfig
|
|
23
23
|
};
|
|
24
24
|
var RceConfigProvider = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.default);
|
|
25
|
-
var _default = RceConfigProvider;
|
|
26
|
-
exports.default = _default;
|
|
25
|
+
var _default = exports.default = RceConfigProvider;
|
|
@@ -22,7 +22,7 @@ var shouldAlertUser = function shouldAlertUser() {
|
|
|
22
22
|
var shouldSetEventToQuizLog = function shouldSetEventToQuizLog() {
|
|
23
23
|
return (0, _windowChecks.isQuizTaking)();
|
|
24
24
|
};
|
|
25
|
-
var handleError = function handleError(quizLogMessage) {
|
|
25
|
+
var handleError = exports.handleError = function handleError(quizLogMessage) {
|
|
26
26
|
if (shouldAlertUser()) {
|
|
27
27
|
alertTheUser(getAlertMessage());
|
|
28
28
|
}
|
|
@@ -30,8 +30,6 @@ var handleError = function handleError(quizLogMessage) {
|
|
|
30
30
|
setEventToQuizLog(quizLogMessage);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
var setEventToQuizLog = function setEventToQuizLog(message) {
|
|
33
|
+
var setEventToQuizLog = exports.setEventToQuizLog = function setEventToQuizLog(message) {
|
|
35
34
|
_reduxStore.default.dispatch((0, _rce.setRCEError)(message));
|
|
36
|
-
};
|
|
37
|
-
exports.setEventToQuizLog = setEventToQuizLog;
|
|
35
|
+
};
|
|
@@ -4,30 +4,25 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.userAlertMsgTaking = exports.userAlertMsgBuilding = exports.quizLogMsgInvalidParams = exports.quizLogMsgFailedConfigFetch = exports.quizLogMsgErrorDuringTaking = void 0;
|
|
8
8
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
9
9
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
10
|
-
var quizLogMsgErrorDuringTaking = function quizLogMsgErrorDuringTaking(stem) {
|
|
10
|
+
var quizLogMsgErrorDuringTaking = exports.quizLogMsgErrorDuringTaking = function quizLogMsgErrorDuringTaking(stem) {
|
|
11
11
|
var normalizedStem = stem !== null && stem !== void 0 ? stem : 'Unknown stem';
|
|
12
12
|
var extractedText = (0, _quizInteractions.extractTextFromHtml)(normalizedStem);
|
|
13
13
|
return (0, _formatMessage.default)('Error while answering "{stem}": Full functionality of the Rich Content Editor may not have been available to the user.', {
|
|
14
14
|
stem: extractedText
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
var quizLogMsgInvalidParams = function quizLogMsgInvalidParams() {
|
|
17
|
+
var quizLogMsgInvalidParams = exports.quizLogMsgInvalidParams = function quizLogMsgInvalidParams() {
|
|
19
18
|
return (0, _formatMessage.default)('Error: Full functionality of the Rich Content Editor may not have been available to the user.');
|
|
20
19
|
};
|
|
21
|
-
exports.
|
|
22
|
-
var quizLogMsgFailedConfigFetch = function quizLogMsgFailedConfigFetch() {
|
|
20
|
+
var quizLogMsgFailedConfigFetch = exports.quizLogMsgFailedConfigFetch = function quizLogMsgFailedConfigFetch() {
|
|
23
21
|
return (0, _formatMessage.default)('Error: Full functionality of the Rich Content Editor including accessibility features may not have been available to the user.');
|
|
24
22
|
};
|
|
25
|
-
exports.
|
|
26
|
-
var userAlertMsgTaking = function userAlertMsgTaking() {
|
|
23
|
+
var userAlertMsgTaking = exports.userAlertMsgTaking = function userAlertMsgTaking() {
|
|
27
24
|
return (0, _formatMessage.default)('The Rich Content Editor has encountered an issue. It has been logged for your instructor to review. Please refresh and try again.');
|
|
28
25
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var userAlertMsgBuilding = function userAlertMsgBuilding() {
|
|
26
|
+
var userAlertMsgBuilding = exports.userAlertMsgBuilding = function userAlertMsgBuilding() {
|
|
31
27
|
return (0, _formatMessage.default)('The Rich Content Editor has encountered an issue. Please refresh and try again.');
|
|
32
|
-
};
|
|
33
|
-
exports.userAlertMsgBuilding = userAlertMsgBuilding;
|
|
28
|
+
};
|