@thenamespace/ens-components 0.21.0 → 0.22.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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +105 -21
- package/dist/index.js.map +1 -1
- package/dist/types/components/atoms/button/Button.d.ts +1 -1
- package/dist/types/components/ens-name-registration/ENSNameRegistrationForm.d.ts +10 -1
- package/dist/types/components/ens-name-registration/ensRegistrationUtils.d.ts +5 -0
- package/dist/types/components/ens-name-registration/registration/RegistrationStep.d.ts +5 -1
- package/dist/types/components/ens-name-registration/registration/SuccessScreen.d.ts +1 -1
- package/dist/types/components/ens-name-registration/registration/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import "./Button.css";
|
|
3
|
-
export type ButtonVariant = "solid" | "outline" | "ghost";
|
|
3
|
+
export type ButtonVariant = "solid" | "outline" | "ghost" | "destructive";
|
|
4
4
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
5
5
|
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "prefix"> {
|
|
6
6
|
variant?: ButtonVariant;
|
|
@@ -6,6 +6,15 @@ export interface EnsNameRegistrationFormProps {
|
|
|
6
6
|
referrer?: Address;
|
|
7
7
|
noBorder?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
onRegistrationSuccess?: () => void;
|
|
9
|
+
onRegistrationSuccess?: (result: RegistrationSuccessData) => void;
|
|
10
|
+
onClose?: (isSuccess: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
interface RegistrationSuccessData {
|
|
13
|
+
expiryInYears: number;
|
|
14
|
+
registrationCost: string;
|
|
15
|
+
transactionFees: string;
|
|
16
|
+
total: string;
|
|
17
|
+
expiryDate: string;
|
|
10
18
|
}
|
|
11
19
|
export declare const EnsNameRegistrationForm: (props: EnsNameRegistrationFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Address } from "viem";
|
|
2
|
+
import { RegistrationState } from "./registration";
|
|
3
|
+
export declare const cacheRegistrationData: (state: RegistrationState, owner: Address) => void;
|
|
4
|
+
export declare const getCachedRegistrationData: (label: string, owner: Address) => RegistrationState | null;
|
|
5
|
+
export declare const generateEnsRegistrationSecret: () => string;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RegistrationState } from "./types";
|
|
3
|
-
|
|
3
|
+
import { EnsRecords } from "@/types";
|
|
4
|
+
export interface RegistrationSuccessData {
|
|
4
5
|
expiryInYears: number;
|
|
5
6
|
registrationCost: string;
|
|
6
7
|
transactionFees: string;
|
|
7
8
|
total: string;
|
|
8
9
|
expiryDate: string;
|
|
10
|
+
thHash: string;
|
|
11
|
+
name: string;
|
|
12
|
+
records: EnsRecords;
|
|
9
13
|
}
|
|
10
14
|
interface RegistrationStepProps {
|
|
11
15
|
state: RegistrationState;
|