@innovatrics/dot-auto-capture-ui
Version:
Digital onboarding UI
26 lines (25 loc) • 1.24 kB
TypeScript
import type { AppStateInstruction, CustomizationContextProps, HTMLElementWithProps, UiProps } from './common';
import type { CustomElement, DeepRequired, MagnifEyeInstructionCode } from '../../../ui-common/src/types';
export * from './common';
declare global {
namespace JSX {
interface IntrinsicElements {
'x-dot-magnifeye-liveness-ui': CustomElement<{
props: MagnifEyeLivenessUiProps;
}>;
}
}
}
export type MagnifEyeInstructions = Record<MagnifEyeInstructionCode, string>;
export type CustomizableMagnifEyeInstructions = Omit<MagnifEyeInstructions, 'mouth_score_too_high' | 'mouth_score_too_low'>;
export type MagnifEyeLivenessUiProps<I = CustomizableMagnifEyeInstructions, SI = MagnifEyeStateInstructions> = UiProps<I, SI>;
type RequiredUiProps = DeepRequired<UiProps<MagnifEyeInstructions>>;
export type MagnifEyeProps = CustomizationContextProps<RequiredUiProps>;
export type HTMLMagnifEyeLivenessUiElement = HTMLElementWithProps<MagnifEyeLivenessUiProps>;
export type MagnifEyeStateInstructions = {
done?: AppStateInstruction;
loading?: AppStateInstruction;
};
export type UiMagnifEyeStateInstructions = {
[key: string]: DeepRequired<AppStateInstruction>;
};