@tap-payments/connect 2.6.80-test → 2.7.7-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 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.6.79-test/main.js"></script>
88
+ <script src="https://tap-sdks.b-cdn.net/connect/build-2.7.7-test/main.js"></script>
89
89
  </head>
90
90
  <body>
91
91
  <div id="root"></div>
@@ -0,0 +1,35 @@
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
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { Language } from '../constants';
2
+ import { ConfigInfo } from './config';
2
3
  export interface ConnectProps {
3
4
  elementId: string;
4
5
  publicKey: string;
@@ -55,26 +56,7 @@ export interface OriginalConnectProps {
55
56
  onClose?: () => void;
56
57
  onBoardCompleted?: () => void;
57
58
  }
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
- };
59
+ export type TokenParams = ConfigInfo;
78
60
  export interface TokenResponseParams extends TokenParams {
79
61
  id: string;
80
62
  contact: {
@@ -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, baseUrl, publicKey, res, public_key, payload, response, error_1;
60
- var _a, _b, _c;
61
- return __generator(this, function (_d) {
62
- switch (_d.label) {
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
- _d.trys.push([0, 4, , 5]);
53
+ _b.trys.push([0, 4, , 5]);
65
54
  return [4, getFingerPrint()];
66
55
  case 1:
67
- visitorId = (_d.sent()).visitorId;
68
- baseUrl = getBaseUrl(data.public_key);
69
- publicKey = data.public_key;
70
- return [4, axios.post("".concat(baseUrl, "init"), data, {
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: data.public_key,
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 = _d.sent();
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
- payload = __assign(__assign({}, data), (((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.config) && ((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.config)));
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 = _d.sent();
87
+ response = _b.sent();
100
88
  return [2, { data: response.data, publicKey: publicKey }];
101
89
  case 4:
102
- error_1 = _d.sent();
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.6.80-test/";
1
+ export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.7.7-test/";
2
2
  export declare const Maturity: {
3
3
  readonly FULL: "full";
4
4
  readonly EXPRESS: "express";
@@ -1,4 +1,4 @@
1
- export var CDN_LIBRARY_BASE_URL = 'https://auth-jsconnect.b-cdn.net/build-2.6.80-test/';
1
+ export var CDN_LIBRARY_BASE_URL = 'https://auth-jsconnect.b-cdn.net/build-2.7.7-test/';
2
2
  export var Maturity = {
3
3
  FULL: 'full',
4
4
  EXPRESS: 'express'
@@ -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, domain, language, country, scope, lead, postURL, mature, onError, redirectUrl, AuthData, payload, _a, data, publicKeyValue, _b, token, redirect, baseUrl, url_1, countryCode, url, el, root, unmount;
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, domain = props.domain, 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;
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({ board: board, public_key: publicKey, board_maturity: boardMaturity, domain: domain, language: language, country: country, scope: scope, lead_id: lead, maturity: scope === 'auth' ? false : mature, notification: {
98
- email: scope !== 'auth',
99
- sms: scope !== 'auth'
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, redirect = _b.redirect;
124
+ _b = data || {}, token = _b.token, connect = _b.connect;
115
125
  baseUrl = getRedirectBaseUrl(publicKeyValue || '');
116
126
  if (!mature || scope === 'auth') {
117
- url_1 = (redirect === null || redirect === void 0 ? void 0 : redirect.url) || "".concat(baseUrl, "?config_token=").concat(token);
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 = (redirect === null || redirect === void 0 ? void 0 : redirect.url) || "".concat(baseUrl).concat(countryCode, "?config_token=").concat(token);
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:
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
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'>;
4
+ export type TapBankProps = BankProps & {
5
+ verifyToken: string;
6
+ onBoardButtonClick: (data: Record<string, string>) => void;
7
+ };
8
+ export declare const TapBank: React.MemoExoticComponent<(props: TapBankProps & {
9
+ id?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const renderTapBank: (props: TapBankProps, elementId: string) => Promise<any>;
12
+ export {};
@@ -0,0 +1,114 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx } from "react/jsx-runtime";
49
+ import * as React from 'react';
50
+ import { createRoot } from 'react-dom/client';
51
+ import { findOrCreateElementAndInject, validateBoardOtherKitsProps } from '../../utils';
52
+ import { useScript, useStyle } from '../../hooks';
53
+ import { CDN_LIBRARY_BASE_URL } from '../../constants';
54
+ var Bank = function (props) {
55
+ useStyle("".concat(CDN_LIBRARY_BASE_URL, "/main.css"));
56
+ var status = useScript("".concat(CDN_LIBRARY_BASE_URL, "/main.js"));
57
+ React.useEffect(function () {
58
+ if (status === 'ready')
59
+ console.info('connect-bank-js is ready!');
60
+ if (status === 'error')
61
+ console.error('connect-bank-js failed to load!');
62
+ }, [status]);
63
+ React.useEffect(function () {
64
+ var _a;
65
+ if (status !== 'ready')
66
+ return;
67
+ var renderBankLib = window['TapAuth'].renderBankLib;
68
+ var unmount = renderBankLib({
69
+ open: props.open,
70
+ mode: props.mode,
71
+ scope: props.scope,
72
+ merchantDomain: props.domain,
73
+ publicKey: props.publicKey,
74
+ postURL: props.postURL,
75
+ appInfo: {
76
+ name: window.location.hostname || window.location.origin
77
+ },
78
+ businessCountryCode: props.country,
79
+ language: props.language,
80
+ onFlowCompleted: props.onSuccess,
81
+ onError: props.onError,
82
+ onReady: props.onReady,
83
+ onClose: props.onClose,
84
+ loaderColor: props.loaderColor,
85
+ verifyToken: props.verifyToken,
86
+ onBoardButtonClick: props.onBoardButtonClick
87
+ }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-bank-lib-id').unmount;
88
+ return function () {
89
+ unmount();
90
+ };
91
+ }, [status]);
92
+ if (status !== 'ready')
93
+ return null;
94
+ return _jsx("div", { id: 'tap-connect-bank-lib-id' });
95
+ };
96
+ export var TapBank = React.memo(function (props) {
97
+ validateBoardOtherKitsProps(props);
98
+ return _jsx(Bank, __assign({}, props));
99
+ });
100
+ var tapConnectInstance = null;
101
+ export var renderTapBank = function (props, elementId) { return __awaiter(void 0, void 0, void 0, function () {
102
+ var el, root, unmount;
103
+ return __generator(this, function (_a) {
104
+ el = findOrCreateElementAndInject(elementId);
105
+ root = createRoot(el);
106
+ root.render(_jsx(TapBank, __assign({}, props)));
107
+ unmount = function () {
108
+ root.unmount();
109
+ tapConnectInstance = null;
110
+ };
111
+ tapConnectInstance = { unmount: unmount };
112
+ return [2, tapConnectInstance];
113
+ });
114
+ }); };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
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'>;
4
+ export type TapEntityProps = EntityProps & {
5
+ verifyToken: string;
6
+ onBoardButtonClick: (data: Record<string, string>) => void;
7
+ };
8
+ export declare const TapEntity: React.MemoExoticComponent<(props: TapEntityProps & {
9
+ id?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const renderTapEntity: (props: TapEntityProps, elementId: string) => Promise<any>;
12
+ export {};
@@ -0,0 +1,114 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx } from "react/jsx-runtime";
49
+ import * as React from 'react';
50
+ import { createRoot } from 'react-dom/client';
51
+ import { findOrCreateElementAndInject, validateBoardOtherKitsProps } from '../../utils';
52
+ import { useScript, useStyle } from '../../hooks';
53
+ import { CDN_LIBRARY_BASE_URL } from '../../constants';
54
+ var Entity = function (props) {
55
+ useStyle("".concat(CDN_LIBRARY_BASE_URL, "/main.css"));
56
+ var status = useScript("".concat(CDN_LIBRARY_BASE_URL, "/main.js"));
57
+ React.useEffect(function () {
58
+ if (status === 'ready')
59
+ console.info('connect-entity-js is ready!');
60
+ if (status === 'error')
61
+ console.error('connect-entity-js failed to load!');
62
+ }, [status]);
63
+ React.useEffect(function () {
64
+ var _a;
65
+ if (status !== 'ready')
66
+ return;
67
+ var renderEntityLib = window['TapAuth'].renderEntityLib;
68
+ var unmount = renderEntityLib({
69
+ open: props.open,
70
+ mode: props.mode,
71
+ scope: props.scope,
72
+ merchantDomain: props.domain,
73
+ publicKey: props.publicKey,
74
+ postURL: props.postURL,
75
+ appInfo: {
76
+ name: window.location.hostname || window.location.origin
77
+ },
78
+ businessCountryCode: props.country,
79
+ language: props.language,
80
+ onFlowCompleted: props.onSuccess,
81
+ onError: props.onError,
82
+ onReady: props.onReady,
83
+ onClose: props.onClose,
84
+ loaderColor: props.loaderColor,
85
+ verifyToken: props.verifyToken,
86
+ onBoardButtonClick: props.onBoardButtonClick
87
+ }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-entity-lib-id').unmount;
88
+ return function () {
89
+ unmount();
90
+ };
91
+ }, [status]);
92
+ if (status !== 'ready')
93
+ return null;
94
+ return _jsx("div", { id: 'tap-connect-entity-lib-id' });
95
+ };
96
+ export var TapEntity = React.memo(function (props) {
97
+ validateBoardOtherKitsProps(props);
98
+ return _jsx(Entity, __assign({}, props));
99
+ });
100
+ var tapConnectInstance = null;
101
+ export var renderTapEntity = function (props, elementId) { return __awaiter(void 0, void 0, void 0, function () {
102
+ var el, root, unmount;
103
+ return __generator(this, function (_a) {
104
+ el = findOrCreateElementAndInject(elementId);
105
+ root = createRoot(el);
106
+ root.render(_jsx(TapEntity, __assign({}, props)));
107
+ unmount = function () {
108
+ root.unmount();
109
+ tapConnectInstance = null;
110
+ };
111
+ tapConnectInstance = { unmount: unmount };
112
+ return [2, tapConnectInstance];
113
+ });
114
+ }); };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
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'>;
4
+ export type TapIndividualProps = IndividualProps & {
5
+ verifyToken: string;
6
+ onBoardButtonClick: (data: Record<string, string>) => void;
7
+ };
8
+ export declare const TapIndividual: React.MemoExoticComponent<(props: TapIndividualProps & {
9
+ id?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const renderTapIndividual: (props: TapIndividualProps, elementId: string) => Promise<any>;
12
+ export {};
@@ -0,0 +1,114 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx } from "react/jsx-runtime";
49
+ import * as React from 'react';
50
+ import { createRoot } from 'react-dom/client';
51
+ import { findOrCreateElementAndInject, validateBoardOtherKitsProps } from '../../utils';
52
+ import { useScript, useStyle } from '../../hooks';
53
+ import { CDN_LIBRARY_BASE_URL } from '../../constants';
54
+ var Individual = function (props) {
55
+ useStyle("".concat(CDN_LIBRARY_BASE_URL, "/main.css"));
56
+ var status = useScript("".concat(CDN_LIBRARY_BASE_URL, "/main.js"));
57
+ React.useEffect(function () {
58
+ if (status === 'ready')
59
+ console.info('connect-individual-js is ready!');
60
+ if (status === 'error')
61
+ console.error('connect-individual-js failed to load!');
62
+ }, [status]);
63
+ React.useEffect(function () {
64
+ var _a;
65
+ if (status !== 'ready')
66
+ return;
67
+ var renderIndividualLib = window['TapAuth'].renderIndividualLib;
68
+ var unmount = renderIndividualLib({
69
+ open: props.open,
70
+ mode: props.mode,
71
+ scope: props.scope,
72
+ merchantDomain: props.domain,
73
+ publicKey: props.publicKey,
74
+ postURL: props.postURL,
75
+ appInfo: {
76
+ name: window.location.hostname || window.location.origin
77
+ },
78
+ businessCountryCode: props.country,
79
+ language: props.language,
80
+ onFlowCompleted: props.onSuccess,
81
+ onError: props.onError,
82
+ onReady: props.onReady,
83
+ onClose: props.onClose,
84
+ loaderColor: props.loaderColor,
85
+ verifyToken: props.verifyToken,
86
+ onBoardButtonClick: props.onBoardButtonClick
87
+ }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-individual-lib-id').unmount;
88
+ return function () {
89
+ unmount();
90
+ };
91
+ }, [status]);
92
+ if (status !== 'ready')
93
+ return null;
94
+ return _jsx("div", { id: 'tap-connect-individual-lib-id' });
95
+ };
96
+ export var TapIndividual = React.memo(function (props) {
97
+ validateBoardOtherKitsProps(props);
98
+ return _jsx(Individual, __assign({}, props));
99
+ });
100
+ var tapConnectInstance = null;
101
+ export var renderTapIndividual = function (props, elementId) { return __awaiter(void 0, void 0, void 0, function () {
102
+ var el, root, unmount;
103
+ return __generator(this, function (_a) {
104
+ el = findOrCreateElementAndInject(elementId);
105
+ root = createRoot(el);
106
+ root.render(_jsx(TapIndividual, __assign({}, props)));
107
+ unmount = function () {
108
+ root.unmount();
109
+ tapConnectInstance = null;
110
+ };
111
+ tapConnectInstance = { unmount: unmount };
112
+ return [2, tapConnectInstance];
113
+ });
114
+ }); };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
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'>;
4
+ export type TapPasswordProps = PasswordProps & {
5
+ verifyToken: string;
6
+ onBoardButtonClick: (data: Record<string, string>) => void;
7
+ };
8
+ export declare const TapPassword: React.MemoExoticComponent<(props: TapPasswordProps & {
9
+ id?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const renderTapPassword: (props: TapPasswordProps, elementId: string) => Promise<any>;
12
+ export {};
@@ -0,0 +1,114 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx } from "react/jsx-runtime";
49
+ import * as React from 'react';
50
+ import { createRoot } from 'react-dom/client';
51
+ import { findOrCreateElementAndInject, validateBoardOtherKitsProps } from '../../utils';
52
+ import { useScript, useStyle } from '../../hooks';
53
+ import { CDN_LIBRARY_BASE_URL } from '../../constants';
54
+ var Password = function (props) {
55
+ useStyle("".concat(CDN_LIBRARY_BASE_URL, "/main.css"));
56
+ var status = useScript("".concat(CDN_LIBRARY_BASE_URL, "/main.js"));
57
+ React.useEffect(function () {
58
+ if (status === 'ready')
59
+ console.info('connect-password-js is ready!');
60
+ if (status === 'error')
61
+ console.error('connect-password-js failed to load!');
62
+ }, [status]);
63
+ React.useEffect(function () {
64
+ var _a;
65
+ if (status !== 'ready')
66
+ return;
67
+ var renderPasswordLib = window['TapAuth'].renderPasswordLib;
68
+ var unmount = renderPasswordLib({
69
+ open: props.open,
70
+ mode: props.mode,
71
+ scope: props.scope,
72
+ merchantDomain: props.domain,
73
+ publicKey: props.publicKey,
74
+ postURL: props.postURL,
75
+ appInfo: {
76
+ name: window.location.hostname || window.location.origin
77
+ },
78
+ businessCountryCode: props.country,
79
+ language: props.language,
80
+ onFlowCompleted: props.onSuccess,
81
+ onError: props.onError,
82
+ onReady: props.onReady,
83
+ onClose: props.onClose,
84
+ loaderColor: props.loaderColor,
85
+ verifyToken: props.verifyToken,
86
+ onBoardButtonClick: props.onBoardButtonClick
87
+ }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-password-lib-id').unmount;
88
+ return function () {
89
+ unmount();
90
+ };
91
+ }, [status]);
92
+ if (status !== 'ready')
93
+ return null;
94
+ return _jsx("div", { id: 'tap-connect-password-lib-id' });
95
+ };
96
+ export var TapPassword = React.memo(function (props) {
97
+ validateBoardOtherKitsProps(props);
98
+ return _jsx(Password, __assign({}, props));
99
+ });
100
+ var tapConnectInstance = null;
101
+ export var renderTapPassword = function (props, elementId) { return __awaiter(void 0, void 0, void 0, function () {
102
+ var el, root, unmount;
103
+ return __generator(this, function (_a) {
104
+ el = findOrCreateElementAndInject(elementId);
105
+ root = createRoot(el);
106
+ root.render(_jsx(TapPassword, __assign({}, props)));
107
+ unmount = function () {
108
+ root.unmount();
109
+ tapConnectInstance = null;
110
+ };
111
+ tapConnectInstance = { unmount: unmount };
112
+ return [2, tapConnectInstance];
113
+ });
114
+ }); };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
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'>;
4
+ export type TapTaxProps = TaxProps & {
5
+ verifyToken: string;
6
+ onBoardButtonClick: (data: Record<string, string>) => void;
7
+ };
8
+ export declare const TapTax: React.MemoExoticComponent<(props: TapTaxProps & {
9
+ id?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const renderTapTax: (props: TapTaxProps, elementId: string) => Promise<any>;
12
+ export {};
@@ -0,0 +1,114 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx } from "react/jsx-runtime";
49
+ import * as React from 'react';
50
+ import { createRoot } from 'react-dom/client';
51
+ import { findOrCreateElementAndInject, validateBoardOtherKitsProps } from '../../utils';
52
+ import { useScript, useStyle } from '../../hooks';
53
+ import { CDN_LIBRARY_BASE_URL } from '../../constants';
54
+ var Tax = function (props) {
55
+ useStyle("".concat(CDN_LIBRARY_BASE_URL, "/main.css"));
56
+ var status = useScript("".concat(CDN_LIBRARY_BASE_URL, "/main.js"));
57
+ React.useEffect(function () {
58
+ if (status === 'ready')
59
+ console.info('connect-tax-js is ready!');
60
+ if (status === 'error')
61
+ console.error('connect-tax-js failed to load!');
62
+ }, [status]);
63
+ React.useEffect(function () {
64
+ var _a;
65
+ if (status !== 'ready')
66
+ return;
67
+ var renderTaxLib = window['TapAuth'].renderTaxLib;
68
+ var unmount = renderTaxLib({
69
+ open: props.open,
70
+ mode: props.mode,
71
+ scope: props.scope,
72
+ merchantDomain: props.domain,
73
+ publicKey: props.publicKey,
74
+ postURL: props.postURL,
75
+ appInfo: {
76
+ name: window.location.hostname || window.location.origin
77
+ },
78
+ businessCountryCode: props.country,
79
+ language: props.language,
80
+ onFlowCompleted: props.onSuccess,
81
+ onError: props.onError,
82
+ onReady: props.onReady,
83
+ onClose: props.onClose,
84
+ loaderColor: props.loaderColor,
85
+ verifyToken: props.verifyToken,
86
+ onBoardButtonClick: props.onBoardButtonClick
87
+ }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-tax-lib-id').unmount;
88
+ return function () {
89
+ unmount();
90
+ };
91
+ }, [status]);
92
+ if (status !== 'ready')
93
+ return null;
94
+ return _jsx("div", { id: 'tap-connect-tax-lib-id' });
95
+ };
96
+ export var TapTax = React.memo(function (props) {
97
+ validateBoardOtherKitsProps(props);
98
+ return _jsx(Tax, __assign({}, props));
99
+ });
100
+ var tapConnectInstance = null;
101
+ export var renderTapTax = function (props, elementId) { return __awaiter(void 0, void 0, void 0, function () {
102
+ var el, root, unmount;
103
+ return __generator(this, function (_a) {
104
+ el = findOrCreateElementAndInject(elementId);
105
+ root = createRoot(el);
106
+ root.render(_jsx(TapTax, __assign({}, props)));
107
+ unmount = function () {
108
+ root.unmount();
109
+ tapConnectInstance = null;
110
+ };
111
+ tapConnectInstance = { unmount: unmount };
112
+ return [2, tapConnectInstance];
113
+ });
114
+ }); };
@@ -2,5 +2,10 @@ import { TapConnect, ConnectProps as TapConnectProps, renderTapConnect } from '.
2
2
  import { ConnectAuthProps, TapConnectAuth, renderTapConnectAuth } from './ConnectAuth';
3
3
  import { TapBoardProps, TapBoard, renderTapBoard } from './ConnectBoard';
4
4
  import { TapBrandProps, TapBrand, renderTapBrand } from './ConnectBrand';
5
- export type { TapConnectProps, ConnectAuthProps, TapBoardProps, TapBrandProps };
6
- export { TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand };
5
+ import { TapBankProps, TapBank, renderTapBank } from './ConnectBank';
6
+ import { TapEntityProps, TapEntity, renderTapEntity } from './ConnectEntity';
7
+ import { TapIndividual, TapIndividualProps, renderTapIndividual } from './ConnectIndividual';
8
+ import { TapPassword, TapPasswordProps, renderTapPassword } from './ConnectPassword';
9
+ import { TapTax, TapTaxProps, renderTapTax } from './ConnectTax';
10
+ export type { TapConnectProps, ConnectAuthProps, TapBoardProps, TapBrandProps, TapBankProps, TapEntityProps, TapIndividualProps, TapPasswordProps, TapTaxProps };
11
+ export { TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand, TapBank, renderTapBank, TapEntity, renderTapEntity, TapIndividual, renderTapIndividual, TapPassword, renderTapPassword, TapTax, renderTapTax };
@@ -2,4 +2,9 @@ import { TapConnect, renderTapConnect } from './Connect';
2
2
  import { TapConnectAuth, renderTapConnectAuth } from './ConnectAuth';
3
3
  import { TapBoard, renderTapBoard } from './ConnectBoard';
4
4
  import { TapBrand, renderTapBrand } from './ConnectBrand';
5
- export { TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand };
5
+ import { TapBank, renderTapBank } from './ConnectBank';
6
+ import { TapEntity, renderTapEntity } from './ConnectEntity';
7
+ import { TapIndividual, renderTapIndividual } from './ConnectIndividual';
8
+ import { TapPassword, renderTapPassword } from './ConnectPassword';
9
+ import { TapTax, renderTapTax } from './ConnectTax';
10
+ export { TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand, TapBank, renderTapBank, TapEntity, renderTapEntity, TapIndividual, renderTapIndividual, TapPassword, renderTapPassword, TapTax, renderTapTax };
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TapConnect, TapConnectProps, renderTapConnect, ConnectAuthProps, TapConnectAuth, renderTapConnectAuth, renderTapBoard, TapBoardProps, TapBoard, TapBrand, TapBrandProps, renderTapBrand } from './features/Connect';
1
+ import { TapConnect, TapConnectProps, renderTapConnect, ConnectAuthProps, TapConnectAuth, renderTapConnectAuth, renderTapBoard, TapBoardProps, TapBoard, TapBrand, TapBrandProps, renderTapBrand, TapBank, TapBankProps, renderTapBank, TapEntity, TapEntityProps, renderTapEntity, TapIndividual, TapIndividualProps, renderTapIndividual, TapPassword, TapPasswordProps, renderTapPassword, TapTax, TapTaxProps, renderTapTax } from './features/Connect';
2
2
  import { Language } from './constants';
3
- export type { TapConnectProps, ConnectAuthProps, TapBoardProps, TapBrandProps };
4
- export { Language, TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand };
3
+ export type { TapConnectProps, ConnectAuthProps, TapBoardProps, TapBrandProps, TapBankProps, TapEntityProps, TapIndividualProps, TapPasswordProps, TapTaxProps };
4
+ export { Language, TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand, TapBank, renderTapBank, TapEntity, renderTapEntity, TapIndividual, renderTapIndividual, TapPassword, renderTapPassword, TapTax, renderTapTax };
package/build/index.js CHANGED
@@ -1,10 +1,14 @@
1
- import { TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, renderTapBoard, TapBoard, TapBrand, renderTapBrand } from './features/Connect';
1
+ import { TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, renderTapBoard, TapBoard, TapBrand, renderTapBrand, TapBank, renderTapBank, TapEntity, renderTapEntity, TapIndividual, renderTapIndividual, TapPassword, renderTapPassword, TapTax, renderTapTax } from './features/Connect';
2
2
  import { Language } from './constants';
3
- export { Language, TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand };
3
+ export { Language, TapConnect, renderTapConnect, TapConnectAuth, renderTapConnectAuth, TapBoard, renderTapBoard, TapBrand, renderTapBrand, TapBank, renderTapBank, TapEntity, renderTapEntity, TapIndividual, renderTapIndividual, TapPassword, renderTapPassword, TapTax, renderTapTax };
4
4
  window['TapPayments'] = {
5
5
  renderTapConnect: renderTapConnect,
6
6
  Language: Language,
7
7
  renderTapConnectAuth: renderTapConnectAuth,
8
8
  renderTapBoard: renderTapBoard,
9
- renderTapBrand: renderTapBrand
9
+ renderTapBrand: renderTapBrand,
10
+ renderTapBank: renderTapBank,
11
+ renderTapEntity: renderTapEntity,
12
+ renderTapPassword: renderTapPassword,
13
+ renderTapTax: renderTapTax
10
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/connect",
3
- "version": "2.6.80-test",
3
+ "version": "2.7.7-test",
4
4
  "description": "Tap Connect",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",