@tap-payments/connect 2.6.81-test → 2.7.8-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 +3 -1
- package/build/@types/config.d.ts +45 -0
- package/build/@types/config.js +1 -0
- package/build/@types/index.d.ts +4 -20
- package/build/api/index.js +14 -26
- package/build/constants/index.d.ts +1 -1
- package/build/constants/index.js +1 -1
- package/build/features/Connect/Connect.js +24 -14
- package/build/features/Connect/ConnectBank.d.ts +1 -1
- package/build/features/Connect/ConnectBank.js +3 -1
- package/build/features/Connect/ConnectBoard.d.ts +1 -1
- package/build/features/Connect/ConnectBoard.js +3 -1
- package/build/features/Connect/ConnectBrand.d.ts +1 -1
- package/build/features/Connect/ConnectBrand.js +3 -1
- package/build/features/Connect/ConnectEntity.d.ts +1 -1
- package/build/features/Connect/ConnectEntity.js +3 -1
- package/build/features/Connect/ConnectIndividual.d.ts +1 -1
- package/build/features/Connect/ConnectIndividual.js +3 -1
- package/build/features/Connect/ConnectPassword.d.ts +1 -1
- package/build/features/Connect/ConnectPassword.js +3 -1
- package/build/features/Connect/ConnectTax.d.ts +1 -1
- package/build/features/Connect/ConnectTax.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ const ConnectComponent = () => {
|
|
|
85
85
|
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no"
|
|
86
86
|
/>
|
|
87
87
|
<title>Auth-JsConnect</title>
|
|
88
|
-
<script src="https://tap-sdks.b-cdn.net/connect/build-2.
|
|
88
|
+
<script src="https://tap-sdks.b-cdn.net/connect/build-2.7.8-test/main.js"></script>
|
|
89
89
|
</head>
|
|
90
90
|
<body>
|
|
91
91
|
<div id="root"></div>
|
|
@@ -157,6 +157,7 @@ const ConnectComponent = () => {
|
|
|
157
157
|
| hideMerchantLogo `optional` | `boolean` | Used to hide the **auth** merchant logo and it can be used only for auth kit |
|
|
158
158
|
| loaderColor `optional` | `string` | Used to change loader color and it can be used only for board kit |
|
|
159
159
|
| boardMaturity `optional` | `boolean` | Decide the board maturity |
|
|
160
|
+
| settingData `optional` | `boolean` | This is to get settings information. It is used board kit and other kits open from board |
|
|
160
161
|
| postURL `optional` | `string` | The POST Method URL used to push te data from our server to the merchant server and |
|
|
161
162
|
| | | it's required only if `mature` is `false` |
|
|
162
163
|
| redirectUrl `optional` | `string` | This redirect url after verify authentication go to merchant website |
|
|
@@ -168,3 +169,4 @@ const ConnectComponent = () => {
|
|
|
168
169
|
| onError `optional` | `function` | Callback function to handle the error response, it will run if the user face any error |
|
|
169
170
|
| onClose `optional` | `function` | Callback function to called when `TapConnect` get close |
|
|
170
171
|
| onBoardCompleted `optional` | `function` | Callback function to called when you complete all flows |
|
|
172
|
+
| onSettingFetched `optional` | `function` | Callback function to called after fetch settings information. It is used board kit and other kits open from board |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface ConfigInfo {
|
|
2
|
+
operator: Operator;
|
|
3
|
+
scope: string;
|
|
4
|
+
data?: string[];
|
|
5
|
+
lead?: Lead;
|
|
6
|
+
board?: Board;
|
|
7
|
+
interface?: Interface;
|
|
8
|
+
redirect?: Redirect;
|
|
9
|
+
post?: Redirect;
|
|
10
|
+
connect?: Redirect;
|
|
11
|
+
platforms?: string[];
|
|
12
|
+
payment_provider?: PaymentProvider;
|
|
13
|
+
}
|
|
14
|
+
export interface PaymentProvider {
|
|
15
|
+
technology_id: string;
|
|
16
|
+
settlement_by: string;
|
|
17
|
+
}
|
|
18
|
+
interface Redirect {
|
|
19
|
+
url: string;
|
|
20
|
+
}
|
|
21
|
+
interface Interface {
|
|
22
|
+
locale?: 'dynamic' | 'ar' | 'en';
|
|
23
|
+
edges?: 'straight' | 'curved';
|
|
24
|
+
}
|
|
25
|
+
interface Board {
|
|
26
|
+
display?: boolean;
|
|
27
|
+
editable?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface Lead {
|
|
30
|
+
id: string;
|
|
31
|
+
}
|
|
32
|
+
interface Operator {
|
|
33
|
+
public_key: string;
|
|
34
|
+
}
|
|
35
|
+
type RecordType = Record<string, any>;
|
|
36
|
+
export interface SettingAsyncData {
|
|
37
|
+
fingerPrint: RecordType;
|
|
38
|
+
locale: RecordType;
|
|
39
|
+
country_list: RecordType;
|
|
40
|
+
ip_info: RecordType;
|
|
41
|
+
merchant: RecordType;
|
|
42
|
+
operator: RecordType;
|
|
43
|
+
config: RecordType;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/@types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Language } from '../constants';
|
|
2
|
+
import { ConfigInfo, SettingAsyncData } from './config';
|
|
2
3
|
export interface ConnectProps {
|
|
3
4
|
elementId: string;
|
|
4
5
|
publicKey: string;
|
|
@@ -22,12 +23,14 @@ export interface ConnectProps {
|
|
|
22
23
|
postURL?: string;
|
|
23
24
|
redirectUrl?: string;
|
|
24
25
|
data?: Array<string>;
|
|
26
|
+
settingData?: SettingAsyncData;
|
|
25
27
|
onError?: (err: Error) => void;
|
|
26
28
|
onReady?: () => void;
|
|
27
29
|
onClose?: () => void;
|
|
28
30
|
onCreated?: (res: object) => void;
|
|
29
31
|
onSuccess?: (res: object) => void;
|
|
30
32
|
onBoardCompleted?: () => void;
|
|
33
|
+
onSettingFetched?: (data: SettingAsyncData) => void;
|
|
31
34
|
}
|
|
32
35
|
export interface OriginalConnectProps {
|
|
33
36
|
publicKey: string;
|
|
@@ -55,26 +58,7 @@ export interface OriginalConnectProps {
|
|
|
55
58
|
onClose?: () => void;
|
|
56
59
|
onBoardCompleted?: () => void;
|
|
57
60
|
}
|
|
58
|
-
export type TokenParams =
|
|
59
|
-
board?: boolean;
|
|
60
|
-
public_key: string;
|
|
61
|
-
board_maturity?: boolean;
|
|
62
|
-
domain: string;
|
|
63
|
-
language: string;
|
|
64
|
-
country: string;
|
|
65
|
-
scope: string;
|
|
66
|
-
lead_id?: string;
|
|
67
|
-
maturity: boolean;
|
|
68
|
-
notification: {
|
|
69
|
-
email: boolean;
|
|
70
|
-
sms: boolean;
|
|
71
|
-
};
|
|
72
|
-
post?: {
|
|
73
|
-
url: string;
|
|
74
|
-
};
|
|
75
|
-
redirect_url?: string;
|
|
76
|
-
data?: Array<string>;
|
|
77
|
-
};
|
|
61
|
+
export type TokenParams = ConfigInfo;
|
|
78
62
|
export interface TokenResponseParams extends TokenParams {
|
|
79
63
|
id: string;
|
|
80
64
|
contact: {
|
package/build/api/index.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -56,36 +45,35 @@ export var getFingerPrint = function () {
|
|
|
56
45
|
});
|
|
57
46
|
};
|
|
58
47
|
export var generateConfigToken = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
59
|
-
var visitorId,
|
|
60
|
-
var _a
|
|
61
|
-
return __generator(this, function (
|
|
62
|
-
switch (
|
|
48
|
+
var visitorId, publicKey, baseUrl, res, public_key, response, error_1;
|
|
49
|
+
var _a;
|
|
50
|
+
return __generator(this, function (_b) {
|
|
51
|
+
switch (_b.label) {
|
|
63
52
|
case 0:
|
|
64
|
-
|
|
53
|
+
_b.trys.push([0, 4, , 5]);
|
|
65
54
|
return [4, getFingerPrint()];
|
|
66
55
|
case 1:
|
|
67
|
-
visitorId = (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return [4, axios.post("".concat(baseUrl, "init"),
|
|
56
|
+
visitorId = (_b.sent()).visitorId;
|
|
57
|
+
publicKey = data.operator.public_key;
|
|
58
|
+
baseUrl = getBaseUrl(publicKey);
|
|
59
|
+
return [4, axios.post("".concat(baseUrl, "init"), {}, {
|
|
71
60
|
headers: {
|
|
72
61
|
'Content-Type': 'application/json',
|
|
73
62
|
'Access-Control-Allow-Headers': true,
|
|
74
|
-
authorization:
|
|
63
|
+
authorization: publicKey,
|
|
75
64
|
bi: visitorId || '',
|
|
76
65
|
cu: window.location.href,
|
|
77
66
|
mdn: window.location.origin
|
|
78
67
|
}
|
|
79
68
|
})];
|
|
80
69
|
case 2:
|
|
81
|
-
res =
|
|
70
|
+
res = _b.sent();
|
|
82
71
|
public_key = (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config) || {}).public_key;
|
|
83
72
|
if (public_key) {
|
|
84
73
|
publicKey = public_key;
|
|
85
74
|
baseUrl = getBaseUrl(public_key);
|
|
86
75
|
}
|
|
87
|
-
|
|
88
|
-
return [4, axios.post("".concat(baseUrl, "connect"), payload, {
|
|
76
|
+
return [4, axios.post("".concat(baseUrl, "v1/connect"), data, {
|
|
89
77
|
headers: {
|
|
90
78
|
'Content-Type': 'application/json',
|
|
91
79
|
'Access-Control-Allow-Headers': true,
|
|
@@ -96,10 +84,10 @@ export var generateConfigToken = function (data) { return __awaiter(void 0, void
|
|
|
96
84
|
}
|
|
97
85
|
})];
|
|
98
86
|
case 3:
|
|
99
|
-
response =
|
|
87
|
+
response = _b.sent();
|
|
100
88
|
return [2, { data: response.data, publicKey: publicKey }];
|
|
101
89
|
case 4:
|
|
102
|
-
error_1 =
|
|
90
|
+
error_1 = _b.sent();
|
|
103
91
|
return [2, { error: error_1 }];
|
|
104
92
|
case 5: return [2];
|
|
105
93
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.
|
|
1
|
+
export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.7.8-test/";
|
|
2
2
|
export declare const Maturity: {
|
|
3
3
|
readonly FULL: "full";
|
|
4
4
|
readonly EXPRESS: "express";
|
package/build/constants/index.js
CHANGED
|
@@ -87,23 +87,33 @@ export var TapConnect = React.memo(function (props) {
|
|
|
87
87
|
});
|
|
88
88
|
var tapConnectInstance = null;
|
|
89
89
|
export var renderTapConnect = function (props, elementId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
90
|
-
var mode, board, publicKey, boardMaturity,
|
|
90
|
+
var mode, board, publicKey, boardMaturity, language, country, scope, lead, postURL, mature, onError, redirectUrl, AuthData, payload, _a, data, publicKeyValue, _b, token, connect, baseUrl, url_1, countryCode, url, el, root, unmount;
|
|
91
91
|
return __generator(this, function (_c) {
|
|
92
92
|
switch (_c.label) {
|
|
93
93
|
case 0:
|
|
94
94
|
props.mode = props.mode || 'popup';
|
|
95
|
-
mode = props.mode, board = props.board, publicKey = props.publicKey, boardMaturity = props.boardMaturity,
|
|
95
|
+
mode = props.mode, board = props.board, publicKey = props.publicKey, boardMaturity = props.boardMaturity, language = props.language, country = props.country, scope = props.scope, lead = props.lead, postURL = props.postURL, mature = props.mature, onError = props.onError, redirectUrl = props.redirectUrl, AuthData = props.data;
|
|
96
96
|
if (!(mode === 'page')) return [3, 2];
|
|
97
|
-
payload = __assign({
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
} }, (postURL && __assign(__assign({ post: {
|
|
101
|
-
url: postURL
|
|
102
|
-
} }, (redirectUrl && {
|
|
103
|
-
platform_redirect_url: redirectUrl
|
|
104
|
-
})), (AuthData && {
|
|
97
|
+
payload = __assign(__assign(__assign(__assign({ operator: {
|
|
98
|
+
public_key: publicKey
|
|
99
|
+
}, scope: scope }, (AuthData && {
|
|
105
100
|
data: AuthData
|
|
106
|
-
}))
|
|
101
|
+
})), { lead: {
|
|
102
|
+
id: lead || ''
|
|
103
|
+
}, board: {
|
|
104
|
+
display: board,
|
|
105
|
+
editable: boardMaturity
|
|
106
|
+
}, interface: {
|
|
107
|
+
locale: language
|
|
108
|
+
} }), (redirectUrl && {
|
|
109
|
+
redirect: {
|
|
110
|
+
url: redirectUrl
|
|
111
|
+
}
|
|
112
|
+
})), (postURL && {
|
|
113
|
+
post: {
|
|
114
|
+
url: postURL
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
107
117
|
return [4, generateConfigToken(payload)];
|
|
108
118
|
case 1:
|
|
109
119
|
_a = _c.sent(), data = _a.data, publicKeyValue = _a.publicKey;
|
|
@@ -111,15 +121,15 @@ export var renderTapConnect = function (props, elementId) { return __awaiter(voi
|
|
|
111
121
|
onError === null || onError === void 0 ? void 0 : onError(data.error);
|
|
112
122
|
return [2];
|
|
113
123
|
}
|
|
114
|
-
_b = data || {}, token = _b.token,
|
|
124
|
+
_b = data || {}, token = _b.token, connect = _b.connect;
|
|
115
125
|
baseUrl = getRedirectBaseUrl(publicKeyValue || '');
|
|
116
126
|
if (!mature || scope === 'auth') {
|
|
117
|
-
url_1 = (
|
|
127
|
+
url_1 = (connect === null || connect === void 0 ? void 0 : connect.url) || "".concat(baseUrl, "?config_token=").concat(token);
|
|
118
128
|
window.location.href = url_1;
|
|
119
129
|
return [2];
|
|
120
130
|
}
|
|
121
131
|
countryCode = country.toLowerCase();
|
|
122
|
-
url = (
|
|
132
|
+
url = (connect === null || connect === void 0 ? void 0 : connect.url) || "".concat(baseUrl).concat(countryCode, "?config_token=").concat(token);
|
|
123
133
|
window.location.href = url;
|
|
124
134
|
return [2];
|
|
125
135
|
case 2:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
type BankProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor'>;
|
|
3
|
+
type BankProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapBankProps = BankProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -83,7 +83,9 @@ var Bank = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
verifyToken: props.verifyToken,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-bank-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
export type BoardProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'boardId'>;
|
|
3
|
+
export type BoardProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'boardId' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapBoardProps = BoardProps & {
|
|
5
5
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
6
6
|
};
|
|
@@ -83,7 +83,9 @@ var Board = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
boardId: props.boardId,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-board-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
type BrandProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor'>;
|
|
3
|
+
type BrandProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapBrandProps = BrandProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -83,7 +83,9 @@ var Brand = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
verifyToken: props.verifyToken,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-brand-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
type EntityProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor'>;
|
|
3
|
+
type EntityProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapEntityProps = EntityProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -83,7 +83,9 @@ var Entity = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
verifyToken: props.verifyToken,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-entity-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
type IndividualProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor'>;
|
|
3
|
+
type IndividualProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapIndividualProps = IndividualProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -83,7 +83,9 @@ var Individual = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
verifyToken: props.verifyToken,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-individual-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
type PasswordProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor'>;
|
|
3
|
+
type PasswordProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapPasswordProps = PasswordProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -83,7 +83,9 @@ var Password = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
verifyToken: props.verifyToken,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-password-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
type TaxProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor'>;
|
|
3
|
+
type TaxProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
4
4
|
export type TapTaxProps = TaxProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -83,7 +83,9 @@ var Tax = function (props) {
|
|
|
83
83
|
onClose: props.onClose,
|
|
84
84
|
loaderColor: props.loaderColor,
|
|
85
85
|
verifyToken: props.verifyToken,
|
|
86
|
-
onBoardButtonClick: props.onBoardButtonClick
|
|
86
|
+
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
|
+
settingData: props.settingData,
|
|
88
|
+
onSettingFetched: props.onSettingFetched
|
|
87
89
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-tax-lib-id').unmount;
|
|
88
90
|
return function () {
|
|
89
91
|
unmount();
|