react-covideo-embed 1.0.82-test.1 → 1.0.82-test.2

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.
@@ -1,4 +1,4 @@
1
- export declare const ChooseRecordingOptions: ({ extendStyles, showPreview, onStartUpladingVoiceOverHandler, autoStartCam, }: {
1
+ export declare const ChooseRecordingOptions: ({ extendStyles, showPreview, onStartUpladingVoiceOverHandler, }: {
2
2
  extendStyles?: {
3
3
  mainRecordContentWrapper?: React.CSSProperties;
4
4
  showRecorderWrapper?: React.CSSProperties;
@@ -7,5 +7,4 @@ export declare const ChooseRecordingOptions: ({ extendStyles, showPreview, onSta
7
7
  showPreview?: boolean;
8
8
  onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
9
9
  showLegacyRecorderSwitch: boolean;
10
- autoStartCam?: boolean;
11
10
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  interface IProps {
2
2
  handleModalClose: () => void;
3
- onSave?: () => void;
4
3
  }
5
- export declare const ModalRecordingVideosSettings: ({ handleModalClose, onSave, }: IProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ModalRecordingVideosSettings: ({ handleModalClose }: IProps) => import("react/jsx-runtime").JSX.Element;
6
5
  export {};
@@ -2,12 +2,10 @@ interface ScreenRecorderProps {
2
2
  screenStream: MediaStream;
3
3
  stopAllStreams: () => void;
4
4
  handleGoToRecordHome: () => void;
5
- onOpenRecordingSettings?: () => void;
6
5
  showPreview?: boolean;
7
- autoSaveOnFinish?: boolean;
8
6
  onStartUpladingVoiceOverHandler?: (blob: Blob) => void;
9
7
  toggleCamera: () => Promise<void>;
10
8
  isCameraToggled: boolean;
11
9
  }
12
- export declare const RecordCam: ({ screenStream, stopAllStreams, handleGoToRecordHome, onOpenRecordingSettings, showPreview, autoSaveOnFinish, onStartUpladingVoiceOverHandler, toggleCamera, isCameraToggled, }: ScreenRecorderProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const RecordCam: ({ screenStream, stopAllStreams, handleGoToRecordHome, showPreview, onStartUpladingVoiceOverHandler, toggleCamera, isCameraToggled, }: ScreenRecorderProps) => import("react/jsx-runtime").JSX.Element;
13
11
  export {};
@@ -4,7 +4,6 @@ interface RecordingControlProps {
4
4
  status: RECORDING_STATUS;
5
5
  handleGoToRecordHome: () => void;
6
6
  teleprompterActions?: React.ReactNode;
7
- onOpenRecordingSettings?: () => void;
8
7
  }
9
- export declare const RecordingHeaderWithRouteGuard: ({ status, handleGoToRecordHome, teleprompterActions, onOpenRecordingSettings, }: RecordingControlProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const RecordingHeaderWithRouteGuard: ({ status, handleGoToRecordHome, teleprompterActions, }: RecordingControlProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,2 +1,2 @@
1
1
  import { DetailsRecordingPreviewProps } from './types';
2
- export declare const DetailsRecordingPreview: ({ videoBlob, handleGoToRecordHome, autoSave, }: DetailsRecordingPreviewProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DetailsRecordingPreview: ({ videoBlob, handleGoToRecordHome, }: DetailsRecordingPreviewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { InventoryItem } from 'lib/context';
1
+ import { InventoryItem } from "lib/context";
2
2
  type VideoAttribute = {
3
3
  value: any;
4
4
  attributeId: number;
@@ -17,7 +17,6 @@ type VideoAttribute = {
17
17
  export interface DetailsRecordingPreviewProps {
18
18
  videoBlob: Blob;
19
19
  handleGoToRecordHome: () => void;
20
- autoSave?: boolean;
21
20
  }
22
21
  export type FolderOption = {
23
22
  value: string | number;
@@ -6,8 +6,6 @@ type Props = {
6
6
  thumbnail?: string;
7
7
  videoSource: string;
8
8
  videoId?: string;
9
- shortUrl?: string;
10
- viewerStatisticId?: number;
11
9
  videoRef?: any;
12
10
  small?: boolean;
13
11
  autoplay?: boolean;
package/dist/index.d.ts CHANGED
@@ -33,12 +33,6 @@ export declare enum Environment {
33
33
  STAGING = "staging",
34
34
  PRODUCTION = "production"
35
35
  }
36
- export declare enum Flow {
37
- FULL = "full",
38
- RECORD_CAMERA_ONLY = "recordCameraOnly",
39
- PREVIEW_VIDEO = "previewVideo"
40
- }
41
- export type FlowType = 'full' | 'recordCameraOnly' | 'previewVideo';
42
36
  export type EnvironmentType = 'development' | 'sandbox' | 'staging' | 'production';
43
37
  export type ShareData = {
44
38
  url: string;
@@ -53,13 +47,6 @@ export type RecordData = {
53
47
  export type UploadData = {
54
48
  token: string;
55
49
  };
56
- export type VideoRecordedData = {
57
- token: string;
58
- videoId: number;
59
- };
60
- export type VideoPreviewData = {
61
- videoId: string;
62
- };
63
50
  /**
64
51
  * Logout from Covideo.
65
52
  * If called, removes the auth token and other Covideo data from local storage.
@@ -78,12 +65,6 @@ export type CovideoEmbedProps = {
78
65
  env?: Environment | EnvironmentType;
79
66
  /** Which Covideo features to hide */
80
67
  hideFeatures?: Feature[] | FeatureType[];
81
- /** Which product flow to use */
82
- flow?: Flow | FlowType;
83
- /** Optional preview video id that triggers internal navigation to /preview/:videoId. */
84
- previewVideoId?: string;
85
- /** Enables analytics tracking in the player. */
86
- shouldTrackAnalytics?: boolean;
87
68
  /**
88
69
  * Callback triggered when a video is inserted.
89
70
  * @param shareData - Contains the auth token, video url, thumbnail url and HTML of the inserted video.
@@ -104,11 +85,6 @@ export type CovideoEmbedProps = {
104
85
  * @param data - Contains the auth token.
105
86
  */
106
87
  onUploadButtonClick?: (data: UploadData) => void;
107
- /**
108
- * Callback triggered when a video recording is successfully saved.
109
- * @param data - Contains the auth token and saved video id.
110
- */
111
- onVideoRecorded?: (data: VideoRecordedData) => void;
112
88
  /** Used for switching theme */
113
89
  whitelabel?: WHITELABEL;
114
90
  gtmId?: string;