docs: 📝 Fix links and update doc
This commit is contained in:
@ -4,7 +4,7 @@ sidebar_position: 4
|
|||||||
|
|
||||||
# Javascript library
|
# 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.
|
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:
|
You can use these commands:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Typebot.getPopupActions().open();
|
Typebot.getPopupActions().open()
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Typebot.getPopupActions().close();
|
Typebot.getPopupActions().close()
|
||||||
```
|
```
|
||||||
|
|
||||||
You can bind these commands on a button element, for example:
|
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:
|
You can use this command:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Typebot.getBubbleActions().openProactiveMessage();
|
Typebot.getBubbleActions().openProactiveMessage()
|
||||||
```
|
```
|
||||||
|
|
||||||
You can bind this command on a button element, for example:
|
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:
|
You can use these commands:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Typebot.getBubbleActions().open();
|
Typebot.getBubbleActions().open()
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Typebot.getBubbleActions().close();
|
Typebot.getBubbleActions().close()
|
||||||
```
|
```
|
||||||
|
|
||||||
You can bind these commands on a button element, for example:
|
You can bind these commands on a button element, for example:
|
||||||
|
@ -8,7 +8,7 @@ You can choose to embed your typebot in 3 different ways.
|
|||||||
|
|
||||||
## Standard
|
## 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"/>
|
<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
|
## 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/bubble1.png" alt="Bubble 1" width="600px"/>
|
||||||
<img src="/img/embeddings/bubble2.png" alt="Bubble 2" width="600px"/>
|
|
||||||
|
BIN
apps/docs/static/img/embeddings/bubble1.png
vendored
BIN
apps/docs/static/img/embeddings/bubble1.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 1006 KiB |
BIN
apps/docs/static/img/embeddings/bubble2.png
vendored
BIN
apps/docs/static/img/embeddings/bubble2.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 234 KiB |
BIN
apps/docs/static/img/embeddings/standard.png
vendored
BIN
apps/docs/static/img/embeddings/standard.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 817 KiB After Width: | Height: | Size: 1.0 MiB |
@ -2,7 +2,7 @@
|
|||||||
"name": "wordpress",
|
"name": "wordpress",
|
||||||
"version": "2.1.8",
|
"version": "2.1.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/typebot-io/wordpress.git",
|
"repository": "https://github.com/baptisteArno/typebot.io",
|
||||||
"author": "baptisteArno",
|
"author": "baptisteArno",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Reference in New Issue
Block a user