react-covideo-embed 0.1.6 → 0.1.8
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 +1 -0
- package/build/app/CovideoEmbed.d.ts +2 -1
- package/build/app/pages/video/components/Preview.d.ts +2 -1
- package/build/index.js +1 -1
- package/build/lib/components/PreviewVideoBar.d.ts +2 -1
- package/build/lib/context/ConfigurationContext.d.ts +1 -0
- package/build/lib/hooks/useVideoShareLink.d.ts +2 -5
- package/build/lib/utils/functions.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ Explore the capabilities of react-covideo-embed through our [Demo Project](https
|
|
|
53
53
|
- **Parameters**:
|
|
54
54
|
- `shareData`: Object containing the URL and HTML of the inserted video.
|
|
55
55
|
- `url`: `string` - The URL of the inserted video.
|
|
56
|
+
- `thumbnail`: `string` - The URL of the thumbnail of the inserted video.
|
|
56
57
|
- `html`: `string` - The HTML representation of the inserted video.
|
|
57
58
|
|
|
58
59
|
### `onVideoInsertError` (optional)
|
|
@@ -24,6 +24,7 @@ export declare enum Environment {
|
|
|
24
24
|
export type EnvironmentType = 'sandbox' | 'production';
|
|
25
25
|
export type ShareData = {
|
|
26
26
|
url: string;
|
|
27
|
+
thumbnail: string;
|
|
27
28
|
html: string;
|
|
28
29
|
};
|
|
29
30
|
export type CovideoEmbedProps = {
|
|
@@ -39,7 +40,7 @@ export type CovideoEmbedProps = {
|
|
|
39
40
|
hideFeatures?: Feature[] | FeatureType[];
|
|
40
41
|
/**
|
|
41
42
|
* Callback triggered when a video is inserted.
|
|
42
|
-
* @param shareData - Contains the
|
|
43
|
+
* @param shareData - Contains the video url, thumbnail url and HTML of the inserted video.
|
|
43
44
|
*/
|
|
44
45
|
onVideoInsert?: (shareData: ShareData) => void;
|
|
45
46
|
/**
|
|
@@ -7,6 +7,7 @@ type PreviewProps = {
|
|
|
7
7
|
skipUploadProcess?: boolean;
|
|
8
8
|
videoId?: string;
|
|
9
9
|
initialTitle?: string;
|
|
10
|
+
updateUploadLoading?: (val: boolean) => void;
|
|
10
11
|
};
|
|
11
|
-
declare const Preview: ({ recordingBlobUrl, recordDate, setSaveFunction, insertAfterSave, setIsSaveDisabled, skipUploadProcess, videoId, initialTitle, }: PreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const Preview: ({ recordingBlobUrl, recordDate, setSaveFunction, insertAfterSave, setIsSaveDisabled, skipUploadProcess, videoId, initialTitle, updateUploadLoading, }: PreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default Preview;
|