@spicenet-io/spiceflow-ui 4.18.3-conditional-intents.1 → 4.18.3-open-items.0
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.
- package/dist/auth-privy.cjs.js +1 -1
- package/dist/auth-privy.js +1 -1
- package/dist/components/SpiceLock/lib/helpers.d.ts +0 -1
- package/dist/components/SpiceSupply/lib/actionProceeds.d.ts +0 -1
- package/dist/components/SpiceSupply/lib/feeConversion.d.ts +1 -1
- package/dist/components/SpiceSupply/lib/feePreview.d.ts +0 -2
- package/dist/components/SpiceSupply/lib/payFundingBatches.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useIsUserWhitelisted.d.ts +12 -12
- package/dist/hooks/useSpiceLock.d.ts +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.ts +2 -3
- package/dist/index.js +7 -7
- package/dist/privy-Df1bsdsz.js +2 -0
- package/dist/privy-bpWnnrnW.js +2 -0
- package/dist/types/deposit.d.ts +0 -2
- package/dist/utils/crossChainRouter/liquidityVenues.d.ts +0 -1
- package/dist/utils/relayer/index.d.ts +1 -17
- package/package.json +2 -2
- package/dist/execution/conditionalSwap.d.ts +0 -17
- package/dist/hooks/useSpiceConditionalIntents.d.ts +0 -18
- package/dist/privy-CRga-pwW.js +0 -2
- package/dist/privy-GaIGyPBi.js +0 -2
- package/dist/types/conditionalIntents.d.ts +0 -54
package/dist/auth-privy.cjs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
(function(){if(typeof document==="undefined"||document.getElementById("spiceflow-styles"))return;var s=document.createElement("style");s.id="spiceflow-styles";s.textContent="@keyframes spiceflow-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{border-radius:4px;outline:2px solid currentColor;outline-offset:2px}@media (forced-colors:active){.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{outline:2px solid Highlight}}.ibm-plex-mono-thin{font-weight:100}.ibm-plex-mono-extralight,.ibm-plex-mono-thin{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-extralight{font-weight:200}.ibm-plex-mono-light{font-weight:300}.ibm-plex-mono-light,.ibm-plex-mono-regular{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-regular{font-weight:400}.ibm-plex-mono-medium{font-weight:500}.ibm-plex-mono-medium,.ibm-plex-mono-semibold{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-semibold{font-weight:600}.ibm-plex-mono-bold{font-family:IBM Plex Mono,monospace!important;font-style:normal;font-weight:700}#privy-modal-content button{border-radius:6px;font-family:IBM Plex Mono,monospace!important;font-size:small;letter-spacing:-.5px;text-transform:uppercase}#privy-modal-content input{background:#fff;border-radius:6px;padding-top:5px!important}#privy-dialog-title{display:none!important;font-size:18px;padding-bottom:10px;padding-top:10px}.AppLogoContainer-sc-a206bd44-0{display:none}#privy-modal-content{background:var(--Neutral-0,#fafafa);border:6px solid var(--Neutral-1,#e9e9e9);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 330px 92px transparent,0 211px 84px rgba(0,0,0,.01),0 119px 71px rgba(0,0,0,.05),0 53px 53px rgba(0,0,0,.09),0 13px 29px rgba(0,0,0,.1);height:auto!important;padding-bottom:10px}.Subtitle-sc-ddbf22b4-4{font-size:12px;margin-top:-14px;opacity:.5}.StyledLink-sc-1c6127e5-0{background:none!important}.StyledLink-sc-c8577138-0,.login-method-button{font-family:IBM Plex Mono,monospace!important}.StyledLink-sc-c8577138-0{font-style:uppercase}#protected-by-privy{color:#000!important}";document.head.appendChild(s)})();
|
|
3
|
-
"use strict";const r=require("./privy-
|
|
3
|
+
"use strict";const r=require("./privy-Df1bsdsz.js");require("react/jsx-runtime"),require("react"),require("@spicenet-io/spiceflow-core"),require("@tanstack/react-query"),require("viem"),require("@privy-io/react-auth"),require("wagmi"),require("viem/actions"),exports.PrivyLogin=r.PrivyLogin;
|
package/dist/auth-privy.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
(function(){if(typeof document==="undefined"||document.getElementById("spiceflow-styles"))return;var s=document.createElement("style");s.id="spiceflow-styles";s.textContent="@keyframes spiceflow-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{border-radius:4px;outline:2px solid currentColor;outline-offset:2px}@media (forced-colors:active){.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{outline:2px solid Highlight}}.ibm-plex-mono-thin{font-weight:100}.ibm-plex-mono-extralight,.ibm-plex-mono-thin{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-extralight{font-weight:200}.ibm-plex-mono-light{font-weight:300}.ibm-plex-mono-light,.ibm-plex-mono-regular{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-regular{font-weight:400}.ibm-plex-mono-medium{font-weight:500}.ibm-plex-mono-medium,.ibm-plex-mono-semibold{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-semibold{font-weight:600}.ibm-plex-mono-bold{font-family:IBM Plex Mono,monospace!important;font-style:normal;font-weight:700}#privy-modal-content button{border-radius:6px;font-family:IBM Plex Mono,monospace!important;font-size:small;letter-spacing:-.5px;text-transform:uppercase}#privy-modal-content input{background:#fff;border-radius:6px;padding-top:5px!important}#privy-dialog-title{display:none!important;font-size:18px;padding-bottom:10px;padding-top:10px}.AppLogoContainer-sc-a206bd44-0{display:none}#privy-modal-content{background:var(--Neutral-0,#fafafa);border:6px solid var(--Neutral-1,#e9e9e9);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 330px 92px transparent,0 211px 84px rgba(0,0,0,.01),0 119px 71px rgba(0,0,0,.05),0 53px 53px rgba(0,0,0,.09),0 13px 29px rgba(0,0,0,.1);height:auto!important;padding-bottom:10px}.Subtitle-sc-ddbf22b4-4{font-size:12px;margin-top:-14px;opacity:.5}.StyledLink-sc-1c6127e5-0{background:none!important}.StyledLink-sc-c8577138-0,.login-method-button{font-family:IBM Plex Mono,monospace!important}.StyledLink-sc-c8577138-0{font-style:uppercase}#protected-by-privy{color:#000!important}";document.head.appendChild(s)})();
|
|
3
|
-
import{P as g}from"./privy-
|
|
3
|
+
import{P as g}from"./privy-bpWnnrnW.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"@tanstack/react-query";import"viem";import"@privy-io/react-auth";import"wagmi";import"viem/actions";export{g as PrivyLogin};
|
|
@@ -49,5 +49,4 @@ export declare function build7702EstimateRequestWithAuthorizations(user: Address
|
|
|
49
49
|
export declare function withSpicenetFundingBatch(batches: ChainBatch[], userAddress: Address, feeEstimate?: FeeEstimateSummary, options?: {
|
|
50
50
|
payoutAlreadyGross?: boolean;
|
|
51
51
|
requestTimestampMs?: number;
|
|
52
|
-
expiresAt?: number;
|
|
53
52
|
}): ChainBatch[];
|
|
@@ -17,6 +17,5 @@ export declare function estimateProceedsFunding(args: {
|
|
|
17
17
|
baseline: () => Promise<SupplyFeeQuote | null>;
|
|
18
18
|
buildBatches: (amount: bigint, options?: SupplyBatchBuildOptions) => Promise<ChainBatch[]>;
|
|
19
19
|
fundShortfall?: boolean;
|
|
20
|
-
expiresAt?: number;
|
|
21
20
|
actionAmountFor?: (fee: bigint) => bigint;
|
|
22
21
|
}): Promise<SupplyFeeQuote>;
|
|
@@ -12,7 +12,7 @@ export interface FundingConversion {
|
|
|
12
12
|
fromProceeds?: boolean;
|
|
13
13
|
fromInput?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare function simulateInPlaceFees(ctx:
|
|
15
|
+
export declare function simulateInPlaceFees(ctx: FeePreviewContext, owner: Address, tokenOut: Address, batches: ChainBatch[]): Promise<{
|
|
16
16
|
gasFee: bigint;
|
|
17
17
|
gasQuoteSource: string;
|
|
18
18
|
simulationVerified?: boolean;
|
|
@@ -63,7 +63,6 @@ export declare function estimateQuotedSupplyFees(params: {
|
|
|
63
63
|
}): Promise<FeeEstimateSummary>;
|
|
64
64
|
export declare function solveGrossFunding(fees: Pick<FeePreview, "grossAmount" | "gasFee" | "spicenetFee" | "bridgeFee">, requiredNetFunding: bigint): bigint;
|
|
65
65
|
export declare function estimatePayFunding(args: {
|
|
66
|
-
expiresAt?: number;
|
|
67
66
|
requiredNetFunding: bigint;
|
|
68
67
|
feeOnlyAction?: boolean;
|
|
69
68
|
buildBatches: (gross: bigint) => ChainBatch[] | Promise<ChainBatch[]>;
|
|
@@ -100,7 +99,6 @@ export declare function estimateSupplyMaxAmount(ctx: {
|
|
|
100
99
|
feeExecutionMode: SpiceSupplyProps["feeExecutionMode"];
|
|
101
100
|
}): Promise<string | null>;
|
|
102
101
|
export interface FeePreviewContext {
|
|
103
|
-
expiresAt?: number;
|
|
104
102
|
combinedSourceGroup?: import("../../../utils/combinedSourceBalances").CombinedSourceGroup;
|
|
105
103
|
getCombinedSourceGroup?: (asset: Asset, reserve?: {
|
|
106
104
|
asset: Asset;
|
|
@@ -4,5 +4,4 @@ import type { ChainBatch } from "../../../types/authorization";
|
|
|
4
4
|
export declare function wrapPayWithSpicenet(raw: ChainBatch[], fundingRecipient: Address, feeEstimate?: FeeEstimateSummary, opts?: {
|
|
5
5
|
payoutAlreadyGross?: boolean;
|
|
6
6
|
requestTimestampMs?: number;
|
|
7
|
-
expiresAt?: number;
|
|
8
7
|
}): ChainBatch[];
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export type { UseWalletReturn, WalletActions, WalletState } from "./useWallet";
|
|
|
6
6
|
export { useSpiceAssets } from "./useSpiceAssets";
|
|
7
7
|
export type { UseSpiceAssetsConfig, UseSpiceAssetsReturn, } from "./useSpiceAssets";
|
|
8
8
|
export { useSpiceExecution } from "./useSpiceExecution";
|
|
9
|
-
export { useSpiceConditionalIntents } from "./useSpiceConditionalIntents";
|
|
10
|
-
export type { ConditionalIntentDraft, ConditionalSwapDraft, PreparedConditionalIntent, } from "../types/conditionalIntents";
|
|
11
9
|
export type { ExecutionOptions, ExecutionProgress, ExecutionStep, OnProgress, } from "./useSpiceExecution";
|
|
12
10
|
export { useLockDuration } from "./useLockDuration";
|
|
13
11
|
export type { UseLockDurationReturn } from "./useLockDuration";
|
|
@@ -43,8 +43,8 @@ export declare function useIsUserWhitelisted({ walletAddress, campaignId, campai
|
|
|
43
43
|
isRefetching: boolean;
|
|
44
44
|
isStale: boolean;
|
|
45
45
|
isEnabled: boolean;
|
|
46
|
-
refetch: (options?: import("@tanstack/query
|
|
47
|
-
fetchStatus: import("@tanstack/query
|
|
46
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<PartnerWhitelistCheckResponse, Error>>;
|
|
47
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
48
48
|
promise: Promise<PartnerWhitelistCheckResponse>;
|
|
49
49
|
isWhitelisted: boolean;
|
|
50
50
|
whitelistCheck: PartnerWhitelistCheckResponse | undefined;
|
|
@@ -82,8 +82,8 @@ export declare function useIsUserWhitelisted({ walletAddress, campaignId, campai
|
|
|
82
82
|
isRefetching: boolean;
|
|
83
83
|
isStale: boolean;
|
|
84
84
|
isEnabled: boolean;
|
|
85
|
-
refetch: (options?: import("@tanstack/query
|
|
86
|
-
fetchStatus: import("@tanstack/query
|
|
85
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<PartnerWhitelistCheckResponse, Error>>;
|
|
86
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
87
87
|
promise: Promise<PartnerWhitelistCheckResponse>;
|
|
88
88
|
isWhitelisted: boolean;
|
|
89
89
|
whitelistCheck: PartnerWhitelistCheckResponse | undefined;
|
|
@@ -121,8 +121,8 @@ export declare function useIsUserWhitelisted({ walletAddress, campaignId, campai
|
|
|
121
121
|
isRefetching: boolean;
|
|
122
122
|
isStale: boolean;
|
|
123
123
|
isEnabled: boolean;
|
|
124
|
-
refetch: (options?: import("@tanstack/query
|
|
125
|
-
fetchStatus: import("@tanstack/query
|
|
124
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<PartnerWhitelistCheckResponse, Error>>;
|
|
125
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
126
126
|
promise: Promise<PartnerWhitelistCheckResponse>;
|
|
127
127
|
isWhitelisted: boolean;
|
|
128
128
|
whitelistCheck: PartnerWhitelistCheckResponse | undefined;
|
|
@@ -160,8 +160,8 @@ export declare function useIsUserWhitelisted({ walletAddress, campaignId, campai
|
|
|
160
160
|
isRefetching: boolean;
|
|
161
161
|
isStale: boolean;
|
|
162
162
|
isEnabled: boolean;
|
|
163
|
-
refetch: (options?: import("@tanstack/query
|
|
164
|
-
fetchStatus: import("@tanstack/query
|
|
163
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<PartnerWhitelistCheckResponse, Error>>;
|
|
164
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
165
165
|
promise: Promise<PartnerWhitelistCheckResponse>;
|
|
166
166
|
isWhitelisted: boolean;
|
|
167
167
|
whitelistCheck: PartnerWhitelistCheckResponse | undefined;
|
|
@@ -199,8 +199,8 @@ export declare function useIsUserWhitelisted({ walletAddress, campaignId, campai
|
|
|
199
199
|
isRefetching: boolean;
|
|
200
200
|
isStale: boolean;
|
|
201
201
|
isEnabled: boolean;
|
|
202
|
-
refetch: (options?: import("@tanstack/query
|
|
203
|
-
fetchStatus: import("@tanstack/query
|
|
202
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<PartnerWhitelistCheckResponse, Error>>;
|
|
203
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
204
204
|
promise: Promise<PartnerWhitelistCheckResponse>;
|
|
205
205
|
isWhitelisted: boolean;
|
|
206
206
|
whitelistCheck: PartnerWhitelistCheckResponse | undefined;
|
|
@@ -238,8 +238,8 @@ export declare function useIsUserWhitelisted({ walletAddress, campaignId, campai
|
|
|
238
238
|
isRefetching: boolean;
|
|
239
239
|
isStale: boolean;
|
|
240
240
|
isEnabled: boolean;
|
|
241
|
-
refetch: (options?: import("@tanstack/query
|
|
242
|
-
fetchStatus: import("@tanstack/query
|
|
241
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<PartnerWhitelistCheckResponse, Error>>;
|
|
242
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
243
243
|
promise: Promise<PartnerWhitelistCheckResponse>;
|
|
244
244
|
isWhitelisted: boolean;
|
|
245
245
|
whitelistCheck: PartnerWhitelistCheckResponse | undefined;
|
|
@@ -28,7 +28,7 @@ export declare function useSpiceLock(params: UseSpiceLockParams): {
|
|
|
28
28
|
exactOutputSwap: import("..").ResolvedExactOutputSwap | null;
|
|
29
29
|
sourceExactOutputSwap: import("..").ResolvedExactOutputSwap | null;
|
|
30
30
|
inputDecimals?: number | null;
|
|
31
|
-
resolvedTokenIn: import("
|
|
31
|
+
resolvedTokenIn: import("viem").Address | null;
|
|
32
32
|
isDirect: boolean;
|
|
33
33
|
needsSwap: boolean;
|
|
34
34
|
selectedIsEquivalent: boolean;
|