react-covideo-embed 0.1.9 → 0.1.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/build/index.d.ts CHANGED
@@ -1,4 +1,52 @@
1
- export { CovideoEmbed, Environment, Feature } from './app/CovideoEmbed';
2
- export type { CovideoEmbedProps, EnvironmentType, FeatureType, ShareData, } from './app/CovideoEmbed';
3
- import { CovideoEmbed } from './app/CovideoEmbed';
4
- export default CovideoEmbed;
1
+ /// <reference types="react" />
2
+ import './index.css';
3
+ export declare enum Feature {
4
+ UPLOAD = "upload",
5
+ FOLDER = "folder",
6
+ RECORD_SCREEN = "recordScreen",
7
+ MERGE = "merge",
8
+ RECORD_CAM = "recordCam",
9
+ WHEELS_TV = "wheelsTV",
10
+ RECORD_BOTH = "recordBoth",
11
+ TRIM = "trim",
12
+ INSERT = "insert",
13
+ LANDING_PAGE = "landingPage",
14
+ QUICKSHARE = "quickshare",
15
+ CTA = "CTA",
16
+ VOICEOVER = "voiceover",
17
+ REACTIONS = "reactions"
18
+ }
19
+ export type FeatureType = 'insert' | 'recordScreen' | 'recordBoth' | 'recordCam' | 'upload' | 'trim' | 'merge' | 'wheelsTV' | 'voiceover' | 'quickshare' | 'folder' | 'landingPage' | 'CTA' | 'reactions';
20
+ export declare enum Environment {
21
+ SANDBOX = "sandbox",
22
+ PRODUCTION = "production"
23
+ }
24
+ export type EnvironmentType = 'sandbox' | 'production';
25
+ export type ShareData = {
26
+ url: string;
27
+ thumbnail: string;
28
+ html: string;
29
+ };
30
+ export type CovideoEmbedProps = {
31
+ /**
32
+ * JWT token from Covideo.
33
+ * If provided, disables the module's login/logout pages.
34
+ * If not provided, users need to log in through the module's login page.
35
+ */
36
+ token?: string;
37
+ /** Which Covideo environment to target */
38
+ env?: Environment | EnvironmentType;
39
+ /** Which Covideo features to hide */
40
+ hideFeatures?: Feature[] | FeatureType[];
41
+ /**
42
+ * Callback triggered when a video is inserted.
43
+ * @param shareData - Contains the video url, thumbnail url and HTML of the inserted video.
44
+ */
45
+ onVideoInsert?: (shareData: ShareData) => void;
46
+ /**
47
+ * Callback triggered when there is an error inserting a video.
48
+ * @param error - The error occurred during video insert.
49
+ */
50
+ onVideoInsertError?: (error: unknown) => void;
51
+ };
52
+ export declare const CovideoEmbed: React.FC<CovideoEmbedProps>;