Socket
Socket
Sign inDemoInstall

@web3modal/ui

Package Overview
Dependencies
Maintainers
4
Versions
374
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/ui - npm Package Compare versions

Comparing version 2.0.0-beta.5 to 2.0.0-beta.6

dist/_types/src/utils/Presets.d.ts

1

dist/_types/src/components/w3m-modal-backcard/index.d.ts

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

private readonly unsubscribeRouter?;
private playTimeout?;
private get canvasEl();

@@ -12,0 +13,0 @@ private onHelp;

@@ -15,2 +15,3 @@ import type { RouterView } from '@web3modal/core';

import '../../views/w3m-wallet-explorer-view';
import '../../views/w3m-wallet-filter-view';
export declare class W3mModalRouter extends LitElement {

@@ -17,0 +18,0 @@ static styles: import("lit").CSSResult[];

8

dist/_types/src/components/w3m-modal/index.d.ts

@@ -8,3 +8,2 @@ import ThemedElement from '../../utils/ThemedElement';

private open;
private initialized;
private preload;

@@ -14,3 +13,2 @@ constructor();

private readonly unsubscribeModal?;
private readonly unsubscribeConfig?;
private get overlayEl();

@@ -20,3 +18,7 @@ private get containerEl();

private onCloseModal;
private preloadData;
private preloadExplorerData;
private preloadExplorerImages;
private preloadCustomImages;
private preloadConnectorImages;
private preloadModalData;
private onOpenModalEvent;

@@ -23,0 +25,0 @@ private onCloseModalEvent;

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

name: string;
src: string;
chainId: string;
protected render(): import("lit-html").TemplateResult<1>;

@@ -11,0 +11,0 @@ }

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

static styles: import("lit").CSSResult[];
name: string;
src: string;

@@ -8,0 +7,0 @@ protected render(): import("lit-html").TemplateResult<1>;

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

logoSrc?: string | undefined;
walletId?: string | undefined;
private svgTemplate;

@@ -10,0 +11,0 @@ protected render(): import("lit-html").TemplateResult<1>;

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

name: string;
walletId: string;
label?: string;

@@ -10,0 +11,0 @@ src?: string;

import { LitElement } from 'lit';
export declare class W3mWalletImage extends LitElement {
static styles: import("lit").CSSResult[];
name: string;
walletId?: string;
src?: string;

@@ -6,0 +6,0 @@ protected render(): import("lit-html").TemplateResult<1>;

@@ -13,7 +13,8 @@ import { LitElement } from 'lit';

private onDesktopWallet;
private onMetaMaskWallet;
private onInjectedWallet;
private metaMaskTemplate;
private injectedTemplate;
private dynamicSlot;
private onMetaMask;
private onConnectorWallet;
private desktopWalletsTemplate;
private previewWalletsTemplate;
private connectorWalletsTemplate;
protected render(): import("lit-html").TemplateResult<1>;

@@ -20,0 +21,0 @@ }

@@ -8,4 +8,7 @@ import { LitElement } from 'lit';

static styles: import("lit").CSSResult[];
private onCoinbaseWallet;
private onGoToQrcode;
private onConnectorWallet;
private mobileWalletsTemplate;
private previewWalletsTemplate;
private connectorWalletsTemplate;
protected render(): import("lit-html").TemplateResult<1>;

@@ -12,0 +15,0 @@ }

import type { TemplateResult } from 'lit';
import QRCodeUtil from 'qrcode';
export declare function getMatrix(value: string, errorCorrectionLevel: QRCodeUtil.QRCodeErrorCorrectionLevel): any;
export declare function getDots(uri: string, size: number, logoSize: number, theme: 'dark' | 'light'): TemplateResult<1 | 2>[];
export declare function getDots(uri: string, size: number, logoSize: number, theme: 'dark' | 'light'): TemplateResult<2 | 1>[];

@@ -30,1 +30,3 @@ export declare const CROSS_ICON: import("lit-html").TemplateResult<2>;

export declare const WALLET_ICON: import("lit-html").TemplateResult<2>;
export declare const NETWORK_PLACEHOLDER: import("lit-html").TemplateResult<2>;
export declare const WALLET_PLACEHOLDER: import("lit-html").TemplateResult<2>;

@@ -1,6 +0,6 @@

import type { ConfigOptions } from '@web3modal/core';
import type { ConfigCtrlState } from '@web3modal/core';
import { LitElement } from 'lit';
export default class ThemedElement extends LitElement {
protected theme: ConfigOptions['theme'];
protected accentColor: ConfigOptions['accentColor'];
protected theme: ConfigCtrlState['theme'];
protected accentColor: ConfigCtrlState['accentColor'];
constructor();

@@ -7,0 +7,0 @@ disconnectedCallback(): void;

@@ -5,13 +5,5 @@ import type { LitElement } from 'lit';

export declare function getConditionalValue<T extends string>(value: T | T[], condition: boolean[] | boolean): T;
/**
* Compares similarity between 2 strings and returns value from 0 to 1
* https://github.com/aceakash/string-similarity/blob/master/src/index.js
*/
export declare function compareTwoStrings(first: string, second: string): number;
export declare function getOptimisticName(name: string): string;
export declare function getWalletIcon(name: string): string;
export declare function getChainIcon(chainId: number): string;
export declare function getWalletIcon(id: string): string;
export declare function getChainIcon(chainId: number | string): string;
export declare function getWalletFirstName(fullName: string): string;
export declare function getDefaultWalletNames(): string[];
export declare function defaultWalletImages(): string[];
export declare function isMobileAnimation(): boolean;

@@ -22,5 +14,8 @@ export declare function preloadImage(src: string): Promise<unknown>;

export declare function handleMobileLinking(links: {
native: string;
native?: string;
universal?: string;
}, name: string): Promise<void>;
export declare function handleUriCopy(): Promise<void>;
export declare function getCustomWallets(): import("@web3modal/core/src/types/controllerTypes").MobileWallet[];
export declare function getCustomImageUrls(): string[];
export declare function getConnectorImageUrls(): string[];

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

import '../../components/w3m-modal-header';
import '../../components/w3m-qrcode';
import '../../components/w3m-spinner';

@@ -8,0 +7,0 @@ import '../../components/w3m-text';

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

import '../../components/w3m-view-all-wallets-button';
import '../../components/w3m-wallet-button';
import '../../partials/w3m-walletconnect-qr';

@@ -10,0 +9,0 @@ export declare class W3mQrcodeView extends LitElement {

{
"name": "@web3modal/ui",
"version": "2.0.0-beta.5",
"version": "2.0.0-beta.6",
"main": "dist/index.js",

@@ -19,3 +19,3 @@ "type": "module",

"dependencies": {
"@web3modal/core": "2.0.0-beta.5",
"@web3modal/core": "2.0.0-beta.6",
"lit": "2.4.1",

@@ -22,0 +22,0 @@ "motion": "10.14.3",

Sorry, the diff of this file is too big to display

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