Skip to content

Commit 971fd07

Browse files
authored
Merge pull request #181 from calibreapp/remove-storybook
🧹 Remove Storybook
2 parents 549dc3a + ae56839 commit 971fd07

7 files changed

Lines changed: 5017 additions & 28748 deletions

File tree

.storybook/addons.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.storybook/config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Made by the team at [♠ Calibre](https://calibreapp.com/), your performance com
1818
3. [Usage](#-usage)
1919
4. [Supported Providers](#-supported-providers)
2020
5. [Adding a Provider](#-adding-a-provider)
21-
6. [Contributing](#-contributing)
22-
7. [Examples](#-examples)
21+
6. [Examples](#%EF%B8%8F-examples)
22+
7. [Contributing](#-contributing)
2323
8. [Resources](#-resources)
2424
9. [License](#-license)
2525

@@ -135,7 +135,7 @@ You can pass the following props to the `LiveChatLoaderProvider` provider:
135135
Currently there are six supported providers:
136136

137137
<details>
138-
<summary>Help Scout</summary>
138+
<summary id="help-scout">Help Scout</summary>
139139

140140
To use Help Scout import the `LiveChatLoaderProvider` and set the `provider` prop
141141
as `helpScout` and the `providerKey` prop as your Beacon API Key.
@@ -170,7 +170,7 @@ Currently the Help Scout component only supports the icon button style.
170170
</details>
171171

172172
<details>
173-
<summary>Intercom</summary>
173+
<summary id="intercom">Intercom</summary>
174174

175175
To use Intercom import the `LiveChatLoaderProvider` and set the `provider` prop
176176
as `intercom` and the `providerKey` prop as your Intercom App ID.
@@ -200,7 +200,7 @@ the `Intercom` component.
200200
</details>
201201

202202
<details>
203-
<summary>Messenger</summary>
203+
<summary id="messenger">Messenger</summary>
204204

205205
To use Messenger, import the `LiveChatLoaderProvider` and then set the `provider` prop as `messenger` and the `providerKey` prop as your Facebook Page ID.
206206

@@ -249,7 +249,7 @@ For a list of options, refer to [Facebook Customer Chat Plugin documentation](ht
249249
</details>
250250

251251
<details>
252-
<summary>Drift</summary>
252+
<summary id="drift">Drift</summary>
253253

254254
To use Drift import the `LiveChatLoaderProvider` and set the `provider` prop
255255
as `drift` and the `providerKey` prop as your Drift App ID.
@@ -276,7 +276,7 @@ You can customise the Drift Messenger by passing the following props to the
276276
</details>
277277

278278
<details>
279-
<summary>Userlike</summary>
279+
<summary id="userlike">Userlike</summary>
280280

281281
To use Userlike import the `LiveChatLoaderProvider` and set the `provider` prop
282282
as `userlike` and the `providerKey` prop as your Userlike Widget secret.
@@ -310,7 +310,7 @@ You can customise the Userlike Widget by passing the following props to the
310310
</details>
311311

312312
<details>
313-
<summary> Chatwoot </summary>
313+
<summary id="chatwoot">Chatwoot</summary>
314314

315315
To use Chatwoot import the `LiveChatLoaderProvider` and set the `provider` prop
316316
as `chatwoot` and the `providerKey` prop as your Chatwoot secret.
@@ -344,6 +344,22 @@ You can customise the Chatwoot Widget by passing the following props to the
344344

345345
To add a new live chat provider, follow the steps in [Contributing: Adding a Provider](CONTRIBUTING.md#-adding-a-provider).
346346

347+
## 🖥️ Examples
348+
349+
The [website](https://github.com/calibreapp/react-live-chat-loader/tree/master/website) directory of this repository includes a [Next.js](https://nextjs.org) app with example implementations of all currently supported providers.
350+
351+
For the initial setup of the example app, be sure first to run `npm install` + `npm run build` in the root level of the repository before running `npm install` in the `website` directory.
352+
353+
The following scripts in the example app will then be available:
354+
355+
- `npm run dev` (run a local server)
356+
- `npm run build` (run next build)
357+
- `npm run start` (run next start)
358+
359+
Visit [react-live-chat-loader.vercel.app](https://react-live-chat-loader.vercel.app/) for a hosted version of the example app.
360+
361+
> 📝  Note that some providers require safe-listed, publicly accessible domains served over HTTPS — a service like [ngrok](https://ngrok.com/) can help achieve this locally.
362+
347363
## 🙌 Contributing
348364

349365
Happy to hear you’re interested in contributing to React Live Chat Loader! Please find our contribution guidelines [here](CONTRIBUTING.md).
@@ -381,14 +397,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
381397

382398
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
383399

384-
## 🖥️ Examples
385-
386-
- [react-live-chat-loader-example-app](https://github.com/calibreapp/react-live-chat-loader/tree/master/website): example [Next.js](https://nextjs.org) application
387-
388400
## 📚 Resources
389401

390402
- [How to avoid performance regressions when using live chat tools](https://calibreapp.com/blog/fast-live-chat)
391403
- [Reducing the Intercom Messenger bundle size by 65%](https://www.intercom.com/blog/reducing-intercom-messenger-bundle-size/)
392404

393405
## 💼 License
406+
394407
This project is [MIT licensed](LICENSE).

0 commit comments

Comments
 (0)