@web3modal/scaffold
Advanced tools
Comparing version 3.2.1 to 3.3.0-05720c44
@@ -19,2 +19,5 @@ export * from './src/modal/w3m-account-button/index.js'; | ||
export * from './src/views/w3m-what-is-a-wallet-view/index.js'; | ||
export * from './src/views/w3m-email-verify-otp-view/index.js'; | ||
export * from './src/views/w3m-email-verify-device-view/index.js'; | ||
export * from './src/views/w3m-approve-transaction-view/index.js'; | ||
export * from './src/partials/w3m-all-wallets-list/index.js'; | ||
@@ -35,4 +38,5 @@ export * from './src/partials/w3m-all-wallets-search/index.js'; | ||
export * from './src/partials/w3m-snackbar/index.js'; | ||
export * from './src/partials/w3m-email-login-widget/index.js'; | ||
export { Web3ModalScaffold } from './src/client.js'; | ||
export { CoreHelperUtil } from '@web3modal/core'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { AccountController, BlockchainApiController, ConnectionController, ConnectorController, CoreHelperUtil, EventsController, ModalController, NetworkController, OptionsController, PublicStateController, ThemeController } from '@web3modal/core'; | ||
import { AccountController, BlockchainApiController, ConnectionController, ConnectorController, CoreHelperUtil, EventsController, ModalController, NetworkController, OptionsController, PublicStateController, ThemeController, SIWEController } from '@web3modal/core'; | ||
import { setColorTheme, setThemeVariables } from '@web3modal/ui'; | ||
@@ -50,2 +50,18 @@ let isInitialized = false; | ||
}; | ||
this.setSIWENonce = nonce => { | ||
SIWEController.setNonce(nonce); | ||
}; | ||
this.setSIWESession = session => { | ||
SIWEController.setSession(session); | ||
}; | ||
this.setSIWEStatus = status => { | ||
SIWEController.setStatus(status); | ||
}; | ||
this.setSIWEMessage = message => { | ||
SIWEController.setMessage(message); | ||
}; | ||
this.getSIWENonce = () => SIWEController.state.nonce; | ||
this.getSIWESession = () => SIWEController.state.session; | ||
this.getSIWEStatus = () => SIWEController.state.status; | ||
this.getSIWEMessage = () => SIWEController.state.message; | ||
this.initControllers(options); | ||
@@ -91,2 +107,5 @@ this.initOrContinue(); | ||
} | ||
subscribeSIWEState(callback) { | ||
return SIWEController.subscribe(callback); | ||
} | ||
initControllers(options) { | ||
@@ -106,2 +125,5 @@ NetworkController.setClient(options.networkControllerClient); | ||
ConnectionController.setClient(options.connectionControllerClient); | ||
if (options.siweControllerClient) { | ||
SIWEController.setSIWEClient(options.siweControllerClient); | ||
} | ||
if (options.metadata) { | ||
@@ -108,0 +130,0 @@ OptionsController.setMetadata(options.metadata); |
@@ -70,2 +70,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
return html `<w3m-downloads-view></w3m-downloads-view>`; | ||
case 'EmailVerifyOtp': | ||
return html `<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`; | ||
case 'EmailVerifyDevice': | ||
return html `<w3m-email-verify-device-view></w3m-email-verify-device-view>`; | ||
case 'ApproveTransaction': | ||
return html `<w3m-approve-transaction-view></w3m-approve-transaction-view>`; | ||
default: | ||
@@ -72,0 +78,0 @@ return html `<w3m-connect-view></w3m-connect-view>`; |
@@ -29,3 +29,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
GetWallet: 'Get a Wallet', | ||
Downloads: name ? `Get ${name}` : 'Downloads' | ||
Downloads: name ? `Get ${name}` : 'Downloads', | ||
EmailVerifyOtp: 'Confirm Email', | ||
EmailVerifyDevice: 'Confirm Device', | ||
ApproveTransaction: 'Approve Transaction' | ||
}; | ||
@@ -71,3 +74,4 @@ } | ||
const isConnectHelp = view === 'Connect'; | ||
if (this.showBack) { | ||
const isApproveTransaction = view === 'ApproveTransaction'; | ||
if (this.showBack && !isApproveTransaction) { | ||
return html `<wui-icon-link | ||
@@ -74,0 +78,0 @@ id="dynamic" |
@@ -26,2 +26,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
<wui-flex flexDirection="column" padding="s" gap="xs"> | ||
<w3m-email-login-widget></w3m-email-login-widget> | ||
${this.walletConnectConnectorTemplate()} ${this.recentTemplate()} | ||
@@ -137,3 +139,3 @@ ${this.announcedTemplate()} ${this.injectedTemplate()} ${this.featuredTemplate()} | ||
return this.connectors.map(connector => { | ||
if (['WALLET_CONNECT', 'INJECTED', 'ANNOUNCED'].includes(connector.type)) { | ||
if (['WALLET_CONNECT', 'INJECTED', 'ANNOUNCED', 'EMAIL'].includes(connector.type)) { | ||
return null; | ||
@@ -140,0 +142,0 @@ } |
@@ -101,3 +101,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
await NetworkController.switchActiveNetwork(this.network); | ||
RouterController.goBack(); | ||
} | ||
@@ -104,0 +103,0 @@ } |
@@ -19,2 +19,5 @@ export * from './src/modal/w3m-account-button/index.js'; | ||
export * from './src/views/w3m-what-is-a-wallet-view/index.js'; | ||
export * from './src/views/w3m-email-verify-otp-view/index.js'; | ||
export * from './src/views/w3m-email-verify-device-view/index.js'; | ||
export * from './src/views/w3m-approve-transaction-view/index.js'; | ||
export * from './src/partials/w3m-all-wallets-list/index.js'; | ||
@@ -35,2 +38,3 @@ export * from './src/partials/w3m-all-wallets-search/index.js'; | ||
export * from './src/partials/w3m-snackbar/index.js'; | ||
export * from './src/partials/w3m-email-login-widget/index.js'; | ||
export { Web3ModalScaffold } from './src/client.js'; | ||
@@ -37,0 +41,0 @@ export type { LibraryOptions, ScaffoldOptions } from './src/client.js'; |
@@ -1,3 +0,3 @@ | ||
import type { ConnectionControllerClient, EventsControllerState, NetworkControllerClient, NetworkControllerState, OptionsControllerState, PublicStateControllerState, ThemeControllerState, ThemeMode, ThemeVariables } from '@web3modal/core'; | ||
import { AccountController, BlockchainApiController, ConnectionController, ConnectorController, NetworkController } from '@web3modal/core'; | ||
import type { ConnectionControllerClient, SIWEControllerClient, EventsControllerState, NetworkControllerClient, NetworkControllerState, OptionsControllerState, PublicStateControllerState, ThemeControllerState, ThemeMode, ThemeVariables, SIWEControllerClientState } from '@web3modal/core'; | ||
import { AccountController, BlockchainApiController, ConnectionController, ConnectorController, NetworkController, SIWEController } from '@web3modal/core'; | ||
export interface LibraryOptions { | ||
@@ -22,5 +22,6 @@ projectId: OptionsControllerState['projectId']; | ||
connectionControllerClient: ConnectionControllerClient; | ||
siweControllerClient?: SIWEControllerClient; | ||
} | ||
export interface OpenOptions { | ||
view: 'Account' | 'Connect' | 'Networks'; | ||
view: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction'; | ||
} | ||
@@ -64,4 +65,13 @@ export declare class Web3ModalScaffold { | ||
protected setAddressExplorerUrl: (typeof AccountController)['setAddressExplorerUrl']; | ||
protected setSIWENonce: (typeof SIWEController)['setNonce']; | ||
protected setSIWESession: (typeof SIWEController)['setSession']; | ||
protected setSIWEStatus: (typeof SIWEController)['setStatus']; | ||
protected setSIWEMessage: (typeof SIWEController)['setMessage']; | ||
subscribeSIWEState(callback: (newState: SIWEControllerClientState) => void): () => void; | ||
protected getSIWENonce: () => string | undefined; | ||
protected getSIWESession: () => import("@web3modal/core").SIWESession | undefined; | ||
protected getSIWEStatus: () => "error" | "success" | "ready" | "loading" | "uninitialized" | "rejected"; | ||
protected getSIWEMessage: () => string | undefined; | ||
private initControllers; | ||
private initOrContinue; | ||
} |
{ | ||
"name": "@web3modal/scaffold", | ||
"version": "3.2.1", | ||
"version": "3.3.0-05720c44", | ||
"type": "module", | ||
@@ -19,6 +19,9 @@ "main": "./dist/esm/index.js", | ||
"dependencies": { | ||
"@web3modal/core": "3.2.1", | ||
"@web3modal/ui": "3.2.1", | ||
"lit": "3.0.0" | ||
"@web3modal/core": "3.3.0-05720c44", | ||
"@web3modal/ui": "3.3.0-05720c44", | ||
"lit": "3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@web3modal/smart-account": "3.3.0-05720c44" | ||
}, | ||
"keywords": [ | ||
@@ -25,0 +28,0 @@ "web3", |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
281939
176
4745
1
1
+ Added@web3modal/core@3.3.0-05720c44(transitive)
+ Added@web3modal/ui@3.3.0-05720c44(transitive)
+ Addedderive-valtio@0.1.0(transitive)
+ Addedlit@3.0.2(transitive)
+ Addedvaltio@1.12.0(transitive)
- Removed@web3modal/core@3.2.1(transitive)
- Removed@web3modal/ui@3.2.1(transitive)
- Removedlit@3.0.0(transitive)
- Removedvaltio@1.11.2(transitive)
Updated@web3modal/ui@3.3.0-05720c44
Updatedlit@3.0.2