Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiryazici committed Oct 20, 2022
1 parent 398d7d1 commit 6fd699c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.3.1
### Bug Fixes
- Fixed types of hooks/events.
- `Context['selectFocusedElement']` was incorrect name, fixed to correct one `Context['selectFocusedItem']`

<br>

# 0.3.0
### Features

Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,14 @@ export type Context = {
clearFocus(): void;
setFocusByKey(key?: string | null | undefined): void;
setFocusByIndex(index: number): void;
onSelect(fn: Hook): void;
onFocus(fn: Hook): void;
onUnfocus(fn: Hook): void;
onHover(fn: Hook): void;
onDOMFocus(fn: Hook): void;
getItemMetaDataByKey(key: string): unknown;
onSelect(fn: SelectHook): void;
onFocus(fn: FocusHook): void;
onUnfocus(fn: UnfocusHook): void;
onDOMFocus(fn: DOMFocusHook): void;
getItemMetaByKey<Meta = any>(key: string): Meta | undefined;
getSelectableItemCount(): number;
getSelectableItems(): Item[];
selectFocusedElement(): void;
getSelectableItems<Meta = unknown>(): Item<Meta>[];
selectFocusedItem(): void;
getFocusedItem<Meta = unknown>(): Item<Meta> | undefined;
getItemElementByKey(key: string): HTMLElement | undefined;
getItemElementByIndex(index: number): HTMLElement | undefined;
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": "vue-selectable-items",
"version": "0.3.0",
"version": "0.3.1",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/types/index.d.ts",
Expand Down

0 comments on commit 6fd699c

Please sign in to comment.