@instructure/quiz-core 21.1.1 → 21.2.1
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 +19 -18
- package/es/banks/components/AddToBankModal/index.js +8 -8
- package/es/banks/components/AddToBankModal/presenter.js +35 -35
- package/es/banks/components/AsyncSearch/index.js +37 -35
- package/es/banks/components/Bank/index.js +12 -12
- package/es/banks/components/Bank/presenter.js +82 -86
- package/es/banks/components/Bank/styles.js +2 -1
- package/es/banks/components/BankEntriesList/index.js +3 -3
- package/es/banks/components/BankEntriesList/presenter.js +17 -16
- package/es/banks/components/BankEntry/index.js +14 -14
- package/es/banks/components/BankEntry/presenter.js +170 -178
- package/es/banks/components/BankEntry/styles.js +3 -1
- 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 +42 -42
- 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 +21 -20
- package/es/banks/components/Banks/index.js +7 -7
- package/es/banks/components/Banks/presenter.js +62 -61
- package/es/banks/components/BanksList/index.js +7 -7
- package/es/banks/components/BanksList/presenter.js +104 -111
- package/es/banks/components/CopyMoveBankEntryModal/index.js +8 -8
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +42 -43
- package/es/banks/components/CreateBankModal/index.js +10 -10
- package/es/banks/components/CreateBankModal/presenter.js +30 -29
- package/es/banks/components/EditBankModal/index.js +7 -7
- package/es/banks/components/EditBankModal/presenter.js +26 -25
- package/es/banks/components/HeaderBreadCrumb/index.js +14 -13
- package/es/banks/components/HeaderMenu/index.js +4 -4
- package/es/banks/components/HeaderMenu/presenter.js +17 -17
- package/es/banks/components/NavWrapper/index.js +2 -2
- package/es/banks/components/NavWrapper/presenter.js +21 -20
- package/es/banks/components/NavWrapper/styles.js +4 -2
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +16 -14
- package/es/banks/components/SharingModal/RootAccountSharing.js +20 -20
- package/es/banks/components/SharingModal/ShareList/index.js +23 -23
- package/es/banks/components/SharingModal/index.js +5 -5
- package/es/banks/components/SharingModal/presenter.js +92 -93
- 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 +22 -20
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -16
- package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -11
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +17 -16
- package/es/building/components/layout/Sidebar/index.js +12 -12
- package/es/building/components/layout/Sidebar/presenter.js +28 -27
- 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 +23 -23
- package/es/building/components/layout/header/BuildingButtons/styles.js +3 -1
- package/es/building/components/layout/header/BuildingButtons/theme.js +1 -1
- 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 +25 -24
- package/es/building/components/resources/ActionButtons/styles.js +2 -1
- package/es/building/components/resources/AddToBankOptions/index.js +42 -43
- package/es/building/components/resources/BanksTray/index.js +3 -3
- package/es/building/components/resources/BanksTray/presenter.js +25 -26
- package/es/building/components/resources/DeleteStimulusModal/index.js +5 -5
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +60 -38
- package/es/building/components/resources/ItemFeedbackModal/index.js +8 -8
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +22 -22
- package/es/building/components/resources/MoveImmutableModal/index.js +6 -6
- package/es/building/components/resources/MoveImmutableModal/presenter.js +16 -15
- package/es/building/components/resources/quiz/editButton/EditButton.js +17 -16
- package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +24 -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 +33 -28
- package/es/building/components/resources/quiz/instructions/Show/index.js +17 -16
- package/es/building/components/resources/quiz/title/Edit/index.js +27 -25
- package/es/building/components/resources/quiz/title/Edit/styles.js +3 -1
- package/es/building/components/resources/quiz/title/Show/index.js +17 -16
- 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 +34 -29
- package/es/building/components/resources/quiz/title/Title/styles.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -14
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +48 -46
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +7 -7
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +42 -43
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +15 -15
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +25 -24
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +126 -110
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -11
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +107 -110
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -8
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +29 -29
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -1
- 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 +13 -12
- 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 +20 -19
- package/es/common/components/ImportModal/ImportFileSelector/index.js +23 -24
- package/es/common/components/ImportModal/index.js +8 -8
- package/es/common/components/ImportModal/presenter.js +32 -30
- package/es/common/components/LearnosityCalculator/index.js +46 -47
- package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +1 -1
- package/es/common/components/MaskedTextInput/index.js +13 -11
- package/es/common/components/Pin/index.js +1 -1
- package/es/common/components/Pin/presenter.js +12 -11
- package/es/common/components/PreviewFrame/examples.config.js +1 -2
- package/es/common/components/PreviewFrame/index.js +13 -13
- package/es/common/components/PrintFontSizeModal/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +28 -25
- 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 +29 -29
- 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 +15 -14
- package/es/common/components/layout/Page/index.js +13 -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 +14 -14
- package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +15 -16
- package/es/common/components/layout/header/Timer/index.js +6 -6
- package/es/common/components/layout/header/Timer/presenter.js +27 -28
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +12 -11
- package/es/common/components/layout/navbar/index.js +31 -30
- package/es/common/components/layout/navbar/styles.js +4 -2
- package/es/common/components/layout/sidebar/PositionSummary/index.js +14 -12
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +12 -11
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +5 -7
- package/es/common/components/layout/sidebar/Sidebar/index.js +44 -44
- package/es/common/components/layout/sidebar/Sidebar/styles.js +7 -7
- package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -17
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +3 -1
- package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +24 -21
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +4 -2
- package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +21 -18
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +15 -12
- package/es/common/components/layout/sidebar/Stimulus/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +21 -21
- package/es/common/components/resources/BankSelection/index.js +5 -5
- package/es/common/components/resources/BankSelection/presenter.js +19 -18
- package/es/common/components/resources/WarningWrapper/index.js +16 -15
- package/es/common/components/resources/entry/EntrySave/index.js +6 -6
- package/es/common/components/resources/entry/EntrySave/presenter.js +78 -81
- package/es/common/components/resources/item/ItemEdit/index.js +14 -14
- package/es/common/components/resources/item/ItemEdit/presenter.js +24 -23
- package/es/common/components/resources/item/ItemOverride/index.js +9 -9
- package/es/common/components/resources/item/ItemOverride/presenter.js +18 -16
- package/es/common/components/resources/item/ItemShow/index.js +15 -14
- package/es/common/components/resources/positionBox/PositionBox.js +13 -12
- package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -7
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +25 -25
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Button/index.js +15 -14
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -1
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +3 -3
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +13 -12
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -5
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +28 -27
- package/es/common/components/resources/quiz/info/QuizInfo.js +14 -13
- package/es/common/components/resources/quiz/instructions/Instructions.js +16 -12
- package/es/common/components/resources/quiz/title/Title.js +16 -12
- package/es/common/components/resources/quizSessionResult/Header/index.js +15 -14
- package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +110 -107
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +13 -12
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +4 -5
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +1 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +64 -63
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +3 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +21 -20
- package/es/common/components/resources/stimulus/Stimulus/index.js +5 -5
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +22 -21
- package/es/common/components/resources/stimulus/Stimulus/styles.js +2 -1
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -10
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +128 -131
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +5 -5
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +27 -28
- package/es/common/components/resources/stimulus/StimulusShow/index.js +19 -19
- package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +10 -9
- package/es/common/components/shared/Card/CardContent/index.js +15 -13
- package/es/common/components/shared/Card/CardWrapper/index.js +15 -13
- package/es/common/components/shared/Card/index.js +4 -3
- package/es/common/components/shared/ExpandButton/index.js +12 -11
- package/es/common/components/shared/ExpandButton/styles.js +3 -1
- package/es/common/components/shared/FormattedDuration/index.js +18 -16
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +38 -37
- package/es/common/components/shared/IfFeature/index.js +3 -3
- package/es/common/components/shared/IfFeature/presenter.js +12 -11
- package/es/common/components/shared/InteractionTypes/index.js +3 -3
- package/es/common/components/shared/InteractionTypes/presenter.js +20 -19
- package/es/common/components/shared/PaginatedCollection/index.js +3 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +45 -46
- package/es/common/components/shared/Paginator/index.js +12 -11
- package/es/common/components/shared/PrintTrigger/index.js +6 -6
- package/es/common/components/shared/PrintTrigger/presenter.js +26 -25
- package/es/common/components/shared/TagDisplay/index.js +12 -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 +35 -33
- package/es/common/components/shared/TagSuggestSelect/index.js +4 -4
- package/es/common/components/shared/TagSuggestSelect/presenter.js +17 -16
- package/es/common/components/shared/TagWrapper/index.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +14 -13
- package/es/common/components/shared/TimeUnitsInput/index.js +30 -29
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +15 -14
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +3 -1
- package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +32 -35
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +4 -4
- package/es/common/components/shared/errors/Errors.js +15 -14
- package/es/common/components/shared/file_selector/FileSelector.js +14 -14
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +21 -15
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +10 -11
- package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -2
- package/es/common/components/shared/functionality/makeEditable.js +26 -19
- package/es/common/components/shared/functionality/makeScrollable.js +30 -29
- package/es/common/components/shared/overlay/index.js +13 -12
- package/es/common/components/shared/return_button/ReturnButton.js +14 -12
- package/es/common/components/shared/spinner/Spinner.js +13 -11
- 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 +8 -5
- package/es/common/records/Bank.js +10 -8
- package/es/common/records/BankEntry.js +10 -9
- package/es/common/records/Item.js +17 -14
- package/es/common/records/ItemAnalysis.js +9 -8
- package/es/common/records/QtiImport.js +8 -7
- package/es/common/records/Quiz.js +17 -14
- package/es/common/records/QuizAnalysis.js +8 -7
- package/es/common/records/QuizEntry.js +105 -103
- package/es/common/records/QuizSession.js +26 -20
- package/es/common/records/QuizSessionEvent.js +9 -8
- package/es/common/records/QuizSessionResult.js +9 -8
- package/es/common/records/Response.js +9 -8
- package/es/common/records/SessionItem.js +12 -11
- package/es/common/records/SessionItemResult.js +9 -8
- package/es/common/records/Stimulus.js +18 -12
- package/es/common/records/baseRecord.js +17 -12
- package/es/common/records/index.js +16 -16
- package/es/common/records/reduxRecord.js +12 -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 +53 -49
- package/es/common/util/Fetcher.js +128 -141
- package/es/common/util/MultiWeakMap.js +1 -2
- package/es/common/util/PaginatedFetcher.js +22 -22
- 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 +51 -52
- 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 +8 -5
- 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 +25 -26
- package/es/moderating/components/events/PageBlurredEvent.js +7 -7
- package/es/moderating/components/events/PageFocusedEvent.js +7 -7
- package/es/moderating/components/events/RCEEvent.js +10 -9
- package/es/moderating/components/events/ResponseEvent.js +20 -19
- package/es/moderating/components/events/SessionStartEvent.js +12 -11
- package/es/moderating/components/events/SessionSubmitEvent.js +12 -11
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +19 -18
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +23 -22
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +19 -18
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +23 -21
- package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +18 -16
- package/es/moderating/components/resources/AccommodationsModal/index.js +26 -25
- package/es/moderating/components/resources/ElapsedTime.js +14 -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 +54 -53
- package/es/moderating/components/resources/ModerateTable/styles.js +3 -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 +29 -27
- 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 +29 -26
- 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 +44 -43
- package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -7
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +27 -28
- 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 +13 -12
- package/es/reporting/components/MetricsListItem/index.js +14 -12
- package/es/reporting/components/charts/CentileDistribution/presenter.js +22 -21
- package/es/reporting/components/charts/Distribution/presenter.js +21 -20
- package/es/reporting/components/charts/Legend/index.js +15 -13
- package/es/reporting/components/charts/Legend/styles.js +3 -1
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +22 -21
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +15 -16
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -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 +25 -25
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +22 -23
- 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 +13 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +14 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +17 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +18 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +25 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +22 -17
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +18 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +33 -33
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +24 -19
- 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 +19 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +50 -46
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +37 -33
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +22 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +19 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +18 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +24 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +19 -17
- 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 +18 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +45 -45
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +49 -47
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +25 -21
- 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 +24 -23
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +12 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +48 -47
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +29 -28
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +41 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +19 -18
- 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 +69 -68
- 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 +13 -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 +21 -21
- package/es/reporting/components/resources/ReportCard/index.js +14 -13
- package/es/reporting/components/resources/ReportList/index.js +13 -12
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +40 -39
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -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 +15 -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 +43 -43
- package/lib/banks/components/AddToBankModal/index.js +12 -12
- package/lib/banks/components/AddToBankModal/presenter.js +77 -78
- package/lib/banks/components/AsyncSearch/index.js +91 -90
- package/lib/banks/components/Bank/index.js +18 -19
- package/lib/banks/components/Bank/presenter.js +147 -152
- package/lib/banks/components/Bank/styles.js +7 -7
- package/lib/banks/components/Bank/theme.js +2 -3
- package/lib/banks/components/BankEntriesList/index.js +6 -7
- package/lib/banks/components/BankEntriesList/presenter.js +29 -30
- 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 +257 -267
- package/lib/banks/components/BankEntry/styles.js +7 -6
- package/lib/banks/components/BankEntry/theme.js +2 -3
- 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 +101 -102
- package/lib/banks/components/BankEntryRow/styles.js +2 -3
- package/lib/banks/components/BankEntryRow/theme.js +2 -3
- 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 +55 -56
- 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 +154 -154
- package/lib/banks/components/Banks/styles.js +2 -3
- package/lib/banks/components/Banks/theme.js +2 -3
- package/lib/banks/components/BanksList/index.js +11 -12
- package/lib/banks/components/BanksList/presenter.js +171 -179
- package/lib/banks/components/BanksList/styles.js +2 -3
- package/lib/banks/components/BanksList/theme.js +2 -3
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +12 -12
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +89 -91
- package/lib/banks/components/CreateBankModal/index.js +15 -15
- package/lib/banks/components/CreateBankModal/presenter.js +64 -64
- package/lib/banks/components/EditBankModal/index.js +11 -11
- package/lib/banks/components/EditBankModal/presenter.js +50 -50
- package/lib/banks/components/HeaderBreadCrumb/index.js +37 -37
- package/lib/banks/components/HeaderMenu/index.js +9 -9
- package/lib/banks/components/HeaderMenu/presenter.js +32 -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 +47 -47
- package/lib/banks/components/NavWrapper/styles.js +7 -6
- package/lib/banks/components/NavWrapper/theme.js +2 -3
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +22 -20
- package/lib/banks/components/SharingModal/RootAccountSharing.js +41 -42
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +3 -4
- package/lib/banks/components/SharingModal/ShareList/index.js +43 -45
- 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 +158 -160
- package/lib/banks/components/SharingModal/styles.js +2 -3
- package/lib/banks/components/SharingModal/theme.js +2 -3
- 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 +32 -31
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +18 -22
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +42 -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 +42 -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 +48 -49
- 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 +64 -66
- package/lib/building/components/layout/header/BuildingButtons/styles.js +6 -5
- package/lib/building/components/layout/header/BuildingButtons/theme.js +3 -4
- 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 +50 -51
- package/lib/building/components/resources/ActionButtons/styles.js +6 -6
- package/lib/building/components/resources/ActionButtons/theme.js +2 -3
- package/lib/building/components/resources/AddToBankOptions/index.js +56 -59
- package/lib/building/components/resources/AddToBankOptions/styles.js +2 -3
- package/lib/building/components/resources/AddToBankOptions/theme.js +2 -3
- package/lib/building/components/resources/BanksTray/index.js +6 -8
- package/lib/building/components/resources/BanksTray/presenter.js +77 -79
- package/lib/building/components/resources/DeleteStimulusModal/index.js +8 -10
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +92 -70
- 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 +41 -43
- 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 +43 -43
- package/lib/building/components/resources/quiz/editButton/EditButton.js +26 -25
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -5
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +32 -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 +55 -52
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +3 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
- package/lib/building/components/resources/quiz/instructions/Show/index.js +27 -28
- 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 +48 -48
- package/lib/building/components/resources/quiz/title/Edit/styles.js +6 -5
- package/lib/building/components/resources/quiz/title/Edit/theme.js +2 -3
- package/lib/building/components/resources/quiz/title/Show/index.js +26 -27
- 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 +63 -60
- package/lib/building/components/resources/quiz/title/Title/styles.js +5 -5
- package/lib/building/components/resources/quiz/title/Title/theme.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +18 -21
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +113 -113
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +12 -13
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +4 -5
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +7 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +74 -77
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +25 -27
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -6
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +55 -56
- 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 +173 -158
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +15 -15
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +180 -185
- 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 +81 -84
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +6 -6
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +2 -3
- 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 +22 -22
- 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 +47 -47
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +33 -36
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +2 -3
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
- package/lib/common/components/ImportModal/index.js +13 -15
- package/lib/common/components/ImportModal/presenter.js +74 -74
- 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 +70 -72
- package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +8 -11
- package/lib/common/components/MaskedTextInput/index.js +26 -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 +24 -24
- package/lib/common/components/PreviewFrame/examples.config.js +4 -6
- package/lib/common/components/PreviewFrame/index.js +25 -26
- package/lib/common/components/PrintFontSizeModal/index.js +3 -4
- package/lib/common/components/PrintFontSizeModal/presenter.js +48 -47
- package/lib/common/components/PrintFontSizeModal/styles.js +2 -3
- package/lib/common/components/PrintFontSizeModal/theme.js +2 -3
- 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 +64 -67
- 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 +25 -26
- 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 +27 -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 +35 -36
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -12
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +25 -28
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +3 -4
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
- package/lib/common/components/layout/header/Timer/index.js +8 -9
- package/lib/common/components/layout/header/Timer/presenter.js +58 -60
- package/lib/common/components/layout/header/Timer/styles.js +2 -3
- package/lib/common/components/layout/header/Timer/theme.js +2 -3
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +18 -19
- package/lib/common/components/layout/navbar/externalStyles.js +2 -3
- package/lib/common/components/layout/navbar/index.js +51 -52
- package/lib/common/components/layout/navbar/styles.js +7 -6
- package/lib/common/components/layout/navbar/theme.js +2 -3
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +25 -25
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +2 -3
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -3
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +23 -23
- 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 +83 -85
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +17 -18
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +2 -3
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -15
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +45 -42
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -6
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -7
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +41 -40
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +11 -10
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -7
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +37 -36
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +21 -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 +44 -47
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +2 -3
- 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 +34 -34
- package/lib/common/components/resources/WarningWrapper/index.js +33 -34
- package/lib/common/components/resources/WarningWrapper/styles.js +2 -3
- package/lib/common/components/resources/WarningWrapper/theme.js +2 -3
- package/lib/common/components/resources/entry/EntrySave/index.js +8 -9
- package/lib/common/components/resources/entry/EntrySave/presenter.js +111 -115
- package/lib/common/components/resources/item/ItemEdit/index.js +19 -19
- package/lib/common/components/resources/item/ItemEdit/presenter.js +78 -78
- package/lib/common/components/resources/item/ItemOverride/index.js +13 -13
- package/lib/common/components/resources/item/ItemOverride/presenter.js +44 -43
- package/lib/common/components/resources/item/ItemShow/index.js +25 -24
- package/lib/common/components/resources/positionBox/PositionBox.js +21 -22
- package/lib/common/components/resources/positionBox/styles.js +3 -4
- package/lib/common/components/resources/positionBox/theme.js +2 -3
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -10
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +52 -54
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -8
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +2 -3
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +28 -29
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +7 -7
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +2 -3
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +6 -8
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +35 -35
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +8 -10
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +49 -50
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +2 -3
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -3
- package/lib/common/components/resources/quiz/info/QuizInfo.js +23 -23
- package/lib/common/components/resources/quiz/instructions/Instructions.js +19 -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 +19 -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 +25 -26
- 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 +133 -132
- 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 +22 -23
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +15 -17
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +3 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -9
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +98 -99
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +6 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +2 -3
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +33 -34
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +2 -3
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +2 -3
- package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -8
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +64 -65
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +9 -9
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +14 -14
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +194 -199
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +9 -9
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +52 -55
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +40 -42
- 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 +26 -25
- package/lib/common/components/shared/Card/CardContent/index.js +24 -24
- package/lib/common/components/shared/Card/CardContent/styles.js +3 -4
- package/lib/common/components/shared/Card/CardContent/theme.js +2 -3
- package/lib/common/components/shared/Card/CardWrapper/index.js +23 -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 +21 -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 +36 -37
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +63 -63
- package/lib/common/components/shared/IfFeature/index.js +6 -8
- package/lib/common/components/shared/IfFeature/presenter.js +18 -19
- package/lib/common/components/shared/InteractionTypes/index.js +5 -6
- package/lib/common/components/shared/InteractionTypes/presenter.js +37 -38
- package/lib/common/components/shared/InteractionTypes/styles.js +2 -3
- package/lib/common/components/shared/InteractionTypes/theme.js +2 -3
- package/lib/common/components/shared/PaginatedCollection/index.js +6 -7
- package/lib/common/components/shared/PaginatedCollection/presenter.js +62 -66
- package/lib/common/components/shared/PaginatedCollection/styles.js +2 -3
- package/lib/common/components/shared/PaginatedCollection/theme.js +2 -3
- package/lib/common/components/shared/Paginator/index.js +23 -24
- 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 +51 -51
- package/lib/common/components/shared/TagDisplay/index.js +22 -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 +60 -59
- package/lib/common/components/shared/TagSuggestSelect/index.js +6 -7
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +41 -41
- package/lib/common/components/shared/TagWrapper/index.js +3 -4
- package/lib/common/components/shared/TagWrapper/presenter.js +28 -28
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -4
- package/lib/common/components/shared/TimeUnitsInput/index.js +72 -72
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +29 -30
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -6
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +12 -14
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +63 -67
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -24
- package/lib/common/components/shared/errors/Errors.js +21 -22
- package/lib/common/components/shared/errors/styles.js +2 -3
- package/lib/common/components/shared/errors/theme.js +2 -3
- package/lib/common/components/shared/file_selector/FileSelector.js +24 -26
- package/lib/common/components/shared/file_selector/styles.js +2 -3
- package/lib/common/components/shared/file_selector/theme.js +2 -3
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +21 -22
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +18 -20
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +5 -6
- package/lib/common/components/shared/functionality/makeEditable.js +35 -35
- package/lib/common/components/shared/functionality/makeScrollable.js +40 -41
- package/lib/common/components/shared/overlay/index.js +27 -26
- package/lib/common/components/shared/overlay/styles.js +3 -4
- package/lib/common/components/shared/overlay/theme.js +2 -3
- package/lib/common/components/shared/return_button/ReturnButton.js +27 -26
- package/lib/common/components/shared/spinner/Spinner.js +25 -25
- 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 +12 -11
- package/lib/common/records/Bank.js +16 -16
- package/lib/common/records/BankEntry.js +19 -20
- package/lib/common/records/Item.js +25 -24
- package/lib/common/records/ItemAnalysis.js +14 -15
- package/lib/common/records/QtiImport.js +13 -14
- package/lib/common/records/Quiz.js +29 -28
- package/lib/common/records/QuizAnalysis.js +16 -17
- package/lib/common/records/QuizEntry.js +125 -124
- package/lib/common/records/QuizSession.js +32 -28
- package/lib/common/records/QuizSessionEvent.js +14 -15
- package/lib/common/records/QuizSessionResult.js +14 -15
- package/lib/common/records/Response.js +14 -15
- package/lib/common/records/SessionItem.js +21 -22
- package/lib/common/records/SessionItemResult.js +14 -15
- package/lib/common/records/Stimulus.js +25 -21
- package/lib/common/records/baseRecord.js +22 -18
- package/lib/common/records/index.js +34 -34
- package/lib/common/records/reduxRecord.js +16 -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 +57 -56
- package/lib/common/util/Fetcher.js +151 -166
- package/lib/common/util/MultiWeakMap.js +5 -7
- package/lib/common/util/PaginatedFetcher.js +30 -32
- 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 +55 -57
- 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 +12 -10
- 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 +40 -42
- package/lib/moderating/components/events/PageBlurredEvent.js +14 -15
- package/lib/moderating/components/events/PageFocusedEvent.js +14 -15
- package/lib/moderating/components/events/RCEEvent.js +18 -18
- package/lib/moderating/components/events/ResponseEvent.js +31 -31
- package/lib/moderating/components/events/SessionStartEvent.js +22 -22
- package/lib/moderating/components/events/SessionSubmitEvent.js +22 -22
- package/lib/moderating/components/events/styles.js +2 -3
- package/lib/moderating/components/events/theme.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +38 -37
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +35 -35
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +36 -35
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -4
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +57 -56
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +33 -32
- package/lib/moderating/components/resources/AccommodationsModal/index.js +52 -52
- package/lib/moderating/components/resources/ElapsedTime.js +27 -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 +125 -126
- package/lib/moderating/components/resources/ModerateTable/styles.js +6 -5
- package/lib/moderating/components/resources/ModerateTable/theme.js +2 -3
- 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 +71 -71
- 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 +58 -56
- 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 +77 -77
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +10 -11
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +52 -54
- 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 +20 -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 +21 -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 +33 -34
- 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 +30 -32
- package/lib/reporting/components/charts/Distribution/styles.js +2 -3
- package/lib/reporting/components/charts/Distribution/theme.js +2 -3
- package/lib/reporting/components/charts/Legend/index.js +26 -26
- package/lib/reporting/components/charts/Legend/styles.js +6 -5
- package/lib/reporting/components/charts/Legend/theme.js +2 -3
- 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 +31 -32
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +5 -6
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +30 -33
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -11
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +2 -3
- 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 +74 -75
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +4 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +2 -3
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +50 -52
- 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 +20 -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 +26 -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 +24 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +26 -22
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +36 -37
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +9 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +32 -32
- 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 +35 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +27 -23
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +44 -45
- 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 +36 -31
- 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 +37 -33
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +82 -79
- 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 +56 -53
- 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 +30 -26
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +31 -32
- 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 +30 -27
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +45 -41
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +28 -26
- 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 +26 -23
- 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 +53 -54
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +62 -61
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +6 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +33 -30
- 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 +33 -33
- 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 +16 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +2 -3
- 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 +71 -71
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +2 -3
- 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 +53 -53
- 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 +69 -69
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +7 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +33 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
- 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 +95 -95
- 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 +28 -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 +70 -72
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +2 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
- package/lib/reporting/components/resources/ReportCard/index.js +24 -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 +22 -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 +66 -65
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +6 -6
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +2 -3
- 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 +26 -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 +8 -9
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
exports
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
7
|
+
exports["default"] = exports.SharingModalPresenter = void 0;
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
14
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
-
var
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
19
|
var _immutable = require("immutable");
|
|
@@ -28,29 +27,32 @@ var _uiGrid = require("@instructure/ui-grid");
|
|
|
28
27
|
var _uiTabs = require("@instructure/ui-tabs");
|
|
29
28
|
var _uiText = require("@instructure/ui-text");
|
|
30
29
|
var _emotion = require("@instructure/emotion");
|
|
31
|
-
var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var _RootAccountSharing = _interopRequireDefault(require("./RootAccountSharing
|
|
35
|
-
var _Spinner = _interopRequireDefault(require("../../../common/components/shared/spinner/Spinner
|
|
36
|
-
var _styles = _interopRequireDefault(require("./styles
|
|
37
|
-
var _theme = _interopRequireDefault(require("./theme
|
|
30
|
+
var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes"));
|
|
31
|
+
var _ShareList = _interopRequireDefault(require("./ShareList"));
|
|
32
|
+
var _AsyncSearch = _interopRequireDefault(require("../AsyncSearch"));
|
|
33
|
+
var _RootAccountSharing = _interopRequireDefault(require("./RootAccountSharing"));
|
|
34
|
+
var _Spinner = _interopRequireDefault(require("../../../common/components/shared/spinner/Spinner"));
|
|
35
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
36
|
+
var _theme = _interopRequireDefault(require("./theme"));
|
|
38
37
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
39
38
|
var _dec, _class, _SharingModalPresenter;
|
|
40
39
|
/** @jsx jsx */
|
|
40
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
41
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
42
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
44
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
45
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
41
46
|
var noop = function noop() {};
|
|
42
|
-
var
|
|
43
|
-
var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme.default), _dec(_class = (_SharingModalPresenter = /*#__PURE__*/function (_Component) {
|
|
44
|
-
(0, _inherits2.default)(SharingModalPresenter, _Component);
|
|
45
|
-
var _super = (0, _createSuper2.default)(SharingModalPresenter);
|
|
47
|
+
var SharingModalPresenter = exports.SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_SharingModalPresenter = /*#__PURE__*/function (_Component) {
|
|
46
48
|
function SharingModalPresenter() {
|
|
47
49
|
var _this;
|
|
48
|
-
(0, _classCallCheck2
|
|
50
|
+
(0, _classCallCheck2["default"])(this, SharingModalPresenter);
|
|
49
51
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50
52
|
args[_key] = arguments[_key];
|
|
51
53
|
}
|
|
52
|
-
_this =
|
|
53
|
-
_this
|
|
54
|
+
_this = _callSuper(this, SharingModalPresenter, [].concat(args));
|
|
55
|
+
(0, _defineProperty2["default"])(_this, "state", {
|
|
54
56
|
accountPermission: null,
|
|
55
57
|
shares: (0, _immutable.List)(),
|
|
56
58
|
newEntities: (0, _immutable.List)(),
|
|
@@ -58,13 +60,13 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
58
60
|
searchPermission: _quizCommon.READ_ONLY,
|
|
59
61
|
entitiesWithChangedPermission: {},
|
|
60
62
|
selectedTabIndex: 0
|
|
61
|
-
};
|
|
62
|
-
_this
|
|
63
|
-
_this
|
|
63
|
+
});
|
|
64
|
+
(0, _defineProperty2["default"])(_this, "shareListRef", null);
|
|
65
|
+
(0, _defineProperty2["default"])(_this, "shareButtonRef", null);
|
|
64
66
|
// =============
|
|
65
67
|
// LIFECYCLE
|
|
66
68
|
// =============
|
|
67
|
-
_this
|
|
69
|
+
(0, _defineProperty2["default"])(_this, "checkForSharedBanks", function () {
|
|
68
70
|
var size = _this.props.sharedBanks.size;
|
|
69
71
|
if (size >= 0 && size !== _this.props.bank.sharedCount || size === 0) {
|
|
70
72
|
_this.props.getSharedBanks(_this.props.bank, _this.props.getUserInfo, _this.props.getCourseInfo, _this.props.getSubaccountInfo);
|
|
@@ -73,18 +75,18 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
73
75
|
shares: _this.props.sharedBanks
|
|
74
76
|
});
|
|
75
77
|
}
|
|
76
|
-
};
|
|
78
|
+
});
|
|
77
79
|
// =============
|
|
78
80
|
// HELPERS
|
|
79
81
|
// =============
|
|
80
|
-
_this
|
|
82
|
+
(0, _defineProperty2["default"])(_this, "handleTabChange", function (event, _ref) {
|
|
81
83
|
var index = _ref.index;
|
|
82
84
|
_this.setState({
|
|
83
85
|
selectedTabIndex: index
|
|
84
86
|
});
|
|
85
|
-
};
|
|
86
|
-
_this
|
|
87
|
-
var focusCreateBank = arguments.length > 0 && arguments[0] !==
|
|
87
|
+
});
|
|
88
|
+
(0, _defineProperty2["default"])(_this, "modalDismissCleanup", function () {
|
|
89
|
+
var focusCreateBank = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
88
90
|
_this.props.onDismiss();
|
|
89
91
|
if (_this.props.modalTrigger && !focusCreateBank) {
|
|
90
92
|
_this.props.modalTrigger.focus();
|
|
@@ -93,14 +95,14 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
93
95
|
}
|
|
94
96
|
// removes the creator's temporary sharedBank record
|
|
95
97
|
_this.props.removeSharedBank('-1');
|
|
96
|
-
};
|
|
97
|
-
_this
|
|
98
|
+
});
|
|
99
|
+
(0, _defineProperty2["default"])(_this, "numEntitiesToRemove", function () {
|
|
98
100
|
var permissions = Object.values(_this.state.entitiesWithChangedPermission);
|
|
99
101
|
return permissions.reduce(function (count, val) {
|
|
100
102
|
return val === _quizCommon.REMOVED_ACCESS ? count + 1 : count;
|
|
101
103
|
}, 0);
|
|
102
|
-
};
|
|
103
|
-
_this
|
|
104
|
+
});
|
|
105
|
+
(0, _defineProperty2["default"])(_this, "newEntitiesToSubmit", function () {
|
|
104
106
|
var newEntities = _this.state.newEntities.filter(function (entity) {
|
|
105
107
|
return _this.state.entitiesWithChangedPermission[entity.get('id')] !== _quizCommon.REMOVED_ACCESS;
|
|
106
108
|
});
|
|
@@ -112,24 +114,24 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
112
114
|
var creatorSharedBank = _this.props.sharedBanks.find(function (sharedBank) {
|
|
113
115
|
return sharedBank.get('id') == '-1';
|
|
114
116
|
});
|
|
115
|
-
newEntities = newEntities.push((0, _immutable.Map)((
|
|
117
|
+
newEntities = newEntities.push((0, _immutable.Map)(_objectSpread(_objectSpread({}, creatorSharedBank.toJS()), {}, {
|
|
116
118
|
permission: newCreatorPerm
|
|
117
119
|
})));
|
|
118
120
|
}
|
|
119
121
|
return newEntities;
|
|
120
|
-
};
|
|
121
|
-
_this
|
|
122
|
-
var state = arguments.length > 0 && arguments[0] !==
|
|
122
|
+
});
|
|
123
|
+
(0, _defineProperty2["default"])(_this, "isSharedWithAccount", function () {
|
|
124
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.state;
|
|
123
125
|
return [_quizCommon.READ_ONLY, _quizCommon.CAN_EDIT].includes(state.accountPermission);
|
|
124
|
-
};
|
|
126
|
+
});
|
|
125
127
|
// =============
|
|
126
128
|
// HANDLERS
|
|
127
129
|
// =============
|
|
128
|
-
_this
|
|
130
|
+
(0, _defineProperty2["default"])(_this, "handleDismiss", function (e) {
|
|
129
131
|
_this.props.updateSharedCount(null);
|
|
130
132
|
_this.modalDismissCleanup();
|
|
131
|
-
};
|
|
132
|
-
_this
|
|
133
|
+
});
|
|
134
|
+
(0, _defineProperty2["default"])(_this, "handleSubmit", function () {
|
|
133
135
|
// calls the sharedBank api with the new entities you shared the current bank with
|
|
134
136
|
var promises = [];
|
|
135
137
|
if (_this.state.accountPermission !== _this.props.bank.accountPermission) {
|
|
@@ -143,7 +145,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
143
145
|
|
|
144
146
|
// call the update api if any shared bank permission was updated
|
|
145
147
|
Object.entries(_this.state.entitiesWithChangedPermission).forEach(function (_ref2) {
|
|
146
|
-
var _ref3 = (0, _slicedToArray2
|
|
148
|
+
var _ref3 = (0, _slicedToArray2["default"])(_ref2, 2),
|
|
147
149
|
sharedBankId = _ref3[0],
|
|
148
150
|
permission = _ref3[1];
|
|
149
151
|
var sharedBank = _this.props.sharedBanks.find(function (sharedBank) {
|
|
@@ -163,39 +165,39 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
163
165
|
newEntities: (0, _immutable.List)()
|
|
164
166
|
});
|
|
165
167
|
_this.modalDismissCleanup(!!_this.numEntitiesToRemove());
|
|
166
|
-
};
|
|
167
|
-
_this
|
|
168
|
+
});
|
|
169
|
+
(0, _defineProperty2["default"])(_this, "handleSearchSelectionChange", function (searchSelection) {
|
|
168
170
|
_this.setState({
|
|
169
171
|
searchSelection: searchSelection
|
|
170
172
|
});
|
|
171
|
-
};
|
|
172
|
-
_this
|
|
173
|
+
});
|
|
174
|
+
(0, _defineProperty2["default"])(_this, "updateEntitiesCount", function () {
|
|
173
175
|
// state.shares is a list containing everyone in the list,
|
|
174
176
|
_this.props.updateSharedCount(_this.state.shares.size - _this.numEntitiesToRemove());
|
|
175
|
-
};
|
|
176
|
-
_this
|
|
177
|
+
});
|
|
178
|
+
(0, _defineProperty2["default"])(_this, "originalPermissionForEntity", function (entity) {
|
|
177
179
|
var originalEntity = _this.props.sharedBanks.find(function (sb) {
|
|
178
180
|
return sb.get('id') == entity.get('id');
|
|
179
181
|
}) || (0, _immutable.Map)();
|
|
180
182
|
return originalEntity.get('permission', _quizCommon.CAN_EDIT);
|
|
181
|
-
};
|
|
182
|
-
_this
|
|
183
|
+
});
|
|
184
|
+
(0, _defineProperty2["default"])(_this, "handleEntityRemove", function (entity, undoRemove) {
|
|
183
185
|
_this.confirmPermissionChange(entity, _quizCommon.REMOVED_ACCESS);
|
|
184
|
-
};
|
|
185
|
-
_this
|
|
186
|
+
});
|
|
187
|
+
(0, _defineProperty2["default"])(_this, "handleSearchPermissionChange", function (e, _ref4) {
|
|
186
188
|
var value = _ref4.value;
|
|
187
189
|
_this.setState({
|
|
188
190
|
searchPermission: value
|
|
189
191
|
});
|
|
190
|
-
};
|
|
191
|
-
_this
|
|
192
|
+
});
|
|
193
|
+
(0, _defineProperty2["default"])(_this, "handleSearchFilter", function (searchResults) {
|
|
192
194
|
return searchResults.filter(function (result) {
|
|
193
195
|
return !_this.state.shares.some(function (entity) {
|
|
194
196
|
return entity.get('entityId') === result.uuid;
|
|
195
197
|
}) && (result.uuid !== _this.props.bank.creator || _this.props.bank.sharedCount > 0);
|
|
196
198
|
});
|
|
197
|
-
};
|
|
198
|
-
_this
|
|
199
|
+
});
|
|
200
|
+
(0, _defineProperty2["default"])(_this, "handleShare", function () {
|
|
199
201
|
var newEntities = (0, _immutable.List)(_this.state.searchSelection.map(function (entity) {
|
|
200
202
|
return (0, _immutable.Map)({
|
|
201
203
|
id: entity.uuid,
|
|
@@ -214,77 +216,74 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
214
216
|
_this.setState({
|
|
215
217
|
searchSelection: []
|
|
216
218
|
});
|
|
217
|
-
};
|
|
218
|
-
_this
|
|
219
|
-
var _ref5 = (0, _asyncToGenerator2
|
|
219
|
+
});
|
|
220
|
+
(0, _defineProperty2["default"])(_this, "updatePermission", /*#__PURE__*/function () {
|
|
221
|
+
var _ref5 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(entity, permission) {
|
|
220
222
|
var _this$props, updateSharedBankPermission, getBank, bank;
|
|
221
|
-
return _regenerator
|
|
222
|
-
while (1) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
return _context.stop();
|
|
233
|
-
}
|
|
223
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
224
|
+
while (1) switch (_context.prev = _context.next) {
|
|
225
|
+
case 0:
|
|
226
|
+
_this$props = _this.props, updateSharedBankPermission = _this$props.updateSharedBankPermission, getBank = _this$props.getBank, bank = _this$props.bank;
|
|
227
|
+
_context.next = 3;
|
|
228
|
+
return updateSharedBankPermission(bank.id, entity.get('id'), permission);
|
|
229
|
+
case 3:
|
|
230
|
+
getBank(bank.id); // make sure the user still has access to the bank
|
|
231
|
+
case 4:
|
|
232
|
+
case "end":
|
|
233
|
+
return _context.stop();
|
|
234
234
|
}
|
|
235
235
|
}, _callee);
|
|
236
236
|
}));
|
|
237
237
|
return function (_x, _x2) {
|
|
238
238
|
return _ref5.apply(this, arguments);
|
|
239
239
|
};
|
|
240
|
-
}();
|
|
241
|
-
_this
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
var confirmText = permission === _quizCommon.REMOVED_ACCESS ? (0, _formatMessage.default)('You are about to remove { accessLevel } access for { entityTitle } to this bank.', {
|
|
240
|
+
}());
|
|
241
|
+
(0, _defineProperty2["default"])(_this, "translatedPermissionLevel", function (permission) {
|
|
242
|
+
return (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _quizCommon.CAN_EDIT, (0, _formatMessage["default"])('edit')), _quizCommon.READ_ONLY, (0, _formatMessage["default"])('view'))[permission];
|
|
243
|
+
});
|
|
244
|
+
(0, _defineProperty2["default"])(_this, "confirmPermissionChange", function (entity, permission) {
|
|
245
|
+
var confirmText = permission === _quizCommon.REMOVED_ACCESS ? (0, _formatMessage["default"])('You are about to remove { accessLevel } access for { entityTitle } to this bank.', {
|
|
247
246
|
accessLevel: _this.translatedPermissionLevel(_this.originalPermissionForEntity(entity)),
|
|
248
247
|
entityTitle: entity.get('title')
|
|
249
|
-
}) : (0, _formatMessage
|
|
248
|
+
}) : (0, _formatMessage["default"])('You are about to change access level for { entityTitle } from { originalAccessLevel } to { permission }.', {
|
|
250
249
|
entityTitle: entity.get('title'),
|
|
251
250
|
originalAccessLevel: _this.translatedPermissionLevel(_this.originalPermissionForEntity(entity)),
|
|
252
251
|
permission: _this.translatedPermissionLevel(permission)
|
|
253
252
|
});
|
|
254
|
-
_this.props.withConfirm((0, _partial
|
|
255
|
-
title: (0, _formatMessage
|
|
253
|
+
_this.props.withConfirm((0, _partial["default"])(_this.updatePermission, entity, permission), {
|
|
254
|
+
title: (0, _formatMessage["default"])('Change Permission'),
|
|
256
255
|
text: confirmText,
|
|
257
|
-
continueText: (0, _formatMessage
|
|
256
|
+
continueText: (0, _formatMessage["default"])('Confirm')
|
|
258
257
|
});
|
|
259
|
-
};
|
|
260
|
-
_this
|
|
258
|
+
});
|
|
259
|
+
(0, _defineProperty2["default"])(_this, "handleEntityPermissionChange", function (entity, permission) {
|
|
261
260
|
_this.confirmPermissionChange(entity, permission);
|
|
262
|
-
};
|
|
263
|
-
_this
|
|
261
|
+
});
|
|
262
|
+
(0, _defineProperty2["default"])(_this, "toggleAccountShare", function (event) {
|
|
264
263
|
_this.setState(function (prevState) {
|
|
265
264
|
return {
|
|
266
265
|
accountPermission: _this.isSharedWithAccount(prevState) ? _quizCommon.REMOVED_ACCESS : _quizCommon.READ_ONLY
|
|
267
266
|
};
|
|
268
267
|
});
|
|
269
|
-
};
|
|
270
|
-
_this
|
|
268
|
+
});
|
|
269
|
+
(0, _defineProperty2["default"])(_this, "handleAccountPermissionChange", function (e, _ref6) {
|
|
271
270
|
var value = _ref6.value;
|
|
272
271
|
return _this.setState({
|
|
273
272
|
accountPermission: value
|
|
274
273
|
});
|
|
275
|
-
};
|
|
276
|
-
_this
|
|
274
|
+
});
|
|
275
|
+
(0, _defineProperty2["default"])(_this, "handleShareListRef", function (node) {
|
|
277
276
|
_this.shareListRef = node;
|
|
278
|
-
};
|
|
279
|
-
_this
|
|
277
|
+
});
|
|
278
|
+
(0, _defineProperty2["default"])(_this, "handleShareButtonRef", function (node) {
|
|
280
279
|
_this.shareButtonRef = node;
|
|
281
|
-
};
|
|
282
|
-
_this
|
|
280
|
+
});
|
|
281
|
+
(0, _defineProperty2["default"])(_this, "renderSearchSection", function (searchType) {
|
|
283
282
|
if (_this.props.bank.canEdit()) {
|
|
284
|
-
return (0, _emotion.jsx)(_react
|
|
283
|
+
return (0, _emotion.jsx)(_react["default"].Fragment, null, (0, _emotion.jsx)(_uiGrid.Grid, {
|
|
285
284
|
vAlign: "bottom",
|
|
286
285
|
colSpacing: "small"
|
|
287
|
-
}, (0, _emotion.jsx)(_uiGrid.Grid.Row, null, (0, _emotion.jsx)(_uiGrid.Grid.Col, null, (0, _emotion.jsx)(
|
|
286
|
+
}, (0, _emotion.jsx)(_uiGrid.Grid.Row, null, (0, _emotion.jsx)(_uiGrid.Grid.Col, null, (0, _emotion.jsx)(_AsyncSearch["default"], {
|
|
288
287
|
getShareableCourses: _this.props.getShareableCourses,
|
|
289
288
|
getShareableUsers: _this.props.getShareableUsers,
|
|
290
289
|
getShareableSubaccounts: _this.props.getShareableSubaccounts,
|
|
@@ -298,37 +297,38 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
298
297
|
}, (0, _emotion.jsx)(_quizCommon.SimpleSelect, {
|
|
299
298
|
onChange: _this.handleSearchPermissionChange,
|
|
300
299
|
value: _this.state.searchPermission,
|
|
301
|
-
renderLabel: (0, _formatMessage
|
|
300
|
+
renderLabel: (0, _formatMessage["default"])('Access')
|
|
302
301
|
}, (0, _emotion.jsx)(_quizCommon.SimpleSelect.Option, {
|
|
303
302
|
id: "sharing-modal-search-section-select-option-can-view",
|
|
304
303
|
value: _quizCommon.READ_ONLY
|
|
305
|
-
}, (0, _formatMessage
|
|
304
|
+
}, (0, _formatMessage["default"])('Can view')), (0, _emotion.jsx)(_quizCommon.SimpleSelect.Option, {
|
|
306
305
|
id: "sharing-modal-search-section-select-option-can-edit",
|
|
307
306
|
value: _quizCommon.CAN_EDIT
|
|
308
|
-
}, (0, _formatMessage
|
|
307
|
+
}, (0, _formatMessage["default"])('Can edit')))), (0, _emotion.jsx)(_uiGrid.Grid.Col, {
|
|
309
308
|
width: "auto"
|
|
310
309
|
}, (0, _emotion.jsx)(_uiButtons.Button, {
|
|
311
310
|
"data-automation": "sdk-shared-bank-add-user-button",
|
|
312
311
|
ref: _this.handleShareButtonRef,
|
|
313
312
|
onClick: _this.handleShare,
|
|
314
313
|
color: _this.state.searchSelection.length ? 'success' : 'secondary'
|
|
315
|
-
}, (0, _formatMessage
|
|
314
|
+
}, (0, _formatMessage["default"])('Add'))))), (0, _emotion.jsx)("div", {
|
|
316
315
|
css: _this.props.styles.separator
|
|
317
316
|
}));
|
|
318
317
|
}
|
|
319
|
-
};
|
|
320
|
-
_this
|
|
321
|
-
return (0, _emotion.jsx)(
|
|
318
|
+
});
|
|
319
|
+
(0, _defineProperty2["default"])(_this, "renderShareList", function (entities) {
|
|
320
|
+
return (0, _emotion.jsx)(_ShareList["default"], {
|
|
322
321
|
canEdit: _this.props.bank.canEdit(),
|
|
323
322
|
entities: entities,
|
|
324
323
|
onPermissionChange: _this.handleEntityPermissionChange,
|
|
325
324
|
onEntityRemove: _this.handleEntityRemove,
|
|
326
325
|
sharedBanks: _this.props.sharedBanks
|
|
327
326
|
});
|
|
328
|
-
};
|
|
327
|
+
});
|
|
329
328
|
return _this;
|
|
330
329
|
}
|
|
331
|
-
(0,
|
|
330
|
+
(0, _inherits2["default"])(SharingModalPresenter, _Component);
|
|
331
|
+
return (0, _createClass2["default"])(SharingModalPresenter, [{
|
|
332
332
|
key: "componentDidMount",
|
|
333
333
|
value: function componentDidMount() {
|
|
334
334
|
this.setState({
|
|
@@ -365,12 +365,14 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
365
365
|
}
|
|
366
366
|
}, {
|
|
367
367
|
key: "renderRootAccountSharing",
|
|
368
|
+
value:
|
|
368
369
|
// =============
|
|
369
370
|
// RENDERING
|
|
370
371
|
// =============
|
|
371
|
-
|
|
372
|
+
|
|
373
|
+
function renderRootAccountSharing() {
|
|
372
374
|
var _this$props$currentUs;
|
|
373
|
-
return (0, _emotion.jsx)(_RootAccountSharing
|
|
375
|
+
return (0, _emotion.jsx)(_RootAccountSharing["default"], {
|
|
374
376
|
accountName: (_this$props$currentUs = this.props.currentUser) === null || _this$props$currentUs === void 0 ? void 0 : _this$props$currentUs.account_name,
|
|
375
377
|
onShareChange: this.toggleAccountShare,
|
|
376
378
|
onShareTypeChange: this.handleAccountPermissionChange,
|
|
@@ -387,7 +389,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
387
389
|
}, (0, _emotion.jsx)(_uiTabs.Tabs, {
|
|
388
390
|
onRequestTabChange: this.handleTabChange
|
|
389
391
|
}, (0, _emotion.jsx)(_uiTabs.Tabs.Panel, {
|
|
390
|
-
renderTitle: (0, _formatMessage
|
|
392
|
+
renderTitle: (0, _formatMessage["default"])('People ({ peopleCount })', {
|
|
391
393
|
peopleCount: existingPeople.size
|
|
392
394
|
}),
|
|
393
395
|
isSelected: this.state.selectedTabIndex === 0,
|
|
@@ -396,8 +398,8 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
396
398
|
as: "div",
|
|
397
399
|
weight: "bold",
|
|
398
400
|
lineHeight: "double"
|
|
399
|
-
}, (0, _formatMessage
|
|
400
|
-
renderTitle: (0, _formatMessage
|
|
401
|
+
}, (0, _formatMessage["default"])('Currently shared with')), this.renderShareList(existingPeople)), (0, _emotion.jsx)(_uiTabs.Tabs.Panel, {
|
|
402
|
+
renderTitle: (0, _formatMessage["default"])('Courses ({ coursesCount })', {
|
|
401
403
|
coursesCount: existingCourses.size
|
|
402
404
|
}),
|
|
403
405
|
isSelected: this.state.selectedTabIndex === 1,
|
|
@@ -406,8 +408,8 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
406
408
|
as: "div",
|
|
407
409
|
weight: "bold",
|
|
408
410
|
lineHeight: "double"
|
|
409
|
-
}, (0, _formatMessage
|
|
410
|
-
renderTitle: (0, _formatMessage
|
|
411
|
+
}, (0, _formatMessage["default"])('Currently shared with')), this.renderShareList(existingCourses)), ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.bank_admin) || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.can_share_banks_with_subaccounts)) && (0, _emotion.jsx)(_uiTabs.Tabs.Panel, {
|
|
412
|
+
renderTitle: (0, _formatMessage["default"])('Accounts ({ accountsCount })', {
|
|
411
413
|
accountsCount: existingAccounts.size
|
|
412
414
|
}),
|
|
413
415
|
isSelected: this.state.selectedTabIndex === 2,
|
|
@@ -416,7 +418,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
416
418
|
as: "div",
|
|
417
419
|
weight: "bold",
|
|
418
420
|
lineHeight: "double"
|
|
419
|
-
}, (0, _formatMessage
|
|
421
|
+
}, (0, _formatMessage["default"])('Currently shared with')), this.renderShareList(existingAccounts))));
|
|
420
422
|
}
|
|
421
423
|
}, {
|
|
422
424
|
key: "renderOriginalDesignEntities",
|
|
@@ -426,7 +428,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
426
428
|
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
427
429
|
as: "div",
|
|
428
430
|
weight: "bold"
|
|
429
|
-
}, (0, _formatMessage
|
|
431
|
+
}, (0, _formatMessage["default"])('Currently shared with')), (0, _emotion.jsx)(_uiView.View, {
|
|
430
432
|
as: "div",
|
|
431
433
|
"data-automation": "sdk-shared-bank-user-list"
|
|
432
434
|
}, !this.state.newEntities.isEmpty() && (0, _emotion.jsx)(_uiView.View, {
|
|
@@ -435,13 +437,13 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
435
437
|
}, this.renderShareList(this.state.newEntities)), (0, _emotion.jsx)(_uiTabs.Tabs, {
|
|
436
438
|
onRequestTabChange: this.handleTabChange
|
|
437
439
|
}, (0, _emotion.jsx)(_uiTabs.Tabs.Panel, {
|
|
438
|
-
renderTitle: (0, _formatMessage
|
|
440
|
+
renderTitle: (0, _formatMessage["default"])('People ({ peopleCount })', {
|
|
439
441
|
peopleCount: existingPeople.size
|
|
440
442
|
}),
|
|
441
443
|
isSelected: this.state.selectedTabIndex === 0,
|
|
442
444
|
padding: "large small small small"
|
|
443
445
|
}, this.renderShareList(existingPeople)), !existingCourses.isEmpty() && (0, _emotion.jsx)(_uiTabs.Tabs.Panel, {
|
|
444
|
-
renderTitle: (0, _formatMessage
|
|
446
|
+
renderTitle: (0, _formatMessage["default"])('Courses ({ coursesCount })', {
|
|
445
447
|
coursesCount: existingCourses.size
|
|
446
448
|
}),
|
|
447
449
|
isSelected: this.state.selectedTabIndex === 1,
|
|
@@ -475,7 +477,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
475
477
|
color: "primary",
|
|
476
478
|
margin: "0 x-small 0 0",
|
|
477
479
|
onClick: this.handleDismiss
|
|
478
|
-
}, (0, _formatMessage
|
|
480
|
+
}, (0, _formatMessage["default"])('Close'));
|
|
479
481
|
}
|
|
480
482
|
}, {
|
|
481
483
|
key: "render",
|
|
@@ -484,55 +486,53 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
484
486
|
open: this.props.isOpen,
|
|
485
487
|
onDismiss: this.handleDismiss,
|
|
486
488
|
size: "medium",
|
|
487
|
-
label: (0, _formatMessage
|
|
489
|
+
label: (0, _formatMessage["default"])('Sharing'),
|
|
488
490
|
shouldCloseOnDocumentClick: true,
|
|
489
491
|
onOpen: this.checkForSharedBanks
|
|
490
492
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, null, this.props.bank.title), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
491
493
|
onClick: this.handleDismiss,
|
|
492
494
|
placement: "end",
|
|
493
495
|
offset: "medium",
|
|
494
|
-
screenReaderLabel: (0, _formatMessage
|
|
495
|
-
})), (0, _emotion.jsx)(_quizCommon.ModalBody, null, this.state.shares.size >= 0 ? this.renderEntitiesSection() :
|
|
496
|
+
screenReaderLabel: (0, _formatMessage["default"])('Close')
|
|
497
|
+
})), (0, _emotion.jsx)(_quizCommon.ModalBody, null, this.state.shares.size >= 0 ? this.renderEntitiesSection() : (0, _emotion.jsx)(_Spinner["default"], null)), (0, _emotion.jsx)(_quizCommon.ModalFooter, null, this.renderFooter()));
|
|
496
498
|
}
|
|
497
499
|
}]);
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
uuid: _propTypes.default.string,
|
|
510
|
-
account_name: _propTypes.default.string
|
|
500
|
+
}(_react.Component), (0, _defineProperty2["default"])(_SharingModalPresenter, "displayName", 'SharingModalPresenter'), (0, _defineProperty2["default"])(_SharingModalPresenter, "componentId", "Quizzes".concat(_SharingModalPresenter.displayName)), (0, _defineProperty2["default"])(_SharingModalPresenter, "propTypes", {
|
|
501
|
+
appContainer: _CustomPropTypes["default"].selectors.isRequired,
|
|
502
|
+
bank: _reactImmutableProptypes["default"].record.isRequired,
|
|
503
|
+
currentUser: _propTypes["default"].shape({
|
|
504
|
+
bank_admin: _propTypes["default"].bool,
|
|
505
|
+
can_share_banks_with_subaccounts: _propTypes["default"].bool,
|
|
506
|
+
email: _propTypes["default"].string,
|
|
507
|
+
enrollment_names: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
508
|
+
full_name: _propTypes["default"].string,
|
|
509
|
+
uuid: _propTypes["default"].string,
|
|
510
|
+
account_name: _propTypes["default"].string
|
|
511
511
|
}),
|
|
512
|
-
focusCreateBankButton: _propTypes
|
|
513
|
-
getBank: _propTypes
|
|
514
|
-
getShareableCourses: _propTypes
|
|
515
|
-
getCourseInfo: _propTypes
|
|
516
|
-
getShareableUsers: _propTypes
|
|
517
|
-
getSharedBanks: _propTypes
|
|
518
|
-
getUserInfo: _propTypes
|
|
519
|
-
getShareableSubaccounts: _propTypes
|
|
520
|
-
getSubaccountInfo: _propTypes
|
|
521
|
-
isOpen: _propTypes
|
|
522
|
-
minChars: _propTypes
|
|
523
|
-
modalTrigger: _propTypes
|
|
512
|
+
focusCreateBankButton: _propTypes["default"].func.isRequired,
|
|
513
|
+
getBank: _propTypes["default"].func.isRequired,
|
|
514
|
+
getShareableCourses: _propTypes["default"].func.isRequired,
|
|
515
|
+
getCourseInfo: _propTypes["default"].func.isRequired,
|
|
516
|
+
getShareableUsers: _propTypes["default"].func.isRequired,
|
|
517
|
+
getSharedBanks: _propTypes["default"].func.isRequired,
|
|
518
|
+
getUserInfo: _propTypes["default"].func.isRequired,
|
|
519
|
+
getShareableSubaccounts: _propTypes["default"].func.isRequired,
|
|
520
|
+
getSubaccountInfo: _propTypes["default"].func.isRequired,
|
|
521
|
+
isOpen: _propTypes["default"].bool,
|
|
522
|
+
minChars: _propTypes["default"].number,
|
|
523
|
+
modalTrigger: _propTypes["default"].node,
|
|
524
524
|
// html or react element that triggered this Modal
|
|
525
|
-
onDismiss: _propTypes
|
|
526
|
-
onShare: _propTypes
|
|
527
|
-
removeSharedBank: _propTypes
|
|
528
|
-
shareBank: _propTypes
|
|
529
|
-
sharedBanks: _reactImmutableProptypes
|
|
530
|
-
updateBank: _propTypes
|
|
531
|
-
updateSharedBankPermission: _propTypes
|
|
532
|
-
updateSharedCount: _propTypes
|
|
533
|
-
withConfirm: _propTypes
|
|
534
|
-
styles: _propTypes
|
|
535
|
-
}, _SharingModalPresenter
|
|
525
|
+
onDismiss: _propTypes["default"].func,
|
|
526
|
+
onShare: _propTypes["default"].func,
|
|
527
|
+
removeSharedBank: _propTypes["default"].func.isRequired,
|
|
528
|
+
shareBank: _propTypes["default"].func.isRequired,
|
|
529
|
+
sharedBanks: _reactImmutableProptypes["default"].list,
|
|
530
|
+
updateBank: _propTypes["default"].func.isRequired,
|
|
531
|
+
updateSharedBankPermission: _propTypes["default"].func.isRequired,
|
|
532
|
+
updateSharedCount: _propTypes["default"].func,
|
|
533
|
+
withConfirm: _propTypes["default"].func.isRequired,
|
|
534
|
+
styles: _propTypes["default"].object
|
|
535
|
+
}), (0, _defineProperty2["default"])(_SharingModalPresenter, "defaultProps", {
|
|
536
536
|
bank: null,
|
|
537
537
|
currentUser: null,
|
|
538
538
|
isOpen: false,
|
|
@@ -542,7 +542,5 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
542
542
|
onShare: function onShare() {},
|
|
543
543
|
sharedBanks: (0, _immutable.List)(),
|
|
544
544
|
updateSharedCount: Function.prototype
|
|
545
|
-
}, _SharingModalPresenter)) || _class);
|
|
546
|
-
exports
|
|
547
|
-
var _default = SharingModalPresenter;
|
|
548
|
-
exports.default = _default;
|
|
545
|
+
}), _SharingModalPresenter)) || _class);
|
|
546
|
+
var _default = exports["default"] = SharingModalPresenter;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var generateStyle = function generateStyle(componentTheme) {
|
|
8
8
|
return {
|
|
9
9
|
separator: {
|
|
@@ -15,5 +15,4 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
var _default = generateStyle;
|
|
19
|
-
exports.default = _default;
|
|
18
|
+
var _default = exports["default"] = generateStyle;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
8
|
var colors = _ref.colors,
|
|
9
9
|
borders = _ref.borders,
|
|
@@ -14,5 +14,4 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
14
14
|
separatorMargin: spacing.medium
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
var _default = generateComponentTheme;
|
|
18
|
-
exports.default = _default;
|
|
17
|
+
var _default = exports["default"] = generateComponentTheme;
|