@opentiny/tiny-robot 0.2.13 → 0.2.14

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/dist/index.d.ts CHANGED
@@ -46,74 +46,6 @@ maxWidth: string | number;
46
46
  content: string;
47
47
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
48
 
49
- declare const __VLS_component_10: DefineComponent<QuestionProps, {
50
- openModal: () => void;
51
- closeModal: () => void;
52
- toggleFloating: () => void;
53
- setActiveCategory: (categoryId: string) => void;
54
- refreshData: () => Promise<void>;
55
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
56
- "question-click": (question: Question_2) => any;
57
- "select-category": (category: Category_2) => any;
58
- }, string, PublicProps, Readonly<QuestionProps> & Readonly<{
59
- "onQuestion-click"?: ((question: Question_2) => any) | undefined;
60
- "onSelect-category"?: ((category: Category_2) => any) | undefined;
61
- }>, {
62
- loading: boolean;
63
- categories: Category_2[];
64
- modalWidth: string;
65
- closeOnClickOutside: boolean;
66
- commonQuestions: Question_2[];
67
- initialExpanded: boolean;
68
- theme: ThemeType_2;
69
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
70
-
71
- declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
72
- "update:selectedGroup": (value: string) => any;
73
- } & {
74
- close: () => any;
75
- open: () => any;
76
- "item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
77
- "click-outside": (event: MouseEvent) => any;
78
- "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
79
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
80
- onClose?: (() => any) | undefined;
81
- onOpen?: (() => any) | undefined;
82
- "onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
83
- "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
84
- "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
85
- "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
86
- }>, {
87
- title: string;
88
- trigger: "click" | "manual";
89
- groupShowMoreTrigger: "click" | "hover";
90
- popoverWidth: string | number;
91
- popoverHeight: string | number;
92
- topOffset: string | number;
93
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
94
- popoverTriggerRef: HTMLDivElement;
95
- popoverRef: HTMLDivElement;
96
- listRef: HTMLUListElement;
97
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
98
- show?: TooltipContentProps["show"];
99
- } & TooltipContentProps> & Readonly<{
100
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
101
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
102
- "update:show": (value: boolean | undefined) => any;
103
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
104
- P: {};
105
- B: {};
106
- D: {};
107
- C: {};
108
- M: {};
109
- Defaults: {};
110
- }, Readonly<{
111
- show?: TooltipContentProps["show"];
112
- } & TooltipContentProps> & Readonly<{
113
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
114
- }>, {}, {}, {}, {}, {}> | null;
115
- }, any>;
116
-
117
49
  declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
118
50
  "update:show": (value: boolean) => any;
119
51
  "update:fullscreen": (value: boolean | undefined) => any;
@@ -221,11 +153,11 @@ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
221
153
  popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
222
154
  }> & {} & ComponentCustomProperties & {} & {
223
155
  $slots: Readonly<{
224
- trigger?: () => VNode | VNode[];
225
- content?: () => VNode | VNode[];
156
+ trigger?: () => VNode[];
157
+ content?: () => VNode[];
226
158
  }> & {
227
- trigger?: () => VNode | VNode[];
228
- content?: () => VNode | VNode[];
159
+ trigger?: () => VNode[];
160
+ content?: () => VNode[];
229
161
  };
230
162
  }) | null;
231
163
  }, any>;
@@ -252,15 +184,12 @@ activateTemplateFirstField: () => void;
252
184
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
253
185
  }>, {
254
186
  loading: boolean;
255
- template: string;
256
187
  mode: InputMode_2;
257
188
  disabled: boolean;
258
189
  modelValue: string;
259
190
  autofocus: boolean;
260
191
  clearable: boolean;
261
192
  showWordLimit: boolean;
262
- theme: ThemeType_2;
263
- hasContent: boolean;
264
193
  allowSpeech: boolean;
265
194
  allowFiles: boolean;
266
195
  submitType: SubmitTrigger_2;
@@ -270,6 +199,7 @@ maxLength: number;
270
199
  placeholder: string;
271
200
  suggestions: string[];
272
201
  suggestionPopupWidth: string | number;
202
+ theme: ThemeType_2;
273
203
  templateData: UserItem[];
274
204
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
275
205
  senderRef: HTMLDivElement;
@@ -277,8 +207,8 @@ inputWrapperRef: HTMLDivElement;
277
207
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
278
208
  modelValue?: UserItem[];
279
209
  }> & Readonly<{
280
- onSubmit?: (() => any) | undefined;
281
210
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
211
+ onSubmit?: (() => any) | undefined;
282
212
  }>, {
283
213
  clearHistory: () => void;
284
214
  activateFirstField: () => void;
@@ -298,8 +228,8 @@ Defaults: {};
298
228
  }, Readonly<{
299
229
  modelValue?: UserItem[];
300
230
  }> & Readonly<{
301
- onSubmit?: (() => any) | undefined;
302
231
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
232
+ onSubmit?: (() => any) | undefined;
303
233
  }>, {
304
234
  clearHistory: () => void;
305
235
  activateFirstField: () => void;
@@ -758,184 +688,9 @@ buttonsContainerRef: HTMLDivElement;
758
688
  suggestionsListRef: HTMLDivElement;
759
689
  }, HTMLDivElement>;
760
690
 
761
- declare const __VLS_component_6: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
762
- align: "left" | "center" | "right" | string;
763
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
691
+ declare const __VLS_component_6: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
764
692
 
765
- declare const __VLS_component_7: DefineComponent<SuggestionProps, {
766
- trigger: TriggerHandler;
767
- keyDown: (e: KeyboardEvent) => void;
768
- input: (event: Event, text: string) => boolean;
769
- toggleExpand: () => void;
770
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
771
- close: () => any;
772
- select: (value: string, context?: TriggerContext | undefined) => any;
773
- trigger: (handler: TriggerHandler) => any;
774
- "suggestion-select": (item: SuggestionItem) => any;
775
- "update:open": (value: boolean) => any;
776
- "category-select": (category: Category) => any;
777
- "update:expanded": (expanded: boolean) => any;
778
- "fill-template": (template: string) => any;
779
- }, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
780
- onClose?: (() => any) | undefined;
781
- onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
782
- onTrigger?: ((handler: TriggerHandler) => any) | undefined;
783
- "onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
784
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
785
- "onCategory-select"?: ((category: Category) => any) | undefined;
786
- "onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
787
- "onFill-template"?: ((template: string) => any) | undefined;
788
- }>, {
789
- open: boolean;
790
- loading: boolean;
791
- title: string;
792
- items: SuggestionItem[];
793
- categories: Category[];
794
- theme: "light" | "dark";
795
- maxVisibleItems: number;
796
- triggerKeys: string[];
797
- closeOnOutsideClick: boolean;
798
- defaultExpanded: boolean;
799
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
800
- rootRef: HTMLDivElement;
801
- panelRef: ({
802
- $: ComponentInternalInstance;
803
- $data: {};
804
- $props: Partial<{
805
- loading: boolean;
806
- title: string;
807
- categories: Category[];
808
- maxVisibleItems: number;
809
- }> & Omit<{
810
- readonly loading: boolean;
811
- readonly title: string;
812
- readonly items: SuggestionItem[];
813
- readonly categories: Category[];
814
- readonly maxVisibleItems: number;
815
- readonly onClose?: ((...args: any[]) => any) | undefined;
816
- readonly onSelect?: ((...args: any[]) => any) | undefined;
817
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
818
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
819
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "title" | "categories" | "maxVisibleItems">;
820
- $attrs: {
821
- [x: string]: unknown;
822
- };
823
- $refs: {
824
- [x: string]: unknown;
825
- };
826
- $slots: Readonly<{
827
- [name: string]: Slot<any> | undefined;
828
- }>;
829
- $root: ComponentPublicInstance | null;
830
- $parent: ComponentPublicInstance | null;
831
- $host: Element | null;
832
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
833
- $el: HTMLDivElement;
834
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
835
- items: {
836
- type: PropType<SuggestionItem[]>;
837
- required: true;
838
- };
839
- categories: {
840
- type: PropType<Category[]>;
841
- default: () => never[];
842
- };
843
- loading: {
844
- type: BooleanConstructor;
845
- default: boolean;
846
- };
847
- title: {
848
- type: StringConstructor;
849
- default: string;
850
- };
851
- maxVisibleItems: {
852
- type: NumberConstructor;
853
- default: number;
854
- };
855
- }>> & Readonly<{
856
- onClose?: ((...args: any[]) => any) | undefined;
857
- onSelect?: ((...args: any[]) => any) | undefined;
858
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
859
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
860
- }>, {
861
- handleKeyDown: (e: KeyboardEvent) => void;
862
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
863
- close: (...args: any[]) => void;
864
- select: (...args: any[]) => void;
865
- "category-select": (...args: any[]) => void;
866
- "item-hover": (...args: any[]) => void;
867
- }, string, {
868
- loading: boolean;
869
- title: string;
870
- categories: Category[];
871
- maxVisibleItems: number;
872
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
873
- beforeCreate?: (() => void) | (() => void)[];
874
- created?: (() => void) | (() => void)[];
875
- beforeMount?: (() => void) | (() => void)[];
876
- mounted?: (() => void) | (() => void)[];
877
- beforeUpdate?: (() => void) | (() => void)[];
878
- updated?: (() => void) | (() => void)[];
879
- activated?: (() => void) | (() => void)[];
880
- deactivated?: (() => void) | (() => void)[];
881
- beforeDestroy?: (() => void) | (() => void)[];
882
- beforeUnmount?: (() => void) | (() => void)[];
883
- destroyed?: (() => void) | (() => void)[];
884
- unmounted?: (() => void) | (() => void)[];
885
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
886
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
887
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
888
- };
889
- $forceUpdate: () => void;
890
- $nextTick: nextTick;
891
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
892
- } & Readonly<{
893
- loading: boolean;
894
- title: string;
895
- categories: Category[];
896
- maxVisibleItems: number;
897
- }> & Omit<Readonly<ExtractPropTypes< {
898
- items: {
899
- type: PropType<SuggestionItem[]>;
900
- required: true;
901
- };
902
- categories: {
903
- type: PropType<Category[]>;
904
- default: () => never[];
905
- };
906
- loading: {
907
- type: BooleanConstructor;
908
- default: boolean;
909
- };
910
- title: {
911
- type: StringConstructor;
912
- default: string;
913
- };
914
- maxVisibleItems: {
915
- type: NumberConstructor;
916
- default: number;
917
- };
918
- }>> & Readonly<{
919
- onClose?: ((...args: any[]) => any) | undefined;
920
- onSelect?: ((...args: any[]) => any) | undefined;
921
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
922
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
923
- }>, "handleKeyDown" | ("loading" | "title" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
924
- handleKeyDown: (e: KeyboardEvent) => void;
925
- }> & {} & ComponentCustomProperties & {} & {
926
- $slots: {
927
- 'title-icon'?(_: {}): any;
928
- 'loading-indicator'?(_: {}): any;
929
- item?(_: {
930
- item: SuggestionItem;
931
- active: boolean;
932
- }): any;
933
- empty?(_: {}): any;
934
- };
935
- }) | null;
936
- }, HTMLDivElement>;
937
-
938
- declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
693
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
939
694
  "update:showAll": (value: boolean | undefined) => any;
940
695
  } & {
941
696
  "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
@@ -953,7 +708,55 @@ containerRef: HTMLDivElement;
953
708
  floatingItemsRef: HTMLDivElement;
954
709
  }, HTMLDivElement>;
955
710
 
956
- declare const __VLS_component_9: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
711
+ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
712
+ "update:selectedGroup": (value: string) => any;
713
+ } & {
714
+ close: () => any;
715
+ open: () => any;
716
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
717
+ "click-outside": (event: MouseEvent) => any;
718
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
719
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
720
+ onClose?: (() => any) | undefined;
721
+ onOpen?: (() => any) | undefined;
722
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
723
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
724
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
725
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
726
+ }>, {
727
+ title: string;
728
+ trigger: "click" | "manual";
729
+ groupShowMoreTrigger: "click" | "hover";
730
+ popoverWidth: string | number;
731
+ popoverHeight: string | number;
732
+ topOffset: string | number;
733
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
734
+ popoverTriggerRef: HTMLDivElement;
735
+ popoverRef: HTMLDivElement;
736
+ listRef: HTMLUListElement;
737
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
738
+ show?: TooltipContentProps["show"];
739
+ } & TooltipContentProps> & Readonly<{
740
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
741
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
742
+ "update:show": (value: boolean | undefined) => any;
743
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
744
+ P: {};
745
+ B: {};
746
+ D: {};
747
+ C: {};
748
+ M: {};
749
+ Defaults: {};
750
+ }, Readonly<{
751
+ show?: TooltipContentProps["show"];
752
+ } & TooltipContentProps> & Readonly<{
753
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
754
+ }>, {}, {}, {}, {}, {}> | null;
755
+ }, any>;
756
+
757
+ declare const __VLS_component_9: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
758
+ align: "left" | "center" | "right" | string;
759
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
957
760
 
958
761
  declare type __VLS_Props = SuggestionPillsProps;
959
762
 
@@ -979,52 +782,6 @@ declare function __VLS_template(): {
979
782
  rootEl: HTMLDivElement;
980
783
  };
981
784
 
982
- declare function __VLS_template_10(): {
983
- attrs: Partial<{}>;
984
- slots: {
985
- 'category-label'?(_: {
986
- category: Category_2;
987
- }): any;
988
- 'question-item'?(_: {
989
- question: Question_2;
990
- index: number;
991
- }): any;
992
- 'loading-indicator'?(_: {}): any;
993
- 'empty-state'?(_: {}): any;
994
- };
995
- refs: {};
996
- rootEl: HTMLDivElement;
997
- };
998
-
999
- declare function __VLS_template_11(): {
1000
- attrs: Partial<{}>;
1001
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1002
- refs: {
1003
- popoverTriggerRef: HTMLDivElement;
1004
- popoverRef: HTMLDivElement;
1005
- listRef: HTMLUListElement;
1006
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1007
- show?: TooltipContentProps["show"];
1008
- } & TooltipContentProps> & Readonly<{
1009
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1010
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1011
- "update:show": (value: boolean | undefined) => any;
1012
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1013
- P: {};
1014
- B: {};
1015
- D: {};
1016
- C: {};
1017
- M: {};
1018
- Defaults: {};
1019
- }, Readonly<{
1020
- show?: TooltipContentProps["show"];
1021
- } & TooltipContentProps> & Readonly<{
1022
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1023
- }>, {}, {}, {}, {}, {}> | null;
1024
- };
1025
- rootEl: any;
1026
- };
1027
-
1028
785
  declare function __VLS_template_2(): {
1029
786
  attrs: Partial<{}>;
1030
787
  slots: Readonly<ContainerSlots> & ContainerSlots;
@@ -1128,11 +885,11 @@ declare function __VLS_template_3(): {
1128
885
  popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
1129
886
  }> & {} & ComponentCustomProperties & {} & {
1130
887
  $slots: Readonly<{
1131
- trigger?: () => VNode | VNode[];
1132
- content?: () => VNode | VNode[];
888
+ trigger?: () => VNode[];
889
+ content?: () => VNode[];
1133
890
  }> & {
1134
- trigger?: () => VNode | VNode[];
1135
- content?: () => VNode | VNode[];
891
+ trigger?: () => VNode[];
892
+ content?: () => VNode[];
1136
893
  };
1137
894
  }) | null;
1138
895
  };
@@ -1163,8 +920,8 @@ declare function __VLS_template_5(): {
1163
920
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1164
921
  modelValue?: UserItem[];
1165
922
  }> & Readonly<{
1166
- onSubmit?: (() => any) | undefined;
1167
923
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
924
+ onSubmit?: (() => any) | undefined;
1168
925
  }>, {
1169
926
  clearHistory: () => void;
1170
927
  activateFirstField: () => void;
@@ -1184,8 +941,8 @@ declare function __VLS_template_5(): {
1184
941
  }, Readonly<{
1185
942
  modelValue?: UserItem[];
1186
943
  }> & Readonly<{
1187
- onSubmit?: (() => any) | undefined;
1188
944
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
945
+ onSubmit?: (() => any) | undefined;
1189
946
  }>, {
1190
947
  clearHistory: () => void;
1191
948
  activateFirstField: () => void;
@@ -1648,198 +1405,60 @@ declare function __VLS_template_5(): {
1648
1405
 
1649
1406
  declare function __VLS_template_6(): {
1650
1407
  attrs: Partial<{}>;
1651
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1408
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1652
1409
  refs: {};
1653
- rootEl: HTMLDivElement;
1410
+ rootEl: HTMLButtonElement;
1654
1411
  };
1655
1412
 
1656
1413
  declare function __VLS_template_7(): {
1657
1414
  attrs: Partial<{}>;
1658
- slots: {
1659
- 'capsule-icon'?(_: {
1660
- suggestion: any;
1661
- }): any;
1662
- trigger?(_: {
1663
- onTrigger: TriggerHandler;
1664
- onKeyDown: (e: KeyboardEvent) => void;
1665
- onInput: (event: Event, text: string) => boolean;
1666
- }): any;
1667
- 'title-icon'?(_: {}): any;
1668
- 'category-label'?(_: {
1669
- category: any;
1670
- }): any;
1671
- item?(_: {
1672
- item: SuggestionItem;
1673
- active: boolean;
1674
- }): any;
1675
- 'loading-indicator'?(_: {}): any;
1676
- empty?(_: {}): any;
1677
- };
1415
+ slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1678
1416
  refs: {
1679
- rootRef: HTMLDivElement;
1680
- panelRef: ({
1681
- $: ComponentInternalInstance;
1682
- $data: {};
1683
- $props: Partial<{
1684
- loading: boolean;
1685
- title: string;
1686
- categories: Category[];
1687
- maxVisibleItems: number;
1688
- }> & Omit<{
1689
- readonly loading: boolean;
1690
- readonly title: string;
1691
- readonly items: SuggestionItem[];
1692
- readonly categories: Category[];
1693
- readonly maxVisibleItems: number;
1694
- readonly onClose?: ((...args: any[]) => any) | undefined;
1695
- readonly onSelect?: ((...args: any[]) => any) | undefined;
1696
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
1697
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
1698
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "title" | "categories" | "maxVisibleItems">;
1699
- $attrs: {
1700
- [x: string]: unknown;
1701
- };
1702
- $refs: {
1703
- [x: string]: unknown;
1704
- };
1705
- $slots: Readonly<{
1706
- [name: string]: Slot<any> | undefined;
1707
- }>;
1708
- $root: ComponentPublicInstance | null;
1709
- $parent: ComponentPublicInstance | null;
1710
- $host: Element | null;
1711
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
1712
- $el: HTMLDivElement;
1713
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1714
- items: {
1715
- type: PropType<SuggestionItem[]>;
1716
- required: true;
1717
- };
1718
- categories: {
1719
- type: PropType<Category[]>;
1720
- default: () => never[];
1721
- };
1722
- loading: {
1723
- type: BooleanConstructor;
1724
- default: boolean;
1725
- };
1726
- title: {
1727
- type: StringConstructor;
1728
- default: string;
1729
- };
1730
- maxVisibleItems: {
1731
- type: NumberConstructor;
1732
- default: number;
1733
- };
1734
- }>> & Readonly<{
1735
- onClose?: ((...args: any[]) => any) | undefined;
1736
- onSelect?: ((...args: any[]) => any) | undefined;
1737
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1738
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1739
- }>, {
1740
- handleKeyDown: (e: KeyboardEvent) => void;
1741
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1742
- close: (...args: any[]) => void;
1743
- select: (...args: any[]) => void;
1744
- "category-select": (...args: any[]) => void;
1745
- "item-hover": (...args: any[]) => void;
1746
- }, string, {
1747
- loading: boolean;
1748
- title: string;
1749
- categories: Category[];
1750
- maxVisibleItems: number;
1751
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1752
- beforeCreate?: (() => void) | (() => void)[];
1753
- created?: (() => void) | (() => void)[];
1754
- beforeMount?: (() => void) | (() => void)[];
1755
- mounted?: (() => void) | (() => void)[];
1756
- beforeUpdate?: (() => void) | (() => void)[];
1757
- updated?: (() => void) | (() => void)[];
1758
- activated?: (() => void) | (() => void)[];
1759
- deactivated?: (() => void) | (() => void)[];
1760
- beforeDestroy?: (() => void) | (() => void)[];
1761
- beforeUnmount?: (() => void) | (() => void)[];
1762
- destroyed?: (() => void) | (() => void)[];
1763
- unmounted?: (() => void) | (() => void)[];
1764
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1765
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1766
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1767
- };
1768
- $forceUpdate: () => void;
1769
- $nextTick: nextTick;
1770
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1771
- } & Readonly<{
1772
- loading: boolean;
1773
- title: string;
1774
- categories: Category[];
1775
- maxVisibleItems: number;
1776
- }> & Omit<Readonly<ExtractPropTypes< {
1777
- items: {
1778
- type: PropType<SuggestionItem[]>;
1779
- required: true;
1780
- };
1781
- categories: {
1782
- type: PropType<Category[]>;
1783
- default: () => never[];
1784
- };
1785
- loading: {
1786
- type: BooleanConstructor;
1787
- default: boolean;
1788
- };
1789
- title: {
1790
- type: StringConstructor;
1791
- default: string;
1792
- };
1793
- maxVisibleItems: {
1794
- type: NumberConstructor;
1795
- default: number;
1796
- };
1797
- }>> & Readonly<{
1798
- onClose?: ((...args: any[]) => any) | undefined;
1799
- onSelect?: ((...args: any[]) => any) | undefined;
1800
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1801
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1802
- }>, "handleKeyDown" | ("loading" | "title" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
1803
- handleKeyDown: (e: KeyboardEvent) => void;
1804
- }> & {} & ComponentCustomProperties & {} & {
1805
- $slots: {
1806
- 'title-icon'?(_: {}): any;
1807
- 'loading-indicator'?(_: {}): any;
1808
- item?(_: {
1809
- item: SuggestionItem;
1810
- active: boolean;
1811
- }): any;
1812
- empty?(_: {}): any;
1813
- };
1814
- }) | null;
1417
+ containerWrapperRef: HTMLDivElement;
1418
+ containerRef: HTMLDivElement;
1419
+ floatingItemsRef: HTMLDivElement;
1815
1420
  };
1816
1421
  rootEl: HTMLDivElement;
1817
1422
  };
1818
1423
 
1819
1424
  declare function __VLS_template_8(): {
1820
1425
  attrs: Partial<{}>;
1821
- slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1426
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1822
1427
  refs: {
1823
- containerWrapperRef: HTMLDivElement;
1824
- containerRef: HTMLDivElement;
1825
- floatingItemsRef: HTMLDivElement;
1428
+ popoverTriggerRef: HTMLDivElement;
1429
+ popoverRef: HTMLDivElement;
1430
+ listRef: HTMLUListElement;
1431
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1432
+ show?: TooltipContentProps["show"];
1433
+ } & TooltipContentProps> & Readonly<{
1434
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1435
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1436
+ "update:show": (value: boolean | undefined) => any;
1437
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1438
+ P: {};
1439
+ B: {};
1440
+ D: {};
1441
+ C: {};
1442
+ M: {};
1443
+ Defaults: {};
1444
+ }, Readonly<{
1445
+ show?: TooltipContentProps["show"];
1446
+ } & TooltipContentProps> & Readonly<{
1447
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1448
+ }>, {}, {}, {}, {}, {}> | null;
1826
1449
  };
1827
- rootEl: HTMLDivElement;
1450
+ rootEl: any;
1828
1451
  };
1829
1452
 
1830
1453
  declare function __VLS_template_9(): {
1831
1454
  attrs: Partial<{}>;
1832
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1455
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
1833
1456
  refs: {};
1834
- rootEl: HTMLButtonElement;
1457
+ rootEl: HTMLDivElement;
1835
1458
  };
1836
1459
 
1837
1460
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1838
1461
 
1839
- declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1840
-
1841
- declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1842
-
1843
1462
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1844
1463
 
1845
1464
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1862,18 +1481,6 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
1862
1481
  };
1863
1482
  };
1864
1483
 
1865
- declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1866
- new (): {
1867
- $slots: S;
1868
- };
1869
- };
1870
-
1871
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1872
- new (): {
1873
- $slots: S;
1874
- };
1875
- };
1876
-
1877
1484
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1878
1485
  new (): {
1879
1486
  $slots: S;
@@ -1959,7 +1566,7 @@ declare interface BaseTextItem {
1959
1566
  content: string;
1960
1567
  }
1961
1568
 
1962
- declare const Bubble: typeof _default_14 & {
1569
+ declare const Bubble: typeof _default_12 & {
1963
1570
  install: typeof bubbleInstall;
1964
1571
  };
1965
1572
  export { Bubble }
@@ -1967,7 +1574,7 @@ export { Bubble as TrBubble }
1967
1574
 
1968
1575
  declare const bubbleInstall: (app: App) => void;
1969
1576
 
1970
- declare const BubbleList: typeof _default_15 & {
1577
+ declare const BubbleList: typeof _default_13 & {
1971
1578
  install: typeof bubbleListInstall;
1972
1579
  };
1973
1580
  export { BubbleList }
@@ -2029,27 +1636,6 @@ export declare interface BubbleSlots {
2029
1636
  }) => unknown;
2030
1637
  }
2031
1638
 
2032
- /**
2033
- * 分类定义
2034
- */
2035
- export declare interface Category {
2036
- /** 唯一标识 */
2037
- id: string;
2038
- /** 显示名称 */
2039
- label: string;
2040
- /** 可选图标 */
2041
- icon?: VNode;
2042
- /** 该分类下的指令项 */
2043
- items: SuggestionItem[];
2044
- }
2045
-
2046
- declare interface Category_2 {
2047
- id: string;
2048
- label: string;
2049
- icon?: string;
2050
- questions: Question_2[];
2051
- }
2052
-
2053
1639
  export declare interface ContainerProps {
2054
1640
  /**
2055
1641
  * model:show
@@ -2073,43 +1659,31 @@ declare const _default: {
2073
1659
  };
2074
1660
  export default _default;
2075
1661
 
2076
- declare const _default_10: typeof _default_25 & {
1662
+ declare const _default_10: typeof _default_24 & {
2077
1663
  install: typeof install_8;
2078
1664
  };
2079
- export { _default_10 as Suggestion }
2080
- export { _default_10 as TrSuggestion }
1665
+ export { _default_10 as SuggestionPopover }
1666
+ export { _default_10 as TrSuggestionPopover }
2081
1667
 
2082
- declare const _default_11: typeof _default_26 & {
1668
+ declare const _default_11: typeof _default_25 & {
2083
1669
  install: typeof install_9;
2084
1670
  };
2085
- export { _default_11 as SuggestionPills }
2086
- export { _default_11 as TrSuggestionPills }
2087
-
2088
- declare const _default_12: typeof _default_28 & {
2089
- install: typeof install_10;
2090
- };
2091
- export { _default_12 as Question }
2092
- export { _default_12 as TrQuestion }
2093
-
2094
- declare const _default_13: typeof _default_29 & {
2095
- install: typeof install_11;
2096
- };
2097
- export { _default_13 as SuggestionPopover }
2098
- export { _default_13 as TrSuggestionPopover }
1671
+ export { _default_11 as TrWelcome }
1672
+ export { _default_11 as Welcome }
2099
1673
 
2100
- declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1674
+ declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2101
1675
 
2102
- declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1676
+ declare const _default_13: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2103
1677
  scrollContainerRef: HTMLDivElement;
2104
1678
  }, HTMLDivElement>;
2105
1679
 
2106
- declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1680
+ declare const _default_14: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2107
1681
 
2108
- declare const _default_17: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1682
+ declare const _default_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2109
1683
 
2110
- declare const _default_18: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1684
+ declare const _default_16: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2111
1685
 
2112
- declare const _default_19: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1686
+ declare const _default_17: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2113
1687
  operation: (name: string) => any;
2114
1688
  action: (name: string) => any;
2115
1689
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -2121,48 +1695,44 @@ actionsLimit: number;
2121
1695
  sourcesLinesLimit: number;
2122
1696
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2123
1697
 
2124
- declare const _default_2: typeof _default_16 & {
2125
- install: typeof install;
2126
- };
2127
- export { _default_2 as Container }
2128
- export { _default_2 as TrContainer }
2129
-
2130
- declare const _default_20: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
1698
+ declare const _default_18: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2131
1699
  size: string | number;
2132
1700
  svgSize: string | number;
2133
1701
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2134
1702
 
2135
- declare const _default_21: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2136
-
2137
- declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1703
+ declare const _default_19: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2138
1704
 
2139
- declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1705
+ declare const _default_2: typeof _default_14 & {
1706
+ install: typeof install;
1707
+ };
1708
+ export { _default_2 as Container }
1709
+ export { _default_2 as TrContainer }
2140
1710
 
2141
- declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1711
+ declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2142
1712
 
2143
- declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1713
+ declare const _default_21: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2144
1714
 
2145
- declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1715
+ declare const _default_22: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2146
1716
 
2147
- declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1717
+ declare const _default_23: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2148
1718
 
2149
- declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1719
+ declare const _default_24: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2150
1720
 
2151
- declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1721
+ declare const _default_25: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2152
1722
 
2153
- declare const _default_3: typeof _default_17 & {
1723
+ declare const _default_3: typeof _default_15 & {
2154
1724
  install: typeof install_2;
2155
1725
  };
2156
1726
  export { _default_3 as Conversations }
2157
1727
  export { _default_3 as TrConversations }
2158
1728
 
2159
- declare const _default_4: typeof _default_18 & {
1729
+ declare const _default_4: typeof _default_16 & {
2160
1730
  install: typeof install_3;
2161
1731
  };
2162
1732
  export { _default_4 as DropdownMenu }
2163
1733
  export { _default_4 as TrDropdownMenu }
2164
1734
 
2165
- declare const _default_5: typeof _default_19 & {
1735
+ declare const _default_5: typeof _default_17 & {
2166
1736
  install: typeof install_4;
2167
1737
  };
2168
1738
  export { _default_5 as Feedback }
@@ -2175,23 +1745,23 @@ declare const _default_6: {
2175
1745
  export { _default_6 as History }
2176
1746
  export { _default_6 as TrHistory }
2177
1747
 
2178
- declare const _default_7: typeof _default_20 & {
1748
+ declare const _default_7: typeof _default_18 & {
2179
1749
  install: typeof install_5;
2180
1750
  };
2181
1751
  export { _default_7 as IconButton }
2182
1752
  export { _default_7 as TrIconButton }
2183
1753
 
2184
- declare const _default_8: typeof _default_23 & {
1754
+ declare const _default_8: typeof _default_21 & {
2185
1755
  install: typeof install_6;
2186
1756
  };
2187
1757
  export { _default_8 as Sender }
2188
1758
  export { _default_8 as TrSender }
2189
1759
 
2190
- declare const _default_9: typeof _default_24 & {
1760
+ declare const _default_9: typeof _default_23 & {
2191
1761
  install: typeof install_7;
2192
1762
  };
2193
- export { _default_9 as TrWelcome }
2194
- export { _default_9 as Welcome }
1763
+ export { _default_9 as SuggestionPills }
1764
+ export { _default_9 as TrSuggestionPills }
2195
1765
 
2196
1766
  export declare interface DropdownMenuEmits {
2197
1767
  (e: 'item-click', item: DropdownMenuItem): void;
@@ -2311,10 +1881,6 @@ export declare type InputMode = 'single' | 'multiple';
2311
1881
 
2312
1882
  declare const install: <T>(app: App<T>) => void;
2313
1883
 
2314
- declare const install_10: <T>(app: App<T>) => void;
2315
-
2316
- declare const install_11: <T>(app: App<T>) => void;
2317
-
2318
1884
  declare const install_2: <T>(app: App<T>) => void;
2319
1885
 
2320
1886
  declare const install_3: <T>(app: App<T>) => void;
@@ -2350,7 +1916,7 @@ export declare type MultiTabHistoryProps = {
2350
1916
  data: Record<string, HistoryData>;
2351
1917
  } & BaseHistoryProps;
2352
1918
 
2353
- declare const Prompt: typeof _default_21 & {
1919
+ declare const Prompt: typeof _default_19 & {
2354
1920
  install: typeof installPrompt;
2355
1921
  };
2356
1922
  export { Prompt }
@@ -2383,7 +1949,7 @@ export declare interface PromptProps {
2383
1949
  badge?: string | VNode;
2384
1950
  }
2385
1951
 
2386
- declare const Prompts: typeof _default_22 & {
1952
+ declare const Prompts: typeof _default_20 & {
2387
1953
  install: typeof installPrompts;
2388
1954
  };
2389
1955
  export { Prompts }
@@ -2420,53 +1986,6 @@ export declare interface PromptsSlots {
2420
1986
  footer?: () => unknown;
2421
1987
  }
2422
1988
 
2423
- declare interface Question_2 {
2424
- id: string;
2425
- text: string;
2426
- keywords?: string[];
2427
- }
2428
-
2429
- /**
2430
- * Question组件属性定义
2431
- */
2432
- declare interface QuestionProps {
2433
- /**
2434
- * 问题分类列表
2435
- * 包含多个分类,每个分类下有多个问题
2436
- */
2437
- categories: Category_2[];
2438
- /**
2439
- * 浮动显示的问题列表
2440
- * 显示在组件底部的常见问题胶囊
2441
- */
2442
- commonQuestions: Question_2[];
2443
- /**
2444
- * 是否初始展开常见问题
2445
- * @default false
2446
- */
2447
- initialExpanded?: boolean;
2448
- /**
2449
- * 弹窗宽度
2450
- * @default '640px'
2451
- */
2452
- modalWidth?: string;
2453
- /**
2454
- * 主题类型
2455
- * @default 'light'
2456
- */
2457
- theme?: ThemeType_3;
2458
- /**
2459
- * 是否点击外部关闭弹窗
2460
- * @default true
2461
- */
2462
- closeOnClickOutside?: boolean;
2463
- /**
2464
- * 是否显示加载中状态
2465
- * @default false
2466
- */
2467
- loading?: boolean;
2468
- }
2469
-
2470
1989
  export declare type SenderEmits = {
2471
1990
  (e: 'update:modelValue', value: string): void;
2472
1991
  (e: 'update:templateData', value: UserItem[]): void;
@@ -2503,8 +2022,6 @@ export declare interface SenderProps {
2503
2022
  suggestions?: string[];
2504
2023
  suggestionPopupWidth?: string | number;
2505
2024
  theme?: ThemeType;
2506
- template?: string;
2507
- hasContent?: boolean;
2508
2025
  templateData?: UserItem[];
2509
2026
  stopText?: string;
2510
2027
  }
@@ -2543,63 +2060,21 @@ export declare interface SpeechState {
2543
2060
 
2544
2061
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2545
2062
 
2546
- declare interface SuggestionBaseItem {
2063
+ export declare interface SuggestionBaseItem {
2547
2064
  id: string;
2548
2065
  text: string;
2549
2066
  }
2550
2067
 
2551
- declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
2068
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2552
2069
 
2553
- /**
2554
- * 组件事件
2555
- */
2556
- export declare interface SuggestionEmits {
2557
- /** 双向绑定打开状态 (v-model) */
2558
- (e: 'update:open', value: boolean): void;
2559
- /** 选中指令项 */
2560
- (e: 'select', value: string, context?: TriggerContext): void;
2561
- /** 关闭面板 */
2562
- (e: 'close'): void;
2563
- /** 触发回调 */
2564
- (e: 'trigger', handler: TriggerHandler): void;
2565
- /** 选择分类 */
2566
- (e: 'category-select', category: Category): void;
2567
- /** 点击胶囊指令 */
2568
- (e: 'suggestion-select', item: SuggestionItem): void;
2569
- /** 展开/收起状态变化 */
2570
- (e: 'update:expanded', expanded: boolean): void;
2571
- /** 填充模板到输入框 */
2572
- (e: 'fill-template', template: string): void;
2573
- }
2574
-
2575
- declare interface SuggestionGroup<T = Record<string, unknown>> {
2070
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2576
2071
  group: string;
2577
2072
  label: string;
2578
2073
  icon?: VNode | Component;
2579
- items: SuggestionItem_2<T>[];
2074
+ items: SuggestionItem<T>[];
2580
2075
  }
2581
2076
 
2582
- /**
2583
- * 指令项定义
2584
- */
2585
- export declare interface SuggestionItem {
2586
- /** 唯一标识 */
2587
- id: string;
2588
- /** 显示文本 */
2589
- text: string;
2590
- /** 指令值 */
2591
- value: string;
2592
- /** 图标 */
2593
- icon?: VNode;
2594
- /** 关键词,用于搜索和过滤 */
2595
- keywords?: string[];
2596
- /** 描述文本 */
2597
- description?: string;
2598
- /** 指令模板,用于在输入框中显示可编辑的模板 */
2599
- template?: string;
2600
- }
2601
-
2602
- declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
2077
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2603
2078
 
2604
2079
  export declare type SuggestionPillAction = SuggestionPillPopoverAction | SuggestionPillMenuAction;
2605
2080
 
@@ -2608,7 +2083,7 @@ export declare type SuggestionPillBaseItem<T> = {
2608
2083
  action?: SuggestionPillAction;
2609
2084
  } & T;
2610
2085
 
2611
- declare const SuggestionPillButton: typeof _default_27 & {
2086
+ declare const SuggestionPillButton: typeof _default_22 & {
2612
2087
  install: typeof installPillButton;
2613
2088
  };
2614
2089
  export { SuggestionPillButton }
@@ -2689,19 +2164,27 @@ export declare interface SuggestionPillsSlots {
2689
2164
  default?: () => VNode | VNode[];
2690
2165
  }
2691
2166
 
2692
- declare interface SuggestionPopoverEventProps {
2693
- onItemClick?: (item: SuggestionItem_2) => void;
2167
+ export declare interface SuggestionPopoverEmits {
2168
+ (e: 'item-click', item: SuggestionItem): void;
2169
+ (e: 'group-click', group: SuggestionGroup): void;
2170
+ (e: 'open'): void;
2171
+ (e: 'close'): void;
2172
+ (e: 'click-outside', event: MouseEvent): void;
2173
+ }
2174
+
2175
+ export declare interface SuggestionPopoverEventProps {
2176
+ onItemClick?: (item: SuggestionItem) => void;
2694
2177
  onGroupClick?: (group: SuggestionGroup) => void;
2695
2178
  onOpen?: () => void;
2696
2179
  onClose?: () => void;
2697
2180
  onClickOutside?: (event: MouseEvent) => void;
2698
2181
  }
2699
2182
 
2700
- declare interface SuggestionPopoverEvents {
2183
+ export declare interface SuggestionPopoverEvents {
2701
2184
  /**
2702
2185
  * @deprecated use onItemClick in props instead
2703
2186
  */
2704
- itemClick?: (item: SuggestionItem_2) => void;
2187
+ itemClick?: (item: SuggestionItem) => void;
2705
2188
  /**
2706
2189
  * @deprecated use onGroupClick in props instead
2707
2190
  */
@@ -2720,7 +2203,7 @@ declare interface SuggestionPopoverEvents {
2720
2203
  clickOutside?: (event: MouseEvent) => void;
2721
2204
  }
2722
2205
 
2723
- declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2206
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2724
2207
  data: SuggestionData<T>;
2725
2208
  title?: string;
2726
2209
  icon?: VNode | Component;
@@ -2743,40 +2226,12 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2743
2226
  topOffset?: string | number;
2744
2227
  }
2745
2228
 
2746
- declare interface SuggestionPopoverSlots {
2229
+ export declare interface SuggestionPopoverSlots {
2747
2230
  default?: () => unknown;
2748
2231
  loading?: () => unknown;
2749
2232
  empty?: () => unknown;
2750
2233
  }
2751
2234
 
2752
- /**
2753
- * 组件属性
2754
- */
2755
- export declare interface SuggestionProps {
2756
- /** 触发快捷键列表 */
2757
- triggerKeys?: string[];
2758
- /** 指令项列表 */
2759
- items: SuggestionItem[];
2760
- /** 分类列表 */
2761
- categories?: Category[];
2762
- /** 是否显示面板 (支持v-model) */
2763
- open?: boolean;
2764
- /** 自定义类名 */
2765
- className?: string;
2766
- /** 主题,light或dark */
2767
- theme?: 'light' | 'dark';
2768
- /** 是否显示加载状态 */
2769
- loading?: boolean;
2770
- /** 是否点击外部关闭面板 */
2771
- closeOnOutsideClick?: boolean;
2772
- /** 面板标题 */
2773
- title?: string;
2774
- /** 最大显示条目数 */
2775
- maxVisibleItems?: number;
2776
- /** 默认是否展开完整指令列表 */
2777
- defaultExpanded?: boolean;
2778
- }
2779
-
2780
2235
  declare interface TemplateItem extends BaseTextItem {
2781
2236
  type: 'template';
2782
2237
  prefix: string;
@@ -2792,24 +2247,6 @@ declare interface TextItem extends BaseTextItem {
2792
2247
  */
2793
2248
  export declare type ThemeType = 'light' | 'dark';
2794
2249
 
2795
- declare type ThemeType_3 = 'light' | 'dark';
2796
-
2797
- /**
2798
- * 触发位置信息
2799
- */
2800
- export declare interface TriggerContext {
2801
- /** 触发的文本 */
2802
- text: string;
2803
- /** 触发的位置 */
2804
- position: number;
2805
- }
2806
-
2807
- /** 触发处理函数类型 */
2808
- export declare type TriggerHandler = (info: TriggerInfo) => void;
2809
-
2810
- /** 触发信息类型 */
2811
- export declare type TriggerInfo = TriggerContext | false;
2812
-
2813
2250
  export declare type UserItem = UserTextItem | UserTemplateItem;
2814
2251
 
2815
2252
  export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;