@clickview/online 0.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/apps/content-updates/ContentUpdatesApplication.d.ts +12 -0
- package/dist/apps/content-updates/components/classification-banner/ClassifictionBannerContainer.d.ts +11 -0
- package/dist/apps/content-updates/components/classification-update-breadcrumbs/ClassificationUpdateBreadcrumbsContainer.d.ts +9 -0
- package/dist/apps/content-updates/components/index.d.ts +3 -0
- package/dist/apps/content-updates/components/whats-new-breadcrumbs/WhatsNewBreadcrumbsContainer.d.ts +6 -0
- package/dist/apps/content-updates/context/ContentUpdatesAppContext.d.ts +4 -0
- package/dist/apps/content-updates/context/index.d.ts +1 -0
- package/dist/apps/content-updates/flight-requests/ContentUpdatesRequests.d.ts +11 -0
- package/dist/apps/content-updates/flight-requests/index.d.ts +1 -0
- package/dist/apps/content-updates/interfaces/ClassificationVideosGrouping.d.ts +6 -0
- package/dist/apps/content-updates/interfaces/ContentUpdate.d.ts +7 -0
- package/dist/apps/content-updates/interfaces/ContentUpdateAppLinks.d.ts +12 -0
- package/dist/apps/content-updates/interfaces/Reason.d.ts +6 -0
- package/dist/apps/content-updates/interfaces/VideoClassificationMapping.d.ts +4 -0
- package/dist/apps/content-updates/interfaces/VideoWithClassification.d.ts +4 -0
- package/dist/apps/content-updates/interfaces/index.d.ts +7 -0
- package/dist/apps/content-updates/views/classification-update/ClassificationUpdateView.d.ts +7 -0
- package/dist/apps/content-updates/views/classification-update/index.d.ts +1 -0
- package/dist/apps/content-updates/views/content-updates/ContentUpdatesView.d.ts +6 -0
- package/dist/apps/content-updates/views/content-updates/components/ContentUpdateClassification.d.ts +14 -0
- package/dist/apps/content-updates/views/content-updates/index.d.ts +1 -0
- package/dist/apps/content-updates/views/index.d.ts +2 -0
- package/dist/apps/default/OnlineDefaultApplication.d.ts +12 -0
- package/dist/apps/playlists/PlaylistApplication.d.ts +36 -0
- package/dist/apps/playlists/components/empty-state/EmptyPlaylistListComponent.d.ts +2 -0
- package/dist/apps/playlists/components/empty-state/EmptyVideoListComponent.d.ts +6 -0
- package/dist/apps/playlists/components/empty-state/index.d.ts +2 -0
- package/dist/apps/playlists/components/index.d.ts +7 -0
- package/dist/apps/playlists/components/new-playlist-button/NewPlaylistButtonComponent.d.ts +8 -0
- package/dist/apps/playlists/components/new-playlist-button/index.d.ts +1 -0
- package/dist/apps/playlists/components/playlist-details/PlaylistDetailsComponent.d.ts +10 -0
- package/dist/apps/playlists/components/playlist-details/index.d.ts +1 -0
- package/dist/apps/playlists/components/playlist-header/PlaylistHeaderActionsComponent.d.ts +17 -0
- package/dist/apps/playlists/components/playlist-header/PlaylistHeaderComponent.d.ts +22 -0
- package/dist/apps/playlists/components/playlist-header/index.d.ts +2 -0
- package/dist/apps/playlists/components/playlist-list/PartialPlaylistList.d.ts +2 -0
- package/dist/apps/playlists/components/playlist-list/PartialPlaylistListHeader.d.ts +2 -0
- package/dist/apps/playlists/components/playlist-list/PlaylistListComponent.d.ts +10 -0
- package/dist/apps/playlists/components/playlist-list/PlaylistListHeaderComponent.d.ts +11 -0
- package/dist/apps/playlists/components/playlist-list/index.d.ts +4 -0
- package/dist/apps/playlists/components/video-list/SortableVideoListContainer.d.ts +12 -0
- package/dist/apps/playlists/components/video-list/index.d.ts +1 -0
- package/dist/apps/playlists/components/video-not-found/VideoNotFoundComponent.d.ts +8 -0
- package/dist/apps/playlists/components/video-not-found/index.d.ts +1 -0
- package/dist/apps/playlists/context/PlaylistsAppContext.d.ts +4 -0
- package/dist/apps/playlists/context/index.d.ts +1 -0
- package/dist/apps/playlists/enums/MigrationTaskStatus.d.ts +6 -0
- package/dist/apps/playlists/enums/PlaylistSortType.d.ts +5 -0
- package/dist/apps/playlists/enums/index.d.ts +2 -0
- package/dist/apps/playlists/filters/MigrationFilter.d.ts +2 -0
- package/dist/apps/playlists/filters/index.d.ts +1 -0
- package/dist/apps/playlists/flight-requests/PlaylistRequests.d.ts +21 -0
- package/dist/apps/playlists/flight-requests/SubjectRequests.d.ts +5 -0
- package/dist/apps/playlists/flight-requests/VideoRequests.d.ts +5 -0
- package/dist/apps/playlists/flight-requests/index.d.ts +3 -0
- package/dist/apps/playlists/flight-requests/utils/PlaylistStateUpdateHelper.d.ts +11 -0
- package/dist/apps/playlists/flight-requests/utils/index.d.ts +1 -0
- package/dist/apps/playlists/hooks/UseHandlePlaylistError.d.ts +3 -0
- package/dist/apps/playlists/hooks/index.d.ts +1 -0
- package/dist/apps/playlists/interfaces/PlaylistCollectionIdentifier.d.ts +5 -0
- package/dist/apps/playlists/interfaces/PlaylistVideoCollectionIdentifier.d.ts +4 -0
- package/dist/apps/playlists/interfaces/data-requests/CreateOrUpdatePlaylistRequest.d.ts +4 -0
- package/dist/apps/playlists/interfaces/data-requests/index.d.ts +1 -0
- package/dist/apps/playlists/interfaces/index.d.ts +4 -0
- package/dist/apps/playlists/interfaces/models/Following.d.ts +4 -0
- package/dist/apps/playlists/interfaces/models/MigrationTask.d.ts +4 -0
- package/dist/apps/playlists/interfaces/models/index.d.ts +2 -0
- package/dist/apps/playlists/services/FlightPlaylistDataService.d.ts +15 -0
- package/dist/apps/playlists/services/index.d.ts +1 -0
- package/dist/apps/playlists/utils/PlaylistSortHelper.d.ts +5 -0
- package/dist/apps/playlists/utils/PlaylistVideoActionAppLinkHelper.d.ts +3 -0
- package/dist/apps/playlists/utils/RecentPlaylistHelper.d.ts +14 -0
- package/dist/apps/playlists/utils/index.d.ts +4 -0
- package/dist/apps/playlists/utils/validation/PlaylistValidationSchema.d.ts +5 -0
- package/dist/apps/playlists/utils/validation/index.d.ts +1 -0
- package/dist/apps/playlists/views/add-to-playlist/AddToPlaylistView.d.ts +6 -0
- package/dist/apps/playlists/views/add-to-playlist/components/index.d.ts +1 -0
- package/dist/apps/playlists/views/add-to-playlist/components/select-playlist/SelectPlaylist.d.ts +10 -0
- package/dist/apps/playlists/views/add-to-playlist/components/select-playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/add-to-playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/delete-playlist/DeletePlaylistView.d.ts +10 -0
- package/dist/apps/playlists/views/delete-playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/edit-playlist/EditPlaylistView.d.ts +8 -0
- package/dist/apps/playlists/views/edit-playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/index.d.ts +10 -0
- package/dist/apps/playlists/views/left-nav/LeftNavView.d.ts +5 -0
- package/dist/apps/playlists/views/left-nav/index.d.ts +1 -0
- package/dist/apps/playlists/views/migration-in-progress/MigrationInProgressView.d.ts +2 -0
- package/dist/apps/playlists/views/migration-in-progress/index.d.ts +1 -0
- package/dist/apps/playlists/views/new-playlist/NewPlaylistView.d.ts +8 -0
- package/dist/apps/playlists/views/new-playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/play-playlist/PlayPlaylistView.d.ts +11 -0
- package/dist/apps/playlists/views/play-playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/playlist/PlaylistView.d.ts +19 -0
- package/dist/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +19 -0
- package/dist/apps/playlists/views/playlist/index.d.ts +1 -0
- package/dist/apps/playlists/views/playlists/PlaylistsView.d.ts +11 -0
- package/dist/apps/playlists/views/playlists/index.d.ts +1 -0
- package/dist/apps/playlists/views/remove-video-from-playlist/RemoveVideoFromPlaylistView.d.ts +9 -0
- package/dist/apps/playlists/views/remove-video-from-playlist/index.d.ts +1 -0
- package/dist/apps/subjects/SubjectApplication.d.ts +20 -0
- package/dist/apps/subjects/context/SubjectAppContext.d.ts +4 -0
- package/dist/apps/subjects/context/index.d.ts +1 -0
- package/dist/apps/subjects/views/SubjectPlaylistView.d.ts +9 -0
- package/dist/apps/subjects/views/index.d.ts +1 -0
- package/dist/clients/lite/components/apps/content-updates/classification-banner/LiteClassificationBanner.d.ts +2 -0
- package/dist/clients/lite/components/apps/content-updates/classification-update-breadcrumbs/LiteClassificationUpdateBreadcrumbs.d.ts +2 -0
- package/dist/clients/lite/components/apps/content-updates/index.d.ts +3 -0
- package/dist/clients/lite/components/apps/content-updates/whats-new-breadcrumbs/LiteWhatsNewBreadcrumbs.d.ts +2 -0
- package/dist/clients/lite/components/apps/playlists/index.d.ts +4 -0
- package/dist/clients/lite/components/apps/playlists/playlist-header/PlaylistHeader.d.ts +2 -0
- package/dist/clients/lite/components/apps/playlists/playlist-header/index.d.ts +1 -0
- package/dist/clients/lite/components/apps/playlists/playlist-list-header/PlaylistListHeader.d.ts +2 -0
- package/dist/clients/lite/components/apps/playlists/playlist-list-header/index.d.ts +1 -0
- package/dist/clients/lite/components/apps/playlists/playlist-sort-select/PlaylistSortSelect.d.ts +8 -0
- package/dist/clients/lite/components/apps/playlists/playlist-sort-select/index.d.ts +1 -0
- package/dist/clients/lite/components/apps/playlists/video-list/SortableVideoListContainer.d.ts +3 -0
- package/dist/clients/lite/components/apps/playlists/video-list/index.d.ts +1 -0
- package/dist/clients/lite/components/index.d.ts +3 -0
- package/dist/clients/lite/components/shared/Popup.d.ts +3 -0
- package/dist/clients/lite/components/shared/index.d.ts +1 -0
- package/dist/clients/lite/index.d.ts +1 -0
- package/dist/clients/online/components/apps/content-updates/classification-banner/OnlineClassificationBanner.d.ts +2 -0
- package/dist/clients/online/components/apps/content-updates/classification-update-breadcrumbs/OnlineClassificationUpdateBreadcrumbs.d.ts +2 -0
- package/dist/clients/online/components/apps/content-updates/index.d.ts +3 -0
- package/dist/clients/online/components/apps/content-updates/whats-new-breadcrumbs/OnlineWhatsNewBreadcrumbs.d.ts +2 -0
- package/dist/clients/online/components/apps/playlists/index.d.ts +9 -0
- package/dist/clients/online/components/apps/playlists/left-nav/LeftNavComponent.d.ts +11 -0
- package/dist/clients/online/components/apps/playlists/left-nav/LeftNavItemComponent.d.ts +8 -0
- package/dist/clients/online/components/apps/playlists/left-nav/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/left-nav/partial-loading/PartialLeftNavComponent.d.ts +2 -0
- package/dist/clients/online/components/apps/playlists/left-nav/partial-loading/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/play-playlist/PlayPlaylistComponent.d.ts +15 -0
- package/dist/clients/online/components/apps/playlists/play-playlist/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/playlist-actions/PlaylistActionsComponent.d.ts +9 -0
- package/dist/clients/online/components/apps/playlists/playlist-actions/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/playlist-header/PlaylistBreadcrumbsComponent.d.ts +7 -0
- package/dist/clients/online/components/apps/playlists/playlist-header/PlaylistHeaderComponent.d.ts +3 -0
- package/dist/clients/online/components/apps/playlists/playlist-header/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/playlist-header/partial-loading/PartialPlaylistHeaderComponent.d.ts +6 -0
- package/dist/clients/online/components/apps/playlists/playlist-header/partial-loading/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/playlist-list/PartialPlaylistListComponent.d.ts +2 -0
- package/dist/clients/online/components/apps/playlists/playlist-list/PartialPlaylistListHeader.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/playlist-list/PlaylistItemComponent.d.ts +7 -0
- package/dist/clients/online/components/apps/playlists/playlist-list/PlaylistListComponent.d.ts +3 -0
- package/dist/clients/online/components/apps/playlists/playlist-list/PlaylistListHeaderComponent.d.ts +3 -0
- package/dist/clients/online/components/apps/playlists/playlist-list/index.d.ts +4 -0
- package/dist/clients/online/components/apps/playlists/series-metadata/SeriesMetadata.d.ts +6 -0
- package/dist/clients/online/components/apps/playlists/series-metadata/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/share-playlist/SharePlaylistComponent.d.ts +7 -0
- package/dist/clients/online/components/apps/playlists/share-playlist/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/video-list/PartialVideoListComponent.d.ts +2 -0
- package/dist/clients/online/components/apps/playlists/video-list/PlaceHolder.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/video-list/RestrictedBadge.d.ts +6 -0
- package/dist/clients/online/components/apps/playlists/video-list/RestrictionInfo.d.ts +6 -0
- package/dist/clients/online/components/apps/playlists/video-list/SortableVideoListComponent.d.ts +8 -0
- package/dist/clients/online/components/apps/playlists/video-list/SortableVideoListContainer.d.ts +3 -0
- package/dist/clients/online/components/apps/playlists/video-list/ThumbnailComponent.d.ts +10 -0
- package/dist/clients/online/components/apps/playlists/video-list/VideoActionsComponent.d.ts +12 -0
- package/dist/clients/online/components/apps/playlists/video-list/VideoItemComponent.d.ts +15 -0
- package/dist/clients/online/components/apps/playlists/video-list/VideoItemPreviewComponent.d.ts +9 -0
- package/dist/clients/online/components/apps/playlists/video-list/index.d.ts +1 -0
- package/dist/clients/online/components/apps/playlists/web-player/WebPlayerComponent.d.ts +7 -0
- package/dist/clients/online/components/apps/playlists/web-player/index.d.ts +1 -0
- package/dist/clients/online/components/index.d.ts +3 -0
- package/dist/clients/online/components/shared/AlertContentComponent.d.ts +3 -0
- package/dist/clients/online/components/shared/InfiniteScrollFooter.d.ts +3 -0
- package/dist/clients/online/components/shared/PopupButtons.d.ts +3 -0
- package/dist/clients/online/components/shared/PopupComponent.d.ts +8 -0
- package/dist/clients/online/components/shared/SpinnerComponent.d.ts +3 -0
- package/dist/clients/online/components/shared/SvgComponent.d.ts +3 -0
- package/dist/clients/online/components/shared/index.d.ts +6 -0
- package/dist/clients/online/constants/ResponsiveHideLeftNavAppLinks.d.ts +2 -0
- package/dist/clients/online/constants/Services.d.ts +3 -0
- package/dist/clients/online/constants/index.d.ts +2 -0
- package/dist/clients/online/hooks/UseListenOn.d.ts +4 -0
- package/dist/clients/online/hooks/index.d.ts +1 -0
- package/dist/clients/online/index.d.ts +4 -0
- package/dist/clients/online/layouts/OnlinePlaylistsLayoutView.d.ts +11 -0
- package/dist/clients/online/layouts/index.d.ts +1 -0
- package/dist/clients/online/services/OnlineContextService.d.ts +10 -0
- package/dist/clients/online/services/index.d.ts +1 -0
- package/dist/clients/online/utils/BackboneHelper.d.ts +18 -0
- package/dist/clients/online/utils/OnlineContentUpdateAppLinks.d.ts +2 -0
- package/dist/clients/online/utils/OnlineHelper.d.ts +11 -0
- package/dist/clients/online/utils/PopupHelper.d.ts +12 -0
- package/dist/clients/online/utils/index.d.ts +4 -0
- package/dist/clients/online/views/apps/playlists/LeftNavView.d.ts +3 -0
- package/dist/clients/online/views/apps/playlists/PlayPlaylistView.d.ts +3 -0
- package/dist/clients/online/views/apps/playlists/index.d.ts +2 -0
- package/dist/clients/online/views/index.d.ts +2 -0
- package/dist/clients/online/views/shared/ShareView.d.ts +3 -0
- package/dist/clients/online/views/shared/index.d.ts +1 -0
- package/dist/en.json +1 -0
- package/dist/index.d.ts +54 -0
- package/dist/online-app.css +6 -0
- package/dist/online-app.js +17 -0
- package/dist/shared/components/AppLinkComponent.d.ts +12 -0
- package/dist/shared/components/ClientWrapperComponent.d.ts +7 -0
- package/dist/shared/components/EmptyStateComponent.d.ts +8 -0
- package/dist/shared/components/InfiniteScrollFooterComponent.d.ts +6 -0
- package/dist/shared/components/LazyImageComponent.d.ts +2 -0
- package/dist/shared/components/SpinnerButtonComponent.d.ts +12 -0
- package/dist/shared/components/SpinnerComponent.d.ts +6 -0
- package/dist/shared/components/SvgComponent.d.ts +7 -0
- package/dist/shared/components/alert/AlertComponent.d.ts +7 -0
- package/dist/shared/components/alert/AlertContentComponent.d.ts +8 -0
- package/dist/shared/components/alert/index.d.ts +2 -0
- package/dist/shared/components/dropdown/DropdownComponent.d.ts +8 -0
- package/dist/shared/components/dropdown/DropdownItemComponent.d.ts +10 -0
- package/dist/shared/components/dropdown/index.d.ts +2 -0
- package/dist/shared/components/forms/FormFieldComponent.d.ts +9 -0
- package/dist/shared/components/forms/FormWrapperComponent.d.ts +12 -0
- package/dist/shared/components/forms/index.d.ts +2 -0
- package/dist/shared/components/index.d.ts +12 -0
- package/dist/shared/components/popup/PopupButtonsComponent.d.ts +5 -0
- package/dist/shared/components/popup/PopupComponent.d.ts +7 -0
- package/dist/shared/components/popup/PopupLoadingSpinnerComponent.d.ts +2 -0
- package/dist/shared/components/popup/index.d.ts +3 -0
- package/dist/shared/constants/Actions.d.ts +38 -0
- package/dist/shared/constants/BootstrapKeys.d.ts +3 -0
- package/dist/shared/constants/DataPrefixes.d.ts +20 -0
- package/dist/shared/constants/Layouts.d.ts +3 -0
- package/dist/shared/constants/RadioChannels.d.ts +12 -0
- package/dist/shared/constants/Services.d.ts +7 -0
- package/dist/shared/constants/SupportArticles.d.ts +3 -0
- package/dist/shared/constants/WithStatements.d.ts +5 -0
- package/dist/shared/constants/index.d.ts +8 -0
- package/dist/shared/context/PageTitleContext.d.ts +10 -0
- package/dist/shared/context/index.d.ts +1 -0
- package/dist/shared/enums/Svg.d.ts +13 -0
- package/dist/shared/enums/index.d.ts +1 -0
- package/dist/shared/flight-requests/ConfigRequests.d.ts +4 -0
- package/dist/shared/flight-requests/UserRequests.d.ts +4 -0
- package/dist/shared/flight-requests/index.d.ts +2 -0
- package/dist/shared/hooks/UseBatchFetch.d.ts +14 -0
- package/dist/shared/hooks/UseFetchAll.d.ts +12 -0
- package/dist/shared/hooks/UseInfiniteList.d.ts +20 -0
- package/dist/shared/hooks/UseInfiniteScroll.d.ts +1 -0
- package/dist/shared/hooks/UsePolling.d.ts +1 -0
- package/dist/shared/hooks/UseRenderBackboneView.d.ts +10 -0
- package/dist/shared/hooks/UseRevertPageTitleOnUnsetChild.d.ts +2 -0
- package/dist/shared/hooks/UseSelectAllPages.d.ts +15 -0
- package/dist/shared/hooks/UseSetPageTitle.d.ts +7 -0
- package/dist/shared/hooks/UseVideoMixin.d.ts +2 -0
- package/dist/shared/hooks/index.d.ts +10 -0
- package/dist/shared/interfaces/AppLinkWithLabel.d.ts +5 -0
- package/dist/shared/interfaces/SharedObject.d.ts +8 -0
- package/dist/shared/interfaces/index.d.ts +4 -0
- package/dist/shared/interfaces/models/Restriction.d.ts +6 -0
- package/dist/shared/interfaces/models/VideoWithRestrictions.d.ts +5 -0
- package/dist/shared/interfaces/models/index.d.ts +2 -0
- package/dist/shared/interfaces/props/ViewProps.d.ts +6 -0
- package/dist/shared/interfaces/props/index.d.ts +1 -0
- package/dist/shared/layouts/LayoutComponent.d.ts +12 -0
- package/dist/shared/layouts/OnlineLayoutView.d.ts +26 -0
- package/dist/shared/layouts/index.d.ts +2 -0
- package/dist/shared/services/ClientComponentService.d.ts +22 -0
- package/dist/shared/services/LanguageDataService.d.ts +11 -0
- package/dist/shared/services/index.d.ts +2 -0
- package/dist/shared/utils/PageTitleHelper.d.ts +3 -0
- package/dist/shared/utils/RestrictionHelper.d.ts +6 -0
- package/dist/shared/utils/index.d.ts +2 -0
- package/dist/shared/views/AlertView.d.ts +8 -0
- package/dist/shared/views/ErrorView.d.ts +11 -0
- package/dist/shared/views/ShareView.d.ts +6 -0
- package/dist/shared/views/index.d.ts +3 -0
- package/package.json +47 -0
- package/tooling/externals.js +58 -0
- package/typings/libs/LazyLoad.d.ts +22 -0
- package/typings/utils/imports.d.ts +9 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
export interface AppLinkComponentProps {
|
|
4
|
+
appLink: Core.AppLink;
|
|
5
|
+
className?: string;
|
|
6
|
+
tag?: 'a' | 'button';
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deprecated. Please use <AppLink /> from @clickview/shared instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AppLinkComponent(props: React.PropsWithChildren<AppLinkComponentProps>): React.ReactElement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ClientComponentOptions } from 'shared/services';
|
|
3
|
+
interface ClientWrapperComponentProps {
|
|
4
|
+
components: ClientComponentOptions;
|
|
5
|
+
}
|
|
6
|
+
export declare function ClientWrapperComponent<P>(props: P & ClientWrapperComponentProps): React.ReactElement;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonProps } from 'react-bootstrap';
|
|
3
|
+
interface SpinnerButtonComponentProps extends ButtonProps {
|
|
4
|
+
type?: 'button' | 'reset' | 'submit';
|
|
5
|
+
buttonText: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
showSpinner?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function SpinnerButtonComponent(props: SpinnerButtonComponentProps): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseAlert } from '@clickview/common';
|
|
3
|
+
export interface AlertComponentProps {
|
|
4
|
+
alert: BaseAlert;
|
|
5
|
+
closeAlert: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertComponent({ alert, closeAlert }: AlertComponentProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertComponentProps } from 'shared/components';
|
|
3
|
+
import { Svg } from 'shared/enums';
|
|
4
|
+
export interface AlertContentComponentProps extends AlertComponentProps {
|
|
5
|
+
svgType: Svg;
|
|
6
|
+
svgTypeClassName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function AlertContentComponent(props: AlertContentComponentProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DropdownItemComponentProps } from './DropdownItemComponent';
|
|
3
|
+
interface DropdownComponentProps {
|
|
4
|
+
itemOptions: DropdownItemComponentProps[];
|
|
5
|
+
alignRight?: true;
|
|
6
|
+
}
|
|
7
|
+
export declare function DropdownComponent(props: DropdownComponentProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
import { PropsWithAnalyticsOptions } from 'shared/interfaces';
|
|
4
|
+
export interface BaseDropdownItemComponentProps {
|
|
5
|
+
title: string;
|
|
6
|
+
appLink: Core.AppLink;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type DropdownItemComponentProps = PropsWithAnalyticsOptions<BaseDropdownItemComponentProps>;
|
|
10
|
+
export declare function DropdownItemComponent(props: DropdownItemComponentProps): React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldAttributes } from 'formik';
|
|
3
|
+
interface FormInputComponentProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
touched?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function FormFieldComponent(props: FieldAttributes<FormInputComponentProps>): React.ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Yup from 'yup';
|
|
3
|
+
import { FormikHelpers, FormikProps } from 'formik';
|
|
4
|
+
interface FormWrapperComponentProps<T> {
|
|
5
|
+
initialValues: T;
|
|
6
|
+
validationSchema: Yup.ObjectSchema<{}>;
|
|
7
|
+
onSubmit: (values: T, formikHelpers: FormikHelpers<T>) => void;
|
|
8
|
+
renderChildren: (props: FormikProps<T>) => React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare type FormWrapperComponentPropsWithChildren<T> = React.PropsWithChildren<FormWrapperComponentProps<T>>;
|
|
11
|
+
export declare function FormWrapperComponent<T>(props: FormWrapperComponentPropsWithChildren<T>): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './alert';
|
|
2
|
+
export * from './dropdown';
|
|
3
|
+
export * from './forms';
|
|
4
|
+
export * from './popup';
|
|
5
|
+
export * from './AppLinkComponent';
|
|
6
|
+
export * from './ClientWrapperComponent';
|
|
7
|
+
export * from './InfiniteScrollFooterComponent';
|
|
8
|
+
export * from './LazyImageComponent';
|
|
9
|
+
export * from './SpinnerButtonComponent';
|
|
10
|
+
export * from './SpinnerComponent';
|
|
11
|
+
export * from './SvgComponent';
|
|
12
|
+
export * from './EmptyStateComponent';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const Actions: {
|
|
2
|
+
DEFAULT: {
|
|
3
|
+
HOME: string;
|
|
4
|
+
VIDEO: string;
|
|
5
|
+
SERIES: string;
|
|
6
|
+
CONTENT_UPDATES: string;
|
|
7
|
+
};
|
|
8
|
+
Playlists: {
|
|
9
|
+
HOME: string;
|
|
10
|
+
PLAYLIST: string;
|
|
11
|
+
SHARED_PLAYLIST: string;
|
|
12
|
+
NEW_PLAYLIST: string;
|
|
13
|
+
EDIT_PLAYLIST: string;
|
|
14
|
+
DELETE_PLAYLIST: string;
|
|
15
|
+
SHARE_PLAYLIST: string;
|
|
16
|
+
ADD_TO_PLAYLIST: string;
|
|
17
|
+
REMOVE_VIDEO_FROM_PLAYLIST: string;
|
|
18
|
+
PLAY_PLAYLIST: string;
|
|
19
|
+
PLAY_PLAYLIST_VIDEO: string;
|
|
20
|
+
PLAY_SHARED_PLAYLIST: string;
|
|
21
|
+
PLAY_SHARED_PLAYLIST_VIDEO: string;
|
|
22
|
+
ACCESS_DENIED: string;
|
|
23
|
+
NOT_FOUND: string;
|
|
24
|
+
MIGRATION_IN_PROGRESS: string;
|
|
25
|
+
SERIES: string;
|
|
26
|
+
};
|
|
27
|
+
Subjects: {
|
|
28
|
+
SUBJECT: string;
|
|
29
|
+
SUBJECT_PLAYLIST: string;
|
|
30
|
+
PLAY_SUBJECT_PLAYLIST: string;
|
|
31
|
+
PLAY_SUBJECT_PLAYLIST_VIDEO: string;
|
|
32
|
+
SERIES: string;
|
|
33
|
+
};
|
|
34
|
+
ContentUpdates: {
|
|
35
|
+
CONTENT_UPDATES: string;
|
|
36
|
+
CLASSIFICATION_UPDATE: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const DataPrefixes: {
|
|
2
|
+
CONFIG: string;
|
|
3
|
+
CURRENT_USER: string;
|
|
4
|
+
PLAYLIST: string;
|
|
5
|
+
DELETE_PLAYLIST: string;
|
|
6
|
+
USER_PLAYLISTS: string;
|
|
7
|
+
PLAYLIST_VIDEOS: string;
|
|
8
|
+
PLAYLIST_REORDER_VIDEOS: string;
|
|
9
|
+
VIDEO: string;
|
|
10
|
+
VIDEO_PLAYLISTS: string;
|
|
11
|
+
ADD_TO_PLAYLIST: string;
|
|
12
|
+
REMOVE_VIDEO_FROM_PLAYLIST: string;
|
|
13
|
+
PLAYLIST_MIGRATION_TASK: string;
|
|
14
|
+
SHARED_PLAYLIST: string;
|
|
15
|
+
SHARED_PLAYLIST_VIDEOS: string;
|
|
16
|
+
SUBJECT: string;
|
|
17
|
+
LOCALE: string;
|
|
18
|
+
PHRASES: string;
|
|
19
|
+
PRESENTATION_AUDIENCES: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IPageTitleContext {
|
|
3
|
+
setPageTitle?: (title: string) => void;
|
|
4
|
+
revertPageTitle?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const PageTitleContext: React.Context<IPageTitleContext>;
|
|
7
|
+
export declare const PageTitleContextProvider: ({ children }: {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageTitleContext';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum Svg {
|
|
2
|
+
Edit = "edit",
|
|
3
|
+
Play = "play-triangle",
|
|
4
|
+
Plus = "plus",
|
|
5
|
+
Share = "share",
|
|
6
|
+
Down = "down",
|
|
7
|
+
CheckCircleOutline = "check-circle-o",
|
|
8
|
+
Info = "info",
|
|
9
|
+
Warning = "warning",
|
|
10
|
+
Back = "back",
|
|
11
|
+
Bell = "bell",
|
|
12
|
+
BellFilled = "bell-filled"
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Svg';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseObject } from '@clickview/shared';
|
|
2
|
+
import { Flight } from '@clickview/common';
|
|
3
|
+
/**
|
|
4
|
+
* Used to fetch multiple items by id with Flight. Will fetch 25 items at a time firing off multiple
|
|
5
|
+
* requests if there are more than 25 items.
|
|
6
|
+
* This will return null until we have all our items. Items will be returned as an object with
|
|
7
|
+
* their ids as they key for easy mapping
|
|
8
|
+
*
|
|
9
|
+
* @param itemIds
|
|
10
|
+
* @param getRequest
|
|
11
|
+
*/
|
|
12
|
+
export declare function useBatchFetch<T extends BaseObject>(itemIds: string[], getRequest: (ids: string[]) => Flight.Request): {
|
|
13
|
+
[key: string]: T;
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Flight } from '@clickview/common';
|
|
2
|
+
import { BaseObject } from '@clickview/shared';
|
|
3
|
+
/**
|
|
4
|
+
* Hook to fetch all pages of a collection.
|
|
5
|
+
*
|
|
6
|
+
* @param getRequest - callback function to get the request for each page.
|
|
7
|
+
* Can be false if the request requires data that hasn't yet been fetched - e.g. user id.
|
|
8
|
+
*
|
|
9
|
+
* @param fetchNext - callback function to fetch a page.
|
|
10
|
+
* Can be false if the request requires data that hasn't yet been fetched - e.g. user id.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useFetchAll<T extends BaseObject>(getRequest: ((cursor?: string) => Flight.Request) | false, fetchNext: ((cursor?: string) => void) | false): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Flight } from '@clickview/common';
|
|
2
|
+
import { BaseObject } from '@clickview/shared';
|
|
3
|
+
interface UseInfiniteListResult<T extends BaseObject> {
|
|
4
|
+
items: T[];
|
|
5
|
+
hasMore: boolean;
|
|
6
|
+
isFetching: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Hook to extract an infinite list from the application state,
|
|
10
|
+
* save it locally in state and only update when new data
|
|
11
|
+
* is fetched.
|
|
12
|
+
*
|
|
13
|
+
* @param getRequest - callback function to get the request for each page.
|
|
14
|
+
* Can be false if the request requires data that hasn't yet been fetched - e.g. user id.
|
|
15
|
+
*
|
|
16
|
+
* @param fetchNext - callback function to fetch a page.
|
|
17
|
+
* Can be false if the request requires data that hasn't yet been fetched - e.g. user id.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useInfiniteList<T extends BaseObject>(getRequest: ((cursor?: string) => Flight.Request) | false, fetchNext: ((cursor?: string) => void) | false): UseInfiniteListResult<T>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInfiniteScroll(fetchNextPage: () => void, hasMore: boolean, isFetching: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePolling(callback: () => void, pollingInterval?: number): () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The ref returned from useRenderBackboneView must be
|
|
4
|
+
* set on the element that the view is to be rendered
|
|
5
|
+
* into, e.g. <div ref={ref} />.
|
|
6
|
+
* The ref allows us to access to the DOM (https://reactjs.org/docs/refs-and-the-dom.html)
|
|
7
|
+
*
|
|
8
|
+
* @param view an instance of a Backbone view
|
|
9
|
+
*/
|
|
10
|
+
export declare function useRenderBackboneView(view: any, dependencies?: any[]): React.MutableRefObject<any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface SelectAllPagesResult<T> {
|
|
2
|
+
items: T[];
|
|
3
|
+
shouldInitialFetch: boolean;
|
|
4
|
+
nextCursor: string;
|
|
5
|
+
isFetching: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Hook to select all pages of a collection from the store and flatten them.
|
|
9
|
+
* It will not trigger any fetches.
|
|
10
|
+
*
|
|
11
|
+
* @param getKey - callback function to get the key for each page.
|
|
12
|
+
* Can be false if the key requires data that hasn't yet been fetched - e.g. user id.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useSelectAllPages<T>(getKey: ((cursor?: string) => string) | false): SelectAllPagesResult<T>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook function to set the page title using the useEffect hook.
|
|
3
|
+
* @param title - value to set the page title to.
|
|
4
|
+
* @param dependencies - values from the component (e.g. state, props and functions) that are used
|
|
5
|
+
* inside the effect hook.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useSetPageTitle(title: string, dependencies?: any[]): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './UseFetchAll';
|
|
2
|
+
export * from './UseInfiniteList';
|
|
3
|
+
export * from './UseInfiniteScroll';
|
|
4
|
+
export * from './UsePolling';
|
|
5
|
+
export * from './UseRenderBackboneView';
|
|
6
|
+
export * from './UseRevertPageTitleOnUnsetChild';
|
|
7
|
+
export * from './UseSelectAllPages';
|
|
8
|
+
export * from './UseSetPageTitle';
|
|
9
|
+
export * from './UseBatchFetch';
|
|
10
|
+
export * from './UseVideoMixin';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AnalyticsOptions } from '@clickview/analytics';
|
|
2
|
+
import { PopupViewProps } from '@clickview/shared';
|
|
3
|
+
export declare type PropsWithPopupViewProps<P> = P & PopupViewProps;
|
|
4
|
+
export declare type PropsWithAnalyticsOptions<P> = P & {
|
|
5
|
+
analyticsOptions: AnalyticsOptions;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ViewProps';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface LayoutComponentProps {
|
|
3
|
+
leftNavChild?: React.ReactNode;
|
|
4
|
+
contentChild?: React.ReactNode;
|
|
5
|
+
popupChild?: React.ReactNode;
|
|
6
|
+
alertChild?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface WithProviderProps extends LayoutComponentProps {
|
|
9
|
+
provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
|
|
10
|
+
}
|
|
11
|
+
declare const LayoutComponentWithProvider: (props: WithProviderProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
12
|
+
export { LayoutComponentWithProvider as LayoutComponent };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ObjectHash } from 'backbone';
|
|
3
|
+
import { Core, ReactLayoutView } from '@clickview/common';
|
|
4
|
+
export interface OnlineLayoutViewOptions extends Core.LayoutViewOptions {
|
|
5
|
+
provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
|
|
6
|
+
hideLeftNav?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare abstract class OnlineLayoutView extends ReactLayoutView {
|
|
9
|
+
protected options: OnlineLayoutViewOptions;
|
|
10
|
+
protected childComponents: {
|
|
11
|
+
[index: string]: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
protected leftNavVisible: boolean;
|
|
14
|
+
constructor(options?: OnlineLayoutViewOptions);
|
|
15
|
+
get title(): boolean;
|
|
16
|
+
get name(): string;
|
|
17
|
+
regions(): ObjectHash;
|
|
18
|
+
static getCacheKey(): string;
|
|
19
|
+
private getChildComponents;
|
|
20
|
+
protected unsetRegion(region: string): void;
|
|
21
|
+
closePopup(): void;
|
|
22
|
+
abstract hideLeftNav(): void;
|
|
23
|
+
abstract showLeftNav(): void;
|
|
24
|
+
showChildView(region: string, component: React.ReactElement): void;
|
|
25
|
+
renderLayout(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
export declare enum Clients {
|
|
4
|
+
Online = "online",
|
|
5
|
+
Lite = "lite"
|
|
6
|
+
}
|
|
7
|
+
declare type Component = ((props?: {}) => React.ReactElement) | React.ComponentClass;
|
|
8
|
+
export interface ClientComponentOptions {
|
|
9
|
+
[Clients.Online]: Component;
|
|
10
|
+
[Clients.Lite]?: Component;
|
|
11
|
+
}
|
|
12
|
+
interface ClientComponentServiceOptions extends Core.ServiceOptions {
|
|
13
|
+
client: Clients;
|
|
14
|
+
}
|
|
15
|
+
export declare class ClientComponentService extends Core.Service {
|
|
16
|
+
private client;
|
|
17
|
+
constructor(options: ClientComponentServiceOptions);
|
|
18
|
+
get name(): string;
|
|
19
|
+
getComponent(components: ClientComponentOptions): Component;
|
|
20
|
+
getClient(): Clients;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseDataService } from '@clickview/common';
|
|
2
|
+
interface LanguageConfig {
|
|
3
|
+
locale: string;
|
|
4
|
+
phrases: any;
|
|
5
|
+
}
|
|
6
|
+
export declare class LanguageDataService extends BaseDataService {
|
|
7
|
+
get name(): string;
|
|
8
|
+
get channelName(): string;
|
|
9
|
+
getLanguageConfig(callback?: (languageConfig: LanguageConfig) => void): void;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Video } from '@clickview/shared';
|
|
2
|
+
import { Restriction, VideoWithRestrictions, RestrictedObject } from 'shared/interfaces';
|
|
3
|
+
export declare const RestrictionHelper: {
|
|
4
|
+
mixinRestrictions(videos: Video[], restrictions: Restriction[]): VideoWithRestrictions[];
|
|
5
|
+
getVideoRestrictions(videoId: string, restrictions: Restriction[]): RestrictedObject[];
|
|
6
|
+
};
|