@lydianpay/sdk-web 3.6.0 → 3.7.0
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/chunks/{index-9i2S104v.js → index-DJHqzaLI.js} +194 -192
- package/dist/chunks/{index-bKFtUHLc.js → index-Du8LmTIv.js} +1 -1
- package/dist/chunks/{metamask-sdk-CK1SAg_K.js → metamask-sdk-DekYRxAk.js} +1 -1
- package/dist/chunks/{mountEngine-CVnwr305.js → mountEngine-uNB2ytN4.js} +4979 -4950
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types/ui/kycFlow.d.ts +2 -1
- package/dist/types/ui/kycVerificationRequest.d.ts +2 -1
- package/dist/types/ui/walletConnection.d.ts +1 -0
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface KycFlowSeams {
|
|
|
29
29
|
}): void;
|
|
30
30
|
closeRestoreDialog(): void;
|
|
31
31
|
}
|
|
32
|
-
export declare function createKycFlow({ store, presentation, screenNavigator, sessionLifecycle, paymentFlow, poller, quoteWatcher, getApi, getOptions, emit, seams, }: {
|
|
32
|
+
export declare function createKycFlow({ store, presentation, screenNavigator, sessionLifecycle, paymentFlow, poller, quoteWatcher, getApi, getOptions, getWalletAccount, emit, seams, }: {
|
|
33
33
|
store: CheckoutStore;
|
|
34
34
|
presentation: CheckoutPresentation;
|
|
35
35
|
screenNavigator: ScreenNavigator;
|
|
@@ -39,6 +39,7 @@ export declare function createKycFlow({ store, presentation, screenNavigator, se
|
|
|
39
39
|
quoteWatcher: SessionQuoteWatcher;
|
|
40
40
|
getApi: () => API | null;
|
|
41
41
|
getOptions: () => CheckoutInitOptions | null;
|
|
42
|
+
getWalletAccount: () => string | null;
|
|
42
43
|
emit: (name: CheckoutEventName, data?: Record<string, unknown>) => void;
|
|
43
44
|
seams: KycFlowSeams;
|
|
44
45
|
}): KycFlow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { KycFieldValues } from './kycValidation';
|
|
2
2
|
import type { KYCVerificationRequest } from '../types';
|
|
3
|
-
export declare function kycVerificationRequest({ values, asset, network, storeKyc, documentFront, documentBack, supportsDocuments, restoring, }: {
|
|
3
|
+
export declare function kycVerificationRequest({ values, asset, network, storeKyc, documentFront, documentBack, supportsDocuments, restoring, walletAddress, }: {
|
|
4
4
|
values: KycFieldValues;
|
|
5
5
|
asset: string;
|
|
6
6
|
network: string;
|
|
@@ -14,4 +14,5 @@ export declare function kycVerificationRequest({ values, asset, network, storeKy
|
|
|
14
14
|
customerUUID: string;
|
|
15
15
|
country: string;
|
|
16
16
|
} | null;
|
|
17
|
+
walletAddress?: string | null;
|
|
17
18
|
}): KYCVerificationRequest;
|
|
@@ -12,6 +12,7 @@ export interface WalletConnection {
|
|
|
12
12
|
choose(wallet: CheckoutWallet): void;
|
|
13
13
|
/** Whether the picked wallet is one checkout can actually connect to. */
|
|
14
14
|
hasConnectable(): boolean;
|
|
15
|
+
connectedAccount(): string | null;
|
|
15
16
|
/** Establishes the wallet session used to filter supported networks. */
|
|
16
17
|
discoverSupportedNetworks(): Promise<void>;
|
|
17
18
|
/** Pins the wallet connection to the selected payment network. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lydianpay/sdk-web",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Drop-in crypto payment checkout for the web — a <lydian-checkout> web component and window.Lydian API across 20+ chains and major stablecoins.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"vitest": "^3.0.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@lydianpay/frontend-shared-helpers": "1.
|
|
85
|
+
"@lydianpay/frontend-shared-helpers": "1.2.0",
|
|
86
86
|
"@lydianpay/lydianconnect": "^1.5.0",
|
|
87
87
|
"@lydianpay/lydianconnect-catalog": "^1.3.1",
|
|
88
88
|
"@solana/qr-code-styling": "^1.6.0",
|