react-covideo-embed 1.0.28-sandbox.0 → 1.0.28
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/README.md +2 -1
- package/build/app/pages/recordv1/RecordCam.d.ts +1 -3
- package/build/app/pages/recordv1/RecorderBody.d.ts +1 -2
- package/build/app/pages/recordv1/useRecorder.d.ts +1 -2
- package/build/app/pages/recordv1/utils/media.d.ts +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.js +104 -104
- package/build/lib/config.d.ts +1 -1
- package/build/lib/context/ConfigurationContext.d.ts +1 -0
- package/build/lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -58,7 +58,8 @@ Explore the capabilities of react-covideo-embed through our [Demo Project](https
|
|
|
58
58
|
- **Parameters**:
|
|
59
59
|
- `shareData`: Object containing the URL and HTML of the inserted video.
|
|
60
60
|
- `url`: `string` - The URL of the inserted video.
|
|
61
|
-
- `thumbnail`: `string` - The
|
|
61
|
+
- `thumbnail`: `string` - The HTML of the thumbnail of the inserted video.
|
|
62
|
+
- `image`: `string` - The URL of the thumbnail of the inserted video.
|
|
62
63
|
- `html`: `string` - The HTML representation of the inserted video.
|
|
63
64
|
- `token`: `string` - The auth token used to fetch the shareData.
|
|
64
65
|
|
|
@@ -4,8 +4,6 @@ interface ScreenRecorderProps {
|
|
|
4
4
|
handleGoToRecordHome: () => void;
|
|
5
5
|
showPreview?: boolean;
|
|
6
6
|
onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
|
|
7
|
-
toggleCamera: () => Promise<void>;
|
|
8
|
-
isCameraToggled: boolean;
|
|
9
7
|
}
|
|
10
|
-
export declare const RecordCam: ({ screenStream, stopAllStreams, handleGoToRecordHome, showPreview, onStartUpladingVoiceOverHandler,
|
|
8
|
+
export declare const RecordCam: ({ screenStream, stopAllStreams, handleGoToRecordHome, showPreview, onStartUpladingVoiceOverHandler, }: ScreenRecorderProps) => JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -6,7 +6,6 @@ interface RecorderBodyProps {
|
|
|
6
6
|
canvasRef?: React.RefObject<HTMLCanvasElement>;
|
|
7
7
|
teleprompter?: React.ReactNode;
|
|
8
8
|
status: RECORDING_STATUS;
|
|
9
|
-
toggleCamera?: () => void;
|
|
10
9
|
}
|
|
11
|
-
export declare const RecorderBody: ({ countdown, videoRef, teleprompter, status, canvasRef,
|
|
10
|
+
export declare const RecorderBody: ({ countdown, videoRef, teleprompter, status, canvasRef, }: RecorderBodyProps) => JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -9,7 +9,6 @@ interface UseRecorderParams {
|
|
|
9
9
|
onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
|
|
10
10
|
shouldStartCountdown: boolean;
|
|
11
11
|
handleGoToRecordHome: () => void;
|
|
12
|
-
isCameraToggled?: boolean;
|
|
13
12
|
}
|
|
14
13
|
interface UseRecorderReturn {
|
|
15
14
|
startRecording: () => void;
|
|
@@ -23,5 +22,5 @@ interface UseRecorderReturn {
|
|
|
23
22
|
timeInSeconds: number;
|
|
24
23
|
setStatus: React.Dispatch<React.SetStateAction<RECORDING_STATUS>>;
|
|
25
24
|
}
|
|
26
|
-
declare const useRecorder: ({ screenStream, stopAllStreams, videoRef, canvasRef, isSegmenterActive, onStartUpladingVoiceOverHandler, shouldStartCountdown, handleGoToRecordHome,
|
|
25
|
+
declare const useRecorder: ({ screenStream, stopAllStreams, videoRef, canvasRef, isSegmenterActive, onStartUpladingVoiceOverHandler, shouldStartCountdown, handleGoToRecordHome, }: UseRecorderParams) => UseRecorderReturn;
|
|
27
26
|
export default useRecorder;
|
|
@@ -4,7 +4,7 @@ export declare const handleScreenCapture: (displayMediaRef: React.MutableRefObje
|
|
|
4
4
|
}, videoSettings: MediaTrackConstraints) => Promise<MediaStream>;
|
|
5
5
|
export declare const enableCamera: (audioSettings: boolean | {
|
|
6
6
|
deviceId: string;
|
|
7
|
-
}, videoSettings: IVideoSettings
|
|
7
|
+
}, videoSettings: IVideoSettings) => Promise<MediaStream>;
|
|
8
8
|
export declare const getScreenAndCameraStreams: (displayMediaRef: React.MutableRefObject<MediaStream | null>, cameraStreamRef: React.MutableRefObject<MediaStream | null>, audioSettings: boolean | {
|
|
9
9
|
deviceId: string;
|
|
10
10
|
}, videoSettings: IVideoSettings, videoCameraPipRef: React.RefObject<HTMLVideoElement>) => Promise<MediaStream>;
|
package/build/index.d.ts
CHANGED
|
@@ -26,12 +26,14 @@ export type FeatureType = 'insert' | 'recordScreen' | 'recordBoth' | 'recordCam'
|
|
|
26
26
|
export declare enum Environment {
|
|
27
27
|
DEVELOPMENT = "development",
|
|
28
28
|
SANDBOX = "sandbox",
|
|
29
|
+
STAGING = "staging",
|
|
29
30
|
PRODUCTION = "production"
|
|
30
31
|
}
|
|
31
|
-
export type EnvironmentType = 'development' | 'sandbox' | 'production';
|
|
32
|
+
export type EnvironmentType = 'development' | 'sandbox' | 'staging' | 'production';
|
|
32
33
|
export type ShareData = {
|
|
33
34
|
url: string;
|
|
34
35
|
thumbnail: string;
|
|
36
|
+
image: string;
|
|
35
37
|
html: string;
|
|
36
38
|
token: string;
|
|
37
39
|
};
|