@lydianpay/sdk-web 3.2.0 → 3.4.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.
@@ -316,7 +316,7 @@ export type CheckoutFonts = {
316
316
  familyURL?: string;
317
317
  };
318
318
  export type CheckoutFlow = {
319
- skipConfirmationPage?: boolean;
319
+ assetFirst?: boolean;
320
320
  hideNoWalletOption?: boolean;
321
321
  showApprovalPage?: boolean;
322
322
  };
@@ -0,0 +1,21 @@
1
+ import { type CheckoutState } from './react/checkoutStore';
2
+ export type SavedInlineValue = {
3
+ style: CSSStyleDeclaration;
4
+ value: string;
5
+ };
6
+ export declare function applyOverscrollProtection(scrollRoots: HTMLElement[]): SavedInlineValue[];
7
+ export declare function restoreOverscrollStyles(savedInlineValues: SavedInlineValue[]): void;
8
+ export declare function pathHasScrolledElement(path: readonly unknown[]): boolean;
9
+ export declare function shouldBlockPullGesture({ scrollY, gestureStart, currentTouch, hasScrolledElement, }: {
10
+ scrollY: number;
11
+ gestureStart: {
12
+ x: number;
13
+ y: number;
14
+ } | null;
15
+ currentTouch: {
16
+ x: number;
17
+ y: number;
18
+ };
19
+ hasScrolledElement: boolean;
20
+ }): boolean;
21
+ export declare function shouldSuppressPullToRefresh({ activeScreen, processingVisible, }: Pick<CheckoutState, 'activeScreen' | 'processingVisible'>): boolean;
@@ -0,0 +1,3 @@
1
+ export declare function usePullToRefreshGuard({ shouldSuppress }: {
2
+ shouldSuppress: boolean;
3
+ }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "3.2.0",
3
+ "version": "3.4.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": {
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@lydianpay/frontend-shared-helpers": "1.1.0",
86
- "@lydianpay/lydianconnect": "^1.3.0",
86
+ "@lydianpay/lydianconnect": "^1.4.0",
87
87
  "@lydianpay/lydianconnect-catalog": "^1.3.1",
88
88
  "@solana/qr-code-styling": "^1.6.0",
89
89
  "dompurify": "^3.4.12",