@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.
- package/.eslintrc.json +3 -0
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
- package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
- package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +9 -3
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +6 -2
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
- package/dist/libs/common/src/react/components/BackboneViewWrapper.d.ts +2 -2
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +1 -1
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
- package/dist/libs/common/src/react/utils/TimeHelper.d.ts +1 -0
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistItem.d.ts +1 -2
- package/dist/libs/shared/src/apps/playlists/components/sort-select/PlaylistSortSelect.d.ts +7 -0
- package/dist/libs/shared/src/apps/playlists/utils/PlaylistSortHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/playlists/utils/PlaylistStateUpdateHelper.d.ts +0 -2
- package/dist/libs/shared/src/apps/playlists/utils/RecentPlaylistHelper.d.ts +2 -4
- package/dist/libs/shared/src/apps/playlists/utils/getBackgroundColourClass.d.ts +2 -0
- package/dist/libs/shared/src/apps/subjects/components/coming-soon/ComingSoon.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +1 -1
- package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +2 -0
- package/dist/libs/shared/src/components/breadcrumbs/Breadcrumbs.d.ts +3 -1
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
- package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
- package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
- package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
- package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
- package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -0
- package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
- package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +34 -0
- package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +8 -3
- package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +7 -6
- package/dist/libs/shared/src/components/widgets/dynamic-widget/DynamicWidget.d.ts +1 -1
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +17 -8
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
- package/dist/libs/shared/src/components/widgets/fixed-widget/PartialFixedWidget.d.ts +1 -6
- package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +4 -2
- package/dist/libs/shared/src/components/widgets/sliding-list/SlidingListContainer.d.ts +1 -1
- package/dist/libs/shared/src/components/widgets/widget-button/WidgetButton.d.ts +1 -0
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +2 -0
- package/dist/libs/shared/src/constants/WithStatements.d.ts +9 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PermissionName.d.ts +23 -0
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +5 -0
- package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
- package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -2
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/ConfigRequests.d.ts +3 -1
- package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +4 -3
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
- package/dist/libs/shared/src/flight-requests/SettingRequests.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +5 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +10 -1
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +9 -1
- package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
- package/dist/libs/shared/src/services/ConfigDataService.d.ts +2 -2
- package/dist/libs/shared/src/utils/FavouriteHelpers.d.ts +30 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/libs/shared/src/utils/RecentItemHelper.d.ts +11 -0
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +9 -0
- package/dist/libs/shared/src/utils/VideoHelper.d.ts +5 -0
- package/dist/online-app.css +34 -12
- package/dist/online-app.css.map +1 -1
- package/dist/online-app.js +33 -3
- package/dist/online-app.js.map +1 -1
- package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
- package/dist/projects/online/src/apps/content-updates/components/index.d.ts +1 -1
- package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/OnlinePlaylistsApplication.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/left-nav/LeftNav.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-item/LeftNavItem.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/components/old-forms/OldFormWrapper.d.ts +2 -1
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/playlist-list-header/PlaylistListHeader.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/filters/MigrationFilter.d.ts +1 -1
- package/dist/projects/online/src/apps/playlists/views/left-nav/LeftNavView.d.ts +2 -0
- package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +1 -1
- package/dist/projects/online/src/index.d.ts +29 -3
- package/dist/projects/online/src/shared/constants/Actions.d.ts +14 -3
- package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
- package/dist/projects/online/src/shared/identifiers/DataIdentifier.d.ts +1 -1
- package/dist/projects/online/src/shared/identifiers/WidgetCollectionIdentifier.d.ts +3 -3
- package/dist/projects/online/src/shared/identifiers/primitives/ServiceOptions.d.ts +2 -2
- package/dist/projects/online/src/shared/interfaces/SharedObject.d.ts +2 -1
- package/dist/projects/online/src/shared/layouts/LayoutComponent.d.ts +1 -1
- package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -1
- package/dist/projects/online/src/shared/utils/PopupHelper.d.ts +1 -1
- package/dist/projects/online/src/styles/index.d.ts +1 -0
- package/package.json +4 -3
- package/tooling/externals.js +3 -0
- package/typings/libs/CVEvents.d.ts +1 -1
- package/typings/libs/CVLanguages.d.ts +24 -0
- package/typings/libs/LazyLoad.d.ts +1 -1
- package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
- package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
- package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +0 -8
- package/dist/libs/shared/src/enums/ThumbnailSize.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/Interactive.d.ts +0 -9
- package/dist/libs/shared/src/utils/CollectionHelper.d.ts +0 -16
- package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPartialPlaylistList.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistItem.d.ts +0 -7
- package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistList.d.ts +0 -7
- package/dist/projects/online/src/shared/hooks/UseListenOn.d.ts +0 -4
- /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
|
|
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/
|
|
2
|
+
export * from './classification-banner/ClassificationBanner';
|
|
3
3
|
export * from './classification-update-breadcrumbs/ClassificationUpdateBreadcrumbsContainer';
|
|
@@ -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;
|
package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-item/LeftNavItem.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -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(
|
|
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
|
|
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,
|
|
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
|
};
|
|
@@ -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<
|
|
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:
|
|
23
|
-
onSuccess:
|
|
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:
|
|
5
|
-
onSuccess:
|
|
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
|
|
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<
|
|
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<
|
|
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.
|
|
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/
|
|
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.
|
|
31
|
+
"@clickview/styles": "1.0.12-dev.1",
|
|
31
32
|
"yup": "0.27.0"
|
|
32
33
|
},
|
|
33
34
|
"babel": {
|
package/tooling/externals.js
CHANGED
|
@@ -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:
|
|
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?:
|
|
16
|
+
onContentVisible?: (...args: any) => any;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export default class LazyLoad extends React.Component<LazyLoadComponentProps> {
|
|
@@ -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
|
-
}
|
package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts
DELETED
|
@@ -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,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,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 {};
|