@web3auth/modal 9.2.0-alpha.7 → 9.2.0
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.
|
@@ -6,9 +6,11 @@ export interface AdaptersModalConfig {
|
|
|
6
6
|
chainNamespace: ChainNamespaceType;
|
|
7
7
|
adapters?: Record<WALLET_ADAPTER_TYPE, ModalConfig>;
|
|
8
8
|
}
|
|
9
|
+
export interface ModalConfigParams {
|
|
10
|
+
modalConfig?: Record<WALLET_ADAPTER_TYPE, ModalConfig>;
|
|
11
|
+
hideWalletDiscovery?: boolean;
|
|
12
|
+
}
|
|
9
13
|
export interface IWeb3AuthModal extends IWeb3Auth {
|
|
10
|
-
initModal(params?:
|
|
11
|
-
modalConfig?: Record<WALLET_ADAPTER_TYPE, ModalConfig>;
|
|
12
|
-
}): Promise<void>;
|
|
14
|
+
initModal(params?: ModalConfigParams): Promise<void>;
|
|
13
15
|
connect(): Promise<IProvider | null>;
|
|
14
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IBaseProvider, IProvider, IWeb3AuthCoreOptions
|
|
1
|
+
import { IBaseProvider, IProvider, IWeb3AuthCoreOptions } from "@web3auth/base";
|
|
2
2
|
import { Web3AuthNoModal } from "@web3auth/no-modal";
|
|
3
3
|
import { LoginModal, UIConfig } from "@web3auth/ui";
|
|
4
|
-
import { AdaptersModalConfig, IWeb3AuthModal,
|
|
4
|
+
import { AdaptersModalConfig, IWeb3AuthModal, ModalConfigParams } from "./interface";
|
|
5
5
|
export interface Web3AuthOptions extends IWeb3AuthCoreOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Config for configuring modal ui display properties
|
|
@@ -18,9 +18,7 @@ export declare class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal
|
|
|
18
18
|
private modalConfig;
|
|
19
19
|
constructor(options: Web3AuthOptions);
|
|
20
20
|
setModalConfig(modalConfig: AdaptersModalConfig): void;
|
|
21
|
-
initModal(params?:
|
|
22
|
-
modalConfig?: Record<WALLET_ADAPTER_TYPE, ModalConfig>;
|
|
23
|
-
}): Promise<void>;
|
|
21
|
+
initModal(params?: ModalConfigParams): Promise<void>;
|
|
24
22
|
connect(): Promise<IProvider | null>;
|
|
25
23
|
private initExternalWalletAdapters;
|
|
26
24
|
private initializeInAppWallet;
|
package/package.json
CHANGED
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
"url": "https://github.com/Web3Auth/Web3Auth/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@web3auth/auth-adapter": "^9.2.0-alpha.
|
|
8
|
-
"@web3auth/base": "^9.2.0-alpha.
|
|
9
|
-
"@web3auth/base-provider": "^9.2.0-alpha.
|
|
10
|
-
"@web3auth/no-modal": "^9.2.0-alpha.
|
|
11
|
-
"@web3auth/ui": "^9.2.0
|
|
7
|
+
"@web3auth/auth-adapter": "^9.2.0-alpha.8",
|
|
8
|
+
"@web3auth/base": "^9.2.0-alpha.8",
|
|
9
|
+
"@web3auth/base-provider": "^9.2.0-alpha.8",
|
|
10
|
+
"@web3auth/no-modal": "^9.2.0-alpha.8",
|
|
11
|
+
"@web3auth/ui": "^9.2.0",
|
|
12
12
|
"deepmerge": "^4.3.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@svgr/webpack": "^8.1.0",
|
|
16
16
|
"@toruslabs/isomorphic-style-loader": "^5.3.3",
|
|
17
17
|
"@web3auth/auth": "^9.4.1",
|
|
18
|
-
"@web3auth/wallet-connect-v2-adapter": "^9.2.0-alpha.
|
|
18
|
+
"@web3auth/wallet-connect-v2-adapter": "^9.2.0-alpha.8",
|
|
19
19
|
"css-loader": "^7.1.2",
|
|
20
20
|
"postcss-prefix-selector": "^1.16.1",
|
|
21
21
|
"style-loader": "^4.0.0",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
},
|
|
69
69
|
"types": "dist/types/index.d.ts",
|
|
70
70
|
"unpkg": "dist/modal.umd.min.js",
|
|
71
|
-
"version": "9.2.0
|
|
72
|
-
"gitHead": "
|
|
71
|
+
"version": "9.2.0",
|
|
72
|
+
"gitHead": "b11d874fa5d5de79a3cec60b012de0f4fdfe214e"
|
|
73
73
|
}
|