@clickview/online 0.0.4 → 0.0.5-dev.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/analytics/src/clients/CollectionApiClient.d.ts +1 -0
- 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/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 +1 -2
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +2 -0
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +6 -2
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +2 -1
- 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/flight-requests/PlaylistRequests.d.ts +3 -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/Library.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +4 -1
- 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 +2 -1
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -1
- package/dist/online-app.css +11 -7
- package/dist/online-app.js +3 -3
- 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/{PlaylistApplication.d.ts → OnlinePlaylistsApplication.d.ts} +5 -9
- 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/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/SubjectPlaylistsApplication.d.ts +3 -3
- 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/index.d.ts +8 -3
- package/dist/projects/online/src/shared/components/info-banner/InfoBanner.d.ts +2 -0
- package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/SortableVideoList.d.ts +2 -3
- package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/SortableVideoListContainer.d.ts +1 -2
- package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/ThumbnailComponent.d.ts +2 -2
- package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/VideoActionsComponent.d.ts +2 -2
- package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/VideoItemComponent.d.ts +4 -4
- package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/VideoItemPreviewComponent.d.ts +1 -1
- 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/package.json +3 -3
- package/typings/libs/FutureCoreHelper.d.ts +5 -0
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
- package/dist/libs/shared/src/components/div-button/DivButton.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/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/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/shared/hooks/UseVideoMixin.d.ts +0 -2
- /package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/PartialVideoList.d.ts +0 -0
- /package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/PlaceHolder.d.ts +0 -0
- /package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/RestrictedBadge.d.ts +0 -0
- /package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/RestrictionInfo.d.ts +0 -0
|
@@ -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, VideoWithRestrictions, RestrictedObject, Video } from "../interfaces";
|
|
2
|
-
export declare const RestrictionHelper: {
|
|
3
|
-
mixinRestrictions(videos: Video[], restrictions: Restriction[]): VideoWithRestrictions[];
|
|
4
|
-
getVideoRestrictions(videoId: string, restrictions: Restriction[]): RestrictedObject[];
|
|
5
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PartialPlaylistHeaderComponent';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SortableVideoListContainer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AddToPlaylistView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './DeletePlaylistView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './EditPlaylistView';
|
|
@@ -1,10 +0,0 @@
|
|
|
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';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LeftNavView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MigrationInProgressView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './NewPlaylistView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PlayPlaylistView';
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PlaylistView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PlaylistsView';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RemoveVideoFromPlaylistView';
|
|
File without changes
|
/package/dist/projects/online/src/{apps/playlists → shared}/components/video-list/PlaceHolder.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|