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
@@ -0,0 +1,148 @@
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
+ }
14
+ export interface SelectProps {
15
+ label: any;
16
+ value: any;
17
+ labelField?: any;
18
+ __isNew__?: boolean;
19
+ }
20
+ export type InventoryItemMedia = {
21
+ inventoryItemMediaId: string;
22
+ itemId: string;
23
+ mediaType: number;
24
+ mediaSource: string;
25
+ };
26
+ export type InventoryItem = {
27
+ itemId: string;
28
+ customerId: string;
29
+ sold: boolean;
30
+ detailsPageUrl: string;
31
+ price: string;
32
+ title: string;
33
+ vin: string;
34
+ stockNumber: string;
35
+ itemCondition: string;
36
+ engine: string;
37
+ make: string;
38
+ model: string;
39
+ trim: string;
40
+ year: string;
41
+ mileage: string;
42
+ exteriorColor: string;
43
+ interiorColor: string;
44
+ transmission: string;
45
+ createdAt: Date;
46
+ media?: InventoryItemMedia[];
47
+ videosRecorded?: number | string;
48
+ videoRequests?: VideoRequest[];
49
+ };
50
+ export type VideoItem = {
51
+ videoRequest: any;
52
+ id: string;
53
+ autogeneratedThumbnail: string;
54
+ flvName: string;
55
+ sendReply: number;
56
+ title: string;
57
+ videoSource: string;
58
+ thumbnail?: string;
59
+ videoLength?: number;
60
+ playerBackgroundColor: string;
61
+ playerIconsAndTextColor: string;
62
+ playButtonPosition: string;
63
+ emailStatus: string;
64
+ personalThumbnail: string;
65
+ recordDate: string;
66
+ };
67
+ export type VideoListAutomotiveItem = {
68
+ id: string;
69
+ title: string;
70
+ recordDate: string;
71
+ views: string;
72
+ thumbnail: string;
73
+ videoRequest: VideoRequest;
74
+ repairOrder?: RepairOrderItem;
75
+ videoLength?: number;
76
+ videoSource: string;
77
+ playerBackgroundColor: string;
78
+ playButtonPosition: string;
79
+ playerIconsAndTextColor: string;
80
+ tags: object[];
81
+ user: any;
82
+ folder?: string;
83
+ };
84
+ export type VideoRequest = {
85
+ videoRequestId: string;
86
+ repairOrderNumber: string;
87
+ videoType: string;
88
+ title: string;
89
+ customerName: string;
90
+ note: string;
91
+ videoId: string;
92
+ video: VideoListAutomotiveItem;
93
+ repairOrder?: RepairOrderItem;
94
+ user: any;
95
+ advisor: any;
96
+ status: VideoStatus;
97
+ emailStatus: VideoEmailStatus;
98
+ createdAt: string;
99
+ vin?: string;
100
+ automotiveDepartment: number;
101
+ sharedWithCompany?: boolean;
102
+ userId?: string;
103
+ advisorId?: string;
104
+ };
105
+ export type RepairOrderActivity = {
106
+ RepairOrderActivityId: string;
107
+ title: string;
108
+ createdAt: string;
109
+ };
110
+ export type QuoteItem = {
111
+ title: string;
112
+ price: number;
113
+ approved: boolean;
114
+ required: boolean;
115
+ };
116
+ export type RepairOrderItem = {
117
+ repairOrderId: string;
118
+ videoId: string;
119
+ repairOrderNumber: string;
120
+ status: string;
121
+ firstName: string;
122
+ lastName: string;
123
+ phone?: string;
124
+ email?: string;
125
+ emailSubject?: string;
126
+ emailText?: string;
127
+ smsText?: string;
128
+ sendEmail: boolean;
129
+ sendQuote: boolean;
130
+ sendSms: boolean;
131
+ videoRequest?: VideoRequest;
132
+ quoteItems?: QuoteItem[];
133
+ activities?: RepairOrderActivity[];
134
+ user?: any;
135
+ advisor?: any;
136
+ ctaEmail?: boolean;
137
+ ctaPhone?: boolean;
138
+ createdAt?: string;
139
+ closeRatio?: number;
140
+ totalPrice?: number;
141
+ totalPriceApproved?: number;
142
+ video?: VideoItem;
143
+ };
144
+ export type TrimVideoData = {
145
+ title?: string;
146
+ start?: number;
147
+ duration?: number;
148
+ };
@@ -0,0 +1,3 @@
1
+ import { VideoData as VideoDataType } from './useVideoStore';
2
+ export { useMediaRecorder } from './useMediaRecorder';
3
+ 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,21 @@
1
+ export 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
+ export 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,46 @@
1
+ import { ReactElement } from 'react';
2
+ export declare const MIME_TYPE = "video/webm;codecs=vp8,opus";
3
+ export declare const CONTENT_TYPE = "video/webm";
4
+ export declare const FILE_EXTENSION = "webm";
5
+ export type ReactMediaRecorderRenderProps = {
6
+ error: string;
7
+ muteAudio: () => void;
8
+ unMuteAudio: () => void;
9
+ startRecording: () => void;
10
+ startRecordingForCanvas: (canvasStream: any) => void;
11
+ pauseRecording: () => void;
12
+ resumeRecording: () => void;
13
+ stopRecording: () => void;
14
+ mediaBlobUrl: null | string;
15
+ status: StatusMessages;
16
+ isAudioMuted: boolean;
17
+ previewStream: MediaStream | null;
18
+ previewAudioStream: MediaStream | null;
19
+ clearBlobUrl: () => void;
20
+ };
21
+ export type ReactMediaRecorderHookProps = {
22
+ audio?: boolean | MediaTrackConstraints;
23
+ video?: boolean | MediaTrackConstraints;
24
+ screen?: boolean;
25
+ onStop?: (blobUrl: string, blob: Blob) => void;
26
+ blobPropertyBag?: BlobPropertyBag;
27
+ mediaRecorderOptions?: any | null;
28
+ mimeType?: string;
29
+ quality?: string;
30
+ };
31
+ export type ReactMediaRecorderProps = ReactMediaRecorderHookProps & {
32
+ render: (props: ReactMediaRecorderRenderProps) => ReactElement;
33
+ };
34
+ export 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';
35
+ export declare enum RecorderErrors {
36
+ AbortError = "media_aborted",
37
+ NotAllowedError = "permission_denied",
38
+ NotFoundError = "no_specified_media_found",
39
+ NotReadableError = "media_in_use",
40
+ OverconstrainedError = "invalid_media_constraints",
41
+ TypeError = "no_constraints",
42
+ NONE = "",
43
+ NO_RECORDER = "recorder_error"
44
+ }
45
+ export declare function useMediaRecorder({ audio, video, onStop, blobPropertyBag, screen, mediaRecorderOptions, mimeType, quality, }: ReactMediaRecorderHookProps): ReactMediaRecorderRenderProps;
46
+ export declare const ReactMediaRecorder: (props: ReactMediaRecorderProps) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -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,19 @@
1
+ import { AxiosRequestConfig, AxiosResponse, Method } from 'axios';
2
+ export interface ExpandedAxiosResponse extends AxiosResponse<any> {
3
+ success?: boolean;
4
+ }
5
+ export type UseQueryProps = {
6
+ method?: Method;
7
+ params?: {};
8
+ pathname?: string;
9
+ origin?: string;
10
+ autoFetch?: boolean;
11
+ showToastMessage?: boolean;
12
+ };
13
+ export declare const useQueryFetch: ({ method, pathname, origin, params, autoFetch, showToastMessage, }: UseQueryProps) => {
14
+ data: any;
15
+ loading: boolean;
16
+ error: boolean | null;
17
+ fetchData: (requestConfig?: AxiosRequestConfig, id?: any) => Promise<void>;
18
+ progress: number;
19
+ };
@@ -0,0 +1,22 @@
1
+ export 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
+ export 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,18 @@
1
+ export type VideoShareLinkData = {
2
+ url: string;
3
+ html: string;
4
+ key?: string;
5
+ };
6
+ export type VideoShareSetData = {
7
+ videoId: string;
8
+ templateId: number;
9
+ linksetId?: string | number;
10
+ overlayId?: string | number;
11
+ vin: string;
12
+ allowReactions?: boolean;
13
+ };
14
+ export declare const getExpressLinkWithData: (videoShareSetData: VideoShareSetData, useAutomotive?: boolean) => Promise<{
15
+ url: any;
16
+ html: any;
17
+ key: any;
18
+ }>;
@@ -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 ArrowBackIcon;
2
+ declare const ArrowBackIcon: 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 CutIcon;
2
+ declare const CutIcon: 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 @@
1
+ export function DropdownIcon(props: any): import("react/jsx-runtime").JSX.Element;
@@ -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 InsertVideoIcon;
2
+ declare const InsertVideoIcon: 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 MovieIcon;
2
+ declare const MovieIcon: 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): import("react/jsx-runtime").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,11 @@
1
+ import { UserData } from 'lib/context';
2
+ export declare const checkIfAutomotive: (userData: UserData) => boolean;
3
+ export declare const checkIfAutomotiveServiceRole: (userData: UserData) => boolean;
4
+ export declare const checkIfAutomotiveSalesRole: (userData: UserData) => boolean;
5
+ export declare const getAutomotiveRoleValueFromLabel: (automotiveRoleLabel: string) => string;
6
+ export declare const checkIfVideoRequestFieldsRequired: (userData: UserData) => boolean;
7
+ export declare const validateAutomotiveFields: (userData: UserData, data: any) => boolean;
8
+ export declare const checkIfIMSEnabled: (userData: UserData) => boolean;
9
+ export declare const checkIfVdpEnabled: (userData: UserData) => boolean;
10
+ export declare const checkIfVdpAllowed: (userData: UserData) => boolean;
11
+ export declare const getAutomotiveRoleAsString: (automotiveRole: number) => string;
@@ -0,0 +1,18 @@
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 {};
@@ -0,0 +1,3 @@
1
+ export declare function isObject(item: any): any;
2
+ export declare function mergeDeep(target: any, ...sources: any): object;
3
+ export declare function anyInMap(arr: any[], map: Map<any, any>, id?: string): boolean;