@godxjp/ui-mcp 18.0.1 → 18.0.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/dist/index.js CHANGED
@@ -2045,6 +2045,7 @@ import { Smartphone } from "lucide-react";
2045
2045
  "DO: Import from `@godxjp/ui/query` (not `@godxjp/ui`). Use the bundled `flattenItemPages` helper for any API that returns `{ items: T[] }` pages \u2014 it handles `undefined` data safely. Custom page shapes require a custom `flatten` function.",
2046
2046
  "DO: Always pass `skeleton` (e.g. `<SkeletonTable />` or `<SkeletonStat />`). It shows on initial `isPending`, on refetch-after-error, and whenever `data` is absent. Never show a blank area while loading.",
2047
2047
  "DO: Pass `empty` (an `<EmptyState>` node) to handle the zero-results case \u2014 without it the children render-prop is called with an empty array and you get a silent blank screen. Provide a custom `isEmpty` only when `TFlat` is not an array.",
2048
+ "DO: Let errors remain cause-aware. Retry is automatic only for classified transient/network/5xx failures. Unknown errors do not get a blind retry unless `showRetry` or `onRetry` is explicitly supplied; 401 routes to `onAuthError`, and raw backend/token text is never rendered.",
2048
2049
  "DON'T: Hand-roll a load-more button. The component renders a default centered outline Button when `hasNextPage` is true. Override only via `loadMore` (custom node) or `showLoadMore={false}` (hide entirely). Never call `query.fetchNextPage()` outside the component for pagination.",
2049
2050
  "DON'T: Use `InfiniteQueryState` for a `useQuery` result \u2014 it expects `UseInfiniteQueryResult` shape (`pages`, `hasNextPage`, `fetchNextPage`, `isFetchingNextPage`). For regular `useQuery` use `DataState` instead.",
2050
2051
  "DON'T: Confuse the two generics: `TPage` is the raw page shape from the API, `TFlat` is what `flatten` returns (usually `TItem[]`). The `children` render-prop receives `TFlat`, not `TPage`. Pass `isEmpty` if `TFlat` is not a plain array so empty detection works correctly."
@@ -2241,7 +2242,7 @@ import { Smartphone } from "lucide-react";
2241
2242
  { name: "placeholder", type: "string", description: "Placeholder." },
2242
2243
  { name: "value", type: "string | number", description: "Controlled value." },
2243
2244
  {
2244
- name: "onChange",
2245
+ name: "onValueChange",
2245
2246
  type: "React.ChangeEventHandler<HTMLInputElement>",
2246
2247
  description: "Native change handler."
2247
2248
  },
@@ -4621,6 +4622,26 @@ function MultiRegionPicker() {
4621
4622
  type: "string",
4622
4623
  description: "HTML `id` placed on the trigger Button \u2014 use this to associate a `<label htmlFor>` for accessibility."
4623
4624
  },
4625
+ {
4626
+ name: "aria-label",
4627
+ type: "string",
4628
+ description: "Accessible name for the combobox trigger when no visible label is available."
4629
+ },
4630
+ {
4631
+ name: "aria-errormessage",
4632
+ type: "string",
4633
+ description: "ID of the element containing the current validation error message."
4634
+ },
4635
+ {
4636
+ name: "aria-invalid",
4637
+ type: "boolean | 'true' | 'false'",
4638
+ description: "Marks the semantic combobox trigger invalid for assistive technology."
4639
+ },
4640
+ {
4641
+ name: "aria-required",
4642
+ type: "boolean | 'true' | 'false'",
4643
+ description: "Marks the semantic combobox trigger required for assistive technology."
4644
+ },
4624
4645
  {
4625
4646
  name: "fieldNames",
4626
4647
  type: "{ label?: string; value?: string; children?: string }",
@@ -9017,6 +9038,16 @@ var COMPONENT_TOKENS = [
9017
9038
  "value": "var(--font-size-xs)",
9018
9039
  "description": "Navigation primitive tokens: pagination, filters, compact pickers."
9019
9040
  },
9041
+ {
9042
+ "name": "--tabs-list-max-inline-size",
9043
+ "value": "100%",
9044
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers."
9045
+ },
9046
+ {
9047
+ "name": "--tabs-list-overflow",
9048
+ "value": "auto",
9049
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers."
9050
+ },
9020
9051
  {
9021
9052
  "name": "--menubar-item-hover-background",
9022
9053
  "value": "initial",
@@ -12544,7 +12575,7 @@ function visualRulesByCategory(category) {
12544
12575
  // package.json
12545
12576
  var package_default = {
12546
12577
  name: "@godxjp/ui-mcp",
12547
- version: "18.0.1",
12578
+ version: "18.0.2",
12548
12579
  godxUiCompatibility: "18.0.x",
12549
12580
  description: "Model Context Protocol server for @godxjp/ui \u2014 gives Claude Code / Codex CLI / Cursor / any MCP-aware agent live access to the component catalog, prop vocabulary, design tokens, 45 cardinal rules, copy-paste-ready patterns, 12 design / taste skills synthesised from Leonxlnx/taste-skill, 20+ anti-AI-tell patterns, and a 50-check redesign audit \u2014 token-efficient (list \u2192 drill-down).",
12550
12581
  type: "module",