Skip to content

Commit

Permalink
chore(release): 1.5.2
Browse files Browse the repository at this point in the history
## [1.5.2](v1.5.1...v1.5.2) (2022-06-26)

### Bug Fixes

* remove unnecessary useMemos ([#24](#24)) ([8ffc30c](8ffc30c))
  • Loading branch information
semantic-release-bot committed Jun 26, 2022
1 parent 8ffc30c commit cc791b3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.5.2](https://github.com/jaredLunde/exploration/compare/v1.5.1...v1.5.2) (2022-06-26)

### Bug Fixes

- remove unnecessary useMemos ([#24](https://github.com/jaredLunde/exploration/issues/24)) ([8ffc30c](https://github.com/jaredLunde/exploration/commit/8ffc30c967f6dbf3eb60683d9e7718fe6bfae644))

## [1.5.1](https://github.com/jaredLunde/exploration/compare/v1.5.0...v1.5.1) (2022-04-29)

### Bug Fixes
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": "exploration",
"version": "1.5.1",
"version": "1.5.2",
"description": "",
"license": "MIT",
"author": "Jared Lunde <[email protected]> (https://jaredlunde.com/)",
Expand Down
2 changes: 1 addition & 1 deletion types/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

32 changes: 17 additions & 15 deletions types/use-roving-focus.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
import * as React from "react";
import type * as React from "react";
import type { FileTree } from "./file-tree";
import type { Subject } from "./tree/subject";
/**
* A plugin hook for adding roving focus to file tree nodes.
*
* @param fileTree - A file tree
*/
export declare function useRovingFocus<Meta>(fileTree: FileTree<Meta>): UseRovingFocusPlugin;
export declare function useRovingFocus<Meta>(
fileTree: FileTree<Meta>
): UseRovingFocusPlugin;
export interface RovingFocusProps {
tabIndex: number;
onFocus(e: React.FocusEvent<HTMLElement>): void;
onBlur(e: React.FocusEvent<HTMLElement>): void;
tabIndex: number;
onFocus(e: React.FocusEvent<HTMLElement>): void;
onBlur(e: React.FocusEvent<HTMLElement>): void;
}
export interface UseRovingFocusPlugin {
/**
* A subject that you can use to observe to changes to the focused node.
*/
didChange: Subject<number>;
/**
* Get the React props for a given node ID.
*
* @param nodeId - A node ID
*/
getProps: (nodeId: number) => RovingFocusProps;
/**
* A subject that you can use to observe to changes to the focused node.
*/
didChange: Subject<number>;
/**
* Get the React props for a given node ID.
*
* @param nodeId - A node ID
*/
getProps: (nodeId: number) => RovingFocusProps;
}

0 comments on commit cc791b3

Please sign in to comment.