@thenamespace/ens-components 1.1.1 → 1.1.2
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 +35 -559
- package/dist/index.js +544 -1799
- package/dist/index.js.map +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/offchain-subname-form/FormHeader.d.ts +3 -1
- package/dist/types/components/offchain-subname-form/OffchainSubnameForm.d.ts +16 -6
- package/package.json +5 -5
|
@@ -3,5 +3,7 @@ export { EnsNameRegistrationForm } from "./ens-name-registration/ENSNameRegistra
|
|
|
3
3
|
export { EnsRecordsForm } from "./ens-records-form/EnsRecordsForm";
|
|
4
4
|
export { SubnameMintForm } from "./subname-mint-form/SubnameMintForm";
|
|
5
5
|
export { OffchainSubnameForm } from "./offchain-subname-form/OffchainSubnameForm";
|
|
6
|
+
export type { OffchainSubnameCreatedData } from "./offchain-subname-form/OffchainSubnameForm";
|
|
6
7
|
export * from "./atoms";
|
|
7
8
|
export * from "./molecules";
|
|
9
|
+
export { TransactionPendingScreen } from "./ens-name-registration/registration/TransactionPendingScreen";
|
|
@@ -3,6 +3,8 @@ interface FormHeaderProps {
|
|
|
3
3
|
label: string;
|
|
4
4
|
parentName: string;
|
|
5
5
|
showFullName: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
6
8
|
}
|
|
7
|
-
export declare const FormHeader: ({ isUpdateMode, label, parentName, showFullName }: FormHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const FormHeader: ({ isUpdateMode, label, parentName, showFullName, title, subtitle }: FormHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChainName, OffchainClient } from "@thenamespace/offchain-manager";
|
|
2
2
|
import "./OffchainSubnameForm.css";
|
|
3
3
|
export interface OffchainSubnameCreatedData {
|
|
4
4
|
label: string;
|
|
5
5
|
parentName: string;
|
|
6
6
|
fullSubname: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
addresses: Array<{
|
|
8
|
+
chain: ChainName;
|
|
9
|
+
value: string;
|
|
10
|
+
}>;
|
|
11
|
+
texts: Array<{
|
|
12
|
+
key: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}>;
|
|
15
|
+
owner?: string;
|
|
9
16
|
}
|
|
10
17
|
interface OffchainSubnameFormProps {
|
|
11
|
-
|
|
18
|
+
offchainManager: OffchainClient;
|
|
12
19
|
name: string;
|
|
13
20
|
label?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
subtitle?: string;
|
|
14
23
|
hideTitle?: boolean;
|
|
15
24
|
onCancel?: () => void;
|
|
16
25
|
isTestnet?: boolean;
|
|
17
26
|
avatarUploadDomain?: string;
|
|
18
|
-
|
|
27
|
+
onSubnameCreated?: (data: OffchainSubnameCreatedData) => Promise<void> | void;
|
|
28
|
+
onSubnameUpdated?: (data: OffchainSubnameCreatedData) => Promise<void> | void;
|
|
19
29
|
}
|
|
20
|
-
export declare const OffchainSubnameForm: ({
|
|
30
|
+
export declare const OffchainSubnameForm: ({ offchainManager, name, label: propLabel, title, subtitle, hideTitle, isTestnet, avatarUploadDomain, onCancel, onSubnameCreated, onSubnameUpdated, }: OffchainSubnameFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
31
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thenamespace/ens-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": ">=19",
|
|
16
16
|
"react-dom": ">=19",
|
|
17
|
-
"viem": "^2.
|
|
18
|
-
"wagmi": "^2.
|
|
17
|
+
"viem": "^2.46.3",
|
|
18
|
+
"wagmi": "^2.19.5"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
74
74
|
"rollup-plugin-postcss": "^4.0.2",
|
|
75
75
|
"typescript": "^5.9.2",
|
|
76
|
-
"viem": "^2.
|
|
77
|
-
"wagmi": "^2.
|
|
76
|
+
"viem": "^2.46.3",
|
|
77
|
+
"wagmi": "^2.19.5"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@adraffy/ens-normalize": "^1.11.1",
|