@clickview/online 0.0.4-dev.0 → 0.0.4-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.
@@ -0,0 +1,32 @@
1
+ import { Core } from "../../../../../libs/common/src/backbone";
2
+ import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
3
+ import { HashObject } from "../../../../../libs/common/src/react/interfaces/HashObject";
4
+ import { OnlineLayoutView, OnlineLayoutViewOptions } from "../../shared/layouts";
5
+ export declare class PlaylistApplication extends ReactApplication {
6
+ protected layout: OnlineLayoutView;
7
+ private currentPlaylistId;
8
+ initialize(): void;
9
+ get name(): string;
10
+ static get router(): any;
11
+ get channelName(): string;
12
+ get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
13
+ index(params: HashObject): void;
14
+ playlist(playlistId: string): void;
15
+ newPlaylist(): void;
16
+ editPlaylist(playlistId: string): void;
17
+ deletePlaylist(playlistId: string): void;
18
+ removeVideoFromPlaylist(videoId: string, playlistId: string): void;
19
+ playPlaylistVideo(playlistId: string, videoId: string): void;
20
+ sharePlaylist(playlistId: string): void;
21
+ sharedPlaylist(shareCode: string): void;
22
+ playSharedPlaylistVideo(shareCode: string, videoId: string): void;
23
+ accessDenied(): void;
24
+ notFound(): void;
25
+ migrationInProgress(): void;
26
+ private renderLeftNav;
27
+ private setCurrentPlaylist;
28
+ private hideLeftNav;
29
+ private getPopupProps;
30
+ private getVideoAppLink;
31
+ private getPhrase;
32
+ }
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function PartialPlaylistHeader(): React.ReactElement;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Video } from "../../../../../../../libs/shared/src/interfaces";
3
+ import { VideoItemComponentProps } from './VideoItemComponent';
4
+ interface VideoListProps extends Omit<VideoItemComponentProps, 'video' | 'idx'> {
5
+ videos: Video[];
6
+ }
7
+ export declare const VideoList: (props: VideoListProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Flight } from "../../../../../../libs/common/src/react";
2
+ export declare const ClassificationRequests: {
3
+ classification(id: string): Flight.Request;
4
+ };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { Core } from "../../../../../../../libs/common/src/backbone";
3
+ import { Playlist, Video } from "../../../../../../../libs/shared/src/interfaces";
4
+ interface PlaySharedPlaylistViewProps {
5
+ shareCode: string;
6
+ videoId: string;
7
+ getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
8
+ getVideoAppLink: (video: Video) => Core.AppLink;
9
+ }
10
+ export declare function PlaySharedPlaylistView(props: PlaySharedPlaylistViewProps): React.ReactElement;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './PlayPlaylistView';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface SharedPlaylistViewProps {
3
+ shareCode: string;
4
+ }
5
+ export declare function SharedPlaylistView(props: SharedPlaylistViewProps): React.ReactElement;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function PartialPlaylistHeader(): React.ReactElement;
@@ -0,0 +1,14 @@
1
+ import { Flight } from "../../../../../libs/common/src/react";
2
+ import { VideoCollection, Video, Restriction } from "../../../../../libs/shared/src/interfaces";
3
+ interface MixinVideoRestrictionsResponse {
4
+ response: Flight.Response<Restriction[]>;
5
+ fetchRestrictions: () => void;
6
+ }
7
+ /**
8
+ *
9
+ * @param videos videos to fetch restrictions for
10
+ *
11
+ * Returns a function to re-fetch restrictions
12
+ */
13
+ export declare function useMixinVideoRestrictions(videos: VideoCollection | Video[]): MixinVideoRestrictionsResponse;
14
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/online",
3
- "version": "0.0.4-dev.0",
3
+ "version": "0.0.4-dev.1",
4
4
  "description": "Online",
5
5
  "main": "dist/online-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,14 +20,14 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.18-dev.0",
23
+ "@clickview/tooling": "0.0.18-dev.1",
24
24
  "@types/linkifyjs": "2.1.3",
25
25
  "@types/react-sortable-hoc": "0.7.1",
26
26
  "@types/react-transition-group": "4.2.3",
27
27
  "@types/yup": "0.26.24"
28
28
  },
29
29
  "dependencies": {
30
- "@clickview/styles": "1.0.8-dev.0",
30
+ "@clickview/styles": "1.0.8-dev.1",
31
31
  "yup": "0.27.0"
32
32
  },
33
33
  "babel": {
@@ -1,11 +0,0 @@
1
- import { BaseDataService } from "../../../../../libs/common/src/backbone/services/BaseDataService";
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 {};