react-covideo-embed 1.0.12 → 1.0.14

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,6 @@
1
+ type InformationProps = {
2
+ text: string;
3
+ width?: string;
4
+ };
5
+ export declare const InformationBox: ({ text, width }: InformationProps) => JSX.Element;
6
+ export {};
@@ -13,6 +13,8 @@ interface Props {
13
13
  confirmButtonText?: string;
14
14
  showDiscardIcon?: boolean;
15
15
  showSaveIcon?: boolean;
16
+ infoBoxText?: string;
17
+ disableSave?: boolean;
16
18
  }
17
- declare const RouteLeavingGuard: ({ when, navigate, shouldBlockNavigation, onConfirm, onDiscard, onStay, stay, title, text, discardButtonText, confirmButtonText, showDiscardIcon, showSaveIcon, }: Props) => JSX.Element;
19
+ declare const RouteLeavingGuard: ({ when, navigate, shouldBlockNavigation, onConfirm, onDiscard, onStay, stay, title, text, discardButtonText, confirmButtonText, showDiscardIcon, showSaveIcon, infoBoxText, disableSave, }: Props) => JSX.Element;
18
20
  export default RouteLeavingGuard;
@@ -1,6 +1,7 @@
1
1
  type Props = {
2
2
  open?: boolean;
3
- disabled?: boolean;
3
+ disableSave?: boolean;
4
+ infoBoxText?: string;
4
5
  title?: string;
5
6
  discardButtonText?: string;
6
7
  confirmButtonText?: string;
@@ -11,5 +12,5 @@ type Props = {
11
12
  onClickConfirmButton: () => void;
12
13
  handleModalClose?: () => void;
13
14
  };
14
- export declare const ModalLeave: ({ open, disabled, title, text, discardButtonText, confirmButtonText, onClickDiscardButton, onClickConfirmButton, showDiscardIcon, showSaveIcon, handleModalClose, }: Props) => JSX.Element | null;
15
+ export declare const ModalLeave: ({ open, disableSave, infoBoxText, title, text, discardButtonText, confirmButtonText, onClickDiscardButton, onClickConfirmButton, showDiscardIcon, showSaveIcon, handleModalClose, }: Props) => JSX.Element | null;
15
16
  export {};
@@ -4,3 +4,8 @@ export declare enum VideoStatus {
4
4
  Denied = "denied",
5
5
  Approved = "approved"
6
6
  }
7
+ export declare enum VideoEncodingStatus {
8
+ READY = 0,
9
+ PROCESSING = 1,
10
+ FAILED = 2
11
+ }
@@ -13,3 +13,4 @@ export declare enum VideoType {
13
13
  ServiceReminder = "Service reminder",
14
14
  QuoteRequest = "Quote request"
15
15
  }
16
+ export declare const EXTERNAL_VIDEO_PREFIX = "~~~external-video~~~";
@@ -1,7 +1,7 @@
1
1
  import { VideoListItem } from 'lib/api';
2
2
  type Props = {
3
3
  videoId: string | number;
4
- checkField: keyof VideoListItem;
4
+ checkField?: keyof VideoListItem;
5
5
  enabled: boolean;
6
6
  };
7
7
  declare const useVideoLoadRetry: ({ videoId, checkField, enabled }: Props) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",