6
6
map ,
7
7
merge ,
8
8
mergeMap ,
9
- Observable ,
10
9
of ,
11
10
Subscription ,
12
11
switchMap ,
@@ -30,39 +29,10 @@ import {
30
29
import { GatewayModule , RadixNetworkConfigById } from '../gateway'
31
30
import { StateModule } from '../state'
32
31
import { StorageModule } from '../storage'
33
- import { ConnectButtonStatus } from './types'
32
+ import { ConnectButtonModuleOutput , ConnectButtonStatus } from './types'
34
33
35
34
export type ConnectButtonModule = ReturnType < typeof ConnectButtonModule >
36
35
37
- export type ConnectButtonModuleOutput = {
38
- status$ : Observable < RadixButtonStatus >
39
- onConnect$ : Observable < { challenge : string } | undefined >
40
- onDisconnect$ : Observable < void >
41
- onUpdateSharedData$ : Observable < void >
42
- onShowPopover$ : Observable < void >
43
- onCancelRequestItem$ : Observable < string >
44
- onLinkClick$ : Observable < {
45
- type : 'account' | 'transaction' | 'showQrCode' | 'setupGuide'
46
- data : string
47
- } >
48
- setStatus : ( value : RadixButtonStatus ) => void
49
- setMode : ( value : 'light' | 'dark' ) => void
50
- setTheme : ( value : RadixButtonTheme ) => void
51
- setActiveTab : ( value : 'sharing' | 'requests' ) => void
52
- setIsMobile : ( value : boolean ) => void
53
- setIsWalletLinked : ( value : boolean ) => void
54
- setIsExtensionAvailable : ( value : boolean ) => void
55
- setConnected : ( value : boolean ) => void
56
- setLoggedInTimestamp : ( value : string ) => void
57
- setRequestItems : ( value : RequestItem [ ] ) => void
58
- setAccounts : ( value : Account [ ] ) => void
59
- setPersonaData : ( value : { value : string ; field : string } [ ] ) => void
60
- setPersonaLabel : ( value : string ) => void
61
- setDappName : ( value : string ) => void
62
- destroy : ( ) => void
63
- disconnect : ( ) => void
64
- }
65
-
66
36
export type ConnectButtonModuleInput = {
67
37
networkId : number
68
38
environment ?: string
0 commit comments