@innovatrics/dot-face-auto-capture
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
declare module "common/utils/commonUtils" { | ||
@@ -103,2 +104,5 @@ import { CSSObject } from 'styled-components'; | ||
colors?: CustomColors; | ||
loading?: { | ||
text: string; | ||
}; | ||
}; | ||
@@ -121,2 +125,5 @@ }; | ||
colors?: CustomColors; | ||
loading: { | ||
text: string; | ||
}; | ||
}; | ||
@@ -134,2 +141,5 @@ }; | ||
colors?: CustomColors; | ||
loading?: { | ||
text: string; | ||
}; | ||
}; | ||
@@ -151,2 +161,5 @@ }; | ||
colors?: CustomColors; | ||
loading: { | ||
text: string; | ||
}; | ||
}; | ||
@@ -233,4 +246,8 @@ }; | ||
export type MediaType = 'image/jpeg' | 'image/png'; | ||
export type AppState = { | ||
isLoading: boolean; | ||
}; | ||
} | ||
declare module "common/constants" { | ||
export const MIN_ELAPSED_TIME_SINCE_LAST_INSTRUCTION_CHANGE_MILLIS = 600; | ||
export const FACE_CONFIDENCE_THRESHOLD = 0.12; | ||
@@ -240,6 +257,6 @@ export const OPTIMAL_FACE_SIZE_PARAM = 0.42; | ||
export const FACE_CENTER_LIMIT = 0.07; | ||
export const FACE_PLACEHOLDER_TO_SHORTER_SIDE_RATIO = 0.75; | ||
export const FACE_DETECTION_TO_SHORTER_SIDE_RATIO = 0.85; | ||
export const DOCUMENT_SIZE_RATIO = 1.5; | ||
export const PLACEHOLDER_TO_SHORTER_SIDE_RATIO = 0.85; | ||
export const FACE_PLACEHOLDER_TO_SHORTER_SIDE_RATIO = 0.75; | ||
export const FACE_DETECTION_TO_SHORTER_SIDE_RATIO = 0.85; | ||
export const MIN_DOCUMENT_IMAGE_WIDTH = 1000; | ||
@@ -495,2 +512,19 @@ export const SAM_IMAGE_WIDTH = 600; | ||
} | ||
declare module "common/context/AppStateProvider" { | ||
import { ComponentChildren } from 'preact'; | ||
import { StateUpdater } from 'preact/hooks'; | ||
import { AppState } from "common/types"; | ||
type Props = { | ||
children: ComponentChildren; | ||
}; | ||
type AppStateContextType = { | ||
state: AppState; | ||
setState: StateUpdater<AppState>; | ||
isLoading: AppState['isLoading']; | ||
setIsLoading: (value: boolean) => void; | ||
}; | ||
export const AppStateContext: import("preact").Context<AppStateContextType | null>; | ||
export const useAppStateContext: () => AppStateContextType; | ||
export const AppStateProvider: ({ children }: Props) => JSX.Element; | ||
} | ||
declare module "face-auto-capture/src/components/Camera" { | ||
@@ -554,2 +588,16 @@ import { h } from 'preact'; | ||
} | ||
declare module "common/components/LoadingIcon" { | ||
import { h } from 'preact'; | ||
const LoadingIcon: () => h.JSX.Element; | ||
export default LoadingIcon; | ||
} | ||
declare module "common/components/LoadingOverlay" { | ||
import { h } from 'preact'; | ||
export const RelativeParentSC: import("styled-components").StyledComponent<"div", any, {}, never>; | ||
interface LoadingOverlayProps { | ||
text: string; | ||
} | ||
const LoadingOverlay: ({ text }: LoadingOverlayProps) => h.JSX.Element; | ||
export default LoadingOverlay; | ||
} | ||
declare module "face-auto-capture/src/components/wrappers/Root" { | ||
@@ -556,0 +604,0 @@ import { h } from 'preact'; |
{ | ||
"name": "@innovatrics/dot-face-auto-capture", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"main": "main.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
1396386
3320