diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a5f56a..c806966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # cmdk-sv +## 0.0.10 + +### Patch Changes + +- fix: move Command additional props to types file ([#31](https://github.com/huntabyte/cmdk-sv/pull/31)) + ## 0.0.9 ### Patch Changes diff --git a/package.json b/package.json index 3f654e5..ef62308 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cmdk-sv", - "version": "0.0.9", + "version": "0.0.10", "scripts": { "dev": "vite dev", "build": "vite build && npm run package", diff --git a/src/lib/cmdk/components/Command.svelte b/src/lib/cmdk/components/Command.svelte index 3c9449f..a650367 100644 --- a/src/lib/cmdk/components/Command.svelte +++ b/src/lib/cmdk/components/Command.svelte @@ -8,10 +8,7 @@ import { createCommand } from '../command.js'; import type { CommandProps } from '../types.js'; - type $$Props = CommandProps & { - onKeydown?: (e: KeyboardEvent) => void; - asChild?: boolean; - }; + type $$Props = CommandProps; export let label: $$Props['label'] = undefined; export let shouldFilter: $$Props['shouldFilter'] = true; diff --git a/src/lib/cmdk/types.ts b/src/lib/cmdk/types.ts index ea5225e..f99f920 100644 --- a/src/lib/cmdk/types.ts +++ b/src/lib/cmdk/types.ts @@ -102,7 +102,10 @@ export type CommandProps = Expand< ids?: Partial; } > & - HTMLDivAttributes; + HTMLDivAttributes & { + onKeydown?: (e: KeyboardEvent) => void; + asChild?: boolean; + }; export type ListProps = { /**