@clickview/library-editor 1.1.5 → 1.1.6-rc.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/bundle.js +2 -2
- package/dist/en.json +1 -1
- package/dist/library-editor-app.css +2 -8
- package/dist/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +1 -1
- package/dist/src/apps/index.d.ts +1 -1
- package/dist/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +1 -1
- package/dist/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +1 -1
- package/dist/src/apps/library-editor/services/ExportDataService.d.ts +1 -1
- package/dist/src/apps/library-editor/services/LibraryDataService.d.ts +1 -2
- package/dist/src/apps/library-editor/services/VideoDataService.d.ts +2 -1
- package/dist/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +2 -0
- package/dist/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +1 -1
- package/dist/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +1 -1
- package/dist/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +1 -1
- package/dist/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +1 -1
- package/dist/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +1 -1
- package/dist/src/apps/notifications/constants/NotificationsAppVariables.d.ts +7 -0
- package/dist/src/apps/notifications/constants/index.d.ts +0 -0
- package/dist/src/apps/notifications/utils/Constants.d.ts +0 -52
- package/dist/src/apps/notifications/utils/NotificationsHelper.d.ts +4 -13
- package/dist/src/apps/notifications/utils/index.d.ts +0 -1
- package/dist/src/apps/search/services/SearchDataService.d.ts +1 -1
- package/dist/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +1 -1
- package/dist/src/apps/upload/errors/index.d.ts +0 -1
- package/dist/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +1 -1
- package/dist/src/apps/upload/services/PendingItemsService.d.ts +3 -19
- package/dist/src/apps/upload/services/VideoUploadDataService.d.ts +2 -1
- package/dist/src/apps/upload/services/VideoUploadService.d.ts +8 -0
- package/dist/src/apps/upload/services/index.d.ts +3 -3
- package/dist/src/index.d.ts +0 -9
- package/dist/src/shared/behaviors/index.d.ts +0 -1
- package/dist/src/shared/collections/index.d.ts +0 -1
- package/dist/src/shared/components/dialog/DialogView.d.ts +2 -14
- package/dist/src/shared/components/index.d.ts +0 -2
- package/dist/src/shared/constants/EventNames.d.ts +0 -17
- package/dist/src/shared/constants/ImageUrls.d.ts +0 -1
- package/dist/src/shared/constants/RadioChannels.d.ts +2 -2
- package/dist/src/shared/constants/Services.d.ts +60 -53
- package/dist/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +1 -1
- package/dist/src/shared/enums/SortTypes.d.ts +0 -7
- package/dist/src/shared/enums/index.d.ts +0 -2
- package/dist/src/shared/errors/authentication/AuthenticationError.d.ts +2 -3
- package/dist/src/shared/errors/customer-setting/CustomerSettingError.d.ts +1 -1
- package/dist/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +1 -1
- package/dist/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +1 -1
- package/dist/src/shared/errors/index.d.ts +0 -2
- package/dist/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +2 -3
- package/dist/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +1 -1
- package/dist/src/shared/errors/old-version/OldVersionError.d.ts +2 -3
- package/dist/src/shared/errors/too-many-files/TooManyFilesError.d.ts +2 -3
- package/dist/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +1 -2
- package/dist/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +1 -1
- package/dist/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +1 -1
- package/dist/src/shared/interfaces/VideoCollectionIdentifier.d.ts +1 -2
- package/dist/src/shared/interfaces/index.d.ts +0 -1
- package/dist/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +1 -0
- package/dist/src/shared/services/UserDataService.d.ts +2 -3
- package/dist/src/shared/services/index.d.ts +0 -1
- package/dist/src/shared/utils/SortHelper.d.ts +2 -1
- package/dist/src/shared/utils/index.d.ts +0 -3
- package/package.json +5 -7
- package/dist/bundle.js.map +0 -1
- package/dist/library-editor-app.css.map +0 -1
- package/dist/src/apps/notifications/collections/NotificationCollection.d.ts +0 -6
- package/dist/src/apps/notifications/components/index.d.ts +0 -3
- package/dist/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +0 -23
- package/dist/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +0 -26
- package/dist/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +0 -9
- package/dist/src/apps/notifications/models/Notification.d.ts +0 -3
- package/dist/src/apps/notifications/models/index.d.ts +0 -1
- package/dist/src/apps/notifications/services/NotificationDataService.d.ts +0 -14
- package/dist/src/apps/notifications/services/NotificationService.d.ts +0 -33
- package/dist/src/apps/notifications/services/NotificationSocketService.d.ts +0 -8
- package/dist/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +0 -4
- package/dist/src/apps/notifications/services/index.d.ts +0 -4
- package/dist/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +0 -10
- package/dist/src/apps/notifications/views/header/NotificationHeaderView.d.ts +0 -14
- package/dist/src/apps/notifications/views/index.d.ts +0 -3
- package/dist/src/apps/notifications/views/notifications/NotificationsView.d.ts +0 -26
- package/dist/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +0 -33
- package/dist/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
- package/dist/src/apps/upload/enums/PendingItemStatus.d.ts +0 -5
- package/dist/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
- package/dist/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
- package/dist/src/apps/upload/services/UploadService.d.ts +0 -64
- package/dist/src/apps/upload/utils/PendingItemsHelper.d.ts +0 -9
- package/dist/src/apps/upload/utils/index.d.ts +0 -1
- package/dist/src/shared/behaviors/empty-state/EmptyStateBehavior.d.ts +0 -22
- package/dist/src/shared/collections/PendingItemsCollection.d.ts +0 -8
- package/dist/src/shared/components/empty-state/EmptyStateComponent.d.ts +0 -24
- package/dist/src/shared/components/pagination/PaginationComponent.d.ts +0 -28
- package/dist/src/shared/enums/AppLinkReferrer.d.ts +0 -3
- package/dist/src/shared/enums/CurationStatus.d.ts +0 -12
- package/dist/src/shared/errors/file-type/FileTypeError.d.ts +0 -15
- package/dist/src/shared/errors/primitives/AlertError.d.ts +0 -4
- package/dist/src/shared/errors/primitives/DialogError.d.ts +0 -9
- package/dist/src/shared/errors/primitives/ErrorPageError.d.ts +0 -7
- package/dist/src/shared/errors/primitives/index.d.ts +0 -3
- package/dist/src/shared/interfaces/CollectionIdentifier.d.ts +0 -7
- package/dist/src/shared/services/LanguageDataService.d.ts +0 -12
- package/dist/src/shared/utils/EmptyStateHelper.d.ts +0 -4
- package/dist/src/shared/utils/FileExtensionsHelper.d.ts +0 -9
- package/dist/src/shared/utils/handlebars/LangHelper.d.ts +0 -5
- package/dist/src/shared/utils/handlebars/index.d.ts +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
|
-
import { FileLifestyle } from '../enums/FileLifestyle';
|
|
3
|
-
interface UploadItem extends Core.Model {
|
|
4
|
-
file: File;
|
|
5
|
-
name: string;
|
|
6
|
-
progress: number;
|
|
7
|
-
}
|
|
8
|
-
export declare enum UploadType {
|
|
9
|
-
Video = 0,
|
|
10
|
-
LearningResource = 1,
|
|
11
|
-
Subtitle = 2
|
|
12
|
-
}
|
|
13
|
-
declare class UploadService extends Core.Service {
|
|
14
|
-
protected uploadType: UploadType;
|
|
15
|
-
protected fileLifestyle: FileLifestyle;
|
|
16
|
-
private uploader;
|
|
17
|
-
private progressViewModel;
|
|
18
|
-
private uploadDataService;
|
|
19
|
-
private collection;
|
|
20
|
-
initialize(): void;
|
|
21
|
-
get channelName(): string;
|
|
22
|
-
get lang(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Dropzone is initialized once after the first upload is requested and it's chunk size
|
|
25
|
-
* is set for the rest of the uploads. If we happen to have multiple ingest
|
|
26
|
-
* servers that have different chunk max / min sizes, this may voilate those
|
|
27
|
-
* sizes.
|
|
28
|
-
*/
|
|
29
|
-
private initUploader;
|
|
30
|
-
private bindListeners;
|
|
31
|
-
private onProgress;
|
|
32
|
-
isUploading(): boolean;
|
|
33
|
-
getCollection(): Core.Collection<UploadItem>;
|
|
34
|
-
setOverallProgress(): void;
|
|
35
|
-
isValidFile(file: File): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Request uploads from fileApi and starts uploading.
|
|
38
|
-
* @param files Array of browser File objects
|
|
39
|
-
* @returns Returns false if any of the files did not match the accepted file list.
|
|
40
|
-
*/
|
|
41
|
-
addFiles(files: File[]): void;
|
|
42
|
-
private requestUploads;
|
|
43
|
-
addFile(file: File): void;
|
|
44
|
-
cancelUpload(id: string): void;
|
|
45
|
-
private onSuccess;
|
|
46
|
-
cancelAllUploads(): void;
|
|
47
|
-
private getAcceptedFiles;
|
|
48
|
-
}
|
|
49
|
-
export declare class VideoUploadService extends UploadService {
|
|
50
|
-
protected get uploadType(): UploadType;
|
|
51
|
-
get name(): string;
|
|
52
|
-
get fileLifestyle(): FileLifestyle;
|
|
53
|
-
}
|
|
54
|
-
export declare class SubtitleUploadService extends UploadService {
|
|
55
|
-
protected get uploadType(): UploadType;
|
|
56
|
-
get name(): string;
|
|
57
|
-
get fileLifestyle(): FileLifestyle;
|
|
58
|
-
}
|
|
59
|
-
export declare class LearningResourceUploadService extends UploadService {
|
|
60
|
-
protected get uploadType(): UploadType;
|
|
61
|
-
get name(): string;
|
|
62
|
-
get fileLifestyle(): FileLifestyle;
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
|
-
declare const PendingItemsHelper: {
|
|
3
|
-
getStatus(model: Core.Model): string;
|
|
4
|
-
hasError(model: Core.Model): boolean;
|
|
5
|
-
isDone(model: Core.Model): boolean;
|
|
6
|
-
getProgress(model: Core.Model): number;
|
|
7
|
-
hasExpired(model: Core.Model, maxSessionLength: number): boolean;
|
|
8
|
-
};
|
|
9
|
-
export { PendingItemsHelper };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PendingItemsHelper';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
import { EmptyStateComponentOptions, EmptyStateComponent } from "../../components";
|
|
4
|
-
interface EmptyStateBehaviorOptions {
|
|
5
|
-
region: string;
|
|
6
|
-
type: number;
|
|
7
|
-
shouldRender: () => boolean;
|
|
8
|
-
componentOptions?: EmptyStateComponentOptions;
|
|
9
|
-
emptyStateComponents: {
|
|
10
|
-
[type: number]: (self: any) => EmptyStateComponentOptions;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare class EmptyStateBehavior extends Core.Behavior {
|
|
14
|
-
options: EmptyStateBehaviorOptions;
|
|
15
|
-
get defaults(): ObjectHash;
|
|
16
|
-
set defaults(defaults: ObjectHash);
|
|
17
|
-
private shouldRender;
|
|
18
|
-
getComponent(): EmptyStateComponent;
|
|
19
|
-
renderEmptyState(): void;
|
|
20
|
-
onRender(): void;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
export declare type EmptyStateImageSize = 'sm' | 'lg';
|
|
4
|
-
export interface EmptyStateComponentOptions extends Core.ComponentOptions {
|
|
5
|
-
imageUrl: string;
|
|
6
|
-
heading?: string | (() => string);
|
|
7
|
-
description?: string | (() => string);
|
|
8
|
-
appLink?: Core.AppLinkHash;
|
|
9
|
-
customClass?: string;
|
|
10
|
-
customImageClass?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class EmptyStateComponent extends Core.Component {
|
|
13
|
-
protected options: EmptyStateComponentOptions;
|
|
14
|
-
constructor(options: EmptyStateComponentOptions);
|
|
15
|
-
get name(): string;
|
|
16
|
-
get className(): string;
|
|
17
|
-
get template(): string;
|
|
18
|
-
get defaults(): ObjectHash;
|
|
19
|
-
get appLinks(): Core.AppLinkHash;
|
|
20
|
-
private getImageClass;
|
|
21
|
-
private getHeading;
|
|
22
|
-
private getDescription;
|
|
23
|
-
viewOptions(): ObjectHash;
|
|
24
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core, Cursors } from '@clickview/common';
|
|
3
|
-
import { AnalyticsOptions } from '@clickview/analytics';
|
|
4
|
-
interface PaginationComponentOptions extends Core.ComponentOptions {
|
|
5
|
-
cursors: Cursors;
|
|
6
|
-
appLink: Core.AppLink;
|
|
7
|
-
collectionId?: string;
|
|
8
|
-
allowFirstPageCursor?: boolean;
|
|
9
|
-
analyticsOptions?: AnalyticsOptions;
|
|
10
|
-
cursorParamName?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class PaginationComponent extends Core.Component {
|
|
13
|
-
options: PaginationComponentOptions;
|
|
14
|
-
constructor(options: PaginationComponentOptions);
|
|
15
|
-
get defaults(): ObjectHash;
|
|
16
|
-
get name(): string;
|
|
17
|
-
get template(): any;
|
|
18
|
-
get lang(): string;
|
|
19
|
-
get appLinks(): Core.AppLinkHash;
|
|
20
|
-
events(): ObjectHash;
|
|
21
|
-
private buildCursor;
|
|
22
|
-
private onClickPrevious;
|
|
23
|
-
private onClickNext;
|
|
24
|
-
private logAction;
|
|
25
|
-
viewOptions(): ObjectHash;
|
|
26
|
-
onBeforeRender(): boolean;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This enum maps directly to the CurationStatus enum in the
|
|
3
|
-
* NuGet package ClickView.Models from master.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CurationStatus {
|
|
6
|
-
Draft = 0,
|
|
7
|
-
Published = 1,
|
|
8
|
-
Archive = 2,
|
|
9
|
-
Pending = 3,
|
|
10
|
-
Rejected = 4,
|
|
11
|
-
Processing = 5
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DialogError } from "../primitives";
|
|
2
|
-
import { DialogViewOptions } from "../../components";
|
|
3
|
-
/**
|
|
4
|
-
* TODO: Create a more useful message here.
|
|
5
|
-
* Perhaps using the mime types listen on MDN
|
|
6
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
|
|
7
|
-
* or in the list of all the official mime types
|
|
8
|
-
* https://www.iana.org/assignments/media-types/media-types.xhtml
|
|
9
|
-
*/
|
|
10
|
-
export declare class FileTypeError extends DialogError {
|
|
11
|
-
constructor(message: string, files: File[], acceptedFiles: string);
|
|
12
|
-
get name(): string;
|
|
13
|
-
get lang(): string;
|
|
14
|
-
get dialogOptions(): DialogViewOptions;
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
|
-
import { DialogViewOptions } from "../../components";
|
|
3
|
-
export declare abstract class DialogError extends Core.SilentError {
|
|
4
|
-
dialogOptions: DialogViewOptions;
|
|
5
|
-
constructor(message: string);
|
|
6
|
-
get name(): string;
|
|
7
|
-
onDone(): void;
|
|
8
|
-
onFail(): void;
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseCollectionIdentifier, BaseCollectionIdentifierOptions } from '@clickview/common';
|
|
2
|
-
import { SortType } from "../enums";
|
|
3
|
-
export interface CollectionIdentifierOptions extends BaseCollectionIdentifierOptions<SortType> {
|
|
4
|
-
}
|
|
5
|
-
export declare class CollectionIdentifier extends BaseCollectionIdentifier<SortType> {
|
|
6
|
-
protected getSortTypeParam(): string;
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { BaseDataService } from '@clickview/common';
|
|
3
|
-
interface LanguageConfig {
|
|
4
|
-
locale: string;
|
|
5
|
-
phrases: ObjectHash;
|
|
6
|
-
}
|
|
7
|
-
export declare class LanguageDataService extends BaseDataService {
|
|
8
|
-
get name(): string;
|
|
9
|
-
get channelName(): string;
|
|
10
|
-
getLanguageConfig(callback?: (languageConfig: LanguageConfig) => void): void;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LangHelper';
|