@spicenet-io/spiceflow-ui 4.1.0 → 4.1.1

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 (45) hide show
  1. package/dist/auth-privy.cjs.js +1 -1
  2. package/dist/auth-privy.js +1 -1
  3. package/dist/components/SpiceDeposit/lib/executors.d.ts +2 -1
  4. package/dist/components/SpiceLock/lib/executors.d.ts +1 -6
  5. package/dist/components/SpiceSupply/lib/executors.d.ts +2 -10
  6. package/dist/components/SpiceSupply/parts/SupplyStepStatusCard.d.ts +20 -0
  7. package/dist/components/SpiceWithdraw/SpiceWithdraw.d.ts +0 -1
  8. package/dist/components/SpiceWithdraw/parts/WithdrawBalanceCardHeader.d.ts +12 -0
  9. package/dist/components/SpiceWithdraw/parts/WithdrawDestinationCard.d.ts +28 -0
  10. package/dist/components/SpiceWithdraw/parts/WithdrawSourceCard.d.ts +34 -0
  11. package/dist/components/SpiceWithdraw/parts/WithdrawSubtitle.d.ts +8 -0
  12. package/dist/components/ui/AmountText.d.ts +0 -1
  13. package/dist/components/ui/PercentageDial.d.ts +8 -0
  14. package/dist/components/ui/WarningBanner.d.ts +16 -0
  15. package/dist/components/ui/icons.d.ts +3 -0
  16. package/dist/components/ui/index.d.ts +1 -1
  17. package/dist/execution/externalWalletClient.d.ts +21 -0
  18. package/dist/execution/fundEmbeddedWallet.d.ts +7 -0
  19. package/dist/execution/intentSigning.d.ts +12 -0
  20. package/dist/execution/intentStatus.d.ts +0 -6
  21. package/dist/execution/pollIntentStep.d.ts +2 -3
  22. package/dist/hooks/useDebouncedEstimate.d.ts +12 -0
  23. package/dist/hooks/useLockWalletAssets.d.ts +18 -0
  24. package/dist/index.cjs.js +21 -44
  25. package/dist/index.d.ts +6 -10
  26. package/dist/index.js +25 -48
  27. package/dist/privy-COlZvldu.js +2 -0
  28. package/dist/privy-JCBW-mP2.js +2 -0
  29. package/dist/types/status.d.ts +1 -0
  30. package/dist/types/supply.d.ts +4 -0
  31. package/dist/types/withdraw.d.ts +0 -14
  32. package/dist/utils/actionOutputEscrowFunding.d.ts +0 -7
  33. package/dist/utils/amounts.d.ts +1 -0
  34. package/dist/utils/chains/index.d.ts +0 -1
  35. package/dist/utils/crossChainRouter/index.d.ts +0 -1
  36. package/dist/utils/crossChainRouter/liquidityVenues.d.ts +0 -2
  37. package/dist/utils/crossChainRouter/uniV3.d.ts +0 -4
  38. package/dist/utils/errors.d.ts +1 -0
  39. package/dist/utils/logos.d.ts +0 -4
  40. package/dist/utils/relayer/index.d.ts +1 -0
  41. package/package.json +2 -16
  42. package/dist/privy-BpFzOWq5.js +0 -0
  43. package/dist/privy-DayQIFrD.js +0 -0
  44. package/dist/utils/crossChainRouter/buildIntent.d.ts +0 -34
  45. package/dist/utils/crossChainRouter/executeSwapThenAction.d.ts +0 -17
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export type { ProviderLoginProps } from "./components/ProviderLogins";
12
12
  export type { PostDepositContext } from "./types/deposit";
13
13
  export type { SpiceDepositProps, EscrowRecovery, } from "./components/SpiceDeposit/SpiceDeposit";
14
14
  export type { SpiceWithdrawProps } from "./components/SpiceWithdraw/SpiceWithdraw";
15
- export type { DestinationToken, SpiceWithdrawDeliveryTransfer, SpiceWithdrawRequest, SpiceWithdrawResponse, } from "./types/withdraw";
15
+ export type { DestinationToken, SpiceWithdrawDeliveryTransfer, } from "./types/withdraw";
16
16
  export type { SpiceSupplyProps, DestinationTokenConfig, BuildActionCallsContext, PayExecuteContext, } from "./types/supply";
17
17
  export type { SpiceLockModalProps, LockDurationOption, LockBatchContext, LockExecuteContext, } from "./types/lock";
18
18
  export type { AccountDisplayProps, AccountNotice, CustomSection, CustomSectionItem, SpiceAsset, BreakdownLabel, } from "./components/AccountDisplay";
@@ -42,7 +42,7 @@ export { buildPayChainBatches, buildSupplyChainBatches, estimateRequiredGrossFun
42
42
  export type { BatchBuilderContext } from "./components/SpiceSupply/lib/buildBatches";
43
43
  export { estimateFeePreview, estimateSupplyMaxAmount, } from "./components/SpiceSupply/lib/feePreview";
44
44
  export type { FeePreviewContext } from "./components/SpiceSupply/lib/feePreview";
45
- export { executeSupply, executeNon7702Supply, executeDirectExternalAction, executeNon7702Pay, executePay, } from "./components/SpiceSupply/lib/executors";
45
+ export { executeSupply, executePay, } from "./components/SpiceSupply/lib/executors";
46
46
  export type { ExecutorContext, SupplyStep, PaymentResult, } from "./components/SpiceSupply/lib/executors";
47
47
  export { SpiceflowError, isSpiceflowError } from "./utils/errors";
48
48
  export type { SpiceflowErrorCode, RelayerErrorDetail } from "./utils/errors";
@@ -53,17 +53,13 @@ export { getChainConfig, getChainName } from "./utils/chains";
53
53
  export { SPICE_COMBINED_FEE_RECIPIENT, SPICE_GAS_FEE_RECIPIENT, SPICE_PLATFORM_FEE_RECIPIENT, SPICE_SOLVER_ADDRESS, } from "./utils/spiceConstants";
54
54
  export { isNativeToken, getEscrowContractAddress, SPICENET_NATIVE_CHAIN_ID, isSpicenetChainId, normalizeNativeTokenAddress, getChainIdsByNetwork, ZERO_ADDRESS as NATIVE_TOKEN_ADDRESS, } from "@spicenet-io/spiceflow-core";
55
55
  export type { SpiceFlowNetwork } from "./providers";
56
- export { resolveRoute, buildRoutedBatches, findTokenOnChain, findEquivalentOnChain, } from "./utils/crossChainRouter";
56
+ export { resolveRoute, buildRoutedBatches, findEquivalentOnChain, } from "./utils/crossChainRouter";
57
57
  export { areEquivalentOnChains, getAssetChainTokenCandidates, resolveAssetTokenAddressOnChain, resolveFundedToken, } from "./utils/tokenResolution";
58
- export { buildIntent, resolveTokenRef, } from "./utils/crossChainRouter/buildIntent";
59
58
  export type { ChainToken, RouteStrategy, RoutePlan, ResolveRouteParams, BuildRoutedBatchesParams, RoutedBatchesResult, } from "./utils/crossChainRouter";
60
- export type { TokenRef, IntentAction, BuildIntentParams, BuildIntentResult, } from "./utils/crossChainRouter/buildIntent";
61
- export { createLiquidityRegistry, create1inchVenue, createSatsumaVenue, isSwapIntent, SATSUMA_CITREA_CONFIG, UNIV3_BASE_CONFIG, } from "./utils/crossChainRouter/liquidityVenues";
62
- export { executeSwapThenAction, applyBuffer, } from "./utils/crossChainRouter/executeSwapThenAction";
63
- export type { ResolvedSwap, LiquidityVenue, LiquidityRegistry, LiquidityRegistryConfig, OneInchVenueConfig, SatsumaVenueConfig, } from "./utils/crossChainRouter/liquidityVenues";
64
- export type { ExecuteFn, SwapThenActionParams, } from "./utils/crossChainRouter/executeSwapThenAction";
59
+ export { createLiquidityRegistry, createSatsumaVenue, SATSUMA_CITREA_CONFIG, UNIV3_BASE_CONFIG, } from "./utils/crossChainRouter/liquidityVenues";
60
+ export type { ResolvedSwap, LiquidityVenue, LiquidityRegistry, LiquidityRegistryConfig, SatsumaVenueConfig, } from "./utils/crossChainRouter/liquidityVenues";
65
61
  export { createExactOutputRegistry } from "./utils/swapQuotes";
66
62
  export type { ExactOutputSwapIntent, ResolvedExactOutputSwap, ExactOutputVenue, ExactOutputRegistry, } from "./utils/swapQuotes";
67
63
  export { buildUniV3SwapCalls, applySlippage, } from "@spicenet-io/spiceflow-core";
68
64
  export type { UniV3SwapConfig, UniV3BuildSwapParams, UniV3QuoteParams, UniV3QuoteResult, } from "@spicenet-io/spiceflow-core";
69
- export { getUniV3Quote, getBestUniV3Quote, } from "./utils/crossChainRouter/uniV3";
65
+ export { getBestUniV3Quote } from "./utils/crossChainRouter/uniV3";