react-covideo-embed 1.0.61 → 1.0.63

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,7 @@
1
+ import type { AxiosError } from 'axios';
2
+ type LoginParams = {
3
+ id: string;
4
+ relayState?: string;
5
+ };
6
+ export declare const useSSOLoginMutation: () => import("react-query").UseMutationResult<void, AxiosError<any>, LoginParams, unknown>;
7
+ export {};
@@ -1,4 +1,10 @@
1
1
  import { FieldMetaProps } from 'formik';
2
- export declare const FormikErrorMessage: ({ meta }: {
2
+ import { CSSProperties } from 'react';
3
+ interface IProps {
4
+ errorWrapper?: CSSProperties | undefined;
5
+ }
6
+ export declare const FormikErrorMessage: ({ meta, extendStyles, }: {
3
7
  meta: FieldMetaProps<any>;
8
+ extendStyles?: IProps;
4
9
  }) => JSX.Element;
10
+ export {};
@@ -1,8 +1,16 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
+ import { FlexProps } from '../styles/layout';
2
3
  interface CustomInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
4
  name: string;
4
- label: string;
5
+ label?: string;
6
+ info?: string | React.ReactNode;
5
7
  isRequired: boolean;
8
+ extendStyles?: {
9
+ errorWrapper?: CSSProperties;
10
+ labelStyles?: CSSProperties;
11
+ inputWrapper?: FlexProps;
12
+ mainWrapper?: FlexProps;
13
+ };
6
14
  }
7
- export declare const FormikInputField: ({ label, isRequired, ...props }: CustomInputProps) => JSX.Element;
15
+ export declare const FormikInputField: React.ForwardRefExoticComponent<CustomInputProps & React.RefAttributes<HTMLInputElement>>;
8
16
  export {};
@@ -1,8 +1,12 @@
1
1
  import React from 'react';
2
+ import { CSSProperties } from 'styled-components';
2
3
  interface IFormikLabelProps {
3
4
  name?: string;
4
5
  label: string;
5
- isRequired: boolean;
6
+ isRequired?: boolean;
7
+ disabled?: boolean;
8
+ info?: string | React.ReactNode;
9
+ labelStyles?: CSSProperties | undefined;
6
10
  }
7
11
  export declare const FormikLabel: React.FC<IFormikLabelProps>;
8
12
  export {};
@@ -30,4 +30,30 @@ interface IStack {
30
30
  height?: string;
31
31
  }
32
32
  export declare const Stack: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IStack, never>;
33
+ export declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps, never>;
34
+ export interface FlexProps {
35
+ flex?: string | number;
36
+ flexBasis?: string;
37
+ flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
38
+ flexGrow?: number;
39
+ flexShrink?: number;
40
+ flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
41
+ gap?: string;
42
+ alignItems?: 'stretch' | 'center' | 'flex-start' | 'flex-end' | 'baseline';
43
+ justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
44
+ width?: string;
45
+ minWidth?: string;
46
+ maxWidth?: string;
47
+ height?: string;
48
+ margin?: string;
49
+ padding?: string;
50
+ border?: string;
51
+ borderLeft?: string;
52
+ borderBottom?: string;
53
+ borderRadius?: string;
54
+ whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
55
+ hideOnMobile?: boolean;
56
+ backgroundColor?: string;
57
+ cursor?: string;
58
+ }
33
59
  export {};
@@ -83,6 +83,7 @@ export interface UserData {
83
83
  customerId: string;
84
84
  resellerReportingEnabled: number;
85
85
  };
86
+ eleadDMSEmployeeID: string | null;
86
87
  videoCount: number;
87
88
  totalLogins: number;
88
89
  droplrAccess: boolean;
@@ -1,7 +1,7 @@
1
1
  export declare enum SelectRecordingType {
2
2
  SCREEN = "Screen",
3
- CAM = "Cam",
4
- SCREEN_AND_CAM = "Screen+Cam"
3
+ CAM = "Camera",
4
+ SCREEN_AND_CAM = "Screen+Camera"
5
5
  }
6
6
  export declare enum RecordingToolAction {
7
7
  OPENED = "Opened",
@@ -1,2 +1,2 @@
1
1
  import { GTMSaveNewVideoInteractionEventArguments } from './types';
2
- export declare function saveNewVideoInteractionEvent({ videoAttributes, type, vehicleData, }: GTMSaveNewVideoInteractionEventArguments): void;
2
+ export declare function saveNewVideoInteractionEvent({ videoAttributes, type, vehicleData, mergedIds, }: GTMSaveNewVideoInteractionEventArguments): void;
@@ -25,7 +25,10 @@ export declare enum GTMEventName {
25
25
  }
26
26
  export declare enum PageLocation {
27
27
  SEND_SHARE = "Send & Share",
28
- VIDEOS = "Videos"
28
+ VIDEOS = "Videos",
29
+ RECORD = "Record",
30
+ MERGE = "Merge",
31
+ DETAILS = "Details"
29
32
  }
30
33
  export declare enum PageUrl {
31
34
  SEND_SHARE = "https://video.connectcdk.com/embed/send",
@@ -37,7 +40,6 @@ export declare enum PageUrl {
37
40
  export declare enum PageSection {
38
41
  SHARE = "Share",
39
42
  OVERVIEW = "Overview",
40
- MERGE = "Merge",
41
43
  RECORD = "Record",
42
44
  RECORDER = "Recorder",
43
45
  DETAILS = "Details",
@@ -55,7 +57,7 @@ export interface GTMPageviewAttributes {
55
57
  * Typically fixed to `'CRM Video Embed'`.
56
58
  * @example "'CRM Video Embed'"
57
59
  */
58
- page_application: GTMPageApplication.CRM_VIDEO_EMBED;
60
+ application: GTMPageApplication.CRM_VIDEO_EMBED;
59
61
  /**
60
62
  * Full URL of the page viewed, including protocol, domain, and path.
61
63
  * @example "https://video.connectcdk.com/reports/companies"
@@ -66,7 +68,7 @@ export interface GTMPageviewAttributes {
66
68
  * (e.g., "Reports", "Library", "Dashboard").
67
69
  * @example "Reports"
68
70
  */
69
- page_location: string;
71
+ page_location?: string;
70
72
  /**
71
73
  * **Lower-level location within the selected `page_section`.**
72
74
  * Represents a specific page or sub-route under that section.
@@ -30,27 +30,27 @@ export declare const TRACKED_PAGES: {
30
30
  };
31
31
  readonly VIDEOS_MERGE: {
32
32
  readonly pageUrl: PageUrl.MERGE;
33
- readonly pageLocation: PageLocation.VIDEOS;
34
- readonly pageSection: PageSection.MERGE;
33
+ readonly pageLocation: PageLocation.MERGE;
34
+ readonly pageSection: PageSection.DETAILS;
35
35
  };
36
36
  readonly VIDEOS_RECORD: {
37
37
  readonly pageUrl: PageUrl.RECORD;
38
- readonly pageLocation: PageLocation.VIDEOS;
39
- readonly pageSection: PageSection.RECORD;
38
+ readonly pageLocation: PageLocation.RECORD;
39
+ readonly pageSection: PageSection.RECORDER;
40
40
  };
41
41
  readonly VIDEOS_RECORDER: {
42
42
  readonly pageUrl: PageUrl.RECORD;
43
- readonly pageLocation: PageLocation.VIDEOS;
43
+ readonly pageLocation: PageLocation.RECORD;
44
44
  readonly pageSection: PageSection.RECORDER;
45
45
  };
46
- readonly VIDEOS_RECORD_DETAILS: {
46
+ readonly RECORD_VIDEOS_DETAILS: {
47
47
  readonly pageUrl: PageUrl.RECORD;
48
- readonly pageLocation: PageLocation.VIDEOS;
48
+ readonly pageLocation: PageLocation.RECORD;
49
49
  readonly pageSection: PageSection.DETAILS;
50
50
  };
51
51
  readonly VIDEOS_VOICE_RECORDER: {
52
52
  readonly pageUrl: PageUrl.VOICE_RECORDER;
53
- readonly pageSection: PageLocation.VIDEOS;
53
+ readonly pageSection: PageLocation.DETAILS;
54
54
  readonly pageLocation: PageSection.VOICE_RECORDER;
55
55
  };
56
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",