@tap-payments/connect 2.6.80-test → 2.7.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.
Files changed (34) hide show
  1. package/README.md +34 -33
  2. package/build/@types/config.d.ts +63 -0
  3. package/build/@types/config.js +1 -0
  4. package/build/@types/index.d.ts +8 -25
  5. package/build/api/index.js +14 -26
  6. package/build/constants/index.d.ts +5 -2
  7. package/build/constants/index.js +5 -2
  8. package/build/features/Connect/Connect.js +24 -14
  9. package/build/features/Connect/ConnectAuth.d.ts +1 -1
  10. package/build/features/Connect/ConnectAuth.js +1 -5
  11. package/build/features/Connect/ConnectBank.d.ts +12 -0
  12. package/build/features/Connect/ConnectBank.js +118 -0
  13. package/build/features/Connect/ConnectBoard.d.ts +1 -1
  14. package/build/features/Connect/ConnectBoard.js +4 -1
  15. package/build/features/Connect/ConnectBrand.d.ts +1 -1
  16. package/build/features/Connect/ConnectBrand.js +5 -1
  17. package/build/features/Connect/ConnectEntity.d.ts +12 -0
  18. package/build/features/Connect/ConnectEntity.js +118 -0
  19. package/build/features/Connect/ConnectIndividual.d.ts +12 -0
  20. package/build/features/Connect/ConnectIndividual.js +118 -0
  21. package/build/features/Connect/ConnectPassword.d.ts +12 -0
  22. package/build/features/Connect/ConnectPassword.js +118 -0
  23. package/build/features/Connect/ConnectTax.d.ts +12 -0
  24. package/build/features/Connect/ConnectTax.js +118 -0
  25. package/build/features/Connect/index.d.ts +7 -2
  26. package/build/features/Connect/index.js +6 -1
  27. package/build/index.d.ts +3 -3
  28. package/build/index.js +7 -3
  29. package/build/utils/common.d.ts +2 -2
  30. package/build/utils/common.js +3 -3
  31. package/build/utils/config.d.ts +1 -1
  32. package/build/utils/config.js +3 -1
  33. package/build/utils/validation.js +1 -4
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  export var wrapLibConfig = function (_a) {
2
- var publicKey = _a.publicKey, open = _a.open, mode = _a.mode, language = _a.language, country = _a.country, scope = _a.scope, lead = _a.lead, postURL = _a.postURL, onError = _a.onError, onReady = _a.onReady, onSuccess = _a.onSuccess, board = _a.board, verifyToken = _a.verifyToken, domain = _a.domain, onBoardButtonClick = _a.onBoardButtonClick, onClose = _a.onClose, onCreated = _a.onCreated, onBoardCompleted = _a.onBoardCompleted, boardMaturity = _a.boardMaturity, data = _a.data, redirectUrl = _a.redirectUrl;
2
+ var publicKey = _a.publicKey, open = _a.open, mode = _a.mode, language = _a.language, country = _a.country, scope = _a.scope, lead = _a.lead, postURL = _a.postURL, onError = _a.onError, onReady = _a.onReady, onSuccess = _a.onSuccess, board = _a.board, verifyToken = _a.verifyToken, domain = _a.domain, onBoardButtonClick = _a.onBoardButtonClick, onClose = _a.onClose, onCreated = _a.onCreated, onBoardCompleted = _a.onBoardCompleted, boardMaturity = _a.boardMaturity, data = _a.data, redirectUrl = _a.redirectUrl, features = _a.features, notification = _a.notification;
3
3
  return {
4
4
  appInfo: {
5
5
  name: window.location.hostname || window.location.origin
@@ -18,6 +18,8 @@ export var wrapLibConfig = function (_a) {
18
18
  showBoard: board,
19
19
  boardMaturity: boardMaturity,
20
20
  verifyToken: verifyToken,
21
+ features: features,
22
+ notification: notification,
21
23
  onFlowCompleted: function (res) {
22
24
  onSuccess && onSuccess(res);
23
25
  },
@@ -1,6 +1,6 @@
1
1
  import { Language } from '../constants';
2
2
  export var validateConnectProps = function (props) {
3
- var mode = props.mode, publicKey = props.publicKey, mature = props.mature, country = props.country, language = props.language, scope = props.scope, open = props.open, domain = props.domain, board = props.board, lead = props.lead, onClose = props.onClose, onCreated = props.onCreated, onError = props.onError, onReady = props.onReady, onSuccess = props.onSuccess, postURL = props.postURL, redirectUrl = props.redirectUrl;
3
+ var mode = props.mode, publicKey = props.publicKey, mature = props.mature, language = props.language, scope = props.scope, open = props.open, domain = props.domain, board = props.board, lead = props.lead, onClose = props.onClose, onCreated = props.onCreated, onError = props.onError, onReady = props.onReady, onSuccess = props.onSuccess, postURL = props.postURL, redirectUrl = props.redirectUrl;
4
4
  if (!mode) {
5
5
  throw new Error('mode is required');
6
6
  }
@@ -10,9 +10,6 @@ export var validateConnectProps = function (props) {
10
10
  if (!publicKey) {
11
11
  throw new Error('publicKey is required');
12
12
  }
13
- if (!country) {
14
- throw new Error('country is required');
15
- }
16
13
  if (!language) {
17
14
  throw new Error('language is required');
18
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/connect",
3
- "version": "2.6.80-test",
3
+ "version": "2.7.0",
4
4
  "description": "Tap Connect",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",