@spicenet-io/spiceflow-ui 4.0.13-next.5 → 4.0.14

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 (35) hide show
  1. package/dist/auth-privy.js +1 -1
  2. package/dist/components/AccountDisplay/types.d.ts +0 -3
  3. package/dist/components/SpiceLock/index.d.ts +0 -1
  4. package/dist/components/SpiceLock/lib/executors.d.ts +0 -1
  5. package/dist/components/SpiceSupply/lib/executors.d.ts +1 -1
  6. package/dist/components/SpiceWithdraw/lib/executors.d.ts +1 -1
  7. package/dist/components/SpiceWithdraw/lib/feePreview.d.ts +0 -1
  8. package/dist/components/SpiceWithdraw/lib/helpers.d.ts +0 -2
  9. package/dist/components/ui/index.d.ts +1 -1
  10. package/dist/hooks/index.d.ts +0 -2
  11. package/dist/hooks/useSupplyAssets.d.ts +2 -8
  12. package/dist/index.cjs.js +8 -8
  13. package/dist/index.d.ts +4 -6
  14. package/dist/index.js +12 -12
  15. package/dist/themes/default.d.ts +0 -1
  16. package/dist/types/assets.d.ts +0 -1
  17. package/dist/types/authorization.d.ts +0 -4
  18. package/dist/types/deposit.d.ts +2 -19
  19. package/dist/types/index.d.ts +1 -1
  20. package/dist/types/lock.d.ts +1 -1
  21. package/dist/types/ui.d.ts +0 -9
  22. package/dist/types/wallet.d.ts +0 -28
  23. package/dist/types/withdraw.d.ts +0 -2
  24. package/dist/utils/crossChainRouter/liquidityVenues.d.ts +0 -5
  25. package/dist/utils/logos.d.ts +0 -2
  26. package/dist/utils/pendingDeposit.d.ts +0 -1
  27. package/dist/utils/rollupBalances.d.ts +0 -1
  28. package/package.json +7 -5
  29. package/dist/components/SpiceDeposit/parts/ModalHeader.d.ts +0 -5
  30. package/dist/components/SpiceSupply/parts/SupplyEstimate.d.ts +0 -4
  31. package/dist/components/index.d.ts +0 -5
  32. package/dist/hooks/useSpiceAction.d.ts +0 -49
  33. package/dist/types/configs.d.ts +0 -2
  34. package/dist/utils/crossChainRouter/algebra.d.ts +0 -146
  35. /package/dist/{privy-D2mpwstS.js → privy-Ds5DCgFX.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{P as g}from"./privy-D2mpwstS.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"viem";import"viem/actions";import"@privy-io/react-auth";import"wagmi";import"@tanstack/react-query";export{g as PrivyLogin};
2
+ import{P as g}from"./privy-Ds5DCgFX.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"viem";import"viem/actions";import"@privy-io/react-auth";import"wagmi";import"@tanstack/react-query";export{g as PrivyLogin};
@@ -7,7 +7,6 @@ export interface CustomSectionItem {
7
7
  label: string;
8
8
  displayValue: string;
9
9
  valueColor?: "green" | "red" | "default";
10
- onClick?: () => void;
11
10
  }
12
11
  export interface CustomSection {
13
12
  title: string;
@@ -53,6 +52,4 @@ export interface AccountDisplayProps {
53
52
  onCompleteDeposit?: (deposit: VerifiedPendingDeposit) => void;
54
53
  showModeToggle?: boolean;
55
54
  defaultMode?: "7702" | "non7702";
56
- alwaysShowEmbeddedIdle?: boolean;
57
- showDisconnect?: boolean;
58
55
  }
@@ -1,2 +1 @@
1
1
  export { SpiceLock } from "./SpiceLock";
2
- export { SpiceLock as SpiceLockModal } from "./SpiceLock";
@@ -18,7 +18,6 @@ export type LockExecutorContext = {
18
18
  requiresRelayerFeeEstimate: boolean;
19
19
  address: Address | undefined;
20
20
  embeddedWalletAddress: Address | undefined;
21
- providerEmbeddedAddress: Address | undefined;
22
21
  externalWallet: {
23
22
  getEthereumProvider: () => Promise<any>;
24
23
  } | null | undefined;
@@ -64,7 +64,7 @@ export type ExecutorContext = {
64
64
  spiceDepositSubmittedRef: MutableRefObject<boolean>;
65
65
  abortControllerRef: MutableRefObject<AbortController | null>;
66
66
  };
67
- } & Pick<SpiceSupplyProps, "destinationToken" | "buildActionCalls" | "feeExecutionMode" | "buildSpicenetBatch" | "onPayExecute" | "onSuccess" | "onError">;
67
+ } & Pick<SpiceSupplyProps, "destinationToken" | "buildActionCalls" | "feeExecutionMode" | "buildSpicenetBatch" | "onPayExecute" | "onSuccess">;
68
68
  export declare function executeSupply(ctx: ExecutorContext): Promise<void>;
69
69
  export declare function executeNon7702Supply(ctx: ExecutorContext, signal?: AbortSignal): Promise<void>;
70
70
  export declare function executeDirectExternalAction(ctx: ExecutorContext): Promise<`0x${string}` | undefined>;
@@ -29,6 +29,6 @@ export type WithdrawExecutorContext = {
29
29
  };
30
30
  executionContextRef: MutableRefObject<WithdrawalExecutionContext | null>;
31
31
  isMountedRef: MutableRefObject<boolean>;
32
- } & Pick<SpiceWithdrawProps, "onWithdrawExecute" | "onWithdrawSuccess" | "onWithdrawError" | "buildSpicenetBatch">;
32
+ } & Pick<SpiceWithdrawProps, "onWithdrawExecute" | "onWithdrawSuccess" | "buildSpicenetBatch">;
33
33
  export declare function executeWithdraw(ctx: WithdrawExecutorContext): Promise<void>;
34
34
  export declare function retryWithdraw(ctx: WithdrawExecutorContext): Promise<void>;
@@ -5,6 +5,5 @@ export declare function estimateWithdrawGasFee(ctx: {
5
5
  batches: ChainBatch[];
6
6
  tokenAddress: Address;
7
7
  chainId: number;
8
- userAddress: Address;
9
8
  estimate: ExecutionRunner["estimate"];
10
9
  }): Promise<bigint>;
@@ -1,8 +1,6 @@
1
- import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
2
1
  import type { ChainBatch } from "../../../types/authorization";
3
2
  export declare function normalizeTokenLabel(value?: string | null): string;
4
3
  export declare function formatTokenAmount(rawAmount: bigint, decimals: number): string;
5
4
  export declare function scaleAmountBetweenDecimals(amount: bigint, fromDecimals: number, toDecimals: number): bigint;
6
5
  export declare function estimateUsd(amount: number, symbol?: string): string;
7
6
  export declare function buildWithdrawFeeEstimateKey(batches: ChainBatch[], tokenAddress?: string | null): string | null;
8
- export declare function getFeeAdjustedWithdrawFunding(feeEstimate: FeeEstimateSummary, fallbackChainId: number): bigint | null;
@@ -10,4 +10,4 @@ export { SearchInput } from "./SearchInput";
10
10
  export type { SearchInputProps } from "./SearchInput";
11
11
  export { ChevronIcon, CheckIcon } from "./icons";
12
12
  export type { IconProps } from "./icons";
13
- export type { ButtonProps, InputProps, ModalProps, SpinnerProps, StatusBannerProps, StatusBannerSize, StatusVariant, CloseIconProps, DetailRowProps, AddFundsLinkProps, } from "../../types/ui";
13
+ export type { ButtonProps, InputProps, SpinnerProps, StatusBannerProps, StatusBannerSize, StatusVariant, CloseIconProps, DetailRowProps, AddFundsLinkProps, } from "../../types/ui";
@@ -19,5 +19,3 @@ export type { PartnerWhitelistCheckResponse, UseIsUserWhitelistedOptions, } from
19
19
  export { useSupplyAssets, isSupportedSupplyAsset } from "./useSupplyAssets";
20
20
  export { useSupplyQuote, resolveInputSupplySwapQuote } from "./useSupplyQuote";
21
21
  export type { UseSupplyQuoteOpts, SupplyQuoteResult } from "./useSupplyQuote";
22
- export { useSpiceAction } from "./useSpiceAction";
23
- export type { SpiceActionQuote, SpiceActionSource, UseSpiceActionOptions, UseSpiceActionResult, } from "./useSpiceAction";
@@ -1,10 +1,6 @@
1
1
  import { type Address } from "viem";
2
2
  import type { Asset } from "../types/assets";
3
- type FundingWallet = "embedded" | "external";
4
- type WalletSourcedAsset = Asset & {
5
- _fundingWallet: FundingWallet;
6
- };
7
- export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens"> & Partial<Pick<Asset, "chainId" | "symbol">>, supportedSourceAssets?: string[]): boolean;
3
+ export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens">, supportedSourceAssets?: string[]): boolean;
8
4
  type DestinationToken = {
9
5
  address: Address;
10
6
  decimals: number;
@@ -18,14 +14,12 @@ export declare function useSupplyAssets(opts: {
18
14
  supportedSourceAssets?: string[];
19
15
  sourceChains?: number[];
20
16
  enabled: boolean;
21
- includeAllFundingWallets?: boolean;
22
17
  }): {
23
18
  displayAssets: (Asset & {
24
19
  _source: "wallet" | "spice";
25
- _fundingWallet?: FundingWallet;
26
20
  })[];
27
21
  filteredSpiceAssets: Asset[];
28
- walletAssets: WalletSourcedAsset[];
22
+ walletAssets: Asset[];
29
23
  embeddedWalletAddress: `0x${string}` | undefined;
30
24
  externalAddress: `0x${string}` | undefined;
31
25
  isNon7702: boolean;