react-covideo-embed 1.0.76 → 1.0.78
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/build/app/pages/library/components/VideoItemThumbnail.d.ts +12 -5
- package/build/app/pages/vinReels/ModalVideoPreview.d.ts +6 -0
- package/build/app/pages/vinReels/VinReels.d.ts +9 -0
- package/build/app/pages/vinReels/style.d.ts +31 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +94 -94
- package/build/lib/api/vinReel/useCopyVINReelMutation.d.ts +8 -0
- package/build/lib/api/vinReel/useGetVINReelsQuery.d.ts +41 -0
- package/build/lib/components/AddonDropdown.d.ts +14 -0
- package/build/lib/components/mediaTools/index.d.ts +1 -0
- package/build/lib/context/AuthorizationContext.d.ts +2 -0
- package/build/lib/context/ConfigurationContext.d.ts +1 -0
- package/build/lib/context/ContactUsModalContext.d.ts +11 -0
- package/build/lib/hooks/ai/features/useAIFeatureFlags.d.ts +11 -0
- package/build/lib/hooks/ai/features/useAiFeatureAvailability.d.ts +9 -0
- package/build/lib/hooks/ai/features/utils.d.ts +10 -0
- package/build/lib/images/Images.d.ts +4 -0
- package/build/lib/images/imagePlaceholder.webp +0 -0
- package/build/lib/utils/folders/folderSelection.d.ts +9 -0
- package/package.json +1 -1
- package/styled.d.ts +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface CopyVINReelData {
|
|
2
|
+
vin: string;
|
|
3
|
+
videoTitle: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const useCopyVINReelMutation: ({ onSuccessCallback, }: {
|
|
6
|
+
onSuccessCallback?: () => void;
|
|
7
|
+
}) => import("react-query").UseMutationResult<any, unknown, CopyVINReelData, unknown>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { InventoryItem } from 'lib/context';
|
|
2
|
+
export declare enum VINReelStatus {
|
|
3
|
+
PROCESSING = "processing",
|
|
4
|
+
COMPLETED = "completed",
|
|
5
|
+
FAILED = "failed",
|
|
6
|
+
PENDING = "pending"
|
|
7
|
+
}
|
|
8
|
+
export interface VINReel {
|
|
9
|
+
vin: string;
|
|
10
|
+
customerId: number;
|
|
11
|
+
dealerId: number;
|
|
12
|
+
status: VINReelStatus;
|
|
13
|
+
videoUrl: string;
|
|
14
|
+
thumbnailUrl: string;
|
|
15
|
+
videoLength: number;
|
|
16
|
+
gifUrl: string;
|
|
17
|
+
inventoryItem?: InventoryItem;
|
|
18
|
+
}
|
|
19
|
+
export declare enum VINReelSortKey {
|
|
20
|
+
CREATED_AT = "createdAt",
|
|
21
|
+
YEAR = "year",
|
|
22
|
+
MAKE = "make",
|
|
23
|
+
MODEL = "model"
|
|
24
|
+
}
|
|
25
|
+
export declare enum PaginationConstants {
|
|
26
|
+
DESCENDING = "DESC",
|
|
27
|
+
ASCENDING = "ASC"
|
|
28
|
+
}
|
|
29
|
+
export type GetVINReelsParams = {
|
|
30
|
+
start?: number;
|
|
31
|
+
limit?: number;
|
|
32
|
+
search?: string;
|
|
33
|
+
order?: PaginationConstants;
|
|
34
|
+
sortKey?: VINReelSortKey;
|
|
35
|
+
};
|
|
36
|
+
interface IGetVINReelsResult {
|
|
37
|
+
count: number;
|
|
38
|
+
data: VINReel[];
|
|
39
|
+
}
|
|
40
|
+
export declare const useGetVINReelsQuery: (params: GetVINReelsParams) => import("react-query").UseQueryResult<IGetVINReelsResult, unknown>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type DropdownItemProps = {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
label: React.JSX.Element | string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
productFeatureId?: number;
|
|
7
|
+
nextPlan?: string;
|
|
8
|
+
showItem?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type Props = {
|
|
11
|
+
dropdownItems: DropdownItemProps[];
|
|
12
|
+
};
|
|
13
|
+
export declare const AddonDropdown: (props: Props) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MediaTools: () => JSX.Element;
|
|
@@ -100,6 +100,8 @@ export interface UserData {
|
|
|
100
100
|
vdpEnabled: boolean;
|
|
101
101
|
markVideosAsSent: number | null;
|
|
102
102
|
reactionsPreference: number | null;
|
|
103
|
+
spotlightEnabled?: number;
|
|
104
|
+
quickVideoAvatarEnabled?: number;
|
|
103
105
|
}
|
|
104
106
|
export interface IContextProps {
|
|
105
107
|
userData: UserData;
|
|
@@ -60,6 +60,7 @@ type ShowFeature = {
|
|
|
60
60
|
showWebsiteOverlayFeature: boolean;
|
|
61
61
|
showLanguageDropdownFeature: boolean;
|
|
62
62
|
showSsoFeature: boolean;
|
|
63
|
+
showVinReelsFeature: boolean;
|
|
63
64
|
};
|
|
64
65
|
type IConfigurationContext = ConfigurationProviderProps & ShowFeature & {
|
|
65
66
|
hasExternalJwt: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
type ContactUsModalContextType = {
|
|
3
|
+
showContactUsModal: boolean;
|
|
4
|
+
setShowContactUsModal: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const ContactUsModalProvider: ({ children }: Props) => JSX.Element;
|
|
10
|
+
export declare const useContactUsModal: () => ContactUsModalContextType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const useAIFeatureFlags: () => {
|
|
2
|
+
isAIScriptsEnabled: boolean;
|
|
3
|
+
isAIAssistantEnabled: boolean;
|
|
4
|
+
isAIAssistantEnabledForCustomer: boolean;
|
|
5
|
+
isVinReelsEnabled: boolean;
|
|
6
|
+
isAISpotlightEnabled: boolean;
|
|
7
|
+
isAISpotlightEnabledForCustomer: boolean;
|
|
8
|
+
isQuickVideosEnabled: boolean;
|
|
9
|
+
isSuggestedContentEnabled: boolean;
|
|
10
|
+
isAIMusicEnabled: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useAIFeatureAvailability: () => {
|
|
2
|
+
isPronunciationAvailable: boolean;
|
|
3
|
+
isDealershipHighlightsAvailable: boolean;
|
|
4
|
+
isPersonalizationAvailable: boolean;
|
|
5
|
+
isAIAssistantsAvailable: boolean;
|
|
6
|
+
isQuickVideosAvailable: boolean;
|
|
7
|
+
isVinReelsAvailable: boolean;
|
|
8
|
+
isAIConfigurationAvailable: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserData } from 'lib/context';
|
|
2
|
+
export declare const checkIfVinReelsAvailable: (userData: UserData) => boolean;
|
|
3
|
+
export declare const checkIfAISpotlightAvailable: (userData: UserData) => boolean;
|
|
4
|
+
export declare const checkIfAISpotlightAvailableForCustomer: (userData: UserData) => boolean;
|
|
5
|
+
export declare const checkIfQuickVideosAvailable: (userData: UserData) => boolean;
|
|
6
|
+
export declare const checkIfSuggestedContentAvailable: (userData: UserData) => boolean;
|
|
7
|
+
export declare const checkIfAIAssistantAvailable: (userData: UserData) => boolean;
|
|
8
|
+
export declare const checkIfAIAssistantAvailableForCustomer: (userData: UserData) => boolean;
|
|
9
|
+
export declare const checkIfAIMusicAvailable: (userData: UserData) => boolean;
|
|
10
|
+
export declare const checkIfAIScriptsAvailable: (userData: UserData) => boolean;
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const LAST_SELECTED_FOLDER_LOCAL_STORAGE_KEY_EMBED = "lastSelectedFolderEmbed";
|
|
2
|
+
interface LastSelectedFolder {
|
|
3
|
+
folderId: string | number;
|
|
4
|
+
userId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const getLastSelectedFolderFromLocalStorage: () => LastSelectedFolder | null;
|
|
7
|
+
export declare const setLastSelectedFolderToLocalStorage: (value: LastSelectedFolder) => void;
|
|
8
|
+
export declare const getValidInitialFolder: (userId: number) => number | string;
|
|
9
|
+
export {};
|
package/package.json
CHANGED
package/styled.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type IColors = Record<AvailableColorsType, IThemeColors>;
|
|
|
25
25
|
export type MainThemeColors = {
|
|
26
26
|
primary: IThemeColors;
|
|
27
27
|
primaryHover: string;
|
|
28
|
-
secondary: IThemeColors & { non_alpha: string };
|
|
28
|
+
secondary: IThemeColors & { non_alpha: string; text?: { color?: string } };
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
declare module 'styled-components' {
|