@airxpay/sdk-ui 1.0.6 → 1.0.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/dist/api/client.d.ts +6 -0
- package/dist/api/client.js +104 -0
- package/dist/api/merchant.d.ts +30 -9
- package/dist/api/merchant.js +51 -17
- package/dist/components/steps/KYCVerification.d.ts +2 -2
- package/dist/components/steps/KYCVerification.js +226 -45
- package/dist/components/steps/OnboardingComplete.d.ts +17 -12
- package/dist/components/steps/OnboardingComplete.js +266 -665
- package/dist/components/ui/MerchantOnboard/MerchantOnboarding.js +1 -1
- package/dist/contexts/AirXPayProvider.d.ts +11 -7
- package/dist/contexts/AirXPayProvider.js +49 -29
- package/dist/hooks/MerchantOnboarding.d.ts +12 -3
- package/dist/hooks/MerchantOnboarding.js +118 -4
- package/dist/index.d.ts +12 -7
- package/dist/index.js +23 -9
- package/dist/sdk/airxpay.d.ts +4 -1
- package/dist/types/merchantTypes.d.ts +58 -29
- package/dist/types/merchantTypes.js +4 -1
- package/dist/types/merchantTypes.ts +66 -30
- package/dist/types/type.ts +0 -1
- package/dist/utils/jwt.d.ts +14 -0
- package/dist/utils/jwt.js +40 -0
- package/dist/utils/tokenStorage.d.ts +12 -0
- package/dist/utils/tokenStorage.js +59 -0
- package/package.json +3 -1
- package/dist/components/ui/MerchantOnboard/CustomSegmentedButtons.d.ts +0 -15
- package/dist/components/ui/MerchantOnboard/CustomSegmentedButtons.js +0 -64
- package/dist/hooks/useAirXPayReady.d.ts +0 -6
- package/dist/hooks/useAirXPayReady.js +0 -27
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontend SDK - Onboarding Complete Screen
|
|
3
|
+
* Fixed: Only supports active/suspended/blocked status
|
|
4
|
+
* Updated to match correct prop interface
|
|
5
|
+
*/
|
|
1
6
|
import React from 'react';
|
|
2
|
-
import { Merchant
|
|
3
|
-
interface
|
|
7
|
+
import { Merchant } from '../../types/merchantTypes';
|
|
8
|
+
export interface OnboardingCompleteScreenProps {
|
|
4
9
|
merchantData: Merchant;
|
|
5
|
-
mode
|
|
6
|
-
status
|
|
7
|
-
kycStatus
|
|
8
|
-
isBankDetailsCompleted
|
|
9
|
-
isKycCompleted
|
|
10
|
-
isBasicCompleted
|
|
10
|
+
mode?: 'test' | 'live';
|
|
11
|
+
status?: 'active' | 'suspended' | 'blocked';
|
|
12
|
+
kycStatus?: 'not_submitted' | 'pending' | 'verified' | 'rejected';
|
|
13
|
+
isBankDetailsCompleted?: boolean;
|
|
14
|
+
isKycCompleted?: boolean;
|
|
15
|
+
isBasicCompleted?: boolean;
|
|
11
16
|
onComplete: () => void;
|
|
12
|
-
isWaitingForBackend
|
|
13
|
-
onBackendConfirmed
|
|
17
|
+
isWaitingForBackend?: boolean;
|
|
18
|
+
onBackendConfirmed?: () => void;
|
|
14
19
|
}
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
20
|
+
declare const OnboardingCompleteScreen: React.FC<OnboardingCompleteScreenProps>;
|
|
21
|
+
export default OnboardingCompleteScreen;
|