@xyo-network/react-connected-accounts 2.77.0-rc.1 → 2.77.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/classes/EnabledWallets.d.cts +0 -9
- package/dist/browser/classes/EnabledWallets.d.cts.map +1 -1
- package/dist/browser/classes/EnabledWallets.d.mts +0 -9
- package/dist/browser/classes/EnabledWallets.d.mts.map +1 -1
- package/dist/browser/classes/EnabledWallets.d.ts +0 -9
- package/dist/browser/classes/EnabledWallets.d.ts.map +1 -1
- package/dist/browser/hooks/useEnabledWallets.d.cts +0 -6
- package/dist/browser/hooks/useEnabledWallets.d.cts.map +1 -1
- package/dist/browser/hooks/useEnabledWallets.d.mts +0 -6
- package/dist/browser/hooks/useEnabledWallets.d.mts.map +1 -1
- package/dist/browser/hooks/useEnabledWallets.d.ts +0 -6
- package/dist/browser/hooks/useEnabledWallets.d.ts.map +1 -1
- package/dist/browser/index.cjs +1 -577
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -544
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/classes/EnabledWallets.d.cts +0 -9
- package/dist/neutral/classes/EnabledWallets.d.cts.map +1 -1
- package/dist/neutral/classes/EnabledWallets.d.mts +0 -9
- package/dist/neutral/classes/EnabledWallets.d.mts.map +1 -1
- package/dist/neutral/classes/EnabledWallets.d.ts +0 -9
- package/dist/neutral/classes/EnabledWallets.d.ts.map +1 -1
- package/dist/neutral/hooks/useEnabledWallets.d.cts +0 -6
- package/dist/neutral/hooks/useEnabledWallets.d.cts.map +1 -1
- package/dist/neutral/hooks/useEnabledWallets.d.mts +0 -6
- package/dist/neutral/hooks/useEnabledWallets.d.mts.map +1 -1
- package/dist/neutral/hooks/useEnabledWallets.d.ts +0 -6
- package/dist/neutral/hooks/useEnabledWallets.d.ts.map +1 -1
- package/dist/neutral/index.cjs +1 -577
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +1 -544
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/classes/EnabledWallets.d.cts +0 -9
- package/dist/node/classes/EnabledWallets.d.cts.map +1 -1
- package/dist/node/classes/EnabledWallets.d.mts +0 -9
- package/dist/node/classes/EnabledWallets.d.mts.map +1 -1
- package/dist/node/classes/EnabledWallets.d.ts +0 -9
- package/dist/node/classes/EnabledWallets.d.ts.map +1 -1
- package/dist/node/hooks/useEnabledWallets.d.cts +0 -6
- package/dist/node/hooks/useEnabledWallets.d.cts.map +1 -1
- package/dist/node/hooks/useEnabledWallets.d.mts +0 -6
- package/dist/node/hooks/useEnabledWallets.d.mts.map +1 -1
- package/dist/node/hooks/useEnabledWallets.d.ts +0 -6
- package/dist/node/hooks/useEnabledWallets.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -608
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -555
- package/dist/node/index.js.map +1 -1
- package/package.json +5 -6
@@ -1,16 +1,10 @@
|
|
1
1
|
import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto';
|
2
|
-
/**
|
3
|
-
* State for storing wallets and their enabled/disabled status by name
|
4
|
-
*/
|
5
2
|
export interface EnabledEthWalletsState {
|
6
3
|
[rdns: string]: {
|
7
4
|
enabled: boolean;
|
8
5
|
wallet: EIP6963Connector;
|
9
6
|
};
|
10
7
|
}
|
11
|
-
/**
|
12
|
-
* State for storing only enabled/disabled status of a wallet by name
|
13
|
-
*/
|
14
8
|
export interface EnabledWalletsSavedState {
|
15
9
|
[rdns: string]: boolean;
|
16
10
|
}
|
@@ -25,9 +19,6 @@ export declare class EnabledEthWalletConnections {
|
|
25
19
|
get wallets(): EnabledEthWalletsState;
|
26
20
|
disableWallet(rdns: string): void;
|
27
21
|
enableWallet(rdns: string): void;
|
28
|
-
/**
|
29
|
-
* Given a new set of wallets, set their enabled state based off previous preferences
|
30
|
-
*/
|
31
22
|
resetWallets(wallets: DiscoveredWallets): void;
|
32
23
|
subscribe(listener: WalletListener): () => void;
|
33
24
|
toggleEnabledWallet(rdns: string, enabled: boolean): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAO1E,MAAM,WAAW,sBAAsB;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;CACF;AAKD,MAAM,WAAW,wBAAwB;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,CAAA;AAEvC,qBAAa,2BAA2B;IAEtC,kBAAkB,UAAO;IAGzB,OAAO,CAAC,cAAc,CAA+B;IAGrD,OAAO,CAAC,eAAe,CAA6B;IAGpD,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,eAAe,CAA4B;gBAEvC,eAAe,SAA4B;IAKvD,IAAI,OAAO,2BAEV;IAED,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,YAAY,CAAC,IAAI,EAAE,MAAM;IAOzB,YAAY,CAAC,OAAO,EAAE,iBAAiB;IAiBvC,SAAS,CAAC,QAAQ,EAAE,cAAc;IAOlC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAQlD,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;CAWvB"}
|
@@ -1,16 +1,10 @@
|
|
1
1
|
import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto';
|
2
|
-
/**
|
3
|
-
* State for storing wallets and their enabled/disabled status by name
|
4
|
-
*/
|
5
2
|
export interface EnabledEthWalletsState {
|
6
3
|
[rdns: string]: {
|
7
4
|
enabled: boolean;
|
8
5
|
wallet: EIP6963Connector;
|
9
6
|
};
|
10
7
|
}
|
11
|
-
/**
|
12
|
-
* State for storing only enabled/disabled status of a wallet by name
|
13
|
-
*/
|
14
8
|
export interface EnabledWalletsSavedState {
|
15
9
|
[rdns: string]: boolean;
|
16
10
|
}
|
@@ -25,9 +19,6 @@ export declare class EnabledEthWalletConnections {
|
|
25
19
|
get wallets(): EnabledEthWalletsState;
|
26
20
|
disableWallet(rdns: string): void;
|
27
21
|
enableWallet(rdns: string): void;
|
28
|
-
/**
|
29
|
-
* Given a new set of wallets, set their enabled state based off previous preferences
|
30
|
-
*/
|
31
22
|
resetWallets(wallets: DiscoveredWallets): void;
|
32
23
|
subscribe(listener: WalletListener): () => void;
|
33
24
|
toggleEnabledWallet(rdns: string, enabled: boolean): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAO1E,MAAM,WAAW,sBAAsB;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;CACF;AAKD,MAAM,WAAW,wBAAwB;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,CAAA;AAEvC,qBAAa,2BAA2B;IAEtC,kBAAkB,UAAO;IAGzB,OAAO,CAAC,cAAc,CAA+B;IAGrD,OAAO,CAAC,eAAe,CAA6B;IAGpD,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,eAAe,CAA4B;gBAEvC,eAAe,SAA4B;IAKvD,IAAI,OAAO,2BAEV;IAED,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,YAAY,CAAC,IAAI,EAAE,MAAM;IAOzB,YAAY,CAAC,OAAO,EAAE,iBAAiB;IAiBvC,SAAS,CAAC,QAAQ,EAAE,cAAc;IAOlC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAQlD,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;CAWvB"}
|
@@ -1,16 +1,10 @@
|
|
1
1
|
import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto';
|
2
|
-
/**
|
3
|
-
* State for storing wallets and their enabled/disabled status by name
|
4
|
-
*/
|
5
2
|
export interface EnabledEthWalletsState {
|
6
3
|
[rdns: string]: {
|
7
4
|
enabled: boolean;
|
8
5
|
wallet: EIP6963Connector;
|
9
6
|
};
|
10
7
|
}
|
11
|
-
/**
|
12
|
-
* State for storing only enabled/disabled status of a wallet by name
|
13
|
-
*/
|
14
8
|
export interface EnabledWalletsSavedState {
|
15
9
|
[rdns: string]: boolean;
|
16
10
|
}
|
@@ -25,9 +19,6 @@ export declare class EnabledEthWalletConnections {
|
|
25
19
|
get wallets(): EnabledEthWalletsState;
|
26
20
|
disableWallet(rdns: string): void;
|
27
21
|
enableWallet(rdns: string): void;
|
28
|
-
/**
|
29
|
-
* Given a new set of wallets, set their enabled state based off previous preferences
|
30
|
-
*/
|
31
22
|
resetWallets(wallets: DiscoveredWallets): void;
|
32
23
|
subscribe(listener: WalletListener): () => void;
|
33
24
|
toggleEnabledWallet(rdns: string, enabled: boolean): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAO1E,MAAM,WAAW,sBAAsB;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;CACF;AAKD,MAAM,WAAW,wBAAwB;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,CAAA;AAEvC,qBAAa,2BAA2B;IAEtC,kBAAkB,UAAO;IAGzB,OAAO,CAAC,cAAc,CAA+B;IAGrD,OAAO,CAAC,eAAe,CAA6B;IAGpD,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,eAAe,CAA4B;gBAEvC,eAAe,SAA4B;IAKvD,IAAI,OAAO,2BAEV;IAED,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,YAAY,CAAC,IAAI,EAAE,MAAM;IAOzB,YAAY,CAAC,OAAO,EAAE,iBAAiB;IAiBvC,SAAS,CAAC,QAAQ,EAAE,cAAc;IAOlC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAQlD,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;CAWvB"}
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { EnabledEthWalletsState, EnabledWalletsSavedState } from '../classes';
|
2
|
-
/**
|
3
|
-
* Takes the discovered wallets and tracks their enabled state globally
|
4
|
-
*/
|
5
2
|
export declare const useEnabledWalletsInner: (enabledWalletsRdns?: EnabledWalletsSavedState) => EnabledEthWalletsState;
|
6
|
-
/**
|
7
|
-
* Expose an interface for enabling and disabling wallets
|
8
|
-
*/
|
9
3
|
export declare const useEnabledWallets: (enabledWalletsRdns?: EnabledWalletsSavedState) => {
|
10
4
|
disableWallet: ((rdns: string) => void) | undefined;
|
11
5
|
enableWallet: ((rdns: string) => void) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useEnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnabledWallets.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;
|
1
|
+
{"version":3,"file":"useEnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnabledWallets.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAO1G,eAAO,MAAM,sBAAsB,wBAAyB,wBAAwB,2BAYnF,CAAA;AAKD,eAAO,MAAM,iBAAiB,wBAAyB,wBAAwB;;;;;CAkB9E,CAAA"}
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { EnabledEthWalletsState, EnabledWalletsSavedState } from '../classes';
|
2
|
-
/**
|
3
|
-
* Takes the discovered wallets and tracks their enabled state globally
|
4
|
-
*/
|
5
2
|
export declare const useEnabledWalletsInner: (enabledWalletsRdns?: EnabledWalletsSavedState) => EnabledEthWalletsState;
|
6
|
-
/**
|
7
|
-
* Expose an interface for enabling and disabling wallets
|
8
|
-
*/
|
9
3
|
export declare const useEnabledWallets: (enabledWalletsRdns?: EnabledWalletsSavedState) => {
|
10
4
|
disableWallet: ((rdns: string) => void) | undefined;
|
11
5
|
enableWallet: ((rdns: string) => void) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useEnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnabledWallets.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;
|
1
|
+
{"version":3,"file":"useEnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnabledWallets.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAO1G,eAAO,MAAM,sBAAsB,wBAAyB,wBAAwB,2BAYnF,CAAA;AAKD,eAAO,MAAM,iBAAiB,wBAAyB,wBAAwB;;;;;CAkB9E,CAAA"}
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { EnabledEthWalletsState, EnabledWalletsSavedState } from '../classes';
|
2
|
-
/**
|
3
|
-
* Takes the discovered wallets and tracks their enabled state globally
|
4
|
-
*/
|
5
2
|
export declare const useEnabledWalletsInner: (enabledWalletsRdns?: EnabledWalletsSavedState) => EnabledEthWalletsState;
|
6
|
-
/**
|
7
|
-
* Expose an interface for enabling and disabling wallets
|
8
|
-
*/
|
9
3
|
export declare const useEnabledWallets: (enabledWalletsRdns?: EnabledWalletsSavedState) => {
|
10
4
|
disableWallet: ((rdns: string) => void) | undefined;
|
11
5
|
enableWallet: ((rdns: string) => void) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useEnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnabledWallets.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;
|
1
|
+
{"version":3,"file":"useEnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnabledWallets.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAO1G,eAAO,MAAM,sBAAsB,wBAAyB,wBAAwB,2BAYnF,CAAA;AAKD,eAAO,MAAM,iBAAiB,wBAAyB,wBAAwB;;;;;CAkB9E,CAAA"}
|