@tap-payments/connect 2.12.4-development → 2.12.4
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 +15 -2
- package/build/constants/index.d.ts +5 -2
- package/build/constants/index.js +5 -2
- package/build/features/Connect/Connect.d.ts +1 -1
- package/build/features/Connect/ConnectAuth.d.ts +1 -1
- package/build/features/Connect/ConnectBank.d.ts +1 -1
- package/build/features/Connect/ConnectBoard.d.ts +1 -1
- package/build/features/Connect/ConnectBrand.d.ts +1 -1
- package/build/features/Connect/ConnectEntity.d.ts +1 -1
- package/build/features/Connect/ConnectIndividual.d.ts +1 -1
- package/build/features/Connect/ConnectPassword.d.ts +1 -1
- package/build/features/Connect/ConnectTax.d.ts +1 -1
- package/build/features/Connect/ConnectTerminal.d.ts +1 -1
- package/build/utils/common.d.ts +2 -2
- package/build/utils/common.js +3 -3
- package/package.json +2 -2
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://cdn.tap.company/tap-sdks/connect/build-2.12.4
|
|
88
|
+
<script src="https://cdn.tap.company/tap-sdks/connect/build-2.12.4/main.js"></script>
|
|
89
89
|
</head>
|
|
90
90
|
<body>
|
|
91
91
|
<div id="root"></div>
|
|
@@ -106,7 +106,7 @@ const ConnectComponent = () => {
|
|
|
106
106
|
mature: false,
|
|
107
107
|
board: true,
|
|
108
108
|
boardMaturity: false,
|
|
109
|
-
|
|
109
|
+
mode: "popup",
|
|
110
110
|
open: true,
|
|
111
111
|
postURL: 'https://api.example.com/post',
|
|
112
112
|
redirectUrl: '',
|
|
@@ -169,3 +169,16 @@ const ConnectComponent = () => {
|
|
|
169
169
|
| onClose `optional` | `function` | Callback function to called when `TapConnect` get close |
|
|
170
170
|
| onBoardCompleted `optional` | `function` | Callback function to called when you complete all flows |
|
|
171
171
|
| onSettingFetched `optional` | `function` | Callback function to called after fetch settings information. It is used board kit and other kits open from board |
|
|
172
|
+
|
|
173
|
+
## Branch Information
|
|
174
|
+
|
|
175
|
+
This repository maintains multiple branches for different environments and stages:
|
|
176
|
+
|
|
177
|
+
| Branch | Purpose | Environment |
|
|
178
|
+
| ------------- | ------------------------------ | ----------- |
|
|
179
|
+
| `main` | Production releases | Production |
|
|
180
|
+
| `development` | Development features and fixes | Development |
|
|
181
|
+
| `beta` | Beta features and testing | Beta |
|
|
182
|
+
| `sandbox` | Sandbox environment testing | Sandbox |
|
|
183
|
+
|
|
184
|
+
**Workflow**: `development` → `sandbox` → `beta` → `main` (production)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CDN_LIBRARY_BASE_URL = "https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.4
|
|
1
|
+
export declare const CDN_LIBRARY_BASE_URL = "https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.4";
|
|
2
2
|
export declare const Maturity: {
|
|
3
3
|
readonly FULL: "full";
|
|
4
4
|
readonly EXPRESS: "express";
|
|
@@ -8,7 +8,10 @@ export declare const Language: {
|
|
|
8
8
|
readonly AR: "ar";
|
|
9
9
|
};
|
|
10
10
|
export declare const CONNECT_URL = "https://connect.tap.company/";
|
|
11
|
+
export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company/";
|
|
12
|
+
export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company/";
|
|
11
13
|
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company/";
|
|
12
14
|
export declare const CONNECT_MW_URL = "https://connect-mw.tap.company/middleware/";
|
|
13
|
-
export declare const
|
|
15
|
+
export declare const CONNECT_MW_BETA_URL = "https://connect-mw.beta.tap.company/middleware/";
|
|
14
16
|
export declare const CONNECT_SANDBOX_MW_URL = "https://connect-mw.sandbox.tap.company/middleware/";
|
|
17
|
+
export declare const CONNECT_DEV_MW_URL = "https://connect-mw.dev.tap.company/middleware/";
|
package/build/constants/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export var CDN_LIBRARY_BASE_URL = 'https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.4
|
|
1
|
+
export var CDN_LIBRARY_BASE_URL = 'https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.4';
|
|
2
2
|
export var Maturity = {
|
|
3
3
|
FULL: 'full',
|
|
4
4
|
EXPRESS: 'express'
|
|
@@ -8,7 +8,10 @@ export var Language = {
|
|
|
8
8
|
AR: 'ar'
|
|
9
9
|
};
|
|
10
10
|
export var CONNECT_URL = 'https://connect.tap.company/';
|
|
11
|
+
export var CONNECT_BETA_URL = 'https://connect.beta.tap.company/';
|
|
12
|
+
export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company/';
|
|
11
13
|
export var CONNECT_DEV_URL = 'https://connect.dev.tap.company/';
|
|
12
14
|
export var CONNECT_MW_URL = 'https://connect-mw.tap.company/middleware/';
|
|
13
|
-
export var
|
|
15
|
+
export var CONNECT_MW_BETA_URL = 'https://connect-mw.beta.tap.company/middleware/';
|
|
14
16
|
export var CONNECT_SANDBOX_MW_URL = 'https://connect-mw.sandbox.tap.company/middleware/';
|
|
17
|
+
export var CONNECT_DEV_MW_URL = 'https://connect-mw.dev.tap.company/middleware/';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
3
|
export type ConnectProps = Omit<ConnectAttrs, 'elementId'>;
|
|
4
|
-
export declare const TapConnect: React.MemoExoticComponent<(props: ConnectAttrs) => JSX.Element>;
|
|
4
|
+
export declare const TapConnect: React.MemoExoticComponent<(props: ConnectAttrs) => import("react/jsx-runtime").JSX.Element>;
|
|
5
5
|
export declare const renderTapConnect: (props: ConnectProps, elementId: string) => Promise<any>;
|
|
@@ -3,5 +3,5 @@ import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
|
3
3
|
export type ConnectAuthProps = Pick<ConnectAttrs, 'open' | 'domain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'lead' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'features' | 'region'>;
|
|
4
4
|
export declare const TapConnectAuth: React.MemoExoticComponent<(props: ConnectAuthProps & {
|
|
5
5
|
id?: string;
|
|
6
|
-
}) => JSX.Element>;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
7
7
|
export declare const renderTapConnectAuth: (props: ConnectAuthProps, elementId: string) => Promise<any>;
|
|
@@ -7,6 +7,6 @@ export type TapBankProps = BankProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapBank: React.MemoExoticComponent<(props: TapBankProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapBank: (props: TapBankProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -6,5 +6,5 @@ export type TapBoardProps = BoardProps & {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const TapBoard: React.MemoExoticComponent<(props: TapBoardProps & {
|
|
8
8
|
id?: string;
|
|
9
|
-
}) => JSX.Element>;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
10
10
|
export declare const renderTapBoard: (props: TapBoardProps, elementId: string) => Promise<any>;
|
|
@@ -7,6 +7,6 @@ export type TapBrandProps = BrandProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapBrand: React.MemoExoticComponent<(props: TapBrandProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapBrand: (props: TapBrandProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -7,6 +7,6 @@ export type TapEntityProps = EntityProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapEntity: React.MemoExoticComponent<(props: TapEntityProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapEntity: (props: TapEntityProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -7,6 +7,6 @@ export type TapIndividualProps = IndividualProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapIndividual: React.MemoExoticComponent<(props: TapIndividualProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapIndividual: (props: TapIndividualProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -7,6 +7,6 @@ export type TapPasswordProps = PasswordProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapPassword: React.MemoExoticComponent<(props: TapPasswordProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapPassword: (props: TapPasswordProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -7,6 +7,6 @@ export type TapTaxProps = TaxProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapTax: React.MemoExoticComponent<(props: TapTaxProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapTax: (props: TapTaxProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -7,6 +7,6 @@ export type TapTerminalProps = TerminalProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const TapTerminal: React.MemoExoticComponent<(props: TapTerminalProps & {
|
|
9
9
|
id?: string;
|
|
10
|
-
}) => JSX.Element>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export declare const renderTapTerminal: (props: TapTerminalProps, elementId: string) => Promise<any>;
|
|
12
12
|
export {};
|
package/build/utils/common.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getBaseUrl: (publicKey: string) => "https://connect-mw.tap.company/middleware/" | "https://connect-mw.
|
|
2
|
-
export declare const getRedirectBaseUrl: (publicKey: string) => "https://connect.tap.company/" | "https://connect.
|
|
1
|
+
export declare const getBaseUrl: (publicKey: string) => "https://connect-mw.tap.company/middleware/" | "https://connect-mw.sandbox.tap.company/middleware/";
|
|
2
|
+
export declare const getRedirectBaseUrl: (publicKey: string) => "https://connect.tap.company/" | "https://connect.sandbox.tap.company/";
|
package/build/utils/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CONNECT_MW_URL,
|
|
1
|
+
import { CONNECT_MW_URL, CONNECT_SANDBOX_MW_URL, CONNECT_SANDBOX_URL, CONNECT_URL } from '../constants';
|
|
2
2
|
var isProd = function (publicKey) {
|
|
3
3
|
return publicKey.includes('pk_live');
|
|
4
4
|
};
|
|
@@ -6,11 +6,11 @@ export var getBaseUrl = function (publicKey) {
|
|
|
6
6
|
if (isProd(publicKey)) {
|
|
7
7
|
return CONNECT_MW_URL;
|
|
8
8
|
}
|
|
9
|
-
return
|
|
9
|
+
return CONNECT_SANDBOX_MW_URL;
|
|
10
10
|
};
|
|
11
11
|
export var getRedirectBaseUrl = function (publicKey) {
|
|
12
12
|
if (isProd(publicKey)) {
|
|
13
13
|
return CONNECT_URL;
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return CONNECT_SANDBOX_URL;
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/connect",
|
|
3
|
-
"version": "2.12.4
|
|
3
|
+
"version": "2.12.4",
|
|
4
4
|
"description": "Tap Connect",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "build/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
21
21
|
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
22
22
|
"ts:build": "rm -rf build && tsc && yarn tsc:alias && yarn copy:files",
|
|
23
|
-
"push": "npm publish --access public
|
|
23
|
+
"push": "npm publish --access public"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [],
|
|
26
26
|
"author": {
|