@clickview/library-editor 1.1.0 → 1.1.2-alpha.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/bundle.js +2 -2
- package/dist/bundle.js.map +1 -1
- package/dist/en.json +1 -1
- package/dist/library-editor-app.css +0 -14
- package/dist/library-editor-app.css.map +1 -1
- package/dist/src/apps/index.d.ts +1 -0
- package/dist/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +2 -2
- package/dist/src/apps/library-editor/enums/VideoCollectionSource.d.ts +4 -0
- package/dist/src/apps/library-editor/enums/index.d.ts +1 -0
- package/dist/src/apps/library-editor/services/LibraryDataService.d.ts +7 -7
- package/dist/src/apps/library-editor/services/SeriesDataService.d.ts +2 -1
- package/dist/src/apps/library-editor/services/VideoDataService.d.ts +2 -4
- package/dist/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +8 -0
- package/dist/src/apps/search/models/SearchAppVariables.d.ts +4 -0
- package/dist/src/apps/search/services/SearchDataService.d.ts +1 -1
- package/dist/src/apps/search/services/index.d.ts +0 -1
- package/dist/src/apps/search/utils/Enums.d.ts +0 -18
- package/dist/src/apps/search/utils/SearchHelper.d.ts +0 -2
- package/dist/src/apps/search/views/search/SearchView.d.ts +1 -0
- package/dist/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +1 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/shared/behaviors/index.d.ts +0 -2
- package/dist/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +1 -1
- package/dist/src/shared/components/index.d.ts +0 -1
- package/dist/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +1 -1
- package/dist/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +2 -2
- package/dist/src/shared/components/video-actions/VideoActionsComponent.d.ts +3 -0
- package/dist/src/shared/components/video-item/VideoItemComponent.d.ts +2 -0
- package/dist/src/shared/components/video-list/VideoListComponent.d.ts +2 -0
- package/dist/src/shared/constants/Search.d.ts +0 -16
- package/dist/src/shared/constants/Services.d.ts +0 -2
- package/dist/src/shared/enums/PartialLoading.d.ts +2 -5
- package/dist/src/shared/interfaces/index.d.ts +0 -1
- package/dist/src/shared/services/LanguageDataService.d.ts +6 -1
- package/dist/src/shared/services/RestrictedVideoDataService.d.ts +1 -2
- package/dist/src/shared/services/VideoMixinService.d.ts +0 -1
- package/dist/src/shared/services/index.d.ts +1 -4
- package/dist/src/shared/utils/SortHelper.d.ts +1 -1
- package/dist/src/shared/utils/index.d.ts +0 -1
- package/dist/src/shared/utils/search/RawSearchHelper.d.ts +3 -3
- package/dist/src/shared/utils/search/index.d.ts +0 -4
- package/dist/src/shared/utils/search/raw-search-components/index.d.ts +0 -1
- package/package.json +6 -7
- package/dist/src/apps/search/components/index.d.ts +0 -2
- package/dist/src/apps/search/components/instant-search/index.d.ts +0 -4
- package/dist/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +0 -15
- package/dist/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +0 -9
- package/dist/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +0 -9
- package/dist/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +0 -15
- package/dist/src/apps/search/components/search-context/SearchContextComponent.d.ts +0 -18
- package/dist/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +0 -11
- package/dist/src/apps/search/services/ContextualSearchService.d.ts +0 -37
- package/dist/src/apps/search/views/search-bar/SearchBarView.d.ts +0 -102
- package/dist/src/apps/search/views/search-bar/templates/index.d.ts +0 -9
- package/dist/src/apps/upload/services/LibraryEditorUploadService.d.ts +0 -8
- package/dist/src/apps/upload/services/LibraryEditorVideoUploadService.d.ts +0 -8
- package/dist/src/apps/upload/services/VideoUploadService.d.ts +0 -8
- package/dist/src/shared/behaviors/popover/PopoverBehavior.d.ts +0 -40
- package/dist/src/shared/behaviors/tooltip/TooltipBehavior.d.ts +0 -12
- package/dist/src/shared/components/thumbnail/ThumbnailComponent.d.ts +0 -32
- package/dist/src/shared/interfaces/Tooltip.d.ts +0 -6
- package/dist/src/shared/services/ContextService.d.ts +0 -38
- package/dist/src/shared/services/LanguageService.d.ts +0 -16
- package/dist/src/shared/utils/MaskHelper.d.ts +0 -15
- package/dist/src/shared/utils/search/InstantSearchHelper.d.ts +0 -21
- package/dist/src/shared/utils/search/RecentSearchHelper.d.ts +0 -12
- package/dist/src/shared/utils/search/SearchTypes.d.ts +0 -28
- package/dist/src/shared/utils/search/TypeaheadHelper.d.ts +0 -76
- package/dist/src/shared/utils/search/raw-search-components/confirm-selection/ConfirmSelectionComponent.d.ts +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Events, ObjectHash } from 'backbone';
|
|
2
|
-
import { Core, Cursors } from '@clickview/common';
|
|
3
|
-
import {
|
|
2
|
+
import { Core, Cursors, BaseDataService } from '@clickview/common';
|
|
3
|
+
import { BaseLibraryDataService } from '@clickview/shared';
|
|
4
4
|
import { Folder, Library } from "../../../shared/models";
|
|
5
5
|
import { FolderCollection, LibraryCollection } from "../../../shared/collections";
|
|
6
6
|
import { DataServices } from "../../../shared/constants/Services";
|
|
@@ -14,7 +14,7 @@ interface LibraryCallback {
|
|
|
14
14
|
interface FolderCollectionCallback {
|
|
15
15
|
(data: FolderCollection): void;
|
|
16
16
|
}
|
|
17
|
-
export declare class LibraryDataService extends BaseDataService {
|
|
17
|
+
export declare class LibraryDataService extends BaseDataService implements BaseLibraryDataService {
|
|
18
18
|
get name(): string;
|
|
19
19
|
get channelName(): string;
|
|
20
20
|
get lang(): string;
|
|
@@ -44,17 +44,17 @@ export declare class LibraryDataService extends BaseDataService {
|
|
|
44
44
|
getSelected(instance: Events, callback: FolderCallback): void;
|
|
45
45
|
}
|
|
46
46
|
declare const LibraryDataServiceHelper: {
|
|
47
|
-
|
|
47
|
+
exchanges: {
|
|
48
48
|
dataServiceName: DataServices;
|
|
49
49
|
eventName: string;
|
|
50
50
|
getData: (instance: LibraryDataService) => LibraryCollection;
|
|
51
51
|
getInstance: (context: Events) => unknown;
|
|
52
52
|
beforeOnBeforeRender: boolean;
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
dataServiceName:
|
|
54
|
+
libraries: {
|
|
55
|
+
dataServiceName: string;
|
|
56
56
|
eventName: string;
|
|
57
|
-
getData: (instance:
|
|
57
|
+
getData: (instance: BaseLibraryDataService) => Core.Collection<Core.Model>;
|
|
58
58
|
getInstance: (context: Events) => unknown;
|
|
59
59
|
beforeOnBeforeRender: boolean;
|
|
60
60
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
2
|
import { BaseDataService } from '@clickview/common';
|
|
3
|
+
import { BaseSeriesDataService } from '@clickview/shared';
|
|
3
4
|
import { Series, Season } from "../../../shared/models";
|
|
4
5
|
interface SeriesCallback {
|
|
5
6
|
(data: Series): void;
|
|
6
7
|
}
|
|
7
|
-
export declare class SeriesDataService extends BaseDataService {
|
|
8
|
+
export declare class SeriesDataService extends BaseDataService implements BaseSeriesDataService {
|
|
8
9
|
get name(): string;
|
|
9
10
|
get channelName(): string;
|
|
10
11
|
createSeries(seriesName: string, callback?: (data: Series) => void): void;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
1
|
import { ObjectHash } from 'backbone';
|
|
3
|
-
import { BaseDataService } from '@clickview/common';
|
|
2
|
+
import { Core, BaseDataService, Cursors } from '@clickview/common';
|
|
4
3
|
import { Video, Image, SharedResource, Folder } from "../../../shared/models";
|
|
5
4
|
import { VideoCollection } from "../../../shared/collections";
|
|
6
|
-
import { Cursors } from '@clickview/common';
|
|
7
5
|
import { VideoCollectionIdentifier } from "../../../shared/interfaces/VideoCollectionIdentifier";
|
|
8
6
|
import { Alert } from "../../../shared/services";
|
|
9
7
|
import { SharedResourcePrivacy } from "../../../shared/enums";
|
|
@@ -26,7 +24,7 @@ export declare class VideoDataService extends BaseDataService {
|
|
|
26
24
|
addOrUpdateThumbnail(videoId: string, newThumbnail: Image, currentThumbnailId?: string, callback?: (data: any) => void): void;
|
|
27
25
|
moveVideos(videoIds: string[], newParentId: string, oldParentId: string, callback: () => void, successAlert?: Alert): void;
|
|
28
26
|
deleteVideosFromLibrary(libraryId: string, folderId: string, videoIds: string[], callback?: () => void): void;
|
|
29
|
-
getSharedResource(id: string, privacy
|
|
27
|
+
getSharedResource(id: string, privacy?: SharedResourcePrivacy, callback?: (data: SharedResource) => void): void;
|
|
30
28
|
addVideoToCustomLibrary(data: Object, video: Video, folder: Folder, callback?: () => void): void;
|
|
31
29
|
bulkDissoc(videoId: string, dissocs: ObjectHash, callback: () => void): void;
|
|
32
30
|
copyVideo(videoId: string, libraryId: string, categoryId: string, callback?: () => void): void;
|
|
@@ -5,6 +5,8 @@ import { FolderCollection, VideoCollection } from "../../../../shared/collection
|
|
|
5
5
|
import { AnalyticsOptions } from '@clickview/analytics';
|
|
6
6
|
import { EmptyState } from "../../../../shared/enums";
|
|
7
7
|
import { VideoCollectionIdentifier } from "../../../../shared/interfaces";
|
|
8
|
+
import { VideoItemComponentType } from "../../../../shared/components";
|
|
9
|
+
import { VideoCollectionSource } from "../../enums";
|
|
8
10
|
import { LibraryDataService, VideoDataService } from "../../services";
|
|
9
11
|
import { VideoCollectionType } from "../../constants";
|
|
10
12
|
interface VideoCollectionViewOptions extends Core.ViewOptions<VideoCollectionType> {
|
|
@@ -36,6 +38,8 @@ declare abstract class VideoCollectionView extends Core.View<VideoCollectionType
|
|
|
36
38
|
protected abstract showFolderSource(): boolean;
|
|
37
39
|
protected abstract fetchModel(): void;
|
|
38
40
|
protected abstract fetchVideoCollection(): void;
|
|
41
|
+
protected abstract getVideoCollectionSource(): VideoCollectionSource;
|
|
42
|
+
protected abstract get componentType(): VideoItemComponentType;
|
|
39
43
|
constructor(options: VideoCollectionViewOptions);
|
|
40
44
|
initialize(): void;
|
|
41
45
|
get title(): string | boolean;
|
|
@@ -64,6 +68,7 @@ declare abstract class VideoCollectionView extends Core.View<VideoCollectionType
|
|
|
64
68
|
export declare class FolderView extends VideoCollectionView {
|
|
65
69
|
get name(): string;
|
|
66
70
|
get lang(): string;
|
|
71
|
+
get componentType(): VideoItemComponentType;
|
|
67
72
|
protected bindListeners(): void;
|
|
68
73
|
protected onError(error: DataServiceError): void;
|
|
69
74
|
protected appLinkAction(): string;
|
|
@@ -71,6 +76,7 @@ export declare class FolderView extends VideoCollectionView {
|
|
|
71
76
|
protected emptyStateType(): EmptyState;
|
|
72
77
|
protected emptyStateOptions(): any;
|
|
73
78
|
protected showFolderSource(): boolean;
|
|
79
|
+
protected getVideoCollectionSource(): VideoCollectionSource;
|
|
74
80
|
protected fetchModel(): void;
|
|
75
81
|
protected fetchVideoCollection(): void;
|
|
76
82
|
onBeforeRender(): boolean;
|
|
@@ -80,6 +86,7 @@ export declare class SeriesView extends VideoCollectionView {
|
|
|
80
86
|
initialize(): void;
|
|
81
87
|
get name(): string;
|
|
82
88
|
get lang(): string;
|
|
89
|
+
get componentType(): VideoItemComponentType;
|
|
83
90
|
protected bindListeners(): void;
|
|
84
91
|
protected onError(error: DataServiceError): void;
|
|
85
92
|
protected appLinkAction(): string;
|
|
@@ -87,6 +94,7 @@ export declare class SeriesView extends VideoCollectionView {
|
|
|
87
94
|
protected emptyStateType(): EmptyState;
|
|
88
95
|
protected emptyStateOptions(): any;
|
|
89
96
|
protected showFolderSource(): boolean;
|
|
97
|
+
protected getVideoCollectionSource(): VideoCollectionSource;
|
|
90
98
|
protected fetchModel(): void;
|
|
91
99
|
protected fetchVideoCollection(): void;
|
|
92
100
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseDataService } from '@clickview/common';
|
|
2
|
-
import { CollectionIdentifier } from "../../../shared/interfaces";
|
|
3
2
|
import { VideoCollection } from "../../../shared/collections";
|
|
3
|
+
import { CollectionIdentifier } from "../../../shared/interfaces";
|
|
4
4
|
import { FilterCollection } from "../collections";
|
|
5
5
|
export declare class SearchDataService extends BaseDataService {
|
|
6
6
|
private videoMixinService;
|
|
@@ -5,20 +5,6 @@ export declare enum QueryTypes {
|
|
|
5
5
|
HostedLibrary = "hosted_library",
|
|
6
6
|
CustomLibrary = "custom_library"
|
|
7
7
|
}
|
|
8
|
-
export declare enum FilterTypes {
|
|
9
|
-
Sources = "libraries",
|
|
10
|
-
Folder = "folder",
|
|
11
|
-
Tags = "tag",
|
|
12
|
-
Ratings = "ratings",
|
|
13
|
-
Interactives = "interactives",
|
|
14
|
-
Resources = "resources",
|
|
15
|
-
Subtitles = "subtitles",
|
|
16
|
-
ProductionYear = "productionYear",
|
|
17
|
-
ProducedByClickView = "producedByClickView",
|
|
18
|
-
HD = "hd",
|
|
19
|
-
Duration = "duration",
|
|
20
|
-
Series = "series"
|
|
21
|
-
}
|
|
22
8
|
export declare enum QueryString {
|
|
23
9
|
Since = "since-",
|
|
24
10
|
Before = "before-",
|
|
@@ -28,10 +14,6 @@ export declare enum QueryString {
|
|
|
28
14
|
Libraries = "libraries",
|
|
29
15
|
Ratings = "ratings"
|
|
30
16
|
}
|
|
31
|
-
export declare enum SearchTypes {
|
|
32
|
-
Direct = "direct-search",
|
|
33
|
-
Recent = "recent-searches"
|
|
34
|
-
}
|
|
35
17
|
export declare enum FilterBehaviorTypes {
|
|
36
18
|
Inclusive = "inclusive",
|
|
37
19
|
Exclusive = "exclusive",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
2
|
import { LibraryCollection } from "../../../shared/collections";
|
|
4
3
|
import { Query } from "../models";
|
|
5
4
|
import { FilterCollection } from "../collections";
|
|
@@ -8,6 +7,5 @@ export declare const SearchHelper: {
|
|
|
8
7
|
getQueryString(model: Query, collection: FilterCollection, cursor: string): string;
|
|
9
8
|
getDynamicFilterQueryString(model: Query, collection: FilterCollection): string;
|
|
10
9
|
getRouteQueryParams(model: Query, collection: FilterCollection, sources: LibraryCollection): ObjectHash;
|
|
11
|
-
getContextualSearchQueryParams(context: Core.Model): ObjectHash;
|
|
12
10
|
encodeURL(query: string): string;
|
|
13
11
|
};
|
|
@@ -6,6 +6,7 @@ interface SearchViewOptions extends Core.ViewOptions<Query> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class SearchView extends Core.View<Query> {
|
|
8
8
|
protected options: SearchViewOptions;
|
|
9
|
+
private contextualSearchService;
|
|
9
10
|
private searchDataService;
|
|
10
11
|
private videoDataService;
|
|
11
12
|
private ratingsDataService;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -128,10 +128,7 @@ import './apps/search/components/filters/filters.lang.json';
|
|
|
128
128
|
import './apps/search/components/filters/more-filters-button/more-filters-button.lang.json';
|
|
129
129
|
import './apps/search/components/results/search-results.lang.json';
|
|
130
130
|
import './apps/search/components/search-header/search-header.lang.json';
|
|
131
|
-
import './apps/search/components/search-tips/search-tips.lang.json';
|
|
132
|
-
import './apps/search/services/search-services.lang.json';
|
|
133
131
|
import './apps/search/utils/search-utils.lang.json';
|
|
134
|
-
import './apps/search/views/search-bar/search-bar.lang.json';
|
|
135
132
|
import './apps/search/views/search/search.lang.json';
|
|
136
133
|
import './apps/staff-requests/components/staff-request-actions/staff-request-actions.lang.json';
|
|
137
134
|
import './apps/staff-requests/components/staff-request-details/staff-request-details.lang.json';
|
|
@@ -6,7 +6,5 @@ export * from './lock-layout-file-drop/LockLayoutFileDropBehavior';
|
|
|
6
6
|
export * from './backbone-validation/BackboneValidationBehavior';
|
|
7
7
|
export * from './empty-state/EmptyStateBehavior';
|
|
8
8
|
export * from './lazy-load/LazyLoadBehavior';
|
|
9
|
-
export * from './popover/PopoverBehavior';
|
|
10
9
|
export * from './popup/PopupBehavior';
|
|
11
10
|
export * from './stickit/StickitBehavior';
|
|
12
|
-
export * from './tooltip/TooltipBehavior';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
1
|
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { Core } from '@clickview/common';
|
|
3
3
|
import { Video } from "../../../models";
|
|
4
4
|
interface EditBroadcastComponentOptions extends Core.ComponentOptions<Video> {
|
|
5
5
|
editable?: boolean;
|
|
@@ -20,7 +20,6 @@ export * from './video-basic-info/VideoBasicInfoComponent';
|
|
|
20
20
|
export * from './video-item-preview/VideoItemPreviewComponent';
|
|
21
21
|
export * from './video-preview/VideoPreviewComponent';
|
|
22
22
|
export * from './page-header/PageHeaderComponent';
|
|
23
|
-
export * from './thumbnail/ThumbnailComponent';
|
|
24
23
|
export * from './video-item';
|
|
25
24
|
export * from './video-description/VideoDescriptionComponent';
|
|
26
25
|
export * from './video-list/VideoListComponent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
2
|
import { Core } from '@clickview/common';
|
|
3
|
-
import { TooltipOptions } from
|
|
3
|
+
import { TooltipOptions } from '@clickview/shared';
|
|
4
4
|
import { SpinnerOptions } from "../../utils";
|
|
5
5
|
export declare const SpinnerButtonEvents: {
|
|
6
6
|
ShowSpinner: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="typeahead" />
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
2
|
import { ObjectHash } from 'backbone';
|
|
4
|
-
import {
|
|
3
|
+
import { Core } from '@clickview/common';
|
|
4
|
+
import { TypeaheadConfigHandler, TypeaheadSourceItem } from '@clickview/shared';
|
|
5
5
|
interface TypeaheadCallbacks {
|
|
6
6
|
onRender?: Function;
|
|
7
7
|
onInput?: Function;
|
|
@@ -3,6 +3,7 @@ import { Core } from '@clickview/common';
|
|
|
3
3
|
import { AnalyticsOptions } from '@clickview/analytics';
|
|
4
4
|
import { VideoCollectionIdentifier } from "../../interfaces";
|
|
5
5
|
import { Video, Config } from "../../models";
|
|
6
|
+
import { VideoCollectionSource } from "../../../apps/library-editor/enums";
|
|
6
7
|
export interface VideoActionsComponentOptions extends Core.ComponentOptions<Video> {
|
|
7
8
|
showActionLabels?: boolean;
|
|
8
9
|
application: string;
|
|
@@ -12,6 +13,7 @@ export interface VideoActionsComponentOptions extends Core.ComponentOptions<Vide
|
|
|
12
13
|
routeToFolderOnDelete?: boolean;
|
|
13
14
|
analyticsOptions?: AnalyticsOptions;
|
|
14
15
|
config: Config;
|
|
16
|
+
collectionSource?: VideoCollectionSource;
|
|
15
17
|
}
|
|
16
18
|
export declare class VideoActionsComponent extends Core.Component<Video> {
|
|
17
19
|
options: VideoActionsComponentOptions;
|
|
@@ -29,6 +31,7 @@ export declare class VideoActionsComponent extends Core.Component<Video> {
|
|
|
29
31
|
private onClickMore;
|
|
30
32
|
private getActions;
|
|
31
33
|
private getEditTooltip;
|
|
34
|
+
private getFolderSourceId;
|
|
32
35
|
private getMoreActions;
|
|
33
36
|
private renderActions;
|
|
34
37
|
private renderMoreActions;
|
|
@@ -4,6 +4,7 @@ import { AnalyticsOptions } from '@clickview/analytics';
|
|
|
4
4
|
import { Video, Config } from "../../models";
|
|
5
5
|
import { VideoCollectionIdentifier } from "../../interfaces";
|
|
6
6
|
import { VideoItemComponentType, VideoSourcesMetadataComponentOptions } from "..";
|
|
7
|
+
import { VideoCollectionSource } from "../../../apps/library-editor/enums";
|
|
7
8
|
export interface VideoItemComponentOptions extends Core.ComponentOptions<Video> {
|
|
8
9
|
componentType?: VideoItemComponentType;
|
|
9
10
|
videoWithMetadata?: Video;
|
|
@@ -18,6 +19,7 @@ export interface VideoItemComponentOptions extends Core.ComponentOptions<Video>
|
|
|
18
19
|
customerHasExchange?: boolean;
|
|
19
20
|
analyticsOptions?: AnalyticsOptions;
|
|
20
21
|
videoItemSelector?: string;
|
|
22
|
+
videoCollectionSource: VideoCollectionSource;
|
|
21
23
|
}
|
|
22
24
|
export declare class VideoItemComponent extends Core.Component<Video> {
|
|
23
25
|
options: VideoItemComponentOptions;
|
|
@@ -7,6 +7,7 @@ import { Config } from "../../models";
|
|
|
7
7
|
import { EmptyState } from "../../enums";
|
|
8
8
|
import { EmptyStateOptions } from "../../constants";
|
|
9
9
|
import { VideoCollection } from "../../collections";
|
|
10
|
+
import { VideoCollectionSource } from "../../../apps/library-editor/enums";
|
|
10
11
|
interface VideoListComponentOptions extends Core.ComponentOptions {
|
|
11
12
|
videoItemComponentType?: VideoItemComponentType;
|
|
12
13
|
videosWithMetadata?: VideoCollection;
|
|
@@ -23,6 +24,7 @@ interface VideoListComponentOptions extends Core.ComponentOptions {
|
|
|
23
24
|
customerHasLocalCache?: boolean;
|
|
24
25
|
customerHasExchange?: boolean;
|
|
25
26
|
analyticsOptions?: AnalyticsOptions;
|
|
27
|
+
videoCollectionSource?: VideoCollectionSource;
|
|
26
28
|
}
|
|
27
29
|
export declare class VideoListComponent extends Core.Component {
|
|
28
30
|
options: VideoListComponentOptions;
|
|
@@ -5,22 +5,6 @@ export declare enum LibraryType {
|
|
|
5
5
|
CustomLibrary = "custom_library",
|
|
6
6
|
Workspace = "workspace"
|
|
7
7
|
}
|
|
8
|
-
export declare enum BloodhoundType {
|
|
9
|
-
Remote = 0,
|
|
10
|
-
Local = 1
|
|
11
|
-
}
|
|
12
|
-
export declare const TypeaheadConfiguration: {
|
|
13
|
-
/**
|
|
14
|
-
* Request remote data after character input meets length
|
|
15
|
-
*/
|
|
16
|
-
ActivationLength: number;
|
|
17
|
-
SuggestionLimit: {
|
|
18
|
-
Min: number;
|
|
19
|
-
Default: number;
|
|
20
|
-
Folder: number;
|
|
21
|
-
Recent: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
8
|
export declare enum SearchQueryType {
|
|
25
9
|
Video = "videos",
|
|
26
10
|
Folder = "categories",
|
|
@@ -19,7 +19,6 @@ declare enum Services {
|
|
|
19
19
|
PageVisibility = "PageVisibility",
|
|
20
20
|
PageTitle = "PageTitle",
|
|
21
21
|
Language = "LanguageService",
|
|
22
|
-
ContextualSearch = "ContextualSearchService",
|
|
23
22
|
Intercom = "IntercomService"
|
|
24
23
|
}
|
|
25
24
|
declare enum DataServices {
|
|
@@ -28,7 +27,6 @@ declare enum DataServices {
|
|
|
28
27
|
Customer = "CustomerDataService",
|
|
29
28
|
Library = "LibraryDataService",
|
|
30
29
|
Video = "VideoDataService",
|
|
31
|
-
Search = "SearchDataService",
|
|
32
30
|
Notifications = "NotificationDataService",
|
|
33
31
|
NotificationsSocket = "NotificationSocketService",
|
|
34
32
|
Settings = "SettingsDataService",
|
|
@@ -33,9 +33,6 @@ export declare enum PartialLoading {
|
|
|
33
33
|
LibraryFolders = 31,
|
|
34
34
|
EditResourcesCVContent = 32,
|
|
35
35
|
TagFilter = 33,
|
|
36
|
-
VideoItemPreview = 34
|
|
37
|
-
|
|
38
|
-
export declare enum PartialLoadingComponentTypes {
|
|
39
|
-
Component = 1,
|
|
40
|
-
ComponentCollection = 2
|
|
36
|
+
VideoItemPreview = 34,
|
|
37
|
+
Unselected = 35
|
|
41
38
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
1
2
|
import { BaseDataService } from '@clickview/common';
|
|
2
|
-
|
|
3
|
+
interface LanguageConfig {
|
|
4
|
+
locale: string;
|
|
5
|
+
phrases: ObjectHash;
|
|
6
|
+
}
|
|
3
7
|
export declare class LanguageDataService extends BaseDataService {
|
|
4
8
|
get name(): string;
|
|
5
9
|
get channelName(): string;
|
|
6
10
|
getLanguageConfig(callback?: (languageConfig: LanguageConfig) => void): void;
|
|
7
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseDataService } from '@clickview/common';
|
|
1
|
+
import { Cursors, BaseDataService } from '@clickview/common';
|
|
2
2
|
import { VideoCollection, RestrictedObjectCollection } from "../collections";
|
|
3
3
|
import { VideoCollectionIdentifier } from "../interfaces/VideoCollectionIdentifier";
|
|
4
|
-
import { Cursors } from '@clickview/common';
|
|
5
4
|
export declare class RestrictedVideoDataService extends BaseDataService {
|
|
6
5
|
get name(): string;
|
|
7
6
|
get channelName(): string;
|
|
@@ -4,7 +4,6 @@ import { VideoCollectionIdentifier } from "../interfaces";
|
|
|
4
4
|
import { Video } from "../models";
|
|
5
5
|
export declare class VideoMixinService extends Core.Service {
|
|
6
6
|
private restrictedVideoDataService;
|
|
7
|
-
private localCacheDataService;
|
|
8
7
|
initialize(): void;
|
|
9
8
|
get name(): string;
|
|
10
9
|
get channelName(): string;
|
|
@@ -6,13 +6,10 @@ export * from './PartialLoadingService';
|
|
|
6
6
|
export * from './SettingsDataService';
|
|
7
7
|
export * from './CustomerDataService';
|
|
8
8
|
export * from './LocalCacheDataService';
|
|
9
|
-
export * from './VideoMixinService';
|
|
10
9
|
export * from './RestrictedVideoDataService';
|
|
11
10
|
export * from './PageVisibilityService';
|
|
12
11
|
export * from './PageTitleService';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './LanguageService';
|
|
12
|
+
export * from './VideoMixinService';
|
|
15
13
|
export * from './LanguageDataService';
|
|
16
|
-
export * from './ContextService';
|
|
17
14
|
export * from './DownloadProxyDataServices';
|
|
18
15
|
export * from './IntercomService';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
1
2
|
import { Core } from '@clickview/common';
|
|
2
3
|
import { SortType, ExportServiceSortType } from "../enums";
|
|
3
|
-
import { ObjectHash } from 'backbone';
|
|
4
4
|
declare const SortHelper: {
|
|
5
5
|
GetCurrentSortType(): SortType;
|
|
6
6
|
GetSortViewModel(): Core.Model;
|
|
@@ -6,7 +6,6 @@ export * from './TimeHelper';
|
|
|
6
6
|
export * from './SettingsHelper';
|
|
7
7
|
export * from './FolderTreeHelpers';
|
|
8
8
|
export * from './TextHelper';
|
|
9
|
-
export * from './MaskHelper';
|
|
10
9
|
export * from './PermissionsHelper';
|
|
11
10
|
export * from './ImageHelper';
|
|
12
11
|
export * from './RatingHelper';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
2
|
import { ObjectHash } from 'backbone';
|
|
3
|
-
import
|
|
3
|
+
import { TypeaheadDataSource, BloodhoundConfigHandler } from '@clickview/shared';
|
|
4
4
|
import { Tag, Producer, Distributor, Series, Channel } from "../../models";
|
|
5
5
|
declare type RawSearchType = Producer | Distributor | Series | Channel | Tag;
|
|
6
6
|
/**
|
|
7
7
|
* Specific logic for processing responses from domain instant/raw endpoint
|
|
8
8
|
*/
|
|
9
9
|
export declare const RawSearchHelper: {
|
|
10
|
-
handleQuery(dataSource?:
|
|
10
|
+
handleQuery(dataSource?: TypeaheadDataSource<RawSearchType>, options?: ObjectHash): TypeaheadDataSource<RawSearchType>;
|
|
11
11
|
getSuggestionTemplate(sourceName: string): any;
|
|
12
12
|
getPendingTemplate(sourceName: string): any;
|
|
13
13
|
getNotFoundTemplate(sourceName: string, hideEmptyResults?: boolean): any;
|
|
@@ -15,7 +15,7 @@ export declare const RawSearchHelper: {
|
|
|
15
15
|
prepareQuery: (query: string, settings: JQueryAjaxSettings, options?: ObjectHash) => string;
|
|
16
16
|
prepareUrl(source: string, options: ObjectHash): string;
|
|
17
17
|
mapRawSearchType(source: string, options: ObjectHash): string;
|
|
18
|
-
getBloodhoundConfig():
|
|
18
|
+
getBloodhoundConfig(): BloodhoundConfigHandler<RawSearchType>;
|
|
19
19
|
getTypeaheadConfig(): any;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/library-editor",
|
|
3
3
|
"description": "Library Editor",
|
|
4
|
-
"version": "1.1.0",
|
|
4
|
+
"version": "1.1.2-alpha.0",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "Shale Kuzmanovski, Michael McDonnell",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@clickview/tooling": "0.0.
|
|
33
|
+
"@clickview/tooling": "0.0.11-alpha.4",
|
|
34
34
|
"@fortawesome/fontawesome": "1.1.8",
|
|
35
35
|
"@types/clipboard": "2.0.1",
|
|
36
36
|
"@types/cropperjs": "1.1.5",
|
|
@@ -61,12 +61,11 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/polyfill": "7.4.4",
|
|
64
|
-
"@clickview/analytics": "1.0.
|
|
65
|
-
"@clickview/common": "1.0.
|
|
66
|
-
"@clickview/shared": "1.0.
|
|
67
|
-
"@clickview/styles": "1.0.
|
|
64
|
+
"@clickview/analytics": "1.0.1-alpha.4",
|
|
65
|
+
"@clickview/common": "1.0.1-alpha.4",
|
|
66
|
+
"@clickview/shared": "1.0.1-alpha.4",
|
|
67
|
+
"@clickview/styles": "1.0.1-alpha.4",
|
|
68
68
|
"autotrack": "2.4.1",
|
|
69
|
-
"backbone-validation": "0.11.5",
|
|
70
69
|
"bootstrap": "4.3.1",
|
|
71
70
|
"clipboard": "2.0.4",
|
|
72
71
|
"corejs-typeahead": "1.2.1",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
interface RecentSearchResultComponentOptions extends Core.ComponentOptions {
|
|
4
|
-
channelName: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class RecentSearchResultComponent extends Core.Component {
|
|
7
|
-
constructor(options: RecentSearchResultComponentOptions);
|
|
8
|
-
get name(): string;
|
|
9
|
-
get template(): string;
|
|
10
|
-
get className(): string;
|
|
11
|
-
events(): ObjectHash;
|
|
12
|
-
viewOptions(): ObjectHash;
|
|
13
|
-
private onClick;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
package/dist/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
export declare class SeriesSearchResultComponent extends Core.Component {
|
|
4
|
-
get name(): string;
|
|
5
|
-
get template(): string;
|
|
6
|
-
get className(): string;
|
|
7
|
-
events(): ObjectHash;
|
|
8
|
-
private onClick;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
export declare class TagSearchResultComponent extends Core.Component {
|
|
4
|
-
get name(): string;
|
|
5
|
-
get template(): string;
|
|
6
|
-
get className(): string;
|
|
7
|
-
events(): ObjectHash;
|
|
8
|
-
private onClick;
|
|
9
|
-
}
|
package/dist/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
export declare class VideoSearchResultComponent extends Core.Component<any> {
|
|
4
|
-
get name(): string;
|
|
5
|
-
get template(): string;
|
|
6
|
-
get className(): string;
|
|
7
|
-
regions(): ObjectHash;
|
|
8
|
-
events(): ObjectHash;
|
|
9
|
-
private onClick;
|
|
10
|
-
private getCollection;
|
|
11
|
-
private getUrl;
|
|
12
|
-
private renderThumbnail;
|
|
13
|
-
viewOptions(): ObjectHash;
|
|
14
|
-
onRender(): void;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
export declare class SearchContextComponent extends Core.Component {
|
|
4
|
-
initialize(): void;
|
|
5
|
-
get name(): string;
|
|
6
|
-
get template(): string;
|
|
7
|
-
get tagName(): string;
|
|
8
|
-
get className(): string;
|
|
9
|
-
get behaviors(): any[];
|
|
10
|
-
get elements(): ObjectHash;
|
|
11
|
-
events(): ObjectHash;
|
|
12
|
-
private onClick;
|
|
13
|
-
private onMouseEnter;
|
|
14
|
-
private onMouseLeave;
|
|
15
|
-
private toggleFocus;
|
|
16
|
-
viewOptions(): ObjectHash;
|
|
17
|
-
onBeforeRender(): boolean;
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
export declare class SearchTipsComponent extends Core.Component {
|
|
4
|
-
initialize(): void;
|
|
5
|
-
get name(): string;
|
|
6
|
-
get template(): string;
|
|
7
|
-
get lang(): string;
|
|
8
|
-
get behaviors(): any[];
|
|
9
|
-
private renderTips;
|
|
10
|
-
viewOptions(): ObjectHash;
|
|
11
|
-
}
|