@clickview/lite 0.0.4-dev.0 → 0.0.4-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/dist/apps/default/LiteDefaultApplication.d.ts +0 -2
- package/dist/apps/default/index.d.ts +2 -0
- package/dist/apps/default/views/dev-error/LiteDevErrorView.d.ts +6 -0
- package/dist/apps/default/views/dialog/LiteDialogView.d.ts +7 -0
- package/dist/apps/default/views/error/LiteErrorView.d.ts +7 -0
- package/dist/apps/index.d.ts +1 -0
- package/dist/apps/notifications/interfaces/Notification.d.ts +3 -0
- package/dist/apps/notifications/interfaces/NotificationCollection.d.ts +4 -0
- package/dist/apps/notifications/interfaces/index.d.ts +2 -0
- package/dist/apps/notifications/services/FlightNotificationDataService.d.ts +16 -0
- package/dist/apps/notifications/services/index.d.ts +1 -0
- package/dist/apps/playlists/LitePlaylistsApplication.d.ts +0 -1
- package/dist/apps/playlists/components/index.d.ts +1 -0
- package/dist/apps/playlists/components/playlist-list/LitePlaylistItem.d.ts +9 -0
- package/dist/apps/playlists/components/playlist-list/LitePlaylistList.d.ts +9 -0
- package/dist/apps/playlists/components/playlist-list/index.d.ts +1 -0
- package/dist/apps/playlists/flight-requests/PlaylistRequests.d.ts +4 -0
- package/dist/apps/playlists/flight-requests/index.d.ts +1 -0
- package/dist/apps/playlists/index.d.ts +1 -0
- package/dist/apps/playlists/views/index.d.ts +1 -0
- package/dist/apps/playlists/views/user-playlists/UserPlaylistsView.d.ts +2 -0
- package/dist/apps/playlists/views/user-playlists/index.d.ts +1 -0
- package/dist/apps/search/LiteSearchApplication.d.ts +17 -0
- package/dist/apps/search/components/index.d.ts +1 -0
- package/dist/apps/search/components/search-filters/SearchFilters.d.ts +5 -0
- package/dist/apps/search/flight-requests/SearchRequests.d.ts +4 -0
- package/dist/apps/search/flight-requests/index.d.ts +1 -0
- package/dist/apps/search/interfaces/SearchResults.d.ts +18 -0
- package/dist/apps/search/interfaces/index.d.ts +1 -0
- package/dist/apps/search/utils/SearchHelper.d.ts +21 -0
- package/dist/apps/search/utils/index.d.ts +1 -0
- package/dist/apps/search/views/index.d.ts +1 -0
- package/dist/apps/search/views/search-results/PartialSearchResultsView.d.ts +2 -0
- package/dist/apps/search/views/search-results/SearchResultsView.d.ts +7 -0
- package/dist/bundle.js +1 -4291
- package/dist/bundle.js.map +1 -1
- package/dist/en.json +1 -55
- package/dist/index.d.ts +0 -9
- package/dist/lite-app.css +5 -155
- package/dist/lite-app.css.map +1 -1
- package/dist/lite-app.js +112 -0
- package/dist/lite-app.js.map +1 -0
- package/dist/shared/components/icon-button/IconButton.d.ts +9 -0
- package/dist/shared/components/index.d.ts +0 -2
- package/dist/shared/components/video-details/VideoDetails.d.ts +4 -0
- package/dist/shared/constants/LiteActions.d.ts +0 -17
- package/dist/shared/constants/LiteLayouts.d.ts +0 -1
- package/dist/shared/constants/LiteRadioChannels.d.ts +0 -4
- package/dist/shared/contexts/player/PlayerContext.d.ts +4 -20
- package/dist/shared/errors/not-found/LiteNotFoundError.d.ts +5 -0
- package/dist/shared/errors/primitives/AlertError.d.ts +0 -0
- package/dist/shared/errors/primitives/DialogError.d.ts +0 -0
- package/dist/shared/errors/primitives/ErrorPageError.d.ts +0 -0
- package/dist/shared/errors/primitives/index.d.ts +3 -0
- package/dist/shared/flight-requests/AudienceRequests.d.ts +4 -0
- package/dist/shared/flight-requests/PlaylistRequests.d.ts +4 -0
- package/dist/shared/flight-requests/VideoRequests.d.ts +0 -1
- package/dist/shared/index.d.ts +5 -0
- package/dist/shared/layouts/index.d.ts +0 -1
- package/dist/shared/layouts/teacher-layout/TeacherLayoutComponent.d.ts +2 -2
- package/dist/shared/layouts/teacher-layout/TeacherLayoutView.d.ts +2 -0
- package/dist/shared/utils/InfiniteScrollHelper.d.ts +11 -0
- package/dist/shared/utils/LiteAppLinkHelper.d.ts +3 -0
- package/dist/shared/views/favorite-videos/FavoriteVideos.d.ts +6 -0
- package/dist/shared/views/favorite-videos/index.d.ts +1 -0
- package/dist/shared/views/index.d.ts +0 -3
- package/dist/shared/views/my-uploads/components/MyUploadsBannerActions.d.ts +5 -0
- package/dist/shared/views/play/components/BackButton.d.ts +2 -0
- package/package.json +6 -7
|
@@ -14,9 +14,7 @@ export declare class DefaultApplication extends Core.Application {
|
|
|
14
14
|
static get router(): typeof DefaultAppRouter;
|
|
15
15
|
index(): void;
|
|
16
16
|
playVideo(id: string): void;
|
|
17
|
-
playSharedVideo(shortCode: string): void;
|
|
18
17
|
myUploads(params: HashObject): void;
|
|
19
|
-
favoriteVideos(params: HashObject): void;
|
|
20
18
|
series(id: string, params: HashObject): void;
|
|
21
19
|
catchAllRoutes(): void;
|
|
22
20
|
notFound(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DialogOptions, PopupViewProps } from '@clickview/shared';
|
|
3
|
+
interface DialogViewProps extends DialogOptions {
|
|
4
|
+
}
|
|
5
|
+
declare type PropTypes = React.PropsWithChildren<DialogViewProps & PopupViewProps>;
|
|
6
|
+
export declare function DialogView(props: PropTypes): React.ReactElement;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './default';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Store } from 'redux';
|
|
2
|
+
import { Cursors } from '@clickview/common';
|
|
3
|
+
import { BaseNotificationDataService, NotificationCollectionRequest, Notification as BackboneNotification, NotificationCollection as BackboneNotificationCollection } from '@clickview/shared';
|
|
4
|
+
interface FlightNotificationDataServiceOptions {
|
|
5
|
+
store: Store;
|
|
6
|
+
}
|
|
7
|
+
export declare class FlightNotificationDataService implements BaseNotificationDataService {
|
|
8
|
+
private store;
|
|
9
|
+
constructor(options: FlightNotificationDataServiceOptions);
|
|
10
|
+
get name(): string;
|
|
11
|
+
getNotifications(userId: string, params: NotificationCollectionRequest, collectionIdentifier: string, callback?: (data?: BackboneNotificationCollection) => BackboneNotificationCollection): BackboneNotificationCollection;
|
|
12
|
+
markRead(id: string, callback?: (data?: BackboneNotification) => any): void;
|
|
13
|
+
markSeen(callback?: () => any): void;
|
|
14
|
+
getNotificationsCursors(collectionIdentifier: string): Cursors;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FlightNotificationDataService';
|
|
@@ -17,7 +17,6 @@ export declare class PlaylistsApplication extends Core.Application {
|
|
|
17
17
|
newPlaylist(): void;
|
|
18
18
|
editPlaylist(id: string): void;
|
|
19
19
|
deletePlaylist(id: string): void;
|
|
20
|
-
addToPlaylist(videoId: string): void;
|
|
21
20
|
removeVideoFromPlaylist(videoId: string, playlistId: string): void;
|
|
22
21
|
protected onShowAlert(options?: ObjectHash): void;
|
|
23
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './playlist-list';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
import { Playlist } from '@clickview/shared';
|
|
4
|
+
interface PlaylistItemProps {
|
|
5
|
+
playlist: Playlist;
|
|
6
|
+
appLink: Core.AppLink;
|
|
7
|
+
}
|
|
8
|
+
export declare function PlaylistItem(props: PlaylistItemProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
import { Playlist } from '@clickview/shared';
|
|
4
|
+
interface PlaylistListProps {
|
|
5
|
+
playlists: Playlist[];
|
|
6
|
+
getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
|
|
7
|
+
}
|
|
8
|
+
export declare function PlaylistList(props: PlaylistListProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LitePlaylistList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlaylistRequests';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LitePlaylistsApplication';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-playlists';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserPlaylistsView';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { Core, HashObject } from '@clickview/common';
|
|
3
|
+
import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts';
|
|
4
|
+
declare class SearchAppRouter extends Core.AppRouter {
|
|
5
|
+
protected get channelName(): string;
|
|
6
|
+
protected get appRoutes(): ObjectHash;
|
|
7
|
+
protected get appLinks(): string[];
|
|
8
|
+
}
|
|
9
|
+
export declare class SearchApplication extends Core.Application {
|
|
10
|
+
protected layout: TeacherLayoutView;
|
|
11
|
+
get name(): string;
|
|
12
|
+
protected get layoutOptions(): Core.LayoutOptions<TeacherLayoutViewOptions>;
|
|
13
|
+
get channelName(): string;
|
|
14
|
+
static get router(): typeof SearchAppRouter;
|
|
15
|
+
index(queryParams?: HashObject): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './search-filters/SearchFilters';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchRequests';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Video, Series, Playlist, Classification } from '@clickview/shared';
|
|
2
|
+
export interface SearchResults {
|
|
3
|
+
subjects?: Classification[];
|
|
4
|
+
videos: Video[];
|
|
5
|
+
series: Series[];
|
|
6
|
+
playlists: Playlist[];
|
|
7
|
+
}
|
|
8
|
+
export interface MainSearchResults {
|
|
9
|
+
subjects: Classification[];
|
|
10
|
+
firstVideo: Video;
|
|
11
|
+
playlists: Playlist[];
|
|
12
|
+
series: Series[];
|
|
13
|
+
otherResults: SearchResults;
|
|
14
|
+
}
|
|
15
|
+
export interface OtherSearchResultSet {
|
|
16
|
+
type: 'video' | 'playlist' | 'series';
|
|
17
|
+
data: Video[] | Playlist[] | Series[];
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchResults';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
import { Video, Series, Playlist, BaseObject, PresentationAudience } from '@clickview/shared';
|
|
4
|
+
import { SearchResults, MainSearchResults, OtherSearchResultSet } from 'apps/search/interfaces';
|
|
5
|
+
export declare const SearchHelper: {
|
|
6
|
+
/**
|
|
7
|
+
* These are the results that appear at the very top of the page
|
|
8
|
+
*/
|
|
9
|
+
filterMainResults(results: SearchResults): MainSearchResults;
|
|
10
|
+
structureOtherResults(results: SearchResults): OtherSearchResultSet[];
|
|
11
|
+
generateResultSets<T extends BaseObject>(results: T[], setCapacity: number): T[][];
|
|
12
|
+
buildResultStructure(videoSets: Video[][], playlistSets: Playlist[][], seriesSets: Series[][]): OtherSearchResultSet[];
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether or not a playlist or series set should be added to the results structure next.
|
|
15
|
+
*/
|
|
16
|
+
getSeriesOrPlaylistSet(playlists: Playlist[][], series: Series[][], videoSetIndex: number): OtherSearchResultSet;
|
|
17
|
+
getResultSetComponent(set: OtherSearchResultSet, audiences: PresentationAudience[]): JSX.Element;
|
|
18
|
+
getVideoAppLink(video: Video): Core.AppLink;
|
|
19
|
+
getSeriesAppLink(series?: Series): Core.AppLink;
|
|
20
|
+
getPlaylistAppLink(playlist?: Playlist): Core.AppLink;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchHelper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './search-results/SearchResultsView';
|