@tap-payments/connect 2.6.60-test → 2.6.62-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.57-test/main.js"></script>
88
+ <script src="https://tap-sdks.b-cdn.net/connect/build-2.6.60-test/main.js"></script>
89
89
  </head>
90
90
  <body>
91
91
  <div id="root"></div>
@@ -150,6 +150,7 @@ const ConnectComponent = () => {
150
150
  | mature `required` | `boolean` | Decide the mode of connect `normal` or `express` |
151
151
  | board `optional` | `string` | Show/Hide board screens |
152
152
  | open `required` | `boolean` | Open/Close the connect library |
153
+ | hideOverlay `optional` | `boolean` | Used to disable the **auth** background color and it can be used only for auth kit |
153
154
  | boardMaturity `optional` | `boolean` | Decide the board maturity |
154
155
  | postURL `optional` | `string` | The POST Method URL used to push te data from our server to the merchant server and |
155
156
  | | | it's required only if `mature` is `false` |
@@ -1,4 +1,4 @@
1
- export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.6.57-test/";
1
+ export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.6.60-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.57-test/';
1
+ export var CDN_LIBRARY_BASE_URL = 'https://auth-jsconnect.b-cdn.net/build-2.6.60-test/';
2
2
  export var Maturity = {
3
3
  FULL: 'full',
4
4
  EXPRESS: 'express'
@@ -83,7 +83,8 @@ var ConnectAuth = function (props) {
83
83
  onFlowCompleted: props.onSuccess,
84
84
  onError: props.onError,
85
85
  onReady: props.onReady,
86
- onClose: props.onClose
86
+ onClose: props.onClose,
87
+ hideOverlay: props.hideOverlay
87
88
  }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-auth-lib-id').unmount;
88
89
  return function () {
89
90
  unmount();
@@ -70,8 +70,8 @@ export var validateConnectAuthProps = function (props) {
70
70
  if (!publicKey) {
71
71
  throw new Error('publicKey is required');
72
72
  }
73
- if (!country) {
74
- throw new Error('country is required');
73
+ if (typeof country !== 'string') {
74
+ throw new Error('country should be from type string');
75
75
  }
76
76
  if (!language) {
77
77
  throw new Error('language is required');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/connect",
3
- "version": "2.6.60-test",
3
+ "version": "2.6.62-test",
4
4
  "description": "Tap Connect",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",