web3bio-profile-kit 0.1.24 → 0.1.26
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/types/ceredential.cjs +1 -2
- package/dist/types/ceredential.d.ts +1 -2
- package/dist/types/ceredential.js +1 -2
- package/dist/types/source.d.ts +1 -0
- package/dist/utils/helpers.cjs +1 -1
- package/dist/utils/helpers.js +1 -1
- package/dist/utils/source.cjs +38 -0
- package/dist/utils/source.js +38 -0
- package/package.json +1 -1
|
@@ -24,7 +24,6 @@ exports.CredentialSource = void 0;
|
|
|
24
24
|
CredentialSource["hacker"] = "hacker";
|
|
25
25
|
CredentialSource["hacked"] = "hacked";
|
|
26
26
|
CredentialSource["dmca"] = "dmca";
|
|
27
|
-
CredentialSource["google"] = "google";
|
|
28
27
|
// isSpam
|
|
29
|
-
CredentialSource["
|
|
28
|
+
CredentialSource["farcasterSpam"] = "farcaster-spam";
|
|
30
29
|
})(exports.CredentialSource || (exports.CredentialSource = {}));
|
|
@@ -22,9 +22,8 @@ var CredentialSource;
|
|
|
22
22
|
CredentialSource["hacker"] = "hacker";
|
|
23
23
|
CredentialSource["hacked"] = "hacked";
|
|
24
24
|
CredentialSource["dmca"] = "dmca";
|
|
25
|
-
CredentialSource["google"] = "google";
|
|
26
25
|
// isSpam
|
|
27
|
-
CredentialSource["
|
|
26
|
+
CredentialSource["farcasterSpam"] = "farcaster-spam";
|
|
28
27
|
})(CredentialSource || (CredentialSource = {}));
|
|
29
28
|
|
|
30
29
|
export { CredentialCategory, CredentialSource };
|
package/dist/types/source.d.ts
CHANGED
package/dist/utils/helpers.cjs
CHANGED
|
@@ -141,7 +141,7 @@ const platformMap = new Map([
|
|
|
141
141
|
* Detect platform from identity string based on regex patterns
|
|
142
142
|
*/
|
|
143
143
|
const detectPlatform = (term) => {
|
|
144
|
-
if (/\.(farcaster\.eth|farcaster)$/.test(term))
|
|
144
|
+
if (/\.(farcaster\.eth|farcaster|fcast\.id)$/.test(term))
|
|
145
145
|
return platform.Platform.farcaster;
|
|
146
146
|
for (const [regex, Platform] of platformMap) {
|
|
147
147
|
if (regex.test(term)) {
|
package/dist/utils/helpers.js
CHANGED
|
@@ -139,7 +139,7 @@ const platformMap = new Map([
|
|
|
139
139
|
* Detect platform from identity string based on regex patterns
|
|
140
140
|
*/
|
|
141
141
|
const detectPlatform = (term) => {
|
|
142
|
-
if (/\.(farcaster\.eth|farcaster)$/.test(term))
|
|
142
|
+
if (/\.(farcaster\.eth|farcaster|fcast\.id)$/.test(term))
|
|
143
143
|
return Platform.farcaster;
|
|
144
144
|
for (const [regex, Platform] of platformMap) {
|
|
145
145
|
if (regex.test(term)) {
|
package/dist/utils/source.cjs
CHANGED
|
@@ -10,6 +10,7 @@ const SOURCE_DATA = {
|
|
|
10
10
|
[source.Source.basenames]: {
|
|
11
11
|
name: "Basenames",
|
|
12
12
|
description: "The domain system on Base",
|
|
13
|
+
icon: "icons/icon-base.svg",
|
|
13
14
|
},
|
|
14
15
|
[source.Source.camp_network]: {
|
|
15
16
|
name: "Camp Network",
|
|
@@ -18,6 +19,7 @@ const SOURCE_DATA = {
|
|
|
18
19
|
[source.Source.clusters]: {
|
|
19
20
|
name: "Clusters",
|
|
20
21
|
description: "On-chain social protocol",
|
|
22
|
+
icon: "icons/icon-clusters.svg",
|
|
21
23
|
},
|
|
22
24
|
[source.Source.crowdsourcing]: {
|
|
23
25
|
name: "Crowdsourcing",
|
|
@@ -26,146 +28,182 @@ const SOURCE_DATA = {
|
|
|
26
28
|
[source.Source.dentity]: {
|
|
27
29
|
name: "Dentity",
|
|
28
30
|
description: "Digital credentials",
|
|
31
|
+
icon: "icons/icon-dentity.svg",
|
|
29
32
|
},
|
|
30
33
|
[source.Source.dotbit]: {
|
|
31
34
|
name: ".bit",
|
|
32
35
|
description: "Decentralized cross-chain identity system",
|
|
36
|
+
icon: "icons/icon-dotbit.svg",
|
|
33
37
|
},
|
|
34
38
|
[source.Source.ens]: {
|
|
35
39
|
name: "ENS",
|
|
36
40
|
description: "Ethereum Name Service",
|
|
41
|
+
icon: "icons/icon-ens.svg",
|
|
37
42
|
},
|
|
38
43
|
[source.Source.ethereum]: {
|
|
39
44
|
name: "Ethereum",
|
|
40
45
|
description: "Ethereum",
|
|
46
|
+
icon: "icons/icon-ethereum.svg",
|
|
41
47
|
},
|
|
42
48
|
[source.Source.exchange_art]: {
|
|
43
49
|
name: "Exchange Art",
|
|
44
50
|
description: "A digital art marketplace",
|
|
51
|
+
icon: "icons/icon-exchangeArt.svg",
|
|
45
52
|
},
|
|
46
53
|
[source.Source.farcaster]: {
|
|
47
54
|
name: "Farcaster",
|
|
48
55
|
description: "Decentralized social network protocol",
|
|
56
|
+
icon: "icons/icon-farcaster.svg",
|
|
49
57
|
},
|
|
50
58
|
[source.Source.firefly]: {
|
|
51
59
|
name: "Firefly",
|
|
52
60
|
description: "Web3 social platform",
|
|
61
|
+
icon: "icons/icon-firefly.svg",
|
|
53
62
|
},
|
|
54
63
|
[source.Source.foundation]: {
|
|
55
64
|
name: "Foundation",
|
|
56
65
|
description: "NFT marketplace",
|
|
66
|
+
icon: "icons/icon-foundation.svg",
|
|
57
67
|
},
|
|
58
68
|
[source.Source.gallery]: {
|
|
59
69
|
name: "Gallery",
|
|
60
70
|
description: "Show your collection to the world",
|
|
71
|
+
icon: "icons/icon-gallery.svg",
|
|
61
72
|
},
|
|
62
73
|
[source.Source.gmgn]: {
|
|
63
74
|
name: "GMGN",
|
|
64
75
|
description: "Web3 social platform",
|
|
76
|
+
icon: "icons/icon-gmgn.svg",
|
|
65
77
|
},
|
|
66
78
|
[source.Source.icebreaker]: {
|
|
67
79
|
name: "Icebreaker",
|
|
68
80
|
description: "Open professional network",
|
|
81
|
+
icon: "icons/icon-icebreaker.svg",
|
|
69
82
|
},
|
|
70
83
|
[source.Source.justaname]: {
|
|
71
84
|
name: "JustaName",
|
|
72
85
|
description: "Identity infrastructure",
|
|
86
|
+
icon: "icons/icon-justaname.svg",
|
|
73
87
|
},
|
|
74
88
|
[source.Source.keybase]: {
|
|
75
89
|
name: "Keybase",
|
|
76
90
|
description: "Secure messaging and file-sharing",
|
|
91
|
+
icon: "icons/icon-keybase.svg",
|
|
77
92
|
},
|
|
78
93
|
[source.Source.lens]: {
|
|
79
94
|
name: "Lens",
|
|
80
95
|
description: "Web3 social graph protocol",
|
|
96
|
+
icon: "icons/icon-lens.svg",
|
|
81
97
|
},
|
|
82
98
|
[source.Source.linea]: {
|
|
83
99
|
name: "Linea",
|
|
84
100
|
description: "L2 based on ZK",
|
|
101
|
+
icon: "icons/icon-linea.svg",
|
|
85
102
|
},
|
|
86
103
|
[source.Source.metopia]: {
|
|
87
104
|
name: "Metopia",
|
|
88
105
|
description: "Web3 identity & learning platform",
|
|
106
|
+
icon: "icons/icon-metopia.svg",
|
|
89
107
|
},
|
|
90
108
|
[source.Source.mirror]: {
|
|
91
109
|
name: "Mirror",
|
|
92
110
|
description: "Decentralized publishing protocol",
|
|
111
|
+
icon: "icons/icon-mirror.svg",
|
|
93
112
|
},
|
|
94
113
|
[source.Source.nextid]: {
|
|
95
114
|
name: "Next.ID",
|
|
96
115
|
description: "Decentralized identity protocol",
|
|
116
|
+
icon: "icons/icon-nextid.svg",
|
|
97
117
|
},
|
|
98
118
|
[source.Source.nftd]: {
|
|
99
119
|
name: "NF.TD",
|
|
100
120
|
description: "Be your own checkmark",
|
|
121
|
+
icon: "icons/icon-nftd.svg",
|
|
101
122
|
},
|
|
102
123
|
[source.Source.nostr]: {
|
|
103
124
|
name: "Nostr",
|
|
104
125
|
description: "Web3 social platform",
|
|
126
|
+
icon: "icons/icon-nostr.svg",
|
|
105
127
|
},
|
|
106
128
|
[source.Source.opensea]: {
|
|
107
129
|
name: "OpenSea",
|
|
108
130
|
description: "NFT marketplace",
|
|
131
|
+
icon: "icons/icon-opensea.svg",
|
|
109
132
|
},
|
|
110
133
|
[source.Source.paragraph]: {
|
|
111
134
|
name: "Paragraph",
|
|
112
135
|
description: "Decentralized publishing protocol",
|
|
136
|
+
icon: "icons/icon-paragraph.svg",
|
|
113
137
|
},
|
|
114
138
|
[source.Source.particle]: {
|
|
115
139
|
name: "Particle",
|
|
116
140
|
description: "Particle",
|
|
141
|
+
icon: "icons/icon-particle.svg",
|
|
117
142
|
},
|
|
118
143
|
[source.Source.rarible]: {
|
|
119
144
|
name: "Rarible",
|
|
120
145
|
description: "NFT marketplace",
|
|
146
|
+
icon: "icons/icon-rarible.svg",
|
|
121
147
|
},
|
|
122
148
|
[source.Source.rey]: {
|
|
123
149
|
name: "Rey",
|
|
124
150
|
description: "The world's attention marketplace",
|
|
151
|
+
icon: "icons/icon-rey.svg",
|
|
125
152
|
},
|
|
126
153
|
[source.Source.rss3]: {
|
|
127
154
|
name: "RSS3",
|
|
128
155
|
description: "Open information syndication protocol",
|
|
156
|
+
icon: "icons/icon-rss3.svg",
|
|
129
157
|
},
|
|
130
158
|
[source.Source.seekerid]: {
|
|
131
159
|
name: "Seeker ID",
|
|
132
160
|
description: "Solana Mobile Identity",
|
|
161
|
+
icon: "icons/icon-seekerid.svg",
|
|
133
162
|
},
|
|
134
163
|
[source.Source.sns]: {
|
|
135
164
|
name: "SNS",
|
|
136
165
|
description: "Solana Name Service",
|
|
166
|
+
icon: "icons/icon-sns.svg",
|
|
137
167
|
},
|
|
138
168
|
[source.Source.solana]: {
|
|
139
169
|
name: "Solana",
|
|
140
170
|
description: "High-performance blockchain",
|
|
171
|
+
icon: "icons/icon-solana.svg",
|
|
141
172
|
},
|
|
142
173
|
[source.Source.soundxyz]: {
|
|
143
174
|
name: "Sound.xyz",
|
|
144
175
|
description: "Decentralized audio platform",
|
|
176
|
+
icon: "icons/icon-soundxyz.svg",
|
|
145
177
|
},
|
|
146
178
|
[source.Source.space_id]: {
|
|
147
179
|
name: "SpaceID",
|
|
148
180
|
description: "Multi-chain name service",
|
|
181
|
+
icon: "icons/icon-spaceid.svg",
|
|
149
182
|
},
|
|
150
183
|
[source.Source.talentprotocol]: {
|
|
151
184
|
name: "Talent",
|
|
152
185
|
description: "Decentralized onchain passport",
|
|
186
|
+
icon: "icons/icon-talent.svg",
|
|
153
187
|
},
|
|
154
188
|
[source.Source.tally]: {
|
|
155
189
|
name: "Tally",
|
|
156
190
|
description: "Launch, manage, and grow the value of your token",
|
|
191
|
+
icon: "icons/icon-tally.svg",
|
|
157
192
|
},
|
|
158
193
|
[source.Source.twitter]: {
|
|
159
194
|
name: "Twitter (X)",
|
|
160
195
|
description: "Twitter (X) social platform",
|
|
196
|
+
icon: "icons/icon-twitter.svg",
|
|
161
197
|
},
|
|
162
198
|
[source.Source.unstoppabledomains]: {
|
|
163
199
|
name: "Unstoppable Domains",
|
|
164
200
|
description: "Blockchain domain name provider",
|
|
201
|
+
icon: "icons/icon-unstoppabledomains.svg",
|
|
165
202
|
},
|
|
166
203
|
[source.Source.zora]: {
|
|
167
204
|
name: "Zora",
|
|
168
205
|
description: "A social network where every post is a coin",
|
|
206
|
+
icon: "icons/icon-zora.svg",
|
|
169
207
|
},
|
|
170
208
|
};
|
|
171
209
|
/**
|
package/dist/utils/source.js
CHANGED
|
@@ -8,6 +8,7 @@ const SOURCE_DATA = {
|
|
|
8
8
|
[Source.basenames]: {
|
|
9
9
|
name: "Basenames",
|
|
10
10
|
description: "The domain system on Base",
|
|
11
|
+
icon: "icons/icon-base.svg",
|
|
11
12
|
},
|
|
12
13
|
[Source.camp_network]: {
|
|
13
14
|
name: "Camp Network",
|
|
@@ -16,6 +17,7 @@ const SOURCE_DATA = {
|
|
|
16
17
|
[Source.clusters]: {
|
|
17
18
|
name: "Clusters",
|
|
18
19
|
description: "On-chain social protocol",
|
|
20
|
+
icon: "icons/icon-clusters.svg",
|
|
19
21
|
},
|
|
20
22
|
[Source.crowdsourcing]: {
|
|
21
23
|
name: "Crowdsourcing",
|
|
@@ -24,146 +26,182 @@ const SOURCE_DATA = {
|
|
|
24
26
|
[Source.dentity]: {
|
|
25
27
|
name: "Dentity",
|
|
26
28
|
description: "Digital credentials",
|
|
29
|
+
icon: "icons/icon-dentity.svg",
|
|
27
30
|
},
|
|
28
31
|
[Source.dotbit]: {
|
|
29
32
|
name: ".bit",
|
|
30
33
|
description: "Decentralized cross-chain identity system",
|
|
34
|
+
icon: "icons/icon-dotbit.svg",
|
|
31
35
|
},
|
|
32
36
|
[Source.ens]: {
|
|
33
37
|
name: "ENS",
|
|
34
38
|
description: "Ethereum Name Service",
|
|
39
|
+
icon: "icons/icon-ens.svg",
|
|
35
40
|
},
|
|
36
41
|
[Source.ethereum]: {
|
|
37
42
|
name: "Ethereum",
|
|
38
43
|
description: "Ethereum",
|
|
44
|
+
icon: "icons/icon-ethereum.svg",
|
|
39
45
|
},
|
|
40
46
|
[Source.exchange_art]: {
|
|
41
47
|
name: "Exchange Art",
|
|
42
48
|
description: "A digital art marketplace",
|
|
49
|
+
icon: "icons/icon-exchangeArt.svg",
|
|
43
50
|
},
|
|
44
51
|
[Source.farcaster]: {
|
|
45
52
|
name: "Farcaster",
|
|
46
53
|
description: "Decentralized social network protocol",
|
|
54
|
+
icon: "icons/icon-farcaster.svg",
|
|
47
55
|
},
|
|
48
56
|
[Source.firefly]: {
|
|
49
57
|
name: "Firefly",
|
|
50
58
|
description: "Web3 social platform",
|
|
59
|
+
icon: "icons/icon-firefly.svg",
|
|
51
60
|
},
|
|
52
61
|
[Source.foundation]: {
|
|
53
62
|
name: "Foundation",
|
|
54
63
|
description: "NFT marketplace",
|
|
64
|
+
icon: "icons/icon-foundation.svg",
|
|
55
65
|
},
|
|
56
66
|
[Source.gallery]: {
|
|
57
67
|
name: "Gallery",
|
|
58
68
|
description: "Show your collection to the world",
|
|
69
|
+
icon: "icons/icon-gallery.svg",
|
|
59
70
|
},
|
|
60
71
|
[Source.gmgn]: {
|
|
61
72
|
name: "GMGN",
|
|
62
73
|
description: "Web3 social platform",
|
|
74
|
+
icon: "icons/icon-gmgn.svg",
|
|
63
75
|
},
|
|
64
76
|
[Source.icebreaker]: {
|
|
65
77
|
name: "Icebreaker",
|
|
66
78
|
description: "Open professional network",
|
|
79
|
+
icon: "icons/icon-icebreaker.svg",
|
|
67
80
|
},
|
|
68
81
|
[Source.justaname]: {
|
|
69
82
|
name: "JustaName",
|
|
70
83
|
description: "Identity infrastructure",
|
|
84
|
+
icon: "icons/icon-justaname.svg",
|
|
71
85
|
},
|
|
72
86
|
[Source.keybase]: {
|
|
73
87
|
name: "Keybase",
|
|
74
88
|
description: "Secure messaging and file-sharing",
|
|
89
|
+
icon: "icons/icon-keybase.svg",
|
|
75
90
|
},
|
|
76
91
|
[Source.lens]: {
|
|
77
92
|
name: "Lens",
|
|
78
93
|
description: "Web3 social graph protocol",
|
|
94
|
+
icon: "icons/icon-lens.svg",
|
|
79
95
|
},
|
|
80
96
|
[Source.linea]: {
|
|
81
97
|
name: "Linea",
|
|
82
98
|
description: "L2 based on ZK",
|
|
99
|
+
icon: "icons/icon-linea.svg",
|
|
83
100
|
},
|
|
84
101
|
[Source.metopia]: {
|
|
85
102
|
name: "Metopia",
|
|
86
103
|
description: "Web3 identity & learning platform",
|
|
104
|
+
icon: "icons/icon-metopia.svg",
|
|
87
105
|
},
|
|
88
106
|
[Source.mirror]: {
|
|
89
107
|
name: "Mirror",
|
|
90
108
|
description: "Decentralized publishing protocol",
|
|
109
|
+
icon: "icons/icon-mirror.svg",
|
|
91
110
|
},
|
|
92
111
|
[Source.nextid]: {
|
|
93
112
|
name: "Next.ID",
|
|
94
113
|
description: "Decentralized identity protocol",
|
|
114
|
+
icon: "icons/icon-nextid.svg",
|
|
95
115
|
},
|
|
96
116
|
[Source.nftd]: {
|
|
97
117
|
name: "NF.TD",
|
|
98
118
|
description: "Be your own checkmark",
|
|
119
|
+
icon: "icons/icon-nftd.svg",
|
|
99
120
|
},
|
|
100
121
|
[Source.nostr]: {
|
|
101
122
|
name: "Nostr",
|
|
102
123
|
description: "Web3 social platform",
|
|
124
|
+
icon: "icons/icon-nostr.svg",
|
|
103
125
|
},
|
|
104
126
|
[Source.opensea]: {
|
|
105
127
|
name: "OpenSea",
|
|
106
128
|
description: "NFT marketplace",
|
|
129
|
+
icon: "icons/icon-opensea.svg",
|
|
107
130
|
},
|
|
108
131
|
[Source.paragraph]: {
|
|
109
132
|
name: "Paragraph",
|
|
110
133
|
description: "Decentralized publishing protocol",
|
|
134
|
+
icon: "icons/icon-paragraph.svg",
|
|
111
135
|
},
|
|
112
136
|
[Source.particle]: {
|
|
113
137
|
name: "Particle",
|
|
114
138
|
description: "Particle",
|
|
139
|
+
icon: "icons/icon-particle.svg",
|
|
115
140
|
},
|
|
116
141
|
[Source.rarible]: {
|
|
117
142
|
name: "Rarible",
|
|
118
143
|
description: "NFT marketplace",
|
|
144
|
+
icon: "icons/icon-rarible.svg",
|
|
119
145
|
},
|
|
120
146
|
[Source.rey]: {
|
|
121
147
|
name: "Rey",
|
|
122
148
|
description: "The world's attention marketplace",
|
|
149
|
+
icon: "icons/icon-rey.svg",
|
|
123
150
|
},
|
|
124
151
|
[Source.rss3]: {
|
|
125
152
|
name: "RSS3",
|
|
126
153
|
description: "Open information syndication protocol",
|
|
154
|
+
icon: "icons/icon-rss3.svg",
|
|
127
155
|
},
|
|
128
156
|
[Source.seekerid]: {
|
|
129
157
|
name: "Seeker ID",
|
|
130
158
|
description: "Solana Mobile Identity",
|
|
159
|
+
icon: "icons/icon-seekerid.svg",
|
|
131
160
|
},
|
|
132
161
|
[Source.sns]: {
|
|
133
162
|
name: "SNS",
|
|
134
163
|
description: "Solana Name Service",
|
|
164
|
+
icon: "icons/icon-sns.svg",
|
|
135
165
|
},
|
|
136
166
|
[Source.solana]: {
|
|
137
167
|
name: "Solana",
|
|
138
168
|
description: "High-performance blockchain",
|
|
169
|
+
icon: "icons/icon-solana.svg",
|
|
139
170
|
},
|
|
140
171
|
[Source.soundxyz]: {
|
|
141
172
|
name: "Sound.xyz",
|
|
142
173
|
description: "Decentralized audio platform",
|
|
174
|
+
icon: "icons/icon-soundxyz.svg",
|
|
143
175
|
},
|
|
144
176
|
[Source.space_id]: {
|
|
145
177
|
name: "SpaceID",
|
|
146
178
|
description: "Multi-chain name service",
|
|
179
|
+
icon: "icons/icon-spaceid.svg",
|
|
147
180
|
},
|
|
148
181
|
[Source.talentprotocol]: {
|
|
149
182
|
name: "Talent",
|
|
150
183
|
description: "Decentralized onchain passport",
|
|
184
|
+
icon: "icons/icon-talent.svg",
|
|
151
185
|
},
|
|
152
186
|
[Source.tally]: {
|
|
153
187
|
name: "Tally",
|
|
154
188
|
description: "Launch, manage, and grow the value of your token",
|
|
189
|
+
icon: "icons/icon-tally.svg",
|
|
155
190
|
},
|
|
156
191
|
[Source.twitter]: {
|
|
157
192
|
name: "Twitter (X)",
|
|
158
193
|
description: "Twitter (X) social platform",
|
|
194
|
+
icon: "icons/icon-twitter.svg",
|
|
159
195
|
},
|
|
160
196
|
[Source.unstoppabledomains]: {
|
|
161
197
|
name: "Unstoppable Domains",
|
|
162
198
|
description: "Blockchain domain name provider",
|
|
199
|
+
icon: "icons/icon-unstoppabledomains.svg",
|
|
163
200
|
},
|
|
164
201
|
[Source.zora]: {
|
|
165
202
|
name: "Zora",
|
|
166
203
|
description: "A social network where every post is a coin",
|
|
204
|
+
icon: "icons/icon-zora.svg",
|
|
167
205
|
},
|
|
168
206
|
};
|
|
169
207
|
/**
|