@thenamespace/ens-components 0.10.0 → 0.11.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 +6 -2
- package/dist/index.js +39546 -38785
- package/dist/index.js.map +1 -1
- package/dist/types/components/subname-onchain-registrar-modal/SubnameOnChainRegistrarModal.d.ts +2 -1
- package/dist/types/components/subname-onchain-registrar-modal/sub-components/InitialStep.d.ts +2 -1
- package/dist/types/components/subname-onchain-registrar-modal/sub-components/RegistrationStep.d.ts +9 -4
- package/dist/types/context/profile-filter.context.d.ts +19 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/numbers.d.ts +2 -0
- package/package.json +2 -2
package/dist/types/components/subname-onchain-registrar-modal/SubnameOnChainRegistrarModal.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import "./SubnameOnChainRegistrarModal.css";
|
|
|
2
2
|
export interface SubnameOnChainRegistrarModalProps {
|
|
3
3
|
step?: number;
|
|
4
4
|
name?: string;
|
|
5
|
+
parentName?: string;
|
|
5
6
|
profileComplete?: boolean;
|
|
6
7
|
domainSuffix?: string;
|
|
7
8
|
owner?: string;
|
|
@@ -27,4 +28,4 @@ export interface SubnameOnChainRegistrarModalProps {
|
|
|
27
28
|
onViewName?: () => void;
|
|
28
29
|
onFinish?: () => void;
|
|
29
30
|
}
|
|
30
|
-
export declare function SubnameOnChainRegistrarModal({ step: initialStep, name: initialName, profileComplete, domainSuffix, owner: initialOwner, duration: initialDuration,
|
|
31
|
+
export declare function SubnameOnChainRegistrarModal({ step: initialStep, name: initialName, parentName: initialParentName, profileComplete, domainSuffix, owner: initialOwner, duration: initialDuration, useAsPrimary: initialUseAsPrimary, profileImageUrl, onStepChange, onNameChange, onProfileCompleteChange, onOwnerChange, onDurationChange, onUseAsPrimaryChange, onRegister, onCancel, onClose, onCompleteProfile, onOpenWallet, onCompleteRegistration, onRegisterAnother, onViewName, onFinish, }: SubnameOnChainRegistrarModalProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/types/components/subname-onchain-registrar-modal/sub-components/InitialStep.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export interface InitialStepProps {
|
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
isNameAvailable?: boolean;
|
|
8
8
|
domainSuffix?: string;
|
|
9
|
+
parentName?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare function InitialStep({ name, onNameChange, onCancel, onRegister, onClose, isNameAvailable, domainSuffix, }: InitialStepProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function InitialStep({ name, onNameChange, onCancel, onRegister, onClose, isNameAvailable, domainSuffix, parentName, }: InitialStepProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/types/components/subname-onchain-registrar-modal/sub-components/RegistrationStep.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export interface RegistrationStepProps {
|
|
|
3
3
|
domainSuffix?: string;
|
|
4
4
|
owner?: string;
|
|
5
5
|
duration?: number;
|
|
6
|
-
registrationFee?: string;
|
|
7
|
-
networkFee?: string;
|
|
8
|
-
totalCost?: string;
|
|
6
|
+
registrationFee?: string | null;
|
|
7
|
+
networkFee?: string | null;
|
|
8
|
+
totalCost?: string | null;
|
|
9
9
|
useAsPrimary?: boolean;
|
|
10
10
|
profileComplete?: boolean;
|
|
11
11
|
profileImageUrl?: string;
|
|
@@ -17,5 +17,10 @@ export interface RegistrationStepProps {
|
|
|
17
17
|
onDurationChange?: (duration: number) => void;
|
|
18
18
|
onUseAsPrimaryChange?: (useAsPrimary: boolean) => void;
|
|
19
19
|
onCompleteProfile?: () => void;
|
|
20
|
+
mintPrice?: number;
|
|
21
|
+
isFetchingPrice?: boolean;
|
|
22
|
+
expiryYears?: number;
|
|
23
|
+
isExpirable?: boolean;
|
|
24
|
+
isRegistering?: boolean;
|
|
20
25
|
}
|
|
21
|
-
export declare function RegistrationStep({ name, domainSuffix, owner, duration: initialDuration, registrationFee, networkFee, totalCost, useAsPrimary: initialUseAsPrimary, profileComplete, profileImageUrl, onBack, onCancel, onRegister, onClose, onOwnerChange, onDurationChange, onUseAsPrimaryChange, onCompleteProfile, }: RegistrationStepProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function RegistrationStep({ name, domainSuffix, owner, duration: initialDuration, registrationFee, networkFee, totalCost, useAsPrimary: initialUseAsPrimary, profileComplete, profileImageUrl, onBack, onCancel, onRegister, onClose, onOwnerChange, onDurationChange, onUseAsPrimaryChange, onCompleteProfile, mintPrice, isFetchingPrice, expiryYears, isExpirable, isRegistering, }: RegistrationStepProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
export type SubnameView = "list" | "grid";
|
|
3
|
+
interface Indicator {
|
|
4
|
+
isAvailable: boolean;
|
|
5
|
+
isChecking: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IProfileFilterContext {
|
|
8
|
+
showSubnamesCount: number;
|
|
9
|
+
setShowSubnamesCount: (val: number) => void;
|
|
10
|
+
searchedSubname: string;
|
|
11
|
+
onSubnameSeach: (val: string) => void;
|
|
12
|
+
mode: SubnameView;
|
|
13
|
+
onModeChange: (view: SubnameView) => void;
|
|
14
|
+
availableIndicator: Indicator;
|
|
15
|
+
onAvailableIndicatorChange: (indicator: Indicator) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProfileFiltersContext: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const useProfileFilterCtx: () => IProfileFilterContext;
|
|
19
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thenamespace/ens-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"axios": "^1.11.0",
|
|
86
86
|
"bootstrap": "^5.3.8",
|
|
87
87
|
"cssnano": "^7.1.1",
|
|
88
|
+
"react-easy-crop": "^5.5.6",
|
|
88
89
|
"eslint": "^9.34.0",
|
|
89
90
|
"postcss-import": "^16.1.1",
|
|
90
91
|
"prettier": "^3.6.2",
|
|
91
92
|
"react": "^18.3.1",
|
|
92
93
|
"react-dom": "^18.3.1",
|
|
93
|
-
"react-easy-crop": "^5.5.6",
|
|
94
94
|
"rimraf": "^6.0.1",
|
|
95
95
|
"rollup": "^4.50.1",
|
|
96
96
|
"rollup-plugin-dts": "^6.2.3",
|