omnipay-reactnative-sdk 1.2.2-beta.4 → 1.2.2-beta.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 +93 -43
- package/android/build.gradle +16 -15
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/omniretail/omnipay/OmnipayActivityPackage.java +2 -2
- package/android/src/main/java/com/omniretail/omnipay/OmnipayLivenessCameraView.java +153 -0
- package/android/src/main/java/com/omniretail/omnipay/OmnipayLivenessCameraViewManager.java +49 -0
- package/android/src/main/java/com/omniretail/omnipay/OmnipayLivenessModule.java +557 -0
- package/ios/OmnipayLivenessCameraView.h +15 -0
- package/ios/OmnipayLivenessCameraView.m +80 -0
- package/ios/OmnipayLivenessCameraViewManager.m +19 -0
- package/ios/OmnipayLivenessModule.h +38 -0
- package/ios/OmnipayLivenessModule.m +574 -0
- package/lib/commonjs/components/OmnipayProvider.js +2 -66
- package/lib/commonjs/components/OmnipayProvider.js.map +1 -1
- package/lib/commonjs/components/OmnipayView.js.map +1 -1
- package/lib/commonjs/components/biometrics/FaceVerification.js +252 -345
- package/lib/commonjs/components/biometrics/FaceVerification.js.map +1 -1
- package/lib/commonjs/components/biometrics/LivenessDetection.js +90 -198
- package/lib/commonjs/components/biometrics/LivenessDetection.js.map +1 -1
- package/lib/commonjs/components/biometrics/OmnipayLivenessCameraView.js +15 -0
- package/lib/commonjs/components/biometrics/OmnipayLivenessCameraView.js.map +1 -0
- package/lib/commonjs/components/biometrics/PermissionManager.js +279 -0
- package/lib/commonjs/components/biometrics/PermissionManager.js.map +1 -0
- package/lib/commonjs/components/biometrics/index.js +45 -0
- package/lib/commonjs/components/biometrics/index.js.map +1 -0
- package/lib/commonjs/components/biometrics/types.js +17 -0
- package/lib/commonjs/components/biometrics/types.js.map +1 -0
- package/lib/commonjs/components/views/BvnVerification.js.map +1 -1
- package/lib/commonjs/components/views/PaylaterAgreement.js.map +1 -1
- package/lib/commonjs/components/views/Registration.js.map +1 -1
- package/lib/commonjs/index.js +23 -18
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/components/OmnipayProvider.js +3 -67
- package/lib/module/components/OmnipayProvider.js.map +1 -1
- package/lib/module/components/OmnipayView.js.map +1 -1
- package/lib/module/components/biometrics/FaceVerification.js +254 -346
- package/lib/module/components/biometrics/FaceVerification.js.map +1 -1
- package/lib/module/components/biometrics/LivenessDetection.js +75 -197
- package/lib/module/components/biometrics/LivenessDetection.js.map +1 -1
- package/lib/module/components/biometrics/OmnipayLivenessCameraView.js +7 -0
- package/lib/module/components/biometrics/OmnipayLivenessCameraView.js.map +1 -0
- package/lib/module/components/biometrics/PermissionManager.js +272 -0
- package/lib/module/components/biometrics/PermissionManager.js.map +1 -0
- package/lib/module/components/biometrics/index.js +12 -0
- package/lib/module/components/biometrics/index.js.map +1 -0
- package/lib/module/components/biometrics/types.js +16 -0
- package/lib/module/components/biometrics/types.js.map +1 -0
- package/lib/module/components/views/BvnVerification.js.map +1 -1
- package/lib/module/components/views/PaylaterAgreement.js.map +1 -1
- package/lib/module/components/views/Registration.js.map +1 -1
- package/lib/module/index.js +5 -4
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/{src/components → components}/OmnipayProvider.d.ts +1 -1
- package/lib/typescript/components/OmnipayProvider.d.ts.map +1 -0
- package/lib/typescript/{src/components → components}/OmnipayView.d.ts +21 -20
- package/lib/typescript/components/OmnipayView.d.ts.map +1 -0
- package/lib/typescript/components/biometrics/FaceVerification.d.ts +11 -0
- package/lib/typescript/components/biometrics/FaceVerification.d.ts.map +1 -0
- package/lib/typescript/components/biometrics/LivenessDetection.d.ts +33 -0
- package/lib/typescript/components/biometrics/LivenessDetection.d.ts.map +1 -0
- package/lib/typescript/components/biometrics/OmnipayLivenessCameraView.d.ts +18 -0
- package/lib/typescript/components/biometrics/OmnipayLivenessCameraView.d.ts.map +1 -0
- package/lib/typescript/components/biometrics/PermissionManager.d.ts +58 -0
- package/lib/typescript/components/biometrics/PermissionManager.d.ts.map +1 -0
- package/lib/typescript/components/biometrics/index.d.ts +5 -0
- package/lib/typescript/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/components/biometrics/types.d.ts +73 -0
- package/lib/typescript/components/biometrics/types.d.ts.map +1 -0
- package/lib/typescript/{src/components → components}/views/BvnVerification.d.ts +2 -1
- package/lib/typescript/components/views/BvnVerification.d.ts.map +1 -0
- package/lib/typescript/{src/components → components}/views/PaylaterAgreement.d.ts +2 -1
- package/lib/typescript/components/views/PaylaterAgreement.d.ts.map +1 -0
- package/lib/typescript/{src/components → components}/views/Registration.d.ts +2 -1
- package/lib/typescript/components/views/Registration.d.ts.map +1 -0
- package/lib/typescript/functions.d.ts.map +1 -0
- package/lib/typescript/hooks/useOmnipay.d.ts +28 -0
- package/lib/typescript/hooks/useOmnipay.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +7 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/lib/colors.d.ts.map +1 -0
- package/lib/typescript/lib/config.d.ts.map +1 -0
- package/omnipay-reactnative-sdk.podspec +32 -29
- package/package.json +15 -10
- package/src/components/OmnipayProvider.tsx +3 -106
- package/src/components/OmnipayView.tsx +1 -1
- package/src/components/biometrics/FaceVerification.tsx +291 -368
- package/src/components/biometrics/LivenessDetection.ts +113 -250
- package/src/components/biometrics/OmnipayLivenessCameraView.tsx +19 -0
- package/src/components/biometrics/PermissionManager.ts +317 -0
- package/src/components/biometrics/index.ts +11 -0
- package/src/components/biometrics/types.ts +86 -0
- package/src/components/views/BvnVerification.tsx +1 -1
- package/src/components/views/PaylaterAgreement.tsx +1 -1
- package/src/components/views/Registration.tsx +1 -1
- package/src/index.tsx +4 -15
- package/android/src/main/java/com/omniretail/omnipay/LivenessCameraViewManager.java +0 -116
- package/android/src/main/java/com/omniretail/omnipay/LivenessDetectionModule.java +0 -588
- package/ios/LivenessCameraView.h +0 -22
- package/ios/LivenessCameraView.m +0 -135
- package/ios/LivenessCameraViewManager.h +0 -12
- package/ios/LivenessCameraViewManager.m +0 -24
- package/ios/LivenessDetectionModule.h +0 -46
- package/ios/LivenessDetectionModule.m +0 -603
- package/lib/commonjs/components/biometrics/LivenessCameraView.js +0 -45
- package/lib/commonjs/components/biometrics/LivenessCameraView.js.map +0 -1
- package/lib/module/components/biometrics/LivenessCameraView.js +0 -39
- package/lib/module/components/biometrics/LivenessCameraView.js.map +0 -1
- package/lib/typescript/demo/src/App.d.ts +0 -3
- package/lib/typescript/demo/src/App.d.ts.map +0 -1
- package/lib/typescript/demo/src/Body.d.ts +0 -3
- package/lib/typescript/demo/src/Body.d.ts.map +0 -1
- package/lib/typescript/demo/src/NotificationsExample.d.ts +0 -4
- package/lib/typescript/demo/src/NotificationsExample.d.ts.map +0 -1
- package/lib/typescript/src/components/OmnipayProvider.d.ts.map +0 -1
- package/lib/typescript/src/components/OmnipayView.d.ts.map +0 -1
- package/lib/typescript/src/components/biometrics/FaceVerification.d.ts +0 -12
- package/lib/typescript/src/components/biometrics/FaceVerification.d.ts.map +0 -1
- package/lib/typescript/src/components/biometrics/LivenessCameraView.d.ts +0 -22
- package/lib/typescript/src/components/biometrics/LivenessCameraView.d.ts.map +0 -1
- package/lib/typescript/src/components/biometrics/LivenessDetection.d.ts +0 -73
- package/lib/typescript/src/components/biometrics/LivenessDetection.d.ts.map +0 -1
- package/lib/typescript/src/components/views/BvnVerification.d.ts.map +0 -1
- package/lib/typescript/src/components/views/PaylaterAgreement.d.ts.map +0 -1
- package/lib/typescript/src/components/views/Registration.d.ts.map +0 -1
- package/lib/typescript/src/functions.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useOmnipay.d.ts +0 -28
- package/lib/typescript/src/hooks/useOmnipay.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts +0 -8
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/lib/colors.d.ts.map +0 -1
- package/lib/typescript/src/lib/config.d.ts.map +0 -1
- package/src/components/biometrics/LivenessCameraView.tsx +0 -61
- /package/lib/typescript/{src/functions.d.ts → functions.d.ts} +0 -0
- /package/lib/typescript/{src/lib → lib}/colors.d.ts +0 -0
- /package/lib/typescript/{src/lib → lib}/config.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../demo/src/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,eAAO,MAAM,IAAI,yBAwDhB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationsExample.d.ts","sourceRoot":"","sources":["../../../../demo/src/NotificationsExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,QAAA,MAAM,oBAAoB,yBA0HzB,CAAC;AAyDF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OmnipayProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/OmnipayProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyB3D,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACrD,CAAC;AAkBF,KAAK,iBAAiB,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAA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KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAQF,QAAA,MAAM,OAAO;yFAQV,YAAY,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6G5B,CAAC;AAiCF,eAAe,OAAO,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type LivenessResult } from './LivenessDetection';
|
|
3
|
-
type FaceVerificationProps = {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onSuccess: (result: LivenessResult) => void;
|
|
6
|
-
primaryColor: string;
|
|
7
|
-
challenges?: ('smile' | 'blink' | 'turn_left' | 'turn_right')[];
|
|
8
|
-
timeout?: number;
|
|
9
|
-
};
|
|
10
|
-
declare const FaceVerification: React.FC<FaceVerificationProps>;
|
|
11
|
-
export default FaceVerification;
|
|
12
|
-
//# sourceMappingURL=FaceVerification.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FaceVerification.d.ts","sourceRoot":"","sources":["../../../../../src/components/biometrics/FaceVerification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAWhE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAG7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,YAAY,CAAC,EAAE,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8NrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
interface LivenessCameraViewProps {
|
|
4
|
-
style?: ViewStyle;
|
|
5
|
-
scaleType?: 'fillCenter' | 'fillStart' | 'fillEnd' | 'fitCenter' | 'fitStart' | 'fitEnd';
|
|
6
|
-
onCameraReady?: () => void;
|
|
7
|
-
onCameraError?: (error: {
|
|
8
|
-
nativeEvent: {
|
|
9
|
-
error: string;
|
|
10
|
-
};
|
|
11
|
-
}) => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* LivenessCameraView - Native camera component for liveness detection
|
|
15
|
-
*
|
|
16
|
-
* This component provides a camera preview that integrates with the
|
|
17
|
-
* liveness detection native module for real-time face analysis.
|
|
18
|
-
*/
|
|
19
|
-
declare const LivenessCameraView: React.FC<LivenessCameraViewProps>;
|
|
20
|
-
export default LivenessCameraView;
|
|
21
|
-
export type { LivenessCameraViewProps };
|
|
22
|
-
//# sourceMappingURL=LivenessCameraView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LivenessCameraView.d.ts","sourceRoot":"","sources":["../../../../../src/components/biometrics/LivenessCameraView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoC,SAAS,EAAE,MAAM,cAAc,CAAC;AAG3E,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EACN,YAAY,GACZ,WAAW,GACX,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CACrE;AAgBD;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAoBzD,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAClC,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export interface LivenessDetectionConfig {
|
|
2
|
-
challenges: ('smile' | 'blink' | 'turn_left' | 'turn_right')[];
|
|
3
|
-
timeout?: number;
|
|
4
|
-
}
|
|
5
|
-
export interface ChallengeResult {
|
|
6
|
-
challenge: string;
|
|
7
|
-
success: boolean;
|
|
8
|
-
timestamp: number;
|
|
9
|
-
duration?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface LivenessResult {
|
|
12
|
-
success: boolean;
|
|
13
|
-
screenshot?: string;
|
|
14
|
-
challengeResults: ChallengeResult[];
|
|
15
|
-
error?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface LivenessCallbacks {
|
|
18
|
-
onChallengeStart?: (challenge: string) => void;
|
|
19
|
-
onChallengeSuccess?: (challenge: string) => void;
|
|
20
|
-
onChallengeFailure?: (challenge: string, reason: string) => void;
|
|
21
|
-
onAllChallengesComplete?: (result: LivenessResult) => void;
|
|
22
|
-
onScreenshotCaptured?: (screenshot: string) => void;
|
|
23
|
-
}
|
|
24
|
-
declare class LivenessDetectionManager {
|
|
25
|
-
private eventEmitter;
|
|
26
|
-
private listeners;
|
|
27
|
-
private callbacks;
|
|
28
|
-
private isActive;
|
|
29
|
-
private challengeResults;
|
|
30
|
-
private startTime;
|
|
31
|
-
constructor();
|
|
32
|
-
private setupEventListeners;
|
|
33
|
-
/**
|
|
34
|
-
* Start liveness detection with specified challenges
|
|
35
|
-
* @param config - Configuration including challenges array
|
|
36
|
-
* @param callbacks - Event callbacks
|
|
37
|
-
* @returns Promise resolving to LivenessResult
|
|
38
|
-
*/
|
|
39
|
-
startLivenessDetection(config: LivenessDetectionConfig, callbacks?: LivenessCallbacks): Promise<LivenessResult>;
|
|
40
|
-
/**
|
|
41
|
-
* Stop liveness detection
|
|
42
|
-
*/
|
|
43
|
-
stopDetection(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Check if liveness detection is currently active
|
|
46
|
-
*/
|
|
47
|
-
isDetectionActive(): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Get available challenge types
|
|
50
|
-
*/
|
|
51
|
-
getAvailableChallenges(): string[];
|
|
52
|
-
/**
|
|
53
|
-
* Check if camera permission is granted
|
|
54
|
-
*/
|
|
55
|
-
checkCameraPermission(): Promise<boolean>;
|
|
56
|
-
/**
|
|
57
|
-
* Request camera permission from the user
|
|
58
|
-
*/
|
|
59
|
-
requestCameraPermission(): Promise<boolean>;
|
|
60
|
-
/**
|
|
61
|
-
* Cleanup - remove all event listeners
|
|
62
|
-
*/
|
|
63
|
-
cleanup(): void;
|
|
64
|
-
}
|
|
65
|
-
export declare const LivenessDetection: LivenessDetectionManager;
|
|
66
|
-
export declare const LivenessConstants: {
|
|
67
|
-
readonly CHALLENGE_SMILE: "smile";
|
|
68
|
-
readonly CHALLENGE_BLINK: "blink";
|
|
69
|
-
readonly CHALLENGE_TURN_LEFT: "turn_left";
|
|
70
|
-
readonly CHALLENGE_TURN_RIGHT: "turn_right";
|
|
71
|
-
};
|
|
72
|
-
export {};
|
|
73
|
-
//# sourceMappingURL=LivenessDetection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LivenessDetection.d.ts","sourceRoot":"","sources":["../../../../../src/components/biometrics/LivenessDetection.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,CAAC,OAAO,GAAG,OAAO,GA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IACH,iBAAiB,IAAI,OAAO;IAI5B;;OAEG;IACH,sBAAsB,IAAI,MAAM,EAAE;IAIlC;;OAEG;IACG,qBAAqB,IAAI,OAAO,CAAC,OAAO,CAAC;IAa/C;;OAEG;IACG,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAajD;;OAEG;IACH,OAAO,IAAI,IAAI;CAShB;AAGD,eAAO,MAAM,iBAAiB,0BAAiC,CAAC;AAKhE,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BvnVerification.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/BvnVerification.tsx"],"names":[],"mappings":"AAWA,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAIF,eAAO,MAAM,eAAe,4FAQzB,YAAY,KAAG,WA6FjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaylaterAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/PaylaterAgreement.tsx"],"names":[],"mappings":"AAWA,KAAK,sBAAsB,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACvE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAIF,eAAO,MAAM,iBAAiB,6HAY3B,YAAY,KAAG,WA+FjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Registration.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/Registration.tsx"],"names":[],"mappings":"AAWA,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB,CAAC,EAAE,CAAC,EAC1B,WAAW,EACX,QAAQ,GACT,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAQF,eAAO,MAAM,YAAY,+EAOtB,YAAY,KAAG,WA2FjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/functions.ts"],"names":[],"mappings":"AAGA,wBAAsB,oBAAoB,qBAoBzC;AAED,wBAAsB,UAAU;;;GAe/B;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,oEAK7C"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare function useOmnipay(): {
|
|
2
|
-
initiateBills: ({ phoneNumber, onClose }: {
|
|
3
|
-
phoneNumber: string;
|
|
4
|
-
onClose?: (() => void) | undefined;
|
|
5
|
-
}) => void;
|
|
6
|
-
initiateWallet: ({ phoneNumber, customerRef, userRef, onClose, usesPaylater, usesPromo, usesAirtimeData, usesTransfer, usesBills, usesPos, promoBalanceOffset, deviceId, deviceName, hideWalletTransfer, isBvnValidationRequired, walletTab, sessionId, launchPage, kycStatus, }: {
|
|
7
|
-
phoneNumber?: string | undefined;
|
|
8
|
-
customerRef?: string | undefined;
|
|
9
|
-
userRef?: string | undefined;
|
|
10
|
-
usesPaylater?: boolean | undefined;
|
|
11
|
-
usesPromo?: boolean | undefined;
|
|
12
|
-
usesAirtimeData?: boolean | undefined;
|
|
13
|
-
usesTransfer?: boolean | undefined;
|
|
14
|
-
usesBills?: boolean | undefined;
|
|
15
|
-
usesPos?: boolean | undefined;
|
|
16
|
-
onClose?: (() => void) | undefined;
|
|
17
|
-
promoBalanceOffset?: number | undefined;
|
|
18
|
-
deviceId?: string | undefined;
|
|
19
|
-
deviceName?: string | undefined;
|
|
20
|
-
hideWalletTransfer?: boolean | undefined;
|
|
21
|
-
isBvnValidationRequired?: boolean | undefined;
|
|
22
|
-
walletTab?: "Paylater" | "Account" | "Omoni" | undefined;
|
|
23
|
-
sessionId?: string | undefined;
|
|
24
|
-
kycStatus?: "verified" | "unverified" | undefined;
|
|
25
|
-
launchPage?: string | undefined;
|
|
26
|
-
}) => void;
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=useOmnipay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOmnipay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOmnipay.tsx"],"names":[],"mappings":"AAMA,wBAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAQzB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import Omnipay from './components/OmnipayView';
|
|
2
|
-
export { OmnipayProvider } from './components/OmnipayProvider';
|
|
3
|
-
export { useOmnipay } from './hooks/useOmnipay';
|
|
4
|
-
export { LivenessDetection, LivenessConstants, type LivenessDetectionConfig, type ChallengeResult, type LivenessResult, type LivenessCallbacks, } from './components/biometrics/LivenessDetection';
|
|
5
|
-
export { default as LivenessCameraView, type LivenessCameraViewProps, } from './components/biometrics/LivenessCameraView';
|
|
6
|
-
export { default as FaceVerification } from './components/biometrics/FaceVerification';
|
|
7
|
-
export default Omnipay;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EACL,OAAO,IAAI,kBAAkB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/lib/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BlB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { requireNativeComponent, Platform, ViewStyle } from 'react-native';
|
|
3
|
-
|
|
4
|
-
// Props for the native camera view
|
|
5
|
-
interface LivenessCameraViewProps {
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
scaleType?:
|
|
8
|
-
| 'fillCenter'
|
|
9
|
-
| 'fillStart'
|
|
10
|
-
| 'fillEnd'
|
|
11
|
-
| 'fitCenter'
|
|
12
|
-
| 'fitStart'
|
|
13
|
-
| 'fitEnd';
|
|
14
|
-
onCameraReady?: () => void;
|
|
15
|
-
onCameraError?: (error: { nativeEvent: { error: string } }) => void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Native component interface
|
|
19
|
-
interface NativeLivenessCameraViewProps extends LivenessCameraViewProps {
|
|
20
|
-
style?: ViewStyle;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Import native component based on platform
|
|
24
|
-
const NativeLivenessCameraView = Platform.select({
|
|
25
|
-
android:
|
|
26
|
-
requireNativeComponent<NativeLivenessCameraViewProps>('LivenessCameraView'),
|
|
27
|
-
ios: requireNativeComponent<NativeLivenessCameraViewProps>(
|
|
28
|
-
'LivenessCameraView'
|
|
29
|
-
),
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* LivenessCameraView - Native camera component for liveness detection
|
|
34
|
-
*
|
|
35
|
-
* This component provides a camera preview that integrates with the
|
|
36
|
-
* liveness detection native module for real-time face analysis.
|
|
37
|
-
*/
|
|
38
|
-
const LivenessCameraView: React.FC<LivenessCameraViewProps> = ({
|
|
39
|
-
style,
|
|
40
|
-
scaleType = 'fillCenter',
|
|
41
|
-
onCameraReady,
|
|
42
|
-
onCameraError,
|
|
43
|
-
}) => {
|
|
44
|
-
// Platform check
|
|
45
|
-
if (!NativeLivenessCameraView) {
|
|
46
|
-
console.warn('LivenessCameraView is not available on this platform');
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<NativeLivenessCameraView
|
|
52
|
-
style={style}
|
|
53
|
-
scaleType={scaleType}
|
|
54
|
-
onCameraReady={onCameraReady}
|
|
55
|
-
onCameraError={onCameraError}
|
|
56
|
-
/>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export default LivenessCameraView;
|
|
61
|
-
export type { LivenessCameraViewProps };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|