@aurum-sdk/core 0.2.7 → 0.2.8

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/README.md CHANGED
@@ -14,12 +14,6 @@ Aurum is an open-source JavaScript SDK that makes it easy to add wallets to your
14
14
  pnpm add @aurum-sdk/core
15
15
  ```
16
16
 
17
- > **pnpm local development (link:)**: `@reown/appkit` and `@reown/appkit-adapter-wagmi` are loaded as dynamic requires at runtime rather than bundled inline. With a normal `pnpm add` install this is transparent — pnpm installs them as transitive deps. But if you're linking Aurum locally via `link:` or a workspace `link:` protocol, pnpm's strict isolation may prevent your app's webpack from resolving them. Fix by adding them explicitly to your app's dependencies:
18
- >
19
- > ```bash
20
- > pnpm add @reown/appkit @reown/appkit-adapter-wagmi
21
- > ```
22
-
23
17
  ## Quick Start
24
18
 
25
19
  ```typescript
@@ -10267,7 +10267,7 @@ function initSentry(enabled = true) {
10267
10267
  const client = new BrowserClient({
10268
10268
  dsn: "https://0bb16fd7057ac7b45ae0ab416cdbea8b@o4505953815494656.ingest.us.sentry.io/4509747448184832",
10269
10269
  environment: getEnvironment(),
10270
- release: `@aurum-sdk/core@${"0.2.7"}`,
10270
+ release: `@aurum-sdk/core@${"0.2.8"}`,
10271
10271
  sendDefaultPii: false,
10272
10272
  transport: makeFetchTransport,
10273
10273
  stackParser: defaultStackParser,
@@ -13329,4 +13329,4 @@ lucide-react/dist/esm/lucide-react.js:
13329
13329
  * See the LICENSE file in the root directory of this source tree.
13330
13330
  *)
13331
13331
  */
13332
- //# sourceMappingURL=chunk-64XDE56K.mjs.map
13332
+ //# sourceMappingURL=chunk-GMFEFDGS.mjs.map
@@ -10267,7 +10267,7 @@ function initSentry(enabled = true) {
10267
10267
  const client = new BrowserClient({
10268
10268
  dsn: "https://0bb16fd7057ac7b45ae0ab416cdbea8b@o4505953815494656.ingest.us.sentry.io/4509747448184832",
10269
10269
  environment: getEnvironment(),
10270
- release: `@aurum-sdk/core@${"0.2.7"}`,
10270
+ release: `@aurum-sdk/core@${"0.2.8"}`,
10271
10271
  sendDefaultPii: false,
10272
10272
  transport: makeFetchTransport,
10273
10273
  stackParser: defaultStackParser,
@@ -13329,4 +13329,4 @@ lucide-react/dist/esm/lucide-react.js:
13329
13329
  * See the LICENSE file in the root directory of this source tree.
13330
13330
  *)
13331
13331
  */
13332
- //# sourceMappingURL=chunk-2P33GXLJ.js.map
13332
+ //# sourceMappingURL=chunk-K64T6WW3.js.map
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- var _chunk2P33GXLJjs = require('./chunk-2P33GXLJ.js');
19
+ var _chunkK64T6WW3js = require('./chunk-K64T6WW3.js');
20
20
  require('./chunk-4EBNC4R3.js');
21
21
 
22
22
 
@@ -64,20 +64,20 @@ var _react = require('react');
64
64
  var _jsxruntime = require('react/jsx-runtime');
65
65
  var ModalShell = ({ onClose, brandConfig }) => {
66
66
  const [isOpen, setIsOpen] = _react.useState.call(void 0, true);
67
- const { currentPage } = _chunk2P33GXLJjs.useNavigation.call(void 0, );
67
+ const { currentPage } = _chunkK64T6WW3js.useNavigation.call(void 0, );
68
68
  const handleClose = () => {
69
69
  setIsOpen(false);
70
70
  onClose();
71
71
  };
72
72
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
73
- _chunk2P33GXLJjs.Modal,
73
+ _chunkK64T6WW3js.Modal,
74
74
  {
75
75
  isOpen,
76
76
  closeOnOverlayClick: true,
77
77
  onCloseComplete: handleClose,
78
78
  brandConfig,
79
79
  transitionKey: currentPage,
80
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.ConnectPages, {})
80
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.ConnectPages, {})
81
81
  }
82
82
  );
83
83
  };
@@ -91,7 +91,7 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
91
91
  function createShadowRoot(container, brandConfig) {
92
92
  const shadowRoot = container.attachShadow({ mode: "open" });
93
93
  shadowRoot.innerHTML = `
94
- <style>${_chunk2P33GXLJjs.generateCompleteStyles.call(void 0, brandConfig)}</style>
94
+ <style>${_chunkK64T6WW3js.generateCompleteStyles.call(void 0, brandConfig)}</style>
95
95
  <div class="aurum-modal-root"></div>
96
96
  `;
97
97
  return shadowRoot.querySelector(".aurum-modal-root");
@@ -128,7 +128,7 @@ function renderConnectModal({
128
128
  brandConfig
129
129
  }) {
130
130
  return new Promise((resolve, reject) => {
131
- const sortedWallets = _chunk2P33GXLJjs.sortWallets.call(void 0, displayedWallets, { filterHidden: false });
131
+ const sortedWallets = _chunkK64T6WW3js.sortWallets.call(void 0, displayedWallets, { filterHidden: false });
132
132
  const { root, cleanup } = createModalContainer(CONTAINER_ID, brandConfig);
133
133
  const onConnect = (result) => {
134
134
  cleanup();
@@ -139,7 +139,7 @@ function renderConnectModal({
139
139
  reject(new Error("User rejected request"));
140
140
  };
141
141
  root.render(
142
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.ThemeContainer, { theme: brandConfig.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.ConnectUIProviders, { onConnect, displayedWallets: sortedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ModalShell, { onClose, brandConfig }) }) })
142
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.ThemeContainer, { theme: brandConfig.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.ConnectUIProviders, { onConnect, displayedWallets: sortedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ModalShell, { onClose, brandConfig }) }) })
143
143
  );
144
144
  });
145
145
  }
@@ -155,9 +155,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
155
155
  var RABBY_RDNS = "io.rabby";
156
156
  var RabbyAdapter = class {
157
157
  constructor() {
158
- this.id = _chunk2P33GXLJjs.WalletId.Rabby;
159
- this.name = _chunk2P33GXLJjs.WalletName.Rabby;
160
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.Rabby, "brand"), () => ( ""));
158
+ this.id = _chunkK64T6WW3js.WalletId.Rabby;
159
+ this.name = _chunkK64T6WW3js.WalletName.Rabby;
160
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.Rabby, "brand"), () => ( ""));
161
161
  this.hide = false;
162
162
  this.downloadUrl = "https://rabby.io";
163
163
  this.wcDeepLinkUrl = null;
@@ -216,7 +216,7 @@ var RabbyAdapter = class {
216
216
  await this.providerPromise;
217
217
  }
218
218
  if (!this.provider) {
219
- _chunk2P33GXLJjs.sentryLogger.error("Rabby is not available");
219
+ _chunkK64T6WW3js.sentryLogger.error("Rabby is not available");
220
220
  throw new Error("Rabby is not available");
221
221
  }
222
222
  await this.provider.request({
@@ -228,7 +228,7 @@ var RabbyAdapter = class {
228
228
  params: []
229
229
  });
230
230
  if (!accounts || accounts.length === 0 || !accounts[0]) {
231
- _chunk2P33GXLJjs.sentryLogger.error("No accounts returned from Rabby");
231
+ _chunkK64T6WW3js.sentryLogger.error("No accounts returned from Rabby");
232
232
  throw new Error("No accounts returned from Rabby");
233
233
  }
234
234
  return {
@@ -297,9 +297,9 @@ function isBraveBrowser() {
297
297
  var BRAVE_RDNS = "com.brave.wallet";
298
298
  var BraveAdapter = class {
299
299
  constructor() {
300
- this.id = _chunk2P33GXLJjs.WalletId.Brave;
301
- this.name = _chunk2P33GXLJjs.WalletName.Brave;
302
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.Brave, "brand"), () => ( ""));
300
+ this.id = _chunkK64T6WW3js.WalletId.Brave;
301
+ this.name = _chunkK64T6WW3js.WalletName.Brave;
302
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.Brave, "brand"), () => ( ""));
303
303
  this.downloadUrl = "https://brave.com/download";
304
304
  this.wcDeepLinkUrl = null;
305
305
  this.provider = null;
@@ -362,7 +362,7 @@ var BraveAdapter = class {
362
362
  await this.providerPromise;
363
363
  }
364
364
  if (!this.provider) {
365
- _chunk2P33GXLJjs.sentryLogger.error("Brave Wallet is not available");
365
+ _chunkK64T6WW3js.sentryLogger.error("Brave Wallet is not available");
366
366
  throw new Error("Brave Wallet is not available");
367
367
  }
368
368
  await this.provider.request({
@@ -374,7 +374,7 @@ var BraveAdapter = class {
374
374
  params: []
375
375
  });
376
376
  if (!accounts || accounts.length === 0 || !accounts[0]) {
377
- _chunk2P33GXLJjs.sentryLogger.error("No accounts returned from Brave Wallet");
377
+ _chunkK64T6WW3js.sentryLogger.error("No accounts returned from Brave Wallet");
378
378
  throw new Error("No accounts returned from Brave Wallet");
379
379
  }
380
380
  return {
@@ -434,9 +434,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
434
434
  var PHANTOM_RDNS = "app.phantom";
435
435
  var PhantomAdapter = class {
436
436
  constructor() {
437
- this.id = _chunk2P33GXLJjs.WalletId.Phantom;
438
- this.name = _chunk2P33GXLJjs.WalletName.Phantom;
439
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.Phantom, "brand"), () => ( ""));
437
+ this.id = _chunkK64T6WW3js.WalletId.Phantom;
438
+ this.name = _chunkK64T6WW3js.WalletName.Phantom;
439
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.Phantom, "brand"), () => ( ""));
440
440
  this.hide = false;
441
441
  this.downloadUrl = "https://phantom.com/download";
442
442
  this.wcDeepLinkUrl = "phantom://wc?uri=";
@@ -500,7 +500,7 @@ var PhantomAdapter = class {
500
500
  await this.providerPromise;
501
501
  }
502
502
  if (!this.provider) {
503
- _chunk2P33GXLJjs.sentryLogger.error("Phantom is not available");
503
+ _chunkK64T6WW3js.sentryLogger.error("Phantom is not available");
504
504
  throw new Error("Phantom is not available");
505
505
  }
506
506
  await this.provider.request({
@@ -512,7 +512,7 @@ var PhantomAdapter = class {
512
512
  params: []
513
513
  });
514
514
  if (!accounts || accounts.length === 0 || !accounts[0]) {
515
- _chunk2P33GXLJjs.sentryLogger.error("No accounts returned from Phantom");
515
+ _chunkK64T6WW3js.sentryLogger.error("No accounts returned from Phantom");
516
516
  throw new Error("No accounts returned from Phantom");
517
517
  }
518
518
  return {
@@ -571,9 +571,9 @@ var PhantomAdapter = class {
571
571
  _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
572
572
  var CoinbaseWalletAdapter = class {
573
573
  constructor({ appName, appLogoUrl, telemetry }) {
574
- this.id = _chunk2P33GXLJjs.WalletId.CoinbaseWallet;
575
- this.name = _chunk2P33GXLJjs.WalletName.CoinbaseWallet;
576
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.CoinbaseWallet, "brand"), () => ( ""));
574
+ this.id = _chunkK64T6WW3js.WalletId.CoinbaseWallet;
575
+ this.name = _chunkK64T6WW3js.WalletName.CoinbaseWallet;
576
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.CoinbaseWallet, "brand"), () => ( ""));
577
577
  this.hide = false;
578
578
  this.downloadUrl = "https://www.coinbase.com/wallet/downloads";
579
579
  this.wcDeepLinkUrl = "cbwallet://wc?uri=";
@@ -603,7 +603,7 @@ var CoinbaseWalletAdapter = class {
603
603
  });
604
604
  this.provider = coinbaseSdk.getProvider();
605
605
  } catch (error) {
606
- _chunk2P33GXLJjs.sentryLogger.warn("Failed to initialize Coinbase Wallet provider", { error });
606
+ _chunkK64T6WW3js.sentryLogger.warn("Failed to initialize Coinbase Wallet provider", { error });
607
607
  }
608
608
  }
609
609
  isInstalled() {
@@ -612,7 +612,7 @@ var CoinbaseWalletAdapter = class {
612
612
  async connect() {
613
613
  await this.ensureInitialized();
614
614
  if (!this.provider) {
615
- _chunk2P33GXLJjs.sentryLogger.error("Coinbase Wallet is not available");
615
+ _chunkK64T6WW3js.sentryLogger.error("Coinbase Wallet is not available");
616
616
  throw new Error("Coinbase Wallet is not available");
617
617
  }
618
618
  const accounts = await this.provider.request({
@@ -620,7 +620,7 @@ var CoinbaseWalletAdapter = class {
620
620
  params: []
621
621
  });
622
622
  if (!accounts || accounts.length === 0 || !accounts[0]) {
623
- _chunk2P33GXLJjs.sentryLogger.error("No accounts returned from Coinbase Wallet");
623
+ _chunkK64T6WW3js.sentryLogger.error("No accounts returned from Coinbase Wallet");
624
624
  throw new Error("No accounts returned from Coinbase Wallet");
625
625
  }
626
626
  return {
@@ -660,7 +660,7 @@ var CoinbaseWalletAdapter = class {
660
660
  await this.provider.disconnect();
661
661
  }
662
662
  } catch (error) {
663
- _chunk2P33GXLJjs.sentryLogger.warn("Error disconnecting from Coinbase Wallet", { error });
663
+ _chunkK64T6WW3js.sentryLogger.warn("Error disconnecting from Coinbase Wallet", { error });
664
664
  } finally {
665
665
  this.clearLocalStorage();
666
666
  }
@@ -703,9 +703,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
703
703
  var METAMASK_RDNS = "io.metamask";
704
704
  var MetaMaskAdapter = class {
705
705
  constructor() {
706
- this.id = _chunk2P33GXLJjs.WalletId.MetaMask;
707
- this.name = _chunk2P33GXLJjs.WalletName.MetaMask;
708
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.MetaMask, "brand"), () => ( ""));
706
+ this.id = _chunkK64T6WW3js.WalletId.MetaMask;
707
+ this.name = _chunkK64T6WW3js.WalletName.MetaMask;
708
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.MetaMask, "brand"), () => ( ""));
709
709
  this.hide = false;
710
710
  this.downloadUrl = "https://metamask.io/download";
711
711
  this.wcDeepLinkUrl = "metamask://wc?uri=";
@@ -770,7 +770,7 @@ var MetaMaskAdapter = class {
770
770
  await this.providerPromise;
771
771
  }
772
772
  if (!this.provider) {
773
- _chunk2P33GXLJjs.sentryLogger.error("MetaMask is not available");
773
+ _chunkK64T6WW3js.sentryLogger.error("MetaMask is not available");
774
774
  throw new Error("MetaMask is not available");
775
775
  }
776
776
  await this.provider.request({
@@ -782,7 +782,7 @@ var MetaMaskAdapter = class {
782
782
  params: []
783
783
  });
784
784
  if (!accounts || accounts.length === 0 || !accounts[0]) {
785
- _chunk2P33GXLJjs.sentryLogger.error("No accounts returned from MetaMask");
785
+ _chunkK64T6WW3js.sentryLogger.error("No accounts returned from MetaMask");
786
786
  throw new Error("No accounts returned from MetaMask");
787
787
  }
788
788
  return {
@@ -934,9 +934,9 @@ function extractAddressFromSession(namespaces) {
934
934
  }
935
935
  var WalletConnectAdapter = class {
936
936
  constructor(config) {
937
- this.id = _chunk2P33GXLJjs.WalletId.WalletConnect;
938
- this.name = _chunk2P33GXLJjs.WalletName.WalletConnect;
939
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.WalletConnect, "brand"), () => ( ""));
937
+ this.id = _chunkK64T6WW3js.WalletId.WalletConnect;
938
+ this.name = _chunkK64T6WW3js.WalletName.WalletConnect;
939
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.WalletConnect, "brand"), () => ( ""));
940
940
  this.hide = false;
941
941
  this.downloadUrl = null;
942
942
  this.wcDeepLinkUrl = null;
@@ -1074,13 +1074,13 @@ var WalletConnectAdapter = class {
1074
1074
  this.provider = provider;
1075
1075
  }
1076
1076
  } catch (error) {
1077
- _chunk2P33GXLJjs.sentryLogger.warn("Failed to get provider from wagmi connector", { error });
1077
+ _chunkK64T6WW3js.sentryLogger.warn("Failed to get provider from wagmi connector", { error });
1078
1078
  }
1079
1079
  }
1080
1080
  }
1081
1081
  }
1082
1082
  } catch (error) {
1083
- _chunk2P33GXLJjs.sentryLogger.warn("Failed to get provider from WalletConnect", { error });
1083
+ _chunkK64T6WW3js.sentryLogger.warn("Failed to get provider from WalletConnect", { error });
1084
1084
  }
1085
1085
  }
1086
1086
  isInstalled() {
@@ -1123,7 +1123,7 @@ var WalletConnectAdapter = class {
1123
1123
  * Emits walletconnect:uri event for QR code display.
1124
1124
  */
1125
1125
  async connect() {
1126
- if (!this.config.projectId) throw _chunk2P33GXLJjs.createConfigError.call(void 0, "WalletConnect");
1126
+ if (!this.config.projectId) throw _chunkK64T6WW3js.createConfigError.call(void 0, "WalletConnect");
1127
1127
  await this.ensureInitialized();
1128
1128
  if (!this.universalProvider) throw new Error("WalletConnect is not available");
1129
1129
  await this.resetConnectionState();
@@ -1186,7 +1186,7 @@ var WalletConnectAdapter = class {
1186
1186
  * Used on mobile and when user clicks "Open Modal" button.
1187
1187
  */
1188
1188
  async openModal() {
1189
- if (!this.config.projectId) throw _chunk2P33GXLJjs.createConfigError.call(void 0, "WalletConnect");
1189
+ if (!this.config.projectId) throw _chunkK64T6WW3js.createConfigError.call(void 0, "WalletConnect");
1190
1190
  await this.ensureInitialized();
1191
1191
  if (!this.modal) throw new Error("AppKit is not available");
1192
1192
  await this.resetConnectionState();
@@ -1365,9 +1365,9 @@ var WalletConnectAdapter = class {
1365
1365
  _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
1366
1366
  var _EmailAdapter = class _EmailAdapter {
1367
1367
  constructor(config) {
1368
- this.id = _chunk2P33GXLJjs.WalletId.Email;
1369
- this.name = _chunk2P33GXLJjs.WalletName.Email;
1370
- this.icon = _nullishCoalesce(_chunk2P33GXLJjs.getLogoDataUri.call(void 0, _chunk2P33GXLJjs.WalletId.Email, "brand"), () => ( ""));
1368
+ this.id = _chunkK64T6WW3js.WalletId.Email;
1369
+ this.name = _chunkK64T6WW3js.WalletName.Email;
1370
+ this.icon = _nullishCoalesce(_chunkK64T6WW3js.getLogoDataUri.call(void 0, _chunkK64T6WW3js.WalletId.Email, "brand"), () => ( ""));
1371
1371
  this.hide = true;
1372
1372
  this.downloadUrl = null;
1373
1373
  this.wcDeepLinkUrl = null;
@@ -1389,11 +1389,11 @@ var _EmailAdapter = class _EmailAdapter {
1389
1389
  }
1390
1390
  async emailAuthStart(email) {
1391
1391
  if (!this.projectId) {
1392
- throw _chunk2P33GXLJjs.createConfigError.call(void 0, "Email");
1392
+ throw _chunkK64T6WW3js.createConfigError.call(void 0, "Email");
1393
1393
  }
1394
1394
  await this.ensureInitialized();
1395
1395
  if (!this.provider) {
1396
- _chunk2P33GXLJjs.sentryLogger.error("Email is not available");
1396
+ _chunkK64T6WW3js.sentryLogger.error("Email is not available");
1397
1397
  throw new Error("Email is not available");
1398
1398
  }
1399
1399
  const { signInWithEmail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./index.web-V7DLWC7H.js")));
@@ -1406,14 +1406,14 @@ var _EmailAdapter = class _EmailAdapter {
1406
1406
  }
1407
1407
  await this.ensureInitialized();
1408
1408
  if (!this.provider) {
1409
- _chunk2P33GXLJjs.sentryLogger.error("Email provider not initialized");
1409
+ _chunkK64T6WW3js.sentryLogger.error("Email provider not initialized");
1410
1410
  throw new Error("Email provider not initialized");
1411
1411
  }
1412
1412
  const { verifyEmailOTP } = await Promise.resolve().then(() => _interopRequireWildcard(require("./index.web-V7DLWC7H.js")));
1413
1413
  return verifyEmailOTP({ flowId, otp });
1414
1414
  }
1415
1415
  async connect() {
1416
- _chunk2P33GXLJjs.sentryLogger.error("EmailAdapter.connect() is not implemented");
1416
+ _chunkK64T6WW3js.sentryLogger.error("EmailAdapter.connect() is not implemented");
1417
1417
  throw new Error("EmailAdapter.connect() is not implemented");
1418
1418
  }
1419
1419
  async tryRestoreConnection() {
@@ -1526,7 +1526,7 @@ var _EmailAdapter = class _EmailAdapter {
1526
1526
  const chainIdHex = await base.request({ method: "eth_chainId", params: [] });
1527
1527
  chainId = parseInt(chainIdHex, 16);
1528
1528
  } catch (e13) {
1529
- _chunk2P33GXLJjs.sentryLogger.error("Failed to get chainId for fallback request");
1529
+ _chunkK64T6WW3js.sentryLogger.error("Failed to get chainId for fallback request");
1530
1530
  throw new Error("Failed to get chainId for fallback request");
1531
1531
  }
1532
1532
  const publicClient = await getPublicClient(chainId);
@@ -1541,7 +1541,7 @@ var _EmailAdapter = class _EmailAdapter {
1541
1541
  };
1542
1542
  return wrapped;
1543
1543
  } catch (error) {
1544
- _chunk2P33GXLJjs.sentryLogger.error("Failed to initialize Email provider", { error });
1544
+ _chunkK64T6WW3js.sentryLogger.error("Failed to initialize Email provider", { error });
1545
1545
  return null;
1546
1546
  }
1547
1547
  }
@@ -1770,7 +1770,7 @@ var _AurumCore = class _AurumCore {
1770
1770
  }
1771
1771
  _AurumCore.storedConfigJson = _AurumCore.serializeConfig(config);
1772
1772
  const telemetryEnabled = config.telemetry !== false;
1773
- _chunk2P33GXLJjs.initSentry.call(void 0, telemetryEnabled);
1773
+ _chunkK64T6WW3js.initSentry.call(void 0, telemetryEnabled);
1774
1774
  this.brandConfig = this.resolveBrandConfig(config);
1775
1775
  this.excludedWallets = new Set(_nullishCoalesce(_optionalChain([config, 'access', _142 => _142.wallets, 'optionalAccess', _143 => _143.exclude]), () => ( [])));
1776
1776
  this.wallets = createWalletAdapters({
@@ -1833,7 +1833,7 @@ var _AurumCore = class _AurumCore {
1833
1833
  if (!adapter) {
1834
1834
  throw new WalletNotConfiguredError(walletId);
1835
1835
  }
1836
- if (walletId === _chunk2P33GXLJjs.WalletId.WalletConnect && adapter.openModal) {
1836
+ if (walletId === _chunkK64T6WW3js.WalletId.WalletConnect && adapter.openModal) {
1837
1837
  result = await adapter.openModal();
1838
1838
  } else {
1839
1839
  if (!adapter.isInstalled()) {
@@ -1845,19 +1845,19 @@ var _AurumCore = class _AurumCore {
1845
1845
  const displayedWallets = this.wallets.filter((w) => !this.excludedWallets.has(w.id));
1846
1846
  const modalResult = await renderConnectModal({ displayedWallets, brandConfig: this.brandConfig });
1847
1847
  if (!modalResult) {
1848
- _chunk2P33GXLJjs.sentryLogger.error("Missing modal result");
1848
+ _chunkK64T6WW3js.sentryLogger.error("Missing modal result");
1849
1849
  throw new ConnectionError("Missing modal result");
1850
1850
  }
1851
1851
  adapter = this.wallets.find((w) => w.id === modalResult.walletId) || null;
1852
1852
  if (!adapter) {
1853
- _chunk2P33GXLJjs.sentryLogger.error(`Selected wallet adapter not found: ${modalResult.walletId}`);
1853
+ _chunkK64T6WW3js.sentryLogger.error(`Selected wallet adapter not found: ${modalResult.walletId}`);
1854
1854
  throw new ConnectionError("Selected wallet adapter not found");
1855
1855
  }
1856
1856
  result = modalResult;
1857
1857
  }
1858
1858
  const provider = _nullishCoalesce(result.provider, () => ( adapter.getProvider()));
1859
1859
  if (!provider) {
1860
- _chunk2P33GXLJjs.sentryLogger.error(`Error fetching provider on login: ${adapter.id}`);
1860
+ _chunkK64T6WW3js.sentryLogger.error(`Error fetching provider on login: ${adapter.id}`);
1861
1861
  throw new ConnectionError("Error fetching provider. Please try again.");
1862
1862
  }
1863
1863
  const checksumAdr = _viem.checksumAddress.call(void 0, result.address);
@@ -1874,7 +1874,7 @@ var _AurumCore = class _AurumCore {
1874
1874
  const chainId = await provider.request({ method: "eth_chainId" });
1875
1875
  this.emitConnect(chainId);
1876
1876
  this.emitAccountsChanged([checksumAdr]);
1877
- _chunk2P33GXLJjs.sentryLogger.info(`Wallet connected: ${adapter.id} (${walletId ? "headless" : "modal"})`);
1877
+ _chunkK64T6WW3js.sentryLogger.info(`Wallet connected: ${adapter.id} (${walletId ? "headless" : "modal"})`);
1878
1878
  return checksumAdr;
1879
1879
  } catch (err) {
1880
1880
  throw normalizeError(err, { operation: "connect" });
@@ -1911,7 +1911,7 @@ var _AurumCore = class _AurumCore {
1911
1911
  if (!adapter) throw new ConnectionError("Selected wallet adapter not found");
1912
1912
  const provider = _nullishCoalesce(result.provider, () => ( adapter.getProvider()));
1913
1913
  if (!provider) {
1914
- _chunk2P33GXLJjs.sentryLogger.error(`Error fetching provider on widget login: ${_optionalChain([result, 'optionalAccess', _156 => _156.walletId])}`);
1914
+ _chunkK64T6WW3js.sentryLogger.error(`Error fetching provider on widget login: ${_optionalChain([result, 'optionalAccess', _156 => _156.walletId])}`);
1915
1915
  throw new ConnectionError("Error fetching provider. Please try again.");
1916
1916
  }
1917
1917
  const checksumAdr = _viem.checksumAddress.call(void 0, result.address);
@@ -1928,7 +1928,7 @@ var _AurumCore = class _AurumCore {
1928
1928
  const chainId = await provider.request({ method: "eth_chainId" });
1929
1929
  this.emitConnect(chainId);
1930
1930
  this.emitAccountsChanged([checksumAdr]);
1931
- _chunk2P33GXLJjs.sentryLogger.info(`Wallet connected: ${adapter.id} (widget)`);
1931
+ _chunkK64T6WW3js.sentryLogger.info(`Wallet connected: ${adapter.id} (widget)`);
1932
1932
  return this.userInfo;
1933
1933
  } catch (err) {
1934
1934
  throw normalizeError(err, { operation: "connect" });
@@ -1954,7 +1954,7 @@ var _AurumCore = class _AurumCore {
1954
1954
  }
1955
1955
  }
1956
1956
  updateBrandConfig(newConfig) {
1957
- const defaultTheme = _chunk2P33GXLJjs.getDefaultThemeConfig.call(void 0, _nullishCoalesce(newConfig.theme, () => ( this.brandConfig.theme)));
1957
+ const defaultTheme = _chunkK64T6WW3js.getDefaultThemeConfig.call(void 0, _nullishCoalesce(newConfig.theme, () => ( this.brandConfig.theme)));
1958
1958
  this.brandConfig = {
1959
1959
  logo: "logo" in newConfig ? _nullishCoalesce(newConfig.logo, () => ( defaultTheme.logo)) : this.brandConfig.logo,
1960
1960
  theme: "theme" in newConfig ? _nullishCoalesce(newConfig.theme, () => ( defaultTheme.theme)) : this.brandConfig.theme,
@@ -1967,7 +1967,7 @@ var _AurumCore = class _AurumCore {
1967
1967
  walletLayout: "walletLayout" in newConfig ? _nullishCoalesce(newConfig.walletLayout, () => ( defaultTheme.walletLayout)) : this.brandConfig.walletLayout
1968
1968
  };
1969
1969
  if ("theme" in newConfig && this.brandConfig.theme) {
1970
- const wcAdapter = this.wallets.find((w) => w.id === _chunk2P33GXLJjs.WalletId.WalletConnect);
1970
+ const wcAdapter = this.wallets.find((w) => w.id === _chunkK64T6WW3js.WalletId.WalletConnect);
1971
1971
  _optionalChain([wcAdapter, 'optionalAccess', _157 => _157.updateTheme, 'call', _158 => _158(this.brandConfig.theme)]);
1972
1972
  }
1973
1973
  }
@@ -1984,7 +1984,7 @@ var _AurumCore = class _AurumCore {
1984
1984
  async emailAuthStart(email) {
1985
1985
  try {
1986
1986
  await this.whenReady();
1987
- const emailAdapter = this.wallets.find((w) => w.id === _chunk2P33GXLJjs.WalletId.Email);
1987
+ const emailAdapter = this.wallets.find((w) => w.id === _chunkK64T6WW3js.WalletId.Email);
1988
1988
  if (!emailAdapter || !emailAdapter.emailAuthStart) {
1989
1989
  throw new WalletNotConfiguredError("email");
1990
1990
  }
@@ -2003,20 +2003,20 @@ var _AurumCore = class _AurumCore {
2003
2003
  async emailAuthVerify(flowId, otp) {
2004
2004
  try {
2005
2005
  await this.whenReady();
2006
- const emailAdapter = this.wallets.find((w) => w.id === _chunk2P33GXLJjs.WalletId.Email);
2006
+ const emailAdapter = this.wallets.find((w) => w.id === _chunkK64T6WW3js.WalletId.Email);
2007
2007
  if (!emailAdapter || !emailAdapter.emailAuthVerify) {
2008
2008
  throw new WalletNotConfiguredError("email");
2009
2009
  }
2010
2010
  const verifyResult = await emailAdapter.emailAuthVerify(flowId, otp);
2011
2011
  const provider = emailAdapter.getProvider();
2012
2012
  if (!provider) {
2013
- _chunk2P33GXLJjs.sentryLogger.error("Failed to get provider after email verification");
2013
+ _chunkK64T6WW3js.sentryLogger.error("Failed to get provider after email verification");
2014
2014
  throw new ConnectionError("Failed to get provider after email verification");
2015
2015
  }
2016
2016
  const address = _optionalChain([verifyResult, 'access', _159 => _159.user, 'optionalAccess', _160 => _160.evmAccounts, 'optionalAccess', _161 => _161[0]]);
2017
2017
  const email = _optionalChain([verifyResult, 'access', _162 => _162.user, 'optionalAccess', _163 => _163.authenticationMethods, 'optionalAccess', _164 => _164.email, 'optionalAccess', _165 => _165.email]);
2018
2018
  if (!address || !email) {
2019
- _chunk2P33GXLJjs.sentryLogger.error("Address or email not found after email verification");
2019
+ _chunkK64T6WW3js.sentryLogger.error("Address or email not found after email verification");
2020
2020
  throw new ConnectionError("Address or email not found after email verification");
2021
2021
  }
2022
2022
  const checksumAdr = _viem.checksumAddress.call(void 0, address);
@@ -2033,7 +2033,7 @@ var _AurumCore = class _AurumCore {
2033
2033
  const chainId = await provider.request({ method: "eth_chainId" });
2034
2034
  this.emitConnect(chainId);
2035
2035
  this.emitAccountsChanged([checksumAdr]);
2036
- _chunk2P33GXLJjs.sentryLogger.info(`Wallet connected: ${emailAdapter.id} (headless)`);
2036
+ _chunkK64T6WW3js.sentryLogger.info(`Wallet connected: ${emailAdapter.id} (headless)`);
2037
2037
  return { address: checksumAdr, email: _nullishCoalesce(email, () => ( "")), isNewUser: _nullishCoalesce(verifyResult.isNewUser, () => ( false)) };
2038
2038
  } catch (err) {
2039
2039
  throw normalizeError(err, { operation: "emailAuthVerify" });
@@ -2046,7 +2046,7 @@ var _AurumCore = class _AurumCore {
2046
2046
  async getWalletConnectSession() {
2047
2047
  try {
2048
2048
  await this.whenReady();
2049
- const wcAdapter = this.wallets.find((w) => w.id === _chunk2P33GXLJjs.WalletId.WalletConnect);
2049
+ const wcAdapter = this.wallets.find((w) => w.id === _chunkK64T6WW3js.WalletId.WalletConnect);
2050
2050
  if (!wcAdapter) {
2051
2051
  throw new WalletNotConfiguredError("walletconnect");
2052
2052
  }
@@ -2058,7 +2058,7 @@ var _AurumCore = class _AurumCore {
2058
2058
  const result = await session.waitForConnection();
2059
2059
  const provider = _nullishCoalesce(result.provider, () => ( wcAdapter.getProvider()));
2060
2060
  if (!provider) {
2061
- _chunk2P33GXLJjs.sentryLogger.error("Failed to get provider after WalletConnect connection");
2061
+ _chunkK64T6WW3js.sentryLogger.error("Failed to get provider after WalletConnect connection");
2062
2062
  throw new ConnectionError("Failed to get provider after WalletConnect connection");
2063
2063
  }
2064
2064
  const checksumAdr = _viem.checksumAddress.call(void 0, result.address);
@@ -2074,7 +2074,7 @@ var _AurumCore = class _AurumCore {
2074
2074
  const chainId = await provider.request({ method: "eth_chainId" });
2075
2075
  this.emitConnect(chainId);
2076
2076
  this.emitAccountsChanged([checksumAdr]);
2077
- _chunk2P33GXLJjs.sentryLogger.info(`Wallet connected: ${wcAdapter.id} (headless)`);
2077
+ _chunkK64T6WW3js.sentryLogger.info(`Wallet connected: ${wcAdapter.id} (headless)`);
2078
2078
  return checksumAdr;
2079
2079
  } catch (err) {
2080
2080
  throw normalizeError(err, { operation: "connect" });
@@ -2137,7 +2137,7 @@ var _AurumCore = class _AurumCore {
2137
2137
  /* BRAND & THEME METHODS */
2138
2138
  resolveBrandConfig(config) {
2139
2139
  const { brand = {} } = config || {};
2140
- const themeConfig = _chunk2P33GXLJjs.getDefaultThemeConfig.call(void 0, brand.theme || _chunk2P33GXLJjs.DEFAULT_THEME);
2140
+ const themeConfig = _chunkK64T6WW3js.getDefaultThemeConfig.call(void 0, brand.theme || _chunkK64T6WW3js.DEFAULT_THEME);
2141
2141
  return {
2142
2142
  logo: _nullishCoalesce(brand.logo, () => ( themeConfig.logo)),
2143
2143
  theme: _nullishCoalesce(brand.theme, () => ( themeConfig.theme)),
@@ -2156,8 +2156,8 @@ var _AurumCore = class _AurumCore {
2156
2156
  return;
2157
2157
  }
2158
2158
  try {
2159
- await _chunk2P33GXLJjs.waitForStoreHydration.call(void 0, );
2160
- const store = _chunk2P33GXLJjs.useAurumStore.getState();
2159
+ await _chunkK64T6WW3js.waitForStoreHydration.call(void 0, );
2160
+ const store = _chunkK64T6WW3js.useAurumStore.getState();
2161
2161
  if (!store.isConnected || !store.walletId || !store.address || !store.walletName) {
2162
2162
  return;
2163
2163
  }
@@ -2187,7 +2187,7 @@ var _AurumCore = class _AurumCore {
2187
2187
  }
2188
2188
  }
2189
2189
  persistConnectionState(adapter, address, email) {
2190
- _chunk2P33GXLJjs.useAurumStore.getState().setConnection(adapter.id, _viem.checksumAddress.call(void 0, address), adapter.name, email);
2190
+ _chunkK64T6WW3js.useAurumStore.getState().setConnection(adapter.id, _viem.checksumAddress.call(void 0, address), adapter.name, email);
2191
2191
  }
2192
2192
  /* INTERNAL LISTENER METHODS */
2193
2193
  setInternalAccountChangeListener(adapter) {
@@ -2285,7 +2285,7 @@ var _AurumCore = class _AurumCore {
2285
2285
  }
2286
2286
  /* REST */
2287
2287
  resetConnectionState() {
2288
- _chunk2P33GXLJjs.useAurumStore.getState().clearConnection();
2288
+ _chunkK64T6WW3js.useAurumStore.getState().clearConnection();
2289
2289
  this.connectedWalletAdapter = null;
2290
2290
  this.updateProvider(this.skeletonProvider);
2291
2291
  this.userInfo = void 0;
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  useAurumStore,
17
17
  useNavigation,
18
18
  waitForStoreHydration
19
- } from "./chunk-64XDE56K.mjs";
19
+ } from "./chunk-GMFEFDGS.mjs";
20
20
  import "./chunk-DRID67T7.mjs";
21
21
  import {
22
22
  init_polyfills
package/dist/widgets.js CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk2P33GXLJjs = require('./chunk-2P33GXLJ.js');
14
+ var _chunkK64T6WW3js = require('./chunk-K64T6WW3.js');
15
15
  require('./chunk-4EBNC4R3.js');
16
16
 
17
17
 
@@ -35,20 +35,20 @@ var noop = () => {
35
35
  };
36
36
  var WidgetShell = ({ brandConfig, children }) => {
37
37
  const headerPortalRef = _react.useRef.call(void 0, null);
38
- const { currentPage } = _chunk2P33GXLJjs.useNavigation.call(void 0, );
39
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.WidgetProvider, { mode: "widget", brandConfig, onDismiss: noop, headerPortalRef, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "widget-provider", children: [
38
+ const { currentPage } = _chunkK64T6WW3js.useNavigation.call(void 0, );
39
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.WidgetProvider, { mode: "widget", brandConfig, onDismiss: noop, headerPortalRef, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "widget-provider", children: [
40
40
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: headerPortalRef }),
41
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.PageTransitionContainer, { transitionKey: currentPage, children }),
41
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.PageTransitionContainer, { transitionKey: currentPage, children }),
42
42
  !brandConfig.hideFooter ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
43
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.Spacer, { size: `${_chunk2P33GXLJjs.POWERED_BY_SPACER_REM}rem` }),
44
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.PoweredBy, {})
45
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.Spacer, { size: "0.3125rem" })
43
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.Spacer, { size: `${_chunkK64T6WW3js.POWERED_BY_SPACER_REM}rem` }),
44
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.PoweredBy, {})
45
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.Spacer, { size: "0.3125rem" })
46
46
  ] }) });
47
47
  };
48
48
  var WidgetStyleContainer = ({ children, brandConfig }) => {
49
49
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "aurum-widget", style: { width: "100%" }, children: [
50
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "style", { children: _chunk2P33GXLJjs.generateCompleteStyles.call(void 0, brandConfig) }),
51
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.ThemeContainer, { theme: brandConfig.theme, children })
50
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "style", { children: _chunkK64T6WW3js.generateCompleteStyles.call(void 0, brandConfig) }),
51
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.ThemeContainer, { theme: brandConfig.theme, children })
52
52
  ] });
53
53
  };
54
54
 
@@ -60,7 +60,7 @@ var ConnectWidget = ({ aurum, onConnect }) => {
60
60
  const excludedWalletIds = aurum.excludedWalletIds;
61
61
  const displayedWallets = _react.useMemo.call(void 0, () => {
62
62
  const filtered = walletAdapters.filter((w) => !excludedWalletIds.has(w.id));
63
- return _chunk2P33GXLJjs.sortWallets.call(void 0, filtered, { filterHidden: false });
63
+ return _chunkK64T6WW3js.sortWallets.call(void 0, filtered, { filterHidden: false });
64
64
  }, [walletAdapters, excludedWalletIds]);
65
65
  const handleConnect = _react.useCallback.call(void 0,
66
66
  async (result) => {
@@ -69,11 +69,11 @@ var ConnectWidget = ({ aurum, onConnect }) => {
69
69
  },
70
70
  [aurum, onConnect]
71
71
  );
72
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetStyleContainer, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.ConnectUIProviders, { onConnect: handleConnect, displayedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetShell, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2P33GXLJjs.ConnectPages, {}) }) }) });
72
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetStyleContainer, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.ConnectUIProviders, { onConnect: handleConnect, displayedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetShell, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK64T6WW3js.ConnectPages, {}) }) }) });
73
73
  };
74
74
 
75
75
 
76
76
 
77
77
 
78
- exports.ConnectWidget = ConnectWidget; exports.WidgetProvider = _chunk2P33GXLJjs.WidgetProvider; exports.useWidgetContext = _chunk2P33GXLJjs.useWidgetContext;
78
+ exports.ConnectWidget = ConnectWidget; exports.WidgetProvider = _chunkK64T6WW3js.WidgetProvider; exports.useWidgetContext = _chunkK64T6WW3js.useWidgetContext;
79
79
  //# sourceMappingURL=widgets.js.map
package/dist/widgets.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  sortWallets,
12
12
  useNavigation,
13
13
  useWidgetContext
14
- } from "./chunk-64XDE56K.mjs";
14
+ } from "./chunk-GMFEFDGS.mjs";
15
15
  import "./chunk-DRID67T7.mjs";
16
16
  import {
17
17
  init_polyfills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurum-sdk/core",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Aurum wallet connection SDK",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -91,13 +91,14 @@
91
91
  "@reown/appkit": "1.8.17",
92
92
  "@reown/appkit-adapter-wagmi": "1.8.17",
93
93
  "@sentry/browser": "^10.29.0",
94
+ "@wagmi/connectors": "^7.2.1",
94
95
  "buffer": "^6.0.3",
95
96
  "lucide-react": "^0.460.0",
96
97
  "mobile-detect": "^1.4.5",
97
98
  "porto": "^0.2.37",
98
99
  "zustand": "^5.0.9",
99
- "@aurum-sdk/logos": "^0.2.7",
100
- "@aurum-sdk/types": "^0.2.7"
100
+ "@aurum-sdk/logos": "^0.2.8",
101
+ "@aurum-sdk/types": "^0.2.8"
101
102
  },
102
103
  "scripts": {
103
104
  "build": "tsup",