@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.
Files changed (72) hide show
  1. package/README.md +9 -8
  2. package/dist/chunks/index-BhtU_AAG.js +740 -0
  3. package/dist/chunks/{index-YAGlsS0s.js → index-CVTOXcSY.js} +13 -14
  4. package/dist/chunks/{metamask-sdk-CFm2IK48.js → metamask-sdk-BwVxHW1_.js} +1 -1
  5. package/dist/chunks/mountEngine-P1Ws89oo.js +34936 -0
  6. package/dist/lydian.js +1 -1
  7. package/dist/types/.tsbuildinfo +1 -1
  8. package/dist/types/constants.d.ts +6 -0
  9. package/dist/types/types.d.ts +1 -0
  10. package/dist/types/ui/Checkout.d.ts +11 -143
  11. package/dist/types/ui/checkoutCallbacks.d.ts +26 -0
  12. package/dist/types/ui/checkoutEngine.d.ts +28 -0
  13. package/dist/types/ui/checkoutPresentation.d.ts +24 -0
  14. package/dist/types/ui/checkoutSelection.d.ts +30 -0
  15. package/dist/types/ui/components/icons.d.ts +0 -1
  16. package/dist/types/ui/copyFields.d.ts +13 -0
  17. package/dist/types/ui/countdownClock.d.ts +5 -0
  18. package/dist/types/ui/dialogController.d.ts +35 -0
  19. package/dist/types/ui/failureReport.d.ts +13 -0
  20. package/dist/types/ui/flowConfig.d.ts +3 -2
  21. package/dist/types/ui/hostCallbacks.d.ts +10 -0
  22. package/dist/types/ui/kycFlow.d.ts +44 -0
  23. package/dist/types/ui/kycVerificationRequest.d.ts +17 -0
  24. package/dist/types/ui/networkListHelpers.d.ts +9 -1
  25. package/dist/types/ui/paymentFlow.d.ts +49 -0
  26. package/dist/types/ui/pollTick.d.ts +15 -0
  27. package/dist/types/ui/react/AssetSelectScreen.d.ts +1 -5
  28. package/dist/types/ui/react/CheckoutApp.d.ts +1 -4
  29. package/dist/types/ui/react/CloseTransactionDialogBody.d.ts +1 -6
  30. package/dist/types/ui/react/ConnectWithQrScreen.d.ts +1 -5
  31. package/dist/types/ui/react/ConnectingWalletScreen.d.ts +1 -5
  32. package/dist/types/ui/react/KycScreen.d.ts +1 -5
  33. package/dist/types/ui/react/LoadingScreen.d.ts +1 -8
  34. package/dist/types/ui/react/NetworkSelectScreen.d.ts +1 -5
  35. package/dist/types/ui/react/PaymentFailureScreen.d.ts +1 -5
  36. package/dist/types/ui/react/PaymentHeaderSection.d.ts +1 -12
  37. package/dist/types/ui/react/PaymentSuccessScreen.d.ts +1 -5
  38. package/dist/types/ui/react/RestoreDetailsDialogBody.d.ts +1 -4
  39. package/dist/types/ui/react/ScanToPayScreen.d.ts +1 -5
  40. package/dist/types/ui/react/TimerBanner/TimerBanner.d.ts +2 -0
  41. package/dist/types/ui/react/TimerBanner/timerBannerHelpers.d.ts +13 -0
  42. package/dist/types/ui/react/WalletSelectScreen.d.ts +1 -5
  43. package/dist/types/ui/react/checkoutActions.d.ts +107 -0
  44. package/dist/types/ui/react/checkoutContext.d.ts +9 -0
  45. package/dist/types/ui/react/checkoutReducer.d.ts +11 -0
  46. package/dist/types/ui/react/checkoutStore.d.ts +19 -11
  47. package/dist/types/ui/react/engine/CheckoutEngine.d.ts +30 -0
  48. package/dist/types/ui/react/engine/checkoutShell.d.ts +3 -0
  49. package/dist/types/ui/react/engine/mountEngine.d.ts +10 -0
  50. package/dist/types/ui/react/engine/useBranding.d.ts +1 -0
  51. package/dist/types/ui/react/engine/useCopyFields.d.ts +1 -0
  52. package/dist/types/ui/react/engine/useHostCallbacks.d.ts +2 -0
  53. package/dist/types/ui/react/engine/useProcessingOverlay.d.ts +1 -0
  54. package/dist/types/ui/react/engine/useScreenNavigator.d.ts +3 -0
  55. package/dist/types/ui/react/mount.d.ts +7 -5
  56. package/dist/types/ui/react/useQrCanvas.d.ts +9 -0
  57. package/dist/types/ui/screenNavigator.d.ts +13 -0
  58. package/dist/types/ui/sessionBootstrap.d.ts +36 -0
  59. package/dist/types/ui/sessionHelpers.d.ts +1 -2
  60. package/dist/types/ui/sessionLifecycle.d.ts +37 -0
  61. package/dist/types/ui/sessionQuoteWatcher.d.ts +7 -8
  62. package/dist/types/ui/settledOutcome.d.ts +14 -0
  63. package/dist/types/ui/transactionOutcome.d.ts +2 -0
  64. package/dist/types/ui/transactionPoller.d.ts +16 -0
  65. package/dist/types/ui/walletConnection.d.ts +48 -0
  66. package/package.json +2 -1
  67. package/dist/chunks/index-NI3RoQG3.js +0 -22485
  68. package/dist/chunks/mount-bhuHFGLm.js +0 -12914
  69. package/dist/types/ui/countdownBanner.d.ts +0 -33
  70. package/dist/types/ui/react/DownloadWalletScreen.d.ts +0 -4
  71. package/dist/types/ui/react/TimerBanner.d.ts +0 -4
  72. 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 | Description |
113
- | ---------------------- | ----------------------------------------------------------------------- |
114
- | `skipConfirmationPage` | Open the wallet straight away instead of showing a confirmation screen. |
115
- | `hideNoWalletOption` | Hide the "I don't have a supported wallet" link. |
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