@clickview/lite 0.0.21 → 0.0.22-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.
- package/dist/css/0.chunk.css +3 -3
- package/dist/css/12.chunk.css +11 -9
- package/dist/css/13.chunk.css +15 -5
- package/dist/css/14.chunk.css +5 -7
- package/dist/css/15.chunk.css +6 -12
- package/dist/css/16.chunk.css +12 -6
- package/dist/css/17.chunk.css +9 -3
- package/dist/css/18.chunk.css +4 -2
- package/dist/css/2.chunk.css +1 -1
- package/dist/css/20.chunk.css +2 -2
- package/dist/css/21.chunk.css +2 -6
- package/dist/css/22.chunk.css +6 -2
- package/dist/css/23.chunk.css +2 -2
- package/dist/css/24.chunk.css +3 -1
- package/dist/css/25.chunk.css +1 -3
- package/dist/css/26.chunk.css +2 -2
- package/dist/css/27.chunk.css +3 -1
- package/dist/css/28.chunk.css +1 -3
- package/dist/css/29.chunk.css +2 -2
- package/dist/css/30.chunk.css +4 -0
- package/dist/css/4.chunk.css +2 -2
- package/dist/css/46.chunk.css +1 -1
- package/dist/css/48.chunk.css +2 -0
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +3 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +5 -6
- package/dist/libs/analytics/src/interfaces/User.d.ts +11 -0
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +6 -0
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +1 -1
- package/dist/libs/analytics/src/utils/UrlHelper.d.ts +3 -0
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +3 -3
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -0
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +3 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/index.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +15 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/progress/PreferenceProgress.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-grid/SubjectPreferenceGrid.d.ts +2 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-item/SubjectPreferenceItem.d.ts +1 -0
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +7 -2
- package/dist/libs/shared/src/components/actions/Actions.d.ts +1 -0
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +2 -1
- package/dist/libs/shared/src/components/popup/Popup.d.ts +6 -0
- package/dist/libs/shared/src/components/spinner-button/SpinnerButton.d.ts +1 -0
- package/dist/libs/shared/src/components/svgs/clickview-logo/ClickViewLogo.d.ts +3 -0
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +8 -0
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
- package/dist/libs/shared/src/enums/PlaylistPrivacy.d.ts +5 -0
- package/dist/libs/shared/src/enums/PresentationType.d.ts +4 -0
- package/dist/libs/shared/src/enums/SettingKind.d.ts +4 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +3 -0
- package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +3 -0
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +12 -4
- package/dist/libs/shared/src/hooks/UseLazyLoad.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/collections/VideoHistoryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +4 -2
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +3 -1
- package/dist/projects/lite/src/app.d.ts +2 -1
- package/dist/projects/lite/src/apps/default/LiteDefaultApplication.d.ts +1 -1
- package/dist/projects/lite/src/apps/watch-history/LiteWatchHistoryApplication.d.ts +18 -0
- package/dist/projects/lite/src/apps/watch-history/components/watch-history-video-list/WatchHistoryVideoList.d.ts +9 -0
- package/dist/projects/lite/src/apps/watch-history/flight-requests/VideoHistoryRequests.d.ts +6 -0
- package/dist/projects/lite/src/apps/watch-history/views/watch-history/WatchHistoryView.d.ts +6 -0
- package/dist/projects/lite/src/polyfills.d.ts +2 -0
- package/dist/projects/lite/src/shared/components/web-player/WebPlayer.d.ts +1 -0
- package/dist/projects/lite/src/shared/constants/LiteActions.d.ts +3 -1
- package/dist/projects/lite/src/shared/constants/LiteRadioChannels.d.ts +1 -0
- package/dist/projects/lite/src/shared/flight-requests/VideoRequests.d.ts +2 -0
- package/dist/projects/lite/src/shared/views/play/PlayView.d.ts +1 -0
- package/dist/scripts/0-06e6d224db.chunk.js +1 -0
- package/dist/scripts/1-887b4b1b62.chunk.js +17 -0
- package/dist/scripts/12-c3a787026a.chunk.js +1 -0
- package/dist/scripts/13-55a4846990.chunk.js +1 -0
- package/dist/scripts/14-388f94a450.chunk.js +1 -0
- package/dist/scripts/15-77df8b5af3.chunk.js +1 -0
- package/dist/scripts/16-0ffeb64f54.chunk.js +1 -0
- package/dist/scripts/17-955a29c4e0.chunk.js +1 -0
- package/dist/scripts/18-e6136d62c6.chunk.js +1 -0
- package/dist/scripts/19-880910202d.chunk.js +1 -0
- package/dist/scripts/2-fd038171b4.chunk.js +1 -0
- package/dist/scripts/20-44be150b5d.chunk.js +1 -0
- package/dist/scripts/21-0ed98b49d9.chunk.js +1 -0
- package/dist/scripts/22-0af19d7662.chunk.js +1 -0
- package/dist/scripts/23-864af936a5.chunk.js +1 -0
- package/dist/scripts/24-4d8f7bcedd.chunk.js +1 -0
- package/dist/scripts/25-8ace9850cd.chunk.js +1 -0
- package/dist/scripts/26-cdbba9cd45.chunk.js +1 -0
- package/dist/scripts/27-e37f663d43.chunk.js +1 -0
- package/dist/scripts/28-fbaeae6ce9.chunk.js +1 -0
- package/dist/scripts/29-5cc304ffac.chunk.js +1 -0
- package/dist/scripts/3-80777701d5.chunk.js +7 -0
- package/dist/scripts/30-eacfd37725.chunk.js +1 -0
- package/dist/scripts/31-b251e1cc9f.chunk.js +1 -0
- package/dist/scripts/32-89eee7291c.chunk.js +1 -0
- package/dist/scripts/33-fc331f7e45.chunk.js +1 -0
- package/dist/scripts/34-7abcf2c85d.chunk.js +1 -0
- package/dist/scripts/35-6c3ad9d973.chunk.js +1 -0
- package/dist/scripts/36-4487d884c4.chunk.js +1 -0
- package/dist/scripts/37-3756ebfbf8.chunk.js +1 -0
- package/dist/scripts/38-dc36b72523.chunk.js +1 -0
- package/dist/scripts/39-40fb064bfa.chunk.js +1 -0
- package/dist/scripts/4-921a74ad8c.chunk.js +1 -0
- package/dist/scripts/40-06a34b9e0e.chunk.js +1 -0
- package/dist/scripts/41-37fb45611f.chunk.js +1 -0
- package/dist/scripts/42-2e0a141dd0.chunk.js +1 -0
- package/dist/scripts/43-3b21cd4021.chunk.js +1 -0
- package/dist/scripts/44-a689986917.chunk.js +1 -0
- package/dist/scripts/45-929a705c77.chunk.js +1 -0
- package/dist/scripts/46-92ef9358e1.chunk.js +1 -0
- package/dist/scripts/47-73308b0e36.chunk.js +1 -0
- package/dist/scripts/48-4e1c2af176.chunk.js +1 -0
- package/dist/scripts/49-6860509ec9.chunk.js +1 -0
- package/dist/scripts/5-8cac703d8e.chunk.js +1 -0
- package/dist/scripts/50-ce92cdc08d.chunk.js +1 -0
- package/dist/scripts/51-f7ca510503.chunk.js +1 -0
- package/dist/scripts/52-f1cd5fb0bf.chunk.js +1 -0
- package/dist/scripts/53-048ecda135.chunk.js +1 -0
- package/dist/scripts/54-65486573ee.chunk.js +1 -0
- package/dist/scripts/55-294432b05b.chunk.js +1 -0
- package/dist/scripts/56-386250e4ec.chunk.js +1 -0
- package/dist/scripts/57-b59de63c5a.chunk.js +1 -0
- package/dist/scripts/58-5b7bee48c2.chunk.js +1 -0
- package/dist/scripts/59-00659eeeca.chunk.js +1 -0
- package/dist/scripts/6-176dc103e5.chunk.js +1 -0
- package/dist/scripts/60-d2c07fa4ea.chunk.js +1 -0
- package/dist/scripts/61-89b6e187bd.chunk.js +1 -0
- package/dist/scripts/7-26644d5b55.chunk.js +1 -0
- package/dist/scripts/8-d64d1cc3c2.chunk.js +1 -0
- package/dist/scripts/9-45dbfb578e.chunk.js +1 -0
- package/dist/scripts/bundle-697354e29e.min.js +8 -0
- package/dist/scripts/bundles.json +2 -1
- package/dist/scripts/polyfills-b6dc96dd56.min.js +1 -0
- package/package.json +4 -3
- package/typings/libs/intersection-observer.d.ts +83 -0
- package/dist/css/11.chunk.css +0 -22
- package/dist/css/44.chunk.css +0 -2
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
- package/dist/libs/shared/src/interfaces/models/VideoWithRestrictions.d.ts +0 -5
- package/dist/libs/shared/src/utils/RestrictionHelper.d.ts +0 -5
- package/dist/scripts/0-901d9a5174.chunk.js +0 -1
- package/dist/scripts/1-2b6afccaa5.chunk.js +0 -17
- package/dist/scripts/11-7040a1a9eb.chunk.js +0 -1
- package/dist/scripts/12-56399321c2.chunk.js +0 -1
- package/dist/scripts/13-6f6dd6876b.chunk.js +0 -1
- package/dist/scripts/14-85b1c4519e.chunk.js +0 -1
- package/dist/scripts/15-a708c0a441.chunk.js +0 -1
- package/dist/scripts/16-672f637430.chunk.js +0 -1
- package/dist/scripts/17-f535d75948.chunk.js +0 -1
- package/dist/scripts/18-a0fa688611.chunk.js +0 -1
- package/dist/scripts/19-efdc78b01d.chunk.js +0 -1
- package/dist/scripts/2-959e3f07c5.chunk.js +0 -1
- package/dist/scripts/20-b3b942d3ee.chunk.js +0 -1
- package/dist/scripts/21-5d0bf18256.chunk.js +0 -1
- package/dist/scripts/22-bf7f6a09af.chunk.js +0 -1
- package/dist/scripts/23-ce69478417.chunk.js +0 -1
- package/dist/scripts/24-2f573144dd.chunk.js +0 -1
- package/dist/scripts/25-c0a7edb46b.chunk.js +0 -1
- package/dist/scripts/26-eda1f676ce.chunk.js +0 -1
- package/dist/scripts/27-19a73a8e3c.chunk.js +0 -1
- package/dist/scripts/28-543f35676a.chunk.js +0 -1
- package/dist/scripts/29-c8624a459e.chunk.js +0 -1
- package/dist/scripts/3-4681a2970b.chunk.js +0 -7
- package/dist/scripts/30-250405639f.chunk.js +0 -1
- package/dist/scripts/31-973623b2b8.chunk.js +0 -1
- package/dist/scripts/32-56b87645a5.chunk.js +0 -1
- package/dist/scripts/33-8139dd6b22.chunk.js +0 -1
- package/dist/scripts/34-4305b444d2.chunk.js +0 -1
- package/dist/scripts/35-b00e2d430e.chunk.js +0 -1
- package/dist/scripts/36-b1ac1d234c.chunk.js +0 -1
- package/dist/scripts/37-887ece8f25.chunk.js +0 -1
- package/dist/scripts/38-6b761c580b.chunk.js +0 -1
- package/dist/scripts/39-15c7fb0629.chunk.js +0 -1
- package/dist/scripts/4-c79da2c235.chunk.js +0 -1
- package/dist/scripts/40-d06a006479.chunk.js +0 -1
- package/dist/scripts/41-9ca185cca0.chunk.js +0 -1
- package/dist/scripts/42-1169517631.chunk.js +0 -1
- package/dist/scripts/43-0e9beea9c1.chunk.js +0 -1
- package/dist/scripts/44-d113f9e462.chunk.js +0 -1
- package/dist/scripts/45-705a98b85d.chunk.js +0 -1
- package/dist/scripts/46-6aea461612.chunk.js +0 -1
- package/dist/scripts/47-56b20a5099.chunk.js +0 -1
- package/dist/scripts/48-cbbb4a5715.chunk.js +0 -1
- package/dist/scripts/49-109e79ce55.chunk.js +0 -1
- package/dist/scripts/5-29933b6e8c.chunk.js +0 -1
- package/dist/scripts/50-6f6935b631.chunk.js +0 -1
- package/dist/scripts/51-7fa8424b75.chunk.js +0 -1
- package/dist/scripts/52-a94a759a27.chunk.js +0 -1
- package/dist/scripts/53-482d232c95.chunk.js +0 -1
- package/dist/scripts/54-de14c911e7.chunk.js +0 -1
- package/dist/scripts/55-3394848440.chunk.js +0 -1
- package/dist/scripts/56-ad1ab23edb.chunk.js +0 -1
- package/dist/scripts/57-853a2f73e6.chunk.js +0 -1
- package/dist/scripts/58-80fcc2da85.chunk.js +0 -1
- package/dist/scripts/6-5f5d06a387.chunk.js +0 -1
- package/dist/scripts/7-11cf07c243.chunk.js +0 -1
- package/dist/scripts/8-410d69ed5a.chunk.js +0 -1
- package/dist/scripts/9-c78686d1cc.chunk.js +0 -1
- package/dist/scripts/bundle-86b9401ad3.min.js +0 -1
- /package/dist/css/{31.chunk.css → 32.chunk.css} +0 -0
- /package/dist/css/{34.chunk.css → 35.chunk.css} +0 -0
- /package/dist/css/{38.chunk.css → 39.chunk.css} +0 -0
- /package/dist/libs/shared/src/apps/subjects/components/preferences/{subject-preference-item/SubjectPreferenceItemStatus.d.ts → preference-item/PreferenceItemStatus.d.ts} +0 -0
- /package/dist/{projects/lite/src/shared → libs/shared/src}/components/toggle-switch/ToggleSwitch.d.ts +0 -0
|
@@ -23,7 +23,9 @@ export declare enum UserAction {
|
|
|
23
23
|
* The following events are listed in CollectionApi
|
|
24
24
|
*/
|
|
25
25
|
Stream = "cv_product_stream",
|
|
26
|
+
StreamRaw = "cv_product_stream_raw",
|
|
26
27
|
WebPlayerStream = "cv_product_webplayer_stream",
|
|
28
|
+
StreamProgress = "cv_product_stream_progress",
|
|
27
29
|
Login = "cv_product_login",
|
|
28
30
|
LoginSsoRedirect = "cv_product_login_sso_redirect",
|
|
29
31
|
LoginFailed = "cv_product_login_failed",
|
|
@@ -99,12 +101,7 @@ export declare enum EntityType {
|
|
|
99
101
|
Upload = "upload",
|
|
100
102
|
SearchResults = "search_results",
|
|
101
103
|
Audience = "audience",
|
|
102
|
-
|
|
103
|
-
* `user` cannot be the value here because when we log these events to Snowflake, the event object
|
|
104
|
-
* puts the current user's data under the `user` key. If we were to log events with `user` as the entity
|
|
105
|
-
* name, this data would be overwritten and lost.
|
|
106
|
-
*/
|
|
107
|
-
User = "target_user"
|
|
104
|
+
User = "user"
|
|
108
105
|
}
|
|
109
106
|
export declare enum LocationContext {
|
|
110
107
|
TopNav = "top_nav",
|
|
@@ -151,6 +148,8 @@ export declare enum LocationContext {
|
|
|
151
148
|
ManageClassroomGroupListItem = "manage_classroom_group_list_item",
|
|
152
149
|
PlayPage = "play_page",
|
|
153
150
|
FloatingPlayer = "floating_player",
|
|
151
|
+
InteractivePlayer = "interactive_player",
|
|
152
|
+
EmbeddedPlayer = "embedded_player",
|
|
154
153
|
ContentUpdatesClassificationBanner = "content_updates_classification_banner",
|
|
155
154
|
PreferencesSettings = "preferences_settings",
|
|
156
155
|
MyUploads = "my_uploads"
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { BaseObject } from "./";
|
|
2
|
+
export declare enum UserGroup {
|
|
3
|
+
Staff = "staff",
|
|
4
|
+
Learner = "learner",
|
|
5
|
+
Unknown = "unknown"
|
|
6
|
+
}
|
|
2
7
|
export interface User extends BaseObject {
|
|
3
8
|
countryCode?: string;
|
|
4
9
|
customerId?: string;
|
|
10
|
+
customerGuid?: string;
|
|
11
|
+
customerName?: string;
|
|
12
|
+
crmId?: number;
|
|
5
13
|
role?: string;
|
|
14
|
+
userGroup?: UserGroup;
|
|
15
|
+
yearGroup?: string;
|
|
16
|
+
isOpenCustomer?: boolean;
|
|
6
17
|
}
|
|
@@ -22,10 +22,16 @@ export interface PlatformData {
|
|
|
22
22
|
export interface CollectionEventUserData {
|
|
23
23
|
id: string;
|
|
24
24
|
role: string;
|
|
25
|
+
userGroup: string;
|
|
26
|
+
yearGroup: string;
|
|
25
27
|
customer: {
|
|
26
28
|
id: string;
|
|
29
|
+
name: string;
|
|
27
30
|
country: CountryCode;
|
|
28
31
|
region: Region;
|
|
32
|
+
customerGuid: string;
|
|
33
|
+
crmId: number;
|
|
34
|
+
openCustomer: boolean;
|
|
29
35
|
};
|
|
30
36
|
}
|
|
31
37
|
export interface CollectionEventData {
|
|
@@ -2,5 +2,5 @@ import { IncomingEvent } from "../models/CollectionEvent";
|
|
|
2
2
|
import { HashObject } from "../interfaces";
|
|
3
3
|
export declare const CollectionApiClientHelper: {
|
|
4
4
|
shouldLog(event: IncomingEvent): boolean;
|
|
5
|
-
formatData(event: IncomingEvent): HashObject<any
|
|
5
|
+
formatData(event: IncomingEvent): HashObject<any> | HashObject<any>[];
|
|
6
6
|
};
|
|
@@ -17,7 +17,6 @@ export interface SocketToken {
|
|
|
17
17
|
}
|
|
18
18
|
export declare abstract class SignalRDataProvider extends Marionette.Object implements DataProvider {
|
|
19
19
|
private connection;
|
|
20
|
-
private hub;
|
|
21
20
|
private connectionState;
|
|
22
21
|
private authEndpoint;
|
|
23
22
|
private subscribeEvent;
|
|
@@ -28,11 +27,12 @@ export declare abstract class SignalRDataProvider extends Marionette.Object impl
|
|
|
28
27
|
private setProviderOptions;
|
|
29
28
|
openConnection(): JQueryPromise<any>;
|
|
30
29
|
connect(): JQueryPromise<any>;
|
|
31
|
-
start(data: any):
|
|
32
|
-
stop(
|
|
30
|
+
start(data: any): Promise<any>;
|
|
31
|
+
stop(): Promise<void>;
|
|
33
32
|
private attachSocketEvents;
|
|
34
33
|
private onReconnect;
|
|
35
34
|
private onConnectionError;
|
|
35
|
+
private createConnection;
|
|
36
36
|
private getConnectionToken;
|
|
37
37
|
private setConnectionState;
|
|
38
38
|
private isConnectedOrConnecting;
|
|
@@ -24,6 +24,10 @@ export declare const ArrayHelper: {
|
|
|
24
24
|
* @param value value to be added or removed.
|
|
25
25
|
*/
|
|
26
26
|
addOrRemove<T_13 = import("react").Key>(arr: T_13[], value: T_13): T_13[];
|
|
27
|
+
/**
|
|
28
|
+
* This is the same addOrRemove function above, except it doesn't mutate the array in the argument
|
|
29
|
+
* and returns a branch new array.
|
|
30
|
+
*/
|
|
27
31
|
addOrRemoveImmutable<T_14>(arr: T_14[], value: T_14): T_14[];
|
|
28
32
|
/**
|
|
29
33
|
* Returns a (stably) sorted copy of list, ranked in ascending order
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ObjectHash } from 'backbone';
|
|
2
3
|
export declare const TextHelper: {
|
|
3
4
|
escapeExpression(text: string): string;
|
|
4
5
|
escapeRegExp(str: string): string;
|
|
5
6
|
slugify(str: string): string;
|
|
6
7
|
linkifyText(text: string, options?: ObjectHash): string;
|
|
8
|
+
isEqual(str1: import("react").Key, str2: import("react").Key): boolean;
|
|
9
|
+
toTitleCase(str: string): string;
|
|
7
10
|
};
|
|
@@ -2,3 +2,4 @@ export * from './footer/PreferenceFooter';
|
|
|
2
2
|
export * from './progress/PreferenceProgress';
|
|
3
3
|
export * from './subject-preference-grid/SubjectPreferenceGrid';
|
|
4
4
|
export * from './subject-preference-item/SubjectPreferenceItem';
|
|
5
|
+
export * from './preference-item/PreferenceItem';
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
hideStatus?: boolean;
|
|
9
|
+
isExpandable?: boolean;
|
|
10
|
+
expand?: boolean;
|
|
11
|
+
selectedChildCount?: number;
|
|
12
|
+
extraClasses?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function PreferenceItem(props: PreferenceItemProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -5,6 +5,7 @@ interface SubjectPreferenceGridProps {
|
|
|
5
5
|
subjects: ClassificationPreference[];
|
|
6
6
|
onSelect: (subject: Classification) => void;
|
|
7
7
|
onExpand: (subject: Classification) => void;
|
|
8
|
+
disableAll?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare function SubjectPreferenceGrid(
|
|
10
|
+
export declare function SubjectPreferenceGrid(props: SubjectPreferenceGridProps): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -6,6 +6,7 @@ interface SubjectPreferenceItemProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
onClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
8
8
|
extraClasses?: string;
|
|
9
|
+
hideStatus?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare function SubjectPreferenceItem(props: SubjectPreferenceItemProps): JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Core } from "../../../../common/src/backbone";
|
|
3
3
|
interface ActionButtonProps {
|
|
4
|
-
|
|
4
|
+
appLink?: Core.AppLink;
|
|
5
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
6
|
+
svgName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
showSpinner?: boolean;
|
|
5
10
|
}
|
|
6
11
|
export declare function ActionButton(props: React.PropsWithChildren<ActionButtonProps>): JSX.Element;
|
|
7
12
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ActionOptions } from './Actions';
|
|
3
|
+
declare type DropdownActionOptions = Omit<ActionOptions, 'button' | 'tooltip'>;
|
|
3
4
|
interface ActionsDropdownProps {
|
|
4
|
-
actions:
|
|
5
|
+
actions: DropdownActionOptions[];
|
|
5
6
|
className?: string;
|
|
6
7
|
dropdownToggleClassName?: string;
|
|
7
8
|
}
|
|
@@ -4,7 +4,13 @@ interface PopupProps {
|
|
|
4
4
|
closeButton?: boolean;
|
|
5
5
|
closePopup: () => void;
|
|
6
6
|
onEntered?: () => void;
|
|
7
|
+
size?: 'sm' | 'lg' | 'xl';
|
|
7
8
|
showLoadingSpinner?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare function Popup(props: React.PropsWithChildren<PopupProps>): React.ReactElement;
|
|
11
|
+
export declare namespace Popup {
|
|
12
|
+
var defaultProps: {
|
|
13
|
+
closeButton: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
10
16
|
export {};
|
|
@@ -3,5 +3,6 @@ import { ButtonProps } from 'react-bootstrap';
|
|
|
3
3
|
export interface SpinnerButtonProps extends ButtonProps {
|
|
4
4
|
showSpinner: boolean;
|
|
5
5
|
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare function SpinnerButton(props: React.PropsWithChildren<SpinnerButtonProps>): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Video } from "../../../interfaces";
|
|
3
|
+
interface VideoThumbnailWatchProgressBarProps {
|
|
4
|
+
video: Video;
|
|
5
|
+
className: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function VideoThumbnailWatchProgressBar(props: VideoThumbnailWatchProgressBarProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -13,7 +13,7 @@ export interface WidgetData {
|
|
|
13
13
|
name?: string;
|
|
14
14
|
description?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare function useFetchData(props: FixedWidgetProps, dispatch: Function,
|
|
16
|
+
export declare function useFetchData(props: FixedWidgetProps, dispatch: Function, mediaQueryType: MediaQueryStrings, shouldFetch: boolean): Flight.Response<any>;
|
|
17
17
|
/**
|
|
18
18
|
* This function wrapper determines which widget item images should be pre-fetched by the LazyImage component.
|
|
19
19
|
* It does this by looking at which images are going to be shown after the users clicks on the "Next"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Flight } from "../../../common/src/react";
|
|
2
2
|
import { Xhr } from "../../../common/src/backbone/interfaces";
|
|
3
3
|
import { ReorderRequest } from "../interfaces";
|
|
4
|
+
import { PlaylistPrivacy } from "../enums/PlaylistPrivacy";
|
|
4
5
|
import { CreateOrUpdatePlaylistRequest, PlaylistCollectionIdentifier } from "../apps/playlists/interfaces";
|
|
5
6
|
export declare const PlaylistRequests: {
|
|
6
7
|
getPlaylist(id: string, success?: (data: any) => void, error?: (data: any) => void): Flight.Request;
|
|
@@ -18,5 +19,7 @@ export declare const PlaylistRequests: {
|
|
|
18
19
|
removePlaylistVideo(playlistId: string, videoId: string, success?: (data: any) => void, error?: (data: any) => void): Flight.Request;
|
|
19
20
|
followPlaylist(playlistId: string, userId: string): Flight.Request;
|
|
20
21
|
unfollowPlaylist(playlistId: string, userId: string): Flight.Request;
|
|
22
|
+
getPlaylistPrivacy(playlistId: string): Flight.Request;
|
|
23
|
+
updatePlaylistPrivacy(playlistId: string, privacy: PlaylistPrivacy, success?: (data: any) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
21
24
|
getMigrationTask(success?: (data: any) => void, error?: (xhr: Xhr) => void): Flight.Request;
|
|
22
25
|
};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { PresentationType } from "../enums/PresentationType";
|
|
3
|
+
import { Presentation } from "../interfaces";
|
|
2
4
|
export declare const PreferenceRequests: {
|
|
5
|
+
/**
|
|
6
|
+
* Presentations
|
|
7
|
+
*/
|
|
8
|
+
currentPresentations(type?: PresentationType): Flight.Request;
|
|
9
|
+
availablePresentations(type?: PresentationType): Flight.Request;
|
|
10
|
+
setPresentation(presentation: Presentation, type: PresentationType, success?: () => void): Flight.Request;
|
|
3
11
|
/**
|
|
4
12
|
* Subjects
|
|
5
13
|
*/
|
|
6
14
|
allSubjectPreferences(): Flight.Request;
|
|
7
15
|
mySubjectPreferences(): Flight.Request;
|
|
8
|
-
followSubjects(subjectIds: string[], success: () => void, always
|
|
9
|
-
unfollowSubjects(subjectIds: string[], success: () => void, always
|
|
16
|
+
followSubjects(subjectIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
17
|
+
unfollowSubjects(subjectIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
10
18
|
/**
|
|
11
19
|
* Levels
|
|
12
20
|
*/
|
|
13
21
|
allLevelPreferences(): Flight.Request;
|
|
14
22
|
myLevelPreferences(): Flight.Request;
|
|
15
|
-
followLevels(levelIds: string[], success: () => void, always
|
|
16
|
-
unfollowLevels(levelIds: string[], success: () => void, always
|
|
23
|
+
followLevels(levelIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
24
|
+
unfollowLevels(levelIds: string[], success: () => void, error?: () => void, always?: () => void): Flight.Request;
|
|
17
25
|
};
|
|
@@ -9,6 +9,7 @@ export * from './SeriesCollection';
|
|
|
9
9
|
export * from './TagCollection';
|
|
10
10
|
export * from './UserCollection';
|
|
11
11
|
export * from './VideoCollection';
|
|
12
|
+
export * from './VideoHistoryCollection';
|
|
12
13
|
export * from './WidgetCollection';
|
|
13
14
|
export * from './PresentationAudienceCollection';
|
|
14
15
|
export * from './ResourceCollection';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseObject, Cover, VideoCollection, User, Thumbnail, Banner, PresentationAudienceCollection } from "./..";
|
|
1
|
+
import { BaseObject, Cover, VideoCollection, User, Thumbnail, Banner, PresentationAudienceCollection, UserCollection } from "./..";
|
|
2
|
+
import { PlaylistPrivacy } from "../../enums/PlaylistPrivacy";
|
|
2
3
|
export interface Playlist extends BaseObject {
|
|
3
4
|
description?: string;
|
|
4
5
|
thumbnail?: Thumbnail;
|
|
@@ -7,4 +8,6 @@ export interface Playlist extends BaseObject {
|
|
|
7
8
|
cover?: Cover;
|
|
8
9
|
banner?: Banner;
|
|
9
10
|
subjectPresentationAudiences?: PresentationAudienceCollection;
|
|
11
|
+
followers?: UserCollection;
|
|
12
|
+
privacy?: PlaylistPrivacy;
|
|
10
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObject, CompanyCollection, PersonCollection, CategoryCollection, Channel, InteractiveCollection, LibraryCollection, Rating, Series, Thumbnail, TagCollection, Season, AudienceCollection, ResourceCollection, LinkCollection, ClipCollection, Glance, HeroBanner } from "./..";
|
|
1
|
+
import { BaseObject, CompanyCollection, PersonCollection, CategoryCollection, Channel, InteractiveCollection, LibraryCollection, Rating, Series, Thumbnail, TagCollection, Season, AudienceCollection, ResourceCollection, LinkCollection, ClipCollection, Glance, HeroBanner, RestrictedObject } from "./..";
|
|
2
2
|
export interface Video extends BaseObject {
|
|
3
3
|
categories?: CategoryCollection;
|
|
4
4
|
channel?: Channel;
|
|
@@ -6,7 +6,7 @@ export interface Video extends BaseObject {
|
|
|
6
6
|
duration?: number;
|
|
7
7
|
interactives?: InteractiveCollection;
|
|
8
8
|
libraries?: LibraryCollection;
|
|
9
|
-
productionYear
|
|
9
|
+
productionYear?: number;
|
|
10
10
|
rating?: Rating;
|
|
11
11
|
series?: Series;
|
|
12
12
|
thumbnail?: Thumbnail;
|
|
@@ -25,4 +25,6 @@ export interface Video extends BaseObject {
|
|
|
25
25
|
isFavourited?: boolean;
|
|
26
26
|
hasSubtitle?: boolean;
|
|
27
27
|
heroBanner?: HeroBanner;
|
|
28
|
+
restrictions?: RestrictedObject[];
|
|
29
|
+
lastProgressPoint?: number;
|
|
28
30
|
}
|
|
@@ -38,7 +38,9 @@ export * from './Organisation';
|
|
|
38
38
|
export * from './TallPoster';
|
|
39
39
|
export * from './Share';
|
|
40
40
|
export * from './Restriction';
|
|
41
|
-
export * from './
|
|
41
|
+
export * from './Video';
|
|
42
42
|
export * from './Following';
|
|
43
43
|
export * from './UserChannel';
|
|
44
44
|
export * from './Group';
|
|
45
|
+
export * from './VideoHistory';
|
|
46
|
+
export * from './EntitySetting';
|
|
@@ -75,6 +75,8 @@ import './apps/user-manager/views/school-teacher-manager/empty-state/school-teac
|
|
|
75
75
|
import './apps/user-manager/views/school-teacher-manager/school-teacher-manager.lang.json';
|
|
76
76
|
import './apps/user-manager/views/student-upload-review/student-upload-review.lang.json';
|
|
77
77
|
import './apps/user-manager/views/teacher-upload-review/teacher-upload-review.lang.json';
|
|
78
|
+
import './apps/watch-history/components/watch-history-video-list/watch-history-video-list.lang.json';
|
|
79
|
+
import './apps/watch-history/views/watch-history/watch-history.lang.json';
|
|
78
80
|
import './shared/components/clips/clips.lang.json';
|
|
79
81
|
import './shared/components/immersive-reader/immersive-reader.lang.json';
|
|
80
82
|
import './shared/components/interactives/interactives.lang.json';
|
|
@@ -123,5 +125,4 @@ import '../../../libs/shared/src/components/widgets/items/subject-widget-item/su
|
|
|
123
125
|
import '../../../libs/shared/src/legacy/components/pagination/pagination.lang.json';
|
|
124
126
|
import '../../../libs/shared/src/utils/shared-utils.lang.json';
|
|
125
127
|
import '../../../libs/shared/src/utils/video-actions/video-actions-helper.lang.json';
|
|
126
|
-
import 'regenerator-runtime/runtime';
|
|
127
128
|
import './styles';
|
|
@@ -15,7 +15,7 @@ export declare class DefaultApplication extends ReactApplication {
|
|
|
15
15
|
get channelName(): string;
|
|
16
16
|
static get router(): typeof DefaultAppRouter;
|
|
17
17
|
share(id: string, params: HashObject): void;
|
|
18
|
-
playVideo(id: string, slug: string): void;
|
|
18
|
+
playVideo(id: string, slug: string, params: HashObject): void;
|
|
19
19
|
playSharedVideo(shortCode: string): void;
|
|
20
20
|
myUploads(params: HashObject): void;
|
|
21
21
|
editVideo(videoId: string): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
+
import { HashObject } from "../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
|
+
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
4
|
+
import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts/teacher-layout/TeacherLayoutView';
|
|
5
|
+
declare class WatchHistoryAppRouter extends Core.AppRouter {
|
|
6
|
+
protected get channelName(): string;
|
|
7
|
+
protected get appRoutes(): HashObject;
|
|
8
|
+
protected get appLinks(): string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class WatchHistoryApplication extends ReactApplication {
|
|
11
|
+
protected layout: TeacherLayoutView;
|
|
12
|
+
get name(): string;
|
|
13
|
+
protected get layoutOptions(): Core.LayoutOptions<TeacherLayoutViewOptions>;
|
|
14
|
+
get channelName(): string;
|
|
15
|
+
static get router(): typeof WatchHistoryAppRouter;
|
|
16
|
+
index(params: HashObject): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VideoHistoryCollection, Video } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface WatchHistoryVideoListProps {
|
|
4
|
+
videoHistory: VideoHistoryCollection;
|
|
5
|
+
videos: Video[];
|
|
6
|
+
setFavourite: (videoId: string, shouldFavourite: boolean, onError?: () => void) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function WatchHistoryVideoList(props: WatchHistoryVideoListProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Flight } from "../../../../../../libs/common/src/react";
|
|
2
|
+
import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
|
|
3
|
+
import { Xhr } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
4
|
+
export declare const VideoHistoryRequests: {
|
|
5
|
+
userVideoHistory(customerId: string, userId: string, cursor?: string, success?: (data: HashObject<any>) => void, error?: (Xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
6
|
+
};
|
|
@@ -10,7 +10,6 @@ export declare const Actions: {
|
|
|
10
10
|
EDIT_VIDEO: string;
|
|
11
11
|
EDIT_UPLOAD: string;
|
|
12
12
|
SHARE: string;
|
|
13
|
-
WATCH_HISTORY: string;
|
|
14
13
|
};
|
|
15
14
|
Playlists: {
|
|
16
15
|
HOME: string;
|
|
@@ -72,4 +71,7 @@ export declare const Actions: {
|
|
|
72
71
|
Settings: {
|
|
73
72
|
HOME: string;
|
|
74
73
|
};
|
|
74
|
+
WatchHistory: {
|
|
75
|
+
HOME: string;
|
|
76
|
+
};
|
|
75
77
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Flight } from "../../../../../libs/common/src/react";
|
|
2
|
+
import { Xhr } from "../../../../../libs/common/src/backbone/interfaces";
|
|
2
3
|
import { Video, UpdateVideoRequest } from "../../../../../libs/shared/src/interfaces";
|
|
3
4
|
export declare const VideoRequests: {
|
|
4
5
|
video(id: string): Flight.Request;
|
|
5
6
|
workspace(id: string, cursor: string): Flight.Request;
|
|
6
7
|
videos(ids: string[], success?: (videos: Video[]) => void): Flight.Request;
|
|
8
|
+
hydratedVideos(ids: string[], success?: (videos: Video[]) => void, error?: (Xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
7
9
|
updateVideo(data: UpdateVideoRequest, success?: () => void): Flight.Request;
|
|
8
10
|
/**
|
|
9
11
|
* This is simply an example to show the prototype for useVideoMixin
|