@lydianpay/sdk-web 3.7.2 → 3.8.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-Dny2gxz5.js → index-D83gDNdH.js} +1 -1
- package/dist/chunks/{index-BRfoKKIF.js → index-ENtoRsTd.js} +9 -7
- package/dist/chunks/{metamask-sdk-BzhRPCxs.js → metamask-sdk-Bb7iLFk7.js} +1 -1
- package/dist/chunks/{mountEngine-Dd6Llndl.js → mountEngine-DuZ1RYGk.js} +4734 -4689
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ui/checkoutPresentation.d.ts +2 -0
- package/dist/types/ui/react/OpenInWalletCta.d.ts +8 -0
- package/dist/types/ui/react/PaymentCanceledScreen.d.ts +2 -0
- package/dist/types/ui/react/checkoutStore.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ export interface CheckoutPresentation {
|
|
|
16
16
|
showSuccess(transaction: GetTransactionResponse | undefined, overpaidUSD: number): void;
|
|
17
17
|
showUnderpaid(transaction: GetTransactionResponse): void;
|
|
18
18
|
showFailure(message: string): void;
|
|
19
|
+
/** Terminal screen for a cancellation with nowhere to redirect to. */
|
|
20
|
+
showCanceled(): void;
|
|
19
21
|
}
|
|
20
22
|
export declare function createCheckoutPresentation({ store, screenNavigator, sessionLifecycle, }: {
|
|
21
23
|
store: CheckoutStore;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IslandClickEvent } from './checkoutStore';
|
|
3
|
+
export default function OpenInWalletCta({ id, labelId, label, onClick, }: {
|
|
4
|
+
id: string;
|
|
5
|
+
labelId: string;
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: (event: IslandClickEvent) => void;
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -13,6 +13,7 @@ export declare const SCREEN_NAMES: {
|
|
|
13
13
|
readonly SCAN: "scan";
|
|
14
14
|
readonly SUCCESS: "success";
|
|
15
15
|
readonly FAILURE: "failure";
|
|
16
|
+
readonly CANCELED: "canceled";
|
|
16
17
|
};
|
|
17
18
|
export type ActiveScreen = (typeof SCREEN_NAMES)[keyof typeof SCREEN_NAMES];
|
|
18
19
|
export interface CheckoutState {
|
|
@@ -99,6 +100,7 @@ export interface CheckoutCallbacks {
|
|
|
99
100
|
onHeaderBack(): void;
|
|
100
101
|
onChangePaymentMethod(): void;
|
|
101
102
|
onCloseFailure(): void;
|
|
103
|
+
onCloseCanceled(): void;
|
|
102
104
|
onCloseDialogAccept(): void;
|
|
103
105
|
onCloseDialogReject(): void;
|
|
104
106
|
onSelectNetwork(networkCode: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lydianpay/sdk-web",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.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": {
|