@personare/react-freshdesk-widget
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -1,3 +0,6 @@ | ||
import { configure } from '@kadira/storybook'; | ||
import { configure, addDecorator } from '@kadira/storybook'; | ||
import GithubCorner from '@personare/react-storybook-decorator-github-corner'; | ||
addDecorator(GithubCorner); | ||
function loadStories() { | ||
@@ -4,0 +7,0 @@ require('../src/FreshdeskWidget.story'); |
{ | ||
"name": "@personare/react-freshdesk-widget", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A component of React for use the Freshdesk Widget", | ||
@@ -33,2 +33,3 @@ "main": "dist/react-freshdesk-widget.js", | ||
"@kadira/storybook-deployer": "^1.0.0", | ||
"@personare/react-storybook-decorator-github-corner": "^0.1.4", | ||
"babel-core": "^6.10.4", | ||
@@ -52,3 +53,3 @@ "babel-loader": "^6.2.4", | ||
"raw-loader": "^0.5.1", | ||
"react-addons-test-utils": "^15.2.1", | ||
"react-addons-test-utils": "15.2.1", | ||
"style-loader": "^0.13.1" | ||
@@ -55,0 +56,0 @@ }, |
@@ -20,3 +20,3 @@ # react-freshdesk-widget [![Build Status](https://scrutinizer-ci.com/g/Personare/react-freshdesk-widget/badges/build.png?b=master&s=6b40b4cc955a743a38efda66164a0ee2659d945f)](https://scrutinizer-ci.com/g/Personare/react-freshdesk-widget/build-status/master) | ||
```bash | ||
npm install @personare/react-freshdesk-widget --save | ||
yarn @personare/react-freshdesk-widget | ||
``` | ||
@@ -42,2 +42,22 @@ | ||
## With custom button | ||
```js | ||
import FreshdeskWidget from '@personare/react-freshdesk-widget'; | ||
... | ||
render() { | ||
return ( | ||
<FreshdeskWidget url="https://support.freshdesk.com" type="pop-up"> | ||
<button>Send Feedback</button> | ||
</FreshdeskWidget> | ||
); | ||
} | ||
... | ||
``` | ||
<p align="center"> | ||
<img width="100%" src="./docs/custom-button.gif?raw=true" alt="Freshdesk with custom button" /> | ||
</p> | ||
## Props | ||
@@ -368,3 +388,3 @@ | ||
```bash | ||
npm run serve | ||
yarn serve | ||
``` | ||
@@ -379,3 +399,3 @@ | ||
```bash | ||
npm run tests | ||
yarn test | ||
``` | ||
@@ -382,0 +402,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
364156
24
340
402
23
1