@reown/appkit-common 1.8.14-rc2.0 → 1.8.14-wallet-button-fix.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/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/utils/ConstantsUtil.js +35 -1
- package/dist/esm/src/utils/ConstantsUtil.js.map +1 -1
- package/dist/esm/src/utils/HelpersUtil.js +6 -0
- package/dist/esm/src/utils/HelpersUtil.js.map +1 -0
- package/dist/esm/src/utils/PresetsUtil.js +114 -0
- package/dist/esm/src/utils/PresetsUtil.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/src/utils/ConstantsUtil.d.ts +31 -0
- package/dist/types/src/utils/HelpersUtil.d.ts +3 -0
- package/dist/types/src/utils/PresetsUtil.d.ts +9 -0
- package/dist/types/src/utils/TypeUtil.d.ts +1 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { HelpersUtil } from './src/utils/HelpersUtil.js';
|
|
1
2
|
export { DateUtil } from './src/utils/DateUtil.js';
|
|
2
3
|
export { NetworkUtil, AVAILABLE_NAMESPACES } from './src/utils/NetworkUtil.js';
|
|
3
4
|
export { NumberUtil } from './src/utils/NumberUtil.js';
|
|
@@ -7,6 +8,7 @@ export { erc20ABI } from './src/contracts/erc20.js';
|
|
|
7
8
|
export { NavigationUtil } from './src/utils/NavigationUtil.js';
|
|
8
9
|
export { ConstantsUtil } from './src/utils/ConstantsUtil.js';
|
|
9
10
|
export { Emitter } from './src/utils/EmitterUtil.js';
|
|
11
|
+
export { PresetsUtil } from './src/utils/PresetsUtil.js';
|
|
10
12
|
export { ParseUtil } from './src/utils/ParseUtil.js';
|
|
11
13
|
export { ErrorUtil, UserRejectedRequestError } from './src/utils/ErrorUtil.js';
|
|
12
14
|
export { SafeLocalStorage, SafeLocalStorageKeys, isSafe, type SafeLocalStorageKey, getSafeConnectorIdKey } from './src/utils/SafeLocalStorage.js';
|
|
@@ -77,7 +77,38 @@ export declare const ConstantsUtil: {
|
|
|
77
77
|
readonly debugMessage: "Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnection hook.";
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
+
readonly HEADLESS_NOT_ENABLED: {
|
|
81
|
+
readonly DEFAULT: {
|
|
82
|
+
readonly displayMessage: "";
|
|
83
|
+
readonly debugMessage: "Headless support is not enabled. Please enable it with the features.headless option in the AppKit configuration and make sure your current plan supports it.";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
80
86
|
};
|
|
81
87
|
readonly IS_DEVELOPMENT: boolean;
|
|
82
88
|
readonly DEFAULT_ALLOWED_ANCESTORS: string[];
|
|
89
|
+
readonly METMASK_CONNECTOR_NAME: "MetaMask";
|
|
90
|
+
readonly TRUST_CONNECTOR_NAME: "Trust Wallet";
|
|
91
|
+
readonly SOLFLARE_CONNECTOR_NAME: "Solflare";
|
|
92
|
+
readonly PHANTOM_CONNECTOR_NAME: "Phantom";
|
|
93
|
+
readonly COIN98_CONNECTOR_NAME: "Coin98";
|
|
94
|
+
readonly MAGIC_EDEN_CONNECTOR_NAME: "Magic Eden";
|
|
95
|
+
readonly BACKPACK_CONNECTOR_NAME: "Backpack";
|
|
96
|
+
readonly BITGET_CONNECTOR_NAME: "Bitget Wallet";
|
|
97
|
+
readonly FRONTIER_CONNECTOR_NAME: "Frontier";
|
|
98
|
+
readonly XVERSE_CONNECTOR_NAME: "Xverse Wallet";
|
|
99
|
+
readonly LEATHER_CONNECTOR_NAME: "Leather";
|
|
100
|
+
readonly OKX_CONNECTOR_NAME: "OKX Wallet";
|
|
101
|
+
readonly BINANCE_CONNECTOR_NAME: "Binance Wallet";
|
|
102
|
+
readonly EIP155: "eip155";
|
|
103
|
+
readonly ADD_CHAIN_METHOD: "wallet_addEthereumChain";
|
|
104
|
+
readonly EIP6963_ANNOUNCE_EVENT: "eip6963:announceProvider";
|
|
105
|
+
readonly EIP6963_REQUEST_EVENT: "eip6963:requestProvider";
|
|
106
|
+
readonly CONNECTOR_RDNS_MAP: Record<string, string>;
|
|
107
|
+
readonly CONNECTOR_TYPE_EXTERNAL: "EXTERNAL";
|
|
108
|
+
readonly CONNECTOR_TYPE_WALLET_CONNECT: "WALLET_CONNECT";
|
|
109
|
+
readonly CONNECTOR_TYPE_INJECTED: "INJECTED";
|
|
110
|
+
readonly CONNECTOR_TYPE_ANNOUNCED: "ANNOUNCED";
|
|
111
|
+
readonly CONNECTOR_TYPE_AUTH: "AUTH";
|
|
112
|
+
readonly CONNECTOR_TYPE_MULTI_CHAIN: "MULTI_CHAIN";
|
|
113
|
+
readonly CONNECTOR_TYPE_W3M_AUTH: "AUTH";
|
|
83
114
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConnectorType } from './TypeUtil.js';
|
|
2
|
+
export declare const PresetsUtil: {
|
|
3
|
+
ConnectorExplorerIds: Record<string, string>;
|
|
4
|
+
NetworkImageIds: Record<string, string>;
|
|
5
|
+
ConnectorImageIds: Record<string, string>;
|
|
6
|
+
ConnectorNamesMap: Record<string, string>;
|
|
7
|
+
ConnectorTypesMap: Record<string, ConnectorType>;
|
|
8
|
+
WalletConnectRpcChainIds: number[];
|
|
9
|
+
};
|
|
@@ -13,6 +13,7 @@ export type CaipNetwork<formatters extends ChainFormatters | undefined = ChainFo
|
|
|
13
13
|
};
|
|
14
14
|
export type CustomCaipNetwork<T extends string = InternalChainNamespace> = CaipNetwork<ChainFormatters, Record<string, unknown>, T>;
|
|
15
15
|
export type CustomRpcUrlMap = Record<CaipNetworkId, CustomRpcUrl[]>;
|
|
16
|
+
export type ConnectorType = 'EXTERNAL' | 'WALLET_CONNECT' | 'INJECTED' | 'ANNOUNCED' | 'AUTH' | 'MULTI_CHAIN';
|
|
16
17
|
export type CustomRpcUrl = {
|
|
17
18
|
url: string;
|
|
18
19
|
config?: HttpTransportConfig;
|