@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
|
@@ -10,7 +10,7 @@ import { getBank } from './banks';
|
|
|
10
10
|
import { handleError } from '../../common/api/helpers';
|
|
11
11
|
import get from 'lodash/get';
|
|
12
12
|
import { BANKS_BANK_ENTRY_PAGINATION, GET_BANK_ENTRIES_CALL, GET_BANK_ENTRY_CALL, UPDATE_BANK_ENTRY_CALL, CREATE_BANK_ENTRY_CALL, COPY_BANK_ENTRY_CALL, REMOVE_BANK_ENTRY_CALL } from '@instructure/quiz-common';
|
|
13
|
-
import t from '@instructure/quiz-i18n/
|
|
13
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
14
14
|
export var getBankEntries = function getBankEntries(bankId, useBankSearch) {
|
|
15
15
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
16
16
|
var page = params.page,
|
package/es/banks/api/banks.js
CHANGED
|
@@ -8,12 +8,13 @@ import ExhaustivePaginatedFetcher from '../../common/util/ExhaustivePaginatedFet
|
|
|
8
8
|
import { handleBanksResponse, handleBankResponse, handleShareBankResponse, handleShareBanksResponse } from '../../common/api/callHandlers';
|
|
9
9
|
import { archiveBankEntry } from '../../common/actions/bankEntries';
|
|
10
10
|
import { archiveBank } from '../../common/actions/banks';
|
|
11
|
-
import { removeSharedBank, updateSharedBankPermission as updateSharedBankPermissionAction } from '../../common/actions/sharedBanks';
|
|
11
|
+
import { removeSharedBank, updateSharedBankPermission as updateSharedBankPermissionAction, getSharedBanksAction } from '../../common/actions/sharedBanks';
|
|
12
|
+
import { sharedBankLoadingAction } from '../../common/actions/sharingModal';
|
|
12
13
|
import { clear, newActiveBankEntry, newActiveBank } from '../../common/actions/ui';
|
|
13
|
-
import t from '@instructure/quiz-i18n/
|
|
14
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
14
15
|
import { handleError } from '../../common/api/helpers';
|
|
15
16
|
import { removeFromPolling } from './copyingBanksPoller';
|
|
16
|
-
import { BANKS_BANK_PAGINATION, BANKS_BANK_ENTRY_PAGINATION, DELETE_BANK_CALL, UPDATE_BANK_CALL,
|
|
17
|
+
import { BANKS_BANK_PAGINATION, BANKS_BANK_ENTRY_PAGINATION, DELETE_BANK_CALL, UPDATE_BANK_CALL, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_USER, SHARED_WITH_COURSE } from '@instructure/quiz-common';
|
|
17
18
|
import { noop } from 'lodash';
|
|
18
19
|
import { NIL } from 'uuid';
|
|
19
20
|
var banksApiEndpoint = '/api/banks';
|
|
@@ -268,102 +269,22 @@ export var getSharedBank = function getSharedBank(bankId, entityType, entityId)
|
|
|
268
269
|
};
|
|
269
270
|
};
|
|
270
271
|
export var getSharedBanks = function getSharedBanks(bank, getUserInfo, getCourseInfo, getAccountInfo) {
|
|
271
|
-
var url = "".concat(banksApiEndpoint, "/").concat(bank.id, "/shared_banks");
|
|
272
272
|
return function (dispatch, getState) {
|
|
273
|
-
var
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
// USERS
|
|
289
|
-
var userSharedBanks = [];
|
|
290
|
-
var userUuids = sharedBanksInfo.filter(function (sb) {
|
|
291
|
-
return sb.entity_type === SHARED_WITH_USER;
|
|
292
|
-
}).map(function (sb) {
|
|
293
|
-
return sb.entity_id;
|
|
294
|
-
});
|
|
295
|
-
getUserInfo(userUuids).then(function (usersInfo) {
|
|
296
|
-
usersInfo.forEach(function (userInfo) {
|
|
297
|
-
var sharedBankInfo = sharedBanksInfo.find(function (sb) {
|
|
298
|
-
return sb.entity_type === SHARED_WITH_USER && sb.entity_id === userInfo.uuid;
|
|
299
|
-
});
|
|
300
|
-
if (sharedBankInfo) {
|
|
301
|
-
userSharedBanks.push({
|
|
302
|
-
id: sharedBankInfo.id,
|
|
303
|
-
entityType: sharedBankInfo.entity_type,
|
|
304
|
-
entityId: sharedBankInfo.entity_id,
|
|
305
|
-
title: userInfo.fullName,
|
|
306
|
-
avatar: userInfo.avatar,
|
|
307
|
-
permission: sharedBankInfo.permission,
|
|
308
|
-
bankId: sharedBankInfo.bank_id
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
dispatch(handleShareBanksResponse(userSharedBanks));
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
// COURSES
|
|
316
|
-
var courseSharedBanks = [];
|
|
317
|
-
var courseUuids = sharedBanksInfo.filter(function (sb) {
|
|
318
|
-
return sb.entity_type === SHARED_WITH_COURSE;
|
|
319
|
-
}).map(function (sb) {
|
|
320
|
-
return sb.entity_id;
|
|
321
|
-
});
|
|
322
|
-
getCourseInfo(courseUuids).then(function (coursesInfo) {
|
|
323
|
-
coursesInfo.forEach(function (courseInfo) {
|
|
324
|
-
var sharedBankInfo = sharedBanksInfo.find(function (sb) {
|
|
325
|
-
return sb.entity_type === SHARED_WITH_COURSE && sb.entity_id === courseInfo.uuid;
|
|
326
|
-
});
|
|
327
|
-
if (sharedBankInfo) {
|
|
328
|
-
courseSharedBanks.push({
|
|
329
|
-
id: sharedBankInfo.id,
|
|
330
|
-
entityType: sharedBankInfo.entity_type,
|
|
331
|
-
entityId: sharedBankInfo.entity_id,
|
|
332
|
-
title: courseInfo.title,
|
|
333
|
-
permission: sharedBankInfo.permission,
|
|
334
|
-
bankId: sharedBankInfo.bank_id
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
dispatch(handleShareBanksResponse(courseSharedBanks));
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
// ACCOUNTS
|
|
342
|
-
var accountSharedBanks = [];
|
|
343
|
-
var accountUuids = sharedBanksInfo.filter(function (sb) {
|
|
344
|
-
return sb.entity_type === SHARED_WITH_ACCOUNT;
|
|
345
|
-
}).map(function (sb) {
|
|
346
|
-
return sb.entity_id;
|
|
347
|
-
});
|
|
348
|
-
getAccountInfo(accountUuids).then(function (accountsInfo) {
|
|
349
|
-
accountsInfo.forEach(function (accountInfo) {
|
|
350
|
-
var sharedBankInfo = sharedBanksInfo.find(function (sb) {
|
|
351
|
-
return sb.entity_type === SHARED_WITH_ACCOUNT && sb.entity_id === accountInfo.uuid;
|
|
352
|
-
});
|
|
353
|
-
if (sharedBankInfo) {
|
|
354
|
-
accountSharedBanks.push({
|
|
355
|
-
id: sharedBankInfo.id,
|
|
356
|
-
entityType: sharedBankInfo.entity_type,
|
|
357
|
-
entityId: sharedBankInfo.entity_id,
|
|
358
|
-
title: accountInfo.name,
|
|
359
|
-
permission: sharedBankInfo.permission,
|
|
360
|
-
bankId: sharedBankInfo.bank_id
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
dispatch(handleShareBanksResponse(accountSharedBanks));
|
|
365
|
-
});
|
|
366
|
-
});
|
|
273
|
+
var payload = {
|
|
274
|
+
bank: bank,
|
|
275
|
+
getUserInfo: getUserInfo,
|
|
276
|
+
getCourseInfo: getCourseInfo,
|
|
277
|
+
getAccountInfo: getAccountInfo
|
|
278
|
+
};
|
|
279
|
+
dispatch(getSharedBanksAction(payload));
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
export var changeSharedBankLoading = function changeSharedBankLoading(isLoading) {
|
|
283
|
+
return function (dispatch, getState) {
|
|
284
|
+
var payload = {
|
|
285
|
+
loading: isLoading
|
|
286
|
+
};
|
|
287
|
+
dispatch(sharedBankLoadingAction(payload));
|
|
367
288
|
};
|
|
368
289
|
};
|
|
369
290
|
export var updateSharedBankPermission = function updateSharedBankPermission(bankId, sharedBankId, permission) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import t from '@instructure/quiz-i18n/
|
|
3
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
4
4
|
import { addError, addSuccess } from '../../common/actions/alerts';
|
|
5
5
|
import { getSpecificBanks } from './banks';
|
|
6
6
|
var pollingBanks = [];
|
|
@@ -4,7 +4,7 @@ import Fetcher from '../../common/util/Fetcher';
|
|
|
4
4
|
import { handleError } from '../../common/api/helpers';
|
|
5
5
|
import { addTagAssociation, removePendingAdditionTagAssociation, removePendingDeletionTagAssociation, removeTagAssociation, setTagSuggestions } from '../../common/actions/tagAssociations';
|
|
6
6
|
import { GET_TAG_SUGGESTIONS, CREATE_TAG_ASSOCIATION, DELETE_TAG_ASSOCIATION } from '@instructure/quiz-common';
|
|
7
|
-
import t from '@instructure/quiz-i18n/
|
|
7
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
8
8
|
export var getTagSuggestions = function getTagSuggestions(entryType, entryId, text) {
|
|
9
9
|
return function (dispatch, getState) {
|
|
10
10
|
var url = '/api/tags';
|
|
@@ -25,7 +25,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
25
25
|
import first from 'lodash/first';
|
|
26
26
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
27
27
|
import { Heading } from '@instructure/ui-heading';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import InteractionTypes from '../../../common/components/shared/InteractionTypes';
|
|
30
30
|
import { XSMALL_SIDE_MARGIN, Modal, ModalHeader, ModalBody, ModalFooter } from '@instructure/quiz-common';
|
|
31
31
|
export var AddBankEntryModal = /*#__PURE__*/function (_Component) {
|
|
@@ -26,7 +26,7 @@ import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
|
|
|
26
26
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
27
27
|
import Bank from '../../../common/records/Bank';
|
|
28
28
|
import BankSelection from '../../../common/components/resources/BankSelection/presenter';
|
|
29
|
-
import t from '@instructure/quiz-i18n/
|
|
29
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
30
30
|
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
31
31
|
import { featureOn } from '../../../common/util/featureCheck';
|
|
32
32
|
export var AddToBankModal = /*#__PURE__*/function (_Component) {
|
|
@@ -25,7 +25,7 @@ import React, { Component } from 'react';
|
|
|
25
25
|
import PropTypes from 'prop-types';
|
|
26
26
|
import debounce from 'lodash/fp/debounce';
|
|
27
27
|
import find from 'lodash/fp/find';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import { Spinner } from '@instructure/ui-spinner';
|
|
30
30
|
import TagWrapper from '../../../common/components/shared/TagWrapper';
|
|
31
31
|
import { SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT, SELECT_EMPTY_OPTION, Select } from '@instructure/quiz-common';
|
|
@@ -41,7 +41,7 @@ import BankRecord from '../../../common/records/Bank';
|
|
|
41
41
|
import Page from '../../../common/components/layout/Page';
|
|
42
42
|
import PaginatedCollection from '../../../common/components/shared/PaginatedCollection';
|
|
43
43
|
import QuizEntry from '../../../common/records/QuizEntry';
|
|
44
|
-
import t from '@instructure/quiz-i18n/
|
|
44
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
45
45
|
import debounceLatestPromise from '../../../common/util/debounceLatestPromise';
|
|
46
46
|
import AddBankEntryModal from '../../../banks/components/AddBankEntryModal';
|
|
47
47
|
import BankEntriesList from '../../../banks/components/BankEntriesList';
|
|
@@ -51,7 +51,7 @@ import StimulusEditInfo from '../../../common/components/resources/stimulus/Stim
|
|
|
51
51
|
import StimulusShowInfo from '../../../common/components/resources/stimulus/StimulusShowInfo';
|
|
52
52
|
import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
|
|
53
53
|
import WarningWrapper from '../../../common/components/resources/WarningWrapper';
|
|
54
|
-
import t from '@instructure/quiz-i18n/
|
|
54
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
55
55
|
import { createItem } from '../../../building/api/items';
|
|
56
56
|
import { createStimulus } from '../../../building/api/stimuli';
|
|
57
57
|
import { propsForItemVersioningWrapper, propsForStimulusVersioningWrapper } from '../../../common/util/warningHelpers';
|
|
@@ -35,7 +35,7 @@ import { jsx } from '@instructure/emotion';
|
|
|
35
35
|
import { BUILD_TRAY_POSITION, COPY_MOVE_BANK_ENTRY_MODAL, SET_EDIT_BUTTON_FOCUS, withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
|
|
36
36
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
37
37
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
38
|
-
import t from '@instructure/quiz-i18n/
|
|
38
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
39
39
|
import CopyMoveBankEntryModal from '../CopyMoveBankEntryModal';
|
|
40
40
|
import ExpandButton from '../../../common/components/shared/ExpandButton';
|
|
41
41
|
import QuizEntry from '../../../common/records/QuizEntry';
|
|
@@ -31,7 +31,7 @@ import { View } from '@instructure/ui-view';
|
|
|
31
31
|
import { Text } from '@instructure/ui-text';
|
|
32
32
|
import { AccessibleContent, ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
33
33
|
import { jsx } from '@instructure/emotion';
|
|
34
|
-
import t from '@instructure/quiz-i18n/
|
|
34
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
35
35
|
import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
|
|
36
36
|
import { interactionTypesNameDictionary } from '../../../common/util/interactionTypeMetadata';
|
|
37
37
|
import generateStyle from './styles';
|
|
@@ -38,7 +38,7 @@ import debounce from 'lodash/fp/debounce';
|
|
|
38
38
|
import Page from '../../../common/components/layout/Page';
|
|
39
39
|
import { HeaderBreadCrumb } from '../HeaderBreadCrumb';
|
|
40
40
|
import PaginatedCollection from '../../../common/components/shared/PaginatedCollection';
|
|
41
|
-
import t from '@instructure/quiz-i18n/
|
|
41
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
42
42
|
import { BANKS_BANK_FILTERS, BANKS_BANK_PAGINATION, CREATE_BANK_MODAL, SHARED_WITH_ACCOUNT, withStyleOverrides, SimpleSelect, TextInput } from '@instructure/quiz-common';
|
|
43
43
|
import BanksList from '../../../banks/components/BanksList';
|
|
44
44
|
import CreateBankModal from '../../../banks/components/CreateBankModal';
|
|
@@ -42,7 +42,7 @@ import CustomPropTypes from '../../../common/util/CustomPropTypes';
|
|
|
42
42
|
import IfFeature from '../../../common/components/shared/IfFeature';
|
|
43
43
|
import EditBankModal from '../EditBankModal';
|
|
44
44
|
import SharingModal from '../SharingModal';
|
|
45
|
-
import t from '@instructure/quiz-i18n/
|
|
45
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
46
46
|
import generateStyle from './styles';
|
|
47
47
|
import generateComponentTheme from './theme';
|
|
48
48
|
export var BanksList = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_BanksList = /*#__PURE__*/function (_withI18nSupport) {
|
|
@@ -25,7 +25,7 @@ import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
|
|
|
25
25
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
26
26
|
import { Heading } from '@instructure/ui-heading';
|
|
27
27
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
28
|
-
import t from '@instructure/quiz-i18n/
|
|
28
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
29
29
|
import Bank from '../../../common/records/Bank';
|
|
30
30
|
import BankSelection from '../../../common/components/resources/BankSelection/presenter';
|
|
31
31
|
import { Modal, ModalHeader, ModalBody, ModalFooter, COPY_MOVE_BANK_ENTRY_MODAL_KEEP_COPY, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
@@ -27,7 +27,7 @@ import { Checkbox } from '@instructure/ui-checkbox';
|
|
|
27
27
|
import { View } from '@instructure/ui-view';
|
|
28
28
|
import { Heading } from '@instructure/ui-heading';
|
|
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 Bank from '../../../common/records/Bank';
|
|
32
32
|
import { toErrors } from '../../../common/util/instUIMessages';
|
|
33
33
|
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
@@ -25,7 +25,7 @@ import PropTypes from 'prop-types';
|
|
|
25
25
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
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 { toErrors } from '../../../common/util/instUIMessages';
|
|
30
30
|
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
31
31
|
import Bank from '../../../common/records/Bank';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import t from '@instructure/quiz-i18n/
|
|
4
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
5
5
|
import { Breadcrumb, BreadcrumbLink } from '@instructure/ui-breadcrumb';
|
|
6
6
|
export function HeaderBreadCrumb(_ref) {
|
|
7
7
|
var _ref$returnToUrl = _ref.returnToUrl,
|
|
@@ -34,7 +34,7 @@ import QTIImportModal from '../../../building/components/QTIImportModal';
|
|
|
34
34
|
import { PARENT_TYPE_BANK, withStyleOverrides } from '@instructure/quiz-common';
|
|
35
35
|
import generateStyle from './styles';
|
|
36
36
|
import generateComponentTheme from './theme';
|
|
37
|
-
import t from '@instructure/quiz-i18n/
|
|
37
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
38
38
|
export var HeaderMenu = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_HeaderMenu = /*#__PURE__*/function (_Component) {
|
|
39
39
|
function HeaderMenu() {
|
|
40
40
|
_classCallCheck(this, HeaderMenu);
|
|
@@ -33,7 +33,7 @@ import { BreadcrumbLink } from '@instructure/ui-breadcrumb';
|
|
|
33
33
|
import { IconBankLine } from '@instructure/ui-icons';
|
|
34
34
|
import { View } from '@instructure/ui-view';
|
|
35
35
|
import { jsx, Global } from '@instructure/emotion';
|
|
36
|
-
import t from '@instructure/quiz-i18n/
|
|
36
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
37
37
|
import generateStyle from './styles';
|
|
38
38
|
import generateComponentTheme from './theme';
|
|
39
39
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
@@ -29,7 +29,7 @@ import { Grid } from '@instructure/ui-grid';
|
|
|
29
29
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
30
30
|
import generateStyle from './styles';
|
|
31
31
|
import generateComponentTheme from './theme';
|
|
32
|
-
import t from '@instructure/quiz-i18n/
|
|
32
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
33
33
|
export var RootAccountSharing = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_RootAccountSharing = /*#__PURE__*/function (_Component) {
|
|
34
34
|
function RootAccountSharing() {
|
|
35
35
|
var _this2;
|
|
@@ -30,7 +30,7 @@ import { Avatar } from '@instructure/ui-avatar';
|
|
|
30
30
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
31
31
|
import { jsx } from '@instructure/emotion';
|
|
32
32
|
import { CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_COURSE, SimpleSelect, withStyleOverrides } from '@instructure/quiz-common';
|
|
33
|
-
import t from '@instructure/quiz-i18n/
|
|
33
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
34
34
|
import { ContextualIconButton } from '../ContextualIconButton';
|
|
35
35
|
import generateStyle from './styles';
|
|
36
36
|
export var ShareList = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_ShareList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { compose } from 'redux';
|
|
2
2
|
import { Map } from 'immutable';
|
|
3
3
|
import { connect } from '../../../common/react-redux';
|
|
4
|
-
import { shareBank, getSharedBanks, updateSharedBankPermission, getBank, updateBank } from '../../api/banks';
|
|
4
|
+
import { shareBank, getSharedBanks, updateSharedBankPermission, getBank, updateBank, changeSharedBankLoading } from '../../api/banks';
|
|
5
5
|
import { removeSharedBank } from '../../../common/actions/sharedBanks';
|
|
6
6
|
import { withConfirm } from '../../../common/actions/modal';
|
|
7
7
|
import SharingModal from './presenter';
|
|
@@ -9,8 +9,10 @@ function mapStateToProps(state, ownProps) {
|
|
|
9
9
|
var sharedBanks = state.get('sharedBanks', Map()).filter(function (sharedBank) {
|
|
10
10
|
return sharedBank.get('bankId') === ownProps.bank.id;
|
|
11
11
|
}).toList();
|
|
12
|
+
var loading = state.getIn(['sharingModal', 'loading']);
|
|
12
13
|
return {
|
|
13
|
-
sharedBanks: sharedBanks
|
|
14
|
+
sharedBanks: sharedBanks,
|
|
15
|
+
loading: loading
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
var mapDispatchToProps = {
|
|
@@ -20,6 +22,7 @@ var mapDispatchToProps = {
|
|
|
20
22
|
getBank: getBank,
|
|
21
23
|
removeSharedBank: removeSharedBank,
|
|
22
24
|
updateBank: updateBank,
|
|
23
|
-
withConfirm: withConfirm
|
|
25
|
+
withConfirm: withConfirm,
|
|
26
|
+
changeSharedBankLoading: changeSharedBankLoading
|
|
24
27
|
};
|
|
25
28
|
export default compose(connect(mapStateToProps, mapDispatchToProps))(SharingModal);
|