Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-Jayden committed Nov 18, 2023
2 parents b373759 + 60f7088 commit a2da544
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 1 addition & 4 deletions src/lib/cmdk/components/Command.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion src/lib/cmdk/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ export type CommandProps = Expand<
ids?: Partial<CommandIds>;
}
> &
HTMLDivAttributes;
HTMLDivAttributes & {
onKeydown?: (e: KeyboardEvent) => void;
asChild?: boolean;
};

export type ListProps = {
/**
Expand Down

0 comments on commit a2da544

Please sign in to comment.