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.
@@ -1,5 +1,19 @@
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
+ }
3
17
  interface ConfigurationProviderProps {
4
18
  token?: string;
5
19
  env?: ENVIRONMENT;
@@ -9,8 +23,25 @@ interface ConfigurationProviderProps {
9
23
  }) => void;
10
24
  onVideoInsertError?: (error: unknown) => void;
11
25
  children?: ReactNode;
12
- hasExternalJwt?: boolean;
26
+ hideFeatures?: string[];
27
+ }
28
+ interface IConfigurationContext extends ConfigurationProviderProps {
29
+ hasExternalJwt: boolean;
30
+ containerWidth: number;
31
+ containerHeight: number;
32
+ showInsertFeature: boolean;
33
+ showRecordScreenFeature: boolean;
34
+ showRecordBothFeature: boolean;
35
+ showRecordCamFeature: boolean;
36
+ showRecordFeature: boolean;
37
+ showUploadFeature: boolean;
38
+ showTrimFeature: boolean;
39
+ showMergeFeature: boolean;
40
+ showWheelsTVFeature: boolean;
41
+ showVoiceoverFeature: boolean;
42
+ showQuickshareFeature: boolean;
43
+ showFolderFeature: boolean;
13
44
  }
14
- export declare const useConfigurationContext: () => ConfigurationProviderProps;
15
45
  export declare const ConfigurationProvider: React.FC<ConfigurationProviderProps>;
46
+ export declare const useConfigurationContext: () => IConfigurationContext;
16
47
  export {};
@@ -15,4 +15,5 @@ type CheckIfVideoIsTrimmedProps = {
15
15
  export declare const checkIfVideoIsTrimmed: ({ trimStart, trimEnd, videoDuration, }: CheckIfVideoIsTrimmedProps) => boolean;
16
16
  export declare const isSafari: boolean;
17
17
  export declare const toMB: (KB: number) => string;
18
+ export declare function capitalizeFirstLetter(string: string): string;
18
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",
@@ -58,6 +58,7 @@
58
58
  "react-full-screen": "^1.1.1",
59
59
  "react-icons": "^4.7.1",
60
60
  "react-query": "^3.39.2",
61
+ "react-resize-detector": "^9.1.0",
61
62
  "react-router-dom": "^5.1.2",
62
63
  "react-select": "^3.1.0",
63
64
  "react-spinners": "^0.13.6",