@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.
- package/dist/chunks/{index-BhtU_AAG.js → index-B0BHysWS.js} +12 -11
- package/dist/chunks/{index-CVTOXcSY.js → index-VfKF_MSs.js} +1 -1
- package/dist/chunks/{metamask-sdk-BwVxHW1_.js → metamask-sdk-C_765hQm.js} +1 -1
- package/dist/chunks/{mountEngine-P1Ws89oo.js → mountEngine-B8FwMr2r.js} +8411 -8333
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/ui/pullToRefreshGuard.d.ts +21 -0
- package/dist/types/ui/react/engine/usePullToRefreshGuard.d.ts +3 -0
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lydianpay/sdk-web",
|
|
3
|
-
"version": "3.
|
|
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.
|
|
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",
|