@alephium/get-extension-wallet 0.1.5 → 0.3.0
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.
- package/dist/configs/defaultWallet.d.ts +1 -1
- package/dist/configs/lastConnected.d.ts +1 -1
- package/dist/configs/storageWrapper.d.ts +1 -1
- package/dist/configs/storageWrapper.d.ts.map +1 -1
- package/dist/discovery/index.d.ts +1 -1
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/getAlephium.d.ts +9 -8
- package/dist/getAlephium.d.ts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -9
- package/dist/modal/index.d.ts +3 -3
- package/dist/modal/index.d.ts.map +1 -1
- package/dist/types.d.ts +13 -19
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +4 -4
- package/dist/utils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageWrapper.d.ts","sourceRoot":"","sources":["../../src/configs/storageWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG/C,qBAAa,cAAe,YAAW,eAAe;;IAIpD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAY;gBAEhC,GAAG,EAAE,MAAM;IAOvB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAmBpC,GAAG;
|
|
1
|
+
{"version":3,"file":"storageWrapper.d.ts","sourceRoot":"","sources":["../../src/configs/storageWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG/C,qBAAa,cAAe,YAAW,eAAe;;IAIpD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAY;gBAEhC,GAAG,EAAE,MAAM;IAOvB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAmBpC,GAAG;IAMH,MAAM;CAwCP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/discovery/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/discovery/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;;AAa9C,wBAAkC"}
|
package/dist/getAlephium.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AlephiumWindowObject } from './types';
|
|
2
|
+
import type { DisconnectOptions, GetAlephiumWalletOptions, IGetAlephiumWallet } from './types';
|
|
2
3
|
declare class GetAlephiumWallet implements IGetAlephiumWallet {
|
|
3
4
|
#private;
|
|
4
|
-
connect: (options?: GetAlephiumWalletOptions) => Promise<
|
|
5
|
+
connect: (options?: GetAlephiumWalletOptions) => Promise<AlephiumWindowObject | undefined>;
|
|
5
6
|
constructor();
|
|
6
7
|
disconnect: (options?: DisconnectOptions) => boolean;
|
|
7
|
-
getAlephium: () =>
|
|
8
|
-
getInstalledWallets(options?: Omit<GetAlephiumWalletOptions,
|
|
8
|
+
getAlephium: () => AlephiumWindowObject;
|
|
9
|
+
getInstalledWallets(options?: Omit<GetAlephiumWalletOptions, 'showList' | 'modalOptions'>): Promise<AlephiumWindowObject[]>;
|
|
9
10
|
}
|
|
10
11
|
export declare const gaw: GetAlephiumWallet;
|
|
11
|
-
export declare const getAlephium: () =>
|
|
12
|
-
export declare const connect: (options?: GetAlephiumWalletOptions) => Promise<
|
|
12
|
+
export declare const getAlephium: () => AlephiumWindowObject;
|
|
13
|
+
export declare const connect: (options?: GetAlephiumWalletOptions) => Promise<AlephiumWindowObject | undefined>;
|
|
13
14
|
export declare const disconnect: (options?: DisconnectOptions) => boolean;
|
|
14
|
-
export declare const getInstalledWallets: (options?: Omit<GetAlephiumWalletOptions,
|
|
15
|
-
export * from
|
|
15
|
+
export declare const getInstalledWallets: (options?: Omit<GetAlephiumWalletOptions, 'showList' | 'modalOptions'>) => Promise<AlephiumWindowObject[]>;
|
|
16
|
+
export * from './types';
|
|
16
17
|
//# sourceMappingURL=getAlephium.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAlephium.d.ts","sourceRoot":"","sources":["../src/getAlephium.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getAlephium.d.ts","sourceRoot":"","sources":["../src/getAlephium.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAA2B,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAGvH,cAAM,iBAAkB,YAAW,kBAAkB;;IAGnD,OAAO,aAAoB,wBAAwB,KAAG,QAAQ,oBAAoB,GAAG,SAAS,CAAC,CA4D9F;;IAMD,UAAU,aAAc,iBAAiB,KAAG,OAAO,CAWlD;IAED,WAAW,QAAO,oBAAoB,CA2JrC;IAED,mBAAmB,CACjB,OAAO,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,GAAG,cAAc,CAAC,GACpE,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAmHnC;AAED,eAAO,MAAM,GAAG,mBAA0B,CAAA;AAC1C,eAAO,MAAM,WAAW,QArRJ,oBAqRsB,CAAA;AAC1C,eAAO,MAAM,OAAO,aArWS,wBAAwB,KAAG,QAAQ,oBAAoB,GAAG,SAAS,CAqW9D,CAAA;AAClC,eAAO,MAAM,UAAU,aApSG,iBAAiB,KAAG,OAoSN,CAAA;AACxC,eAAO,MAAM,mBAAmB,aA1HlB,KAAK,wBAAwB,EAAE,UAAU,GAAG,cAAc,CAAC,KACpE,QAAQ,oBAAoB,EAAE,CAyHuB,CAAA;AAE1D,cAAc,SAAS,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DisconnectOptions } from
|
|
3
|
-
export type { EventHandler, EventType, GetAlephiumWalletOptions, IGetAlephiumWallet,
|
|
1
|
+
import type { AlephiumWindowObject, GetAlephiumWalletOptions } from './getAlephium';
|
|
2
|
+
import type { DisconnectOptions } from './types';
|
|
3
|
+
export type { EventHandler, EventType, GetAlephiumWalletOptions, IGetAlephiumWallet, AlephiumWindowObject, IStorageWrapper, ModalOptions, WalletProvider } from './getAlephium';
|
|
4
4
|
/**
|
|
5
5
|
* Get the Alephium window object.
|
|
6
6
|
*
|
|
7
7
|
* @deprecated Please use the connect export and the returned wallet object instead.
|
|
8
8
|
* @returns {Promise<IAlephiumWindowObject>}
|
|
9
9
|
*/
|
|
10
|
-
export declare const getAlephium: () =>
|
|
10
|
+
export declare const getAlephium: () => AlephiumWindowObject;
|
|
11
11
|
/**
|
|
12
12
|
* Connect to a Alephium wallet.
|
|
13
13
|
*
|
|
14
14
|
* @param {GetAlephiumWalletOptions} [options]
|
|
15
15
|
* @returns {Promise<IAlephiumWindowObject>}
|
|
16
16
|
*/
|
|
17
|
-
export declare const connect: (options?: GetAlephiumWalletOptions) => Promise<
|
|
17
|
+
export declare const connect: (options?: GetAlephiumWalletOptions) => Promise<AlephiumWindowObject | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* Disconnect to a Alephium wallet.
|
|
20
20
|
*
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD,YAAY,EACV,YAAY,EACZ,SAAS,EACT,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,cAAc,EACf,MAAM,eAAe,CAAA;AAEtB;;;;;GAKG;AACH,eAAO,MAAM,WAAW,QAAO,oBAS9B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,aAAc,wBAAwB,KAAG,QAAQ,oBAAoB,GAAG,SAAS,CAKpG,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,aAAc,iBAAiB,KAAG,OAExD,CAAA"}
|