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.
@@ -2,6 +2,7 @@ type PreviewProps = {
2
2
  onSaveVideo: Function;
3
3
  isSaveDisabled?: boolean;
4
4
  setInsertAfterSave: (arg: boolean) => void;
5
+ uploadLoading: boolean;
5
6
  };
6
- export declare const PreviewVideoBar: ({ onSaveVideo, isSaveDisabled, setInsertAfterSave, }: PreviewProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const PreviewVideoBar: ({ onSaveVideo, isSaveDisabled, setInsertAfterSave, uploadLoading, }: PreviewProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -5,6 +5,7 @@ interface ConfigurationProviderProps {
5
5
  env?: ENVIRONMENT;
6
6
  onVideoInsert?: (shareData: {
7
7
  url: string;
8
+ thumbnail: string;
8
9
  html: string;
9
10
  }) => void;
10
11
  onVideoInsertError?: (error: unknown) => void;
@@ -1,6 +1,7 @@
1
1
  export type VideoShareLinkData = {
2
2
  url: string;
3
3
  html: string;
4
+ thumbnail: string;
4
5
  key?: string;
5
6
  };
6
7
  export type VideoShareSetData = {
@@ -11,8 +12,4 @@ export type VideoShareSetData = {
11
12
  vin: string;
12
13
  allowReactions?: boolean;
13
14
  };
14
- export declare const getExpressLinkWithData: (videoShareSetData: VideoShareSetData, useAutomotive?: boolean) => Promise<{
15
- url: any;
16
- html: any;
17
- key: any;
18
- }>;
15
+ export declare const getExpressLinkWithData: (videoShareSetData: VideoShareSetData, useAutomotive?: boolean) => Promise<VideoShareLinkData>;
@@ -16,4 +16,5 @@ export declare const checkIfVideoIsTrimmed: ({ trimStart, trimEnd, videoDuration
16
16
  export declare const isSafari: boolean;
17
17
  export declare const toMB: (KB: number) => string;
18
18
  export declare function capitalizeFirstLetter(string: string): string;
19
+ export declare function extractUrls(str: string): [] | RegExpMatchArray;
19
20
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",