@reown/appkit-cdn 1.0.6 → 1.0.7
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.
- package/dist/{W3MFrameProviderSingleton-CVeWBhS_.js → W3MFrameProviderSingleton-CTz2n0lO.js} +36 -15
- package/dist/{W3MFrameProviderSingleton-Djv3DKHQ.cjs → W3MFrameProviderSingleton-DQTwz0Iu.cjs} +9 -6
- package/dist/ethers.cjs +1 -1
- package/dist/ethers.js +4 -4
- package/dist/{hooks.module-BuouNsta.js → hooks.module-DqUWzNtD.js} +1 -1
- package/dist/{hooks.module-OOURZPAN.cjs → hooks.module-LKtd6ff7.cjs} +1 -1
- package/dist/{index-xU7rcaOL.js → index-B7Uy57AM.js} +2 -2
- package/dist/{index-DMnytQnR.js → index-Bmk1Ohcq.js} +2 -2
- package/dist/{index-rBKRsYhG.js → index-Bn6ujDok.js} +2 -2
- package/dist/{index-BlKzwSJU.js → index-BtFTDllB.js} +2 -2
- package/dist/{index-C2Bw1AaS.cjs → index-C7kbNRtJ.cjs} +1 -1
- package/dist/{index-YAhLOyG9.cjs → index-CBKmOjAo.cjs} +1 -1
- package/dist/{index-D1TRYSj5.cjs → index-CERtK4zq.cjs} +1 -1
- package/dist/{index-D7cCbFGa.cjs → index-ChPlSHaF.cjs} +1 -1
- package/dist/{index-D0AGxgdp.js → index-CmzUtRNr.js} +2 -2
- package/dist/{index-cIY_Y6JK.js → index-CzyxiVR0.js} +1 -1
- package/dist/{index-Cw3RgM7_.js → index-D5YBEcNb.js} +2 -2
- package/dist/{index-4gPeNAqu.cjs → index-DFW14Awr.cjs} +1 -1
- package/dist/{index-BMspmMjR.cjs → index-DSbDKpqj.cjs} +1 -1
- package/dist/{index-DP5FsK5O.cjs → index-Dq2Qc6hQ.cjs} +1 -1
- package/dist/{index-CUE8WypA.cjs → index-XWvMwQij.cjs} +1 -1
- package/dist/{index-C9Wf5FuX.js → index-uB2KGMj2.js} +2 -2
- package/dist/{index.es-DyjLX8Oj.js → index.es-Cgrh4cUP.js} +2 -2
- package/dist/{index.es-DLyLBkNx.cjs → index.es-RYrbKE7v.cjs} +2 -2
- package/dist/{metamask-sdk-DAjmhCmY.js → metamask-sdk-C0m1muMC.js} +1 -1
- package/dist/{metamask-sdk-DzX54_vv.cjs → metamask-sdk-vXyt2FVd.cjs} +1 -1
- package/dist/{native-dPjkdH1Q.js → native-C9YiZkE_.js} +1 -1
- package/dist/{native-C-0AHtVa.cjs → native-D13cmGux.cjs} +1 -1
- package/dist/{w3m-modal-DuRbCwDx.js → w3m-modal-7h2X-uBO.js} +4 -4
- package/dist/{w3m-modal-CfqGVIE5.cjs → w3m-modal-CHMPq1Um.cjs} +3 -3
- package/dist/{wagmi-CjqErQGH.js → wagmi-C7gaobmd.js} +23 -23
- package/dist/{wagmi-DYp-Wfqq.cjs → wagmi-DSpqRjMY.cjs} +4 -4
- package/dist/wagmi.cjs +1 -1
- package/dist/wagmi.js +2 -2
- package/package.json +5 -5
package/dist/{W3MFrameProviderSingleton-CVeWBhS_.js → W3MFrameProviderSingleton-CTz2n0lO.js}
RENAMED
|
@@ -2833,6 +2833,7 @@ const RPC_URL_HOST = "rpc.walletconnect.org", CaipNetworksUtil = {
|
|
|
2833
2833
|
// Aurora
|
|
2834
2834
|
"eip155:1313161554"
|
|
2835
2835
|
],
|
|
2836
|
+
NAMES_SUPPORTED_CHAIN_NAMESPACES: ["eip155"],
|
|
2836
2837
|
NATIVE_TOKEN_ADDRESS: {
|
|
2837
2838
|
eip155: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
2838
2839
|
solana: "So11111111111111111111111111111111111111111",
|
|
@@ -3314,6 +3315,10 @@ const state$n = proxy$1({
|
|
|
3314
3315
|
const J = ChainController.getNetworkProp("smartAccountEnabledNetworks");
|
|
3315
3316
|
return !!(J != null && J.includes(Number(X)));
|
|
3316
3317
|
},
|
|
3318
|
+
checkIfNamesSupported() {
|
|
3319
|
+
const X = ChainController.state.activeCaipNetwork;
|
|
3320
|
+
return (X == null ? void 0 : X.chainNamespace) && ConstantsUtil$2.NAMES_SUPPORTED_CHAIN_NAMESPACES.includes(X.chainNamespace);
|
|
3321
|
+
},
|
|
3317
3322
|
resetNetwork() {
|
|
3318
3323
|
const X = ChainController.state.activeChain;
|
|
3319
3324
|
if (!X)
|
|
@@ -3869,6 +3874,7 @@ const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports), SECUR
|
|
|
3869
3874
|
FRAME_INIT_SMART_ACCOUNT_ERROR: "@w3m-frame/INIT_SMART_ACCOUNT_ERROR",
|
|
3870
3875
|
FRAME_SET_PREFERRED_ACCOUNT_SUCCESS: "@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS",
|
|
3871
3876
|
FRAME_SET_PREFERRED_ACCOUNT_ERROR: "@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR",
|
|
3877
|
+
FRAME_READY: "@w3m-frame/READY",
|
|
3872
3878
|
RPC_RESPONSE_TYPE_ERROR: "RPC_RESPONSE_ERROR",
|
|
3873
3879
|
RPC_RESPONSE_TYPE_TX: "RPC_RESPONSE_TRANSACTION_HASH",
|
|
3874
3880
|
RPC_RESPONSE_TYPE_OBJECT: "RPC_RESPONSE_OBJECT"
|
|
@@ -6762,7 +6768,9 @@ z$6.object({
|
|
|
6762
6768
|
address: z$6.string(),
|
|
6763
6769
|
isDeployed: z$6.boolean()
|
|
6764
6770
|
});
|
|
6765
|
-
const
|
|
6771
|
+
const FrameReadyResponse = z$6.object({
|
|
6772
|
+
version: z$6.string().optional()
|
|
6773
|
+
}), FrameSetPreferredAccountResponse = z$6.object({ type: z$6.string(), address: z$6.string() }), RpcResponse = z$6.any(), RpcEthAccountsRequest = z$6.object({
|
|
6766
6774
|
method: z$6.literal("eth_accounts")
|
|
6767
6775
|
}), RpcEthBlockNumber = z$6.object({
|
|
6768
6776
|
method: z$6.literal("eth_blockNumber")
|
|
@@ -7019,7 +7027,7 @@ const FrameSetPreferredAccountResponse = z$6.object({ type: z$6.string(), addres
|
|
|
7019
7027
|
})).or(EventSchema.extend({
|
|
7020
7028
|
type: zType("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),
|
|
7021
7029
|
payload: zError
|
|
7022
|
-
}))
|
|
7030
|
+
})).or(EventSchema.extend({ type: zType("FRAME_READY"), payload: FrameReadyResponse }))
|
|
7023
7031
|
}, W3mFrameStorage = {
|
|
7024
7032
|
set(X, H) {
|
|
7025
7033
|
W3mFrameHelpers.isClient && localStorage.setItem(`${W3mFrameConstants.STORAGE_KEY}${X}`, H);
|
|
@@ -8118,7 +8126,17 @@ const state$i = proxy$1({
|
|
|
8118
8126
|
return subscribeKey$1(state$g, X, H);
|
|
8119
8127
|
},
|
|
8120
8128
|
setConnectors(X) {
|
|
8121
|
-
const H = X.filter((J) =>
|
|
8129
|
+
const H = X.filter((J) => {
|
|
8130
|
+
try {
|
|
8131
|
+
proxy$1(J);
|
|
8132
|
+
} catch (Se) {
|
|
8133
|
+
return console.error("ConnectorController.setConnectors: Not possible to add connector", {
|
|
8134
|
+
newConnector: J,
|
|
8135
|
+
error: Se
|
|
8136
|
+
}), !1;
|
|
8137
|
+
}
|
|
8138
|
+
return !state$g.allConnectors.some((Se) => Se.id === J.id && this.getConnectorName(Se.name) === this.getConnectorName(J.name) && Se.chain === J.chain);
|
|
8139
|
+
});
|
|
8122
8140
|
state$g.allConnectors = [...state$g.connectors, ...H], state$g.connectors = this.mergeMultiChainConnectors(state$g.allConnectors);
|
|
8123
8141
|
},
|
|
8124
8142
|
mergeMultiChainConnectors(X) {
|
|
@@ -53407,7 +53425,7 @@ class UniversalAdapterClient {
|
|
|
53407
53425
|
} else {
|
|
53408
53426
|
const Vo = await ((Je = J == null ? void 0 : J.getMessageParams) == null ? void 0 : Je.call(J)), zo = (vi = J == null ? void 0 : J.options) == null ? void 0 : vi.enabled, ps = typeof (Me == null ? void 0 : Me.authenticate) == "function", as = Vo && Object.keys(Vo || {}).length > 0;
|
|
53409
53427
|
if (J && zo && Vo && ps && as && ChainController.state.activeChain === "eip155") {
|
|
53410
|
-
const { SIWEController: ic, getDidChainId: ac, getDidAddress: Qo } = await import("./index-
|
|
53428
|
+
const { SIWEController: ic, getDidChainId: ac, getDidAddress: Qo } = await import("./index-D5YBEcNb.js"), Yo = (wi = this.caipNetworks) == null ? void 0 : wi.filter((is) => is.chainNamespace === "eip155").map((is) => is.id);
|
|
53411
53429
|
Vo.chains = (fo = this.caipNetworks) == null ? void 0 : fo.filter((is) => is.chainNamespace === "eip155").map((is) => is.chainId);
|
|
53412
53430
|
const rc = await Me.authenticate({
|
|
53413
53431
|
nonce: await ((jo = J == null ? void 0 : J.getNonce) == null ? void 0 : jo.call(J)),
|
|
@@ -53445,7 +53463,7 @@ class UniversalAdapterClient {
|
|
|
53445
53463
|
disconnect: async () => {
|
|
53446
53464
|
var Ne, Me, De, Ue;
|
|
53447
53465
|
if (SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID), (Ne = J == null ? void 0 : J.options) != null && Ne.signOutOnDisconnect) {
|
|
53448
|
-
const { SIWEController: qe } = await import("./index-
|
|
53466
|
+
const { SIWEController: qe } = await import("./index-D5YBEcNb.js");
|
|
53449
53467
|
await qe.signOut();
|
|
53450
53468
|
}
|
|
53451
53469
|
await ((Me = this.walletConnectProvider) == null ? void 0 : Me.disconnect()), (De = this.appKit) == null || De.resetAccount("eip155"), (Ue = this.appKit) == null || Ue.resetAccount("solana");
|
|
@@ -53823,7 +53841,7 @@ class AppKit {
|
|
|
53823
53841
|
return;
|
|
53824
53842
|
}
|
|
53825
53843
|
if (this.adapters = H.adapters, this.setMetadata(H), this.extendCaipNetworks(H), this.initializeUniversalAdapter(H), this.initializeAdapters(H), this.setDefaultNetwork(H), OptionsController.setAllWallets(H.allWallets), OptionsController.setIncludeWalletIds(H.includeWalletIds), OptionsController.setExcludeWalletIds(H.excludeWalletIds), H.excludeWalletIds && ApiController.searchWalletByIds({ ids: H.excludeWalletIds }), OptionsController.setFeaturedWalletIds(H.featuredWalletIds), OptionsController.setTokens(H.tokens), OptionsController.setTermsConditionsUrl(H.termsConditionsUrl), OptionsController.setPrivacyPolicyUrl(H.privacyPolicyUrl), OptionsController.setCustomWallets(H.customWallets), OptionsController.setFeatures(H.features), OptionsController.setEnableWalletConnect(H.enableWalletConnect !== !1), OptionsController.setEnableWallets(H.enableWallets !== !1), H.metadata && OptionsController.setMetadata(H.metadata), H.themeMode && ThemeController.setThemeMode(H.themeMode), H.themeVariables && ThemeController.setThemeVariables(H.themeVariables), H.disableAppend && OptionsController.setDisableAppend(!!H.disableAppend), ((Se = H.adapters) == null ? void 0 : Se.find((Ne) => Ne.chainNamespace === ConstantsUtil$3.CHAIN.EVM)) && H.siweConfig) {
|
|
53826
|
-
const { SIWEController: Ne } = await import("./index-
|
|
53844
|
+
const { SIWEController: Ne } = await import("./index-D5YBEcNb.js");
|
|
53827
53845
|
Ne.setSIWEClient(H.siweConfig);
|
|
53828
53846
|
}
|
|
53829
53847
|
}
|
|
@@ -53868,8 +53886,8 @@ class AppKit {
|
|
|
53868
53886
|
async initOrContinue() {
|
|
53869
53887
|
return !this.initPromise && !isInitialized && CoreHelperUtil.isClient() && (isInitialized = !0, this.initPromise = new Promise(async (H) => {
|
|
53870
53888
|
await Promise.all([
|
|
53871
|
-
import("./index-
|
|
53872
|
-
import("./w3m-modal-
|
|
53889
|
+
import("./index-Bmk1Ohcq.js"),
|
|
53890
|
+
import("./w3m-modal-7h2X-uBO.js")
|
|
53873
53891
|
]);
|
|
53874
53892
|
const J = document.createElement("w3m-modal");
|
|
53875
53893
|
OptionsController.state.disableAppend || document.body.insertAdjacentElement("beforeend", J), H();
|
|
@@ -54624,8 +54642,8 @@ let W3mAccountSettingsView = class extends h$3 {
|
|
|
54624
54642
|
`;
|
|
54625
54643
|
}
|
|
54626
54644
|
chooseNameButtonTemplate() {
|
|
54627
|
-
const H = StorageUtil.getConnectedConnector();
|
|
54628
|
-
return !
|
|
54645
|
+
const H = StorageUtil.getConnectedConnector(), J = ConnectorController.getAuthConnector();
|
|
54646
|
+
return !NetworkController.checkIfNamesSupported() || !J || H !== "AUTH" || this.profileName ? null : ke`
|
|
54629
54647
|
<wui-list-item
|
|
54630
54648
|
variant="icon"
|
|
54631
54649
|
iconVariant="overlay"
|
|
@@ -61628,7 +61646,7 @@ let W3mHeader = class extends h$3 {
|
|
|
61628
61646
|
}
|
|
61629
61647
|
async onClose() {
|
|
61630
61648
|
if (this.isSiweEnabled) {
|
|
61631
|
-
const { SIWEController: H } = await import("./index-
|
|
61649
|
+
const { SIWEController: H } = await import("./index-D5YBEcNb.js"), J = RouterController.state.view === "ApproveTransaction";
|
|
61632
61650
|
H.state.status !== "success" && J ? RouterController.popTransactionStack(!0) : ModalController.close();
|
|
61633
61651
|
} else
|
|
61634
61652
|
ModalController.close();
|
|
@@ -62635,10 +62653,13 @@ let W3mEmailLoginWidget = class extends h$3 {
|
|
|
62635
62653
|
` : null;
|
|
62636
62654
|
}
|
|
62637
62655
|
separatorTemplate() {
|
|
62638
|
-
var
|
|
62639
|
-
const H = (
|
|
62640
|
-
return (H || !J || !Se) && this.walletGuide === "get-started" || H && H.length > 0 ? null : ke`
|
|
62641
|
-
<wui-flex
|
|
62656
|
+
var De, Ue;
|
|
62657
|
+
const H = (De = OptionsController.state.features) == null ? void 0 : De.socials, J = this.connectors.length > 1, Se = OptionsController.state.enableWallets, Ne = (Ue = OptionsController.state.features) == null ? void 0 : Ue.emailShowWallets;
|
|
62658
|
+
return (H && H.length || Ne || !J || !Se) && this.walletGuide === "get-started" || H && H.length > 0 ? null : ke`
|
|
62659
|
+
<wui-flex
|
|
62660
|
+
data-testid="w3m-email-login-or-separator"
|
|
62661
|
+
.padding=${["xxs", "0", "0", "0"]}
|
|
62662
|
+
>
|
|
62642
62663
|
<wui-separator text="or"></wui-separator>
|
|
62643
62664
|
</wui-flex>
|
|
62644
62665
|
`;
|