react-covideo-embed 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/build/app/App.d.ts +0 -3
- package/build/app/pages/insertVideo/InsertVideo.d.ts +0 -13
- package/build/app/pages/insertVideo/components/CopyVideoButton.d.ts +0 -13
- package/build/app/pages/insertVideo/components/InsertButton.d.ts +0 -13
- package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +0 -17
- package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +0 -13
- package/build/app/pages/insertVideo/components/index.d.ts +0 -2
- package/build/app/pages/lesaTV/LesaTV.d.ts +0 -1
- package/build/app/pages/lesaTV/components/PageInfo.d.ts +0 -7
- package/build/app/pages/lesaTV/components/Search.d.ts +0 -6
- package/build/app/pages/lesaTV/components/index.d.ts +0 -2
- package/build/app/pages/library/Library.d.ts +0 -5
- package/build/app/pages/library/components/NoVideos.d.ts +0 -6
- package/build/app/pages/library/components/PageInfo.d.ts +0 -7
- package/build/app/pages/library/components/Search.d.ts +0 -6
- package/build/app/pages/library/components/UserDropdown.d.ts +0 -6
- package/build/app/pages/library/components/VideoItem.d.ts +0 -9
- package/build/app/pages/library/components/VideoItemThumbnail.d.ts +0 -11
- package/build/app/pages/library/components/const.d.ts +0 -6
- package/build/app/pages/library/components/index.d.ts +0 -5
- package/build/app/pages/login/Login.d.ts +0 -5
- package/build/app/pages/merge/Merge.d.ts +0 -1
- package/build/app/pages/merge/components/Player.d.ts +0 -7
- package/build/app/pages/merge/components/VideoMerge.d.ts +0 -1
- package/build/app/pages/merge/components/VideoRow.d.ts +0 -1
- package/build/app/pages/merge/components/VideoThumbnail.d.ts +0 -1
- package/build/app/pages/previewUpload/PreviewUpload.d.ts +0 -2
- package/build/app/pages/record/both/RecordBoth.d.ts +0 -1
- package/build/app/pages/record/both/main/Main.d.ts +0 -1
- package/build/app/pages/record/cam/RecordCam.d.ts +0 -1
- package/build/app/pages/record/cam/main/Main.d.ts +0 -1
- package/build/app/pages/record/home/RecordHome.d.ts +0 -1
- package/build/app/pages/record/screen/RecordScreen.d.ts +0 -2
- package/build/app/pages/record/screen/main/Main.d.ts +0 -1
- package/build/app/pages/video/Upload.d.ts +0 -10
- package/build/app/pages/video/components/Preview.d.ts +0 -13
- package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +0 -29
- package/build/app/pages/video/components/videoPlayer/components/index.d.ts +0 -2
- package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +0 -10
- package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +0 -10
- package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +0 -15
- package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +0 -7
- package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +0 -9
- package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +0 -19
- package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +0 -10
- package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +0 -13
- package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +0 -7
- package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +0 -25
- package/build/app/pages/video/components/videoPlayer/index.d.ts +0 -1
- package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +0 -7
- package/build/app/pages/voiceover/Voiceover.d.ts +0 -1
- package/build/app/pages/voiceover/components/AudioRecorder.d.ts +0 -14
- package/build/app/pages/voiceover/components/VideoPreview.d.ts +0 -11
- package/build/app/pages/voiceover/components/util.d.ts +0 -1
- package/build/app/pages/wheelsTV/WheelsTV.d.ts +0 -1
- package/build/app/pages/wheelsTV/components/PageInfo.d.ts +0 -7
- package/build/app/pages/wheelsTV/components/Search.d.ts +0 -6
- package/build/app/pages/wheelsTV/components/index.d.ts +0 -2
- package/build/index.d.ts +0 -81
- package/build/index.js +0 -768
- package/build/index.js.LICENSE.txt +0 -81
- package/build/lib/api/attributesApi.d.ts +0 -8
- package/build/lib/api/authApi.d.ts +0 -11
- package/build/lib/api/designApi.d.ts +0 -86
- package/build/lib/api/index.d.ts +0 -9
- package/build/lib/api/inventoryApi.d.ts +0 -10
- package/build/lib/api/lesa/lesaKeys.d.ts +0 -6
- package/build/lib/api/lesa/useLesaTvVideosQuery.d.ts +0 -27
- package/build/lib/api/lesa/useLesaVideosMutation.d.ts +0 -8
- package/build/lib/api/multilocation/getUserLocations.d.ts +0 -12
- package/build/lib/api/multilocation/locationKeys.d.ts +0 -3
- package/build/lib/api/multilocation/signIntoLocation.d.ts +0 -10
- package/build/lib/api/quckshareApi.d.ts +0 -18
- package/build/lib/api/types.d.ts +0 -44
- package/build/lib/api/videoRequestApi.d.ts +0 -6
- package/build/lib/api/videoTagsApi.d.ts +0 -13
- package/build/lib/api/videosApi.d.ts +0 -64
- package/build/lib/api/voiceOverApi.d.ts +0 -20
- package/build/lib/api/wtvApi.d.ts +0 -34
- package/build/lib/components/ButtonDropdown.d.ts +0 -22
- package/build/lib/components/CheckboxInput.d.ts +0 -19
- package/build/lib/components/CloseButton.d.ts +0 -13
- package/build/lib/components/Container.d.ts +0 -9
- package/build/lib/components/CountDown.d.ts +0 -1
- package/build/lib/components/DragAndDrop.d.ts +0 -21
- package/build/lib/components/Dropdown.d.ts +0 -29
- package/build/lib/components/HoverPopup.d.ts +0 -15
- package/build/lib/components/Input.d.ts +0 -10
- package/build/lib/components/Label.d.ts +0 -6
- package/build/lib/components/LoadingIndicator.d.ts +0 -11
- package/build/lib/components/Logo.d.ts +0 -5
- package/build/lib/components/MainWrapper.d.ts +0 -6
- package/build/lib/components/PreviewVideoBar.d.ts +0 -8
- package/build/lib/components/RouteLeavingGuard.d.ts +0 -18
- package/build/lib/components/Spinner.d.ts +0 -6
- package/build/lib/components/TopBar.d.ts +0 -9
- package/build/lib/components/index.d.ts +0 -15
- package/build/lib/components/inputs/RadioInput.d.ts +0 -14
- package/build/lib/components/modal/Modal.d.ts +0 -13
- package/build/lib/components/modal/ModalQuickShareMarkAsSent.d.ts +0 -14
- package/build/lib/components/modal/ModalRecordingSettings.d.ts +0 -10
- package/build/lib/components/modals/Modal.d.ts +0 -14
- package/build/lib/components/modals/ModalInputText.d.ts +0 -11
- package/build/lib/components/modals/ModalLeave.d.ts +0 -15
- package/build/lib/components/modals/ModalPrompt.d.ts +0 -12
- package/build/lib/components/modals/ModalUpload.d.ts +0 -7
- package/build/lib/components/modals/ModalVideoPreview.d.ts +0 -7
- package/build/lib/components/toast-notifications/ToastNotification.d.ts +0 -5
- package/build/lib/components/toast-notifications/index.d.ts +0 -4
- package/build/lib/components/videoUpload/MultipleUploadList.d.ts +0 -8
- package/build/lib/components/videoUpload/VideoUpload.d.ts +0 -9
- package/build/lib/components/videoUpload/styles.d.ts +0 -11
- package/build/lib/config.d.ts +0 -22
- package/build/lib/const/AutomotiveRole.d.ts +0 -8
- package/build/lib/const/Folder.d.ts +0 -9
- package/build/lib/const/MarkAsSentOptions.d.ts +0 -14
- package/build/lib/const/PackageName.d.ts +0 -7
- package/build/lib/const/VideoActivity.d.ts +0 -16
- package/build/lib/const/VideoEmailStatus.d.ts +0 -7
- package/build/lib/const/VideoStatus.d.ts +0 -6
- package/build/lib/const/VideoType.d.ts +0 -15
- package/build/lib/const/index.d.ts +0 -5
- package/build/lib/context/ActionDispatchContext.d.ts +0 -4
- package/build/lib/context/AuthorizationContext.d.ts +0 -115
- package/build/lib/context/ConfigurationContext.d.ts +0 -52
- package/build/lib/context/actionCreators.d.ts +0 -37
- package/build/lib/context/authHandlers.d.ts +0 -2
- package/build/lib/context/authReducer.d.ts +0 -16
- package/build/lib/context/index.d.ts +0 -4
- package/build/lib/context/types.d.ts +0 -149
- package/build/lib/hooks/index.d.ts +0 -2
- package/build/lib/hooks/query/inventoryItem/index.d.ts +0 -1
- package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +0 -12
- package/build/lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation.d.ts +0 -28
- package/build/lib/hooks/useCopyClipboard.d.ts +0 -4
- package/build/lib/hooks/useCreateVideo.d.ts +0 -21
- package/build/lib/hooks/useEncodeVideo.d.ts +0 -16
- package/build/lib/hooks/useImageLoadRetry.d.ts +0 -10
- package/build/lib/hooks/useMediaRecorder.d.ts +0 -32
- package/build/lib/hooks/usePresignedUrl.d.ts +0 -16
- package/build/lib/hooks/useQueryFetch.d.ts +0 -16
- package/build/lib/hooks/useQueryState.d.ts +0 -22
- package/build/lib/hooks/useS3Upload.d.ts +0 -15
- package/build/lib/hooks/useVideoLoadRetry.d.ts +0 -12
- package/build/lib/hooks/useVideoStore.d.ts +0 -17
- package/build/lib/hooks/useVideoTranscriptionStart.d.ts +0 -9
- package/build/lib/images/AccountIcon.d.ts +0 -2
- package/build/lib/images/AddIcon.d.ts +0 -2
- package/build/lib/images/CarIcon.d.ts +0 -2
- package/build/lib/images/CheckmarkIcon.d.ts +0 -2
- package/build/lib/images/CloseCircleIcon.d.ts +0 -2
- package/build/lib/images/CloseIcon.d.ts +0 -2
- package/build/lib/images/DeleteIcon.d.ts +0 -2
- package/build/lib/images/Drag.d.ts +0 -2
- package/build/lib/images/HashtagIcon.d.ts +0 -2
- package/build/lib/images/LaptopIcon.d.ts +0 -2
- package/build/lib/images/LogoCDS.d.ts +0 -2
- package/build/lib/images/LogoGeneral.d.ts +0 -2
- package/build/lib/images/SaveIcon.d.ts +0 -2
- package/build/lib/images/SettingsIcon.d.ts +0 -2
- package/build/lib/images/SmallLogoIcon.d.ts +0 -2
- package/build/lib/images/VectorIcon.d.ts +0 -2
- package/build/lib/images/VideoIcon.d.ts +0 -2
- package/build/lib/images/ZoomInIcon.d.ts +0 -2
- package/build/lib/images/ZoomOutIcon.d.ts +0 -2
- package/build/lib/images/pauseButton.d.ts +0 -2
- package/build/lib/images/playButton.d.ts +0 -2
- package/build/lib/images/volumeOff.d.ts +0 -1
- package/build/lib/style/index.d.ts +0 -2
- package/build/lib/style/theme.d.ts +0 -121
- package/build/lib/utils/UseOnClickOutside.d.ts +0 -3
- package/build/lib/utils/automotiveRolePermissionChecks.d.ts +0 -7
- package/build/lib/utils/functions.d.ts +0 -22
- package/build/lib/utils/reactions.d.ts +0 -3
|
@@ -1,149 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useGetInventoryItems';
|
|
@@ -1,12 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,28 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,32 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function VolumeOffIcon(props: any): JSX.Element;
|
|
@@ -1,121 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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 {};
|