Commit Graph

66 Commits

Author SHA1 Message Date
Baptiste Arnaud
0dc276c18f Restore chat state when user is remembered (#1333)
Closes #993

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added a detailed explanation page for the "Remember user" setting in
the app documentation.
- Introduced persistence of chat state across sessions, with options for
local or session storage.
- Enhanced bot functionality to store and retrieve initial chat replies
and manage bot open state with improved storage handling.
- Added a new callback for chat state persistence to bot component
props.

- **Improvements**
- Updated the general settings form to clarify the description of the
"Remember user" feature.
- Enhanced custom CSS handling and progress value persistence in bot
components.
- Added conditional transition disabling in various components for
smoother user experiences.
- Simplified the handling of `onTransitionEnd` across multiple bubble
components.

- **Refactor**
- Renamed `inputIndex` to `chunkIndex` or `index` in various components
for consistency.
	- Removed unused ESLint disable comments related to reactivity rules.
	- Adjusted import statements and cleaned up code across several files.

- **Bug Fixes**
- Fixed potential issues with undefined callbacks by introducing
optional chaining in component props.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-07 15:39:09 +01:00
Baptiste Arnaud
b05fafe518 🐛 Fix progress bar fixed position on Bubble embed
Closes #1328
2024-03-07 14:26:48 +01:00
Baptiste Arnaud
8846cdbf6b 💄 (bot) Show only loading bubble when current block only has messages 2024-03-02 14:43:38 +01:00
Baptiste Arnaud
2d7ccf17c0 (theme) Add progress bar option (#1276)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced progress bar functionality across various components for a
more interactive user experience.
	- Added progress tracking and display in chat sessions.
- **Enhancements**
- Adjusted layout height calculations in the settings and theme pages
for consistency.
- Improved theme customization options with progress bar styling and
placement settings.
- **Bug Fixes**
- Fixed dynamic height calculation issues in settings and theme side
menus by standardizing heights.
- **Style**
- Added custom styling properties for the progress bar in chat
interfaces.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-23 08:31:14 +01:00
Baptiste Arnaud
7cf1a3e26d (theme) Custom font option (#1268)
Closes #1249

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced components for customizing fonts, including Google and
custom font options.
- Enhanced theme customization by simplifying theme objects and adding
new font customization options.
- Implemented dynamic font injection for web pages based on
user-selected font configurations.

- **Bug Fixes**
- Fixed a condition in theme template card rendering to correctly check
avatar enablement.
- Corrected font property handling across various components to support
both string and object types.

- **Refactor**
	- Updated option properties in RadioButtons component to be readonly.
- Simplified logic for setting CSS variables for fonts, including checks
for font types and existence.

- **Documentation**
- Added constants and schemas for supporting new font types in theme
customization.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-20 10:36:57 +01:00
Baptiste Arnaud
f052b4c805 (settings) Add delay between bubbles option and typing disabling on first message 2024-01-29 09:37:19 +01:00
Baptiste Arnaud
42008f8c18 (openai) Enable setVariable function in tools
Closes #1178
2024-01-22 09:22:28 +01:00
Baptiste Arnaud
f4d315fed5 (openai) Add tools and functions support (#1167)
Closes #863

Got helped from #1162 for the implementation. Closing it in favor of
this PR.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced `CodeEditor` with additional properties for better form
control and validation.
- Introduced tools and functions in OpenAI integrations documentation
for custom JavaScript execution.
- Added capability to define and use custom JavaScript functions with
the OpenAI assistant.
- Expanded layout metadata options to include various input types and
languages.

- **Improvements**
- Updated the OpenAI actions to support new function execution features.

- **Documentation**
- Added new sections for tools and functions in the OpenAI integrations
guide.

- **Refactor**
- Refactored components and actions to integrate new features and
improve existing functionalities.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-19 08:05:38 +01:00
Baptiste Arnaud
98107ee636 🐛 (web) Dynamic first host avatar not displaying in viewer 2024-01-18 11:13:45 +01:00
Baptiste Arnaud
a6536461e5 (bot) Use ky for queries in bot to improve reliability 2023-12-20 08:31:22 +01:00
Baptiste Arnaud
bf626bb0a3 🐛 (stream) Fix target attribute being trimmed on message stream 2023-12-13 14:47:06 +01:00
Baptiste Arnaud
5e019bbb22 Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block.

Closes #380
2023-12-13 10:22:02 +01:00
Baptiste Arnaud
957eaf33dd Add dynamic timeout to bot engine api 2023-12-08 13:43:58 +00:00
Baptiste Arnaud
5298538ecb 🔊 Add response debug log for failing requests without errors 2023-11-17 15:42:40 +01:00
Baptiste Arnaud
1f19eb8763 🚸 Auto scroll once picture choice images are fully loaded 2023-11-15 14:10:41 +01:00
Baptiste Arnaud
084588a086 🧑‍💻 (chat) Introduce startChat and continueChat endpoints
Closes #1030
2023-11-13 15:27:36 +01:00
Baptiste Arnaud
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00
Baptiste Arnaud
a5641811a3 🐛 Fix formatted message in input block when input is retried 2023-11-01 14:01:32 +01:00
Baptiste Arnaud
1ff58818a9 ✏️ Fix popup blocked toast typo 2023-10-25 13:57:45 +02:00
Baptiste Arnaud
9bbb30f30d 🐛 (textBubble) Fix overflow with long links
Closes #764
2023-10-12 17:33:23 +02:00
Baptiste Arnaud
42fd6037f7 🐛 (openai) Fix 2 openai streaming back to back 2023-10-12 13:59:03 +02:00
Baptiste Arnaud
49826d1303 🚸 (openai) Improve streaming bubble sequence and visual 2023-10-09 11:30:51 +02:00
Baptiste Arnaud
877a58dac2 💄 Better parsing of lists and code in streaming bubbles 2023-10-06 19:41:31 +02:00
Baptiste Arnaud
b232a9495e 🚸 (openai) Improve streamed message lists CSS 2023-10-06 15:37:55 +02:00
Baptiste Arnaud
cfc5f641a6 Automatically parse markdown from variables in text bubbles
Closes #539
2023-10-05 16:50:17 +02:00
Baptiste Arnaud
5fb17dbf9e 🚸 (bot) Don't auto scroll if a text bubble was streamed
Closes #702
2023-08-31 14:52:32 +02:00
Baptiste Arnaud
b852b4af0b Add WhatsApp integration beta test (#722)
Related to #401
2023-08-29 10:05:24 +02:00
Baptiste Arnaud
af1bee8756 🚸 (bot) Update reply if we get new format from backend 2023-08-07 15:24:15 +02:00
Baptiste Arnaud
ec0a5be793 💄 (textInput) Show send icon if send label is empty 2023-08-07 14:37:11 +02:00
Baptiste Arnaud
037d4ce345 (audio) Add autoplay switch in settings 2023-08-07 12:20:38 +02:00
Baptiste Arnaud
fc25734689 ♻️ (webhook) Integrate webhook in typebot schema
Closes #313
2023-08-06 10:03:45 +02:00
Baptiste Arnaud
c534613087 🚸 (openai) Display OpenAI initial response error 2023-08-02 08:10:26 +02:00
Baptiste Arnaud
c99298e49b (paymentInput) Handle Stripe redirection
Closes #631
2023-07-27 17:25:02 +02:00
Baptiste Arnaud
320cffc420 🐛 (embed) Remove at functions for better compability 2023-07-26 17:43:50 +02:00
Baptiste Arnaud
defe00155d 🐛 Fix bunny fonts URL path 2023-07-24 09:21:20 +02:00
Baptiste Arnaud
cccf905d38 Replace Google fonts with Bunny fonts 2023-07-24 08:36:02 +02:00
Baptiste Arnaud
3952ae2755 Stream bubble content if placed right after Op…
Closes #617
2023-07-19 11:20:44 +02:00
Baptiste Arnaud
81bc0746cf ⬆️ Upgrade dependencies 2023-07-15 10:46:36 +02:00
Baptiste Arnaud
56078b4e02 🐛 (share) Enable back empty public ID for self-hosted version
Closes #576
2023-07-07 14:35:17 +02:00
Baptiste Arnaud
033f8f99dd Add Meta Pixel block
Closes #582
2023-06-28 09:52:03 +02:00
Baptiste Arnaud
eaadc59b1f Add recent section in icon and emoji picker
Closes #536
2023-06-20 14:04:33 +02:00
Baptiste Arnaud
524f1565d8 🚸 (openai) Parse stream on client to correctly handle errors 2023-06-16 19:26:29 +02:00
Baptiste Arnaud
0ca48e4c08 (js) Improve auto scroll when no host bubble
Closes #522
2023-05-26 18:31:13 +02:00
Baptiste Arnaud
4dec06fc75 🐛 (webhook) Add loading bubble when executing webhook on client 2023-05-26 12:00:16 +02:00
Baptiste Arnaud
56364fd863 (openai) Stream chat completion to avoid serverless timeout (#526)
Closes #520
2023-05-25 10:32:35 +02:00
Baptiste Arnaud
27b009dd76 Remember result in either local or session storage (#514)
Closes #513
2023-05-16 14:58:56 +02:00
Baptiste Arnaud
a3fb098dfa 🚸 Improve chat auto scroll
Instead of scrolling all the way to the bottom on each bubble, now we scroll to the top of the last bubble

Closes #486
2023-05-12 16:39:44 -04:00
Baptiste Arnaud
be009a216d 🚸 Show toast for non-uploaded file in preview mode
Closes #278
2023-05-05 15:34:58 -04:00
Baptiste Arnaud
035dded654 Add picture choice block
Closes #476
2023-05-04 09:23:33 -04:00
Baptiste Arnaud
f2d31745ca 💚 Revert rollup upgrade to make it work with turbo dev 2023-05-03 08:29:13 -04:00