@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 +5 -5
- package/build/components/loader/Loader.js +0 -1
- package/build/connect/Connect.js +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.js +2 -2
- package/build/types/app.d.ts +16 -16
- package/build/types/app.js +5 -5
- package/build/types/theme.d.ts +4 -4
- package/build/types/theme.js +22 -22
- package/package.json +1 -1
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,
|
|
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:
|
|
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:
|
|
12
|
-
dialogEndTransition:
|
|
13
|
-
},
|
|
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) => {
|
package/build/connect/Connect.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConnectProps,
|
|
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,
|
|
4
|
-
export { ConnectMode,
|
|
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,
|
|
1
|
+
import { ConnectMode, ConnectTheme, ConnectLanguage, ConnectScope, ConnectDialogTransition, ConnectDialogEdgeFormat, ConnectPasswordOperationType, } from './types';
|
|
2
2
|
import { ConnectElement, renderConnectElement } from './connect';
|
|
3
|
-
export { ConnectMode,
|
|
3
|
+
export { ConnectMode, ConnectTheme, ConnectLanguage, ConnectScope, ConnectDialogTransition, ConnectDialogEdgeFormat, ConnectPasswordOperationType, };
|
|
4
4
|
export { ConnectElement, renderConnectElement };
|
package/build/types/app.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
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
|
|
6
|
+
export type ConnectAppInfo = {
|
|
7
7
|
name: string;
|
|
8
8
|
identifier?: string;
|
|
9
9
|
version?: string;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type ConenctPaymentProvider = {
|
|
12
12
|
technology_id: string;
|
|
13
13
|
settlement_by: string;
|
|
14
14
|
};
|
|
15
|
-
export type
|
|
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
|
|
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?:
|
|
39
|
-
language?:
|
|
38
|
+
theme?: ConnectTheme;
|
|
39
|
+
language?: ConnectLanguage;
|
|
40
40
|
publicKey: string;
|
|
41
41
|
merchantDomain: string;
|
|
42
|
-
appInfo:
|
|
42
|
+
appInfo: ConnectAppInfo;
|
|
43
43
|
businessCountryCode?: string;
|
|
44
44
|
scope: ConnectScope;
|
|
45
45
|
showBoard?: boolean;
|
|
46
46
|
platforms?: Array<string>;
|
|
47
|
-
paymentProvider?:
|
|
47
|
+
paymentProvider?: ConenctPaymentProvider;
|
|
48
48
|
features?: {
|
|
49
49
|
poweredBy?: boolean;
|
|
50
50
|
merchantLogo?: boolean;
|
|
51
51
|
closeButton?: boolean;
|
|
52
|
-
dialogStartTransition?:
|
|
53
|
-
dialogEndTransition?:
|
|
54
|
-
dialogEdgeFormat?:
|
|
52
|
+
dialogStartTransition?: ConnectDialogTransition;
|
|
53
|
+
dialogEndTransition?: ConnectDialogTransition;
|
|
54
|
+
dialogEdgeFormat?: ConnectDialogEdgeFormat;
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
postUrl?: string;
|
|
57
57
|
redirectUrl?: string;
|
|
58
58
|
data?: Array<string>;
|
|
59
59
|
mode?: ConnectMode;
|
|
60
|
-
notification?:
|
|
61
|
-
|
|
60
|
+
notification?: ConnectNotification;
|
|
61
|
+
boardEditable?: boolean;
|
|
62
62
|
boardId?: string;
|
|
63
63
|
boardInfoId?: string;
|
|
64
64
|
userId?: string;
|
|
65
65
|
userType?: string;
|
|
66
|
-
operationType?:
|
|
66
|
+
operationType?: ConnectPasswordOperationType;
|
|
67
67
|
};
|
package/build/types/app.js
CHANGED
|
@@ -9,8 +9,8 @@ export var ConnectScope;
|
|
|
9
9
|
ConnectScope["AUTH"] = "auth";
|
|
10
10
|
ConnectScope["MERCHANT"] = "merchant";
|
|
11
11
|
})(ConnectScope || (ConnectScope = {}));
|
|
12
|
-
export var
|
|
13
|
-
(function (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})(
|
|
12
|
+
export var ConnectPasswordOperationType;
|
|
13
|
+
(function (ConnectPasswordOperationType) {
|
|
14
|
+
ConnectPasswordOperationType["SET_PASSWORD"] = "set_password";
|
|
15
|
+
ConnectPasswordOperationType["RESET_PASSWORD"] = "reset_password";
|
|
16
|
+
})(ConnectPasswordOperationType || (ConnectPasswordOperationType = {}));
|
package/build/types/theme.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum ConnectTheme {
|
|
2
2
|
DARK = "dark",
|
|
3
3
|
LIGHT = "light"
|
|
4
4
|
}
|
|
5
|
-
export declare enum
|
|
5
|
+
export declare enum ConnectLanguage {
|
|
6
6
|
AR = "ar",
|
|
7
7
|
EN = "en"
|
|
8
8
|
}
|
|
9
|
-
export declare enum
|
|
9
|
+
export declare enum ConnectDialogEdgeFormat {
|
|
10
10
|
STRAIGHT = "straight",
|
|
11
11
|
CURVED = "curved"
|
|
12
12
|
}
|
|
13
|
-
export declare enum
|
|
13
|
+
export declare enum ConnectDialogTransition {
|
|
14
14
|
LEFT = "left",
|
|
15
15
|
RIGHT = "right",
|
|
16
16
|
UP = "up",
|
package/build/types/theme.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(
|
|
6
|
-
export var
|
|
7
|
-
(function (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(
|
|
11
|
-
export var
|
|
12
|
-
(function (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(
|
|
16
|
-
export var
|
|
17
|
-
(function (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})(
|
|
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 = {}));
|