@lydianpay/sdk-web 3.13.0 → 3.14.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.
@@ -66,6 +66,13 @@ type CommonInitOptions = {
66
66
  dev?: boolean;
67
67
  /** Target `api.sandbox.lydian.com`. Production is the default. */
68
68
  sandbox?: boolean;
69
+ /**
70
+ * A gateway at this origin instead of the deployed ones, e.g.
71
+ * `http://localhost:8000` for one running on this machine. An origin only:
72
+ * no path, query or fragment. Wins over `dev` and `sandbox`. For local
73
+ * development only.
74
+ */
75
+ gatewayUrl?: string;
69
76
  /** Required only when `flow.walletConnect` is on; unused otherwise. */
70
77
  walletConnectProjectId?: string;
71
78
  /**
@@ -11,6 +11,9 @@ export declare function missingWalletConnectIdMessage(options: {
11
11
  };
12
12
  walletConnectProjectId?: string;
13
13
  }): string | null;
14
+ export declare function invalidGatewayUrlMessage(options: {
15
+ gatewayUrl?: string;
16
+ }): string | null;
14
17
  export declare function hasPublishableKey(options: CheckoutInitOptions | null): boolean;
15
18
  export declare function canReplaceSession(options: CheckoutInitOptions | null): boolean;
16
19
  export declare function shouldAutoStartCheckout({ options, session, settled, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "3.13.0",
3
+ "version": "3.14.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": {
@@ -55,7 +55,10 @@
55
55
  "serve": "cp scripts/bundle-check.html dist/index.html && vite preview --outDir dist --port 9999 --strictPort",
56
56
  "dev": "run-p dev:css dev:vite",
57
57
  "dev:css": "tailwindcss -i src/ui/lydian.css -o src/ui/lydian.generated.css --minify --watch",
58
- "dev:vite": "vite"
58
+ "dev:vite": "vite",
59
+ "use:local": "node scripts/use-local.mjs",
60
+ "use:published": "npm install --no-audit --no-fund",
61
+ "dev:phone": "node scripts/dev-phone.mjs"
59
62
  },
60
63
  "devDependencies": {
61
64
  "@eslint/js": "^9.0.0",
@@ -76,6 +79,7 @@
76
79
  "postcss": "^8.4.6",
77
80
  "prettier": "3.9.5",
78
81
  "qrcode": "^1.5.4",
82
+ "qrcode-terminal": "^0.12.0",
79
83
  "tailwindcss": "^3.0.0",
80
84
  "typescript": "^5.0.0",
81
85
  "typescript-eslint": "^8.0.0",
@@ -84,8 +88,8 @@
84
88
  },
85
89
  "dependencies": {
86
90
  "@lydianpay/frontend-shared-helpers": "1.2.0",
87
- "@lydianpay/lydianconnect": "^1.8.0",
88
- "@lydianpay/lydianconnect-catalog": "^1.4.0",
91
+ "@lydianpay/lydianconnect": "^1.9.0",
92
+ "@lydianpay/lydianconnect-catalog": "^1.4.1",
89
93
  "@solana/qr-code-styling": "^1.6.0",
90
94
  "dompurify": "^3.4.12",
91
95
  "react": "^19.2.8",