@clickview/online 0.0.5-dev.0 → 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 +2 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +6 -1
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +2 -1
- 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 +1 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +1 -0
- 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/div-button/DivButton.d.ts +10 -0
- package/dist/libs/shared/src/components/pagination/Pagination.d.ts +28 -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/toggle-switch/ToggleSwitch.d.ts +8 -0
- package/dist/libs/shared/src/components/video-list/VideoItem.d.ts +13 -0
- package/dist/libs/shared/src/components/video-list/VideoList.d.ts +22 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-actions/VideoItemActions.d.ts +7 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-badges/VideoItemBadges.d.ts +7 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-description/UseTruncateText.d.ts +9 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-description/VideoItemDescription.d.ts +8 -0
- package/dist/libs/shared/src/components/video-list/components/video-item-header/VideoItemHeader.d.ts +9 -0
- package/dist/libs/shared/src/context/VideoActionsContext.d.ts +10 -0
- package/dist/libs/shared/src/enums/BulkOnboardingPreferencesState.d.ts +6 -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/FavouriteVideoRequests.d.ts +7 -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/interfaces/models/EntitySetting.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/VideoWithRestrictions.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -1
- package/dist/libs/shared/src/utils/RestrictionHelper.d.ts +5 -0
- package/dist/libs/shared/src/utils/VideoHelper.d.ts +4 -0
- package/dist/online-app.css +22 -10
- 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/playlists/PlaylistApplication.d.ts +36 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistBreadcrumbsComponent.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeaderActionsComponent.d.ts +17 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/index.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/partial-loading/PartialPlaylistHeaderComponent.d.ts +6 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/partial-loading/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/PartialVideoList.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/PlaceHolder.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/RestrictedBadge.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/RestrictionInfo.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/SortableVideoList.d.ts +8 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/SortableVideoListContainer.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/ThumbnailComponent.d.ts +10 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoActionsComponent.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemComponent.d.ts +15 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemPreviewComponent.d.ts +9 -0
- package/dist/projects/online/src/apps/playlists/components/video-list/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/web-player/WebPlayerComponent.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/flight-requests/SubjectRequests.d.ts +4 -0
- package/dist/projects/online/src/apps/playlists/flight-requests/index.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/views/add-to-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/delete-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/edit-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/index.d.ts +10 -0
- package/dist/projects/online/src/apps/playlists/views/left-nav/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/migration-in-progress/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/new-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/play-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/views/playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/playlists/index.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/views/remove-video-from-playlist/index.d.ts +1 -0
- package/dist/projects/online/src/apps/subjects/SubjectApplication.d.ts +2 -2
- 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/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 +3 -0
- package/dist/projects/online/src/shared/hooks/UseVideoMixin.d.ts +2 -0
- package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -0
- package/package.json +3 -3
- package/typings/libs/FutureCoreHelper.d.ts +17 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
+
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
3
|
+
import { OnlineLayoutViewOptions, OnlineLayoutView } from "../../shared/layouts";
|
|
4
|
+
export declare class ExchangeApplication 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
|
+
index(): void;
|
|
11
|
+
addToPlaylist(videoId: string): void;
|
|
12
|
+
private renderSubNav;
|
|
13
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
3
|
+
import { HashObject } from "../../../../../libs/common/src/react/interfaces/HashObject";
|
|
4
|
+
import { OnlineLayoutView, OnlineLayoutViewOptions } from "../../shared/layouts";
|
|
5
|
+
export declare class PlaylistApplication extends Core.Application {
|
|
6
|
+
protected layout: OnlineLayoutView;
|
|
7
|
+
private currentPlaylistId;
|
|
8
|
+
initialize(): void;
|
|
9
|
+
get name(): string;
|
|
10
|
+
static get router(): any;
|
|
11
|
+
get channelName(): string;
|
|
12
|
+
get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
|
|
13
|
+
index(params: HashObject): void;
|
|
14
|
+
playlist(playlistId: string, slug?: string): void;
|
|
15
|
+
newPlaylist(): void;
|
|
16
|
+
editPlaylist(playlistId: string): void;
|
|
17
|
+
deletePlaylist(playlistId: string): void;
|
|
18
|
+
removeVideoFromPlaylist(videoId: string, playlistId: string): void;
|
|
19
|
+
playPlaylist(playlistId: string): void;
|
|
20
|
+
playPlaylistVideo(playlistId: string, videoId?: string): void;
|
|
21
|
+
sharePlaylist(playlistId: string): void;
|
|
22
|
+
sharedPlaylist(shareCode: string): void;
|
|
23
|
+
playSharedPlaylist(shareCode: string): void;
|
|
24
|
+
playSharedPlaylistVideo(shareCode: string, videoId?: string): void;
|
|
25
|
+
accessDenied(): void;
|
|
26
|
+
notFound(): void;
|
|
27
|
+
migrationInProgress(): void;
|
|
28
|
+
private renderLeftNav;
|
|
29
|
+
protected onShowAlert(options?: ObjectHash): void;
|
|
30
|
+
private setCurrentPlaylist;
|
|
31
|
+
private hideLeftNav;
|
|
32
|
+
private getPopupProps;
|
|
33
|
+
private getPlaylistAppLink;
|
|
34
|
+
private getVideoAppLink;
|
|
35
|
+
private getPhrase;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface PlaylistBreadcrumbsComponentProps {
|
|
4
|
+
playlist: Playlist;
|
|
5
|
+
}
|
|
6
|
+
export declare function PlaylistBreadcrumbsComponent(props: PlaylistBreadcrumbsComponentProps): React.ReactElement;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
interface PlaylistHeaderActionsComponentProps {
|
|
5
|
+
playlistId: string;
|
|
6
|
+
playlist: Playlist;
|
|
7
|
+
hasVideos: boolean;
|
|
8
|
+
application: string;
|
|
9
|
+
canEdit: boolean;
|
|
10
|
+
canShare: boolean;
|
|
11
|
+
canFollow: boolean;
|
|
12
|
+
isFollowing: boolean;
|
|
13
|
+
follow: (shouldFollow: boolean) => void;
|
|
14
|
+
playAllAppLink?: Core.AppLink;
|
|
15
|
+
}
|
|
16
|
+
export declare function PlaylistHeaderActionsComponent(props: PlaylistHeaderActionsComponentProps): React.ReactElement;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartialPlaylistHeaderComponent';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Video } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
import { VideoItemComponentProps } from './VideoItemComponent';
|
|
4
|
+
interface VideoListProps extends Omit<VideoItemComponentProps, 'video' | 'idx'> {
|
|
5
|
+
videos: Video[];
|
|
6
|
+
}
|
|
7
|
+
export declare const SortableVideoList: React.ComponentClass<VideoListProps & import("react-sortable-hoc").SortableContainerProps, any>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { VideoListProps } from "../../../../../../../libs/shared/src/components/video-list/VideoList";
|
|
3
|
+
export interface SortableVideoListContainerProps extends VideoListProps {
|
|
4
|
+
playlistId: string;
|
|
5
|
+
onSortComplete: (oldIdx: number, newIdx: number) => void;
|
|
6
|
+
onSortStart?: (index: number) => void;
|
|
7
|
+
isUserSignedIn: boolean;
|
|
8
|
+
canEdit?: boolean;
|
|
9
|
+
showPartialLoading?: boolean;
|
|
10
|
+
fetchRestrictions?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function SortableVideoListContainer(props: SortableVideoListContainerProps): React.ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { Video } from "../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
interface ThumbnailComponentProps {
|
|
5
|
+
video: Video;
|
|
6
|
+
appLink: Core.AppLink;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function ThumbnailComponent(props: ThumbnailComponentProps): React.ReactElement;
|
|
10
|
+
export {};
|
package/dist/projects/online/src/apps/playlists/components/video-list/VideoActionsComponent.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Model } from 'backbone';
|
|
3
|
+
import { PropsWithAnalyticsOptions } from "../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
interface VideoActionsComponentProps {
|
|
5
|
+
video: Model;
|
|
6
|
+
playlistId: string;
|
|
7
|
+
canEdit?: boolean;
|
|
8
|
+
showLoader: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare type PropTypes = PropsWithAnalyticsOptions<VideoActionsComponentProps>;
|
|
11
|
+
export declare function VideoActionsComponent(props: PropTypes): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { Video } from "../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { SharedObject } from "../../../../shared/interfaces";
|
|
5
|
+
export interface VideoItemComponentProps {
|
|
6
|
+
video: Video | SharedObject<Video>;
|
|
7
|
+
playlistId: string;
|
|
8
|
+
idx: number;
|
|
9
|
+
getVideoAppLink: (video: Video) => Core.AppLink;
|
|
10
|
+
isUserSignedIn: boolean;
|
|
11
|
+
canEdit?: boolean;
|
|
12
|
+
setIsSorting?: (isSorting: boolean) => void;
|
|
13
|
+
fetchRestrictions?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function VideoItemComponent(props: VideoItemComponentProps): React.ReactElement;
|
package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemPreviewComponent.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Video } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface VideoItemPreviewComponentProps {
|
|
4
|
+
video: Video;
|
|
5
|
+
previewOpen: boolean;
|
|
6
|
+
setPreviewOpen: (open: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function VideoItemPreviewComponent(props: VideoItemPreviewComponentProps): React.ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SortableVideoListContainer';
|
package/dist/projects/online/src/apps/playlists/components/web-player/WebPlayerComponent.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { AnalyticsOptions } from "../../../../../../../libs/analytics/src/interfaces";
|
|
2
3
|
import { Video } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
4
|
interface WebPlayerComponentProps {
|
|
4
5
|
video: Video;
|
|
6
|
+
analyticsOptions: AnalyticsOptions;
|
|
5
7
|
}
|
|
6
8
|
export declare function WebPlayerComponent(props: WebPlayerComponentProps): React.ReactElement;
|
|
7
9
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AddToPlaylistView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DeletePlaylistView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EditPlaylistView';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './left-nav';
|
|
2
|
+
export * from './migration-in-progress';
|
|
3
|
+
export * from './play-playlist';
|
|
4
|
+
export * from './add-to-playlist';
|
|
5
|
+
export * from './delete-playlist';
|
|
6
|
+
export * from './edit-playlist';
|
|
7
|
+
export * from './new-playlist';
|
|
8
|
+
export * from './playlist';
|
|
9
|
+
export * from './playlists';
|
|
10
|
+
export * from './remove-video-from-playlist/RemoveVideoFromPlaylistView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LeftNavView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MigrationInProgressView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NewPlaylistView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlayPlaylistView';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Video, Playlist, CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { VideoAction } from "../../../../../../../libs/shared/src/utils/video-actions/VideoActionsHelper";
|
|
3
|
+
import { WorkflowPhase } from "../../../../../../../libs/analytics/src/interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* NOTE:
|
|
6
|
+
* This will be wrong if we increase the playlist limit from 100, or
|
|
7
|
+
* stop fetching all 100 videos at once.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getLastUpdatedDate(videos: Video[]): string;
|
|
10
|
+
export declare function getVideoActions(canEdit: boolean): VideoAction[];
|
|
11
|
+
export declare function logSortAction(playlistId: string, videoId: string, workflowPhase: WorkflowPhase): void;
|
|
12
|
+
export declare function canEditPlaylist(playlist: Playlist, user: CurrentUser): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlaylistView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlaylistsView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RemoveVideoFromPlaylistView';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
2
|
import { HashObject } from "../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
|
-
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
4
3
|
import { OnlineLayoutView, OnlineLayoutViewOptions } from "../../shared/layouts";
|
|
5
|
-
export declare class SubjectApplication extends
|
|
4
|
+
export declare class SubjectApplication extends Core.Application {
|
|
6
5
|
protected layout: OnlineLayoutView;
|
|
7
6
|
get name(): string;
|
|
8
7
|
static get router(): any;
|
|
@@ -12,4 +11,5 @@ export declare class SubjectApplication extends ReactApplication {
|
|
|
12
11
|
classificationSeries(classificationId: string, slug?: string, queryParams?: HashObject<string>): void;
|
|
13
12
|
classificationPlaylists(id: string, slug?: string): void;
|
|
14
13
|
preferences(params?: HashObject): void;
|
|
14
|
+
protected onShowAlert(options?: HashObject): void;
|
|
15
15
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Core } from "../../../../../../libs/common/src/backbone";
|
|
2
|
+
import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
|
|
3
|
+
import { Presentation } from "../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { PreferenceStep } from "../views/preferences/BasePreferencesView";
|
|
5
|
+
export declare const OnboardingHelper: {
|
|
6
|
+
buildAppLink(step: PreferenceStep, redirectUrl?: string): Core.AppLink;
|
|
7
|
+
getIsStep(currentStep: PreferenceStep): (steps?: "summary" | "curriculum" | "subjects" | "welcome" | "levels" | "school-level" | PreferenceStep[]) => boolean;
|
|
8
|
+
hasManyPresentationTypes(presentations?: Presentation[]): HashObject<any>;
|
|
9
|
+
getBulkPreferencesState(): {
|
|
10
|
+
subjects: boolean;
|
|
11
|
+
levels: boolean;
|
|
12
|
+
};
|
|
13
|
+
stepIsValid(step: string): step is PreferenceStep;
|
|
14
|
+
};
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { HashObject } from "../../../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
3
|
import { Classification } from "../../../../../../../libs/shared/src/interfaces";
|
|
4
4
|
import { ActionOptions } from "../../../../../../../libs/shared/src/components/actions/Actions";
|
|
5
|
-
export declare function getBannerActions(classification: Classification, onFollow: () => void): ActionOptions[];
|
|
5
|
+
export declare function getBannerActions(classification: Classification, onFollow: () => void, showFollowButtonSpinner: boolean): ActionOptions[];
|
|
6
6
|
interface ClassificationViewProps {
|
|
7
7
|
id: string;
|
|
8
8
|
queryParams?: HashObject;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type PreferenceStep = 'welcome' | 'subjects' | 'levels' | 'summary' | 'school-level' | 'curriculum';
|
|
3
|
+
interface BasePreferencesViewProps {
|
|
4
|
+
step: PreferenceStep;
|
|
5
|
+
redirectUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function BasePreferencesView({ step: currentStep, redirectUrl }: BasePreferencesViewProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare type PreferenceStep = 'subjects' | 'levels' | 'summary';
|
|
2
|
+
export declare type PreferenceStep = 'welcome' | 'subjects' | 'levels' | 'summary' | 'school-level' | 'curriculum';
|
|
3
3
|
interface PreferencesViewProps {
|
|
4
4
|
step: PreferenceStep;
|
|
5
|
-
|
|
5
|
+
redirectUrl: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function PreferencesView({ step: currentStep,
|
|
7
|
+
export declare function PreferencesView({ step: currentStep, redirectUrl }: PreferencesViewProps): JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './BasePreferencesView';
|
|
2
2
|
export * from './subject-preferences/SubjectPreferencesView';
|
|
3
3
|
export * from './level-preferences/LevelPreferencesView';
|
|
4
4
|
export * from './summary/PreferencesSummaryView';
|
|
5
|
+
export * from './subject-presentation/SubjectPresentationSelectorView';
|
|
6
|
+
export * from './curriculum-presentation/CurriculumPresentationSelectorView';
|
|
7
|
+
export * from './welcome/PreferencesWelcomeView';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface LevelPreferencesViewProps {
|
|
3
|
-
|
|
3
|
+
redirectUrl: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function LevelPreferencesView({
|
|
5
|
+
export declare function LevelPreferencesView({ redirectUrl }: LevelPreferencesViewProps): JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface SubjectPreferencesViewProps {
|
|
3
|
-
|
|
3
|
+
redirectUrl: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function SubjectPreferencesView({
|
|
5
|
+
export declare function SubjectPreferencesView({ redirectUrl }: SubjectPreferencesViewProps): JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -26,9 +26,12 @@ import './apps/playlists/views/playlists/playlists.lang.json';
|
|
|
26
26
|
import './apps/playlists/views/remove-video-from-playlist/remove-video-from-playlist.lang.json';
|
|
27
27
|
import './apps/subjects/views/classification-series-list-view/classification-series-list.lang.json';
|
|
28
28
|
import './apps/subjects/views/classification/classifications-view.lang.json';
|
|
29
|
+
import './apps/subjects/views/preferences/curriculum-presentation/curriculum-presentation-selector.lang.json';
|
|
29
30
|
import './apps/subjects/views/preferences/level-preferences/level-preferences.lang.json';
|
|
30
31
|
import './apps/subjects/views/preferences/subject-preferences/subject-preferences.lang.json';
|
|
32
|
+
import './apps/subjects/views/preferences/subject-presentation/subject-presentation-selector.lang.json';
|
|
31
33
|
import './apps/subjects/views/preferences/summary/preferences-summary.lang.json';
|
|
34
|
+
import './apps/subjects/views/preferences/welcome/preferences-welcome.lang.json';
|
|
32
35
|
import './shared/components/video-list/video-list.lang.json';
|
|
33
36
|
import './shared/context/context.lang.json';
|
|
34
37
|
import './shared/errors/not-found/not-found-error.lang.json';
|
|
@@ -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.5-dev.
|
|
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.18-dev.
|
|
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.8-dev.
|
|
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,10 +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
|
+
}
|
|
17
33
|
}
|
|
18
34
|
|
|
19
35
|
declare namespace currentUser {
|
|
20
36
|
declare function hasSubjects(): boolean;
|
|
21
37
|
declare function hasMoviesAndTv(): boolean;
|
|
38
|
+
declare function get(key: string): any;
|
|
22
39
|
}
|
|
23
40
|
}
|