@clickview/library-editor 1.1.3-dev.0 → 1.1.3

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 (58) hide show
  1. package/dist/bundle.js +2 -100023
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/cv-app-dev.js +104026 -0
  4. package/dist/cv-app-dev.js.map +1 -0
  5. package/dist/cv-svg-dev.js +1449 -0
  6. package/dist/cv-svg-dev.js.map +1 -0
  7. package/dist/en.json +1 -1419
  8. package/dist/library-editor-app.css +316 -2599
  9. package/dist/library-editor-app.css.map +1 -1
  10. package/dist/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +1 -1
  11. package/dist/src/apps/index.d.ts +1 -1
  12. package/dist/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +1 -1
  13. package/dist/src/apps/library-editor/services/ExportDataService.d.ts +1 -1
  14. package/dist/src/apps/notifications/utils/Constants.d.ts +52 -0
  15. package/dist/src/apps/notifications/utils/NotificationsHelper.d.ts +13 -4
  16. package/dist/src/apps/notifications/utils/index.d.ts +1 -0
  17. package/dist/src/apps/search/components/index.d.ts +2 -0
  18. package/dist/src/apps/search/components/instant-search/index.d.ts +4 -0
  19. package/dist/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +15 -0
  20. package/dist/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +9 -0
  21. package/dist/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +9 -0
  22. package/dist/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +15 -0
  23. package/dist/src/apps/search/components/search-context/SearchContextComponent.d.ts +18 -0
  24. package/dist/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +11 -0
  25. package/dist/src/apps/search/services/ContextualSearchService.d.ts +37 -0
  26. package/dist/src/apps/search/services/SearchDataService.d.ts +1 -1
  27. package/dist/src/apps/search/views/search-bar/SearchBarView.d.ts +102 -0
  28. package/dist/src/apps/search/views/search-bar/templates/index.d.ts +9 -0
  29. package/dist/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +1 -1
  30. package/dist/src/index.d.ts +6 -0
  31. package/dist/src/shared/behaviors/index.d.ts +1 -0
  32. package/dist/src/shared/behaviors/popover/PopoverBehavior.d.ts +40 -0
  33. package/dist/src/shared/behaviors/tooltip/TooltipBehavior.d.ts +12 -0
  34. package/dist/src/shared/components/index.d.ts +2 -0
  35. package/dist/src/shared/components/thumbnail/ThumbnailComponent.d.ts +32 -0
  36. package/dist/src/shared/constants/ImageUrls.d.ts +1 -0
  37. package/dist/src/shared/constants/Services.d.ts +1 -0
  38. package/dist/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +1 -1
  39. package/dist/src/shared/enums/SortTypes.d.ts +7 -0
  40. package/dist/src/shared/enums/index.d.ts +1 -0
  41. package/dist/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +2 -1
  42. package/dist/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +1 -1
  43. package/dist/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +1 -1
  44. package/dist/src/shared/interfaces/Tooltip.d.ts +6 -0
  45. package/dist/src/shared/interfaces/VideoCollectionIdentifier.d.ts +2 -1
  46. package/dist/src/shared/interfaces/index.d.ts +1 -0
  47. package/dist/src/shared/services/ContextService.d.ts +38 -0
  48. package/dist/src/shared/services/LanguageService.d.ts +16 -0
  49. package/dist/src/shared/services/UserDataService.d.ts +1 -1
  50. package/dist/src/shared/utils/MaskHelper.d.ts +15 -0
  51. package/dist/src/shared/utils/SortHelper.d.ts +1 -2
  52. package/dist/src/shared/utils/index.d.ts +2 -0
  53. package/dist/src/shared/utils/search/InstantSearchHelper.d.ts +21 -0
  54. package/dist/src/shared/utils/search/RecentSearchHelper.d.ts +12 -0
  55. package/dist/src/shared/utils/search/SearchTypes.d.ts +28 -0
  56. package/dist/src/shared/utils/search/TypeaheadHelper.d.ts +76 -0
  57. package/dist/src/shared/utils/search/raw-search-components/confirm-selection/ConfirmSelectionComponent.d.ts +12 -0
  58. package/package.json +103 -103
@@ -1,3 +1,55 @@
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
+ }
1
48
  export declare enum NotificationChannels {
2
49
  Email = 0
3
50
  }
51
+ /**
52
+ * The following notifications types can be mapped to proper
53
+ * AppLinks within Library Editor.
54
+ */
55
+ export declare const SupportedLibraryEditorNotifications: string[];
@@ -1,10 +1,19 @@
1
1
  import { ObjectHash } from 'backbone';
2
- import { NotificationType } from '@clickview/shared';
2
+ import { NotificationAlertType, NotificationType } from "./Constants";
3
3
  export declare const NotificationsHelper: {
4
- createSuggestEditNotification: (data: ObjectHash) => ObjectHash;
5
- getIconColor: (type: import("../../../../../shared/dist").NotificationAlertType) => "dark" | "success" | "danger" | "warning";
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;
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
+ */
7
10
  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
+ */
8
16
  getIconByNotificationType: (type: NotificationType) => import("../../../../../shared/dist/images/svg").localSvgs;
9
17
  getNotificationAction: (type: NotificationType) => string;
18
+ createSuggestEditNotification: (data: ObjectHash) => ObjectHash;
10
19
  };
@@ -1,2 +1,3 @@
1
1
  export * from './Constants';
2
+ export * from './NotificationAppLinkHelper';
2
3
  export * from './NotificationsHelper';
@@ -0,0 +1,2 @@
1
+ export * from './search-tips/SearchTipsComponent';
2
+ export * from './search-context/SearchContextComponent';
@@ -0,0 +1,4 @@
1
+ export * from './recent-search/RecentSearchResultComponent';
2
+ export * from './series/SeriesSearchResultComponent';
3
+ export * from './tag/TagSearchResultComponent';
4
+ export * from './video-result/VideoSearchResultComponent';
@@ -0,0 +1,15 @@
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 {};
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,37 @@
1
+ import { Core } from '@clickview/common';
2
+ export interface SearchContext {
3
+ appLink: Core.AppLink;
4
+ searchTag: string;
5
+ title?: string;
6
+ filterParam: string;
7
+ filterValue?: string;
8
+ setFilterValue: (context: SearchContext, self: any) => void;
9
+ }
10
+ declare class StaticContextualSearchService extends Core.Service {
11
+ private static instance;
12
+ private searchContext;
13
+ static get Instance(): StaticContextualSearchService;
14
+ initialize(): void;
15
+ get name(): string;
16
+ get lang(): string;
17
+ getSearchContext(): Core.Model;
18
+ /**
19
+ * Event listeners
20
+ */
21
+ private onRouteChange;
22
+ private onTypeaheadToggle;
23
+ /**
24
+ * Context mutation methods
25
+ */
26
+ private setSearchContext;
27
+ private updateSearchContext;
28
+ private setFilterValue;
29
+ private resetSearchContext;
30
+ /**
31
+ * Validation methods
32
+ */
33
+ private isValidSearchContext;
34
+ private inSearchView;
35
+ }
36
+ export declare const ContextualSearchService: StaticContextualSearchService;
37
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { BaseDataService } from '@clickview/common';
2
- import { CollectionIdentifier } from '@clickview/shared';
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;
@@ -0,0 +1,102 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from '@clickview/common';
3
+ export interface SearchBarViewOptions extends Core.ViewOptions {
4
+ showRecentSearch?: boolean;
5
+ }
6
+ export declare class SearchBarView extends Core.View {
7
+ protected options: SearchBarViewOptions;
8
+ private currentUser;
9
+ private libraryCollection;
10
+ private storageHelper;
11
+ private recentSearchEngine;
12
+ private viewCache;
13
+ private searchInput;
14
+ private searchContext;
15
+ private preventToggleEvent;
16
+ constructor(options: SearchBarViewOptions);
17
+ initialize(): void;
18
+ get name(): string;
19
+ get title(): boolean;
20
+ get tagName(): string;
21
+ get template(): any;
22
+ get lang(): string;
23
+ get channelName(): string;
24
+ get className(): string;
25
+ get defaults(): ObjectHash;
26
+ get elements(): ObjectHash;
27
+ events(): ObjectHash;
28
+ get bindings(): ObjectHash;
29
+ regions(): ObjectHash;
30
+ private get recentSearchKey();
31
+ private bindListeners;
32
+ /**
33
+ * View Cache management
34
+ */
35
+ private getOrCacheView;
36
+ private clearViewCache;
37
+ private getDynamicTemplate;
38
+ private getLimits;
39
+ /**
40
+ * Recent search logic
41
+ */
42
+ private updateSearchHistory;
43
+ private handleRecentSearch;
44
+ private onDeleteRecentSearch;
45
+ private getInstantSearchAppLink;
46
+ /**
47
+ * Typeahead event handlers
48
+ */
49
+ private onTypeaheadSelect;
50
+ private onClickSearch;
51
+ private onSubmit;
52
+ private submitQuery;
53
+ private resetQuery;
54
+ private updateInitialQuery;
55
+ private logSearch;
56
+ /**
57
+ * When the user clicks away from the typeahead, the close event will be fired, unbinding the delete
58
+ * event for recent search. Re-selecting the typehead will open it BUT it won't re-fetch the results and
59
+ * render event won't be fired. We need to manually re-bind the click handlers to ensure the delete
60
+ * functionality is retained.
61
+ */
62
+ private onTypeaheadOpen;
63
+ private onBeforeTypeaheadClose;
64
+ private onTypeaheadClose;
65
+ private showMask;
66
+ private hideMask;
67
+ private alignTypeahead;
68
+ private onTypeaheadRender;
69
+ private initTypeaheadListeners;
70
+ private initNoLibrariesTypeaheadListeners;
71
+ private onKeydown;
72
+ private onResetSearchContext;
73
+ /**
74
+ * Bloodhound & Typeadhead configs
75
+ */
76
+ private getRecentSearchBloodhound;
77
+ private getDynamicBloodhoundConfig;
78
+ private getDynamicTypeaheadConfig;
79
+ private getDynamicOptions;
80
+ /**
81
+ * Typeahead sources
82
+ */
83
+ private getRecentSearchSources;
84
+ private getDirectSearchSources;
85
+ private getDynamicSearchSources;
86
+ private getSources;
87
+ private getNoLibrariesSource;
88
+ private initializeTypeahead;
89
+ private hasLibraries;
90
+ private getLibraryIds;
91
+ /**
92
+ * Render methods
93
+ */
94
+ viewOptions(): ObjectHash;
95
+ get requiredResources(): Core.RequiredResourceHash;
96
+ private renderSearchTips;
97
+ private renderSearch;
98
+ private renderPartialSearch;
99
+ private renderSearchContext;
100
+ onRender(): void;
101
+ onClose(): void;
102
+ }
@@ -0,0 +1,9 @@
1
+ import FolderResult from './FolderResult.hbs';
2
+ import DirectSearchResult from './DirectSearchResult.hbs';
3
+ import Loading from './Loading.hbs';
4
+ import NotFound from './NotFound.hbs';
5
+ import ResultFooter from './ResultFooter.hbs';
6
+ import ResultHeader from './ResultHeader.hbs';
7
+ import RecentSearchHeader from './RecentSearchHeader.hbs';
8
+ import NoLibraries from './NoLibraries.hbs';
9
+ export { FolderResult, DirectSearchResult, Loading, NotFound, ResultFooter, ResultHeader, RecentSearchHeader, NoLibraries };
@@ -1,6 +1,6 @@
1
1
  import { ObjectHash } from 'backbone';
2
2
  import { Core } from '@clickview/common';
3
- import { AppLinkReferrer } from '@clickview/shared';
3
+ import { AppLinkReferrer } from "../../../../shared/enums";
4
4
  import { StaffRequest } from "../../models";
5
5
  interface StaffRequestsViewOptions extends Core.ViewOptions<StaffRequest> {
6
6
  requestId?: string;
@@ -117,6 +117,11 @@ 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';
120
125
  import './apps/search/components/filters/filter-list/filter-list.lang.json';
121
126
  import './apps/search/components/filters/filter-options/tag-filter-options/tag-filter-options.lang.json';
122
127
  import './apps/search/components/filters/filters.lang.json';
@@ -159,6 +164,7 @@ import './shared/components/edit-video/edit-production-info/edit-production-info
159
164
  import './shared/components/edit-video/edit-season-info/edit-season-info.lang.json';
160
165
  import './shared/components/edit-video/select-rating/select-rating.lang.json';
161
166
  import './shared/components/page-footer/page-footer.lang.json';
167
+ import './shared/components/pagination/pagination.lang.json';
162
168
  import './shared/components/video-actions/video-actions.lang.json';
163
169
  import './shared/components/video-basic-info/video-basic-info.lang.json';
164
170
  import './shared/components/video-description/video-description.lang.json';
@@ -4,6 +4,7 @@ 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';
7
8
  export * from './lazy-load/LazyLoadBehavior';
8
9
  export * from './popup/PopupBehavior';
9
10
  export * from './stickit/StickitBehavior';
@@ -0,0 +1,40 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from '@clickview/common';
3
+ export declare enum PopoverPlacement {
4
+ auto = "auto",
5
+ top = "top",
6
+ bottom = "bottom",
7
+ left = "left",
8
+ right = "right"
9
+ }
10
+ export declare type PopoverSize = 'popover-sm' | 'popover-md' | 'popover-lg';
11
+ export interface PopoverBehaviorOptions {
12
+ toggleEventName?: string;
13
+ renderContent: (region: string) => void;
14
+ placement?: PopoverPlacement;
15
+ title?: string;
16
+ containerSelector?: string;
17
+ size?: PopoverSize;
18
+ boundary?: any;
19
+ customClasses?: string;
20
+ }
21
+ export declare class PopoverBehavior extends Core.Behavior {
22
+ options: PopoverBehaviorOptions;
23
+ private popoverInitialized;
24
+ get defaults(): ObjectHash;
25
+ set defaults(defaults: ObjectHash);
26
+ get ui(): ObjectHash;
27
+ set ui(ui: ObjectHash);
28
+ events(): ObjectHash;
29
+ private bindListeners;
30
+ private bindBodyClickListener;
31
+ private bindDropdownListener;
32
+ private onPopoverInserted;
33
+ private onPopoverHidden;
34
+ private toggle;
35
+ private hide;
36
+ private onClickPopover;
37
+ private onClickOutside;
38
+ private getTrigger;
39
+ private onAttach;
40
+ }
@@ -0,0 +1,12 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from '@clickview/common';
3
+ export declare class TooltipBehavior extends Core.Behavior {
4
+ get defaults(): ObjectHash;
5
+ set defaults(defaults: ObjectHash);
6
+ get ui(): ObjectHash;
7
+ set ui(ui: ObjectHash);
8
+ private getElement;
9
+ private getOptions;
10
+ onRender(): void;
11
+ onBeforeDetach(): void;
12
+ }
@@ -15,6 +15,7 @@ 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';
18
19
  export * from './video-basic-info/VideoBasicInfoComponent';
19
20
  export * from './video-item-preview/VideoItemPreviewComponent';
20
21
  export * from './video-preview/VideoPreviewComponent';
@@ -40,4 +41,5 @@ export * from './dialog/DialogView';
40
41
  export * from './dropdown/DropdownButtonComponent';
41
42
  export * from './dropdown/DropdownComponentCollection';
42
43
  export * from './dropdown/DropdownItemComponent';
44
+ export * from './empty-state/EmptyStateComponent';
43
45
  export * from './spinner-button/SpinnerButtonComponent';
@@ -0,0 +1,32 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from '@clickview/common';
3
+ import { Video } from "../../models";
4
+ import { ImageOptions } from "../../utils";
5
+ export interface ThumbnailComponentOptions extends Core.ComponentOptions {
6
+ model: Video;
7
+ onClickHandler?: Function;
8
+ thumbnailOptions?: ImageOptions;
9
+ playIcon?: boolean;
10
+ lazyload?: boolean;
11
+ appLink?: Core.AppLink;
12
+ href?: string;
13
+ channelName?: string;
14
+ }
15
+ export declare class ThumbnailComponent extends Core.Component<Video> {
16
+ protected options: ThumbnailComponentOptions;
17
+ constructor(options: ThumbnailComponentOptions);
18
+ initialize(): void;
19
+ get name(): string;
20
+ get template(): string;
21
+ get tagName(): string;
22
+ get className(): string;
23
+ get elements(): ObjectHash;
24
+ events(): ObjectHash;
25
+ get appLinks(): Core.AppLinkHash;
26
+ get attributes(): ObjectHash;
27
+ private showPlayIcon;
28
+ private onClick;
29
+ private onImageLoad;
30
+ viewOptions(): ObjectHash;
31
+ onRender(): void;
32
+ }
@@ -5,6 +5,7 @@ export declare const ImageUrls: {
5
5
  Library: string;
6
6
  Folder: string;
7
7
  Search: string;
8
+ Notifications: string;
8
9
  VideoAccess: string;
9
10
  AwaitingReview: string;
10
11
  PastReleases: string;
@@ -28,6 +28,7 @@ declare enum DataServices {
28
28
  Library = "LibraryDataService",
29
29
  Video = "VideoDataService",
30
30
  Notifications = "NotificationDataService",
31
+ NotificationsSocket = "NotificationSocketService",
31
32
  Settings = "SettingsDataService",
32
33
  StaffRequests = "StaffRequestDataService",
33
34
  MigrationVideo = "MigrationVideoDataService",
@@ -1,4 +1,4 @@
1
- import { EmptyStateComponentOptions } from '@clickview/shared';
1
+ import { EmptyStateComponentOptions } from "../../components";
2
2
  export interface EmptyStateOptions extends Pick<EmptyStateComponentOptions, Exclude<keyof EmptyStateComponentOptions, 'imageUrl'>> {
3
3
  }
4
4
  export declare const EmptyStateComponents: {
@@ -1,3 +1,10 @@
1
+ export declare enum SortType {
2
+ MostRecent = 1,
3
+ AtoZ = 2,
4
+ ProductionYear = 3,
5
+ Newest = 4,
6
+ SeriesSort = 5
7
+ }
1
8
  export declare enum ExportServiceSortType {
2
9
  MostRecent = 0,
3
10
  LeastRecent = 1,
@@ -13,6 +13,7 @@ export * from './ImageType';
13
13
  export * from './FileIdType';
14
14
  export * from './UserRole';
15
15
  export * from './TimeType';
16
+ export * from './AppLinkReferrer';
16
17
  export * from './CurationStatus';
17
18
  export * from './UploadInteractionType';
18
19
  export * from './RestrictedObjectType';
@@ -1,4 +1,5 @@
1
- import { SortType, CollectionIdentifier } from '@clickview/shared';
1
+ import { SortType } from "../enums";
2
+ import { CollectionIdentifier } from './CollectionIdentifier';
2
3
  export declare class LibraryFoldersIdentifier extends CollectionIdentifier {
3
4
  constructor(id: string, sort: SortType, cursor?: string);
4
5
  }
@@ -1,5 +1,5 @@
1
1
  import { ObjectHash } from 'backbone';
2
- import { CollectionIdentifier, CollectionIdentifierOptions } from '@clickview/shared';
2
+ import { CollectionIdentifier, CollectionIdentifierOptions } from "./CollectionIdentifier";
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 '@clickview/shared';
2
+ import { CollectionIdentifier, CollectionIdentifierOptions } from "./CollectionIdentifier";
3
3
  import { Option } from "../../apps/search/models";
4
4
  interface RecentVideoSubjectCollectionIdentifierOptions extends CollectionIdentifierOptions {
5
5
  libraryIds: string[];
@@ -0,0 +1,6 @@
1
+ export declare type TooltipPlacement = 'auto' | 'top' | 'bottom' | 'left' | 'right';
2
+ export interface TooltipOptions {
3
+ selector?: string;
4
+ title?: string;
5
+ placement?: TooltipPlacement;
6
+ }
@@ -1,4 +1,5 @@
1
- import { SortType, CollectionIdentifier } from '@clickview/shared';
1
+ import { SortType } from "../enums";
2
+ import { CollectionIdentifier } from "./CollectionIdentifier";
2
3
  export declare class VideoCollectionIdentifier extends CollectionIdentifier {
3
4
  constructor(id: string, sort: SortType, cursor?: string);
4
5
  }
@@ -1,3 +1,4 @@
1
+ export * from './CollectionIdentifier';
1
2
  export * from './VideoCollectionIdentifier';
2
3
  export * from './RecentVideoCollectionIdentifier';
3
4
  export * from './RecentVideoSubjectCollectionIdentifier';
@@ -0,0 +1,38 @@
1
+ import { Core } from '@clickview/common';
2
+ interface ApplicationContext {
3
+ pageLoad: boolean;
4
+ appLink: Core.AppLink;
5
+ }
6
+ export interface AppContextServiceOptions {
7
+ }
8
+ export declare class StaticContextService extends Core.Service {
9
+ private static instance;
10
+ private routeHistory;
11
+ private contextHistory;
12
+ get name(): string;
13
+ static get Instance(): StaticContextService;
14
+ initialize(): void;
15
+ /**
16
+ * Context specific methods.
17
+ * The Context History keeps track of ALL APPLINKS.
18
+ */
19
+ private setContext;
20
+ getCurrentContext(): ApplicationContext;
21
+ getPreviousContext(): ApplicationContext;
22
+ /**
23
+ * Route specific methods.
24
+ * The Route History works the same way as the Context History, except
25
+ * it will ONLY take applinks that change the route. This is useful
26
+ * for things like tracking state for in-application back buttons where we
27
+ * would not be interested in applinks that do not map to routes.
28
+ */
29
+ private updateRouteHistory;
30
+ getCurrentRoute(): ApplicationContext;
31
+ getPreviousRoute(): ApplicationContext;
32
+ /**
33
+ * Other utilities
34
+ */
35
+ fromPageLoad(): boolean;
36
+ }
37
+ export declare const ContextService: StaticContextService;
38
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Core } from '@clickview/common';
2
+ import { LanguageConfig } from "../models/LanguageConfig";
3
+ interface LanguageInterpolationOptions {
4
+ smartCount?: number;
5
+ [propName: string]: any;
6
+ }
7
+ declare class StaticLanguageService extends Core.Service {
8
+ private static instance;
9
+ private polyglot;
10
+ static get Instance(): StaticLanguageService;
11
+ get name(): string;
12
+ setConfig(config: LanguageConfig): void;
13
+ getPhrase(namespace: string, phraseKey: string, options?: LanguageInterpolationOptions): string;
14
+ }
15
+ export declare const LanguageService: StaticLanguageService;
16
+ export {};
@@ -1,8 +1,8 @@
1
1
  /// <reference types="backbone" />
2
2
  /// <reference types="backbone.radio" />
3
3
  /// <reference types="backbone.validation" />
4
- import { BaseDataService } from '@clickview/common';
5
4
  import { User } from "../models";
5
+ import { BaseDataService } from '@clickview/common';
6
6
  import { DataServices } from "../constants/Services";
7
7
  export declare class UserDataService extends BaseDataService {
8
8
  get name(): string;