@tap-payments/connect-v2 0.0.14-test → 0.0.16-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.
@@ -3,4 +3,4 @@
3
3
  export const CONNECT_CONFIG_URL = 'https://68b564fae5dc090291aeddd7.mockapi.io/api/config';
4
4
  export const CONNECT_IFRAME_ID = 'tap-connect-sdk-iframe';
5
5
  // TODO: import.meta.env works only in vite build when do npm publish does not work find another way
6
- export const CONNECT_ORIGIN = import.meta.env.VITE_CONNECT_ORIGIN ?? 'https://connect.alpha.tap.company';
6
+ export const CONNECT_ORIGIN = import.meta.env.VITE_CONNECT_ORIGIN || 'https://connect.alpha.tap.company';
package/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ConnectProps, AppInfo, PaymentProvider, SDKNotification, ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PASSWORD_OPERATION_TYPE } from './types';
1
+ import { ConnectProps, AppInfo, PaymentProvider, SDKNotification, ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType } from './types';
2
2
  import { ConnectElement, renderConnectElement } from './connect';
3
3
  export type { ConnectProps, AppInfo, PaymentProvider, SDKNotification };
4
- export { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PASSWORD_OPERATION_TYPE, };
4
+ export { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType, };
5
5
  export { ConnectElement, renderConnectElement };
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PASSWORD_OPERATION_TYPE, } from './types';
1
+ import { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType, } from './types';
2
2
  import { ConnectElement, renderConnectElement } from './connect';
3
- export { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PASSWORD_OPERATION_TYPE, };
3
+ export { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType, };
4
4
  export { ConnectElement, renderConnectElement };
@@ -25,7 +25,7 @@ export declare enum ConnectScope {
25
25
  AUTH = "auth",
26
26
  MERCHANT = "merchant"
27
27
  }
28
- export declare enum PASSWORD_OPERATION_TYPE {
28
+ export declare enum PasswordOperationType {
29
29
  SET_PASSWORD = "set_password",
30
30
  RESET_PASSWORD = "reset_password"
31
31
  }
@@ -63,5 +63,5 @@ export type ConnectProps = {
63
63
  boardInfoId?: string;
64
64
  userId?: string;
65
65
  userType?: string;
66
- operationType?: PASSWORD_OPERATION_TYPE;
66
+ operationType?: PasswordOperationType;
67
67
  };
@@ -9,8 +9,8 @@ export var ConnectScope;
9
9
  ConnectScope["AUTH"] = "auth";
10
10
  ConnectScope["MERCHANT"] = "merchant";
11
11
  })(ConnectScope || (ConnectScope = {}));
12
- export var PASSWORD_OPERATION_TYPE;
13
- (function (PASSWORD_OPERATION_TYPE) {
14
- PASSWORD_OPERATION_TYPE["SET_PASSWORD"] = "set_password";
15
- PASSWORD_OPERATION_TYPE["RESET_PASSWORD"] = "reset_password";
16
- })(PASSWORD_OPERATION_TYPE || (PASSWORD_OPERATION_TYPE = {}));
12
+ export var PasswordOperationType;
13
+ (function (PasswordOperationType) {
14
+ PasswordOperationType["SET_PASSWORD"] = "set_password";
15
+ PasswordOperationType["RESET_PASSWORD"] = "reset_password";
16
+ })(PasswordOperationType || (PasswordOperationType = {}));
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tap-payments/connect-v2",
3
3
  "private": false,
4
- "version": "0.0.14-test",
4
+ "version": "0.0.16-test",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",
8
+ "types": "build/index.d.ts",
8
9
  "files": [
9
10
  "build",
10
11
  "readme.md"
@@ -26,8 +27,8 @@
26
27
  "@tap-payments/web-error-handing": "^1.0.1"
27
28
  },
28
29
  "peerDependencies": {
29
- "react": "^18.0.0",
30
- "react-dom": "^18.0.0"
30
+ "react": ">=18.0.0 <20.0.0",
31
+ "react-dom": ">=18.0.0 <20.0.0"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@eslint/js": "^9.13.0",