New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@web3modal/scaffold

Package Overview
Dependencies
Maintainers
7
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/scaffold - npm Package Compare versions

Comparing version 3.2.0-fe5bf5e to 3.2.0

dist/esm/src/partials/w3m-connecting-siwe/index.js

2

dist/esm/index.js

@@ -11,2 +11,3 @@ export * from './src/modal/w3m-account-button/index.js';

export * from './src/views/w3m-connecting-external-view/index.js';
export * from './src/views/w3m-connecting-siwe-view/index.js';
export * from './src/views/w3m-connecting-wc-view/index.js';

@@ -26,2 +27,3 @@ export * from './src/views/w3m-downloads-view/index.js';

export * from './src/partials/w3m-connecting-wc-qrcode/index.js';
export * from './src/partials/w3m-connecting-siwe/index.js';
export * from './src/partials/w3m-connecting-wc-unsupported/index.js';

@@ -28,0 +30,0 @@ export * from './src/partials/w3m-connecting-wc-web/index.js';

@@ -104,2 +104,5 @@ import { AccountController, BlockchainApiController, ConnectionController, ConnectorController, CoreHelperUtil, EventsController, ModalController, NetworkController, OptionsController, PublicStateController, ThemeController } from '@web3modal/core';

ConnectionController.setClient(options.connectionControllerClient);
if (options.metadata) {
OptionsController.setMetadata(options.metadata);
}
if (options.themeMode) {

@@ -106,0 +109,0 @@ ThemeController.setThemeMode(options.themeMode);

@@ -52,2 +52,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

return html `<w3m-connecting-external-view></w3m-connecting-external-view>`;
case 'ConnectingSiwe':
return html `<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;
case 'AllWallets':

@@ -54,0 +56,0 @@ return html `<w3m-all-wallets-view></w3m-all-wallets-view>`;

@@ -22,2 +22,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

ConnectingWalletConnect: name ?? 'WalletConnect',
ConnectingSiwe: 'Sign In',
Networks: 'Choose Network',

@@ -24,0 +25,0 @@ SwitchNetwork: networkName ?? 'Switch Network',

22

dist/esm/src/views/w3m-connect-view/index.js

@@ -26,6 +26,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

<wui-flex flexDirection="column" padding="s" gap="xs">
${this.emailConnectorTemplate()} ${this.walletConnectConnectorTemplate()}
${this.recentTemplate()} ${this.announcedTemplate()} ${this.injectedTemplate()}
${this.featuredTemplate()} ${this.customTemplate()} ${this.recommendedTemplate()}
${this.connectorsTemplate()} ${this.allWalletsTemplate()}
${this.walletConnectConnectorTemplate()} ${this.recentTemplate()}
${this.announcedTemplate()} ${this.injectedTemplate()} ${this.featuredTemplate()}
${this.customTemplate()} ${this.recommendedTemplate()} ${this.connectorsTemplate()}
${this.allWalletsTemplate()}
</wui-flex>

@@ -35,14 +35,2 @@ <w3m-legal-footer></w3m-legal-footer>

}
emailConnectorTemplate() {
const connector = this.connectors.find(c => c.type === 'EMAIL');
if (!connector) {
return null;
}
return html `
<form>
<wui-email-input></wui-email-input>
</form>
<wui-separator text="or"></wui-separator>
`;
}
walletConnectConnectorTemplate() {

@@ -150,3 +138,3 @@ if (CoreHelperUtil.isMobile()) {

return this.connectors.map(connector => {
if (['WALLET_CONNECT', 'INJECTED', 'ANNOUNCED', 'EMAIL'].includes(connector.type)) {
if (['WALLET_CONNECT', 'INJECTED', 'ANNOUNCED'].includes(connector.type)) {
return null;

@@ -153,0 +141,0 @@ }

@@ -12,17 +12,3 @@ import { css } from 'lit';

}
wui-separator {
margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1);
width: calc(100% + var(--wui-spacing-s) * 2);
}
wui-email-input {
width: 100%;
}
form {
width: 100%;
display: block;
}
`;
//# sourceMappingURL=styles.js.map

@@ -7,3 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

};
import { ConnectionController, EventsController, ModalController } from '@web3modal/core';
import { ConnectionController, EventsController, ModalController, StorageUtil } from '@web3modal/core';
import { customElement } from '@web3modal/ui';

@@ -37,2 +37,5 @@ import { W3mConnectingWidget } from '../../utils/w3m-connecting-widget/index.js';

if (this.connector) {
if (this.connector.imageUrl) {
StorageUtil.setConnectedWalletImageUrl(this.connector.imageUrl);
}
await ConnectionController.connectExternal(this.connector);

@@ -39,0 +42,0 @@ ModalController.close();

@@ -7,3 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

};
import { ConnectionController, ConstantsUtil, CoreHelperUtil, EventsController, ModalController, RouterController, SnackController, StorageUtil } from '@web3modal/core';
import { AssetUtil, ConnectionController, ConnectorController, ConstantsUtil, CoreHelperUtil, EventsController, ModalController, RouterController, SnackController, StorageUtil } from '@web3modal/core';
import { customElement } from '@web3modal/ui';

@@ -41,2 +41,16 @@ import { LitElement, html } from 'lit';

ConnectionController.connectWalletConnect();
if (this.wallet) {
const url = AssetUtil.getWalletImage(this.wallet);
if (url) {
StorageUtil.setConnectedWalletImageUrl(url);
}
}
else {
const connectors = ConnectorController.state.connectors;
const connector = connectors.find(c => c.type === 'WALLET_CONNECT');
const url = AssetUtil.getConnectorImage(connector);
if (url) {
StorageUtil.setConnectedWalletImageUrl(url);
}
}
await ConnectionController.state.wcPromise;

@@ -43,0 +57,0 @@ this.finalizeConnection();

@@ -11,2 +11,3 @@ export * from './src/modal/w3m-account-button/index.js';

export * from './src/views/w3m-connecting-external-view/index.js';
export * from './src/views/w3m-connecting-siwe-view/index.js';
export * from './src/views/w3m-connecting-wc-view/index.js';

@@ -26,2 +27,3 @@ export * from './src/views/w3m-downloads-view/index.js';

export * from './src/partials/w3m-connecting-wc-qrcode/index.js';
export * from './src/partials/w3m-connecting-siwe/index.js';
export * from './src/partials/w3m-connecting-wc-unsupported/index.js';

@@ -28,0 +30,0 @@ export * from './src/partials/w3m-connecting-wc-web/index.js';

@@ -16,2 +16,3 @@ import type { ConnectionControllerClient, EventsControllerState, NetworkControllerClient, NetworkControllerState, OptionsControllerState, PublicStateControllerState, ThemeControllerState, ThemeMode, ThemeVariables } from '@web3modal/core';

enableAnalytics?: OptionsControllerState['enableAnalytics'];
metadata?: OptionsControllerState['metadata'];
_sdkVersion: OptionsControllerState['sdkVersion'];

@@ -18,0 +19,0 @@ }

@@ -9,3 +9,2 @@ import { LitElement } from 'lit';

render(): import("lit-html").TemplateResult<1>;
private emailConnectorTemplate;
private walletConnectConnectorTemplate;

@@ -12,0 +11,0 @@ private customTemplate;

{
"name": "@web3modal/scaffold",
"version": "3.2.0-fe5bf5e",
"version": "3.2.0",
"type": "module",

@@ -19,4 +19,4 @@ "main": "./dist/esm/index.js",

"dependencies": {
"@web3modal/core": "3.2.0-fe5bf5e",
"@web3modal/ui": "3.2.0-fe5bf5e",
"@web3modal/core": "3.2.0",
"@web3modal/ui": "3.2.0",
"lit": "3.0.0"

@@ -23,0 +23,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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc