Socket
Socket
Sign inDemoInstall

@ta-interaktiv/react-polymorphic-share-buttons

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ta-interaktiv/react-polymorphic-share-buttons - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## 1.1.1 – 2017-07-05
### Fixes
- 💡 Changed module name in code documentation so documentation links should
work.
- Updated dependencies
## 1.1.0 – 2017-06-01

@@ -7,0 +13,0 @@ ### ✨ New

34

dist/index.js

@@ -36,3 +36,3 @@ 'use strict';

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
* @module Polymorphic Share Buttons
* @module PolymorphicShareButtons
* @description These share buttons can be provided with an article ID. They

@@ -85,8 +85,7 @@ * will then use the Newsnet API to gather the correct links and share

READY: 'ready'
};
/**
* The subdomain to use for the call to the Newsnet API.
* @type {string}
*/
var API_SUBDOMAIN = 'mobile2';
/**
* The subdomain to use for the call to the Newsnet API.
* @type {string}
*/
};var API_SUBDOMAIN = 'mobile2';

@@ -196,14 +195,13 @@ /**

clickHandler: defaultClickHandler
};
/**
* The default click handler will call the share counting REST API upon
* clicking the buttons.
* @callback clickHandler
* @param {string} articleID The ID of the article.
* @param {community} community A community object, as provided by the
* Newsnet API
* @param {object} event The react event object.
*/
function defaultClickHandler(articleID, community) {
/**
* The default click handler will call the share counting REST API upon
* clicking the buttons.
* @callback clickHandler
* @param {string} articleID The ID of the article.
* @param {community} community A community object, as provided by the
* Newsnet API
* @param {object} event The react event object.
*/
};function defaultClickHandler(articleID, community) {
var shareTypeId = community['share_type_id'];

@@ -210,0 +208,0 @@ (0, _d3Request.request)('//' + API_SUBDOMAIN + '.' + (0, _parseHostname.parseHostname)().publicationDomain + '/api/communities/' + articleID + '/counts/' + shareTypeId).post();

{
"version": "1.1.0",
"version": "1.1.1",
"main": "dist/index.js",

@@ -26,7 +26,7 @@ "browser": "dist/index.js",

"babel-preset-react": "^6.16.0",
"eslint": "^3.9.0",
"eslint": "^4.1.1",
"eslint-config-standard": "^10.2.1",
"eslint-config-standard-jsx": "^4.0.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-node": "^5.1.0",
"eslint-plugin-promise": "^3.5.0",

@@ -33,0 +33,0 @@ "eslint-plugin-react": "^7.0.1",

@@ -14,5 +14,5 @@ # Polymorphic Sharing Buttons

<a name="module_Polymorphic Share Buttons"></a>
<a name="module_PolymorphicShareButtons"></a>
## Polymorphic Share Buttons
## PolymorphicShareButtons
These share buttons can be provided with an article ID. They

@@ -40,17 +40,17 @@ will then use the Newsnet API to gather the correct links and share

* [Polymorphic Share Buttons](#module_Polymorphic Share Buttons)
* [~PolymorphicShareButtons](#module_Polymorphic Share Buttons..PolymorphicShareButtons)
* [new PolymorphicShareButtons()](#new_module_Polymorphic Share Buttons..PolymorphicShareButtons_new)
* [~requestStatus](#module_Polymorphic Share Buttons..requestStatus) : <code>Object</code>
* [~API_SUBDOMAIN](#module_Polymorphic Share Buttons..API_SUBDOMAIN) : <code>string</code>
* [~community](#module_Polymorphic Share Buttons..community) : <code>Object</code>
* [~clickHandler](#module_Polymorphic Share Buttons..clickHandler) : <code>function</code>
* [PolymorphicShareButtons](#module_PolymorphicShareButtons)
* [~PolymorphicShareButtons](#module_PolymorphicShareButtons..PolymorphicShareButtons)
* [new PolymorphicShareButtons()](#new_module_PolymorphicShareButtons..PolymorphicShareButtons_new)
* [~requestStatus](#module_PolymorphicShareButtons..requestStatus) : <code>Object</code>
* [~API_SUBDOMAIN](#module_PolymorphicShareButtons..API_SUBDOMAIN) : <code>string</code>
* [~community](#module_PolymorphicShareButtons..community) : <code>Object</code>
* [~clickHandler](#module_PolymorphicShareButtons..clickHandler) : <code>function</code>
<a name="module_Polymorphic Share Buttons..PolymorphicShareButtons"></a>
<a name="module_PolymorphicShareButtons..PolymorphicShareButtons"></a>
### Polymorphic Share Buttons~PolymorphicShareButtons
### PolymorphicShareButtons~PolymorphicShareButtons
Share buttons that are configured using the Newsnet API, using the article ID
**Kind**: inner class of [<code>Polymorphic Share Buttons</code>](#module_Polymorphic Share Buttons)
<a name="new_module_Polymorphic Share Buttons..PolymorphicShareButtons_new"></a>
**Kind**: inner class of [<code>PolymorphicShareButtons</code>](#module_PolymorphicShareButtons)
<a name="new_module_PolymorphicShareButtons..PolymorphicShareButtons_new"></a>

@@ -69,20 +69,20 @@ #### new PolymorphicShareButtons()

<a name="module_Polymorphic Share Buttons..requestStatus"></a>
<a name="module_PolymorphicShareButtons..requestStatus"></a>
### Polymorphic Share Buttons~requestStatus : <code>Object</code>
### PolymorphicShareButtons~requestStatus : <code>Object</code>
Enum states for the loading process.
**Kind**: inner constant of [<code>Polymorphic Share Buttons</code>](#module_Polymorphic Share Buttons)
<a name="module_Polymorphic Share Buttons..API_SUBDOMAIN"></a>
**Kind**: inner constant of [<code>PolymorphicShareButtons</code>](#module_PolymorphicShareButtons)
<a name="module_PolymorphicShareButtons..API_SUBDOMAIN"></a>
### Polymorphic Share Buttons~API_SUBDOMAIN : <code>string</code>
### PolymorphicShareButtons~API_SUBDOMAIN : <code>string</code>
The subdomain to use for the call to the Newsnet API.
**Kind**: inner constant of [<code>Polymorphic Share Buttons</code>](#module_Polymorphic Share Buttons)
<a name="module_Polymorphic Share Buttons..community"></a>
**Kind**: inner constant of [<code>PolymorphicShareButtons</code>](#module_PolymorphicShareButtons)
<a name="module_PolymorphicShareButtons..community"></a>
### Polymorphic Share Buttons~community : <code>Object</code>
### PolymorphicShareButtons~community : <code>Object</code>
The community object as provided by the Newsnet API.
**Kind**: inner typedef of [<code>Polymorphic Share Buttons</code>](#module_Polymorphic Share Buttons)
**Kind**: inner typedef of [<code>PolymorphicShareButtons</code>](#module_PolymorphicShareButtons)
**Properties**

@@ -102,9 +102,9 @@

<a name="module_Polymorphic Share Buttons..clickHandler"></a>
<a name="module_PolymorphicShareButtons..clickHandler"></a>
### Polymorphic Share Buttons~clickHandler : <code>function</code>
### PolymorphicShareButtons~clickHandler : <code>function</code>
The default click handler will call the share counting REST API upon
clicking the buttons.
**Kind**: inner typedef of [<code>Polymorphic Share Buttons</code>](#module_Polymorphic Share Buttons)
**Kind**: inner typedef of [<code>PolymorphicShareButtons</code>](#module_PolymorphicShareButtons)

@@ -111,0 +111,0 @@ | Param | Type | Description |

/**
* @module Polymorphic Share Buttons
* @module PolymorphicShareButtons
* @description These share buttons can be provided with an article ID. They

@@ -112,3 +112,3 @@ * will then use the Newsnet API to gather the correct links and share

clickHandler={this.props.clickHandler.bind(null,
this.props.articleID)} />
this.props.articleID)} />
}

@@ -115,0 +115,0 @@

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