@adland/react 0.11.1 → 0.12.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @adland/react
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b035828: add displayName for fc profiles
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b035828]
12
+ - @adland/data@0.13.0
13
+
3
14
  ## 0.11.1
4
15
 
5
16
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adland/react",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -33,7 +33,7 @@
33
33
  "@types/react-dom": "^18.3.1",
34
34
  "lucide-react": "0.561.0",
35
35
  "tsup": "^8.0.1",
36
- "@adland/data": "0.12.0"
36
+ "@adland/data": "0.13.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@typescript-eslint/eslint-plugin": "^7.13.1",
@@ -34,9 +34,9 @@ const FarcasterProfileAdContent = ({ data }: { data: FarcasterProfileAd }) => {
34
34
  </div>
35
35
  )}
36
36
  <div className="flex flex-row items-center gap-1">
37
- {profileMetadata?.username ? (
37
+ {profileMetadata?.displayName || profileMetadata?.username ? (
38
38
  <p className="text-sm font-bold text-primary truncate">
39
- @{profileMetadata.username}
39
+ {profileMetadata.displayName || `@${profileMetadata.username}`}
40
40
  </p>
41
41
  ) : (
42
42
  <p className="text-sm font-bold text-primary">FID: {fid}</p>
@@ -47,6 +47,11 @@ const FarcasterProfileAdContent = ({ data }: { data: FarcasterProfileAd }) => {
47
47
  </span>
48
48
  )}
49
49
  </div>
50
+ {profileMetadata?.displayName && profileMetadata?.username && (
51
+ <p className="text-xs text-muted-foreground/80 truncate">
52
+ @{profileMetadata.username}
53
+ </p>
54
+ )}
50
55
  {profileMetadata?.bio ? (
51
56
  <p className="text-xs text-muted-foreground/80 line-clamp-1">
52
57
  {profileMetadata.bio}