web3bio-profile-kit 0.2.5 → 0.2.8

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.
@@ -114,6 +114,11 @@ const SOURCE_DATA = {
114
114
  description: "L2 based on ZK",
115
115
  icon: "icons/icon-linea.svg",
116
116
  },
117
+ [source.Source.magiceden]: {
118
+ name: "Magic Eden",
119
+ description: "Web3 NFT marketplace",
120
+ icon: "icons/icon-magiceden.svg",
121
+ },
117
122
  [source.Source.metopia]: {
118
123
  name: "Metopia",
119
124
  description: "Web3 identity & learning platform",
@@ -144,6 +149,11 @@ const SOURCE_DATA = {
144
149
  description: "NFT marketplace",
145
150
  icon: "icons/icon-opensea.svg",
146
151
  },
152
+ [source.Source.opinion]: {
153
+ name: "Opinion",
154
+ description: "High-performance prediction exchange",
155
+ icon: "icons/icon-opinion.svg",
156
+ },
147
157
  [source.Source.paragraph]: {
148
158
  name: "Paragraph",
149
159
  description: "Decentralized publishing protocol",
@@ -163,6 +173,10 @@ const SOURCE_DATA = {
163
173
  name: "0xPPL",
164
174
  description: "Web3 social platform",
165
175
  },
176
+ [source.Source.predictfun]: {
177
+ name: "Predict.fun",
178
+ description: "The BNB-native prediction market",
179
+ },
166
180
  [source.Source.privy]: {
167
181
  name: "Privy",
168
182
  description: "Wallet infrastructure",
@@ -254,7 +268,7 @@ const SOURCE_DATA = {
254
268
  * @returns Source metadata including name and description
255
269
  * @public
256
270
  */
257
- const getSource = (sourceKey) => SOURCE_DATA[sourceKey] || { name: sourceKey, description: "Unknown source" };
271
+ const getSource = (sourceKey) => { var _a; return (_a = SOURCE_DATA[sourceKey]) !== null && _a !== void 0 ? _a : { name: sourceKey, description: "Unknown source" }; };
258
272
 
259
273
  exports.SOURCE_DATA = SOURCE_DATA;
260
274
  exports.getSource = getSource;
@@ -112,6 +112,11 @@ const SOURCE_DATA = {
112
112
  description: "L2 based on ZK",
113
113
  icon: "icons/icon-linea.svg",
114
114
  },
115
+ [Source.magiceden]: {
116
+ name: "Magic Eden",
117
+ description: "Web3 NFT marketplace",
118
+ icon: "icons/icon-magiceden.svg",
119
+ },
115
120
  [Source.metopia]: {
116
121
  name: "Metopia",
117
122
  description: "Web3 identity & learning platform",
@@ -142,6 +147,11 @@ const SOURCE_DATA = {
142
147
  description: "NFT marketplace",
143
148
  icon: "icons/icon-opensea.svg",
144
149
  },
150
+ [Source.opinion]: {
151
+ name: "Opinion",
152
+ description: "High-performance prediction exchange",
153
+ icon: "icons/icon-opinion.svg",
154
+ },
145
155
  [Source.paragraph]: {
146
156
  name: "Paragraph",
147
157
  description: "Decentralized publishing protocol",
@@ -161,6 +171,10 @@ const SOURCE_DATA = {
161
171
  name: "0xPPL",
162
172
  description: "Web3 social platform",
163
173
  },
174
+ [Source.predictfun]: {
175
+ name: "Predict.fun",
176
+ description: "The BNB-native prediction market",
177
+ },
164
178
  [Source.privy]: {
165
179
  name: "Privy",
166
180
  description: "Wallet infrastructure",
@@ -252,6 +266,6 @@ const SOURCE_DATA = {
252
266
  * @returns Source metadata including name and description
253
267
  * @public
254
268
  */
255
- const getSource = (sourceKey) => SOURCE_DATA[sourceKey] || { name: sourceKey, description: "Unknown source" };
269
+ const getSource = (sourceKey) => { var _a; return (_a = SOURCE_DATA[sourceKey]) !== null && _a !== void 0 ? _a : { name: sourceKey, description: "Unknown source" }; };
256
270
 
257
271
  export { SOURCE_DATA, getSource };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "web3bio-profile-kit",
3
- "version": "0.2.5",
3
+ "version": "0.2.8",
4
4
  "description": "React hooks for querying ENS, Farcaster, Lens and Web3 universal profiles",
5
5
  "author": "web3bio",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "type": "module",
9
- "main": "dist/index.js",
10
- "module": "dist/index.esm.js",
9
+ "main": "dist/index.cjs",
10
+ "module": "dist/index.js",
11
11
  "types": "dist/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
@@ -68,7 +68,8 @@
68
68
  },
69
69
  "scripts": {
70
70
  "build": "rimraf dist && rollup -c",
71
- "test": "react-scripts test --watchAll=false",
71
+ "test": "vitest run",
72
+ "test:watch": "vitest",
72
73
  "prepublishOnly": "pnpm run build"
73
74
  },
74
75
  "peerDependencies": {
@@ -80,21 +81,19 @@
80
81
  "@rollup/plugin-commonjs": "^25.0.8",
81
82
  "@rollup/plugin-node-resolve": "^15.3.1",
82
83
  "@rollup/plugin-typescript": "^11.1.6",
83
- "@testing-library/dom": "^10.4.0",
84
- "@testing-library/jest-dom": "^6.6.3",
85
- "@testing-library/react": "^16.3.0",
86
- "@testing-library/user-event": "^13.5.0",
87
- "@types/node": "^22.15.24",
84
+ "@testing-library/jest-dom": "^6.9.1",
85
+ "@testing-library/react": "^16.3.2",
86
+ "@types/node": "^22.19.17",
88
87
  "@types/react": "^18.3.23",
89
- "dotenv": "^16.5.0",
88
+ "@types/react-dom": "^18.3.7",
89
+ "@tanstack/react-query": "^5.100.5",
90
+ "dotenv": "^16.6.1",
91
+ "jsdom": "^26.1.0",
90
92
  "react": "^18.3.1",
91
93
  "react-dom": "^18.3.1",
92
- "react-scripts": "5.0.1",
93
94
  "rimraf": "^5.0.10",
94
95
  "rollup": "^3.29.5",
95
- "rollup-plugin-dts": "^5.3.1",
96
- "rollup-plugin-peer-deps-external": "^2.2.4",
97
- "typescript": "^5.8.3",
98
- "@tanstack/react-query": "^5.79.2"
96
+ "typescript": "^5.9.3",
97
+ "vitest": "^3.2.4"
99
98
  }
100
99
  }