@baas-id/react 0.3.1 → 0.3.7
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.
- package/README.md +27 -3
- package/dist/esm/baas-id-react.css +1 -1
- package/dist/esm/chunks/ContinueFlow-BzKnkzHf.js +11597 -0
- package/dist/esm/chunks/provider-DqpgUBfH.js +87 -0
- package/dist/esm/continue.js +11 -7
- package/dist/esm/index.js +156 -119
- package/dist/esm/native.js +91 -0
- package/dist/esm/preview.js +220 -181
- package/dist/esm/workers/{detector.worker-DrerkwUk.js → detector.worker-Bpzz3rZ5.js} +1191 -1191
- package/dist/types/continue.d.ts +3 -0
- package/dist/types/index.d.ts +10 -1
- package/dist/types/native.d.ts +38 -0
- package/dist/types/react/DocumentCapture.d.ts +1 -0
- package/dist/types/react/FingerCapture.d.ts +20 -0
- package/dist/types/react/capture/api.d.ts +53 -0
- package/dist/types/react/capture/camera.d.ts +1 -1
- package/dist/types/react/capture/demo.d.ts +10 -0
- package/dist/types/react/capture/index.d.ts +3 -2
- package/dist/types/react/capture/keyframes.d.ts +8 -1
- package/dist/types/react/capture/torch.d.ts +14 -0
- package/dist/types/react/chip/ChipRead.d.ts +21 -0
- package/dist/types/react/chip/capability.d.ts +11 -0
- package/dist/types/react/chip/evidence.d.ts +9 -0
- package/dist/types/react/chip/provider.d.ts +42 -0
- package/dist/types/react/chip/useChipRead.d.ts +32 -0
- package/dist/types/react/chip/webNfcPresence.d.ts +2 -0
- package/dist/types/react/document/DocumentParts.d.ts +1 -0
- package/dist/types/react/document/cornerOrder.d.ts +1 -0
- package/dist/types/react/document/follow.d.ts +26 -0
- package/dist/types/react/document/resolution.d.ts +1 -0
- package/dist/types/react/document/review.d.ts +1 -1
- package/dist/types/react/document/sideCheck.d.ts +1 -0
- package/dist/types/react/document/steady.d.ts +0 -6
- package/dist/types/react/document/upright.d.ts +1 -0
- package/dist/types/react/document/useDocumentCapture.d.ts +23 -2
- package/dist/types/react/face/bestFrame.d.ts +17 -0
- package/dist/types/react/face/faceView.d.ts +3 -0
- package/dist/types/react/face/runLiveness.d.ts +2 -0
- package/dist/types/react/face/useFaceCapture.d.ts +6 -0
- package/dist/types/react/finger/FingerGuide.d.ts +14 -0
- package/dist/types/react/finger/detector.d.ts +39 -0
- package/dist/types/react/finger/qualityGate.d.ts +37 -0
- package/dist/types/react/finger/runFingerCapture.d.ts +77 -0
- package/dist/types/react/finger/upload.d.ts +10 -0
- package/dist/types/react/finger/useFingerCapture.d.ts +31 -0
- package/dist/types/react/flows/FlowShell.d.ts +2 -0
- package/dist/types/react/flows/experience.d.ts +4 -0
- package/dist/types/react/flows/index.d.ts +1 -1
- package/dist/types/react/flows/renewal.d.ts +27 -0
- package/dist/types/react/flows/session.d.ts +5 -1
- package/dist/types/react/flows/state.d.ts +34 -2
- package/dist/types/react/flows/types.d.ts +58 -0
- package/dist/types/react/flows/useFlowSession.d.ts +12 -2
- package/dist/types/react/handoff/ContinueFlow.d.ts +15 -2
- package/dist/types/react/handoff/ContinueOnPhone.d.ts +19 -1
- package/dist/types/react/handoff/api.d.ts +8 -2
- package/dist/types/react/handoff/phoneLink.d.ts +2 -1
- package/dist/types/react/i18n/types.d.ts +45 -3
- package/dist/types/react/preview/FlowPreview.d.ts +1 -0
- package/dist/types/react/telemetry/bus.d.ts +1 -1
- package/dist/types/react/theme/scheme.d.ts +17 -0
- package/dist/types/react/version.d.ts +1 -1
- package/dist/types/react/vision/corners.d.ts +1 -1
- package/dist/types/react/vision/face.d.ts +13 -0
- package/dist/types/react/vision/quality.d.ts +5 -2
- package/dist/types/react/vision/refine.d.ts +71 -0
- package/dist/types/react/vision/resample.d.ts +7 -0
- package/dist/types/react/vision/tinyDetector.d.ts +1 -0
- package/dist/types/react/vision/types.d.ts +3 -1
- package/package.json +6 -1
- package/dist/esm/chunks/ContinueFlow-mqBIxnlp.js +0 -9327
- package/dist/types/react/document/flow.d.ts +0 -52
- package/dist/types/react/document/latch.d.ts +0 -25
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { type Box, type Pt, type Quad } from "./overlay";
|
|
2
|
-
export declare const FLOW_W = 160;
|
|
3
|
-
export declare const FLOW_R = 8;
|
|
4
|
-
export declare const FLOW_MIN_CONTRAST = 0.12;
|
|
5
|
-
export interface Gray {
|
|
6
|
-
data: Uint8Array;
|
|
7
|
-
w: number;
|
|
8
|
-
h: number;
|
|
9
|
-
}
|
|
10
|
-
export interface Rect {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
w: number;
|
|
14
|
-
h: number;
|
|
15
|
-
}
|
|
16
|
-
export declare function lumaOf(rgba: Uint8ClampedArray | Uint8Array, w: number, h: number): Gray;
|
|
17
|
-
export declare function half(g: Gray): Gray;
|
|
18
|
-
export declare function matchShift(prev: Gray, cur: Gray, roi: Rect, R?: number, guess?: {
|
|
19
|
-
dx: number;
|
|
20
|
-
dy: number;
|
|
21
|
-
}): {
|
|
22
|
-
dx: number;
|
|
23
|
-
dy: number;
|
|
24
|
-
ok: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare function flowRoi(b: Box, scale: number, shrink?: number): Rect;
|
|
27
|
-
export declare class FlowTimeline {
|
|
28
|
-
private ts;
|
|
29
|
-
private xs;
|
|
30
|
-
private ys;
|
|
31
|
-
private ox;
|
|
32
|
-
private oy;
|
|
33
|
-
push(t: number, dx: number, dy: number): void;
|
|
34
|
-
at(t: number): Pt;
|
|
35
|
-
reset(): void;
|
|
36
|
-
}
|
|
37
|
-
export declare const REANCHOR = 0.12;
|
|
38
|
-
export declare const READING_WEIGHT = 0.6;
|
|
39
|
-
export declare class AnchoredQuad {
|
|
40
|
-
private readonly flow;
|
|
41
|
-
private q;
|
|
42
|
-
private o;
|
|
43
|
-
private pending;
|
|
44
|
-
constructor(flow: FlowTimeline);
|
|
45
|
-
read(q: Quad, t: number, opts?: {
|
|
46
|
-
force?: boolean;
|
|
47
|
-
weight?: number;
|
|
48
|
-
}): void;
|
|
49
|
-
at(now: number): Quad | null;
|
|
50
|
-
box(now: number): Box | null;
|
|
51
|
-
reset(): void;
|
|
52
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AnchoredQuad } from "./flow";
|
|
2
|
-
import { type Box, type Quad } from "./overlay";
|
|
3
|
-
export declare const EDGE_WEIGHT = 0.85;
|
|
4
|
-
export declare const EDGE_HOLD_MS = 700;
|
|
5
|
-
export declare const EDGE_HOLD_IOU = 0.6;
|
|
6
|
-
export type OutlineKind = "edges" | "box";
|
|
7
|
-
export type Locks = [boolean, boolean, boolean, boolean];
|
|
8
|
-
export interface CornerReading {
|
|
9
|
-
box: Box;
|
|
10
|
-
corners?: Quad | null;
|
|
11
|
-
locks?: Locks;
|
|
12
|
-
}
|
|
13
|
-
export declare function iou(a: Box, b: Box): number;
|
|
14
|
-
export declare class CornerLatch {
|
|
15
|
-
readonly anchored: AnchoredQuad;
|
|
16
|
-
private kind;
|
|
17
|
-
private lastEdges;
|
|
18
|
-
private lockState;
|
|
19
|
-
constructor(anchored: AnchoredQuad);
|
|
20
|
-
read(r: CornerReading, t: number): void;
|
|
21
|
-
get mode(): OutlineKind | null;
|
|
22
|
-
get locks(): Locks;
|
|
23
|
-
hint(t: number): Quad | null;
|
|
24
|
-
reset(): void;
|
|
25
|
-
}
|