react-covideo-embed 0.1.20 → 0.1.22

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.
@@ -0,0 +1,14 @@
1
+ import { VideoShareSetData } from 'app/pages/insertVideo/InsertVideo';
2
+ import { IQuickShareMarkAsSentParams } from 'lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation';
3
+ type Props = {
4
+ handleModalClose: () => void;
5
+ quickShareMarkAsSentHandler: (params: Omit<IQuickShareMarkAsSentParams, 'videoId'>) => void;
6
+ isQuickShareLoading?: boolean;
7
+ markAsSentPayload: Omit<IQuickShareMarkAsSentParams, 'videoId' | 'markAsSentConfirmed'>;
8
+ getMarkAsSentPayload?: () => Promise<{
9
+ videoShareSetData: VideoShareSetData;
10
+ useAutomotive: boolean;
11
+ }>;
12
+ };
13
+ export declare const ModalQuickShareMarkAsSent: ({ handleModalClose, quickShareMarkAsSentHandler, isQuickShareLoading, markAsSentPayload, getMarkAsSentPayload, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,26 @@
1
+ export interface MarkAsSentResponse {
2
+ key: string;
3
+ url: string;
4
+ html: string;
5
+ thumbnail: string;
6
+ legacyHtml: string;
7
+ shortUrlCode: string;
8
+ }
9
+ export type QuickShareTypes = 'html_code' | 'url' | 'crm_code' | 'quickshare' | '';
10
+ export interface IQuickShareMarkAsSentParams {
11
+ videoId: string;
12
+ linksetId?: number | string;
13
+ templateId?: number | string;
14
+ overlayId?: number | string;
15
+ vin?: number | string;
16
+ markAsSentConfirmed?: boolean | undefined;
17
+ videoActivityType?: string | undefined;
18
+ iconId?: number;
19
+ format?: string;
20
+ useAutomotive?: string | boolean | undefined;
21
+ allowVideoReply?: string | boolean | undefined;
22
+ allowReactions?: string | boolean | undefined;
23
+ notifyUser?: string | boolean | undefined;
24
+ type: QuickShareTypes;
25
+ }
26
+ export declare const useQuickShareMarkAsSentMutation: (onSuccessCallback: () => void) => import("react-query").UseMutationResult<MarkAsSentResponse, unknown, IQuickShareMarkAsSentParams, unknown>;
@@ -0,0 +1,3 @@
1
+ export declare const useCopyClipboard: () => {
2
+ copyClipboard: (url: string, html?: string) => Promise<void>;
3
+ };
@@ -0,0 +1,15 @@
1
+ import { VideoListItem } from 'lib/api';
2
+ import { VideoListAutomotiveItem, VideoRequest } from 'lib/context';
3
+ import { IQuickShareMarkAsSentParams } from 'lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation';
4
+ interface IProps {
5
+ video: VideoListAutomotiveItem | VideoListItem | number | undefined;
6
+ videoRequest?: VideoRequest;
7
+ setShowModalQuickShareMarkAsSent: (showModalQuickShareMarkAsSent: boolean) => void;
8
+ handleOnMarkAsSentSuccessCallback?: () => void;
9
+ }
10
+ export declare const useQuickShare: ({ video, videoRequest, setShowModalQuickShareMarkAsSent, handleOnMarkAsSentSuccessCallback, }: IProps) => {
11
+ onQuickShareButtonClick: ({ videoActivityType, ...rest }: Omit<IQuickShareMarkAsSentParams, 'videoId'>) => void | Promise<import("lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation").MarkAsSentResponse>;
12
+ isQuickshareLoading: boolean;
13
+ onQuickShareMutationHandler: ({ markAsSentConfirmed, videoActivityType, ...rest }: Omit<IQuickShareMarkAsSentParams, 'videoId'>) => Promise<import("lib/hooks/query/markAsSent/useQuickShareMarkAsSentMutation").MarkAsSentResponse>;
14
+ };
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",
@@ -1,11 +0,0 @@
1
- export type GetQuickshareParams = {
2
- templateId?: number | string;
3
- linksetId?: number | string;
4
- overlayId?: number | string;
5
- vin?: number | string;
6
- format?: string;
7
- useAutomotive?: boolean;
8
- allowVideoReply?: boolean;
9
- allowReactions?: boolean;
10
- };
11
- export declare const getQuickshareDetails: (videoId: string | number, params?: GetQuickshareParams) => Promise<any>;
@@ -1,6 +0,0 @@
1
- type Props = {
2
- handleModalClose: () => void;
3
- handleSubmit: () => Promise<void>;
4
- };
5
- export declare const ModalMarkAsSent: ({ handleModalClose, handleSubmit }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,15 +0,0 @@
1
- export type VideoShareLinkData = {
2
- url: string;
3
- html: string;
4
- thumbnail: string;
5
- key?: string;
6
- };
7
- export type VideoShareSetData = {
8
- videoId: string;
9
- templateId: number;
10
- linksetId?: string | number;
11
- overlayId?: string | number;
12
- vin: string;
13
- allowReactions?: boolean;
14
- };
15
- export declare const getExpressLinkWithData: (videoShareSetData: VideoShareSetData, useAutomotive?: boolean) => Promise<VideoShareLinkData>;