@instructure/quiz-core 22.10.2 → 22.11.1-rc.88
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/api/bankEntries.js +1 -1
- package/es/banks/api/banks.js +19 -98
- package/es/banks/api/copyingBanksPoller.js +1 -1
- package/es/banks/api/tagAssociations.js +1 -1
- package/es/banks/components/AddBankEntryModal/presenter.js +1 -1
- package/es/banks/components/AddToBankModal/presenter.js +1 -1
- package/es/banks/components/AsyncSearch/index.js +1 -1
- package/es/banks/components/Bank/presenter.js +1 -1
- package/es/banks/components/BankEntry/presenter.js +1 -1
- package/es/banks/components/BankEntryRow/presenter.js +1 -1
- package/es/banks/components/BankSearch/presenter.js +1 -1
- package/es/banks/components/Banks/presenter.js +1 -1
- package/es/banks/components/BanksList/presenter.js +1 -1
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
- package/es/banks/components/CreateBankModal/presenter.js +1 -1
- package/es/banks/components/EditBankModal/presenter.js +1 -1
- package/es/banks/components/HeaderBreadCrumb/index.js +1 -1
- package/es/banks/components/HeaderMenu/presenter.js +1 -1
- package/es/banks/components/NavWrapper/presenter.js +1 -1
- package/es/banks/components/SharingModal/RootAccountSharing.js +1 -1
- package/es/banks/components/SharingModal/ShareList/index.js +1 -1
- package/es/banks/components/SharingModal/index.js +6 -3
- package/es/banks/components/SharingModal/presenter.js +208 -132
- package/es/building/api/items.js +121 -25
- package/es/building/api/quizEntries.js +79 -16
- package/es/building/api/quizzes.js +1 -1
- package/es/building/api/stimuli.js +1 -1
- package/es/building/components/QTIImportModal/index.js +1 -1
- package/es/building/components/layout/Sidebar/presenter.js +1 -1
- package/es/building/components/layout/header/BuildingButtons/presenter.js +1 -1
- package/es/building/components/resources/AddToBankOptions/index.js +1 -1
- package/es/building/components/resources/BanksTray/presenter.js +1 -1
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
- package/es/building/components/resources/MoveImmutableModal/presenter.js +1 -1
- package/es/building/components/resources/quiz/editButton/EditButton.js +1 -1
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +1 -1
- package/es/building/components/resources/quiz/instructions/Show/index.js +1 -1
- package/es/building/components/resources/quiz/title/Edit/index.js +1 -1
- package/es/building/components/resources/quiz/title/Title/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +22 -3
- package/es/common/actions/sharedBanks.js +13 -1
- package/es/common/actions/sharingModal.js +7 -0
- package/es/common/api/helpers.js +1 -1
- package/es/common/api/quizSessions.js +1 -1
- package/es/common/components/AccessCodeTextInput/index.js +1 -1
- package/es/common/components/ConfirmationModal/presenter.js +1 -1
- package/es/common/components/ImportModal/ImportFileSelector/index.js +1 -1
- package/es/common/components/ImportModal/presenter.js +1 -1
- package/es/common/components/Pin/presenter.js +1 -1
- package/es/common/components/PreviewFrame/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +1 -1
- package/es/common/components/RceConfigProvider/rceConfigErrorMessages.js +1 -1
- package/es/common/components/SDKApp/index.js +1 -1
- package/es/common/components/alerts/presenter.js +1 -1
- package/es/common/components/layout/Page/index.js +1 -1
- package/es/common/components/layout/header/Calculator/presenter.js +1 -1
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +1 -1
- package/es/common/components/layout/header/Timer/presenter.js +1 -1
- package/es/common/components/layout/navbar/index.js +1 -1
- package/es/common/components/layout/sidebar/PositionSummary/index.js +1 -1
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +1 -1
- package/es/common/components/layout/sidebar/Sidebar/index.js +1 -1
- package/es/common/components/layout/sidebar/SidebarItem/index.js +1 -1
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +1 -1
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +1 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +1 -1
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +1 -1
- package/es/common/components/resources/BankSelection/presenter.js +1 -1
- package/es/common/components/resources/WarningWrapper/index.js +1 -1
- package/es/common/components/resources/entry/EntrySave/presenter.js +1 -1
- package/es/common/components/resources/item/ItemEdit/presenter.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Body/index.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +135 -141
- package/es/common/components/resources/quiz/AddContent/Button/index.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +61 -73
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +128 -119
- package/es/common/components/resources/quizSessionResult/Header/index.js +1 -1
- package/es/common/components/resources/quizSessionResult/Info/index.js +1 -1
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +1 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShow/index.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -1
- package/es/common/components/shared/FormattedDuration/index.js +1 -1
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -1
- package/es/common/components/shared/InteractionTypes/index.js +1 -4
- package/es/common/components/shared/InteractionTypes/presenter.js +2 -4
- package/es/common/components/shared/Paginator/index.js +1 -1
- package/es/common/components/shared/PrintTrigger/presenter.js +1 -1
- package/es/common/components/shared/TagDisplay/index.js +1 -1
- package/es/common/components/shared/TagSelect/presenter.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +1 -1
- package/es/common/components/shared/TimeUnitsInput/index.js +1 -1
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +1 -1
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +1 -1
- package/es/common/components/shared/return_button/ReturnButton.js +1 -1
- package/es/common/components/shared/spinner/Spinner.js +1 -1
- package/es/common/middleware/sharedBanksMiddleware.js +243 -0
- package/es/common/records/Bank.js +1 -1
- package/es/common/records/Item.js +3 -2
- package/es/common/records/Quiz.js +1 -1
- package/es/common/records/QuizAnalysis.js +1 -1
- package/es/common/records/QuizEntry.js +8 -1
- package/es/common/records/Stimulus.js +1 -1
- package/es/common/reducers/sharingModal.js +17 -0
- package/es/common/util/Fetcher.js +1 -1
- package/es/common/util/TimerService.js +1 -1
- package/es/common/util/formatTimespan.js +1 -1
- package/es/common/util/interactionTypeMetadata.js +1 -1
- package/es/common/util/interactionTypePropsHelper.js +1 -1
- package/es/common/util/maxContent.js +1 -1
- package/es/common/util/useRemoteComponent.js +127 -0
- package/es/common/util/warningHelpers.js +1 -1
- package/es/common/util/withDynamoPagination.js +13 -2
- package/es/configureStore.js +4 -1
- package/es/grading/api/quizEntryRegrades.js +1 -1
- package/es/index.js +5 -3
- package/es/moderating/api/quizSessionEvents.js +4 -2
- package/es/moderating/components/events/PageBlurredEvent.js +1 -1
- package/es/moderating/components/events/PageFocusedEvent.js +1 -1
- package/es/moderating/components/events/ResponseEvent.js +1 -1
- package/es/moderating/components/events/SessionStartEvent.js +1 -1
- package/es/moderating/components/events/SessionSubmitEvent.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/index.js +1 -1
- package/es/moderating/components/resources/ElapsedTime.js +1 -1
- package/es/moderating/components/resources/EventDetails.js +1 -1
- package/es/moderating/components/resources/ModerateTable/presenter.js +1 -1
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
- package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +1 -1
- package/es/moderating/components/resources/util/renderEventSummary.js +1 -1
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +1 -1
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -1
- package/es/reporting/components/MetricsListItem/index.js +1 -1
- package/es/reporting/components/charts/CentileDistribution/presenter.js +1 -1
- package/es/reporting/components/charts/Distribution/presenter.js +1 -1
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +1 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -1
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
- package/es/reporting/components/resources/ReportCard/index.js +1 -1
- package/es/reporting/components/resources/ReportList/index.js +1 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
- package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
- package/es/reporting/components/resources/common/ExportButton/index.js +1 -1
- package/es/reporting/components/resources/common/errorMessages.js +1 -1
- package/es/reporting/components/resources/common/utils.js +1 -1
- package/es/taking/api/taking.js +1 -1
- package/lib/banks/api/bankEntries.js +1 -1
- package/lib/banks/api/banks.js +18 -97
- package/lib/banks/api/copyingBanksPoller.js +1 -1
- package/lib/banks/api/tagAssociations.js +1 -1
- package/lib/banks/components/AddBankEntryModal/presenter.js +1 -1
- package/lib/banks/components/AddToBankModal/presenter.js +1 -1
- package/lib/banks/components/AsyncSearch/index.js +1 -1
- package/lib/banks/components/Bank/presenter.js +1 -1
- package/lib/banks/components/BankEntry/presenter.js +1 -1
- package/lib/banks/components/BankEntryRow/presenter.js +1 -1
- package/lib/banks/components/BankSearch/presenter.js +1 -1
- package/lib/banks/components/Banks/presenter.js +1 -1
- package/lib/banks/components/BanksList/presenter.js +1 -1
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
- package/lib/banks/components/CreateBankModal/presenter.js +1 -1
- package/lib/banks/components/EditBankModal/presenter.js +1 -1
- package/lib/banks/components/HeaderBreadCrumb/index.js +1 -1
- package/lib/banks/components/HeaderMenu/presenter.js +1 -1
- package/lib/banks/components/NavWrapper/presenter.js +1 -1
- package/lib/banks/components/SharingModal/RootAccountSharing.js +1 -1
- package/lib/banks/components/SharingModal/ShareList/index.js +1 -1
- package/lib/banks/components/SharingModal/index.js +5 -2
- package/lib/banks/components/SharingModal/presenter.js +206 -130
- package/lib/building/api/items.js +121 -24
- package/lib/building/api/quizEntries.js +79 -15
- package/lib/building/api/quizzes.js +2 -2
- package/lib/building/api/stimuli.js +1 -1
- package/lib/building/components/QTIImportModal/index.js +1 -1
- package/lib/building/components/layout/Sidebar/presenter.js +1 -1
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +1 -1
- package/lib/building/components/resources/AddToBankOptions/index.js +1 -1
- package/lib/building/components/resources/BanksTray/presenter.js +1 -1
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +1 -1
- package/lib/building/components/resources/quiz/editButton/EditButton.js +1 -1
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +1 -1
- package/lib/building/components/resources/quiz/instructions/Show/index.js +1 -1
- package/lib/building/components/resources/quiz/title/Edit/index.js +1 -1
- package/lib/building/components/resources/quiz/title/Title/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +21 -2
- package/lib/common/actions/sharedBanks.js +13 -1
- package/lib/common/actions/sharingModal.js +13 -0
- package/lib/common/api/helpers.js +1 -1
- package/lib/common/api/quizSessions.js +1 -1
- package/lib/common/components/AccessCodeTextInput/index.js +1 -1
- package/lib/common/components/ConfirmationModal/presenter.js +1 -1
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +1 -1
- package/lib/common/components/ImportModal/presenter.js +1 -1
- package/lib/common/components/Pin/presenter.js +1 -1
- package/lib/common/components/PreviewFrame/index.js +1 -1
- package/lib/common/components/PrintFontSizeModal/presenter.js +1 -1
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +1 -1
- package/lib/common/components/SDKApp/index.js +2 -2
- package/lib/common/components/alerts/presenter.js +1 -1
- package/lib/common/components/layout/Page/index.js +1 -1
- package/lib/common/components/layout/header/Calculator/presenter.js +1 -1
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +1 -1
- package/lib/common/components/layout/header/Timer/presenter.js +1 -1
- package/lib/common/components/layout/navbar/index.js +1 -1
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +1 -1
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +1 -1
- package/lib/common/components/layout/sidebar/Sidebar/index.js +1 -1
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +1 -1
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +1 -1
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +1 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +1 -1
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +1 -1
- package/lib/common/components/resources/BankSelection/presenter.js +1 -1
- package/lib/common/components/resources/WarningWrapper/index.js +1 -1
- package/lib/common/components/resources/entry/EntrySave/presenter.js +1 -1
- package/lib/common/components/resources/item/ItemEdit/presenter.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +138 -141
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +61 -75
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +129 -119
- package/lib/common/components/resources/quizSessionResult/Header/index.js +1 -1
- package/lib/common/components/resources/quizSessionResult/Info/index.js +1 -1
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +1 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +1 -1
- package/lib/common/components/shared/FormattedDuration/index.js +1 -1
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -1
- package/lib/common/components/shared/InteractionTypes/index.js +1 -4
- package/lib/common/components/shared/InteractionTypes/presenter.js +2 -4
- package/lib/common/components/shared/Paginator/index.js +1 -1
- package/lib/common/components/shared/PrintTrigger/presenter.js +1 -1
- package/lib/common/components/shared/TagDisplay/index.js +1 -1
- package/lib/common/components/shared/TagSelect/presenter.js +1 -1
- package/lib/common/components/shared/TagWrapper/presenter.js +1 -1
- package/lib/common/components/shared/TimeUnitsInput/index.js +1 -1
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +1 -1
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +1 -1
- package/lib/common/components/shared/return_button/ReturnButton.js +1 -1
- package/lib/common/components/shared/spinner/Spinner.js +1 -1
- package/lib/common/middleware/sharedBanksMiddleware.js +250 -0
- package/lib/common/records/Bank.js +1 -1
- package/lib/common/records/Item.js +3 -2
- package/lib/common/records/Quiz.js +1 -1
- package/lib/common/records/QuizAnalysis.js +1 -1
- package/lib/common/records/QuizEntry.js +8 -1
- package/lib/common/records/Stimulus.js +1 -1
- package/lib/common/reducers/sharingModal.js +23 -0
- package/lib/common/util/Fetcher.js +1 -1
- package/lib/common/util/TimerService.js +1 -1
- package/lib/common/util/formatTimespan.js +1 -1
- package/lib/common/util/interactionTypeMetadata.js +1 -1
- package/lib/common/util/interactionTypePropsHelper.js +1 -1
- package/lib/common/util/maxContent.js +1 -1
- package/lib/common/util/useRemoteComponent.js +134 -0
- package/lib/common/util/warningHelpers.js +1 -1
- package/lib/common/util/withDynamoPagination.js +13 -2
- package/lib/configureStore.js +4 -1
- package/lib/grading/api/quizEntryRegrades.js +1 -1
- package/lib/index.js +37 -0
- package/lib/moderating/api/quizSessionEvents.js +4 -2
- package/lib/moderating/components/events/PageBlurredEvent.js +1 -1
- package/lib/moderating/components/events/PageFocusedEvent.js +1 -1
- package/lib/moderating/components/events/ResponseEvent.js +1 -1
- package/lib/moderating/components/events/SessionStartEvent.js +1 -1
- package/lib/moderating/components/events/SessionSubmitEvent.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/index.js +1 -1
- package/lib/moderating/components/resources/ElapsedTime.js +1 -1
- package/lib/moderating/components/resources/EventDetails.js +1 -1
- package/lib/moderating/components/resources/ModerateTable/presenter.js +1 -1
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
- package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +1 -1
- package/lib/moderating/components/resources/util/renderEventSummary.js +1 -1
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +1 -1
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -1
- package/lib/reporting/components/MetricsListItem/index.js +1 -1
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +1 -1
- package/lib/reporting/components/charts/Distribution/presenter.js +1 -1
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +1 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -1
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
- package/lib/reporting/components/resources/ReportCard/index.js +1 -1
- package/lib/reporting/components/resources/ReportList/index.js +1 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
- package/lib/reporting/components/resources/common/ExportButton/index.js +1 -1
- package/lib/reporting/components/resources/common/errorMessages.js +1 -1
- package/lib/reporting/components/resources/common/utils.js +1 -1
- package/lib/taking/api/taking.js +1 -1
- package/package.json +40 -32
|
@@ -1,125 +1,137 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
-
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
function isNativeReflectConstruct() {
|
|
10
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
11
|
-
if (Reflect.construct.sham) return false;
|
|
12
|
-
if (typeof Proxy === "function") return true;
|
|
13
|
-
try {
|
|
14
|
-
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
15
|
-
} catch (e) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
derived = _getPrototypeOf(derived);
|
|
20
|
-
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
22
4
|
/** @jsx jsx */
|
|
23
|
-
import { Component } from 'react';
|
|
24
|
-
import PropTypes from 'prop-types';
|
|
25
|
-
import { Popover } from '@instructure/ui-popover';
|
|
26
5
|
import { jsx } from '@instructure/emotion';
|
|
6
|
+
import { DELETED_QUIZ_ENTRY, withStyleOverrides } from '@instructure/quiz-common';
|
|
7
|
+
import { Popover } from '@instructure/ui-popover';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import React, { useCallback, useEffect, useRef } from 'react';
|
|
10
|
+
import { bindActionCreators } from 'redux';
|
|
11
|
+
import { createBulkItems } from '../../../../../../building/api/items';
|
|
12
|
+
import { createBulkQuizEntries } from '../../../../../../building/api/quizEntries';
|
|
13
|
+
import { addAlert } from '../../../../../../common/actions/alerts';
|
|
14
|
+
import { connect } from '../../../../../../common/react-redux';
|
|
27
15
|
import CustomPropTypes from '../../../../../util/CustomPropTypes';
|
|
28
16
|
import { onPhone, onTablet } from '../../../../../util/windowChecks';
|
|
29
|
-
import AddContentButton from '../Button';
|
|
30
17
|
import AddContentBody from '../Body';
|
|
31
|
-
import
|
|
18
|
+
import AddContentButton from '../Button';
|
|
32
19
|
import generateStyle from './styles';
|
|
33
20
|
import generateComponentTheme from './theme';
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
21
|
+
import { quizGenerationButtonPropTypes } from '../Body/presenter';
|
|
22
|
+
function UnstyledAddContentPopover(_ref) {
|
|
23
|
+
var _ref$allowStimulusCre = _ref.allowStimulusCreation,
|
|
24
|
+
allowStimulusCreation = _ref$allowStimulusCre === void 0 ? true : _ref$allowStimulusCre,
|
|
25
|
+
clearUi = _ref.clearUi,
|
|
26
|
+
isEditing = _ref.isEditing,
|
|
27
|
+
_ref$isMobile = _ref.isMobile,
|
|
28
|
+
isMobile = _ref$isMobile === void 0 ? onPhone() || onTablet() : _ref$isMobile,
|
|
29
|
+
openAddContentModal = _ref.openAddContentModal,
|
|
30
|
+
_ref$parentEntryId = _ref.parentEntryId,
|
|
31
|
+
parentEntryId = _ref$parentEntryId === void 0 ? null : _ref$parentEntryId,
|
|
32
|
+
position = _ref.position,
|
|
33
|
+
quizId = _ref.quizId,
|
|
34
|
+
shouldFocus = _ref.shouldFocus,
|
|
35
|
+
_ref$stimulusId = _ref.stimulusId,
|
|
36
|
+
stimulusId = _ref$stimulusId === void 0 ? null : _ref$stimulusId,
|
|
37
|
+
switchOffEditing = _ref.switchOffEditing,
|
|
38
|
+
switchOnEditing = _ref.switchOnEditing,
|
|
39
|
+
_ref$useStimulusTrigg = _ref.useStimulusTrigger,
|
|
40
|
+
useStimulusTrigger = _ref$useStimulusTrigg === void 0 ? false : _ref$useStimulusTrigg,
|
|
41
|
+
styles = _ref.styles,
|
|
42
|
+
_ref$slotProps = _ref.slotProps,
|
|
43
|
+
slotProps = _ref$slotProps === void 0 ? {} : _ref$slotProps;
|
|
44
|
+
var popoverTrigger = useRef(null);
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
if (shouldFocus) {
|
|
47
|
+
setTimeout(function () {
|
|
48
|
+
if (popoverTrigger.current) popoverTrigger.current.focus();
|
|
49
|
+
clearUi(DELETED_QUIZ_ENTRY);
|
|
50
|
+
}, 100);
|
|
40
51
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
_this2.props.switchOffEditing();
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(_this2, "storePopoverTriggerRef", function (b) {
|
|
49
|
-
_this2.popoverTrigger = b;
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(_this2, "renderPopoverButton", function () {
|
|
52
|
-
return jsx(Popover, {
|
|
53
|
-
on: "click",
|
|
54
|
-
onShowContent: _this2.showContent,
|
|
55
|
-
onHideContent: _this2.hideContent,
|
|
56
|
-
isShowingContent: _this2.props.isEditing,
|
|
57
|
-
shouldCloseOnEscape: true,
|
|
58
|
-
shouldContainFocus: true,
|
|
59
|
-
renderTrigger: _this2.renderAddContentButton()
|
|
60
|
-
}, jsx(AddContentBody, {
|
|
61
|
-
allowStimulusCreation: _this2.props.allowStimulusCreation,
|
|
62
|
-
onOpenBankTray: _this2.props.switchOffEditing,
|
|
63
|
-
onAddItem: _this2.props.switchOffEditing,
|
|
64
|
-
parentEntryId: _this2.props.parentEntryId,
|
|
65
|
-
position: _this2.props.position,
|
|
66
|
-
quizId: _this2.props.quizId,
|
|
67
|
-
stimulusId: _this2.props.stimulusId
|
|
68
|
-
}));
|
|
69
|
-
});
|
|
70
|
-
_defineProperty(_this2, "openAddContentModal", function () {
|
|
71
|
-
_this2.props.openAddContentModal({
|
|
72
|
-
allowStimulusCreation: _this2.props.allowStimulusCreation,
|
|
73
|
-
parentEntryId: _this2.props.parentEntryId,
|
|
74
|
-
position: _this2.props.position,
|
|
75
|
-
quizId: _this2.props.quizId,
|
|
76
|
-
stimulusId: _this2.props.stimulusId
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
return _this2;
|
|
52
|
+
}, [shouldFocus, clearUi]);
|
|
53
|
+
function handleGenerateWithAiClick() {
|
|
54
|
+
var _slotProps$quizGenera, _slotProps$quizGenera2;
|
|
55
|
+
slotProps === null || slotProps === void 0 || (_slotProps$quizGenera = slotProps.quizGenerationButton) === null || _slotProps$quizGenera === void 0 || (_slotProps$quizGenera2 = _slotProps$quizGenera.onClick) === null || _slotProps$quizGenera2 === void 0 || _slotProps$quizGenera2.call(_slotProps$quizGenera);
|
|
56
|
+
switchOffEditing();
|
|
80
57
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
58
|
+
var showContent = useCallback(function () {
|
|
59
|
+
switchOnEditing();
|
|
60
|
+
}, [switchOnEditing]);
|
|
61
|
+
var hideContent = useCallback(function () {
|
|
62
|
+
switchOffEditing();
|
|
63
|
+
}, [switchOffEditing]);
|
|
64
|
+
var storePopoverTriggerRef = useCallback(function (b) {
|
|
65
|
+
popoverTrigger.current = b;
|
|
66
|
+
}, []);
|
|
67
|
+
var renderAddContentButton = function renderAddContentButton() {
|
|
68
|
+
var onClick = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
69
|
+
return jsx(AddContentButton, {
|
|
70
|
+
ref: storePopoverTriggerRef,
|
|
71
|
+
onClick: onClick,
|
|
72
|
+
isEditing: isEditing,
|
|
73
|
+
useStimulusTrigger: useStimulusTrigger
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
var renderPopoverButton = function renderPopoverButton() {
|
|
77
|
+
var _slotProps$quizGenera3;
|
|
78
|
+
return jsx(Popover, {
|
|
79
|
+
on: "click",
|
|
80
|
+
placement: slotProps !== null && slotProps !== void 0 && (_slotProps$quizGenera3 = slotProps.quizGenerationButton) !== null && _slotProps$quizGenera3 !== void 0 && _slotProps$quizGenera3.visible ? 'end center' : 'bottom center',
|
|
81
|
+
onShowContent: showContent,
|
|
82
|
+
onHideContent: hideContent,
|
|
83
|
+
isShowingContent: isEditing,
|
|
84
|
+
shouldCloseOnEscape: true,
|
|
85
|
+
shouldContainFocus: true,
|
|
86
|
+
renderTrigger: renderAddContentButton()
|
|
87
|
+
}, jsx(AddContentBody, {
|
|
88
|
+
allowStimulusCreation: allowStimulusCreation,
|
|
89
|
+
onOpenBankTray: switchOffEditing,
|
|
90
|
+
onAddItem: switchOffEditing,
|
|
91
|
+
parentEntryId: parentEntryId,
|
|
92
|
+
position: position,
|
|
93
|
+
quizId: quizId,
|
|
94
|
+
stimulusId: stimulusId,
|
|
95
|
+
slotProps: {
|
|
96
|
+
quizGenerationButton: _objectSpread(_objectSpread({}, (slotProps === null || slotProps === void 0 ? void 0 : slotProps.quizGenerationButton) || {}), {}, {
|
|
97
|
+
onClick: handleGenerateWithAiClick
|
|
98
|
+
})
|
|
91
99
|
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
}
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
var openAddContentModalHandler = useCallback(function () {
|
|
103
|
+
openAddContentModal({
|
|
104
|
+
allowStimulusCreation: allowStimulusCreation,
|
|
105
|
+
parentEntryId: parentEntryId,
|
|
106
|
+
position: position,
|
|
107
|
+
quizId: quizId,
|
|
108
|
+
stimulusId: stimulusId
|
|
109
|
+
});
|
|
110
|
+
}, [openAddContentModal, allowStimulusCreation, parentEntryId, position, quizId, stimulusId]);
|
|
111
|
+
var renderModalButton = function renderModalButton() {
|
|
112
|
+
return renderAddContentButton(openAddContentModalHandler);
|
|
113
|
+
};
|
|
114
|
+
var borderLine = useStimulusTrigger ? null : jsx("div", {
|
|
115
|
+
css: styles.borderLine
|
|
116
|
+
});
|
|
117
|
+
var button = isMobile ? renderModalButton() : renderPopoverButton();
|
|
118
|
+
return jsx("div", {
|
|
119
|
+
css: styles.wrapper,
|
|
120
|
+
"data-automation": "sdk-build-add-content"
|
|
121
|
+
}, borderLine, button);
|
|
122
|
+
}
|
|
123
|
+
var AddContentPopoverWithStyles = withStyleOverrides(generateStyle, generateComponentTheme)(UnstyledAddContentPopover);
|
|
124
|
+
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
125
|
+
return {
|
|
126
|
+
addAlert: addAlert,
|
|
127
|
+
createBulkItems: bindActionCreators(createBulkItems, dispatch),
|
|
128
|
+
createBulkQuizEntries: bindActionCreators(createBulkQuizEntries, dispatch)
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export var AddContentPopover = connect(null, mapDispatchToProps)(AddContentPopoverWithStyles);
|
|
132
|
+
AddContentPopover.displayName = 'AddContentPopover';
|
|
133
|
+
AddContentPopover.componentId = "Quizzes".concat(AddContentPopover.displayName);
|
|
134
|
+
AddContentPopover.propTypes = {
|
|
123
135
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
124
136
|
allowStimulusCreation: PropTypes.bool,
|
|
125
137
|
clearUi: PropTypes.func.isRequired,
|
|
@@ -134,12 +146,9 @@ export var AddContentPopover = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
134
146
|
switchOffEditing: PropTypes.func.isRequired,
|
|
135
147
|
switchOnEditing: PropTypes.func.isRequired,
|
|
136
148
|
useStimulusTrigger: PropTypes.bool,
|
|
137
|
-
styles: PropTypes.object
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
stimulusId: null,
|
|
143
|
-
useStimulusTrigger: false
|
|
144
|
-
}), _AddContentPopover)) || _class);
|
|
149
|
+
styles: PropTypes.object,
|
|
150
|
+
slotProps: PropTypes.shape({
|
|
151
|
+
quizGenerationButton: quizGenerationButtonPropTypes
|
|
152
|
+
})
|
|
153
|
+
};
|
|
145
154
|
export default AddContentPopover;
|
|
@@ -26,7 +26,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
26
26
|
import { Heading } from '@instructure/ui-heading';
|
|
27
27
|
import { Alert } from '@instructure/ui-alerts';
|
|
28
28
|
import { jsx } from '@instructure/emotion';
|
|
29
|
-
import t from '@instructure/quiz-i18n/
|
|
29
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
30
30
|
import generateStyle from './styles';
|
|
31
31
|
import generateComponentTheme from './theme';
|
|
32
32
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
@@ -30,7 +30,7 @@ import { ProgressCircle } from '@instructure/ui-progress';
|
|
|
30
30
|
import { Heading } from '@instructure/ui-heading';
|
|
31
31
|
import { View } from '@instructure/ui-view';
|
|
32
32
|
import { jsx } from '@instructure/emotion';
|
|
33
|
-
import t from '@instructure/quiz-i18n/
|
|
33
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
34
34
|
import { scoreToLetterGrade } from '@instructure/grading-utils';
|
|
35
35
|
import { withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
|
|
36
36
|
import FormattedDuration from '../../../shared/FormattedDuration';
|
|
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
|
|
|
25
25
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
26
26
|
import { jsx } from '@instructure/emotion';
|
|
27
27
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import generateStyle from './styles';
|
|
30
30
|
import generateComponentTheme from './theme';
|
|
31
31
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
@@ -31,7 +31,7 @@ import { View } from '@instructure/ui-view';
|
|
|
31
31
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
32
32
|
import { jsx } from '@instructure/emotion';
|
|
33
33
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
34
|
-
import t from '@instructure/quiz-i18n/
|
|
34
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
35
35
|
import PositionBox from '../../positionBox/PositionBox';
|
|
36
36
|
import { COMPONENT_RESULT, withStyleOverrides } from '@instructure/quiz-common';
|
|
37
37
|
import componentForItem from '../../../../util/componentForItem';
|
|
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
|
|
|
25
25
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
26
26
|
import { Heading } from '@instructure/ui-heading';
|
|
27
27
|
import { jsx } from '@instructure/emotion';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import CustomPropTypes from '../../../../util/CustomPropTypes';
|
|
30
30
|
import SessionItemResult from '../SessionItemResult';
|
|
31
31
|
import ResultStimulus from '../ResultStimulus';
|
|
@@ -46,7 +46,7 @@ import wrapWithOutsideClickEmotion from '../../../shared/functionality/component
|
|
|
46
46
|
import ActionButtons from '../../../../../building/components/resources/ActionButtons';
|
|
47
47
|
import generateStyle from './styles';
|
|
48
48
|
import generateComponentTheme from './theme';
|
|
49
|
-
import t from '@instructure/quiz-i18n/
|
|
49
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
50
50
|
export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_StimulusEdit = /*#__PURE__*/function (_Component) {
|
|
51
51
|
function StimulusEdit() {
|
|
52
52
|
var _this2;
|
|
@@ -31,7 +31,7 @@ import { toErrors } from '../../../../util/instUIMessages';
|
|
|
31
31
|
import { IconUpdownLine } from '@instructure/ui-icons';
|
|
32
32
|
import { ToggleDetails } from '@instructure/ui-toggle-details';
|
|
33
33
|
import { SimpleSelect, TextInput, TOP, withStyleOverrides, FormFieldGroup, FormField } from '@instructure/quiz-common';
|
|
34
|
-
import t from '@instructure/quiz-i18n/
|
|
34
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
35
35
|
import generateStyle from './styles';
|
|
36
36
|
import generateComponentTheme from './theme';
|
|
37
37
|
import { Alert } from '@instructure/ui-alerts';
|
|
@@ -30,7 +30,7 @@ import { Text } from '@instructure/ui-text';
|
|
|
30
30
|
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
31
31
|
import StimulusShowInfo from '../StimulusShowInfo';
|
|
32
32
|
import ActionButtons from '../../../../../building/components/resources/ActionButtons';
|
|
33
|
-
import t from '@instructure/quiz-i18n/
|
|
33
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
34
34
|
import generateStyle from './styles';
|
|
35
35
|
import generateComponentTheme from './theme';
|
|
36
36
|
import Overlay from '../../../shared/overlay';
|
|
@@ -24,7 +24,7 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
24
24
|
import { Text } from '@instructure/ui-text';
|
|
25
25
|
import { View } from '@instructure/ui-view';
|
|
26
26
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
27
|
-
import t from '@instructure/quiz-i18n/
|
|
27
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
28
28
|
var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
29
29
|
function StimulusShowInfo() {
|
|
30
30
|
_classCallCheck(this, StimulusShowInfo);
|
|
@@ -22,7 +22,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
22
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
23
23
|
import React, { Component } from 'react';
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
|
-
import t from '@instructure/quiz-i18n/
|
|
25
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
26
26
|
import { withI18nSupport } from '@instructure/quiz-common';
|
|
27
27
|
import { AccessibleContent } from '@instructure/ui-a11y-content';
|
|
28
28
|
import { formatTime } from '../../../util/formatTimespan';
|
|
@@ -22,7 +22,7 @@ import React, { Component } from 'react';
|
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import debounce from 'lodash/fp/debounce';
|
|
24
24
|
import { Spinner } from '@instructure/ui-spinner';
|
|
25
|
-
import t from '@instructure/quiz-i18n/
|
|
25
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
26
26
|
import { SELECT_EMPTY_OPTION, Select } from '@instructure/quiz-common';
|
|
27
27
|
export var GenericAsyncSearch = /*#__PURE__*/function (_Component) {
|
|
28
28
|
function GenericAsyncSearch() {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { connect } from '../../../react-redux';
|
|
2
2
|
import InteractionTypes from './presenter';
|
|
3
|
-
import { featureOn } from '../../../../common/util/featureCheck';
|
|
4
3
|
function mapStateToProps(state) {
|
|
5
|
-
return {
|
|
6
|
-
allowPassageCreation: featureOn('passage')
|
|
7
|
-
};
|
|
4
|
+
return {};
|
|
8
5
|
}
|
|
9
6
|
export default connect(mapStateToProps)(InteractionTypes);
|
|
@@ -32,7 +32,7 @@ import { IconPlusLine } from '@instructure/ui-icons';
|
|
|
32
32
|
import { Grid } from '@instructure/ui-grid';
|
|
33
33
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
34
34
|
import { interactionTypeMetadata } from '../../../util/interactionTypeMetadata';
|
|
35
|
-
import t from '@instructure/quiz-i18n/
|
|
35
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
36
36
|
import generateStyle from './styles';
|
|
37
37
|
import generateComponentTheme from './theme';
|
|
38
38
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
@@ -146,7 +146,7 @@ export var InteractionTypes = (_dec = withStyleOverrides(generateStyle, generate
|
|
|
146
146
|
}, _this2.renderInteractionTypeButton({
|
|
147
147
|
name: 'Stimulus',
|
|
148
148
|
slug: 'stimulus'
|
|
149
|
-
})),
|
|
149
|
+
})), jsx(Grid.Col, {
|
|
150
150
|
width: 12 / _this2.props.columns,
|
|
151
151
|
key: "passage"
|
|
152
152
|
}, _this2.renderInteractionTypeButton({
|
|
@@ -174,12 +174,10 @@ export var InteractionTypes = (_dec = withStyleOverrides(generateStyle, generate
|
|
|
174
174
|
addItem: PropTypes.func.isRequired,
|
|
175
175
|
addStimulus: PropTypes.func.isRequired,
|
|
176
176
|
allowStimulusCreation: PropTypes.bool,
|
|
177
|
-
allowPassageCreation: PropTypes.bool,
|
|
178
177
|
types: ImmutablePropTypes.list,
|
|
179
178
|
styles: PropTypes.object
|
|
180
179
|
}), _defineProperty(_InteractionTypes, "defaultProps", {
|
|
181
180
|
allowStimulusCreation: true,
|
|
182
|
-
allowPassageCreation: false,
|
|
183
181
|
types: List()
|
|
184
182
|
}), _InteractionTypes)) || _class);
|
|
185
183
|
export default InteractionTypes;
|
|
@@ -24,7 +24,7 @@ import { Component } from 'react';
|
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
25
|
import { Pagination } from '@instructure/ui-pagination';
|
|
26
26
|
import { jsx } from '@instructure/emotion';
|
|
27
|
-
import t from '@instructure/quiz-i18n/
|
|
27
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
28
28
|
import generateStyle from './styles';
|
|
29
29
|
import generateComponentTheme from './theme';
|
|
30
30
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
@@ -22,7 +22,7 @@ function _callSuper(_this, derived, args) {
|
|
|
22
22
|
import React, { Component } from 'react';
|
|
23
23
|
import PropTypes from 'prop-types';
|
|
24
24
|
import { Overlay, Mask } from '@instructure/ui-overlays';
|
|
25
|
-
import t from '@instructure/quiz-i18n/
|
|
25
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
26
26
|
import { QuizzesSpinner as Spinner } from '../spinner/Spinner';
|
|
27
27
|
import CustomPropTypes from '../../../util/CustomPropTypes';
|
|
28
28
|
import { printWithCss, ensureImagesLoaded } from '../../../util/printUtils';
|
|
@@ -27,7 +27,7 @@ import { AccessibleContent } from '@instructure/ui-a11y-content';
|
|
|
27
27
|
import { Text } from '@instructure/ui-text';
|
|
28
28
|
import { Tag } from '@instructure/ui-tag';
|
|
29
29
|
import { jsx } from '@instructure/emotion';
|
|
30
|
-
import t from '@instructure/quiz-i18n/
|
|
30
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
31
31
|
import generateStyle from './styles';
|
|
32
32
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
33
33
|
export var TagDisplay = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_TagDisplay = /*#__PURE__*/function (_Component) {
|
|
@@ -24,7 +24,7 @@ import React, { Component } from 'react';
|
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
25
|
import TagWrapper from '../TagWrapper';
|
|
26
26
|
import differenceBy from 'lodash/differenceBy';
|
|
27
|
-
import t from '@instructure/quiz-i18n/
|
|
27
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
28
28
|
import { SELECT_EMPTY_OPTION, Select } from '@instructure/quiz-common';
|
|
29
29
|
var tagShape = PropTypes.shape({
|
|
30
30
|
id: PropTypes.string,
|
|
@@ -22,7 +22,7 @@ import React, { Component } from 'react';
|
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import { Tag } from '@instructure/ui-tag';
|
|
24
24
|
import { AccessibleContent } from '@instructure/ui-a11y-content';
|
|
25
|
-
import t from '@instructure/quiz-i18n/
|
|
25
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
26
26
|
export var TagWrapper = /*#__PURE__*/function (_Component) {
|
|
27
27
|
function TagWrapper() {
|
|
28
28
|
var _this2;
|
|
@@ -25,7 +25,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
25
25
|
import { View } from '@instructure/ui-view';
|
|
26
26
|
import { List } from 'immutable';
|
|
27
27
|
import { breakdownSeconds, DAY_IN_SECONDS, HOUR_IN_SECONDS, MINUTE_IN_SECONDS } from '../FormattedDuration';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import { NumberInput } from '@instructure/quiz-number-input';
|
|
30
30
|
|
|
31
31
|
// This component renders an input for multiple time units, and handles:
|
|
@@ -23,7 +23,7 @@ function _callSuper(_this, derived, args) {
|
|
|
23
23
|
import { Component } from 'react';
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
25
|
import { jsx } from '@instructure/emotion';
|
|
26
|
-
import t from '@instructure/quiz-i18n/
|
|
26
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
27
27
|
import generateStyle from './styles';
|
|
28
28
|
import generateComponentTheme from './theme';
|
|
29
29
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
@@ -25,7 +25,7 @@ import { Map } from 'immutable';
|
|
|
25
25
|
import { IconButton } from '@instructure/ui-buttons';
|
|
26
26
|
import { Menu } from '@instructure/ui-menu';
|
|
27
27
|
import { IconArrowDownLine, IconArrowUpLine, IconDragHandleLine, IconMiniArrowDownLine, IconMiniArrowUpLine } from '@instructure/ui-icons';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import keyboardClickable from '../../../../../common/util/keyboardClickable';
|
|
30
30
|
import { MOVE_IMMUTABLE_DATA, SIDEBAR_NAV_ID, MOVED_QUIZ_ENTRY, MOVED_IN_SIDEBAR, MOVE } from '@instructure/quiz-common';
|
|
31
31
|
export var DragHandle = /*#__PURE__*/function (_Component) {
|
|
@@ -21,7 +21,7 @@ function _callSuper(_this, derived, args) {
|
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import { Button } from '@instructure/ui-buttons';
|
|
24
|
-
import t from '@instructure/quiz-i18n/
|
|
24
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
25
25
|
import { SecondaryNavBarButton } from '../../layout/navbar/SecondaryNavBarButton';
|
|
26
26
|
export var ReturnButton = /*#__PURE__*/function (_Component) {
|
|
27
27
|
function ReturnButton() {
|
|
@@ -27,7 +27,7 @@ import { Text } from '@instructure/ui-text';
|
|
|
27
27
|
import { Spinner } from '@instructure/ui-spinner';
|
|
28
28
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
29
29
|
import { jsx } from '@instructure/emotion';
|
|
30
|
-
import t from '@instructure/quiz-i18n/
|
|
30
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
31
31
|
import generateStyle from './styles';
|
|
32
32
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
33
33
|
export var QuizzesSpinner = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_QuizzesSpinner = /*#__PURE__*/function (_Component) {
|