@thenamespace/ens-components 1.1.0 → 1.1.1
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 +3 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/ens-name-registration/ENSNameRegistrationForm.d.ts +1 -0
- package/dist/types/components/ens-name-registration/SetNameRecords.d.ts +2 -0
- package/dist/types/components/subname-mint-form/SubnameMintForm.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ interface EnsNameRegistrationFormProps {
|
|
|
85
85
|
bannerImage?: string;
|
|
86
86
|
hideBanner?: boolean;
|
|
87
87
|
bannerWidth?: number;
|
|
88
|
+
avatarUploadDomain?: string;
|
|
88
89
|
onRegistrationSuccess?: (result: RegistrationSuccessData) => void;
|
|
89
90
|
onClose?: (isSuccess: boolean) => void;
|
|
90
91
|
onRegistrationStart?: (name: string) => void;
|
|
@@ -190,13 +191,14 @@ interface SubnameMintFormProps {
|
|
|
190
191
|
parentName: string;
|
|
191
192
|
label?: string;
|
|
192
193
|
isTestnet?: boolean;
|
|
194
|
+
avatarUploadDomain?: string;
|
|
193
195
|
onCancel?: () => void;
|
|
194
196
|
onSuccess?: (data: MintSuccessData) => void;
|
|
195
197
|
onSubnameMinted?: (data: SubnameMintedData) => void;
|
|
196
198
|
txConfirmations?: number;
|
|
197
199
|
onConnectWallet?: () => void;
|
|
198
200
|
}
|
|
199
|
-
declare const SubnameMintForm: ({ parentName, label, isTestnet, onCancel, onSuccess, onSubnameMinted, txConfirmations, onConnectWallet, }: SubnameMintFormProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare const SubnameMintForm: ({ parentName, label, isTestnet, avatarUploadDomain, onCancel, onSuccess, onSubnameMinted, txConfirmations, onConnectWallet, }: SubnameMintFormProps) => react_jsx_runtime.JSX.Element;
|
|
200
202
|
|
|
201
203
|
interface OffchainSubnameCreatedData {
|
|
202
204
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -90558,7 +90558,8 @@ const SetNameRecords = ({
|
|
|
90558
90558
|
onRecordsChange,
|
|
90559
90559
|
onCancel,
|
|
90560
90560
|
onSave,
|
|
90561
|
-
hasChanges
|
|
90561
|
+
hasChanges,
|
|
90562
|
+
avatarUpload
|
|
90562
90563
|
}) => {
|
|
90563
90564
|
const [error, setError] = useState();
|
|
90564
90565
|
const handleSave = () => {
|
|
@@ -90575,6 +90576,7 @@ const SetNameRecords = ({
|
|
|
90575
90576
|
{
|
|
90576
90577
|
records,
|
|
90577
90578
|
onRecordsUpdated: onRecordsChange,
|
|
90579
|
+
avatarUpload,
|
|
90578
90580
|
actionButtons: /* @__PURE__ */ jsxs("div", { style: { padding: 15, paddingTop: 0 }, children: [
|
|
90579
90581
|
error && /* @__PURE__ */ jsx(Alert, { variant: "error", children: error }),
|
|
90580
90582
|
/* @__PURE__ */ jsxs("div", { className: "d-flex", style: { gap: "8px", width: "100%" }, children: [
|
|
@@ -92069,7 +92071,12 @@ const EnsNameRegistrationForm = (props) => {
|
|
|
92069
92071
|
onRecordsChange: setEnsRecordsTemplate,
|
|
92070
92072
|
onCancel: handleCancelRecords,
|
|
92071
92073
|
onSave: handleSaveRecords,
|
|
92072
|
-
hasChanges: hasRecordsDifference
|
|
92074
|
+
hasChanges: hasRecordsDifference,
|
|
92075
|
+
avatarUpload: label ? {
|
|
92076
|
+
ensName: `${label}.eth`,
|
|
92077
|
+
isTestnet: props.isTestnet,
|
|
92078
|
+
siweDomain: props.avatarUploadDomain
|
|
92079
|
+
} : void 0
|
|
92073
92080
|
}
|
|
92074
92081
|
),
|
|
92075
92082
|
!showProfile && /* @__PURE__ */ jsx(
|
|
@@ -93442,6 +93449,7 @@ const SubnameMintForm = ({
|
|
|
93442
93449
|
parentName,
|
|
93443
93450
|
label,
|
|
93444
93451
|
isTestnet,
|
|
93452
|
+
avatarUploadDomain,
|
|
93445
93453
|
onCancel,
|
|
93446
93454
|
onSuccess,
|
|
93447
93455
|
onSubnameMinted,
|
|
@@ -93511,6 +93519,7 @@ const SubnameMintForm = ({
|
|
|
93511
93519
|
isTestnet,
|
|
93512
93520
|
isL2: initState.isL2,
|
|
93513
93521
|
isExpirable: initState.isExpirable || false,
|
|
93522
|
+
avatarUploadDomain,
|
|
93514
93523
|
onCancel,
|
|
93515
93524
|
onSuccess,
|
|
93516
93525
|
onSubnameMinted,
|
|
@@ -93533,6 +93542,7 @@ const SubnameMintFormContent = ({
|
|
|
93533
93542
|
isTestnet = false,
|
|
93534
93543
|
isL2,
|
|
93535
93544
|
isExpirable = false,
|
|
93545
|
+
avatarUploadDomain,
|
|
93536
93546
|
onCancel,
|
|
93537
93547
|
onSuccess,
|
|
93538
93548
|
onSubnameMinted,
|
|
@@ -93956,7 +93966,12 @@ const SubnameMintFormContent = ({
|
|
|
93956
93966
|
onRecordsChange: setEnsRecordsTemplate,
|
|
93957
93967
|
onCancel: handleCancelRecords,
|
|
93958
93968
|
onSave: handleSaveRecords,
|
|
93959
|
-
hasChanges: hasRecordsDifference
|
|
93969
|
+
hasChanges: hasRecordsDifference,
|
|
93970
|
+
avatarUpload: label ? {
|
|
93971
|
+
ensName: `${label}.${parentName}`,
|
|
93972
|
+
isTestnet,
|
|
93973
|
+
siweDomain: avatarUploadDomain
|
|
93974
|
+
} : void 0
|
|
93960
93975
|
}
|
|
93961
93976
|
);
|
|
93962
93977
|
}
|