-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bce9141
commit c6e8594
Showing
25 changed files
with
1,031 additions
and
1,610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,13 +44,6 @@ test.describe("Send email block", () => { | |
page.locator(`button >> text=${env.SMTP_USERNAME}`), | ||
).toBeVisible(); | ||
|
||
await page.fill( | ||
'[placeholder="[email protected], [email protected]"]', | ||
"[email protected], [email protected]", | ||
); | ||
await expect(page.locator("span >> [email protected]")).toBeVisible(); | ||
await expect(page.locator("span >> [email protected]")).toBeVisible(); | ||
|
||
await page.fill( | ||
'[placeholder="[email protected], [email protected]"]', | ||
"[email protected], [email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,11 @@ There, you can change the container dimensions. Here is a code example: | |
|
||
```html | ||
<script type="module"> | ||
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js' | ||
import Typebot from "https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js"; | ||
Typebot.initStandard({ | ||
typebot: 'my-typebot', | ||
}) | ||
typebot: "my-typebot", | ||
}); | ||
</script> | ||
|
||
<typebot-standard style="width: 100%; height: 600px; "></typebot-standard> | ||
|
@@ -54,13 +54,13 @@ Here is an example: | |
|
||
```html | ||
<script type="module"> | ||
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js' | ||
import Typebot from "https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js"; | ||
Typebot.initPopup({ | ||
typebot: 'my-typebot', | ||
apiHost: 'http://localhost:3001', | ||
typebot: "my-typebot", | ||
apiHost: "http://localhost:3001", | ||
autoShowDelay: 3000, | ||
}) | ||
}); | ||
</script> | ||
``` | ||
|
||
|
@@ -71,15 +71,15 @@ This code will automatically trigger the popup window after 3 seconds. | |
You can use these commands: | ||
|
||
```js | ||
Typebot.open() | ||
Typebot.open(); | ||
``` | ||
|
||
```js | ||
Typebot.close() | ||
Typebot.close(); | ||
``` | ||
|
||
```js | ||
Typebot.toggle() | ||
Typebot.toggle(); | ||
``` | ||
|
||
You can bind these commands on a button element, for example: | ||
|
@@ -96,21 +96,21 @@ Here is an example: | |
|
||
```html | ||
<script type="module"> | ||
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js' | ||
import Typebot from "https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js"; | ||
Typebot.initBubble({ | ||
typebot: 'my-typebot', | ||
typebot: "my-typebot", | ||
previewMessage: { | ||
message: 'I have a question for you!', | ||
message: "I have a question for you!", | ||
autoShowDelay: 5000, | ||
avatarUrl: 'https://avatars.githubusercontent.com/u/16015833?v=4', | ||
avatarUrl: "https://avatars.githubusercontent.com/u/16015833?v=4", | ||
}, | ||
theme: { | ||
button: { backgroundColor: '#0042DA', iconColor: '#FFFFFF' }, | ||
previewMessage: { backgroundColor: '#ffffff', textColor: 'black' }, | ||
chatWindow: { backgroundColor: '#ffffff' }, | ||
button: { backgroundColor: "#0042DA", iconColor: "#FFFFFF" }, | ||
previewMessage: { backgroundColor: "#ffffff", textColor: "black" }, | ||
chatWindow: { backgroundColor: "#ffffff" }, | ||
}, | ||
}) | ||
}); | ||
</script> | ||
``` | ||
|
||
|
@@ -121,27 +121,27 @@ This code will show the bubble and let a preview message appear after 5 seconds. | |
You can use these commands: | ||
|
||
```js | ||
Typebot.showPreviewMessage() | ||
Typebot.showPreviewMessage(); | ||
``` | ||
|
||
```js | ||
Typebot.hidePreviewMessage() | ||
Typebot.hidePreviewMessage(); | ||
``` | ||
|
||
### Open or close the typebot | ||
|
||
You can use these commands: | ||
|
||
```js | ||
Typebot.open() | ||
Typebot.open(); | ||
``` | ||
|
||
```js | ||
Typebot.close() | ||
Typebot.close(); | ||
``` | ||
|
||
```js | ||
Typebot.toggle() | ||
Typebot.toggle(); | ||
``` | ||
|
||
You can bind these commands on a button element, for example: | ||
|
@@ -156,12 +156,12 @@ You can prefill the bot variable values in your embed code by adding the `prefil | |
|
||
```js | ||
Typebot.initStandard({ | ||
typebot: 'my-typebot', | ||
typebot: "my-typebot", | ||
prefilledVariables: { | ||
'Current URL': 'https://my-site/account', | ||
'User name': 'John Doe', | ||
"Current URL": "https://my-site/account", | ||
"User name": "John Doe", | ||
}, | ||
}) | ||
}); | ||
``` | ||
|
||
It will prefill the `Current URL` variable with "https://my-site/account" and the `User name` variable with "John Doe". More info about variables: [here](/editor/variables). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
plugins: [require("tailwindcss")(), require("autoprefixer")()], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.