@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 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').ComponentPropsOptions<{
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,6 +1,5 @@
1
1
  import { StoryObj } from '@storybook/vue3';
2
2
  import { ChatOptions } from '../types';
3
-
4
3
  declare const meta: {
5
4
  title: string;
6
5
  render: (args: Partial<ChatOptions>) => {
@@ -1 +0,0 @@
1
-
@@ -1,5 +1,4 @@
1
1
  import { createChat } from '../../index';
2
-
3
2
  export declare function createTestChat(options?: Parameters<typeof createChat>[0]): {
4
3
  unmount: () => void;
5
4
  container: Element;
@@ -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;
@@ -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>;