@instructure/quiz-core 20.17.3-rc.7 → 20.17.3-rc.8
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,97 +1,140 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
exports.AnswerFrequencySummary = void 0;
|
|
9
|
-
|
|
11
|
+
|
|
10
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
13
|
+
|
|
12
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
+
|
|
13
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
+
|
|
14
20
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
var
|
|
21
|
+
|
|
22
|
+
var _index = _interopRequireDefault(require("./LegacyChoiceType/index.js"));
|
|
23
|
+
|
|
24
|
+
var _index2 = _interopRequireDefault(require("./ChoiceType/index.js"));
|
|
25
|
+
|
|
26
|
+
var _index3 = _interopRequireDefault(require("./RichFillBlankType/index.js"));
|
|
27
|
+
|
|
28
|
+
var _index4 = _interopRequireDefault(require("./AggregationType/index.js"));
|
|
29
|
+
|
|
30
|
+
var _index5 = _interopRequireDefault(require("./NumericType/index.js"));
|
|
31
|
+
|
|
32
|
+
var _index6 = require("./MatchingType/index.js");
|
|
33
|
+
|
|
34
|
+
var _index7 = require("./ScoreDistributionType/index.js");
|
|
35
|
+
|
|
36
|
+
var _propTypes = require("../propTypes.js");
|
|
37
|
+
|
|
38
|
+
var AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
|
|
39
|
+
(0, _inherits2.default)(AnswerFrequencySummary, _Component);
|
|
40
|
+
|
|
41
|
+
var _super = (0, _createSuper2.default)(AnswerFrequencySummary);
|
|
42
|
+
|
|
25
43
|
function AnswerFrequencySummary() {
|
|
26
44
|
var _this;
|
|
45
|
+
|
|
27
46
|
(0, _classCallCheck2.default)(this, AnswerFrequencySummary);
|
|
47
|
+
|
|
28
48
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
29
49
|
args[_key] = arguments[_key];
|
|
30
50
|
}
|
|
31
|
-
|
|
51
|
+
|
|
52
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
32
53
|
_this.afsTableComponentMap = new Map();
|
|
54
|
+
|
|
33
55
|
_this.addAfsComponentsByFlags = function (afsFlags) {
|
|
34
56
|
if (afsFlags.formulaEnabled) {
|
|
35
|
-
_this.afsTableComponentMap.set('formula',
|
|
57
|
+
_this.afsTableComponentMap.set('formula', _index4.default);
|
|
36
58
|
}
|
|
59
|
+
|
|
37
60
|
if (afsFlags.hotSpotEnabled) {
|
|
38
|
-
_this.afsTableComponentMap.set('hot-spot',
|
|
61
|
+
_this.afsTableComponentMap.set('hot-spot', _index4.default);
|
|
39
62
|
}
|
|
63
|
+
|
|
40
64
|
if (afsFlags.matchingEnabled) {
|
|
41
|
-
_this.afsTableComponentMap.set('matching',
|
|
65
|
+
_this.afsTableComponentMap.set('matching', _index6.MatchingType);
|
|
42
66
|
}
|
|
67
|
+
|
|
43
68
|
if (afsFlags.orderingEnabled) {
|
|
44
|
-
_this.afsTableComponentMap.set('ordering',
|
|
69
|
+
_this.afsTableComponentMap.set('ordering', _index6.OrderingType);
|
|
45
70
|
}
|
|
71
|
+
|
|
46
72
|
if (afsFlags.categorizationEnabled) {
|
|
47
|
-
_this.afsTableComponentMap.set('categorization',
|
|
73
|
+
_this.afsTableComponentMap.set('categorization', _index6.CategorizationType);
|
|
48
74
|
}
|
|
75
|
+
|
|
49
76
|
if (afsFlags.trueFalseEnabled) {
|
|
50
|
-
_this.afsTableComponentMap.set('true-false',
|
|
77
|
+
_this.afsTableComponentMap.set('true-false', _index2.default);
|
|
51
78
|
}
|
|
79
|
+
|
|
52
80
|
if (afsFlags.choiceEnabled) {
|
|
53
|
-
_this.afsTableComponentMap.set('choice',
|
|
81
|
+
_this.afsTableComponentMap.set('choice', _index2.default);
|
|
54
82
|
}
|
|
83
|
+
|
|
55
84
|
if (afsFlags.multiAnswerEnabled) {
|
|
56
|
-
_this.afsTableComponentMap.set('multi-answer',
|
|
85
|
+
_this.afsTableComponentMap.set('multi-answer', _index2.default);
|
|
57
86
|
}
|
|
87
|
+
|
|
58
88
|
if (afsFlags.fillInTheBlankEnabled) {
|
|
59
|
-
_this.afsTableComponentMap.set('rich-fill-blank',
|
|
89
|
+
_this.afsTableComponentMap.set('rich-fill-blank', _index3.default);
|
|
60
90
|
}
|
|
91
|
+
|
|
61
92
|
if (afsFlags.numericEnabled) {
|
|
62
|
-
_this.afsTableComponentMap.set('numeric',
|
|
93
|
+
_this.afsTableComponentMap.set('numeric', _index5.default);
|
|
63
94
|
}
|
|
95
|
+
|
|
64
96
|
if (afsFlags.essayEnabled) {
|
|
65
|
-
_this.afsTableComponentMap.set('essay',
|
|
97
|
+
_this.afsTableComponentMap.set('essay', _index7.ScoreDistributionType);
|
|
66
98
|
}
|
|
99
|
+
|
|
67
100
|
if (afsFlags.fileUploadEnabled) {
|
|
68
|
-
_this.afsTableComponentMap.set('file-upload',
|
|
101
|
+
_this.afsTableComponentMap.set('file-upload', _index7.ScoreDistributionType);
|
|
69
102
|
}
|
|
70
103
|
};
|
|
104
|
+
|
|
71
105
|
_this.render = function () {
|
|
72
106
|
var _this$props = _this.props,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
107
|
+
itemId = _this$props.itemId,
|
|
108
|
+
answerSummary = _this$props.answerSummary,
|
|
109
|
+
interactionType = _this$props.interactionType,
|
|
110
|
+
afsFlags = _this$props.afsFlags;
|
|
77
111
|
afsFlags && _this.addAfsComponentsByFlags(afsFlags);
|
|
112
|
+
|
|
78
113
|
var AfsTableComponent = _this.afsTableComponentMap.get(interactionType);
|
|
114
|
+
|
|
79
115
|
if (!AfsTableComponent || !answerSummary) {
|
|
80
|
-
return
|
|
116
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
81
117
|
}
|
|
118
|
+
|
|
82
119
|
return /*#__PURE__*/_react.default.createElement(AfsTableComponent, {
|
|
83
120
|
itemId: itemId,
|
|
84
121
|
answerSummary: answerSummary
|
|
85
122
|
});
|
|
86
123
|
};
|
|
87
|
-
|
|
88
|
-
_this.afsTableComponentMap.set('
|
|
89
|
-
|
|
124
|
+
|
|
125
|
+
_this.afsTableComponentMap.set('true-false', _index.default);
|
|
126
|
+
|
|
127
|
+
_this.afsTableComponentMap.set('choice', _index.default);
|
|
128
|
+
|
|
129
|
+
_this.afsTableComponentMap.set('multi-answer', _index.default);
|
|
130
|
+
|
|
90
131
|
return _this;
|
|
91
132
|
}
|
|
92
|
-
|
|
93
|
-
return
|
|
133
|
+
|
|
134
|
+
return AnswerFrequencySummary;
|
|
94
135
|
}(_react.Component);
|
|
136
|
+
|
|
137
|
+
exports.AnswerFrequencySummary = AnswerFrequencySummary;
|
|
95
138
|
AnswerFrequencySummary.propTypes = {
|
|
96
139
|
itemId: _quizInteractions.PropTypes.number.isRequired,
|
|
97
140
|
answerSummary: _propTypes.answerSummaryPropType.isRequired,
|
|
@@ -1,50 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
4
|
-
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
exports.AfsPartsContainer = void 0;
|
|
11
|
+
|
|
9
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
+
|
|
10
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
|
|
15
|
+
|
|
12
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
+
|
|
18
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
19
|
+
|
|
13
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
+
|
|
14
22
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
|
+
|
|
15
24
|
var _emotion = require("@instructure/emotion");
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var
|
|
25
|
+
|
|
26
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
27
|
+
|
|
28
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
29
|
+
|
|
30
|
+
var _dec, _class, _class2, _temp;
|
|
31
|
+
|
|
32
|
+
var AfsPartsContainer = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
33
|
+
(0, _inherits2.default)(AfsPartsContainer, _Component);
|
|
34
|
+
|
|
35
|
+
var _super = (0, _createSuper2.default)(AfsPartsContainer);
|
|
36
|
+
|
|
22
37
|
function AfsPartsContainer() {
|
|
23
38
|
var _this;
|
|
39
|
+
|
|
24
40
|
(0, _classCallCheck2.default)(this, AfsPartsContainer);
|
|
41
|
+
|
|
25
42
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
43
|
args[_key] = arguments[_key];
|
|
27
44
|
}
|
|
28
|
-
|
|
45
|
+
|
|
46
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
47
|
+
|
|
29
48
|
_this.renderAggregationTable = function () {
|
|
30
49
|
return (0, _emotion.jsx)("div", {
|
|
31
50
|
css: _this.props.styles.tableContainer
|
|
32
51
|
}, _this.props.aggregationTable);
|
|
33
52
|
};
|
|
53
|
+
|
|
34
54
|
_this.renderAfsTable = function () {
|
|
35
55
|
var afsTable = _this.props.afsTable;
|
|
36
56
|
return (0, _emotion.jsx)("div", null, afsTable);
|
|
37
57
|
};
|
|
58
|
+
|
|
38
59
|
_this.render = function () {
|
|
39
60
|
var _this$props = _this.props,
|
|
40
|
-
|
|
41
|
-
|
|
61
|
+
afsTable = _this$props.afsTable,
|
|
62
|
+
aggregationTable = _this$props.aggregationTable;
|
|
42
63
|
return (0, _emotion.jsx)(_react.default.Fragment, null, afsTable && _this.renderAfsTable(), aggregationTable && _this.renderAggregationTable());
|
|
43
64
|
};
|
|
65
|
+
|
|
44
66
|
return _this;
|
|
45
67
|
}
|
|
46
|
-
|
|
47
|
-
|
|
68
|
+
|
|
69
|
+
(0, _createClass2.default)(AfsPartsContainer, [{
|
|
48
70
|
key: "componentDidMount",
|
|
49
71
|
value: function componentDidMount() {
|
|
50
72
|
this.props.makeStyles();
|
|
@@ -55,12 +77,14 @@ var AfsPartsContainer = exports.AfsPartsContainer = (_dec = (0, _emotion.withSty
|
|
|
55
77
|
this.props.makeStyles();
|
|
56
78
|
}
|
|
57
79
|
}]);
|
|
58
|
-
|
|
80
|
+
return AfsPartsContainer;
|
|
81
|
+
}(_react.Component), _class2.propTypes = {
|
|
59
82
|
afsTable: _propTypes.default.node,
|
|
60
83
|
aggregationTable: _propTypes.default.node,
|
|
61
84
|
styles: _propTypes.default.object,
|
|
62
85
|
makeStyles: _propTypes.default.func
|
|
63
|
-
},
|
|
86
|
+
}, _class2.defaultProps = {
|
|
64
87
|
afsTable: null,
|
|
65
88
|
aggregationTable: null
|
|
66
|
-
},
|
|
89
|
+
}, _temp)) || _class);
|
|
90
|
+
exports.AfsPartsContainer = AfsPartsContainer;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
9
12
|
var generateStyle = function generateStyle(componentTheme, props) {
|
|
10
13
|
return {
|
|
11
14
|
tableContainer: (0, _objectSpread2.default)({
|
|
@@ -16,4 +19,6 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
16
19
|
})
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
|
-
|
|
22
|
+
|
|
23
|
+
var _default = generateStyle;
|
|
24
|
+
exports.default = _default;
|
|
@@ -4,10 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
9
|
var spacing = _ref.spacing;
|
|
9
10
|
return {
|
|
10
11
|
marginOfTables: spacing.medium
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
var _default = generateComponentTheme;
|
|
16
|
+
exports.default = _default;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.noAnswerMissing = void 0;
|
|
9
|
+
|
|
8
10
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
var noAnswerMissing = {
|
|
10
13
|
title: (0, _formatMessage.default)('No Response'),
|
|
11
14
|
body: (0, _formatMessage.default)('No response is considered as Incorrect answer in this question type.'),
|
|
12
15
|
screenReaderLabel: (0, _formatMessage.default)('No response tooltip')
|
|
13
|
-
};
|
|
16
|
+
};
|
|
17
|
+
exports.noAnswerMissing = noAnswerMissing;
|
|
@@ -1,37 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.AfsTableWrapper = void 0;
|
|
8
|
-
|
|
9
|
+
|
|
9
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
+
|
|
14
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
|
+
|
|
12
16
|
var _react = require("react");
|
|
17
|
+
|
|
13
18
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
19
|
+
|
|
14
20
|
var _uiFlex = require("@instructure/ui-flex");
|
|
21
|
+
|
|
15
22
|
var _uiHeading = require("@instructure/ui-heading");
|
|
23
|
+
|
|
16
24
|
var _emotion = require("@instructure/emotion");
|
|
17
|
-
|
|
25
|
+
|
|
26
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
27
|
+
|
|
18
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
|
|
30
|
+
var _popoverContent = require("./popoverContent.js");
|
|
31
|
+
|
|
32
|
+
var _index = _interopRequireDefault(require("../../../MetricPopover/index.js"));
|
|
33
|
+
|
|
34
|
+
var _dec, _class, _class2, _temp;
|
|
35
|
+
|
|
36
|
+
var AfsTableWrapper = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
37
|
+
(0, _inherits2.default)(AfsTableWrapper, _Component);
|
|
38
|
+
|
|
39
|
+
var _super = (0, _createSuper2.default)(AfsTableWrapper);
|
|
40
|
+
|
|
24
41
|
function AfsTableWrapper() {
|
|
25
42
|
var _this;
|
|
43
|
+
|
|
26
44
|
(0, _classCallCheck2.default)(this, AfsTableWrapper);
|
|
45
|
+
|
|
27
46
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
47
|
args[_key] = arguments[_key];
|
|
29
48
|
}
|
|
30
|
-
|
|
49
|
+
|
|
50
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
51
|
+
|
|
31
52
|
_this.getHeader = function () {
|
|
32
53
|
var tableHeader = _this.props.tableHeader;
|
|
33
54
|
return tableHeader || (0, _formatMessage.default)('Answer Frequency Summary');
|
|
34
55
|
};
|
|
56
|
+
|
|
35
57
|
_this.render = function () {
|
|
36
58
|
var noAnswerMissingPopover = _this.props.noAnswerMissingPopover;
|
|
37
59
|
return (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
@@ -48,15 +70,17 @@ var AfsTableWrapper = exports.AfsTableWrapper = (_dec = (0, _emotion.withStyle)(
|
|
|
48
70
|
color: "primary"
|
|
49
71
|
}, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
50
72
|
gap: "x-small"
|
|
51
|
-
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, null, _this.getHeader()), (0, _emotion.jsx)(_uiFlex.Flex.Item, null, noAnswerMissingPopover && (0, _emotion.jsx)(
|
|
73
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, null, _this.getHeader()), (0, _emotion.jsx)(_uiFlex.Flex.Item, null, noAnswerMissingPopover && (0, _emotion.jsx)(_index.default, _popoverContent.noAnswerMissing)))), _this.props.children)));
|
|
52
74
|
};
|
|
75
|
+
|
|
53
76
|
return _this;
|
|
54
77
|
}
|
|
55
|
-
|
|
56
|
-
return
|
|
57
|
-
}(_react.Component),
|
|
78
|
+
|
|
79
|
+
return AfsTableWrapper;
|
|
80
|
+
}(_react.Component), _class2.propTypes = {
|
|
58
81
|
children: _propTypes.default.node.isRequired,
|
|
59
82
|
styles: _propTypes.default.object,
|
|
60
83
|
tableHeader: _propTypes.default.string,
|
|
61
84
|
noAnswerMissingPopover: _propTypes.default.bool
|
|
62
|
-
},
|
|
85
|
+
}, _temp)) || _class);
|
|
86
|
+
exports.AfsTableWrapper = AfsTableWrapper;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var generateStyle = function generateStyle() {
|
|
8
9
|
return {
|
|
9
10
|
tableWrapper: {
|
|
@@ -13,4 +14,6 @@ var generateStyle = function generateStyle() {
|
|
|
13
14
|
}
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
var _default = generateStyle;
|
|
19
|
+
exports.default = _default;
|