react-covideo-embed 0.1.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/README.md +65 -0
- package/build/app/App.d.ts +2 -0
- package/build/app/pages/insertVideo/InsertVideo.d.ts +5 -0
- package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +18 -0
- package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +14 -0
- package/build/app/pages/insertVideo/components/index.d.ts +2 -0
- package/build/app/pages/library/Library.d.ts +11 -0
- package/build/app/pages/library/components/NoVideos.d.ts +6 -0
- package/build/app/pages/library/components/PageInfo.d.ts +7 -0
- package/build/app/pages/library/components/Search.d.ts +6 -0
- package/build/app/pages/library/components/UserDropdown.d.ts +6 -0
- package/build/app/pages/library/components/VideoItem.d.ts +9 -0
- package/build/app/pages/library/components/index.d.ts +5 -0
- package/build/app/pages/login/Login.d.ts +5 -0
- package/build/app/pages/merge/Merge.d.ts +1 -0
- package/build/app/pages/merge/components/Player.d.ts +7 -0
- package/build/app/pages/merge/components/VideoMerge.d.ts +15 -0
- package/build/app/pages/merge/components/VideoRow.d.ts +1 -0
- package/build/app/pages/merge/components/VideoThumbnail.d.ts +2 -0
- package/build/app/pages/previewUpload/PreviewUpload.d.ts +2 -0
- package/build/app/pages/record/both/RecordBoth.d.ts +1 -0
- package/build/app/pages/record/both/main/Main.d.ts +1 -0
- package/build/app/pages/record/cam/RecordCam.d.ts +1 -0
- package/build/app/pages/record/cam/main/Main.d.ts +1 -0
- package/build/app/pages/record/home/RecordHome.d.ts +1 -0
- package/build/app/pages/record/screen/RecordScreen.d.ts +2 -0
- package/build/app/pages/record/screen/main/Main.d.ts +1 -0
- package/build/app/pages/video/Upload.d.ts +10 -0
- package/build/app/pages/video/components/Preview.d.ts +12 -0
- package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +29 -0
- package/build/app/pages/video/components/videoPlayer/components/index.d.ts +2 -0
- package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +15 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +7 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +9 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +19 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +13 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +7 -0
- package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +25 -0
- package/build/app/pages/video/components/videoPlayer/index.d.ts +1 -0
- package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +7 -0
- package/build/app/pages/voiceover/Voiceover.d.ts +1 -0
- package/build/app/pages/voiceover/components/AudioRecorder.d.ts +14 -0
- package/build/app/pages/voiceover/components/VideoPreview.d.ts +11 -0
- package/build/app/pages/voiceover/components/util.d.ts +1 -0
- package/build/app/pages/wheelsTV/WheelsTV.d.ts +1 -0
- package/build/app/pages/wheelsTV/components/PageInfo.d.ts +7 -0
- package/build/app/pages/wheelsTV/components/Search.d.ts +6 -0
- package/build/app/pages/wheelsTV/components/index.d.ts +2 -0
- package/build/index.d.ts +27 -0
- package/build/index.js +2 -0
- package/build/index.js.LICENSE.txt +42 -0
- package/build/lib/api/attributesApi.d.ts +8 -0
- package/build/lib/api/authApi.d.ts +11 -0
- package/build/lib/api/base.d.ts +10 -0
- package/build/lib/api/designApi.d.ts +86 -0
- package/build/lib/api/index.d.ts +10 -0
- package/build/lib/api/inventoryApi.d.ts +10 -0
- package/build/lib/api/shareApi.d.ts +11 -0
- package/build/lib/api/types.d.ts +44 -0
- package/build/lib/api/videoRequestApi.d.ts +25 -0
- package/build/lib/api/videoTagsApi.d.ts +12 -0
- package/build/lib/api/videosApi.d.ts +63 -0
- package/build/lib/api/voiceOverApi.d.ts +20 -0
- package/build/lib/api/wtvApi.d.ts +31 -0
- package/build/lib/components/Button.d.ts +21 -0
- package/build/lib/components/CheckboxInput.d.ts +19 -0
- package/build/lib/components/CloseButton.d.ts +13 -0
- package/build/lib/components/Container.d.ts +6 -0
- package/build/lib/components/CountDown.d.ts +1 -0
- package/build/lib/components/DragAndDrop.d.ts +26 -0
- package/build/lib/components/Dropdown.d.ts +29 -0
- package/build/lib/components/HoverPopup.d.ts +15 -0
- package/build/lib/components/Input.d.ts +10 -0
- package/build/lib/components/Label.d.ts +6 -0
- package/build/lib/components/LoadingIndicator.d.ts +11 -0
- package/build/lib/components/Logo.d.ts +5 -0
- package/build/lib/components/MainWrapper.d.ts +6 -0
- package/build/lib/components/PreviewVideoBar.d.ts +7 -0
- package/build/lib/components/RouteLeavingGuard.d.ts +18 -0
- package/build/lib/components/Spinner.d.ts +6 -0
- package/build/lib/components/TopBar.d.ts +9 -0
- package/build/lib/components/index.d.ts +16 -0
- package/build/lib/components/inputs/CheckboxInput.d.ts +18 -0
- package/build/lib/components/inputs/RadioInput.d.ts +14 -0
- package/build/lib/components/inputs/index.d.ts +2 -0
- package/build/lib/components/modal/Modal.d.ts +13 -0
- package/build/lib/components/modal/ModalLeave.d.ts +15 -0
- package/build/lib/components/modal/ModalMarkAsSent.d.ts +6 -0
- package/build/lib/components/modal/ModalRecordingSettings.d.ts +10 -0
- package/build/lib/components/modals/Modal.d.ts +13 -0
- package/build/lib/components/modals/ModalInputText.d.ts +11 -0
- package/build/lib/components/modals/ModalLeave.d.ts +15 -0
- package/build/lib/components/modals/ModalPrompt.d.ts +12 -0
- package/build/lib/components/modals/ModalUpload.d.ts +7 -0
- package/build/lib/components/toast-notifications/ToastNotification.d.ts +6 -0
- package/build/lib/components/toast-notifications/index.d.ts +4 -0
- package/build/lib/components/videoUpload/MultipleUploadList.d.ts +8 -0
- package/build/lib/components/videoUpload/VideoUpload.d.ts +15 -0
- package/build/lib/components/videoUpload/styles.d.ts +17 -0
- package/build/lib/config.d.ts +24 -0
- package/build/lib/const/AutomotiveRole.d.ts +12 -0
- package/build/lib/const/Folder.d.ts +8 -0
- package/build/lib/const/InternalCustomers.d.ts +9 -0
- package/build/lib/const/MarkAsSentOptions.d.ts +14 -0
- package/build/lib/const/PackageName.d.ts +7 -0
- package/build/lib/const/VideoEmailStatus.d.ts +7 -0
- package/build/lib/const/VideoStatus.d.ts +6 -0
- package/build/lib/const/VideoType.d.ts +15 -0
- package/build/lib/const/index.d.ts +6 -0
- package/build/lib/context/ActionDispatchContext.d.ts +5 -0
- package/build/lib/context/AuthorizationContext.d.ts +115 -0
- package/build/lib/context/ConfigurationContext.d.ts +16 -0
- package/build/lib/context/actionCreators.d.ts +37 -0
- package/build/lib/context/authHandlers.d.ts +2 -0
- package/build/lib/context/authReducer.d.ts +16 -0
- package/build/lib/context/index.d.ts +4 -0
- package/build/lib/context/types.d.ts +148 -0
- package/build/lib/hooks/index.d.ts +3 -0
- package/build/lib/hooks/query/inventoryItem/index.d.ts +1 -0
- package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +12 -0
- package/build/lib/hooks/useCreateVideo.d.ts +21 -0
- package/build/lib/hooks/useEncodeVideo.d.ts +16 -0
- package/build/lib/hooks/useMediaRecorder.d.ts +46 -0
- package/build/lib/hooks/usePresignedUrl.d.ts +16 -0
- package/build/lib/hooks/useQueryFetch.d.ts +19 -0
- package/build/lib/hooks/useQueryState.d.ts +22 -0
- package/build/lib/hooks/useS3Upload.d.ts +15 -0
- package/build/lib/hooks/useVideoShareLink.d.ts +18 -0
- package/build/lib/hooks/useVideoStore.d.ts +17 -0
- package/build/lib/hooks/useVideoTranscriptionStart.d.ts +9 -0
- package/build/lib/images/AccountIcon.d.ts +2 -0
- package/build/lib/images/AddIcon.d.ts +2 -0
- package/build/lib/images/ArrowBackcon.d.ts +2 -0
- package/build/lib/images/CarIcon.d.ts +2 -0
- package/build/lib/images/CheckmarkIcon.d.ts +2 -0
- package/build/lib/images/CloseCircleIcon.d.ts +2 -0
- package/build/lib/images/CloseIcon.d.ts +2 -0
- package/build/lib/images/CutIcon.d.ts +2 -0
- package/build/lib/images/DeleteIcon.d.ts +2 -0
- package/build/lib/images/Drag.d.ts +2 -0
- package/build/lib/images/DropdownIcon.d.ts +1 -0
- package/build/lib/images/HashtagIcon.d.ts +2 -0
- package/build/lib/images/InsertVideoIcon.d.ts +2 -0
- package/build/lib/images/LaptopIcon.d.ts +2 -0
- package/build/lib/images/LogoCDS.d.ts +2 -0
- package/build/lib/images/LogoGeneral.d.ts +2 -0
- package/build/lib/images/MovieIcon.d.ts +2 -0
- package/build/lib/images/SaveIcon.d.ts +2 -0
- package/build/lib/images/SettingsIcon.d.ts +2 -0
- package/build/lib/images/SmallLogoIcon.d.ts +2 -0
- package/build/lib/images/VectorIcon.d.ts +2 -0
- package/build/lib/images/VideoIcon.d.ts +2 -0
- package/build/lib/images/ZoomInIcon.d.ts +2 -0
- package/build/lib/images/ZoomOutIcon.d.ts +2 -0
- package/build/lib/images/pauseButton.d.ts +2 -0
- package/build/lib/images/playButton.d.ts +2 -0
- package/build/lib/images/volumeOff.d.ts +1 -0
- package/build/lib/style/index.d.ts +2 -0
- package/build/lib/style/theme.d.ts +121 -0
- package/build/lib/utils/UseOnClickOutside.d.ts +3 -0
- package/build/lib/utils/automotiveRolePermissionChecks.d.ts +11 -0
- package/build/lib/utils/functions.d.ts +18 -0
- package/build/lib/utils/object.d.ts +3 -0
- package/build/lib/utils/reactions.d.ts +3 -0
- package/package.json +68 -0
- package/react-covideo-embed-0.1.0.tgz +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# react-covideo-embed
|
|
2
|
+
|
|
3
|
+
Covideo platform as an embeddable React component.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
|
|
9
|
+
npm install react-covideo-embed
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## PeerDependencies
|
|
14
|
+
|
|
15
|
+
This package has peer dependencies on `react` and `react-dom` version ^18.2.0. Please ensure that you have these installed in your project.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Here’s a basic example of how to use react-covideo-embed in a React component:
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import CovideoEmbed from 'react-covideo-embed';
|
|
24
|
+
const MyApp = () => {
|
|
25
|
+
return (
|
|
26
|
+
<div>
|
|
27
|
+
<CovideoEmbed />
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export default MyApp;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Props
|
|
35
|
+
|
|
36
|
+
### `token` (optional)
|
|
37
|
+
|
|
38
|
+
- **Type**: `string`
|
|
39
|
+
- **Description**: JWT token from Covideo. If provided, the module's login/logout pages are disabled. Without it, users will need to log in through the module's login page.
|
|
40
|
+
|
|
41
|
+
### `env` (optional)
|
|
42
|
+
|
|
43
|
+
- **Type**: `'sandbox'` | `'production'`
|
|
44
|
+
- **Description**: Determines which Covideo environment to target.
|
|
45
|
+
- **Default**: `'sandbox'`
|
|
46
|
+
|
|
47
|
+
### `onVideoInsert` (optional)
|
|
48
|
+
|
|
49
|
+
- **Type**: `function`
|
|
50
|
+
- **Description**: Callback triggered when a video is inserted.
|
|
51
|
+
- **Parameters**:
|
|
52
|
+
- `shareData`: Object containing the URL and HTML of the inserted video.
|
|
53
|
+
- `url`: `string` - The URL of the inserted video.
|
|
54
|
+
- `html`: `string` - The HTML representation of the inserted video.
|
|
55
|
+
|
|
56
|
+
### `onVideoInsertError` (optional)
|
|
57
|
+
|
|
58
|
+
- **Type**: `function`
|
|
59
|
+
- **Description**: Callback triggered when there is an error inserting a video.
|
|
60
|
+
- **Parameters**:
|
|
61
|
+
- `error`: `unknown` - The error occurred during video insert.
|
|
62
|
+
|
|
63
|
+
## Author
|
|
64
|
+
|
|
65
|
+
This package is maintained by Covideo.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Option } from '../InsertVideo';
|
|
2
|
+
import { LinksetsData, OverlaysData, TemplatesData } from 'lib/api';
|
|
3
|
+
import { VideoShareSetData } from 'lib/hooks/useVideoShareLink';
|
|
4
|
+
type Props = {
|
|
5
|
+
templatesLoading: boolean;
|
|
6
|
+
linksetsLoading: boolean;
|
|
7
|
+
overlaysLoading: boolean;
|
|
8
|
+
templatesData: Array<TemplatesData>;
|
|
9
|
+
linksetsData: Array<LinksetsData>;
|
|
10
|
+
overlaysData: Array<OverlaysData>;
|
|
11
|
+
checkboxes: Array<Option>;
|
|
12
|
+
selectedCheckboxes: Array<Option>;
|
|
13
|
+
setSelectedCheckboxes: Function;
|
|
14
|
+
insertVideoData: VideoShareSetData;
|
|
15
|
+
setInsertVideoData: (insertVideoData: VideoShareSetData) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const InsertVideoSettings: ({ linksetsData, linksetsLoading, templatesData, templatesLoading, overlaysData, overlaysLoading, checkboxes, selectedCheckboxes, setSelectedCheckboxes, insertVideoData, setInsertVideoData, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InventoryItem } from 'lib/context';
|
|
2
|
+
export declare const noInventoryItemsMsg: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
type Props = {
|
|
4
|
+
onChangeVehicle: (item: InventoryItem) => void;
|
|
5
|
+
handleChangeVehicleButtonPress: () => void;
|
|
6
|
+
handleRemoveVehicleButtonPress: () => void;
|
|
7
|
+
setAddingVehicle: Function;
|
|
8
|
+
selectedVin?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
fetchSold?: boolean;
|
|
11
|
+
addingVehicle?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const VehicleSearch: ({ onChangeVehicle, handleChangeVehicleButtonPress, handleRemoveVehicleButtonPress, setAddingVehicle, selectedVin, placeholder, fetchSold, addingVehicle, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type VideoListFilter = {
|
|
2
|
+
folderId: string | number;
|
|
3
|
+
searchQuery: string;
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
handleUpdateToken: Function;
|
|
9
|
+
};
|
|
10
|
+
export declare const Library: ({ handleUpdateToken }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Merge: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const CloseContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export type VideosProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
startSec: number;
|
|
7
|
+
endSec: number;
|
|
8
|
+
flvName: string;
|
|
9
|
+
duration: number;
|
|
10
|
+
trimDuration: number;
|
|
11
|
+
width: number;
|
|
12
|
+
ref: any;
|
|
13
|
+
source: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const VideoMerge: ({ videos, setVideos }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VideoRow: ({ index, totalDuration, offset, width, video, setVideos, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecordBoth: ({ onRecordingStart, onRecordingEnd, onUpload, uploadDisabled, onRecordingUrlGeneration, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecordBothMain: ({ loading }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecordCam: ({ onRecordingStart, onRecordingEnd, uploadDisabled, virtualBackgroundUrl, showRecordingButton, onRecordingUrlGeneration, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecordCamMain: ({ loading }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecordHome: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecordScreenMain: ({ loading }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Upload;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
11
|
+
declare const Preview: ({ recordingBlobUrl, recordDate, setSaveFunction, insertAfterSave, setIsSaveDisabled, skipUploadProcess, videoId, initialTitle, }: PreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Preview;
|
|
@@ -0,0 +1,29 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Trim;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type VideoPreviewTrackProps = {
|
|
2
|
+
videoSource: string;
|
|
3
|
+
videoDuration: number;
|
|
4
|
+
numberOfStills: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const VideoPreviewTrack: ({ videoSource, videoDuration, numberOfStills, }: VideoPreviewTrackProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VideoPlayer } from './VideoPlayer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ComponentProps = {
|
|
2
|
+
attributes: any[];
|
|
3
|
+
initValues: any;
|
|
4
|
+
setIsSaveDisabled: (arg: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const AttributeFields: ({ attributes, initValues, setIsSaveDisabled, }: ComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VoiceOver: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateTempAudioName: (videoId: string, fileExt: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WheelsTV: () => import("react/jsx-runtime").JSX.Element;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.css';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* JWT token from Covideo.
|
|
6
|
+
* If provided, disables the module's login/logout pages.
|
|
7
|
+
* If not provided, users need to log in through the module's login page.
|
|
8
|
+
*/
|
|
9
|
+
token?: string;
|
|
10
|
+
/** Which Covideo environment to target */
|
|
11
|
+
env?: 'sandbox' | 'production';
|
|
12
|
+
/**
|
|
13
|
+
* Callback triggered when a video is inserted.
|
|
14
|
+
* @param shareData - Contains the URL and HTML of the inserted video.
|
|
15
|
+
*/
|
|
16
|
+
onVideoInsert?: (shareData: {
|
|
17
|
+
url: string;
|
|
18
|
+
html: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Callback triggered when there is an error inserting a video.
|
|
22
|
+
* @param error - The error occurred during video insert.
|
|
23
|
+
*/
|
|
24
|
+
onVideoInsertError?: (error: unknown) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const Covideo: React.FC<Props>;
|
|
27
|
+
export default Covideo;
|