@paynext/sdk 0.0.158 → 0.0.159
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/dist/index.d.ts +6 -0
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare interface CheckoutTranslate {
|
|
|
62
62
|
status: {
|
|
63
63
|
error: string;
|
|
64
64
|
invalidSession: string;
|
|
65
|
+
authenticationFailed: string;
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
|
|
@@ -107,6 +108,7 @@ declare interface CheckoutTranslateOverrides {
|
|
|
107
108
|
status?: {
|
|
108
109
|
error?: string;
|
|
109
110
|
invalidSession?: string;
|
|
111
|
+
authenticationFailed?: string;
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
114
|
|
|
@@ -364,6 +366,7 @@ export declare interface PayNextConfig {
|
|
|
364
366
|
environment: TEnvironment;
|
|
365
367
|
apiVersion: string;
|
|
366
368
|
variant?: 'default' | 'compact';
|
|
369
|
+
theme?: ThemeMode;
|
|
367
370
|
styles?: StylesConfig;
|
|
368
371
|
translate?: CheckoutTranslateOverrides;
|
|
369
372
|
locale?: Locale;
|
|
@@ -372,6 +375,7 @@ export declare interface PayNextConfig {
|
|
|
372
375
|
onCheckoutAttempt?: (result: AttemptResult) => void;
|
|
373
376
|
onCheckoutComplete?: (result: PaymentResult) => void;
|
|
374
377
|
onCheckoutFail?: (error: CheckoutError) => void;
|
|
378
|
+
_themeExplicit?: boolean;
|
|
375
379
|
}
|
|
376
380
|
|
|
377
381
|
export declare const PayNextSDK: {
|
|
@@ -391,4 +395,6 @@ export declare interface StylesConfig {
|
|
|
391
395
|
|
|
392
396
|
declare type TEnvironment = 'develop' | 'sandbox' | 'production';
|
|
393
397
|
|
|
398
|
+
export declare type ThemeMode = 'light' | 'dark';
|
|
399
|
+
|
|
394
400
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paynext/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.159",
|
|
4
4
|
"description": "PayNext SDK - Payment processing with automatic CDN loading",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"preview": "PREVIEW=true vite --host",
|
|
38
38
|
"preview:cdn": "yarn wrangler dev",
|
|
39
39
|
"preview-host": "PREVIEW=true yarn build-preview && vite preview --host",
|
|
40
|
-
"preview-windows": "set PREVIEW=true&& vite --host",
|
|
41
40
|
"build-preview": "PREVIEW=true yarn build",
|
|
42
41
|
"build": "tsc -b && vite build",
|
|
43
42
|
"build:cdn": "CDN=true tsc -b && CDN=true vite build",
|