@tap-payments/connect 2.6.72-test → 2.6.74-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.72-test/main.js"></script>
88
+ <script src="https://tap-sdks.b-cdn.net/connect/build-2.6.74-test/main.js"></script>
89
89
  </head>
90
90
  <body>
91
91
  <div id="root"></div>
@@ -137,31 +137,32 @@ 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` to our connect domain. Default value is `popup` |
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
- | hideOverlay `optional` | `boolean` | Used to disable the **auth** background color and it can be used only for auth kit |
154
- | hideLoaderOverlay `optional` | `boolean` | Used to disable the **auth** loader background color and it can be used only for auth kit |
155
- | hideMerchantLogo `optional` | `boolean` | Used to hide the **auth** merchant logo and it can be used only for auth kit |
156
- | boardMaturity `optional` | `boolean` | Decide the board maturity |
157
- | postURL `optional` | `string` | The POST Method URL used to push te data from our server to the merchant server and |
158
- | | | it's required only if `mature` is `false` |
159
- | redirectUrl `optional` | `string` | This redirect url after verify authentication go to merchant website |
160
- | | | It is `required` if scope is `auth` and mode is `page` |
161
- | onReady `optional` | `function` | Callback function to handle the ready state of the `TapConnect` |
162
- | onCreated `optional` | `function` | Callback function to called the the account created successfully |
163
- | | | it calls only if `mature` is `false` |
164
- | onSuccess `optional` | `function` | Callback function to handle the success response, it will run after the user finish the flow |
165
- | onError `optional` | `function` | Callback function to handle the error response, it will run if the user face any error |
166
- | onClose `optional` | `function` | Callback function to called when `TapConnect` get close |
167
- | onBoardCompleted `optional` | `function` | Callback function to called when you complete all flows |
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` to our connect domain. Default value is `popup` |
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
+ | hideOverlay `optional` | `boolean` | Used to disable the **auth** background color and it can be used only for auth kit |
154
+ | hideLoaderOverlay `optional` | `boolean` | Used to disable the **auth** loader background color and it can be used only for auth kit |
155
+ | animationDirection `optional` | `left or right or up or down` | Used to handle **auth** slide animation direction when open or close loader background color and it can be used only for auth kit |
156
+ | hideMerchantLogo `optional` | `boolean` | Used to hide the **auth** merchant logo and it can be used only for auth kit |
157
+ | boardMaturity `optional` | `boolean` | Decide the board maturity |
158
+ | postURL `optional` | `string` | The POST Method URL used to push te data from our server to the merchant server and |
159
+ | | | it's required only if `mature` is `false` |
160
+ | redirectUrl `optional` | `string` | This redirect url after verify authentication go to merchant website |
161
+ | | | It is `required` if scope is `auth` and mode is `page` |
162
+ | onReady `optional` | `function` | Callback function to handle the ready state of the `TapConnect` |
163
+ | onCreated `optional` | `function` | Callback function to called the the account created successfully |
164
+ | | | it calls only if `mature` is `false` |
165
+ | onSuccess `optional` | `function` | Callback function to handle the success response, it will run after the user finish the flow |
166
+ | onError `optional` | `function` | Callback function to handle the error response, it will run if the user face any error |
167
+ | onClose `optional` | `function` | Callback function to called when `TapConnect` get close |
168
+ | onBoardCompleted `optional` | `function` | Callback function to called when you complete all flows |
@@ -14,6 +14,7 @@ export interface ConnectProps {
14
14
  hideOverlay?: boolean;
15
15
  hideLoaderOverlay?: boolean;
16
16
  hideMerchantLogo?: boolean;
17
+ animationDirection?: 'left' | 'right' | 'up' | 'down';
17
18
  open: boolean;
18
19
  postURL?: string;
19
20
  redirectUrl?: string;
@@ -1,4 +1,4 @@
1
- export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.6.72-test/";
1
+ export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.6.74-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.72-test/';
1
+ export var CDN_LIBRARY_BASE_URL = 'https://auth-jsconnect.b-cdn.net/build-2.6.74-test/';
2
2
  export var Maturity = {
3
3
  FULL: 'full',
4
4
  EXPRESS: 'express'
@@ -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' | 'hideOverlay' | 'hideMerchantLogo' | 'hideLoaderOverlay'>;
3
+ export type ConnectAuthProps = Pick<ConnectAttrs, 'open' | 'domain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'lead' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose' | 'hideOverlay' | 'hideMerchantLogo' | 'hideLoaderOverlay' | 'animationDirection'>;
4
4
  export declare const TapConnectAuth: React.MemoExoticComponent<(props: ConnectAuthProps & {
5
5
  id?: string;
6
6
  }) => import("react/jsx-runtime").JSX.Element>;
@@ -86,7 +86,8 @@ var ConnectAuth = function (props) {
86
86
  onClose: props.onClose,
87
87
  hideOverlay: props.hideOverlay,
88
88
  hideLoaderOverlay: props.hideLoaderOverlay,
89
- hideMerchantLogo: props.hideMerchantLogo
89
+ hideMerchantLogo: props.hideMerchantLogo,
90
+ animationDirection: props.animationDirection
90
91
  }, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-auth-lib-id').unmount;
91
92
  return function () {
92
93
  unmount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/connect",
3
- "version": "2.6.72-test",
3
+ "version": "2.6.74-test",
4
4
  "description": "Tap Connect",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",