@tap-payments/connect 0.0.10-test → 1.0.0

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
@@ -106,7 +106,7 @@ const ConnectFullComponent = () => {
106
106
  content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no"
107
107
  />
108
108
  <title>Auth-JsConnect</title>
109
- <script src="https://connect-auth.b-cdn.net/build-0.0.10-test/main.js"></script>
109
+ <script src="https://connect-auth.b-cdn.net/build-1.0.0/main.js"></script>
110
110
  </head>
111
111
  <body>
112
112
  <div id="root"></div>
@@ -2,7 +2,7 @@ import { Language } from '../constants';
2
2
  export interface ConnectProps {
3
3
  publicKey: string;
4
4
  domain: string;
5
- language: typeof Language[keyof typeof Language];
5
+ language: (typeof Language)[keyof typeof Language];
6
6
  country: string;
7
7
  scope: string;
8
8
  lead?: string;
@@ -1,4 +1,4 @@
1
- export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.1.74-test";
1
+ export declare const CDN_LIBRARY_BASE_URL = "https://auth-jsconnect.b-cdn.net/build-2.0.45";
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.1.74-test';
1
+ export var CDN_LIBRARY_BASE_URL = 'https://auth-jsconnect.b-cdn.net/build-2.0.45';
2
2
  export var Maturity = {
3
3
  FULL: 'full',
4
4
  EXPRESS: 'express'
@@ -52,8 +52,9 @@ var ConnectExpress = function (props) {
52
52
  renderEntityLib(config, elementId);
53
53
  break;
54
54
  default:
55
- var onFlowCompleted = config.onFlowCompleted, rest = __rest(config, ["onFlowCompleted"]);
56
- renderConnectExpressLib(rest, elementId);
55
+ var onSuccess = props.onSuccess, rest = __rest(props, ["onSuccess"]);
56
+ var configAttrs = wrapLibConfig(__assign(__assign({}, rest), { verifyToken: token, onBoardButtonClick: onButtonClick }));
57
+ renderConnectExpressLib(configAttrs, elementId);
57
58
  break;
58
59
  }
59
60
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/connect",
3
- "version": "0.0.10-test",
3
+ "version": "1.0.0",
4
4
  "description": "Tap Connect",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",
@@ -72,7 +72,6 @@
72
72
  "webpack-merge": "^5.8.0"
73
73
  },
74
74
  "dependencies": {
75
- "@tap-payments/auth-jsconnect": "2.1.23-test",
76
75
  "react": "^18.2.0",
77
76
  "react-dom": "^18.2.0"
78
77
  },