@rash2x/bridge-widget 0.5.1 → 0.5.6

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/index.d.ts CHANGED
@@ -61,6 +61,13 @@ declare type BridgeQuoteStatus = "idle" | "loading" | "success" | "error";
61
61
 
62
62
  declare type BridgeQuoteStore = BridgeQuoteState & BridgeQuoteActions;
63
63
 
64
+ export declare interface BridgeUrlParams {
65
+ srcToken?: string;
66
+ srcChain?: string;
67
+ dstChain?: string;
68
+ amount?: string;
69
+ }
70
+
64
71
  export declare function buildAssetMatrix(tokens: Token[]): AssetMatrix;
65
72
 
66
73
  /**
@@ -210,6 +217,9 @@ export declare interface EvaaBridgeProps {
210
217
  walletConnectProjectId?: string;
211
218
  defaultLanguage?: string;
212
219
  transactionIcons?: TransactionIcons;
220
+ enableUrlSync?: boolean;
221
+ urlParams?: BridgeUrlParams;
222
+ onUrlParamsChange?: (params: BridgeUrlParams) => void;
213
223
  onInitialized?: () => void;
214
224
  onSwapStart?: (data: SwapStartData) => void;
215
225
  onSwapSuccess?: (data: SwapSuccessData) => void;