@clickview/online 0.0.9 → 0.0.10-dev.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.
Files changed (171) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/en.json +1 -1
  3. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
  4. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
  5. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
  6. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +9 -3
  7. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
  8. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
  9. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  10. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +6 -2
  11. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  12. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  13. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  14. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  15. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  16. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  17. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  18. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  19. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  20. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  21. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  22. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  23. package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
  24. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  25. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  26. package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
  27. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  28. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  29. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  30. package/dist/libs/common/src/react/components/BackboneViewWrapper.d.ts +2 -2
  31. package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +1 -1
  32. package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
  33. package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
  34. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
  35. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  36. package/dist/libs/common/src/react/utils/TimeHelper.d.ts +1 -0
  37. package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistItem.d.ts +1 -2
  38. package/dist/libs/shared/src/apps/playlists/components/sort-select/PlaylistSortSelect.d.ts +7 -0
  39. package/dist/libs/shared/src/apps/playlists/utils/PlaylistSortHelper.d.ts +1 -1
  40. package/dist/libs/shared/src/apps/playlists/utils/PlaylistStateUpdateHelper.d.ts +0 -2
  41. package/dist/libs/shared/src/apps/playlists/utils/RecentPlaylistHelper.d.ts +2 -4
  42. package/dist/libs/shared/src/apps/playlists/utils/getBackgroundColourClass.d.ts +2 -0
  43. package/dist/libs/shared/src/apps/subjects/components/coming-soon/ComingSoon.d.ts +1 -0
  44. package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +1 -1
  45. package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +2 -0
  46. package/dist/libs/shared/src/components/breadcrumbs/Breadcrumbs.d.ts +3 -1
  47. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
  48. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
  49. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
  50. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
  51. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
  52. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -0
  53. package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
  54. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +34 -0
  55. package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +8 -3
  56. package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
  57. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +7 -6
  58. package/dist/libs/shared/src/components/widgets/dynamic-widget/DynamicWidget.d.ts +1 -1
  59. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +17 -8
  60. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
  61. package/dist/libs/shared/src/components/widgets/fixed-widget/PartialFixedWidget.d.ts +1 -6
  62. package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +4 -2
  63. package/dist/libs/shared/src/components/widgets/sliding-list/SlidingListContainer.d.ts +1 -1
  64. package/dist/libs/shared/src/components/widgets/widget-button/WidgetButton.d.ts +1 -0
  65. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +2 -0
  66. package/dist/libs/shared/src/constants/WithStatements.d.ts +9 -0
  67. package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
  68. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  69. package/dist/libs/shared/src/enums/PermissionName.d.ts +23 -0
  70. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +5 -0
  71. package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
  72. package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
  73. package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -2
  74. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  75. package/dist/libs/shared/src/flight-requests/ConfigRequests.d.ts +3 -1
  76. package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +4 -3
  77. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
  78. package/dist/libs/shared/src/flight-requests/SettingRequests.d.ts +2 -1
  79. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +5 -1
  80. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  81. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  82. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
  83. package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
  84. package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
  85. package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
  86. package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
  87. package/dist/libs/shared/src/interfaces/collections/index.d.ts +4 -0
  88. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
  89. package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
  90. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
  91. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  92. package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
  93. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  94. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
  95. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  96. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  97. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  98. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  99. package/dist/libs/shared/src/interfaces/models/User.d.ts +10 -1
  100. package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
  101. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
  102. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
  103. package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
  104. package/dist/libs/shared/src/interfaces/models/index.d.ts +9 -1
  105. package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
  106. package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
  107. package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
  108. package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
  109. package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
  110. package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
  111. package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
  112. package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
  113. package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
  114. package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
  115. package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
  116. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +3 -0
  117. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  118. package/dist/libs/shared/src/interfaces/requests/index.d.ts +5 -0
  119. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  120. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  121. package/dist/libs/shared/src/services/ConfigDataService.d.ts +2 -2
  122. package/dist/libs/shared/src/utils/FavouriteHelpers.d.ts +30 -0
  123. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  124. package/dist/libs/shared/src/utils/RecentItemHelper.d.ts +11 -0
  125. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  126. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +9 -0
  127. package/dist/libs/shared/src/utils/VideoHelper.d.ts +5 -0
  128. package/dist/online-app.css +34 -12
  129. package/dist/online-app.css.map +1 -1
  130. package/dist/online-app.js +33 -3
  131. package/dist/online-app.js.map +1 -1
  132. package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
  133. package/dist/projects/online/src/apps/content-updates/components/index.d.ts +1 -1
  134. package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +1 -0
  135. package/dist/projects/online/src/apps/playlists/OnlinePlaylistsApplication.d.ts +1 -0
  136. package/dist/projects/online/src/apps/playlists/components/left-nav/LeftNav.d.ts +0 -1
  137. package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-item/LeftNavItem.d.ts +0 -1
  138. package/dist/projects/online/src/apps/playlists/components/old-forms/OldFormWrapper.d.ts +2 -1
  139. package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts +1 -0
  140. package/dist/projects/online/src/apps/playlists/components/playlist-list-header/PlaylistListHeader.d.ts +0 -1
  141. package/dist/projects/online/src/apps/playlists/filters/MigrationFilter.d.ts +1 -1
  142. package/dist/projects/online/src/apps/playlists/views/left-nav/LeftNavView.d.ts +2 -0
  143. package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +1 -1
  144. package/dist/projects/online/src/index.d.ts +29 -3
  145. package/dist/projects/online/src/shared/constants/Actions.d.ts +14 -3
  146. package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
  147. package/dist/projects/online/src/shared/identifiers/DataIdentifier.d.ts +1 -1
  148. package/dist/projects/online/src/shared/identifiers/WidgetCollectionIdentifier.d.ts +3 -3
  149. package/dist/projects/online/src/shared/identifiers/primitives/ServiceOptions.d.ts +2 -2
  150. package/dist/projects/online/src/shared/interfaces/SharedObject.d.ts +2 -1
  151. package/dist/projects/online/src/shared/layouts/LayoutComponent.d.ts +1 -1
  152. package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -1
  153. package/dist/projects/online/src/shared/utils/PopupHelper.d.ts +1 -1
  154. package/dist/projects/online/src/styles/index.d.ts +1 -0
  155. package/package.json +4 -3
  156. package/tooling/externals.js +3 -0
  157. package/typings/libs/CVEvents.d.ts +1 -1
  158. package/typings/libs/CVLanguages.d.ts +24 -0
  159. package/typings/libs/LazyLoad.d.ts +1 -1
  160. package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
  161. package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
  162. package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
  163. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +0 -8
  164. package/dist/libs/shared/src/enums/ThumbnailSize.d.ts +0 -6
  165. package/dist/libs/shared/src/interfaces/models/Interactive.d.ts +0 -9
  166. package/dist/libs/shared/src/utils/CollectionHelper.d.ts +0 -16
  167. package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPartialPlaylistList.d.ts +0 -2
  168. package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistItem.d.ts +0 -7
  169. package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistList.d.ts +0 -7
  170. package/dist/projects/online/src/shared/hooks/UseListenOn.d.ts +0 -4
  171. /package/dist/projects/online/src/apps/content-updates/components/classification-banner/{ClassifictionBannerContainer.d.ts → ClassificationBanner.d.ts} +0 -0
@@ -8,6 +8,6 @@ export declare class ContentUpdatesApplication extends Core.Application {
8
8
  get channelName(): string;
9
9
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
10
  contentUpdates(): void;
11
- classificationUpdate(classificationId: string, slug: string): void;
11
+ classificationUpdate(classificationId: string): void;
12
12
  protected onShowAlert(options?: HashObject): void;
13
13
  }
@@ -1,3 +1,3 @@
1
1
  export * from './whats-new-breadcrumbs/WhatsNewBreadcrumbsContainer';
2
- export * from './classification-banner/ClassifictionBannerContainer';
2
+ export * from './classification-banner/ClassificationBanner';
3
3
  export * from './classification-update-breadcrumbs/ClassificationUpdateBreadcrumbsContainer';
@@ -8,4 +8,5 @@ export declare class DefaultApplication extends ReactApplication {
8
8
  get channelName(): string;
9
9
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
10
  verifyEmail(): void;
11
+ dialogError(): void;
11
12
  }
@@ -5,6 +5,7 @@ import { OnlineLayoutView, OnlineLayoutViewOptions } from "../../shared/layouts"
5
5
  export declare class PlaylistApplication extends ReactApplication {
6
6
  protected layout: OnlineLayoutView;
7
7
  private currentPlaylistId;
8
+ private playlistSort;
8
9
  initialize(): void;
9
10
  get name(): string;
10
11
  static get router(): any;
@@ -6,7 +6,6 @@ interface LeftNavProps {
6
6
  hasMorePlaylists: boolean;
7
7
  fetchMorePlaylists: () => void;
8
8
  isFetching: boolean;
9
- canFollow: boolean;
10
9
  selectedPlaylistId?: string;
11
10
  }
12
11
  declare function LeftNavWrapper(props: LeftNavProps): React.ReactElement;
@@ -3,7 +3,6 @@ import { CurrentUser, Playlist } from "../../../../../../../../libs/shared/src/i
3
3
  interface LeftNavItemProps {
4
4
  playlist: Playlist;
5
5
  currentUser: CurrentUser;
6
- canFollow: boolean;
7
6
  selected?: boolean;
8
7
  }
9
8
  export declare function LeftNavItem(props: LeftNavItemProps): React.ReactElement;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import * as Yup from 'yup';
3
3
  import { FormikHelpers, FormikProps } from 'formik';
4
+ import { HashObject } from "../../../../../../../libs/common/src/react/interfaces";
4
5
  interface OldFormWrapperProps<T> {
5
6
  initialValues: T;
6
- validationSchema: Yup.ObjectSchema<{}>;
7
+ validationSchema: Yup.ObjectSchema<HashObject>;
7
8
  onSubmit: (values: T, formikHelpers: FormikHelpers<T>) => void;
8
9
  renderChildren: (props: FormikProps<T>) => React.ReactNode;
9
10
  }
@@ -11,6 +11,7 @@ interface PlaylistHeaderProps {
11
11
  canShare?: boolean;
12
12
  canEdit?: boolean;
13
13
  canFollow?: boolean;
14
+ showOwnerName?: boolean;
14
15
  backButtonAppLink?: Core.AppLink;
15
16
  backButtonText?: string;
16
17
  }
@@ -7,6 +7,5 @@ export interface PlaylistListHeaderProps {
7
7
  imageCdnUrl: string;
8
8
  sortType: PlaylistSortType;
9
9
  getSortAppLink: (sort: PlaylistSortType) => Core.AppLink;
10
- canFollow: boolean;
11
10
  }
12
11
  export declare function PlaylistListHeader(props: PlaylistListHeaderProps): React.ReactElement;
@@ -1,2 +1,2 @@
1
1
  import { Core } from "../../../../../../libs/common/src/backbone";
2
- export declare function MigrationFilter(appLink: Core.AppLink, next: Core.MiddlewareNext<Core.AppLink>): void;
2
+ export declare function MigrationFilter(options: Core.FilterOptions, next: Core.MiddlewareNext<Core.FilterOptions>): void;
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { PlaylistSortType } from "../../../../../../../libs/shared/src/apps/playlists/enums/PlaylistSortType";
2
3
  export interface LeftNavViewProps {
4
+ sort: PlaylistSortType;
3
5
  selectedPlaylistId?: string;
4
6
  }
5
7
  export declare function LeftNavView(props: LeftNavViewProps): React.ReactElement;
@@ -7,7 +7,7 @@ export declare class SubjectPlaylistsApplication extends ReactApplication {
7
7
  static get router(): any;
8
8
  get channelName(): string;
9
9
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
- classificationPlaylist(classificationId: string, playlistId: string, slug?: string): void;
10
+ classificationPlaylist(classificationId: string, playlistId: string): void;
11
11
  playClassificationPlaylistVideo(classificationId: string, playlistId: string, videoId: string): void;
12
12
  sharePlaylist(playlistId: string): void;
13
13
  private getPlaylistAppLink;
@@ -14,7 +14,6 @@ import './apps/libraries/views/libraries/libraries.lang.json';
14
14
  import './apps/movies-and-tv/views/movies-and-tv/movies-and-tv.lang.json';
15
15
  import './apps/playlists/components/left-nav/left-nav-item/left-nav-item.lang.json';
16
16
  import './apps/playlists/components/left-nav/left-nav.lang.json';
17
- import './apps/playlists/components/legacy-playlist-list/legacy-playlist-item.lang.json';
18
17
  import './apps/playlists/components/playlist-details/playlist-details.lang.json';
19
18
  import './apps/playlists/components/playlist-header/playlist-header.lang.json';
20
19
  import './apps/playlists/components/playlist-list-header/playlist-list-header.lang.json';
@@ -39,6 +38,8 @@ import './apps/subjects/views/preferences/subject-preferences/subject-preference
39
38
  import './apps/subjects/views/preferences/subject-presentation/subject-presentation-selector.lang.json';
40
39
  import './apps/subjects/views/preferences/summary/preferences-summary.lang.json';
41
40
  import './apps/subjects/views/preferences/welcome/preferences-welcome.lang.json';
41
+ import './apps/workspace/components/edit-workspace-video-details/edit-workspace-video-details.lang.json';
42
+ import './apps/workspace/views/edit-workspace-video/edit-workspace-video-details-view.lang.json';
42
43
  import './shared/components/video-list/video-list.lang.json';
43
44
  import './shared/errors/not-found/not-found-error.lang.json';
44
45
  import './shared/views/error/error.lang.json';
@@ -63,11 +64,21 @@ import '../../../libs/shared/src/apps/upload/errors/internet-connectivity/intern
63
64
  import '../../../libs/shared/src/apps/upload/utils/upload-utils.lang.json';
64
65
  import '../../../libs/shared/src/components/back-button/back-button.lang.json';
65
66
  import '../../../libs/shared/src/components/badges/badge.lang.json';
67
+ import '../../../libs/shared/src/components/channel-form-field/channel-form-field.lang.json';
68
+ import '../../../libs/shared/src/components/confirmation-popup/confirmation-popup.lang.json';
66
69
  import '../../../libs/shared/src/components/curriculum-links/curriculum-links.lang.json';
70
+ import '../../../libs/shared/src/components/edit-link/edit-link.lang.json';
71
+ import '../../../libs/shared/src/components/edit-resource/edit-resource.lang.json';
67
72
  import '../../../libs/shared/src/components/edit-video-details/edit-video-details.lang.json';
73
+ import '../../../libs/shared/src/components/edit-video-links/edit-video-links.lang.json';
74
+ import '../../../libs/shared/src/components/edit-video-resources/edit-video-resources.lang.json';
75
+ import '../../../libs/shared/src/components/edit-video-subtitles/edit-video-subtitles.lang.json';
68
76
  import '../../../libs/shared/src/components/favourite-button/favourite-button.lang.json';
69
77
  import '../../../libs/shared/src/components/forms/form-buttons/form-buttons.lang.json';
78
+ import '../../../libs/shared/src/components/image-select/image-select.lang.json';
79
+ import '../../../libs/shared/src/components/language-select/language-select.lang.json';
70
80
  import '../../../libs/shared/src/components/pagination/pagination.lang.json';
81
+ import '../../../libs/shared/src/components/rating-select/rating-select.lang.json';
71
82
  import '../../../libs/shared/src/components/search-bar/search-bar.lang.json';
72
83
  import '../../../libs/shared/src/components/video-list/components/video-item-description/video-item-description.lang.json';
73
84
  import '../../../libs/shared/src/components/widgets/dynamic-widget/dynamic-widget.lang.json';
@@ -75,14 +86,27 @@ import '../../../libs/shared/src/components/widgets/fixed-widget/fixed-widget.la
75
86
  import '../../../libs/shared/src/components/widgets/greeting-widget/greeting.lang.json';
76
87
  import '../../../libs/shared/src/components/widgets/items/interactive-widget-item/interactive-widget-item.lang.json';
77
88
  import '../../../libs/shared/src/components/widgets/items/subject-widget-item/subject-widget-item.lang.json';
89
+ import '../../../libs/shared/src/legacy/behaviors/file-drop/file-drop.lang.json';
90
+ import '../../../libs/shared/src/legacy/components/file-select/file-select.lang.json';
78
91
  import '../../../libs/shared/src/legacy/components/pagination/pagination.lang.json';
92
+ import '../../../libs/shared/src/legacy/errors/too-many-files/too-many-files.lang.json';
93
+ import '../../../libs/shared/src/legacy/errors/too-many-resources/too-many-resources.lang.json';
94
+ import '../../../libs/shared/src/legacy/errors/too-many-subtitles/too-many-subtitles.lang.json';
79
95
  import '../../../libs/shared/src/utils/shared-utils.lang.json';
80
96
  import '../../../libs/shared/src/utils/video-actions/video-actions-helper.lang.json';
97
+ import '../../../libs/shared/src/views/delete-link/delete-link-view.lang.json';
98
+ import '../../../libs/shared/src/views/delete-resource/delete-resource-view.lang.json';
99
+ import '../../../libs/shared/src/views/delete-subtitle/delete-subtitle-view.lang.json';
100
+ import '../../../libs/shared/src/views/edit-link/edit-link-view.lang.json';
101
+ import '../../../libs/shared/src/views/edit-resource/edit-resource-view.lang.json';
102
+ import './styles';
81
103
  export * from './shared/constants/Layouts';
82
104
  export * from './shared/constants/Services';
83
105
  export * from './shared/services/OnlineContextService';
84
106
  export * from './shared/layouts/OnlineLayoutView';
85
107
  import { AlertView } from './shared/views/alert/AlertView';
108
+ import { AppChannels } from './shared/constants/RadioChannels';
109
+ import { Actions } from './shared/constants/Actions';
86
110
  export * from './apps/default/OnlineDefaultApplication';
87
111
  export * from './apps/playlists/services';
88
112
  export * from './apps/playlists/OnlinePlaylistsApplication';
@@ -93,6 +117,7 @@ export * from './apps/dashboard/OnlineDashboardApplication';
93
117
  export * from './apps/movies-and-tv/MoviesAndTvApplication';
94
118
  export * from './apps/libraries/LibrariesApplication';
95
119
  export * from './apps/exchange/ExchangeApplication';
120
+ export * from './apps/workspace/WorkspaceApplication';
96
121
  import { Core } from "../../../libs/common/src/backbone";
97
122
  import { InstanceManager } from "../../../libs/common/src/backbone/services/InstanceManager";
98
123
  import { AlertType, BaseAlertService } from "../../../libs/common/src/backbone/services/BaseAlertService";
@@ -106,7 +131,6 @@ import { CommonServices } from "../../../libs/common/src/backbone/constants/Comm
106
131
  import { LanguageService } from "../../../libs/common/src/backbone/services/LanguageService";
107
132
  import { Flight } from "../../../libs/common/src/react";
108
133
  import { ViewModelReducer } from "../../../libs/common/src/react/reducers/ViewModelReducer";
109
- import { ScrollService } from "../../../libs/common/src/backbone/services/ScrollService";
110
134
  import { CacheDurations } from "../../../libs/shared/src/constants/CacheDurations";
111
135
  import { SharedDataServices } from "../../../libs/shared/src/constants/SharedServices";
112
136
  import { ConfigDataService } from "../../../libs/shared/src/services/ConfigDataService";
@@ -118,6 +142,8 @@ import { AlertError } from "../../../libs/shared/src/errors/primitives/AlertErro
118
142
  import { DialogError } from "../../../libs/shared/src/errors/primitives/DialogError";
119
143
  import { ErrorPageError } from "../../../libs/shared/src/errors/primitives/ErrorPageError";
120
144
  import { AlertList } from "../../../libs/shared/src/components/alert/AlertList";
145
+ import { LangHelper } from "../../../libs/shared/src/legacy/utils/LangHelper";
146
+ import { LearningResourceUploadService, SubtitleUploadService } from "../../../libs/shared/src/apps/upload/services/UploadService";
121
147
  import { AnalyticsService } from "../../../libs/analytics/src/AnalyticsService";
122
148
  import { DebuggerClient } from "../../../libs/analytics/src/clients/DebuggerClient";
123
149
  import { EventTransport } from "../../../libs/analytics/src/transport/EventTransport";
@@ -126,4 +152,4 @@ import { CollectionApiClientHelper } from "../../../libs/analytics/src/utils/Col
126
152
  import { CountryRegionMapping } from "../../../libs/analytics/src/constants/CountryRegionMapping";
127
153
  import { CoreContextEnricher } from "../../../libs/analytics/src/enrichers/CoreContextEnricher";
128
154
  import { UserDataEnricher } from "../../../libs/analytics/src/enrichers/UserDataEnricher";
129
- export { Core, InstanceManager, BaseAlertService, AlertType, FifoMemoryCache, AjaxDataProvider, ConcurrencyHelper, UrlHelper, DevError, NotImplementedError, CommonServices, LanguageService, Flight, ViewModelReducer, ScrollService, CacheDurations, SharedDataServices, ConfigDataService, UserDataService, LanguageDataService, ImageUrlService, AnalyticsService, DebuggerClient, EventTransport, CollectionApiClient, CollectionApiClientHelper, CountryRegionMapping, CoreContextEnricher, UserDataEnricher, AppOptionsService, AlertError, DialogError, ErrorPageError, AlertList, AlertView };
155
+ export { Core, InstanceManager, BaseAlertService, AlertType, FifoMemoryCache, AjaxDataProvider, ConcurrencyHelper, UrlHelper, DevError, NotImplementedError, CommonServices, LanguageService, Flight, ViewModelReducer, CacheDurations, SharedDataServices, ConfigDataService, UserDataService, LanguageDataService, ImageUrlService, AnalyticsService, DebuggerClient, EventTransport, CollectionApiClient, CollectionApiClientHelper, CountryRegionMapping, CoreContextEnricher, UserDataEnricher, AppOptionsService, AlertError, DialogError, ErrorPageError, AlertList, AlertView, LangHelper, LearningResourceUploadService, SubtitleUploadService, AppChannels, Actions };
@@ -5,6 +5,9 @@ export declare const Actions: {
5
5
  SERIES: string;
6
6
  CONTENT_UPDATES: string;
7
7
  VERIFY_EMAIL: string;
8
+ ERROR: string;
9
+ DEV_ERROR: string;
10
+ DIALOG_ERROR: string;
8
11
  };
9
12
  Playlists: {
10
13
  HOME: string;
@@ -50,9 +53,6 @@ export declare const Actions: {
50
53
  DASHBOARD: string;
51
54
  VIDEO: string;
52
55
  CURRICULUM: string;
53
- ERROR: string;
54
- DIALOG_ERROR: string;
55
- DEV_ERROR: string;
56
56
  ADD_TO_PLAYLIST: string;
57
57
  CONTENT_UPDATES: string;
58
58
  USER_CHANNELS: string;
@@ -92,4 +92,15 @@ export declare const Actions: {
92
92
  CLICKVIEW_TRAINING: string;
93
93
  BCC_RES: string;
94
94
  };
95
+ Workspace: {
96
+ HOME: string;
97
+ FOLDER: string;
98
+ EDIT_VIDEO: string;
99
+ EDIT_RESOURCE: string;
100
+ EDIT_LINK: string;
101
+ DELETE_RESOURCE: string;
102
+ DELETE_SUBTITLE: string;
103
+ DELETE_LINK: string;
104
+ UPLOAD_IMAGE: string;
105
+ };
95
106
  };
@@ -8,6 +8,7 @@ export declare const AppChannels: {
8
8
  MOVIES_AND_TV: string;
9
9
  LIBRARIES: string;
10
10
  EXCHANGE: string;
11
+ WORKSPACE: string;
11
12
  };
12
13
  export declare const DataChannels: {
13
14
  CLASSIFICATION: string;
@@ -1,5 +1,5 @@
1
1
  import { BaseCollectionIdentifier, BaseCollectionIdentifierOptions } from "../../../../../libs/common/src/backbone/interfaces";
2
- interface DataIdentifierOptions extends BaseCollectionIdentifierOptions<{}> {
2
+ interface DataIdentifierOptions extends BaseCollectionIdentifierOptions<unknown> {
3
3
  filter: {
4
4
  [props: string]: any;
5
5
  };
@@ -10,7 +10,7 @@ interface RequestOptions {
10
10
  userRole: UserRole;
11
11
  countryCode?: string;
12
12
  }
13
- export interface WidgetCollectionIdentifierOptions extends BaseCollectionIdentifierOptions<{}>, ServiceOptions, RequestOptions {
13
+ export interface WidgetCollectionIdentifierOptions extends BaseCollectionIdentifierOptions<unknown>, ServiceOptions, RequestOptions {
14
14
  }
15
15
  export declare class WidgetCollectionIdentifier extends BaseCollectionIdentifier {
16
16
  libraryType: LibraryType;
@@ -19,8 +19,8 @@ export declare class WidgetCollectionIdentifier extends BaseCollectionIdentifier
19
19
  countryCode?: string;
20
20
  dataServiceName: string;
21
21
  dataChannelName: string;
22
- fetchFn: Function;
23
- onSuccess: Function;
22
+ fetchFn: (...args: any) => any;
23
+ onSuccess: (...args: any) => any;
24
24
  onError: (error: DataServiceError) => void;
25
25
  constructor(options: WidgetCollectionIdentifierOptions);
26
26
  private setFetchOptions;
@@ -1,7 +1,7 @@
1
1
  import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
2
2
  export interface ServiceOptions {
3
3
  dataServiceName: string;
4
- fetchFn: Function;
5
- onSuccess: Function;
4
+ fetchFn: (...args: any) => any;
5
+ onSuccess: (...args: any) => any;
6
6
  onError?: (error: DataServiceError) => void;
7
7
  }
@@ -1,8 +1,9 @@
1
+ import { BaseObject } from "../../../../../libs/shared/src/interfaces";
1
2
  export declare enum AllowSharedAccess {
2
3
  Read = "read",
3
4
  Write = "write",
4
5
  None = "none"
5
6
  }
6
- export declare type SharedObject<T extends object> = T & {
7
+ export declare type SharedObject<T extends BaseObject> = T & {
7
8
  _allowAccess: AllowSharedAccess;
8
9
  };
@@ -6,7 +6,7 @@ export interface LayoutComponentProps {
6
6
  alertChild?: React.ReactNode;
7
7
  }
8
8
  interface WithProviderProps extends LayoutComponentProps {
9
- provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
9
+ provider?: (props: React.PropsWithChildren<unknown>) => React.ReactElement;
10
10
  }
11
11
  declare const LayoutComponentWithProvider: (props: WithProviderProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
12
12
  export { LayoutComponentWithProvider as LayoutComponent };
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { ObjectHash } from 'backbone';
3
3
  import { ReactLayoutView, ReactLayoutViewOptions } from "../../../../../libs/common/src/react/core/ReactLayoutView";
4
4
  export interface OnlineLayoutViewOptions extends ReactLayoutViewOptions {
5
- provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
5
+ provider?: (props: React.PropsWithChildren<unknown>) => React.ReactElement;
6
6
  hideLeftNav?: boolean;
7
7
  }
8
8
  export declare class OnlineLayoutView extends ReactLayoutView {
@@ -1,8 +1,8 @@
1
1
  /// <reference types="jquery" />
2
2
  /// <reference types="jqueryui" />
3
3
  /// <reference types="typeahead" />
4
- /// <reference types="bootstrap" />
5
4
  /// <reference types="dropzone" />
5
+ /// <reference types="bootstrap" />
6
6
  interface IPopupHelper {
7
7
  getContainerEl: () => HTMLElement;
8
8
  position: (el: HTMLElement) => void;
@@ -0,0 +1 @@
1
+ import './buttons.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/online",
3
- "version": "0.0.9",
3
+ "version": "0.0.10-dev.1",
4
4
  "description": "Online",
5
5
  "main": "dist/online-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,14 +20,15 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.18",
23
+ "@clickview/eslint-config": "1.0.0",
24
+ "@clickview/tooling": "0.0.19-dev.1",
24
25
  "@types/linkifyjs": "2.1.3",
25
26
  "@types/react-sortable-hoc": "0.7.1",
26
27
  "@types/react-transition-group": "4.2.3",
27
28
  "@types/yup": "0.26.24"
28
29
  },
29
30
  "dependencies": {
30
- "@clickview/styles": "1.0.11",
31
+ "@clickview/styles": "1.0.12-dev.1",
31
32
  "yup": "0.27.0"
32
33
  },
33
34
  "babel": {
@@ -1,5 +1,8 @@
1
1
  const externalModules = {
2
2
  'CVEvents': /^cvevents$/i,
3
+ 'CVLanguages': /^CVLanguages$/i,
4
+
5
+ 'Cropper': [ /^cropperjs$/i, /^cropper$/i ],
3
6
 
4
7
  /**
5
8
  * Shared Dependencies
@@ -7,7 +7,7 @@ declare namespace CVEvents {
7
7
  constructor(t: any);
8
8
  off(t: any, e?: any): void;
9
9
  on(t: any, e: any): void;
10
- one(eventName: string, callback: Function): void;
10
+ one(eventName: string, callback: (...args: any) => any): void;
11
11
  trigger(t: any, ...args: any[]): void;
12
12
  }
13
13
  }
@@ -0,0 +1,24 @@
1
+ interface SetLanguageOptions {
2
+ validate: boolean;
3
+ }
4
+
5
+ interface LanguageSet {
6
+ [languagecode: string]: Language;
7
+ }
8
+
9
+ interface Language {
10
+ englishName: string;
11
+ nativeName: string;
12
+ }
13
+
14
+ interface ICVLanguages {
15
+ VERSION: string;
16
+
17
+ getEnglishName(languageCode: string): string;
18
+ getNativeName(languageCode: string): string;
19
+ getFullEnglishName(languageCode: string): string;
20
+ getFullNativeName(languageCode: string): string;
21
+ getEnglishNameContains(englishName: string): Language[];
22
+ }
23
+
24
+ declare var CVLanguages: ICVLanguages;
@@ -13,7 +13,7 @@ declare module "react-lazy-load" {
13
13
  debounce?: boolean;
14
14
  height?: string | number;
15
15
  width?: string | number;
16
- onContentVisible?: Function;
16
+ onContentVisible?: (...args: any) => any;
17
17
  }
18
18
 
19
19
  export default class LazyLoad extends React.Component<LazyLoadComponentProps> {
@@ -1,5 +0,0 @@
1
- export declare const BehaviorChannels: {
2
- LAZY_LOAD: string;
3
- POPUP: string;
4
- IMAGE_SELECT: string;
5
- };
@@ -1,19 +0,0 @@
1
- import { BaseService } from "../core/BaseService";
2
- export declare class ScrollService extends BaseService {
3
- private preventScroll;
4
- initialize(): void;
5
- get name(): string;
6
- /**
7
- * In places of the application where we would not
8
- * like an appLink to scroll to the top, call this
9
- * method. This will typically be done in an `onBeforeRender`
10
- * or 'onClick' handler.
11
- */
12
- cancelScrollTop(): void;
13
- /**
14
- * Once the route change has completed, we check to see
15
- * if the page should scroll to the top based on the check
16
- * done by validateAppLink
17
- */
18
- scrollTop(): void;
19
- }
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function ClickViewLogo(): React.ReactElement;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Video } from "../../../interfaces";
3
- interface VideoThumbnailWatchProgressBarProps {
4
- video: Video;
5
- className: string;
6
- }
7
- export declare function VideoThumbnailWatchProgressBar(props: VideoThumbnailWatchProgressBarProps): JSX.Element;
8
- export {};
@@ -1,6 +0,0 @@
1
- export declare enum ThumbnailSize {
2
- Small = "small",
3
- Medium = "medium",
4
- Large = "large",
5
- Raw = "raw"
6
- }
@@ -1,9 +0,0 @@
1
- import { BaseObject } from "./..";
2
- import { User } from './User';
3
- import { Thumbnail } from './Thumbnail';
4
- export interface Interactive extends BaseObject {
5
- interactiveId: string;
6
- owner: User;
7
- description?: string;
8
- thumbnail?: Thumbnail;
9
- }
@@ -1,16 +0,0 @@
1
- import { LegacyPagination } from "../../../common/src/backbone/interfaces";
2
- import { BasePaginatedCollection, BaseObject } from "../interfaces";
3
- interface LegacyPaginatedCollection {
4
- data: BaseObject[];
5
- pagination: LegacyPagination;
6
- }
7
- export declare const CollectionHelper: {
8
- isEmpty(collection: BasePaginatedCollection<BaseObject>): boolean;
9
- length(collection: BasePaginatedCollection<BaseObject>): number;
10
- at<T extends BaseObject>(collection: BasePaginatedCollection<T>, idx: number): T;
11
- get<T_1 extends BaseObject>(collection: BasePaginatedCollection<T_1>, id: string): T_1;
12
- flattenCollections<T_2 extends BaseObject, U extends BasePaginatedCollection<T_2>>(collections: U[]): T_2[];
13
- getNextCursor<T_3 extends BaseObject, U_1 extends BasePaginatedCollection<T_3>>(collection: U_1): string;
14
- convertLegacyPaginatedCollection(collection: LegacyPaginatedCollection): BasePaginatedCollection<BaseObject>;
15
- };
16
- export {};
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare function LegacyPartialPlaylistList(): React.ReactElement;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
3
- interface LegacyPlaylistItemProps {
4
- playlist: Playlist;
5
- }
6
- export declare function LegacyPlaylistItem(props: LegacyPlaylistItemProps): React.ReactElement;
7
- export {};
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
3
- interface PlaylistListProps {
4
- playlists: Playlist[];
5
- }
6
- export declare function LegacyPlaylistList(props: PlaylistListProps): React.ReactElement;
7
- export {};
@@ -1,4 +0,0 @@
1
- import { Model, Collection } from 'backbone';
2
- declare type BackboneObject = Model | Collection<Model>;
3
- export declare const useListenOn: (obj: BackboneObject, eventName: string, callback: (obj?: any) => void) => void;
4
- export {};