@clickview/online 0.0.5-dev.0 → 0.0.5-dev.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/dist/en.json +1 -1
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +2 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +6 -1
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +2 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/index.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +15 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItemStatus.d.ts +10 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/progress/PreferenceProgress.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-grid/SubjectPreferenceGrid.d.ts +2 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-item/SubjectPreferenceItem.d.ts +1 -0
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +1 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +1 -0
- package/dist/libs/shared/src/components/alert/Alert.d.ts +7 -0
- package/dist/libs/shared/src/components/alert/AlertContent.d.ts +8 -0
- package/dist/libs/shared/src/components/alert/AlertList.d.ts +8 -0
- package/dist/libs/shared/src/components/div-button/DivButton.d.ts +10 -0
- package/dist/libs/shared/src/components/pagination/Pagination.d.ts +28 -0
- package/dist/libs/shared/src/components/spinner-button/SpinnerButton.d.ts +1 -0
- package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +2 -0
- package/dist/libs/shared/src/components/toggle-switch/ToggleSwitch.d.ts +8 -0
- package/dist/libs/shared/src/components/video-list/VideoItem.d.ts +13 -0
- package/dist/libs/shared/src/components/video-list/VideoList.d.ts +22 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-actions/VideoItemActions.d.ts +7 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-badges/VideoItemBadges.d.ts +7 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-description/UseTruncateText.d.ts +9 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-description/VideoItemDescription.d.ts +8 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-header/VideoItemHeader.d.ts +9 -0
- package/dist/libs/shared/src/context/VideoActionsContext.d.ts +10 -0
- package/dist/libs/shared/src/enums/BulkOnboardingPreferencesState.d.ts +6 -0
- package/dist/libs/shared/src/enums/PresentationType.d.ts +4 -0
- package/dist/libs/shared/src/enums/SettingKind.d.ts +4 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +3 -0
- package/dist/libs/shared/src/flight-requests/FavouriteVideoRequests.d.ts +7 -0
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +12 -4
- package/dist/libs/shared/src/flight-requests/SettingRequests.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/VideoWithRestrictions.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -1
- package/dist/libs/shared/src/utils/RestrictionHelper.d.ts +5 -0
- package/dist/libs/shared/src/utils/VideoHelper.d.ts +4 -0
- package/dist/online-app.css +22 -10
- package/dist/online-app.css.map +1 -0
- package/dist/online-app.js +3 -3
- package/dist/online-app.js.map +1 -0
- package/dist/projects/online/src/apps/exchange/ExchangeApplication.d.ts +13 -0
- package/dist/projects/online/src/apps/exchange/components/exchange-sub-nav/ExchangeSubNav.d.ts +2 -0
- package/dist/projects/online/src/apps/exchange/views/exchange/ExchangeView.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/PlaylistApplication.d.ts +36 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistBreadcrumbsComponent.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeaderActionsComponent.d.ts +17 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/index.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/partial-loading/PartialPlaylistHeaderComponent.d.ts +6 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/partial-loading/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/PartialVideoList.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/PlaceHolder.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/RestrictedBadge.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/RestrictionInfo.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/SortableVideoList.d.ts +8 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/SortableVideoListContainer.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/ThumbnailComponent.d.ts +10 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoActionsComponent.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemComponent.d.ts +15 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemPreviewComponent.d.ts +9 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/web-player/WebPlayerComponent.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/flight-requests/SubjectRequests.d.ts +4 -0
- package/dist/projects/online/src/apps/playlists/flight-requests/index.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/views/add-to-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/delete-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/edit-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/index.d.ts +10 -0
- package/dist/projects/online/src/apps/playlists/views/left-nav/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/migration-in-progress/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/new-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/play-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/views/playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/playlists/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/remove-video-from-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/subjects/SubjectApplication.d.ts +2 -2
- package/dist/projects/online/src/apps/subjects/utils/OnboardingHelper.d.ts +14 -0
- package/dist/projects/online/src/apps/subjects/views/classification/ClassificationView.d.ts +1 -1
- package/dist/projects/online/src/apps/subjects/views/preferences/BasePreferencesView.d.ts +8 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/PreferencesView.d.ts +3 -3
- package/dist/projects/online/src/apps/subjects/views/preferences/curriculum-presentation/CurriculumPresentationSelectorView.d.ts +6 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/index.d.ts +4 -1
- package/dist/projects/online/src/apps/subjects/views/preferences/level-preferences/LevelPreferencesView.d.ts +2 -2
- package/dist/projects/online/src/apps/subjects/views/preferences/subject-preferences/SubjectPreferencesView.d.ts +2 -2
- package/dist/projects/online/src/apps/subjects/views/preferences/subject-presentation/SubjectPresentationSelectorView.d.ts +6 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/summary/PreferencesSummaryView.d.ts +1 -2
- package/dist/projects/online/src/apps/subjects/views/preferences/welcome/PreferencesWelcomeView.d.ts +6 -0
- package/dist/projects/online/src/index.d.ts +3 -0
- package/dist/projects/online/src/shared/hooks/UseVideoMixin.d.ts +2 -0
- package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -0
- package/package.json +3 -3
- package/typings/libs/FutureCoreHelper.d.ts +17 -0
package/dist/en.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"playlists":{"onlineClassificationBanner":{"follow":"Follow","following":"Following"},"onlineClassificationUpdateBreadcrumbs":{"dashboard":"Dashboard","whatsNew":"Whats new at ClickView"},"onlineWhatsNewBreadcrumbs":{"dashboard":"Dashboard","whatsNew":"Whats new at ClickView","switchBack":"Switch back to the old look"},"leftNav":{"playlists":"Playlists","loading":"Loading more...","seeMore":"See more playlists"},"newPlaylistButton":{"createNew":"Create a new playlist"},"playlistActions":{"share":"Share","edit":"Edit Playlist Details","delete":"Delete Playlist"},"playlistDetails":{"nameLabel":"Playlist Name","namePlaceholder":"Give your playlist a name...","descriptionLabel":"Description","descriptionPlaceholder":"Describe your playlist here","create":"Create","save":"Save","cancel":"Cancel"},"playlistHeader":{"follow":"Follow","following":"Following","edit":"Edit","share":"Share","delete":"Delete playlist","createdBy":"Created by %{user}","videos":"%{smart_count} video |||| %{smart_count} videos","followers":"%{smart_count} follower |||| %{smart_count} followers"},"playlistList":{"video":"%{smart_count} video |||| %{smart_count} videos","created":"Created %{date}","heading":"%{fname} %{lname}'s Playlists"},"videoNotFound":{"heading":"Video Not Found","info":"The video you have requested could not be found or has been removed.","returnTo":"Return to %{name}"},"app":{"accessDeniedHeading":"You do not have permission to view this playlist.","accessDeniedInfo":"If it was previously shared with you, the owner may have changed the privacy settings.","notFoundHeading":"Playlist Not Found","notFoundInfo":"The playlist you have requested could not be found or has been removed."},"services":{"createPlaylistSuccess":"Successfully created playlist.","createPlaylistError":"Failed to create playlist.","updatePlaylistSuccess":"Successfully updated playlist.","updatePlaylistError":"Failed to save playlist.","deletePlaylistError":"Failed to delete playlist.","updatePlaylistOrderError":"Failed to update playlist order.","addToPlaylistSuccess":"Successfully added video to playlist.","addToPlaylistError":"Failed to add video to playlist."},"addToPlaylist":{"heading":"Add to Playlist","selectPlaylist":"Select a playlist to add <strong>%{video}</strong> to:"},"selectPlaylist":{"placeholder":"Search your playlists or create a new one...","recentPlaylistsHeading":"Recent playlists saved to:","suggestionsHeading":"My Playlists","createPlaylist":"Create new playlist: <strong>%{name}</strong>"},"deletePlaylist":{"title":"Delete %{name}","keep":"No, keep my playlist","confirm":"Yes, delete this playlist","check":"Are you sure you want to delete this playlist?","warning":"This will permanently delete the playlist <strong>%{name}</strong>, along with any share links.","videoNote":"Videos in this playlist will not be deleted."},"editPlaylist":{"title":"Edit %{name}","heading":"Edit Playlist Details"},"migrationInProgress":{"heading":"Maintenance In Progress","description":"Playlists is currently undergoing some maintenance. Check back soon for some exciting updates!"},"newPlaylist":{"title":"New Playlist"},"playlists":{"title":"Playlists"},"removeVideoFromPlaylist":{"title":"Remove %{name}","keep":"No, keep this video","confirm":"Yes, remove this video","check":"Are you sure you want to remove this video?","warning":"This will remove <strong>%{video}</strong> from the playlist <strong>%{playlist}</strong>."},"videoList":{"removeHeading":"Remove from playlist","removeInfo":"Remove from this playlist","library":"your Library","workspace":"your Workspace","exchange":"the Exchange","videoFrom":"This video comes from","series":"Series:","added":"Added","ratedTitle":"Rated:","unrated":"UNRATED","unratedTitle":"Rated: UNRATED","productionYearTitle":"Production Year:","interactive":"Interactive","interactiveTitle":"Interactive videos are available for this programme.","showMore":"... Show more","showLess":"Show less","hide":"Hide video","show":"Show video","plus":"+","minus":"-"},"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>Create a new playlist</strong> in the left nav to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"contentUpdates":{"contentUpdatesView":{"followed":"Successfully followed <strong>%{classification}</strong>","unfollowed":"Successfully unfollowed <strong>%{classification}</strong>","showMore":"Show more new %{classificationName} videos"}},"dashboard":{"heroWidget":{"play":"Play","addToPlaylist":"Add to playlist","previous":"Previous","next":"Next"},"dashboard":{"curriculum":"Search by Curriculum","contentUpdates":"Content Updates from ClickView","featuredChannels":"Featured Channels"}},"":{},"libraries":{"libraries":{"newInteractives":"New Interactives","recentlyAdded":"Recently Added to %{name}"}},"moviesAndTv":{"moviesAndTv":{"infoBanner":"🔎 You're currently viewing all Movies + TV content. Students will <strong>only</strong> see videos within their allowed rating."}},"subjects":{"classificationSeriesList":{"dashboard":"Dashboard","subview":"Series","heading":"Series: %{classification}"},"classification":{"dashboard":"Dashboard","playlists":"Playlists","series":"Series","popular":"Popular videos","unfollow":"Unfollow","follow":"Follow","share":"Share","followBtnTooltip":"Follow to get notifications on new content added to this subject"},"levelPreferences":{"heading":"What <span class=\"%{highlightClass}\">year levels</span> do you currently teach?","back":"Back","next":"Next","allLevels":"I teach all year levels"},"subjectPreferencesView":{"heading":"What type of <span class=\"%{highlightClass}\">videos</span> will be helpful to you?","infoRow1":"This will help us tailor ClickView to you.","infoRow2":"You can select as many as you like!","back":"Back","followSubjects":"Follow %{smart_count} Subject |||| Follow %{smart_count} Subjects","allOfParent":"All of %{parent}","allSubjects":"I'm interested in all subjects","next":"Next"},"preferencesSummary":{"heading":"<span class=\"%{highlightClass}\">Summary</span> of your preferences","info":"You can change your preferences in your profile settings at any time","levels":"Year levels","subjects":"Subjects","getStarted":"Get Started","noLevelPreferences":"You haven't set any level preferences yet.","noSubjectPreferences":"You haven't set any subject preferences yet."},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips"}},"shared":{"context":{"defaultTitle":"Playlists"},"notFound":{"title":"Page not found","heading":"Page not found","description":"This page does not exist"},"error":{"return":"Return to home"},"share":{"close":"Close","share":"Share","sharePlaylist":"Share Playlist"},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos"},"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects"},"_pagination":{"next":"Next","previous":"Previous"},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}}}
|
|
1
|
+
{"playlists":{"onlineClassificationBanner":{"follow":"Follow","following":"Following"},"onlineClassificationUpdateBreadcrumbs":{"dashboard":"Dashboard","whatsNew":"Whats new at ClickView"},"onlineWhatsNewBreadcrumbs":{"dashboard":"Dashboard","whatsNew":"What's new at ClickView","switchBack":"Switch back to the old look"},"leftNav":{"playlists":"Playlists","loading":"Loading more...","seeMore":"See more playlists"},"newPlaylistButton":{"createNew":"Create a new playlist"},"playlistActions":{"share":"Share","edit":"Edit Playlist Details","delete":"Delete Playlist"},"playlistDetails":{"nameLabel":"Playlist Name","namePlaceholder":"Give your playlist a name...","descriptionLabel":"Description","descriptionPlaceholder":"Describe your playlist here","create":"Create","save":"Save","cancel":"Cancel"},"playlistHeader":{"follow":"Follow","following":"Following","edit":"Edit","share":"Share","delete":"Delete playlist","createdBy":"Created by %{user}","videos":"%{smart_count} video |||| %{smart_count} videos","followers":"%{smart_count} follower |||| %{smart_count} followers"},"playlistList":{"video":"%{smart_count} video |||| %{smart_count} videos","created":"Created %{date}","heading":"%{fname} %{lname}'s Playlists"},"videoNotFound":{"heading":"Video Not Found","info":"The video you have requested could not be found or has been removed.","returnTo":"Return to %{name}"},"app":{"accessDeniedHeading":"You do not have permission to view this playlist.","accessDeniedInfo":"If it was previously shared with you, the owner may have changed the privacy settings.","notFoundHeading":"Playlist Not Found","notFoundInfo":"The playlist you have requested could not be found or has been removed."},"services":{"createPlaylistSuccess":"Successfully created playlist.","createPlaylistError":"Failed to create playlist.","updatePlaylistSuccess":"Successfully updated playlist.","updatePlaylistError":"Failed to save playlist.","deletePlaylistError":"Failed to delete playlist.","updatePlaylistOrderError":"Failed to update playlist order.","addToPlaylistSuccess":"Successfully added video to playlist.","addToPlaylistError":"Failed to add video to playlist."},"addToPlaylist":{"heading":"Add to Playlist","selectPlaylist":"Select a playlist to add <strong>%{video}</strong> to:"},"selectPlaylist":{"placeholder":"Search your playlists or create a new one...","recentPlaylistsHeading":"Recent playlists saved to:","suggestionsHeading":"My Playlists","createPlaylist":"Create new playlist: <strong>%{name}</strong>"},"deletePlaylist":{"title":"Delete %{name}","keep":"No, keep my playlist","confirm":"Yes, delete this playlist","check":"Are you sure you want to delete this playlist?","warning":"This will permanently delete the playlist <strong>%{name}</strong>, along with any share links.","videoNote":"Videos in this playlist will not be deleted."},"editPlaylist":{"title":"Edit %{name}","heading":"Edit Playlist Details"},"migrationInProgress":{"heading":"Maintenance In Progress","description":"Playlists is currently undergoing some maintenance. Check back soon for some exciting updates!"},"newPlaylist":{"title":"New Playlist"},"playlists":{"title":"Playlists"},"removeVideoFromPlaylist":{"title":"Remove %{name}","keep":"No, keep this video","confirm":"Yes, remove this video","check":"Are you sure you want to remove this video?","warning":"This will remove <strong>%{video}</strong> from the playlist <strong>%{playlist}</strong>."},"videoList":{"removeHeading":"Remove from playlist","removeInfo":"Remove from this playlist","library":"your Library","workspace":"your Workspace","exchange":"the Exchange","videoFrom":"This video comes from","series":"Series:","added":"Added","ratedTitle":"Rated:","unrated":"UNRATED","unratedTitle":"Rated: UNRATED","productionYearTitle":"Production Year:","interactive":"Interactive","interactiveTitle":"Interactive videos are available for this programme.","showMore":"... Show more","showLess":"Show less","hide":"Hide video","show":"Show video","plus":"+","minus":"-"},"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>Create a new playlist</strong> in the left nav to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"contentUpdates":{"contentUpdatesView":{"followed":"Successfully followed <strong>%{classification}</strong>","unfollowed":"Successfully unfollowed <strong>%{classification}</strong>","showMore":"Show more new %{classificationName} videos","error":"Something went wrong, please try again."}},"dashboard":{"heroWidget":{"play":"Play","addToPlaylist":"Add to playlist","previous":"Previous","next":"Next"},"dashboard":{"curriculum":"Search by Curriculum","contentUpdates":"Content Updates from ClickView","featuredChannels":"Featured Channels"}},"":{},"libraries":{"libraries":{"newInteractives":"New Interactives","recentlyAdded":"Recently Added to %{name}"}},"moviesAndTv":{"moviesAndTv":{"infoBanner":"🔎 You're currently viewing all Movies + TV content. Students will <strong>only</strong> see videos within their allowed rating."}},"subjects":{"classificationSeriesList":{"dashboard":"Dashboard","subview":"Series","heading":"Series: %{classification}"},"classification":{"dashboard":"Dashboard","playlists":"Playlists","series":"Series","popular":"Popular videos","unfollow":"Unfollow","follow":"Follow","share":"Share","followBtnTooltip":"Follow to get notifications on new content added to this subject"},"curriculumPresentationSelector":{"next":"Next","heading":"Which curriculum is most relevant to you?","info":"The videos we show you will be tailored to the curriculum you select","back":"Back","error":"Something went wrong, please try again."},"levelPreferences":{"heading":"Who do you currently teach?","info":"We will tailor your experience based on your audience.","back":"Back","next":"Next","allLevels":"I teach all year levels","error":"Something went wrong while we were trying to save your changes. Please try again."},"subjectPreferencesView":{"heading":"What type of videos will be helpful to you?","infoRow1":"This will help us tailor ClickView to you.","infoRow2":"You can select as many as you like!","back":"Back","followSubjects":"Follow %{smart_count} Subject |||| Follow %{smart_count} Subjects","allOfParent":"All of %{parent}","allSubjects":"I'm interested in all subjects","next":"Next","error":"Something went wrong while we were trying to save your changes. Please try again."},"subjectPresentationSelector":{"next":"Next","heading":"What school level do you currently teach?","info":"We can send you content based on your school level","error":"Something went wrong, please try again."},"preferencesSummary":{"heading":"Summary of your preferences","info":"You can change your preferences in your profile settings at any time","levels":"Year levels","subjects":"Subjects","getStarted":"Get Started","save":"Save My Preferences","noLevelPreferences":"You haven't set any year level preferences yet.","noSubjectPreferences":"You haven't set any subject preferences yet.","allLevels":"You have selected all year levels.","allSubjects":"You have selected all subjects.","onboardingOptionError":"Something went wrong. Please check your internet connection and try again."},"preferencesWelcome":{"welcome":"Welcome <span class=\"%{highlightClass}\">%{firstName}</span>!","info1":"We want to get to know you a little bit better so we can <strong>tailor to your teaching needs!</strong>","info2":"This will only take a few minutes and everything you'll ever need will be at your fingertips.","getStarted":"Get started","user":"user"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips"}},"shared":{"context":{"defaultTitle":"Playlists"},"notFound":{"title":"Page not found","heading":"Page not found","description":"This page does not exist"},"error":{"return":"Return to home"},"share":{"close":"Close","share":"Share","sharePlaylist":"Share Playlist"},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos"},"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects"},"_pagination":{"next":"Next","previous":"Previous"},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}}}
|
|
@@ -26,7 +26,8 @@ export declare class CollectionApiClient {
|
|
|
26
26
|
constructor(options: CollectionApiClientOptions);
|
|
27
27
|
initialize(): void;
|
|
28
28
|
get name(): string;
|
|
29
|
-
log(event: IncomingEvent): Promise<void>;
|
|
29
|
+
log(event: IncomingEvent | IncomingEvent[]): Promise<void>;
|
|
30
|
+
private logBulk;
|
|
30
31
|
private validateOptions;
|
|
31
32
|
private shouldLog;
|
|
32
33
|
private postData;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HashObject, Video } from "../interfaces";
|
|
2
|
+
export interface VideoWatchAnalyticsEvent {
|
|
3
|
+
model: Video;
|
|
4
|
+
playbackStatus: PlaybackStatus;
|
|
5
|
+
}
|
|
6
|
+
export interface PlaybackStatus {
|
|
7
|
+
position: number;
|
|
8
|
+
chapter: number;
|
|
9
|
+
totalDuration: number;
|
|
10
|
+
totalWatched: number;
|
|
11
|
+
hasStarted?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface BaseVideoData {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
trackingCode: string;
|
|
17
|
+
duration: number;
|
|
18
|
+
}
|
|
19
|
+
interface BaseAssocData {
|
|
20
|
+
id: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface VideoAnalyticsPayload {
|
|
24
|
+
video: BaseVideoData;
|
|
25
|
+
rating?: string;
|
|
26
|
+
series?: BaseAssocData;
|
|
27
|
+
folder?: BaseAssocData;
|
|
28
|
+
owner?: BaseAssocData;
|
|
29
|
+
playlist?: BaseAssocData;
|
|
30
|
+
playbackStatus?: PlaybackStatus;
|
|
31
|
+
}
|
|
32
|
+
export declare const VideoDataFormatHelper: {
|
|
33
|
+
getVideoData(options: VideoWatchAnalyticsEvent): VideoAnalyticsPayload;
|
|
34
|
+
/**
|
|
35
|
+
* Map to the same properties recorded in Online.
|
|
36
|
+
* @see _toLogMasterVideo() in AnalyticsService in Online
|
|
37
|
+
*
|
|
38
|
+
* TODO: Video origin and user channel logging - both of these need to be re-worked properly.
|
|
39
|
+
*/
|
|
40
|
+
getLegacyVideoData(options: VideoWatchAnalyticsEvent): HashObject<any>;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import * as _ from 'underscore';
|
|
2
3
|
declare type Iterator<T, TResult = T> = (value: T, index: number, list: T[]) => TResult;
|
|
3
4
|
export declare const ArrayHelper: {
|
|
@@ -22,7 +23,11 @@ export declare const ArrayHelper: {
|
|
|
22
23
|
* @param arr array of values
|
|
23
24
|
* @param value value to be added or removed.
|
|
24
25
|
*/
|
|
25
|
-
addOrRemove<T_13 =
|
|
26
|
+
addOrRemove<T_13 = import("react").Key>(arr: T_13[], value: T_13): T_13[];
|
|
27
|
+
/**
|
|
28
|
+
* This is the same addOrRemove function above, except it doesn't mutate the array in the argument
|
|
29
|
+
* and returns a branch new array.
|
|
30
|
+
*/
|
|
26
31
|
addOrRemoveImmutable<T_14>(arr: T_14[], value: T_14): T_14[];
|
|
27
32
|
/**
|
|
28
33
|
* Returns a (stably) sorted copy of list, ranked in ascending order
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ObjectHash } from 'backbone';
|
|
2
3
|
export declare const TextHelper: {
|
|
3
4
|
escapeExpression(text: string): string;
|
|
4
5
|
escapeRegExp(str: string): string;
|
|
5
6
|
slugify(str: string): string;
|
|
6
7
|
linkifyText(text: string, options?: ObjectHash): string;
|
|
7
|
-
isEqual(str1:
|
|
8
|
+
isEqual(str1: import("react").Key, str2: import("react").Key): boolean;
|
|
8
9
|
toTitleCase(str: string): string;
|
|
9
10
|
};
|
|
@@ -2,3 +2,4 @@ export * from './footer/PreferenceFooter';
|
|
|
2
2
|
export * from './progress/PreferenceProgress';
|
|
3
3
|
export * from './subject-preference-grid/SubjectPreferenceGrid';
|
|
4
4
|
export * from './subject-preference-item/SubjectPreferenceItem';
|
|
5
|
+
export * from './preference-item/PreferenceItem';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PreferenceItemProps {
|
|
3
|
+
name: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
onClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
hideStatus?: boolean;
|
|
9
|
+
isExpandable?: boolean;
|
|
10
|
+
expand?: boolean;
|
|
11
|
+
selectedChildCount?: number;
|
|
12
|
+
extraClasses?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function PreferenceItem(props: PreferenceItemProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ExpandableItemStatusProps {
|
|
3
|
+
selectedChildrenCount: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const ExpandableItemStatus: (props: ExpandableItemStatusProps) => JSX.Element;
|
|
6
|
+
interface SelectableItemStatusProps {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SelectableItemStatus: (props: SelectableItemStatusProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -5,6 +5,7 @@ interface SubjectPreferenceGridProps {
|
|
|
5
5
|
subjects: ClassificationPreference[];
|
|
6
6
|
onSelect: (subject: Classification) => void;
|
|
7
7
|
onExpand: (subject: Classification) => void;
|
|
8
|
+
disableAll?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare function SubjectPreferenceGrid(
|
|
10
|
+
export declare function SubjectPreferenceGrid(props: SubjectPreferenceGridProps): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -6,6 +6,7 @@ interface SubjectPreferenceItemProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
onClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
8
8
|
extraClasses?: string;
|
|
9
|
+
hideStatus?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare function SubjectPreferenceItem(props: SubjectPreferenceItemProps): JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseAlert } from "../../../../common/src/backbone/services/BaseAlertService";
|
|
3
|
+
export interface AlertProps {
|
|
4
|
+
alert: BaseAlert;
|
|
5
|
+
closeAlert: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function Alert({ alert, closeAlert }: AlertProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertProps } from './Alert';
|
|
3
|
+
interface AlertContentProps extends AlertProps {
|
|
4
|
+
svgName: string;
|
|
5
|
+
svgClassName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertContent(props: AlertContentProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseAlert } from "../../../../common/src/backbone/services/BaseAlertService";
|
|
3
|
+
interface AlertListProps {
|
|
4
|
+
alerts: BaseAlert[];
|
|
5
|
+
removeAlert: (id: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertList({ alerts, removeAlert }: AlertListProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface DivButtonProps extends React.ButtonHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
onClick: (...args: any) => any;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This element lets us use `div` elements as buttons without losing the accessibility of
|
|
7
|
+
* a regular HTML button element
|
|
8
|
+
*/
|
|
9
|
+
export declare function DivButton(props: React.PropsWithChildren<DivButtonProps>): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { Cursors } from "../../../../common/src/backbone/interfaces";
|
|
4
|
+
interface CursorPaginationProps {
|
|
5
|
+
cursors: Cursors;
|
|
6
|
+
appLink: Core.AppLink;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Pagination({ appLink, cursors, className }: CursorPaginationProps): JSX.Element;
|
|
10
|
+
export declare namespace Pagination {
|
|
11
|
+
var defaultProps: {
|
|
12
|
+
className: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface LocalPaginationProps {
|
|
16
|
+
onClickNext: () => void;
|
|
17
|
+
onClickBack: () => void;
|
|
18
|
+
currentPage: number;
|
|
19
|
+
totalPages: number;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function LocalPagination(props: LocalPaginationProps): JSX.Element;
|
|
23
|
+
export declare namespace LocalPagination {
|
|
24
|
+
var defaultProps: {
|
|
25
|
+
className: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -3,5 +3,6 @@ import { ButtonProps } from 'react-bootstrap';
|
|
|
3
3
|
export interface SpinnerButtonProps extends ButtonProps {
|
|
4
4
|
showSpinner: boolean;
|
|
5
5
|
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare function SpinnerButton(props: React.PropsWithChildren<SpinnerButtonProps>): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { Video, Series } from "../../interfaces";
|
|
4
|
+
interface VideoItemProps {
|
|
5
|
+
video: Video;
|
|
6
|
+
getVideoAppLink: (video: Video) => Core.AppLink;
|
|
7
|
+
getSeriesAppLink: (series: Series) => Core.AppLink;
|
|
8
|
+
setFavourite?: (videoId: string, shouldFavourite: boolean, onError?: () => void) => void;
|
|
9
|
+
idx?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function VideoItem(props: VideoItemProps): JSX.Element;
|
|
12
|
+
export declare const SortableVideoItem: React.ComponentClass<VideoItemProps & import("react-sortable-hoc").SortableElementProps, any>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { Cursors } from "../../../../common/src/backbone/interfaces";
|
|
4
|
+
import { Video, Series } from "../../interfaces";
|
|
5
|
+
interface SortableContextProps {
|
|
6
|
+
isSortable: boolean;
|
|
7
|
+
currentSortingIndex?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const SortableContext: React.Context<SortableContextProps>;
|
|
10
|
+
export interface VideoListProps {
|
|
11
|
+
videos: Video[];
|
|
12
|
+
getVideoAppLink: (video: Video) => Core.AppLink;
|
|
13
|
+
getSeriesAppLink: (series: Series) => Core.AppLink;
|
|
14
|
+
setFavourite?: (videoId: string, shouldFavourite: boolean, onError?: () => void) => void;
|
|
15
|
+
cursors?: Cursors;
|
|
16
|
+
}
|
|
17
|
+
export declare function VideoList(props: VideoListProps): JSX.Element;
|
|
18
|
+
interface SortableVideoListProps extends VideoListProps {
|
|
19
|
+
currentSortingIndex?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const SortableVideoList: React.ComponentClass<SortableVideoListProps & import("react-sortable-hoc").SortableContainerProps, any>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
interface TruncationState<T extends HTMLElement> {
|
|
3
|
+
ref: MutableRefObject<T>;
|
|
4
|
+
isExpandable: boolean;
|
|
5
|
+
isTruncated: boolean;
|
|
6
|
+
toggleTruncation: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useTruncateText<T extends HTMLElement>(maxHeight: number): TruncationState<T>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Video } from "../../../../interfaces";
|
|
3
|
+
interface VideoItemDescriptionProps {
|
|
4
|
+
video: Video;
|
|
5
|
+
forceTruncate?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function VideoItemDescription(props: VideoItemDescriptionProps): JSX.Element;
|
|
8
|
+
export {};
|
package/dist/libs/shared/src/components/video-list/components/video-item-header/VideoItemHeader.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from "../../../../../../common/src/backbone";
|
|
3
|
+
import { Video } from "../../../../interfaces";
|
|
4
|
+
interface VideoItemHeaderProps {
|
|
5
|
+
video: Video;
|
|
6
|
+
appLink: Core.AppLink;
|
|
7
|
+
}
|
|
8
|
+
export declare function VideoItemHeader(props: VideoItemHeaderProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../common/src/backbone";
|
|
3
|
+
import { VideoAction } from "../utils/video-actions/VideoActionsHelper";
|
|
4
|
+
import { Video } from "../interfaces";
|
|
5
|
+
interface VideoActionsContextProps {
|
|
6
|
+
videoActions?: VideoAction[];
|
|
7
|
+
getActionAppLink?: (video: Video, action: VideoAction) => Core.AppLink;
|
|
8
|
+
}
|
|
9
|
+
export declare const VideoActionsContext: React.Context<VideoActionsContextProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { Xhr } from "../../../common/src/backbone/interfaces";
|
|
3
|
+
export declare const FavouriteVideoRequests: {
|
|
4
|
+
favouriteVideos(userId: string, cursor?: string): Flight.Request;
|
|
5
|
+
updateIsVideoFavourited(videoId: string, userId: string, shouldFavourite: boolean, success?: () => void, error?: (Xhr: Xhr) => void): Flight.Request;
|
|
6
|
+
isFavourited(userId: string, ids: string[]): Flight.Request;
|
|
7
|
+
};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { PresentationType } from "../enums/PresentationType";
|
|
3
|
+
import { Presentation } from "../interfaces";
|
|
2
4
|
export declare const PreferenceRequests: {
|
|
5
|
+
/**
|
|
6
|
+
* Presentations
|
|
7
|
+
*/
|
|
8
|
+
currentPresentations(type?: PresentationType): Flight.Request;
|
|
9
|
+
availablePresentations(type?: PresentationType): Flight.Request;
|
|
10
|
+
setPresentation(presentation: Presentation, type: PresentationType, success?: () => void): Flight.Request;
|
|
3
11
|
/**
|
|
4
12
|
* Subjects
|
|
5
13
|
*/
|
|
6
14
|
allSubjectPreferences(): Flight.Request;
|
|
7
15
|
mySubjectPreferences(): Flight.Request;
|
|
8
|
-
followSubjects(subjectIds: string[], success: () => void, always
|
|
9
|
-
unfollowSubjects(subjectIds: string[], success: () => void, always
|
|
16
|
+
followSubjects(subjectIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
17
|
+
unfollowSubjects(subjectIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
10
18
|
/**
|
|
11
19
|
* Levels
|
|
12
20
|
*/
|
|
13
21
|
allLevelPreferences(): Flight.Request;
|
|
14
22
|
myLevelPreferences(): Flight.Request;
|
|
15
|
-
followLevels(levelIds: string[], success: () => void, always
|
|
16
|
-
unfollowLevels(levelIds: string[], success: () => void, always
|
|
23
|
+
followLevels(levelIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
24
|
+
unfollowLevels(levelIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
17
25
|
};
|
|
@@ -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
|
+
};
|
|
@@ -26,5 +26,5 @@ export declare const ImageHelper: {
|
|
|
26
26
|
Rfc3986EncodeURIComponent(str: string): string;
|
|
27
27
|
_createCategoryMappedUrl(mappingOptions: CategoryMapperImageOptions, options?: ImageOptions): string;
|
|
28
28
|
_createUrl(baseUrl: string, options?: ImageOptions): string;
|
|
29
|
-
legacyCreateThumbnailUrl(thumbnail: string | Core.Model
|
|
29
|
+
legacyCreateThumbnailUrl(thumbnail: string | HashObject<any> | Core.Model, options?: ImageOptions): string;
|
|
30
30
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Restriction, RestrictedObject, Video } from "../interfaces";
|
|
2
|
+
export declare const RestrictionHelper: {
|
|
3
|
+
mixinRestrictions(videos: Video[], restrictions: Restriction[]): any[];
|
|
4
|
+
getVideoRestrictions(videoId: string, restrictions: Restriction[]): RestrictedObject[];
|
|
5
|
+
};
|