@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
package/dist/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DialogError } from
|
|
1
|
+
import { DialogError } from '@clickview/shared';
|
|
2
2
|
import { DialogViewOptions } from "../../../../shared/components";
|
|
3
3
|
export declare class MigrationFinalisationError extends DialogError {
|
|
4
4
|
constructor();
|
package/dist/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DialogError } from
|
|
1
|
+
import { DialogError } from '@clickview/shared';
|
|
2
2
|
import { DialogViewOptions } from "../../../../shared/components";
|
|
3
3
|
export declare class MigrationProgressError extends DialogError {
|
|
4
4
|
constructor();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DialogError } from
|
|
1
|
+
import { DialogError } from '@clickview/shared';
|
|
2
2
|
import { DialogViewOptions } from "../../../../shared/components";
|
|
3
3
|
export declare class SmartMigrationApiCallError extends DialogError {
|
|
4
4
|
private supportUrl;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseNotificationsAppVariables, NotificationType, NotificationsAppLinks } from '@clickview/shared';
|
|
2
|
+
export declare class NotificationsAppVariables extends BaseNotificationsAppVariables {
|
|
3
|
+
get appLinks(): NotificationsAppLinks;
|
|
4
|
+
get notificationTypesWithAppLinks(): Array<NotificationType>;
|
|
5
|
+
get notificationsEmptyStateUrl(): string;
|
|
6
|
+
get bellIconColor(): 'light';
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
export declare enum NotificationAlertType {
|
|
2
|
-
Other = 0,
|
|
3
|
-
Alert = 1,
|
|
4
|
-
Warning = 2,
|
|
5
|
-
Info = 3,
|
|
6
|
-
Success = 4
|
|
7
|
-
}
|
|
8
|
-
export declare enum NotificationStatus {
|
|
9
|
-
Received = 1,
|
|
10
|
-
Seen = 2,
|
|
11
|
-
Read = 3
|
|
12
|
-
}
|
|
13
|
-
export interface NotificationCollectionRequest {
|
|
14
|
-
limit?: number;
|
|
15
|
-
cursor?: string;
|
|
16
|
-
before?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare enum NotificationType {
|
|
19
|
-
ExchangeVideoAvailable = "exchange-video-available",
|
|
20
|
-
WorkspaceVideoAvailable = "workspace-video-available",
|
|
21
|
-
Marketing = "marketing",
|
|
22
|
-
EditedVideoAvailable = "edited-video-available",
|
|
23
|
-
VideoRequestAvailable = "pay-tv-video-available",
|
|
24
|
-
VideoRequestDenied = "pay-tv-video-denied",
|
|
25
|
-
VideoReviewReminder = "term-update-review-reminder",
|
|
26
|
-
VideoReviewAddedToLibrary = "term-update-review-videos-added-to-library",
|
|
27
|
-
CustomLibraryVideoAvailable = "custom-library-video-available",
|
|
28
|
-
VideoProcessingFailed = "video-processing-failed",
|
|
29
|
-
StaffRequest = "new-staff-request",
|
|
30
|
-
StaffRequestFulfilled = "staff-request-fulfilment",
|
|
31
|
-
ChapterMergeSuccess = "media-concatenate-success",
|
|
32
|
-
SuggestEdit = "suggest-an-edit"
|
|
33
|
-
}
|
|
34
|
-
export declare enum NotificationActions {
|
|
35
|
-
Read = "notification:read"
|
|
36
|
-
}
|
|
37
|
-
export declare enum NotificationAppLinkModules {
|
|
38
|
-
Video = "video",
|
|
39
|
-
Url = "url",
|
|
40
|
-
Module = "module",
|
|
41
|
-
App = "app",
|
|
42
|
-
StaffRequest = "staff_request"
|
|
43
|
-
}
|
|
44
|
-
export declare enum NotificationModules {
|
|
45
|
-
LibraryReview = "libraryreview",
|
|
46
|
-
ContentUpdates = "newcontent"
|
|
47
|
-
}
|
|
48
1
|
export declare enum NotificationChannels {
|
|
49
2
|
Email = 0
|
|
50
3
|
}
|
|
51
|
-
/**
|
|
52
|
-
* The following notifications types can be mapped to proper
|
|
53
|
-
* AppLinks within Library Editor.
|
|
54
|
-
*/
|
|
55
|
-
export declare const SupportedLibraryEditorNotifications: string[];
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
|
-
import {
|
|
2
|
+
import { NotificationType } from '@clickview/shared';
|
|
3
3
|
export declare const NotificationsHelper: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* This is a manual override based on the notification type. This is only
|
|
8
|
-
* temporary as some noitifications don't have the correct alert type.
|
|
9
|
-
*/
|
|
4
|
+
createSuggestEditNotification: (data: ObjectHash) => ObjectHash;
|
|
5
|
+
getIconColor: (type: import("../../../../../shared/dist").NotificationAlertType) => "success" | "danger" | "warning" | "dark";
|
|
6
|
+
getIcon: (type: import("../../../../../shared/dist").NotificationAlertType) => import("../../../../../shared/dist/images/svg").localSvgs.CheckCircle | import("../../../../../shared/dist/images/svg").localSvgs.Info | import("../../../../../shared/dist/images/svg").localSvgs.Warning;
|
|
10
7
|
getIconColorByNotificationType: (type: NotificationType) => "danger" | "warning";
|
|
11
|
-
/**
|
|
12
|
-
* This is a manual override based on the notification type.
|
|
13
|
-
* Using this to detect marketing notifications as they don't have a fixed
|
|
14
|
-
* type atm.
|
|
15
|
-
*/
|
|
16
8
|
getIconByNotificationType: (type: NotificationType) => import("../../../../../shared/dist/images/svg").localSvgs;
|
|
17
9
|
getNotificationAction: (type: NotificationType) => string;
|
|
18
|
-
createSuggestEditNotification: (data: ObjectHash) => ObjectHash;
|
|
19
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseDataService } from '@clickview/common';
|
|
2
|
+
import { CollectionIdentifier } from '@clickview/shared';
|
|
2
3
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
2
|
import { Core } from '@clickview/common';
|
|
3
|
-
import { AppLinkReferrer } from
|
|
3
|
+
import { AppLinkReferrer } from '@clickview/shared';
|
|
4
4
|
import { StaffRequest } from "../../models";
|
|
5
5
|
interface StaffRequestsViewOptions extends Core.ViewOptions<StaffRequest> {
|
|
6
6
|
requestId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DialogError } from "../../../../shared/errors/primitives";
|
|
2
1
|
import { DialogViewOptions } from "../../../../shared/components";
|
|
2
|
+
import { DialogError } from '@clickview/shared';
|
|
3
3
|
export declare class NoLibrariesUploadError extends DialogError {
|
|
4
4
|
constructor();
|
|
5
5
|
get name(): string;
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class PendingItemsService extends
|
|
3
|
-
private pendingItems;
|
|
4
|
-
private videoDataService;
|
|
5
|
-
private videoUploadDataService;
|
|
1
|
+
import { BasePendingItemsService } from '@clickview/shared';
|
|
2
|
+
export declare class PendingItemsService extends BasePendingItemsService {
|
|
6
3
|
private alertService;
|
|
7
|
-
get name(): string;
|
|
8
|
-
get channelName(): string;
|
|
9
4
|
initialize(): void;
|
|
10
5
|
get lang(): string;
|
|
11
|
-
|
|
12
|
-
forceFetchPendingItems(): void;
|
|
13
|
-
retryPendingItem(model: Core.Model, callback?: () => void): void;
|
|
14
|
-
private itemStatusChanged;
|
|
15
|
-
getPendingItems(): Core.Collection;
|
|
16
|
-
private fetchPendingItems;
|
|
17
|
-
private updateViewModel;
|
|
18
|
-
/**
|
|
19
|
-
* Fetch every 5 seconds if any items are processing,
|
|
20
|
-
* otherwise fetch every 30 seconds.
|
|
21
|
-
*/
|
|
22
|
-
private getTimeoutLength;
|
|
6
|
+
private onReadyToWatch;
|
|
23
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Core } from '@clickview/common';
|
|
2
2
|
import { BaseDataService } from '@clickview/common';
|
|
3
|
+
import { BaseVideoUploadDataService } from '@clickview/shared';
|
|
3
4
|
import { Video } from "../../../shared/models";
|
|
4
|
-
export declare class VideoUploadDataService extends BaseDataService {
|
|
5
|
+
export declare class VideoUploadDataService extends BaseDataService implements BaseVideoUploadDataService {
|
|
5
6
|
get name(): string;
|
|
6
7
|
get channelName(): string;
|
|
7
8
|
get lang(): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseVideoUploadService } from '@clickview/shared';
|
|
2
|
+
export declare class VideoUploadService extends BaseVideoUploadService {
|
|
3
|
+
/**
|
|
4
|
+
* We override addFiles here because we don't want to start the upload
|
|
5
|
+
* if the user does not yet have any libraries
|
|
6
|
+
*/
|
|
7
|
+
addFiles(files: File[]): void;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './DropzoneWrapper';
|
|
2
1
|
export * from './ImageUploadDataService';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './UploadService';
|
|
2
|
+
export * from './VideoUploadService';
|
|
5
3
|
export * from './VideoUploadDataService';
|
|
4
|
+
export * from './VideoUploadService';
|
|
5
|
+
export * from './PendingItemsService';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -117,11 +117,6 @@ import './apps/migration-wizard/views/selected-videos/selected-videos.lang.json'
|
|
|
117
117
|
import './apps/migration-wizard/views/smart-migration/smart-migration.lang.json';
|
|
118
118
|
import './apps/migration-wizard/views/start/start.lang.json';
|
|
119
119
|
import './apps/migration-wizard/views/videos-added/videos-added.lang.json';
|
|
120
|
-
import './apps/notifications/components/notification-list/notification-list.lang.json';
|
|
121
|
-
import './apps/notifications/services/notifications-services.lang.json';
|
|
122
|
-
import './apps/notifications/utils/notifications-utils.lang.json';
|
|
123
|
-
import './apps/notifications/views/notifications/notifications.lang.json';
|
|
124
|
-
import './apps/notifications/views/popover/notifications-popover.lang.json';
|
|
125
120
|
import './apps/search/components/filters/filter-list/filter-list.lang.json';
|
|
126
121
|
import './apps/search/components/filters/filter-options/tag-filter-options/tag-filter-options.lang.json';
|
|
127
122
|
import './apps/search/components/filters/filters.lang.json';
|
|
@@ -142,10 +137,8 @@ import './apps/upload/components/processing-progress/process-progress.lang.json'
|
|
|
142
137
|
import './apps/upload/components/upload-actions/upload-actions.lang.json';
|
|
143
138
|
import './apps/upload/components/upload-folder-select/upload-folder-select.lang.json';
|
|
144
139
|
import './apps/upload/components/upload-video/upload-video.lang.json';
|
|
145
|
-
import './apps/upload/errors/internet-connectivity/internet-connectivity.lang.json';
|
|
146
140
|
import './apps/upload/errors/no-libraries-upload/no-libraries-upload.lang.json';
|
|
147
141
|
import './apps/upload/services/upload-services.lang.json';
|
|
148
|
-
import './apps/upload/utils/upload-utils.lang.json';
|
|
149
142
|
import './apps/upload/views/file-select/file-select.lang.json';
|
|
150
143
|
import './apps/upload/views/progress-summary/progress-summary.lang.json';
|
|
151
144
|
import './apps/upload/views/upload-button/upload-button.lang.json';
|
|
@@ -164,7 +157,6 @@ import './shared/components/edit-video/edit-production-info/edit-production-info
|
|
|
164
157
|
import './shared/components/edit-video/edit-season-info/edit-season-info.lang.json';
|
|
165
158
|
import './shared/components/edit-video/select-rating/select-rating.lang.json';
|
|
166
159
|
import './shared/components/page-footer/page-footer.lang.json';
|
|
167
|
-
import './shared/components/pagination/pagination.lang.json';
|
|
168
160
|
import './shared/components/tree-dropdown/tree-dropdown.lang.json';
|
|
169
161
|
import './shared/components/video-actions/video-actions.lang.json';
|
|
170
162
|
import './shared/components/video-basic-info/video-basic-info.lang.json';
|
|
@@ -183,7 +175,6 @@ import './shared/constants/empty-state-components/empty-state.lang.json';
|
|
|
183
175
|
import './shared/errors/authentication/authentication.lang.json';
|
|
184
176
|
import './shared/errors/customer-setting/customer-setting.lang.json';
|
|
185
177
|
import './shared/errors/email-not-verified/email-not-verified.lang.json';
|
|
186
|
-
import './shared/errors/file-type/file-type.lang.json';
|
|
187
178
|
import './shared/errors/forbidden-access/forbidden-access.lang.json';
|
|
188
179
|
import './shared/errors/local-cache-device-not-found/local-cache-device-not-found.lang.json';
|
|
189
180
|
import './shared/errors/no-beta-access/no-beta-access.lang.json';
|
|
@@ -4,7 +4,6 @@ export * from './file-select/FileSelectBehavior';
|
|
|
4
4
|
export * from './image-select-behavior/ImageSelectBehavior';
|
|
5
5
|
export * from './lock-layout-file-drop/LockLayoutFileDropBehavior';
|
|
6
6
|
export * from './backbone-validation/BackboneValidationBehavior';
|
|
7
|
-
export * from './empty-state/EmptyStateBehavior';
|
|
8
7
|
export * from './lazy-load/LazyLoadBehavior';
|
|
9
8
|
export * from './popup/PopupBehavior';
|
|
10
9
|
export * from './stickit/StickitBehavior';
|
|
@@ -15,7 +15,6 @@ export * from './LocalCacheDeviceCollection';
|
|
|
15
15
|
export * from './LocalCacheDownloadCollection';
|
|
16
16
|
export * from './SubtitleCollection';
|
|
17
17
|
export * from './RestrictionCollection';
|
|
18
|
-
export * from './PendingItemsCollection';
|
|
19
18
|
export * from './MetadataCollection';
|
|
20
19
|
export * from './FieldsCollection';
|
|
21
20
|
export * from './LinkCollection';
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
2
|
import { ObjectHash } from 'backbone';
|
|
3
3
|
import { Core } from '@clickview/common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type?: string;
|
|
7
|
-
className: string;
|
|
8
|
-
close?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface DialogButton extends PopupButton {
|
|
11
|
-
success?: boolean;
|
|
12
|
-
identifier?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface DialogViewOptions extends Core.ViewOptions {
|
|
15
|
-
title: string;
|
|
16
|
-
text: string;
|
|
17
|
-
buttons?: DialogButton[];
|
|
4
|
+
import { DialogOptions } from '@clickview/shared';
|
|
5
|
+
export interface DialogViewOptions extends DialogOptions, Core.ViewOptions {
|
|
18
6
|
result?: JQueryDeferred<any>;
|
|
19
7
|
}
|
|
20
8
|
export declare class DialogView extends Core.View {
|
|
@@ -15,7 +15,6 @@ export * from './checkbox/CheckboxComponent';
|
|
|
15
15
|
export * from './checkbox/BulkCheckboxComponent';
|
|
16
16
|
export * from './left-nav/LeftNavComponent';
|
|
17
17
|
export * from './page-footer/PageFooterComponent';
|
|
18
|
-
export * from './pagination/PaginationComponent';
|
|
19
18
|
export * from './video-basic-info/VideoBasicInfoComponent';
|
|
20
19
|
export * from './video-item-preview/VideoItemPreviewComponent';
|
|
21
20
|
export * from './video-preview/VideoPreviewComponent';
|
|
@@ -41,6 +40,5 @@ export * from './dialog/DialogView';
|
|
|
41
40
|
export * from './dropdown/DropdownButtonComponent';
|
|
42
41
|
export * from './dropdown/DropdownComponentCollection';
|
|
43
42
|
export * from './dropdown/DropdownItemComponent';
|
|
44
|
-
export * from './empty-state/EmptyStateComponent';
|
|
45
43
|
export * from './spinner-button/SpinnerButtonComponent';
|
|
46
44
|
export * from './tree-dropdown/TreeDropdownComponent';
|
|
@@ -13,21 +13,4 @@ export declare const EventNames: {
|
|
|
13
13
|
SELECTED_CHANGED: string;
|
|
14
14
|
CLOSE_BANNER: string;
|
|
15
15
|
};
|
|
16
|
-
Upload: {
|
|
17
|
-
/**
|
|
18
|
-
* This is fired when a file has finished uploading to file API. This event
|
|
19
|
-
* has nothing to do with posting the uploaded resource to the respective repository.
|
|
20
|
-
*/
|
|
21
|
-
UPLOAD_COMPLETE: string;
|
|
22
|
-
/**
|
|
23
|
-
* This is trigged when files are selected
|
|
24
|
-
* from either the FileSelectBehavior or the FileDropBehavior
|
|
25
|
-
*/
|
|
26
|
-
FILES_SELECTED: string;
|
|
27
|
-
/**
|
|
28
|
-
* This triggered by the upload service when it received ingest urls for all
|
|
29
|
-
* the files added via a call to UploadService.addFiles(files: File[])
|
|
30
|
-
*/
|
|
31
|
-
FILES_ADDED: string;
|
|
32
|
-
};
|
|
33
16
|
};
|
|
@@ -30,10 +30,11 @@ declare const DataChannels: {
|
|
|
30
30
|
FIELDS: string;
|
|
31
31
|
};
|
|
32
32
|
declare const ServiceChannels: {
|
|
33
|
+
PENDING_ITEMS: string;
|
|
33
34
|
VIDEO_UPLOAD: string;
|
|
34
35
|
SUBTITLE_UPLOAD: string;
|
|
35
36
|
RESOURCE_UPLOAD: string;
|
|
36
|
-
|
|
37
|
+
CONTEXTUAL_SEARCH: string;
|
|
37
38
|
VIDEO_DRAG_DROP: string;
|
|
38
39
|
FOLDER_DRAG_DROP: string;
|
|
39
40
|
SELECTED_VIDEO: string;
|
|
@@ -42,7 +43,6 @@ declare const ServiceChannels: {
|
|
|
42
43
|
VIDEO_MIXIN: string;
|
|
43
44
|
PAGE_VISIBILITY: string;
|
|
44
45
|
PAGE_TITLE: string;
|
|
45
|
-
CONTEXTUAL_SEARCH: string;
|
|
46
46
|
};
|
|
47
47
|
declare const GlobalChannels: {
|
|
48
48
|
ANALYTICS: string;
|
|
@@ -1,54 +1,61 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
declare const Services: {
|
|
2
|
+
ImageUrl: string;
|
|
3
|
+
PendingItems: string;
|
|
4
|
+
Alerts: string;
|
|
5
|
+
VideoUpload: string;
|
|
6
|
+
ResourceUpload: string;
|
|
7
|
+
SubtitleUpload: string;
|
|
8
|
+
VideoMixin: string;
|
|
9
|
+
ContextualSearch: string;
|
|
10
|
+
Context: string;
|
|
11
|
+
Notification: string;
|
|
12
|
+
Notifications: string;
|
|
13
|
+
PartialLoading: string;
|
|
14
|
+
NavLock: string;
|
|
15
|
+
DialogHelper: string;
|
|
16
|
+
Analytics: string;
|
|
17
|
+
VideoDragDrop: string;
|
|
18
|
+
FolderDragDrop: string;
|
|
19
|
+
SelectedVideo: string;
|
|
20
|
+
FolderCache: string;
|
|
21
|
+
LocalOptions: string;
|
|
22
|
+
ContextService: string;
|
|
23
|
+
PageVisibility: string;
|
|
24
|
+
PageTitle: string;
|
|
25
|
+
Language: string;
|
|
26
|
+
Intercom: string;
|
|
27
|
+
};
|
|
28
|
+
declare const DataServices: {
|
|
29
|
+
Config: string;
|
|
30
|
+
User: string;
|
|
31
|
+
Language: string;
|
|
32
|
+
Video: string;
|
|
33
|
+
VideoUpload: string;
|
|
34
|
+
Library: string;
|
|
35
|
+
Search: string;
|
|
36
|
+
Series: string;
|
|
37
|
+
Notification: string;
|
|
38
|
+
NotificationSocket: string;
|
|
39
|
+
Customer: string;
|
|
40
|
+
Notifications: string;
|
|
41
|
+
NotificationsSocket: string;
|
|
42
|
+
Settings: string;
|
|
43
|
+
StaffRequests: string;
|
|
44
|
+
MigrationVideo: string;
|
|
45
|
+
Tags: string;
|
|
46
|
+
ImageUpload: string;
|
|
47
|
+
Chapter: string;
|
|
48
|
+
Export: string;
|
|
49
|
+
LocalCache: string;
|
|
50
|
+
RestrictedVideo: string;
|
|
51
|
+
Ratings: string;
|
|
52
|
+
ContentUpdates: string;
|
|
53
|
+
DownloadProxy: string;
|
|
54
|
+
Resource: string;
|
|
55
|
+
Subtitle: string;
|
|
56
|
+
Link: string;
|
|
57
|
+
Company: string;
|
|
58
|
+
Person: string;
|
|
59
|
+
Fields: string;
|
|
60
|
+
};
|
|
54
61
|
export { Services, DataServices };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyStateComponentOptions } from
|
|
1
|
+
import { EmptyStateComponentOptions } from '@clickview/shared';
|
|
2
2
|
export interface EmptyStateOptions extends Pick<EmptyStateComponentOptions, Exclude<keyof EmptyStateComponentOptions, 'imageUrl'>> {
|
|
3
3
|
}
|
|
4
4
|
export declare const EmptyStateComponents: {
|
|
@@ -13,8 +13,6 @@ export * from './ImageType';
|
|
|
13
13
|
export * from './FileIdType';
|
|
14
14
|
export * from './UserRole';
|
|
15
15
|
export * from './TimeType';
|
|
16
|
-
export * from './AppLinkReferrer';
|
|
17
|
-
export * from './CurationStatus';
|
|
18
16
|
export * from './UploadInteractionType';
|
|
19
17
|
export * from './RestrictedObjectType';
|
|
20
18
|
export * from './CitationType';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DialogError } from
|
|
2
|
-
import { DialogViewOptions } from "../../components";
|
|
1
|
+
import { DialogError, DialogOptions } from '@clickview/shared';
|
|
3
2
|
export declare class AuthenticationError extends DialogError {
|
|
4
3
|
constructor();
|
|
5
4
|
get name(): string;
|
|
6
|
-
get dialogOptions():
|
|
5
|
+
get dialogOptions(): DialogOptions;
|
|
7
6
|
onDone(): void;
|
|
8
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './authentication/AuthenticationError';
|
|
2
|
-
export * from './file-type/FileTypeError';
|
|
3
2
|
export * from './forbidden-access/ForbiddenAccessError';
|
|
4
3
|
export * from './not-found/NotFoundError';
|
|
5
4
|
export * from './old-version/OldVersionError';
|
|
@@ -8,4 +7,3 @@ export * from './customer-setting/CustomerSettingError';
|
|
|
8
7
|
export * from './local-cache-device-not-found/LocalCacheDeviceNotFoundError';
|
|
9
8
|
export * from './email-not-verified/EmailNotVerifiedError';
|
|
10
9
|
export * from './no-beta-access/NoBetaAccessError';
|
|
11
|
-
export * from './primitives';
|
package/dist/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { DialogError } from
|
|
2
|
-
import { DialogViewOptions } from "../../components";
|
|
1
|
+
import { DialogError, DialogOptions } from '@clickview/shared';
|
|
3
2
|
export declare class LocalCacheDeviceNotFoundError extends DialogError {
|
|
4
3
|
constructor();
|
|
5
4
|
get name(): string;
|
|
6
|
-
get dialogOptions():
|
|
5
|
+
get dialogOptions(): DialogOptions;
|
|
7
6
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DialogError } from
|
|
2
|
-
import { DialogViewOptions } from "../../components";
|
|
1
|
+
import { DialogError, DialogOptions } from '@clickview/shared';
|
|
3
2
|
export declare class OldVersionError extends DialogError {
|
|
4
3
|
constructor(oldVersion: string, newVersion: string);
|
|
5
4
|
get name(): string;
|
|
6
|
-
get dialogOptions():
|
|
5
|
+
get dialogOptions(): DialogOptions;
|
|
7
6
|
onDone(): void;
|
|
8
7
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { DialogError } from
|
|
2
|
-
import { DialogViewOptions } from "../../components";
|
|
1
|
+
import { DialogError, DialogOptions } from '@clickview/shared';
|
|
3
2
|
export declare class TooManyFilesError extends DialogError {
|
|
4
3
|
constructor();
|
|
5
4
|
get name(): string;
|
|
6
|
-
get dialogOptions():
|
|
5
|
+
get dialogOptions(): DialogOptions;
|
|
7
6
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SortType } from
|
|
2
|
-
import { CollectionIdentifier } from './CollectionIdentifier';
|
|
1
|
+
import { SortType, CollectionIdentifier } from '@clickview/shared';
|
|
3
2
|
export declare class LibraryFoldersIdentifier extends CollectionIdentifier {
|
|
4
3
|
constructor(id: string, sort: SortType, cursor?: string);
|
|
5
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { CollectionIdentifier, CollectionIdentifierOptions } from
|
|
2
|
+
import { CollectionIdentifier, CollectionIdentifierOptions } from '@clickview/shared';
|
|
3
3
|
import { Option } from "../../apps/search/models";
|
|
4
4
|
interface RecentVideoCollectionIdentifierOptions extends CollectionIdentifierOptions {
|
|
5
5
|
libraryIds: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { CollectionIdentifier, CollectionIdentifierOptions } from
|
|
2
|
+
import { CollectionIdentifier, CollectionIdentifierOptions } from '@clickview/shared';
|
|
3
3
|
import { Option } from "../../apps/search/models";
|
|
4
4
|
interface RecentVideoSubjectCollectionIdentifierOptions extends CollectionIdentifierOptions {
|
|
5
5
|
libraryIds: string[];
|