From fc743b27748d5c4ffc72ebda391bb16bc2306b9d Mon Sep 17 00:00:00 2001 From: A-PachecoT Date: Wed, 20 May 2026 19:26:53 -0500 Subject: [PATCH] feat(command-palette): publish CommandPalette + types + 7 stories to @cofoundy/ui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extracted from products/cofoundy-platform/docs-ai-vault-search (commit bc298c2 on feat/vault-search) and generalized for shared consumption. Public surface: Components: CommandPalette, CommandPaletteTrigger Types: CommandPaletteProps, CommandPaletteTriggerProps, SearchHit, SearchResponse, SearchFn, DocRole, RecentDoc, RecentSearch, EmptyAction Generalizations from source (deviations flagged for review): 1. searchFn prop replaces the unused CommandAction kind-union. 2. Hotkey hook (HookDrivenPalette) dropped — consumers wire their own around controlled `open` state. 3. RECENTS / RECENT_SEARCHES fixtures dropped; props-driven defaults render a clean idle state. 4. Navigation: + injected onNavigate(url, hit), with window.location.href fallback. 5. styled-jsx → plain