@bluxcc/core 0.1.24 → 0.1.25
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/assets/Icons.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +2 -2
- package/dist/index.cjs.js +9 -9
- package/dist/index.esm.js +10 -10
- package/dist/index.iife.js +2 -2
- package/dist/store.d.ts +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/utils/helpers.d.ts +1 -1
- package/package.json +1 -1
package/dist/store.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { UseBalancesResult } from './hooks/useBalances';
|
|
|
5
5
|
import { UseTransactionsResult } from './hooks/useTransactions';
|
|
6
6
|
import { IAsset, IWallet, ISignMessage, IInternalConfig, ISendTransaction, IAppearance, AuthenticateApiResponse } from './types';
|
|
7
7
|
export type WaitingStatus = 'login' | 'sendTransaction' | 'signMessage';
|
|
8
|
-
export type AlertType = 'error' | 'success' | '
|
|
8
|
+
export type AlertType = 'error' | 'success' | 'warn' | 'none' | 'copy';
|
|
9
9
|
export interface IUser {
|
|
10
10
|
address: string;
|
|
11
11
|
walletPassphrase: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface IServers {
|
|
|
10
10
|
soroban: string;
|
|
11
11
|
}
|
|
12
12
|
export interface IWalletConnectMetaData {
|
|
13
|
-
icons: [];
|
|
13
|
+
icons: string[];
|
|
14
14
|
url: string;
|
|
15
15
|
projectId: string;
|
|
16
16
|
description: string;
|
|
@@ -25,7 +25,7 @@ export interface IConfig {
|
|
|
25
25
|
explorer?: IExplorer;
|
|
26
26
|
isPersistent?: boolean;
|
|
27
27
|
showWalletUIs?: boolean;
|
|
28
|
-
loginMethods?: ILoginMethods;
|
|
28
|
+
loginMethods?: ILoginMethods | string[];
|
|
29
29
|
transports?: ITransports;
|
|
30
30
|
excludeWallets?: IWalletNames;
|
|
31
31
|
walletConnect?: IWalletConnectMetaData;
|
|
@@ -34,7 +34,7 @@ export interface IConfig {
|
|
|
34
34
|
export interface IInternalConfig extends IConfig {
|
|
35
35
|
explorer: IExplorer;
|
|
36
36
|
appearance: IAppearance;
|
|
37
|
-
loginMethods: ILoginMethods;
|
|
37
|
+
loginMethods: ILoginMethods | string[];
|
|
38
38
|
showWalletUIs: boolean;
|
|
39
39
|
defaultNetwork: string;
|
|
40
40
|
lang: LanguageKey;
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const getNetworkRpc: (network: string, transports: ITransports) =
|
|
|
27
27
|
export declare const getSortedCheckedWallets: (wallets: IWallet[]) => IWallet[];
|
|
28
28
|
export declare const getWalletNetwork: (wallet: IWallet) => Promise<string>;
|
|
29
29
|
export declare const handleLoadWallets: (walletNames: IWalletNames) => Promise<IWallet[]>;
|
|
30
|
-
export declare const hexToRgba: (hex: string, alpha
|
|
30
|
+
export declare const hexToRgba: (hex: string, alpha?: number) => string;
|
|
31
31
|
export declare const humanizeAmount: (amount: number | string, big?: boolean) => string;
|
|
32
32
|
export declare const initializeRabetMobile: () => void;
|
|
33
33
|
export declare const isBackgroundDark: (bgColor: string) => boolean;
|