@reown/appkit-core 1.0.5 → 1.0.6
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/src/controllers/ConnectionController.js +40 -4
- package/dist/esm/src/controllers/ConnectionController.js.map +1 -1
- package/dist/esm/src/controllers/RouterController.js.map +1 -1
- package/dist/esm/src/utils/CoreHelperUtil.js +23 -2
- package/dist/esm/src/utils/CoreHelperUtil.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/controllers/RouterController.d.ts +1 -1
- package/dist/types/src/utils/CoreHelperUtil.d.ts +2 -0
- package/dist/types/src/utils/TypeUtil.d.ts +1 -0
- package/package.json +4 -4
|
@@ -24,7 +24,7 @@ type TransactionAction = {
|
|
|
24
24
|
onCancel?: () => void;
|
|
25
25
|
};
|
|
26
26
|
export interface RouterControllerState {
|
|
27
|
-
view: 'Account' | 'AccountSettings' | 'SelectAddresses' | 'AllWallets' | 'ApproveTransaction' | 'BuyInProgress' | 'WalletCompatibleNetworks' | 'ChooseAccountName' | 'Connect' | 'ConnectingExternal' | 'ConnectingFarcaster' | 'ConnectingWalletConnect' | 'ConnectingSiwe' | 'ConnectingSocial' | 'ConnectSocials' | 'ConnectWallets' | 'Downloads' | 'EmailVerifyOtp' | 'EmailVerifyDevice' | 'GetWallet' | 'Networks' | 'OnRampActivity' | 'OnRampFiatSelect' | 'OnRampProviders' | 'OnRampTokenSelect' | 'Profile' | 'RegisterAccountName' | 'RegisterAccountNameSuccess' | 'SwitchNetwork' | 'SwitchAddress' | 'Transactions' | 'UnsupportedChain' | 'UpdateEmailWallet' | 'UpdateEmailPrimaryOtp' | 'UpdateEmailSecondaryOtp' | 'UpgradeEmailWallet' | 'UpgradeToSmartAccount' | 'WalletReceive' | 'WalletSend' | 'WalletSendPreview' | 'WalletSendSelectToken' | 'WhatIsANetwork' | 'WhatIsAWallet' | 'WhatIsABuy' | 'Swap' | 'SwapSelectToken' | 'SwapPreview' | 'ConnectingMultiChain' | 'SwitchActiveChain';
|
|
27
|
+
view: 'Account' | 'AccountSettings' | 'SelectAddresses' | 'AllWallets' | 'ApproveTransaction' | 'BuyInProgress' | 'WalletCompatibleNetworks' | 'ChooseAccountName' | 'Connect' | 'Create' | 'ConnectingExternal' | 'ConnectingFarcaster' | 'ConnectingWalletConnect' | 'ConnectingSiwe' | 'ConnectingSocial' | 'ConnectSocials' | 'ConnectWallets' | 'Downloads' | 'EmailVerifyOtp' | 'EmailVerifyDevice' | 'GetWallet' | 'Networks' | 'OnRampActivity' | 'OnRampFiatSelect' | 'OnRampProviders' | 'OnRampTokenSelect' | 'Profile' | 'RegisterAccountName' | 'RegisterAccountNameSuccess' | 'SwitchNetwork' | 'SwitchAddress' | 'Transactions' | 'UnsupportedChain' | 'UpdateEmailWallet' | 'UpdateEmailPrimaryOtp' | 'UpdateEmailSecondaryOtp' | 'UpgradeEmailWallet' | 'UpgradeToSmartAccount' | 'WalletReceive' | 'WalletSend' | 'WalletSendPreview' | 'WalletSendSelectToken' | 'WhatIsANetwork' | 'WhatIsAWallet' | 'WhatIsABuy' | 'Swap' | 'SwapSelectToken' | 'SwapPreview' | 'ConnectingMultiChain' | 'SwitchActiveChain';
|
|
28
28
|
history: RouterControllerState['view'][];
|
|
29
29
|
data?: {
|
|
30
30
|
connector?: Connector;
|
|
@@ -19,8 +19,10 @@ export declare const CoreHelperUtil: {
|
|
|
19
19
|
isHttpUrl(url: string): boolean;
|
|
20
20
|
formatNativeUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
21
21
|
formatUniversalUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
22
|
+
getOpenTargetForPlatform(target: string): string;
|
|
22
23
|
openHref(href: string, target: '_blank' | '_self' | 'popupWindow', features?: string): void;
|
|
23
24
|
returnOpenHref(href: string, target: '_blank' | '_self' | 'popupWindow', features?: string): Window | null;
|
|
25
|
+
isTelegram(): boolean;
|
|
24
26
|
preloadImage(src: string): Promise<unknown>;
|
|
25
27
|
formatBalance(balance: string | undefined, symbol: string | undefined): string;
|
|
26
28
|
formatBalance2(balance: string | undefined, symbol: string | undefined): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@walletconnect/universal-provider": "2.
|
|
24
|
+
"@walletconnect/universal-provider": "2.17.0",
|
|
25
25
|
"valtio": "1.11.2",
|
|
26
|
-
"@reown/appkit-common": "1.0.
|
|
27
|
-
"@reown/appkit-wallet": "1.0.
|
|
26
|
+
"@reown/appkit-common": "1.0.6",
|
|
27
|
+
"@reown/appkit-wallet": "1.0.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"vitest": "2.0.5",
|