@asteby/metacore-runtime-react 20.1.1 → 20.1.2
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 +12 -0
- package/dist/dynamic-kanban.js +2 -2
- package/package.json +4 -4
- package/src/dynamic-kanban.tsx +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @asteby/metacore-runtime-react
|
|
2
2
|
|
|
3
|
+
## 20.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3d0a624: fix(kanban): wrap long card field values to 2 lines + ellipsis instead of a 1-line hard cut
|
|
8
|
+
|
|
9
|
+
Kanban card fields rendered each value on a single `truncate` line, so a long
|
|
10
|
+
text field — e.g. a github Issue whose title lands in a _field_ because the first
|
|
11
|
+
text column (`repo`) is picked as the card title — was hard-cut mid-line and lost
|
|
12
|
+
most of its content. Field values now `line-clamp-2 break-words`, so they grow to
|
|
13
|
+
two lines and then ellipsis cleanly, matching the title's treatment.
|
|
14
|
+
|
|
3
15
|
## 20.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/dynamic-kanban.js
CHANGED
|
@@ -338,9 +338,9 @@ function KanbanCard({ card, titleCol, fieldCols, actions, locale, timeZone, curr
|
|
|
338
338
|
onPointerDown: (e) => e.stopPropagation(), onClick: (e) => e.stopPropagation(), children: _jsx(MoreHorizontal, { className: "h-4 w-4" }) }) }), _jsx(DropdownMenuContent, { align: "end", onClick: (e) => e.stopPropagation(), children: visibleActions.map((a) => (_jsxs(DropdownMenuItem, { onClick: (e) => {
|
|
339
339
|
e.stopPropagation();
|
|
340
340
|
onAction(a, card);
|
|
341
|
-
}, children: [_jsx(DynamicIcon, { name: a.icon || 'Zap', className: "mr-2 h-4 w-4" }), a.label] }, a.key))) })] }))] }), fieldCols.map((col) => (_jsxs("div", { className: "flex min-w-0 items-
|
|
341
|
+
}, children: [_jsx(DynamicIcon, { name: a.icon || 'Zap', className: "mr-2 h-4 w-4" }), a.label] }, a.key))) })] }))] }), fieldCols.map((col) => (_jsxs("div", { className: "flex min-w-0 items-start gap-1.5 text-xs text-muted-foreground", children: [_jsxs("span", { className: "shrink-0 opacity-70", children: [col.label, ":"] }), _jsx("span", { className: "line-clamp-2 min-w-0 break-words", children: _jsx(ActivityValueRenderer, { value: card[col.key], col: col, locale: locale, timeZone: timeZone, currency: currency }) })] }, col.key)))] }) }));
|
|
342
342
|
}
|
|
343
343
|
// Static preview rendered inside the DragOverlay (no dnd hooks, no menu).
|
|
344
344
|
function CardPreview({ card, titleCol, fieldCols, locale, timeZone, currency, }) {
|
|
345
|
-
return (_jsx(Card, { className: "w-72 cursor-grabbing border-primary/40 shadow-lg", children: _jsxs(CardContent, { className: "space-y-1.5 p-3", children: [_jsx("div", { className: "line-clamp-2 break-words text-sm font-medium leading-snug", children: titleCol ? (_jsx(ActivityValueRenderer, { value: card[titleCol.key], col: titleCol, locale: locale, timeZone: timeZone, currency: currency })) : (String(card.id)) }), fieldCols.map((col) => (_jsxs("div", { className: "flex min-w-0 items-
|
|
345
|
+
return (_jsx(Card, { className: "w-72 cursor-grabbing border-primary/40 shadow-lg", children: _jsxs(CardContent, { className: "space-y-1.5 p-3", children: [_jsx("div", { className: "line-clamp-2 break-words text-sm font-medium leading-snug", children: titleCol ? (_jsx(ActivityValueRenderer, { value: card[titleCol.key], col: titleCol, locale: locale, timeZone: timeZone, currency: currency })) : (String(card.id)) }), fieldCols.map((col) => (_jsxs("div", { className: "flex min-w-0 items-start gap-1.5 text-xs text-muted-foreground", children: [_jsxs("span", { className: "shrink-0 opacity-70", children: [col.label, ":"] }), _jsx("span", { className: "line-clamp-2 min-w-0 break-words", children: _jsx(ActivityValueRenderer, { value: card[col.key], col: col, locale: locale, timeZone: timeZone, currency: currency }) })] }, col.key)))] }) }));
|
|
346
346
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asteby/metacore-runtime-react",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.2",
|
|
4
4
|
"description": "React runtime for metacore hosts — renders addon contributions dynamically",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"sonner": ">=1.7",
|
|
39
39
|
"zustand": ">=5",
|
|
40
40
|
"@asteby/metacore-sdk": "^3.2.0",
|
|
41
|
-
"@asteby/metacore-ui": "^2.6.
|
|
41
|
+
"@asteby/metacore-ui": "^2.6.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@tanstack/react-router": {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"typescript": "^6.0.0",
|
|
68
68
|
"vitest": "^4.0.0",
|
|
69
69
|
"zustand": "^5.0.0",
|
|
70
|
-
"@asteby/metacore-
|
|
71
|
-
"@asteby/metacore-
|
|
70
|
+
"@asteby/metacore-ui": "2.6.2",
|
|
71
|
+
"@asteby/metacore-sdk": "3.2.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "tsc -p tsconfig.json",
|
package/src/dynamic-kanban.tsx
CHANGED
|
@@ -705,10 +705,10 @@ function KanbanCard({
|
|
|
705
705
|
{fieldCols.map((col) => (
|
|
706
706
|
<div
|
|
707
707
|
key={col.key}
|
|
708
|
-
className="flex min-w-0 items-
|
|
708
|
+
className="flex min-w-0 items-start gap-1.5 text-xs text-muted-foreground"
|
|
709
709
|
>
|
|
710
710
|
<span className="shrink-0 opacity-70">{col.label}:</span>
|
|
711
|
-
<span className="min-w-0
|
|
711
|
+
<span className="line-clamp-2 min-w-0 break-words">
|
|
712
712
|
<ActivityValueRenderer
|
|
713
713
|
value={card[col.key]}
|
|
714
714
|
col={col}
|
|
@@ -752,10 +752,10 @@ function CardPreview({
|
|
|
752
752
|
{fieldCols.map((col) => (
|
|
753
753
|
<div
|
|
754
754
|
key={col.key}
|
|
755
|
-
className="flex min-w-0 items-
|
|
755
|
+
className="flex min-w-0 items-start gap-1.5 text-xs text-muted-foreground"
|
|
756
756
|
>
|
|
757
757
|
<span className="shrink-0 opacity-70">{col.label}:</span>
|
|
758
|
-
<span className="min-w-0
|
|
758
|
+
<span className="line-clamp-2 min-w-0 break-words">
|
|
759
759
|
<ActivityValueRenderer
|
|
760
760
|
value={card[col.key]}
|
|
761
761
|
col={col}
|