@instructure/quiz-core 21.1.1 → 22.0.0
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 +13 -13
- package/es/banks/api/banks.js +26 -24
- package/es/banks/api/copyingBanksPoller.js +51 -53
- package/es/banks/api/tagAssociations.js +23 -27
- package/es/banks/components/AddBankEntryModal/index.js +7 -7
- package/es/banks/components/AddBankEntryModal/presenter.js +42 -29
- package/es/banks/components/AddToBankModal/index.js +8 -8
- package/es/banks/components/AddToBankModal/presenter.js +67 -55
- package/es/banks/components/AsyncSearch/index.js +102 -88
- package/es/banks/components/Bank/index.js +12 -12
- package/es/banks/components/Bank/presenter.js +138 -130
- package/es/banks/components/Bank/styles.js +2 -1
- package/es/banks/components/Bank/theme.js +1 -1
- package/es/banks/components/BankEntriesList/index.js +3 -3
- package/es/banks/components/BankEntriesList/presenter.js +36 -23
- package/es/banks/components/BankEntry/index.js +14 -14
- package/es/banks/components/BankEntry/presenter.js +228 -224
- package/es/banks/components/BankEntry/styles.js +3 -1
- package/es/banks/components/BankEntry/theme.js +5 -5
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -2
- package/es/banks/components/BankEntryRow/index.js +9 -9
- package/es/banks/components/BankEntryRow/presenter.js +79 -67
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +4 -4
- package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
- package/es/banks/components/BankSearch/index.js +4 -4
- package/es/banks/components/BankSearch/presenter.js +40 -27
- package/es/banks/components/Banks/index.js +7 -7
- package/es/banks/components/Banks/presenter.js +141 -128
- package/es/banks/components/Banks/theme.js +2 -2
- package/es/banks/components/BanksList/index.js +7 -7
- package/es/banks/components/BanksList/presenter.js +153 -148
- package/es/banks/components/BanksList/theme.js +4 -4
- package/es/banks/components/CopyMoveBankEntryModal/index.js +8 -8
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +82 -71
- package/es/banks/components/CreateBankModal/index.js +10 -10
- package/es/banks/components/CreateBankModal/presenter.js +62 -49
- package/es/banks/components/EditBankModal/index.js +7 -7
- package/es/banks/components/EditBankModal/presenter.js +54 -41
- package/es/banks/components/HeaderBreadCrumb/index.js +29 -16
- package/es/banks/components/HeaderMenu/index.js +4 -4
- package/es/banks/components/HeaderMenu/presenter.js +29 -17
- package/es/banks/components/NavWrapper/index.js +2 -2
- package/es/banks/components/NavWrapper/presenter.js +37 -24
- package/es/banks/components/NavWrapper/styles.js +4 -2
- package/es/banks/components/NavWrapper/theme.js +3 -3
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +32 -18
- package/es/banks/components/SharingModal/RootAccountSharing.js +35 -23
- package/es/banks/components/SharingModal/ShareList/index.js +45 -33
- package/es/banks/components/SharingModal/index.js +5 -5
- package/es/banks/components/SharingModal/presenter.js +177 -166
- package/es/banks/components/SharingModal/theme.js +1 -1
- package/es/building/api/items.js +68 -72
- package/es/building/api/qtiImports.js +13 -12
- package/es/building/api/quizEntries.js +46 -46
- package/es/building/api/quizzes.js +10 -10
- package/es/building/api/stimuli.js +4 -4
- package/es/building/components/QTIImportModal/index.js +4 -4
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +38 -24
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +29 -16
- package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -11
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +29 -16
- package/es/building/components/layout/Sidebar/index.js +12 -12
- package/es/building/components/layout/Sidebar/presenter.js +59 -46
- package/es/building/components/layout/Sidebar/styles.js +3 -1
- package/es/building/components/layout/header/BuildingButtons/index.js +9 -9
- package/es/building/components/layout/header/BuildingButtons/presenter.js +51 -39
- package/es/building/components/layout/header/BuildingButtons/styles.js +3 -1
- package/es/building/components/layout/header/BuildingButtons/theme.js +2 -2
- package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
- package/es/building/components/resources/ActionButtons/index.js +4 -4
- package/es/building/components/resources/ActionButtons/presenter.js +45 -32
- package/es/building/components/resources/ActionButtons/styles.js +2 -1
- package/es/building/components/resources/ActionButtons/theme.js +1 -1
- package/es/building/components/resources/AddToBankOptions/index.js +57 -46
- package/es/building/components/resources/AddToBankOptions/theme.js +2 -2
- package/es/building/components/resources/BanksTray/index.js +3 -3
- package/es/building/components/resources/BanksTray/presenter.js +51 -40
- package/es/building/components/resources/DeleteStimulusModal/index.js +5 -5
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +101 -67
- package/es/building/components/resources/ItemFeedbackModal/index.js +8 -8
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +43 -31
- package/es/building/components/resources/MoveImmutableModal/index.js +6 -6
- package/es/building/components/resources/MoveImmutableModal/presenter.js +39 -26
- package/es/building/components/resources/quiz/editButton/EditButton.js +33 -20
- package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +36 -16
- package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +7 -7
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +62 -45
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
- package/es/building/components/resources/quiz/instructions/Show/index.js +32 -19
- package/es/building/components/resources/quiz/title/Edit/index.js +53 -39
- package/es/building/components/resources/quiz/title/Edit/styles.js +3 -1
- package/es/building/components/resources/quiz/title/Edit/theme.js +1 -1
- package/es/building/components/resources/quiz/title/Show/index.js +32 -19
- package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
- package/es/building/components/resources/quiz/title/Title/index.js +8 -8
- package/es/building/components/resources/quiz/title/Title/presenter.js +63 -46
- package/es/building/components/resources/quiz/title/Title/styles.js +2 -1
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -14
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +93 -79
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +19 -7
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +81 -70
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +27 -15
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +60 -47
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +169 -141
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -11
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +188 -179
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -8
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +72 -60
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
- package/es/common/actions/alerts.js +1 -1
- package/es/common/actions/editing.js +1 -1
- package/es/common/actions/modal.js +2 -2
- package/es/common/actions/modifications.js +7 -7
- package/es/common/actions/quizSessions.js +9 -9
- package/es/common/actions/scrolling.js +1 -1
- package/es/common/actions/taking.js +2 -2
- package/es/common/api/callHandlers.js +9 -4
- package/es/common/api/features.js +3 -3
- package/es/common/api/fileUpload.js +1 -1
- package/es/common/api/getPersistenceActions.js +21 -18
- package/es/common/api/helpers.js +66 -70
- package/es/common/api/interactionTypes.js +2 -2
- package/es/common/api/quizSessions.js +28 -28
- package/es/common/api/quizzes.js +8 -5
- package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +4 -5
- package/es/common/components/AccessCodeTextInput/index.js +28 -15
- package/es/common/components/ApiFeatureFlagInitializer/index.js +7 -8
- package/es/common/components/ConfirmationModal/index.js +6 -4
- package/es/common/components/ConfirmationModal/presenter.js +53 -40
- package/es/common/components/ImportModal/ImportFileSelector/index.js +35 -24
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
- package/es/common/components/ImportModal/index.js +8 -8
- package/es/common/components/ImportModal/presenter.js +79 -65
- package/es/common/components/LearnosityCalculator/index.js +63 -52
- package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +1 -1
- package/es/common/components/MaskedTextInput/index.js +25 -11
- package/es/common/components/Pin/index.js +1 -1
- package/es/common/components/Pin/presenter.js +27 -14
- package/es/common/components/PreviewFrame/examples.config.js +1 -2
- package/es/common/components/PreviewFrame/index.js +25 -13
- package/es/common/components/PrintFontSizeModal/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +45 -30
- package/es/common/components/PrintFontSizeModal/theme.js +1 -1
- package/es/common/components/RceConfigProvider/index.js +6 -6
- package/es/common/components/RceConfigProvider/presenter.js +74 -77
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -5
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +24 -26
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -5
- package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
- package/es/common/components/SDKApp/index.js +46 -34
- package/es/common/components/SDKHeaderCalculator.js +3 -3
- package/es/common/components/SDKMenuButton.js +3 -3
- package/es/common/components/SDKNavBar.js +3 -3
- package/es/common/components/SDKTimer.js +3 -3
- package/es/common/components/alerts/index.js +4 -4
- package/es/common/components/alerts/presenter.js +33 -20
- package/es/common/components/layout/Page/index.js +25 -12
- package/es/common/components/layout/Page/styles.js +2 -1
- package/es/common/components/layout/header/Calculator/index.js +7 -7
- package/es/common/components/layout/header/Calculator/presenter.js +26 -14
- package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +32 -21
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
- package/es/common/components/layout/header/Timer/index.js +6 -6
- package/es/common/components/layout/header/Timer/presenter.js +48 -37
- package/es/common/components/layout/header/Timer/theme.js +3 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +24 -11
- package/es/common/components/layout/navbar/index.js +60 -47
- package/es/common/components/layout/navbar/styles.js +4 -2
- package/es/common/components/layout/navbar/theme.js +1 -1
- package/es/common/components/layout/sidebar/PositionSummary/index.js +26 -12
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +27 -14
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +5 -7
- package/es/common/components/layout/sidebar/Sidebar/index.js +69 -57
- package/es/common/components/layout/sidebar/Sidebar/styles.js +7 -7
- package/es/common/components/layout/sidebar/Sidebar/theme.js +10 -10
- package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +38 -21
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +3 -1
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
- package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +43 -28
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +4 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +38 -23
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +27 -12
- package/es/common/components/layout/sidebar/Stimulus/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +36 -24
- package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -4
- package/es/common/components/resources/BankSelection/index.js +5 -5
- package/es/common/components/resources/BankSelection/presenter.js +35 -22
- package/es/common/components/resources/WarningWrapper/index.js +31 -18
- package/es/common/components/resources/WarningWrapper/theme.js +1 -1
- package/es/common/components/resources/entry/EntrySave/index.js +6 -6
- package/es/common/components/resources/entry/EntrySave/presenter.js +100 -91
- package/es/common/components/resources/item/ItemEdit/index.js +14 -14
- package/es/common/components/resources/item/ItemEdit/presenter.js +44 -31
- package/es/common/components/resources/item/ItemOverride/index.js +9 -9
- package/es/common/components/resources/item/ItemOverride/presenter.js +33 -19
- package/es/common/components/resources/item/ItemShow/index.js +27 -14
- package/es/common/components/resources/positionBox/PositionBox.js +25 -12
- package/es/common/components/resources/positionBox/theme.js +2 -2
- package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -7
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +64 -52
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Button/index.js +30 -17
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +3 -3
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +25 -12
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -5
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +65 -52
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
- package/es/common/components/resources/quiz/info/QuizInfo.js +26 -13
- package/es/common/components/resources/quiz/instructions/Instructions.js +28 -12
- package/es/common/components/resources/quiz/title/Title.js +28 -12
- package/es/common/components/resources/quizSessionResult/Header/index.js +32 -19
- package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +124 -109
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +30 -17
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +4 -5
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +78 -65
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +3 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +39 -26
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
- package/es/common/components/resources/stimulus/Stimulus/index.js +5 -5
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +50 -37
- package/es/common/components/resources/stimulus/Stimulus/styles.js +2 -1
- package/es/common/components/resources/stimulus/Stimulus/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -10
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +192 -183
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +5 -5
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +49 -38
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShow/index.js +34 -22
- package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +22 -9
- package/es/common/components/shared/Card/CardContent/index.js +27 -13
- package/es/common/components/shared/Card/CardContent/theme.js +2 -2
- package/es/common/components/shared/Card/CardWrapper/index.js +27 -13
- package/es/common/components/shared/Card/index.js +4 -3
- package/es/common/components/shared/ExpandButton/index.js +24 -11
- package/es/common/components/shared/ExpandButton/styles.js +3 -1
- package/es/common/components/shared/FormattedDuration/index.js +30 -16
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +81 -68
- package/es/common/components/shared/IfFeature/index.js +3 -3
- package/es/common/components/shared/IfFeature/presenter.js +24 -11
- package/es/common/components/shared/InteractionTypes/index.js +3 -3
- package/es/common/components/shared/InteractionTypes/presenter.js +52 -39
- package/es/common/components/shared/InteractionTypes/theme.js +1 -1
- package/es/common/components/shared/PaginatedCollection/index.js +3 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +60 -49
- package/es/common/components/shared/PaginatedCollection/theme.js +1 -1
- package/es/common/components/shared/Paginator/index.js +27 -14
- package/es/common/components/shared/PrintTrigger/index.js +6 -6
- package/es/common/components/shared/PrintTrigger/presenter.js +61 -48
- package/es/common/components/shared/TagDisplay/index.js +24 -11
- package/es/common/components/shared/TagDisplay/styles.js +1 -1
- package/es/common/components/shared/TagSelect/index.js +1 -1
- package/es/common/components/shared/TagSelect/presenter.js +77 -63
- package/es/common/components/shared/TagSuggestSelect/index.js +4 -4
- package/es/common/components/shared/TagSuggestSelect/presenter.js +42 -29
- package/es/common/components/shared/TagWrapper/index.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +29 -16
- package/es/common/components/shared/TimeUnitsInput/index.js +72 -59
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +29 -16
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +3 -1
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
- package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +55 -46
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +4 -4
- package/es/common/components/shared/errors/Errors.js +30 -17
- package/es/common/components/shared/errors/theme.js +1 -1
- package/es/common/components/shared/file_selector/FileSelector.js +28 -16
- package/es/common/components/shared/file_selector/theme.js +2 -2
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +28 -11
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +24 -13
- package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -2
- package/es/common/components/shared/functionality/makeEditable.js +43 -24
- package/es/common/components/shared/functionality/makeScrollable.js +46 -33
- package/es/common/components/shared/overlay/index.js +25 -12
- package/es/common/components/shared/overlay/theme.js +1 -1
- package/es/common/components/shared/return_button/ReturnButton.js +26 -12
- package/es/common/components/shared/spinner/Spinner.js +31 -17
- package/es/common/kinesis/QuizEventsLogger.js +37 -40
- package/es/common/kinesis/StreamQueue.js +7 -4
- package/es/common/kinesis/client.js +3 -3
- package/es/common/kinesis/config.js +1 -1
- package/es/common/kinesis/eventTypes.js +1 -1
- package/es/common/middleware/alertTimerMiddleware.js +2 -2
- package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -1
- package/es/common/middleware/eventLoggerMiddleware.js +8 -5
- package/es/common/middleware/persistedStorageMiddleware.js +5 -3
- package/es/common/middleware/quizTimerWebSocketMiddleware.js +7 -7
- package/es/common/react-redux.js +1 -1
- package/es/common/records/Alert.js +20 -5
- package/es/common/records/Bank.js +22 -8
- package/es/common/records/BankEntry.js +25 -12
- package/es/common/records/Item.js +29 -14
- package/es/common/records/ItemAnalysis.js +21 -8
- package/es/common/records/QtiImport.js +20 -7
- package/es/common/records/Quiz.js +34 -19
- package/es/common/records/QuizAnalysis.js +20 -7
- package/es/common/records/QuizEntry.js +130 -117
- package/es/common/records/QuizSession.js +38 -20
- package/es/common/records/QuizSessionEvent.js +21 -8
- package/es/common/records/QuizSessionResult.js +21 -8
- package/es/common/records/Response.js +21 -8
- package/es/common/records/SessionItem.js +27 -14
- package/es/common/records/SessionItemResult.js +21 -8
- package/es/common/records/Stimulus.js +30 -12
- package/es/common/records/baseRecord.js +29 -12
- package/es/common/records/index.js +16 -16
- package/es/common/records/reduxRecord.js +24 -9
- package/es/common/reducers/alerts.js +3 -3
- package/es/common/reducers/analyses.js +3 -3
- package/es/common/reducers/bankEntries.js +2 -2
- package/es/common/reducers/bankSearch.js +2 -2
- package/es/common/reducers/banks.js +2 -2
- package/es/common/reducers/calls.js +2 -2
- package/es/common/reducers/config.js +2 -2
- package/es/common/reducers/dragAndDrop.js +2 -2
- package/es/common/reducers/editing.js +3 -4
- package/es/common/reducers/errorsShowing.js +2 -2
- package/es/common/reducers/features.js +2 -2
- package/es/common/reducers/grading.js +2 -2
- package/es/common/reducers/interactionTypes.js +2 -2
- package/es/common/reducers/items.js +2 -2
- package/es/common/reducers/modal.js +2 -2
- package/es/common/reducers/moderation.js +2 -2
- package/es/common/reducers/modifications.js +9 -8
- package/es/common/reducers/outcomes.js +2 -2
- package/es/common/reducers/printing.js +2 -2
- package/es/common/reducers/qtiImports.js +2 -2
- package/es/common/reducers/quizEntries.js +5 -5
- package/es/common/reducers/quizExport.js +2 -2
- package/es/common/reducers/quizSessionEvents.js +5 -3
- package/es/common/reducers/quizSessionResults.js +2 -2
- package/es/common/reducers/quizSessions.js +2 -2
- package/es/common/reducers/quizzes.js +2 -2
- package/es/common/reducers/rce.js +2 -2
- package/es/common/reducers/regrading.js +2 -2
- package/es/common/reducers/reporting.js +2 -2
- package/es/common/reducers/scrolling.js +2 -2
- package/es/common/reducers/sessionItemResults.js +2 -2
- package/es/common/reducers/sessionItems.js +2 -2
- package/es/common/reducers/sharedBanks.js +2 -2
- package/es/common/reducers/sidebar.js +2 -2
- package/es/common/reducers/stimuli.js +2 -2
- package/es/common/reducers/tagAssociations.js +2 -2
- package/es/common/reducers/taking.js +2 -2
- package/es/common/reducers/ui.js +3 -3
- package/es/common/reducers/upload.js +4 -4
- package/es/common/selectors/calculator.js +5 -3
- package/es/common/selectors/interactionTypes.js +7 -7
- package/es/common/selectors/items.js +1 -1
- package/es/common/selectors/qtiImports.js +1 -1
- package/es/common/selectors/quizSessionResults.js +2 -2
- package/es/common/selectors/quizSessions.js +2 -2
- package/es/common/selectors/quizzes.js +9 -9
- package/es/common/selectors/reporting.js +2 -2
- package/es/common/selectors/sessionItemResults.js +4 -5
- package/es/common/selectors/sessionItems.js +4 -5
- package/es/common/selectors/taking.js +2 -2
- package/es/common/util/ExhaustivePaginatedFetcher.js +64 -49
- package/es/common/util/Fetcher.js +128 -141
- package/es/common/util/MultiWeakMap.js +1 -2
- package/es/common/util/PaginatedFetcher.js +37 -26
- package/es/common/util/ThunkQueue.js +50 -51
- package/es/common/util/TimeRecordingService.js +5 -5
- package/es/common/util/TimerService.js +7 -7
- package/es/common/util/clickHandlers.js +1 -1
- package/es/common/util/crossDomainMessaging.js +1 -1
- package/es/common/util/debounceLatestPromise.js +1 -1
- package/es/common/util/featureCheck.js +5 -3
- package/es/common/util/formatTimespan.js +2 -2
- package/es/common/util/generateDisplayPositions.js +1 -1
- package/es/common/util/getClientIpAddress.js +21 -23
- package/es/common/util/immutableHelpers.js +4 -3
- package/es/common/util/interactionTypePropsHelper.js +1 -1
- package/es/common/util/jsonify.js +4 -2
- package/es/common/util/persistedState.js +4 -4
- package/es/common/util/printUtils.js +1 -1
- package/es/common/util/rceChecker.js +9 -11
- package/es/common/util/renderAlerts.js +11 -10
- package/es/common/util/serializeEvent.js +2 -2
- package/es/common/util/sessionStore.js +1 -2
- package/es/common/util/warningHelpers.js +2 -2
- package/es/common/util/windowChecks.js +2 -2
- package/es/common/util/withCachedArguments.js +3 -1
- package/es/common/util/withDynamoPagination.js +67 -56
- package/es/common/util/withStateCache.js +3 -1
- package/es/configureStore.js +45 -43
- package/es/grading/api/quizEntryRegrades.js +4 -4
- package/es/grading/api/updateResults.js +6 -6
- package/es/index.js +148 -140
- package/es/messages/LocalStorageAdapter.js +15 -13
- package/es/messages/LocalStorageLimits.js +22 -20
- package/es/messages/StorageExhaustionError.js +23 -8
- package/es/messages/postMessageService.js +34 -31
- package/es/messages/subjectHandlers/lti.frameResize.js +2 -2
- package/es/messages/subjectHandlers/lti.get_data.js +1 -1
- package/es/messages/subjectHandlers/lti.put_data.js +2 -2
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +3 -3
- package/es/moderating/api/quizSessionEvents.js +3 -3
- package/es/moderating/api/quizSessions.js +3 -3
- package/es/moderating/components/events/Event.js +37 -26
- package/es/moderating/components/events/PageBlurredEvent.js +19 -7
- package/es/moderating/components/events/PageFocusedEvent.js +19 -7
- package/es/moderating/components/events/RCEEvent.js +22 -9
- package/es/moderating/components/events/ResponseEvent.js +35 -22
- package/es/moderating/components/events/SessionStartEvent.js +24 -11
- package/es/moderating/components/events/SessionSubmitEvent.js +24 -11
- package/es/moderating/components/events/theme.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +34 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +45 -32
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +47 -34
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +42 -28
- package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +35 -21
- package/es/moderating/components/resources/AccommodationsModal/index.js +62 -49
- package/es/moderating/components/resources/ElapsedTime.js +26 -13
- package/es/moderating/components/resources/EventDetails.js +2 -3
- package/es/moderating/components/resources/ModerateTable/index.js +7 -7
- package/es/moderating/components/resources/ModerateTable/presenter.js +115 -102
- package/es/moderating/components/resources/ModerateTable/styles.js +3 -1
- package/es/moderating/components/resources/ModerateTable/theme.js +1 -1
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -2
- package/es/moderating/components/resources/ModerateTableRow/index.js +3 -3
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +65 -51
- package/es/moderating/components/resources/ModerateTableRow/story.js +4 -1
- package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -1
- package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +58 -43
- package/es/moderating/components/resources/RetryGradePassbackButton/index.js +3 -3
- package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +40 -42
- package/es/moderating/components/resources/SessionBreachAlert.js +1 -2
- package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +76 -63
- package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -7
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +45 -34
- package/es/reduxStore.js +5 -5
- package/es/reporting/api/fetchStudentAnalyses.js +16 -18
- package/es/reporting/api/getAnalysesExport.js +20 -22
- package/es/reporting/api/getAnalysesStatus.js +18 -20
- package/es/reporting/api/getItemAnalyses.js +13 -15
- package/es/reporting/api/getQuizAnalysis.js +13 -15
- package/es/reporting/api/itemAnalyses.js +4 -4
- package/es/reporting/api/quizAnalyses.js +4 -4
- package/es/reporting/components/Caption/index.js +25 -12
- package/es/reporting/components/MetricsListItem/index.js +26 -12
- package/es/reporting/components/charts/CentileDistribution/presenter.js +43 -30
- package/es/reporting/components/charts/Distribution/presenter.js +49 -36
- package/es/reporting/components/charts/Distribution/theme.js +4 -4
- package/es/reporting/components/charts/Legend/index.js +29 -15
- package/es/reporting/components/charts/Legend/styles.js +3 -1
- package/es/reporting/components/charts/Legend/theme.js +3 -3
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +46 -33
- package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +32 -21
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -8
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +54 -42
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +38 -27
- package/es/reporting/components/quizAnalysis/styles.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +25 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +26 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +34 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +35 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +51 -39
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +33 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +40 -23
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +35 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +69 -57
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +43 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +8 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +41 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +91 -75
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +66 -50
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +44 -28
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +38 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +35 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +60 -44
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +40 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +36 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +78 -66
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +94 -80
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +51 -35
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +51 -38
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +24 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +95 -82
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +58 -45
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +87 -74
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +34 -21
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +39 -41
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +25 -27
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +121 -108
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +69 -76
- package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +25 -12
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +3 -3
- package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +53 -41
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
- package/es/reporting/components/resources/ReportCard/index.js +26 -13
- package/es/reporting/components/resources/ReportList/index.js +25 -12
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +83 -70
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
- package/es/reporting/components/resources/StudentAnalysis/fetchReport.js +34 -36
- package/es/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +25 -27
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +10 -10
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +79 -86
- package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +27 -14
- package/es/reporting/components/resources/common/errorCodes.js +2 -2
- package/es/reporting/components/resources/common/exportReports.js +38 -40
- package/es/reporting/components/resources/common/generateReports.js +62 -66
- package/es/reporting/components/resources/common/utils.js +1 -1
- package/es/taking/api/taking.js +36 -38
- package/es/taking/learnosity/index.js +36 -38
- package/lib/banks/api/bankEntries.js +43 -54
- package/lib/banks/api/banks.js +68 -78
- package/lib/banks/api/copyingBanksPoller.js +54 -58
- package/lib/banks/api/tagAssociations.js +37 -44
- package/lib/banks/components/AddBankEntryModal/index.js +12 -13
- package/lib/banks/components/AddBankEntryModal/presenter.js +66 -54
- package/lib/banks/components/AddToBankModal/index.js +12 -12
- package/lib/banks/components/AddToBankModal/presenter.js +109 -98
- package/lib/banks/components/AsyncSearch/index.js +150 -137
- package/lib/banks/components/Bank/index.js +18 -19
- package/lib/banks/components/Bank/presenter.js +201 -194
- package/lib/banks/components/Bank/styles.js +7 -7
- package/lib/banks/components/Bank/theme.js +3 -4
- package/lib/banks/components/BankEntriesList/index.js +6 -7
- package/lib/banks/components/BankEntriesList/presenter.js +48 -37
- package/lib/banks/components/BankEntriesList/styles.js +2 -3
- package/lib/banks/components/BankEntriesList/theme.js +2 -3
- package/lib/banks/components/BankEntry/index.js +21 -23
- package/lib/banks/components/BankEntry/presenter.js +311 -309
- package/lib/banks/components/BankEntry/styles.js +7 -6
- package/lib/banks/components/BankEntry/theme.js +7 -8
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +7 -8
- package/lib/banks/components/BankEntryRow/index.js +13 -13
- package/lib/banks/components/BankEntryRow/presenter.js +135 -124
- package/lib/banks/components/BankEntryRow/styles.js +2 -4
- package/lib/banks/components/BankEntryRow/theme.js +6 -7
- package/lib/banks/components/BankSearch/BankSearch.stories.js +12 -17
- package/lib/banks/components/BankSearch/index.js +6 -7
- package/lib/banks/components/BankSearch/presenter.js +74 -63
- package/lib/banks/components/BankSearch/styles.js +2 -3
- package/lib/banks/components/BankSearch/theme.js +2 -3
- package/lib/banks/components/Banks/index.js +12 -13
- package/lib/banks/components/Banks/presenter.js +230 -218
- package/lib/banks/components/Banks/styles.js +2 -3
- package/lib/banks/components/Banks/theme.js +4 -5
- package/lib/banks/components/BanksList/index.js +11 -12
- package/lib/banks/components/BanksList/presenter.js +219 -215
- package/lib/banks/components/BanksList/styles.js +2 -3
- package/lib/banks/components/BanksList/theme.js +6 -7
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +12 -12
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +129 -119
- package/lib/banks/components/CreateBankModal/index.js +15 -15
- package/lib/banks/components/CreateBankModal/presenter.js +96 -84
- package/lib/banks/components/EditBankModal/index.js +11 -11
- package/lib/banks/components/EditBankModal/presenter.js +78 -66
- package/lib/banks/components/HeaderBreadCrumb/index.js +52 -40
- package/lib/banks/components/HeaderMenu/index.js +9 -9
- package/lib/banks/components/HeaderMenu/presenter.js +44 -34
- package/lib/banks/components/HeaderMenu/styles.js +2 -3
- package/lib/banks/components/HeaderMenu/theme.js +2 -3
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +5 -6
- package/lib/banks/components/NavWrapper/externalStyles.js +2 -3
- package/lib/banks/components/NavWrapper/index.js +4 -5
- package/lib/banks/components/NavWrapper/presenter.js +63 -51
- package/lib/banks/components/NavWrapper/styles.js +7 -6
- package/lib/banks/components/NavWrapper/theme.js +5 -6
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +38 -24
- package/lib/banks/components/SharingModal/RootAccountSharing.js +56 -45
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -4
- package/lib/banks/components/SharingModal/ShareList/index.js +65 -55
- package/lib/banks/components/SharingModal/ShareList/styles.js +2 -3
- package/lib/banks/components/SharingModal/index.js +7 -8
- package/lib/banks/components/SharingModal/presenter.js +242 -232
- package/lib/banks/components/SharingModal/styles.js +2 -3
- package/lib/banks/components/SharingModal/theme.js +3 -4
- package/lib/building/api/items.js +78 -82
- package/lib/building/api/qtiImports.js +19 -23
- package/lib/building/api/quizEntries.js +75 -76
- package/lib/building/api/quizzes.js +28 -28
- package/lib/building/api/stimuli.js +8 -8
- package/lib/building/components/QTIImportModal/index.js +11 -15
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +48 -35
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +18 -22
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +54 -43
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -3
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +2 -3
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +16 -20
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +54 -43
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -3
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +2 -3
- package/lib/building/components/layout/Sidebar/index.js +17 -21
- package/lib/building/components/layout/Sidebar/presenter.js +79 -68
- package/lib/building/components/layout/Sidebar/styles.js +8 -7
- package/lib/building/components/layout/Sidebar/theme.js +2 -3
- package/lib/building/components/layout/header/BuildingButtons/index.js +16 -17
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +91 -81
- package/lib/building/components/layout/header/BuildingButtons/styles.js +6 -5
- package/lib/building/components/layout/header/BuildingButtons/theme.js +4 -5
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +9 -11
- package/lib/building/components/resources/ActionButtons/index.js +7 -9
- package/lib/building/components/resources/ActionButtons/presenter.js +70 -59
- package/lib/building/components/resources/ActionButtons/styles.js +6 -6
- package/lib/building/components/resources/ActionButtons/theme.js +3 -4
- package/lib/building/components/resources/AddToBankOptions/index.js +71 -62
- package/lib/building/components/resources/AddToBankOptions/styles.js +2 -3
- package/lib/building/components/resources/AddToBankOptions/theme.js +4 -5
- package/lib/building/components/resources/BanksTray/index.js +6 -8
- package/lib/building/components/resources/BanksTray/presenter.js +103 -93
- package/lib/building/components/resources/DeleteStimulusModal/index.js +8 -10
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +132 -98
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +2 -3
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -3
- package/lib/building/components/resources/ItemFeedbackModal/index.js +13 -15
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +62 -52
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +2 -3
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +2 -3
- package/lib/building/components/resources/MoveImmutableModal/index.js +10 -12
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +66 -54
- package/lib/building/components/resources/quiz/editButton/EditButton.js +42 -29
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -5
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +44 -29
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +5 -6
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -12
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +84 -69
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +3 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +42 -31
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +1 -1
- package/lib/building/components/resources/quiz/title/Edit/index.js +73 -61
- package/lib/building/components/resources/quiz/title/Edit/styles.js +6 -5
- package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -4
- package/lib/building/components/resources/quiz/title/Show/index.js +41 -30
- package/lib/building/components/resources/quiz/title/Show/styles.js +2 -3
- package/lib/building/components/resources/quiz/title/Show/theme.js +2 -3
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +5 -6
- package/lib/building/components/resources/quiz/title/Title/index.js +11 -13
- package/lib/building/components/resources/quiz/title/Title/presenter.js +90 -75
- package/lib/building/components/resources/quiz/title/Title/styles.js +5 -5
- package/lib/building/components/resources/quiz/title/Title/theme.js +4 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +18 -21
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +154 -142
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +24 -13
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +4 -5
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +7 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +113 -104
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +5 -6
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +37 -27
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -6
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +90 -79
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +6 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +215 -188
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +4 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +15 -15
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +260 -253
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +11 -13
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +122 -113
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +6 -6
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +7 -8
- package/lib/common/actions/alerts.js +3 -3
- package/lib/common/actions/analyses.js +7 -7
- package/lib/common/actions/bankEntries.js +3 -5
- package/lib/common/actions/bankSearch.js +6 -10
- package/lib/common/actions/banks.js +8 -14
- package/lib/common/actions/config.js +1 -1
- package/lib/common/actions/editing.js +2 -2
- package/lib/common/actions/errorsShowing.js +1 -1
- package/lib/common/actions/grading.js +2 -2
- package/lib/common/actions/modal.js +5 -5
- package/lib/common/actions/modifications.js +36 -36
- package/lib/common/actions/printing.js +1 -1
- package/lib/common/actions/quizExport.js +2 -3
- package/lib/common/actions/quizSessionEvents.js +2 -3
- package/lib/common/actions/quizSessionResults.js +2 -3
- package/lib/common/actions/quizSessions.js +17 -22
- package/lib/common/actions/quizzes.js +8 -14
- package/lib/common/actions/rce.js +5 -8
- package/lib/common/actions/regrading.js +1 -1
- package/lib/common/actions/reporting.js +1 -1
- package/lib/common/actions/scrolling.js +2 -2
- package/lib/common/actions/sessionItemResults.js +2 -3
- package/lib/common/actions/sessionItems.js +2 -3
- package/lib/common/actions/sharedBanks.js +5 -8
- package/lib/common/actions/sidebar.js +1 -1
- package/lib/common/actions/tagAssociations.js +9 -17
- package/lib/common/actions/taking.js +22 -40
- package/lib/common/actions/ui.js +11 -20
- package/lib/common/actions/upload.js +6 -11
- package/lib/common/api/callHandlers.js +35 -56
- package/lib/common/api/camelizeHelpers.js +5 -7
- package/lib/common/api/features.js +6 -7
- package/lib/common/api/fileUpload.js +6 -7
- package/lib/common/api/getPersistenceActions.js +22 -23
- package/lib/common/api/helpers.js +81 -88
- package/lib/common/api/interactionTypes.js +5 -6
- package/lib/common/api/quizSessions.js +53 -62
- package/lib/common/api/quizzes.js +9 -9
- package/lib/common/api/schema.js +20 -37
- package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +8 -11
- package/lib/common/components/AccessCodeTextInput/index.js +37 -25
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -14
- package/lib/common/components/ConfirmationModal/index.js +9 -8
- package/lib/common/components/ConfirmationModal/presenter.js +80 -68
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +45 -36
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -3
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -7
- package/lib/common/components/ImportModal/index.js +13 -15
- package/lib/common/components/ImportModal/presenter.js +121 -109
- package/lib/common/components/ImportModal/styles.js +2 -3
- package/lib/common/components/ImportModal/theme.js +2 -3
- package/lib/common/components/LearnosityCalculator/index.js +87 -77
- package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +8 -11
- package/lib/common/components/MaskedTextInput/index.js +38 -25
- package/lib/common/components/Pin/Pin.examples.js +3 -4
- package/lib/common/components/Pin/index.js +4 -6
- package/lib/common/components/Pin/presenter.js +39 -27
- package/lib/common/components/PreviewFrame/examples.config.js +4 -6
- package/lib/common/components/PreviewFrame/index.js +37 -26
- package/lib/common/components/PrintFontSizeModal/index.js +3 -4
- package/lib/common/components/PrintFontSizeModal/presenter.js +65 -52
- package/lib/common/components/PrintFontSizeModal/styles.js +2 -3
- package/lib/common/components/PrintFontSizeModal/theme.js +3 -4
- package/lib/common/components/RceConfigProvider/index.js +9 -10
- package/lib/common/components/RceConfigProvider/presenter.js +110 -113
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +10 -12
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +12 -17
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +27 -30
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +7 -10
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -8
- package/lib/common/components/SDKApp/index.js +80 -71
- package/lib/common/components/SDKApp/styles.js +2 -3
- package/lib/common/components/SDKHeaderCalculator.js +12 -14
- package/lib/common/components/SDKMenuButton.js +9 -11
- package/lib/common/components/SDKNavBar.js +10 -12
- package/lib/common/components/SDKTimer.js +12 -14
- package/lib/common/components/alerts/index.js +8 -9
- package/lib/common/components/alerts/presenter.js +42 -31
- package/lib/common/components/alerts/styles.js +3 -4
- package/lib/common/components/alerts/theme.js +2 -3
- package/lib/common/components/layout/Page/index.js +39 -28
- package/lib/common/components/layout/Page/styles.js +6 -6
- package/lib/common/components/layout/Page/theme.js +2 -3
- package/lib/common/components/layout/header/Calculator/index.js +10 -12
- package/lib/common/components/layout/header/Calculator/presenter.js +47 -36
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -12
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +41 -32
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +3 -4
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +3 -4
- package/lib/common/components/layout/header/Timer/index.js +8 -9
- package/lib/common/components/layout/header/Timer/presenter.js +79 -69
- package/lib/common/components/layout/header/Timer/styles.js +2 -3
- package/lib/common/components/layout/header/Timer/theme.js +5 -6
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +30 -19
- package/lib/common/components/layout/navbar/externalStyles.js +2 -3
- package/lib/common/components/layout/navbar/index.js +79 -68
- package/lib/common/components/layout/navbar/styles.js +7 -6
- package/lib/common/components/layout/navbar/theme.js +3 -4
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +37 -25
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -3
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +4 -5
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +38 -26
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +8 -11
- package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +2 -3
- package/lib/common/components/layout/sidebar/Sidebar/index.js +107 -97
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +17 -18
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +12 -13
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -15
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +61 -46
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -6
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -8
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -7
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +60 -47
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +11 -10
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -7
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +54 -41
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +4 -5
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +33 -20
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -12
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +59 -50
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +6 -7
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -4
- package/lib/common/components/resources/BankSelection/index.js +9 -10
- package/lib/common/components/resources/BankSelection/presenter.js +50 -38
- package/lib/common/components/resources/WarningWrapper/index.js +48 -37
- package/lib/common/components/resources/WarningWrapper/styles.js +2 -3
- package/lib/common/components/resources/WarningWrapper/theme.js +3 -4
- package/lib/common/components/resources/entry/EntrySave/index.js +8 -9
- package/lib/common/components/resources/entry/EntrySave/presenter.js +133 -125
- package/lib/common/components/resources/item/ItemEdit/index.js +19 -19
- package/lib/common/components/resources/item/ItemEdit/presenter.js +98 -86
- package/lib/common/components/resources/item/ItemOverride/index.js +13 -13
- package/lib/common/components/resources/item/ItemOverride/presenter.js +59 -46
- package/lib/common/components/resources/item/ItemShow/index.js +37 -24
- package/lib/common/components/resources/positionBox/PositionBox.js +33 -22
- package/lib/common/components/resources/positionBox/styles.js +3 -4
- package/lib/common/components/resources/positionBox/theme.js +4 -5
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -10
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +89 -79
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -8
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +3 -4
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +43 -32
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +7 -7
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +6 -7
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +6 -8
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +47 -35
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +8 -10
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +86 -75
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -3
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +3 -4
- package/lib/common/components/resources/quiz/info/QuizInfo.js +35 -23
- package/lib/common/components/resources/quiz/instructions/Instructions.js +31 -20
- package/lib/common/components/resources/quiz/instructions/styles.js +2 -3
- package/lib/common/components/resources/quiz/instructions/theme.js +2 -3
- package/lib/common/components/resources/quiz/title/Title.js +31 -20
- package/lib/common/components/resources/quiz/title/styles.js +2 -3
- package/lib/common/components/resources/quiz/title/theme.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Header/index.js +42 -31
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +10 -11
- package/lib/common/components/resources/quizSessionResult/Info/index.js +147 -134
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -3
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +39 -28
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +15 -17
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +6 -7
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -9
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +112 -101
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +6 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +6 -7
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +50 -39
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -3
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
- package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -8
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +90 -79
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +9 -9
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +14 -14
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +257 -250
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +3 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +9 -9
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +74 -65
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -4
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +55 -45
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +5 -6
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +38 -25
- package/lib/common/components/shared/Card/CardContent/index.js +36 -24
- package/lib/common/components/shared/Card/CardContent/styles.js +3 -4
- package/lib/common/components/shared/Card/CardContent/theme.js +4 -5
- package/lib/common/components/shared/Card/CardWrapper/index.js +35 -23
- package/lib/common/components/shared/Card/CardWrapper/styles.js +3 -4
- package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -3
- package/lib/common/components/shared/Card/index.js +12 -12
- package/lib/common/components/shared/ExpandButton/index.js +33 -22
- package/lib/common/components/shared/ExpandButton/styles.js +6 -5
- package/lib/common/components/shared/ExpandButton/theme.js +2 -3
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +7 -8
- package/lib/common/components/shared/FormattedDuration/index.js +48 -37
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +103 -91
- package/lib/common/components/shared/IfFeature/index.js +6 -8
- package/lib/common/components/shared/IfFeature/presenter.js +30 -19
- package/lib/common/components/shared/InteractionTypes/index.js +5 -6
- package/lib/common/components/shared/InteractionTypes/presenter.js +68 -57
- package/lib/common/components/shared/InteractionTypes/styles.js +2 -3
- package/lib/common/components/shared/InteractionTypes/theme.js +3 -4
- package/lib/common/components/shared/PaginatedCollection/index.js +6 -7
- package/lib/common/components/shared/PaginatedCollection/presenter.js +77 -69
- package/lib/common/components/shared/PaginatedCollection/styles.js +2 -3
- package/lib/common/components/shared/PaginatedCollection/theme.js +3 -4
- package/lib/common/components/shared/Paginator/index.js +38 -27
- package/lib/common/components/shared/Paginator/styles.js +2 -3
- package/lib/common/components/shared/Paginator/theme.js +2 -3
- package/lib/common/components/shared/PrintTrigger/index.js +11 -12
- package/lib/common/components/shared/PrintTrigger/presenter.js +86 -74
- package/lib/common/components/shared/TagDisplay/index.js +34 -23
- package/lib/common/components/shared/TagDisplay/styles.js +3 -4
- package/lib/common/components/shared/TagSelect/index.js +3 -4
- package/lib/common/components/shared/TagSelect/presenter.js +101 -88
- package/lib/common/components/shared/TagSuggestSelect/index.js +6 -7
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +66 -54
- package/lib/common/components/shared/TagWrapper/index.js +3 -4
- package/lib/common/components/shared/TagWrapper/presenter.js +43 -31
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -4
- package/lib/common/components/shared/TimeUnitsInput/index.js +110 -98
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +43 -32
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -6
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +7 -8
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +12 -14
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +86 -78
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -24
- package/lib/common/components/shared/errors/Errors.js +36 -25
- package/lib/common/components/shared/errors/styles.js +2 -3
- package/lib/common/components/shared/errors/theme.js +3 -4
- package/lib/common/components/shared/file_selector/FileSelector.js +38 -28
- package/lib/common/components/shared/file_selector/styles.js +2 -3
- package/lib/common/components/shared/file_selector/theme.js +4 -5
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +33 -23
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +32 -22
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +5 -6
- package/lib/common/components/shared/functionality/makeEditable.js +52 -40
- package/lib/common/components/shared/functionality/makeScrollable.js +56 -45
- package/lib/common/components/shared/overlay/index.js +39 -26
- package/lib/common/components/shared/overlay/styles.js +3 -4
- package/lib/common/components/shared/overlay/theme.js +3 -4
- package/lib/common/components/shared/return_button/ReturnButton.js +39 -26
- package/lib/common/components/shared/spinner/Spinner.js +43 -31
- package/lib/common/components/shared/spinner/styles.js +2 -3
- package/lib/common/kinesis/QuizEventsLogger.js +43 -49
- package/lib/common/kinesis/StreamQueue.js +13 -11
- package/lib/common/kinesis/client.js +9 -13
- package/lib/common/kinesis/config.js +7 -11
- package/lib/common/kinesis/eventTypes.js +9 -16
- package/lib/common/middleware/alertTimerMiddleware.js +4 -5
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +3 -4
- package/lib/common/middleware/eventLoggerMiddleware.js +7 -8
- package/lib/common/middleware/persistedStorageMiddleware.js +5 -6
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +15 -21
- package/lib/common/react-redux.js +3 -4
- package/lib/common/records/Alert.js +24 -11
- package/lib/common/records/Bank.js +28 -16
- package/lib/common/records/BankEntry.js +32 -21
- package/lib/common/records/Item.js +37 -24
- package/lib/common/records/ItemAnalysis.js +26 -15
- package/lib/common/records/QtiImport.js +25 -14
- package/lib/common/records/Quiz.js +46 -33
- package/lib/common/records/QuizAnalysis.js +28 -17
- package/lib/common/records/QuizEntry.js +147 -135
- package/lib/common/records/QuizSession.js +44 -28
- package/lib/common/records/QuizSessionEvent.js +26 -15
- package/lib/common/records/QuizSessionResult.js +26 -15
- package/lib/common/records/Response.js +26 -15
- package/lib/common/records/SessionItem.js +36 -25
- package/lib/common/records/SessionItemResult.js +26 -15
- package/lib/common/records/Stimulus.js +37 -21
- package/lib/common/records/baseRecord.js +34 -18
- package/lib/common/records/index.js +34 -34
- package/lib/common/records/reduxRecord.js +28 -13
- package/lib/common/reducers/alerts.js +6 -7
- package/lib/common/reducers/analyses.js +17 -30
- package/lib/common/reducers/bankEntries.js +6 -7
- package/lib/common/reducers/bankSearch.js +5 -6
- package/lib/common/reducers/banks.js +6 -7
- package/lib/common/reducers/calls.js +5 -6
- package/lib/common/reducers/config.js +5 -6
- package/lib/common/reducers/dragAndDrop.js +5 -6
- package/lib/common/reducers/editing.js +6 -8
- package/lib/common/reducers/errorsShowing.js +5 -6
- package/lib/common/reducers/features.js +5 -6
- package/lib/common/reducers/grading.js +5 -6
- package/lib/common/reducers/interactionTypes.js +6 -7
- package/lib/common/reducers/items.js +6 -7
- package/lib/common/reducers/modal.js +5 -6
- package/lib/common/reducers/moderation.js +5 -6
- package/lib/common/reducers/modifications.js +16 -16
- package/lib/common/reducers/outcomes.js +5 -6
- package/lib/common/reducers/printing.js +5 -6
- package/lib/common/reducers/qtiImports.js +6 -7
- package/lib/common/reducers/quizEntries.js +10 -11
- package/lib/common/reducers/quizExport.js +5 -6
- package/lib/common/reducers/quizSessionEvents.js +8 -7
- package/lib/common/reducers/quizSessionResults.js +6 -7
- package/lib/common/reducers/quizSessions.js +7 -8
- package/lib/common/reducers/quizzes.js +8 -9
- package/lib/common/reducers/rce.js +5 -6
- package/lib/common/reducers/regrading.js +5 -6
- package/lib/common/reducers/reporting.js +6 -7
- package/lib/common/reducers/scrolling.js +5 -6
- package/lib/common/reducers/sessionItemResults.js +6 -7
- package/lib/common/reducers/sessionItems.js +6 -7
- package/lib/common/reducers/sharedBanks.js +6 -7
- package/lib/common/reducers/sidebar.js +5 -6
- package/lib/common/reducers/stimuli.js +6 -7
- package/lib/common/reducers/tagAssociations.js +5 -6
- package/lib/common/reducers/taking.js +5 -6
- package/lib/common/reducers/ui.js +6 -7
- package/lib/common/reducers/upload.js +7 -8
- package/lib/common/selectors/analyses.js +13 -24
- package/lib/common/selectors/calculator.js +3 -3
- package/lib/common/selectors/config.js +1 -1
- package/lib/common/selectors/interactionTypes.js +14 -16
- package/lib/common/selectors/items.js +3 -3
- package/lib/common/selectors/qtiImports.js +4 -5
- package/lib/common/selectors/quizSessionResults.js +4 -4
- package/lib/common/selectors/quizSessions.js +11 -17
- package/lib/common/selectors/quizzes.js +31 -43
- package/lib/common/selectors/rce.js +4 -6
- package/lib/common/selectors/reporting.js +5 -6
- package/lib/common/selectors/sessionItemResults.js +10 -12
- package/lib/common/selectors/sessionItems.js +11 -13
- package/lib/common/selectors/taking.js +12 -16
- package/lib/common/selectors/ui.js +2 -3
- package/lib/common/util/CustomPropTypes.js +3 -5
- package/lib/common/util/ElementsForSelectors.js +3 -4
- package/lib/common/util/ExhaustivePaginatedFetcher.js +68 -56
- package/lib/common/util/Fetcher.js +151 -166
- package/lib/common/util/MultiWeakMap.js +5 -7
- package/lib/common/util/PaginatedFetcher.js +46 -37
- package/lib/common/util/ThunkQueue.js +55 -57
- package/lib/common/util/TimeRecordingService.js +9 -11
- package/lib/common/util/TimerService.js +16 -19
- package/lib/common/util/cachePreviousArgs.js +4 -5
- package/lib/common/util/callHelpers.js +6 -10
- package/lib/common/util/clickHandlers.js +3 -3
- package/lib/common/util/componentForItem.js +5 -6
- package/lib/common/util/crossDomainMessaging.js +1 -1
- package/lib/common/util/debounceLatestPromise.js +5 -6
- package/lib/common/util/featureCheck.js +6 -6
- package/lib/common/util/formatTimespan.js +8 -9
- package/lib/common/util/generateDisplayPositions.js +3 -4
- package/lib/common/util/getClientIpAddress.js +24 -27
- package/lib/common/util/httpHeaders.js +5 -8
- package/lib/common/util/immutableHelpers.js +6 -9
- package/lib/common/util/instUIMessages.js +2 -3
- package/lib/common/util/interactionTypeMetadata.js +17 -19
- package/lib/common/util/interactionTypePropsHelper.js +5 -7
- package/lib/common/util/interactionTypeRecordForItem.js +4 -4
- package/lib/common/util/jsonify.js +8 -7
- package/lib/common/util/keyboardClickable.js +2 -3
- package/lib/common/util/mathRenderingUtils.js +2 -4
- package/lib/common/util/maxContent.js +4 -5
- package/lib/common/util/noop.js +2 -3
- package/lib/common/util/persistedState.js +10 -11
- package/lib/common/util/printUtils.js +5 -7
- package/lib/common/util/rceChecker.js +12 -15
- package/lib/common/util/renderAlerts.js +13 -15
- package/lib/common/util/serializeEvent.js +4 -5
- package/lib/common/util/sessionStore.js +4 -7
- package/lib/common/util/valMap.js +4 -5
- package/lib/common/util/warningHelpers.js +33 -40
- package/lib/common/util/windowChecks.js +9 -14
- package/lib/common/util/withCachedArguments.js +5 -6
- package/lib/common/util/withDynamoPagination.js +71 -61
- package/lib/common/util/withStateCache.js +5 -6
- package/lib/config.js +6 -8
- package/lib/configureStore.js +90 -91
- package/lib/grading/api/quizEntryRegrades.js +6 -6
- package/lib/grading/api/updateResults.js +10 -11
- package/lib/index.js +559 -557
- package/lib/messages/LocalStorageAdapter.js +18 -18
- package/lib/messages/LocalStorageLimits.js +26 -25
- package/lib/messages/StorageExhaustionError.js +27 -13
- package/lib/messages/postMessageService.js +47 -45
- package/lib/messages/subjectHandlers/forwardMessage.js +2 -3
- package/lib/messages/subjectHandlers/lti.capabilities.js +2 -3
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +2 -3
- package/lib/messages/subjectHandlers/lti.frameResize.js +4 -5
- package/lib/messages/subjectHandlers/lti.get_data.js +3 -4
- package/lib/messages/subjectHandlers/lti.put_data.js +5 -6
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +7 -9
- package/lib/moderating/api/quizSessionEvents.js +4 -4
- package/lib/moderating/api/quizSessions.js +8 -8
- package/lib/moderating/components/events/Event.js +52 -42
- package/lib/moderating/components/events/PageBlurredEvent.js +26 -15
- package/lib/moderating/components/events/PageFocusedEvent.js +26 -15
- package/lib/moderating/components/events/RCEEvent.js +30 -18
- package/lib/moderating/components/events/ResponseEvent.js +46 -34
- package/lib/moderating/components/events/SessionStartEvent.js +34 -22
- package/lib/moderating/components/events/SessionSubmitEvent.js +34 -22
- package/lib/moderating/components/events/styles.js +2 -3
- package/lib/moderating/components/events/theme.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +53 -40
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +57 -45
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +64 -51
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +73 -60
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +49 -36
- package/lib/moderating/components/resources/AccommodationsModal/index.js +87 -75
- package/lib/moderating/components/resources/ElapsedTime.js +39 -27
- package/lib/moderating/components/resources/EventDetails.js +15 -17
- package/lib/moderating/components/resources/ModerateTable/index.js +11 -14
- package/lib/moderating/components/resources/ModerateTable/presenter.js +182 -171
- package/lib/moderating/components/resources/ModerateTable/styles.js +6 -5
- package/lib/moderating/components/resources/ModerateTable/theme.js +3 -4
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +9 -10
- package/lib/moderating/components/resources/ModerateTableRow/index.js +6 -7
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +107 -95
- package/lib/moderating/components/resources/ModerateTableRow/story.js +6 -7
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +3 -4
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +2 -3
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -4
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +7 -9
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +86 -72
- package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +6 -7
- package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +48 -50
- package/lib/moderating/components/resources/SessionBreachAlert.js +4 -6
- package/lib/moderating/components/resources/util/checkIsBreach.js +6 -7
- package/lib/moderating/components/resources/util/extractSessionData.js +3 -4
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -4
- package/lib/moderating/components/sidebar/ModerateTray/index.js +6 -7
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +109 -97
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +10 -11
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +69 -59
- package/lib/reduxStore.js +13 -14
- package/lib/reporting/api/fetchStudentAnalyses.js +20 -23
- package/lib/reporting/api/getAnalysesExport.js +24 -27
- package/lib/reporting/api/getAnalysesStatus.js +22 -25
- package/lib/reporting/api/getItemAnalyses.js +17 -20
- package/lib/reporting/api/getQuizAnalysis.js +17 -20
- package/lib/reporting/api/itemAnalyses.js +5 -5
- package/lib/reporting/api/quizAnalyses.js +5 -5
- package/lib/reporting/components/Caption/index.js +32 -21
- package/lib/reporting/components/Caption/styles.js +2 -3
- package/lib/reporting/components/Caption/theme.js +2 -3
- package/lib/reporting/components/MetricsListItem/index.js +33 -21
- package/lib/reporting/components/MetricsListItem/styles.js +2 -3
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -4
- package/lib/reporting/components/charts/CentileDistribution/index.js +2 -3
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +53 -42
- package/lib/reporting/components/charts/CentileDistribution/styles.js +3 -4
- package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -3
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -5
- package/lib/reporting/components/charts/Distribution/Distribution.js +2 -3
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -3
- package/lib/reporting/components/charts/Distribution/index.js +2 -3
- package/lib/reporting/components/charts/Distribution/presenter.js +58 -48
- package/lib/reporting/components/charts/Distribution/styles.js +2 -3
- package/lib/reporting/components/charts/Distribution/theme.js +6 -7
- package/lib/reporting/components/charts/Legend/index.js +40 -28
- package/lib/reporting/components/charts/Legend/styles.js +6 -5
- package/lib/reporting/components/charts/Legend/theme.js +5 -6
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -4
- package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +54 -43
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +3 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +5 -6
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +47 -38
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -11
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +10 -11
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +5 -6
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +6 -8
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +103 -92
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +4 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +6 -7
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +66 -56
- package/lib/reporting/components/quizAnalysis/styles.js +5 -7
- package/lib/reporting/components/quizAnalysis/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +32 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +38 -26
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +41 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +43 -27
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +62 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +9 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +46 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +53 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +44 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +80 -69
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +6 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +55 -38
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +12 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +59 -43
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +123 -108
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +85 -70
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +52 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +50 -39
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +47 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +66 -50
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +48 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +6 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +5 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +43 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +86 -75
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +7 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +105 -92
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +6 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +4 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +58 -43
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +9 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +60 -48
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +28 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +13 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +115 -103
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +82 -70
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +114 -102
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +7 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +48 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +4 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +42 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +28 -31
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +147 -135
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +14 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +102 -109
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -8
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +40 -28
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -11
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -12
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +102 -92
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -4
- package/lib/reporting/components/resources/ReportCard/index.js +36 -25
- package/lib/reporting/components/resources/ReportCard/styles.js +3 -4
- package/lib/reporting/components/resources/ReportCard/theme.js +2 -3
- package/lib/reporting/components/resources/ReportList/index.js +34 -23
- package/lib/reporting/components/resources/ReportList/styles.js +2 -3
- package/lib/reporting/components/resources/ReportList/theme.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +3 -4
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +107 -94
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +6 -6
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +3 -4
- package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +37 -40
- package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +28 -31
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +12 -13
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +109 -116
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +38 -25
- package/lib/reporting/components/resources/common/ExportButton/index.js +6 -7
- package/lib/reporting/components/resources/common/errorCodes.js +11 -18
- package/lib/reporting/components/resources/common/errorMessages.js +18 -26
- package/lib/reporting/components/resources/common/exportReports.js +41 -44
- package/lib/reporting/components/resources/common/generateReports.js +66 -72
- package/lib/reporting/components/resources/common/propTypes.js +141 -159
- package/lib/reporting/components/resources/common/utils.js +7 -9
- package/lib/taking/api/taking.js +69 -72
- package/lib/taking/learnosity/index.js +39 -41
- package/package.json +55 -56
|
@@ -1,43 +1,55 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
4
|
import _get from "@babel/runtime/helpers/esm/get";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
8
|
import _applyDecoratedDescriptor from "@babel/runtime/helpers/esm/applyDecoratedDescriptor";
|
|
9
9
|
var _dec, _class;
|
|
10
|
+
function _callSuper(_this, derived, args) {
|
|
11
|
+
function isNativeReflectConstruct() {
|
|
12
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
13
|
+
if (Reflect.construct.sham) return false;
|
|
14
|
+
if (typeof Proxy === "function") return true;
|
|
15
|
+
try {
|
|
16
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
17
|
+
} catch (e) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
derived = _getPrototypeOf(derived);
|
|
22
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
23
|
+
}
|
|
10
24
|
import Immutable, { Map, List } from 'immutable';
|
|
11
25
|
import { interactionPoints } from '@instructure/quiz-interactions';
|
|
12
|
-
import { toErrors } from
|
|
13
|
-
import ReduxRecord from
|
|
14
|
-
import _Item from
|
|
15
|
-
import _Bank from
|
|
16
|
-
import _Stimulus from
|
|
17
|
-
import _BankEntry from
|
|
26
|
+
import { toErrors } from '../../common/util/instUIMessages';
|
|
27
|
+
import ReduxRecord from './reduxRecord';
|
|
28
|
+
import _Item from './Item';
|
|
29
|
+
import _Bank from './Bank';
|
|
30
|
+
import _Stimulus from './Stimulus';
|
|
31
|
+
import _BankEntry from './BankEntry';
|
|
18
32
|
import { TEMPORARY_ITEM_ID, TEMPORARY_STIMULUS_ID, TEMPORARY_QUIZ_ENTRY_ID, REMOVE, MOVE, EDIT, COPY } from '@instructure/quiz-common';
|
|
19
|
-
import { mergeDeepOnlyMaps } from
|
|
20
|
-
import withStateCache from
|
|
33
|
+
import { mergeDeepOnlyMaps } from '../util/immutableHelpers';
|
|
34
|
+
import withStateCache from '../util/withStateCache';
|
|
21
35
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
22
36
|
var acceptedVerbs = [REMOVE, MOVE, EDIT, COPY];
|
|
23
37
|
export var QuizEntry = (_dec = withStateCache(function () {
|
|
24
38
|
return [['quizEntries'], ['modifications', 'quizEntries']];
|
|
25
39
|
}), _class = /*#__PURE__*/function (_ReduxRecord) {
|
|
26
|
-
_inherits(QuizEntry, _ReduxRecord);
|
|
27
|
-
var _super = _createSuper(QuizEntry);
|
|
28
40
|
function QuizEntry() {
|
|
29
|
-
var
|
|
41
|
+
var _this2;
|
|
30
42
|
_classCallCheck(this, QuizEntry);
|
|
31
43
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
44
|
args[_key] = arguments[_key];
|
|
33
45
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var childEntries =
|
|
37
|
-
return entry.get('stimulusQuizEntryId') ===
|
|
46
|
+
_this2 = _callSuper(this, QuizEntry, [].concat(args));
|
|
47
|
+
_defineProperty(_this2, "__getStimulusEntries", function () {
|
|
48
|
+
var childEntries = _this2.getState().get('quizEntries', Map()).filter(function (entry) {
|
|
49
|
+
return entry.get('stimulusQuizEntryId') === _this2.id;
|
|
38
50
|
});
|
|
39
|
-
var temporaryItem =
|
|
40
|
-
if (temporaryItem && temporaryItem.get('stimulusQuizEntryId') ===
|
|
51
|
+
var temporaryItem = _this2.getState().getIn(['modifications', 'quizEntries', TEMPORARY_QUIZ_ENTRY_ID]);
|
|
52
|
+
if (temporaryItem && temporaryItem.get('stimulusQuizEntryId') === _this2.id) {
|
|
41
53
|
childEntries = childEntries.set(temporaryItem.id, QuizEntry.create(temporaryItem));
|
|
42
54
|
}
|
|
43
55
|
var quizEntries = childEntries.map(function (entry) {
|
|
@@ -46,17 +58,18 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
46
58
|
return qe.position;
|
|
47
59
|
}).toList();
|
|
48
60
|
return quizEntries || List();
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(_this2, "__getBankEntryEntries", function () {
|
|
63
|
+
if (_this2.hasStimulus) {
|
|
64
|
+
return _this2.__getStimulusEntries();
|
|
53
65
|
} else {
|
|
54
|
-
return List([
|
|
66
|
+
return List([_this2]);
|
|
55
67
|
}
|
|
56
|
-
};
|
|
57
|
-
return
|
|
68
|
+
});
|
|
69
|
+
return _this2;
|
|
58
70
|
}
|
|
59
|
-
|
|
71
|
+
_inherits(QuizEntry, _ReduxRecord);
|
|
72
|
+
return _createClass(QuizEntry, [{
|
|
60
73
|
key: "getErrors",
|
|
61
74
|
value: function getErrors() {
|
|
62
75
|
return _get(_getPrototypeOf(QuizEntry.prototype), "getErrors", this).call(this, this).merge({
|
|
@@ -118,7 +131,7 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
118
131
|
}, {
|
|
119
132
|
key: "getEntry",
|
|
120
133
|
value: function getEntry() {
|
|
121
|
-
var
|
|
134
|
+
var _this3 = this;
|
|
122
135
|
var entry;
|
|
123
136
|
if (this.entry === TEMPORARY_ITEM_ID) {
|
|
124
137
|
entry = _Item.create(this.getState().getIn(['modifications', 'items', TEMPORARY_ITEM_ID]));
|
|
@@ -129,16 +142,16 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
129
142
|
var entryId = this.entryId || this.entry.get('id');
|
|
130
143
|
var entryCreator = {
|
|
131
144
|
Bank: function Bank() {
|
|
132
|
-
return _Bank.create(
|
|
145
|
+
return _Bank.create(_this3.getState().getIn(['banks', entryId]));
|
|
133
146
|
},
|
|
134
147
|
BankEntry: function BankEntry() {
|
|
135
|
-
return _BankEntry.create(
|
|
148
|
+
return _BankEntry.create(_this3.getState().getIn(['bankEntries', entryId]));
|
|
136
149
|
},
|
|
137
150
|
Item: function Item() {
|
|
138
|
-
return _Item.create(
|
|
151
|
+
return _Item.create(_this3.getState().getIn(['items', entryId]));
|
|
139
152
|
},
|
|
140
153
|
Stimulus: function Stimulus() {
|
|
141
|
-
return _Stimulus.create(
|
|
154
|
+
return _Stimulus.create(_this3.getState().getIn(['stimuli', entryId]));
|
|
142
155
|
}
|
|
143
156
|
};
|
|
144
157
|
if (!entryCreator[this.entryType]) return;
|
|
@@ -170,18 +183,19 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
170
183
|
}
|
|
171
184
|
}, {
|
|
172
185
|
key: "getNestedEntries",
|
|
186
|
+
value:
|
|
173
187
|
// This will currently trigger rerendering of all stimuli if any QuizEntry changes.
|
|
174
188
|
// Possibly the `withStateCache` decorator could be made more sophisticated to deal
|
|
175
189
|
// with this flaw.
|
|
176
|
-
|
|
177
|
-
var
|
|
190
|
+
function getNestedEntries() {
|
|
191
|
+
var _this4 = this;
|
|
178
192
|
var getNestedEntriesFunction = {
|
|
179
193
|
Bank: function Bank() {
|
|
180
|
-
return List([
|
|
194
|
+
return List([_this4]);
|
|
181
195
|
},
|
|
182
196
|
BankEntry: this.__getBankEntryEntries,
|
|
183
197
|
Item: function Item() {
|
|
184
|
-
return List([
|
|
198
|
+
return List([_this4]);
|
|
185
199
|
},
|
|
186
200
|
Stimulus: this.__getStimulusEntries
|
|
187
201
|
}[this.entryType];
|
|
@@ -234,7 +248,7 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
234
248
|
}, {
|
|
235
249
|
key: "hasModifications",
|
|
236
250
|
value: function hasModifications() {
|
|
237
|
-
return !Immutable.is(this.getWorkingInstance()
|
|
251
|
+
return !Immutable.is(this.getWorkingInstance()["delete"]('isWorkingInstance'), this["delete"]('isWorkingInstance'));
|
|
238
252
|
}
|
|
239
253
|
}, {
|
|
240
254
|
key: "getWorkingInstance",
|
|
@@ -242,85 +256,6 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
242
256
|
var data = this.mergeWith(mergeDeepOnlyMaps, this.getState().getIn(['modifications', 'quizEntries', this.id])).set('isWorkingInstance', true);
|
|
243
257
|
return QuizEntry.create(data);
|
|
244
258
|
}
|
|
245
|
-
}, {
|
|
246
|
-
key: "generateScreenReaderText",
|
|
247
|
-
value: function generateScreenReaderText() {
|
|
248
|
-
var displayPosition = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
|
|
249
|
-
var verb = arguments.length > 1 ? arguments[1] : void 0;
|
|
250
|
-
if (!acceptedVerbs.includes(verb)) {
|
|
251
|
-
console.error("".concat(verb, " not an accepted verb. Must be one of ").concat(acceptedVerbs));
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Due to possible translation nuances, the remove, edit, and move verbs are broken out into
|
|
255
|
-
// their own possible string so that translators can better translate the meaning
|
|
256
|
-
var type;
|
|
257
|
-
if (this.hasStimulus || this.isBank) {
|
|
258
|
-
type = this.hasStimulus ? t('Stimulus') : t('Bank');
|
|
259
|
-
if (this.numItems > 1) {
|
|
260
|
-
var opts = {
|
|
261
|
-
type: type,
|
|
262
|
-
start: displayPosition,
|
|
263
|
-
end: displayPosition + this.numItems - 1
|
|
264
|
-
};
|
|
265
|
-
return {
|
|
266
|
-
Remove: t('Remove {type} containing questions {start, number} through {end, number}.', opts),
|
|
267
|
-
Edit: t('Edit {type} containing questions {start, number} through {end, number}.', opts),
|
|
268
|
-
Move: t('Move {type} containing questions {start, number} through {end, number}.', opts)
|
|
269
|
-
}[verb];
|
|
270
|
-
} else if (this.numItems === 1) {
|
|
271
|
-
var _opts = {
|
|
272
|
-
type: type,
|
|
273
|
-
start: displayPosition
|
|
274
|
-
};
|
|
275
|
-
return {
|
|
276
|
-
Remove: t('Remove {type} containing question {start, number}.', _opts),
|
|
277
|
-
Edit: t('Edit {type} containing question {start, number}.', _opts),
|
|
278
|
-
Move: t('Move {type} containing question {start, number}.', _opts)
|
|
279
|
-
}[verb];
|
|
280
|
-
} else {
|
|
281
|
-
var _opts2 = {
|
|
282
|
-
type: type,
|
|
283
|
-
start: displayPosition - 1
|
|
284
|
-
};
|
|
285
|
-
return {
|
|
286
|
-
Remove: t('Remove empty {type} located after position {start, number}.', _opts2),
|
|
287
|
-
Edit: t('Edit empty {type} located after position {start, number}.', _opts2),
|
|
288
|
-
Move: t('Move empty {type} located after position {start, number}.', _opts2)
|
|
289
|
-
}[verb];
|
|
290
|
-
}
|
|
291
|
-
} else {
|
|
292
|
-
type = t('Question');
|
|
293
|
-
var _opts3 = {
|
|
294
|
-
verb: verb,
|
|
295
|
-
type: type,
|
|
296
|
-
position: displayPosition
|
|
297
|
-
};
|
|
298
|
-
return {
|
|
299
|
-
Remove: t('Remove {type} at position {position, number}.', _opts3),
|
|
300
|
-
Edit: t('Edit {type} at position {position, number}.', _opts3),
|
|
301
|
-
Move: t('Move {type} at position {position, number}.', _opts3),
|
|
302
|
-
Copy: t('Copy {type} at position {position, number}.', _opts3)
|
|
303
|
-
}[verb];
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}, {
|
|
307
|
-
key: "positionToDisplay",
|
|
308
|
-
value: function positionToDisplay(displayPosition) {
|
|
309
|
-
if (this.isBank && this.sizeOfBank > 1 && this.sampleNum !== 1) {
|
|
310
|
-
return t('{first, number} - {second, number}', {
|
|
311
|
-
first: displayPosition,
|
|
312
|
-
second: displayPosition + (this.sizeOfBank - 1) // subtract one for the initial slot
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
return t('{position, number}', {
|
|
316
|
-
position: displayPosition
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
}, {
|
|
320
|
-
key: "state",
|
|
321
|
-
value: function state() {
|
|
322
|
-
return this.getState();
|
|
323
|
-
}
|
|
324
259
|
}, {
|
|
325
260
|
key: "isArchivedBankEntry",
|
|
326
261
|
get: function get() {
|
|
@@ -418,6 +353,80 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
418
353
|
}
|
|
419
354
|
return this.displayPositionSlots > this.sizeOfBank ? this.displayPositionSlots : this.sizeOfBank;
|
|
420
355
|
}
|
|
356
|
+
}, {
|
|
357
|
+
key: "generateScreenReaderText",
|
|
358
|
+
value: function generateScreenReaderText() {
|
|
359
|
+
var displayPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
360
|
+
var verb = arguments.length > 1 ? arguments[1] : undefined;
|
|
361
|
+
if (!acceptedVerbs.includes(verb)) {
|
|
362
|
+
console.error("".concat(verb, " not an accepted verb. Must be one of ").concat(acceptedVerbs));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// Due to possible translation nuances, the remove, edit, and move verbs are broken out into
|
|
366
|
+
// their own possible string so that translators can better translate the meaning
|
|
367
|
+
var type;
|
|
368
|
+
if (this.hasStimulus || this.isBank) {
|
|
369
|
+
type = this.hasStimulus ? t('Stimulus') : t('Bank');
|
|
370
|
+
if (this.numItems > 1) {
|
|
371
|
+
var opts = {
|
|
372
|
+
type: type,
|
|
373
|
+
start: displayPosition,
|
|
374
|
+
end: displayPosition + this.numItems - 1
|
|
375
|
+
};
|
|
376
|
+
return {
|
|
377
|
+
Remove: t('Remove {type} containing questions {start, number} through {end, number}.', opts),
|
|
378
|
+
Edit: t('Edit {type} containing questions {start, number} through {end, number}.', opts),
|
|
379
|
+
Move: t('Move {type} containing questions {start, number} through {end, number}.', opts)
|
|
380
|
+
}[verb];
|
|
381
|
+
} else if (this.numItems === 1) {
|
|
382
|
+
var _opts = {
|
|
383
|
+
type: type,
|
|
384
|
+
start: displayPosition
|
|
385
|
+
};
|
|
386
|
+
return {
|
|
387
|
+
Remove: t('Remove {type} containing question {start, number}.', _opts),
|
|
388
|
+
Edit: t('Edit {type} containing question {start, number}.', _opts),
|
|
389
|
+
Move: t('Move {type} containing question {start, number}.', _opts)
|
|
390
|
+
}[verb];
|
|
391
|
+
} else {
|
|
392
|
+
var _opts2 = {
|
|
393
|
+
type: type,
|
|
394
|
+
start: displayPosition - 1
|
|
395
|
+
};
|
|
396
|
+
return {
|
|
397
|
+
Remove: t('Remove empty {type} located after position {start, number}.', _opts2),
|
|
398
|
+
Edit: t('Edit empty {type} located after position {start, number}.', _opts2),
|
|
399
|
+
Move: t('Move empty {type} located after position {start, number}.', _opts2)
|
|
400
|
+
}[verb];
|
|
401
|
+
}
|
|
402
|
+
} else {
|
|
403
|
+
type = t('Question');
|
|
404
|
+
var _opts3 = {
|
|
405
|
+
verb: verb,
|
|
406
|
+
type: type,
|
|
407
|
+
position: displayPosition
|
|
408
|
+
};
|
|
409
|
+
return {
|
|
410
|
+
Remove: t('Remove {type} at position {position, number}.', _opts3),
|
|
411
|
+
Edit: t('Edit {type} at position {position, number}.', _opts3),
|
|
412
|
+
Move: t('Move {type} at position {position, number}.', _opts3),
|
|
413
|
+
Copy: t('Copy {type} at position {position, number}.', _opts3)
|
|
414
|
+
}[verb];
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}, {
|
|
418
|
+
key: "positionToDisplay",
|
|
419
|
+
value: function positionToDisplay(displayPosition) {
|
|
420
|
+
if (this.isBank && this.sizeOfBank > 1 && this.sampleNum !== 1) {
|
|
421
|
+
return t('{first, number} - {second, number}', {
|
|
422
|
+
first: displayPosition,
|
|
423
|
+
second: displayPosition + (this.sizeOfBank - 1) // subtract one for the initial slot
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
return t('{position, number}', {
|
|
427
|
+
position: displayPosition
|
|
428
|
+
});
|
|
429
|
+
}
|
|
421
430
|
}, {
|
|
422
431
|
key: "sizeOfBank",
|
|
423
432
|
get: function get() {
|
|
@@ -445,8 +454,12 @@ export var QuizEntry = (_dec = withStateCache(function () {
|
|
|
445
454
|
}
|
|
446
455
|
return 1;
|
|
447
456
|
}
|
|
457
|
+
}, {
|
|
458
|
+
key: "state",
|
|
459
|
+
value: function state() {
|
|
460
|
+
return this.getState();
|
|
461
|
+
}
|
|
448
462
|
}]);
|
|
449
|
-
return QuizEntry;
|
|
450
463
|
}(ReduxRecord({
|
|
451
464
|
id: '0',
|
|
452
465
|
entryEditable: true,
|
|
@@ -1,33 +1,50 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
6
|
+
function _callSuper(_this, derived, args) {
|
|
7
|
+
function isNativeReflectConstruct() {
|
|
8
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9
|
+
if (Reflect.construct.sham) return false;
|
|
10
|
+
if (typeof Proxy === "function") return true;
|
|
11
|
+
try {
|
|
12
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
derived = _getPrototypeOf(derived);
|
|
18
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
19
|
+
}
|
|
5
20
|
import { List, Map } from 'immutable';
|
|
6
|
-
import ReduxRecord from
|
|
7
|
-
import QuizSessionEvent from
|
|
21
|
+
import ReduxRecord from './reduxRecord';
|
|
22
|
+
import QuizSessionEvent from './QuizSessionEvent';
|
|
8
23
|
import { AUTOGRADING, CREATING_RESPONSES, CREATING_SESSION_ITEMS, FAILED_TO_START, FAILURE, GRADED, IN_PROGRESS, REOPENING_GRADED, NEEDS_GRADING, PENDING, STARTING } from '@instructure/quiz-common';
|
|
9
|
-
import { getQuizById } from
|
|
10
|
-
import { getQuizSessionResultById, getQuizSessionResultsByIds } from
|
|
11
|
-
import { getResponsesByIds } from
|
|
12
|
-
import { getSessionItemsByIds } from
|
|
24
|
+
import { getQuizById } from '../selectors/quizzes';
|
|
25
|
+
import { getQuizSessionResultById, getQuizSessionResultsByIds } from '../selectors/quizSessionResults';
|
|
26
|
+
import { getResponsesByIds } from '../selectors/taking';
|
|
27
|
+
import { getSessionItemsByIds } from '../selectors/sessionItems';
|
|
13
28
|
export var QuizSession = /*#__PURE__*/function (_ReduxRecord) {
|
|
14
|
-
_inherits(QuizSession, _ReduxRecord);
|
|
15
|
-
var _super = _createSuper(QuizSession);
|
|
16
29
|
function QuizSession() {
|
|
17
30
|
_classCallCheck(this, QuizSession);
|
|
18
|
-
return
|
|
31
|
+
return _callSuper(this, QuizSession, arguments);
|
|
19
32
|
}
|
|
20
|
-
|
|
33
|
+
_inherits(QuizSession, _ReduxRecord);
|
|
34
|
+
return _createClass(QuizSession, [{
|
|
21
35
|
key: "isLoaded",
|
|
36
|
+
value:
|
|
22
37
|
// Helpers
|
|
23
|
-
|
|
38
|
+
function isLoaded() {
|
|
24
39
|
return this.id !== '0';
|
|
25
40
|
}
|
|
26
41
|
}, {
|
|
27
42
|
key: "isOneQuestionAtATime",
|
|
28
43
|
value: function isOneQuestionAtATime() {
|
|
29
44
|
return this.oneAtATimeType === 'question';
|
|
30
|
-
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Status helpers
|
|
31
48
|
}, {
|
|
32
49
|
key: "pending",
|
|
33
50
|
value: function pending() {
|
|
@@ -98,11 +115,18 @@ export var QuizSession = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
98
115
|
value: function pins() {
|
|
99
116
|
return this.takingData.get('pins') || List();
|
|
100
117
|
}
|
|
118
|
+
}, {
|
|
119
|
+
key: "hasTimeAllowed",
|
|
120
|
+
get: function get() {
|
|
121
|
+
return typeof this.timeAllowed() === 'number';
|
|
122
|
+
}
|
|
101
123
|
}, {
|
|
102
124
|
key: "timeAllowed",
|
|
103
125
|
value: function timeAllowed() {
|
|
104
126
|
return this.takingData.get('timeAllowed');
|
|
105
|
-
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Relationships
|
|
106
130
|
}, {
|
|
107
131
|
key: "getQuiz",
|
|
108
132
|
value: function getQuiz() {
|
|
@@ -149,13 +173,7 @@ export var QuizSession = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
149
173
|
}
|
|
150
174
|
return fullName || givenName || email || '';
|
|
151
175
|
}
|
|
152
|
-
}, {
|
|
153
|
-
key: "hasTimeAllowed",
|
|
154
|
-
get: function get() {
|
|
155
|
-
return typeof this.timeAllowed() === 'number';
|
|
156
|
-
}
|
|
157
176
|
}]);
|
|
158
|
-
return QuizSession;
|
|
159
177
|
}(ReduxRecord({
|
|
160
178
|
acceptedStudentAccessCode: false,
|
|
161
179
|
accountUuid: '',
|
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
function _callSuper(_this, derived, args) {
|
|
7
|
+
function isNativeReflectConstruct() {
|
|
8
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9
|
+
if (Reflect.construct.sham) return false;
|
|
10
|
+
if (typeof Proxy === "function") return true;
|
|
11
|
+
try {
|
|
12
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
derived = _getPrototypeOf(derived);
|
|
18
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
19
|
+
}
|
|
20
|
+
import ReduxRecord from './reduxRecord';
|
|
21
|
+
import { getSessionItemById } from '../selectors/sessionItems';
|
|
7
22
|
export var QuizSessionEvent = /*#__PURE__*/function (_ReduxRecord) {
|
|
8
|
-
_inherits(QuizSessionEvent, _ReduxRecord);
|
|
9
|
-
var _super = _createSuper(QuizSessionEvent);
|
|
10
23
|
function QuizSessionEvent() {
|
|
11
24
|
_classCallCheck(this, QuizSessionEvent);
|
|
12
|
-
return
|
|
25
|
+
return _callSuper(this, QuizSessionEvent, arguments);
|
|
13
26
|
}
|
|
14
|
-
|
|
27
|
+
_inherits(QuizSessionEvent, _ReduxRecord);
|
|
28
|
+
return _createClass(QuizSessionEvent, [{
|
|
15
29
|
key: "isLoaded",
|
|
16
30
|
value: function isLoaded() {
|
|
17
31
|
return !!this.get('createdAt');
|
|
@@ -34,7 +48,6 @@ export var QuizSessionEvent = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
34
48
|
return this.getSessionItem().getItem();
|
|
35
49
|
}
|
|
36
50
|
}]);
|
|
37
|
-
return QuizSessionEvent;
|
|
38
51
|
}(ReduxRecord({
|
|
39
52
|
createdAt: null,
|
|
40
53
|
eventType: null,
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
6
|
+
function _callSuper(_this, derived, args) {
|
|
7
|
+
function isNativeReflectConstruct() {
|
|
8
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9
|
+
if (Reflect.construct.sham) return false;
|
|
10
|
+
if (typeof Proxy === "function") return true;
|
|
11
|
+
try {
|
|
12
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
derived = _getPrototypeOf(derived);
|
|
18
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
19
|
+
}
|
|
5
20
|
import { is, List } from 'immutable';
|
|
6
|
-
import ReduxRecord from
|
|
21
|
+
import ReduxRecord from './reduxRecord';
|
|
7
22
|
import { QUIZ_SESSION_RESULT_FETCH_CALL } from '@instructure/quiz-common';
|
|
8
|
-
import { getSessionItemResultsByIds } from
|
|
23
|
+
import { getSessionItemResultsByIds } from '../selectors/sessionItemResults';
|
|
9
24
|
export var QuizSessionResult = /*#__PURE__*/function (_ReduxRecord) {
|
|
10
|
-
_inherits(QuizSessionResult, _ReduxRecord);
|
|
11
|
-
var _super = _createSuper(QuizSessionResult);
|
|
12
25
|
function QuizSessionResult() {
|
|
13
26
|
_classCallCheck(this, QuizSessionResult);
|
|
14
|
-
return
|
|
27
|
+
return _callSuper(this, QuizSessionResult, arguments);
|
|
15
28
|
}
|
|
16
|
-
|
|
29
|
+
_inherits(QuizSessionResult, _ReduxRecord);
|
|
30
|
+
return _createClass(QuizSessionResult, [{
|
|
17
31
|
key: "isGraded",
|
|
18
32
|
value: function isGraded() {
|
|
19
33
|
return this.status === 'graded' || this.autogradingFailed();
|
|
@@ -50,7 +64,6 @@ export var QuizSessionResult = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
50
64
|
return "".concat(QUIZ_SESSION_RESULT_FETCH_CALL, "_").concat(id);
|
|
51
65
|
}
|
|
52
66
|
}]);
|
|
53
|
-
return QuizSessionResult;
|
|
54
67
|
}(ReduxRecord({
|
|
55
68
|
createdAt: null,
|
|
56
69
|
fudgePoints: null,
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
function _callSuper(_this, derived, args) {
|
|
7
|
+
function isNativeReflectConstruct() {
|
|
8
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9
|
+
if (Reflect.construct.sham) return false;
|
|
10
|
+
if (typeof Proxy === "function") return true;
|
|
11
|
+
try {
|
|
12
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
derived = _getPrototypeOf(derived);
|
|
18
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
19
|
+
}
|
|
20
|
+
import ReduxRecord from './reduxRecord';
|
|
6
21
|
import { rule } from 'instructure-validations';
|
|
7
22
|
import { TAKE_CHAR_LIMIT } from '@instructure/quiz-common';
|
|
8
|
-
import { getSessionItemById } from
|
|
23
|
+
import { getSessionItemById } from '../selectors/sessionItems';
|
|
9
24
|
export var Response = /*#__PURE__*/function (_ReduxRecord) {
|
|
10
|
-
_inherits(Response, _ReduxRecord);
|
|
11
|
-
var _super = _createSuper(Response);
|
|
12
25
|
function Response() {
|
|
13
26
|
_classCallCheck(this, Response);
|
|
14
|
-
return
|
|
27
|
+
return _callSuper(this, Response, arguments);
|
|
15
28
|
}
|
|
16
|
-
|
|
29
|
+
_inherits(Response, _ReduxRecord);
|
|
30
|
+
return _createClass(Response, [{
|
|
17
31
|
key: "getItem",
|
|
18
32
|
value: function getItem() {
|
|
19
33
|
if (this.itemId) {
|
|
@@ -30,7 +44,6 @@ export var Response = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
30
44
|
};
|
|
31
45
|
}
|
|
32
46
|
}]);
|
|
33
|
-
return Response;
|
|
34
47
|
}(ReduxRecord({
|
|
35
48
|
attempt: null,
|
|
36
49
|
itemId: null,
|
|
@@ -1,20 +1,34 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
6
|
+
function _callSuper(_this, derived, args) {
|
|
7
|
+
function isNativeReflectConstruct() {
|
|
8
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9
|
+
if (Reflect.construct.sham) return false;
|
|
10
|
+
if (typeof Proxy === "function") return true;
|
|
11
|
+
try {
|
|
12
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
derived = _getPrototypeOf(derived);
|
|
18
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
19
|
+
}
|
|
5
20
|
import { List } from 'immutable';
|
|
6
|
-
import ReduxRecord from
|
|
7
|
-
import Item from
|
|
8
|
-
import Stimulus from
|
|
9
|
-
import SessionItemResult from
|
|
21
|
+
import ReduxRecord from './reduxRecord';
|
|
22
|
+
import Item from './Item';
|
|
23
|
+
import Stimulus from './Stimulus';
|
|
24
|
+
import SessionItemResult from './SessionItemResult';
|
|
10
25
|
export var SessionItem = /*#__PURE__*/function (_ReduxRecord) {
|
|
11
|
-
_inherits(SessionItem, _ReduxRecord);
|
|
12
|
-
var _super = _createSuper(SessionItem);
|
|
13
26
|
function SessionItem() {
|
|
14
27
|
_classCallCheck(this, SessionItem);
|
|
15
|
-
return
|
|
28
|
+
return _callSuper(this, SessionItem, arguments);
|
|
16
29
|
}
|
|
17
|
-
|
|
30
|
+
_inherits(SessionItem, _ReduxRecord);
|
|
31
|
+
return _createClass(SessionItem, [{
|
|
18
32
|
key: "getItem",
|
|
19
33
|
value: function getItem() {
|
|
20
34
|
if (this.item) {
|
|
@@ -32,17 +46,17 @@ export var SessionItem = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
32
46
|
}, {
|
|
33
47
|
key: "getNestedEntries",
|
|
34
48
|
value: function getNestedEntries() {
|
|
35
|
-
var
|
|
36
|
-
var fromState = arguments.length > 0 && arguments[0] !==
|
|
49
|
+
var _this2 = this;
|
|
50
|
+
var fromState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
37
51
|
if (this.stimulus) {
|
|
38
52
|
if (this.items && !fromState) {
|
|
39
53
|
return this.items;
|
|
40
54
|
}
|
|
41
55
|
var stimulusIdFilter = function stimulusIdFilter(si) {
|
|
42
|
-
return si.get('quizSessionId') ===
|
|
56
|
+
return si.get('quizSessionId') === _this2.quizSessionId && si.getIn(['stimulus', 'id']) === _this2.getIn(['stimulus', 'id']);
|
|
43
57
|
};
|
|
44
58
|
var stimulusKeyFilter = function stimulusKeyFilter(si) {
|
|
45
|
-
return si.get('quizSessionId') ===
|
|
59
|
+
return si.get('quizSessionId') === _this2.quizSessionId && si.get('stimulusKey') === _this2.stimulusKey;
|
|
46
60
|
};
|
|
47
61
|
|
|
48
62
|
// fallback to use the stimulus id when stimulusKey is not present
|
|
@@ -104,7 +118,6 @@ export var SessionItem = /*#__PURE__*/function (_ReduxRecord) {
|
|
|
104
118
|
return 1;
|
|
105
119
|
}
|
|
106
120
|
}]);
|
|
107
|
-
return SessionItem;
|
|
108
121
|
}(ReduxRecord({
|
|
109
122
|
id: null,
|
|
110
123
|
item: {},
|