@doderasoftware/restify-ai 0.1.0-beta.1

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.
Files changed (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +514 -0
  3. package/dist/components/AiAvatar.vue.d.ts +27 -0
  4. package/dist/components/AiAvatar.vue.d.ts.map +1 -0
  5. package/dist/components/AiChatDrawer.vue.d.ts +148 -0
  6. package/dist/components/AiChatDrawer.vue.d.ts.map +1 -0
  7. package/dist/components/AiEmptyState.vue.d.ts +36 -0
  8. package/dist/components/AiEmptyState.vue.d.ts.map +1 -0
  9. package/dist/components/ChatInput.vue.d.ts +110 -0
  10. package/dist/components/ChatInput.vue.d.ts.map +1 -0
  11. package/dist/components/ChatMessage.vue.d.ts +44 -0
  12. package/dist/components/ChatMessage.vue.d.ts.map +1 -0
  13. package/dist/components/ChatMessageActions.vue.d.ts +33 -0
  14. package/dist/components/ChatMessageActions.vue.d.ts.map +1 -0
  15. package/dist/components/MentionList.vue.d.ts +58 -0
  16. package/dist/components/MentionList.vue.d.ts.map +1 -0
  17. package/dist/components/UserAvatar.vue.d.ts +27 -0
  18. package/dist/components/UserAvatar.vue.d.ts.map +1 -0
  19. package/dist/components/drawer/ConfirmDialog.vue.d.ts +47 -0
  20. package/dist/components/drawer/ConfirmDialog.vue.d.ts.map +1 -0
  21. package/dist/components/drawer/DrawerHeader.vue.d.ts +46 -0
  22. package/dist/components/drawer/DrawerHeader.vue.d.ts.map +1 -0
  23. package/dist/components/drawer/DrawerMessageList.vue.d.ts +44 -0
  24. package/dist/components/drawer/DrawerMessageList.vue.d.ts.map +1 -0
  25. package/dist/components/drawer/SetupGuide.vue.d.ts +19 -0
  26. package/dist/components/drawer/SetupGuide.vue.d.ts.map +1 -0
  27. package/dist/components/index.d.ts +9 -0
  28. package/dist/components/index.d.ts.map +1 -0
  29. package/dist/components/input/AttachmentsPreview.vue.d.ts +30 -0
  30. package/dist/components/input/AttachmentsPreview.vue.d.ts.map +1 -0
  31. package/dist/components/input/InputActions.vue.d.ts +28 -0
  32. package/dist/components/input/InputActions.vue.d.ts.map +1 -0
  33. package/dist/components/input/SuggestionsDropdown.vue.d.ts +32 -0
  34. package/dist/components/input/SuggestionsDropdown.vue.d.ts.map +1 -0
  35. package/dist/composables/index.d.ts +12 -0
  36. package/dist/composables/index.d.ts.map +1 -0
  37. package/dist/composables/useAiContext.d.ts +18 -0
  38. package/dist/composables/useAiContext.d.ts.map +1 -0
  39. package/dist/composables/useAiSuggestions.d.ts +11 -0
  40. package/dist/composables/useAiSuggestions.d.ts.map +1 -0
  41. package/dist/composables/useChatErrorHandling.d.ts +14 -0
  42. package/dist/composables/useChatErrorHandling.d.ts.map +1 -0
  43. package/dist/composables/useChatInput.d.ts +108 -0
  44. package/dist/composables/useChatInput.d.ts.map +1 -0
  45. package/dist/composables/useChatMarkdown.d.ts +10 -0
  46. package/dist/composables/useChatMarkdown.d.ts.map +1 -0
  47. package/dist/composables/useChatScroll.d.ts +10 -0
  48. package/dist/composables/useChatScroll.d.ts.map +1 -0
  49. package/dist/composables/useHistoryLimit.d.ts +37 -0
  50. package/dist/composables/useHistoryLimit.d.ts.map +1 -0
  51. package/dist/composables/useKeyboardShortcut.d.ts +14 -0
  52. package/dist/composables/useKeyboardShortcut.d.ts.map +1 -0
  53. package/dist/composables/useLoadingText.d.ts +12 -0
  54. package/dist/composables/useLoadingText.d.ts.map +1 -0
  55. package/dist/composables/useMentionParsing.d.ts +67 -0
  56. package/dist/composables/useMentionParsing.d.ts.map +1 -0
  57. package/dist/composables/usePageAiContext.d.ts +24 -0
  58. package/dist/composables/usePageAiContext.d.ts.map +1 -0
  59. package/dist/composables/useSuggestions.d.ts +2 -0
  60. package/dist/composables/useSuggestions.d.ts.map +1 -0
  61. package/dist/config.d.ts +13 -0
  62. package/dist/config.d.ts.map +1 -0
  63. package/dist/index.d.ts +57 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/restify-ai.js +5425 -0
  66. package/dist/restify-ai.umd.cjs +76 -0
  67. package/dist/store.d.ts +247 -0
  68. package/dist/store.d.ts.map +1 -0
  69. package/dist/style.css +1 -0
  70. package/dist/suggestions/index.d.ts +24 -0
  71. package/dist/suggestions/index.d.ts.map +1 -0
  72. package/dist/types/index.d.ts +601 -0
  73. package/dist/types/index.d.ts.map +1 -0
  74. package/package.json +119 -0
  75. package/tailwind.config.cjs +54 -0
@@ -0,0 +1,148 @@
1
+ import { ChatQuota, SubmitPayload, AiChatDrawerUI, AiChatDrawerTexts, HistoryLimitConfig, LoadingTextConfig } from '../types';
2
+
3
+ interface Props {
4
+ modelValue: boolean;
5
+ ui?: AiChatDrawerUI;
6
+ texts?: AiChatDrawerTexts;
7
+ width?: string;
8
+ fullscreenWidth?: string;
9
+ topOffset?: string;
10
+ position?: 'left' | 'right';
11
+ showBackdrop?: boolean;
12
+ closeOnBackdropClick?: boolean;
13
+ closeOnEscape?: boolean;
14
+ showQuota?: boolean;
15
+ showFullscreenToggle?: boolean;
16
+ showMinimizeButton?: boolean;
17
+ showCloseButton?: boolean;
18
+ showNewChatButton?: boolean;
19
+ confirmClose?: boolean;
20
+ historyLimit?: HistoryLimitConfig;
21
+ loadingText?: LoadingTextConfig;
22
+ autoFetchQuota?: boolean;
23
+ }
24
+ declare function onExampleClick(item: {
25
+ prompt: string;
26
+ }): void;
27
+ declare function __VLS_template(): {
28
+ header?(_: {
29
+ quota: ChatQuota;
30
+ isFullscreen: boolean;
31
+ hasHistory: boolean;
32
+ onNewChat: () => void;
33
+ onClose: () => void;
34
+ onMinimize: () => void;
35
+ onToggleFullscreen: () => void;
36
+ }): any;
37
+ quota?(_: {
38
+ quota: {
39
+ limit: number;
40
+ used: number;
41
+ remaining: number;
42
+ };
43
+ }): any;
44
+ setup?(_: {}): any;
45
+ "empty-state"?(_: {
46
+ suggestions: {
47
+ id: string;
48
+ title: string;
49
+ description: string;
50
+ }[];
51
+ onClick: typeof onExampleClick;
52
+ }): any;
53
+ message?(_: {
54
+ message: import('..').ChatMessageType;
55
+ isUser: boolean;
56
+ isLoading: boolean | undefined;
57
+ isStreaming: boolean | undefined;
58
+ }): any;
59
+ input?(_: {
60
+ modelValue: string;
61
+ sending: boolean;
62
+ disabled: boolean;
63
+ onSubmit: (payload: SubmitPayload) => void;
64
+ onCancel: () => void;
65
+ }): any;
66
+ "context-link"?(_: {}): any;
67
+ };
68
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
69
+ width: string;
70
+ fullscreenWidth: string;
71
+ topOffset: string;
72
+ position: string;
73
+ showBackdrop: boolean;
74
+ closeOnBackdropClick: boolean;
75
+ closeOnEscape: boolean;
76
+ showQuota: boolean;
77
+ showFullscreenToggle: boolean;
78
+ showMinimizeButton: boolean;
79
+ showCloseButton: boolean;
80
+ showNewChatButton: boolean;
81
+ confirmClose: boolean;
82
+ autoFetchQuota: boolean;
83
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
+ "update:modelValue": (value: boolean) => void;
85
+ close: () => void;
86
+ "contact-support": () => void;
87
+ "new-chat": () => void;
88
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
89
+ width: string;
90
+ fullscreenWidth: string;
91
+ topOffset: string;
92
+ position: string;
93
+ showBackdrop: boolean;
94
+ closeOnBackdropClick: boolean;
95
+ closeOnEscape: boolean;
96
+ showQuota: boolean;
97
+ showFullscreenToggle: boolean;
98
+ showMinimizeButton: boolean;
99
+ showCloseButton: boolean;
100
+ showNewChatButton: boolean;
101
+ confirmClose: boolean;
102
+ autoFetchQuota: boolean;
103
+ }>>> & Readonly<{
104
+ onClose?: (() => any) | undefined;
105
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
106
+ "onNew-chat"?: (() => any) | undefined;
107
+ "onContact-support"?: (() => any) | undefined;
108
+ }>, {
109
+ confirmClose: boolean;
110
+ width: string;
111
+ showNewChatButton: boolean;
112
+ showQuota: boolean;
113
+ showCloseButton: boolean;
114
+ showMinimizeButton: boolean;
115
+ showFullscreenToggle: boolean;
116
+ fullscreenWidth: string;
117
+ topOffset: string;
118
+ position: "left" | "right";
119
+ showBackdrop: boolean;
120
+ closeOnBackdropClick: boolean;
121
+ closeOnEscape: boolean;
122
+ autoFetchQuota: boolean;
123
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
124
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
125
+ export default _default;
126
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
127
+ type __VLS_TypePropsToRuntimeProps<T> = {
128
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
129
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
130
+ } : {
131
+ type: import('vue').PropType<T[K]>;
132
+ required: true;
133
+ };
134
+ };
135
+ type __VLS_WithDefaults<P, D> = {
136
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
137
+ default: D[K];
138
+ }> : P[K];
139
+ };
140
+ type __VLS_Prettify<T> = {
141
+ [K in keyof T]: T[K];
142
+ } & {};
143
+ type __VLS_WithTemplateSlots<T, S> = T & {
144
+ new (): {
145
+ $slots: S;
146
+ };
147
+ };
148
+ //# sourceMappingURL=AiChatDrawer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiChatDrawer.vue.d.ts","sourceRoot":"","sources":["../../src/components/AiChatDrawer.vue"],"names":[],"mappings":"AA8JA;AAeA,OAAO,KAAK,EAIV,SAAS,EACT,aAAa,EAGb,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAIjB,UAAU,KAAK;IACb,UAAU,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,E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,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { AISuggestion, AiEmptyStateUI, AiEmptyStateTexts } from '../types';
2
+
3
+ interface Props {
4
+ /** Custom UI classes for styling */
5
+ ui?: AiEmptyStateUI;
6
+ /** Custom text overrides for i18n support */
7
+ texts?: AiEmptyStateTexts;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "item-click": (item: AISuggestion & {
11
+ prompt: string;
12
+ }) => void;
13
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & Readonly<{
14
+ "onItem-click"?: ((item: AISuggestion & {
15
+ prompt: string;
16
+ }) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
+ default: D[K];
31
+ }> : P[K];
32
+ };
33
+ type __VLS_Prettify<T> = {
34
+ [K in keyof T]: T[K];
35
+ } & {};
36
+ //# sourceMappingURL=AiEmptyState.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiEmptyState.vue.d.ts","sourceRoot":"","sources":["../../src/components/AiEmptyState.vue"],"names":[],"mappings":"AAkFA;AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAI/E,UAAU,KAAK;IACb,oCAAoC;IACpC,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,iBAAiB,CAAA;CAC1B;;;gBAKkD,MAAM;;;;gBAAN,MAAM;;;AA2SzD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,110 @@
1
+ import { ChatInputUI, ChatInputTexts } from '../types';
2
+
3
+ interface Suggestion {
4
+ id: string;
5
+ title: string;
6
+ description: string;
7
+ }
8
+ interface Props {
9
+ modelValue: string;
10
+ disabled?: boolean;
11
+ sending?: boolean;
12
+ placeholder?: string;
13
+ supportPlaceholder?: string;
14
+ minLength?: number;
15
+ suggestions?: Suggestion[];
16
+ hasHistory?: boolean;
17
+ supportRequestMode?: boolean;
18
+ showSupportModeToggle?: boolean;
19
+ contextLinkText?: string;
20
+ ui?: ChatInputUI;
21
+ texts?: ChatInputTexts;
22
+ }
23
+ interface Mention {
24
+ id: string;
25
+ name: string;
26
+ type?: string;
27
+ metadata?: Record<string, any> | null;
28
+ }
29
+ interface SubmitPayload {
30
+ message: string;
31
+ attachments: any[];
32
+ mentions: Mention[];
33
+ isSupportRequest?: boolean;
34
+ }
35
+ declare function __VLS_template(): {
36
+ "context-link"?(_: {}): any;
37
+ };
38
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
39
+ disabled: boolean;
40
+ sending: boolean;
41
+ placeholder: string;
42
+ supportPlaceholder: string;
43
+ minLength: number;
44
+ suggestions: () => never[];
45
+ hasHistory: boolean;
46
+ supportRequestMode: boolean;
47
+ showSupportModeToggle: boolean;
48
+ contextLinkText: string;
49
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ "update:modelValue": (value: string) => void;
51
+ submit: (payload: SubmitPayload) => void;
52
+ cancel: () => void;
53
+ "suggestion-select": (suggestion: Suggestion) => void;
54
+ "toggle-support-mode": () => void;
55
+ "context-link-click": () => void;
56
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
57
+ disabled: boolean;
58
+ sending: boolean;
59
+ placeholder: string;
60
+ supportPlaceholder: string;
61
+ minLength: number;
62
+ suggestions: () => never[];
63
+ hasHistory: boolean;
64
+ supportRequestMode: boolean;
65
+ showSupportModeToggle: boolean;
66
+ contextLinkText: string;
67
+ }>>> & Readonly<{
68
+ onCancel?: (() => any) | undefined;
69
+ onSubmit?: ((payload: SubmitPayload) => any) | undefined;
70
+ "onToggle-support-mode"?: (() => any) | undefined;
71
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
72
+ "onSuggestion-select"?: ((suggestion: Suggestion) => any) | undefined;
73
+ "onContext-link-click"?: (() => any) | undefined;
74
+ }>, {
75
+ placeholder: string;
76
+ supportPlaceholder: string;
77
+ sending: boolean;
78
+ supportRequestMode: boolean;
79
+ suggestions: Suggestion[];
80
+ disabled: boolean;
81
+ showSupportModeToggle: boolean;
82
+ minLength: number;
83
+ hasHistory: boolean;
84
+ contextLinkText: string;
85
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
86
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
87
+ export default _default;
88
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
89
+ type __VLS_TypePropsToRuntimeProps<T> = {
90
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
91
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
92
+ } : {
93
+ type: import('vue').PropType<T[K]>;
94
+ required: true;
95
+ };
96
+ };
97
+ type __VLS_WithDefaults<P, D> = {
98
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
99
+ default: D[K];
100
+ }> : P[K];
101
+ };
102
+ type __VLS_Prettify<T> = {
103
+ [K in keyof T]: T[K];
104
+ } & {};
105
+ type __VLS_WithTemplateSlots<T, S> = T & {
106
+ new (): {
107
+ $slots: S;
108
+ };
109
+ };
110
+ //# sourceMappingURL=ChatInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/ChatInput.vue"],"names":[],"mappings":"AAuIA;AASA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAI3D,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,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ACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { ChatMessage, ChatMessageUI, ChatMessageTexts } from '../types';
2
+
3
+ interface Props {
4
+ message: ChatMessage;
5
+ showActions?: boolean;
6
+ loadingText?: string;
7
+ /** Custom UI classes for styling */
8
+ ui?: ChatMessageUI;
9
+ /** Custom text overrides for i18n support */
10
+ texts?: ChatMessageTexts;
11
+ }
12
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ showActions: boolean;
14
+ loadingText: string;
15
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ copy: (message: ChatMessage) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ showActions: boolean;
19
+ loadingText: string;
20
+ }>>> & Readonly<{
21
+ onCopy?: ((message: ChatMessage) => any) | undefined;
22
+ }>, {
23
+ loadingText: string;
24
+ showActions: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
44
+ //# sourceMappingURL=ChatMessage.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatMessage.vue.d.ts","sourceRoot":"","sources":["../../src/components/ChatMessage.vue"],"names":[],"mappings":"AA6LA;AAOA,OAAO,KAAK,EAAE,WAAW,EAAkB,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAI5F,UAAU,KAAK;IACb,OAAO,EAAE,WAAW,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oCAAoC;IACpC,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;;;;;;;;;;;;iBALe,MAAM;iBADN,OAAO;;AA6xBvB,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { ChatMessage, ChatMessageActionsUI, ChatMessageActionsTexts } from '../types';
2
+
3
+ interface Props {
4
+ message: ChatMessage;
5
+ /** Custom UI classes for styling */
6
+ ui?: ChatMessageActionsUI;
7
+ /** Custom text overrides for i18n support */
8
+ texts?: ChatMessageActionsTexts;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ copy: (message: ChatMessage) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & Readonly<{
13
+ onCopy?: ((message: ChatMessage) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
33
+ //# sourceMappingURL=ChatMessageActions.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatMessageActions.vue.d.ts","sourceRoot":"","sources":["../../src/components/ChatMessageActions.vue"],"names":[],"mappings":"AAqBA;AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAI1F,UAAU,KAAK;IACb,OAAO,EAAE,WAAW,CAAA;IACpB,oCAAoC;IACpC,EAAE,CAAC,EAAE,oBAAoB,CAAA;IACzB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,uBAAuB,CAAA;CAChC;;;;;;AAgJD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { MentionItem, MentionProvider, MentionListUI, MentionListTexts } from '../types';
2
+
3
+ interface Props {
4
+ items: MentionItem[];
5
+ selectedIndex?: number;
6
+ providers?: MentionProvider[];
7
+ /** Custom UI classes for styling */
8
+ ui?: MentionListUI;
9
+ /** Custom text overrides for i18n support */
10
+ texts?: MentionListTexts;
11
+ }
12
+ declare function __VLS_template(): {
13
+ "item-icon"?(_: {
14
+ item: MentionItem;
15
+ type: string;
16
+ }): any;
17
+ };
18
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
+ selectedIndex: number;
20
+ providers: () => never[];
21
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ select: (item: MentionItem) => void;
23
+ "update:selectedIndex": (index: number) => void;
24
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
25
+ selectedIndex: number;
26
+ providers: () => never[];
27
+ }>>> & Readonly<{
28
+ onSelect?: ((item: MentionItem) => any) | undefined;
29
+ "onUpdate:selectedIndex"?: ((index: number) => any) | undefined;
30
+ }>, {
31
+ selectedIndex: number;
32
+ providers: MentionProvider[];
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
+ export default _default;
36
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
+ type __VLS_TypePropsToRuntimeProps<T> = {
38
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
39
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
+ } : {
41
+ type: import('vue').PropType<T[K]>;
42
+ required: true;
43
+ };
44
+ };
45
+ type __VLS_WithDefaults<P, D> = {
46
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
+ default: D[K];
48
+ }> : P[K];
49
+ };
50
+ type __VLS_Prettify<T> = {
51
+ [K in keyof T]: T[K];
52
+ } & {};
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
58
+ //# sourceMappingURL=MentionList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionList.vue.d.ts","sourceRoot":"","sources":["../../src/components/MentionList.vue"],"names":[],"mappings":"AAgEA;AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,E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AC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { UserAvatarUI } from '../types';
2
+
3
+ interface Props {
4
+ /** Custom UI classes for styling */
5
+ ui?: UserAvatarUI;
6
+ }
7
+ declare function __VLS_template(): {
8
+ default?(_: {}): any;
9
+ };
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ //# sourceMappingURL=UserAvatar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserAvatar.vue.d.ts","sourceRoot":"","sources":["../../src/components/UserAvatar.vue"],"names":[],"mappings":"AAkBA;AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAI5C,UAAU,KAAK;IACb,oCAAoC;IACpC,EAAE,CAAC,EAAE,YAAY,CAAA;CAClB;AAOD,iBAAS,cAAc;qBA0DM,GAAG;EAK/B;AAQD,QAAA,MAAM,eAAe,mZAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { AiChatDrawerUI } from '../../types';
2
+
3
+ interface Props {
4
+ show: boolean;
5
+ title: string;
6
+ message: string;
7
+ confirmText: string;
8
+ cancelText: string;
9
+ ui?: AiChatDrawerUI;
10
+ icon?: 'warning' | null;
11
+ confirmVariant?: 'danger' | 'primary';
12
+ }
13
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ icon: null;
15
+ confirmVariant: string;
16
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ confirm: () => void;
18
+ cancel: () => void;
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
20
+ icon: null;
21
+ confirmVariant: string;
22
+ }>>> & Readonly<{
23
+ onCancel?: (() => any) | undefined;
24
+ onConfirm?: (() => any) | undefined;
25
+ }>, {
26
+ icon: "warning" | null;
27
+ confirmVariant: "danger" | "primary";
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
47
+ //# sourceMappingURL=ConfirmDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/ConfirmDialog.vue"],"names":[],"mappings":"AAyDA;AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE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 showNewChatButton: boolean;
7
+ hasHistory: boolean;
8
+ showQuota: boolean;
9
+ quota: ChatQuota;
10
+ showCloseButton: boolean;
11
+ showMinimizeButton: boolean;
12
+ showFullscreenToggle: boolean;
13
+ isFullscreen: boolean;
14
+ t: (key: keyof AiChatDrawerTexts, params?: Record<string, any>) => string;
15
+ }
16
+ declare function __VLS_template(): {
17
+ quota?(_: {}): any;
18
+ };
19
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "new-chat": () => void;
21
+ close: () => void;
22
+ minimize: () => void;
23
+ "toggle-fullscreen": () => void;
24
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
25
+ onClose?: (() => any) | undefined;
26
+ onMinimize?: (() => any) | undefined;
27
+ "onNew-chat"?: (() => any) | undefined;
28
+ "onToggle-fullscreen"?: (() => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
31
+ export default _default;
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToRuntimeProps<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
46
+ //# sourceMappingURL=DrawerHeader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/DrawerHeader.vue"],"names":[],"m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KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { ChatMessage as ChatMessageType, ChatQuota, ChatError, AiChatDrawerUI, AiChatDrawerTexts } from '../../types';
2
+
3
+ interface Props {
4
+ messages: ChatMessageType[];
5
+ loadingMessage: string;
6
+ quota: ChatQuota;
7
+ error: ChatError;
8
+ ui?: AiChatDrawerUI;
9
+ t: (key: keyof AiChatDrawerTexts, params?: Record<string, any>) => string;
10
+ }
11
+ declare function __VLS_template(): {
12
+ message?(_: {
13
+ message: ChatMessageType;
14
+ isUser: boolean;
15
+ isLoading: boolean | undefined;
16
+ isStreaming: boolean | undefined;
17
+ }): any;
18
+ };
19
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ copy: (message: any) => void;
21
+ "contact-support": () => void;
22
+ retry: () => void;
23
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
24
+ onRetry?: (() => any) | undefined;
25
+ onCopy?: ((message: any) => any) | undefined;
26
+ "onContact-support"?: (() => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
44
+ //# sourceMappingURL=DrawerMessageList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerMessageList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/DrawerMessageList.vue"],"names":[],"mappings":"AAgEA;AAIA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAI1H,UAAU,KAAK;IACb,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,SAAS,CAAA;IAChB,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,iBAAiB,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAA;CAC1E;AAaD,iBAAS,cAAc;;;;;;QAkOO,GAAG;EAGhC;AAWD,QAAA,MAAM,eAAe;;;;;;;;iFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ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