@stridge/kit 0.1.0-alpha.5 → 0.1.0-alpha.50

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 (394) 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/deposit/widgets/index.d.ts +3 -1
  5. package/dist/_internal/deposit/widgets/index.js +1 -1
  6. package/dist/_internal/drivers/stridge/index.d.ts +3 -2
  7. package/dist/_internal/drivers/stridge/index.js +1 -1
  8. package/dist/_internal/withdraw/driver/index.d.ts +2 -2
  9. package/dist/_internal/withdraw/widgets/index.d.ts +3 -1
  10. package/dist/_internal/withdraw/widgets/index.js +1 -1
  11. package/dist/activity-history/compound/index.d.ts +9 -0
  12. package/dist/activity-history/compound/index.js +1 -0
  13. package/dist/deposit/compound/index.d.ts +4 -3
  14. package/dist/drivers/stridge/catalog.d.ts +54 -0
  15. package/dist/drivers/stridge/catalog.js +1 -0
  16. package/dist/drivers/stridge/createStridgeDepositDriver.d.ts +10 -1
  17. package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
  18. package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +37 -14
  19. package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
  20. package/dist/drivers/stridge/internal/ensureWalletChain.js +1 -0
  21. package/dist/drivers/stridge/internal/pollOnce.js +1 -1
  22. package/dist/drivers/stridge/internal/resolveAddEthereumChain.js +1 -0
  23. package/dist/drivers/stridge/internal/retry.js +1 -0
  24. package/dist/drivers/stridge/internal/supportedChains.js +1 -0
  25. package/dist/drivers/stridge/types.d.ts +20 -14
  26. package/dist/drivers/stridge/types.js +1 -1
  27. package/dist/drivers/stridge/wagmiSigner.js +1 -1
  28. package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +4 -2
  29. package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
  30. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +17 -4
  31. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
  32. package/dist/drivers/stridge-mock/fixtures.d.ts +14 -12
  33. package/dist/drivers/stridge-mock/fixtures.js +1 -1
  34. package/dist/events/bus/createBus.d.ts +7 -0
  35. package/dist/events/bus/createBus.js +1 -0
  36. package/dist/events/bus/flowIdRegistry.d.ts +17 -0
  37. package/dist/events/bus/flowIdRegistry.js +1 -0
  38. package/dist/events/bus/index.js +1 -0
  39. package/dist/events/bus/metadata.js +1 -0
  40. package/dist/events/context.js +1 -0
  41. package/dist/events/emit/index.js +1 -0
  42. package/dist/events/emit/mapFailure.js +1 -0
  43. package/dist/events/emit/useDepositEmissions.js +1 -0
  44. package/dist/events/emit/useKitEmitter.js +1 -0
  45. package/dist/events/emit/useWithdrawEmissions.js +1 -0
  46. package/dist/events/hooks/index.d.ts +6 -0
  47. package/dist/events/hooks/index.js +1 -0
  48. package/dist/events/hooks/useCurrentFlowId.d.ts +6 -0
  49. package/dist/events/hooks/useCurrentFlowId.js +1 -0
  50. package/dist/events/hooks/useStableHandler.js +1 -0
  51. package/dist/events/hooks/useStridgeEvent.d.ts +8 -0
  52. package/dist/events/hooks/useStridgeEvent.js +1 -0
  53. package/dist/events/hooks/useStridgeEventBus.d.ts +33 -0
  54. package/dist/events/hooks/useStridgeEventBus.js +1 -0
  55. package/dist/events/hooks/useStridgeEvents.d.ts +6 -0
  56. package/dist/events/hooks/useStridgeEvents.js +1 -0
  57. package/dist/events/hooks/useStridgeFlowEvent.d.ts +8 -0
  58. package/dist/events/hooks/useStridgeFlowEvent.js +1 -0
  59. package/dist/events/hooks/useStridgeFlowEvents.d.ts +6 -0
  60. package/dist/events/hooks/useStridgeFlowEvents.js +1 -0
  61. package/dist/events/index.d.ts +14 -0
  62. package/dist/events/index.js +1 -0
  63. package/dist/events/publish.js +1 -0
  64. package/dist/events/types/deposit.d.ts +235 -0
  65. package/dist/events/types/envelope.d.ts +145 -0
  66. package/dist/events/types/index.d.ts +31 -0
  67. package/dist/events/types/kit.d.ts +23 -0
  68. package/dist/events/types/withdraw.d.ts +150 -0
  69. package/dist/flows/deposit/dialog/DepositDialog.d.ts +20 -82
  70. package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
  71. package/dist/flows/deposit/dialog/WalletRequiredState.js +1 -0
  72. package/dist/flows/deposit/dialog/WalletRequiredState.styles.js +1 -0
  73. package/dist/flows/deposit/driver/payloads.d.ts +17 -4
  74. package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.d.ts +2 -0
  75. package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.js +1 -1
  76. package/dist/flows/deposit/driver/transformers/index.d.ts +1 -0
  77. package/dist/flows/deposit/driver/transformers/quoteToPayload.d.ts +2 -0
  78. package/dist/flows/deposit/driver/transformers/settlementToPayload.d.ts +25 -0
  79. package/dist/flows/deposit/driver/transformers/startToAddressesPayload.d.ts +2 -0
  80. package/dist/flows/deposit/driver/transformers/startToAddressesPayload.js +1 -1
  81. package/dist/flows/deposit/driver/transformers/startToBrandPayload.d.ts +1 -0
  82. package/dist/flows/deposit/driver/transformers/startToTargetPayload.d.ts +2 -0
  83. package/dist/flows/deposit/driver/transformers/startToTargetPayload.js +1 -1
  84. package/dist/flows/deposit/driver/transformers/walletAddressToWalletPayload.d.ts +1 -0
  85. package/dist/flows/deposit/driver/types.d.ts +64 -3
  86. package/dist/flows/deposit/orchestrator/controller.js +1 -1
  87. package/dist/flows/deposit/orchestrator/reducer.js +1 -1
  88. package/dist/flows/deposit/orchestrator/types.d.ts +103 -1
  89. package/dist/flows/deposit/orchestrator/useDeposit.d.ts +45 -1
  90. package/dist/flows/deposit/orchestrator/useDeposit.js +1 -1
  91. package/dist/flows/deposit/widgets/activity-history/DepositHistoryDetail.d.ts +40 -0
  92. package/dist/flows/deposit/widgets/activity-history/DepositHistoryDetail.js +1 -0
  93. package/dist/flows/deposit/widgets/activity-history/DepositHistoryList.d.ts +38 -0
  94. package/dist/flows/deposit/widgets/activity-history/DepositHistoryList.js +1 -0
  95. package/dist/flows/deposit/widgets/activity-history/index.d.ts +2 -0
  96. package/dist/flows/deposit/widgets/activity-history/index.js +1 -0
  97. package/dist/flows/deposit/widgets/activity-history/useDepositActivityHistorySource.js +1 -0
  98. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.d.ts +32 -5
  99. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
  100. package/dist/flows/deposit/widgets/amount-entry/footerIntent.js +1 -0
  101. package/dist/flows/deposit/widgets/asset-picker/AssetPicker.d.ts +22 -4
  102. package/dist/flows/deposit/widgets/asset-picker/AssetPicker.js +1 -1
  103. package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.d.ts +37 -4
  104. package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -1
  105. package/dist/flows/deposit/widgets/deposit/Deposit.d.ts +33 -4
  106. package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
  107. package/dist/flows/deposit/widgets/deposit/compound/Deposit.d.ts +32 -0
  108. package/dist/flows/deposit/widgets/deposit/compound/Deposit.js +1 -1
  109. package/dist/flows/deposit/widgets/deposit/compound/Deposit.styles.js +1 -1
  110. package/dist/flows/deposit/widgets/deposit/compound/components/Boundary.d.ts +29 -0
  111. package/dist/flows/deposit/widgets/deposit/compound/components/Boundary.js +1 -0
  112. package/dist/flows/deposit/widgets/deposit/compound/components/Guards.d.ts +28 -0
  113. package/dist/flows/deposit/widgets/deposit/compound/components/Guards.js +1 -0
  114. package/dist/flows/deposit/widgets/deposit/compound/components/Header.d.ts +10 -0
  115. package/dist/flows/deposit/widgets/deposit/compound/components/Header.js +1 -1
  116. package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +6 -0
  117. package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -1
  118. package/dist/flows/deposit/widgets/deposit/compound/components/Steps.d.ts +24 -0
  119. package/dist/flows/deposit/widgets/deposit/compound/components/Steps.js +1 -0
  120. package/dist/flows/deposit/widgets/deposit/compound/index.d.ts +1 -0
  121. package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +6 -3
  122. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +41 -1
  123. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
  124. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -1
  125. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -1
  126. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -1
  127. package/dist/flows/deposit/widgets/deposit-status-banner/compound/types.d.ts +5 -5
  128. package/dist/flows/deposit/widgets/error-state/ErrorState.d.ts +39 -4
  129. package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -1
  130. package/dist/flows/deposit/widgets/processing-state/ProcessingState.d.ts +30 -4
  131. package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
  132. package/dist/flows/deposit/widgets/success-state/SuccessState.d.ts +38 -4
  133. package/dist/flows/deposit/widgets/success-state/SuccessState.js +1 -1
  134. package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.d.ts +34 -3
  135. package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.js +1 -1
  136. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.d.ts +1 -1
  137. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.styles.js +1 -1
  138. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -1
  139. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +5 -2
  140. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -1
  141. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.d.ts +5 -0
  142. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.js +1 -1
  143. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +4 -10
  144. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
  145. package/dist/flows/deposit/widgets/transfer-crypto/compound/types.d.ts +16 -2
  146. package/dist/flows/shared/transformers/computeQuoteAttrs.d.ts +1 -0
  147. package/dist/flows/shared/transformers/index.d.ts +1 -0
  148. package/dist/flows/shared/transformers/pickRelevantSettlement.d.ts +1 -0
  149. package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -1
  150. package/dist/flows/shared/transformers/testnets.js +1 -0
  151. package/dist/flows/withdraw/bindings/WithdrawBindings.d.ts +92 -0
  152. package/dist/flows/withdraw/bindings/WithdrawBindings.js +1 -0
  153. package/dist/flows/withdraw/bindings/index.d.ts +1 -0
  154. package/dist/flows/withdraw/bindings/index.js +1 -0
  155. package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +35 -71
  156. package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
  157. package/dist/flows/withdraw/driver/dto.d.ts +8 -7
  158. package/dist/flows/withdraw/driver/payloads.d.ts +16 -1
  159. package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -1
  160. package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -1
  161. package/dist/flows/withdraw/driver/types.d.ts +111 -14
  162. package/dist/flows/withdraw/orchestrator/controller.js +1 -1
  163. package/dist/flows/withdraw/orchestrator/index.d.ts +1 -1
  164. package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
  165. package/dist/flows/withdraw/orchestrator/types.d.ts +201 -32
  166. package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +36 -1
  167. package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -1
  168. package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryDetail.d.ts +39 -0
  169. package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryDetail.js +1 -0
  170. package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryList.d.ts +36 -0
  171. package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryList.js +1 -0
  172. package/dist/flows/withdraw/widgets/activity-history/index.d.ts +2 -0
  173. package/dist/flows/withdraw/widgets/activity-history/index.js +1 -0
  174. package/dist/flows/withdraw/widgets/activity-history/useWithdrawActivityHistorySource.js +1 -0
  175. package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.d.ts +60 -0
  176. package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.js +1 -0
  177. package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.slots.d.ts +13 -0
  178. package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.slots.js +1 -0
  179. package/dist/flows/withdraw/widgets/withdraw/compound/components/Boundary.d.ts +29 -0
  180. package/dist/flows/withdraw/widgets/withdraw/compound/components/Boundary.js +1 -0
  181. package/dist/flows/withdraw/widgets/withdraw/compound/components/Guards.d.ts +25 -0
  182. package/dist/flows/withdraw/widgets/withdraw/compound/components/Guards.js +1 -0
  183. package/dist/flows/withdraw/widgets/withdraw/compound/components/Steps.d.ts +27 -0
  184. package/dist/flows/withdraw/widgets/withdraw/compound/components/Steps.js +1 -0
  185. package/dist/flows/withdraw/widgets/withdraw/compound/index.d.ts +3 -0
  186. package/dist/flows/withdraw/widgets/withdraw/compound/index.js +1 -0
  187. package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.d.ts +45 -2
  188. package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.js +1 -1
  189. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.d.ts +32 -12
  190. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -1
  191. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -1
  192. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.d.ts +6 -1
  193. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.js +1 -1
  194. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +7 -5
  195. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
  196. package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +15 -5
  197. package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -1
  198. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +39 -3
  199. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -1
  200. package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.d.ts +46 -2
  201. package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js +1 -1
  202. package/dist/i18n/index.d.ts +5 -4
  203. package/dist/i18n/index.js +1 -1
  204. package/dist/i18n/locales/ar.js +1 -1
  205. package/dist/i18n/locales/es.js +1 -1
  206. package/dist/i18n/locales/source-keys.d.ts +12 -0
  207. package/dist/i18n/locales/source-keys.js +0 -0
  208. package/dist/icons/index.d.ts +3 -1
  209. package/dist/icons/index.js +1 -1
  210. package/dist/index.d.ts +22 -9
  211. package/dist/index.js +1 -1
  212. package/dist/package.js +1 -1
  213. package/dist/scope/KitPortalScope.js +1 -1
  214. package/dist/scope/KitScope.d.ts +18 -1
  215. package/dist/scope/KitScope.js +1 -1
  216. package/dist/scope/context.d.ts +17 -1
  217. package/dist/scope/index.d.ts +1 -1
  218. package/dist/shared/attribution/Attribution.js +1 -0
  219. package/dist/shared/attribution/Attribution.slots.js +1 -0
  220. package/dist/shared/attribution/Attribution.styles.js +1 -0
  221. package/dist/shared/attribution/index.js +1 -0
  222. package/dist/shared/chains/index.d.ts +48 -29
  223. package/dist/shared/chains/index.js +1 -1
  224. package/dist/shared/constants/brand-intercom.js +1 -0
  225. package/dist/shared/cuer/Cuer.js +1 -1
  226. package/dist/shared/dialog/Frame.js +1 -1
  227. package/dist/shared/dialog/LoadingState.js +1 -0
  228. package/dist/shared/dialog/LoadingState.styles.js +1 -0
  229. package/dist/shared/dialog/StepTransition.js +1 -1
  230. package/dist/shared/dialog/useDirectionalChevronTransform.js +1 -1
  231. package/dist/shared/driver/types.d.ts +4 -3
  232. package/dist/shared/i18n/KitI18nProvider.d.ts +11 -8
  233. package/dist/shared/i18n/KitI18nProvider.js +1 -1
  234. package/dist/shared/i18n/createKitI18n.d.ts +79 -16
  235. package/dist/shared/i18n/createKitI18n.js +1 -1
  236. package/dist/shared/i18n/useLingui.d.ts +11 -3
  237. package/dist/shared/icons/HistoryIcon.d.ts +12 -0
  238. package/dist/shared/icons/HistoryIcon.js +1 -0
  239. package/dist/shared/icons/LogoIcon.d.ts +13 -0
  240. package/dist/shared/icons/LogoIcon.js +1 -0
  241. package/dist/shared/merchant-link/MerchantLink.d.ts +1 -0
  242. package/dist/shared/merchant-link/MerchantLink.js +1 -0
  243. package/dist/shared/merchant-link/MerchantLinkButton.d.ts +1 -0
  244. package/dist/shared/merchant-link/MerchantLinkButton.js +1 -0
  245. package/dist/shared/merchant-link/index.d.ts +1 -0
  246. package/dist/shared/merchant-link/index.js +1 -0
  247. package/dist/shared/merchant-link/resolveMerchantLink.js +1 -0
  248. package/dist/shared/orchestrator/useSettlementWatcher.js +1 -1
  249. package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -1
  250. package/dist/shared/support/SupportConfigContext.d.ts +1 -0
  251. package/dist/shared/support/SupportConfigContext.js +1 -0
  252. package/dist/shared/support/SupportLink.d.ts +1 -0
  253. package/dist/shared/support/SupportLink.js +1 -0
  254. package/dist/shared/support/SupportSpinner.d.ts +1 -0
  255. package/dist/shared/support/SupportSpinner.js +1 -0
  256. package/dist/shared/support/index.d.ts +2 -0
  257. package/dist/shared/support/index.js +1 -0
  258. package/dist/shared/support/intercom-loader.d.ts +17 -0
  259. package/dist/shared/support/intercom-loader.js +1 -0
  260. package/dist/shared/support/types.d.ts +43 -0
  261. package/dist/shared/support/useIntercomMerchantContext.d.ts +27 -0
  262. package/dist/shared/support/useIntercomMerchantContext.js +1 -0
  263. package/dist/shared/support/useIntercomShutdownOnUnmount.js +1 -0
  264. package/dist/shared/support/useMerchantContext.d.ts +1 -0
  265. package/dist/shared/support/useMerchantContext.js +1 -0
  266. package/dist/shared/support/useSupportTrigger.js +1 -0
  267. package/dist/shared/terms/TermsConfigContext.d.ts +1 -0
  268. package/dist/shared/terms/TermsConfigContext.js +1 -0
  269. package/dist/shared/terms/TermsLink.d.ts +1 -0
  270. package/dist/shared/terms/TermsLink.js +1 -0
  271. package/dist/shared/terms/index.d.ts +1 -0
  272. package/dist/shared/terms/index.js +1 -0
  273. package/dist/shared/terms/types.d.ts +43 -0
  274. package/dist/shared/ui/Card/Card.styles.js +1 -1
  275. package/dist/shared/ui/Details/Details.d.ts +9 -1
  276. package/dist/shared/ui/Details/Details.styles.js +1 -1
  277. package/dist/shared/ui/Dialog/Dialog.js +1 -1
  278. package/dist/shared/ui/Dialog/Dialog.styles.js +1 -1
  279. package/dist/shared/ui/Select/Select.js +1 -1
  280. package/dist/shared/ui/SelectableTile/SelectableTile.d.ts +21 -8
  281. package/dist/shared/ui/SelectableTile/SelectableTile.js +1 -1
  282. package/dist/shared/ui/Steps/Steps.d.ts +52 -0
  283. package/dist/shared/ui/Steps/Steps.js +1 -0
  284. package/dist/shared/ui/Steps/Steps.slots.d.ts +7 -0
  285. package/dist/shared/ui/Steps/Steps.slots.js +1 -0
  286. package/dist/shared/ui/Steps/Steps.styles.js +1 -0
  287. package/dist/shared/ui/Steps/index.d.ts +2 -0
  288. package/dist/shared/ui/Steps/index.js +1 -0
  289. package/dist/shared/ui/WalletRow/WalletRow.d.ts +1 -1
  290. package/dist/shared/ui/WalletRow/WalletRow.js +1 -1
  291. package/dist/shared/utils/logos/types.d.ts +1 -1
  292. package/dist/shared/utils/useDeepMemo.js +1 -0
  293. package/dist/shared/wallet/ConnectWalletContext.d.ts +17 -0
  294. package/dist/shared/wallet/ConnectWalletContext.js +1 -0
  295. package/dist/shared/widgets/activity-history/ActivityTrigger.js +1 -0
  296. package/dist/shared/widgets/activity-history/ActivityTrigger.styles.js +1 -0
  297. package/dist/shared/widgets/activity-history/adapters/settlementToWidgetProps.js +1 -0
  298. package/dist/shared/widgets/activity-history/compound/ActivityHistory.d.ts +95 -0
  299. package/dist/shared/widgets/activity-history/compound/ActivityHistory.js +1 -0
  300. package/dist/shared/widgets/activity-history/compound/ActivityHistory.slots.d.ts +22 -0
  301. package/dist/shared/widgets/activity-history/compound/ActivityHistory.slots.js +1 -0
  302. package/dist/shared/widgets/activity-history/compound/ActivityHistory.styles.js +1 -0
  303. package/dist/shared/widgets/activity-history/compound/ActivityHistoryDetail.d.ts +75 -0
  304. package/dist/shared/widgets/activity-history/compound/ActivityHistoryDetail.js +1 -0
  305. package/dist/shared/widgets/activity-history/compound/Row.slots.d.ts +21 -0
  306. package/dist/shared/widgets/activity-history/compound/Row.slots.js +1 -0
  307. package/dist/shared/widgets/activity-history/compound/Row.styles.js +1 -0
  308. package/dist/shared/widgets/activity-history/compound/components/Empty.d.ts +15 -0
  309. package/dist/shared/widgets/activity-history/compound/components/Empty.js +1 -0
  310. package/dist/shared/widgets/activity-history/compound/components/ErrorView.d.ts +26 -0
  311. package/dist/shared/widgets/activity-history/compound/components/ErrorView.js +1 -0
  312. package/dist/shared/widgets/activity-history/compound/components/HistoryHeader.d.ts +39 -0
  313. package/dist/shared/widgets/activity-history/compound/components/HistoryHeader.js +1 -0
  314. package/dist/shared/widgets/activity-history/compound/components/List.d.ts +23 -0
  315. package/dist/shared/widgets/activity-history/compound/components/List.js +1 -0
  316. package/dist/shared/widgets/activity-history/compound/components/Row.d.ts +54 -0
  317. package/dist/shared/widgets/activity-history/compound/components/Row.js +1 -0
  318. package/dist/shared/widgets/activity-history/compound/components/StatusPip.js +1 -0
  319. package/dist/shared/widgets/activity-history/compound/context.d.ts +79 -0
  320. package/dist/shared/widgets/activity-history/compound/context.js +1 -0
  321. package/dist/shared/widgets/activity-history/index.js +1 -0
  322. package/dist/shared/widgets/activity-history/payloads.d.ts +81 -0
  323. package/dist/shared/widgets/activity-history/transformers/historyResponseToPayload.js +1 -0
  324. package/dist/shared/widgets/activity-history/transformers/resolveDirection.js +1 -0
  325. package/dist/shared/widgets/amount-entry/compound/AmountEntry.d.ts +4 -1
  326. package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -1
  327. package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.d.ts +1 -0
  328. package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.js +1 -1
  329. package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -1
  330. package/dist/shared/widgets/amount-entry/compound/components/Header.d.ts +6 -1
  331. package/dist/shared/widgets/amount-entry/compound/components/Header.js +1 -1
  332. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
  333. package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -1
  334. package/dist/shared/widgets/amount-entry/compound/components/Notice.d.ts +7 -0
  335. package/dist/shared/widgets/amount-entry/compound/components/Notice.js +1 -0
  336. package/dist/shared/widgets/amount-entry/compound/types.d.ts +26 -1
  337. package/dist/shared/widgets/asset-picker/compound/AssetPicker.js +1 -1
  338. package/dist/shared/widgets/asset-picker/compound/AssetPicker.styles.js +1 -1
  339. package/dist/shared/widgets/asset-picker/compound/components/Asset.d.ts +7 -1
  340. package/dist/shared/widgets/asset-picker/compound/components/Asset.js +1 -1
  341. package/dist/shared/widgets/asset-picker/compound/components/Header.d.ts +6 -1
  342. package/dist/shared/widgets/asset-picker/compound/components/Header.js +1 -1
  343. package/dist/shared/widgets/asset-picker/compound/types.d.ts +14 -0
  344. package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.js +1 -1
  345. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +4 -3
  346. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -1
  347. package/dist/shared/widgets/confirm-transfer/compound/components/QuoteTimer.js +1 -1
  348. package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -1
  349. package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -1
  350. package/dist/shared/widgets/error-state/compound/components/MoreDetails.d.ts +1 -1
  351. package/dist/shared/widgets/error-state/compound/components/MoreDetails.js +1 -1
  352. package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -1
  353. package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +1 -5
  354. package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -1
  355. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +0 -1
  356. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -1
  357. package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -1
  358. package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +6 -1
  359. package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -1
  360. package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +4 -3
  361. package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -1
  362. package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +14 -7
  363. package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -1
  364. package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -1
  365. package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -1
  366. package/dist/shared/widgets/processing-state/compound/components/splitAmount.js +1 -0
  367. package/dist/shared/widgets/processing-state/compound/index.d.ts +1 -1
  368. package/dist/shared/widgets/processing-state/compound/types.d.ts +11 -29
  369. package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -1
  370. package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -1
  371. package/dist/shared/widgets/success-state/compound/components/MoreDetails.d.ts +1 -1
  372. package/dist/shared/widgets/success-state/compound/components/MoreDetails.js +1 -1
  373. package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -1
  374. package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -1
  375. package/dist/shared/widgets/success-state/compound/types.d.ts +5 -5
  376. package/dist/stridge/StridgeProvider.d.ts +165 -35
  377. package/dist/stridge/StridgeProvider.js +1 -1
  378. package/dist/stridge/depositOwner.js +1 -0
  379. package/dist/stridge/optionalWagmi.js +1 -0
  380. package/dist/stridge/stubs.js +1 -1
  381. package/dist/styles/index.css +228 -10
  382. package/dist/types.d.ts +5 -4
  383. package/dist/ui/index.d.ts +3 -1
  384. package/dist/ui/index.js +1 -1
  385. package/dist/withdraw/compound/index.d.ts +5 -2
  386. package/dist/withdraw/compound/index.js +1 -1
  387. package/dist/withdraw/dialog/index.d.ts +3 -1
  388. package/package.json +15 -7
  389. package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.d.ts +0 -36
  390. package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.js +0 -1
  391. package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +0 -17
  392. package/dist/shared/widgets/processing-state/compound/components/Actions.js +0 -1
  393. package/dist/stridge/StridgeContext.d.ts +0 -29
  394. package/dist/stridge/StridgeContext.js +0 -1
@@ -1 +1 @@
1
- const e=JSON.parse(`{"--OGth":["Depósito exitoso"],"-nuEh_":["Tiempo estimado"],"-tu7Q8":["Más sobre ",["0"]],"02NghK":["Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration."],"0eg2g7":["Estimando gas…"],"0lHlRj":["En tránsito"],"2Eoi_a":["Ver detalles"],"3dqPLT":["Transferir cripto"],"3eKjkO":["Depósito mínimo de ",["formattedMin"]],"3kg1gB":["Depósito completado"],"3yd3IL":["The deposit driver failed to load gateway configuration."],"5joj8M":["Desglose de la transacción"],"60ahSE":["Tx del retiro"],"69Gavs":["Technical details"],"6D8qH6":["Envía el token seleccionado en la red elegida a esta dirección. Los fondos aparecerán en tu cuenta cuando la red confirme la transferencia."],"6RDwJM":["Tokens"],"7Bj3x9":["Fallido"],"7evBec":["Tiempo de procesamiento: ",["resolvedProcessingTime"]],"88cUW-":["Recibes"],"8Fcmiu":["Usar la dirección de la billetera conectada"],"9JHY2T":["Tu depósito se acreditó en tu cuenta."],"9cCjMJ":["Depositar saldo máximo"],"< 1 min":["< 1 min"],"AO44G_":["Ver recibo"],"AOPSKq":["Depositar ",["0"]],"AWtGgd":["Obtener ayuda"],"AeXO77":["Cuenta"],"AeZIvT":["Recibirás"],"AikETk":["Mín ",["minDeposit"]],"CK1KXz":["Máx"],"Ck1xL4":["Envías"],"D79cZK":["Instantáneo"],"DPfwMq":["Listo"],"Dd7jP5":["¿Tienes problemas?"],"DoS2vD":["Ocultar detalles técnicos"],"ELhVSL":["Failed to submit deposit."],"Ej5HL9":["Signature declined. Please try again."],"Enslfm":["Destino"],"G-SK3q":["El kit encontró un error inesperado y no pudo terminar de renderizar. Vuelve a intentarlo, o cierra este diálogo y reinténtalo desde la aplicación."],"GX8GKD":["Activos"],"GZPxmc":["Enter Valid Recipient Address"],"GcuGHR":["Acreditado a ",["captionSuffix"]],"GwkmPx":["Cambiar el importe mostrado"],"HfPDJV":["Cerrar — te notificaremos"],"IDt4jm":[["0","plural",{"one":["#"," second"],"other":["#"," seconds"]}]," left on quote"],"IRogzB":["Tu depósito se acreditó a ",["brand"],"."],"KDw4GX":["Reintentar"],"KGoAE6":["Auto · ",["value"]],"KTNWsg":["El retiro falló"],"KuqCAK":["~ 2 min"],"LEbOpR":["Más detalles"],"Ly6geA":["Regenerando cotización…"],"MZ_nQf":["Dirección del destinatario"],"N2DUxS":["Insufficient Balance"],"OLF0i7":["Couldn't load deposit options"],"Offl0a":["Tu depósito se acreditará en tu cuenta."],"Oi8TiZ":["Ver progreso"],"OsyKSt":["Retirar"],"P9fBwv":["Stack"],"PiH3UR":["¡Copiado!"],"Q12Rrs":["Tx depósito"],"QU2cIs":["¿Tienes preguntas?"],"Rxjdjn":["El depósito no se completó"],"SOVBoe":["Copiar dirección de depósito"],"SZRUQ4":["Deslizamiento máximo"],"Sjplg3":["Ver en el explorador"],"SlfejT":["Error"],"TG4WOd":["Tu depósito se acreditará a ",["brand"],"."],"TT0aVH":["Orden enviada"],"Uevt3L":["Estimando cotización"],"UqHbdz":["Descartar aviso de depósito pendiente"],"V1fa9u":["Ver más"],"VAZUpd":["Orden fallida"],"WkRH60":["Mín ",["0"]],"Wqz0SO":["Saldo bajo"],"Z1WbO6":["Los fondos están seguros en la red de origen — contacta a soporte para recuperarlos."],"ZqugiS":["Saldo: ",["0"]," ",["1"]],"_girqu":["Retiro exitoso"],"_kXBrK":["Tiempo total"],"a2WllD":["Token a recibir"],"aiEUrg":["Mostrar detalles técnicos"],"bOZXx5":["Actualizar orden"],"bZnukT":["Costo de red"],"c6Bl9M":["Toggle technical details"],"cGYrpE":["Aplican términos"],"cHPbBJ":["El puente no pudo financiar la transacción de destino (presupuesto de gas agotado)."],"cxR5Qy":["Tx liquidación"],"e3xU5E":["Depósito recibido"],"fKSGnu":["Cantidad mínima requerida para que esta red cubra las tarifas y el enrutamiento."],"fWsBTs":["Algo salió mal. Vuelve a intentarlo."],"flMR3h":["Tus fondos fueron retirados con éxito."],"gfh8CC":["Redes"],"hKMHs1":["Diferencia entre el resultado esperado de la ruta y el precio medio de mercado subyacente."],"he3ygx":["Copiar"],"hehnjM":["Monto"],"i-4Fbp":["Depósito fallido"],"i-EgW-":["El costo estimado para emitir esta transacción en la red de destino."],"iH8pgl":["Atrás"],"junZX6":["Depósito recibido y procesando…"],"kH6wUX":["Impacto en precio"],"kR8ayx":["Al hacer clic en Confirmar depósito, aceptas nuestros <0>términos</0>."],"kUFhUv":["Withdrawal failed."],"kj3M8S":["Depositar"],"kjrq_8":["Más información"],"lOEm_1":["Orden completada"],"ldK3jJ":["Failed to submit withdrawal."],"lxjao1":["La ruta de liquidez seleccionada para liquidar este retiro."],"mgLWEL":["La transacción del tramo de destino se revirtió en cadena."],"mvYQx_":["Detectado"],"njn4bC":["Confirma la transacción en tu billetera"],"nr03QI":["Ingresa la dirección del destinatario"],"nwtY4N":["Algo salió mal"],"oBNGNc":["The route's expected output drifted while your transaction was pending."],"oFmN8a":["Depositar ",["symbol"]],"oW1G8i":["Tus fondos se depositaron correctamente."],"ob8R_m":["Inténtalo nuevamente o contáctanos si el problema persiste."],"ogD_nm":["Depositar a ",["0"]],"olEUh2":["Exitoso"],"pCzTTC":["Tu dirección de depósito"],"q32Nt8":["Retiro completado"],"qQ5VJt":["We can't reach the gateway right now"],"qj0vvX":["Confirmar depósito"],"qtoOYG":["Sin límite"],"rT8e1f":["Ruta"],"rZdp61":["Tx finalización"],"sSiLKx":["Red a recibir"],"sb9Y58":["Billetera"],"sbwbC0":["Método de pago"],"uPo3PQ":["Ver menos"],"vrnnn9":["Procesando"],"w-2VR9":["Retiro en curso…"],"wdxz7K":["Origen"],"xDAtGP":["Message"],"xGVfLh":["Continuar"],"yH9V_J":["Ingresa el monto"],"yrvWai":["Tx origen"],"yxnt3y":["Estado de ejecución"],"yy2rkt":["0x…"],"yz7wBu":["Cerrar"],"zYD5xm":["Acreditando"],"zbtijb":["Depositar ",["0"]," a ",["1"]],"znqB4T":["Saldo insuficiente"],"{hours} hr":[["hours"]," h"],"{minutes} min":[["minutes"]," min"],"{n}h":[["n"],"h"],"{n}m":[["n"],"m"],"{n}s":[["n"],"s"]}`);export{e as messages};
1
+ const e=JSON.parse(`{"--OGth":["Depósito exitoso"],"-I_tc5":["Max ",["formattedCap"]],"-nuEh_":["Tiempo estimado"],"-tu7Q8":["Más sobre ",["0"]],"02NghK":["Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration."],"0eg2g7":["Estimando gas…"],"0lHlRj":["En tránsito"],"2Eoi_a":["Ver detalles"],"3dqPLT":["Transferir cripto"],"3eKjkO":["Depósito mínimo de ",["formattedMin"]],"3kg1gB":["Depósito completado"],"3yd3IL":["The deposit driver failed to load gateway configuration."],"5AApJw":["Conecta una billetera para continuar"],"5joj8M":["Desglose de la transacción"],"60ahSE":["Tx del retiro"],"69Gavs":["Technical details"],"6D8qH6":["Envía el token seleccionado en la red elegida a esta dirección. Los fondos aparecerán en tu cuenta cuando la red confirme la transferencia."],"6RDwJM":["Tokens"],"7Bj3x9":["Fallido"],"7evBec":["Tiempo de procesamiento: ",["resolvedProcessingTime"]],"88cUW-":["Recibes"],"9JHY2T":["Tu depósito se acreditó en tu cuenta."],"9XIJb8":["T…"],"9cCjMJ":["Depositar saldo máximo"],"< 1 min":["< 1 min"],"AHyker":["Max ",["0"]],"AO44G_":["Ver recibo"],"AOPSKq":["Depositar ",["0"]],"AWtGgd":["Obtener ayuda"],"AeXO77":["Cuenta"],"AeZIvT":["Recibirás"],"AikETk":["Mín ",["minDeposit"]],"B-4zEC":["Couldn't load activity. Please try again."],"BhQhbU":["Usar la dirección sugerida del destinatario"],"BoQOH3":["Se requiere una billetera para depositar"],"CK1KXz":["Máx"],"Ck1xL4":["Envías"],"D79cZK":["Instantáneo"],"DPfwMq":["Listo"],"Dd7jP5":["¿Tienes problemas?"],"Deposit completed":["Deposit completed"],"Deposit failed":["Deposit failed"],"Deposit in progress":["Deposit in progress"],"Deposit of {amount}, {date}":["Deposit of ",["amount"],", ",["date"]],"DoS2vD":["Ocultar detalles técnicos"],"ELhVSL":["Failed to submit deposit."],"Ej5HL9":["Signature declined. Please try again."],"Enslfm":["Destino"],"G-SK3q":["El kit encontró un error inesperado y no pudo terminar de renderizar. Vuelve a intentarlo, o cierra este diálogo y reinténtalo desde la aplicación."],"GX8GKD":["Activos"],"GZPxmc":["Enter Valid Recipient Address"],"GcuGHR":["Acreditado a ",["captionSuffix"]],"GwkmPx":["Cambiar el importe mostrado"],"IDt4jm":[["0","plural",{"one":["#"," second"],"other":["#"," seconds"]}]," left on quote"],"IRogzB":["Tu depósito se acreditó a ",["brand"],"."],"Just now":["Just now"],"KDw4GX":["Reintentar"],"KGoAE6":["Auto · ",["value"]],"KTNWsg":["El retiro falló"],"KuqCAK":["~ 2 min"],"LEbOpR":["Más detalles"],"Ly6geA":["Regenerando cotización…"],"MZ_nQf":["Dirección del destinatario"],"N2DUxS":["Insufficient Balance"],"OLF0i7":["Couldn't load deposit options"],"Offl0a":["Tu depósito se acreditará en tu cuenta."],"Oi8TiZ":["Ver progreso"],"OsyKSt":["Retirar"],"P9fBwv":["Stack"],"PiH3UR":["¡Copiado!"],"Q12Rrs":["Tx depósito"],"QU2cIs":["¿Tienes preguntas?"],"Rxjdjn":["El depósito no se completó"],"SOVBoe":["Copiar dirección de depósito"],"SZRUQ4":["Deslizamiento máximo"],"Sjplg3":["Ver en el explorador"],"SlfejT":["Error"],"TG4WOd":["Tu depósito se acreditará a ",["brand"],"."],"TT0aVH":["Orden enviada"],"Uevt3L":["Estimando cotización"],"UqHbdz":["Descartar aviso de depósito pendiente"],"V1fa9u":["Ver más"],"VAZUpd":["Orden fallida"],"VHOVEJ":["Conectar billetera"],"Vj6_6B":["View activity history"],"Withdrawal completed":["Withdrawal completed"],"Withdrawal failed":["Withdrawal failed"],"Withdrawal in progress":["Withdrawal in progress"],"Withdrawal of {amount}, {date}":["Withdrawal of ",["amount"],", ",["date"]],"WkRH60":["Mín ",["0"]],"Wqz0SO":["Saldo bajo"],"XJOV1Y":["Activity"],"XdtTGf":["Activity details"],"Xzw7uC":["Your deposits and withdrawals will appear here."],"Yesterday":["Yesterday"],"Z1WbO6":["Los fondos están seguros en la red de origen — contacta a soporte para recuperarlos."],"ZqugiS":["Saldo: ",["0"]," ",["1"]],"_QZdX-":["Your withdrawal was completed successfully."],"_girqu":["Retiro exitoso"],"_kXBrK":["Tiempo total"],"a2WllD":["Token a recibir"],"aXFOuf":["No activity yet"],"aiEUrg":["Mostrar detalles técnicos"],"bOZXx5":["Actualizar orden"],"bZnukT":["Costo de red"],"c6Bl9M":["Toggle technical details"],"cGYrpE":["Aplican términos"],"cHPbBJ":["El puente no pudo financiar la transacción de destino (presupuesto de gas agotado)."],"cxR5Qy":["Tx liquidación"],"e3xU5E":["Depósito recibido"],"fKSGnu":["Cantidad mínima requerida para que esta red cubra las tarifas y el enrutamiento."],"fWsBTs":["Algo salió mal. Vuelve a intentarlo."],"flMR3h":["Tus fondos fueron retirados con éxito."],"g2UNkE":["Con tecnología de"],"gfh8CC":["Redes"],"hKMHs1":["Diferencia entre el resultado esperado de la ruta y el precio medio de mercado subyacente."],"he3ygx":["Copiar"],"hehnjM":["Monto"],"i-4Fbp":["Depósito fallido"],"i-EgW-":["El costo estimado para emitir esta transacción en la red de destino."],"iH8pgl":["Atrás"],"junZX6":["Depósito recibido y procesando…"],"kH6wUX":["Impacto en precio"],"kR8ayx":["Al hacer clic en Confirmar depósito, aceptas nuestros <0>términos</0>."],"kUFhUv":["Withdrawal failed."],"kj3M8S":["Depositar"],"kjrq_8":["Más información"],"lOEm_1":["Orden completada"],"ldK3jJ":["Failed to submit withdrawal."],"lxjao1":["La ruta de liquidez seleccionada para liquidar este retiro."],"mF_ucv":["Conecta una billetera para que el gateway pueda provisionar una dirección de depósito y enrutar tu transferencia."],"mgLWEL":["La transacción del tramo de destino se revirtió en cadena."],"mvYQx_":["Detectado"],"njn4bC":["Confirma la transacción en tu billetera"],"nr03QI":["Ingresa la dirección del destinatario"],"nwtY4N":["Algo salió mal"],"oBNGNc":["The route's expected output drifted while your transaction was pending."],"oFmN8a":["Depositar ",["symbol"]],"oW1G8i":["Tus fondos se depositaron correctamente."],"ob8R_m":["Inténtalo nuevamente o contáctanos si el problema persiste."],"ogD_nm":["Depositar a ",["0"]],"olEUh2":["Exitoso"],"pCzTTC":["Tu dirección de depósito"],"q32Nt8":["Retiro completado"],"qQ5VJt":["We can't reach the gateway right now"],"qj0vvX":["Confirmar depósito"],"qtoOYG":["Sin límite"],"rT8e1f":["Ruta"],"rZdp61":["Tx finalización"],"sSiLKx":["Red a recibir"],"sb9Y58":["Billetera"],"sbwbC0":["Método de pago"],"srsA0x":["Withdrawal declined."],"uPo3PQ":["Ver menos"],"vrnnn9":["Procesando"],"w-2VR9":["Retiro en curso…"],"wdxz7K":["Origen"],"xDAtGP":["Message"],"xGVfLh":["Continuar"],"yH9V_J":["Ingresa el monto"],"yLEjmm":[["resolvedPriceImpact"],"% price impact"],"yQE2r9":["Cargando"],"yrvWai":["Tx origen"],"yxnt3y":["Estado de ejecución"],"yy2rkt":["0x…"],"yz7wBu":["Cerrar"],"zYD5xm":["Acreditando"],"zbtijb":["Depositar ",["0"]," a ",["1"]],"znqB4T":["Saldo insuficiente"],"{hours} hr":[["hours"]," h"],"{minutes} min":[["minutes"]," min"],"{n}h":[["n"],"h"],"{n}m":[["n"],"m"],"{n}s":[["n"],"s"]}`);export{e as messages};
@@ -0,0 +1,12 @@
1
+ //#region src/shared/i18n/locales/source-keys.d.ts
2
+ /**
3
+ * Auto-generated by `scripts/codegen-source-keys.mjs` from `en.po`. Do not edit by hand —
4
+ * re-run `pnpm --filter @stridge/kit run i18n:compile` after changing translatable strings.
5
+ *
6
+ * String literal union of every English source the kit uses in `<Trans>` / `t` macros. Acts
7
+ * as the typed contract for {@link defineMessages}: callers get autocomplete on every key the
8
+ * kit translates, and unknown keys fail at compile time via excess-property checks.
9
+ */
10
+ type KitTranslatableKey = "0x…" | "< 1 min" | "A wallet is required to deposit" | "Account" | "Activity" | "Activity details" | "Amount" | "Assets" | "Auto · {value}" | "Back" | "Balance: {0} {1}" | "By clicking Confirm Deposit, you agree to our <0>terms</0>." | "Chains" | "Close" | "Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration." | "Completion tx" | "Confirm Deposit" | "Confirm transaction in your wallet" | "Connect a wallet so the gateway can provision a deposit address and route your transfer." | "Connect a wallet to continue" | "Connect wallet" | "Continue" | "Copied!" | "Copy" | "Copy deposit address" | "Couldn't load activity. Please try again." | "Couldn't load deposit options" | "Credited to {captionSuffix}" | "Crediting" | "Deposit" | "Deposit completed" | "Deposit didn't complete" | "Deposit failed" | "Deposit in progress" | "Deposit max balance" | "Deposit of {amount}, {date}" | "Deposit received" | "Deposit received and processing…" | "Deposit successful" | "Deposit to {0}" | "Deposit tx" | "Deposit {0}" | "Deposit {0} to {1}" | "Deposit {symbol}" | "Destination" | "Detected" | "Difference between the route's expected output and the underlying market mid-price." | "Dismiss pending deposit notice" | "Done" | "Enter Amount" | "Enter Recipient Address" | "Enter Valid Recipient Address" | "Error" | "Estimated time" | "Estimating gas…" | "Estimating quote" | "Experiencing problems?" | "Failed" | "Failed to submit deposit." | "Failed to submit withdrawal." | "Fill status" | "Funds are safe on the source chain — contact support to recover." | "Get help" | "Have questions?" | "Hide technical details" | "In transit" | "Instant" | "Insufficient Balance" | "Insufficient balance" | "Just now" | "Loading" | "Low Balance" | "Max" | "Max slippage" | "Max {0}" | "Max {formattedCap}" | "Message" | "Min {0}" | "Min {minDeposit}" | "More about {0}" | "More details" | "More information" | "Network cost" | "No activity yet" | "No limit" | "Order failed" | "Order filled" | "Order submitted" | "Payment Method" | "Please try again or contact us if the issue persists." | "Powered by" | "Price impact" | "Processing" | "Processing time: {resolvedProcessingTime}" | "Receive chain" | "Receive token" | "Recipient address" | "Regenerating quote…" | "Route" | "See less" | "See more" | "Send the selected token on the selected chain to this address. Funds appear in your account once the network confirms the transfer." | "Settlement tx" | "Show technical details" | "Signature declined. Please try again." | "Something went wrong" | "Something went wrong. Please try again." | "Source" | "Source tx" | "Stack" | "Successful" | "Swap displayed amount" | "Technical details" | "Terms apply" | "The bridge could not fund the destination transaction (gas budget exhausted)." | "The deposit driver failed to load gateway configuration." | "The destination-leg transaction reverted on-chain." | "The estimated cost to broadcast this transaction on the destination chain." | "The kit hit an unexpected error and could not finish rendering. Try again, or close this dialog and retry from the host." | "The minimum amount required for this chain to cover network fees and routing." | "The route's expected output drifted while your transaction was pending." | "The selected liquidity route used to settle this withdrawal." | "Toggle technical details" | "Tokens" | "Total time" | "Transaction breakdown" | "Transfer Crypto" | "Try again" | "T…" | "Update order" | "Use suggested recipient address" | "View activity history" | "View details" | "View on Explorer" | "View progress" | "View receipt" | "Wallet" | "We can't reach the gateway right now" | "Withdraw" | "Withdrawal complete" | "Withdrawal completed" | "Withdrawal declined." | "Withdrawal failed" | "Withdrawal failed." | "Withdrawal in progress" | "Withdrawal in progress…" | "Withdrawal of {amount}, {date}" | "Withdrawal successful" | "Withdrawal tx" | "Yesterday" | "You receive" | "You send" | "You will receive" | "Your deposit address" | "Your deposit has been credited to your account." | "Your deposit has been credited to {brand}." | "Your deposit will be credited to your account." | "Your deposit will be credited to {brand}." | "Your deposits and withdrawals will appear here." | "Your funds were successfully deposited." | "Your funds were successfully withdrawn." | "Your withdrawal was completed successfully." | "{0, plural, one {# second} other {# seconds}} left on quote" | "{formattedMin} minimum deposit" | "{hours} hr" | "{minutes} min" | "{n}h" | "{n}m" | "{n}s" | "{resolvedPriceImpact}% price impact" | "~ 2 min";
11
+ //#endregion
12
+ export { KitTranslatableKey };
File without changes
@@ -17,11 +17,13 @@ import { CoinbaseIcon } from "../shared/icons/exchanges/CoinbaseIcon.js";
17
17
  import { KrakenIcon } from "../shared/icons/exchanges/KrakenIcon.js";
18
18
  import { OkxIcon } from "../shared/icons/exchanges/OkxIcon.js";
19
19
  import { RobinhoodIcon } from "../shared/icons/exchanges/RobinhoodIcon.js";
20
+ import { HistoryIcon } from "../shared/icons/HistoryIcon.js";
20
21
  import { InfoIcon } from "../shared/icons/InfoIcon.js";
21
22
  import { LoaderIcon } from "../shared/icons/LoaderIcon.js";
23
+ import { LogoIcon } from "../shared/icons/LogoIcon.js";
22
24
  import { MailIcon } from "../shared/icons/MailIcon.js";
23
25
  import { PackageIcon } from "../shared/icons/PackageIcon.js";
24
26
  import { QrCodeIcon } from "../shared/icons/QrCodeIcon.js";
25
27
  import { WalletIcon } from "../shared/icons/WalletIcon.js";
26
28
  import { XIcon } from "../shared/icons/XIcon.js";
27
- export { AlertIcon, ArrowDownIcon, ArrowRightIcon, ArrowRightLeftIcon, BinanceIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleArrowUpIcon, CircleHelpIcon, ClockIcon, CoinbaseIcon, CopyIcon, ExternalLinkIcon, InfoIcon, KrakenIcon, LoaderIcon, MailIcon, OkxIcon, PackageIcon, QrCodeIcon, RobinhoodIcon, WalletIcon, XIcon };
29
+ export { AlertIcon, ArrowDownIcon, ArrowRightIcon, ArrowRightLeftIcon, BinanceIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleArrowUpIcon, CircleHelpIcon, ClockIcon, CoinbaseIcon, CopyIcon, ExternalLinkIcon, HistoryIcon, InfoIcon, KrakenIcon, LoaderIcon, LogoIcon, MailIcon, OkxIcon, PackageIcon, QrCodeIcon, RobinhoodIcon, WalletIcon, XIcon };
@@ -1 +1 @@
1
- import{AlertIcon as e}from"../shared/icons/AlertIcon.js";import{ArrowDownIcon as t}from"../shared/icons/ArrowDownIcon.js";import{ArrowRightIcon as n}from"../shared/icons/ArrowRightIcon.js";import{ArrowRightLeftIcon as r}from"../shared/icons/ArrowRightLeftIcon.js";import{CheckIcon as i}from"../shared/icons/CheckIcon.js";import{ChevronDownIcon as a}from"../shared/icons/ChevronDownIcon.js";import{ChevronLeftIcon as o}from"../shared/icons/ChevronLeftIcon.js";import{ChevronRightIcon as s}from"../shared/icons/ChevronRightIcon.js";import{ChevronUpIcon as c}from"../shared/icons/ChevronUpIcon.js";import{CircleArrowUpIcon as l}from"../shared/icons/CircleArrowUpIcon.js";import{CircleHelpIcon as u}from"../shared/icons/CircleHelpIcon.js";import{ClockIcon as d}from"../shared/icons/ClockIcon.js";import{CopyIcon as f}from"../shared/icons/CopyIcon.js";import{ExternalLinkIcon as p}from"../shared/icons/ExternalLinkIcon.js";import{BinanceIcon as m}from"../shared/icons/exchanges/BinanceIcon.js";import{CoinbaseIcon as h}from"../shared/icons/exchanges/CoinbaseIcon.js";import{KrakenIcon as g}from"../shared/icons/exchanges/KrakenIcon.js";import{OkxIcon as _}from"../shared/icons/exchanges/OkxIcon.js";import{RobinhoodIcon as v}from"../shared/icons/exchanges/RobinhoodIcon.js";import"../shared/icons/exchanges/index.js";import{InfoIcon as y}from"../shared/icons/InfoIcon.js";import{LoaderIcon as b}from"../shared/icons/LoaderIcon.js";import{MailIcon as x}from"../shared/icons/MailIcon.js";import{PackageIcon as S}from"../shared/icons/PackageIcon.js";import{QrCodeIcon as C}from"../shared/icons/QrCodeIcon.js";import{WalletIcon as w}from"../shared/icons/WalletIcon.js";import{XIcon as T}from"../shared/icons/XIcon.js";export{e as AlertIcon,t as ArrowDownIcon,n as ArrowRightIcon,r as ArrowRightLeftIcon,m as BinanceIcon,i as CheckIcon,a as ChevronDownIcon,o as ChevronLeftIcon,s as ChevronRightIcon,c as ChevronUpIcon,l as CircleArrowUpIcon,u as CircleHelpIcon,d as ClockIcon,h as CoinbaseIcon,f as CopyIcon,p as ExternalLinkIcon,y as InfoIcon,g as KrakenIcon,b as LoaderIcon,x as MailIcon,_ as OkxIcon,S as PackageIcon,C as QrCodeIcon,v as RobinhoodIcon,w as WalletIcon,T as XIcon};
1
+ import{AlertIcon as e}from"../shared/icons/AlertIcon.js";import{ArrowDownIcon as t}from"../shared/icons/ArrowDownIcon.js";import{ArrowRightIcon as n}from"../shared/icons/ArrowRightIcon.js";import{ArrowRightLeftIcon as r}from"../shared/icons/ArrowRightLeftIcon.js";import{CheckIcon as i}from"../shared/icons/CheckIcon.js";import{ChevronDownIcon as a}from"../shared/icons/ChevronDownIcon.js";import{ChevronLeftIcon as o}from"../shared/icons/ChevronLeftIcon.js";import{ChevronRightIcon as s}from"../shared/icons/ChevronRightIcon.js";import{ChevronUpIcon as c}from"../shared/icons/ChevronUpIcon.js";import{CircleArrowUpIcon as l}from"../shared/icons/CircleArrowUpIcon.js";import{CircleHelpIcon as u}from"../shared/icons/CircleHelpIcon.js";import{ClockIcon as d}from"../shared/icons/ClockIcon.js";import{CopyIcon as f}from"../shared/icons/CopyIcon.js";import{ExternalLinkIcon as p}from"../shared/icons/ExternalLinkIcon.js";import{BinanceIcon as m}from"../shared/icons/exchanges/BinanceIcon.js";import{CoinbaseIcon as h}from"../shared/icons/exchanges/CoinbaseIcon.js";import{KrakenIcon as g}from"../shared/icons/exchanges/KrakenIcon.js";import{OkxIcon as _}from"../shared/icons/exchanges/OkxIcon.js";import{RobinhoodIcon as v}from"../shared/icons/exchanges/RobinhoodIcon.js";import"../shared/icons/exchanges/index.js";import{HistoryIcon as y}from"../shared/icons/HistoryIcon.js";import{InfoIcon as b}from"../shared/icons/InfoIcon.js";import{LoaderIcon as x}from"../shared/icons/LoaderIcon.js";import{LogoIcon as S}from"../shared/icons/LogoIcon.js";import{MailIcon as C}from"../shared/icons/MailIcon.js";import{PackageIcon as w}from"../shared/icons/PackageIcon.js";import{QrCodeIcon as T}from"../shared/icons/QrCodeIcon.js";import{WalletIcon as E}from"../shared/icons/WalletIcon.js";import{XIcon as D}from"../shared/icons/XIcon.js";export{e as AlertIcon,t as ArrowDownIcon,n as ArrowRightIcon,r as ArrowRightLeftIcon,m as BinanceIcon,i as CheckIcon,a as ChevronDownIcon,o as ChevronLeftIcon,s as ChevronRightIcon,c as ChevronUpIcon,l as CircleArrowUpIcon,u as CircleHelpIcon,d as ClockIcon,h as CoinbaseIcon,f as CopyIcon,p as ExternalLinkIcon,y as HistoryIcon,b as InfoIcon,g as KrakenIcon,x as LoaderIcon,S as LogoIcon,C as MailIcon,_ as OkxIcon,w as PackageIcon,T as QrCodeIcon,v as RobinhoodIcon,E as WalletIcon,D as XIcon};
package/dist/index.d.ts CHANGED
@@ -1,26 +1,39 @@
1
1
  import { TxRef } from "./shared/driver/types.js";
2
+ import { ActivityHistoryDirection, ActivityHistoryPayload, ActivityHistoryRowPayload, ActivityHistoryStatus, ActivityHistoryStatusType } from "./shared/widgets/activity-history/payloads.js";
2
3
  import { DepositSnapshot } from "./flows/deposit/driver/types.js";
3
4
  import { useDepositSnapshot } from "./flows/deposit/driver/context.js";
5
+ import { FailureInfo } from "./shared/orchestrator/types.js";
6
+ import { DepositActions, DepositController, DepositMethod, DepositMethodConfig, DepositMethodsConfig, DepositState, DepositStateName, OpenInput } from "./flows/deposit/orchestrator/types.js";
7
+ import { ChainType, isValidAddressForChainType, isValidEvmAddress, isValidTronAddress, toChainType } from "./shared/chains/index.js";
4
8
  import { WithdrawSnapshot } from "./flows/withdraw/driver/types.js";
5
9
  import { useWithdrawSnapshot } from "./flows/withdraw/driver/context.js";
6
10
  import { useKitConfig } from "./scope/context.js";
7
11
  import { KitPortalScope } from "./scope/KitPortalScope.js";
12
+ import { IntercomMerchantContext } from "./shared/support/useIntercomMerchantContext.js";
13
+ import { SupportConfig, SupportOpenContext } from "./shared/support/types.js";
14
+ import { TermsConfig, TermsSelectContext } from "./shared/terms/types.js";
8
15
  import { createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, resolveStorageAdapter } from "./storage/adapters.js";
9
16
  import { createKitStorage } from "./storage/createKitStorage.js";
10
17
  import { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue } from "./storage/context.js";
11
18
  import { StridgeEnvironment } from "./drivers/stridge/types.js";
12
- import { FailureInfo } from "./shared/orchestrator/types.js";
13
- import { DepositActions, DepositController, DepositMethod, DepositState, DepositStateName, OpenInput } from "./flows/deposit/orchestrator/types.js";
14
- import { WithdrawActions, WithdrawController, WithdrawState, WithdrawStateName, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
15
- import { ChainInput, ChainSlug, chains } from "./shared/chains/index.js";
19
+ import { FlowIdKey } from "./events/bus/flowIdRegistry.js";
20
+ import { useCurrentFlowId } from "./events/hooks/useCurrentFlowId.js";
21
+ import { WithdrawActions, WithdrawController, WithdrawState, WithdrawStateName, WithdrawSubmitActions, WithdrawSubmitCallback, WithdrawSubmitInput, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
22
+ import { FlowEvent, StridgeEvent, UiEvent } from "./events/types/index.js";
23
+ import { useStridgeEvent } from "./events/hooks/useStridgeEvent.js";
24
+ import { PublicStridgeEventBus, useStridgeEventBus } from "./events/hooks/useStridgeEventBus.js";
25
+ import { useStridgeEvents } from "./events/hooks/useStridgeEvents.js";
26
+ import { useStridgeFlowEvent } from "./events/hooks/useStridgeFlowEvent.js";
27
+ import { useStridgeFlowEvents } from "./events/hooks/useStridgeFlowEvents.js";
28
+ import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient, useWithdrawBindings } from "./flows/withdraw/bindings/WithdrawBindings.js";
16
29
  import { ChainLogoMeta } from "./shared/utils/logos/chains.js";
17
30
  import { ChainLogoInput, TokenLogoInput } from "./shared/utils/logos/types.js";
18
31
  import { LogosNamespace, logos } from "./shared/utils/logos/api.js";
19
32
  import { BannerAckBucket, bannerAckStorageKey, bucketFromSettlement, useBannerAck, useBannerAckForSettlement } from "./banners/useBannerAck.js";
20
33
  import { useDepositState } from "./flows/deposit/orchestrator/controller.js";
21
- import { useDeposit } from "./flows/deposit/orchestrator/useDeposit.js";
34
+ import { useDeposit, useOptionalDeposit, usePrefetchDeposit } from "./flows/deposit/orchestrator/useDeposit.js";
22
35
  import { useWithdrawState } from "./flows/withdraw/orchestrator/controller.js";
23
- import { useWithdraw } from "./flows/withdraw/orchestrator/useWithdraw.js";
24
- import { useOptionalStridge, useStridge } from "./stridge/StridgeContext.js";
25
- import { StridgeAppearance, StridgeAsset, StridgeDepositFlowConfig, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig } from "./stridge/StridgeProvider.js";
26
- export { type BannerAckBucket, type ChainInput, type ChainLogoInput, type ChainLogoMeta, type ChainSlug, DEFAULT_KIT_STORAGE_NAMESPACE, type DepositActions, type DepositController, type DepositMethod, type OpenInput as DepositOpenInput, type DepositSnapshot, type DepositState, type DepositStateName, type FailureInfo, KitPortalScope, KitStorageProvider, type LogosNamespace, type StridgeAppearance, type StridgeAsset, type StridgeDepositFlowConfig, type StridgeEnvironment, StridgeProvider, type StridgeStorageConfig, type StridgeWithdrawFlowConfig, type TokenLogoInput, type TxRef, type WithdrawActions, type WithdrawController, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawalFormSnapshot, bannerAckStorageKey, bucketFromSettlement, chains, createKitStorage, createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, logos, resolveStorageAdapter, useBannerAck, useBannerAckForSettlement, useDeposit, useDepositSnapshot, useDepositState, useKitConfig, useKitStorage, useKitStorageValue, useOptionalStridge, useStridge, useWithdraw, useWithdrawSnapshot, useWithdrawState };
36
+ import { useOptionalWithdraw, usePrefetchWithdraw, useWithdraw } from "./flows/withdraw/orchestrator/useWithdraw.js";
37
+ import { ConnectWalletConfig } from "./shared/wallet/ConnectWalletContext.js";
38
+ import { StridgeAppearance, StridgeAsset, StridgeDepositDestination, StridgeDepositFlowConfig, StridgeDepositMethodConfig, StridgeDepositMethodsConfig, StridgeFlowOwner, StridgePrefetchConfig, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig } from "./stridge/StridgeProvider.js";
39
+ export { type ActivityHistoryDirection, type ActivityHistoryPayload, type ActivityHistoryRowPayload, type ActivityHistoryStatus, type ActivityHistoryStatusType, type BannerAckBucket, type ChainLogoInput, type ChainLogoMeta, type ChainType, type ConnectWalletConfig, DEFAULT_KIT_STORAGE_NAMESPACE, type DepositActions, type DepositController, type DepositMethod, type DepositMethodConfig, type DepositMethodsConfig, type OpenInput as DepositOpenInput, type DepositSnapshot, type DepositState, type DepositStateName, type FailureInfo, type FlowEvent, type FlowIdKey, type IntercomMerchantContext, KitPortalScope, KitStorageProvider, type LogosNamespace, type PublicStridgeEventBus, type StridgeAppearance, type StridgeAsset, type StridgeDepositDestination, type StridgeDepositFlowConfig, type StridgeDepositMethodConfig, type StridgeDepositMethodsConfig, type StridgeEnvironment, type StridgeEvent, type StridgeFlowOwner, type StridgePrefetchConfig, StridgeProvider, type StridgeStorageConfig, type StridgeWithdrawFlowConfig, type SupportConfig, type SupportOpenContext, type TermsConfig, type TermsSelectContext, type TokenLogoInput, type TxRef, type UiEvent, type WithdrawActions, type WithdrawBalanceInput, type WithdrawBindings, type WithdrawController, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient, type WithdrawalFormSnapshot, bannerAckStorageKey, bucketFromSettlement, createKitStorage, createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, isValidAddressForChainType, isValidEvmAddress, isValidTronAddress, logos, resolveStorageAdapter, toChainType, useBannerAck, useBannerAckForSettlement, useCurrentFlowId, useDeposit, useDepositSnapshot, useDepositState, useKitConfig, useKitStorage, useKitStorageValue, useOptionalDeposit, useOptionalWithdraw, usePrefetchDeposit, usePrefetchWithdraw, useStridgeEvent, useStridgeEventBus, useStridgeEvents, useStridgeFlowEvent, useStridgeFlowEvents, useWithdraw, useWithdrawBindings, useWithdrawSnapshot, useWithdrawState };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{chains as e}from"./shared/chains/index.js";import{logos as t}from"./shared/utils/logos/api.js";import"./shared/utils/logos/index.js";import{createLocalStorageAdapter as n,createMemoryStorageAdapter as r,createSessionStorageAdapter as i,resolveStorageAdapter as a}from"./storage/adapters.js";import{createKitStorage as o}from"./storage/createKitStorage.js";import{DEFAULT_KIT_STORAGE_NAMESPACE as s,KitStorageProvider as c,useKitStorage as l,useKitStorageValue as u}from"./storage/context.js";import"./storage/index.js";import{bannerAckStorageKey as d,bucketFromSettlement as f,useBannerAck as p,useBannerAckForSettlement as m}from"./banners/useBannerAck.js";import"./banners/index.js";import{useDepositSnapshot as h}from"./flows/deposit/driver/context.js";import{useDepositState as g}from"./flows/deposit/orchestrator/controller.js";import{useDeposit as _}from"./flows/deposit/orchestrator/useDeposit.js";import{useWithdrawSnapshot as v}from"./flows/withdraw/driver/context.js";import{useWithdrawState as y}from"./flows/withdraw/orchestrator/controller.js";import{useWithdraw as b}from"./flows/withdraw/orchestrator/useWithdraw.js";import"./flows/withdraw/orchestrator/index.js";import{useKitConfig as x}from"./scope/context.js";import{KitPortalScope as S}from"./scope/KitPortalScope.js";import{useOptionalStridge as C,useStridge as w}from"./stridge/StridgeContext.js";import{StridgeProvider as T}from"./stridge/StridgeProvider.js";export{s as DEFAULT_KIT_STORAGE_NAMESPACE,S as KitPortalScope,c as KitStorageProvider,T as StridgeProvider,d as bannerAckStorageKey,f as bucketFromSettlement,e as chains,o as createKitStorage,n as createLocalStorageAdapter,r as createMemoryStorageAdapter,i as createSessionStorageAdapter,t as logos,a as resolveStorageAdapter,p as useBannerAck,m as useBannerAckForSettlement,_ as useDeposit,h as useDepositSnapshot,g as useDepositState,x as useKitConfig,l as useKitStorage,u as useKitStorageValue,C as useOptionalStridge,w as useStridge,b as useWithdraw,v as useWithdrawSnapshot,y as useWithdrawState};
1
+ import{isValidAddressForChainType as e,isValidEvmAddress as t,isValidTronAddress as n,toChainType as r}from"./shared/chains/index.js";import{logos as i}from"./shared/utils/logos/api.js";import"./shared/utils/logos/index.js";import{createLocalStorageAdapter as a,createMemoryStorageAdapter as o,createSessionStorageAdapter as s,resolveStorageAdapter as c}from"./storage/adapters.js";import{createKitStorage as l}from"./storage/createKitStorage.js";import{DEFAULT_KIT_STORAGE_NAMESPACE as u,KitStorageProvider as d,useKitStorage as f,useKitStorageValue as p}from"./storage/context.js";import"./storage/index.js";import{bannerAckStorageKey as m,bucketFromSettlement as h,useBannerAck as g,useBannerAckForSettlement as _}from"./banners/useBannerAck.js";import"./banners/index.js";import{useCurrentFlowId as v}from"./events/hooks/useCurrentFlowId.js";import{useStridgeEvent as y}from"./events/hooks/useStridgeEvent.js";import{useStridgeEventBus as b}from"./events/hooks/useStridgeEventBus.js";import{useStridgeEvents as x}from"./events/hooks/useStridgeEvents.js";import{useStridgeFlowEvent as S}from"./events/hooks/useStridgeFlowEvent.js";import{useStridgeFlowEvents as C}from"./events/hooks/useStridgeFlowEvents.js";import"./events/index.js";import{useDepositSnapshot as w}from"./flows/deposit/driver/context.js";import{useDepositState as T}from"./flows/deposit/orchestrator/controller.js";import{useDeposit as E,useOptionalDeposit as D,usePrefetchDeposit as O}from"./flows/deposit/orchestrator/useDeposit.js";import{useWithdrawBindings as k}from"./flows/withdraw/bindings/WithdrawBindings.js";import"./flows/withdraw/bindings/index.js";import{useWithdrawSnapshot as A}from"./flows/withdraw/driver/context.js";import{useWithdrawState as j}from"./flows/withdraw/orchestrator/controller.js";import{useOptionalWithdraw as M,usePrefetchWithdraw as N,useWithdraw as P}from"./flows/withdraw/orchestrator/useWithdraw.js";import"./flows/withdraw/orchestrator/index.js";import{useKitConfig as F}from"./scope/context.js";import{KitPortalScope as I}from"./scope/KitPortalScope.js";import{StridgeProvider as L}from"./stridge/StridgeProvider.js";export{u as DEFAULT_KIT_STORAGE_NAMESPACE,I as KitPortalScope,d as KitStorageProvider,L as StridgeProvider,m as bannerAckStorageKey,h as bucketFromSettlement,l as createKitStorage,a as createLocalStorageAdapter,o as createMemoryStorageAdapter,s as createSessionStorageAdapter,e as isValidAddressForChainType,t as isValidEvmAddress,n as isValidTronAddress,i as logos,c as resolveStorageAdapter,r as toChainType,g as useBannerAck,_ as useBannerAckForSettlement,v as useCurrentFlowId,E as useDeposit,w as useDepositSnapshot,T as useDepositState,F as useKitConfig,f as useKitStorage,p as useKitStorageValue,D as useOptionalDeposit,M as useOptionalWithdraw,O as usePrefetchDeposit,N as usePrefetchWithdraw,y as useStridgeEvent,b as useStridgeEventBus,x as useStridgeEvents,S as useStridgeFlowEvent,C as useStridgeFlowEvents,P as useWithdraw,k as useWithdrawBindings,A as useWithdrawSnapshot,j as useWithdrawState};
package/dist/package.js CHANGED
@@ -1 +1 @@
1
- var e=`0.1.0-alpha.5`;export{e as version};
1
+ var e=`0.1.0-alpha.50`;export{e as version};
@@ -1 +1 @@
1
- "use client";import{useKitConfig as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{jsx as n}from"react/jsx-runtime";import{DirectionProvider as r}from"@base-ui/react/direction-provider";function i({className:i,style:a,children:o,...s}){let{accent:c,direction:l,radius:u,theme:d}=e(),f=c?{"--stridge-kit-primary":c}:void 0,p=f||a?{...f,...a}:void 0;return n(r,{direction:l??`ltr`,children:n(`div`,{...s,dir:l,"data-stridge-scope":``,"data-stridge-radius":u,"data-stridge-theme":d,"data-stridge-slot":t.portalScope,className:i,style:p,children:o})})}export{i as KitPortalScope};
1
+ "use client";import{useKitConfig as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{jsx as n}from"react/jsx-runtime";import{DirectionProvider as r}from"@base-ui/react/direction-provider";function i({className:i,style:a,children:o,...s}){let{accent:c,direction:l,locale:u,radius:d,theme:f}=e(),p=c?{"--stridge-kit-primary":c}:void 0,m=p||a?{...p,...a}:void 0;return n(r,{direction:l??`ltr`,children:n(`div`,{...s,dir:l,"data-stridge-scope":``,"data-stridge-radius":d,"data-stridge-theme":f,"data-stridge-locale":u,"data-stridge-slot":t.portalScope,className:i,style:m,children:o})})}export{i as KitPortalScope};
@@ -1,4 +1,4 @@
1
- import { KitDirection, KitRadius, KitTarget, KitTheme } from "./context.js";
1
+ import { KitAttribution, KitDirection, KitRadius, KitTarget, KitTheme } from "./context.js";
2
2
  import { ComponentProps, ReactNode } from "react";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -19,7 +19,9 @@ declare function KitScope({
19
19
  radius,
20
20
  theme,
21
21
  direction: directionProp,
22
+ locale,
22
23
  target,
24
+ attribution,
23
25
  className,
24
26
  style,
25
27
  dir,
@@ -55,6 +57,21 @@ declare namespace KitScope {
55
57
  * Use the standard HTML `dir` prop instead when you want a tree-wide DOM flip.
56
58
  */
57
59
  direction?: KitDirection;
60
+ /**
61
+ * Active BCP-47 locale tag (`"en"`, `"ar"`, `"fa"`, …). Forwarded by `KitProvider` from
62
+ * `i18n.locale` and stamped onto the scope div as `data-stridge-locale="…"` so hosts can
63
+ * target script-specific styling per locale — e.g. swap the kit's font stack to a Persian
64
+ * face on `[data-stridge-locale^="fa"]` while keeping the Arabic face on `[…^="ar"]`. RTL
65
+ * alone isn't fine-grained enough because both share `dir="rtl"`.
66
+ */
67
+ locale?: string;
68
+ /**
69
+ * Controls the "Powered by Stridge" attribution row inside every gateway widget frame.
70
+ * `"visible"` (default) auto-mounts the brand row at the bottom of every step; `"hidden"`
71
+ * suppresses the auto-mount for white-label installs. Explicit `<Stridge.PoweredBy />`
72
+ * compositions always render — set this to `"hidden"` when composing the brand row manually.
73
+ */
74
+ attribution?: KitAttribution;
58
75
  /** Children rendered inside the kit scope. */
59
76
  children?: ReactNode;
60
77
  }
@@ -1 +1 @@
1
- "use client";import{KitContext as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{useCallback as n,useLayoutEffect as r,useMemo as i,useRef as a,useState as o}from"react";import{jsx as s}from"react/jsx-runtime";import{DirectionProvider as c}from"@base-ui/react/direction-provider";function l({accent:r,radius:o,theme:l,direction:d,target:m,className:h,style:g,dir:_,ref:v,children:y,...b}){let x=a(null),S=f(x,_),C=u(_)??d??S,w=n(e=>{x.current=e,p(v,e)},[v]),T=i(()=>({accent:r,radius:o,theme:l,direction:C,target:m}),[r,o,l,C,m]),E=r?{"--stridge-kit-primary":r}:void 0,D=E||g?{...E,...g}:void 0;return s(e.Provider,{value:T,children:s(c,{direction:C??`ltr`,children:s(`div`,{...b,ref:w,dir:_,"data-stridge-scope":``,"data-stridge-radius":o,"data-stridge-theme":l,"data-stridge-slot":t.root,className:h,style:D,children:y})})})}function u(e){return e===`ltr`||e===`rtl`?e:void 0}function d(e){for(let t=e;t;t=t.parentElement){let e=u(t.getAttribute(`dir`)??void 0);if(e)return e}if(!(typeof window>`u`))return u(window.getComputedStyle(e).direction)}function f(e,t){let[n,i]=o(()=>u(t));return r(()=>{let n=e.current;if(!n){i(u(t));return}let r=()=>{i(d(n))};if(r(),typeof MutationObserver>`u`)return;let a=new MutationObserver(r);for(let e=n;e;e=e.parentElement)a.observe(e,{attributes:!0,attributeFilter:[`dir`]});return()=>a.disconnect()},[t,e]),n}function p(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}export{l as KitScope};
1
+ "use client";import{KitContext as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{useCallback as n,useLayoutEffect as r,useMemo as i,useRef as a,useState as o}from"react";import{jsx as s}from"react/jsx-runtime";import{DirectionProvider as c}from"@base-ui/react/direction-provider";function l({accent:r,radius:o,theme:l,direction:d,locale:m,target:h,attribution:g,className:_,style:v,dir:y,ref:b,children:x,...S}){let C=a(null),w=f(C,y),T=u(y)??d??w,E=n(e=>{C.current=e,p(b,e)},[b]),D=i(()=>({accent:r,radius:o,theme:l,direction:T,locale:m,target:h,attribution:g}),[r,o,l,T,m,h,g]),O=r?{"--stridge-kit-primary":r}:void 0,k=O||v?{...O,...v}:void 0;return s(e.Provider,{value:D,children:s(c,{direction:T??`ltr`,children:s(`div`,{...S,ref:E,dir:y,"data-stridge-scope":``,"data-stridge-radius":o,"data-stridge-theme":l,"data-stridge-locale":m,"data-stridge-slot":t.root,className:_,style:k,children:x})})})}function u(e){return e===`ltr`||e===`rtl`?e:void 0}function d(e){for(let t=e;t;t=t.parentElement){let e=u(t.getAttribute(`dir`)??void 0);if(e)return e}if(!(typeof window>`u`))return u(window.getComputedStyle(e).direction)}function f(e,t){let[n,i]=o(()=>u(t));return r(()=>{let n=e.current;if(!n){i(u(t));return}let r=()=>{i(d(n))};if(r(),typeof MutationObserver>`u`)return;let a=new MutationObserver(r);for(let e=n;e;e=e.parentElement)a.observe(e,{attributes:!0,attributeFilter:[`dir`]});return()=>a.disconnect()},[t,e]),n}function p(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}export{l as KitScope};
@@ -2,6 +2,7 @@
2
2
  type KitRadius = "sharp" | "subtle" | "rounded" | "pill";
3
3
  type KitTheme = "dark" | "light";
4
4
  type KitDirection = "ltr" | "rtl";
5
+ type KitAttribution = "visible" | "hidden";
5
6
  /**
6
7
  * Destination token credited by the gateway flow.
7
8
  */
@@ -53,10 +54,25 @@ interface KitConfig {
53
54
  * behavior when they render outside the provider's DOM subtree.
54
55
  */
55
56
  direction?: KitDirection;
57
+ /**
58
+ * Active BCP-47 locale tag (e.g. `"en"`, `"ar"`, `"fa"`, `"ar-EG"`). Forwarded by `KitProvider`
59
+ * from `i18n.locale` and stamped onto every kit scope as `data-stridge-locale="…"` so the host
60
+ * can target script-specific styling (typically the font stack) per locale — RTL alone isn't
61
+ * fine-grained enough (Arabic and Persian are both RTL but commonly want different faces).
62
+ */
63
+ locale?: string;
56
64
  /**
57
65
  * Destination token configuration.
58
66
  */
59
67
  target?: KitTarget;
68
+ /**
69
+ * Resolved state of the "Powered by Stridge" attribution row. `"visible"` (default) lets the
70
+ * gateway frame auto-mount the brand row at the bottom of every step; `"hidden"` suppresses
71
+ * the auto-mount for white-label installs. Explicit `<Stridge.PoweredBy />` compositions
72
+ * ignore this value and always render — the contract is "set `attribution=\"hidden\"` when
73
+ * composing the brand row manually".
74
+ */
75
+ attribution?: KitAttribution;
60
76
  }
61
77
  /**
62
78
  * Reads the active {@link KitConfig} from the nearest provider. Returns `{}` when no provider is
@@ -64,4 +80,4 @@ interface KitConfig {
64
80
  */
65
81
  declare function useKitConfig(): KitConfig;
66
82
  //#endregion
67
- export { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig };
83
+ export { KitAttribution, KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig };
@@ -1,3 +1,3 @@
1
- import { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig } from "./context.js";
1
+ import { KitAttribution, KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig } from "./context.js";
2
2
  import { KitPortalScope } from "./KitPortalScope.js";
3
3
  import { KitScope } from "./KitScope.js";
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../i18n/useLingui.js";import"../../i18n/index.js";import{joinClassNames as t}from"../utils/joinClassNames.js";import{LogoIcon as n}from"../icons/LogoIcon.js";import"../../icons/index.js";import{ATTRIBUTION_SLOTS as r}from"./Attribution.slots.js";import{elementStyles as i,styles as a}from"./Attribution.styles.js";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({href:u=`https://stridge.com`,target:d=`_blank`,rel:f=`noopener noreferrer`,asStatic:p,className:m,style:h}){let{_:g}=e(),_=l.props(a.root),v=l.props(a.link,!p&&a.anchor),y=l.props(i.prefix),b=l.props(i.mark),x=l.props(i.wordmark),S=t(_.className,m),C=_.style||h?{..._.style,...h}:void 0,w=c(o,{children:[s(`span`,{"data-stridge-slot":r.prefix,className:y.className,style:y.style,children:g({id:`g2UNkE`,message:`Powered by`})}),s(`span`,{"data-stridge-slot":r.mark,className:b.className,style:b.style,children:s(n,{"aria-hidden":!0,focusable:!1})}),s(`span`,{"data-stridge-slot":r.wordmark,className:x.className,style:x.style,children:`Stridge`})]});return s(`div`,{"data-stridge-slot":r.root,className:S,style:C,children:p?s(`span`,{className:v.className,style:v.style,children:w}):s(`a`,{href:u,target:d,rel:f,className:v.className,style:v.style,children:w})})}export{u as Attribution};
@@ -0,0 +1 @@
1
+ const e={root:`attribution`,prefix:`attribution-prefix`,mark:`attribution-mark`,wordmark:`attribution-wordmark`};export{e as ATTRIBUTION_SLOTS};
@@ -0,0 +1 @@
1
+ const e={root:{"Attribution__styles.root":`Attribution__styles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"paddingTop-kLKAdn":`x19ment4`,"paddingBottom-kGO01o":`xfvigk`,"paddingInline-kg3NbH":`x1ujb8i1`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:11`},link:{"Attribution__styles.link":`Attribution__styles.link`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,"textDecoration-kybGjl":`x1hl2dhg`,"outline-kI3sdo":`x1a2a7pz`,"transitionProperty-k1ekBW":`xt3l3uh`,"transitionDuration-kIyJzY":`x1vhb3u9`,"transitionTimingFunction-kAMwcw":`x1xv5090`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:20`},anchor:{"Attribution__styles.anchor":`Attribution__styles.anchor`,":focus-visible_outline-k3Woio":`x1gvykhg`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:35`}},t={prefix:{"Attribution__elementStyles.prefix":`Attribution__elementStyles.prefix`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`xxjjie5`,"lineHeight-kLWn49":`x1d3mw78`,"color-kMwMTN":`xd2gg92`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-prefix']_color-kKNNVu":`x1wa2jhk`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:51`},mark:{"Attribution__elementStyles.mark":`Attribution__elementStyles.mark`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"color-kMwMTN":`x9irweu`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-mark']_color-kEC4n1":`x1perupi`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:60`},wordmark:{"Attribution__elementStyles.wordmark":`Attribution__elementStyles.wordmark`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`x1qvi77d`,"letterSpacing-kb6lSQ":`x1ixy4ik`,"lineHeight-kLWn49":`x1d3mw78`,"color-kMwMTN":`x1nxg1fm`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-wordmark']_color-kKiZkk":`x19k0ldo`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-wordmark']_textDecoration-k7BEHM":`x1l0eogd`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-wordmark']_textUnderlineOffset-kHPfEo":`x1diuls0`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:68`}};export{t as elementStyles,e as styles};
@@ -0,0 +1 @@
1
+ import"./Attribution.slots.js";import"./Attribution.js";
@@ -1,40 +1,59 @@
1
1
  //#region src/shared/chains/index.d.ts
2
2
  /**
3
- * Chain catalog for `@stridge/kit`. Exports the `chains` namespace (EIP-155 chain ids keyed by
4
- * slug, suitable for IDE autocomplete) and a normalizer that converts any accepted form
5
- * (slug, EIP-155 number, Stridge networkId) into the wire-shape `network_id` string the gateway
6
- * expects.
3
+ * Chain-family types and recipient-address validators for `@stridge/kit`.
7
4
  *
8
- * @example
9
- * ```ts
10
- * import { chains } from "@stridge/kit";
5
+ * The kit does not ship a static chain catalog — the gateway is the single source of truth for
6
+ * which networks exist. Consumers pass the Stridge network id (read straight off
7
+ * `Gateway.assets()`) as `StridgeAsset.networkId`, and the kit forwards it to
8
+ * `gateway/start` verbatim. This module only carries the chain-*family* tag (`ChainType`) and
9
+ * the address-shape validators that depend on it.
10
+ */
11
+ /**
12
+ * Chain family a network belongs to. The kit-internal, case-stable mirror of the gateway's
13
+ * `chain_type` wire tag (`SupportedAssetDto.chain_type`):
11
14
  *
12
- * <StridgeProvider asset={{ chain: chains.bsc, symbol: "USDC" }} ... />;
13
- * <StridgeProvider asset={{ chain: 56, symbol: "USDC" }} ... />; // also valid
14
- * <StridgeProvider asset={{ chain: "bsc", symbol: "USDC" }} ... />; // also valid
15
- * <StridgeProvider asset={{ chain: "9006", symbol: "USDC" }} ... />; // also valid
16
- * ```
15
+ * - `"evm"` — every EIP-155 chain (Ethereum, BSC, Polygon, …); addresses are `0x` + 40 hex.
16
+ * - `"tron"` Tron mainnet; addresses are base58check, 34 chars, leading `T`.
17
+ * - `"unknown"` a family the kit predates. Address validation falls back to a permissive
18
+ * shape check (see {@link isValidAddressForChainType}) so a chain the backend lists before
19
+ * the kit ships explicit support is still usable rather than hard-blocked.
20
+ *
21
+ * Drivers are the source of truth: each one tags its payloads (`ReceiveChainPayload.chainType`,
22
+ * …) so widgets and headless consumers never re-derive the family from chain-id heuristics.
23
+ */
24
+ type ChainType = "evm" | "tron" | "unknown";
25
+ /**
26
+ * Normalize a raw gateway `chain_type` value (or a missing one) into a {@link ChainType}.
27
+ * Surrounding whitespace is trimmed and matching is case-insensitive; the gateway tags Tron as
28
+ * `"TVM"` (Tron Virtual Machine). Any value the kit doesn't recognize — including `undefined` —
29
+ * collapses to `"unknown"`, which keeps the address gate permissive instead of blocking the flow.
30
+ */
31
+ declare function toChainType(raw: string | null | undefined): ChainType;
32
+ /**
33
+ * Lightweight EVM-address validator. Matches `0x` followed by exactly 40 hex characters.
34
+ * Does NOT enforce the EIP-55 mixed-case checksum — the gateway lowercases before routing, and
35
+ * checksum validation would reject the all-lowercase forms wallets and explorers commonly emit.
36
+ * Input is trimmed before matching.
17
37
  */
38
+ declare function isValidEvmAddress(value: string): boolean;
18
39
  /**
19
- * EIP-155 chain ids for the chains Stridge's gateway routes to. Keyed by lowercase slug for
20
- * IDE autocomplete; the value is a plain number so consumers can pass `chains.bsc` directly to
21
- * any prop that accepts a chain id.
40
+ * Lightweight Tron-address validator. Matches the base58check mainnet shape: a leading `T`
41
+ * followed by 33 base58 characters (34 total). Does NOT verify the trailing checksum bytes
42
+ * that needs a base58check decode the kit deliberately keeps out of the bundle; the gateway
43
+ * performs the authoritative check. Input is trimmed before matching.
22
44
  */
23
- declare const chains: {
24
- readonly ethereum: 1;
25
- readonly bsc: 56;
26
- readonly polygon: 137;
27
- readonly arbitrum: 42161;
28
- readonly base: 8453;
29
- };
30
- type ChainSlug = keyof typeof chains;
45
+ declare function isValidTronAddress(value: string): boolean;
31
46
  /**
32
- * The accepted shape of a `chain` field on kit configuration props. Any of:
47
+ * Validate a recipient address against the chain family it's being sent to the chain-type-aware
48
+ * gate the withdraw form and headless integrators share. Pass the `chainType` the driver tagged
49
+ * onto the receive-chain payload.
50
+ *
51
+ * - `"evm"` / `"tron"` — checked against the family's real address shape.
52
+ * - `"unknown"` — a family the kit predates: accepts any whitespace-free token of at least 8
53
+ * characters, so a backend-listed chain still works before the kit ships a dedicated matcher.
33
54
  *
34
- * - `number` EIP-155 chain id (`56`, `137`).
35
- * - `string` — chain slug (`"bsc"`), the matching EIP-155 id as text (`"56"`), or a Stridge
36
- * `network_id` (`"9006"`). The kit normalizes via {@link normalizeChainToNetworkId}.
55
+ * Empty / whitespace-only input is always rejected. Trim is handled internally.
37
56
  */
38
- type ChainInput = string | number;
57
+ declare function isValidAddressForChainType(value: string, chainType: ChainType): boolean;
39
58
  //#endregion
40
- export { ChainInput, ChainSlug, chains };
59
+ export { ChainType, isValidAddressForChainType, isValidEvmAddress, isValidTronAddress, toChainType };
@@ -1 +1 @@
1
- const e={ethereum:1,bsc:56,polygon:137,arbitrum:42161,base:8453},t={ethereum:`60`,bsc:`9006`,polygon:`966`,arbitrum:`9001`,base:`8453`},n={1:`60`,56:`9006`,137:`966`,42161:`9001`,8453:`8453`};function r(e){if(typeof e==`number`)return n[e]??String(e);let r=e.toLowerCase();return r in t?t[r]:/^\d+$/.test(e)?n[Number(e)]??e:e}export{e as chains,r as normalizeChainToNetworkId};
1
+ function e(e){switch(e?.trim().toUpperCase()){case`EVM`:return`evm`;case`TVM`:return`tron`;default:return`unknown`}}const t=/^0x[0-9a-fA-F]{40}$/,n=/^T[1-9A-HJ-NP-Za-km-z]{33}$/;function r(e){return t.test(e.trim())}function i(e){return n.test(e.trim())}function a(e,r){let i=e.trim();if(i.length===0)return!1;switch(r){case`evm`:return t.test(i);case`tron`:return n.test(i);default:return/^\S{8,}$/.test(i)}}export{a as isValidAddressForChainType,r as isValidEvmAddress,i as isValidTronAddress,e as toChainType};
@@ -0,0 +1 @@
1
+ const e={appId:`ii7w0vsj`};export{e as BRAND_INTERCOM};
@@ -1 +1 @@
1
- import{create as e}from"./QrCode.js";import*as t from"react";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";function a(e){let{arena:t,...n}=e;return i(a.Root,{...n,children:[r(a.Finder,{}),r(a.Cells,{}),t&&r(a.Arena,{children:typeof t==`string`?r(`img`,{alt:`Arena`,src:t,style:{borderRadius:1,height:`100%`,objectFit:`cover`,width:`100%`}}):t})]})}(function(a){let o=a.Context=t.createContext(null);function s(n){let{children:a,size:s=`100%`,value:c,version:l,errorCorrection:u,...d}=n,f=t.useMemo(()=>(t.Children.map(a,e=>!t.isValidElement(e)||typeof e.type==`string`?null:`displayName`in e.type&&e.type.displayName===`Arena`?!0:null)??[]).some(Boolean),[a]),p=t.useMemo(()=>{let t=u;return f&&u===`low`&&(t=`medium`),e(c,{errorCorrection:t,version:l})},[c,f,u,l]),m=p.edgeLength*1,h=p.finderLength*1/2,g=f?Math.floor(m/4):0,_=t.useMemo(()=>({arenaSize:g,cellSize:1,edgeSize:m,qrcode:p,finderSize:h}),[g,m,p,h]);return r(o.Provider,{value:_,children:i(`svg`,{...d,width:s,height:s,viewBox:`0 0 ${m} ${m}`,xmlns:`http://www.w3.org/2000/svg`,children:[r(`title`,{children:`QR Code`}),a]})})}a.Root=s,(function(e){e.displayName=`Root`})(s||=a.Root||={});function c(e){let{className:a,fill:s,innerClassName:c,radius:l=.25}=e,{cellSize:u,edgeSize:d,finderSize:f}=t.useContext(o);function p({position:e}){let t=f-(f-u)-u/2;e===`top-right`&&(t=d-f-(f-u)-u/2);let o=f-(f-u)-u/2;e===`bottom-left`&&(o=d-f-(f-u)-u/2);let p=f-u*1.5;e===`top-right`&&(p=d-f-u*1.5);let m=f-u*1.5;return e===`bottom-left`&&(m=d-f-u*1.5),i(n,{children:[r(`rect`,{className:a,stroke:s??`currentColor`,fill:`transparent`,x:t,y:o,width:u+(f-u)*2,height:u+(f-u)*2,rx:2*l*(f-u),ry:2*l*(f-u),strokeWidth:u}),r(`rect`,{className:c,fill:s??`currentColor`,x:p,y:m,width:u*3,height:u*3,rx:2*l*u,ry:2*l*u})]})}return i(n,{children:[r(p,{position:`top-left`}),r(p,{position:`top-right`}),r(p,{position:`bottom-left`})]})}a.Finder=c,(function(e){e.displayName=`Finder`})(c||=a.Finder||={});function l(e){let{className:n,fill:i=`currentColor`,inset:a=!0,radius:s=1}=e,{arenaSize:c,cellSize:l,qrcode:u}=t.useContext(o),{edgeLength:d,finderLength:f}=u;return r(`path`,{className:n,d:t.useMemo(()=>{let e=``;for(let t=0;t<u.grid.length;t++){let n=u.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let i=d/2-c/2,o=i+c;if(t>=i&&t<=o&&r>=i&&r<=o)continue;let u=t<f&&r<f,p=t<f&&r>=d-f,m=t>=d-f&&r<f;if(u||p||m)continue;let h=(l-(a?l*.1:0)*2)/2,g=r*l+l/2,_=t*l+l/2,v=g-h,y=g+h,b=_-h,x=_+h,S=s*h;e+=[`M ${v+S},${b}`,`L ${y-S},${b}`,`A ${S},${S} 0 0,1 ${y},${b+S}`,`L ${y},${x-S}`,`A ${S},${S} 0 0,1 ${y-S},${x}`,`L ${v+S},${x}`,`A ${S},${S} 0 0,1 ${v},${x-S}`,`L ${v},${b+S}`,`A ${S},${S} 0 0,1 ${v+S},${b}`,`z`].join(` `)}}return e},[c,l,d,f,u.grid,a,s]),fill:i})}a.Cells=l,(function(e){e.displayName=`Cells`})(l||=a.Cells||={});function u(e){let{children:n}=e,{arenaSize:i,cellSize:a,edgeSize:s}=t.useContext(o),c=Math.ceil(s/2-i/2),l=i+i%2;return r(`foreignObject`,{x:c,y:c,width:l,height:l,children:r(`div`,{style:{alignItems:`center`,display:`flex`,fontSize:1,justifyContent:`center`,height:`100%`,overflow:`hidden`,width:`100%`,padding:a/2,boxSizing:`border-box`},children:n})})}a.Arena=u,(function(e){e.displayName=`Arena`})(u||=a.Arena||={})})(a||={});export{a as Cuer};
1
+ import{create as e}from"./QrCode.js";import*as t from"react";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";const a=e=>Math.max(0,Math.min(1,e));function o(e){let{arena:t,...n}=e;return i(o.Root,{...n,children:[r(o.Finder,{}),r(o.Cells,{}),t&&r(o.Arena,{href:t})]})}(function(o){let s=o.Context=t.createContext(null);function c(n){let{children:a,size:o=`100%`,value:c,version:l,errorCorrection:u,...d}=n,f=t.useMemo(()=>(t.Children.map(a,e=>!t.isValidElement(e)||typeof e.type==`string`?null:`displayName`in e.type&&e.type.displayName===`Arena`?!0:null)??[]).some(Boolean),[a]),p=t.useMemo(()=>{let t=u;return f&&u===`low`&&(t=`medium`),e(c,{errorCorrection:t,version:l})},[c,f,u,l]),m=p.edgeLength*1,h=p.finderLength*1/2,g=f?Math.floor(m/4):0,_=(m-g)/2,v=t.useMemo(()=>({arenaSize:g,arenaStart:_,cellSize:1,edgeSize:m,qrcode:p,finderSize:h}),[g,_,m,p,h]);return r(s.Provider,{value:v,children:i(`svg`,{...d,width:o,height:o,viewBox:`0 0 ${m} ${m}`,xmlns:`http://www.w3.org/2000/svg`,children:[r(`title`,{children:`QR Code`}),a]})})}o.Root=c,(function(e){e.displayName=`Root`})(c||=o.Root||={});function l(e){let{className:o,fill:c,innerClassName:l,radius:u=.25,stroke:d}=e,{cellSize:f,edgeSize:p,finderSize:m}=t.useContext(s),h=a(u);function g({position:e}){let t=m-(m-f)-f/2;e===`top-right`&&(t=p-m-(m-f)-f/2);let a=m-(m-f)-f/2;e===`bottom-left`&&(a=p-m-(m-f)-f/2);let s=m-f*1.5;e===`top-right`&&(s=p-m-f*1.5);let u=m-f*1.5;return e===`bottom-left`&&(u=p-m-f*1.5),i(n,{children:[r(`rect`,{className:o,stroke:d??c??`currentColor`,fill:`transparent`,x:t,y:a,width:f+(m-f)*2,height:f+(m-f)*2,rx:2*h*(m-f),ry:2*h*(m-f),strokeWidth:f}),r(`rect`,{className:l,fill:c??`currentColor`,x:s,y:u,width:f*3,height:f*3,rx:2*h*f,ry:2*h*f})]})}return i(n,{children:[r(g,{position:`top-left`}),r(g,{position:`top-right`}),r(g,{position:`bottom-left`})]})}o.Finder=l,(function(e){e.displayName=`Finder`})(l||=o.Finder||={});function u(e){let{className:n,fill:i=`currentColor`,inset:o=!0,radius:c=1}=e,{arenaSize:l,arenaStart:u,cellSize:d,qrcode:f}=t.useContext(s),{edgeLength:p,finderLength:m}=f,h=a(c);return r(`path`,{className:n,d:t.useMemo(()=>{let e=``,t=u+l;for(let n=0;n<f.grid.length;n++){let r=f.grid[n];if(r)for(let i=0;i<r.length;i++){if(!r[i])continue;if(l>0){let e=(i+.5)*d,r=(n+.5)*d;if(e>=u&&e<=t&&r>=u&&r<=t)continue}let a=n<m&&i<m,s=n<m&&i>=p-m,c=n>=p-m&&i<m;if(a||s||c)continue;let f=(d-(o?d*.1:0)*2)/2,g=i*d+d/2,_=n*d+d/2,v=g-f,y=g+f,b=_-f,x=_+f,S=h*f;e+=[`M ${v+S},${b}`,`L ${y-S},${b}`,`A ${S},${S} 0 0,1 ${y},${b+S}`,`L ${y},${x-S}`,`A ${S},${S} 0 0,1 ${y-S},${x}`,`L ${v+S},${x}`,`A ${S},${S} 0 0,1 ${v},${x-S}`,`L ${v},${b+S}`,`A ${S},${S} 0 0,1 ${v+S},${b}`,`z`].join(` `)}}return e},[l,u,d,p,m,f.grid,o,h]),fill:i})}o.Cells=u,(function(e){e.displayName=`Cells`})(u||=o.Cells||={});function d(e){let{href:n,preserveAspectRatio:i=`xMidYMid meet`,...a}=e,{arenaSize:o,arenaStart:c,cellSize:l}=t.useContext(s),u=l/2,d=c+u,f=o-u*2;return r(`image`,{href:n,...a,x:d,y:d,width:f,height:f,preserveAspectRatio:i})}o.Arena=d,(function(e){e.displayName=`Arena`})(d||=o.Arena||={})})(o||={});export{o as Cuer};
@@ -1 +1 @@
1
- "use client";import{useKitConfig as e}from"../../scope/context.js";import{useIsInsideDialogContent as t}from"../ui/Dialog/Dialog.js";import"../ui/Dialog/index.js";import{Card as n}from"../ui/Card/Card.js";import"../../ui/index.js";import{jsx as r}from"react/jsx-runtime";function i({className:i,style:a,dir:o,...s}){let c=t(),{direction:l}=e(),u=o??l;if(c){let e={className:`Frame__styles.bare x78zum5 xdt5ytf x12lumcd x2lwn1j x7giv3`,"data-style-src":`@stridge/kit:src/shared/dialog/Frame.tsx:25`};return r(`div`,{...s,dir:u,className:[e.className,i].filter(Boolean).join(` `)||void 0,style:{...e.style,...a}})}return r(n,{variant:`frame`,dir:u,className:i,style:a,...s})}export{i as Frame};
1
+ "use client";import{useKitConfig as e}from"../../scope/context.js";import{useIsInsideDialogContent as t}from"../ui/Dialog/Dialog.js";import"../ui/Dialog/index.js";import{Attribution as n}from"../attribution/Attribution.js";import"../attribution/index.js";import{Card as r}from"../ui/Card/Card.js";import"../../ui/index.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({className:o,style:s,dir:c,children:l,...u}){let d=t(),{direction:f,attribution:p}=e(),m=c??f,h=p!==`hidden`;if(d){let e={className:`Frame__styles.bare x78zum5 xdt5ytf xkz0k9k x2lwn1j x7giv3`,"data-style-src":`@stridge/kit:src/shared/dialog/Frame.tsx:33`};return a(`div`,{...u,dir:m,className:[e.className,o].filter(Boolean).join(` `)||void 0,style:{...e.style,...s},children:[l,h?i(n,{}):null]})}return a(r,{variant:`frame`,dir:m,className:o,style:s,...u,children:[l,h?i(n,{}):null]})}export{o as Frame};
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../i18n/useLingui.js";import"../../i18n/index.js";import{styles as t}from"./LoadingState.styles.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({slot:a}){let{_:o}=e();return n(`div`,{role:`status`,"aria-label":o({id:`yQE2r9`,message:`Loading`}),"data-stridge-slot":`${a}-loading`,"data-testid":`${a}-loading`,...i.props(t.root),children:r(`span`,{"aria-hidden":!0,...i.props(t.dots),children:[n(`span`,{...i.props(t.dot,t.dotDelay1)}),n(`span`,{...i.props(t.dot,t.dotDelay2)}),n(`span`,{...i.props(t.dot,t.dotDelay3)})]})})}export{a as LoadingState};
@@ -0,0 +1 @@
1
+ const e={root:{"LoadingState__styles.root":`LoadingState__styles.root`,"display-k1xSpc":`x78zum5`,"flex-kUk6DE":`x12lumcd`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`xh8yej3`,"minHeight-kAzted":`x1dby22o`,"animationName-kKVMdj":`x1tj11xs`,"animationDuration-k44tkh":`x1a78uxe x1s1fvk8`,"animationTimingFunction-kyAemX":`xrkt6z0`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/dialog/LoadingState.styles.ts:44`},dots:{"LoadingState__styles.dots":`LoadingState__styles.dots`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1jnr06f`,"lineHeight-kLWn49":`x14ju556`,$$css:`@stridge/kit:src/shared/dialog/LoadingState.styles.ts:65`},dot:{"LoadingState__styles.dot":`LoadingState__styles.dot`,"display-k1xSpc":`x1rg5ohu`,"width-kzqmXN":`x1xc55vz`,"height-kZKoxP":`xdk7pt`,"borderRadius-kaIpWk":`x16rqkct`,"backgroundColor-kWkggS":`x1lbpfnh`,"animationName-kKVMdj":`x11qdjwd`,"animationDuration-k44tkh":`x1sbju2s x80wavc`,"animationIterationCount-ko0y90":`xa4qsjk`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/dialog/LoadingState.styles.ts:77`},dotDelay1:{"LoadingState__styles.dotDelay1":`LoadingState__styles.dotDelay1`,"animationDelay-kKxzle":`x1uzojwf`,$$css:`@stridge/kit:src/shared/dialog/LoadingState.styles.ts:96`},dotDelay2:{"LoadingState__styles.dotDelay2":`LoadingState__styles.dotDelay2`,"animationDelay-kKxzle":`x1t83zlg`,$$css:`@stridge/kit:src/shared/dialog/LoadingState.styles.ts:99`},dotDelay3:{"LoadingState__styles.dotDelay3":`LoadingState__styles.dotDelay3`,"animationDelay-kKxzle":`x1xwhvez`,$$css:`@stridge/kit:src/shared/dialog/LoadingState.styles.ts:102`}};export{e as styles};
@@ -1 +1 @@
1
- "use client";import{useEffect as e,useLayoutEffect as t,useRef as n}from"react";import{jsx as r}from"react/jsx-runtime";import{AnimatePresence as i,motion as a}from"motion/react";const o=[.3,0,.06,1],s={enter:e=>({opacity:0,x:e>=0?16:-16,filter:`blur(6px)`}),center:{opacity:1,x:0,filter:`blur(0px)`,transition:{duration:.22,delay:.12,ease:o}},exit:e=>({opacity:0,x:e>=0?-16:16,filter:`blur(6px)`,transition:{duration:.14,ease:o}})};function c({stateKey:o,children:c}){let l=n([]),u=n(null),d=l.current,f=d[d.length-1],p=0;o!==f&&(p=d.indexOf(o)>=0?-1:1);let m=n(null),h=n(o),g=n(null),_=n(null);return e(()=>{let e=l.current;if(e[e.length-1]===o)return;let t=e.indexOf(o);l.current=t>=0?e.slice(0,t+1):[...e,o]},[o]),t(()=>{let e=u.current;if(!e)return;let t=e.getBoundingClientRect().height;if(h.current===o){m.current=t;return}let n=m.current;if(h.current=o,m.current=t,n===null||n===t)return;let r=e.style.transition;e.style.transition=`none`,e.style.height=`${n}px`,e.offsetHeight,e.style.transition=r,_.current!==null&&window.cancelAnimationFrame(_.current),_.current=window.requestAnimationFrame(()=>{_.current=null,u.current&&(u.current.style.height=`${t}px`)}),g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null;let e=u.current;e&&(e.style.height=``)},320)}),e(()=>()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null),_.current!==null&&(window.cancelAnimationFrame(_.current),_.current=null)},[]),r(`div`,{ref:u,style:{position:`relative`,overflow:`hidden`,transition:`height 260ms cubic-bezier(0.3, 0, 0.06, 1)`,flex:`0 1 auto`,minHeight:0,display:`flex`,flexDirection:`column`},children:r(i,{mode:`popLayout`,custom:p,initial:!1,children:r(a.div,{custom:p,variants:s,initial:`enter`,animate:`center`,exit:`exit`,tabIndex:-1,style:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:0,outline:`none`},children:c},o)})})}export{c as StepTransition};
1
+ "use client";import{useEffect as e,useLayoutEffect as t,useRef as n}from"react";import{jsx as r}from"react/jsx-runtime";import{AnimatePresence as i,m as a}from"motion/react";const o=[.3,0,.06,1],s={enter:e=>({opacity:0,x:e>=0?16:-16,filter:`blur(6px)`}),center:{opacity:1,x:0,filter:`blur(0px)`,transition:{duration:.22,delay:.12,ease:o}},exit:e=>({opacity:0,x:e>=0?-16:16,filter:`blur(6px)`,transition:{duration:.14,ease:o}})};function c({stateKey:o,children:c}){let l=n([]),u=n(null),d=l.current,f=d[d.length-1],p=0;o!==f&&(p=d.indexOf(o)>=0?-1:1);let m=n(null),h=n(o),g=n(null),_=n(null);return e(()=>{let e=l.current;if(e[e.length-1]===o)return;let t=e.indexOf(o);l.current=t>=0?e.slice(0,t+1):[...e,o]},[o]),t(()=>{let e=u.current;if(!e)return;let t=e.getBoundingClientRect().height;if(h.current===o){m.current=t;return}let n=m.current;if(h.current=o,m.current=t,n===null||n===t||document.visibilityState===`hidden`)return;let r=e.style.transition;e.style.transition=`none`,e.style.height=`${n}px`,e.offsetHeight,e.style.transition=r,_.current!==null&&window.cancelAnimationFrame(_.current),_.current=window.requestAnimationFrame(()=>{_.current=null,u.current&&(u.current.style.height=`${t}px`)}),g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null;let e=u.current;e&&(e.style.height=``)},320)}),e(()=>{let e=()=>{if(document.visibilityState!==`hidden`)return;_.current!==null&&(window.cancelAnimationFrame(_.current),_.current=null),g.current!==null&&(window.clearTimeout(g.current),g.current=null);let e=u.current;e&&(e.style.height=``)};return document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e),g.current!==null&&(window.clearTimeout(g.current),g.current=null),_.current!==null&&(window.cancelAnimationFrame(_.current),_.current=null)}},[]),r(`div`,{ref:u,style:{position:`relative`,overflow:`hidden`,transition:`height 260ms cubic-bezier(0.3, 0, 0.06, 1)`,flex:`0 1 auto`,minHeight:0,display:`flex`,flexDirection:`column`},children:r(i,{mode:`popLayout`,custom:p,initial:!1,children:r(a.div,{custom:p,variants:s,initial:`enter`,animate:`center`,exit:`exit`,tabIndex:-1,style:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:0,outline:`none`},children:c},o)})})}export{c as StepTransition};
@@ -1 +1 @@
1
- "use client";import{useKitConfig as e}from"../../scope/context.js";function t(t){let{direction:n}=e(),r=n===`rtl`;return t?r?`scaleX(-1) rotate(-90deg)`:`rotate(90deg)`:r?`scaleX(-1)`:void 0}export{t as useDirectionalChevronTransform};
1
+ "use client";function e(e){return e?`rotate(90deg)`:void 0}export{e as useDirectionalChevronTransform};
@@ -6,9 +6,10 @@
6
6
  * public `@stridge/kit/<flow>/driver` surface.
7
7
  */
8
8
  /**
9
- * On-chain transaction reference. Drivers return one of these from any imperative wallet action
10
- * (`submitDeposit`, `submitWithdrawal`); the orchestrator stamps it on the FSM's `tx` slot until
11
- * the matching settlement entity catches up and exposes a richer `txHash` / `txExplorerUrl` pair.
9
+ * On-chain transaction reference. The deposit driver returns one from `submitDeposit`; the
10
+ * withdraw flow's host-supplied `onSubmit` surfaces one via `actions.beginProcessing({ hash })`
11
+ * or `actions.setTxHash`. The orchestrator stamps it on the FSM's `tx` slot until the matching
12
+ * settlement entity catches up and exposes a richer `txHash` / `txExplorerUrl` pair.
12
13
  */
13
14
  interface TxRef {
14
15
  hash: string;
@@ -3,21 +3,24 @@ import { ReactNode } from "react";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/shared/i18n/KitI18nProvider.d.ts
6
- interface Props extends KitI18nConfig {
7
- children: ReactNode;
8
- }
9
6
  /**
10
7
  * Mounts a per-request Lingui `I18n` instance into React context. Re-creates the instance only
11
- * when `locale` or the identity of `catalogs` changes — same render-stable pattern as the kit's
12
- * other context providers, and the SSR-safe alternative to mutating a module-level singleton.
8
+ * when `locale` or the identity of `messages` changes — same render-stable pattern as the
9
+ * kit's other context providers, and the SSR-safe alternative to mutating a module-level
10
+ * singleton.
13
11
  *
14
12
  * Used internally by `KitProvider`. Hosts don't mount this directly; they pass a single
15
- * `i18n={{ locale, catalogs }}` prop on `<KitProvider>` and the kit handles the wiring.
13
+ * `i18n={{ locale, messages }}` prop on `<KitProvider>` and the kit handles the wiring.
16
14
  */
17
15
  declare function KitI18nProvider({
18
16
  locale,
19
- catalogs,
17
+ messages,
20
18
  children
21
- }: Props): _$react_jsx_runtime0.JSX.Element;
19
+ }: KitI18nProvider.Props): _$react_jsx_runtime0.JSX.Element;
20
+ declare namespace KitI18nProvider {
21
+ interface Props extends KitI18nConfig {
22
+ children: ReactNode;
23
+ }
24
+ }
22
25
  //#endregion
23
26
  export { KitI18nProvider };
@@ -1 +1 @@
1
- "use client";import{createKitI18n as e}from"./createKitI18n.js";import{useMemo as t}from"react";import{jsx as n}from"react/jsx-runtime";import{I18nProvider as r}from"@lingui/react";function i({locale:i=`en`,catalogs:a,children:o}){return n(r,{i18n:t(()=>e({locale:i,catalogs:a}),[i,a]),children:o})}export{i as KitI18nProvider};
1
+ "use client";import{createKitI18n as e}from"./createKitI18n.js";import{useMemo as t}from"react";import{jsx as n}from"react/jsx-runtime";import{I18nProvider as r}from"@lingui/react";function i({locale:i=`en`,messages:a,children:o}){return n(r,{i18n:t(()=>e({locale:i,messages:a}),[i,a]),children:o})}export{i as KitI18nProvider};