react-covideo-embed 1.0.18 → 1.0.20

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 (99) hide show
  1. package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +3 -3
  2. package/build/app/pages/recordv1/ChooseRecordingOptions.d.ts +10 -0
  3. package/build/app/pages/recordv1/Countdown.d.ts +9 -0
  4. package/build/app/pages/recordv1/DroplrFilesTabContent.d.ts +8 -0
  5. package/build/app/pages/recordv1/FolderDropdown.d.ts +17 -0
  6. package/build/app/pages/recordv1/ModalRecordingVideoSettings.d.ts +5 -0
  7. package/build/app/pages/recordv1/ModalTeleprompterRecord.d.ts +8 -0
  8. package/build/app/pages/recordv1/ModalVideoTags.d.ts +2 -0
  9. package/build/app/pages/recordv1/ProgressCircle.d.ts +8 -0
  10. package/build/app/pages/recordv1/RecordBoth.d.ts +9 -0
  11. package/build/app/pages/recordv1/RecordCam.d.ts +9 -0
  12. package/build/app/pages/recordv1/RecordCamLoader.d.ts +3 -0
  13. package/build/app/pages/recordv1/RecordHome.d.ts +1 -0
  14. package/build/app/pages/recordv1/RecorderBody.d.ts +11 -0
  15. package/build/app/pages/recordv1/RecordingHeadingWithRouteGuard.d.ts +9 -0
  16. package/build/app/pages/recordv1/ScreenRecorder.d.ts +9 -0
  17. package/build/app/pages/recordv1/Scroller.d.ts +6 -0
  18. package/build/app/pages/recordv1/Teleprompter/BaseTeleprompterActions.d.ts +6 -0
  19. package/build/app/pages/recordv1/Teleprompter/RecordingTeleprompterActions.d.ts +1 -0
  20. package/build/app/pages/recordv1/Teleprompter/TeleprompterActions.d.ts +6 -0
  21. package/build/app/pages/recordv1/Teleprompter/TeleprompterDisplay.d.ts +6 -0
  22. package/build/app/pages/recordv1/UploadLoader.d.ts +17 -0
  23. package/build/app/pages/recordv1/VideoRecorderActions.d.ts +13 -0
  24. package/build/app/pages/recordv1/VideoTag.d.ts +1 -0
  25. package/build/app/pages/recordv1/VideoUploadFolderDropdown.d.ts +25 -0
  26. package/build/app/pages/recordv1/VirtualBackgroundsButton.d.ts +14 -0
  27. package/build/app/pages/recordv1/detailsPreview/DetailsPreview.d.ts +2 -0
  28. package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewAtrributesHeader.d.ts +1 -0
  29. package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewHeader.d.ts +7 -0
  30. package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewVideoAttributes.d.ts +1 -0
  31. package/build/app/pages/recordv1/detailsPreview/form/DetailsRecordPreviewTags.d.ts +1 -0
  32. package/build/app/pages/recordv1/detailsPreview/form/VideoRequestDetails.d.ts +14 -0
  33. package/build/app/pages/recordv1/detailsPreview/types.d.ts +61 -0
  34. package/build/app/pages/recordv1/routes.d.ts +1 -0
  35. package/build/app/pages/recordv1/types.d.ts +110 -0
  36. package/build/app/pages/recordv1/useImageSegmenter.d.ts +10 -0
  37. package/build/app/pages/recordv1/useRecorder.d.ts +26 -0
  38. package/build/app/pages/recordv1/useRecorderCountdown.d.ts +5 -0
  39. package/build/app/pages/recordv1/useRecordingTime.d.ts +5 -0
  40. package/build/app/pages/recordv1/useVideoRecorderUpload.d.ts +29 -0
  41. package/build/app/pages/recordv1/utils/browserChecks.d.ts +3 -0
  42. package/build/app/pages/recordv1/utils/functions.d.ts +32 -0
  43. package/build/app/pages/recordv1/utils/media.d.ts +13 -0
  44. package/build/app/pages/recordv1/utils/recorderSettings.d.ts +6 -0
  45. package/build/app/pages/recordv1/utils/virtualBackgrounds.d.ts +4 -0
  46. package/build/app/pages/recordv1/virtualBackgrounds/FilesTabContent.d.ts +8 -0
  47. package/build/app/pages/recordv1/virtualBackgrounds/VirtualBackgroundLibraryModal.d.ts +7 -0
  48. package/build/app/pages/recordv1/virtualBackgrounds/VirtualBackgrounds.d.ts +12 -0
  49. package/build/app/pages/recordv1/webgl/webglUtils.d.ts +14 -0
  50. package/build/index.js +213 -332
  51. package/build/index.js.LICENSE.txt +865 -0
  52. package/build/lib/api/aws/useAwsSignedUrlQuery.d.ts +11 -0
  53. package/build/lib/api/aws/useS3UploadMutation.d.ts +87 -0
  54. package/build/lib/api/customVirtualBackground/customVirtualBackgroundKeys.d.ts +3 -0
  55. package/build/lib/api/customVirtualBackground/useCustomVirtualBackgroundQuery.d.ts +11 -0
  56. package/build/lib/api/droplr/droplrAuth.d.ts +13 -0
  57. package/build/lib/api/droplr/getBoards.d.ts +7 -0
  58. package/build/lib/api/droplr/getDrop.d.ts +6 -0
  59. package/build/lib/api/droplr/getDrops.d.ts +40 -0
  60. package/build/lib/api/droplr/queryKeys.d.ts +12 -0
  61. package/build/lib/api/droplr/types.d.ts +136 -0
  62. package/build/lib/api/droplr/uploadDrop.d.ts +1 -0
  63. package/build/lib/api/folders/foldersKeys.d.ts +3 -0
  64. package/build/lib/api/folders/getFolders.d.ts +15 -0
  65. package/build/lib/api/folders/types.d.ts +4 -0
  66. package/build/lib/api/teleprompterApi.d.ts +16 -0
  67. package/build/lib/api/types.d.ts +14 -0
  68. package/build/lib/api/users/automotive/queryKeys.d.ts +4 -0
  69. package/build/lib/api/users/automotive/useUsersByAutomotiveRolesQuery.d.ts +25 -0
  70. package/build/lib/api/videoAttributes/useGetAllVideoAttributesQuery.d.ts +7 -0
  71. package/build/lib/api/videoAttributes/videoAttributesKeys.d.ts +5 -0
  72. package/build/lib/api/videos/useCreateVideoMutation.d.ts +118 -0
  73. package/build/lib/api/videos/useEncodeVideoMutation.d.ts +90 -0
  74. package/build/lib/api/voiceOverApi.d.ts +15 -1
  75. package/build/lib/components/ButtonSwitch.d.ts +15 -0
  76. package/build/lib/components/Dropdown.d.ts +2 -1
  77. package/build/lib/components/NewDropdown.d.ts +95 -0
  78. package/build/lib/components/NewTextInput.d.ts +1 -0
  79. package/build/lib/components/Search.d.ts +19 -0
  80. package/build/lib/components/formik/FormikDropdown.d.ts +12 -0
  81. package/build/lib/components/formik/FormikErrorMessage.d.ts +4 -0
  82. package/build/lib/components/formik/FormikInputField.d.ts +8 -0
  83. package/build/lib/components/formik/FormikLabel.d.ts +8 -0
  84. package/build/lib/components/formik/FormikTextAreaField.d.ts +8 -0
  85. package/build/lib/components/index.d.ts +2 -0
  86. package/build/lib/components/styles/layout.d.ts +33 -0
  87. package/build/lib/components/styles/typography.d.ts +44 -0
  88. package/build/lib/context/AuthorizationContext.d.ts +1 -0
  89. package/build/lib/context/record/functions.d.ts +2 -0
  90. package/build/lib/context/record/provider.d.ts +27 -0
  91. package/build/lib/context/record/types.d.ts +32 -0
  92. package/build/lib/context/teleprompter/provider.d.ts +37 -0
  93. package/build/lib/context/teleprompter/types.d.ts +12 -0
  94. package/build/lib/images/VirtualBgIcon.d.ts +2 -0
  95. package/build/lib/style/theme.d.ts +7 -0
  96. package/build/lib/utils/productFeature.d.ts +9 -0
  97. package/images.d.ts +4 -0
  98. package/package.json +17 -5
  99. package/yup.d.ts +1 -0
@@ -1,9 +1,9 @@
1
1
  import { InventoryItem } from 'lib/context';
2
2
  type Props = {
3
3
  onChangeVehicle: (item: InventoryItem) => void;
4
- handleChangeVehicleButtonPress: () => void;
5
- handleRemoveVehicleButtonPress: () => void;
6
- setAddingVehicle: Function;
4
+ handleChangeVehicleButtonPress?: () => void;
5
+ handleRemoveVehicleButtonPress?: () => void;
6
+ setAddingVehicle?: Function;
7
7
  selectedVin?: string;
8
8
  placeholder?: string;
9
9
  fetchSold?: boolean;
@@ -0,0 +1,10 @@
1
+ export declare const ChooseRecordingOptions: ({ extendStyles, showHelpDesk, showPreview, onStartUpladingVoiceOverHandler, showLegacyRecorderSwitch, }: {
2
+ extendStyles?: {
3
+ mainRecordContentWrapper?: import("react").CSSProperties | undefined;
4
+ showRecorderWrapper?: import("react").CSSProperties | undefined;
5
+ } | undefined;
6
+ showHelpDesk: boolean;
7
+ showPreview?: boolean | undefined;
8
+ onStartUpladingVoiceOverHandler?: ((blob: Blob) => void) | undefined;
9
+ showLegacyRecorderSwitch: boolean;
10
+ }) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface IProps {
2
+ hide: boolean;
3
+ onClick?: () => void;
4
+ isFreemium?: boolean;
5
+ willStart: boolean;
6
+ counter: number;
7
+ }
8
+ export declare const CountDown: ({ counter, willStart, onClick, hide, isFreemium, }: IProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ selectedFile?: any;
3
+ handleModalClose: () => void;
4
+ onSelect: any;
5
+ selectedVirtualBackgroundUrl: string;
6
+ };
7
+ export declare const DroplrFilesTabContent: (props: Props) => JSX.Element;
8
+ export {};
@@ -0,0 +1,17 @@
1
+ export declare const FOLDER_GROUP_LABEL: {
2
+ MY_FOLDERS: string;
3
+ SHARED_WITH_ME: string;
4
+ };
5
+ type Option = {
6
+ value: string | number;
7
+ label: string | number;
8
+ isFolderShared?: boolean;
9
+ access?: boolean | string;
10
+ };
11
+ type Props = {
12
+ value: Option;
13
+ options: Array<Option>;
14
+ onChange: (value: any, actionMeta?: any) => void;
15
+ };
16
+ export declare const FolderDropdown: (props: Props) => JSX.Element;
17
+ export {};
@@ -0,0 +1,5 @@
1
+ interface IProps {
2
+ handleModalClose: () => void;
3
+ }
4
+ export declare const ModalRecordingVideosSettings: ({ handleModalClose }: IProps) => JSX.Element;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ITeleprompterSettings } from 'lib/context/teleprompter/types';
2
+ type Props = {
3
+ handleModalClose: (shouldRefresh?: boolean) => void;
4
+ handleSubmit?: (data?: any) => void;
5
+ settings: ITeleprompterSettings | null;
6
+ };
7
+ export declare const ModalTeleprompterRecord: ({ handleModalClose, handleSubmit, settings, }: Props) => JSX.Element;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const TAG_LIMIT = 50;
2
+ export declare const ModalVideoTags: ({ videoTags, handleModalClose, onSubmit, title, buttonTitle, }: any) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const ProgressCircle: ({ progress, progressType, }: {
2
+ progress: {
3
+ loaded: number;
4
+ total: number;
5
+ percentage: number;
6
+ };
7
+ progressType: string;
8
+ }) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface IRecordBothProps {
2
+ screenStream: MediaStream;
3
+ stopAllStreams: () => void;
4
+ handleGoToRecordHome: () => void;
5
+ showPreview?: boolean;
6
+ onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
7
+ }
8
+ export declare const RecordBoth: ({ screenStream, stopAllStreams, handleGoToRecordHome, showPreview, onStartUpladingVoiceOverHandler, }: IRecordBothProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ interface ScreenRecorderProps {
2
+ screenStream: MediaStream;
3
+ stopAllStreams: () => void;
4
+ handleGoToRecordHome: () => void;
5
+ showPreview?: boolean;
6
+ onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
7
+ }
8
+ export declare const RecordCam: ({ screenStream, stopAllStreams, handleGoToRecordHome, showPreview, onStartUpladingVoiceOverHandler, }: ScreenRecorderProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const RecordCamLoader: ({ text }: {
2
+ text: string;
3
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const RecordHome: () => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { RECORDING_STATUS } from './types';
3
+ interface RecorderBodyProps {
4
+ countdown: number;
5
+ videoRef: React.RefObject<HTMLVideoElement>;
6
+ canvasRef?: React.RefObject<HTMLCanvasElement>;
7
+ teleprompter?: React.ReactNode;
8
+ status: RECORDING_STATUS;
9
+ }
10
+ export declare const RecorderBody: ({ countdown, videoRef, teleprompter, status, canvasRef, }: RecorderBodyProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { RECORDING_STATUS } from './types';
3
+ interface RecordingControlProps {
4
+ status: RECORDING_STATUS;
5
+ handleGoToRecordHome: () => void;
6
+ teleprompterActions?: React.ReactNode;
7
+ }
8
+ export declare const RecordingHeaderWithRouteGuard: ({ status, handleGoToRecordHome, teleprompterActions, }: RecordingControlProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ interface ScreenRecorderProps {
2
+ screenStream: MediaStream;
3
+ stopAllStreams: () => void;
4
+ handleGoToRecordHome: () => void;
5
+ showPreview?: boolean;
6
+ onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
7
+ }
8
+ export declare const ScreenRecorder: ({ screenStream, stopAllStreams, handleGoToRecordHome, showPreview, onStartUpladingVoiceOverHandler, }: ScreenRecorderProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ type ComponentProps = {
2
+ content: string;
3
+ fontSize: string;
4
+ };
5
+ export declare const Scroller: ({ content, fontSize }: ComponentProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { RECORDING_STATUS } from '../types';
2
+ interface TeleprompterProps {
3
+ status: RECORDING_STATUS;
4
+ }
5
+ export declare const BaseTeleprompterActions: ({ status }: TeleprompterProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const RecordingTeleprompterActions: () => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { RECORDING_STATUS } from '../types';
2
+ interface TeleprompterProps {
3
+ status: RECORDING_STATUS;
4
+ }
5
+ export declare const TeleprompterActions: ({ status }: TeleprompterProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { RECORDING_STATUS } from '../types';
2
+ interface TeleprompterProps {
3
+ status: RECORDING_STATUS;
4
+ }
5
+ export declare const TeleprompterDisplay: ({ status }: TeleprompterProps) => JSX.Element;
6
+ export default TeleprompterDisplay;
@@ -0,0 +1,17 @@
1
+ import { RECORD_LOADER_STATUS } from './types';
2
+ export declare const FlexCenter: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const ProgressContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const ContentBody: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ interface IProgress {
6
+ loaded: number;
7
+ total: number;
8
+ percentage: number;
9
+ }
10
+ interface IUploadLoaderProps {
11
+ progressState: RECORD_LOADER_STATUS;
12
+ uploadToS3Progress: IProgress;
13
+ createProgress: IProgress;
14
+ encodeProgress: IProgress;
15
+ }
16
+ export declare const UploadLoader: ({ progressState, uploadToS3Progress, createProgress, encodeProgress, }: IUploadLoaderProps) => JSX.Element;
17
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { RECORDING_STATUS } from './types';
3
+ interface VideoRecorderActionsProps {
4
+ status: RECORDING_STATUS;
5
+ timeInSeconds: number;
6
+ startCountDown: () => void;
7
+ stopCountDown: () => void;
8
+ pauseRecording: () => void;
9
+ stopRecording: () => void;
10
+ isLoadingVB?: boolean;
11
+ }
12
+ declare const VideoRecorderActions: React.FC<VideoRecorderActionsProps>;
13
+ export default VideoRecorderActions;
@@ -0,0 +1 @@
1
+ export declare const VideoTag: ({ tag, showRemove, onRemove, onClick, onMouseEnter, onMouseLeave, children, }: any) => JSX.Element;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ export type Option = {
3
+ value: string | number;
4
+ label: string | number;
5
+ isFolderShared?: boolean;
6
+ access?: boolean | string;
7
+ };
8
+ export declare const FOLDER_GROUP_LABEL: {
9
+ MY_FOLDERS: string;
10
+ SHARED_WITH_ME: string;
11
+ };
12
+ export declare const FOLDER_GROUP_VALUE: {
13
+ MY_FOLDERS: string;
14
+ SHARED_WITH_ME: string;
15
+ };
16
+ interface Props {
17
+ value: Option;
18
+ setValue: React.Dispatch<React.SetStateAction<Option>> | undefined;
19
+ showSharedWithMeFolders?: boolean;
20
+ showAllFolderOption?: boolean;
21
+ showLabel?: boolean;
22
+ width?: string;
23
+ }
24
+ declare const VideoUploadFolderDropdown: ({ value, setValue, showSharedWithMeFolders, showLabel, width, showAllFolderOption, }: Props) => JSX.Element;
25
+ export default VideoUploadFolderDropdown;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { RECORDING_STATUS, VirtualBackground } from './types';
3
+ interface IVirtualBackgroundButtonProps {
4
+ videoRef: React.RefObject<HTMLVideoElement>;
5
+ canvasRef: React.RefObject<HTMLCanvasElement>;
6
+ isSegmenterActive: boolean;
7
+ setIsSegmenterActive: React.Dispatch<React.SetStateAction<boolean>>;
8
+ status: RECORDING_STATUS;
9
+ initialImage: VirtualBackground;
10
+ setIsLoadingVB: React.Dispatch<React.SetStateAction<boolean>>;
11
+ isLoadingVb: boolean;
12
+ }
13
+ export declare const VirtualBackgroundsButton: ({ videoRef, canvasRef, isSegmenterActive, setIsSegmenterActive, status, initialImage, setIsLoadingVB, isLoadingVb, }: IVirtualBackgroundButtonProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ import { DetailsRecordingPreviewProps } from './types';
2
+ export declare const DetailsRecordingPreview: ({ videoBlob, handleGoToRecordHome, }: DetailsRecordingPreviewProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DetailsPreviewAttributesHeader: () => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IDetailsPreviewHeaderProps {
3
+ setContinueToSendShare: React.Dispatch<React.SetStateAction<boolean>>;
4
+ handleGoToRecordHome: () => void;
5
+ }
6
+ export declare const DetailsPreviewHeader: ({ setContinueToSendShare, handleGoToRecordHome, }: IDetailsPreviewHeaderProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare const DetailsPreviewVideoAttributes: () => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const DetailsRecordPreviewTags: () => JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { UseQueryResult } from 'react-query';
2
+ interface UsersByAutmotiveRolesResponse {
3
+ id: number;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ phone: string;
8
+ }
9
+ interface IVideoRequestDetailsProps {
10
+ fetchSoldVehiclesForAutomotive?: boolean;
11
+ results: UseQueryResult<UsersByAutmotiveRolesResponse[], unknown>[];
12
+ }
13
+ export declare const VideoRequestDetails: ({ fetchSoldVehiclesForAutomotive, results, }: IVideoRequestDetailsProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,61 @@
1
+ type VideoAttribute = {
2
+ value: any;
3
+ attributeId: number;
4
+ customerId: number;
5
+ departments: string[];
6
+ default?: string;
7
+ dropdownValues: Array<any>;
8
+ index: number;
9
+ isLocked: number;
10
+ isReadOnly: number;
11
+ isRequired: number;
12
+ slug: string;
13
+ title: string;
14
+ type: string;
15
+ };
16
+ export interface DetailsRecordingPreviewProps {
17
+ videoBlob: Blob;
18
+ handleGoToRecordHome: () => void;
19
+ }
20
+ export type FolderOption = {
21
+ value: string | number;
22
+ label: string | number;
23
+ isFolderShared?: boolean | undefined;
24
+ access?: string | boolean | undefined;
25
+ };
26
+ export type VideoTagOption = {
27
+ value: number;
28
+ label: string;
29
+ __isNew__?: boolean;
30
+ };
31
+ export interface DetailsPreviewRecordFormValues {
32
+ title: string;
33
+ folder: FolderOption;
34
+ videoTags: VideoTagOption[];
35
+ attributes: VideoAttribute[];
36
+ videoRequest?: {
37
+ customerName: string;
38
+ videoType: string;
39
+ vehicle: {
40
+ vin: string;
41
+ stockNumber: string;
42
+ };
43
+ advisorId: string;
44
+ repairOrderNumber: string;
45
+ note: string;
46
+ };
47
+ }
48
+ export declare enum AutomotiveRole {
49
+ NO_ROLE = "0",
50
+ TECHNICIAN = "1",
51
+ SERVICE_ADVISOR = "2",
52
+ SERVICE_MANAGER = "3",
53
+ SALESPERSON = "4",
54
+ SALES_MANAGER = "5",
55
+ BDC = "6"
56
+ }
57
+ export declare const automotiveRoleOptions: {
58
+ value: string;
59
+ label: string;
60
+ }[];
61
+ export {};
@@ -0,0 +1 @@
1
+ export declare const RecordingRoutes: () => JSX.Element;
@@ -0,0 +1,110 @@
1
+ export declare enum RECORDING_STATUS {
2
+ IDLE = "IDLE",
3
+ RECORDING = "RECORDING",
4
+ PAUSED = "PAUSED",
5
+ CAMERA_READY = "CAMERA_READY",
6
+ COUNTDOWN = "COUNTDOWN",
7
+ DONE = "DONE"
8
+ }
9
+ export declare enum RECORD_LOADER_STATUS {
10
+ UPLOADING = 1,
11
+ CREATE = 2,
12
+ ENCODE = 3,
13
+ UPLOAD_COMPLETED = 4,
14
+ ERROR = 5
15
+ }
16
+ export interface IVideoQuality {
17
+ width: {
18
+ ideal: number;
19
+ };
20
+ height: {
21
+ ideal: number;
22
+ };
23
+ }
24
+ export interface IVideoSettings extends IVideoQuality {
25
+ frameRate: number;
26
+ deviceId?: string | undefined;
27
+ }
28
+ export type VirtualBackgroundTypes = 'none' | 'default' | 'custom';
29
+ export type PrivacyTypes = 'PUBLIC' | 'PRIVATE' | 'TEAM';
30
+ export type VirtualBackground = {
31
+ url: string;
32
+ type: VirtualBackgroundTypes;
33
+ index: number;
34
+ privacy: PrivacyTypes;
35
+ id: string;
36
+ };
37
+ export type DropItem = {
38
+ id?: string;
39
+ code: string;
40
+ title: string;
41
+ previewMedium: string;
42
+ previewSmall: string;
43
+ type: string;
44
+ content: string;
45
+ boards?: string[];
46
+ tags?: string[];
47
+ shortlink?: string;
48
+ downloadable?: boolean;
49
+ cloneable?: boolean;
50
+ size: number;
51
+ views: number;
52
+ variant: string;
53
+ password?: string;
54
+ privacy?: string;
55
+ selected?: boolean;
56
+ createdAt?: number;
57
+ groupsAccessList?: Array<any>;
58
+ owner: number;
59
+ lastAccess: number;
60
+ };
61
+ export type ExtendedFile = {
62
+ name: string;
63
+ sizeText: string;
64
+ size: number;
65
+ currentUpload: number;
66
+ status: string;
67
+ progress: number;
68
+ type?: string;
69
+ };
70
+ type Access = {
71
+ accessRight: string;
72
+ email: string;
73
+ userId: string;
74
+ };
75
+ type Creator = {
76
+ email: string;
77
+ userId: string;
78
+ };
79
+ type GroupAccess = {
80
+ id: string;
81
+ };
82
+ export declare const statuses: {
83
+ WAITING: string;
84
+ UPLOADING: string;
85
+ CANCELING: string;
86
+ CANCELED: string;
87
+ FINISHED: string;
88
+ GENERATING_PREVIEW: string;
89
+ };
90
+ export interface DroplrBoard {
91
+ accessList: Access[];
92
+ creator?: Creator;
93
+ deleted?: boolean;
94
+ groupsAccessList: GroupAccess[];
95
+ id: string;
96
+ isPublic: boolean;
97
+ name: string;
98
+ password?: string;
99
+ poweredBy: boolean;
100
+ privacy: string;
101
+ shortlink?: string;
102
+ uploadPrivacy: string;
103
+ userStatus?: string;
104
+ }
105
+ export interface CombinedBoard extends DroplrBoard {
106
+ thumbnailUrl: string;
107
+ userId?: string;
108
+ customerId?: string;
109
+ }
110
+ export {};
@@ -0,0 +1,10 @@
1
+ export type WebGlState = {
2
+ gl: WebGL2RenderingContext | null;
3
+ program: WebGLProgram | null;
4
+ };
5
+ export declare const useImageSegmenter: (canvasRef: React.RefObject<HTMLCanvasElement>, videoRef: React.RefObject<HTMLVideoElement>, setIsLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
6
+ imageRef: import("react").MutableRefObject<HTMLImageElement | null>;
7
+ onDestroyVirtualBackgroundHandler: () => void;
8
+ getCavansBgImage: () => void;
9
+ onCreateVirtualBackgroundHandler: () => Promise<void>;
10
+ };
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { RECORDING_STATUS } from './types';
3
+ interface UseRecorderParams {
4
+ screenStream: MediaStream;
5
+ stopAllStreams?: () => void;
6
+ videoRef: React.RefObject<HTMLVideoElement>;
7
+ canvasRef?: React.RefObject<HTMLCanvasElement>;
8
+ isSegmenterActive?: boolean;
9
+ onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
10
+ shouldStartCountdown: boolean;
11
+ handleGoToRecordHome: () => void;
12
+ }
13
+ interface UseRecorderReturn {
14
+ startRecording: () => void;
15
+ stopRecording: () => void;
16
+ pauseRecording: () => void;
17
+ startCountDown: () => void;
18
+ stopCountDown: () => void;
19
+ status: RECORDING_STATUS;
20
+ recordedBlob: Blob | null;
21
+ countdown: number;
22
+ timeInSeconds: number;
23
+ setStatus: React.Dispatch<React.SetStateAction<RECORDING_STATUS>>;
24
+ }
25
+ declare const useRecorder: ({ screenStream, stopAllStreams, videoRef, canvasRef, isSegmenterActive, onStartUpladingVoiceOverHandler, shouldStartCountdown, handleGoToRecordHome, }: UseRecorderParams) => UseRecorderReturn;
26
+ export default useRecorder;
@@ -0,0 +1,5 @@
1
+ export declare const useCountdown: (initialCount: number) => {
2
+ countdown: number;
3
+ startRecordingCountdown: () => void;
4
+ stopRecordingCountdown: () => void;
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const useRecordingTime: () => {
2
+ timeInSeconds: number;
3
+ startRecordingTime: () => void;
4
+ stopRecordingTime: () => void;
5
+ };
@@ -0,0 +1,29 @@
1
+ import { DetailsPreviewRecordFormValues } from './detailsPreview/types';
2
+ import { RECORD_LOADER_STATUS } from './types';
3
+ interface IUseRecordUploadFormDataProps extends DetailsPreviewRecordFormValues {
4
+ file: File;
5
+ }
6
+ export declare const useVideoRecordUpload: ({ continueToSendShare, }: {
7
+ continueToSendShare: boolean;
8
+ }) => {
9
+ isError: {};
10
+ setRecordingFormData: import("react").Dispatch<import("react").SetStateAction<IUseRecordUploadFormDataProps | null>>;
11
+ isLoading: boolean;
12
+ progressState: RECORD_LOADER_STATUS;
13
+ uploadToS3Progress: {
14
+ loaded: number;
15
+ total: number;
16
+ percentage: number;
17
+ };
18
+ createProgress: {
19
+ loaded: number;
20
+ total: number;
21
+ percentage: number;
22
+ };
23
+ encodeProgress: {
24
+ loaded: number;
25
+ total: number;
26
+ percentage: number;
27
+ };
28
+ };
29
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const isSafari: boolean;
2
+ export declare const isOpera: boolean;
3
+ export declare const isFirefox: boolean;
@@ -0,0 +1,32 @@
1
+ import { ExtendedFile } from '../types';
2
+ declare enum PROMPT_USE_CASE {
3
+ INITIAL_REACH_OUT = "Initial Reach Out",
4
+ INITIAL_INQUIRY_REPLY = "Initial Inquiry Reply",
5
+ VEHICLE_WALKAROUND = "Vehicle Walkaround",
6
+ TEST_DRIVE_INVITATION = "Test Drive Invitation",
7
+ APPOINTMENT_REMINDER = "Appointment Reminder",
8
+ MISSED_APPOINTMENT = "Missed Appointment",
9
+ UNSOLD_FOLLOW_UP = "Unsold Follow Up",
10
+ EVENT_PROMOTION_ALERT = "Event & Promotion Alert",
11
+ POST_SALE_FOLLOW_UP = "Post-Sale Follow-Up",
12
+ REVIEW_REFERRAL_REQUEST = "Review or Referral Request",
13
+ SERVICE_MAINTENANCE_REMINDERS = "Service and Maintenance Reminders",
14
+ NONE = ""
15
+ }
16
+ export declare const decodeAndReplaceText: (value: string, isReplace?: boolean) => string;
17
+ export declare const getDefaultPromptUseCase: (isAutomotive: boolean) => PROMPT_USE_CASE;
18
+ export declare const sizeToSpeedRatioMedium: {
19
+ value: number;
20
+ label: string;
21
+ }[];
22
+ export declare const handleScriptSpeedUsingScriptSize: (ele: any) => {
23
+ value: number;
24
+ label: string;
25
+ }[];
26
+ export declare const formatBytes: (bytes: number, decimals?: number) => string;
27
+ export declare const addThousandCommaSeparator: (n: number, roundDecimal?: boolean) => string;
28
+ export declare const getStatusText: (status: string) => "Waiting…" | "Uploading…" | "Canceling…" | "Canceled" | "Generating Preview URL..." | "Finished";
29
+ export declare const getStatusColor: (status: string) => string;
30
+ export declare const getStatusSize: (file: ExtendedFile) => string;
31
+ export declare const getTitle: () => string;
32
+ export {};
@@ -0,0 +1,13 @@
1
+ import { IVideoSettings } from '../types';
2
+ export declare const handleScreenCapture: (displayMediaRef: React.MutableRefObject<MediaStream | null>, audioSettings: boolean | {
3
+ deviceId: string;
4
+ }, videoSettings: MediaTrackConstraints) => Promise<MediaStream>;
5
+ export declare const enableCamera: (audioSettings: boolean | {
6
+ deviceId: string;
7
+ }, videoSettings: IVideoSettings) => Promise<MediaStream>;
8
+ export declare const getScreenAndCameraStreams: (displayMediaRef: React.MutableRefObject<MediaStream | null>, cameraStreamRef: React.MutableRefObject<MediaStream | null>, audioSettings: boolean | {
9
+ deviceId: string;
10
+ }, videoSettings: IVideoSettings, videoCameraPipRef: React.RefObject<HTMLVideoElement>) => Promise<MediaStream>;
11
+ export declare const getSafariScreenAndCameraStreams: (displayMediaRef: React.MutableRefObject<MediaStream | null>, cameraStreamRef: React.MutableRefObject<MediaStream | null>, audioSettings: boolean | {
12
+ deviceId: string;
13
+ }, videoSettings: IVideoSettings, videoCameraPipRef: React.RefObject<HTMLVideoElement>) => Promise<MediaStream>;
@@ -0,0 +1,6 @@
1
+ import { IUserSettings } from 'lib/context/record/types';
2
+ import { IVideoSettings } from '../types';
3
+ export declare const getAudioSettings: (userSettings: IUserSettings) => false | {
4
+ deviceId: string;
5
+ };
6
+ export declare const getVideoSettings: (userSettings: IUserSettings) => IVideoSettings;
@@ -0,0 +1,4 @@
1
+ import { VirtualBackground } from '../types';
2
+ export declare const getVirtualBackgroundFromStorage: (id: string) => VirtualBackground;
3
+ export declare const getAllackgroundFromStorage: () => Record<string, VirtualBackground>;
4
+ export declare const saveVirtualBackgroundToStorage: (currentVirtualBackground: VirtualBackground, id: string) => void;
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ selectedFile?: any;
3
+ handleModalClose: () => void;
4
+ onSelect: any;
5
+ selectedVirtualBackgroundUrl: string;
6
+ };
7
+ export declare const FilesTabContent: (props: Props) => JSX.Element;
8
+ export {};