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.
Files changed (169) hide show
  1. package/README.md +65 -0
  2. package/build/app/App.d.ts +2 -0
  3. package/build/app/pages/insertVideo/InsertVideo.d.ts +5 -0
  4. package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +18 -0
  5. package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +14 -0
  6. package/build/app/pages/insertVideo/components/index.d.ts +2 -0
  7. package/build/app/pages/library/Library.d.ts +11 -0
  8. package/build/app/pages/library/components/NoVideos.d.ts +6 -0
  9. package/build/app/pages/library/components/PageInfo.d.ts +7 -0
  10. package/build/app/pages/library/components/Search.d.ts +6 -0
  11. package/build/app/pages/library/components/UserDropdown.d.ts +6 -0
  12. package/build/app/pages/library/components/VideoItem.d.ts +9 -0
  13. package/build/app/pages/library/components/index.d.ts +5 -0
  14. package/build/app/pages/login/Login.d.ts +5 -0
  15. package/build/app/pages/merge/Merge.d.ts +1 -0
  16. package/build/app/pages/merge/components/Player.d.ts +7 -0
  17. package/build/app/pages/merge/components/VideoMerge.d.ts +15 -0
  18. package/build/app/pages/merge/components/VideoRow.d.ts +1 -0
  19. package/build/app/pages/merge/components/VideoThumbnail.d.ts +2 -0
  20. package/build/app/pages/previewUpload/PreviewUpload.d.ts +2 -0
  21. package/build/app/pages/record/both/RecordBoth.d.ts +1 -0
  22. package/build/app/pages/record/both/main/Main.d.ts +1 -0
  23. package/build/app/pages/record/cam/RecordCam.d.ts +1 -0
  24. package/build/app/pages/record/cam/main/Main.d.ts +1 -0
  25. package/build/app/pages/record/home/RecordHome.d.ts +1 -0
  26. package/build/app/pages/record/screen/RecordScreen.d.ts +2 -0
  27. package/build/app/pages/record/screen/main/Main.d.ts +1 -0
  28. package/build/app/pages/video/Upload.d.ts +10 -0
  29. package/build/app/pages/video/components/Preview.d.ts +12 -0
  30. package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +29 -0
  31. package/build/app/pages/video/components/videoPlayer/components/index.d.ts +2 -0
  32. package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +10 -0
  33. package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +10 -0
  34. package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +15 -0
  35. package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +7 -0
  36. package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +9 -0
  37. package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +19 -0
  38. package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +10 -0
  39. package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +13 -0
  40. package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +7 -0
  41. package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +25 -0
  42. package/build/app/pages/video/components/videoPlayer/index.d.ts +1 -0
  43. package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +7 -0
  44. package/build/app/pages/voiceover/Voiceover.d.ts +1 -0
  45. package/build/app/pages/voiceover/components/AudioRecorder.d.ts +14 -0
  46. package/build/app/pages/voiceover/components/VideoPreview.d.ts +11 -0
  47. package/build/app/pages/voiceover/components/util.d.ts +1 -0
  48. package/build/app/pages/wheelsTV/WheelsTV.d.ts +1 -0
  49. package/build/app/pages/wheelsTV/components/PageInfo.d.ts +7 -0
  50. package/build/app/pages/wheelsTV/components/Search.d.ts +6 -0
  51. package/build/app/pages/wheelsTV/components/index.d.ts +2 -0
  52. package/build/index.d.ts +27 -0
  53. package/build/index.js +2 -0
  54. package/build/index.js.LICENSE.txt +42 -0
  55. package/build/lib/api/attributesApi.d.ts +8 -0
  56. package/build/lib/api/authApi.d.ts +11 -0
  57. package/build/lib/api/base.d.ts +10 -0
  58. package/build/lib/api/designApi.d.ts +86 -0
  59. package/build/lib/api/index.d.ts +10 -0
  60. package/build/lib/api/inventoryApi.d.ts +10 -0
  61. package/build/lib/api/shareApi.d.ts +11 -0
  62. package/build/lib/api/types.d.ts +44 -0
  63. package/build/lib/api/videoRequestApi.d.ts +25 -0
  64. package/build/lib/api/videoTagsApi.d.ts +12 -0
  65. package/build/lib/api/videosApi.d.ts +63 -0
  66. package/build/lib/api/voiceOverApi.d.ts +20 -0
  67. package/build/lib/api/wtvApi.d.ts +31 -0
  68. package/build/lib/components/Button.d.ts +21 -0
  69. package/build/lib/components/CheckboxInput.d.ts +19 -0
  70. package/build/lib/components/CloseButton.d.ts +13 -0
  71. package/build/lib/components/Container.d.ts +6 -0
  72. package/build/lib/components/CountDown.d.ts +1 -0
  73. package/build/lib/components/DragAndDrop.d.ts +26 -0
  74. package/build/lib/components/Dropdown.d.ts +29 -0
  75. package/build/lib/components/HoverPopup.d.ts +15 -0
  76. package/build/lib/components/Input.d.ts +10 -0
  77. package/build/lib/components/Label.d.ts +6 -0
  78. package/build/lib/components/LoadingIndicator.d.ts +11 -0
  79. package/build/lib/components/Logo.d.ts +5 -0
  80. package/build/lib/components/MainWrapper.d.ts +6 -0
  81. package/build/lib/components/PreviewVideoBar.d.ts +7 -0
  82. package/build/lib/components/RouteLeavingGuard.d.ts +18 -0
  83. package/build/lib/components/Spinner.d.ts +6 -0
  84. package/build/lib/components/TopBar.d.ts +9 -0
  85. package/build/lib/components/index.d.ts +16 -0
  86. package/build/lib/components/inputs/CheckboxInput.d.ts +18 -0
  87. package/build/lib/components/inputs/RadioInput.d.ts +14 -0
  88. package/build/lib/components/inputs/index.d.ts +2 -0
  89. package/build/lib/components/modal/Modal.d.ts +13 -0
  90. package/build/lib/components/modal/ModalLeave.d.ts +15 -0
  91. package/build/lib/components/modal/ModalMarkAsSent.d.ts +6 -0
  92. package/build/lib/components/modal/ModalRecordingSettings.d.ts +10 -0
  93. package/build/lib/components/modals/Modal.d.ts +13 -0
  94. package/build/lib/components/modals/ModalInputText.d.ts +11 -0
  95. package/build/lib/components/modals/ModalLeave.d.ts +15 -0
  96. package/build/lib/components/modals/ModalPrompt.d.ts +12 -0
  97. package/build/lib/components/modals/ModalUpload.d.ts +7 -0
  98. package/build/lib/components/toast-notifications/ToastNotification.d.ts +6 -0
  99. package/build/lib/components/toast-notifications/index.d.ts +4 -0
  100. package/build/lib/components/videoUpload/MultipleUploadList.d.ts +8 -0
  101. package/build/lib/components/videoUpload/VideoUpload.d.ts +15 -0
  102. package/build/lib/components/videoUpload/styles.d.ts +17 -0
  103. package/build/lib/config.d.ts +24 -0
  104. package/build/lib/const/AutomotiveRole.d.ts +12 -0
  105. package/build/lib/const/Folder.d.ts +8 -0
  106. package/build/lib/const/InternalCustomers.d.ts +9 -0
  107. package/build/lib/const/MarkAsSentOptions.d.ts +14 -0
  108. package/build/lib/const/PackageName.d.ts +7 -0
  109. package/build/lib/const/VideoEmailStatus.d.ts +7 -0
  110. package/build/lib/const/VideoStatus.d.ts +6 -0
  111. package/build/lib/const/VideoType.d.ts +15 -0
  112. package/build/lib/const/index.d.ts +6 -0
  113. package/build/lib/context/ActionDispatchContext.d.ts +5 -0
  114. package/build/lib/context/AuthorizationContext.d.ts +115 -0
  115. package/build/lib/context/ConfigurationContext.d.ts +16 -0
  116. package/build/lib/context/actionCreators.d.ts +37 -0
  117. package/build/lib/context/authHandlers.d.ts +2 -0
  118. package/build/lib/context/authReducer.d.ts +16 -0
  119. package/build/lib/context/index.d.ts +4 -0
  120. package/build/lib/context/types.d.ts +148 -0
  121. package/build/lib/hooks/index.d.ts +3 -0
  122. package/build/lib/hooks/query/inventoryItem/index.d.ts +1 -0
  123. package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +12 -0
  124. package/build/lib/hooks/useCreateVideo.d.ts +21 -0
  125. package/build/lib/hooks/useEncodeVideo.d.ts +16 -0
  126. package/build/lib/hooks/useMediaRecorder.d.ts +46 -0
  127. package/build/lib/hooks/usePresignedUrl.d.ts +16 -0
  128. package/build/lib/hooks/useQueryFetch.d.ts +19 -0
  129. package/build/lib/hooks/useQueryState.d.ts +22 -0
  130. package/build/lib/hooks/useS3Upload.d.ts +15 -0
  131. package/build/lib/hooks/useVideoShareLink.d.ts +18 -0
  132. package/build/lib/hooks/useVideoStore.d.ts +17 -0
  133. package/build/lib/hooks/useVideoTranscriptionStart.d.ts +9 -0
  134. package/build/lib/images/AccountIcon.d.ts +2 -0
  135. package/build/lib/images/AddIcon.d.ts +2 -0
  136. package/build/lib/images/ArrowBackcon.d.ts +2 -0
  137. package/build/lib/images/CarIcon.d.ts +2 -0
  138. package/build/lib/images/CheckmarkIcon.d.ts +2 -0
  139. package/build/lib/images/CloseCircleIcon.d.ts +2 -0
  140. package/build/lib/images/CloseIcon.d.ts +2 -0
  141. package/build/lib/images/CutIcon.d.ts +2 -0
  142. package/build/lib/images/DeleteIcon.d.ts +2 -0
  143. package/build/lib/images/Drag.d.ts +2 -0
  144. package/build/lib/images/DropdownIcon.d.ts +1 -0
  145. package/build/lib/images/HashtagIcon.d.ts +2 -0
  146. package/build/lib/images/InsertVideoIcon.d.ts +2 -0
  147. package/build/lib/images/LaptopIcon.d.ts +2 -0
  148. package/build/lib/images/LogoCDS.d.ts +2 -0
  149. package/build/lib/images/LogoGeneral.d.ts +2 -0
  150. package/build/lib/images/MovieIcon.d.ts +2 -0
  151. package/build/lib/images/SaveIcon.d.ts +2 -0
  152. package/build/lib/images/SettingsIcon.d.ts +2 -0
  153. package/build/lib/images/SmallLogoIcon.d.ts +2 -0
  154. package/build/lib/images/VectorIcon.d.ts +2 -0
  155. package/build/lib/images/VideoIcon.d.ts +2 -0
  156. package/build/lib/images/ZoomInIcon.d.ts +2 -0
  157. package/build/lib/images/ZoomOutIcon.d.ts +2 -0
  158. package/build/lib/images/pauseButton.d.ts +2 -0
  159. package/build/lib/images/playButton.d.ts +2 -0
  160. package/build/lib/images/volumeOff.d.ts +1 -0
  161. package/build/lib/style/index.d.ts +2 -0
  162. package/build/lib/style/theme.d.ts +121 -0
  163. package/build/lib/utils/UseOnClickOutside.d.ts +3 -0
  164. package/build/lib/utils/automotiveRolePermissionChecks.d.ts +11 -0
  165. package/build/lib/utils/functions.d.ts +18 -0
  166. package/build/lib/utils/object.d.ts +3 -0
  167. package/build/lib/utils/reactions.d.ts +3 -0
  168. package/package.json +68 -0
  169. 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,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,5 @@
1
+ export type Option = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ export declare const InsertVideo: () => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export { InsertVideoSettings } from './InsertVideoSettings';
2
+ export { VehicleSearch } from './VehicleSearch';
@@ -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,6 @@
1
+ type Props = {
2
+ size: number;
3
+ message: string;
4
+ };
5
+ export declare const NoVideos: ({ size, message }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ page: number;
3
+ size: number;
4
+ count: number;
5
+ };
6
+ export declare const PageInfo: ({ page, size, count }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ prevSearch: string;
3
+ handleSearch: (searchTerm: string) => void;
4
+ };
5
+ export declare const Search: ({ prevSearch, handleSearch }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ name: string;
3
+ handleUpdateToken: Function;
4
+ };
5
+ export declare const UserDropdown: ({ name, handleUpdateToken }: Props) => import("react/jsx-runtime").JSX.Element | null;
6
+ 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,5 @@
1
+ export { VideoItem } from './VideoItem';
2
+ export { Search } from './Search';
3
+ export { NoVideos } from './NoVideos';
4
+ export { UserDropdown } from './UserDropdown';
5
+ export { PageInfo } from './PageInfo';
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ handleUpdateToken: Function;
3
+ };
4
+ export declare const Login: ({ handleUpdateToken }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Merge: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type PlayerProps = {
2
+ displayVideos: any[];
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ export declare const Player: ({ width, height, displayVideos }: PlayerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -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,2 @@
1
+ export declare const DragContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const VideoThumbnail: ({ video, setVideos, setVideoRef, index, }: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const PreviewUpload: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PreviewUpload;
@@ -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,2 @@
1
+ import * as React from 'react';
2
+ export declare const RecordScreen: React.MemoExoticComponent<({ onRecordingStart, onRecordingEnd, onUpload, uploadDisabled, onRecordingUrlGeneration, }: any) => 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,2 @@
1
+ export { ProgressBar } from './progressBar';
2
+ export { VideoControls } from './videoControls';
@@ -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,7 @@
1
+ import React from 'react';
2
+ import { GetRailProps } from 'react-compound-slider';
3
+ interface SliderRailProps {
4
+ getRailProps: GetRailProps;
5
+ }
6
+ export declare const SliderRail: React.FC<SliderRailProps>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SliderItem } from 'react-compound-slider';
3
+ interface TickProps {
4
+ tick: SliderItem;
5
+ count: number;
6
+ format?: (val: number) => string;
7
+ }
8
+ export declare const Tick: React.FC<TickProps>;
9
+ 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;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ page: number;
3
+ size: number;
4
+ count: number;
5
+ };
6
+ export declare const PageInfo: ({ page, size, count }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ prevSearch: string;
3
+ handleSearch: (searchTerm: string) => void;
4
+ };
5
+ export declare const Search: ({ prevSearch, handleSearch }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Search } from './Search';
2
+ export { PageInfo } from './PageInfo';
@@ -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;