react-covideo-embed 0.1.23 → 0.1.25
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/index.js +153 -129
- package/build/lib/api/quckshareApi.d.ts +17 -0
- package/build/lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation.d.ts +4 -3
- package/build/lib/hooks/useCopyClipboard.d.ts +2 -1
- package/build/lib/utils/automotiveRolePermissionChecks.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type GetQuickshareParams = {
|
|
2
|
+
videoId: number | string;
|
|
3
|
+
linksetId?: number | string;
|
|
4
|
+
templateId?: number | string;
|
|
5
|
+
overlayId?: number | string;
|
|
6
|
+
vin?: number | string;
|
|
7
|
+
markAsSentConfirmed?: boolean | undefined;
|
|
8
|
+
videoActivityType?: string | undefined;
|
|
9
|
+
iconId?: number;
|
|
10
|
+
format?: string;
|
|
11
|
+
useAutomotive?: string | boolean | undefined;
|
|
12
|
+
allowVideoReply?: string | boolean | undefined;
|
|
13
|
+
allowReactions?: string | boolean | undefined;
|
|
14
|
+
notifyUser?: string | boolean | undefined;
|
|
15
|
+
reuseShortUrl?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const getQuickshareDetails: (videoId: string | number, params?: Omit<GetQuickshareParams, 'videoId'>) => Promise<any>;
|
|
@@ -6,9 +6,9 @@ export interface MarkAsSentResponse {
|
|
|
6
6
|
legacyHtml: string;
|
|
7
7
|
shortUrlCode: string;
|
|
8
8
|
}
|
|
9
|
-
export type QuickShareTypes = 'html_code' | 'url' | 'crm_code' | 'quickshare' | '';
|
|
9
|
+
export type QuickShareTypes = 'html_code' | 'url' | 'crm_code' | 'quickshare' | 'insert' | '';
|
|
10
10
|
export interface IQuickShareMarkAsSentParams {
|
|
11
|
-
videoId: string;
|
|
11
|
+
videoId: number | string;
|
|
12
12
|
linksetId?: number | string;
|
|
13
13
|
templateId?: number | string;
|
|
14
14
|
overlayId?: number | string;
|
|
@@ -21,6 +21,7 @@ export interface IQuickShareMarkAsSentParams {
|
|
|
21
21
|
allowVideoReply?: string | boolean | undefined;
|
|
22
22
|
allowReactions?: string | boolean | undefined;
|
|
23
23
|
notifyUser?: string | boolean | undefined;
|
|
24
|
-
|
|
24
|
+
toastType?: QuickShareTypes;
|
|
25
|
+
reuseShortUrl?: boolean;
|
|
25
26
|
}
|
|
26
27
|
export declare const useQuickShareMarkAsSentMutation: (onSuccessCallback: () => void) => import("react-query").UseMutationResult<MarkAsSentResponse, unknown, IQuickShareMarkAsSentParams, unknown>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IQuickShareMarkAsSentParams } from './query/markAsSent/useQuickShareMarkAsSentMutation';
|
|
1
2
|
export declare const useCopyClipboard: () => {
|
|
2
|
-
copyClipboard: (url: string, html
|
|
3
|
+
copyClipboard: (url: string, html: string, params: IQuickShareMarkAsSentParams) => Promise<void>;
|
|
3
4
|
};
|
|
@@ -11,3 +11,4 @@ export declare const checkIfIMSEnabled: (userData: UserData) => boolean;
|
|
|
11
11
|
export declare const checkIfVdpEnabled: (userData: UserData) => boolean;
|
|
12
12
|
export declare const checkIfVdpAllowed: (userData: UserData) => boolean;
|
|
13
13
|
export declare const getAutomotiveRoleAsString: (automotiveRole: number) => string;
|
|
14
|
+
export declare const getMarkAsSentValue: (userData: UserData) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-covideo-embed",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Covideo platform as an embeddable React component.",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"rc-progress": "^3.4.1",
|
|
56
56
|
"react-beautiful-dnd": "^13.1.1",
|
|
57
57
|
"react-compound-slider": "^3.4.0",
|
|
58
|
-
"react-covideo-ai-assist": "0.0.
|
|
58
|
+
"react-covideo-ai-assist": "0.0.17",
|
|
59
59
|
"react-full-screen": "^1.1.1",
|
|
60
60
|
"react-icons": "^4.7.1",
|
|
61
61
|
"react-query": "^3.39.2",
|