@paynext/sdk 1.0.15 → 1.0.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7b2276657273696f6e223a312c227073704964223a2230373434434444394536373533423346413835354439313837374235424543354538373137353142383032364444454638434644443639453337453234443142222c22637265617465644f6e223a313737393436353530393931357d
|
package/dist/index.d.ts
CHANGED
|
@@ -57,13 +57,18 @@ export declare interface CheckoutTranslate {
|
|
|
57
57
|
compact: {
|
|
58
58
|
button: string;
|
|
59
59
|
};
|
|
60
|
+
taxId: {
|
|
61
|
+
label: string;
|
|
62
|
+
error: {
|
|
63
|
+
required: string;
|
|
64
|
+
invalid: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
60
67
|
};
|
|
61
68
|
pix: {
|
|
62
|
-
button: string;
|
|
63
69
|
description: string;
|
|
64
70
|
taxId: {
|
|
65
71
|
label: string;
|
|
66
|
-
placeholder: string;
|
|
67
72
|
error: {
|
|
68
73
|
required: string;
|
|
69
74
|
invalid: string;
|
|
@@ -129,13 +134,18 @@ declare interface CheckoutTranslateOverrides {
|
|
|
129
134
|
compact?: {
|
|
130
135
|
button?: string;
|
|
131
136
|
};
|
|
137
|
+
taxId?: {
|
|
138
|
+
label?: string;
|
|
139
|
+
error?: {
|
|
140
|
+
required?: string;
|
|
141
|
+
invalid?: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
132
144
|
};
|
|
133
145
|
pix?: {
|
|
134
|
-
button?: string;
|
|
135
146
|
description?: string;
|
|
136
147
|
taxId?: {
|
|
137
148
|
label?: string;
|
|
138
|
-
placeholder?: string;
|
|
139
149
|
error?: {
|
|
140
150
|
required?: string;
|
|
141
151
|
invalid?: string;
|
|
@@ -440,6 +450,7 @@ declare enum PaymentStatus {
|
|
|
440
450
|
SETTLED = "SETTLED",
|
|
441
451
|
DECLINED = "DECLINED",
|
|
442
452
|
CANCELLED = "CANCELLED",
|
|
453
|
+
REFUNDED = "REFUNDED",
|
|
443
454
|
BLOCKED = "BLOCKED",
|
|
444
455
|
INCOMPLETE = "INCOMPLETE"
|
|
445
456
|
}
|
|
@@ -456,7 +467,7 @@ export declare class PayNextCheckout {
|
|
|
456
467
|
private assertReady;
|
|
457
468
|
mount(containerId: string, config: PayNextConfig): Promise<void>;
|
|
458
469
|
unmount(): Promise<void>;
|
|
459
|
-
static preload(envType:
|
|
470
|
+
static preload(envType: TEnvironment): Promise<void>;
|
|
460
471
|
}
|
|
461
472
|
|
|
462
473
|
export declare interface PayNextConfig {
|
|
@@ -495,7 +506,7 @@ export declare interface StylesConfig {
|
|
|
495
506
|
cssVariables?: CSSVariablesConfig;
|
|
496
507
|
}
|
|
497
508
|
|
|
498
|
-
export declare type TEnvironment = 'develop' | 'staging' | 'sandbox' | 'production';
|
|
509
|
+
export declare type TEnvironment = 'develop' | 'preview1' | 'preview2' | 'staging' | 'sandbox' | 'production';
|
|
499
510
|
|
|
500
511
|
export declare type ThemeMode = 'light' | 'dark' | 'system';
|
|
501
512
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paynext/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "PayNext SDK - Payment processing with automatic CDN loading",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
@@ -33,19 +33,22 @@
|
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"type-check": "tsc --noEmit",
|
|
36
|
+
"types:worker": "wrangler types",
|
|
36
37
|
"format": "yarn type-check && yarn lint && yarn prettier",
|
|
37
38
|
"preview": "PREVIEW=true NODE_ENV=development vite --host",
|
|
38
39
|
"preview-host": "PREVIEW=true yarn build-preview && vite preview --host",
|
|
39
40
|
"preview:cdn": "yarn wrangler dev",
|
|
40
41
|
"build-preview": "PREVIEW=true yarn build",
|
|
41
42
|
"build": "tsc -b && vite build",
|
|
42
|
-
"build:cdn": "
|
|
43
|
+
"build:cdn": "yarn types:worker && node scripts/build-cdn.mjs",
|
|
43
44
|
"lint": "eslint .",
|
|
44
45
|
"analyze": "ANALYZE=true yarn build",
|
|
45
46
|
"pub": "yarn build && npm publish --scope=@paynext",
|
|
46
47
|
"pub-ts": "npm run build && npm version patch --no-git-tag-version && npm publish --access restricted",
|
|
47
48
|
"deploy:dev": "yarn build:cdn && yarn wrangler deploy --env='development'",
|
|
48
|
-
"deploy:prod": "yarn build:cdn && yarn wrangler deploy --env=''"
|
|
49
|
+
"deploy:prod": "yarn build:cdn && yarn wrangler deploy --env=''",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest"
|
|
49
52
|
},
|
|
50
53
|
"peerDependencies": {
|
|
51
54
|
"react": "^19.0.0",
|
|
@@ -60,8 +63,10 @@
|
|
|
60
63
|
}
|
|
61
64
|
},
|
|
62
65
|
"devDependencies": {
|
|
66
|
+
"@cloudflare/workers-types": "^4.20260426.1",
|
|
63
67
|
"@eslint/js": "^9.39.1",
|
|
64
68
|
"@evervault/js": "^2.9.0",
|
|
69
|
+
"@google-pay/button-element": "^3.2.1",
|
|
65
70
|
"@heroui/react": "^2.8.5",
|
|
66
71
|
"@paypal/paypal-js": "^8.4.2",
|
|
67
72
|
"@paypal/react-paypal-js": "^8.9.2",
|
|
@@ -74,13 +79,14 @@
|
|
|
74
79
|
"@vitejs/plugin-legacy": "^7.2.1",
|
|
75
80
|
"@vitejs/plugin-react": "^5.1.0",
|
|
76
81
|
"autoprefixer": "^10.4.22",
|
|
77
|
-
"braintree-web": "
|
|
82
|
+
"braintree-web": "3.140.0",
|
|
78
83
|
"credit-card-type": "^10.1.0",
|
|
79
84
|
"eslint": "^9.39.1",
|
|
80
85
|
"eslint-plugin-prettier": "^5.5.4",
|
|
81
86
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
82
87
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
83
88
|
"globals": "^16.5.0",
|
|
89
|
+
"json5": "^2.2.3",
|
|
84
90
|
"motion": "^12.23.24",
|
|
85
91
|
"prettier": "^3.6.2",
|
|
86
92
|
"prettier-plugin-tailwindcss": "^0.6.9",
|
|
@@ -97,6 +103,7 @@
|
|
|
97
103
|
"vite-plugin-dts": "^4.5.4",
|
|
98
104
|
"vite-plugin-static-copy": "^3.1.4",
|
|
99
105
|
"vite-plugin-svgr": "^4.5.0",
|
|
106
|
+
"vitest": "2.1.9",
|
|
100
107
|
"wrangler": "^4.46.0"
|
|
101
108
|
},
|
|
102
109
|
"browserslist": [
|