react-external-link
Advanced tools
Comparing version 1.3.0 to 2.0.0
@@ -1,8 +0,6 @@ | ||
import { FunctionComponent, ReactNode } from 'react'; | ||
export interface ExternalLinkProps { | ||
import { AnchorHTMLAttributes, FC, ReactNode } from 'react'; | ||
export interface ExternalLinkProps extends AnchorHTMLAttributes<Element> { | ||
href: string; | ||
children?: ReactNode; | ||
[rest: string]: any; | ||
} | ||
declare const ExternalLink: FunctionComponent<ExternalLinkProps>; | ||
export default ExternalLink; | ||
export declare const ExternalLink: FC<ExternalLinkProps>; |
@@ -1,2 +0,1 @@ | ||
import ExternalLink from './ExternalLink'; | ||
export { ExternalLink }; | ||
export * from './ExternalLink'; |
{ | ||
"name": "react-external-link", | ||
"version": "1.3.0", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
@@ -36,17 +36,18 @@ "main": "dist/index.cjs.js", | ||
"@rollup/plugin-typescript": "^8.3.1", | ||
"@shlinkio/eslint-config-js-coding-standard": "~2.0.1", | ||
"@testing-library/jest-dom": "^5.16.3", | ||
"@testing-library/react": "^13.0.0", | ||
"@types/jest": "^27.4.1", | ||
"@types/react": "^17.0.43", | ||
"@types/react-dom": "^17.0.14", | ||
"@shlinkio/eslint-config-js-coding-standard": "~2.0.2", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.2.0", | ||
"@types/jest": "^27.5.1", | ||
"@types/react": "^18.0.9", | ||
"@types/react-dom": "^18.0.4", | ||
"concurrently": "^7.0.0", | ||
"eslint": "^8.12.0", | ||
"eslint-loader": "^4.0.2", | ||
"jest": "^27.5.1", | ||
"jest": "^28.1.0", | ||
"jest-environment-jsdom": "^28.1.0", | ||
"prepend-file": "^2.0.1", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0", | ||
"rollup": "^2.70.1", | ||
"ts-jest": "^27.1.4", | ||
"ts-jest": "^28.0.2", | ||
"tslib": "^2.3.1", | ||
@@ -53,0 +54,0 @@ "typescript": "^4.6.3" |
10066
19
89