@exxatdesignux/ui 0.4.1 → 0.4.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 +26 -0
- package/dist/components/data-views/hub-table.js +6 -5
- package/dist/components/data-views/hub-table.js.map +1 -1
- package/dist/components/data-views/index.js +6 -5
- package/dist/components/data-views/index.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/data-views/hub-table.tsx +13 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ### `HubTable` — stop warning when the centralized default covers a supported view
|
|
8
|
+
|
|
9
|
+
The dev-time `Missing renderer for supported view …` warning in
|
|
10
|
+
`HubTable` only treated `data-table` as having a built-in fallback,
|
|
11
|
+
even though the same component synthesises centralized defaults for
|
|
12
|
+
`list-with-toolbar` (when the consumer passes `renderListRow`) and
|
|
13
|
+
`board-with-toolbar` (when the consumer passes `renderBoardCard` plus
|
|
14
|
+
`boardGroups`). Every consumer that wired list/board the happy-path
|
|
15
|
+
way saw a spurious console warning every time their hub mounted —
|
|
16
|
+
including the freshly-scaffolded Library hub in `create-exxat-app`,
|
|
17
|
+
where the first thing a new user saw was a repeating
|
|
18
|
+
`[HubTable: Library] Missing renderer for supported view "list"
|
|
19
|
+
(list-with-toolbar)` line, even though the view renders correctly.
|
|
20
|
+
|
|
21
|
+
The warning loop now also skips the two centralized-default cases
|
|
22
|
+
(it still fires for exotic surfaces that genuinely need an explicit
|
|
23
|
+
renderer entry, e.g. Placements' per-phase column-search board, or a
|
|
24
|
+
custom finder body the package doesn't synthesise).
|
|
25
|
+
|
|
26
|
+
No behavior change in production builds (the warning is already gated
|
|
27
|
+
on `process.env.NODE_ENV !== "production"`).
|
|
28
|
+
|
|
3
29
|
## 0.4.1
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -5687,11 +5687,12 @@ function HubTable({
|
|
|
5687
5687
|
for (const v of supportedViewTypes) {
|
|
5688
5688
|
const kind = getDataListViewRenderKind(v);
|
|
5689
5689
|
if (kind === "data-table") continue;
|
|
5690
|
-
if (renderers[kind]
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5690
|
+
if (renderers[kind] != null) continue;
|
|
5691
|
+
if (kind === "list-with-toolbar" && renderListRow != null) continue;
|
|
5692
|
+
if (kind === "board-with-toolbar" && renderBoardCard != null && boardGroups != null) continue;
|
|
5693
|
+
console.warn(
|
|
5694
|
+
`[Exxat DS][HubTable: ${hubLabel}] Missing renderer for supported view "${v}" (${kind}). Add a renderer entry, or remove the view from supportedViewTypes.`
|
|
5695
|
+
);
|
|
5695
5696
|
}
|
|
5696
5697
|
}
|
|
5697
5698
|
const composed = {
|