@stridge/kit 0.1.0-alpha.4 → 0.1.0-alpha.40

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 (248) hide show
  1. package/README.md +22 -6
  2. package/dist/KitProvider.d.ts +29 -0
  3. package/dist/KitProvider.js +1 -1
  4. package/dist/_internal/drivers/stridge/index.d.ts +3 -2
  5. package/dist/_internal/drivers/stridge/index.js +1 -1
  6. package/dist/_internal/withdraw/driver/index.d.ts +2 -2
  7. package/dist/deposit/compound/index.d.ts +3 -3
  8. package/dist/drivers/stridge/catalog.d.ts +54 -0
  9. package/dist/drivers/stridge/catalog.js +1 -0
  10. package/dist/drivers/stridge/createStridgeDepositDriver.d.ts +9 -0
  11. package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
  12. package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +34 -13
  13. package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
  14. package/dist/drivers/stridge/internal/retry.js +1 -0
  15. package/dist/drivers/stridge/internal/supportedChains.js +1 -0
  16. package/dist/drivers/stridge/types.d.ts +20 -14
  17. package/dist/drivers/stridge/types.js +1 -1
  18. package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +2 -2
  19. package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
  20. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +15 -3
  21. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
  22. package/dist/drivers/stridge-mock/fixtures.d.ts +13 -11
  23. package/dist/drivers/stridge-mock/fixtures.js +1 -1
  24. package/dist/events/bus/createBus.d.ts +7 -0
  25. package/dist/events/bus/createBus.js +1 -0
  26. package/dist/events/bus/flowIdRegistry.d.ts +17 -0
  27. package/dist/events/bus/flowIdRegistry.js +1 -0
  28. package/dist/events/bus/index.js +1 -0
  29. package/dist/events/bus/metadata.js +1 -0
  30. package/dist/events/context.js +1 -0
  31. package/dist/events/emit/index.js +1 -0
  32. package/dist/events/emit/mapFailure.js +1 -0
  33. package/dist/events/emit/useDepositEmissions.js +1 -0
  34. package/dist/events/emit/useKitEmitter.js +1 -0
  35. package/dist/events/emit/useWithdrawEmissions.js +1 -0
  36. package/dist/events/hooks/index.d.ts +6 -0
  37. package/dist/events/hooks/index.js +1 -0
  38. package/dist/events/hooks/useCurrentFlowId.d.ts +6 -0
  39. package/dist/events/hooks/useCurrentFlowId.js +1 -0
  40. package/dist/events/hooks/useStableHandler.js +1 -0
  41. package/dist/events/hooks/useStridgeEvent.d.ts +8 -0
  42. package/dist/events/hooks/useStridgeEvent.js +1 -0
  43. package/dist/events/hooks/useStridgeEventBus.d.ts +33 -0
  44. package/dist/events/hooks/useStridgeEventBus.js +1 -0
  45. package/dist/events/hooks/useStridgeEvents.d.ts +6 -0
  46. package/dist/events/hooks/useStridgeEvents.js +1 -0
  47. package/dist/events/hooks/useStridgeFlowEvent.d.ts +8 -0
  48. package/dist/events/hooks/useStridgeFlowEvent.js +1 -0
  49. package/dist/events/hooks/useStridgeFlowEvents.d.ts +6 -0
  50. package/dist/events/hooks/useStridgeFlowEvents.js +1 -0
  51. package/dist/events/index.d.ts +14 -0
  52. package/dist/events/index.js +1 -0
  53. package/dist/events/publish.js +1 -0
  54. package/dist/events/types/deposit.d.ts +235 -0
  55. package/dist/events/types/envelope.d.ts +145 -0
  56. package/dist/events/types/index.d.ts +31 -0
  57. package/dist/events/types/kit.d.ts +23 -0
  58. package/dist/events/types/withdraw.d.ts +150 -0
  59. package/dist/flows/deposit/dialog/DepositDialog.d.ts +14 -81
  60. package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
  61. package/dist/flows/deposit/dialog/WalletRequiredState.js +1 -0
  62. package/dist/flows/deposit/dialog/WalletRequiredState.styles.js +1 -0
  63. package/dist/flows/deposit/driver/payloads.d.ts +10 -4
  64. package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.js +1 -1
  65. package/dist/flows/deposit/driver/transformers/startToAddressesPayload.js +1 -1
  66. package/dist/flows/deposit/driver/transformers/startToTargetPayload.js +1 -1
  67. package/dist/flows/deposit/driver/types.d.ts +11 -0
  68. package/dist/flows/deposit/orchestrator/controller.js +1 -1
  69. package/dist/flows/deposit/orchestrator/types.d.ts +30 -1
  70. package/dist/flows/deposit/orchestrator/useDeposit.d.ts +45 -1
  71. package/dist/flows/deposit/orchestrator/useDeposit.js +1 -1
  72. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.d.ts +1 -1
  73. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
  74. package/dist/flows/deposit/widgets/amount-entry/footerIntent.js +1 -0
  75. package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -1
  76. package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
  77. package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +6 -0
  78. package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -1
  79. package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +6 -3
  80. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +7 -0
  81. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
  82. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -1
  83. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -1
  84. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -1
  85. package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
  86. package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.js +1 -1
  87. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.d.ts +1 -1
  88. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -1
  89. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +2 -1
  90. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -1
  91. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +4 -10
  92. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
  93. package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -1
  94. package/dist/flows/shared/transformers/testnets.js +1 -0
  95. package/dist/flows/withdraw/bindings/WithdrawBindings.d.ts +92 -0
  96. package/dist/flows/withdraw/bindings/WithdrawBindings.js +1 -0
  97. package/dist/flows/withdraw/bindings/index.d.ts +1 -0
  98. package/dist/flows/withdraw/bindings/index.js +1 -0
  99. package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +35 -71
  100. package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
  101. package/dist/flows/withdraw/driver/payloads.d.ts +16 -1
  102. package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -1
  103. package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -1
  104. package/dist/flows/withdraw/driver/types.d.ts +76 -13
  105. package/dist/flows/withdraw/orchestrator/controller.js +1 -1
  106. package/dist/flows/withdraw/orchestrator/index.d.ts +1 -1
  107. package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
  108. package/dist/flows/withdraw/orchestrator/types.d.ts +131 -32
  109. package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +36 -1
  110. package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -1
  111. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.d.ts +5 -13
  112. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -1
  113. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -1
  114. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +7 -5
  115. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
  116. package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +15 -5
  117. package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -1
  118. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +2 -1
  119. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -1
  120. package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js +1 -1
  121. package/dist/i18n/index.d.ts +5 -4
  122. package/dist/i18n/index.js +1 -1
  123. package/dist/i18n/locales/ar.js +1 -1
  124. package/dist/i18n/locales/es.js +1 -1
  125. package/dist/i18n/locales/source-keys.d.ts +12 -0
  126. package/dist/i18n/locales/source-keys.js +0 -0
  127. package/dist/icons/index.d.ts +2 -1
  128. package/dist/icons/index.js +1 -1
  129. package/dist/index.d.ts +21 -9
  130. package/dist/index.js +1 -1
  131. package/dist/package.js +1 -1
  132. package/dist/scope/KitPortalScope.js +1 -1
  133. package/dist/scope/KitScope.d.ts +18 -1
  134. package/dist/scope/KitScope.js +1 -1
  135. package/dist/scope/context.d.ts +17 -1
  136. package/dist/scope/index.d.ts +1 -1
  137. package/dist/shared/attribution/Attribution.js +1 -0
  138. package/dist/shared/attribution/Attribution.slots.js +1 -0
  139. package/dist/shared/attribution/Attribution.styles.js +1 -0
  140. package/dist/shared/attribution/index.js +1 -0
  141. package/dist/shared/chains/index.d.ts +48 -29
  142. package/dist/shared/chains/index.js +1 -1
  143. package/dist/shared/constants/brand-intercom.js +1 -0
  144. package/dist/shared/cuer/Cuer.js +1 -0
  145. package/dist/shared/cuer/QrCode.js +1 -0
  146. package/dist/shared/cuer/index.js +1 -0
  147. package/dist/shared/dialog/Frame.js +1 -1
  148. package/dist/shared/dialog/LoadingState.js +1 -0
  149. package/dist/shared/dialog/LoadingState.styles.js +1 -0
  150. package/dist/shared/dialog/StepTransition.js +1 -1
  151. package/dist/shared/driver/types.d.ts +4 -3
  152. package/dist/shared/i18n/KitI18nProvider.d.ts +11 -8
  153. package/dist/shared/i18n/KitI18nProvider.js +1 -1
  154. package/dist/shared/i18n/createKitI18n.d.ts +79 -16
  155. package/dist/shared/i18n/createKitI18n.js +1 -1
  156. package/dist/shared/i18n/useLingui.d.ts +11 -3
  157. package/dist/shared/icons/LogoIcon.d.ts +13 -0
  158. package/dist/shared/icons/LogoIcon.js +1 -0
  159. package/dist/shared/merchant-link/MerchantLink.d.ts +1 -0
  160. package/dist/shared/merchant-link/MerchantLink.js +1 -0
  161. package/dist/shared/merchant-link/MerchantLinkButton.d.ts +1 -0
  162. package/dist/shared/merchant-link/MerchantLinkButton.js +1 -0
  163. package/dist/shared/merchant-link/index.d.ts +1 -0
  164. package/dist/shared/merchant-link/index.js +1 -0
  165. package/dist/shared/merchant-link/resolveMerchantLink.js +1 -0
  166. package/dist/shared/orchestrator/useSettlementWatcher.js +1 -1
  167. package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -1
  168. package/dist/shared/support/SupportConfigContext.d.ts +1 -0
  169. package/dist/shared/support/SupportConfigContext.js +1 -0
  170. package/dist/shared/support/SupportLink.d.ts +1 -0
  171. package/dist/shared/support/SupportLink.js +1 -0
  172. package/dist/shared/support/SupportSpinner.d.ts +1 -0
  173. package/dist/shared/support/SupportSpinner.js +1 -0
  174. package/dist/shared/support/index.d.ts +2 -0
  175. package/dist/shared/support/index.js +1 -0
  176. package/dist/shared/support/intercom-loader.d.ts +17 -0
  177. package/dist/shared/support/intercom-loader.js +1 -0
  178. package/dist/shared/support/types.d.ts +43 -0
  179. package/dist/shared/support/useIntercomMerchantContext.d.ts +27 -0
  180. package/dist/shared/support/useIntercomMerchantContext.js +1 -0
  181. package/dist/shared/support/useIntercomShutdownOnUnmount.js +1 -0
  182. package/dist/shared/support/useMerchantContext.d.ts +1 -0
  183. package/dist/shared/support/useMerchantContext.js +1 -0
  184. package/dist/shared/support/useSupportTrigger.js +1 -0
  185. package/dist/shared/terms/TermsConfigContext.d.ts +1 -0
  186. package/dist/shared/terms/TermsConfigContext.js +1 -0
  187. package/dist/shared/terms/TermsLink.d.ts +1 -0
  188. package/dist/shared/terms/TermsLink.js +1 -0
  189. package/dist/shared/terms/index.d.ts +1 -0
  190. package/dist/shared/terms/index.js +1 -0
  191. package/dist/shared/terms/types.d.ts +43 -0
  192. package/dist/shared/ui/Card/Card.styles.js +1 -1
  193. package/dist/shared/ui/Details/Details.d.ts +9 -1
  194. package/dist/shared/ui/Details/Details.styles.js +1 -1
  195. package/dist/shared/ui/Dialog/Dialog.js +1 -1
  196. package/dist/shared/ui/Dialog/Dialog.styles.js +1 -1
  197. package/dist/shared/ui/Select/Select.js +1 -1
  198. package/dist/shared/ui/WalletRow/WalletRow.d.ts +1 -1
  199. package/dist/shared/ui/WalletRow/WalletRow.js +1 -1
  200. package/dist/shared/utils/useDeepMemo.js +1 -0
  201. package/dist/shared/wallet/ConnectWalletContext.d.ts +17 -0
  202. package/dist/shared/wallet/ConnectWalletContext.js +1 -0
  203. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
  204. package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -1
  205. package/dist/shared/widgets/asset-picker/compound/components/Asset.d.ts +7 -1
  206. package/dist/shared/widgets/asset-picker/compound/components/Asset.js +1 -1
  207. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +4 -3
  208. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -1
  209. package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -1
  210. package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -1
  211. package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -1
  212. package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +1 -5
  213. package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -1
  214. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +0 -1
  215. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -1
  216. package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -1
  217. package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +6 -1
  218. package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -1
  219. package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +4 -3
  220. package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -1
  221. package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +14 -7
  222. package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -1
  223. package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -1
  224. package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -1
  225. package/dist/shared/widgets/processing-state/compound/components/splitAmount.js +1 -0
  226. package/dist/shared/widgets/processing-state/compound/index.d.ts +1 -1
  227. package/dist/shared/widgets/processing-state/compound/types.d.ts +7 -26
  228. package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -1
  229. package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -1
  230. package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -1
  231. package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -1
  232. package/dist/stridge/StridgeProvider.d.ts +165 -35
  233. package/dist/stridge/StridgeProvider.js +1 -1
  234. package/dist/stridge/depositOwner.js +1 -0
  235. package/dist/stridge/optionalWagmi.js +1 -0
  236. package/dist/stridge/stubs.js +1 -1
  237. package/dist/styles/index.css +126 -10
  238. package/dist/types.d.ts +5 -4
  239. package/dist/ui/index.js +1 -1
  240. package/dist/withdraw/compound/index.d.ts +2 -2
  241. package/dist/withdraw/dialog/index.d.ts +3 -1
  242. package/package.json +13 -9
  243. package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.d.ts +0 -36
  244. package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.js +0 -1
  245. package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +0 -17
  246. package/dist/shared/widgets/processing-state/compound/components/Actions.js +0 -1
  247. package/dist/stridge/StridgeContext.d.ts +0 -29
  248. package/dist/stridge/StridgeContext.js +0 -1
package/dist/types.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  import { Entity, SettlementFailureKind, TxRef } from "./shared/driver/types.js";
2
2
  import { AcceptedAssetPayload, AddressItemPayload, AssetPayload, BalanceItemPayload, BrandPayload, ChainPayload, QuoteBreakdownPayload, QuotePayload, QuoteRoutePayload, SettlementFailurePayload, SettlementPayload, SettlementPendingPayload, SettlementSuccessPayload, SourceWalletPayload, TargetPayload, WalletInfo, WalletPayload } from "./flows/deposit/driver/payloads.js";
3
3
  import { DepositSnapshot } from "./flows/deposit/driver/types.js";
4
+ import { FailureInfo } from "./shared/orchestrator/types.js";
5
+ import { ConfirmDepositPhase, DepositActions, DepositController, DepositMethod, DepositState, DepositStateName, GatewayEvent, OpenInput, ResolvedOpenInput, RetryTargetSpec } from "./flows/deposit/orchestrator/types.js";
4
6
  import { ReceiveOptionDto, ReceiveOptionsResponse, WithdrawableBalanceDto, WithdrawableBalancesResponse, WithdrawalQuoteDto, WithdrawalQuoteResponse, WithdrawalSettlementDto, WithdrawalSettlementResponse } from "./flows/withdraw/driver/dto.js";
5
7
  import { ReceiveChainPayload, ReceiveTokenOptionPayload, WithdrawableBalanceItemPayload, WithdrawalQuoteBreakdownPayload, WithdrawalQuotePayload, WithdrawalReceiveAssetPayload, WithdrawalSettlementFailurePayload, WithdrawalSettlementPayload, WithdrawalSettlementPendingPayload, WithdrawalSettlementSuccessPayload } from "./flows/withdraw/driver/payloads.js";
6
8
  import { WithdrawSnapshot } from "./flows/withdraw/driver/types.js";
7
9
  import { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme } from "./scope/context.js";
8
10
  import { KitStorageAdapter, KitStoragePersistence } from "./storage/types.js";
9
11
  import { KitStorage } from "./storage/createKitStorage.js";
10
- import { FailureInfo } from "./shared/orchestrator/types.js";
11
- import { ConfirmDepositPhase, DepositActions, DepositController, DepositMethod, DepositState, DepositStateName, GatewayEvent, OpenInput, ResolvedOpenInput, RetryTargetSpec } from "./flows/deposit/orchestrator/types.js";
12
- import { WithdrawActions, WithdrawController, WithdrawEvent, WithdrawState, WithdrawStateName, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
12
+ import { WithdrawActions, WithdrawController, WithdrawEvent, WithdrawState, WithdrawStateName, WithdrawSubmitActions, WithdrawSubmitCallback, WithdrawSubmitInput, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
13
+ import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient } from "./flows/withdraw/bindings/WithdrawBindings.js";
13
14
  import { BannerAckBucket } from "./banners/useBannerAck.js";
14
15
  import { STEPS_WITH_OWN_SETTLEMENT_VIEW, stepRendersSettlement } from "./flows/deposit/orchestrator/steps.js";
15
- export { type AcceptedAssetPayload, type AddressItemPayload, type AssetPayload, type BalanceItemPayload, type BannerAckBucket, type BrandPayload, type ChainPayload, type ConfirmDepositPhase, type DepositActions, type DepositController, type DepositMethod, type DepositSnapshot, type DepositState, type DepositStateName, type Entity, type FailureInfo, type GatewayEvent, type KitConfig, type KitDirection, type KitRadius, type KitStorage, type KitStorageAdapter, type KitStoragePersistence, type KitTarget, type KitTheme, type OpenInput, type QuoteBreakdownPayload, type QuotePayload, type QuoteRoutePayload, type ReceiveChainPayload, type ReceiveOptionDto, type ReceiveOptionsResponse, type ReceiveTokenOptionPayload, type ResolvedOpenInput, type RetryTargetSpec, STEPS_WITH_OWN_SETTLEMENT_VIEW, type SettlementFailureKind, type SettlementFailurePayload, type SettlementPayload, type SettlementPendingPayload, type SettlementSuccessPayload, type SourceWalletPayload, type TargetPayload, type TxRef, type WalletInfo, type WalletPayload, type WithdrawActions, type WithdrawController, type WithdrawEvent, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawableBalanceDto, type WithdrawableBalanceItemPayload, type WithdrawableBalancesResponse, type WithdrawalFormSnapshot, type WithdrawalQuoteBreakdownPayload, type WithdrawalQuoteDto, type WithdrawalQuotePayload, type WithdrawalQuoteResponse, type WithdrawalReceiveAssetPayload, type WithdrawalSettlementDto, type WithdrawalSettlementFailurePayload, type WithdrawalSettlementPayload, type WithdrawalSettlementPendingPayload, type WithdrawalSettlementResponse, type WithdrawalSettlementSuccessPayload, stepRendersSettlement };
16
+ export { type AcceptedAssetPayload, type AddressItemPayload, type AssetPayload, type BalanceItemPayload, type BannerAckBucket, type BrandPayload, type ChainPayload, type ConfirmDepositPhase, type DepositActions, type DepositController, type DepositMethod, type DepositSnapshot, type DepositState, type DepositStateName, type Entity, type FailureInfo, type GatewayEvent, type KitConfig, type KitDirection, type KitRadius, type KitStorage, type KitStorageAdapter, type KitStoragePersistence, type KitTarget, type KitTheme, type OpenInput, type QuoteBreakdownPayload, type QuotePayload, type QuoteRoutePayload, type ReceiveChainPayload, type ReceiveOptionDto, type ReceiveOptionsResponse, type ReceiveTokenOptionPayload, type ResolvedOpenInput, type RetryTargetSpec, STEPS_WITH_OWN_SETTLEMENT_VIEW, type SettlementFailureKind, type SettlementFailurePayload, type SettlementPayload, type SettlementPendingPayload, type SettlementSuccessPayload, type SourceWalletPayload, type TargetPayload, type TxRef, type WalletInfo, type WalletPayload, type WithdrawActions, type WithdrawBalanceInput, type WithdrawBindings, type WithdrawController, type WithdrawEvent, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient, type WithdrawableBalanceDto, type WithdrawableBalanceItemPayload, type WithdrawableBalancesResponse, type WithdrawalFormSnapshot, type WithdrawalQuoteBreakdownPayload, type WithdrawalQuoteDto, type WithdrawalQuotePayload, type WithdrawalQuoteResponse, type WithdrawalReceiveAssetPayload, type WithdrawalSettlementDto, type WithdrawalSettlementFailurePayload, type WithdrawalSettlementPayload, type WithdrawalSettlementPendingPayload, type WithdrawalSettlementResponse, type WithdrawalSettlementSuccessPayload, stepRendersSettlement };
package/dist/ui/index.js CHANGED
@@ -1 +1 @@
1
- import{BUTTON_SLOTS as e}from"../shared/ui/Button/Button.slots.js";import{Button as t}from"../shared/ui/Button/Button.js";import"../shared/ui/Button/index.js";import{ICON_BUTTON_SLOTS as n}from"../shared/ui/IconButton/IconButton.slots.js";import{IconButton as r}from"../shared/ui/IconButton/IconButton.js";import"../shared/ui/IconButton/index.js";import{SCROLL_AREA_SLOTS as i}from"../shared/ui/ScrollArea/ScrollArea.slots.js";import{ScrollArea as a}from"../shared/ui/ScrollArea/ScrollArea.js";import"../shared/ui/ScrollArea/index.js";import{DIALOG_SLOTS as o}from"../shared/ui/Dialog/Dialog.slots.js";import{Dialog as s,useIsInsideDialogContent as c}from"../shared/ui/Dialog/Dialog.js";import"../shared/ui/Dialog/index.js";import{ALERT_SLOTS as l}from"../shared/ui/Alert/Alert.slots.js";import{Alert as u}from"../shared/ui/Alert/Alert.js";import"../shared/ui/Alert/index.js";import{AMOUNT_INPUT_SLOTS as d}from"../shared/ui/AmountInput/AmountInput.slots.js";import{formatAmountForInput as f,parseAmountInputValue as p}from"../shared/ui/AmountInput/utils.js";import{AmountInput as m}from"../shared/ui/AmountInput/AmountInput.js";import"../shared/ui/AmountInput/index.js";import{BADGE_SLOTS as h}from"../shared/ui/Badge/Badge.slots.js";import{Badge as g}from"../shared/ui/Badge/Badge.js";import"../shared/ui/Badge/index.js";import{CARD_SLOTS as _}from"../shared/ui/Card/Card.slots.js";import{Card as v}from"../shared/ui/Card/Card.js";import"../shared/ui/Card/index.js";import{COLLAPSIBLE_SLOTS as y}from"../shared/ui/Collapsible/Collapsible.slots.js";import{Collapsible as b}from"../shared/ui/Collapsible/Collapsible.js";import"../shared/ui/Collapsible/index.js";import{DETAILS_SLOTS as x}from"../shared/ui/Details/Details.slots.js";import{Details as S}from"../shared/ui/Details/Details.js";import"../shared/ui/Details/index.js";import{EXTERNAL_LINK_SLOTS as C}from"../shared/ui/ExternalLink/ExternalLink.slots.js";import{ExternalLink as w}from"../shared/ui/ExternalLink/ExternalLink.js";import"../shared/ui/ExternalLink/index.js";import{FIELD_SLOTS as T}from"../shared/ui/Field/Field.slots.js";import{Field as E}from"../shared/ui/Field/Field.js";import"../shared/ui/Field/index.js";import{IMAGE_SLOTS as D}from"../shared/ui/Image/Image.slots.js";import{Image as O}from"../shared/ui/Image/Image.js";import"../shared/ui/Image/index.js";import{INPUT_GROUP_SLOTS as k}from"../shared/ui/InputGroup/InputGroup.slots.js";import{InputGroup as A}from"../shared/ui/InputGroup/InputGroup.js";import"../shared/ui/InputGroup/index.js";import{LtrAtom as j}from"../shared/ui/LtrAtom/LtrAtom.js";import"../shared/ui/LtrAtom/index.js";import{SELECT_SLOTS as M}from"../shared/ui/Select/Select.slots.js";import{Select as N}from"../shared/ui/Select/Select.js";import"../shared/ui/Select/index.js";import{SELECTABLE_TILE_SLOTS as P}from"../shared/ui/SelectableTile/SelectableTile.slots.js";import{SelectableTile as F}from"../shared/ui/SelectableTile/SelectableTile.js";import{SelectableTileGroup as I}from"../shared/ui/SelectableTile/SelectableTileGroup.js";import"../shared/ui/SelectableTile/index.js";import{SKELETON_SLOTS as L}from"../shared/ui/Skeleton/Skeleton.slots.js";import{Skeleton as R}from"../shared/ui/Skeleton/Skeleton.js";import"../shared/ui/Skeleton/index.js";import{TEXT_SLOTS as z}from"../shared/ui/Text/Text.slots.js";import{text as B}from"../shared/ui/Text/Text.js";import"../shared/ui/Text/index.js";import{TokenLogo as V}from"../shared/ui/TokenLogo/TokenLogo.js";import"../shared/ui/TokenLogo/index.js";import{TOOLTIP_SLOTS as H}from"../shared/ui/Tooltip/Tooltip.slots.js";import{Tooltip as U}from"../shared/ui/Tooltip/Tooltip.js";import"../shared/ui/Tooltip/index.js";import{WALLET_ROW_SLOTS as W}from"../shared/ui/WalletRow/WalletRow.slots.js";import{WalletRow as G}from"../shared/ui/WalletRow/WalletRow.js";import"../shared/ui/WalletRow/index.js";export{l as ALERT_SLOTS,d as AMOUNT_INPUT_SLOTS,u as Alert,m as AmountInput,h as BADGE_SLOTS,e as BUTTON_SLOTS,g as Badge,t as Button,_ as CARD_SLOTS,y as COLLAPSIBLE_SLOTS,v as Card,b as Collapsible,x as DETAILS_SLOTS,o as DIALOG_SLOTS,S as Details,s as Dialog,C as EXTERNAL_LINK_SLOTS,w as ExternalLink,T as FIELD_SLOTS,E as Field,n as ICON_BUTTON_SLOTS,D as IMAGE_SLOTS,k as INPUT_GROUP_SLOTS,r as IconButton,O as Image,A as InputGroup,j as LtrAtom,i as SCROLL_AREA_SLOTS,P as SELECTABLE_TILE_SLOTS,M as SELECT_SLOTS,L as SKELETON_SLOTS,a as ScrollArea,N as Select,F as SelectableTile,I as SelectableTileGroup,R as Skeleton,z as TEXT_SLOTS,H as TOOLTIP_SLOTS,V as TokenLogo,U as Tooltip,W as WALLET_ROW_SLOTS,G as WalletRow,f as formatAmountForInput,p as parseAmountInputValue,B as text,c as useIsInsideDialogContent};
1
+ import{EXTERNAL_LINK_SLOTS as e}from"../shared/ui/ExternalLink/ExternalLink.slots.js";import{ExternalLink as t}from"../shared/ui/ExternalLink/ExternalLink.js";import"../shared/ui/ExternalLink/index.js";import{BUTTON_SLOTS as n}from"../shared/ui/Button/Button.slots.js";import{Button as r}from"../shared/ui/Button/Button.js";import"../shared/ui/Button/index.js";import{ICON_BUTTON_SLOTS as i}from"../shared/ui/IconButton/IconButton.slots.js";import{IconButton as a}from"../shared/ui/IconButton/IconButton.js";import"../shared/ui/IconButton/index.js";import{SCROLL_AREA_SLOTS as o}from"../shared/ui/ScrollArea/ScrollArea.slots.js";import{ScrollArea as s}from"../shared/ui/ScrollArea/ScrollArea.js";import"../shared/ui/ScrollArea/index.js";import{DIALOG_SLOTS as c}from"../shared/ui/Dialog/Dialog.slots.js";import{Dialog as l,useIsInsideDialogContent as u}from"../shared/ui/Dialog/Dialog.js";import"../shared/ui/Dialog/index.js";import{ALERT_SLOTS as d}from"../shared/ui/Alert/Alert.slots.js";import{Alert as f}from"../shared/ui/Alert/Alert.js";import"../shared/ui/Alert/index.js";import{AMOUNT_INPUT_SLOTS as p}from"../shared/ui/AmountInput/AmountInput.slots.js";import{formatAmountForInput as m,parseAmountInputValue as h}from"../shared/ui/AmountInput/utils.js";import{AmountInput as g}from"../shared/ui/AmountInput/AmountInput.js";import"../shared/ui/AmountInput/index.js";import{BADGE_SLOTS as _}from"../shared/ui/Badge/Badge.slots.js";import{Badge as v}from"../shared/ui/Badge/Badge.js";import"../shared/ui/Badge/index.js";import{CARD_SLOTS as y}from"../shared/ui/Card/Card.slots.js";import{Card as b}from"../shared/ui/Card/Card.js";import"../shared/ui/Card/index.js";import{COLLAPSIBLE_SLOTS as x}from"../shared/ui/Collapsible/Collapsible.slots.js";import{Collapsible as S}from"../shared/ui/Collapsible/Collapsible.js";import"../shared/ui/Collapsible/index.js";import{DETAILS_SLOTS as C}from"../shared/ui/Details/Details.slots.js";import{Details as w}from"../shared/ui/Details/Details.js";import"../shared/ui/Details/index.js";import{FIELD_SLOTS as T}from"../shared/ui/Field/Field.slots.js";import{Field as E}from"../shared/ui/Field/Field.js";import"../shared/ui/Field/index.js";import{IMAGE_SLOTS as D}from"../shared/ui/Image/Image.slots.js";import{Image as O}from"../shared/ui/Image/Image.js";import"../shared/ui/Image/index.js";import{INPUT_GROUP_SLOTS as k}from"../shared/ui/InputGroup/InputGroup.slots.js";import{InputGroup as A}from"../shared/ui/InputGroup/InputGroup.js";import"../shared/ui/InputGroup/index.js";import{LtrAtom as j}from"../shared/ui/LtrAtom/LtrAtom.js";import"../shared/ui/LtrAtom/index.js";import{SELECT_SLOTS as M}from"../shared/ui/Select/Select.slots.js";import{Select as N}from"../shared/ui/Select/Select.js";import"../shared/ui/Select/index.js";import{SELECTABLE_TILE_SLOTS as P}from"../shared/ui/SelectableTile/SelectableTile.slots.js";import{SelectableTile as F}from"../shared/ui/SelectableTile/SelectableTile.js";import{SelectableTileGroup as I}from"../shared/ui/SelectableTile/SelectableTileGroup.js";import"../shared/ui/SelectableTile/index.js";import{SKELETON_SLOTS as L}from"../shared/ui/Skeleton/Skeleton.slots.js";import{Skeleton as R}from"../shared/ui/Skeleton/Skeleton.js";import"../shared/ui/Skeleton/index.js";import{TEXT_SLOTS as z}from"../shared/ui/Text/Text.slots.js";import{text as B}from"../shared/ui/Text/Text.js";import"../shared/ui/Text/index.js";import{TokenLogo as V}from"../shared/ui/TokenLogo/TokenLogo.js";import"../shared/ui/TokenLogo/index.js";import{TOOLTIP_SLOTS as H}from"../shared/ui/Tooltip/Tooltip.slots.js";import{Tooltip as U}from"../shared/ui/Tooltip/Tooltip.js";import"../shared/ui/Tooltip/index.js";import{WALLET_ROW_SLOTS as W}from"../shared/ui/WalletRow/WalletRow.slots.js";import{WalletRow as G}from"../shared/ui/WalletRow/WalletRow.js";import"../shared/ui/WalletRow/index.js";export{d as ALERT_SLOTS,p as AMOUNT_INPUT_SLOTS,f as Alert,g as AmountInput,_ as BADGE_SLOTS,n as BUTTON_SLOTS,v as Badge,r as Button,y as CARD_SLOTS,x as COLLAPSIBLE_SLOTS,b as Card,S as Collapsible,C as DETAILS_SLOTS,c as DIALOG_SLOTS,w as Details,l as Dialog,e as EXTERNAL_LINK_SLOTS,t as ExternalLink,T as FIELD_SLOTS,E as Field,i as ICON_BUTTON_SLOTS,D as IMAGE_SLOTS,k as INPUT_GROUP_SLOTS,a as IconButton,O as Image,A as InputGroup,j as LtrAtom,o as SCROLL_AREA_SLOTS,P as SELECTABLE_TILE_SLOTS,M as SELECT_SLOTS,L as SKELETON_SLOTS,s as ScrollArea,N as Select,F as SelectableTile,I as SelectableTileGroup,R as Skeleton,z as TEXT_SLOTS,H as TOOLTIP_SLOTS,V as TokenLogo,U as Tooltip,W as WALLET_ROW_SLOTS,G as WalletRow,m as formatAmountForInput,h as parseAmountInputValue,B as text,u as useIsInsideDialogContent};
@@ -10,7 +10,7 @@ import { ASSET_PICKER_SLOTS, AssetPickerSlot } from "../../shared/widgets/asset-
10
10
  import { ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef } from "../../shared/widgets/error-state/compound/types.js";
11
11
  import { ErrorState } from "../../shared/widgets/error-state/compound/ErrorState.js";
12
12
  import { ERROR_STATE_SLOTS, ErrorStateSlot } from "../../shared/widgets/error-state/compound/ErrorState.slots.js";
13
- import { ProcessingStateActionsProps, ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef } from "../../shared/widgets/processing-state/compound/types.js";
13
+ import { ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef } from "../../shared/widgets/processing-state/compound/types.js";
14
14
  import { ProcessingState } from "../../shared/widgets/processing-state/compound/ProcessingState.js";
15
15
  import { PROCESSING_STATE_SLOTS, ProcessingStateSlot } from "../../shared/widgets/processing-state/compound/ProcessingState.slots.js";
16
16
  import { SuccessStateActionsProps, SuccessStateAsset, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateExplorer, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateSourceWallet, SuccessStateStatusPillProps, SuccessStateTxRef } from "../../shared/widgets/success-state/compound/types.js";
@@ -19,4 +19,4 @@ import { SUCCESS_STATE_SLOTS, SuccessStateSlot } from "../../shared/widgets/succ
19
19
  import { WithdrawFormAsset, WithdrawFormBalance, WithdrawFormBodyProps, WithdrawFormBreakdown, WithdrawFormDialogProps, WithdrawFormHeaderProps, WithdrawFormProps } from "../../flows/withdraw/widgets/withdraw-form/compound/types.js";
20
20
  import { WithdrawForm } from "../../flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js";
21
21
  import { WITHDRAW_FORM_SLOTS, WithdrawFormSlot } from "../../flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.slots.js";
22
- export { AMOUNT_ENTRY_SLOTS, ASSET_PICKER_SLOTS, AmountEntry, AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntrySlot, AmountEntryToken, AssetOption, AssetPicker, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerSlot, AssetPickerToken, CONFIRM_TRANSFER_SLOTS, ConfirmTransfer, ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdown, ConfirmTransferBreakdownPercentRow, ConfirmTransferBreakdownProps, ConfirmTransferBreakdownTextRow, ConfirmTransferBreakdownUsdRow, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps, ConfirmTransferSlot, ConfirmTransferToken, ConfirmTransferTransfer, ERROR_STATE_SLOTS, ErrorState, ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSlot, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef, PROCESSING_STATE_SLOTS, ProcessingState, ProcessingStateActionsProps, ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSlot, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef, SUCCESS_STATE_SLOTS, SuccessState, SuccessStateActionsProps, SuccessStateAsset, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateExplorer, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateSlot, SuccessStateSourceWallet, SuccessStateStatusPillProps, SuccessStateTxRef, WITHDRAW_FORM_SLOTS, WithdrawForm, WithdrawFormAsset, WithdrawFormBalance, WithdrawFormBodyProps, WithdrawFormBreakdown, WithdrawFormDialogProps, WithdrawFormHeaderProps, WithdrawFormProps, WithdrawFormSlot };
22
+ export { AMOUNT_ENTRY_SLOTS, ASSET_PICKER_SLOTS, AmountEntry, AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntrySlot, AmountEntryToken, AssetOption, AssetPicker, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerSlot, AssetPickerToken, CONFIRM_TRANSFER_SLOTS, ConfirmTransfer, ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdown, ConfirmTransferBreakdownPercentRow, ConfirmTransferBreakdownProps, ConfirmTransferBreakdownTextRow, ConfirmTransferBreakdownUsdRow, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps, ConfirmTransferSlot, ConfirmTransferToken, ConfirmTransferTransfer, ERROR_STATE_SLOTS, ErrorState, ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSlot, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef, PROCESSING_STATE_SLOTS, ProcessingState, ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSlot, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef, SUCCESS_STATE_SLOTS, SuccessState, SuccessStateActionsProps, SuccessStateAsset, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateExplorer, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateSlot, SuccessStateSourceWallet, SuccessStateStatusPillProps, SuccessStateTxRef, WITHDRAW_FORM_SLOTS, WithdrawForm, WithdrawFormAsset, WithdrawFormBalance, WithdrawFormBodyProps, WithdrawFormBreakdown, WithdrawFormDialogProps, WithdrawFormHeaderProps, WithdrawFormProps, WithdrawFormSlot };
@@ -1,2 +1,4 @@
1
+ import { WithdrawSubmitActions, WithdrawSubmitCallback, WithdrawSubmitInput } from "../../flows/withdraw/orchestrator/types.js";
2
+ import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient } from "../../flows/withdraw/bindings/WithdrawBindings.js";
1
3
  import { WithdrawDialog } from "../../flows/withdraw/dialog/WithdrawDialog.js";
2
- export { WithdrawDialog };
4
+ export { type WithdrawBalanceInput, type WithdrawBindings, WithdrawDialog, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stridge/kit",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.40",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -14,6 +14,10 @@
14
14
  "import": "./dist/index.js"
15
15
  },
16
16
  "./styles.css": "./dist/styles/index.css",
17
+ "./events": {
18
+ "types": "./dist/events/index.d.ts",
19
+ "import": "./dist/events/index.js"
20
+ },
17
21
  "./deposit/compound": {
18
22
  "types": "./dist/deposit/compound/index.d.ts",
19
23
  "import": "./dist/deposit/compound/index.js"
@@ -119,7 +123,7 @@
119
123
  "typescript": "6.0.3",
120
124
  "viem": "2.48.1",
121
125
  "vite-plugin-babel": "^1.6.0",
122
- "vitest": "4.1.2",
126
+ "vitest": "4.1.5",
123
127
  "wagmi": "3.6.3",
124
128
  "@stridge/kit-typescript": "0.0.0"
125
129
  },
@@ -129,14 +133,14 @@
129
133
  "@lingui/message-utils": "^6.0.1",
130
134
  "@lingui/react": "^6.0.1",
131
135
  "@stylexjs/stylex": "^0.18.3",
132
- "cuer": "0.0.3",
133
136
  "motion": "^12.38.0",
134
- "@stridge/sdk": "0.1.0-alpha.3"
137
+ "qr": "0.6.0",
138
+ "@stridge/sdk": "0.1.0-alpha.4"
135
139
  },
136
140
  "scripts": {
137
141
  "build": "pnpm run i18n:compile && tsdown",
138
- "check:api": "api-extractor run",
139
- "check:api:update": "api-extractor run --local",
142
+ "check:api": "api-extractor run && api-extractor run --config api-extractor.i18n.json && api-extractor run --config api-extractor.events.json",
143
+ "check:api:update": "api-extractor run --local && api-extractor run --local --config api-extractor.i18n.json && api-extractor run --local --config api-extractor.events.json",
140
144
  "check:attw": "attw --pack . --profile esm-only --exclude-entrypoints ./styles.css",
141
145
  "check:isolation": "depcruise src",
142
146
  "check:publint": "publint",
@@ -144,9 +148,9 @@
144
148
  "check:size": "size-limit",
145
149
  "check:size:why": "size-limit --why",
146
150
  "dev": "pnpm run i18n:compile && tsdown --watch",
147
- "i18n:extract": "lingui extract --clean",
148
- "i18n:compile": "lingui compile --typescript",
149
- "i18n:check": "lingui extract --clean && git diff --exit-code -- src/shared/i18n/locales",
151
+ "i18n:extract": "lingui extract --clean && node scripts/codegen-source-keys.mjs",
152
+ "i18n:compile": "lingui compile --typescript && node scripts/codegen-source-keys.mjs",
153
+ "i18n:check": "lingui extract --clean && node scripts/codegen-source-keys.mjs && git diff --exit-code -- src/shared/i18n/locales",
150
154
  "test": "pnpm run i18n:compile && vitest --run",
151
155
  "test:coverage": "pnpm run i18n:compile && vitest --run --coverage",
152
156
  "test:watch": "pnpm run i18n:compile && vitest",
@@ -1,36 +0,0 @@
1
- import { ReceiveChainPayload, ReceiveTokenOptionPayload } from "../driver/payloads.js";
2
- import { RequestWithdrawalQuoteInput } from "../driver/types.js";
3
- import { ReactNode } from "react";
4
- //#region src/flows/withdraw/dialog/WithdrawDialogEventsContext.d.ts
5
- /**
6
- * Form-level event payload — the parsed amount the user typed, alongside the raw input string.
7
- * `numeric` is `null` when the input is empty or unparseable; the host can treat that as "user
8
- * cleared the amount" rather than re-parse the raw string.
9
- */
10
- interface AmountChangedPayload {
11
- raw: string;
12
- numeric: number | null;
13
- }
14
- /**
15
- * Form-level callbacks reading off `WithdrawForm`'s local state. Optional — hosts wiring
16
- * `<WithdrawDialog>` configure them via the `events` prop, hosts using `<WithdrawForm>` directly
17
- * pass them via the form's `events` prop.
18
- */
19
- interface WithdrawFormEventCallbacks {
20
- /** Fires on every recipient-input change (no debounce). */
21
- onRecipientChanged?: (value: string) => void;
22
- /** Fires on every amount-input change with both the raw string and the parsed numeric value. */
23
- onAmountChanged?: (payload: AmountChangedPayload) => void;
24
- /** Fires when the user picks a different receive token in the form's receive-token dropdown. */
25
- onReceiveTokenChanged?: (token: ReceiveTokenOptionPayload) => void;
26
- /** Fires when the user picks a different receive chain in the form's receive-chain dropdown. */
27
- onReceiveChainChanged?: (chain: ReceiveChainPayload) => void;
28
- /**
29
- * Fires when the form fires a fresh `requestQuote` (after the 400ms debounce). The input
30
- * carries everything the driver received so the host can mirror the request shape into
31
- * analytics or pre-warm host-side caches.
32
- */
33
- onQuoteRequested?: (input: RequestWithdrawalQuoteInput) => void;
34
- }
35
- //#endregion
36
- export { WithdrawFormEventCallbacks };
@@ -1 +0,0 @@
1
- "use client";import{createContext as e,use as t}from"react";import{jsx as n}from"react/jsx-runtime";const r=e({});r.displayName=`WithdrawDialogEventsContext`;function i({events:e,children:t}){return n(r,{value:e,children:t})}function a(){return t(r)}export{i as WithdrawDialogEventsProvider,a as useWithdrawDialogEvents};
@@ -1,17 +0,0 @@
1
- import { ProcessingStateActionsProps } from "../types.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
-
4
- //#region src/shared/widgets/processing-state/compound/components/Actions.d.ts
5
- /**
6
- * Action row with the primary "Close — we'll notify you" CTA. Rendered as a quiet/subdued button rather than the
7
- * accent fill, since dismiss during an in-flight credit is a soft action.
8
- *
9
- * Reads `onClose` and `closeLabel` from the {@link ProcessingState} root
10
- * by default; pass props to override per-instance.
11
- */
12
- declare function ProcessingStateActions({
13
- onClose,
14
- closeLabel
15
- }?: ProcessingStateActionsProps): _$react_jsx_runtime0.JSX.Element;
16
- //#endregion
17
- export { ProcessingStateActions };
@@ -1 +0,0 @@
1
- "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{MailIcon as t}from"../../../../icons/MailIcon.js";import"../../../../../icons/index.js";import{Button as n}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{text as r}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{useProcessingStateContext as i}from"../context.js";import{PROCESSING_STATE_SLOTS as a}from"../ProcessingState.slots.js";import{styles as o}from"../ProcessingState.styles.js";import{jsx as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";function l({onClose:l,closeLabel:u}={}){let d=i(`ProcessingState.Actions`),{_:f}=e(),p=l??d.onClose,m=u??d.closeLabel??f({id:`HfPDJV`,message:`Close — we'll notify you`}),h=typeof p==`function`;return s(`div`,{"data-stridge-slot":a.actions,...c.props(o.actions),children:s(n,{size:`cta`,variant:`secondary`,prefix:s(t,{"aria-hidden":!0}),onClick:h?p:void 0,...c.props(o.closeCta,h?o.closeCtaInteractive:o.closeCtaInert),children:s(r.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:m})})})}export{l as ProcessingStateActions};
@@ -1,29 +0,0 @@
1
- import { DepositDriver } from "../flows/deposit/driver/types.js";
2
- //#region src/stridge/StridgeContext.d.ts
3
- /**
4
- * Slim Stridge-specific context published by `<StridgeProvider />`. The driver itself is the
5
- * single source of entity data — components reach for `useDepositSnapshot()` to read brand / target /
6
- * addresses / balances / quote / settlement / wallet entities. This context exposes only the
7
- * driver instance + a readiness flag so consumers can branch on bootstrap state.
8
- */
9
- interface StridgeContextValue {
10
- /** `true` once the driver's bootstrap (`gateway/start` + `supportedAssets`) has resolved. */
11
- isReady: boolean;
12
- /** The active {@link DepositDriver} instance, when bootstrap completed. */
13
- driver: DepositDriver | undefined;
14
- }
15
- /**
16
- * Read the {@link StridgeContextValue} from the nearest `<StridgeProvider />`. Throws when no
17
- * provider is mounted. For BYO-driver hosts using `<KitProvider deposit={…} />` directly,
18
- * `useStridge` is not applicable — use {@link useOptionalStridge} when the same component may
19
- * render under either provider.
20
- */
21
- declare function useStridge(): StridgeContextValue;
22
- /**
23
- * Non-throwing variant of {@link useStridge}. Returns the context value when a
24
- * `<StridgeProvider />` is mounted above, or `null` when the component renders under a plain
25
- * `<KitProvider />`.
26
- */
27
- declare function useOptionalStridge(): StridgeContextValue | null;
28
- //#endregion
29
- export { useOptionalStridge, useStridge };
@@ -1 +0,0 @@
1
- "use client";import{createContext as e,use as t}from"react";const n=e(null);n.displayName=`StridgeContext`;function r(){let e=t(n);if(!e)throw Error(`useStridge: must be used inside a <StridgeProvider />. Hosts assembling a custom driver against <KitProvider /> should not call useStridge.`);return e}function i(){return t(n)}export{n as StridgeContext,i as useOptionalStridge,r as useStridge};