@web3modal/core
Advanced tools
Comparing version 4.1.2-rer314x.0 to 4.1.3-xafeai01.0
@@ -18,3 +18,3 @@ import { subscribeKey as subKey } from 'valtio/utils'; | ||
state.connectors.push(ref(connector)); | ||
if (connector.id === 'w3mEmail') { | ||
if (connector.id === 'w3mAuth') { | ||
const emailConnector = connector; | ||
@@ -33,4 +33,4 @@ const optionsState = snapshot(OptionsController.state); | ||
}, | ||
getEmailConnector() { | ||
return state.connectors.find(c => c.type === 'EMAIL'); | ||
getAuthConnector() { | ||
return state.connectors.find(c => c.type === 'AUTH'); | ||
}, | ||
@@ -37,0 +37,0 @@ getAnnouncedConnectorRdns() { |
@@ -15,3 +15,3 @@ import { proxy, subscribe as sub, snapshot } from 'valtio/vanilla'; | ||
try { | ||
const emailConnector = ConnectorController.getEmailConnector(); | ||
const emailConnector = ConnectorController.getAuthConnector(); | ||
if (emailConnector) { | ||
@@ -30,3 +30,3 @@ emailConnector.provider.syncTheme({ | ||
try { | ||
const emailConnector = ConnectorController.getEmailConnector(); | ||
const emailConnector = ConnectorController.getAuthConnector(); | ||
if (emailConnector) { | ||
@@ -33,0 +33,0 @@ emailConnector.provider.syncTheme({ |
@@ -5,3 +5,3 @@ import { describe, expect, it } from 'vitest'; | ||
const externalId = 'coinbaseWallet'; | ||
const type = 'EMAIL'; | ||
const type = 'AUTH'; | ||
const client = { | ||
@@ -8,0 +8,0 @@ connectWalletConnect: async (onUri) => { |
@@ -1,2 +0,2 @@ | ||
import type { Connector, EmailConnector } from '../utils/TypeUtil.js'; | ||
import type { Connector, AuthConnector } from '../utils/TypeUtil.js'; | ||
export interface ConnectorControllerState { | ||
@@ -10,3 +10,3 @@ connectors: Connector[]; | ||
addConnector(connector: Connector): void; | ||
getEmailConnector(): EmailConnector | undefined; | ||
getAuthConnector(): AuthConnector | undefined; | ||
getAnnouncedConnectorRdns(): (string | undefined)[]; | ||
@@ -13,0 +13,0 @@ getConnectors(): Connector[]; |
import type { CaipNetwork, Connector, WcWallet } from '../utils/TypeUtil.js'; | ||
export interface RouterControllerState { | ||
view: 'Account' | 'AccountSettings' | 'AllWallets' | 'ApproveTransaction' | 'BuyInProgress' | 'WalletCompatibleNetworks' | 'Connect' | 'ConnectingExternal' | 'ConnectingWalletConnect' | 'ConnectingSiwe' | 'Downloads' | 'EmailVerifyOtp' | 'EmailVerifyDevice' | 'GetWallet' | 'Networks' | 'OnRampActivity' | 'OnRampFiatSelect' | 'OnRampProviders' | 'OnRampTokenSelect' | 'SwitchNetwork' | 'Transactions' | 'UnsupportedChain' | 'UpdateEmailWallet' | 'UpdateEmailPrimaryOtp' | 'UpdateEmailSecondaryOtp' | 'UpgradeEmailWallet' | 'UpgradeToSmartAccount' | 'WalletReceive' | 'WalletSend' | 'WalletSendPreview' | 'WalletSendSelectToken' | 'WhatIsANetwork' | 'WhatIsAWallet' | 'WhatIsABuy'; | ||
view: 'Account' | 'AccountSettings' | 'AllWallets' | 'ApproveTransaction' | 'BuyInProgress' | 'WalletCompatibleNetworks' | 'Connect' | 'ConnectingExternal' | 'ConnectingWalletConnect' | 'ConnectingSiwe' | 'ConnectSocials' | 'ConnectWallets' | 'Downloads' | 'EmailVerifyOtp' | 'EmailVerifyDevice' | 'GetWallet' | 'Networks' | 'OnRampActivity' | 'OnRampFiatSelect' | 'OnRampProviders' | 'OnRampTokenSelect' | 'SwitchNetwork' | 'Transactions' | 'UnsupportedChain' | 'UpdateEmailWallet' | 'UpdateEmailPrimaryOtp' | 'UpdateEmailSecondaryOtp' | 'UpgradeEmailWallet' | 'UpgradeToSmartAccount' | 'WalletReceive' | 'WalletSend' | 'WalletSendPreview' | 'WalletSendSelectToken' | 'WhatIsANetwork' | 'WhatIsAWallet' | 'WhatIsABuy'; | ||
history: RouterControllerState['view'][]; | ||
@@ -5,0 +5,0 @@ data?: { |
@@ -18,3 +18,4 @@ import type { W3mFrameProvider } from '@web3modal/wallet'; | ||
export type Platform = 'mobile' | 'desktop' | 'browser' | 'web' | 'qrcode' | 'unsupported'; | ||
export type ConnectorType = 'EXTERNAL' | 'WALLET_CONNECT' | 'INJECTED' | 'ANNOUNCED' | 'EMAIL'; | ||
export type ConnectorType = 'EXTERNAL' | 'WALLET_CONNECT' | 'INJECTED' | 'ANNOUNCED' | 'AUTH'; | ||
export type SocialProvider = 'google' | 'apple' | 'facebook' | 'x' | 'github' | 'discord' | 'twitch' | 'telegram'; | ||
export type Connector = { | ||
@@ -31,5 +32,9 @@ id: string; | ||
provider?: unknown; | ||
email?: boolean; | ||
socials?: SocialProvider[]; | ||
}; | ||
export interface EmailConnector extends Connector { | ||
export interface AuthConnector extends Connector { | ||
provider: W3mFrameProvider; | ||
socials?: SocialProvider[]; | ||
email?: boolean; | ||
} | ||
@@ -36,0 +41,0 @@ export type CaipNamespaces = Record<string, { |
{ | ||
"name": "@web3modal/core", | ||
"version": "4.1.2-rer314x.0", | ||
"version": "4.1.3-xafeai01.0", | ||
"type": "module", | ||
@@ -20,4 +20,4 @@ "main": "./dist/esm/index.js", | ||
"dependencies": { | ||
"@web3modal/common": "4.1.2-rer314x.0", | ||
"@web3modal/wallet": "4.1.2-rer314x.0", | ||
"@web3modal/common": "4.1.3-xafeai01.0", | ||
"@web3modal/wallet": "4.1.3-xafeai01.0", | ||
"valtio": "1.11.2" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252152
3989
+ Added@web3modal/common@4.1.3-xafeai01.0(transitive)
+ Added@web3modal/wallet@4.1.3-xafeai01.0(transitive)
- Removed@web3modal/common@4.1.2-rer314x.0(transitive)
- Removed@web3modal/wallet@4.1.2-rer314x.0(transitive)