@namehash/namehash-ui 0.0.0-next-20260119132859 → 0.0.0-next-20260120091912
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.cjs +29 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1602 -2
- package/dist/index.d.ts +1602 -2
- package/dist/index.js +29 -15
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4219,7 +4219,7 @@ var SUPPORTED_CHAINS = [
|
|
|
4219
4219
|
];
|
|
4220
4220
|
var CUSTOM_CHAIN_NAMES = /* @__PURE__ */ new Map([
|
|
4221
4221
|
[ensTestEnvL1Chain2.id, "Ethereum Local (ens-test-env)"],
|
|
4222
|
-
[mainnet.id, "
|
|
4222
|
+
[mainnet.id, "Mainnet"],
|
|
4223
4223
|
[sepolia.id, "Ethereum Sepolia"],
|
|
4224
4224
|
[base.id, "Base"],
|
|
4225
4225
|
[baseSepolia.id, "Base Sepolia"],
|
|
@@ -5471,8 +5471,8 @@ var IdentityTooltip = ({
|
|
|
5471
5471
|
{
|
|
5472
5472
|
value: identity.address,
|
|
5473
5473
|
className: "nhui:text-gray-500 nhui:hover:text-gray-700 nhui:transition-colors",
|
|
5474
|
-
successIcon: /* @__PURE__ */ jsx37(CheckIcon, { className: "nhui:h-4 nhui:w-4" }),
|
|
5475
|
-
icon: /* @__PURE__ */ jsx37(CopyIcon, { className: "nhui:h-4 nhui:w-4" }),
|
|
5474
|
+
successIcon: /* @__PURE__ */ jsx37(CheckIcon, { className: "nhui:h-4 nhui:w-4", style: { fill: "none" } }),
|
|
5475
|
+
icon: /* @__PURE__ */ jsx37(CopyIcon, { className: "nhui:h-4 nhui:w-4", style: { fill: "none" } }),
|
|
5476
5476
|
showToast: true
|
|
5477
5477
|
}
|
|
5478
5478
|
),
|
|
@@ -5518,17 +5518,17 @@ import {
|
|
|
5518
5518
|
// src/hooks/useIsMobile.tsx
|
|
5519
5519
|
import * as React5 from "react";
|
|
5520
5520
|
var MOBILE_BREAKPOINT = 640;
|
|
5521
|
-
function useIsMobile() {
|
|
5521
|
+
function useIsMobile(breakpoint = MOBILE_BREAKPOINT) {
|
|
5522
5522
|
const [isMobile, setIsMobile] = React5.useState(void 0);
|
|
5523
5523
|
React5.useEffect(() => {
|
|
5524
|
-
const mql = window.matchMedia(`(max-width: ${
|
|
5524
|
+
const mql = window.matchMedia(`(max-width: ${breakpoint - 1}px)`);
|
|
5525
5525
|
const onChange = () => {
|
|
5526
|
-
setIsMobile(window.innerWidth <
|
|
5526
|
+
setIsMobile(window.innerWidth < breakpoint);
|
|
5527
5527
|
};
|
|
5528
5528
|
mql.addEventListener("change", onChange);
|
|
5529
|
-
setIsMobile(window.innerWidth <
|
|
5529
|
+
setIsMobile(window.innerWidth < breakpoint);
|
|
5530
5530
|
return () => mql.removeEventListener("change", onChange);
|
|
5531
|
-
}, []);
|
|
5531
|
+
}, [breakpoint]);
|
|
5532
5532
|
return !!isMobile;
|
|
5533
5533
|
}
|
|
5534
5534
|
|
|
@@ -5689,7 +5689,11 @@ import {
|
|
|
5689
5689
|
ZERO_ENCODED_REFERRER
|
|
5690
5690
|
} from "@ensnode/ensnode-sdk";
|
|
5691
5691
|
import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5692
|
-
function LabeledField({
|
|
5692
|
+
function LabeledField({
|
|
5693
|
+
fieldLabel,
|
|
5694
|
+
className,
|
|
5695
|
+
children
|
|
5696
|
+
}) {
|
|
5693
5697
|
return /* @__PURE__ */ jsxs28(
|
|
5694
5698
|
"div",
|
|
5695
5699
|
{
|
|
@@ -5710,6 +5714,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
5710
5714
|
referral,
|
|
5711
5715
|
accelerate = true,
|
|
5712
5716
|
withLink = true,
|
|
5717
|
+
getReferrerLink,
|
|
5713
5718
|
withTooltip = true,
|
|
5714
5719
|
withAvatar = false,
|
|
5715
5720
|
withIdentifier = true,
|
|
@@ -5739,7 +5744,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
5739
5744
|
TooltipContent,
|
|
5740
5745
|
{
|
|
5741
5746
|
side: "top",
|
|
5742
|
-
className: "nhui:bg-gray-50 nhui:text-sm nhui:text-black nhui:text-left nhui:shadow-md nhui:outline-hidden nhui:w-fit",
|
|
5747
|
+
className: "nhui:bg-gray-50 nhui:text-sm nhui:text-black nhui:text-left nhui:shadow-md nhui:outline-hidden nhui:w-fit [&_svg]:fill-gray-50 [&_svg]:bg-gray-50",
|
|
5743
5748
|
children: [
|
|
5744
5749
|
"Encoded referrer",
|
|
5745
5750
|
/* @__PURE__ */ jsx41("code", { className: "nhui:block", children: referral.encodedReferrer }),
|
|
@@ -5764,7 +5769,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
5764
5769
|
withLink,
|
|
5765
5770
|
identityLinkDetails: {
|
|
5766
5771
|
isExternal: true,
|
|
5767
|
-
link:
|
|
5772
|
+
link: getReferrerLink(referrerIdentity.address, namespaceId)
|
|
5768
5773
|
}
|
|
5769
5774
|
}
|
|
5770
5775
|
);
|
|
@@ -5806,6 +5811,10 @@ function RegistrarActionCard({
|
|
|
5806
5811
|
namedRegistrarAction,
|
|
5807
5812
|
now,
|
|
5808
5813
|
links,
|
|
5814
|
+
showIdentityTooltips = {
|
|
5815
|
+
registrant: false,
|
|
5816
|
+
referrer: false
|
|
5817
|
+
},
|
|
5809
5818
|
showReferrer = true,
|
|
5810
5819
|
referralProgramField
|
|
5811
5820
|
}) {
|
|
@@ -5865,7 +5874,7 @@ function RegistrarActionCard({
|
|
|
5865
5874
|
identity: registrantIdentity,
|
|
5866
5875
|
namespaceId,
|
|
5867
5876
|
withAvatar: true,
|
|
5868
|
-
withTooltip:
|
|
5877
|
+
withTooltip: showIdentityTooltips.registrant,
|
|
5869
5878
|
withIdentifier: false,
|
|
5870
5879
|
identityLinkDetails: links.registrant
|
|
5871
5880
|
}
|
|
@@ -5876,7 +5885,7 @@ function RegistrarActionCard({
|
|
|
5876
5885
|
identity: registrantIdentity,
|
|
5877
5886
|
namespaceId,
|
|
5878
5887
|
withAvatar: isMobile,
|
|
5879
|
-
withTooltip:
|
|
5888
|
+
withTooltip: showIdentityTooltips.registrant,
|
|
5880
5889
|
className: "nhui:font-medium nhui:sm:max-[1220px]:max-w-[110px] nhui:min-[1220px]:max-w-[140px]",
|
|
5881
5890
|
identityLinkDetails: links.registrant
|
|
5882
5891
|
}
|
|
@@ -5891,7 +5900,8 @@ function RegistrarActionCard({
|
|
|
5891
5900
|
referral,
|
|
5892
5901
|
withAvatar: true,
|
|
5893
5902
|
withIdentifier: false,
|
|
5894
|
-
withTooltip:
|
|
5903
|
+
withTooltip: showIdentityTooltips.referrer,
|
|
5904
|
+
getReferrerLink: links.referrerLinkFunction
|
|
5895
5905
|
}
|
|
5896
5906
|
),
|
|
5897
5907
|
/* @__PURE__ */ jsx41(LabeledField, { fieldLabel: "Referrer", className: "nhui:w-[15%] nhui:min-w-[110px]", children: /* @__PURE__ */ jsx41(
|
|
@@ -5902,7 +5912,8 @@ function RegistrarActionCard({
|
|
|
5902
5912
|
referral,
|
|
5903
5913
|
withAvatar: isMobile,
|
|
5904
5914
|
withIdentifier: true,
|
|
5905
|
-
withTooltip:
|
|
5915
|
+
withTooltip: showIdentityTooltips.referrer,
|
|
5916
|
+
getReferrerLink: links.referrerLinkFunction
|
|
5906
5917
|
}
|
|
5907
5918
|
) })
|
|
5908
5919
|
] }),
|
|
@@ -6044,12 +6055,14 @@ export {
|
|
|
6044
6055
|
IdentityLink,
|
|
6045
6056
|
IdentityTooltip,
|
|
6046
6057
|
InfoIcon,
|
|
6058
|
+
LabeledField,
|
|
6047
6059
|
NameDisplay,
|
|
6048
6060
|
RegistrarActionCard,
|
|
6049
6061
|
RegistrarActionCardLoading,
|
|
6050
6062
|
RegistrarActionCardMemo,
|
|
6051
6063
|
RelativeTime,
|
|
6052
6064
|
ResolveAndDisplayIdentity,
|
|
6065
|
+
SUPPORTED_CHAINS,
|
|
6053
6066
|
TelegramIcon,
|
|
6054
6067
|
TwitterIcon,
|
|
6055
6068
|
formatRelativeTime,
|
|
@@ -6062,6 +6075,7 @@ export {
|
|
|
6062
6075
|
getEnsManagerNameDetailsUrl,
|
|
6063
6076
|
getEnsManagerUrl,
|
|
6064
6077
|
getEnsMetadataServiceAvatarUrl,
|
|
6078
|
+
useIsMobile,
|
|
6065
6079
|
useNow
|
|
6066
6080
|
};
|
|
6067
6081
|
/*! Bundled license information:
|