2
0

docs: 📝 Fix links and update doc

This commit is contained in:
Baptiste Arnaud
2022-05-13 06:59:59 -07:00
parent e268638786
commit ddaaa68e28
6 changed files with 9 additions and 10 deletions

View File

@ -4,7 +4,7 @@ sidebar_position: 4
# Javascript library
Typebot Javascript library is open-source ([check out the repository](https://github.com/typebot-io/typebot-js)). Feel free to contribute if you're a developer and wish to improve its features.
Typebot Javascript library is open-source ([check out the repository](https://github.com/baptisteArno/typebot.io/tree/main/packages/typebot-js)). Feel free to contribute if you're a developer and wish to improve its features.
Whenever a typebot is embedded on your website, you have access to commands to automatically trigger actions on your embedding depending on its type.
@ -15,11 +15,11 @@ Whenever a typebot is embedded on your website, you have access to commands to a
You can use these commands:
```js
Typebot.getPopupActions().open();
Typebot.getPopupActions().open()
```
```js
Typebot.getPopupActions().close();
Typebot.getPopupActions().close()
```
You can bind these commands on a button element, for example:
@ -35,7 +35,7 @@ You can bind these commands on a button element, for example:
You can use this command:
```js
Typebot.getBubbleActions().openProactiveMessage();
Typebot.getBubbleActions().openProactiveMessage()
```
You can bind this command on a button element, for example:
@ -51,11 +51,11 @@ You can bind this command on a button element, for example:
You can use these commands:
```js
Typebot.getBubbleActions().open();
Typebot.getBubbleActions().open()
```
```js
Typebot.getBubbleActions().close();
Typebot.getBubbleActions().close()
```
You can bind these commands on a button element, for example:

View File

@ -8,7 +8,7 @@ You can choose to embed your typebot in 3 different ways.
## Standard
Embeds the typebot in a box with the size of your choice. This type is used at the top of [Typebot's homepage](https://www.typebot.io/)
Embeds the typebot in a box with the size of your choice anywhere on your app. This is what is used on Typebot homepage:
<img src="/img/embeddings/standard.png" alt="Standard"/>
@ -22,7 +22,6 @@ Embeds the typebot in a Popup that overlays your website. It can be triggered af
## Bubble
Embeds the typebot as a "chat bubble" at the bottom right corner of your site. Can be triggered automatically or with a click. It can also come with a "proactive message". An example can be found in [Typebot's pricing page](https://www.typebot.io/pricing)
Embeds the typebot as a "chat bubble" at the bottom right corner of your site. Can be triggered automatically or with a click. It can also come with a "proactive message".
<img src="/img/embeddings/bubble1.png" alt="Bubble 1" width="600px"/>
<img src="/img/embeddings/bubble2.png" alt="Bubble 2" width="600px"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 1006 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -2,7 +2,7 @@
"name": "wordpress",
"version": "2.1.8",
"main": "index.js",
"repository": "https://github.com/typebot-io/wordpress.git",
"repository": "https://github.com/baptisteArno/typebot.io",
"author": "baptisteArno",
"license": "AGPL-3.0-or-later",
"devDependencies": {