@namehash/namehash-ui 0.0.0-next-20260120091912 → 0.0.0-next-20260120123821

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.d.cts CHANGED
@@ -221,7 +221,10 @@ interface LabeledFieldProps {
221
221
  * Display a labeled field.
222
222
  */
223
223
  declare function LabeledField({ fieldLabel, className, children, }: PropsWithChildren<LabeledFieldProps>): react_jsx_runtime.JSX.Element;
224
- type ReferrerLinkFunction = (address: Address, namespaceId: ENSNamespaceId$1) => URL | null;
224
+ interface ReferrerLinkData {
225
+ isExternal: boolean;
226
+ getLink: (address: Address, namespaceId: ENSNamespaceId$1) => URL | null;
227
+ }
225
228
  interface RegistrarActionCardLoadingProps {
226
229
  showReferrer?: boolean;
227
230
  showReferralProgramField?: boolean;
@@ -237,7 +240,7 @@ interface RegistrarActionCardProps {
237
240
  links: {
238
241
  name: IdentityLinkDetails;
239
242
  registrant: IdentityLinkDetails;
240
- referrerLinkFunction: ReferrerLinkFunction;
243
+ referrer: ReferrerLinkData;
241
244
  };
242
245
  showIdentityTooltips?: {
243
246
  registrant: boolean;
@@ -1954,4 +1957,4 @@ declare function getEnsManagerAddressDetailsUrl(address: Address, namespaceId: E
1954
1957
  */
1955
1958
  declare function getEnsMetadataServiceAvatarUrl(name: Name, namespaceId: ENSNamespaceId): URL | null;
1956
1959
 
1957
- export { AbsoluteTime, AddressDisplay, ChainExplorerIcon, ChainIcon, type ChainIconProps, ChainName, type ChainNameProps, CopyButton, type CopyButtonProps, DisplayDuration, DisplayIdentity, EfpIcon, EmailIcon, EnsAvatar, EnsIcon, EnsServiceProviderIcon, FarcasterIcon, Footer, GitHubIcon, IdentityLink, type IdentityLinkDetails, IdentityTooltip, type IdentityTooltipProps, InfoIcon, LabeledField, NameDisplay, RegistrarActionCard, RegistrarActionCardLoading, type RegistrarActionCardLoadingProps, RegistrarActionCardMemo, type RegistrarActionCardProps, RelativeTime, ResolveAndDisplayIdentity, type ResolveAndDisplayIdentityProps, SUPPORTED_CHAINS, TelegramIcon, TwitterIcon, formatRelativeTime, getBlockExplorerAddressDetailsUrl, getBlockExplorerBlockUrl, getBlockExplorerTransactionDetailsUrl, getBlockExplorerUrl, getChainName, getEnsManagerAddressDetailsUrl, getEnsManagerNameDetailsUrl, getEnsManagerUrl, getEnsMetadataServiceAvatarUrl, useIsMobile, useNow };
1960
+ export { AbsoluteTime, AddressDisplay, ChainExplorerIcon, ChainIcon, type ChainIconProps, ChainName, type ChainNameProps, CopyButton, type CopyButtonProps, DisplayDuration, DisplayIdentity, EfpIcon, EmailIcon, EnsAvatar, EnsIcon, EnsServiceProviderIcon, FarcasterIcon, Footer, GitHubIcon, IdentityLink, type IdentityLinkDetails, IdentityTooltip, type IdentityTooltipProps, InfoIcon, LabeledField, NameDisplay, type ReferrerLinkData, RegistrarActionCard, RegistrarActionCardLoading, type RegistrarActionCardLoadingProps, RegistrarActionCardMemo, type RegistrarActionCardProps, RelativeTime, ResolveAndDisplayIdentity, type ResolveAndDisplayIdentityProps, SUPPORTED_CHAINS, TelegramIcon, TwitterIcon, formatRelativeTime, getBlockExplorerAddressDetailsUrl, getBlockExplorerBlockUrl, getBlockExplorerTransactionDetailsUrl, getBlockExplorerUrl, getChainName, getEnsManagerAddressDetailsUrl, getEnsManagerNameDetailsUrl, getEnsManagerUrl, getEnsMetadataServiceAvatarUrl, useIsMobile, useNow };
package/dist/index.d.ts CHANGED
@@ -221,7 +221,10 @@ interface LabeledFieldProps {
221
221
  * Display a labeled field.
222
222
  */
223
223
  declare function LabeledField({ fieldLabel, className, children, }: PropsWithChildren<LabeledFieldProps>): react_jsx_runtime.JSX.Element;
224
- type ReferrerLinkFunction = (address: Address, namespaceId: ENSNamespaceId$1) => URL | null;
224
+ interface ReferrerLinkData {
225
+ isExternal: boolean;
226
+ getLink: (address: Address, namespaceId: ENSNamespaceId$1) => URL | null;
227
+ }
225
228
  interface RegistrarActionCardLoadingProps {
226
229
  showReferrer?: boolean;
227
230
  showReferralProgramField?: boolean;
@@ -237,7 +240,7 @@ interface RegistrarActionCardProps {
237
240
  links: {
238
241
  name: IdentityLinkDetails;
239
242
  registrant: IdentityLinkDetails;
240
- referrerLinkFunction: ReferrerLinkFunction;
243
+ referrer: ReferrerLinkData;
241
244
  };
242
245
  showIdentityTooltips?: {
243
246
  registrant: boolean;
@@ -1954,4 +1957,4 @@ declare function getEnsManagerAddressDetailsUrl(address: Address, namespaceId: E
1954
1957
  */
1955
1958
  declare function getEnsMetadataServiceAvatarUrl(name: Name, namespaceId: ENSNamespaceId): URL | null;
1956
1959
 
1957
- export { AbsoluteTime, AddressDisplay, ChainExplorerIcon, ChainIcon, type ChainIconProps, ChainName, type ChainNameProps, CopyButton, type CopyButtonProps, DisplayDuration, DisplayIdentity, EfpIcon, EmailIcon, EnsAvatar, EnsIcon, EnsServiceProviderIcon, FarcasterIcon, Footer, GitHubIcon, IdentityLink, type IdentityLinkDetails, IdentityTooltip, type IdentityTooltipProps, InfoIcon, LabeledField, NameDisplay, RegistrarActionCard, RegistrarActionCardLoading, type RegistrarActionCardLoadingProps, RegistrarActionCardMemo, type RegistrarActionCardProps, RelativeTime, ResolveAndDisplayIdentity, type ResolveAndDisplayIdentityProps, SUPPORTED_CHAINS, TelegramIcon, TwitterIcon, formatRelativeTime, getBlockExplorerAddressDetailsUrl, getBlockExplorerBlockUrl, getBlockExplorerTransactionDetailsUrl, getBlockExplorerUrl, getChainName, getEnsManagerAddressDetailsUrl, getEnsManagerNameDetailsUrl, getEnsManagerUrl, getEnsMetadataServiceAvatarUrl, useIsMobile, useNow };
1960
+ export { AbsoluteTime, AddressDisplay, ChainExplorerIcon, ChainIcon, type ChainIconProps, ChainName, type ChainNameProps, CopyButton, type CopyButtonProps, DisplayDuration, DisplayIdentity, EfpIcon, EmailIcon, EnsAvatar, EnsIcon, EnsServiceProviderIcon, FarcasterIcon, Footer, GitHubIcon, IdentityLink, type IdentityLinkDetails, IdentityTooltip, type IdentityTooltipProps, InfoIcon, LabeledField, NameDisplay, type ReferrerLinkData, RegistrarActionCard, RegistrarActionCardLoading, type RegistrarActionCardLoadingProps, RegistrarActionCardMemo, type RegistrarActionCardProps, RelativeTime, ResolveAndDisplayIdentity, type ResolveAndDisplayIdentityProps, SUPPORTED_CHAINS, TelegramIcon, TwitterIcon, formatRelativeTime, getBlockExplorerAddressDetailsUrl, getBlockExplorerBlockUrl, getBlockExplorerTransactionDetailsUrl, getBlockExplorerUrl, getChainName, getEnsManagerAddressDetailsUrl, getEnsManagerNameDetailsUrl, getEnsManagerUrl, getEnsMetadataServiceAvatarUrl, useIsMobile, useNow };
package/dist/index.js CHANGED
@@ -5714,7 +5714,7 @@ function ResolveAndDisplayReferrerIdentity({
5714
5714
  referral,
5715
5715
  accelerate = true,
5716
5716
  withLink = true,
5717
- getReferrerLink,
5717
+ referrerLinkData,
5718
5718
  withTooltip = true,
5719
5719
  withAvatar = false,
5720
5720
  withIdentifier = true,
@@ -5768,8 +5768,8 @@ function ResolveAndDisplayReferrerIdentity({
5768
5768
  className,
5769
5769
  withLink,
5770
5770
  identityLinkDetails: {
5771
- isExternal: true,
5772
- link: getReferrerLink(referrerIdentity.address, namespaceId)
5771
+ isExternal: referrerLinkData.isExternal,
5772
+ link: referrerLinkData.getLink(referrerIdentity.address, namespaceId)
5773
5773
  }
5774
5774
  }
5775
5775
  );
@@ -5901,7 +5901,7 @@ function RegistrarActionCard({
5901
5901
  withAvatar: true,
5902
5902
  withIdentifier: false,
5903
5903
  withTooltip: showIdentityTooltips.referrer,
5904
- getReferrerLink: links.referrerLinkFunction
5904
+ referrerLinkData: links.referrer
5905
5905
  }
5906
5906
  ),
5907
5907
  /* @__PURE__ */ jsx41(LabeledField, { fieldLabel: "Referrer", className: "nhui:w-[15%] nhui:min-w-[110px]", children: /* @__PURE__ */ jsx41(
@@ -5913,7 +5913,7 @@ function RegistrarActionCard({
5913
5913
  withAvatar: isMobile,
5914
5914
  withIdentifier: true,
5915
5915
  withTooltip: showIdentityTooltips.referrer,
5916
- getReferrerLink: links.referrerLinkFunction
5916
+ referrerLinkData: links.referrer
5917
5917
  }
5918
5918
  ) })
5919
5919
  ] }),