@clickview/lite 0.0.3 → 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.
Files changed (38) hide show
  1. package/dist/apps/dashboard/LiteDashboardApplication.d.ts +17 -0
  2. package/dist/apps/default/LiteDefaultApplication.d.ts +2 -0
  3. package/dist/apps/embed/LiteEmbedApplication.d.ts +15 -0
  4. package/dist/apps/embed/views/embed/EmbedView.d.ts +10 -0
  5. package/dist/apps/embed/views/index.d.ts +1 -0
  6. package/dist/apps/notifications/LiteNotificationsApplication.d.ts +10 -0
  7. package/dist/apps/notifications/constants/NotificationsAppVariables.d.ts +7 -0
  8. package/dist/apps/playlists/LitePlaylistsApplication.d.ts +1 -0
  9. package/dist/apps/subjects/LiteSubjectApplication.d.ts +14 -0
  10. package/dist/bundle.js +4291 -1
  11. package/dist/bundle.js.map +1 -0
  12. package/dist/en.json +55 -1
  13. package/dist/index.d.ts +9 -0
  14. package/dist/lite-app.css +155 -5
  15. package/dist/lite-app.css.map +1 -0
  16. package/dist/shared/components/index.d.ts +2 -0
  17. package/dist/shared/components/play-page/Badges.d.ts +7 -0
  18. package/dist/shared/components/play-page/Buttons.d.ts +2 -0
  19. package/dist/shared/components/play-page/PlayPage.d.ts +8 -0
  20. package/dist/shared/components/play-page/VideoTitle.d.ts +7 -0
  21. package/dist/shared/components/user-options/UserOptions.d.ts +10 -0
  22. package/dist/shared/components/video-details/VideoDetails.d.ts +0 -4
  23. package/dist/shared/constants/LiteActions.d.ts +17 -0
  24. package/dist/shared/constants/LiteLayouts.d.ts +1 -0
  25. package/dist/shared/constants/LiteRadioChannels.d.ts +4 -0
  26. package/dist/shared/contexts/player/PlayerContext.d.ts +20 -4
  27. package/dist/shared/flight-requests/ShareRequests.d.ts +4 -0
  28. package/dist/shared/flight-requests/VideoRequests.d.ts +1 -0
  29. package/dist/shared/layouts/embed-layout/EmbedLayoutComponent.d.ts +8 -0
  30. package/dist/shared/layouts/embed-layout/EmbedLayoutView.d.ts +17 -0
  31. package/dist/shared/layouts/index.d.ts +1 -0
  32. package/dist/shared/layouts/teacher-layout/TeacherLayoutComponent.d.ts +2 -2
  33. package/dist/shared/layouts/teacher-layout/TeacherLayoutView.d.ts +0 -2
  34. package/dist/shared/views/backbone-wrapper/BackboneWrapperView.d.ts +8 -0
  35. package/dist/shared/views/favorite-videos/FavoriteVideosView.d.ts +6 -0
  36. package/dist/shared/views/index.d.ts +3 -0
  37. package/dist/shared/views/play-shared/PlaySharedView.d.ts +6 -0
  38. package/package.json +45 -44
@@ -2,3 +2,5 @@ export * from './web-player/WebPlayer';
2
2
  export * from './floating-player/FloatingPlayer';
3
3
  export * from './resources/Resources';
4
4
  export * from './video-details/VideoDetails';
5
+ export * from './play-page/PlayPage';
6
+ export * from './user-options/UserOptions';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Video } from '@clickview/shared';
3
+ interface BadgesProps {
4
+ video: Video;
5
+ }
6
+ export declare function Badges(props: BadgesProps): React.ReactElement;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function Buttons(): React.ReactElement;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Video } from '@clickview/shared';
3
+ interface PlayPageProps {
4
+ video: Video;
5
+ relatedVideos: Video[];
6
+ }
7
+ export declare function PlayPage(props: PlayPageProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Video } from '@clickview/shared';
3
+ interface VideoTitleProps {
4
+ video: Video;
5
+ }
6
+ export declare function VideoTitle(props: VideoTitleProps): React.ReactElement;
7
+ export {};
@@ -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,3 +1,4 @@
1
1
  export declare const Layouts: {
2
2
  TEACHER_LAYOUT: string;
3
+ EMBED_LAYOUT: string;
3
4
  };
@@ -1,4 +1,8 @@
1
1
  export declare const AppChannels: {
2
2
  DEFAULT: string;
3
3
  PLAYLISTS: string;
4
+ DASHBOARD: string;
5
+ SUBJECT: string;
6
+ EMBED: string;
7
+ NOTIFICATIONS: string;
4
8
  };
@@ -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
- id?: string;
10
- setId: (id: string) => void;
11
- position: PlayerPosition;
12
- setPosition: (position: PlayerPosition) => void;
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,4 @@
1
+ import { Flight } from '@clickview/common';
2
+ export declare const ShareRequests: {
3
+ sharedResource(shortCode: string): Flight.Request;
4
+ };
@@ -2,4 +2,5 @@ import { Flight } from '@clickview/common';
2
2
  export declare const VideoRequests: {
3
3
  video(id: string): Flight.Request;
4
4
  workspace(cursor: string): Flight.Request;
5
+ favoriteVideos(cursor: string): Flight.Request;
5
6
  };
@@ -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 +1,2 @@
1
1
  export * from './teacher-layout/TeacherLayoutView';
2
+ export * from './embed-layout/EmbedLayoutView';
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { Store } from 'redux';
3
- export interface LayoutComponentProps {
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: LayoutComponentProps): React.ReactElement;
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 {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface FavoriteVideosViewProps {
3
+ cursor?: string;
4
+ }
5
+ export declare function FavoriteVideosView(props: FavoriteVideosViewProps): JSX.Element;
6
+ 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';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface PlayViewProps {
3
+ shortCode: string;
4
+ }
5
+ export declare function PlaySharedView(props: PlayViewProps): React.ReactElement;
6
+ export {};
package/package.json CHANGED
@@ -1,44 +1,45 @@
1
- {
2
- "name": "@clickview/lite",
3
- "version": "0.0.3",
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.12",
24
- "@types/react-custom-scrollbars": "4.0.6"
25
- },
26
- "dependencies": {
27
- "@clickview/common": "1.0.2",
28
- "@clickview/playlists": "1.0.2",
29
- "@clickview/shared": "1.0.2",
30
- "@clickview/styles": "1.0.2",
31
- "react-custom-scrollbars": "4.2.1"
32
- },
33
- "babel": {
34
- "presets": [
35
- [
36
- "@babel/preset-env",
37
- {
38
- "corejs": 3,
39
- "useBuiltIns": "entry"
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
+ }