react-covideo-embed 0.1.33 → 0.1.34
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/lesaTV/LesaTV.d.ts +1 -0
- package/build/app/pages/lesaTV/components/PageInfo.d.ts +7 -0
- package/build/app/pages/lesaTV/components/Search.d.ts +6 -0
- package/build/app/pages/lesaTV/components/index.d.ts +2 -0
- package/build/app/pages/library/components/VideoItemThumbnail.d.ts +10 -0
- package/build/app/pages/record/screen/RecordScreen.d.ts +1 -1
- package/build/index.d.ts +3 -2
- package/build/index.js +246 -127
- package/build/lib/api/lesa/lesaKeys.d.ts +6 -0
- package/build/lib/api/lesa/useLesaTvVideosQuery.d.ts +27 -0
- package/build/lib/api/lesa/useLesaVideosMutation.d.ts +8 -0
- package/build/lib/api/videosApi.d.ts +2 -0
- package/build/lib/context/ConfigurationContext.d.ts +1 -0
- package/build/lib/hooks/useImageLoadRetry.d.ts +10 -0
- package/build/lib/hooks/useVideoLoadRetry.d.ts +12 -0
- package/build/lib/utils/functions.d.ts +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ILesaItem {
|
|
2
|
+
postingId: number;
|
|
3
|
+
stockNumber: string;
|
|
4
|
+
year: number;
|
|
5
|
+
make: string;
|
|
6
|
+
model: string;
|
|
7
|
+
vehicleCondition: VEHICLE_CONDITION;
|
|
8
|
+
video: Video | null;
|
|
9
|
+
}
|
|
10
|
+
declare enum VEHICLE_CONDITION {
|
|
11
|
+
NEW = "New",
|
|
12
|
+
USED = "Used"
|
|
13
|
+
}
|
|
14
|
+
interface Video {
|
|
15
|
+
url: string;
|
|
16
|
+
fileName: string;
|
|
17
|
+
}
|
|
18
|
+
type LesaParams = {
|
|
19
|
+
limit: number;
|
|
20
|
+
page: number;
|
|
21
|
+
search?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const useLesaTvVideosQuery: (params: LesaParams) => import("react-query").UseQueryResult<{
|
|
24
|
+
videos: ILesaItem[];
|
|
25
|
+
count: number;
|
|
26
|
+
}, unknown>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type LesaParams = {
|
|
2
|
+
url: string;
|
|
3
|
+
fileName: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const useLesaVideosCopyMutation: ({ onSuccesCallback, }: {
|
|
6
|
+
onSuccesCallback: () => void;
|
|
7
|
+
}) => import("react-query").UseMutationResult<import("axios").AxiosResponse<any>, unknown, LesaParams, unknown>;
|
|
8
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export type VideoRequest = {
|
|
|
15
15
|
vin?: string;
|
|
16
16
|
};
|
|
17
17
|
export type VideoListItem = {
|
|
18
|
+
processing: number;
|
|
18
19
|
id: string;
|
|
19
20
|
title: string;
|
|
20
21
|
recordDate: string;
|
|
@@ -25,6 +26,7 @@ export type VideoListItem = {
|
|
|
25
26
|
tags: object[];
|
|
26
27
|
videoRequest: VideoRequest;
|
|
27
28
|
folder: string;
|
|
29
|
+
autogeneratedThumbnail: string;
|
|
28
30
|
};
|
|
29
31
|
export type VideoUpdateBody = {
|
|
30
32
|
title?: string;
|
|
@@ -38,6 +38,7 @@ type ShowFeature = {
|
|
|
38
38
|
showReactionsFeature: boolean;
|
|
39
39
|
showAiAssistFeature: boolean;
|
|
40
40
|
showUpgradeMessageFeature: boolean;
|
|
41
|
+
showLesaTVFeature: boolean;
|
|
41
42
|
};
|
|
42
43
|
type IConfigurationContext = ConfigurationProviderProps & ShowFeature & {
|
|
43
44
|
hasExternalJwt: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
onLoad?: (width: number, height: number) => void;
|
|
4
|
+
};
|
|
5
|
+
declare const useImageLoadRetry: ({ src, onLoad }: Props) => {
|
|
6
|
+
imgRef: import("react").RefObject<HTMLImageElement>;
|
|
7
|
+
retryCount: number;
|
|
8
|
+
error: boolean;
|
|
9
|
+
};
|
|
10
|
+
export default useImageLoadRetry;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VideoListItem } from 'lib/api';
|
|
2
|
+
type Props = {
|
|
3
|
+
videoId: string | number;
|
|
4
|
+
checkField: keyof VideoListItem;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const useVideoLoadRetry: ({ videoId, checkField, enabled }: Props) => {
|
|
8
|
+
videoData: VideoListItem | null;
|
|
9
|
+
retryCount: number;
|
|
10
|
+
error: boolean;
|
|
11
|
+
};
|
|
12
|
+
export default useVideoLoadRetry;
|
|
@@ -17,4 +17,5 @@ export declare const isSafari: boolean;
|
|
|
17
17
|
export declare const toMB: (KB: number) => string;
|
|
18
18
|
export declare function capitalizeFirstLetter(string: string): string;
|
|
19
19
|
export declare function clearCookies(): void;
|
|
20
|
+
export declare const toMMSSTimestamp: (sec_num: number, fractionDigits?: number) => string;
|
|
20
21
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-covideo-embed",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Covideo platform as an embeddable React component.",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
"react-dom": "^18.2.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"react": "^18.2.0",
|
|
19
|
-
"react-dom": "^18.2.0",
|
|
20
18
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
21
19
|
"@svgr/webpack": "^8.1.0",
|
|
22
20
|
"@types/color-convert": "^2.0.0",
|
|
@@ -31,6 +29,8 @@
|
|
|
31
29
|
"@types/styled-components": "^5.1.26",
|
|
32
30
|
"css-loader": "^6.8.1",
|
|
33
31
|
"file-loader": "^6.2.0",
|
|
32
|
+
"react": "^18.2.0",
|
|
33
|
+
"react-dom": "^18.2.0",
|
|
34
34
|
"style-loader": "^3.3.3",
|
|
35
35
|
"ts-loader": "^9.4.4",
|
|
36
36
|
"typescript": "^4.9.3",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"react-beautiful-dnd": "^13.1.1",
|
|
56
56
|
"react-compound-slider": "^3.4.0",
|
|
57
57
|
"react-covideo-ai-assist": "0.0.19",
|
|
58
|
+
"react-covideo-common": "0.1.49",
|
|
58
59
|
"react-full-screen": "^1.1.1",
|
|
59
60
|
"react-icons": "^4.7.1",
|
|
60
61
|
"react-query": "^3.39.2",
|