@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.
@@ -1,4 +1,4 @@
1
- import { StorageWrapper } from "./storageWrapper";
1
+ import { StorageWrapper } from './storageWrapper';
2
2
  declare const defaultWallet: StorageWrapper;
3
3
  export default defaultWallet;
4
4
  //# sourceMappingURL=defaultWallet.d.ts.map
@@ -1,4 +1,4 @@
1
- import { StorageWrapper } from "./storageWrapper";
1
+ import { StorageWrapper } from './storageWrapper';
2
2
  declare const lastConnected: StorageWrapper;
3
3
  export default lastConnected;
4
4
  //# sourceMappingURL=lastConnected.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { IStorageWrapper } from "../types";
1
+ import type { IStorageWrapper } from '../types';
2
2
  export declare class StorageWrapper implements IStorageWrapper {
3
3
  #private;
4
4
  value: string | null | undefined;
@@ -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;IAWH,MAAM;CA+CP"}
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,4 +1,4 @@
1
- import type { WalletProvider } from "../types";
1
+ import type { WalletProvider } from '../types';
2
2
  declare const _default: WalletProvider[];
3
3
  export default _default;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -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;;AAe9C,wBAAkC"}
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"}
@@ -1,16 +1,17 @@
1
- import type { DisconnectOptions, GetAlephiumWalletOptions, IAlephiumWindowObject, IGetAlephiumWallet } from "./types";
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<IAlephiumWindowObject | undefined>;
5
+ connect: (options?: GetAlephiumWalletOptions) => Promise<AlephiumWindowObject | undefined>;
5
6
  constructor();
6
7
  disconnect: (options?: DisconnectOptions) => boolean;
7
- getAlephium: () => IAlephiumWindowObject;
8
- getInstalledWallets(options?: Omit<GetAlephiumWalletOptions, "showList" | "modalOptions">): Promise<IAlephiumWindowObject[]>;
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: () => IAlephiumWindowObject;
12
- export declare const connect: (options?: GetAlephiumWalletOptions) => Promise<IAlephiumWindowObject | undefined>;
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, "showList" | "modalOptions">) => Promise<IAlephiumWindowObject[]>;
15
- export * from "./types";
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":"AAGA,OAAO,KAAK,EACV,iBAAiB,EAGjB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAyBhB,cAAM,iBAAkB,YAAW,kBAAkB;;IAGnD,OAAO,aACK,wBAAwB,KACjC,QAAQ,qBAAqB,GAAG,SAAS,CAAC,CA4D5C;;IAMD,UAAU,aAAc,iBAAiB,KAAG,OAAO,CAWlD;IAED,WAAW,QAAO,qBAAqB,CA6JtC;IAED,mBAAmB,CACjB,OAAO,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,GAAG,cAAc,CAAC,GACpE,OAAO,CAAC,qBAAqB,EAAE,CAAC;CA6HpC;AAED,eAAO,MAAM,GAAG,mBAA0B,CAAA;AAC1C,eAAO,MAAM,WAAW,QAjSJ,qBAiSsB,CAAA;AAC1C,eAAO,MAAM,OAAO,aAlXN,wBAAwB,KACjC,QAAQ,qBAAqB,GAAG,SAAS,CAiXZ,CAAA;AAClC,eAAO,MAAM,UAAU,aAhTG,iBAAiB,KAAG,OAgTN,CAAA;AACxC,eAAO,MAAM,mBAAmB,aApIlB,KAAK,wBAAwB,EAAE,UAAU,GAAG,cAAc,CAAC,KACpE,QAAQ,qBAAqB,EAAE,CAmIsB,CAAA;AAE1D,cAAc,SAAS,CAAA"}
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 { GetAlephiumWalletOptions, IAlephiumWindowObject } from "./getAlephium";
2
- import type { DisconnectOptions } from "./types";
3
- export type { EventHandler, EventType, GetAlephiumWalletOptions, IGetAlephiumWallet, IAlephiumWindowObject, IStorageWrapper, ModalOptions, WalletProvider, } from "./getAlephium";
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: () => IAlephiumWindowObject;
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<IAlephiumWindowObject | undefined>;
17
+ export declare const connect: (options?: GetAlephiumWalletOptions) => Promise<AlephiumWindowObject | undefined>;
18
18
  /**
19
19
  * Disconnect to a Alephium wallet.
20
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD,YAAY,EACV,YAAY,EACZ,SAAS,EACT,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,GACf,MAAM,eAAe,CAAA;AAEtB;;;;;GAKG;AACH,eAAO,MAAM,WAAW,QAAO,qBAW9B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,aACR,wBAAwB,KACjC,QAAQ,qBAAqB,GAAG,SAAS,CAK3C,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,aAAc,iBAAiB,KAAG,OAExD,CAAA"}
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"}