From 40636a0c6b616fc01a233645043ed98eb20522e2 Mon Sep 17 00:00:00 2001 From: Fabien Motte <662153+FabienMotte@users.noreply.github.com> Date: Wed, 23 Jul 2025 14:33:42 +0200 Subject: [PATCH 01/90] feat(ui-components): introduce chat components --- examples/js/getting-started/index.html | 4 +- examples/js/getting-started/src/app.css | 22 + .../getting-started/src/{app.js => app.tsx} | 43 ++ examples/react/getting-started/src/App.css | 22 + examples/react/getting-started/src/App.tsx | 74 +- .../getting-started/src/useStickToBottom.ts | 652 +++++++++++++++++ .../src/components/chat/ChatMessage.tsx | 251 +++++++ .../src/components/chat/ChatMessages.tsx | 301 ++++++++ .../src/components/chat/ChatPrompt.tsx | 281 ++++++++ .../src/components/chat/types.ts | 1 + .../src/components/index.ts | 4 + packages/instantsearch.css/src/chat.scss | 663 ++++++++++++++++++ .../src/themes/satellite.scss | 1 + yarn.lock | 85 ++- 14 files changed, 2396 insertions(+), 8 deletions(-) rename examples/js/getting-started/src/{app.js => app.tsx} (56%) create mode 100644 examples/react/getting-started/src/useStickToBottom.ts create mode 100644 packages/instantsearch-ui-components/src/components/chat/ChatMessage.tsx create mode 100644 packages/instantsearch-ui-components/src/components/chat/ChatMessages.tsx create mode 100644 packages/instantsearch-ui-components/src/components/chat/ChatPrompt.tsx create mode 100644 packages/instantsearch-ui-components/src/components/chat/types.ts create mode 100644 packages/instantsearch.css/src/chat.scss diff --git a/examples/js/getting-started/index.html b/examples/js/getting-started/index.html index 8ecc72dceb..5495638e43 100644 --- a/examples/js/getting-started/index.html +++ b/examples/js/getting-started/index.html @@ -42,8 +42,10 @@