@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,58 +1,40 @@
|
|
|
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.getNotEnoughDataAvailableError = exports.getMinimumThreeGradedSubmissionError = exports.getOngoingReportGenerationError = exports.getInsufficentSubmissionNumberError = exports.getReportGenerationFailure = exports.getLastReportGenerationFailed = exports.getFailedToExportReports = exports.getFailedToFetchReports = void 0;
|
|
9
|
-
|
|
10
8
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
11
|
-
|
|
12
9
|
var getFailedToFetchReports = function getFailedToFetchReports() {
|
|
13
10
|
return (0, _formatMessage.default)('An error has occurred while loading this report. Please refresh the page.');
|
|
14
11
|
};
|
|
15
|
-
|
|
16
12
|
exports.getFailedToFetchReports = getFailedToFetchReports;
|
|
17
|
-
|
|
18
13
|
var getFailedToExportReports = function getFailedToExportReports() {
|
|
19
14
|
return (0, _formatMessage.default)('An error has occurred while exporting this report. Please try again.');
|
|
20
15
|
};
|
|
21
|
-
|
|
22
16
|
exports.getFailedToExportReports = getFailedToExportReports;
|
|
23
|
-
|
|
24
17
|
var getLastReportGenerationFailed = function getLastReportGenerationFailed() {
|
|
25
18
|
return (0, _formatMessage.default)('Report generation failed. Please try again.');
|
|
26
19
|
};
|
|
27
|
-
|
|
28
20
|
exports.getLastReportGenerationFailed = getLastReportGenerationFailed;
|
|
29
|
-
|
|
30
21
|
var getReportGenerationFailure = function getReportGenerationFailure() {
|
|
31
22
|
return (0, _formatMessage.default)('An error has occurred while generating this report. Please try again.');
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
exports.getReportGenerationFailure = getReportGenerationFailure;
|
|
35
|
-
|
|
36
25
|
var getInsufficentSubmissionNumberError = function getInsufficentSubmissionNumberError() {
|
|
37
26
|
return (0, _formatMessage.default)('There is not enough data available to generate this report. A minimum of 3 submissions is required to generate. Please try again when more submissions are available.');
|
|
38
27
|
};
|
|
39
|
-
|
|
40
28
|
exports.getInsufficentSubmissionNumberError = getInsufficentSubmissionNumberError;
|
|
41
|
-
|
|
42
29
|
var getOngoingReportGenerationError = function getOngoingReportGenerationError() {
|
|
43
30
|
return (0, _formatMessage.default)('A report for this quiz is currently being generated by another user. Please try again later.');
|
|
44
31
|
};
|
|
45
|
-
|
|
46
32
|
exports.getOngoingReportGenerationError = getOngoingReportGenerationError;
|
|
47
|
-
|
|
48
33
|
var getMinimumThreeGradedSubmissionError = function getMinimumThreeGradedSubmissionError() {
|
|
49
34
|
return (0, _formatMessage.default)('There is not enough data available to generate this report. A minimum of 3 fully graded submissions is required to generate. Please try again when more submissions are graded.');
|
|
50
35
|
};
|
|
51
|
-
|
|
52
36
|
exports.getMinimumThreeGradedSubmissionError = getMinimumThreeGradedSubmissionError;
|
|
53
|
-
|
|
54
37
|
var getNotEnoughDataAvailableError = function getNotEnoughDataAvailableError() {
|
|
55
38
|
return (0, _formatMessage.default)('There is not enough data available to generate this report. Please try again when more submissions are graded.');
|
|
56
39
|
};
|
|
57
|
-
|
|
58
40
|
exports.getNotEnoughDataAvailableError = getNotEnoughDataAvailableError;
|
|
@@ -1,22 +1,16 @@
|
|
|
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.exportReports = void 0;
|
|
9
|
-
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _errorMessages = require("./errorMessages.js");
|
|
15
|
-
|
|
16
11
|
var _contentDisposition = _interopRequireDefault(require("content-disposition"));
|
|
17
|
-
|
|
18
12
|
var exportReports = /*#__PURE__*/function () {
|
|
19
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
13
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
20
14
|
var getAnalysesExport, activeQuizId, filter, format, saveFile, addError, response, dispositionHeader, disposition, filename, blob;
|
|
21
15
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
22
16
|
while (1) {
|
|
@@ -26,44 +20,34 @@ var exportReports = /*#__PURE__*/function () {
|
|
|
26
20
|
_context.prev = 1;
|
|
27
21
|
_context.next = 4;
|
|
28
22
|
return getAnalysesExport(activeQuizId, format, filter);
|
|
29
|
-
|
|
30
23
|
case 4:
|
|
31
24
|
response = _context.sent;
|
|
32
25
|
dispositionHeader = response.headers.get('Content-Disposition');
|
|
33
|
-
|
|
34
26
|
if (dispositionHeader) {
|
|
35
27
|
_context.next = 8;
|
|
36
28
|
break;
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
throw new Error('Response contains no Content-Disposition header.');
|
|
40
|
-
|
|
41
31
|
case 8:
|
|
42
32
|
disposition = _contentDisposition.default.parse(dispositionHeader);
|
|
43
33
|
filename = disposition.parameters.filename;
|
|
44
|
-
|
|
45
34
|
if (filename) {
|
|
46
35
|
_context.next = 12;
|
|
47
36
|
break;
|
|
48
37
|
}
|
|
49
|
-
|
|
50
38
|
throw new Error('Cannot determine filename to save.');
|
|
51
|
-
|
|
52
39
|
case 12:
|
|
53
40
|
_context.next = 14;
|
|
54
41
|
return response.blob();
|
|
55
|
-
|
|
56
42
|
case 14:
|
|
57
43
|
blob = _context.sent;
|
|
58
44
|
saveFile(blob, filename);
|
|
59
45
|
_context.next = 21;
|
|
60
46
|
break;
|
|
61
|
-
|
|
62
47
|
case 18:
|
|
63
48
|
_context.prev = 18;
|
|
64
49
|
_context.t0 = _context["catch"](1);
|
|
65
50
|
addError((0, _errorMessages.getFailedToExportReports)());
|
|
66
|
-
|
|
67
51
|
case 21:
|
|
68
52
|
case "end":
|
|
69
53
|
return _context.stop();
|
|
@@ -71,10 +55,8 @@ var exportReports = /*#__PURE__*/function () {
|
|
|
71
55
|
}
|
|
72
56
|
}, _callee, null, [[1, 18]]);
|
|
73
57
|
}));
|
|
74
|
-
|
|
75
58
|
return function exportReports(_x) {
|
|
76
59
|
return _ref2.apply(this, arguments);
|
|
77
60
|
};
|
|
78
61
|
}();
|
|
79
|
-
|
|
80
62
|
exports.exportReports = exportReports;
|
|
@@ -1,24 +1,17 @@
|
|
|
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.fetchReports = void 0;
|
|
9
|
-
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
|
|
14
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
|
|
16
11
|
var _errorMessages = require("./errorMessages.js");
|
|
17
|
-
|
|
18
12
|
var fetchReports = /*#__PURE__*/function () {
|
|
19
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
13
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
20
14
|
var activeQuizId, setFetchInProgress, setQuizAnalysis, setItemAnalyses, setStatusPollingInProgress, setAnalysisError, setGenerationInProgress, addError, fetchQuizAnalysis, fetchItemAnalyses, setAnalysisFetchError, getErrorMessageForCode, _yield$Promise$all, _yield$Promise$all2, quizAnalysis, itemAnalyses, areAnalysesInProgress, areAnalysesFailed, analysisErrorCode;
|
|
21
|
-
|
|
22
15
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
23
16
|
while (1) {
|
|
24
17
|
switch (_context.prev = _context.next) {
|
|
@@ -29,7 +22,6 @@ var fetchReports = /*#__PURE__*/function () {
|
|
|
29
22
|
setFetchInProgress(true);
|
|
30
23
|
_context.next = 6;
|
|
31
24
|
return Promise.all([fetchQuizAnalysis(activeQuizId), fetchItemAnalyses(activeQuizId)]);
|
|
32
|
-
|
|
33
25
|
case 6:
|
|
34
26
|
_yield$Promise$all = _context.sent;
|
|
35
27
|
_yield$Promise$all2 = (0, _slicedToArray2.default)(_yield$Promise$all, 2);
|
|
@@ -38,7 +30,6 @@ var fetchReports = /*#__PURE__*/function () {
|
|
|
38
30
|
areAnalysesInProgress = quizAnalysis.new_analysis_in_progress || itemAnalyses.new_analysis_in_progress;
|
|
39
31
|
areAnalysesFailed = quizAnalysis.last_analysis_failed || itemAnalyses.last_analysis_failed;
|
|
40
32
|
analysisErrorCode = quizAnalysis.last_analysis_failed_error_code || itemAnalyses.last_analysis_failed_error_code || null; // The failure codes should be the same for both quiz and item analyses
|
|
41
|
-
|
|
42
33
|
setGenerationInProgress(areAnalysesInProgress);
|
|
43
34
|
setStatusPollingInProgress(areAnalysesInProgress);
|
|
44
35
|
setQuizAnalysis(quizAnalysis.last_successful_analysis);
|
|
@@ -46,7 +37,6 @@ var fetchReports = /*#__PURE__*/function () {
|
|
|
46
37
|
setAnalysisError(areAnalysesFailed ? getErrorMessageForCode(analysisErrorCode, (0, _errorMessages.getLastReportGenerationFailed)()) : null);
|
|
47
38
|
_context.next = 26;
|
|
48
39
|
break;
|
|
49
|
-
|
|
50
40
|
case 20:
|
|
51
41
|
_context.prev = 20;
|
|
52
42
|
_context.t0 = _context["catch"](1);
|
|
@@ -54,12 +44,10 @@ var fetchReports = /*#__PURE__*/function () {
|
|
|
54
44
|
setItemAnalyses(null);
|
|
55
45
|
setAnalysisFetchError(true);
|
|
56
46
|
addError((0, _errorMessages.getFailedToFetchReports)());
|
|
57
|
-
|
|
58
47
|
case 26:
|
|
59
48
|
_context.prev = 26;
|
|
60
49
|
setFetchInProgress(false);
|
|
61
50
|
return _context.finish(26);
|
|
62
|
-
|
|
63
51
|
case 29:
|
|
64
52
|
case "end":
|
|
65
53
|
return _context.stop();
|
|
@@ -67,10 +55,8 @@ var fetchReports = /*#__PURE__*/function () {
|
|
|
67
55
|
}
|
|
68
56
|
}, _callee, null, [[1, 20, 26, 29]]);
|
|
69
57
|
}));
|
|
70
|
-
|
|
71
58
|
return function fetchReports(_x) {
|
|
72
59
|
return _ref2.apply(this, arguments);
|
|
73
60
|
};
|
|
74
61
|
}();
|
|
75
|
-
|
|
76
62
|
exports.fetchReports = fetchReports;
|
|
@@ -1,20 +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.fetchReportsStatus = void 0;
|
|
9
|
-
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _errorMessages = require("./errorMessages.js");
|
|
15
|
-
|
|
16
11
|
var fetchReportsStatus = /*#__PURE__*/function () {
|
|
17
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
12
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
18
13
|
var activeQuizId, addError, fetchAnalysesStatus, instrumentedFetchReports, setStatusPollingInProgress, setGenerationInProgress, status, isReportGenerationReady;
|
|
19
14
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
20
15
|
while (1) {
|
|
@@ -24,19 +19,15 @@ var fetchReportsStatus = /*#__PURE__*/function () {
|
|
|
24
19
|
_context.prev = 1;
|
|
25
20
|
_context.next = 4;
|
|
26
21
|
return fetchAnalysesStatus(activeQuizId);
|
|
27
|
-
|
|
28
22
|
case 4:
|
|
29
23
|
status = _context.sent;
|
|
30
24
|
isReportGenerationReady = !status.quiz_analysis_in_progress && !status.item_analyses_in_progress;
|
|
31
|
-
|
|
32
25
|
if (isReportGenerationReady) {
|
|
33
26
|
instrumentedFetchReports();
|
|
34
27
|
setStatusPollingInProgress(false);
|
|
35
28
|
setGenerationInProgress(false);
|
|
36
29
|
}
|
|
37
|
-
|
|
38
30
|
return _context.abrupt("return", isReportGenerationReady);
|
|
39
|
-
|
|
40
31
|
case 10:
|
|
41
32
|
_context.prev = 10;
|
|
42
33
|
_context.t0 = _context["catch"](1);
|
|
@@ -44,7 +35,6 @@ var fetchReportsStatus = /*#__PURE__*/function () {
|
|
|
44
35
|
setStatusPollingInProgress(false);
|
|
45
36
|
setGenerationInProgress(false);
|
|
46
37
|
return _context.abrupt("return", true);
|
|
47
|
-
|
|
48
38
|
case 16:
|
|
49
39
|
case "end":
|
|
50
40
|
return _context.stop();
|
|
@@ -52,10 +42,8 @@ var fetchReportsStatus = /*#__PURE__*/function () {
|
|
|
52
42
|
}
|
|
53
43
|
}, _callee, null, [[1, 10]]);
|
|
54
44
|
}));
|
|
55
|
-
|
|
56
45
|
return function fetchReportsStatus(_x) {
|
|
57
46
|
return _ref2.apply(this, arguments);
|
|
58
47
|
};
|
|
59
48
|
}();
|
|
60
|
-
|
|
61
49
|
exports.fetchReportsStatus = fetchReportsStatus;
|
|
@@ -1,38 +1,27 @@
|
|
|
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.generateReports = void 0;
|
|
9
|
-
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _errorMessages = require("./errorMessages.js");
|
|
15
|
-
|
|
16
11
|
var _errorCodes = require("./errorCodes.js");
|
|
17
|
-
|
|
18
12
|
var _quizCommon = require("@instructure/quiz-common");
|
|
19
|
-
|
|
20
13
|
var DEFAULT_ERROR_MSG = (0, _errorMessages.getReportGenerationFailure)();
|
|
21
|
-
|
|
22
14
|
var generateReports = /*#__PURE__*/function () {
|
|
23
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
15
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(_ref) {
|
|
24
16
|
var setGenerationInProgress, setStatusPollingInProgress, generateAnalysis, filter, addError, onError, _requestResult$respon, requestResult;
|
|
25
|
-
|
|
26
17
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
27
18
|
while (1) {
|
|
28
19
|
switch (_context2.prev = _context2.next) {
|
|
29
20
|
case 0:
|
|
30
21
|
setGenerationInProgress = _ref.setGenerationInProgress, setStatusPollingInProgress = _ref.setStatusPollingInProgress, generateAnalysis = _ref.generateAnalysis, filter = _ref.filter, addError = _ref.addError;
|
|
31
|
-
|
|
32
22
|
onError = /*#__PURE__*/function () {
|
|
33
|
-
var _ref3 = (0, _asyncToGenerator2.default)(
|
|
23
|
+
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(error) {
|
|
34
24
|
var errorMessage, alertTimeout, _responseBody$error, responseBody, errorCode;
|
|
35
|
-
|
|
36
25
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
37
26
|
while (1) {
|
|
38
27
|
switch (_context.prev = _context.next) {
|
|
@@ -42,29 +31,23 @@ var generateReports = /*#__PURE__*/function () {
|
|
|
42
31
|
_context.prev = 2;
|
|
43
32
|
_context.next = 5;
|
|
44
33
|
return error.response.json();
|
|
45
|
-
|
|
46
34
|
case 5:
|
|
47
35
|
responseBody = _context.sent;
|
|
48
36
|
errorCode = responseBody === null || responseBody === void 0 ? void 0 : (_responseBody$error = responseBody.error) === null || _responseBody$error === void 0 ? void 0 : _responseBody$error.code;
|
|
49
|
-
|
|
50
37
|
if (errorCode) {
|
|
51
38
|
errorMessage = (0, _errorCodes.getErrorMessageForCode)(errorCode, DEFAULT_ERROR_MSG);
|
|
52
39
|
alertTimeout = (0, _errorCodes.getAlertTimeoutMsForCode)(errorCode);
|
|
53
40
|
}
|
|
54
|
-
|
|
55
41
|
_context.next = 12;
|
|
56
42
|
break;
|
|
57
|
-
|
|
58
43
|
case 10:
|
|
59
44
|
_context.prev = 10;
|
|
60
45
|
_context.t0 = _context["catch"](2);
|
|
61
|
-
|
|
62
46
|
case 12:
|
|
63
47
|
_context.prev = 12;
|
|
64
48
|
addError(errorMessage, alertTimeout);
|
|
65
49
|
setGenerationInProgress(false);
|
|
66
50
|
return _context.finish(12);
|
|
67
|
-
|
|
68
51
|
case 16:
|
|
69
52
|
case "end":
|
|
70
53
|
return _context.stop();
|
|
@@ -72,33 +55,26 @@ var generateReports = /*#__PURE__*/function () {
|
|
|
72
55
|
}
|
|
73
56
|
}, _callee, null, [[2, 10, 12, 16]]);
|
|
74
57
|
}));
|
|
75
|
-
|
|
76
58
|
return function onError(_x2) {
|
|
77
59
|
return _ref3.apply(this, arguments);
|
|
78
60
|
};
|
|
79
61
|
}();
|
|
80
|
-
|
|
81
62
|
_context2.prev = 2;
|
|
82
63
|
setGenerationInProgress(true);
|
|
83
64
|
_context2.next = 6;
|
|
84
65
|
return generateAnalysis(filter, onError);
|
|
85
|
-
|
|
86
66
|
case 6:
|
|
87
67
|
requestResult = _context2.sent;
|
|
88
|
-
|
|
89
68
|
if (requestResult === null || requestResult === void 0 ? void 0 : (_requestResult$respon = requestResult.response) === null || _requestResult$respon === void 0 ? void 0 : _requestResult$respon.ok) {
|
|
90
69
|
setStatusPollingInProgress(true);
|
|
91
70
|
}
|
|
92
|
-
|
|
93
71
|
_context2.next = 14;
|
|
94
72
|
break;
|
|
95
|
-
|
|
96
73
|
case 10:
|
|
97
74
|
_context2.prev = 10;
|
|
98
75
|
_context2.t0 = _context2["catch"](2);
|
|
99
76
|
addError(DEFAULT_ERROR_MSG);
|
|
100
77
|
setGenerationInProgress(false);
|
|
101
|
-
|
|
102
78
|
case 14:
|
|
103
79
|
case "end":
|
|
104
80
|
return _context2.stop();
|
|
@@ -106,12 +82,10 @@ var generateReports = /*#__PURE__*/function () {
|
|
|
106
82
|
}
|
|
107
83
|
}, _callee2, null, [[2, 10]]);
|
|
108
84
|
}));
|
|
109
|
-
|
|
110
85
|
return function generateReports(_x) {
|
|
111
86
|
return _ref2.apply(this, arguments);
|
|
112
87
|
};
|
|
113
88
|
}();
|
|
114
|
-
|
|
115
89
|
exports.generateReports = generateReports;
|
|
116
90
|
var _default = generateReports;
|
|
117
91
|
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 = exports.NewQuizAndItemAnalysis = void 0;
|
|
9
|
-
|
|
10
8
|
var _presenter = require("./presenter.js");
|
|
11
|
-
|
|
12
9
|
var _withAnalysisState = _interopRequireDefault(require("./withAnalysisState.js"));
|
|
13
|
-
|
|
14
10
|
var NewQuizAndItemAnalysis = (0, _withAnalysisState.default)(_presenter.NewQuizAndItemAnalysisPresenter);
|
|
15
11
|
exports.NewQuizAndItemAnalysis = NewQuizAndItemAnalysis;
|
|
16
12
|
var _default = NewQuizAndItemAnalysis;
|