@aurum-sdk/core 0.2.2-canary.0 → 0.2.2

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/index.js CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
 
15
15
 
16
- var _chunkK6PG2PDFjs = require('./chunk-K6PG2PDF.js');
16
+ var _chunkFRA6K6V4js = require('./chunk-FRA6K6V4.js');
17
17
 
18
18
  // src/AurumCore.ts
19
19
  var _viem = require('viem');
@@ -45,20 +45,20 @@ var _react = require('react');
45
45
  var _jsxruntime = require('react/jsx-runtime');
46
46
  var ModalShell = ({ onClose, brandConfig }) => {
47
47
  const [isOpen, setIsOpen] = _react.useState.call(void 0, true);
48
- const { currentPage } = _chunkK6PG2PDFjs.useNavigation.call(void 0, );
48
+ const { currentPage } = _chunkFRA6K6V4js.useNavigation.call(void 0, );
49
49
  const handleClose = () => {
50
50
  setIsOpen(false);
51
51
  onClose();
52
52
  };
53
53
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
54
- _chunkK6PG2PDFjs.Modal,
54
+ _chunkFRA6K6V4js.Modal,
55
55
  {
56
56
  isOpen,
57
57
  closeOnOverlayClick: true,
58
58
  onCloseComplete: handleClose,
59
59
  brandConfig,
60
60
  transitionKey: currentPage,
61
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.ConnectPages, {})
61
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.ConnectPages, {})
62
62
  }
63
63
  );
64
64
  };
@@ -70,7 +70,7 @@ var _client = require('react-dom/client');
70
70
  function createShadowRoot(container, brandConfig) {
71
71
  const shadowRoot = container.attachShadow({ mode: "open" });
72
72
  shadowRoot.innerHTML = `
73
- <style>${_chunkK6PG2PDFjs.generateCompleteStyles.call(void 0, brandConfig)}</style>
73
+ <style>${_chunkFRA6K6V4js.generateCompleteStyles.call(void 0, brandConfig)}</style>
74
74
  <div class="aurum-modal-root"></div>
75
75
  `;
76
76
  return shadowRoot.querySelector(".aurum-modal-root");
@@ -107,7 +107,7 @@ function renderConnectModal({
107
107
  brandConfig
108
108
  }) {
109
109
  return new Promise((resolve, reject) => {
110
- const sortedWallets = _chunkK6PG2PDFjs.sortWallets.call(void 0, displayedWallets, { filterHidden: false });
110
+ const sortedWallets = _chunkFRA6K6V4js.sortWallets.call(void 0, displayedWallets, { filterHidden: false });
111
111
  const { root, cleanup } = createModalContainer(CONTAINER_ID, brandConfig);
112
112
  const onConnect = (result) => {
113
113
  cleanup();
@@ -118,7 +118,7 @@ function renderConnectModal({
118
118
  reject(new Error("User rejected request"));
119
119
  };
120
120
  root.render(
121
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.ThemeContainer, { theme: brandConfig.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.ConnectUIProviders, { onConnect, displayedWallets: sortedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ModalShell, { onClose, brandConfig }) }) })
121
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.ThemeContainer, { theme: brandConfig.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.ConnectUIProviders, { onConnect, displayedWallets: sortedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ModalShell, { onClose, brandConfig }) }) })
122
122
  );
123
123
  });
124
124
  }
@@ -190,7 +190,7 @@ var RabbyAdapter = class {
190
190
  await this.providerPromise;
191
191
  }
192
192
  if (!this.provider) {
193
- _chunkK6PG2PDFjs.sentryLogger.error("Rabby is not available");
193
+ _chunkFRA6K6V4js.sentryLogger.error("Rabby is not available");
194
194
  throw new Error("Rabby is not available");
195
195
  }
196
196
  await this.provider.request({
@@ -202,7 +202,7 @@ var RabbyAdapter = class {
202
202
  params: []
203
203
  });
204
204
  if (!accounts || accounts.length === 0 || !accounts[0]) {
205
- _chunkK6PG2PDFjs.sentryLogger.error("No accounts returned from Rabby");
205
+ _chunkFRA6K6V4js.sentryLogger.error("No accounts returned from Rabby");
206
206
  throw new Error("No accounts returned from Rabby");
207
207
  }
208
208
  return {
@@ -336,7 +336,7 @@ var BraveAdapter = class {
336
336
  await this.providerPromise;
337
337
  }
338
338
  if (!this.provider) {
339
- _chunkK6PG2PDFjs.sentryLogger.error("Brave Wallet is not available");
339
+ _chunkFRA6K6V4js.sentryLogger.error("Brave Wallet is not available");
340
340
  throw new Error("Brave Wallet is not available");
341
341
  }
342
342
  await this.provider.request({
@@ -348,7 +348,7 @@ var BraveAdapter = class {
348
348
  params: []
349
349
  });
350
350
  if (!accounts || accounts.length === 0 || !accounts[0]) {
351
- _chunkK6PG2PDFjs.sentryLogger.error("No accounts returned from Brave Wallet");
351
+ _chunkFRA6K6V4js.sentryLogger.error("No accounts returned from Brave Wallet");
352
352
  throw new Error("No accounts returned from Brave Wallet");
353
353
  }
354
354
  return {
@@ -475,7 +475,7 @@ var PhantomAdapter = class {
475
475
  await this.providerPromise;
476
476
  }
477
477
  if (!this.provider) {
478
- _chunkK6PG2PDFjs.sentryLogger.error("Phantom is not available");
478
+ _chunkFRA6K6V4js.sentryLogger.error("Phantom is not available");
479
479
  throw new Error("Phantom is not available");
480
480
  }
481
481
  await this.provider.request({
@@ -487,7 +487,7 @@ var PhantomAdapter = class {
487
487
  params: []
488
488
  });
489
489
  if (!accounts || accounts.length === 0 || !accounts[0]) {
490
- _chunkK6PG2PDFjs.sentryLogger.error("No accounts returned from Phantom");
490
+ _chunkFRA6K6V4js.sentryLogger.error("No accounts returned from Phantom");
491
491
  throw new Error("No accounts returned from Phantom");
492
492
  }
493
493
  return {
@@ -575,7 +575,7 @@ var CoinbaseWalletAdapter = class {
575
575
  });
576
576
  return coinbaseSdk.getProvider();
577
577
  } catch (error) {
578
- _chunkK6PG2PDFjs.sentryLogger.warn("Failed to initialize Coinbase Wallet provider", { error });
578
+ _chunkFRA6K6V4js.sentryLogger.warn("Failed to initialize Coinbase Wallet provider", { error });
579
579
  return null;
580
580
  }
581
581
  }
@@ -584,7 +584,7 @@ var CoinbaseWalletAdapter = class {
584
584
  }
585
585
  async connect() {
586
586
  if (!this.isInstalled() || !this.provider) {
587
- _chunkK6PG2PDFjs.sentryLogger.error("Coinbase Wallet is not available");
587
+ _chunkFRA6K6V4js.sentryLogger.error("Coinbase Wallet is not available");
588
588
  throw new Error("Coinbase Wallet is not available");
589
589
  }
590
590
  const accounts = await this.provider.request({
@@ -592,7 +592,7 @@ var CoinbaseWalletAdapter = class {
592
592
  params: []
593
593
  });
594
594
  if (!accounts || accounts.length === 0 || !accounts[0]) {
595
- _chunkK6PG2PDFjs.sentryLogger.error("No accounts returned from Coinbase Wallet");
595
+ _chunkFRA6K6V4js.sentryLogger.error("No accounts returned from Coinbase Wallet");
596
596
  throw new Error("No accounts returned from Coinbase Wallet");
597
597
  }
598
598
  return {
@@ -630,7 +630,7 @@ var CoinbaseWalletAdapter = class {
630
630
  await this.provider.disconnect();
631
631
  }
632
632
  } catch (error) {
633
- _chunkK6PG2PDFjs.sentryLogger.warn("Error disconnecting from Coinbase Wallet", { error });
633
+ _chunkFRA6K6V4js.sentryLogger.warn("Error disconnecting from Coinbase Wallet", { error });
634
634
  } finally {
635
635
  this.clearLocalStorage();
636
636
  }
@@ -741,7 +741,7 @@ var MetaMaskAdapter = class {
741
741
  await this.providerPromise;
742
742
  }
743
743
  if (!this.provider) {
744
- _chunkK6PG2PDFjs.sentryLogger.error("MetaMask is not available");
744
+ _chunkFRA6K6V4js.sentryLogger.error("MetaMask is not available");
745
745
  throw new Error("MetaMask is not available");
746
746
  }
747
747
  await this.provider.request({
@@ -753,7 +753,7 @@ var MetaMaskAdapter = class {
753
753
  params: []
754
754
  });
755
755
  if (!accounts || accounts.length === 0 || !accounts[0]) {
756
- _chunkK6PG2PDFjs.sentryLogger.error("No accounts returned from MetaMask");
756
+ _chunkFRA6K6V4js.sentryLogger.error("No accounts returned from MetaMask");
757
757
  throw new Error("No accounts returned from MetaMask");
758
758
  }
759
759
  return {
@@ -1045,13 +1045,13 @@ var WalletConnectAdapter = class {
1045
1045
  this.provider = provider;
1046
1046
  }
1047
1047
  } catch (error) {
1048
- _chunkK6PG2PDFjs.sentryLogger.warn("Failed to get provider from wagmi connector", { error });
1048
+ _chunkFRA6K6V4js.sentryLogger.warn("Failed to get provider from wagmi connector", { error });
1049
1049
  }
1050
1050
  }
1051
1051
  }
1052
1052
  }
1053
1053
  } catch (error) {
1054
- _chunkK6PG2PDFjs.sentryLogger.warn("Failed to get provider from WalletConnect", { error });
1054
+ _chunkFRA6K6V4js.sentryLogger.warn("Failed to get provider from WalletConnect", { error });
1055
1055
  }
1056
1056
  }
1057
1057
  isInstalled() {
@@ -1094,7 +1094,7 @@ var WalletConnectAdapter = class {
1094
1094
  * Emits walletconnect:uri event for QR code display.
1095
1095
  */
1096
1096
  async connect() {
1097
- if (!this.config.projectId) throw _chunkK6PG2PDFjs.createConfigError.call(void 0, "WalletConnect");
1097
+ if (!this.config.projectId) throw _chunkFRA6K6V4js.createConfigError.call(void 0, "WalletConnect");
1098
1098
  await this.ensureInitialized();
1099
1099
  if (!this.universalProvider) throw new Error("WalletConnect is not available");
1100
1100
  await this.resetConnectionState();
@@ -1157,7 +1157,7 @@ var WalletConnectAdapter = class {
1157
1157
  * Used on mobile and when user clicks "Open Modal" button.
1158
1158
  */
1159
1159
  async openModal() {
1160
- if (!this.config.projectId) throw _chunkK6PG2PDFjs.createConfigError.call(void 0, "WalletConnect");
1160
+ if (!this.config.projectId) throw _chunkFRA6K6V4js.createConfigError.call(void 0, "WalletConnect");
1161
1161
  await this.ensureInitialized();
1162
1162
  if (!this.modal) throw new Error("AppKit is not available");
1163
1163
  await this.resetConnectionState();
@@ -1361,21 +1361,16 @@ var _EmailAdapter = class _EmailAdapter {
1361
1361
  }
1362
1362
  async emailAuthStart(email) {
1363
1363
  if (!this.projectId) {
1364
- throw _chunkK6PG2PDFjs.createConfigError.call(void 0, "Email");
1364
+ throw _chunkFRA6K6V4js.createConfigError.call(void 0, "Email");
1365
1365
  }
1366
1366
  await this.ensureInitialized();
1367
1367
  if (!this.provider) {
1368
- _chunkK6PG2PDFjs.sentryLogger.error("Email is not available");
1368
+ _chunkFRA6K6V4js.sentryLogger.error("Email is not available");
1369
1369
  throw new Error("Email is not available");
1370
1370
  }
1371
- try {
1372
- const { signInWithEmail } = await Promise.resolve().then(() => _interopRequireWildcard(require("@coinbase/cdp-core")));
1373
- const authResult = await signInWithEmail({ email });
1374
- return authResult;
1375
- } catch (error) {
1376
- _chunkK6PG2PDFjs.sentryLogger.error("Failed to start email authentication", { error });
1377
- throw error;
1378
- }
1371
+ const { signInWithEmail } = await Promise.resolve().then(() => _interopRequireWildcard(require("@coinbase/cdp-core")));
1372
+ const authResult = await signInWithEmail({ email });
1373
+ return authResult;
1379
1374
  }
1380
1375
  async emailAuthVerify(flowId, otp) {
1381
1376
  if (!flowId || !otp) {
@@ -1383,14 +1378,14 @@ var _EmailAdapter = class _EmailAdapter {
1383
1378
  }
1384
1379
  await this.ensureInitialized();
1385
1380
  if (!this.provider) {
1386
- _chunkK6PG2PDFjs.sentryLogger.error("Email provider not initialized");
1381
+ _chunkFRA6K6V4js.sentryLogger.error("Email provider not initialized");
1387
1382
  throw new Error("Email provider not initialized");
1388
1383
  }
1389
1384
  const { verifyEmailOTP } = await Promise.resolve().then(() => _interopRequireWildcard(require("@coinbase/cdp-core")));
1390
1385
  return verifyEmailOTP({ flowId, otp });
1391
1386
  }
1392
1387
  async connect() {
1393
- _chunkK6PG2PDFjs.sentryLogger.error("EmailAdapter.connect() is not implemented");
1388
+ _chunkFRA6K6V4js.sentryLogger.error("EmailAdapter.connect() is not implemented");
1394
1389
  throw new Error("EmailAdapter.connect() is not implemented");
1395
1390
  }
1396
1391
  async tryRestoreConnection() {
@@ -1503,7 +1498,7 @@ var _EmailAdapter = class _EmailAdapter {
1503
1498
  const chainIdHex = await base.request({ method: "eth_chainId", params: [] });
1504
1499
  chainId = parseInt(chainIdHex, 16);
1505
1500
  } catch (e13) {
1506
- _chunkK6PG2PDFjs.sentryLogger.error("Failed to get chainId for fallback request");
1501
+ _chunkFRA6K6V4js.sentryLogger.error("Failed to get chainId for fallback request");
1507
1502
  throw new Error("Failed to get chainId for fallback request");
1508
1503
  }
1509
1504
  const publicClient = await getPublicClient(chainId);
@@ -1518,7 +1513,7 @@ var _EmailAdapter = class _EmailAdapter {
1518
1513
  };
1519
1514
  return wrapped;
1520
1515
  } catch (error) {
1521
- _chunkK6PG2PDFjs.sentryLogger.error("Failed to initialize Email provider", { error });
1516
+ _chunkFRA6K6V4js.sentryLogger.error("Failed to initialize Email provider", { error });
1522
1517
  return null;
1523
1518
  }
1524
1519
  }
@@ -1647,7 +1642,7 @@ var _AurumCore = class _AurumCore {
1647
1642
  return _AurumCore.instance;
1648
1643
  }
1649
1644
  const telemetryEnabled = config.telemetry !== false;
1650
- _chunkK6PG2PDFjs.initSentry.call(void 0, telemetryEnabled);
1645
+ _chunkFRA6K6V4js.initSentry.call(void 0, telemetryEnabled);
1651
1646
  this.brandConfig = this.resolveBrandConfig(config);
1652
1647
  this.excludedWallets = new Set(_nullishCoalesce(_optionalChain([config, 'access', _143 => _143.wallets, 'optionalAccess', _144 => _144.exclude]), () => ( [])));
1653
1648
  this.wallets = createWalletAdapters({
@@ -1714,19 +1709,19 @@ var _AurumCore = class _AurumCore {
1714
1709
  const displayedWallets = this.wallets.filter((w) => !this.excludedWallets.has(w.id));
1715
1710
  const modalResult = await renderConnectModal({ displayedWallets, brandConfig: this.brandConfig });
1716
1711
  if (!modalResult) {
1717
- _chunkK6PG2PDFjs.sentryLogger.error("Missing modal result");
1712
+ _chunkFRA6K6V4js.sentryLogger.error("Missing modal result");
1718
1713
  throw new Error("Missing modal result");
1719
1714
  }
1720
1715
  adapter = this.wallets.find((w) => w.id === modalResult.walletId) || null;
1721
1716
  if (!adapter) {
1722
- _chunkK6PG2PDFjs.sentryLogger.error(`Selected wallet adapter not found: ${modalResult.walletId}`);
1717
+ _chunkFRA6K6V4js.sentryLogger.error(`Selected wallet adapter not found: ${modalResult.walletId}`);
1723
1718
  throw new Error("Selected wallet adapter not found");
1724
1719
  }
1725
1720
  result = modalResult;
1726
1721
  }
1727
1722
  const provider = _nullishCoalesce(result.provider, () => ( adapter.getProvider()));
1728
1723
  if (!provider) {
1729
- _chunkK6PG2PDFjs.sentryLogger.error(`Error fetching provider on login: ${adapter.id}`);
1724
+ _chunkFRA6K6V4js.sentryLogger.error(`Error fetching provider on login: ${adapter.id}`);
1730
1725
  throw new Error("Error fetching provider. Please try again.");
1731
1726
  }
1732
1727
  const checksumAdr = _viem.checksumAddress.call(void 0, result.address);
@@ -1743,7 +1738,7 @@ var _AurumCore = class _AurumCore {
1743
1738
  const chainId = await provider.request({ method: "eth_chainId" });
1744
1739
  this.emitConnect(chainId);
1745
1740
  this.emitAccountsChanged([checksumAdr]);
1746
- _chunkK6PG2PDFjs.sentryLogger.info(`Wallet connected: ${adapter.id} (${walletId ? "headless" : "modal"})`);
1741
+ _chunkFRA6K6V4js.sentryLogger.info(`Wallet connected: ${adapter.id} (${walletId ? "headless" : "modal"})`);
1747
1742
  return checksumAdr;
1748
1743
  }
1749
1744
  async disconnect() {
@@ -1772,7 +1767,7 @@ var _AurumCore = class _AurumCore {
1772
1767
  if (!adapter) throw new Error("Selected wallet adapter not found");
1773
1768
  const provider = _nullishCoalesce(result.provider, () => ( adapter.getProvider()));
1774
1769
  if (!provider) {
1775
- _chunkK6PG2PDFjs.sentryLogger.error(`Error fetching provider on widget login: ${_optionalChain([result, 'optionalAccess', _157 => _157.walletId])}`);
1770
+ _chunkFRA6K6V4js.sentryLogger.error(`Error fetching provider on widget login: ${_optionalChain([result, 'optionalAccess', _157 => _157.walletId])}`);
1776
1771
  throw new Error("Error fetching provider. Please try again.");
1777
1772
  }
1778
1773
  const checksumAdr = _viem.checksumAddress.call(void 0, result.address);
@@ -1789,7 +1784,7 @@ var _AurumCore = class _AurumCore {
1789
1784
  const chainId = await provider.request({ method: "eth_chainId" });
1790
1785
  this.emitConnect(chainId);
1791
1786
  this.emitAccountsChanged([checksumAdr]);
1792
- _chunkK6PG2PDFjs.sentryLogger.info(`Wallet connected: ${adapter.id} (widget)`);
1787
+ _chunkFRA6K6V4js.sentryLogger.info(`Wallet connected: ${adapter.id} (widget)`);
1793
1788
  return this.userInfo;
1794
1789
  }
1795
1790
  async getChainId() {
@@ -1808,7 +1803,7 @@ var _AurumCore = class _AurumCore {
1808
1803
  }
1809
1804
  }
1810
1805
  updateBrandConfig(newConfig) {
1811
- const defaultTheme = _chunkK6PG2PDFjs.getDefaultThemeConfig.call(void 0, _nullishCoalesce(newConfig.theme, () => ( this.brandConfig.theme)));
1806
+ const defaultTheme = _chunkFRA6K6V4js.getDefaultThemeConfig.call(void 0, _nullishCoalesce(newConfig.theme, () => ( this.brandConfig.theme)));
1812
1807
  this.brandConfig = {
1813
1808
  logo: "logo" in newConfig ? _nullishCoalesce(newConfig.logo, () => ( defaultTheme.logo)) : this.brandConfig.logo,
1814
1809
  theme: "theme" in newConfig ? _nullishCoalesce(newConfig.theme, () => ( defaultTheme.theme)) : this.brandConfig.theme,
@@ -1859,13 +1854,13 @@ var _AurumCore = class _AurumCore {
1859
1854
  const verifyResult = await emailAdapter.emailAuthVerify(flowId, otp);
1860
1855
  const provider = emailAdapter.getProvider();
1861
1856
  if (!provider) {
1862
- _chunkK6PG2PDFjs.sentryLogger.error("Failed to get provider after email verification");
1857
+ _chunkFRA6K6V4js.sentryLogger.error("Failed to get provider after email verification");
1863
1858
  throw new Error("Failed to get provider after email verification");
1864
1859
  }
1865
1860
  const address = _optionalChain([verifyResult, 'access', _160 => _160.user, 'optionalAccess', _161 => _161.evmAccounts, 'optionalAccess', _162 => _162[0]]);
1866
1861
  const email = _optionalChain([verifyResult, 'access', _163 => _163.user, 'optionalAccess', _164 => _164.authenticationMethods, 'optionalAccess', _165 => _165.email, 'optionalAccess', _166 => _166.email]);
1867
1862
  if (!address || !email) {
1868
- _chunkK6PG2PDFjs.sentryLogger.error("Address or email not found after email verification");
1863
+ _chunkFRA6K6V4js.sentryLogger.error("Address or email not found after email verification");
1869
1864
  throw new Error("Address or email not found after email verification");
1870
1865
  }
1871
1866
  const checksumAdr = _viem.checksumAddress.call(void 0, address);
@@ -1882,7 +1877,7 @@ var _AurumCore = class _AurumCore {
1882
1877
  const chainId = await provider.request({ method: "eth_chainId" });
1883
1878
  this.emitConnect(chainId);
1884
1879
  this.emitAccountsChanged([checksumAdr]);
1885
- _chunkK6PG2PDFjs.sentryLogger.info(`Wallet connected: ${emailAdapter.id} (headless)`);
1880
+ _chunkFRA6K6V4js.sentryLogger.info(`Wallet connected: ${emailAdapter.id} (headless)`);
1886
1881
  return { address: checksumAdr, email: _nullishCoalesce(email, () => ( "")), isNewUser: _nullishCoalesce(verifyResult.isNewUser, () => ( false)) };
1887
1882
  }
1888
1883
  /**
@@ -1902,7 +1897,7 @@ var _AurumCore = class _AurumCore {
1902
1897
  const result = await session.waitForConnection();
1903
1898
  const provider = _nullishCoalesce(result.provider, () => ( wcAdapter.getProvider()));
1904
1899
  if (!provider) {
1905
- _chunkK6PG2PDFjs.sentryLogger.error("Failed to get provider after WalletConnect connection");
1900
+ _chunkFRA6K6V4js.sentryLogger.error("Failed to get provider after WalletConnect connection");
1906
1901
  throw new Error("Failed to get provider after WalletConnect connection");
1907
1902
  }
1908
1903
  const checksumAdr = _viem.checksumAddress.call(void 0, result.address);
@@ -1918,7 +1913,7 @@ var _AurumCore = class _AurumCore {
1918
1913
  const chainId = await provider.request({ method: "eth_chainId" });
1919
1914
  this.emitConnect(chainId);
1920
1915
  this.emitAccountsChanged([checksumAdr]);
1921
- _chunkK6PG2PDFjs.sentryLogger.info(`Wallet connected: ${wcAdapter.id} (headless)`);
1916
+ _chunkFRA6K6V4js.sentryLogger.info(`Wallet connected: ${wcAdapter.id} (headless)`);
1922
1917
  return checksumAdr;
1923
1918
  }
1924
1919
  };
@@ -1975,7 +1970,7 @@ var _AurumCore = class _AurumCore {
1975
1970
  /* BRAND & THEME METHODS */
1976
1971
  resolveBrandConfig(config) {
1977
1972
  const { brand = {} } = config || {};
1978
- const themeConfig = _chunkK6PG2PDFjs.getDefaultThemeConfig.call(void 0, brand.theme || _chunkK6PG2PDFjs.DEFAULT_THEME);
1973
+ const themeConfig = _chunkFRA6K6V4js.getDefaultThemeConfig.call(void 0, brand.theme || _chunkFRA6K6V4js.DEFAULT_THEME);
1979
1974
  return {
1980
1975
  logo: _nullishCoalesce(brand.logo, () => ( themeConfig.logo)),
1981
1976
  theme: _nullishCoalesce(brand.theme, () => ( themeConfig.theme)),
@@ -1990,8 +1985,8 @@ var _AurumCore = class _AurumCore {
1990
1985
  }
1991
1986
  async tryRestoreConnection() {
1992
1987
  try {
1993
- await _chunkK6PG2PDFjs.waitForStoreHydration.call(void 0, );
1994
- const store = _chunkK6PG2PDFjs.useAurumStore.getState();
1988
+ await _chunkFRA6K6V4js.waitForStoreHydration.call(void 0, );
1989
+ const store = _chunkFRA6K6V4js.useAurumStore.getState();
1995
1990
  if (!store.isConnected || !store.walletId || !store.address || !store.walletName) {
1996
1991
  return;
1997
1992
  }
@@ -2021,7 +2016,7 @@ var _AurumCore = class _AurumCore {
2021
2016
  }
2022
2017
  }
2023
2018
  persistConnectionState(adapter, address, email) {
2024
- _chunkK6PG2PDFjs.useAurumStore.getState().setConnection(adapter.id, _viem.checksumAddress.call(void 0, address), adapter.name, email);
2019
+ _chunkFRA6K6V4js.useAurumStore.getState().setConnection(adapter.id, _viem.checksumAddress.call(void 0, address), adapter.name, email);
2025
2020
  }
2026
2021
  /* INTERNAL LISTENER METHODS */
2027
2022
  setInternalAccountChangeListener(adapter) {
@@ -2119,7 +2114,7 @@ var _AurumCore = class _AurumCore {
2119
2114
  }
2120
2115
  /* REST */
2121
2116
  resetConnectionState() {
2122
- _chunkK6PG2PDFjs.useAurumStore.getState().clearConnection();
2117
+ _chunkFRA6K6V4js.useAurumStore.getState().clearConnection();
2123
2118
  this.connectedWalletAdapter = null;
2124
2119
  this.updateProvider(this.skeletonProvider);
2125
2120
  this.userInfo = void 0;