@instructure/quiz-core 20.31.1 → 20.31.2-snapshot.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/banks/components/AddToBankModal/index.js +0 -2
- package/es/banks/components/AddToBankModal/presenter.js +27 -33
- package/es/common/components/resources/entry/EntrySave/index.js +0 -2
- package/es/common/components/resources/entry/EntrySave/presenter.js +1 -3
- package/es/common/components/resources/item/ItemEdit/index.js +0 -1
- package/es/common/components/resources/item/ItemEdit/presenter.js +0 -2
- package/es/common/components/shared/PrintTrigger/index.js +0 -2
- package/es/common/components/shared/PrintTrigger/presenter.js +1 -3
- package/es/common/selectors/calculator.js +0 -4
- package/es/common/util/interactionTypePropsHelper.js +3 -4
- package/lib/banks/api/bankEntries.js +24 -13
- package/lib/banks/api/banks.js +26 -15
- package/lib/banks/api/copyingBanksPoller.js +4 -2
- package/lib/banks/api/tagAssociations.js +8 -5
- package/lib/banks/components/AddBankEntryModal/index.js +4 -2
- package/lib/banks/components/AddBankEntryModal/presenter.js +4 -2
- package/lib/banks/components/AddToBankModal/index.js +3 -4
- package/lib/banks/components/AddToBankModal/presenter.js +31 -35
- package/lib/banks/components/AsyncSearch/index.js +4 -2
- package/lib/banks/components/Bank/index.js +5 -3
- package/lib/banks/components/Bank/presenter.js +4 -2
- package/lib/banks/components/Bank/styles.js +2 -1
- package/lib/banks/components/Bank/theme.js +2 -1
- package/lib/banks/components/BankEntriesList/index.js +3 -2
- package/lib/banks/components/BankEntriesList/presenter.js +4 -2
- package/lib/banks/components/BankEntriesList/styles.js +2 -1
- package/lib/banks/components/BankEntriesList/theme.js +2 -1
- package/lib/banks/components/BankEntry/index.js +4 -2
- package/lib/banks/components/BankEntry/presenter.js +4 -2
- package/lib/banks/components/BankEntry/styles.js +2 -1
- package/lib/banks/components/BankEntry/theme.js +2 -1
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +3 -2
- package/lib/banks/components/BankEntryRow/index.js +2 -1
- package/lib/banks/components/BankEntryRow/presenter.js +4 -2
- package/lib/banks/components/BankEntryRow/styles.js +2 -1
- package/lib/banks/components/BankEntryRow/theme.js +2 -1
- package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -7
- package/lib/banks/components/BankSearch/index.js +2 -1
- package/lib/banks/components/BankSearch/presenter.js +4 -2
- package/lib/banks/components/BankSearch/styles.js +2 -1
- package/lib/banks/components/BankSearch/theme.js +2 -1
- package/lib/banks/components/Banks/index.js +4 -2
- package/lib/banks/components/Banks/presenter.js +4 -2
- package/lib/banks/components/Banks/styles.js +2 -1
- package/lib/banks/components/Banks/theme.js +2 -1
- package/lib/banks/components/BanksList/index.js +4 -3
- package/lib/banks/components/BanksList/presenter.js +4 -2
- package/lib/banks/components/BanksList/styles.js +2 -1
- package/lib/banks/components/BanksList/theme.js +2 -1
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +3 -2
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +4 -2
- package/lib/banks/components/CreateBankModal/index.js +2 -1
- package/lib/banks/components/CreateBankModal/presenter.js +4 -2
- package/lib/banks/components/CreateBankModal/styles.js +2 -1
- package/lib/banks/components/CreateBankModal/theme.js +2 -1
- package/lib/banks/components/EditBankModal/index.js +2 -1
- package/lib/banks/components/EditBankModal/presenter.js +4 -2
- package/lib/banks/components/EditBankModal/styles.js +2 -1
- package/lib/banks/components/EditBankModal/theme.js +2 -1
- package/lib/banks/components/HeaderBreadCrumb/index.js +4 -2
- package/lib/banks/components/HeaderMenu/index.js +2 -1
- package/lib/banks/components/HeaderMenu/presenter.js +4 -2
- package/lib/banks/components/HeaderMenu/styles.js +2 -1
- package/lib/banks/components/HeaderMenu/theme.js +2 -1
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +3 -2
- package/lib/banks/components/NavWrapper/index.js +2 -1
- package/lib/banks/components/NavWrapper/presenter.js +2 -1
- package/lib/banks/components/NavWrapper/styles.js +2 -1
- package/lib/banks/components/NavWrapper/theme.js +2 -1
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +2 -1
- package/lib/banks/components/SharingModal/RootAccountSharing.js +4 -2
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +4 -2
- package/lib/banks/components/SharingModal/ShareList/styles.js +2 -1
- package/lib/banks/components/SharingModal/index.js +2 -1
- package/lib/banks/components/SharingModal/presenter.js +4 -2
- package/lib/banks/components/SharingModal/styles.js +2 -1
- package/lib/banks/components/SharingModal/theme.js +2 -1
- package/lib/building/api/items.js +1 -1
- package/lib/building/api/qtiImports.js +9 -5
- package/lib/building/api/quizEntries.js +10 -9
- package/lib/building/api/quizzes.js +15 -15
- package/lib/building/api/stimuli.js +1 -1
- package/lib/building/components/QTIImportModal/index.js +9 -5
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -1
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +9 -5
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +4 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -1
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -1
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +9 -5
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +4 -2
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -1
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -1
- package/lib/building/components/layout/Sidebar/index.js +9 -5
- package/lib/building/components/layout/Sidebar/presenter.js +4 -2
- package/lib/building/components/layout/Sidebar/styles.js +2 -1
- package/lib/building/components/layout/Sidebar/theme.js +2 -1
- package/lib/building/components/layout/header/BuildingButtons/index.js +5 -3
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +4 -2
- package/lib/building/components/layout/header/BuildingButtons/styles.js +2 -1
- package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -1
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +4 -2
- package/lib/building/components/resources/ActionButtons/index.js +4 -2
- package/lib/building/components/resources/ActionButtons/presenter.js +4 -2
- package/lib/building/components/resources/ActionButtons/styles.js +2 -1
- package/lib/building/components/resources/ActionButtons/theme.js +2 -1
- package/lib/building/components/resources/AddToBankOptions/index.js +4 -2
- package/lib/building/components/resources/AddToBankOptions/styles.js +2 -1
- package/lib/building/components/resources/AddToBankOptions/theme.js +2 -1
- package/lib/building/components/resources/BanksTray/index.js +4 -2
- package/lib/building/components/resources/BanksTray/presenter.js +4 -2
- package/lib/building/components/resources/DeleteStimulusModal/index.js +4 -2
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +4 -2
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -1
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -1
- package/lib/building/components/resources/ItemFeedbackModal/index.js +4 -2
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +4 -2
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -1
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -1
- package/lib/building/components/resources/MoveImmutableModal/index.js +4 -2
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -2
- package/lib/building/components/resources/quiz/editButton/EditButton.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +3 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +4 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +4 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +2 -1
- package/lib/building/components/resources/quiz/instructions/Show/index.js +4 -2
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -1
- package/lib/building/components/resources/quiz/title/Edit/index.js +4 -2
- package/lib/building/components/resources/quiz/title/Edit/styles.js +2 -1
- package/lib/building/components/resources/quiz/title/Edit/theme.js +2 -1
- package/lib/building/components/resources/quiz/title/Show/index.js +4 -2
- package/lib/building/components/resources/quiz/title/Show/styles.js +2 -1
- package/lib/building/components/resources/quiz/title/Show/theme.js +2 -1
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +3 -2
- package/lib/building/components/resources/quiz/title/Title/index.js +4 -2
- package/lib/building/components/resources/quiz/title/Title/presenter.js +4 -2
- package/lib/building/components/resources/quiz/title/Title/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +4 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +2 -1
- package/lib/common/actions/alerts.js +2 -2
- package/lib/common/actions/analyses.js +7 -7
- package/lib/common/actions/bankEntries.js +5 -3
- package/lib/common/actions/bankSearch.js +10 -6
- package/lib/common/actions/banks.js +14 -8
- package/lib/common/actions/config.js +1 -1
- package/lib/common/actions/editing.js +1 -1
- package/lib/common/actions/errorsShowing.js +1 -1
- package/lib/common/actions/grading.js +2 -2
- package/lib/common/actions/modal.js +3 -3
- package/lib/common/actions/modifications.js +29 -29
- package/lib/common/actions/printing.js +1 -1
- package/lib/common/actions/quizExport.js +3 -2
- package/lib/common/actions/quizSessionEvents.js +3 -2
- package/lib/common/actions/quizSessionResults.js +3 -2
- package/lib/common/actions/quizSessions.js +13 -8
- package/lib/common/actions/quizzes.js +14 -8
- package/lib/common/actions/rce.js +8 -5
- package/lib/common/actions/regrading.js +1 -1
- package/lib/common/actions/reporting.js +1 -1
- package/lib/common/actions/scrolling.js +1 -1
- package/lib/common/actions/sessionItemResults.js +3 -2
- package/lib/common/actions/sessionItems.js +3 -2
- package/lib/common/actions/sharedBanks.js +8 -5
- package/lib/common/actions/sidebar.js +1 -1
- package/lib/common/actions/tagAssociations.js +17 -9
- package/lib/common/actions/taking.js +38 -20
- package/lib/common/actions/ui.js +20 -11
- package/lib/common/actions/upload.js +11 -6
- package/lib/common/api/callHandlers.js +46 -25
- package/lib/common/api/camelizeHelpers.js +4 -2
- package/lib/common/api/features.js +3 -2
- package/lib/common/api/fileUpload.js +3 -2
- package/lib/common/api/getPersistenceActions.js +2 -1
- package/lib/common/api/helpers.js +10 -7
- package/lib/common/api/interactionTypes.js +3 -2
- package/lib/common/api/quizSessions.js +26 -17
- package/lib/common/api/quizzes.js +2 -2
- package/lib/common/api/schema.js +37 -20
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +5 -3
- package/lib/common/components/ConfirmationModal/index.js +2 -1
- package/lib/common/components/ConfirmationModal/presenter.js +4 -2
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +4 -2
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -1
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -1
- package/lib/common/components/ImportModal/index.js +7 -5
- package/lib/common/components/ImportModal/presenter.js +4 -2
- package/lib/common/components/ImportModal/styles.js +2 -1
- package/lib/common/components/ImportModal/theme.js +2 -1
- package/lib/common/components/LearnosityCalculator/index.js +4 -2
- package/lib/common/components/Pin/Pin.examples.js +3 -2
- package/lib/common/components/Pin/index.js +4 -2
- package/lib/common/components/Pin/presenter.js +4 -2
- package/lib/common/components/PreviewFrame/examples.config.js +3 -2
- package/lib/common/components/PreviewFrame/index.js +4 -2
- package/lib/common/components/PrintFontSizeModal/index.js +2 -1
- package/lib/common/components/PrintFontSizeModal/presenter.js +4 -2
- package/lib/common/components/PrintFontSizeModal/styles.js +2 -1
- package/lib/common/components/PrintFontSizeModal/theme.js +2 -1
- package/lib/common/components/RceConfigProvider/index.js +2 -1
- package/lib/common/components/RceConfigProvider/presenter.js +2 -1
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -3
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -7
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +3 -2
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -2
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -4
- package/lib/common/components/SDKApp/index.js +7 -4
- package/lib/common/components/SDKApp/styles.js +2 -1
- package/lib/common/components/SDKHeaderCalculator.js +4 -2
- package/lib/common/components/SDKMenuButton.js +4 -2
- package/lib/common/components/SDKNavBar.js +4 -2
- package/lib/common/components/SDKTimer.js +4 -2
- package/lib/common/components/alerts/index.js +3 -2
- package/lib/common/components/alerts/presenter.js +4 -2
- package/lib/common/components/alerts/styles.js +2 -1
- package/lib/common/components/alerts/theme.js +2 -1
- package/lib/common/components/layout/Page/index.js +4 -2
- package/lib/common/components/layout/Page/styles.js +2 -1
- package/lib/common/components/layout/Page/theme.js +2 -1
- package/lib/common/components/layout/header/Calculator/index.js +4 -2
- package/lib/common/components/layout/header/Calculator/presenter.js +4 -2
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +7 -5
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +4 -2
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +2 -1
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -1
- package/lib/common/components/layout/header/Timer/index.js +2 -1
- package/lib/common/components/layout/header/Timer/presenter.js +4 -2
- package/lib/common/components/layout/header/Timer/styles.js +2 -1
- package/lib/common/components/layout/header/Timer/theme.js +2 -1
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +2 -1
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +2 -1
- package/lib/common/components/layout/navbar/index.js +4 -2
- package/lib/common/components/layout/navbar/styles.js +2 -1
- package/lib/common/components/layout/navbar/theme.js +2 -1
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +4 -2
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -1
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +4 -2
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +3 -2
- package/lib/common/components/layout/sidebar/Sidebar/index.js +4 -2
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +2 -1
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +9 -5
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +4 -2
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -1
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +4 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +4 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +4 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/index.js +9 -5
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -1
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +2 -1
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -2
- package/lib/common/components/resources/BankSelection/index.js +4 -3
- package/lib/common/components/resources/BankSelection/presenter.js +4 -2
- package/lib/common/components/resources/WarningWrapper/index.js +4 -2
- package/lib/common/components/resources/WarningWrapper/styles.js +2 -1
- package/lib/common/components/resources/WarningWrapper/theme.js +2 -1
- package/lib/common/components/resources/entry/EntrySave/index.js +3 -4
- package/lib/common/components/resources/entry/EntrySave/presenter.js +5 -5
- package/lib/common/components/resources/item/ItemEdit/index.js +3 -3
- package/lib/common/components/resources/item/ItemEdit/presenter.js +4 -4
- package/lib/common/components/resources/item/ItemOverride/index.js +2 -1
- package/lib/common/components/resources/item/ItemOverride/presenter.js +4 -2
- package/lib/common/components/resources/item/ItemShow/index.js +2 -1
- package/lib/common/components/resources/positionBox/PositionBox.js +4 -2
- package/lib/common/components/resources/positionBox/styles.js +2 -1
- package/lib/common/components/resources/positionBox/theme.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +5 -3
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +4 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -1
- package/lib/common/components/resources/quiz/info/QuizInfo.js +4 -2
- package/lib/common/components/resources/quiz/instructions/Instructions.js +4 -2
- package/lib/common/components/resources/quiz/instructions/styles.js +2 -1
- package/lib/common/components/resources/quiz/instructions/theme.js +2 -1
- package/lib/common/components/resources/quiz/title/Title.js +4 -2
- package/lib/common/components/resources/quiz/title/styles.js +2 -1
- package/lib/common/components/resources/quiz/title/theme.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Header/index.js +4 -2
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +3 -2
- package/lib/common/components/resources/quizSessionResult/Info/index.js +4 -2
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -1
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -1
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -1
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +4 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +2 -1
- package/lib/common/components/resources/stimulus/Stimulus/index.js +2 -1
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +4 -2
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +2 -1
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +4 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +4 -2
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +3 -2
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +2 -1
- package/lib/common/components/shared/Card/CardContent/index.js +4 -2
- package/lib/common/components/shared/Card/CardContent/styles.js +2 -1
- package/lib/common/components/shared/Card/CardContent/theme.js +2 -1
- package/lib/common/components/shared/Card/CardWrapper/index.js +4 -2
- package/lib/common/components/shared/Card/CardWrapper/styles.js +2 -1
- package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -1
- package/lib/common/components/shared/Card/index.js +2 -1
- package/lib/common/components/shared/ExpandButton/index.js +4 -2
- package/lib/common/components/shared/ExpandButton/styles.js +2 -1
- package/lib/common/components/shared/ExpandButton/theme.js +2 -1
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +3 -2
- package/lib/common/components/shared/FormattedDuration/index.js +11 -7
- package/lib/common/components/shared/IfFeature/index.js +5 -3
- package/lib/common/components/shared/IfFeature/presenter.js +4 -2
- package/lib/common/components/shared/InteractionTypes/index.js +2 -1
- package/lib/common/components/shared/InteractionTypes/presenter.js +4 -2
- package/lib/common/components/shared/InteractionTypes/styles.js +2 -1
- package/lib/common/components/shared/InteractionTypes/theme.js +2 -1
- package/lib/common/components/shared/PaginatedCollection/index.js +4 -3
- package/lib/common/components/shared/PaginatedCollection/presenter.js +4 -2
- package/lib/common/components/shared/PaginatedCollection/styles.js +2 -1
- package/lib/common/components/shared/PaginatedCollection/theme.js +2 -1
- package/lib/common/components/shared/Paginator/index.js +4 -2
- package/lib/common/components/shared/Paginator/styles.js +2 -1
- package/lib/common/components/shared/Paginator/theme.js +2 -1
- package/lib/common/components/shared/PrintTrigger/index.js +5 -5
- package/lib/common/components/shared/PrintTrigger/presenter.js +5 -5
- package/lib/common/components/shared/TagDisplay/index.js +4 -2
- package/lib/common/components/shared/TagDisplay/styles.js +2 -1
- package/lib/common/components/shared/TagSelect/index.js +2 -1
- package/lib/common/components/shared/TagSelect/presenter.js +4 -2
- package/lib/common/components/shared/TagSuggestSelect/index.js +2 -1
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +4 -2
- package/lib/common/components/shared/TagWrapper/index.js +2 -1
- package/lib/common/components/shared/TagWrapper/presenter.js +4 -2
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -2
- package/lib/common/components/shared/TimeUnitsInput/index.js +4 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +4 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -1
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -1
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +5 -3
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +4 -2
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +19 -17
- package/lib/common/components/shared/errors/Errors.js +4 -2
- package/lib/common/components/shared/errors/styles.js +2 -1
- package/lib/common/components/shared/errors/theme.js +2 -1
- package/lib/common/components/shared/file_selector/FileSelector.js +4 -2
- package/lib/common/components/shared/file_selector/styles.js +2 -1
- package/lib/common/components/shared/file_selector/theme.js +2 -1
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +2 -1
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +2 -1
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +3 -2
- package/lib/common/components/shared/functionality/makeEditable.js +5 -3
- package/lib/common/components/shared/functionality/makeScrollable.js +7 -4
- package/lib/common/components/shared/overlay/index.js +2 -1
- package/lib/common/components/shared/overlay/styles.js +2 -1
- package/lib/common/components/shared/overlay/theme.js +2 -1
- package/lib/common/components/shared/return_button/ReturnButton.js +4 -2
- package/lib/common/components/shared/spinner/Spinner.js +4 -2
- package/lib/common/components/shared/spinner/styles.js +2 -1
- package/lib/common/kinesis/QuizEventsLogger.js +7 -4
- package/lib/common/kinesis/StreamQueue.js +3 -2
- package/lib/common/kinesis/client.js +9 -5
- package/lib/common/kinesis/config.js +10 -6
- package/lib/common/kinesis/eventTypes.js +15 -8
- package/lib/common/middleware/alertTimerMiddleware.js +2 -1
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +2 -1
- package/lib/common/middleware/eventLoggerMiddleware.js +2 -1
- package/lib/common/middleware/persistedStorageMiddleware.js +2 -1
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +14 -8
- package/lib/common/react-redux.js +3 -2
- package/lib/common/records/Alert.js +4 -2
- package/lib/common/records/Bank.js +4 -2
- package/lib/common/records/BankEntry.js +4 -2
- package/lib/common/records/Item.js +4 -2
- package/lib/common/records/ItemAnalysis.js +4 -2
- package/lib/common/records/QtiImport.js +4 -2
- package/lib/common/records/Quiz.js +4 -2
- package/lib/common/records/QuizAnalysis.js +4 -2
- package/lib/common/records/QuizEntry.js +4 -2
- package/lib/common/records/QuizSession.js +4 -2
- package/lib/common/records/QuizSessionEvent.js +4 -2
- package/lib/common/records/QuizSessionResult.js +4 -2
- package/lib/common/records/Response.js +4 -2
- package/lib/common/records/SessionItem.js +4 -2
- package/lib/common/records/SessionItemResult.js +4 -2
- package/lib/common/records/Stimulus.js +4 -2
- package/lib/common/records/baseRecord.js +3 -2
- package/lib/common/reducers/alerts.js +3 -2
- package/lib/common/reducers/analyses.js +28 -15
- package/lib/common/reducers/bankEntries.js +3 -2
- package/lib/common/reducers/bankSearch.js +3 -2
- package/lib/common/reducers/banks.js +3 -2
- package/lib/common/reducers/calls.js +3 -2
- package/lib/common/reducers/config.js +3 -2
- package/lib/common/reducers/dragAndDrop.js +3 -2
- package/lib/common/reducers/editing.js +3 -2
- package/lib/common/reducers/errorsShowing.js +3 -2
- package/lib/common/reducers/features.js +3 -2
- package/lib/common/reducers/grading.js +3 -2
- package/lib/common/reducers/interactionTypes.js +3 -2
- package/lib/common/reducers/items.js +3 -2
- package/lib/common/reducers/modal.js +3 -2
- package/lib/common/reducers/moderation.js +3 -2
- package/lib/common/reducers/modifications.js +3 -2
- package/lib/common/reducers/outcomes.js +3 -2
- package/lib/common/reducers/printing.js +3 -2
- package/lib/common/reducers/qtiImports.js +3 -2
- package/lib/common/reducers/quizEntries.js +3 -2
- package/lib/common/reducers/quizExport.js +3 -2
- package/lib/common/reducers/quizSessionEvents.js +3 -2
- package/lib/common/reducers/quizSessionResults.js +3 -2
- package/lib/common/reducers/quizSessions.js +3 -2
- package/lib/common/reducers/quizzes.js +3 -2
- package/lib/common/reducers/rce.js +3 -2
- package/lib/common/reducers/regrading.js +3 -2
- package/lib/common/reducers/reporting.js +3 -2
- package/lib/common/reducers/scrolling.js +3 -2
- package/lib/common/reducers/sessionItemResults.js +3 -2
- package/lib/common/reducers/sessionItems.js +3 -2
- package/lib/common/reducers/sharedBanks.js +3 -2
- package/lib/common/reducers/sidebar.js +3 -2
- package/lib/common/reducers/stimuli.js +3 -2
- package/lib/common/reducers/tagAssociations.js +3 -2
- package/lib/common/reducers/taking.js +3 -2
- package/lib/common/reducers/ui.js +3 -2
- package/lib/common/reducers/upload.js +3 -2
- package/lib/common/selectors/analyses.js +24 -13
- package/lib/common/selectors/calculator.js +0 -4
- package/lib/common/selectors/interactionTypes.js +4 -2
- package/lib/common/selectors/qtiImports.js +3 -2
- package/lib/common/selectors/quizSessionResults.js +1 -1
- package/lib/common/selectors/quizSessions.js +14 -8
- package/lib/common/selectors/quizzes.js +25 -13
- package/lib/common/selectors/rce.js +6 -4
- package/lib/common/selectors/reporting.js +3 -2
- package/lib/common/selectors/sessionItemResults.js +4 -3
- package/lib/common/selectors/sessionItems.js +4 -3
- package/lib/common/selectors/taking.js +11 -8
- package/lib/common/selectors/ui.js +3 -2
- package/lib/common/util/CustomPropTypes.js +5 -3
- package/lib/common/util/ElementsForSelectors.js +3 -2
- package/lib/common/util/ExhaustivePaginatedFetcher.js +2 -1
- package/lib/common/util/Fetcher.js +4 -2
- package/lib/common/util/MultiWeakMap.js +3 -2
- package/lib/common/util/PaginatedFetcher.js +4 -2
- package/lib/common/util/ThunkQueue.js +3 -2
- package/lib/common/util/TimeRecordingService.js +4 -2
- package/lib/common/util/TimerService.js +6 -3
- package/lib/common/util/cachePreviousArgs.js +3 -2
- package/lib/common/util/callHelpers.js +10 -6
- package/lib/common/util/componentForItem.js +4 -2
- package/lib/common/util/debounceLatestPromise.js +3 -2
- package/lib/common/util/formatTimespan.js +3 -2
- package/lib/common/util/generateDisplayPositions.js +3 -2
- package/lib/common/util/httpHeaders.js +8 -5
- package/lib/common/util/immutableHelpers.js +8 -5
- package/lib/common/util/instUIMessages.js +3 -2
- package/lib/common/util/interactionTypeMetadata.js +6 -4
- package/lib/common/util/interactionTypePropsHelper.js +8 -7
- package/lib/common/util/interactionTypeRecordForItem.js +2 -1
- package/lib/common/util/jsonify.js +4 -3
- package/lib/common/util/keyboardClickable.js +2 -1
- package/lib/common/util/mathRenderingUtils.js +4 -2
- package/lib/common/util/maxContent.js +3 -2
- package/lib/common/util/noop.js +3 -2
- package/lib/common/util/persistedState.js +2 -1
- package/lib/common/util/printUtils.js +6 -4
- package/lib/common/util/rceChecker.js +3 -2
- package/lib/common/util/renderAlerts.js +3 -2
- package/lib/common/util/serializeEvent.js +3 -2
- package/lib/common/util/sessionStore.js +4 -2
- package/lib/common/util/valMap.js +3 -2
- package/lib/common/util/warningHelpers.js +16 -9
- package/lib/common/util/windowChecks.js +12 -7
- package/lib/common/util/withCachedArguments.js +3 -2
- package/lib/common/util/withDynamoPagination.js +3 -2
- package/lib/common/util/withStateCache.js +2 -1
- package/lib/config.js +5 -3
- package/lib/configureStore.js +2 -1
- package/lib/grading/api/updateResults.js +3 -2
- package/lib/index.js +401 -402
- package/lib/messages/LocalStorageAdapter.js +4 -2
- package/lib/messages/LocalStorageLimits.js +2 -1
- package/lib/messages/StorageExhaustionError.js +3 -2
- package/lib/messages/postMessageService.js +3 -2
- package/lib/messages/subjectHandlers/forwardMessage.js +2 -1
- package/lib/messages/subjectHandlers/lti.capabilities.js +2 -1
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -1
- package/lib/messages/subjectHandlers/lti.frameResize.js +2 -1
- package/lib/messages/subjectHandlers/lti.get_data.js +2 -1
- package/lib/messages/subjectHandlers/lti.put_data.js +2 -1
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +4 -2
- package/lib/moderating/api/quizSessions.js +1 -1
- package/lib/moderating/components/events/Event.js +4 -2
- package/lib/moderating/components/events/PageBlurredEvent.js +4 -2
- package/lib/moderating/components/events/PageFocusedEvent.js +4 -2
- package/lib/moderating/components/events/RCEEvent.js +4 -2
- package/lib/moderating/components/events/ResponseEvent.js +4 -2
- package/lib/moderating/components/events/SessionStartEvent.js +4 -2
- package/lib/moderating/components/events/styles.js +2 -1
- package/lib/moderating/components/events/theme.js +2 -1
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +2 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +4 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +4 -2
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +4 -2
- package/lib/moderating/components/resources/AccommodationsModal/index.js +4 -2
- package/lib/moderating/components/resources/ElapsedTime.js +4 -2
- package/lib/moderating/components/resources/ModerateTable/index.js +7 -4
- package/lib/moderating/components/resources/ModerateTable/presenter.js +4 -2
- package/lib/moderating/components/resources/ModerateTable/styles.js +2 -1
- package/lib/moderating/components/resources/ModerateTable/theme.js +2 -1
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +3 -2
- package/lib/moderating/components/resources/ModerateTableRow/index.js +3 -2
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +4 -2
- package/lib/moderating/components/resources/ModerateTableRow/story.js +2 -1
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +2 -1
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -1
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +5 -3
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +4 -2
- package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +2 -1
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -2
- package/lib/moderating/components/sidebar/ModerateTray/index.js +4 -3
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +4 -2
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +4 -3
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +4 -2
- package/lib/reduxStore.js +5 -4
- package/lib/reporting/api/fetchStudentAnalyses.js +3 -2
- package/lib/reporting/api/getAnalysesExport.js +3 -2
- package/lib/reporting/api/getAnalysesStatus.js +3 -2
- package/lib/reporting/api/getItemAnalyses.js +3 -2
- package/lib/reporting/api/getQuizAnalysis.js +3 -2
- package/lib/reporting/components/Caption/index.js +4 -2
- package/lib/reporting/components/Caption/styles.js +2 -1
- package/lib/reporting/components/Caption/theme.js +2 -1
- package/lib/reporting/components/MetricsListItem/index.js +4 -2
- package/lib/reporting/components/MetricsListItem/styles.js +2 -1
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +2 -1
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +4 -2
- package/lib/reporting/components/charts/CentileDistribution/styles.js +2 -1
- package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -1
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +4 -2
- package/lib/reporting/components/charts/Distribution/Distribution.js +2 -1
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -1
- package/lib/reporting/components/charts/Distribution/index.js +2 -1
- package/lib/reporting/components/charts/Distribution/presenter.js +7 -4
- package/lib/reporting/components/charts/Distribution/styles.js +2 -1
- package/lib/reporting/components/charts/Distribution/theme.js +2 -1
- package/lib/reporting/components/charts/Legend/index.js +4 -2
- package/lib/reporting/components/charts/Legend/styles.js +2 -1
- package/lib/reporting/components/charts/Legend/theme.js +2 -1
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -1
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +4 -2
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -1
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +3 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +2 -1
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +3 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +5 -3
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +2 -1
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +2 -1
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +4 -2
- package/lib/reporting/components/quizAnalysis/styles.js +2 -1
- package/lib/reporting/components/quizAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +6 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +7 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +6 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +5 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +3 -2
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +5 -3
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +4 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +5 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -1
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -1
- package/lib/reporting/components/resources/ReportCard/index.js +4 -2
- package/lib/reporting/components/resources/ReportCard/styles.js +2 -1
- package/lib/reporting/components/resources/ReportCard/theme.js +2 -1
- package/lib/reporting/components/resources/ReportList/index.js +4 -2
- package/lib/reporting/components/resources/ReportList/styles.js +2 -1
- package/lib/reporting/components/resources/ReportList/theme.js +2 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +3 -2
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +2 -1
- package/lib/reporting/components/resources/common/ExportButton/index.js +2 -1
- package/lib/reporting/components/resources/common/errorCodes.js +16 -9
- package/lib/reporting/components/resources/common/errorMessages.js +18 -10
- package/lib/reporting/components/resources/common/exportReports.js +3 -2
- package/lib/reporting/components/resources/common/generateReports.js +5 -3
- package/lib/reporting/components/resources/common/propTypes.js +34 -18
- package/lib/reporting/components/resources/common/utils.js +6 -4
- package/lib/taking/api/taking.js +16 -14
- package/lib/taking/learnosity/index.js +1 -1
- package/package.json +15 -14
|
@@ -21,7 +21,7 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
21
21
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
22
22
|
var _dec, _class, _BuildingSidebarItem;
|
|
23
23
|
/** @jsx jsx */
|
|
24
|
-
var BuildingSidebarItem =
|
|
24
|
+
var BuildingSidebarItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_BuildingSidebarItem = /*#__PURE__*/function (_Component) {
|
|
25
25
|
(0, _inherits2.default)(BuildingSidebarItem, _Component);
|
|
26
26
|
var _super = (0, _createSuper2.default)(BuildingSidebarItem);
|
|
27
27
|
function BuildingSidebarItem() {
|
|
@@ -135,4 +135,6 @@ var BuildingSidebarItem = exports.BuildingSidebarItem = (_dec = (0, _emotion.wit
|
|
|
135
135
|
inStimulus: false,
|
|
136
136
|
itemBody: ''
|
|
137
137
|
}, _BuildingSidebarItem)) || _class);
|
|
138
|
-
|
|
138
|
+
exports.BuildingSidebarItem = BuildingSidebarItem;
|
|
139
|
+
var _default = BuildingSidebarItem;
|
|
140
|
+
exports.default = _default;
|
|
@@ -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.default = exports.connectToDragSource = exports.mapDispatchToProps = exports.mapStateToProps = void 0;
|
|
8
8
|
var _redux = require("redux");
|
|
9
9
|
var _reactDnd = require("react-dnd");
|
|
10
10
|
var _reactRedux = require("../../../../../common/react-redux.js");
|
|
@@ -17,7 +17,7 @@ var _modifications = require("../../../../../common/actions/modifications.js");
|
|
|
17
17
|
var _presenter = _interopRequireDefault(require("./presenter.js"));
|
|
18
18
|
var _quizCommon = require("@instructure/quiz-common");
|
|
19
19
|
var _quizzes = require("../../../../../common/selectors/quizzes.js");
|
|
20
|
-
var mapStateToProps =
|
|
20
|
+
var mapStateToProps = function mapStateToProps() {
|
|
21
21
|
var state = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Map();
|
|
22
22
|
var props = arguments.length > 1 ? arguments[1] : void 0;
|
|
23
23
|
var activeQuiz = (0, _quizzes.getActiveQuiz)(state);
|
|
@@ -38,7 +38,8 @@ var mapStateToProps = exports.mapStateToProps = function mapStateToProps() {
|
|
|
38
38
|
quizId: activeQuiz.id // forDnD
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
exports.mapStateToProps = mapStateToProps;
|
|
42
|
+
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
42
43
|
return {
|
|
43
44
|
moveTemporaryQuizEntry: (0, _redux.bindActionCreators)(_modifications.moveTemporaryQuizEntry, dispatch),
|
|
44
45
|
// for DnD
|
|
@@ -51,11 +52,14 @@ var mapDispatchToProps = exports.mapDispatchToProps = function mapDispatchToProp
|
|
|
51
52
|
setUi: (0, _redux.bindActionCreators)(_ui.set, dispatch) // for DnD
|
|
52
53
|
};
|
|
53
54
|
};
|
|
54
|
-
|
|
55
|
+
exports.mapDispatchToProps = mapDispatchToProps;
|
|
56
|
+
var connectToDragSource = function connectToDragSource(Component) {
|
|
55
57
|
return (0, _reactDnd.DragSource)(
|
|
56
58
|
// ItemTypes.QUIZ_ENTRY associates this component drag source with a name
|
|
57
59
|
// dragSource specifies functions React DnD will call for events with this component
|
|
58
60
|
// collectDrag injects props into component
|
|
59
61
|
_dragAndDropUtils.ItemTypes.QUIZ_ENTRY, _dragAndDropUtils.dragSource, _dragAndDropUtils.collectDrag)(Component);
|
|
60
62
|
};
|
|
61
|
-
|
|
63
|
+
exports.connectToDragSource = connectToDragSource;
|
|
64
|
+
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _dragAndDropUtils.DropTargetCreator)(_quizCommon.SIDEBAR_ITEM_REF), connectToDragSource)(_presenter.default);
|
|
65
|
+
exports.default = _default;
|
|
@@ -21,7 +21,7 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
21
21
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
22
22
|
var _dec, _class, _BuildingStimulus;
|
|
23
23
|
/** @jsx jsx */
|
|
24
|
-
var BuildingStimulus =
|
|
24
|
+
var BuildingStimulus = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_BuildingStimulus = /*#__PURE__*/function (_Component) {
|
|
25
25
|
(0, _inherits2.default)(BuildingStimulus, _Component);
|
|
26
26
|
var _super = (0, _createSuper2.default)(BuildingStimulus);
|
|
27
27
|
function BuildingStimulus() {
|
|
@@ -143,4 +143,6 @@ var BuildingStimulus = exports.BuildingStimulus = (_dec = (0, _emotion.withStyle
|
|
|
143
143
|
dropIntoEmptyStimulus: false,
|
|
144
144
|
isOver: false
|
|
145
145
|
}, _BuildingStimulus)) || _class);
|
|
146
|
-
|
|
146
|
+
exports.BuildingStimulus = BuildingStimulus;
|
|
147
|
+
var _default = BuildingStimulus;
|
|
148
|
+
exports.default = _default;
|
|
@@ -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.default = exports.BuildingSidebar = exports.mapDispatchToProps = exports.mapStateToProps = void 0;
|
|
8
8
|
var _redux = require("redux");
|
|
9
9
|
var _reactRedux = require("../../../../common/react-redux.js");
|
|
10
10
|
var _quizCommon = require("@instructure/quiz-common");
|
|
@@ -19,7 +19,7 @@ var _quizEntries = require("../../../api/quizEntries.js");
|
|
|
19
19
|
var _modifications = require("../../../../common/actions/modifications.js");
|
|
20
20
|
var _quizzes = require("../../../../common/selectors/quizzes.js");
|
|
21
21
|
var _presenter = _interopRequireDefault(require("./presenter.js"));
|
|
22
|
-
var mapStateToProps =
|
|
22
|
+
var mapStateToProps = function mapStateToProps(state, props) {
|
|
23
23
|
var activeQuiz = (0, _quizzes.getActiveQuiz)(state);
|
|
24
24
|
var workingQuizEntriesIncludingTemp = activeQuiz.getWorkingQuizEntries();
|
|
25
25
|
var totalPointsPossible = (0, _quizzes.getTotalPointsPossible)(state, activeQuiz.id);
|
|
@@ -33,7 +33,8 @@ var mapStateToProps = exports.mapStateToProps = function mapStateToProps(state,
|
|
|
33
33
|
totalPointsPossible: totalPointsPossible
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
exports.mapStateToProps = mapStateToProps;
|
|
37
|
+
var mapDispatchToProps = function mapDispatchToProps(dispatch, props) {
|
|
37
38
|
return {
|
|
38
39
|
toggleSidebar: props.toggleSidebar || (0, _redux.bindActionCreators)(_sidebar.toggleSidebar, dispatch),
|
|
39
40
|
moveTemporaryQuizEntry: (0, _redux.bindActionCreators)(_modifications.moveTemporaryQuizEntry, dispatch),
|
|
@@ -53,5 +54,8 @@ var mapDispatchToProps = exports.mapDispatchToProps = function mapDispatchToProp
|
|
|
53
54
|
// Sidebar is a dropTarget to handle drops that occur on the sidebar,
|
|
54
55
|
// but not directly on a sidebarItem (such as at the top or bottom).
|
|
55
56
|
// it also uses the isOver prop to conditionally render dropZones on Build vs Sidebar
|
|
56
|
-
|
|
57
|
-
var
|
|
57
|
+
exports.mapDispatchToProps = mapDispatchToProps;
|
|
58
|
+
var BuildingSidebar = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _dragAndDropUtils.DropTargetCreator)(_quizCommon.SIDEBAR_ITEM_REF))(_presenter.default);
|
|
59
|
+
exports.BuildingSidebar = BuildingSidebar;
|
|
60
|
+
var _default = BuildingSidebar;
|
|
61
|
+
exports.default = _default;
|
|
@@ -25,7 +25,7 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
25
25
|
var _dec, _class, _BuildingSidebar;
|
|
26
26
|
/** @jsx jsx */
|
|
27
27
|
/* eslint "array-callback-return": "warn" */
|
|
28
|
-
var BuildingSidebar =
|
|
28
|
+
var BuildingSidebar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_BuildingSidebar = /*#__PURE__*/function (_Component) {
|
|
29
29
|
(0, _inherits2.default)(BuildingSidebar, _Component);
|
|
30
30
|
var _super = (0, _createSuper2.default)(BuildingSidebar);
|
|
31
31
|
function BuildingSidebar() {
|
|
@@ -220,4 +220,6 @@ var BuildingSidebar = exports.BuildingSidebar = (_dec = (0, _emotion.withStyle)(
|
|
|
220
220
|
isOver: false,
|
|
221
221
|
role: 'navigation'
|
|
222
222
|
}, _BuildingSidebar)) || _class);
|
|
223
|
-
|
|
223
|
+
exports.BuildingSidebar = BuildingSidebar;
|
|
224
|
+
var _default = BuildingSidebar;
|
|
225
|
+
exports.default = _default;
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.BuildingButtons = void 0;
|
|
9
8
|
exports.mapStateToProps = mapStateToProps;
|
|
9
|
+
exports.default = exports.BuildingButtons = void 0;
|
|
10
10
|
var _redux = require("redux");
|
|
11
11
|
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
12
12
|
var _reactRedux = require("../../../../../common/react-redux.js");
|
|
@@ -42,5 +42,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
42
42
|
openModal: (0, _redux.bindActionCreators)(modalActions.openModal.bind(modalActions, (0, _index.generateImportModalId)('qtiImport')), dispatch)
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
var BuildingButtons =
|
|
46
|
-
|
|
45
|
+
var BuildingButtons = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.BuildingButtons);
|
|
46
|
+
exports.BuildingButtons = BuildingButtons;
|
|
47
|
+
var _default = BuildingButtons;
|
|
48
|
+
exports.default = _default;
|
|
@@ -26,7 +26,7 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
26
26
|
var _dec, _class, _BuildingButtons;
|
|
27
27
|
/** @jsx jsx */
|
|
28
28
|
var _ref = (0, _emotion.jsx)(_uiIcons.IconSpeedGraderLine, null);
|
|
29
|
-
var BuildingButtons =
|
|
29
|
+
var BuildingButtons = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_BuildingButtons = /*#__PURE__*/function (_Component) {
|
|
30
30
|
(0, _inherits2.default)(BuildingButtons, _Component);
|
|
31
31
|
var _super = (0, _createSuper2.default)(BuildingButtons);
|
|
32
32
|
function BuildingButtons() {
|
|
@@ -378,4 +378,6 @@ var BuildingButtons = exports.BuildingButtons = (_dec = (0, _emotion.withStyle)(
|
|
|
378
378
|
id: 'MoreButton',
|
|
379
379
|
renderIcon: (0, _emotion.jsx)(_uiIcons.IconMoreSolid, null)
|
|
380
380
|
}, _BuildingButtons)) || _class);
|
|
381
|
-
|
|
381
|
+
exports.BuildingButtons = BuildingButtons;
|
|
382
|
+
var _default = BuildingButtons;
|
|
383
|
+
exports.default = _default;
|
|
@@ -9,10 +9,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactRedux = require("../../../../../common/react-redux.js");
|
|
10
10
|
var _reduxStore = _interopRequireDefault(require("../../../../../reduxStore.js"));
|
|
11
11
|
var _index = _interopRequireDefault(require("../BuildingButtons/index.js"));
|
|
12
|
-
var SDKBuildingButtons =
|
|
12
|
+
var SDKBuildingButtons = function SDKBuildingButtons(props) {
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
|
|
14
14
|
store: _reduxStore.default
|
|
15
15
|
}, /*#__PURE__*/_react.default.createElement(_index.default, props));
|
|
16
16
|
};
|
|
17
|
+
exports.SDKBuildingButtons = SDKBuildingButtons;
|
|
17
18
|
SDKBuildingButtons.displayName = 'SDKBuildingButtons';
|
|
18
|
-
var _default =
|
|
19
|
+
var _default = SDKBuildingButtons;
|
|
20
|
+
exports.default = _default;
|
|
@@ -23,5 +23,7 @@ function mapStateToProps(state) {
|
|
|
23
23
|
questionCopyEnabled: (0, _featureCheck.featureOn)('question_copy')
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
var ActionButtons =
|
|
27
|
-
|
|
26
|
+
var ActionButtons = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps), _disableDraggingOverride.default)(_presenter.ActionButtons);
|
|
27
|
+
exports.ActionButtons = ActionButtons;
|
|
28
|
+
var _default = ActionButtons;
|
|
29
|
+
exports.default = _default;
|
|
@@ -24,7 +24,7 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
24
24
|
var _dec, _class, _ActionButtons;
|
|
25
25
|
/** @jsx jsx */
|
|
26
26
|
var ScrollTargetButton = (0, _makeScrollable.default)(_uiButtons.IconButton);
|
|
27
|
-
var ActionButtons =
|
|
27
|
+
var ActionButtons = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ActionButtons = /*#__PURE__*/function (_Component) {
|
|
28
28
|
(0, _inherits2.default)(ActionButtons, _Component);
|
|
29
29
|
var _super = (0, _createSuper2.default)(ActionButtons);
|
|
30
30
|
function ActionButtons() {
|
|
@@ -161,4 +161,6 @@ var ActionButtons = exports.ActionButtons = (_dec = (0, _emotion.withStyle)(_sty
|
|
|
161
161
|
switchOnEditing: _noop.default,
|
|
162
162
|
shouldFocusOnMount: false
|
|
163
163
|
}, _ActionButtons)) || _class);
|
|
164
|
-
|
|
164
|
+
exports.ActionButtons = ActionButtons;
|
|
165
|
+
var _default = ActionButtons;
|
|
166
|
+
exports.default = _default;
|
|
@@ -22,7 +22,7 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
22
22
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
23
23
|
var _dec, _class, _AddToBankOptions;
|
|
24
24
|
/** @jsx jsx */
|
|
25
|
-
var AddToBankOptions =
|
|
25
|
+
var AddToBankOptions = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_AddToBankOptions = /*#__PURE__*/function (_Component) {
|
|
26
26
|
(0, _inherits2.default)(AddToBankOptions, _Component);
|
|
27
27
|
var _super = (0, _createSuper2.default)(AddToBankOptions);
|
|
28
28
|
function AddToBankOptions() {
|
|
@@ -100,4 +100,6 @@ var AddToBankOptions = exports.AddToBankOptions = (_dec = (0, _emotion.withStyle
|
|
|
100
100
|
}, _AddToBankOptions.defaultProps = {
|
|
101
101
|
focusFirstErrorField: function focusFirstErrorField() {}
|
|
102
102
|
}, _AddToBankOptions)) || _class);
|
|
103
|
-
|
|
103
|
+
exports.AddToBankOptions = AddToBankOptions;
|
|
104
|
+
var _default = AddToBankOptions;
|
|
105
|
+
exports.default = _default;
|
|
@@ -17,10 +17,12 @@ function mapStateToProps(state) {
|
|
|
17
17
|
trayTrigger: state.getIn(['ui', _quizCommon.BUILD_TRAY_BUTTON_REF])
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var BanksTray =
|
|
20
|
+
var BanksTray = (0, _reactRedux.connect)(mapStateToProps, {
|
|
21
21
|
newActiveBankEntry: _ui.newActiveBankEntry,
|
|
22
22
|
newActiveBank: _ui.newActiveBank,
|
|
23
23
|
clear: _ui.clear,
|
|
24
24
|
setUI: _ui.set
|
|
25
25
|
})(_presenter.BanksTray);
|
|
26
|
-
|
|
26
|
+
exports.BanksTray = BanksTray;
|
|
27
|
+
var _default = BanksTray;
|
|
28
|
+
exports.default = _default;
|
|
@@ -26,7 +26,7 @@ var _index3 = _interopRequireDefault(require("../../../../banks/components/Bank/
|
|
|
26
26
|
var _quizCommon = require("@instructure/quiz-common");
|
|
27
27
|
var _ref = /*#__PURE__*/_react.default.createElement("br", null);
|
|
28
28
|
var _ref2 = /*#__PURE__*/_react.default.createElement("br", null);
|
|
29
|
-
var BanksTray =
|
|
29
|
+
var BanksTray = /*#__PURE__*/function (_Component) {
|
|
30
30
|
(0, _inherits2.default)(BanksTray, _Component);
|
|
31
31
|
var _super = (0, _createSuper2.default)(BanksTray);
|
|
32
32
|
function BanksTray() {
|
|
@@ -152,6 +152,7 @@ var BanksTray = exports.BanksTray = /*#__PURE__*/function (_Component) {
|
|
|
152
152
|
BanksTray.displayName = "BanksTray";
|
|
153
153
|
return BanksTray;
|
|
154
154
|
}(_react.Component);
|
|
155
|
+
exports.BanksTray = BanksTray;
|
|
155
156
|
BanksTray.propTypes = {
|
|
156
157
|
activeBankId: _propTypes.default.string,
|
|
157
158
|
activeBankEntryId: _propTypes.default.string,
|
|
@@ -206,4 +207,5 @@ BanksTray.defaultProps = {
|
|
|
206
207
|
trayTrigger: null,
|
|
207
208
|
itemBanksScope: {}
|
|
208
209
|
};
|
|
209
|
-
var _default =
|
|
210
|
+
var _default = BanksTray;
|
|
211
|
+
exports.default = _default;
|
|
@@ -36,5 +36,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
36
36
|
withConfirm: (0, _redux.bindActionCreators)(_modal.withConfirm, dispatch)
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
var DeleteStimulusModal =
|
|
40
|
-
|
|
39
|
+
var DeleteStimulusModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.DeleteStimulusModal);
|
|
40
|
+
exports.DeleteStimulusModal = DeleteStimulusModal;
|
|
41
|
+
var _default = DeleteStimulusModal;
|
|
42
|
+
exports.default = _default;
|
|
@@ -29,7 +29,7 @@ var _dec, _class, _DeleteStimulusModal;
|
|
|
29
29
|
/** @jsx jsx */
|
|
30
30
|
var _ref = (0, _emotion.jsx)(_uiA11yContent.PresentationContent, null, (0, _emotion.jsx)("hr", null));
|
|
31
31
|
var _ref2 = (0, _emotion.jsx)(_uiA11yContent.PresentationContent, null, (0, _emotion.jsx)("hr", null));
|
|
32
|
-
var DeleteStimulusModal =
|
|
32
|
+
var DeleteStimulusModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_DeleteStimulusModal = /*#__PURE__*/function (_Component) {
|
|
33
33
|
(0, _inherits2.default)(DeleteStimulusModal, _Component);
|
|
34
34
|
var _super = (0, _createSuper2.default)(DeleteStimulusModal);
|
|
35
35
|
function DeleteStimulusModal() {
|
|
@@ -254,4 +254,6 @@ var DeleteStimulusModal = exports.DeleteStimulusModal = (_dec = (0, _emotion.wit
|
|
|
254
254
|
stimulusEntry: void 0,
|
|
255
255
|
quizId: void 0
|
|
256
256
|
}, _DeleteStimulusModal)) || _class);
|
|
257
|
-
|
|
257
|
+
exports.DeleteStimulusModal = DeleteStimulusModal;
|
|
258
|
+
var _default = DeleteStimulusModal;
|
|
259
|
+
exports.default = _default;
|
|
@@ -32,5 +32,7 @@ var mapDispatchToProps = {
|
|
|
32
32
|
changeItemFeedback: _modifications.changeItemFeedback,
|
|
33
33
|
setUi: _ui.set
|
|
34
34
|
};
|
|
35
|
-
var ItemFeedbackModal =
|
|
36
|
-
|
|
35
|
+
var ItemFeedbackModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.ItemFeedbackModal);
|
|
36
|
+
exports.ItemFeedbackModal = ItemFeedbackModal;
|
|
37
|
+
var _default = ItemFeedbackModal;
|
|
38
|
+
exports.default = _default;
|
|
@@ -23,7 +23,7 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
23
23
|
var _dec, _class, _ItemFeedbackModal;
|
|
24
24
|
/** @jsx jsx */
|
|
25
25
|
var _ref = (0, _emotion.jsx)("br", null);
|
|
26
|
-
var ItemFeedbackModal =
|
|
26
|
+
var ItemFeedbackModal = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ItemFeedbackModal = /*#__PURE__*/function (_Component) {
|
|
27
27
|
(0, _inherits2.default)(ItemFeedbackModal, _Component);
|
|
28
28
|
var _super = (0, _createSuper2.default)(ItemFeedbackModal);
|
|
29
29
|
function ItemFeedbackModal() {
|
|
@@ -130,4 +130,6 @@ var ItemFeedbackModal = exports.ItemFeedbackModal = (_dec = (0, _emotion.withSty
|
|
|
130
130
|
}, _ItemFeedbackModal.defaultProps = {
|
|
131
131
|
modalTrigger: null
|
|
132
132
|
}, _ItemFeedbackModal)) || _class);
|
|
133
|
-
|
|
133
|
+
exports.ItemFeedbackModal = ItemFeedbackModal;
|
|
134
|
+
var _default = ItemFeedbackModal;
|
|
135
|
+
exports.default = _default;
|
|
@@ -35,5 +35,7 @@ var mapDispatchToProps = {
|
|
|
35
35
|
moveImmutableQuizEntry: _quizEntries.moveImmutableQuizEntry,
|
|
36
36
|
setUI: _ui.set
|
|
37
37
|
};
|
|
38
|
-
var MoveImmutableModal =
|
|
39
|
-
|
|
38
|
+
var MoveImmutableModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.MoveImmutableModal);
|
|
39
|
+
exports.MoveImmutableModal = MoveImmutableModal;
|
|
40
|
+
var _default = MoveImmutableModal;
|
|
41
|
+
exports.default = _default;
|
|
@@ -18,7 +18,7 @@ var _uiText = require("@instructure/ui-text");
|
|
|
18
18
|
var _uiHeading = require("@instructure/ui-heading");
|
|
19
19
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
20
20
|
var _quizCommon = require("@instructure/quiz-common");
|
|
21
|
-
var MoveImmutableModal =
|
|
21
|
+
var MoveImmutableModal = /*#__PURE__*/function (_Component) {
|
|
22
22
|
(0, _inherits2.default)(MoveImmutableModal, _Component);
|
|
23
23
|
var _super = (0, _createSuper2.default)(MoveImmutableModal);
|
|
24
24
|
function MoveImmutableModal() {
|
|
@@ -89,6 +89,7 @@ var MoveImmutableModal = exports.MoveImmutableModal = /*#__PURE__*/function (_Co
|
|
|
89
89
|
MoveImmutableModal.displayName = "MoveImmutableModal";
|
|
90
90
|
return MoveImmutableModal;
|
|
91
91
|
}(_react.Component);
|
|
92
|
+
exports.MoveImmutableModal = MoveImmutableModal;
|
|
92
93
|
MoveImmutableModal.propTypes = {
|
|
93
94
|
closeModal: _propTypes.default.func.isRequired,
|
|
94
95
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
@@ -107,4 +108,5 @@ MoveImmutableModal.defaultProps = {
|
|
|
107
108
|
quizId: void 0,
|
|
108
109
|
stimulusQuizEntryId: void 0
|
|
109
110
|
};
|
|
110
|
-
var _default =
|
|
111
|
+
var _default = MoveImmutableModal;
|
|
112
|
+
exports.default = _default;
|
|
@@ -60,4 +60,5 @@ EditButton.propTypes = {
|
|
|
60
60
|
EditButton.defaultProps = {
|
|
61
61
|
screenreaderText: (0, _formatMessage.default)('Edit')
|
|
62
62
|
};
|
|
63
|
-
var _default =
|
|
63
|
+
var _default = (0, _makeScrollable.default)(EditButton);
|
|
64
|
+
exports.default = _default;
|
|
@@ -12,4 +12,5 @@ function mapStateToProps(state, props) {
|
|
|
12
12
|
appContainer: state.getIn(['ui', 'appContainer'])
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
var _default =
|
|
15
|
+
var _default = (0, _reactRedux.connect)(mapStateToProps, null)(_presenter.default);
|
|
16
|
+
exports.default = _default;
|
|
@@ -83,4 +83,5 @@ var QuizInstructionsEdit = (_dec = (0, _emotion.withStyle)(_styles.default, _the
|
|
|
83
83
|
appContainer: _CustomPropTypes.default.selectors.isRequired,
|
|
84
84
|
styles: _propTypes.default.object
|
|
85
85
|
}, _QuizInstructionsEdit)) || _class);
|
|
86
|
-
var _default =
|
|
86
|
+
var _default = (0, _componentWithOutsideClickEmotion.default)(QuizInstructionsEdit);
|
|
87
|
+
exports.default = _default;
|
package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _immutable = require("immutable");
|
|
9
9
|
var _Quiz = _interopRequireDefault(require("../../../../../../common/records/Quiz.js"));
|
|
10
|
-
var _default =
|
|
10
|
+
var _default = {
|
|
11
11
|
propValues: {
|
|
12
12
|
isEditing: [true, false]
|
|
13
13
|
},
|
|
@@ -26,4 +26,5 @@ var _default = exports.default = {
|
|
|
26
26
|
switchOnEditing: Function.prototype
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
};
|
|
29
|
+
};
|
|
30
|
+
exports.default = _default;
|
|
@@ -25,5 +25,7 @@ var mapDispatchToProps = {
|
|
|
25
25
|
saveQuizChange: _quizzes.saveQuizChange,
|
|
26
26
|
screenreaderNotification: _alerts.screenreaderNotification
|
|
27
27
|
};
|
|
28
|
-
var QuizInstructions =
|
|
29
|
-
|
|
28
|
+
var QuizInstructions = (0, _redux.compose)(_makeEditable.default, (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps))(_presenter.default);
|
|
29
|
+
exports.QuizInstructions = QuizInstructions;
|
|
30
|
+
var _default = QuizInstructions;
|
|
31
|
+
exports.default = _default;
|
|
@@ -26,7 +26,7 @@ var _dec, _class, _QuizInstructions;
|
|
|
26
26
|
// renders the editable quiz instructions
|
|
27
27
|
// input/display component
|
|
28
28
|
// ======================================
|
|
29
|
-
var QuizInstructions =
|
|
29
|
+
var QuizInstructions = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_QuizInstructions = /*#__PURE__*/function (_Component) {
|
|
30
30
|
(0, _inherits2.default)(QuizInstructions, _Component);
|
|
31
31
|
var _super = (0, _createSuper2.default)(QuizInstructions);
|
|
32
32
|
function QuizInstructions() {
|
|
@@ -183,4 +183,6 @@ var QuizInstructions = exports.QuizInstructions = (_dec = (0, _emotion.withStyle
|
|
|
183
183
|
}, _QuizInstructions.defaultProps = {
|
|
184
184
|
scrollKey: void 0
|
|
185
185
|
}, _QuizInstructions)) || _class);
|
|
186
|
-
|
|
186
|
+
exports.QuizInstructions = QuizInstructions;
|
|
187
|
+
var _default = QuizInstructions;
|
|
188
|
+
exports.default = _default;
|
|
@@ -25,7 +25,7 @@ var _dec, _class, _QuizInstructionsShow;
|
|
|
25
25
|
// has events that allow for toggling
|
|
26
26
|
// editing and hover which shows an overlay
|
|
27
27
|
// ==========================================
|
|
28
|
-
var QuizInstructionsShow =
|
|
28
|
+
var QuizInstructionsShow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_QuizInstructionsShow = /*#__PURE__*/function (_Component) {
|
|
29
29
|
(0, _inherits2.default)(QuizInstructionsShow, _Component);
|
|
30
30
|
var _super = (0, _createSuper2.default)(QuizInstructionsShow);
|
|
31
31
|
function QuizInstructionsShow() {
|
|
@@ -69,4 +69,6 @@ var QuizInstructionsShow = exports.QuizInstructionsShow = (_dec = (0, _emotion.w
|
|
|
69
69
|
contentLocked: false,
|
|
70
70
|
instructions: null
|
|
71
71
|
}, _QuizInstructionsShow)) || _class);
|
|
72
|
-
|
|
72
|
+
exports.QuizInstructionsShow = QuizInstructionsShow;
|
|
73
|
+
var _default = (0, _makeScrollable.default)(QuizInstructionsShow);
|
|
74
|
+
exports.default = _default;
|