@hfunlabs/hypurr-connect 0.1.15 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hfunlabs/hypurr-connect",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@10.10.0",
6
6
  "main": "./dist/index.js",
@@ -12,6 +12,10 @@
12
12
  "types": "./dist/index.d.ts"
13
13
  }
14
14
  },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "registry": "https://registry.npmjs.org/"
18
+ },
15
19
  "files": [
16
20
  "dist",
17
21
  "src"
@@ -132,10 +132,7 @@ export function DeleteWalletModal({
132
132
  const [deleteHovered, setDeleteHovered] = useState(false);
133
133
 
134
134
  const walletName = wallet?.name || "Unnamed Wallet";
135
- const displayAddress =
136
- wallet?.isAgent && wallet.agentEthereumAddress?.value
137
- ? wallet.agentEthereumAddress.value
138
- : wallet?.ethereumAddress;
135
+ const displayAddress = wallet?.ethereumAddress;
139
136
  const isNameMatch = confirmName === walletName;
140
137
  const canDelete = isNameMatch && !isDeleting;
141
138
 
@@ -125,10 +125,7 @@ export function RenameWalletModal({
125
125
  const [saveHovered, setSaveHovered] = useState(false);
126
126
 
127
127
  const currentName = wallet?.name || "Unnamed";
128
- const displayAddress =
129
- wallet?.isAgent && wallet.agentEthereumAddress?.value
130
- ? wallet.agentEthereumAddress.value
131
- : wallet?.ethereumAddress;
128
+ const displayAddress = wallet?.ethereumAddress;
132
129
  const trimmedName = name.trim();
133
130
  const isNameChanged = trimmedName !== currentName;
134
131
  const isNameValid = WALLET_NAME_REGEX.test(trimmedName);
@@ -890,10 +890,6 @@ function WalletRow({
890
890
  const [hovered, setHovered] = useState(false);
891
891
  const agentExpiryTitle = getAgentExpiryTitle(wallet);
892
892
  const isAgentExpired = !!agentExpiryTitle;
893
- const displayAddress =
894
- wallet.isAgent && wallet.agentEthereumAddress?.value
895
- ? wallet.agentEthereumAddress.value
896
- : wallet.ethereumAddress;
897
893
  const typeMeta = getWalletTypeMeta(wallet);
898
894
  return (
899
895
  <div
@@ -1001,8 +997,8 @@ function WalletRow({
1001
997
  fontFamily: fontFamily.mono,
1002
998
  }}
1003
999
  >
1004
- {displayAddress?.slice(0, 6)}...
1005
- {displayAddress?.slice(-4)}
1000
+ {wallet.ethereumAddress?.slice(0, 6)}...
1001
+ {wallet.ethereumAddress?.slice(-4)}
1006
1002
  </p>
1007
1003
  </div>
1008
1004
  {agentExpiryTitle && (
@@ -201,11 +201,6 @@ const formatCompactAddress = (addr: string | undefined) => {
201
201
  return `${addr.slice(0, 4)}...${addr.slice(-2)}`;
202
202
  };
203
203
 
204
- const getDisplayAddress = (wallet: DropdownWallet) =>
205
- wallet.isAgent && wallet.agentEthereumAddress?.value
206
- ? wallet.agentEthereumAddress.value
207
- : wallet.ethereumAddress;
208
-
209
204
  type WalletTypeMeta = {
210
205
  label: string;
211
206
  color: string;
@@ -336,8 +331,7 @@ export function WalletSelectorDropdown({
336
331
  const renderWalletRow = (item: WalletListItem, depth: number): ReactNode => {
337
332
  const { wallet, label } = item;
338
333
  const isSelected = wallet.id === selectedWalletId;
339
- const displayAddress = getDisplayAddress(wallet);
340
- const compactAddress = formatCompactAddress(displayAddress);
334
+ const compactAddress = formatCompactAddress(wallet.ethereumAddress);
341
335
  const agentExpiryTitle = getAgentExpiryTitle({
342
336
  isAgent: !!wallet.isAgent,
343
337
  agentExpiresAt: wallet.agentExpiresAt,
@@ -362,7 +356,7 @@ export function WalletSelectorDropdown({
362
356
  }
363
357
  : undefined
364
358
  }
365
- onCopy={() => handleCopyAddress(displayAddress)}
359
+ onCopy={() => handleCopyAddress(wallet.ethereumAddress)}
366
360
  agentExpiryTitle={agentExpiryTitle}
367
361
  onRenewAgentWallet={
368
362
  wallet.isAgent && onRenewAgentWallet