react-covideo-embed 0.1.2 → 0.1.4

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.
@@ -3,7 +3,7 @@ type Props = {
3
3
  hoverable: ReactNode;
4
4
  popup: ReactNode;
5
5
  className?: string;
6
- position?: 'top' | 'bottom' | 'above' | 'bottom-left' | 'top-left' | 'right' | 'below';
6
+ position?: 'top' | 'bottom' | 'above' | 'bottom-left' | 'top-right' | 'top-left' | 'right' | 'below';
7
7
  width?: string;
8
8
  maxWidth?: string;
9
9
  padding?: string;
@@ -1,19 +1,5 @@
1
1
  import { ENVIRONMENT } from 'lib/config';
2
2
  import { ReactNode } from 'react';
3
- export declare enum Feature {
4
- Insert = "insert",
5
- RecordScreen = "recordScreen",
6
- RecordBoth = "recordBoth",
7
- RecordCam = "recordCam",
8
- Record = "record",
9
- Upload = "upload",
10
- Trim = "trim",
11
- Merge = "merge",
12
- WheelsTV = "wheelsTV",
13
- Voiceover = "voiceover",
14
- Quickshare = "quickshare",
15
- Folder = "folder"
16
- }
17
3
  interface ConfigurationProviderProps {
18
4
  token?: string;
19
5
  env?: ENVIRONMENT;
@@ -25,10 +11,7 @@ interface ConfigurationProviderProps {
25
11
  children?: ReactNode;
26
12
  hideFeatures?: string[];
27
13
  }
28
- interface IConfigurationContext extends ConfigurationProviderProps {
29
- hasExternalJwt: boolean;
30
- containerWidth: number;
31
- containerHeight: number;
14
+ type ShowFeature = {
32
15
  showInsertFeature: boolean;
33
16
  showRecordScreenFeature: boolean;
34
17
  showRecordBothFeature: boolean;
@@ -41,7 +24,15 @@ interface IConfigurationContext extends ConfigurationProviderProps {
41
24
  showVoiceoverFeature: boolean;
42
25
  showQuickshareFeature: boolean;
43
26
  showFolderFeature: boolean;
44
- }
27
+ showLandingPageFeature: boolean;
28
+ showCTAFeature: boolean;
29
+ showReactionsFeature: boolean;
30
+ };
31
+ type IConfigurationContext = ConfigurationProviderProps & ShowFeature & {
32
+ hasExternalJwt: boolean;
33
+ containerWidth: number;
34
+ containerHeight: number;
35
+ };
45
36
  export declare const ConfigurationProvider: React.FC<ConfigurationProviderProps>;
46
37
  export declare const useConfigurationContext: () => IConfigurationContext;
47
38
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",