Skip to content

Commit fa48ad7

Browse files
committed
chore(release): 2.0.0
1 parent 3bf0781 commit fa48ad7

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
## 2.0.0 (2020-07-08)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* The Link component is no longer the default export. It is a named export e.g.
11+
`import {Link} from '@accessible/link'`.
12+
13+
### Features
14+
15+
* add useA11yLink() hook ([3bf0781](https://github.com/accessible-ui/link/commit/3bf078136612d58f3f5b164586b0940d53ea23e5))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@accessible/link",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"homepage": "https://github.com/accessible-ui/link#readme",
55
"repository": "github:accessible-ui/link",
66
"bugs": "https://github.com/accessible-ui/link/issues",

types/index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as React from 'react';
2+
export declare function useA11yLink<T extends HTMLElement, E extends React.MouseEvent<T, MouseEvent>>(target: React.RefObject<T> | T | null, onClick: (event: E) => any): {
3+
onClick: (event: E) => any;
4+
role: string;
5+
tabIndex: number;
6+
};
7+
export declare function Link({ children }: LinkProps): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
8+
export interface LinkProps {
9+
children: React.ReactElement | JSX.Element;
10+
}
11+
export default Link;

0 commit comments

Comments
 (0)