web3bio-profile-kit 0.1.13 → 0.1.15
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/platform.cjs +1 -0
- package/dist/types/platform.d.ts +1 -0
- package/dist/types/platform.js +1 -0
- package/dist/types/source.cjs +3 -0
- package/dist/types/source.d.ts +3 -0
- package/dist/types/source.js +3 -0
- package/dist/utils/helpers.cjs +1 -2
- package/dist/utils/helpers.js +1 -2
- package/dist/utils/platform.cjs +10 -0
- package/dist/utils/platform.js +10 -0
- package/dist/utils/regex.cjs +2 -3
- package/dist/utils/regex.d.ts +1 -2
- package/dist/utils/regex.js +2 -3
- package/dist/utils/source.cjs +13 -1
- package/dist/utils/source.js +13 -1
- package/package.json +1 -1
package/dist/types/platform.cjs
CHANGED
|
@@ -69,6 +69,7 @@ exports.Platform = void 0;
|
|
|
69
69
|
Platform["paragraph"] = "paragraph";
|
|
70
70
|
Platform["philand"] = "philand";
|
|
71
71
|
Platform["poap"] = "poap";
|
|
72
|
+
Platform["polymarket"] = "polymarket";
|
|
72
73
|
Platform["pumpfun"] = "pumpfun";
|
|
73
74
|
Platform["reddit"] = "reddit";
|
|
74
75
|
Platform["scroll"] = "scroll";
|
package/dist/types/platform.d.ts
CHANGED
package/dist/types/platform.js
CHANGED
|
@@ -67,6 +67,7 @@ var Platform;
|
|
|
67
67
|
Platform["paragraph"] = "paragraph";
|
|
68
68
|
Platform["philand"] = "philand";
|
|
69
69
|
Platform["poap"] = "poap";
|
|
70
|
+
Platform["polymarket"] = "polymarket";
|
|
70
71
|
Platform["pumpfun"] = "pumpfun";
|
|
71
72
|
Platform["reddit"] = "reddit";
|
|
72
73
|
Platform["scroll"] = "scroll";
|
package/dist/types/source.cjs
CHANGED
|
@@ -15,6 +15,7 @@ exports.Source = void 0;
|
|
|
15
15
|
Source["dotbit"] = "dotbit";
|
|
16
16
|
Source["ens"] = "ens";
|
|
17
17
|
Source["ethereum"] = "ethereum";
|
|
18
|
+
Source["exchange_art"] = "exchange_art";
|
|
18
19
|
Source["farcaster"] = "farcaster";
|
|
19
20
|
Source["firefly"] = "firefly";
|
|
20
21
|
Source["foundation"] = "foundation";
|
|
@@ -25,6 +26,7 @@ exports.Source = void 0;
|
|
|
25
26
|
Source["keybase"] = "keybase";
|
|
26
27
|
Source["lens"] = "lens";
|
|
27
28
|
Source["linea"] = "linea";
|
|
29
|
+
Source["metopia"] = "metopia";
|
|
28
30
|
Source["mirror"] = "mirror";
|
|
29
31
|
Source["nextid"] = "nextid";
|
|
30
32
|
Source["nftd"] = "nftd";
|
|
@@ -33,6 +35,7 @@ exports.Source = void 0;
|
|
|
33
35
|
Source["paragraph"] = "paragraph";
|
|
34
36
|
Source["particle"] = "particle";
|
|
35
37
|
Source["rarible"] = "rarible";
|
|
38
|
+
Source["rey"] = "rey";
|
|
36
39
|
Source["rss3"] = "rss3";
|
|
37
40
|
Source["seekerid"] = "seekerid";
|
|
38
41
|
Source["sns"] = "sns";
|
package/dist/types/source.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare enum Source {
|
|
|
12
12
|
dotbit = "dotbit",
|
|
13
13
|
ens = "ens",
|
|
14
14
|
ethereum = "ethereum",
|
|
15
|
+
exchange_art = "exchange_art",
|
|
15
16
|
farcaster = "farcaster",
|
|
16
17
|
firefly = "firefly",
|
|
17
18
|
foundation = "foundation",
|
|
@@ -22,6 +23,7 @@ export declare enum Source {
|
|
|
22
23
|
keybase = "keybase",
|
|
23
24
|
lens = "lens",
|
|
24
25
|
linea = "linea",
|
|
26
|
+
metopia = "metopia",
|
|
25
27
|
mirror = "mirror",
|
|
26
28
|
nextid = "nextid",
|
|
27
29
|
nftd = "nftd",
|
|
@@ -30,6 +32,7 @@ export declare enum Source {
|
|
|
30
32
|
paragraph = "paragraph",
|
|
31
33
|
particle = "particle",
|
|
32
34
|
rarible = "rarible",
|
|
35
|
+
rey = "rey",
|
|
33
36
|
rss3 = "rss3",
|
|
34
37
|
seekerid = "seekerid",
|
|
35
38
|
sns = "sns",
|
package/dist/types/source.js
CHANGED
|
@@ -13,6 +13,7 @@ var Source;
|
|
|
13
13
|
Source["dotbit"] = "dotbit";
|
|
14
14
|
Source["ens"] = "ens";
|
|
15
15
|
Source["ethereum"] = "ethereum";
|
|
16
|
+
Source["exchange_art"] = "exchange_art";
|
|
16
17
|
Source["farcaster"] = "farcaster";
|
|
17
18
|
Source["firefly"] = "firefly";
|
|
18
19
|
Source["foundation"] = "foundation";
|
|
@@ -23,6 +24,7 @@ var Source;
|
|
|
23
24
|
Source["keybase"] = "keybase";
|
|
24
25
|
Source["lens"] = "lens";
|
|
25
26
|
Source["linea"] = "linea";
|
|
27
|
+
Source["metopia"] = "metopia";
|
|
26
28
|
Source["mirror"] = "mirror";
|
|
27
29
|
Source["nextid"] = "nextid";
|
|
28
30
|
Source["nftd"] = "nftd";
|
|
@@ -31,6 +33,7 @@ var Source;
|
|
|
31
33
|
Source["paragraph"] = "paragraph";
|
|
32
34
|
Source["particle"] = "particle";
|
|
33
35
|
Source["rarible"] = "rarible";
|
|
36
|
+
Source["rey"] = "rey";
|
|
34
37
|
Source["rss3"] = "rss3";
|
|
35
38
|
Source["seekerid"] = "seekerid";
|
|
36
39
|
Source["sns"] = "sns";
|
package/dist/utils/helpers.cjs
CHANGED
|
@@ -125,10 +125,9 @@ const platformMap = new Map([
|
|
|
125
125
|
[regex.REGEX.LENS, platform.Platform.lens],
|
|
126
126
|
[regex.REGEX.UNSTOPPABLE_DOMAINS, platform.Platform.unstoppableDomains],
|
|
127
127
|
[regex.REGEX.SPACE_ID, platform.Platform.space_id],
|
|
128
|
-
[regex.REGEX.GRAVITY, platform.Platform.gravity],
|
|
129
128
|
[regex.REGEX.DOTBIT, platform.Platform.dotbit],
|
|
130
129
|
[regex.REGEX.SNS, platform.Platform.sns],
|
|
131
|
-
[regex.REGEX.
|
|
130
|
+
[regex.REGEX.SEEKERID, platform.Platform.seekerid],
|
|
132
131
|
[regex.REGEX.BTC_ADDRESS, platform.Platform.bitcoin],
|
|
133
132
|
[regex.REGEX.SOLANA_ADDRESS, platform.Platform.solana],
|
|
134
133
|
[regex.REGEX.FARCASTER, platform.Platform.farcaster],
|
package/dist/utils/helpers.js
CHANGED
|
@@ -123,10 +123,9 @@ const platformMap = new Map([
|
|
|
123
123
|
[REGEX.LENS, Platform.lens],
|
|
124
124
|
[REGEX.UNSTOPPABLE_DOMAINS, Platform.unstoppableDomains],
|
|
125
125
|
[REGEX.SPACE_ID, Platform.space_id],
|
|
126
|
-
[REGEX.GRAVITY, Platform.gravity],
|
|
127
126
|
[REGEX.DOTBIT, Platform.dotbit],
|
|
128
127
|
[REGEX.SNS, Platform.sns],
|
|
129
|
-
[REGEX.
|
|
128
|
+
[REGEX.SEEKERID, Platform.seekerid],
|
|
130
129
|
[REGEX.BTC_ADDRESS, Platform.bitcoin],
|
|
131
130
|
[REGEX.SOLANA_ADDRESS, Platform.solana],
|
|
132
131
|
[REGEX.FARCASTER, Platform.farcaster],
|
package/dist/utils/platform.cjs
CHANGED
|
@@ -674,6 +674,16 @@ const PLATFORM_DATA = new Map([
|
|
|
674
674
|
system: platform.PlatformSystem.web3,
|
|
675
675
|
},
|
|
676
676
|
],
|
|
677
|
+
[
|
|
678
|
+
platform.Platform.polymarket,
|
|
679
|
+
{
|
|
680
|
+
color: "#1652f0",
|
|
681
|
+
icon: "icons/icon-polymarket.svg",
|
|
682
|
+
label: "Polymarket",
|
|
683
|
+
urlPrefix: "https://polymarket.com/profile/",
|
|
684
|
+
system: platform.PlatformSystem.web3,
|
|
685
|
+
},
|
|
686
|
+
],
|
|
677
687
|
[
|
|
678
688
|
platform.Platform.pumpfun,
|
|
679
689
|
{
|
package/dist/utils/platform.js
CHANGED
|
@@ -672,6 +672,16 @@ const PLATFORM_DATA = new Map([
|
|
|
672
672
|
system: PlatformSystem.web3,
|
|
673
673
|
},
|
|
674
674
|
],
|
|
675
|
+
[
|
|
676
|
+
Platform.polymarket,
|
|
677
|
+
{
|
|
678
|
+
color: "#1652f0",
|
|
679
|
+
icon: "icons/icon-polymarket.svg",
|
|
680
|
+
label: "Polymarket",
|
|
681
|
+
urlPrefix: "https://polymarket.com/profile/",
|
|
682
|
+
system: PlatformSystem.web3,
|
|
683
|
+
},
|
|
684
|
+
],
|
|
675
685
|
[
|
|
676
686
|
Platform.pumpfun,
|
|
677
687
|
{
|
package/dist/utils/regex.cjs
CHANGED
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
const REGEX = {
|
|
8
|
-
ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|club|box|uni\.eth|cb\.id)$/i,
|
|
8
|
+
ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|locker|club|box|uni\.eth|cb\.id|gemini\.eth)$/i,
|
|
9
9
|
BASENAMES: /^.+\.base(\.eth)?$/i,
|
|
10
10
|
LINEA: /^.+\.linea(\.eth)?$/i,
|
|
11
11
|
FARCASTER: /^(?:[A-Za-z0-9_-]{1,61}(?:\.(?:eth|farcaster|fcast\.id|farcaster\.eth))?|farcaster,#\d+)$/i,
|
|
12
12
|
LENS: /^.+\.lens$/i,
|
|
13
13
|
CLUSTER: /^[\w-]+\/[\w-]+$/,
|
|
14
14
|
SPACE_ID: /^.+\.(?:bnb|arb)$/i,
|
|
15
|
-
|
|
16
|
-
GENOME: /^.+\.gno$/i,
|
|
15
|
+
SEEKERID: /^.+\.skr$/i,
|
|
17
16
|
UNSTOPPABLE_DOMAINS: /^.+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
|
|
18
17
|
DOTBIT: /^.+\.bit$/i,
|
|
19
18
|
SNS: /^.+\.sol$/i,
|
package/dist/utils/regex.d.ts
CHANGED
package/dist/utils/regex.js
CHANGED
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
const REGEX = {
|
|
6
|
-
ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|club|box|uni\.eth|cb\.id)$/i,
|
|
6
|
+
ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|locker|club|box|uni\.eth|cb\.id|gemini\.eth)$/i,
|
|
7
7
|
BASENAMES: /^.+\.base(\.eth)?$/i,
|
|
8
8
|
LINEA: /^.+\.linea(\.eth)?$/i,
|
|
9
9
|
FARCASTER: /^(?:[A-Za-z0-9_-]{1,61}(?:\.(?:eth|farcaster|fcast\.id|farcaster\.eth))?|farcaster,#\d+)$/i,
|
|
10
10
|
LENS: /^.+\.lens$/i,
|
|
11
11
|
CLUSTER: /^[\w-]+\/[\w-]+$/,
|
|
12
12
|
SPACE_ID: /^.+\.(?:bnb|arb)$/i,
|
|
13
|
-
|
|
14
|
-
GENOME: /^.+\.gno$/i,
|
|
13
|
+
SEEKERID: /^.+\.skr$/i,
|
|
15
14
|
UNSTOPPABLE_DOMAINS: /^.+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
|
|
16
15
|
DOTBIT: /^.+\.bit$/i,
|
|
17
16
|
SNS: /^.+\.sol$/i,
|
package/dist/utils/source.cjs
CHANGED
|
@@ -25,7 +25,7 @@ const SOURCE_DATA = {
|
|
|
25
25
|
},
|
|
26
26
|
[source.Source.dentity]: {
|
|
27
27
|
name: "Dentity",
|
|
28
|
-
description: "Digital
|
|
28
|
+
description: "Digital credentials",
|
|
29
29
|
},
|
|
30
30
|
[source.Source.dotbit]: {
|
|
31
31
|
name: ".bit",
|
|
@@ -39,6 +39,10 @@ const SOURCE_DATA = {
|
|
|
39
39
|
name: "Ethereum",
|
|
40
40
|
description: "Ethereum",
|
|
41
41
|
},
|
|
42
|
+
[source.Source.exchange_art]: {
|
|
43
|
+
name: "Exchange Art",
|
|
44
|
+
description: "A digital art marketplace",
|
|
45
|
+
},
|
|
42
46
|
[source.Source.farcaster]: {
|
|
43
47
|
name: "Farcaster",
|
|
44
48
|
description: "Decentralized social network protocol",
|
|
@@ -79,6 +83,10 @@ const SOURCE_DATA = {
|
|
|
79
83
|
name: "Linea",
|
|
80
84
|
description: "L2 based on ZK",
|
|
81
85
|
},
|
|
86
|
+
[source.Source.metopia]: {
|
|
87
|
+
name: "Metopia",
|
|
88
|
+
description: "Web3 identity & learning platform",
|
|
89
|
+
},
|
|
82
90
|
[source.Source.mirror]: {
|
|
83
91
|
name: "Mirror",
|
|
84
92
|
description: "Decentralized publishing protocol",
|
|
@@ -111,6 +119,10 @@ const SOURCE_DATA = {
|
|
|
111
119
|
name: "Rarible",
|
|
112
120
|
description: "NFT marketplace",
|
|
113
121
|
},
|
|
122
|
+
[source.Source.rey]: {
|
|
123
|
+
name: "Rey",
|
|
124
|
+
description: "The world's attention marketplace",
|
|
125
|
+
},
|
|
114
126
|
[source.Source.rss3]: {
|
|
115
127
|
name: "RSS3",
|
|
116
128
|
description: "Open information syndication protocol",
|
package/dist/utils/source.js
CHANGED
|
@@ -23,7 +23,7 @@ const SOURCE_DATA = {
|
|
|
23
23
|
},
|
|
24
24
|
[Source.dentity]: {
|
|
25
25
|
name: "Dentity",
|
|
26
|
-
description: "Digital
|
|
26
|
+
description: "Digital credentials",
|
|
27
27
|
},
|
|
28
28
|
[Source.dotbit]: {
|
|
29
29
|
name: ".bit",
|
|
@@ -37,6 +37,10 @@ const SOURCE_DATA = {
|
|
|
37
37
|
name: "Ethereum",
|
|
38
38
|
description: "Ethereum",
|
|
39
39
|
},
|
|
40
|
+
[Source.exchange_art]: {
|
|
41
|
+
name: "Exchange Art",
|
|
42
|
+
description: "A digital art marketplace",
|
|
43
|
+
},
|
|
40
44
|
[Source.farcaster]: {
|
|
41
45
|
name: "Farcaster",
|
|
42
46
|
description: "Decentralized social network protocol",
|
|
@@ -77,6 +81,10 @@ const SOURCE_DATA = {
|
|
|
77
81
|
name: "Linea",
|
|
78
82
|
description: "L2 based on ZK",
|
|
79
83
|
},
|
|
84
|
+
[Source.metopia]: {
|
|
85
|
+
name: "Metopia",
|
|
86
|
+
description: "Web3 identity & learning platform",
|
|
87
|
+
},
|
|
80
88
|
[Source.mirror]: {
|
|
81
89
|
name: "Mirror",
|
|
82
90
|
description: "Decentralized publishing protocol",
|
|
@@ -109,6 +117,10 @@ const SOURCE_DATA = {
|
|
|
109
117
|
name: "Rarible",
|
|
110
118
|
description: "NFT marketplace",
|
|
111
119
|
},
|
|
120
|
+
[Source.rey]: {
|
|
121
|
+
name: "Rey",
|
|
122
|
+
description: "The world's attention marketplace",
|
|
123
|
+
},
|
|
112
124
|
[Source.rss3]: {
|
|
113
125
|
name: "RSS3",
|
|
114
126
|
description: "Open information syndication protocol",
|