@clickview/library-editor 1.1.5 → 1.1.6-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/bundle.js +2 -2
  2. package/dist/en.json +1 -1
  3. package/dist/library-editor-app.css +2 -8
  4. package/dist/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +1 -1
  5. package/dist/src/apps/index.d.ts +1 -1
  6. package/dist/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +1 -1
  7. package/dist/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +1 -1
  8. package/dist/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +1 -1
  9. package/dist/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +1 -1
  10. package/dist/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +1 -1
  11. package/dist/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +1 -1
  12. package/dist/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +1 -1
  13. package/dist/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +1 -1
  14. package/dist/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +1 -1
  15. package/dist/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +1 -1
  16. package/dist/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +1 -1
  17. package/dist/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +1 -1
  18. package/dist/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +1 -1
  19. package/dist/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +1 -1
  20. package/dist/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +1 -1
  21. package/dist/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +1 -1
  22. package/dist/src/apps/library-editor/services/ExportDataService.d.ts +1 -1
  23. package/dist/src/apps/library-editor/services/LibraryDataService.d.ts +1 -2
  24. package/dist/src/apps/library-editor/services/VideoDataService.d.ts +2 -1
  25. package/dist/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +2 -0
  26. package/dist/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +1 -1
  27. package/dist/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +1 -1
  28. package/dist/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +1 -1
  29. package/dist/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +1 -1
  30. package/dist/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +1 -1
  31. package/dist/src/apps/notifications/constants/NotificationsAppVariables.d.ts +7 -0
  32. package/dist/src/apps/notifications/constants/index.d.ts +0 -0
  33. package/dist/src/apps/notifications/utils/Constants.d.ts +0 -52
  34. package/dist/src/apps/notifications/utils/NotificationsHelper.d.ts +4 -13
  35. package/dist/src/apps/notifications/utils/index.d.ts +0 -1
  36. package/dist/src/apps/search/services/SearchDataService.d.ts +1 -1
  37. package/dist/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +1 -1
  38. package/dist/src/apps/upload/errors/index.d.ts +0 -1
  39. package/dist/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +1 -1
  40. package/dist/src/apps/upload/services/PendingItemsService.d.ts +3 -19
  41. package/dist/src/apps/upload/services/VideoUploadDataService.d.ts +2 -1
  42. package/dist/src/apps/upload/services/VideoUploadService.d.ts +8 -0
  43. package/dist/src/apps/upload/services/index.d.ts +3 -3
  44. package/dist/src/index.d.ts +0 -9
  45. package/dist/src/shared/behaviors/index.d.ts +0 -1
  46. package/dist/src/shared/collections/index.d.ts +0 -1
  47. package/dist/src/shared/components/dialog/DialogView.d.ts +2 -14
  48. package/dist/src/shared/components/index.d.ts +0 -2
  49. package/dist/src/shared/constants/EventNames.d.ts +0 -17
  50. package/dist/src/shared/constants/ImageUrls.d.ts +0 -1
  51. package/dist/src/shared/constants/RadioChannels.d.ts +2 -2
  52. package/dist/src/shared/constants/Services.d.ts +60 -53
  53. package/dist/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +1 -1
  54. package/dist/src/shared/enums/SortTypes.d.ts +0 -7
  55. package/dist/src/shared/enums/index.d.ts +0 -2
  56. package/dist/src/shared/errors/authentication/AuthenticationError.d.ts +2 -3
  57. package/dist/src/shared/errors/customer-setting/CustomerSettingError.d.ts +1 -1
  58. package/dist/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +1 -1
  59. package/dist/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +1 -1
  60. package/dist/src/shared/errors/index.d.ts +0 -2
  61. package/dist/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +2 -3
  62. package/dist/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +1 -1
  63. package/dist/src/shared/errors/old-version/OldVersionError.d.ts +2 -3
  64. package/dist/src/shared/errors/too-many-files/TooManyFilesError.d.ts +2 -3
  65. package/dist/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +1 -2
  66. package/dist/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +1 -1
  67. package/dist/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +1 -1
  68. package/dist/src/shared/interfaces/VideoCollectionIdentifier.d.ts +1 -2
  69. package/dist/src/shared/interfaces/index.d.ts +0 -1
  70. package/dist/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +1 -0
  71. package/dist/src/shared/services/UserDataService.d.ts +2 -3
  72. package/dist/src/shared/services/index.d.ts +0 -1
  73. package/dist/src/shared/utils/SortHelper.d.ts +2 -1
  74. package/dist/src/shared/utils/index.d.ts +0 -3
  75. package/package.json +5 -7
  76. package/dist/bundle.js.map +0 -1
  77. package/dist/library-editor-app.css.map +0 -1
  78. package/dist/src/apps/notifications/collections/NotificationCollection.d.ts +0 -6
  79. package/dist/src/apps/notifications/components/index.d.ts +0 -3
  80. package/dist/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +0 -23
  81. package/dist/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +0 -26
  82. package/dist/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +0 -9
  83. package/dist/src/apps/notifications/models/Notification.d.ts +0 -3
  84. package/dist/src/apps/notifications/models/index.d.ts +0 -1
  85. package/dist/src/apps/notifications/services/NotificationDataService.d.ts +0 -14
  86. package/dist/src/apps/notifications/services/NotificationService.d.ts +0 -33
  87. package/dist/src/apps/notifications/services/NotificationSocketService.d.ts +0 -8
  88. package/dist/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +0 -4
  89. package/dist/src/apps/notifications/services/index.d.ts +0 -4
  90. package/dist/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +0 -10
  91. package/dist/src/apps/notifications/views/header/NotificationHeaderView.d.ts +0 -14
  92. package/dist/src/apps/notifications/views/index.d.ts +0 -3
  93. package/dist/src/apps/notifications/views/notifications/NotificationsView.d.ts +0 -26
  94. package/dist/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +0 -33
  95. package/dist/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
  96. package/dist/src/apps/upload/enums/PendingItemStatus.d.ts +0 -5
  97. package/dist/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
  98. package/dist/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
  99. package/dist/src/apps/upload/services/UploadService.d.ts +0 -64
  100. package/dist/src/apps/upload/utils/PendingItemsHelper.d.ts +0 -9
  101. package/dist/src/apps/upload/utils/index.d.ts +0 -1
  102. package/dist/src/shared/behaviors/empty-state/EmptyStateBehavior.d.ts +0 -22
  103. package/dist/src/shared/collections/PendingItemsCollection.d.ts +0 -8
  104. package/dist/src/shared/components/empty-state/EmptyStateComponent.d.ts +0 -24
  105. package/dist/src/shared/components/pagination/PaginationComponent.d.ts +0 -28
  106. package/dist/src/shared/enums/AppLinkReferrer.d.ts +0 -3
  107. package/dist/src/shared/enums/CurationStatus.d.ts +0 -12
  108. package/dist/src/shared/errors/file-type/FileTypeError.d.ts +0 -15
  109. package/dist/src/shared/errors/primitives/AlertError.d.ts +0 -4
  110. package/dist/src/shared/errors/primitives/DialogError.d.ts +0 -9
  111. package/dist/src/shared/errors/primitives/ErrorPageError.d.ts +0 -7
  112. package/dist/src/shared/errors/primitives/index.d.ts +0 -3
  113. package/dist/src/shared/interfaces/CollectionIdentifier.d.ts +0 -7
  114. package/dist/src/shared/services/LanguageDataService.d.ts +0 -12
  115. package/dist/src/shared/utils/EmptyStateHelper.d.ts +0 -4
  116. package/dist/src/shared/utils/FileExtensionsHelper.d.ts +0 -9
  117. package/dist/src/shared/utils/handlebars/LangHelper.d.ts +0 -5
  118. package/dist/src/shared/utils/handlebars/index.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { DialogError } from "../../../../shared/errors/primitives";
1
+ import { DialogError } from '@clickview/shared';
2
2
  import { DialogViewOptions } from "../../../../shared/components";
3
3
  export declare class BackupProgressError extends DialogError {
4
4
  constructor();
@@ -1,4 +1,4 @@
1
- import { DialogError } from "../../../../shared/errors/primitives";
1
+ import { DialogError } from '@clickview/shared';
2
2
  import { DialogViewOptions } from "../../../../shared/components";
3
3
  export declare class MigrationFinalisationError extends DialogError {
4
4
  constructor();
@@ -1,4 +1,4 @@
1
- import { DialogError } from "../../../../shared/errors/primitives";
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 "../../../../shared/errors/primitives";
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
+ }
@@ -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 { NotificationAlertType, NotificationType } from "./Constants";
2
+ import { NotificationType } from '@clickview/shared';
3
3
  export declare const NotificationsHelper: {
4
- getIconColor: (type: NotificationAlertType) => "success" | "danger" | "warning" | "dark";
5
- getIcon: (type: NotificationAlertType) => import("../../../../../shared/dist/images/svg").localSvgs.CheckCircle | import("../../../../../shared/dist/images/svg").localSvgs.Info | import("../../../../../shared/dist/images/svg").localSvgs.Warning;
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,3 +1,2 @@
1
1
  export * from './Constants';
2
- export * from './NotificationAppLinkHelper';
3
2
  export * from './NotificationsHelper';
@@ -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 "../../../../shared/enums";
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,2 +1 @@
1
- export * from './internet-connectivity/InternetConnectivityError';
2
1
  export * from './no-libraries-upload/NoLibrariesUploadError';
@@ -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 { Core } from '@clickview/common';
2
- export declare class PendingItemsService extends Core.Service {
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
- clearPendingItem(model: Core.Model, callback?: () => void): void;
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 './PendingItemsService';
4
- export * from './UploadService';
2
+ export * from './VideoUploadService';
5
3
  export * from './VideoUploadDataService';
4
+ export * from './VideoUploadService';
5
+ export * from './PendingItemsService';
@@ -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
- export interface PopupButton {
5
- text: string;
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
  };
@@ -5,7 +5,6 @@ export declare const ImageUrls: {
5
5
  Library: string;
6
6
  Folder: string;
7
7
  Search: string;
8
- Notifications: string;
9
8
  VideoAccess: string;
10
9
  AwaitingReview: string;
11
10
  PastReleases: string;
@@ -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
- PENDING_ITEMS: string;
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 enum Services {
2
- Notifications = "NotificationService",
3
- Alerts = "AlertService",
4
- PartialLoading = "PartialLoadingService",
5
- NavLock = "NavLockService",
6
- DialogHelper = "DialogHelper",
7
- Analytics = "AnalyticsService",
8
- VideoUpload = "VideoUploadService",
9
- ResourceUpload = "ResourceUploadService",
10
- SubtitleUpload = "SubtitleUploadService",
11
- PendingItems = "PendingItemsService",
12
- VideoDragDrop = "VideoDragDropService",
13
- FolderDragDrop = "FolderDragDropService",
14
- SelectedVideo = "SelectedVideoService",
15
- FolderCache = "FolderCacheService",
16
- LocalOptions = "LocalOptionsService",
17
- ContextService = "ContextService",
18
- VideoMixin = "VideoMixinService",
19
- PageVisibility = "PageVisibility",
20
- PageTitle = "PageTitle",
21
- Language = "LanguageService",
22
- Intercom = "IntercomService"
23
- }
24
- declare enum DataServices {
25
- Config = "ConfigDataService",
26
- User = "UserDataService",
27
- Customer = "CustomerDataService",
28
- Library = "LibraryDataService",
29
- Video = "VideoDataService",
30
- Notifications = "NotificationDataService",
31
- NotificationsSocket = "NotificationSocketService",
32
- Settings = "SettingsDataService",
33
- StaffRequests = "StaffRequestDataService",
34
- MigrationVideo = "MigrationVideoDataService",
35
- Tags = "TagDataService",
36
- VideoUpload = "VideoUpload",
37
- Series = "SeriesDataService",
38
- ImageUpload = "ImageUploadDataService",
39
- Chapter = "ChapterDataService",
40
- Export = "ExportDataService",
41
- LocalCache = "LocalCacheDataService",
42
- RestrictedVideo = "RestrictedVideoDataService",
43
- Ratings = "RatingsDataService",
44
- Language = "LanguageDataService",
45
- ContentUpdates = "ContentUpdatesDataService",
46
- DownloadProxy = "DownloadProxyDataService",
47
- Resource = "ResourceDataService",
48
- Subtitle = "SubtitleDataService",
49
- Link = "LinkDataService",
50
- Company = "CompanyDataService",
51
- Person = "PersonDataService",
52
- Fields = "FieldsDataService"
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 "../../components";
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: {
@@ -1,10 +1,3 @@
1
- export declare enum SortType {
2
- MostRecent = 1,
3
- AtoZ = 2,
4
- ProductionYear = 3,
5
- Newest = 4,
6
- SeriesSort = 5
7
- }
8
1
  export declare enum ExportServiceSortType {
9
2
  MostRecent = 0,
10
3
  LeastRecent = 1,
@@ -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 "../primitives";
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(): DialogViewOptions;
5
+ get dialogOptions(): DialogOptions;
7
6
  onDone(): void;
8
7
  }
@@ -1,4 +1,4 @@
1
- import { ErrorPageError } from "../primitives";
1
+ import { ErrorPageError } from '@clickview/shared';
2
2
  import { SettingName } from "../../enums";
3
3
  export declare class CustomerSettingError extends ErrorPageError {
4
4
  settingName: SettingName;
@@ -1,4 +1,4 @@
1
- import { ErrorPageError } from "../primitives";
1
+ import { ErrorPageError } from '@clickview/shared';
2
2
  export declare class EmailNotVerifiedError extends ErrorPageError {
3
3
  onlineUrl: string;
4
4
  constructor(onlineUrl: string);
@@ -1,4 +1,4 @@
1
- import { ErrorPageError } from "../primitives";
1
+ import { ErrorPageError } from '@clickview/shared';
2
2
  import { UserRole } from "../../enums/UserRole";
3
3
  export declare class ForbiddenAccessError extends ErrorPageError {
4
4
  acceptedRoles: UserRole[];
@@ -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';
@@ -1,7 +1,6 @@
1
- import { DialogError } from "../primitives";
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(): DialogViewOptions;
5
+ get dialogOptions(): DialogOptions;
7
6
  }
@@ -1,4 +1,4 @@
1
- import { ErrorPageError } from "../primitives";
1
+ import { ErrorPageError } from '@clickview/shared';
2
2
  export declare class NoBetaAccessError extends ErrorPageError {
3
3
  private marketingSiteUrl;
4
4
  constructor(marketingSiteUrl: string);
@@ -1,8 +1,7 @@
1
- import { DialogError } from "../primitives";
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(): DialogViewOptions;
5
+ get dialogOptions(): DialogOptions;
7
6
  onDone(): void;
8
7
  }
@@ -1,7 +1,6 @@
1
- import { DialogError } from "../primitives";
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(): DialogViewOptions;
5
+ get dialogOptions(): DialogOptions;
7
6
  }
@@ -1,5 +1,4 @@
1
- import { SortType } from "../enums";
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 "./CollectionIdentifier";
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 "./CollectionIdentifier";
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[];