Files
Michael Ramos 17883f8cbf feat(ui): allow hosts to hide Quick Label (#1442)
* feat(ui): allow hiding the quick label tool

* docs(ui): review follow-ups for the hideQuickLabel seam

Independent review verdict was merge-with-minor-changes; this closes the
three findings:

- StickyHeaderLane now forwards hideQuickLabel to its compact toolstrip,
  so a host's opt-out survives the pinned scroll header instead of the
  Label button reappearing on scroll.
- HANDOFF.md gains the AnnotationToolstrip row on the supported-imports
  table (the strict-consumer gate's convention): the showHelpLink warning
  (the help modal embeds Plannotator's own videos), the hideQuickLabel /
  hideInputMethodSwitch opt-outs, and the caveat that hiding the button
  does not clamp 'quickLabel' mode - host mode state must stay out of it,
  including preferences restored through utils/editorMode.
- README.md gains the matching 'Toolstrip host props (0.35.0)' section.
2026-09-01 11:11:00 -07:00

12 lines
385 B
TypeScript

import {
AnnotationToolstrip,
type AnnotationToolstripProps,
} from '@plannotator/ui/components/AnnotationToolstrip';
/** Compile-only proof that the published subpath exposes the additive opt-out. */
export function PublishedAnnotationToolstripConsumer(
props: Omit<AnnotationToolstripProps, 'hideQuickLabel'>,
) {
return <AnnotationToolstrip {...props} hideQuickLabel />;
}