@instructure/quiz-core 20.20.1-rc.2 → 20.20.1-snapshot.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/banks/api/bankEntries.js +5 -14
- package/es/banks/api/banks.js +12 -24
- package/es/banks/api/copyingBanksPoller.js +6 -14
- package/es/banks/api/tagAssociations.js +4 -14
- package/es/banks/components/AddBankEntryModal/index.js +0 -3
- package/es/banks/components/AddBankEntryModal/presenter.js +0 -17
- package/es/banks/components/AddToBankModal/presenter.js +12 -48
- package/es/banks/components/AsyncSearch/index.js +8 -62
- package/es/banks/components/Bank/presenter.js +18 -69
- package/es/banks/components/Bank/styles.js +0 -2
- package/es/banks/components/Bank/theme.js +2 -3
- package/es/banks/components/BankEntriesList/presenter.js +5 -16
- package/es/banks/components/BankEntriesList/styles.js +0 -1
- package/es/banks/components/BankEntriesList/theme.js +0 -1
- package/es/banks/components/BankEntry/index.js +0 -5
- package/es/banks/components/BankEntry/presenter.js +25 -110
- package/es/banks/components/BankEntry/styles.js +0 -2
- package/es/banks/components/BankEntry/theme.js +3 -4
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -2
- package/es/banks/components/BankEntryRow/index.js +0 -5
- package/es/banks/components/BankEntryRow/presenter.js +11 -39
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +3 -4
- package/es/banks/components/BankSearch/index.js +0 -2
- package/es/banks/components/BankSearch/presenter.js +13 -31
- package/es/banks/components/BankSearch/styles.js +0 -1
- package/es/banks/components/BankSearch/theme.js +0 -1
- package/es/banks/components/Banks/index.js +0 -3
- package/es/banks/components/Banks/presenter.js +15 -65
- package/es/banks/components/Banks/styles.js +0 -1
- package/es/banks/components/Banks/theme.js +2 -3
- package/es/banks/components/BanksList/presenter.js +10 -63
- package/es/banks/components/BanksList/styles.js +0 -1
- package/es/banks/components/BanksList/theme.js +3 -4
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +2 -29
- package/es/banks/components/CreateBankModal/index.js +0 -3
- package/es/banks/components/CreateBankModal/presenter.js +5 -31
- package/es/banks/components/CreateBankModal/styles.js +0 -1
- package/es/banks/components/CreateBankModal/theme.js +1 -2
- package/es/banks/components/EditBankModal/index.js +0 -3
- package/es/banks/components/EditBankModal/presenter.js +5 -25
- package/es/banks/components/EditBankModal/styles.js +0 -1
- package/es/banks/components/EditBankModal/theme.js +1 -2
- package/es/banks/components/HeaderBreadCrumb/index.js +9 -19
- package/es/banks/components/HeaderMenu/index.js +0 -3
- package/es/banks/components/HeaderMenu/presenter.js +5 -15
- package/es/banks/components/HeaderMenu/styles.js +0 -1
- package/es/banks/components/HeaderMenu/theme.js +1 -2
- package/es/banks/components/NavWrapper/index.js +0 -2
- package/es/banks/components/NavWrapper/presenter.js +9 -25
- package/es/banks/components/NavWrapper/styles.js +0 -2
- package/es/banks/components/NavWrapper/theme.js +4 -5
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +1 -14
- package/es/banks/components/SharingModal/RootAccountSharing.js +5 -18
- package/es/banks/components/SharingModal/ShareList/index.js +7 -24
- package/es/banks/components/SharingModal/ShareList/styles.js +0 -1
- package/es/banks/components/SharingModal/index.js +0 -2
- package/es/banks/components/SharingModal/presenter.js +27 -92
- package/es/banks/components/SharingModal/styles.js +0 -1
- package/es/banks/components/SharingModal/theme.js +2 -3
- package/es/building/api/items.js +14 -32
- package/es/building/api/qtiImports.js +4 -13
- package/es/building/api/quizEntries.js +26 -32
- package/es/building/api/quizzes.js +27 -22
- package/es/building/api/stimuli.js +6 -3
- package/es/building/components/QTIImportModal/index.js +2 -1
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +2 -20
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +2 -2
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -28
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +1 -4
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +0 -1
- package/es/building/components/layout/Sidebar/Stimulus/index.js +2 -3
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +15 -26
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +1 -4
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +0 -1
- package/es/building/components/layout/Sidebar/index.js +3 -3
- package/es/building/components/layout/Sidebar/presenter.js +11 -38
- package/es/building/components/layout/Sidebar/styles.js +0 -2
- package/es/building/components/layout/Sidebar/theme.js +0 -1
- package/es/building/components/layout/header/BuildingButtons/index.js +0 -2
- package/es/building/components/layout/header/BuildingButtons/presenter.js +7 -52
- package/es/building/components/layout/header/BuildingButtons/styles.js +0 -2
- package/es/building/components/layout/header/BuildingButtons/theme.js +2 -3
- package/es/building/components/resources/ActionButtons/index.js +0 -3
- package/es/building/components/resources/ActionButtons/presenter.js +5 -22
- package/es/building/components/resources/ActionButtons/styles.js +0 -3
- package/es/building/components/resources/ActionButtons/theme.js +1 -2
- package/es/building/components/resources/AddToBankOptions/index.js +6 -25
- package/es/building/components/resources/AddToBankOptions/styles.js +0 -1
- package/es/building/components/resources/AddToBankOptions/theme.js +1 -2
- package/es/building/components/resources/BanksTray/index.js +0 -2
- package/es/building/components/resources/BanksTray/presenter.js +2 -26
- package/es/building/components/resources/DeleteStimulusModal/index.js +3 -7
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +13 -44
- package/es/building/components/resources/DeleteStimulusModal/styles.js +0 -1
- package/es/building/components/resources/DeleteStimulusModal/theme.js +1 -2
- package/es/building/components/resources/ItemFeedbackModal/index.js +0 -2
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +5 -24
- package/es/building/components/resources/ItemFeedbackModal/styles.js +0 -1
- package/es/building/components/resources/ItemFeedbackModal/theme.js +0 -1
- package/es/building/components/resources/MoveImmutableModal/index.js +5 -8
- package/es/building/components/resources/MoveImmutableModal/presenter.js +4 -17
- package/es/building/components/resources/quiz/editButton/EditButton.js +0 -12
- package/es/building/components/resources/quiz/instructions/Edit/index.js +0 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -13
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +0 -2
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +16 -41
- package/es/building/components/resources/quiz/instructions/Instructions/styles.js +0 -2
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
- package/es/building/components/resources/quiz/instructions/Show/index.js +10 -17
- package/es/building/components/resources/quiz/instructions/Show/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
- package/es/building/components/resources/quiz/title/Edit/index.js +12 -25
- package/es/building/components/resources/quiz/title/Edit/styles.js +0 -2
- package/es/building/components/resources/quiz/title/Edit/theme.js +3 -4
- package/es/building/components/resources/quiz/title/Show/index.js +5 -17
- package/es/building/components/resources/quiz/title/Show/styles.js +0 -1
- package/es/building/components/resources/quiz/title/Show/theme.js +0 -1
- package/es/building/components/resources/quiz/title/Title/index.js +0 -2
- package/es/building/components/resources/quiz/title/Title/presenter.js +16 -34
- package/es/building/components/resources/quiz/title/Title/styles.js +0 -2
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +10 -43
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -9
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +5 -35
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +6 -17
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +17 -44
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +12 -60
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +27 -91
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +23 -53
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -5
- package/es/common/actions/alerts.js +7 -7
- package/es/common/actions/modifications.js +37 -16
- package/es/common/actions/quizSessions.js +3 -13
- package/es/common/actions/rce.js +3 -2
- package/es/common/actions/taking.js +6 -4
- package/es/common/api/callHandlers.js +9 -13
- package/es/common/api/camelizeHelpers.js +6 -6
- package/es/common/api/features.js +0 -2
- package/es/common/api/fileUpload.js +3 -2
- package/es/common/api/getPersistenceActions.js +21 -23
- package/es/common/api/helpers.js +10 -29
- package/es/common/api/quizSessions.js +21 -26
- package/es/common/api/quizzes.js +3 -2
- package/es/common/api/schema.js +6 -4
- package/es/common/components/ApiFeatureFlagInitializer/index.js +0 -4
- package/es/common/components/ConfirmationModal/index.js +0 -3
- package/es/common/components/ConfirmationModal/presenter.js +9 -22
- package/es/common/components/ImportModal/ImportFileSelector/index.js +7 -18
- package/es/common/components/ImportModal/ImportFileSelector/styles.js +0 -1
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
- package/es/common/components/ImportModal/index.js +8 -8
- package/es/common/components/ImportModal/presenter.js +12 -59
- package/es/common/components/ImportModal/styles.js +0 -1
- package/es/common/components/ImportModal/theme.js +0 -1
- package/es/common/components/LearnosityCalculator/index.js +1 -20
- package/es/common/components/Pin/presenter.js +0 -10
- package/es/common/components/PreviewFrame/examples.config.js +0 -2
- package/es/common/components/PreviewFrame/index.js +0 -7
- package/es/common/components/PrintFontSizeModal/presenter.js +15 -25
- package/es/common/components/PrintFontSizeModal/styles.js +0 -1
- package/es/common/components/PrintFontSizeModal/theme.js +2 -3
- package/es/common/components/RceConfigProvider/index.js +0 -2
- package/es/common/components/RceConfigProvider/presenter.js +22 -50
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -6
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +1 -10
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -9
- package/es/common/components/SDKApp/index.js +12 -39
- package/es/common/components/SDKApp/styles.js +0 -1
- package/es/common/components/SDKHeaderCalculator.js +1 -1
- package/es/common/components/SDKTimer.js +1 -1
- package/es/common/components/alerts/index.js +0 -2
- package/es/common/components/alerts/presenter.js +5 -21
- package/es/common/components/alerts/styles.js +0 -2
- package/es/common/components/alerts/theme.js +1 -2
- package/es/common/components/layout/Page/index.js +5 -12
- package/es/common/components/layout/Page/styles.js +0 -2
- package/es/common/components/layout/Page/theme.js +2 -3
- package/es/common/components/layout/header/Calculator/index.js +0 -2
- package/es/common/components/layout/header/Calculator/presenter.js +2 -12
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +6 -23
- package/es/common/components/layout/header/HeaderMenuButton/styles.js +0 -2
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
- package/es/common/components/layout/header/Timer/index.js +0 -3
- package/es/common/components/layout/header/Timer/presenter.js +9 -34
- package/es/common/components/layout/header/Timer/styles.js +0 -1
- package/es/common/components/layout/header/Timer/theme.js +3 -4
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -11
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -1
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -1
- package/es/common/components/layout/navbar/index.js +5 -25
- package/es/common/components/layout/navbar/styles.js +0 -1
- package/es/common/components/layout/navbar/theme.js +1 -2
- package/es/common/components/layout/sidebar/PositionSummary/index.js +4 -11
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +0 -1
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +3 -4
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +3 -11
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -3
- package/es/common/components/layout/sidebar/Sidebar/index.js +16 -53
- package/es/common/components/layout/sidebar/Sidebar/styles.js +0 -4
- package/es/common/components/layout/sidebar/Sidebar/theme.js +5 -7
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -39
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +0 -2
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +3 -4
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +12 -27
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +10 -32
- package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +4 -13
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/index.js +0 -2
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +16 -33
- package/es/common/components/layout/sidebar/Stimulus/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/theme.js +3 -4
- package/es/common/components/resources/BankSelection/presenter.js +6 -36
- package/es/common/components/resources/WarningWrapper/index.js +5 -16
- package/es/common/components/resources/WarningWrapper/styles.js +0 -1
- package/es/common/components/resources/WarningWrapper/theme.js +2 -3
- package/es/common/components/resources/entry/EntrySave/presenter.js +8 -54
- package/es/common/components/resources/item/ItemEdit/index.js +2 -4
- package/es/common/components/resources/item/ItemEdit/presenter.js +8 -28
- package/es/common/components/resources/item/ItemOverride/index.js +0 -2
- package/es/common/components/resources/item/ItemOverride/presenter.js +0 -9
- package/es/common/components/resources/item/ItemShow/index.js +0 -7
- package/es/common/components/resources/positionBox/PositionBox.js +5 -12
- package/es/common/components/resources/positionBox/styles.js +0 -2
- package/es/common/components/resources/positionBox/theme.js +2 -3
- package/es/common/components/resources/quiz/AddContent/Body/index.js +0 -2
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +15 -33
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +0 -4
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Button/index.js +5 -16
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +0 -2
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +5 -8
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -5
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +1 -4
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +5 -23
- package/es/common/components/resources/quiz/AddContent/Popover/styles.js +0 -1
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
- package/es/common/components/resources/quiz/info/QuizInfo.js +0 -5
- package/es/common/components/resources/quiz/instructions/Instructions.js +4 -13
- package/es/common/components/resources/quiz/instructions/styles.js +0 -1
- package/es/common/components/resources/quiz/instructions/theme.js +1 -2
- package/es/common/components/resources/quiz/title/Title.js +4 -12
- package/es/common/components/resources/quiz/title/styles.js +0 -1
- package/es/common/components/resources/quiz/title/theme.js +1 -2
- package/es/common/components/resources/quizSessionResult/Header/index.js +5 -17
- package/es/common/components/resources/quizSessionResult/Header/styles.js +0 -1
- package/es/common/components/resources/quizSessionResult/Header/theme.js +1 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +11 -28
- package/es/common/components/resources/quizSessionResult/Info/styles.js +0 -2
- package/es/common/components/resources/quizSessionResult/Info/theme.js +1 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -13
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -5
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +9 -32
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +5 -18
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
- package/es/common/components/resources/stimulus/Stimulus/index.js +0 -3
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +9 -23
- package/es/common/components/resources/stimulus/Stimulus/styles.js +1 -5
- package/es/common/components/resources/stimulus/Stimulus/theme.js +3 -4
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +0 -3
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +18 -90
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -3
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +5 -27
- package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusShow/index.js +5 -19
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -7
- package/es/common/components/shared/Card/CardContent/index.js +5 -12
- package/es/common/components/shared/Card/CardContent/styles.js +0 -2
- package/es/common/components/shared/Card/CardContent/theme.js +4 -5
- package/es/common/components/shared/Card/CardWrapper/index.js +5 -12
- package/es/common/components/shared/Card/CardWrapper/styles.js +0 -2
- package/es/common/components/shared/Card/CardWrapper/theme.js +2 -3
- package/es/common/components/shared/Card/index.js +3 -4
- package/es/common/components/shared/ExpandButton/index.js +4 -11
- package/es/common/components/shared/ExpandButton/styles.js +0 -2
- package/es/common/components/shared/ExpandButton/theme.js +0 -1
- package/es/common/components/shared/FormattedDuration/index.js +4 -12
- package/es/common/components/shared/IfFeature/presenter.js +0 -6
- package/es/common/components/shared/InteractionTypes/index.js +0 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +7 -23
- package/es/common/components/shared/InteractionTypes/styles.js +0 -1
- package/es/common/components/shared/InteractionTypes/theme.js +2 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +11 -36
- package/es/common/components/shared/PaginatedCollection/styles.js +0 -1
- package/es/common/components/shared/PaginatedCollection/theme.js +2 -3
- package/es/common/components/shared/Paginator/index.js +5 -15
- package/es/common/components/shared/Paginator/styles.js +0 -1
- package/es/common/components/shared/Paginator/theme.js +0 -1
- package/es/common/components/shared/PrintTrigger/index.js +0 -2
- package/es/common/components/shared/PrintTrigger/presenter.js +3 -25
- package/es/common/components/shared/TagDisplay/index.js +5 -13
- package/es/common/components/shared/TagDisplay/styles.js +0 -1
- package/es/common/components/shared/TagSelect/presenter.js +11 -43
- package/es/common/components/shared/TagSuggestSelect/index.js +0 -3
- package/es/common/components/shared/TagSuggestSelect/presenter.js +7 -18
- package/es/common/components/shared/TagWrapper/presenter.js +3 -13
- package/es/common/components/shared/TimeUnitsInput/index.js +23 -52
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +12 -24
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -2
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -50
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -63
- package/es/common/components/shared/errors/Errors.js +5 -18
- package/es/common/components/shared/errors/styles.js +0 -1
- package/es/common/components/shared/errors/theme.js +1 -2
- package/es/common/components/shared/file_selector/FileSelector.js +5 -13
- package/es/common/components/shared/file_selector/styles.js +0 -1
- package/es/common/components/shared/file_selector/theme.js +2 -3
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +0 -12
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +6 -11
- package/es/common/components/shared/functionality/disableDraggingOverride.js +0 -1
- package/es/common/components/shared/functionality/makeEditable.js +15 -32
- package/es/common/components/shared/functionality/makeScrollable.js +9 -25
- package/es/common/components/shared/overlay/index.js +10 -20
- package/es/common/components/shared/overlay/styles.js +0 -2
- package/es/common/components/shared/overlay/theme.js +2 -3
- package/es/common/components/shared/return_button/ReturnButton.js +0 -7
- package/es/common/components/shared/spinner/Spinner.js +11 -20
- package/es/common/components/shared/spinner/styles.js +0 -1
- package/es/common/kinesis/QuizEventsLogger.js +14 -33
- package/es/common/kinesis/StreamQueue.js +6 -27
- package/es/common/kinesis/client.js +1 -3
- package/es/common/kinesis/config.js +2 -2
- package/es/common/kinesis/eventTypes.js +4 -4
- package/es/common/middleware/alertTimerMiddleware.js +2 -6
- package/es/common/middleware/crossDomainMessagingMiddleware.js +0 -3
- package/es/common/middleware/eventLoggerMiddleware.js +0 -5
- package/es/common/middleware/persistedStorageMiddleware.js +0 -7
- package/es/common/middleware/quizTimerWebSocketMiddleware.js +0 -11
- package/es/common/react-redux.js +0 -2
- package/es/common/records/Alert.js +0 -4
- package/es/common/records/Bank.js +0 -5
- package/es/common/records/BankEntry.js +0 -8
- package/es/common/records/Item.js +2 -9
- package/es/common/records/ItemAnalysis.js +0 -5
- package/es/common/records/QtiImport.js +0 -7
- package/es/common/records/Quiz.js +4 -13
- package/es/common/records/QuizAnalysis.js +0 -5
- package/es/common/records/QuizEntry.js +10 -57
- package/es/common/records/QuizSession.js +0 -10
- package/es/common/records/QuizSessionEvent.js +0 -5
- package/es/common/records/QuizSessionResult.js +0 -5
- package/es/common/records/Response.js +0 -5
- package/es/common/records/SessionItem.js +2 -13
- package/es/common/records/SessionItemResult.js +0 -5
- package/es/common/records/Stimulus.js +0 -5
- package/es/common/records/baseRecord.js +0 -11
- package/es/common/records/reduxRecord.js +0 -5
- package/es/common/reducers/alerts.js +0 -3
- package/es/common/reducers/analyses.js +0 -9
- package/es/common/reducers/bankEntries.js +0 -5
- package/es/common/reducers/bankSearch.js +4 -9
- package/es/common/reducers/banks.js +1 -13
- package/es/common/reducers/calls.js +0 -3
- package/es/common/reducers/config.js +0 -4
- package/es/common/reducers/dragAndDrop.js +0 -2
- package/es/common/reducers/editing.js +0 -1
- package/es/common/reducers/errorsShowing.js +0 -4
- package/es/common/reducers/features.js +0 -3
- package/es/common/reducers/grading.js +0 -4
- package/es/common/reducers/interactionTypes.js +0 -4
- package/es/common/reducers/items.js +0 -4
- package/es/common/reducers/modal.js +0 -6
- package/es/common/reducers/moderation.js +0 -3
- package/es/common/reducers/modifications.js +6 -38
- package/es/common/reducers/outcomes.js +0 -5
- package/es/common/reducers/printing.js +0 -2
- package/es/common/reducers/qtiImports.js +0 -5
- package/es/common/reducers/quizEntries.js +28 -39
- package/es/common/reducers/quizExport.js +0 -2
- package/es/common/reducers/quizSessionEvents.js +0 -5
- package/es/common/reducers/quizSessionResults.js +0 -4
- package/es/common/reducers/quizSessions.js +2 -11
- package/es/common/reducers/quizzes.js +0 -13
- package/es/common/reducers/rce.js +0 -6
- package/es/common/reducers/regrading.js +0 -4
- package/es/common/reducers/reporting.js +0 -12
- package/es/common/reducers/scrolling.js +0 -3
- package/es/common/reducers/sessionItemResults.js +0 -4
- package/es/common/reducers/sessionItems.js +0 -4
- package/es/common/reducers/sharedBanks.js +1 -8
- package/es/common/reducers/sidebar.js +0 -3
- package/es/common/reducers/stimuli.js +0 -4
- package/es/common/reducers/tagAssociations.js +0 -28
- package/es/common/reducers/taking.js +0 -37
- package/es/common/reducers/ui.js +0 -11
- package/es/common/reducers/upload.js +0 -7
- package/es/common/selectors/analyses.js +0 -2
- package/es/common/selectors/calculator.js +4 -7
- package/es/common/selectors/config.js +0 -2
- package/es/common/selectors/interactionTypes.js +3 -4
- package/es/common/selectors/items.js +0 -1
- package/es/common/selectors/qtiImports.js +2 -5
- package/es/common/selectors/quizSessions.js +2 -1
- package/es/common/selectors/quizzes.js +3 -9
- package/es/common/selectors/reporting.js +0 -2
- package/es/common/selectors/sessionItemResults.js +2 -3
- package/es/common/selectors/sessionItems.js +2 -3
- package/es/common/util/CustomPropTypes.js +0 -12
- package/es/common/util/ExhaustivePaginatedFetcher.js +7 -23
- package/es/common/util/Fetcher.js +25 -79
- package/es/common/util/MultiWeakMap.js +0 -19
- package/es/common/util/PaginatedFetcher.js +2 -16
- package/es/common/util/ThunkQueue.js +3 -30
- package/es/common/util/TimeRecordingService.js +0 -12
- package/es/common/util/TimerService.js +3 -42
- package/es/common/util/cachePreviousArgs.js +0 -3
- package/es/common/util/callHelpers.js +0 -2
- package/es/common/util/componentForItem.js +1 -6
- package/es/common/util/crossDomainMessaging.js +0 -1
- package/es/common/util/debounceLatestPromise.js +0 -2
- package/es/common/util/featureCheck.js +3 -3
- package/es/common/util/fitbCopyHelper.js +3 -3
- package/es/common/util/formatTimespan.js +0 -10
- package/es/common/util/generateDisplayPositions.js +2 -5
- package/es/common/util/immutableHelpers.js +4 -3
- package/es/common/util/interactionTypeMetadata.js +2 -3
- package/es/common/util/interactionTypePropsHelper.js +0 -7
- package/es/common/util/interactionTypeRecordForItem.js +1 -7
- package/es/common/util/jsonify.js +1 -0
- package/es/common/util/keyboardClickable.js +0 -1
- package/es/common/util/mathRenderingUtils.js +2 -1
- package/es/common/util/maxContent.js +0 -1
- package/es/common/util/persistedState.js +0 -6
- package/es/common/util/printUtils.js +0 -4
- package/es/common/util/rceChecker.js +1 -3
- package/es/common/util/renderAlerts.js +2 -6
- package/es/common/util/serializeEvent.js +0 -2
- package/es/common/util/sessionStore.js +4 -11
- package/es/common/util/warningHelpers.js +0 -9
- package/es/common/util/withCachedArguments.js +0 -6
- package/es/common/util/withDynamoPagination.js +14 -34
- package/es/common/util/withStateCache.js +0 -9
- package/es/config.js +5 -9
- package/es/configureStore.js +9 -8
- package/es/grading/api/quizEntryRegrades.js +3 -2
- package/es/grading/api/updateResults.js +0 -4
- package/es/index.js +4 -6
- package/es/messages/LocalStorageAdapter.js +0 -12
- package/es/messages/LocalStorageLimits.js +2 -23
- package/es/messages/StorageExhaustionError.js +1 -8
- package/es/messages/postMessageService.js +0 -20
- package/es/messages/subjectHandlers/forwardMessage.js +0 -1
- package/es/messages/subjectHandlers/lti.capabilities.js +0 -1
- package/es/messages/subjectHandlers/lti.fetchWindowSize.js +0 -1
- package/es/messages/subjectHandlers/lti.frameResize.js +0 -3
- package/es/messages/subjectHandlers/lti.get_data.js +2 -7
- package/es/messages/subjectHandlers/lti.put_data.js +3 -8
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +0 -4
- package/es/messages/utils.js +0 -1
- package/es/moderating/components/events/Event.js +3 -17
- package/es/moderating/components/events/PageBlurredEvent.js +0 -5
- package/es/moderating/components/events/PageFocusedEvent.js +0 -5
- package/es/moderating/components/events/RCEEvent.js +0 -5
- package/es/moderating/components/events/ResponseEvent.js +4 -16
- package/es/moderating/components/events/SessionStartEvent.js +0 -5
- package/es/moderating/components/events/styles.js +0 -1
- package/es/moderating/components/events/theme.js +1 -2
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -23
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -20
- package/es/moderating/components/resources/AccommodationsModal/index.js +7 -25
- package/es/moderating/components/resources/ElapsedTime.js +5 -9
- package/es/moderating/components/resources/ModerateTable/presenter.js +23 -70
- package/es/moderating/components/resources/ModerateTable/styles.js +0 -2
- package/es/moderating/components/resources/ModerateTable/theme.js +1 -2
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -2
- package/es/moderating/components/resources/ModerateTableRow/index.js +2 -2
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +19 -60
- package/es/moderating/components/resources/ModerateTableRow/story.js +0 -2
- package/es/moderating/components/resources/ModerateTableRow/styles.js +0 -1
- package/es/moderating/components/resources/ModerateTableRow/theme.js +0 -1
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -26
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +0 -20
- package/es/moderating/components/sidebar/ResetQuiz/index.js +0 -2
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -17
- package/es/reduxStore.js +0 -4
- package/es/reporting/api/getAnalysesExport.js +4 -11
- package/es/reporting/api/getAnalysesStatus.js +3 -6
- package/es/reporting/api/getItemAnalyses.js +3 -6
- package/es/reporting/api/getQuizAnalysis.js +3 -6
- package/es/reporting/components/Caption/index.js +5 -12
- package/es/reporting/components/Caption/styles.js +0 -1
- package/es/reporting/components/Caption/theme.js +2 -3
- package/es/reporting/components/MetricsListItem/index.js +8 -15
- package/es/reporting/components/MetricsListItem/styles.js +0 -1
- package/es/reporting/components/charts/CentileDistribution/presenter.js +10 -32
- package/es/reporting/components/charts/CentileDistribution/styles.js +0 -2
- package/es/reporting/components/charts/CentileDistribution/theme.js +2 -3
- package/es/reporting/components/charts/Distribution/presenter.js +15 -45
- package/es/reporting/components/charts/Distribution/styles.js +0 -1
- package/es/reporting/components/charts/Distribution/theme.js +1 -2
- package/es/reporting/components/charts/Legend/index.js +8 -16
- package/es/reporting/components/charts/Legend/styles.js +0 -2
- package/es/reporting/components/charts/Legend/theme.js +3 -4
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +7 -30
- package/es/reporting/components/charts/QuintileDistribution/styles.js +0 -1
- package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -2
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -21
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -6
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -6
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +14 -33
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +9 -23
- package/es/reporting/components/quizAnalysis/styles.js +0 -3
- package/es/reporting/components/quizAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +9 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +8 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -23
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +7 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +14 -34
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +12 -48
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +9 -29
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +9 -22
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -30
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +7 -21
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -36
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +9 -48
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +6 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +5 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +4 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +10 -37
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +7 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +18 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +5 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +18 -53
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -54
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -16
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -6
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +16 -39
- package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
- package/es/reporting/components/resources/ReportCard/index.js +8 -15
- package/es/reporting/components/resources/ReportCard/styles.js +0 -2
- package/es/reporting/components/resources/ReportCard/theme.js +1 -2
- package/es/reporting/components/resources/ReportList/index.js +8 -15
- package/es/reporting/components/resources/ReportList/styles.js +0 -1
- package/es/reporting/components/resources/ReportList/theme.js +0 -1
- package/es/taking/api/taking.js +30 -42
- package/es/taking/learnosity/index.js +9 -33
- package/lib/banks/api/bankEntries.js +5 -50
- package/lib/banks/api/banks.js +12 -66
- package/lib/banks/api/copyingBanksPoller.js +6 -25
- package/lib/banks/api/tagAssociations.js +4 -26
- package/lib/banks/components/AddBankEntryModal/index.js +0 -13
- package/lib/banks/components/AddBankEntryModal/presenter.js +0 -34
- package/lib/banks/components/AddToBankModal/index.js +0 -19
- package/lib/banks/components/AddToBankModal/presenter.js +12 -74
- package/lib/banks/components/AsyncSearch/index.js +8 -79
- package/lib/banks/components/Bank/index.js +0 -18
- package/lib/banks/components/Bank/presenter.js +21 -107
- package/lib/banks/components/Bank/styles.js +0 -5
- package/lib/banks/components/Bank/theme.js +2 -4
- package/lib/banks/components/BankEntriesList/index.js +0 -8
- package/lib/banks/components/BankEntriesList/presenter.js +6 -28
- package/lib/banks/components/BankEntriesList/styles.js +0 -2
- package/lib/banks/components/BankEntriesList/theme.js +0 -2
- package/lib/banks/components/BankEntry/index.js +0 -23
- package/lib/banks/components/BankEntry/presenter.js +26 -153
- package/lib/banks/components/BankEntry/styles.js +0 -4
- package/lib/banks/components/BankEntry/theme.js +3 -5
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -7
- package/lib/banks/components/BankEntryRow/index.js +0 -19
- package/lib/banks/components/BankEntryRow/presenter.js +13 -69
- package/lib/banks/components/BankEntryRow/styles.js +0 -2
- package/lib/banks/components/BankEntryRow/theme.js +3 -5
- package/lib/banks/components/BankSearch/BankSearch.stories.js +0 -13
- package/lib/banks/components/BankSearch/index.js +0 -11
- package/lib/banks/components/BankSearch/presenter.js +14 -54
- package/lib/banks/components/BankSearch/styles.js +0 -2
- package/lib/banks/components/BankSearch/theme.js +0 -2
- package/lib/banks/components/Banks/index.js +0 -14
- package/lib/banks/components/Banks/presenter.js +16 -97
- package/lib/banks/components/Banks/styles.js +0 -2
- package/lib/banks/components/Banks/theme.js +2 -4
- package/lib/banks/components/BanksList/index.js +0 -13
- package/lib/banks/components/BanksList/presenter.js +12 -91
- package/lib/banks/components/BanksList/styles.js +0 -2
- package/lib/banks/components/BanksList/theme.js +3 -5
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +0 -16
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -49
- package/lib/banks/components/CreateBankModal/index.js +0 -19
- package/lib/banks/components/CreateBankModal/presenter.js +6 -49
- package/lib/banks/components/CreateBankModal/styles.js +0 -2
- package/lib/banks/components/CreateBankModal/theme.js +1 -3
- package/lib/banks/components/EditBankModal/index.js +0 -16
- package/lib/banks/components/EditBankModal/presenter.js +6 -41
- package/lib/banks/components/EditBankModal/styles.js +0 -2
- package/lib/banks/components/EditBankModal/theme.js +1 -3
- package/lib/banks/components/HeaderBreadCrumb/index.js +9 -34
- package/lib/banks/components/HeaderMenu/index.js +0 -11
- package/lib/banks/components/HeaderMenu/presenter.js +6 -32
- package/lib/banks/components/HeaderMenu/styles.js +0 -2
- package/lib/banks/components/HeaderMenu/theme.js +1 -3
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +0 -5
- package/lib/banks/components/NavWrapper/index.js +0 -7
- package/lib/banks/components/NavWrapper/presenter.js +10 -45
- package/lib/banks/components/NavWrapper/styles.js +0 -3
- package/lib/banks/components/NavWrapper/theme.js +4 -6
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -26
- package/lib/banks/components/SharingModal/RootAccountSharing.js +5 -35
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +0 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +8 -43
- package/lib/banks/components/SharingModal/ShareList/styles.js +0 -2
- package/lib/banks/components/SharingModal/index.js +0 -13
- package/lib/banks/components/SharingModal/presenter.js +29 -123
- package/lib/banks/components/SharingModal/styles.js +0 -2
- package/lib/banks/components/SharingModal/theme.js +2 -4
- package/lib/building/api/items.js +12 -45
- package/lib/building/api/qtiImports.js +4 -29
- package/lib/building/api/quizEntries.js +23 -67
- package/lib/building/api/quizzes.js +27 -55
- package/lib/building/api/stimuli.js +4 -11
- package/lib/building/components/QTIImportModal/index.js +2 -13
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -29
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +2 -25
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +18 -41
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -5
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +0 -2
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +2 -24
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +16 -39
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -5
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +0 -2
- package/lib/building/components/layout/Sidebar/index.js +3 -22
- package/lib/building/components/layout/Sidebar/presenter.js +13 -54
- package/lib/building/components/layout/Sidebar/styles.js +0 -4
- package/lib/building/components/layout/Sidebar/theme.js +0 -2
- package/lib/building/components/layout/header/BuildingButtons/index.js +0 -17
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +8 -69
- package/lib/building/components/layout/header/BuildingButtons/styles.js +0 -4
- package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -4
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +0 -7
- package/lib/building/components/resources/ActionButtons/index.js +0 -11
- package/lib/building/components/resources/ActionButtons/presenter.js +6 -38
- package/lib/building/components/resources/ActionButtons/styles.js +0 -6
- package/lib/building/components/resources/ActionButtons/theme.js +1 -3
- package/lib/building/components/resources/AddToBankOptions/index.js +7 -40
- package/lib/building/components/resources/AddToBankOptions/styles.js +0 -2
- package/lib/building/components/resources/AddToBankOptions/theme.js +1 -3
- package/lib/building/components/resources/BanksTray/index.js +0 -6
- package/lib/building/components/resources/BanksTray/presenter.js +2 -46
- package/lib/building/components/resources/DeleteStimulusModal/index.js +3 -15
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +14 -63
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +0 -2
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -3
- package/lib/building/components/resources/ItemFeedbackModal/index.js +0 -13
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +6 -38
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +0 -2
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +0 -2
- package/lib/building/components/resources/MoveImmutableModal/index.js +5 -18
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -32
- package/lib/building/components/resources/quiz/editButton/EditButton.js +0 -26
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +0 -6
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +5 -29
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +0 -2
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +0 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +0 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +0 -11
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +12 -55
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +0 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Show/index.js +6 -31
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +0 -2
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +2 -3
- package/lib/building/components/resources/quiz/title/Edit/index.js +8 -40
- package/lib/building/components/resources/quiz/title/Edit/styles.js +0 -4
- package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -5
- package/lib/building/components/resources/quiz/title/Show/index.js +6 -31
- package/lib/building/components/resources/quiz/title/Show/styles.js +0 -2
- package/lib/building/components/resources/quiz/title/Show/theme.js +0 -2
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +0 -4
- package/lib/building/components/resources/quiz/title/Title/index.js +0 -12
- package/lib/building/components/resources/quiz/title/Title/presenter.js +12 -49
- package/lib/building/components/resources/quiz/title/Title/styles.js +0 -5
- package/lib/building/components/resources/quiz/title/Title/theme.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +0 -22
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +13 -79
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -13
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +0 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +0 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -55
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +7 -30
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -11
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +18 -64
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +13 -83
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -20
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +29 -118
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -12
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +24 -76
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -5
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -6
- package/lib/common/actions/addInteractionTypes.js +0 -2
- package/lib/common/actions/alerts.js +7 -16
- package/lib/common/actions/analyses.js +0 -7
- package/lib/common/actions/bankEntries.js +0 -5
- package/lib/common/actions/bankSearch.js +0 -9
- package/lib/common/actions/banks.js +0 -13
- package/lib/common/actions/config.js +0 -4
- package/lib/common/actions/dragAndDrop.js +0 -2
- package/lib/common/actions/editing.js +0 -4
- package/lib/common/actions/errorsShowing.js +0 -4
- package/lib/common/actions/features.js +0 -3
- package/lib/common/actions/grading.js +0 -4
- package/lib/common/actions/items.js +0 -2
- package/lib/common/actions/modal.js +0 -7
- package/lib/common/actions/moderation.js +0 -3
- package/lib/common/actions/modifications.js +35 -57
- package/lib/common/actions/outcomes.js +0 -5
- package/lib/common/actions/postMessage.js +0 -2
- package/lib/common/actions/printing.js +0 -3
- package/lib/common/actions/qtiImports.js +0 -3
- package/lib/common/actions/quizEntries.js +0 -7
- package/lib/common/actions/quizExport.js +0 -3
- package/lib/common/actions/quizSessionEvents.js +0 -3
- package/lib/common/actions/quizSessionResults.js +0 -3
- package/lib/common/actions/quizSessions.js +3 -30
- package/lib/common/actions/quizzes.js +0 -13
- package/lib/common/actions/rce.js +3 -9
- package/lib/common/actions/regrading.js +0 -4
- package/lib/common/actions/reporting.js +0 -6
- package/lib/common/actions/scrolling.js +0 -3
- package/lib/common/actions/sessionItemResults.js +0 -3
- package/lib/common/actions/sessionItems.js +0 -3
- package/lib/common/actions/sharedBanks.js +0 -7
- package/lib/common/actions/sidebar.js +0 -3
- package/lib/common/actions/stimuli.js +0 -2
- package/lib/common/actions/tagAssociations.js +0 -17
- package/lib/common/actions/taking.js +6 -42
- package/lib/common/actions/ui.js +0 -19
- package/lib/common/actions/upload.js +0 -11
- package/lib/common/api/callHandlers.js +10 -62
- package/lib/common/api/camelizeHelpers.js +3 -10
- package/lib/common/api/features.js +0 -8
- package/lib/common/api/fileUpload.js +3 -9
- package/lib/common/api/getPersistenceActions.js +22 -43
- package/lib/common/api/helpers.js +10 -46
- package/lib/common/api/interactionTypes.js +0 -5
- package/lib/common/api/quizSessions.js +21 -64
- package/lib/common/api/quizzes.js +4 -12
- package/lib/common/api/schema.js +6 -7
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +0 -12
- package/lib/common/components/ConfirmationModal/index.js +0 -11
- package/lib/common/components/ConfirmationModal/presenter.js +9 -36
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +8 -31
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +0 -2
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -4
- package/lib/common/components/ImportModal/index.js +8 -21
- package/lib/common/components/ImportModal/presenter.js +13 -80
- package/lib/common/components/ImportModal/styles.js +0 -2
- package/lib/common/components/ImportModal/theme.js +0 -2
- package/lib/common/components/LearnosityCalculator/index.js +1 -32
- package/lib/common/components/Pin/index.js +0 -2
- package/lib/common/components/Pin/presenter.js +0 -22
- package/lib/common/components/PreviewFrame/examples.config.js +0 -4
- package/lib/common/components/PreviewFrame/index.js +0 -19
- package/lib/common/components/PrintFontSizeModal/index.js +0 -3
- package/lib/common/components/PrintFontSizeModal/presenter.js +16 -40
- package/lib/common/components/PrintFontSizeModal/styles.js +0 -2
- package/lib/common/components/PrintFontSizeModal/theme.js +2 -4
- package/lib/common/components/RceConfigProvider/index.js +0 -8
- package/lib/common/components/RceConfigProvider/presenter.js +22 -66
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -15
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +0 -13
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +1 -14
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -14
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +0 -4
- package/lib/common/components/SDKApp/index.js +16 -62
- package/lib/common/components/SDKApp/styles.js +0 -2
- package/lib/common/components/SDKHeaderCalculator.js +1 -9
- package/lib/common/components/SDKMenuButton.js +0 -7
- package/lib/common/components/SDKNavBar.js +0 -7
- package/lib/common/components/SDKTimer.js +1 -9
- package/lib/common/components/alerts/index.js +0 -9
- package/lib/common/components/alerts/presenter.js +6 -35
- package/lib/common/components/alerts/styles.js +0 -4
- package/lib/common/components/alerts/theme.js +1 -3
- package/lib/common/components/layout/Page/index.js +6 -20
- package/lib/common/components/layout/Page/styles.js +0 -5
- package/lib/common/components/layout/Page/theme.js +2 -4
- package/lib/common/components/layout/header/Calculator/index.js +0 -9
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -26
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +0 -10
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +7 -35
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +0 -4
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -4
- package/lib/common/components/layout/header/Timer/index.js +0 -13
- package/lib/common/components/layout/header/Timer/presenter.js +10 -53
- package/lib/common/components/layout/header/Timer/styles.js +0 -2
- package/lib/common/components/layout/header/Timer/theme.js +3 -5
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +5 -21
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -2
- package/lib/common/components/layout/navbar/index.js +6 -37
- package/lib/common/components/layout/navbar/styles.js +0 -2
- package/lib/common/components/layout/navbar/theme.js +1 -3
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +5 -21
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +0 -2
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +3 -5
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +0 -20
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -6
- package/lib/common/components/layout/sidebar/Sidebar/index.js +18 -76
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +0 -7
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +5 -8
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +0 -12
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +23 -55
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +0 -4
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +3 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +0 -6
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +13 -43
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +0 -6
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +11 -44
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +5 -23
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/index.js +0 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +17 -51
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +3 -5
- package/lib/common/components/resources/BankSelection/index.js +0 -11
- package/lib/common/components/resources/BankSelection/presenter.js +6 -51
- package/lib/common/components/resources/WarningWrapper/index.js +6 -29
- package/lib/common/components/resources/WarningWrapper/styles.js +0 -2
- package/lib/common/components/resources/WarningWrapper/theme.js +2 -4
- package/lib/common/components/resources/entry/EntrySave/index.js +0 -15
- package/lib/common/components/resources/entry/EntrySave/presenter.js +8 -73
- package/lib/common/components/resources/item/ItemEdit/index.js +2 -24
- package/lib/common/components/resources/item/ItemEdit/presenter.js +8 -50
- package/lib/common/components/resources/item/ItemOverride/index.js +0 -16
- package/lib/common/components/resources/item/ItemOverride/presenter.js +0 -23
- package/lib/common/components/resources/item/ItemShow/index.js +0 -20
- package/lib/common/components/resources/positionBox/PositionBox.js +6 -22
- package/lib/common/components/resources/positionBox/styles.js +0 -4
- package/lib/common/components/resources/positionBox/theme.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +0 -12
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +16 -51
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +0 -6
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +4 -6
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +6 -29
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +0 -5
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +4 -6
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +5 -14
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -18
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +1 -12
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +6 -39
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +0 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -3
- package/lib/common/components/resources/quiz/info/QuizInfo.js +0 -16
- package/lib/common/components/resources/quiz/instructions/Instructions.js +10 -24
- package/lib/common/components/resources/quiz/instructions/styles.js +0 -2
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -3
- package/lib/common/components/resources/quiz/title/Title.js +9 -24
- package/lib/common/components/resources/quiz/title/styles.js +0 -2
- package/lib/common/components/resources/quiz/title/theme.js +1 -3
- package/lib/common/components/resources/quizSessionResult/Header/index.js +6 -30
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +0 -2
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -3
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +0 -5
- package/lib/common/components/resources/quizSessionResult/Info/index.js +12 -49
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +0 -3
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -3
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +5 -24
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -5
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -6
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -8
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +11 -53
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +6 -34
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -5
- package/lib/common/components/resources/stimulus/Stimulus/index.js +0 -11
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +10 -45
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -9
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -5
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +0 -19
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +19 -122
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -11
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +6 -47
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +7 -32
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +0 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -19
- package/lib/common/components/shared/Card/CardContent/index.js +6 -22
- package/lib/common/components/shared/Card/CardContent/styles.js +0 -4
- package/lib/common/components/shared/Card/CardContent/theme.js +4 -6
- package/lib/common/components/shared/Card/CardWrapper/index.js +6 -22
- package/lib/common/components/shared/Card/CardWrapper/styles.js +0 -4
- package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -4
- package/lib/common/components/shared/Card/index.js +3 -13
- package/lib/common/components/shared/ExpandButton/index.js +5 -22
- package/lib/common/components/shared/ExpandButton/styles.js +0 -4
- package/lib/common/components/shared/ExpandButton/theme.js +0 -2
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +0 -4
- package/lib/common/components/shared/FormattedDuration/index.js +4 -28
- package/lib/common/components/shared/IfFeature/index.js +0 -5
- package/lib/common/components/shared/IfFeature/presenter.js +0 -13
- package/lib/common/components/shared/InteractionTypes/index.js +0 -6
- package/lib/common/components/shared/InteractionTypes/presenter.js +8 -42
- package/lib/common/components/shared/InteractionTypes/styles.js +0 -2
- package/lib/common/components/shared/InteractionTypes/theme.js +2 -4
- package/lib/common/components/shared/PaginatedCollection/index.js +0 -8
- package/lib/common/components/shared/PaginatedCollection/presenter.js +25 -51
- package/lib/common/components/shared/PaginatedCollection/styles.js +0 -2
- package/lib/common/components/shared/PaginatedCollection/theme.js +2 -4
- package/lib/common/components/shared/Paginator/index.js +6 -25
- package/lib/common/components/shared/Paginator/styles.js +0 -2
- package/lib/common/components/shared/Paginator/theme.js +0 -2
- package/lib/common/components/shared/PrintTrigger/index.js +0 -14
- package/lib/common/components/shared/PrintTrigger/presenter.js +3 -42
- package/lib/common/components/shared/TagDisplay/index.js +6 -25
- package/lib/common/components/shared/TagDisplay/styles.js +0 -2
- package/lib/common/components/shared/TagSelect/index.js +0 -3
- package/lib/common/components/shared/TagSelect/presenter.js +11 -59
- package/lib/common/components/shared/TagSuggestSelect/index.js +0 -10
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +7 -34
- package/lib/common/components/shared/TagWrapper/index.js +0 -3
- package/lib/common/components/shared/TagWrapper/presenter.js +3 -25
- package/lib/common/components/shared/TimeUnitsInput/index.js +20 -68
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +13 -34
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +0 -15
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -66
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -88
- package/lib/common/components/shared/errors/Errors.js +6 -29
- package/lib/common/components/shared/errors/styles.js +0 -2
- package/lib/common/components/shared/errors/theme.js +1 -3
- package/lib/common/components/shared/file_selector/FileSelector.js +6 -24
- package/lib/common/components/shared/file_selector/styles.js +0 -2
- package/lib/common/components/shared/file_selector/theme.js +2 -4
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +4 -21
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +4 -19
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +0 -5
- package/lib/common/components/shared/functionality/makeEditable.js +19 -48
- package/lib/common/components/shared/functionality/makeScrollable.js +9 -44
- package/lib/common/components/shared/overlay/index.js +17 -26
- package/lib/common/components/shared/overlay/styles.js +0 -4
- package/lib/common/components/shared/overlay/theme.js +2 -4
- package/lib/common/components/shared/return_button/ReturnButton.js +0 -18
- package/lib/common/components/shared/spinner/Spinner.js +12 -31
- package/lib/common/components/shared/spinner/styles.js +0 -2
- package/lib/common/kinesis/QuizEventsLogger.js +14 -45
- package/lib/common/kinesis/StreamQueue.js +6 -29
- package/lib/common/kinesis/client.js +1 -14
- package/lib/common/kinesis/config.js +2 -11
- package/lib/common/kinesis/eventTypes.js +4 -5
- package/lib/common/middleware/alertTimerMiddleware.js +2 -8
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +0 -5
- package/lib/common/middleware/eventLoggerMiddleware.js +1 -8
- package/lib/common/middleware/persistedStorageMiddleware.js +1 -11
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +0 -29
- package/lib/common/react-redux.js +1 -4
- package/lib/common/records/Alert.js +0 -10
- package/lib/common/records/Bank.js +0 -17
- package/lib/common/records/BankEntry.js +0 -18
- package/lib/common/records/Item.js +2 -21
- package/lib/common/records/ItemAnalysis.js +0 -15
- package/lib/common/records/QtiImport.js +0 -13
- package/lib/common/records/Quiz.js +4 -28
- package/lib/common/records/QuizAnalysis.js +0 -12
- package/lib/common/records/QuizEntry.js +10 -78
- package/lib/common/records/QuizSession.js +0 -23
- package/lib/common/records/QuizSessionEvent.js +0 -12
- package/lib/common/records/QuizSessionResult.js +0 -14
- package/lib/common/records/Response.js +0 -14
- package/lib/common/records/SessionItem.js +2 -23
- package/lib/common/records/SessionItemResult.js +0 -13
- package/lib/common/records/Stimulus.js +0 -16
- package/lib/common/records/baseRecord.js +0 -21
- package/lib/common/records/index.js +0 -17
- package/lib/common/records/reduxRecord.js +0 -11
- package/lib/common/reducers/alerts.js +0 -7
- package/lib/common/reducers/analyses.js +0 -15
- package/lib/common/reducers/bankEntries.js +0 -11
- package/lib/common/reducers/bankSearch.js +4 -14
- package/lib/common/reducers/banks.js +1 -19
- package/lib/common/reducers/calls.js +0 -7
- package/lib/common/reducers/config.js +0 -9
- package/lib/common/reducers/dragAndDrop.js +0 -6
- package/lib/common/reducers/editing.js +0 -7
- package/lib/common/reducers/errorsShowing.js +0 -8
- package/lib/common/reducers/features.js +0 -7
- package/lib/common/reducers/grading.js +0 -8
- package/lib/common/reducers/interactionTypes.js +0 -9
- package/lib/common/reducers/items.js +0 -10
- package/lib/common/reducers/modal.js +0 -10
- package/lib/common/reducers/moderation.js +0 -8
- package/lib/common/reducers/modifications.js +6 -44
- package/lib/common/reducers/outcomes.js +0 -10
- package/lib/common/reducers/printing.js +0 -6
- package/lib/common/reducers/qtiImports.js +0 -11
- package/lib/common/reducers/quizEntries.js +28 -46
- package/lib/common/reducers/quizExport.js +0 -6
- package/lib/common/reducers/quizSessionEvents.js +0 -9
- package/lib/common/reducers/quizSessionResults.js +0 -9
- package/lib/common/reducers/quizSessions.js +2 -18
- package/lib/common/reducers/quizzes.js +0 -21
- package/lib/common/reducers/rce.js +0 -9
- package/lib/common/reducers/regrading.js +0 -9
- package/lib/common/reducers/reporting.js +0 -18
- package/lib/common/reducers/scrolling.js +0 -7
- package/lib/common/reducers/sessionItemResults.js +0 -9
- package/lib/common/reducers/sessionItems.js +0 -10
- package/lib/common/reducers/sharedBanks.js +1 -13
- package/lib/common/reducers/sidebar.js +0 -7
- package/lib/common/reducers/stimuli.js +0 -10
- package/lib/common/reducers/tagAssociations.js +0 -32
- package/lib/common/reducers/taking.js +0 -40
- package/lib/common/reducers/ui.js +0 -15
- package/lib/common/reducers/upload.js +0 -11
- package/lib/common/selectors/analyses.js +0 -14
- package/lib/common/selectors/calculator.js +4 -11
- package/lib/common/selectors/calls.js +0 -3
- package/lib/common/selectors/config.js +0 -4
- package/lib/common/selectors/interactionTypes.js +5 -13
- package/lib/common/selectors/items.js +0 -7
- package/lib/common/selectors/qtiImports.js +2 -9
- package/lib/common/selectors/quizSessionResults.js +0 -5
- package/lib/common/selectors/quizSessions.js +3 -14
- package/lib/common/selectors/quizzes.js +4 -39
- package/lib/common/selectors/rce.js +0 -4
- package/lib/common/selectors/reporting.js +0 -6
- package/lib/common/selectors/sessionItemResults.js +2 -10
- package/lib/common/selectors/sessionItems.js +2 -11
- package/lib/common/selectors/taking.js +0 -16
- package/lib/common/selectors/ui.js +0 -2
- package/lib/common/util/CustomPropTypes.js +0 -18
- package/lib/common/util/ElementsForSelectors.js +0 -4
- package/lib/common/util/ExhaustivePaginatedFetcher.js +7 -32
- package/lib/common/util/Fetcher.js +24 -95
- package/lib/common/util/MultiWeakMap.js +0 -21
- package/lib/common/util/PaginatedFetcher.js +2 -29
- package/lib/common/util/ThunkQueue.js +3 -33
- package/lib/common/util/TimeRecordingService.js +0 -16
- package/lib/common/util/TimerService.js +3 -50
- package/lib/common/util/cachePreviousArgs.js +0 -7
- package/lib/common/util/callHelpers.js +0 -10
- package/lib/common/util/componentForItem.js +1 -11
- package/lib/common/util/crossDomainMessaging.js +0 -2
- package/lib/common/util/debounceLatestPromise.js +0 -6
- package/lib/common/util/featureCheck.js +3 -13
- package/lib/common/util/fetchHelpers.js +0 -1
- package/lib/common/util/fitbCopyHelper.js +1 -4
- package/lib/common/util/formatTimespan.js +0 -18
- package/lib/common/util/generateDisplayPositions.js +2 -7
- package/lib/common/util/httpHeaders.js +0 -4
- package/lib/common/util/immutableHelpers.js +4 -10
- package/lib/common/util/instUIMessages.js +0 -2
- package/lib/common/util/interactionTypeMetadata.js +3 -9
- package/lib/common/util/interactionTypePropsHelper.js +0 -14
- package/lib/common/util/interactionTypeRecordForItem.js +1 -10
- package/lib/common/util/jsonify.js +1 -5
- package/lib/common/util/keyboardClickable.js +0 -2
- package/lib/common/util/mathRenderingUtils.js +0 -2
- package/lib/common/util/maxContent.js +0 -6
- package/lib/common/util/modalHelpers.js +0 -2
- package/lib/common/util/noop.js +0 -2
- package/lib/common/util/persistedState.js +0 -13
- package/lib/common/util/printUtils.js +0 -7
- package/lib/common/util/rceChecker.js +1 -10
- package/lib/common/util/renderAlerts.js +6 -17
- package/lib/common/util/serializeEvent.js +0 -8
- package/lib/common/util/sessionStore.js +4 -13
- package/lib/common/util/valMap.js +0 -4
- package/lib/common/util/warningHelpers.js +0 -27
- package/lib/common/util/windowChecks.js +0 -10
- package/lib/common/util/withCachedArguments.js +0 -9
- package/lib/common/util/withDynamoPagination.js +14 -43
- package/lib/common/util/withStateCache.js +0 -15
- package/lib/config.js +2 -11
- package/lib/configureStore.js +9 -60
- package/lib/grading/api/quizEntryRegrades.js +3 -9
- package/lib/grading/api/updateResults.js +0 -12
- package/lib/index.js +0 -130
- package/lib/messages/LocalStorageAdapter.js +0 -14
- package/lib/messages/LocalStorageLimits.js +2 -25
- package/lib/messages/StorageExhaustionError.js +1 -12
- package/lib/messages/postMessageService.js +0 -29
- package/lib/messages/subjectHandlers/forwardMessage.js +0 -2
- package/lib/messages/subjectHandlers/lti.capabilities.js +0 -2
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +0 -2
- package/lib/messages/subjectHandlers/lti.frameResize.js +0 -4
- package/lib/messages/subjectHandlers/lti.get_data.js +2 -9
- package/lib/messages/subjectHandlers/lti.put_data.js +3 -14
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +0 -7
- package/lib/messages/utils.js +0 -1
- package/lib/moderating/api/quizSessionEvents.js +0 -6
- package/lib/moderating/api/quizSessions.js +0 -8
- package/lib/moderating/components/events/Event.js +3 -33
- package/lib/moderating/components/events/PageBlurredEvent.js +0 -14
- package/lib/moderating/components/events/PageFocusedEvent.js +0 -14
- package/lib/moderating/components/events/RCEEvent.js +0 -14
- package/lib/moderating/components/events/ResponseEvent.js +5 -31
- package/lib/moderating/components/events/SessionStartEvent.js +0 -19
- package/lib/moderating/components/events/styles.js +0 -2
- package/lib/moderating/components/events/theme.js +1 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -33
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -32
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -33
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -35
- package/lib/moderating/components/resources/AccommodationsModal/index.js +7 -42
- package/lib/moderating/components/resources/ElapsedTime.js +5 -19
- package/lib/moderating/components/resources/ModerateTable/index.js +0 -11
- package/lib/moderating/components/resources/ModerateTable/presenter.js +24 -93
- package/lib/moderating/components/resources/ModerateTable/styles.js +0 -4
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -3
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -7
- package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -8
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +21 -81
- package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -6
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +0 -2
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +0 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +0 -10
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -42
- package/lib/moderating/components/sidebar/ModerateTray/index.js +0 -7
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +0 -39
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +0 -13
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -31
- package/lib/reduxStore.js +0 -11
- package/lib/reporting/api/getAnalysesExport.js +4 -18
- package/lib/reporting/api/getAnalysesStatus.js +3 -13
- package/lib/reporting/api/getItemAnalyses.js +3 -13
- package/lib/reporting/api/getQuizAnalysis.js +3 -13
- package/lib/reporting/api/itemAnalyses.js +0 -6
- package/lib/reporting/api/quizAnalyses.js +0 -6
- package/lib/reporting/components/Caption/index.js +6 -21
- package/lib/reporting/components/Caption/styles.js +0 -2
- package/lib/reporting/components/Caption/theme.js +2 -4
- package/lib/reporting/components/MetricsListItem/index.js +9 -26
- package/lib/reporting/components/MetricsListItem/styles.js +0 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +0 -3
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +11 -45
- package/lib/reporting/components/charts/CentileDistribution/styles.js +0 -4
- package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -4
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/Distribution.js +0 -3
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +0 -3
- package/lib/reporting/components/charts/Distribution/index.js +0 -3
- package/lib/reporting/components/charts/Distribution/presenter.js +13 -60
- package/lib/reporting/components/charts/Distribution/styles.js +0 -2
- package/lib/reporting/components/charts/Distribution/theme.js +1 -3
- package/lib/reporting/components/charts/Legend/index.js +9 -26
- package/lib/reporting/components/charts/Legend/styles.js +0 -4
- package/lib/reporting/components/charts/Legend/theme.js +3 -5
- package/lib/reporting/components/charts/QuintileDistribution/index.js +0 -3
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +9 -42
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +0 -2
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +0 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +5 -37
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -9
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -7
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +0 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +0 -9
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +15 -59
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -5
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +10 -42
- package/lib/reporting/components/quizAnalysis/styles.js +0 -5
- package/lib/reporting/components/quizAnalysis/theme.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +10 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +9 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -23
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -24
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +5 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +8 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +15 -53
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -29
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +13 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +10 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +10 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +9 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +5 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +5 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +10 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +7 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -14
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +6 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +5 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +11 -62
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +8 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +19 -61
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +7 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +0 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +20 -78
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +0 -38
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -70
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +0 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -29
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -12
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +0 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +17 -58
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -4
- package/lib/reporting/components/resources/ReportCard/index.js +9 -28
- package/lib/reporting/components/resources/ReportCard/styles.js +0 -4
- package/lib/reporting/components/resources/ReportCard/theme.js +1 -3
- package/lib/reporting/components/resources/ReportList/index.js +9 -25
- package/lib/reporting/components/resources/ReportList/styles.js +0 -2
- package/lib/reporting/components/resources/ReportList/theme.js +0 -2
- package/lib/taking/api/taking.js +30 -78
- package/lib/taking/learnosity/index.js +9 -40
- package/package.json +11 -12
|
@@ -1,202 +1,131 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = exports.BankEntry = void 0;
|
|
9
|
-
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
-
|
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
-
|
|
18
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
|
|
20
13
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
21
|
-
|
|
22
14
|
var _react = require("react");
|
|
23
|
-
|
|
24
15
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
25
|
-
|
|
26
16
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
|
-
|
|
28
17
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
29
|
-
|
|
30
18
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
31
|
-
|
|
32
19
|
var _differenceWith = _interopRequireDefault(require("lodash/differenceWith"));
|
|
33
|
-
|
|
34
20
|
var _intersectionWith = _interopRequireDefault(require("lodash/intersectionWith"));
|
|
35
|
-
|
|
36
21
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
37
|
-
|
|
38
22
|
var _isUndefined = _interopRequireDefault(require("lodash/isUndefined"));
|
|
39
|
-
|
|
40
23
|
var _keyBy = _interopRequireDefault(require("lodash/keyBy"));
|
|
41
|
-
|
|
42
24
|
var _uiAlerts = require("@instructure/ui-alerts");
|
|
43
|
-
|
|
44
25
|
var _uiBreadcrumb = require("@instructure/ui-breadcrumb");
|
|
45
|
-
|
|
46
26
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
47
|
-
|
|
48
27
|
var _uiText = require("@instructure/ui-text");
|
|
49
|
-
|
|
50
28
|
var _uiHeading = require("@instructure/ui-heading");
|
|
51
|
-
|
|
52
29
|
var _uiIcons = require("@instructure/ui-icons");
|
|
53
|
-
|
|
54
30
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
55
|
-
|
|
56
31
|
var _uiTextInput = require("@instructure/ui-text-input");
|
|
57
|
-
|
|
58
32
|
var _emotion = require("@instructure/emotion");
|
|
59
|
-
|
|
60
33
|
var _index = require("../HeaderBreadCrumb/index.js");
|
|
61
|
-
|
|
62
34
|
var _index2 = _interopRequireDefault(require("../../../common/components/resources/entry/EntrySave/index.js"));
|
|
63
|
-
|
|
64
35
|
var _index3 = _interopRequireDefault(require("../../../common/components/resources/item/ItemEdit/index.js"));
|
|
65
|
-
|
|
66
36
|
var _index4 = _interopRequireDefault(require("../../../building/components/resources/ItemFeedbackModal/index.js"));
|
|
67
|
-
|
|
68
37
|
var _index5 = _interopRequireDefault(require("../../../common/components/resources/item/ItemShow/index.js"));
|
|
69
|
-
|
|
70
38
|
var _index6 = _interopRequireDefault(require("../../../common/components/layout/Page/index.js"));
|
|
71
|
-
|
|
72
39
|
var _Spinner = _interopRequireDefault(require("../../../common/components/shared/spinner/Spinner.js"));
|
|
73
|
-
|
|
74
40
|
var _index7 = _interopRequireDefault(require("../../../common/components/resources/stimulus/StimulusEditInfo/index.js"));
|
|
75
|
-
|
|
76
41
|
var _index8 = _interopRequireDefault(require("../../../common/components/resources/stimulus/StimulusShowInfo/index.js"));
|
|
77
|
-
|
|
78
42
|
var _index9 = _interopRequireDefault(require("../../../common/components/shared/TagSuggestSelect/index.js"));
|
|
79
|
-
|
|
80
43
|
var _index10 = _interopRequireDefault(require("../../../common/components/resources/WarningWrapper/index.js"));
|
|
81
|
-
|
|
82
44
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
83
|
-
|
|
84
45
|
var _items = require("../../../building/api/items.js");
|
|
85
|
-
|
|
86
46
|
var _stimuli = require("../../../building/api/stimuli.js");
|
|
87
|
-
|
|
88
47
|
var _warningHelpers = require("../../../common/util/warningHelpers.js");
|
|
89
|
-
|
|
90
48
|
var _index11 = _interopRequireDefault(require("../NavWrapper/index.js"));
|
|
91
|
-
|
|
92
49
|
var _quizCommon = require("@instructure/quiz-common");
|
|
93
|
-
|
|
94
50
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
95
|
-
|
|
96
51
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
52
|
+
var _dec, _class, _BankEntry;
|
|
53
|
+
/** @jsx jsx */
|
|
100
54
|
var _ref3 = (0, _emotion.jsx)(_Spinner.default, null);
|
|
101
|
-
|
|
102
|
-
var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
55
|
+
var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_BankEntry = /*#__PURE__*/function (_Component) {
|
|
103
56
|
(0, _inherits2.default)(BankEntry, _Component);
|
|
104
|
-
|
|
105
57
|
var _super = (0, _createSuper2.default)(BankEntry);
|
|
106
|
-
|
|
107
58
|
function BankEntry() {
|
|
108
59
|
var _this;
|
|
109
|
-
|
|
110
60
|
(0, _classCallCheck2.default)(this, BankEntry);
|
|
111
|
-
|
|
112
61
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
113
62
|
args[_key] = arguments[_key];
|
|
114
63
|
}
|
|
115
|
-
|
|
116
64
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
117
65
|
_this.state = {
|
|
118
66
|
validationErrorsFromApi: {}
|
|
119
67
|
};
|
|
120
|
-
|
|
121
68
|
_this.setNavToBankRef = function (node) {
|
|
122
69
|
_this.navToBankRef = node;
|
|
123
70
|
};
|
|
124
|
-
|
|
125
71
|
_this.navigateToBank = function () {
|
|
126
72
|
_this.props.navigateToBank(_this.props.bankId);
|
|
127
73
|
};
|
|
128
|
-
|
|
129
74
|
_this.handleTitleChange = function (e) {
|
|
130
75
|
_this.props.changeItemTitle(_this.props.entry.id, e.target.value);
|
|
131
76
|
};
|
|
132
|
-
|
|
133
77
|
_this.clearValidationErrorsFromApi = function (inputId) {
|
|
134
78
|
if (inputId === _quizCommon.CLEAR_ALL_INPUT_VALIDATION_ERRORS) {
|
|
135
79
|
_this.setState({
|
|
136
80
|
validationErrorsFromApi: {}
|
|
137
81
|
});
|
|
138
82
|
}
|
|
139
|
-
|
|
140
83
|
if (_this.state.validationErrorsFromApi[inputId]) {
|
|
141
84
|
var newErrors = Object.assign({}, _this.state.validationErrorsFromApi);
|
|
142
85
|
delete newErrors[inputId];
|
|
143
|
-
|
|
144
86
|
_this.setState({
|
|
145
87
|
validationErrorsFromApi: newErrors
|
|
146
88
|
});
|
|
147
89
|
}
|
|
148
90
|
};
|
|
149
|
-
|
|
150
|
-
_this.submitHandler = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
91
|
+
_this.submitHandler = /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
151
92
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
152
93
|
while (1) {
|
|
153
94
|
switch (_context.prev = _context.next) {
|
|
154
95
|
case 0:
|
|
155
96
|
_context.prev = 0;
|
|
156
|
-
|
|
157
97
|
if (!_this.props.entry.isTemporary()) {
|
|
158
98
|
_context.next = 6;
|
|
159
99
|
break;
|
|
160
100
|
}
|
|
161
|
-
|
|
162
101
|
_context.next = 4;
|
|
163
102
|
return _this.temporarySubmit();
|
|
164
|
-
|
|
165
103
|
case 4:
|
|
166
104
|
_context.next = 8;
|
|
167
105
|
break;
|
|
168
|
-
|
|
169
106
|
case 6:
|
|
170
107
|
_context.next = 8;
|
|
171
108
|
return _this.normalSubmit();
|
|
172
|
-
|
|
173
109
|
case 8:
|
|
174
110
|
_context.next = 16;
|
|
175
111
|
break;
|
|
176
|
-
|
|
177
112
|
case 10:
|
|
178
113
|
_context.prev = 10;
|
|
179
114
|
_context.t0 = _context["catch"](0);
|
|
180
|
-
|
|
181
115
|
if (!_context.t0.validationErrorsFromApi) {
|
|
182
116
|
_context.next = 15;
|
|
183
117
|
break;
|
|
184
118
|
}
|
|
185
|
-
|
|
186
119
|
_this.setState({
|
|
187
120
|
validationErrorsFromApi: _context.t0.validationErrorsFromApi
|
|
188
|
-
});
|
|
121
|
+
});
|
|
122
|
+
// Throwing an error here would cause an alert banner to show,
|
|
189
123
|
// which we don't want in the case of a simple input validation error
|
|
190
|
-
|
|
191
|
-
|
|
192
124
|
return _context.abrupt("return", _quizCommon.API_INPUT_VALIDATION_ERROR);
|
|
193
|
-
|
|
194
125
|
case 15:
|
|
195
126
|
throw _context.t0;
|
|
196
|
-
|
|
197
127
|
case 16:
|
|
198
128
|
_this.navigateToBank();
|
|
199
|
-
|
|
200
129
|
case 17:
|
|
201
130
|
case "end":
|
|
202
131
|
return _context.stop();
|
|
@@ -204,31 +133,22 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
204
133
|
}
|
|
205
134
|
}, _callee, null, [[0, 10]]);
|
|
206
135
|
}));
|
|
207
|
-
|
|
208
136
|
_this.handleRef = function (node) {
|
|
209
137
|
_this.itemEditArea = node;
|
|
210
138
|
};
|
|
211
|
-
|
|
212
139
|
_this.clearChanges = function () {
|
|
213
140
|
_this.clearValidationErrorsFromApi(_quizCommon.CLEAR_ALL_INPUT_VALIDATION_ERRORS);
|
|
214
|
-
|
|
215
141
|
if (!_this.props.entry) return;
|
|
216
|
-
|
|
217
142
|
if (_this.props.entry.isTemporary()) {
|
|
218
143
|
_this.props.clearTemporaryBankItem(_this.props.bankId);
|
|
219
144
|
}
|
|
220
|
-
|
|
221
145
|
_this.props.clearModifications('items', _this.props.entry.id);
|
|
222
|
-
|
|
223
146
|
_this.props.setPendingDeletionTagAssociations(_this.props.bankEntry.entryType, _this.props.entry.id, []);
|
|
224
|
-
|
|
225
147
|
_this.props.setPendingAdditionTagAssociations(_this.props.bankEntry.entryType, _this.props.entry.id, []);
|
|
226
148
|
};
|
|
227
|
-
|
|
228
149
|
_this.handlePointsChange = function (points) {
|
|
229
150
|
_this.props.changeQuizEntryPoints(_this.props.entry.id, points);
|
|
230
151
|
};
|
|
231
|
-
|
|
232
152
|
_this.editProps = function (entry) {
|
|
233
153
|
return {
|
|
234
154
|
cancelHandler: _this.navigateToBank,
|
|
@@ -249,67 +169,51 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
249
169
|
scope: _this.props.scope
|
|
250
170
|
};
|
|
251
171
|
};
|
|
252
|
-
|
|
253
172
|
_this.openFeedbackModal = function () {
|
|
254
173
|
_this.props.setUi(_quizCommon.ITEM_FEEDBACK_MODAL_ITEM, _this.props.entry.getWorkingInstance());
|
|
255
|
-
|
|
256
174
|
_this.props.setUi(_quizCommon.ITEM_FEEDBACK_MODAL_FEEDBACK, _this.props.entry.getWorkingInstance().feedback);
|
|
257
|
-
|
|
258
175
|
_this.props.openModal(_quizCommon.ITEM_FEEDBACK_MODAL, {
|
|
259
176
|
modalTrigger: _this.addFeedbackButton
|
|
260
177
|
});
|
|
261
178
|
};
|
|
262
|
-
|
|
263
179
|
_this.storeFeedbackButtonRef = function (button) {
|
|
264
180
|
_this.addFeedbackButton = button;
|
|
265
181
|
};
|
|
266
|
-
|
|
267
182
|
_this.compareTagValues = function (left, right) {
|
|
268
183
|
return left.tag_value === right.tag_value;
|
|
269
184
|
};
|
|
270
|
-
|
|
271
185
|
_this.tagToAssociation = function (_ref2) {
|
|
272
186
|
var value = _ref2.value;
|
|
273
187
|
return {
|
|
274
188
|
tag_value: value
|
|
275
189
|
};
|
|
276
190
|
};
|
|
277
|
-
|
|
278
191
|
_this.handleTagChange = function (tags) {
|
|
279
192
|
var bankEntry = _this.props.bankEntry;
|
|
280
|
-
|
|
281
193
|
var tagAssociations = _this.props.tagAssociations.toJS();
|
|
282
|
-
|
|
283
194
|
var associations = tags.map(_this.tagToAssociation);
|
|
284
195
|
var removed = (0, _differenceWith.default)(tagAssociations, associations, _this.compareTagValues);
|
|
285
|
-
var created = (0, _differenceWith.default)(associations, tagAssociations, _this.compareTagValues);
|
|
196
|
+
var created = (0, _differenceWith.default)(associations, tagAssociations, _this.compareTagValues);
|
|
197
|
+
// If a tag that was removed is being re-added,
|
|
286
198
|
// remove from both addAssociations and deletedTags
|
|
287
|
-
|
|
288
199
|
var restored = (0, _intersectionWith.default)(created, removed, _this.compareTagValues);
|
|
289
200
|
var addOperations = (0, _differenceWith.default)(created, restored, _isEqual.default);
|
|
290
201
|
var deleteOperations = (0, _differenceWith.default)(removed, restored, _this.compareTagValues);
|
|
291
|
-
|
|
292
202
|
var bankEntryId = _this.getBankEntryId(bankEntry);
|
|
293
|
-
|
|
294
203
|
_this.props.setPendingDeletionTagAssociations(bankEntry.entryType, bankEntryId, deleteOperations);
|
|
295
|
-
|
|
296
204
|
_this.props.setPendingAdditionTagAssociations(bankEntry.entryType, bankEntryId, addOperations);
|
|
297
205
|
};
|
|
298
|
-
|
|
299
206
|
return _this;
|
|
300
207
|
}
|
|
301
|
-
|
|
302
208
|
(0, _createClass2.default)(BankEntry, [{
|
|
303
209
|
key: "componentDidMount",
|
|
304
210
|
value: function componentDidMount() {
|
|
305
211
|
if (!this.isTemporary()) {
|
|
306
212
|
this.props.getBankEntry(this.props.bankId, this.props.bankEntryId);
|
|
307
213
|
}
|
|
308
|
-
|
|
309
214
|
if (this.navToBankRef) {
|
|
310
215
|
_reactDom.default.findDOMNode(this.navToBankRef).focus();
|
|
311
216
|
}
|
|
312
|
-
|
|
313
217
|
this.props.getBank(this.props.bankId);
|
|
314
218
|
}
|
|
315
219
|
}, {
|
|
@@ -361,11 +265,11 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
361
265
|
key: "renderNav",
|
|
362
266
|
value: function renderNav() {
|
|
363
267
|
var _this$props = this.props,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
268
|
+
scope = _this$props.scope,
|
|
269
|
+
closeTray = _this$props.closeTray,
|
|
270
|
+
navigateToBanks = _this$props.navigateToBanks,
|
|
271
|
+
navigateToBuild = _this$props.navigateToBuild,
|
|
272
|
+
returnToUrl = _this$props.returnToUrl;
|
|
369
273
|
var isScopeEmpty = !Object.keys(scope).length;
|
|
370
274
|
return (0, _emotion.jsx)(_index11.default, {
|
|
371
275
|
closeTray: closeTray,
|
|
@@ -376,7 +280,6 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
376
280
|
isCompact: this.props.isCompact,
|
|
377
281
|
iceTopNavBarEnabled: this.props.iceTopNavBarEnabled,
|
|
378
282
|
menuItemPath: "/banks/".concat(this.props.bankId, "/bank_entries/").concat(this.props.bankEntryId || 'new') // eslint-disable-line react/jsx-no-literals
|
|
379
|
-
|
|
380
283
|
}, this.renderBankBreadCrumbLink(), this.renderBankEntryBreadCrumbLink());
|
|
381
284
|
}
|
|
382
285
|
}, {
|
|
@@ -429,15 +332,15 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
429
332
|
value: function createTagsForClone(newBankEntry, tags) {
|
|
430
333
|
this.props.createTagAssociations(newBankEntry.id, newBankEntry.entry_type, newBankEntry.entry.id, tags.map(function (tag) {
|
|
431
334
|
return tag.tag_value;
|
|
432
|
-
}));
|
|
433
|
-
|
|
335
|
+
}));
|
|
336
|
+
// Pending tag associations were applied to the original bank entry, so clear those out
|
|
434
337
|
this.props.setPendingAdditionTagAssociations(this.props.bankEntry.entryType, this.props.entry.id, []);
|
|
435
338
|
this.props.setPendingDeletionTagAssociations(this.props.bankEntry.entryType, this.props.entry.id, []);
|
|
436
339
|
}
|
|
437
340
|
}, {
|
|
438
341
|
key: "updateTagsForEntry",
|
|
439
342
|
value: function () {
|
|
440
|
-
var _updateTagsForEntry = (0, _asyncToGenerator2.default)(
|
|
343
|
+
var _updateTagsForEntry = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
441
344
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
442
345
|
while (1) {
|
|
443
346
|
switch (_context2.prev = _context2.next) {
|
|
@@ -446,18 +349,15 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
446
349
|
_context2.next = 5;
|
|
447
350
|
break;
|
|
448
351
|
}
|
|
449
|
-
|
|
450
352
|
_context2.next = 3;
|
|
451
353
|
return this.props.createTagAssociations(this.props.bankEntryId, this.props.bankEntry.entryType, this.getBankEntryId(this.props.bankEntry), this.props.pendingAdditionTags.map(function (tagToAdd) {
|
|
452
354
|
return tagToAdd.get('tag_value');
|
|
453
355
|
}));
|
|
454
|
-
|
|
455
356
|
case 3:
|
|
456
357
|
_context2.next = 5;
|
|
457
358
|
return this.props.deleteTagAssociations(this.props.bankEntryId, this.props.bankEntry.entryType, this.getBankEntryId(this.props.bankEntry), this.props.pendingDeletionTags.map(function (tagToDelete) {
|
|
458
359
|
return tagToDelete.get('id');
|
|
459
360
|
}));
|
|
460
|
-
|
|
461
361
|
case 5:
|
|
462
362
|
case "end":
|
|
463
363
|
return _context2.stop();
|
|
@@ -465,64 +365,53 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
465
365
|
}
|
|
466
366
|
}, _callee2, this);
|
|
467
367
|
}));
|
|
468
|
-
|
|
469
368
|
function updateTagsForEntry() {
|
|
470
369
|
return _updateTagsForEntry.apply(this, arguments);
|
|
471
370
|
}
|
|
472
|
-
|
|
473
371
|
return updateTagsForEntry;
|
|
474
372
|
}()
|
|
475
373
|
}, {
|
|
476
374
|
key: "normalSubmit",
|
|
477
375
|
value: function () {
|
|
478
|
-
var _normalSubmit = (0, _asyncToGenerator2.default)(
|
|
376
|
+
var _normalSubmit = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
479
377
|
var entry, tags, createEntryCb, newBankEntry, workingEntry, updateFunc, toClear;
|
|
480
378
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
481
379
|
while (1) {
|
|
482
380
|
switch (_context3.prev = _context3.next) {
|
|
483
381
|
case 0:
|
|
484
382
|
entry = this.props.entry;
|
|
485
|
-
|
|
486
383
|
if (!(entry.hasModifications() || this.props.shouldClone && this.hasPendingTagModifications())) {
|
|
487
384
|
_context3.next = 17;
|
|
488
385
|
break;
|
|
489
386
|
}
|
|
490
|
-
|
|
491
387
|
if (!this.props.shouldClone) {
|
|
492
388
|
_context3.next = 11;
|
|
493
389
|
break;
|
|
494
390
|
}
|
|
495
|
-
|
|
496
391
|
tags = this.visibleTagAssociations();
|
|
497
392
|
createEntryCb = this.isItemEntry() ? _items.createItem : _stimuli.createStimulus;
|
|
498
393
|
_context3.next = 7;
|
|
499
394
|
return this.props.cloneBankEntry(this.props.bankEntry, createEntryCb);
|
|
500
|
-
|
|
501
395
|
case 7:
|
|
502
396
|
newBankEntry = _context3.sent;
|
|
503
397
|
this.createTagsForClone(newBankEntry, tags);
|
|
504
398
|
_context3.next = 15;
|
|
505
399
|
break;
|
|
506
|
-
|
|
507
400
|
case 11:
|
|
508
401
|
workingEntry = entry.getWorkingInstance();
|
|
509
402
|
updateFunc = this.isItemEntry() ? this.props.updateItem : this.props.updateStimulus;
|
|
510
403
|
_context3.next = 15;
|
|
511
404
|
return updateFunc(workingEntry, this.props.bankId, 'bank');
|
|
512
|
-
|
|
513
405
|
case 15:
|
|
514
406
|
toClear = this.isItemEntry() ? 'items' : 'stimuli';
|
|
515
407
|
this.props.clearModifications(toClear, entry.id);
|
|
516
|
-
|
|
517
408
|
case 17:
|
|
518
409
|
if (!this.hasPendingTagModifications()) {
|
|
519
410
|
_context3.next = 20;
|
|
520
411
|
break;
|
|
521
412
|
}
|
|
522
|
-
|
|
523
413
|
_context3.next = 20;
|
|
524
414
|
return this.updateTagsForEntry();
|
|
525
|
-
|
|
526
415
|
case 20:
|
|
527
416
|
case "end":
|
|
528
417
|
return _context3.stop();
|
|
@@ -530,17 +419,15 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
530
419
|
}
|
|
531
420
|
}, _callee3, this);
|
|
532
421
|
}));
|
|
533
|
-
|
|
534
422
|
function normalSubmit() {
|
|
535
423
|
return _normalSubmit.apply(this, arguments);
|
|
536
424
|
}
|
|
537
|
-
|
|
538
425
|
return normalSubmit;
|
|
539
426
|
}()
|
|
540
427
|
}, {
|
|
541
428
|
key: "temporarySubmit",
|
|
542
429
|
value: function () {
|
|
543
|
-
var _temporarySubmit = (0, _asyncToGenerator2.default)(
|
|
430
|
+
var _temporarySubmit = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
544
431
|
var entry, workingEntry, workingBankEntry, createEntryCb, newBankEntry, toClear;
|
|
545
432
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
546
433
|
while (1) {
|
|
@@ -552,20 +439,16 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
552
439
|
createEntryCb = this.isItemEntry() ? _items.createItem : _stimuli.createStimulus;
|
|
553
440
|
_context4.next = 6;
|
|
554
441
|
return this.props.createEntryAndBankEntry(this.props.bankId, workingEntry, workingBankEntry, createEntryCb);
|
|
555
|
-
|
|
556
442
|
case 6:
|
|
557
443
|
newBankEntry = _context4.sent;
|
|
558
|
-
|
|
559
444
|
if (this.hasPendingTagModifications()) {
|
|
560
445
|
this.props.createTagAssociations(newBankEntry.id, newBankEntry.entry_type, newBankEntry.entry.id, this.props.pendingAdditionTags.map(function (tagToAdd) {
|
|
561
446
|
return tagToAdd.get('tag_value');
|
|
562
447
|
}));
|
|
563
448
|
}
|
|
564
|
-
|
|
565
449
|
toClear = this.isItemEntry() ? 'items' : 'stimuli';
|
|
566
450
|
this.props.clearModifications(toClear, entry.id);
|
|
567
451
|
this.props.clearTemporaryBankItem(this.props.bankId);
|
|
568
|
-
|
|
569
452
|
case 11:
|
|
570
453
|
case "end":
|
|
571
454
|
return _context4.stop();
|
|
@@ -573,11 +456,9 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
573
456
|
}
|
|
574
457
|
}, _callee4, this);
|
|
575
458
|
}));
|
|
576
|
-
|
|
577
459
|
function temporarySubmit() {
|
|
578
460
|
return _temporarySubmit.apply(this, arguments);
|
|
579
461
|
}
|
|
580
|
-
|
|
581
462
|
return temporarySubmit;
|
|
582
463
|
}()
|
|
583
464
|
}, {
|
|
@@ -586,11 +467,9 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
586
467
|
if (!this.isItemEntry()) {
|
|
587
468
|
return;
|
|
588
469
|
}
|
|
589
|
-
|
|
590
470
|
var shouldClone = this.props.shouldClone;
|
|
591
471
|
var disabled = this.props.entry.isImmutable() && !shouldClone;
|
|
592
472
|
var icon, text;
|
|
593
|
-
|
|
594
473
|
if (this.props.entry.getWorkingInstance().hasFeedback()) {
|
|
595
474
|
icon = _uiIcons.IconDiscussionSolid;
|
|
596
475
|
text = (0, _formatMessage.default)('Edit Question Level Feedback (present)');
|
|
@@ -598,7 +477,6 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
598
477
|
icon = _uiIcons.IconDiscussionLine;
|
|
599
478
|
text = (0, _formatMessage.default)('Edit Question Level Feedback');
|
|
600
479
|
}
|
|
601
|
-
|
|
602
480
|
return (0, _emotion.jsx)(_uiButtons.IconButton, {
|
|
603
481
|
onClick: this.openFeedbackModal,
|
|
604
482
|
withBackground: false,
|
|
@@ -619,9 +497,9 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
619
497
|
key: "visibleTagAssociations",
|
|
620
498
|
value: function visibleTagAssociations() {
|
|
621
499
|
var _this$props2 = this.props,
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
500
|
+
pendingAdditionTags = _this$props2.pendingAdditionTags,
|
|
501
|
+
pendingDeletionTags = _this$props2.pendingDeletionTags,
|
|
502
|
+
tagAssociations = _this$props2.tagAssociations;
|
|
625
503
|
var existingValues = (0, _keyBy.default)(tagAssociations.toJS(), function (t) {
|
|
626
504
|
return t.tag_value;
|
|
627
505
|
});
|
|
@@ -646,11 +524,10 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
646
524
|
key: "renderEntry",
|
|
647
525
|
value: function renderEntry(entry) {
|
|
648
526
|
var _this2 = this;
|
|
649
|
-
|
|
650
527
|
if (!entry) return;
|
|
651
528
|
var _this$props3 = this.props,
|
|
652
|
-
|
|
653
|
-
|
|
529
|
+
bankEntry = _this$props3.bankEntry,
|
|
530
|
+
useBankTags = _this$props3.useBankTags;
|
|
654
531
|
var props = this.editProps(entry);
|
|
655
532
|
var propsFunc = this.isItemEntry() ? _warningHelpers.propsForItemVersioningWrapper : _warningHelpers.propsForStimulusVersioningWrapper;
|
|
656
533
|
var versioningProps = propsFunc(entry.isImmutable(), this.props.shouldClone, this.props.setShouldClone, this.navigateToBank, true);
|
|
@@ -660,7 +537,6 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
660
537
|
var EntryComponent = this.isItemEntry() ? ItemComponent : StimulusComponent;
|
|
661
538
|
var entryType = bankEntry.entryType;
|
|
662
539
|
var entryId = this.getBankEntryId(bankEntry);
|
|
663
|
-
|
|
664
540
|
var tags = function tags() {
|
|
665
541
|
return (0, _emotion.jsx)(_index9.default, {
|
|
666
542
|
allowNewTags: true,
|
|
@@ -671,7 +547,6 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
671
547
|
tags: _this2.visibleTags()
|
|
672
548
|
});
|
|
673
549
|
};
|
|
674
|
-
|
|
675
550
|
var editWarning = this.isItemEntry() ? (0, _formatMessage.default)('Edits made here will appear on any assessment using this question.') : (0, _formatMessage.default)('Edits made here will appear on any assessment using this stimulus.');
|
|
676
551
|
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("div", {
|
|
677
552
|
css: this.props.styles.entryEdit
|
|
@@ -692,11 +567,9 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
692
567
|
key: "render",
|
|
693
568
|
value: function render() {
|
|
694
569
|
var entry = this.props.entry;
|
|
695
|
-
|
|
696
570
|
if (entry && !entry.isLoaded()) {
|
|
697
571
|
return _ref3;
|
|
698
572
|
}
|
|
699
|
-
|
|
700
573
|
return (0, _emotion.jsx)(_index6.default, null, this.renderNav(), (0, _emotion.jsx)("div", {
|
|
701
574
|
css: this.props.styles.content,
|
|
702
575
|
ref: this.handleRef
|
|
@@ -715,7 +588,7 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
715
588
|
}]);
|
|
716
589
|
BankEntry.displayName = "BankEntry";
|
|
717
590
|
return BankEntry;
|
|
718
|
-
}(_react.Component),
|
|
591
|
+
}(_react.Component), _BankEntry.propTypes = {
|
|
719
592
|
bankEntryId: _propTypes.default.string.isRequired,
|
|
720
593
|
bankId: _propTypes.default.string.isRequired,
|
|
721
594
|
bank: _reactImmutableProptypes.default.record.isRequired,
|
|
@@ -765,7 +638,7 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
765
638
|
iceTopNavBarEnabled: _propTypes.default.bool,
|
|
766
639
|
// eslint-disable-next-line react/require-default-props,react/forbid-prop-types
|
|
767
640
|
styles: _propTypes.default.object
|
|
768
|
-
},
|
|
641
|
+
}, _BankEntry.defaultProps = {
|
|
769
642
|
closeTray: function closeTray() {},
|
|
770
643
|
entry: null,
|
|
771
644
|
isCompact: false,
|
|
@@ -778,7 +651,7 @@ var BankEntry = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
778
651
|
tagInput: null,
|
|
779
652
|
useBankTags: false,
|
|
780
653
|
iceTopNavBarEnabled: false
|
|
781
|
-
},
|
|
654
|
+
}, _BankEntry)) || _class);
|
|
782
655
|
exports.BankEntry = BankEntry;
|
|
783
656
|
var _default = BankEntry;
|
|
784
657
|
exports.default = _default;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
|
|
12
9
|
var generateStyle = function generateStyle(componentTheme) {
|
|
13
10
|
var footerStyles = {
|
|
14
11
|
display: 'flex',
|
|
@@ -73,6 +70,5 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
73
70
|
}
|
|
74
71
|
};
|
|
75
72
|
};
|
|
76
|
-
|
|
77
73
|
var _default = generateStyle;
|
|
78
74
|
exports.default = _default;
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
8
|
var spacing = _ref.spacing,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
colors = _ref.colors,
|
|
10
|
+
typography = _ref.typography,
|
|
11
|
+
borders = _ref.borders;
|
|
13
12
|
return {
|
|
14
13
|
contentBackgroundColor: colors.white,
|
|
15
14
|
contentPaddingTopBottom: 0,
|
|
@@ -32,6 +31,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
32
31
|
entryEditBorderColor: colors.tiara
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
|
-
|
|
36
34
|
var _default = generateComponentTheme;
|
|
37
35
|
exports.default = _default;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _immutable = require("immutable");
|
|
11
|
-
|
|
12
9
|
var _BankEntry = _interopRequireDefault(require("../../../common/records/BankEntry.js"));
|
|
13
|
-
|
|
14
10
|
var _Item = _interopRequireDefault(require("../../../common/records/Item.js"));
|
|
15
|
-
|
|
16
11
|
var _default = {
|
|
17
12
|
propsValues: {
|
|
18
13
|
addEntryToQuiz: [null, Function.prototype],
|
|
@@ -21,11 +16,9 @@ var _default = {
|
|
|
21
16
|
getComponentProps: function getComponentProps(props) {
|
|
22
17
|
var bankEntry = new _BankEntry.default();
|
|
23
18
|
var item = new _Item.default();
|
|
24
|
-
|
|
25
19
|
bankEntry.getEntry = function () {
|
|
26
20
|
return item;
|
|
27
21
|
};
|
|
28
|
-
|
|
29
22
|
return {
|
|
30
23
|
bankEntry: bankEntry,
|
|
31
24
|
bankId: '1',
|