typebot.io/packages/bot-engine
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
..
blocks 🚸 Rename "webhook" block to "HTTP request" 2024-02-16 12:04:25 +01:00
forge (openai) Enable setVariable function in tools 2024-01-22 09:22:28 +01:00
logs 🔒 (logs) Remove some logs from API response to avoid sensit… 2024-01-02 15:18:20 +01:00
queries Restore chat state when user is remembered (#1333) 2024-03-07 15:39:09 +01:00
whatsapp 🐛 (whatsapp) Fix auto start when first input is file 2024-03-07 14:26:48 +01:00
addEdgeToTypebot.ts ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
computeCurrentProgress.ts 💄 Improve progress bar UI and make avoid starting at 0 2024-02-27 14:22:46 +01:00
computeTypingDuration.ts ♻️ Introduce typebot v6 with events (#1013) 2023-11-08 15:34:16 +01:00
continueBotFlow.ts (theme) Add progress bar option (#1276) 2024-02-23 08:31:14 +01:00
executeGroup.ts (rating) Add start number option in Rating block 2024-02-06 17:01:53 +01:00
executeIntegration.ts (sheets) Reset timeout after Google Sheets execution 2024-01-15 11:14:14 +01:00
executeLogic.ts ♻️ Introduce typebot v6 with events (#1013) 2023-11-08 15:34:16 +01:00
getFirstEdgeId.ts ♻️ Use at function instead of dangerous direct lookup array index 2024-03-04 14:14:06 +01:00
getNextGroup.ts (theme) Add progress bar option (#1276) 2024-02-23 08:31:14 +01:00
getPrefilledValue.ts ♻️ Introduce typebot v6 with events (#1013) 2023-11-08 15:34:16 +01:00
package.json ⬆️ Upgrade ai and openai packages 2024-03-07 14:26:48 +01:00
parseBubbleBlock.ts 🐛 (textBubble) Fix variable with text styles unwanted break lines 2024-03-04 16:21:06 +01:00
parseDynamicTheme.ts Introducing The Forge (#1072) 2023-12-13 10:22:02 +01:00
saveStateToDatabase.ts 🐛 (calCom) Don't delete session if chat reply has custom embed 2024-01-22 14:35:12 +01:00
startBotFlow.ts 🐛 (whatsapp) Fix first message capture regression 2024-01-29 09:37:19 +01:00
startSession.ts 🐛 (chat) Enable prefilledVariables in preview mode 2024-02-28 14:49:04 +01:00
tsconfig.json ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
types.ts (fileUpload) New visibility option: "Public", "Private" or "Auto" (#1196) 2024-01-30 08:02:10 +01:00