web3bio-profile-kit 0.1.2 → 0.1.4
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/README.md +14 -6
- package/dist/hooks/index.cjs +21 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/useBaseQuery.cjs +129 -0
- package/dist/{types/hooks → hooks}/useBaseQuery.d.ts +1 -2
- package/dist/hooks/useBaseQuery.js +127 -0
- package/dist/hooks/useBatchNS.cjs +25 -0
- package/dist/{types/hooks → hooks}/useBatchNS.d.ts +1 -1
- package/dist/hooks/useBatchNS.js +23 -0
- package/dist/hooks/useBatchProfile.cjs +25 -0
- package/dist/{types/hooks → hooks}/useBatchProfile.d.ts +1 -1
- package/dist/hooks/useBatchProfile.js +23 -0
- package/dist/hooks/useDomain.cjs +28 -0
- package/dist/{types/hooks → hooks}/useDomain.d.ts +1 -1
- package/dist/hooks/useDomain.js +26 -0
- package/dist/hooks/useNS.cjs +28 -0
- package/dist/{types/hooks → hooks}/useNS.d.ts +1 -1
- package/dist/hooks/useNS.js +26 -0
- package/dist/hooks/useProfile.cjs +28 -0
- package/dist/{types/hooks → hooks}/useProfile.d.ts +1 -1
- package/dist/hooks/useProfile.js +26 -0
- package/dist/hooks/useUniversalNS.cjs +28 -0
- package/dist/{types/hooks → hooks}/useUniversalNS.d.ts +1 -1
- package/dist/hooks/useUniversalNS.js +26 -0
- package/dist/hooks/useUniversalProfile.cjs +28 -0
- package/dist/{types/hooks → hooks}/useUniversalProfile.d.ts +1 -1
- package/dist/hooks/useUniversalProfile.js +26 -0
- package/dist/index.cjs +71 -0
- package/dist/index.d.ts +3 -247
- package/dist/index.js +18 -425
- package/dist/types/cointype.cjs +29 -0
- package/dist/types/cointype.d.ts +26 -0
- package/dist/types/cointype.js +29 -0
- package/dist/types/hook.cjs +38 -0
- package/dist/types/hook.d.ts +195 -0
- package/dist/types/hook.js +38 -0
- package/dist/types/index.cjs +38 -0
- package/dist/types/index.d.ts +5 -3
- package/dist/types/index.js +5 -0
- package/dist/types/network.cjs +41 -0
- package/dist/types/network.d.ts +55 -0
- package/dist/types/network.js +41 -0
- package/dist/types/platform.cjs +110 -0
- package/dist/types/platform.d.ts +122 -0
- package/dist/types/platform.js +110 -0
- package/dist/types/source.cjs +44 -0
- package/dist/types/source.d.ts +49 -0
- package/dist/types/source.js +44 -0
- package/dist/utils/helpers.cjs +119 -0
- package/dist/{types/utils → utils}/helpers.d.ts +4 -3
- package/dist/utils/helpers.js +112 -0
- package/dist/utils/index.cjs +27 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/network.cjs +355 -0
- package/dist/utils/network.d.ts +4 -0
- package/dist/utils/network.js +353 -0
- package/dist/utils/platform.cjs +983 -0
- package/dist/utils/platform.d.ts +18 -0
- package/dist/utils/platform.js +979 -0
- package/dist/utils/regex.cjs +34 -0
- package/dist/utils/regex.d.ts +30 -0
- package/dist/utils/regex.js +32 -0
- package/dist/utils/source.cjs +144 -0
- package/dist/utils/source.d.ts +2 -0
- package/dist/utils/source.js +142 -0
- package/package.json +32 -12
- package/dist/index.esm.js +0 -415
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/utils/constants.d.ts +0 -36
- package/dist/types/utils/types.d.ts +0 -102
- /package/dist/{types/hooks → hooks}/index.d.ts +0 -0
- /package/dist/{types/setupTests.d.ts → setupTests.d.ts} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Regex Group
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
const REGEX = {
|
|
8
|
+
ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|club|box|uni\.eth|cb\.id)$/i,
|
|
9
|
+
BASENAMES: /^.+\.base(\.eth)?$/i,
|
|
10
|
+
LINEA: /^.+\.linea(\.eth)?$/i,
|
|
11
|
+
FARCASTER: /^(?:[A-Za-z0-9_-]{1,61}(?:\.(?:eth|farcaster|fcast\.id|farcaster\.eth))?|farcaster,#\d+)$/i,
|
|
12
|
+
LENS: /^.+\.lens$/i,
|
|
13
|
+
CLUSTER: /^[\w-]+\/[\w-]+$/,
|
|
14
|
+
SPACE_ID: /^.+\.(?:bnb|arb)$/i,
|
|
15
|
+
GRAVITY: /^.+\.g$/,
|
|
16
|
+
GENOME: /^.+\.gno$/i,
|
|
17
|
+
UNSTOPPABLE_DOMAINS: /^.+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
|
|
18
|
+
CROSSBELL: /^.+\.csb$/i,
|
|
19
|
+
DOTBIT: /^.+\.bit$/i,
|
|
20
|
+
SNS: /^.+\.sol$/i,
|
|
21
|
+
ETH_ADDRESS: /^0x[a-fA-F0-9]{40}$/i,
|
|
22
|
+
BTC_ADDRESS: /^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[qp][a-z0-9]{11,71})$/,
|
|
23
|
+
SOLANA_ADDRESS: /^[1-9A-HJ-NP-Za-km-z]{32,44}$/,
|
|
24
|
+
LOWERCASE_EXEMPT: /^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[qp][a-z0-9]{11,71}|[1-9A-HJ-NP-Za-km-z]{32,44})$/,
|
|
25
|
+
TWITTER: /^[A-Za-z0-9_]{1,15}(?:\.twitter)?$/i,
|
|
26
|
+
NEXT_ID: /^0x[a-f0-9]{66}(?:\.nextid)?$/i,
|
|
27
|
+
EIP: /^eip155:(\d+)\/(erc1155|erc721):(.+)\/(.+)$/i,
|
|
28
|
+
DOMAIN: /^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/\n]+)/,
|
|
29
|
+
TON: /^(EQ|UQ)[a-zA-Z0-9_-]{46}$/,
|
|
30
|
+
NOSTR: /^(npub1|nsec1)[0-9a-z]{58,59}$|^[0-9a-f]{64}$/i,
|
|
31
|
+
EMOJI: /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/gi,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.REGEX = REGEX;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regex Group
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare const REGEX: {
|
|
6
|
+
ENS: RegExp;
|
|
7
|
+
BASENAMES: RegExp;
|
|
8
|
+
LINEA: RegExp;
|
|
9
|
+
FARCASTER: RegExp;
|
|
10
|
+
LENS: RegExp;
|
|
11
|
+
CLUSTER: RegExp;
|
|
12
|
+
SPACE_ID: RegExp;
|
|
13
|
+
GRAVITY: RegExp;
|
|
14
|
+
GENOME: RegExp;
|
|
15
|
+
UNSTOPPABLE_DOMAINS: RegExp;
|
|
16
|
+
CROSSBELL: RegExp;
|
|
17
|
+
DOTBIT: RegExp;
|
|
18
|
+
SNS: RegExp;
|
|
19
|
+
ETH_ADDRESS: RegExp;
|
|
20
|
+
BTC_ADDRESS: RegExp;
|
|
21
|
+
SOLANA_ADDRESS: RegExp;
|
|
22
|
+
LOWERCASE_EXEMPT: RegExp;
|
|
23
|
+
TWITTER: RegExp;
|
|
24
|
+
NEXT_ID: RegExp;
|
|
25
|
+
EIP: RegExp;
|
|
26
|
+
DOMAIN: RegExp;
|
|
27
|
+
TON: RegExp;
|
|
28
|
+
NOSTR: RegExp;
|
|
29
|
+
EMOJI: RegExp;
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regex Group
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
const REGEX = {
|
|
6
|
+
ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|club|box|uni\.eth|cb\.id)$/i,
|
|
7
|
+
BASENAMES: /^.+\.base(\.eth)?$/i,
|
|
8
|
+
LINEA: /^.+\.linea(\.eth)?$/i,
|
|
9
|
+
FARCASTER: /^(?:[A-Za-z0-9_-]{1,61}(?:\.(?:eth|farcaster|fcast\.id|farcaster\.eth))?|farcaster,#\d+)$/i,
|
|
10
|
+
LENS: /^.+\.lens$/i,
|
|
11
|
+
CLUSTER: /^[\w-]+\/[\w-]+$/,
|
|
12
|
+
SPACE_ID: /^.+\.(?:bnb|arb)$/i,
|
|
13
|
+
GRAVITY: /^.+\.g$/,
|
|
14
|
+
GENOME: /^.+\.gno$/i,
|
|
15
|
+
UNSTOPPABLE_DOMAINS: /^.+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
|
|
16
|
+
CROSSBELL: /^.+\.csb$/i,
|
|
17
|
+
DOTBIT: /^.+\.bit$/i,
|
|
18
|
+
SNS: /^.+\.sol$/i,
|
|
19
|
+
ETH_ADDRESS: /^0x[a-fA-F0-9]{40}$/i,
|
|
20
|
+
BTC_ADDRESS: /^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[qp][a-z0-9]{11,71})$/,
|
|
21
|
+
SOLANA_ADDRESS: /^[1-9A-HJ-NP-Za-km-z]{32,44}$/,
|
|
22
|
+
LOWERCASE_EXEMPT: /^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[qp][a-z0-9]{11,71}|[1-9A-HJ-NP-Za-km-z]{32,44})$/,
|
|
23
|
+
TWITTER: /^[A-Za-z0-9_]{1,15}(?:\.twitter)?$/i,
|
|
24
|
+
NEXT_ID: /^0x[a-f0-9]{66}(?:\.nextid)?$/i,
|
|
25
|
+
EIP: /^eip155:(\d+)\/(erc1155|erc721):(.+)\/(.+)$/i,
|
|
26
|
+
DOMAIN: /^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/\n]+)/,
|
|
27
|
+
TON: /^(EQ|UQ)[a-zA-Z0-9_-]{46}$/,
|
|
28
|
+
NOSTR: /^(npub1|nsec1)[0-9a-z]{58,59}$|^[0-9a-f]{64}$/i,
|
|
29
|
+
EMOJI: /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/gi,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { REGEX };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var source = require('../types/source.cjs');
|
|
4
|
+
|
|
5
|
+
const SOURCE_DATA = {
|
|
6
|
+
[source.Source.ethereum]: {
|
|
7
|
+
name: "Ethereum",
|
|
8
|
+
description: "Ethereum",
|
|
9
|
+
},
|
|
10
|
+
[source.Source.ens]: {
|
|
11
|
+
name: "ENS",
|
|
12
|
+
description: "Ethereum Name Service",
|
|
13
|
+
},
|
|
14
|
+
[source.Source.twitter]: {
|
|
15
|
+
name: "Twitter (X)",
|
|
16
|
+
description: "Twitter (X) social platform",
|
|
17
|
+
},
|
|
18
|
+
[source.Source.keybase]: {
|
|
19
|
+
name: "Keybase",
|
|
20
|
+
description: "Secure messaging and file-sharing",
|
|
21
|
+
},
|
|
22
|
+
[source.Source.nextid]: {
|
|
23
|
+
name: "Next.ID",
|
|
24
|
+
description: "Decentralized identity protocol",
|
|
25
|
+
},
|
|
26
|
+
[source.Source.rss3]: {
|
|
27
|
+
name: "RSS3",
|
|
28
|
+
description: "Open information syndication protocol",
|
|
29
|
+
},
|
|
30
|
+
[source.Source.dotbit]: {
|
|
31
|
+
name: ".bit",
|
|
32
|
+
description: "Decentralized cross-chain identity system",
|
|
33
|
+
},
|
|
34
|
+
[source.Source.unstoppabledomains]: {
|
|
35
|
+
name: "Unstoppable Domains",
|
|
36
|
+
description: "Blockchain domain name provider",
|
|
37
|
+
},
|
|
38
|
+
[source.Source.lens]: {
|
|
39
|
+
name: "Lens",
|
|
40
|
+
description: "Web3 social graph protocol",
|
|
41
|
+
},
|
|
42
|
+
[source.Source.farcaster]: {
|
|
43
|
+
name: "Farcaster",
|
|
44
|
+
description: "Decentralized social network protocol",
|
|
45
|
+
},
|
|
46
|
+
[source.Source.space_id]: {
|
|
47
|
+
name: "SpaceID",
|
|
48
|
+
description: "Multi-chain name service",
|
|
49
|
+
},
|
|
50
|
+
[source.Source.gravity]: {
|
|
51
|
+
name: "Gravity",
|
|
52
|
+
description: "Gravity alpha mainnet name service",
|
|
53
|
+
},
|
|
54
|
+
[source.Source.crossbell]: {
|
|
55
|
+
name: "Crossbell",
|
|
56
|
+
description: "Decentralized publishing protocol",
|
|
57
|
+
},
|
|
58
|
+
[source.Source.clusters]: {
|
|
59
|
+
name: "Clusters",
|
|
60
|
+
description: "On-chain social protocol",
|
|
61
|
+
},
|
|
62
|
+
[source.Source.solana]: {
|
|
63
|
+
name: "Solana",
|
|
64
|
+
description: "High-performance blockchain",
|
|
65
|
+
},
|
|
66
|
+
[source.Source.sns]: {
|
|
67
|
+
name: "SNS",
|
|
68
|
+
description: "Solana Name Service",
|
|
69
|
+
},
|
|
70
|
+
[source.Source.opensea]: {
|
|
71
|
+
name: "OpenSea",
|
|
72
|
+
description: "NFT marketplace",
|
|
73
|
+
},
|
|
74
|
+
[source.Source.firefly]: {
|
|
75
|
+
name: "Firefly",
|
|
76
|
+
description: "Web3 social platform",
|
|
77
|
+
},
|
|
78
|
+
[source.Source.basenames]: {
|
|
79
|
+
name: "Basenames",
|
|
80
|
+
description: "The domain system on Base",
|
|
81
|
+
},
|
|
82
|
+
[source.Source.dentity]: {
|
|
83
|
+
name: "Dentity",
|
|
84
|
+
description: "Digital Credentials",
|
|
85
|
+
},
|
|
86
|
+
[source.Source.nftd]: {
|
|
87
|
+
name: "NF.TD",
|
|
88
|
+
description: "Be your own checkmark",
|
|
89
|
+
},
|
|
90
|
+
[source.Source.mirror]: {
|
|
91
|
+
name: "Mirror",
|
|
92
|
+
description: "Decentralized publishing protocol",
|
|
93
|
+
},
|
|
94
|
+
[source.Source.paragraph]: {
|
|
95
|
+
name: "Paragraph",
|
|
96
|
+
description: "Decentralized publishing protocol",
|
|
97
|
+
},
|
|
98
|
+
[source.Source.foundation]: {
|
|
99
|
+
name: "Foundation",
|
|
100
|
+
description: "NFT marketplace",
|
|
101
|
+
},
|
|
102
|
+
[source.Source.rarible]: {
|
|
103
|
+
name: "Rarible",
|
|
104
|
+
description: "NFT marketplace",
|
|
105
|
+
},
|
|
106
|
+
[source.Source.soundxyz]: {
|
|
107
|
+
name: "Sound.xyz",
|
|
108
|
+
description: "Decentralized audio platform",
|
|
109
|
+
},
|
|
110
|
+
[source.Source.linea]: {
|
|
111
|
+
name: "Linea",
|
|
112
|
+
description: "L2 based on ZK",
|
|
113
|
+
},
|
|
114
|
+
[source.Source.gmgn]: {
|
|
115
|
+
name: "GMGN",
|
|
116
|
+
description: "Web3 social platform",
|
|
117
|
+
},
|
|
118
|
+
[source.Source.nostr]: {
|
|
119
|
+
name: "Nostr",
|
|
120
|
+
description: "Web3 social platform",
|
|
121
|
+
},
|
|
122
|
+
[source.Source.talentprotocol]: {
|
|
123
|
+
name: "Talent",
|
|
124
|
+
description: "Decentralized onchain passport",
|
|
125
|
+
},
|
|
126
|
+
[source.Source.crowdsourcing]: {
|
|
127
|
+
name: "Crowdsourcing",
|
|
128
|
+
description: "Crowdsourcing",
|
|
129
|
+
},
|
|
130
|
+
[source.Source.particle]: {
|
|
131
|
+
name: "Particle",
|
|
132
|
+
description: "Particle",
|
|
133
|
+
},
|
|
134
|
+
[source.Source.tally]: {
|
|
135
|
+
name: "Tally",
|
|
136
|
+
description: "Launch, manage, and grow the value of your token",
|
|
137
|
+
},
|
|
138
|
+
[source.Source.icebreaker]: {
|
|
139
|
+
name: "Icebreaker",
|
|
140
|
+
description: "Open professional network",
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
exports.SOURCE_DATA = SOURCE_DATA;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Source } from '../types/source.js';
|
|
2
|
+
|
|
3
|
+
const SOURCE_DATA = {
|
|
4
|
+
[Source.ethereum]: {
|
|
5
|
+
name: "Ethereum",
|
|
6
|
+
description: "Ethereum",
|
|
7
|
+
},
|
|
8
|
+
[Source.ens]: {
|
|
9
|
+
name: "ENS",
|
|
10
|
+
description: "Ethereum Name Service",
|
|
11
|
+
},
|
|
12
|
+
[Source.twitter]: {
|
|
13
|
+
name: "Twitter (X)",
|
|
14
|
+
description: "Twitter (X) social platform",
|
|
15
|
+
},
|
|
16
|
+
[Source.keybase]: {
|
|
17
|
+
name: "Keybase",
|
|
18
|
+
description: "Secure messaging and file-sharing",
|
|
19
|
+
},
|
|
20
|
+
[Source.nextid]: {
|
|
21
|
+
name: "Next.ID",
|
|
22
|
+
description: "Decentralized identity protocol",
|
|
23
|
+
},
|
|
24
|
+
[Source.rss3]: {
|
|
25
|
+
name: "RSS3",
|
|
26
|
+
description: "Open information syndication protocol",
|
|
27
|
+
},
|
|
28
|
+
[Source.dotbit]: {
|
|
29
|
+
name: ".bit",
|
|
30
|
+
description: "Decentralized cross-chain identity system",
|
|
31
|
+
},
|
|
32
|
+
[Source.unstoppabledomains]: {
|
|
33
|
+
name: "Unstoppable Domains",
|
|
34
|
+
description: "Blockchain domain name provider",
|
|
35
|
+
},
|
|
36
|
+
[Source.lens]: {
|
|
37
|
+
name: "Lens",
|
|
38
|
+
description: "Web3 social graph protocol",
|
|
39
|
+
},
|
|
40
|
+
[Source.farcaster]: {
|
|
41
|
+
name: "Farcaster",
|
|
42
|
+
description: "Decentralized social network protocol",
|
|
43
|
+
},
|
|
44
|
+
[Source.space_id]: {
|
|
45
|
+
name: "SpaceID",
|
|
46
|
+
description: "Multi-chain name service",
|
|
47
|
+
},
|
|
48
|
+
[Source.gravity]: {
|
|
49
|
+
name: "Gravity",
|
|
50
|
+
description: "Gravity alpha mainnet name service",
|
|
51
|
+
},
|
|
52
|
+
[Source.crossbell]: {
|
|
53
|
+
name: "Crossbell",
|
|
54
|
+
description: "Decentralized publishing protocol",
|
|
55
|
+
},
|
|
56
|
+
[Source.clusters]: {
|
|
57
|
+
name: "Clusters",
|
|
58
|
+
description: "On-chain social protocol",
|
|
59
|
+
},
|
|
60
|
+
[Source.solana]: {
|
|
61
|
+
name: "Solana",
|
|
62
|
+
description: "High-performance blockchain",
|
|
63
|
+
},
|
|
64
|
+
[Source.sns]: {
|
|
65
|
+
name: "SNS",
|
|
66
|
+
description: "Solana Name Service",
|
|
67
|
+
},
|
|
68
|
+
[Source.opensea]: {
|
|
69
|
+
name: "OpenSea",
|
|
70
|
+
description: "NFT marketplace",
|
|
71
|
+
},
|
|
72
|
+
[Source.firefly]: {
|
|
73
|
+
name: "Firefly",
|
|
74
|
+
description: "Web3 social platform",
|
|
75
|
+
},
|
|
76
|
+
[Source.basenames]: {
|
|
77
|
+
name: "Basenames",
|
|
78
|
+
description: "The domain system on Base",
|
|
79
|
+
},
|
|
80
|
+
[Source.dentity]: {
|
|
81
|
+
name: "Dentity",
|
|
82
|
+
description: "Digital Credentials",
|
|
83
|
+
},
|
|
84
|
+
[Source.nftd]: {
|
|
85
|
+
name: "NF.TD",
|
|
86
|
+
description: "Be your own checkmark",
|
|
87
|
+
},
|
|
88
|
+
[Source.mirror]: {
|
|
89
|
+
name: "Mirror",
|
|
90
|
+
description: "Decentralized publishing protocol",
|
|
91
|
+
},
|
|
92
|
+
[Source.paragraph]: {
|
|
93
|
+
name: "Paragraph",
|
|
94
|
+
description: "Decentralized publishing protocol",
|
|
95
|
+
},
|
|
96
|
+
[Source.foundation]: {
|
|
97
|
+
name: "Foundation",
|
|
98
|
+
description: "NFT marketplace",
|
|
99
|
+
},
|
|
100
|
+
[Source.rarible]: {
|
|
101
|
+
name: "Rarible",
|
|
102
|
+
description: "NFT marketplace",
|
|
103
|
+
},
|
|
104
|
+
[Source.soundxyz]: {
|
|
105
|
+
name: "Sound.xyz",
|
|
106
|
+
description: "Decentralized audio platform",
|
|
107
|
+
},
|
|
108
|
+
[Source.linea]: {
|
|
109
|
+
name: "Linea",
|
|
110
|
+
description: "L2 based on ZK",
|
|
111
|
+
},
|
|
112
|
+
[Source.gmgn]: {
|
|
113
|
+
name: "GMGN",
|
|
114
|
+
description: "Web3 social platform",
|
|
115
|
+
},
|
|
116
|
+
[Source.nostr]: {
|
|
117
|
+
name: "Nostr",
|
|
118
|
+
description: "Web3 social platform",
|
|
119
|
+
},
|
|
120
|
+
[Source.talentprotocol]: {
|
|
121
|
+
name: "Talent",
|
|
122
|
+
description: "Decentralized onchain passport",
|
|
123
|
+
},
|
|
124
|
+
[Source.crowdsourcing]: {
|
|
125
|
+
name: "Crowdsourcing",
|
|
126
|
+
description: "Crowdsourcing",
|
|
127
|
+
},
|
|
128
|
+
[Source.particle]: {
|
|
129
|
+
name: "Particle",
|
|
130
|
+
description: "Particle",
|
|
131
|
+
},
|
|
132
|
+
[Source.tally]: {
|
|
133
|
+
name: "Tally",
|
|
134
|
+
description: "Launch, manage, and grow the value of your token",
|
|
135
|
+
},
|
|
136
|
+
[Source.icebreaker]: {
|
|
137
|
+
name: "Icebreaker",
|
|
138
|
+
description: "Open professional network",
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export { SOURCE_DATA };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web3bio-profile-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "React hooks for querying ENS, Farcaster, Lens and Web3 universal profiles",
|
|
5
5
|
"author": "web3bio",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,6 +9,25 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/index.esm.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./hooks": {
|
|
19
|
+
"types": "./dist/hooks/index.d.ts",
|
|
20
|
+
"default": "./dist/hooks/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./types": {
|
|
23
|
+
"types": "./dist/types/index.d.ts",
|
|
24
|
+
"default": "./dist/types/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./utils": {
|
|
27
|
+
"types": "./dist/utils/index.d.ts",
|
|
28
|
+
"default": "./dist/utils/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
12
31
|
"files": [
|
|
13
32
|
"dist"
|
|
14
33
|
],
|
|
@@ -41,22 +60,23 @@
|
|
|
41
60
|
"react-dom": ">=16.8.0"
|
|
42
61
|
},
|
|
43
62
|
"devDependencies": {
|
|
44
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
45
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
46
|
-
"@rollup/plugin-typescript": "^11.
|
|
63
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
65
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
47
66
|
"@testing-library/dom": "^10.4.0",
|
|
48
67
|
"@testing-library/jest-dom": "^6.6.3",
|
|
49
68
|
"@testing-library/react": "^16.3.0",
|
|
50
69
|
"@testing-library/user-event": "^13.5.0",
|
|
70
|
+
"@types/node": "^22.15.24",
|
|
71
|
+
"@types/react": "^18.3.23",
|
|
72
|
+
"dotenv": "^16.5.0",
|
|
73
|
+
"react": "^18.3.1",
|
|
74
|
+
"react-dom": "^18.3.1",
|
|
51
75
|
"react-scripts": "5.0.1",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"rimraf": "^5.0.5",
|
|
56
|
-
"rollup": "^3.25.0",
|
|
57
|
-
"rollup-plugin-dts": "^5.3.0",
|
|
76
|
+
"rimraf": "^5.0.10",
|
|
77
|
+
"rollup": "^3.29.5",
|
|
78
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
58
79
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
59
|
-
"typescript": "^5.
|
|
60
|
-
"dotenv": "^16.5.0"
|
|
80
|
+
"typescript": "^5.8.3"
|
|
61
81
|
}
|
|
62
82
|
}
|