web3bio-profile-kit 0.1.13 → 0.1.14

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.
@@ -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";
@@ -66,6 +66,7 @@ export declare enum Platform {
66
66
  paragraph = "paragraph",
67
67
  philand = "philand",
68
68
  poap = "poap",
69
+ polymarket = "polymarket",
69
70
  pumpfun = "pumpfun",
70
71
  reddit = "reddit",
71
72
  scroll = "scroll",
@@ -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";
@@ -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.GENOME, platform.Platform.genome],
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],
@@ -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.GENOME, Platform.genome],
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],
@@ -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
  {
@@ -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
  {
@@ -12,8 +12,7 @@ const REGEX = {
12
12
  LENS: /^.+\.lens$/i,
13
13
  CLUSTER: /^[\w-]+\/[\w-]+$/,
14
14
  SPACE_ID: /^.+\.(?:bnb|arb)$/i,
15
- GRAVITY: /^.+\.g$/,
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,
@@ -10,8 +10,7 @@ export declare const REGEX: {
10
10
  LENS: RegExp;
11
11
  CLUSTER: RegExp;
12
12
  SPACE_ID: RegExp;
13
- GRAVITY: RegExp;
14
- GENOME: RegExp;
13
+ SEEKERID: RegExp;
15
14
  UNSTOPPABLE_DOMAINS: RegExp;
16
15
  DOTBIT: RegExp;
17
16
  SNS: RegExp;
@@ -10,8 +10,7 @@ const REGEX = {
10
10
  LENS: /^.+\.lens$/i,
11
11
  CLUSTER: /^[\w-]+\/[\w-]+$/,
12
12
  SPACE_ID: /^.+\.(?:bnb|arb)$/i,
13
- GRAVITY: /^.+\.g$/,
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web3bio-profile-kit",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "React hooks for querying ENS, Farcaster, Lens and Web3 universal profiles",
5
5
  "author": "web3bio",
6
6
  "license": "MIT",