@rash2x/bridge-widget 0.4.6 → 0.5.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.
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import { PublicClient } from 'viem';
4
4
  import { StoreApi } from 'zustand';
5
5
  import { TonClient } from '@ton/ton';
6
6
  import { TronWeb } from 'tronweb';
7
- import { Types } from 'tronweb';
8
7
  import { UseBoundStore } from 'zustand';
9
8
 
10
9
  /**
@@ -208,6 +207,7 @@ export declare interface EvaaBridgeProps {
208
207
  className?: string;
209
208
  tonClient?: TonClient;
210
209
  tonApiKey?: string;
210
+ walletConnectProjectId?: string;
211
211
  defaultLanguage?: string;
212
212
  transactionIcons?: TransactionIcons;
213
213
  onInitialized?: () => void;
@@ -688,24 +688,6 @@ export declare const useTokensStore: UseBoundStore<StoreApi<TokensStoreType>>;
688
688
 
689
689
  export declare const useTransactionStore: UseBoundStore<StoreApi<Store>>;
690
690
 
691
- export declare function useTronWalletConnect(options: UseTronWalletConnectOptions): UseTronWalletConnectReturn;
692
-
693
- export declare interface UseTronWalletConnectOptions {
694
- projectId: string;
695
- metadata?: WalletMetadata;
696
- themeMode?: "light" | "dark";
697
- themeVariables?: Record<string, string>;
698
- }
699
-
700
- export declare interface UseTronWalletConnectReturn {
701
- address: string | null;
702
- isConnected: boolean;
703
- isConnecting: boolean;
704
- connect: () => Promise<void>;
705
- disconnect: () => Promise<void>;
706
- signTransaction: (transaction: Types.Transaction) => Promise<Types.Transaction>;
707
- }
708
-
709
691
  export declare interface WalletBalance {
710
692
  balance: number;
711
693
  address: string;
@@ -715,11 +697,4 @@ export declare type WalletBalances = Record<string, WalletBalance>;
715
697
 
716
698
  export declare type WalletKind = "ton" | "evm" | "tron" | null;
717
699
 
718
- export declare interface WalletMetadata {
719
- name: string;
720
- description: string;
721
- url: string;
722
- icons: string[];
723
- }
724
-
725
700
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rash2x/bridge-widget",
3
- "version": "0.4.6",
3
+ "version": "0.5.1",
4
4
  "description": "Cross-chain bridge widget powered by Stargate Protocol with multi-chain wallet support",
5
5
  "type": "module",
6
6
  "main": "./dist/evaa-bridge.cjs",