Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-share

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-share - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

33

react-share/index.d.ts

@@ -29,2 +29,7 @@ // Type definitions for react-share 3.0

/**
* Whether to center the share box respectively to the screen or to the window.
* @default "windowCenter"
*/
windowPosition?: 'windowCenter' | 'screenCenter';
/**
* Takes a function that returns a Promise to be fulfilled before calling

@@ -39,2 +44,30 @@ * `onClick`. If you do not return promise, `onClick` is called immediately.

/**
* A class name to add to the others added by react-share (SocialMediaShareButton, ...).
*/
className?: string;
/**
* Click callback handler.
*/
onClick?: (link: string) => void;
/**
* If false, does not open a new window and call the onClick callback instead.
* @default true
*/
openWindow?: boolean;
/**
* The HTML role of the div.
* @default "button"
*/
role?: React.HTMLAttributes<HTMLDivElement>['role'];
/**
* Extra style for the button.
*/
style?: React.HTMLAttributes<HTMLDivElement>['style'];
/**
* Indicates that its element can be focused, and where it participates in sequential keyboard
* navigation.
* @default "0"
*/
tabIndex?: React.HTMLAttributes<HTMLDivElement>['tabIndex'];
/**
* An object to pass any additional properties, such as `aria-*` attributes.

@@ -41,0 +74,0 @@ */

4

react-share/package.json
{
"name": "@types/react-share",
"version": "3.0.2",
"version": "3.0.3",
"description": "TypeScript definitions for react-share",

@@ -29,4 +29,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "ffb6801b53fff1ac4bd260b7ac9d46f3739f6c82743aa634cffec34b97870108",
"typesPublisherContentHash": "a660b33d7c77037622ad036050be895abce3d0ad32ae757a07456764118e60d6",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 18 Nov 2019 21:40:09 GMT
* Last updated: Fri, 22 Nov 2019 17:37:26 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc