react-covideo-embed 0.1.0 → 0.1.1

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
@@ -60,6 +60,23 @@ export default MyApp;
60
60
  - **Parameters**:
61
61
  - `error`: `unknown` - The error occurred during video insert.
62
62
 
63
+ ### `hideFeatures` (optional)
64
+
65
+ - **Type**: `Array<Feature>`
66
+ - **Description**: Determines which Covideo features to hide. Acceptable values are as follows:
67
+ - `insert`
68
+ - `recordScreen`
69
+ - `recordBoth`
70
+ - `recordCam`
71
+ - `record`
72
+ - `upload`
73
+ - `trim`
74
+ - `merge`
75
+ - `wheelsTV`
76
+ - `voiceover`
77
+ - `quickshare`
78
+ - `folder`
79
+
63
80
  ## Author
64
81
 
65
82
  This package is maintained by Covideo.
package/build/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import './index.css';
3
+ type Feature = 'insert' | 'recordScreen' | 'recordBoth' | 'recordCam' | 'record' | 'upload' | 'trim' | 'merge' | 'wheelsTV' | 'voiceover' | 'quickshare' | 'folder';
3
4
  interface Props {
4
5
  /**
5
6
  * JWT token from Covideo.
@@ -9,6 +10,8 @@ interface Props {
9
10
  token?: string;
10
11
  /** Which Covideo environment to target */
11
12
  env?: 'sandbox' | 'production';
13
+ /** Which Covideo features to hide */
14
+ hideFeatures?: Feature[];
12
15
  /**
13
16
  * Callback triggered when a video is inserted.
14
17
  * @param shareData - Contains the URL and HTML of the inserted video.