react-covideo-embed 1.0.76 → 1.0.79
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/recordv1/detailsPreview/types.d.ts +2 -4
- package/build/app/pages/recordv1/useVideoRecorderUpload.d.ts +4 -0
- 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 +111 -105
- package/build/index.js.LICENSE.txt +10 -0
- package/build/lib/api/videos/useVideoQuery.d.ts +2 -0
- package/build/lib/api/vinReel/useCopyVINReelMutation.d.ts +8 -0
- package/build/lib/api/vinReel/useGetVINReelsQuery.d.ts +42 -0
- package/build/lib/components/AddonDropdown.d.ts +14 -0
- package/build/lib/components/mediaTools/index.d.ts +1 -0
- package/build/lib/const/Folder.d.ts +5 -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/GTM/actions/video/saveNewVideoInteraction.d.ts +1 -1
- package/build/lib/hooks/GTM/actions/video/types.d.ts +2 -0
- package/build/lib/hooks/GTM/actions/video/utils.d.ts +86 -0
- package/build/lib/hooks/GTM/actions/videoPlayer/index.d.ts +1 -0
- package/build/lib/hooks/GTM/actions/videoPlayer/interaction.d.ts +4 -0
- package/build/lib/hooks/GTM/actions/videoPlayer/types.d.ts +5 -0
- package/build/lib/hooks/GTM/types.d.ts +2 -1
- package/build/lib/hooks/GTM/useGTMAnalytics.d.ts +11 -9
- 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/automotiveRolePermissionChecks.d.ts +0 -1
- package/build/lib/utils/folders/folderSelection.d.ts +9 -0
- package/package.json +2 -2
- package/styled.d.ts +1 -1
|
@@ -621,6 +621,16 @@ and limitations under the License.
|
|
|
621
621
|
* LICENSE file in the root directory of this source tree.
|
|
622
622
|
*/
|
|
623
623
|
|
|
624
|
+
/**
|
|
625
|
+
* @license React
|
|
626
|
+
* use-sync-external-store-shim.production.js
|
|
627
|
+
*
|
|
628
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
629
|
+
*
|
|
630
|
+
* This source code is licensed under the MIT license found in the
|
|
631
|
+
* LICENSE file in the root directory of this source tree.
|
|
632
|
+
*/
|
|
633
|
+
|
|
624
634
|
/**
|
|
625
635
|
* CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}.
|
|
626
636
|
* @summary HTML2Canvas recording into video WebM.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InventoryItem } from 'react-covideo-ai-assist/dist/ai-assist/types';
|
|
1
2
|
export interface IVideoItemResponse {
|
|
2
3
|
id: number;
|
|
3
4
|
flvName: string;
|
|
@@ -44,6 +45,7 @@ export interface VideoRequest {
|
|
|
44
45
|
emailStatus: string;
|
|
45
46
|
createdAt: Date;
|
|
46
47
|
deletedAt: null;
|
|
48
|
+
inventoryItem: InventoryItem;
|
|
47
49
|
}
|
|
48
50
|
export declare const getVideo: (videoId: string) => Promise<IVideoItemResponse>;
|
|
49
51
|
export declare const useVideoQuery: (videoId: string) => import("react-query").UseQueryResult<IVideoItemResponse, unknown>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface CopyVINReelData {
|
|
2
|
+
itemId: number;
|
|
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,42 @@
|
|
|
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
|
+
itemId: number;
|
|
10
|
+
vin: string;
|
|
11
|
+
customerId: number;
|
|
12
|
+
dealerId: number;
|
|
13
|
+
status: VINReelStatus;
|
|
14
|
+
videoUrl: string;
|
|
15
|
+
thumbnailUrl: string;
|
|
16
|
+
videoLength: number;
|
|
17
|
+
gifUrl: string;
|
|
18
|
+
inventoryItem?: InventoryItem;
|
|
19
|
+
}
|
|
20
|
+
export declare enum VINReelSortKey {
|
|
21
|
+
CREATED_AT = "createdAt",
|
|
22
|
+
YEAR = "year",
|
|
23
|
+
MAKE = "make",
|
|
24
|
+
MODEL = "model"
|
|
25
|
+
}
|
|
26
|
+
export declare enum PaginationConstants {
|
|
27
|
+
DESCENDING = "DESC",
|
|
28
|
+
ASCENDING = "ASC"
|
|
29
|
+
}
|
|
30
|
+
export type GetVINReelsParams = {
|
|
31
|
+
start?: number;
|
|
32
|
+
limit?: number;
|
|
33
|
+
search?: string;
|
|
34
|
+
order?: PaginationConstants;
|
|
35
|
+
sortKey?: VINReelSortKey;
|
|
36
|
+
};
|
|
37
|
+
interface IGetVINReelsResult {
|
|
38
|
+
count: number;
|
|
39
|
+
data: VINReel[];
|
|
40
|
+
}
|
|
41
|
+
export declare const useGetVINReelsQuery: (params: GetVINReelsParams) => import("react-query").UseQueryResult<IGetVINReelsResult, unknown>;
|
|
42
|
+
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;
|
|
@@ -4,6 +4,11 @@ export declare const DEFAULT_FOLDER_NAMES: {
|
|
|
4
4
|
PRIMARY: string;
|
|
5
5
|
PRIVATE: string;
|
|
6
6
|
VAULT: string;
|
|
7
|
+
VIDEO_REPLIES: string;
|
|
8
|
+
VEHICLE_WALKAROUNDS: string;
|
|
9
|
+
APPOINTMENT_REMINDERS: string;
|
|
10
|
+
INTRODUCTIONS: string;
|
|
11
|
+
POST_SALE_THANK_YOU: string;
|
|
7
12
|
};
|
|
8
13
|
export declare const COMPANY_FOLDER_ID = -1;
|
|
9
14
|
export declare const SHARED_FOLDER_PREFIX = "~~shared~~";
|
|
@@ -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 {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GTMSaveNewVideoInteractionEventArguments } from './types';
|
|
2
|
-
export declare function saveNewVideoInteractionEvent({ videoAttributes, type, vehicleData, mergedIds, }: GTMSaveNewVideoInteractionEventArguments): void;
|
|
2
|
+
export declare function saveNewVideoInteractionEvent({ videoAttributes, type, vehicleData, mergedIds, changedFieldKeys, changes, }: GTMSaveNewVideoInteractionEventArguments): void;
|
|
@@ -35,6 +35,8 @@ export interface GTMSaveNewVideoInteractionEventArguments {
|
|
|
35
35
|
type: GTMSaveNewVideoInteractionTypes;
|
|
36
36
|
vehicleData?: GTMVehicleAttributes;
|
|
37
37
|
mergedIds?: number[];
|
|
38
|
+
changedFieldKeys?: string[];
|
|
39
|
+
changes?: Record<string, any>;
|
|
38
40
|
}
|
|
39
41
|
export type VideoAttributeInteractionInteractionEventArgs = {
|
|
40
42
|
videoAttributes: CovideoGTMVideoAttributes;
|
|
@@ -1,3 +1,89 @@
|
|
|
1
1
|
import { CovideoGTMVideoMessageProperties, GTMVideoMessageProperties } from './types';
|
|
2
2
|
export declare function mapToGtmVideoMessageProperties(item?: CovideoGTMVideoMessageProperties): GTMVideoMessageProperties;
|
|
3
3
|
export declare function getVideoDurationMs(file: File, timeoutMs?: number): Promise<number>;
|
|
4
|
+
interface GetChangedFieldsOptions {
|
|
5
|
+
initialValues: Record<string, any>;
|
|
6
|
+
currentValues: Record<string, any>;
|
|
7
|
+
trackedFields?: string[];
|
|
8
|
+
trackedArrayFields?: Record<string, string[]>;
|
|
9
|
+
onlyChangedList?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* BEFORE MAKING ANY CHANGES:
|
|
13
|
+
* PLEASE READ THIS COMMENT AND THE TESTS IN `test-getChangedFields.ts` TO UNDERSTAND HOW THIS FUNCTION WORKS.
|
|
14
|
+
*
|
|
15
|
+
* Compares `initialValues` vs `currentValues` and returns which tracked fields changed.
|
|
16
|
+
*
|
|
17
|
+
* The function works in two steps:
|
|
18
|
+
* 1) `flattenObject(...)` flattens the input objects into a `{ [path]: string }` map,
|
|
19
|
+
* but **only for paths you explicitly track** via `trackedFields` / `trackedArrayFields`.
|
|
20
|
+
* 2) `getChangedFields(...)` diffs the two flattened maps and returns:
|
|
21
|
+
* - `changed_fields`: list of changed field paths
|
|
22
|
+
* - optionally (`onlyChangedList: false`) `<path>_before` and `<path>_after` values
|
|
23
|
+
*
|
|
24
|
+
* @param initialValues - baseline object (e.g. values on load)
|
|
25
|
+
* @param currentValues - current object (e.g. values after user edits)
|
|
26
|
+
* @param trackedFields - list of field paths to track (supports dot paths)
|
|
27
|
+
* - Simple field: `"title"`
|
|
28
|
+
* - Nested field: `"company.name"` (tracks only that nested path)
|
|
29
|
+
* @param trackedArrayFields - map of array field name -> list of item subfields to track
|
|
30
|
+
* - Example: `{ links: ["linkText", "itemType"] }` tracks `links.<index>.linkText`, etc.
|
|
31
|
+
* - Note: this is intended for arrays of objects at the root key (or within that root branch)
|
|
32
|
+
* @param onlyChangedList - when true, return only `changed_fields`
|
|
33
|
+
*
|
|
34
|
+
* @returns An object containing:
|
|
35
|
+
* - `changed_fields: string[]`
|
|
36
|
+
* - and when `onlyChangedList` is false:
|
|
37
|
+
* - `<path>_before: string`
|
|
38
|
+
* - `<path>_after: string`
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* // 1) Simple key/value pairs
|
|
42
|
+
* const res = getChangedFields({
|
|
43
|
+
* initialValues: { title: "A", company: "X", ignored: 123 },
|
|
44
|
+
* currentValues: { title: "B", company: "X", ignored: 999 },
|
|
45
|
+
* trackedFields: ["title", "company"],
|
|
46
|
+
* onlyChangedList: false,
|
|
47
|
+
* });
|
|
48
|
+
*
|
|
49
|
+
* // res.changed_fields -> ["title"]
|
|
50
|
+
* // res.title_before -> "A"
|
|
51
|
+
* // res.title_after -> "B"
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* // 2) Nested object fields (dot paths)
|
|
55
|
+
* // Track specific nested properties with `trackedFields`:
|
|
56
|
+
* const res = getChangedFields({
|
|
57
|
+
* initialValues: {
|
|
58
|
+
* videoSource: { label: "OBS Virtual Camera", value: "abc" },
|
|
59
|
+
* },
|
|
60
|
+
* currentValues: {
|
|
61
|
+
* videoSource: { label: "FaceTime HD Camera", value: "def" },
|
|
62
|
+
* },
|
|
63
|
+
* trackedFields: ["videoSource.label"],
|
|
64
|
+
* onlyChangedList: true,
|
|
65
|
+
* });
|
|
66
|
+
*
|
|
67
|
+
* // res.changed_fields -> ["videoSource.label"]
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* // 3) Array of objects
|
|
71
|
+
* // Track specific subfields on each array item using `trackedArrayFields`.
|
|
72
|
+
* const res = getChangedFields({
|
|
73
|
+
* initialValues,
|
|
74
|
+
* currentValues: data,
|
|
75
|
+
* trackedFields: ["title", "company"],
|
|
76
|
+
* trackedArrayFields: {
|
|
77
|
+
* links: ["linkText", "itemType", "fileThumbnail", "newWindow"],
|
|
78
|
+
* },
|
|
79
|
+
* onlyChangedList: false,
|
|
80
|
+
* });
|
|
81
|
+
*
|
|
82
|
+
* // If `links` changes, paths look like:
|
|
83
|
+
* // "links.0.linkText", "links.2.newWindow", ...
|
|
84
|
+
* // and you get before/after fields for each changed path.
|
|
85
|
+
*/
|
|
86
|
+
export declare function getChangedFields({ initialValues, currentValues, trackedFields, trackedArrayFields, onlyChangedList, }: GetChangedFieldsOptions): {
|
|
87
|
+
changed_fields: string[];
|
|
88
|
+
};
|
|
89
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interaction';
|
|
@@ -21,7 +21,8 @@ export declare enum GTMEventName {
|
|
|
21
21
|
DISCARD_VIDEO = "Discard Video",
|
|
22
22
|
RECENTLY_DELETED_INTERACTION = "Recently Deleted Interaction",
|
|
23
23
|
NEW_LEAD_ADDED = "New Lead Added",
|
|
24
|
-
CREATE_NEW_MEETING = "Create New Meeting"
|
|
24
|
+
CREATE_NEW_MEETING = "Create New Meeting",
|
|
25
|
+
VIDEO_PLAYER_INTERACTION = "Video Player Interaction"
|
|
25
26
|
}
|
|
26
27
|
export declare enum PageLocation {
|
|
27
28
|
SEND_SHARE = "Send & Share",
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
+
import { CovideoGTMVehicleItem } from './types';
|
|
1
2
|
import { GTMSaveNewVideoInteractionEventArguments, GTMVideoInteractonEventArguments, GTMVideoMessageInteraction, VideoAttributeInteractionInteractionEventArgs } from './actions/video/types';
|
|
2
3
|
import { selectRecordingTypeEvent, recordingToolIntearctionEvent, stopRecordingEvent, startRecordingEvent, addVideoAttributeEvent, discardVideoEvent } from './actions/recording';
|
|
4
|
+
import { videoPlayerInteractionsEvent } from './actions/videoPlayer';
|
|
3
5
|
type TrackVideoInteractionArgs = {
|
|
4
|
-
|
|
6
|
+
vehicle?: CovideoGTMVehicleItem;
|
|
5
7
|
} & Omit<GTMVideoInteractonEventArguments, 'vehicleData'>;
|
|
6
8
|
type TrackSaveNewVideoArgs = {
|
|
7
|
-
|
|
9
|
+
vehicle?: CovideoGTMVehicleItem;
|
|
8
10
|
} & Omit<GTMSaveNewVideoInteractionEventArguments, 'vehicleData'>;
|
|
9
11
|
type TrackVideoAttributeInteractionArgs = VideoAttributeInteractionInteractionEventArgs & {
|
|
10
|
-
|
|
12
|
+
vehicle?: CovideoGTMVehicleItem;
|
|
11
13
|
};
|
|
12
14
|
type TrackGTMVideoMessageInteractionEvent = GTMVideoMessageInteraction & {
|
|
13
|
-
|
|
15
|
+
vehicle?: CovideoGTMVehicleItem;
|
|
14
16
|
};
|
|
15
17
|
export declare function useGTMAnalytics(): {
|
|
16
|
-
trackGTMVideoInteractionEvent: (({
|
|
17
|
-
trackGTMVideoMessageInteractionEvent: (({
|
|
18
|
-
trackGTMSaveNewVideoInteractionEvent: (({
|
|
19
|
-
trackGTMVideoAttributeInteractionInteractionEvent: (({
|
|
18
|
+
trackGTMVideoInteractionEvent: (({ vehicle, ...rest }: TrackVideoInteractionArgs) => Promise<void>) | undefined;
|
|
19
|
+
trackGTMVideoMessageInteractionEvent: (({ vehicle, ...rest }: TrackGTMVideoMessageInteractionEvent) => Promise<void>) | undefined;
|
|
20
|
+
trackGTMSaveNewVideoInteractionEvent: (({ vehicle, ...rest }: TrackSaveNewVideoArgs) => Promise<void>) | undefined;
|
|
21
|
+
trackGTMVideoAttributeInteractionInteractionEvent: (({ vehicle, videoAttributes, }: TrackVideoAttributeInteractionArgs) => Promise<void>) | undefined;
|
|
20
22
|
trackGTMRecordingToolIntearctionEvent: typeof recordingToolIntearctionEvent | undefined;
|
|
21
23
|
trackGTMSelectRecordingTypeEvent: typeof selectRecordingTypeEvent | undefined;
|
|
22
24
|
trackGTMStopRecordingEvent: typeof stopRecordingEvent | undefined;
|
|
23
25
|
trackGTMStartRecordingEvent: typeof startRecordingEvent | undefined;
|
|
24
26
|
trackGTMAddVideoAttributeEvent: typeof addVideoAttributeEvent | undefined;
|
|
25
27
|
trackGTMDiscardVideoEvent: typeof discardVideoEvent | undefined;
|
|
26
|
-
|
|
28
|
+
trackVideoPlayerInteractionsEvent: typeof videoPlayerInteractionsEvent | undefined;
|
|
27
29
|
};
|
|
28
30
|
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
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UserData } from 'lib/context';
|
|
2
|
-
export declare const checkIsIMSEnabled: (userData: UserData) => boolean;
|
|
3
2
|
export declare const checkIfAutomotive: (userData: UserData) => boolean;
|
|
4
3
|
export declare const checkIfAutomotiveServiceRole: (userData: UserData) => boolean;
|
|
5
4
|
export declare const checkIfAutomotiveSalesRole: (userData: UserData) => boolean;
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-covideo-embed",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.79",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Covideo platform as an embeddable React component.",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"rc-progress": "^3.4.1",
|
|
79
79
|
"react-beautiful-dnd": "^13.1.1",
|
|
80
80
|
"react-compound-slider": "^3.4.0",
|
|
81
|
-
"react-covideo-ai-assist": "0.0.
|
|
81
|
+
"react-covideo-ai-assist": "0.0.41",
|
|
82
82
|
"react-covideo-common": "0.1.71",
|
|
83
83
|
"react-dropzone": "11.3.2",
|
|
84
84
|
"react-full-screen": "^1.1.1",
|
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' {
|