@n8n/design-system 2.38.3 → 2.39.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.
Files changed (181) hide show
  1. package/README.md +12 -1
  2. package/dist/components/AskAssistantAvatar/AssistantAvatar.vue.d.ts +3 -2
  3. package/dist/components/AskAssistantButton/AskAssistantButton.vue.d.ts +3 -2
  4. package/dist/components/AskAssistantChat/AskAssistantChat.vue.d.ts +57 -672
  5. package/dist/components/AskAssistantChat/messages/BaseMessage.vue.d.ts +8 -12
  6. package/dist/components/AskAssistantChat/messages/BlockMessage.vue.d.ts +3 -2
  7. package/dist/components/AskAssistantChat/messages/CodeDiffMessage.vue.d.ts +3 -2
  8. package/dist/components/AskAssistantChat/messages/ErrorMessage.vue.d.ts +2 -1
  9. package/dist/components/AskAssistantChat/messages/EventMessage.vue.d.ts +2 -1
  10. package/dist/components/AskAssistantChat/messages/MessageRating.vue.d.ts +3 -138
  11. package/dist/components/AskAssistantChat/messages/MessageWrapper.vue.d.ts +24 -27
  12. package/dist/components/AskAssistantChat/messages/RestoreVersionConfirm.vue.d.ts +3 -2
  13. package/dist/components/AskAssistantChat/messages/TextMessage.vue.d.ts +11 -19
  14. package/dist/components/AskAssistantChat/messages/ThinkingMessage.vue.d.ts +3 -2
  15. package/dist/components/AskAssistantChat/messages/ToolMessage.vue.d.ts +2 -1
  16. package/dist/components/AskAssistantChat/messages/helpers.d.ts +6 -8
  17. package/dist/components/AskAssistantIcon/AssistantIcon.vue.d.ts +3 -2
  18. package/dist/components/AskAssistantText/AssistantText.vue.d.ts +3 -2
  19. package/dist/components/BlinkingCursor/BlinkingCursor.vue.d.ts +2 -1
  20. package/dist/components/CanvasCollaborationPill/CanvasCollaborationPill.vue.d.ts +3 -2
  21. package/dist/components/CanvasPill/CanvasPill.vue.d.ts +9 -12
  22. package/dist/components/CanvasThinkingPill/CanvasThinkingPill.vue.d.ts +3 -2
  23. package/dist/components/CodeDiff/CodeDiff.vue.d.ts +3 -2
  24. package/dist/components/ConditionalRouterLink/CondtionalRouterLink.vue.d.ts +11 -13
  25. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts +9 -20
  26. package/dist/components/DateRangePicker/DateRangePickerField.vue.d.ts +2 -1
  27. package/dist/components/IconTextButton/IconTextButton.vue.d.ts +8 -16
  28. package/dist/components/InlineAskAssistantButton/InlineAskAssistantButton.vue.d.ts +3 -2
  29. package/dist/components/N8nActionDropdown/ActionDropdown.vue.d.ts +22 -15
  30. package/dist/components/N8nActionPill/ActionPill.vue.d.ts +10 -13
  31. package/dist/components/N8nActionToggle/ActionToggle.vue.d.ts +18 -13
  32. package/dist/components/N8nAiActivityStep/AiActivityStep.vue.d.ts +10 -13
  33. package/dist/components/N8nAiActivityStepButton/AiActivityStepButton.vue.d.ts +11 -19
  34. package/dist/components/N8nAiActivityStepChevron/AiActivityStepChevron.vue.d.ts +5 -1
  35. package/dist/components/N8nAiActivityStepGroup/AiActivityStepGroup.vue.d.ts +12 -13
  36. package/dist/components/N8nAiActivityStepResultSection/AiActivityStepResultSection.vue.d.ts +7 -11
  37. package/dist/components/N8nAiModelSelectorDropdown/AiModelSelectorDropdown.vue.d.ts +17 -24
  38. package/dist/components/N8nAlert/Alert.vue.d.ts +14 -15
  39. package/dist/components/N8nAlertDialog/AlertDialog.vue.d.ts +6 -13
  40. package/dist/components/N8nAnimatedCollapsibleContent/AnimatedCollapsibleContent.vue.d.ts +7 -11
  41. package/dist/components/N8nAvatar/Avatar.vue.d.ts +3 -2
  42. package/dist/components/N8nBadge/Badge.vue.d.ts +8 -12
  43. package/dist/components/N8nBlockUi/BlockUi.vue.d.ts +2 -1
  44. package/dist/components/N8nBreadcrumbs/Breadcrumbs.vue.d.ts +10 -13
  45. package/dist/components/N8nButton/Button.vue.d.ts +9 -12
  46. package/dist/components/N8nButtonList/ButtonList.vue.d.ts +8 -12
  47. package/dist/components/N8nCallout/Callout.vue.d.ts +12 -14
  48. package/dist/components/N8nCard/Card.vue.d.ts +16 -16
  49. package/dist/components/N8nChatActions/ChatActions.types.d.ts +27 -0
  50. package/dist/components/N8nChatActions/ChatActions.vue.d.ts +17 -0
  51. package/dist/components/N8nChatInput/ChatInput.vue.d.ts +19 -22
  52. package/dist/components/N8nChatMessage/ChatMessage.vue.d.ts +7 -21
  53. package/dist/components/N8nCircleLoader/CircleLoader.vue.d.ts +3 -2
  54. package/dist/components/N8nCodeBlock/CodeBlock.vue.d.ts +6 -6
  55. package/dist/components/N8nCollapsiblePanel/CollapsiblePanel.vue.d.ts +11 -13
  56. package/dist/components/N8nColorPicker/ColorPicker.vue.d.ts +3 -2
  57. package/dist/components/N8nCommandBar/CommandBar.vue.d.ts +6 -168
  58. package/dist/components/N8nCommandBar/CommandBarItem.vue.d.ts +3 -2
  59. package/dist/components/N8nCopyInput/CopyInput.vue.d.ts +3 -2
  60. package/dist/components/N8nDataTableServer/N8nDataTableServer.vue.d.ts +29 -34
  61. package/dist/components/N8nDatatable/Datatable.vue.d.ts +18 -12
  62. package/dist/components/N8nDialog/Dialog.vue.d.ts +7 -11
  63. package/dist/components/N8nDialog/DialogClose.vue.d.ts +9 -12
  64. package/dist/components/N8nDialog/DialogContent.vue.d.ts +7 -11
  65. package/dist/components/N8nDialog/DialogDescription.vue.d.ts +7 -11
  66. package/dist/components/N8nDialog/DialogFooter.vue.d.ts +7 -11
  67. package/dist/components/N8nDialog/DialogHeader.vue.d.ts +7 -11
  68. package/dist/components/N8nDialog/DialogOverlay.vue.d.ts +2 -1
  69. package/dist/components/N8nDialog/DialogTitle.vue.d.ts +7 -11
  70. package/dist/components/N8nDropdownMenu/DropdownMenu.types.d.ts +1 -0
  71. package/dist/components/N8nDropdownMenu/DropdownMenu.vue.d.ts +19 -14
  72. package/dist/components/N8nDropdownMenu/DropdownMenuItem.vue.d.ts +18 -13
  73. package/dist/components/N8nDropdownMenu/DropdownMenuItems.vue.d.ts +18 -13
  74. package/dist/components/N8nDropdownMenu/DropdownMenuSearch.vue.d.ts +9 -21
  75. package/dist/components/N8nDropdownMenu/DropdownMenuSearchableContent.vue.d.ts +19 -23
  76. package/dist/components/N8nEmptyState/EmptyState.vue.d.ts +14 -15
  77. package/dist/components/N8nEmptyState/EmptyStateIconCards.vue.d.ts +2 -1
  78. package/dist/components/N8nExternalLink/ExternalLink.vue.d.ts +7 -11
  79. package/dist/components/N8nFloatingWindow/FloatingWindow.vue.d.ts +11 -21
  80. package/dist/components/N8nFormBox/FormBox.vue.d.ts +8 -12
  81. package/dist/components/N8nFormInput/FormInput.vue.d.ts +9 -285
  82. package/dist/components/N8nFormInputs/FormInputs.vue.d.ts +3 -2
  83. package/dist/components/N8nHeaderAction/HeaderAction.vue.d.ts +2 -1
  84. package/dist/components/N8nHeading/Heading.vue.d.ts +7 -11
  85. package/dist/components/N8nHoverCard/HoverCard.vue.d.ts +18 -20
  86. package/dist/components/N8nIcon/Icon.vue.d.ts +2 -1
  87. package/dist/components/N8nIconButton/IconButton.vue.d.ts +2 -1
  88. package/dist/components/N8nIconPicker/IconColorPicker.vue.d.ts +4 -3
  89. package/dist/components/N8nIconPicker/IconPicker.vue.d.ts +8 -188
  90. package/dist/components/N8nIconPicker/SkinTonePicker.vue.d.ts +4 -3
  91. package/dist/components/N8nInfoAccordion/InfoAccordion.vue.d.ts +8 -12
  92. package/dist/components/N8nInfoTip/InfoTip.vue.d.ts +10 -13
  93. package/dist/components/N8nInlineTextEdit/InlineTextEdit.vue.d.ts +3 -172
  94. package/dist/components/N8nInput/Input.vue.d.ts +7 -16
  95. package/dist/components/N8nInputLabel/InputLabel.vue.d.ts +14 -15
  96. package/dist/components/N8nInputNumber/InputNumber.vue.d.ts +7 -118
  97. package/dist/components/N8nKeyboardShortcut/N8nKeyboardShortcut.vue.d.ts +2 -1
  98. package/dist/components/N8nLink/Link.vue.d.ts +7 -11
  99. package/dist/components/N8nLoading/Loading.vue.d.ts +2 -1
  100. package/dist/components/N8nLogo/Logo.vue.d.ts +8 -16
  101. package/dist/components/N8nMarkdown/Markdown.vue.d.ts +3 -4
  102. package/dist/components/N8nMarkdownEditor/MarkdownEditor.types.d.ts +2 -0
  103. package/dist/components/N8nMarkdownEditor/MarkdownEditor.vue.d.ts +7 -6
  104. package/dist/components/N8nMarkdownEditor/MarkdownEditorToolbar.vue.d.ts +3 -2
  105. package/dist/components/N8nMarkdownEditor/composables/useMarkdownEditor.d.ts +1 -1
  106. package/dist/components/N8nMenuItem/MenuItem.vue.d.ts +3 -2
  107. package/dist/components/N8nNavigationDropdown/NavigationDropdown.vue.d.ts +13 -176
  108. package/dist/components/N8nNodeCreatorNode/NodeCreatorNode.vue.d.ts +9 -18
  109. package/dist/components/N8nNodeIcon/IconContent.vue.d.ts +2 -1
  110. package/dist/components/N8nNodeIcon/NodeIcon.vue.d.ts +3 -2
  111. package/dist/components/N8nNotice/Notice.vue.d.ts +8 -12
  112. package/dist/components/N8nOption/Option.vue.d.ts +7 -11
  113. package/dist/components/N8nPagination/Pagination.vue.d.ts +6 -15
  114. package/dist/components/N8nPopover/Popover.vue.d.ts +16 -18
  115. package/dist/components/N8nPromptInputSuggestions/N8nPromptInputSuggestions.vue.d.ts +10 -13
  116. package/dist/components/N8nPulse/Pulse.vue.d.ts +7 -11
  117. package/dist/components/N8nRadioGroup/RadioGroup.vue.d.ts +7 -11
  118. package/dist/components/N8nRadioGroup/RadioGroupItem.vue.d.ts +5 -10
  119. package/dist/components/N8nRecycleScroller/RecycleScroller.vue.d.ts +14 -9
  120. package/dist/components/N8nResizeWrapper/ResizeWrapper.vue.d.ts +8 -12
  121. package/dist/components/N8nResizeableSticky/ResizeableSticky.vue.d.ts +3 -2
  122. package/dist/components/N8nRoute/Route.vue.d.ts +9 -12
  123. package/dist/components/N8nScrollArea/N8nScrollArea.vue.d.ts +8 -141
  124. package/dist/components/N8nSectionHeader/SectionHeader.vue.d.ts +8 -12
  125. package/dist/components/N8nSegmentControl/SegmentControl.vue.d.ts +14 -11
  126. package/dist/components/N8nSegmentControl/SegmentControlItem.vue.d.ts +7 -11
  127. package/dist/components/N8nSelect/Select.vue.d.ts +20 -37
  128. package/dist/components/N8nSelectableList/SelectableList.vue.d.ts +20 -18
  129. package/dist/components/N8nSendStopButton/N8nSendStopButton.vue.d.ts +2 -1
  130. package/dist/components/N8nSettingsLayout/SettingsLayout.vue.d.ts +9 -12
  131. package/dist/components/N8nSettingsPageHeader/SettingsPageHeader.vue.d.ts +10 -13
  132. package/dist/components/N8nSettingsRow/SettingsRow.vue.d.ts +14 -148
  133. package/dist/components/N8nSettingsRowConfigure/SettingsRowConfigure.vue.d.ts +3 -2
  134. package/dist/components/N8nSettingsRowGroup/SettingsRowGroup.vue.d.ts +7 -11
  135. package/dist/components/N8nSettingsSaveBar/SettingsSaveBar.vue.d.ts +10 -17
  136. package/dist/components/N8nSettingsSection/SettingsSection.vue.d.ts +12 -14
  137. package/dist/components/N8nSpinner/Spinner.vue.d.ts +3 -2
  138. package/dist/components/N8nStatusDot/StatusDot.vue.d.ts +3 -2
  139. package/dist/components/N8nStepper/Stepper.vue.d.ts +9 -19
  140. package/dist/components/N8nSticky/Sticky.vue.d.ts +3 -138
  141. package/dist/components/N8nSuggestedActions/SuggestedActions.vue.d.ts +2 -1
  142. package/dist/components/N8nSwitch/Switch.vue.d.ts +7 -11
  143. package/dist/components/N8nTabs/Tabs.vue.d.ts +14 -9
  144. package/dist/components/N8nTag/Tag.vue.d.ts +8 -12
  145. package/dist/components/N8nTags/Tags.vue.d.ts +3 -2
  146. package/dist/components/N8nText/Text.vue.d.ts +7 -11
  147. package/dist/components/N8nToggle/Toggle.vue.d.ts +13 -14
  148. package/dist/components/N8nToggleGroup/ToggleGroup.vue.d.ts +11 -15
  149. package/dist/components/N8nTooltip/Tooltip.vue.d.ts +11 -13
  150. package/dist/components/N8nTree/Tree.vue.d.ts +12 -20
  151. package/dist/components/N8nUserInfo/UserInfo.vue.d.ts +3 -2
  152. package/dist/components/N8nUserSelect/UserSelect.vue.d.ts +8 -12
  153. package/dist/components/N8nUserStack/UserStack.vue.d.ts +3 -2
  154. package/dist/components/N8nUsersList/UsersList.vue.d.ts +15 -10
  155. package/dist/components/N8nVisuallyHidden/VisuallyHidden.vue.d.ts +16 -0
  156. package/dist/components/N8nVisuallyHidden/index.d.ts +1 -0
  157. package/dist/components/PreviewTag/PreviewTag.vue.d.ts +3 -2
  158. package/dist/components/ResizeObserver/ResizeObserver.vue.d.ts +10 -18
  159. package/dist/components/TableBase/TableBase.vue.d.ts +7 -11
  160. package/dist/components/TableHeaderControlsButton/TableHeaderControlsButton.vue.d.ts +14 -9
  161. package/dist/components/index.d.ts +3 -0
  162. package/dist/css/dialog.scss +1 -1
  163. package/dist/css/mixins/motion.scss +11 -0
  164. package/dist/{en-Ubc0tWnj.js → en-BQBg3T3M.js} +8 -0
  165. package/dist/index.js +4714 -4157
  166. package/dist/style.css +1 -1
  167. package/dist/theme.css +1 -1
  168. package/dist/v2/components/Checkbox/Checkbox.vue.d.ts +7 -11
  169. package/dist/v2/components/Combobox/Combobox.vue.d.ts +7 -230
  170. package/dist/v2/components/Combobox/ComboboxItem.vue.d.ts +5 -10
  171. package/dist/v2/components/Loading/Loading.vue.d.ts +2 -1
  172. package/dist/v2/components/Select/Select.types.d.ts +50 -44
  173. package/dist/v2/components/Select/Select.vue.d.ts +20 -15
  174. package/dist/v2/components/Select/SelectItem.vue.d.ts +9 -22
  175. package/dist/v2/components/Select/index.d.ts +3 -0
  176. package/dist/v2/components/TagsInput/TagsInput.vue.d.ts +6 -15
  177. package/dist/v2/components/Tree/Tree.vue.d.ts +5 -10
  178. package/dist/v2/components/Tree/TreeNode.vue.d.ts +6 -13
  179. package/dist/v2/components/Tree/TreeNodeDefault.vue.d.ts +6 -11
  180. package/package.json +7 -6
  181. package/dist/css/tailwind/index.css +0 -3
@@ -1,4 +1,3 @@
1
- import { nextTick } from 'vue';
2
1
  import { ChatUI, RatingFeedback, WorkflowSuggestion } from '../../types/assistant';
3
2
  interface Props {
4
3
  user?: {
@@ -24,366 +23,61 @@ interface Props {
24
23
  }
25
24
  declare function onSendMessage(): void;
26
25
  declare function scrollToBottom(): void;
27
- declare function __VLS_template(): {
28
- attrs: Partial<{}>;
29
- slots: {
30
- header?(_: {}): any;
31
- headerActions?(_: {}): any;
32
- 'custom-message'?(_: {
33
- message: ChatUI.CustomMessage & {
34
- id?: string;
35
- read?: boolean;
36
- showRating?: boolean;
37
- ratingStyle?: "regular" | "minimal";
38
- showFeedback?: boolean;
39
- };
40
- isFirstOfRole: boolean;
41
- user: {
42
- firstName: string;
43
- lastName: string;
44
- } | undefined;
45
- streaming: boolean | undefined;
46
- isLastMessage: boolean | undefined;
47
- }): any;
48
- 'focused-nodes-chips'?(_: any): any;
49
- messagesFooter?(_: {}): any;
50
- 'suggestions-input'?(_: {
51
- modelValue: string;
52
- onUpdateModelValue: (val: string) => string;
53
- placeholder: string;
54
- disabled: boolean | undefined;
55
- disabledTooltip: string | undefined;
56
- streaming: boolean | undefined;
57
- creditsQuota: number | undefined;
58
- creditsRemaining: number | undefined;
59
- showAskOwnerTooltip: boolean | undefined;
60
- maxLength: number;
61
- onSubmit: typeof onSendMessage;
62
- onStop: () => void;
63
- onUpgradeClick: () => void;
64
- registerFocus: (fn: () => void) => () => void;
65
- }): any;
66
- 'extra-actions'?(_: {}): any;
67
- 'extra-actions'?(_: {}): any;
68
- placeholder?(_: {}): any;
69
- inputHeader?(_: {}): any;
70
- inputPlaceholder?(_: {}): any;
26
+ declare var __VLS_11: {}, __VLS_13: {}, __VLS_46: {
27
+ message: ChatUI.CustomMessage & {
28
+ id?: string;
29
+ read?: boolean;
30
+ showRating?: boolean;
31
+ ratingStyle?: "regular" | "minimal";
32
+ showFeedback?: boolean;
71
33
  };
72
- refs: {
73
- scrollAreaRef: ({
74
- $: import('vue').ComponentInternalInstance;
75
- $data: {};
76
- $props: {
77
- readonly type?: "auto" | "always" | "scroll" | "hover" | undefined;
78
- readonly dir?: "ltr" | "rtl" | undefined;
79
- readonly scrollHideDelay?: number | undefined;
80
- readonly maxHeight?: string | undefined;
81
- readonly maxWidth?: string | undefined;
82
- readonly enableHorizontalScroll?: boolean | undefined;
83
- readonly enableVerticalScroll?: boolean | undefined;
84
- readonly asChild?: boolean | undefined;
85
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
86
- $attrs: {
87
- [x: string]: unknown;
88
- };
89
- $refs: {
90
- [x: string]: unknown;
91
- } & {
92
- rootRef: ({
93
- $: import('vue').ComponentInternalInstance;
94
- $data: {};
95
- $props: {
96
- readonly type?: ("hover" | "auto" | "scroll" | "always") | undefined;
97
- readonly dir?: ("ltr" | "rtl") | undefined;
98
- readonly scrollHideDelay?: number | undefined;
99
- readonly asChild?: boolean | undefined;
100
- readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
101
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
102
- $attrs: {
103
- [x: string]: unknown;
104
- };
105
- $refs: {
106
- [x: string]: unknown;
107
- };
108
- $slots: Readonly<{
109
- [name: string]: import('vue').Slot<any> | undefined;
110
- }>;
111
- $root: import('vue').ComponentPublicInstance | null;
112
- $parent: import('vue').ComponentPublicInstance | null;
113
- $host: Element | null;
114
- $emit: (event: string, ...args: any[]) => void;
115
- $el: any;
116
- $options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').ScrollAreaRootProps> & Readonly<{}>, {
117
- viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
118
- scrollTop: () => void;
119
- scrollTopLeft: () => void;
120
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
121
- type: "hover" | "auto" | "scroll" | "always";
122
- scrollHideDelay: number;
123
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
124
- beforeCreate?: (() => void) | (() => void)[];
125
- created?: (() => void) | (() => void)[];
126
- beforeMount?: (() => void) | (() => void)[];
127
- mounted?: (() => void) | (() => void)[];
128
- beforeUpdate?: (() => void) | (() => void)[];
129
- updated?: (() => void) | (() => void)[];
130
- activated?: (() => void) | (() => void)[];
131
- deactivated?: (() => void) | (() => void)[];
132
- beforeDestroy?: (() => void) | (() => void)[];
133
- beforeUnmount?: (() => void) | (() => void)[];
134
- destroyed?: (() => void) | (() => void)[];
135
- unmounted?: (() => void) | (() => void)[];
136
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
137
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
138
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
139
- };
140
- $forceUpdate: () => void;
141
- $nextTick: typeof nextTick;
142
- $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;
143
- } & Readonly<{
144
- type: "hover" | "auto" | "scroll" | "always";
145
- scrollHideDelay: number;
146
- }> & Omit<Readonly<import('reka-ui').ScrollAreaRootProps> & Readonly<{}>, "type" | "scrollHideDelay" | "viewport" | "scrollTop" | "scrollTopLeft"> & import('vue').ShallowUnwrapRef<{
147
- viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
148
- scrollTop: () => void;
149
- scrollTopLeft: () => void;
150
- }> & {} & import('vue').ComponentCustomProperties & {} & {
151
- $slots: {
152
- default?: (props: {}) => any;
153
- };
154
- }) | null;
155
- };
156
- $slots: Readonly<{
157
- [name: string]: import('vue').Slot<any> | undefined;
158
- }>;
159
- $root: import('vue').ComponentPublicInstance | null;
160
- $parent: import('vue').ComponentPublicInstance | null;
161
- $host: Element | null;
162
- $emit: (event: string, ...args: any[]) => void;
163
- $el: any;
164
- $options: import('vue').ComponentOptionsBase<Readonly<import('../N8nScrollArea/N8nScrollArea.vue').Props> & Readonly<{}>, {
165
- scrollToBottom: (options?: {
166
- smooth?: boolean;
167
- }) => Promise<void>;
168
- scrollToTop: (options?: {
169
- smooth?: boolean;
170
- }) => Promise<void>;
171
- getScrollPosition: () => {
172
- top: number;
173
- left: number;
174
- height: number;
175
- width: number;
176
- } | null;
177
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
178
- type: "auto" | "always" | "scroll" | "hover";
179
- dir: "ltr" | "rtl";
180
- asChild: boolean;
181
- scrollHideDelay: number;
182
- maxHeight: string;
183
- maxWidth: string;
184
- enableHorizontalScroll: boolean;
185
- enableVerticalScroll: boolean;
186
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
187
- beforeCreate?: (() => void) | (() => void)[];
188
- created?: (() => void) | (() => void)[];
189
- beforeMount?: (() => void) | (() => void)[];
190
- mounted?: (() => void) | (() => void)[];
191
- beforeUpdate?: (() => void) | (() => void)[];
192
- updated?: (() => void) | (() => void)[];
193
- activated?: (() => void) | (() => void)[];
194
- deactivated?: (() => void) | (() => void)[];
195
- beforeDestroy?: (() => void) | (() => void)[];
196
- beforeUnmount?: (() => void) | (() => void)[];
197
- destroyed?: (() => void) | (() => void)[];
198
- unmounted?: (() => void) | (() => void)[];
199
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
200
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
201
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
202
- };
203
- $forceUpdate: () => void;
204
- $nextTick: typeof nextTick;
205
- $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;
206
- } & Readonly<{
207
- type: "auto" | "always" | "scroll" | "hover";
208
- dir: "ltr" | "rtl";
209
- asChild: boolean;
210
- scrollHideDelay: number;
211
- maxHeight: string;
212
- maxWidth: string;
213
- enableHorizontalScroll: boolean;
214
- enableVerticalScroll: boolean;
215
- }> & Omit<Readonly<import('../N8nScrollArea/N8nScrollArea.vue').Props> & Readonly<{}>, "scrollToBottom" | "scrollToTop" | "getScrollPosition" | ("type" | "dir" | "asChild" | "scrollHideDelay" | "maxHeight" | "maxWidth" | "enableHorizontalScroll" | "enableVerticalScroll")> & import('vue').ShallowUnwrapRef<{
216
- scrollToBottom: (options?: {
217
- smooth?: boolean;
218
- }) => Promise<void>;
219
- scrollToTop: (options?: {
220
- smooth?: boolean;
221
- }) => Promise<void>;
222
- getScrollPosition: () => {
223
- top: number;
224
- left: number;
225
- height: number;
226
- width: number;
227
- } | null;
228
- }> & {} & import('vue').ComponentCustomProperties & {} & {
229
- $slots: {
230
- default?(_: {}): any;
231
- };
232
- }) | null;
233
- messagesRef: HTMLDivElement;
234
- promptInputRef: ({
235
- $: import('vue').ComponentInternalInstance;
236
- $data: {};
237
- $props: {
238
- readonly modelValue?: string | undefined;
239
- readonly placeholder?: string | undefined;
240
- readonly maxLength?: number | undefined;
241
- readonly maxLinesBeforeScroll?: number | undefined;
242
- readonly streaming?: boolean | undefined;
243
- readonly disabled?: boolean | undefined;
244
- readonly disabledTooltip?: string | undefined;
245
- readonly creditsQuota?: number | undefined;
246
- readonly creditsRemaining?: number | undefined;
247
- readonly showAskOwnerTooltip?: boolean | undefined;
248
- readonly refocusAfterSend?: boolean | undefined;
249
- readonly autofocus?: boolean | undefined;
250
- readonly buttonLabel?: string | undefined;
251
- readonly layout?: "multiline" | "single-line" | "adaptive" | undefined;
252
- readonly autosize?: boolean | {
253
- minRows: number;
254
- maxRows: number;
255
- } | undefined;
256
- readonly submitDisabled?: boolean | undefined;
257
- readonly sendButtonTestId?: string | undefined;
258
- readonly stopButtonTestId?: string | undefined;
259
- readonly onFocus?: ((event: FocusEvent) => any) | undefined;
260
- readonly onStop?: (() => any) | undefined;
261
- readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
262
- readonly onBlur?: ((event: FocusEvent) => any) | undefined;
263
- readonly onSubmit?: (() => any) | undefined;
264
- readonly "onUpgrade-click"?: (() => any) | undefined;
265
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
266
- $attrs: {
267
- [x: string]: unknown;
268
- };
269
- $refs: {
270
- [x: string]: unknown;
271
- } & {
272
- textareaRef: HTMLTextAreaElement;
273
- };
274
- $slots: Readonly<{
275
- [name: string]: import('vue').Slot<any> | undefined;
276
- }>;
277
- $root: import('vue').ComponentPublicInstance | null;
278
- $parent: import('vue').ComponentPublicInstance | null;
279
- $host: Element | null;
280
- $emit: ((event: "focus", event: FocusEvent) => void) & ((event: "stop") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "submit") => void) & ((event: "upgrade-click") => void);
281
- $el: any;
282
- $options: import('vue').ComponentOptionsBase<Readonly<import('../N8nChatInput/ChatInput.vue').N8nChatInputProps> & Readonly<{
283
- onFocus?: ((event: FocusEvent) => any) | undefined;
284
- onStop?: (() => any) | undefined;
285
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
286
- onBlur?: ((event: FocusEvent) => any) | undefined;
287
- onSubmit?: (() => any) | undefined;
288
- "onUpgrade-click"?: (() => any) | undefined;
289
- }>, {
290
- focusInput: (options?: FocusOptions) => void;
291
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
292
- focus: (event: FocusEvent) => any;
293
- stop: () => any;
294
- "update:modelValue": (value: string) => any;
295
- blur: (event: FocusEvent) => any;
296
- submit: () => any;
297
- "upgrade-click": () => any;
298
- }, string, {
299
- disabled: boolean;
300
- placeholder: string;
301
- modelValue: string;
302
- autosize: boolean | {
303
- minRows: number;
304
- maxRows: number;
305
- };
306
- autofocus: boolean;
307
- streaming: boolean;
308
- maxLength: number;
309
- sendButtonTestId: string;
310
- stopButtonTestId: string;
311
- maxLinesBeforeScroll: number;
312
- disabledTooltip: string;
313
- creditsQuota: number;
314
- creditsRemaining: number;
315
- showAskOwnerTooltip: boolean;
316
- refocusAfterSend: boolean;
317
- buttonLabel: string;
318
- layout: "multiline" | "single-line" | "adaptive";
319
- submitDisabled: boolean;
320
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
321
- beforeCreate?: (() => void) | (() => void)[];
322
- created?: (() => void) | (() => void)[];
323
- beforeMount?: (() => void) | (() => void)[];
324
- mounted?: (() => void) | (() => void)[];
325
- beforeUpdate?: (() => void) | (() => void)[];
326
- updated?: (() => void) | (() => void)[];
327
- activated?: (() => void) | (() => void)[];
328
- deactivated?: (() => void) | (() => void)[];
329
- beforeDestroy?: (() => void) | (() => void)[];
330
- beforeUnmount?: (() => void) | (() => void)[];
331
- destroyed?: (() => void) | (() => void)[];
332
- unmounted?: (() => void) | (() => void)[];
333
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
334
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
335
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
336
- };
337
- $forceUpdate: () => void;
338
- $nextTick: typeof nextTick;
339
- $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;
340
- } & Readonly<{
341
- disabled: boolean;
342
- placeholder: string;
343
- modelValue: string;
344
- autosize: boolean | {
345
- minRows: number;
346
- maxRows: number;
347
- };
348
- autofocus: boolean;
349
- streaming: boolean;
350
- maxLength: number;
351
- sendButtonTestId: string;
352
- stopButtonTestId: string;
353
- maxLinesBeforeScroll: number;
354
- disabledTooltip: string;
355
- creditsQuota: number;
356
- creditsRemaining: number;
357
- showAskOwnerTooltip: boolean;
358
- refocusAfterSend: boolean;
359
- buttonLabel: string;
360
- layout: "multiline" | "single-line" | "adaptive";
361
- submitDisabled: boolean;
362
- }> & Omit<Readonly<import('../N8nChatInput/ChatInput.vue').N8nChatInputProps> & Readonly<{
363
- onFocus?: ((event: FocusEvent) => any) | undefined;
364
- onStop?: (() => any) | undefined;
365
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
366
- onBlur?: ((event: FocusEvent) => any) | undefined;
367
- onSubmit?: (() => any) | undefined;
368
- "onUpgrade-click"?: (() => any) | undefined;
369
- }>, "focusInput" | ("disabled" | "placeholder" | "modelValue" | "autosize" | "autofocus" | "streaming" | "maxLength" | "sendButtonTestId" | "stopButtonTestId" | "maxLinesBeforeScroll" | "disabledTooltip" | "creditsQuota" | "creditsRemaining" | "showAskOwnerTooltip" | "refocusAfterSend" | "buttonLabel" | "layout" | "submitDisabled")> & import('vue').ShallowUnwrapRef<{
370
- focusInput: (options?: FocusOptions) => void;
371
- }> & {} & import('vue').ComponentCustomProperties & {} & {
372
- $slots: {
373
- leading?(_: {}): any;
374
- 'left-actions'?(_: {}): any;
375
- actions?(_: {}): any;
376
- 'extra-actions'?(_: {}): any;
377
- 'right-actions'?(_: {}): any;
378
- trailing?(_: {}): any;
379
- };
380
- }) | null;
381
- inputWrapperRef: HTMLDivElement;
382
- };
383
- rootEl: HTMLDivElement;
34
+ isFirstOfRole: boolean;
35
+ user: {
36
+ firstName: string;
37
+ lastName: string;
38
+ } | undefined;
39
+ streaming: boolean;
40
+ isLastMessage: boolean;
41
+ }, __VLS_49: any, __VLS_59: {}, __VLS_75: {
42
+ modelValue: string;
43
+ onUpdateModelValue: (val: string) => string;
44
+ placeholder: string;
45
+ disabled: boolean;
46
+ disabledTooltip: string | undefined;
47
+ streaming: boolean;
48
+ creditsQuota: number | undefined;
49
+ creditsRemaining: number | undefined;
50
+ showAskOwnerTooltip: boolean;
51
+ maxLength: number | undefined;
52
+ onSubmit: typeof onSendMessage;
53
+ onStop: () => void;
54
+ onUpgradeClick: () => void;
55
+ registerFocus: (fn: () => void) => () => void;
56
+ }, __VLS_90: {}, __VLS_92: {}, __VLS_106: {}, __VLS_108: {}, __VLS_123: {};
57
+ type __VLS_Slots = {} & {
58
+ header?: (props: typeof __VLS_11) => any;
59
+ } & {
60
+ headerActions?: (props: typeof __VLS_13) => any;
61
+ } & {
62
+ 'custom-message'?: (props: typeof __VLS_46) => any;
63
+ } & {
64
+ 'focused-nodes-chips'?: (props: typeof __VLS_49) => any;
65
+ } & {
66
+ messagesFooter?: (props: typeof __VLS_59) => any;
67
+ } & {
68
+ 'suggestions-input'?: (props: typeof __VLS_75) => any;
69
+ } & {
70
+ 'extra-actions'?: (props: typeof __VLS_90) => any;
71
+ } & {
72
+ placeholder?: (props: typeof __VLS_92) => any;
73
+ } & {
74
+ inputHeader?: (props: typeof __VLS_106) => any;
75
+ } & {
76
+ inputPlaceholder?: (props: typeof __VLS_108) => any;
77
+ } & {
78
+ 'extra-actions'?: (props: typeof __VLS_123) => any;
384
79
  };
385
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
386
- declare const __VLS_component: import('vue').DefineComponent<Props, {
80
+ declare const __VLS_base: import('vue').DefineComponent<Props, {
387
81
  focusInput: () => void;
388
82
  scrollToBottom: typeof scrollToBottom;
389
83
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -413,320 +107,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
413
107
  inputPlaceholder: string;
414
108
  scrollOnNewMessage: boolean;
415
109
  maxCharacterLength: number;
416
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
417
- scrollAreaRef: ({
418
- $: import('vue').ComponentInternalInstance;
419
- $data: {};
420
- $props: {
421
- readonly type?: "auto" | "always" | "scroll" | "hover" | undefined;
422
- readonly dir?: "ltr" | "rtl" | undefined;
423
- readonly scrollHideDelay?: number | undefined;
424
- readonly maxHeight?: string | undefined;
425
- readonly maxWidth?: string | undefined;
426
- readonly enableHorizontalScroll?: boolean | undefined;
427
- readonly enableVerticalScroll?: boolean | undefined;
428
- readonly asChild?: boolean | undefined;
429
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
430
- $attrs: {
431
- [x: string]: unknown;
432
- };
433
- $refs: {
434
- [x: string]: unknown;
435
- } & {
436
- rootRef: ({
437
- $: import('vue').ComponentInternalInstance;
438
- $data: {};
439
- $props: {
440
- readonly type?: ("hover" | "auto" | "scroll" | "always") | undefined;
441
- readonly dir?: ("ltr" | "rtl") | undefined;
442
- readonly scrollHideDelay?: number | undefined;
443
- readonly asChild?: boolean | undefined;
444
- readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
445
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
446
- $attrs: {
447
- [x: string]: unknown;
448
- };
449
- $refs: {
450
- [x: string]: unknown;
451
- };
452
- $slots: Readonly<{
453
- [name: string]: import('vue').Slot<any> | undefined;
454
- }>;
455
- $root: import('vue').ComponentPublicInstance | null;
456
- $parent: import('vue').ComponentPublicInstance | null;
457
- $host: Element | null;
458
- $emit: (event: string, ...args: any[]) => void;
459
- $el: any;
460
- $options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').ScrollAreaRootProps> & Readonly<{}>, {
461
- viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
462
- scrollTop: () => void;
463
- scrollTopLeft: () => void;
464
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
465
- type: "hover" | "auto" | "scroll" | "always";
466
- scrollHideDelay: number;
467
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
468
- beforeCreate?: (() => void) | (() => void)[];
469
- created?: (() => void) | (() => void)[];
470
- beforeMount?: (() => void) | (() => void)[];
471
- mounted?: (() => void) | (() => void)[];
472
- beforeUpdate?: (() => void) | (() => void)[];
473
- updated?: (() => void) | (() => void)[];
474
- activated?: (() => void) | (() => void)[];
475
- deactivated?: (() => void) | (() => void)[];
476
- beforeDestroy?: (() => void) | (() => void)[];
477
- beforeUnmount?: (() => void) | (() => void)[];
478
- destroyed?: (() => void) | (() => void)[];
479
- unmounted?: (() => void) | (() => void)[];
480
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
481
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
482
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
483
- };
484
- $forceUpdate: () => void;
485
- $nextTick: typeof nextTick;
486
- $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;
487
- } & Readonly<{
488
- type: "hover" | "auto" | "scroll" | "always";
489
- scrollHideDelay: number;
490
- }> & Omit<Readonly<import('reka-ui').ScrollAreaRootProps> & Readonly<{}>, "type" | "scrollHideDelay" | "viewport" | "scrollTop" | "scrollTopLeft"> & import('vue').ShallowUnwrapRef<{
491
- viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
492
- scrollTop: () => void;
493
- scrollTopLeft: () => void;
494
- }> & {} & import('vue').ComponentCustomProperties & {} & {
495
- $slots: {
496
- default?: (props: {}) => any;
497
- };
498
- }) | null;
499
- };
500
- $slots: Readonly<{
501
- [name: string]: import('vue').Slot<any> | undefined;
502
- }>;
503
- $root: import('vue').ComponentPublicInstance | null;
504
- $parent: import('vue').ComponentPublicInstance | null;
505
- $host: Element | null;
506
- $emit: (event: string, ...args: any[]) => void;
507
- $el: any;
508
- $options: import('vue').ComponentOptionsBase<Readonly<import('../N8nScrollArea/N8nScrollArea.vue').Props> & Readonly<{}>, {
509
- scrollToBottom: (options?: {
510
- smooth?: boolean;
511
- }) => Promise<void>;
512
- scrollToTop: (options?: {
513
- smooth?: boolean;
514
- }) => Promise<void>;
515
- getScrollPosition: () => {
516
- top: number;
517
- left: number;
518
- height: number;
519
- width: number;
520
- } | null;
521
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
522
- type: "auto" | "always" | "scroll" | "hover";
523
- dir: "ltr" | "rtl";
524
- asChild: boolean;
525
- scrollHideDelay: number;
526
- maxHeight: string;
527
- maxWidth: string;
528
- enableHorizontalScroll: boolean;
529
- enableVerticalScroll: boolean;
530
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
531
- beforeCreate?: (() => void) | (() => void)[];
532
- created?: (() => void) | (() => void)[];
533
- beforeMount?: (() => void) | (() => void)[];
534
- mounted?: (() => void) | (() => void)[];
535
- beforeUpdate?: (() => void) | (() => void)[];
536
- updated?: (() => void) | (() => void)[];
537
- activated?: (() => void) | (() => void)[];
538
- deactivated?: (() => void) | (() => void)[];
539
- beforeDestroy?: (() => void) | (() => void)[];
540
- beforeUnmount?: (() => void) | (() => void)[];
541
- destroyed?: (() => void) | (() => void)[];
542
- unmounted?: (() => void) | (() => void)[];
543
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
544
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
545
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
546
- };
547
- $forceUpdate: () => void;
548
- $nextTick: typeof nextTick;
549
- $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;
550
- } & Readonly<{
551
- type: "auto" | "always" | "scroll" | "hover";
552
- dir: "ltr" | "rtl";
553
- asChild: boolean;
554
- scrollHideDelay: number;
555
- maxHeight: string;
556
- maxWidth: string;
557
- enableHorizontalScroll: boolean;
558
- enableVerticalScroll: boolean;
559
- }> & Omit<Readonly<import('../N8nScrollArea/N8nScrollArea.vue').Props> & Readonly<{}>, "scrollToBottom" | "scrollToTop" | "getScrollPosition" | ("type" | "dir" | "asChild" | "scrollHideDelay" | "maxHeight" | "maxWidth" | "enableHorizontalScroll" | "enableVerticalScroll")> & import('vue').ShallowUnwrapRef<{
560
- scrollToBottom: (options?: {
561
- smooth?: boolean;
562
- }) => Promise<void>;
563
- scrollToTop: (options?: {
564
- smooth?: boolean;
565
- }) => Promise<void>;
566
- getScrollPosition: () => {
567
- top: number;
568
- left: number;
569
- height: number;
570
- width: number;
571
- } | null;
572
- }> & {} & import('vue').ComponentCustomProperties & {} & {
573
- $slots: {
574
- default?(_: {}): any;
575
- };
576
- }) | null;
577
- messagesRef: HTMLDivElement;
578
- promptInputRef: ({
579
- $: import('vue').ComponentInternalInstance;
580
- $data: {};
581
- $props: {
582
- readonly modelValue?: string | undefined;
583
- readonly placeholder?: string | undefined;
584
- readonly maxLength?: number | undefined;
585
- readonly maxLinesBeforeScroll?: number | undefined;
586
- readonly streaming?: boolean | undefined;
587
- readonly disabled?: boolean | undefined;
588
- readonly disabledTooltip?: string | undefined;
589
- readonly creditsQuota?: number | undefined;
590
- readonly creditsRemaining?: number | undefined;
591
- readonly showAskOwnerTooltip?: boolean | undefined;
592
- readonly refocusAfterSend?: boolean | undefined;
593
- readonly autofocus?: boolean | undefined;
594
- readonly buttonLabel?: string | undefined;
595
- readonly layout?: "multiline" | "single-line" | "adaptive" | undefined;
596
- readonly autosize?: boolean | {
597
- minRows: number;
598
- maxRows: number;
599
- } | undefined;
600
- readonly submitDisabled?: boolean | undefined;
601
- readonly sendButtonTestId?: string | undefined;
602
- readonly stopButtonTestId?: string | undefined;
603
- readonly onFocus?: ((event: FocusEvent) => any) | undefined;
604
- readonly onStop?: (() => any) | undefined;
605
- readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
606
- readonly onBlur?: ((event: FocusEvent) => any) | undefined;
607
- readonly onSubmit?: (() => any) | undefined;
608
- readonly "onUpgrade-click"?: (() => any) | undefined;
609
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
610
- $attrs: {
611
- [x: string]: unknown;
612
- };
613
- $refs: {
614
- [x: string]: unknown;
615
- } & {
616
- textareaRef: HTMLTextAreaElement;
617
- };
618
- $slots: Readonly<{
619
- [name: string]: import('vue').Slot<any> | undefined;
620
- }>;
621
- $root: import('vue').ComponentPublicInstance | null;
622
- $parent: import('vue').ComponentPublicInstance | null;
623
- $host: Element | null;
624
- $emit: ((event: "focus", event: FocusEvent) => void) & ((event: "stop") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "submit") => void) & ((event: "upgrade-click") => void);
625
- $el: any;
626
- $options: import('vue').ComponentOptionsBase<Readonly<import('../N8nChatInput/ChatInput.vue').N8nChatInputProps> & Readonly<{
627
- onFocus?: ((event: FocusEvent) => any) | undefined;
628
- onStop?: (() => any) | undefined;
629
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
630
- onBlur?: ((event: FocusEvent) => any) | undefined;
631
- onSubmit?: (() => any) | undefined;
632
- "onUpgrade-click"?: (() => any) | undefined;
633
- }>, {
634
- focusInput: (options?: FocusOptions) => void;
635
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
636
- focus: (event: FocusEvent) => any;
637
- stop: () => any;
638
- "update:modelValue": (value: string) => any;
639
- blur: (event: FocusEvent) => any;
640
- submit: () => any;
641
- "upgrade-click": () => any;
642
- }, string, {
643
- disabled: boolean;
644
- placeholder: string;
645
- modelValue: string;
646
- autosize: boolean | {
647
- minRows: number;
648
- maxRows: number;
649
- };
650
- autofocus: boolean;
651
- streaming: boolean;
652
- maxLength: number;
653
- sendButtonTestId: string;
654
- stopButtonTestId: string;
655
- maxLinesBeforeScroll: number;
656
- disabledTooltip: string;
657
- creditsQuota: number;
658
- creditsRemaining: number;
659
- showAskOwnerTooltip: boolean;
660
- refocusAfterSend: boolean;
661
- buttonLabel: string;
662
- layout: "multiline" | "single-line" | "adaptive";
663
- submitDisabled: boolean;
664
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
665
- beforeCreate?: (() => void) | (() => void)[];
666
- created?: (() => void) | (() => void)[];
667
- beforeMount?: (() => void) | (() => void)[];
668
- mounted?: (() => void) | (() => void)[];
669
- beforeUpdate?: (() => void) | (() => void)[];
670
- updated?: (() => void) | (() => void)[];
671
- activated?: (() => void) | (() => void)[];
672
- deactivated?: (() => void) | (() => void)[];
673
- beforeDestroy?: (() => void) | (() => void)[];
674
- beforeUnmount?: (() => void) | (() => void)[];
675
- destroyed?: (() => void) | (() => void)[];
676
- unmounted?: (() => void) | (() => void)[];
677
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
678
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
679
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
680
- };
681
- $forceUpdate: () => void;
682
- $nextTick: typeof nextTick;
683
- $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;
684
- } & Readonly<{
685
- disabled: boolean;
686
- placeholder: string;
687
- modelValue: string;
688
- autosize: boolean | {
689
- minRows: number;
690
- maxRows: number;
691
- };
692
- autofocus: boolean;
693
- streaming: boolean;
694
- maxLength: number;
695
- sendButtonTestId: string;
696
- stopButtonTestId: string;
697
- maxLinesBeforeScroll: number;
698
- disabledTooltip: string;
699
- creditsQuota: number;
700
- creditsRemaining: number;
701
- showAskOwnerTooltip: boolean;
702
- refocusAfterSend: boolean;
703
- buttonLabel: string;
704
- layout: "multiline" | "single-line" | "adaptive";
705
- submitDisabled: boolean;
706
- }> & Omit<Readonly<import('../N8nChatInput/ChatInput.vue').N8nChatInputProps> & Readonly<{
707
- onFocus?: ((event: FocusEvent) => any) | undefined;
708
- onStop?: (() => any) | undefined;
709
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
710
- onBlur?: ((event: FocusEvent) => any) | undefined;
711
- onSubmit?: (() => any) | undefined;
712
- "onUpgrade-click"?: (() => any) | undefined;
713
- }>, "focusInput" | ("disabled" | "placeholder" | "modelValue" | "autosize" | "autofocus" | "streaming" | "maxLength" | "sendButtonTestId" | "stopButtonTestId" | "maxLinesBeforeScroll" | "disabledTooltip" | "creditsQuota" | "creditsRemaining" | "showAskOwnerTooltip" | "refocusAfterSend" | "buttonLabel" | "layout" | "submitDisabled")> & import('vue').ShallowUnwrapRef<{
714
- focusInput: (options?: FocusOptions) => void;
715
- }> & {} & import('vue').ComponentCustomProperties & {} & {
716
- $slots: {
717
- leading?(_: {}): any;
718
- 'left-actions'?(_: {}): any;
719
- actions?(_: {}): any;
720
- 'extra-actions'?(_: {}): any;
721
- 'right-actions'?(_: {}): any;
722
- trailing?(_: {}): any;
723
- };
724
- }) | null;
725
- inputWrapperRef: HTMLDivElement;
726
- }, HTMLDivElement>;
727
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
110
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
111
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
112
+ declare const _default: typeof __VLS_export;
728
113
  export default _default;
729
- type __VLS_WithTemplateSlots<T, S> = T & {
114
+ type __VLS_WithSlots<T, S> = T & {
730
115
  new (): {
731
116
  $slots: S;
732
117
  };