react-share
Advanced tools
Comparing version 4.2.1 to 4.3.0
# Changelog | ||
## 4.3.0 (Aug 06, 2020) | ||
- Added: `HateShareButton` and `HatenaShareCount` | ||
## 4.2.1 (Jul 09, 2020) | ||
@@ -4,0 +8,0 @@ |
@@ -8,5 +8,5 @@ import React from 'react'; | ||
export default function createShareCount(getCount: SocialMediaShareCountProps['getCount']): { | ||
(props: Pick<SocialMediaShareCountProps, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "url" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">): JSX.Element; | ||
(props: Omit<SocialMediaShareCountProps, 'getCount'>): JSX.Element; | ||
displayName: string; | ||
}; | ||
export {}; |
@@ -5,3 +5,3 @@ var __extends = (this && this.__extends) || (function () { | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -8,0 +8,0 @@ }; |
@@ -8,2 +8,5 @@ export { default as EmailIcon } from './EmailIcon'; | ||
export { default as FacebookShareCount } from './FacebookShareCount'; | ||
export { default as HatenaIcon } from './HatenaIcon'; | ||
export { default as HatenaShareButton } from './HatenaShareButton'; | ||
export { default as HatenaShareCount } from './HatenaShareCount'; | ||
export { default as InstapaperIcon } from './InstapaperIcon'; | ||
@@ -10,0 +13,0 @@ export { default as InstapaperShareButton } from './InstapaperShareButton'; |
@@ -8,2 +8,5 @@ export { default as EmailIcon } from './EmailIcon'; | ||
export { default as FacebookShareCount } from './FacebookShareCount'; | ||
export { default as HatenaIcon } from './HatenaIcon'; | ||
export { default as HatenaShareButton } from './HatenaShareButton'; | ||
export { default as HatenaShareCount } from './HatenaShareCount'; | ||
export { default as InstapaperIcon } from './InstapaperIcon'; | ||
@@ -10,0 +13,0 @@ export { default as InstapaperShareButton } from './InstapaperShareButton'; |
@@ -49,5 +49,5 @@ import React, { Component, Ref } from 'react'; | ||
openShareDialog: (link: string) => void; | ||
handleClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>; | ||
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => Promise<void>; | ||
render(): JSX.Element; | ||
} | ||
export {}; |
@@ -5,3 +5,3 @@ var __extends = (this && this.__extends) || (function () { | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -8,0 +8,0 @@ }; |
@@ -5,3 +5,3 @@ var __extends = (this && this.__extends) || (function () { | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -8,0 +8,0 @@ }; |
@@ -13,7 +13,19 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -20,0 +32,0 @@ }; |
@@ -8,5 +8,5 @@ import React from 'react'; | ||
export default function createShareCount(getCount: SocialMediaShareCountProps['getCount']): { | ||
(props: Pick<SocialMediaShareCountProps, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "url" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">): JSX.Element; | ||
(props: Omit<SocialMediaShareCountProps, 'getCount'>): JSX.Element; | ||
displayName: string; | ||
}; | ||
export {}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -27,2 +27,21 @@ }; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
@@ -39,9 +58,2 @@ var t = {}; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -48,0 +60,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
@@ -8,2 +8,5 @@ export { default as EmailIcon } from './EmailIcon'; | ||
export { default as FacebookShareCount } from './FacebookShareCount'; | ||
export { default as HatenaIcon } from './HatenaIcon'; | ||
export { default as HatenaShareButton } from './HatenaShareButton'; | ||
export { default as HatenaShareCount } from './HatenaShareCount'; | ||
export { default as InstapaperIcon } from './InstapaperIcon'; | ||
@@ -10,0 +13,0 @@ export { default as InstapaperShareButton } from './InstapaperShareButton'; |
102
lib/index.js
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WorkplaceShareButton = exports.WorkplaceIcon = exports.WhatsappShareButton = exports.WhatsappIcon = exports.WeiboShareButton = exports.WeiboIcon = exports.VKShareCount = exports.VKShareButton = exports.VKIcon = exports.ViberShareButton = exports.ViberIcon = exports.TwitterShareButton = exports.TwitterIcon = exports.TumblrShareCount = exports.TumblrShareButton = exports.TumblrIcon = exports.TelegramShareButton = exports.TelegramIcon = exports.RedditShareCount = exports.RedditShareButton = exports.RedditIcon = exports.PocketShareButton = exports.PocketIcon = exports.PinterestShareCount = exports.PinterestShareButton = exports.PinterestIcon = exports.OKShareCount = exports.OKShareButton = exports.OKIcon = exports.MailruShareButton = exports.MailruIcon = exports.LivejournalShareButton = exports.LivejournalIcon = exports.LinkedinShareButton = exports.LinkedinIcon = exports.LineShareButton = exports.LineIcon = exports.InstapaperShareButton = exports.InstapaperIcon = exports.HatenaShareCount = exports.HatenaShareButton = exports.HatenaIcon = exports.FacebookShareCount = exports.FacebookShareButton = exports.FacebookMessengerShareButton = exports.FacebookMessengerIcon = exports.FacebookIcon = exports.EmailShareButton = exports.EmailIcon = void 0; | ||
var EmailIcon_1 = require("./EmailIcon"); | ||
exports.EmailIcon = EmailIcon_1.default; | ||
Object.defineProperty(exports, "EmailIcon", { enumerable: true, get: function () { return __importDefault(EmailIcon_1).default; } }); | ||
var EmailShareButton_1 = require("./EmailShareButton"); | ||
exports.EmailShareButton = EmailShareButton_1.default; | ||
Object.defineProperty(exports, "EmailShareButton", { enumerable: true, get: function () { return __importDefault(EmailShareButton_1).default; } }); | ||
var FacebookIcon_1 = require("./FacebookIcon"); | ||
exports.FacebookIcon = FacebookIcon_1.default; | ||
Object.defineProperty(exports, "FacebookIcon", { enumerable: true, get: function () { return __importDefault(FacebookIcon_1).default; } }); | ||
var FacebookMessengerIcon_1 = require("./FacebookMessengerIcon"); | ||
exports.FacebookMessengerIcon = FacebookMessengerIcon_1.default; | ||
Object.defineProperty(exports, "FacebookMessengerIcon", { enumerable: true, get: function () { return __importDefault(FacebookMessengerIcon_1).default; } }); | ||
var FacebookMessengerShareButton_1 = require("./FacebookMessengerShareButton"); | ||
exports.FacebookMessengerShareButton = FacebookMessengerShareButton_1.default; | ||
Object.defineProperty(exports, "FacebookMessengerShareButton", { enumerable: true, get: function () { return __importDefault(FacebookMessengerShareButton_1).default; } }); | ||
var FacebookShareButton_1 = require("./FacebookShareButton"); | ||
exports.FacebookShareButton = FacebookShareButton_1.default; | ||
Object.defineProperty(exports, "FacebookShareButton", { enumerable: true, get: function () { return __importDefault(FacebookShareButton_1).default; } }); | ||
var FacebookShareCount_1 = require("./FacebookShareCount"); | ||
exports.FacebookShareCount = FacebookShareCount_1.default; | ||
Object.defineProperty(exports, "FacebookShareCount", { enumerable: true, get: function () { return __importDefault(FacebookShareCount_1).default; } }); | ||
var HatenaIcon_1 = require("./HatenaIcon"); | ||
Object.defineProperty(exports, "HatenaIcon", { enumerable: true, get: function () { return __importDefault(HatenaIcon_1).default; } }); | ||
var HatenaShareButton_1 = require("./HatenaShareButton"); | ||
Object.defineProperty(exports, "HatenaShareButton", { enumerable: true, get: function () { return __importDefault(HatenaShareButton_1).default; } }); | ||
var HatenaShareCount_1 = require("./HatenaShareCount"); | ||
Object.defineProperty(exports, "HatenaShareCount", { enumerable: true, get: function () { return __importDefault(HatenaShareCount_1).default; } }); | ||
var InstapaperIcon_1 = require("./InstapaperIcon"); | ||
exports.InstapaperIcon = InstapaperIcon_1.default; | ||
Object.defineProperty(exports, "InstapaperIcon", { enumerable: true, get: function () { return __importDefault(InstapaperIcon_1).default; } }); | ||
var InstapaperShareButton_1 = require("./InstapaperShareButton"); | ||
exports.InstapaperShareButton = InstapaperShareButton_1.default; | ||
Object.defineProperty(exports, "InstapaperShareButton", { enumerable: true, get: function () { return __importDefault(InstapaperShareButton_1).default; } }); | ||
var LineIcon_1 = require("./LineIcon"); | ||
exports.LineIcon = LineIcon_1.default; | ||
Object.defineProperty(exports, "LineIcon", { enumerable: true, get: function () { return __importDefault(LineIcon_1).default; } }); | ||
var LineShareButton_1 = require("./LineShareButton"); | ||
exports.LineShareButton = LineShareButton_1.default; | ||
Object.defineProperty(exports, "LineShareButton", { enumerable: true, get: function () { return __importDefault(LineShareButton_1).default; } }); | ||
var LinkedinIcon_1 = require("./LinkedinIcon"); | ||
exports.LinkedinIcon = LinkedinIcon_1.default; | ||
Object.defineProperty(exports, "LinkedinIcon", { enumerable: true, get: function () { return __importDefault(LinkedinIcon_1).default; } }); | ||
var LinkedinShareButton_1 = require("./LinkedinShareButton"); | ||
exports.LinkedinShareButton = LinkedinShareButton_1.default; | ||
Object.defineProperty(exports, "LinkedinShareButton", { enumerable: true, get: function () { return __importDefault(LinkedinShareButton_1).default; } }); | ||
var LivejournalIcon_1 = require("./LivejournalIcon"); | ||
exports.LivejournalIcon = LivejournalIcon_1.default; | ||
Object.defineProperty(exports, "LivejournalIcon", { enumerable: true, get: function () { return __importDefault(LivejournalIcon_1).default; } }); | ||
var LivejournalShareButton_1 = require("./LivejournalShareButton"); | ||
exports.LivejournalShareButton = LivejournalShareButton_1.default; | ||
Object.defineProperty(exports, "LivejournalShareButton", { enumerable: true, get: function () { return __importDefault(LivejournalShareButton_1).default; } }); | ||
var MailruIcon_1 = require("./MailruIcon"); | ||
exports.MailruIcon = MailruIcon_1.default; | ||
Object.defineProperty(exports, "MailruIcon", { enumerable: true, get: function () { return __importDefault(MailruIcon_1).default; } }); | ||
var MailruShareButton_1 = require("./MailruShareButton"); | ||
exports.MailruShareButton = MailruShareButton_1.default; | ||
Object.defineProperty(exports, "MailruShareButton", { enumerable: true, get: function () { return __importDefault(MailruShareButton_1).default; } }); | ||
var OKIcon_1 = require("./OKIcon"); | ||
exports.OKIcon = OKIcon_1.default; | ||
Object.defineProperty(exports, "OKIcon", { enumerable: true, get: function () { return __importDefault(OKIcon_1).default; } }); | ||
var OKShareButton_1 = require("./OKShareButton"); | ||
exports.OKShareButton = OKShareButton_1.default; | ||
Object.defineProperty(exports, "OKShareButton", { enumerable: true, get: function () { return __importDefault(OKShareButton_1).default; } }); | ||
var OKShareCount_1 = require("./OKShareCount"); | ||
exports.OKShareCount = OKShareCount_1.default; | ||
Object.defineProperty(exports, "OKShareCount", { enumerable: true, get: function () { return __importDefault(OKShareCount_1).default; } }); | ||
var PinterestIcon_1 = require("./PinterestIcon"); | ||
exports.PinterestIcon = PinterestIcon_1.default; | ||
Object.defineProperty(exports, "PinterestIcon", { enumerable: true, get: function () { return __importDefault(PinterestIcon_1).default; } }); | ||
var PinterestShareButton_1 = require("./PinterestShareButton"); | ||
exports.PinterestShareButton = PinterestShareButton_1.default; | ||
Object.defineProperty(exports, "PinterestShareButton", { enumerable: true, get: function () { return __importDefault(PinterestShareButton_1).default; } }); | ||
var PinterestShareCount_1 = require("./PinterestShareCount"); | ||
exports.PinterestShareCount = PinterestShareCount_1.default; | ||
Object.defineProperty(exports, "PinterestShareCount", { enumerable: true, get: function () { return __importDefault(PinterestShareCount_1).default; } }); | ||
var PocketIcon_1 = require("./PocketIcon"); | ||
exports.PocketIcon = PocketIcon_1.default; | ||
Object.defineProperty(exports, "PocketIcon", { enumerable: true, get: function () { return __importDefault(PocketIcon_1).default; } }); | ||
var PocketShareButton_1 = require("./PocketShareButton"); | ||
exports.PocketShareButton = PocketShareButton_1.default; | ||
Object.defineProperty(exports, "PocketShareButton", { enumerable: true, get: function () { return __importDefault(PocketShareButton_1).default; } }); | ||
var RedditIcon_1 = require("./RedditIcon"); | ||
exports.RedditIcon = RedditIcon_1.default; | ||
Object.defineProperty(exports, "RedditIcon", { enumerable: true, get: function () { return __importDefault(RedditIcon_1).default; } }); | ||
var RedditShareButton_1 = require("./RedditShareButton"); | ||
exports.RedditShareButton = RedditShareButton_1.default; | ||
Object.defineProperty(exports, "RedditShareButton", { enumerable: true, get: function () { return __importDefault(RedditShareButton_1).default; } }); | ||
var RedditShareCount_1 = require("./RedditShareCount"); | ||
exports.RedditShareCount = RedditShareCount_1.default; | ||
Object.defineProperty(exports, "RedditShareCount", { enumerable: true, get: function () { return __importDefault(RedditShareCount_1).default; } }); | ||
var TelegramIcon_1 = require("./TelegramIcon"); | ||
exports.TelegramIcon = TelegramIcon_1.default; | ||
Object.defineProperty(exports, "TelegramIcon", { enumerable: true, get: function () { return __importDefault(TelegramIcon_1).default; } }); | ||
var TelegramShareButton_1 = require("./TelegramShareButton"); | ||
exports.TelegramShareButton = TelegramShareButton_1.default; | ||
Object.defineProperty(exports, "TelegramShareButton", { enumerable: true, get: function () { return __importDefault(TelegramShareButton_1).default; } }); | ||
var TumblrIcon_1 = require("./TumblrIcon"); | ||
exports.TumblrIcon = TumblrIcon_1.default; | ||
Object.defineProperty(exports, "TumblrIcon", { enumerable: true, get: function () { return __importDefault(TumblrIcon_1).default; } }); | ||
var TumblrShareButton_1 = require("./TumblrShareButton"); | ||
exports.TumblrShareButton = TumblrShareButton_1.default; | ||
Object.defineProperty(exports, "TumblrShareButton", { enumerable: true, get: function () { return __importDefault(TumblrShareButton_1).default; } }); | ||
var TumblrShareCount_1 = require("./TumblrShareCount"); | ||
exports.TumblrShareCount = TumblrShareCount_1.default; | ||
Object.defineProperty(exports, "TumblrShareCount", { enumerable: true, get: function () { return __importDefault(TumblrShareCount_1).default; } }); | ||
var TwitterIcon_1 = require("./TwitterIcon"); | ||
exports.TwitterIcon = TwitterIcon_1.default; | ||
Object.defineProperty(exports, "TwitterIcon", { enumerable: true, get: function () { return __importDefault(TwitterIcon_1).default; } }); | ||
var TwitterShareButton_1 = require("./TwitterShareButton"); | ||
exports.TwitterShareButton = TwitterShareButton_1.default; | ||
Object.defineProperty(exports, "TwitterShareButton", { enumerable: true, get: function () { return __importDefault(TwitterShareButton_1).default; } }); | ||
var ViberIcon_1 = require("./ViberIcon"); | ||
exports.ViberIcon = ViberIcon_1.default; | ||
Object.defineProperty(exports, "ViberIcon", { enumerable: true, get: function () { return __importDefault(ViberIcon_1).default; } }); | ||
var ViberShareButton_1 = require("./ViberShareButton"); | ||
exports.ViberShareButton = ViberShareButton_1.default; | ||
Object.defineProperty(exports, "ViberShareButton", { enumerable: true, get: function () { return __importDefault(ViberShareButton_1).default; } }); | ||
var VKIcon_1 = require("./VKIcon"); | ||
exports.VKIcon = VKIcon_1.default; | ||
Object.defineProperty(exports, "VKIcon", { enumerable: true, get: function () { return __importDefault(VKIcon_1).default; } }); | ||
var VKShareButton_1 = require("./VKShareButton"); | ||
exports.VKShareButton = VKShareButton_1.default; | ||
Object.defineProperty(exports, "VKShareButton", { enumerable: true, get: function () { return __importDefault(VKShareButton_1).default; } }); | ||
var VKShareCount_1 = require("./VKShareCount"); | ||
exports.VKShareCount = VKShareCount_1.default; | ||
Object.defineProperty(exports, "VKShareCount", { enumerable: true, get: function () { return __importDefault(VKShareCount_1).default; } }); | ||
var WeiboIcon_1 = require("./WeiboIcon"); | ||
exports.WeiboIcon = WeiboIcon_1.default; | ||
Object.defineProperty(exports, "WeiboIcon", { enumerable: true, get: function () { return __importDefault(WeiboIcon_1).default; } }); | ||
var WeiboShareButton_1 = require("./WeiboShareButton"); | ||
exports.WeiboShareButton = WeiboShareButton_1.default; | ||
Object.defineProperty(exports, "WeiboShareButton", { enumerable: true, get: function () { return __importDefault(WeiboShareButton_1).default; } }); | ||
var WhatsappIcon_1 = require("./WhatsappIcon"); | ||
exports.WhatsappIcon = WhatsappIcon_1.default; | ||
Object.defineProperty(exports, "WhatsappIcon", { enumerable: true, get: function () { return __importDefault(WhatsappIcon_1).default; } }); | ||
var WhatsappShareButton_1 = require("./WhatsappShareButton"); | ||
exports.WhatsappShareButton = WhatsappShareButton_1.default; | ||
Object.defineProperty(exports, "WhatsappShareButton", { enumerable: true, get: function () { return __importDefault(WhatsappShareButton_1).default; } }); | ||
var WorkplaceIcon_1 = require("./WorkplaceIcon"); | ||
exports.WorkplaceIcon = WorkplaceIcon_1.default; | ||
Object.defineProperty(exports, "WorkplaceIcon", { enumerable: true, get: function () { return __importDefault(WorkplaceIcon_1).default; } }); | ||
var WorkplaceShareButton_1 = require("./WorkplaceShareButton"); | ||
exports.WorkplaceShareButton = WorkplaceShareButton_1.default; | ||
Object.defineProperty(exports, "WorkplaceShareButton", { enumerable: true, get: function () { return __importDefault(WorkplaceShareButton_1).default; } }); |
@@ -49,5 +49,5 @@ import React, { Component, Ref } from 'react'; | ||
openShareDialog: (link: string) => void; | ||
handleClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>; | ||
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => Promise<void>; | ||
render(): JSX.Element; | ||
} | ||
export {}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -27,2 +27,21 @@ }; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -75,9 +94,2 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -84,0 +96,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -9,0 +9,0 @@ }; |
{ | ||
"name": "react-share", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Social media share buttons and share counts for React.", | ||
@@ -55,23 +55,23 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@types/assert": "^1.4.6", | ||
"@types/assert": "^1.5.2", | ||
"@types/classnames": "^2.2.10", | ||
"@types/jsonp": "^0.2.0", | ||
"@types/react": "^16.9.35", | ||
"@types/react": "^16.9.49", | ||
"@types/react-dom": "^16.9.8", | ||
"@typescript-eslint/eslint-plugin": "^3.1.0", | ||
"@typescript-eslint/parser": "^3.1.0", | ||
"@typescript-eslint/eslint-plugin": "^4.0.1", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
"cross-env": "7.0.2", | ||
"css-loader": "3.5.3", | ||
"eslint": "7.2.0", | ||
"css-loader": "4.2.2", | ||
"eslint": "7.8.1", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-loader": "4.0.2", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "2.20.2", | ||
"eslint-plugin-jsx-a11y": "6.2.3", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-react": "7.20.0", | ||
"eslint-plugin-react-hooks": "4.0.4", | ||
"file-loader": "6.0.0", | ||
"html-webpack-plugin": "4.3.0", | ||
"prettier": "^2.0.5", | ||
"eslint-plugin-babel": "^5.3.1", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-jsx-a11y": "6.3.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "7.20.6", | ||
"eslint-plugin-react-hooks": "4.1.0", | ||
"file-loader": "6.1.0", | ||
"html-webpack-plugin": "4.4.1", | ||
"prettier": "^2.1.1", | ||
"react": "16.8.0", | ||
@@ -82,8 +82,8 @@ "react-dom": "16.8.0", | ||
"style-loader": "1.2.1", | ||
"terser-webpack-plugin": "3.0.3", | ||
"ts-loader": "^6.2.1", | ||
"typescript": "3.8.3", | ||
"terser-webpack-plugin": "4.1.0", | ||
"ts-loader": "^8.0.3", | ||
"typescript": "4.0.2", | ||
"url-loader": "4.1.0", | ||
"webpack": "4.43.0", | ||
"webpack-cli": "3.3.11", | ||
"webpack": "4.44.1", | ||
"webpack-cli": "3.3.12", | ||
"webpack-dev-server": "3.11.0" | ||
@@ -90,0 +90,0 @@ }, |
@@ -38,2 +38,3 @@ # react-share | ||
- Instapaper | ||
- Hatena | ||
@@ -47,2 +48,3 @@ - share counts for | ||
- Tumblr | ||
- Hatena | ||
- social media icons included in the library | ||
@@ -84,2 +86,3 @@ - supports also custom icons | ||
FacebookShareButton, | ||
HatenaShareButton, | ||
InstapaperShareButton, | ||
@@ -108,6 +111,7 @@ LineShareButton, | ||
| ---------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| **All** | **`children`** (string/element): React node<br />**`url`** (string): URL of the shared page | **`disabled`** (bool): Disables click action and adds "disabled" class<br/>**`disabledStyle`** (object, default=`{ opacity: 0.6 }`): Disabled style<br/>**`windowWidth`, `windowHeight`** (number, different default for all share buttons): opened window dimensions<br />**`beforeOnClick`** (`() => Promise`/`() => void`): Takes a function that returns a Promise to be fulfilled before calling `onClick`. If you do not return promise, `onClick` is called immediately.<br/>**`openShareDialogOnClick`** (boolean): Open dialog on click. Defaults to `true`<br/>**`onShareWindowClose`** (`() => void`): Takes a function to be called after closing share dialog.<br/>**`resetButtonStyle`** (boolean, default=`true`): Reset `button` element style. Preferred to be set to `false` if you wan't to customize the button style. | | ||
| **All** | **`children`** (string/element): React node<br />**`url`** (string): URL of the shared page | **`disabled`** (bool): Disables click action and adds "disabled" class<br/>**`disabledStyle`** (object, default=`{ opacity: 0.6 }`): Disabled style<br/>**`windowWidth`, `windowHeight`** (number, different default for all share buttons): opened window dimensions<br />**`beforeOnClick`** (`() => Promise`/`() => void`): Takes a function that returns a Promise to be fulfilled before calling `onClick`. If you do not return promise, `onClick` is called immediately.<br/>**`openShareDialogOnClick`** (boolean): Open dialog on click. Defaults to `true` except on EmailShareButton<br/>**`onShareWindowClose`** (`() => void`): Takes a function to be called after closing share dialog.<br/>**`resetButtonStyle`** (boolean, default=`true`): Reset `button` element style. Preferred to be set to `false` if you want to customize the button style. | | ||
| EmailShareButton | - | **`subject`** (string): Title of the shared page<br/>**`body`** (string): Email, will be prepended to the url.<br/>**`separator`** (string, default=`" "`): Separates body from the url | | ||
| FacebookShareButton | - | **`quote`** (string): A quote to be shared along with the link.<br/>**`hashtag`** (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. | | ||
| FacebookMessengerShareButton | **`appId`** (string): Facebook application id | **`redirectUri`** (string): The URL to redirect to after sharing (default: the shared url).<br />**`to`** (string): A user ID of a recipient. Once the dialog comes up, the sender can specify additional people as recipients. | | ||
| HatenaShareButton | - | **`title`** (string): Title of the shared page | | ||
| InstapaperShareButton | - | **`title`** (string): Title of the shared page<br/>**`description`** (string): Description of the shared page | | ||
@@ -136,2 +140,3 @@ | LinkedinShareButton | - | **`title`** (string): Title of the shared page<br/>**`summary`** (string): Description of the shared page<br/>**`source`** (string): Source of the content (e.g. your website or application name) | | ||
FacebookShareCount, | ||
HatenaShareCount, | ||
OKShareCount, | ||
@@ -171,2 +176,3 @@ PinterestShareCount, | ||
FacebookMessengerIcon, | ||
HatenaIcon, | ||
InstapaperIcon, | ||
@@ -173,0 +179,0 @@ LineIcon, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
852910
228
6065
222
20