@lydianpay/sdk-web 3.14.0 → 3.15.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/{browser-BFd9Zasn.js → browser-Bt5TF15J.js} +1 -1
- package/dist/chunks/{connect-multichain-W5NFpeTb.js → connect-multichain-DZaPiBrH.js} +9 -9
- package/dist/chunks/{index-DDKaYwMc.js → index-BNr7lH3k.js} +14 -13
- package/dist/chunks/{index-B2KlqxZz.js → index-BqoF-MuQ.js} +2 -2
- package/dist/chunks/{index-ChcFlkGu.js → index-Co-4jhyA.js} +2 -2
- package/dist/chunks/{index-B8vFbue_.js → index-DvVB0Sjv.js} +1 -1
- package/dist/chunks/{index-DhuuCvX-.js → index-KRc-DEDM.js} +1 -1
- package/dist/chunks/{index-SMHjRBlL.js → index-ehz3N8J3.js} +3 -3
- package/dist/chunks/{mountEngine-0u7my-Xz.js → mountEngine-0Lj7ZkFh.js} +7425 -7340
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ui/checkoutPresentation.d.ts +1 -0
- package/dist/types/ui/ldkCheckout.d.ts +1 -0
- package/dist/types/ui/ldkHandoff.d.ts +5 -0
- package/dist/types/ui/paymentFlow.d.ts +1 -0
- package/dist/types/ui/walletCheckoutRecord.d.ts +9 -0
- package/dist/types/utils/guards.d.ts +1 -0
- package/package.json +2 -2
|
@@ -15,6 +15,7 @@ export interface CheckoutPresentation {
|
|
|
15
15
|
hideQRCode(): void;
|
|
16
16
|
showSuccess(transaction: GetTransactionResponse | undefined, overpaidUSD: number): void;
|
|
17
17
|
showUnderpaid(transaction: GetTransactionResponse): void;
|
|
18
|
+
showWalletPaymentProgress(transaction: GetTransactionResponse): void;
|
|
18
19
|
showFailure(message: string): void;
|
|
19
20
|
/** Terminal screen for a cancellation with nowhere to redirect to. */
|
|
20
21
|
showCanceled(): void;
|
|
@@ -12,3 +12,4 @@ export declare function getLdkCheckoutSessionProperties({ isLDKEnabled, walletId
|
|
|
12
12
|
hasTransaction: boolean;
|
|
13
13
|
}): Record<string, string> | undefined;
|
|
14
14
|
export declare function isLdkHandoff(checkout: Parameters<typeof getLdkCheckoutSessionProperties>[0]): boolean;
|
|
15
|
+
export declare function isLdkCheckoutSupported(approvedSessionProperties: Readonly<Record<string, string>> | undefined): boolean;
|
|
@@ -27,3 +27,8 @@ export declare function adoptWalletPayment({ transaction, store, paymentFlow, se
|
|
|
27
27
|
presentation: Pick<CheckoutPresentation, 'clearErrorBanner'>;
|
|
28
28
|
screenNavigator: Pick<ScreenNavigator, 'show' | 'setBack'>;
|
|
29
29
|
}): void;
|
|
30
|
+
export declare function isWalletOwnedCheckout({ transaction, isLDKEnabled, wasHandedToWallet, }: {
|
|
31
|
+
transaction: GetTransactionResponse;
|
|
32
|
+
isLDKEnabled: boolean;
|
|
33
|
+
wasHandedToWallet: boolean;
|
|
34
|
+
}): boolean;
|
|
@@ -33,6 +33,7 @@ export interface PaymentFlowSeams {
|
|
|
33
33
|
setPendingWalletSend(built: WalletRequest | null): void;
|
|
34
34
|
hasPendingWalletSend(): boolean;
|
|
35
35
|
resetCheckout(): void;
|
|
36
|
+
walletOwnsCheckout(): boolean;
|
|
36
37
|
}
|
|
37
38
|
export declare function createPaymentFlow({ store, presentation, screenNavigator, sessionLifecycle, hostCallbacks, poller, quoteWatcher, getApi, getOptions, emit, seams, }: {
|
|
38
39
|
store: CheckoutStore;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const clearWalletCheckoutRecord: ({ sessionId }: {
|
|
2
|
+
sessionId: string | null | undefined;
|
|
3
|
+
}) => void;
|
|
4
|
+
export declare function writeWalletCheckoutRecord({ sessionId, }: {
|
|
5
|
+
sessionId: string | null | undefined;
|
|
6
|
+
}): void;
|
|
7
|
+
export declare function wasCheckoutHandedToWallet({ sessionId, }: {
|
|
8
|
+
sessionId: string | null | undefined;
|
|
9
|
+
}): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lydianpay/sdk-web",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.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": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@lydianpay/frontend-shared-helpers": "1.2.0",
|
|
91
|
-
"@lydianpay/lydianconnect": "^1.
|
|
91
|
+
"@lydianpay/lydianconnect": "^1.10.0",
|
|
92
92
|
"@lydianpay/lydianconnect-catalog": "^1.4.1",
|
|
93
93
|
"@solana/qr-code-styling": "^1.6.0",
|
|
94
94
|
"dompurify": "^3.4.12",
|