diff --git a/.changeset/7340-docs-retired-handler-keys.md b/.changeset/7340-docs-retired-handler-keys.md new file mode 100644 index 0000000000..565c5caa64 --- /dev/null +++ b/.changeset/7340-docs-retired-handler-keys.md @@ -0,0 +1,17 @@ +--- +--- + +Docs-only: ten rows across eight `content/docs` pages still listed one of +objectui#6124's 22 RETIRED `on*` handler keys as a callable prop, after PR +#7339 turned those keys into `?: never` tombstones with named refusal arms on +the zod mirror. Seven pages have the rows removed; +`components/basic/button-group.mdx` keeps its `ButtonGroupButton.onClick` row +spelled `never` with the node-type pointer, because +`button-group-doc-surface-6347.test.ts` asserts set equality between that block +and the mirror's `.shape` and a refusal arm is still a key of that shape. A new +test-only pin +(`packages/types/src/__tests__/component-docs-retired-handler-keys-7340.test.ts`) +measures the retired population off `packages/types/src` and holds every doc row +whose `(interface, key)` pair resolves to a tombstone to the `never` spelling, +with six runtime-slot rows as the blanket-sweep control (objectui#7340). No +published package behaviour changes. diff --git a/content/docs/api/schema-reference.md b/content/docs/api/schema-reference.md index d4207cb9ca..7dd7b7d638 100644 --- a/content/docs/api/schema-reference.md +++ b/content/docs/api/schema-reference.md @@ -923,8 +923,6 @@ A drag-and-drop Kanban board with columns and cards. | `draggable` | `boolean` | Enable drag-and-drop between columns. | | `onCardMove` | `function` | Callback when a card is moved: `(cardId, fromColumn, toColumn, position)`. | | `onCardClick` | `function` | Callback when a card is clicked. | -| `onColumnAdd` | `function` | Callback when a new column is added. | -| `onCardAdd` | `function` | Callback when a new card is added to a column. | **Related:** [ObjectViewSchema](#objectviewschema), [ObjectGridSchema](#objectgridschema) diff --git a/content/docs/components/basic/button-group.mdx b/content/docs/components/basic/button-group.mdx index 71de2f2eb4..77d2f9bcc0 100644 --- a/content/docs/components/basic/button-group.mdx +++ b/content/docs/components/basic/button-group.mdx @@ -26,7 +26,8 @@ interface ButtonGroupButton { variant?: 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link'; size?: 'default' | 'sm' | 'lg' | 'icon'; disabled?: boolean; // Whether this button is disabled - onClick?: () => void; // Runtime handler; not authorable in JSON + onClick?: never; // RETIRED (objectui#6124) — author behaviour + // as a node type, e.g. an action:button node className?: string; // Per-button CSS class } diff --git a/content/docs/components/data-display/tree-view.mdx b/content/docs/components/data-display/tree-view.mdx index 91b90a055d..6d3b17cc91 100644 --- a/content/docs/components/data-display/tree-view.mdx +++ b/content/docs/components/data-display/tree-view.mdx @@ -43,9 +43,7 @@ interface TreeViewSchema { showLines?: boolean; // Show connecting lines (default: true) // Events - onSelectChange?: (selectedIds: string[]) => void; // Selection change handler - onExpandChange?: (expandedIds: string[]) => void; // Expand change handler - onNodeClick?: (node: TreeNode) => void; // Node click handler + onNodeClick?: (node: TreeNode) => void; // Node click handler // Styling className?: string; // Tailwind CSS classes diff --git a/content/docs/components/form/calendar.mdx b/content/docs/components/form/calendar.mdx index b86f54454a..c0e0213976 100644 --- a/content/docs/components/form/calendar.mdx +++ b/content/docs/components/form/calendar.mdx @@ -38,9 +38,6 @@ interface CalendarSchema { maxDate?: Date | string; // Maximum selectable date disabled?: boolean | string; // boolean, or a predicate expression - // Events - onChange?: (date: Date | Date[] | undefined) => void; // Date change handler - // Styling className?: string; // Tailwind CSS classes diff --git a/content/docs/components/form/combobox.mdx b/content/docs/components/form/combobox.mdx index a792335541..ac3713b0fb 100644 --- a/content/docs/components/form/combobox.mdx +++ b/content/docs/components/form/combobox.mdx @@ -38,9 +38,6 @@ interface ComboboxSchema { // Text placeholder?: string; // Button placeholder - // Events - onChange?: (value: string) => void; - // States disabled?: boolean | string; // boolean, or a predicate expression diff --git a/content/docs/components/form/command.mdx b/content/docs/components/form/command.mdx index 818d001722..b9ee3ed166 100644 --- a/content/docs/components/form/command.mdx +++ b/content/docs/components/form/command.mdx @@ -37,9 +37,6 @@ interface CommandSchema { groups: CommandGroup[]; // Command groups emptyText?: string; // Text when no results - // Events - onChange?: (value: string) => void; - // Styling className?: string; } diff --git a/content/docs/components/form/input-otp.mdx b/content/docs/components/form/input-otp.mdx index 0598b05721..d68079ad04 100644 --- a/content/docs/components/form/input-otp.mdx +++ b/content/docs/components/form/input-otp.mdx @@ -33,7 +33,6 @@ interface InputOTPSchema { // Events onChange?: (value: string) => void; - onComplete?: (value: string) => void; // States disabled?: boolean | string; // boolean, or a predicate expression diff --git a/content/docs/components/form/radio-group.mdx b/content/docs/components/form/radio-group.mdx index dab355e15c..2b28b631f7 100644 --- a/content/docs/components/form/radio-group.mdx +++ b/content/docs/components/form/radio-group.mdx @@ -46,9 +46,6 @@ interface RadioGroupSchema { // Layout orientation?: 'horizontal' | 'vertical'; - // Events - onChange?: (value: string | number) => void; - // States disabled?: boolean | string; // boolean, or a predicate expression diff --git a/packages/types/src/__tests__/button-group-doc-surface-6347.test.ts b/packages/types/src/__tests__/button-group-doc-surface-6347.test.ts index 684c9b6478..a77366b3b5 100644 --- a/packages/types/src/__tests__/button-group-doc-surface-6347.test.ts +++ b/packages/types/src/__tests__/button-group-doc-surface-6347.test.ts @@ -39,6 +39,17 @@ * subset the card enumerated. A one-directional pin is what let the omissions * sit beside the corrections through two earlier passes over these pages. * + * ⚠️ `.onClick` is in that UNDER-stated list as HISTORY. objectui#6124 (PR + * #7339, ruling of 2026-08-30) RETIRED the key: the `button-group` renderer + * renders each `