@clickview/lite 0.0.4-dev.0 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/apps/default/LiteDefaultApplication.d.ts +0 -2
  2. package/dist/apps/default/index.d.ts +2 -0
  3. package/dist/apps/default/views/dev-error/LiteDevErrorView.d.ts +6 -0
  4. package/dist/apps/default/views/dialog/LiteDialogView.d.ts +7 -0
  5. package/dist/apps/default/views/error/LiteErrorView.d.ts +7 -0
  6. package/dist/apps/index.d.ts +1 -0
  7. package/dist/apps/notifications/interfaces/Notification.d.ts +3 -0
  8. package/dist/apps/notifications/interfaces/NotificationCollection.d.ts +4 -0
  9. package/dist/apps/notifications/interfaces/index.d.ts +2 -0
  10. package/dist/apps/notifications/services/FlightNotificationDataService.d.ts +16 -0
  11. package/dist/apps/notifications/services/index.d.ts +1 -0
  12. package/dist/apps/playlists/LitePlaylistsApplication.d.ts +0 -1
  13. package/dist/apps/playlists/components/index.d.ts +1 -0
  14. package/dist/apps/playlists/components/playlist-list/LitePlaylistItem.d.ts +9 -0
  15. package/dist/apps/playlists/components/playlist-list/LitePlaylistList.d.ts +9 -0
  16. package/dist/apps/playlists/components/playlist-list/index.d.ts +1 -0
  17. package/dist/apps/playlists/flight-requests/PlaylistRequests.d.ts +4 -0
  18. package/dist/apps/playlists/flight-requests/index.d.ts +1 -0
  19. package/dist/apps/playlists/index.d.ts +1 -0
  20. package/dist/apps/playlists/views/index.d.ts +1 -0
  21. package/dist/apps/playlists/views/user-playlists/UserPlaylistsView.d.ts +2 -0
  22. package/dist/apps/playlists/views/user-playlists/index.d.ts +1 -0
  23. package/dist/apps/search/LiteSearchApplication.d.ts +17 -0
  24. package/dist/apps/search/components/index.d.ts +1 -0
  25. package/dist/apps/search/components/search-filters/SearchFilters.d.ts +5 -0
  26. package/dist/apps/search/flight-requests/SearchRequests.d.ts +4 -0
  27. package/dist/apps/search/flight-requests/index.d.ts +1 -0
  28. package/dist/apps/search/interfaces/SearchResults.d.ts +18 -0
  29. package/dist/apps/search/interfaces/index.d.ts +1 -0
  30. package/dist/apps/search/utils/SearchHelper.d.ts +21 -0
  31. package/dist/apps/search/utils/index.d.ts +1 -0
  32. package/dist/apps/search/views/index.d.ts +1 -0
  33. package/dist/apps/search/views/search-results/PartialSearchResultsView.d.ts +2 -0
  34. package/dist/apps/search/views/search-results/SearchResultsView.d.ts +7 -0
  35. package/dist/bundle.js +1 -4291
  36. package/dist/bundle.js.map +1 -1
  37. package/dist/en.json +1 -55
  38. package/dist/index.d.ts +0 -9
  39. package/dist/lite-app.css +5 -155
  40. package/dist/lite-app.css.map +1 -1
  41. package/dist/lite-app.js +112 -0
  42. package/dist/lite-app.js.map +1 -0
  43. package/dist/shared/components/icon-button/IconButton.d.ts +9 -0
  44. package/dist/shared/components/index.d.ts +0 -2
  45. package/dist/shared/components/video-details/VideoDetails.d.ts +4 -0
  46. package/dist/shared/constants/LiteActions.d.ts +0 -17
  47. package/dist/shared/constants/LiteLayouts.d.ts +0 -1
  48. package/dist/shared/constants/LiteRadioChannels.d.ts +0 -4
  49. package/dist/shared/contexts/player/PlayerContext.d.ts +4 -20
  50. package/dist/shared/errors/not-found/LiteNotFoundError.d.ts +5 -0
  51. package/dist/shared/errors/primitives/AlertError.d.ts +0 -0
  52. package/dist/shared/errors/primitives/DialogError.d.ts +0 -0
  53. package/dist/shared/errors/primitives/ErrorPageError.d.ts +0 -0
  54. package/dist/shared/errors/primitives/index.d.ts +3 -0
  55. package/dist/shared/flight-requests/AudienceRequests.d.ts +4 -0
  56. package/dist/shared/flight-requests/PlaylistRequests.d.ts +4 -0
  57. package/dist/shared/flight-requests/VideoRequests.d.ts +0 -1
  58. package/dist/shared/index.d.ts +5 -0
  59. package/dist/shared/layouts/index.d.ts +0 -1
  60. package/dist/shared/layouts/teacher-layout/TeacherLayoutComponent.d.ts +2 -2
  61. package/dist/shared/layouts/teacher-layout/TeacherLayoutView.d.ts +2 -0
  62. package/dist/shared/utils/InfiniteScrollHelper.d.ts +11 -0
  63. package/dist/shared/utils/LiteAppLinkHelper.d.ts +3 -0
  64. package/dist/shared/views/favorite-videos/FavoriteVideos.d.ts +6 -0
  65. package/dist/shared/views/favorite-videos/index.d.ts +1 -0
  66. package/dist/shared/views/index.d.ts +0 -3
  67. package/dist/shared/views/my-uploads/components/MyUploadsBannerActions.d.ts +5 -0
  68. package/dist/shared/views/play/components/BackButton.d.ts +2 -0
  69. package/package.json +44 -45
@@ -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,2 @@
1
+ export * from './views';
2
+ export * from './LiteDefaultApplication';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface DevErrorViewProps {
3
+ error: Error;
4
+ }
5
+ export declare function DevErrorView({ error }: DevErrorViewProps): React.ReactElement;
6
+ export {};
@@ -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,7 @@
1
+ import * as React from 'react';
2
+ import { ErrorPageError } from '@clickview/shared';
3
+ interface ErrorViewProps {
4
+ error: ErrorPageError;
5
+ }
6
+ export declare function ErrorView({ error }: ErrorViewProps): React.ReactElement;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './default';
@@ -0,0 +1,3 @@
1
+ import { BaseObject } from '@clickview/shared';
2
+ export interface Notification extends BaseObject {
3
+ }
@@ -0,0 +1,4 @@
1
+ import { BasePaginatedCollection } from '@clickview/shared';
2
+ import { Notification } from 'apps/notifications/interfaces';
3
+ export interface NotificationCollection extends BasePaginatedCollection<Notification> {
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Notification';
2
+ export * from './NotificationCollection';
@@ -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,4 @@
1
+ import { Flight } from '@clickview/common';
2
+ export declare const PlaylistRequests: {
3
+ getUserPlaylists(cursor?: string): Flight.Request;
4
+ };
@@ -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,2 @@
1
+ /// <reference types="react" />
2
+ export declare function UserPlaylistsView(): JSX.Element;
@@ -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,5 @@
1
+ /// <reference types="react" />
2
+ interface SearchFiltersProps {
3
+ }
4
+ export declare function SearchFilters(props: SearchFiltersProps): JSX.Element;
5
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Flight } from '@clickview/common';
2
+ export declare const SearchRequests: {
3
+ search(query: string): Flight.Request;
4
+ };
@@ -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';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function PartialSearchResultsView(): JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { HashObject } from '@clickview/common';
3
+ interface SearchResultsViewProps {
4
+ queryParams: HashObject;
5
+ }
6
+ export declare function SearchResultsView(props: SearchResultsViewProps): JSX.Element;
7
+ export {};