@thenamespace/ens-components 0.33.0 → 0.35.0

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.ts CHANGED
@@ -149,8 +149,9 @@ interface EnsRecordsFormProps {
149
149
  onRecordsUpdated?: (newRecords: EnsRecordsDiff) => void;
150
150
  onGreat?: () => void;
151
151
  onTransactionSent?: (hash: Hash) => void;
152
+ txConfirmations?: number;
152
153
  }
153
- declare const EnsRecordsForm: ({ name, existingRecords, resolverChainId, isTestnet, resolverAddress, noBorder, className, onCancel, onGreat, onRecordsUpdated, onTransactionSent }: EnsRecordsFormProps) => react_jsx_runtime.JSX.Element;
154
+ declare const EnsRecordsForm: ({ name, existingRecords, resolverChainId, isTestnet, resolverAddress, noBorder, className, onCancel, onGreat, onRecordsUpdated, onTransactionSent, txConfirmations }: EnsRecordsFormProps) => react_jsx_runtime.JSX.Element;
154
155
 
155
156
  interface MintSuccessData {
156
157
  fullName: string;
package/dist/index.js CHANGED
@@ -57305,7 +57305,7 @@ const useMintManager = ({ isTestnet }) => {
57305
57305
  `${getListManagerApi()}/api/v1/listing/network/${getListingNetwork()}/name/${name}`
57306
57306
  ).then((res) => res.json());
57307
57307
  },
57308
- [getListManagerApi, getListingNetwork]
57308
+ [getListManagerApi, getListingNetwork, isTestnet]
57309
57309
  );
57310
57310
  return {
57311
57311
  mintClient,
@@ -61240,7 +61240,8 @@ const EnsRecordsForm = ({
61240
61240
  onCancel,
61241
61241
  onGreat,
61242
61242
  onRecordsUpdated,
61243
- onTransactionSent
61243
+ onTransactionSent,
61244
+ txConfirmations
61244
61245
  }) => {
61245
61246
  const mainnetChainId = isTestnet ? sepolia$1.id : mainnet$1.id;
61246
61247
  const resolverChain = resolverChainId ? resolverChainId : mainnetChainId;
@@ -61333,7 +61334,8 @@ const EnsRecordsForm = ({
61333
61334
  },
61334
61335
  onGreat,
61335
61336
  onCancel,
61336
- onTransactionSent
61337
+ onTransactionSent,
61338
+ txConfirmations
61337
61339
  }
61338
61340
  )
61339
61341
  ]
@@ -61732,7 +61734,8 @@ const SubnameMintForm = ({
61732
61734
  isChecking: false,
61733
61735
  isListingValid: false,
61734
61736
  listingChainId: 0,
61735
- isL2: false
61737
+ isL2: false,
61738
+ error: e?.message || "Failed to load listing details. Please try again later."
61736
61739
  });
61737
61740
  });
61738
61741
  }, [getListingDetails, parentName]);
@@ -61749,6 +61752,9 @@ const SubnameMintForm = ({
61749
61752
  }
61750
61753
  ) });
61751
61754
  }
61755
+ if (initState.error) {
61756
+ return /* @__PURE__ */ jsx("div", { className: "ns-subname-mint-form", children: /* @__PURE__ */ jsx(Alert, { variant: "error", position: "vertical", children: /* @__PURE__ */ jsx(Text$1, { size: "sm", children: initState.error }) }) });
61757
+ }
61752
61758
  if (!initState.isListingValid) {
61753
61759
  return /* @__PURE__ */ jsx("div", { className: "ns-subname-mint-form", children: /* @__PURE__ */ jsx(Alert, { variant: "error", position: "vertical", children: /* @__PURE__ */ jsxs(Text$1, { size: "sm", children: [
61754
61760
  "ENS name ",
@@ -61767,7 +61773,8 @@ const SubnameMintForm = ({
61767
61773
  isExpirable: initState.isExpirable || false,
61768
61774
  onCancel,
61769
61775
  onSuccess,
61770
- onSubnameMinted
61776
+ onSubnameMinted,
61777
+ txConfirmations
61771
61778
  }
61772
61779
  ) });
61773
61780
  };