@instructure/quiz-core 20.17.3-rc.7 → 20.17.3-rc.9
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 +20 -13
- package/es/banks/api/banks.js +34 -22
- package/es/banks/api/copyingBanksPoller.js +67 -57
- package/es/banks/api/tagAssociations.js +40 -26
- package/es/banks/components/AddBankEntryModal/index.js +10 -7
- package/es/banks/components/AddBankEntryModal/presenter.js +25 -5
- package/es/banks/components/AddToBankModal/index.js +12 -12
- package/es/banks/components/AddToBankModal/presenter.js +94 -51
- package/es/banks/components/AsyncSearch/index.js +70 -13
- package/es/banks/components/Bank/index.js +12 -12
- package/es/banks/components/Bank/presenter.js +115 -57
- package/es/banks/components/Bank/styles.js +2 -0
- package/es/banks/components/Bank/theme.js +3 -2
- package/es/banks/components/BankEntriesList/index.js +3 -3
- package/es/banks/components/BankEntriesList/presenter.js +27 -13
- package/es/banks/components/BankEntriesList/styles.js +1 -0
- package/es/banks/components/BankEntriesList/theme.js +1 -0
- package/es/banks/components/BankEntry/index.js +19 -14
- package/es/banks/components/BankEntry/presenter.js +257 -160
- package/es/banks/components/BankEntry/styles.js +2 -0
- package/es/banks/components/BankEntry/theme.js +4 -3
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +4 -2
- package/es/banks/components/BankEntryRow/index.js +14 -9
- package/es/banks/components/BankEntryRow/presenter.js +59 -27
- package/es/banks/components/BankEntryRow/styles.js +1 -0
- package/es/banks/components/BankEntryRow/theme.js +4 -3
- package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
- package/es/banks/components/BankSearch/index.js +6 -4
- package/es/banks/components/BankSearch/presenter.js +42 -21
- package/es/banks/components/BankSearch/styles.js +1 -0
- package/es/banks/components/BankSearch/theme.js +1 -0
- package/es/banks/components/Banks/index.js +10 -7
- package/es/banks/components/Banks/presenter.js +85 -31
- package/es/banks/components/Banks/styles.js +1 -0
- package/es/banks/components/Banks/theme.js +3 -2
- package/es/banks/components/BanksList/index.js +8 -8
- package/es/banks/components/BanksList/presenter.js +143 -79
- package/es/banks/components/BanksList/styles.js +1 -0
- package/es/banks/components/BanksList/theme.js +4 -3
- package/es/banks/components/CopyMoveBankEntryModal/index.js +9 -9
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +39 -10
- package/es/banks/components/CreateBankModal/index.js +13 -10
- package/es/banks/components/CreateBankModal/presenter.js +42 -13
- package/es/banks/components/CreateBankModal/styles.js +1 -0
- package/es/banks/components/CreateBankModal/theme.js +2 -1
- package/es/banks/components/EditBankModal/index.js +10 -7
- package/es/banks/components/EditBankModal/presenter.js +36 -13
- package/es/banks/components/EditBankModal/styles.js +1 -0
- package/es/banks/components/EditBankModal/theme.js +2 -1
- package/es/banks/components/HeaderBreadCrumb/index.js +26 -13
- package/es/banks/components/HeaderMenu/index.js +7 -4
- package/es/banks/components/HeaderMenu/presenter.js +29 -15
- package/es/banks/components/HeaderMenu/styles.js +1 -0
- package/es/banks/components/HeaderMenu/theme.js +2 -1
- package/es/banks/components/NavWrapper/index.js +4 -2
- package/es/banks/components/NavWrapper/presenter.js +38 -19
- package/es/banks/components/NavWrapper/styles.js +2 -0
- package/es/banks/components/NavWrapper/theme.js +5 -4
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +21 -5
- package/es/banks/components/SharingModal/RootAccountSharing.js +33 -16
- package/es/banks/components/SharingModal/ShareList/index.js +37 -16
- package/es/banks/components/SharingModal/ShareList/styles.js +1 -0
- package/es/banks/components/SharingModal/index.js +8 -6
- package/es/banks/components/SharingModal/presenter.js +126 -56
- package/es/banks/components/SharingModal/styles.js +1 -0
- package/es/banks/components/SharingModal/theme.js +3 -2
- package/es/building/api/items.js +103 -81
- package/es/building/api/qtiImports.js +22 -14
- package/es/building/api/quizEntries.js +65 -57
- package/es/building/api/quizzes.js +29 -34
- package/es/building/api/stimuli.js +6 -9
- package/es/building/components/QTIImportModal/index.js +5 -6
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +38 -17
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +41 -27
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +4 -1
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +1 -0
- package/es/building/components/layout/Sidebar/Stimulus/index.js +12 -11
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +39 -25
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +4 -1
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +1 -0
- package/es/building/components/layout/Sidebar/index.js +15 -15
- package/es/building/components/layout/Sidebar/presenter.js +51 -21
- package/es/building/components/layout/Sidebar/styles.js +2 -0
- package/es/building/components/layout/Sidebar/theme.js +1 -0
- package/es/building/components/layout/header/BuildingButtons/index.js +11 -9
- package/es/building/components/layout/header/BuildingButtons/presenter.js +64 -15
- package/es/building/components/layout/header/BuildingButtons/styles.js +2 -0
- package/es/building/components/layout/header/BuildingButtons/theme.js +3 -2
- package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
- package/es/building/components/resources/ActionButtons/index.js +7 -4
- package/es/building/components/resources/ActionButtons/presenter.js +34 -14
- package/es/building/components/resources/ActionButtons/styles.js +3 -0
- package/es/building/components/resources/ActionButtons/theme.js +2 -1
- package/es/building/components/resources/AddToBankOptions/index.js +62 -38
- package/es/building/components/resources/AddToBankOptions/styles.js +1 -0
- package/es/building/components/resources/AddToBankOptions/theme.js +2 -1
- package/es/building/components/resources/BanksTray/index.js +5 -3
- package/es/building/components/resources/BanksTray/presenter.js +40 -12
- package/es/building/components/resources/DeleteStimulusModal/index.js +12 -8
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +56 -21
- package/es/building/components/resources/DeleteStimulusModal/styles.js +1 -0
- package/es/building/components/resources/DeleteStimulusModal/theme.js +2 -1
- package/es/building/components/resources/ItemFeedbackModal/index.js +10 -8
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +35 -12
- package/es/building/components/resources/ItemFeedbackModal/styles.js +1 -0
- package/es/building/components/resources/ItemFeedbackModal/theme.js +1 -0
- package/es/building/components/resources/MoveImmutableModal/index.js +14 -11
- package/es/building/components/resources/MoveImmutableModal/presenter.js +24 -8
- package/es/building/components/resources/quiz/editButton/EditButton.js +20 -5
- package/es/building/components/resources/quiz/instructions/Edit/index.js +4 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +26 -21
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +1 -0
- package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +9 -7
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +55 -31
- package/es/building/components/resources/quiz/instructions/Instructions/styles.js +2 -0
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
- package/es/building/components/resources/quiz/instructions/Show/index.js +29 -18
- package/es/building/components/resources/quiz/instructions/Show/styles.js +1 -0
- package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
- package/es/building/components/resources/quiz/title/Edit/index.js +36 -21
- package/es/building/components/resources/quiz/title/Edit/styles.js +2 -0
- package/es/building/components/resources/quiz/title/Edit/theme.js +4 -3
- package/es/building/components/resources/quiz/title/Show/index.js +28 -17
- package/es/building/components/resources/quiz/title/Show/styles.js +1 -0
- package/es/building/components/resources/quiz/title/Show/theme.js +1 -0
- package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
- package/es/building/components/resources/quiz/title/Title/index.js +10 -8
- package/es/building/components/resources/quiz/title/Title/presenter.js +48 -31
- package/es/building/components/resources/quiz/title/Title/styles.js +2 -0
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +16 -14
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +66 -30
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +16 -4
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +51 -16
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +30 -15
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +7 -5
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +54 -24
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +124 -70
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +3 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +14 -11
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +165 -94
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +10 -8
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +71 -37
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -4
- package/es/common/actions/alerts.js +7 -7
- package/es/common/actions/modifications.js +16 -37
- package/es/common/actions/quizSessions.js +15 -5
- package/es/common/actions/rce.js +2 -3
- package/es/common/actions/taking.js +4 -6
- package/es/common/api/callHandlers.js +15 -14
- package/es/common/api/camelizeHelpers.js +6 -6
- package/es/common/api/features.js +5 -3
- package/es/common/api/fileUpload.js +3 -4
- package/es/common/api/getPersistenceActions.js +40 -41
- package/es/common/api/helpers.js +100 -77
- package/es/common/api/interactionTypes.js +2 -2
- package/es/common/api/quizSessions.js +32 -27
- package/es/common/api/quizzes.js +6 -10
- package/es/common/api/schema.js +4 -6
- package/es/common/components/ApiFeatureFlagInitializer/index.js +12 -8
- package/es/common/components/ConfirmationModal/index.js +6 -3
- package/es/common/components/ConfirmationModal/presenter.js +29 -13
- package/es/common/components/ImportModal/ImportFileSelector/index.js +40 -24
- package/es/common/components/ImportModal/ImportFileSelector/styles.js +1 -0
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +3 -2
- package/es/common/components/ImportModal/index.js +13 -13
- package/es/common/components/ImportModal/presenter.js +69 -19
- package/es/common/components/ImportModal/styles.js +1 -0
- package/es/common/components/ImportModal/theme.js +1 -0
- package/es/common/components/LearnosityCalculator/index.js +60 -36
- package/es/common/components/Pin/index.js +1 -1
- package/es/common/components/Pin/presenter.js +17 -4
- package/es/common/components/PreviewFrame/examples.config.js +4 -2
- package/es/common/components/PreviewFrame/index.js +18 -8
- package/es/common/components/PrintFontSizeModal/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +35 -24
- package/es/common/components/PrintFontSizeModal/styles.js +1 -0
- package/es/common/components/PrintFontSizeModal/theme.js +3 -2
- package/es/common/components/RceConfigProvider/index.js +6 -4
- package/es/common/components/RceConfigProvider/presenter.js +125 -93
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +11 -5
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +37 -26
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +11 -3
- package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
- package/es/common/components/SDKApp/index.js +61 -30
- package/es/common/components/SDKApp/styles.js +1 -0
- package/es/common/components/SDKHeaderCalculator.js +4 -4
- package/es/common/components/SDKMenuButton.js +3 -3
- package/es/common/components/SDKNavBar.js +3 -3
- package/es/common/components/SDKTimer.js +4 -4
- package/es/common/components/alerts/index.js +6 -4
- package/es/common/components/alerts/presenter.js +30 -11
- package/es/common/components/alerts/styles.js +2 -0
- package/es/common/components/alerts/theme.js +2 -1
- package/es/common/components/layout/Page/index.js +21 -11
- package/es/common/components/layout/Page/styles.js +2 -0
- package/es/common/components/layout/Page/theme.js +3 -2
- package/es/common/components/layout/header/Calculator/index.js +9 -7
- package/es/common/components/layout/header/Calculator/presenter.js +22 -9
- package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +36 -14
- package/es/common/components/layout/header/HeaderMenuButton/styles.js +2 -0
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +3 -2
- package/es/common/components/layout/header/Timer/index.js +9 -6
- package/es/common/components/layout/header/Timer/presenter.js +49 -19
- package/es/common/components/layout/header/Timer/styles.js +1 -0
- package/es/common/components/layout/header/Timer/theme.js +4 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +20 -10
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -0
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -0
- package/es/common/components/layout/navbar/index.js +39 -15
- package/es/common/components/layout/navbar/styles.js +1 -0
- package/es/common/components/layout/navbar/theme.js +2 -1
- package/es/common/components/layout/sidebar/PositionSummary/index.js +20 -10
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +1 -0
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +4 -3
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +18 -7
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +10 -6
- package/es/common/components/layout/sidebar/Sidebar/index.js +81 -39
- package/es/common/components/layout/sidebar/Sidebar/styles.js +9 -4
- package/es/common/components/layout/sidebar/Sidebar/theme.js +7 -5
- package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +51 -35
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +2 -0
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +39 -23
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +3 -1
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -2
- package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +43 -20
- package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -0
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +3 -2
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +21 -11
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -0
- package/es/common/components/layout/sidebar/Stimulus/index.js +5 -3
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +49 -28
- package/es/common/components/layout/sidebar/Stimulus/styles.js +1 -0
- package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -3
- package/es/common/components/resources/BankSelection/index.js +5 -5
- package/es/common/components/resources/BankSelection/presenter.js +49 -16
- package/es/common/components/resources/WarningWrapper/index.js +25 -11
- package/es/common/components/resources/WarningWrapper/styles.js +1 -0
- package/es/common/components/resources/WarningWrapper/theme.js +3 -2
- package/es/common/components/resources/entry/EntrySave/index.js +10 -10
- package/es/common/components/resources/entry/EntrySave/presenter.js +150 -95
- package/es/common/components/resources/item/ItemEdit/index.js +18 -16
- package/es/common/components/resources/item/ItemEdit/presenter.js +41 -18
- package/es/common/components/resources/item/ItemOverride/index.js +11 -9
- package/es/common/components/resources/item/ItemOverride/presenter.js +18 -6
- package/es/common/components/resources/item/ItemShow/index.js +17 -7
- package/es/common/components/resources/positionBox/PositionBox.js +21 -11
- package/es/common/components/resources/positionBox/styles.js +2 -0
- package/es/common/components/resources/positionBox/theme.js +3 -2
- package/es/common/components/resources/quiz/AddContent/Body/index.js +9 -7
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +45 -23
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +9 -4
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +5 -4
- package/es/common/components/resources/quiz/AddContent/Button/index.js +25 -11
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -0
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +5 -4
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +11 -8
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +13 -5
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +8 -7
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +37 -16
- package/es/common/components/resources/quiz/AddContent/Popover/styles.js +1 -0
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +2 -1
- package/es/common/components/resources/quiz/info/QuizInfo.js +14 -6
- package/es/common/components/resources/quiz/instructions/Instructions.js +22 -13
- package/es/common/components/resources/quiz/instructions/styles.js +1 -0
- package/es/common/components/resources/quiz/instructions/theme.js +2 -1
- package/es/common/components/resources/quiz/title/Title.js +21 -13
- package/es/common/components/resources/quiz/title/styles.js +1 -0
- package/es/common/components/resources/quiz/title/theme.js +2 -1
- package/es/common/components/resources/quizSessionResult/Header/index.js +26 -11
- package/es/common/components/resources/quizSessionResult/Header/styles.js +1 -0
- package/es/common/components/resources/quizSessionResult/Header/theme.js +2 -1
- package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +125 -107
- package/es/common/components/resources/quizSessionResult/Info/styles.js +2 -0
- package/es/common/components/resources/quizSessionResult/Info/theme.js +2 -1
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +22 -10
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -0
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +5 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +6 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +90 -64
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -0
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -3
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +31 -15
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -0
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +4 -3
- package/es/common/components/resources/stimulus/Stimulus/index.js +8 -5
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +39 -22
- package/es/common/components/resources/stimulus/Stimulus/styles.js +5 -1
- package/es/common/components/resources/stimulus/Stimulus/theme.js +4 -3
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +13 -10
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +190 -111
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +1 -0
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +3 -2
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +7 -4
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +43 -16
- package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -0
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -2
- package/es/common/components/resources/stimulus/StimulusShow/index.js +33 -15
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +1 -0
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +3 -2
- package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +14 -4
- package/es/common/components/shared/Card/CardContent/index.js +21 -11
- package/es/common/components/shared/Card/CardContent/styles.js +2 -0
- package/es/common/components/shared/Card/CardContent/theme.js +5 -4
- package/es/common/components/shared/Card/CardWrapper/index.js +21 -11
- package/es/common/components/shared/Card/CardWrapper/styles.js +2 -0
- package/es/common/components/shared/Card/CardWrapper/theme.js +3 -2
- package/es/common/components/shared/Card/index.js +6 -6
- package/es/common/components/shared/ExpandButton/index.js +20 -10
- package/es/common/components/shared/ExpandButton/styles.js +2 -0
- package/es/common/components/shared/ExpandButton/theme.js +1 -0
- package/es/common/components/shared/FormattedDuration/index.js +20 -9
- package/es/common/components/shared/IfFeature/index.js +3 -3
- package/es/common/components/shared/IfFeature/presenter.js +13 -4
- package/es/common/components/shared/InteractionTypes/index.js +4 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +33 -14
- package/es/common/components/shared/InteractionTypes/styles.js +1 -0
- package/es/common/components/shared/InteractionTypes/theme.js +3 -2
- package/es/common/components/shared/PaginatedCollection/index.js +3 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +75 -46
- package/es/common/components/shared/PaginatedCollection/styles.js +1 -0
- package/es/common/components/shared/PaginatedCollection/theme.js +3 -2
- package/es/common/components/shared/Paginator/index.js +24 -11
- package/es/common/components/shared/Paginator/styles.js +1 -0
- package/es/common/components/shared/Paginator/theme.js +1 -0
- package/es/common/components/shared/PrintTrigger/index.js +9 -7
- package/es/common/components/shared/PrintTrigger/presenter.js +37 -12
- package/es/common/components/shared/TagDisplay/index.js +21 -10
- package/es/common/components/shared/TagDisplay/styles.js +1 -0
- package/es/common/components/shared/TagSelect/index.js +1 -1
- package/es/common/components/shared/TagSelect/presenter.js +49 -15
- package/es/common/components/shared/TagSuggestSelect/index.js +7 -4
- package/es/common/components/shared/TagSuggestSelect/presenter.js +26 -12
- package/es/common/components/shared/TagWrapper/index.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +20 -7
- package/es/common/components/shared/TimeUnitsInput/index.js +61 -29
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +33 -18
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -0
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +3 -2
- package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +67 -26
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +64 -22
- package/es/common/components/shared/errors/Errors.js +27 -11
- package/es/common/components/shared/errors/styles.js +1 -0
- package/es/common/components/shared/errors/theme.js +2 -1
- package/es/common/components/shared/file_selector/FileSelector.js +24 -12
- package/es/common/components/shared/file_selector/styles.js +1 -0
- package/es/common/components/shared/file_selector/theme.js +3 -2
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +27 -17
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +21 -12
- package/es/common/components/shared/functionality/disableDraggingOverride.js +3 -2
- package/es/common/components/shared/functionality/makeEditable.js +35 -21
- package/es/common/components/shared/functionality/makeScrollable.js +46 -27
- package/es/common/components/shared/overlay/index.js +29 -16
- package/es/common/components/shared/overlay/styles.js +2 -0
- package/es/common/components/shared/overlay/theme.js +3 -2
- package/es/common/components/shared/return_button/ReturnButton.js +15 -6
- package/es/common/components/shared/spinner/Spinner.js +28 -17
- package/es/common/components/shared/spinner/styles.js +1 -0
- package/es/common/kinesis/QuizEventsLogger.js +69 -47
- package/es/common/kinesis/StreamQueue.js +28 -9
- package/es/common/kinesis/client.js +5 -3
- package/es/common/kinesis/config.js +3 -3
- package/es/common/kinesis/eventTypes.js +4 -4
- package/es/common/middleware/alertTimerMiddleware.js +7 -3
- package/es/common/middleware/crossDomainMessagingMiddleware.js +4 -1
- package/es/common/middleware/eventLoggerMiddleware.js +7 -5
- package/es/common/middleware/persistedStorageMiddleware.js +7 -2
- package/es/common/react-redux.js +2 -0
- package/es/common/records/Alert.js +9 -5
- package/es/common/records/Bank.js +13 -7
- package/es/common/records/BankEntry.js +17 -7
- package/es/common/records/Item.js +22 -15
- package/es/common/records/ItemAnalysis.js +13 -6
- package/es/common/records/QtiImport.js +14 -5
- package/es/common/records/Quiz.js +27 -18
- package/es/common/records/QuizAnalysis.js +12 -5
- package/es/common/records/QuizEntry.js +152 -105
- package/es/common/records/QuizSession.js +28 -21
- package/es/common/records/QuizSessionEvent.js +13 -6
- package/es/common/records/QuizSessionResult.js +13 -6
- package/es/common/records/Response.js +13 -6
- package/es/common/records/SessionItem.js +23 -10
- package/es/common/records/SessionItemResult.js +13 -6
- package/es/common/records/Stimulus.js +17 -10
- package/es/common/records/baseRecord.js +19 -8
- package/es/common/records/index.js +32 -16
- package/es/common/records/reduxRecord.js +14 -9
- package/es/common/reducers/alerts.js +3 -0
- package/es/common/reducers/analyses.js +11 -1
- package/es/common/reducers/bankEntries.js +5 -0
- package/es/common/reducers/bankSearch.js +9 -4
- package/es/common/reducers/banks.js +13 -1
- package/es/common/reducers/calls.js +3 -0
- package/es/common/reducers/config.js +4 -0
- package/es/common/reducers/dragAndDrop.js +2 -0
- package/es/common/reducers/editing.js +3 -1
- package/es/common/reducers/errorsShowing.js +4 -0
- package/es/common/reducers/features.js +3 -0
- package/es/common/reducers/grading.js +4 -0
- package/es/common/reducers/interactionTypes.js +4 -0
- package/es/common/reducers/items.js +4 -0
- package/es/common/reducers/modal.js +6 -0
- package/es/common/reducers/moderation.js +3 -0
- package/es/common/reducers/modifications.js +40 -8
- package/es/common/reducers/outcomes.js +5 -0
- package/es/common/reducers/printing.js +2 -0
- package/es/common/reducers/qtiImports.js +5 -0
- package/es/common/reducers/quizEntries.js +39 -28
- package/es/common/reducers/quizExport.js +2 -0
- package/es/common/reducers/quizSessionEvents.js +5 -2
- package/es/common/reducers/quizSessionResults.js +4 -0
- package/es/common/reducers/quizSessions.js +11 -2
- package/es/common/reducers/quizzes.js +13 -0
- package/es/common/reducers/rce.js +6 -0
- package/es/common/reducers/regrading.js +4 -0
- package/es/common/reducers/reporting.js +12 -0
- package/es/common/reducers/scrolling.js +3 -0
- package/es/common/reducers/sessionItemResults.js +4 -0
- package/es/common/reducers/sessionItems.js +4 -0
- package/es/common/reducers/sharedBanks.js +8 -1
- package/es/common/reducers/sidebar.js +3 -0
- package/es/common/reducers/stimuli.js +4 -0
- package/es/common/reducers/tagAssociations.js +28 -0
- package/es/common/reducers/taking.js +35 -0
- package/es/common/reducers/ui.js +11 -0
- package/es/common/reducers/upload.js +7 -0
- package/es/common/selectors/analyses.js +2 -0
- package/es/common/selectors/calculator.js +10 -9
- package/es/common/selectors/config.js +2 -0
- package/es/common/selectors/interactionTypes.js +8 -7
- package/es/common/selectors/items.js +2 -1
- package/es/common/selectors/qtiImports.js +6 -3
- package/es/common/selectors/quizSessionResults.js +1 -1
- package/es/common/selectors/quizSessions.js +2 -3
- package/es/common/selectors/quizzes.js +14 -8
- package/es/common/selectors/reporting.js +3 -1
- package/es/common/selectors/sessionItemResults.js +5 -4
- package/es/common/selectors/sessionItems.js +5 -4
- package/es/common/selectors/taking.js +1 -1
- package/es/common/util/CustomPropTypes.js +12 -0
- package/es/common/util/ExhaustivePaginatedFetcher.js +73 -55
- package/es/common/util/Fetcher.js +224 -155
- package/es/common/util/MultiWeakMap.js +21 -1
- package/es/common/util/PaginatedFetcher.js +39 -21
- package/es/common/util/ThunkQueue.js +80 -50
- package/es/common/util/TimeRecordingService.js +14 -1
- package/es/common/util/TimerService.js +44 -5
- package/es/common/util/cachePreviousArgs.js +3 -0
- package/es/common/util/callHelpers.js +2 -0
- package/es/common/util/componentForItem.js +6 -1
- package/es/common/util/crossDomainMessaging.js +1 -0
- package/es/common/util/debounceLatestPromise.js +2 -0
- package/es/common/util/featureCheck.js +4 -6
- package/es/common/util/fitbCopyHelper.js +3 -3
- package/es/common/util/formatTimespan.js +10 -0
- package/es/common/util/generateDisplayPositions.js +5 -2
- package/es/common/util/immutableHelpers.js +6 -8
- package/es/common/util/interactionTypeMetadata.js +3 -2
- package/es/common/util/interactionTypePropsHelper.js +7 -0
- package/es/common/util/interactionTypeRecordForItem.js +7 -1
- package/es/common/util/jsonify.js +0 -1
- package/es/common/util/keyboardClickable.js +1 -0
- package/es/common/util/mathRenderingUtils.js +1 -2
- package/es/common/util/maxContent.js +1 -0
- package/es/common/util/persistedState.js +10 -4
- package/es/common/util/printUtils.js +4 -0
- package/es/common/util/rceChecker.js +15 -11
- package/es/common/util/renderAlerts.js +13 -11
- package/es/common/util/serializeEvent.js +4 -2
- package/es/common/util/sessionStore.js +13 -5
- package/es/common/util/warningHelpers.js +9 -0
- package/es/common/util/withCachedArguments.js +7 -3
- package/es/common/util/withDynamoPagination.js +84 -60
- package/es/common/util/withStateCache.js +10 -3
- package/es/config.js +9 -5
- package/es/configureStore.js +49 -52
- package/es/grading/api/quizEntryRegrades.js +5 -6
- package/es/grading/api/updateResults.js +8 -4
- package/es/index.js +135 -141
- package/es/messages/LocalStorageAdapter.js +15 -4
- package/es/messages/LocalStorageLimits.js +25 -5
- package/es/messages/StorageExhaustionError.js +12 -5
- package/es/messages/postMessageService.js +24 -5
- package/es/messages/subjectHandlers/forwardMessage.js +1 -0
- package/es/messages/subjectHandlers/lti.capabilities.js +1 -0
- package/es/messages/subjectHandlers/lti.fetchWindowSize.js +1 -0
- package/es/messages/subjectHandlers/lti.frameResize.js +4 -1
- package/es/messages/subjectHandlers/lti.get_data.js +8 -3
- package/es/messages/subjectHandlers/lti.put_data.js +10 -5
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +5 -1
- package/es/messages/utils.js +1 -0
- package/es/moderating/api/quizSessionEvents.js +3 -3
- package/es/moderating/api/quizSessions.js +2 -2
- package/es/moderating/components/events/Event.js +34 -16
- package/es/moderating/components/events/PageBlurredEvent.js +12 -4
- package/es/moderating/components/events/PageFocusedEvent.js +12 -4
- package/es/moderating/components/events/RCEEvent.js +12 -4
- package/es/moderating/components/events/ResponseEvent.js +30 -15
- package/es/moderating/components/events/SessionStartEvent.js +12 -4
- package/es/moderating/components/events/styles.js +1 -0
- package/es/moderating/components/events/theme.js +2 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +30 -12
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +29 -5
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +29 -5
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +30 -7
- package/es/moderating/components/resources/AccommodationsModal/index.js +32 -11
- package/es/moderating/components/resources/ElapsedTime.js +16 -9
- package/es/moderating/components/resources/ModerateTable/index.js +7 -7
- package/es/moderating/components/resources/ModerateTable/presenter.js +96 -44
- package/es/moderating/components/resources/ModerateTable/styles.js +2 -0
- package/es/moderating/components/resources/ModerateTable/theme.js +2 -1
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +4 -2
- package/es/moderating/components/resources/ModerateTableRow/index.js +5 -5
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +73 -30
- package/es/moderating/components/resources/ModerateTableRow/story.js +2 -3
- package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -0
- package/es/moderating/components/resources/ModerateTableRow/theme.js +1 -0
- package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +32 -5
- package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +27 -4
- package/es/moderating/components/sidebar/ResetQuiz/index.js +9 -7
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +38 -17
- package/es/reduxStore.js +8 -4
- package/es/reporting/api/getAnalysesExport.js +29 -20
- package/es/reporting/api/getAnalysesStatus.js +22 -17
- package/es/reporting/api/getItemAnalyses.js +22 -17
- package/es/reporting/api/getQuizAnalysis.js +22 -17
- package/es/reporting/api/itemAnalyses.js +4 -4
- package/es/reporting/api/quizAnalyses.js +4 -4
- package/es/reporting/components/Caption/index.js +21 -11
- package/es/reporting/components/Caption/styles.js +1 -0
- package/es/reporting/components/Caption/theme.js +3 -2
- package/es/reporting/components/MetricsListItem/index.js +23 -13
- package/es/reporting/components/MetricsListItem/styles.js +1 -0
- package/es/reporting/components/charts/CentileDistribution/presenter.js +42 -17
- package/es/reporting/components/charts/CentileDistribution/styles.js +2 -0
- package/es/reporting/components/charts/CentileDistribution/theme.js +3 -2
- package/es/reporting/components/charts/Distribution/presenter.js +54 -21
- package/es/reporting/components/charts/Distribution/styles.js +1 -0
- package/es/reporting/components/charts/Distribution/theme.js +2 -1
- package/es/reporting/components/charts/Legend/index.js +25 -14
- package/es/reporting/components/charts/Legend/styles.js +2 -0
- package/es/reporting/components/charts/Legend/theme.js +4 -3
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +40 -14
- package/es/reporting/components/charts/QuintileDistribution/styles.js +1 -0
- package/es/reporting/components/charts/QuintileDistribution/theme.js +2 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +33 -11
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +14 -2
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +6 -5
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +52 -29
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +3 -0
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -3
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +41 -22
- package/es/reporting/components/quizAnalysis/styles.js +7 -3
- package/es/reporting/components/quizAnalysis/theme.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +25 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +25 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +4 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +17 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +19 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +20 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +34 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +31 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +24 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +20 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +51 -27
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +25 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +10 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +22 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +62 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +40 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +24 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +32 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +20 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +44 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +29 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +23 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +54 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +61 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +28 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +6 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +32 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +20 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +55 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +42 -21
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +56 -31
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +31 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +3 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +7 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +53 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +50 -41
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +35 -27
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +85 -64
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +77 -39
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +5 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +13 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +133 -104
- package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +25 -12
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +9 -7
- package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +56 -29
- package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -0
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -2
- package/es/reporting/components/resources/ReportCard/index.js +25 -15
- package/es/reporting/components/resources/ReportCard/styles.js +2 -0
- package/es/reporting/components/resources/ReportCard/theme.js +2 -1
- package/es/reporting/components/resources/ReportList/index.js +24 -14
- package/es/reporting/components/resources/ReportList/styles.js +1 -0
- package/es/reporting/components/resources/ReportList/theme.js +1 -0
- package/es/taking/api/taking.js +53 -41
- package/es/taking/learnosity/index.js +68 -42
- package/lib/banks/api/bankEntries.js +65 -23
- package/lib/banks/api/banks.js +103 -38
- package/lib/banks/api/copyingBanksPoller.js +83 -60
- package/lib/banks/api/tagAssociations.js +61 -32
- package/lib/banks/components/AddBankEntryModal/index.js +25 -10
- package/lib/banks/components/AddBankEntryModal/presenter.js +49 -10
- package/lib/banks/components/AddToBankModal/index.js +36 -16
- package/lib/banks/components/AddToBankModal/presenter.js +126 -56
- package/lib/banks/components/AsyncSearch/index.js +94 -18
- package/lib/banks/components/Bank/index.js +37 -17
- package/lib/banks/components/Bank/presenter.js +165 -70
- package/lib/banks/components/Bank/styles.js +8 -2
- package/lib/banks/components/Bank/theme.js +6 -3
- package/lib/banks/components/BankEntriesList/index.js +15 -6
- package/lib/banks/components/BankEntriesList/presenter.js +45 -18
- package/lib/banks/components/BankEntriesList/styles.js +4 -1
- package/lib/banks/components/BankEntriesList/theme.js +4 -1
- package/lib/banks/components/BankEntry/index.js +42 -17
- package/lib/banks/components/BankEntry/presenter.js +314 -173
- package/lib/banks/components/BankEntry/styles.js +7 -2
- package/lib/banks/components/BankEntry/theme.js +7 -4
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +13 -5
- package/lib/banks/components/BankEntryRow/index.js +32 -12
- package/lib/banks/components/BankEntryRow/presenter.js +100 -38
- package/lib/banks/components/BankEntryRow/styles.js +4 -1
- package/lib/banks/components/BankEntryRow/theme.js +7 -4
- package/lib/banks/components/BankSearch/BankSearch.stories.js +27 -9
- package/lib/banks/components/BankSearch/index.js +18 -6
- package/lib/banks/components/BankSearch/presenter.js +70 -25
- package/lib/banks/components/BankSearch/styles.js +4 -1
- package/lib/banks/components/BankSearch/theme.js +4 -1
- package/lib/banks/components/Banks/index.js +26 -10
- package/lib/banks/components/Banks/presenter.js +129 -42
- package/lib/banks/components/Banks/styles.js +4 -1
- package/lib/banks/components/Banks/theme.js +6 -3
- package/lib/banks/components/BanksList/index.js +26 -12
- package/lib/banks/components/BanksList/presenter.js +180 -88
- package/lib/banks/components/BanksList/styles.js +4 -1
- package/lib/banks/components/BanksList/theme.js +7 -4
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +30 -13
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +65 -15
- package/lib/banks/components/CreateBankModal/index.js +33 -13
- package/lib/banks/components/CreateBankModal/presenter.js +64 -16
- package/lib/banks/components/CreateBankModal/styles.js +4 -1
- package/lib/banks/components/CreateBankModal/theme.js +5 -2
- package/lib/banks/components/EditBankModal/index.js +27 -10
- package/lib/banks/components/EditBankModal/presenter.js +56 -16
- package/lib/banks/components/EditBankModal/styles.js +4 -1
- package/lib/banks/components/EditBankModal/theme.js +5 -2
- package/lib/banks/components/HeaderBreadCrumb/index.js +47 -17
- package/lib/banks/components/HeaderMenu/index.js +20 -8
- package/lib/banks/components/HeaderMenu/presenter.js +51 -19
- package/lib/banks/components/HeaderMenu/styles.js +4 -1
- package/lib/banks/components/HeaderMenu/theme.js +5 -2
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +9 -3
- package/lib/banks/components/NavWrapper/index.js +12 -4
- package/lib/banks/components/NavWrapper/presenter.js +64 -25
- package/lib/banks/components/NavWrapper/styles.js +5 -1
- package/lib/banks/components/NavWrapper/theme.js +8 -5
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +37 -8
- package/lib/banks/components/SharingModal/RootAccountSharing.js +55 -19
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +5 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +61 -20
- package/lib/banks/components/SharingModal/ShareList/styles.js +4 -1
- package/lib/banks/components/SharingModal/index.js +22 -8
- package/lib/banks/components/SharingModal/presenter.js +164 -63
- package/lib/banks/components/SharingModal/styles.js +4 -1
- package/lib/banks/components/SharingModal/theme.js +6 -3
- package/lib/building/api/items.js +118 -81
- package/lib/building/api/qtiImports.js +47 -18
- package/lib/building/api/quizEntries.js +111 -64
- package/lib/building/api/quizzes.js +78 -50
- package/lib/building/api/stimuli.js +16 -9
- package/lib/building/components/QTIImportModal/index.js +28 -13
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +50 -19
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +46 -19
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +62 -34
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +7 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +4 -1
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +43 -17
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +61 -33
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +7 -2
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +4 -1
- package/lib/building/components/layout/Sidebar/index.js +44 -21
- package/lib/building/components/layout/Sidebar/presenter.js +74 -28
- package/lib/building/components/layout/Sidebar/styles.js +7 -2
- package/lib/building/components/layout/Sidebar/theme.js +4 -1
- package/lib/building/components/layout/header/BuildingButtons/index.js +34 -15
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +86 -19
- package/lib/building/components/layout/header/BuildingButtons/styles.js +7 -2
- package/lib/building/components/layout/header/BuildingButtons/theme.js +6 -3
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +16 -7
- package/lib/building/components/resources/ActionButtons/index.js +20 -7
- package/lib/building/components/resources/ActionButtons/presenter.js +55 -18
- package/lib/building/components/resources/ActionButtons/styles.js +9 -2
- package/lib/building/components/resources/ActionButtons/theme.js +5 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +81 -41
- package/lib/building/components/resources/AddToBankOptions/styles.js +4 -1
- package/lib/building/components/resources/AddToBankOptions/theme.js +5 -2
- package/lib/building/components/resources/BanksTray/index.js +13 -5
- package/lib/building/components/resources/BanksTray/presenter.js +69 -19
- package/lib/building/components/resources/DeleteStimulusModal/index.js +24 -10
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +79 -24
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +4 -1
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +5 -2
- package/lib/building/components/resources/ItemFeedbackModal/index.js +27 -12
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +53 -15
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +4 -1
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +4 -1
- package/lib/building/components/resources/MoveImmutableModal/index.js +29 -14
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +45 -12
- package/lib/building/components/resources/quiz/editButton/EditButton.js +38 -8
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +11 -4
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +45 -20
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +4 -1
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -0
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +9 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +23 -10
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +75 -31
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +7 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +3 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +47 -17
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +4 -1
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +3 -2
- package/lib/building/components/resources/quiz/title/Edit/index.js +55 -19
- package/lib/building/components/resources/quiz/title/Edit/styles.js +7 -2
- package/lib/building/components/resources/quiz/title/Edit/theme.js +7 -4
- package/lib/building/components/resources/quiz/title/Show/index.js +47 -17
- package/lib/building/components/resources/quiz/title/Show/styles.js +4 -1
- package/lib/building/components/resources/quiz/title/Show/theme.js +4 -1
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +9 -4
- package/lib/building/components/resources/quiz/title/Title/index.js +25 -11
- package/lib/building/components/resources/quiz/title/Title/presenter.js +69 -31
- package/lib/building/components/resources/quiz/title/Title/styles.js +8 -2
- package/lib/building/components/resources/quiz/title/Title/theme.js +4 -3
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +44 -19
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +117 -46
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +23 -6
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +7 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +17 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +77 -21
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +4 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +47 -18
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +4 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +18 -8
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +79 -28
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +8 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +151 -74
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +5 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +35 -14
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +206 -107
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +5 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +24 -10
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +106 -47
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +8 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +8 -5
- package/lib/common/actions/addInteractionTypes.js +2 -0
- package/lib/common/actions/alerts.js +18 -9
- package/lib/common/actions/analyses.js +11 -4
- package/lib/common/actions/bankEntries.js +10 -3
- package/lib/common/actions/bankSearch.js +19 -6
- package/lib/common/actions/banks.js +27 -8
- package/lib/common/actions/config.js +5 -1
- package/lib/common/actions/dragAndDrop.js +2 -0
- package/lib/common/actions/editing.js +5 -1
- package/lib/common/actions/errorsShowing.js +5 -1
- package/lib/common/actions/features.js +3 -0
- package/lib/common/actions/grading.js +6 -2
- package/lib/common/actions/items.js +2 -0
- package/lib/common/actions/modal.js +10 -3
- package/lib/common/actions/moderation.js +3 -0
- package/lib/common/actions/modifications.js +86 -64
- package/lib/common/actions/outcomes.js +5 -0
- package/lib/common/actions/postMessage.js +2 -0
- package/lib/common/actions/printing.js +4 -1
- package/lib/common/actions/qtiImports.js +3 -0
- package/lib/common/actions/quizEntries.js +7 -0
- package/lib/common/actions/quizExport.js +6 -2
- package/lib/common/actions/quizSessionEvents.js +6 -2
- package/lib/common/actions/quizSessionResults.js +6 -2
- package/lib/common/actions/quizSessions.js +45 -13
- package/lib/common/actions/quizzes.js +27 -8
- package/lib/common/actions/rce.js +17 -8
- package/lib/common/actions/regrading.js +5 -1
- package/lib/common/actions/reporting.js +7 -1
- package/lib/common/actions/scrolling.js +4 -1
- package/lib/common/actions/sessionItemResults.js +6 -2
- package/lib/common/actions/sessionItems.js +6 -2
- package/lib/common/actions/sharedBanks.js +15 -5
- package/lib/common/actions/sidebar.js +4 -1
- package/lib/common/actions/stimuli.js +2 -0
- package/lib/common/actions/tagAssociations.js +34 -9
- package/lib/common/actions/taking.js +76 -25
- package/lib/common/actions/ui.js +39 -11
- package/lib/common/actions/upload.js +22 -6
- package/lib/common/api/callHandlers.js +111 -38
- package/lib/common/api/camelizeHelpers.js +15 -6
- package/lib/common/api/features.js +15 -6
- package/lib/common/api/fileUpload.js +14 -7
- package/lib/common/api/getPersistenceActions.js +64 -42
- package/lib/common/api/helpers.js +127 -84
- package/lib/common/api/interactionTypes.js +11 -5
- package/lib/common/api/quizSessions.js +94 -42
- package/lib/common/api/quizzes.js +19 -11
- package/lib/common/api/schema.js +42 -24
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +26 -12
- package/lib/common/components/ConfirmationModal/index.js +17 -5
- package/lib/common/components/ConfirmationModal/presenter.js +49 -17
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +57 -27
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +4 -1
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -3
- package/lib/common/components/ImportModal/index.js +33 -18
- package/lib/common/components/ImportModal/presenter.js +95 -23
- package/lib/common/components/ImportModal/styles.js +4 -1
- package/lib/common/components/ImportModal/theme.js +4 -1
- package/lib/common/components/LearnosityCalculator/index.js +81 -43
- package/lib/common/components/Pin/Pin.examples.js +3 -2
- package/lib/common/components/Pin/index.js +7 -3
- package/lib/common/components/Pin/presenter.js +35 -8
- package/lib/common/components/PreviewFrame/examples.config.js +10 -5
- package/lib/common/components/PreviewFrame/index.js +36 -12
- package/lib/common/components/PrintFontSizeModal/index.js +7 -3
- package/lib/common/components/PrintFontSizeModal/presenter.js +54 -27
- package/lib/common/components/PrintFontSizeModal/styles.js +4 -1
- package/lib/common/components/PrintFontSizeModal/theme.js +6 -3
- package/lib/common/components/RceConfigProvider/index.js +14 -6
- package/lib/common/components/RceConfigProvider/presenter.js +145 -96
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +26 -9
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +26 -8
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +45 -29
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +20 -6
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +12 -6
- package/lib/common/components/SDKApp/index.js +92 -39
- package/lib/common/components/SDKApp/styles.js +4 -1
- package/lib/common/components/SDKHeaderCalculator.js +20 -10
- package/lib/common/components/SDKMenuButton.js +16 -7
- package/lib/common/components/SDKNavBar.js +17 -8
- package/lib/common/components/SDKTimer.js +20 -10
- package/lib/common/components/alerts/index.js +17 -7
- package/lib/common/components/alerts/presenter.js +48 -14
- package/lib/common/components/alerts/styles.js +7 -2
- package/lib/common/components/alerts/theme.js +5 -2
- package/lib/common/components/layout/Page/index.js +33 -14
- package/lib/common/components/layout/Page/styles.js +8 -2
- package/lib/common/components/layout/Page/theme.js +6 -3
- package/lib/common/components/layout/header/Calculator/index.js +20 -9
- package/lib/common/components/layout/header/Calculator/presenter.js +43 -14
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +22 -10
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +52 -17
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +7 -2
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +6 -3
- package/lib/common/components/layout/header/Timer/index.js +22 -8
- package/lib/common/components/layout/header/Timer/presenter.js +75 -25
- package/lib/common/components/layout/header/Timer/styles.js +4 -1
- package/lib/common/components/layout/header/Timer/theme.js +7 -4
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +34 -13
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +4 -1
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +4 -1
- package/lib/common/components/layout/navbar/index.js +55 -18
- package/lib/common/components/layout/navbar/styles.js +4 -1
- package/lib/common/components/layout/navbar/theme.js +5 -2
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +34 -13
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +4 -1
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +7 -4
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +33 -8
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +17 -9
- package/lib/common/components/layout/sidebar/Sidebar/index.js +108 -43
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +15 -6
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +10 -6
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +27 -11
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +72 -39
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -2
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -4
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +13 -6
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +60 -27
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +9 -3
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +13 -6
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +59 -23
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +4 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +35 -14
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +4 -1
- package/lib/common/components/layout/sidebar/Stimulus/index.js +21 -8
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +76 -35
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +4 -1
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +7 -4
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -2
- package/lib/common/components/resources/BankSelection/index.js +21 -9
- package/lib/common/components/resources/BankSelection/presenter.js +70 -20
- package/lib/common/components/resources/WarningWrapper/index.js +42 -14
- package/lib/common/components/resources/WarningWrapper/styles.js +4 -1
- package/lib/common/components/resources/WarningWrapper/theme.js +6 -3
- package/lib/common/components/resources/entry/EntrySave/index.js +29 -13
- package/lib/common/components/resources/entry/EntrySave/presenter.js +175 -99
- package/lib/common/components/resources/item/ItemEdit/index.js +44 -21
- package/lib/common/components/resources/item/ItemEdit/presenter.js +69 -22
- package/lib/common/components/resources/item/ItemOverride/index.js +29 -12
- package/lib/common/components/resources/item/ItemOverride/presenter.js +38 -10
- package/lib/common/components/resources/item/ItemShow/index.js +34 -10
- package/lib/common/components/resources/positionBox/PositionBox.js +35 -14
- package/lib/common/components/resources/positionBox/styles.js +7 -2
- package/lib/common/components/resources/positionBox/theme.js +6 -3
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +22 -9
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +68 -27
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +14 -6
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +8 -5
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +42 -14
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +8 -2
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +8 -5
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +21 -10
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +33 -10
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +23 -10
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +59 -21
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +4 -1
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +5 -2
- package/lib/common/components/resources/quiz/info/QuizInfo.js +31 -10
- package/lib/common/components/resources/quiz/instructions/Instructions.js +38 -19
- package/lib/common/components/resources/quiz/instructions/styles.js +4 -1
- package/lib/common/components/resources/quiz/instructions/theme.js +5 -2
- package/lib/common/components/resources/quiz/title/Title.js +38 -18
- package/lib/common/components/resources/quiz/title/styles.js +4 -1
- package/lib/common/components/resources/quiz/title/theme.js +5 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +43 -14
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +4 -1
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +5 -2
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +11 -5
- package/lib/common/components/resources/quizSessionResult/Info/index.js +151 -111
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +5 -1
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +5 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +37 -13
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +8 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +8 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +17 -7
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +115 -68
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +7 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +7 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +53 -20
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +4 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +7 -4
- package/lib/common/components/resources/stimulus/Stimulus/index.js +19 -7
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +72 -32
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +12 -3
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +7 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +33 -13
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +232 -120
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +4 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +19 -7
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +67 -19
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +4 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +53 -22
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +4 -1
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +8 -4
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +30 -7
- package/lib/common/components/shared/Card/CardContent/index.js +35 -14
- package/lib/common/components/shared/Card/CardContent/styles.js +7 -2
- package/lib/common/components/shared/Card/CardContent/theme.js +8 -5
- package/lib/common/components/shared/Card/CardWrapper/index.js +35 -14
- package/lib/common/components/shared/Card/CardWrapper/styles.js +7 -2
- package/lib/common/components/shared/Card/CardWrapper/theme.js +6 -3
- package/lib/common/components/shared/Card/index.js +20 -10
- package/lib/common/components/shared/ExpandButton/index.js +35 -13
- package/lib/common/components/shared/ExpandButton/styles.js +7 -2
- package/lib/common/components/shared/ExpandButton/theme.js +4 -1
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +8 -3
- package/lib/common/components/shared/FormattedDuration/index.js +48 -17
- package/lib/common/components/shared/IfFeature/index.js +13 -6
- package/lib/common/components/shared/IfFeature/presenter.js +25 -7
- package/lib/common/components/shared/InteractionTypes/index.js +11 -4
- package/lib/common/components/shared/InteractionTypes/presenter.js +56 -17
- package/lib/common/components/shared/InteractionTypes/styles.js +4 -1
- package/lib/common/components/shared/InteractionTypes/theme.js +6 -3
- package/lib/common/components/shared/PaginatedCollection/index.js +16 -7
- package/lib/common/components/shared/PaginatedCollection/presenter.js +97 -63
- package/lib/common/components/shared/PaginatedCollection/styles.js +4 -1
- package/lib/common/components/shared/PaginatedCollection/theme.js +6 -3
- package/lib/common/components/shared/Paginator/index.js +38 -14
- package/lib/common/components/shared/Paginator/styles.js +4 -1
- package/lib/common/components/shared/Paginator/theme.js +4 -1
- package/lib/common/components/shared/PrintTrigger/index.js +27 -11
- package/lib/common/components/shared/PrintTrigger/presenter.js +61 -17
- package/lib/common/components/shared/TagDisplay/index.js +37 -13
- package/lib/common/components/shared/TagDisplay/styles.js +4 -1
- package/lib/common/components/shared/TagSelect/index.js +7 -3
- package/lib/common/components/shared/TagSelect/presenter.js +72 -20
- package/lib/common/components/shared/TagSuggestSelect/index.js +17 -6
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +49 -17
- package/lib/common/components/shared/TagWrapper/index.js +7 -3
- package/lib/common/components/shared/TagWrapper/presenter.js +38 -11
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -2
- package/lib/common/components/shared/TimeUnitsInput/index.js +89 -36
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +47 -21
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +6 -3
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +30 -13
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +89 -30
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +108 -39
- package/lib/common/components/shared/errors/Errors.js +42 -14
- package/lib/common/components/shared/errors/styles.js +4 -1
- package/lib/common/components/shared/errors/theme.js +5 -2
- package/lib/common/components/shared/file_selector/FileSelector.js +39 -15
- package/lib/common/components/shared/file_selector/styles.js +4 -1
- package/lib/common/components/shared/file_selector/theme.js +6 -3
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +40 -18
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +32 -12
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +10 -4
- package/lib/common/components/shared/functionality/makeEditable.js +59 -25
- package/lib/common/components/shared/functionality/makeScrollable.js +74 -33
- package/lib/common/components/shared/overlay/index.js +39 -26
- package/lib/common/components/shared/overlay/styles.js +7 -2
- package/lib/common/components/shared/overlay/theme.js +6 -3
- package/lib/common/components/shared/return_button/ReturnButton.js +33 -11
- package/lib/common/components/shared/spinner/Spinner.js +43 -20
- package/lib/common/components/shared/spinner/styles.js +4 -1
- package/lib/common/kinesis/QuizEventsLogger.js +89 -52
- package/lib/common/kinesis/StreamQueue.js +33 -12
- package/lib/common/kinesis/client.js +26 -9
- package/lib/common/kinesis/config.js +22 -9
- package/lib/common/kinesis/eventTypes.js +20 -12
- package/lib/common/middleware/alertTimerMiddleware.js +11 -4
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +8 -2
- package/lib/common/middleware/eventLoggerMiddleware.js +14 -6
- package/lib/common/middleware/persistedStorageMiddleware.js +15 -4
- package/lib/common/react-redux.js +7 -3
- package/lib/common/records/Alert.js +20 -8
- package/lib/common/records/Bank.js +30 -10
- package/lib/common/records/BankEntry.js +32 -10
- package/lib/common/records/Item.js +39 -18
- package/lib/common/records/ItemAnalysis.js +28 -9
- package/lib/common/records/QtiImport.js +25 -8
- package/lib/common/records/Quiz.js +47 -21
- package/lib/common/records/QuizAnalysis.js +24 -8
- package/lib/common/records/QuizEntry.js +179 -109
- package/lib/common/records/QuizSession.js +46 -24
- package/lib/common/records/QuizSessionEvent.js +25 -9
- package/lib/common/records/QuizSessionResult.js +27 -9
- package/lib/common/records/Response.js +27 -9
- package/lib/common/records/SessionItem.js +38 -13
- package/lib/common/records/SessionItemResult.js +26 -9
- package/lib/common/records/Stimulus.js +33 -13
- package/lib/common/records/baseRecord.js +33 -11
- package/lib/common/records/index.js +52 -35
- package/lib/common/records/reduxRecord.js +21 -10
- package/lib/common/reducers/alerts.js +10 -2
- package/lib/common/reducers/analyses.js +35 -11
- package/lib/common/reducers/bankEntries.js +15 -3
- package/lib/common/reducers/bankSearch.js +17 -6
- package/lib/common/reducers/banks.js +23 -4
- package/lib/common/reducers/calls.js +10 -2
- package/lib/common/reducers/config.js +12 -2
- package/lib/common/reducers/dragAndDrop.js +9 -2
- package/lib/common/reducers/editing.js +13 -4
- package/lib/common/reducers/errorsShowing.js +11 -2
- package/lib/common/reducers/features.js +10 -2
- package/lib/common/reducers/grading.js +11 -2
- package/lib/common/reducers/interactionTypes.js +13 -3
- package/lib/common/reducers/items.js +14 -3
- package/lib/common/reducers/modal.js +13 -2
- package/lib/common/reducers/moderation.js +11 -2
- package/lib/common/reducers/modifications.js +50 -11
- package/lib/common/reducers/outcomes.js +13 -2
- package/lib/common/reducers/printing.js +9 -2
- package/lib/common/reducers/qtiImports.js +15 -3
- package/lib/common/reducers/quizEntries.js +50 -31
- package/lib/common/reducers/quizExport.js +9 -2
- package/lib/common/reducers/quizSessionEvents.js +12 -4
- package/lib/common/reducers/quizSessionResults.js +13 -3
- package/lib/common/reducers/quizSessions.js +22 -5
- package/lib/common/reducers/quizzes.js +25 -3
- package/lib/common/reducers/rce.js +12 -2
- package/lib/common/reducers/regrading.js +12 -2
- package/lib/common/reducers/reporting.js +22 -3
- package/lib/common/reducers/scrolling.js +10 -2
- package/lib/common/reducers/sessionItemResults.js +13 -3
- package/lib/common/reducers/sessionItems.js +14 -3
- package/lib/common/reducers/sharedBanks.js +17 -4
- package/lib/common/reducers/sidebar.js +10 -2
- package/lib/common/reducers/stimuli.js +14 -3
- package/lib/common/reducers/tagAssociations.js +35 -2
- package/lib/common/reducers/taking.js +41 -2
- package/lib/common/reducers/ui.js +18 -2
- package/lib/common/reducers/upload.js +14 -2
- package/lib/common/selectors/analyses.js +28 -8
- package/lib/common/selectors/calculator.js +15 -8
- package/lib/common/selectors/calls.js +3 -0
- package/lib/common/selectors/config.js +5 -1
- package/lib/common/selectors/interactionTypes.js +22 -12
- package/lib/common/selectors/items.js +9 -2
- package/lib/common/selectors/qtiImports.js +14 -6
- package/lib/common/selectors/quizSessionResults.js +8 -3
- package/lib/common/selectors/quizSessions.js +30 -13
- package/lib/common/selectors/quizzes.js +70 -23
- package/lib/common/selectors/rce.js +10 -4
- package/lib/common/selectors/reporting.js +11 -4
- package/lib/common/selectors/sessionItemResults.js +17 -8
- package/lib/common/selectors/sessionItems.js +18 -8
- package/lib/common/selectors/taking.js +29 -10
- package/lib/common/selectors/ui.js +5 -2
- package/lib/common/util/CustomPropTypes.js +23 -3
- package/lib/common/util/ElementsForSelectors.js +8 -3
- package/lib/common/util/ExhaustivePaginatedFetcher.js +85 -55
- package/lib/common/util/Fetcher.js +245 -157
- package/lib/common/util/MultiWeakMap.js +27 -4
- package/lib/common/util/PaginatedFetcher.js +57 -24
- package/lib/common/util/ThunkQueue.js +87 -53
- package/lib/common/util/TimeRecordingService.js +23 -4
- package/lib/common/util/TimerService.js +59 -9
- package/lib/common/util/cachePreviousArgs.js +11 -3
- package/lib/common/util/callHelpers.js +20 -6
- package/lib/common/util/componentForItem.js +16 -4
- package/lib/common/util/crossDomainMessaging.js +2 -0
- package/lib/common/util/debounceLatestPromise.js +10 -3
- package/lib/common/util/featureCheck.js +16 -6
- package/lib/common/util/fetchHelpers.js +1 -0
- package/lib/common/util/fitbCopyHelper.js +4 -1
- package/lib/common/util/formatTimespan.js +22 -3
- package/lib/common/util/generateDisplayPositions.js +10 -4
- package/lib/common/util/httpHeaders.js +12 -5
- package/lib/common/util/immutableHelpers.js +19 -10
- package/lib/common/util/instUIMessages.js +5 -2
- package/lib/common/util/interactionTypeMetadata.js +16 -8
- package/lib/common/util/interactionTypePropsHelper.js +20 -4
- package/lib/common/util/interactionTypeRecordForItem.js +13 -3
- package/lib/common/util/jsonify.js +10 -5
- package/lib/common/util/keyboardClickable.js +4 -1
- package/lib/common/util/mathRenderingUtils.js +6 -2
- package/lib/common/util/maxContent.js +10 -3
- package/lib/common/util/modalHelpers.js +2 -0
- package/lib/common/util/noop.js +5 -2
- package/lib/common/util/persistedState.js +20 -6
- package/lib/common/util/printUtils.js +13 -4
- package/lib/common/util/rceChecker.js +26 -14
- package/lib/common/util/renderAlerts.js +25 -13
- package/lib/common/util/serializeEvent.js +13 -4
- package/lib/common/util/sessionStore.js +20 -8
- package/lib/common/util/valMap.js +8 -3
- package/lib/common/util/warningHelpers.js +44 -10
- package/lib/common/util/windowChecks.js +22 -7
- package/lib/common/util/withCachedArguments.js +14 -4
- package/lib/common/util/withDynamoPagination.js +97 -63
- package/lib/common/util/withStateCache.js +19 -3
- package/lib/config.js +17 -6
- package/lib/configureStore.js +104 -53
- package/lib/grading/api/quizEntryRegrades.js +13 -7
- package/lib/grading/api/updateResults.js +20 -7
- package/lib/index.js +646 -517
- package/lib/messages/LocalStorageAdapter.js +21 -6
- package/lib/messages/LocalStorageLimits.js +30 -7
- package/lib/messages/StorageExhaustionError.js +20 -8
- package/lib/messages/postMessageService.js +35 -6
- package/lib/messages/subjectHandlers/forwardMessage.js +4 -1
- package/lib/messages/subjectHandlers/lti.capabilities.js +4 -1
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +4 -1
- package/lib/messages/subjectHandlers/lti.frameResize.js +7 -2
- package/lib/messages/subjectHandlers/lti.get_data.js +12 -4
- package/lib/messages/subjectHandlers/lti.put_data.js +19 -7
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +13 -4
- package/lib/messages/utils.js +1 -0
- package/lib/moderating/api/quizSessionEvents.js +10 -4
- package/lib/moderating/api/quizSessions.js +12 -4
- package/lib/moderating/components/events/Event.js +56 -20
- package/lib/moderating/components/events/PageBlurredEvent.js +27 -8
- package/lib/moderating/components/events/PageFocusedEvent.js +27 -8
- package/lib/moderating/components/events/RCEEvent.js +27 -8
- package/lib/moderating/components/events/ResponseEvent.js +49 -18
- package/lib/moderating/components/events/SessionStartEvent.js +32 -8
- package/lib/moderating/components/events/styles.js +4 -1
- package/lib/moderating/components/events/theme.js +5 -2
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +44 -15
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +47 -10
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +45 -8
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +54 -14
- package/lib/moderating/components/resources/AccommodationsModal/index.js +55 -15
- package/lib/moderating/components/resources/ElapsedTime.js +32 -13
- package/lib/moderating/components/resources/ModerateTable/index.js +26 -12
- package/lib/moderating/components/resources/ModerateTable/presenter.js +128 -52
- package/lib/moderating/components/resources/ModerateTable/styles.js +7 -2
- package/lib/moderating/components/resources/ModerateTable/theme.js +5 -2
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +13 -5
- package/lib/moderating/components/resources/ModerateTableRow/index.js +15 -8
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +99 -35
- package/lib/moderating/components/resources/ModerateTableRow/story.js +10 -4
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +4 -1
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +4 -1
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +20 -8
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +54 -9
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -2
- package/lib/moderating/components/sidebar/ModerateTray/index.js +15 -7
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +52 -8
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +25 -11
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +58 -21
- package/lib/reduxStore.js +21 -9
- package/lib/reporting/api/getAnalysesExport.js +40 -23
- package/lib/reporting/api/getAnalysesStatus.js +33 -20
- package/lib/reporting/api/getItemAnalyses.js +33 -20
- package/lib/reporting/api/getQuizAnalysis.js +33 -20
- package/lib/reporting/api/itemAnalyses.js +11 -5
- package/lib/reporting/api/quizAnalyses.js +11 -5
- package/lib/reporting/components/Caption/index.js +34 -14
- package/lib/reporting/components/Caption/styles.js +4 -1
- package/lib/reporting/components/Caption/theme.js +6 -3
- package/lib/reporting/components/MetricsListItem/index.js +38 -16
- package/lib/reporting/components/MetricsListItem/styles.js +4 -1
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +6 -2
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +60 -21
- package/lib/reporting/components/charts/CentileDistribution/styles.js +7 -2
- package/lib/reporting/components/charts/CentileDistribution/theme.js +6 -3
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +6 -3
- package/lib/reporting/components/charts/Distribution/Distribution.js +6 -2
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +6 -2
- package/lib/reporting/components/charts/Distribution/index.js +6 -2
- package/lib/reporting/components/charts/Distribution/presenter.js +76 -23
- package/lib/reporting/components/charts/Distribution/styles.js +4 -1
- package/lib/reporting/components/charts/Distribution/theme.js +5 -2
- package/lib/reporting/components/charts/Legend/index.js +39 -17
- package/lib/reporting/components/charts/Legend/styles.js +7 -2
- package/lib/reporting/components/charts/Legend/theme.js +7 -4
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/QuintileDistribution/index.js +6 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +57 -19
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +4 -1
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +5 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +9 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +53 -14
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +20 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +9 -6
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +9 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +18 -7
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +95 -45
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +8 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +7 -4
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +74 -35
- package/lib/reporting/components/quizAnalysis/styles.js +12 -5
- package/lib/reporting/components/quizAnalysis/theme.js +7 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +36 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +38 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +33 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +37 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +41 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +49 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +51 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +47 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +42 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +72 -29
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +47 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +12 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +15 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +41 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +89 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +61 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +45 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +48 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +44 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +80 -37
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +41 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +7 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +39 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +71 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +82 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +45 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +20 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +49 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +30 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +10 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +11 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +91 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +7 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +73 -33
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +11 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +85 -39
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +8 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +51 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +30 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +37 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +64 -43
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +61 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +45 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +100 -68
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +11 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +111 -48
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +71 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +17 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +32 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +154 -108
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +13 -6
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +44 -16
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +19 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +22 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +92 -45
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +4 -1
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/ReportCard/index.js +43 -19
- package/lib/reporting/components/resources/ReportCard/styles.js +7 -2
- package/lib/reporting/components/resources/ReportCard/theme.js +5 -2
- package/lib/reporting/components/resources/ReportList/index.js +38 -17
- package/lib/reporting/components/resources/ReportList/styles.js +4 -1
- package/lib/reporting/components/resources/ReportList/theme.js +4 -1
- package/lib/taking/api/taking.js +104 -56
- package/lib/taking/learnosity/index.js +77 -44
- package/package.json +10 -9
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
|
|
6
|
+
var _dec, _class, _class2, _temp;
|
|
7
|
+
|
|
6
8
|
/** @jsx jsx */
|
|
7
9
|
import { Component } from 'react';
|
|
8
10
|
import PropTypes from 'prop-types';
|
|
@@ -11,21 +13,30 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
11
13
|
import { Alert } from '@instructure/ui-alerts';
|
|
12
14
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
13
15
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
|
-
import generateStyle from
|
|
15
|
-
import generateComponentTheme from
|
|
16
|
-
export var QuizSessionResultHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (
|
|
16
|
+
import generateStyle from "./styles.js";
|
|
17
|
+
import generateComponentTheme from "./theme.js";
|
|
18
|
+
export var QuizSessionResultHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
19
|
+
_inherits(QuizSessionResultHeader, _Component);
|
|
20
|
+
|
|
21
|
+
var _super = _createSuper(QuizSessionResultHeader);
|
|
22
|
+
|
|
17
23
|
function QuizSessionResultHeader() {
|
|
18
24
|
var _this;
|
|
25
|
+
|
|
19
26
|
_classCallCheck(this, QuizSessionResultHeader);
|
|
27
|
+
|
|
20
28
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21
29
|
args[_key] = arguments[_key];
|
|
22
30
|
}
|
|
23
|
-
|
|
31
|
+
|
|
32
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
33
|
+
|
|
24
34
|
_this.renderRegradeAlert = function () {
|
|
25
35
|
if (_this.props.regradedSessionItemResults && _this.props.regradedSessionItemResults.size > 0) {
|
|
26
36
|
var questions = _this.props.regradedSessionItemResults.map(function (rsi) {
|
|
27
37
|
return rsi.position;
|
|
28
38
|
}).toJS().join(', ');
|
|
39
|
+
|
|
29
40
|
return jsx(Alert, {
|
|
30
41
|
variant: "warning"
|
|
31
42
|
}, t("This assessment has been regraded. {\n numRegradedSI, plural,\n =1 {Question {questions} has been affected.}\n other {Questions {questions} have been affected.}\n }", {
|
|
@@ -34,10 +45,11 @@ export var QuizSessionResultHeader = (_dec = withStyle(generateStyle, generateCo
|
|
|
34
45
|
}));
|
|
35
46
|
}
|
|
36
47
|
};
|
|
48
|
+
|
|
37
49
|
return _this;
|
|
38
50
|
}
|
|
39
|
-
|
|
40
|
-
|
|
51
|
+
|
|
52
|
+
_createClass(QuizSessionResultHeader, [{
|
|
41
53
|
key: "studentName",
|
|
42
54
|
value: function studentName() {
|
|
43
55
|
return this.props.quizSession.userDisplayName();
|
|
@@ -62,14 +74,17 @@ export var QuizSessionResultHeader = (_dec = withStyle(generateStyle, generateCo
|
|
|
62
74
|
}, this.renderRegradeAlert()));
|
|
63
75
|
}
|
|
64
76
|
}]);
|
|
65
|
-
|
|
77
|
+
|
|
78
|
+
QuizSessionResultHeader.displayName = "QuizSessionResultHeader";
|
|
79
|
+
return QuizSessionResultHeader;
|
|
80
|
+
}(Component), _class2.propTypes = {
|
|
66
81
|
quizSession: ImmutablePropTypes.record.isRequired,
|
|
67
82
|
regradedSessionItemResults: ImmutablePropTypes.list,
|
|
68
83
|
studentDescription: PropTypes.node,
|
|
69
84
|
// eslint-disable-next-line react/require-default-props,react/forbid-prop-types
|
|
70
85
|
styles: PropTypes.object
|
|
71
|
-
},
|
|
86
|
+
}, _class2.defaultProps = {
|
|
72
87
|
regradedSessionItemResults: null,
|
|
73
88
|
studentDescription: null
|
|
74
|
-
},
|
|
89
|
+
}, _temp)) || _class);
|
|
75
90
|
export default QuizSessionResultHeader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
2
|
var spacing = _ref.spacing,
|
|
3
|
-
|
|
3
|
+
typography = _ref.typography;
|
|
4
4
|
return {
|
|
5
5
|
resultListInfoMargin: spacing.large,
|
|
6
6
|
resultListTitleFontSize: typography.fontSizeXXLarge,
|
|
@@ -8,4 +8,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
8
8
|
regradeAlertPadding: spacing.xLarge
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
|
|
11
12
|
export default generateComponentTheme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fromJS } from 'immutable';
|
|
2
|
-
import QuizSession from
|
|
3
|
-
import QuizSessionResult from
|
|
2
|
+
import QuizSession from "../../../../records/QuizSession.js";
|
|
3
|
+
import QuizSessionResult from "../../../../records/QuizSessionResult.js";
|
|
4
4
|
export default {
|
|
5
5
|
propValues: {
|
|
6
6
|
quizSession: [new QuizSession({
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
|
|
7
|
+
var _dec, _class, _class2, _temp;
|
|
8
|
+
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { Component } from 'react';
|
|
8
11
|
import PropTypes from 'prop-types';
|
|
@@ -17,121 +20,38 @@ import { withStyle, jsx } from '@instructure/emotion';
|
|
|
17
20
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
18
21
|
import { scoreToLetterGrade } from '@instructure/grading-utils';
|
|
19
22
|
import { withI18nSupport } from '@instructure/quiz-common';
|
|
20
|
-
import FormattedDuration from
|
|
21
|
-
import { formatTime } from
|
|
22
|
-
import generateStyle from
|
|
23
|
-
import generateComponentTheme from
|
|
23
|
+
import FormattedDuration from "../../../shared/FormattedDuration/index.js";
|
|
24
|
+
import { formatTime } from "../../../../util/formatTimespan.js";
|
|
25
|
+
import generateStyle from "./styles.js";
|
|
26
|
+
import generateComponentTheme from "./theme.js";
|
|
24
27
|
var unknownPercentageValue = 'UNKNOWN_PERCENTAGE';
|
|
25
|
-
export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (
|
|
28
|
+
export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_withI18nSupport) {
|
|
29
|
+
_inherits(Info, _withI18nSupport);
|
|
30
|
+
|
|
31
|
+
var _super = _createSuper(Info);
|
|
32
|
+
|
|
26
33
|
function Info(props) {
|
|
27
34
|
var _this;
|
|
35
|
+
|
|
28
36
|
_classCallCheck(this, Info);
|
|
29
|
-
|
|
30
|
-
_this
|
|
31
|
-
_this.
|
|
37
|
+
|
|
38
|
+
_this = _super.call(this, props);
|
|
39
|
+
_this.progressTextFormatter = _this.progressTextFormatter.bind(_assertThisInitialized(_this));
|
|
40
|
+
_this.progressDisplayFormatter = _this.progressDisplayFormatter.bind(_assertThisInitialized(_this));
|
|
32
41
|
return _this;
|
|
33
42
|
}
|
|
34
|
-
_inherits(Info, _withI18nSupport);
|
|
35
|
-
return _createClass(Info, [{
|
|
36
|
-
key: "points",
|
|
37
|
-
get: function get() {
|
|
38
|
-
return this.props.quizSessionResult.score;
|
|
39
|
-
}
|
|
40
|
-
}, {
|
|
41
|
-
key: "pointsPresent",
|
|
42
|
-
get: function get() {
|
|
43
|
-
return typeof this.points === 'number';
|
|
44
|
-
}
|
|
45
|
-
}, {
|
|
46
|
-
key: "pointsMissing",
|
|
47
|
-
get: function get() {
|
|
48
|
-
return !this.pointsPresent;
|
|
49
|
-
}
|
|
50
|
-
}, {
|
|
51
|
-
key: "pointsPossible",
|
|
52
|
-
get: function get() {
|
|
53
|
-
return this.props.quizSessionResult.pointsPossible;
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
key: "pointsPossiblePresent",
|
|
57
|
-
get: function get() {
|
|
58
|
-
return typeof this.pointsPossible === 'number';
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "pointsPossibleMissing",
|
|
62
|
-
get: function get() {
|
|
63
|
-
return !this.pointsPossiblePresent;
|
|
64
|
-
}
|
|
65
|
-
}, {
|
|
66
|
-
key: "percentageVal",
|
|
67
|
-
get: function get() {
|
|
68
|
-
var ratio = this.props.quizSessionResult.percentage;
|
|
69
|
-
return isNaN(ratio) ? unknownPercentageValue : ratio;
|
|
70
|
-
}
|
|
71
|
-
}, {
|
|
72
|
-
key: "mainPointsText",
|
|
73
|
-
get: function get() {
|
|
74
|
-
if (this.pointsMissing && this.pointsPossibleMissing) {
|
|
75
|
-
return '--';
|
|
76
|
-
}
|
|
77
|
-
var valueToUse = this.pointsPresent ? this.points : this.pointsPossible;
|
|
78
|
-
return t.number(valueToUse);
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
key: "subPointsText",
|
|
82
|
-
get: function get() {
|
|
83
|
-
if (this.pointsPresent && this.pointsPossiblePresent) {
|
|
84
|
-
return t("Out of {\n points, plural,\n one {# point}\n other {# points}\n }", {
|
|
85
|
-
points: this.pointsPossible
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
if (this.pointsPresent) {
|
|
89
|
-
return t("Earned {points, plural,\n one {point}\n other {points}\n }", {
|
|
90
|
-
points: this.points
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// We use "Points Possible" when only points is present or when nothing is present
|
|
95
|
-
return t("{points, plural,\n one {Point}\n other {Points}\n } possible", {
|
|
96
|
-
points: this.pointsPossible
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
key: "pointsText",
|
|
101
|
-
get: function get() {
|
|
102
|
-
if (this.pointsPresent && this.pointsPossiblePresent) {
|
|
103
|
-
return t("{points, number} out of {\n total, plural,\n one {# point}\n other {# points}\n }", {
|
|
104
|
-
points: this.points,
|
|
105
|
-
total: this.pointsPossible
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
if (this.pointsPresent) {
|
|
109
|
-
return t("Earned {points, plural,\n one {# point}\n other {# points}\n }", {
|
|
110
|
-
points: this.points
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
43
|
|
|
114
|
-
|
|
115
|
-
if (this.pointsPossiblePresent) {
|
|
116
|
-
return t("{points, plural,\n one {# point}\n other {# points}\n } possible", {
|
|
117
|
-
points: this.pointsPossible
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
return t('Unknown Score');
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// needed for inst-ui Progress
|
|
124
|
-
}, {
|
|
44
|
+
_createClass(Info, [{
|
|
125
45
|
key: "progressTextFormatter",
|
|
46
|
+
// needed for inst-ui Progress
|
|
126
47
|
value: function progressTextFormatter(_ref) {
|
|
127
48
|
var valueNow = _ref.valueNow;
|
|
128
49
|
var percentageUnknown = valueNow === unknownPercentageValue;
|
|
129
50
|
return percentageUnknown ? t('Unknown Score') : t('Your score was {percentage}.', {
|
|
130
51
|
percentage: this.formatPercentMax2FractionDigits(valueNow)
|
|
131
52
|
});
|
|
132
|
-
}
|
|
53
|
+
} // needed for inst-ui Progress
|
|
133
54
|
|
|
134
|
-
// needed for inst-ui Progress
|
|
135
55
|
}, {
|
|
136
56
|
key: "progressDisplayFormatter",
|
|
137
57
|
value: function progressDisplayFormatter(_ref2) {
|
|
@@ -150,13 +70,14 @@ export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
150
70
|
key: "renderAlert",
|
|
151
71
|
value: function renderAlert() {
|
|
152
72
|
var _this$props = this.props,
|
|
153
|
-
|
|
154
|
-
|
|
73
|
+
quizSessionResult = _this$props.quizSessionResult,
|
|
74
|
+
sessionItemResults = _this$props.sessionItemResults;
|
|
155
75
|
var ungradedCount = sessionItemResults.reduce(function (count, sessionItemResult) {
|
|
156
76
|
return sessionItemResult.getIn(['scoredData', 'gradeStatus']) === 'waiting' ? count + 1 : count;
|
|
157
77
|
}, 0);
|
|
158
78
|
var hasUngradedQuesitons = ungradedCount > 0;
|
|
159
79
|
var alerts = [];
|
|
80
|
+
|
|
160
81
|
if (quizSessionResult.isLoaded() && quizSessionResult.autogradingFailed()) {
|
|
161
82
|
var msg = t('There was a grading problem. Please inform your instructor.');
|
|
162
83
|
alerts.push(jsx(Alert, {
|
|
@@ -164,6 +85,7 @@ export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
164
85
|
variant: "warning"
|
|
165
86
|
}, msg));
|
|
166
87
|
}
|
|
88
|
+
|
|
167
89
|
if (hasUngradedQuesitons && quizSessionResult.isLoaded()) {
|
|
168
90
|
var ungradedText = t("{\n count, plural,\n one {# question requires grading}\n other {# questions require grading}\n }", {
|
|
169
91
|
count: ungradedCount
|
|
@@ -173,6 +95,7 @@ export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
173
95
|
variant: "info"
|
|
174
96
|
}, ungradedText));
|
|
175
97
|
}
|
|
98
|
+
|
|
176
99
|
if (alerts.length) {
|
|
177
100
|
return jsx("div", {
|
|
178
101
|
css: this.props.styles.alertWrapper
|
|
@@ -215,6 +138,7 @@ export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
215
138
|
if (this.pointsMissing || this.pointsPossibleMissing) {
|
|
216
139
|
return null;
|
|
217
140
|
}
|
|
141
|
+
|
|
218
142
|
return jsx("div", {
|
|
219
143
|
css: this.props.styles.score,
|
|
220
144
|
"data-automation": "sdk-info-score"
|
|
@@ -277,8 +201,102 @@ export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
277
201
|
css: this.props.styles.infoWrapper
|
|
278
202
|
}, this.renderTime()))));
|
|
279
203
|
}
|
|
204
|
+
}, {
|
|
205
|
+
key: "points",
|
|
206
|
+
get: function get() {
|
|
207
|
+
return this.props.quizSessionResult.score;
|
|
208
|
+
}
|
|
209
|
+
}, {
|
|
210
|
+
key: "pointsPresent",
|
|
211
|
+
get: function get() {
|
|
212
|
+
return typeof this.points === 'number';
|
|
213
|
+
}
|
|
214
|
+
}, {
|
|
215
|
+
key: "pointsMissing",
|
|
216
|
+
get: function get() {
|
|
217
|
+
return !this.pointsPresent;
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "pointsPossible",
|
|
221
|
+
get: function get() {
|
|
222
|
+
return this.props.quizSessionResult.pointsPossible;
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "pointsPossiblePresent",
|
|
226
|
+
get: function get() {
|
|
227
|
+
return typeof this.pointsPossible === 'number';
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
key: "pointsPossibleMissing",
|
|
231
|
+
get: function get() {
|
|
232
|
+
return !this.pointsPossiblePresent;
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
key: "percentageVal",
|
|
236
|
+
get: function get() {
|
|
237
|
+
var ratio = this.props.quizSessionResult.percentage;
|
|
238
|
+
return isNaN(ratio) ? unknownPercentageValue : ratio;
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
key: "mainPointsText",
|
|
242
|
+
get: function get() {
|
|
243
|
+
if (this.pointsMissing && this.pointsPossibleMissing) {
|
|
244
|
+
return '--';
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
var valueToUse = this.pointsPresent ? this.points : this.pointsPossible;
|
|
248
|
+
return t.number(valueToUse);
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "subPointsText",
|
|
252
|
+
get: function get() {
|
|
253
|
+
if (this.pointsPresent && this.pointsPossiblePresent) {
|
|
254
|
+
return t("Out of {\n points, plural,\n one {# point}\n other {# points}\n }", {
|
|
255
|
+
points: this.pointsPossible
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (this.pointsPresent) {
|
|
260
|
+
return t("Earned {points, plural,\n one {point}\n other {points}\n }", {
|
|
261
|
+
points: this.points
|
|
262
|
+
});
|
|
263
|
+
} // We use "Points Possible" when only points is present or when nothing is present
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
return t("{points, plural,\n one {Point}\n other {Points}\n } possible", {
|
|
267
|
+
points: this.pointsPossible
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
}, {
|
|
271
|
+
key: "pointsText",
|
|
272
|
+
get: function get() {
|
|
273
|
+
if (this.pointsPresent && this.pointsPossiblePresent) {
|
|
274
|
+
return t("{points, number} out of {\n total, plural,\n one {# point}\n other {# points}\n }", {
|
|
275
|
+
points: this.points,
|
|
276
|
+
total: this.pointsPossible
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (this.pointsPresent) {
|
|
281
|
+
return t("Earned {points, plural,\n one {# point}\n other {# points}\n }", {
|
|
282
|
+
points: this.points
|
|
283
|
+
});
|
|
284
|
+
} // We use "Points Possible" when only points is present or when nothing is present
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
if (this.pointsPossiblePresent) {
|
|
288
|
+
return t("{points, plural,\n one {# point}\n other {# points}\n } possible", {
|
|
289
|
+
points: this.pointsPossible
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return t('Unknown Score');
|
|
294
|
+
}
|
|
280
295
|
}]);
|
|
281
|
-
|
|
296
|
+
|
|
297
|
+
Info.displayName = "Info";
|
|
298
|
+
return Info;
|
|
299
|
+
}(withI18nSupport(Component)), _class2.propTypes = {
|
|
282
300
|
gradingScheme: PropTypes.arrayOf(PropTypes.shape({
|
|
283
301
|
name: PropTypes.string,
|
|
284
302
|
value: PropTypes.number
|
|
@@ -289,8 +307,8 @@ export var Info = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
289
307
|
sessionItemResults: ImmutablePropTypes.list.isRequired,
|
|
290
308
|
// eslint-disable-next-line react/require-default-props,react/forbid-prop-types
|
|
291
309
|
styles: PropTypes.object
|
|
292
|
-
},
|
|
310
|
+
}, _class2.defaultProps = {
|
|
293
311
|
gradingScheme: [],
|
|
294
312
|
restrictQuantitativeData: false
|
|
295
|
-
},
|
|
313
|
+
}, _temp)) || _class);
|
|
296
314
|
export default Info;
|
|
@@ -39,6 +39,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
39
39
|
margin: componentTheme.scoreMargin,
|
|
40
40
|
height: '150px',
|
|
41
41
|
width: '150px',
|
|
42
|
+
|
|
42
43
|
/*
|
|
43
44
|
progress modal sets a -1 z-index on its content
|
|
44
45
|
and this raises it above the app background
|
|
@@ -56,4 +57,5 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
59
|
};
|
|
60
|
+
|
|
59
61
|
export default generateStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
2
|
var spacing = _ref.spacing,
|
|
3
|
-
|
|
3
|
+
typography = _ref.typography;
|
|
4
4
|
return {
|
|
5
5
|
alertWrapperMargin: spacing.xSmall,
|
|
6
6
|
scoreMargin: spacing.small,
|
|
@@ -11,4 +11,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
11
|
inforWrapperPadding: spacing.small
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
|
|
14
15
|
export default generateComponentTheme;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
|
|
6
|
+
var _dec, _class, _class2, _temp;
|
|
7
|
+
|
|
6
8
|
/** @jsx jsx */
|
|
7
9
|
import { Component } from 'react';
|
|
8
10
|
import PropTypes from 'prop-types';
|
|
@@ -10,18 +12,24 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
10
12
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
11
13
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
12
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
13
|
-
import generateStyle from
|
|
14
|
-
import generateComponentTheme from
|
|
15
|
-
export var ResultStimulus = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (
|
|
15
|
+
import generateStyle from "./styles.js";
|
|
16
|
+
import generateComponentTheme from "./theme.js";
|
|
17
|
+
export var ResultStimulus = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
18
|
+
_inherits(ResultStimulus, _Component);
|
|
19
|
+
|
|
20
|
+
var _super = _createSuper(ResultStimulus);
|
|
21
|
+
|
|
16
22
|
function ResultStimulus() {
|
|
17
23
|
_classCallCheck(this, ResultStimulus);
|
|
18
|
-
|
|
24
|
+
|
|
25
|
+
return _super.apply(this, arguments);
|
|
19
26
|
}
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
|
|
28
|
+
_createClass(ResultStimulus, [{
|
|
22
29
|
key: "renderStimulusInstructions",
|
|
23
30
|
value: function renderStimulusInstructions() {
|
|
24
31
|
var instructions = this.props.stimulus.instructions;
|
|
32
|
+
|
|
25
33
|
if (instructions) {
|
|
26
34
|
return jsx("div", {
|
|
27
35
|
"data-testId": "instructions",
|
|
@@ -50,6 +58,7 @@ export var ResultStimulus = (_dec = withStyle(generateStyle, generateComponentTh
|
|
|
50
58
|
key: "renderStimulusItems",
|
|
51
59
|
value: function renderStimulusItems() {
|
|
52
60
|
var _this = this;
|
|
61
|
+
|
|
53
62
|
return this.props.sessionItem.getNestedEntries().toArray().map(function (sessionItem, i) {
|
|
54
63
|
return jsx("div", {
|
|
55
64
|
key: sessionItem.position,
|
|
@@ -76,11 +85,14 @@ export var ResultStimulus = (_dec = withStyle(generateStyle, generateComponentTh
|
|
|
76
85
|
}, this.renderStimulusItems()))));
|
|
77
86
|
}
|
|
78
87
|
}]);
|
|
79
|
-
|
|
88
|
+
|
|
89
|
+
ResultStimulus.displayName = "ResultStimulus";
|
|
90
|
+
return ResultStimulus;
|
|
91
|
+
}(Component), _class2.propTypes = {
|
|
80
92
|
stimulus: ImmutablePropTypes.record.isRequired,
|
|
81
93
|
sessionItem: ImmutablePropTypes.record.isRequired,
|
|
82
94
|
renderItem: PropTypes.func.isRequired,
|
|
83
95
|
// eslint-disable-next-line react/require-default-props,react/forbid-prop-types
|
|
84
96
|
styles: PropTypes.object
|
|
85
|
-
},
|
|
97
|
+
}, _temp)) || _class);
|
|
86
98
|
export default ResultStimulus;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
|
|
3
4
|
var generateStyle = function generateStyle(componentTheme, props) {
|
|
4
5
|
var mq = "@media screen and (".concat(componentTheme.phoneBreakPoint, ")");
|
|
5
6
|
var orientVertically = props.stimulus.orientation === 'top';
|
|
@@ -77,4 +78,5 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
77
78
|
connectingLines: _objectSpread(_objectSpread({}, orientVertically && connectingLines), {}, _defineProperty({}, mq, connectingLines))
|
|
78
79
|
};
|
|
79
80
|
};
|
|
81
|
+
|
|
80
82
|
export default generateStyle;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
2
|
var spacing = _ref.spacing,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
typography = _ref.typography,
|
|
4
|
+
borders = _ref.borders,
|
|
5
|
+
colors = _ref.colors,
|
|
6
|
+
breakpoints = _ref.breakpoints;
|
|
7
7
|
return {
|
|
8
8
|
rootBorderWidth: borders.widthSmall,
|
|
9
9
|
rootBorderColor: colors.porcelain,
|
|
@@ -30,4 +30,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
30
30
|
phoneConnectingLinesMargin: spacing.small
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
|
|
33
34
|
export default generateComponentTheme;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { compose } from 'redux';
|
|
2
|
-
import { connect } from
|
|
3
|
-
import makeScrollable from
|
|
4
|
-
import { SessionItemResult as SessionItemResultPresenter } from
|
|
5
|
-
import { featureOn } from
|
|
2
|
+
import { connect } from "../../../../react-redux.js";
|
|
3
|
+
import makeScrollable from "../../../shared/functionality/makeScrollable.js";
|
|
4
|
+
import { SessionItemResult as SessionItemResultPresenter } from "./presenter.js";
|
|
5
|
+
import { featureOn } from "../../../../util/featureCheck.js";
|
|
6
|
+
|
|
6
7
|
function mapStateToProps(state) {
|
|
7
8
|
return {
|
|
8
9
|
itemResultsModifications: state.getIn(['modifications', 'sessionItemResults']),
|
|
9
10
|
shouldRenderAnswerFeedback: featureOn('answer_level_feedback')
|
|
10
11
|
};
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
export var SessionItemResult = compose(connect(mapStateToProps), makeScrollable)(SessionItemResultPresenter);
|
|
13
15
|
export default SessionItemResult;
|