react-covideo-embed 0.1.22 → 0.1.24

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 CHANGED
@@ -55,6 +55,7 @@ Explore the capabilities of react-covideo-embed through our [Demo Project](https
55
55
  - `url`: `string` - The URL of the inserted video.
56
56
  - `thumbnail`: `string` - The URL of the thumbnail of the inserted video.
57
57
  - `html`: `string` - The HTML representation of the inserted video.
58
+ - `token`: `string` - The auth token used to fetch the shareData.
58
59
 
59
60
  ### `onVideoInsertError` (optional)
60
61
 
package/build/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export type ShareData = {
29
29
  url: string;
30
30
  thumbnail: string;
31
31
  html: string;
32
+ token: string;
32
33
  };
33
34
  /**
34
35
  * Logout from Covideo.
@@ -48,7 +49,7 @@ export type CovideoEmbedProps = {
48
49
  hideFeatures?: Feature[] | FeatureType[];
49
50
  /**
50
51
  * Callback triggered when a video is inserted.
51
- * @param shareData - Contains the video url, thumbnail url and HTML of the inserted video.
52
+ * @param shareData - Contains the auth token, video url, thumbnail url and HTML of the inserted video.
52
53
  */
53
54
  onVideoInsert?: (shareData: ShareData) => void;
54
55
  /**