@clickview/online 0.0.4 → 0.0.5-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/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/utils/UrlHelper.d.ts +1 -0
- package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +3 -0
- package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +5 -0
- package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +5 -0
- package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +3 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +5 -1
- 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/preference-item/PreferenceItemStatus.d.ts +10 -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/alert/Alert.d.ts +7 -0
- package/dist/libs/shared/src/components/alert/AlertContent.d.ts +8 -0
- package/dist/libs/shared/src/components/alert/AlertList.d.ts +8 -0
- package/dist/libs/shared/src/components/spinner-button/SpinnerButton.d.ts +1 -0
- package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +2 -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/toggle-switch/ToggleSwitch.d.ts +8 -0
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
- package/dist/libs/shared/src/enums/BulkOnboardingPreferencesState.d.ts +6 -0
- 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/flight-requests/SettingRequests.d.ts +7 -0
- 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/libs/shared/src/utils/RestrictionHelper.d.ts +2 -2
- package/dist/online-app.css +32 -16
- package/dist/online-app.css.map +1 -0
- package/dist/online-app.js +3 -3
- package/dist/online-app.js.map +1 -0
- package/dist/projects/online/src/apps/exchange/ExchangeApplication.d.ts +13 -0
- package/dist/projects/online/src/apps/exchange/components/exchange-sub-nav/ExchangeSubNav.d.ts +2 -0
- package/dist/projects/online/src/apps/exchange/views/exchange/ExchangeView.d.ts +2 -0
- package/dist/projects/online/src/apps/libraries/LibrariesApplication.d.ts +11 -0
- package/dist/projects/online/src/apps/libraries/components/libraries-list/LibrariesList.d.ts +7 -0
- package/dist/projects/online/src/apps/libraries/components/libraries-list/partial-loading/PartialLibrariesList.d.ts +2 -0
- package/dist/projects/online/src/apps/libraries/components/library-item/LibraryItem.d.ts +7 -0
- package/dist/projects/online/src/apps/libraries/flight-requests/LibrariesRequests.d.ts +7 -0
- package/dist/projects/online/src/apps/libraries/utils/LibraryHelper.d.ts +9 -0
- package/dist/projects/online/src/apps/libraries/views/libraries/LibrariesView.d.ts +2 -0
- package/dist/projects/online/src/apps/movies-and-tv/MoviesAndTvApplication.d.ts +12 -0
- package/dist/projects/online/src/apps/movies-and-tv/views/movies-and-tv/MoviesAndTvView.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/OnlinePlaylistsApplication.d.ts +32 -0
- package/dist/projects/online/src/apps/playlists/components/index.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/components/play-playlist/PlayPlaylist.d.ts +3 -4
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PartialPlaylistHeader.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts +6 -13
- package/dist/projects/online/src/apps/playlists/components/share-playlist/SharePlaylist.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/web-player/WebPlayerComponent.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/views/play-playlist/PlayPlaylistView.d.ts +5 -6
- package/dist/projects/online/src/apps/playlists/views/playlist/PlaylistView.d.ts +3 -12
- package/dist/projects/online/src/apps/subjects/SubjectApplication.d.ts +2 -2
- package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +3 -3
- package/dist/projects/online/src/apps/subjects/utils/OnboardingHelper.d.ts +14 -0
- package/dist/projects/online/src/apps/subjects/views/classification/ClassificationView.d.ts +1 -1
- package/dist/projects/online/src/apps/subjects/views/classification-playlist/ClassificationPlaylistView.d.ts +1 -4
- package/dist/projects/online/src/apps/subjects/views/classification-playlist/components/PartialPlaylistHeader.d.ts +2 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/BasePreferencesView.d.ts +8 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/PreferencesView.d.ts +3 -3
- package/dist/projects/online/src/apps/subjects/views/preferences/curriculum-presentation/CurriculumPresentationSelectorView.d.ts +6 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/index.d.ts +4 -1
- package/dist/projects/online/src/apps/subjects/views/preferences/level-preferences/LevelPreferencesView.d.ts +2 -2
- package/dist/projects/online/src/apps/subjects/views/preferences/subject-preferences/SubjectPreferencesView.d.ts +2 -2
- package/dist/projects/online/src/apps/subjects/views/preferences/subject-presentation/SubjectPresentationSelectorView.d.ts +6 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/summary/PreferencesSummaryView.d.ts +1 -2
- package/dist/projects/online/src/apps/subjects/views/preferences/welcome/PreferencesWelcomeView.d.ts +6 -0
- package/dist/projects/online/src/index.d.ts +11 -3
- package/dist/projects/online/src/shared/components/info-banner/InfoBanner.d.ts +2 -0
- package/dist/projects/online/src/shared/components/video-list/PartialVideoList.d.ts +2 -0
- package/dist/projects/online/src/shared/components/video-list/PlaceHolder.d.ts +2 -0
- package/dist/projects/online/src/shared/components/video-list/RestrictedBadge.d.ts +7 -0
- package/dist/projects/online/src/shared/components/video-list/RestrictionInfo.d.ts +7 -0
- package/dist/projects/online/src/shared/components/video-list/SortableVideoList.d.ts +7 -0
- package/dist/projects/online/src/shared/components/video-list/SortableVideoListContainer.d.ts +11 -0
- package/dist/projects/online/src/shared/components/video-list/ThumbnailComponent.d.ts +10 -0
- package/dist/projects/online/src/shared/components/video-list/VideoActionsComponent.d.ts +12 -0
- package/dist/projects/online/src/shared/components/video-list/VideoItemComponent.d.ts +15 -0
- package/dist/projects/online/src/shared/components/video-list/VideoItemPreviewComponent.d.ts +9 -0
- package/dist/projects/online/src/shared/components/video-list/VideoList.d.ts +8 -0
- package/dist/projects/online/src/shared/constants/Actions.d.ts +22 -4
- package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +2 -0
- package/dist/projects/online/src/shared/hooks/UseMixinVideoRestrictions.d.ts +14 -0
- package/dist/projects/online/src/shared/hooks/index.d.ts +0 -1
- package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -0
- package/package.json +3 -3
- package/typings/libs/FutureCoreHelper.d.ts +22 -0
|
@@ -15,9 +15,7 @@ export declare const Actions: {
|
|
|
15
15
|
SHARE_PLAYLIST: string;
|
|
16
16
|
ADD_TO_PLAYLIST: string;
|
|
17
17
|
REMOVE_VIDEO_FROM_PLAYLIST: string;
|
|
18
|
-
PLAY_PLAYLIST: string;
|
|
19
18
|
PLAY_PLAYLIST_VIDEO: string;
|
|
20
|
-
PLAY_SHARED_PLAYLIST: string;
|
|
21
19
|
PLAY_SHARED_PLAYLIST_VIDEO: string;
|
|
22
20
|
ACCESS_DENIED: string;
|
|
23
21
|
NOT_FOUND: string;
|
|
@@ -35,13 +33,15 @@ export declare const Actions: {
|
|
|
35
33
|
SHARE: string;
|
|
36
34
|
};
|
|
37
35
|
SubjectPlaylists: {
|
|
38
|
-
PLAY_CLASSIFICATION_PLAYLIST: string;
|
|
39
|
-
PLAY_CLASSIFICATION_PLAYLIST_VIDEO: string;
|
|
40
36
|
CLASSIFICATION: string;
|
|
37
|
+
CLASSIFICATION_PLAYLIST: string;
|
|
38
|
+
PLAY_CLASSIFICATION_PLAYLIST_VIDEO: string;
|
|
39
|
+
SHARE_PLAYLIST: string;
|
|
41
40
|
};
|
|
42
41
|
ContentUpdates: {
|
|
43
42
|
CONTENT_UPDATES: string;
|
|
44
43
|
CLASSIFICATION_UPDATE: string;
|
|
44
|
+
CLASSIFICATION: string;
|
|
45
45
|
};
|
|
46
46
|
Dashboard: {
|
|
47
47
|
HOME: string;
|
|
@@ -55,5 +55,23 @@ export declare const Actions: {
|
|
|
55
55
|
CONTENT_UPDATES: string;
|
|
56
56
|
USER_CHANNELS: string;
|
|
57
57
|
USER_CHANNEL: string;
|
|
58
|
+
LATEST_RELEASES: string;
|
|
59
|
+
};
|
|
60
|
+
MoviesAndTv: {
|
|
61
|
+
HOME: string;
|
|
62
|
+
WIDGET: string;
|
|
63
|
+
VIDEO: string;
|
|
64
|
+
SERIES: string;
|
|
65
|
+
ADD_TO_PLAYLIST: string;
|
|
66
|
+
};
|
|
67
|
+
Libraries: {
|
|
68
|
+
HOME: string;
|
|
69
|
+
LIBRARY: string;
|
|
70
|
+
CONTENT_UPDATES: string;
|
|
71
|
+
LATEST_RELEASES: string;
|
|
72
|
+
SERIES: string;
|
|
73
|
+
VIDEO: string;
|
|
74
|
+
INTERACTVIES: string;
|
|
75
|
+
MOST_RECENT: string;
|
|
58
76
|
};
|
|
59
77
|
};
|
|
@@ -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 {};
|
|
@@ -16,6 +16,7 @@ export declare abstract class OnlineLayoutView extends ReactLayoutView {
|
|
|
16
16
|
get title(): boolean;
|
|
17
17
|
get name(): string;
|
|
18
18
|
get template(): string;
|
|
19
|
+
get className(): string;
|
|
19
20
|
regions(): ObjectHash;
|
|
20
21
|
static getCacheKey(): string;
|
|
21
22
|
private getChildComponents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/online",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5-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.
|
|
23
|
+
"@clickview/tooling": "0.0.18-dev.3",
|
|
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.
|
|
30
|
+
"@clickview/styles": "1.0.8-dev.3",
|
|
31
31
|
"yup": "0.27.0"
|
|
32
32
|
},
|
|
33
33
|
"babel": {
|
|
@@ -7,6 +7,16 @@ declare namespace ClickView {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
declare namespace currentUser {
|
|
11
|
+
declare function hasCompletedOnboarding(): boolean;
|
|
12
|
+
declare function completeOnboarding(): void;
|
|
13
|
+
declare function mustCompleteOnboarding(): boolean;
|
|
14
|
+
declare function getBulkOnboardingPreferencesState(): import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState;
|
|
15
|
+
declare function updateBulkOnboardingPreferencesState(value: import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState): void;
|
|
16
|
+
declare function isAdmin(): boolean;
|
|
17
|
+
declare function isStaff(): boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
10
20
|
declare namespace Data {
|
|
11
21
|
declare namespace Config {
|
|
12
22
|
declare const env: string;
|
|
@@ -14,5 +24,17 @@ declare namespace ClickView {
|
|
|
14
24
|
declare const code: string;
|
|
15
25
|
}
|
|
16
26
|
}
|
|
27
|
+
|
|
28
|
+
declare namespace User {
|
|
29
|
+
declare namespace presentation {
|
|
30
|
+
declare const id: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare namespace currentUser {
|
|
36
|
+
declare function hasSubjects(): boolean;
|
|
37
|
+
declare function hasMoviesAndTv(): boolean;
|
|
38
|
+
declare function get(key: string): any;
|
|
17
39
|
}
|
|
18
40
|
}
|