@asteby/metacore-runtime-react 15.0.0 → 16.0.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 +27 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @asteby/metacore-runtime-react
|
|
2
2
|
|
|
3
|
+
## 16.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5f864d9: Make declarative dynamic-table option badges and relation chips feel alive.
|
|
8
|
+
|
|
9
|
+
Options/select/status badges that ship without an explicit `color` from the
|
|
10
|
+
backend now get a deterministic, cohesive color derived from the option value
|
|
11
|
+
(fallback label) instead of rendering as dead gray text. Same value always maps
|
|
12
|
+
to the same hue, and equal words share a color.
|
|
13
|
+
- `@asteby/metacore-ui/lib` adds `optionColor(key)` (curated 16-hue Tailwind-500
|
|
14
|
+
palette, FNV-1a hash, light/dark safe), plus `optionColorBadgeStyles`,
|
|
15
|
+
`relationChipStyles`, and the exported `OPTION_PALETTE`.
|
|
16
|
+
- `OptionBadge` uses the explicit `color` when present, otherwise derives one via
|
|
17
|
+
`optionColor`, and renders the option's lucide `icon` before the label.
|
|
18
|
+
- `RelationCell` (resolved FK chips for category/brand/supplier/…) now gets a
|
|
19
|
+
subtle deterministic color keyed on the related label — kept lighter than enum
|
|
20
|
+
badges (soft tint, no heavy fill) so the two remain distinguishable.
|
|
21
|
+
|
|
22
|
+
All colors come from hex-derived inline styles, so they render correctly
|
|
23
|
+
regardless of the host's tailwind safelist.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [5f864d9]
|
|
28
|
+
- @asteby/metacore-ui@2.4.0
|
|
29
|
+
|
|
3
30
|
## 15.0.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asteby/metacore-runtime-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "React runtime for metacore hosts — renders addon contributions dynamically",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"date-fns": ">=3",
|
|
35
35
|
"react-day-picker": ">=8",
|
|
36
36
|
"@asteby/metacore-sdk": "^3.1.0",
|
|
37
|
-
"@asteby/metacore-ui": "^2.
|
|
37
|
+
"@asteby/metacore-ui": "^2.4.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@tanstack/react-router": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vitest": "^4.0.0",
|
|
63
63
|
"zustand": "^5.0.0",
|
|
64
64
|
"@asteby/metacore-sdk": "3.1.0",
|
|
65
|
-
"@asteby/metacore-ui": "2.
|
|
65
|
+
"@asteby/metacore-ui": "2.4.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsc -p tsconfig.json",
|