@instructure/quiz-core 20.20.1-rc.2 → 20.20.1-snapshot.4
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 +5 -14
- package/es/banks/api/banks.js +12 -24
- package/es/banks/api/copyingBanksPoller.js +6 -14
- package/es/banks/api/tagAssociations.js +4 -14
- package/es/banks/components/AddBankEntryModal/index.js +0 -3
- package/es/banks/components/AddBankEntryModal/presenter.js +0 -17
- package/es/banks/components/AddToBankModal/presenter.js +12 -48
- package/es/banks/components/AsyncSearch/index.js +8 -62
- package/es/banks/components/Bank/presenter.js +18 -69
- package/es/banks/components/Bank/styles.js +0 -2
- package/es/banks/components/Bank/theme.js +2 -3
- package/es/banks/components/BankEntriesList/presenter.js +5 -16
- package/es/banks/components/BankEntriesList/styles.js +0 -1
- package/es/banks/components/BankEntriesList/theme.js +0 -1
- package/es/banks/components/BankEntry/index.js +0 -5
- package/es/banks/components/BankEntry/presenter.js +25 -110
- package/es/banks/components/BankEntry/styles.js +0 -2
- package/es/banks/components/BankEntry/theme.js +3 -4
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -2
- package/es/banks/components/BankEntryRow/index.js +0 -5
- package/es/banks/components/BankEntryRow/presenter.js +11 -39
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +3 -4
- package/es/banks/components/BankSearch/index.js +0 -2
- package/es/banks/components/BankSearch/presenter.js +13 -31
- package/es/banks/components/BankSearch/styles.js +0 -1
- package/es/banks/components/BankSearch/theme.js +0 -1
- package/es/banks/components/Banks/index.js +0 -3
- package/es/banks/components/Banks/presenter.js +15 -65
- package/es/banks/components/Banks/styles.js +0 -1
- package/es/banks/components/Banks/theme.js +2 -3
- package/es/banks/components/BanksList/presenter.js +10 -63
- package/es/banks/components/BanksList/styles.js +0 -1
- package/es/banks/components/BanksList/theme.js +3 -4
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +2 -29
- package/es/banks/components/CreateBankModal/index.js +0 -3
- package/es/banks/components/CreateBankModal/presenter.js +5 -31
- package/es/banks/components/CreateBankModal/styles.js +0 -1
- package/es/banks/components/CreateBankModal/theme.js +1 -2
- package/es/banks/components/EditBankModal/index.js +0 -3
- package/es/banks/components/EditBankModal/presenter.js +5 -25
- package/es/banks/components/EditBankModal/styles.js +0 -1
- package/es/banks/components/EditBankModal/theme.js +1 -2
- package/es/banks/components/HeaderBreadCrumb/index.js +9 -19
- package/es/banks/components/HeaderMenu/index.js +0 -3
- package/es/banks/components/HeaderMenu/presenter.js +5 -15
- package/es/banks/components/HeaderMenu/styles.js +0 -1
- package/es/banks/components/HeaderMenu/theme.js +1 -2
- package/es/banks/components/NavWrapper/index.js +0 -2
- package/es/banks/components/NavWrapper/presenter.js +9 -25
- package/es/banks/components/NavWrapper/styles.js +0 -2
- package/es/banks/components/NavWrapper/theme.js +4 -5
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +1 -14
- package/es/banks/components/SharingModal/RootAccountSharing.js +5 -18
- package/es/banks/components/SharingModal/ShareList/index.js +7 -24
- package/es/banks/components/SharingModal/ShareList/styles.js +0 -1
- package/es/banks/components/SharingModal/index.js +0 -2
- package/es/banks/components/SharingModal/presenter.js +27 -92
- package/es/banks/components/SharingModal/styles.js +0 -1
- package/es/banks/components/SharingModal/theme.js +2 -3
- package/es/building/api/items.js +14 -32
- package/es/building/api/qtiImports.js +4 -13
- package/es/building/api/quizEntries.js +26 -32
- package/es/building/api/quizzes.js +27 -22
- package/es/building/api/stimuli.js +6 -3
- package/es/building/components/QTIImportModal/index.js +2 -1
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +2 -20
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +2 -2
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -28
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +1 -4
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +0 -1
- package/es/building/components/layout/Sidebar/Stimulus/index.js +2 -3
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +15 -26
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +1 -4
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +0 -1
- package/es/building/components/layout/Sidebar/index.js +3 -3
- package/es/building/components/layout/Sidebar/presenter.js +11 -38
- package/es/building/components/layout/Sidebar/styles.js +0 -2
- package/es/building/components/layout/Sidebar/theme.js +0 -1
- package/es/building/components/layout/header/BuildingButtons/index.js +0 -2
- package/es/building/components/layout/header/BuildingButtons/presenter.js +7 -52
- package/es/building/components/layout/header/BuildingButtons/styles.js +0 -2
- package/es/building/components/layout/header/BuildingButtons/theme.js +2 -3
- package/es/building/components/resources/ActionButtons/index.js +0 -3
- package/es/building/components/resources/ActionButtons/presenter.js +5 -22
- package/es/building/components/resources/ActionButtons/styles.js +0 -3
- package/es/building/components/resources/ActionButtons/theme.js +1 -2
- package/es/building/components/resources/AddToBankOptions/index.js +6 -25
- package/es/building/components/resources/AddToBankOptions/styles.js +0 -1
- package/es/building/components/resources/AddToBankOptions/theme.js +1 -2
- package/es/building/components/resources/BanksTray/index.js +0 -2
- package/es/building/components/resources/BanksTray/presenter.js +2 -26
- package/es/building/components/resources/DeleteStimulusModal/index.js +3 -7
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +13 -44
- package/es/building/components/resources/DeleteStimulusModal/styles.js +0 -1
- package/es/building/components/resources/DeleteStimulusModal/theme.js +1 -2
- package/es/building/components/resources/ItemFeedbackModal/index.js +0 -2
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +5 -24
- package/es/building/components/resources/ItemFeedbackModal/styles.js +0 -1
- package/es/building/components/resources/ItemFeedbackModal/theme.js +0 -1
- package/es/building/components/resources/MoveImmutableModal/index.js +5 -8
- package/es/building/components/resources/MoveImmutableModal/presenter.js +4 -17
- package/es/building/components/resources/quiz/editButton/EditButton.js +0 -12
- package/es/building/components/resources/quiz/instructions/Edit/index.js +0 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -13
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +0 -2
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +16 -41
- package/es/building/components/resources/quiz/instructions/Instructions/styles.js +0 -2
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
- package/es/building/components/resources/quiz/instructions/Show/index.js +10 -17
- package/es/building/components/resources/quiz/instructions/Show/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
- package/es/building/components/resources/quiz/title/Edit/index.js +12 -25
- package/es/building/components/resources/quiz/title/Edit/styles.js +0 -2
- package/es/building/components/resources/quiz/title/Edit/theme.js +3 -4
- package/es/building/components/resources/quiz/title/Show/index.js +5 -17
- package/es/building/components/resources/quiz/title/Show/styles.js +0 -1
- package/es/building/components/resources/quiz/title/Show/theme.js +0 -1
- package/es/building/components/resources/quiz/title/Title/index.js +0 -2
- package/es/building/components/resources/quiz/title/Title/presenter.js +16 -34
- package/es/building/components/resources/quiz/title/Title/styles.js +0 -2
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +10 -43
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -9
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +5 -35
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +6 -17
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +17 -44
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +12 -60
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +27 -91
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +23 -53
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -5
- package/es/common/actions/alerts.js +7 -7
- package/es/common/actions/modifications.js +37 -16
- package/es/common/actions/quizSessions.js +3 -13
- package/es/common/actions/rce.js +3 -2
- package/es/common/actions/taking.js +6 -4
- package/es/common/api/callHandlers.js +9 -13
- package/es/common/api/camelizeHelpers.js +6 -6
- package/es/common/api/features.js +0 -2
- package/es/common/api/fileUpload.js +3 -2
- package/es/common/api/getPersistenceActions.js +21 -23
- package/es/common/api/helpers.js +10 -29
- package/es/common/api/quizSessions.js +21 -26
- package/es/common/api/quizzes.js +3 -2
- package/es/common/api/schema.js +6 -4
- package/es/common/components/ApiFeatureFlagInitializer/index.js +0 -4
- package/es/common/components/ConfirmationModal/index.js +0 -3
- package/es/common/components/ConfirmationModal/presenter.js +9 -22
- package/es/common/components/ImportModal/ImportFileSelector/index.js +7 -18
- package/es/common/components/ImportModal/ImportFileSelector/styles.js +0 -1
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
- package/es/common/components/ImportModal/index.js +8 -8
- package/es/common/components/ImportModal/presenter.js +12 -59
- package/es/common/components/ImportModal/styles.js +0 -1
- package/es/common/components/ImportModal/theme.js +0 -1
- package/es/common/components/LearnosityCalculator/index.js +1 -20
- package/es/common/components/Pin/presenter.js +0 -10
- package/es/common/components/PreviewFrame/examples.config.js +0 -2
- package/es/common/components/PreviewFrame/index.js +0 -7
- package/es/common/components/PrintFontSizeModal/presenter.js +15 -25
- package/es/common/components/PrintFontSizeModal/styles.js +0 -1
- package/es/common/components/PrintFontSizeModal/theme.js +2 -3
- package/es/common/components/RceConfigProvider/index.js +0 -2
- package/es/common/components/RceConfigProvider/presenter.js +22 -50
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -6
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +1 -10
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -9
- package/es/common/components/SDKApp/index.js +12 -39
- package/es/common/components/SDKApp/styles.js +0 -1
- package/es/common/components/SDKHeaderCalculator.js +1 -1
- package/es/common/components/SDKTimer.js +1 -1
- package/es/common/components/alerts/index.js +0 -2
- package/es/common/components/alerts/presenter.js +5 -21
- package/es/common/components/alerts/styles.js +0 -2
- package/es/common/components/alerts/theme.js +1 -2
- package/es/common/components/layout/Page/index.js +5 -12
- package/es/common/components/layout/Page/styles.js +0 -2
- package/es/common/components/layout/Page/theme.js +2 -3
- package/es/common/components/layout/header/Calculator/index.js +0 -2
- package/es/common/components/layout/header/Calculator/presenter.js +2 -12
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +6 -23
- package/es/common/components/layout/header/HeaderMenuButton/styles.js +0 -2
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
- package/es/common/components/layout/header/Timer/index.js +0 -3
- package/es/common/components/layout/header/Timer/presenter.js +9 -34
- package/es/common/components/layout/header/Timer/styles.js +0 -1
- package/es/common/components/layout/header/Timer/theme.js +3 -4
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -11
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -1
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -1
- package/es/common/components/layout/navbar/index.js +5 -25
- package/es/common/components/layout/navbar/styles.js +0 -1
- package/es/common/components/layout/navbar/theme.js +1 -2
- package/es/common/components/layout/sidebar/PositionSummary/index.js +4 -11
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +0 -1
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +3 -4
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +3 -11
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -3
- package/es/common/components/layout/sidebar/Sidebar/index.js +16 -53
- package/es/common/components/layout/sidebar/Sidebar/styles.js +0 -4
- package/es/common/components/layout/sidebar/Sidebar/theme.js +5 -7
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -39
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +0 -2
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +3 -4
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +12 -27
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +10 -32
- package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +4 -13
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/index.js +0 -2
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +16 -33
- package/es/common/components/layout/sidebar/Stimulus/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/theme.js +3 -4
- package/es/common/components/resources/BankSelection/presenter.js +6 -36
- package/es/common/components/resources/WarningWrapper/index.js +5 -16
- package/es/common/components/resources/WarningWrapper/styles.js +0 -1
- package/es/common/components/resources/WarningWrapper/theme.js +2 -3
- package/es/common/components/resources/entry/EntrySave/presenter.js +8 -54
- package/es/common/components/resources/item/ItemEdit/index.js +2 -4
- package/es/common/components/resources/item/ItemEdit/presenter.js +8 -28
- package/es/common/components/resources/item/ItemOverride/index.js +0 -2
- package/es/common/components/resources/item/ItemOverride/presenter.js +0 -9
- package/es/common/components/resources/item/ItemShow/index.js +0 -7
- package/es/common/components/resources/positionBox/PositionBox.js +5 -12
- package/es/common/components/resources/positionBox/styles.js +0 -2
- package/es/common/components/resources/positionBox/theme.js +2 -3
- package/es/common/components/resources/quiz/AddContent/Body/index.js +0 -2
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +15 -33
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +0 -4
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Button/index.js +5 -16
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +0 -2
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +5 -8
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -5
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +1 -4
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +5 -23
- package/es/common/components/resources/quiz/AddContent/Popover/styles.js +0 -1
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
- package/es/common/components/resources/quiz/info/QuizInfo.js +0 -5
- package/es/common/components/resources/quiz/instructions/Instructions.js +4 -13
- package/es/common/components/resources/quiz/instructions/styles.js +0 -1
- package/es/common/components/resources/quiz/instructions/theme.js +1 -2
- package/es/common/components/resources/quiz/title/Title.js +4 -12
- package/es/common/components/resources/quiz/title/styles.js +0 -1
- package/es/common/components/resources/quiz/title/theme.js +1 -2
- package/es/common/components/resources/quizSessionResult/Header/index.js +5 -17
- package/es/common/components/resources/quizSessionResult/Header/styles.js +0 -1
- package/es/common/components/resources/quizSessionResult/Header/theme.js +1 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +11 -28
- package/es/common/components/resources/quizSessionResult/Info/styles.js +0 -2
- package/es/common/components/resources/quizSessionResult/Info/theme.js +1 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -13
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -5
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +9 -32
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +5 -18
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
- package/es/common/components/resources/stimulus/Stimulus/index.js +0 -3
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +9 -23
- package/es/common/components/resources/stimulus/Stimulus/styles.js +1 -5
- package/es/common/components/resources/stimulus/Stimulus/theme.js +3 -4
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +0 -3
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +18 -90
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -3
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +5 -27
- package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusShow/index.js +5 -19
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -7
- package/es/common/components/shared/Card/CardContent/index.js +5 -12
- package/es/common/components/shared/Card/CardContent/styles.js +0 -2
- package/es/common/components/shared/Card/CardContent/theme.js +4 -5
- package/es/common/components/shared/Card/CardWrapper/index.js +5 -12
- package/es/common/components/shared/Card/CardWrapper/styles.js +0 -2
- package/es/common/components/shared/Card/CardWrapper/theme.js +2 -3
- package/es/common/components/shared/Card/index.js +3 -4
- package/es/common/components/shared/ExpandButton/index.js +4 -11
- package/es/common/components/shared/ExpandButton/styles.js +0 -2
- package/es/common/components/shared/ExpandButton/theme.js +0 -1
- package/es/common/components/shared/FormattedDuration/index.js +4 -12
- package/es/common/components/shared/IfFeature/presenter.js +0 -6
- package/es/common/components/shared/InteractionTypes/index.js +0 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +7 -23
- package/es/common/components/shared/InteractionTypes/styles.js +0 -1
- package/es/common/components/shared/InteractionTypes/theme.js +2 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +11 -36
- package/es/common/components/shared/PaginatedCollection/styles.js +0 -1
- package/es/common/components/shared/PaginatedCollection/theme.js +2 -3
- package/es/common/components/shared/Paginator/index.js +5 -15
- package/es/common/components/shared/Paginator/styles.js +0 -1
- package/es/common/components/shared/Paginator/theme.js +0 -1
- package/es/common/components/shared/PrintTrigger/index.js +0 -2
- package/es/common/components/shared/PrintTrigger/presenter.js +3 -25
- package/es/common/components/shared/TagDisplay/index.js +5 -13
- package/es/common/components/shared/TagDisplay/styles.js +0 -1
- package/es/common/components/shared/TagSelect/presenter.js +11 -43
- package/es/common/components/shared/TagSuggestSelect/index.js +0 -3
- package/es/common/components/shared/TagSuggestSelect/presenter.js +7 -18
- package/es/common/components/shared/TagWrapper/presenter.js +3 -13
- package/es/common/components/shared/TimeUnitsInput/index.js +23 -52
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +12 -24
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -2
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -50
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -63
- package/es/common/components/shared/errors/Errors.js +5 -18
- package/es/common/components/shared/errors/styles.js +0 -1
- package/es/common/components/shared/errors/theme.js +1 -2
- package/es/common/components/shared/file_selector/FileSelector.js +5 -13
- package/es/common/components/shared/file_selector/styles.js +0 -1
- package/es/common/components/shared/file_selector/theme.js +2 -3
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +0 -12
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +6 -11
- package/es/common/components/shared/functionality/disableDraggingOverride.js +0 -1
- package/es/common/components/shared/functionality/makeEditable.js +15 -32
- package/es/common/components/shared/functionality/makeScrollable.js +9 -25
- package/es/common/components/shared/overlay/index.js +10 -20
- package/es/common/components/shared/overlay/styles.js +0 -2
- package/es/common/components/shared/overlay/theme.js +2 -3
- package/es/common/components/shared/return_button/ReturnButton.js +0 -7
- package/es/common/components/shared/spinner/Spinner.js +11 -20
- package/es/common/components/shared/spinner/styles.js +0 -1
- package/es/common/kinesis/QuizEventsLogger.js +14 -33
- package/es/common/kinesis/StreamQueue.js +6 -27
- package/es/common/kinesis/client.js +1 -3
- package/es/common/kinesis/config.js +2 -2
- package/es/common/kinesis/eventTypes.js +4 -4
- package/es/common/middleware/alertTimerMiddleware.js +2 -6
- package/es/common/middleware/crossDomainMessagingMiddleware.js +0 -3
- package/es/common/middleware/eventLoggerMiddleware.js +0 -5
- package/es/common/middleware/persistedStorageMiddleware.js +0 -7
- package/es/common/middleware/quizTimerWebSocketMiddleware.js +0 -11
- package/es/common/react-redux.js +0 -2
- package/es/common/records/Alert.js +0 -4
- package/es/common/records/Bank.js +0 -5
- package/es/common/records/BankEntry.js +0 -8
- package/es/common/records/Item.js +2 -9
- package/es/common/records/ItemAnalysis.js +0 -5
- package/es/common/records/QtiImport.js +0 -7
- package/es/common/records/Quiz.js +4 -13
- package/es/common/records/QuizAnalysis.js +0 -5
- package/es/common/records/QuizEntry.js +10 -57
- package/es/common/records/QuizSession.js +0 -10
- package/es/common/records/QuizSessionEvent.js +0 -5
- package/es/common/records/QuizSessionResult.js +0 -5
- package/es/common/records/Response.js +0 -5
- package/es/common/records/SessionItem.js +2 -13
- package/es/common/records/SessionItemResult.js +0 -5
- package/es/common/records/Stimulus.js +0 -5
- package/es/common/records/baseRecord.js +0 -11
- package/es/common/records/reduxRecord.js +0 -5
- package/es/common/reducers/alerts.js +0 -3
- package/es/common/reducers/analyses.js +0 -9
- package/es/common/reducers/bankEntries.js +0 -5
- package/es/common/reducers/bankSearch.js +4 -9
- package/es/common/reducers/banks.js +1 -13
- package/es/common/reducers/calls.js +0 -3
- package/es/common/reducers/config.js +0 -4
- package/es/common/reducers/dragAndDrop.js +0 -2
- package/es/common/reducers/editing.js +0 -1
- package/es/common/reducers/errorsShowing.js +0 -4
- package/es/common/reducers/features.js +0 -3
- package/es/common/reducers/grading.js +0 -4
- package/es/common/reducers/interactionTypes.js +0 -4
- package/es/common/reducers/items.js +0 -4
- package/es/common/reducers/modal.js +0 -6
- package/es/common/reducers/moderation.js +0 -3
- package/es/common/reducers/modifications.js +6 -38
- package/es/common/reducers/outcomes.js +0 -5
- package/es/common/reducers/printing.js +0 -2
- package/es/common/reducers/qtiImports.js +0 -5
- package/es/common/reducers/quizEntries.js +28 -39
- package/es/common/reducers/quizExport.js +0 -2
- package/es/common/reducers/quizSessionEvents.js +0 -5
- package/es/common/reducers/quizSessionResults.js +0 -4
- package/es/common/reducers/quizSessions.js +2 -11
- package/es/common/reducers/quizzes.js +0 -13
- package/es/common/reducers/rce.js +0 -6
- package/es/common/reducers/regrading.js +0 -4
- package/es/common/reducers/reporting.js +0 -12
- package/es/common/reducers/scrolling.js +0 -3
- package/es/common/reducers/sessionItemResults.js +0 -4
- package/es/common/reducers/sessionItems.js +0 -4
- package/es/common/reducers/sharedBanks.js +1 -8
- package/es/common/reducers/sidebar.js +0 -3
- package/es/common/reducers/stimuli.js +0 -4
- package/es/common/reducers/tagAssociations.js +0 -28
- package/es/common/reducers/taking.js +0 -37
- package/es/common/reducers/ui.js +0 -11
- package/es/common/reducers/upload.js +0 -7
- package/es/common/selectors/analyses.js +0 -2
- package/es/common/selectors/calculator.js +4 -7
- package/es/common/selectors/config.js +0 -2
- package/es/common/selectors/interactionTypes.js +3 -4
- package/es/common/selectors/items.js +0 -1
- package/es/common/selectors/qtiImports.js +2 -5
- package/es/common/selectors/quizSessions.js +2 -1
- package/es/common/selectors/quizzes.js +3 -9
- package/es/common/selectors/reporting.js +0 -2
- package/es/common/selectors/sessionItemResults.js +2 -3
- package/es/common/selectors/sessionItems.js +2 -3
- package/es/common/util/CustomPropTypes.js +0 -12
- package/es/common/util/ExhaustivePaginatedFetcher.js +7 -23
- package/es/common/util/Fetcher.js +25 -79
- package/es/common/util/MultiWeakMap.js +0 -19
- package/es/common/util/PaginatedFetcher.js +2 -16
- package/es/common/util/ThunkQueue.js +3 -30
- package/es/common/util/TimeRecordingService.js +0 -12
- package/es/common/util/TimerService.js +3 -42
- package/es/common/util/cachePreviousArgs.js +0 -3
- package/es/common/util/callHelpers.js +0 -2
- package/es/common/util/componentForItem.js +1 -6
- package/es/common/util/crossDomainMessaging.js +0 -1
- package/es/common/util/debounceLatestPromise.js +0 -2
- package/es/common/util/featureCheck.js +3 -3
- package/es/common/util/fitbCopyHelper.js +3 -3
- package/es/common/util/formatTimespan.js +0 -10
- package/es/common/util/generateDisplayPositions.js +2 -5
- package/es/common/util/immutableHelpers.js +4 -3
- package/es/common/util/interactionTypeMetadata.js +2 -3
- package/es/common/util/interactionTypePropsHelper.js +0 -7
- package/es/common/util/interactionTypeRecordForItem.js +1 -7
- package/es/common/util/jsonify.js +1 -0
- package/es/common/util/keyboardClickable.js +0 -1
- package/es/common/util/mathRenderingUtils.js +2 -1
- package/es/common/util/maxContent.js +0 -1
- package/es/common/util/persistedState.js +0 -6
- package/es/common/util/printUtils.js +0 -4
- package/es/common/util/rceChecker.js +1 -3
- package/es/common/util/renderAlerts.js +2 -6
- package/es/common/util/serializeEvent.js +0 -2
- package/es/common/util/sessionStore.js +4 -11
- package/es/common/util/warningHelpers.js +0 -9
- package/es/common/util/withCachedArguments.js +0 -6
- package/es/common/util/withDynamoPagination.js +14 -34
- package/es/common/util/withStateCache.js +0 -9
- package/es/config.js +5 -9
- package/es/configureStore.js +9 -8
- package/es/grading/api/quizEntryRegrades.js +3 -2
- package/es/grading/api/updateResults.js +0 -4
- package/es/index.js +4 -6
- package/es/messages/LocalStorageAdapter.js +0 -12
- package/es/messages/LocalStorageLimits.js +2 -23
- package/es/messages/StorageExhaustionError.js +1 -8
- package/es/messages/postMessageService.js +0 -20
- package/es/messages/subjectHandlers/forwardMessage.js +0 -1
- package/es/messages/subjectHandlers/lti.capabilities.js +0 -1
- package/es/messages/subjectHandlers/lti.fetchWindowSize.js +0 -1
- package/es/messages/subjectHandlers/lti.frameResize.js +0 -3
- package/es/messages/subjectHandlers/lti.get_data.js +2 -7
- package/es/messages/subjectHandlers/lti.put_data.js +3 -8
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +0 -4
- package/es/messages/utils.js +0 -1
- package/es/moderating/components/events/Event.js +3 -17
- package/es/moderating/components/events/PageBlurredEvent.js +0 -5
- package/es/moderating/components/events/PageFocusedEvent.js +0 -5
- package/es/moderating/components/events/RCEEvent.js +0 -5
- package/es/moderating/components/events/ResponseEvent.js +4 -16
- package/es/moderating/components/events/SessionStartEvent.js +0 -5
- package/es/moderating/components/events/styles.js +0 -1
- package/es/moderating/components/events/theme.js +1 -2
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -23
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -20
- package/es/moderating/components/resources/AccommodationsModal/index.js +7 -25
- package/es/moderating/components/resources/ElapsedTime.js +5 -9
- package/es/moderating/components/resources/ModerateTable/presenter.js +23 -70
- package/es/moderating/components/resources/ModerateTable/styles.js +0 -2
- package/es/moderating/components/resources/ModerateTable/theme.js +1 -2
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -2
- package/es/moderating/components/resources/ModerateTableRow/index.js +2 -2
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +19 -60
- package/es/moderating/components/resources/ModerateTableRow/story.js +0 -2
- package/es/moderating/components/resources/ModerateTableRow/styles.js +0 -1
- package/es/moderating/components/resources/ModerateTableRow/theme.js +0 -1
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -26
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +0 -20
- package/es/moderating/components/sidebar/ResetQuiz/index.js +0 -2
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -17
- package/es/reduxStore.js +0 -4
- package/es/reporting/api/getAnalysesExport.js +4 -11
- package/es/reporting/api/getAnalysesStatus.js +3 -6
- package/es/reporting/api/getItemAnalyses.js +3 -6
- package/es/reporting/api/getQuizAnalysis.js +3 -6
- package/es/reporting/components/Caption/index.js +5 -12
- package/es/reporting/components/Caption/styles.js +0 -1
- package/es/reporting/components/Caption/theme.js +2 -3
- package/es/reporting/components/MetricsListItem/index.js +8 -15
- package/es/reporting/components/MetricsListItem/styles.js +0 -1
- package/es/reporting/components/charts/CentileDistribution/presenter.js +10 -32
- package/es/reporting/components/charts/CentileDistribution/styles.js +0 -2
- package/es/reporting/components/charts/CentileDistribution/theme.js +2 -3
- package/es/reporting/components/charts/Distribution/presenter.js +15 -45
- package/es/reporting/components/charts/Distribution/styles.js +0 -1
- package/es/reporting/components/charts/Distribution/theme.js +1 -2
- package/es/reporting/components/charts/Legend/index.js +8 -16
- package/es/reporting/components/charts/Legend/styles.js +0 -2
- package/es/reporting/components/charts/Legend/theme.js +3 -4
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +7 -30
- package/es/reporting/components/charts/QuintileDistribution/styles.js +0 -1
- package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -2
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -21
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -6
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -6
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +14 -33
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +9 -23
- package/es/reporting/components/quizAnalysis/styles.js +0 -3
- package/es/reporting/components/quizAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +9 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +8 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -23
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +7 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +14 -34
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +12 -48
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +9 -29
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +9 -22
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -30
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +7 -21
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -36
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +9 -48
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +6 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +5 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +4 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +10 -37
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +7 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +18 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +5 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +18 -53
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -54
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -16
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -6
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +16 -39
- package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
- package/es/reporting/components/resources/ReportCard/index.js +8 -15
- package/es/reporting/components/resources/ReportCard/styles.js +0 -2
- package/es/reporting/components/resources/ReportCard/theme.js +1 -2
- package/es/reporting/components/resources/ReportList/index.js +8 -15
- package/es/reporting/components/resources/ReportList/styles.js +0 -1
- package/es/reporting/components/resources/ReportList/theme.js +0 -1
- package/es/taking/api/taking.js +30 -42
- package/es/taking/learnosity/index.js +9 -33
- package/lib/banks/api/bankEntries.js +5 -50
- package/lib/banks/api/banks.js +12 -66
- package/lib/banks/api/copyingBanksPoller.js +6 -25
- package/lib/banks/api/tagAssociations.js +4 -26
- package/lib/banks/components/AddBankEntryModal/index.js +0 -13
- package/lib/banks/components/AddBankEntryModal/presenter.js +0 -34
- package/lib/banks/components/AddToBankModal/index.js +0 -19
- package/lib/banks/components/AddToBankModal/presenter.js +12 -74
- package/lib/banks/components/AsyncSearch/index.js +8 -79
- package/lib/banks/components/Bank/index.js +0 -18
- package/lib/banks/components/Bank/presenter.js +21 -107
- package/lib/banks/components/Bank/styles.js +0 -5
- package/lib/banks/components/Bank/theme.js +2 -4
- package/lib/banks/components/BankEntriesList/index.js +0 -8
- package/lib/banks/components/BankEntriesList/presenter.js +6 -28
- package/lib/banks/components/BankEntriesList/styles.js +0 -2
- package/lib/banks/components/BankEntriesList/theme.js +0 -2
- package/lib/banks/components/BankEntry/index.js +0 -23
- package/lib/banks/components/BankEntry/presenter.js +26 -153
- package/lib/banks/components/BankEntry/styles.js +0 -4
- package/lib/banks/components/BankEntry/theme.js +3 -5
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -7
- package/lib/banks/components/BankEntryRow/index.js +0 -19
- package/lib/banks/components/BankEntryRow/presenter.js +13 -69
- package/lib/banks/components/BankEntryRow/styles.js +0 -2
- package/lib/banks/components/BankEntryRow/theme.js +3 -5
- package/lib/banks/components/BankSearch/BankSearch.stories.js +0 -13
- package/lib/banks/components/BankSearch/index.js +0 -11
- package/lib/banks/components/BankSearch/presenter.js +14 -54
- package/lib/banks/components/BankSearch/styles.js +0 -2
- package/lib/banks/components/BankSearch/theme.js +0 -2
- package/lib/banks/components/Banks/index.js +0 -14
- package/lib/banks/components/Banks/presenter.js +16 -97
- package/lib/banks/components/Banks/styles.js +0 -2
- package/lib/banks/components/Banks/theme.js +2 -4
- package/lib/banks/components/BanksList/index.js +0 -13
- package/lib/banks/components/BanksList/presenter.js +12 -91
- package/lib/banks/components/BanksList/styles.js +0 -2
- package/lib/banks/components/BanksList/theme.js +3 -5
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +0 -16
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -49
- package/lib/banks/components/CreateBankModal/index.js +0 -19
- package/lib/banks/components/CreateBankModal/presenter.js +6 -49
- package/lib/banks/components/CreateBankModal/styles.js +0 -2
- package/lib/banks/components/CreateBankModal/theme.js +1 -3
- package/lib/banks/components/EditBankModal/index.js +0 -16
- package/lib/banks/components/EditBankModal/presenter.js +6 -41
- package/lib/banks/components/EditBankModal/styles.js +0 -2
- package/lib/banks/components/EditBankModal/theme.js +1 -3
- package/lib/banks/components/HeaderBreadCrumb/index.js +9 -34
- package/lib/banks/components/HeaderMenu/index.js +0 -11
- package/lib/banks/components/HeaderMenu/presenter.js +6 -32
- package/lib/banks/components/HeaderMenu/styles.js +0 -2
- package/lib/banks/components/HeaderMenu/theme.js +1 -3
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +0 -5
- package/lib/banks/components/NavWrapper/index.js +0 -7
- package/lib/banks/components/NavWrapper/presenter.js +10 -45
- package/lib/banks/components/NavWrapper/styles.js +0 -3
- package/lib/banks/components/NavWrapper/theme.js +4 -6
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -26
- package/lib/banks/components/SharingModal/RootAccountSharing.js +5 -35
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +0 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +8 -43
- package/lib/banks/components/SharingModal/ShareList/styles.js +0 -2
- package/lib/banks/components/SharingModal/index.js +0 -13
- package/lib/banks/components/SharingModal/presenter.js +29 -123
- package/lib/banks/components/SharingModal/styles.js +0 -2
- package/lib/banks/components/SharingModal/theme.js +2 -4
- package/lib/building/api/items.js +12 -45
- package/lib/building/api/qtiImports.js +4 -29
- package/lib/building/api/quizEntries.js +23 -67
- package/lib/building/api/quizzes.js +27 -55
- package/lib/building/api/stimuli.js +4 -11
- package/lib/building/components/QTIImportModal/index.js +2 -13
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -29
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +2 -25
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +18 -41
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -5
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +0 -2
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +2 -24
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +16 -39
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -5
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +0 -2
- package/lib/building/components/layout/Sidebar/index.js +3 -22
- package/lib/building/components/layout/Sidebar/presenter.js +13 -54
- package/lib/building/components/layout/Sidebar/styles.js +0 -4
- package/lib/building/components/layout/Sidebar/theme.js +0 -2
- package/lib/building/components/layout/header/BuildingButtons/index.js +0 -17
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +8 -69
- package/lib/building/components/layout/header/BuildingButtons/styles.js +0 -4
- package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -4
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +0 -7
- package/lib/building/components/resources/ActionButtons/index.js +0 -11
- package/lib/building/components/resources/ActionButtons/presenter.js +6 -38
- package/lib/building/components/resources/ActionButtons/styles.js +0 -6
- package/lib/building/components/resources/ActionButtons/theme.js +1 -3
- package/lib/building/components/resources/AddToBankOptions/index.js +7 -40
- package/lib/building/components/resources/AddToBankOptions/styles.js +0 -2
- package/lib/building/components/resources/AddToBankOptions/theme.js +1 -3
- package/lib/building/components/resources/BanksTray/index.js +0 -6
- package/lib/building/components/resources/BanksTray/presenter.js +2 -46
- package/lib/building/components/resources/DeleteStimulusModal/index.js +3 -15
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +14 -63
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +0 -2
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -3
- package/lib/building/components/resources/ItemFeedbackModal/index.js +0 -13
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +6 -38
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +0 -2
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +0 -2
- package/lib/building/components/resources/MoveImmutableModal/index.js +5 -18
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -32
- package/lib/building/components/resources/quiz/editButton/EditButton.js +0 -26
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +0 -6
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +5 -29
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +0 -2
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +0 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +0 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +0 -11
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +12 -55
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +0 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Show/index.js +6 -31
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +0 -2
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +2 -3
- package/lib/building/components/resources/quiz/title/Edit/index.js +8 -40
- package/lib/building/components/resources/quiz/title/Edit/styles.js +0 -4
- package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -5
- package/lib/building/components/resources/quiz/title/Show/index.js +6 -31
- package/lib/building/components/resources/quiz/title/Show/styles.js +0 -2
- package/lib/building/components/resources/quiz/title/Show/theme.js +0 -2
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +0 -4
- package/lib/building/components/resources/quiz/title/Title/index.js +0 -12
- package/lib/building/components/resources/quiz/title/Title/presenter.js +12 -49
- package/lib/building/components/resources/quiz/title/Title/styles.js +0 -5
- package/lib/building/components/resources/quiz/title/Title/theme.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +0 -22
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +13 -79
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -13
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +0 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +0 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -55
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +7 -30
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -11
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +18 -64
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +13 -83
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -20
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +29 -118
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -12
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +24 -76
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -5
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -6
- package/lib/common/actions/addInteractionTypes.js +0 -2
- package/lib/common/actions/alerts.js +7 -16
- package/lib/common/actions/analyses.js +0 -7
- package/lib/common/actions/bankEntries.js +0 -5
- package/lib/common/actions/bankSearch.js +0 -9
- package/lib/common/actions/banks.js +0 -13
- package/lib/common/actions/config.js +0 -4
- package/lib/common/actions/dragAndDrop.js +0 -2
- package/lib/common/actions/editing.js +0 -4
- package/lib/common/actions/errorsShowing.js +0 -4
- package/lib/common/actions/features.js +0 -3
- package/lib/common/actions/grading.js +0 -4
- package/lib/common/actions/items.js +0 -2
- package/lib/common/actions/modal.js +0 -7
- package/lib/common/actions/moderation.js +0 -3
- package/lib/common/actions/modifications.js +35 -57
- package/lib/common/actions/outcomes.js +0 -5
- package/lib/common/actions/postMessage.js +0 -2
- package/lib/common/actions/printing.js +0 -3
- package/lib/common/actions/qtiImports.js +0 -3
- package/lib/common/actions/quizEntries.js +0 -7
- package/lib/common/actions/quizExport.js +0 -3
- package/lib/common/actions/quizSessionEvents.js +0 -3
- package/lib/common/actions/quizSessionResults.js +0 -3
- package/lib/common/actions/quizSessions.js +3 -30
- package/lib/common/actions/quizzes.js +0 -13
- package/lib/common/actions/rce.js +3 -9
- package/lib/common/actions/regrading.js +0 -4
- package/lib/common/actions/reporting.js +0 -6
- package/lib/common/actions/scrolling.js +0 -3
- package/lib/common/actions/sessionItemResults.js +0 -3
- package/lib/common/actions/sessionItems.js +0 -3
- package/lib/common/actions/sharedBanks.js +0 -7
- package/lib/common/actions/sidebar.js +0 -3
- package/lib/common/actions/stimuli.js +0 -2
- package/lib/common/actions/tagAssociations.js +0 -17
- package/lib/common/actions/taking.js +6 -42
- package/lib/common/actions/ui.js +0 -19
- package/lib/common/actions/upload.js +0 -11
- package/lib/common/api/callHandlers.js +10 -62
- package/lib/common/api/camelizeHelpers.js +3 -10
- package/lib/common/api/features.js +0 -8
- package/lib/common/api/fileUpload.js +3 -9
- package/lib/common/api/getPersistenceActions.js +22 -43
- package/lib/common/api/helpers.js +10 -46
- package/lib/common/api/interactionTypes.js +0 -5
- package/lib/common/api/quizSessions.js +21 -64
- package/lib/common/api/quizzes.js +4 -12
- package/lib/common/api/schema.js +6 -7
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +0 -12
- package/lib/common/components/ConfirmationModal/index.js +0 -11
- package/lib/common/components/ConfirmationModal/presenter.js +9 -36
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +8 -31
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +0 -2
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -4
- package/lib/common/components/ImportModal/index.js +8 -21
- package/lib/common/components/ImportModal/presenter.js +13 -80
- package/lib/common/components/ImportModal/styles.js +0 -2
- package/lib/common/components/ImportModal/theme.js +0 -2
- package/lib/common/components/LearnosityCalculator/index.js +1 -32
- package/lib/common/components/Pin/index.js +0 -2
- package/lib/common/components/Pin/presenter.js +0 -22
- package/lib/common/components/PreviewFrame/examples.config.js +0 -4
- package/lib/common/components/PreviewFrame/index.js +0 -19
- package/lib/common/components/PrintFontSizeModal/index.js +0 -3
- package/lib/common/components/PrintFontSizeModal/presenter.js +16 -40
- package/lib/common/components/PrintFontSizeModal/styles.js +0 -2
- package/lib/common/components/PrintFontSizeModal/theme.js +2 -4
- package/lib/common/components/RceConfigProvider/index.js +0 -8
- package/lib/common/components/RceConfigProvider/presenter.js +22 -66
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -15
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +0 -13
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +1 -14
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -14
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +0 -4
- package/lib/common/components/SDKApp/index.js +16 -62
- package/lib/common/components/SDKApp/styles.js +0 -2
- package/lib/common/components/SDKHeaderCalculator.js +1 -9
- package/lib/common/components/SDKMenuButton.js +0 -7
- package/lib/common/components/SDKNavBar.js +0 -7
- package/lib/common/components/SDKTimer.js +1 -9
- package/lib/common/components/alerts/index.js +0 -9
- package/lib/common/components/alerts/presenter.js +6 -35
- package/lib/common/components/alerts/styles.js +0 -4
- package/lib/common/components/alerts/theme.js +1 -3
- package/lib/common/components/layout/Page/index.js +6 -20
- package/lib/common/components/layout/Page/styles.js +0 -5
- package/lib/common/components/layout/Page/theme.js +2 -4
- package/lib/common/components/layout/header/Calculator/index.js +0 -9
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -26
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +0 -10
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +7 -35
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +0 -4
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -4
- package/lib/common/components/layout/header/Timer/index.js +0 -13
- package/lib/common/components/layout/header/Timer/presenter.js +10 -53
- package/lib/common/components/layout/header/Timer/styles.js +0 -2
- package/lib/common/components/layout/header/Timer/theme.js +3 -5
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +5 -21
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -2
- package/lib/common/components/layout/navbar/index.js +6 -37
- package/lib/common/components/layout/navbar/styles.js +0 -2
- package/lib/common/components/layout/navbar/theme.js +1 -3
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +5 -21
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +0 -2
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +3 -5
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +0 -20
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -6
- package/lib/common/components/layout/sidebar/Sidebar/index.js +18 -76
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +0 -7
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +5 -8
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +0 -12
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +23 -55
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +0 -4
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +3 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +0 -6
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +13 -43
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +0 -6
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +11 -44
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +5 -23
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/index.js +0 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +17 -51
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +3 -5
- package/lib/common/components/resources/BankSelection/index.js +0 -11
- package/lib/common/components/resources/BankSelection/presenter.js +6 -51
- package/lib/common/components/resources/WarningWrapper/index.js +6 -29
- package/lib/common/components/resources/WarningWrapper/styles.js +0 -2
- package/lib/common/components/resources/WarningWrapper/theme.js +2 -4
- package/lib/common/components/resources/entry/EntrySave/index.js +0 -15
- package/lib/common/components/resources/entry/EntrySave/presenter.js +8 -73
- package/lib/common/components/resources/item/ItemEdit/index.js +2 -24
- package/lib/common/components/resources/item/ItemEdit/presenter.js +8 -50
- package/lib/common/components/resources/item/ItemOverride/index.js +0 -16
- package/lib/common/components/resources/item/ItemOverride/presenter.js +0 -23
- package/lib/common/components/resources/item/ItemShow/index.js +0 -20
- package/lib/common/components/resources/positionBox/PositionBox.js +6 -22
- package/lib/common/components/resources/positionBox/styles.js +0 -4
- package/lib/common/components/resources/positionBox/theme.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +0 -12
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +16 -51
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +0 -6
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +4 -6
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +6 -29
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +0 -5
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +4 -6
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +5 -14
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -18
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +1 -12
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +6 -39
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +0 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -3
- package/lib/common/components/resources/quiz/info/QuizInfo.js +0 -16
- package/lib/common/components/resources/quiz/instructions/Instructions.js +10 -24
- package/lib/common/components/resources/quiz/instructions/styles.js +0 -2
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -3
- package/lib/common/components/resources/quiz/title/Title.js +9 -24
- package/lib/common/components/resources/quiz/title/styles.js +0 -2
- package/lib/common/components/resources/quiz/title/theme.js +1 -3
- package/lib/common/components/resources/quizSessionResult/Header/index.js +6 -30
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +0 -2
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -3
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +0 -5
- package/lib/common/components/resources/quizSessionResult/Info/index.js +12 -49
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +0 -3
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -3
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +5 -24
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -5
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -6
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -8
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +11 -53
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +6 -34
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -5
- package/lib/common/components/resources/stimulus/Stimulus/index.js +0 -11
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +10 -45
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -9
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -5
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +0 -19
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +19 -122
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -11
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +6 -47
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +7 -32
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +0 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -19
- package/lib/common/components/shared/Card/CardContent/index.js +6 -22
- package/lib/common/components/shared/Card/CardContent/styles.js +0 -4
- package/lib/common/components/shared/Card/CardContent/theme.js +4 -6
- package/lib/common/components/shared/Card/CardWrapper/index.js +6 -22
- package/lib/common/components/shared/Card/CardWrapper/styles.js +0 -4
- package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -4
- package/lib/common/components/shared/Card/index.js +3 -13
- package/lib/common/components/shared/ExpandButton/index.js +5 -22
- package/lib/common/components/shared/ExpandButton/styles.js +0 -4
- package/lib/common/components/shared/ExpandButton/theme.js +0 -2
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +0 -4
- package/lib/common/components/shared/FormattedDuration/index.js +4 -28
- package/lib/common/components/shared/IfFeature/index.js +0 -5
- package/lib/common/components/shared/IfFeature/presenter.js +0 -13
- package/lib/common/components/shared/InteractionTypes/index.js +0 -6
- package/lib/common/components/shared/InteractionTypes/presenter.js +8 -42
- package/lib/common/components/shared/InteractionTypes/styles.js +0 -2
- package/lib/common/components/shared/InteractionTypes/theme.js +2 -4
- package/lib/common/components/shared/PaginatedCollection/index.js +0 -8
- package/lib/common/components/shared/PaginatedCollection/presenter.js +25 -51
- package/lib/common/components/shared/PaginatedCollection/styles.js +0 -2
- package/lib/common/components/shared/PaginatedCollection/theme.js +2 -4
- package/lib/common/components/shared/Paginator/index.js +6 -25
- package/lib/common/components/shared/Paginator/styles.js +0 -2
- package/lib/common/components/shared/Paginator/theme.js +0 -2
- package/lib/common/components/shared/PrintTrigger/index.js +0 -14
- package/lib/common/components/shared/PrintTrigger/presenter.js +3 -42
- package/lib/common/components/shared/TagDisplay/index.js +6 -25
- package/lib/common/components/shared/TagDisplay/styles.js +0 -2
- package/lib/common/components/shared/TagSelect/index.js +0 -3
- package/lib/common/components/shared/TagSelect/presenter.js +11 -59
- package/lib/common/components/shared/TagSuggestSelect/index.js +0 -10
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +7 -34
- package/lib/common/components/shared/TagWrapper/index.js +0 -3
- package/lib/common/components/shared/TagWrapper/presenter.js +3 -25
- package/lib/common/components/shared/TimeUnitsInput/index.js +20 -68
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +13 -34
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +0 -15
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -66
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -88
- package/lib/common/components/shared/errors/Errors.js +6 -29
- package/lib/common/components/shared/errors/styles.js +0 -2
- package/lib/common/components/shared/errors/theme.js +1 -3
- package/lib/common/components/shared/file_selector/FileSelector.js +6 -24
- package/lib/common/components/shared/file_selector/styles.js +0 -2
- package/lib/common/components/shared/file_selector/theme.js +2 -4
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +4 -21
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +4 -19
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +0 -5
- package/lib/common/components/shared/functionality/makeEditable.js +19 -48
- package/lib/common/components/shared/functionality/makeScrollable.js +9 -44
- package/lib/common/components/shared/overlay/index.js +17 -26
- package/lib/common/components/shared/overlay/styles.js +0 -4
- package/lib/common/components/shared/overlay/theme.js +2 -4
- package/lib/common/components/shared/return_button/ReturnButton.js +0 -18
- package/lib/common/components/shared/spinner/Spinner.js +12 -31
- package/lib/common/components/shared/spinner/styles.js +0 -2
- package/lib/common/kinesis/QuizEventsLogger.js +14 -45
- package/lib/common/kinesis/StreamQueue.js +6 -29
- package/lib/common/kinesis/client.js +1 -14
- package/lib/common/kinesis/config.js +2 -11
- package/lib/common/kinesis/eventTypes.js +4 -5
- package/lib/common/middleware/alertTimerMiddleware.js +2 -8
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +0 -5
- package/lib/common/middleware/eventLoggerMiddleware.js +1 -8
- package/lib/common/middleware/persistedStorageMiddleware.js +1 -11
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +0 -29
- package/lib/common/react-redux.js +1 -4
- package/lib/common/records/Alert.js +0 -10
- package/lib/common/records/Bank.js +0 -17
- package/lib/common/records/BankEntry.js +0 -18
- package/lib/common/records/Item.js +2 -21
- package/lib/common/records/ItemAnalysis.js +0 -15
- package/lib/common/records/QtiImport.js +0 -13
- package/lib/common/records/Quiz.js +4 -28
- package/lib/common/records/QuizAnalysis.js +0 -12
- package/lib/common/records/QuizEntry.js +10 -78
- package/lib/common/records/QuizSession.js +0 -23
- package/lib/common/records/QuizSessionEvent.js +0 -12
- package/lib/common/records/QuizSessionResult.js +0 -14
- package/lib/common/records/Response.js +0 -14
- package/lib/common/records/SessionItem.js +2 -23
- package/lib/common/records/SessionItemResult.js +0 -13
- package/lib/common/records/Stimulus.js +0 -16
- package/lib/common/records/baseRecord.js +0 -21
- package/lib/common/records/index.js +0 -17
- package/lib/common/records/reduxRecord.js +0 -11
- package/lib/common/reducers/alerts.js +0 -7
- package/lib/common/reducers/analyses.js +0 -15
- package/lib/common/reducers/bankEntries.js +0 -11
- package/lib/common/reducers/bankSearch.js +4 -14
- package/lib/common/reducers/banks.js +1 -19
- package/lib/common/reducers/calls.js +0 -7
- package/lib/common/reducers/config.js +0 -9
- package/lib/common/reducers/dragAndDrop.js +0 -6
- package/lib/common/reducers/editing.js +0 -7
- package/lib/common/reducers/errorsShowing.js +0 -8
- package/lib/common/reducers/features.js +0 -7
- package/lib/common/reducers/grading.js +0 -8
- package/lib/common/reducers/interactionTypes.js +0 -9
- package/lib/common/reducers/items.js +0 -10
- package/lib/common/reducers/modal.js +0 -10
- package/lib/common/reducers/moderation.js +0 -8
- package/lib/common/reducers/modifications.js +6 -44
- package/lib/common/reducers/outcomes.js +0 -10
- package/lib/common/reducers/printing.js +0 -6
- package/lib/common/reducers/qtiImports.js +0 -11
- package/lib/common/reducers/quizEntries.js +28 -46
- package/lib/common/reducers/quizExport.js +0 -6
- package/lib/common/reducers/quizSessionEvents.js +0 -9
- package/lib/common/reducers/quizSessionResults.js +0 -9
- package/lib/common/reducers/quizSessions.js +2 -18
- package/lib/common/reducers/quizzes.js +0 -21
- package/lib/common/reducers/rce.js +0 -9
- package/lib/common/reducers/regrading.js +0 -9
- package/lib/common/reducers/reporting.js +0 -18
- package/lib/common/reducers/scrolling.js +0 -7
- package/lib/common/reducers/sessionItemResults.js +0 -9
- package/lib/common/reducers/sessionItems.js +0 -10
- package/lib/common/reducers/sharedBanks.js +1 -13
- package/lib/common/reducers/sidebar.js +0 -7
- package/lib/common/reducers/stimuli.js +0 -10
- package/lib/common/reducers/tagAssociations.js +0 -32
- package/lib/common/reducers/taking.js +0 -40
- package/lib/common/reducers/ui.js +0 -15
- package/lib/common/reducers/upload.js +0 -11
- package/lib/common/selectors/analyses.js +0 -14
- package/lib/common/selectors/calculator.js +4 -11
- package/lib/common/selectors/calls.js +0 -3
- package/lib/common/selectors/config.js +0 -4
- package/lib/common/selectors/interactionTypes.js +5 -13
- package/lib/common/selectors/items.js +0 -7
- package/lib/common/selectors/qtiImports.js +2 -9
- package/lib/common/selectors/quizSessionResults.js +0 -5
- package/lib/common/selectors/quizSessions.js +3 -14
- package/lib/common/selectors/quizzes.js +4 -39
- package/lib/common/selectors/rce.js +0 -4
- package/lib/common/selectors/reporting.js +0 -6
- package/lib/common/selectors/sessionItemResults.js +2 -10
- package/lib/common/selectors/sessionItems.js +2 -11
- package/lib/common/selectors/taking.js +0 -16
- package/lib/common/selectors/ui.js +0 -2
- package/lib/common/util/CustomPropTypes.js +0 -18
- package/lib/common/util/ElementsForSelectors.js +0 -4
- package/lib/common/util/ExhaustivePaginatedFetcher.js +7 -32
- package/lib/common/util/Fetcher.js +24 -95
- package/lib/common/util/MultiWeakMap.js +0 -21
- package/lib/common/util/PaginatedFetcher.js +2 -29
- package/lib/common/util/ThunkQueue.js +3 -33
- package/lib/common/util/TimeRecordingService.js +0 -16
- package/lib/common/util/TimerService.js +3 -50
- package/lib/common/util/cachePreviousArgs.js +0 -7
- package/lib/common/util/callHelpers.js +0 -10
- package/lib/common/util/componentForItem.js +1 -11
- package/lib/common/util/crossDomainMessaging.js +0 -2
- package/lib/common/util/debounceLatestPromise.js +0 -6
- package/lib/common/util/featureCheck.js +3 -13
- package/lib/common/util/fetchHelpers.js +0 -1
- package/lib/common/util/fitbCopyHelper.js +1 -4
- package/lib/common/util/formatTimespan.js +0 -18
- package/lib/common/util/generateDisplayPositions.js +2 -7
- package/lib/common/util/httpHeaders.js +0 -4
- package/lib/common/util/immutableHelpers.js +4 -10
- package/lib/common/util/instUIMessages.js +0 -2
- package/lib/common/util/interactionTypeMetadata.js +3 -9
- package/lib/common/util/interactionTypePropsHelper.js +0 -14
- package/lib/common/util/interactionTypeRecordForItem.js +1 -10
- package/lib/common/util/jsonify.js +1 -5
- package/lib/common/util/keyboardClickable.js +0 -2
- package/lib/common/util/mathRenderingUtils.js +0 -2
- package/lib/common/util/maxContent.js +0 -6
- package/lib/common/util/modalHelpers.js +0 -2
- package/lib/common/util/noop.js +0 -2
- package/lib/common/util/persistedState.js +0 -13
- package/lib/common/util/printUtils.js +0 -7
- package/lib/common/util/rceChecker.js +1 -10
- package/lib/common/util/renderAlerts.js +6 -17
- package/lib/common/util/serializeEvent.js +0 -8
- package/lib/common/util/sessionStore.js +4 -13
- package/lib/common/util/valMap.js +0 -4
- package/lib/common/util/warningHelpers.js +0 -27
- package/lib/common/util/windowChecks.js +0 -10
- package/lib/common/util/withCachedArguments.js +0 -9
- package/lib/common/util/withDynamoPagination.js +14 -43
- package/lib/common/util/withStateCache.js +0 -15
- package/lib/config.js +2 -11
- package/lib/configureStore.js +9 -60
- package/lib/grading/api/quizEntryRegrades.js +3 -9
- package/lib/grading/api/updateResults.js +0 -12
- package/lib/index.js +0 -130
- package/lib/messages/LocalStorageAdapter.js +0 -14
- package/lib/messages/LocalStorageLimits.js +2 -25
- package/lib/messages/StorageExhaustionError.js +1 -12
- package/lib/messages/postMessageService.js +0 -29
- package/lib/messages/subjectHandlers/forwardMessage.js +0 -2
- package/lib/messages/subjectHandlers/lti.capabilities.js +0 -2
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +0 -2
- package/lib/messages/subjectHandlers/lti.frameResize.js +0 -4
- package/lib/messages/subjectHandlers/lti.get_data.js +2 -9
- package/lib/messages/subjectHandlers/lti.put_data.js +3 -14
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +0 -7
- package/lib/messages/utils.js +0 -1
- package/lib/moderating/api/quizSessionEvents.js +0 -6
- package/lib/moderating/api/quizSessions.js +0 -8
- package/lib/moderating/components/events/Event.js +3 -33
- package/lib/moderating/components/events/PageBlurredEvent.js +0 -14
- package/lib/moderating/components/events/PageFocusedEvent.js +0 -14
- package/lib/moderating/components/events/RCEEvent.js +0 -14
- package/lib/moderating/components/events/ResponseEvent.js +5 -31
- package/lib/moderating/components/events/SessionStartEvent.js +0 -19
- package/lib/moderating/components/events/styles.js +0 -2
- package/lib/moderating/components/events/theme.js +1 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -33
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -32
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -33
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -35
- package/lib/moderating/components/resources/AccommodationsModal/index.js +7 -42
- package/lib/moderating/components/resources/ElapsedTime.js +5 -19
- package/lib/moderating/components/resources/ModerateTable/index.js +0 -11
- package/lib/moderating/components/resources/ModerateTable/presenter.js +24 -93
- package/lib/moderating/components/resources/ModerateTable/styles.js +0 -4
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -3
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -7
- package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -8
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +21 -81
- package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -6
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +0 -2
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +0 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +0 -10
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -42
- package/lib/moderating/components/sidebar/ModerateTray/index.js +0 -7
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +0 -39
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +0 -13
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -31
- package/lib/reduxStore.js +0 -11
- package/lib/reporting/api/getAnalysesExport.js +4 -18
- package/lib/reporting/api/getAnalysesStatus.js +3 -13
- package/lib/reporting/api/getItemAnalyses.js +3 -13
- package/lib/reporting/api/getQuizAnalysis.js +3 -13
- package/lib/reporting/api/itemAnalyses.js +0 -6
- package/lib/reporting/api/quizAnalyses.js +0 -6
- package/lib/reporting/components/Caption/index.js +6 -21
- package/lib/reporting/components/Caption/styles.js +0 -2
- package/lib/reporting/components/Caption/theme.js +2 -4
- package/lib/reporting/components/MetricsListItem/index.js +9 -26
- package/lib/reporting/components/MetricsListItem/styles.js +0 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +0 -3
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +11 -45
- package/lib/reporting/components/charts/CentileDistribution/styles.js +0 -4
- package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -4
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/Distribution.js +0 -3
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +0 -3
- package/lib/reporting/components/charts/Distribution/index.js +0 -3
- package/lib/reporting/components/charts/Distribution/presenter.js +13 -60
- package/lib/reporting/components/charts/Distribution/styles.js +0 -2
- package/lib/reporting/components/charts/Distribution/theme.js +1 -3
- package/lib/reporting/components/charts/Legend/index.js +9 -26
- package/lib/reporting/components/charts/Legend/styles.js +0 -4
- package/lib/reporting/components/charts/Legend/theme.js +3 -5
- package/lib/reporting/components/charts/QuintileDistribution/index.js +0 -3
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +9 -42
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +0 -2
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +0 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +5 -37
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -9
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -7
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +0 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +0 -9
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +15 -59
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -5
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +10 -42
- package/lib/reporting/components/quizAnalysis/styles.js +0 -5
- package/lib/reporting/components/quizAnalysis/theme.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +10 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +9 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -23
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -24
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +5 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +8 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +15 -53
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -29
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +13 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +10 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +10 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +9 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +5 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +5 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +10 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +7 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -14
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +6 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +5 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +11 -62
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +8 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +19 -61
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +7 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +0 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +20 -78
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +0 -38
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -70
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +0 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -29
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -12
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +0 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +17 -58
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -4
- package/lib/reporting/components/resources/ReportCard/index.js +9 -28
- package/lib/reporting/components/resources/ReportCard/styles.js +0 -4
- package/lib/reporting/components/resources/ReportCard/theme.js +1 -3
- package/lib/reporting/components/resources/ReportList/index.js +9 -25
- package/lib/reporting/components/resources/ReportList/styles.js +0 -2
- package/lib/reporting/components/resources/ReportList/theme.js +0 -2
- package/lib/taking/api/taking.js +30 -78
- package/lib/taking/learnosity/index.js +9 -40
- package/package.json +11 -12
|
@@ -1,116 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = exports.Bank = void 0;
|
|
11
|
-
|
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
15
|
-
|
|
16
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
-
|
|
18
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
19
|
-
|
|
20
13
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
21
|
-
|
|
22
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
23
|
-
|
|
24
15
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
25
|
-
|
|
26
16
|
var _react = require("react");
|
|
27
|
-
|
|
28
17
|
var immutable = _interopRequireWildcard(require("immutable"));
|
|
29
|
-
|
|
30
18
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
31
|
-
|
|
32
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
33
|
-
|
|
34
20
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
35
|
-
|
|
36
21
|
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
37
|
-
|
|
38
22
|
var _uiIcons = require("@instructure/ui-icons");
|
|
39
|
-
|
|
40
23
|
var _uiBreadcrumb = require("@instructure/ui-breadcrumb");
|
|
41
|
-
|
|
42
24
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
43
|
-
|
|
44
25
|
var _uiHeading = require("@instructure/ui-heading");
|
|
45
|
-
|
|
46
26
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
47
|
-
|
|
48
27
|
var _emotion = require("@instructure/emotion");
|
|
49
|
-
|
|
50
28
|
var _uiCheckbox = require("@instructure/ui-checkbox");
|
|
51
|
-
|
|
52
29
|
var _uiView = require("@instructure/ui-view");
|
|
53
|
-
|
|
54
30
|
var _index = require("../HeaderBreadCrumb/index.js");
|
|
55
|
-
|
|
56
|
-
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
57
|
-
|
|
31
|
+
var _Bank2 = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
58
32
|
var _index2 = _interopRequireDefault(require("../../../common/components/layout/Page/index.js"));
|
|
59
|
-
|
|
60
33
|
var _index3 = _interopRequireDefault(require("../../../common/components/shared/PaginatedCollection/index.js"));
|
|
61
|
-
|
|
62
34
|
var _QuizEntry = _interopRequireDefault(require("../../../common/records/QuizEntry.js"));
|
|
63
|
-
|
|
64
35
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
65
|
-
|
|
66
36
|
var _debounceLatestPromise = _interopRequireDefault(require("../../../common/util/debounceLatestPromise.js"));
|
|
67
|
-
|
|
68
37
|
var _index4 = _interopRequireDefault(require("../../../banks/components/AddBankEntryModal/index.js"));
|
|
69
|
-
|
|
70
38
|
var _index5 = _interopRequireDefault(require("../../../banks/components/BankEntriesList/index.js"));
|
|
71
|
-
|
|
72
39
|
var _index6 = _interopRequireDefault(require("../../../banks/components/BankSearch/index.js"));
|
|
73
|
-
|
|
74
40
|
var _index7 = _interopRequireDefault(require("../../../banks/components/HeaderMenu/index.js"));
|
|
75
|
-
|
|
76
41
|
var _index8 = _interopRequireDefault(require("../NavWrapper/index.js"));
|
|
77
|
-
|
|
78
42
|
var _quizCommon = require("@instructure/quiz-common");
|
|
79
|
-
|
|
80
43
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
81
|
-
|
|
82
44
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
45
|
+
var _dec, _class, _Bank;
|
|
46
|
+
/** @jsx jsx */
|
|
86
47
|
var _ref = (0, _emotion.jsx)(_uiIcons.IconMoreSolid, null);
|
|
87
|
-
|
|
88
|
-
var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
48
|
+
var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_Bank = /*#__PURE__*/function (_Component) {
|
|
89
49
|
(0, _inherits2.default)(Bank, _Component);
|
|
90
|
-
|
|
91
50
|
var _super = (0, _createSuper2.default)(Bank);
|
|
92
|
-
|
|
93
51
|
function Bank() {
|
|
94
52
|
var _this;
|
|
95
|
-
|
|
96
53
|
(0, _classCallCheck2.default)(this, Bank);
|
|
97
|
-
|
|
98
54
|
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
99
55
|
_args[_key] = arguments[_key];
|
|
100
56
|
}
|
|
101
|
-
|
|
102
57
|
_this = _super.call.apply(_super, [this].concat(_args));
|
|
103
58
|
_this.state = {
|
|
104
59
|
sharedWithCourse: false,
|
|
105
60
|
shareWithCourseCheckboxDisabled: true
|
|
106
61
|
};
|
|
107
|
-
|
|
108
62
|
_this.openAddBankEntryModal = function () {
|
|
109
63
|
_this.props.openModal(_quizCommon.ADD_BANK_ENTRY_MODAL, {
|
|
110
64
|
modalTrigger: _this.createBankEntryButton
|
|
111
65
|
});
|
|
112
66
|
};
|
|
113
|
-
|
|
114
67
|
_this.renderHeaderMenu = function () {
|
|
115
68
|
if (!_this.props.isCompact) {
|
|
116
69
|
return (0, _emotion.jsx)(_index7.default, {
|
|
@@ -121,30 +74,24 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
121
74
|
});
|
|
122
75
|
}
|
|
123
76
|
};
|
|
124
|
-
|
|
125
77
|
_this.storeCreateBankEntryButtonRef = function (c) {
|
|
126
78
|
_this.createBankEntryButton = c;
|
|
127
79
|
};
|
|
128
|
-
|
|
129
80
|
_this.renderBankBreadCrumbLink = function () {
|
|
130
81
|
return (0, _emotion.jsx)(_uiBreadcrumb.BreadcrumbLink, {
|
|
131
82
|
key: "bank"
|
|
132
83
|
}, _this.props.bank.title);
|
|
133
84
|
};
|
|
134
|
-
|
|
135
85
|
_this.toggleCheckbox = function () {
|
|
136
86
|
// disable until request resolves
|
|
137
87
|
_this.setState({
|
|
138
88
|
shareWithCourseCheckboxDisabled: true
|
|
139
89
|
});
|
|
140
|
-
|
|
141
90
|
_this.changeSharedPermissions();
|
|
142
91
|
};
|
|
143
|
-
|
|
144
92
|
_this.unshareBankWithCourse = /*#__PURE__*/function () {
|
|
145
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
93
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(sharedBank) {
|
|
146
94
|
var _this$props, updateSharedBankPermission, bankId, getSharedBank, scope;
|
|
147
|
-
|
|
148
95
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
149
96
|
while (1) {
|
|
150
97
|
switch (_context.prev = _context.next) {
|
|
@@ -152,7 +99,6 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
152
99
|
_this$props = _this.props, updateSharedBankPermission = _this$props.updateSharedBankPermission, bankId = _this$props.bankId, getSharedBank = _this$props.getSharedBank, scope = _this$props.scope;
|
|
153
100
|
_context.next = 3;
|
|
154
101
|
return updateSharedBankPermission(bankId, sharedBank.get('id'), _quizCommon.REMOVED_ACCESS);
|
|
155
|
-
|
|
156
102
|
case 3:
|
|
157
103
|
getSharedBank(bankId, scope.type, scope.uuid).catch(function (err) {
|
|
158
104
|
// make sure the user still has access to the bank
|
|
@@ -160,7 +106,6 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
160
106
|
_this.props.navigateToBanks();
|
|
161
107
|
}
|
|
162
108
|
});
|
|
163
|
-
|
|
164
109
|
case 4:
|
|
165
110
|
case "end":
|
|
166
111
|
return _context.stop();
|
|
@@ -168,24 +113,19 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
168
113
|
}
|
|
169
114
|
}, _callee);
|
|
170
115
|
}));
|
|
171
|
-
|
|
172
116
|
return function (_x) {
|
|
173
117
|
return _ref2.apply(this, arguments);
|
|
174
118
|
};
|
|
175
119
|
}();
|
|
176
|
-
|
|
177
120
|
_this.translatedPermissionLevel = function (permission) {
|
|
178
121
|
var _CAN_EDIT$READ_ONLY$p;
|
|
179
|
-
|
|
180
122
|
return (_CAN_EDIT$READ_ONLY$p = {}, (0, _defineProperty2.default)(_CAN_EDIT$READ_ONLY$p, _quizCommon.CAN_EDIT, (0, _formatMessage.default)('edit')), (0, _defineProperty2.default)(_CAN_EDIT$READ_ONLY$p, _quizCommon.READ_ONLY, (0, _formatMessage.default)('view')), _CAN_EDIT$READ_ONLY$p)[permission];
|
|
181
123
|
};
|
|
182
|
-
|
|
183
124
|
_this.confirmUnshareBankWithCourse = function () {
|
|
184
125
|
var confirmText = (0, _formatMessage.default)('You are about to remove { accessLevel } access for { entityTitle } to this bank.', {
|
|
185
126
|
accessLevel: _this.translatedPermissionLevel(_this.props.courseSharedBank.get('permission')),
|
|
186
127
|
entityTitle: _this.props.scope.title
|
|
187
128
|
});
|
|
188
|
-
|
|
189
129
|
_this.props.withConfirm((0, _partial.default)(_this.unshareBankWithCourse, _this.props.courseSharedBank), {
|
|
190
130
|
title: (0, _formatMessage.default)('Unshare Bank with Course'),
|
|
191
131
|
text: confirmText,
|
|
@@ -193,13 +133,11 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
193
133
|
onCancel: _this.onCancelUnshareBankWithCourse
|
|
194
134
|
});
|
|
195
135
|
};
|
|
196
|
-
|
|
197
136
|
_this.onCancelUnshareBankWithCourse = function () {
|
|
198
137
|
_this.setState({
|
|
199
138
|
shareWithCourseCheckboxDisabled: false
|
|
200
139
|
});
|
|
201
140
|
};
|
|
202
|
-
|
|
203
141
|
_this.addBankToQuiz = function () {
|
|
204
142
|
var newEntry = _QuizEntry.default.create({
|
|
205
143
|
entryId: _this.props.bankId,
|
|
@@ -207,43 +145,37 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
207
145
|
position: _this.props.position,
|
|
208
146
|
stimulusQuizEntryId: _this.props.stimulusId
|
|
209
147
|
});
|
|
210
|
-
|
|
211
148
|
_this.props.addEntryToQuiz(_this.props.activeQuizId, newEntry.entryId, newEntry.entryType, newEntry.getProperties(), false).then(function () {
|
|
212
149
|
_this.props.screenreaderNotification((0, _formatMessage.default)('Bank was successfully added to the quiz'));
|
|
213
150
|
});
|
|
214
151
|
};
|
|
215
|
-
|
|
216
152
|
_this.renderTopLeftMenu = function () {
|
|
217
153
|
return (0, _emotion.jsx)("div", {
|
|
218
154
|
css: _this.props.styles.topLeftMenu
|
|
219
155
|
}, _this.renderMultiAdd());
|
|
220
156
|
};
|
|
221
|
-
|
|
222
157
|
_this.renderTopRightMenu = function () {
|
|
223
158
|
return (0, _emotion.jsx)("div", {
|
|
224
159
|
css: _this.props.styles.topRightMenu
|
|
225
160
|
}, _this.renderNewBankEntryButton());
|
|
226
161
|
};
|
|
227
|
-
|
|
228
162
|
_this.announceResults = function (_ref3) {
|
|
229
163
|
var totalPages = _ref3.totalPages;
|
|
230
164
|
var message = (0, _formatMessage.default)("{\n count, plural,\n =0 {No search results found}\n one {Displaying one page of results}\n other {Displaying # pages of results}\n }", {
|
|
231
165
|
count: totalPages
|
|
232
|
-
});
|
|
166
|
+
});
|
|
167
|
+
// Audibly announce when search results are ready.
|
|
233
168
|
// We debounce using a larger interval for a11y, so that the user isn't
|
|
234
169
|
// flooded with "Search results ready" messages every time they type a
|
|
235
170
|
// character
|
|
236
|
-
|
|
237
171
|
_this.props.screenreaderNotification(message);
|
|
238
172
|
};
|
|
239
|
-
|
|
240
173
|
_this.debouncedAnnounceResults = (0, _debounce.default)(_this.announceResults, 1000);
|
|
241
|
-
|
|
242
174
|
_this.getPage = function (page, search) {
|
|
243
175
|
var _this$props2 = _this.props,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
176
|
+
getBankEntries = _this$props2.getBankEntries,
|
|
177
|
+
bankId = _this$props2.bankId,
|
|
178
|
+
useBankSearch = _this$props2.useBankSearch;
|
|
247
179
|
var text = search.get('text');
|
|
248
180
|
var interactionTypes = search.get('interactionTypes', immutable.Set()).toJS();
|
|
249
181
|
var tagIds = search.get('tags', []).map(function (tag) {
|
|
@@ -259,24 +191,19 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
259
191
|
filters: filters
|
|
260
192
|
};
|
|
261
193
|
var resultPage = getBankEntries(bankId, useBankSearch, params);
|
|
262
|
-
|
|
263
194
|
if (resultPage) {
|
|
264
195
|
return resultPage.then(function (results) {
|
|
265
196
|
_this.debouncedAnnounceResults(results);
|
|
266
|
-
|
|
267
197
|
return results;
|
|
268
198
|
});
|
|
269
199
|
} else {
|
|
270
200
|
return Promise.resolve(null);
|
|
271
201
|
}
|
|
272
202
|
};
|
|
273
|
-
|
|
274
203
|
_this.getPageDebounced = (0, _debounceLatestPromise.default)(function () {
|
|
275
204
|
var _this2;
|
|
276
|
-
|
|
277
205
|
return (_this2 = _this).getPage.apply(_this2, arguments);
|
|
278
206
|
}, 100);
|
|
279
|
-
|
|
280
207
|
_this.renderRecords = function (recordIds) {
|
|
281
208
|
var addEntryFunc = _this.props.isCompact && _this.props.addEntryToQuiz || null;
|
|
282
209
|
return (0, _emotion.jsx)(_index5.default, {
|
|
@@ -287,30 +214,25 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
287
214
|
isQuizContentLocked: _this.props.isQuizContentLocked
|
|
288
215
|
});
|
|
289
216
|
};
|
|
290
|
-
|
|
291
217
|
return _this;
|
|
292
218
|
}
|
|
293
|
-
|
|
294
219
|
(0, _createClass2.default)(Bank, [{
|
|
295
220
|
key: "componentDidMount",
|
|
296
221
|
value: function componentDidMount() {
|
|
297
222
|
this.props.resetSearch(this.props.bankId);
|
|
298
|
-
|
|
299
223
|
if (this.props.onError) {
|
|
300
224
|
this.props.getBank(this.props.bankId).catch(this.props.onError);
|
|
301
|
-
|
|
302
225
|
if (this.shouldRenderShareWithCourseCheckbox()) {
|
|
303
226
|
this.props.getSharedBank(this.props.bankId, this.props.scope.type, this.props.scope.uuid).catch(this.props.onError);
|
|
304
227
|
}
|
|
305
228
|
} else {
|
|
306
229
|
this.props.getBank(this.props.bankId);
|
|
307
|
-
|
|
308
230
|
if (this.shouldRenderShareWithCourseCheckbox()) {
|
|
309
231
|
this.props.getSharedBank(this.props.bankId, this.props.scope.type, this.props.scope.uuid);
|
|
310
232
|
}
|
|
311
|
-
}
|
|
312
|
-
|
|
233
|
+
}
|
|
313
234
|
|
|
235
|
+
// when courseSharedBank is already loaded
|
|
314
236
|
if (this.props.courseSharedBank) {
|
|
315
237
|
this.setShareWithCourseCheckbox();
|
|
316
238
|
}
|
|
@@ -319,9 +241,7 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
319
241
|
key: "componentDidUpdate",
|
|
320
242
|
value: function componentDidUpdate(prevProps) {
|
|
321
243
|
var _prevProps$courseShar, _this$props$courseSha;
|
|
322
|
-
|
|
323
244
|
var permissionChanged = ((_prevProps$courseShar = prevProps.courseSharedBank) === null || _prevProps$courseShar === void 0 ? void 0 : _prevProps$courseShar.get('permission')) !== ((_this$props$courseSha = this.props.courseSharedBank) === null || _this$props$courseSha === void 0 ? void 0 : _this$props$courseSha.get('permission'));
|
|
324
|
-
|
|
325
245
|
if (this.props.courseSharedBank && permissionChanged) {
|
|
326
246
|
this.setShareWithCourseCheckbox();
|
|
327
247
|
}
|
|
@@ -355,11 +275,11 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
355
275
|
key: "renderNav",
|
|
356
276
|
value: function renderNav() {
|
|
357
277
|
var _this$props3 = this.props,
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
278
|
+
scope = _this$props3.scope,
|
|
279
|
+
closeTray = _this$props3.closeTray,
|
|
280
|
+
navigateToBanks = _this$props3.navigateToBanks,
|
|
281
|
+
navigateToBuild = _this$props3.navigateToBuild,
|
|
282
|
+
returnToUrl = _this$props3.returnToUrl;
|
|
363
283
|
var isScopeEmpty = !Object.keys(scope).length;
|
|
364
284
|
return (0, _emotion.jsx)(_index8.default, {
|
|
365
285
|
closeTray: closeTray,
|
|
@@ -371,7 +291,6 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
371
291
|
isCompact: this.props.isCompact,
|
|
372
292
|
iceTopNavBarEnabled: this.props.iceTopNavBarEnabled,
|
|
373
293
|
menuItemPath: "/banks/".concat(this.props.bankId) // eslint-disable-line react/jsx-no-literals
|
|
374
|
-
|
|
375
294
|
}, this.renderBankBreadCrumbLink());
|
|
376
295
|
}
|
|
377
296
|
}, {
|
|
@@ -423,7 +342,6 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
423
342
|
if (!this.shouldRenderShareWithCourseCheckbox()) {
|
|
424
343
|
return null;
|
|
425
344
|
}
|
|
426
|
-
|
|
427
345
|
var label = (0, _formatMessage.default)('Share with { courseName }', {
|
|
428
346
|
courseName: this.props.scope.title
|
|
429
347
|
});
|
|
@@ -463,7 +381,6 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
463
381
|
key: "renderMultiAdd",
|
|
464
382
|
value: function renderMultiAdd() {
|
|
465
383
|
var isEmpty = this.props.bank.itemEntryCount === 0;
|
|
466
|
-
|
|
467
384
|
if (this.props.isCompact && !this.props.isQuizContentLocked && !isEmpty) {
|
|
468
385
|
return (0, _emotion.jsx)(_uiButtons.Button, {
|
|
469
386
|
onClick: this.addBankToQuiz,
|
|
@@ -498,15 +415,12 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
498
415
|
key: "emptyLoadText",
|
|
499
416
|
value: function emptyLoadText() {
|
|
500
417
|
var noFilters = this.props.bank.filters === null;
|
|
501
|
-
|
|
502
418
|
var noQuestions = function noQuestions() {
|
|
503
419
|
return (0, _formatMessage.default)('There are no questions in this bank yet.');
|
|
504
420
|
};
|
|
505
|
-
|
|
506
421
|
var noResults = function noResults() {
|
|
507
422
|
return (0, _formatMessage.default)('The search returned no results.');
|
|
508
423
|
};
|
|
509
|
-
|
|
510
424
|
return noFilters ? noQuestions() : noResults();
|
|
511
425
|
}
|
|
512
426
|
}, {
|
|
@@ -534,11 +448,11 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
534
448
|
}]);
|
|
535
449
|
Bank.displayName = "Bank";
|
|
536
450
|
return Bank;
|
|
537
|
-
}(_react.Component),
|
|
451
|
+
}(_react.Component), _Bank.propTypes = {
|
|
538
452
|
activeQuizId: _propTypes.default.string,
|
|
539
453
|
addEntryToQuiz: _propTypes.default.func,
|
|
540
454
|
bankId: _propTypes.default.string.isRequired,
|
|
541
|
-
bank: _propTypes.default.instanceOf(
|
|
455
|
+
bank: _propTypes.default.instanceOf(_Bank2.default).isRequired,
|
|
542
456
|
useBankSearch: _propTypes.default.bool,
|
|
543
457
|
closeTray: _propTypes.default.func,
|
|
544
458
|
getBank: _propTypes.default.func.isRequired,
|
|
@@ -577,7 +491,7 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
577
491
|
iceTopNavBarEnabled: _propTypes.default.bool,
|
|
578
492
|
// eslint-disable-next-line react/require-default-props,react/forbid-prop-types
|
|
579
493
|
styles: _propTypes.default.object
|
|
580
|
-
},
|
|
494
|
+
}, _Bank.defaultProps = {
|
|
581
495
|
activeQuizId: null,
|
|
582
496
|
addEntryToQuiz: null,
|
|
583
497
|
closeTray: function closeTray() {},
|
|
@@ -594,7 +508,7 @@ var Bank = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
594
508
|
showShareBankFromTray: false,
|
|
595
509
|
courseSharedBank: null,
|
|
596
510
|
iceTopNavBarEnabled: false
|
|
597
|
-
},
|
|
511
|
+
}, _Bank)) || _class);
|
|
598
512
|
exports.Bank = Bank;
|
|
599
513
|
var _default = Bank;
|
|
600
514
|
exports.default = _default;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
|
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var generateStyle = function generateStyle(componentTheme) {
|
|
15
11
|
var menuStyles = {
|
|
16
12
|
display: 'flex',
|
|
@@ -45,6 +41,5 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
45
41
|
}
|
|
46
42
|
};
|
|
47
43
|
};
|
|
48
|
-
|
|
49
44
|
var _default = generateStyle;
|
|
50
45
|
exports.default = _default;
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
8
|
var spacing = _ref.spacing,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
colors = _ref.colors,
|
|
10
|
+
breakpoints = _ref.breakpoints;
|
|
12
11
|
return {
|
|
13
12
|
contentBackgroundColor: colors.white,
|
|
14
13
|
contentPaddingTopBottom: spacing.medium,
|
|
@@ -20,6 +19,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
20
19
|
filtersMarginTop: spacing.large
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
|
-
|
|
24
22
|
var _default = generateComponentTheme;
|
|
25
23
|
exports.default = _default;
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.mapStateToProps = mapStateToProps;
|
|
9
8
|
exports.default = void 0;
|
|
10
|
-
|
|
11
9
|
var _immutable = require("immutable");
|
|
12
|
-
|
|
13
10
|
var _reactRedux = require("../../../common/react-redux.js");
|
|
14
|
-
|
|
15
11
|
var _presenter = _interopRequireDefault(require("./presenter.js"));
|
|
16
|
-
|
|
17
12
|
var _BankEntry = _interopRequireDefault(require("../../../common/records/BankEntry.js"));
|
|
18
|
-
|
|
19
13
|
function mapStateToProps(state, props) {
|
|
20
14
|
var bankEntries = (0, _immutable.List)(props.recordIds).map(function (id) {
|
|
21
15
|
return new _BankEntry.default(state.getIn(['bankEntries', id]));
|
|
@@ -24,7 +18,5 @@ function mapStateToProps(state, props) {
|
|
|
24
18
|
bankEntries: bankEntries
|
|
25
19
|
};
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
var _default = (0, _reactRedux.connect)(mapStateToProps)(_presenter.default);
|
|
29
|
-
|
|
30
22
|
exports.default = _default;
|
|
@@ -1,54 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = exports.BankEntriesList = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
10
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
-
|
|
16
11
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
-
|
|
18
12
|
var _react = require("react");
|
|
19
|
-
|
|
20
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
|
-
|
|
22
14
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
23
|
-
|
|
24
15
|
var _emotion = require("@instructure/emotion");
|
|
25
|
-
|
|
26
16
|
var _index = _interopRequireDefault(require("../../../common/components/shared/Card/index.js"));
|
|
27
|
-
|
|
28
17
|
var _index2 = _interopRequireDefault(require("../BankEntryRow/index.js"));
|
|
29
|
-
|
|
30
18
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
31
|
-
|
|
32
19
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var BankEntriesList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
20
|
+
var _dec, _class, _BankEntriesList;
|
|
21
|
+
/** @jsx jsx */
|
|
22
|
+
var BankEntriesList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_BankEntriesList = /*#__PURE__*/function (_Component) {
|
|
37
23
|
(0, _inherits2.default)(BankEntriesList, _Component);
|
|
38
|
-
|
|
39
24
|
var _super = (0, _createSuper2.default)(BankEntriesList);
|
|
40
|
-
|
|
41
25
|
function BankEntriesList() {
|
|
42
26
|
var _this;
|
|
43
|
-
|
|
44
27
|
(0, _classCallCheck2.default)(this, BankEntriesList);
|
|
45
|
-
|
|
46
28
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47
29
|
args[_key] = arguments[_key];
|
|
48
30
|
}
|
|
49
|
-
|
|
50
31
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
51
|
-
|
|
52
32
|
_this.renderEntry = function (entry) {
|
|
53
33
|
var entryId = entry.get('id');
|
|
54
34
|
return (0, _emotion.jsx)(_index.default, {
|
|
@@ -62,10 +42,8 @@ var BankEntriesList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
62
42
|
isQuizContentLocked: _this.props.isQuizContentLocked
|
|
63
43
|
}));
|
|
64
44
|
};
|
|
65
|
-
|
|
66
45
|
return _this;
|
|
67
46
|
}
|
|
68
|
-
|
|
69
47
|
(0, _createClass2.default)(BankEntriesList, [{
|
|
70
48
|
key: "render",
|
|
71
49
|
value: function render() {
|
|
@@ -74,7 +52,7 @@ var BankEntriesList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
74
52
|
}]);
|
|
75
53
|
BankEntriesList.displayName = "BankEntriesList";
|
|
76
54
|
return BankEntriesList;
|
|
77
|
-
}(_react.Component),
|
|
55
|
+
}(_react.Component), _BankEntriesList.propTypes = {
|
|
78
56
|
addEntryToQuiz: _propTypes.default.func,
|
|
79
57
|
bank: _reactImmutableProptypes.default.record.isRequired,
|
|
80
58
|
bankEntries: _reactImmutableProptypes.default.list.isRequired,
|
|
@@ -82,10 +60,10 @@ var BankEntriesList = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
82
60
|
isQuizContentLocked: _propTypes.default.bool.isRequired,
|
|
83
61
|
// eslint-disable-next-line react/require-default-props,react/forbid-prop-types
|
|
84
62
|
styles: _propTypes.default.object
|
|
85
|
-
},
|
|
63
|
+
}, _BankEntriesList.defaultProps = {
|
|
86
64
|
addEntryToQuiz: null,
|
|
87
65
|
isQuizContentLocked: false
|
|
88
|
-
},
|
|
66
|
+
}, _BankEntriesList)) || _class);
|
|
89
67
|
exports.BankEntriesList = BankEntriesList;
|
|
90
68
|
var _default = BankEntriesList;
|
|
91
69
|
exports.default = _default;
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateStyle = function generateStyle(componentTheme) {
|
|
9
8
|
return {
|
|
10
9
|
entryRow: {
|
|
@@ -12,6 +11,5 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
12
11
|
}
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
var _default = generateStyle;
|
|
17
15
|
exports.default = _default;
|
|
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
8
|
var spacing = _ref.spacing;
|
|
10
9
|
return {
|
|
11
10
|
entryRowMargin: spacing.small
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
|
-
|
|
15
13
|
var _default = generateComponentTheme;
|
|
16
14
|
exports.default = _default;
|
|
@@ -1,56 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = exports.BankEntry = void 0;
|
|
9
|
-
|
|
10
8
|
var _redux = require("redux");
|
|
11
|
-
|
|
12
9
|
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
13
|
-
|
|
14
10
|
var _reactRedux = require("../../../common/react-redux.js");
|
|
15
|
-
|
|
16
11
|
var _items = require("../../../building/api/items.js");
|
|
17
|
-
|
|
18
12
|
var _stimuli = require("../../../building/api/stimuli.js");
|
|
19
|
-
|
|
20
13
|
var _modifications = require("../../../common/actions/modifications.js");
|
|
21
|
-
|
|
22
14
|
var _tagAssociations = require("../../../common/actions/tagAssociations.js");
|
|
23
|
-
|
|
24
15
|
var _BankEntry = _interopRequireDefault(require("../../../common/records/BankEntry.js"));
|
|
25
|
-
|
|
26
16
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
27
|
-
|
|
28
17
|
var _bankEntries = require("../../../banks/api/bankEntries.js");
|
|
29
|
-
|
|
30
18
|
var _banks = require("../../../banks/api/banks.js");
|
|
31
|
-
|
|
32
19
|
var _tagAssociations2 = require("../../../banks/api/tagAssociations.js");
|
|
33
|
-
|
|
34
20
|
var _presenter = require("./presenter.js");
|
|
35
|
-
|
|
36
21
|
var _featureCheck = require("../../../common/util/featureCheck.js");
|
|
37
|
-
|
|
38
22
|
var _ui = require("../../../common/actions/ui.js");
|
|
39
|
-
|
|
40
23
|
var _modal = require("../../../common/actions/modal.js");
|
|
41
|
-
|
|
42
24
|
var _quizCommon = require("@instructure/quiz-common");
|
|
43
|
-
|
|
44
25
|
function mapStateToProps(state, props) {
|
|
45
26
|
var tempBankEntry = state.getIn(['modifications', 'bankEntries', _quizCommon.TEMPORARY_BANK_ENTRY_ID]);
|
|
46
27
|
var bankEntry;
|
|
47
|
-
|
|
48
28
|
if (tempBankEntry) {
|
|
49
29
|
bankEntry = new _BankEntry.default(tempBankEntry);
|
|
50
30
|
} else {
|
|
51
31
|
bankEntry = new _BankEntry.default(state.getIn(['bankEntries', props.bankEntryId]));
|
|
52
32
|
}
|
|
53
|
-
|
|
54
33
|
var bank = new _Bank.default(state.getIn(['banks', props.bankId]));
|
|
55
34
|
var shouldClone = state.getIn(['ui', _quizCommon.SHOULD_CLONE_ITEM]) || false;
|
|
56
35
|
var entry = bankEntry.getEntry();
|
|
@@ -67,7 +46,6 @@ function mapStateToProps(state, props) {
|
|
|
67
46
|
useBankTags: (0, _featureCheck.featureOn)('item_bank_tagging')
|
|
68
47
|
};
|
|
69
48
|
}
|
|
70
|
-
|
|
71
49
|
function mapDispatchToProps(dispatch) {
|
|
72
50
|
return {
|
|
73
51
|
setPendingAdditionTagAssociations: (0, _redux.bindActionCreators)(_tagAssociations.setPendingAdditionTagAssociations, dispatch),
|
|
@@ -90,7 +68,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
90
68
|
openModal: (0, _redux.bindActionCreators)(_modal.openModal, dispatch)
|
|
91
69
|
};
|
|
92
70
|
}
|
|
93
|
-
|
|
94
71
|
var BankEntry = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_presenter.BankEntry);
|
|
95
72
|
exports.BankEntry = BankEntry;
|
|
96
73
|
var _default = BankEntry;
|