react-covideo-embed 1.0.10 → 1.0.11

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,149 @@
1
+ import { VideoEmailStatus, VideoStatus } from 'lib/const';
2
+ export type GlobalAction = {
3
+ continueLoading?: boolean;
4
+ type: string;
5
+ payload?: any;
6
+ error?: string;
7
+ pathname?: string;
8
+ };
9
+ export interface Folder {
10
+ folderId: number | string;
11
+ name: string;
12
+ isDeletable: boolean;
13
+ access?: string;
14
+ }
15
+ export interface SelectProps {
16
+ label: any;
17
+ value: any;
18
+ labelField?: any;
19
+ __isNew__?: boolean;
20
+ }
21
+ export type InventoryItemMedia = {
22
+ inventoryItemMediaId: string;
23
+ itemId: string;
24
+ mediaType: number;
25
+ mediaSource: string;
26
+ };
27
+ export type InventoryItem = {
28
+ itemId: string;
29
+ customerId: string;
30
+ sold: boolean;
31
+ detailsPageUrl: string;
32
+ price: string;
33
+ title: string;
34
+ vin: string;
35
+ stockNumber: string;
36
+ itemCondition: string;
37
+ engine: string;
38
+ make: string;
39
+ model: string;
40
+ trim: string;
41
+ year: string;
42
+ mileage: string;
43
+ exteriorColor: string;
44
+ interiorColor: string;
45
+ transmission: string;
46
+ createdAt: Date;
47
+ media?: InventoryItemMedia[];
48
+ videosRecorded?: number | string;
49
+ videoRequests?: VideoRequest[];
50
+ };
51
+ export type VideoItem = {
52
+ videoRequest: any;
53
+ id: string;
54
+ autogeneratedThumbnail: string;
55
+ flvName: string;
56
+ sendReply: number;
57
+ title: string;
58
+ videoSource: string;
59
+ thumbnail?: string;
60
+ videoLength?: number;
61
+ playerBackgroundColor: string;
62
+ playerIconsAndTextColor: string;
63
+ playButtonPosition: string;
64
+ emailStatus: string;
65
+ personalThumbnail: string;
66
+ recordDate: string;
67
+ };
68
+ export type VideoListAutomotiveItem = {
69
+ id: string;
70
+ title: string;
71
+ recordDate: string;
72
+ views: string;
73
+ thumbnail: string;
74
+ videoRequest: VideoRequest;
75
+ repairOrder?: RepairOrderItem;
76
+ videoLength?: number;
77
+ videoSource: string;
78
+ playerBackgroundColor: string;
79
+ playButtonPosition: string;
80
+ playerIconsAndTextColor: string;
81
+ tags: object[];
82
+ user: any;
83
+ folder?: string;
84
+ };
85
+ export type VideoRequest = {
86
+ videoRequestId: string;
87
+ repairOrderNumber: string;
88
+ videoType: string;
89
+ title: string;
90
+ customerName: string;
91
+ note: string;
92
+ videoId: string;
93
+ video: VideoListAutomotiveItem;
94
+ repairOrder?: RepairOrderItem;
95
+ user: any;
96
+ advisor: any;
97
+ status: VideoStatus;
98
+ emailStatus: VideoEmailStatus;
99
+ createdAt: string;
100
+ vin?: string;
101
+ automotiveDepartment: number;
102
+ sharedWithCompany?: boolean;
103
+ userId?: string;
104
+ advisorId?: string;
105
+ };
106
+ export type RepairOrderActivity = {
107
+ RepairOrderActivityId: string;
108
+ title: string;
109
+ createdAt: string;
110
+ };
111
+ export type QuoteItem = {
112
+ title: string;
113
+ price: number;
114
+ approved: boolean;
115
+ required: boolean;
116
+ };
117
+ export type RepairOrderItem = {
118
+ repairOrderId: string;
119
+ videoId: string;
120
+ repairOrderNumber: string;
121
+ status: string;
122
+ firstName: string;
123
+ lastName: string;
124
+ phone?: string;
125
+ email?: string;
126
+ emailSubject?: string;
127
+ emailText?: string;
128
+ smsText?: string;
129
+ sendEmail: boolean;
130
+ sendQuote: boolean;
131
+ sendSms: boolean;
132
+ videoRequest?: VideoRequest;
133
+ quoteItems?: QuoteItem[];
134
+ activities?: RepairOrderActivity[];
135
+ user?: any;
136
+ advisor?: any;
137
+ ctaEmail?: boolean;
138
+ ctaPhone?: boolean;
139
+ createdAt?: string;
140
+ closeRatio?: number;
141
+ totalPrice?: number;
142
+ totalPriceApproved?: number;
143
+ video?: VideoItem;
144
+ };
145
+ export type TrimVideoData = {
146
+ title?: string;
147
+ start?: number;
148
+ duration?: number;
149
+ };
@@ -0,0 +1,2 @@
1
+ import { VideoData as VideoDataType } from './useVideoStore';
2
+ export type VideoData = VideoDataType;
@@ -0,0 +1 @@
1
+ export * from './useGetInventoryItems';
@@ -0,0 +1,12 @@
1
+ type Props = {
2
+ size?: number;
3
+ page?: number;
4
+ sort?: string;
5
+ searchQuery?: string;
6
+ soldFilter?: string;
7
+ videosRecordedFilter?: string;
8
+ countRecorded?: boolean;
9
+ enabled?: boolean;
10
+ };
11
+ export declare const useGetInventoryItems: ({ size, page, sort, searchQuery, soldFilter, videosRecordedFilter, countRecorded, enabled, }: Props) => import("react-query").UseQueryResult<any, unknown>;
12
+ export {};
@@ -0,0 +1,28 @@
1
+ interface MarkAsSentResponse {
2
+ key: string;
3
+ url: string;
4
+ html: string;
5
+ thumbnail: string;
6
+ legacyHtml: string;
7
+ shortUrlCode: string;
8
+ }
9
+ type QuickShareTypes = 'html_code' | 'url' | 'crm_code' | 'quickshare' | 'insert' | '';
10
+ export interface IQuickShareMarkAsSentParams {
11
+ videoId: number | string;
12
+ linksetId?: number | string;
13
+ templateId?: number | string;
14
+ overlayId?: number | string;
15
+ vin?: number | string;
16
+ markAsSentConfirmed?: boolean | undefined;
17
+ videoActivityType?: string | undefined;
18
+ iconId?: number;
19
+ format?: string;
20
+ useAutomotive?: string | boolean | undefined;
21
+ allowVideoReply?: string | boolean | undefined;
22
+ allowReactions?: string | boolean | undefined;
23
+ notifyUser?: string | boolean | undefined;
24
+ toastType?: QuickShareTypes;
25
+ reuseShortUrl?: boolean;
26
+ }
27
+ export declare const useQuickShareMarkAsSentMutation: (onSuccessCallback: () => void) => import("react-query").UseMutationResult<MarkAsSentResponse, unknown, IQuickShareMarkAsSentParams, unknown>;
28
+ export {};
@@ -0,0 +1,4 @@
1
+ import { IQuickShareMarkAsSentParams } from './query/markAsSent/useQuickShareMarkAsSentMutation';
2
+ export declare const useCopyClipboard: () => {
3
+ copyClipboard: (url: string, html: string, params: IQuickShareMarkAsSentParams) => Promise<void>;
4
+ };
@@ -0,0 +1,21 @@
1
+ interface VideoData {
2
+ title: string;
3
+ filename: string;
4
+ id?: number | string;
5
+ }
6
+ interface CreateVideoResponse {
7
+ success: boolean;
8
+ url: string;
9
+ html: string;
10
+ id: string;
11
+ video_id: string;
12
+ data?: any;
13
+ }
14
+ export declare const useCreateVideo: () => {
15
+ videoData: CreateVideoResponse;
16
+ loading: boolean;
17
+ error: boolean | null;
18
+ fetch: (data: VideoData) => void;
19
+ progress: number;
20
+ };
21
+ export {};
@@ -0,0 +1,16 @@
1
+ interface EncodeData {
2
+ videoId: string;
3
+ customerId: string;
4
+ }
5
+ interface EncodeVideoResponse {
6
+ success: boolean;
7
+ job_id: number;
8
+ }
9
+ export declare const useEncodeVideo: () => {
10
+ encodeData: EncodeVideoResponse;
11
+ loading: boolean;
12
+ error: boolean | null;
13
+ fetch: (data: EncodeData) => Promise<void>;
14
+ progress: number;
15
+ };
16
+ export {};
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ src: string;
3
+ onLoad?: (width: number, height: number) => void;
4
+ };
5
+ declare const useImageLoadRetry: ({ src, onLoad }: Props) => {
6
+ imgRef: import("react").RefObject<HTMLImageElement>;
7
+ retryCount: number;
8
+ error: boolean;
9
+ };
10
+ export default useImageLoadRetry;
@@ -0,0 +1,32 @@
1
+ export declare const MIME_TYPE: string;
2
+ export declare const CONTENT_TYPE = "video/webm";
3
+ export declare const FILE_EXTENSION = "webm";
4
+ type ReactMediaRecorderRenderProps = {
5
+ error: string;
6
+ muteAudio: () => void;
7
+ unMuteAudio: () => void;
8
+ startRecording: () => void;
9
+ startRecordingForCanvas: (canvasStream: any) => void;
10
+ pauseRecording: () => void;
11
+ resumeRecording: () => void;
12
+ stopRecording: () => void;
13
+ mediaBlobUrl: null | string;
14
+ status: StatusMessages;
15
+ isAudioMuted: boolean;
16
+ previewStream: MediaStream | null;
17
+ previewAudioStream: MediaStream | null;
18
+ clearBlobUrl: () => void;
19
+ };
20
+ type ReactMediaRecorderHookProps = {
21
+ audio?: boolean | MediaTrackConstraints;
22
+ video?: boolean | MediaTrackConstraints;
23
+ screen?: boolean;
24
+ onStop?: (blobUrl: string, blob: Blob) => void;
25
+ blobPropertyBag?: BlobPropertyBag;
26
+ mediaRecorderOptions?: any | null;
27
+ mimeType?: string;
28
+ quality?: string;
29
+ };
30
+ type StatusMessages = 'media_aborted' | 'permission_denied' | 'no_specified_media_found' | 'media_in_use' | 'invalid_media_constraints' | 'no_constraints' | 'recorder_error' | 'idle' | 'acquiring_media' | 'delayed_start' | 'recording' | 'stopping' | 'stopped';
31
+ export declare function useMediaRecorder({ audio, video, onStop, blobPropertyBag, screen, mediaRecorderOptions, mimeType, quality, }: ReactMediaRecorderHookProps): ReactMediaRecorderRenderProps;
32
+ export {};
@@ -0,0 +1,16 @@
1
+ interface PresignedUrl {
2
+ url: string;
3
+ id?: number;
4
+ }
5
+ interface PresignedUrlParams {
6
+ fileName: string;
7
+ type: string;
8
+ id?: number;
9
+ }
10
+ export declare const usePresignedUrl: () => {
11
+ presignedUrl: PresignedUrl;
12
+ loading: boolean;
13
+ error: boolean | null;
14
+ fetch: (data: PresignedUrlParams) => void;
15
+ };
16
+ export {};
@@ -0,0 +1,16 @@
1
+ import { AxiosRequestConfig, Method } from 'axios';
2
+ type UseQueryProps = {
3
+ method?: Method;
4
+ params?: {};
5
+ pathname?: string;
6
+ autoFetch?: boolean;
7
+ showToastMessage?: boolean;
8
+ };
9
+ export declare const useQueryFetch: ({ method, pathname, params, autoFetch, showToastMessage, }: UseQueryProps) => {
10
+ data: any;
11
+ loading: boolean;
12
+ error: boolean | null;
13
+ fetchData: (requestConfig?: AxiosRequestConfig, id?: any) => Promise<void>;
14
+ progress: number;
15
+ };
16
+ export {};
@@ -0,0 +1,22 @@
1
+ type ActionType = {
2
+ type: 'REQUEST';
3
+ } | {
4
+ type: 'SUCCESS';
5
+ data: {};
6
+ } | {
7
+ type: 'FAILURE';
8
+ error: boolean;
9
+ } | {
10
+ type: 'PROGRESS';
11
+ };
12
+ type QueryState = {
13
+ data: any | null;
14
+ error: boolean | null;
15
+ loading: boolean;
16
+ progress: number;
17
+ };
18
+ export declare const useQueryState: (init?: any) => {
19
+ state: QueryState;
20
+ dispatch: import("react").Dispatch<ActionType>;
21
+ };
22
+ export {};
@@ -0,0 +1,15 @@
1
+ interface UploadData {
2
+ url: string;
3
+ file: File;
4
+ contentType?: string;
5
+ onUploadProgress: (event: ProgressEvent, id?: number | string) => void;
6
+ id?: number;
7
+ }
8
+ interface UseS3Upload {
9
+ data: any;
10
+ loading: boolean;
11
+ error: string | null;
12
+ uploadVideo(video: UploadData): void;
13
+ }
14
+ export declare const useS3Upload: () => UseS3Upload;
15
+ export {};
@@ -0,0 +1,12 @@
1
+ import { VideoListItem } from 'lib/api';
2
+ type Props = {
3
+ videoId: string | number;
4
+ checkField: keyof VideoListItem;
5
+ enabled: boolean;
6
+ };
7
+ declare const useVideoLoadRetry: ({ videoId, checkField, enabled }: Props) => {
8
+ videoData: VideoListItem | null;
9
+ retryCount: number;
10
+ error: boolean;
11
+ };
12
+ export default useVideoLoadRetry;
@@ -0,0 +1,17 @@
1
+ export type VideoData = {
2
+ id: string;
3
+ title: string;
4
+ recordDate: string;
5
+ autogeneratedThumbnail: string;
6
+ videoSource: string;
7
+ personalThumbnail: string;
8
+ playerBackgroundColor: string;
9
+ playerIconsAndTextColor: string;
10
+ playButtonPosition: string;
11
+ wtvId?: number;
12
+ emailStatus: string;
13
+ protected?: boolean | string;
14
+ videoLength?: number;
15
+ reactionsPreference?: boolean;
16
+ userId?: number;
17
+ };
@@ -0,0 +1,9 @@
1
+ import { VideoTranscriptionResponse } from 'lib/api';
2
+ interface VideoTranscription {
3
+ data: VideoTranscriptionResponse;
4
+ loading: boolean;
5
+ error: string | null;
6
+ start: (videoId: string) => void;
7
+ }
8
+ export declare const useVideoTranscriptionStart: () => VideoTranscription;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export default AccountIcon;
2
+ declare const AccountIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default AddIcon;
2
+ declare const AddIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default CarIcon;
2
+ declare const CarIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default CheckmarkIcon;
2
+ declare const CheckmarkIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default CloseCircleIcon;
2
+ declare const CloseCircleIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default CloseIcon;
2
+ declare const CloseIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default DeleteIcon;
2
+ declare const DeleteIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default Drag;
2
+ declare const Drag: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default HashtagIcon;
2
+ declare const HashtagIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default LaptopIcon;
2
+ declare const LaptopIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default LogoCDS;
2
+ declare const LogoCDS: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default LogoGeneral;
2
+ declare const LogoGeneral: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default SaveIcon;
2
+ declare const SaveIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default SettingsIcon;
2
+ declare const SettingsIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default SmallLogoIcon;
2
+ declare const SmallLogoIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default VectorIcon;
2
+ declare const VectorIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default VideoIcon;
2
+ declare const VideoIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default ZoomInIcon;
2
+ declare const ZoomInIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default ZoomOutIcon;
2
+ declare const ZoomOutIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default PauseIcon;
2
+ declare const PauseIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1,2 @@
1
+ export default PlayIcon;
2
+ declare const PlayIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -0,0 +1 @@
1
+ export function VolumeOffIcon(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as theme from './theme';
2
+ export { theme };
@@ -0,0 +1,121 @@
1
+ export declare const screenSizes: {
2
+ mb: number;
3
+ xs: number;
4
+ sm: number;
5
+ cmd: number;
6
+ md: number;
7
+ lg: number;
8
+ xlg: number;
9
+ xxlg: number;
10
+ };
11
+ export declare const systemFontStack = "var(--font-family-secondary)";
12
+ export declare const fontNormal400: {
13
+ fontWeight: number;
14
+ fontFamily: string;
15
+ };
16
+ export declare const fontNormal500: {
17
+ fontWeight: number;
18
+ fontFamily: string;
19
+ };
20
+ export declare const fontNormal600: {
21
+ fontWeight: number;
22
+ fontFamily: string;
23
+ };
24
+ export declare const fontBold700: {
25
+ fontWeight: number;
26
+ fontFamily: string;
27
+ };
28
+ export declare const fontBold800: {
29
+ fontWeight: number;
30
+ fontFamily: string;
31
+ };
32
+ export declare const fontSizes: {
33
+ xxs: string;
34
+ xs: string;
35
+ sm: string;
36
+ m: string;
37
+ md: string;
38
+ lg: string;
39
+ xl: string;
40
+ xxl: string;
41
+ };
42
+ export declare const mediaQueryMinWidth: {
43
+ mb: string;
44
+ xs: string;
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xlg: string;
49
+ xxlg: string;
50
+ cmd: string;
51
+ };
52
+ export declare const mediaQueryMaxWidth: {
53
+ mb: string;
54
+ xs: string;
55
+ sm: string;
56
+ md: string;
57
+ lg: string;
58
+ xlg: string;
59
+ xxlg: string;
60
+ };
61
+ export declare const palette: {
62
+ white: string;
63
+ gray: string;
64
+ black_1_100: string;
65
+ blackRgb60: string;
66
+ blackRgba75: string;
67
+ themeDark: string;
68
+ blue80: string;
69
+ blue60: string;
70
+ blue40: string;
71
+ blue20: string;
72
+ blue05: string;
73
+ blue02: string;
74
+ blue100: string;
75
+ gray10: string;
76
+ gray20: string;
77
+ gray40: string;
78
+ gray60: string;
79
+ gray80: string;
80
+ gray100: string;
81
+ transparent: string;
82
+ error: string;
83
+ tertiaryBlue: string;
84
+ tertiaryBlue20: string;
85
+ tertiaryBlue60: string;
86
+ tertiaryBlue80: string;
87
+ orange05: string;
88
+ orange100: string;
89
+ black: string;
90
+ black05: string;
91
+ black25: string;
92
+ black40: string;
93
+ primaryRedDanger: string;
94
+ red02: string;
95
+ red40: string;
96
+ red10: string;
97
+ red100: string;
98
+ whiteRgb85: string;
99
+ primaryDarkBlue: string;
100
+ lightgray40: string;
101
+ covideoBlue100: string;
102
+ covideoBlue40: string;
103
+ covideoBlue005: string;
104
+ covideoGray100: string;
105
+ themeDark50Percent: string;
106
+ themeDark75Percent: string;
107
+ secondaryButtonBlueBg: string;
108
+ label: string;
109
+ buttonDanger: string;
110
+ lightgray: string;
111
+ buttonDelete: string;
112
+ buttonDangerHover: string;
113
+ hamburgerMenuHover: string;
114
+ primaryThemeColor: string;
115
+ blackRgb75: string;
116
+ buttonPrimaryHover: string;
117
+ primaryCDSColor: string;
118
+ primaryBlack25Percent: string;
119
+ secondaryBlue: string;
120
+ midGrey: string;
121
+ };
@@ -0,0 +1,3 @@
1
+ export function useOnClickOutside(callback: any): {
2
+ ref: (node: any) => void;
3
+ };
@@ -0,0 +1,7 @@
1
+ import { UserData } from 'lib/context';
2
+ export declare const checkIsIMSEnabled: (userData: UserData) => boolean;
3
+ export declare const checkIfAutomotive: (userData: UserData) => boolean;
4
+ export declare const checkIfAutomotiveServiceRole: (userData: UserData) => boolean;
5
+ export declare const checkIfAutomotiveSalesRole: (userData: UserData) => boolean;
6
+ export declare const checkIfVideoRequestFieldsRequired: (userData: UserData) => boolean;
7
+ export declare const getMarkAsSentValue: (userData: UserData) => number;
@@ -0,0 +1,22 @@
1
+ import { UserData } from 'lib/context';
2
+ export declare const toString: (o: any) => any;
3
+ export declare const toHHMMSSFF: (sec_num: number, frame_rate?: number) => string;
4
+ export declare const toMMSS: (sec_num: number, fractionDigits?: number) => string;
5
+ export declare const toMMSSSimplified: (length: number) => string;
6
+ export declare const generateFileName: (userData: UserData, fileExt: string) => string;
7
+ export declare const generateVideoTitle: () => string;
8
+ export declare const serverTimeToUserTime: (time: string, userData: UserData, format?: string) => string;
9
+ export declare const reorder: (list: any[], startIndex: number, endIndex: number) => any[];
10
+ type CheckIfVideoIsTrimmedProps = {
11
+ trimStart: number;
12
+ trimEnd: number;
13
+ videoDuration: number;
14
+ };
15
+ export declare const checkIfVideoIsTrimmed: ({ trimStart, trimEnd, videoDuration, }: CheckIfVideoIsTrimmedProps) => boolean;
16
+ export declare const isSafari: boolean;
17
+ export declare const toMB: (KB: number) => string;
18
+ export declare function capitalizeFirstLetter(string: string): string;
19
+ export declare function clearCookies(): void;
20
+ export declare const toMMSSTimestamp: (sec_num: number, fractionDigits?: number) => string;
21
+ export declare function checkIfMobileDevice(): boolean;
22
+ export {};
@@ -0,0 +1,3 @@
1
+ import { UserData } from 'lib/context';
2
+ export declare const checkIfCustomerReactionsEnabled: (userData: UserData) => boolean;
3
+ export declare const checkIfReactionsEnabledByDefault: (userData: UserData) => boolean;