@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exxatdesignux/ui",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Exxat shared design system (components, hooks, tokens). Monorepo setup: clone repo then pnpm bootstrap at workspace root — see github.com/ExxatDesign/Exxat-DS-Workspace README.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Exxat Design",
@@ -498,19 +498,23 @@ export function HubTable<TRow extends Record<string, unknown>>({
498
498
  patchDisplay,
499
499
  }
500
500
 
501
- // Dev-time warning when a `supportedViewType` has no renderer (other than `table`,
502
- // which has the built-in default). Mirrors `defineHubViewRenderers` from
503
- // `lib/hub-connected-view-renderers.ts` but inline so we don't double-wrap.
501
+ // Dev-time warning when a `supportedViewType` has no renderer AND no centralized
502
+ // default is available. `data-table` always falls back to the built-in
503
+ // `defaultTableRenderer`; `list-with-toolbar` and `board-with-toolbar` fall back
504
+ // to the synthesised defaults below when the hub passes `renderListRow` /
505
+ // `renderBoardCard` (the happy path for most hubs). The warning only fires for
506
+ // exotic surfaces that genuinely need an explicit renderer entry.
504
507
  if (process.env.NODE_ENV !== "production") {
505
508
  for (const v of supportedViewTypes) {
506
509
  const kind = getDataListViewRenderKind(v)
507
510
  if (kind === "data-table") continue
508
- if (renderers[kind] == null) {
509
- console.warn(
510
- `[Exxat DS][HubTable: ${hubLabel}] Missing renderer for supported view "${v}" (${kind}). ` +
511
- "Add a renderer entry, or remove the view from supportedViewTypes.",
512
- )
513
- }
511
+ if (renderers[kind] != null) continue
512
+ if (kind === "list-with-toolbar" && renderListRow != null) continue
513
+ if (kind === "board-with-toolbar" && renderBoardCard != null && boardGroups != null) continue
514
+ console.warn(
515
+ `[Exxat DS][HubTable: ${hubLabel}] Missing renderer for supported view "${v}" (${kind}). ` +
516
+ "Add a renderer entry, or remove the view from supportedViewTypes.",
517
+ )
514
518
  }
515
519
  }
516
520