@tap-payments/connect-v2 0.0.16-test → 0.0.18-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/build/App.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import { ConnectMode, ConnectScope, DialogTransition, ThemeMode } from './types';
3
+ import { ConnectMode, ConnectScope, ConnectDialogTransition, ConnectTheme } from './types';
4
4
  import { ConnectElement } from './connect';
5
5
  function App() {
6
6
  const [open, setOpen] = React.useState(true);
7
- return (_jsx(ConnectElement, { open: open, mode: ConnectMode.POPUP, publicKey: 'pk_test_lat64TEDSvHrUOYAxVRe28PQ', merchantDomain: 'https://connect.dev.tap.company', appInfo: { name: 'SDK V2' }, scope: ConnectScope.MERCHANT, theme: ThemeMode.LIGHT, features: {
7
+ return (_jsx(ConnectElement, { open: open, mode: ConnectMode.POPUP, publicKey: 'pk_test_lat64TEDSvHrUOYAxVRe28PQ', merchantDomain: 'https://connect.dev.tap.company', appInfo: { name: 'SDK V2' }, scope: ConnectScope.MERCHANT, theme: ConnectTheme.LIGHT, features: {
8
8
  closeButton: true,
9
9
  poweredBy: true,
10
10
  merchantLogo: false,
11
- dialogStartTransition: DialogTransition.UP,
12
- dialogEndTransition: DialogTransition.DOWN,
13
- }, postURL: 'https://203zq.wiremockapi.cloud/json', showBoard: true, boardMaturity: true, onClose: () => {
11
+ dialogStartTransition: ConnectDialogTransition.UP,
12
+ dialogEndTransition: ConnectDialogTransition.DOWN,
13
+ }, postUrl: 'https://203zq.wiremockapi.cloud/json', showBoard: true, boardEditable: true, onClose: () => {
14
14
  console.log('onClose');
15
15
  setOpen(false);
16
16
  }, onError: (err) => {
@@ -8,7 +8,6 @@ const Loader = ({ outerColor = 'white', innerColor = 'white', duration = 3, togg
8
8
  alignItems: 'center',
9
9
  width: '100%',
10
10
  height: '100%',
11
- background: 'rgba(0,0,0,0.75)',
12
11
  }, children: _jsx("div", { style: {
13
12
  position: 'relative',
14
13
  width: '60px',
@@ -10,7 +10,7 @@ const Connect = () => {
10
10
  display: 'flex',
11
11
  alignItems: 'center',
12
12
  justifyContent: 'center',
13
- background: 'rgba(0, 0, 0, 0.6)',
13
+ background: 'rgba(0, 0, 0, 0.5)',
14
14
  position: 'fixed',
15
15
  top: 0,
16
16
  left: 0,
package/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ConnectProps, AppInfo, PaymentProvider, SDKNotification, ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType } from './types';
1
+ import { ConnectProps, ConnectAppInfo, ConenctPaymentProvider, ConnectNotification, ConnectMode, ConnectTheme, ConnectLanguage, ConnectScope, ConnectDialogTransition, ConnectDialogEdgeFormat, ConnectPasswordOperationType } from './types';
2
2
  import { ConnectElement, renderConnectElement } from './connect';
3
- export type { ConnectProps, AppInfo, PaymentProvider, SDKNotification };
4
- export { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType, };
3
+ export type { ConnectProps, ConnectAppInfo, ConenctPaymentProvider, ConnectNotification };
4
+ export { ConnectMode, ConnectTheme, ConnectLanguage, ConnectScope, ConnectDialogTransition, ConnectDialogEdgeFormat, ConnectPasswordOperationType, };
5
5
  export { ConnectElement, renderConnectElement };
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType, } from './types';
1
+ import { ConnectMode, ConnectTheme, ConnectLanguage, ConnectScope, ConnectDialogTransition, ConnectDialogEdgeFormat, ConnectPasswordOperationType, } from './types';
2
2
  import { ConnectElement, renderConnectElement } from './connect';
3
- export { ConnectMode, ThemeMode, LanguageMode, ConnectScope, DialogTransition, DialogEdgeFormat, PasswordOperationType, };
3
+ export { ConnectMode, ConnectTheme, ConnectLanguage, ConnectScope, ConnectDialogTransition, ConnectDialogEdgeFormat, ConnectPasswordOperationType, };
4
4
  export { ConnectElement, renderConnectElement };
@@ -1,18 +1,18 @@
1
- import { DialogEdgeFormat, DialogTransition, LanguageMode, ThemeMode } from './theme';
1
+ import { ConnectDialogEdgeFormat, ConnectDialogTransition, ConnectLanguage, ConnectTheme } from './theme';
2
2
  export type CustomError = {
3
3
  code: string;
4
4
  message: string;
5
5
  };
6
- export type AppInfo = {
6
+ export type ConnectAppInfo = {
7
7
  name: string;
8
8
  identifier?: string;
9
9
  version?: string;
10
10
  };
11
- export type PaymentProvider = {
11
+ export type ConenctPaymentProvider = {
12
12
  technology_id: string;
13
13
  settlement_by: string;
14
14
  };
15
- export type SDKNotification = {
15
+ export type ConnectNotification = {
16
16
  email: boolean;
17
17
  mobile?: boolean;
18
18
  };
@@ -25,7 +25,7 @@ export declare enum ConnectScope {
25
25
  AUTH = "auth",
26
26
  MERCHANT = "merchant"
27
27
  }
28
- export declare enum PasswordOperationType {
28
+ export declare enum ConnectPasswordOperationType {
29
29
  SET_PASSWORD = "set_password",
30
30
  RESET_PASSWORD = "reset_password"
31
31
  }
@@ -35,33 +35,33 @@ export type ConnectProps = {
35
35
  onError?: (error: CustomError) => void;
36
36
  onReady?: () => void;
37
37
  open: boolean;
38
- theme?: ThemeMode;
39
- language?: LanguageMode;
38
+ theme?: ConnectTheme;
39
+ language?: ConnectLanguage;
40
40
  publicKey: string;
41
41
  merchantDomain: string;
42
- appInfo: AppInfo;
42
+ appInfo: ConnectAppInfo;
43
43
  businessCountryCode?: string;
44
44
  scope: ConnectScope;
45
45
  showBoard?: boolean;
46
46
  platforms?: Array<string>;
47
- paymentProvider?: PaymentProvider;
47
+ paymentProvider?: ConenctPaymentProvider;
48
48
  features?: {
49
49
  poweredBy?: boolean;
50
50
  merchantLogo?: boolean;
51
51
  closeButton?: boolean;
52
- dialogStartTransition?: DialogTransition;
53
- dialogEndTransition?: DialogTransition;
54
- dialogEdgeFormat?: DialogEdgeFormat;
52
+ dialogStartTransition?: ConnectDialogTransition;
53
+ dialogEndTransition?: ConnectDialogTransition;
54
+ dialogEdgeFormat?: ConnectDialogEdgeFormat;
55
55
  };
56
- postURL?: string;
56
+ postUrl?: string;
57
57
  redirectUrl?: string;
58
58
  data?: Array<string>;
59
59
  mode?: ConnectMode;
60
- notification?: SDKNotification;
61
- boardMaturity?: boolean;
60
+ notification?: ConnectNotification;
61
+ boardEditable?: boolean;
62
62
  boardId?: string;
63
63
  boardInfoId?: string;
64
64
  userId?: string;
65
65
  userType?: string;
66
- operationType?: PasswordOperationType;
66
+ operationType?: ConnectPasswordOperationType;
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 PasswordOperationType;
13
- (function (PasswordOperationType) {
14
- PasswordOperationType["SET_PASSWORD"] = "set_password";
15
- PasswordOperationType["RESET_PASSWORD"] = "reset_password";
16
- })(PasswordOperationType || (PasswordOperationType = {}));
12
+ export var ConnectPasswordOperationType;
13
+ (function (ConnectPasswordOperationType) {
14
+ ConnectPasswordOperationType["SET_PASSWORD"] = "set_password";
15
+ ConnectPasswordOperationType["RESET_PASSWORD"] = "reset_password";
16
+ })(ConnectPasswordOperationType || (ConnectPasswordOperationType = {}));
@@ -1,16 +1,16 @@
1
- export declare enum ThemeMode {
1
+ export declare enum ConnectTheme {
2
2
  DARK = "dark",
3
3
  LIGHT = "light"
4
4
  }
5
- export declare enum LanguageMode {
5
+ export declare enum ConnectLanguage {
6
6
  AR = "ar",
7
7
  EN = "en"
8
8
  }
9
- export declare enum DialogEdgeFormat {
9
+ export declare enum ConnectDialogEdgeFormat {
10
10
  STRAIGHT = "straight",
11
11
  CURVED = "curved"
12
12
  }
13
- export declare enum DialogTransition {
13
+ export declare enum ConnectDialogTransition {
14
14
  LEFT = "left",
15
15
  RIGHT = "right",
16
16
  UP = "up",
@@ -1,22 +1,22 @@
1
- export var ThemeMode;
2
- (function (ThemeMode) {
3
- ThemeMode["DARK"] = "dark";
4
- ThemeMode["LIGHT"] = "light";
5
- })(ThemeMode || (ThemeMode = {}));
6
- export var LanguageMode;
7
- (function (LanguageMode) {
8
- LanguageMode["AR"] = "ar";
9
- LanguageMode["EN"] = "en";
10
- })(LanguageMode || (LanguageMode = {}));
11
- export var DialogEdgeFormat;
12
- (function (DialogEdgeFormat) {
13
- DialogEdgeFormat["STRAIGHT"] = "straight";
14
- DialogEdgeFormat["CURVED"] = "curved";
15
- })(DialogEdgeFormat || (DialogEdgeFormat = {}));
16
- export var DialogTransition;
17
- (function (DialogTransition) {
18
- DialogTransition["LEFT"] = "left";
19
- DialogTransition["RIGHT"] = "right";
20
- DialogTransition["UP"] = "up";
21
- DialogTransition["DOWN"] = "down";
22
- })(DialogTransition || (DialogTransition = {}));
1
+ export var ConnectTheme;
2
+ (function (ConnectTheme) {
3
+ ConnectTheme["DARK"] = "dark";
4
+ ConnectTheme["LIGHT"] = "light";
5
+ })(ConnectTheme || (ConnectTheme = {}));
6
+ export var ConnectLanguage;
7
+ (function (ConnectLanguage) {
8
+ ConnectLanguage["AR"] = "ar";
9
+ ConnectLanguage["EN"] = "en";
10
+ })(ConnectLanguage || (ConnectLanguage = {}));
11
+ export var ConnectDialogEdgeFormat;
12
+ (function (ConnectDialogEdgeFormat) {
13
+ ConnectDialogEdgeFormat["STRAIGHT"] = "straight";
14
+ ConnectDialogEdgeFormat["CURVED"] = "curved";
15
+ })(ConnectDialogEdgeFormat || (ConnectDialogEdgeFormat = {}));
16
+ export var ConnectDialogTransition;
17
+ (function (ConnectDialogTransition) {
18
+ ConnectDialogTransition["LEFT"] = "left";
19
+ ConnectDialogTransition["RIGHT"] = "right";
20
+ ConnectDialogTransition["UP"] = "up";
21
+ ConnectDialogTransition["DOWN"] = "down";
22
+ })(ConnectDialogTransition || (ConnectDialogTransition = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tap-payments/connect-v2",
3
3
  "private": false,
4
- "version": "0.0.16-test",
4
+ "version": "0.0.18-test",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",