@babylonlabs-io/wallet-connector 1.0.3 → 1.0.5

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.
@@ -110,6 +110,7 @@ export interface WidgetProps<P extends IProvider = IProvider> {
110
110
  id: string;
111
111
  connector: IConnector;
112
112
  createWallet: (props: ExternalWalletProps<P>) => IWallet<P>;
113
+ onError?: (e: Error) => void;
113
114
  }
114
115
  export type WidgetComponent<P extends IProvider = IProvider> = ComponentType<WidgetProps<P>>;
115
116
  export interface ExternalConnector<P extends IProvider = IProvider> {
@@ -1 +1 @@
1
- export declare function useWalletWidgets(connectors: any, config: any): Record<string, JSX.Element>;
1
+ export declare function useWalletWidgets(connectors: any, config: any, onError?: (e: Error) => void): Record<string, JSX.Element>;