@clickview/online 0.0.0-rc.1 → 0.0.1-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.
Files changed (50) hide show
  1. package/dist/en.json +1 -1
  2. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +49 -5
  3. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  4. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +3 -1
  5. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -1
  6. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +4 -2
  7. package/dist/libs/shared/src/components/widgets/items/subject-widget-item/SubjectWidgetItem.d.ts +4 -3
  8. package/dist/libs/shared/src/constants/WithStatements.d.ts +1 -1
  9. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  10. package/dist/libs/shared/src/flight-requests/FavouriteVideoRequests.d.ts +1 -1
  11. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +4 -4
  12. package/dist/libs/shared/src/hooks/UseReorderedItems.d.ts +9 -0
  13. package/dist/libs/shared/src/interfaces/models/Config.d.ts +3 -1
  14. package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
  15. package/dist/libs/shared/src/services/ConfigDataService.d.ts +1 -0
  16. package/dist/libs/shared/src/utils/AudienceHelper.d.ts +5 -1
  17. package/dist/online-app.css +4 -0
  18. package/dist/online-app.css.map +1 -1
  19. package/dist/online-app.js +3 -3
  20. package/dist/online-app.js.map +1 -1
  21. package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
  22. package/dist/projects/online/src/apps/content-updates/views/content-updates/partial-loading/PartialContentUpdatesView.d.ts +2 -0
  23. package/dist/projects/online/src/apps/dashboard/OnlineDashboardApplication.d.ts +0 -5
  24. package/dist/projects/online/src/apps/dashboard/flight-requests/DashboardRequests.d.ts +1 -0
  25. package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +0 -4
  26. package/dist/projects/online/src/apps/playlists/PlaylistApplication.d.ts +1 -2
  27. package/dist/projects/online/src/apps/playlists/components/play-playlist/PlayPlaylist.d.ts +1 -1
  28. package/dist/projects/online/src/apps/playlists/views/play-playlist/PlayPlaylistView.d.ts +3 -2
  29. package/dist/projects/online/src/apps/playlists/views/playlist/PlaylistView.d.ts +2 -2
  30. package/dist/projects/online/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +0 -8
  31. package/dist/projects/online/src/apps/playlists/views/playlists/PlaylistsView.d.ts +0 -2
  32. package/dist/projects/online/src/apps/subjects/SubjectApplication.d.ts +3 -12
  33. package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +0 -1
  34. package/dist/projects/online/src/apps/subjects/utils/ClassificationAppLinks.d.ts +1 -1
  35. package/dist/projects/online/src/index.d.ts +1 -0
  36. package/dist/projects/online/src/shared/constants/Actions.d.ts +7 -2
  37. package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
  38. package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -1
  39. package/package.json +44 -44
  40. package/typings/libs/FutureCoreHelper.d.ts +9 -0
  41. package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +0 -14
  42. package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItemStatus.d.ts +0 -10
  43. package/dist/libs/shared/src/apps/subjects/interfaces/Curriculum.d.ts +0 -4
  44. package/dist/libs/shared/src/apps/subjects/interfaces/SchoolLevel.d.ts +0 -4
  45. package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
  46. package/dist/projects/online/src/apps/subjects/PlaylistsSubjectApplication.d.ts +0 -16
  47. package/dist/projects/online/src/apps/subjects/views/preferences/curriculum/CurriculumSelectorView.d.ts +0 -5
  48. package/dist/projects/online/src/apps/subjects/views/preferences/school-level/SchoolLevelSelectorView.d.ts +0 -5
  49. package/dist/projects/online/src/apps/subjects/views/preferences/school-level-selector/SchoolLevelSelectorView.d.ts +0 -2
  50. package/dist/projects/online/src/apps/subjects/views/preferences/welcome/PreferencesWelcomeView.d.ts +0 -2
@@ -8,6 +8,6 @@ export declare class ContentUpdatesApplication extends Core.Application {
8
8
  get channelName(): string;
9
9
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
10
  contentUpdates(): void;
11
- classificationUpdate(classificationId: string): void;
11
+ classificationUpdate(classificationId: string, slug: string): void;
12
12
  protected onShowAlert(options?: HashObject): void;
13
13
  }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function PartialContentUpdatesView(): JSX.Element;
@@ -8,10 +8,5 @@ export declare class DashboardApplication extends ReactApplication {
8
8
  get channelName(): string;
9
9
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
10
  index(): void;
11
- dashboard(id: string, name?: string): void;
12
- video(id: string): void;
13
- curriculum(): void;
14
- contentUpdates(): void;
15
11
  addToPlaylist(videoId: string): void;
16
- private navigate;
17
12
  }
@@ -6,4 +6,5 @@ export declare const DashboardRequests: {
6
6
  widgets(libraryType: LibraryType, customerType: CustomerType, userRole: number, countryCode: string): Flight.Request;
7
7
  widgetPlaylist(id: string, maxRatingValue: number, userGroup: UserGroup, page?: number, limit?: number): Flight.Request;
8
8
  contentUpdates(): Flight.Request;
9
+ userChannels(): Flight.Request;
9
10
  };
@@ -5,8 +5,4 @@ export declare class DefaultApplication extends Core.Application {
5
5
  static get router(): any;
6
6
  get channelName(): string;
7
7
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
8
- index(): void;
9
- video(id: string): void;
10
- series(id: string): void;
11
- private navigate;
12
8
  }
@@ -11,7 +11,7 @@ export declare class PlaylistApplication extends Core.Application {
11
11
  get channelName(): string;
12
12
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
13
13
  index(params: HashObject): void;
14
- playlist(playlistId: string): void;
14
+ playlist(playlistId: string, slug?: string): void;
15
15
  newPlaylist(): void;
16
16
  editPlaylist(playlistId: string): void;
17
17
  deletePlaylist(playlistId: string): void;
@@ -22,7 +22,6 @@ export declare class PlaylistApplication extends Core.Application {
22
22
  sharedPlaylist(shareCode: string): void;
23
23
  playSharedPlaylist(shareCode: string): void;
24
24
  playSharedPlaylistVideo(shareCode: string, videoId?: string): void;
25
- series(seriesId: string): void;
26
25
  accessDenied(): void;
27
26
  notFound(): void;
28
27
  migrationInProgress(): void;
@@ -6,7 +6,7 @@ interface PlayPlaylistProps {
6
6
  videos: Video[];
7
7
  currentVideoId: string;
8
8
  videoRestrictions: RestrictedObject[];
9
- getPlaylistAppLink: () => Core.AppLink;
9
+ getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
10
10
  getVideoAppLink: (videoId: string) => Core.AppLink;
11
11
  shareCode?: string;
12
12
  }
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { Core } from "../../../../../../../libs/common/src/backbone";
3
+ import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
3
4
  interface PlayPlaylistViewProps {
4
5
  playlistId: string;
5
6
  videoId?: string;
6
7
  isShared?: boolean;
7
- getPlaylistAppLink: () => Core.AppLink;
8
- getVideoAppLink: (videoId: string) => Core.AppLink;
8
+ getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
9
+ getVideoAppLink: (videoId: string, videoName?: string) => Core.AppLink;
9
10
  filterByRating?: boolean;
10
11
  }
11
12
  export declare function PlayPlaylistView(props: PlayPlaylistViewProps): React.ReactElement;
@@ -1,16 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { Core } from "../../../../../../../libs/common/src/backbone";
3
- import { Video, Series, AppLinkWithLabel } from "../../../../../../../libs/shared/src/interfaces";
3
+ import { Video, Playlist, Series, AppLinkWithLabel } from "../../../../../../../libs/shared/src/interfaces";
4
4
  interface PlaylistViewProps {
5
5
  playlistId: string;
6
6
  isShared?: boolean;
7
7
  application: string;
8
8
  getVideoAppLink: (video: Video) => Core.AppLink;
9
9
  getSeriesAppLink: (series: Series) => Core.AppLink;
10
+ getPlayAllAppLink?: (playlist: Playlist) => Core.AppLink;
10
11
  allowEdit?: boolean;
11
12
  showBreadcrumbs?: boolean;
12
13
  showDateMetadata?: boolean;
13
- playAllAppLink?: Core.AppLink;
14
14
  returnAppLink?: AppLinkWithLabel;
15
15
  filterByRating?: boolean;
16
16
  canFollow?: boolean;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { Video, Playlist, CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
3
2
  import { VideoAction } from "../../../../../../../libs/shared/src/utils/video-actions/VideoActionsHelper";
4
3
  import { WorkflowPhase } from "../../../../../../../libs/analytics/src/interfaces";
@@ -11,10 +10,3 @@ export declare function getLastUpdatedDate(videos: Video[]): string;
11
10
  export declare function getVideoActions(canEdit: boolean): VideoAction[];
12
11
  export declare function logSortAction(playlistId: string, videoId: string, workflowPhase: WorkflowPhase): void;
13
12
  export declare function canEditPlaylist(playlist: Playlist, user: CurrentUser): boolean;
14
- /**
15
- * This function can be used to temporarily store an array of reordered videos
16
- * until the array obtained from the application store updates to the new order.
17
- *
18
- * @param videos array of videos from application store.
19
- */
20
- export declare function useReorderedVideos(videos: Video[]): [Video[], React.Dispatch<React.SetStateAction<Video[]>>];
@@ -1,11 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { Core } from "../../../../../../../libs/common/src/backbone";
3
- import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
4
3
  import { PlaylistSortType } from "../../../../../../../libs/shared/src/apps/playlists/enums/PlaylistSortType";
5
4
  interface PlaylistsViewProps {
6
5
  sort: PlaylistSortType;
7
6
  getSortAppLink: (sort: PlaylistSortType) => Core.AppLink;
8
- getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
9
7
  }
10
8
  export declare function PlaylistsView(props: PlaylistsViewProps): React.ReactElement;
11
9
  export {};
@@ -8,17 +8,8 @@ export declare class SubjectApplication extends ReactApplication {
8
8
  static get router(): any;
9
9
  get channelName(): string;
10
10
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
11
- classification(classificationId: string, queryParams?: HashObject<string>): void;
12
- classificationSeries(classificationId: string, queryParams?: HashObject<string>): void;
13
- classificationPlaylists(id: string): void;
14
- classificationPlaylist(subjectId: string, playlistId: string): void;
15
- playClassificationPlaylist(subjectId: string, playlistId: string): void;
16
- playClassificationPlaylistVideo(subjectId: string, playlistId: string, videoId?: string): void;
11
+ classification(classificationId: string, slug?: string, queryParams?: HashObject<string>): void;
12
+ classificationSeries(classificationId: string, slug?: string, queryParams?: HashObject<string>): void;
13
+ classificationPlaylists(id: string, slug?: string): void;
17
14
  preferences(params?: HashObject): void;
18
- video(id: string): void;
19
- series(id: string): void;
20
- playlist(id: string): void;
21
- private navigate;
22
- private getPlaylistAppLink;
23
- private getVideoAppLink;
24
15
  }
@@ -10,7 +10,6 @@ export declare class SubjectPlaylistsApplication extends ReactApplication {
10
10
  classificationPlaylist(subjectId: string, playlistId: string, slug?: string): void;
11
11
  playClassificationPlaylist(subjectId: string, playlistId: string, slug?: string): void;
12
12
  playClassificationPlaylistVideo(subjectId: string, playlistId: string, videoId?: string, slug?: string): void;
13
- classification(subjectId: string, slug: string): void;
14
13
  private getPlaylistAppLink;
15
14
  private getVideoAppLink;
16
15
  }
@@ -3,5 +3,5 @@ import { HashObject } from "../../../../../../libs/common/src/react/interfaces/H
3
3
  import { Classification, Playlist } from "../../../../../../libs/shared/src/interfaces";
4
4
  export declare const getClassificationAppLink: (params?: HashObject<any>) => (classification?: Classification) => Core.AppLink;
5
5
  export declare const getSeriesSubviewAppLink: (classification: Classification) => Core.AppLink;
6
- export declare const getPlaylistAppLink: (playlist: Playlist) => Core.AppLink;
6
+ export declare const getPlaylistAppLink: (classification: Classification) => (playlist: Playlist) => Core.AppLink;
7
7
  export declare const getDashboardAppLink: () => Core.AppLink;
@@ -73,6 +73,7 @@ export * from './apps/playlists/services';
73
73
  export * from './apps/playlists/PlaylistApplication';
74
74
  export * from './apps/playlists/layouts/OnlinePlaylistsLayoutView';
75
75
  export * from './apps/subjects/SubjectApplication';
76
+ export * from './apps/subjects/SubjectPlaylistsApplication';
76
77
  export * from './apps/content-updates/ContentUpdatesApplication';
77
78
  export * from './apps/dashboard/OnlineDashboardApplication';
78
79
  import { Core } from "../../../libs/common/src/backbone";
@@ -27,8 +27,6 @@ export declare const Actions: {
27
27
  Subjects: {
28
28
  CLASSIFICATION: string;
29
29
  CLASSIFICATION_PLAYLIST: string;
30
- PLAY_CLASSIFICATION_PLAYLIST: string;
31
- PLAY_CLASSIFICATION_PLAYLIST_VIDEO: string;
32
30
  VIDEO: string;
33
31
  SERIES: string;
34
32
  PLAYLIST: string;
@@ -36,6 +34,11 @@ export declare const Actions: {
36
34
  PREFERENCES: string;
37
35
  SHARE: string;
38
36
  };
37
+ SubjectPlaylists: {
38
+ PLAY_CLASSIFICATION_PLAYLIST: string;
39
+ PLAY_CLASSIFICATION_PLAYLIST_VIDEO: string;
40
+ CLASSIFICATION: string;
41
+ };
39
42
  ContentUpdates: {
40
43
  CONTENT_UPDATES: string;
41
44
  CLASSIFICATION_UPDATE: string;
@@ -50,5 +53,7 @@ export declare const Actions: {
50
53
  DEV_ERROR: string;
51
54
  ADD_TO_PLAYLIST: string;
52
55
  CONTENT_UPDATES: string;
56
+ USER_CHANNELS: string;
57
+ USER_CHANNEL: string;
53
58
  };
54
59
  };
@@ -2,6 +2,7 @@ export declare const AppChannels: {
2
2
  DEFAULT: string;
3
3
  PLAYLIST: string;
4
4
  SUBJECT: string;
5
+ SUBJECT_PLAYLISTS: string;
5
6
  CONTENT_UPDATES: string;
6
7
  DASHBOARD: string;
7
8
  };
@@ -20,8 +20,8 @@ export declare abstract class OnlineLayoutView extends ReactLayoutView {
20
20
  static getCacheKey(): string;
21
21
  private getChildComponents;
22
22
  protected unsetRegion(region: string): void;
23
+ hideLeftNav(): void;
23
24
  closePopup(): void;
24
- abstract hideLeftNav(): void;
25
25
  abstract showLeftNav(): void;
26
26
  showChildView(region: string, component: React.ReactElement): void;
27
27
  renderLayout(): void;
package/package.json CHANGED
@@ -1,44 +1,44 @@
1
- {
2
- "name": "@clickview/online",
3
- "version": "0.0.0-rc.1",
4
- "description": "Online",
5
- "main": "dist/online-app.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": "https://gitlab.cvinternal.net/front-end/clickview"
15
- },
16
- "cv": {
17
- "publishable": true,
18
- "rebuildable": true
19
- },
20
- "author": "",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@clickview/tooling": "0.0.16-dev.0",
24
- "@types/linkifyjs": "2.1.3",
25
- "@types/react-sortable-hoc": "0.7.1",
26
- "@types/react-transition-group": "4.2.3",
27
- "@types/yup": "0.26.24"
28
- },
29
- "dependencies": {
30
- "@clickview/styles": "1.0.6-dev.0",
31
- "yup": "0.27.0"
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/online",
3
+ "version": "0.0.1-rc.0",
4
+ "description": "Online",
5
+ "main": "dist/online-app.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": "https://gitlab.cvinternal.net/front-end/clickview"
15
+ },
16
+ "cv": {
17
+ "publishable": true,
18
+ "rebuildable": true
19
+ },
20
+ "author": "",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@clickview/tooling": "0.0.16-rc.0",
24
+ "@types/linkifyjs": "2.1.3",
25
+ "@types/react-sortable-hoc": "0.7.1",
26
+ "@types/react-transition-group": "4.2.3",
27
+ "@types/yup": "0.26.24"
28
+ },
29
+ "dependencies": {
30
+ "@clickview/styles": "1.0.6-rc.0",
31
+ "yup": "0.27.0"
32
+ },
33
+ "babel": {
34
+ "presets": [
35
+ [
36
+ "@babel/preset-env",
37
+ {
38
+ "corejs": 3,
39
+ "useBuiltIns": "entry"
40
+ }
41
+ ]
42
+ ]
43
+ }
44
+ }
@@ -6,4 +6,13 @@ declare namespace ClickView {
6
6
  }
7
7
  }
8
8
  }
9
+
10
+ declare namespace Data {
11
+ declare namespace Config {
12
+ declare const env: string;
13
+ declare namespace region {
14
+ declare const code: string;
15
+ }
16
+ }
17
+ }
9
18
  }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- interface PreferenceItemProps {
3
- name: string;
4
- imageUrl: string;
5
- onClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
6
- isDisabled?: boolean;
7
- isSelected: boolean;
8
- isExpandable?: boolean;
9
- expand?: boolean;
10
- selectedChildCount?: number;
11
- extraClasses?: string;
12
- }
13
- export declare function PreferenceItem(props: PreferenceItemProps): JSX.Element;
14
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- interface ExpandableItemStatusProps {
3
- selectedChildrenCount: number;
4
- }
5
- export declare const ExpandableItemStatus: (props: ExpandableItemStatusProps) => JSX.Element;
6
- interface SelectableItemStatusProps {
7
- selected: boolean;
8
- }
9
- export declare const SelectableItemStatus: (props: SelectableItemStatusProps) => JSX.Element;
10
- export {};
@@ -1,4 +0,0 @@
1
- import { BaseObject, Cover } from "../../../interfaces";
2
- export interface Curriculum extends BaseObject {
3
- cover: Cover;
4
- }
@@ -1,4 +0,0 @@
1
- import { BaseObject, Cover } from "../../../interfaces";
2
- export interface SchoolLevel extends BaseObject {
3
- cover: Cover;
4
- }
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function ClickViewLogo(): React.ReactElement;
@@ -1,16 +0,0 @@
1
- import { Core } from "../../../../../libs/common/src/backbone";
2
- import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
3
- import { OnlineLayoutView, OnlineLayoutViewOptions } from "../../shared/layouts";
4
- export declare class PlaylistSubjectApplication extends ReactApplication {
5
- protected layout: OnlineLayoutView;
6
- get name(): string;
7
- static get router(): any;
8
- get channelName(): string;
9
- get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
- classificationPlaylist(subjectId: string, playlistId: string, slug?: string): void;
11
- playClassificationPlaylist(subjectId: string, playlistId: string, slug?: string): void;
12
- playClassificationPlaylistVideo(subjectId: string, playlistId: string, videoId?: string, slug?: string): void;
13
- private getPlaylistAppLink;
14
- private getVideoAppLink;
15
- private navigate;
16
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface CurriculumSelectorViewProps {
3
- }
4
- export declare function CurriculumSelectorView(props: CurriculumSelectorViewProps): JSX.Element;
5
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface SchoolLevelSelectorViewProps {
3
- }
4
- export declare function SchoolLevelSelectorView(props: SchoolLevelSelectorViewProps): JSX.Element;
5
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function SchoolLevelSelectorView(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function PreferencesWelcomeView(): JSX.Element;