@instructure/quiz-core 22.14.1 → 22.15.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 +268 -175
- package/es/banks/api/banks.js +396 -286
- package/es/banks/api/copyingBanksPoller.js +193 -80
- package/es/banks/api/tagAssociations.js +199 -79
- package/es/banks/components/AddBankEntryModal/index.js +15 -12
- package/es/banks/components/AddBankEntryModal/presenter.js +178 -112
- package/es/banks/components/AddToBankModal/index.js +18 -11
- package/es/banks/components/AddToBankModal/presenter.js +249 -190
- package/es/banks/components/AsyncSearch/index.js +516 -386
- package/es/banks/components/Bank/index.js +43 -31
- package/es/banks/components/Bank/presenter.js +687 -476
- package/es/banks/components/Bank/styles.js +85 -36
- package/es/banks/components/Bank/theme.js +13 -15
- package/es/banks/components/BankEntriesList/index.js +10 -7
- package/es/banks/components/BankEntriesList/presenter.js +138 -61
- package/es/banks/components/BankEntriesList/styles.js +7 -7
- package/es/banks/components/BankEntriesList/theme.js +6 -6
- package/es/banks/components/BankEntry/index.js +75 -43
- package/es/banks/components/BankEntry/presenter.js +933 -702
- package/es/banks/components/BankEntry/styles.js +115 -66
- package/es/banks/components/BankEntry/theme.js +24 -27
- package/es/banks/components/BankEntryRow/index.js +44 -25
- package/es/banks/components/BankEntryRow/presenter.js +507 -409
- package/es/banks/components/BankEntryRow/styles.js +47 -47
- package/es/banks/components/BankEntryRow/theme.js +20 -23
- package/es/banks/components/BankSearch/index.js +29 -20
- package/es/banks/components/BankSearch/presenter.js +241 -173
- package/es/banks/components/BankSearch/styles.js +15 -15
- package/es/banks/components/BankSearch/theme.js +7 -7
- package/es/banks/components/Banks/index.js +32 -26
- package/es/banks/components/Banks/presenter.js +590 -502
- package/es/banks/components/Banks/styles.js +27 -27
- package/es/banks/components/Banks/theme.js +12 -14
- package/es/banks/components/BanksList/index.js +19 -13
- package/es/banks/components/BanksList/presenter.js +682 -484
- package/es/banks/components/BanksList/styles.js +43 -43
- package/es/banks/components/BanksList/theme.js +18 -21
- package/es/banks/components/CopyMoveBankEntryModal/index.js +25 -15
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +344 -285
- package/es/banks/components/CreateBankModal/index.js +34 -23
- package/es/banks/components/CreateBankModal/presenter.js +240 -173
- package/es/banks/components/EditBankModal/index.js +24 -18
- package/es/banks/components/EditBankModal/presenter.js +197 -129
- package/es/banks/components/HeaderBreadCrumb/index.js +60 -67
- package/es/banks/components/HeaderMenu/index.js +5 -5
- package/es/banks/components/HeaderMenu/presenter.js +176 -94
- package/es/banks/components/HeaderMenu/styles.js +12 -12
- package/es/banks/components/HeaderMenu/theme.js +7 -8
- package/es/banks/components/NavWrapper/externalStyles.js +5 -5
- package/es/banks/components/NavWrapper/index.js +7 -4
- package/es/banks/components/NavWrapper/presenter.js +239 -158
- package/es/banks/components/NavWrapper/styles.js +52 -28
- package/es/banks/components/NavWrapper/theme.js +13 -17
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +187 -54
- package/es/banks/components/SharingModal/RootAccountSharing.js +160 -79
- package/es/banks/components/SharingModal/ShareList/index.js +192 -120
- package/es/banks/components/SharingModal/ShareList/styles.js +7 -7
- package/es/banks/components/SharingModal/index.js +20 -17
- package/es/banks/components/SharingModal/presenter.js +766 -590
- package/es/banks/components/SharingModal/styles.js +11 -11
- package/es/banks/components/SharingModal/theme.js +8 -10
- package/es/building/api/items.js +409 -260
- package/es/building/api/qtiImports.js +86 -88
- package/es/building/api/quizEntries.js +498 -308
- package/es/building/api/quizzes.js +164 -179
- package/es/building/api/stimuli.js +60 -60
- package/es/building/components/QTIImportModal/index.js +24 -21
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +33 -35
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +239 -130
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +7 -7
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +3 -3
- package/es/building/components/layout/Sidebar/Stimulus/index.js +41 -39
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +249 -138
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +7 -7
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +3 -3
- package/es/building/components/layout/Sidebar/index.js +26 -30
- package/es/building/components/layout/Sidebar/presenter.js +291 -211
- package/es/building/components/layout/Sidebar/styles.js +51 -27
- package/es/building/components/layout/Sidebar/theme.js +6 -6
- package/es/building/components/layout/header/BuildingButtons/index.js +24 -21
- package/es/building/components/layout/header/BuildingButtons/presenter.js +453 -368
- package/es/building/components/layout/header/BuildingButtons/styles.js +48 -23
- package/es/building/components/layout/header/BuildingButtons/theme.js +10 -12
- package/es/building/components/layout/header/SDKBuildingButtons/index.js +5 -5
- package/es/building/components/resources/ActionButtons/index.js +8 -8
- package/es/building/components/resources/ActionButtons/presenter.js +230 -154
- package/es/building/components/resources/ActionButtons/styles.js +53 -29
- package/es/building/components/resources/ActionButtons/theme.js +8 -9
- package/es/building/components/resources/AddToBankOptions/index.js +300 -92
- package/es/building/components/resources/AddToBankOptions/styles.js +9 -9
- package/es/building/components/resources/AddToBankOptions/theme.js +7 -8
- package/es/building/components/resources/BanksTray/index.js +27 -12
- package/es/building/components/resources/BanksTray/presenter.js +254 -191
- package/es/building/components/resources/DeleteStimulusModal/index.js +31 -22
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +356 -277
- package/es/building/components/resources/DeleteStimulusModal/styles.js +20 -20
- package/es/building/components/resources/DeleteStimulusModal/theme.js +9 -10
- package/es/building/components/resources/ItemFeedbackModal/index.js +27 -14
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +201 -124
- package/es/building/components/resources/ItemFeedbackModal/styles.js +12 -12
- package/es/building/components/resources/ItemFeedbackModal/theme.js +6 -6
- package/es/building/components/resources/MoveImmutableModal/index.js +23 -19
- package/es/building/components/resources/MoveImmutableModal/presenter.js +165 -101
- package/es/building/components/resources/quiz/editButton/EditButton.js +159 -55
- package/es/building/components/resources/quiz/instructions/Edit/index.js +7 -4
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +153 -78
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +19 -19
- package/es/building/components/resources/quiz/instructions/Edit/theme.js +7 -7
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +9 -9
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +253 -186
- package/es/building/components/resources/quiz/instructions/Instructions/styles.js +41 -29
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +11 -13
- package/es/building/components/resources/quiz/instructions/Show/index.js +138 -69
- package/es/building/components/resources/quiz/instructions/Show/styles.js +27 -27
- package/es/building/components/resources/quiz/instructions/Show/theme.js +7 -9
- package/es/building/components/resources/quiz/title/Edit/index.js +224 -164
- package/es/building/components/resources/quiz/title/Show/index.js +137 -69
- package/es/building/components/resources/quiz/title/Show/styles.js +14 -14
- package/es/building/components/resources/quiz/title/Show/theme.js +6 -6
- package/es/building/components/resources/quiz/title/Title/index.js +10 -10
- package/es/building/components/resources/quiz/title/Title/presenter.js +258 -192
- package/es/building/components/resources/quiz/title/Title/styles.js +61 -36
- package/es/building/components/resources/quiz/title/Title/theme.js +14 -17
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +57 -49
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +532 -371
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +94 -36
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +32 -20
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +9 -12
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +18 -18
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +287 -217
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +28 -28
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +18 -21
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +178 -96
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +17 -17
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +10 -13
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +14 -16
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +350 -229
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +73 -24
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +7 -10
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +533 -340
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +17 -18
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +8 -10
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +76 -59
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +681 -434
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +17 -17
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +7 -10
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +46 -24
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +458 -335
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +131 -82
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +22 -26
- package/es/common/actions/addInteractionTypes.js +5 -5
- package/es/common/actions/alerts.js +45 -52
- package/es/common/actions/analyses.js +45 -45
- package/es/common/actions/bankEntries.js +11 -11
- package/es/common/actions/bankSearch.js +28 -28
- package/es/common/actions/banks.js +48 -48
- package/es/common/actions/config.js +13 -13
- package/es/common/actions/dragAndDrop.js +5 -5
- package/es/common/actions/editing.js +15 -15
- package/es/common/actions/errorsShowing.js +17 -17
- package/es/common/actions/features.js +9 -9
- package/es/common/actions/grading.js +12 -12
- package/es/common/actions/items.js +5 -5
- package/es/common/actions/modal.js +56 -56
- package/es/common/actions/moderation.js +8 -8
- package/es/common/actions/modifications.js +410 -438
- package/es/common/actions/outcomes.js +17 -17
- package/es/common/actions/postMessage.js +5 -5
- package/es/common/actions/printing.js +9 -9
- package/es/common/actions/qtiImports.js +8 -8
- package/es/common/actions/quizEntries.js +37 -37
- package/es/common/actions/quizExport.js +6 -6
- package/es/common/actions/quizSessionEvents.js +6 -6
- package/es/common/actions/quizSessionResults.js +6 -6
- package/es/common/actions/quizSessions.js +78 -73
- package/es/common/actions/quizzes.js +43 -43
- package/es/common/actions/rce.js +18 -19
- package/es/common/actions/regrading.js +13 -13
- package/es/common/actions/reporting.js +21 -21
- package/es/common/actions/scrolling.js +10 -10
- package/es/common/actions/sessionItemResults.js +6 -6
- package/es/common/actions/sessionItems.js +6 -6
- package/es/common/actions/sharedBanks.js +29 -29
- package/es/common/actions/sharingModal.js +6 -6
- package/es/common/actions/sidebar.js +11 -11
- package/es/common/actions/stimuli.js +5 -5
- package/es/common/actions/tagAssociations.js +74 -74
- package/es/common/actions/taking.js +147 -149
- package/es/common/actions/ui.js +57 -57
- package/es/common/actions/upload.js +30 -30
- package/es/common/api/callHandlers.js +142 -97
- package/es/common/api/camelizeHelpers.js +7 -10
- package/es/common/api/features.js +11 -11
- package/es/common/api/fileUpload.js +24 -25
- package/es/common/api/getPersistenceActions.js +88 -88
- package/es/common/api/helpers.js +250 -125
- package/es/common/api/interactionTypes.js +8 -8
- package/es/common/api/quizSessions.js +196 -144
- package/es/common/api/quizzes.js +24 -25
- package/es/common/api/schema.js +45 -37
- package/es/common/components/AccessCodeTextInput/index.js +133 -53
- package/es/common/components/ApiFeatureFlagInitializer/index.js +20 -17
- package/es/common/components/ConfirmationModal/index.js +41 -13
- package/es/common/components/ConfirmationModal/presenter.js +178 -122
- package/es/common/components/ImportModal/ImportFileSelector/index.js +212 -125
- package/es/common/components/ImportModal/ImportFileSelector/styles.js +25 -25
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +14 -16
- package/es/common/components/ImportModal/index.js +45 -36
- package/es/common/components/ImportModal/presenter.js +438 -356
- package/es/common/components/ImportModal/styles.js +7 -7
- package/es/common/components/ImportModal/theme.js +6 -6
- package/es/common/components/LearnosityCalculator/index.js +340 -153
- package/es/common/components/MaskedTextInput/index.js +162 -62
- package/es/common/components/Pin/index.js +1 -1
- package/es/common/components/Pin/presenter.js +122 -56
- package/es/common/components/PreviewFrame/index.js +112 -42
- package/es/common/components/PrintFontSizeModal/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +243 -167
- package/es/common/components/PrintFontSizeModal/styles.js +11 -11
- package/es/common/components/PrintFontSizeModal/theme.js +8 -10
- package/es/common/components/RceConfigProvider/index.js +8 -8
- package/es/common/components/RceConfigProvider/presenter.js +393 -186
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +18 -18
- package/es/common/components/RceConfigProvider/rceConfigErrorMessages.js +15 -15
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +158 -42
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +38 -23
- package/es/common/components/RceConfigProvider/rceConfigUtils.js +5 -5
- package/es/common/components/SDKApp/index.js +271 -175
- package/es/common/components/SDKApp/styles.js +7 -7
- package/es/common/components/SDKHeaderCalculator.js +11 -12
- package/es/common/components/SDKMenuButton.js +5 -5
- package/es/common/components/SDKNavBar.js +5 -5
- package/es/common/components/SDKTimer.js +11 -12
- package/es/common/components/TimingAlerts/index.js +1 -0
- package/es/common/components/TimingAlerts/presenter.js +42 -0
- package/es/common/components/alerts/index.js +11 -11
- package/es/common/components/alerts/presenter.js +174 -95
- package/es/common/components/alerts/styles.js +32 -20
- package/es/common/components/alerts/theme.js +10 -11
- package/es/common/components/layout/Page/index.js +168 -83
- package/es/common/components/layout/Page/styles.js +84 -35
- package/es/common/components/layout/Page/theme.js +8 -11
- package/es/common/components/layout/header/Calculator/index.js +8 -8
- package/es/common/components/layout/header/Calculator/presenter.js +179 -68
- package/es/common/components/layout/header/HeaderMenuButton/index.js +17 -14
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +136 -62
- package/es/common/components/layout/header/HeaderMenuButton/styles.js +34 -23
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +9 -11
- package/es/common/components/layout/header/Timer/index.js +17 -17
- package/es/common/components/layout/header/Timer/presenter.js +254 -180
- package/es/common/components/layout/header/Timer/styles.js +25 -25
- package/es/common/components/layout/header/Timer/theme.js +15 -18
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +123 -41
- package/es/common/components/layout/navbar/externalStyles.js +7 -7
- package/es/common/components/layout/navbar/index.js +231 -122
- package/es/common/components/layout/navbar/styles.js +34 -9
- package/es/common/components/layout/navbar/theme.js +7 -8
- package/es/common/components/layout/sidebar/PositionSummary/index.js +145 -52
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +26 -26
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +12 -15
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +114 -49
- package/es/common/components/layout/sidebar/Sidebar/externalStyles.js +10 -10
- package/es/common/components/layout/sidebar/Sidebar/index.js +433 -338
- package/es/common/components/layout/sidebar/Sidebar/styles.js +160 -111
- package/es/common/components/layout/sidebar/Sidebar/theme.js +31 -36
- package/es/common/components/layout/sidebar/SidebarItem/index.js +13 -13
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +267 -195
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +82 -57
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +23 -26
- package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +220 -149
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +71 -46
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +8 -10
- package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +207 -136
- package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +28 -28
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +11 -13
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +138 -58
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +10 -10
- package/es/common/components/layout/sidebar/Stimulus/index.js +17 -14
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +301 -227
- package/es/common/components/layout/sidebar/Stimulus/styles.js +7 -7
- package/es/common/components/layout/sidebar/Stimulus/theme.js +7 -10
- package/es/common/components/resources/BankSelection/index.js +14 -8
- package/es/common/components/resources/BankSelection/presenter.js +268 -113
- package/es/common/components/resources/WarningWrapper/index.js +212 -124
- package/es/common/components/resources/WarningWrapper/styles.js +26 -26
- package/es/common/components/resources/WarningWrapper/theme.js +11 -13
- package/es/common/components/resources/entry/EntrySave/index.js +11 -11
- package/es/common/components/resources/entry/EntrySave/presenter.js +385 -193
- package/es/common/components/resources/item/ItemEdit/index.js +60 -45
- package/es/common/components/resources/item/ItemEdit/presenter.js +298 -199
- package/es/common/components/resources/item/ItemOverride/index.js +17 -17
- package/es/common/components/resources/item/ItemOverride/presenter.js +181 -78
- package/es/common/components/resources/item/ItemShow/index.js +156 -47
- package/es/common/components/resources/positionBox/PositionBox.js +133 -49
- package/es/common/components/resources/positionBox/styles.js +35 -23
- package/es/common/components/resources/positionBox/theme.js +12 -14
- package/es/common/components/resources/quiz/AddContent/Body/index.js +12 -12
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +139 -139
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +36 -22
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +9 -13
- package/es/common/components/resources/quiz/AddContent/Button/index.js +178 -96
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +74 -49
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +20 -24
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +19 -18
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +103 -64
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +24 -20
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +169 -127
- package/es/common/components/resources/quiz/AddContent/Popover/styles.js +28 -28
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +7 -8
- package/es/common/components/resources/quiz/info/QuizInfo.js +148 -39
- package/es/common/components/resources/quiz/instructions/Instructions.js +125 -48
- package/es/common/components/resources/quiz/instructions/styles.js +28 -28
- package/es/common/components/resources/quiz/instructions/theme.js +8 -9
- package/es/common/components/resources/quiz/title/Title.js +124 -46
- package/es/common/components/resources/quiz/title/styles.js +17 -17
- package/es/common/components/resources/quiz/title/theme.js +8 -9
- package/es/common/components/resources/quizSessionResult/Header/index.js +156 -78
- package/es/common/components/resources/quizSessionResult/Header/styles.js +27 -27
- package/es/common/components/resources/quizSessionResult/Header/theme.js +9 -10
- package/es/common/components/resources/quizSessionResult/Info/index.js +389 -290
- package/es/common/components/resources/quizSessionResult/Info/styles.js +55 -56
- package/es/common/components/resources/quizSessionResult/Info/theme.js +12 -13
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +173 -90
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +127 -78
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +28 -32
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +8 -5
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +415 -324
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +73 -48
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +27 -30
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +158 -81
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +15 -15
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +11 -14
- package/es/common/components/resources/stimulus/Stimulus/index.js +28 -19
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +331 -211
- package/es/common/components/resources/stimulus/Stimulus/styles.js +102 -53
- package/es/common/components/resources/stimulus/Stimulus/theme.js +12 -15
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +42 -36
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +670 -450
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +40 -40
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +13 -15
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +16 -13
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +281 -201
- package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +12 -12
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +9 -11
- package/es/common/components/resources/stimulus/StimulusShow/index.js +184 -107
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +24 -24
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +10 -12
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +138 -68
- package/es/common/components/shared/Card/CardContent/index.js +143 -49
- package/es/common/components/shared/Card/CardContent/styles.js +29 -17
- package/es/common/components/shared/Card/CardContent/theme.js +14 -18
- package/es/common/components/shared/Card/CardWrapper/index.js +141 -47
- package/es/common/components/shared/Card/CardWrapper/styles.js +26 -14
- package/es/common/components/shared/Card/CardWrapper/theme.js +9 -11
- package/es/common/components/shared/Card/index.js +45 -19
- package/es/common/components/shared/ExpandButton/index.js +187 -65
- package/es/common/components/shared/ExpandButton/styles.js +37 -12
- package/es/common/components/shared/ExpandButton/theme.js +5 -5
- package/es/common/components/shared/FormattedDuration/index.js +185 -82
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +241 -183
- package/es/common/components/shared/IfFeature/index.js +4 -4
- package/es/common/components/shared/IfFeature/presenter.js +112 -39
- package/es/common/components/shared/InteractionTypes/index.js +2 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +240 -163
- package/es/common/components/shared/InteractionTypes/styles.js +15 -15
- package/es/common/components/shared/InteractionTypes/theme.js +9 -11
- package/es/common/components/shared/PaginatedCollection/index.js +15 -12
- package/es/common/components/shared/PaginatedCollection/presenter.js +350 -160
- package/es/common/components/shared/PaginatedCollection/styles.js +10 -10
- package/es/common/components/shared/PaginatedCollection/theme.js +8 -10
- package/es/common/components/shared/Paginator/index.js +140 -59
- package/es/common/components/shared/Paginator/styles.js +7 -7
- package/es/common/components/shared/Paginator/theme.js +6 -6
- package/es/common/components/shared/PrintTrigger/index.js +31 -19
- package/es/common/components/shared/PrintTrigger/presenter.js +213 -123
- package/es/common/components/shared/TagDisplay/index.js +151 -70
- package/es/common/components/shared/TagDisplay/styles.js +7 -7
- package/es/common/components/shared/TagSelect/index.js +1 -1
- package/es/common/components/shared/TagSelect/presenter.js +326 -244
- package/es/common/components/shared/TagSuggestSelect/index.js +14 -9
- package/es/common/components/shared/TagSuggestSelect/presenter.js +158 -97
- package/es/common/components/shared/TagWrapper/index.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +127 -65
- package/es/common/components/shared/TimeUnitsInput/index.js +364 -310
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +183 -106
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +65 -40
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +16 -18
- package/es/common/components/shared/drag_and_drop/DragHandle/index.js +20 -14
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +320 -254
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +258 -271
- package/es/common/components/shared/file_selector/FileSelector.js +143 -60
- package/es/common/components/shared/file_selector/styles.js +10 -10
- package/es/common/components/shared/file_selector/theme.js +9 -11
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +148 -66
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +165 -75
- package/es/common/components/shared/functionality/disableDraggingOverride.js +7 -7
- package/es/common/components/shared/functionality/makeEditable.js +170 -104
- package/es/common/components/shared/functionality/makeScrollable.js +269 -126
- package/es/common/components/shared/overlay/index.js +161 -82
- package/es/common/components/shared/overlay/styles.js +36 -24
- package/es/common/components/shared/overlay/theme.js +8 -10
- package/es/common/components/shared/return_button/ReturnButton.js +128 -58
- package/es/common/components/shared/spinner/Spinner.js +188 -97
- package/es/common/components/shared/spinner/styles.js +13 -13
- package/es/common/kinesis/QuizEventsLogger.js +305 -115
- package/es/common/kinesis/StreamQueue.js +214 -138
- package/es/common/kinesis/client.js +31 -33
- package/es/common/kinesis/config.js +34 -33
- package/es/common/kinesis/eventTypes.js +27 -30
- package/es/common/middleware/alertTimerMiddleware.js +13 -14
- package/es/common/middleware/crossDomainMessagingMiddleware.js +9 -9
- package/es/common/middleware/eventLoggerMiddleware.js +21 -24
- package/es/common/middleware/persistedStorageMiddleware.js +39 -34
- package/es/common/middleware/quizTimerWebSocketMiddleware.js +60 -61
- package/es/common/middleware/sharedBanksMiddleware.js +355 -226
- package/es/common/react-redux.js +5 -6
- package/es/common/records/Alert.js +70 -29
- package/es/common/records/Bank.js +177 -105
- package/es/common/records/BankEntry.js +179 -95
- package/es/common/records/Item.js +226 -137
- package/es/common/records/ItemAnalysis.js +241 -157
- package/es/common/records/QtiImport.js +106 -48
- package/es/common/records/Quiz.js +304 -180
- package/es/common/records/QuizAnalysis.js +175 -104
- package/es/common/records/QuizEntry.js +662 -489
- package/es/common/records/QuizSession.js +278 -200
- package/es/common/records/QuizSessionEvent.js +113 -49
- package/es/common/records/QuizSessionResult.js +140 -71
- package/es/common/records/Response.js +108 -46
- package/es/common/records/SessionItem.js +206 -129
- package/es/common/records/SessionItemResult.js +140 -73
- package/es/common/records/Stimulus.js +160 -84
- package/es/common/records/baseRecord.js +184 -94
- package/es/common/records/index.js +1 -1
- package/es/common/records/reduxRecord.js +94 -38
- package/es/common/reducers/alerts.js +11 -12
- package/es/common/reducers/analyses.js +44 -33
- package/es/common/reducers/bankEntries.js +16 -14
- package/es/common/reducers/bankSearch.js +24 -29
- package/es/common/reducers/banks.js +50 -40
- package/es/common/reducers/calls.js +17 -12
- package/es/common/reducers/config.js +14 -15
- package/es/common/reducers/dragAndDrop.js +9 -10
- package/es/common/reducers/editing.js +19 -7
- package/es/common/reducers/errorsShowing.js +13 -14
- package/es/common/reducers/features.js +11 -12
- package/es/common/reducers/grading.js +13 -14
- package/es/common/reducers/interactionTypes.js +11 -12
- package/es/common/reducers/items.js +12 -13
- package/es/common/reducers/modal.js +24 -25
- package/es/common/reducers/moderation.js +14 -15
- package/es/common/reducers/modifications.js +259 -181
- package/es/common/reducers/outcomes.js +19 -20
- package/es/common/reducers/printing.js +10 -11
- package/es/common/reducers/qtiImports.js +14 -15
- package/es/common/reducers/quizEntries.js +155 -154
- package/es/common/reducers/quizExport.js +9 -10
- package/es/common/reducers/quizSessionEvents.js +17 -17
- package/es/common/reducers/quizSessionResults.js +12 -13
- package/es/common/reducers/quizSessions.js +47 -37
- package/es/common/reducers/quizzes.js +47 -36
- package/es/common/reducers/rce.js +15 -16
- package/es/common/reducers/regrading.js +18 -19
- package/es/common/reducers/reporting.js +50 -37
- package/es/common/reducers/scrolling.js +11 -12
- package/es/common/reducers/sessionItemResults.js +12 -13
- package/es/common/reducers/sessionItems.js +12 -13
- package/es/common/reducers/sharedBanks.js +21 -20
- package/es/common/reducers/sharingModal.js +13 -14
- package/es/common/reducers/sidebar.js +13 -14
- package/es/common/reducers/stimuli.js +12 -13
- package/es/common/reducers/tagAssociations.js +136 -87
- package/es/common/reducers/taking.js +133 -119
- package/es/common/reducers/ui.js +30 -27
- package/es/common/reducers/upload.js +20 -21
- package/es/common/selectors/analyses.js +59 -26
- package/es/common/selectors/calculator.js +16 -15
- package/es/common/selectors/calls.js +10 -2
- package/es/common/selectors/config.js +11 -8
- package/es/common/selectors/interactionTypes.js +68 -34
- package/es/common/selectors/items.js +14 -7
- package/es/common/selectors/qtiImports.js +19 -16
- package/es/common/selectors/quizSessionResults.js +10 -7
- package/es/common/selectors/quizSessions.js +23 -18
- package/es/common/selectors/quizzes.js +161 -86
- package/es/common/selectors/rce.js +11 -5
- package/es/common/selectors/reporting.js +13 -9
- package/es/common/selectors/sessionItemResults.js +52 -22
- package/es/common/selectors/sessionItems.js +63 -30
- package/es/common/selectors/taking.js +52 -21
- package/es/common/selectors/ui.js +6 -3
- package/es/common/util/CustomPropTypes.js +53 -46
- package/es/common/util/ElementsForSelectors.js +33 -7
- package/es/common/util/ExhaustivePaginatedFetcher.js +398 -100
- package/es/common/util/Fetcher.js +502 -356
- package/es/common/util/MultiWeakMap.js +72 -49
- package/es/common/util/PaginatedFetcher.js +303 -75
- package/es/common/util/ThunkQueue.js +286 -97
- package/es/common/util/TimeRecordingService.js +93 -55
- package/es/common/util/TimerService.js +200 -156
- package/es/common/util/cachePreviousArgs.js +16 -15
- package/es/common/util/callHelpers.js +23 -23
- package/es/common/util/clickHandlers.js +15 -16
- package/es/common/util/componentForItem.js +16 -17
- package/es/common/util/crossDomainMessaging.js +5 -5
- package/es/common/util/debounceLatestPromise.js +54 -23
- package/es/common/util/featureCheck.js +17 -19
- package/es/common/util/fetchHelpers.js +6 -6
- package/es/common/util/fitbCopyHelper.js +33 -32
- package/es/common/util/formatTimespan.js +46 -46
- package/es/common/util/generateDisplayPositions.js +18 -18
- package/es/common/util/getClientIpAddress.js +159 -32
- package/es/common/util/httpHeaders.js +12 -12
- package/es/common/util/immutableHelpers.js +13 -16
- package/es/common/util/instUIMessages.js +8 -8
- package/es/common/util/interactionTypeMetadata.js +25 -33
- package/es/common/util/interactionTypePropsHelper.js +77 -77
- package/es/common/util/interactionTypeRecordForItem.js +14 -15
- package/es/common/util/jsonify.js +48 -24
- package/es/common/util/keyboardClickable.js +7 -7
- package/es/common/util/localStoreService.js +63 -39
- package/es/common/util/mathRenderingUtils.js +1 -2
- package/es/common/util/maxContent.js +6 -6
- package/es/common/util/modalHelpers.js +6 -3
- package/es/common/util/noop.js +1 -1
- package/es/common/util/persistedState.js +53 -34
- package/es/common/util/printUtils.js +36 -36
- package/es/common/util/rceChecker.js +130 -18
- package/es/common/util/renderAlerts.js +13 -15
- package/es/common/util/serializeEvent.js +36 -29
- package/es/common/util/sessionStore.js +77 -54
- package/es/common/util/useRemoteComponent.js +266 -102
- package/es/common/util/valMap.js +7 -7
- package/es/common/util/warningHelpers.js +145 -108
- package/es/common/util/windowChecks.js +15 -15
- package/es/common/util/withCachedArguments.js +21 -23
- package/es/common/util/withDynamoPagination.js +336 -102
- package/es/common/util/withStateCache.js +32 -32
- package/es/config.js +10 -16
- package/es/configureStore.js +110 -86
- package/es/grading/api/quizEntryRegrades.js +28 -29
- package/es/grading/api/updateResults.js +33 -28
- package/es/index.js +4 -12
- package/es/messages/LocalStorageAdapter.js +44 -29
- package/es/messages/LocalStorageLimits.js +80 -65
- package/es/messages/StorageExhaustionError.js +118 -30
- package/es/messages/postMessageService.js +104 -75
- package/es/messages/subjectHandlers/forwardMessage.js +5 -5
- package/es/messages/subjectHandlers/lti.capabilities.js +12 -12
- package/es/messages/subjectHandlers/lti.fetchWindowSize.js +14 -14
- package/es/messages/subjectHandlers/lti.frameResize.js +8 -8
- package/es/messages/subjectHandlers/lti.get_data.js +16 -18
- package/es/messages/subjectHandlers/lti.put_data.js +37 -33
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +7 -7
- package/es/messages/utils.js +5 -5
- package/es/moderating/api/quizSessionEvents.js +14 -13
- package/es/moderating/api/quizSessions.js +38 -38
- package/es/moderating/components/events/Event.js +174 -105
- package/es/moderating/components/events/PageBlurredEvent.js +103 -33
- package/es/moderating/components/events/PageFocusedEvent.js +103 -33
- package/es/moderating/components/events/RCEEvent.js +108 -37
- package/es/moderating/components/events/ResponseEvent.js +207 -111
- package/es/moderating/components/events/SessionStartEvent.js +108 -38
- package/es/moderating/components/events/SessionSubmitEvent.js +108 -38
- package/es/moderating/components/events/styles.js +23 -23
- package/es/moderating/components/events/theme.js +10 -11
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +172 -108
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +153 -94
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +201 -128
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +240 -140
- package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +183 -77
- package/es/moderating/components/resources/AccommodationsModal/index.js +195 -139
- package/es/moderating/components/resources/ElapsedTime.js +128 -60
- package/es/moderating/components/resources/EventDetails.js +12 -14
- package/es/moderating/components/resources/ModerateTable/index.js +38 -26
- package/es/moderating/components/resources/ModerateTable/presenter.js +487 -388
- package/es/moderating/components/resources/ModerateTable/styles.js +47 -22
- package/es/moderating/components/resources/ModerateTable/theme.js +7 -8
- package/es/moderating/components/resources/ModerateTableRow/index.js +8 -8
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +453 -357
- package/es/moderating/components/resources/ModerateTableRow/story.js +5 -7
- package/es/moderating/components/resources/ModerateTableRow/styles.js +23 -23
- package/es/moderating/components/resources/ModerateTableRow/theme.js +7 -7
- package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +9 -6
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +220 -150
- package/es/moderating/components/resources/RetryGradePassbackButton/index.js +6 -7
- package/es/moderating/components/resources/RetryGradePassbackButton/presenter.js +237 -72
- package/es/moderating/components/resources/util/extractSessionData.js +39 -24
- package/es/moderating/components/resources/util/renderEventSummary.js +23 -19
- package/es/moderating/components/sidebar/ModerateTray/index.js +12 -6
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +290 -235
- package/es/moderating/components/sidebar/ResetQuiz/index.js +29 -27
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +285 -100
- package/es/reduxStore.js +16 -14
- package/es/reporting/api/fetchStudentAnalyses.js +143 -30
- package/es/reporting/api/getAnalysesExport.js +158 -49
- package/es/reporting/api/getAnalysesStatus.js +144 -34
- package/es/reporting/api/getItemAnalyses.js +141 -26
- package/es/reporting/api/getQuizAnalysis.js +141 -26
- package/es/reporting/api/itemAnalyses.js +12 -9
- package/es/reporting/api/quizAnalyses.js +15 -12
- package/es/reporting/components/Caption/index.js +133 -49
- package/es/reporting/components/Caption/styles.js +10 -10
- package/es/reporting/components/Caption/theme.js +7 -9
- package/es/reporting/components/MetricsListItem/index.js +175 -56
- package/es/reporting/components/MetricsListItem/styles.js +10 -10
- package/es/reporting/components/charts/CentileDistribution/index.js +1 -1
- package/es/reporting/components/charts/CentileDistribution/presenter.js +206 -137
- package/es/reporting/components/charts/CentileDistribution/styles.js +39 -27
- package/es/reporting/components/charts/CentileDistribution/theme.js +7 -9
- package/es/reporting/components/charts/Distribution/CentileDistribution.js +1 -1
- package/es/reporting/components/charts/Distribution/Distribution.js +1 -1
- package/es/reporting/components/charts/Distribution/QuintileDistribution.js +1 -1
- package/es/reporting/components/charts/Distribution/index.js +1 -1
- package/es/reporting/components/charts/Distribution/presenter.js +387 -301
- package/es/reporting/components/charts/Distribution/styles.js +20 -20
- package/es/reporting/components/charts/Distribution/theme.js +11 -12
- package/es/reporting/components/charts/Legend/index.js +180 -83
- package/es/reporting/components/charts/Legend/styles.js +66 -41
- package/es/reporting/components/charts/Legend/theme.js +14 -17
- package/es/reporting/components/charts/QuintileDistribution/index.js +1 -1
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +207 -140
- package/es/reporting/components/charts/QuintileDistribution/styles.js +10 -10
- package/es/reporting/components/charts/QuintileDistribution/theme.js +8 -9
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +204 -111
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +48 -31
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +21 -26
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +5 -5
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +333 -251
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +105 -95
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +22 -25
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +203 -129
- package/es/reporting/components/quizAnalysis/styles.js +35 -22
- package/es/reporting/components/quizAnalysis/theme.js +10 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +142 -61
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +12 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +150 -68
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +16 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +91 -44
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +95 -48
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +172 -99
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +89 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +7 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +160 -88
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +17 -17
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +150 -67
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +96 -49
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +237 -173
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +76 -51
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +7 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +151 -69
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +74 -34
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +127 -85
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +254 -217
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +8 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +179 -132
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +8 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +106 -63
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +177 -106
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +34 -34
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +8 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +97 -50
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +164 -93
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +139 -65
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +38 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +4 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +117 -59
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +9 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +210 -156
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +139 -139
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +11 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +242 -188
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +140 -91
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +9 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +148 -95
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +14 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +5 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +26 -30
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +188 -112
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +13 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +118 -38
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +15 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +9 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +17 -17
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +10 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +348 -285
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +98 -73
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +14 -17
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +7 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +237 -140
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +38 -38
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +14 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +255 -198
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +75 -50
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +11 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +159 -83
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +18 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +10 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +228 -51
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +166 -38
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +307 -261
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +12 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +27 -27
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +421 -208
- package/es/reporting/components/resources/OutcomeAnalysis/index.js +20 -8
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +125 -62
- package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +28 -14
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +370 -277
- package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +16 -16
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +11 -13
- package/es/reporting/components/resources/ReportCard/index.js +144 -66
- package/es/reporting/components/resources/ReportCard/styles.js +32 -20
- package/es/reporting/components/resources/ReportCard/theme.js +10 -11
- package/es/reporting/components/resources/ReportList/index.js +139 -54
- package/es/reporting/components/resources/ReportList/styles.js +17 -17
- package/es/reporting/components/resources/ReportList/theme.js +8 -8
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/index.js +1 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +215 -154
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +66 -42
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +11 -13
- package/es/reporting/components/resources/StudentAnalysis/fetchReport.js +174 -45
- package/es/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +166 -38
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +23 -23
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +418 -213
- package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +115 -49
- package/es/reporting/components/resources/common/ExportButton/index.js +16 -17
- package/es/reporting/components/resources/common/errorCodes.js +19 -19
- package/es/reporting/components/resources/common/errorMessages.js +17 -17
- package/es/reporting/components/resources/common/exportReports.js +174 -50
- package/es/reporting/components/resources/common/generateReports.js +215 -72
- package/es/reporting/components/resources/common/propTypes.js +145 -133
- package/es/reporting/components/resources/common/utils.js +14 -14
- package/es/taking/api/taking.js +375 -257
- package/es/taking/learnosity/index.js +268 -115
- package/lib/banks/api/bankEntries.js +279 -193
- package/lib/banks/api/banks.js +412 -311
- package/lib/banks/api/copyingBanksPoller.js +196 -90
- package/lib/banks/api/tagAssociations.js +205 -92
- package/lib/banks/components/AddBankEntryModal/index.js +25 -30
- package/lib/banks/components/AddBankEntryModal/presenter.js +186 -129
- package/lib/banks/components/AddToBankModal/index.js +28 -31
- package/lib/banks/components/AddToBankModal/presenter.js +257 -207
- package/lib/banks/components/AsyncSearch/index.js +518 -397
- package/lib/banks/components/Bank/index.js +59 -57
- package/lib/banks/components/Bank/presenter.js +707 -505
- package/lib/banks/components/Bank/styles.js +85 -43
- package/lib/banks/components/Bank/theme.js +13 -21
- package/lib/banks/components/BankEntriesList/index.js +15 -20
- package/lib/banks/components/BankEntriesList/presenter.js +145 -75
- package/lib/banks/components/BankEntriesList/styles.js +7 -13
- package/lib/banks/components/BankEntriesList/theme.js +6 -12
- package/lib/banks/components/BankEntry/index.js +93 -68
- package/lib/banks/components/BankEntry/presenter.js +961 -737
- package/lib/banks/components/BankEntry/styles.js +115 -73
- package/lib/banks/components/BankEntry/theme.js +24 -33
- package/lib/banks/components/BankEntryRow/index.js +56 -46
- package/lib/banks/components/BankEntryRow/presenter.js +526 -437
- package/lib/banks/components/BankEntryRow/styles.js +47 -53
- package/lib/banks/components/BankEntryRow/theme.js +20 -29
- package/lib/banks/components/BankSearch/index.js +35 -33
- package/lib/banks/components/BankSearch/presenter.js +258 -197
- package/lib/banks/components/BankSearch/styles.js +15 -21
- package/lib/banks/components/BankSearch/theme.js +7 -13
- package/lib/banks/components/Banks/index.js +43 -45
- package/lib/banks/components/Banks/presenter.js +611 -532
- package/lib/banks/components/Banks/styles.js +27 -33
- package/lib/banks/components/Banks/theme.js +12 -20
- package/lib/banks/components/BanksList/index.js +29 -31
- package/lib/banks/components/BanksList/presenter.js +700 -511
- package/lib/banks/components/BanksList/styles.js +43 -49
- package/lib/banks/components/BanksList/theme.js +18 -27
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +35 -35
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +353 -303
- package/lib/banks/components/CreateBankModal/index.js +47 -45
- package/lib/banks/components/CreateBankModal/presenter.js +248 -190
- package/lib/banks/components/EditBankModal/index.js +34 -37
- package/lib/banks/components/EditBankModal/presenter.js +204 -145
- package/lib/banks/components/HeaderBreadCrumb/index.js +65 -82
- package/lib/banks/components/HeaderMenu/index.js +10 -19
- package/lib/banks/components/HeaderMenu/presenter.js +190 -115
- package/lib/banks/components/HeaderMenu/styles.js +12 -18
- package/lib/banks/components/HeaderMenu/theme.js +7 -14
- package/lib/banks/components/NavWrapper/externalStyles.js +5 -11
- package/lib/banks/components/NavWrapper/index.js +10 -14
- package/lib/banks/components/NavWrapper/presenter.js +251 -177
- package/lib/banks/components/NavWrapper/styles.js +53 -36
- package/lib/banks/components/NavWrapper/theme.js +13 -23
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +190 -66
- package/lib/banks/components/SharingModal/RootAccountSharing.js +169 -97
- package/lib/banks/components/SharingModal/ShareList/index.js +203 -138
- package/lib/banks/components/SharingModal/ShareList/styles.js +7 -13
- package/lib/banks/components/SharingModal/index.js +27 -31
- package/lib/banks/components/SharingModal/presenter.js +787 -620
- package/lib/banks/components/SharingModal/styles.js +11 -17
- package/lib/banks/components/SharingModal/theme.js +8 -16
- package/lib/building/api/items.js +419 -279
- package/lib/building/api/qtiImports.js +93 -101
- package/lib/building/api/quizEntries.js +529 -357
- package/lib/building/api/quizzes.js +201 -248
- package/lib/building/api/stimuli.js +67 -74
- package/lib/building/components/QTIImportModal/index.js +32 -36
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +47 -56
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +248 -146
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +7 -13
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +3 -9
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +53 -58
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +257 -153
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +7 -13
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +3 -9
- package/lib/building/components/layout/Sidebar/index.js +41 -52
- package/lib/building/components/layout/Sidebar/presenter.js +300 -227
- package/lib/building/components/layout/Sidebar/styles.js +51 -34
- package/lib/building/components/layout/Sidebar/theme.js +6 -12
- package/lib/building/components/layout/header/BuildingButtons/index.js +38 -45
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +462 -384
- package/lib/building/components/layout/header/BuildingButtons/styles.js +48 -30
- package/lib/building/components/layout/header/BuildingButtons/theme.js +10 -18
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +9 -16
- package/lib/building/components/resources/ActionButtons/index.js +16 -23
- package/lib/building/components/resources/ActionButtons/presenter.js +239 -170
- package/lib/building/components/resources/ActionButtons/styles.js +53 -36
- package/lib/building/components/resources/ActionButtons/theme.js +8 -15
- package/lib/building/components/resources/AddToBankOptions/index.js +308 -107
- package/lib/building/components/resources/AddToBankOptions/styles.js +9 -15
- package/lib/building/components/resources/AddToBankOptions/theme.js +7 -14
- package/lib/building/components/resources/BanksTray/index.js +33 -24
- package/lib/building/components/resources/BanksTray/presenter.js +266 -212
- package/lib/building/components/resources/DeleteStimulusModal/index.js +40 -37
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +368 -298
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +20 -26
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +9 -16
- package/lib/building/components/resources/ItemFeedbackModal/index.js +38 -32
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +207 -137
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +12 -18
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +6 -12
- package/lib/building/components/resources/MoveImmutableModal/index.js +32 -35
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +170 -115
- package/lib/building/components/resources/quiz/editButton/EditButton.js +165 -70
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +9 -13
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +165 -94
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +19 -25
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +7 -13
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +18 -25
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +260 -196
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +41 -36
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +11 -19
- package/lib/building/components/resources/quiz/instructions/Show/index.js +146 -81
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +27 -33
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +7 -15
- package/lib/building/components/resources/quiz/title/Edit/index.js +233 -178
- package/lib/building/components/resources/quiz/title/Show/index.js +145 -81
- package/lib/building/components/resources/quiz/title/Show/styles.js +14 -20
- package/lib/building/components/resources/quiz/title/Show/theme.js +6 -12
- package/lib/building/components/resources/quiz/title/Title/index.js +20 -27
- package/lib/building/components/resources/quiz/title/Title/presenter.js +266 -203
- package/lib/building/components/resources/quiz/title/Title/styles.js +61 -43
- package/lib/building/components/resources/quiz/title/Title/theme.js +14 -23
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +75 -74
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +551 -397
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +95 -44
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +32 -27
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +9 -18
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +25 -33
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +300 -237
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +28 -34
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +18 -27
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +186 -111
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +17 -23
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +10 -19
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +18 -28
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +364 -250
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +73 -31
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +7 -16
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +545 -359
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +17 -24
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +8 -16
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +90 -82
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +692 -454
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +17 -23
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +7 -16
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +57 -41
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +474 -358
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +131 -89
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +22 -32
- package/lib/common/actions/addInteractionTypes.js +7 -13
- package/lib/common/actions/alerts.js +53 -72
- package/lib/common/actions/analyses.js +57 -73
- package/lib/common/actions/bankEntries.js +12 -18
- package/lib/common/actions/bankSearch.js +29 -35
- package/lib/common/actions/banks.js +49 -55
- package/lib/common/actions/config.js +17 -25
- package/lib/common/actions/dragAndDrop.js +7 -13
- package/lib/common/actions/editing.js +19 -27
- package/lib/common/actions/errorsShowing.js +21 -29
- package/lib/common/actions/features.js +12 -19
- package/lib/common/actions/grading.js +16 -24
- package/lib/common/actions/items.js +7 -13
- package/lib/common/actions/modal.js +63 -74
- package/lib/common/actions/moderation.js +11 -18
- package/lib/common/actions/modifications.js +487 -563
- package/lib/common/actions/outcomes.js +22 -31
- package/lib/common/actions/postMessage.js +7 -13
- package/lib/common/actions/printing.js +12 -19
- package/lib/common/actions/qtiImports.js +11 -18
- package/lib/common/actions/quizEntries.js +44 -55
- package/lib/common/actions/quizExport.js +7 -13
- package/lib/common/actions/quizSessionEvents.js +7 -13
- package/lib/common/actions/quizSessionResults.js +7 -13
- package/lib/common/actions/quizSessions.js +83 -87
- package/lib/common/actions/quizzes.js +44 -50
- package/lib/common/actions/rce.js +19 -26
- package/lib/common/actions/regrading.js +17 -25
- package/lib/common/actions/reporting.js +27 -37
- package/lib/common/actions/scrolling.js +13 -20
- package/lib/common/actions/sessionItemResults.js +7 -13
- package/lib/common/actions/sessionItems.js +7 -13
- package/lib/common/actions/sharedBanks.js +30 -36
- package/lib/common/actions/sharingModal.js +7 -13
- package/lib/common/actions/sidebar.js +14 -21
- package/lib/common/actions/stimuli.js +7 -13
- package/lib/common/actions/tagAssociations.js +75 -81
- package/lib/common/actions/taking.js +149 -157
- package/lib/common/actions/ui.js +57 -63
- package/lib/common/actions/upload.js +31 -37
- package/lib/common/api/callHandlers.js +147 -107
- package/lib/common/api/camelizeHelpers.js +10 -19
- package/lib/common/api/features.js +14 -21
- package/lib/common/api/fileUpload.js +28 -37
- package/lib/common/api/getPersistenceActions.js +107 -113
- package/lib/common/api/helpers.js +253 -135
- package/lib/common/api/interactionTypes.js +11 -18
- package/lib/common/api/quizSessions.js +204 -159
- package/lib/common/api/quizzes.js +31 -40
- package/lib/common/api/schema.js +65 -62
- package/lib/common/components/AccessCodeTextInput/index.js +135 -64
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +26 -31
- package/lib/common/components/ConfirmationModal/index.js +46 -25
- package/lib/common/components/ConfirmationModal/presenter.js +184 -137
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +221 -141
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +25 -31
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +14 -22
- package/lib/common/components/ImportModal/index.js +55 -55
- package/lib/common/components/ImportModal/presenter.js +449 -374
- package/lib/common/components/ImportModal/styles.js +7 -13
- package/lib/common/components/ImportModal/theme.js +6 -12
- package/lib/common/components/LearnosityCalculator/index.js +341 -163
- package/lib/common/components/MaskedTextInput/index.js +169 -78
- package/lib/common/components/Pin/index.js +3 -9
- package/lib/common/components/Pin/presenter.js +126 -69
- package/lib/common/components/PreviewFrame/index.js +121 -60
- package/lib/common/components/PrintFontSizeModal/index.js +2 -9
- package/lib/common/components/PrintFontSizeModal/presenter.js +251 -182
- package/lib/common/components/PrintFontSizeModal/styles.js +11 -17
- package/lib/common/components/PrintFontSizeModal/theme.js +8 -16
- package/lib/common/components/RceConfigProvider/index.js +15 -22
- package/lib/common/components/RceConfigProvider/presenter.js +409 -211
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +23 -30
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +17 -24
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +158 -49
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +40 -32
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +5 -11
- package/lib/common/components/SDKApp/index.js +289 -200
- package/lib/common/components/SDKApp/styles.js +7 -13
- package/lib/common/components/SDKHeaderCalculator.js +18 -26
- package/lib/common/components/SDKMenuButton.js +9 -16
- package/lib/common/components/SDKNavBar.js +10 -17
- package/lib/common/components/SDKTimer.js +18 -26
- package/lib/common/components/TimingAlerts/index.js +1 -0
- package/lib/common/components/TimingAlerts/presenter.js +42 -0
- package/lib/common/components/alerts/index.js +17 -24
- package/lib/common/components/alerts/presenter.js +182 -110
- package/lib/common/components/alerts/styles.js +32 -27
- package/lib/common/components/alerts/theme.js +10 -17
- package/lib/common/components/layout/Page/index.js +171 -93
- package/lib/common/components/layout/Page/styles.js +84 -42
- package/lib/common/components/layout/Page/theme.js +8 -17
- package/lib/common/components/layout/header/Calculator/index.js +16 -22
- package/lib/common/components/layout/header/Calculator/presenter.js +188 -86
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +25 -30
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +144 -77
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +34 -30
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +9 -17
- package/lib/common/components/layout/header/Timer/index.js +25 -32
- package/lib/common/components/layout/header/Timer/presenter.js +266 -201
- package/lib/common/components/layout/header/Timer/styles.js +25 -31
- package/lib/common/components/layout/header/Timer/theme.js +15 -24
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +130 -55
- package/lib/common/components/layout/navbar/externalStyles.js +7 -13
- package/lib/common/components/layout/navbar/index.js +238 -136
- package/lib/common/components/layout/navbar/styles.js +35 -17
- package/lib/common/components/layout/navbar/theme.js +7 -14
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +151 -65
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +26 -32
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +12 -21
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +119 -62
- package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +10 -16
- package/lib/common/components/layout/sidebar/Sidebar/index.js +448 -360
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +161 -119
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +32 -43
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +21 -28
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +275 -210
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +82 -64
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +23 -32
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -13
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +228 -164
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +72 -54
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +8 -16
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -13
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +213 -149
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +28 -34
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +11 -19
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +146 -73
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +10 -16
- package/lib/common/components/layout/sidebar/Stimulus/index.js +22 -25
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +314 -247
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +7 -13
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +7 -16
- package/lib/common/components/resources/BankSelection/index.js +22 -24
- package/lib/common/components/resources/BankSelection/presenter.js +274 -128
- package/lib/common/components/resources/WarningWrapper/index.js +217 -136
- package/lib/common/components/resources/WarningWrapper/styles.js +26 -32
- package/lib/common/components/resources/WarningWrapper/theme.js +11 -19
- package/lib/common/components/resources/entry/EntrySave/index.js +18 -26
- package/lib/common/components/resources/entry/EntrySave/presenter.js +390 -207
- package/lib/common/components/resources/item/ItemEdit/index.js +77 -72
- package/lib/common/components/resources/item/ItemEdit/presenter.js +306 -216
- package/lib/common/components/resources/item/ItemOverride/index.js +27 -36
- package/lib/common/components/resources/item/ItemOverride/presenter.js +186 -92
- package/lib/common/components/resources/item/ItemShow/index.js +163 -63
- package/lib/common/components/resources/positionBox/PositionBox.js +141 -64
- package/lib/common/components/resources/positionBox/styles.js +35 -30
- package/lib/common/components/resources/positionBox/theme.js +12 -20
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +19 -26
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +155 -165
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +36 -29
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +9 -19
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +183 -108
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +74 -56
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +20 -30
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +25 -30
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +110 -78
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +33 -36
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +188 -154
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +28 -34
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +7 -14
- package/lib/common/components/resources/quiz/info/QuizInfo.js +155 -55
- package/lib/common/components/resources/quiz/instructions/Instructions.js +136 -64
- package/lib/common/components/resources/quiz/instructions/styles.js +28 -34
- package/lib/common/components/resources/quiz/instructions/theme.js +8 -15
- package/lib/common/components/resources/quiz/title/Title.js +135 -62
- package/lib/common/components/resources/quiz/title/styles.js +17 -23
- package/lib/common/components/resources/quiz/title/theme.js +8 -15
- package/lib/common/components/resources/quizSessionResult/Header/index.js +163 -92
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +27 -33
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +9 -16
- package/lib/common/components/resources/quizSessionResult/Info/index.js +401 -309
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +55 -62
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +12 -19
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +179 -103
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +127 -85
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +28 -38
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +14 -18
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +427 -343
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +73 -55
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +27 -36
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +169 -99
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +15 -21
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +11 -20
- package/lib/common/components/resources/stimulus/Stimulus/index.js +34 -32
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +340 -227
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +102 -60
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +12 -21
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +55 -58
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +688 -475
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +40 -46
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +13 -21
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +22 -28
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +291 -218
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +12 -18
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +9 -17
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +194 -124
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +24 -30
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +10 -18
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +145 -84
- package/lib/common/components/shared/Card/CardContent/index.js +149 -62
- package/lib/common/components/shared/Card/CardContent/styles.js +29 -24
- package/lib/common/components/shared/Card/CardContent/theme.js +14 -24
- package/lib/common/components/shared/Card/CardWrapper/index.js +149 -62
- package/lib/common/components/shared/Card/CardWrapper/styles.js +26 -21
- package/lib/common/components/shared/Card/CardWrapper/theme.js +9 -17
- package/lib/common/components/shared/Card/index.js +49 -31
- package/lib/common/components/shared/ExpandButton/index.js +194 -79
- package/lib/common/components/shared/ExpandButton/styles.js +37 -19
- package/lib/common/components/shared/ExpandButton/theme.js +5 -11
- package/lib/common/components/shared/FormattedDuration/index.js +196 -104
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +246 -197
- package/lib/common/components/shared/IfFeature/index.js +9 -16
- package/lib/common/components/shared/IfFeature/presenter.js +116 -50
- package/lib/common/components/shared/InteractionTypes/index.js +4 -11
- package/lib/common/components/shared/InteractionTypes/presenter.js +254 -184
- package/lib/common/components/shared/InteractionTypes/styles.js +15 -21
- package/lib/common/components/shared/InteractionTypes/theme.js +9 -17
- package/lib/common/components/shared/PaginatedCollection/index.js +21 -26
- package/lib/common/components/shared/PaginatedCollection/presenter.js +362 -179
- package/lib/common/components/shared/PaginatedCollection/styles.js +10 -16
- package/lib/common/components/shared/PaginatedCollection/theme.js +8 -16
- package/lib/common/components/shared/Paginator/index.js +147 -73
- package/lib/common/components/shared/Paginator/styles.js +7 -13
- package/lib/common/components/shared/Paginator/theme.js +6 -12
- package/lib/common/components/shared/PrintTrigger/index.js +42 -39
- package/lib/common/components/shared/PrintTrigger/presenter.js +223 -142
- package/lib/common/components/shared/TagDisplay/index.js +160 -86
- package/lib/common/components/shared/TagDisplay/styles.js +7 -13
- package/lib/common/components/shared/TagSelect/index.js +2 -9
- package/lib/common/components/shared/TagSelect/presenter.js +331 -258
- package/lib/common/components/shared/TagSuggestSelect/index.js +19 -21
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +164 -112
- package/lib/common/components/shared/TagWrapper/index.js +2 -9
- package/lib/common/components/shared/TagWrapper/presenter.js +131 -78
- package/lib/common/components/shared/TimeUnitsInput/index.js +374 -327
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +186 -116
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +65 -47
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +16 -24
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +30 -31
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +326 -269
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +273 -305
- package/lib/common/components/shared/file_selector/FileSelector.js +149 -73
- package/lib/common/components/shared/file_selector/styles.js +10 -16
- package/lib/common/components/shared/file_selector/theme.js +9 -17
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +151 -75
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +169 -85
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +9 -15
- package/lib/common/components/shared/functionality/makeEditable.js +180 -122
- package/lib/common/components/shared/functionality/makeScrollable.js +276 -142
- package/lib/common/components/shared/overlay/index.js +168 -96
- package/lib/common/components/shared/overlay/styles.js +36 -31
- package/lib/common/components/shared/overlay/theme.js +8 -16
- package/lib/common/components/shared/return_button/ReturnButton.js +134 -73
- package/lib/common/components/shared/spinner/Spinner.js +194 -110
- package/lib/common/components/shared/spinner/styles.js +13 -19
- package/lib/common/kinesis/QuizEventsLogger.js +307 -124
- package/lib/common/kinesis/StreamQueue.js +216 -146
- package/lib/common/kinesis/client.js +35 -44
- package/lib/common/kinesis/config.js +35 -40
- package/lib/common/kinesis/eventTypes.js +33 -42
- package/lib/common/middleware/alertTimerMiddleware.js +15 -22
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +11 -17
- package/lib/common/middleware/eventLoggerMiddleware.js +24 -33
- package/lib/common/middleware/persistedStorageMiddleware.js +42 -43
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +65 -72
- package/lib/common/middleware/sharedBanksMiddleware.js +360 -238
- package/lib/common/react-redux.js +6 -14
- package/lib/common/records/Alert.js +72 -38
- package/lib/common/records/Bank.js +181 -116
- package/lib/common/records/BankEntry.js +180 -103
- package/lib/common/records/Item.js +229 -147
- package/lib/common/records/ItemAnalysis.js +244 -167
- package/lib/common/records/QtiImport.js +108 -57
- package/lib/common/records/Quiz.js +312 -195
- package/lib/common/records/QuizAnalysis.js +176 -112
- package/lib/common/records/QuizEntry.js +663 -499
- package/lib/common/records/QuizSession.js +283 -212
- package/lib/common/records/QuizSessionEvent.js +114 -57
- package/lib/common/records/QuizSessionResult.js +141 -79
- package/lib/common/records/Response.js +113 -58
- package/lib/common/records/SessionItem.js +209 -139
- package/lib/common/records/SessionItemResult.js +141 -81
- package/lib/common/records/Stimulus.js +163 -94
- package/lib/common/records/baseRecord.js +186 -104
- package/lib/common/records/index.js +16 -118
- package/lib/common/records/reduxRecord.js +97 -48
- package/lib/common/reducers/alerts.js +13 -20
- package/lib/common/reducers/analyses.js +57 -53
- package/lib/common/reducers/bankEntries.js +20 -25
- package/lib/common/reducers/bankSearch.js +27 -38
- package/lib/common/reducers/banks.js +54 -51
- package/lib/common/reducers/calls.js +19 -20
- package/lib/common/reducers/config.js +17 -24
- package/lib/common/reducers/dragAndDrop.js +11 -18
- package/lib/common/reducers/editing.js +21 -16
- package/lib/common/reducers/errorsShowing.js +15 -22
- package/lib/common/reducers/features.js +13 -20
- package/lib/common/reducers/grading.js +15 -22
- package/lib/common/reducers/interactionTypes.js +14 -22
- package/lib/common/reducers/items.js +16 -24
- package/lib/common/reducers/modal.js +26 -33
- package/lib/common/reducers/moderation.js +17 -24
- package/lib/common/reducers/modifications.js +263 -192
- package/lib/common/reducers/outcomes.js +22 -29
- package/lib/common/reducers/printing.js +12 -19
- package/lib/common/reducers/qtiImports.js +18 -26
- package/lib/common/reducers/quizEntries.js +159 -165
- package/lib/common/reducers/quizExport.js +11 -18
- package/lib/common/reducers/quizSessionEvents.js +20 -26
- package/lib/common/reducers/quizSessionResults.js +15 -23
- package/lib/common/reducers/quizSessions.js +51 -48
- package/lib/common/reducers/quizzes.js +53 -49
- package/lib/common/reducers/rce.js +17 -24
- package/lib/common/reducers/regrading.js +21 -28
- package/lib/common/reducers/reporting.js +54 -48
- package/lib/common/reducers/scrolling.js +13 -20
- package/lib/common/reducers/sessionItemResults.js +15 -23
- package/lib/common/reducers/sessionItems.js +16 -24
- package/lib/common/reducers/sharedBanks.js +24 -30
- package/lib/common/reducers/sharingModal.js +15 -22
- package/lib/common/reducers/sidebar.js +15 -22
- package/lib/common/reducers/stimuli.js +16 -24
- package/lib/common/reducers/tagAssociations.js +138 -95
- package/lib/common/reducers/taking.js +135 -127
- package/lib/common/reducers/ui.js +33 -36
- package/lib/common/reducers/upload.js +22 -29
- package/lib/common/selectors/analyses.js +59 -32
- package/lib/common/selectors/calculator.js +20 -24
- package/lib/common/selectors/calls.js +12 -10
- package/lib/common/selectors/config.js +13 -17
- package/lib/common/selectors/interactionTypes.js +74 -46
- package/lib/common/selectors/items.js +19 -20
- package/lib/common/selectors/qtiImports.js +21 -25
- package/lib/common/selectors/quizSessionResults.js +14 -19
- package/lib/common/selectors/quizSessions.js +26 -29
- package/lib/common/selectors/quizzes.js +170 -101
- package/lib/common/selectors/rce.js +11 -11
- package/lib/common/selectors/reporting.js +15 -18
- package/lib/common/selectors/sessionItemResults.js +57 -36
- package/lib/common/selectors/sessionItems.js +69 -46
- package/lib/common/selectors/taking.js +58 -39
- package/lib/common/selectors/ui.js +6 -9
- package/lib/common/util/CustomPropTypes.js +57 -57
- package/lib/common/util/ElementsForSelectors.js +34 -16
- package/lib/common/util/ExhaustivePaginatedFetcher.js +399 -107
- package/lib/common/util/Fetcher.js +511 -371
- package/lib/common/util/MultiWeakMap.js +73 -56
- package/lib/common/util/PaginatedFetcher.js +307 -86
- package/lib/common/util/ThunkQueue.js +287 -104
- package/lib/common/util/TimeRecordingService.js +93 -62
- package/lib/common/util/TimerService.js +200 -163
- package/lib/common/util/cachePreviousArgs.js +18 -24
- package/lib/common/util/callHelpers.js +24 -30
- package/lib/common/util/clickHandlers.js +18 -26
- package/lib/common/util/componentForItem.js +17 -26
- package/lib/common/util/crossDomainMessaging.js +6 -12
- package/lib/common/util/debounceLatestPromise.js +55 -31
- package/lib/common/util/featureCheck.js +25 -37
- package/lib/common/util/fetchHelpers.js +7 -13
- package/lib/common/util/fitbCopyHelper.js +35 -39
- package/lib/common/util/formatTimespan.js +51 -61
- package/lib/common/util/generateDisplayPositions.js +19 -26
- package/lib/common/util/getClientIpAddress.js +160 -40
- package/lib/common/util/httpHeaders.js +13 -19
- package/lib/common/util/immutableHelpers.js +15 -23
- package/lib/common/util/instUIMessages.js +8 -14
- package/lib/common/util/interactionTypeMetadata.js +27 -43
- package/lib/common/util/interactionTypePropsHelper.js +80 -87
- package/lib/common/util/interactionTypeRecordForItem.js +15 -24
- package/lib/common/util/jsonify.js +48 -32
- package/lib/common/util/keyboardClickable.js +7 -13
- package/lib/common/util/localStoreService.js +63 -46
- package/lib/common/util/mathRenderingUtils.js +3 -9
- package/lib/common/util/maxContent.js +8 -15
- package/lib/common/util/modalHelpers.js +8 -11
- package/lib/common/util/noop.js +2 -9
- package/lib/common/util/persistedState.js +57 -45
- package/lib/common/util/printUtils.js +36 -42
- package/lib/common/util/rceChecker.js +132 -27
- package/lib/common/util/renderAlerts.js +19 -28
- package/lib/common/util/serializeEvent.js +42 -42
- package/lib/common/util/sessionStore.js +78 -61
- package/lib/common/util/useRemoteComponent.js +268 -111
- package/lib/common/util/valMap.js +8 -15
- package/lib/common/util/warningHelpers.js +150 -120
- package/lib/common/util/windowChecks.js +17 -23
- package/lib/common/util/withCachedArguments.js +21 -29
- package/lib/common/util/withDynamoPagination.js +337 -111
- package/lib/common/util/withStateCache.js +34 -40
- package/lib/config.js +14 -25
- package/lib/configureStore.js +161 -145
- package/lib/grading/api/quizEntryRegrades.js +34 -42
- package/lib/grading/api/updateResults.js +39 -41
- package/lib/index.js +159 -1690
- package/lib/messages/LocalStorageAdapter.js +45 -36
- package/lib/messages/LocalStorageLimits.js +81 -73
- package/lib/messages/StorageExhaustionError.js +118 -36
- package/lib/messages/postMessageService.js +110 -87
- package/lib/messages/subjectHandlers/forwardMessage.js +5 -11
- package/lib/messages/subjectHandlers/lti.capabilities.js +12 -18
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +14 -20
- package/lib/messages/subjectHandlers/lti.frameResize.js +9 -15
- package/lib/messages/subjectHandlers/lti.get_data.js +17 -25
- package/lib/messages/subjectHandlers/lti.put_data.js +39 -42
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +9 -16
- package/lib/messages/utils.js +6 -11
- package/lib/moderating/api/quizSessionEvents.js +19 -25
- package/lib/moderating/api/quizSessions.js +45 -55
- package/lib/moderating/components/events/Event.js +185 -125
- package/lib/moderating/components/events/PageBlurredEvent.js +109 -46
- package/lib/moderating/components/events/PageFocusedEvent.js +109 -46
- package/lib/moderating/components/events/RCEEvent.js +114 -50
- package/lib/moderating/components/events/ResponseEvent.js +219 -132
- package/lib/moderating/components/events/SessionStartEvent.js +116 -55
- package/lib/moderating/components/events/SessionSubmitEvent.js +116 -55
- package/lib/moderating/components/events/styles.js +23 -29
- package/lib/moderating/components/events/theme.js +10 -17
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +176 -121
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +156 -106
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +205 -141
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +246 -155
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +190 -93
- package/lib/moderating/components/resources/AccommodationsModal/index.js +203 -156
- package/lib/moderating/components/resources/ElapsedTime.js +132 -73
- package/lib/moderating/components/resources/EventDetails.js +16 -25
- package/lib/moderating/components/resources/ModerateTable/index.js +49 -45
- package/lib/moderating/components/resources/ModerateTable/presenter.js +503 -411
- package/lib/moderating/components/resources/ModerateTable/styles.js +47 -29
- package/lib/moderating/components/resources/ModerateTable/theme.js +7 -14
- package/lib/moderating/components/resources/ModerateTableRow/index.js +13 -21
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +465 -378
- package/lib/moderating/components/resources/ModerateTableRow/story.js +9 -17
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +23 -29
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +7 -13
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +16 -21
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +228 -167
- package/lib/moderating/components/resources/RetryGradePassbackButton/index.js +12 -20
- package/lib/moderating/components/resources/RetryGradePassbackButton/presenter.js +240 -82
- package/lib/moderating/components/resources/util/extractSessionData.js +41 -33
- package/lib/moderating/components/resources/util/renderEventSummary.js +29 -32
- package/lib/moderating/components/sidebar/ModerateTray/index.js +17 -19
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +299 -253
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +38 -44
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +291 -115
- package/lib/reduxStore.js +24 -32
- package/lib/reporting/api/fetchStudentAnalyses.js +146 -40
- package/lib/reporting/api/getAnalysesExport.js +163 -61
- package/lib/reporting/api/getAnalysesStatus.js +148 -45
- package/lib/reporting/api/getItemAnalyses.js +143 -35
- package/lib/reporting/api/getQuizAnalysis.js +143 -35
- package/lib/reporting/api/itemAnalyses.js +17 -21
- package/lib/reporting/api/quizAnalyses.js +20 -24
- package/lib/reporting/components/Caption/index.js +140 -63
- package/lib/reporting/components/Caption/styles.js +10 -16
- package/lib/reporting/components/Caption/theme.js +7 -15
- package/lib/reporting/components/MetricsListItem/index.js +183 -71
- package/lib/reporting/components/MetricsListItem/styles.js +10 -16
- package/lib/reporting/components/MetricsListItem/theme.js +0 -1
- package/lib/reporting/components/charts/CentileDistribution/index.js +2 -9
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +216 -154
- package/lib/reporting/components/charts/CentileDistribution/styles.js +39 -34
- package/lib/reporting/components/charts/CentileDistribution/theme.js +7 -15
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -10
- package/lib/reporting/components/charts/Distribution/Distribution.js +2 -9
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -9
- package/lib/reporting/components/charts/Distribution/index.js +2 -9
- package/lib/reporting/components/charts/Distribution/presenter.js +399 -319
- package/lib/reporting/components/charts/Distribution/styles.js +20 -26
- package/lib/reporting/components/charts/Distribution/theme.js +11 -18
- package/lib/reporting/components/charts/Legend/index.js +184 -94
- package/lib/reporting/components/charts/Legend/styles.js +66 -48
- package/lib/reporting/components/charts/Legend/theme.js +14 -23
- package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -9
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +214 -154
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +10 -16
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +8 -15
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +213 -127
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +48 -38
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +21 -32
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +9 -16
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +350 -277
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +105 -102
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +22 -31
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +216 -151
- package/lib/reporting/components/quizAnalysis/styles.js +35 -29
- package/lib/reporting/components/quizAnalysis/theme.js +10 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +149 -75
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +12 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +158 -83
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +16 -22
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +98 -60
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +102 -64
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +180 -114
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +89 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +7 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +170 -105
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +17 -23
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +6 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +159 -85
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +104 -66
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +248 -191
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +76 -58
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +7 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +158 -85
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -26
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +74 -41
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +134 -101
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +268 -238
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +8 -14
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +6 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +190 -150
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +8 -14
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +6 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +113 -79
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +183 -119
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +34 -40
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +8 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +105 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +175 -113
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +142 -77
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +38 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +6 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +6 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +125 -74
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +9 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +221 -174
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +139 -145
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +11 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +254 -207
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +140 -98
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +9 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +156 -110
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +14 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +5 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +32 -42
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +199 -130
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +13 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +6 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +125 -52
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +15 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +9 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +21 -27
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +14 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +366 -310
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +98 -80
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +14 -23
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +251 -161
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +38 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +14 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +4 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +269 -219
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +75 -57
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +11 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +2 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +169 -102
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +18 -24
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +10 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +229 -59
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +167 -46
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +4 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +326 -289
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +12 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +6 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +40 -46
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +427 -223
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +25 -20
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +131 -77
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +39 -32
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +381 -295
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +16 -22
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +11 -19
- package/lib/reporting/components/resources/ReportCard/index.js +154 -83
- package/lib/reporting/components/resources/ReportCard/styles.js +32 -27
- package/lib/reporting/components/resources/ReportCard/theme.js +10 -17
- package/lib/reporting/components/resources/ReportList/index.js +147 -69
- package/lib/reporting/components/resources/ReportList/styles.js +17 -23
- package/lib/reporting/components/resources/ReportList/theme.js +8 -14
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/index.js +3 -10
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +224 -172
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +66 -49
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +11 -19
- package/lib/reporting/components/resources/StudentAnalysis/fetchReport.js +175 -53
- package/lib/reporting/components/resources/StudentAnalysis/fetchReportStatus.js +168 -47
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +36 -43
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +426 -230
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +122 -65
- package/lib/reporting/components/resources/common/ExportButton/index.js +21 -29
- package/lib/reporting/components/resources/common/errorCodes.js +26 -32
- package/lib/reporting/components/resources/common/errorMessages.js +25 -32
- package/lib/reporting/components/resources/common/exportReports.js +177 -60
- package/lib/reporting/components/resources/common/generateReports.js +219 -83
- package/lib/reporting/components/resources/common/propTypes.js +185 -180
- package/lib/reporting/components/resources/common/utils.js +17 -23
- package/lib/taking/api/taking.js +404 -309
- package/lib/taking/learnosity/index.js +274 -131
- package/package.json +14 -10
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -40
- package/es/banks/components/BankSearch/BankSearch.stories.js +0 -50
- package/es/banks/components/NavWrapper/NavWrapper.examples.js +0 -14
- package/es/banks/components/SharingModal/ShareList/ShareList.examples.js +0 -21
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +0 -113
- package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +0 -22
- package/es/building/components/resources/quiz/title/Title/Title.examples.js +0 -39
- package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +0 -10
- package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +0 -19
- package/es/common/components/Pin/Pin.examples.js +0 -13
- package/es/common/components/PreviewFrame/examples.config.js +0 -11
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -30
- package/es/common/components/resources/BankSelection/BankSelection.examples.js +0 -19
- package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +0 -33
- package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +0 -11
- package/es/common/components/shared/FormattedDuration/FormattedDuration.examples.js +0 -15
- package/es/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +0 -18
- package/es/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +0 -16
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +0 -49
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -71
- package/es/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +0 -79
- package/es/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +0 -13
- package/es/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +0 -25
- package/es/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +0 -9
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +0 -33
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +0 -48
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +0 -174
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -47
- package/lib/banks/components/BankSearch/BankSearch.stories.js +0 -57
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +0 -21
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +0 -27
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +0 -120
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +0 -29
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +0 -46
- package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +0 -17
- package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +0 -26
- package/lib/common/components/Pin/Pin.examples.js +0 -19
- package/lib/common/components/PreviewFrame/examples.config.js +0 -18
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -37
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +0 -25
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +0 -40
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +0 -18
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +0 -22
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +0 -24
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +0 -22
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +0 -27
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +0 -55
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -78
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +0 -85
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +0 -19
- package/lib/package.json +0 -1
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +0 -31
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +0 -15
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +0 -40
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +0 -55
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +0 -181
|
@@ -1,520 +1,722 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.Bank = void 0;
|
|
8
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
var _react = require("react");
|
|
17
|
-
var immutable = _interopRequireWildcard(require("immutable"));
|
|
18
|
-
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
19
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
|
-
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
21
|
-
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
22
|
-
var _uiIcons = require("@instructure/ui-icons");
|
|
23
|
-
var _uiBreadcrumb = require("@instructure/ui-breadcrumb");
|
|
24
|
-
var _uiButtons = require("@instructure/ui-buttons");
|
|
25
|
-
var _uiHeading = require("@instructure/ui-heading");
|
|
26
|
-
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
27
|
-
var _emotion = require("@instructure/emotion");
|
|
28
|
-
var _uiCheckbox = require("@instructure/ui-checkbox");
|
|
29
|
-
var _uiView = require("@instructure/ui-view");
|
|
30
|
-
var _HeaderBreadCrumb = require("../HeaderBreadCrumb");
|
|
31
|
-
var _Bank2 = _interopRequireDefault(require("../../../common/records/Bank"));
|
|
32
|
-
var _Page = _interopRequireDefault(require("../../../common/components/layout/Page"));
|
|
33
|
-
var _PaginatedCollection = _interopRequireDefault(require("../../../common/components/shared/PaginatedCollection"));
|
|
34
|
-
var _QuizEntry = _interopRequireDefault(require("../../../common/records/QuizEntry"));
|
|
35
|
-
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/format-message"));
|
|
36
|
-
var _debounceLatestPromise = _interopRequireDefault(require("../../../common/util/debounceLatestPromise"));
|
|
37
|
-
var _AddBankEntryModal = _interopRequireDefault(require("../../../banks/components/AddBankEntryModal"));
|
|
38
|
-
var _BankEntriesList = _interopRequireDefault(require("../../../banks/components/BankEntriesList"));
|
|
39
|
-
var _BankSearch = _interopRequireDefault(require("../../../banks/components/BankSearch"));
|
|
40
|
-
var _HeaderMenu = _interopRequireDefault(require("../../../banks/components/HeaderMenu"));
|
|
41
|
-
var _NavWrapper = _interopRequireDefault(require("../NavWrapper"));
|
|
42
|
-
var _quizCommon = require("@instructure/quiz-common");
|
|
43
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
44
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
45
|
-
var _dec, _class, _Bank;
|
|
46
|
-
/** @jsx jsx */
|
|
47
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
48
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
49
|
-
function _callSuper(_this, derived, args) {
|
|
50
|
-
function isNativeReflectConstruct() {
|
|
51
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
52
|
-
if (Reflect.construct.sham) return false;
|
|
53
|
-
if (typeof Proxy === "function") return true;
|
|
54
|
-
try {
|
|
55
|
-
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
56
|
-
} catch (e) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
derived = (0, _getPrototypeOf2["default"])(derived);
|
|
61
|
-
return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
|
|
1
|
+
/** @jsx jsx */ function _array_like_to_array(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
62
5
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
6
|
+
function _array_without_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
|
+
}
|
|
9
|
+
function _assert_this_initialized(self) {
|
|
10
|
+
if (self === void 0) {
|
|
11
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
69
12
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
(0, _defineProperty2["default"])(_this2, "renderHeaderMenu", function () {
|
|
81
|
-
if (!_this2.props.isCompact) {
|
|
82
|
-
return (0, _emotion.jsx)(_HeaderMenu["default"], {
|
|
83
|
-
bank: _this2.props.bank,
|
|
84
|
-
iceTopNavBarEnabled: _this2.props.iceTopNavBarEnabled,
|
|
85
|
-
id: "BankMenu",
|
|
86
|
-
renderIcon: (0, _emotion.jsx)(_uiIcons.IconMoreSolid, null)
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
(0, _defineProperty2["default"])(_this2, "storeCreateBankEntryButtonRef", function (c) {
|
|
91
|
-
_this2.createBankEntryButton = c;
|
|
92
|
-
});
|
|
93
|
-
(0, _defineProperty2["default"])(_this2, "renderBankBreadCrumbLink", function () {
|
|
94
|
-
return (0, _emotion.jsx)(_uiBreadcrumb.BreadcrumbLink, {
|
|
95
|
-
key: "bank"
|
|
96
|
-
}, _this2.props.bank.title);
|
|
97
|
-
});
|
|
98
|
-
(0, _defineProperty2["default"])(_this2, "toggleCheckbox", function () {
|
|
99
|
-
// disable until request resolves
|
|
100
|
-
_this2.setState({
|
|
101
|
-
shareWithCourseCheckboxDisabled: true
|
|
102
|
-
});
|
|
103
|
-
_this2.changeSharedPermissions();
|
|
104
|
-
});
|
|
105
|
-
(0, _defineProperty2["default"])(_this2, "unshareBankWithCourse", /*#__PURE__*/function () {
|
|
106
|
-
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(sharedBank) {
|
|
107
|
-
var _this2$props, updateSharedBankPermission, bankId, getSharedBank, scope;
|
|
108
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
109
|
-
while (1) switch (_context.prev = _context.next) {
|
|
110
|
-
case 0:
|
|
111
|
-
_this2$props = _this2.props, updateSharedBankPermission = _this2$props.updateSharedBankPermission, bankId = _this2$props.bankId, getSharedBank = _this2$props.getSharedBank, scope = _this2$props.scope;
|
|
112
|
-
_context.next = 3;
|
|
113
|
-
return updateSharedBankPermission(bankId, sharedBank.get('id'), _quizCommon.REMOVED_ACCESS);
|
|
114
|
-
case 3:
|
|
115
|
-
getSharedBank(bankId, scope.type, scope.uuid)["catch"](function (err) {
|
|
116
|
-
// make sure the user still has access to the bank
|
|
117
|
-
if (err.response.status === 401) {
|
|
118
|
-
_this2.props.navigateToBanks();
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
case 4:
|
|
122
|
-
case "end":
|
|
123
|
-
return _context.stop();
|
|
124
|
-
}
|
|
125
|
-
}, _callee);
|
|
126
|
-
}));
|
|
127
|
-
return function (_x) {
|
|
128
|
-
return _ref.apply(this, arguments);
|
|
129
|
-
};
|
|
130
|
-
}());
|
|
131
|
-
(0, _defineProperty2["default"])(_this2, "translatedPermissionLevel", function (permission) {
|
|
132
|
-
return (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _quizCommon.CAN_EDIT, (0, _formatMessage["default"])('edit')), _quizCommon.READ_ONLY, (0, _formatMessage["default"])('view'))[permission];
|
|
133
|
-
});
|
|
134
|
-
(0, _defineProperty2["default"])(_this2, "confirmUnshareBankWithCourse", function () {
|
|
135
|
-
var confirmText = (0, _formatMessage["default"])('You are about to remove { accessLevel } access for { entityTitle } to this bank.', {
|
|
136
|
-
accessLevel: _this2.translatedPermissionLevel(_this2.props.courseSharedBank.get('permission')),
|
|
137
|
-
entityTitle: _this2.props.scope.title
|
|
138
|
-
});
|
|
139
|
-
_this2.props.withConfirm((0, _partial["default"])(_this2.unshareBankWithCourse, _this2.props.courseSharedBank), {
|
|
140
|
-
title: (0, _formatMessage["default"])('Unshare Bank with Course'),
|
|
141
|
-
text: confirmText,
|
|
142
|
-
continueText: (0, _formatMessage["default"])('Confirm'),
|
|
143
|
-
onCancel: _this2.onCancelUnshareBankWithCourse
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
(0, _defineProperty2["default"])(_this2, "onCancelUnshareBankWithCourse", function () {
|
|
147
|
-
_this2.setState({
|
|
148
|
-
shareWithCourseCheckboxDisabled: false
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
(0, _defineProperty2["default"])(_this2, "addBankToQuiz", function () {
|
|
152
|
-
var newEntry = _QuizEntry["default"].create({
|
|
153
|
-
entryId: _this2.props.bankId,
|
|
154
|
-
entryType: 'Bank',
|
|
155
|
-
position: _this2.props.position,
|
|
156
|
-
stimulusQuizEntryId: _this2.props.stimulusId
|
|
157
|
-
});
|
|
158
|
-
_this2.props.addEntryToQuiz(_this2.props.activeQuizId, newEntry.entryId, newEntry.entryType, newEntry.getProperties(), false).then(function () {
|
|
159
|
-
_this2.props.screenreaderNotification((0, _formatMessage["default"])('Bank was successfully added to the quiz'));
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
(0, _defineProperty2["default"])(_this2, "renderTopLeftMenu", function () {
|
|
163
|
-
return (0, _emotion.jsx)("div", {
|
|
164
|
-
css: _this2.props.styles.topLeftMenu
|
|
165
|
-
}, _this2.renderMultiAdd());
|
|
166
|
-
});
|
|
167
|
-
(0, _defineProperty2["default"])(_this2, "renderTopRightMenu", function () {
|
|
168
|
-
return (0, _emotion.jsx)("div", {
|
|
169
|
-
css: _this2.props.styles.topRightMenu
|
|
170
|
-
}, _this2.renderNewBankEntryButton());
|
|
171
|
-
});
|
|
172
|
-
(0, _defineProperty2["default"])(_this2, "announceResults", function (_ref2) {
|
|
173
|
-
var totalPages = _ref2.totalPages;
|
|
174
|
-
var message = (0, _formatMessage["default"])("{\n count, plural,\n =0 {No search results found}\n one {Displaying one page of results}\n other {Displaying # pages of results}\n }", {
|
|
175
|
-
count: totalPages
|
|
176
|
-
});
|
|
177
|
-
// Audibly announce when search results are ready.
|
|
178
|
-
// We debounce using a larger interval for a11y, so that the user isn't
|
|
179
|
-
// flooded with "Search results ready" messages every time they type a
|
|
180
|
-
// character
|
|
181
|
-
_this2.props.screenreaderNotification(message);
|
|
182
|
-
});
|
|
183
|
-
(0, _defineProperty2["default"])(_this2, "debouncedAnnounceResults", (0, _debounce["default"])(_this2.announceResults, 1000));
|
|
184
|
-
(0, _defineProperty2["default"])(_this2, "getPage", function (page, search) {
|
|
185
|
-
var _this2$props2 = _this2.props,
|
|
186
|
-
getBankEntries = _this2$props2.getBankEntries,
|
|
187
|
-
bankId = _this2$props2.bankId,
|
|
188
|
-
useBankSearch = _this2$props2.useBankSearch;
|
|
189
|
-
var text = search.get('text');
|
|
190
|
-
var interactionTypes = search.get('interactionTypes', immutable.Set()).toJS();
|
|
191
|
-
var tagIds = search.get('tags', []).map(function (tag) {
|
|
192
|
-
return tag.id;
|
|
193
|
-
});
|
|
194
|
-
var filters = {
|
|
195
|
-
interactionTypes: interactionTypes,
|
|
196
|
-
tags: tagIds
|
|
197
|
-
};
|
|
198
|
-
var params = {
|
|
199
|
-
page: page,
|
|
200
|
-
text: text,
|
|
201
|
-
filters: filters
|
|
202
|
-
};
|
|
203
|
-
var resultPage = getBankEntries(bankId, useBankSearch, params);
|
|
204
|
-
if (resultPage) {
|
|
205
|
-
return resultPage.then(function (results) {
|
|
206
|
-
_this2.debouncedAnnounceResults(results);
|
|
207
|
-
return results;
|
|
208
|
-
});
|
|
209
|
-
} else {
|
|
210
|
-
return Promise.resolve(null);
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
(0, _defineProperty2["default"])(_this2, "getPageDebounced", (0, _debounceLatestPromise["default"])(function () {
|
|
214
|
-
var _this3;
|
|
215
|
-
return (_this3 = _this2).getPage.apply(_this3, arguments);
|
|
216
|
-
}, 100));
|
|
217
|
-
(0, _defineProperty2["default"])(_this2, "renderRecords", function (recordIds) {
|
|
218
|
-
var addEntryFunc = _this2.props.isCompact && _this2.props.addEntryToQuiz || null;
|
|
219
|
-
return (0, _emotion.jsx)(_BankEntriesList["default"], {
|
|
220
|
-
addEntryToQuiz: addEntryFunc,
|
|
221
|
-
bank: _this2.props.bank,
|
|
222
|
-
navigateToBankEntry: _this2.props.navigateToBankEntry,
|
|
223
|
-
recordIds: recordIds,
|
|
224
|
-
isQuizContentLocked: _this2.props.isQuizContentLocked
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
return _this2;
|
|
228
|
-
}
|
|
229
|
-
(0, _inherits2["default"])(Bank, _Component);
|
|
230
|
-
return (0, _createClass2["default"])(Bank, [{
|
|
231
|
-
key: "componentDidMount",
|
|
232
|
-
value: function componentDidMount() {
|
|
233
|
-
this.props.resetSearch(this.props.bankId);
|
|
234
|
-
if (this.props.onError) {
|
|
235
|
-
this.props.getBank(this.props.bankId)["catch"](this.props.onError);
|
|
236
|
-
if (this.shouldRenderShareWithCourseCheckbox()) {
|
|
237
|
-
this.props.getSharedBank(this.props.bankId, this.props.scope.type, this.props.scope.uuid)["catch"](this.props.onError);
|
|
238
|
-
}
|
|
239
|
-
} else {
|
|
240
|
-
this.props.getBank(this.props.bankId);
|
|
241
|
-
if (this.shouldRenderShareWithCourseCheckbox()) {
|
|
242
|
-
this.props.getSharedBank(this.props.bankId, this.props.scope.type, this.props.scope.uuid);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// when courseSharedBank is already loaded
|
|
247
|
-
if (this.props.courseSharedBank) {
|
|
248
|
-
this.setShareWithCourseCheckbox();
|
|
249
|
-
}
|
|
13
|
+
return self;
|
|
14
|
+
}
|
|
15
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
16
|
+
try {
|
|
17
|
+
var info = gen[key](arg);
|
|
18
|
+
var value = info.value;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
reject(error);
|
|
21
|
+
return;
|
|
250
22
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var permissionChanged = ((_prevProps$courseShar = prevProps.courseSharedBank) === null || _prevProps$courseShar === void 0 ? void 0 : _prevProps$courseShar.get('permission')) !== ((_this$props$courseSha = this.props.courseSharedBank) === null || _this$props$courseSha === void 0 ? void 0 : _this$props$courseSha.get('permission'));
|
|
256
|
-
if (this.props.courseSharedBank && permissionChanged) {
|
|
257
|
-
this.setShareWithCourseCheckbox();
|
|
258
|
-
}
|
|
23
|
+
if (info.done) {
|
|
24
|
+
resolve(value);
|
|
25
|
+
} else {
|
|
26
|
+
Promise.resolve(value).then(_next, _throw);
|
|
259
27
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
28
|
+
}
|
|
29
|
+
function _async_to_generator(fn) {
|
|
30
|
+
return function() {
|
|
31
|
+
var self = this, args = arguments;
|
|
32
|
+
return new Promise(function(resolve, reject) {
|
|
33
|
+
var gen = fn.apply(self, args);
|
|
34
|
+
function _next(value) {
|
|
35
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
36
|
+
}
|
|
37
|
+
function _throw(err) {
|
|
38
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
39
|
+
}
|
|
40
|
+
_next(undefined);
|
|
272
41
|
});
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
value: function placeholderCourseSharedBankKey() {
|
|
283
|
-
return "notshared_".concat(this.props.bankId, "_").concat(this.props.scope.uuid);
|
|
284
|
-
}
|
|
285
|
-
}, {
|
|
286
|
-
key: "renderNav",
|
|
287
|
-
value: function renderNav() {
|
|
288
|
-
var _this$props = this.props,
|
|
289
|
-
scope = _this$props.scope,
|
|
290
|
-
closeTray = _this$props.closeTray,
|
|
291
|
-
navigateToBanks = _this$props.navigateToBanks,
|
|
292
|
-
navigateToBuild = _this$props.navigateToBuild,
|
|
293
|
-
returnToUrl = _this$props.returnToUrl;
|
|
294
|
-
var isScopeEmpty = !Object.keys(scope).length;
|
|
295
|
-
return (0, _emotion.jsx)(_NavWrapper["default"], {
|
|
296
|
-
closeTray: closeTray,
|
|
297
|
-
navigateToBanks: navigateToBanks,
|
|
298
|
-
navigateToBuild: navigateToBuild,
|
|
299
|
-
renderHeaderMenu: this.renderHeaderMenu,
|
|
300
|
-
returnToUrl: isScopeEmpty ? null : returnToUrl,
|
|
301
|
-
scope: scope,
|
|
302
|
-
isCompact: this.props.isCompact,
|
|
303
|
-
iceTopNavBarEnabled: this.props.iceTopNavBarEnabled,
|
|
304
|
-
menuItemPath: "/banks/".concat(this.props.bankId)
|
|
305
|
-
}, this.renderBankBreadCrumbLink());
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function _call_super(_this, derived, args) {
|
|
45
|
+
derived = _get_prototype_of(derived);
|
|
46
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
47
|
+
}
|
|
48
|
+
function _class_call_check(instance, Constructor) {
|
|
49
|
+
if (!(instance instanceof Constructor)) {
|
|
50
|
+
throw new TypeError("Cannot call a class as a function");
|
|
306
51
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
52
|
+
}
|
|
53
|
+
function _defineProperties(target, props) {
|
|
54
|
+
for(var i = 0; i < props.length; i++){
|
|
55
|
+
var descriptor = props[i];
|
|
56
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
57
|
+
descriptor.configurable = true;
|
|
58
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
59
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
315
60
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
61
|
+
}
|
|
62
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
63
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
64
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
65
|
+
return Constructor;
|
|
66
|
+
}
|
|
67
|
+
function _define_property(obj, key, value) {
|
|
68
|
+
if (key in obj) {
|
|
69
|
+
Object.defineProperty(obj, key, {
|
|
70
|
+
value: value,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true
|
|
323
74
|
});
|
|
324
|
-
|
|
75
|
+
} else {
|
|
76
|
+
obj[key] = value;
|
|
325
77
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
};
|
|
338
|
-
this.props.removeSharedBank(this.placeholderCourseSharedBankKey());
|
|
339
|
-
this.props.shareBank(shareBank);
|
|
340
|
-
} else {
|
|
341
|
-
this.confirmUnshareBankWithCourse();
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}, {
|
|
346
|
-
key: "shouldRenderShareWithCourseCheckbox",
|
|
347
|
-
value: function shouldRenderShareWithCourseCheckbox() {
|
|
348
|
-
return this.props.showShareBankFromTray && this.props.scope.type === 'course' && this.props.scope.title && this.props.scope.uuid;
|
|
349
|
-
}
|
|
350
|
-
}, {
|
|
351
|
-
key: "renderCheckbox",
|
|
352
|
-
value: function renderCheckbox() {
|
|
353
|
-
if (!this.shouldRenderShareWithCourseCheckbox()) {
|
|
354
|
-
return null;
|
|
355
|
-
}
|
|
356
|
-
var label = (0, _formatMessage["default"])('Share with { courseName }', {
|
|
357
|
-
courseName: this.props.scope.title
|
|
358
|
-
});
|
|
359
|
-
return (0, _emotion.jsx)(_uiView.View, {
|
|
360
|
-
margin: "small 0",
|
|
361
|
-
as: "div"
|
|
362
|
-
}, (0, _emotion.jsx)(_uiCheckbox.Checkbox, {
|
|
363
|
-
checked: this.state.sharedWithCourse,
|
|
364
|
-
label: label,
|
|
365
|
-
onChange: this.toggleCheckbox,
|
|
366
|
-
disabled: this.props.bank.canEdit() ? this.state.shareWithCourseCheckboxDisabled : true,
|
|
367
|
-
"data-automation": "sdk-share-bank-with-course-checkbox"
|
|
368
|
-
}));
|
|
369
|
-
}
|
|
370
|
-
}, {
|
|
371
|
-
key: "renderModals",
|
|
372
|
-
value: function renderModals() {
|
|
373
|
-
return (0, _emotion.jsx)("div", null, this.renderAddBankEntryModal());
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
function _get_prototype_of(o) {
|
|
81
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
82
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
83
|
+
};
|
|
84
|
+
return _get_prototype_of(o);
|
|
85
|
+
}
|
|
86
|
+
function _inherits(subClass, superClass) {
|
|
87
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
88
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
374
89
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
90
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
91
|
+
constructor: {
|
|
92
|
+
value: subClass,
|
|
93
|
+
writable: true,
|
|
94
|
+
configurable: true
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
98
|
+
}
|
|
99
|
+
function _iterable_to_array(iter) {
|
|
100
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
101
|
+
}
|
|
102
|
+
function _non_iterable_spread() {
|
|
103
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
104
|
+
}
|
|
105
|
+
function _possible_constructor_return(self, call) {
|
|
106
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
107
|
+
return call;
|
|
390
108
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
return
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
109
|
+
return _assert_this_initialized(self);
|
|
110
|
+
}
|
|
111
|
+
function _set_prototype_of(o, p) {
|
|
112
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
113
|
+
o.__proto__ = p;
|
|
114
|
+
return o;
|
|
115
|
+
};
|
|
116
|
+
return _set_prototype_of(o, p);
|
|
117
|
+
}
|
|
118
|
+
function _to_consumable_array(arr) {
|
|
119
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
120
|
+
}
|
|
121
|
+
function _type_of(obj) {
|
|
122
|
+
"@swc/helpers - typeof";
|
|
123
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
124
|
+
}
|
|
125
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
126
|
+
if (!o) return;
|
|
127
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
128
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
129
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
130
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
131
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
132
|
+
}
|
|
133
|
+
function _is_native_reflect_construct() {
|
|
134
|
+
try {
|
|
135
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
136
|
+
} catch (_) {}
|
|
137
|
+
return (_is_native_reflect_construct = function() {
|
|
138
|
+
return !!result;
|
|
139
|
+
})();
|
|
140
|
+
}
|
|
141
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
142
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
143
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
144
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
145
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
146
|
+
}
|
|
147
|
+
function _ts_generator(thisArg, body) {
|
|
148
|
+
var f, y, t, _ = {
|
|
149
|
+
label: 0,
|
|
150
|
+
sent: function() {
|
|
151
|
+
if (t[0] & 1) throw t[1];
|
|
152
|
+
return t[1];
|
|
153
|
+
},
|
|
154
|
+
trys: [],
|
|
155
|
+
ops: []
|
|
156
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
157
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
158
|
+
return this;
|
|
159
|
+
}), g;
|
|
160
|
+
function verb(n) {
|
|
161
|
+
return function(v) {
|
|
162
|
+
return step([
|
|
163
|
+
n,
|
|
164
|
+
v
|
|
165
|
+
]);
|
|
166
|
+
};
|
|
405
167
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
168
|
+
function step(op) {
|
|
169
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
170
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
171
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
172
|
+
if (y = 0, t) op = [
|
|
173
|
+
op[0] & 2,
|
|
174
|
+
t.value
|
|
175
|
+
];
|
|
176
|
+
switch(op[0]){
|
|
177
|
+
case 0:
|
|
178
|
+
case 1:
|
|
179
|
+
t = op;
|
|
180
|
+
break;
|
|
181
|
+
case 4:
|
|
182
|
+
_.label++;
|
|
183
|
+
return {
|
|
184
|
+
value: op[1],
|
|
185
|
+
done: false
|
|
186
|
+
};
|
|
187
|
+
case 5:
|
|
188
|
+
_.label++;
|
|
189
|
+
y = op[1];
|
|
190
|
+
op = [
|
|
191
|
+
0
|
|
192
|
+
];
|
|
193
|
+
continue;
|
|
194
|
+
case 7:
|
|
195
|
+
op = _.ops.pop();
|
|
196
|
+
_.trys.pop();
|
|
197
|
+
continue;
|
|
198
|
+
default:
|
|
199
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
200
|
+
_ = 0;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
204
|
+
_.label = op[1];
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
208
|
+
_.label = t[1];
|
|
209
|
+
t = op;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
if (t && _.label < t[2]) {
|
|
213
|
+
_.label = t[2];
|
|
214
|
+
_.ops.push(op);
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
if (t[2]) _.ops.pop();
|
|
218
|
+
_.trys.pop();
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
op = body.call(thisArg, _);
|
|
222
|
+
} catch (e) {
|
|
223
|
+
op = [
|
|
224
|
+
6,
|
|
225
|
+
e
|
|
226
|
+
];
|
|
227
|
+
y = 0;
|
|
228
|
+
} finally{
|
|
229
|
+
f = t = 0;
|
|
230
|
+
}
|
|
231
|
+
if (op[0] & 5) throw op[1];
|
|
232
|
+
return {
|
|
233
|
+
value: op[0] ? op[1] : void 0,
|
|
234
|
+
done: true
|
|
235
|
+
};
|
|
410
236
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
237
|
+
}
|
|
238
|
+
import { Component } from 'react';
|
|
239
|
+
import * as immutable from 'immutable';
|
|
240
|
+
import debounce from 'lodash/debounce';
|
|
241
|
+
import PropTypes from 'prop-types';
|
|
242
|
+
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
243
|
+
import partial from 'lodash/partial';
|
|
244
|
+
import { IconMoreSolid, IconPlusLine } from '@instructure/ui-icons';
|
|
245
|
+
import { BreadcrumbLink } from '@instructure/ui-breadcrumb';
|
|
246
|
+
import { Button } from '@instructure/ui-buttons';
|
|
247
|
+
import { Heading } from '@instructure/ui-heading';
|
|
248
|
+
import { AccessibleContent } from '@instructure/ui-a11y-content';
|
|
249
|
+
import { jsx } from '@instructure/emotion';
|
|
250
|
+
import { Checkbox } from '@instructure/ui-checkbox';
|
|
251
|
+
import { View } from '@instructure/ui-view';
|
|
252
|
+
import { HeaderBreadCrumb } from '../HeaderBreadCrumb';
|
|
253
|
+
import BankRecord from '../../../common/records/Bank';
|
|
254
|
+
import Page from '../../../common/components/layout/Page';
|
|
255
|
+
import PaginatedCollection from '../../../common/components/shared/PaginatedCollection';
|
|
256
|
+
import QuizEntry from '../../../common/records/QuizEntry';
|
|
257
|
+
import t from '@instructure/quiz-i18n/format-message';
|
|
258
|
+
import debounceLatestPromise from '../../../common/util/debounceLatestPromise';
|
|
259
|
+
import AddBankEntryModal from '../../../banks/components/AddBankEntryModal';
|
|
260
|
+
import BankEntriesList from '../../../banks/components/BankEntriesList';
|
|
261
|
+
import BankSearch from '../../../banks/components/BankSearch';
|
|
262
|
+
import HeaderMenu from '../../../banks/components/HeaderMenu';
|
|
263
|
+
import NavWrapper from '../NavWrapper';
|
|
264
|
+
import { ADD_BANK_ENTRY_MODAL, BANKS_BANK_ENTRY_PAGINATION, CAN_EDIT, REMOVED_ACCESS, READ_ONLY, withStyleOverrides } from '@instructure/quiz-common';
|
|
265
|
+
import generateStyle from './styles';
|
|
266
|
+
import generateComponentTheme from './theme';
|
|
267
|
+
export var Bank = /*#__PURE__*/ function(Component) {
|
|
268
|
+
"use strict";
|
|
269
|
+
_inherits(Bank, Component);
|
|
270
|
+
function Bank() {
|
|
271
|
+
_class_call_check(this, Bank);
|
|
272
|
+
var _this;
|
|
273
|
+
var _this1;
|
|
274
|
+
_this = _call_super(this, Bank, arguments), _this1 = _this, _define_property(_this1, "state", {
|
|
275
|
+
sharedWithCourse: false,
|
|
276
|
+
shareWithCourseCheckboxDisabled: true
|
|
277
|
+
}), _define_property(_this1, "openAddBankEntryModal", function() {
|
|
278
|
+
_this1.props.openModal(ADD_BANK_ENTRY_MODAL, {
|
|
279
|
+
modalTrigger: _this1.createBankEntryButton
|
|
280
|
+
});
|
|
281
|
+
}), _define_property(_this1, "renderHeaderMenu", function() {
|
|
282
|
+
if (!_this1.props.isCompact) {
|
|
283
|
+
return /*#__PURE__*/ jsx(HeaderMenu, {
|
|
284
|
+
bank: _this1.props.bank,
|
|
285
|
+
iceTopNavBarEnabled: _this1.props.iceTopNavBarEnabled,
|
|
286
|
+
id: "BankMenu",
|
|
287
|
+
renderIcon: /*#__PURE__*/ jsx(IconMoreSolid, null)
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}), _define_property(_this1, "storeCreateBankEntryButtonRef", function(c) {
|
|
291
|
+
_this1.createBankEntryButton = c;
|
|
292
|
+
}), _define_property(_this1, "renderBankBreadCrumbLink", function() {
|
|
293
|
+
return /*#__PURE__*/ jsx(BreadcrumbLink, {
|
|
294
|
+
key: "bank"
|
|
295
|
+
}, _this1.props.bank.title);
|
|
296
|
+
}), _define_property(_this1, "toggleCheckbox", function() {
|
|
297
|
+
// disable until request resolves
|
|
298
|
+
_this1.setState({
|
|
299
|
+
shareWithCourseCheckboxDisabled: true
|
|
300
|
+
});
|
|
301
|
+
_this1.changeSharedPermissions();
|
|
302
|
+
}), _define_property(_this1, "unshareBankWithCourse", function(sharedBank) {
|
|
303
|
+
return _async_to_generator(function() {
|
|
304
|
+
var _this_props, updateSharedBankPermission, bankId, getSharedBank, scope;
|
|
305
|
+
return _ts_generator(this, function(_state) {
|
|
306
|
+
switch(_state.label){
|
|
307
|
+
case 0:
|
|
308
|
+
_this_props = _this1.props, updateSharedBankPermission = _this_props.updateSharedBankPermission, bankId = _this_props.bankId, getSharedBank = _this_props.getSharedBank, scope = _this_props.scope;
|
|
309
|
+
return [
|
|
310
|
+
4,
|
|
311
|
+
updateSharedBankPermission(bankId, sharedBank.get('id'), REMOVED_ACCESS)
|
|
312
|
+
];
|
|
313
|
+
case 1:
|
|
314
|
+
_state.sent();
|
|
315
|
+
getSharedBank(bankId, scope.type, scope.uuid).catch(function(err) {
|
|
316
|
+
// make sure the user still has access to the bank
|
|
317
|
+
if (err.response.status === 401) {
|
|
318
|
+
_this1.props.navigateToBanks();
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
return [
|
|
322
|
+
2
|
|
323
|
+
];
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
})();
|
|
327
|
+
}), _define_property(_this1, "translatedPermissionLevel", function(permission) {
|
|
328
|
+
var _obj;
|
|
329
|
+
return (_obj = {}, _define_property(_obj, CAN_EDIT, t('edit')), _define_property(_obj, READ_ONLY, t('view')), _obj)[permission];
|
|
330
|
+
}), _define_property(_this1, "confirmUnshareBankWithCourse", function() {
|
|
331
|
+
var confirmText = t('You are about to remove { accessLevel } access for { entityTitle } to this bank.', {
|
|
332
|
+
accessLevel: _this1.translatedPermissionLevel(_this1.props.courseSharedBank.get('permission')),
|
|
333
|
+
entityTitle: _this1.props.scope.title
|
|
334
|
+
});
|
|
335
|
+
_this1.props.withConfirm(partial(_this1.unshareBankWithCourse, _this1.props.courseSharedBank), {
|
|
336
|
+
title: t('Unshare Bank with Course'),
|
|
337
|
+
text: confirmText,
|
|
338
|
+
continueText: t('Confirm'),
|
|
339
|
+
onCancel: _this1.onCancelUnshareBankWithCourse
|
|
340
|
+
});
|
|
341
|
+
}), _define_property(_this1, "onCancelUnshareBankWithCourse", function() {
|
|
342
|
+
_this1.setState({
|
|
343
|
+
shareWithCourseCheckboxDisabled: false
|
|
344
|
+
});
|
|
345
|
+
}), _define_property(_this1, "addBankToQuiz", function() {
|
|
346
|
+
var newEntry = QuizEntry.create({
|
|
347
|
+
entryId: _this1.props.bankId,
|
|
348
|
+
entryType: 'Bank',
|
|
349
|
+
position: _this1.props.position,
|
|
350
|
+
stimulusQuizEntryId: _this1.props.stimulusId
|
|
351
|
+
});
|
|
352
|
+
_this1.props.addEntryToQuiz(_this1.props.activeQuizId, newEntry.entryId, newEntry.entryType, newEntry.getProperties(), false).then(function() {
|
|
353
|
+
_this1.props.screenreaderNotification(t('Bank was successfully added to the quiz'));
|
|
354
|
+
});
|
|
355
|
+
}), _define_property(_this1, "renderTopLeftMenu", function() {
|
|
356
|
+
return /*#__PURE__*/ jsx("div", {
|
|
357
|
+
css: _this1.props.styles.topLeftMenu
|
|
358
|
+
}, _this1.renderMultiAdd());
|
|
359
|
+
}), _define_property(_this1, "renderTopRightMenu", function() {
|
|
360
|
+
return /*#__PURE__*/ jsx("div", {
|
|
361
|
+
css: _this1.props.styles.topRightMenu
|
|
362
|
+
}, _this1.renderNewBankEntryButton());
|
|
363
|
+
}), _define_property(_this1, "announceResults", function(param) {
|
|
364
|
+
var totalPages = param.totalPages;
|
|
365
|
+
var message = t("{\n count, plural,\n =0 {No search results found}\n one {Displaying one page of results}\n other {Displaying # pages of results}\n }", {
|
|
366
|
+
count: totalPages
|
|
367
|
+
});
|
|
368
|
+
// Audibly announce when search results are ready.
|
|
369
|
+
// We debounce using a larger interval for a11y, so that the user isn't
|
|
370
|
+
// flooded with "Search results ready" messages every time they type a
|
|
371
|
+
// character
|
|
372
|
+
_this1.props.screenreaderNotification(message);
|
|
373
|
+
}), _define_property(_this1, "debouncedAnnounceResults", debounce(_this1.announceResults, 1000)), _define_property(_this1, "getPage", function(page, search) {
|
|
374
|
+
var _this_props = _this1.props, getBankEntries = _this_props.getBankEntries, bankId = _this_props.bankId, useBankSearch = _this_props.useBankSearch;
|
|
375
|
+
var text = search.get('text');
|
|
376
|
+
var interactionTypes = search.get('interactionTypes', immutable.Set()).toJS();
|
|
377
|
+
var tagIds = search.get('tags', []).map(function(tag) {
|
|
378
|
+
return tag.id;
|
|
379
|
+
});
|
|
380
|
+
var filters = {
|
|
381
|
+
interactionTypes: interactionTypes,
|
|
382
|
+
tags: tagIds
|
|
383
|
+
};
|
|
384
|
+
var params = {
|
|
385
|
+
page: page,
|
|
386
|
+
text: text,
|
|
387
|
+
filters: filters
|
|
388
|
+
};
|
|
389
|
+
var resultPage = getBankEntries(bankId, useBankSearch, params);
|
|
390
|
+
if (resultPage) {
|
|
391
|
+
return resultPage.then(function(results) {
|
|
392
|
+
_this1.debouncedAnnounceResults(results);
|
|
393
|
+
return results;
|
|
394
|
+
});
|
|
395
|
+
} else {
|
|
396
|
+
return Promise.resolve(null);
|
|
397
|
+
}
|
|
398
|
+
}), _define_property(_this1, "getPageDebounced", debounceLatestPromise(function() {
|
|
399
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
400
|
+
args[_key] = arguments[_key];
|
|
401
|
+
}
|
|
402
|
+
return _this1.getPage.apply(_this1, _to_consumable_array(args));
|
|
403
|
+
}, 100)), _define_property(_this1, "renderRecords", function(recordIds) {
|
|
404
|
+
var addEntryFunc = _this1.props.isCompact && _this1.props.addEntryToQuiz || null;
|
|
405
|
+
return /*#__PURE__*/ jsx(BankEntriesList, {
|
|
406
|
+
addEntryToQuiz: addEntryFunc,
|
|
407
|
+
bank: _this1.props.bank,
|
|
408
|
+
navigateToBankEntry: _this1.props.navigateToBankEntry,
|
|
409
|
+
recordIds: recordIds,
|
|
410
|
+
isQuizContentLocked: _this1.props.isQuizContentLocked
|
|
411
|
+
});
|
|
422
412
|
});
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
}, {
|
|
426
|
-
key: "emptyLoadText",
|
|
427
|
-
value: function emptyLoadText() {
|
|
428
|
-
var noFilters = this.props.bank.filters === null;
|
|
429
|
-
var noQuestions = function noQuestions() {
|
|
430
|
-
return (0, _formatMessage["default"])('There are no questions in this bank yet.');
|
|
431
|
-
};
|
|
432
|
-
var noResults = function noResults() {
|
|
433
|
-
return (0, _formatMessage["default"])('The search returned no results.');
|
|
434
|
-
};
|
|
435
|
-
return noFilters ? noQuestions() : noResults();
|
|
436
|
-
}
|
|
437
|
-
}, {
|
|
438
|
-
key: "render",
|
|
439
|
-
value: function render() {
|
|
440
|
-
return (0, _emotion.jsx)(_Page["default"], null, this.renderModals(), this.renderNav(), (0, _emotion.jsx)("div", {
|
|
441
|
-
css: this.props.styles.content
|
|
442
|
-
}, this.props.iceTopNavBarEnabled && (0, _emotion.jsx)("div", {
|
|
443
|
-
css: this.props.styles.breadcrumb
|
|
444
|
-
}, (0, _emotion.jsx)(_HeaderBreadCrumb.HeaderBreadCrumb, {
|
|
445
|
-
returnToUrl: this.props.returnToUrl,
|
|
446
|
-
scope: this.props.scope,
|
|
447
|
-
navigateToBanks: this.props.navigateToBanks,
|
|
448
|
-
navigateToBuild: this.props.navigateToBuild
|
|
449
|
-
}, this.renderBankBreadCrumbLink())), this.renderName(), this.renderCheckbox(), (0, _emotion.jsx)("div", {
|
|
450
|
-
css: this.props.styles.topMenu
|
|
451
|
-
}, this.renderTopLeftMenu(), this.renderTopRightMenu()), this.renderSearch(), (0, _emotion.jsx)(_PaginatedCollection["default"], {
|
|
452
|
-
empty: this.emptyLoadText(),
|
|
453
|
-
params: this.props.search,
|
|
454
|
-
getPage: this.getPageDebounced,
|
|
455
|
-
renderRecords: this.renderRecords,
|
|
456
|
-
stateKey: this.stateKey()
|
|
457
|
-
})));
|
|
413
|
+
return _this;
|
|
458
414
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
415
|
+
_create_class(Bank, [
|
|
416
|
+
{
|
|
417
|
+
key: "componentDidMount",
|
|
418
|
+
value: function componentDidMount() {
|
|
419
|
+
this.props.resetSearch(this.props.bankId);
|
|
420
|
+
if (this.props.onError) {
|
|
421
|
+
this.props.getBank(this.props.bankId).catch(this.props.onError);
|
|
422
|
+
if (this.shouldRenderShareWithCourseCheckbox()) {
|
|
423
|
+
this.props.getSharedBank(this.props.bankId, this.props.scope.type, this.props.scope.uuid).catch(this.props.onError);
|
|
424
|
+
}
|
|
425
|
+
} else {
|
|
426
|
+
this.props.getBank(this.props.bankId);
|
|
427
|
+
if (this.shouldRenderShareWithCourseCheckbox()) {
|
|
428
|
+
this.props.getSharedBank(this.props.bankId, this.props.scope.type, this.props.scope.uuid);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
// when courseSharedBank is already loaded
|
|
432
|
+
if (this.props.courseSharedBank) {
|
|
433
|
+
this.setShareWithCourseCheckbox();
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
key: "componentDidUpdate",
|
|
439
|
+
value: function componentDidUpdate(prevProps) {
|
|
440
|
+
var _prevProps_courseSharedBank, _this_props_courseSharedBank;
|
|
441
|
+
var permissionChanged = ((_prevProps_courseSharedBank = prevProps.courseSharedBank) === null || _prevProps_courseSharedBank === void 0 ? void 0 : _prevProps_courseSharedBank.get('permission')) !== ((_this_props_courseSharedBank = this.props.courseSharedBank) === null || _this_props_courseSharedBank === void 0 ? void 0 : _this_props_courseSharedBank.get('permission'));
|
|
442
|
+
if (this.props.courseSharedBank && permissionChanged) {
|
|
443
|
+
this.setShareWithCourseCheckbox();
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
key: "setShareWithCourseCheckbox",
|
|
449
|
+
value: function setShareWithCourseCheckbox() {
|
|
450
|
+
if (this.props.courseSharedBank.get('permission') === REMOVED_ACCESS) {
|
|
451
|
+
this.setState({
|
|
452
|
+
sharedWithCourse: false,
|
|
453
|
+
shareWithCourseCheckboxDisabled: false
|
|
454
|
+
});
|
|
455
|
+
} else {
|
|
456
|
+
this.setState({
|
|
457
|
+
sharedWithCourse: true,
|
|
458
|
+
shareWithCourseCheckboxDisabled: false
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
key: "componentWillUnmount",
|
|
465
|
+
value: function componentWillUnmount() {
|
|
466
|
+
this.props.removeSharedBank(this.placeholderCourseSharedBankKey());
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
key: "placeholderCourseSharedBankKey",
|
|
471
|
+
value: function placeholderCourseSharedBankKey() {
|
|
472
|
+
return "notshared_".concat(this.props.bankId, "_").concat(this.props.scope.uuid);
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
key: "renderNav",
|
|
477
|
+
value: function renderNav() {
|
|
478
|
+
var _this_props = this.props, scope = _this_props.scope, closeTray = _this_props.closeTray, navigateToBanks = _this_props.navigateToBanks, navigateToBuild = _this_props.navigateToBuild, returnToUrl = _this_props.returnToUrl;
|
|
479
|
+
var isScopeEmpty = !Object.keys(scope).length;
|
|
480
|
+
return /*#__PURE__*/ jsx(NavWrapper, {
|
|
481
|
+
closeTray: closeTray,
|
|
482
|
+
navigateToBanks: navigateToBanks,
|
|
483
|
+
navigateToBuild: navigateToBuild,
|
|
484
|
+
renderHeaderMenu: this.renderHeaderMenu,
|
|
485
|
+
returnToUrl: isScopeEmpty ? null : returnToUrl,
|
|
486
|
+
scope: scope,
|
|
487
|
+
isCompact: this.props.isCompact,
|
|
488
|
+
iceTopNavBarEnabled: this.props.iceTopNavBarEnabled,
|
|
489
|
+
menuItemPath: "/banks/".concat(this.props.bankId)
|
|
490
|
+
}, this.renderBankBreadCrumbLink());
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
key: "renderName",
|
|
495
|
+
value: function renderName() {
|
|
496
|
+
return /*#__PURE__*/ jsx("div", {
|
|
497
|
+
css: this.props.styles.bankName
|
|
498
|
+
}, /*#__PURE__*/ jsx(Heading, {
|
|
499
|
+
level: "h1"
|
|
500
|
+
}, this.props.bank.title || t('Bank')));
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
key: "renderAddBankEntryModal",
|
|
505
|
+
value: function renderAddBankEntryModal() {
|
|
506
|
+
if (!this.props.isCompact) {
|
|
507
|
+
return /*#__PURE__*/ jsx(AddBankEntryModal, {
|
|
508
|
+
bankId: this.props.bankId,
|
|
509
|
+
navigateToBankEntry: this.props.navigateToBankEntry
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
key: "changeSharedPermissions",
|
|
516
|
+
value: function changeSharedPermissions() {
|
|
517
|
+
if (this.props.bank.canEdit()) {
|
|
518
|
+
if (!this.state.sharedWithCourse) {
|
|
519
|
+
var shareBank = {
|
|
520
|
+
entityId: this.props.scope.uuid,
|
|
521
|
+
entityType: this.props.scope.type,
|
|
522
|
+
title: this.props.scope.title,
|
|
523
|
+
permission: READ_ONLY,
|
|
524
|
+
bankId: this.props.bankId
|
|
525
|
+
};
|
|
526
|
+
this.props.removeSharedBank(this.placeholderCourseSharedBankKey());
|
|
527
|
+
this.props.shareBank(shareBank);
|
|
528
|
+
} else {
|
|
529
|
+
this.confirmUnshareBankWithCourse();
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
key: "shouldRenderShareWithCourseCheckbox",
|
|
536
|
+
value: function shouldRenderShareWithCourseCheckbox() {
|
|
537
|
+
return this.props.showShareBankFromTray && this.props.scope.type === 'course' && this.props.scope.title && this.props.scope.uuid;
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
key: "renderCheckbox",
|
|
542
|
+
value: function renderCheckbox() {
|
|
543
|
+
if (!this.shouldRenderShareWithCourseCheckbox()) {
|
|
544
|
+
return null;
|
|
545
|
+
}
|
|
546
|
+
var label = t('Share with { courseName }', {
|
|
547
|
+
courseName: this.props.scope.title
|
|
548
|
+
});
|
|
549
|
+
return /*#__PURE__*/ jsx(View, {
|
|
550
|
+
margin: "small 0",
|
|
551
|
+
as: "div"
|
|
552
|
+
}, /*#__PURE__*/ jsx(Checkbox, {
|
|
553
|
+
checked: this.state.sharedWithCourse,
|
|
554
|
+
label: label,
|
|
555
|
+
onChange: this.toggleCheckbox,
|
|
556
|
+
disabled: this.props.bank.canEdit() ? this.state.shareWithCourseCheckboxDisabled : true,
|
|
557
|
+
"data-automation": "sdk-share-bank-with-course-checkbox"
|
|
558
|
+
}));
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
key: "renderModals",
|
|
563
|
+
value: function renderModals() {
|
|
564
|
+
return /*#__PURE__*/ jsx("div", null, this.renderAddBankEntryModal());
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
key: "renderNewBankEntryButton",
|
|
569
|
+
value: function renderNewBankEntryButton() {
|
|
570
|
+
if (!this.props.isCompact && this.props.bank.canEdit()) {
|
|
571
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
572
|
+
margin: "small none",
|
|
573
|
+
ref: this.storeCreateBankEntryButtonRef,
|
|
574
|
+
color: "primary",
|
|
575
|
+
onClick: this.openAddBankEntryModal,
|
|
576
|
+
"data-automation": "sdk-new-bank-entry-button",
|
|
577
|
+
renderIcon: IconPlusLine
|
|
578
|
+
}, /*#__PURE__*/ jsx(AccessibleContent, {
|
|
579
|
+
alt: t('Create Bank Entry')
|
|
580
|
+
}, t('New')));
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
key: "renderMultiAdd",
|
|
586
|
+
value: function renderMultiAdd() {
|
|
587
|
+
var isEmpty = this.props.bank.itemEntryCount === 0;
|
|
588
|
+
if (this.props.isCompact && !this.props.isQuizContentLocked && !isEmpty) {
|
|
589
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
590
|
+
onClick: this.addBankToQuiz,
|
|
591
|
+
margin: "small none",
|
|
592
|
+
renderIcon: IconPlusLine,
|
|
593
|
+
"data-automation": "sdk-add-bank-to-quiz-button"
|
|
594
|
+
}, /*#__PURE__*/ jsx(AccessibleContent, {
|
|
595
|
+
alt: t('Add this bank to quiz')
|
|
596
|
+
}, t('All / Random')));
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
key: "stateKey",
|
|
602
|
+
value: function stateKey() {
|
|
603
|
+
return "".concat(BANKS_BANK_ENTRY_PAGINATION, ":").concat(this.props.bankId);
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
key: "renderSearch",
|
|
608
|
+
value: function renderSearch() {
|
|
609
|
+
if (this.props.bank.filters !== null && this.props.useBankSearch) {
|
|
610
|
+
var its = this.props.bank.filters.interaction_types;
|
|
611
|
+
var tags = this.props.bank.filters.tags;
|
|
612
|
+
return /*#__PURE__*/ jsx(BankSearch, {
|
|
613
|
+
interactionTypes: its,
|
|
614
|
+
tags: tags,
|
|
615
|
+
pageStateKey: this.stateKey(),
|
|
616
|
+
showFilters: false
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
key: "emptyLoadText",
|
|
623
|
+
value: function emptyLoadText() {
|
|
624
|
+
var noFilters = this.props.bank.filters === null;
|
|
625
|
+
var noQuestions = function() {
|
|
626
|
+
return t('There are no questions in this bank yet.');
|
|
627
|
+
};
|
|
628
|
+
var noResults = function() {
|
|
629
|
+
return t('The search returned no results.');
|
|
630
|
+
};
|
|
631
|
+
return noFilters ? noQuestions() : noResults();
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
key: "render",
|
|
636
|
+
value: function render() {
|
|
637
|
+
return /*#__PURE__*/ jsx(Page, null, this.renderModals(), this.renderNav(), /*#__PURE__*/ jsx("div", {
|
|
638
|
+
css: this.props.styles.content
|
|
639
|
+
}, this.props.iceTopNavBarEnabled && /*#__PURE__*/ jsx("div", {
|
|
640
|
+
css: this.props.styles.breadcrumb
|
|
641
|
+
}, /*#__PURE__*/ jsx(HeaderBreadCrumb, {
|
|
642
|
+
returnToUrl: this.props.returnToUrl,
|
|
643
|
+
scope: this.props.scope,
|
|
644
|
+
navigateToBanks: this.props.navigateToBanks,
|
|
645
|
+
navigateToBuild: this.props.navigateToBuild
|
|
646
|
+
}, this.renderBankBreadCrumbLink())), this.renderName(), this.renderCheckbox(), /*#__PURE__*/ jsx("div", {
|
|
647
|
+
css: this.props.styles.topMenu
|
|
648
|
+
}, this.renderTopLeftMenu(), this.renderTopRightMenu()), this.renderSearch(), /*#__PURE__*/ jsx(PaginatedCollection, {
|
|
649
|
+
empty: this.emptyLoadText(),
|
|
650
|
+
params: this.props.search,
|
|
651
|
+
getPage: this.getPageDebounced,
|
|
652
|
+
renderRecords: this.renderRecords,
|
|
653
|
+
stateKey: this.stateKey()
|
|
654
|
+
})));
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
]);
|
|
658
|
+
return Bank;
|
|
659
|
+
}(Component);
|
|
660
|
+
_define_property(Bank, "displayName", 'Bank');
|
|
661
|
+
_define_property(Bank, "componentId", "Quizzes".concat(Bank.displayName));
|
|
662
|
+
_define_property(Bank, "propTypes", {
|
|
663
|
+
activeQuizId: PropTypes.string,
|
|
664
|
+
addEntryToQuiz: PropTypes.func,
|
|
665
|
+
bankId: PropTypes.string.isRequired,
|
|
666
|
+
bank: PropTypes.instanceOf(BankRecord).isRequired,
|
|
667
|
+
useBankSearch: PropTypes.bool,
|
|
668
|
+
closeTray: PropTypes.func,
|
|
669
|
+
getBank: PropTypes.func.isRequired,
|
|
670
|
+
getBankEntries: PropTypes.func.isRequired,
|
|
671
|
+
getSharedBank: PropTypes.func.isRequired,
|
|
672
|
+
isCompact: PropTypes.bool,
|
|
673
|
+
isQuizContentLocked: PropTypes.bool.isRequired,
|
|
674
|
+
navigateToBanks: PropTypes.func.isRequired,
|
|
675
|
+
navigateToBankEntry: PropTypes.func.isRequired,
|
|
676
|
+
navigateToBuild: PropTypes.func,
|
|
677
|
+
scope: PropTypes.shape({
|
|
678
|
+
type: PropTypes.string,
|
|
679
|
+
uuid: PropTypes.string,
|
|
680
|
+
title: PropTypes.string,
|
|
681
|
+
launch_context_uuid: PropTypes.string,
|
|
682
|
+
root_account_name: PropTypes.string
|
|
683
|
+
}),
|
|
684
|
+
courseSharedBank: ImmutablePropTypes.map,
|
|
685
|
+
returnToUrl: PropTypes.string,
|
|
686
|
+
onError: PropTypes.func,
|
|
687
|
+
openModal: PropTypes.func.isRequired,
|
|
688
|
+
position: PropTypes.number,
|
|
689
|
+
removeSharedBank: PropTypes.func.isRequired,
|
|
690
|
+
resetSearch: PropTypes.func.isRequired,
|
|
691
|
+
screenreaderNotification: PropTypes.func.isRequired,
|
|
692
|
+
search: ImmutablePropTypes.map.isRequired,
|
|
693
|
+
shareBank: PropTypes.func.isRequired,
|
|
694
|
+
stimulusId: PropTypes.string,
|
|
695
|
+
showShareBankFromTray: PropTypes.bool,
|
|
696
|
+
updateSharedBankPermission: PropTypes.func.isRequired,
|
|
697
|
+
withConfirm: PropTypes.func.isRequired,
|
|
698
|
+
iceTopNavBarEnabled: PropTypes.bool,
|
|
699
|
+
styles: PropTypes.object
|
|
700
|
+
});
|
|
701
|
+
_define_property(Bank, "defaultProps", {
|
|
702
|
+
activeQuizId: null,
|
|
703
|
+
addEntryToQuiz: null,
|
|
704
|
+
closeTray: function closeTray() {},
|
|
705
|
+
useBankSearch: false,
|
|
706
|
+
isCompact: false,
|
|
707
|
+
minSearchRefreshInterval: 100,
|
|
708
|
+
navigateToBuild: null,
|
|
709
|
+
onError: null,
|
|
710
|
+
position: 0,
|
|
711
|
+
stimulusId: null,
|
|
712
|
+
scope: {},
|
|
713
|
+
returnToUrl: null,
|
|
714
|
+
isQuizContentLocked: false,
|
|
715
|
+
showShareBankFromTray: false,
|
|
716
|
+
courseSharedBank: null,
|
|
717
|
+
iceTopNavBarEnabled: false
|
|
718
|
+
});
|
|
719
|
+
Bank = _ts_decorate([
|
|
720
|
+
withStyleOverrides(generateStyle, generateComponentTheme)
|
|
721
|
+
], Bank);
|
|
722
|
+
export default Bank;
|