@n8n/chat 0.35.0 → 0.36.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 +2 -2
- package/dist/chat.bundle.es.js +4863 -4897
- package/dist/chat.bundle.umd.js +13 -13
- package/dist/chat.es.js +2 -2
- package/dist/chat.umd.js +1 -1
- package/dist/components/Button.vue.d.ts +3 -2
- package/dist/components/Chat.vue.d.ts +1 -1
- package/dist/components/ChatFile.vue.d.ts +5 -8
- 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 +5 -2
- package/dist/components/Layout.vue.d.ts +5 -2
- package/dist/components/Message.vue.d.ts +9 -7
- package/dist/components/MessageTyping.vue.d.ts +74 -6
- package/dist/components/MessagesList.vue.d.ts +77 -7
- package/dist/components/PoweredBy.vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}> & Readonly<{}>, {
|
|
1
|
+
import { ChatMessage } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
animation?: 'bouncing' | 'scaling';
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
6
|
animation: "bouncing" | "scaling";
|
|
7
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
messageContainer: ({
|
|
9
|
+
$: import('vue').ComponentInternalInstance;
|
|
10
|
+
$data: {};
|
|
11
|
+
$props: {
|
|
12
|
+
readonly message: ChatMessage;
|
|
13
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
14
|
+
$attrs: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
$refs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
} & {
|
|
20
|
+
messageContainer: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
$slots: Readonly<{
|
|
23
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
26
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
27
|
+
$host: Element | null;
|
|
28
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
29
|
+
$el: HTMLDivElement;
|
|
30
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
31
|
+
message: ChatMessage;
|
|
32
|
+
}> & Readonly<{}>, {
|
|
33
|
+
scrollToView: () => void;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
35
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
36
|
+
created?: (() => void) | (() => void)[];
|
|
37
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
38
|
+
mounted?: (() => void) | (() => void)[];
|
|
39
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
40
|
+
updated?: (() => void) | (() => void)[];
|
|
41
|
+
activated?: (() => void) | (() => void)[];
|
|
42
|
+
deactivated?: (() => void) | (() => void)[];
|
|
43
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
44
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
45
|
+
destroyed?: (() => void) | (() => void)[];
|
|
46
|
+
unmounted?: (() => void) | (() => void)[];
|
|
47
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
48
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
49
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
50
|
+
};
|
|
51
|
+
$forceUpdate: () => void;
|
|
52
|
+
$nextTick: typeof import('vue').nextTick;
|
|
53
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
54
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
55
|
+
message: ChatMessage;
|
|
56
|
+
}> & Readonly<{}>, "scrollToView"> & import('vue').ShallowUnwrapRef<{
|
|
57
|
+
scrollToView: () => void;
|
|
58
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
59
|
+
$slots: Readonly<{
|
|
60
|
+
beforeMessage(props: {
|
|
61
|
+
message: ChatMessage;
|
|
62
|
+
}): ChatMessage;
|
|
63
|
+
default: {
|
|
64
|
+
message: ChatMessage;
|
|
65
|
+
};
|
|
66
|
+
}> & {
|
|
67
|
+
beforeMessage(props: {
|
|
68
|
+
message: ChatMessage;
|
|
69
|
+
}): ChatMessage;
|
|
70
|
+
default: {
|
|
71
|
+
message: ChatMessage;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}) | null;
|
|
75
|
+
}, HTMLDivElement>;
|
|
8
76
|
export default _default;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ChatMessage } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
messages: ChatMessage[];
|
|
4
|
+
};
|
|
2
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
3
7
|
slots: Readonly<{
|
|
4
8
|
beforeMessage(props: {
|
|
5
9
|
message: ChatMessage;
|
|
@@ -21,6 +25,8 @@ declare function __VLS_template(): {
|
|
|
21
25
|
};
|
|
22
26
|
$refs: {
|
|
23
27
|
[x: string]: unknown;
|
|
28
|
+
} & {
|
|
29
|
+
messageContainer: HTMLDivElement;
|
|
24
30
|
};
|
|
25
31
|
$slots: Readonly<{
|
|
26
32
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -29,7 +35,7 @@ declare function __VLS_template(): {
|
|
|
29
35
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
30
36
|
$host: Element | null;
|
|
31
37
|
$emit: (event: string, ...args: any[]) => void;
|
|
32
|
-
$el:
|
|
38
|
+
$el: HTMLDivElement;
|
|
33
39
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
34
40
|
message: ChatMessage;
|
|
35
41
|
}> & Readonly<{}>, {
|
|
@@ -76,14 +82,78 @@ declare function __VLS_template(): {
|
|
|
76
82
|
};
|
|
77
83
|
}) | null)[];
|
|
78
84
|
};
|
|
79
|
-
|
|
85
|
+
rootEl: HTMLDivElement;
|
|
80
86
|
};
|
|
81
87
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
82
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
89
|
+
messageComponents: (({
|
|
90
|
+
$: import('vue').ComponentInternalInstance;
|
|
91
|
+
$data: {};
|
|
92
|
+
$props: {
|
|
93
|
+
readonly message: ChatMessage;
|
|
94
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
95
|
+
$attrs: {
|
|
96
|
+
[x: string]: unknown;
|
|
97
|
+
};
|
|
98
|
+
$refs: {
|
|
99
|
+
[x: string]: unknown;
|
|
100
|
+
} & {
|
|
101
|
+
messageContainer: HTMLDivElement;
|
|
102
|
+
};
|
|
103
|
+
$slots: Readonly<{
|
|
104
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
107
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
108
|
+
$host: Element | null;
|
|
109
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
110
|
+
$el: HTMLDivElement;
|
|
111
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
112
|
+
message: ChatMessage;
|
|
113
|
+
}> & Readonly<{}>, {
|
|
114
|
+
scrollToView: () => void;
|
|
115
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
116
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
117
|
+
created?: (() => void) | (() => void)[];
|
|
118
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
119
|
+
mounted?: (() => void) | (() => void)[];
|
|
120
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
121
|
+
updated?: (() => void) | (() => void)[];
|
|
122
|
+
activated?: (() => void) | (() => void)[];
|
|
123
|
+
deactivated?: (() => void) | (() => void)[];
|
|
124
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
125
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
126
|
+
destroyed?: (() => void) | (() => void)[];
|
|
127
|
+
unmounted?: (() => void) | (() => void)[];
|
|
128
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
129
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
130
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
131
|
+
};
|
|
132
|
+
$forceUpdate: () => void;
|
|
133
|
+
$nextTick: typeof import('vue').nextTick;
|
|
134
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
135
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
136
|
+
message: ChatMessage;
|
|
137
|
+
}> & Readonly<{}>, "scrollToView"> & import('vue').ShallowUnwrapRef<{
|
|
138
|
+
scrollToView: () => void;
|
|
139
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
140
|
+
$slots: Readonly<{
|
|
141
|
+
beforeMessage(props: {
|
|
142
|
+
message: ChatMessage;
|
|
143
|
+
}): ChatMessage;
|
|
144
|
+
default: {
|
|
145
|
+
message: ChatMessage;
|
|
146
|
+
};
|
|
147
|
+
}> & {
|
|
148
|
+
beforeMessage(props: {
|
|
149
|
+
message: ChatMessage;
|
|
150
|
+
}): ChatMessage;
|
|
151
|
+
default: {
|
|
152
|
+
message: ChatMessage;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
}) | null)[];
|
|
156
|
+
}, HTMLDivElement>;
|
|
87
157
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
88
158
|
export default _default;
|
|
89
159
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|