diff --git a/package-lock.json b/package-lock.json
index 296ad77..a751ce1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "reachat",
- "version": "1.0.1",
+ "version": "1.0.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "reachat",
- "version": "1.0.1",
+ "version": "1.0.5",
"license": "Apache-2.0",
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
diff --git a/src/SessionMessages/SessionMessage/SessionMessage.tsx b/src/SessionMessages/SessionMessage/SessionMessage.tsx
index baa6626..cea1950 100644
--- a/src/SessionMessages/SessionMessage/SessionMessage.tsx
+++ b/src/SessionMessages/SessionMessage/SessionMessage.tsx
@@ -35,6 +35,7 @@ interface SessionMessageProps extends PropsWithChildren {
/**
* Whether the message is the last one in the list.
+ * This let's the chat know when to show the loading cursor.
*/
isLast?: boolean;
}
diff --git a/stories/Companion.stories.tsx b/stories/Companion.stories.tsx
index c229e65..15e8228 100644
--- a/stories/Companion.stories.tsx
+++ b/stories/Companion.stories.tsx
@@ -81,10 +81,11 @@ export const Basic = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -130,10 +131,11 @@ export const Empty = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
diff --git a/stories/Console.stories.tsx b/stories/Console.stories.tsx
index 4c38b11..99e2470 100644
--- a/stories/Console.stories.tsx
+++ b/stories/Console.stories.tsx
@@ -1,4 +1,4 @@
-import { useState, useRef, FC, useContext, Fragment } from 'react';
+import { useState, useRef, FC, useContext } from 'react';
import { Meta } from '@storybook/react';
import {
Chat,
@@ -86,10 +86,11 @@ export const Basic = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -139,10 +140,11 @@ export const Embeds = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -194,10 +196,11 @@ export const DefaultSession = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -305,10 +308,11 @@ export const FileUploads = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -360,10 +364,11 @@ export const DefaultInputValue = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -410,10 +415,11 @@ export const UndeleteableSessions = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -498,10 +504,11 @@ export const SessionGrouping = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -568,10 +575,11 @@ export const HundredSessions = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -642,10 +650,11 @@ export const HundredConversations = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -708,10 +717,11 @@ export const LongSessionNames = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -840,10 +850,11 @@ export const MarkdownShowcase = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -930,10 +941,11 @@ export const CVEExample = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -1044,10 +1056,11 @@ export const ConversationSources = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -1330,10 +1343,11 @@ export const ImageFiles = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
diff --git a/stories/Integration.stories.tsx b/stories/Integration.stories.tsx
index a2bd553..469bda9 100644
--- a/stories/Integration.stories.tsx
+++ b/stories/Integration.stories.tsx
@@ -169,10 +169,11 @@ export const _OpenAI = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -336,10 +337,11 @@ export const VercelAI = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}