@n8n/chat 0.27.1 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/App.vue.d.ts +1 -7
- package/dist/__stories__/App.stories.d.ts +0 -1
- package/dist/__tests__/setup.d.ts +0 -1
- package/dist/__tests__/utils/create.d.ts +0 -1
- package/dist/__tests__/utils/fetch.d.ts +0 -1
- package/dist/api/message.d.ts +0 -1
- package/dist/chat.bundle.es.js +6486 -6223
- package/dist/chat.bundle.umd.js +22 -22
- package/dist/chat.es.js +2833 -2855
- package/dist/chat.umd.js +9 -9
- package/dist/components/Button.vue.d.ts +8 -3
- package/dist/components/Chat.vue.d.ts +1 -1
- package/dist/components/ChatFile.vue.d.ts +6 -15
- package/dist/components/ChatWindow.vue.d.ts +1 -1
- package/dist/components/GetStarted.vue.d.ts +1 -1
- package/dist/components/GetStartedFooter.vue.d.ts +1 -1
- package/dist/components/Input.vue.d.ts +3 -3
- package/dist/components/Layout.vue.d.ts +12 -5
- package/dist/components/Message.vue.d.ts +24 -27
- package/dist/components/MessageTyping.vue.d.ts +4 -25
- package/dist/components/MessagesList.vue.d.ts +83 -22
- package/dist/components/PoweredBy.vue.d.ts +1 -1
- package/dist/composables/useChat.d.ts +0 -1
- package/dist/composables/useOptions.d.ts +0 -1
- package/dist/constants/defaults.d.ts +0 -1
- package/dist/constants/symbols.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/plugins/chat.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/types/chat.d.ts +0 -1
- package/dist/types/options.d.ts +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -184,6 +184,16 @@ createChat({
|
|
|
184
184
|
- **Type**: `string[]`
|
|
185
185
|
- **Description**: The initial messages to be displayed in the Chat window.
|
|
186
186
|
|
|
187
|
+
### `allowFileUploads`
|
|
188
|
+
- **Type**: `Ref<boolean> | boolean`
|
|
189
|
+
- **Default**: `false`
|
|
190
|
+
- **Description**: Whether to allow file uploads in the chat. If set to `true`, users will be able to upload files through the chat interface.
|
|
191
|
+
|
|
192
|
+
### `allowedFilesMimeTypes`
|
|
193
|
+
- **Type**: `Ref<string> | string`
|
|
194
|
+
- **Default**: `''`
|
|
195
|
+
- **Description**: A comma-separated list of allowed MIME types for file uploads. Only applicable if `allowFileUploads` is set to `true`. If left empty, all file types are allowed. For example: `'image/*,application/pdf'`.
|
|
196
|
+
|
|
187
197
|
## Customization
|
|
188
198
|
The Chat window is entirely customizable using CSS variables.
|
|
189
199
|
|
package/dist/App.vue.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<Readonly<import('vue').
|
|
2
|
-
[x: string]: unknown;
|
|
3
|
-
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, readonly string[] | Readonly<import('vue').ExtractPropTypes<Readonly<import('vue').ComponentObjectPropsOptions<{
|
|
4
|
-
[x: string]: unknown;
|
|
5
|
-
}>>>>, {
|
|
6
|
-
readonly [x: number]: string;
|
|
7
|
-
} | {}, {}>;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
2
|
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LoadPreviousSessionResponse, SendMessageResponse } from '../../types';
|
|
2
|
-
|
|
3
2
|
export declare function createFetchResponse<T>(data: T): () => Promise<Response>;
|
|
4
3
|
export declare const createGetLatestMessagesResponse: (data?: LoadPreviousSessionResponse["data"]) => LoadPreviousSessionResponse;
|
|
5
4
|
export declare const createSendMessageResponse: (output: SendMessageResponse["output"]) => SendMessageResponse;
|
package/dist/api/message.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ChatOptions, LoadPreviousSessionResponse, SendMessageResponse } from '../types';
|
|
2
|
-
|
|
3
2
|
export declare function loadPreviousSession(sessionId: string, options: ChatOptions): Promise<LoadPreviousSessionResponse>;
|
|
4
3
|
export declare function sendMessage(message: string, files: File[], sessionId: string, options: ChatOptions): Promise<SendMessageResponse>;
|