react-covideo-embed 1.0.18 → 1.0.19

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.
Files changed (120) hide show
  1. package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +3 -3
  2. package/build/app/pages/recordv1/ChooseRecordingOptions.d.ts +10 -0
  3. package/build/app/pages/recordv1/Countdown.d.ts +9 -0
  4. package/build/app/pages/recordv1/DroplrFilesTabContent.d.ts +8 -0
  5. package/build/app/pages/recordv1/FolderDropdown.d.ts +17 -0
  6. package/build/app/pages/recordv1/ModalRecordingVideoSettings.d.ts +5 -0
  7. package/build/app/pages/recordv1/ModalTeleprompterRecord.d.ts +8 -0
  8. package/build/app/pages/recordv1/ModalVideoTags.d.ts +2 -0
  9. package/build/app/pages/recordv1/ProgressCircle.d.ts +8 -0
  10. package/build/app/pages/recordv1/RecordBoth.d.ts +9 -0
  11. package/build/app/pages/recordv1/RecordCam.d.ts +9 -0
  12. package/build/app/pages/recordv1/RecordCamLoader.d.ts +3 -0
  13. package/build/app/pages/recordv1/RecordHome.d.ts +1 -0
  14. package/build/app/pages/recordv1/RecorderBody.d.ts +11 -0
  15. package/build/app/pages/recordv1/RecordingHeadingWithRouteGuard.d.ts +9 -0
  16. package/build/app/pages/recordv1/ScreenRecorder.d.ts +9 -0
  17. package/build/app/pages/recordv1/Scroller.d.ts +6 -0
  18. package/build/app/pages/recordv1/Teleprompter/BaseTeleprompterActions.d.ts +6 -0
  19. package/build/app/pages/recordv1/Teleprompter/RecordingTeleprompterActions.d.ts +1 -0
  20. package/build/app/pages/recordv1/Teleprompter/TeleprompterActions.d.ts +6 -0
  21. package/build/app/pages/recordv1/Teleprompter/TeleprompterDisplay.d.ts +6 -0
  22. package/build/app/pages/recordv1/UploadLoader.d.ts +17 -0
  23. package/build/app/pages/recordv1/VideoRecorderActions.d.ts +13 -0
  24. package/build/app/pages/recordv1/VideoTag.d.ts +1 -0
  25. package/build/app/pages/recordv1/VideoUploadFolderDropdown.d.ts +25 -0
  26. package/build/app/pages/recordv1/VirtualBackgroundsButton.d.ts +14 -0
  27. package/build/app/pages/recordv1/detailsPreview/DetailsPreview.d.ts +2 -0
  28. package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewAtrributesHeader.d.ts +1 -0
  29. package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewHeader.d.ts +7 -0
  30. package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewVideoAttributes.d.ts +1 -0
  31. package/build/app/pages/recordv1/detailsPreview/form/DetailsRecordPreviewTags.d.ts +1 -0
  32. package/build/app/pages/recordv1/detailsPreview/form/VideoRequestDetails.d.ts +14 -0
  33. package/build/app/pages/recordv1/detailsPreview/types.d.ts +61 -0
  34. package/build/app/pages/recordv1/routes.d.ts +1 -0
  35. package/build/app/pages/recordv1/types.d.ts +110 -0
  36. package/build/app/pages/recordv1/useImageSegmenter.d.ts +10 -0
  37. package/build/app/pages/recordv1/useRecorder.d.ts +26 -0
  38. package/build/app/pages/recordv1/useRecorderCountdown.d.ts +5 -0
  39. package/build/app/pages/recordv1/useRecordingTime.d.ts +5 -0
  40. package/build/app/pages/recordv1/useVideoRecorderUpload.d.ts +29 -0
  41. package/build/app/pages/recordv1/utils/browserChecks.d.ts +3 -0
  42. package/build/app/pages/recordv1/utils/functions.d.ts +32 -0
  43. package/build/app/pages/recordv1/utils/media.d.ts +13 -0
  44. package/build/app/pages/recordv1/utils/recorderSettings.d.ts +6 -0
  45. package/build/app/pages/recordv1/utils/virtualBackgrounds.d.ts +4 -0
  46. package/build/app/pages/recordv1/virtualBackgrounds/FilesTabContent.d.ts +8 -0
  47. package/build/app/pages/recordv1/virtualBackgrounds/VirtualBackgroundLibraryModal.d.ts +7 -0
  48. package/build/app/pages/recordv1/virtualBackgrounds/VirtualBackgrounds.d.ts +12 -0
  49. package/build/app/pages/recordv1/webgl/webglUtils.d.ts +14 -0
  50. package/build/index.js +213 -332
  51. package/build/index.js.LICENSE.txt +865 -0
  52. package/build/lib/api/aws/useAwsSignedUrlQuery.d.ts +11 -0
  53. package/build/lib/api/aws/useS3UploadMutation.d.ts +87 -0
  54. package/build/lib/api/customVirtualBackground/customVirtualBackgroundKeys.d.ts +3 -0
  55. package/build/lib/api/customVirtualBackground/useCustomVirtualBackgroundQuery.d.ts +11 -0
  56. package/build/lib/api/droplr/droplrAuth.d.ts +13 -0
  57. package/build/lib/api/droplr/getBoards.d.ts +7 -0
  58. package/build/lib/api/droplr/getDrop.d.ts +6 -0
  59. package/build/lib/api/droplr/getDrops.d.ts +40 -0
  60. package/build/lib/api/droplr/queryKeys.d.ts +12 -0
  61. package/build/lib/api/droplr/types.d.ts +136 -0
  62. package/build/lib/api/droplr/uploadDrop.d.ts +1 -0
  63. package/build/lib/api/folders/foldersKeys.d.ts +3 -0
  64. package/build/lib/api/folders/getFolders.d.ts +15 -0
  65. package/build/lib/api/folders/types.d.ts +4 -0
  66. package/build/lib/api/teleprompterApi.d.ts +16 -0
  67. package/build/lib/api/types.d.ts +14 -0
  68. package/build/lib/api/users/automotive/queryKeys.d.ts +4 -0
  69. package/build/lib/api/users/automotive/useUsersByAutomotiveRolesQuery.d.ts +25 -0
  70. package/build/lib/api/videoAttributes/useGetAllVideoAttributesQuery.d.ts +7 -0
  71. package/build/lib/api/videoAttributes/videoAttributesKeys.d.ts +5 -0
  72. package/build/lib/api/videos/useCreateVideoMutation.d.ts +118 -0
  73. package/build/lib/api/videos/useEncodeVideoMutation.d.ts +90 -0
  74. package/build/lib/api/voiceOverApi.d.ts +15 -1
  75. package/build/lib/components/ButtonSwitch.d.ts +15 -0
  76. package/build/lib/components/Dropdown.d.ts +2 -1
  77. package/build/lib/components/NewDropdown.d.ts +95 -0
  78. package/build/lib/components/NewTextInput.d.ts +1 -0
  79. package/build/lib/components/Search.d.ts +19 -0
  80. package/build/lib/components/formik/FormikDropdown.d.ts +12 -0
  81. package/build/lib/components/formik/FormikErrorMessage.d.ts +4 -0
  82. package/build/lib/components/formik/FormikInputField.d.ts +8 -0
  83. package/build/lib/components/formik/FormikLabel.d.ts +8 -0
  84. package/build/lib/components/formik/FormikTextAreaField.d.ts +8 -0
  85. package/build/lib/components/index.d.ts +2 -0
  86. package/build/lib/components/styles/layout.d.ts +33 -0
  87. package/build/lib/components/styles/typography.d.ts +44 -0
  88. package/build/lib/context/AuthorizationContext.d.ts +1 -0
  89. package/build/lib/context/record/functions.d.ts +2 -0
  90. package/build/lib/context/record/provider.d.ts +27 -0
  91. package/build/lib/context/record/types.d.ts +32 -0
  92. package/build/lib/context/teleprompter/provider.d.ts +37 -0
  93. package/build/lib/context/teleprompter/types.d.ts +12 -0
  94. package/build/lib/images/VirtualBgIcon.d.ts +2 -0
  95. package/build/lib/images/virtualBackgrounds/vb1.webp +0 -0
  96. package/build/lib/images/virtualBackgrounds/vb10.webp +0 -0
  97. package/build/lib/images/virtualBackgrounds/vb11.webp +0 -0
  98. package/build/lib/images/virtualBackgrounds/vb12.webp +0 -0
  99. package/build/lib/images/virtualBackgrounds/vb13.webp +0 -0
  100. package/build/lib/images/virtualBackgrounds/vb14.webp +0 -0
  101. package/build/lib/images/virtualBackgrounds/vb15.webp +0 -0
  102. package/build/lib/images/virtualBackgrounds/vb16.webp +0 -0
  103. package/build/lib/images/virtualBackgrounds/vb17.webp +0 -0
  104. package/build/lib/images/virtualBackgrounds/vb18.webp +0 -0
  105. package/build/lib/images/virtualBackgrounds/vb19.webp +0 -0
  106. package/build/lib/images/virtualBackgrounds/vb2.webp +0 -0
  107. package/build/lib/images/virtualBackgrounds/vb20.webp +0 -0
  108. package/build/lib/images/virtualBackgrounds/vb21.webp +0 -0
  109. package/build/lib/images/virtualBackgrounds/vb3.webp +0 -0
  110. package/build/lib/images/virtualBackgrounds/vb4.webp +0 -0
  111. package/build/lib/images/virtualBackgrounds/vb5.webp +0 -0
  112. package/build/lib/images/virtualBackgrounds/vb6.webp +0 -0
  113. package/build/lib/images/virtualBackgrounds/vb7.webp +0 -0
  114. package/build/lib/images/virtualBackgrounds/vb8.webp +0 -0
  115. package/build/lib/images/virtualBackgrounds/vb9.webp +0 -0
  116. package/build/lib/style/theme.d.ts +7 -0
  117. package/build/lib/utils/productFeature.d.ts +9 -0
  118. package/images.d.ts +4 -0
  119. package/package.json +17 -5
  120. package/yup.d.ts +1 -0
@@ -0,0 +1,15 @@
1
+ type Value = {
2
+ text: string;
3
+ value: string;
4
+ width?: string;
5
+ };
6
+ type Props = {
7
+ defaultValue: string;
8
+ onChange: (value: string) => void;
9
+ values: Value[];
10
+ skipConfirmation?: boolean;
11
+ className?: string;
12
+ disabled?: boolean;
13
+ };
14
+ export declare const ButtonSwitch: (props: Props) => JSX.Element;
15
+ export {};
@@ -22,7 +22,8 @@ type Props = {
22
22
  placeholder?: string;
23
23
  controlShouldRenderValue?: boolean;
24
24
  customComponents?: {
25
- Option: (props: any) => JSX.Element;
25
+ Option?: (props: any) => JSX.Element;
26
+ ValueContainer?: (props: any) => JSX.Element;
26
27
  };
27
28
  };
28
29
  export declare const Dropdown: ({ options, value, onChange, isSearchable, extraStyles, creatable, isClearable, disabled, maxMenuHeight, defaultValue, placeholder, controlShouldRenderValue, customComponents, }: Props) => JSX.Element;
@@ -0,0 +1,95 @@
1
+ import * as React from 'react';
2
+ import { ControlProps, FormatOptionLabelMeta, IndicatorProps, MenuPlacement, MenuPosition, OptionProps } from 'react-select';
3
+ import { SelectComponents } from 'react-select/src/components';
4
+ export declare const Chip: import("styled-components").StyledComponent<"div", any, {
5
+ bgColor: string;
6
+ fontColor: string;
7
+ radius?: string | undefined;
8
+ padding?: string | undefined;
9
+ fontSize?: string | undefined;
10
+ lineHeight?: string | undefined;
11
+ width?: string | undefined;
12
+ height?: string | undefined;
13
+ }, never>;
14
+ export type Option = {
15
+ value: string | number;
16
+ label: string | number;
17
+ isFolderShared?: boolean;
18
+ access?: boolean | string;
19
+ };
20
+ type Icon = 'checkmark' | 'folder' | '';
21
+ type Props = {
22
+ icon?: Icon;
23
+ value: any;
24
+ defaultValue?: any;
25
+ options: Array<Option> | any;
26
+ placeholder?: string;
27
+ isLoading?: boolean;
28
+ name?: string;
29
+ className?: string;
30
+ dropdownHeight?: string | number;
31
+ height?: number;
32
+ width?: number;
33
+ disabled?: boolean;
34
+ zIndexProp?: number;
35
+ menuZIndexProp?: number;
36
+ creatable?: boolean;
37
+ error?: boolean;
38
+ inputId?: any;
39
+ menuPortalTarget?: HTMLElement | null;
40
+ menuPosition?: MenuPosition;
41
+ menuPlacement?: MenuPlacement;
42
+ ariaLabel?: string;
43
+ onMenuScrollToBottom?: () => void;
44
+ onMenuClose?: () => void;
45
+ onChange: (value: any, actionMeta?: any) => void;
46
+ onInputChange?: (inputValue: any, actionMeta?: any) => void;
47
+ getOptionLabel?: (option: any) => string;
48
+ getOptionValue?: (option: any) => string;
49
+ extendStyles?: {
50
+ container?: React.CSSProperties;
51
+ menu?: React.CSSProperties;
52
+ control?: React.CSSProperties;
53
+ menuList?: React.CSSProperties;
54
+ valueContainer?: React.CSSProperties;
55
+ input?: React.CSSProperties;
56
+ singleValue?: React.CSSProperties;
57
+ option?: React.CSSProperties;
58
+ };
59
+ showIndicator?: boolean;
60
+ chipValueSelected?: boolean;
61
+ isClearable?: boolean;
62
+ isMulti?: any;
63
+ onCreateOption?: (e?: any) => void;
64
+ isShareVideoModal?: boolean;
65
+ isSearchable?: boolean;
66
+ formatCreateLabel?: (inputValue: string) => React.ReactNode;
67
+ menuShouldBlockScroll?: boolean;
68
+ minMenuHeight?: number;
69
+ closeMenuOnScroll?: boolean | EventListener | undefined;
70
+ filterOption?: ((option: Option, rawInput: string) => boolean) | null | undefined;
71
+ formatOptionLabel?: ((option: any, labelMeta: FormatOptionLabelMeta<any, any>) => React.ReactNode) | undefined;
72
+ customComponents?: Partial<SelectComponents<any, any>> | undefined;
73
+ onMenuOpen?: (() => void) | undefined;
74
+ };
75
+ type DropdownArrowProps = {
76
+ menuIsOpen?: boolean;
77
+ };
78
+ export type DropdownIndicatorProps = React.PropsWithChildren<IndicatorProps<Option, false>>;
79
+ export declare const DropdownArrowIcon: import("styled-components").StyledComponent<"span", any, DropdownArrowProps, never>;
80
+ export declare const OptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
81
+ export declare const OptionIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
82
+ export declare const getControlStyles: (props: ControlProps<Option, false>) => {
83
+ borderColor: string;
84
+ };
85
+ export declare const getOptionStyles: (props: OptionProps<Option, false>, themes: any, isShareVideoModal?: boolean) => {
86
+ color: string;
87
+ backgroundColor: string;
88
+ cursor: string;
89
+ } | {
90
+ color: any;
91
+ backgroundColor: any;
92
+ cursor?: undefined;
93
+ };
94
+ export declare const Dropdown: (props: Props) => JSX.Element;
95
+ export {};
@@ -0,0 +1 @@
1
+ export declare const NewTextInput: import("styled-components").StyledComponent<"input", any, any, "type">;
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { Folder } from 'lib/api/folders/getFolders';
3
+ interface ComponentProps {
4
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
+ onSearch: (params: any) => void;
6
+ placeholder?: string;
7
+ initialValue?: string;
8
+ disabled?: boolean;
9
+ prevSearch?: string;
10
+ width?: string;
11
+ videoTags?: object[];
12
+ currentFolder?: Folder;
13
+ useTags?: boolean;
14
+ className?: string;
15
+ bgColor?: string;
16
+ dataCy?: string;
17
+ }
18
+ export declare const Search: React.MemoExoticComponent<({ onSearch, placeholder, onChange, disabled, prevSearch, width, currentFolder, useTags, className, bgColor, dataCy, }: ComponentProps) => JSX.Element>;
19
+ export {};
@@ -0,0 +1,12 @@
1
+ interface CustomDropdownProps {
2
+ name: string;
3
+ label: string;
4
+ isRequired: boolean;
5
+ options: {
6
+ value: string;
7
+ label: string;
8
+ }[];
9
+ disabled: boolean;
10
+ }
11
+ export declare const FormikDropdownField: ({ label, isRequired, options, disabled, ...props }: CustomDropdownProps) => JSX.Element;
12
+ export {};
@@ -0,0 +1,4 @@
1
+ import { FieldMetaProps } from 'formik';
2
+ export declare const FormikErrorMessage: ({ meta }: {
3
+ meta: FieldMetaProps<any>;
4
+ }) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface CustomInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ name: string;
4
+ label: string;
5
+ isRequired: boolean;
6
+ }
7
+ export declare const FormikInputField: ({ label, isRequired, ...props }: CustomInputProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IFormikLabelProps {
3
+ name?: string;
4
+ label: string;
5
+ isRequired: boolean;
6
+ }
7
+ export declare const FormikLabel: React.FC<IFormikLabelProps>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface CustomTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ name: string;
4
+ label: string;
5
+ isRequired: boolean;
6
+ }
7
+ export declare const FormikTextAreaField: ({ label, isRequired, ...props }: CustomTextareaProps) => JSX.Element;
8
+ export {};
@@ -13,3 +13,5 @@ export { CloseButton } from './CloseButton';
13
13
  export { ModalRecordingSettings } from './modal/ModalRecordingSettings';
14
14
  export { ToastNotificationsProvider, useToastNotifications, } from './toast-notifications';
15
15
  export { MainWrapper } from './MainWrapper';
16
+ export { ButtonSwitch } from './ButtonSwitch';
17
+ export { NewTextInput } from './NewTextInput';
@@ -0,0 +1,33 @@
1
+ interface IGap {
2
+ gap?: string;
3
+ center?: boolean;
4
+ m?: string;
5
+ flexWrap?: string;
6
+ flexDirection?: string;
7
+ alignItems?: string;
8
+ justifyContent?: string;
9
+ width?: string;
10
+ height?: string;
11
+ }
12
+ interface IEnhancedGap {
13
+ maxWidth: string;
14
+ overflow: string;
15
+ textOverflow: string;
16
+ whiteSpace: string;
17
+ }
18
+ export declare const Gap: import("styled-components").StyledComponent<"div", any, IGap, never>;
19
+ export declare const EnhancedGap: import("styled-components").StyledComponent<"div", any, IGap & IEnhancedGap, never>;
20
+ export declare const HeaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
21
+ interface IStack {
22
+ gap?: string;
23
+ m?: string;
24
+ p?: string;
25
+ flexWrap?: string;
26
+ alignItems?: string;
27
+ justifyContent?: string;
28
+ width?: string;
29
+ maxWidth?: string;
30
+ height?: string;
31
+ }
32
+ export declare const Stack: import("styled-components").StyledComponent<"div", any, IStack, never>;
33
+ export {};
@@ -0,0 +1,44 @@
1
+ import { LabelHTMLAttributes } from 'react';
2
+ interface ICommonTypography {
3
+ m?: string;
4
+ textAlign?: string;
5
+ ellipsis?: boolean;
6
+ width?: string;
7
+ maxWidth?: string;
8
+ }
9
+ export declare const CommonTypography: import("styled-components").StyledComponent<"h1", any, ICommonTypography, never>;
10
+ export declare const CHeading: import("styled-components").FlattenSimpleInterpolation;
11
+ export declare const Heading: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
12
+ as: string;
13
+ }, "as">;
14
+ export declare const SubHeading: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
15
+ as: string;
16
+ }, "as">;
17
+ export declare const ParagraphNormal: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
18
+ as: string;
19
+ }, "as">;
20
+ export declare const ParagraphNormalBold: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
21
+ as: string;
22
+ }, "as">;
23
+ export declare const ParagraphNormalBold600: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
24
+ as: string;
25
+ }, "as">;
26
+ export declare const ParagraphNormalBold500: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
27
+ as: string;
28
+ }, "as">;
29
+ export declare const ParagraphExtraSmall: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
30
+ as: string;
31
+ }, "as">;
32
+ export declare const ParagraphSmall: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
33
+ as: string;
34
+ }, "as">;
35
+ export declare const ParagraphSmallBold: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
36
+ as: string;
37
+ }, "as">;
38
+ export declare const ParagraphExtraSmallBold: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
39
+ as: string;
40
+ }, "as">;
41
+ export declare const CheckboxLabel: import("styled-components").StyledComponent<"h1", any, ICommonTypography & {
42
+ as: string;
43
+ } & LabelHTMLAttributes<HTMLLabelElement>, "as">;
44
+ export {};
@@ -51,6 +51,7 @@ export interface PackageDetails {
51
51
  export interface UserData {
52
52
  user?: any;
53
53
  uid: string;
54
+ id: string;
54
55
  userId: string;
55
56
  customerId: string;
56
57
  resellerId: string;
@@ -0,0 +1,2 @@
1
+ export declare const getDevices: () => Promise<unknown>;
2
+ export declare const capitalizeWords: (str: string) => string;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { IUserSettings, IRecordSettingsProvider, Option } from './types';
3
+ export declare const RecordSettingsContext: React.Context<{
4
+ recorderSettings: {
5
+ audioSource: Option[];
6
+ videoSource: Option[];
7
+ };
8
+ setUserSettings: React.Dispatch<React.SetStateAction<IUserSettings>>;
9
+ userSettings: IUserSettings;
10
+ recordingError: string | null;
11
+ updateErrorMessage: () => void;
12
+ initialUserSettings: IUserSettings;
13
+ onSubmitModalHandler: () => void;
14
+ }>;
15
+ export declare const RecordSettingsProvider: ({ children, }: IRecordSettingsProvider) => JSX.Element;
16
+ export declare const useRecordSettings: () => {
17
+ recorderSettings: {
18
+ audioSource: Option[];
19
+ videoSource: Option[];
20
+ };
21
+ setUserSettings: React.Dispatch<React.SetStateAction<IUserSettings>>;
22
+ userSettings: IUserSettings;
23
+ recordingError: string | null;
24
+ updateErrorMessage: () => void;
25
+ initialUserSettings: IUserSettings;
26
+ onSubmitModalHandler: () => void;
27
+ };
@@ -0,0 +1,32 @@
1
+ import { ReactNode } from 'react';
2
+ export type IRecordSettingsProvider = {
3
+ children: ReactNode;
4
+ };
5
+ export type Option = {
6
+ label: string;
7
+ value: boolean | string;
8
+ };
9
+ export declare enum DEVICE_KIND {
10
+ AUDIO_INPUT = "audioinput",
11
+ VIDEO_INPUT = "videoinput"
12
+ }
13
+ export declare enum VIDEO_QUALITY {
14
+ LOW = "low",
15
+ STANDARD = "standard",
16
+ HIGH = "high"
17
+ }
18
+ export type Device = {
19
+ deviceId: string;
20
+ kind: DEVICE_KIND.AUDIO_INPUT | DEVICE_KIND.VIDEO_INPUT;
21
+ label: string;
22
+ groupId: string;
23
+ };
24
+ export interface IUserSettings {
25
+ audioSource: Option | null;
26
+ videoSource: Option | null;
27
+ videoQuality: string;
28
+ }
29
+ export interface IRecordConfigSettings {
30
+ audioSource: Option[];
31
+ videoSource: Option[];
32
+ }
@@ -0,0 +1,37 @@
1
+ import { ReactNode } from 'react';
2
+ import { ITeleprompterSettings, Speed } from './types';
3
+ export declare const TeleprompterContext: import("react").Context<{
4
+ isUsingTeleprompter: boolean;
5
+ showTeleprompterModal: boolean;
6
+ teleprompterSettings: ITeleprompterSettings | null;
7
+ isTeleprompterPlaying: boolean;
8
+ isTeleprompterDisabled: boolean;
9
+ saveTeleprompterSettingsHandler: (currentSettings: ITeleprompterSettings) => void;
10
+ onEditOrTurnOnTeleprompterHandler: () => void;
11
+ onDropdownTeleprompterSpeedChange: (newValue: Speed) => void;
12
+ toggleTeleprompterPlaying: () => void;
13
+ onTeleprompterModalClose: () => void;
14
+ turnOffTeleprompter: () => void;
15
+ turnOnTeleprompter: () => void;
16
+ turnOnTeleprompterPlaying: () => void;
17
+ disableOrEnableTeleprompter: (isEnabled: boolean) => void;
18
+ }>;
19
+ export declare const TeleprompterProvider: ({ children }: {
20
+ children: ReactNode;
21
+ }) => JSX.Element;
22
+ export declare const useTeleprompter: () => {
23
+ isUsingTeleprompter: boolean;
24
+ showTeleprompterModal: boolean;
25
+ teleprompterSettings: ITeleprompterSettings | null;
26
+ isTeleprompterPlaying: boolean;
27
+ isTeleprompterDisabled: boolean;
28
+ saveTeleprompterSettingsHandler: (currentSettings: ITeleprompterSettings) => void;
29
+ onEditOrTurnOnTeleprompterHandler: () => void;
30
+ onDropdownTeleprompterSpeedChange: (newValue: Speed) => void;
31
+ toggleTeleprompterPlaying: () => void;
32
+ onTeleprompterModalClose: () => void;
33
+ turnOffTeleprompter: () => void;
34
+ turnOnTeleprompter: () => void;
35
+ turnOnTeleprompterPlaying: () => void;
36
+ disableOrEnableTeleprompter: (isEnabled: boolean) => void;
37
+ };
@@ -0,0 +1,12 @@
1
+ export interface Speed {
2
+ value: number;
3
+ label: string;
4
+ }
5
+ export interface ITeleprompterSettings {
6
+ speed?: Speed;
7
+ scriptSize?: string;
8
+ scriptPosition?: string;
9
+ content?: string;
10
+ activeScriptId?: string;
11
+ activeScriptText?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ export default VideoIcon;
2
+ declare const VideoIcon: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -59,6 +59,9 @@ export declare const mediaQueryMaxWidth: {
59
59
  xxlg: string;
60
60
  };
61
61
  export declare const palette: {
62
+ primaryThemeColor20Percent: string;
63
+ secondaryBlue10Percent: string;
64
+ grayBorder: string;
62
65
  white: string;
63
66
  gray: string;
64
67
  black_1_100: string;
@@ -118,4 +121,8 @@ export declare const palette: {
118
121
  primaryBlack25Percent: string;
119
122
  secondaryBlue: string;
120
123
  midGrey: string;
124
+ coal: string;
125
+ covideoGray40: string;
126
+ destructiveBg: string;
127
+ red80: string;
121
128
  };
@@ -0,0 +1,9 @@
1
+ import { UserData } from 'lib/context';
2
+ type ProductFeatureType = {
3
+ [key: string]: number;
4
+ };
5
+ export declare const productFeature: ProductFeatureType;
6
+ export declare const checkIfFeatureIsEnabled: (userData: UserData, featureId: string | number) => boolean;
7
+ export declare const checkIfCustomerIsDevOrQA: (userData: UserData) => boolean;
8
+ export declare const isNewVideoRecordingEnabled: (userData: UserData) => boolean;
9
+ export {};
package/images.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module '*.webp' {
2
+ const value: string;
3
+ export default value;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",
@@ -32,6 +32,7 @@
32
32
  "@svgr/webpack": "^8.1.0",
33
33
  "@types/color-convert": "^2.0.0",
34
34
  "@types/file-saver": "^2.0.5",
35
+ "@types/js-cookie": "^3.0.6",
35
36
  "@types/jwt-decode": "^3.1.0",
36
37
  "@types/lodash": "^4.14.190",
37
38
  "@types/node": "18.19.0",
@@ -39,28 +40,34 @@
39
40
  "@types/react-beautiful-dnd": "^13.1.3",
40
41
  "@types/react-dom": "16.8.4",
41
42
  "@types/react-router-dom": "^5.3.3",
43
+ "@types/react-scroll": "^1.8.10",
44
+ "@types/react-select": "3.1.2",
45
+ "@types/recordrtc": "^5.6.14",
42
46
  "@types/styled-components": "^5.1.26",
43
47
  "css-loader": "^6.8.1",
44
48
  "file-loader": "^6.2.0",
45
49
  "react": "^16.13.1",
46
50
  "react-dom": "^16.13.1",
47
51
  "storybook": "^8.0.2",
48
- "style-loader": "^3.3.3",
52
+ "style-loader": "^3.3.4",
49
53
  "ts-loader": "^9.4.4",
50
54
  "typescript": "^4.9.3",
51
55
  "webpack": "^5.88.2",
52
56
  "webpack-cli": "^5.1.4"
53
57
  },
54
58
  "dependencies": {
59
+ "@mediapipe/tasks-vision": "^0.10.15",
55
60
  "assert": "^2.1.0",
56
61
  "axios": "^0.21.1",
57
62
  "buffer": "^6.0.3",
58
63
  "color-convert": "^2.0.1",
59
64
  "constants-browserify": "^1.0.0",
60
65
  "dayjs": "^1.11.6",
66
+ "droplr-api": "1.0.0",
61
67
  "file-saver": "^2.0.5",
62
68
  "formik": "^2.2.9",
63
69
  "fs-extra": "^11.1.1",
70
+ "js-cookie": "2.2.1",
64
71
  "jwt-decode": "^3.1.2",
65
72
  "lodash": "^4.17.21",
66
73
  "os-browserify": "^0.3.0",
@@ -69,16 +76,21 @@
69
76
  "react-beautiful-dnd": "^13.1.1",
70
77
  "react-compound-slider": "^3.4.0",
71
78
  "react-covideo-ai-assist": "0.0.28",
72
- "react-covideo-common": "0.1.49",
79
+ "react-covideo-common": "0.1.57",
80
+ "react-dropzone": "11.3.2",
73
81
  "react-full-screen": "^1.1.1",
74
82
  "react-icons": "^4.7.1",
83
+ "react-infinite-scroll-component": "6.1.0",
75
84
  "react-query": "^3.39.2",
76
85
  "react-resize-detector": "^9.1.0",
77
86
  "react-router-dom": "^5.1.2",
78
- "react-select": "5.8.0",
87
+ "react-scroll": "^1.9.0",
88
+ "react-select": "3.2.0",
79
89
  "react-spinners": "^0.13.6",
90
+ "recordrtc": "^5.6.2",
80
91
  "stream-browserify": "^3.0.0",
81
92
  "styled-components": "^5.3.6",
82
- "worker-timers": "5.1.9"
93
+ "worker-timers": "5.1.9",
94
+ "yup": "0.29.3"
83
95
  }
84
96
  }
package/yup.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare module 'yup';