react-use-intercom
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/devrnt/react-use-intercom#readme", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"license": "MIT", | ||
@@ -73,3 +73,2 @@ "main": "dist/index.js", | ||
"@types/react-dom": "^18.0.6", | ||
"cypress": "12.7.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
@@ -94,4 +93,2 @@ "jest": "^29.4.1", | ||
"test:coverage": "jest --coverage", | ||
"e2e": "cypress run", | ||
"e2e:open": "cypress open", | ||
"lint": "eslint src test", | ||
@@ -98,0 +95,0 @@ "lint:fix": "eslint --fix", |
@@ -23,3 +23,10 @@ <p align="center"><img src="https://raw.githubusercontent.com/devrnt/react-use-intercom/main/assets/logo.png" alt="Logo" height="120px" style="margin-top: 20px;"/></p> | ||
``` | ||
```sh | ||
# pnpm | ||
pnpm add react-use-intercom | ||
# npm | ||
npm install react-use-intercom | ||
# yarn | ||
yarn add react-use-intercom | ||
@@ -30,3 +37,3 @@ ``` | ||
```js | ||
```ts | ||
import * as React from 'react'; | ||
@@ -91,3 +98,3 @@ | ||
#### Example | ||
```javascript | ||
```ts | ||
const App = () => { | ||
@@ -149,3 +156,3 @@ const [unreadMessagesCount, setUnreadMessagesCount] = React.useState(0); | ||
#### Example | ||
```javascript | ||
```ts | ||
import * as React from 'react'; | ||
@@ -234,3 +241,3 @@ | ||
**Remark** - the keys of the `customAttributes` object should be snake cased (this is how Intercom wants them). They are rawly passed to Intercom. | ||
```javascript | ||
```ts | ||
const { boot } = useIntercom(); | ||
@@ -237,0 +244,0 @@ |
19
284
124090