@reown/appkit-cdn 1.4.0 → 1.4.1

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.
Files changed (32) hide show
  1. package/dist/{appkit-CaPN3TG1.js → appkit-D3QaVDLe.js} +20 -22
  2. package/dist/{appkit-CaPN3TG1.js.map → appkit-D3QaVDLe.js.map} +1 -1
  3. package/dist/appkit.js +1 -1
  4. package/dist/{ccip-DCwYJ-NL.js → ccip-Cr-W3iwh.js} +2 -2
  5. package/dist/{ccip-DCwYJ-NL.js.map → ccip-Cr-W3iwh.js.map} +1 -1
  6. package/dist/{hooks.module-BlhUK7kV.js → hooks.module-zT0LRVDO.js} +2 -2
  7. package/dist/{hooks.module-BlhUK7kV.js.map → hooks.module-zT0LRVDO.js.map} +1 -1
  8. package/dist/{index-CRcvI4QH.js → index-2DytTWxH.js} +3 -3
  9. package/dist/{index-CRcvI4QH.js.map → index-2DytTWxH.js.map} +1 -1
  10. package/dist/{index-D7o7kZr-.js → index-BHVsqzTw.js} +3 -3
  11. package/dist/{index-D7o7kZr-.js.map → index-BHVsqzTw.js.map} +1 -1
  12. package/dist/{index-kfsS6q1n.js → index-BO0kpQtu.js} +3 -3
  13. package/dist/{index-kfsS6q1n.js.map → index-BO0kpQtu.js.map} +1 -1
  14. package/dist/{index-KOPw-2UL.js → index-C2eAIx8k.js} +3 -3
  15. package/dist/{index-KOPw-2UL.js.map → index-C2eAIx8k.js.map} +1 -1
  16. package/dist/{index-zLOM_PKp.js → index-CbU-U8nB.js} +2 -2
  17. package/dist/{index-zLOM_PKp.js.map → index-CbU-U8nB.js.map} +1 -1
  18. package/dist/{index-Bt3fFhmB.js → index-Cbihf-e6.js} +3 -3
  19. package/dist/{index-Bt3fFhmB.js.map → index-Cbihf-e6.js.map} +1 -1
  20. package/dist/{index-CG7o3fB8.js → index-CfON928R.js} +2 -2
  21. package/dist/{index-CG7o3fB8.js.map → index-CfON928R.js.map} +1 -1
  22. package/dist/{index-DvpTkpKW.js → index-CgQFUeAs.js} +3 -3
  23. package/dist/{index-DvpTkpKW.js.map → index-CgQFUeAs.js.map} +1 -1
  24. package/dist/{index.es-CKxBfPgF.js → index.es-DFsZa1rd.js} +3 -3
  25. package/dist/{index.es-CKxBfPgF.js.map → index.es-DFsZa1rd.js.map} +1 -1
  26. package/dist/{metamask-sdk-Ck-6hH2q.js → metamask-sdk-DoLUTxjg.js} +2 -2
  27. package/dist/{metamask-sdk-Ck-6hH2q.js.map → metamask-sdk-DoLUTxjg.js.map} +1 -1
  28. package/dist/{native-DpwNRhI4.js → native-1tTjNboG.js} +2 -2
  29. package/dist/{native-DpwNRhI4.js.map → native-1tTjNboG.js.map} +1 -1
  30. package/dist/{w3m-modal-buLmTlXV.js → w3m-modal-B4xNhH0B.js} +5 -5
  31. package/dist/{w3m-modal-buLmTlXV.js.map → w3m-modal-B4xNhH0B.js.map} +1 -1
  32. package/package.json +7 -7
@@ -33125,7 +33125,7 @@ async function call$4(client, args) {
33125
33125
  return { data: response };
33126
33126
  } catch (err) {
33127
33127
  const data3 = getRevertErrorData$1(err);
33128
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-DCwYJ-NL.js");
33128
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-Cr-W3iwh.js");
33129
33129
  if (client.ccipRead !== false && (data3 == null ? void 0 : data3.slice(0, 10)) === offchainLookupSignature2 && to2)
33130
33130
  return { data: await offchainLookup2(client, { data: data3, to: to2 }) };
33131
33131
  if (deploylessCall && (data3 == null ? void 0 : data3.slice(0, 10)) === "0x101bb98d")
@@ -93815,7 +93815,7 @@ class AppKit {
93815
93815
  const evmAdapter = (_a3 = options.adapters) == null ? void 0 : _a3.find((adapter) => adapter.namespace === ConstantsUtil$3.CHAIN.EVM);
93816
93816
  if (evmAdapter) {
93817
93817
  if (options.siweConfig) {
93818
- const { SIWEController } = await import("./index-CRcvI4QH.js");
93818
+ const { SIWEController } = await import("./index-2DytTWxH.js");
93819
93819
  SIWEController.setSIWEClient(options.siweConfig);
93820
93820
  }
93821
93821
  }
@@ -93867,7 +93867,7 @@ class AppKit {
93867
93867
  if (clientId) {
93868
93868
  this.setClientId(clientId);
93869
93869
  if (this.options.siweConfig && isSiweEnabled && siweParams && isProviderSupported && isSiweParamsValid && ChainController.state.activeChain === ConstantsUtil$3.CHAIN.EVM) {
93870
- const { SIWEController, getDidChainId, getDidAddress } = await import("./index-CRcvI4QH.js");
93870
+ const { SIWEController, getDidChainId, getDidAddress } = await import("./index-2DytTWxH.js");
93871
93871
  const chains = (_k = this.caipNetworks) == null ? void 0 : _k.filter((network) => network.chainNamespace === ConstantsUtil$3.CHAIN.EVM).map((chain) => chain.caipNetworkId);
93872
93872
  siweParams.chains = (_l = this.caipNetworks) == null ? void 0 : _l.filter((network) => network.chainNamespace === ConstantsUtil$3.CHAIN.EVM).map((chain) => chain.id);
93873
93873
  const result = await ((_o2 = this.universalProvider) == null ? void 0 : _o2.authenticate({
@@ -93951,7 +93951,7 @@ class AppKit {
93951
93951
  const adapter = this.getAdapter(ChainController.state.activeChain);
93952
93952
  const provider = ProviderUtil.getProvider(ChainController.state.activeChain);
93953
93953
  if ((_b2 = (_a3 = this.options.siweConfig) == null ? void 0 : _a3.options) == null ? void 0 : _b2.signOutOnDisconnect) {
93954
- const { SIWEController } = await import("./index-CRcvI4QH.js");
93954
+ const { SIWEController } = await import("./index-2DytTWxH.js");
93955
93955
  await SIWEController.signOut();
93956
93956
  }
93957
93957
  const providerType = ProviderUtil.state.providerIds[ChainController.state.activeChain];
@@ -94574,7 +94574,7 @@ class AppKit {
94574
94574
  }
94575
94575
  this.syncRequestedNetworks();
94576
94576
  return this.chainNamespaces.reduce((adapters, namespace) => {
94577
- var _a3, _b2;
94577
+ var _a3;
94578
94578
  const blueprint = blueprints == null ? void 0 : blueprints.find((b4) => b4.namespace === namespace);
94579
94579
  if (blueprint) {
94580
94580
  adapters[namespace] = blueprint;
@@ -94590,9 +94590,7 @@ class AppKit {
94590
94590
  if (this.authProvider) {
94591
94591
  adapters[namespace].setAuthProvider(this.authProvider);
94592
94592
  }
94593
- if ((_b2 = this.options) == null ? void 0 : _b2.features) {
94594
- adapters[namespace].syncConnectors(this.options, this);
94595
- }
94593
+ adapters[namespace].syncConnectors(this.options, this);
94596
94594
  } else {
94597
94595
  adapters[namespace] = new UniversalAdapter({
94598
94596
  namespace,
@@ -94643,8 +94641,8 @@ class AppKit {
94643
94641
  isInitialized = true;
94644
94642
  this.initPromise = new Promise(async (resolve) => {
94645
94643
  await Promise.all([
94646
- import("./index-kfsS6q1n.js"),
94647
- import("./w3m-modal-buLmTlXV.js")
94644
+ import("./index-BO0kpQtu.js"),
94645
+ import("./w3m-modal-B4xNhH0B.js")
94648
94646
  ]);
94649
94647
  const modal = document.createElement("w3m-modal");
94650
94648
  if (!OptionsController.state.disableAppend) {
@@ -94656,7 +94654,7 @@ class AppKit {
94656
94654
  return this.initPromise;
94657
94655
  }
94658
94656
  }
94659
- const PACKAGE_VERSION = "1.4.0";
94657
+ const PACKAGE_VERSION = "1.4.1";
94660
94658
  var __decorate$1J = function(decorators, target, key2, desc) {
94661
94659
  var c2 = arguments.length, r3 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key2) : desc, d4;
94662
94660
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
@@ -104269,7 +104267,7 @@ let W3mHeader = class W3mHeader2 extends r$6 {
104269
104267
  async onClose() {
104270
104268
  const isUnsupportedChain = RouterController.state.view === "UnsupportedChain";
104271
104269
  if (this.isSiweEnabled) {
104272
- const { SIWEController } = await import("./index-CRcvI4QH.js");
104270
+ const { SIWEController } = await import("./index-2DytTWxH.js");
104273
104271
  const isApproveSignScreen = RouterController.state.view === "ApproveTransaction";
104274
104272
  const isUnauthenticated = SIWEController.state.status !== "success";
104275
104273
  if (isUnauthenticated && isApproveSignScreen) {
@@ -111725,7 +111723,7 @@ function version4$1(parameters) {
111725
111723
  async getProvider() {
111726
111724
  if (!walletProvider) {
111727
111725
  const CoinbaseWalletSDK = await (async () => {
111728
- const { default: SDK } = await import("./index-D7o7kZr-.js").then((n5) => n5.i);
111726
+ const { default: SDK } = await import("./index-BHVsqzTw.js").then((n5) => n5.i);
111729
111727
  if (typeof SDK !== "function" && typeof SDK.default === "function")
111730
111728
  return SDK.default;
111731
111729
  return SDK;
@@ -111904,7 +111902,7 @@ function version3$1(parameters) {
111904
111902
  var _a3;
111905
111903
  if (!walletProvider) {
111906
111904
  const CoinbaseWalletSDK = await (async () => {
111907
- const { default: SDK } = await import("./index-Bt3fFhmB.js").then((n5) => n5.i);
111905
+ const { default: SDK } = await import("./index-Cbihf-e6.js").then((n5) => n5.i);
111908
111906
  if (typeof SDK !== "function" && typeof SDK.default === "function")
111909
111907
  return SDK.default;
111910
111908
  return SDK;
@@ -133562,7 +133560,7 @@ async function getWebSocketRpcClient(url, options = {}) {
133562
133560
  const { keepAlive, reconnect: reconnect2 } = options;
133563
133561
  return getSocketRpcClient({
133564
133562
  async getSocket({ onClose, onError, onOpen, onResponse }) {
133565
- const WebSocket2 = await import("./native-DpwNRhI4.js").then((module) => module.WebSocket);
133563
+ const WebSocket2 = await import("./native-1tTjNboG.js").then((module) => module.WebSocket);
133566
133564
  const socket = new WebSocket2(url);
133567
133565
  function onClose_() {
133568
133566
  onClose();
@@ -139698,7 +139696,7 @@ function version4(parameters) {
139698
139696
  async getProvider() {
139699
139697
  if (!walletProvider) {
139700
139698
  const CoinbaseWalletSDK = await (async () => {
139701
- const { default: SDK } = await import("./index-D7o7kZr-.js").then((n5) => n5.i);
139699
+ const { default: SDK } = await import("./index-BHVsqzTw.js").then((n5) => n5.i);
139702
139700
  if (typeof SDK !== "function" && typeof SDK.default === "function")
139703
139701
  return SDK.default;
139704
139702
  return SDK;
@@ -139877,7 +139875,7 @@ function version3(parameters) {
139877
139875
  var _a3;
139878
139876
  if (!walletProvider) {
139879
139877
  const CoinbaseWalletSDK = await (async () => {
139880
- const { default: SDK } = await import("./index-Bt3fFhmB.js").then((n5) => n5.i);
139878
+ const { default: SDK } = await import("./index-Cbihf-e6.js").then((n5) => n5.i);
139881
139879
  if (typeof SDK !== "function" && typeof SDK.default === "function")
139882
139880
  return SDK.default;
139883
139881
  return SDK;
@@ -140083,7 +140081,7 @@ function metaMask(parameters = {}) {
140083
140081
  async getProvider() {
140084
140082
  async function initProvider() {
140085
140083
  const MetaMaskSDK = await (async () => {
140086
- const { default: SDK } = await import("./metamask-sdk-Ck-6hH2q.js").then((n5) => n5.m);
140084
+ const { default: SDK } = await import("./metamask-sdk-DoLUTxjg.js").then((n5) => n5.m);
140087
140085
  if (typeof SDK !== "function" && typeof SDK.default === "function")
140088
140086
  return SDK.default;
140089
140087
  return SDK;
@@ -140314,14 +140312,14 @@ function safe(parameters = {}) {
140314
140312
  if (!isIframe)
140315
140313
  return;
140316
140314
  if (!provider_) {
140317
- const { default: SDK } = await import("./index-zLOM_PKp.js");
140315
+ const { default: SDK } = await import("./index-CbU-U8nB.js");
140318
140316
  const sdk = new SDK(parameters);
140319
140317
  const safe2 = await withTimeout(() => sdk.safe.getInfo(), {
140320
140318
  timeout: parameters.unstable_getInfoTimeout ?? 10
140321
140319
  });
140322
140320
  if (!safe2)
140323
140321
  throw new Error("Could not load Safe information");
140324
- const { SafeAppProvider } = await import("./index-CG7o3fB8.js").then((n5) => n5.i);
140322
+ const { SafeAppProvider } = await import("./index-CfON928R.js").then((n5) => n5.i);
140325
140323
  provider_ = new SafeAppProvider(safe2, sdk);
140326
140324
  }
140327
140325
  return provider_;
@@ -140490,7 +140488,7 @@ function walletConnect(parameters) {
140490
140488
  const optionalChains = config2.chains.map((x3) => x3.id);
140491
140489
  if (!optionalChains.length)
140492
140490
  return;
140493
- const { EthereumProvider } = await import("./index.es-CKxBfPgF.js");
140491
+ const { EthereumProvider } = await import("./index.es-DFsZa1rd.js");
140494
140492
  return await EthereumProvider.init({
140495
140493
  ...parameters,
140496
140494
  disableProviderPing: true,
@@ -140871,4 +140869,4 @@ export {
140871
140869
  WuiVisual as y,
140872
140870
  WuiAccountButton as z
140873
140871
  };
140874
- //# sourceMappingURL=appkit-CaPN3TG1.js.map
140872
+ //# sourceMappingURL=appkit-D3QaVDLe.js.map