@clickview/online 0.0.9-rc.0 → 0.0.10-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +8 -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 +1 -1
- 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/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/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/shared/src/apps/playlists/utils/getBackgroundColourClass.d.ts +2 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +1 -1
- package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +39 -0
- package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +4 -0
- package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +15 -0
- package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +7 -0
- package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +30 -0
- package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +66 -0
- package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
- package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +1 -0
- package/dist/libs/shared/src/components/channel-form-field/ChannelFormField.d.ts +8 -0
- package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +20 -0
- package/dist/libs/shared/src/components/edit-link/EditLink.d.ts +26 -0
- package/dist/libs/shared/src/components/edit-resource/EditResource.d.ts +15 -0
- package/dist/libs/shared/src/components/edit-video-links/EditVideoLinks.d.ts +11 -0
- package/dist/libs/shared/src/components/edit-video-resources/EditVideoResources.d.ts +20 -0
- package/dist/libs/shared/src/components/edit-video-subtitles/EditVideoSubtitles.d.ts +16 -0
- package/dist/libs/shared/src/components/file-select/FileSelect.d.ts +14 -0
- package/dist/libs/shared/src/components/file-select-button/FileSelectButton.d.ts +15 -0
- package/dist/libs/shared/src/components/file-upload-list/FileUploadList.d.ts +8 -0
- package/dist/libs/shared/src/components/forms/date-picker-form-field/DatePickerFormField.d.ts +17 -0
- 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/image-cropper/ImageCropper.d.ts +10 -0
- package/dist/libs/shared/src/components/image-select/ImageSelect.d.ts +14 -0
- package/dist/libs/shared/src/components/language-select/LanguageSelect.d.ts +8 -0
- 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/rating-select/RatingSelect.d.ts +12 -0
- package/dist/libs/shared/src/components/resource-list/ResourceList.d.ts +14 -0
- package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
- package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
- package/dist/libs/shared/src/components/subtitle-list/SubtitleList.d.ts +9 -0
- package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +2 -2
- 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 +2 -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 +1 -0
- package/dist/libs/shared/src/constants/ImageSizes.d.ts +8 -0
- package/dist/libs/shared/src/context/ImageStorageContext.d.ts +45 -0
- package/dist/libs/shared/src/enums/DateFormat.d.ts +7 -0
- package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
- package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +4 -0
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
- package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +4 -0
- 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/ImageRequests.d.ts +7 -0
- package/dist/libs/shared/src/flight-requests/LinkRequests.d.ts +11 -0
- package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +1 -0
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
- package/dist/libs/shared/src/flight-requests/RatingRequests.d.ts +4 -0
- package/dist/libs/shared/src/flight-requests/ResourceRequests.d.ts +11 -0
- package/dist/libs/shared/src/flight-requests/SubtitleRequests.d.ts +9 -0
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
- package/dist/libs/shared/src/hooks/UseListenOn.d.ts +3 -0
- package/dist/libs/shared/src/hooks/useGetCollectionItems.d.ts +7 -0
- 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/collections/SubtitleCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -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/Subtitle.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.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 +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.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/legacy/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +4 -0
- package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
- package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +29 -0
- package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +15 -0
- package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +22 -0
- package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +17 -0
- package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
- package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
- package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
- package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +5 -0
- package/dist/libs/shared/src/services/ConfigDataService.d.ts +2 -2
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/libs/shared/src/utils/ImageSelectHelper.d.ts +6 -0
- package/dist/libs/shared/src/utils/PermissionsHelper.d.ts +10 -0
- package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +18 -0
- package/dist/libs/shared/src/views/delete-link/DeleteLinkView.d.ts +8 -0
- package/dist/libs/shared/src/views/delete-resource/DeleteResourceView.d.ts +8 -0
- package/dist/libs/shared/src/views/delete-subtitle/DeleteSubtitleView.d.ts +8 -0
- package/dist/libs/shared/src/views/dialog/DialogView.d.ts +9 -0
- package/dist/libs/shared/src/views/edit-link/EditLinkView.d.ts +8 -0
- package/dist/libs/shared/src/views/edit-resource/EditResourceView.d.ts +8 -0
- package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +9 -0
- package/dist/online-app.css +21 -3
- package/dist/online-app.js +33 -3
- package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
- package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/old-forms/OldFormWrapper.d.ts +2 -1
- package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +1 -1
- package/dist/projects/online/src/apps/workspace/WorkspaceApplication.d.ts +19 -0
- package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/EditWorkspaceVideoDetails.d.ts +9 -0
- package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/partial-loading/PartialEditWorkspaceVideoDetails.d.ts +2 -0
- package/dist/projects/online/src/apps/workspace/context/WorkspaceAppContext.d.ts +3 -0
- package/dist/projects/online/src/apps/workspace/flight-requests/WorkspaceVideoRequests.d.ts +9 -0
- package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/EditWorkspaceVideoView.d.ts +8 -0
- package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/partial-loading/PartialEditVideoUploadArea.d.ts +2 -0
- package/dist/projects/online/src/index.d.ts +28 -2
- 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/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/enums/ThumbnailSize.d.ts +0 -6
- package/dist/projects/online/src/shared/hooks/UseListenOn.d.ts +0 -4
|
@@ -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,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,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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
+
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
3
|
+
import { ImageType } from "../../../../../libs/shared/src/enums/Images";
|
|
4
|
+
import { OnlineLayoutViewOptions, OnlineLayoutView } from "../../shared/layouts";
|
|
5
|
+
export declare class WorkspaceApplication extends ReactApplication {
|
|
6
|
+
protected layout: OnlineLayoutView;
|
|
7
|
+
get name(): string;
|
|
8
|
+
static get router(): any;
|
|
9
|
+
get channelName(): string;
|
|
10
|
+
get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
|
|
11
|
+
editVideo(id: string): void;
|
|
12
|
+
editCategoryVideo(folderId: string, videoId: string): void;
|
|
13
|
+
editResource(videoId: string, resourceId: string): void;
|
|
14
|
+
deleteResource(videoId: string, resourceId: string): void;
|
|
15
|
+
deleteSubtitle(videoId: string, subtitleId: string): void;
|
|
16
|
+
editLink(videoId: string, linkId: string): void;
|
|
17
|
+
deleteLink(videoId: string, linkId: string): void;
|
|
18
|
+
uploadImage(imageType: ImageType): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Video, Rating, UpdateVideoRequest } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface EditWorkspaceVideoDetailsProps {
|
|
4
|
+
video: Video;
|
|
5
|
+
saveVideo: (data: UpdateVideoRequest, onDone: () => void) => void;
|
|
6
|
+
ratings: Rating[];
|
|
7
|
+
}
|
|
8
|
+
export declare function EditWorkspaceVideoDetails(props: EditWorkspaceVideoDetailsProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
|
|
3
|
+
export declare const WorkspaceAppContextProvider: ({ children }: React.PropsWithChildren<HashObject<any>>) => 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>)>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Flight } from "../../../../../../libs/common/src/react";
|
|
2
|
+
import { HashObject } from "../../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
|
+
import { Xhr } from "../../../../../../libs/common/src/backbone/interfaces/Xhr";
|
|
4
|
+
import { UpdateVideoRequest } from "../../../../../../libs/shared/src/interfaces/requests/UpdateVideoRequest";
|
|
5
|
+
export declare const WorkspaceVideoRequests: {
|
|
6
|
+
video(id: string): Flight.Request;
|
|
7
|
+
updateVideo(id: string, data: UpdateVideoRequest, success?: (data: HashObject<any>) => void, error?: (Xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
8
|
+
hasPhysicalChapters(videoId: string): Flight.Request;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
interface EditWorkspaceVideoViewProps {
|
|
4
|
+
videoId: string;
|
|
5
|
+
returnAppLink: Core.AppLink;
|
|
6
|
+
}
|
|
7
|
+
export declare function EditWorkspaceVideoView(props: EditWorkspaceVideoViewProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -39,6 +39,8 @@ import './apps/subjects/views/preferences/subject-preferences/subject-preference
|
|
|
39
39
|
import './apps/subjects/views/preferences/subject-presentation/subject-presentation-selector.lang.json';
|
|
40
40
|
import './apps/subjects/views/preferences/summary/preferences-summary.lang.json';
|
|
41
41
|
import './apps/subjects/views/preferences/welcome/preferences-welcome.lang.json';
|
|
42
|
+
import './apps/workspace/components/edit-workspace-video-details/edit-workspace-video-details.lang.json';
|
|
43
|
+
import './apps/workspace/views/edit-workspace-video/edit-workspace-video-details-view.lang.json';
|
|
42
44
|
import './shared/components/video-list/video-list.lang.json';
|
|
43
45
|
import './shared/errors/not-found/not-found-error.lang.json';
|
|
44
46
|
import './shared/views/error/error.lang.json';
|
|
@@ -63,11 +65,21 @@ import '../../../libs/shared/src/apps/upload/errors/internet-connectivity/intern
|
|
|
63
65
|
import '../../../libs/shared/src/apps/upload/utils/upload-utils.lang.json';
|
|
64
66
|
import '../../../libs/shared/src/components/back-button/back-button.lang.json';
|
|
65
67
|
import '../../../libs/shared/src/components/badges/badge.lang.json';
|
|
68
|
+
import '../../../libs/shared/src/components/channel-form-field/channel-form-field.lang.json';
|
|
69
|
+
import '../../../libs/shared/src/components/confirmation-popup/confirmation-popup.lang.json';
|
|
66
70
|
import '../../../libs/shared/src/components/curriculum-links/curriculum-links.lang.json';
|
|
71
|
+
import '../../../libs/shared/src/components/edit-link/edit-link.lang.json';
|
|
72
|
+
import '../../../libs/shared/src/components/edit-resource/edit-resource.lang.json';
|
|
67
73
|
import '../../../libs/shared/src/components/edit-video-details/edit-video-details.lang.json';
|
|
74
|
+
import '../../../libs/shared/src/components/edit-video-links/edit-video-links.lang.json';
|
|
75
|
+
import '../../../libs/shared/src/components/edit-video-resources/edit-video-resources.lang.json';
|
|
76
|
+
import '../../../libs/shared/src/components/edit-video-subtitles/edit-video-subtitles.lang.json';
|
|
68
77
|
import '../../../libs/shared/src/components/favourite-button/favourite-button.lang.json';
|
|
69
78
|
import '../../../libs/shared/src/components/forms/form-buttons/form-buttons.lang.json';
|
|
79
|
+
import '../../../libs/shared/src/components/image-select/image-select.lang.json';
|
|
80
|
+
import '../../../libs/shared/src/components/language-select/language-select.lang.json';
|
|
70
81
|
import '../../../libs/shared/src/components/pagination/pagination.lang.json';
|
|
82
|
+
import '../../../libs/shared/src/components/rating-select/rating-select.lang.json';
|
|
71
83
|
import '../../../libs/shared/src/components/search-bar/search-bar.lang.json';
|
|
72
84
|
import '../../../libs/shared/src/components/video-list/components/video-item-description/video-item-description.lang.json';
|
|
73
85
|
import '../../../libs/shared/src/components/widgets/dynamic-widget/dynamic-widget.lang.json';
|
|
@@ -75,14 +87,26 @@ import '../../../libs/shared/src/components/widgets/fixed-widget/fixed-widget.la
|
|
|
75
87
|
import '../../../libs/shared/src/components/widgets/greeting-widget/greeting.lang.json';
|
|
76
88
|
import '../../../libs/shared/src/components/widgets/items/interactive-widget-item/interactive-widget-item.lang.json';
|
|
77
89
|
import '../../../libs/shared/src/components/widgets/items/subject-widget-item/subject-widget-item.lang.json';
|
|
90
|
+
import '../../../libs/shared/src/legacy/behaviors/file-drop/file-drop.lang.json';
|
|
91
|
+
import '../../../libs/shared/src/legacy/components/file-select/file-select.lang.json';
|
|
78
92
|
import '../../../libs/shared/src/legacy/components/pagination/pagination.lang.json';
|
|
93
|
+
import '../../../libs/shared/src/legacy/errors/too-many-files/too-many-files.lang.json';
|
|
94
|
+
import '../../../libs/shared/src/legacy/errors/too-many-resources/too-many-resources.lang.json';
|
|
95
|
+
import '../../../libs/shared/src/legacy/errors/too-many-subtitles/too-many-subtitles.lang.json';
|
|
79
96
|
import '../../../libs/shared/src/utils/shared-utils.lang.json';
|
|
80
97
|
import '../../../libs/shared/src/utils/video-actions/video-actions-helper.lang.json';
|
|
98
|
+
import '../../../libs/shared/src/views/delete-link/delete-link-view.lang.json';
|
|
99
|
+
import '../../../libs/shared/src/views/delete-resource/delete-resource-view.lang.json';
|
|
100
|
+
import '../../../libs/shared/src/views/delete-subtitle/delete-subtitle-view.lang.json';
|
|
101
|
+
import '../../../libs/shared/src/views/edit-link/edit-link-view.lang.json';
|
|
102
|
+
import '../../../libs/shared/src/views/edit-resource/edit-resource-view.lang.json';
|
|
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;
|
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.0",
|
|
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": "0.0.0-rc.0",
|
|
24
|
+
"@clickview/tooling": "0.0.19-dev.0",
|
|
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.0",
|
|
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
|
-
}
|