@tap-payments/connect 2.12.8-development → 2.12.8-sandbox

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://cdn.tap.company/tap-sdks/connect/build-2.12.8-development/main.js"></script>
88
+ <script src="https://cdn.tap.company/tap-sdks/connect/build-2.12.8-sandbox/main.js"></script>
89
89
  </head>
90
90
  <body>
91
91
  <div id="root"></div>
@@ -152,6 +152,7 @@ const ConnectComponent = () => {
152
152
  | open `required` | `boolean` | Open/Close the connect library |
153
153
  | features.dialogStartTransition `optional` | `left or right or up or down` | Used to handle **auth** slide animation direction when open popup for auth kit |
154
154
  | features.dialogEndTransition `optional` | `left or right or up or down` | Used to handle **auth** slide animation direction when close popup for auth kit |
155
+ | features.emailAuth | `boolean` | Used to enable Qatar email verification. This feature is only applicable for the **express** flow (`mature={false}`). When set to `true`, it enables email-based authentication for Qatar onboarding |
155
156
  | 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, closeButton - Used enable to close dialog, disableNafath - Used to hide nafath login button in **auth** kit, disablePaci - Used to hide paci login button in **auth** kit) |
156
157
  | loaderColor `optional` | `string` | Used to change loader color and it can be used only for board kit |
157
158
  | notification `optional` | `object: {email: boolean, mobile?: boolean}` | Express flow decide to send notification to email or mobile after finish create account |
@@ -25,6 +25,7 @@ export interface ConnectFeatures {
25
25
  dialogEndTransition?: 'left' | 'right' | 'up' | 'down';
26
26
  disableNafath?: boolean;
27
27
  disablePaci?: boolean;
28
+ emailAuth?: boolean;
28
29
  }
29
30
  export interface Notification {
30
31
  email: boolean;
@@ -1,4 +1,4 @@
1
- export declare const CDN_LIBRARY_BASE_URL = "https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.8-development";
1
+ export declare const CDN_LIBRARY_BASE_URL = "https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.8-sandbox";
2
2
  export declare const Maturity: {
3
3
  readonly FULL: "full";
4
4
  readonly EXPRESS: "express";
@@ -8,7 +8,8 @@ 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_SANDBOX_URL = "https://connect.sandbox.tap.company/";
11
12
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company/";
12
13
  export declare const CONNECT_MW_URL = "https://connect-mw.tap.company/middleware/";
13
- export declare const CONNECT_DEV_MW_URL = "https://connect-mw.dev.tap.company/middleware/";
14
14
  export declare const CONNECT_SANDBOX_MW_URL = "https://connect-mw.sandbox.tap.company/middleware/";
15
+ export declare const CONNECT_DEV_MW_URL = "https://connect-mw.dev.tap.company/middleware/";
@@ -1,4 +1,4 @@
1
- export var CDN_LIBRARY_BASE_URL = 'https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.8-development';
1
+ export var CDN_LIBRARY_BASE_URL = 'https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.12.8-sandbox';
2
2
  export var Maturity = {
3
3
  FULL: 'full',
4
4
  EXPRESS: 'express'
@@ -8,7 +8,8 @@ export var Language = {
8
8
  AR: 'ar'
9
9
  };
10
10
  export var CONNECT_URL = 'https://connect.tap.company/';
11
+ export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company/';
11
12
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company/';
12
13
  export var CONNECT_MW_URL = 'https://connect-mw.tap.company/middleware/';
13
- export var CONNECT_DEV_MW_URL = 'https://connect-mw.dev.tap.company/middleware/';
14
14
  export var CONNECT_SANDBOX_MW_URL = 'https://connect-mw.sandbox.tap.company/middleware/';
15
+ export var CONNECT_DEV_MW_URL = 'https://connect-mw.dev.tap.company/middleware/';
@@ -1,2 +1,2 @@
1
- export declare const getBaseUrl: (publicKey: string) => "https://connect-mw.tap.company/middleware/" | "https://connect-mw.dev.tap.company/middleware/";
2
- export declare const getRedirectBaseUrl: (publicKey: string) => "https://connect.tap.company/" | "https://connect.dev.tap.company/";
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/";
@@ -1,4 +1,4 @@
1
- import { CONNECT_MW_URL, CONNECT_DEV_MW_URL, CONNECT_DEV_URL, CONNECT_URL } from '../constants';
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 CONNECT_DEV_MW_URL;
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 CONNECT_DEV_URL;
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.8-development",
3
+ "version": "2.12.8-sandbox",
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 --tag development"
23
+ "push": "npm publish --access public --tag sandbox"
24
24
  },
25
25
  "keywords": [],
26
26
  "author": {