mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
17883f8cbf
* 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.
12 lines
385 B
TypeScript
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 />;
|
|
}
|