@tap-payments/connect 2.8.46-development → 2.8.50-development
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 +32 -34
- package/build/@types/config.d.ts +8 -0
- package/build/@types/index.d.ts +3 -4
- package/build/constants/index.d.ts +1 -1
- package/build/constants/index.js +1 -1
- package/build/features/Connect/ConnectAuth.d.ts +1 -1
- package/build/features/Connect/ConnectAuth.js +1 -3
- package/build/features/Connect/ConnectBank.d.ts +1 -1
- package/build/features/Connect/ConnectBank.js +2 -1
- package/build/features/Connect/ConnectBoard.d.ts +1 -1
- package/build/features/Connect/ConnectBoard.js +2 -1
- package/build/features/Connect/ConnectBrand.d.ts +1 -1
- package/build/features/Connect/ConnectBrand.js +2 -1
- package/build/features/Connect/ConnectEntity.d.ts +1 -1
- package/build/features/Connect/ConnectEntity.js +2 -1
- package/build/features/Connect/ConnectIndividual.d.ts +1 -1
- package/build/features/Connect/ConnectIndividual.js +2 -1
- package/build/features/Connect/ConnectPassword.d.ts +1 -1
- package/build/features/Connect/ConnectPassword.js +2 -1
- package/build/features/Connect/ConnectTax.d.ts +1 -1
- package/build/features/Connect/ConnectTax.js +2 -1
- package/build/utils/config.d.ts +1 -1
- package/build/utils/config.js +2 -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.8.
|
|
88
|
+
<script src="https://tap-sdks.b-cdn.net/connect/build-2.8.50-development/main.js"></script>
|
|
89
89
|
</head>
|
|
90
90
|
<body>
|
|
91
91
|
<div id="root"></div>
|
|
@@ -137,36 +137,34 @@ const ConnectComponent = () => {
|
|
|
137
137
|
|
|
138
138
|
## Properties
|
|
139
139
|
|
|
140
|
-
| name | type | description
|
|
141
|
-
| ---------------------------------- | ----------------------------- |
|
|
142
|
-
| publicKey `required` | `string` | Public key of the merchant account provided by Tap Payments
|
|
143
|
-
| domain `required` | `string` | Domain of the merchant
|
|
144
|
-
| language `required` | `Languages` | language flag to control the language of the connect element and only accept [ar,en]
|
|
145
|
-
| country `required` | `string` | Country ISO2 of the merchant
|
|
146
|
-
| scope `required` | `string` | the scope of the merchant available values [merchant, auth]
|
|
147
|
-
| data `optional` | `Array<string>` | Merchant data array `ex: [operator]`
|
|
148
|
-
| lead `optional` | `string` | Lead Id can be passed in case of you already created a lead using our API
|
|
149
|
-
| mode `required` | `string` | Decide to show connect as a `popup` or `page` or `content` to our connect domain. Default value is `popup`. `content` mode only used for board kit
|
|
150
|
-
| mature `required` | `boolean` | Decide the mode of connect `normal` or `express`
|
|
151
|
-
| board `optional` | `string` | Show/Hide board screens
|
|
152
|
-
| open `required` | `boolean` | Open/Close the connect library
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
| | |
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
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 |
|
|
140
|
+
| name | type | description |
|
|
141
|
+
| ---------------------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
142
|
+
| publicKey `required` | `string` | Public key of the merchant account provided by Tap Payments |
|
|
143
|
+
| domain `required` | `string` | Domain of the merchant |
|
|
144
|
+
| language `required` | `Languages` | language flag to control the language of the connect element and only accept [ar,en] |
|
|
145
|
+
| country `required` | `string` | Country ISO2 of the merchant |
|
|
146
|
+
| scope `required` | `string` | the scope of the merchant available values [merchant, auth] |
|
|
147
|
+
| data `optional` | `Array<string>` | Merchant data array `ex: [operator]` |
|
|
148
|
+
| lead `optional` | `string` | Lead Id can be passed in case of you already created a lead using our API |
|
|
149
|
+
| mode `required` | `string` | Decide to show connect as a `popup` or `page` or `content` to our connect domain. Default value is `popup`. `content` mode only used for board kit |
|
|
150
|
+
| mature `required` | `boolean` | Decide the mode of connect `normal` or `express` |
|
|
151
|
+
| board `optional` | `string` | Show/Hide board screens |
|
|
152
|
+
| open `required` | `boolean` | Open/Close the connect library |
|
|
153
|
+
| openAnimationDirection `optional` | `left or right or up or down` | Used to handle **auth** slide animation direction when open popup for auth kit |
|
|
154
|
+
| closeAnimationDirection `optional` | `left or right or up or down` | Used to handle **auth** slide animation direction when close popup for auth kit |
|
|
155
|
+
| features `object` | `all values true` | Used to show or hide some fields (poweredBy, merchantLogo - Used to hide the merchant logo and it can be used only for auth kit, switchLanguage, overlay - Used to disable the background color and it can be used only for auth kit, loaderOverlay - Used to disable the loader background color and it can be used only for auth kit, tapTextLogo) |
|
|
156
|
+
| loaderColor `optional` | `string` | Used to change loader color and it can be used only for board kit |
|
|
157
|
+
| boardMaturity `optional` | `boolean` | Decide the board maturity |
|
|
158
|
+
| settingData `optional` | `boolean` | This is to get settings information. It is used board kit and other kits open from board |
|
|
159
|
+
| postURL `optional` | `string` | The POST Method URL used to push te data from our server to the merchant server and |
|
|
160
|
+
| | | it's required only if `mature` is `false` |
|
|
161
|
+
| redirectUrl `optional` | `string` | This redirect url after verify authentication go to merchant website |
|
|
162
|
+
| | | It is `required` if scope is `auth` and mode is `page` |
|
|
163
|
+
| onReady `optional` | `function` | Callback function to handle the ready state of the `TapConnect` |
|
|
164
|
+
| onCreated `optional` | `function` | Callback function to called the the account created successfully |
|
|
165
|
+
| | | it calls only if `mature` is `false` |
|
|
166
|
+
| onSuccess `optional` | `function` | Callback function to handle the success response, it will run after the user finish the flow |
|
|
167
|
+
| onError `optional` | `function` | Callback function to handle the error response, it will run if the user face any error |
|
|
168
|
+
| onClose `optional` | `function` | Callback function to called when `TapConnect` get close |
|
|
169
|
+
| onBoardCompleted `optional` | `function` | Callback function to called when you complete all flows |
|
|
170
|
+
| onSettingFetched `optional` | `function` | Callback function to called after fetch settings information. It is used board kit and other kits open from board |
|
package/build/@types/config.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ export interface ConfigInfo {
|
|
|
11
11
|
platforms?: string[];
|
|
12
12
|
payment_provider?: PaymentProvider;
|
|
13
13
|
}
|
|
14
|
+
export interface ConnectFeatures {
|
|
15
|
+
poweredBy?: boolean;
|
|
16
|
+
merchantLogo?: boolean;
|
|
17
|
+
switchLanguage?: boolean;
|
|
18
|
+
overlay?: boolean;
|
|
19
|
+
loaderOverlay?: boolean;
|
|
20
|
+
tapTextLogo?: boolean;
|
|
21
|
+
}
|
|
14
22
|
export interface PaymentProvider {
|
|
15
23
|
technology_id: string;
|
|
16
24
|
settlement_by: string;
|
package/build/@types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Language } from '../constants';
|
|
2
|
-
import { ConfigInfo, SettingAsyncData } from './config';
|
|
2
|
+
import { ConfigInfo, ConnectFeatures, SettingAsyncData } from './config';
|
|
3
3
|
export interface ConnectProps {
|
|
4
4
|
elementId: string;
|
|
5
5
|
publicKey: string;
|
|
@@ -12,9 +12,6 @@ export interface ConnectProps {
|
|
|
12
12
|
mode?: 'popup' | 'page' | 'content';
|
|
13
13
|
board?: boolean;
|
|
14
14
|
boardMaturity?: boolean;
|
|
15
|
-
hideOverlay?: boolean;
|
|
16
|
-
hideLoaderOverlay?: boolean;
|
|
17
|
-
hideMerchantLogo?: boolean;
|
|
18
15
|
openAnimationDirection?: 'left' | 'right' | 'up' | 'down';
|
|
19
16
|
closeAnimationDirection?: 'left' | 'right' | 'up' | 'down';
|
|
20
17
|
loaderColor?: string;
|
|
@@ -24,6 +21,7 @@ export interface ConnectProps {
|
|
|
24
21
|
redirectUrl?: string;
|
|
25
22
|
data?: Array<string>;
|
|
26
23
|
settingData?: SettingAsyncData;
|
|
24
|
+
features?: ConnectFeatures;
|
|
27
25
|
onError?: (err: Error) => void;
|
|
28
26
|
onReady?: () => void;
|
|
29
27
|
onClose?: () => void;
|
|
@@ -47,6 +45,7 @@ export interface OriginalConnectProps {
|
|
|
47
45
|
data?: Array<string>;
|
|
48
46
|
showBoard?: boolean;
|
|
49
47
|
boardMaturity?: boolean;
|
|
48
|
+
features?: ConnectFeatures;
|
|
50
49
|
verifyToken?: string;
|
|
51
50
|
onFlowCompleted: (res: object, headers?: Record<string, string>) => void;
|
|
52
51
|
onError: (err: any) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.8.
|
|
1
|
+
export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.8.50-development";
|
|
2
2
|
export declare const Maturity: {
|
|
3
3
|
readonly FULL: "full";
|
|
4
4
|
readonly EXPRESS: "express";
|
package/build/constants/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
|
-
export type ConnectAuthProps = Pick<ConnectAttrs, 'open' | 'domain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'lead' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | '
|
|
3
|
+
export type ConnectAuthProps = Pick<ConnectAttrs, 'open' | 'domain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'lead' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'features' | 'openAnimationDirection' | 'closeAnimationDirection'>;
|
|
4
4
|
export declare const TapConnectAuth: React.MemoExoticComponent<(props: ConnectAuthProps & {
|
|
5
5
|
id?: string;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -84,9 +84,7 @@ var ConnectAuth = function (props) {
|
|
|
84
84
|
onError: props.onError,
|
|
85
85
|
onReady: props.onReady,
|
|
86
86
|
onClose: props.onClose,
|
|
87
|
-
|
|
88
|
-
hideLoaderOverlay: props.hideLoaderOverlay,
|
|
89
|
-
hideMerchantLogo: props.hideMerchantLogo,
|
|
87
|
+
features: props.features,
|
|
90
88
|
openAnimationDirection: props.openAnimationDirection,
|
|
91
89
|
closeAnimationDirection: props.closeAnimationDirection
|
|
92
90
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-auth-lib-id').unmount;
|
|
@@ -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' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
type BankProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapBankProps = BankProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -86,7 +86,8 @@ var Bank = function (props) {
|
|
|
86
86
|
verifyToken: props.verifyToken,
|
|
87
87
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
88
88
|
settingData: props.settingData,
|
|
89
|
-
onSettingFetched: props.onSettingFetched
|
|
89
|
+
onSettingFetched: props.onSettingFetched,
|
|
90
|
+
features: props.features
|
|
90
91
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-bank-lib-id').unmount;
|
|
91
92
|
return function () {
|
|
92
93
|
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' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
export type BoardProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'boardId' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapBoardProps = BoardProps & {
|
|
5
5
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
6
6
|
};
|
|
@@ -85,7 +85,8 @@ var Board = function (props) {
|
|
|
85
85
|
boardId: props.boardId,
|
|
86
86
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
87
87
|
settingData: props.settingData,
|
|
88
|
-
onSettingFetched: props.onSettingFetched
|
|
88
|
+
onSettingFetched: props.onSettingFetched,
|
|
89
|
+
features: props.features
|
|
89
90
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-board-lib-id').unmount;
|
|
90
91
|
return function () {
|
|
91
92
|
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' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
type BrandProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapBrandProps = BrandProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -86,7 +86,8 @@ var Brand = function (props) {
|
|
|
86
86
|
verifyToken: props.verifyToken,
|
|
87
87
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
88
88
|
settingData: props.settingData,
|
|
89
|
-
onSettingFetched: props.onSettingFetched
|
|
89
|
+
onSettingFetched: props.onSettingFetched,
|
|
90
|
+
features: props.features
|
|
90
91
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-brand-lib-id').unmount;
|
|
91
92
|
return function () {
|
|
92
93
|
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' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
type EntityProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapEntityProps = EntityProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -86,7 +86,8 @@ var Entity = function (props) {
|
|
|
86
86
|
verifyToken: props.verifyToken,
|
|
87
87
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
88
88
|
settingData: props.settingData,
|
|
89
|
-
onSettingFetched: props.onSettingFetched
|
|
89
|
+
onSettingFetched: props.onSettingFetched,
|
|
90
|
+
features: props.features
|
|
90
91
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-entity-lib-id').unmount;
|
|
91
92
|
return function () {
|
|
92
93
|
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' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
type IndividualProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapIndividualProps = IndividualProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -86,7 +86,8 @@ var Individual = function (props) {
|
|
|
86
86
|
verifyToken: props.verifyToken,
|
|
87
87
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
88
88
|
settingData: props.settingData,
|
|
89
|
-
onSettingFetched: props.onSettingFetched
|
|
89
|
+
onSettingFetched: props.onSettingFetched,
|
|
90
|
+
features: props.features
|
|
90
91
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-individual-lib-id').unmount;
|
|
91
92
|
return function () {
|
|
92
93
|
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' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
type PasswordProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapPasswordProps = PasswordProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -86,7 +86,8 @@ var Password = function (props) {
|
|
|
86
86
|
verifyToken: props.verifyToken,
|
|
87
87
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
88
88
|
settingData: props.settingData,
|
|
89
|
-
onSettingFetched: props.onSettingFetched
|
|
89
|
+
onSettingFetched: props.onSettingFetched,
|
|
90
|
+
features: props.features
|
|
90
91
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-password-lib-id').unmount;
|
|
91
92
|
return function () {
|
|
92
93
|
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' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched'>;
|
|
3
|
+
type TaxProps = Pick<ConnectAttrs, 'open' | 'mode' | 'scope' | 'domain' | 'board' | 'publicKey' | 'postURL' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'loaderColor' | 'settingData' | 'onSettingFetched' | 'features'>;
|
|
4
4
|
export type TapTaxProps = TaxProps & {
|
|
5
5
|
verifyToken: string;
|
|
6
6
|
onBoardButtonClick: (data: Record<string, string>) => void;
|
|
@@ -86,7 +86,8 @@ var Tax = function (props) {
|
|
|
86
86
|
verifyToken: props.verifyToken,
|
|
87
87
|
onBoardButtonClick: props.onBoardButtonClick,
|
|
88
88
|
settingData: props.settingData,
|
|
89
|
-
onSettingFetched: props.onSettingFetched
|
|
89
|
+
onSettingFetched: props.onSettingFetched,
|
|
90
|
+
features: props.features
|
|
90
91
|
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-tax-lib-id').unmount;
|
|
91
92
|
return function () {
|
|
92
93
|
unmount();
|
package/build/utils/config.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ type ExtraProps = {
|
|
|
3
3
|
verifyToken?: string;
|
|
4
4
|
onBoardButtonClick?: (data: Record<string, string>) => void;
|
|
5
5
|
};
|
|
6
|
-
export declare const wrapLibConfig: ({ publicKey, open, mode, language, country, scope, lead, postURL, onError, onReady, onSuccess, board, verifyToken, domain, onBoardButtonClick, onClose, onCreated, onBoardCompleted, boardMaturity, data, redirectUrl }: ConnectProps & ExtraProps) => OriginalConnectProps;
|
|
6
|
+
export declare const wrapLibConfig: ({ publicKey, open, mode, language, country, scope, lead, postURL, onError, onReady, onSuccess, board, verifyToken, domain, onBoardButtonClick, onClose, onCreated, onBoardCompleted, boardMaturity, data, redirectUrl, features }: ConnectProps & ExtraProps) => OriginalConnectProps;
|
|
7
7
|
export {};
|
package/build/utils/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var wrapLibConfig = function (_a) {
|
|
2
|
-
var publicKey = _a.publicKey, open = _a.open, mode = _a.mode, language = _a.language, country = _a.country, scope = _a.scope, lead = _a.lead, postURL = _a.postURL, onError = _a.onError, onReady = _a.onReady, onSuccess = _a.onSuccess, board = _a.board, verifyToken = _a.verifyToken, domain = _a.domain, onBoardButtonClick = _a.onBoardButtonClick, onClose = _a.onClose, onCreated = _a.onCreated, onBoardCompleted = _a.onBoardCompleted, boardMaturity = _a.boardMaturity, data = _a.data, redirectUrl = _a.redirectUrl;
|
|
2
|
+
var publicKey = _a.publicKey, open = _a.open, mode = _a.mode, language = _a.language, country = _a.country, scope = _a.scope, lead = _a.lead, postURL = _a.postURL, onError = _a.onError, onReady = _a.onReady, onSuccess = _a.onSuccess, board = _a.board, verifyToken = _a.verifyToken, domain = _a.domain, onBoardButtonClick = _a.onBoardButtonClick, onClose = _a.onClose, onCreated = _a.onCreated, onBoardCompleted = _a.onBoardCompleted, boardMaturity = _a.boardMaturity, data = _a.data, redirectUrl = _a.redirectUrl, features = _a.features;
|
|
3
3
|
return {
|
|
4
4
|
appInfo: {
|
|
5
5
|
name: window.location.hostname || window.location.origin
|
|
@@ -18,6 +18,7 @@ export var wrapLibConfig = function (_a) {
|
|
|
18
18
|
showBoard: board,
|
|
19
19
|
boardMaturity: boardMaturity,
|
|
20
20
|
verifyToken: verifyToken,
|
|
21
|
+
features: features,
|
|
21
22
|
onFlowCompleted: function (res) {
|
|
22
23
|
onSuccess && onSuccess(res);
|
|
23
24
|
},
|