@lydianpay/sdk-web 3.0.1 → 3.2.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/README.md +9 -8
- package/dist/chunks/index-BhtU_AAG.js +740 -0
- package/dist/chunks/{index-YAGlsS0s.js → index-CVTOXcSY.js} +13 -14
- package/dist/chunks/{metamask-sdk-CFm2IK48.js → metamask-sdk-BwVxHW1_.js} +1 -1
- package/dist/chunks/mountEngine-P1Ws89oo.js +34936 -0
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/constants.d.ts +6 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types/ui/Checkout.d.ts +11 -143
- package/dist/types/ui/checkoutCallbacks.d.ts +26 -0
- package/dist/types/ui/checkoutEngine.d.ts +28 -0
- package/dist/types/ui/checkoutPresentation.d.ts +24 -0
- package/dist/types/ui/checkoutSelection.d.ts +30 -0
- package/dist/types/ui/components/icons.d.ts +0 -1
- package/dist/types/ui/copyFields.d.ts +13 -0
- package/dist/types/ui/countdownClock.d.ts +5 -0
- package/dist/types/ui/dialogController.d.ts +35 -0
- package/dist/types/ui/failureReport.d.ts +13 -0
- package/dist/types/ui/flowConfig.d.ts +3 -2
- package/dist/types/ui/hostCallbacks.d.ts +10 -0
- package/dist/types/ui/kycFlow.d.ts +44 -0
- package/dist/types/ui/kycVerificationRequest.d.ts +17 -0
- package/dist/types/ui/networkListHelpers.d.ts +9 -1
- package/dist/types/ui/paymentFlow.d.ts +49 -0
- package/dist/types/ui/pollTick.d.ts +15 -0
- package/dist/types/ui/react/AssetSelectScreen.d.ts +1 -5
- package/dist/types/ui/react/CheckoutApp.d.ts +1 -4
- package/dist/types/ui/react/CloseTransactionDialogBody.d.ts +1 -6
- package/dist/types/ui/react/ConnectWithQrScreen.d.ts +1 -5
- package/dist/types/ui/react/ConnectingWalletScreen.d.ts +1 -5
- package/dist/types/ui/react/KycScreen.d.ts +1 -5
- package/dist/types/ui/react/LoadingScreen.d.ts +1 -8
- package/dist/types/ui/react/NetworkSelectScreen.d.ts +1 -5
- package/dist/types/ui/react/PaymentFailureScreen.d.ts +1 -5
- package/dist/types/ui/react/PaymentHeaderSection.d.ts +1 -12
- package/dist/types/ui/react/PaymentSuccessScreen.d.ts +1 -5
- package/dist/types/ui/react/RestoreDetailsDialogBody.d.ts +1 -4
- package/dist/types/ui/react/ScanToPayScreen.d.ts +1 -5
- package/dist/types/ui/react/TimerBanner/TimerBanner.d.ts +2 -0
- package/dist/types/ui/react/TimerBanner/timerBannerHelpers.d.ts +13 -0
- package/dist/types/ui/react/WalletSelectScreen.d.ts +1 -5
- package/dist/types/ui/react/checkoutActions.d.ts +107 -0
- package/dist/types/ui/react/checkoutContext.d.ts +9 -0
- package/dist/types/ui/react/checkoutReducer.d.ts +11 -0
- package/dist/types/ui/react/checkoutStore.d.ts +19 -11
- package/dist/types/ui/react/engine/CheckoutEngine.d.ts +30 -0
- package/dist/types/ui/react/engine/checkoutShell.d.ts +3 -0
- package/dist/types/ui/react/engine/mountEngine.d.ts +10 -0
- package/dist/types/ui/react/engine/useBranding.d.ts +1 -0
- package/dist/types/ui/react/engine/useCopyFields.d.ts +1 -0
- package/dist/types/ui/react/engine/useHostCallbacks.d.ts +2 -0
- package/dist/types/ui/react/engine/useProcessingOverlay.d.ts +1 -0
- package/dist/types/ui/react/engine/useScreenNavigator.d.ts +3 -0
- package/dist/types/ui/react/mount.d.ts +7 -5
- package/dist/types/ui/react/useQrCanvas.d.ts +9 -0
- package/dist/types/ui/screenNavigator.d.ts +13 -0
- package/dist/types/ui/sessionBootstrap.d.ts +36 -0
- package/dist/types/ui/sessionHelpers.d.ts +1 -2
- package/dist/types/ui/sessionLifecycle.d.ts +37 -0
- package/dist/types/ui/sessionQuoteWatcher.d.ts +7 -8
- package/dist/types/ui/settledOutcome.d.ts +14 -0
- package/dist/types/ui/transactionOutcome.d.ts +2 -0
- package/dist/types/ui/transactionPoller.d.ts +16 -0
- package/dist/types/ui/walletConnection.d.ts +48 -0
- package/package.json +2 -1
- package/dist/chunks/index-NI3RoQG3.js +0 -22485
- package/dist/chunks/mount-bhuHFGLm.js +0 -12914
- package/dist/types/ui/countdownBanner.d.ts +0 -33
- package/dist/types/ui/react/DownloadWalletScreen.d.ts +0 -4
- package/dist/types/ui/react/TimerBanner.d.ts +0 -4
- package/dist/types/ui/react/callbacksFixture.d.ts +0 -6
package/README.md
CHANGED
|
@@ -102,22 +102,23 @@ Optional per-embed settings. Only settings your Lydian account cannot express li
|
|
|
102
102
|
here — everything else is configured once on the merchant portal and applies to
|
|
103
103
|
every checkout automatically.
|
|
104
104
|
|
|
105
|
-
| Field | Type | Default | Description
|
|
106
|
-
| --------------- | --------- | ------- |
|
|
107
|
-
| `walletConnect` | `boolean` | `false` | Offer wallet connection alongside the QR code. Not available from account config.
|
|
105
|
+
| Field | Type | Default | Description |
|
|
106
|
+
| --------------- | --------- | ------- | ------------------------------------------------------------------------------------------------- |
|
|
107
|
+
| `walletConnect` | `boolean` | `false` | Offer wallet connection alongside the QR code. Not available from account config. |
|
|
108
|
+
| `assetFirst` | `boolean` | `false` | Ask the customer to pick the coin before the network, instead of the default network-first order. |
|
|
108
109
|
|
|
109
110
|
Configured on your Lydian account, not here. They apply to every checkout and there
|
|
110
111
|
is no per-embed override:
|
|
111
112
|
|
|
112
|
-
| Setting
|
|
113
|
-
|
|
|
114
|
-
| `
|
|
115
|
-
| `hideNoWalletOption`
|
|
113
|
+
| Setting | Description |
|
|
114
|
+
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
115
|
+
| `showApprovalPage` | Show the scan-to-pay screen as a confirmation step before asking a connected wallet to sign. Off by default — the wallet opens straight away. |
|
|
116
|
+
| `hideNoWalletOption` | Legacy field name retained for compatibility. When true, hides the "Other wallets" option on the wallet selection screen. |
|
|
116
117
|
|
|
117
118
|
```js
|
|
118
119
|
window.Lydian.init({
|
|
119
120
|
// ...
|
|
120
|
-
flow: { walletConnect: true },
|
|
121
|
+
flow: { walletConnect: true, assetFirst: true },
|
|
121
122
|
});
|
|
122
123
|
```
|
|
123
124
|
|