@spicenet-io/spiceflow-ui 3.3.5 → 3.3.7

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 (82) hide show
  1. package/dist/Button-CkSwrat1.js +2 -0
  2. package/dist/Button-jx5yrM-s.js +2 -0
  3. package/dist/auth-dynamic.cjs.js +1 -1
  4. package/dist/auth-dynamic.js +1 -1
  5. package/dist/auth-privy.cjs.js +1 -1
  6. package/dist/auth-privy.js +1 -1
  7. package/dist/components/AccountDisplay/AccountCustomSection.d.ts +2 -2
  8. package/dist/components/AccountDisplay/AccountDisplay.d.ts +1 -1
  9. package/dist/components/AccountDisplay/AccountHeader.d.ts +1 -1
  10. package/dist/components/AccountDisplay/AccountIdleBalances.d.ts +2 -2
  11. package/dist/components/AccountDisplay/AccountPanel.d.ts +2 -2
  12. package/dist/components/AccountDisplay/AccountPendingDeposits.d.ts +1 -1
  13. package/dist/components/AccountDisplay/index.d.ts +2 -2
  14. package/dist/{types/account.d.ts → components/AccountDisplay/types.d.ts} +2 -3
  15. package/dist/components/SpiceBalance/SpiceBalance.d.ts +1 -1
  16. package/dist/components/SpiceBalance/index.d.ts +1 -1
  17. package/dist/{types/balance.d.ts → components/SpiceBalance/types.d.ts} +1 -1
  18. package/dist/components/SpiceDeposit/executors.d.ts +64 -0
  19. package/dist/components/SpiceDeposit/feePreview.d.ts +15 -0
  20. package/dist/components/SpiceDeposit/views/AssetChooserList.d.ts +21 -0
  21. package/dist/components/SpiceDeposit/views/DepositSubtitle.d.ts +9 -0
  22. package/dist/components/SpiceLock/LockConfirmationPanel.d.ts +4 -0
  23. package/dist/components/SpiceLock/LockDurationSlider.d.ts +4 -0
  24. package/dist/components/SpiceLock/LockExpiryRow.d.ts +4 -0
  25. package/dist/components/{SpiceLockModal/SpiceLockModal.d.ts → SpiceLock/SpiceLock.d.ts} +1 -1
  26. package/dist/components/SpiceLock/VotingPowerRow.d.ts +4 -0
  27. package/dist/components/SpiceLock/executors.d.ts +54 -0
  28. package/dist/components/SpiceLock/helpers.d.ts +31 -0
  29. package/dist/components/SpiceLock/index.d.ts +2 -0
  30. package/dist/components/SpicePay/SpicePay.d.ts +12 -2
  31. package/dist/components/SpiceSupply/DestinationEstimate.d.ts +1 -1
  32. package/dist/components/SpiceSupply/buildBatches.d.ts +35 -0
  33. package/dist/components/SpiceSupply/executors.d.ts +73 -0
  34. package/dist/components/SpiceSupply/feePreview.d.ts +45 -0
  35. package/dist/components/SpiceWithdraw/executors.d.ts +50 -0
  36. package/dist/components/SpiceWithdraw/helpers.d.ts +6 -0
  37. package/dist/components/SpiceWithdraw/views/BalancePopover.d.ts +15 -0
  38. package/dist/components/SpiceWithdraw/views/WithdrawDetailsPanel.d.ts +39 -0
  39. package/dist/hooks/index.d.ts +4 -4
  40. package/dist/hooks/{useLockDuration/index.d.ts → useLockDuration.d.ts} +1 -1
  41. package/dist/hooks/{useSpiceAssets/index.d.ts → useSpiceAssets.d.ts} +1 -1
  42. package/dist/hooks/useSpiceBrand.d.ts +9 -1
  43. package/dist/hooks/{useGaslessExecution/index.d.ts → useSpiceExecution.d.ts} +2 -2
  44. package/dist/hooks/{useStatus/index.d.ts → useStatus.d.ts} +1 -1
  45. package/dist/hooks/{useAssets/index.d.ts → useWalletBalances.d.ts} +1 -1
  46. package/dist/index.cjs.js +12 -12
  47. package/dist/index.d.ts +13 -11
  48. package/dist/index.js +12 -12
  49. package/dist/{providerWallet-CIbQEcIP.js → providerWallet-6FpyLYqw.js} +1 -1
  50. package/dist/{providerWallet-CVHyIqiI.js → providerWallet-Ds1PM0vC.js} +1 -1
  51. package/dist/providers/SpiceFlowProvider.d.ts +2 -0
  52. package/dist/providers/dynamic.d.ts +3 -0
  53. package/dist/providers/privy.d.ts +3 -0
  54. package/dist/types/deposit.d.ts +0 -3
  55. package/dist/types/index.d.ts +0 -4
  56. package/dist/types/lock.d.ts +0 -2
  57. package/dist/types/theme.d.ts +20 -90
  58. package/dist/types/ui.d.ts +1 -1
  59. package/dist/types/wallet.d.ts +5 -24
  60. package/dist/types/withdraw.d.ts +0 -1
  61. package/dist/utils/addresses.d.ts +1 -0
  62. package/dist/utils/chains/index.d.ts +7 -0
  63. package/dist/utils/crossChainRouter/executeSwapThenAction.d.ts +1 -1
  64. package/dist/utils/errors.d.ts +11 -1
  65. package/dist/utils/fees.d.ts +18 -1
  66. package/dist/utils/relayer/index.d.ts +2 -6
  67. package/package.json +5 -5
  68. package/dist/Button-BXgazUZN.js +0 -2
  69. package/dist/Button-d9wfO_xs.js +0 -2
  70. package/dist/auth-dynamic.d.ts +0 -3
  71. package/dist/auth-privy.d.ts +0 -3
  72. package/dist/components/SpiceLockModal/LockSubComponents.d.ts +0 -7
  73. package/dist/components/SpiceLockModal/index.d.ts +0 -1
  74. package/dist/errors.d.ts +0 -8
  75. package/dist/types/pay.d.ts +0 -30
  76. package/dist/types/rollup.d.ts +0 -50
  77. package/dist/types/unified.d.ts +0 -85
  78. package/dist/utils/abis/spicenet.d.ts +0 -115
  79. package/dist/utils/abis/spicenetWalletManager.d.ts +0 -566
  80. /package/dist/hooks/{useAssetInput/index.d.ts → useAssetInput.d.ts} +0 -0
  81. /package/dist/utils/{loadFonts.d.ts → fonts.d.ts} +0 -0
  82. /package/dist/utils/{resolveTheme.d.ts → theme.d.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -3,7 +3,8 @@ export { SpiceDeposit } from "./components/SpiceDeposit";
3
3
  export { SelectChainModal } from "./components/SpiceDeposit/SelectChainModal";
4
4
  export { SpiceBalance } from "./components/SpiceBalance";
5
5
  export { SpiceWithdraw } from "./components/SpiceWithdraw";
6
- export { SpiceLockModal } from "./components/SpiceLockModal";
6
+ export { SpiceLock } from "./components/SpiceLock";
7
+ export { SpiceLockModal } from "./components/SpiceLock";
7
8
  export { SpicePay } from "./components/SpicePay";
8
9
  export { ExportWalletButton } from "./components/ExportWallet";
9
10
  export { AccountDisplay } from "./components/AccountDisplay";
@@ -16,20 +17,21 @@ export type { ProviderLoginProps } from "./components/ProviderLogins";
16
17
  export type { PostDepositContext } from "./types/deposit";
17
18
  export type { SpiceDepositProps, EscrowRecovery, } from "./components/SpiceDeposit/SpiceDeposit";
18
19
  export type { SpiceWithdrawProps } from "./components/SpiceWithdraw/SpiceWithdraw";
19
- export type { SpiceBalanceProps, BalanceData, TradingAccount, AccountItem, } from "./types/balance";
20
+ export type { SpiceBalanceProps, BalanceData, TradingAccount, } from "./components/SpiceBalance";
21
+ export type { AccountItem } from "./components/SpiceBalance/types";
20
22
  export type { DestinationToken, SpiceWithdrawRequest, SpiceWithdrawResponse, } from "./types/withdraw";
21
23
  export type { SpiceSupplyProps, DestinationTokenConfig, BuildActionCallsContext, PayExecuteContext, } from "./types/supply";
22
24
  export type { SpiceLockModalProps, LockDurationOption, LockBatchContext, LockExecuteContext, } from "./types/lock";
23
25
  export type { SpicePayProps } from "./components/SpicePay/SpicePay";
24
26
  export type { ExportWalletButtonProps } from "./components/ExportWallet";
25
- export type { AccountDisplayProps, CustomSection, CustomSectionItem, SpiceAsset, BreakdownLabel, } from "./types/account";
27
+ export type { AccountDisplayProps, CustomSection, CustomSectionItem, SpiceAsset, BreakdownLabel, } from "./components/AccountDisplay";
26
28
  export { useAssetInput, useWallet, useSpiceAssets, useEmbeddedWalletAddress, useSpiceExecution, useGaslessExecution, useLockDuration, useSpicePendingDeposits, useSpiceBrand, useSmartWallet, } from "./hooks";
27
29
  export type { UseAssetInputReturn, UseWalletReturn, WalletState, WalletActions, UseSpiceAssetsConfig, UseSpiceAssetsReturn, GaslessProgress, GaslessStep, GaslessExecutionOptions, OnProgress, UseLockDurationReturn, VerifiedPendingDeposit, UseSpicePendingDepositsOptions, UseSpicePendingDepositsReturn, } from "./hooks";
28
- export type { SpiceTheme, ResolvedSpiceTheme, Theme, SpiceBrand, DarkPalette, PaletteOverrides, CustomStyles, SpiceDepositStyles, SpiceWithdrawStyles, SpiceLockModalStyles, SpiceSupplyStyles, SpiceBalanceStyles, AccountDisplayStyles, ButtonTheme, ContainerTheme, AssetSelectorTheme, TokenDropdownTheme, StatusDisplayTheme, AddressDisplayTheme, ErrorTheme, } from "./types/theme";
29
- export { resolveTheme } from "./utils/resolveTheme";
30
- export { buildDarkPalette } from "./utils/resolveTheme";
31
- export type { ResolvedDarkPalette } from "./utils/resolveTheme";
32
- export { buildLightPalette } from "./utils/resolveTheme";
30
+ export type { SpiceTheme, ResolvedSpiceTheme, Theme, CustomStyles, TextStyle, ButtonTheme, ContainerTheme, AssetSelectorTheme, TokenDropdownTheme, StatusDisplayTheme, AddressDisplayTheme, ErrorTheme, } from "./types/theme";
31
+ export { resolveTheme } from "./utils/theme";
32
+ export { buildDarkPalette } from "./utils/theme";
33
+ export type { ResolvedDarkPalette } from "./utils/theme";
34
+ export { buildLightPalette } from "./utils/theme";
33
35
  export { Spinner } from "./components/ui/Spinner";
34
36
  export { StatusBanner } from "./components/ui/StatusBanner";
35
37
  export { DetailRow } from "./components/ui/DetailRow";
@@ -45,11 +47,11 @@ export type { ZIndex } from "./utils/tokens";
45
47
  export type { UseSpiceBrandResult } from "./hooks/useSpiceBrand";
46
48
  export type { Asset } from "./types/assets";
47
49
  export type { Call, ChainBatch, SwapIntent, BatchEntry, TokenTransferConfig, } from "./types/authorization";
48
- export { SpiceflowError, isSpiceflowError } from "./errors";
49
- export type { SpiceflowErrorCode } from "./errors";
50
+ export { SpiceflowError, isSpiceflowError } from "./utils/errors";
51
+ export type { SpiceflowErrorCode } from "./utils/errors";
50
52
  export type { WalletProvider, WalletLoginProps, ProviderConfig, } from "./types/wallet";
51
53
  export { relayerService } from "./utils/relayer";
52
- export { spicenetAbi, spicenetAbi as spicenetWithdrawalAbi, } from "./utils/abis/spicenet";
54
+ export { spicenetAbi, spicenetAbi as spicenetWithdrawalAbi, } from "@spicenet-io/spiceflow-core";
53
55
  export { DEFAULT_BRIDGE_FEE_BUFFER_BPS, DEFAULT_SQUID_INTEGRATOR_ID, buildRebalancingMetadata, buildRebalancingBatch, quoteCctpFee, quoteSquidFee, } from "./utils/rebalancing";
54
56
  export type { BridgeFeeQuote, BridgeProvider, CctpTransferMode, RebalancingRequestParams, SquidQuoteParams, } from "./utils/rebalancing";
55
57
  export { getChainConfig, getChainName } from "./utils/chains";