react-covideo-embed 1.0.10 → 1.0.12

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 (174) hide show
  1. package/build/app/App.d.ts +3 -0
  2. package/build/app/pages/insertVideo/InsertVideo.d.ts +13 -0
  3. package/build/app/pages/insertVideo/components/CopyVideoButton.d.ts +13 -0
  4. package/build/app/pages/insertVideo/components/InsertButton.d.ts +13 -0
  5. package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +17 -0
  6. package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +13 -0
  7. package/build/app/pages/insertVideo/components/index.d.ts +2 -0
  8. package/build/app/pages/lesaTV/LesaTV.d.ts +1 -0
  9. package/build/app/pages/lesaTV/components/PageInfo.d.ts +7 -0
  10. package/build/app/pages/lesaTV/components/Search.d.ts +6 -0
  11. package/build/app/pages/lesaTV/components/index.d.ts +2 -0
  12. package/build/app/pages/library/Library.d.ts +5 -0
  13. package/build/app/pages/library/components/NoVideos.d.ts +6 -0
  14. package/build/app/pages/library/components/PageInfo.d.ts +7 -0
  15. package/build/app/pages/library/components/Search.d.ts +6 -0
  16. package/build/app/pages/library/components/UserDropdown.d.ts +6 -0
  17. package/build/app/pages/library/components/VideoItem.d.ts +9 -0
  18. package/build/app/pages/library/components/VideoItemThumbnail.d.ts +11 -0
  19. package/build/app/pages/library/components/const.d.ts +6 -0
  20. package/build/app/pages/library/components/index.d.ts +5 -0
  21. package/build/app/pages/login/Login.d.ts +5 -0
  22. package/build/app/pages/merge/Merge.d.ts +1 -0
  23. package/build/app/pages/merge/components/Player.d.ts +7 -0
  24. package/build/app/pages/merge/components/VideoMerge.d.ts +1 -0
  25. package/build/app/pages/merge/components/VideoRow.d.ts +1 -0
  26. package/build/app/pages/merge/components/VideoThumbnail.d.ts +1 -0
  27. package/build/app/pages/previewUpload/PreviewUpload.d.ts +2 -0
  28. package/build/app/pages/record/both/RecordBoth.d.ts +1 -0
  29. package/build/app/pages/record/both/main/Main.d.ts +1 -0
  30. package/build/app/pages/record/cam/RecordCam.d.ts +1 -0
  31. package/build/app/pages/record/cam/main/Main.d.ts +1 -0
  32. package/build/app/pages/record/home/RecordHome.d.ts +1 -0
  33. package/build/app/pages/record/screen/RecordScreen.d.ts +2 -0
  34. package/build/app/pages/record/screen/main/Main.d.ts +1 -0
  35. package/build/app/pages/video/Upload.d.ts +10 -0
  36. package/build/app/pages/video/components/Preview.d.ts +13 -0
  37. package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +29 -0
  38. package/build/app/pages/video/components/videoPlayer/components/index.d.ts +2 -0
  39. package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +10 -0
  40. package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +10 -0
  41. package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +15 -0
  42. package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +7 -0
  43. package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +9 -0
  44. package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +19 -0
  45. package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +10 -0
  46. package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +13 -0
  47. package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +7 -0
  48. package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +25 -0
  49. package/build/app/pages/video/components/videoPlayer/index.d.ts +1 -0
  50. package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +7 -0
  51. package/build/app/pages/voiceover/Voiceover.d.ts +1 -0
  52. package/build/app/pages/voiceover/components/AudioRecorder.d.ts +14 -0
  53. package/build/app/pages/voiceover/components/VideoPreview.d.ts +11 -0
  54. package/build/app/pages/voiceover/components/util.d.ts +1 -0
  55. package/build/app/pages/wheelsTV/WheelsTV.d.ts +1 -0
  56. package/build/app/pages/wheelsTV/components/PageInfo.d.ts +7 -0
  57. package/build/app/pages/wheelsTV/components/Search.d.ts +6 -0
  58. package/build/app/pages/wheelsTV/components/index.d.ts +2 -0
  59. package/build/index.d.ts +81 -0
  60. package/build/index.js +768 -0
  61. package/build/index.js.LICENSE.txt +81 -0
  62. package/build/lib/api/attributesApi.d.ts +8 -0
  63. package/build/lib/api/authApi.d.ts +11 -0
  64. package/build/lib/api/designApi.d.ts +86 -0
  65. package/build/lib/api/index.d.ts +9 -0
  66. package/build/lib/api/inventoryApi.d.ts +10 -0
  67. package/build/lib/api/lesa/lesaKeys.d.ts +6 -0
  68. package/build/lib/api/lesa/useLesaTvVideosQuery.d.ts +27 -0
  69. package/build/lib/api/lesa/useLesaVideosMutation.d.ts +8 -0
  70. package/build/lib/api/multilocation/getUserLocations.d.ts +12 -0
  71. package/build/lib/api/multilocation/locationKeys.d.ts +3 -0
  72. package/build/lib/api/multilocation/signIntoLocation.d.ts +10 -0
  73. package/build/lib/api/quckshareApi.d.ts +18 -0
  74. package/build/lib/api/types.d.ts +44 -0
  75. package/build/lib/api/videoRequestApi.d.ts +6 -0
  76. package/build/lib/api/videoTagsApi.d.ts +13 -0
  77. package/build/lib/api/videosApi.d.ts +64 -0
  78. package/build/lib/api/voiceOverApi.d.ts +20 -0
  79. package/build/lib/api/wtvApi.d.ts +34 -0
  80. package/build/lib/components/ButtonDropdown.d.ts +22 -0
  81. package/build/lib/components/CheckboxInput.d.ts +19 -0
  82. package/build/lib/components/CloseButton.d.ts +13 -0
  83. package/build/lib/components/Container.d.ts +9 -0
  84. package/build/lib/components/CountDown.d.ts +1 -0
  85. package/build/lib/components/DragAndDrop.d.ts +21 -0
  86. package/build/lib/components/Dropdown.d.ts +29 -0
  87. package/build/lib/components/HoverPopup.d.ts +15 -0
  88. package/build/lib/components/Input.d.ts +10 -0
  89. package/build/lib/components/Label.d.ts +6 -0
  90. package/build/lib/components/LoadingIndicator.d.ts +11 -0
  91. package/build/lib/components/Logo.d.ts +5 -0
  92. package/build/lib/components/MainWrapper.d.ts +6 -0
  93. package/build/lib/components/PreviewVideoBar.d.ts +8 -0
  94. package/build/lib/components/RouteLeavingGuard.d.ts +18 -0
  95. package/build/lib/components/Spinner.d.ts +6 -0
  96. package/build/lib/components/TopBar.d.ts +9 -0
  97. package/build/lib/components/index.d.ts +15 -0
  98. package/build/lib/components/inputs/RadioInput.d.ts +14 -0
  99. package/build/lib/components/modal/Modal.d.ts +13 -0
  100. package/build/lib/components/modal/ModalQuickShareMarkAsSent.d.ts +14 -0
  101. package/build/lib/components/modal/ModalRecordingSettings.d.ts +10 -0
  102. package/build/lib/components/modals/Modal.d.ts +14 -0
  103. package/build/lib/components/modals/ModalInputText.d.ts +11 -0
  104. package/build/lib/components/modals/ModalLeave.d.ts +15 -0
  105. package/build/lib/components/modals/ModalPrompt.d.ts +12 -0
  106. package/build/lib/components/modals/ModalUpload.d.ts +7 -0
  107. package/build/lib/components/modals/ModalVideoPreview.d.ts +7 -0
  108. package/build/lib/components/toast-notifications/ToastNotification.d.ts +5 -0
  109. package/build/lib/components/toast-notifications/index.d.ts +4 -0
  110. package/build/lib/components/videoUpload/MultipleUploadList.d.ts +8 -0
  111. package/build/lib/components/videoUpload/VideoUpload.d.ts +9 -0
  112. package/build/lib/components/videoUpload/styles.d.ts +11 -0
  113. package/build/lib/config.d.ts +22 -0
  114. package/build/lib/const/AutomotiveRole.d.ts +8 -0
  115. package/build/lib/const/Folder.d.ts +9 -0
  116. package/build/lib/const/MarkAsSentOptions.d.ts +14 -0
  117. package/build/lib/const/PackageName.d.ts +7 -0
  118. package/build/lib/const/VideoActivity.d.ts +16 -0
  119. package/build/lib/const/VideoEmailStatus.d.ts +7 -0
  120. package/build/lib/const/VideoStatus.d.ts +6 -0
  121. package/build/lib/const/VideoType.d.ts +15 -0
  122. package/build/lib/const/index.d.ts +5 -0
  123. package/build/lib/context/ActionDispatchContext.d.ts +4 -0
  124. package/build/lib/context/AuthorizationContext.d.ts +114 -0
  125. package/build/lib/context/ConfigurationContext.d.ts +52 -0
  126. package/build/lib/context/actionCreators.d.ts +37 -0
  127. package/build/lib/context/authReducer.d.ts +16 -0
  128. package/build/lib/context/index.d.ts +3 -0
  129. package/build/lib/context/types.d.ts +149 -0
  130. package/build/lib/hooks/index.d.ts +2 -0
  131. package/build/lib/hooks/query/inventoryItem/index.d.ts +1 -0
  132. package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +12 -0
  133. package/build/lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation.d.ts +28 -0
  134. package/build/lib/hooks/useCopyClipboard.d.ts +4 -0
  135. package/build/lib/hooks/useCreateVideo.d.ts +21 -0
  136. package/build/lib/hooks/useEncodeVideo.d.ts +16 -0
  137. package/build/lib/hooks/useImageLoadRetry.d.ts +10 -0
  138. package/build/lib/hooks/useMediaRecorder.d.ts +32 -0
  139. package/build/lib/hooks/usePresignedUrl.d.ts +16 -0
  140. package/build/lib/hooks/useQueryFetch.d.ts +16 -0
  141. package/build/lib/hooks/useQueryState.d.ts +22 -0
  142. package/build/lib/hooks/useS3Upload.d.ts +15 -0
  143. package/build/lib/hooks/useVideoLoadRetry.d.ts +12 -0
  144. package/build/lib/hooks/useVideoStore.d.ts +17 -0
  145. package/build/lib/hooks/useVideoTranscriptionStart.d.ts +9 -0
  146. package/build/lib/images/AccountIcon.d.ts +2 -0
  147. package/build/lib/images/AddIcon.d.ts +2 -0
  148. package/build/lib/images/CarIcon.d.ts +2 -0
  149. package/build/lib/images/CheckmarkIcon.d.ts +2 -0
  150. package/build/lib/images/CloseCircleIcon.d.ts +2 -0
  151. package/build/lib/images/CloseIcon.d.ts +2 -0
  152. package/build/lib/images/DeleteIcon.d.ts +2 -0
  153. package/build/lib/images/Drag.d.ts +2 -0
  154. package/build/lib/images/HashtagIcon.d.ts +2 -0
  155. package/build/lib/images/LaptopIcon.d.ts +2 -0
  156. package/build/lib/images/LogoCDS.d.ts +2 -0
  157. package/build/lib/images/LogoGeneral.d.ts +2 -0
  158. package/build/lib/images/SaveIcon.d.ts +2 -0
  159. package/build/lib/images/SettingsIcon.d.ts +2 -0
  160. package/build/lib/images/SmallLogoIcon.d.ts +2 -0
  161. package/build/lib/images/VectorIcon.d.ts +2 -0
  162. package/build/lib/images/VideoIcon.d.ts +2 -0
  163. package/build/lib/images/ZoomInIcon.d.ts +2 -0
  164. package/build/lib/images/ZoomOutIcon.d.ts +2 -0
  165. package/build/lib/images/pauseButton.d.ts +2 -0
  166. package/build/lib/images/playButton.d.ts +2 -0
  167. package/build/lib/images/volumeOff.d.ts +1 -0
  168. package/build/lib/style/index.d.ts +2 -0
  169. package/build/lib/style/theme.d.ts +121 -0
  170. package/build/lib/utils/UseOnClickOutside.d.ts +3 -0
  171. package/build/lib/utils/automotiveRolePermissionChecks.d.ts +7 -0
  172. package/build/lib/utils/functions.d.ts +22 -0
  173. package/build/lib/utils/reactions.d.ts +3 -0
  174. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function App(): JSX.Element;
3
+ export default App;
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,17 @@
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 {};
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,2 @@
1
+ export { InsertVideoSettings } from './InsertVideoSettings';
2
+ export { VehicleSearch } from './VehicleSearch';
@@ -0,0 +1 @@
1
+ export declare const LesaTV: () => 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) => 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) => JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Search } from './Search';
2
+ export { PageInfo } from './PageInfo';
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ handleUpdateToken: Function;
3
+ };
4
+ export declare const Library: ({ handleUpdateToken }: Props) => JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ size: number;
3
+ message: string;
4
+ };
5
+ export declare const NoVideos: ({ size, message }: Props) => 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) => 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) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ handleUpdateToken: Function;
4
+ };
5
+ export declare const UserDropdown: import("react").MemoExoticComponent<({ handleUpdateToken }: Props) => 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) => JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
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 {};
@@ -0,0 +1,6 @@
1
+ export declare enum PROMPT_TYPE {
2
+ TELEPROPTER_SCRIPT = "Teleprompter Script",
3
+ EMAIL = "Email",
4
+ SMS = "SMS",
5
+ CRM_MESSAGE = "CRM Message"
6
+ }
@@ -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) => JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Merge: () => 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) => JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare const VideoMerge: ({ videos, setVideos }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const VideoRow: ({ index, totalDuration, offset, width, video, setVideos, }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const VideoThumbnail: ({ video, setVideos, setVideoRef, index, }: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const PreviewUpload: () => JSX.Element;
2
+ export default PreviewUpload;
@@ -0,0 +1 @@
1
+ export declare const RecordBoth: ({ onRecordingStart, onRecordingEnd, onUpload, uploadDisabled, onRecordingUrlGeneration, }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const RecordBothMain: ({ loading }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const RecordCam: ({ onRecordingStart, onRecordingEnd, uploadDisabled, virtualBackgroundUrl, showRecordingButton, onRecordingUrlGeneration, }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const RecordCamMain: ({ loading }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const RecordHome: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const RecordScreen: React.MemoExoticComponent<({ onRecordingStart, onRecordingEnd, uploadDisabled, onRecordingUrlGeneration, }: any) => JSX.Element>;
@@ -0,0 +1 @@
1
+ export declare const RecordScreenMain: ({ loading }: any) => 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) => JSX.Element;
10
+ export default Upload;
@@ -0,0 +1,13 @@
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;
@@ -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) => 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) => 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) => 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) => 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) => 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) => 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) => 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) => 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) => JSX.Element | null;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare const VoiceOver: () => 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) => 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) => 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: () => 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) => 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) => JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Search } from './Search';
2
+ export { PageInfo } from './PageInfo';
@@ -0,0 +1,81 @@
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>;