@clickview/online 0.0.8 → 0.0.9-rc.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.
Files changed (79) hide show
  1. package/dist/en.json +1 -1
  2. package/dist/online-app.css +2 -4
  3. package/dist/online-app.js +3 -3
  4. package/package.json +2 -2
  5. package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +0 -39
  6. package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
  7. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +0 -15
  8. package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
  9. package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
  10. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +0 -66
  11. package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +0 -9
  12. package/dist/libs/shared/src/components/channel-form-field/ChannelFormField.d.ts +0 -7
  13. package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +0 -20
  14. package/dist/libs/shared/src/components/edit-link/EditLink.d.ts +0 -26
  15. package/dist/libs/shared/src/components/edit-resource/EditResource.d.ts +0 -15
  16. package/dist/libs/shared/src/components/edit-video-links/EditVideoLinks.d.ts +0 -11
  17. package/dist/libs/shared/src/components/edit-video-resources/EditVideoResources.d.ts +0 -20
  18. package/dist/libs/shared/src/components/edit-video-subtitles/EditVideoSubtitles.d.ts +0 -16
  19. package/dist/libs/shared/src/components/file-select/FileSelect.d.ts +0 -14
  20. package/dist/libs/shared/src/components/file-select-button/FileSelectButton.d.ts +0 -15
  21. package/dist/libs/shared/src/components/file-upload-list/FileUploadList.d.ts +0 -8
  22. package/dist/libs/shared/src/components/forms/date-picker-form-field/DatePickerFormField.d.ts +0 -16
  23. package/dist/libs/shared/src/components/image-cropper/ImageCropper.d.ts +0 -10
  24. package/dist/libs/shared/src/components/image-select/ImageSelect.d.ts +0 -13
  25. package/dist/libs/shared/src/components/language-select/LanguageSelect.d.ts +0 -8
  26. package/dist/libs/shared/src/components/rating-select/RatingSelect.d.ts +0 -11
  27. package/dist/libs/shared/src/components/resource-list/ResourceList.d.ts +0 -14
  28. package/dist/libs/shared/src/components/subtitle-list/SubtitleList.d.ts +0 -9
  29. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +0 -8
  30. package/dist/libs/shared/src/constants/ImageSizes.d.ts +0 -8
  31. package/dist/libs/shared/src/context/ImageStorageContext.d.ts +0 -45
  32. package/dist/libs/shared/src/enums/DateFormat.d.ts +0 -7
  33. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +0 -8
  34. package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +0 -4
  35. package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +0 -4
  36. package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +0 -7
  37. package/dist/libs/shared/src/flight-requests/LinkRequests.d.ts +0 -11
  38. package/dist/libs/shared/src/flight-requests/RatingRequests.d.ts +0 -4
  39. package/dist/libs/shared/src/flight-requests/ResourceRequests.d.ts +0 -11
  40. package/dist/libs/shared/src/flight-requests/SubtitleRequests.d.ts +0 -9
  41. package/dist/libs/shared/src/hooks/UseListenOn.d.ts +0 -3
  42. package/dist/libs/shared/src/hooks/useGetCollectionItems.d.ts +0 -7
  43. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +0 -3
  44. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +0 -20
  45. package/dist/libs/shared/src/interfaces/models/Language.d.ts +0 -4
  46. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +0 -7
  47. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +0 -3
  48. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +0 -3
  49. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +0 -3
  50. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
  51. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +0 -4
  52. package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
  53. package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +0 -29
  54. package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +0 -15
  55. package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +0 -22
  56. package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +0 -17
  57. package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +0 -7
  58. package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
  59. package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
  60. package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +0 -5
  61. package/dist/libs/shared/src/utils/ImageSelectHelper.d.ts +0 -6
  62. package/dist/libs/shared/src/utils/PermissionsHelper.d.ts +0 -10
  63. package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +0 -9
  64. package/dist/libs/shared/src/views/delete-link/DeleteLinkView.d.ts +0 -8
  65. package/dist/libs/shared/src/views/delete-resource/DeleteResourceView.d.ts +0 -8
  66. package/dist/libs/shared/src/views/delete-subtitle/DeleteSubtitleView.d.ts +0 -8
  67. package/dist/libs/shared/src/views/dialog/DialogView.d.ts +0 -9
  68. package/dist/libs/shared/src/views/edit-link/EditLinkView.d.ts +0 -8
  69. package/dist/libs/shared/src/views/edit-resource/EditResourceView.d.ts +0 -8
  70. package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +0 -9
  71. package/dist/online-app.css.map +0 -1
  72. package/dist/online-app.js.map +0 -1
  73. package/dist/projects/online/src/apps/workspace/WorkspaceApplication.d.ts +0 -19
  74. package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/EditWorkspaceVideoDetails.d.ts +0 -9
  75. package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/partial-loading/PartialEditWorkspaceVideoDetails.d.ts +0 -2
  76. package/dist/projects/online/src/apps/workspace/context/WorkspaceAppContext.d.ts +0 -4
  77. package/dist/projects/online/src/apps/workspace/flight-requests/WorkspaceVideoRequests.d.ts +0 -9
  78. package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/EditWorkspaceVideoView.d.ts +0 -8
  79. package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/partial-loading/PartialEditVideoUploadArea.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/online",
3
- "version": "0.0.8",
3
+ "version": "0.0.9-rc.0",
4
4
  "description": "Online",
5
5
  "main": "dist/online-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@types/yup": "0.26.24"
28
28
  },
29
29
  "dependencies": {
30
- "@clickview/styles": "1.0.10",
30
+ "@clickview/styles": "1.0.11-rc.0",
31
31
  "yup": "0.27.0"
32
32
  },
33
33
  "babel": {
@@ -1,39 +0,0 @@
1
- export declare const UploadEventNames: {
2
- /**
3
- * This is fired when a file has finished uploading to file API. This event
4
- * has nothing to do with posting the uploaded resource to the respective repository.
5
- */
6
- UPLOAD_COMPLETE: string;
7
- /**
8
- * This is trigged when files are selected
9
- * from either the FileSelectBehavior or the FileDropBehavior
10
- */
11
- FILES_SELECTED: string;
12
- /**
13
- * This triggered by the upload service when it received ingest urls for all
14
- * the files added via a call to UploadService.addFiles(files: File[])
15
- */
16
- FILES_ADDED: string;
17
- /**
18
- * This is fired when the user cancels their own upload
19
- */
20
- UPLOAD_CANCELLED: string;
21
- /**
22
- * Name is self explanitory. This is only used internally by children
23
- * of BasePendingItemsService at the moment
24
- */
25
- PENDING_ITEM_READY_TO_WATCH: string;
26
- /**
27
- * Fired when we know that the pending items in args has changed status
28
- * or that it's foreground progress has been completed.
29
- */
30
- PENDING_ITEM_STATUS_CHANGE: string;
31
- /**
32
- * This is fired when the user cancels processing a recently uploaded video
33
- */
34
- PROCESSING_CANCELLED: string;
35
- /**
36
- * Fired when all uploads are finished or when uploading is cancelled. Unlocks navigation
37
- */
38
- UNLOCK_NAV: string;
39
- };
@@ -1,4 +0,0 @@
1
- export declare enum FileLifestyle {
2
- Permanent = 0,
3
- Temporary = 1
4
- }
@@ -1,15 +0,0 @@
1
- import { DialogError } from "../../../../errors/primitives/DialogError";
2
- import { DialogOptions } from "../../../../interfaces";
3
- /**
4
- * TODO: Create a more useful message here.
5
- * Perhaps using the mime types listen on MDN
6
- * https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
7
- * or in the list of all the official mime types
8
- * https://www.iana.org/assignments/media-types/media-types.xhtml
9
- */
10
- export declare class FileTypeError extends DialogError {
11
- constructor(message: string, files: File[], acceptedFiles: string);
12
- get name(): string;
13
- get lang(): string;
14
- get dialogOptions(): DialogOptions;
15
- }
@@ -1,7 +0,0 @@
1
- import { DialogError } from "../../../../errors/primitives/DialogError";
2
- import { DialogOptions } from "../../../../interfaces";
3
- export declare class InternetConnectivityError extends DialogError {
4
- constructor();
5
- get name(): string;
6
- get dialogOptions(): DialogOptions;
7
- }
@@ -1,30 +0,0 @@
1
- import * as Dropzone from 'dropzone';
2
- import { Core } from "../../../../../common/src/backbone";
3
- export interface UploadApiWrapperOptions extends Core.ServiceOptions {
4
- maxFileSize: number;
5
- chunkSize: number;
6
- chunkingEnabled: boolean;
7
- loggingEnabled: boolean;
8
- acceptedFiles: string;
9
- channelName: string;
10
- }
11
- export interface UploadApiWrapper {
12
- addFile(file: File): void;
13
- destroy(): void;
14
- start(): void;
15
- getId(file: File): string;
16
- removeFile(file: File): void;
17
- }
18
- export declare class DropzoneWrapper extends Core.Service implements UploadApiWrapper {
19
- private dropzone;
20
- options: UploadApiWrapperOptions;
21
- get name(): string;
22
- constructor(options: UploadApiWrapperOptions);
23
- initialize(options: UploadApiWrapperOptions): void;
24
- getId(file: File): string;
25
- addFile(file: Dropzone.DropzoneFile): void;
26
- removeFile(file: Dropzone.DropzoneFile): void;
27
- start(): void;
28
- destroy(): void;
29
- static isValidFile(file: File, acceptedFiles: string): boolean;
30
- }
@@ -1,66 +0,0 @@
1
- import { Core } from "../../../../../common/src/backbone";
2
- import { FileLifestyle } from "../enums/FileLifestyle";
3
- import { UploadApiWrapper } from './DropzoneWrapper';
4
- import { AnalyticsOptions } from "../../../../../analytics/src/interfaces";
5
- export interface UploadItem extends Core.Model {
6
- file: File;
7
- name: string;
8
- progress: number;
9
- }
10
- export declare enum UploadType {
11
- Video = 0,
12
- LearningResource = 1,
13
- Subtitle = 2
14
- }
15
- declare class UploadService extends Core.Service {
16
- protected uploadType: UploadType;
17
- protected fileLifestyle: FileLifestyle;
18
- protected uploader: UploadApiWrapper;
19
- private progressViewModel;
20
- private uploadDataService;
21
- private collection;
22
- initialize(): void;
23
- get channelName(): string;
24
- get lang(): string;
25
- /**
26
- * Dropzone is initialized once after the first upload is requested and it's chunk size
27
- * is set for the rest of the uploads. If we happen to have multiple ingest
28
- * servers that have different chunk max / min sizes, this may voilate those
29
- * sizes.
30
- */
31
- private initUploader;
32
- private bindListeners;
33
- private onProgress;
34
- isUploading(): boolean;
35
- getCollection(): Core.Collection<UploadItem>;
36
- setOverallProgress(): void;
37
- isValidFile(file: File): boolean;
38
- /**
39
- * Request uploads from fileApi and starts uploading.
40
- * @param files Array of browser File objects
41
- * @returns Returns false if any of the files did not match the accepted file list.
42
- */
43
- addFiles(files: File[], analyticsOptions?: AnalyticsOptions): void;
44
- private requestUploads;
45
- addFile(file: File, analyticsOptions: AnalyticsOptions): void;
46
- cancelUpload(id: string): void;
47
- protected onSuccess(file: File, response: any): void;
48
- cancelAllUploads(): void;
49
- protected getAcceptedFiles(): string;
50
- }
51
- export declare class BaseVideoUploadService extends UploadService {
52
- protected get uploadType(): UploadType;
53
- get name(): string;
54
- get fileLifestyle(): FileLifestyle;
55
- }
56
- export declare class SubtitleUploadService extends UploadService {
57
- protected get uploadType(): UploadType;
58
- get name(): string;
59
- get fileLifestyle(): FileLifestyle;
60
- }
61
- export declare class LearningResourceUploadService extends UploadService {
62
- protected get uploadType(): UploadType;
63
- get name(): string;
64
- get fileLifestyle(): FileLifestyle;
65
- }
66
- export {};
@@ -1,9 +0,0 @@
1
- declare const FileExtensions: {
2
- IMAGES: string;
3
- RESOURCES: string;
4
- SUBTITLES: string;
5
- };
6
- declare const FileExtensionHelper: {
7
- getResourceType(extension: string): string;
8
- };
9
- export { FileExtensions, FileExtensionHelper };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Channel } from "../../interfaces";
3
- declare type ObjectWithChannel<T extends object> = T & {
4
- channel: Channel;
5
- };
6
- export declare function ChannelFormField<T extends ObjectWithChannel<{}>>(): JSX.Element;
7
- export {};
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from 'react-bootstrap';
3
- import { PopupViewProps } from "../../interfaces";
4
- interface ConfirmationPopupProps {
5
- title: string;
6
- onClickConfirm: () => void;
7
- confirmButtonText?: string;
8
- cancelButtonText?: string;
9
- confirmButtonVariant?: ButtonProps['variant'];
10
- cancelButtonVariant?: ButtonProps['variant'];
11
- }
12
- declare type PropTypes = React.PropsWithChildren<ConfirmationPopupProps & PopupViewProps>;
13
- export declare function ConfirmationPopup(props: PropTypes): React.ReactElement;
14
- export declare namespace ConfirmationPopup {
15
- var defaultProps: {
16
- confirmButtonVariant: string;
17
- cancelButtonVariant: string;
18
- };
19
- }
20
- export {};
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from 'react-bootstrap';
3
- import { Link } from "../../interfaces";
4
- interface EditLinkFormProps {
5
- isNew: boolean;
6
- onClickCancel?: () => void;
7
- buttonContainerClassName?: string;
8
- submitButtonText?: string;
9
- submitButtonVariant?: ButtonProps['variant'];
10
- }
11
- export declare function EditLinkForm(props: EditLinkFormProps): JSX.Element;
12
- export declare namespace EditLinkForm {
13
- var defaultProps: {
14
- submitButtonVariant: string;
15
- };
16
- }
17
- interface EditLinkProps {
18
- saveLink: (link: Link, onDone: () => void) => void;
19
- onClickCancel?: () => void;
20
- link?: Link;
21
- buttonContainerClassName?: string;
22
- submitButtonText?: string;
23
- submitButtonVariant?: ButtonProps['variant'];
24
- }
25
- export declare function EditLink(props: EditLinkProps): JSX.Element;
26
- export {};
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { Resource, UpdateResourceRequest } from "../../interfaces";
3
- interface EditResourceFormProps {
4
- onClickCancel: () => void;
5
- buttonContainerClassName?: string;
6
- }
7
- export declare function EditResourceForm(props: EditResourceFormProps): JSX.Element;
8
- interface EditResourceProps {
9
- saveResource: (data: UpdateResourceRequest, onDone: () => void) => void;
10
- resource: Resource;
11
- onClickCancel: () => void;
12
- buttonContainerClassName?: string;
13
- }
14
- export declare function EditResource(props: EditResourceProps): JSX.Element;
15
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Link } from "../../interfaces";
3
- interface EditVideoLinksProps {
4
- links: Link[];
5
- addLink: (link: Link, onDone: () => void) => void;
6
- editLink: (id: string) => void;
7
- deleteLink: (id: string) => void;
8
- limit: number;
9
- }
10
- export declare function EditVideoLinks(props: EditVideoLinksProps): JSX.Element;
11
- export {};
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { Core } from "../../../../common/src/backbone";
3
- import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
4
- import { Resource, Video } from "../../interfaces";
5
- import { InteractionType } from "../../enums/UploadInteractionType";
6
- import { UploadItem } from "../../apps/upload/services/UploadService";
7
- interface EditVideoResourcesProps {
8
- video: Video;
9
- resources: Resource[];
10
- addResourceFiles: (files: File[], type?: InteractionType) => void;
11
- resourceLimit: number;
12
- uploadingFiles: UploadItem[];
13
- cancelUpload: (id: string) => void;
14
- getEditAppLink: (resourceId: string) => Core.AppLink;
15
- onClickDelete: (resourceId: string) => void;
16
- currentUserCustomerId: string;
17
- analyticsOptions?: AnalyticsOptions;
18
- }
19
- export declare function EditVideoResources(props: EditVideoResourcesProps): JSX.Element;
20
- export {};
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { Subtitle, Video } from "../../interfaces";
3
- import { InteractionType } from "../../enums/UploadInteractionType";
4
- import { UploadItem } from "../../apps/upload/services/UploadService";
5
- interface EditVideoSubtitlesProps {
6
- video: Video;
7
- subtitles: Subtitle[];
8
- addSubtitleFiles: (files: File[], type?: InteractionType) => void;
9
- subtitleLimit: number;
10
- uploadingFiles: UploadItem[];
11
- cancelUpload: (id: string) => void;
12
- onClickDelete: (subtitleId: string) => void;
13
- currentUserCustomerId: string;
14
- }
15
- export declare function EditVideoSubtitles(props: EditVideoSubtitlesProps): JSX.Element;
16
- export {};
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { InteractionType } from "../../enums/UploadInteractionType";
3
- interface FileSelectProps {
4
- onFilesAdded: (files: File[], type?: InteractionType) => void;
5
- title: string;
6
- description: string;
7
- alternateText: string;
8
- mimeType: string;
9
- acceptMultiple?: boolean;
10
- limitText: string;
11
- isClickViewContent?: boolean;
12
- }
13
- export declare function FileSelect(props: FileSelectProps): JSX.Element;
14
- export {};
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- interface FileSelectButtonProps {
3
- onFileSelect: (files: FileList) => void;
4
- className?: string;
5
- svgName?: string;
6
- acceptMultiple?: boolean;
7
- mimeType?: string;
8
- }
9
- export declare function FileSelectButton(props: React.PropsWithChildren<FileSelectButtonProps>): JSX.Element;
10
- export declare namespace FileSelectButton {
11
- var defaultProps: {
12
- className: string;
13
- };
14
- }
15
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { UploadItem } from "../../apps/upload/services/UploadService";
3
- interface FileUploadListProps {
4
- uploads: UploadItem[];
5
- cancelUpload: (id: string) => void;
6
- }
7
- export declare function FileUploadList(props: FileUploadListProps): JSX.Element;
8
- export {};
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { DateFormat } from "../../../enums/DateFormat";
3
- interface DatePickerFormFieldProps<T> {
4
- attribute: keyof T & string;
5
- label?: string;
6
- placeholder?: string;
7
- maxDate?: Date;
8
- format?: DateFormat;
9
- }
10
- export declare function DatePickerFormField<T extends {}>(props: DatePickerFormFieldProps<T>): JSX.Element;
11
- export declare namespace DatePickerFormField {
12
- var defaultProps: {
13
- format: DateFormat;
14
- };
15
- }
16
- export {};
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- interface ImageCropperProps {
3
- dataUrl: string;
4
- minHeight: number;
5
- minWidth: number;
6
- onCrop: (dataUrl: string) => void;
7
- onCancel: () => void;
8
- }
9
- export declare function ImageCropper(props: ImageCropperProps): React.ReactElement;
10
- export {};
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import { ImageType } from "../../enums/Images";
3
- import { Image } from "../../interfaces";
4
- interface ImageSelectProps<Values extends object> {
5
- imageType: ImageType;
6
- fieldName: keyof Values & string;
7
- application: string;
8
- uploadAction: string;
9
- label?: string;
10
- setSelectedImage?: (image: Image) => void;
11
- }
12
- export declare function ImageSelect<Values extends object>(props: ImageSelectProps<Values>): React.ReactElement;
13
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Language, PopupViewProps } from "../../interfaces";
3
- interface LanguageSelectProps extends PopupViewProps {
4
- onSelectLanguage: (language: Language) => void;
5
- defaultLanguage: Language;
6
- }
7
- export declare function LanguageSelect(props: LanguageSelectProps): JSX.Element;
8
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Rating, UpdateObjectRating } from "../../interfaces";
3
- declare type ObjectWithRating<T extends object> = T & {
4
- rating: UpdateObjectRating;
5
- };
6
- interface RatingSelectProps {
7
- ratings: Rating[];
8
- disabled?: boolean;
9
- }
10
- export declare function RatingSelect<T extends ObjectWithRating<{}>>(props: RatingSelectProps): JSX.Element;
11
- export {};
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { Core } from "../../../../common/src/backbone";
3
- import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
4
- import { Resource } from "../../interfaces";
5
- interface ResourceListProps {
6
- resources: Resource[];
7
- videoId: string;
8
- editable: boolean;
9
- getEditAppLink: (resourceId: string) => Core.AppLink;
10
- onClickDelete: (resourceId: string) => void;
11
- analyticsOptions?: AnalyticsOptions;
12
- }
13
- export declare function ResourceList(props: ResourceListProps): JSX.Element;
14
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Subtitle } from "../../interfaces";
3
- interface SubtitleListProps {
4
- subtitles: Subtitle[];
5
- onClickDelete: (subtitleId: string) => void;
6
- isClickViewContent?: boolean;
7
- }
8
- export declare function SubtitleList(props: SubtitleListProps): JSX.Element;
9
- export {};
@@ -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,8 +0,0 @@
1
- interface IImageMinDimensions {
2
- width: number;
3
- height: number;
4
- }
5
- export declare const ImageMinDimensions: {
6
- [index: string]: IImageMinDimensions;
7
- };
8
- export {};
@@ -1,45 +0,0 @@
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,7 +0,0 @@
1
- /**
2
- * For date formats see:
3
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
4
- */
5
- export declare enum DateFormat {
6
- FullYear = "d MMMM yyyy"
7
- }
@@ -1,8 +0,0 @@
1
- export declare enum MasterObjectTypes {
2
- Folder = "category",
3
- CategoryTree = "category_tree",
4
- CustomLibrary = "custom_library",
5
- HostedLibrary = "hosted_library",
6
- Exchange = "exchange",
7
- Workspace = "workspace"
8
- }
@@ -1,4 +0,0 @@
1
- export declare enum ObjectOwnerType {
2
- Customer = 1,
3
- ClickView = 2
4
- }
@@ -1,4 +0,0 @@
1
- export declare enum InteractionType {
2
- FileSelect = "file-select",
3
- DragDrop = "drag-drop"
4
- }
@@ -1,7 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- import { Flight } from "../../../common/src/react";
2
- export declare const RatingRequests: {
3
- ratings(): Flight.Request;
4
- };
@@ -1,11 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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,3 +0,0 @@
1
- /// <reference types="backbone.radio" />
2
- import { Radio, Model, Collection } from 'backbone';
3
- export declare const useListenOn: (obj: Radio.Channel | Model | Collection<Model>, eventName: string, callback: (obj?: any) => void) => void;
@@ -1,7 +0,0 @@
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[];
@@ -1,3 +0,0 @@
1
- import { BasePaginatedCollection, Subtitle } from "./..";
2
- export interface SubtitleCollection extends BasePaginatedCollection<Subtitle> {
3
- }
@@ -1,20 +0,0 @@
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
- }