@toruslabs/base-controllers
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -63,2 +63,13 @@ export declare const FEATURES_PROVIDER_CHANGE_WINDOW: { | ||
TRANSACTION_CHANNEL: string; | ||
WALLET_LOGOUT_CHANNEL: string; | ||
WALLET_SELECTED_ADDRESS_CHANNEL: string; | ||
WALLET_NETWORK_CHANGE_CHANNEL: string; | ||
WALLET_ACCOUNT_IMPORT_CHANNEL: string; | ||
}; | ||
export declare const BROADCAST_CHANNELS_MSGS: { | ||
LOGOUT: string; | ||
ACCOUNT_IMPORTED: string; | ||
SELECTED_ADDRESS_CHANGE: string; | ||
NETWORK_CHANGE: string; | ||
}; | ||
export declare type BROADCAST_CHANNELS_MSGS_TYPE = typeof BROADCAST_CHANNELS_MSGS[keyof typeof BROADCAST_CHANNELS_MSGS]; |
export { default as BroadcastChannelHandler } from "./BroadcastChannelHandler"; | ||
export * from "./interfaces"; | ||
export { default as PopupHandler } from "./PopupHandler"; | ||
export { default as PopupStoreChannel } from "./PopupStoreChannel"; | ||
export { default as PopupWithBcHandler } from "./PopupWithBcHandler"; | ||
export { default as RedirectHandler } from "./RedirectHandler"; | ||
export { default as StreamWindow } from "./StreamWindow"; |
import { JRPCEngine, SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; | ||
import { BROADCAST_CHANNELS_MSGS_TYPE } from "../enums"; | ||
import { BaseConfig, BaseState, IWindow } from "../interfaces"; | ||
import { ProviderConfig } from "../Network/INetworkController"; | ||
export interface StreamWindowConfig extends BaseConfig { | ||
@@ -55,1 +57,19 @@ /** | ||
export declare type SuccessExtraFn<T> = (data: T) => Promise<void>; | ||
export interface BasePopupChannelData { | ||
type: BROADCAST_CHANNELS_MSGS_TYPE; | ||
} | ||
export interface AccountImportedChannelData extends BasePopupChannelData { | ||
privKey: string; | ||
} | ||
export interface NetworkChangeChannelData extends BasePopupChannelData { | ||
network: ProviderConfig; | ||
} | ||
export interface SelectedAddresssChangeChannelData extends BasePopupChannelData { | ||
selectedAddress: string; | ||
} | ||
export interface PopupStoreChannelHandlers { | ||
handleLogout(): void; | ||
handleAccountImport(privKey: string): void; | ||
handleNetworkChange(network: ProviderConfig): void; | ||
handleSelectedAddressChange(address: string): void; | ||
} |
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -62,3 +62,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "791558f3b1fea0aa1b2ddd2cc6537e0581514025" | ||
"gitHead": "e458e4abd7a2a75ee2ac80ae5228109552173784" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3332252
43
11182