Skip to content

Commit

Permalink
1.4.6 - updating packages, fixing bugs and quality of life improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Dec 20, 2023
1 parent ec5c53f commit 10ed524
Show file tree
Hide file tree
Showing 18 changed files with 7,056 additions and 7,046 deletions.
13,920 changes: 6,983 additions & 6,937 deletions component/custom-elements.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions component/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deep-chat",
"version": "1.4.5",
"version": "1.4.6",
"description": "Customizable chat component for AI APIs",
"main": "./dist/deepChat.js",
"module": "./dist/deepChat.js",
Expand Down
30 changes: 15 additions & 15 deletions example-servers/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-servers/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"axios": "^1.4.0",
"deep-chat-react": "^1.4.5",
"deep-chat-react": "^1.4.6",
"eventsource-parser": "^1.0.0",
"next": "13.4.9",
"react": "^18.2.0",
Expand Down
14 changes: 7 additions & 7 deletions example-servers/sveltekit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-servers/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"type": "module",
"dependencies": {
"deep-chat": "^1.4.5",
"deep-chat": "^1.4.6",
"eventsource-parser": "^1.0.0"
}
}
30 changes: 15 additions & 15 deletions example-servers/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-servers/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@types/node": "^16.18.38",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"deep-chat-react": "^1.4.5",
"deep-chat-react": "^1.4.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
18 changes: 9 additions & 9 deletions other-packages/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions other-packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deep-chat-react",
"version": "1.4.5",
"version": "1.4.6",
"description": "Customizable chat component for AI APIs",
"main": "./dist/deepChat.js",
"module": "./dist/deepChat.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"license": "MIT",
"dependencies": {
"@lit-labs/react": "^1.1.1",
"deep-chat": "1.4.5"
"deep-chat": "1.4.6"
},
"devDependencies": {
"@types/react": "^18.0.28",
Expand Down
4 changes: 2 additions & 2 deletions website/docs/docs/demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This is used by default to demonstrate the component's capabilities without conn
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `speechToText?: boolean` <br />
}}

Set this to _true_ or define any of the other object properties to remove the initial setup guidance message. <br />
Set this to _true_ or define an object with properties to remove the initial setup guidance message. <br />
`response` is used to override the default demo response with a custom one. It can either be a [`Response`](/docs/connect#Response) object or a function that returns
a [`Response`](/docs/connect#Response) object. <br />
The following properties are used to toggle elements to showcase their design without making any user actions: <br />
Expand Down Expand Up @@ -46,7 +46,7 @@ import Tabs from '@theme/Tabs';
<Tabs>
<TabItem value="js" label="Sample code">

```javascript
```html
<deep-chat demo="true"></deep-chat>
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ npm install deep-chat-react
Access the component via CDN:

```
https://unpkg.com/deep-chat@1.4.5/dist/deepChat.bundle.js
https://unpkg.com/deep-chat@1.4.6/dist/deepChat.bundle.js
```
2 changes: 0 additions & 2 deletions website/docs/docs/interceptors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ The types for the return argument is `determined` by the connection variety used
- If you are connecting to a server via the [`request`](/docs/connect/#request) property - the type will be [`Response`](/docs/connect/#Response).
- If you are connecting via the [`directConnection`](/docs/directConnection) property - the type will be defined by the chosen service API.

This property is not enabled for [`server-sent`](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) [`stream`](https://deepchat.dev/docs/connect#stream) responses.

<a href="https://youtu.be/0jzILPqA454?si=2YDbr5P0vMnCt_g9&t=201">
<img src={YoutubeLogo} className={'youtube-icon'} />
Video demo
Expand Down
1 change: 0 additions & 1 deletion website/docs/docs/messages/messages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Properties related to messages.
- Type: [`MessageContent[]`](#MessageContent)

Messages that are pre-populated when the chat loads up. This is useful for displaying previous messages. <br />
If initial messages require time to be fetched, you can add them later via the [`addMessage`](/docs/methods#addMessage) method.

import ComponentContainer from '@site/src/components/table/componentContainer';
import DeepChatBrowser from '@site/src/components/table/deepChatBrowser';
Expand Down
33 changes: 0 additions & 33 deletions website/docs/docs/methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,39 +133,6 @@ filesInput.onchange = (event) => {

<LineBreak></LineBreak>

### `addMessage` {#addMessage}

- Type: ([`content: MessageContent`](/docs/messages#MessageContent), `isUpdate?: boolean`) => `void`

Add a message to the chat. This is particularly useful for adding message history after loading it. <br />
`content` is an object containing details of the message. <br />
`isUpdate` identifies whether the message should be treated as new - e.g. should [`onNewMessage`](/docs/events#onNewMessage) event
and [`textToSpeech`](/docs/speech#textToSpeech) be triggered.

#### Example

<ComponentContainerMethods propertyName={'addMessage'} displayResults={false} argument={{text: 'AI message'}}>
<DeepChatBrowser style={{borderRadius: '8px'}} demo={true}></DeepChatBrowser>
</ComponentContainerMethods>

<Tabs>
<TabItem value="js" label="Code">

```html
chatElementRef.addMessage({text: "AI message"});
```

</TabItem>
</Tabs>

<LineBreak></LineBreak>

:::caution
[`addMessage`](#addMessage) should not be used for responding to user message requests.
:::

<LineBreak></LineBreak>

### `scrollToBottom` {#scrollToBottom}

- Type: `() => void`
Expand Down
Loading

0 comments on commit 10ed524

Please sign in to comment.