react-covideo-embed 1.0.9 → 1.0.10
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/package.json +2 -2
- package/build/app/App.d.ts +0 -3
- package/build/app/pages/insertVideo/InsertVideo.d.ts +0 -13
- package/build/app/pages/insertVideo/components/CopyVideoButton.d.ts +0 -13
- package/build/app/pages/insertVideo/components/InsertButton.d.ts +0 -13
- package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +0 -17
- package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +0 -13
- package/build/app/pages/insertVideo/components/index.d.ts +0 -2
- package/build/app/pages/lesaTV/LesaTV.d.ts +0 -1
- package/build/app/pages/lesaTV/components/PageInfo.d.ts +0 -7
- package/build/app/pages/lesaTV/components/Search.d.ts +0 -6
- package/build/app/pages/lesaTV/components/index.d.ts +0 -2
- package/build/app/pages/library/Library.d.ts +0 -5
- package/build/app/pages/library/components/NoVideos.d.ts +0 -6
- package/build/app/pages/library/components/PageInfo.d.ts +0 -7
- package/build/app/pages/library/components/Search.d.ts +0 -6
- package/build/app/pages/library/components/UserDropdown.d.ts +0 -6
- package/build/app/pages/library/components/VideoItem.d.ts +0 -9
- package/build/app/pages/library/components/VideoItemThumbnail.d.ts +0 -11
- package/build/app/pages/library/components/const.d.ts +0 -6
- package/build/app/pages/library/components/index.d.ts +0 -5
- package/build/app/pages/login/Login.d.ts +0 -5
- package/build/app/pages/merge/Merge.d.ts +0 -1
- package/build/app/pages/merge/components/Player.d.ts +0 -7
- package/build/app/pages/merge/components/VideoMerge.d.ts +0 -1
- package/build/app/pages/merge/components/VideoRow.d.ts +0 -1
- package/build/app/pages/merge/components/VideoThumbnail.d.ts +0 -1
- package/build/app/pages/previewUpload/PreviewUpload.d.ts +0 -2
- package/build/app/pages/record/both/RecordBoth.d.ts +0 -1
- package/build/app/pages/record/both/main/Main.d.ts +0 -1
- package/build/app/pages/record/cam/RecordCam.d.ts +0 -1
- package/build/app/pages/record/cam/main/Main.d.ts +0 -1
- package/build/app/pages/record/home/RecordHome.d.ts +0 -1
- package/build/app/pages/record/screen/RecordScreen.d.ts +0 -2
- package/build/app/pages/record/screen/main/Main.d.ts +0 -1
- package/build/app/pages/video/Upload.d.ts +0 -10
- package/build/app/pages/video/components/Preview.d.ts +0 -13
- package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +0 -29
- package/build/app/pages/video/components/videoPlayer/components/index.d.ts +0 -2
- package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +0 -10
- package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +0 -10
- package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +0 -15
- package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +0 -7
- package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +0 -9
- package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +0 -19
- package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +0 -10
- package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +0 -13
- package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +0 -7
- package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +0 -25
- package/build/app/pages/video/components/videoPlayer/index.d.ts +0 -1
- package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +0 -7
- package/build/app/pages/voiceover/Voiceover.d.ts +0 -1
- package/build/app/pages/voiceover/components/AudioRecorder.d.ts +0 -14
- package/build/app/pages/voiceover/components/VideoPreview.d.ts +0 -11
- package/build/app/pages/voiceover/components/util.d.ts +0 -1
- package/build/app/pages/wheelsTV/WheelsTV.d.ts +0 -1
- package/build/app/pages/wheelsTV/components/PageInfo.d.ts +0 -7
- package/build/app/pages/wheelsTV/components/Search.d.ts +0 -6
- package/build/app/pages/wheelsTV/components/index.d.ts +0 -2
- package/build/index.d.ts +0 -81
- package/build/index.js +0 -768
- package/build/index.js.LICENSE.txt +0 -81
- package/build/lib/api/attributesApi.d.ts +0 -8
- package/build/lib/api/authApi.d.ts +0 -11
- package/build/lib/api/designApi.d.ts +0 -86
- package/build/lib/api/index.d.ts +0 -9
- package/build/lib/api/inventoryApi.d.ts +0 -10
- package/build/lib/api/lesa/lesaKeys.d.ts +0 -6
- package/build/lib/api/lesa/useLesaTvVideosQuery.d.ts +0 -27
- package/build/lib/api/lesa/useLesaVideosMutation.d.ts +0 -8
- package/build/lib/api/multilocation/getUserLocations.d.ts +0 -12
- package/build/lib/api/multilocation/locationKeys.d.ts +0 -3
- package/build/lib/api/multilocation/signIntoLocation.d.ts +0 -10
- package/build/lib/api/quckshareApi.d.ts +0 -18
- package/build/lib/api/types.d.ts +0 -44
- package/build/lib/api/videoRequestApi.d.ts +0 -6
- package/build/lib/api/videoTagsApi.d.ts +0 -13
- package/build/lib/api/videosApi.d.ts +0 -64
- package/build/lib/api/voiceOverApi.d.ts +0 -20
- package/build/lib/api/wtvApi.d.ts +0 -34
- package/build/lib/components/ButtonDropdown.d.ts +0 -22
- package/build/lib/components/CheckboxInput.d.ts +0 -19
- package/build/lib/components/CloseButton.d.ts +0 -13
- package/build/lib/components/Container.d.ts +0 -9
- package/build/lib/components/CountDown.d.ts +0 -1
- package/build/lib/components/DragAndDrop.d.ts +0 -21
- package/build/lib/components/Dropdown.d.ts +0 -29
- package/build/lib/components/HoverPopup.d.ts +0 -15
- package/build/lib/components/Input.d.ts +0 -10
- package/build/lib/components/Label.d.ts +0 -6
- package/build/lib/components/LoadingIndicator.d.ts +0 -11
- package/build/lib/components/Logo.d.ts +0 -5
- package/build/lib/components/MainWrapper.d.ts +0 -6
- package/build/lib/components/PreviewVideoBar.d.ts +0 -8
- package/build/lib/components/RouteLeavingGuard.d.ts +0 -18
- package/build/lib/components/Spinner.d.ts +0 -6
- package/build/lib/components/TopBar.d.ts +0 -9
- package/build/lib/components/index.d.ts +0 -15
- package/build/lib/components/inputs/RadioInput.d.ts +0 -14
- package/build/lib/components/modal/Modal.d.ts +0 -13
- package/build/lib/components/modal/ModalQuickShareMarkAsSent.d.ts +0 -14
- package/build/lib/components/modal/ModalRecordingSettings.d.ts +0 -10
- package/build/lib/components/modals/Modal.d.ts +0 -14
- package/build/lib/components/modals/ModalInputText.d.ts +0 -11
- package/build/lib/components/modals/ModalLeave.d.ts +0 -15
- package/build/lib/components/modals/ModalPrompt.d.ts +0 -12
- package/build/lib/components/modals/ModalUpload.d.ts +0 -7
- package/build/lib/components/modals/ModalVideoPreview.d.ts +0 -7
- package/build/lib/components/toast-notifications/ToastNotification.d.ts +0 -5
- package/build/lib/components/toast-notifications/index.d.ts +0 -4
- package/build/lib/components/videoUpload/MultipleUploadList.d.ts +0 -8
- package/build/lib/components/videoUpload/VideoUpload.d.ts +0 -9
- package/build/lib/components/videoUpload/styles.d.ts +0 -11
- package/build/lib/config.d.ts +0 -22
- package/build/lib/const/AutomotiveRole.d.ts +0 -8
- package/build/lib/const/Folder.d.ts +0 -9
- package/build/lib/const/MarkAsSentOptions.d.ts +0 -14
- package/build/lib/const/PackageName.d.ts +0 -7
- package/build/lib/const/VideoActivity.d.ts +0 -16
- package/build/lib/const/VideoEmailStatus.d.ts +0 -7
- package/build/lib/const/VideoStatus.d.ts +0 -6
- package/build/lib/const/VideoType.d.ts +0 -15
- package/build/lib/const/index.d.ts +0 -5
- package/build/lib/context/ActionDispatchContext.d.ts +0 -4
- package/build/lib/context/AuthorizationContext.d.ts +0 -114
- package/build/lib/context/ConfigurationContext.d.ts +0 -52
- package/build/lib/context/actionCreators.d.ts +0 -37
- package/build/lib/context/authHandlers.d.ts +0 -2
- package/build/lib/context/authReducer.d.ts +0 -16
- package/build/lib/context/index.d.ts +0 -3
- package/build/lib/context/types.d.ts +0 -149
- package/build/lib/hooks/index.d.ts +0 -2
- package/build/lib/hooks/query/inventoryItem/index.d.ts +0 -1
- package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +0 -12
- package/build/lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation.d.ts +0 -28
- package/build/lib/hooks/useCopyClipboard.d.ts +0 -4
- package/build/lib/hooks/useCreateVideo.d.ts +0 -21
- package/build/lib/hooks/useEncodeVideo.d.ts +0 -16
- package/build/lib/hooks/useImageLoadRetry.d.ts +0 -10
- package/build/lib/hooks/useMediaRecorder.d.ts +0 -32
- package/build/lib/hooks/usePresignedUrl.d.ts +0 -16
- package/build/lib/hooks/useQueryFetch.d.ts +0 -16
- package/build/lib/hooks/useQueryState.d.ts +0 -22
- package/build/lib/hooks/useS3Upload.d.ts +0 -15
- package/build/lib/hooks/useVideoLoadRetry.d.ts +0 -12
- package/build/lib/hooks/useVideoStore.d.ts +0 -17
- package/build/lib/hooks/useVideoTranscriptionStart.d.ts +0 -9
- package/build/lib/images/AccountIcon.d.ts +0 -2
- package/build/lib/images/AddIcon.d.ts +0 -2
- package/build/lib/images/CarIcon.d.ts +0 -2
- package/build/lib/images/CheckmarkIcon.d.ts +0 -2
- package/build/lib/images/CloseCircleIcon.d.ts +0 -2
- package/build/lib/images/CloseIcon.d.ts +0 -2
- package/build/lib/images/DeleteIcon.d.ts +0 -2
- package/build/lib/images/Drag.d.ts +0 -2
- package/build/lib/images/HashtagIcon.d.ts +0 -2
- package/build/lib/images/LaptopIcon.d.ts +0 -2
- package/build/lib/images/LogoCDS.d.ts +0 -2
- package/build/lib/images/LogoGeneral.d.ts +0 -2
- package/build/lib/images/SaveIcon.d.ts +0 -2
- package/build/lib/images/SettingsIcon.d.ts +0 -2
- package/build/lib/images/SmallLogoIcon.d.ts +0 -2
- package/build/lib/images/VectorIcon.d.ts +0 -2
- package/build/lib/images/VideoIcon.d.ts +0 -2
- package/build/lib/images/ZoomInIcon.d.ts +0 -2
- package/build/lib/images/ZoomOutIcon.d.ts +0 -2
- package/build/lib/images/pauseButton.d.ts +0 -2
- package/build/lib/images/playButton.d.ts +0 -2
- package/build/lib/images/volumeOff.d.ts +0 -1
- package/build/lib/style/index.d.ts +0 -2
- package/build/lib/style/theme.d.ts +0 -121
- package/build/lib/utils/UseOnClickOutside.d.ts +0 -3
- package/build/lib/utils/automotiveRolePermissionChecks.d.ts +0 -7
- package/build/lib/utils/functions.d.ts +0 -22
- package/build/lib/utils/reactions.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-covideo-embed",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Covideo platform as an embeddable React component.",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"rc-progress": "^3.4.1",
|
|
69
69
|
"react-beautiful-dnd": "^13.1.1",
|
|
70
70
|
"react-compound-slider": "^3.4.0",
|
|
71
|
-
"react-covideo-ai-assist": "0.0.
|
|
71
|
+
"react-covideo-ai-assist": "0.0.25",
|
|
72
72
|
"react-covideo-common": "0.1.49",
|
|
73
73
|
"react-full-screen": "^1.1.1",
|
|
74
74
|
"react-icons": "^4.7.1",
|
package/build/app/App.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type Option = {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
};
|
|
5
|
-
export type VideoShareSetData = {
|
|
6
|
-
videoId: string;
|
|
7
|
-
templateId: number;
|
|
8
|
-
linksetId?: string | number;
|
|
9
|
-
overlayId?: string | number;
|
|
10
|
-
vin: string;
|
|
11
|
-
allowReactions?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const InsertVideo: () => JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VideoListItem } from 'lib/api';
|
|
2
|
-
import { VideoListAutomotiveItem } from 'lib/context';
|
|
3
|
-
import { VideoShareSetData } from '../InsertVideo';
|
|
4
|
-
type Props = {
|
|
5
|
-
video: VideoListAutomotiveItem | VideoListItem;
|
|
6
|
-
disable: boolean;
|
|
7
|
-
getMarkAsSentPayload: () => Promise<{
|
|
8
|
-
videoShareSetData: VideoShareSetData;
|
|
9
|
-
useAutomotive: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
12
|
-
export declare const CopyVideoButton: ({ video, getMarkAsSentPayload, disable, }: Props) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VideoListItem } from 'lib/api';
|
|
2
|
-
import { VideoListAutomotiveItem } from 'lib/context';
|
|
3
|
-
import { VideoShareSetData } from '../InsertVideo';
|
|
4
|
-
type Props = {
|
|
5
|
-
video: VideoListAutomotiveItem | VideoListItem;
|
|
6
|
-
disable: boolean;
|
|
7
|
-
getMarkAsSentPayload: () => Promise<{
|
|
8
|
-
videoShareSetData: VideoShareSetData;
|
|
9
|
-
useAutomotive: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
12
|
-
export declare const InsertButton: ({ video, getMarkAsSentPayload, disable, }: Props) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Option, VideoShareSetData } from '../InsertVideo';
|
|
2
|
-
import { LinksetsData, OverlaysData, TemplatesData } from 'lib/api';
|
|
3
|
-
type Props = {
|
|
4
|
-
templatesLoading: boolean;
|
|
5
|
-
linksetsLoading: boolean;
|
|
6
|
-
overlaysLoading: boolean;
|
|
7
|
-
templatesData: Array<TemplatesData>;
|
|
8
|
-
linksetsData: Array<LinksetsData>;
|
|
9
|
-
overlaysData: Array<OverlaysData>;
|
|
10
|
-
checkboxes: Array<Option>;
|
|
11
|
-
selectedCheckboxes: Array<Option>;
|
|
12
|
-
setSelectedCheckboxes: Function;
|
|
13
|
-
insertVideoData: VideoShareSetData;
|
|
14
|
-
setInsertVideoData: (insertVideoData: VideoShareSetData) => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const InsertVideoSettings: ({ linksetsData, linksetsLoading, templatesData, templatesLoading, overlaysData, overlaysLoading, checkboxes, selectedCheckboxes, setSelectedCheckboxes, insertVideoData, setInsertVideoData, }: Props) => JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { InventoryItem } from 'lib/context';
|
|
2
|
-
type Props = {
|
|
3
|
-
onChangeVehicle: (item: InventoryItem) => void;
|
|
4
|
-
handleChangeVehicleButtonPress: () => void;
|
|
5
|
-
handleRemoveVehicleButtonPress: () => void;
|
|
6
|
-
setAddingVehicle: Function;
|
|
7
|
-
selectedVin?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
fetchSold?: boolean;
|
|
10
|
-
addingVehicle?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const VehicleSearch: ({ onChangeVehicle, handleChangeVehicleButtonPress, handleRemoveVehicleButtonPress, setAddingVehicle, selectedVin, placeholder, fetchSold, addingVehicle, }: Props) => JSX.Element | null;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LesaTV: () => JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VideoListItem } from 'lib/api';
|
|
2
|
-
type Props = {
|
|
3
|
-
video?: VideoListItem;
|
|
4
|
-
isMerge?: boolean;
|
|
5
|
-
selectedVideosData?: any;
|
|
6
|
-
setSelectedVideosData?: any;
|
|
7
|
-
};
|
|
8
|
-
export declare const VideoItem: ({ video, isMerge, selectedVideosData, setSelectedVideosData, }: Props) => JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const FAILED_VIDEOS_PROCESSING_ID = 2;
|
|
2
|
-
type Props = {
|
|
3
|
-
thumbnail: string;
|
|
4
|
-
duration: number;
|
|
5
|
-
videoId: string;
|
|
6
|
-
emailStatus?: string;
|
|
7
|
-
processing?: number;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const VideoItemThumbnail: ({ thumbnail, duration, videoId, emailStatus, processing, onClick, }: Props) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Merge: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VideoMerge: ({ videos, setVideos }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VideoRow: ({ index, totalDuration, offset, width, video, setVideos, }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VideoThumbnail: ({ video, setVideos, setVideoRef, index, }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RecordBoth: ({ onRecordingStart, onRecordingEnd, onUpload, uploadDisabled, onRecordingUrlGeneration, }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RecordBothMain: ({ loading }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RecordCam: ({ onRecordingStart, onRecordingEnd, uploadDisabled, virtualBackgroundUrl, showRecordingButton, onRecordingUrlGeneration, }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RecordCamMain: ({ loading }: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RecordHome: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RecordScreenMain: ({ loading }: any) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type UploadProps = {
|
|
2
|
-
title: string;
|
|
3
|
-
beginUploadProcess: boolean;
|
|
4
|
-
afterUpload?: () => void;
|
|
5
|
-
setSavedVideoId: (arg1: string) => void;
|
|
6
|
-
file: any;
|
|
7
|
-
fileName: string;
|
|
8
|
-
};
|
|
9
|
-
declare const Upload: ({ title, beginUploadProcess, afterUpload, setSavedVideoId, file, fileName, }: UploadProps) => JSX.Element;
|
|
10
|
-
export default Upload;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type PreviewProps = {
|
|
2
|
-
recordingBlobUrl: string;
|
|
3
|
-
recordDate: string;
|
|
4
|
-
insertAfterSave?: boolean;
|
|
5
|
-
setSaveFunction: (arg1: any) => void;
|
|
6
|
-
setIsSaveDisabled: (arg: boolean) => void;
|
|
7
|
-
skipUploadProcess?: boolean;
|
|
8
|
-
videoId?: string;
|
|
9
|
-
initialTitle?: string;
|
|
10
|
-
updateUploadLoading?: (val: boolean) => void;
|
|
11
|
-
};
|
|
12
|
-
declare const Preview: ({ recordingBlobUrl, recordDate, setSaveFunction, insertAfterSave, setIsSaveDisabled, skipUploadProcess, videoId, initialTitle, updateUploadLoading, }: PreviewProps) => JSX.Element;
|
|
13
|
-
export default Preview;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
playerBackgroundColor?: string;
|
|
3
|
-
playerIconsColor?: string;
|
|
4
|
-
playButtonPosition?: string;
|
|
5
|
-
thumbnail?: string;
|
|
6
|
-
videoSource: string;
|
|
7
|
-
videoId?: string;
|
|
8
|
-
videoRef?: any;
|
|
9
|
-
small?: boolean;
|
|
10
|
-
autoplay?: boolean;
|
|
11
|
-
playlist?: any[];
|
|
12
|
-
preventWideSize?: boolean;
|
|
13
|
-
selectedAnnotationId?: string | undefined;
|
|
14
|
-
previewAnnotation?: any;
|
|
15
|
-
hideContext?: boolean;
|
|
16
|
-
startWithControls?: boolean;
|
|
17
|
-
height?: string;
|
|
18
|
-
width?: string;
|
|
19
|
-
margin?: string;
|
|
20
|
-
id?: string;
|
|
21
|
-
disableControls?: boolean;
|
|
22
|
-
borderBottomRadius?: string;
|
|
23
|
-
FullscreenVideoWrapperBackgroundColor?: string;
|
|
24
|
-
videoDuration?: number;
|
|
25
|
-
setVideoDuration?: (arg1: number) => void;
|
|
26
|
-
setIsVideoLoading?: (arg: boolean) => void;
|
|
27
|
-
};
|
|
28
|
-
export declare const VideoPlayer: (props: Props) => JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
playerBackgroundColor: string;
|
|
3
|
-
playButtonPosition: string;
|
|
4
|
-
isVideoPaused: boolean;
|
|
5
|
-
togglePlay: () => void;
|
|
6
|
-
playerIconsColor: string;
|
|
7
|
-
small?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const OnScreenPlayButton: (props: Props) => JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
duration?: number;
|
|
4
|
-
currentTime?: number;
|
|
5
|
-
scrub: (e: any, progressRef: React.RefObject<HTMLProgressElement>) => void;
|
|
6
|
-
color?: string;
|
|
7
|
-
small?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const ProgressBar: (props: Props) => JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SliderItem, GetHandleProps } from 'react-compound-slider';
|
|
2
|
-
interface HandleProps {
|
|
3
|
-
isActive: boolean;
|
|
4
|
-
domain: number[];
|
|
5
|
-
handle: SliderItem;
|
|
6
|
-
getHandleProps: GetHandleProps;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
videoSource: string;
|
|
9
|
-
videoRef: any;
|
|
10
|
-
nChild: number;
|
|
11
|
-
changeVideoPosition?: boolean;
|
|
12
|
-
showFloatingPreview?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const Handle: (props: HandleProps) => JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
videoDuration: number;
|
|
4
|
-
videoRef: any;
|
|
5
|
-
videoSource: string;
|
|
6
|
-
setTrimDuration?: any;
|
|
7
|
-
setStart?: any;
|
|
8
|
-
value: any;
|
|
9
|
-
setValue: any;
|
|
10
|
-
addHistory?: any;
|
|
11
|
-
onSlideEnd?: any;
|
|
12
|
-
valueRef: React.MutableRefObject<Array<number>>;
|
|
13
|
-
showTickTime?: boolean;
|
|
14
|
-
changeVideoPosition?: boolean;
|
|
15
|
-
showFloatingPreview?: boolean;
|
|
16
|
-
width: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const TimelineRange: (props: Props) => JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SliderItem, GetTrackProps } from 'react-compound-slider';
|
|
3
|
-
interface TrackProps {
|
|
4
|
-
source: SliderItem;
|
|
5
|
-
target: SliderItem;
|
|
6
|
-
getTrackProps: GetTrackProps;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const Track: React.FC<TrackProps>;
|
|
10
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TrimProps = {
|
|
3
|
-
videoDuration: number;
|
|
4
|
-
videoRef: any;
|
|
5
|
-
videoSource: string;
|
|
6
|
-
value: number[];
|
|
7
|
-
setValue: (arg1: number[]) => void;
|
|
8
|
-
valueRef: React.MutableRefObject<Array<number>>;
|
|
9
|
-
isVideoTrimmed: boolean;
|
|
10
|
-
isVideoLoading?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare const Trim: ({ videoRef, videoDuration, videoSource, setValue, value, isVideoTrimmed, valueRef, isVideoLoading, }: TrimProps) => JSX.Element;
|
|
13
|
-
export default Trim;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
isVideoPaused?: boolean;
|
|
4
|
-
togglePlay?: () => void;
|
|
5
|
-
isVideoMuted?: boolean;
|
|
6
|
-
handleMute?: () => void;
|
|
7
|
-
handleFullScreen?: () => void;
|
|
8
|
-
setPlayBack?: (rate: number) => void;
|
|
9
|
-
setTranslate?: (rate: string) => void;
|
|
10
|
-
captionsEnabled?: boolean;
|
|
11
|
-
captions?: string;
|
|
12
|
-
duration?: number;
|
|
13
|
-
currentTime?: number;
|
|
14
|
-
handleVolumeControl: (e: any, progressRef: React.RefObject<HTMLInputElement>) => void;
|
|
15
|
-
volumeRange: number;
|
|
16
|
-
playerIconsColor: string;
|
|
17
|
-
small?: boolean;
|
|
18
|
-
isVisible?: boolean;
|
|
19
|
-
scrub: (e: any, progressRef: React.RefObject<HTMLProgressElement>) => void;
|
|
20
|
-
playerBackgroundColor: string;
|
|
21
|
-
videoRef?: any;
|
|
22
|
-
isAutomotive?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export declare const VideoControls: (props: Props) => JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { VideoPlayer } from './VideoPlayer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VoiceOver: () => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { VideoData } from 'lib/hooks';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type Props = {
|
|
4
|
-
video: VideoData;
|
|
5
|
-
videoRef: React.RefObject<HTMLVideoElement>;
|
|
6
|
-
onChangeVoiceoverValid: (valid: boolean) => void;
|
|
7
|
-
onRecordingUrlGeneration: (url: string) => void;
|
|
8
|
-
handleShowCard?: (show: boolean) => void;
|
|
9
|
-
margin?: string;
|
|
10
|
-
width?: number;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const AudioRecorder: ({ video, videoRef, onChangeVoiceoverValid, onRecordingUrlGeneration, handleShowCard, margin, width, disabled, }: Props) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VideoData } from 'lib/hooks';
|
|
3
|
-
type Props = {
|
|
4
|
-
video: VideoData;
|
|
5
|
-
videoRef: React.RefObject<HTMLVideoElement>;
|
|
6
|
-
useCovideoPlayer?: boolean;
|
|
7
|
-
width?: number;
|
|
8
|
-
margin?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const VideoPreview: ({ video, videoRef, width, margin, useCovideoPlayer, }: Props) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateTempAudioName: (videoId: string, fileExt: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WheelsTV: () => JSX.Element;
|
package/build/index.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.css';
|
|
3
|
-
export declare enum Feature {
|
|
4
|
-
UPLOAD = "upload",
|
|
5
|
-
FOLDER = "folder",
|
|
6
|
-
RECORD_SCREEN = "recordScreen",
|
|
7
|
-
MERGE = "merge",
|
|
8
|
-
RECORD_CAM = "recordCam",
|
|
9
|
-
WHEELS_TV = "wheelsTV",
|
|
10
|
-
RECORD_BOTH = "recordBoth",
|
|
11
|
-
TRIM = "trim",
|
|
12
|
-
INSERT = "insert",
|
|
13
|
-
LANDING_PAGE = "landingPage",
|
|
14
|
-
QUICKSHARE = "quickshare",
|
|
15
|
-
CTA = "CTA",
|
|
16
|
-
VOICEOVER = "voiceover",
|
|
17
|
-
REACTIONS = "reactions",
|
|
18
|
-
AI_ASSIST = "aiAssist",
|
|
19
|
-
UPGRADE_MESSAGE = "upgradeMessage",
|
|
20
|
-
LESA_TV = "lesaTV",
|
|
21
|
-
MULTI_LOCATION = "multiLocation"
|
|
22
|
-
}
|
|
23
|
-
export type FeatureType = 'insert' | 'recordScreen' | 'recordBoth' | 'recordCam' | 'upload' | 'trim' | 'merge' | 'wheelsTV' | 'voiceover' | 'quickshare' | 'folder' | 'landingPage' | 'CTA' | 'reactions' | 'aiAssist' | 'upgradeMessage' | 'lesaTV' | 'multiLocation';
|
|
24
|
-
export declare enum Environment {
|
|
25
|
-
DEVELOPMENT = "development",
|
|
26
|
-
SANDBOX = "sandbox",
|
|
27
|
-
PRODUCTION = "production"
|
|
28
|
-
}
|
|
29
|
-
export type EnvironmentType = 'development' | 'sandbox' | 'production';
|
|
30
|
-
export type ShareData = {
|
|
31
|
-
url: string;
|
|
32
|
-
thumbnail: string;
|
|
33
|
-
html: string;
|
|
34
|
-
token: string;
|
|
35
|
-
};
|
|
36
|
-
export type RecordData = {
|
|
37
|
-
token: string;
|
|
38
|
-
};
|
|
39
|
-
export type UploadData = {
|
|
40
|
-
token: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Logout from Covideo.
|
|
44
|
-
* If called, removes the auth token and other Covideo data from local storage.
|
|
45
|
-
*/
|
|
46
|
-
export declare function logoutCovideo(): void;
|
|
47
|
-
export type CovideoEmbedProps = {
|
|
48
|
-
/** Used for tracking the origin of requests from this npm module. */
|
|
49
|
-
apikey: string;
|
|
50
|
-
/**
|
|
51
|
-
* JWT token from Covideo.
|
|
52
|
-
* If provided, disables the module's login/logout pages.
|
|
53
|
-
* If not provided, users need to log in through the module's login page.
|
|
54
|
-
*/
|
|
55
|
-
token?: string;
|
|
56
|
-
/** Which Covideo environment to target */
|
|
57
|
-
env?: Environment | EnvironmentType;
|
|
58
|
-
/** Which Covideo features to hide */
|
|
59
|
-
hideFeatures?: Feature[] | FeatureType[];
|
|
60
|
-
/**
|
|
61
|
-
* Callback triggered when a video is inserted.
|
|
62
|
-
* @param shareData - Contains the auth token, video url, thumbnail url and HTML of the inserted video.
|
|
63
|
-
*/
|
|
64
|
-
onVideoInsert?: (shareData: ShareData) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Callback triggered when there is an error inserting a video.
|
|
67
|
-
* @param error - The error occurred during video insert.
|
|
68
|
-
*/
|
|
69
|
-
onVideoInsertError?: (error: unknown) => void;
|
|
70
|
-
/**
|
|
71
|
-
* Callback triggered when the record button is clicked.
|
|
72
|
-
* @param data - Contains the auth token.
|
|
73
|
-
*/
|
|
74
|
-
onRecordButtonClick?: (data: RecordData) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Callback triggered when the upload button is clicked.
|
|
77
|
-
* @param data - Contains the auth token.
|
|
78
|
-
*/
|
|
79
|
-
onUploadButtonClick?: (data: UploadData) => void;
|
|
80
|
-
};
|
|
81
|
-
export declare const CovideoEmbed: React.FC<CovideoEmbedProps>;
|