@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
package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Core } from "../../../../../../common/src/backbone";
|
|
3
3
|
import { WidgetContext, Video } from "../../../../interfaces";
|
|
4
|
-
import {
|
|
4
|
+
import { ImageSize } from "../../../../enums/Images";
|
|
5
5
|
import { AnalyticsOptions, HashObject } from "../../../../../../analytics/src/interfaces";
|
|
6
6
|
interface VideoWidgetItemProps {
|
|
7
7
|
data: Video;
|
|
8
8
|
appLink: Core.AppLink;
|
|
9
9
|
seriesAppLink: Core.AppLink;
|
|
10
10
|
context: WidgetContext;
|
|
11
|
-
thumbnailSize:
|
|
11
|
+
thumbnailSize: ImageSize;
|
|
12
12
|
onHover: (isHovering: boolean) => void;
|
|
13
13
|
preloadImage?: boolean;
|
|
14
14
|
analyticsData?: HashObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CssMeasurement } from "../../../enums/CssMeasurement";
|
|
3
|
-
interface SlidingListContainerProps extends React.PropsWithChildren<
|
|
3
|
+
interface SlidingListContainerProps extends React.PropsWithChildren<unknown> {
|
|
4
4
|
position: number;
|
|
5
5
|
positionType: CssMeasurement;
|
|
6
6
|
onDrag?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Image } from "../interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* This context is used for transferring image
|
|
5
|
+
* data between different areas of the application.
|
|
6
|
+
*
|
|
7
|
+
* It stores base64 image files that have been read
|
|
8
|
+
* in from ImageSelect component for the purpose of
|
|
9
|
+
* being cropped and uploaded in ImageUploadView.
|
|
10
|
+
*
|
|
11
|
+
* Image objects uploaded in ImageUploadView can then be
|
|
12
|
+
* stored in the context for use in the component
|
|
13
|
+
* that initially requested the upload.
|
|
14
|
+
*/
|
|
15
|
+
interface IImageStorageContext {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve the stored base64 dataUrl. This will
|
|
18
|
+
* reset the stored value after it is read.
|
|
19
|
+
*/
|
|
20
|
+
getDataUrl: () => string;
|
|
21
|
+
/**
|
|
22
|
+
* Set the stored dataUrl.
|
|
23
|
+
*/
|
|
24
|
+
setDataUrl: (dataUrl: string) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve the stored image object. This will
|
|
27
|
+
* reset the stored image object.
|
|
28
|
+
*/
|
|
29
|
+
getImage: () => Image;
|
|
30
|
+
/**
|
|
31
|
+
* Store an image after it has been successfully
|
|
32
|
+
* uploaded.
|
|
33
|
+
*/
|
|
34
|
+
setImage: (image: Image) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Flag to notify anything using this context
|
|
37
|
+
* that an image has been uploaded.
|
|
38
|
+
*/
|
|
39
|
+
imageUploaded: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const ImageStorageContext: React.Context<IImageStorageContext>;
|
|
42
|
+
export declare const ImageStorageContextProvider: ({ children }: {
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
}) => JSX.Element;
|
|
45
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { Config } from '../interfaces';
|
|
2
3
|
export declare const ConfigRequests: {
|
|
3
|
-
config: Flight.Request;
|
|
4
|
+
config(success?: (config: Config) => void, error?: () => void): Flight.Request;
|
|
5
|
+
version(success?: (version: any) => void, error?: () => void): Flight.Request;
|
|
4
6
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
|
|
3
|
+
import { HashObject } from "../../../common/src/react/interfaces";
|
|
4
|
+
import { ImageType } from "../enums/Images";
|
|
5
|
+
export declare const ImageRequests: {
|
|
6
|
+
uploadBase64Image(dataUrl: string, type: ImageType, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
7
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { HashObject } from "../../../common/src/react/interfaces/HashObject";
|
|
3
|
+
import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
|
|
4
|
+
import { Link } from "../interfaces";
|
|
5
|
+
export declare const LinkRequests: {
|
|
6
|
+
link(id: string): Flight.Request;
|
|
7
|
+
videoLinks(videoId: string): Flight.Request;
|
|
8
|
+
addLink(videoId: string, link: any, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
9
|
+
updateLink(id: string, data: Link, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
10
|
+
deleteLink(id: string, videoId: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
11
|
+
};
|
|
@@ -22,4 +22,5 @@ export declare const PlaylistRequests: {
|
|
|
22
22
|
getPlaylistPrivacy(playlistId: string): Flight.Request;
|
|
23
23
|
updatePlaylistPrivacy(playlistId: string, privacy: PlaylistPrivacy, success?: (data: any) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
24
24
|
getMigrationTask(success?: (data: any) => void, error?: (xhr: Xhr) => void): Flight.Request;
|
|
25
|
+
copyPlaylist(id: string, success?: (data: any) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
25
26
|
};
|
|
@@ -7,7 +7,7 @@ export declare const PreferenceRequests: {
|
|
|
7
7
|
*/
|
|
8
8
|
currentPresentations(type?: PresentationType): Flight.Request;
|
|
9
9
|
availablePresentations(type?: PresentationType): Flight.Request;
|
|
10
|
-
setPresentation(presentation: Presentation, type: PresentationType, success?: () => void): Flight.Request;
|
|
10
|
+
setPresentation(presentation: Presentation, type: PresentationType, success?: () => void, error?: () => void): Flight.Request;
|
|
11
11
|
/**
|
|
12
12
|
* Subjects
|
|
13
13
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { HashObject } from "../../../common/src/react/interfaces/HashObject";
|
|
3
|
+
import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
|
|
4
|
+
import { UpdateResourceRequest } from "../interfaces";
|
|
5
|
+
export declare const ResourceRequests: {
|
|
6
|
+
resource(id: string): Flight.Request;
|
|
7
|
+
videoResources(videoId: string): Flight.Request;
|
|
8
|
+
addResource(videoId: string, resource: any, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
9
|
+
updateResource(id: string, data: UpdateResourceRequest, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
10
|
+
deleteResource(id: string, videoId: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Flight } from "../../../common/src/react";
|
|
2
|
+
import { HashObject } from "../../../common/src/react/interfaces/HashObject";
|
|
3
|
+
import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
|
|
4
|
+
export declare const SubtitleRequests: {
|
|
5
|
+
subtitle(id: string): Flight.Request;
|
|
6
|
+
videoSubtitles(videoId: string): Flight.Request;
|
|
7
|
+
addSubtitle(videoId: string, subtitle: any, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
8
|
+
deleteSubtitle(id: string, videoId: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
9
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Flight } from "../../../common/src/react";
|
|
2
2
|
import { CurrentUser } from "../interfaces";
|
|
3
|
+
import { HashObject } from "../../../common/src/react/interfaces";
|
|
3
4
|
export declare const UserRequests: {
|
|
4
5
|
currentUser(success?: (user: CurrentUser) => void, error?: () => void): Flight.Request;
|
|
5
|
-
workspace: Flight.Request;
|
|
6
|
+
workspace(success?: (workspace: HashObject<any>) => void, error?: () => void): Flight.Request;
|
|
6
7
|
sendVerificationEmail(emailAddress: string, success: () => void, error: () => void, always: () => void): Flight.Request;
|
|
8
|
+
token(success?: (token: HashObject<any>) => void, error?: () => void): Flight.Request;
|
|
7
9
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Core } from "../../../common/src/backbone";
|
|
3
|
+
/**
|
|
4
|
+
* Hook used to listen to updates on a Backbone Collection
|
|
5
|
+
* and trigger a re-render.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useGetCollectionItems<T>(getCollection: () => Core.Collection, onRemove?: () => void, dependencies?: React.DependencyList): T[];
|
|
@@ -19,4 +19,6 @@ import VisibleOn from './visible-on.svg';
|
|
|
19
19
|
import NoEdit from './no-edit.svg';
|
|
20
20
|
import EditClickView from './edit-clickview.svg';
|
|
21
21
|
import Share2 from './share2.svg';
|
|
22
|
-
|
|
22
|
+
import Download from './download.svg';
|
|
23
|
+
import Print from './print.svg';
|
|
24
|
+
export { AddToPlaylist, Close, Delete, Edit, Expand, Minus, More, NewWindow, Plus, Preview, Search, Share, Upload, Down, Right, UpDown, VisibleOff, VisibleOn, NoEdit, EditClickView, Share2, Download, Print };
|
|
@@ -5,7 +5,9 @@ export interface Config extends BaseObject {
|
|
|
5
5
|
imageCdnUrl: string;
|
|
6
6
|
countryCode: CountryCode;
|
|
7
7
|
webPlayerUrl: string;
|
|
8
|
+
gatewayApiUrl: string;
|
|
8
9
|
notificationServiceUrl?: string;
|
|
9
10
|
collectionApiUrls?: RegionalUrl;
|
|
10
11
|
collectionApiClientId?: string;
|
|
12
|
+
playerApiUrl?: string;
|
|
11
13
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for a file uploaded
|
|
3
|
+
* to FileApi
|
|
4
|
+
*/
|
|
5
|
+
export interface FileUpload {
|
|
6
|
+
id: string;
|
|
7
|
+
file: {
|
|
8
|
+
cvUpload: {
|
|
9
|
+
uploadId: string;
|
|
10
|
+
ingestUrl: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
fileInfo: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
extension: string;
|
|
17
|
+
size: number;
|
|
18
|
+
url: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BaseObject } from "./..";
|
|
2
2
|
import { GlanceFormat } from "../../enums/GlanceFormat";
|
|
3
|
+
import { ThemeType } from "../../enums/ThemeType";
|
|
3
4
|
export interface Glance extends BaseObject {
|
|
4
5
|
theme: string;
|
|
5
6
|
format: GlanceFormat;
|
|
6
7
|
content: string;
|
|
8
|
+
type: ThemeType;
|
|
7
9
|
}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { BaseObject } from './primitives';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Thumbnail } from './Thumbnail';
|
|
3
|
+
import { FileType } from "../../utils/VideoDetailsHelper";
|
|
4
|
+
import { Pdf } from './Pdf';
|
|
5
|
+
export declare type ResourceType = 'teacher-pack' | 'student-activity' | 'additional-materials' | 'atom-guide';
|
|
6
|
+
interface ResourceMetadata {
|
|
7
|
+
type: FileType;
|
|
8
|
+
resourceType?: ResourceType;
|
|
4
9
|
}
|
|
5
10
|
export interface Resource extends BaseObject {
|
|
6
11
|
url: string;
|
|
7
|
-
metadata:
|
|
12
|
+
metadata: ResourceMetadata;
|
|
13
|
+
fileId: string;
|
|
14
|
+
thumbnail: Thumbnail;
|
|
15
|
+
pdf?: Pdf;
|
|
8
16
|
}
|
|
9
17
|
export {};
|
|
@@ -2,7 +2,10 @@ import { BaseObject, Group, Avatar } from "./..";
|
|
|
2
2
|
import { UserRole } from "../../enums/UserRole";
|
|
3
3
|
import { CustomerType } from "../../enums/CustomerType";
|
|
4
4
|
import { OnlineUserRole } from "../../enums/UserRole";
|
|
5
|
+
import { UserGroup } from "../../enums/UserGroup";
|
|
6
|
+
import { ObjectStatus } from "../../enums/ObjectStatus";
|
|
5
7
|
import { CustomerCollection } from '../collections';
|
|
8
|
+
export declare type YearGroup = 'Kindergarten' | 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Year 6' | 'Year 7' | 'Year 8' | 'Year 9' | 'Year 10' | 'Year 11' | 'Year 12' | 'Year 13' | 'Staff';
|
|
6
9
|
/**
|
|
7
10
|
* Master User
|
|
8
11
|
*/
|
|
@@ -13,10 +16,14 @@ export interface User extends BaseObject {
|
|
|
13
16
|
bio: string;
|
|
14
17
|
email: string;
|
|
15
18
|
username: string;
|
|
16
|
-
status:
|
|
19
|
+
status: ObjectStatus;
|
|
17
20
|
role: UserRole;
|
|
18
21
|
customers: CustomerCollection;
|
|
22
|
+
yearGroup: YearGroup;
|
|
23
|
+
userType: UserGroup;
|
|
19
24
|
avatar?: Avatar;
|
|
25
|
+
isPrimaryContact: boolean;
|
|
26
|
+
roleId: OnlineUserRole;
|
|
20
27
|
}
|
|
21
28
|
export interface CuratorUser extends User {
|
|
22
29
|
userId: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { UpdateObjectRating, UpdateObjectChannel, Thumbnail } from "./..";
|
|
1
2
|
export interface UpdateVideoRequest {
|
|
2
|
-
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
description?: string;
|
|
5
|
+
rating: UpdateObjectRating;
|
|
6
|
+
dateBroadcast?: string;
|
|
7
|
+
channel?: UpdateObjectChannel;
|
|
8
|
+
thumbnail?: Thumbnail;
|
|
5
9
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { CurrentUser } from "./..";
|
|
2
|
+
import { HashObject } from "../../../../common/src/react/interfaces";
|
|
2
3
|
export interface BaseUserDataService {
|
|
3
4
|
getCurrentUser(success?: (user: CurrentUser) => void, error?: () => void): void;
|
|
5
|
+
getWorkspace(success?: (workspace: HashObject) => void, error?: () => void): void;
|
|
4
6
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Core } from "../../../../../common/src/backbone";
|
|
2
|
+
import { ObjectHash } from 'backbone';
|
|
3
|
+
interface FileDropBehaviorOptions {
|
|
4
|
+
channelName: string;
|
|
5
|
+
acceptMultiple: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class FileDropBehavior extends Core.Behavior {
|
|
8
|
+
options: FileDropBehaviorOptions;
|
|
9
|
+
private locked;
|
|
10
|
+
initialize(): void;
|
|
11
|
+
get events(): ObjectHash;
|
|
12
|
+
private lock;
|
|
13
|
+
private unlock;
|
|
14
|
+
/**
|
|
15
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop
|
|
16
|
+
*/
|
|
17
|
+
private onDrop;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Core } from "../../../../../common/src/backbone";
|
|
2
|
+
import { ObjectHash } from 'backbone';
|
|
3
|
+
interface FileSelectBehaviorOptions {
|
|
4
|
+
buttonSelector?: string;
|
|
5
|
+
channelName: string;
|
|
6
|
+
acceptMultiple: boolean;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class FileSelectBehavior extends Core.Behavior {
|
|
10
|
+
options: FileSelectBehaviorOptions;
|
|
11
|
+
events(): ObjectHash;
|
|
12
|
+
private onClickSelect;
|
|
13
|
+
private onChangeFileSelect;
|
|
14
|
+
onRender(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { Core } from "../../../../../common/src/backbone";
|
|
3
|
+
interface FileSelectComponentOptions extends Core.ComponentOptions {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
alternateText: string;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
channelName: string;
|
|
9
|
+
acceptMultiple?: boolean;
|
|
10
|
+
limitText: string;
|
|
11
|
+
isClickViewContent?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class FileSelectComponent extends Core.Component {
|
|
14
|
+
options: FileSelectComponentOptions;
|
|
15
|
+
constructor(options: FileSelectComponentOptions);
|
|
16
|
+
get name(): string;
|
|
17
|
+
get template(): any;
|
|
18
|
+
get lang(): string;
|
|
19
|
+
get elements(): ObjectHash;
|
|
20
|
+
get defaults(): ObjectHash;
|
|
21
|
+
get behaviors(): any[];
|
|
22
|
+
events(): ObjectHash;
|
|
23
|
+
private onDrop;
|
|
24
|
+
private onDragOver;
|
|
25
|
+
private onDragLeave;
|
|
26
|
+
viewOptions(): ObjectHash;
|
|
27
|
+
onRender(): void;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { Core } from "../../../../../common/src/backbone";
|
|
3
|
+
export interface FileUploadComponentOptions extends Core.ComponentOptions {
|
|
4
|
+
onClickCancelUpload: (id: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare class FileUploadComponent extends Core.Component {
|
|
7
|
+
options: FileUploadComponentOptions;
|
|
8
|
+
constructor(options: FileUploadComponentOptions);
|
|
9
|
+
initialize(): void;
|
|
10
|
+
get name(): string;
|
|
11
|
+
get template(): any;
|
|
12
|
+
events(): ObjectHash;
|
|
13
|
+
private onClickCancelUpload;
|
|
14
|
+
viewOptions(): ObjectHash;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { Core } from "../../../../../common/src/backbone";
|
|
3
|
+
import { AnalyticsOptions } from "../../../../../analytics/src/interfaces";
|
|
4
|
+
export interface ResourceItemComponentOptions extends Core.ComponentOptions {
|
|
5
|
+
editable: boolean;
|
|
6
|
+
videoId: string;
|
|
7
|
+
getEditAppLink: (resourceId: string) => Core.AppLink;
|
|
8
|
+
onClickDelete: (resource: Core.Model) => void;
|
|
9
|
+
analyticsOptions?: AnalyticsOptions;
|
|
10
|
+
}
|
|
11
|
+
export declare class ResourceItemComponent extends Core.Component {
|
|
12
|
+
options: ResourceItemComponentOptions;
|
|
13
|
+
constructor(options: ResourceItemComponentOptions);
|
|
14
|
+
get name(): string;
|
|
15
|
+
get template(): any;
|
|
16
|
+
get className(): string;
|
|
17
|
+
events(): ObjectHash;
|
|
18
|
+
get appLinks(): Core.AppLinkHash;
|
|
19
|
+
private onClickEdit;
|
|
20
|
+
private onClickDelete;
|
|
21
|
+
viewOptions(): ObjectHash;
|
|
22
|
+
}
|