@aleph-alpha/chat-kit 0.0.1-alpha.28
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/LICENSE +202 -0
- package/README.md +70 -0
- package/dist/ChatInput.vue_vue_type_script_setup_true_lang-DVCUwptr.js +554 -0
- package/dist/ChatService-LogwJNxh.js +9 -0
- package/dist/components/base/AgentMessage/AgentMessage.stories.d.ts +11 -0
- package/dist/components/base/AgentMessage/AgentMessage.stories.d.ts.map +1 -0
- package/dist/components/base/AgentMessage/AgentMessage.vue.d.ts +20 -0
- package/dist/components/base/AgentMessage/AgentMessage.vue.d.ts.map +1 -0
- package/dist/components/base/AgentMessage/index.d.ts +2 -0
- package/dist/components/base/AgentMessage/index.d.ts.map +1 -0
- package/dist/components/base/ChatConversationLayout/ChatConversationLayout.stories.d.ts +10 -0
- package/dist/components/base/ChatConversationLayout/ChatConversationLayout.stories.d.ts.map +1 -0
- package/dist/components/base/ChatConversationLayout/ChatConversationLayout.vue.d.ts +30 -0
- package/dist/components/base/ChatConversationLayout/ChatConversationLayout.vue.d.ts.map +1 -0
- package/dist/components/base/ChatConversationLayout/index.d.ts +3 -0
- package/dist/components/base/ChatConversationLayout/index.d.ts.map +1 -0
- package/dist/components/base/ChatConversationLayout/types.d.ts +14 -0
- package/dist/components/base/ChatConversationLayout/types.d.ts.map +1 -0
- package/dist/components/base/PromptActionButton/PromptActionButton.stories.d.ts +9 -0
- package/dist/components/base/PromptActionButton/PromptActionButton.stories.d.ts.map +1 -0
- package/dist/components/base/PromptActionButton/PromptActionButton.vue.d.ts +24 -0
- package/dist/components/base/PromptActionButton/PromptActionButton.vue.d.ts.map +1 -0
- package/dist/components/base/PromptActionButton/index.d.ts +2 -0
- package/dist/components/base/PromptActionButton/index.d.ts.map +1 -0
- package/dist/components/base/PromptInput/PromptInput.stories.d.ts +10 -0
- package/dist/components/base/PromptInput/PromptInput.stories.d.ts.map +1 -0
- package/dist/components/base/PromptInput/PromptInput.vue.d.ts +46 -0
- package/dist/components/base/PromptInput/PromptInput.vue.d.ts.map +1 -0
- package/dist/components/base/PromptInput/index.d.ts +2 -0
- package/dist/components/base/PromptInput/index.d.ts.map +1 -0
- package/dist/components/base/PromptInputDisclaimer/PromptInputDisclaimer.stories.d.ts +9 -0
- package/dist/components/base/PromptInputDisclaimer/PromptInputDisclaimer.stories.d.ts.map +1 -0
- package/dist/components/base/PromptInputDisclaimer/PromptInputDisclaimer.vue.d.ts +17 -0
- package/dist/components/base/PromptInputDisclaimer/PromptInputDisclaimer.vue.d.ts.map +1 -0
- package/dist/components/base/PromptInputDisclaimer/index.d.ts +2 -0
- package/dist/components/base/PromptInputDisclaimer/index.d.ts.map +1 -0
- package/dist/components/base/UserMessage/UserMessage.stories.d.ts +10 -0
- package/dist/components/base/UserMessage/UserMessage.stories.d.ts.map +1 -0
- package/dist/components/base/UserMessage/UserMessage.vue.d.ts +15 -0
- package/dist/components/base/UserMessage/UserMessage.vue.d.ts.map +1 -0
- package/dist/components/base/UserMessage/index.d.ts +3 -0
- package/dist/components/base/UserMessage/index.d.ts.map +1 -0
- package/dist/components/base/UserMessage/types.d.ts +8 -0
- package/dist/components/base/UserMessage/types.d.ts.map +1 -0
- package/dist/components/base/icons/SendIcon.vue.d.ts +4 -0
- package/dist/components/base/icons/SendIcon.vue.d.ts.map +1 -0
- package/dist/components/base/icons/index.d.ts +2 -0
- package/dist/components/base/icons/index.d.ts.map +1 -0
- package/dist/components/base/index.d.ts +9 -0
- package/dist/components/base/index.d.ts.map +1 -0
- package/dist/components/composed/ChatConversation/ChatConversation.stories.d.ts +16 -0
- package/dist/components/composed/ChatConversation/ChatConversation.stories.d.ts.map +1 -0
- package/dist/components/composed/ChatConversation/ChatConversation.vue.d.ts +45 -0
- package/dist/components/composed/ChatConversation/ChatConversation.vue.d.ts.map +1 -0
- package/dist/components/composed/ChatConversation/index.d.ts +3 -0
- package/dist/components/composed/ChatConversation/index.d.ts.map +1 -0
- package/dist/components/composed/ChatConversation/types.d.ts +13 -0
- package/dist/components/composed/ChatConversation/types.d.ts.map +1 -0
- package/dist/components/composed/ChatInput/ChatInput.stories.d.ts +13 -0
- package/dist/components/composed/ChatInput/ChatInput.stories.d.ts.map +1 -0
- package/dist/components/composed/ChatInput/ChatInput.vue.d.ts +52 -0
- package/dist/components/composed/ChatInput/ChatInput.vue.d.ts.map +1 -0
- package/dist/components/composed/ChatInput/index.d.ts +2 -0
- package/dist/components/composed/ChatInput/index.d.ts.map +1 -0
- package/dist/components/composed/index.d.ts +4 -0
- package/dist/components/composed/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +11 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/index.js +9 -0
- package/dist/composables/types.d.ts +31 -0
- package/dist/composables/types.d.ts.map +1 -0
- package/dist/composables/useChat.d.ts +19 -0
- package/dist/composables/useChat.d.ts.map +1 -0
- package/dist/composables/useChatKitLabels.d.ts +42 -0
- package/dist/composables/useChatKitLabels.d.ts.map +1 -0
- package/dist/handlers/index.d.ts +2 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +4 -0
- package/dist/handlers/useMessageHandler.d.ts +27 -0
- package/dist/handlers/useMessageHandler.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/services/ChatService.d.ts +42 -0
- package/dist/services/ChatService.d.ts.map +1 -0
- package/dist/services/MockChatService.d.ts +10 -0
- package/dist/services/MockChatService.d.ts.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +34 -0
- package/dist/services/types.d.ts +34 -0
- package/dist/services/types.d.ts.map +1 -0
- package/dist/test-setup.d.ts +6 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/useChat-CtN_iBTc.js +5 -0
- package/dist/useChatKitLabels-Bi0szl2l.js +18 -0
- package/dist/useMessageHandler-BdcOcw0w.js +73 -0
- package/package.json +93 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the ChatConversationLayout component
|
|
3
|
+
*
|
|
4
|
+
* @typeParam T - Message type, must have at least a `role` string property
|
|
5
|
+
*/
|
|
6
|
+
export interface ChatConversationLayoutProps<T extends {
|
|
7
|
+
role: string;
|
|
8
|
+
} = {
|
|
9
|
+
role: string;
|
|
10
|
+
}> {
|
|
11
|
+
/** Array of messages to render in the conversation layout */
|
|
12
|
+
messages: T[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/ChatConversationLayout/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;IACxF,6DAA6D;IAC7D,QAAQ,EAAE,CAAC,EAAE,CAAC;CACf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PromptActionButton from './PromptActionButton.vue';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
declare const meta: Meta<typeof PromptActionButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
8
|
+
export declare const Loading: Story;
|
|
9
|
+
//# sourceMappingURL=PromptActionButton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptActionButton.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptActionButton/PromptActionButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CASzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
ariaLabel: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
type?: 'button' | 'submit';
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
type: "button" | "submit";
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=PromptActionButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptActionButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptActionButton/PromptActionButton.vue"],"names":[],"mappings":"AAkCE,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AA8DN,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;cAxEC,OAAO;aACR,OAAO;UACV,QAAQ,GAAG,QAAQ;6EAyE9B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PromptInput from './PromptInput.vue';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
declare const meta: Meta<typeof PromptInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithToolbarSlots: Story;
|
|
8
|
+
export declare const WithFooterSlot: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
//# sourceMappingURL=PromptInput.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptInput/PromptInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAG3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CASlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAkC9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAqB5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
maxHeight?: number;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function submit(): void;
|
|
9
|
+
declare function focus(): void;
|
|
10
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
11
|
+
submit: typeof submit;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
isEmpty: boolean;
|
|
14
|
+
}, __VLS_5: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
'toolbar-left'?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
'toolbar-right'?: (props: typeof __VLS_3) => any;
|
|
19
|
+
} & {
|
|
20
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
23
|
+
focus: typeof focus;
|
|
24
|
+
submit: typeof submit;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
submit: (value: string) => any;
|
|
27
|
+
"update:modelValue": (value: string) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
ariaLabel: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
modelValue: string;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
maxHeight: number;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=PromptInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptInput/PromptInput.vue"],"names":[],"mappings":"AAiHE,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAqCJ,iBAAS,MAAM,IAAI,IAAI,CAKtB;AASD,iBAAS,KAAK,IAAI,IAAI,CAErB;AA0HH,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO;;;;CAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO9C,QAAA,MAAM,UAAU;;;;;;;;;;eA3LE,MAAM;cAFP,OAAO;gBAFL,MAAM;iBACL,MAAM;eAER,MAAM;6EAiMtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PromptInputDisclaimer from './PromptInputDisclaimer.vue';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
declare const meta: Meta<typeof PromptInputDisclaimer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithSlot: Story;
|
|
8
|
+
export declare const Empty: Story;
|
|
9
|
+
//# sourceMappingURL=PromptInputDisclaimer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptInputDisclaimer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptInputDisclaimer/PromptInputDisclaimer.stories.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,qBAAqB,CAS5C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=PromptInputDisclaimer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptInputDisclaimer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptInputDisclaimer/PromptInputDisclaimer.vue"],"names":[],"mappings":"AAiBE,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AA6BJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/PromptInputDisclaimer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import UserMessage from './UserMessage.vue';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
declare const meta: Meta<typeof UserMessage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LongMessage: Story;
|
|
8
|
+
export declare const MultilineMessage: Story;
|
|
9
|
+
export declare const WithSlotContent: Story;
|
|
10
|
+
//# sourceMappingURL=UserMessage.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMessage.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/UserMessage/UserMessage.stories.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAgBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAK9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UserMessageProps } from './types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<UserMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserMessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=UserMessage.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/UserMessage/UserMessage.vue"],"names":[],"mappings":"AAoBE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA+ClD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,4SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/UserMessage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/UserMessage/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=SendIcon.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/icons/SendIcon.vue"],"names":[],"mappings":"AAgDA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { AgentMessage } from './AgentMessage';
|
|
2
|
+
export { ChatConversationLayout } from './ChatConversationLayout';
|
|
3
|
+
export type { ChatConversationLayoutProps } from './ChatConversationLayout';
|
|
4
|
+
export { PromptActionButton } from './PromptActionButton';
|
|
5
|
+
export { PromptInput } from './PromptInput';
|
|
6
|
+
export { PromptInputDisclaimer } from './PromptInputDisclaimer';
|
|
7
|
+
export { UserMessage } from './UserMessage';
|
|
8
|
+
export type { UserMessageProps } from './UserMessage';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ChatConversation from './ChatConversation.vue';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
declare const meta: Meta<typeof ChatConversation>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
8
|
+
export declare const WithCustomAvatarFallback: Story;
|
|
9
|
+
export declare const NoIcon: Story;
|
|
10
|
+
export declare const WithCustomIcon: Story;
|
|
11
|
+
export declare const WithFooterActions: Story;
|
|
12
|
+
export declare const WithCustomUserContent: Story;
|
|
13
|
+
export declare const WithCustomAgentContent: Story;
|
|
14
|
+
export declare const StreamingSimulation: Story;
|
|
15
|
+
export declare const Empty: Story;
|
|
16
|
+
//# sourceMappingURL=ChatConversation.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatConversation.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatConversation/ChatConversation.stories.ts"],"names":[],"mappings":"AACA,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAsC3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAUvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAStC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAc5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAiB/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAcnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAcpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KA2EjC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { BaseMessage } from '../../../types';
|
|
2
|
+
import type { ChatConversationProps } from './types';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/** Replace the entire user message rendering */
|
|
5
|
+
'user-message': (props: {
|
|
6
|
+
message: BaseMessage;
|
|
7
|
+
}) => void;
|
|
8
|
+
/** Replace the user message content inside the bubble */
|
|
9
|
+
'user-message-content': (props: {
|
|
10
|
+
message: BaseMessage;
|
|
11
|
+
}) => void;
|
|
12
|
+
/** Replace the entire agent message rendering */
|
|
13
|
+
'agent-message': (props: {
|
|
14
|
+
message: BaseMessage;
|
|
15
|
+
}) => void;
|
|
16
|
+
/** Replace the agent avatar icon */
|
|
17
|
+
'agent-message-icon': (props: {
|
|
18
|
+
message: BaseMessage;
|
|
19
|
+
}) => void;
|
|
20
|
+
/** Replace the agent message header */
|
|
21
|
+
'agent-message-header': (props: {
|
|
22
|
+
message: BaseMessage;
|
|
23
|
+
}) => void;
|
|
24
|
+
/** Replace the agent message body */
|
|
25
|
+
'agent-message-content': (props: {
|
|
26
|
+
message: BaseMessage;
|
|
27
|
+
}) => void;
|
|
28
|
+
/** Provide footer actions for the agent message */
|
|
29
|
+
'agent-message-footer': (props: {
|
|
30
|
+
message: BaseMessage;
|
|
31
|
+
}) => void;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<ChatConversationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatConversationProps> & Readonly<{}>, {
|
|
34
|
+
agentAvatarImage: string;
|
|
35
|
+
agentAvatarFallback: string;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=ChatConversation.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatConversation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatConversation/ChatConversation.vue"],"names":[],"mappings":"AA6FE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAUrD,KAAK,WAAW,GAAG;IACjB,gDAAgD;IAChD,cAAc,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1D,yDAAyD;IACzD,sBAAsB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAClE,iDAAiD;IACjD,eAAe,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3D,oCAAoC;IACpC,oBAAoB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAChE,uCAAuC;IACvC,sBAAsB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IAClE,qCAAqC;IACrC,uBAAuB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,mDAAmD;IACnD,sBAAsB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;CACnE,CAAC;AAgLJ,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatConversation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseMessage } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ChatConversation component
|
|
4
|
+
*/
|
|
5
|
+
export interface ChatConversationProps {
|
|
6
|
+
/** List of messages to display */
|
|
7
|
+
messages: BaseMessage[];
|
|
8
|
+
/** URL of the agent avatar image (same for all agent messages) */
|
|
9
|
+
agentAvatarImage?: string;
|
|
10
|
+
/** Fallback text shown inside the default agent avatar when no image is available */
|
|
11
|
+
agentAvatarFallback?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatConversation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ChatInput from './ChatInput.vue';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
declare const meta: Meta<typeof ChatInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithModeToggle: Story;
|
|
8
|
+
export declare const FullExample: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
11
|
+
export declare const WithLongText: Story;
|
|
12
|
+
export declare const MobileWidth: Story;
|
|
13
|
+
//# sourceMappingURL=ChatInput.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatInput/ChatInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAM3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAShC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA+C5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA0FzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAsB1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
maxHeight?: number;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
disclaimer?: string;
|
|
9
|
+
};
|
|
10
|
+
declare function focus(): void;
|
|
11
|
+
declare function submit(): void;
|
|
12
|
+
declare var __VLS_13: {}, __VLS_16: {
|
|
13
|
+
submit: () => void;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
isEmpty: boolean;
|
|
16
|
+
}, __VLS_24: {}, __VLS_32: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
'toolbar-left'?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
'toolbar-right'?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
'send-icon'?: (props: typeof __VLS_24) => any;
|
|
23
|
+
} & {
|
|
24
|
+
footer?: (props: typeof __VLS_32) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
27
|
+
focus: typeof focus;
|
|
28
|
+
submit: typeof submit;
|
|
29
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
submit: (value: string) => any;
|
|
31
|
+
"update:modelValue": (value: string) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
ariaLabel: string;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
loading: boolean;
|
|
39
|
+
modelValue: string;
|
|
40
|
+
placeholder: string;
|
|
41
|
+
maxHeight: number;
|
|
42
|
+
disclaimer: string;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=ChatInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatInput/ChatInput.vue"],"names":[],"mappings":"AAsGE,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAgCJ,iBAAS,KAAK,IAAI,IAAI,CAErB;AAED,iBAAS,MAAM,IAAI,IAAI,CAEtB;AAoIH,QAAA,IAAuB,QAAQ,IAAW,EAAE,QAAQ;;;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC5G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;;;;;;;eAxLE,MAAM;cAHP,OAAO;aACR,OAAO;gBAHJ,MAAM;iBACL,MAAM;eAGR,MAAM;gBAEL,MAAM;6EA4LvB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/composed/ChatInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/composed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AgentMessage, ChatConversationLayout, PromptActionButton, PromptInput, PromptInputDisclaimer, UserMessage, } from './base';
|
|
2
|
+
export type { ChatConversationLayoutProps, UserMessageProps } from './base';
|
|
3
|
+
export { ChatConversation, ChatInput } from './composed';
|
|
4
|
+
export type { ChatConversationProps } from './composed';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,qBAAqB,EACrB,WAAW,GACZ,MAAM,QAAQ,CAAC;AAChB,YAAY,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A, _, a, b, c, d, e, f } from "../ChatInput.vue_vue_type_script_setup_true_lang-DVCUwptr.js";
|
|
2
|
+
export {
|
|
3
|
+
A as AgentMessage,
|
|
4
|
+
_ as ChatConversation,
|
|
5
|
+
a as ChatConversationLayout,
|
|
6
|
+
b as ChatInput,
|
|
7
|
+
c as PromptActionButton,
|
|
8
|
+
d as PromptInput,
|
|
9
|
+
e as PromptInputDisclaimer,
|
|
10
|
+
f as UserMessage
|
|
11
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useChat } from './useChat';
|
|
2
|
+
export { provideChatKitLabels, useChatKitLabels, defaultChatKitLabels, CHAT_KIT_LABELS, } from './useChatKitLabels';
|
|
3
|
+
export type { ChatKitLabels } from './useChatKitLabels';
|
|
4
|
+
export type { ChatActions, ChatState, UseChatReturn } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ChatMessage, ChatResponse } from '../services/types';
|
|
2
|
+
import type { BaseMessage } from '../types';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* State managed by the chat composable
|
|
6
|
+
*/
|
|
7
|
+
export interface ChatState {
|
|
8
|
+
messages: BaseMessage[];
|
|
9
|
+
isLoading: Ref<boolean>;
|
|
10
|
+
error: Ref<Error | null>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Actions provided by the chat composable
|
|
14
|
+
*/
|
|
15
|
+
export interface ChatActions {
|
|
16
|
+
sendMessage: (message: ChatMessage) => Promise<void>;
|
|
17
|
+
clearMessages: () => void;
|
|
18
|
+
retryLastMessage: () => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Return type for the useChat composable
|
|
22
|
+
*/
|
|
23
|
+
export interface UseChatReturn {
|
|
24
|
+
messages: BaseMessage[];
|
|
25
|
+
isLoading: Ref<boolean>;
|
|
26
|
+
error: Ref<Error | null>;
|
|
27
|
+
sendMessage: (message: ChatMessage) => Promise<ChatResponse>;
|
|
28
|
+
clearMessages?: () => void;
|
|
29
|
+
retryLastMessage?: () => Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/composables/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACxB,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAE5B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACxB,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAGzB,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7D,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable function signature for chat functionality
|
|
3
|
+
*
|
|
4
|
+
* This is a skeleton function signature that defines the contract
|
|
5
|
+
* for the useChat composable. Implementations should provide the
|
|
6
|
+
* actual logic for managing chat state and interactions.
|
|
7
|
+
*
|
|
8
|
+
* @param service - The chat service instance to use
|
|
9
|
+
* @param config - Optional configuration for the composable
|
|
10
|
+
* @returns Object containing chat state and actions
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const chat = useChat();
|
|
15
|
+
* await chat.sendMessage({ role: 'user', content: 'Hello' });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function useChat(): void;
|
|
19
|
+
//# sourceMappingURL=useChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChat.d.ts","sourceRoot":"","sources":["../../src/composables/useChat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,SAAK"}
|