@asteby/metacore-runtime-react 27.1.0 → 27.1.1
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 +11 -0
- package/dist/display-value.js +1 -1
- package/package.json +4 -4
- package/src/display-value.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @asteby/metacore-runtime-react
|
|
2
2
|
|
|
3
|
+
## 27.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 33e0e3b: Avatares de referencia con esquina visible: `rounded-sm` (2px) a 24px se percibe
|
|
8
|
+
como círculo; pasa a `rounded-md` en la inicial (`InitialsAvatar`) y en el thumb
|
|
9
|
+
de imagen (`RelationThumbnail`), para que imagen e inicial lean como cuadrado
|
|
10
|
+
redondeado. `rounded='full'` queda para avatares de persona/marca.
|
|
11
|
+
- Updated dependencies [33e0e3b]
|
|
12
|
+
- @asteby/metacore-ui@2.12.1
|
|
13
|
+
|
|
3
14
|
## 27.1.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/display-value.js
CHANGED
|
@@ -58,7 +58,7 @@ export function statusColorFor(value) {
|
|
|
58
58
|
* an addon-arbitrary Tailwind class never gets dropped by a consuming app's
|
|
59
59
|
* class scan). Rendered inline alongside a label — never alone.
|
|
60
60
|
*/
|
|
61
|
-
export const RelationThumbnail = ({ src, alt, getImageUrl, size = 18 }) => (_jsxs(Avatar, { className: "shrink-0 rounded-
|
|
61
|
+
export const RelationThumbnail = ({ src, alt, getImageUrl, size = 18 }) => (_jsxs(Avatar, { className: "shrink-0 rounded-md ring-1 ring-border/40", style: { width: size, height: size }, children: [_jsx(AvatarImage, { src: getImageUrl ? getImageUrl(src) : src, alt: alt, className: "object-cover" }), _jsx(AvatarFallback, { className: "rounded-md bg-primary/10 text-[8px] font-bold text-primary", children: getInitials(alt) })] }));
|
|
62
62
|
/**
|
|
63
63
|
* Colored option badge — the canonical "pro" pill for a select/status/badge
|
|
64
64
|
* value. Explicit backend `color` wins; otherwise a stable, cohesive color is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asteby/metacore-runtime-react",
|
|
3
|
-
"version": "27.1.
|
|
3
|
+
"version": "27.1.1",
|
|
4
4
|
"description": "React runtime for metacore hosts — renders addon contributions dynamically",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"react-i18next": ">=13",
|
|
38
38
|
"sonner": ">=1.7",
|
|
39
39
|
"zustand": ">=5",
|
|
40
|
-
"@asteby/metacore-
|
|
41
|
-
"@asteby/metacore-
|
|
40
|
+
"@asteby/metacore-ui": "^2.12.1",
|
|
41
|
+
"@asteby/metacore-sdk": "^3.3.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@tanstack/react-router": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vitest": "^4.0.0",
|
|
69
69
|
"zustand": "^5.0.0",
|
|
70
70
|
"@asteby/metacore-sdk": "3.3.0",
|
|
71
|
-
"@asteby/metacore-ui": "2.12.
|
|
71
|
+
"@asteby/metacore-ui": "2.12.1"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "tsc -p tsconfig.json",
|
package/src/display-value.tsx
CHANGED
|
@@ -78,7 +78,7 @@ export const RelationThumbnail: React.FC<{
|
|
|
78
78
|
size?: number
|
|
79
79
|
}> = ({ src, alt, getImageUrl, size = 18 }) => (
|
|
80
80
|
<Avatar
|
|
81
|
-
className="shrink-0 rounded-
|
|
81
|
+
className="shrink-0 rounded-md ring-1 ring-border/40"
|
|
82
82
|
style={{ width: size, height: size }}
|
|
83
83
|
>
|
|
84
84
|
<AvatarImage
|
|
@@ -86,7 +86,7 @@ export const RelationThumbnail: React.FC<{
|
|
|
86
86
|
alt={alt}
|
|
87
87
|
className="object-cover"
|
|
88
88
|
/>
|
|
89
|
-
<AvatarFallback className="rounded-
|
|
89
|
+
<AvatarFallback className="rounded-md bg-primary/10 text-[8px] font-bold text-primary">
|
|
90
90
|
{getInitials(alt)}
|
|
91
91
|
</AvatarFallback>
|
|
92
92
|
</Avatar>
|