@clickview/lite 0.0.23-rc.2 → 0.0.23-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/0.chunk.css +0 -8
- package/dist/css/12.chunk.css +11 -7
- package/dist/css/13.chunk.css +5 -15
- package/dist/css/14.chunk.css +7 -5
- package/dist/css/15.chunk.css +7 -7
- package/dist/css/16.chunk.css +3 -7
- package/dist/css/17.chunk.css +7 -5
- package/dist/css/18.chunk.css +7 -3
- package/dist/css/19.chunk.css +10 -2
- package/dist/css/20.chunk.css +6 -2
- package/dist/css/21.chunk.css +8 -2
- package/dist/css/22.chunk.css +4 -4
- package/dist/css/23.chunk.css +8 -2
- package/dist/css/24.chunk.css +6 -2
- package/dist/css/25.chunk.css +7 -1
- package/dist/css/26.chunk.css +2 -2
- package/dist/css/27.chunk.css +3 -1
- package/dist/css/28.chunk.css +2 -4
- package/dist/css/29.chunk.css +6 -2
- package/dist/css/3.chunk.css +8 -0
- package/dist/css/30.chunk.css +4 -0
- package/dist/css/31.chunk.css +2 -2
- package/dist/css/32.chunk.css +1 -1
- package/dist/css/33.chunk.css +4 -0
- package/dist/css/34.chunk.css +4 -0
- package/dist/css/35.chunk.css +6 -0
- package/dist/css/37.chunk.css +6 -0
- package/dist/css/4.chunk.css +8 -0
- package/dist/css/46.chunk.css +2 -0
- package/dist/css/47.chunk.css +3 -1
- package/dist/css/5.chunk.css +6 -10
- package/dist/css/51.chunk.css +2 -0
- package/dist/css/54.chunk.css +2 -0
- package/dist/css/6.chunk.css +8 -2
- package/dist/css/7.chunk.css +4 -0
- package/dist/css/lite-app.css +1 -1
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +20 -4
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +4 -0
- package/dist/libs/common/src/react/components/BackboneViewWrapper.d.ts +1 -1
- package/dist/libs/common/src/react/context/PageTitleContext.d.ts +10 -0
- package/dist/libs/{shared/src/hooks/useSetPageTitle.d.ts → common/src/react/hooks/UseSetPageTitle.d.ts} +1 -1
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +1 -1
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistItem.d.ts +3 -0
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistList.d.ts +3 -0
- package/dist/libs/shared/src/apps/subjects/components/classification-list/ClassificationList.d.ts +3 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/bulk-preference-summary/BulkPreferenceSummary.d.ts +7 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +6 -1
- package/dist/libs/shared/src/apps/subjects/utils/OnboardingHelper.d.ts +15 -0
- package/dist/libs/shared/src/components/back-button/BackButton.d.ts +3 -1
- package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +1 -0
- package/dist/libs/shared/src/components/series-link/SeriesLink.d.ts +4 -0
- package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +2 -0
- package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +3 -0
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +3 -0
- package/dist/libs/shared/src/components/video-list/partial-loading/PartialVideoList.d.ts +12 -0
- package/dist/libs/shared/src/components/widgets/dynamic-widget/DynamicWidget.d.ts +3 -0
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +3 -0
- package/dist/libs/shared/src/components/widgets/items/series-widget-item/SeriesWidgetItem.d.ts +3 -0
- package/dist/libs/shared/src/components/widgets/items/subject-widget-item/SubjectWidgetItem.d.ts +3 -0
- package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +3 -0
- package/dist/libs/shared/src/constants/AppVariables.d.ts +1 -0
- package/dist/libs/shared/src/enums/BulkOnboardingPreferencesState.d.ts +6 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +15 -1
- package/dist/libs/shared/src/flight-requests/SettingRequests.d.ts +7 -0
- package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +11 -0
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +7 -3
- package/dist/libs/shared/src/interfaces/models/User.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +2 -0
- package/dist/libs/shared/src/services/UserDataService.d.ts +4 -3
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -0
- package/dist/libs/shared/src/utils/WidgetHelper.d.ts +12 -0
- package/dist/projects/lite/src/app.d.ts +15 -3
- package/dist/projects/lite/src/apps/content-updates/LiteContentUpdatesApplication.d.ts +1 -0
- package/dist/projects/lite/src/apps/dashboard/LiteDashboardApplication.d.ts +1 -0
- package/dist/projects/lite/src/apps/default/LiteDefaultApplication.d.ts +1 -0
- package/dist/projects/lite/src/apps/default/views/not-found/LiteNotFoundView.d.ts +7 -5
- package/dist/projects/lite/src/apps/embed/LiteEmbedApplication.d.ts +1 -0
- package/dist/projects/lite/src/apps/playlists/LitePlaylistsApplication.d.ts +1 -0
- package/dist/projects/lite/src/apps/playlists/components/playlist-header/partial-loading/PartialPlaylistHeader.d.ts +2 -0
- package/dist/projects/lite/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +8 -0
- package/dist/projects/lite/src/apps/search/LiteSearchApplication.d.ts +1 -0
- package/dist/projects/lite/src/apps/settings/LiteSettingsApplication.d.ts +1 -1
- package/dist/projects/lite/src/apps/subjects/LiteSubjectApplication.d.ts +3 -2
- package/dist/projects/lite/src/apps/subjects/constants/SubjectsAppVariables.d.ts +7 -0
- package/dist/projects/lite/src/apps/subjects/utils/ClassificationAppLinks.d.ts +0 -1
- package/dist/projects/lite/src/apps/subjects/utils/OnboardingHelper.d.ts +15 -0
- package/dist/projects/lite/src/apps/subjects/views/preferences/LazyStepViews.d.ts +10 -0
- package/dist/projects/lite/src/apps/subjects/views/preferences/LiteBasePreferencesView.d.ts +8 -0
- package/dist/projects/lite/src/apps/subjects/views/preferences/curriculum-presentation/LiteCurriculumPresentationSelectorView.d.ts +6 -0
- package/dist/projects/lite/src/apps/subjects/views/preferences/level-preferences/{LevelPreferencesView.d.ts → LiteLevelPreferencesView.d.ts} +2 -2
- package/dist/projects/lite/src/apps/subjects/views/preferences/subject-preferences/{SubjectPreferencesView.d.ts → LiteSubjectPreferencesView.d.ts} +2 -2
- package/dist/projects/lite/src/apps/subjects/views/preferences/subject-presentation/LiteSubjectPresentationSelectorView.d.ts +6 -0
- package/dist/projects/lite/src/apps/subjects/views/preferences/summary/{PreferencesSummaryView.d.ts → LitePreferencesSummaryView.d.ts} +1 -2
- package/dist/projects/lite/src/apps/subjects/views/preferences/welcome/LitePreferencesWelcomeView.d.ts +6 -0
- package/dist/projects/lite/src/apps/watch-history/LiteWatchHistoryApplication.d.ts +1 -1
- package/dist/projects/lite/src/apps/watch-history/flight-requests/VideoHistoryRequests.d.ts +1 -0
- package/dist/projects/lite/src/apps/watch-history/views/watch-history/partial-loading/PartialWatchHistory.d.ts +2 -0
- package/dist/projects/lite/src/shared/components/play-page/PlayPage.d.ts +2 -1
- package/dist/projects/lite/src/shared/components/synopsis/Synopsis.d.ts +2 -1
- package/dist/projects/lite/src/shared/components/user-options/UserOptions.d.ts +1 -0
- package/dist/projects/lite/src/shared/constants/LiteActions.d.ts +0 -1
- package/dist/projects/lite/src/shared/constants/RadioChannels.d.ts +1 -0
- package/dist/projects/lite/src/shared/constants/Services.d.ts +2 -0
- package/dist/projects/lite/src/shared/errors/general/not-found/LiteNotFoundError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/general/private-resource/PrivateResourceError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/general/region-locked-resource/RegionLockedResourceError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/general/unspecified-error/UnspecifiedError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/playlists/playlist-not-found/LitePlaylistNotFoundError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/playlists/playlist-private/PlaylistPrivateError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/videos/video-not-found/LiteVideoNotFoundError.d.ts +7 -0
- package/dist/projects/lite/src/shared/errors/videos/video-private/VideoPrivateError.d.ts +7 -0
- package/dist/projects/lite/src/shared/filters/OnboardingFilter.d.ts +4 -0
- package/dist/projects/lite/src/shared/filters/VerifiedEmailFilter.d.ts +2 -0
- package/dist/projects/lite/src/shared/hooks/useHandleObjectError.d.ts +15 -0
- package/dist/projects/lite/src/shared/hooks/useInitPlayerContext.d.ts +4 -0
- package/dist/projects/lite/src/shared/hooks/useVideoMixin.d.ts +7 -1
- package/dist/projects/lite/src/shared/services/FlightUserDataService.d.ts +12 -0
- package/dist/projects/lite/src/shared/services/SettingsDataService.d.ts +10 -0
- package/dist/projects/lite/src/shared/views/header/HeaderView.d.ts +1 -1
- package/dist/scripts/0-49fe8d8953.chunk.js +1 -0
- package/dist/scripts/1-d1ce3fe6e8.chunk.js +17 -0
- package/dist/scripts/12-444e9a8f62.chunk.js +1 -0
- package/dist/scripts/13-8b960a121a.chunk.js +1 -0
- package/dist/scripts/14-4100b566ab.chunk.js +1 -0
- package/dist/scripts/15-f1da00cb79.chunk.js +1 -0
- package/dist/scripts/16-6c4c119ad6.chunk.js +1 -0
- package/dist/scripts/17-55a8c5e69b.chunk.js +1 -0
- package/dist/scripts/18-46a1587e36.chunk.js +1 -0
- package/dist/scripts/19-86d2f5f9c4.chunk.js +1 -0
- package/dist/scripts/2-001859a7c7.chunk.js +1 -0
- package/dist/scripts/20-6a0c4d94b9.chunk.js +1 -0
- package/dist/scripts/21-6e22ad3252.chunk.js +1 -0
- package/dist/scripts/22-4f65c120a0.chunk.js +1 -0
- package/dist/scripts/23-7157018a5e.chunk.js +1 -0
- package/dist/scripts/24-d46be693c1.chunk.js +1 -0
- package/dist/scripts/25-7c3cf96ce9.chunk.js +1 -0
- package/dist/scripts/26-3c3346e3c8.chunk.js +1 -0
- package/dist/scripts/27-c4151771c6.chunk.js +1 -0
- package/dist/scripts/28-8724ddeda8.chunk.js +1 -0
- package/dist/scripts/29-fe581351cd.chunk.js +1 -0
- package/dist/scripts/3-af1894f32c.chunk.js +7 -0
- package/dist/scripts/30-b1ad0da9a2.chunk.js +1 -0
- package/dist/scripts/31-66f6930615.chunk.js +1 -0
- package/dist/scripts/32-5eb704c8b1.chunk.js +1 -0
- package/dist/scripts/33-70fb7453f0.chunk.js +1 -0
- package/dist/scripts/34-f49f499956.chunk.js +1 -0
- package/dist/scripts/35-e0fcafc5ea.chunk.js +1 -0
- package/dist/scripts/36-815d749a78.chunk.js +1 -0
- package/dist/scripts/37-9e87773619.chunk.js +1 -0
- package/dist/scripts/{33-b31e36df71.chunk.js → 38-b58c077e89.chunk.js} +1 -1
- package/dist/scripts/39-e03f3925ea.chunk.js +1 -0
- package/dist/scripts/4-9ae3c325d5.chunk.js +1 -0
- package/dist/scripts/40-8b3b8dad97.chunk.js +1 -0
- package/dist/scripts/{37-433c491849.chunk.js → 41-8425bd0f8c.chunk.js} +1 -1
- package/dist/scripts/{38-a57bf10ece.chunk.js → 42-b4fa218fde.chunk.js} +1 -1
- package/dist/scripts/{41-f8fae002c0.chunk.js → 43-752457d1b7.chunk.js} +1 -1
- package/dist/scripts/{39-543287c117.chunk.js → 44-311f68a015.chunk.js} +1 -1
- package/dist/scripts/{40-c2fe9fa36d.chunk.js → 45-271dc31260.chunk.js} +1 -1
- package/dist/scripts/46-0d0330e794.chunk.js +1 -0
- package/dist/scripts/47-c6edaa2cab.chunk.js +1 -0
- package/dist/scripts/{43-ebf824a30e.chunk.js → 48-99183c8ca3.chunk.js} +1 -1
- package/dist/scripts/{44-ea62f354ed.chunk.js → 49-4a20d8df8f.chunk.js} +1 -1
- package/dist/scripts/5-1b61b3cdd9.chunk.js +1 -0
- package/dist/scripts/{45-b21e7a6721.chunk.js → 50-0a70ae4c00.chunk.js} +1 -1
- package/dist/scripts/51-27003cc4ac.chunk.js +1 -0
- package/dist/scripts/52-b00dc58dc1.chunk.js +1 -0
- package/dist/scripts/53-17d7eb1570.chunk.js +1 -0
- package/dist/scripts/54-6e3d487ae3.chunk.js +1 -0
- package/dist/scripts/55-a5e6803ecd.chunk.js +1 -0
- package/dist/scripts/{50-0907935873.chunk.js → 56-9824bee9bc.chunk.js} +1 -1
- package/dist/scripts/{51-f52d9cf4e5.chunk.js → 57-cb13a3c1ca.chunk.js} +1 -1
- package/dist/scripts/{52-ed2f418592.chunk.js → 58-91ff50c86f.chunk.js} +1 -1
- package/dist/scripts/{53-74f106368f.chunk.js → 59-8a7ae2c433.chunk.js} +1 -1
- package/dist/scripts/6-51802fd695.chunk.js +1 -0
- package/dist/scripts/60-6d6ce3f996.chunk.js +1 -0
- package/dist/scripts/{55-928bc84e37.chunk.js → 61-03f9d4b7fd.chunk.js} +1 -1
- package/dist/scripts/62-7170e0027b.chunk.js +1 -0
- package/dist/scripts/63-ac8a77380c.chunk.js +1 -0
- package/dist/scripts/{59-79ccf1df53.chunk.js → 64-3b5e25f552.chunk.js} +1 -1
- package/dist/scripts/65-52a36589ac.chunk.js +1 -0
- package/dist/scripts/{61-e45710e150.chunk.js → 66-dc4b036321.chunk.js} +1 -1
- package/dist/scripts/7-beb40c51f5.chunk.js +1 -0
- package/dist/scripts/{7-e93f277b8a.chunk.js → 8-1020e1ce73.chunk.js} +1 -1
- package/dist/scripts/9-e95a8451eb.chunk.js +1 -0
- package/dist/scripts/bundle-865da89615.min.js +15 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-09b4f5d794.min.js +1 -0
- package/package.json +53 -51
- package/dist/css/36.chunk.css +0 -2
- package/dist/css/42.chunk.css +0 -4
- package/dist/css/8.chunk.css +0 -2
- package/dist/libs/shared/src/apps/playlists/hooks/UseHandlePlaylistError.d.ts +0 -9
- package/dist/libs/shared/src/components/video-list/PartialVideoList.d.ts +0 -5
- package/dist/libs/shared/src/context/PageTitleContext.d.ts +0 -10
- package/dist/projects/lite/src/apps/default/views/mock-testing/MockRequests.d.ts +0 -13
- package/dist/projects/lite/src/apps/default/views/mock-testing/MockView.d.ts +0 -2
- package/dist/projects/lite/src/apps/playlists/components/playlist-list-header/PlaylistListHeader.d.ts +0 -12
- package/dist/projects/lite/src/apps/subjects/views/classification-series-list-view/ClassificationSeriesListView.d.ts +0 -8
- package/dist/projects/lite/src/apps/subjects/views/classification-series-list-view/index.d.ts +0 -1
- package/dist/projects/lite/src/apps/subjects/views/preferences/PreferencesView.d.ts +0 -8
- package/dist/projects/lite/src/apps/subjects/views/preferences/index.d.ts +0 -4
- package/dist/projects/lite/src/shared/errors/not-found/LiteNotFoundError.d.ts +0 -5
- package/dist/scripts/0-3ac435a0d9.chunk.js +0 -1
- package/dist/scripts/1-3f292a18cd.chunk.js +0 -17
- package/dist/scripts/12-bd5994d026.chunk.js +0 -1
- package/dist/scripts/13-0f2d2fea7a.chunk.js +0 -1
- package/dist/scripts/14-dcef8c860d.chunk.js +0 -1
- package/dist/scripts/15-4782b350a2.chunk.js +0 -1
- package/dist/scripts/16-9d15d3f468.chunk.js +0 -1
- package/dist/scripts/17-5b0a1e6d28.chunk.js +0 -1
- package/dist/scripts/18-e0136118cb.chunk.js +0 -1
- package/dist/scripts/19-9d532d87b6.chunk.js +0 -1
- package/dist/scripts/2-e294542d64.chunk.js +0 -1
- package/dist/scripts/20-a60df72914.chunk.js +0 -1
- package/dist/scripts/21-59933823aa.chunk.js +0 -1
- package/dist/scripts/22-f6e4c8883d.chunk.js +0 -1
- package/dist/scripts/23-e2d0905191.chunk.js +0 -1
- package/dist/scripts/24-f6d3bb6f39.chunk.js +0 -1
- package/dist/scripts/25-8e6b72fe6e.chunk.js +0 -1
- package/dist/scripts/26-5a43c014e9.chunk.js +0 -1
- package/dist/scripts/27-f38b39185c.chunk.js +0 -1
- package/dist/scripts/28-5b2ea4de92.chunk.js +0 -1
- package/dist/scripts/29-73953da7b5.chunk.js +0 -1
- package/dist/scripts/3-3a39c514e2.chunk.js +0 -7
- package/dist/scripts/30-a4d5655aaf.chunk.js +0 -1
- package/dist/scripts/31-13ee278855.chunk.js +0 -1
- package/dist/scripts/32-ce6806f225.chunk.js +0 -1
- package/dist/scripts/34-cfb99ee559.chunk.js +0 -1
- package/dist/scripts/35-1706fa2e22.chunk.js +0 -1
- package/dist/scripts/36-8c92bb469f.chunk.js +0 -1
- package/dist/scripts/4-26346f450b.chunk.js +0 -1
- package/dist/scripts/42-6186a3e8d8.chunk.js +0 -1
- package/dist/scripts/46-f006a4cb7b.chunk.js +0 -1
- package/dist/scripts/47-bcdaef3117.chunk.js +0 -1
- package/dist/scripts/48-c6bdc4ebbc.chunk.js +0 -1
- package/dist/scripts/49-c6048788d8.chunk.js +0 -1
- package/dist/scripts/5-45ea26f2d6.chunk.js +0 -1
- package/dist/scripts/54-ceabccbee0.chunk.js +0 -1
- package/dist/scripts/56-155b340ac5.chunk.js +0 -1
- package/dist/scripts/57-7021c5b171.chunk.js +0 -1
- package/dist/scripts/58-78fb3224c1.chunk.js +0 -1
- package/dist/scripts/6-610d5469a1.chunk.js +0 -1
- package/dist/scripts/60-ba7505371c.chunk.js +0 -1
- package/dist/scripts/8-25ee05ed43.chunk.js +0 -1
- package/dist/scripts/9-583ef67174.chunk.js +0 -1
- package/dist/scripts/bundle-f547274977.min.js +0 -8
- package/dist/scripts/polyfills-21fa14d1c7.min.js +0 -1
- /package/dist/css/{49.chunk.css → 53.chunk.css} +0 -0
- /package/dist/libs/{shared/src → common/src/react}/utils/PageTitleHelper.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { SettingName } from "../enums/SettingName";
|
|
3
|
+
import { SettingKind } from "../enums/SettingKind";
|
|
4
|
+
export declare const SettingRequests: {
|
|
5
|
+
setting(entityId: string, name: SettingName): Flight.Request;
|
|
6
|
+
updateSetting(entityId: string, name: SettingName, value: any, kind: SettingKind, success?: () => void, error?: () => void): Flight.Request;
|
|
7
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { HashObject } from "../../../common/src/react/interfaces/HashObject";
|
|
3
|
+
import { Xhr } from "../../../common/src/backbone/interfaces";
|
|
4
|
+
import { Theme } from "../interfaces";
|
|
5
|
+
export declare const ThemeRequests: {
|
|
6
|
+
theme(id: string): Flight.Request;
|
|
7
|
+
themes(type?: string): Flight.Request;
|
|
8
|
+
createTheme(data: Theme, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
9
|
+
updateTheme(id: string, data: Theme, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
10
|
+
deleteTheme(id: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
11
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { CurrentUser } from "../interfaces";
|
|
2
3
|
export declare const UserRequests: {
|
|
3
|
-
currentUser: Flight.Request;
|
|
4
|
+
currentUser(success?: (user: CurrentUser) => void, error?: () => void): Flight.Request;
|
|
4
5
|
workspace: Flight.Request;
|
|
5
6
|
sendVerificationEmail(emailAddress: string, success: () => void, error: () => void, always: () => void): Flight.Request;
|
|
6
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SettingKind } from "../../enums/SettingKind";
|
|
2
2
|
import { SettingName } from "../../enums/SettingName";
|
|
3
|
-
export interface EntitySetting {
|
|
3
|
+
export interface EntitySetting<TValue = any> {
|
|
4
4
|
name: SettingName;
|
|
5
5
|
displayName: string;
|
|
6
|
-
value:
|
|
6
|
+
value: TValue;
|
|
7
7
|
type: string;
|
|
8
8
|
kind: SettingKind;
|
|
9
9
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { BaseObject } from './primitives';
|
|
2
2
|
import { ThemeType } from "../../enums/ThemeType";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { HeroBanner } from './HeroBanner';
|
|
4
|
+
export interface ThemeData {
|
|
5
|
+
bottomLeft: HeroBanner;
|
|
6
|
+
bottomRight: HeroBanner;
|
|
7
|
+
topLeft: HeroBanner;
|
|
8
|
+
topRight: HeroBanner;
|
|
9
|
+
}
|
|
6
10
|
export interface Theme extends BaseObject {
|
|
7
11
|
name: string;
|
|
8
12
|
type: ThemeType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SettingName } from "../../enums/SettingName";
|
|
2
|
+
import { EntitySetting } from "./..";
|
|
3
|
+
import { SettingKind } from "../../enums/SettingKind";
|
|
4
|
+
export interface BaseSettingsDataService<TSettingModel = EntitySetting, TSettingCollection = EntitySetting[]> {
|
|
5
|
+
getSetting: (entityId: string, name: SettingName, callback?: (data: TSettingModel) => void) => TSettingModel;
|
|
6
|
+
getSettings: (entityId: string, kind?: SettingKind, callback?: (data: TSettingCollection) => void) => TSettingCollection;
|
|
7
|
+
}
|
|
@@ -5,10 +5,11 @@ import { FetchOptions } from "../../../common/src/react/utils/FetchHelper";
|
|
|
5
5
|
import { BaseDataService } from "../../../common/src/backbone/services/BaseDataService";
|
|
6
6
|
import { DataServiceError } from "../../../common/src/backbone/interfaces";
|
|
7
7
|
import { HashObject } from "../../../common/src/react/interfaces/HashObject";
|
|
8
|
-
|
|
8
|
+
import { BaseUserDataService, CurrentUser } from "../interfaces";
|
|
9
|
+
export declare class UserDataService extends BaseDataService implements BaseUserDataService {
|
|
9
10
|
get name(): string;
|
|
10
11
|
get channelName(): string;
|
|
11
|
-
getCurrentUser<T>(callback?: (user: T) => void, errorCallback?: () => void): T;
|
|
12
|
+
getCurrentUser<T = CurrentUser>(callback?: (user: T) => void, errorCallback?: () => void): T;
|
|
12
13
|
getWorkspace(callback: (workspace: HashObject) => void, errorCallback?: () => void): HashObject;
|
|
13
14
|
}
|
|
14
15
|
export declare const UserDataServiceHelper: {
|
|
@@ -16,7 +17,7 @@ export declare const UserDataServiceHelper: {
|
|
|
16
17
|
currentUser: {
|
|
17
18
|
dataServiceName: string;
|
|
18
19
|
eventName: string;
|
|
19
|
-
getData: (instance: UserDataService) =>
|
|
20
|
+
getData: (instance: UserDataService) => CurrentUser;
|
|
20
21
|
getInstance: (context: import("backbone").Events) => unknown;
|
|
21
22
|
beforeOnBeforeRender: boolean;
|
|
22
23
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnalyticsOptions } from "../../../analytics/src/interfaces";
|
|
2
|
+
export declare const WidgetHelper: {
|
|
3
|
+
/**
|
|
4
|
+
* Used by both the FixedWidget and DynamicWidget
|
|
5
|
+
*/
|
|
6
|
+
getSliderAnalyticsOptions: () => AnalyticsOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Used by both the FixedWidget and DynamicWidget
|
|
9
|
+
*/
|
|
10
|
+
getSliderItemAnalyticsOptions: () => AnalyticsOptions;
|
|
11
|
+
getSliderHeadingAnalyticsOptions: () => AnalyticsOptions;
|
|
12
|
+
};
|
|
@@ -23,10 +23,12 @@ import './apps/classrooms/views/remove-students-from-classroom/remove-students-f
|
|
|
23
23
|
import './apps/content-updates/components/classification-banner/classification-banner.lang.json';
|
|
24
24
|
import './apps/content-updates/components/classification-update-breadcrumbs/classification-update-breadcrumbs.lang.json';
|
|
25
25
|
import './apps/content-updates/components/whats-new-breadcrumbs/whats-new-breadcrumbs.lang.json';
|
|
26
|
+
import './apps/content-updates/views/classification-update/classification-update.lang.json';
|
|
26
27
|
import './apps/content-updates/views/content-updates/content-updates.lang.json';
|
|
28
|
+
import './apps/dashboard/views/dashboard/dashboard.lang.json';
|
|
29
|
+
import './apps/default/views/error/error.lang.json';
|
|
27
30
|
import './apps/playlists/components/playlist-details/playlist-details.lang.json';
|
|
28
31
|
import './apps/playlists/components/playlist-header/playlist-header.lang.json';
|
|
29
|
-
import './apps/playlists/components/playlist-list-header/playlists-list-header.lang.json';
|
|
30
32
|
import './apps/playlists/components/select-playlist/select-playlist.lang.json';
|
|
31
33
|
import './apps/playlists/views/add-to-playlist/add-to-playlist.lang.json';
|
|
32
34
|
import './apps/playlists/views/delete-playlist/delete-playlist.lang.json';
|
|
@@ -41,11 +43,14 @@ import './apps/search/components/search-filters/search-filters.lang.json';
|
|
|
41
43
|
import './apps/search/utils/search-utils.lang.json';
|
|
42
44
|
import './apps/search/views/search-results/search-results.lang.json';
|
|
43
45
|
import './apps/settings/views/settings/settings.lang.json';
|
|
44
|
-
import './apps/subjects/views/classification-series-list-view/classification-series-list.lang.json';
|
|
45
46
|
import './apps/subjects/views/classification/classifications-view.lang.json';
|
|
47
|
+
import './apps/subjects/views/preferences/base-preferences.lang.json';
|
|
48
|
+
import './apps/subjects/views/preferences/curriculum-presentation/curriculum-presentation-selector.lang.json';
|
|
46
49
|
import './apps/subjects/views/preferences/level-preferences/level-preferences.lang.json';
|
|
47
50
|
import './apps/subjects/views/preferences/subject-preferences/subject-preferences.lang.json';
|
|
51
|
+
import './apps/subjects/views/preferences/subject-presentation/subject-presentation-selector.lang.json';
|
|
48
52
|
import './apps/subjects/views/preferences/summary/preferences-summary.lang.json';
|
|
53
|
+
import './apps/subjects/views/preferences/welcome/preferences-welcome.lang.json';
|
|
49
54
|
import './apps/upload/components/upload-file-select/upload-file-select.lang.json';
|
|
50
55
|
import './apps/upload/components/uploading-item/uploading-item.lang.json';
|
|
51
56
|
import './apps/upload/services/upload-services.lang.json';
|
|
@@ -86,7 +91,14 @@ import './shared/components/share/tokenized-typeahead/tokenized-typeahead.lang.j
|
|
|
86
91
|
import './shared/components/synopsis/synopsis.lang.json';
|
|
87
92
|
import './shared/components/user-options/user-options.lang.json';
|
|
88
93
|
import './shared/components/video-details/video-details.lang.json';
|
|
89
|
-
import './shared/errors/not-found/not-found.lang.json';
|
|
94
|
+
import './shared/errors/general/not-found/not-found.lang.json';
|
|
95
|
+
import './shared/errors/general/private-resource/private-resource-error.lang.json';
|
|
96
|
+
import './shared/errors/general/region-locked-resource/region-locked-resource-error.lang.json';
|
|
97
|
+
import './shared/errors/general/unspecified-error/unspecified-error.lang.json';
|
|
98
|
+
import './shared/errors/playlists/playlist-not-found/playlist-not-found-error.lang.json';
|
|
99
|
+
import './shared/errors/playlists/playlist-private/playlist-private-error.lang.json';
|
|
100
|
+
import './shared/errors/videos/video-not-found/video-not-found-error.lang.json';
|
|
101
|
+
import './shared/errors/videos/video-private/video-private-error.lang.json';
|
|
90
102
|
import './shared/hooks/hooks.lang.json';
|
|
91
103
|
import './shared/layouts/teacher-layout/drag-mask/drag-mask.lang.json';
|
|
92
104
|
import './shared/utils/shared-utils.lang.json';
|
|
@@ -5,6 +5,7 @@ import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teac
|
|
|
5
5
|
declare class ContentUpdatesRouter extends Core.AppRouter {
|
|
6
6
|
get channelName(): string;
|
|
7
7
|
protected get appRoutes(): HashObject;
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
8
9
|
}
|
|
9
10
|
export declare class ContentUpdatesApplication extends ReactApplication {
|
|
10
11
|
protected layout: TeacherLayoutView;
|
|
@@ -4,6 +4,7 @@ import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teac
|
|
|
4
4
|
declare class DashboardAppRouter extends Core.AppRouter {
|
|
5
5
|
protected get channelName(): string;
|
|
6
6
|
protected get appRoutes(): ObjectHash;
|
|
7
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
7
8
|
}
|
|
8
9
|
export declare class DashboardApplication extends Core.Application {
|
|
9
10
|
protected layout: TeacherLayoutView;
|
|
@@ -8,6 +8,7 @@ declare class DefaultAppRouter extends Core.AppRouter {
|
|
|
8
8
|
protected get appRoutes(): ObjectHash;
|
|
9
9
|
protected get appLinks(): string[];
|
|
10
10
|
protected get externalRoutes(): HashObject;
|
|
11
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
11
12
|
}
|
|
12
13
|
export declare class DefaultApplication extends ReactApplication {
|
|
13
14
|
layout: TeacherLayoutView;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorPageError } from "../../../../../../../libs/shared/src/errors/primitives/ErrorPageError";
|
|
3
|
+
interface NotFoundViewProps {
|
|
4
|
+
error: ErrorPageError;
|
|
5
|
+
}
|
|
6
|
+
export declare function NotFoundView({ error }: NotFoundViewProps): React.ReactElement;
|
|
7
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import { EmbedLayoutView } from 'shared/layouts/embed-layout/EmbedLayoutView';
|
|
|
5
5
|
declare class EmbedAppRouter extends Core.AppRouter {
|
|
6
6
|
protected get channelName(): string;
|
|
7
7
|
protected get appRoutes(): HashObject;
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
8
9
|
}
|
|
9
10
|
export declare class EmbedApplication extends ReactApplication {
|
|
10
11
|
layout: EmbedLayoutView;
|
|
@@ -6,6 +6,7 @@ declare class PlaylistsAppRouter extends Core.AppRouter {
|
|
|
6
6
|
protected get channelName(): string;
|
|
7
7
|
protected get appRoutes(): HashObject;
|
|
8
8
|
protected get appLinks(): string[];
|
|
9
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
9
10
|
}
|
|
10
11
|
export declare class PlaylistsApplication extends ReactApplication {
|
|
11
12
|
protected layout: TeacherLayoutView;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Video, Playlist, CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
2
|
import { VideoAction } from "../../../../../../../libs/shared/src/utils/video-actions/VideoActionsHelper";
|
|
3
3
|
import { WorkflowPhase } from "../../../../../../../libs/analytics/src/interfaces";
|
|
4
|
+
import { PlaylistNotFoundError } from 'shared/errors/playlists/playlist-not-found/LitePlaylistNotFoundError';
|
|
5
|
+
import { PlaylistPrivateError } from 'shared/errors/playlists/playlist-private/PlaylistPrivateError';
|
|
4
6
|
/**
|
|
5
7
|
* NOTE:
|
|
6
8
|
* This will be wrong if we increase the playlist limit from 100, or
|
|
@@ -10,3 +12,9 @@ export declare function getLastUpdatedDate(videos: Video[]): string;
|
|
|
10
12
|
export declare function getVideoActions(canEdit: boolean): VideoAction[];
|
|
11
13
|
export declare function logSortAction(playlistId: string, videoId: string, workflowPhase: WorkflowPhase): void;
|
|
12
14
|
export declare function canEditPlaylist(playlist: Playlist, user: CurrentUser): boolean;
|
|
15
|
+
export declare const playlistErrors: {
|
|
16
|
+
notFound: typeof PlaylistNotFoundError;
|
|
17
|
+
forbidden: {
|
|
18
|
+
privacy: typeof PlaylistPrivateError;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -5,6 +5,7 @@ import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teac
|
|
|
5
5
|
declare class SearchAppRouter extends Core.AppRouter {
|
|
6
6
|
protected get channelName(): string;
|
|
7
7
|
protected get appRoutes(): ObjectHash;
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
8
9
|
}
|
|
9
10
|
export declare class SearchApplication extends Core.Application {
|
|
10
11
|
protected layout: TeacherLayoutView;
|
|
@@ -5,7 +5,7 @@ import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teac
|
|
|
5
5
|
declare class SettingsAppRouter extends Core.AppRouter {
|
|
6
6
|
protected get channelName(): string;
|
|
7
7
|
protected get appRoutes(): HashObject;
|
|
8
|
-
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
9
9
|
}
|
|
10
10
|
export declare class SettingsApplication extends ReactApplication {
|
|
11
11
|
protected layout: TeacherLayoutView;
|
|
@@ -5,12 +5,13 @@ import { ReactApplication } from "../../../../../libs/common/src/react/core/Reac
|
|
|
5
5
|
import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teacher-layout/TeacherLayoutView';
|
|
6
6
|
export declare class SubjectApplication extends ReactApplication {
|
|
7
7
|
protected layout: TeacherLayoutView;
|
|
8
|
+
private subjectsAppVariables;
|
|
9
|
+
initialize(): void;
|
|
8
10
|
get name(): string;
|
|
9
11
|
static get router(): any;
|
|
10
12
|
get channelName(): string;
|
|
11
13
|
protected get layoutOptions(): Core.LayoutOptions<TeacherLayoutViewOptions>;
|
|
12
14
|
classification(classificationId: string, slug?: string): void;
|
|
13
|
-
|
|
14
|
-
preferences({ step }: HashObject): void;
|
|
15
|
+
preferences(params?: HashObject): void;
|
|
15
16
|
protected onShowAlert(options?: ObjectHash): void;
|
|
16
17
|
}
|
|
@@ -2,6 +2,5 @@ import { Core } from "../../../../../../libs/common/src/backbone";
|
|
|
2
2
|
import { HashObject } from "../../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
3
|
import { Classification, Playlist } from "../../../../../../libs/shared/src/interfaces";
|
|
4
4
|
export declare const getClassificationAppLink: (params?: HashObject<any>) => (classification?: Classification) => Core.AppLink;
|
|
5
|
-
export declare const getSeriesSubviewAppLink: (classification: Classification) => Core.AppLink;
|
|
6
5
|
export declare const getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
|
|
7
6
|
export declare const getDashboardAppLink: () => Core.AppLink;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Core } from "../../../../../../libs/common/src/backbone";
|
|
2
|
+
import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
|
|
3
|
+
import { PreferenceStep } from "../../../../../../libs/shared/src/apps/subjects/utils/OnboardingHelper";
|
|
4
|
+
export declare const OnboardingHelper: {
|
|
5
|
+
buildAppLink(step: PreferenceStep, redirectUrl?: string): Core.AppLink;
|
|
6
|
+
getIsStep(currentStep: PreferenceStep): (steps?: "summary" | "welcome" | "subjects" | "levels" | "school-level" | "curriculum" | PreferenceStep[]) => boolean;
|
|
7
|
+
hasManyPresentationTypes(presentations?: import("../../../../../../libs/shared/src/interfaces").Presentation[]): HashObject<any>;
|
|
8
|
+
getBulkPreferencesState(state: import("../../../../../../libs/shared/src/enums/BulkOnboardingPreferencesState").BulkOnboardingPreferencesState): {
|
|
9
|
+
subjects: boolean;
|
|
10
|
+
levels: boolean;
|
|
11
|
+
};
|
|
12
|
+
stepIsValid(step: string): step is PreferenceStep;
|
|
13
|
+
hasBulkSelectedLevels(bulkState: import("../../../../../../libs/shared/src/enums/BulkOnboardingPreferencesState").BulkOnboardingPreferencesState): boolean;
|
|
14
|
+
hasBulkSelectedSubjects(bulkState: import("../../../../../../libs/shared/src/enums/BulkOnboardingPreferencesState").BulkOnboardingPreferencesState): boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const LazyStepViews: {
|
|
3
|
+
(): JSX.Element;
|
|
4
|
+
'welcome'(props: any): JSX.Element;
|
|
5
|
+
'school-level'(props: any): JSX.Element;
|
|
6
|
+
'curriculum'(props: any): JSX.Element;
|
|
7
|
+
'levels'(props: any): JSX.Element;
|
|
8
|
+
'subjects'(props: any): JSX.Element;
|
|
9
|
+
'summary'(props: any): JSX.Element;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PreferenceStep } from "../../../../../../../libs/shared/src/apps/subjects/utils/OnboardingHelper";
|
|
3
|
+
interface BasePreferencesViewProps {
|
|
4
|
+
step: PreferenceStep;
|
|
5
|
+
redirectUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function BasePreferencesView({ step: currentStep, redirectUrl }: BasePreferencesViewProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface LevelPreferencesViewProps {
|
|
3
|
-
|
|
3
|
+
redirectUrl: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function LevelPreferencesView({
|
|
5
|
+
export declare function LevelPreferencesView({ redirectUrl }: LevelPreferencesViewProps): JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface SubjectPreferencesViewProps {
|
|
3
|
-
|
|
3
|
+
redirectUrl: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function SubjectPreferencesView({
|
|
5
|
+
export declare function SubjectPreferencesView({ redirectUrl }: SubjectPreferencesViewProps): JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -5,7 +5,7 @@ import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teac
|
|
|
5
5
|
declare class WatchHistoryAppRouter extends Core.AppRouter {
|
|
6
6
|
protected get channelName(): string;
|
|
7
7
|
protected get appRoutes(): HashObject;
|
|
8
|
-
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.AppLink>[];
|
|
9
9
|
}
|
|
10
10
|
export declare class WatchHistoryApplication extends ReactApplication {
|
|
11
11
|
protected layout: TeacherLayoutView;
|
|
@@ -3,4 +3,5 @@ import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
|
|
|
3
3
|
import { Xhr } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
4
4
|
export declare const VideoHistoryRequests: {
|
|
5
5
|
userVideoHistory(customerId: string, userId: string, cursor?: string, success?: (data: HashObject<any>) => void, error?: (Xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
6
|
+
videoHistory(customerId: string, userId: string, ids: string[], success?: (data: HashObject<any>) => void, error?: (Xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
6
7
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Video } from "../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { Video, Theme } from "../../../../../../libs/shared/src/interfaces";
|
|
3
3
|
interface PlayPageProps {
|
|
4
4
|
video: Video;
|
|
5
5
|
relatedVideos: Video[];
|
|
6
6
|
setFavourite?: (videoId: string, shouldFavourite: boolean, onError?: () => void) => void;
|
|
7
|
+
glanceTheme?: Theme;
|
|
7
8
|
}
|
|
8
9
|
export declare function PlayPage(props: PlayPageProps): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Video } from "../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { Video, Theme } from "../../../../../../libs/shared/src/interfaces";
|
|
3
3
|
interface SynopsisProps {
|
|
4
4
|
video: Video;
|
|
5
|
+
theme: Theme;
|
|
5
6
|
onClickFullDescription: () => void;
|
|
6
7
|
}
|
|
7
8
|
export declare function Synopsis(props: SynopsisProps): JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { CurrentUser } from "../../../../../../libs/shared/src/interfaces";
|
|
|
3
3
|
interface UserOptionsProps {
|
|
4
4
|
user: CurrentUser;
|
|
5
5
|
imageCdnUrl: string;
|
|
6
|
+
onlyShowSignOut?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const UserOptions: React.NamedExoticComponent<UserOptionsProps>;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
+
declare function OnboardingFilter(appLink: Core.AppLink, next: Core.MiddlewareNext<Core.AppLink>): void;
|
|
3
|
+
declare function mustCompleteOnboarding(appLink: Core.AppLink, callback: (result: boolean) => void): void;
|
|
4
|
+
export { OnboardingFilter, mustCompleteOnboarding };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Flight } from "../../../../../libs/common/src/react";
|
|
2
|
+
import { BaseObject, CurrentUser } from "../../../../../libs/shared/src/interfaces";
|
|
3
|
+
import { BaseError } from "../../../../../libs/common/src/backbone/core/BaseError";
|
|
4
|
+
interface ErrorMap {
|
|
5
|
+
notFound?: new () => BaseError;
|
|
6
|
+
forbidden?: {
|
|
7
|
+
rating?: new (description: string) => BaseError;
|
|
8
|
+
yearLevel?: new (description: string) => BaseError;
|
|
9
|
+
region?: new () => BaseError;
|
|
10
|
+
privacy?: new () => BaseError;
|
|
11
|
+
};
|
|
12
|
+
badRequest?: new () => BaseError;
|
|
13
|
+
}
|
|
14
|
+
export declare function useHandleObjectError(object: Flight.Response<BaseObject>, customErrors: ErrorMap, currentUser: CurrentUser): void;
|
|
15
|
+
export {};
|
|
@@ -22,5 +22,9 @@ export interface PlayerContext {
|
|
|
22
22
|
* PlayView has set a video but not yet set a position
|
|
23
23
|
*/
|
|
24
24
|
isOnPlayPage: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Determines what time the video should start playing at
|
|
27
|
+
*/
|
|
28
|
+
startTime: number;
|
|
25
29
|
}
|
|
26
30
|
export declare function useInitPlayerContext(): void;
|