@near-wallet-selector/core
Advanced tools
Comparing version 4.0.0-alpha.1 to 4.0.0
@@ -20,7 +20,7 @@ import type { Wallet, WalletModuleFactory } from "./wallet/wallet.types"; | ||
options: Options; | ||
signedIn: boolean; | ||
store: WalletSelectorStore; | ||
wallet<Variation extends Wallet = Wallet>(id?: string): Promise<Variation>; | ||
isSignedIn(): boolean; | ||
on<EventName extends keyof WalletSelectorEvents>(eventName: EventName, callback: (event: WalletSelectorEvents[EventName]) => void): Subscription; | ||
off<EventName extends keyof WalletSelectorEvents>(eventName: EventName, callback: (event: WalletSelectorEvents[EventName]) => void): void; | ||
} |
@@ -85,2 +85,5 @@ import { providers } from "near-api-js"; | ||
export declare type WalletType = Wallet["type"]; | ||
export interface WalletModuleOptions { | ||
options: Options; | ||
} | ||
export interface WalletBehaviourOptions<Variation extends Wallet> { | ||
@@ -104,3 +107,3 @@ id: Variation["id"]; | ||
}; | ||
export declare type WalletModuleFactory<Variation extends Wallet = Wallet> = () => Promise<WalletModule<Variation> | null>; | ||
export declare type WalletModuleFactory<Variation extends Wallet = Wallet> = (options: WalletModuleOptions) => Promise<WalletModule<Variation> | null>; | ||
export {}; |
{ | ||
"name": "@near-wallet-selector/core", | ||
"version": "4.0.0-alpha.1", | ||
"version": "4.0.0", | ||
"main": "./index.umd.js", | ||
@@ -5,0 +5,0 @@ "module": "./index.esm.js", |
@@ -40,5 +40,2 @@ # @near-wallet-selector/core | ||
- `modules` (`Array<WalletModuleFactory>`): List of wallets to support in your dApp. | ||
- `ui` (`ModalOptions?`) | ||
- `theme` (`Theme?`): Specify light/dark theme for UI. Defaults to the browser configuration when omitted or set to 'auto'. This can be either `light`, `dark` or `auto`. | ||
- `description` (`string?`): Define a custom description in the UI. | ||
@@ -45,0 +42,0 @@ ## API Reference |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10207
1
386648
48