@types/react-share
Advanced tools
Comparing version 3.0.0 to 3.0.1
// Type definitions for react-share 3.0 | ||
// Project: https://github.com/nygardk/react-share#readme | ||
// Definitions by: icopp <https://github.com/icopp> | ||
// Maxim Zasorin <https://github.com/maximzasorin> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -54,13 +55,3 @@ // TypeScript Version: 2.8 | ||
>; | ||
export const GooglePlusShareButton: React.StatelessComponent< | ||
CommonShareButtonProps | ||
>; | ||
export const LinkedinShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** Title of the shared page */ | ||
title?: string; | ||
/** Description of the shared page */ | ||
description?: string; | ||
} | ||
>; | ||
export const LinkedinShareButton: React.StatelessComponent<CommonShareButtonProps>; | ||
export const TwitterShareButton: React.StatelessComponent< | ||
@@ -93,2 +84,3 @@ CommonShareButtonProps & { | ||
CommonShareButtonProps & { | ||
/** An absolute link to the image that will be pinned */ | ||
media: string; | ||
@@ -115,2 +107,4 @@ /** Description of the shared page */ | ||
description?: string; | ||
/** An absolute link to the image that will be shared */ | ||
image?: string; | ||
} | ||
@@ -134,5 +128,10 @@ >; | ||
export const LivejournalShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { title?: string; description?: string } | ||
CommonShareButtonProps & { | ||
/** Title of the shared page */ | ||
title?: string; | ||
/** Description of the shared page */ | ||
description?: string; | ||
} | ||
>; | ||
export const MalruShareButton: React.StatelessComponent< | ||
export const MailruShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
@@ -147,2 +146,36 @@ /** Title of the shared page */ | ||
>; | ||
export const ViberShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** Title of the shared page */ | ||
title?: string; | ||
/** Separates title from the url, default: ' ' */ | ||
separator?: string; | ||
} | ||
>; | ||
export const WorkplaceShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** A quote to be shared along with the link. */ | ||
quote?: string; | ||
/** | ||
* A hashtag specified by the developer to be added to the shared | ||
* content. People will still have the opportunity to remove this | ||
* hashtag in the dialog. The hashtag should include the hash symbol. | ||
*/ | ||
hashtag?: string; | ||
} | ||
>; | ||
export const LineShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** Title of the shared page */ | ||
title?: string; | ||
} | ||
>; | ||
export const WeiboShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** Title of the shared page */ | ||
title?: string; | ||
/** An absolute link to the image that will be shared */ | ||
image?: string; | ||
} | ||
>; | ||
export const EmailShareButton: React.StatelessComponent< | ||
@@ -152,10 +185,28 @@ CommonShareButtonProps & { | ||
subject?: string; | ||
/** Body of the email, defaults to shared url. */ | ||
/** Body of the email, will be prepended to the url. */ | ||
body?: string; | ||
/** Separates body from the url, default: ' ' */ | ||
separator?: string; | ||
/** Opens the mail client in a new window. Defaults to false */ | ||
openWindow?: boolean; | ||
} | ||
>; | ||
export const LineShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { title?: string } | ||
export const PocketShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** | ||
* Title of the shared page. Note that if Pocket detects a title tag | ||
* on the page being saved, this parameter will be ignored | ||
* and the title tag of the saved page will be used instead. | ||
*/ | ||
title?: string; | ||
} | ||
>; | ||
export const InstapaperShareButton: React.StatelessComponent< | ||
CommonShareButtonProps & { | ||
/** Title of the shared page */ | ||
title?: string; | ||
/** Description of the shared page */ | ||
description?: string; | ||
} | ||
>; | ||
@@ -176,4 +227,2 @@ // ============================================================================= | ||
export const FacebookShareCount: React.StatelessComponent<ShareCountComponentProps>; | ||
export const GooglePlusShareCount: React.StatelessComponent<ShareCountComponentProps>; | ||
export const LinkedinShareCount: React.StatelessComponent<ShareCountComponentProps>; | ||
export const PinterestShareCount: React.StatelessComponent<ShareCountComponentProps>; | ||
@@ -194,2 +243,4 @@ export const VKShareCount: React.StatelessComponent<ShareCountComponentProps>; | ||
round?: boolean; | ||
/** Allow rounded corners if using rect icons */ | ||
borderRadius?: number; | ||
/** Customize background style, e.g. fill */ | ||
@@ -208,3 +259,2 @@ iconBgStyle?: React.CSSProperties; | ||
export const WhatsappIcon: React.StatelessComponent<IconComponentProps>; | ||
export const GooglePlusIcon: React.StatelessComponent<IconComponentProps>; | ||
export const LinkedinIcon: React.StatelessComponent<IconComponentProps>; | ||
@@ -218,3 +268,7 @@ export const PinterestIcon: React.StatelessComponent<IconComponentProps>; | ||
export const MailruIcon: React.StatelessComponent<IconComponentProps>; | ||
export const ViberIcon: React.StatelessComponent<IconComponentProps>; | ||
export const WorkplaceIcon: React.StatelessComponent<IconComponentProps>; | ||
export const LineIcon: React.StatelessComponent<IconComponentProps>; | ||
export const PocketIcon: React.StatelessComponent<IconComponentProps>; | ||
export const InstapaperIcon: React.StatelessComponent<IconComponentProps>; | ||
export const EmailIcon: React.StatelessComponent<IconComponentProps>; | ||
export const LineIcon: React.StatelessComponent<IconComponentProps>; |
{ | ||
"name": "@types/react-share", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "TypeScript definitions for react-share", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "icopp" | ||
}, | ||
{ | ||
"name": "Maxim Zasorin", | ||
"url": "https://github.com/maximzasorin", | ||
"githubUsername": "maximzasorin" | ||
} | ||
@@ -25,4 +30,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "a939ef205133a904a41749b9a16e6adcaae786dfd419bf44103ce2084d897bac", | ||
"typesPublisherContentHash": "d646d18a5a121826eea9377b0359550f9818b697cb55234f639c2f55b3e08af1", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 03 Sep 2019 22:37:23 GMT | ||
* Last updated: Fri, 27 Sep 2019 23:56:08 GMT | ||
* Dependencies: @types/react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by icopp <https://github.com/icopp>. | ||
These definitions were written by icopp <https://github.com/icopp>, and Maxim Zasorin <https://github.com/maximzasorin>. |
12137
254