react-covideo-embed 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app/App.d.ts +3 -0
- package/build/app/pages/insertVideo/InsertVideo.d.ts +13 -0
- package/build/app/pages/insertVideo/components/CopyVideoButton.d.ts +13 -0
- package/build/app/pages/insertVideo/components/InsertButton.d.ts +13 -0
- package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +17 -0
- package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +13 -0
- package/build/app/pages/insertVideo/components/index.d.ts +2 -0
- package/build/app/pages/lesaTV/LesaTV.d.ts +1 -0
- package/build/app/pages/lesaTV/components/PageInfo.d.ts +7 -0
- package/build/app/pages/lesaTV/components/Search.d.ts +6 -0
- package/build/app/pages/lesaTV/components/index.d.ts +2 -0
- package/build/app/pages/library/Library.d.ts +5 -0
- package/build/app/pages/library/components/NoVideos.d.ts +6 -0
- package/build/app/pages/library/components/PageInfo.d.ts +7 -0
- package/build/app/pages/library/components/Search.d.ts +6 -0
- package/build/app/pages/library/components/UserDropdown.d.ts +6 -0
- package/build/app/pages/library/components/VideoItem.d.ts +9 -0
- package/build/app/pages/library/components/VideoItemThumbnail.d.ts +11 -0
- package/build/app/pages/library/components/const.d.ts +6 -0
- package/build/app/pages/library/components/index.d.ts +5 -0
- package/build/app/pages/login/Login.d.ts +5 -0
- package/build/app/pages/merge/Merge.d.ts +1 -0
- package/build/app/pages/merge/components/Player.d.ts +7 -0
- package/build/app/pages/merge/components/VideoMerge.d.ts +1 -0
- package/build/app/pages/merge/components/VideoRow.d.ts +1 -0
- package/build/app/pages/merge/components/VideoThumbnail.d.ts +1 -0
- package/build/app/pages/previewUpload/PreviewUpload.d.ts +2 -0
- package/build/app/pages/record/both/RecordBoth.d.ts +1 -0
- package/build/app/pages/record/both/main/Main.d.ts +1 -0
- package/build/app/pages/record/cam/RecordCam.d.ts +1 -0
- package/build/app/pages/record/cam/main/Main.d.ts +1 -0
- package/build/app/pages/record/home/RecordHome.d.ts +1 -0
- package/build/app/pages/record/screen/RecordScreen.d.ts +2 -0
- package/build/app/pages/record/screen/main/Main.d.ts +1 -0
- package/build/app/pages/video/Upload.d.ts +10 -0
- package/build/app/pages/video/components/Preview.d.ts +13 -0
- package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +29 -0
- package/build/app/pages/video/components/videoPlayer/components/index.d.ts +2 -0
- package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +15 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +7 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +9 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +19 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +13 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +7 -0
- package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +25 -0
- package/build/app/pages/video/components/videoPlayer/index.d.ts +1 -0
- package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +7 -0
- package/build/app/pages/voiceover/Voiceover.d.ts +1 -0
- package/build/app/pages/voiceover/components/AudioRecorder.d.ts +14 -0
- package/build/app/pages/voiceover/components/VideoPreview.d.ts +11 -0
- package/build/app/pages/voiceover/components/util.d.ts +1 -0
- package/build/app/pages/wheelsTV/WheelsTV.d.ts +1 -0
- package/build/app/pages/wheelsTV/components/PageInfo.d.ts +7 -0
- package/build/app/pages/wheelsTV/components/Search.d.ts +6 -0
- package/build/app/pages/wheelsTV/components/index.d.ts +2 -0
- package/build/index.d.ts +81 -0
- package/build/index.js +768 -0
- package/build/index.js.LICENSE.txt +81 -0
- package/build/lib/api/attributesApi.d.ts +8 -0
- package/build/lib/api/authApi.d.ts +11 -0
- package/build/lib/api/designApi.d.ts +86 -0
- package/build/lib/api/index.d.ts +9 -0
- package/build/lib/api/inventoryApi.d.ts +10 -0
- package/build/lib/api/lesa/lesaKeys.d.ts +6 -0
- package/build/lib/api/lesa/useLesaTvVideosQuery.d.ts +27 -0
- package/build/lib/api/lesa/useLesaVideosMutation.d.ts +8 -0
- package/build/lib/api/multilocation/getUserLocations.d.ts +12 -0
- package/build/lib/api/multilocation/locationKeys.d.ts +3 -0
- package/build/lib/api/multilocation/signIntoLocation.d.ts +10 -0
- package/build/lib/api/quckshareApi.d.ts +18 -0
- package/build/lib/api/types.d.ts +44 -0
- package/build/lib/api/videoRequestApi.d.ts +6 -0
- package/build/lib/api/videoTagsApi.d.ts +13 -0
- package/build/lib/api/videosApi.d.ts +64 -0
- package/build/lib/api/voiceOverApi.d.ts +20 -0
- package/build/lib/api/wtvApi.d.ts +34 -0
- package/build/lib/components/ButtonDropdown.d.ts +22 -0
- package/build/lib/components/CheckboxInput.d.ts +19 -0
- package/build/lib/components/CloseButton.d.ts +13 -0
- package/build/lib/components/Container.d.ts +9 -0
- package/build/lib/components/CountDown.d.ts +1 -0
- package/build/lib/components/DragAndDrop.d.ts +21 -0
- package/build/lib/components/Dropdown.d.ts +29 -0
- package/build/lib/components/HoverPopup.d.ts +15 -0
- package/build/lib/components/Input.d.ts +10 -0
- package/build/lib/components/Label.d.ts +6 -0
- package/build/lib/components/LoadingIndicator.d.ts +11 -0
- package/build/lib/components/Logo.d.ts +5 -0
- package/build/lib/components/MainWrapper.d.ts +6 -0
- package/build/lib/components/PreviewVideoBar.d.ts +8 -0
- package/build/lib/components/RouteLeavingGuard.d.ts +18 -0
- package/build/lib/components/Spinner.d.ts +6 -0
- package/build/lib/components/TopBar.d.ts +9 -0
- package/build/lib/components/index.d.ts +15 -0
- package/build/lib/components/inputs/RadioInput.d.ts +14 -0
- package/build/lib/components/modal/Modal.d.ts +13 -0
- package/build/lib/components/modal/ModalQuickShareMarkAsSent.d.ts +14 -0
- package/build/lib/components/modal/ModalRecordingSettings.d.ts +10 -0
- package/build/lib/components/modals/Modal.d.ts +14 -0
- package/build/lib/components/modals/ModalInputText.d.ts +11 -0
- package/build/lib/components/modals/ModalLeave.d.ts +15 -0
- package/build/lib/components/modals/ModalPrompt.d.ts +12 -0
- package/build/lib/components/modals/ModalUpload.d.ts +7 -0
- package/build/lib/components/modals/ModalVideoPreview.d.ts +7 -0
- package/build/lib/components/toast-notifications/ToastNotification.d.ts +5 -0
- package/build/lib/components/toast-notifications/index.d.ts +4 -0
- package/build/lib/components/videoUpload/MultipleUploadList.d.ts +8 -0
- package/build/lib/components/videoUpload/VideoUpload.d.ts +9 -0
- package/build/lib/components/videoUpload/styles.d.ts +11 -0
- package/build/lib/config.d.ts +22 -0
- package/build/lib/const/AutomotiveRole.d.ts +8 -0
- package/build/lib/const/Folder.d.ts +9 -0
- package/build/lib/const/MarkAsSentOptions.d.ts +14 -0
- package/build/lib/const/PackageName.d.ts +7 -0
- package/build/lib/const/VideoActivity.d.ts +16 -0
- package/build/lib/const/VideoEmailStatus.d.ts +7 -0
- package/build/lib/const/VideoStatus.d.ts +6 -0
- package/build/lib/const/VideoType.d.ts +15 -0
- package/build/lib/const/index.d.ts +5 -0
- package/build/lib/context/ActionDispatchContext.d.ts +4 -0
- package/build/lib/context/AuthorizationContext.d.ts +114 -0
- package/build/lib/context/ConfigurationContext.d.ts +52 -0
- package/build/lib/context/actionCreators.d.ts +37 -0
- package/build/lib/context/authReducer.d.ts +16 -0
- package/build/lib/context/index.d.ts +3 -0
- package/build/lib/context/types.d.ts +149 -0
- package/build/lib/hooks/index.d.ts +2 -0
- package/build/lib/hooks/query/inventoryItem/index.d.ts +1 -0
- package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +12 -0
- package/build/lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation.d.ts +28 -0
- package/build/lib/hooks/useCopyClipboard.d.ts +4 -0
- package/build/lib/hooks/useCreateVideo.d.ts +21 -0
- package/build/lib/hooks/useEncodeVideo.d.ts +16 -0
- package/build/lib/hooks/useImageLoadRetry.d.ts +10 -0
- package/build/lib/hooks/useMediaRecorder.d.ts +32 -0
- package/build/lib/hooks/usePresignedUrl.d.ts +16 -0
- package/build/lib/hooks/useQueryFetch.d.ts +16 -0
- package/build/lib/hooks/useQueryState.d.ts +22 -0
- package/build/lib/hooks/useS3Upload.d.ts +15 -0
- package/build/lib/hooks/useVideoLoadRetry.d.ts +12 -0
- package/build/lib/hooks/useVideoStore.d.ts +17 -0
- package/build/lib/hooks/useVideoTranscriptionStart.d.ts +9 -0
- package/build/lib/images/AccountIcon.d.ts +2 -0
- package/build/lib/images/AddIcon.d.ts +2 -0
- package/build/lib/images/CarIcon.d.ts +2 -0
- package/build/lib/images/CheckmarkIcon.d.ts +2 -0
- package/build/lib/images/CloseCircleIcon.d.ts +2 -0
- package/build/lib/images/CloseIcon.d.ts +2 -0
- package/build/lib/images/DeleteIcon.d.ts +2 -0
- package/build/lib/images/Drag.d.ts +2 -0
- package/build/lib/images/HashtagIcon.d.ts +2 -0
- package/build/lib/images/LaptopIcon.d.ts +2 -0
- package/build/lib/images/LogoCDS.d.ts +2 -0
- package/build/lib/images/LogoGeneral.d.ts +2 -0
- package/build/lib/images/SaveIcon.d.ts +2 -0
- package/build/lib/images/SettingsIcon.d.ts +2 -0
- package/build/lib/images/SmallLogoIcon.d.ts +2 -0
- package/build/lib/images/VectorIcon.d.ts +2 -0
- package/build/lib/images/VideoIcon.d.ts +2 -0
- package/build/lib/images/ZoomInIcon.d.ts +2 -0
- package/build/lib/images/ZoomOutIcon.d.ts +2 -0
- package/build/lib/images/pauseButton.d.ts +2 -0
- package/build/lib/images/playButton.d.ts +2 -0
- package/build/lib/images/volumeOff.d.ts +1 -0
- package/build/lib/style/index.d.ts +2 -0
- package/build/lib/style/theme.d.ts +121 -0
- package/build/lib/utils/UseOnClickOutside.d.ts +3 -0
- package/build/lib/utils/automotiveRolePermissionChecks.d.ts +7 -0
- package/build/lib/utils/functions.d.ts +22 -0
- package/build/lib/utils/reactions.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type PreviewProps = {
|
|
2
|
+
onSaveVideo: Function;
|
|
3
|
+
isSaveDisabled?: boolean;
|
|
4
|
+
setInsertAfterSave: (arg: boolean) => void;
|
|
5
|
+
uploadLoading: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const PreviewVideoBar: ({ onSaveVideo, isSaveDisabled, setInsertAfterSave, uploadLoading, }: PreviewProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Location } from 'history';
|
|
2
|
+
interface Props {
|
|
3
|
+
when?: boolean | undefined;
|
|
4
|
+
navigate?: (path: string) => void;
|
|
5
|
+
shouldBlockNavigation: (location: Location) => boolean;
|
|
6
|
+
onConfirm?: Function;
|
|
7
|
+
onDiscard?: Function;
|
|
8
|
+
onStay?: Function;
|
|
9
|
+
stay?: Boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
discardButtonText?: string;
|
|
13
|
+
confirmButtonText?: string;
|
|
14
|
+
showDiscardIcon?: boolean;
|
|
15
|
+
showSaveIcon?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const RouteLeavingGuard: ({ when, navigate, shouldBlockNavigation, onConfirm, onDiscard, onStay, stay, title, text, discardButtonText, confirmButtonText, showDiscardIcon, showSaveIcon, }: Props) => JSX.Element;
|
|
18
|
+
export default RouteLeavingGuard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
left?: React.ReactNode;
|
|
4
|
+
center?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
justify?: 'center' | 'space-between';
|
|
7
|
+
};
|
|
8
|
+
export declare const TopBar: ({ left, right, center }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Logo } from './Logo';
|
|
2
|
+
export { TopBar } from './TopBar';
|
|
3
|
+
export { Container } from './Container';
|
|
4
|
+
export { Input } from './Input';
|
|
5
|
+
export { ButtonDropdown } from './ButtonDropdown';
|
|
6
|
+
export { Spinner } from './Spinner';
|
|
7
|
+
export { LoadingIndicator } from './LoadingIndicator';
|
|
8
|
+
export { Dropdown } from './Dropdown';
|
|
9
|
+
export { CheckboxInput } from './CheckboxInput';
|
|
10
|
+
export { RadioInput } from './inputs/RadioInput';
|
|
11
|
+
export { Modal } from './modal/Modal';
|
|
12
|
+
export { CloseButton } from './CloseButton';
|
|
13
|
+
export { ModalRecordingSettings } from './modal/ModalRecordingSettings';
|
|
14
|
+
export { ToastNotificationsProvider, useToastNotifications, } from './toast-notifications';
|
|
15
|
+
export { MainWrapper } from './MainWrapper';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface RadioProps {
|
|
3
|
+
name: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
text?: string | React.ReactNode;
|
|
6
|
+
removePadding?: boolean;
|
|
7
|
+
onChange?: (e?: any) => void;
|
|
8
|
+
checked?: any;
|
|
9
|
+
value: string | number | string[];
|
|
10
|
+
onClick?: (e?: any) => void;
|
|
11
|
+
checkedColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const RadioInput: (props: RadioProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
widthOnDesktop?: string | number;
|
|
5
|
+
disableFullScreen?: boolean;
|
|
6
|
+
style?: object;
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
overrideBodyHeight?: boolean;
|
|
9
|
+
bodyOverflowY?: string;
|
|
10
|
+
bodyOverflowX?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Modal: ({ style, children, widthOnDesktop, disableFullScreen, maxHeight, overrideBodyHeight, bodyOverflowY, bodyOverflowX, }: Props) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VideoShareSetData } from 'app/pages/insertVideo/InsertVideo';
|
|
2
|
+
import { IQuickShareMarkAsSentParams } from 'lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation';
|
|
3
|
+
type Props = {
|
|
4
|
+
handleModalClose: () => void;
|
|
5
|
+
quickShareMarkAsSentHandler: (params: Omit<IQuickShareMarkAsSentParams, 'videoId'>) => void;
|
|
6
|
+
isQuickShareLoading?: boolean;
|
|
7
|
+
markAsSentPayload: Omit<IQuickShareMarkAsSentParams, 'videoId' | 'markAsSentConfirmed'>;
|
|
8
|
+
getMarkAsSentPayload?: () => Promise<{
|
|
9
|
+
videoShareSetData: VideoShareSetData;
|
|
10
|
+
useAutomotive: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export declare const ModalQuickShareMarkAsSent: ({ handleModalClose, quickShareMarkAsSentHandler, isQuickShareLoading, markAsSentPayload, getMarkAsSentPayload, }: Props) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
text?: any;
|
|
5
|
+
handleModalClose: () => void;
|
|
6
|
+
handleSubmit: (data: object) => void;
|
|
7
|
+
initialSettings: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const ModalRecordingSettings: ({ disabled, handleModalClose, handleSubmit, initialSettings, }: Props) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
widthOnDesktop?: string | number;
|
|
5
|
+
disableFullScreen?: boolean;
|
|
6
|
+
style?: object;
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
overrideBodyHeight?: boolean;
|
|
9
|
+
bodyOverflowY?: string;
|
|
10
|
+
bodyOverflowX?: string;
|
|
11
|
+
onOutsideClick?: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const Modal: ({ style, children, widthOnDesktop, disableFullScreen, maxHeight, overrideBodyHeight, bodyOverflowY, bodyOverflowX, onOutsideClick, }: Props) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
label: string;
|
|
4
|
+
defaultValue: string;
|
|
5
|
+
secondaryButtonText: string;
|
|
6
|
+
primaryButtonText: string;
|
|
7
|
+
handleSubmit: (value: string) => void;
|
|
8
|
+
handleModalClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ModalInputText: ({ title, label, defaultValue, primaryButtonText, secondaryButtonText, handleModalClose, handleSubmit, }: Props) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
discardButtonText?: string;
|
|
6
|
+
confirmButtonText?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
showDiscardIcon?: boolean;
|
|
9
|
+
showSaveIcon?: boolean;
|
|
10
|
+
onClickDiscardButton: () => void;
|
|
11
|
+
onClickConfirmButton: () => void;
|
|
12
|
+
handleModalClose?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const ModalLeave: ({ open, disabled, title, text, discardButtonText, confirmButtonText, onClickDiscardButton, onClickConfirmButton, showDiscardIcon, showSaveIcon, handleModalClose, }: Props) => JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
secondaryButtonText: string;
|
|
6
|
+
primaryButtonText: string;
|
|
7
|
+
handleSubmit: any;
|
|
8
|
+
handleModalClose: () => void;
|
|
9
|
+
primaryButtonType?: 'danger' | 'default';
|
|
10
|
+
};
|
|
11
|
+
export declare const ModalPrompt: ({ title, content, primaryButtonText, secondaryButtonText, handleModalClose, handleSubmit, primaryButtonType, }: Props) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUploadingData } from './VideoUpload';
|
|
2
|
+
type MultipleUploadProps = {
|
|
3
|
+
progress: number;
|
|
4
|
+
uploadingData: IUploadingData;
|
|
5
|
+
setUploadingData: (arg: IUploadingData) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const MultipleUploadList: ({ progress, uploadingData, setUploadingData, }: MultipleUploadProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IUploadingData {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
type UploadProps = {
|
|
5
|
+
handleModalClose: () => void;
|
|
6
|
+
onSuccess: (data: number[]) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const VideoUpload: ({ handleModalClose, onSuccess }: UploadProps) => JSX.Element;
|
|
9
|
+
export default VideoUpload;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const ContentBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ContentFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const UploadFieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const FlexContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const Skill: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const ProgressData: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const ProgressContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const UploadData: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const UploadingHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const CancelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
export type ENVIRONMENT = 'development' | 'sandbox' | 'production';
|
|
3
|
+
export declare enum COOKIE_NAMES {
|
|
4
|
+
jwt = "react-covideo-embed-jwt",
|
|
5
|
+
merge = "react-covideo-merge",
|
|
6
|
+
recordSettings = "record_settings",
|
|
7
|
+
recordError = "react-covideo-record-error"
|
|
8
|
+
}
|
|
9
|
+
export declare let token: any;
|
|
10
|
+
export declare let apiExpress: string;
|
|
11
|
+
export declare let apiKey: string | undefined;
|
|
12
|
+
export declare const updateToken: (tokenNew: string, hasExternalJwt?: boolean) => void;
|
|
13
|
+
export declare const updateEnv: (env: ENVIRONMENT) => void;
|
|
14
|
+
export declare const updateApiKey: (key: string | undefined) => void;
|
|
15
|
+
export declare let options: {
|
|
16
|
+
headers: {
|
|
17
|
+
"React-Covideo-Embed-Version": string | undefined;
|
|
18
|
+
ApiKey?: string | undefined;
|
|
19
|
+
Authorization: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const EXPRESS_API: AxiosInstance;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum VIDE0_ACTIVITY_TYPE {
|
|
2
|
+
QUOTE_SEND = "Quote-Send",
|
|
3
|
+
OPENED_EMAIL = "Opened-Email",
|
|
4
|
+
WATCHED_VIDEO = "Watched-Video",
|
|
5
|
+
APPROVED_ITEMS = "Approved-Items",
|
|
6
|
+
UPDATE_QUOTE = "Update-Quote",
|
|
7
|
+
RECORDED_VIDEO = "Recorded-Video",
|
|
8
|
+
APPROVED_VIDEO = "Approved-Video",
|
|
9
|
+
DENIED_VIDEO = "Denied-Video",
|
|
10
|
+
DELETE_VIDEO = "Delete-Video",
|
|
11
|
+
QUOTE_RESEND = "Quote-Resend",
|
|
12
|
+
UPDATE_RO = "RO-Update",
|
|
13
|
+
QUICKSHARE = "Quickshare",
|
|
14
|
+
CRM_SHARE = "Crm-Share",
|
|
15
|
+
WATCHED_VIDEO_UNKNOWN = "WATCHED_VIDEO_UNKNOWN"
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum VideoTypeSales {
|
|
2
|
+
NoType = "",
|
|
3
|
+
Marketing = "Marketing",
|
|
4
|
+
Prospecting = "Prospecting",
|
|
5
|
+
RespondToInquiry = "Respond to Inquiry",
|
|
6
|
+
ThanksForYourBusiness = "Thanks For Your Business"
|
|
7
|
+
}
|
|
8
|
+
export declare enum VideoType {
|
|
9
|
+
NoType = "",
|
|
10
|
+
AdditionalRepair = "Additional Repair",
|
|
11
|
+
RepairInquiry = "Repair inquiry",
|
|
12
|
+
RegularService = "Regular service",
|
|
13
|
+
ServiceReminder = "Service reminder",
|
|
14
|
+
QuoteRequest = "Quote request"
|
|
15
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { GlobalAction } from './types';
|
|
3
|
+
interface Intercom {
|
|
4
|
+
app_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
user_id: number;
|
|
8
|
+
user_hash: string;
|
|
9
|
+
cv_user_id: number;
|
|
10
|
+
free_trial: boolean;
|
|
11
|
+
signup_date: string;
|
|
12
|
+
purchase_date: string;
|
|
13
|
+
customer_id: number;
|
|
14
|
+
customer_name: string;
|
|
15
|
+
reseller_id: number;
|
|
16
|
+
reseller_name: string;
|
|
17
|
+
auto: boolean;
|
|
18
|
+
admin: boolean;
|
|
19
|
+
resellerAdmin: boolean;
|
|
20
|
+
user_active: boolean;
|
|
21
|
+
last_active: string;
|
|
22
|
+
v1: boolean;
|
|
23
|
+
v2: boolean;
|
|
24
|
+
v3: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare enum VideoQualityType {
|
|
27
|
+
'FHD' = "1080",
|
|
28
|
+
'4K' = "4096"
|
|
29
|
+
}
|
|
30
|
+
declare enum VideoEditingType {
|
|
31
|
+
'Basic' = "Basic",
|
|
32
|
+
'Advanced' = "Advanced"
|
|
33
|
+
}
|
|
34
|
+
export interface PackageProduct {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
value?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface PackageDetails {
|
|
40
|
+
id: number;
|
|
41
|
+
stripePackageId: string;
|
|
42
|
+
products: {
|
|
43
|
+
[key: number]: PackageProduct;
|
|
44
|
+
};
|
|
45
|
+
maxVideosCreated: number;
|
|
46
|
+
monthlyVideos: number;
|
|
47
|
+
maxLength: number;
|
|
48
|
+
maxQuality: VideoQualityType;
|
|
49
|
+
editingType: VideoEditingType;
|
|
50
|
+
}
|
|
51
|
+
export interface UserData {
|
|
52
|
+
user?: any;
|
|
53
|
+
uid: string;
|
|
54
|
+
userId: string;
|
|
55
|
+
customerId: string;
|
|
56
|
+
resellerId: string;
|
|
57
|
+
firstName: string;
|
|
58
|
+
lastName: string;
|
|
59
|
+
eleadEnabled: boolean;
|
|
60
|
+
admin: boolean | string;
|
|
61
|
+
resellerAdmin: boolean | string;
|
|
62
|
+
trial: boolean;
|
|
63
|
+
notifyMe: boolean;
|
|
64
|
+
access: string;
|
|
65
|
+
verified: number;
|
|
66
|
+
captions: boolean;
|
|
67
|
+
vin: boolean;
|
|
68
|
+
iat: number;
|
|
69
|
+
exp: number;
|
|
70
|
+
intercom: Intercom;
|
|
71
|
+
showWelcome: boolean;
|
|
72
|
+
salesforceIntegration: boolean;
|
|
73
|
+
autoTranscribe: boolean;
|
|
74
|
+
wheelsTV: boolean;
|
|
75
|
+
webEmailEnabled: Boolean;
|
|
76
|
+
allowDelete: Boolean;
|
|
77
|
+
webShare: Boolean;
|
|
78
|
+
timeZone: string;
|
|
79
|
+
isCompanyAdmin: boolean;
|
|
80
|
+
reseller?: {
|
|
81
|
+
dealer: number;
|
|
82
|
+
customerId: string;
|
|
83
|
+
resellerReportingEnabled: number;
|
|
84
|
+
};
|
|
85
|
+
videoCount: number;
|
|
86
|
+
totalLogins: number;
|
|
87
|
+
droplrAccess: boolean;
|
|
88
|
+
affiliateAccess: boolean;
|
|
89
|
+
customer?: any;
|
|
90
|
+
email: string;
|
|
91
|
+
phone1: string;
|
|
92
|
+
onboarded?: boolean;
|
|
93
|
+
transcriptionAccess?: boolean;
|
|
94
|
+
playButtonPosition?: string;
|
|
95
|
+
signupDate?: string;
|
|
96
|
+
trialAccount: boolean;
|
|
97
|
+
automotiveRole: string;
|
|
98
|
+
vdpEnabled: boolean;
|
|
99
|
+
markVideosAsSent: number | null;
|
|
100
|
+
reactionsPreference: number | null;
|
|
101
|
+
}
|
|
102
|
+
export interface IContextProps {
|
|
103
|
+
userData: UserData;
|
|
104
|
+
jwt: string | undefined;
|
|
105
|
+
setJwt: (jwt: string | undefined) => void;
|
|
106
|
+
dispatch?: React.Dispatch<GlobalAction>;
|
|
107
|
+
}
|
|
108
|
+
type Props = {
|
|
109
|
+
initialUser?: any;
|
|
110
|
+
children: ReactNode;
|
|
111
|
+
};
|
|
112
|
+
export declare const AuthorizationContextProvider: ({ initialUser, children, }: Props) => JSX.Element;
|
|
113
|
+
export declare const useAuthorizationContext: () => IContextProps;
|
|
114
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ENVIRONMENT } from 'lib/config';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface ConfigurationProviderProps {
|
|
4
|
+
token?: string;
|
|
5
|
+
env?: ENVIRONMENT;
|
|
6
|
+
onVideoInsert?: (shareData: {
|
|
7
|
+
url: string;
|
|
8
|
+
thumbnail: string;
|
|
9
|
+
html: string;
|
|
10
|
+
token: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
onVideoInsertError?: (error: unknown) => void;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
hideFeatures?: string[];
|
|
15
|
+
apikey?: string;
|
|
16
|
+
onRecordButtonClick?: (data: {
|
|
17
|
+
token: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
onUploadButtonClick?: (data: {
|
|
20
|
+
token: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
reRender: () => void;
|
|
23
|
+
}
|
|
24
|
+
type ShowFeature = {
|
|
25
|
+
showInsertFeature: boolean;
|
|
26
|
+
showRecordScreenFeature: boolean;
|
|
27
|
+
showRecordBothFeature: boolean;
|
|
28
|
+
showRecordCamFeature: boolean;
|
|
29
|
+
showRecordFeature: boolean;
|
|
30
|
+
showUploadFeature: boolean;
|
|
31
|
+
showTrimFeature: boolean;
|
|
32
|
+
showMergeFeature: boolean;
|
|
33
|
+
showWheelsTVFeature: boolean;
|
|
34
|
+
showVoiceoverFeature: boolean;
|
|
35
|
+
showQuickshareFeature: boolean;
|
|
36
|
+
showFolderFeature: boolean;
|
|
37
|
+
showLandingPageFeature: boolean;
|
|
38
|
+
showCTAFeature: boolean;
|
|
39
|
+
showReactionsFeature: boolean;
|
|
40
|
+
showAiAssistFeature: boolean;
|
|
41
|
+
showUpgradeMessageFeature: boolean;
|
|
42
|
+
showLesaTVFeature: boolean;
|
|
43
|
+
showMultiLocationFeature: boolean;
|
|
44
|
+
};
|
|
45
|
+
type IConfigurationContext = ConfigurationProviderProps & ShowFeature & {
|
|
46
|
+
hasExternalJwt: boolean;
|
|
47
|
+
containerWidth: number;
|
|
48
|
+
containerHeight: number;
|
|
49
|
+
};
|
|
50
|
+
export declare const ConfigurationProvider: React.FC<ConfigurationProviderProps>;
|
|
51
|
+
export declare const useConfigurationContext: () => IConfigurationContext;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
interface ActionTypeRequest {
|
|
2
|
+
type: string;
|
|
3
|
+
meta?: any;
|
|
4
|
+
}
|
|
5
|
+
interface ActionTypeSuccess {
|
|
6
|
+
type: string;
|
|
7
|
+
payload?: any;
|
|
8
|
+
meta?: any;
|
|
9
|
+
}
|
|
10
|
+
interface ActionTypeFailure {
|
|
11
|
+
type: string;
|
|
12
|
+
payload?: any;
|
|
13
|
+
meta?: any;
|
|
14
|
+
error?: boolean | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ActionType {
|
|
17
|
+
type: string;
|
|
18
|
+
payload?: any;
|
|
19
|
+
meta?: any;
|
|
20
|
+
error?: boolean | null;
|
|
21
|
+
}
|
|
22
|
+
export declare const requestActionCreator: ({ type, meta }: ActionTypeRequest) => {
|
|
23
|
+
type: string;
|
|
24
|
+
meta: any;
|
|
25
|
+
};
|
|
26
|
+
export declare const successActionCreator: ({ type, payload, meta, }: ActionTypeSuccess) => {
|
|
27
|
+
type: string;
|
|
28
|
+
payload: any;
|
|
29
|
+
meta: any;
|
|
30
|
+
};
|
|
31
|
+
export declare const failureActionCreator: ({ type, payload, meta, error, }: ActionTypeFailure) => {
|
|
32
|
+
type: string;
|
|
33
|
+
payload: any;
|
|
34
|
+
meta: any;
|
|
35
|
+
error: boolean | null;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IContextProps } from './AuthorizationContext';
|
|
2
|
+
type GlobalAction = {
|
|
3
|
+
continueLoading?: boolean;
|
|
4
|
+
type: string;
|
|
5
|
+
payload?: any;
|
|
6
|
+
error?: string;
|
|
7
|
+
pathname?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const authReducer: (state: IContextProps, action: GlobalAction) => IContextProps;
|
|
10
|
+
export declare const AUTH_ACTIONS: {
|
|
11
|
+
JWT_DECODED: string;
|
|
12
|
+
GET_USER_START: string;
|
|
13
|
+
GET_USER_ERROR: string;
|
|
14
|
+
GET_USER_SUCCESS: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|