Commit Graph

183 Commits

Author SHA1 Message Date
Baptiste Arnaud
3a47a0fcbd 🐛 (editor) Fix AB test items not connectable 2023-11-16 16:41:02 +01:00
Baptiste Arnaud
00265af0cc ⬆️ (date) Upgrade date parser package 2023-11-14 17:27:02 +01:00
Baptiste Arnaud
084588a086 🧑‍💻 (chat) Introduce startChat and continueChat endpoints
Closes #1030
2023-11-13 15:27:36 +01:00
Baptiste Arnaud
dd4de582a9 Add more video supports (#1023)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
	- Introduced a new layout option for the TextInput component.
- Added support for GUMLET and TIKTOK video content types in
VideoBubbleContent.
- Enhanced VideoUploadContent to handle new properties like aspectRatio
and maxWidth.
- Updated VideoBubble to include aspect-ratio and max-width styles based
on content properties.
- **Refactor**
- Changed the extension used for internationalization (i18n) in the VS
Code environment.
	- Modified how environment variables are accessed in tolgee.tsx.
- Updated parseVideoUrl function to include a new property
videoSizeSuggestion.
- **Chores**
- Updated the tolgeeEnv object in env.ts and added a new optional
parameter to the getRuntimeVariable function.
- Expanded video handling capabilities by introducing new video content
types and associated regular expressions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Closes #978 #936 #926
2023-11-10 11:17:14 +01:00
Baptiste Arnaud
64418df3a1 🚸 (typebotLink) Make "current" option work like typebot links instead of jump 2023-11-08 17:05:02 +01:00
Baptiste Arnaud
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00
Baptiste Arnaud
bed8b42a2e 🧑‍💻 Migrate to Tolgee (#976)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

### Summary by CodeRabbit

- Refactor: Transitioned to a new translation library (`@tolgee/react`)
across the application, enhancing the localization capabilities and
consistency.
- New Feature: Introduced a JSON configuration file for application
settings, improving customization and flexibility.
- Refactor: Updated SVG attribute naming convention in the
`WhatsAppLogo` component to align with React standards.
- Chore: Adjusted the `.gitignore` file and added a new line at the end.
- Documentation: Added instructions for setting up environment variables
for the Tolgee i18n contribution dev tool, improving the self-hosting
configuration guide.
- Style: Updated the `CollaborationMenuButton` to hide the
`PopoverContent` component by scaling it down to zero.
- Refactor: Simplified error handling logic for fetching and updating
typebots in `TypebotProvider.tsx`, improving code readability and
maintenance.
- Refactor: Removed the dependency on the `parseGroupTitle` function,
simplifying the code in several components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-10-27 09:23:50 +02:00
Baptiste Arnaud
1d0aab71f9 🐛 (webhook) Fix webhook response data key number parsing 2023-10-16 14:33:13 +02:00
Baptiste Arnaud
ee685f14f3 (video) Allow changing video height when resolved to an iframe 2023-10-12 14:48:52 +02:00
Baptiste Arnaud
224a08b932 🚸 (condition) Don't show value in node content if operator is "set" or "empty" 2023-10-07 08:08:56 +02:00
Baptiste Arnaud
bf1f657642 🔥 Remove streamer Pages API endpoint 2023-10-06 17:45:12 +02:00
Baptiste Arnaud
225dfed313 ⬆️ (openai) Replace openai-edge with openai and upgrade next 2023-10-06 14:38:54 +02:00
Baptiste Arnaud
3838ac9c3f 🐛 New sendMessage version for the new parser
Make sure old client still communicate with old parser
2023-10-06 10:14:26 +02:00
Baptiste Arnaud
9e6a1f7dc0 ♻️ (api) Auto start bot if starting with input
Closes #877, closes #884
2023-10-04 16:47:58 +02:00
Baptiste Arnaud
a7b784b446 🚸 (videoBubble) Reparse variable video URL to correctly detect provider 2023-10-03 11:44:51 +02:00
Baptiste Arnaud
42ae75cb11 🚸 (sendEmail) Rename username SMTP creds label to avoid confusion 2023-10-02 10:24:16 +02:00
Baptiste Arnaud
76f4954540 🚸 (pictureChoice) Allow dynamic picture choice with… (#865)
… string variables
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- Refactor: Updated `GoogleSheetsNodeContent` component to use the
`options` prop instead of `action`, and integrated the `useTypebot` hook
for better functionality.
- Style: Improved UI text and layout in `GoogleSheetsSettings.tsx`,
enhancing user experience when selecting rows.
- Refactor: Simplified rendering logic in `BlockNodeContent.tsx` by
directly calling `GoogleSheetsNodeContent` component, improving code
readability.
- Bug Fix: Enhanced `injectVariableValuesInPictureChoiceBlock` function
to handle different types of values for titles, descriptions, and
picture sources, fixing issues with variable value injection.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-28 16:39:48 +02:00
Baptiste Arnaud
1ca742fc0b (setVariable) Add "Environment name" value in Set variable block (#850)
Closes #848
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Added "Environment name" as a new value type in the
SetVariable function, allowing users to distinguish between 'web' and
'whatsapp' environments.
- Refactor: Simplified session state handling in `resumeWhatsAppFlow.ts`
for improved code clarity.
- Refactor: Updated `startWhatsAppSession.ts` to include an initial
session state with WhatsApp contact and expiry timeout, enhancing
session management.
- Bug Fix: Improved null handling in `executeSetVariable.ts` for
'Contact name' and 'Phone number', preventing potential issues with
falsy values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-26 09:50:20 +02:00
Baptiste Arnaud
4f953ac272 (whatsapp) Add custom session expiration (#842)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Introduced session expiry timeout for WhatsApp
integration, allowing users to set the duration after which a session
expires.
- New Feature: Added an option to enable/disable the start bot condition
in WhatsApp integration settings.
- Refactor: Enhanced error handling by throwing specific errors when
necessary conditions are not met.
- Refactor: Improved UI components like `NumberInput` and
`SwitchWithLabel` for better usability.
- Bug Fix: Fixed issues related to session resumption and message
sending in expired sessions. Now, if a session is expired, a new one
will be started instead of attempting to resume the old one.
- Chore: Updated various schemas to reflect changes in session
management and WhatsApp settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-22 17:12:15 +02:00
Baptiste Arnaud
7d57e8dd06 ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
Baptiste Arnaud
bb13c2bd61 🛂 (fileUpload) Improve file upload size limit enforcement
Closes #799, closes #797
2023-09-19 15:42:33 +02:00
Baptiste Arnaud
6375a2425f 📝 Update support contact email 2023-09-12 09:45:45 +02:00
Baptiste Arnaud
096262cff9 🐛 (openai) Fix models dropdown list on new block 2023-09-08 17:16:15 +02:00
Ed Zynda
75e4b16af0 Add Zemantic AI Integration block (#752)
Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
2023-09-08 16:21:50 +02:00
Baptiste Arnaud
fbb198af9d (s3) Improve storage management and type safety
Closes #756
2023-09-08 15:28:11 +02:00
Baptiste Arnaud
a2e24d08a0 (date) Add min and max options to date input block
Closes #792
2023-09-08 11:38:23 +02:00
Baptiste Arnaud
aaa208cef4 🌐 Add pt_BR and more translations (#767)
Original PR: https://github.com/baptisteArno/typebot.io/pull/694

---------

Co-authored-by: Daniel Oliveira <daniel.oliveira@kununu.com>
Co-authored-by: Daniel Oliveira <daniel@headdev.com.br>
2023-09-05 18:15:59 +02:00
Baptiste Arnaud
9e8fa124b5 (dateInput) Add format option and improve parsing
Use date-fns for custom format and make sure dates are timezone independants

Closes #533, closes #592
2023-09-05 10:34:56 +02:00
Baptiste Arnaud
111fb323b1 (wait) Add pause option on Wait block
Closes #751
2023-09-04 14:52:16 +02:00
Baptiste Arnaud
5092e142ec 🐛 Fix select text in buttons node drag
Closes #697
2023-09-04 10:34:02 +02:00
Baptiste Arnaud
e8eaac45fa 🚑 (openai) Fix create credentials modal not displaying 2023-09-02 14:04:09 +02:00
Baptiste Arnaud
27a5f4eb74 (openai) Add custom provider and custom models
Closes #532
2023-09-01 16:19:59 +02:00
Baptiste Arnaud
a0a719626c 🚸 (editor) Avoid highlighting variables in text bubble if not created 2023-08-29 18:15:18 +02:00
Baptiste Arnaud
da4005e160 🐛 (embed) Make sure env.ts is not bundled in js embed lib 2023-08-29 15:00:04 +02:00
Baptiste Arnaud
b852b4af0b Add WhatsApp integration beta test (#722)
Related to #401
2023-08-29 10:05:24 +02:00
Baptiste Arnaud
efd4600b7e 🚑 Set proper env defaults 2023-08-28 11:08:15 +02:00
Baptiste Arnaud
786e5cb582 🧑‍💻 Improve env variables type safety and management (#718)
Closes #679
2023-08-28 09:13:53 +02:00
Baptiste Arnaud
ee3b94c35d (typebotLink) Better typebot link with merge option
Closes #675
2023-08-24 08:19:41 +02:00
Baptiste Arnaud
0acede92ef 🚸 Improve parsing preprocessing on typebots 2023-08-23 10:57:38 +02:00
Baptiste Arnaud
ed77f5d124 🐛 (webhook) Fix variable list parsing in custom body
Closes #687
2023-08-18 15:57:52 +02:00
Baptiste Arnaud
a4ba9a8a77 🐛 Parse valid publicId even though the prefix is empty 2023-08-17 17:59:44 +02:00
Baptiste Arnaud
906845bd76 🔒 Improve workspace API role filtering 2023-08-17 15:11:50 +02:00
Baptiste Arnaud
454d320c6b (api) Add CRUD typebot endpoints
Closes #320, closes #696
2023-08-17 09:39:11 +02:00
Baptiste Arnaud
019f72ac7e 🐛 Deprecate blockId field in items 2023-08-16 09:33:57 +02:00
Baptiste Arnaud
0078d6da71 🚸 (webhook) Parse user email instead of test email for sample 2023-08-10 08:29:50 +02:00
Baptiste Arnaud
7c81d0cbab 🚸 (openai) Add payment method alert in credentials modal 2023-08-10 07:53:11 +02:00
Baptiste Arnaud
9171727569 🚸 (webhook) Improve deep keys parser
Support for field names with dashes
2023-08-07 15:57:56 +02:00
Baptiste Arnaud
4d3f67c752 🚸 (setVariable) Rename Today setVar type to Now 2023-08-07 14:32:30 +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