@tap-payments/auth-jsconnect 1.0.88 → 1.0.90-test
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 +161 -0
- package/build/api/account.js +1 -1
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.d.ts +2 -0
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +2 -3
- package/build/api/country.js +1 -1
- package/build/api/data.js +1 -1
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/index.d.ts +2 -2
- package/build/api/index.js +2 -2
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/app/rootReducer.d.ts +7 -7
- package/build/app/rootReducer.js +7 -7
- package/build/app/settings.d.ts +3 -3
- package/build/app/settings.js +5 -5
- package/build/components/AnimationFlow/Dialog.js +2 -2
- package/build/components/Button/Button.d.ts +6 -1
- package/build/components/Button/Button.js +61 -23
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
- package/build/constants/api.d.ts +3 -1
- package/build/constants/api.js +6 -2
- package/build/constants/app.d.ts +2 -5
- package/build/constants/app.js +2 -5
- package/build/features/Landing/Landing.d.ts +1 -1
- package/build/features/Landing/Landing.js +8 -8
- package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.js +6 -6
- package/build/features/app/bank/bankStore.d.ts +2 -2
- package/build/features/app/bank/bankStore.js +38 -28
- package/build/features/app/business/businessStore.d.ts +4 -4
- package/build/features/app/business/businessStore.js +17 -17
- package/build/features/app/connect/connectStore.d.ts +2 -2
- package/build/features/app/connect/connectStore.js +18 -9
- package/build/features/app/individual/individualStore.d.ts +4 -3
- package/build/features/app/individual/individualStore.js +55 -46
- package/build/features/app/landing/landingStore.d.ts +2 -2
- package/build/features/app/landing/landingStore.js +1 -1
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +35 -25
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +27 -17
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +14 -10
- package/build/features/bank/screens/BankDetails/BankDetails.js +11 -7
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/bank/screens/Verify/OTPInput.js +2 -2
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +14 -10
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +7 -7
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +8 -8
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +6 -6
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +7 -7
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/business/screens/Verify/OTPInput.js +2 -2
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +10 -10
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +9 -9
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +7 -7
- package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +9 -9
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +3 -3
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +31 -31
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +14 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/individual/screens/Verify/OTPInput.js +2 -2
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +14 -10
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +11 -7
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/Success/Success.js +3 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/password/screens/Verify/OTPInput.js +2 -2
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +5 -5
- package/build/features/shared/Background/Background.js +3 -3
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +14 -36
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +15 -51
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.js +45 -45
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +12 -33
- package/build/features/shared/Button/SuccessButton.js +17 -15
- package/build/features/shared/Footer/Footer.js +6 -6
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +14 -10
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
- package/build/features/tax/screens/Verify/OTPInput.js +2 -2
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +13 -3
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +2 -2
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +7 -7
- package/build/index.js +7 -7
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +10 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +3 -3
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +5 -0
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +3 -2
- package/build/utils/string.js +18 -4
- package/package.json +127 -126
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -135
package/README.md
CHANGED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Auth-JsConnect
|
|
2
|
+
|
|
3
|
+
Handling user authentication and identification
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
This is a [React](https://reactjs.org/) module available through the
|
|
8
|
+
[npm registry](https://www.npmjs.com/). Installation is done using the
|
|
9
|
+
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
|
10
|
+
|
|
11
|
+
```console
|
|
12
|
+
npm install @tap-payments/auth-jsconnect
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
---------------------------- OR -------------------------
|
|
16
|
+
|
|
17
|
+
```console
|
|
18
|
+
yarn add @tap-payments/auth-jsconnect
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
- [Connect](#Connect)
|
|
24
|
+
- [Business](#Business)
|
|
25
|
+
- [Password](#Password)
|
|
26
|
+
- [Individual](#Individual)
|
|
27
|
+
- [Bank](#Bank)
|
|
28
|
+
- [Tax](#Tax)
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
### ES6
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
import { ConnectLib } from '@tap-payments/auth-jsconnect'
|
|
36
|
+
|
|
37
|
+
const App = () => {
|
|
38
|
+
return (
|
|
39
|
+
<ConnectLib
|
|
40
|
+
open={true}
|
|
41
|
+
merchantDomain={'https://www.example.com'}
|
|
42
|
+
publicKey={'pk_test_xxxxxx'}
|
|
43
|
+
appInfo={{
|
|
44
|
+
identifier: 'tap_connect_demo',
|
|
45
|
+
name: 'Tap Connect Demo',
|
|
46
|
+
version: 'V2.0.0'
|
|
47
|
+
}}
|
|
48
|
+
businessCountryCode='SA'
|
|
49
|
+
language='en'
|
|
50
|
+
onError={(error) => {
|
|
51
|
+
alert(JSON.stringify({ error }))
|
|
52
|
+
}}
|
|
53
|
+
onFlowCompleted={(data) => {
|
|
54
|
+
console.log(data)
|
|
55
|
+
}}
|
|
56
|
+
onReady={() => {
|
|
57
|
+
console.log('ready!')
|
|
58
|
+
}}
|
|
59
|
+
onStepCompleted={(name, data) => {
|
|
60
|
+
console.log(name, data)
|
|
61
|
+
}}
|
|
62
|
+
onStepError={(name, error) => {
|
|
63
|
+
console.log(name, error)
|
|
64
|
+
}}
|
|
65
|
+
onStepStarted={(name) => {
|
|
66
|
+
console.log(name)
|
|
67
|
+
}}
|
|
68
|
+
scope={[]}
|
|
69
|
+
/>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Vanilla JS
|
|
75
|
+
|
|
76
|
+
```js
|
|
77
|
+
<!DOCTYPE html>
|
|
78
|
+
<html lang="en">
|
|
79
|
+
<head>
|
|
80
|
+
<meta charset="utf-8" />
|
|
81
|
+
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
|
|
82
|
+
<title>Auth-JsConnect</title>
|
|
83
|
+
<script src="https://auth-jsconnect.b-cdn.net/build-1.0.90-test/main.js"></script>
|
|
84
|
+
<link href="https://auth-jsconnect.b-cdn.net/build-1.0.90-test/main.css" rel="stylesheet" />
|
|
85
|
+
</head>
|
|
86
|
+
<body>
|
|
87
|
+
<div id="root"></div>
|
|
88
|
+
<script>
|
|
89
|
+
const { renderConnectLib } = window.TapAuth
|
|
90
|
+
renderConnectLib(
|
|
91
|
+
{
|
|
92
|
+
open: true,
|
|
93
|
+
merchantDomain: window.location.origin,
|
|
94
|
+
publicKey: "pk_test_lat64TEDSvHrUOYAxVRe28PQ",
|
|
95
|
+
appInfo: {
|
|
96
|
+
identifier: "tap_connect_demo",
|
|
97
|
+
name: "Tap Connect Demo",
|
|
98
|
+
version: "V2.0.0"
|
|
99
|
+
},
|
|
100
|
+
businessCountryCode: "SA",
|
|
101
|
+
language: "en",
|
|
102
|
+
onError: (error) => {
|
|
103
|
+
alert(JSON.stringify({ error }))
|
|
104
|
+
},
|
|
105
|
+
onFlowCompleted: (data) => {
|
|
106
|
+
console.log(data)
|
|
107
|
+
},
|
|
108
|
+
onReady: () => {
|
|
109
|
+
console.log("ready!")
|
|
110
|
+
},
|
|
111
|
+
onStepCompleted: (name, data) => {
|
|
112
|
+
console.log(name, data)
|
|
113
|
+
},
|
|
114
|
+
onStepError: (name, error) => {
|
|
115
|
+
console.log(name, error)
|
|
116
|
+
},
|
|
117
|
+
onStepStarted: (name) => {
|
|
118
|
+
console.log(name)
|
|
119
|
+
},
|
|
120
|
+
scope: []
|
|
121
|
+
},
|
|
122
|
+
"root"
|
|
123
|
+
)
|
|
124
|
+
</script>
|
|
125
|
+
</body>
|
|
126
|
+
</html>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Connect
|
|
132
|
+
|
|
133
|
+
## Business
|
|
134
|
+
|
|
135
|
+
## Password
|
|
136
|
+
|
|
137
|
+
## Individual
|
|
138
|
+
|
|
139
|
+
## Bank
|
|
140
|
+
|
|
141
|
+
## Tax
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Properties
|
|
146
|
+
|
|
147
|
+
| name | functionality |
|
|
148
|
+
| ------------------------------ | --------------------------- |
|
|
149
|
+
| open `required` | BadRequest |
|
|
150
|
+
| merchantDomain `required` | Unauthorized |
|
|
151
|
+
| publicKey `required` | PaymentRequired |
|
|
152
|
+
| appInfo `required` | Forbidden |
|
|
153
|
+
| businessCountryCode `required` | NotFound |
|
|
154
|
+
| language `required` | MethodNotAllowed |
|
|
155
|
+
| onError `required` | NotAcceptable |
|
|
156
|
+
| onFlowCompleted `required` | ProxyAuthenticationRequired |
|
|
157
|
+
| onReady `required` | RequestTimeout |
|
|
158
|
+
| onStepCompleted `required` | Conflict |
|
|
159
|
+
| onStepError `required` | Gone |
|
|
160
|
+
| onStepStarted `required` | LengthRequired |
|
|
161
|
+
| scope `required` | UnsupportedMediaType |
|
package/build/api/account.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import instance from './axios';
|
|
2
|
-
import { ENDPOINT_PATHS } from '
|
|
2
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
3
3
|
var createAccount = function (data, config) {
|
|
4
4
|
return instance.post("".concat(ENDPOINT_PATHS.CREATE_ACCOUNT, "/").concat(data.lead_id), data, config);
|
|
5
5
|
};
|
package/build/api/auth.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
export declare type CheckEmailBody = {
|
|
3
3
|
email: string | null;
|
|
4
|
+
encryption_contract: Array<string>;
|
|
4
5
|
};
|
|
5
6
|
export declare type CheckBrandBody = {
|
|
6
7
|
profile_name: string;
|
|
8
|
+
encryption_contract: Array<string>;
|
|
7
9
|
};
|
|
8
10
|
export declare type CheckIBanBody = {
|
|
9
11
|
iban_number: string;
|
package/build/api/axios.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { get, set } from 'lodash-es';
|
|
3
|
-
import { ENCRYPTION_FLAG
|
|
4
|
-
import { encryptString } from '
|
|
3
|
+
import { ENCRYPTION_FLAG } from '@constants';
|
|
4
|
+
import { encryptString } from '@utils';
|
|
5
5
|
var instance = axios.create({
|
|
6
|
-
baseURL: ENDPOINT_PATHS.BASE_URL,
|
|
7
6
|
headers: {
|
|
8
7
|
'Content-Type': 'application/json',
|
|
9
8
|
'Access-Control-Allow-Headers': true
|
package/build/api/country.js
CHANGED
package/build/api/data.js
CHANGED
package/build/api/entity.js
CHANGED
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { ENDPOINT_PATHS } from '
|
|
12
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
13
13
|
import instance from './axios';
|
|
14
14
|
var retrieveEntityInfo = function (entity_id, config) {
|
|
15
15
|
return instance.get("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id), config);
|
package/build/api/firebase.js
CHANGED
package/build/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
|
+
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody } from './operator';
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
@@ -61,5 +61,5 @@ declare const API: {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody };
|
|
64
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
64
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
65
65
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
|
+
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
2
2
|
import { ipService } from './ip';
|
|
3
3
|
import { operatorService } from './operator';
|
|
4
4
|
import { countryService } from './country';
|
|
@@ -23,5 +23,5 @@ var API = {
|
|
|
23
23
|
dataService: dataService,
|
|
24
24
|
individualService: individualService
|
|
25
25
|
};
|
|
26
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
26
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
27
27
|
export default API;
|
package/build/api/individual.js
CHANGED
package/build/api/ip.js
CHANGED
package/build/api/lead.js
CHANGED
package/build/api/operator.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const rootReducer: {
|
|
2
2
|
settings: import("redux").Reducer<import("./settings").SettingsState, import("redux").AnyAction>;
|
|
3
|
-
connect: import("redux").Reducer<import("
|
|
4
|
-
business: import("redux").Reducer<import("
|
|
5
|
-
bank: import("redux").Reducer<import("
|
|
6
|
-
tax: import("redux").Reducer<import("
|
|
7
|
-
individual: import("redux").Reducer<import("
|
|
8
|
-
password: import("redux").Reducer<import("
|
|
9
|
-
landing: import("redux").Reducer<import("
|
|
3
|
+
connect: import("redux").Reducer<import("@features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
|
|
4
|
+
business: import("redux").Reducer<import("@features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
|
|
5
|
+
bank: import("redux").Reducer<import("@features/app/bank/bankStore").BankState, import("redux").AnyAction>;
|
|
6
|
+
tax: import("redux").Reducer<import("@features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
|
|
7
|
+
individual: import("redux").Reducer<import("@features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
|
|
8
|
+
password: import("redux").Reducer<import("@features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
|
|
9
|
+
landing: import("redux").Reducer<import("@features/app/landing/landingStore").LandingState, import("redux").AnyAction>;
|
|
10
10
|
};
|
|
11
11
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import settings from './settings';
|
|
2
|
-
import connect from '
|
|
3
|
-
import business from '
|
|
4
|
-
import bank from '
|
|
5
|
-
import tax from '
|
|
6
|
-
import individual from '
|
|
7
|
-
import password from '
|
|
8
|
-
import landing from '
|
|
2
|
+
import connect from '@features/app/connect/connectStore';
|
|
3
|
+
import business from '@features/app/business/businessStore';
|
|
4
|
+
import bank from '@features/app/bank/bankStore';
|
|
5
|
+
import tax from '@features/app/tax/taxStore';
|
|
6
|
+
import individual from '@features/app/individual/individualStore';
|
|
7
|
+
import password from '@features/app/password/passwordStore';
|
|
8
|
+
import landing from '@features/app/landing/landingStore';
|
|
9
9
|
var rootReducer = {
|
|
10
10
|
settings: settings,
|
|
11
11
|
connect: connect,
|
package/build/app/settings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, AppInfo, LibConfig } from '
|
|
3
|
-
import { ValidateOperatorBody } from '
|
|
1
|
+
import { RootState } from '@app/store';
|
|
2
|
+
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, AppInfo, LibConfig } from '@types';
|
|
3
|
+
import { ValidateOperatorBody } from '@api';
|
|
4
4
|
export declare const getClientIp: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
5
5
|
export declare const getBrowserFingerPrint: import("@reduxjs/toolkit").AsyncThunk<{
|
|
6
6
|
fingerPrint: import("@fingerprintjs/fingerprintjs").GetResult;
|
package/build/app/settings.js
CHANGED
|
@@ -36,11 +36,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
var _a;
|
|
38
38
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
39
|
-
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '
|
|
40
|
-
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '
|
|
41
|
-
import i18n from '
|
|
42
|
-
import { updateLocale } from '
|
|
43
|
-
import API from '
|
|
39
|
+
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '@utils';
|
|
40
|
+
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '@constants';
|
|
41
|
+
import i18n from '@src/i18n';
|
|
42
|
+
import { updateLocale } from '@utils/locale';
|
|
43
|
+
import API from '@api';
|
|
44
44
|
export var getClientIp = createAsyncThunk('getClientIp', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
45
|
var data;
|
|
46
46
|
return __generator(this, function (_a) {
|
|
@@ -27,8 +27,8 @@ import DialogContent from '@mui/material/DialogContent';
|
|
|
27
27
|
import Paper from '@mui/material/Paper';
|
|
28
28
|
import Box from '@mui/material/Box';
|
|
29
29
|
import { styled } from '@mui/material/styles';
|
|
30
|
-
import { ICONS_NAMES } from '
|
|
31
|
-
import { useLanguage } from '
|
|
30
|
+
import { ICONS_NAMES } from '@constants';
|
|
31
|
+
import { useLanguage } from '@hooks';
|
|
32
32
|
import Slide from '../Slide';
|
|
33
33
|
import LogoBadge from '../LogoBadge';
|
|
34
34
|
import Icon from '../Icon';
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
|
+
export interface ButtonStyledProps {
|
|
4
|
+
touched?: boolean;
|
|
5
|
+
outLineColor?: string;
|
|
6
|
+
}
|
|
3
7
|
export interface ButtonProps extends MUIButtonProps {
|
|
8
|
+
outLineColor?: string;
|
|
4
9
|
}
|
|
5
10
|
declare const _default: React.MemoExoticComponent<{
|
|
6
|
-
({ children, startIcon, endIcon, ...rest }: ButtonProps): JSX.Element;
|
|
11
|
+
({ children, startIcon, outLineColor, endIcon, ...rest }: ButtonProps): JSX.Element;
|
|
7
12
|
defaultProps: {};
|
|
8
13
|
}>;
|
|
9
14
|
export default _default;
|
|
@@ -24,11 +24,33 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import Button from '@mui/material/Button';
|
|
26
26
|
import { styled, alpha } from '@mui/material/styles';
|
|
27
|
-
var ButtonStyled = styled(Button
|
|
28
|
-
|
|
27
|
+
var ButtonStyled = styled(Button, {
|
|
28
|
+
shouldForwardProp: function (prop) { return !['outLineColor', 'touched'].includes(prop.toString()); }
|
|
29
|
+
})(function (_a) {
|
|
30
|
+
var _b;
|
|
31
|
+
var theme = _a.theme, touched = _a.touched, outLineColor = _a.outLineColor;
|
|
29
32
|
return ({
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
'&.MuiButton-contained': {
|
|
34
|
+
color: theme.palette.common.white,
|
|
35
|
+
backgroundColor: theme.palette.primary.main,
|
|
36
|
+
'&:hover': {
|
|
37
|
+
backgroundColor: theme.palette.primary.main
|
|
38
|
+
},
|
|
39
|
+
'&:active': {
|
|
40
|
+
backgroundColor: theme.palette.primary.main
|
|
41
|
+
},
|
|
42
|
+
':disabled': {
|
|
43
|
+
backgroundColor: alpha(theme.palette.primary.main, 0.3),
|
|
44
|
+
borderColor: alpha(theme.palette.primary.main, 0.2),
|
|
45
|
+
color: theme.palette.common.white
|
|
46
|
+
},
|
|
47
|
+
'& .MuiButton-endIcon': {
|
|
48
|
+
margin: theme.spacing(0)
|
|
49
|
+
},
|
|
50
|
+
'& .MuiButton-startIcon': {
|
|
51
|
+
margin: theme.spacing(0)
|
|
52
|
+
}
|
|
53
|
+
},
|
|
32
54
|
minHeight: theme.spacing(5.5),
|
|
33
55
|
maxHeight: theme.spacing(5.5),
|
|
34
56
|
borderRadius: theme.spacing(4.1),
|
|
@@ -36,28 +58,44 @@ var ButtonStyled = styled(Button)(function (_a) {
|
|
|
36
58
|
lineHeight: 1.7,
|
|
37
59
|
display: 'flex',
|
|
38
60
|
justifyContent: 'space-between',
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
paddingInlineStart: theme.spacing(0.75),
|
|
62
|
+
textTransform: 'none',
|
|
63
|
+
'&.MuiButton-outlined': (_b = {
|
|
64
|
+
backgroundColor: theme.palette.common.white,
|
|
65
|
+
border: "1px solid ".concat(!!outLineColor ? outLineColor : theme.palette.primary.main),
|
|
66
|
+
color: !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
67
|
+
'&:hover': {
|
|
68
|
+
backgroundColor: !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
69
|
+
color: theme.palette.common.white,
|
|
70
|
+
img: {
|
|
71
|
+
filter: 'brightness(0) invert(1)'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
76
|
+
'&:hover': {
|
|
77
|
+
backgroundColor: touched
|
|
78
|
+
? !!outLineColor
|
|
79
|
+
? outLineColor
|
|
80
|
+
: theme.palette.primary.main
|
|
81
|
+
: theme.palette.common.white,
|
|
82
|
+
color: touched ? theme.palette.common.white : !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
83
|
+
img: {
|
|
84
|
+
filter: touched ? 'brightness(0) invert(1)' : 'none'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
_b['&:disabled'] = {
|
|
89
|
+
backgroundColor: theme.palette.common.white,
|
|
90
|
+
color: alpha(!!outLineColor ? outLineColor : theme.palette.primary.main, 0.3)
|
|
91
|
+
},
|
|
92
|
+
_b)
|
|
56
93
|
});
|
|
57
94
|
});
|
|
58
95
|
var ButtonComponent = function (_a) {
|
|
59
|
-
var children = _a.children, startIcon = _a.startIcon, endIcon = _a.endIcon, rest = __rest(_a, ["children", "startIcon", "endIcon"]);
|
|
60
|
-
|
|
96
|
+
var children = _a.children, startIcon = _a.startIcon, outLineColor = _a.outLineColor, endIcon = _a.endIcon, rest = __rest(_a, ["children", "startIcon", "outLineColor", "endIcon"]);
|
|
97
|
+
var _b = React.useState(false), isTouched = _b[0], setIsTouched = _b[1];
|
|
98
|
+
return (_jsx(ButtonStyled, __assign({ onTouchStart: function () { return setIsTouched(true); }, touched: isTouched, outLineColor: outLineColor, variant: 'contained', startIcon: startIcon || _jsx("span", {}), endIcon: endIcon || _jsx("span", {}), disableFocusRipple: true, disableElevation: true, disableRipple: true, disableTouchRipple: true, fullWidth: true }, rest, { children: children })));
|
|
61
99
|
};
|
|
62
100
|
ButtonComponent.defaultProps = {};
|
|
63
101
|
export default React.memo(ButtonComponent);
|
|
@@ -27,10 +27,10 @@ import 'react-calendar/dist/Calendar.css';
|
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
import { styled } from '@mui/material/styles';
|
|
29
29
|
import Divider from '@mui/material/Divider';
|
|
30
|
-
import Collapse from '
|
|
31
|
-
import ExpandIcon from '
|
|
30
|
+
import Collapse from '@components/Collapse';
|
|
31
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
32
32
|
import CalendarTodayOutlined from '@mui/icons-material/CalendarTodayOutlined';
|
|
33
|
-
import { scrollDown, scrollUp } from '
|
|
33
|
+
import { scrollDown, scrollUp } from '@utils';
|
|
34
34
|
import Input from '../Input';
|
|
35
35
|
import Text from '../Text';
|
|
36
36
|
import './customStyle.css';
|
|
@@ -23,10 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import Text from '
|
|
26
|
+
import Text from '@components/Text';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
|
-
import Icon from '
|
|
29
|
-
import { useLanguage } from '
|
|
28
|
+
import Icon from '@components/Icon';
|
|
29
|
+
import { useLanguage } from '@hooks';
|
|
30
30
|
var FooterStyled = styled(Box)(function (_a) {
|
|
31
31
|
var theme = _a.theme;
|
|
32
32
|
return (__assign(__assign({ direction: theme.direction, display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
|
|
@@ -23,8 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import React, { memo } from 'react';
|
|
25
25
|
import Input from '@mui/material/Input';
|
|
26
|
-
import Collapse from '
|
|
27
|
-
import Warning from '
|
|
26
|
+
import Collapse from '@components/Collapse';
|
|
27
|
+
import Warning from '@components/Warning';
|
|
28
28
|
import { alpha, styled } from '@mui/material/styles';
|
|
29
29
|
var InputStyled = styled(Input)(function (_a) {
|
|
30
30
|
var theme = _a.theme;
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import Text from '
|
|
26
|
+
import Text from '@components/Text';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
var OTPTimerStyled = styled(Box)(function (_a) {
|
|
29
29
|
var theme = _a.theme;
|
|
@@ -27,7 +27,7 @@ import List from '@mui/material/List';
|
|
|
27
27
|
import ListItem from '@mui/material/ListItem';
|
|
28
28
|
import { styled } from '@mui/material/styles';
|
|
29
29
|
import get from 'lodash-es/get';
|
|
30
|
-
import { useEventListener } from '
|
|
30
|
+
import { useEventListener } from '@hooks';
|
|
31
31
|
var ListStyled = styled(List)(function (_a) {
|
|
32
32
|
var _b;
|
|
33
33
|
var theme = _a.theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SocialMediaTypes } from '
|
|
2
|
+
import { SocialMediaTypes } from '@types';
|
|
3
3
|
import { ToggleButtonGroupProps } from '../ToggleButtonGroup';
|
|
4
4
|
import { ToggleButtonProps } from '../ToggleButton';
|
|
5
5
|
export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
|
|
@@ -23,8 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import { ICONS_NAMES } from '
|
|
27
|
-
import { SocialMediaTypes } from '
|
|
26
|
+
import { ICONS_NAMES } from '@constants';
|
|
27
|
+
import { SocialMediaTypes } from '@types';
|
|
28
28
|
import ToggleButtonGroup from '../ToggleButtonGroup';
|
|
29
29
|
import ToggleButton from '../ToggleButton';
|
|
30
30
|
import Icon from '../Icon';
|
package/build/constants/api.d.ts
CHANGED
package/build/constants/api.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
|
|
2
|
+
var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
|
|
3
|
+
var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
2
4
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
3
5
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
4
6
|
var IP_PATH = '/ip';
|
|
@@ -24,7 +26,9 @@ var MONTHLY_INCOME_PATH = '/v2/monthlyIncome';
|
|
|
24
26
|
var BRAND_LIST_PATH = '/brand/list';
|
|
25
27
|
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/locale.json';
|
|
26
28
|
export var ENDPOINT_PATHS = {
|
|
27
|
-
|
|
29
|
+
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
30
|
+
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
31
|
+
DEV_BASE_URL: DEV_BASE_URL,
|
|
28
32
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
29
33
|
COUNTRIES: API_COUNTRIES,
|
|
30
34
|
IP: IP_PATH,
|