@clickview/online 0.0.5-dev.1 → 0.0.5-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.
- package/dist/en.json +1 -1
- package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +4 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +1 -1
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/content-updates/interfaces/ClassificationVideosGrouping.d.ts +3 -2
- package/dist/libs/shared/src/apps/content-updates/interfaces/index.d.ts +0 -1
- package/dist/libs/shared/src/apps/playlists/components/empty-state/EmptyVideoList.d.ts +3 -0
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistItem.d.ts +8 -3
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistList.d.ts +9 -3
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistOwnerAvatar.d.ts +9 -0
- package/dist/libs/shared/src/apps/playlists/components/sort-select/PlaylistSortSelect.d.ts +9 -0
- package/dist/libs/shared/src/apps/playlists/enums/PlaylistSortType.d.ts +4 -2
- package/dist/libs/shared/src/apps/playlists/enums/PlaylistType.d.ts +5 -0
- package/dist/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.d.ts +4 -1
- package/dist/libs/shared/src/apps/playlists/utils/PlaylistSortHelper.d.ts +0 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/index.d.ts +1 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/nav/PreferencesNav.d.ts +12 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItemStatus.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/apps/subjects/interfaces/ClassificationPreference.d.ts +0 -1
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +4 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +4 -0
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +4 -0
- package/dist/libs/shared/src/components/avatar/Avatar.d.ts +8 -0
- package/dist/libs/shared/src/components/clickview-avatar/ClickViewAvatar.d.ts +2 -0
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +10 -0
- package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +7 -0
- package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +7 -0
- package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +16 -0
- package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +20 -0
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +4 -0
- package/dist/libs/shared/src/components/popup/Popup.d.ts +16 -0
- package/dist/libs/shared/src/components/popup/PopupLoadingSpinner.d.ts +2 -0
- package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +2 -1
- package/dist/libs/shared/src/components/svgs/clickview-logo/ClickViewLogo.d.ts +1 -0
- package/dist/libs/shared/src/components/toggle-switch/ToggleSwitch.d.ts +1 -0
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +4 -0
- package/dist/libs/shared/src/constants/WithStatements.d.ts +5 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +3 -3
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +2 -2
- package/dist/libs/shared/src/flight-requests/SettingRequests.d.ts +1 -1
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +2 -0
- package/dist/libs/shared/src/utils/FormHelper.d.ts +4 -0
- package/dist/libs/shared/src/utils/RegionHelper.d.ts +4 -0
- package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
- package/dist/online-app.css +35 -11
- package/dist/online-app.css.map +1 -1
- package/dist/online-app.js +3 -3
- package/dist/online-app.js.map +1 -1
- package/dist/projects/online/src/apps/dashboard/components/onboarding-nag/OnboardingNag.d.ts +8 -0
- package/dist/projects/online/src/apps/dashboard/components/onboarding-nag-item/OnboardingNagItem.d.ts +10 -0
- package/dist/projects/online/src/apps/dashboard/components/onboarding-progress/OnboardingProgress.d.ts +6 -0
- package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +5 -2
- package/dist/projects/online/src/apps/default/views/verify-email/VerifyEmailValidation.d.ts +3 -0
- package/dist/projects/online/src/apps/default/views/verify-email/VerifyEmailView.d.ts +3 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/LeftNav.d.ts +13 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/LeftNavItem.d.ts +0 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/LevNavPlaylistOwnerIndicator.d.ts +8 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-item/LeftNavItem.d.ts +10 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-playlist-owner-indicator/LevNavPlaylistOwnerIndicator.d.ts +8 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/partial-loading/PartialLeftNav.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPartialPlaylistList.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistItem.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistList.d.ts +7 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts +2 -3
- package/dist/projects/online/src/apps/playlists/components/playlist-list-header/PartialPlaylistListHeader.d.ts +2 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-list-header/PlaylistListHeader.d.ts +12 -0
- package/dist/projects/online/src/apps/playlists/views/playlists/PlaylistsView.d.ts +0 -2
- package/dist/projects/online/src/apps/subjects/utils/OnboardingHelper.d.ts +8 -2
- package/dist/projects/online/src/index.d.ts +13 -5
- package/dist/projects/online/src/shared/components/index.d.ts +0 -1
- package/dist/projects/online/src/shared/constants/Actions.d.ts +17 -0
- package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
- package/dist/projects/online/src/shared/constants/ViewModelKeys.d.ts +3 -0
- package/dist/projects/online/src/shared/identifiers/index.d.ts +0 -1
- package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +8 -6
- package/package.json +3 -3
- package/typings/libs/FutureCoreHelper.d.ts +6 -0
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-item/SubjectPreferenceItemStatus.d.ts +0 -10
- package/dist/libs/shared/src/components/pagination/Pagination.d.ts +0 -28
- package/dist/libs/shared/src/components/video-list/VideoItem.d.ts +0 -13
- package/dist/libs/shared/src/components/video-list/VideoList.d.ts +0 -22
- package/dist/libs/shared/src/components/video-list/components/video-item-actions/VideoItemActions.d.ts +0 -7
- package/dist/libs/shared/src/components/video-list/components/video-item-badges/VideoItemBadges.d.ts +0 -7
- package/dist/libs/shared/src/components/video-list/components/video-item-description/UseTruncateText.d.ts +0 -9
- package/dist/libs/shared/src/components/video-list/components/video-item-description/VideoItemDescription.d.ts +0 -8
- package/dist/libs/shared/src/components/video-list/components/video-item-header/VideoItemHeader.d.ts +0 -9
- package/dist/libs/shared/src/context/VideoActionsContext.d.ts +0 -10
- package/dist/libs/shared/src/flight-requests/FavouriteVideoRequests.d.ts +0 -7
- 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/libs/shared/src/utils/VideoHelper.d.ts +0 -4
- package/dist/projects/online/src/apps/playlists/PlaylistApplication.d.ts +0 -36
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistBreadcrumbsComponent.d.ts +0 -7
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeaderActionsComponent.d.ts +0 -17
- package/dist/projects/online/src/apps/playlists/components/playlist-header/index.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/components/playlist-header/partial-loading/PartialPlaylistHeaderComponent.d.ts +0 -6
- package/dist/projects/online/src/apps/playlists/components/playlist-header/partial-loading/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/components/video-list/PartialVideoList.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/components/video-list/PlaceHolder.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/components/video-list/RestrictedBadge.d.ts +0 -7
- package/dist/projects/online/src/apps/playlists/components/video-list/RestrictionInfo.d.ts +0 -7
- package/dist/projects/online/src/apps/playlists/components/video-list/SortableVideoList.d.ts +0 -8
- package/dist/projects/online/src/apps/playlists/components/video-list/SortableVideoListContainer.d.ts +0 -12
- package/dist/projects/online/src/apps/playlists/components/video-list/ThumbnailComponent.d.ts +0 -10
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoActionsComponent.d.ts +0 -12
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemComponent.d.ts +0 -15
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoItemPreviewComponent.d.ts +0 -9
- package/dist/projects/online/src/apps/playlists/components/video-list/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/flight-requests/SubjectRequests.d.ts +0 -4
- package/dist/projects/online/src/apps/playlists/flight-requests/index.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/views/add-to-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/delete-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/edit-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/index.d.ts +0 -10
- package/dist/projects/online/src/apps/playlists/views/left-nav/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/migration-in-progress/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/new-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/play-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +0 -12
- package/dist/projects/online/src/apps/playlists/views/playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/playlists/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/remove-video-from-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/subjects/views/preferences/PreferencesView.d.ts +0 -8
- package/dist/projects/online/src/shared/components/info-banner/InfoBanner.d.ts +0 -2
- package/dist/projects/online/src/shared/hooks/UseVideoMixin.d.ts +0 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
interface OnboardingNagItemProps {
|
|
4
|
+
name: string;
|
|
5
|
+
complete: boolean;
|
|
6
|
+
svgName?: string;
|
|
7
|
+
appLink?: Core.AppLink;
|
|
8
|
+
}
|
|
9
|
+
export declare function OnboardingNagItem(props: OnboardingNagItemProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
3
|
+
import { OnlineLayoutViewOptions, OnlineLayoutView } from "../../shared/layouts";
|
|
4
|
+
export declare class DefaultApplication extends ReactApplication {
|
|
5
|
+
protected layout: OnlineLayoutView;
|
|
4
6
|
get name(): string;
|
|
5
7
|
static get router(): any;
|
|
6
8
|
get channelName(): string;
|
|
7
9
|
get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
|
|
10
|
+
verifyEmail(): void;
|
|
8
11
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CurrentUser, Playlist } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface LeftNavProps {
|
|
4
|
+
playlists: Playlist[];
|
|
5
|
+
currentUser: CurrentUser;
|
|
6
|
+
hasMorePlaylists: boolean;
|
|
7
|
+
fetchMorePlaylists: () => void;
|
|
8
|
+
isFetching: boolean;
|
|
9
|
+
canFollow: boolean;
|
|
10
|
+
selectedPlaylistId?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function LeftNavWrapper(props: LeftNavProps): React.ReactElement;
|
|
13
|
+
export { LeftNavWrapper as LeftNav };
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Playlist, CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface LeftNavPlaylistOwnerIndicatorProps {
|
|
4
|
+
playlist: Playlist;
|
|
5
|
+
currentUser: CurrentUser;
|
|
6
|
+
}
|
|
7
|
+
export declare function LeftNavPlaylistOwnerIndicator(props: LeftNavPlaylistOwnerIndicatorProps): JSX.Element;
|
|
8
|
+
export {};
|
package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-item/LeftNavItem.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CurrentUser, Playlist } from "../../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface LeftNavItemProps {
|
|
4
|
+
playlist: Playlist;
|
|
5
|
+
currentUser: CurrentUser;
|
|
6
|
+
canFollow: boolean;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function LeftNavItem(props: LeftNavItemProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Playlist, CurrentUser } from "../../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface LeftNavPlaylistOwnerIndicatorProps {
|
|
4
|
+
playlist: Playlist;
|
|
5
|
+
currentUser: CurrentUser;
|
|
6
|
+
}
|
|
7
|
+
export declare function LeftNavPlaylistOwnerIndicator(props: LeftNavPlaylistOwnerIndicatorProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface LegacyPlaylistItemProps {
|
|
4
|
+
playlist: Playlist;
|
|
5
|
+
}
|
|
6
|
+
export declare function LegacyPlaylistItem(props: LegacyPlaylistItemProps): React.ReactElement;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface PlaylistListProps {
|
|
4
|
+
playlists: Playlist[];
|
|
5
|
+
}
|
|
6
|
+
export declare function LegacyPlaylistList(props: PlaylistListProps): React.ReactElement;
|
|
7
|
+
export {};
|
package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts
CHANGED
|
@@ -5,10 +5,9 @@ interface PlaylistHeaderProps {
|
|
|
5
5
|
playlist: Playlist;
|
|
6
6
|
videoCount: number;
|
|
7
7
|
isFollowing: boolean;
|
|
8
|
-
follow: (shouldFollow: boolean) => void;
|
|
8
|
+
follow: (shouldFollow: boolean, onError: () => void) => void;
|
|
9
9
|
imageCdnUrl: string;
|
|
10
|
-
|
|
11
|
-
shareAppLink?: Core.AppLink;
|
|
10
|
+
shareAppLink: Core.AppLink;
|
|
12
11
|
canEdit?: boolean;
|
|
13
12
|
canFollow?: boolean;
|
|
14
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { PlaylistSortType } from "../../../../../../../libs/shared/src/apps/playlists/enums/PlaylistSortType";
|
|
5
|
+
export interface PlaylistListHeaderProps {
|
|
6
|
+
user: CurrentUser;
|
|
7
|
+
imageCdnUrl: string;
|
|
8
|
+
sortType: PlaylistSortType;
|
|
9
|
+
getSortAppLink: (sort: PlaylistSortType) => Core.AppLink;
|
|
10
|
+
canFollow: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function PlaylistListHeader(props: PlaylistListHeaderProps): React.ReactElement;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
2
|
import { PlaylistSortType } from "../../../../../../../libs/shared/src/apps/playlists/enums/PlaylistSortType";
|
|
4
3
|
interface PlaylistsViewProps {
|
|
5
4
|
sort: PlaylistSortType;
|
|
6
|
-
getSortAppLink: (sort: PlaylistSortType) => Core.AppLink;
|
|
7
5
|
}
|
|
8
6
|
export declare function PlaylistsView(props: PlaylistsViewProps): React.ReactElement;
|
|
9
7
|
export {};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Core } from "../../../../../../libs/common/src/backbone";
|
|
2
3
|
import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
|
|
3
4
|
import { Presentation } from "../../../../../../libs/shared/src/interfaces";
|
|
5
|
+
import { BulkOnboardingPreferencesState } from "../../../../../../libs/shared/src/enums/BulkOnboardingPreferencesState";
|
|
4
6
|
import { PreferenceStep } from "../views/preferences/BasePreferencesView";
|
|
5
7
|
export declare const OnboardingHelper: {
|
|
6
8
|
buildAppLink(step: PreferenceStep, redirectUrl?: string): Core.AppLink;
|
|
7
|
-
getIsStep(currentStep: PreferenceStep): (steps?: "summary" | "curriculum" | "
|
|
9
|
+
getIsStep(currentStep: PreferenceStep): (steps?: "summary" | "curriculum" | "levels" | "subjects" | "welcome" | "school-level" | PreferenceStep[]) => boolean;
|
|
8
10
|
hasManyPresentationTypes(presentations?: Presentation[]): HashObject<any>;
|
|
9
11
|
getBulkPreferencesState(): {
|
|
10
|
-
subjects: boolean;
|
|
11
12
|
levels: boolean;
|
|
13
|
+
subjects: boolean;
|
|
12
14
|
};
|
|
13
15
|
stepIsValid(step: string): step is PreferenceStep;
|
|
16
|
+
hasBulkSelectedLevels(bulkState: BulkOnboardingPreferencesState): boolean;
|
|
17
|
+
hasBulkSelectedSubjects(bulkState: BulkOnboardingPreferencesState): boolean;
|
|
18
|
+
getBackgroundImage(step: PreferenceStep): string;
|
|
19
|
+
getComponent(step: PreferenceStep): (...props: any) => JSX.Element;
|
|
14
20
|
};
|
|
@@ -3,16 +3,20 @@ import './apps/content-updates/components/classification-update-breadcrumbs/clas
|
|
|
3
3
|
import './apps/content-updates/components/whats-new-breadcrumbs/online-whats-new-breadcrumbs.lang.json';
|
|
4
4
|
import './apps/content-updates/views/content-updates/content-updates.lang.json';
|
|
5
5
|
import './apps/dashboard/components/hero-widget/hero-widget.lang.json';
|
|
6
|
+
import './apps/dashboard/components/onboarding-nag/onboarding-nag.lang.json';
|
|
6
7
|
import './apps/dashboard/views/dashboard/dashboard.lang.json';
|
|
7
8
|
import './apps/dashboard/views/error/error.lang.json';
|
|
9
|
+
import './apps/default/views/verify-email/verify-email.lang.json';
|
|
10
|
+
import './apps/exchange/components/exchange-sub-nav/exchange-sub-nav.lang.json';
|
|
11
|
+
import './apps/exchange/views/exchange/exchange.lang.json';
|
|
8
12
|
import './apps/libraries/views/libraries/libraries.lang.json';
|
|
9
13
|
import './apps/movies-and-tv/views/movies-and-tv/movies-and-tv.lang.json';
|
|
14
|
+
import './apps/playlists/components/left-nav/left-nav-item/left-nav-item.lang.json';
|
|
10
15
|
import './apps/playlists/components/left-nav/left-nav.lang.json';
|
|
11
|
-
import './apps/playlists/components/
|
|
12
|
-
import './apps/playlists/components/playlist-actions/playlist-actions.lang.json';
|
|
16
|
+
import './apps/playlists/components/legacy-playlist-list/legacy-playlist-item.lang.json';
|
|
13
17
|
import './apps/playlists/components/playlist-details/playlist-details.lang.json';
|
|
14
18
|
import './apps/playlists/components/playlist-header/playlist-header.lang.json';
|
|
15
|
-
import './apps/playlists/components/playlist-list/playlist-list.lang.json';
|
|
19
|
+
import './apps/playlists/components/playlist-list-header/playlist-list-header.lang.json';
|
|
16
20
|
import './apps/playlists/components/video-not-found/video-not-found.lang.json';
|
|
17
21
|
import './apps/playlists/playlist-application.lang.json';
|
|
18
22
|
import './apps/playlists/services/services.lang.json';
|
|
@@ -22,6 +26,7 @@ import './apps/playlists/views/delete-playlist/delete-playlist.lang.json';
|
|
|
22
26
|
import './apps/playlists/views/edit-playlist/edit-playlist.lang.json';
|
|
23
27
|
import './apps/playlists/views/migration-in-progress/migration-in-progress.lang.json';
|
|
24
28
|
import './apps/playlists/views/new-playlist/new-playlist.lang.json';
|
|
29
|
+
import './apps/playlists/views/playlist/playlist-view.lang.json';
|
|
25
30
|
import './apps/playlists/views/playlists/playlists.lang.json';
|
|
26
31
|
import './apps/playlists/views/remove-video-from-playlist/remove-video-from-playlist.lang.json';
|
|
27
32
|
import './apps/subjects/views/classification-series-list-view/classification-series-list.lang.json';
|
|
@@ -44,6 +49,7 @@ import '../../../libs/shared/src/apps/notifications/views/notifications/notifica
|
|
|
44
49
|
import '../../../libs/shared/src/apps/notifications/views/popover/notifications-popover.lang.json';
|
|
45
50
|
import '../../../libs/shared/src/apps/playlists/components/empty-state/empty-state.lang.json';
|
|
46
51
|
import '../../../libs/shared/src/apps/playlists/components/playlist-list/playlist-item.lang.json';
|
|
52
|
+
import '../../../libs/shared/src/apps/playlists/components/sort-select/playlist-sort-select.lang.json';
|
|
47
53
|
import '../../../libs/shared/src/apps/playlists/hooks/playlists-hooks.lang.json';
|
|
48
54
|
import '../../../libs/shared/src/apps/playlists/validation/playlists-validation.lang.json';
|
|
49
55
|
import '../../../libs/shared/src/apps/search/components/search-tips/search-tips.lang.json';
|
|
@@ -72,16 +78,17 @@ export * from './shared/constants/Layouts';
|
|
|
72
78
|
export * from './shared/constants/Services';
|
|
73
79
|
export * from './shared/services/OnlineContextService';
|
|
74
80
|
export * from './shared/layouts/OnlineLayoutView';
|
|
81
|
+
import { AlertView } from './shared/views/alert/AlertView';
|
|
75
82
|
export * from './apps/default/OnlineDefaultApplication';
|
|
76
83
|
export * from './apps/playlists/services';
|
|
77
84
|
export * from './apps/playlists/OnlinePlaylistsApplication';
|
|
78
|
-
export * from './apps/playlists/layouts/OnlinePlaylistsLayoutView';
|
|
79
85
|
export * from './apps/subjects/SubjectApplication';
|
|
80
86
|
export * from './apps/subjects/SubjectPlaylistsApplication';
|
|
81
87
|
export * from './apps/content-updates/ContentUpdatesApplication';
|
|
82
88
|
export * from './apps/dashboard/OnlineDashboardApplication';
|
|
83
89
|
export * from './apps/movies-and-tv/MoviesAndTvApplication';
|
|
84
90
|
export * from './apps/libraries/LibrariesApplication';
|
|
91
|
+
export * from './apps/exchange/ExchangeApplication';
|
|
85
92
|
import { Core } from "../../../libs/common/src/backbone";
|
|
86
93
|
import { InstanceManager } from "../../../libs/common/src/backbone/services/InstanceManager";
|
|
87
94
|
import { AlertType, BaseAlertService } from "../../../libs/common/src/backbone/services/BaseAlertService";
|
|
@@ -106,6 +113,7 @@ import { AppOptionsService } from "../../../libs/shared/src/services/AppOptionsS
|
|
|
106
113
|
import { AlertError } from "../../../libs/shared/src/errors/primitives/AlertError";
|
|
107
114
|
import { DialogError } from "../../../libs/shared/src/errors/primitives/DialogError";
|
|
108
115
|
import { ErrorPageError } from "../../../libs/shared/src/errors/primitives/ErrorPageError";
|
|
116
|
+
import { AlertList } from "../../../libs/shared/src/components/alert/AlertList";
|
|
109
117
|
import { AnalyticsService } from "../../../libs/analytics/src/AnalyticsService";
|
|
110
118
|
import { DebuggerClient } from "../../../libs/analytics/src/clients/DebuggerClient";
|
|
111
119
|
import { EventTransport } from "../../../libs/analytics/src/transport/EventTransport";
|
|
@@ -114,4 +122,4 @@ import { CollectionApiClientHelper } from "../../../libs/analytics/src/utils/Col
|
|
|
114
122
|
import { CountryRegionMapping } from "../../../libs/analytics/src/constants/CountryRegionMapping";
|
|
115
123
|
import { CoreContextEnricher } from "../../../libs/analytics/src/enrichers/CoreContextEnricher";
|
|
116
124
|
import { UserDataEnricher } from "../../../libs/analytics/src/enrichers/UserDataEnricher";
|
|
117
|
-
export { Core, InstanceManager, BaseAlertService, AlertType, FifoMemoryCache, AjaxDataProvider, ConcurrencyHelper, UrlHelper, DevError, NotImplementedError, CommonServices, LanguageService, Flight, ViewModelReducer, ScrollService, CacheDurations, SharedDataServices, ConfigDataService, UserDataService, LanguageDataService, ImageUrlService, AnalyticsService, DebuggerClient, EventTransport, CollectionApiClient, CollectionApiClientHelper, CountryRegionMapping, CoreContextEnricher, UserDataEnricher, AppOptionsService, AlertError, DialogError, ErrorPageError };
|
|
125
|
+
export { Core, InstanceManager, BaseAlertService, AlertType, FifoMemoryCache, AjaxDataProvider, ConcurrencyHelper, UrlHelper, DevError, NotImplementedError, CommonServices, LanguageService, Flight, ViewModelReducer, ScrollService, CacheDurations, SharedDataServices, ConfigDataService, UserDataService, LanguageDataService, ImageUrlService, AnalyticsService, DebuggerClient, EventTransport, CollectionApiClient, CollectionApiClientHelper, CountryRegionMapping, CoreContextEnricher, UserDataEnricher, AppOptionsService, AlertError, DialogError, ErrorPageError, AlertList, AlertView };
|
|
@@ -4,6 +4,7 @@ export declare const Actions: {
|
|
|
4
4
|
VIDEO: string;
|
|
5
5
|
SERIES: string;
|
|
6
6
|
CONTENT_UPDATES: string;
|
|
7
|
+
VERIFY_EMAIL: string;
|
|
7
8
|
};
|
|
8
9
|
Playlists: {
|
|
9
10
|
HOME: string;
|
|
@@ -74,4 +75,20 @@ export declare const Actions: {
|
|
|
74
75
|
INTERACTVIES: string;
|
|
75
76
|
MOST_RECENT: string;
|
|
76
77
|
};
|
|
78
|
+
Exchange: {
|
|
79
|
+
HOME: string;
|
|
80
|
+
CATEGORIES: string;
|
|
81
|
+
MOST_RECENT: string;
|
|
82
|
+
FEATURED_CHANNELS: string;
|
|
83
|
+
INTERACTIVES: string;
|
|
84
|
+
TV_GUIDE: string;
|
|
85
|
+
FEATURED_CHANNEL: string;
|
|
86
|
+
CONTRIBUTE: string;
|
|
87
|
+
VIDEO: string;
|
|
88
|
+
SERIES: string;
|
|
89
|
+
ADD_TO_PLAYLIST: string;
|
|
90
|
+
WIDGET: string;
|
|
91
|
+
CLICKVIEW_TRAINING: string;
|
|
92
|
+
BCC_RES: string;
|
|
93
|
+
};
|
|
77
94
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ObjectHash } from 'backbone';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export interface OnlineLayoutViewOptions extends Core.LayoutViewOptions {
|
|
3
|
+
import { ReactLayoutView, ReactLayoutViewOptions } from "../../../../../libs/common/src/react/core/ReactLayoutView";
|
|
4
|
+
export interface OnlineLayoutViewOptions extends ReactLayoutViewOptions {
|
|
6
5
|
provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
|
|
7
6
|
hideLeftNav?: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare
|
|
8
|
+
export declare class OnlineLayoutView extends ReactLayoutView {
|
|
10
9
|
protected options: OnlineLayoutViewOptions;
|
|
11
10
|
protected childComponents: {
|
|
12
11
|
[index: string]: React.ReactNode;
|
|
13
12
|
};
|
|
14
13
|
protected leftNavVisible: boolean;
|
|
14
|
+
private navHelper;
|
|
15
15
|
constructor(options?: OnlineLayoutViewOptions);
|
|
16
|
+
initialize(): void;
|
|
16
17
|
get title(): boolean;
|
|
17
18
|
get name(): string;
|
|
18
19
|
get template(): string;
|
|
@@ -21,9 +22,10 @@ export declare abstract class OnlineLayoutView extends ReactLayoutView {
|
|
|
21
22
|
static getCacheKey(): string;
|
|
22
23
|
private getChildComponents;
|
|
23
24
|
protected unsetRegion(region: string): void;
|
|
24
|
-
hideLeftNav(): void;
|
|
25
25
|
closePopup(): void;
|
|
26
|
-
|
|
26
|
+
hideLeftNav(): void;
|
|
27
|
+
showLeftNav(): void;
|
|
28
|
+
private updateResponsiveHideLeftNav;
|
|
27
29
|
showChildView(region: string, component: React.ReactElement): void;
|
|
28
30
|
renderLayout(): void;
|
|
29
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/online",
|
|
3
|
-
"version": "0.0.5-
|
|
3
|
+
"version": "0.0.5-rc.0",
|
|
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-
|
|
23
|
+
"@clickview/tooling": "0.0.18-rc.0",
|
|
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-
|
|
30
|
+
"@clickview/styles": "1.0.8-rc.0",
|
|
31
31
|
"yup": "0.27.0"
|
|
32
32
|
},
|
|
33
33
|
"babel": {
|
|
@@ -29,6 +29,8 @@ declare namespace ClickView {
|
|
|
29
29
|
declare namespace presentation {
|
|
30
30
|
declare const id: string;
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
declare const workspaceId: string;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -36,5 +38,9 @@ declare namespace ClickView {
|
|
|
36
38
|
declare function hasSubjects(): boolean;
|
|
37
39
|
declare function hasMoviesAndTv(): boolean;
|
|
38
40
|
declare function get(key: string): any;
|
|
41
|
+
declare function getRegion(): string;
|
|
42
|
+
declare function isAdmin(): boolean;
|
|
43
|
+
declare function isStaff(): boolean;
|
|
44
|
+
declare function isAuthenticated(): boolean;
|
|
39
45
|
}
|
|
40
46
|
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { HashObject, Video } from "../interfaces";
|
|
2
|
-
export interface VideoWatchAnalyticsEvent {
|
|
3
|
-
model: Video;
|
|
4
|
-
playbackStatus: PlaybackStatus;
|
|
5
|
-
}
|
|
6
|
-
export interface PlaybackStatus {
|
|
7
|
-
position: number;
|
|
8
|
-
chapter: number;
|
|
9
|
-
totalDuration: number;
|
|
10
|
-
totalWatched: number;
|
|
11
|
-
hasStarted?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface BaseVideoData {
|
|
14
|
-
id: string;
|
|
15
|
-
title: string;
|
|
16
|
-
trackingCode: string;
|
|
17
|
-
duration: number;
|
|
18
|
-
}
|
|
19
|
-
interface BaseAssocData {
|
|
20
|
-
id: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface VideoAnalyticsPayload {
|
|
24
|
-
video: BaseVideoData;
|
|
25
|
-
rating?: string;
|
|
26
|
-
series?: BaseAssocData;
|
|
27
|
-
folder?: BaseAssocData;
|
|
28
|
-
owner?: BaseAssocData;
|
|
29
|
-
playlist?: BaseAssocData;
|
|
30
|
-
playbackStatus?: PlaybackStatus;
|
|
31
|
-
}
|
|
32
|
-
export declare const VideoDataFormatHelper: {
|
|
33
|
-
getVideoData(options: VideoWatchAnalyticsEvent): VideoAnalyticsPayload;
|
|
34
|
-
/**
|
|
35
|
-
* Map to the same properties recorded in Online.
|
|
36
|
-
* @see _toLogMasterVideo() in AnalyticsService in Online
|
|
37
|
-
*
|
|
38
|
-
* TODO: Video origin and user channel logging - both of these need to be re-worked properly.
|
|
39
|
-
*/
|
|
40
|
-
getLegacyVideoData(options: VideoWatchAnalyticsEvent): HashObject<any>;
|
|
41
|
-
};
|
|
42
|
-
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,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Core } from "../../../../common/src/backbone";
|
|
3
|
-
import { Cursors } from "../../../../common/src/backbone/interfaces";
|
|
4
|
-
interface CursorPaginationProps {
|
|
5
|
-
cursors: Cursors;
|
|
6
|
-
appLink: Core.AppLink;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function Pagination({ appLink, cursors, className }: CursorPaginationProps): JSX.Element;
|
|
10
|
-
export declare namespace Pagination {
|
|
11
|
-
var defaultProps: {
|
|
12
|
-
className: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
interface LocalPaginationProps {
|
|
16
|
-
onClickNext: () => void;
|
|
17
|
-
onClickBack: () => void;
|
|
18
|
-
currentPage: number;
|
|
19
|
-
totalPages: number;
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare function LocalPagination(props: LocalPaginationProps): JSX.Element;
|
|
23
|
-
export declare namespace LocalPagination {
|
|
24
|
-
var defaultProps: {
|
|
25
|
-
className: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Core } from "../../../../common/src/backbone";
|
|
3
|
-
import { Video, Series } from "../../interfaces";
|
|
4
|
-
interface VideoItemProps {
|
|
5
|
-
video: Video;
|
|
6
|
-
getVideoAppLink: (video: Video) => Core.AppLink;
|
|
7
|
-
getSeriesAppLink: (series: Series) => Core.AppLink;
|
|
8
|
-
setFavourite?: (videoId: string, shouldFavourite: boolean, onError?: () => void) => void;
|
|
9
|
-
idx?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function VideoItem(props: VideoItemProps): JSX.Element;
|
|
12
|
-
export declare const SortableVideoItem: React.ComponentClass<VideoItemProps & import("react-sortable-hoc").SortableElementProps, any>;
|
|
13
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Core } from "../../../../common/src/backbone";
|
|
3
|
-
import { Cursors } from "../../../../common/src/backbone/interfaces";
|
|
4
|
-
import { Video, Series } from "../../interfaces";
|
|
5
|
-
interface SortableContextProps {
|
|
6
|
-
isSortable: boolean;
|
|
7
|
-
currentSortingIndex?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const SortableContext: React.Context<SortableContextProps>;
|
|
10
|
-
export interface VideoListProps {
|
|
11
|
-
videos: Video[];
|
|
12
|
-
getVideoAppLink: (video: Video) => Core.AppLink;
|
|
13
|
-
getSeriesAppLink: (series: Series) => Core.AppLink;
|
|
14
|
-
setFavourite?: (videoId: string, shouldFavourite: boolean, onError?: () => void) => void;
|
|
15
|
-
cursors?: Cursors;
|
|
16
|
-
}
|
|
17
|
-
export declare function VideoList(props: VideoListProps): JSX.Element;
|
|
18
|
-
interface SortableVideoListProps extends VideoListProps {
|
|
19
|
-
currentSortingIndex?: number;
|
|
20
|
-
}
|
|
21
|
-
export declare const SortableVideoList: React.ComponentClass<SortableVideoListProps & import("react-sortable-hoc").SortableContainerProps, any>;
|
|
22
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
2
|
-
interface TruncationState<T extends HTMLElement> {
|
|
3
|
-
ref: MutableRefObject<T>;
|
|
4
|
-
isExpandable: boolean;
|
|
5
|
-
isTruncated: boolean;
|
|
6
|
-
toggleTruncation: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useTruncateText<T extends HTMLElement>(maxHeight: number): TruncationState<T>;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Video } from "../../../../interfaces";
|
|
3
|
-
interface VideoItemDescriptionProps {
|
|
4
|
-
video: Video;
|
|
5
|
-
forceTruncate?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function VideoItemDescription(props: VideoItemDescriptionProps): JSX.Element;
|
|
8
|
-
export {};
|
package/dist/libs/shared/src/components/video-list/components/video-item-header/VideoItemHeader.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Core } from "../../../../../../common/src/backbone";
|
|
3
|
-
import { Video } from "../../../../interfaces";
|
|
4
|
-
interface VideoItemHeaderProps {
|
|
5
|
-
video: Video;
|
|
6
|
-
appLink: Core.AppLink;
|
|
7
|
-
}
|
|
8
|
-
export declare function VideoItemHeader(props: VideoItemHeaderProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Core } from "../../../common/src/backbone";
|
|
3
|
-
import { VideoAction } from "../utils/video-actions/VideoActionsHelper";
|
|
4
|
-
import { Video } from "../interfaces";
|
|
5
|
-
interface VideoActionsContextProps {
|
|
6
|
-
videoActions?: VideoAction[];
|
|
7
|
-
getActionAppLink?: (video: Video, action: VideoAction) => Core.AppLink;
|
|
8
|
-
}
|
|
9
|
-
export declare const VideoActionsContext: React.Context<VideoActionsContextProps>;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Flight } from "../../../common/src/react";
|
|
2
|
-
import { Xhr } from "../../../common/src/backbone/interfaces";
|
|
3
|
-
export declare const FavouriteVideoRequests: {
|
|
4
|
-
favouriteVideos(userId: string, cursor?: string): Flight.Request;
|
|
5
|
-
updateIsVideoFavourited(videoId: string, userId: string, shouldFavourite: boolean, success?: () => void, error?: (Xhr: Xhr) => void): Flight.Request;
|
|
6
|
-
isFavourited(userId: string, ids: string[]): Flight.Request;
|
|
7
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Restriction, RestrictedObject, Video } from "../interfaces";
|
|
2
|
-
export declare const RestrictionHelper: {
|
|
3
|
-
mixinRestrictions(videos: Video[], restrictions: Restriction[]): any[];
|
|
4
|
-
getVideoRestrictions(videoId: string, restrictions: Restriction[]): RestrictedObject[];
|
|
5
|
-
};
|