@clickview/lite 0.0.3-rc.6 → 0.0.4-dev.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/dashboard/LiteDashboardApplication.d.ts +17 -0
- package/dist/apps/default/LiteDefaultApplication.d.ts +2 -0
- package/dist/apps/embed/LiteEmbedApplication.d.ts +15 -0
- package/dist/apps/embed/views/embed/EmbedView.d.ts +10 -0
- package/dist/apps/embed/views/index.d.ts +1 -0
- package/dist/apps/notifications/LiteNotificationsApplication.d.ts +10 -0
- package/dist/apps/notifications/constants/NotificationsAppVariables.d.ts +7 -0
- package/dist/apps/playlists/LitePlaylistsApplication.d.ts +1 -0
- package/dist/apps/subjects/LiteSubjectApplication.d.ts +14 -0
- package/dist/bundle.js +4291 -1
- package/dist/bundle.js.map +1 -0
- package/dist/en.json +55 -1
- package/dist/index.d.ts +9 -0
- package/dist/lite-app.css +155 -5
- package/dist/lite-app.css.map +1 -0
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/play-page/Badges.d.ts +7 -0
- package/dist/shared/components/play-page/Buttons.d.ts +2 -0
- package/dist/shared/components/play-page/PlayPage.d.ts +8 -0
- package/dist/shared/components/play-page/VideoTitle.d.ts +7 -0
- package/dist/shared/components/user-options/UserOptions.d.ts +10 -0
- package/dist/shared/components/video-details/VideoDetails.d.ts +0 -4
- package/dist/shared/constants/LiteActions.d.ts +17 -0
- package/dist/shared/constants/LiteLayouts.d.ts +1 -0
- package/dist/shared/constants/LiteRadioChannels.d.ts +4 -0
- package/dist/shared/contexts/player/PlayerContext.d.ts +20 -4
- package/dist/shared/flight-requests/ShareRequests.d.ts +4 -0
- package/dist/shared/flight-requests/VideoRequests.d.ts +1 -0
- package/dist/shared/layouts/embed-layout/EmbedLayoutComponent.d.ts +8 -0
- package/dist/shared/layouts/embed-layout/EmbedLayoutView.d.ts +17 -0
- package/dist/shared/layouts/index.d.ts +1 -0
- package/dist/shared/layouts/teacher-layout/TeacherLayoutComponent.d.ts +2 -2
- package/dist/shared/layouts/teacher-layout/TeacherLayoutView.d.ts +0 -2
- package/dist/shared/views/backbone-wrapper/BackboneWrapperView.d.ts +8 -0
- package/dist/shared/views/favorite-videos/FavoriteVideosView.d.ts +6 -0
- package/dist/shared/views/index.d.ts +3 -0
- package/dist/shared/views/play-shared/PlaySharedView.d.ts +6 -0
- package/package.json +45 -44
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CurrentUser } from '@clickview/shared';
|
|
3
|
+
interface UserOptionsProps {
|
|
4
|
+
user: CurrentUser;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* TODO: Implement user options properly;
|
|
8
|
+
*/
|
|
9
|
+
export declare function UserOptions(props: UserOptionsProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Video } from '@clickview/shared';
|
|
3
|
-
interface VideoDetailsProps {
|
|
4
|
-
video: Video;
|
|
5
|
-
}
|
|
6
|
-
export declare function VideoDetails(props: VideoDetailsProps): React.ReactElement;
|
|
7
3
|
interface DetailsPaneProps {
|
|
8
4
|
video: Video;
|
|
9
5
|
}
|
|
@@ -3,6 +3,8 @@ export declare const Actions: {
|
|
|
3
3
|
HOME: string;
|
|
4
4
|
MY_UPLOADS: string;
|
|
5
5
|
SERIES: string;
|
|
6
|
+
PLAY_VIDEO: string;
|
|
7
|
+
FAVORITE_VIDEOS: string;
|
|
6
8
|
};
|
|
7
9
|
Playlists: {
|
|
8
10
|
HOME: string;
|
|
@@ -10,6 +12,21 @@ export declare const Actions: {
|
|
|
10
12
|
NEW_PLAYLIST: string;
|
|
11
13
|
EDIT_PLAYLIST: string;
|
|
12
14
|
DELETE_PLAYLIST: string;
|
|
15
|
+
ADD_TO_PLAYLIST: string;
|
|
13
16
|
REMOVE_VIDEO_FROM_PLAYLIST: string;
|
|
14
17
|
};
|
|
18
|
+
Dashboard: {
|
|
19
|
+
HOME: string;
|
|
20
|
+
DASHBOARD: string;
|
|
21
|
+
VIDEO: string;
|
|
22
|
+
};
|
|
23
|
+
Classifications: {
|
|
24
|
+
CLASSIFICATION: string;
|
|
25
|
+
PLAYLIST: string;
|
|
26
|
+
VIDEO: string;
|
|
27
|
+
SERIES: string;
|
|
28
|
+
};
|
|
29
|
+
Notifications: {
|
|
30
|
+
HOME: string;
|
|
31
|
+
};
|
|
15
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Video } from '@clickview/shared';
|
|
2
3
|
export interface PlayerPosition {
|
|
3
4
|
top: number;
|
|
4
5
|
left: number;
|
|
@@ -6,10 +7,25 @@ export interface PlayerPosition {
|
|
|
6
7
|
}
|
|
7
8
|
interface PlayerContextProps {
|
|
8
9
|
webPlayerUrl: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Video that the player is currently plaing
|
|
12
|
+
*/
|
|
13
|
+
video?: Video;
|
|
14
|
+
setVideo: (video: Video) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Position of the video player when we're on a play page
|
|
17
|
+
* no position means we're floating on the bottom right of the screen
|
|
18
|
+
*/
|
|
19
|
+
viewportPosition: PlayerPosition;
|
|
20
|
+
setViewportPosition: (position: PlayerPosition) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Tells the floating player to not render when it has
|
|
23
|
+
* as video but no position. This prevents
|
|
24
|
+
* a bug where the floating player flashes briefly when the
|
|
25
|
+
* PlayView has set a video but not yet set a position
|
|
26
|
+
*/
|
|
27
|
+
isOnPlayPage: boolean;
|
|
28
|
+
setIsOnPlayPage: (isOnPlayPage: boolean) => void;
|
|
13
29
|
}
|
|
14
30
|
export declare const PlayerContext: React.Context<PlayerContextProps>;
|
|
15
31
|
export declare function PlayerContextProvider(props: React.PropsWithChildren<{}>): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Store } from 'redux';
|
|
3
|
+
export interface EmbedLayoutComponentProps {
|
|
4
|
+
store: Store;
|
|
5
|
+
contentChild?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function WrapLayoutWithProviders(props: EmbedLayoutComponentProps): JSX.Element;
|
|
8
|
+
export { WrapLayoutWithProviders as EmbedLayoutComponent };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactLayoutView, HashObject } from '@clickview/common';
|
|
3
|
+
export declare class EmbedLayoutView extends ReactLayoutView {
|
|
4
|
+
protected childComponents: {
|
|
5
|
+
[index: string]: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
get title(): boolean;
|
|
8
|
+
get name(): string;
|
|
9
|
+
get template(): any;
|
|
10
|
+
static getCacheKey(): string;
|
|
11
|
+
regions(): HashObject;
|
|
12
|
+
private getChildComponents;
|
|
13
|
+
protected unsetRegion(region: string): void;
|
|
14
|
+
closePopup(): void;
|
|
15
|
+
showChildView(region: string, component: React.ReactElement): void;
|
|
16
|
+
renderLayout(): void;
|
|
17
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Store } from 'redux';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TeacherLayoutComponentProps {
|
|
4
4
|
showNav: boolean;
|
|
5
5
|
contentChild?: React.ReactNode;
|
|
6
6
|
popupChild?: React.ReactNode;
|
|
7
7
|
alertChild?: React.ReactNode;
|
|
8
8
|
store: Store;
|
|
9
9
|
}
|
|
10
|
-
declare function WrapLayoutWithProviders(props:
|
|
10
|
+
declare function WrapLayoutWithProviders(props: TeacherLayoutComponentProps): React.ReactElement;
|
|
11
11
|
export { WrapLayoutWithProviders as TeacherLayoutComponent };
|
|
@@ -16,10 +16,8 @@ export declare class TeacherLayoutView extends ReactLayoutView {
|
|
|
16
16
|
static getCacheKey(options: TeacherLayoutViewOptions): string;
|
|
17
17
|
regions(): ObjectHash;
|
|
18
18
|
private getChildComponents;
|
|
19
|
-
private getSearchModel;
|
|
20
19
|
protected unsetRegion(region: string): void;
|
|
21
20
|
closePopup(): void;
|
|
22
21
|
showChildView(region: string, component: React.ReactElement): void;
|
|
23
22
|
renderLayout(): void;
|
|
24
|
-
private renderSearchBar;
|
|
25
23
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
|
+
interface BackboneWrapperViewProps {
|
|
4
|
+
view: () => Core.View;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function BackboneWrapperView({ view, className }: BackboneWrapperViewProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './favorite-videos/FavoriteVideosView';
|
|
1
2
|
export * from './header/HeaderView';
|
|
2
3
|
export * from './left-nav/LeftNavView';
|
|
3
4
|
export * from './play/PlayView';
|
|
4
5
|
export * from './my-uploads/MyUploadsView';
|
|
5
6
|
export * from './series/SeriesView';
|
|
7
|
+
export * from './play-shared/PlaySharedView';
|
|
8
|
+
export * from './backbone-wrapper/BackboneWrapperView';
|
package/package.json
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/lite",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "ClickView Lite",
|
|
5
|
-
"main": "dist/bundle.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
-
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
10
|
-
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "http://gitlab.cvinternal.net/front-end/lite.git"
|
|
15
|
-
},
|
|
16
|
-
"cv": {
|
|
17
|
-
"publishable": true,
|
|
18
|
-
"rebuildable": true
|
|
19
|
-
},
|
|
20
|
-
"author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@clickview/tooling": "0.0.
|
|
24
|
-
"@types/react-custom-scrollbars": "4.0.6"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@clickview/common": "1.0.
|
|
28
|
-
"@clickview/
|
|
29
|
-
"@clickview/
|
|
30
|
-
"@clickview/
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/lite",
|
|
3
|
+
"version": "0.0.4-dev.0",
|
|
4
|
+
"description": "ClickView Lite",
|
|
5
|
+
"main": "dist/bundle.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
+
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
10
|
+
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "http://gitlab.cvinternal.net/front-end/lite.git"
|
|
15
|
+
},
|
|
16
|
+
"cv": {
|
|
17
|
+
"publishable": true,
|
|
18
|
+
"rebuildable": true
|
|
19
|
+
},
|
|
20
|
+
"author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@clickview/tooling": "0.0.13-dev.0",
|
|
24
|
+
"@types/react-custom-scrollbars": "4.0.6"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@clickview/common": "1.0.3-dev.0",
|
|
28
|
+
"@clickview/dashboard": "1.0.3-dev.0",
|
|
29
|
+
"@clickview/playlists": "1.0.3-dev.0",
|
|
30
|
+
"@clickview/shared": "1.0.3-dev.0",
|
|
31
|
+
"@clickview/styles": "1.0.3-dev.0",
|
|
32
|
+
"react-custom-scrollbars": "4.2.1"
|
|
33
|
+
},
|
|
34
|
+
"babel": {
|
|
35
|
+
"presets": [
|
|
36
|
+
[
|
|
37
|
+
"@babel/preset-env",
|
|
38
|
+
{
|
|
39
|
+
"corejs": 3,
|
|
40
|
+
"useBuiltIns": "entry"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|